diff --git a/src/pointbase.cpp b/src/pointbase.cpp index 5861af1..a462a22 100644 --- a/src/pointbase.cpp +++ b/src/pointbase.cpp @@ -277,7 +277,7 @@ class PointBase { cout << stitcher->panoConfidenceThresh() << "CONFIDENCE TRESH \n" ; //Ptr finder = stitcher->featuresFinder(); - Ptr finder = SIFT::create(); + Ptr finder = SIFT::create(1600); stitcher->setFeaturesFinder(finder); cout << finder->getDefaultName()<<" FINDER \n"; @@ -666,7 +666,7 @@ class PointBase { normalize(imgOverlapAlpha, imgOverlapAlpha, 0.0, 1.0, NORM_MINMAX); normalize(roiOverlapAlpha, roiOverlapAlpha, 0.0, 1.0, NORM_MINMAX); imshow("imgOverlapAlpha", imgOverlapAlpha); - cout<<"AAAAAAAAAAAAA \n"; + cv::add(roiOverlapAlpha,imgOverlapAlpha, resultRoi); normalize(resultRoi, resultRoi, 0.0, 1.0, NORM_MINMAX); @@ -681,7 +681,13 @@ class PointBase { - cv::waitKey(0); + normalize(resultRoi, resultRoi, 0.0, 255.0, NORM_MINMAX); + cv::cvtColor(resultRoi,resultRoi,COLOR_GRAY2BGR); + resultRoi.copyTo(img(Rect(xLoc, yLoc, xWitdth, yHeight))); + imwrite("AAAAAAA.png", img); + cout<<"AAAAAAAAAAAAA \n"; + + destroyAllWindows(); //cout<