unique_segmentation_labels ============================================================ .. py:function:: petpal.preproc.segmentation_tools.unique_segmentation_labels(segmentation_img: ants.core.ANTsImage | numpy.ndarray, zeroth_roi: bool = False) -> numpy.ndarray Get a list of unique ROI labels in a segmentation image. :param segmentation_img: Segmentation image or array with integer labels for distinct ROIs. :type segmentation_img: ants.core.ANTsImage | np.ndarray :param zeroth_roi: Determines whether region index zero should be included as a unique region. If True, ``0`` is included in output list, otherwise is not included. Default False. :type zeroth_roi: bool :returns: *labels (np.ndarray)* -- Array of unique integers in the segmentation image.