Class AdjustInput
java.lang.Object
net.preibisch.mvrecon.process.deconvolution.normalization.AdjustInput
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidNorms an image so that the sum over all pixels is 1.static final <T extends net.imglib2.type.numeric.RealType<T>>
doublesumImg(net.imglib2.IterableInterval<T> img)
-
Field Details
-
rnd
-
-
Constructor Details
-
AdjustInput
public AdjustInput()
-
-
Method Details
-
normToSum1
public static final void normToSum1(net.imglib2.IterableInterval<net.imglib2.type.numeric.real.FloatType> img) Norms an image so that the sum over all pixels is 1.- Parameters:
img- - theIterableIntervalto normalize
-
sumImg
public static final <T extends net.imglib2.type.numeric.RealType<T>> double sumImg(net.imglib2.IterableInterval<T> img) - Type Parameters:
T- - the pixel type- Parameters:
img- - the inputIterableInterval- Returns:
- - the sum of all pixels using
RealSum
-