15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.10.5 Morphology <strong>scipy</strong>.ndimage.morphology<br />

SciPy Reference Guide, Release 0.8.dev<br />

binary_closing(input[, structure, ...]) Multi-dimensional binary closing with the given structure.<br />

binary_dilation(input[, structure, ...]) Multi-dimensional binary dilation with the given structure.<br />

binary_erosion(input[, structure, ...]) Multi-dimensional binary erosion with the given structure.<br />

binary_fill_holes(input[, structure, ...]) Fill the holes in binary objects.<br />

binary_hit_or_miss(input[, structure1, ...]) Multi-dimensional binary hit-or-miss transform.<br />

binary_opening(input[, structure, ...]) Multi-dimensional binary opening with the given structure.<br />

binary_propagation(input[, structure, mask, Multi-dimensional binary propagation with the given<br />

...])<br />

structure.<br />

black_tophat(input[, size, footprint, ...]) Multi-dimensional black tophat filter.<br />

distance_transform_bf(input[, metric, ...]) Distance transform function by a brute force algorithm.<br />

distance_transform_cdt(input[, metric, ...]) Distance transform for chamfer type of transforms.<br />

distance_transform_edt(input[, sampling,<br />

...])<br />

Exact euclidean distance transform.<br />

generate_binary_structure(rank, Generate a binary structure for binary morphological<br />

connectivity)<br />

operations.<br />

grey_closing(input[, size, footprint, ...]) Multi-dimensional grey valued closing.<br />

grey_dilation(input[, size, footprint, ...]) Calculate a grey values dilation.<br />

grey_erosion(input[, size, footprint, ...]) Calculate a grey values erosion.<br />

grey_opening(input[, size, footprint, ...]) Multi-dimensional grey valued opening.<br />

iterate_structure(structure, iterations[, ...]) Iterate a structure by dilating it with itself.<br />

morphological_gradient(input[, size, ...]) Multi-dimensional morphological gradient.<br />

morphological_laplace(input[, size, ...]) Multi-dimensional morphological laplace.<br />

white_tophat(input[, size, footprint, ...]) Multi-dimensional white tophat filter.<br />

binary_closing(input, structure=None, iterations=1, output=None, origin=0)<br />

Multi-dimensional binary closing with the given structure.<br />

An output array can optionally be provided. The origin parameter controls the placement of the filter. If no<br />

structuring element is provided an element is generated with a squared connectivity equal to one. The iterations<br />

parameter gives the number of times the dilations and then the erosions are done.<br />

binary_dilation(input, structure=None, iterations=1, mask=None, output=None, border_value=0, origin=0,<br />

brute_force=False)<br />

Multi-dimensional binary dilation with the given structure.<br />

An output array can optionally be provided. The origin parameter controls the placement of the filter. If no<br />

structuring element is provided an element is generated with a squared connectivity equal to one. The dilation<br />

operation is repeated iterations times. If iterations is less than 1, the dilation is repeated until the result does not<br />

change anymore. If a mask is given, only those elements with a true value at the corresponding mask element<br />

are modified at each iteration.<br />

binary_erosion(input, structure=None, iterations=1, mask=None, output=None, border_value=0, origin=0,<br />

brute_force=False)<br />

Multi-dimensional binary erosion with the given structure.<br />

An output array can optionally be provided. The origin parameter controls the placement of the filter. If no structuring<br />

element is provided an element is generated with a squared connectivity equal to one. The border_value<br />

parameter gives the value of the array outside the border. The erosion operation is repeated iterations times. If<br />

iterations is less than 1, the erosion is repeated until the result does not change anymore. If a mask is given, only<br />

those elements with a true value at the corresponding mask element are modified at each iteration.<br />

binary_fill_holes(input, structure=None, output=None, origin=0)<br />

Fill the holes in binary objects.<br />

An output array can optionally be provided. The origin parameter controls the placement of the filter. If no<br />

structuring element is provided an element is generated with a squared connectivity equal to one.<br />

3.10. Multi-dimensional image processing (<strong>scipy</strong>.ndimage) 287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!