mirror of
https://github.com/debnarpavol/spajanie_snimkov_uprava_jasu.git
synced 2025-07-01 21:57:20 +02:00
can do one blob, blending function is wack
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user