pytomography.metadata.CT.ct_gen3_metadata#

Module Contents#

Classes#

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.ct_gen3_metadata.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