Package omeis.providers.re.quantum
Class Quantization_32_bit
- java.lang.Object
-
- omeis.providers.re.quantum.QuantumStrategy
-
- omeis.providers.re.quantum.Quantization_32_bit
-
public class Quantization_32_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:
- OME5.1
-
-
Field Summary
-
Fields inherited from class omeis.providers.re.quantum.QuantumStrategy
DECILE, MAX, MIN, pixels, qDef, valueMapper
-
-
Constructor Summary
Constructors Constructor Description Quantization_32_bit(ome.model.display.QuantumDef qd, ome.model.core.Pixels pixels)Creates a new strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidonWindowChange()The input window size changed, re-map the values.intquantize(double value)Implemented as specified inQuantumStrategy.-
Methods inherited from class omeis.providers.re.quantum.QuantumStrategy
getCurveCoefficient, getFamily, getGlobalMax, getGlobalMin, getMiddleRange, getNoiseReduction, getOriginalGlobalMax, getOriginalGlobalMin, getPixelsTypeMax, getPixelsTypeMin, getWindowEnd, getWindowStart, setExtent, setMap, setMapping, setQuantizationMap, setWindow
-
-
-
-
Method Detail
-
onWindowChange
protected void onWindowChange()
The input window size changed, re-map the values.- Specified by:
onWindowChangein classQuantumStrategy
-
quantize
public int quantize(double value) throws QuantizationExceptionImplemented as specified inQuantumStrategy.- Specified by:
quantizein classQuantumStrategy- 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)
-
-