필터 지우기
필터 지우기

How to locate a sub image in the original image with both images having the same size?

조회 수: 4 (최근 30일)
Mr.X
Mr.X 2017년 6월 20일
편집: Mr.X 2017년 6월 20일
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.

답변 (1개)

Image Analyst
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.

Community Treasure Hunt

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

Start Hunting!

Translated by