Reference for pyronn/ct_reconstruction/geometry/geometry_specific.py
pyronn.ct_reconstruction.geometry.geometry_specific.SpecificGeometry
Bases: ABC
geo_info_dict: All required information for creating a geometry.
Source code in pyronn/ct_reconstruction/geometry/geometry_specific.py
generate_specific_phantom
Generates a phantom created by the given function and its corresponding sinogram.
The method first creates a phantom based on the volume shape specified in the geometry attribute of the class. It then computes the sinogram by applying a forward projection. The projection is calculated based on the parameters defined in the geometry attribute, including the detector shape, spacing, and the source-detector configuration.
Returns:
Type | Description |
---|---|
Tuple[np.array, np.array]: A tuple containing two numpy arrays. The first array is the generated |
|
3D mask of the phantom, and the second array is the corresponding 3D sinogram obtained through |
|
the cone beam forward projection. |