DESPECKLE_METHOD Enumeration |
Namespace: Kofax.OmniPageCSDK.IproPlus
Member name | Value | Description | |
---|---|---|---|
DESPECKLE_AUTO | 0 | The applied method is determined automatically. | |
DESPECKLE_NORMAL | 1 | Black noise is removed, contours are smoothed. Level can be set between 1 and 4. | |
DESPECKLE_INVERSE | 2 | White noise is removed, contours are smoothed. Level can be set between 1 and 4. | |
DESPECKLE_HALFTONE | 3 | Despeckle half-tone image. Level can be set between 1 and 4. | |
DESPECKLE_MEDIAN | 4 | 3*3 median filtering. Level is not used. | |
DESPECKLE_SMOOTHEDGE | 5 | Remove small noise from contours. level is not used. | |
DESPECKLE_PEPPER | 8 | Remove black dots whose width and height are less or equal to the given size. The contours of the other objects are not smoothed. The level parameter specifies the size, it must be between 1 and 256. | |
DESPECKLE_SALT | 16 | Remove white dots whose width and height are less or equal to the given size. The contours of the other objects are not smoothed. The level parameter specifies the size, it must be between 1 and 256. | |
DESPECKLE_PEPPERANDSALT | 24 | Remove both black and white dots whose width and height are less or equal to the given size. |
Adaptive noise removal works on black-and-white images only.
This function is useful for images which originally had a grayed or colored background that was not completely removed by preprocessing. It can be useful also for faxed pages or those with a spotted background.
The algorithm will run at any resolution, however, it is optimized for images with at least 280 dpi resolution.