Accusoft ImagXpress 13
DocumentLineRemoval Method

The minimum pixel length of a line to meet removal criteria.

Range: 26 - 20,000

Default: 50

 

The maximum pixel thickness of a line meeting the removal criteria.

Range: 1 - 50

Default: 20

 

The ratio of the line length to the line width. Lines below this aspect ratio are removed.

The ratio range is any floating point number between 1 and 1000. The typical value is 10. This provides a ratio of 100 pixels in length for every 10 pixels in width.

Range: 1 - 1000

Default: 10

The maximum allowed gap in a line for the line to still be considered one object. This value should be an integer from 0 to 20.

Range: 0 - 20

Default: 1 

Maximum character size to reconstruct intersected characters within the given size after performing line removal. This value should be a positive integer including zero.

Range: 0 - 100

Default: 20

Description
Automatically detects and removes lines from the current image.
Syntax
Visual Basic
Public Sub DocumentLineRemoval( _
   ByVal MinLength As Long, _
   ByVal MaxThickness As Integer, _
   ByVal MinAspectRatio As Double, _
   ByVal MaxGap As Integer, _
   ByVal MaxCharRepairSize As Integer _
) 
Parameters
MinLength

The minimum pixel length of a line to meet removal criteria.

Range: 26 - 20,000

Default: 50

 

MaxThickness

The maximum pixel thickness of a line meeting the removal criteria.

Range: 1 - 50

Default: 20

 

MinAspectRatio

The ratio of the line length to the line width. Lines below this aspect ratio are removed.

The ratio range is any floating point number between 1 and 1000. The typical value is 10. This provides a ratio of 100 pixels in length for every 10 pixels in width.

Range: 1 - 1000

Default: 10

MaxGap

The maximum allowed gap in a line for the line to still be considered one object. This value should be an integer from 0 to 20.

Range: 0 - 20

Default: 1 

MaxCharRepairSize

Maximum character size to reconstruct intersected characters within the given size after performing line removal. This value should be a positive integer including zero.

Range: 0 - 100

Default: 20

Return Type

If values are out of range, ImagXpress throws an error message.

Remarks

Line removal is the process of detecting and removing vertical and horizontal lines from an image. This method examines the current image to find lines and modifies the image to remove them. If no parameters are provided, defaults are used. 

Outputs

 

Using the DocumentLineRemoval method

1. Load a 1 bit image from a file or stream input.

2. Call DocumentLineRemoval.

3. Examine properties (Lines are removed from current image.)

 

Note: Available in Professional Edition.

See Also

ImagXpress Object  | ImagXpress Members  | IPCountOfLinesFound Property  | IPImageWasModified Property  | Document Image Processing  | Image Processing

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback