[MINC-development] mincfft. was: [geeks] vector_diemsion and rawtominc

Peter NEELIN minc-development@bic.mni.mcgill.ca
Wed, 20 Nov 2002 21:15:19 -0500


On Thu, 21 Nov 2002, Andrew Janke wrote:

> But now I have a question: I know volume_io handles vector volumes differently
> but is this to the point where it thinks a 3spatial + vector file has 3
> dimensions only?

Yes. I think that the default behaviour is to use the minc library magic
to make everything scalar. There is a volume_io option that allows this to
be turned off (I don't have time to look it up right now). Be warned,
however, that volume_io uses pointers to pointers to pointers for its
arrays (it was faster that way at the time that David benchmarked it). The
down side of this is that a complex vector short volume will have as much
pointer as data, even on a 32-bit system (one pointer for every 4 bytes of
data).

            Peter
----
            Peter Neelin (neelin@bic.mni.mcgill.ca)