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 CImg Interfaceing Tools:

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.
 

Detailed Description

Classes and functions in this group allow JKQTPlotter to directly work with CImg data structures CImg<T&gt>.

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.

Function Documentation

◆ JKQTPCopyCImgToColumn()

template<class T >
size_t JKQTPCopyCImgToColumn ( JKQTPDatastore datastore,
const cimg_library::CImg< T > &  img,
const QString &  name = QString(""),
int  channel = 0,
int  z = 0 
)
inline

add one external column to the datastore. It will be filled with the contents of the CImg image img.

Parameters
datastorethe datastore to which the CImg matrix should be added (as column)
imgcimg_library::CImg<T>-image to store here
namename for the column
channelchannel to copy from img
zz-plane to copy from img
Returns
the ID of the newly created column
See also
CImg Interfaceing Tools, Example (JKQTPlotter): Simple math image plot, showin a 1-channel CImg image or Example (JKQTPlotter): Simple math image plot, showing a 3-channel CImg image for details on how to use this function.