Hi Mahmoud, You can use the fslcpgeom command to copy the geometry information from one image to another. Cheers, Paul On 3 September 2018 at 16:13, / Mahmoud/ <[log in to unmask]> wrote: > Hello all, > > I 'm using both FSL and ANTs for processing our DWI data. > I ran into a problem arising from the fact that FSL and ANTs handle the > image headers differently. At least that's my guess. I tried to figure it > out at the ANTs side but couldn't find a solution. > > The problem is that N4Biascorrection (from ANTs) fails when I try to add > the mask option to it and what it says is that basically, something in the > header of the input file is not matching the mask file: " Description: > itk::ERROR: N4BiasFieldCorrectionImageFilter(0x2fdc4f0): Inputs do not > occupy the same physical space!" > > I compared the headers of the input and mask images and found that other > than the number of volumes, the sto_xyz_matrix and sto_ijk_matrix do not > match. > > So, how can I match these two headers in the fields that I want? > I tried to do it manually using the fsledithd but that did not work. > > Thanks for your help! > Mahmoud > > ######################################################################## > > To unsubscribe from the FSL list, click the following link: > https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1 > ######################################################################## To unsubscribe from the FSL list, click the following link: https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1