Module org.scijava.ops.image
Package org.scijava.ops.image.stats
Class IntegralMean<I extends RealType<I>>
- java.lang.Object
-
- org.scijava.ops.image.stats.IntegralMean<I>
-
- Type Parameters:
I- input type
- All Implemented Interfaces:
BiConsumer<RectangleNeighborhood<? extends Composite<I>>,DoubleType>,Computers.Arity1<RectangleNeighborhood<? extends Composite<I>>,DoubleType>
public class IntegralMean<I extends RealType<I>> extends Object implements Computers.Arity1<RectangleNeighborhood<? extends Composite<I>>,DoubleType>
Op to calculate thestats.meanfrom an integral image using a specializedCursorimplementation.- Author:
- Stefan Helfrich (University of Konstanz)
- Implementation Note:
- op names='stats.integralMean'
-
-
Constructor Summary
Constructors Constructor Description IntegralMean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(RectangleNeighborhood<? extends Composite<I>> input, DoubleType integralMean)TODOstatic intnorm(int cornerPosition)Computes L1 norm of the position of anIntegralCursor.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface org.scijava.function.Computers.Arity1
accept
-
-
-
-
Method Detail
-
compute
public void compute(RectangleNeighborhood<? extends Composite<I>> input, DoubleType integralMean)
TODO- Specified by:
computein interfaceComputers.Arity1<RectangleNeighborhood<? extends Composite<I extends RealType<I>>>,DoubleType>- Parameters:
input-integralMean-
-
norm
public static int norm(int cornerPosition)
Computes L1 norm of the position of anIntegralCursor. Computation is based on determining the number of 1 bits in the position.- Parameters:
cornerPosition- position vector of anIntegralCursorencoded as integer- Returns:
- L1 norm of the position
-
-