Instantiates a new BinarizeOptions object with the specified paramaters.
Syntax
'Declaration
Public Function New( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As BinarizeBlur, _
ByVal As Integer _
)
'Usage
Dim lowThreshold As Integer
Dim highThreshold As Integer
Dim preBlurType As BinarizeBlur
Dim lceFactor As Integer
Dim instance As New BinarizeOptions(lowThreshold, highThreshold, preBlurType, lceFactor)
public BinarizeOptions(
int ,
int ,
BinarizeBlur ,
int
)
public: BinarizeOptions(
int ,
int ,
BinarizeBlur ,
int
)
public:
BinarizeOptions(
int ,
int ,
BinarizeBlur ,
int
)
Parameters
- lowThreshold
- Controls the background sensitivity. Should generally be set as high
as possible without exceeding the brightness of any part of the background.
Min = 0, max = 255
- highThreshold
- Controls letter and figure thickness. Black noise appearing in the background
can generally be eliminated by lowering the value of lowThreshold. Too-thick letters
and figures can generally be improved by lowering the value of highThreshold.
Too-thin letters and figures can generally be improved by raising the value of
lowThreshold and/or highThreshold.
Min = lowThreshold value, max = 255
- preBlurType
- Controls the type of blur to apply to the image.
Default = NoBlur
- lceFactor
- Controls the sensitivity of local contrast enhancement to faint features.
Lower values yield less sensitivity.
Min = 0, max = 255
See Also