save_annotation#

brainglobe_atlasapi.atlas_generation.stacks.save_annotation(stack: List[ndarray[tuple[Any, ...], dtype[_ScalarT]]], output_dir: Path, transformations: List[List[Dict]])[source]#

Save the annotation image stack.

Parameters:
  • stack (List[np.ndarray]) – The annotation image stack.

  • output_dir (Path) – The directory where the annotation image will be saved.

  • transformations (List[List[Dict]]) – A list of transformations to be saved alongside the annotation.