VolumeJ
Class VJClassifierGradientCT

java.lang.Object
  |
  +--VolumeJ.VJClassifier
        |
        +--VolumeJ.VJClassifierLevoy
              |
              +--VolumeJ.VJClassifierLNotIndex0
                    |
                    +--VolumeJ.VJClassifierGradientCT

public class VJClassifierGradientCT
extends VJClassifierLNotIndex0

This class implements the Gradient classification function with indexing for CT scans optimized.

 Index = 0 is invisible.
 Index = 128 semi-transparent blue.
 Index = 255 white.
 
This can be used to index and indicate structures in CT scans Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.


Fields inherited from class VolumeJ.VJClassifierLevoy
fractionMagnitude, lut, maskIndex, maskIntensity, maskMagnitude, maxIntensity, nrIndexBits, nrIntensityBits, nrMagnitudeBits, opacityTable, threshold, width
 
Fields inherited from class VolumeJ.VJClassifier
description, GRAYSCALE, RGB, secondaryClassifier
 
Constructor Summary
VJClassifierGradientCT()
           
 
Method Summary
 VJAlphaColor alphacolor(VJValue v, VJGradient g)
          Classify the (interpolated) voxel value and gradient magnitude into a alpha and rgb-value.
protected  void defaultLUT()
          Fill the lut if not initialised from elsewhere.
 java.lang.String toLongString()
          This method can be overloaded as necessary
 
Methods inherited from class VolumeJ.VJClassifierLNotIndex0
visible
 
Methods inherited from class VolumeJ.VJClassifierLevoy
alphacolor, does, doesCutouts, doesIndex, getThreshold, hasLUT, opacityCompute, setLUT, setThreshold, setupOpacities, setWidth, toString
 
Methods inherited from class VolumeJ.VJClassifier
getSecondaryClassifier, setSecondaryClassifier, trace
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VJClassifierGradientCT

public VJClassifierGradientCT()
Method Detail

alphacolor

public VJAlphaColor alphacolor(VJValue v,
                               VJGradient g)
Classify the (interpolated) voxel value and gradient magnitude into a alpha and rgb-value. Index 0 is not visible, index 128 is semi-transparent.
Overrides:
alphacolor in class VJClassifierLevoy
Parameters:
vvalue - the Integer the interpolated value at this location.
g - the gradient at this location

defaultLUT

protected void defaultLUT()
Fill the lut if not initialised from elsewhere. First entry is not shown, next entry (1) is white. Rest is filled with a spectrum.
Overrides:
defaultLUT in class VJClassifierLNotIndex0

toLongString

public java.lang.String toLongString()
Description copied from class: VJClassifier
This method can be overloaded as necessary
Overrides:
toLongString in class VJClassifierLNotIndex0