blissoda.tomo.utils.compute_axes#

blissoda.tomo.utils.compute_axes(image)[source]#

Compute physical axes from sample config; fallback to pixel indices.

Converts pixel_size (um) to axis units defined by cfg.sample_x_axis.unit and cfg.sample_y_axis.unit.

Return type:

Tuple[ndarray, ndarray]

Parameters#

imagenp.ndarray

The image array (for shape information)

Returns#

tuple of np.ndarray

x_axis and y_axis arrays in physical units

param image:

type image:

ndarray