thor.pp.load_mask_npz

thor.pp.load_mask_npz(nuclei_path)[source]

Load nuclei segmentation result from a mask array npz file.

Parameters:

nuclei_path (str) – Path to the nuclei segmentation result file.

Returns:

  • labels (numpy.ndarray) – Nuclei segmentation labels (numpy array: n_cells)

  • nuclei_centroids (numpy.ndarray) – Nuclei positions (numpy array: n_cells x 2)