33 lines
684 B
C++
33 lines
684 B
C++
#ifndef CLOUDAGE_H
|
|
#define CLOUDAGE_H
|
|
|
|
#include "cloudage_global.h"
|
|
#include <QImage>
|
|
#include <QString>
|
|
#include <cmath>
|
|
|
|
class CLOUDAGESHARED_EXPORT Cloudage
|
|
{
|
|
|
|
public:
|
|
Cloudage(int radius);
|
|
void setRadius(int radius);
|
|
|
|
QImage readImage(QString imagePath);
|
|
QImage createGrayscaleImage(int width, int height);
|
|
|
|
void getPosOfCenterpixel(int width, int height, int &widthCenter, int &heightCenter);
|
|
bool isValidPos(int x1, int y1, int x2, int y2);
|
|
|
|
float getcloudage1(QImage image, bool saveBinaryImg = false);
|
|
float getcloudage2(QImage image, bool saveBinaryImg = false);
|
|
|
|
|
|
|
|
private:
|
|
int m_iRadius;
|
|
QString m_qImgPath;
|
|
};
|
|
|
|
#endif // CLOUDAGE_H
|