of3d
Class OFClassifierScintillans

java.lang.Object
  |
  +--VolumeJ.VJClassifier
        |
        +--of3d.OFClassifier
              |
              +--of3d.OFClassifierScintillans
Direct Known Subclasses:
OFClassifierScintillansIx255, OFClassifierScintillansIxLT0, OFClassifierScintillansNoFlow, OFClassifierScintillansNoStatic

public class OFClassifierScintillans
extends OFClassifier

This class implements a classification function of 3D optical flows that sets a scintillation corresponding in size, color and direction to the flow vector. Only if a surface is present at the location, will the static underlying volume be shown. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.


Field Summary
protected  int axes
           
protected  float fraction
           
protected  float rho
           
protected  boolean staticPixel
           
 
Fields inherited from class VolumeJ.VJClassifier
description, GRAYSCALE, RGB, secondaryClassifier
 
Constructor Summary
OFClassifierScintillans()
           
 
Method Summary
 VJAlphaColor alphacolor(FlowJValue value, VJGradient g)
          Classify a flow based on the flow vector, and whether or not a static voxel is present, into a VJAlphaColor.
protected  VJAlphaColor alphacolorFlow(float[] values)
          Classify a flow based on the flow vector into a VJAlphaColor.
 int does()
          Returns the type of VJAlphaColor this classifier generates: RGB or GRAYSCALE.
 boolean doesIndex()
          Tell renderer whether this classifier can process indices in the voxel value.
 boolean doesStatic()
           
 boolean hasLUT()
          Does not support user loadable LUTs.
 boolean isStatic()
           
 void setAxes(int axes)
          Set the axes of the scintillation color coding.
 void setFraction(float fraction)
          Set the fraction of the flows that are displayed as scintillations.
 void setRho(float rho)
          Set the rho of the DCM.
 void setup()
           
 java.lang.String toString()
          Return a String with information of this classifier.
 boolean visible(VJValue value)
          Tell renderer whether this voxel will be visible.
 
Methods inherited from class of3d.OFClassifier
alphacolor, getThreshold
 
Methods inherited from class VolumeJ.VJClassifier
alphacolor, doesCutouts, getSecondaryClassifier, setLUT, setSecondaryClassifier, toLongString, trace
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rho

protected float rho

axes

protected int axes

fraction

protected float fraction

staticPixel

protected boolean staticPixel
Constructor Detail

OFClassifierScintillans

public OFClassifierScintillans()
Method Detail

alphacolor

public VJAlphaColor alphacolor(FlowJValue value,
                               VJGradient g)
Classify a flow based on the flow vector, and whether or not a static voxel is present, into a VJAlphaColor. The magnitude of the vector influences the opacity of the color: the larger, the more opaque.
Overrides:
alphacolor in class OFClassifier
Parameters:
value - a FlowJValue containing the flow vector, the index and the voxel value, if any.
g - a VJGradient containing the static volume gradient for that flow vector.

alphacolorFlow

protected VJAlphaColor alphacolorFlow(float[] values)
Classify a flow based on the flow vector into a VJAlphaColor. The magnitude of the flow vector influences the scintillation, its saturation, its opacity, the larger, the more opaque, and its length, the larger, the longer. This method checks the magnitude of the vector: if smaller than 0.05 * rho, opacity is set to 0 (i.e. not shown).
Parameters:
value - a FlowJValue containing the flow vector, the index and the voxel value, if any.

setAxes

public void setAxes(int axes)
Set the axes of the scintillation color coding.
Overrides:
setAxes in class OFClassifier
Parameters:
axes - the 2 axes along which the hue is made.

setRho

public void setRho(float rho)
Set the rho of the DCM.
Overrides:
setRho in class OFClassifier
Parameters:
rho - for Dynamic Color Mapping.

setFraction

public void setFraction(float fraction)
Set the fraction of the flows that are displayed as scintillations. The lower fraction, the fewer scintillations that show up.
Overrides:
setFraction in class OFClassifier
Parameters:
fraction - [0-1] for Dynamic Color Mapping.

visible

public boolean visible(VJValue value)
Description copied from class: VJClassifier
Tell renderer whether this voxel will be visible. Used for optimizations.
Overrides:
visible in class VJClassifier

doesIndex

public boolean doesIndex()
Description copied from class: VJClassifier
Tell renderer whether this classifier can process indices in the voxel value.
Overrides:
doesIndex in class VJClassifier

setup

public void setup()

hasLUT

public boolean hasLUT()
Does not support user loadable LUTs.
Overrides:
hasLUT in class VJClassifier

toString

public java.lang.String toString()
Description copied from class: VJClassifier
Return a String with information of this classifier.
Overrides:
toString in class VJClassifier

does

public int does()
Description copied from class: VJClassifier
Returns the type of VJAlphaColor this classifier generates: RGB or GRAYSCALE.
Overrides:
does in class VJClassifier

doesStatic

public boolean doesStatic()
Overrides:
doesStatic in class OFClassifier

isStatic

public boolean isStatic()
Overrides:
isStatic in class OFClassifier