osc.viz.utils

Visualization utils.

Functions

array_to_pil

Array or tensor to PIL image.

batched_otsu

Batched Otsu thresholding.

batched_otsu_pt

Same as :func:batched_otsu but with torch tensors.

fig_save_display

img_html

make_grid_pil

remove_xyticks

subplots_grid

Create a grid of subplots with identical aspect ratio.

text_html