Hello dears,

I want to match a test image with the template image in MATLAB, For this task i am using normxcorr2 function for correlation, this function returns an array of correlation between template and test image.

This function works fine when template image is a part or sub image of test image. But this function dose not give me good response when template slightly differs from test image. Because template image also contains some unwanted pixels or noise.

what technique should be applied to match only that particular part of templete which we need?

thanx in advance

Naveed Khowaja