scipy.signal.order_filter

scipy.signal.order_filter(a, domain, rank)

Perform an order filter on an N-dimensional array.

Description:

Perform an order filter on the array in. The domain argument acts as a mask centered over each pixel. The non-zero elements of domain are used to select elements surrounding each input pixel which are placed in a list. The list is sorted, and the output for that pixel is the element corresponding to rank in the sorted list.

Inputs:

in – an N-dimensional input array. domain – a mask array with the same number of dimensions as in. Each

dimension should have an odd number of elements.
rank – an non-negative integer which selects the element from the
sorted list (0 corresponds to the largest element, 1 is the next largest element, etc.)

Output: (out,)

out – the results of the order filter in an array with the same
shape as in.

Previous topic

scipy.signal.spline_filter

Next topic

scipy.signal.medfilt

This Page

Quick search