EasyImage::Distance
Computes the morphological distance function on a binary image (0 for black, non 0 for white).
Namespace: Euresys::Open_eVision
[C++]
void Distance(
EROIBW8* sourceImage,
EImageBW16* destinationImage,
int valueOutOfImage
)
Parameters
sourceImage
Pointer to the source image/ROI.
destinationImage
Pointer to the destination image/ROI. Must not be the same as source image.
valueOutOfImage
Out-of-bounds image value. By default, this value is
Remarks
So, each pixel of the destination image will contain, at the end of the processing, the morphological distance of the corresponding pixel in the source image. The distance function at a given pixel tells how many erosion passes are required to set it to black.
EasyImage.Distance
Computes the morphological distance function on a binary image (0 for black, non 0 for white).
Namespace: Euresys.Open_eVision
[C#]
void Distance(
Euresys.Open_eVision.EROIBW8 sourceImage,
Euresys.Open_eVision.EImageBW16 destinationImage,
int valueOutOfImage
)
Parameters
sourceImage
Pointer to the source image/ROI.
destinationImage
Pointer to the destination image/ROI. Must not be the same as source image.
valueOutOfImage
Out-of-bounds image value. By default, this value is
Remarks
So, each pixel of the destination image will contain, at the end of the processing, the morphological distance of the corresponding pixel in the source image. The distance function at a given pixel tells how many erosion passes are required to set it to black.