[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.CalculateOtsuThreshold

CalculateOtsuThreshold Method

CalculateOtsuThreshold(Rectangle?)

Calculates Otsu's threshold [0..255] for a grayscale image.

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

Declaration
public int CalculateOtsuThreshold(Rectangle? sourceRect = null)
Public Function CalculateOtsuThreshold(Optional sourceRect As Rectangle? = Nothing) As Integer
Parameters
Type Name Description
Rectangle? sourceRect

The source rectangle of the GcBitmap.

Returns
Type Description
int