From 696bd11bc7be9f1c4526e98a934535879913e3d8 Mon Sep 17 00:00:00 2001 From: Pavol Debnar Date: Wed, 15 Mar 2023 19:12:08 +0100 Subject: [PATCH] can do one blob, blending function is wack --- src/pointbase.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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<