Object
LevelResult

public class LevelResult extends Object
Represents the result of a level operation, containing the level value, object mask, and histogram.
  • Constructor Details

    • LevelResult

      public LevelResult(int level, ObjectMask object, Histogram histogram)
      Creates a new LevelResult instance.
      Parameters:
      level - The level value.
      object - The ObjectMask associated with this level.
      histogram - The Histogram of intensity values for this level.
  • Method Details

    • distanceSquaredTo

      public double distanceSquaredTo(Point3i sourcePoint)
      Calculates the squared distance from the midpoint of this level's object to a given point.
      Parameters:
      sourcePoint - the Point3i to calculate the distance to
      Returns:
      the squared distance between the midpoint of this level's object and the given point
    • getLevel

      public int getLevel()
      The level value.
    • getObject

      public ObjectMask getObject()
      The ObjectMask associated with this level.
    • getHistogram

      public Histogram getHistogram()
      The Histogram of intensity values for this level.