다음을 통해 공유


Windows 앱 SDK AI 이미징 기능에 대한 API ref

Windows 앱 SDK GitHub 리포지토리에서 새 문제를 만들어 이러한 API 및 해당 기능에 대한 피드백을 제공합니다. (제목에 이미징을 포함해야 합니다.)

이미지 크기 조정 및 선명화(이미지 슈퍼 해상도)뿐만 아니라 이미지 내의 개체를 식별할 수 있는 AI(인공 지능)를 통해 지원되는 Windows 앱 SDK API에 대해 알아봅니다(이미지 구분).

자세한 내용은 Windows 앱 SDK AI 이미징 시작을 참조하세요.

Important

이 기능은 아직 사용할 수 없습니다. 그것은 Windows 앱 SDK 곧 실험 채널 릴리스에서 제공 될 것으로 예상된다.

Windows 앱 SDK 실험 채널에는 개발 초기 단계의 API 및 기능이 포함됩니다. 실험적 채널의 모든 API는 광범위한 수정 및 호환성이 손상되는 변경이 적용되며 언제든지 후속 릴리스에서 제거될 수 있습니다. 프로덕션 환경에서는 사용할 수 없으며 실험적 기능을 사용하는 앱은 Microsoft Store에 게시할 수 없습니다.


Microsoft.Graphics.Imaging 네임스페이스

이미지의 크기를 조정하고 선명하게 하는 기계 학습 모델에 대한 API를 제공합니다.

Microsoft.Graphics.Imaging.ImageBuffer 클래스

public sealed class ImageBuffer : System.IDisposable

Microsoft.Graphics.Imaging.ImageBuffer.Buffer 속성

public Windows.Storage.Streams.IBuffer Buffer { get; }
-property-value

Microsoft.Graphics.Imaging.ImageBuffer.BufferLength 속성

public uint BufferLength { get; }
-property-value

Microsoft.Graphics.Imaging.ImageBuffer.Close 메서드

// This member is not implemented in C#

Microsoft.Graphics.Imaging.ImageBuffer.CopyToBuffer(System.Byte[]) 메서드

public void CopyToBuffer (byte[] values);
-매개 변수
-param 값

Microsoft.Graphics.Imaging.ImageBuffer.CreateBufferAttachedToBitmap(Windows.Graphics.Imaging.SoftwareBitmap) 메서드

public static Microsoft.Graphics.Imaging.ImageBuffer CreateBufferAttachedToBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-매개 변수
-param softwareBitmap
-반환

Microsoft.Graphics.Imaging.ImageBuffer.CreateCopyFromBitmap(Windows.Graphics.Imaging.SoftwareBitmap) 메서드

public static Microsoft.Graphics.Imaging.ImageBuffer CreateCopyFromBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-매개 변수
-param softwareBitmap
-반환

Microsoft.Graphics.Imaging.ImageBuffer.CreateFromBuffer(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32) 메서드

public static Microsoft.Graphics.Imaging.ImageBuffer CreateFromBuffer (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height);
-매개 변수
-param 버퍼
-param pixelFormat
-param width
-param height
-반환

Microsoft.Graphics.Imaging.ImageBuffer.CreateFromBufferWithStride(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32,System.UInt32) 메서드

public static Microsoft.Graphics.Imaging.ImageBuffer CreateFromBufferWithStride (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height, uint stride);
-매개 변수
-param 버퍼
-param pixelFormat
-param width
-param height
-param stride
-반환

Microsoft.Graphics.Imaging.ImageBuffer.CreateSoftwareBitmap 메서드

public Windows.Graphics.Imaging.SoftwareBitmap CreateSoftwareBitmap ();
-반환

Microsoft.Graphics.Imaging.ImageBuffer.Height 속성

public uint Height { get; }
-property-value

Microsoft.Graphics.Imaging.ImageBuffer.#ctor(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32) 생성자

public ImageBuffer (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height);
-매개 변수
-param 버퍼
-param pixelFormat
-param width
-param height

Microsoft.Graphics.Imaging.ImageBuffer.PixelFormat 속성

public Microsoft.Graphics.Imaging.PixelFormat PixelFormat { get; }
-property-value

Microsoft.Graphics.Imaging.ImageBuffer.Width 속성

public uint Width { get; }
-property-value

Microsoft.Graphics.Imaging.ImageObjectExtractor 클래스

public sealed class ImageObjectExtractor : System.IDisposable

Microsoft.Graphics.Imaging.ImageObjectExtractor.Close 메서드

// This member is not implemented in C#

Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithImageBufferAsync(Microsoft.Graphics.Imaging.ImageBuffer) 메서드

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithImageBufferAsync (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer);
-매개 변수
-param imageBuffer
-반환

Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithSoftwareBitmapAsync(Windows.Graphics.Imaging.SoftwareBitmap) 메서드

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithSoftwareBitmapAsync (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-매개 변수
-param softwareBitmap
-반환

Microsoft.Graphics.Imaging.ImageObjectExtractor.GetImageBufferObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint) 메서드

public Microsoft.Graphics.Imaging.ImageBuffer GetImageBufferObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-매개 변수
-param hint
-반환

Microsoft.Graphics.Imaging.ImageObjectExtractor.GetSoftwareBitmapObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint) 메서드

