playnano.processing.core module¶
Core functions for loading and processing AFMImageStacks.
- playnano.processing.core.process_stack(input_path: Path, channel: str, steps: List[Tuple[str, Dict]]) AFMImageStack[source]¶
Load an AFMImageStack from a file, apply a list of processing steps, and return it.
- Parameters:
input_path (Path) – Path to the AFM stack file.
channel (str) – Channel to load (e.g., ‘h’, ‘z’, etc.).
steps (list of tuple) – List of processing steps in the form (step_name, kwargs). Special step_name values: - “clear” : clears the current mask - “mask” : applies a mask function with kwargs - otherwise : treated as a filter name with kwargs
- Returns:
The processed AFMImageStack.
- Return type:
- Raises:
LoadError – If the AFM stack cannot be loaded from input_path.