mantidimaging.core.data.geometry module#
- class mantidimaging.core.data.geometry.Geometry(type: GeometryType = GeometryType.PARALLEL3D, num_pixels: list | tuple = (10, 10), pixel_size: list | tuple = (1.0, 1.0), source_position: list | tuple = (0, -1, 0), detector_position: list | tuple = (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).
- get_all_cors() list[ScalarCoR][source]#
- Returns all cors across How many cors will be generated,
this should be equal to the image height (i.e. number of sinograms that will be reconstructed)
- Returns:
List of cors for every slice of the image height
- get_cor_at_slice_index(slice_idx: int) ScalarCoR[source]#
Returns a single scalar cor at the specified index
- Parameters:
slice_idx – The slice index.
- Returns:
ScalarCoR object with cor at the specified index
- 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.