List,
There was a problem introduced in 4.1.5 or 4.1.6 where the aux_file
field of a file produced using overlay was empty or erased. Thus, the
blobs in activation images produced by feat were purely greyscale and
not red/yellow. Here is a patch to address this:
--- fsl-4.1.8/src/newimage/generalio.cc 2012-05-21 16:29:53.930630727 +1000
+++ fsl-4.1.9/src/newimage/generalio.cc 2012-06-01 10:50:23.346099142 +1000
@@ -346,6 +346,12 @@
if (!save_orig && !source.RadiologicalFile && currently_rad) const_cast< volume <T>& > (source).makeneurological();
FSLIO *OP = NewFslOpen(filename.c_str(),"wb",filetype,vinfo,use_vinfo);
if (OP==0) { imthrow("Failed to open volume "+filename+" for writing",23); }
+
+ if(strlen(OP->niftiptr->aux_file) == 0 && source.getAuxFile().length() > 0)
+ {
+ strncpy(OP->niftiptr->aux_file, source.getAuxFile().c_str(), 24);
+ }
+
set_fsl_hdr(source,OP,1,1,!use_vinfo);
FslWriteAllVolumes(OP,&(source(0,0,0)));
FslClose(OP);
@@ -375,6 +381,12 @@
// if filetype < 0 then it is ignored, otherwise it overrides everything
FSLIO *OP = NewFslOpen(filename.c_str(),"wb",filetype,vinfo,use_vinfo);
if (OP==0) { imthrow("Failed to open volume "+filename+" for writing",23); }
+
+ if(strlen(OP->niftiptr->aux_file) == 0 && source.getAuxFile().length() > 0)
+ {
+ strncpy(OP->niftiptr->aux_file, source.getAuxFile().c_str(), 24);
+ }
+
set_fsl_hdr(source[0],OP,source.tsize(),source.tdim(),!use_vinfo);
if (filetype>=0) FslSetFileType(OP,filetype);
FslWriteHeader(OP);
--
Dr Christopher Adamson, PhD (Melb.), B Software Engineering (Hons.,
Monash)
Research Officer
Developmental Imaging, Critical Care and Neurosciences
Murdoch Childrens Research Institute
The Royal Children’s Hospital
Flemington Road Parkville Victoria 3052 Australia
T 9906 6780
M XXXX XXX XXX
E [log in to unmask]
www.mcri.edu.au
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
|