Package com.irurueta.ar.calibration
Class Pattern2D
java.lang.Object
com.irurueta.ar.calibration.Pattern2D
- Direct Known Subclasses:
CirclesPattern2D,QRPattern2D
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pattern2Dcreate(Pattern2DType type) Creates an instance of a 2D pattern using provided type.abstract List<com.irurueta.geometry.Point2D> Returns ideal points coordinates contained in a pattern and expressed in meters.abstract intReturns number of 2D points used by this pattern.abstract Pattern2DTypegetType()Returns type of pattern.
-
Constructor Details
-
Pattern2D
public Pattern2D()
-
-
Method Details
-
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
Returns type of pattern.- Returns:
- type of pattern.
-
create
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.
-