Public Member Functions | Public Attributes | List of all members
alvar::ProjPoints Struct Reference

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. More...
 
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. More...
 
void Reset ()
 Reset object_points , image_points and point_counts. More...
 

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

Detailed Description

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

Examples:
SampleCamCalib.cpp.

Definition at line 52 of file Camera.h.

Member Function Documentation

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.

Examples:
SampleCamCalib.cpp.

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.

Examples:
SampleCamCalib.cpp.

Definition at line 35 of file Camera.cpp.

Member Data Documentation

int alvar::ProjPoints::height

Definition at line 54 of file Camera.h.

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.

Examples:
SampleCamCalib.cpp.

Definition at line 64 of file Camera.h.

std::vector<CvPoint3D64f> alvar::ProjPoints::object_points

3D object points corresponding with the detected 2D image points.

Examples:
SampleCamCalib.cpp.

Definition at line 57 of file Camera.h.

std::vector<int> alvar::ProjPoints::point_counts

Vector indicating how many points are detected for each frame.

Definition at line 66 of file Camera.h.

int alvar::ProjPoints::width

Definition at line 53 of file Camera.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Jun 6 2019 19:27:24