multicolorfits.smooth_image#

multicolorfits.smooth_image(datain, sigma=3)[source]#

Apply isotropic Gaussian smoothing to a 2D or multichannel image.

Useful for matching a coarser neighbour’s resolution or reducing noise before colorizing.

Parameters:
  • datain (array) – 2D image or 3D multichannel cube (channels last).

  • sigma (int or float) – Gaussian sigma in pixels.

Returns:

array – Smoothed image, same shape as datain.