src.imagedata.formats package

Subpackages

Submodules

src.imagedata.formats.abstractplugin module

src.imagedata.formats.dicomplugin module

src.imagedata.formats.itkplugin module

src.imagedata.formats.matplugin module

src.imagedata.formats.niftiplugin module

Module contents

This module provides plugins for various imaging formats.

Standard plugins provides support for DICOM and Nifti image file formats.

exception src.imagedata.formats.CannotSort[source]

Bases: Exception

exception src.imagedata.formats.EmptyImageError[source]

Bases: Exception

exception src.imagedata.formats.FormatPluginNotFound[source]

Bases: Exception

exception src.imagedata.formats.NotImageError[source]

Bases: Exception

exception src.imagedata.formats.NotTimeOrder[source]

Bases: Exception

exception src.imagedata.formats.SOPInstanceUIDNotFound[source]

Bases: Exception

exception src.imagedata.formats.UnknownInputError[source]

Bases: Exception

exception src.imagedata.formats.UnknownTag[source]

Bases: Exception

exception src.imagedata.formats.WriteNotImplemented[source]

Bases: Exception

src.imagedata.formats.find_plugin(ftype)[source]

Return plugin for given format type.

src.imagedata.formats.get_plugins_list()[source]
src.imagedata.formats.get_size(obj, seen=None)[source]

Recursively finds size of objects

src.imagedata.formats.get_uid(k=[0]) UID[source]

Generator function which will return a unique UID.

src.imagedata.formats.shape_to_str(shape)[source]

Convert numpy image shape to printable string

Parameters:

shape

Returns:

printable shape (str)

Raises:

ValueError – when shape cannot be converted to printable string

src.imagedata.formats.sort_on_to_str(sort_on)[source]
src.imagedata.formats.str_to_dtype(s)[source]
src.imagedata.formats.str_to_sort_on(s)[source]