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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.