ImgRemoveLines |
Top Previous Next |
Prototype
ImgRemoveLines(intImageHandle,intMinHorzLen,intMaxInterrupions, floatMinHorzRatio, intMinVertLen, intMaxInterrupions, floatMinVertRatio, boolClean, boolReconnect)
Description
Removes the horizontal and vertical lines from monochrome images if they are in specified parameters.
Parameters
intImageHandle: integer value corresponding to the image handle.
intMinHorzLen: minimum length in pixel from which the horizontal lines are deleted.
intMaxHorzInterrupions: the max number of interruption allowed in horizontal lines
floatMinHorzRatio: float value that shows the minimum ratio (length/thickness) that the found horizontal element must have in order to be considered a line.
intMinVertLen: minimum length in pixel from which the vertical lines are deleted.
intMaxVertInterrupions: the max number of interruption allowed in vertical lines
floatMinVertRatio: float value that shows the minimum ratio (length/thickness) that the found vertical element must have in order to be considered a line.
boolClean: boolean value showing to clean removed line borders if it is set as TRUE.
boolReconnect : boolean value showing to reconnect the crossed characters if it is set as TRUE.
Returned value
None.
Notes
Lines length has to be into in pixel, in order to know the way of converting centimeters or inches into pixel, use: pixels = (Cm / 2,54) * ImageResolution. pixels = Inches * ImageResolution
Example
// Removes the lines longer than about 100 pixels, as well as having a ratio length/thickness like 8. ImgRemoveLines(_CurrentImage,100,2,8.0,100,2,8.0,True,True); |