public class ConfigThreshold extends java.lang.Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
boolean |
down
If true then it thresholds down
|
double |
fixedThreshold
The threshold to apply to the image.
|
int |
maxPixelValue
Maximum pixel value.
|
int |
minPixelValue
Minimum pixel value.
|
float |
nickK
Threshold for NICK.
|
float |
savolaK
Positive parameter used to tune threshold in Savola.
|
double |
scale
Scale factor applied to computed threshold.
|
boolean |
thresholdFromLocalBlocks
If a block threshold is being used then this indicates if the threshold should be computed
using a local 3x3 block region (true) or just one block (false).
|
ThresholdType |
type
Which algorithm to use
|
ConfigLength |
width
Radius of adaptive threshold.
|
| Constructor and Description |
|---|
ConfigThreshold() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidity()
Checks to see if the configuration is valid.
|
static ConfigThreshold |
fixed(double value) |
static ConfigThreshold |
global(ThresholdType type) |
static <T extends ConfigThreshold> |
local(ThresholdType type,
ConfigLength width) |
static <T extends ConfigThreshold> |
local(ThresholdType type,
int width) |
java.lang.String |
toString() |
public ThresholdType type
public double fixedThreshold
public double scale
public boolean down
public ConfigLength width
public float savolaK
ThresholdType.LOCAL_SAVOLApublic float nickK
ThresholdType.LOCAL_NICKpublic int minPixelValue
public int maxPixelValue
public boolean thresholdFromLocalBlocks
public static ConfigThreshold fixed(double value)
public static ConfigThreshold global(ThresholdType type)
public static <T extends ConfigThreshold> T local(ThresholdType type, int width)
public static <T extends ConfigThreshold> T local(ThresholdType type, ConfigLength width)
public void checkValidity()
ConfigurationcheckValidity in interface Configurationpublic java.lang.String toString()
toString in class java.lang.Object