Catalano.Imaging.Filters
Class EnsembleThreshold
- java.lang.Object
-
- Catalano.Imaging.Filters.EnsembleThreshold
-
- All Implemented Interfaces:
- IApplyInPlace
public class EnsembleThreshold extends java.lang.Object implements IApplyInPlace
Ensemble Threshold. The filter does image binarization using ensemble approach. Perform several threshold operations and compute majority vote in the response. Supported types: Grayscale. Coordinate System: Independent.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.int[]getThreshold()Get threshold values.booleanisInvert()Check if is inverted.voidsetInvert(boolean invert)Set invert.voidsetThreshold(int[] threshold)Set threshold values.
-
-
-
Constructor Detail
-
EnsembleThreshold
public EnsembleThreshold(int[] threshold)
Initializes a new instance of the EnsembleThreshold class.- Parameters:
threshold- Threshold values.
-
EnsembleThreshold
public EnsembleThreshold(int[] threshold, boolean invert)Initializes a new instance of the EnsembleThreshold class.- Parameters:
threshold- Threshold values.invert- Invert the threshold.
-
-
Method Detail
-
getThreshold
public int[] getThreshold()
Get threshold values.- Returns:
- Threshold values.
-
setThreshold
public void setThreshold(int[] threshold)
Set threshold values.- Parameters:
threshold- Threshold values.
-
isInvert
public boolean isInvert()
Check if is inverted.- Returns:
- True if invert the threshold, otherwise false.
-
setInvert
public void setInvert(boolean invert)
Set invert.- Parameters:
invert- True if need to invert the threshold.
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG