iDRS™ SDK 16
Loading...
Searching...
No Matches
CBinarize_interface.h
Go to the documentation of this file.
1
7#ifndef CBINARIZE_INTERFACE_H
8
9#define CBINARIZE_INTERFACE_H
10
11#include "CIDRS_interface.h"
13#include "CPage_interface.h"
15
16#include "idrs_common.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
32CBinarize CBinarize_Create(const CIDRS argIDRS, idrs_exception *pargException);
33
44CImage CBinarize_Binarize(CBinarize argCBinarize, const CImage argImage, idrs_exception *pargException);
45
57CImage CBinarize_Binarize2(const CIDRS argIDRS, const CImage argImage, idrs_exception *pargException);
58
66void CBinarize_SetBinarizationType(CBinarize argCBinarize, enum BinarizationType const evBinarizationType, idrs_exception *pargException);
67
77enum BinarizationType CBinarize_GetBinarizationType(const CBinarize argCBinarize, idrs_exception *pargException);
78
88void CBinarize_SetSmoothingLevel(CBinarize argCBinarize, IDRS_INT const iSmoothingLevel, idrs_exception *pargException);
89
99IDRS_INT CBinarize_GetSmoothingLevel(const CBinarize argCBinarize, idrs_exception *pargException);
100
112void CBinarize_SetGlobalThreshold(CBinarize argCBinarize, IDRS_INT const iGlobalThreshold, idrs_exception *pargException);
113
123IDRS_INT CBinarize_GetGlobalThreshold(const CBinarize argCBinarize, idrs_exception *pargException);
124
135void CBinarize_SetBrightness(CBinarize argCBinarize, IDRS_INT const iBrightness, idrs_exception *pargException);
136
146IDRS_INT CBinarize_GetBrightness(const CBinarize argCBinarize, idrs_exception *pargException);
147
158void CBinarize_SetContrast(CBinarize argCBinarize, IDRS_INT const iContrast, idrs_exception *pargException);
159
169IDRS_INT CBinarize_GetContrast(const CBinarize argCBinarize, idrs_exception *pargException);
170
186void CBinarize_SetUndithering(CBinarize argCBinarize, IDRS_BOOL const bUndithering, idrs_exception *pargException);
187
198IDRS_BOOL CBinarize_GetUndithering(const CBinarize argCBinarize, idrs_exception *pargException);
199
207void CBinarize_SetBinarizeCallback(CBinarize argCBinarize, IBinarizeCallback pBinarizeCallback, idrs_exception *pargException);
208
216IBinarizeCallback CBinarize_GetBinarizeCallback(const CBinarize argCBinarize, idrs_exception *pargException);
217
225void CBinarize_Destroy(CBinarize argCBinarize, idrs_exception *pargException);
226
227#ifdef __cplusplus
228}
229#endif /* __cplusplus */
230
231#endif /* CBINARIZE_INTERFACE_H */
IDRS_INT CBinarize_GetBrightness(const CBinarize argCBinarize, idrs_exception *pargException)
Gets the brightness adjustment to apply during binarization.
CImage CBinarize_Binarize(CBinarize argCBinarize, const CImage argImage, idrs_exception *pargException)
void CBinarize_SetBinarizationType(CBinarize argCBinarize, enum BinarizationType const evBinarizationType, idrs_exception *pargException)
Set the type of binarization to use.
IDRS_INT CBinarize_GetSmoothingLevel(const CBinarize argCBinarize, idrs_exception *pargException)
Gets the strength of the smoothing operation applied during binarization.
IDRS_BOOL CBinarize_GetUndithering(const CBinarize argCBinarize, idrs_exception *pargException)
Gets a flag indicating if the automatic undithering correction will be applied before OCR.
enum BinarizationType CBinarize_GetBinarizationType(const CBinarize argCBinarize, idrs_exception *pargException)
Get the type of binarization to use.
CImage CBinarize_Binarize2(const CIDRS argIDRS, const CImage argImage, idrs_exception *pargException)
IBinarizeCallback CBinarize_GetBinarizeCallback(const CBinarize argCBinarize, idrs_exception *pargException)
Gets the callback object used to indicate which color to drop out.
void CBinarize_SetContrast(CBinarize argCBinarize, IDRS_INT const iContrast, idrs_exception *pargException)
Sets the contrast adjustment to apply during binarization.
IDRS_INT CBinarize_GetContrast(const CBinarize argCBinarize, idrs_exception *pargException)
Gets the contrast adjustment to apply during binarization.
CBinarize CBinarize_Create(const CIDRS argIDRS, idrs_exception *pargException)
Creates a new CBinarize object.
void CBinarize_SetGlobalThreshold(CBinarize argCBinarize, IDRS_INT const iGlobalThreshold, idrs_exception *pargException)
Sets the global threshold to be use during binarization.
IDRS_INT CBinarize_GetGlobalThreshold(const CBinarize argCBinarize, idrs_exception *pargException)
Gets the global threshold to be use during binarization.
void CBinarize_SetBrightness(CBinarize argCBinarize, IDRS_INT const iBrightness, idrs_exception *pargException)
Sets the brightness adjustment to apply during binarization.
void CBinarize_SetSmoothingLevel(CBinarize argCBinarize, IDRS_INT const iSmoothingLevel, idrs_exception *pargException)
Sets the strength of the smoothing operation applied during binarization.
void CBinarize_SetUndithering(CBinarize argCBinarize, IDRS_BOOL const bUndithering, idrs_exception *pargException)
Sets the automatic undithering when binarizing a page.
void CBinarize_Destroy(CBinarize argCBinarize, idrs_exception *pargException)
Destroys a CBinarize handle.
void CBinarize_SetBinarizeCallback(CBinarize argCBinarize, IBinarizeCallback pBinarizeCallback, idrs_exception *pargException)
Sets the callback object used to indicate which color to drop out.
Interface for CIDRS wrapper.
Interface for CImageOperation wrapper.
Interface for CPage wrapper.
BinarizationType
The types of binarization available.
Definition EnumDefinitions_interface.h:1819
Interface for IBinarizeCallback wrapper.
The CBinarize class offers image binarization features.
The CImage class manages images for iDRS.
IBinarizeCallback defines the interface required to provide a custom algorithm for image binarization...
IDRS_INT IDRS_BOOL
A Boolean value.
Definition idrsstd_interface.h:37
int IDRS_INT
A signed integer.
Definition idrsstd_interface.h:25