spatialdata.transformations.BaseTransformation#

class spatialdata.transformations.BaseTransformation#

Base class for all transformations.

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#

BaseTransformation.compose_with(transformations)#
Return type:

BaseTransformation

classmethod BaseTransformation.from_ngff(t)#
Return type:

BaseTransformation

abstract BaseTransformation.inverse()#
Return type:

BaseTransformation

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

Affine

abstract BaseTransformation.to_affine_matrix(input_axes, output_axes)#
Return type:

ndarray[Any, dtype[float64]]

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

NgffBaseTransformation

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