pytomography.metadata.CT#

Submodules#

Package Contents#

Classes#

CTConeBeamFlatPanelProjMeta

Parent class for all different types of Projection Space Metadata. Implementation and required parameters will differ significantly between different imaging modalities.

CTGen3ProjMeta

Parent class for all different types of Projection Space Metadata. Implementation and required parameters will differ significantly between different imaging modalities.

class pytomography.metadata.CT.CTConeBeamFlatPanelProjMeta(angles, z_locations, detector_radius, beam_radius, shape, dr, COR=None)[source]#

Bases: pytomography.metadata.ProjMeta

Parent class for all different types of Projection Space Metadata. Implementation and required parameters will differ significantly between different imaging modalities.

_get_CORs()[source]#
_get_detector_pixel_s_v(device=None)[source]#
_get_detector_coordinates(idx)[source]#
class pytomography.metadata.CT.CTGen3ProjMeta(source_phis, source_rhos, source_zs, source_phi_offsets, source_rho_offsets, source_z_offsets, detector_centers_col_idx, detector_centers_row_idx, col_det_spacing, row_det_spacing, DSD, shape)[source]#

Bases: pytomography.metadata.ProjMeta

Parent class for all different types of Projection Space Metadata. Implementation and required parameters will differ significantly between different imaging modalities.

Parameters:
  • source_phis (torch.Tensor) –

  • source_rhos (torch.Tensor) –

  • source_zs (torch.Tensor) –

  • source_phi_offsets (torch.Tensor) –

  • source_rho_offsets (torch.Tensor) –

  • source_z_offsets (torch.Tensor) –

  • detector_centers_col_idx (float) –

  • detector_centers_row_idx (float) –

  • col_det_spacing (float) –

  • row_det_spacing (float) –

  • DSD (float) –

  • shape (tuple) –

get_detector_coordinates(idxs)[source]#

Obtain detector coordinates and the angles corresponding to idxs

Parameters:

idxs (torch.Tensor[int]) – Angle indices

Returns:

Detector coordinates (in XYZ) at all angle indices.

Return type:

torch.Tensor