Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
DynamicBinaryCommand Constructor(Int32,Int32)
See Also 
Leadtools.ImageProcessing Namespace > DynamicBinaryCommand Class > DynamicBinaryCommand Constructor : DynamicBinaryCommand Constructor(Int32,Int32)



dimension
Dimensions of the neighborhood used when evaluating each pixel (Dimension x Dimension), in pixels. This should be at least 1.
localContrast
Local contrast threshold. If the contrast of the area surrounding the pixel is less than the LocalContrast property, the pixel is converted to black or white using a global pre-calculated threshold. If the contrast of the area surrounding the pixel is higher than the LocalContrast property, the local threshold value is calculated and used. The range for the LocalContrast property is 0 to 255 for 8-bit, 0 to 4095 for 12-bit and 0 to 65535 for 16-bit.
Initializes a new DynamicBinaryCommand with explicit parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal dimension As Integer, _
   ByVal localContrast As Integer _
)
Visual Basic (Usage)Copy Code
Dim dimension As Integer
Dim localContrast As Integer
 
Dim instance As DynamicBinaryCommand(dimension, localContrast)
C# 
public DynamicBinaryCommand( 
   int dimension,
   int localContrast
)
C++/CLI 
public:
DynamicBinaryCommand( 
   int dimension,
   int localContrast
)

Parameters

dimension
Dimensions of the neighborhood used when evaluating each pixel (Dimension x Dimension), in pixels. This should be at least 1.
localContrast
Local contrast threshold. If the contrast of the area surrounding the pixel is less than the LocalContrast property, the pixel is converted to black or white using a global pre-calculated threshold. If the contrast of the area surrounding the pixel is higher than the LocalContrast property, the local threshold value is calculated and used. The range for the LocalContrast property is 0 to 255 for 8-bit, 0 to 4095 for 12-bit and 0 to 65535 for 16-bit.

Example

For an example, refer to DynamicBinaryCommand.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also