of3d
Class FlowJTrilinearVector

java.lang.Object
  |
  +--VolumeJ.VJInterpolator
        |
        +--VolumeJ.VJTrilinear
              |
              +--of3d.FlowJTrilinearVector

public class FlowJTrilinearVector
extends VJTrilinear

This class implements trilinear interpolation and interpolation of gradients for vector flow volumes. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.


Constructor Summary
FlowJTrilinearVector()
           
 
Method Summary
 VJGradient gradient(OF3DFlow f, VJVoxelLoc vl)
          Compute an interpolated gradient from a flow vector volume.
protected static float value(float[][][][] v, VJVoxelLoc vl, int i)
          Interpolate an entry in a float vector 4-D volume.
 FlowJValue value(OF3DFlow f, VJVoxelLoc vl)
           
 
Methods inherited from class VolumeJ.VJTrilinear
gradient, gradient, gradient, gradient, gradient, isValid, isValidGradient, isValidGradient, toString, valid, value, value, value, value, value, value, value, value, value, valueHS
 
Methods inherited from class VolumeJ.VJInterpolator
valueHS
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowJTrilinearVector

public FlowJTrilinearVector()
Method Detail

value

public FlowJValue value(OF3DFlow f,
                        VJVoxelLoc vl)

value

protected static float value(float[][][][] v,
                             VJVoxelLoc vl,
                             int i)
Interpolate an entry in a float vector 4-D volume.
Parameters:
v - the float vector volume in which to interpolate
vl - the location where to interpolate.
i - the entry in the vector to interpolate.
Returns:
the interpolated value

gradient

public VJGradient gradient(OF3DFlow f,
                           VJVoxelLoc vl)
Compute an interpolated gradient from a flow vector volume. Normally in 3-D flow (scintillating streaks), the gradient at vl is the direction of the flow vector at vl. But if you need to render the static volume, you need to compute the gradient.
Parameters:
f - the flow volume.
vl - the VJVoxelLoc where to interpolate the gradient.
Returns:
a VJGradient with the interpolated gradient at vl.