Extend Field of view by joining multiple frames

Dear All;
I have taken a video and then convert it to frames . Unfortunately , the field of view of the camera was smaller than required to capture video details . I am thinking to join consecutive frames together in one image to complete the picture for me but how can i do it ?

Answers (2)

Use , to stitch horizontally, and ; to stitch vertically.
wideImage = [image1, image2];
tallImage = [image1, image2];
Put in a loop http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F to read in all the images and stitch them in the right place.
You can use montage() as long as there aren't too many of them or you'd run out of memory. Same with my other answer.

6 Comments

Dear Image analyst;
Thank for your answer
In fact , i am looking to reconstruct a moving object which is bigger that Field of view using multiple frames . suppose that i have a ball moving but it is not shown completely in FOV ,so, i need to use multiple frames to reconstruct , how can i do that
Thank you very much for your valauable support let me show you the the attached photo
Frame 1 Frame 2
Thank you very much for you help
Let me show you the file to make you understand what i am looking for as you can see in the extended frame , only the difference is added to frame 1.
Perhaps normalized cross correlation might also help. See attached demo.
But there's nothing built in to do exactly what you want so you're going to have to write code that to do it that makes use of lower level functions.
Ok , i will try to develop the code just one this , how can i find how many pixel the second frame moves , how many pixels the second frame is shifted.
Use the moving one as a template. Maybe cut out a small part from the center. There's a bit of bookkeeping to do to figure out where it comes from, but it can be done, as I show in the demo. Did you run it? Notice how the template is properly located within the fixed, stationary image.

Sign in to comment.

Asked:

on 4 Jan 2016

Commented:

on 6 Jan 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!