Contents

generateMask(for:)

Creates a low-resolution mask from the instances you specify.

Declaration

func generateMask(for instances: IndexSet) throws -> CVPixelBuffer

Parameters

  • instances:

    An indexed set of selected instances, where 0 is the background.

Return Value

The pixel buffer that contains the mask.

See Also

Generating a mask