normalize_img#
- cellpose_omni.transforms.normalize_img(img, axis=- 1, invert=False, omni=False)[source]#
normalize each channel of the image so that so that 0.0=1st percentile and 1.0=99th percentile of image intensities
optional inversion
- Parameters
img (ND-array (at least 3 dimensions)) --
axis (channel axis to loop over for normalization) --
- Returns
img -- normalized image of same size
- Return type
ND-array, float32