Instance Method

generateMatteFromFrame:commandBuffer:

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

Declaration

- (id<MTLTexture>)generateMatteFromFrame:(ARFrame *)frame commandBuffer:(id<MTLCommandBuffer>)commandBuffer;

Return Value

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