MIL_ID SrcImageBufId, | //in |
MIL_ID DstImageBufId, | //in |
MIL_INT64 DistanceTransform | //in |
This function determines the shortest distance between each blob pixel and the blob's background, and assigns this distance to the pixel. It produces a type of contour mapping of a blob.
Specifies the identifier of the source of the operation. This parameter must be given an image buffer identifier.
This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
The source image buffer must be unsigned monochrome 8- or 16-bit, M_BGR32 packed, or floating-point.
Specifies the identifier of the destination of the resulting image. This parameter must be given an image buffer identifier.
This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
The destination buffer is always treated as unsigned.
Specifies the way in which the minimum distance from blob pixel to background pixel is calculated. This parameter approximates the true distance from blob pixel to background pixel using a 3x3 distance matrix and can be set to one of the following:
For specifying how to calculate the
minimum distance
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_CHAMFER_3_4 |
Determines the minimum distance using horizontal, vertical or diagonal pixel steps. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CHESSBOARD |
Determines the minimum distance using horizontal, vertical, or diagonal pixel steps. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CITY_BLOCK |
Determines the minimum distance using only horizontal or vertical pixel steps. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |