Solar
|
Checks if an homography is valid based on 4 corners of a squared marker and their projection through a given homography. UUID: 112f9f03-79c1-4393-b8f3-e02227bebfed
More...
#include <SolARHomographyValidation.h>
Public Member Functions | |
bool | isValid (const std::vector< SolAR::datastructure::Point2Df > &ref2DSquaredMarkerCorners, const std::vector< SolAR::datastructure::Point2Df > &projected2DSquaredMarkerCorners) override |
Checks if an homography is valid based on 4 corners of a squared marker and their projection through a given homography. More... | |
void | unloadComponent () override final |
Checks if an homography is valid based on 4 corners of a squared marker and their projection through a given homography. UUID: 112f9f03-79c1-4393-b8f3-e02227bebfed
oppositeSideRatio | minimum length ratio of the opposite reprojected sides of the squared marker |
type: float; range : [0..MAX FLOAT]; default: 0.5f | |
surfaceRatio | minimum surface ratio between the squared marker and its reprojection through the homography |
type: float; range : [0..MAX FLOAT]; default: 0.15f | |
maxOppositeDotProduct | the maximum of the dot product of the two opposite and normalized sides of the reprojected squared marker. Here, we check is the opposite reprojected sides of the squared marker are not to perpendicular. If the dot product is close to 1, it means that the opposite side are perpendicular and so that the homography is not good. |
type: float; range : [0..1]; default: 0.9f |
|
override |
Checks if an homography is valid based on 4 corners of a squared marker and their projection through a given homography.
[in] | ref2DSquaredMarkerCorners | The 4 corners of a marker in pixels. |
[in] | projected2DSquaredMarkerCorners | The 4 corners of a marker in the current image captured by a camera in pixels. |