First commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user