spatialdata.transformations.Scale#

class spatialdata.transformations.Scale(scale, 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_scale_vector(axes)

rtype:

ndarray[Any, dtype[float64]]

validate_axes(axes)

Validate the axes.

Methods#

Scale.compose_with(transformations)#
Return type:

BaseTransformation

classmethod Scale.from_ngff(t)#
Return type:

BaseTransformation

Scale.inverse()#
Return type:

BaseTransformation

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

Affine

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

ndarray[Any, dtype[float64]]

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

NgffBaseTransformation

Scale.to_scale_vector(axes)#
Return type:

ndarray[Any, dtype[float64]]

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