delta.pipeline.Pipeline¶
- class delta.pipeline.Pipeline(xpreader: xpreader, resfolder: Optional[Union[str, Path]] = None, on_the_fly: bool = False, reload: bool = False, verbose: int = 1)¶
Main Pipeline class to process all positions.
- __init__(xpreader: xpreader, resfolder: Optional[Union[str, Path]] = None, on_the_fly: bool = False, reload: bool = False, verbose: int = 1)¶
Initialize Pipeline
- Parameters
- xpreaderobject
utilities xpreader object.
- resfolderstr or Path, optional
Path to folder to save results to. The default is None.
- on_the_flybool, optional
TODO
- reloadbool, optional
Flag to reload previous position files from resfolder. The default is False.
- verboseint, optional
Verbosity flag. The default is 1.
- Returns
- None.
Attributes
readerExperiment reader object
positionsList of Position objects under current experiment
rotation_correctionFlag to perform rotation correction
drift_correctionFlag to perform XY drift correction
crop_windowsFlag to crop overlapping windows for segmentation
save_formatList of file save formats
daemonRun the pipeline as a daemon process (not functional yet)
modelsDictionary of Tensorflow models
Methods
__init__(xpreader[, resfolder, on_the_fly, ...])Initialize Pipeline
preprocess([positions, references, ROIs])Pre-process positions (Rotation correction, identify ROIs, initialize drift correction)
process([positions, frames, features, clear])Run pipeline.
run()On-the-fly processor (not functional yet)