def RemovePaddingFromImage(image, dst_shape, padding):
    """Removes the padding from the image

    image -- image containing the padded border
    dst_shape -- aimed output shape of image
    padding -- pixel paddings of top and left
    """
    y1 = dst_shape[0] + padding[0]
    y2 = dst_shape[1] + padding[1]
    output = image[0, padding[0]:y1, padding[1]:y2,:]
    return output