Einhugur macOS Bridge plugin. |

# EinhugurVisionBridge.VNInstanceMaskObservation Class

An observation that contains an instance mask that labels instances in the mask.

EinhugurVisionBridge.VNObservation
VNInstanceMaskObservation

class EinhugurVisionBridge.VNInstanceMaskObservation

#### Constructors

VNInstanceMaskObservation (private) | Private constructor.

#### Properties

ClassName (Inherited) (desktop - console) | Returns the name of the Cocoa class under the hood as String.
Confidence (Inherited) | Returns the level of confidence in the observation’s accuracy.
Handle (Inherited) | Returns Integer handle to the native NSObject structure.
InstanceCount | Returns number of instances.
InstanceMaskAsCGImage | The resulting mask that represents all instances.
UUID (Inherited) | Returns a unique identifier assigned to the Vision observation.

#### Methods

shared Cast | Does deep cast on incoming NSObject to VNInstanceMaskObservation.
shared FromIntegerPtr | Constructs VNInstanceMaskObservation object from Integer handle coming from declares or 3rd party plugin.
GenerateMaskedImageOfInstancesAsBitmap | EXPERIMENTAL Creates a high-resolution image where everything becomes transparent black, except for the instances you specify. This version returns the image as RawBitmap.
GenerateMaskedImageOfInstancesAsCGImage | Creates a high-resolution image where everything becomes transparent black, except for the instances you specify. This version returns the image as CGImage.
GenerateScaledMaskForImageForInstancesAsBitmap | EXPERIMENTAL Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify. This version returns the image as RawBitmap.
GenerateScaledMaskForImageForInstancesAsCGImage | Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify. This version returns the image as CGImage.
shared IsVNInstanceMaskObservation | Returns true if the NSObject under the hood is VNInstanceMaskObservation or derived from VNInstanceMaskObservation.
Release (Inherited) | Releases the NSObject.
Retain (Inherited) | Retains the NSObject

#### Constants

Version = 5.0 (Inherited) |

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- iOS

#### Unsupported Platforms:

- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit