ClearImage COM API
ReconstructLines Method
CiRepair Object : ReconstructLines Method
Description
Find and straighten image lines
Syntax
Visual Basic
Public Sub ReconstructLines( _
   ByVal Direction As ELineDirection _
) 
Parameters
Direction
ValueDescription
ciLineHorzHorizontal lines
ciLineUnknownUnknown
ciLineVertVertical lines
ciLineVertAndHorzBoth vertical and horizontal lines
Remarks

Lines are identified based on values of pLineCurvature, pMinLineLength, pMaxLineGap  and pMaxLineAngle  properties.
After lines are deleted straight lines of the same length, thickness and angle are drawn on the image.

Method requires bi-tonal image (object.Image.BitsPerPixel = 1).

Example
Sub T_ReconstructLines(ByRef Rep As CiRepair)
  Rep.pLineCurvature = ciCurvHigh
  Rep.pMaxLineAngle = 5
  Rep.pMaxLineGap = 5
  Rep.pMinLineLength = 200
  Rep.ReconstructLines ciLineVertAndHorz
End Sub
See Also

CiRepair Object  | CiRepair Members  | DeleteLines  | ReconstructLines  | pLineCurvature  | pMaxLineAngle  | pMaxLineGap  | pMinLineLength