INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
multicameraviewocv/viewer.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp, Ben Upcroft 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 CAMERACOLLECTIONVIEW_OCV_VIEWER_H 00012 #define CAMERACOLLECTIONVIEW_OCV_VIEWER_H 00013 00014 #include <orcaice/context.h> 00015 #include <orca/multicamera.h> 00016 00017 // opencv headers 00018 #include <highgui.h> 00019 #include <cv.h> 00020 00021 #include <string> 00022 00023 namespace multicameraviewocv { 00025 class Viewer 00026 { 00027 public: 00028 Viewer( const orca::MultiCameraDataPtr& multiCameraData, 00029 const orcaice::Context& context ); 00030 ~Viewer(); 00031 00033 void display( orca::MultiCameraDataPtr& images ); 00034 00035 private: 00041 IplImage* cvMultiDisplayImage_; 00042 // image structure that stores the original image format 00043 IplImage* cvSrcImage_; 00044 00046 const char* name_; 00047 00049 void displayFrameRate(); 00050 00052 void resize( orca::MultiCameraDataPtr& images ); 00053 00055 orca::Time oldFrameTime_; 00056 orca::Time currentFrameTime_; 00057 double diff_; 00058 double fps_; 00060 CvFont font_; 00061 00069 bool isPadded_; 00070 00073 int32_t orcaByteWidth_; 00074 00076 // CvMat partMat_; 00077 // IplImage* partImage_; 00078 00079 orcaice::Context context_; 00080 }; 00081 00082 } //namespace 00083 00084 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)