generateMask(for:)
Creates a low-resolution mask from the instances you specify.
Declaration
func generateMask(for instances: IndexSet) throws -> CVPixelBufferParameters
- instances:
An indexed set of selected instances, where
0is the background.
Return Value
The pixel buffer that contains the mask.