1
0

First prototype

This commit is contained in:
2020-01-21 21:23:45 +01:00
commit 66b14d5964
6 changed files with 194 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef CLAHE_H
#define CLAHE_H
#include <QImage>
#include <QPixmap>
#include <QString>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
class CLAHE
{
cv::Mat _lumImage;
cv::Mat _image[3];
cv::Ptr<cv::CLAHE> _clahe;
public:
CLAHE();
void loadFile(const QString &path);
void saveFile(const QString &path);
void apply(float clipLimit, int kernelSize);
QPixmap getImage() const;
};
#endif // CLAHE_H