def majority(image, mask=None, iterations=1):
    """A pixel takes the value of the majority of its neighbors
    
    """
    global majority_table