Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_convolution_kernel.h File Reference
#include <cstddef>
#include <Eigen/Core>
#include "kis_shared.h"
#include "kritaimage_export.h"
#include "kis_types.h"

Go to the source code of this file.

Classes

class  KisConvolutionKernel
 

Functions

QDebug operator<< (QDebug debug, const KisConvolutionKernel &c)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug debug,
const KisConvolutionKernel & c )

Definition at line 175 of file kis_convolution_kernel.cc.

176{
177 debug.nospace() << "[" << c.width() << "," << c.height() << "]{";
178 for (unsigned int i = 0; i < c.width(); ++i) {
179 debug.nospace() << " {";
180 for (unsigned int j = 0; j < c.height(); ++j) {
181 debug.nospace() << (*(c.data()))(j, i) << " ";
182 }
183 debug.nospace() << " }";
184 }
185 debug.nospace() << c.factor() << " " << c.offset() << " }";
186 return debug.space();
187}
PyObject * debug(PyObject *, PyObject *args)
Eigen::Matrix< qreal, Eigen::Dynamic, Eigen::Dynamic > data

References KisConvolutionKernel::data, KisConvolutionKernel::factor, KisConvolutionKernel::height(), KisConvolutionKernel::offset, and KisConvolutionKernel::width().