public class VoxelRecord extends Object implements Comparable<VoxelRecord>
| Constructor and Description |
|---|
VoxelRecord(Cursor3D cursor,
double value)
Creates a voxel record from a cursor and a double value.
|
VoxelRecord(int x,
int y,
int z,
double value)
Creates a voxel record from a position and a double value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(VoxelRecord v2)
Compare with a voxel record based on its value and
timestamp
|
double |
euclideanDistance(VoxelRecord vr)
Calculate Euclidean distance to another voxel record
|
Cursor3D |
getCursor() |
double |
getValue() |
public VoxelRecord(Cursor3D cursor, double value)
cursor - the position of the recordvalue - voxel intensity valuepublic VoxelRecord(int x,
int y,
int z,
double value)
x - the x-position of the recordy - the y-position of the recordz - the z-position of the recordvalue - voxel intensity valuepublic Cursor3D getCursor()
public double getValue()
public int compareTo(VoxelRecord v2)
compareTo in interface Comparable<VoxelRecord>v2 - voxel record to compare withpublic double euclideanDistance(VoxelRecord vr)
vr - voxel record to calculate distance toCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.