21 lines
356 B
C
21 lines
356 B
C
|
#ifndef BIN_ITERBIMODAL_H
|
||
|
#define BIN_ITERBIMODAL_H
|
||
|
|
||
|
#include "transformation.h"
|
||
|
|
||
|
|
||
|
class BinarizationIterBimodal : public Transformation
|
||
|
{
|
||
|
public:
|
||
|
BinarizationIterBimodal(PNM*);
|
||
|
BinarizationIterBimodal(PNM*, ImageViewer*);
|
||
|
|
||
|
virtual PNM* transform();
|
||
|
|
||
|
QHash<int, int> * hg;
|
||
|
|
||
|
int avg_saturation(int, int);
|
||
|
};
|
||
|
|
||
|
#endif // BIN_ITERBIMODAL_H
|