-
Notifications
You must be signed in to change notification settings - Fork 0
/
Binarization.h
25 lines (16 loc) · 913 Bytes
/
Binarization.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
#ifndef BINARIZATION_H
#define BINARIZATION_H
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
void RGBToGRAY(const unsigned char* src, unsigned char* dst, int width, int height);
void ImageToGRAY(const unsigned char* src, unsigned char* dst, int width, int height, int channels);
void BinaryThresholded(const unsigned char* src, unsigned char* dst, int width, int height, double thresh);
void AntiBinaryThresholding(const unsigned char* src, unsigned char* dst, int width, int height, double thresh);
void TruncationThresholding(const unsigned char* src, unsigned char* dst, int width, int height, double thresh);
void AntiThresholdingTo0(const unsigned char* src, unsigned char* dst, int width, int height, double thresh);
void ThresholdingTo0(const unsigned char* src, unsigned char* dst, int width, int height, double thresh);
#ifdef __cplusplus
}
#endif //__cplusplus
#endif // BINARIZATION_H