2014-07-11 20:35:48 +04:00
|
|
|
#ifndef SVKERNELV2_H
|
|
|
|
#define SVKERNELV2_H
|
|
|
|
|
|
|
|
#include "svabstractkernel.h"
|
2014-07-22 20:37:29 +04:00
|
|
|
#include <QDebug>
|
2014-07-18 20:48:42 +04:00
|
|
|
#define sign(a) (a == 0 ? 0 : (a > 0 ? 1 : -1))
|
2014-07-22 20:37:29 +04:00
|
|
|
#define max(a,b,c) (a > b ? (a > c ? a : c) : (b > c ? b : c))
|
|
|
|
#define min(a,b,c) (a < b ? (a < c ? a : c) : (b < c ? b : c))
|
2014-07-18 20:48:42 +04:00
|
|
|
|
2014-07-11 20:35:48 +04:00
|
|
|
class SvKernelV2: public SvAbstractKernel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SvKernelV2();
|
|
|
|
virtual ~SvKernelV2();
|
|
|
|
void exec(int line) override;
|
2014-07-22 20:37:29 +04:00
|
|
|
int rgbDiff(QRgb left, QRgb right);
|
2014-07-11 20:35:48 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SVKERNELV2_H
|