AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
June 17, 2009 05:42AM

Sorry, but now I can't get it working for multiple slices! I successfully converted the 64x64 matrix 'matp' into AFNI format, but that was a matrix pertaining to only one slice.

Now I would like to write out the matrices for each of my 13 slices. I have a variable 'allslice' which is 13x4096, and I also reshaped it into another variable 'matslice' = 64x64x13, since I don't know which one WriteBrik wants.

Can you please tell me how to set the attributes properly? I have tried:

InfoDelOut.DATASET_RANK(2) = 13 %13 slices
InfoDelOut.BRICK_FLOAT_FACS=[1 1 1 1 1 1 1 1 1 1 1 1 1]; %one for each slice
InfoDelOut.TAXIS_NUMS(1) = InfoDelOut.DATASET_RANK(2);
InfoDelOut.BRICK_TYPES = [3 3 3 3 3 3 3 3 3 3 3 3 3];

Although the WriteBrik function does not give any errors (if i use 'matslice'), the result is not displayed properly in AFNI.

I don't think 13 slices means 13 sub-bricks, does it?

If this doesn't work I can write out slice by slice and then concatenate them together...
Subject Author Posted

WriteBrik

cnan June 16, 2009 09:54AM

Re: WriteBrik

Daniel Glen June 16, 2009 12:18PM

Re: WriteBrik

cnan June 16, 2009 01:57PM

Re: WriteBrik

Judd June 16, 2009 02:24PM

Re: WriteBrik

Daniel Glen June 16, 2009 04:44PM

Re: WriteBrik: OK now

cnan June 17, 2009 03:59AM

Re: WriteBrik: how to write multiple slices?

cnan June 17, 2009 05:42AM

Re: WriteBrik: how to write multiple slices?

Nick Oosterhof June 17, 2009 10:07AM

Re: WriteBrik: how to write multiple slices?

cnan June 17, 2009 10:26AM

Re: WriteBrik: how to write multiple slices?

Nick Oosterhof June 17, 2009 10:58AM

Re: WriteBrik: how to write multiple slices?: OK

cnan June 18, 2009 06:40AM

Re: WriteBrik: how to write multiple slices?: OK

Nick Oosterhof June 18, 2009 07:21AM

Re: WriteBrik: how to write multiple slices?: OK

cnan June 18, 2009 07:55AM