improc.io package

Submodules

improc.io.data module

improc.io.data.load(file)[source]

load data from file

load data from ‘.pkl’ or ‘.mat’ file

Parameters:file ({string}) – specify which file to load
improc.io.data.save(data, file)[source]

save data to file

save data to ‘.pkl’ or ‘.mat’ file

Parameters:
  • data ({dict}) – data dict to be saved
  • file ({string}) – specify where to save

improc.io.image module

improc.io.image.imreadadv(filepath, verbose=False)[source]

read image data from a file

read image data from a file

Parameters:
  • filepath ({string}) – image file path
  • verbose ({bool}, optional) – show more information (the default is False.)
Returns:

image data array.

Return type:

numpy array

improc.io.image.imsaveadv(filepath, A, verbose=False)[source]

save data to an image file

save data to an image file

Parameters:
  • filepath ({string}) – filepath to be saved
  • A ({numpy array}) – Image data to be saved
Returns:

0: success

Return type:

number

improc.io.image.imwriteadv(filepath, A, verbose=False)[source]

write data to an image file

write data to an image file

Parameters:
  • filepath ({string}) – filepath to be writed
  • A ({numpy array}) – Image data to be writed
Returns:

0: success

Return type:

number

Module contents