|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
How to display image (RGB, Binary, HSV, etc.) on driver station screen
We are trying to implement vision, but we can't move forward until we can actually see the images we're working with. Is there some way to, once we have an image (RGB, Binary, HSV, etc.) stored as a C++ variable, to display it or see it, preferably as a live feed? How exactly could I do this?
If that's not possible, I need any means of viewing an image file created on the cRIO for testing purposes. |
|
#2
|
|||
|
|||
|
Re: How to display image (RGB, Binary, HSV, etc.) on driver station screen
You can write the image to a file and then look at it on your computer by FTP-ing to the cRIO.
|
|
#3
|
||||
|
||||
|
Re: How to display image (RGB, Binary, HSV, etc.) on driver station screen
Quote:
|
|
#4
|
|||||
|
|||||
|
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");
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.) |
|
#5
|
|||
|
|||
|
Re: How to display image (RGB, Binary, HSV, etc.) on driver station screen
The cRIO is sold industrially for machine monitoring. The filesystem does wear-leveling and the flash is capable of many many rewrites. It is fine to use the flash for debugging, that is one of the reasons it is there.
Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|