Share via


ImageObjectExtractor Class

Definition

Represents an object that can extract artifacts from an image.

public ref class ImageObjectExtractor sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AI.Imaging.ImageObjectExtractorContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ImageObjectExtractor final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AI.Imaging.ImageObjectExtractorContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ImageObjectExtractor : System.IDisposable
Public NotInheritable Class ImageObjectExtractor
Implements IDisposable
Inheritance
Object Platform::Object IInspectable ImageObjectExtractor
Attributes
Implements

Methods

Name Description
Close()

Disposes of the object and associated resources.

CreateWithImageBufferAsync(ImageBuffer)

Asynchronously creates an ImageObjectExtractor using an uncompressed bitmap, optimized for AI Foundry on Windows.

CreateWithSoftwareBitmapAsync(SoftwareBitmap)

Asynchronously creates an ImageObjectExtractor using an uncompressed bitmap.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EnsureReadyAsync()

Ensures that the ImageObjectExtractor is ready for use by downloading and installing any required components.

GetImageBufferObjectMask(ImageObjectExtractorHint)

Retrieves an uncompressed bitmap, optimized for AI Foundry on Windows, as a Gray8 mask used to extract artifacts from an image.

GetReadyState()

Retrieves the state of the underlying language model.

GetSoftwareBitmapObjectMask(ImageObjectExtractorHint)

Retrieves an uncompressed bitmap as a Gray8 mask used to extract artifacts from an image.

Applies to

See also