Class PointsFromObject

Object
PointsFromObject

public class PointsFromObject extends Object
Derives collections of points from an ObjectMask or its contour.
Author:
Owen Feehan
  • Method Details

    • listFrom2i

      public static List<Point2i> listFrom2i(ObjectMask object) throws CreateException
      A list of two-dimensional integer points from the entire object-mask.
      Parameters:
      object - the object.
      Returns:
      a newly-created list.
      Throws:
      CreateException - if the object is in three-dimensions.
    • listFrom3i

      public static List<Point3i> listFrom3i(ObjectMask object)
      A list of three-dimensional integer points from the entire object-mask.
      Parameters:
      object - the object.
      Returns:
      a newly-created list.
    • setFrom3i

      public static SortedSet<Point3i> setFrom3i(ObjectMask object)
      A sorted-set of three-dimensional integer points from the entire object-mask
      Parameters:
      object - the object
      Returns:
      a newly-created list
    • listFrom3d

      public static List<Point3d> listFrom3d(ObjectMask object)
      A list of points from the entire object-mask as Point3d.
      Parameters:
      object - the object.
      Returns:
      a newly created list.
    • listFromOutline3i

      public static List<Point3i> listFromOutline3i(ObjectMask object)
      A list of points as Point3i from the outline of an object-mask.
      Parameters:
      object - the object.
      Returns:
      a newly created list.
    • listFromOutline2i

      public static List<Point2i> listFromOutline2i(ObjectMask object) throws CreateException
      A list of points as three-dimensional integers from the outline of an object-mask
      Parameters:
      object - the object.
      Returns:
      a newly created list.
      Throws:
      CreateException - if the object is in three-dimensions
    • listFromAllOutlines2i

      public static List<Point2i> listFromAllOutlines2i(ObjectCollection objects)
      A list of points as three-dimensional integers from the outline of all objects in a collection.
      Parameters:
      objects - objects to find outlines for.
      Returns:
      a newly created list.
    • setFromContour

      public static Set<Point3i> setFromContour(ObjectMask object)
      A set of points from the contour of object in three dimensions.
      Parameters:
      object - the object.
      Returns:
      a newly created set of points, encoded as Point3i.