omeis.providers.re.quantum
Class Quantization_8_16_bit
java.lang.Object
omeis.providers.re.quantum.QuantumStrategy
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: 4421 $ $Date:
2005/06/20 14:12:20 $)
- Author:
- Jean-Marie Burel j.burel@dundee.ac.uk,
Andrea Falconi a.falconi@dundee.ac.uk
Constructor Summary |
Quantization_8_16_bit(ome.model.display.QuantumDef qd,
ome.model.enums.PixelsType type)
Creates a new strategy. |
Methods inherited from class omeis.providers.re.quantum.QuantumStrategy |
getCurveCoefficient, getFamily, getGlobalMax, getGlobalMin, getNoiseReduction, 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 |
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;
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:
- int 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: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.