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



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.

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.

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.

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/listRepositories/projects.smartdashboard/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 :stuck_out_tongue:

Thank you so much. Now I can finally see what the functions I’m using actually do. :smiley: