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 />

>>> plt.figure()<br />

>>> plt.imshow(image)<br />

>>> plt.gray()<br />

>>> plt.title(’Original image’)<br />

>>> plt.show()<br />

>>> plt.figure()<br />

>>> plt.imshow(deriv)<br />

>>> plt.gray()<br />

>>> plt.title(’Output of spline edge filter’)<br />

>>> plt.show()<br />

1.7.2 Filtering<br />

0<br />

100<br />

200<br />

300<br />

400<br />

Original image<br />

500<br />

0 100 200 300 400 500<br />

0<br />

100<br />

200<br />

300<br />

400<br />

Output of spline edge filter<br />

500<br />

0 100 200 300 400 500<br />

Filtering is a generic name for any system that modifies an input signal in some way. In SciPy a signal can be thought<br />

of as a Numpy array. There are different kinds of filters for different kinds of operations. There are two broad kinds<br />

34 Chapter 1. SciPy Tutorial

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

Saved successfully!

Ooh no, something went wrong!