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 _ ) |
- 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
If values are out of range, ImagXpress throws an error message.
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
- The component's current image should have lines removed if no errors occurred. If lines were not removed for any reason, this image will not be modified.
- IPCountOfLinesFound will be set with the number of lines detected.
- IPImageWasModified is set to true if the image was modified, false if the image was not modified.
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.