Mouse-Imaging-Centre / RMINC

Statistics for MINC volumes: A library to integrate voxel-based statistics for MINC volumes into the R environment. Supports getting and writing of MINC volumes, running voxel-wise linear models, correlations, etc.; correcting for multiple comparisons using the False Discovery Rate, and more. With contributions from Jason Lerch, Chris Hammill, Jim Nikelski and Matthijs van Eede. Some additional information can be found here:
https://mouse-imaging-centre.github.io/RMINC
Other
23 stars 17 forks source link

mincGetVoxel iterator? #301

Open gdevenyi opened 2 years ago

gdevenyi commented 2 years ago

As an alternative to solving #299 problems because we would like to move forward, I was looking at doing the dumbest iteration over all voxels in the inputs one at a time. To my suprise I can't find anything equivalent to an iterator I could use to get one voxel at a time sequentially. Does something like this exist (or is there a workaround?)

bcdarwin commented 2 years ago

Not really -- in a sense, mincApply (and parallel friends) is the iterator (it just imposes some additional constraints like preserving the shape of the input).

jasonlerch commented 2 years ago

mincTable followed by standard R iterators. mincTable has a 'file_backed' version too for large (out of mem) arrays.