In images aligning, how to exclude some areas from xcorr2 execution?
2 views (last 30 days)
Show older comments
Hi,
I'm trying to align two images using the procedure described into the "Align Two Images Using Cross-Correlation" example, from the documentation:
In few words, I subtract the mean value and then I perform the cross-correlation. In my case, the result is good but not precise enough.
In details, I have two similar photos to align. The background in the pictures is similar, but not the same, because it is slightly shifted, so the need to align. However, one image presents an occlusion due to a small object.
So, I would like to perform xcorr2 excluding the pixels corresponding to the object, i.e., to perform the alignment only considering the background. How can I do this?
Thanks for your answers.
0 Comments
Answers (0)
See Also
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!