38 #include <visp3/ustk_gui/usImageDisplayWidget.h>
40 #if (defined(USTK_HAVE_VTK_QT) || defined(USTK_HAVE_QT5))
46 : m_label(NULL), m_QImage(), m_pixmap(), m_useScanConversion(true), m_scanConverter(), m_postScan(), m_image()
48 this->setMinimumSize(200, 200);
50 m_label->setMinimumSize(200, 200);
71 m_QImage = QImage(img.bitmap, img.getWidth(), img.getHeight(), img.getWidth(), QImage::Format_Indexed8);
72 QImage I =
m_QImage.convertToFormat(QImage::Format_RGB888);
73 I = I.scaled(this->width(), this->height());
87 m_QImage = QImage(img.bitmap, img.getWidth(), img.getHeight(), img.getWidth(), QImage::Format_Indexed8);
88 QImage I =
m_QImage.convertToFormat(QImage::Format_RGB888);
89 I = I.scaled(this->width(), this->height());
104 QImage::Format_Indexed8);
107 m_QImage = QImage(img.bitmap, img.getWidth(), img.getHeight(), img.getWidth(), QImage::Format_Indexed8);
109 QImage I =
m_QImage.convertToFormat(QImage::Format_RGB888);
110 I = I.scaled(this->width(), this->height());
118 m_label->resize(event->size());
119 if (
m_QImage.size() != QSize(0, 0)) {
120 QImage I =
m_QImage.convertToFormat(QImage::Format_RGB888);
121 I = I.scaled(this->width(), this->height());
void convert(const usImagePreScan2D< unsigned char > &preScanImage, usImagePostScan2D< unsigned char > &postScanImage, double xResolution=0., double yResolution=0.)