public class EnsembleThreshold extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
EnsembleThreshold(int[] threshold)
Initializes a new instance of the EnsembleThreshold class.
|
EnsembleThreshold(int[] threshold,
boolean invert)
Initializes a new instance of the EnsembleThreshold class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
int[] |
getThreshold()
Get threshold values.
|
boolean |
isInvert()
Check if is inverted.
|
void |
setInvert(boolean invert)
Set invert.
|
void |
setThreshold(int[] threshold)
Set threshold values.
|
public EnsembleThreshold(int[] threshold)
threshold - Threshold values.public EnsembleThreshold(int[] threshold,
boolean invert)
threshold - Threshold values.invert - Invert the threshold.public int[] getThreshold()
public void setThreshold(int[] threshold)
threshold - Threshold values.public boolean isInvert()
public void setInvert(boolean invert)
invert - True if need to invert the threshold.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.