MLImageType
class NatML.Types.MLImageType : MLArrayType
The image type describes image features.
Creating the Type
The image type can be created with image information, or by inspecting an MLFeatureType:
From Image Info
/// <summary>
/// Create an image feature type.
/// </summary>
/// <param name="width">Image width.</param>
/// <param name="height">Image height.</param>
/// <param name="channels">Image channels.</param>
MLImageType (int width, int height, int channels = 3);INCOMPLETE.
/// <summary>
/// Create an image feature type.
/// </summary>
/// <param name="width">Image width.</param>
/// <param name="height">Image height.</param>
/// <param name="type">Image data type.</param>
MLImageType (int width, int height, Type type);INCOMPLETE.
INCOMPLETE.
From a Feature Type
INCOMPLETE.
Inspecting the Type
Refer to the MLFeatureType class for more information.
Inspecting the Image
The feature type reports information about the image it refers to:
Image Width
INCOMPLETE.
Image Height
INCOMPLETE.
Image Channels
INCOMPLETE.
Pixel Layout
The image type reports the pixel layout of the image. The pixel layout is inferred from the shape of the type. If the channels dimension is last, then the image is interleaved; otherwise, the image is planar.
Last updated
Was this helpful?