Hi everyone,
here is the case where you will have the wrong .mat associated with your
image:
when trying to normalize an image (analyze 7.5, data of any type other
than byte) using a pre-calculated normalization parameters, (normalize--
>write), the .mat file associated with your image will have wrong last
column (in spm_write_sn line 230 ahead it will cause problems; and thats
where the output grid are getting calculated and wrong last column will
give you a grid out of coordinate space) which will result in your output
image consisting of all NAN or zeros (probably because the output grid
will be totally out of the bb and etc.).
spm_vol should be fixed for this and I didn't find any updates regarding
this issue.
I also noticed some people had the problem of seeing all NAN or zero when
trying to apply the normalization to other images, maybe it will help them
too.
spm.m: $Id: spm.m 539 2006-05-19 17:59:30Z Darren $
spm_write_sn.m: $Id: spm_write_sn.m 490 2006-03-31 17:31:26Z john $
spm_vol_sn.m: $Id: spm_vol.m 504 2006-04-25 13:44:50Z volkmar $
an example of wrong associated .mat file:
1.0e+004 *
-0.0001 0 0 3.4686
0 0.0001 0 -2.6880
0 0 0.0001 0
0 0 0 0.0001
and here what it should be:
-1.2500 0 0 80.6250
0 1.0000 0 -128.5000
0 0 1.0000 -128.5000
0 0 0 1.0000
hopefully a quick patch will fix it.
Thanks and cheers
Behrang,
|