def isInsideVolumeWithBorder(volume, point, border):
    """Return true if the point is not only inside of the volume but inside of the border."""

    s = volume.shape
    if point[0] < s[0] - border[0] and\
        point[1] < s[1] - border[1] and\
        point[2] < s[2] - border[2] and\
        point[0] >= border[0] and\
        point[1] >= border[1] and\
        point[2] >= border[2]:
        return True
    else:
        return False