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.
Otsu, N., 1979. A threshold selection method from gray-level histograms. IEEE transactions on systems, man, and cybernetics, 9(1), pp.62-66.
image_segmentation, image_segmentation
def otsu_thresholding(self, raster: Raster) -> Raster: ...