Definition of a class holding the information about one calibration pattern.
More...
#include <CameraCalibration.h>
|
| template<typename TF , typename TS > |
| static bool | compareFirst (const std::pair< TF, TS > &first, const std::pair< TF, TS > &second) |
| | Compares the first elements of two pairs.
|
| |
Definition of a class holding the information about one calibration pattern.
◆ PatternRow
Definition of a (row) vector holding 2D positions.
◆ PatternRows
Definition of a vector holding rows.
◆ Pattern() [1/2]
| Ocean::Geometry::CameraCalibration::Pattern::Pattern |
( |
| ) |
|
Creates an empty pattern object.
◆ Pattern() [2/2]
| Ocean::Geometry::CameraCalibration::Pattern::Pattern |
( |
const PatternRows & |
rows, |
|
|
const Timestamp |
timestamp |
|
) |
| |
Creates a new pattern object.
- Parameters
-
◆ boundingBox()
| Box2 Ocean::Geometry::CameraCalibration::Pattern::boundingBox |
( |
| ) |
const |
Returns the bounding box of this pattern.
- Returns
- 2D bounding box
◆ changeSize()
| void Ocean::Geometry::CameraCalibration::Pattern::changeSize |
( |
const Scalar |
sizeFactor | ) |
|
Applies a size factor to resize the entire pattern.
All corner positions will be changed by the given factor.
- Parameters
-
| sizeFactor | Size factor to be applied, with range (0, infinity) |
◆ compareFirst()
template<typename TF , typename TS >
| bool Ocean::Geometry::CameraCalibration::Pattern::compareFirst |
( |
const std::pair< TF, TS > & |
first, |
|
|
const std::pair< TF, TS > & |
second |
|
) |
| |
|
inlinestaticprivate |
Compares the first elements of two pairs.
- Parameters
-
| first | First pair to compare |
| second | Second pair to compare |
- Returns
- True, if the first element of the first pair is lesser than the first element of the second pair
◆ corners()
| const Vector2 * Ocean::Geometry::CameraCalibration::Pattern::corners |
( |
| ) |
const |
|
inline |
Returns the four corners of this pattern.
- Returns
- Four corners
◆ distance()
| Scalar Ocean::Geometry::CameraCalibration::Pattern::distance |
( |
const Pattern & |
pattern | ) |
const |
Returns the minimal sum of square distances between the corners of two calibration patterns.
- Returns
- Sum of square distances
◆ isEmpty()
| bool Ocean::Geometry::CameraCalibration::Pattern::isEmpty |
( |
| ) |
const |
|
inline |
Returns whether the pattern object holds not valid corners.
- Returns
- True, if so
◆ rows()
Returns the rows of this pattern.
- Returns
- Pattern rows
◆ timestamp()
| Timestamp Ocean::Geometry::CameraCalibration::Pattern::timestamp |
( |
| ) |
const |
|
inline |
Returns the timestmap of this pattern.
- Returns
- Pattern timestamp
◆ patternCorners
| Vector2 Ocean::Geometry::CameraCalibration::Pattern::patternCorners[4] |
|
private |
◆ patternRows
| PatternRows Ocean::Geometry::CameraCalibration::Pattern::patternRows |
|
private |
◆ patternTimestamp
| Timestamp Ocean::Geometry::CameraCalibration::Pattern::patternTimestamp |
|
private |
The documentation for this class was generated from the following file: