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 instead
    java.lang.Object[] exec​(ij.ImagePlus marker, ij.ImagePlus mask, java.lang.String newName, short[] weights, boolean normalize)
    Deprecated.
    use process method instead
    ij.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 interface ij.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 propagated
      mask - the binary mask image that will constrain the propagation
      newName - the name of the result image
      weights - 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 instead
      Computes 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 propagated
      mask - the binary mask image that will constrain the propagation
      newName - the name of the result image
      weights - the set of chamfer weights for computing distances
      normalize - 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 instead
      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 propagated
      mask - the binary mask image that will constrain the propagation
      newName - the name of the result image
      weights - the set of chamfer weights for computing distances
      normalize - 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 propagated
      maskPlus - the binary mask image that will constrain the propagation
      newName - the name of the result image
      weights - the set of chamfer weights for computing distances
      normalize - 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 propagated
      mask - the binary mask image that will constrain the propagation
      weights - the set of chamfer weights for computing distances
      normalize - 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 propagated
      mask - the binary mask image that will constrain the propagation
      newName - the name of the result image
      weights - the set of chamfer weights for computing distances
      floatComputation - specifies whether floating point computation should be used
      normalize - 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