7. The method of claim 6 , wherein the Euclidean distance is calculated according to the following formula: 
 d =√{square root over (( P 1 x −P 2 x ) 2 +( P 1 y −P 2 y ) 2 )}{square root over (( P 1 x −P 2 x ) 2 +( P 1 y −P 2 y ) 2 )}; and wherein P1 is the first sample contour pixel, P2 is the first template contour pixel and x and y are coordinates in a grid with x representing the horizontal coordinate and y representing the vertical coordinate.
6. The method of claim 4 , wherein the distance between the two corresponding pixels is calculated as a Euclidean distance between the two corresponding pixels.