Documents for PDF .NET Edition
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.

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


    The source rectangle of the GcBitmap.
    See Also