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
|
Functions | |
template<class T > | |
size_t | JKQTPCopyCImgToColumn (JKQTPDatastore *datastore, const cimg_library::CImg< T > &img, const QString &name=QString(""), int channel=0, int z=0) |
add one external column to the datastore. It will be filled with the contents of the CImg image img. | |
Classes and functions in this group allow JKQTPlotter to directly work with CImg data structures CImg<T>>.
Examples:
The CImg-binding itself is header-only (as CImg is itself), 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) provides facilities to allow for find_package(CImg)
to compile against that library. If you want to build the CImg-based JKQtPlotter examples (see list above), you either have to ensure that CMake finds CImg by itself (i.e. somewhere in the default search paths, e.g. CMAKE_INSTALL_PREFIX
), or you can set the CMake variable CImg_DIR
so it points to the directory of the CImg.h
file, or before configuring JKQtPlotter.
|
inline |
add one external column to the datastore. It will be filled with the contents of the CImg image img.
datastore | the datastore to which the CImg matrix should be added (as column) |
img | cimg_library::CImg<T>-image to store here |
name | name for the column |
channel | channel to copy from img |
z | z-plane to copy from img |