osc.viz.utils.batched_otsu

batched_otsu(x)[source]

Batched Otsu thresholding.

Parameters

x (ndarray) – numpy array of shape [..., H, W] with leading batch dimensions

Return type

ndarray

Returns

Numpy array of thresholded images, same shape as the input.