mantidimaging.core.data.geometry module#

class mantidimaging.core.data.geometry.Geometry(num_pixels: list | tuple = (10, 10), pixel_size: list | tuple = (1.0, 1.0), angle_unit: str = 'radian', units: str = 'default', *args, **kwargs)[source]#

Bases: AcquisitionGeometry

property cor: ScalarCoR#

Converts the internal CIL-convention COR (defined at the midpoint of the image) to MI-convention.

:return (ScalarCoR) : the MI-convention Centre-of-Rotation (defined at the top of the image).

is_parallel: bool = False#
set_geometry_from_cor_tilt(cor: ScalarCoR, tilt: float) None[source]#

Set’s the geometry’s CIL-convention Offset and Angle from the MI-convention Centre-of-Rotation and Tilt.

Parameters:
  • cor (ScalarCoR) – A ScalarCoR object defining the MI-convention centre of rotation as a float value.

  • tilt (float) – A float value defining the tilt in degrees.

property tilt: float#