IMcBitMaskCreateMaskImage Method
|
|
A mask or labeled McImage is created.
Namespace:
MediaCy.IQL.Features
Assembly:
MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
SyntaxFunction CreateMaskImage (
Optional MaskImageType As mcMaskImageType = mcMaskImageType.mcmitBinaryImage,
<OptionalAttribute> ImageBounds As Object
) As McImage
Parameters
- MaskImageType (Optional)
- Type: MediaCy.IQL.FeaturesmcMaskImageType
The type of image to create, 8-bit binary (the default),
8-bit, 12-bit or 16-bit labeled. - ImageBounds (Optional)
- Type: SystemObject
If given, A LONGRECT or a length-4 array (in the order
left, top, right, bottom) giving the bounds for the created McImage.
Foreground bits that fall outside of these bounds are clipped. If not
given, then then the BoundsRect property is used.
Return Value
Type:
McImageA new mask or labeled McImage. This image will not be part of the
Images collection or visible. Set the returned McImage.Visible property True
to make the image visible.
RemarksBy default, a simple binarized 8-bit monochrome mask McImage is
created, where foreground bits have value 255 and background bits have value 0.
Flags passed in the MaskImageType argument can be used to create either an 8-bit, 12-bit
or 16-bit labeled McImage (that is one where foreground bits are marked with a
value labeling connected sets of foreground bits, or blobs).
Note that the McFeatures.CreateFeatureMask method can also create a mask or
labeled image. In that case, the foreground bits for the mask are taken from
from feature data.
See Also