Package omeis.providers.re.metadata
Class StatsFactory
- java.lang.Object
-
- omeis.providers.re.metadata.StatsFactory
-
public class StatsFactory extends java.lang.ObjectComputes two types of statistics: The PixelsStats and the location stats. The location stats determine the location of the pixels' values in order to set the inputWindow and the noiseReduction flag. This flag will then be used when we map the pixels intensity values onto the device space.- Since:
- OME2.2
-
-
Constructor Summary
Constructors Constructor Description StatsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeLocationStats(ome.model.core.Pixels metadata, ome.io.nio.PixelBuffer pixelsData, omeis.providers.re.data.PlaneDef pd, int index)Helper object to determine the location of the pixels' values, the inputWindow i.e.doublegetInputEnd()Returns the input end.doublegetInputStart()Returns the input start.double[]getLocationStats()Returns the statistics.double[]initPixelsRange(ome.model.core.Pixels metadata)Determines the minimum and maximum corresponding to the passed pixels.booleanisNoiseReduction()Returnstrueif the flag is on,falseotherwise.
-
-
-
Method Detail
-
initPixelsRange
public double[] initPixelsRange(ome.model.core.Pixels metadata)
Determines the minimum and maximum corresponding to the passed pixels.- Parameters:
metadata- The pixels to handle.
-
computeLocationStats
public void computeLocationStats(ome.model.core.Pixels metadata, ome.io.nio.PixelBuffer pixelsData, omeis.providers.re.data.PlaneDef pd, int index)Helper object to determine the location of the pixels' values, the inputWindow i.e.inputStartandinputEndand to initialize thenoiseReductionflag.- Parameters:
metadata- The pixels to parse.pixelsData- The buffer.pd- The plane to handle.index- The channel index.- Throws:
PixMetadataException
-
getLocationStats
public double[] getLocationStats()
Returns the statistics.- Returns:
- See above.
-
isNoiseReduction
public boolean isNoiseReduction()
Returnstrueif the flag is on,falseotherwise.- Returns:
- See above.
-
getInputStart
public double getInputStart()
Returns the input start.- Returns:
- See above.
-
getInputEnd
public double getInputEnd()
Returns the input end.- Returns:
- See above.
-
-