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.
- Author:
- Chris Allan
Constructor Summary |
BinaryMaskQuantizer(ome.model.display.QuantumDef qd,
ome.model.enums.PixelsType type)
Creates a new strategy. |
Method Summary |
protected void |
onWindowChange()
Notifies when the input interval has changed or the mapping strategy has
changed. |
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 |
BinaryMaskQuantizer
public BinaryMaskQuantizer(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. Must be of type bit
.
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)
onWindowChange
protected void onWindowChange()
- Description copied from class:
QuantumStrategy
- Notifies when the input interval has changed or the mapping strategy has
changed.
- Specified by:
onWindowChange
in class QuantumStrategy
OmeroJava Api
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.