-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
22 lines (15 loc) · 850 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef UTILS
#define UTILS
#include <QImage>
#include <QSize>
#include <QDebug>
#include <QDateTime>
#define T_START QDateTime mStartTime = QDateTime::currentDateTime();
#define T_END QDateTime mFinishTime = QDateTime::currentDateTime();//qDebug() << "NLM" << QDateTime::fromMSecsSinceEpoch(mFinishTime.toMSecsSinceEpoch() - mStartTime.toMSecsSinceEpoch()).time();
void calcMsePsnr(double* mse, double* psnr, QImage *image1, QImage *image2, QSize size);
void nlm_increse_image(QImage *, QImage *, QSize, int);
void nlm_increse_image(double ** src, double ** dst, QSize srcImageSize, int inc);
void nlm_increse_image2(double ** src, double ** dst, QSize srcImageSize, int inc);
void nlm_increse_image2(float ** src, float ** dst, QSize srcImageSize, int inc);
void make_kernel(double** gKernel, int kernel_size, double sigma);
#endif // UTILS