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.

Notes<br />

output : array, optional<br />

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

The output parameter passes an array in which to store the filter output.<br />

mode : {‘reflect’,’constant’,’nearest’,’mirror’, ‘wrap’}, optional<br />

The mode parameter determines how the array borders are handled, where cval is<br />

the value when mode is equal to ‘constant’. Default is ‘reflect’<br />

cval : scalar, optional<br />

Value to fill past edges of input if mode is ‘constant’. Default is 0.0<br />

origin : scalar, optional<br />

The ‘‘origin‘‘ parameter controls the placement of the filter. Default 0 :<br />

The multi-dimensional filter is implemented as a sequence of one-dimensional uniform filters. The intermediate<br />

arrays are stored in the same data type as the output. Therefore, for output types with a limited precision, the<br />

results may be imprecise because intermediate results may be stored with insufficient precision.<br />

uniform_filter1d(input, size, axis=-1, output=None, mode=’reflect’, cval=0.0, origin=0)<br />

Calculate a one-dimensional uniform filter along the given axis.<br />

The lines of the array along the given axis are filtered with a uniform filter of given size.<br />

Parameters<br />

input : array-like<br />

input array to filter<br />

size : integer<br />

length of uniform filter<br />

axis : integer, optional<br />

axis of input along which to calculate. Default is -1<br />

output : array, optional<br />

The output parameter passes an array in which to store the filter output.<br />

mode : {‘reflect’,’constant’,’nearest’,’mirror’, ‘wrap’}, optional<br />

The mode parameter determines how the array borders are handled, where cval is<br />

the value when mode is equal to ‘constant’. Default is ‘reflect’<br />

cval : scalar, optional<br />

Value to fill past edges of input if mode is ‘constant’. Default is 0.0<br />

origin : scalar, optional<br />

The ‘‘origin‘‘ parameter controls the placement of the filter. Default 0 :<br />

3.10.2 Fourier filters <strong>scipy</strong>.ndimage.fourier<br />

fourier_ellipsoid(input, size[, n, axis, output]) Multi-dimensional ellipsoid fourier filter.<br />

fourier_gaussian(input, sigma[, n, axis, output]) Multi-dimensional Gaussian fourier filter.<br />

fourier_shift(input, shift[, n, axis, output]) Multi-dimensional fourier shift filter.<br />

fourier_uniform(input, size[, n, axis, output]) Multi-dimensional Uniform fourier filter.<br />

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

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

Saved successfully!

Ooh no, something went wrong!