压力算法移植前

This commit is contained in:
2026-06-29 14:54:30 +08:00
parent 507781d127
commit ef2eecf972
1652 changed files with 312373 additions and 29 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef CBINARIZATION_H
#define CBINARIZATION_H
#include <QImage>
#include <QColor>
using namespace std;
class CBinarization
{
public:
CBinarization(QString imgPath);
QImage* grayScaleImg();
int Otsu(QImage* img);
QImage* process(QImage* img);
int threshold;
private:
QImage* _img;
vector<int> Histogram(QImage* img);
};
#endif