Drovisio
Classes | Functions
detector_common.h File Reference
#include <stdio.h>
#include "opencv2/core.hpp"
#include <opencv2/core/types.hpp>
#include <opencv2/core/utility.hpp>
#include <cctype>
#include <string>
#include <sstream>
#include <math.h>
#include <iostream>
#include <fstream>
#include <cv.hpp>
Include dependency graph for detector_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  det_com::Line
 Represents a line, made of equidistant and aligned color points. More...
 
struct  det_com::Block
 A detected block in the image, along with the extracted spatial informations. More...
 
struct  det_com::Config
 Config used. More...
 

Functions

Config det_com::load_config (std::string filename)
 Loads the config from filename. More...
 
cv::Vec3d det_com::rot_to_euler (cv::Mat &R)
 Converts a rotation matrix to a vector of Euler angles. More...
 
cv::Mat det_com::euler_to_rot (const cv::Vec3d &euler)
 Converts a vector of Euler angles to a rotation matrix. More...
 

Function Documentation

cv::Mat det_com::euler_to_rot ( const cv::Vec3d &  euler)

Converts a vector of Euler angles to a rotation matrix.

Parameters
eulerEuler angles (3x1)
Returns
Rotation matrix (3x3)
det_com::Config det_com::load_config ( std::string  filename)

Loads the config from filename.

Parameters
filenamePath to the config file
Returns
A Config struct containing the values from filename
cv::Vec3d det_com::rot_to_euler ( cv::Mat &  R)

Converts a rotation matrix to a vector of Euler angles.

Parameters
RRotation matrix (3x3)
Returns
Euler angles (1x3)