### Navigation

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

# scipy.ndimage.morphology.generate_binary_structure

`scipy.ndimage.morphology.``generate_binary_structure`(rank, connectivity)

  Generate a binary structure for binary morphological operations.

  The inputs are the rank of the array to which the structure will be applied and the square of the connectivity of the structure.

### Navigation

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