ImageTypeAttribute 类

定义

允许成员标记为一个 ImageDataViewType成员,主要允许一个成员设置图像字段的形状。

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

构造函数

ImageTypeAttribute()

创建图像类型,而无需知道其高度和宽度。

ImageTypeAttribute(Int32, Int32)

创建具有已知高度和宽度的图像类型。

方法

Equals(DataViewTypeAttribute)

具有相同宽度和高度的图像应相等。

GetHashCode()

为具有相同高度和相同宽度的所有图像生成相同的哈希代码。

Register()

允许成员标记为一个 ImageDataViewType成员,主要允许一个成员设置图像字段的形状。

适用于