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).
- 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.
- property type: GeometryType#
Returns the MI Geometry type.
Wraps CIL AcquisitionGeometry’s internal data based on the types currently supported by Mantid Imaging.
:return (GeometryType) : The MI Geometry enum with a display-friendly value field.