Package omeis.providers.re.quantum
Class BinaryMaskQuantizer
- java.lang.Object
-
- omeis.providers.re.quantum.QuantumStrategy
-
- omeis.providers.re.quantum.BinaryMaskQuantizer
-
public class BinaryMaskQuantizer extends QuantumStrategy
Quantization process for binary masks.
-
-
Field Summary
-
Fields inherited from class omeis.providers.re.quantum.QuantumStrategy
DECILE, MAX, MIN, pixels, qDef, valueMapper
-
-
Constructor Summary
Constructors Constructor Description BinaryMaskQuantizer(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()Notifies when the input interval has changed or the mapping strategy has changed.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
-
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)
-
onWindowChange
protected void onWindowChange()
Description copied from class:QuantumStrategyNotifies when the input interval has changed or the mapping strategy has changed.- Specified by:
onWindowChangein classQuantumStrategy
-
-