00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00038
00039
00040
00041
00042 #include <QVApplication>
00043 #include <QVMPlayerCamera>
00044 #include <QVGUI>
00045 #include <QVImageCanvas>
00046
00047 #ifndef DOXYGEN_IGNORE_THIS
00048 class PlayerWorker: public QVWorker
00049 {
00050 public:
00051 PlayerWorker(QString name): QVWorker(name)
00052 {
00053 addProperty< QVImage<uChar,3> >("Input image", inputFlag|outputFlag);
00054 }
00055
00056 void iterate() { }
00057 };
00058
00059 int main(int argc, char *argv[])
00060 {
00061 QVApplication app(argc, argv,
00062 "Example program for QVision library. Displays the contents of a video source."
00063 );
00064
00065 QVMPlayerCamera camera("Video");
00066 PlayerWorker worker("Video player worker");
00067 camera.link(&worker,"Input image");
00068
00069 QVGUI interface;
00070
00071 QVImageCanvas imageCanvas("Output image");
00072 imageCanvas.linkProperty(worker, "Input image");
00073
00074 return app.exec();
00075 }
00076
00077 #endif