15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

imread(name, flatten=0)<br />

Read an image file from a filename.<br />

Optional arguments:<br />

•flatten (0): if true, the image is flattened by calling convert(‘F’) on<br />

the resulting image object. This flattens the color layers into a single grayscale layer.<br />

imrotate(arr, angle, interp=’bilinear’)<br />

Rotate an image counter-clockwise by angle degrees.<br />

Interpolation methods can be:<br />

‘nearest’ : for nearest neighbor ‘bilinear’ : for bilinear ‘cubic’ or ‘bicubic’ : for bicubic<br />

imresize(arr, size)<br />

Resize an image.<br />

If size is an integer it is a percentage of current size. If size is a float it is a fraction of current size. If size is a<br />

tuple it is the size of the output image.<br />

imshow(arr)<br />

Simple showing of an image through an external viewer.<br />

imfilter(arr, ftype)<br />

Simple filtering of an image.<br />

type can be:<br />

‘blur’, ‘contour’, ‘detail’, ‘edge_enhance’, ‘edge_enhance_more’, ‘emboss’, ‘find_edges’, ‘smooth’,<br />

‘smooth_more’, ‘sharpen’<br />

factorial(n, exact=0)<br />

n! = special.gamma(n+1)<br />

If exact==0, then floating point precision is used, otherwise exact long integer is computed.<br />

Notes:<br />

• Array argument accepted only for exact=0 case.<br />

• If n

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

Saved successfully!

Ooh no, something went wrong!