#include <Fl_Window_OpenCV.h>
Collaboration diagram for Fl_Window_OpenCV:

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.
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. | |
| 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.
| void Change | ( | IplImage * | img, | |
| bool | reverse_channels = true | |||
| ) | [inline] |
Sets the image displayed by this window.
| img | image to be displayed | |
| reverse_channels | true if the image is 3-channel BGR (the channels need to be reversed before display) |
1.5.1-p1