Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / CalculateOtsuThreshold Method
The source rectangle of the GcBitmap.

In This Topic
    CalculateOtsuThreshold Method
    In This Topic
    Calculates Otsu's threshold [0..255] for a grayscale image.

    It is expected that the image is already converted to monochromatic gray.

    Syntax
    'Declaration
     
    Public Function CalculateOtsuThreshold( _
       Optional ByVal sourceRect As System.Nullable(Of Rectangle) _
    ) As System.Integer
    public System.int CalculateOtsuThreshold( 
       System.Nullable<Rectangle> sourceRect
    )

    Parameters

    sourceRect
    The source rectangle of the GcBitmap.
    See Also