openpiv.tools.imread

static tools.imread(filename)

Read an image file into a numpy array using scipy.misc.imread

Parameters :

filename : string

the absolute path of the image file

Returns :

frame : np.ndarray

a numpy array with grey levels

Examples

>>> image = openpiv.tools.imread( 'image.bmp' )
>>> print image.shape 
    (1280, 1024)

Previous topic

openpiv.scaling.uniform

Next topic

openpiv.tools.save

This Page