![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
generic seeded distance map transform of an input binary image according to a seeded image More...
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr | ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg (const ipsdk::image::ImageConstPtr &pInBinImg, const ipsdk::image::ImageConstPtr &pInBinSeedImg, const ipsdk::imaproc::attr::DistWeight2dConstPtr &pInDistWeight2d) |
| wrapper function for generic seeded distance map transform of an input binary image according to a seeded image More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API void | ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg (const ipsdk::image::ImageConstPtr &pInBinImg, const ipsdk::image::ImageConstPtr &pInBinSeedImg, const ipsdk::imaproc::attr::DistWeight2dConstPtr &pInDistWeight2d, const ipsdk::image::ImagePtr &pOutDistImg) |
| wrapper function for generic seeded distance map transform of an input binary image according to a seeded image More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr | ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg (const ipsdk::image::ImageConstPtr &pInBinImg, const ipsdk::image::ImageConstPtr &pInBinSeedImg, const ipsdk::imaproc::attr::DistWeight2dConstPtr &pInDistWeight2d, const ipsdk::ipReal32 maxDistance) |
| wrapper function for generic seeded distance map transform of an input binary image according to a seeded image constrained to a maximum distance propagation More... | |
| IPSDKIPLADVANCEDMORPHOLOGY_API void | ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg (const ipsdk::image::ImageConstPtr &pInBinImg, const ipsdk::image::ImageConstPtr &pInBinSeedImg, const ipsdk::imaproc::attr::DistWeight2dConstPtr &pInDistWeight2d, const ipsdk::ipReal32 maxDistance, const ipsdk::image::ImagePtr &pOutDistImg) |
| wrapper function for generic seeded distance map transform of an input binary image according to a seeded image constrained to a maximum distance propagation More... | |
generic seeded distance map transform of an input binary image according to a seeded image
2d generic seeded distance map algorithm allows to compute the distance to the closest seeded pixel in a region for each pixel of this region, according to given weights stored in a ipsdk::imaproc::attr::DistWeight2d attribute. As in Seeded Distance Map 2d, the region is defined by a binary image with pixel intensities set to 1 and the seeded pixels are defined by a seeded image with pixel intensities set to 1.The weights can be seen as a distance between 2 successive pixels. If the parameter
is provided, the propagation is constrained so that it stops when the distance is higher than the
value.
The resulting image buffer type must be one of the following :
Output image values are given by :
Where
is the pixel's neighbourhood,
is the set of directions allowed by
and can be lateral (along the x-axis), axial (along the y-axis) or diagonal.
is the weight corresponding to the direction
.
The following figure illustrates the algorithm with a simple example :
If, for instance,
,
and
. The neighbours along the diagonals are not taken into account : it corresponds to a 4-connexity. In this case, the resulting distance will be :
Here is an example of a 2d generic seeded distance map computation applied to a binary input image with a real result image and with weighting coefficients along the x an y directions set to 1 and the weighting coefficient along the diagonal set to
:
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinImg | [Input] binary image for processing operation | X |
| ipsdk::imaproc::attr::InBinSeedImg | [Input] Seeded binary image | X |
| ipsdk::imaproc::attr::InDistWeight2d | [Input] Weighting coefficients for 2d distance calculation | 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, _pInBinImg, ipsdk::image::eImageBufferType::eIBT_Real32) |
Global rule description for algorithm :
(ipsdk::imaproc::matchSize (_pInBinImg,_pOutDistImg)) &&
(ipsdk::imaproc::matchSize (_pInBinSeedImg,_pOutDistImg))
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg, |
| const ipsdk::image::ImageConstPtr & | pInBinSeedImg, | ||
| const ipsdk::imaproc::attr::DistWeight2dConstPtr & | pInDistWeight2d | ||
| ) |
wrapper function for generic seeded distance map transform of an input binary image according to a seeded image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API ipsdk::image::ImagePtr ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg, |
| const ipsdk::image::ImageConstPtr & | pInBinSeedImg, | ||
| const ipsdk::imaproc::attr::DistWeight2dConstPtr & | pInDistWeight2d, | ||
| const ipsdk::ipReal32 | maxDistance | ||
| ) |
wrapper function for generic seeded distance map transform of an input binary image according to a seeded image constrained to a maximum distance propagation
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg, |
| const ipsdk::image::ImageConstPtr & | pInBinSeedImg, | ||
| const ipsdk::imaproc::attr::DistWeight2dConstPtr & | pInDistWeight2d, | ||
| const ipsdk::image::ImagePtr & | pOutDistImg | ||
| ) |
wrapper function for generic seeded distance map transform of an input binary image according to a seeded image
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::genericSeededDistanceMap2dImg | ( | const ipsdk::image::ImageConstPtr & | pInBinImg, |
| const ipsdk::image::ImageConstPtr & | pInBinSeedImg, | ||
| const ipsdk::imaproc::attr::DistWeight2dConstPtr & | pInDistWeight2d, | ||
| const ipsdk::ipReal32 | maxDistance, | ||
| const ipsdk::image::ImagePtr & | pOutDistImg | ||
| ) |
wrapper function for generic seeded distance map transform of an input binary image according to a seeded image constrained to a maximum distance propagation
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14