Ocean
|
Definition of a class holding the information about one calibration pattern. More...
Public Types | |
typedef Vectors2 | PatternRow |
Definition of a (row) vector holding 2D positions. More... | |
typedef std::vector< PatternRow > | PatternRows |
Definition of a vector holding rows. More... | |
Public Member Functions | |
Pattern () | |
Creates an empty pattern object. More... | |
Pattern (const PatternRows &rows, const Timestamp timestamp) | |
Creates a new pattern object. More... | |
const PatternRows & | rows () const |
Returns the rows of this pattern. More... | |
const Vector2 * | corners () const |
Returns the four corners of this pattern. More... | |
Box2 | boundingBox () const |
Returns the bounding box of this pattern. More... | |
Timestamp | timestamp () const |
Returns the timestmap of this pattern. More... | |
bool | isEmpty () const |
Returns whether the pattern object holds not valid corners. More... | |
Scalar | distance (const Pattern &pattern) const |
Returns the minimal sum of square distances between the corners of two calibration patterns. More... | |
void | changeSize (const Scalar sizeFactor) |
Applies a size factor to resize the entire pattern. More... | |
Static Private Member Functions | |
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. More... | |
Private Attributes | |
PatternRows | patternRows |
Pattern rows. More... | |
Vector2 | patternCorners [4] |
Pattern corners. More... | |
Timestamp | patternTimestamp |
Pattern timestamp. More... | |
Definition of a class holding the information about one calibration pattern.
Definition of a (row) vector holding 2D positions.
typedef std::vector<PatternRow> Ocean::Geometry::CameraCalibration::Pattern::PatternRows |
Definition of a vector holding rows.
Ocean::Geometry::CameraCalibration::Pattern::Pattern | ( | ) |
Creates an empty pattern object.
Ocean::Geometry::CameraCalibration::Pattern::Pattern | ( | const PatternRows & | rows, |
const Timestamp | timestamp | ||
) |
Box2 Ocean::Geometry::CameraCalibration::Pattern::boundingBox | ( | ) | const |
Returns the bounding box of this pattern.
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.
sizeFactor | Size factor to be applied, with range (0, infinity) |
|
inlinestaticprivate |
Compares the first elements of two pairs.
first | First pair to compare |
second | Second pair to compare |
|
inline |
Returns the four corners of this pattern.
Returns the minimal sum of square distances between the corners of two calibration patterns.
|
inline |
Returns whether the pattern object holds not valid corners.
|
inline |
Returns the rows of this pattern.
|
inline |
Returns the timestmap of this pattern.
|
private |
Pattern rows.