Share via


ImageVariableDescriptorPreview 클래스

정의

더 이상 사용되지 않습니다. 이미지 설명자 정보를 나타냅니다.

public ref class ImageVariableDescriptorPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
class ImageVariableDescriptorPreview final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use ImageFeatureDescriptor instead of ImageVariableDescriptorPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
class ImageVariableDescriptorPreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
public sealed class ImageVariableDescriptorPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use ImageFeatureDescriptor instead of ImageVariableDescriptorPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public sealed class ImageVariableDescriptorPreview
Public NotInheritable Class ImageVariableDescriptorPreview
상속
Object Platform::Object IInspectable ImageVariableDescriptorPreview
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (v1.0에서 도입되었습니다.)

예제

public void Evaluator(LearningModelPreview model)
{
	// Retrieve the first input feature which is an image
    ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.FirstOrDefault(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);

    ImageVariableDescriptorPreview imageDescriptor = (ImageVariableDescriptorPreview)inputImageFeatureDescription;

	// Ensure the input feature handles the format RGBA8
    if (imageDescriptor.BitmapPixelFormat != BitmapPixelFormat.Rgba8)
    {
        Console.WriteLine($"Input Feature Name: {imageDescriptor.Name}. Format not supported.");
    }

 }

설명

경고

더 이상 사용되지 않는 API입니다. 대신 Windows.AI.MachineLearning 네임스페이스를 사용하세요.

속성

BitmapPixelFormat

더 이상 사용되지 않습니다. 이미지의 픽셀 형식을 가져옵니다.

Description

더 이상 사용되지 않습니다. 이미지 변수에 대한 설명을 가져옵니다.

Height

더 이상 사용되지 않습니다. 이미지 변수의 높이를 가져옵니다.

IsRequired

더 이상 사용되지 않습니다. 이미지 변수가 필요한지 여부를 가져옵니다.

ModelFeatureKind

더 이상 사용되지 않습니다. 변수의 데이터 형식을 가져옵니다.

Name

더 이상 사용되지 않습니다. 이미지 변수의 이름을 가져옵니다.

Width

더 이상 사용되지 않습니다. 이미지 변수의 너비를 가져옵니다.

적용 대상