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 ,主要是允許一個成員設定影像欄位的形狀。

適用於