@docfiller<EOL>def rank_filter(input, rank, size=None, footprint=None, output=None,<EOL>mode="<STR_LIT>", cval=<NUM_LIT:0.0>, origin=<NUM_LIT:0>):
return _rank_filter(input, rank, size, footprint, output, mode, cval,<EOL>origin, '<STR_LIT>')<EOL>
Calculates a multi-dimensional rank filter.

    Parameters
    ----------
    %(input)s
    rank : integer
        The rank parameter may be less then zero, i.e., rank = -1
        indicates the largest element.
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s