cellcoloc.evaluate_cellpose_model

cellcoloc.evaluate_cellpose_model(model, image_zyx, model_config, voxel_scale_zyx)[source]

Run Cellpose and return the resulting label image as uint32.

The function accepts both 3D ZYX arrays and 2D images represented as a singleton-z (1, Y, X) volume. When model_config.do_3d is None, the function auto-detects the correct Cellpose mode from the z-size.

Return type:

tuple[ndarray, CellposeRefinementRoiCache | None]