MIL_ID ContextId, | //in |
MIL_ID MaskImageId, | //in |
MIL_INT64 ControlFlag | //in |
This function allows you to set a mask for an Edge Finder context. The mask is applied to the image that uses the context. Subsequent calls to MedgeCalculate() will therefore extract edges only in the context's unmasked regions.
You can also mask edges during post-calculation. In this case, masked edges are excluded from the result buffer and subsequent calculations. Note that partially masked edges are cropped.
Specifies the Edge Finder context in which to set the mask. The Edge Finder context must have been previously allocated on the required system using MedgeAlloc().
Specifies the identifier of the image buffer used to identify the masked pixels in the Edge Finder context.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to ignore this parameter. This parameter must be set to M_NULL when removing the mask. (summarize)Specifies to ignore this parameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the image buffer to use as a mask. If the size of the mask image is greater than the source image, the mask will be clipped. A masked pixel corresponds to a non-zero value in the mask buffer. Note that this buffer can be calibrated; however, this is not necessary, since the mask is applied on a pixel basis. 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. (summarize)Specifies the image buffer to use as a mask. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; miledge.lib. |
DLL | Requires mil.dll; miledge.dll. |