Module org.scijava.ops.image
Class ComputeLocalPhansalkarThresholdIntegral<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.localPhansalkar.ComputeLocalPhansalkarThresholdIntegral<T>
-
- All Implemented Interfaces:
Computers.Arity4<RectangleNeighborhood<? extends Composite<DoubleType>>,T,Double,Double,BitType>,Consumers.Arity5<RectangleNeighborhood<? extends Composite<DoubleType>>,T,Double,Double,BitType>
public class ComputeLocalPhansalkarThresholdIntegral<T extends RealType<T>> extends Object implements Computers.Arity4<RectangleNeighborhood<? extends Composite<DoubleType>>,T,Double,Double,BitType>
Local thresholding algorithm as proposed by Phansalkar et al.
This implementation improves execution speed by using integral images for the computations of mean and standard deviation in the local windows. A significant improvement can be observed for increased window sizes (
span > 10). It operates onRandomAccessibleIntervals ofRealType, i.e. explicit conversion to an integral image is not required.- Author:
- Stefan Helfrich (University of Konstanz)
- See Also:
ComputeLocalPhansalkarThreshold- Implementation Note:
- op name='threshold.localPhansalkar', priority='-101.'
-
-
Constructor Summary
Constructors Constructor Description ComputeLocalPhansalkarThresholdIntegral()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(RectangleNeighborhood<? extends Composite<DoubleType>> inputNeighborhood, T inputCenterPixel, Double k, Double r, BitType output)TODO-
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(RectangleNeighborhood<? extends Composite<DoubleType>> inputNeighborhood, T inputCenterPixel, Double k, Double r, BitType output)
TODO- Specified by:
computein interfaceComputers.Arity4<RectangleNeighborhood<? extends Composite<DoubleType>>,T extends RealType<T>,Double,Double,BitType>- Parameters:
inputNeighborhood-inputCenterPixel-k-r-output-
-
-