public class SizeFilter extends java.lang.Object implements PostProcessor, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
max |
protected java.lang.Double |
min |
Constructor and Description |
---|
SizeFilter() |
SizeFilter(java.lang.Double min,
java.lang.Double max)
Sets the minimum-maximum range.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getMax()
Returns the maximum size limit.
|
java.lang.Double |
getMin()
Returns the minimum size limit.
|
java.lang.String |
getName()
Returns the name of the process.
|
CustomisableProcess |
getNewInstance()
Returns a new Instance of the original object.
|
BooleanImage |
processImage(BooleanImage imp)
This function carries out postprocessing.
|
void |
setMax(java.lang.Double max)
Sets the maximum size limit.
|
void |
setMin(java.lang.Double min)
Sets the minimum size limit.
|
void |
showGUI()
Shows the GUI if it exists.
|
java.lang.String |
toString() |
public SizeFilter()
public SizeFilter(java.lang.Double min, java.lang.Double max)
min
- if it is null then there is no minimum size limit.max
- if it is null then there is no maximum size limit.public CustomisableProcess getNewInstance()
CustomisableProcess
getNewInstance
in interface CustomisableProcess
public java.lang.String getName()
CustomisableProcess
getName
in interface CustomisableProcess
public void showGUI()
CustomisableProcess
showGUI
in interface CustomisableProcess
public BooleanImage processImage(BooleanImage imp)
PostProcessor
processImage
in interface PostProcessor
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Double getMin()
public void setMin(java.lang.Double min)
min
- if it is null then there is no minimum size limit.public java.lang.Double getMax()
public void setMax(java.lang.Double max)
min
- if it is null then there is no maximum size limit.