GSoC2011SfM  0.1
Google Summer of Code 2011: Structure from motion
D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/Visualizer.h
00001 #ifndef _GSOC_SFM_VISUALIZER_H
00002 #define _GSOC_SFM_VISUALIZER_H 1
00003 
00004 #include "macro.h" //SFM_EXPORTS
00005 
00006 #include "opencv2/core/core.hpp"
00007 #include <pcl/point_types.h>
00008 
00009 #include <pcl/visualization/pcl_visualizer.h>
00010 
00011 namespace OpencvSfM{
00012   class SFM_EXPORTS PointOfView;
00020   class SFM_EXPORTS Visualizer{
00021   protected:
00022     boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer;
00023   public:
00028     Visualizer( std::string name = "3D Viewer" );
00029     
00036     void addCamera( const PointOfView& camera,
00037       std::string name = "camera", int viewport = 0 );
00038 
00045     void add3DPoints( const std::vector<cv::Vec3d>& points,
00046       std::string name = "cloud", int viewport = 0 );
00047     
00055     void add3DPointsColored( const std::vector<cv::Vec3d>& points,
00056       const std::vector<unsigned int>& colors,
00057       std::string name = "cloud", int viewport = 0 );
00058     
00062     void runInteract( );
00063   };
00064 }
00065 
00066 #endif
 All Classes Functions Variables