pingwyn.core.image_fix_zero

Set minimum value of an image to zero. All values will be shifted by the same amount such that the minimum value of the image becomes zero.

param image:

Image to apply zero fix to.

type image:

pingwyn.Image

param mask:

Mask image, only non-zero pixel values in the mask will be used to find the minimum value, by default None

type mask:

pingwyn.Image, optional

returns:

Zero fixed image.

rtype:

pingwyn.Image