napari.utils.transforms.Transform#
- class napari.utils.transforms.Transform(func=<function identity>, inverse=None, name=None)[source]#
Bases:
object
Base transform class.
Defaults to the identity transform.
- Parameters:
func (callable, Coords -> Coords) – A function converting an NxD array of coordinates to NxD’.
name (string) – A string name for the transform.
Methods
compose
(transform)Return the composite of this transform and the provided one.
expand_dims
(axes)Return a transform with added axes for non-visible dimensions.
set_slice
(axes)Return a transform subset to the visible dimensions.
Attributes
changed
inverse
Details
- compose(transform: Transform) Transform [source]#
Return the composite of this transform and the provided one.