iDRS™ SDK 16
Loading...
Searching...
No Matches
IBinarizeCallback_interface.h File Reference

Interface for IBinarizeCallback wrapper. More...

Go to the source code of this file.

Functions

IBinarizeCallback IBinarizeCallback_Create (PtrRemovePixelFn ptrRemovePixelFn, idrs_exception *pargException)
 Creates a new IBinarizeCallback object.
 
void IBinarizeCallback_Destroy (IBinarizeCallback argIBinarizeCallback, idrs_exception *pargException)
 Destroys a IBinarizeCallback handle.
 
IDRS_BOOL IBinarizeCallback_RemovePixel (IBinarizeCallback argIBinarizeCallback, IDRS_UCHAR const ucRed, IDRS_UCHAR const ucGreen, IDRS_UCHAR const ucBlue, idrs_exception *pargException)
 

Detailed Description

Interface for IBinarizeCallback wrapper.

Function Documentation

◆ IBinarizeCallback_Create()

IBinarizeCallback IBinarizeCallback_Create ( PtrRemovePixelFn  ptrRemovePixelFn,
idrs_exception *  pargException 
)

Creates a new IBinarizeCallback object.

Parameters
ptrRemovePixelFnRemovePixel function pointer
pargExceptionPointer 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
argIBinarizeCallbackIBinarizeCallback handle to destroy
pargExceptionPointer to exception structure that will be filled if an exception occurs

◆ IBinarizeCallback_RemovePixel()

IDRS_BOOL IBinarizeCallback_RemovePixel ( IBinarizeCallback  argIBinarizeCallback,
IDRS_UCHAR const  ucRed,
IDRS_UCHAR const  ucGreen,
IDRS_UCHAR const  ucBlue,
idrs_exception *  pargException 
)

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
argIBinarizeCallbackIBinarizeCallback handle
ucRedThe red component of the pixel's color.
ucGreenThe green component of the pixel's color.
ucBlueThe blue component of the pixel's color.
pargExceptionPointer to exception structure that will be filled if an exception occurs
Return values
IDRS_TRUEIf the black pixel must be transformed to white.
IDRS_FALSEotherwise.