spatialdata.transformations.Translation#

class spatialdata.transformations.Translation(translation, axes)#

Methods table#

compose_with(transformations)

from_ngff(t)

inverse()

to_affine(input_axes, output_axes)

to_affine_matrix(input_axes, output_axes)

to_ngff(input_axes, output_axes[, unit, ...])

to_translation_vector(axes)

validate_axes(axes)

Validate the axes.

Methods#

Translation.compose_with(transformations)#
Return type:

BaseTransformation

classmethod Translation.from_ngff(t)#
Return type:

BaseTransformation

Translation.inverse()#
Return type:

BaseTransformation

Translation.to_affine(input_axes, output_axes)#
Return type:

Affine

Translation.to_affine_matrix(input_axes, output_axes)#
Return type:

ndarray[Any, dtype[float64]]

Translation.to_ngff(input_axes, output_axes, unit=None, output_coordinate_system_name=None)#
Return type:

NgffBaseTransformation

Translation.to_translation_vector(axes)#
Return type:

ndarray[Any, dtype[float64]]

static Translation.validate_axes(axes)#

Validate the axes.

This function is to allow to call validate_axes() from this file in multiple places while avoiding circular imports.

Return type:

None