How to compare two contours Translated from one another?
Hi all, I want to compare two contours & find the hausdorff distance between them to find the similarity between the two contours. When I take the template contour on the Right side as a Reference Contour to find the similar contour from the Left hand side I’m getting error because the Scene contour points are translated from the Template contour Actual-Points. Actually I’m taking the contours points directly from the two images. As you can see I cannot crop only the contour region since it affects the neighboring contours. Here I'm not using Template matching since my reference Image may have group of contours so I'm comparing difference between all the points in the two contours to find hausdorff distance.
Should I make an Empty image with Scene image size and make my Template contour slide over the Scene Image to find the match? or else is there any other better approach? Regards, Balaji.R