|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgeometry.object.DistanceMap3D
public class DistanceMap3D
A 3-dimensional distance map. The distance map in this case is encoded as a 3D-array of doubles.
| Field Summary | |
|---|---|
double[][][] |
distancemap
distance map, holding the distance to the contour from node (x,y,z) in index [x][y][z] |
| Constructor Summary | |
|---|---|
DistanceMap3D()
|
|
| Method Summary | |
|---|---|
double |
getAverageDistance()
Get the average distance from each pixel/voxel in the shape to the contour. |
double |
getDistance(Index index)
Get the distance from the specified coordinates to the contour |
java.lang.Object |
getDistanceMap()
|
void |
setDistanceMap(java.lang.Object distancemap)
set the distance map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double[][][] distancemap
| Constructor Detail |
|---|
public DistanceMap3D()
| Method Detail |
|---|
public double getDistance(Index index)
DistanceMap
getDistance in interface DistanceMapindex - the index to get the distance to the contour for
public void setDistanceMap(java.lang.Object distancemap)
DistanceMap
setDistanceMap in interface DistanceMapdistancemap - the distance map to set.public double getAverageDistance()
DistanceMap
getAverageDistance in interface DistanceMappublic java.lang.Object getDistanceMap()
getDistanceMap in interface DistanceMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||