Class GeodesicDiameter.Result

java.lang.Object
inra.ijpb.measure.region2d.GeodesicDiameter.Result
Enclosing class:
GeodesicDiameter

public class GeodesicDiameter.Result
extends java.lang.Object
Inner class used for representing results of geodesic diameters computations. Each instance corresponds to a single region / particle.
Author:
dlegland
  • Field Summary

    Fields
    Modifier and Type Field Description
    double diameter
    The geodesic diameter of the region
    java.awt.geom.Point2D firstExtremity
    The first geodesic extremity found by the algorithm.
    java.awt.geom.Point2D initialPoint
    The initial point used for propagating distances, corresponding the center of one of the minimum inscribed circles.
    double innerRadius
    The radius of the largest inner circle.
    java.util.List<java.awt.geom.Point2D> path
    The largest geodesic path within the particle, joining the first and the second geodesic extremities.
    java.awt.geom.Point2D secondExtremity
    The second geodesic extremity found by the algorithm.
  • Constructor Summary

    Constructors
    Constructor Description
    Result()  
  • Method Summary

    Modifier and Type Method Description
    GeodesicDiameter.Result recalibrate​(ij.measure.Calibration calib)
    Computes the result corresponding to the spatial calibration.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • diameter

      public double diameter
      The geodesic diameter of the region
    • initialPoint

      public java.awt.geom.Point2D initialPoint
      The initial point used for propagating distances, corresponding the center of one of the minimum inscribed circles.
    • innerRadius

      public double innerRadius
      The radius of the largest inner circle. Value may depends on the chamfer weihgts.
    • firstExtremity

      public java.awt.geom.Point2D firstExtremity
      The first geodesic extremity found by the algorithm.
    • secondExtremity

      public java.awt.geom.Point2D secondExtremity
      The second geodesic extremity found by the algorithm.
    • path

      public java.util.List<java.awt.geom.Point2D> path
      The largest geodesic path within the particle, joining the first and the second geodesic extremities. Its computation is optional.
  • Constructor Details

    • Result

      public Result()
  • Method Details

    • recalibrate

      public GeodesicDiameter.Result recalibrate​(ij.measure.Calibration calib)
      Computes the result corresponding to the spatial calibration. The current result instance is not modified.
      Parameters:
      calib - the spatial calibration of an image
      Returns:
      the result after applying the spatial calibration