实现了2种比值法计算云量
This commit is contained in:
32
cloudage.h
Normal file
32
cloudage.h
Normal 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
|
Reference in New Issue
Block a user