imagestacks

This module is designed to handle image stacks produced by SLAP2. It includes tools to load, process, and analyze image data in stack form, facilitating operations like averaging, filtering, and saving the processed stacks.

Functions

slap2_utils.functions.imagestacks.averageStack(path)[source]

Compute the average stack of a TIFF file using CPU.

This function reads a multi-frame TIFF file, computes the average of each slice, and saves the resulting average stack as a new TIFF file.

Parameters:

path (str) – Path to the input TIFF file.

Returns:

newFilePath – Path to the saved average stack TIFF file.

Return type:

str

slap2_utils.functions.imagestacks.averageStackGPU(path)[source]

Compute the average stack of a TIFF file using GPU.

This function reads a multi-frame TIFF file, computes the average of each slice using GPU, and saves the resulting average stack as a new TIFF file.

Parameters:

path (str) – Path to the input TIFF file.

Returns:

newFilePath – Path to the saved average stack TIFF file.

Return type:

str

slap2_utils.functions.imagestacks.main()[source]