Udostępnij za pośrednictwem


LearningModelPixelRange Enum

Definition

Defines the list of image nominal pixel range suppored by Windows ML. The proper value is specified in a machine learning model's metadata.

public enum class LearningModelPixelRange
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 327680)]
enum class LearningModelPixelRange
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 327680)]
public enum LearningModelPixelRange
var value = Windows.AI.MachineLearning.LearningModelPixelRange.zeroTo255
Public Enum LearningModelPixelRange
Inheritance
LearningModelPixelRange
Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (introduced in v5.0)

Fields

Name Value Description
ZeroTo255 0

The pixel range is [0...255] for 8bpp(8 Bits per Pixel) samples.

ZeroToOne 1

The [0...1] pixel data is stored normalized.

MinusOneToOne 2

The [-1...1] pixel data is stored normalized.

Remarks

If this value is not specified, the system will default to the ZeroTo255 value.

Windows Server

To use this API on Windows Server, you must use the Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

Applies to

See also