20 #include "ImageTranslator.hpp"
41 inline void setImage(gui_image_t data){ m_guiImage = data; };
44 inline gui_image_t
getImage(){
return m_guiImage; };
45 inline gui_bitmap_t& getBitmap(){
return m_bitmap; };
52 gui_point_t Image::getPixelInterpolation(gui_point_t point);
66 gui_image_t m_guiImage;
69 gui_bitmap_t m_bitmap;
71 virtual void render(
const cv::Mat&);
74 virtual void paint(
const cv::Mat&);
77 virtual bool contains(
const gui_point_t&);
void createBitmap(int w, int h)
Makes the stored image ready for display.
gui_image_t getImage()
returns stored image data
Definition: Image.hpp:44
void setImage(gui_image_t data)
load data into the image container
Definition: Image.hpp:41
static const cv::Scalar PADDING_COLOR
Definition: Image.hpp:35
Class used to display images and as container of widgets.
Definition: ImagePanel.hpp:32
An off-screen image representation native to the selected GUI.
Definition: Image.hpp:29
cv::Mat m_cvMat
to-do: refactor
Definition: Image.hpp:59
void setBestSizeFit(int w, int h)
Fits the image to a new size using black borders to mantain aspect ratio.