实现了2种比值法计算云量

This commit is contained in:
2022-05-20 19:21:42 +08:00
parent 070b1f0572
commit 7adf9378ed
5 changed files with 588 additions and 0 deletions

32
cloudage.h Normal file
View File

@ -0,0 +1,32 @@
#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