Class Pattern2D

java.lang.Object
com.irurueta.ar.calibration.Pattern2D
Direct Known Subclasses:
CirclesPattern2D, QRPattern2D

public abstract class Pattern2D extends Object
Abstract representation of the 2D samples contained in a pattern. Implementations for each pattern type will return the ideal coordinates of a pattern to be used for camera calibration. Coordinates of points returned by a pattern will be measured values in the real world (expressed in meters). Measures are ideal values not affected by any kind of distortion and as precise as possible, so they can be used for camera calibration.
  • Constructor Details

    • Pattern2D

      public Pattern2D()
  • Method Details

    • getIdealPoints

      public abstract List<com.irurueta.geometry.Point2D> getIdealPoints()
      Returns ideal points coordinates contained in a pattern and expressed in meters. These values are use for calibration purposes.
      Returns:
      ideal points coordinates.
    • getNumberOfPoints

      public abstract int getNumberOfPoints()
      Returns number of 2D points used by this pattern.
      Returns:
      number of 2D points used by this pattern.
    • getType

      public abstract Pattern2DType getType()
      Returns type of pattern.
      Returns:
      type of pattern.
    • create

      public static Pattern2D create(Pattern2DType type)
      Creates an instance of a 2D pattern using provided type.
      Parameters:
      type - type of 2D pattern to create.
      Returns:
      an instance of a 2D pattern.