Scale-rotation-skew invariant template matching
Hi all,
I need to find the target in an image. The target can assume whichever orientation, and can be scaled. Moreover, the image can be acquired from different camera's angulations.
Do you know if a template matching algorithm that is rotation, scale and skew invariant already exists in OpenCV? In industrial robotics applications, those kinds of algorithms already exist, and they work pretty well. Otherwise, what approach could work?
An example of the images that I would use is attached to the post.
Thanks everybody for the help.
Nicola
C:\fakepath\img13.png C:\fakepath\target.png
P.S.: I'm sorry to have edited this question different times, I know it is a little confusing.
If pca won't work it means that arrow is symetric. May be you should try somthing like this
Actually, I don't care if the arrow is symmetric, but it is important that the algorithm finds the relative rotation from the template. I've just tried the algorithm that you have suggested, but as it is, it returns -1 without a significative output. Maybe I'm not using it properly.
use repositorie from github and try with image given. After you can use your own data