Class 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
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
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


public VJClassifierGradientCT()
Method Detail


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.
alphacolor in class VJClassifierLevoy
vvalue - the Integer the interpolated value at this location.
g - the gradient at this location


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.
defaultLUT in class VJClassifierLNotIndex0


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