Ask Your Question

Revision history [back]

How to convert contour points into Translated 2d-Reference points containing only the contour Bounding box?

image description

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 Template 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 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.

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

How to convert contour points into Translated 2d-Reference points containing only the contour Bounding box?

image descriptionimage description

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 Template 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 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.

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

How to convert contour points into Translated 2d-Reference points containing only the contour Bounding box?

image description

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 Template 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 points. 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.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

How to convert contour points into compare two contours Translated 2d-Reference points containing only the contour Bounding box?from one another?

image description

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

How to compare two contours Translated from one another?

image description

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