MIRA
|
Declaration of helper functions related to Qt. More...
#include <image/Img.h>
#include <transform/RigidTransform.h>
#include <widgets/GuiWidgetsExports.h>
#include <QString>
#include <QFileDialog>
Go to the source code of this file.
Namespaces | |
mira | |
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec> | |
mira::QtUtils | |
Functions | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img8U1 &img) |
Create QImage from 8bit unsigned image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img< int8, 1 > &img) |
Create QImage from 8bit signed image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img8U3 &img) |
Create QImage from 3-channel 8bit unsigned image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img8U4 &img) |
Create QImage from 4-channel 8bit unsigned image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img16U1 &img, uint16_t minVal, uint16_t maxVal) |
Create QImage from 16bit unsigned image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img16S1 &img, int16_t minVal, int16_t maxVal) |
Create QImage from 16bit signed image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img32F1 &img, float minVal, float maxVal) |
Create QImage from float image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img64F1 &img, double minVal, double maxVal) |
Create QImage from double image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img<> &img) |
Create QImage from generic image, checks actual format and calls the respective specific overload for handling. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | makeQImage (const Img<> &img, double minVal, double maxVal) |
Create QImage from generic image, checks actual format and calls the respective specific overload for handling. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | asQImage (Img8U1 &img) |
Create QImage wrapper for 8bit unsigned image (sharing img's memory). More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | asQImage (const Img8U1 &img) |
Create QImage from 8bit unsigned image. More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | asQImage (Img8U4 &img) |
Create QImage wrapper for 4-channel 8bit unsigned image (sharing img's memory) More... | |
MIRA_GUI_WIDGETS_EXPORT QImage | asQImage (const Img8U4 &img) |
Create (const) QImage wrapper for 4-channel 8bit unsigned image. More... | |
MIRA_GUI_WIDGETS_EXPORT void | fromQImage (const QImage &qimage, Img<> &oImg) |
Convert a QImage to an image. More... | |
MIRA_GUI_WIDGETS_EXPORT void | setTransform (QGraphicsItem *item, const RigidTransform2f &t) |
Applies a transform (translation and rotation) to a graphics scene item. More... | |
MIRA_GUI_WIDGETS_EXPORT QString | getOpenFileName (QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=NULL, QFileDialog::Options options=QFileDialog::DontUseNativeDialog) |
Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences. More... | |
MIRA_GUI_WIDGETS_EXPORT QString | getSaveFileName (QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=NULL, QFileDialog::Options options=QFileDialog::DontUseNativeDialog, const QStringList &enforceExtension=QStringList()) |
Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences. More... | |
MIRA_GUI_WIDGETS_EXPORT QString | getExistingDirectory (QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), QFileDialog::Options options=QFileDialog::DontUseNativeDialog|QFileDialog::ShowDirsOnly) |
Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences. More... | |
MIRA_GUI_WIDGETS_EXPORT void | initPainterFrom (QPainter &painter, const QWidget &widget) |
Init painter's pen, background and font from widget. More... | |
Declaration of helper functions related to Qt.