Class GeodesicDiameterShort

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.binary.geodesic.GeodesicDiameterShort
All Implemented Interfaces:
Algo, GeodesicDiameter

@Deprecated
public class GeodesicDiameterShort
extends AlgoStub
implements GeodesicDiameter
Deprecated.
since 1.3.5, use inra.ijpb.measure.region2d.GeodesicDiameter instead
Computes geodesic diameter of a set of labeled particles or regions, using integer values coded as short (16 bits) for propagating chamfer distances. This version uses optimized algorithm, that propagates distances of all particles during each pass. This reduces computation overhead due to iteration over particles.

Example of use:


	GeodesicDiameterShort gd = new GeodesicDiameterShort(ChamferWeights.CHESSKNIGHT);
	ResultsTable table = gd.analyseImage(inputLabelImage);
	table.show("Geodesic Diameter");
Author:
David Legland
See Also:
GeodesicDiameter
  • Constructor Summary

    Constructors
    Constructor Description
    GeodesicDiameterShort​(short[] weights)
    Deprecated.
    Creates a new geodesic diameter computation operator.
    GeodesicDiameterShort​(ChamferWeights chamferWeights)
    Deprecated.
    Creates a new geodesic diameter computation operator.
  • Method Summary

    Modifier and Type Method Description
    ij.measure.ResultsTable analyzeImage​(ij.process.ImageProcessor labelImage)
    Deprecated.
    Computes the geodesic diameter of each particle within the given label image.
    java.util.Map<java.lang.Integer,​java.util.List<java.awt.Point>> longestGeodesicPaths()
    Deprecated.
    Computes the geodesic path of each particle within the given label image.

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface inra.ijpb.algo.Algo

    addAlgoListener, removeAlgoListener
  • Constructor Details

    • GeodesicDiameterShort

      public GeodesicDiameterShort​(ChamferWeights chamferWeights)
      Deprecated.
      Creates a new geodesic diameter computation operator.
      Parameters:
      chamferWeights - an instance of ChamferWeights, which provides the float values used for propagating distances
    • GeodesicDiameterShort

      public GeodesicDiameterShort​(short[] weights)
      Deprecated.
      Creates a new geodesic diameter computation operator.
      Parameters:
      weights - the array of weights for orthogonal, diagonal, and eventually chess-knight moves neighbors
  • Method Details

    • analyzeImage

      public ij.measure.ResultsTable analyzeImage​(ij.process.ImageProcessor labelImage)
      Deprecated.
      Computes the geodesic diameter of each particle within the given label image.
      Specified by:
      analyzeImage in interface GeodesicDiameter
      Parameters:
      labelImage - a label image, containing either the label of a particle or region, or zero for background
      Returns:
      a ResultsTable containing for each label the geodesic diameter of the corresponding particle
    • longestGeodesicPaths

      public java.util.Map<java.lang.Integer,​java.util.List<java.awt.Point>> longestGeodesicPaths()
      Deprecated.
      Computes the geodesic path of each particle within the given label image. Assumes the geodesic distance map has already been computed after a call to the "analyzeImage" method.
      Returns:
      A map that associate to each integer label the list of positions that constitutes the geodesic path