Hello everyone,
i have a problem with my VI which I'm using to contour analysis. I want to learn contour pattern and than use it to compute distances but i have a messege: "Matching failed to align the template and target contours". Maybe it's a problem with Match Contour Pattern Setup data more than with IMAQ Compute Distance, because when I'm putting version with connection to IMAQ Compute Distance only Template Contour and Target Contour with the same size it's working (IMAQ Compute Distance need Target and Template Contour with the same size or information about learn pattern).
This is my example code when i want to learn pattern and than compute distance (It's not working). The images of pattern and target are the same size.
This is code without learn pattern (It's working but i want to use this version with learn pattern). The images of pattern and target also are the same size.
Maybe do you have any ideas what i can change in Learn Pattern on in Setup Pattern.
This is my template:
And example image in which i want to measure this contour distance:
I also using Match Geometric Pattern on it it's working without any problem.
I attached zip file below with template image, target image (one with the same size as template and one bigger size - destination image in which i want to use it.)
Maybe anyone have idea.
Thank you.