1
0
Fork 0
Simple program to do Local Histogram Equalisation from PixInsight
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
CLAHE/applyclahe.h

25 lines
523 B

#ifndef APPLYCLAHE_H
#define APPLYCLAHE_H
#include <QImage>
#include <QPixmap>
#include <QString>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
class ApplyCLAHE
{
cv::Mat _lumImage;
cv::Mat _image[3];
double _scale;
public:
ApplyCLAHE();
void loadFile(const QString &path);
void saveFile(const QString &path);
void apply(float clipLimit, int kernelSize);
QPixmap getImage() const;
QPixmap getLumImage() const;
bool imageLoaded() const;
};
#endif // APPLYCLAHE_H