Solar
Public Member Functions | List of all members
SolAR::api::features::ISBPatternReIndexer Class Referenceabstract

Gives both the 4 corners of a pattern in its reference coordinate system (pixels, cells, etc.) and the 4 corners in pixels of this pattern in the current image. UUID: 79c5b810-d557-11e7-9296-cec278b6b50a More...

#include <ISBPatternReIndexer.h>

Inheritance diagram for SolAR::api::features::ISBPatternReIndexer:
Inheritance graph
[legend]
Collaboration diagram for SolAR::api::features::ISBPatternReIndexer:
Collaboration graph
[legend]

Public Member Functions

 ISBPatternReIndexer ()=default
 ISBPatternReIndexer default constructor.
 
virtual ~ISBPatternReIndexer ()=default
 ISBPatternReIndexer default destructor.
 
virtual FrameworkReturnCode reindex (const std::vector< SolAR::datastructure::Contour2Df > &candidateContours, const std::vector< SolAR::datastructure::DescriptorMatch > &matches, std::vector< SolAR::datastructure::Point2Df > &patternPoints, std::vector< SolAR::datastructure::Point2Df > &imagePoints)=0
 From a set of Squared Binary Pattern matches as well as the contours of the candidate patterns extracted from the current image, this method provides both the 4 corners of a pattern in its reference coordinate system (pixels, cells, etc.) and the 4 corners in pixels of this pattern in the current image. More...
 

Detailed Description

Gives both the 4 corners of a pattern in its reference coordinate system (pixels, cells, etc.) and the 4 corners in pixels of this pattern in the current image. UUID: 79c5b810-d557-11e7-9296-cec278b6b50a

Member Function Documentation

◆ reindex()

virtual FrameworkReturnCode SolAR::api::features::ISBPatternReIndexer::reindex ( const std::vector< SolAR::datastructure::Contour2Df > &  candidateContours,
const std::vector< SolAR::datastructure::DescriptorMatch > &  matches,
std::vector< SolAR::datastructure::Point2Df > &  patternPoints,
std::vector< SolAR::datastructure::Point2Df > &  imagePoints 
)
pure virtual

From a set of Squared Binary Pattern matches as well as the contours of the candidate patterns extracted from the current image, this method provides both the 4 corners of a pattern in its reference coordinate system (pixels, cells, etc.) and the 4 corners in pixels of this pattern in the current image.

Parameters
[in]candidateContoursThe set of candidate contours of the patterns extracted in the current image.
[in]matchesThe set of matches describing which candidates contours defined in the first parameters correspond to the targetted squared binary pattern (here, only work with one squared binary pattern).
[out]patternPointsThe 4 corners of the pattern that has been recognized in the image. These corners are defined in a user-defined coordinate system (e.g.the image marker image coordinate system defined in pixels, or the pattern coordinate system defined in cells, etc.). Be sure to use the same coordinate system in the whole pipeline when you are defining 2D points referencing the pattern (For example in the first parameter of the method IImage2WorldMapper::setParameters).
[out]imagePointsthe 4 corners in the current image of the recognized pattern. These corners are defined in the image coordinate system (in pixels).
Returns
FrameworkReturnCode::SUCCESS if reindexing succeed, else FrameworkReturnCode::_ERROR.

The documentation for this class was generated from the following file: