io.loader.load2D
Class DistanceTransform2D
java.lang.Object
io.loader.load2D.DistanceTransform2D
public class DistanceTransform2D
- extends java.lang.Object
get the distance transform DT of a binary shape image. The distance
transform is a function that assigns for each pixel p(x,y) inside an object
the minimal distance to the boundary.
In this project, a distance transform is stored as a simple two-dimensional
array distanceTransform, where the distance of a pixel p(x,y) can be
looked up at distanceTransform[x][y].
|
Field Summary |
private static org.apache.log4j.Logger |
logger
logger instance |
|
Method Summary |
static double[][] |
getDistanceTransform(ij.ImagePlus imp)
Get the specified image's distance transform. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static org.apache.log4j.Logger logger
- logger instance
DistanceTransform2D
public DistanceTransform2D()
getDistanceTransform
public static double[][] getDistanceTransform(ij.ImagePlus imp)
- Get the specified image's distance transform. Internally, the ImageJ
plugin "Distance Map" is used for that purpose. The distance transform is
stored as a simple two-dimensional array distanceTransform, where
the distance of a pixel p(x,y) can be looked up at
distanceTransform[x][y].
- Parameters:
imp - - the binary image to get the distance transform for.
- Returns:
- distance map as simple double array