Borrar filtros
Borrar filtros

how to find the translation for x and y in order to align edge detected images

1 visualización (últimos 30 días)
Find the translation required in the x and y coordinates in order to align edge detected images. Align the edge detected images of the second and the third parts (G and R) to the first (B). The easiest way to align the parts is to exhaustively search over a window of possible displacements using the "circshift" MATLAB function. Score each one using an image matching metric, and take the displacement with the best score. Use the sum of squared difference metric to measure how well images match: Sum of squared differences: sum( (image1-image2).^2 ) For each image, you will need to record the displacements in x and y that were used to align the parts; make sure to state whether it is (y,x) or (x,y) because typically the first coordinate in MATLAB is the vertical component
Please help!

Respuestas (1)

Image Analyst
Image Analyst el 22 de Abr. de 2013
A couple of for loops with circshift() and your sum equation inside should do it. Just be sure to cast your images to single or double before you subtract them so that you can get negative values and not have them clip at zero.
  6 comentarios
Pretzel
Pretzel el 27 de Sept. de 2014
My assignment requires me to align three images, namely the R,G,B color channels of the same image, to form one color image. In order to do so, I am required to find out the displacement vector , of R and G , keeping B as the reference image, and then align accordingly. But I am confused as to how to find the displacement vector by ssd. Its really urgent, please help. Thanks a lot!
Image Analyst
Image Analyst el 27 de Sept. de 2014
I think you should start your own discussion rather than continue nita's which I think will send her emails about your problem. And when you do, explain how and why the red, green, and blue got displaced in the first place, and attach your image and code where you attempted to use imregister to align them.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by