|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--volume.Volume
This is an abstract super-class to implement volumes. Volumes are 3-D ordered structures that are indexed by three-parameters. The values in a volume can consist of scalars, vectors or Objects. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Field Summary | |
protected double |
aspectx
Anisotropy measure of the volume. |
protected double |
aspecty
Anisotropy measure of the volume. |
protected double |
aspectz
Anisotropy measure of the volume. |
protected int |
depth
Dimensions of the volume. |
protected int |
edge
|
protected int |
height
Dimensions of the volume. |
protected int |
width
Dimensions of the volume. |
Constructor Summary | |
Volume()
|
Method Summary | |
int |
discreteSupport(Kernel kernel)
Returns the minimum depth needed to be able to filter (z-dimension) for the kernel. |
abstract java.lang.Object |
get(int x,
int y,
int z)
|
double |
getAspectx()
|
double |
getAspecty()
|
double |
getAspectz()
|
int |
getDepth()
|
int |
getEdge()
Get the edge in the volume beyond which a voxel is not valid. |
int |
getHeight()
|
int |
getWidth()
|
boolean |
in(double x,
double y,
double z)
Check whether x,y,z are within the edges. |
abstract void |
set(java.lang.Object value,
int x,
int y,
int z)
Set the voxel at x,y,z to value. |
void |
setAspects(double aspectx,
double aspecty,
double aspectz)
Set the aspect ratio of this volume. |
void |
setEdge(int edge)
Set the edges in the volume beyond which a voxel is not valid. |
java.lang.String |
toString()
Return a string describing the volume. |
boolean |
valid(int x,
int y)
Check whether x,y are within the edges. |
boolean |
valid(int x,
int y,
int z)
Check whether x,y,z are within the edges. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int width
protected int height
protected int depth
protected int edge
protected double aspectx
protected double aspecty
protected double aspectz
Constructor Detail |
public Volume()
Method Detail |
public int getWidth()
public int getHeight()
public int getDepth()
public abstract java.lang.Object get(int x, int y, int z)
x,
- y, z the position in the volume you want the value of.public abstract void set(java.lang.Object value, int x, int y, int z)
value
- a value suitable for this volume.x,
- y, z the position in the volume.public void setAspects(double aspectx, double aspecty, double aspectz)
aspectx,
- aspecty, aspectz the x,y,z aspect rations.public double getAspectx()
public double getAspecty()
public double getAspectz()
public int getEdge()
public void setEdge(int edge)
public boolean in(double x, double y, double z)
public boolean valid(int x, int y)
public boolean valid(int x, int y, int z)
public int discreteSupport(Kernel kernel)
public java.lang.String toString()
toString
in class java.lang.Object
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |