00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVIP_H
00026 #define QVIP_H
00027
00028 #include <iostream>
00029
00030 #include <qvdefines.h>
00031 #include <QVImage>
00032 #include <QVPolyline>
00033
00036 void FilterHarrisCornerResponseImage(const QVImage<uChar> &image, QVImage<sFloat> &result, int aperture=3, int avgwindow=5, const QPoint &destROIOffset = QPoint(0,0));
00037
00040 void FilterDoG(const QVImage<uChar> &image, QVImage<uChar> &result);
00041
00045 void SobelCornerResponseImage(const QVImage<sFloat> &image, QVImage<sFloat> &result);
00046
00049 void FilterHessianCornerResponseImage( const QVImage<sFloat> &image, QVImage<sFloat> &result,
00050 const QPoint &destROIOffset = QPoint(0,0));
00051
00054 void FilterNormalize(const QVImage<uChar,1> &image, QVImage<uChar,1> &equalized, const QPoint &destROIOffset = QPoint(0,0));
00055
00058 void FilterNormalize(const QVImage<sFloat,1> &image, QVImage<sFloat,1> &equalized, const QPoint &destROIOffset = QPoint(0,0));
00059
00061 class QVComponentTree;
00062 void FilterPruneComponentTreeSmallRegions(QVImage<uChar> &image, QVComponentTree &componentTree, uInt area);
00063
00064 #include <qvmath/qvvector.h>
00065 #include <QPoint>
00067 void FilterSeparable(const QVImage<sFloat, 1> &image, QVImage<sFloat, 1> &dest,
00068 const QVVector &rowFilter, const QVVector &colFilter, const QPoint &destROIOffset = QPoint(0,0));
00086 void FilterLocalMax(const QVImage<sFloat> &src, QVImage<uChar> &dest, uInt colMaskSize, uInt rowMaskSize, sFloat threshold = 0);
00087
00093 QMap<sFloat, QPointF> maximalPoints(const QVImage<sFloat> &image, const double threshold = 1.0, const int windowRadius = 2);
00094
00101 QMap<sFloat, QPointF> fastMaximalPoints(const QVImage<sFloat> &image, const double threshold = 1.0, const int windowSize = 2);
00102
00117 QMap<sFloat, QPointF> fastMaximalPoints(const QVImage<uChar> &image, const double threshold, const int windowRadius);
00118
00129 QVector< QVector< QPoint > > CountingSort(const QVImage<uChar, 1> &img);
00130
00169 double IterativePointElimination(const QVPolyline &polyline, QVPolyline &result,
00170 const double param, bool maxNumberOfPointsMethod=FALSE,
00171 bool intersectLines=TRUE, double *max_removed_cost=NULL);
00172
00181 double IterativePointElimination(const QVPolylineF &polyline, QVPolylineF &result,
00182 const double param, bool maxNumberOfPointsMethod=FALSE,
00183 bool intersectLines=TRUE, double *max_removed_cost=NULL);
00184
00216 QVPolyline getConnectedSetBorderContourThreshold(const QVImage<uChar> &image, const QPoint point, const uChar threshold = 128);
00217
00238 QList<QVPolyline> getConnectedSetBorderContoursThreshold(const QVImage <uChar> &image, const uChar threshold = 128);
00239
00262 QList<QVPolyline> getLineContoursThreshold4Connectivity(const QVImage<uChar> &image, const uChar threshold = 128);
00263
00286 QList<QVPolyline> getLineContoursThreshold8Connectivity(const QVImage<uChar> &image, const uChar threshold = 128);
00287
00288 #endif
00289