hlp:荆州版本

This commit is contained in:
kite_lucs
2026-10-19 17:03:47 +08:00
parent e533ea8e0b
commit 065b146998
438 changed files with 163143 additions and 185387 deletions
+24 -24
View File
@@ -1,24 +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
#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