LineRemove method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax:

int LineRemove(unsigned uProcessFlags, int nMinLineLength, int nMaxLineWidth, int nWall, int nMaxWallPercent, int nGapLength, int nVariance, unsigned uRemoveFlags);

Delphi Syntax:

Function LineRemove(uProcessFlags:L_UINT32; nMinLineLength :L_UINT32; nMaxLineWidth:L_UINT32; nWall :L_UINT32; nMaxWallPercent :L_UINT32; nGapLength :L_UINT32; nVariance :L_UINT32;uRemoveFlags :L_UINT32): L_INT;

Overview

Refer to Cleaning Up 1-Bit Images

Remarks

(Document/Medical)Removes horizontal and vertical lines in a 1-bit black and white image.

This method removes horizontal and vertical lines from scanned text documents. If the lines pass through text, the parameters can be set to remove or preserve the text.

This method works only on 1-bit black and white images.

If a region is selected, only the selected region will be changed by this method. If no region is selected, the whole image will be processed.

The behavior of this method can be further modified by using the OnLineRemove event.

To "fine-tune" the performance of this method, try modifying the values for nWall, nGapLength and nVariance.

This method triggers both the OnLineRemove event and the OnStatus event.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

OnLineRemove event

Topics:

Raster Images: Cleaning - up 1-Bit Images