pyfibre.core.base_multi_image module

class pyfibre.core.base_multi_image.BaseMultiImage(*args, **kwargs)[source]

Bases: traits.has_traits.ABCHasTraits

Base class representing an image with multiple channels, expected to be more complex than just RGB

append(image)[source]

Appends an image to the image_stack. If image_stack already contains existing images, make sure that the shape on the incoming image matches

classmethod from_array(array)[source]

Create instance from either a 2D or 3D numpy array

image_dict = None

Dictionary containing references to each entry in image_stack

image_stack = None

List of images in stack

name = None

Name of BaseMultiImage

property ndim

Extends numpy API to get ndim of images in stack

path = None

File path for images

abstract preprocess_images()[source]

Implement operations that are used to pre-process the image_stack before analysis

remove(image)[source]

Removes an image with index from the image_stack

property shape

Extends numpy API to get shape ofimages in stack

property size

Extends numpy API to get size of images in stack

to_array()[source]
abstract classmethod verify_stack(image_stack)[source]

Perform verification that image_stack is allowed by subclass of BaseMultiImage