22#include "jkqtplotter/jkqtpdatastorage.h"
25#ifndef JKQTPINTERFACECIMG_H
26#define JKQTPINTERFACECIMG_H
44 const size_t N=
static_cast<size_t>(img.width()*img.height());
45 double* d=
static_cast<double*
>(malloc(
static_cast<size_t>(N)*
sizeof(
double)));
48 for (
int iy=0; iy<img.height(); iy++ ) {
49 for (
int ix=0; ix<img.width(); ix++ ) {
This class manages data columns (with entries of type double ), used by JKQTPlotter/JKQTBasePlotter t...
Definition jkqtpdatastorage.h:282
size_t addInternalImageColumn(double *data, size_t width, size_t height, const QString &name)
add a column with width * height entries from the array data, ownership of the memory behind data is ...
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.
Definition jkqtpinterfacecimg.h:42