pyfibre.core.base_multi_image_reader module

class pyfibre.core.base_multi_image_reader.BaseMultiImageReader(*args, **kwargs)[source]

Bases: traits.has_traits.ABCHasTraits

File reader that loads a stack of Tiff images, represented by a BaseMultiImage subclass

abstract can_load(filename)[source]

Perform check to see whether file is formatted correctly to be loaded

create_image_stack(filenames)[source]

From a list of file names, return a list of numpy arrays suitable for the loader’s BaseMultiImage type. Load each TIFF image in turn and perform averaging over each stack component if required

abstract get_filenames(file_set)[source]

From a collection of files in a FileSet, yield each file that should be used

abstract get_multi_image_class()[source]

Returns class of IMultiImage that will be loaded.

abstract get_supported_file_sets()[source]

Returns class of IFileSets that will be supported.

abstract load_image(filename)[source]

Load a single image from a file

load_multi_image(file_set)[source]

Image loader for MultiImage classes

exception pyfibre.core.base_multi_image_reader.WrongFileSetError[source]

Bases: Exception

exception pyfibre.core.base_multi_image_reader.WrongFileTypeError[source]

Bases: Exception