omeis.providers.re.quantum
Class BinaryMaskQuantizer

java.lang.Object
  extended by omeis.providers.re.quantum.QuantumStrategy
      extended by omeis.providers.re.quantum.BinaryMaskQuantizer

public class BinaryMaskQuantizer
extends QuantumStrategy

Quantization process for binary masks.

Author:
Chris Allan

Field Summary
 
Fields inherited from class omeis.providers.re.quantum.QuantumStrategy
DECILE, MAX, MIN, qDef, type, valueMapper
 
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
 

Constructor Detail

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.
Method Detail

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: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.