From the C++ APIs how do you get an array of color particles in the image. The FindColor() function, which is what is demonstrated in the demos, only returns the largest particle.
I read the API Docs, but I didn’t find an easy way to get all of the particles.
The easiest thing to do would be to modify the WPILib code. You could modify the GetLargestParticle function in TrackAPI.cpp to return, say, the three largest particles, and then modify FindColor to return particle analysis reports for all three.
Personally, though, I’m planning to have my team completely rewrite the camera stuff to better suit this year’s purposes, and to use C++ classes.