Public Member Functions | Protected Attributes
PlanarVisualizationModel Class Reference

#include <PlanarVisualizationModel.h>

Inheritance diagram for PlanarVisualizationModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void draw (cv::Mat &img, const cv::Mat &cTo, const cv::Mat &A, const cv::Mat &K=cv::Mat()) const
void draw (cv::Mat &img, const cv::Mat &sHm, unsigned int face_idx) const
 PlanarVisualizationModel (const std::vector< ObjectModel::Face > &faces, const MetaFile::MetaData::tDimensions::tPlanar &dim)
virtual ~PlanarVisualizationModel ()

Protected Attributes

MetaFile::MetaData::tDimensions::tPlanar m_dim
std::vector< cv::Mat > m_face_images
 Images for visualization (colour and bw)
std::vector< cv::Mat > m_face_images_bw
std::vector< cv::Mat > m_inv_A

Detailed Description

Definition at line 42 of file PlanarVisualizationModel.h.


Constructor & Destructor Documentation

Creates the visualization model

Parameters:
facesfaces present in the model. Only the image and the camera info is used
dimgeometry and size information of the object and the faces
Note:
The reference system is assumed to be x pointing right, y pointing down and z going away the camera, with the origin in the center of the object

Definition at line 47 of file PlanarVisualizationModel.cpp.

Definition at line 57 of file PlanarVisualizationModel.h.


Member Function Documentation

void PlanarVisualizationModel::draw ( cv::Mat &  img,
const cv::Mat &  cTo,
const cv::Mat &  A,
const cv::Mat &  K = cv::Mat() 
) const [virtual]

Draws the model in the given image

Parameters:
imgtarget image
cTotransformation from (c)amera to (o)bject
Aintrinsic parameters of the camera that took image img
Kdistortion coefficient vector
See also:
VisualizationModel::draw

Implements VisualizationModel.

Definition at line 77 of file PlanarVisualizationModel.cpp.

void PlanarVisualizationModel::draw ( cv::Mat &  img,
const cv::Mat &  sHm,
unsigned int  face_idx 
) const

Draws only one face of the model in the given image according to a homography

Parameters:
imgtarget image
sHmhomography to convert model points into img points
face_idxindex of the face to draw

Definition at line 226 of file PlanarVisualizationModel.cpp.


Member Data Documentation

Transformations from origin of object to faces, dimensions of the object and dimensions of the faces

Definition at line 90 of file PlanarVisualizationModel.h.

Images for visualization (colour and bw)

Definition at line 82 of file PlanarVisualizationModel.h.

Definition at line 82 of file PlanarVisualizationModel.h.

Inverse matrix of the intrinsic parameters of the cameras that took each image (double format)

Definition at line 86 of file PlanarVisualizationModel.h.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:17