[]
Calculates Otsu's threshold [0..255] for a grayscale image.
It is expected that the image is already converted to monochromatic gray.
public int CalculateOtsuThreshold(Rectangle? sourceRect = null)
Public Function CalculateOtsuThreshold(Optional sourceRect As Rectangle? = Nothing) As Integer
| Type | Name | Description |
|---|---|---|
| Rectangle? | sourceRect | The source rectangle of the GcBitmap. |
| Type | Description |
|---|---|
| int |