Release notes#

Every release of TIGRE, newest first. Downloads (Python wheels and the source) are on the GitHub releases page.

Unreleased#

Changed#

  • MATLAB dual energy (DeDecompose, MakeVMproj, demo d23_DualEnergy) is now a plugin in MATLAB/Plugins/DualEnergy, always on the path after InitTIGRE (nothing to compile).

  • MATLAB proton CT is now a plugin in MATLAB/Plugins/pCT (CUDA code in Common/CUDA/plugins/pCT). Compile it with Compile pCT (or Compile all for TIGRE and every plugin); plain Compile still builds core TIGRE only. The intercept vector lengths are set with Compile('pCT','-pct_pixel',0.5) or -pct_intercepts, instead of questions that rewrote a source file. pRad_demo and pCTdata moved with it and work from any folder. CompilePCT is removed: use Compile pCT.

  • MATLAB: ASD_POCS, OS_ASD_POCS, AwASD_POCS, OS_AwASD_POCS, B_ASD_POCS_beta, PICCS, PCSD and MLEM return their data error as the second output, before qualMeas, like every other iterative algorithm ([img,resL2,qualMeas] = ...). Code that asked for [img,qualMeas] now gets the data error there and a warning that the quality measures need a third output. For the POCS family it is the data error ||Ax-b|| the algorithm already computes after its data step, so it costs nothing. PCSD already returned resL2 second, mislabelled as qualMeasOut, and could not return quality measures at all (#408).

  • MLEM and OSEM (MATLAB) and tigre.algorithms.mlem with computel2=True (Python) report the Kullback-Leibler divergence of Ax from the data, the Poisson data error they decrease, instead of the L2 residual norm. MATLAB OSEM’s early stop (when the data error grows) now uses it too (#408).

  • MATLAB ASD-POCS family (ASD_POCS, OS_ASD_POCS, AwASD_POCS, OS_AwASD_POCS, PCSD, OS_PCSD, AwPCSD, OS_AwPCSD, PICCS, B_ASD_POCS_beta): the default maxL2err is now 20% of the data error of FDK, ||A x_FDK - b||, as in Python, instead of 20% of the L2 norm of the FDK image, which compared a data error with an image norm. Results with the default change; pass maxL2err to choose it yourself (#283).

  • MATLAB VarianDataLoader with bh: no longer asks interactively whether to continue, and computes the path length of each ray through the bowtie directly instead of building a ~6.5 GB voxelised bowtie and forward projecting it.

  • MATLAB: checkGeo casts geometry fields given as single, integer or logical arrays to double, instead of failing with “is not double type” (#91).

  • Python: check_geo accepts geometry fields as lists, tuples or NumPy numbers of any numeric type (e.g. geo.DSO = np.int64(1000) failed with “Data type not understood”), and rejects nVoxel / nDetector values that are not whole numbers instead of truncating them (#91).

  • Python: the compiled CUDA modules (_Ax, _Atb, _minTV, _AwminTV, _minPICCS, _tv_proximal, _gpuUtils, _RandomNumberGenerator) are now inside the package, in tigre.utilities.cuda_interface, instead of top-level modules in site-packages. TIGRE’s API (tigre.Ax, tigre.algorithms, …) does not change; code that imported them directly, e.g. from _minTV import minTV, now needs from tigre.utilities.cuda_interface._minTV import minTV.

Added#

  • Python dual energy: tigre.plugins.dual_energy.DeDecompose and MakeVMproj, the same functions and options as in MATLAB, with demo d23_DualEnergy.py, and a user-guide page for the plugin (#522). Always installed (pure Python); the calibration and NIST tables stay in Common/data and are copied into the package when it is built. Its paper is in the Python TIGRE.bib too (TIGRE-DE; the MATLAB entry was missing its closing brace).

  • Docs: a Plugins section in the user guide (what plugins are, how to build them, how to add one) and the proton CT plugin in the Python and MATLAB API reference. Its papers are in TIGRE.bib (citeme('pCTCubicSpline') in MATLAB).

  • Python proton CT: tigre.plugins.pct.pCTCubicSpline, the optimised proton radiographies MATLAB already had. Not built by default: install with TIGRE_PLUGINS=pct pip install . (or TIGRE_PLUGINS=all); intercept vector lengths with TIGRE_PCT_PIXEL / TIGRE_PCT_INTERCEPTS. Demo: Python/demos/pRad_demo.py.

  • MATLAB pCTCubicSpline, the same function as in Python: like pCTCubicSpline_mex, but takes any numeric type and N-by-2 positions and directions.

  • irn_piccs_cgls (Python) / IRN_PICCS_CGLS (MATLAB): PICCS solved by iteratively reweighted norms and CGLS, from Hastings et al., Phys. Med. Biol. 71 (2026) 105019. The prior term can be TV(x - prior) (default), an L2 norm (PIPLE) or an L1 norm. It and irn_tv_cgls/IRN_TV_CGLS gain outer_restart/'outerRestart' (start each reweighting from the initial image, cold, or the previous one, warm; the defaults stay as they were, cold in MATLAB and warm in Python) and weights/'weights' (TV weights for the first reweighting). MATLAB IRN_TV_CGLS is now IRN_PICCS_CGLS without a prior, so there is one implementation (#616).

  • Krylov methods (CGLS, LSQR, LSMR, hybrid LSQR, hybrid fLSQR-TV, IRN-TV-CGLS, AB-/BA-GMRES), Python and MATLAB: check_residual=False (Python) / 'checkResidual',false (MATLAB) skips the true residual ||Ax-b|| computed every iteration, one extra forward projection, and with it the restart/stop on loss of orthogonality. On by default, as before; the residual is still computed when it is asked for. MATLAB AB-/BA-GMRES now check it by default too, as Python did; they used to only when resL2 was asked for (#445).

  • Python: groundTruth option for the iterative algorithms, as in MATLAB: the quality measures compare each iterate with a known image, and the error norm ||x - groundTruth|| is recorded every iteration (#410).

  • spotDriftGeo (Python and MATLAB): geometry for a source focal spot that drifts during the scan, described with the existing offDetector, offOrigin, DSO and DSD (#374).

  • computeImageGeo (Python and MATLAB): image size and voxel size from the detector, covering the field of view (also with an offset detector). changeResolution: a coarser geometry with the same image size, and optionally the projections binned to match (#359, #381).

  • MATLAB: Ax and Atb take single gpuArray inputs (Parallel Computing Toolbox) and return a gpuArray on the same GPU, with no copies through host memory, as Python does for PyTorch and CuPy arrays. Compile builds it when it finds the toolbox (#300).

  • Python: tigre.algorithms.b_asd_pocs_beta, ASD-POCS with Bregman iterations on the data, a port of MATLAB’s B_ASD_POCS_beta (#283).

  • Python: tigre.utilities.io.DicomDataLoader, a port of MATLAB’s dicomDataLoader for DICOM C-arm CBCT (tested on Philips Allura). Needs pydicom (#201).

  • tiltedAxisGeo (Python and MATLAB): describes a rotation axis tilted within the detector plane from two centre-of-rotation values, at the top and at the bottom, using the existing COR, rotDetector and offOrigin fields (#98).

  • tigre.__version__ and tigre.show_versions() (Python), and tigreVersion (MATLAB), which print the versions of TIGRE, Python or MATLAB, the OS and the GPUs, for bug reports.

  • Python wheels for Windows (x86-64) on the GitHub Release, next to the Linux ones. They need only the NVIDIA driver, not the CUDA toolkit.

  • Python: beam-hardening correction for Varian CBCT, VarianDataLoader(..., bh=True), ported from MATLAB’s bh option (off by default, as in MATLAB) (#201).

Fixed#

  • MATLAB dual energy: MakeVMproj used 10 keV instead of 100 keV for one point of the NIST attenuation table, so virtual monoenergetic images at energies between the table’s points were off by up to about 7% (at tabulated energies, such as 60 keV, they were right). DeDecompose ignored the kVl/kVh options (always 80/140 kV), 'linear' interpolation went the wrong way for half the angles, and 'skip' compared its tolerance with a fraction of the angular step instead of an angle (it is now in radians, default half the low-kV angular step). Unknown options, mismatched projection sizes and unsupported materials now give clear errors, and the decomposition is vectorised (much faster).

  • Proton CT (parallel beam): each proton’s path is now split between the pixels it really crosses. The crossings were found with int() of position/pixel size, which undercounted them (a path from 0.9 to 2.1 pixels was given one crossing, not two), rounded negative positions the wrong way, and assumed an even number of pixels. In a CPU check of 4,000 random paths the old code got the number of crossings wrong for about 90% of them, the new code for one near-tangent case. Each piece of a path is also binned into the pixel its middle is in: before, the point used was crossing - 1e-8, which single precision rounds to the crossing itself, so pieces often landed in the next pixel. Almost straight paths, whose cubic term is close to zero, no longer get wrong crossings. On the demo data the radiography now agrees with an independent CPU calculation to 0.002 mm (before: 0.87 mm). Radiographies change slightly. Cone-beam mode (geo.mode = 'cone') had the same problems, and its first piece of each path was counted twice; it is fixed the same way and agrees with its CPU calculation to 0.007 mm on the demo data.

  • Proton CT: protons that leave the radiography just below its first pixel are no longer counted in the first pixel (pixel indices were truncated towards zero instead of rounded down). A CUDA error during pCTCubicSpline no longer leaves its GPU memory allocated, and cone-beam radiographies no longer leak a little GPU memory on every call.

  • Python: messages from TIGRE’s C++/CUDA code (for example CUDA errors) no longer start with Common/CUDA/TIGRE_common.cpp (9):, which gave the location of TIGRE’s print function, not of the message.

  • MATLAB proton CT (pCTCubicSpline_mex): the last protons of every data set (up to 255, the remainder of a division by 256) were ignored, and fewer than 256 protons failed with “Kernel fail”. The number of inputs was never checked, and non-single inputs gave wrong results silently; both now give clear errors, as do missing geo fields and a geo.mode other than 'parallel' or 'cone'.

  • MATLAB: the first line of help for 24 algorithms now says what each one does. Several described a different algorithm: SART, SIRT and SART_TV said OS-SART, OS_PCSD said adaptive-weighted, and hybrid_fLSQR_TV showed the help of LSQR.

  • TV denoising (im3ddenoise / im3DDenoise, and through it ossart_tv/SART_TV and fista/FISTA): the CUDA solver’s step sizes made the primal step negative for the first 15 iterations, so the denoiser amplified differences and diverged when called repeatedly, as those algorithms do. The step sizes (Knoll et al. 2010, Zhu & Chan’s scheme for 3D) were designed for hundreds of iterations, not the 20-50 TIGRE uses; with the 3D factor applied to the whole term they stay positive, and the denoiser is now a proper TV proximal step: non-expansive and within the range of its input. Results of TV denoising change. Python’s im3ddenoise no longer gives NaN for a constant image, as MATLAB (#939).

  • IRN_TV_CGLS (MATLAB and Python): the loss-of-orthogonality check watched ||Ax-b||, which may rise legitimately when the regularisation is strong, so it fired falsely and cut the iterations short. It now watches the residual of the whole regularised system, which CGLS never lets grow, with a tolerance for single-precision rounding. In MATLAB, restarting after such a stop also went back to the initial image (zeros by default) with cold restarts, and could return it; it now restarts CGLS from the current image, then reweights. In the first reweighting step, a stop errored (the output was never set) (#616).

  • MATLAB: DeDecompose, MakeVMproj and HUMapping found their data files only when MATLAB’s current folder was their own; the path is now relative to the file. HUMapping always used the demo calibration (a stray space in the file name). d23_DualEnergy loaded the low-kV scan from an undefined variable. InitTIGRE warned about the pCTMexFiles folder before CompilePCT was run, and CompilePCT needed MATLAB R2020b (readlines) (#546).

  • MATLAB on Linux: Compile failed on the Varian .xim reader (mexReadXim) with “requires … -std=c++11” on gcc 9 and later. The mex configuration passed -ansi (C++98) to the host compiler, which overrode -std=c++14 (#470).

  • Python irn_tv_cgls: computel2=True crashed when returning the errors. The residual and the quality measures are now both recorded per inner (CGLS) step, niter * niter_outer columns, as MATLAB records them per iteration (#445).

  • hybrid_fLSQR_TV/hybrid_flsqr_tv: MATLAB and Python now behave the same (#417). MATLAB: the stop when the residual grows never fired (it tested an array that was never filled), asking for QualMeas failed on the first iteration, and the discrepancy principle no longer errors when it has no root. Python: Quameasopts and groundTruth were ignored, and the small projected matrices are now double precision, as in MATLAB.

  • MATLAB: asking for more than one quality measure, or for one together with groundTruth, errored in every iterative algorithm (Operands to the logical AND (&&) ... must be convertible to logical scalar values) (#417).

  • MATLAB B_ASD_POCS_beta: the Bregman step added back the residual with respect to the already-updated projections instead of the measured ones (Xue et al. 2010, Algorithm 2), so the data it fitted drifted away from the measurements (#283).

  • MATLAB dicomDataLoader: no longer errors on files with a PositionerType field (strcmi typo); reads ImagerPixelSpacing in (u, v) order, which matters for non-square pixels; sets offDetector when it crops the projections to an off-centre shutter (#201).

  • Python: the wheels no longer install the tests and demos folders as top-level packages (import tests could pick up TIGRE’s), and the head phantom is installed inside the package (tigre/data/head.mat) instead of <environment>/data/head.mat. tigre.utilities.sample_loader finds both. The sdist still has the tests and demos.

  • Python: the iterative algorithms no longer change the geo passed to them. They expanded its fields to one value per angle, so reusing the same geo with a different number of angles failed with “offOrigin with shape (40, 3) not compatible”. The PyTorch operators A and At no longer set geo.angles on it either. (Ax, Atb, FDK and FBP already worked on a copy.)

  • Python: NikonDataLoader reads .ang angle files with tab-separated lines (such as the SophiaBeads datasets); it failed with “must be real number, not str”.

  • MATLAB: help FBP and help OSEM now describe those functions (FBP had no help, OSEM showed the help of OS_SART), and the first lines of help OS_ASD_POCS and help FDK are corrected.

  • MATLAB: FBP’s second output, errorL2, compared arrays in different layouts: it gave a wrong value with a square detector and a size error otherwise. It is now the norm of proj - Ax(img).

Deprecated#

  • MATLAB: the 'lambda' and 'lambda_red' options of OSEM. They never changed the result, as the OSEM update has no step size. Passing them now gives a TIGRE:deprecated warning; they will be removed in TIGRE 4.

3.3.1 (2026-11-23)#

Changed#

  • Faster projection operators; results are bit-identical to 3.3.0 except where noted. The technical note docs/technical-notes/speed-3.3.1/ measures them against ASTRA 2.5 on one and several GPUs.

    • Backprojection (Atb): the projections are read through layered 2D textures, a bilinear fetch instead of a trilinear one at the same value: 1.4–1.6× faster in 3D, 5–8× in fan beam (#912). Cone beam: no wait for the GPU between the kernels of a chunk (#911). Parallel beam: the per-projection set-up is computed on the host; results change by ~2e-6 (#912).

    • Siddon Ax: several steps of the ray walk per pass, without branches, so that several texture reads are in flight; 1, 2 or 4 steps, chosen from the ray spacing and the image size (#913, #916). The constants of the next launch are computed while the kernels run (#913). 3D: 1.1–2.2× faster; fan beam: 5–10×.

    • The fixed cost of a call: launch shapes for thin problems such as fan beam and images with few slices (#904); the geometry copied from Python through typed memoryviews, buffers reused, no needless waits or page-locked allocations (#907). A fan-beam Ax of a 256² image, 360 angles: 7.9 ms → 1.1 ms.

    • Page-locking the caller’s arrays: one rule for every operator, only when the image is split or more than two GPUs are used (#905, #917).

    • FDK: thin detectors filter several projections per FFT call, and the cosine weights are applied while copying into the FFT buffer (#914); fan-beam results can change by ~3e-7 on some CPUs. tigre.utilities.filtering.filtering takes optional weights= and out=.

    • SIRT, SART, OS-SART, CGLS: vector updates in place, without full-size temporaries (#915).

  • Siddon technical note (docs/technical-notes/siddon/): revised for 3.3.1 (steps per pass, comparison with ASTRA).

Fixed#

  • Atb crashed at 1024³ with 32-bit sizes; page-locking that fails falls back to pageable memory with a warning (#903).

  • Cone-beam backprojection on 4+ GPUs crashed (and broke the CUDA context) when a GPU got no slices (#906).

3.3.0 (2026-11-21)#

Added#

  • TIGRE_CUDA_ARCH (Python build and MATLAB Compile): compile only for the given GPU architectures (e.g. 89, 75,89, or native), several times faster, for development and testing. Default unchanged: every architecture nvcc supports.

  • Python and MATLAB builds: the GPU backend (cuda, hip, sycl or metal) is chosen with the TIGRE_BACKEND environment variable, or in MATLAB with Compile -backend <name>. When neither is given, the build uses the first backend whose compiler is installed, CUDA first, and prints which one it chose. Only cuda can be built so far; the others stop with a message pointing to the work that adds them (#747, #885, #876).

  • Python: tigre.Ax and tigre.Atb take PyTorch CUDA tensors and CuPy arrays, and return the same kind of array on the same GPU, without copying through host memory. This uses the array’s GPU only; if gpuids names other GPUs, the data goes through the host as before.

  • PyTorch bindings: CUDA tensors stay on the GPU (see above). If TIGRE runs out of GPU memory, the bindings empty PyTorch’s memory cache and try once more.

  • Python demo d25_Pytorch.py: a section on passing PyTorch GPU tensors to tigre.Ax/tigre.Atb directly, with a timing against the round trip through the host; the demo now runs on GPU 0 and downloads MNIST to ./data/mnist (it used GPU 3 and a path on one machine).

  • Parallel beam: Ax (Siddon and interpolated) and Atb use all the GPUs in gpuids, as cone beam does: Ax shares the angles between the GPUs, Atb the image slices. Before, they ran on the first GPU only. Like cone beam, they now also work when the image does not fit on the GPU: they split it in pieces along z (before, they failed with a CUDA error) (#286, #295).

Changed#

  • Backprojection (Atb, cone beam) is faster: the kernels step each voxel’s position up its column instead of rebuilding it from the indices, the per-projection set-up is precomputed on the host, and matched computes its weight from numbers the kernel already has. Kernel time, RTX 4070: matched 0.73 of before, FDK weights 0.91; Quadro RTX 6000, measured before the host precomputation: 0.65 and 0.86. Results change by float rounding (~5e-5 of the maximum), and matched as described under Fixed.

  • Ax and Atb with NumPy arrays no longer check np.isreal on the input, which the float32 check already implies: it allocated two arrays the size of the input on every call (~0.1 s per call at 512³).

  • minTV/AwminTV (the TV step of ASD_POCS, OS_ASD_POCS, AwASD_POCS, …): the first and last z-slice of the image now use the same boundary as x and y (no neighbour beyond the edge). Before, the slices beyond the image’s ends were read as voxels of value 0, so even a constant image was changed at its first and last slice. Results change there, and a little further in as the iterations go on (as #863 did for tvdenoise). minPICCS already treated z like x and y.

  • minPICCS (PICCS) runs on the GPU code it now shares with minTV: it uses all the GPUs in gpuids (before, whichever GPU was current), works on images larger than the GPU memory, and sums the gradient norm in double. PICCS.cu keeps only the PICCS maths (the step direction); the multi-GPU and splitting code is tv_gradient_descent (tv_gradient_descent.hpp).

  • AwminTV runs on the same shared code (GD_AwTV.cu keeps only the adaptive-weighted TV step direction): one copy of the multi-GPU and splitting code instead of two. Results are unchanged. Its error and warning identifiers are now minTV’s (GD_TV:...).

  • CTnoise.add (Python) and addCTnoise (MATLAB) add a new noise realisation on every call. Before, the GPU random number generator was always seeded with 1234, so every call added exactly the same noise. The new seed is drawn from NumPy’s global random state (Python) or MATLAB’s random stream, so np.random.seed(...) / rng(...) make a script reproducible; seed= (Python) or 'Seed' (MATLAB) fixes it.

  • Python tests: rare edge cases and stress tests (little free GPU memory, thousands of repeated calls, images split between pieces) are marked extended and not run by a plain pytest (on an RTX 4070 the suite goes from ~6 to ~2 minutes). Run them with pytest -m extended; see contributing.md.

  • tvdenoise/im3DDenoise (and so FISTA, SART-TV and the other TV algorithms that use it): the first and last z-slice of the image now use the same boundary as x and y. Before, a mirrored extra slice was added beyond each end and updated with the rest, so results at the first and last slice change (by up to ~10% of the maximum in strong denoising; under 1% one slice in; unchanged further in). This also makes split, unsplit and multi-GPU results identical (#863).

  • minTV/AwminTV (used by ASD_POCS, OS_ASD_POCS, AwASD_POCS, …): each GPU’s part of the gradient norm is now summed and returned in double precision, and the parts are added in double, so they give the same result on 2 or more GPUs as on 1 (before, up to ~5e-4 of the maximum apart in one call). Single-GPU results change by rounding; the POCS solvers amplify such changes (up to ~5e-3 of the maximum after 10 OS_AwASD_POCS iterations) (#856; approach by Jeff Daily).

  • Python: a CUDA error now raises RuntimeError (with the CUDA message) instead of ending the whole Python process with exit(1). Ax and Atb release the GPU memory, streams, textures and page-locked memory the failed call held, so TIGRE can be used again in the same process. In Python, TIGRE no longer calls cudaDeviceReset() after an error, which would destroy every other GPU allocation in the process (e.g. PyTorch’s). MATLAB behaviour is unchanged (#853).

  • “One (or more) of your GPUs is being heavily used by another program” (less than half of the GPU memory free) is now a warning instead of an error, in Python and MATLAB. In Python, TIGRE’s warnings are now Python RuntimeWarnings, shown once, instead of text printed on every call.

  • PyTorch bindings: At and the gradient of A now use the matched backprojector, the closest to the transpose of Ax; before, they used FDK weights, so gradients through TIGRE were further from the true ones. Pass backprojection_type="FDK" to create_pytorch_operator (or A/At) to get the old behaviour.

  • Wheels are built for Python 3.11 to 3.14 (3.14 was missing from 3.2.0), on manylinux_2_28: they need glibc 2.28 or newer (e.g. RHEL/AlmaLinux 8, Ubuntu 18.10+); older Linux distributions should build from source.

Fixed#

  • Atb with matched weights used the wrong weight for rotated detectors (rotDetector) and for rotation axes that are not z (3-angle angles): it rebuilt the detector point as if the detector were not rotated and the source at z=0, and half a pixel off. The weight was off by 1.5-1.8% for a 2-degree roll or pitch, ~6.5% for 5 degrees on all three or a 10-degree axis tilt, and 2e-4 for an unrotated detector. It is now exact for any geometry, and matched is as close to the adjoint of Ax for rotated detectors as for unrotated ones. matched results change: ~1e-4 for unrotated detectors, up to several % for rotated ones.

  • minPICCS returned NaN when the gradient was zero (e.g. a constant image, or one PICCS had already flattened): it divided by the gradient norm without the small constant minTV adds. It now uses minTV’s normalisation.

  • MATLAB minPICCS with 5 inputs (no gpuids) left alpha, the iterations and the ratio unset, so it did nothing or something arbitrary; the prior’s size and type were not checked (a double prior from PICCS was read as garbage). Now all input forms are read, the prior must match the image, and minimizeTV_prior passes singles.

  • AwminTV (and minTV, through the shared code) on 3 or more GPUs, or split for memory, when the last piece was much shorter than the others: the gradient kernel’s grid was sized from the last piece, so the other pieces could miss their last slices.

  • Cone-beam Ax/Atb with a host array that is already page-locked (e.g. the NumPy view of a pinned PyTorch tensor) failed with “Error pinning memory”, and unregistered memory that was not theirs. So did parallel-beam Atb and the TV functions with an array allocated page-locked (CUDA says “invalid argument” when asked to register it). All of them now use such an array as it is and leave it alone.

  • CTnoise.add / addCTnoise ran on the current GPU whatever gpuids said, and leaked GPU memory if a CUDA error was raised (Python). They now run on the first of gpuids and free everything on error.

  • minTV, AwminTV and tvdenoise failed on several GPUs (or when split for memory) when the image had so few z slices that the last pieces came out empty, e.g. 5 slices on 4 GPUs, or tvdenoise of one slice on 2 GPUs. The pieces are now chosen so that none is empty, using fewer GPUs if needed.

  • minTV, AwminTV and minPICCS read past the end, or before the start, of the image, the output and PICCS’s prior when a piece of the image (one per GPU, or more when it is split for memory) was thinner than the halo slices copied around its neighbour: e.g. 7 slices on 3 GPUs (pieces of 3, 3 and 1), or pieces of 1 slice. Depending on the memory there, this crashed, gave a copy error or did nothing visible; results were not affected. The halos now stop at the image’s first and last slice, as in tvdenoise (#899; found by Einse57).

  • minTV, AwminTV, minPICCS and tvdenoise freed some of their host memory only when they failed: every call lost a little, including a page-locked (pinned) allocation in minTV, AwminTV and minPICCS, which the POCS solvers call at every iteration.

  • tvdenoise (Python; im3DDenoise(...,'TV',...) in MATLAB) on 2 or more GPUs without a direct link between them, when the image fits only shared between the GPUs: the host buffer for the halo slices had room for one slice per halo, but the halos are up to 60 slices wide, so they overwrote each other (wrong results) and the last one wrote past the end of the buffer (#891; found by Einse57 in #885).

  • Python: Ax and Atb changed the GpuIds they were given when there were fewer angles (Ax) or image slices (Atb) than GPUs, keeping only as many GPUs as needed. Algorithms that project one angle at a time (SART, ASD_POCS, AwASD_POCS) then ran on one GPU after the first angle, for the projections and for the TV step. They now trim a copy (#855).

  • tvdenoise (Python; im3DDenoise(...,'TV',...) in MATLAB, used by FISTA and SART-TV), when the image did not fit on the GPU and was split in pieces: for the last piece it zeroed a dual variable instead of the input; it did not wait for each piece’s results to reach host memory before the next piece read from it; and a piece read its halo slices from host memory that the previous piece had already advanced. The result differed from the unsplit one across the whole volume (e.g. 7.6e-2 of the maximum with 100 MB free, up to ~2e-1 next to the joins). It now gives the unsplit result exactly (#806, #863).

  • Cone-beam Siddon Ax got some rays wrong (by up to ~20%): for rays entering the image exactly on a voxel boundary, the first voxel and the first boundary crossings disagreed. Without splitting this was rare (e.g. 1 in 50,000 rays, 256³, off by up to 14%); when the image was split in pieces because it did not fit on the GPU, it was common. The traversal now derives both from the same voxel (#859).

  • Siddon Ax (cone and parallel beam) is faster and more accurate. Cone beam, kernel time: 1.4-1.9x faster on Windows (RTX 4070), 5.5-6.5x on Linux (Quadro RTX 6000), where the voxel indices were 64-bit integers. Faster: the loop fetches the voxel value once per step for all threads, instead of inside each branch, with 32-bit indices and no integer-to-float conversions. More accurate: it added up the step between voxel boundaries in single precision, which drifted by up to ~2e-3 (relative) along rays through a 512³ image. It now computes each boundary from its plane, with an error of ~1e-5. Siddon projections change by up to that drift, towards the exact value. Parallel beam uses the same traversal (#859), and is 1.7-2.0x faster on Windows and 4.4-4.8x on Linux. The technical note docs/technical-notes/siddon/siddon_note.pdf explains these changes.

  • tvdenoise (Python; im3DDenoise in MATLAB, also used by FISTA and other TV algorithms) could loop forever when the image did not fit on the GPU and was split: for some amounts of free memory it computed a buffer of 0 slices. minTV/AwminTV stopped with “Assertion Failed. Logic behind splitting flawed!” when free memory was low. All three now split correctly whenever the smallest piece fits, and raise “out of memory” otherwise (#858).

  • minTV, AwminTV, tvdenoise and minPICCS now release everything they hold when they stop with an error (e.g. out of memory), as Ax/Atb do since #857. Before, an error left the caller’s arrays registered as pinned memory; on Linux the next call, with a new array at the same address, then returned all zeros without any error, or failed with “part or all of the requested memory range is already mapped”. A failed GPU allocation in these functions now reports “out of memory” instead of “invalid argument”.

  • MATLAB Compile: compiles for the GPU architectures the installed nvcc supports, as it reports them (nvcc --list-gpu-arch), like the Python build. The fixed list asked CUDA 12.2-12.7 for compute_120, which needs 12.8, and compilation failed.

  • Cone-beam Ax and Atb with almost no free GPU memory (e.g. when PyTorch holds the GPU): Atb killed the process with an integer division by zero, and Ax tried the whole image and failed. Both now raise “out of memory” with how much memory they need, before allocating anything (Python: RuntimeError, which the PyTorch bindings retry after emptying PyTorch’s cache; MATLAB: an error).

  • Ax with "interpolated" (cone and parallel) and parallel-beam Siddon started projecting without waiting for the image to finish copying to the GPU, so the first block of 8-9 projections could be computed from a partly copied image. Seen with GPU arrays; with NumPy input it could happen for cone-beam interpolated when the image was split (did not fit on the GPU), as the image is then page-locked and its copy fully asynchronous.

  • Atb with backprojection_type="matched" (used by the Krylov algorithms, e.g. CGLS, LSQR) could return parts of the image as zeros when the image did not fit on the GPU in one piece: copying a piece out raced with clearing the GPU buffer for the next piece. Python and MATLAB.

  • PyTorch bindings: create_pytorch_operator(geo, angles) without gpuids, and gpuids given as a list of device numbers (["0"]), failed: TIGRE needs a GpuIds. Both work now.

  • Atb leaked texture objects on every call (all but two of every 32-angle block), until CUDA refused to create more, about a million later: “Texture object creation fail … out of memory” after a few hundred iterations however much memory was free. Ax leaked one per image split (#617, #851).

  • Python: Atb, minTV, AwminTV, minPICCS, tvdenoise and the noise generators no longer leak their small list of GPU ids on every call.

  • load_head_phantom could not find head.mat after pip install . on Linux or after pip install --user: pip puts the file in <prefix>/data, which was not searched (#850).

  • Large problems: several sizes were computed with 32-bit integers and wrapped around. Matched Atb failed or left part of the image unscaled above 2^31 voxels on one GPU (e.g. 1300³); parallel-beam Atb could not allocate an image above 2^31 voxels. On Windows, where long is 32-bit: Python Ax allocated too small a buffer once the projections reached 16 GiB (e.g. 2048² x 1024 angles) and wrote past its end; minTV, AwminTV, tvdenoise and minPICCS got their sizes and offsets wrong above 2^31 voxels. Above ~15,400² detector pixels, Ax copy sizes overflowed too. All now use 64-bit sizes.

3.2.0 (2026-11-11)#

Changed#

  • Python 3.11 or newer is required; Python 3.10 is no longer supported (#825).

  • TIGRE is no longer published to PyPI. The tigre name there belongs to an unrelated package, so pip install tigre does not install TIGRE. Install from source or with pip install git+https://github.com/CERN/TIGRE.git; built wheels are attached to each GitHub Release (#819).

  • FDK/FBP filtering in Python runs in cache-sized blocks on several threads (#790).

  • FISTA chooses its step size automatically by default (power iteration) (#769).

  • MATLAB SART, SIRT and PCSD are now thin wrappers over shared code (#786).

  • Parker weighting detects near-360° scans more robustly (#743).

  • FDK no longer applies Wang detector-offset weights on short scans (#778).

Added#

  • Parallel-beam Siddon projector supports full Euler angles (alpha, theta, psi) (#792).

  • MATLAB plotSinogram (#771).

  • Continuous integration: the Python test suite runs on every push and pull request (#816).

  • GPU test suite for the projectors and every reconstruction algorithm, run locally with pytest -m gpu Python/tests (#821).

  • CITATION.cff, a rewritten contributing guide and a pull request template (#818, #817).

Fixed#

  • minTV/AwminTV (used by ASD-POCS, PCSD, PICCS and the TV variants) could intermittently return an all-zero volume: a race between cudaMemset and stream work. The same pattern is fixed in the projectors and backprojectors (#823).

  • Windows source builds failed with setuptools 84 or newer (CUDA files were sent to the C++ compiler) (#822).

  • Multi-GPU TV halo exchange: synchronization and offsets (#804).

  • Parallel-beam projections had stripe artifacts from wrong intersection bounds (#752).

  • Siddon projector could hang on rays that miss the volume (#779).

  • TV/PICCS minimizers destroyed the caller’s CUDA context on success, and leaked GPU memory; IRN-TV-CGLS failed under NumPy 2 (#770, #800).

  • PICCS: could hang computing W, and other Python PICCS fixes (#784, #794).

  • POCS methods (ASD-POCS, PICCS, PCSD): lambda_red never reached the data step (#766).

  • Krylov methods: float64 norm accumulation, working restarts, results no longer discarded (#774).

  • Iterative algorithms: per-angle geometry indexing (MATLAB) and block size 1 (Python) (#801, #742).

  • Parker weights took the fan angle from the wrong axis (#767).

  • im3DNORM returned None for supported norm orders (#805).

  • Measure_Quality UQI now uses the N-1 variance, matching MATLAB (#796).

  • FBP filter parameter was not propagated (#760).

  • Geometry: single-angle input under NumPy 2, and cast_to_single turning integers into floats (#749, #750).

  • im3ddenoise rejects 2D input with a clear error (#748).

  • Varian loader rotation direction and XIM parsing (#762).

  • gpuids=None now means all GPUs everywhere; helical demo offset axis; computeCOR port (#773).

  • Importing a compiled module (e.g. _minTV) before tigre failed with a circular import; removed a deprecated numpy.core import (#824).

  • Plotting: one-dimensional and ZYZ angle arrays, empty savegif, MATLAB quality histories (#812, #746, #813).

  • Clearer error when the bundled head phantom is missing (#811).

  • Demos: duplicate 2π projections, quality demo inputs, geometry demo header (#759, #810, #761).

  • Build: compute capability table and detection, NumPy build pin for manylinux2014, documented GCC version (#732, #738, #798, #799).

Removed#

  • Read the Docs configuration (the docs it pointed to no longer exist) and other stale files (#817).

Earlier changes (since v2.2)#

Features#

  • Faster filtering for FDK in python

  • Better timing info for python algorithms

  • Bruker Skyscann Data Loader

Fixed#

  • Fix L2 and quality measure arrays bug

  • FDK detector offset weights missing a factor of 2