#include <PointCloudVisualizationModel.h>
Public Member Functions | |
void | draw (cv::Mat &img, const cv::Mat &cTo, const cv::Mat &A, const cv::Mat &K=cv::Mat()) const |
PointCloudVisualizationModel (const std::string &filename) | |
virtual | ~PointCloudVisualizationModel () |
Protected Member Functions | |
void | calculateDimensions () |
void | convertPLY2Mat () |
Protected Attributes | |
float | m_dimx |
Dimensions. | |
float | m_dimy |
float | m_dimz |
cv::Mat | m_oP |
std::vector < DVision::PMVS::PLYFile::PLYPoint > | m_plypoints |
Point cloud. |
Definition at line 43 of file PointCloudVisualizationModel.h.
PointCloudVisualizationModel::PointCloudVisualizationModel | ( | const std::string & | filename | ) |
Creates the visualization model
filename | ply filename |
Definition at line 49 of file PointCloudVisualizationModel.cpp.
virtual PointCloudVisualizationModel::~PointCloudVisualizationModel | ( | ) | [inline, virtual] |
Definition at line 53 of file PointCloudVisualizationModel.h.
void PointCloudVisualizationModel::calculateDimensions | ( | ) | [protected] |
Calculates the dimensions of the object according to m_oP, and stores the result in m_dim#
Definition at line 80 of file PointCloudVisualizationModel.cpp.
void PointCloudVisualizationModel::convertPLY2Mat | ( | ) | [protected] |
Creates m_oP from m_plypoints
Definition at line 58 of file PointCloudVisualizationModel.cpp.
void PointCloudVisualizationModel::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
img | target image |
cTo | transformation from (c)amera to (o)bject |
A | intrinsic parameters of the camera that took image img |
K | distortion coefficient vector |
Implements VisualizationModel.
Definition at line 108 of file PointCloudVisualizationModel.cpp.
float PointCloudVisualizationModel::m_dimx [protected] |
Dimensions.
Definition at line 89 of file PointCloudVisualizationModel.h.
float PointCloudVisualizationModel::m_dimy [protected] |
Definition at line 89 of file PointCloudVisualizationModel.h.
float PointCloudVisualizationModel::m_dimz [protected] |
Definition at line 89 of file PointCloudVisualizationModel.h.
cv::Mat PointCloudVisualizationModel::m_oP [protected] |
Point cloud in homogeneous coordinates: 4xN double matrix in the object reference
Definition at line 86 of file PointCloudVisualizationModel.h.
Point cloud.
Definition at line 82 of file PointCloudVisualizationModel.h.