Fl_Window_OpenCV Class Reference

#include <Fl_Window_OpenCV.h>

Collaboration diagram for Fl_Window_OpenCV:

Collaboration graph
[legend]
List of all members.

Detailed Description

Allows the display of openCV's IplImage images

This class is meant as a (step towards a) FLTK replacement for openCV's cvNamedWindow. It supports the display of 3 channel (RGB or BGR) images, as well as 1 channel (grayscale) images. It also allows the user to select a region of an image by dragging a rectangle.

Bug:
Region selection doesn't seem to work right when the image is not constantly refreshed


Public Member Functions

 Fl_Window_OpenCV (int X, int Y, int W, int H, const char *label=0)
void Change (IplImage *img, bool reverse_channels=true)
void operator() (IplImage *img)
void AllowSelection (bool allow=true)
 Sets whether the user is allowed to select a region of the image.
void SetSelectionCall (Fl_Callback *cb)
 Sets the callback function that is called when the user selects a region.
CvRect const & GetSelection () const
 Retrieves the current selection.
virtual void draw ()
 Draws the image.
virtual int handle (int event)
 Event handler used for the selection feature.


Constructor & Destructor Documentation

Fl_Window_OpenCV ( int  X,
int  Y,
int  W,
int  H,
const char *  label = 0 
) [inline]

Defalut Constructor. Initializes the underlying window, and allows the selection feature by default.


Member Function Documentation

void Change ( IplImage *  img,
bool  reverse_channels = true 
) [inline]

Sets the image displayed by this window.

Parameters:
img image to be displayed
reverse_channels true if the image is 3-channel BGR (the channels need to be reversed before display)


The documentation for this class was generated from the following file:
Generated on Tue Mar 6 17:57:24 2007 for AME Repository by  doxygen 1.5.1-p1