|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How do you track multiple blobs of the same color?
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. |
|
#2
|
||||
|
||||
|
Re: How do you track multiple blobs of the same color?
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. |
|
#3
|
||||
|
||||
|
Re: How do you track multiple blobs of the same color?
I was afraid I'd have to do that. It sounds better than hacking apart the WPI code, but I was hoping there was something I missed.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you keep track... | Team 1708 Dave | Chit-Chat | 4 | 18-04-2008 08:56 |
| Multiple program events held at the same time | KathieK | General Forum | 8 | 07-04-2008 12:33 |
| How Do You Keep Track Of Team's History? | Athleticgirl389 | General Forum | 6 | 18-12-2006 10:47 |
| Combining multiple objects in different files into the same scene and file? | DinkyDogg | 3D Animation and Competition | 8 | 19-02-2005 19:14 |