You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am porting a script from Matlab to Python. Matlab's version of 2D Median Filter assigns an element to NaN when being computed and a window contains NaN.
Describe the solution you'd like
Possibly an additional argument, Boolean if NaN must be considered or ignored in the evaluation.
The text was updated successfully, but these errors were encountered:
nikkopante
changed the title
Add option to return NaN if windows contain NaN for medfilt2d, medfilt
Add option to return NaN if window contains NaN for medfilt2d, medfilt
Sep 11, 2019
Is your feature request related to a problem? Please describe.
I am porting a script from Matlab to Python. Matlab's version of 2D Median Filter assigns an element to NaN when being computed and a window contains NaN.
Describe the solution you'd like
Possibly an additional argument, Boolean if NaN must be considered or ignored in the evaluation.
Describe alternatives you've considered
The silx library has this option for their [medfilt2d]. (http://www.silx.org/doc/silx/dev/modules/math/medianfilter.html#silx.math.medianfilter.medfilt2d). However the results are not accurate as SciPy's or Matlab's. I also tried ndimage.median_filter. However, it also ignores NaN and results we'rent as close as Matlab's.
Additional context (e.g. screenshots)
In Matlab or GNU Octave (Open Source)
In Python:
The text was updated successfully, but these errors were encountered: