Module org.scijava.ops.image
Class ComputeLocalSauvolaThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.localSauvola.ComputeLocalSauvolaThreshold<T>
-
- All Implemented Interfaces:
Computers.Arity4<Iterable<T>,T,Double,Double,BitType>,Consumers.Arity5<Iterable<T>,T,Double,Double,BitType>
public class ComputeLocalSauvolaThreshold<T extends RealType<T>> extends Object implements Computers.Arity4<Iterable<T>,T,Double,Double,BitType>
This is a modification of Niblack's thresholding method. In contrast to the recommendation on parameters in the publication, this implementation operates on normalized images (to the [0, 1] range). Hence, the r parameter defaults to half the possible standard deviation in a normalized image, namely 0.5.
Sauvola J. and Pietaksinen M. (2000) "Adaptive Document Image Binarization" Pattern Recognition, 33(2): 225-236. PDF
Original ImageJ implementation by Gabriel Landini.
- Author:
- Stefan Helfrich (University of Konstanz)
- Implementation Note:
- op names='threshold.localSauvola', priority='-100.'
-
-
Constructor Summary
Constructors Constructor Description ComputeLocalSauvolaThreshold()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(Iterable<T> inputNeighborhood, T inputCenterPixel, Double k, Double r, BitType output)TODOstatic <T extends RealType<T>>
voidcompute(Iterable<T> inputNeighborhood, T inputCenterPixel, Double k, Double r, Computers.Arity1<Iterable<T>,DoubleType> meanOp, Computers.Arity1<Iterable<T>,DoubleType> stdDeviationOp, BitType output)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.function.Computers.Arity4
accept
-
Methods inherited from interface org.scijava.function.Consumers.Arity5
andThen
-
-
-
-
Field Detail
-
DEFAULT_K
public static final double DEFAULT_K
- See Also:
- Constant Field Values
-
DEFAULT_R
public static final double DEFAULT_R
- See Also:
- Constant Field Values
-
-
Method Detail
-
compute
public void compute(Iterable<T> inputNeighborhood, T inputCenterPixel, Double k, Double r, BitType output)
TODO
-
compute
public static <T extends RealType<T>> void compute(Iterable<T> inputNeighborhood, T inputCenterPixel, Double k, Double r, Computers.Arity1<Iterable<T>,DoubleType> meanOp, Computers.Arity1<Iterable<T>,DoubleType> stdDeviationOp, BitType output)
-
-