Making two overlapping images into a new one

18 views (last 30 days)
Hello everybody,
I am pretty sure that this question has alredy been posted but I cannot find an answer to my problem:
I have two pictures with an overlapping region (let's say A, the reference and B). I find the best overlapping position by using the cross correlation function (with the indices of the maximum I extract the vector that defines my transformation); Then, I just want to translate image B on image A using my transformation but I cannot find a way. When I translate B with my vector I only get a black picture because the image totally disappear.
Please tell me if my code is needed
(nothing fancy
1-image loading
2-rgb2gray
3-cropping
4-cross correlation
5-finding maximum
6-(the thing that does not work) image registration)
Have a nice day

Accepted Answer

Image Analyst
Image Analyst on 13 Jun 2016
  1 Comment
Hysis Shepard
Hysis Shepard on 14 Jun 2016
Thank you, I used the first link with a few changes and it works well

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!