JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  December 2011

FSL December 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: WARNING:: Inconsistent orientations

From:

Mark Jenkinson <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Fri, 30 Dec 2011 17:29:10 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (164 lines)

Hi Greg,

Try fslcpgeom with your 1x1x1 image as the source and your
current 3.5x3.5x3.5 "foo" image (as created by fslcreatehd) as 
the destination.  This should give it valid qform/sform settings
without changing the dimensions.  I think that everything from
then on should work fine.

All the best,
	Mark




On 30 Dec 2011, at 16:52, Gregory Kirk wrote:

> Hi Mark,
> 
> i had a sneaking suspician that foo was the culprit, i don't know how to calculate
> this with qfrom & sform defined. The problem is i do not have an image with
> the needed geometry to use to define -ref for applying the transform with flirt
> or i would not be generating foo with fslcreatehd in the first place.
> 
> the freesurfer conformed space has a different orientation w.r.t. the axis than the native epi so
> the dimensions needed for it to fit are different than the original epi. i.e. the orig is 39X63X63 and i make an image
> foo with 63X63X63 with the origin specified as 0 for all so there is room for it to flip it on the side to fit , i.e. if i use
> the original geometry the resulting image is croped because the 39 dimension needs to become 63 so it fits.
> 
> the only processing that is done is to split the original 4d with fslsplit( as i said the pink/white label difference is there
> imediately after fslsplit but merge does not complain at this point if i immediately apply it) the only thing that happens
> after that is applying the matrix output from bbregister to each volume with foo yes having unknown for both sform & qform, 
> then after that it complains on some but not all of the images.
> 
> i dont know how to create a volume with the target orientation having defined qform & sform, i have the .nii
> in the correct orientation with the structural T1, but the dim is 1X1X1 and the epi needs to be 3.5X3.5X3.5.
> 
> if i could take that, maybe i could use fsledit and change the dims to 3.5 maybe that will work.
> i will try that now, changing the dim should not effect any of the orientation info ?
> 
> thank you for the detailed reply
> 
> greg
> 
> 
> On 12/30/11, Mark Jenkinson   wrote:
>> Dear Gregory,
>> 
>> It is the full contents of the qform and sform matrices that are checked
>> by fslmerge when looking for inconsistencies.  So it isn't enough just to
>> look at the xorient, yorient and zorient fields.  You need to look at the
>> numbers in the matrices themselves.
>> 
>> It sounds like you've checked on the left-right issues and that these
>> are fine.  So that is good.  However, this warning would also be output
>> if the origins encoded in the qform/sform matrices are different (or if
>> the axes are angled differently).  Depending on what exact processes
>> you've run the images through this may have correctly occurred.  In
>> the application of motion correction, if each volume starts with the
>> same qform/sform and then is spatially transformed, it is more than
>> likely that these would change, reflecting the new coordinate system.
>> If that is the case then this is fine and you can just ignore the warning.
>> I'm not sure if you use images output from FreeSurfer or any other
>> manipulations of them with FSL tools or otherwise, but if you look at
>> them carefully with fslview and fslhd then you should be able to work
>> out whether the changes are a problem or simply due to an expected
>> and correct modification of the qform/sform that reflects spatial 
>> transformations.
>> 
>> One thing that you have said that I want to pick up on is the issue
>> of white/pink writing for the labels in FSLView.  It is *NOT* the case that
>> these colours reflect whether it is "radiologically" or "neurologically" 
>> stored.  It reflects whether there are valid or "unknown" qform/sform
>> matrices.  On some platforms the labels disappear when both qform
>> and sform are "unknown", while on other platforms the labels change
>> colour (to gray or red/pink).  When both qform and sform are "unknown"
>> (based on the qform_name and sform_name field from fslhd) then
>> FSL reverts to its defaults to determine left-right orientation (assuming
>> that the image is stored in "radiological" ordering).  As this is dangerous
>> (since we have no way of knowing if the defaults are correct) the labels
>> in FSLView are changed to reflect this lack of certainty.  
>> 
>> It is certainly not a good thing to work with images where both qform 
>> and sform are "unknown".  I suspect that your image "foo" below has 
>> this and I would recommend fixing that, either by generating it in a 
>> different way (say fslroi) or by copying information from another
>> image (e.g. fslcpgeom).  Inspect the results with fslhd and fslview to
>> make sure that it is doing what you want.  This may, or may not, have
>> an impact on the warning above, but I would recommend doing it
>> anyway.
>> 
>> Hope this helps to clarify the situation for you.
>> All the best,
>> 	Mark
>> 
>> 
>> 
>> 
>> On 29 Dec 2011, at 19:39, Gregory Kirk wrote:
>> 
>>> hi fsl'ers,
>>> 
>>> when doing a fslmerge -t foo *
>>> 
>>> i get 
>>> 
>>> WARNING:: Inconsistent orientations for individual images when attempting to merge.
>>>          Merge will use voxel-based orientation which is probably incorrect - *PLEASE CHECK*!
>>> 
>>> the situation is.
>>> 
>>> a have a set of 230 volumes that were created from an epi 4d data set
>>> that was split with fslsplit
>>> 
>>> i am doing a motion correction experiment applying bbregister to each epi timepoint.
>>> 
>>> so i apply the transform from bbregister to each time point using flirt with
>>> flirt -in $epi_volume_path/vol${i}.nii.gz -applyxfm -init $transforms_path/tran.${i}.mtx -out $out_path/reg_${i}.nii.gz -paddingsize 0.0 -interp trilinear -ref /study/aa-scratch/TEENEMO/rest/challenge_freesurfer/surface_analysis/run_all6/foo.nii.gz
>>> 
>>> with foo.nii.gz a volume i create with 
>>> fslcreatehd <xsize> <ysize> <zsize> <tsize> <xvoxsize> <yvoxsize> <zvoxsize> <tr> <xorigin> <yorigin> <zorigin> <datatype> <headername>
>>> 
>>> i get multiple of these warnings
>>> 
>>> i isolate 2 volumes that get the error
>>> i.e. fslmerge -t foo vol10.nii.gz vol17.nii.gz gives the error and look at the headers, they both say
>>> RADIOLOGICAL and all the orientation info 
>>> qform_xorient  Anterior-to-Posterior
>>> qform_yorient  Superior-to-Inferior
>>> qform_zorient  Left-to-Right
>>> 
>>> and 
>>> sform_xorient  Anterior-to-Posterior
>>> sform_yorient  Superior-to-Inferior
>>> sform_zorient  Left-to-Right
>>> 
>>> are exactly the same.
>>> 
>>> also i make marks in the right hemi of the input images of both and verify there is not
>>> a left right flip.
>>> 
>>> looking at the transforms applied to both images they have the same sign
>>> and only tiny differences in the values as expected.
>>> 
>>> i noticed that the two volumes show up with the L R labels white in one
>>> and pink in the other, usually that means one is radiological the other
>>> is neurological, but as i say fslorient gives RADIOLOGICAL for both.
>>> 
>>> the original voles before applying the transform also have this pink/white difference in the labels.
>>> 
>>> i noticed that the volume i created with fslcreatehd does not has
>>> sform_xorient  Unknown
>>> sform_yorient  Unknown
>>> sform_zorient  Unknown
>>> 
>>> when i run fslmerge -t foo vol10.nii.gz vol17.nii.gz 
>>> on the original images produced by fslsplit it does not give an error.
>>> 
>>> somehow the .nii created by flirt has something that throws a flag
>>> 
>>> also i checked not only that there is no L?R flip but that the AP IS is correct and the direction
>>> of increasing coordinates for x,y,z is the same. the merged results seem to be correct as far as i can see
>>> but of course i would like to know for sure there is nothing wrong before analyze the data.  
> 

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager