How to find image “A” coordinates on image “B” which contains image “A”.
I wrote this program which is only checking pixel values, does anyone know is there any library tool do this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Throwback1986 suggested, you will probably want to use matchTemplate. Here is one of my answers showing how to detect the Sun from virtual spacecraft. Here is the newer tutorial from OpenCV on using
matchTemplate. Now, there are some caveats for using thematchTemplateapproach. If image “A” can be at an arbitrary pose (e.g., changes in scale, rotation, perspective, etc) in image “B”, thenmatchTemplateisn’t going to work very well. If that happens to be the case, you will want to use to go the feature detection route as suggested by Adrian Popovici.