Core Optical, Inc.
BinaryMask MembersIndustrial Strength, Scientific Grade

The BinaryMask type exposes the following members.
Constructors

  NameDescription
Public methodBinaryMask(Int32, Int32, Boolean)
Instantiates a BinaryMask object with the specified number of rows and columns.
Public methodBinaryMask(BitmapSource, Int32, Boolean)
Instantiates a BinaryMask object based on the specified OnlineBitmapSource and a pixel threshold value.
Public methodBinaryMask(BitmapSource, Int32, Int32, Boolean)
Instantiates a BinaryMask object based on the specified OnlineBitmapSource and a pair of pixel thresholds.
Public methodBinaryMask(SourceData, Int32, Single, Boolean, Int32Rect, BinaryMask)
Instantiates a BinaryMask object based on the specified SourceData object and threshold value.
Public methodBinaryMask(SourceData, Int32, Single, Single, Boolean, Int32Rect, BinaryMask)
Instantiates a BinaryMask object based on the SourceData and a pair of threshold values.
Back to Top
Methods

  NameDescription
Public methodClone
Returns a deep clone of the current BinaryMask object.
Public methodCrop
Crops the mask to the specified cropRegion.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodStatic memberGetCircularStructuringElement
Geta a BinaryMask representing a circular structing element that can be used in a binary erosion/dilation operation.
Public methodGetCroppedMask
Returns a new BinaryMask object based on a region of interest in the current BinaryMask.
Public methodStatic memberGetFusedMask
Returns a single BinaryMask consisting of the fused masked regions of the two input masks.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetMaskedArea
Gets the total number of masked pixels in the current BinaryMask.
Public methodGetMaskImage
Gets an image of the mask with masked areas colored black and unmasked areas colored white.
Public methodGetMaskImageArray
Gets an array of Bytes portraying the mask. masked areas are 0 and unmasked areas are 255.
Public methodStatic memberGetSharedRegionMask
Returns a BinaryMask consisting of the masked regions common to the two input masks.
Public methodGetState
Retrieves the state of the mask at the specified row and column.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodGetUnMaskedArea
Gets the total number of unmasked pixels in the current BinaryMask.
Public methodInvert
Inverts the current BinaryMask, swapping the unmasked and masked regions.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodSetState
Sets the state of the mask at the specified row and column to masked (false) or unmasked (true).
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Properties

  NameDescription
Public propertyColumns
An OnlineInt32 indicating the number of columns in the mask.
Public propertyDpiX
Gets or sets the horizontal scaling of the mask image.
Public propertyDpiY
Gets or sets the vertical scaling of the mask image.
Public propertyRows
An OnlineInt32 indicating the number of rows in the mask.
Back to Top
See Also