Repository navigation
Conversation
There was a problem hiding this comment.
Please remove unnecessary blank lines,
There was a problem hiding this comment.
@spark1729
These fancy quotes seem to be causing a problem
There was a problem hiding this comment.
Can't median detect the dtype and respond by calling the correct underlying implementation?
There was a problem hiding this comment.
Yes, it can but the parameters are different. The idea that emmanuelle shared was to give the output of ndimage.median_filter for float images.
There was a problem hiding this comment.
It's true that it would be nice to have only one function exposed to the other. Even if the API of the ndimage is different, can you adapt parameters passed to the scikit-image API to determine the corresponding parameters for ndimage, and then test for the dtype of the image within the exposed median function?
There was a problem hiding this comment.
@spark1729 ndimage.median_filter has a different API, but you can still use the footprint and origin arguments to adapt the arguments passed to skimage's function median.
Do you think you will have the time to modify your PR so that only one function median is exposed, inside which the dtype of the image is tested and a different function is called for uint8 (the existing code) and float types?
|
I just upgraded to 0.11.3 and I'm kind of surprised by the changes in the median filter functionality. I used the older skimage.filter.median_filter rather than the scipy.ndimage.filters.median_filter because I preferred the way it handled missing values. Scipy propagates data gaps, while the old skimage median filter would "fill" small gaps. It looks like the old skimage median_filter functionality is no longer available? It seems that requiring the user to scale their input float array to [-1,1] will be cumbersome. Hopefully this will happen behind the scenes in future releases. |
|
@dshean, would you mind raising that in a separate Issue? I don't want your concerns getting drowned out here in a discussion of new median filter functionality for float types. |
|
#1616 |
|
Is there any chance this floating point median filter can be updated/brought in? |
Median filter was only available for integer-type images, as raised in Issue #1419. Impemented a new funtions
median_floatwhich internally usesnd_image.filters._rank_filter.