Alan: You're right, a RIO would probably fix that, and make it considerably faster, too.
Sloteera:
Thank you! I forgot that the floor was green this year. I was thinking grey again.
What that means is I can very effectively filter that out by separating the RGB image, thresholding the red and blue, and ANDing that back together. That should also eliminate the problem with the stripes.
Aaron:
I by no means plan to track, or even interact with, balls flying through the air. I was actually intending to locate fairly stationary balls.
I believe what you're referring to is the "size ordered morphology" of last-year's tracking code. It might be my best bet to use that, however, I would have to investigate the reflective properties of the field, as this would would not filter it to just round objects.
I'll upload a test in a bit. I don't have the near-official one right with me, but I figured
this picture would do.
EDIT:
I got it done. For simplicity, I just did a color threshold (instead of separating them out just to ignore the green).
Also, I used a "measure particles" VI for analysis, as opposed to the "find circles". I'm assuming that with less than a 1.2 ratio between width and height, and less than 20% holes, it will be a valid gamepiece.