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  

|
December 23, 2013 04:53PM
Hi All,

I was checking through a few routines, but could not determine if there was a function or macro to check if one data set was in the same space, on the same grid, and had the same orientation as another? Or is it a matter of doing something along the lines of:

if ( (ds1->daxes->nxx == ds2->daxes->nxx) &&
(ds1->daxes->nyy == ds2->daxes->nyy) &&
(ds1->daxes->nzz == ds2->daxes->nzz) &&
(ds1->daxes->xxorg == ds2->daxes->xxorg) &&
(ds1->daxes->yyorg == ds2->daxes->yyorg) &&
(ds1->daxes->zzorg == ds2->daxes->zzorg) &&
(ds1->daxes->xxdel == ds2->daxes->xxdel) &&
(ds1->daxes->yydel == ds2->daxes->yydel) &&
(ds1->daxes->zzdel == ds2->daxes->zzdel)
)

myself, where "ds1" and "ds2" are the data sets to be checked ? I am missing the orientation code check here, this otherwise checked what I needed to.

Thanks!
Subject Author Posted

Checking for data sets in identical space ?

roopchansinghv December 23, 2013 04:53PM

Re: Checking for data sets in identical space ?

ziad December 23, 2013 05:51PM