00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00037 #include <stdio.h>
00038 #include <stdlib.h>
00039 #include <iostream>
00040 #include <QDebug>
00041
00042 #include <QVApplication>
00043 #include <QVVideoReaderBlock>
00044 #include <QVFilterSelectorBlock>
00045
00046 #include <QVDefaultGUI>
00047 #include <QVImageCanvas>
00048
00049 #ifndef DOXYGEN_IGNORE_THIS
00050
00051 int main(int argc, char *argv[])
00052 {
00053 QVApplication app(argc, argv, "Example program for QVision library.");
00054
00055 QVVideoReaderBlock camera("Video");
00056 QVFilterSelectorBlock<uChar, 3> filterBlock("Image filter block");
00057 camera.linkProperty(&filterBlock,"Input image");
00058
00059 QVDefaultGUI interface;
00060
00061 QVImageCanvas filteredImage("Filtered image");
00062 filterBlock.linkProperty("Output image", filteredImage);
00063
00064 return app.exec();
00065 }
00066
00067 #endif
00068