openCvAdaptor.h
Go to the documentation of this file.
00001 #ifndef H_PUMA2OPENCV_H
00002 #define H_PUMA2OPENCV_H
00003 
00004 #include "puma2config.h"
00005 
00006 #ifdef HAVE_OPENCV 
00007 
00008 
00009 /* OpenCV stuff */
00010 #include <opencv/cv.h>
00011 #include <opencv/highgui.h>
00012 #include <opencv/cxcore.h>
00013 
00014 #include "GrayLevelImage8.h"
00015 #include "ColorImageRGB8.h"
00016 
00017 namespace puma2 {
00018 
00023 class AdaptorOpenCvToPuma2 
00024 {
00025         IplImage * iplImage;
00026 public:
00027     AdaptorOpenCvToPuma2 (const ColorImageRGB8&);
00028     // AdaptorOpenCvToPuma2 (ColorImageRGB8&);
00029     AdaptorOpenCvToPuma2 (const GrayLevelImage8&);
00030     // AdaptorOpenCvToPuma2 (GrayLevelImage8&);
00031     ~AdaptorOpenCvToPuma2 ();
00032         IplImage * asIplImage();
00033         const IplImage * asIplImage() const;
00034 protected:
00035 public:
00036 private:
00037 void initIpl(void * data, const char * colorModel, int w, int h, int nChannels);
00038 };
00039 
00040 }
00041 
00042 #endif
00043 #endif


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43