Module org.scijava.ops.image
Class LocalMeanThreshold<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.threshold.ApplyLocalThresholdIntegral<T,DoubleType>
-
- org.scijava.ops.image.threshold.localMean.LocalMeanThreshold<T>
-
- All Implemented Interfaces:
Computers.Arity4<RandomAccessibleInterval<T>,Shape,Double,OutOfBoundsFactory<T,RandomAccessibleInterval<T>>,RandomAccessibleInterval<BitType>>,Consumers.Arity5<RandomAccessibleInterval<T>,Shape,Double,OutOfBoundsFactory<T,RandomAccessibleInterval<T>>,RandomAccessibleInterval<BitType>>
public class LocalMeanThreshold<T extends RealType<T>> extends ApplyLocalThresholdIntegral<T,DoubleType> implements Computers.Arity4<RandomAccessibleInterval<T>,Shape,Double,OutOfBoundsFactory<T,RandomAccessibleInterval<T>>,RandomAccessibleInterval<BitType>>
Implementation of the local mean threshold method for images. Makes use of integral images for an improved execution speed of the threshold computation, depending on its parameterization.- Author:
- Jonathan Hale (University of Konstanz), Martin Horn (University of Konstanz), Stefan Helfrich (University of Konstanz)
- Implementation Note:
- op names='threshold.localMean', priority='-100.'
-
-
Constructor Summary
Constructors Constructor Description LocalMeanThreshold()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(RandomAccessibleInterval<T> input, Shape inputNeighborhoodShape, Double c, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, RandomAccessibleInterval<BitType> output)TODOvoidcomputeIntegral(RandomAccessibleInterval<T> input, RectangleShape inputNeighborhoodShape, Double c, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, Function<RandomAccessibleInterval<T>,RandomAccessibleInterval<DoubleType>> integralImageOp, Computers.Arity3<RectangleNeighborhood<? extends Composite<DoubleType>>,T,Double,BitType> computeThresholdOp, RandomAccessibleInterval<BitType> output)voidcomputeNonIntegral(RandomAccessibleInterval<T> input, Shape inputNeighborhoodShape, Double c, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, Computers.Arity3<Iterable<T>,T,Double,BitType> computeThresholdOp, RandomAccessibleInterval<BitType> output)-
Methods inherited from class org.scijava.ops.image.threshold.ApplyLocalThresholdIntegral
compute, defaultOutOfBoundsFactory, getIntegralImageOp
-
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
-
-
-
-
Method Detail
-
compute
public void compute(RandomAccessibleInterval<T> input, Shape inputNeighborhoodShape, Double c, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, RandomAccessibleInterval<BitType> output)
TODO- Specified by:
computein interfaceComputers.Arity4<RandomAccessibleInterval<T extends RealType<T>>,Shape,Double,OutOfBoundsFactory<T extends RealType<T>,RandomAccessibleInterval<T extends RealType<T>>>,RandomAccessibleInterval<BitType>>- Parameters:
input-inputNeighborhoodShape-c-outOfBoundsFactory-output-
-
computeNonIntegral
public void computeNonIntegral(RandomAccessibleInterval<T> input, Shape inputNeighborhoodShape, Double c, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, Computers.Arity3<Iterable<T>,T,Double,BitType> computeThresholdOp, RandomAccessibleInterval<BitType> output)
-
computeIntegral
public void computeIntegral(RandomAccessibleInterval<T> input, RectangleShape inputNeighborhoodShape, Double c, OutOfBoundsFactory<T,RandomAccessibleInterval<T>> outOfBoundsFactory, Function<RandomAccessibleInterval<T>,RandomAccessibleInterval<DoubleType>> integralImageOp, Computers.Arity3<RectangleNeighborhood<? extends Composite<DoubleType>>,T,Double,BitType> computeThresholdOp, RandomAccessibleInterval<BitType> output)
-
-