cellcoloc.prepare_loaded_images_for_analysis

cellcoloc.prepare_loaded_images_for_analysis(loaded_images, *model_configs)[source]

Prepare a loaded dataset for downstream analysis according to configs.

This helper currently resolves an optional global z-projection from the provided channel configs. When no projection method is configured, the original loaded_images object is returned unchanged. When a projection is requested, the helper optionally applies the globally configured z-crop first, projects every available channel along z, and returns a new LoadedImageChannels bundle that behaves like a 2D dataset with singleton-z image arrays. All later ROI drawing, segmentation, quantification, and visualization steps should use this prepared bundle.

Parameters:
  • loaded_images – Previously loaded channel bundle from cellcoloc.io.load_analysis_images().

  • *model_configs – One or more participating channel configs. Any configured z_crop and z_projection values are resolved globally across them.

Return type:

LoadedImageChannels

Returns:

LoadedImageChannels – Either the original loaded image bundle or a projected analysis view.