Platforms to show: All Mac Windows Linux Cross-Platform
MLImageSizeConstraintMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreML | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You use an MLImageSizeConstraint to express what image sizes of an image feature a model will accept as input or produce as output.
Use type to determine which properties describe what image sizes the model's image feature expects as input or produces as output.
If type is:
- TypeRange, the image feature accepts any image that has a width in pixelsWideRange and a height in pixelsHighRange.
- TypeEnumerated, the image feature accepts any image size listed in enumeratedImageSizes.
- TypeUnspecified, the MLImageSizeConstraint instance is not configured and should be ignored. Instead, use the image feature's default image size constraint, defined by pixelsWide and pixelsHigh.
- 4 properties
- property Handle as Integer
- property pixelsHighRange as NSRangeMBS
- property pixelsWideRange as NSRangeMBS
- property type as Integer
- 2 methods
- method Constructor Private
- method enumeratedImageSizes as MLImageSizeMBS()
- shared method available as Boolean
- 3 constants
Types
Constant | Value | Description |
---|---|---|
TypeEnumerated | 2 |
The image feature accepts image sizes listed in an array. |
TypeRange | 3 |
The image feature accepts image sizes defined by a range of widths and a range of heights. |
TypeUnspecified | 0 |
The image size constraint is not configured and should be ignored. |
This class has no sub classes.
Blog Entries
Release notes
- Version 20.0
- Added MLTaskMBS, MLBatchProviderMBS, MLParameterKeyMBS, MLUpdateTaskMBS, MLModelConfigurationMBS, MLArrayBatchProviderMBS, MLUpdateContextMBS, MLMetricKeyMBS, MLMultiArrayShapeConstraintMBS, MLUpdateProgressHandlersMBS, MLParameterDescriptionMBS, MLNumericConstraintMBS, MLKeyMBS, MLImageSizeMBS, MLImageSizeConstraintMBS, MLSequenceConstraintMBS, and MLSequenceMBS classes.
Some properties using for this class:
- MLImageConstraintMBS.sizeConstraint as MLImageSizeConstraintMBS
Some examples using this class:
Some related classes:
- class MLBatchProviderMBS
- class MLKeyMBS
- class MLMetricKeyMBS
- class MLModelConfigurationMBS
- class MLMultiArrayShapeConstraintMBS
- class MLParameterDescriptionMBS
- class MLParameterKeyMBS
- class MLSequenceConstraintMBS
- class MLTaskMBS
- class MLUpdateTaskMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
MLImageConstraintMBS - MLImageSizeMBS
