hyperspy.io_plugins.image module

hyperspy.io_plugins.image.default_extension = 0
hyperspy.io_plugins.image.description = 'Import/Export standard image formats using PIL or freeimage'
hyperspy.io_plugins.image.file_extensions = ['png', 'bmp', 'dib', 'gif', 'jpeg', 'jpe', 'jpg', 'msp', 'pcx', 'ppm', 'pbm', 'pgm', 'xbm', 'spi']
hyperspy.io_plugins.image.file_reader(filename, **kwds)

Read data from any format supported by PIL.

Parameters

filename (str) –

hyperspy.io_plugins.image.file_writer(filename, signal, file_format='png', **kwds)

Writes data to any format supported by PIL

Parameters
  • filename (str) –

  • signal (a Signal instance) –

  • file_format (str) – The fileformat defined by its extension that is any one supported by PIL.

hyperspy.io_plugins.image.format_name = 'Signal2D'
hyperspy.io_plugins.image.full_support = False
hyperspy.io_plugins.image.writes = [(2, 0)]