I have a template image , with white background and black shape over it.I also have an image which have a similar shape but in different rotation and scale,also have some noise
Considering the scenario, you can try segmenting the image on the basis of color since your object of interest is black and noise is blue in color. Then, you can proceed with the contour based approach for finding your target. You can refer this link for implementation OpenCV:Watershed algorithm
You can also refer this SO link Coca-Cola can shape recognition.