spatialdata.transformations.Affine#

class spatialdata.transformations.Affine(matrix, input_axes, output_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

validate_axes(axes)

Validate the axes.

Methods#

Affine.compose_with(transformations)#
Return type:

BaseTransformation

classmethod Affine.from_ngff(t)#
Return type:

BaseTransformation

Affine.inverse()#
Return type:

BaseTransformation

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

Affine

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

ndarray[Any, dtype[float64]]

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

NgffBaseTransformation

static Affine.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