'Declaration <DebuggerStepThroughAttribute()> <DebuggerNonUserCodeAttribute()> Public Function New( _ ByVal minimumLength As Integer, _ ByVal maximumThickness As Integer, _ ByVal minimumAspectRatio As Double, _ ByVal maximumGap As Integer, _ ByVal maximumCharacterRepairSize As Integer _ )
'Usage Dim minimumLength As Integer Dim maximumThickness As Integer Dim minimumAspectRatio As Double Dim maximumGap As Integer Dim maximumCharacterRepairSize As Integer Dim instance As New LineRemovalOptions(minimumLength, maximumThickness, minimumAspectRatio, maximumGap, maximumCharacterRepairSize)
[DebuggerStepThrough()] [DebuggerNonUserCode()] public LineRemovalOptions( int minimumLength, int maximumThickness, double minimumAspectRatio, int maximumGap, int maximumCharacterRepairSize )
[DebuggerStepThrough()] [DebuggerNonUserCode()] public: LineRemovalOptions( int minimumLength, int maximumThickness, double minimumAspectRatio, int maximumGap, int maximumCharacterRepairSize )
[DebuggerStepThrough()] [DebuggerNonUserCode()] public: LineRemovalOptions( int minimumLength, int maximumThickness, double minimumAspectRatio, int maximumGap, int maximumCharacterRepairSize )
Parameters
- minimumLength
- The minimum length, in pixels, a line can be to meet the removal criteria. Valid values are in the range 10 to 20000. The default value is 50.
- maximumThickness
- The maximum thickness, in pixels, a line can have to meet the removal criteria. Valid values are in the range of 0 to 50. The default value is 20.
- minimumAspectRatio
- The ratio of the line length to the line width (i.e., length / width). Lines below this aspect ratio will not be removed. The value range is any floating point number between 1 and 1000. The default value is 10.0. This provides a range of 10 pixels long for every one pixel wide.
- maximumGap
- The maximum allowed gap in a line for the line to still be considered one object. Valid values are in the range 0 to 20. The default value is 1.
- maximumCharacterRepairSize
- Will reconstruct intersected characters within the given size after performing line removal. Valid values are in the range 0 to 100. The default value is 20.