## Threshold(int) {#threshold}

元の画像のピクセル強度にしきい値を設定して、バイナリ画像を作成します。

```csharp
public static PreprocessingFilter Threshold(int value)
```

| パラメータ | タイプ | 説明 |
| --- | --- | --- |
| value | Int32 | 最大値。 |

### 戻り値

BinarizeFilter オブジェクト。

### 関連項目

* class [PreprocessingFilter](../)
* 名前空間 [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter/)
* 組み立て [Aspose.OCR](../../../)

---

## Threshold(int, Rectangle) {#threshold_1}

元の画像部分のピクセル強度にしきい値を設定することに基づいて、画像のバイナリ部分を作成します。

```csharp
public static PreprocessingFilter Threshold(int value, Rectangle area)
```

| パラメータ | タイプ | 説明 |
| --- | --- | --- |
| value | Int32 | 最大値。 |
| area | Rectangle | 修正する画像の部分の座標。 |

### 戻り値

BinarizeFilter オブジェクト。

### 関連項目

* class [PreprocessingFilter](../)
* 名前空間 [Aspose.OCR.Models.PreprocessingFilters](../../preprocessingfilter/)
* 組み立て [Aspose.OCR](../../../)


