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_imagesobject 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 newLoadedImageChannelsbundle 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_cropandz_projectionvalues are resolved globally across them.
- Return type:
- Returns:
LoadedImageChannels β Either the original loaded image bundle or a projected analysis view.