> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageLoadingParams オブジェクト (IImageLoadingParams インターフェイス)

このオブジェクトには、認識の前に画像をどのように前処理するかを指定するさまざまな属性が含まれています。画像の前処理は、[バッチ](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md)への追加時に行えます。**ImageLoadingParams** オブジェクトを使用すると、前処理の対象となる画像に対して、回転、鏡像反転、ノイズ除去、解像度補正、傾き補正などの変換を実行できます。

## Properties

<table width="100%">
  <thead>
    <tr>
      <th>
        **名前**
      </th>

      <th>
        **型**
      </th>

      <th>
        **説明**
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **AutocorrectResolution**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        ロードする画像の解像度を自動補正するかどうかを指定します。このプロパティのデフォルト値は TRUE です。
      </td>
    </tr>

    <tr>
      <td>
        **CorrectSkewByBlackSeparators**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        黒い区切りに基づいて画像の傾き角度を補正するかどうかを指定します。黒い区切りとは、画像上にある水平または垂直の黒い線のことです。このプロパティのデフォルト値は TRUE です。
      </td>
    </tr>

    <tr>
      <td>
        **CorrectSkewByBlackSquares**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        いわゆる「黒い四角形」に基づいて画像の傾き角度を補正するかどうかを指定します。黒い四角形はフォーム上によく印刷されています。このプロパティを TRUE に設定するのは、
        フォームの画像を処理する場合のみにしてください。それ以外の場合に設定すると、誤った結果が得られる可能性があります。

        このプロパティのデフォルト値は TRUE です。
      </td>
    </tr>

    <tr>
      <td>
        **CorrectSkewByText**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        テキスト行に基づいて画像の傾き角度を補正するかどうかを指定します。このプロパティのデフォルト値は TRUE です。
      </td>
    </tr>

    <tr>
      <td>
        **DiscardImageColor**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        カラー画像およびグレー画像を白黒に変換するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **ImageRotation**
      </td>

      <td>
        [**RotationTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rotationtypeenum.md)
      </td>

      <td>
        画像のロード時に適用する回転の種類を指定します。このプロパティのデフォルト値は RT\_NoRotation です。
      </td>
    </tr>

    <tr>
      <td>
        **InvertImage**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        画像の色を反転するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **MirrorImage**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        画像を鏡像反転するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **OfficeConverterSettings**
      </td>

      <td>
        [**OfficeConverterSettings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/officeconvertersettings.md)

        , [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        オフィス文書コンバーターの設定を取得します。これらの設定は、入力画像を開くメソッドと同じメソッドで、さまざまな形式の電子文書をインポートする際に使用されます。
      </td>
    </tr>

    <tr>
      <td>
        **OverwriteResolution**
      </td>

      <td>
        [**Boolean**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        準備済み画像の解像度を上書きできます。

        このプロパティは、&#x20;

        [**AutocorrectResolution**](#autocorrectresolution)

        &#x20;

        プロパティによって自動的に取得された解像度では十分な結果が得られない場合に使用します。

        解像度は、**XResolutionToOverwrite** および** YResolutionToOverwrite** プロパティの値に応じて上書きされます。この場合、新しい解像度が
        画像の前処理 (二値化、傾き補正など) に使用されます。&#x20;

        [**IImageDocument::ChangeResolution**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument-changeresolution.md)

        も参照してください。

        **注:** エクスポート用の画像解像度を指定するには、&#x20;

        [**ImageExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageexportparams.md)

        &#x20;

        オブジェクトの&#x20;

        [**Resolution**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageexportparams.md#resolution)

        &#x20;

        プロパティを使用します。

        このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **ReduceISONoise**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        高ISO感度で撮影された画像のノイズを低減するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **RemoveColorMarks**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        色付きインクによる印影や署名などのカラーマークを画像から除去するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **RemoveGarbage**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        ロードする画像から小さなごみ (一定のサイズより小さい余分なドット) を除去するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **SourceContentReuseMode**
      </td>

      <td>
        [**SourceContentReuseModeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/sourcecontentreusemodeenum.md)
      </td>

      <td>
        ソース PDF ファイルの内容を再利用する際のモードを指定します。このプロパティのデフォルト値は CRM\_Auto です。
      </td>
    </tr>

    <tr>
      <td>
        **TreatImageAsPhoto**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        処理対象の画像を写真として扱うかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **UseAutocrop**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        画像を自動トリミングするかどうかを指定します。このプロパティを TRUE に設定すると、次の処理が行われます。

        <ul>
          <li>画像の境界が検出されます</li>
          <li>抽出対象のデータを含む領域が切り抜かれます</li>
          <li>傾きと歪みが補正されます。</li>
        </ul>

        デフォルトでは、このプロパティは FALSE に設定されています。
      </td>
    </tr>

    <tr>
      <td>
        **UseImageEnhancementProfile**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        画像の前処理に画像補正プロファイルを使用するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **UseSpecialProfileForPhoto**
      </td>

      <td>
        [**ブール型**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        写真の前処理向けに調整された画像補正プロファイルを使用するかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **WhitenBackground**
      </td>

      <td>
        [**Boolean**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        画像の背景を白くするかどうかを指定します。このプロパティのデフォルト値は FALSE です。
      </td>
    </tr>

    <tr>
      <td>
        **XResolutionToOverwrite**
      </td>

      <td>
        [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        元の画像の水平解像度を dpi 単位で指定します。この値は、元の画像の解像度が指定されていないか
        正しくない場合に、準備済み画像の解像度を上書きするために使用されます。ただし、**OverwriteResolution** プロパティが TRUE の場合に限ります。ABBYY FlexiCapture SDK は水平解像度と垂直解像度が等しい準備済み画像を処理対象とするため、
        プログラムは画像を引き伸ばして、準備済み画像の水平解像度と垂直解像度を同一の値、すなわち&#x20;
        **XResolutionToOverwrite** と **YResolutionToOverwrite** のうち大きい方の値に揃えます。

        このプロパティのデフォルト値は 300 です。
      </td>
    </tr>

    <tr>
      <td>
        **YResolutionToOverwrite**
      </td>

      <td>
        [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)
      </td>

      <td>
        元の画像の垂直解像度を dpi 単位で指定します。この値は、元の画像の解像度が指定されていないか
        正しくない場合に、準備済み画像の解像度を上書きするために使用されます。ただし、**OverwriteResolution** プロパティが TRUE の場合に限ります。ABBYY FlexiCapture SDK は水平解像度と垂直解像度が等しい準備済み画像を処理します。
        そのため、プログラムは画像を引き伸ばして、準備済み画像の水平解像度と垂直解像度を同一にし、&#x20;
        **XResolutionToOverwrite** と **YResolutionToOverwrite** のうち大きいほうの値と等しくなるようにします。

        デフォルトでは、このプロパティは 300 に設定されています。
      </td>
    </tr>
  </tbody>
</table>

## メソッド

| **名前** | **説明** |
| - | - |
| [**CopyFrom**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/copyfrom.md) | 現在のオブジェクトのプロパティを、別のオブジェクトの対応するプロパティの値で初期化します。 |
| [**SetImageEnhancementProfile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageloadingparams-setimageenhancementprofile.md) | 指定した画像補正プロファイルを画像に適用します。 |
| [**SetSpecialProfileForPhoto**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageloadingparams-setspecialprofileforphoto.md) | 写真の前処理向けに調整された事前定義の画像補正プロファイルを画像に適用します。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/ImageLoadingParams.gif?s=e187b601f9b2feaf2a39df929be9da78)

## 出力パラメーター

このオブジェクトは、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateImageLoadingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドの出力パラメーターです。

## 入力パラメーター

このオブジェクトは、[**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**AddImages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-addimages.md) メソッドに入力パラメーターとして渡されます。

関連項目
[**ProjectProperties**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/projectproperties.md)

[**ImageImportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageimportparams.md)

[**ImageGroupingParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagegroupingparams.md)

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
