spatialdata.transformations.Translation#

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

Methods table#

compose_with(transformations)

rtype:

BaseTransformation

from_ngff(t)

rtype:

BaseTransformation

inverse()

rtype:

BaseTransformation

to_affine(input_axes, output_axes)

rtype:

Affine

to_affine_matrix(input_axes, output_axes)

rtype:

ndarray[Any, dtype[float64]]

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

rtype:

NgffBaseTransformation

to_translation_vector(axes)

rtype:

ndarray[Any, dtype[float64]]

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