Go to Post We want to be a positive force in our community, and maybe to encourage our country’s best and brightest to go to work for the ones who’ve put themselves in harm’s way. - Jack Jones [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #17   Spotlight this post!  
Unread 27-02-2012, 15:55
questionsigotem questionsigotem is offline
Registered User
FRC #1647
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2009
Location: New Jersey
Posts: 14
questionsigotem is an unknown quantity at this point
Re: Tracking Multiple Targets

I didn't copy the output, but I don't think there were any exceptions. What CRio did you guys use this year? We used the CRioI.
Reply With Quote
  #18   Spotlight this post!  
Unread 14-03-2012, 12:43
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 66
dvanvoorst is an unknown quantity at this point
Re: Tracking Multiple Targets

We found that similiar code took about a half second to process an image - which is too long - the robot gets cranky. So we do the image processing in a seperate thread so the robot can keep processing other things while the image is being manipulated.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi