omeis.providers.re.quantum
Class Quantization_8_16_bit

java.lang.Object
  extended by omeis.providers.re.quantum.QuantumStrategy
      extended by omeis.providers.re.quantum.Quantization_8_16_bit

public class Quantization_8_16_bit
extends QuantumStrategy

Quantization process. In charge of building a look-up table for each active wavelength. The mapping process is done in three mapping steps, for some computer reasons, we cannot compose (in the mathematical sense) the three maps directly. Each wavelength initializes a strategy, in order to preserve the 5D-notion of OME image, we first compute the normalized parameters. We determine a pseudo-decile (not decile in maths terms) interval and compute the associated parameters to reduce the irrelevant values (noiseReduction).

Since:
OME2.2
Version:
2.2 (Internal version: $Revision$ $Date: 2005/06/20 14:12:20 $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk,
Andrea Falconi      a.falconi@dundee.ac.uk

Field Summary
 
Fields inherited from class omeis.providers.re.quantum.QuantumStrategy
DECILE, MAX, MIN, qDef, type, valueMapper
 
Constructor Summary
Quantization_8_16_bit(ome.model.display.QuantumDef qd, ome.model.enums.PixelsType type)
          Creates a new strategy.
 
Method Summary
protected  void onWindowChange()
          The input window size changed, rebuild the LUT.
 int quantize(double value)
          Implemented as specified in QuantumStrategy.
 
Methods inherited from class omeis.providers.re.quantum.QuantumStrategy
getCurveCoefficient, getFamily, getGlobalMax, getGlobalMin, getNoiseReduction, getOriginalGlobalMax, getOriginalGlobalMin, getPixelsTypeMax, getPixelsTypeMin, getWindowEnd, getWindowStart, setExtent, setMap, setMapping, setQuantizationMap, setWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quantization_8_16_bit

public Quantization_8_16_bit(ome.model.display.QuantumDef qd,
                             ome.model.enums.PixelsType type)
Creates a new strategy.

Parameters:
qd - Quantum definition object, contained mapping data.
type - The pixel type;
Method Detail

onWindowChange

protected void onWindowChange()
The input window size changed, rebuild the LUT.

Specified by:
onWindowChange in class QuantumStrategy

quantize

public int quantize(double value)
             throws QuantizationException
Implemented as specified in QuantumStrategy.

Specified by:
quantize in class QuantumStrategy
Parameters:
value - The pixel intensity value.
Returns:
The value in the codomain interval i.e. sub-interval of [0, 255].
Throws:
QuantizationException - If the specified value is not in the interval [globalMin, globalMax].
See Also:
QuantumStrategy.quantize(double)


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

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