Interface for IBinarizeCallback wrapper.
More...
Go to the source code of this file.
Interface for IBinarizeCallback wrapper.
◆ IBinarizeCallback_Create()
| IBinarizeCallback IBinarizeCallback_Create |
( |
PtrRemovePixelFn |
ptrRemovePixelFn, |
|
|
idrs_exception * |
pargException |
|
) |
| |
Creates a new IBinarizeCallback object.
- Parameters
-
| ptrRemovePixelFn | RemovePixel function pointer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
- Returns
- The newly created IBinarizeCallback
◆ IBinarizeCallback_Destroy()
| void IBinarizeCallback_Destroy |
( |
IBinarizeCallback |
argIBinarizeCallback, |
|
|
idrs_exception * |
pargException |
|
) |
| |
Destroys a IBinarizeCallback handle.
- Parameters
-
| argIBinarizeCallback | IBinarizeCallback handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
◆ IBinarizeCallback_RemovePixel()
Dropout callback method called at the end of the binarization for each black pixel.
The black pixel is transformed to white if the function returns IDRS_TRUE.
- Parameters
-
| argIBinarizeCallback | IBinarizeCallback handle |
| ucRed | The red component of the pixel's color. |
| ucGreen | The green component of the pixel's color. |
| ucBlue | The blue component of the pixel's color. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
- Return values
-
| IDRS_TRUE | If the black pixel must be transformed to white. |
| IDRS_FALSE | otherwise. |