diff --git a/README.md b/README.md index 8e3c458..6bf1139 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Stitching Barrel Surface Images and Correcting Their Brightness - Master's Thesis +The goal of this project is to provide a library that is useful for the stitching and brightness correction of images from the inside of a barrel. Additionally, functionality for real-time stitching will be supplied. +![Image stitching](samples/stitch.png "Image stitching") ##### Prerequisites diff --git a/samples/stitch.png b/samples/stitch.png new file mode 100644 index 0000000..b6a91ba Binary files /dev/null and b/samples/stitch.png differ diff --git a/src/pointbase.cpp b/src/pointbase.cpp index da57a94..4a7c3ca 100644 --- a/src/pointbase.cpp +++ b/src/pointbase.cpp @@ -2,7 +2,6 @@ #include "opencv2/core.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/imgcodecs.hpp" -#include "opencv2/highgui.hpp" #include "opencv2/stitching.hpp" #include #include @@ -11,6 +10,7 @@ #include #include #include +#include using namespace cv; using namespace std; #include @@ -261,9 +261,18 @@ class PointBase { //stitching // Define object to store the stitched image Mat pano; - + bool try_use_gpu=true; // Create a Stitcher class object with mode scans Ptr stitcher = Stitcher::create(Stitcher::SCANS); + //stitcher->setPanoConfidenceThresh(0.85); + cout << stitcher->panoConfidenceThresh() << "CONFIDENCE TRESH \n" ; + + //Ptr finder = stitcher->featuresFinder(); + Ptr finder = SIFT::create(); + stitcher->setFeaturesFinder(finder); + cout << finder->getDefaultName()<<" FINDER \n"; + + vector imgs; //open stream for logging diff --git a/src/test b/src/test new file mode 100755 index 0000000..2b7e26a Binary files /dev/null and b/src/test differ