### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Multi-dimensional image processing (`scipy.ndimage`) »

# scipy.ndimage.morphology.black_tophat

`scipy.ndimage.morphology.``black_tophat`(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

  Multi-dimensional black tophat filter.

  Either a size or a footprint, or the structure must be provided. An output array can optionally be provided. The origin parameter controls the placement of the filter. The mode parameter determines how the array borders are handled, where cval is the value when mode is equal to ‘constant’.

  See also

  `grey_opening`, `grey_closing`

  References

  [R63] | http://cmm.ensmp.fr/Micromorph/course/sld011.htm, and following slides

  [R64] | http://en.wikipedia.org/wiki/Top-hat_transform

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Multi-dimensional image processing (`scipy.ndimage`) »