public class ThresholdLocalSquareBorder
extends java.lang.Object
The algorithm has the following steps:
1) Compute local histogram from square region around the current pixel.
2) Compute the lower and upper intensity values from user configurable percentiles.
3) See if there is sufficient difference between pixel values, if not then it is assumed to be textureless
4a) If textureless mark as 1
4b) If not textureless set a threshold to be the average of the lower and upper values.
If threshold down then 1 = value ≤ threshold. Threshold up, 1 = value > threshold.
| Constructor and Description |
|---|
ThresholdLocalSquareBorder(boolean thresholdDown,
int regionWidth,
int histogramLength,
int minimumSpread,
double lowerFrac,
double upperFrac) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHistogramLength() |
void |
process(ImageUInt8 input,
ImageUInt8 output) |
void |
processInner() |
void |
processSides()
Process the border.
|
public ThresholdLocalSquareBorder(boolean thresholdDown,
int regionWidth,
int histogramLength,
int minimumSpread,
double lowerFrac,
double upperFrac)
public void process(ImageUInt8 input, ImageUInt8 output)
public void processInner()
public void processSides()
public int getHistogramLength()