Class Convexity.Result

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

public class Convexity.Result
extends java.lang.Object
Simple class for storing the results of convexity computations.
  • Field Summary

    Fields
    Modifier and Type Field Description
    double area
    The area of the region in the original image.
    double convexArea
    The area of the convex hull of the region.
    double convexity
    The convexity of the region, computed as the ratio of area over convex area.
  • Constructor Summary

    Constructors
    Constructor Description
    Result​(double area, double convexArea)
    Creates a new result for storing convexity, based on the area and the convex area measures for the region.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • area

      public double area
      The area of the region in the original image.
    • convexArea

      public double convexArea
      The area of the convex hull of the region.
    • convexity

      public double convexity
      The convexity of the region, computed as the ratio of area over convex area.
  • Constructor Details

    • Result

      public Result​(double area, double convexArea)
      Creates a new result for storing convexity, based on the area and the convex area measures for the region.
      Parameters:
      area - the area of the region
      convexArea - the convex area of the region