NatML
Search…
MLImageType
class NatSuite.ML.Types.MLImageType : MLArrayType
The image type describes images.

Creating the Type

1
/// <summary>
2
/// Create an image feature type.
3
/// </summary>
4
/// <param name="width">Image width.</param>
5
/// <param name="height">Image height.</param>
6
MLImageType (int width, int height);
Copied!
INCOMPLETE.
1
/// <summary>
2
/// Create an image feature type.
3
/// </summary>
4
/// <param name="width">Image width.</param>
5
/// <param name="height">Image height.</param>
6
/// <param name="type">Image data type.</param>
7
MLImageType (int width, int height, Type type);
Copied!
INCOMPLETE.
Currently, NatML only supports prediction image byte image types.
1
/// <summary>
2
/// Create an image feature type.
3
/// </summary>
4
/// <param name="name">Feature name.</param>
5
/// <param name="type">Image data type.</param>
6
/// <param name="shape">Image feature shape.</param>
7
MLImageType (string name, Type type, int[] shape);
Copied!
INCOMPLETE.

Inspecting the Type

1
/// <summary>
2
/// Feature name.
3
/// </summary>
4
string name { get; }
5
6
/// <summary>
7
/// Feature data type.
8
/// This will typically be a numeric type.
9
/// </summary>
10
Type dataType { get; }
Copied!
Refer to the MLFeatureType class for more information.

Inspecting the Image

1
/// <summary>
2
/// Image width.
3
/// </summary>
4
int width { get; }
5
6
/// <summary>
7
/// Image height.
8
/// </summary>
9
int height { get; }
10
11
/// <summary>
12
/// Image channels.
13
/// </summary>
14
int channels { get; }
Copied!
The image type provides convenience accessors for the image width, height, and channel count.
Last modified 1d ago