Class ArrayImgXYShortProjector<A extends GenericShortType<A>>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizable
net.imglib2.Point
net.imglib2.display.projector.AbstractProjector2D
net.imglib2.display.projector.specialized.ArrayImgXYShortProjector<A>
- Type Parameters:
A
-
- All Implemented Interfaces:
Projector
,EuclideanSpace
,Localizable
,Positionable
,RealLocalizable
Fast implementation of a
AbstractProjector2D
that selects a 2D data
plain from an ShortType ArrayImg. The map method implements a normalization
function. The resulting image is a ShortType ArrayImg. *- Author:
- Michael Zinsmaier, Martin Horn, Christian Dietz
-
Field Summary
Fields inherited from class net.imglib2.display.projector.AbstractProjector2D
max
Fields inherited from class net.imglib2.AbstractLocalizable
position
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
Constructor Summary
ConstructorsConstructorDescriptionArrayImgXYShortProjector
(ArrayImg<A, ShortArray> source, ArrayImg<UnsignedShortType, ShortArray> target, double normalizationFactor, double min) Normalizes an ArrayImg and writes the result into target. -
Method Summary
Methods inherited from class net.imglib2.Point
bck, equals, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString, wrap
Methods inherited from class net.imglib2.AbstractLocalizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Constructor Details
-
ArrayImgXYShortProjector
public ArrayImgXYShortProjector(ArrayImg<A, ShortArray> source, ArrayImg<UnsignedShortType, ShortArray> target, double normalizationFactor, double min) Normalizes an ArrayImg and writes the result into target. This can be used in conjunction withUnsignedByteAWTScreenImage
for direct displaying. The normalization is based on a normalization factor and a minimum value with the following dependency:
normalizationFactor = (typeMax - typeMin) / (newMax - newMin)
min = newMin
A value is normalized by: normalizedValue = (value - min) * normalizationFactor.
Additionally the result gets clamped to the type range of target (that allows playing with saturation...).- Parameters:
source
- Signed/Unsigned input datatarget
- Unsigned outputnormalizationFactor
-min
-
-
-
Method Details
-
map
public void map()
-