|
|
|
@ -277,7 +277,7 @@ class PointBase {
|
|
|
|
|
cout << stitcher->panoConfidenceThresh() << "CONFIDENCE TRESH \n" ;
|
|
|
|
|
|
|
|
|
|
//Ptr<Feature2D> finder = stitcher->featuresFinder();
|
|
|
|
|
Ptr<Feature2D> finder = SIFT::create();
|
|
|
|
|
Ptr<Feature2D> 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<<CV_VERSION;
|
|
|
|
|
}
|
|
|
|
|