def get_uncrop(img,size,h_cent):
    """
    Returns a method to convert cropped coordinate to full frame coordinate.

    Parameters
    ----------
    img : numpy.ndarray
        The full framed image.
    size : int
        The size of the cropped images.
    h_cent : int
        The horizontal centre used for cropping.

    Returns
    -------
    uc : function
        A function to 'uncrop' coordinates.
    """
    ar = img.shape[1] / img.shape[0];
    shift = (size * (ar - 1)) / 2;
    scale = scale = img.shape[0] / size;
    def uncrop(pt):
        new_x = int((pt[0] + shift) * scale);
        new_y = int(pt[1] * scale);
        return (new_x,new_y);
    return uncrop;