Contents

generateScaledMaskForImage(forInstances:from:)

Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify.

Declaration

func generateScaledMaskForImage(forInstances instances: IndexSet, from requestHandler: VNImageRequestHandler) throws -> CVPixelBuffer

Parameters

  • instances:

    The collection of instances.

  • requestHandler:

    The image request callback.

Return Value

The pixel buffer that contains the image.

See Also

Creating a Mask