ConeBeamReconstructionSettings
Settings for cone beam reconstruction.
Import
import ScriptingApi as api
# Access the class
# ConeBeamReconstructionSettings is available via api.ConeBeamReconstructionSettings
Properties
invert_x
Mirror the input projections horizontally (flip along the X axis).
Type: bool
invert_y
Mirror the input projections vertically (flip along the Y axis).
Type: bool
invert_z
Reverse the order of input projections (invert the Z direction). Rarely used.
Type: bool
invert_intensity
Invert the intensity values of the input projections. Use if projections appear as negative images.
Type: bool
source_to_detector_distance
Distance from the X-ray source to the detector plane (in millimeters). This affects the magnification and geometry of the scan.
Type: float
source_to_isocenter_distance
Distance from the X-ray source to the object isocenter (in millimeters). This is the radius of the scan trajectory.
Type: float
detector_pixel_size_x
Physical size of a detector pixel along the X (horizontal) axis (in millimeters).
Type: float
detector_pixel_size_y
Physical size of a detector pixel along the Y (vertical) axis (in millimeters).
Type: float
xray_scan_start_angle
The starting angle of the X-ray scan (in degrees). Defines the initial gantry position.
Type: float
xray_scan_total_angle
Total angular range covered by the scan (in degrees). 360° for a full scan, less for a short scan.
Type: float
is_clockwise
Scan rotation direction.
Type: bool
projection_offset_x
Horizontal offset of the detector center relative to the rotation axis (in millimeters). Use to correct for detector misalignment.
Type: float
projection_offset_y
Vertical offset of the detector center relative to the rotation axis (in millimeters). Use to correct for detector misalignment.
Type: float
source_offset_x
Horizontal offset of the X-ray source relative to the rotation axis (in millimeters).
Type: float
source_offset_y
Vertical offset of the X-ray source relative to the rotation axis (in millimeters).
Type: float
out_of_plane_angle
Rotation of the detector around the X axis (out-of-plane tilt, in degrees). Use to correct for detector tilt.
Type: float
in_plane_angle
Rotation of the detector around the Z axis (in-plane tilt, in degrees). Use to correct for detector tilt.
Type: float
enable_displaced_detector
Enable special handling for off-centered (displaced) detector panels. Useful for short scans or non-standard geometries.
Type: bool
angular_gap_threshold
Angular gap threshold (in degrees) for detecting short scans with displaced detectors. Above this value, short scan weighting is applied.
Type: float
projection_skip
Skip projections to reduce computation time. 0 uses all, 1 uses every 2nd, 2 uses every 3rd, etc. Note: Increasing this reduces computation and data size but also lowers angular sampling and may degrade reconstruction quality.
Type: int
projection_smoothing_level
Projection smoothing level. Low/Medium provide increasing noise reduction; higher settings reduce fine details. Choose Low or Medium for a balanced result. Use api.CBR_ProjectionSmoothingLevel.Low, api.CBR_ProjectionSmoothingLevel..Medium, api.CBR_ProjectionSmoothingLevel.High
Type: CBR_ProjectionSmoothingLevel
speckle_removal_mode
Speckle removal mode. Use to remove isolated hot/dead pixels while preserving overall sharpness. Use api.CBR_SpeckleRemovalMode.MultiPixel, api.CBR_SpeckleRemovalMode.SinglePixel, api.CBR_SpeckleRemovalMode.Off
Type: CBR_SpeckleRemovalMode
beam_hardening_preset
Beam hardening correction preset. Presets increase correction strength from mild to strong. Use api.CBR_BeamHardeningPreset.Off, api.CBR_BeamHardeningPreset.Low, api.CBR_BeamHardeningPreset.Medium, api.CBR_BeamHardeningPreset.High
Type: CBR_BeamHardeningPreset
enable_intensity_offset_correction
Apply intensity offset/bias correction. Subtracts a constant percentage from projection intensities. Percentage of the maximum detector intensity to subtract (e.g., 0.5–5%). Typical starting values: 0.5–2.0 (%). Higher values may produce negative intensities and cause streak artifacts; increase gradually and inspect results.
Type: bool
intensity_offset_bias
Intensity offset bias value to subtract from projections (percentage of maximum intensity). Range: 0.0–100.0 (%). Typical: 0.5–5.0 (%). Use small values to avoid artifacts.
Type: float