Package inra.ijpb.measure.region2d
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 doublediameterThe geodesic diameter of the regionjava.awt.geom.Point2DfirstExtremityThe first geodesic extremity found by the algorithm.java.awt.geom.Point2DinitialPointThe initial point used for propagating distances, corresponding the center of one of the minimum inscribed circles.doubleinnerRadiusThe radius of the largest inner circle.java.util.List<java.awt.geom.Point2D>pathThe largest geodesic path within the particle, joining the first and the second geodesic extremities.java.awt.geom.Point2DsecondExtremityThe second geodesic extremity found by the algorithm. -
Constructor Summary
Constructors Constructor Description Result() -
Method Summary
Modifier and Type Method Description GeodesicDiameter.Resultrecalibrate(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 diameterThe geodesic diameter of the region -
initialPoint
public java.awt.geom.Point2D initialPointThe initial point used for propagating distances, corresponding the center of one of the minimum inscribed circles. -
innerRadius
public double innerRadiusThe radius of the largest inner circle. Value may depends on the chamfer weihgts. -
firstExtremity
public java.awt.geom.Point2D firstExtremityThe first geodesic extremity found by the algorithm. -
secondExtremity
public java.awt.geom.Point2D secondExtremityThe second geodesic extremity found by the algorithm. -
path
public java.util.List<java.awt.geom.Point2D> pathThe 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
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
-