Class StatsFactory


  • public class StatsFactory
    extends java.lang.Object
    Computes 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
      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.
      double getInputEnd()
      Returns the input end.
      double getInputStart()
      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.
      boolean isNoiseReduction()
      Returns true if the flag is on, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatsFactory

        public StatsFactory()
    • 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. inputStart and inputEnd and to initialize the noiseReduction flag.
        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()
        Returns true if the flag is on, false otherwise.
        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.