View Single Post
  #16   Spotlight this post!  
Unread 26-02-2012, 14:46
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

The operations performed in image processing are expensive, and become even more so when allocating 300 kb (640x480 at 1 byte per pixel; a BinaryImage). Is it actually outputting processed data? If so, it may just be that the processing is taking too much time. There are a few ways to optimize the image processing, and you can do such things as setting up the processing to run in a separate thread and putting the drive code in continuous to make sure the robot drive gets updated often enough.

But before any of this, there's one thing I'd like to see: the output, in its entirety. If an exception happened, the type of exception and the call stack can provide a lot of information. If there's no exception, it just means you need to find some creative ways to optimize.
Reply With Quote