Package apple.vision.enums
Class VNImageCropAndScaleOption
- java.lang.Object
-
- apple.vision.enums.VNImageCropAndScaleOption
-
public final class VNImageCropAndScaleOption extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longCenterCropscale image maintaining aspect ratio to fit on the short side and crop centered on the long sidestatic longScaleFillstatic longScaleFillRotate90CCWscale image and rotate by 90 degrees counter clockwise to optimize portrait images to fill into landscape buffers for algorithms that are rotation agnosticstatic longScaleFitscale to size required by algorithm while maintaining the original aspect ratiostatic longScaleFitRotate90CCWscale image maintaining aspect ratio to fit on the long side but also rotate by 90 degrees counter clockwise to optimize portrait images to fit into landscape buffers for algorithms that are rotation agnostic
-
-
-
Field Detail
-
CenterCrop
public static final long CenterCrop
scale image maintaining aspect ratio to fit on the short side and crop centered on the long side- See Also:
- Constant Field Values
-
ScaleFit
public static final long ScaleFit
scale to size required by algorithm while maintaining the original aspect ratio- See Also:
- Constant Field Values
-
ScaleFill
public static final long ScaleFill
- See Also:
- Constant Field Values
-
ScaleFitRotate90CCW
public static final long ScaleFitRotate90CCW
scale image maintaining aspect ratio to fit on the long side but also rotate by 90 degrees counter clockwise to optimize portrait images to fit into landscape buffers for algorithms that are rotation agnostic- See Also:
- Constant Field Values
-
ScaleFillRotate90CCW
public static final long ScaleFillRotate90CCW
scale image and rotate by 90 degrees counter clockwise to optimize portrait images to fill into landscape buffers for algorithms that are rotation agnostic- See Also:
- Constant Field Values
-
-