View Single Post
  #10   Spotlight this post!  
Unread 25-02-2012, 02:28
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Tracking Multiple Targets

You still have not caught the memory leak created by removeSmallObjects(), or freed filteredImage. Also, be careful about using NIVision, because BinaryImage hides certain functionality from you, and using NIVision along with BinaryImage can mess up particle counting. Until you have a working product and you know it's too slow, I'd recommend against using NIVision's methods directly.

Removing the for loop would not allow multiple target tracking on its own. However, if you make it go through each particle, and output the data for all of them, then it would be tracking multiple targets.
Reply With Quote