Instance Method

generateMatte(from:commandBuffer:)

Generates alpha matte at either full resolution or half the resolution of the captured image.

Declaration

func generateMatte(from frame: ARFrame, commandBuffer: MTLCommandBuffer) -> MTLTexture

Return Value

An alpha matte texture at the resolution you chose at initialization.