firevision::ImageDisplay Class Reference

Simple image display. More...

#include <fvwidgets/image_display.h>

List of all members.

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.


Detailed Description

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.

Author:
Tim Niemueller

Definition at line 38 of file image_display.h.


Constructor & Destructor Documentation

firevision::ImageDisplay::ImageDisplay ( unsigned int  width,
unsigned int  height,
const char *  title = 0 
)

Constructor.

Parameters:
width width of image
height height of image
title window title

Definition at line 52 of file image_display.cpp.

References firevision::SDLKeeper::init().

firevision::ImageDisplay::~ImageDisplay (  ) 

Destructor.

Definition at line 83 of file image_display.cpp.

References firevision::SDLKeeper::quit().


Member Function Documentation

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.

Parameters:
max_num_events maximum number of events to process.

Definition at line 127 of file image_display.cpp.

void firevision::ImageDisplay::show ( unsigned char *  yuv422_planar_buffer  ) 

Show image from YUV422_PLANAR colorspace.

Parameters:
yuv422_planar_buffer YUV422_PLANAR encoded image.

Definition at line 112 of file image_display.cpp.

References firevision::yuv422planar_to_yuv422packed().

void firevision::ImageDisplay::show ( colorspace_t  colorspace,
unsigned char *  buffer 
)

Show image from given colorspace.

Parameters:
colorspace colorspace of the supplied buffer
buffer image buffer

Definition at line 99 of file image_display.cpp.

References firevision::convert(), and firevision::YUV422_PACKED.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:31:45 2011 for Fawkes API by  doxygen 1.4.7