save_template#

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

Save the template image stack along with its transformations.

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

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

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