Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

For VB.NET Experts, Measuring All sides of two figures

Hi,

Briefly speaking, I have two shapes (images included). I'd like to match them with color template (done easily with Color Pattern Matching). I thereafter want to measure the length of each side (maybe using rake better than caliper I think since the actual images may not form perfect straight line).

 

So this could be smmarised in :

  • Find Each Color Pattern (score and angle)
  • Measure all four sides of each shape (in pixels, then conversion to real world unit is easy)
  •  display results


I know it is very trivial process. I blame myself for being away from IMAQ for 3 months. I'm under stress and hope to receive this help from my friends here.

 

I hope you can post "the solution project" and not only ideas. Thanks colleagues.

 

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 1 of 2
(3,372 Views)

What if you use CWIMAQPatternMatchReportItem.BoundingPoints to create another region for the rake or caliper...

 

Basically the steps are...

- Find color pattern

- use CWIMAQPatternMatchReportItem object to obtain detected pattern coordinates

- create a new region(s) based on the pattern coordinates for the Rake method to measure the sides

- display results

 

If I get a chance I'll try and create a simple application, looks like an interesting project...

0 Kudos
Message 2 of 2
(3,344 Views)