Package apple.vision

Class VNInstanceMaskObservation

    • Constructor Detail

      • VNInstanceMaskObservation

        protected VNInstanceMaskObservation​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allInstances

        @NotNull
        public @NotNull NSIndexSet allInstances()
        *The IndexSet that encompases all instances except the background
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • generateMaskForInstancesError

        @Nullable
        public @Nullable CVBufferRef generateMaskForInstancesError​(@NotNull
                                                                   @NotNull NSIndexSet instances,
                                                                   @Nullable
                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        The low res mask from the selected instances in the resolution of the performed analysis which is not upscaled to the image resolution.
        Parameters:
        instances - An NSIndexSet of selected instances where 0 is the background. An empty set selects all instances but the background
        error - The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. The pixel format of kCVPixelFormatType_OneComponent32Float
      • generateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError

        @Nullable
        public @Nullable CVBufferRef generateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError​(@NotNull
                                                                                                                   @NotNull NSIndexSet instances,
                                                                                                                   @NotNull
                                                                                                                   @NotNull VNImageRequestHandler requestHandler,
                                                                                                                   boolean cropResult,
                                                                                                                   @Nullable
                                                                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        *@brief High res image with everything but the selected instances removed to transparent black.
        Parameters:
        instances - An NSIndexSet of selected instances where 0 is the background.
        croppedToInstancesExtent - Crops the image to the smallest rectangle containg all instances with remaining alpha elements. Setting this value to NO does not perform any cropping.
        error - The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed.
      • generateScaledMaskForImageForInstancesFromRequestHandlerError

        @Nullable
        public @Nullable CVBufferRef generateScaledMaskForImageForInstancesFromRequestHandlerError​(@NotNull
                                                                                                   @NotNull NSIndexSet instances,
                                                                                                   @NotNull
                                                                                                   @NotNull VNImageRequestHandler requestHandler,
                                                                                                   @Nullable
                                                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        *@brief High res mask with the selected instances preserved while everything else is removed to transparent black.
        Parameters:
        forInstances - An NSIndexSet of selected instances where 0 is the background.
        error - The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed.
      • hash_static

        public static long hash_static()
      • instanceMask

        @NotNull
        public @NotNull CVBufferRef instanceMask()
        *@brief The resulting mask represents all instances in a mask image where 0 represents the background and all other values represent the indices of the instances identified. Note that a pixel can only correspond to one instance and not multiple instances.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class VNObservation
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()