Public Slots | |
void | paintEvent (QPaintEvent *) |
void | setImage (Image< PixRGB< byte > > &img) |
Convert the image to QPixmap and display. | |
void | setImage (Image< float > &img) |
Convert the image to QPixmap and display. | |
void | saveImg () |
Image< PixRGB< byte > > | getImage () |
Signals | |
void | mousePressed (int x, int y, int button) |
Public Member Functions | |
ImageCanvas (QWidget *parent=0, const char *name=0) | |
Public Attributes | |
std::vector< Point2D< int > > | itsPointsClicked |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *e) |
Respond to mouse events. |
Definition at line 26 of file ImageCanvas.h.
void ImageCanvas::mousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
Respond to mouse events.
Definition at line 98 of file ImageCanvas.cpp.
void ImageCanvas::setImage | ( | Image< float > & | img | ) | [slot] |
Convert the image to QPixmap and display.
Definition at line 67 of file ImageCanvas.cpp.
References inplaceNormalize(), and toRGB().
Convert the image to QPixmap and display.
convert the image to QPixmap and display
Definition at line 30 of file ImageCanvas.cpp.