public class BinaryMaskQuantizer extends QuantumStrategy
DECILE, MAX, MIN, pixels, qDef, valueMapper
Constructor and Description |
---|
BinaryMaskQuantizer(QuantumDef qd,
Pixels pixels)
Creates a new strategy.
|
Modifier and Type | Method and Description |
---|---|
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 . |
getCurveCoefficient, getFamily, getGlobalMax, getGlobalMin, getMiddleRange, getNoiseReduction, getOriginalGlobalMax, getOriginalGlobalMin, getPixelsTypeMax, getPixelsTypeMin, getWindowEnd, getWindowStart, setExtent, setMap, setMapping, setQuantizationMap, setWindow
public BinaryMaskQuantizer(QuantumDef qd, Pixels pixels)
qd
- Quantum definition object, contained mapping data.type
- The pixels. Must be of type bit
.public int quantize(double value) throws QuantizationException
QuantumStrategy
.quantize
in class QuantumStrategy
value
- The pixel intensity value.QuantizationException
- If the specified value is not in the interval [globalMin,
globalMax].QuantumStrategy.quantize(double)
protected void onWindowChange()
QuantumStrategy
onWindowChange
in class QuantumStrategy
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.