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 33 of file image_display.h.


Constructor & Destructor Documentation

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 47 of file image_display.cpp.

References SDLKeeper::init().

ImageDisplay::~ImageDisplay (  ) 

Destructor.

Definition at line 78 of file image_display.cpp.

References SDLKeeper::quit().


Member Function Documentation

void 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 137 of file image_display.cpp.

void 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 122 of file image_display.cpp.

void ImageDisplay::show ( unsigned char *  yuv422_planar_buffer  ) 

Show image from YUV422_PLANAR colorspace.

Parameters:
yuv422_planar_buffer YUV422_PLANAR encoded image.

Definition at line 107 of file image_display.cpp.

void 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 94 of file image_display.cpp.


The documentation for this class was generated from the following files: