MIL_ID SrcImageBufId, | //in |
MIL_ID DstImageBufId, | //in |
MIL_INT NbIteration, | //in |
MIL_INT64 ProcMode | //in |
This function performs a binary or grayscale opening operation on the given source image for the specified number of iterations. An opening is an erosion followed by a dilation.
In binary mode, this function uses a 3x3 full rectangular structuring element; in grayscale mode, a 3x3 empty one.
The overscan pixels are automatically set to the highest possible buffer value for the erosion and the lowest possible buffer value for the dilation, which will produce the most accurate possible results for the image border pixels.
Specifies the identifier of the data 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.
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.
Specifies the number of times to iterate the operation.
When this parameter is set to 0 and ProcMode is set to M_BINARY, the source image is binarized and the result is copied into the destination image buffer.
When this parameter is set to 0 and ProcMode is set to M_GRAYSCALE, the source image is copied into the destination image buffer.
Specifies the processing mode to use. This parameter can be set to the following:
For specifying the processing
mode
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_BINARY |
Treats non-zero pixels as ones (1) during processing. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GRAYSCALE |
Uses the source image's gray values for processing. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |