Package inra.ijpb.plugins
Class GeodesicDistanceMap3DPlugin
java.lang.Object
inra.ijpb.plugins.GeodesicDistanceMap3DPlugin
- All Implemented Interfaces:
ij.plugin.PlugIn
public class GeodesicDistanceMap3DPlugin
extends java.lang.Object
implements ij.plugin.PlugIn
Plugin for computing geodesic distance map from binary 3D images using
chamfer weights.
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description GeodesicDistanceMap3DPlugin()
-
Method Summary
Modifier and Type Method Description ij.ImagePlus
process(ij.ImagePlus markerPlus, ij.ImagePlus maskPlus, java.lang.String newName, float[] weights, boolean normalize)
Deprecated.ij.ImagePlus
process(ij.ImagePlus markerPlus, ij.ImagePlus maskPlus, java.lang.String newName, ChamferMask3D chamferMask, boolean normalize)
Computes the distance propagated from the boundary of the white particles, within the white phase.ij.ImageStack
process(ij.ImageStack marker, ij.ImageStack mask, float[] weights, boolean normalize)
Deprecated.ij.ImageStack
process(ij.ImageStack marker, ij.ImageStack mask, ChamferMask3D chamferMask, boolean normalize)
Computes the distance within the mask, starting from the marker image.void
run(java.lang.String arg0)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GeodesicDistanceMap3DPlugin
public GeodesicDistanceMap3DPlugin()
-
-
Method Details
-
run
public void run(java.lang.String arg0)- Specified by:
run
in interfaceij.plugin.PlugIn
-
process
public ij.ImagePlus process(ij.ImagePlus markerPlus, ij.ImagePlus maskPlus, java.lang.String newName, ChamferMask3D chamferMask, boolean normalize)Computes the distance propagated from the boundary of the white particles, within the white phase.- Parameters:
markerPlus
- the binary marker image from which distances will be propagatedmaskPlus
- the binary mask image that will constrain the propagationnewName
- the name of the result imagechamferMask
- the set of chamfer weights for computing distancesnormalize
- specifies whether the resulting distance map should be normalized- Returns:
- an array of object, containing the name of the new image, and the new ImagePlus instance
-
process
@Deprecated public ij.ImagePlus process(ij.ImagePlus markerPlus, ij.ImagePlus maskPlus, java.lang.String newName, float[] weights, boolean normalize)Deprecated.Computes the distance propagated from the boundary of the white particles, within the white phase.- Parameters:
markerPlus
- the binary marker image from which distances will be propagatedmaskPlus
- the binary mask image that will constrain the propagationnewName
- the name of the result imageweights
- the set of chamfer weights for computing distancesnormalize
- specifies whether the resulting distance map should be normalized- Returns:
- an array of object, containing the name of the new image, and the new ImagePlus instance
-
process
@Deprecated public ij.ImageStack process(ij.ImageStack marker, ij.ImageStack mask, float[] weights, boolean normalize)Deprecated.Computes the distance within the mask, starting from the marker image.- Parameters:
marker
- the binary marker image from which distances will be propagatedmask
- the binary mask image that will constrain the propagationweights
- the set of chamfer weights for computing distancesnormalize
- specifies whether the resulting distance map should be normalized- Returns:
- the geodesic distance map
-
process
public ij.ImageStack process(ij.ImageStack marker, ij.ImageStack mask, ChamferMask3D chamferMask, boolean normalize)Computes the distance within the mask, starting from the marker image.- Parameters:
marker
- the binary marker image from which distances will be propagatedmask
- the binary mask image that will constrain the propagationchamferMask
- the chamfer mask used for computing distancesnormalize
- specifies whether the resulting distance map should be normalized- Returns:
- an array of object, containing the name of the new image, and the new ImagePlus instance
-