29 lines
720 B
C++
29 lines
720 B
C++
|
#ifndef _CHESSBOARDCAMERATRACKER_HPP_
|
||
|
#define _CHESSBOARDCAMERATRACKER_HPP_
|
||
|
|
||
|
#include "Camera.hpp"
|
||
|
#include "utility.hpp"
|
||
|
|
||
|
class ChessboardCameraTracker
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
ChessboardCameraTracker() = default;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* It detects a chessboard inside an image and if found it returns the pose of the camera wrt the chessboard
|
||
|
*
|
||
|
* @param[in,out] img the original image
|
||
|
* @param[out] pose the pose of the camera
|
||
|
* @param[in] cam the camera
|
||
|
* @param[in] boardSize the size of the chessboard to detect
|
||
|
* @return true if the chessboard has been found
|
||
|
*/
|
||
|
bool process( cv::Mat &img, cv::Mat &pose, const Camera & cam, const cv::Size &boardSize);
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif /*_CHESSBOARDCAMERATRACKER_HPP_*/
|