Name
CalculateOtsuThreshold — calculates threshold by Otsu method
Calling Sequence
Threshold = CalculateOtsuThreshold(Image)
Parameters
- Image
2D matrix of type uint8, uint16, uint32 or double
- Threshold
result of threshold calculation. The type of Threshold is the
same as the type of Image.
Description
This function calculates the threshold of a numeric image using the
Otsu method.
Examples
Image = rand(3, 3) // generate random image
Threshold = CalculateOtsuThreshold(Image)