Share via


ImageTypeAttribute Class

Definition

Allows a member to be marked as a ImageDataViewType, primarily allowing one to set the shape of an image field.

public sealed class ImageTypeAttribute : Microsoft.ML.Data.DataViewTypeAttribute
type ImageTypeAttribute = class
    inherit DataViewTypeAttribute
Public NotInheritable Class ImageTypeAttribute
Inherits DataViewTypeAttribute
Inheritance
ImageTypeAttribute

Constructors

ImageTypeAttribute()

Create an image type without knowing its height and width.

ImageTypeAttribute(Int32, Int32)

Create an image type with known height and width.

Methods

Equals(DataViewTypeAttribute)

Images with the same width and height should equal.

GetHashCode()

Produce the same hash code for all images with the same height and the same width.

Register()

Applies to