RNifti
Fast R and C++ Access to NIfTI Images
The C++ layer under R's neuroimaging stack, closing the gaps where images stopped acting like arrays
◆Recent moves
- 7mo ago
Arithmetic and summary generics for lazily loaded images
Adds Math, Ops, Complex and Summary group generics plus is.na() and mean() to internalImage, so R no longer falls back on character methods that produce nothing useful. Summary is implemented in C++ specifically to avoid materialising a full R array for a single value, which keeps the class's deferred-loading benefit intact.
View source ↗ - 1y ago
Reads and writes BIDS-style JSON sidecar metadata
readNifti and writeNifti gain a json argument and a new imageAttributes function, bringing the metadata sidecars used by the Brain Imaging Data Structure into the package's remit. It extends coverage past the image header into the surrounding convention, though only from R for the moment.
View source ↗ - 2y ago
RGB arrays keep their type through indexing
Indexing an rgbArray or RGB-valued image now returns an rgbArray rather than dropping to a plain type, preserving the colour interpretation, and an as.raster method is added. Same class of type-fidelity work the group generics later continued.
View source ↗ - 2y ago
Misaligned memory read fixed under UBSan
A single sanitiser-caught memory alignment fix with no change in behaviour users would observe. Routine correctness upkeep for a package with a large C++ surface.
View source ↗ - 2y ago
Legacy ANALYZE header fields readable for inspection
niftiHeader() gains an unused argument that surfaces legacy ANALYZE-7.5 fields, read-only, for inspecting files written by other software. The C++ side also gains NiftiImage constructors that take a header structure.
View source ↗ - 2y ago
Compiler format-string warnings resolved
Clears printf-style format string warnings from newer compilers. Toolchain upkeep, published within a minute of the 1.5.0 release it follows.
View source ↗