|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgeometry.object.DistanceMap2D
public class DistanceMap2D
A 2-dimensional distance map
| Field Summary | |
|---|---|
private double[][] |
distancemap
distance map, holding distance to the contour from node (x,y) in index [x][y] |
| Constructor Summary | |
|---|---|
DistanceMap2D()
|
|
| 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 |
|---|
private double[][] distancemap
| Constructor Detail |
|---|
public DistanceMap2D()
| Method Detail |
|---|
public void setDistanceMap(java.lang.Object distancemap)
DistanceMap
setDistanceMap in interface DistanceMapdistancemap - the distance map to set.public double getDistance(Index index)
DistanceMap
getDistance in interface DistanceMapindex - the index to get the distance to the contour for
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 | |||||||||