def _crimp(color):
    """
    crimps the values between 255 and 0. Required for some other convolutions like emboss where they go out of register.
    :param color: color to crimp.
    :return:
    """
    if color > 255:
        return 255
    if color < 0:
        return 0
    return int(color)