Skip to content

Commit

Permalink
ENH: rank filter for 1D cases log(n) complexity implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ggkogan committed Apr 21, 2024
1 parent 7342843 commit cd87fc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scipy/ndimage/_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,8 @@ def _rank_filter(input, rank, size=None, footprint=None, output=None,
"filters")
mode = _ni_support._extend_mode_to_code(mode)
if input.ndim == 1:
_rank_filter_1d.rank_filter_1d(input, rank, footprint, output, mode, cval, origin)
_rank_filter_1d.rank_filter_1d(input, rank, footprint, output, mode, cval,
origin)
else:
_nd_image.rank_filter(input, rank, footprint, output, mode, cval, origins)
if temp_needed:
Expand Down

0 comments on commit cd87fc7

Please sign in to comment.