stack_intensity_regularisation

nighres.microscopy.stack_intensity_regularisation(image, ratio=50, save_data=False, overwrite=False, output_dir=None, file_name=None)[source]

Stack intensity regularisation

Estimates an image-to-image linear intensity scaling for a stack of 2D images

Parameters:
  • image (niimg) – Input 2D images, stacked in the Z dimension
  • ratio (float, optional) – Ratio of image differences to keep (default is 50%)
  • save_data (bool) – Save output data to file (default is False)
  • overwrite (bool) – Overwrite existing results (default is False)
  • output_dir (str, optional) – Path to desired output directory, will be created if it doesn’t exist
  • file_name (str, optional) – Desired base name for output files with file extension (suffixes will be added)
Returns:

Dictionary collecting outputs under the following keys (suffix of output files in brackets)

  • result (niimg): The intensity regularised input

Return type:

dict

Notes

Original Java module by Pierre-Louis Bazin.