Synopsis
Perform a closing-type morphological operation.
Format
void MimClose(SrcImageBufId, DestImageBufId, NbIteration, ProcMode)
MIL_ID SrcImageBufId; | Source image buffer |
MIL_ID DestImageBufId; | Destination image buffer identifier |
long NbIteration; | Number of operation iterations |
long ProcMode; | Processing mode |
Description
This function performs a binary or grayscale closing operation on the given source image for the specified number of iterations. A closing is a dilation followed by an erosion.
The SrcImageBufId parameter specifies the identifier of the data source of the operation. This parameter must be given an image buffer identifier.
The DestImageBufId parameter specifies the identifier of the destination of the results. This parameter must be given an image buffer identifier.
The NbIteration parameter specifies the number of times to iterate the operation.
The ProcMode parameter specifies the processing mode to use. This parameter can be set to the following:
M_BINARY | Non-zero pixels will be treated as ones (1) during processing and the resulting non-zero pixels will have the maximum value of the unsigned buffer (for example, 0xff for an 8-bit buffer). |
M_GRAYSCALE | The source image’s gray values are used for processing and the resulting buffer will also contain gray values. |
In binary mode, this function uses a 3 x 3 full rectangular structuring element; in grayscale mode, a 3 x 3 empty one.
Note
This function is optimized for packed binary buffers.
Status
In-place processing is supported, but the source and destination image buffers cannot partially overlap (a situation that can only occur when using child buffers).
See also
《MimClose()函数》上有2条评论
评论已关闭。