mango.image.bilateral_filter

mango.image.bilateral_filter(input, intensity_sigma, spatial_sigma=0.4, se=None, mode='mirror', cval=None, stride=(1, 1, 1), boffset=(0, 0, 0), eoffset=(0, 0, 0), normWeights=False)

3D bilateral filter.

Parameters:
  • input (mango.Dds) – Image to be filtered.
  • intensity_sigma (float.) – The Gaussian sigma value for intensity weighting.
  • spatial_sigma (float.) – The Gaussian sigma value for spatial neighbourhood weighting.
  • se (StructuringElement.) – Structuring element which defines the neighbourhood over which the bilateral filtering is calculated. If None, auto-calculated from the spatial_sigma value.
  • mode (str) – String indicating how to handle borders, one of “mirror”, “constant”, “reflect”.
  • cval (scalar) – When mode=='constant' use this value to initialise borders.
  • stride (3-sequence) – The sub-sampling step-size for each dimension.
  • boffset (3-sequence) – The offset ((bz,by,bx) relative to input.origin) at which the filtering starts.
  • eoffset (3-sequence) – The offset ((ez,ey,ex) relative to (input.origin + input.shape)) at which the filtering stops.
Return type:

mango.Dds

Returns:

Bilateral filtered image.

Previous topic

mango.image.mad_filter

Next topic

mango.image.se

This Page