|
Fawkes API
Fawkes Development Version
|
Simple image display. More...
#include <>>
Public Member Functions | |
| ImageDisplay (unsigned int width, unsigned int height, const char *title=0) | |
| Constructor. | |
| ~ImageDisplay () | |
| Destructor. | |
| void | show (colorspace_t colorspace, unsigned char *buffer) |
| Show image from given colorspace. | |
| void | show (unsigned char *yuv422_planar_buffer) |
| Show image from YUV422_PLANAR colorspace. | |
| void | process_events (unsigned int max_num_events=10) |
| Process a few SDL events. | |
| void | loop_until_quit () |
| Process SDL events until quit. | |
Simple image display.
This is a simple thin wrapper around the SDL to display images in a standalone window. Use this for instance for easy verification of vision results.
Definition at line 38 of file image_display.h.
| firevision::ImageDisplay::ImageDisplay | ( | unsigned int | width, |
| unsigned int | height, | ||
| const char * | title = 0 |
||
| ) |
Constructor.
| width | width of image |
| height | height of image |
| title | window title |
Definition at line 52 of file image_display.cpp.
| firevision::ImageDisplay::~ImageDisplay | ( | ) |
Destructor.
Definition at line 83 of file image_display.cpp.
| void firevision::ImageDisplay::loop_until_quit | ( | ) |
Process SDL events until quit.
Process SDL events and keeps the window responsive until either the key "q" or "Esc" are pressed.
Definition at line 142 of file image_display.cpp.
| void firevision::ImageDisplay::process_events | ( | unsigned int | max_num_events = 10 | ) |
Process a few SDL events.
| max_num_events | maximum number of events to process. |
Definition at line 127 of file image_display.cpp.
| void firevision::ImageDisplay::show | ( | colorspace_t | colorspace, |
| unsigned char * | buffer | ||
| ) |
Show image from given colorspace.
| colorspace | colorspace of the supplied buffer |
| buffer | image buffer |
Definition at line 99 of file image_display.cpp.
| void firevision::ImageDisplay::show | ( | unsigned char * | yuv422_planar_buffer | ) |
Show image from YUV422_PLANAR colorspace.
| yuv422_planar_buffer | YUV422_PLANAR encoded image. |
Definition at line 112 of file image_display.cpp.