photon_mosaic_pipeline.preprocessing.derotation#
Derotation preprocessing step for photon-mosaic-pipeline.
This module provides a function to derotate image data using the derotation package.
Functions
|
Derotate image data using the derotation pipeline. |
- photon_mosaic_pipeline.preprocessing.derotation.run(dataset_folder, output_folder, glob_naming_pattern_tif, glob_naming_pattern_bin, path_to_stimulus_randperm, ses_idx=0, **kwargs)[source]#
Derotate image data using the derotation pipeline.
- Parameters:
dataset_folder (
Path) – The path to the dataset folder.output_folder (
Path) – The path to the output folder.glob_naming_pattern_tif (
Union[str,List[str]]) – Pattern(s) to match tif files. Can be a single pattern or a list of patterns where the session index selects the appropriate pattern.glob_naming_pattern_bin (
Union[str,List[str]]) – Pattern(s) to match bin files. Can be a single pattern or a list of patterns where the session index selects the appropriate pattern.path_to_stimulus_randperm (
str) – Path to the stimulus randomization file.ses_idx (
int) – Session index to process. Default is 0.**kwargs (dict) – Additional arguments for the derotation pipeline.
- Returns:
The function saves the derotated data to the output folder and returns nothing.
- Return type:
None