diff --git a/src/featureTracking.cpp b/src/featureTracking.cpp index a77012a..80f45db 100644 --- a/src/featureTracking.cpp +++ b/src/featureTracking.cpp @@ -31,19 +31,19 @@ CvMat dMat = cvMat(4, 1, CV_64FC1, dImage); IplImage *mapx, *mapy; -const int maxFeatureNumPerSubregion = 20; -const int xSubregionNum = 6; -const int ySubregionNum = 4; +const int maxFeatureNumPerSubregion = 2; +const int xSubregionNum = 12; +const int ySubregionNum = 8; const int totalSubregionNum = xSubregionNum * ySubregionNum; const int MAXFEATURENUM = maxFeatureNumPerSubregion * totalSubregionNum; -const int xBoundary = 30; -const int yBoundary = 30; +const int xBoundary = 20; +const int yBoundary = 20; const double subregionWidth = (double)(imageWidth - 2 * xBoundary) / (double)xSubregionNum; const double subregionHeight = (double)(imageHeight - 2 * yBoundary) / (double)ySubregionNum; const double maxTrackDis = 100; -const int winSize = 21; +const int winSize = 15; IplImage *imageEig, *imageTmp, *pyrCur, *pyrLast;