Catalano.Imaging.Filters
Class HysteresisThreshold
- java.lang.Object
-
- Catalano.Imaging.Filters.HysteresisThreshold
-
- All Implemented Interfaces:
- IApplyInPlace
public class HysteresisThreshold extends java.lang.Object implements IApplyInPlace
Hysteresis Threshold.Hysteresis thresholding for edge detection using two thresholds. Low thresholded edges which are connected to high thresholded edges are retained. Low thresholded edges which are non connected to high thresholded edges are removed.
-
-
Constructor Summary
Constructors Constructor and Description HysteresisThreshold()Initialize a new instance of the HysteresisThreshold class.HysteresisThreshold(int lowThreshold, int highThreshold)Initialize a new instance of the HysteresisThreshold class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intgetHighThreshold()Get High threshold.intgetLowThreshold()Get Low threshold.voidsetHighThreshold(int highThreshold)Set High threshold.voidsetLowThreshold(int lowThreshold)Set Low threshold.
-
-
-
Constructor Detail
-
HysteresisThreshold
public HysteresisThreshold()
Initialize a new instance of the HysteresisThreshold class.
-
HysteresisThreshold
public HysteresisThreshold(int lowThreshold, int highThreshold)Initialize a new instance of the HysteresisThreshold class.- Parameters:
lowThreshold- Low threshold.highThreshold- High threshold.
-
-
Method Detail
-
getLowThreshold
public int getLowThreshold()
Get Low threshold.- Returns:
- Threshold value.
-
setLowThreshold
public void setLowThreshold(int lowThreshold)
Set Low threshold.- Parameters:
lowThreshold- Threshold value.
-
getHighThreshold
public int getHighThreshold()
Get High threshold.- Returns:
- Threshold value.
-
setHighThreshold
public void setHighThreshold(int highThreshold)
Set High threshold.- Parameters:
highThreshold- Threshold value.
-
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