Go to Post Just because we don't cheer, doesn't mean we don't have fun. ;) - JVN [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
  #1   Spotlight this post!  
Unread 12-10-2012, 15:45
Stonemotmot Stonemotmot is offline
Registered User
FRC #0486
 
Join Date: Sep 2011
Location: United States, Pa
Posts: 53
Stonemotmot is an unknown quantity at this point
Smartdashboard crash on .getInverse()

Hello, I am trying to preform vision analysis using the smartdashboard. Unfortunately the dashboard crashes every time I call binaryimage.getInverse();

here is a example

Code:
WPIBinartImage blue = new image.getBlueChannel().getThreshold(64); // create a binary image from a color image declared earlier
blue = blue.getInverse(); // this causes the dashboard crash as the code runs fine without it.
also on a side note where can i find WPICameraExtension source code.
Do i need to join a site or can i just download it.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-10-2012, 16:51
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Smartdashboard crash on .getInverse()

Are you by chance trying to display the binary image? We learned that SMDB doesn't handle binary images well and would reliably crash when we displayed them.

I think the WPI camera extension code is on the first forge website. You'll have to create an account to checkout the code.

Also, there are some threads on here addressing other known reasons for SMDB crashes. A print line can be added to the camera extension to improve stability. A quick search might do you some good.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-10-2012, 17:35
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Smartdashboard crash on .getInverse()

Are you by chance trying to display the binary image? We have had issues with SMDB reliably crashing when we display the binary image.

The source is available on First Forge.

There are other threads on CD about SMDB crashing. One addresses a necessary change for the camera extension by adding an innocuous print statement to prevent it from crashing. Some searching on here might do some good.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-10-2012, 17:56
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Smartdashboard crash on .getInverse()

I can't answer your first question, but as to the WPI Camera Extension source code, it's on firstforge under the smartdashboard project. Here's the link.

http://firstforge.wpi.edu/sf/scm/do/...tdashboard/scm

You need to create an account on firstforge first, then you can just use Netbeans' built-in subversion client to download the repository. Go to the file menu in Netbeans >> Team >> Subversion >> Checkout. Then paste in "http://firstforge.wpi.edu/svn/repos/smart_dashboard" as the Repository URL, and your firstforge account info as username and password. Pick which branch you want (you're going to want both of them) and select your download location and then click finish.

The source code for the camera extension is in the "trunk" folder, inside another folder labelled "extensions." The source for the 2012 SmartDashboard is under "tags," "2012," and the beta source for the 2013 SmartDashboard is under "trunk," "smartdashboard." With a bit of extra work you can get a copy of the 2013 dashboard working fairly easily. If anybody wants to know how, PM, or reply, or something
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional

Last edited by F22Rapture : 12-10-2012 at 18:00.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-10-2012, 18:32
Stonemotmot Stonemotmot is offline
Registered User
FRC #0486
 
Join Date: Sep 2011
Location: United States, Pa
Posts: 53
Stonemotmot is an unknown quantity at this point
Re: Smartdashboard crash on .getInverse()

Thank you so much. Now I can finally see what the functions I'm using actually do.
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:37.

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