mirror of
https://github.com/debnarpavol/spajanie_snimkov_uprava_jasu.git
synced 2025-07-04 04:37:21 +02:00
Use of SIFT descriptors when stitching (better stitching, more time consuming), images and readme
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
# Stitching Barrel Surface Images and Correcting Their Brightness - Master's Thesis
|
# 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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
##### Prerequisites
|
##### Prerequisites
|
||||||
|
|
||||||
|
BIN
samples/stitch.png
Normal file
BIN
samples/stitch.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 MiB |
@ -2,7 +2,6 @@
|
|||||||
#include "opencv2/core.hpp"
|
#include "opencv2/core.hpp"
|
||||||
#include "opencv2/imgproc.hpp"
|
#include "opencv2/imgproc.hpp"
|
||||||
#include "opencv2/imgcodecs.hpp"
|
#include "opencv2/imgcodecs.hpp"
|
||||||
#include "opencv2/highgui.hpp"
|
|
||||||
#include "opencv2/stitching.hpp"
|
#include "opencv2/stitching.hpp"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -11,6 +10,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <typeinfo>
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
@ -261,9 +261,18 @@ class PointBase {
|
|||||||
//stitching
|
//stitching
|
||||||
// Define object to store the stitched image
|
// Define object to store the stitched image
|
||||||
Mat pano;
|
Mat pano;
|
||||||
|
bool try_use_gpu=true;
|
||||||
// Create a Stitcher class object with mode scans
|
// Create a Stitcher class object with mode scans
|
||||||
Ptr<Stitcher> stitcher = Stitcher::create(Stitcher::SCANS);
|
Ptr<Stitcher> stitcher = Stitcher::create(Stitcher::SCANS);
|
||||||
|
//stitcher->setPanoConfidenceThresh(0.85);
|
||||||
|
cout << stitcher->panoConfidenceThresh() << "CONFIDENCE TRESH \n" ;
|
||||||
|
|
||||||
|
//Ptr<Feature2D> finder = stitcher->featuresFinder();
|
||||||
|
Ptr<Feature2D> finder = SIFT::create();
|
||||||
|
stitcher->setFeaturesFinder(finder);
|
||||||
|
cout << finder->getDefaultName()<<" FINDER \n";
|
||||||
|
|
||||||
|
|
||||||
vector<Mat> imgs;
|
vector<Mat> imgs;
|
||||||
|
|
||||||
//open stream for logging
|
//open stream for logging
|
||||||
|
Reference in New Issue
Block a user