Read@CVL
|
Basic image class More...
Functions | |
DllCoreExport cv::Mat | qImage2Mat (const QImage &img) |
Converts a QImage to a cv::Mat. More... | |
DllCoreExport QImage | mat2QImage (const cv::Mat &img, bool toRGB=false) |
Converts a cv::Mat to QImage. More... | |
DllCoreExport cv::Mat | qVector2Mat (const QVector< float > &data) |
DllCoreExport QImage | load (const QString &path, bool *ok=0) |
DllCoreExport bool | save (const QImage &img, const QString &savePath, int compression=-1) |
Saves the specified QImage img. More... | |
DllCoreExport bool | save (const cv::Mat &img, const QString &savePath, int compression=-1) |
Saves the specified cv::Mat img. More... | |
DllCoreExport bool | alphaChannelUsed (const QImage &img) |
Checks if the alpha channel is used. More... | |
DllCoreExport void | imageInfo (const cv::Mat &img, const QString name) |
Prints the basic image information. More... | |
DllCoreExport QString | printImage (const cv::Mat &img, const QString name) |
Prints the image as a string formatted according Matlab. More... | |
DllCoreExport QJsonObject | matToJson (const cv::Mat &img, bool compress=true) |
DllCoreExport cv::Mat | jsonToMat (const QJsonObject &jo, const QString &filePath="") |
DllCoreExport QJsonObject | matToJsonExtern (const cv::Mat &img, const QString &fileName, bool compress=true) |
DllCoreExport bool | writeMat (const cv::Mat &img, const QString &filePath, bool compress=true) |
template<typename numFmt > | |
QString | printMat (const cv::Mat &src, const QString varName) |
Prints the values of a cv::Mat to copy it to Matlab. More... | |
Basic image class
bool rdf::Image::alphaChannelUsed | ( | const QImage & | img | ) |
Checks if the alpha channel is used.
img | The QImage img. |
void rdf::Image::imageInfo | ( | const cv::Mat & | img, |
const QString | name | ||
) |
Prints the basic image information.
img | The source img. |
name | The name that should be displayed in the command line. |
cv::Mat rdf::Image::jsonToMat | ( | const QJsonObject & | jo, |
const QString & | filePath = "" |
||
) |
QImage rdf::Image::load | ( | const QString & | path, |
bool * | ok = 0 |
||
) |
QImage rdf::Image::mat2QImage | ( | const cv::Mat & | img, |
bool | toRGB = false |
||
) |
Converts a cv::Mat to QImage.
img | The cv::Mat img. |
QJsonObject rdf::Image::matToJson | ( | const cv::Mat & | img, |
bool | compress = true |
||
) |
QJsonObject rdf::Image::matToJsonExtern | ( | const cv::Mat & | img, |
const QString & | fileName, | ||
bool | compress = true |
||
) |
QString rdf::Image::printImage | ( | const cv::Mat & | img, |
const QString | name | ||
) |
Prints the image as a string formatted according Matlab.
img | The src img. |
name | The variable name in Matlab. |
QString rdf::Image::printMat | ( | const cv::Mat & | src, |
const QString | varName | ||
) |
Prints the values of a cv::Mat to copy it to Matlab.
src | The Mat to be printed. |
varName | Name of the variable for matlab. |
cv::Mat rdf::Image::qImage2Mat | ( | const QImage & | img | ) |
Converts a QImage to a cv::Mat.
img | The Qimage. |
cv::Mat rdf::Image::qVector2Mat | ( | const QVector< float > & | data | ) |
bool rdf::Image::save | ( | const QImage & | img, |
const QString & | savePath, | ||
int | compression = -1 |
||
) |
Saves the specified QImage img.
img | The img to be saved. |
savePath | The save path. |
compression | The compression. |
bool rdf::Image::save | ( | const cv::Mat & | img, |
const QString & | savePath, | ||
int | compression = -1 |
||
) |
Saves the specified cv::Mat img.
img | The imgto be saved. |
savePath | The save path. |
compression | The compression. |
bool rdf::Image::writeMat | ( | const cv::Mat & | img, |
const QString & | filePath, | ||
bool | compress = true |
||
) |