Package inra.ijpb.plugins
Class GeodesicDistanceMapPlugin
java.lang.Object
inra.ijpb.plugins.GeodesicDistanceMapPlugin
- All Implemented Interfaces:
ij.plugin.PlugIn
public class GeodesicDistanceMapPlugin
extends java.lang.Object
implements ij.plugin.PlugIn
Plugin for computing geodesic distance map from binary marker and constrained
to binary or label images using chamfer distances propagation.
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description GeodesicDistanceMapPlugin()
-
Method Summary
Modifier and Type Method Description java.lang.Object[]
exec(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, float[] weights)
Deprecated.java.lang.Object[]
exec(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, float[] weights, boolean normalize)
Deprecated.use process method insteadjava.lang.Object[]
exec(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, short[] weights, boolean normalize)
Deprecated.use process method insteadij.ImagePlus
process(ij.ImagePlus markerPlus, ij.ImagePlus maskPlus, java.lang.String newName, float[] weights, boolean normalize)
Deprecated.ij.ImagePlus
process(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, ChamferMask2D weights, boolean floatComputation, boolean normalize)
Computes the distance propagated from the boundary of the white particles, within the black phase.ij.process.ImageProcessor
process(ij.process.ImageProcessor marker, ij.process.ImageProcessor mask, float[] weights, boolean normalize)
Deprecated.void
run(java.lang.String arg0)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GeodesicDistanceMapPlugin
public GeodesicDistanceMapPlugin()
-
-
Method Details
-
run
public void run(java.lang.String arg0)- Specified by:
run
in interfaceij.plugin.PlugIn
-
exec
@Deprecated public java.lang.Object[] exec(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, float[] weights)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 propagationnewName
- the name of the result imageweights
- the set of chamfer weights for computing distances- Returns:
- the geodesic distance map
-
exec
@Deprecated public java.lang.Object[] exec(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, float[] weights, boolean normalize)Deprecated.use process method insteadComputes the distance propagated from the boundary of the white particles, within the white phase.- Parameters:
marker
- the binary marker image from which distances will be propagatedmask
- 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
-
exec
@Deprecated public java.lang.Object[] exec(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, short[] weights, boolean normalize)Deprecated.use process method insteadComputes the distance propagated from the boundary of the white particles, within the black phase.- Parameters:
marker
- the binary marker image from which distances will be propagatedmask
- 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.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.process.ImageProcessor process(ij.process.ImageProcessor marker, ij.process.ImageProcessor 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.ImagePlus process(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, ChamferMask2D weights, boolean floatComputation, boolean normalize)Computes the distance propagated from the boundary of the white particles, within the black phase.- Parameters:
marker
- the binary marker image from which distances will be propagatedmask
- the binary mask image that will constrain the propagationnewName
- the name of the result imageweights
- the set of chamfer weights for computing distancesfloatComputation
- specifies whether floating point computation should be usednormalize
- 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
-