openpiv_cxx.tools.imread

openpiv_cxx.tools.imread(filename, flatten=False)

Read an image

Read an image file into a numpy array using imageio.imread.

Parameters:
  • filename (str) – The absolute path of the image file.

  • flatten (bool) – True if the image is RGB color or False (default) if greyscale.

Returns:

frame – A 2-dimensional numpy array with grey levels.

Return type:

ndarray

Examples

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