rapidsai / cucim

cuCIM - RAPIDS GPU-accelerated image processing library
https://docs.rapids.ai/api/cucim/stable/
Apache License 2.0
354 stars 60 forks source link

[FEA] implement (color) bilateral filter #478

Open grlee77 opened 1 year ago

grlee77 commented 1 year ago

Is your feature request related to a problem? Please describe.

It would be good to provide a bilateral filter equivalent to the one used in skimage.restoration.denoise_bilateral. This version works for color images while there is also a rank filter version for integer-valued grayscale images in scikit-image under skimage.filters.rank.mean_bilateral

Describe the solution you'd like The scikit-image implementations support both 2D and 3D. Ideally we could provide both.

Describe alternatives you've considered Could adapt 2D kernel code from either cvCUDA or NPP, but it may be preferable to create an nD implementation reusing other nD filtering code already implemented for cupyx.scipy.ndimage

Additional context example: https://scikit-image.org/docs/stable/auto_examples/filters/plot_denoise.html#sphx-glr-auto-examples-filters-plot-denoise-py

desplenterkarel commented 9 months ago

👍 +1