def threshold (x):
    """Function to apply to a pixel value to make a threshold operation
    args : int
    
    returns int equal to 0 or 255
    """
    threshold_1=0
    
    if (x <threshold_1):
        return 0
    else:
        return 255