00001 #ifndef POLAROUTPUT_H
00002 #define POLAROUTPUT_H
00003
00004 #include "output.h"
00005 #include "../recognition/searchradius.h"
00006 #include <opencv/cv.hpp>
00007 #include <iostream>
00008
00009 extern "C"
00010 {
00011 #include <opencv/highgui.h>
00012 }
00013
00014 using namespace std;
00015
00016 namespace seemicro
00017 {
00018
00019 class PolarOutput : public OutputModule
00020 {
00021 PolarModule& p;
00022 public:
00023 PolarOutput(PolarModule& Ap) : p(Ap)
00024 {
00025 if(1 != cvNamedWindow("Polar", 1))
00026 { cerr << "cvNamedWindow(Polar): error" << endl; exit(1); }
00027 }
00028
00029 ~PolarOutput()
00030 {
00031 cvDestroyWindow("Polar");
00032 }
00033
00034 void output(bool keyframe)
00035 {
00036 cvShowImage("Polar", p.img);
00037
00038 }
00039
00040 };
00041
00042 }
00043
00044 #endif
00045