Dear SPM code experts,
I was checking out whether I could speed up spm calculations, exploiting all of my RAM. It turns out that in SPM8, spm_spm processes images a block per slice at a time. However, most likely, you can keep in memory much more than 1 z-slice at a time. Indeed spm_spm (line 575) computes nbz after computing the block size, to see how many planes it can load in memory. However, after that at the same line, the variable is overwritten to be valued 1.
Therefore (line 597) the loop is for z = 1:nbz:zdim, but nbz is always one.
Can I increase nbz to an higher value (deleting nbz=1 from line 575) or is there some known catch?
(BTW, I've seen that in SPM12 this has been changed to use "chunks" and not block in planes)
Have a nice day,
Luca
Rispetta l’ambiente: non stampare questa mail se non è necessario.
Respect the environment: if it's not necessary, don't print this mail.
|