ReadFramework
Image.h File Reference
#include <QSharedPointer>
#include <QImage>
#include <QString>
#include <QColor>
#include <QPen>
#include <QDebug>
#include <opencv2/core.hpp>
Include dependency graph for Image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rdf::Histogram
 

Namespaces

 rdf
 
 rdf::Image
 Basic image class
 

Macros

#define DllCoreExport   Q_DECL_IMPORT
 

Functions

DllCoreExport cv::Mat rdf::Image::qImage2Mat (const QImage &img)
 Converts a QImage to a cv::Mat. More...
 
DllCoreExport QImage rdf::Image::mat2QImage (const cv::Mat &img, bool toRGB=false)
 Converts a cv::Mat to QImage. More...
 
DllCoreExport cv::Mat rdf::Image::qVector2Mat (const QVector< float > &data)
 
DllCoreExport QImage rdf::Image::load (const QString &path, bool *ok=0)
 
DllCoreExport bool rdf::Image::save (const QImage &img, const QString &savePath, int compression=-1)
 Saves the specified QImage img. More...
 
DllCoreExport bool rdf::Image::save (const cv::Mat &img, const QString &savePath, int compression=-1)
 Saves the specified cv::Mat img. More...
 
DllCoreExport bool rdf::Image::alphaChannelUsed (const QImage &img)
 Checks if the alpha channel is used. More...
 
DllCoreExport void rdf::Image::imageInfo (const cv::Mat &img, const QString name)
 Prints the basic image information. More...
 
DllCoreExport QString rdf::Image::printImage (const cv::Mat &img, const QString name)
 Prints the image as a string formatted according Matlab. More...
 
DllCoreExport QJsonObject rdf::Image::matToJson (const cv::Mat &img, bool compress=true)
 
DllCoreExport cv::Mat rdf::Image::jsonToMat (const QJsonObject &jo, const QString &filePath="")
 
DllCoreExport QJsonObject rdf::Image::matToJsonExtern (const cv::Mat &img, const QString &fileName, bool compress=true)
 
DllCoreExport bool rdf::Image::writeMat (const cv::Mat &img, const QString &filePath, bool compress=true)
 
template<typename numFmt >
QString rdf::Image::printMat (const cv::Mat &src, const QString varName)
 Prints the values of a cv::Mat to copy it to Matlab. More...
 

Macro Definition Documentation

#define DllCoreExport   Q_DECL_IMPORT