-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlackOnWhiteEstimator.h
35 lines (25 loc) · 1.08 KB
/
BlackOnWhiteEstimator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SCANTAILOR_BLACKONWHITEESTIMATOR_H
#define SCANTAILOR_BLACKONWHITEESTIMATOR_H
#include <imageproc/BinaryImage.h>
#include <QtGui/QPolygonF>
#include "ImageTransformation.h"
class TaskStatus;
class DebugImages;
namespace imageproc {
class GrayImage;
class BinaryImage;
} // namespace imageproc
class BlackOnWhiteEstimator {
public:
static bool isBlackOnWhite(const imageproc::GrayImage& grayImage,
const ImageTransformation& xform,
const TaskStatus& status,
DebugImages* dbg = nullptr);
static bool isBlackOnWhiteRefining(const imageproc::GrayImage& grayImage,
const ImageTransformation& xform,
const TaskStatus& status,
DebugImages* dbg = nullptr);
static bool isBlackOnWhite(const imageproc::GrayImage& img, const imageproc::BinaryImage& mask);
static bool isBlackOnWhite(const imageproc::GrayImage& img, const QPolygonF& cropArea);
};
#endif // SCANTAILOR_BLACKONWHITEESTIMATOR_H