|
iDRS™ SDK 16
|
Interface for CBinarize wrapper. More...
Go to the source code of this file.
Functions | |
| CBinarize | CBinarize_Create (const CIDRS argIDRS, idrs_exception *pargException) |
| Creates a new CBinarize object. | |
| CImage | CBinarize_Binarize (CBinarize argCBinarize, const CImage argImage, idrs_exception *pargException) |
| CImage | CBinarize_Binarize2 (const CIDRS argIDRS, 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. | |
| enum BinarizationType | CBinarize_GetBinarizationType (const CBinarize argCBinarize, idrs_exception *pargException) |
| Get the type of binarization to use. | |
| void | CBinarize_SetSmoothingLevel (CBinarize argCBinarize, IDRS_INT const iSmoothingLevel, idrs_exception *pargException) |
| Sets the strength of the smoothing operation applied during binarization. | |
| IDRS_INT | CBinarize_GetSmoothingLevel (const CBinarize argCBinarize, idrs_exception *pargException) |
| Gets the strength of the smoothing operation applied during binarization. | |
| 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. | |
| IDRS_INT | CBinarize_GetBrightness (const CBinarize argCBinarize, idrs_exception *pargException) |
| Gets the brightness adjustment to apply during binarization. | |
| 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. | |
| void | CBinarize_SetUndithering (CBinarize argCBinarize, IDRS_BOOL const bUndithering, idrs_exception *pargException) |
| Sets the automatic undithering when binarizing a page. | |
| IDRS_BOOL | CBinarize_GetUndithering (const CBinarize argCBinarize, idrs_exception *pargException) |
| Gets a flag indicating if the automatic undithering correction will be applied before OCR. | |
| void | CBinarize_SetBinarizeCallback (CBinarize argCBinarize, IBinarizeCallback pBinarizeCallback, idrs_exception *pargException) |
| Sets the callback object used to indicate which color to drop out. | |
| IBinarizeCallback | CBinarize_GetBinarizeCallback (const CBinarize argCBinarize, idrs_exception *pargException) |
| Gets the callback object used to indicate which color to drop out. | |
| void | CBinarize_Destroy (CBinarize argCBinarize, idrs_exception *pargException) |
| Destroys a CBinarize handle. | |
Interface for CBinarize wrapper.
| CImage CBinarize_Binarize | ( | CBinarize | argCBinarize, |
| const CImage | argImage, | ||
| idrs_exception * | pargException | ||
| ) |
Binarize the provided color/greyscale image.
| argCBinarize | CBinarize handle |
| argImage | The image to binarize |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CImage CBinarize_Binarize2 | ( | const CIDRS | argIDRS, |
| const CImage | argImage, | ||
| idrs_exception * | pargException | ||
| ) |
Binarize the provided color/greyscale using default parameters:
| argIDRS | The iDRS |
| argImage | The image to binarize |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CBinarize CBinarize_Create | ( | const CIDRS | argIDRS, |
| idrs_exception * | pargException | ||
| ) |
Creates a new CBinarize object.
| argIDRS | The iDRS |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_Destroy | ( | CBinarize | argCBinarize, |
| idrs_exception * | pargException | ||
| ) |
| enum BinarizationType CBinarize_GetBinarizationType | ( | const CBinarize | argCBinarize, |
| idrs_exception * | pargException | ||
| ) |
Get the type of binarization to use.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IBinarizeCallback CBinarize_GetBinarizeCallback | ( | const CBinarize | argCBinarize, |
| idrs_exception * | pargException | ||
| ) |
Gets the callback object used to indicate which color to drop out.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
Gets the brightness adjustment to apply during binarization.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
Gets the contrast adjustment to apply during binarization.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT CBinarize_GetGlobalThreshold | ( | const CBinarize | argCBinarize, |
| idrs_exception * | pargException | ||
| ) |
Gets the global threshold to be use during binarization.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT CBinarize_GetSmoothingLevel | ( | const CBinarize | argCBinarize, |
| idrs_exception * | pargException | ||
| ) |
Gets the strength of the smoothing operation applied during binarization.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
Gets a flag indicating if the automatic undithering correction will be applied before OCR.
| argCBinarize | CBinarize handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetBinarizationType | ( | CBinarize | argCBinarize, |
| enum BinarizationType const | evBinarizationType, | ||
| idrs_exception * | pargException | ||
| ) |
Set the type of binarization to use.
| argCBinarize | CBinarize handle |
| evBinarizationType | The type of binarization to use. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetBinarizeCallback | ( | CBinarize | argCBinarize, |
| IBinarizeCallback | pBinarizeCallback, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the callback object used to indicate which color to drop out.
| argCBinarize | CBinarize handle |
| pBinarizeCallback | Callback pointer to set |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetBrightness | ( | CBinarize | argCBinarize, |
| IDRS_INT const | iBrightness, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the brightness adjustment to apply during binarization.
| argCBinarize | CBinarize handle |
| iBrightness | The brightness. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetContrast | ( | CBinarize | argCBinarize, |
| IDRS_INT const | iContrast, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the contrast adjustment to apply during binarization.
| argCBinarize | CBinarize handle |
| iContrast | The contrast. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetGlobalThreshold | ( | CBinarize | argCBinarize, |
| IDRS_INT const | iGlobalThreshold, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the global threshold to be use during binarization.
| argCBinarize | CBinarize handle |
| iGlobalThreshold | The binarization global threshold. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetSmoothingLevel | ( | CBinarize | argCBinarize, |
| IDRS_INT const | iSmoothingLevel, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the strength of the smoothing operation applied during binarization.
| argCBinarize | CBinarize handle |
| iSmoothingLevel | The smoothing level. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CBinarize_SetUndithering | ( | CBinarize | argCBinarize, |
| IDRS_BOOL const | bUndithering, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the automatic undithering when binarizing a page.
Dithering is a scanning technique which consists in representing a color or greyscale image using only a limited color palette. This allows to reduce file size while maintaining the general aspect of the image.
This technique is known to create images more difficult to handle for OCR technology; this is why specific image preprocessing is needed to detect and revert it.
| argCBinarize | CBinarize handle |
| bUndithering | IDRS_TRUE to activate automatic undithering |
| pargException | Pointer to exception structure that will be filled if an exception occurs |