Find coordinates of a subregion of an image

4 ビュー (過去 30 日間)
Angela
Angela 2019 年 3 月 29 日
コメント済み: Angela 2019 年 3 月 30 日
I have two images, an Original (I) and an image that is a subregion of the original image, called Icrop.
I want to find the coordinates that this subregion was taken from.
I have used the following example from the help page
tformEstimate=imregcorr(I,Icrop)
Rfixed=imref2d(size(Icrop))
moving_region=imwarp(I,tformEstimate,'OutputView',Rfixed)
The moving_region gives me the region from I that is the same as the Icrop but I would like to know the coordinates used from the actual original Image I.

採用された回答

Walter Roberson
Walter Roberson 2019 年 3 月 29 日
https://www.mathworks.com/help/signal/ref/xcorr2.html#buwe7f3 has a specific example about finding a small image within a larger image.
  1 件のコメント
Angela
Angela 2019 年 3 月 30 日
That is exactly what I was looking for!
Thank you.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by