|
orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
camerareader.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp, Alen Alempijevic 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCA_ORCALOGFACTORY_CAMERA_READER_H 00012 #define ORCA_ORCALOGFACTORY_CAMERA_READER_H 00013 00014 #include <orcalog/logreader.h> 00015 #include <orca/camera.h> 00016 00017 #ifdef OPENCV_FOUND 00018 #include <cv.h> 00019 #endif 00020 00021 namespace orcalogfactory 00022 { 00023 00024 class CameraReader 00025 { 00026 public: 00027 CameraReader(); 00028 virtual ~CameraReader(); 00029 00030 void readFromFile( std::ifstream *file, 00031 const std::string &format, 00032 orcaice::Context context, 00033 orca::CameraDescriptionPtr &obj ); 00034 00035 void readFromFile( std::ifstream *file, 00036 const std::string &format, 00037 orcaice::Context context, 00038 orca::ImageDataPtr &obj ); 00039 00040 void loadJpegData( const std::string &format, 00041 orca::ImageData &obj ); 00042 00043 00044 private: 00045 00046 #ifdef OPENCV_FOUND 00047 IplImage* cvImage_; 00048 #endif 00049 00050 }; 00051 00052 } // namespace 00053 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)
1.4.5