mango.image.mean_filter

mango.image.mean_filter(input, se=<mango.image._mango_open_filters._BoxStructuringElement_3 object at 0x7f720bc1f5d0>, mode='mirror', cval=None, stride=(1, 1, 1), boffset=(0, 0, 0), eoffset=(0, 0, 0))

Neighbourhood mean filter.

Parameters:
  • input (mango.Dds) – Image to be filtered.
  • se (StructuringElement.) – Structuring element which defines the neighbourhood over which the means are calculated.
  • 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:

Mean-filtered image.

Previous topic

mango.image.discrete_gaussian_gradient_magnitude

Next topic

mango.image.median_filter

This Page