Perform an order filter on an Ndimensional array.
Description:
Perform an order filter on the array in. The domain argument acts as a mask centered over each pixel. The nonzero 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.
Parameters :  in – an Ndimensional input array. :


Returns :  out – the results of the order filter in an array with the same :
