What does the Aperture setting in SnapMotion do?

I cannot seem to find any information on what the Aperture setting in SnapMotion does. What is the difference between Clean Aperture, Encoded Pixels and Production Aperture?

I am not an expert in the domain, but I will try to explain what I understand.

The aperture mode defines how the image is cropped, and the clean aperture is often the default value used by software. When you extract an image of a video 1920x1080 with the clean mode, the final image is 1888x1062. The reason is that software considers that the complete pixel map is not clean, and it crops the image by default. By setting the aperture mode, you can get the complete pixel map, for example.

Here is the official documentation: Apple Developer Documentation

static let cleanAperture: AVAssetImageGenerator.ApertureMode

A mode that applies both pixel aspect ratio and clean aperture.

static let encodedPixels: AVAssetImageGenerator.ApertureMode

A mode that applies neither pixel aspect ratio nor clean aperture.

static let productionAperture: AVAssetImageGenerator.ApertureMode

A mode that applies only pixel aspect ratio.

1 Like