GSoC2011SfM
0.1
Google Summer of Code 2011: Structure from motion
|
00001 #include "Camera.h" 00002 00003 using cv::Mat; 00004 using cv::Vec3d; 00005 using cv::Range; 00006 using std::vector; 00007 00008 namespace OpencvSfM{ 00009 00010 Camera::Camera( int img_w, int img_h ) 00011 { 00012 img_width = img_w; 00013 img_height = img_h; 00014 } 00015 00016 Camera::~Camera( void ) 00017 { 00018 } 00019 00020 cv::Ptr<Camera> Camera::read( const cv::FileNode& node ) 00021 { 00022 std::string myName=node.name( ); 00023 if( myName != "Camera" ) 00024 { 00025 std::string error = "Camera FileNode is not correct!\nExpected \"Camera\", got "; 00026 error += node.name(); 00027 CV_Error( CV_StsError, error.c_str() ); 00028 } 00029 //nothing to do as we are a fake camera... 00030 return cv::Ptr<Camera>( NULL ); 00031 } 00032 00033 }