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.

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

medfilt2d(input, kernel_size=3)<br />

Median filter two 2-dimensional arrays.<br />

Description:<br />

Inputs:<br />

Apply a median filter to the input array using a local window-size given by kernel_size (must be<br />

odd).<br />

in – An 2 dimensional input array. kernel_size – A scalar or an length-2 list giving the size of the<br />

Outputs: (out,)<br />

median filter window in each dimension. Elements of kernel_size should be odd. If<br />

kernel_size is a scalar, then this scalar is used as the size in each dimension.<br />

out – An array the same size as input containing the median filtered<br />

result.<br />

wiener(im, mysize=None, noise=None)<br />

Perform a Wiener filter on an N-dimensional array.<br />

Description:<br />

Inputs:<br />

Apply a Wiener filter to the N-dimensional array in.<br />

in – an N-dimensional array. kernel_size – A scalar or an N-length list giving the size of the<br />

Wiener filter window in each dimension. Elements of kernel_size should be odd. If<br />

kernel_size is a scalar, then this scalar is used as the size in each dimension.<br />

noise – The noise-power to use. If None, then noise is estimated as<br />

the average of the local variance of the input.<br />

Outputs: (out,)<br />

out – Wiener filtered result with the same shape as in.<br />

symiirorder1()<br />

symiirorder1(input, c0, z1 {, precision}) -> output<br />

Description:<br />

Inputs:<br />

Output:<br />

Implement a smoothing IIR filter with mirror-symmetric boundary conditions using a cascade of<br />

first-order sections. The second section uses a reversed sequence. This implements a system with<br />

the following transfer function and mirror-symmetric boundary conditions.<br />

c0<br />

H(z) = ———————<br />

(1-z1/z) (1 - z1 z)<br />

The resulting signal will have mirror symmetric boundary conditions as well.<br />

input – the input signal. c0, z1 – parameters in the transfer function. precision – specifies the<br />

precision for calculating initial conditions<br />

of the recursive filter based on mirror-symmetric input.<br />

330 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!