public Windows.Graphics.Imaging.SoftwareBitmap GetSoftwareBitmapObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-매개 변수
-param hint
-반환

Microsoft.Graphics.Imaging.ImageObjectExtractor.IsAvailable 메서드

public static bool IsAvailable ();
-반환

Microsoft.Graphics.Imaging.ImageObjectExtractor.MakeAvailableAsync 메서드

public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-반환

Microsoft.Graphics.Imaging.ImageObjectExtractorHint 클래스

public sealed class ImageObjectExtractorHint

Microsoft.Graphics.Imaging.ImageObjectExtractorHint.ExcludePoints 속성

public System.Collections.Generic.IReadOnlyList<Windows.Graphics.PointInt32> ExcludePoints { get; }
-property-value

Microsoft.Graphics.Imaging.ImageObjectExtractorHint.#ctor(Windows.Foundation.Collections.IVector{Windows.Graphics.RectInt32},Windows.Foundation.Collections.IVector{Windows.Graphics.PointInt32},Windows.Foundation.Collections.IVector{Windows.Graphics.PointInt32}) 생성자

public ImageObjectExtractorHint (System.Collections.Generic.IList<Windows.Graphics.RectInt32> includeRects, System.Collections.Generic.IList<Windows.Graphics.PointInt32> includePoints, System.Collections.Generic.IList<Windows.Graphics.PointInt32> excludePoints);
-매개 변수
-param includeRects
-param includePoints
-param excludePoints

Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludePoints 속성

public System.Collections.Generic.IReadOnlyList<Windows.Graphics.PointInt32> IncludePoints { get; }
-property-value

Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludeRects 속성

public System.Collections.Generic.IReadOnlyList<Windows.Graphics.RectInt32> IncludeRects { get; }
-property-value

Microsoft.Graphics.Imaging.ImageObjectRemover 클래스

public sealed class ImageObjectRemover : System.IDisposable

Microsoft.Graphics.Imaging.ImageObjectRemover.Close 메서드

// This member is not implemented in C#

Microsoft.Graphics.Imaging.ImageObjectRemover.CreateAsync 메서드

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectRemover> CreateAsync ();
-반환

Microsoft.Graphics.Imaging.ImageObjectRemover.IsAvailable 메서드

public static bool IsAvailable ();
-반환

Microsoft.Graphics.Imaging.ImageObjectRemover.MakeAvailableAsync 메서드

public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-반환

Microsoft.Graphics.Imaging.ImageObjectRemover.RemoveFromImageBuffer(Microsoft.Graphics.Imaging.ImageBuffer,Microsoft.Graphics.Imaging.ImageBuffer) 메서드

public Microsoft.Graphics.Imaging.ImageBuffer RemoveFromImageBuffer (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer, Microsoft.Graphics.Imaging.ImageBuffer imageBufferMask);
-매개 변수
-param imageBuffer
-param imageBufferMask
-반환

Microsoft.Graphics.Imaging.ImageObjectRemover.RemoveFromSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap,Windows.Graphics.Imaging.SoftwareBitmap) 메서드

public Windows.Graphics.Imaging.SoftwareBitmap RemoveFromSoftwareBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap, Windows.Graphics.Imaging.SoftwareBitmap softwareBitmapMask);
-매개 변수
-param softwareBitmap
-param softwareBitmapMask
-반환

Microsoft.Graphics.Imaging.ImageScaler 클래스

public sealed class ImageScaler : System.IDisposable

Microsoft.Graphics.Imaging.ImageScaler.Close 메서드

// This member is not implemented in C#

Microsoft.Graphics.Imaging.ImageScaler.CreateAsync 메서드

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageScaler> CreateAsync ();
-반환

Microsoft.Graphics.Imaging.ImageScaler.IsAvailable 메서드

public static bool IsAvailable ();
-반환

Microsoft.Graphics.Imaging.ImageScaler.MakeAvailableAsync 메서드

public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-반환

Microsoft.Graphics.Imaging.ImageScaler.MaxSupportedScaleFactor 속성

public int MaxSupportedScaleFactor { get; }
-property-value

Microsoft.Graphics.Imaging.ImageScaler.ScaleImageBuffer(Microsoft.Graphics.Imaging.ImageBuffer,System.Int32,System.Int32) 메서드

public Microsoft.Graphics.Imaging.ImageBuffer ScaleImageBuffer (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer, int width, int height);
-매개 변수
-param imageBuffer
-param width
-param height
-반환

Microsoft.Graphics.Imaging.ImageScaler.ScaleSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap,System.Int32,System.Int32) 메서드

public Windows.Graphics.Imaging.SoftwareBitmap ScaleSoftwareBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap, int width, int height);
-매개 변수
-param softwareBitmap
-param width
-param height
-반환

Microsoft.Graphics.Imaging.PixelFormat 열거형

public enum PixelFormat
-enum-fields
-field Undefined: 0
-field Rgb24: 1
-field Argb32: 2
-field Rgba32: 3
-field Bgra32: 4
-field Gray8: 5

Microsoft.Graphics.Imaging.SegmentationPoint 구조체

public struct SegmentationPoint
-struct-fields
-field type
-field x
-field y

Microsoft.Graphics.Imaging.SegmentationPointType 열거형

public enum SegmentationPointType
-enum-fields
-field Exclude: 0
-field Include: 1
-field UpperLeft: 2
-field LowerRight: 3