MIL_ID SrcImageBufId, | //in |
MIL_ID DstImageBufId, | //in |
MIL_INT NbIteration, | //in |
MIL_INT64 ProcMode | //in |
This function performs a binary or grayscale thinning on the specified source image for the specified number of iterations.
The overscan pixels are automatically set to the highest possible buffer value, 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.
The source image buffer must be unsigned monochrome 8- or 16-bit.
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 image buffer must be unsigned monochrome 8- or 16-bit.
Specifies the number of times to iterate the operation. This parameter must be set to one of the values below.
Note that when ProcMode is set to M_BINARY3, NbIteration must be set to 0 or M_TO_SKELETON.
For specifying the number of times to
iterate the operation
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_TO_SKELETON |
Specifies that every object will be reduced to its skeleton. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the number of iterations. (more details...) |
Specifies the processing mode to use. This parameter must be set to one of the values below.
For specifying the processing mode to
use
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_BINARY |
Treats non-zero pixels as ones (1) during processing. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Both the source and destination buffers must be packed binary. |
† | d | |||||||||||||||||||||||||||||||||||||
M_BINARY2 |
Treats non-zero pixels as ones (1) during processing and produces a result that better preserves the original topology of the objects in the source image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Both the source and destination buffers must be 8-bit. |
† | d | |||||||||||||||||||||||||||||||||||||
M_BINARY3 |
Treats non-zero pixels as ones (1) during processing and produces a faster result than other processing modes. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_GRAYSCALE |
Uses the source image's gray values for processing. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |