PreprocessingFilter

Inheritance: java.lang.Object

public class PreprocessingFilter

画像処理コマンドの基底クラスです。

コンストラクタ

コンストラクタ説明
PreprocessingFilter()

フィールド

フィールド説明
Empty

メソッド

メソッド説明
AutoDenoising()画像を改善しノイズを低減するために、追加のニューラルネットワークの使用を可能にします。
AutoDenoising(Rectangle area)画像の一部を改善しノイズを低減するために、追加のニューラルネットワークの使用を可能にします。
AutoDewarping()画像の幾何学的歪みを自動的に補正します。
AutoSkew()画像の自動傾き補正を可能にします。
AutoSkew(Rectangle area)画像の一部の自動傾き補正を可能にします。
Binarize()画像を白黒画像に変換します。
Binarize(Rectangle area)画像の一部を白黒画像に変換します。
BinarizeAndDilate()膨張処理は画像内のオブジェクトの境界にピクセルを追加します。
BinarizeAndDilate(Rectangle area)膨張処理は画像の一部にあるオブジェクトの境界にピクセルを追加します。
ContrastCorrection()コントラスト補正フィルタ。
ContrastCorrection(Rectangle area)画像の一部用コントラスト補正フィルタ。
Invert()文書画像の色を自動的に反転させます。
Invert(Rectangle area)画像の一部の色を自動的に反転させます。
Median()メディアンフィルタは画像の各要素を走査し、各ピクセルを隣接ピクセルの中央値に置き換えます。
Median(Rectangle area)中央値フィルタは画像の一部の各要素を通過し、各ピクセルを隣接ピクセルの中央値に置き換えます。
Resize(int width, int height)画像のリスケール - 解像度を拡大または縮小します。
Resize(int width, int height, InterpolationFilterType type)画像のリスケール - 解像度を拡大または縮小します。
Rotate(float angle)元画像を回転します。
Rotate(float angle, Rectangle area)画像の一部を回転します。
Scale(float ratio)画像のリスケール - 解像度を拡大または縮小します。
Scale(float ratio, InterpolationFilterType type)画像のリスケール - 解像度を拡大または縮小します。
Threshold(int value)元画像のピクセル強度に閾値を設定して二値画像を作成します。
Threshold(int value, Rectangle area)元画像の一部のピクセル強度に閾値を設定して二値画像の一部を作成します。
ToGrayscale()画像をグレースケール画像に変換します。
add(PreprocessingFilter filter)新しいフィルタをコレクションに追加して、すべての操作をさらに実行します。
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PreprocessingFilter()

public PreprocessingFilter()

Empty

public static final PreprocessingFilter Empty

AutoDenoising()

public static PreprocessingFilter AutoDenoising()

追加のニューラルネットワークを使用して画像を改善し、ノイズを低減できるようにします。スキャンアーティファクト、歪み、スポット、フレア、グラデーション、異物がある画像に有用です。

Returns: PreprocessingFilter - AutoDenoisingFilter object.

AutoDenoising(Rectangle area)

public static PreprocessingFilter AutoDenoising(Rectangle area)

追加のニューラルネットワークを使用して画像の一部を改善し、ノイズを低減できるようにします。スキャンアーティファクト、歪み、スポット、フレア、グラデーション、異物がある画像に有用です。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - AutoDenoisingFilter object.

AutoDewarping()

public static PreprocessingFilter AutoDewarping()

画像の幾何学的歪みを自動的に補正します。非常にリソースを多く消費します!

Returns: PreprocessingFilter - AutoDewarpingFilter object.

AutoSkew()

public static PreprocessingFilter AutoSkew()

画像の自動傾き補正を可能にします。

Returns: PreprocessingFilter - AutoSkewFilter object.

AutoSkew(Rectangle area)

public static PreprocessingFilter AutoSkew(Rectangle area)

画像の一部の自動傾き補正を可能にします。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - AutoSkewFilter object.

Binarize()

public static PreprocessingFilter Binarize()

画像を白黒画像に変換します。二値画像は、ピクセルが 2 つの強度値しか持たない画像です。通常は白黒で表示されます。数値的には、黒が 0、白が 255 とすることが一般的です。二値画像は画像の自動閾値処理によって生成されます。

Returns: PreprocessingFilter - BinarizeFilter object.

Binarize(Rectangle area)

public static PreprocessingFilter Binarize(Rectangle area)

画像の一部を白黒画像に変換します。二値画像は、ピクセルが 2 つの強度値しか持たない画像です。通常は白黒で表示されます。数値的には、黒が 0、白が 255 とすることが一般的です。二値画像は画像の自動閾値処理によって生成されます。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - BinarizeFilter object.

BinarizeAndDilate()

public static PreprocessingFilter BinarizeAndDilate()

膨張処理は画像内のオブジェクトの境界にピクセルを追加します。

Returns: PreprocessingFilter - DilateFilter object.

BinarizeAndDilate(Rectangle area)

public static PreprocessingFilter BinarizeAndDilate(Rectangle area)

膨張処理は画像の一部にあるオブジェクトの境界にピクセルを追加します。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - DilateFilter object.

ContrastCorrection()

public static PreprocessingFilter ContrastCorrection()

コントラスト補正フィルタ。

Returns: PreprocessingFilter - ContrastCorrectionFilter object.

ContrastCorrection(Rectangle area)

public static PreprocessingFilter ContrastCorrection(Rectangle area)

画像の一部用コントラスト補正フィルタ。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - ContrastCorrectionFilter object.

Invert()

public static PreprocessingFilter Invert()

文書画像の色を自動的に反転させます。

Returns: PreprocessingFilter - InvertFilter object.

Invert(Rectangle area)

public static PreprocessingFilter Invert(Rectangle area)

画像の一部の色を自動的に反転させます。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - InvertFilter object.

Median()

public static PreprocessingFilter Median()

メディアンフィルタは画像の各要素を走査し、各ピクセルを隣接ピクセルの中央値に置き換えます。

Returns: PreprocessingFilter - MedianFilter object.

Median(Rectangle area)

public static PreprocessingFilter Median(Rectangle area)

中央値フィルタは画像の一部の各要素を通過し、各ピクセルを隣接ピクセルの中央値に置き換えます。

Parameters:

パラメータタイプ説明
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - MedianFilter object.

Resize(int width, int height)

public static PreprocessingFilter Resize(int width, int height)

画像のリスケール - 解像度を拡大または縮小します。InterpolationFilterType = bilinear または nearest neighbor @see InterpolationFilterType

Parameters:

パラメータタイプ説明
int画像の新しい幅。
高さint画像の新しい高さ。

Returns: PreprocessingFilter - ResizeFilter object.

Resize(int width, int height, InterpolationFilterType type)

public static PreprocessingFilter Resize(int width, int height, InterpolationFilterType type)

画像のリスケール - 解像度を拡大または縮小します。

Parameters:

パラメータタイプ説明
int画像の新しい幅。
高さint画像の新しい高さ。
typeInterpolationFilterTypeInterpolationFilterType @see InterpolationFilterType

Returns: PreprocessingFilter - ResizeFilter object.

Rotate(float angle)

public static PreprocessingFilter Rotate(float angle)

元画像を回転します。

Parameters:

パラメータタイプ説明
角度float回転角度。値は -360 から 360 までです。

Returns: PreprocessingFilter - RotateFilter object.

Rotate(float angle, Rectangle area)

public static PreprocessingFilter Rotate(float angle, Rectangle area)

画像の一部を回転します。

Parameters:

パラメータタイプ説明
角度float回転角度。値は -360 から 360 までです。
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - RotateFilter object.

Scale(float ratio)

public static PreprocessingFilter Scale(float ratio)

画像のリスケール - 画像解像度を拡大または縮小します。InterpolationFilterType のデフォルトはバイリニアまたは最近傍です @see InterpolationFilterType

Parameters:

パラメータタイプ説明
比率floatスケーリング係数。縮小する場合は 0.1 から 1、拡大する場合は 1 から 10 が推奨値です。

Returns: PreprocessingFilter - ScaleFilter object.

Scale(float ratio, InterpolationFilterType type)

public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)

画像のリスケール - 解像度を拡大または縮小します。

Parameters:

パラメータタイプ説明
比率floatスケーリング係数。縮小する場合は 0.1 から 1、拡大する場合は 1 から 10 が推奨値です。
typeInterpolationFilterTypeInterpolationFilterType @see InterpolationFilterType

Returns: PreprocessingFilter - ScaleFilter object.

Threshold(int value)

public static PreprocessingFilter Threshold(int value)

元画像のピクセル強度に閾値を設定して二値画像を作成します。

Parameters:

パラメータタイプ説明
int最大値です。

Returns: PreprocessingFilter - BinarizeFilter object.

Threshold(int value, Rectangle area)

public static PreprocessingFilter Threshold(int value, Rectangle area)

元画像の一部のピクセル強度に閾値を設定して二値画像の一部を作成します。

Parameters:

パラメータタイプ説明
int最大値です。
領域java.awt.Rectangle前処理用の矩形。

Returns: PreprocessingFilter - BinarizeFilter object.

ToGrayscale()

public static PreprocessingFilter ToGrayscale()

画像をグレースケール画像に変換します。グレースケール画像は画像内の明るさを 256 段階(0〜255)で表現します。

Returns: PreprocessingFilter - GrayscaleFilter object.

add(PreprocessingFilter filter)

public void add(PreprocessingFilter filter)

新しいフィルタをコレクションに追加して、すべての操作をさらに実行します。コレクション内の一貫性が重要です。

Parameters:

パラメータタイプ説明
filterPreprocessingFilterフィルタリストに追加する新しい操作です。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメータタイプ説明
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

パラメータタイプ説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメータタイプ説明
arg0long
arg1int