Go to Post Glad to see the CIMulators aren't vaporware after all. - thefro526 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 26-01-2013, 20:09
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: How to display image (RGB, Binary, HSV, etc.) on driver station screen

If you look at the image processing example... there is the following lines:
Code:
BinaryImage *thresholdImage=image->ThresholdHSV(threshold); // get just the green target pixels
//thresholdImage->Write("/threshold.png");
BinaryImage *convexHullImage=thresholdImage->ConvexHull(false); // fill in partial and full rectangles
//convexHullImage->Write("/ConvexHull.png");
BinaryImage *filteredImage=convexHullImage->ParticleFilter(criteria, 1); //Remove small particles
//filteredImage->Write("Filtered.png");
Uncomment the commented out lines and the files will be saved to the cRIO. Just then get them off with FTPing to the cRIO (At 10.xx.yy.2) with a program like FileZilla.
The documentation reccommends you comment out the loop before writing to the cRIO flash though to keep it from deteriorating. How important this is, Im not sure of. I did it though, and it worked just fine for our purposes, if not better (Cause we could just enable and grab processed pictures, then reenable again and such.)
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote
 


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 15:00.

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