sparrow.pl.flatfield

Contents

sparrow.pl.flatfield#

sparrow.pl.flatfield(flatfield, output=None)#

Visualize the correction performed per tile using a flatfield image.

This function generates and displays a visualization of the flatfield image, which represents correction performed per tile. It can optionally save the generated image to a specified path.

Parameters:
  • flatfield (ndarray) – A 2D numpy array representing the flatfield image used for correction.

  • output (Union[str, Path, None] (default: None)) – Path where the generated visualization will be saved. If not provided, the visualization is displayed but not saved. Default is None.

Return type:

None

Returns:

: None

Examples

>>> img = np.array(...)
>>> flatfield(img, output="path/to/save/image.png")