次の方法で共有


ImageObjectRemover クラス

定義

イメージから成果物を削除できるオブジェクトを表します。

public ref class ImageObjectRemover sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AI.Imaging.ImageObjectRemoverContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ImageObjectRemover final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AI.Imaging.ImageObjectRemoverContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ImageObjectRemover : System.IDisposable
Public NotInheritable Class ImageObjectRemover
Implements IDisposable
継承
Object Platform::Object IInspectable ImageObjectRemover
属性
実装

メソッド

名前 説明
Close()

オブジェクトと関連付けられているリソースを破棄します。

CreateAsync()

ImageObjectRemover クラスの新しいインスタンスを非同期に作成します。

Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

EnsureReadyAsync()

必要なコンポーネントをダウンロードしてインストールすることで、 ImageObjectRemover を使用する準備が整っていることを確認します。

GetReadyState()

基になる言語モデルの状態を取得します。

RemoveFromImageBuffer(ImageBuffer, ImageBuffer)

(マスクに基づいて) Windows上の AI Foundry 用に最適化された非圧縮ビットマップからアーティファクトを削除し、周囲のピクセルを使用してマスク領域をバックフィルします。

RemoveFromSoftwareBitmap(SoftwareBitmap, SoftwareBitmap)

(マスクに基づいて) 非圧縮ビットマップからアーティファクトを削除し、周囲のピクセルを使用してマスク領域をバックフィルします。

適用対象

こちらもご覧ください