template matching invariant to rotations and noise
IS any way to enhance the maximum value of similarity in case the template on image is rotated with different angle than the saved template
The problem here is in case there is stamp on image rotated with small angle the template matching returns maximum matching value with small value so the program cannot now if this value is due to rotation or noise or due to the stamp is not found in the image
Did you try using invariant descriptors to rotation like (SIFT (sift is patented for commercial use) ,SURF,ORB,...), i think it's the best method if you are trying to find the rotation of your image compared to a reference image.