Referenční informace k rozhraní API pro funkce AI pro zpracování obrazu v sadě Windows App SDK
Spropitné
Poskytněte zpětnou vazbu k těmto rozhraním API a jejich funkcím vytvořením nového problému v úložišti GitHub sady Windows App SDK. (Nezapomeňte zahrnout Imaging do názvu!)
Přečtěte si o rozhraních API sady Windows App SDK, která využívají umělou inteligenci (AI), a umožňují škálovat a zostřit obrázky (Obrazová superrozlišení) a identifikovat objekty v rámci obrázku (segmentace obrázků).
Další podrobnosti najdete v tématu Začínáme se službou AI imaging v sadě Windows App SDK.
Důležitý
Tato funkce ještě není k dispozici. Očekává se, že bude vydán v nadcházejícím vydání experimentálního kanálu sady Windows App SDK.
Sada Windows App SDK vývojový kanál zahrnuje rozhraní API a funkce v raných fázích vývoje. Všechna rozhraní API v experimentálním kanálu podléhají rozsáhlým revizem a zásadním změnám a je možné je kdykoli odebrat z následujících verzí. Nejsou podporovány pro použití v produkčních prostředích a aplikace, které používají experimentální funkce, nelze publikovat do Microsoft Storu.
Obor názvů Microsoft.Graphics.Imaging
Poskytuje rozhraní API pro modely strojového učení, které škálují a zostřují obrázky.
třída Microsoft.Graphics.Imaging.ImageBuffer
public sealed class ImageBuffer : System.IDisposable
Microsoft.Graphics.Imaging.ImageBuffer.Buffer – vlastnost
public Windows.Storage.Streams.IBuffer Buffer { get; }
-property-value
Microsoft.Graphics.Imaging.ImageBuffer.BufferLength – vlastnost
public uint BufferLength { get; }
-property-value
Metoda Microsoft.Graphics.Imaging.ImageBuffer.Close
// This member is not implemented in C#
Metoda Microsoft.Graphics.Imaging.ImageBuffer.CopyToBuffer(System.Byte[])
public void CopyToBuffer (byte[] values);
-parametry
-param hodnoty
Metoda Microsoft.Graphics.Imaging.ImageBuffer.CreateBufferAttachedToBitmap(Windows.Graphics.Imaging.SoftwareBitmap)
public static Microsoft.Graphics.Imaging.ImageBuffer CreateBufferAttachedToBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-parametry
-param softwareBitmap
-návraty
Metoda Microsoft.Graphics.Imaging.ImageBuffer.CreateCopyFromBitmap(Windows.Graphics.Imaging.SoftwareBitmap)
public static Microsoft.Graphics.Imaging.ImageBuffer CreateCopyFromBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-parametry
-param softwareBitmap
-návraty
Metoda 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);
-parametry
-param buffer
-param pixelFormat
-param šířka
-param výška
-návraty
Metoda 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);
-parametry
-param buffer
-param pixelFormat
-param šířka
-param výška
-param krok
-návraty
Metoda Microsoft.Graphics.Imaging.ImageBuffer.CreateSoftwareBitmap
public Windows.Graphics.Imaging.SoftwareBitmap CreateSoftwareBitmap ();
-návraty
Microsoft.Graphics.Imaging.ImageBuffer.Height – vlastnost
public uint Height { get; }
-property-value
Microsoft.Graphics.Imaging.ImageBuffer.#ctor(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32) – konstruktor
public ImageBuffer (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height);
-parametry
-param buffer
-param pixelFormat
-param šířka
-param výška
Microsoft.Graphics.Imaging.ImageBuffer.PixelFormat – vlastnost
public Microsoft.Graphics.Imaging.PixelFormat PixelFormat { get; }
-property-value
Microsoft.Graphics.Imaging.ImageBuffer.Width – vlastnost
public uint Width { get; }
-property-value
Microsoft.Graphics.Imaging.ImageObjectExtractor třída
public sealed class ImageObjectExtractor : System.IDisposable
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.Close
// This member is not implemented in C#
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithImageBufferAsync(Microsoft.Graphics.Imaging.ImageBuffer)
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithImageBufferAsync (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer);
-parametry
-param imageBuffer
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithSoftwareBitmapAsync(Windows.Graphics.Imaging.SoftwareBitmap)
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithSoftwareBitmapAsync (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-parametry
-param softwareBitmap
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.GetImageBufferObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint)
public Microsoft.Graphics.Imaging.ImageBuffer GetImageBufferObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-parametry
-param nápověda
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.GetSoftwareBitmapObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint)
public Windows.Graphics.Imaging.SoftwareBitmap GetSoftwareBitmapObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-parametry
-param nápověda
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.IsAvailable
public static bool IsAvailable ();
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectExtractor.MakeAvailableAsync
public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-návraty
Třída Microsoft.Graphics.Imaging.ImageObjectExtractorHint
public sealed class ImageObjectExtractorHint
Microsoft.Graphics.Imaging.ImageObjectExtractorHint.ExcludePoints – vlastnost
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}) konstruktor
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);
-parametry
-param includeRects
-param includePoints
-param excludePoints
Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludePoints – vlastnost
public System.Collections.Generic.IReadOnlyList<Windows.Graphics.PointInt32> IncludePoints { get; }
-property-value
Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludeRects – vlastnost
public System.Collections.Generic.IReadOnlyList<Windows.Graphics.RectInt32> IncludeRects { get; }
-property-value
Microsoft.Graphics.Imaging.ImageObjectRemover – třída
public sealed class ImageObjectRemover : System.IDisposable
Metoda Microsoft.Graphics.Imaging.ImageObjectRemover.Close
// This member is not implemented in C#
Metoda Microsoft.Graphics.Imaging.ImageObjectRemover.CreateAsync
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectRemover> CreateAsync ();
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectRemover.IsAvailable
public static bool IsAvailable ();
-návraty
Metoda Microsoft.Graphics.Imaging.ImageObjectRemover.MakeAvailableAsync
public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-návraty
Metoda 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);
-parametry
-param imageBuffer
-param imageBufferMask
-návraty
Metoda 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);
-parametry
-param softwareBitmap
-param softwareBitmapMask
-návraty
Třída Microsoft.Graphics.Imaging.ImageScaler
public sealed class ImageScaler : System.IDisposable
Metoda Microsoft.Graphics.Imaging.ImageScaler.Close
// This member is not implemented in C#
Metoda Microsoft.Graphics.Imaging.ImageScaler.CreateAsync
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageScaler> CreateAsync ();
-návraty
Metoda Microsoft.Graphics.Imaging.ImageScaler.IsAvailable
public static bool IsAvailable ();
-návraty
Metoda Microsoft.Graphics.Imaging.ImageScaler.MakeAvailableAsync
public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-návraty
Microsoft.Graphics.Imaging.ImageScaler.MaxSupportedScaleFactor – vlastnost
public int MaxSupportedScaleFactor { get; }
-property-value
Metoda 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);
-parametry
-param imageBuffer
-param šířka
-param výška
-návraty
Metoda 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);
-parametry
-param softwareBitmap
-param šířka
-param výška
-návraty
Microsoft.Graphics.Imaging.PixelFormat – výčet
public enum PixelFormat
-enum-fields
-field Nedefinováno: 0
-field Rgb24: 1
-field Argb32: 2
-field Rgba32: 3
-pole Bgra32: 4
-field Gray8: 5
Microsoft.Graphics.Imaging.SegmentationPoint – struktura
public struct SegmentationPoint
-struct-fields
-typ pole
-field x
-field y
Microsoft.Graphics.Imaging.SegmentationPointType – výčet
public enum SegmentationPointType