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,732 Views)

Why dont you try IMAQ LOCAL Threshold function.

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

Thanks, I'll give that a try.

 

Incidentally, I found information on how the niblack algorithm works here: https://www.ni.com/docs/en-US/bundle/ni-vision/page/thresholding.html

 

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