BIJ API

VolumeJ
Class VJGradient

java.lang.Object
  |
  +--VolumeJ.VJGradient

public class VJGradient
extends java.lang.Object

This is a class that defines the gradient of a voxel. This means that a gradient can be any derivative of the voxel or its neighborhood. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.


Constructor Summary
VJGradient(double[] g)
           
VJGradient(double[][] g)
          n-dimensional vector volume gradient.
VJGradient(double gx, double gy, double gz)
          Gradient of scalar volume.
VJGradient(float gx, float gy, float gz)
          Gradient of scalar volume.
 
Method Summary
 float getAverageMag()
           
 int getDimensions()
           
 float getmag()
           
 float getmag(int i)
           
 float getx()
           
 float getx(int i)
           
 float gety()
           
 float gety(int i)
           
 float getz()
           
 float getz(int i)
           
 void normalize()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VJGradient

public VJGradient(double[] g)

VJGradient

public VJGradient(double gx,
                  double gy,
                  double gz)
Gradient of scalar volume.
Parameters:
gx, - gy, gz the gradients in x, y, and z-dimensions.

VJGradient

public VJGradient(float gx,
                  float gy,
                  float gz)
Gradient of scalar volume.
Parameters:
gx, - gy, gz the gradients in x, y, and z-dimensions.

VJGradient

public VJGradient(double[][] g)
n-dimensional vector volume gradient.
Method Detail

getx

public float getx()

gety

public float gety()

getz

public float getz()

getmag

public float getmag()

getx

public float getx(int i)

gety

public float gety(int i)

getz

public float getz(int i)

getmag

public float getmag(int i)

getAverageMag

public float getAverageMag()

getDimensions

public int getDimensions()

normalize

public void normalize()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

BIJ API

Submit a bug or feature

Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.