omeis.providers.re.metadata
Class StatsFactory

java.lang.Object
  extended by omeis.providers.re.metadata.StatsFactory

public class StatsFactory
extends 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
Version:
2.2 (Internal version: $Revision: 5125 $ $Date: 2005/06/20 14:11:46 $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk,
Andrea Falconi      a.falconi@dundee.ac.uk

Constructor Summary
StatsFactory()
           
 
Method Summary
 void computeLocationStats(ome.model.core.Pixels metadata, PixelBuffer pixelsData, 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.
 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

computeLocationStats

public void computeLocationStats(ome.model.core.Pixels metadata,
                                 PixelBuffer pixelsData,
                                 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.


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.