def get_centroid(M):
    """
    Returns the centroid using the inputted image moments.

    Centroid is computed as being the first moment in x and y divided by the
    zeroth moment.

    Parameters
    ----------
    M : list
        List of image moments.
    
    Returns
    -------
    tuple
        Centroid of the image moments.
    """    
    return int(M['m10']/M['m00']), int(M['m01']/M['m00'])