This tool uses Ostu's method for optimal automatic binary thresholding, transforming an input image (`--input`) into background and foreground pixels (`--output`). Otsu’s method uses the grayscale image histogram to detect an optimal threshold value that separates two regions with maximum inter-class variance. The process begins by calculating the image histogram of the input.

## References

Otsu, N., 1979. A threshold selection method from gray-level histograms. IEEE transactions on systems, man, and cybernetics, 9(1), pp.62-66.

## See Also

image_segmentation, image_segmentation

## Function Signature

`def otsu_thresholding(self, raster: Raster) -> Raster: ...`

## Project Links

WbW Homepage User Manual Support WbW