Class Landmark

  • All Implemented Interfaces:
    BoundingBox, java.io.Serializable

    public class Landmark
    extends Rectangle
    Landmark is the container that stores the key points for landmark on a single face.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Landmark​(double x, double y, double width, double height, java.util.List<Point> points)
      Constructs a Landmark using a list of points.
    • Constructor Detail

      • Landmark

        public Landmark​(double x,
                        double y,
                        double width,
                        double height,
                        java.util.List<Point> points)
        Constructs a Landmark using a list of points.
        Parameters:
        x - the left coordinate of the bounding rectangle
        y - the top coordinate of the bounding rectangle
        width - the width of the bounding rectangle
        height - the height of the bounding rectangle
        points - the key points for each face
    • Method Detail

      • getPath

        public java.lang.Iterable<Point> getPath()
        Returns an iterator object that iterates along the BoundingBox boundary and provides access to the geometry of the BoundingBox outline.
        Specified by:
        getPath in interface BoundingBox
        Overrides:
        getPath in class Rectangle
        Returns:
        a Iterable object, which independently traverses the geometry of the BoundingBox