Transformation#

Abstract base class to handle transformation of coordinates and data when cropping data or mapping between raw data and reference atlases.

class Transformation(transformations=None, inverse=False)[source]#

Bases: TransformationBase

classmethod from_dict(dictionary: dict)[source]#
get_transformations(inverse=False, start_at=None, stop_at=None) list[source]#
to_dict() dict[source]#
transform_data(source, inverse=False, start_at=None, stop_at=None, **kwargs)[source]#
transform_points(source, inverse=False, start_at=None, stop_at=None, **kwargs)[source]#
transform_shape(shape, inverse=False, start_at=None, stop_at=None, **kwargs)[source]#
ttype = 'Transformation'#
class TransformationBase(inverse=False)[source]#

Bases: object

Base class for transformations of data, points and shapes.

classmethod from_dict(dictionary: dict)[source]#
get_inverse(inverse=False)[source]#
classmethod read(filename)[source]#
to_dict() dict[source]#
transform_data(source, inverse=False, **kwargs)[source]#
transform_points(source, inverse=False, **kwargs)[source]#
transform_shape(shape, inverse=False, **kwargs)[source]#
write(filename)[source]#
ttype = None#
transformation_from_dict(dictionary)[source]#