Windows アプリ SDKの AI イメージング機能の API リファレンス

ヒント

Windows アプリ SDK GitHub リポジトリに新しい Issue を作成して、これらの API とその機能に関するフィードバックを提供します。 (タイトルに Imaging を含めるようにしてください!)

画像のスケーリングとシャープ化 (画像のスーパー解像度) と画像内のオブジェクトの識別 (画像のセグメント化) の両方が可能な、人工知能 (AI) によってサポートされるWindows アプリ SDK API について説明します。

詳細については、「get started with AI imaging in the Windows アプリ SDK」を参照してください。

重要

この機能はまだ使用できません。 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
-returns

Microsoft.Graphics.Imaging.ImageBuffer.CreateCopyFromBitmap(Windows.Graphics.Imaging.SoftwareBitmap) メソッド

public static Microsoft.Graphics.Imaging.ImageBuffer CreateCopyFromBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
パラメータ
-param softwareBitmap
-returns

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 buffer
-param pixelFormat
-param width
-param height
-returns

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 buffer
-param pixelFormat
-param width
-param height
-param stride
-returns

Microsoft.Graphics.Imaging.ImageBuffer.CreateSoftwareBitmap メソッド

public Windows.Graphics.Imaging.SoftwareBitmap CreateSoftwareBitmap ();
-returns

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 buffer
-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
-returns

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
-returns

Microsoft.Graphics.Imaging.ImageObjectExtractor.GetImageBufferObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint) メソッド

public Microsoft.Graphics.Imaging.ImageBuffer GetImageBufferObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
パラメータ
-param hint
-returns

Microsoft.Graphics.Imaging.ImageObjectExtractor.GetSoftwareBitmapObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint) メソッド

public Windows.Graphics.Imaging.SoftwareBitmap GetSoftwareBitmapObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
パラメータ
-param hint
-returns

Microsoft.Graphics.Imaging.ImageObjectExtractor.IsAvailable メソッド

public static bool IsAvailable ();
-returns

Microsoft.Graphics.Imaging.ImageObjectExtractor.MakeAvailableAsync メソッド

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

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 ();
-returns

Microsoft.Graphics.Imaging.ImageObjectRemover.IsAvailable メソッド

public static bool IsAvailable ();
-returns

Microsoft.Graphics.Imaging.ImageObjectRemover.MakeAvailableAsync メソッド

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

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
-returns

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
-returns

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 ();
-returns

Microsoft.Graphics.Imaging.ImageScaler.IsAvailable メソッド

public static bool IsAvailable ();
-returns

Microsoft.Graphics.Imaging.ImageScaler.MakeAvailableAsync メソッド

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

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
-returns

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
-returns

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