![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Algorithm for distance map transform computation of an input binary 3d image. More...
| IPSDKIPLBASICMORPHOLOGY_API ipsdk::image::ImagePtr | ipsdk::imaproc::morpho::distanceMap3dImg (const ipsdk::image::ImageConstPtr &pInBinImg3d) |
| wrapper function for distance map transform of an input binary 3d image More... | |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::distanceMap3dImg (const ipsdk::image::ImageConstPtr &pInBinImg3d, const ipsdk::image::ImagePtr &pOutDistImg) |
| wrapper function for distance map transform of an input binary 3d image More... | |
| IPSDKIPLBASICMORPHOLOGY_API ipsdk::image::ImagePtr | ipsdk::imaproc::morpho::distanceMap3dImg (const ipsdk::image::ImageConstPtr &pInBinImg3d, const ipsdk::ipReal32 maxDistance) |
| wrapper function for distance map transform of an input binary 3d image constrained to a maximum distance propagation More... | |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::distanceMap3dImg (const ipsdk::image::ImageConstPtr &pInBinImg3d, const ipsdk::ipReal32 maxDistance, const ipsdk::image::ImagePtr &pOutDistImg) |
| wrapper function for distance map transform of an input binary 3d image constrained to a maximum distance propagation More... | |
Algorithm for distance map transform computation of an input binary 3d image.
Distance map algorithm, also called distance transform, allows to compute exact euclidian distance for each set pixel (with intensity set to 1) to the nearest boundary (nearest zero pixel) in a binary image. If the parameter
is provided, the propagation is constrained so that it stops when the distance is higher than the
value.
Resulting image buffer type must be one of the following :
Output image values are given by :
where
stands for euclidian norm :
Here is an example of a distance map 3d computation applied to a binary input image with an unsigned int 16 result image :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinImg3d | [Input] binary 3d image for processing operation | X |
| ipsdk::imaproc::attr::InOptMaxDistance | [Input Optional] Maximum distance authorized for the propagation (a value of 0 means no distance restriction) | X |
| ipsdk::imaproc::attr::OutDistImg | [Output] distance map image | ipsdk::imaproc::duplicateInOut (_pOutDistImg, _pInBinImg3d, ipsdk::image::eImageBufferType::eIBT_UInt16) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInBinImg3d,_pOutDistImg)
| IPSDKIPLBASICMORPHOLOGY_API ipsdk::image::ImagePtr ipsdk::imaproc::morpho::distanceMap3dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg3d | ) |
wrapper function for distance map transform of an input binary 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API ipsdk::image::ImagePtr ipsdk::imaproc::morpho::distanceMap3dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg3d, |
| const ipsdk::ipReal32 | maxDistance | ||
| ) |
wrapper function for distance map transform of an input binary 3d image constrained to a maximum distance propagation
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::distanceMap3dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg3d, |
| const ipsdk::image::ImagePtr & | pOutDistImg | ||
| ) |
wrapper function for distance map transform of an input binary 3d image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::distanceMap3dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg3d, |
| const ipsdk::ipReal32 | maxDistance, | ||
| const ipsdk::image::ImagePtr & | pOutDistImg | ||
| ) |
wrapper function for distance map transform of an input binary 3d image constrained to a maximum distance propagation
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14