00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVGRAPHS_H
00026 #define QVGRAPHS_H
00027
00028 #include <qvipp.h>
00029 #include <qvdta.h>
00030 #include <qvip.h>
00031
00032 #include <QVImage>
00033 #include <QVWorker>
00034
00036 #ifndef DOXYGEN_IGNORE_THIS
00037 class QVGraphsWorker: public QVWorker
00038 {
00039 public:
00040 QVGraphsWorker(QString name): QVWorker(name)
00041 {
00042 addProperty< QVImage<uChar,1> >("Input image", inputFlag|outputFlag);
00043 addProperty< QVImage<uChar,1> >("Output image", outputFlag);
00044 addProperty<int>("Max pixel", outputFlag);
00045 addProperty<int>("Min pixel", outputFlag);
00046
00047
00048 }
00049
00050 void iterate()
00051 {
00052 QVImage<uChar> image = getPropertyValue< QVImage<uChar,1> >("Input image");
00053 uchar min, max;
00054 Max(image, max);
00055 Min(image, min);
00056 setPropertyValue<int>("Max pixel", max);
00057 setPropertyValue<int>("Min pixel", min);
00058
00059
00060
00061
00062
00063
00064
00065
00066 QVImage<uChar> dest(image);
00067 AddC(image, 10, dest);
00068 setPropertyValue< QVImage<uChar,1> >("Output image", dest);
00069 }
00070 };
00071 #endif
00072 #endif