How to locate a sub image in the original image with both images having the same size?
4 次查看(过去 30 天)
显示 更早的评论
Hello, I am new guy to matlab and I would like to get some help to locate a portion of an image in the original image with both the images having the same size.
0 个评论
回答(1 个)
Image Analyst
2017-6-20
If they're both the same size, then the upper left of the position will be (1,1).
If one image is smaller than the other, you can use normalized cross correlation, using the function normxcorr2(), like in the attached demo.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!