Platforms to show: All Mac Windows Linux Cross-Platform

Back to VNGenerateImageFeaturePrintRequestMBS class.

VNGenerateImageFeaturePrintRequestMBS.VNImageCropAndScaleOptionCenterCrop = 0

Type Topic Plugin Version
const Vision MBS MacFrameworks Plugin 19.4
One of the different ways Vision can crop and scale an input image.

A scaling option that maintains aspect ratio to fit the short side, and crops the centered image on its long side.

VNGenerateImageFeaturePrintRequestMBS.VNImageCropAndScaleOptionScaleFill = 2

Type Topic Plugin Version
const Vision MBS MacFrameworks Plugin 19.4
One of the different ways Vision can crop and scale an input image.

A scaling option that scales an image proportionally so that its shorter dimension fills the canvas, potentially cropping along the longer dimension.

VNGenerateImageFeaturePrintRequestMBS.VNImageCropAndScaleOptionScaleFit = 1

Type Topic Plugin Version
const Vision MBS MacFrameworks Plugin 19.4
One of the different ways Vision can crop and scale an input image.

An option that scales an image to fit the input image dimensions while maintaining aspect ratio.
This option ensures the entire image fits into the Vision algorithm's input image dimensions by scaling down the longer dimension until it fits. This option pads the image along the shorter dimension to maintain aspect ratio.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...