def getCentroids(proptable):

    """
    Returns labeled object centroids and labels in a dictionary.


    Parameters
    ----------

    proptable : pd.DataFrame
        labeled object properties with centroid & label columns


    Returns
    -------

    props_dict : dict
        Dictionary with 'centroids' and 'labels' as keys, with corresponding
    centroids and labels extracted from proptable as numpy arrays.
    """

    props_dict = {}

    # get centroid column titles
    filter_col = [col for col in proptable if col.startswith('centroid')]

    props_dict['centroids'] = proptable[filter_col].to_numpy().astype(int)
    props_dict['labels'] = proptable['label'].to_numpy()

    return props_dict