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, demod23_DualEnergy) is now a plugin inMATLAB/Plugins/DualEnergy, always on the path afterInitTIGRE(nothing to compile).MATLAB proton CT is now a plugin in
MATLAB/Plugins/pCT(CUDA code inCommon/CUDA/plugins/pCT). Compile it withCompile pCT(orCompile allfor TIGRE and every plugin); plainCompilestill builds core TIGRE only. The intercept vector lengths are set withCompile('pCT','-pct_pixel',0.5)or-pct_intercepts, instead of questions that rewrote a source file.pRad_demoandpCTdatamoved with it and work from any folder.CompilePCTis removed: useCompile pCT.MATLAB:
ASD_POCS,OS_ASD_POCS,AwASD_POCS,OS_AwASD_POCS,B_ASD_POCS_beta,PICCS,PCSDandMLEMreturn their data error as the second output, beforequalMeas, 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.PCSDalready returnedresL2second, mislabelled asqualMeasOut, and could not return quality measures at all (#408).MLEMandOSEM(MATLAB) andtigre.algorithms.mlemwithcomputel2=True(Python) report the Kullback-Leibler divergence ofAxfrom the data, the Poisson data error they decrease, instead of the L2 residual norm. MATLABOSEM’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 defaultmaxL2erris 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; passmaxL2errto choose it yourself (#283).MATLAB
VarianDataLoaderwithbh: 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:
checkGeocasts geometry fields given assingle, integer or logical arrays todouble, instead of failing with “is not double type” (#91).Python:
check_geoaccepts 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 rejectsnVoxel/nDetectorvalues 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, intigre.utilities.cuda_interface, instead of top-level modules insite-packages. TIGRE’s API (tigre.Ax,tigre.algorithms, …) does not change; code that imported them directly, e.g.from _minTV import minTV, now needsfrom tigre.utilities.cuda_interface._minTV import minTV.
Added#
Python dual energy:
tigre.plugins.dual_energy.DeDecomposeandMakeVMproj, the same functions and options as in MATLAB, with demod23_DualEnergy.py, and a user-guide page for the plugin (#522). Always installed (pure Python); the calibration and NIST tables stay inCommon/dataand are copied into the package when it is built. Its paper is in the PythonTIGRE.bibtoo (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 withTIGRE_PLUGINS=pct pip install .(orTIGRE_PLUGINS=all); intercept vector lengths withTIGRE_PCT_PIXEL/TIGRE_PCT_INTERCEPTS. Demo:Python/demos/pRad_demo.py.MATLAB
pCTCubicSpline, the same function as in Python: likepCTCubicSpline_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 beTV(x - prior)(default), an L2 norm (PIPLE) or an L1 norm. It andirn_tv_cgls/IRN_TV_CGLSgainouter_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) andweights/'weights'(TV weights for the first reweighting). MATLABIRN_TV_CGLSis nowIRN_PICCS_CGLSwithout 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 whenresL2was asked for (#445).Python:
groundTruthoption 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 existingoffDetector,offOrigin,DSOandDSD(#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:
AxandAtbtakesinglegpuArrayinputs (Parallel Computing Toolbox) and return agpuArrayon the same GPU, with no copies through host memory, as Python does for PyTorch and CuPy arrays.Compilebuilds 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’sB_ASD_POCS_beta(#283).Python:
tigre.utilities.io.DicomDataLoader, a port of MATLAB’sdicomDataLoaderfor DICOM C-arm CBCT (tested on Philips Allura). Needspydicom(#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 existingCOR,rotDetectorandoffOriginfields (#98).tigre.__version__andtigre.show_versions()(Python), andtigreVersion(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’sbhoption (off by default, as in MATLAB) (#201).
Fixed#
MATLAB dual energy:
MakeVMprojused 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).DeDecomposeignored thekVl/kVhoptions (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 wascrossing - 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
pCTCubicSplineno 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-singleinputs gave wrong results silently; both now give clear errors, as do missinggeofields and ageo.modeother than'parallel'or'cone'.MATLAB: the first line of
helpfor 24 algorithms now says what each one does. Several described a different algorithm:SART,SIRTandSART_TVsaid OS-SART,OS_PCSDsaid adaptive-weighted, andhybrid_fLSQR_TVshowed the help ofLSQR.TV denoising (
im3ddenoise/im3DDenoise, and through itossart_tv/SART_TVandfista/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’sim3ddenoiseno 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,MakeVMprojandHUMappingfound their data files only when MATLAB’s current folder was their own; the path is now relative to the file.HUMappingalways used the demo calibration (a stray space in the file name).d23_DualEnergyloaded the low-kV scan from an undefined variable.InitTIGREwarned about thepCTMexFilesfolder beforeCompilePCTwas run, andCompilePCTneeded MATLAB R2020b (readlines) (#546).MATLAB on Linux:
Compilefailed on the Varian.ximreader (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=Truecrashed when returning the errors. The residual and the quality measures are now both recorded per inner (CGLS) step,niter * niter_outercolumns, 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 forQualMeasfailed on the first iteration, and the discrepancy principle no longer errors when it has no root. Python:QuameasoptsandgroundTruthwere 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 aPositionerTypefield (strcmitypo); readsImagerPixelSpacingin (u, v) order, which matters for non-square pixels; setsoffDetectorwhen it crops the projections to an off-centre shutter (#201).Python: the wheels no longer install the
testsanddemosfolders as top-level packages (import testscould 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_loaderfinds both. The sdist still has the tests and demos.Python: the iterative algorithms no longer change the
geopassed to them. They expanded its fields to one value per angle, so reusing the samegeowith a different number of angles failed with “offOrigin with shape (40, 3) not compatible”. The PyTorch operatorsAandAtno longer setgeo.angleson it either. (Ax,Atb, FDK and FBP already worked on a copy.)Python:
NikonDataLoaderreads.angangle files with tab-separated lines (such as the SophiaBeads datasets); it failed with “must be real number, not str”.MATLAB:
help FBPandhelp OSEMnow describe those functions (FBP had no help, OSEM showed the help of OS_SART), and the first lines ofhelp OS_ASD_POCSandhelp FDKare 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 ofproj - Ax(img).
Deprecated#
MATLAB: the
'lambda'and'lambda_red'options ofOSEM. They never changed the result, as the OSEM update has no step size. Passing them now gives aTIGRE:deprecatedwarning; 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
Axof 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.filteringtakes optionalweights=andout=.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#
3.3.0 (2026-11-21)#
Added#
TIGRE_CUDA_ARCH(Python build and MATLABCompile): compile only for the given GPU architectures (e.g.89,75,89, ornative), several times faster, for development and testing. Default unchanged: every architecture nvcc supports.Python and MATLAB builds: the GPU backend (
cuda,hip,syclormetal) is chosen with theTIGRE_BACKENDenvironment variable, or in MATLAB withCompile -backend <name>. When neither is given, the build uses the first backend whose compiler is installed, CUDA first, and prints which one it chose. Onlycudacan be built so far; the others stop with a message pointing to the work that adds them (#747, #885, #876).Python:
tigre.Axandtigre.Atbtake 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; ifgpuidsnames 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 totigre.Ax/tigre.Atbdirectly, 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) andAtbuse all the GPUs ingpuids, as cone beam does:Axshares the angles between the GPUs,Atbthe 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, andmatchedcomputes its weight from numbers the kernel already has. Kernel time, RTX 4070:matched0.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), andmatchedas described under Fixed.AxandAtbwith NumPy arrays no longer checknp.isrealon the input, which thefloat32check 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).minPICCSalready treated z like x and y.minPICCS(PICCS) runs on the GPU code it now shares withminTV: it uses all the GPUs ingpuids(before, whichever GPU was current), works on images larger than the GPU memory, and sums the gradient norm in double.PICCS.cukeeps only the PICCS maths (the step direction); the multi-GPU and splitting code istv_gradient_descent(tv_gradient_descent.hpp).AwminTVruns on the same shared code (GD_AwTV.cukeeps 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 nowminTV’s (GD_TV:...).CTnoise.add(Python) andaddCTnoise(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, sonp.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
extendedand not run by a plainpytest(on an RTX 4070 the suite goes from ~6 to ~2 minutes). Run them withpytest -m extended; seecontributing.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 withexit(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 callscudaDeviceReset()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:
Atand the gradient ofAnow use thematchedbackprojector, the closest to the transpose ofAx; before, they used FDK weights, so gradients through TIGRE were further from the true ones. Passbackprojection_type="FDK"tocreate_pytorch_operator(orA/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#
Atbwithmatchedweights used the wrong weight for rotated detectors (rotDetector) and for rotation axes that are not z (3-angleangles): 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, andmatchedis as close to the adjoint ofAxfor rotated detectors as for unrotated ones.matchedresults change: ~1e-4 for unrotated detectors, up to several % for rotated ones.minPICCSreturned 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
minPICCSwith 5 inputs (nogpuids) 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 fromPICCSwas read as garbage). Now all input forms are read, the prior must match the image, andminimizeTV_priorpasses singles.AwminTV(andminTV, 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/Atbwith 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-beamAtband 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/addCTnoiseran on the current GPU whatevergpuidssaid, and leaked GPU memory if a CUDA error was raised (Python). They now run on the first ofgpuidsand free everything on error.minTV,AwminTVandtvdenoisefailed 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,AwminTVandminPICCSread 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 intvdenoise(#899; found by Einse57).minTV,AwminTV,minPICCSandtvdenoisefreed some of their host memory only when they failed: every call lost a little, including a page-locked (pinned) allocation inminTV,AwminTVandminPICCS, 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:
AxandAtbchanged theGpuIdsthey 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
Axgot 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 notedocs/technical-notes/siddon/siddon_note.pdfexplains these changes.tvdenoise(Python;im3DDenoisein 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/AwminTVstopped 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,tvdenoiseandminPICCSnow release everything they hold when they stop with an error (e.g. out of memory), asAx/Atbdo 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 installednvccsupports, as it reports them (nvcc --list-gpu-arch), like the Python build. The fixed list asked CUDA 12.2-12.7 forcompute_120, which needs 12.8, and compilation failed.Cone-beam
AxandAtbwith almost no free GPU memory (e.g. when PyTorch holds the GPU):Atbkilled the process with an integer division by zero, andAxtried 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).Axwith"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.Atbwithbackprojection_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)withoutgpuids, andgpuidsgiven as a list of device numbers (["0"]), failed: TIGRE needs aGpuIds. 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,tvdenoiseand the noise generators no longer leak their small list of GPU ids on every call.load_head_phantomcould not findhead.matafterpip install .on Linux or afterpip 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
Atbfailed or left part of the image unscaled above 2^31 voxels on one GPU (e.g. 1300³); parallel-beamAtbcould not allocate an image above 2^31 voxels. On Windows, wherelongis 32-bit: PythonAxallocated too small a buffer once the projections reached 16 GiB (e.g. 2048² x 1024 angles) and wrote past its end;minTV,AwminTV,tvdenoiseandminPICCSgot their sizes and offsets wrong above 2^31 voxels. Above ~15,400² detector pixels,Axcopy 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
tigrename there belongs to an unrelated package, sopip install tigredoes not install TIGRE. Install from source or withpip 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 betweencudaMemsetand 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_rednever 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).
im3DNORMreturnedNonefor 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_singleturning integers into floats (#749, #750).im3ddenoiserejects 2D input with a clear error (#748).Varian loader rotation direction and XIM parsing (#762).
gpuids=Nonenow means all GPUs everywhere; helical demo offset axis; computeCOR port (#773).Importing a compiled module (e.g.
_minTV) beforetigrefailed with a circular import; removed a deprecatednumpy.coreimport (#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