ImgRemoveHorizontalLines

Top  Previous  Next

Prototype

 

ImgRemoveHorizontalLines(intImageHandle,intMinLen,intMaxInterrupions,floatMinRatio,boolClean,boolReconnect)

 

Description

 

Removes the horizontal lines from monochrome images if they are in specified range.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

intMinLen: minimum length in pixel from which the lines are deleted.

intMaxInterrupions: the max number of interruptions allowed

floatMinRatio: float value that shows the minimum ratio (length/thickness)  that the found 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 100 pixels, with max 2 interruptions and having a ratio length/thickness > 8.

ImgRemoveHorizontalLines(_CurrentImage,100,2,8.0,True,True);