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

Interface for IDespeckleCallback wrapper. More...

Go to the source code of this file.

Functions

IDespeckleCallback IDespeckleCallback_Create (PtrRemoveBlobTestFn ptrRemoveBlobTestFn, idrs_exception *pargException)
 Creates a new IDespeckleCallback object.
 
void IDespeckleCallback_Destroy (IDespeckleCallback argIDespeckleCallback, idrs_exception *pargException)
 Destroys a IDespeckleCallback handle.
 
IDRS_BOOL IDespeckleCallback_RemoveBlobTest (IDespeckleCallback argIDespeckleCallback, IDRS_UINT const uiBlobHeight, IDRS_UINT const uiBlobWidth, IDRS_UINT const uiBlobPixelsCount, idrs_exception *pargException)
 RemoveBlobTest is a callback method called by CDespeckle before removing a group of connected pixels.
 

Detailed Description

Interface for IDespeckleCallback wrapper.

Function Documentation

◆ IDespeckleCallback_Create()

IDespeckleCallback IDespeckleCallback_Create ( PtrRemoveBlobTestFn  ptrRemoveBlobTestFn,
idrs_exception *  pargException 
)

Creates a new IDespeckleCallback object.

Parameters
ptrRemoveBlobTestFnRemoveBlobTest function pointer
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
The newly created IDespeckleCallback

◆ IDespeckleCallback_Destroy()

void IDespeckleCallback_Destroy ( IDespeckleCallback  argIDespeckleCallback,
idrs_exception *  pargException 
)

Destroys a IDespeckleCallback handle.

Parameters
argIDespeckleCallbackIDespeckleCallback handle to destroy
pargExceptionPointer to exception structure that will be filled if an exception occurs

◆ IDespeckleCallback_RemoveBlobTest()

IDRS_BOOL IDespeckleCallback_RemoveBlobTest ( IDespeckleCallback  argIDespeckleCallback,
IDRS_UINT const  uiBlobHeight,
IDRS_UINT const  uiBlobWidth,
IDRS_UINT const  uiBlobPixelsCount,
idrs_exception *  pargException 
)

RemoveBlobTest is a callback method called by CDespeckle before removing a group of connected pixels.

Parameters
argIDespeckleCallbackIDespeckleCallback handle
uiBlobHeightThe height of the group of connected pixels.
uiBlobWidthThe width of the group of connected pixels.
uiBlobPixelsCountThe number of black pixels in the group.
pargExceptionPointer to exception structure that will be filled if an exception occurs
Return values
IDRS_TRUEIf the group of connected pixels must be removed.
IDRS_FALSEotherwise.