so i can get final image like this(this image from another example) http://s16.postimg.org/3z0zh2w0l/image.jpg
i try to use this code but it dose not work i get error
Looking at these images, I see at least two potential problems:
1) Visually, it's tough for me to see where the regions of alignment are in these two images. This may be a very tough registration problem.
2) The resolution of these two images looks like it may be quite different. If this is the case, Normalized Cross Correlation will not work. A straightforward use of correlation is only translation invariant.
You might want to take a look at imregister/imregtform as an alternative algorithm.
After looking again, I can see the features that correspond in these two images. If you don't have a lot of images like these to work with in a batch, the easiest path to success will probably be manually selecting the point correspondences using cpselect and then using cp2tform/imtransform to obtain your registered image. I did this and obtained reasonable results.
Play games and win prizes!Learn more