Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

bead tracking algorithm

Hello,

 

I want to track a dark line as it meanders through an image. I'm thinking to use a 3X3 grid, find the darkest pixel, center the grid on that, and loop around. (Obviously, a bit more complex than that.)

 

Rather than re-invent the wheel, I wondered if there is any existing code or maybe an example, that I could build on.

 

Many thanks,

Another

0 Kudos
Message 1 of 3
(3,382 Views)

Why dont you try IMAQ LOCAL Threshold function.

---
Silver_Shaper | CLD
0 Kudos
Message 2 of 3
(3,373 Views)

Thanks, I'll give that a try.

 

Incidentally, I found information on how the niblack algorithm works here: http://zone.ni.com/reference/en-XX/help/372916J-01/nivisionconcepts/thresholding/

 

0 Kudos
Message 3 of 3
(3,356 Views)