normalize_stack#

omnipose.utils.normalize_stack(vol, mask, bg=0.5, bright_foreground=None, subtractive=False, iterations=1, equalize_foreground=1, quantiles=[0.01, 0.99])[source]#

Adjust image stacks so that background is (1) consistent in brightness and (2) brought to an even average via semantic gamma normalization.