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

Interface for CPunchHoleRemoval wrapper. More...

Go to the source code of this file.

Functions

CPunchHoleRemoval CPunchHoleRemoval_Create (const CIDRS argIDRS, idrs_exception *pargException)
 The Create method creates a CPunchHoleRemoval object.
 
void CPunchHoleRemoval_RemovePunchHole (CPunchHoleRemoval argCPunchHoleRemoval, CImage argImage, idrs_exception *pargException)
 RemovePunchHole automatically detects the location of the punch holes on the image and removes them.
 
void CPunchHoleRemoval_Destroy (CPunchHoleRemoval argCPunchHoleRemoval, idrs_exception *pargException)
 Destroys a CPunchHoleRemoval handle.
 

Detailed Description

Interface for CPunchHoleRemoval wrapper.

Function Documentation

◆ CPunchHoleRemoval_Create()

CPunchHoleRemoval CPunchHoleRemoval_Create ( const CIDRS  argIDRS,
idrs_exception *  pargException 
)

The Create method creates a CPunchHoleRemoval object.

Parameters
argIDRSThe iDRS instance.
pargExceptionPointer to exception structure that will be filled if an exception occurs
Returns
The newly created CPunchHoleRemoval object.

◆ CPunchHoleRemoval_Destroy()

void CPunchHoleRemoval_Destroy ( CPunchHoleRemoval  argCPunchHoleRemoval,
idrs_exception *  pargException 
)

Destroys a CPunchHoleRemoval handle.

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

◆ CPunchHoleRemoval_RemovePunchHole()

void CPunchHoleRemoval_RemovePunchHole ( CPunchHoleRemoval  argCPunchHoleRemoval,
CImage  argImage,
idrs_exception *  pargException 
)

RemovePunchHole automatically detects the location of the punch holes on the image and removes them.

Parameters
argCPunchHoleRemovalCPunchHoleRemoval handle
argImageThe image to process.
pargExceptionPointer to exception structure that will be filled if an exception occurs

The punch hole algorithm can be used on images with the following minimum dimensions (computed for 300dpi): width: 300px, height: 100 Please note that the minimum height and width can vary with the image resolution.