Compartir a través de


Referencia de API para las características de creación de imágenes de IA en la SDK de Aplicaciones para Windows

Sugerencia

Proporcione comentarios sobre estas API y su funcionalidad mediante la creación de un nuevo problema en el repositorio de GitHub de SDK de Aplicaciones para Windows. (Asegúrese de incluir imágenes en el título).

Obtenga información sobre las API de SDK de Aplicaciones para Windows, respaldadas por inteligencia artificial (IA), que pueden escalar y afilar imágenes (super resolución de imágenes), así como identificar objetos dentro de una imagen (segmentación de imágenes).

Para más información, consulte Introducción a la creación de imágenes de IA en la SDK de Aplicaciones para Windows.

Importante

Esta característica aún no está disponible. Se espera que se envíe en una próxima versión experimental del canal de la SDK de Aplicaciones para Windows.

El canal experimental del SDK de Aplicaciones para Windows incluye API y características que se encuentran en las primeras fases del desarrollo. Todas las API del canal experimental están sujetas a revisiones exhaustivas y cambios importantes y se pueden eliminar de versiones posteriores en cualquier momento. No son compatibles para el uso en entornos de producción, y las aplicaciones que utilizan las características experimentales no se pueden publicar en Microsoft Store.


Espacio de nombres Microsoft.Graphics.Imaging

Proporciona API para modelos de aprendizaje automático que escalan y afilan imágenes.

Clase Microsoft.Graphics.Imaging.ImageBuffer

public sealed class ImageBuffer : System.IDisposable

Propiedad Microsoft.Graphics.Imaging.ImageBuffer.Buffer

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

Propiedad Microsoft.Graphics.Imaging.ImageBuffer.BufferLength

public uint BufferLength { get; }
-property-value

Método Microsoft.Graphics.Imaging.ImageBuffer.Close

// This member is not implemented in C#

Método Microsoft.Graphics.Imaging.ImageBuffer.CopyToBuffer(System.Byte[])

public void CopyToBuffer (byte[] values);
-Parámetros
-param values

Método Microsoft.Graphics.Imaging.ImageBuffer.CreateBufferAttachedToBitmap(Windows.Graphics.Imaging.SoftwareBitmap)

public static Microsoft.Graphics.Imaging.ImageBuffer CreateBufferAttachedToBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-Parámetros
-param softwareBitmap
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageBuffer.CreateCopyFromBitmap(Windows.Graphics.Imaging.SoftwareBitmap)

public static Microsoft.Graphics.Imaging.ImageBuffer CreateCopyFromBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-Parámetros
-param softwareBitmap
Valor devuelto

Método 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);
-Parámetros
-param buffer
-param pixelFormat
-param width
-altura del parámetro
Valor devuelto

Método 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);
-Parámetros
-param buffer
-param pixelFormat
-param width
-altura del parámetro
-param stride
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageBuffer.CreateSoftwareBitmap

public Windows.Graphics.Imaging.SoftwareBitmap CreateSoftwareBitmap ();
Valor devuelto

Propiedad Microsoft.Graphics.Imaging.ImageBuffer.Height

public uint Height { get; }
-property-value

Constructor 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);
-Parámetros
-param buffer
-param pixelFormat
-param width
-altura del parámetro

Propiedad Microsoft.Graphics.Imaging.ImageBuffer.PixelFormat

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

Propiedad Microsoft.Graphics.Imaging.ImageBuffer.Width

public uint Width { get; }
-property-value

Clase Microsoft.Graphics.Imaging.ImageObjectExtractor

public sealed class ImageObjectExtractor : System.IDisposable

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.Close

// This member is not implemented in C#

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithImageBufferAsync(Microsoft.Graphics.Imaging.ImageBuffer)

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithImageBufferAsync (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer);
-Parámetros
-param imageBuffer
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithSoftwareBitmapAsync(Windows.Graphics.Imaging.SoftwareBitmap)

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithSoftwareBitmapAsync (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-Parámetros
-param softwareBitmap
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.GetImageBufferObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint)

public Microsoft.Graphics.Imaging.ImageBuffer GetImageBufferObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-Parámetros
-param hint
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.GetSoftwareBitmapObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint)

public Windows.Graphics.Imaging.SoftwareBitmap GetSoftwareBitmapObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-Parámetros
-param hint
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.IsAvailable

public static bool IsAvailable ();
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectExtractor.MakeAvailableAsync

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

Clase Microsoft.Graphics.Imaging.ImageObjectExtractorHint

public sealed class ImageObjectExtractorHint

Propiedad Microsoft.Graphics.Imaging.ImageObjectExtractorHint.ExcludePoints

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

Constructor 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);
-Parámetros
-param includeRects
-param includePoints
-param excludePoints

Propiedad Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludePoints

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

Propiedad Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludeRects

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

Clase Microsoft.Graphics.Imaging.ImageObjectRemover

public sealed class ImageObjectRemover : System.IDisposable

Método Microsoft.Graphics.Imaging.ImageObjectRemover.Close

// This member is not implemented in C#

Método Microsoft.Graphics.Imaging.ImageObjectRemover.CreateAsync

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectRemover> CreateAsync ();
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectRemover.IsAvailable

public static bool IsAvailable ();
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageObjectRemover.MakeAvailableAsync

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

Método 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);
-Parámetros
-param imageBuffer
-param imageBufferMask
Valor devuelto

Método 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);
-Parámetros
-param softwareBitmap
-param softwareBitmapMask
Valor devuelto

Clase Microsoft.Graphics.Imaging.ImageScaler

public sealed class ImageScaler : System.IDisposable

Método Microsoft.Graphics.Imaging.ImageScaler.Close

// This member is not implemented in C#

Método Microsoft.Graphics.Imaging.ImageScaler.CreateAsync

public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageScaler> CreateAsync ();
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageScaler.IsAvailable

public static bool IsAvailable ();
Valor devuelto

Método Microsoft.Graphics.Imaging.ImageScaler.MakeAvailableAsync

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

Propiedad Microsoft.Graphics.Imaging.ImageScaler.MaxSupportedScaleFactor

public int MaxSupportedScaleFactor { get; }
-property-value

Método 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);
-Parámetros
-param imageBuffer
-param width
-altura del parámetro
Valor devuelto

Método 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);
-Parámetros
-param softwareBitmap
-param width
-altura del parámetro
Valor devuelto

Enumeración 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

Estructura Microsoft.Graphics.Imaging.SegmentationPoint

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

Enumeración Microsoft.Graphics.Imaging.SegmentationPointType

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