Simple structure for collecting 2D and 3D points e.g. for camera calibration. More...
#include <Camera.h>
Public Member Functions | |
bool | AddPointsUsingChessboard (IplImage *image, double etalon_square_size, int etalon_rows, int etalon_columns, bool visualize) |
Add elements to object_points , image_points and point_counts using Chessboard pattern. | |
bool | AddPointsUsingMarkers (std::vector< PointDouble > &marker_corners, std::vector< PointDouble > &marker_corners_img, IplImage *image) |
Add elements to object_points , image_points and point_counts using detected markers. | |
void | Reset () |
Reset object_points , image_points and point_counts. | |
Public Attributes | |
int | height |
std::vector< CvPoint2D64f > | image_points |
Detected 2D object points If point_counts[0] == 10, then the first 10 points are detected in the first frame. If point_counts[1] == 6, then the next 6 of these points are detected in the next frame... etc. | |
std::vector< CvPoint3D64f > | object_points |
3D object points corresponding with the detected 2D image points. | |
std::vector< int > | point_counts |
Vector indicating how many points are detected for each frame. | |
int | width |
Simple structure for collecting 2D and 3D points e.g. for camera calibration.
bool alvar::ProjPoints::AddPointsUsingChessboard | ( | IplImage * | image, |
double | etalon_square_size, | ||
int | etalon_rows, | ||
int | etalon_columns, | ||
bool | visualize | ||
) |
Add elements to object_points , image_points and point_counts using Chessboard pattern.
Definition at line 42 of file Camera.cpp.
bool alvar::ProjPoints::AddPointsUsingMarkers | ( | std::vector< PointDouble > & | marker_corners, |
std::vector< PointDouble > & | marker_corners_img, | ||
IplImage * | image | ||
) |
Add elements to object_points , image_points and point_counts using detected markers.
Definition at line 82 of file Camera.cpp.
void alvar::ProjPoints::Reset | ( | ) |
Reset object_points , image_points and point_counts.
Definition at line 35 of file Camera.cpp.
std::vector<CvPoint2D64f> alvar::ProjPoints::image_points |
Detected 2D object points If point_counts[0] == 10, then the first 10 points are detected in the first frame. If point_counts[1] == 6, then the next 6 of these points are detected in the next frame... etc.
std::vector<CvPoint3D64f> alvar::ProjPoints::object_points |
3D object points corresponding with the detected 2D image points.
std::vector<int> alvar::ProjPoints::point_counts |