Platforms to show: All Mac Windows Linux Cross-Platform

MLImageSizeConstraintMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreML MBS Mac64bit Plugin 20.0 Yes No No Yes, macOS only No
Function: A list or range of sizes that augment an image constraint's default size.
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.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections


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.

Some properties using for this class:

Some examples which use this class:

Blog Entries

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

MLImageConstraintMBS   -   MLImageSizeMBS

The biggest plugin in space...

MBS Xojo Plugins