panoramic stitching of 3 images using opencv and C++ - c++

I am using open CV and C++ to stitch 3 images together so that it forms a panorama. So what I am doing is..
use SURF Detector then Surf Descriptor Extractor etc to stitch 2 images. I then save the result of these 2images in the folder where my project is located and repeat the same thing but this time with previous result of 2 stitched images and the last image that needs to be stitched..i get build errors :S can anyone help please?
Here is the code pastebin.com/QuDuN0Ze

Related

Problem stiching images from a drone with OpenCV due to a poor quality of the images

I am working with OpenCV and a quad ArDrone Parrot 2.0.
I'm capturing the images from the bottom camera of the quad and I wish to stitch them in order to get a larger image. I'm trying to detect the squares marked in the images.
I tried to perform keypoint detection with ORB, SIFT, SURF and BRISK and changing their parameters to different values and there weren't good results from that.
I am unsure about the quality of the images, so maybe a preprocessing would help?
IMAGES:
1 2 3 4 5

drawing two lines on a facerecognition live video capture

i'm using opencv with c++ for a face recognition application, the face recognition part works just fine until i wanted to add two lines on the video capture to split it on 3 parts, this is my code i'm using opencv 2.4.11 and visual studio 2012:i wrote this part to insert lines in an image but for a video i dont get anything .
Mat image;
image = imread("C:\\Users\\user\\Desktop\\pfedocs\\ggg_opt.jpg", CV_LOAD_IMAGE_COLOR);
line(image,Point(25,0),Point(25,500),Scalar(0,255,0),3,2,0);
line(image,Point(190,0),Point(190,500),Scalar(0,255,0),3,2,0);
line(image,Point(355,0),Point(355,500),Scalar(0,255,0),3,2,0);
can anyone help me with this ?

How to stitch 4 images using opencv in c++

I have images of 4 different positions of a road and I want to stitch them together using OpenCV. The problem is that the changes between the pictures is not "smooth", the color and the texture of the images is not the same so it doesn't seem like this is actually 1 big picture.
You could try out the sticher class of opencv. Specially the examples examples opencv brings in the source code at opencv_source_code/samples/cpp/stitching.cpp and at opencv_source_code/samples/cpp/stitching_detailed.cpp.
If the result of executing the stiching example in your images is what you want you can explore the code to see how it was done.

Opencv Images Orthorectification

I'm writing a program in opencv that stitches aerial images taken by a drone. The problem is that the stitch,after a certain point, start to "curving", so my homography matrix will be messed up and I can't stitch anything more.
There's a way in openv to do images orthorectivication without gps or DEM parameters? If not in opencv, there's a library easily integrable with opencv?
Thanks!
PS: I'm programming in C++

Stitching Panoramic Images

Today I came up with an interesting project from Germany: Throwable PanoramicBall Camera 36 images are captured in a small ball, then they are showed panoramically. The author declares to use OpenCV
Can you give me some idea about creating a model for cameras at fixed position/orientation and stitching images with OpenCV?
Look into Image rectification:
http://en.wikipedia.org/wiki/Image_rectification
This book also has some good explanations and code examples on how to do it in OpenCV in the later chapters:
http://www.amazon.com/OpenCV-Computer-Application-Programming-Cookbook/dp/1849513244/ref=sr_1_1?ie=UTF8&qid=1319209140&sr=8-1
The author was probably using the new samples available in OpenCV.
Here are links to the samples currently available in OpenCV...
stitching_detailed
stitching
You may want to start with these samples if you're trying to do image stitching in OpenCV.