generateScaledMask(for:scaledToImageFrom:)
Creates a high-resolution mask representing a combination of the instances you specify.
Declaration
func generateScaledMask(for instances: IndexSet, scaledToImageFrom requestHandler: ImageRequestHandler) throws -> CVPixelBufferParameters
- instances:
An indexed set of selected instances, where
0is the background. - requestHandler:
A request handler containing an image to be masked.
Return Value
The pixel buffer that contains the mask.