My Project
Public Member Functions | Public Attributes | List of all members
ProjPoints Struct Reference

Simple structure for collecting 2D and 3D points e.g. for camera calibration. More...

#include <Camera.h>

Public Member Functions

void Reset ()
 Reset object_points , image_points and point_counts.
 
bool AddPointsUsingChessboard (const cv::Mat &, 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, cv::Mat &image)
 Add elements to object_points , image_points and point_counts using detected markers.
 

Public Attributes

int width
 
int height
 
std::vector< cv::Point3d > object_points
 3D object points corresponding with the detected 2D image points.
 
std::vector< cv::Point2d > 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< int > point_counts
 Vector indicating how many points are detected for each frame.
 

Detailed Description

Simple structure for collecting 2D and 3D points e.g. for camera calibration.

Definition at line 45 of file Camera.h.


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