Functions | Variables
aruco_test_gl.cpp File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <GL/gl.h>
#include <GL/glut.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "aruco.h"
Include dependency graph for aruco_test_gl.cpp:

Go to the source code of this file.

Functions

void axis (float size)
 
int main (int argc, char **argv)
 
bool readArguments (int argc, char **argv)
 
bool readIntrinsicFile (string TheIntrinsicFile, Mat &TheIntriscCameraMatrix, Mat &TheDistorsionCameraParams, Size size)
 
void vDrawScene ()
 
void vIdle ()
 
void vMouse (int b, int s, int x, int y)
 
void vResize (GLsizei iWidth, GLsizei iHeight)
 

Variables

MarkerDetector PPDetector
 
bool The3DInfoAvailable =false
 
CameraParameters TheCameraParams
 
bool TheCaptureFlag =true
 
Size TheGlWindowSize
 
Mat TheInputImage
 
string TheInputVideo
 
string TheIntrinsicFile
 
vector< MarkerTheMarkers
 
float TheMarkerSize =-1
 
Mat TheResizedImage
 
Mat TheUndInputImage
 
VideoCapture TheVideoCapturer
 

Function Documentation

◆ axis()

void axis ( float  size)

Definition at line 155 of file aruco_test_gl.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 91 of file aruco_test_gl.cpp.

◆ readArguments()

bool readArguments ( int  argc,
char **  argv 
)

Definition at line 70 of file aruco_test_gl.cpp.

◆ readIntrinsicFile()

bool readIntrinsicFile ( string  TheIntrinsicFile,
Mat &  TheIntriscCameraMatrix,
Mat &  TheDistorsionCameraParams,
Size  size 
)

This function reads the matrix intrinsics and the distorsion coefficients from a file. The format of the file is

# comments
fx fy cx cy k1 k2 p1 p2 width height 1
Parameters
TheIntrinsicFilepath to the file with the info
TheIntriscCameraMatrixoutput matrix with the intrinsics
TheDistorsionCameraParamsoutput vector with distorsion params
sizeof the images captured. Note that the images you are using might be different from these employed for calibration (which are in the file). If so, the intrinsic must be adapted properly. That is why you must pass here the size of the images you are employing
Returns
true if params are readed properly

Definition at line 46 of file common.h.

◆ vDrawScene()

void vDrawScene ( )

clear

draw image in the buffer

Set the appropriate projection matrix so that rendering is done in a enrvironment

Definition at line 184 of file aruco_test_gl.cpp.

◆ vIdle()

void vIdle ( )

Definition at line 240 of file aruco_test_gl.cpp.

◆ vMouse()

void vMouse ( int  b,
int  s,
int  x,
int  y 
)

Definition at line 141 of file aruco_test_gl.cpp.

◆ vResize()

void vResize ( GLsizei  iWidth,
GLsizei  iHeight 
)

Definition at line 266 of file aruco_test_gl.cpp.

Variable Documentation

◆ PPDetector

MarkerDetector PPDetector

Definition at line 48 of file aruco_test_gl.cpp.

◆ The3DInfoAvailable

bool The3DInfoAvailable =false

Definition at line 46 of file aruco_test_gl.cpp.

◆ TheCameraParams

CameraParameters TheCameraParams

Definition at line 52 of file aruco_test_gl.cpp.

◆ TheCaptureFlag

bool TheCaptureFlag =true

Definition at line 54 of file aruco_test_gl.cpp.

◆ TheGlWindowSize

Size TheGlWindowSize

Definition at line 53 of file aruco_test_gl.cpp.

◆ TheInputImage

Mat TheInputImage

Definition at line 51 of file aruco_test_gl.cpp.

◆ TheInputVideo

string TheInputVideo

Definition at line 44 of file aruco_test_gl.cpp.

◆ TheIntrinsicFile

string TheIntrinsicFile

Definition at line 45 of file aruco_test_gl.cpp.

◆ TheMarkers

vector<Marker> TheMarkers

Definition at line 50 of file aruco_test_gl.cpp.

◆ TheMarkerSize

float TheMarkerSize =-1

Definition at line 47 of file aruco_test_gl.cpp.

◆ TheResizedImage

Mat TheResizedImage

Definition at line 51 of file aruco_test_gl.cpp.

◆ TheUndInputImage

Mat TheUndInputImage

Definition at line 51 of file aruco_test_gl.cpp.

◆ TheVideoCapturer

VideoCapture TheVideoCapturer

Definition at line 49 of file aruco_test_gl.cpp.



tuw_aruco
Author(s): Lukas Pfeifhofer
autogenerated on Mon Feb 28 2022 23:58:06