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 19, 2015 07:32PM
Hello,
I have noticed that my data shows some discrepencies between what is shown in AFNI vs. MATLAB regarding the voxel indexing and I would greatly appreciate any help possible. To elaborate, my basic processing pipeline is as follows:

Pre-processing (alignment, motion correction, smoothing etc...)
Project data onto surface volume in SUMA
Draw a line, serving as an ROI (where each node should be a data point)
Transform that "ROI line" from a .niml file to a .1D node list via ROI2dataset and again transforming this output to XYZ mm coordinates via SurfMeasures
Load all data into MATLAB via BrikLoad and use AFNI_XYZcontinuous2Index to get indices of the "line ROI"

Here is where the trouble starts. For example when referencing the voxel index in AFNI, I will get an index of 372560 which according to the field of view for these functional runs should be 68,33,52 in 3 dimensions, which is what MATLAB shows, but in AFNI it comes up as 68,32,51. I even performed several sanity checks, such as writing out my 'line ROI' into .BRIK format just to see how it looks in the 3D volume and surface volume, and this small difference projects the 'line ROI' slightly off of where it is supposed to be according to what was drawn in SUMA (landing in white matter). Several other examples of how this might be impacting my data, (these are actual results following a cross-correlation analysis) the voxel index of 372560 = -2.927 in matlab but is 3.048 in AFNI; the voxel at. 61,38,55 is in matlab list and on curve, index of 394801, but in AFNI has an index of 402145. The data at these two different voxel indices is -3.126 in matlab and 2.909 in AFNI.

What could be going wrong here? Could there be a problem in the manner in which I am transforming my functional data from volume to surface space? Any help would be greatly appreciated. Thank you!
Subject Author Posted

AFNI and MATLAB discrepancies after surface to 3D volume transformation

dberman6 June 19, 2015 07:32PM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

Isaac Schwabacher June 22, 2015 10:59AM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

nick June 22, 2015 12:29PM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

Isaac Schwabacher June 22, 2015 12:43PM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

nick June 22, 2015 12:57PM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

Isaac Schwabacher June 22, 2015 01:01PM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

nick June 23, 2015 06:59AM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

Isaac Schwabacher June 23, 2015 12:03PM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

nick June 24, 2015 07:28AM

Re: AFNI and MATLAB discrepancies after surface to 3D volume transformation

Isaac Schwabacher June 24, 2015 11:34AM