SIRF v3.0.0
evgueni-ovtchinnikov
released this
20 May 14:43
·
736 commits
to master
since this release
New features
- PET
- Addition of
sirf.STIR.ScatterEstimation
andScatterSimulation
to allow (non-TOF) scatter estimation in PET - GE Signa PET/MR reading of listmode data, sinograms, normalisation and randoms support added.
- If STIR is at least version 5 or built from the master branch, [Georg Schramm's parallel (computing) projector](https://github.com/gschramm/parallelproj proj) is now made available from SIRF (use
AcquisitionModelUsingParallelproj
). This uses Joseph interpolation, but importantly can use your GPU (if CUDA was found during building). - Implemented extraction of the operator representing the linear part of PET acquisition model and computation of its norm.
- When adding a shape to a
sirf.STIR.ImageData
, optionally give the number of times to sample a voxel. This is useful when the shape partially - but not completely - fills a voxel. - If
storage_scheme
is set tomemory
,PETAcquisitionData
allows direct modification, whereas before a copy would need to be created first. (Internally, it uses STIRProjDataInMemory
, instead ofProjDataFromStream
).
- Addition of
- Registration
- Registration of 2d images is now supported with aladin and f3d.
- examples data:
- Installs
examples
,data
anddoc
to the install directory, i.e.${CMAKE_INSTALL_PREFIX}/share/SIRF-<version_major>.<version_minor>
directory. - If the
SIRF_DATA_PATH
environment variable is set,examples_data_path
will search for the examples data there, or inSIRF_INSTALL_PATH/share/SIRF-<version_major>.<version_minor>/data
directory. In MATLAB, theexample_data_path
function has the version set by CMake at install time.
- Installs
- Other Python features:
- Define
__version__
insirf
python package. - Added implementation of division and multiplication for
NiftiImageData
. - Data validity checks return
NotImplemented
instead of throwing error, opening the door for future implementations of operations on data.
- Define
Backwards incompatible changes
- STIR version 4.1.0 is now required.
- Python 2 is no longer supported. Most code might still work, but we do not check. A warning is written when the Python version found is 2. This will be changed to
FATAL_ERROR
at a later stage. - Handling of coil images and sensitivities in C++ code simplified by inheriting CoilImagesVector from GadgetronImagesVector and replacing CoilSensitivitiesAsImages with CoilSensitivitiesVector, also inheriting from GadgetronImagesVector. All methods of CoilImagesVector and CoilSensitivitiesVector other than those inherited from GadgetronImagesVector are no longer supported except methods named compute(), which are renamed to calculate().
Deprecations (will be errors in SIRF 4.0)
Registration
: renamedResample
toResampler
andNiftyResample
toNiftyResampler
. Old names are now deprecated but should still work.- STIR
AcquisitionModel
forward
,direct
,backward
andadjoint
signatures have changed in Python. Subset information should now be set vianum_subsets
andsubset_num
members.The
forwardand
backwardmembers can still be called with the previous syntax but this will be removed in a later version. Note that default values of
num_subsetsand
subset_num` are 0 and 1 respectively, such that default behaviour is default behaviour (i.e. process all data) is unchanged. - MR acquisition data storage scheme restricted to memory only (a message will be printed but no error thrown)
- Use CMake variable names from
find_package(Python)
which are available with CMake 3.12+. SIRF CMake files will accept bothPython_EXECUTABLE
orPYTHON_EXECUTABLE
, for the latter it will send a deprecation warning.
Other changes
- When registering, internally the forward displacement is no longer stored, replaced by the forward deformation. The inverse is no longer stored, and is calculated as needed.
PETAcquisitionData.axpby
now uses STIR'saxpby
and is therefore faster.- Speed-up in
stir::AcquisitionDataInMemory
ofas_array
,fill
,dot
,norm
, etc. (by using STIR iterators). - Added common Python
DataContainer
algebra unit tests for allDataContainer
inherited classes. - Continuous Integration now uses Github Actions. Travis-CI has been dropped.
- New
CMake
optionBUILD_DOCUMENTATION
to use doxygen to build C++ documentation.
It will be installed in theshare/SIRF-version/doc/doxygen
.
Bug fixes
- Python
fill
method in MRDataContainer
acceptsnumpy
array, number orDataContainer
. get_index_to_physical_point_matrix()
returned a wrong matrix in MATLAB and Python.- path manipulation of
examples_data_path
now should work for any platform, not just linux.