JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches
Collaboration diagram for OpenCV Interfaceing Tools:

Functions

template<typename TPixel >
void JKQTPDatastore_Helper::copyDataFromMat (double *data, const cv::Mat &mat, int channel)
 internal helper function for JKQTPCopyCvMatToColumn()
 
size_t JKQTPCopyCvMatToColumn (JKQTPDatastore *datastore, const cv::Mat &mat, const QString &name=QString(""), int channel=0)
 add one external column to the datastore. It will be filled with the contents of CImg matrix cv::Mat
 

Detailed Description

Classes and functions in this group allow JKQTPlotter to directly work with OpenCV data structures.

Examples:

The OpenCV-binding itself is header-only, and NOT compiled into the JKQtPlotter libraries. Therefore you can simply include the header and use the facilities provided by it.

The CMake-build system of JKQtPlotter (and its examples) is compatible with both OpenCV 3.4.x and 4.x and uses the standard find_package(OpenCV) facilities provided by OpenCV to compile and bind against that library. If you want to build the OpenCV-based JKQtPlotter examples (see list above), you either have to ensure that CMake finds OpenCV by itself (i.e. somewhere in the default search paths), or you can set the CMake variable OpenCV_DIR so it points to the OpenCV directory before configuring JKQtPlotter.

Function Documentation

◆ copyDataFromMat()

template<typename TPixel >
void JKQTPDatastore_Helper::copyDataFromMat ( double *  data,
const cv::Mat &  mat,
int  channel 
)
inline

internal helper function for JKQTPCopyCvMatToColumn()

◆ JKQTPCopyCvMatToColumn()

size_t JKQTPCopyCvMatToColumn ( JKQTPDatastore datastore,
const cv::Mat &  mat,
const QString &  name = QString(""),
int  channel = 0 
)
inline

add one external column to the datastore. It will be filled with the contents of CImg matrix cv::Mat

Parameters
datastorethe datastore to which the OpenCV matrix shuld be added (as column)
matOpenCV-matrix to store here
namename for the column
channelto copy from mat
Returns
the ID of the newly created column
See also
OpenCV Interfaceing Tools, Example (JKQTPlotter): Simple math image plot, showin a 1-channel OpenCV cv::Mat or Example (JKQTPlotter): Simple RGB image plot, showing a 3-channel OpenCV cv::Mat for details on how to use this function.