can do one blob, blending function is wack

main
Pavol Debnar 2 years ago
parent 713efec9e1
commit 696bd11bc7

@ -277,7 +277,7 @@ class PointBase {
cout << stitcher->panoConfidenceThresh() << "CONFIDENCE TRESH \n" ; cout << stitcher->panoConfidenceThresh() << "CONFIDENCE TRESH \n" ;
//Ptr<Feature2D> finder = stitcher->featuresFinder(); //Ptr<Feature2D> finder = stitcher->featuresFinder();
Ptr<Feature2D> finder = SIFT::create(); Ptr<Feature2D> finder = SIFT::create(1600);
stitcher->setFeaturesFinder(finder); stitcher->setFeaturesFinder(finder);
cout << finder->getDefaultName()<<" FINDER \n"; cout << finder->getDefaultName()<<" FINDER \n";
@ -666,7 +666,7 @@ class PointBase {
normalize(imgOverlapAlpha, imgOverlapAlpha, 0.0, 1.0, NORM_MINMAX); normalize(imgOverlapAlpha, imgOverlapAlpha, 0.0, 1.0, NORM_MINMAX);
normalize(roiOverlapAlpha, roiOverlapAlpha, 0.0, 1.0, NORM_MINMAX); normalize(roiOverlapAlpha, roiOverlapAlpha, 0.0, 1.0, NORM_MINMAX);
imshow("imgOverlapAlpha", imgOverlapAlpha); imshow("imgOverlapAlpha", imgOverlapAlpha);
cout<<"AAAAAAAAAAAAA \n";
cv::add(roiOverlapAlpha,imgOverlapAlpha, resultRoi); cv::add(roiOverlapAlpha,imgOverlapAlpha, resultRoi);
normalize(resultRoi, resultRoi, 0.0, 1.0, NORM_MINMAX); 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<<CV_VERSION; //cout<<CV_VERSION;
} }

Loading…
Cancel
Save