Menu

Sample scripts

Willem Jan Palenstijn

The ASTRA Tomography Toolbox ships with a number of sample scripts in the samples directory.

They cover the following topics:

  • s001_sinogram_par2d
    Creating a sinogram from a 2D phantom

  • s002_data2d
    Manipulating 2D data objects

  • s003_gpu_reconstruction
    Performing a 2D GPU reconstruction

  • s004_cpu_reconstruction
    Performing a 2D CPU reconstruction

  • s005_3d_geometry
    Constructing 3D geometries

  • s006_3d_data
    Manipulating 3D data objects

  • s007_3d_reconstruction
    Creating projection data from a 3D phantom and performing a 3D GPU reconstruction

  • s008_gpu_selection
    Selecting a GPU to use in multi-GPU systems

  • s009_projection_matrix
    Obtaining an explicit projection matrix from a 2D geometry

  • s010_supersampling
    Enabling supersampling for cases where volume and detector pixels have very different sizes

  • s011_object_info
    Obtaining information on allocated ASTRA objects and memory

  • s012_masks
    Performing a reconstruction in a non-rectangular region

  • s013_constraints
    Performing a reconstruction with constraints on the grey values

  • s014_FBP
    Performing a 2D GPU FBP reconstruction

  • s015_fp_bp
    Using the ASTRA FP and BP as a function handle for MATLAB's lsqr function

  • s016_plots
    Getting intermediate results from a SIRT reconstruction


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.