educelab.imgproc.correction

educelab.imgproc.correction.flatfield_correction(image, lf, df=None)

Apply flatfield correction to an image.

Parameters:
  • image (ArrayLike) – Input image.

  • lf (ArrayLike) – Light-field image.

  • df (ArrayLike | None) – Dark-field image. If None, an empty dark field will be used.

Returns:

Flatfield-corrected image.

Return type:

ArrayLike

educelab.imgproc.correction.gamma_correction(image, gamma=1, gain=1)

Apply gamma correction to an image.

See: skimage.exposure.adjust_gamma()

educelab.imgproc.correction.normalize(image, in_range='image', *, out_range=(0.0, 1.0))

Rescale an image’s effective dynamic range (min and max values) to the range [0, 1].