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

Help for SPM Archives


SPM Archives

SPM Archives


SPM@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

SPM Home

SPM Home

SPM  November 2008

SPM November 2008

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

FW: [SPM] spm realign

From:

"Mojabi, Pouria" <[log in to unmask]>

Reply-To:

Mojabi, Pouria

Date:

Fri, 21 Nov 2008 10:29:47 -0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (140 lines)

Thanks again for the guidance,

Here is the situation I am facing and is driving me crazy!

I am using SPM2 for now
I convert my images to the T2 space using spm_coreg then I reslice them
as you said. After you reslice them it produces an image with 'r' at the
beginning of the image name.

Then I read images with matlab analyze75read function and when I
calculate the difference before and after re-slicing I get all zeros
meaning nothing has changed.

Same situation with re-align, I realign and then re-slice, then I read
the images using matlab analyze75read function and the difference is
zero.

Should I not use analyze75read function from matlab when I am doing
things with SPM?

What do you think?

But still, if the reslice resamples the image using the B-spline
interpolation I should observe some differences, right?

I would really appreciate your feedback and help

Thank you very much

-P


-----Original Message-----
From: Volkmar Glauche [mailto:[log in to unmask]] 
Sent: Thursday, November 20, 2008 12:58 PM
To: Mojabi, Pouria
Subject: RE: [SPM] spm realign

It depends which version of SPM you are using. Prior to SPM5, it would  
update .mat files. Starting with SPM5, SPM supports the NIfTI format  
which stores the orientation in the header .hdr or the header part of  
the single file .nii.
Realignment without reslice will move your image matrix around in  
mm-space, without changing the values of the voxels. I.e. voxel  
(1,1,1) in image1 will be at a different position than voxel (1,1,1)  
in image2. Only if you reslice the images, you can do a voxel by voxel  
averaging.
I would recommend you to use SPM8b, and perhaps also have a look at  
the batch system which provides a structured, more abstract interface  
to SPM functionality
and has hooks to add your own code to it.

Volkmar

Quoting "Mojabi, Pouria" <[log in to unmask]>:

> One thing I observed if you don't provide output it won't update the
> header it just updates the associated mat file, correct me if I am
> wrong, and for the spm_reslice it writes images again which are
> basically the same images but just different mat files
>
> Let's say I want to do averaging but I don't want to use spm functions
> for my averaging, what I need is realigned images as an input.
>
> Let me know what you think
>
> Thank you again
>
> -P
>
>
>
> -----Original Message-----
> From: Volkmar Glauche [mailto:[log in to unmask]]
> Sent: Thursday, November 20, 2008 11:36 AM
> To: Mojabi, Pouria
> Cc: [log in to unmask]
> Subject: Re: [SPM] spm realign
>
> Dear Pouria,
>
> if you use spm_realign without output arguments, it will update the
> image headers with the new positions for you. Note that this does not
> reslice the images to a common voxel space. If you want the images to
> all have the same orientation again, you need to run spm_reslice as
> well.
> If you need the realignment parameters as output argument, then you
> have to apply them to your image headers yourself. See the if
> nargout==0 in spm_realign.m around line 136 how this is done.
>
> Quoting "Mojabi, Pouria" <[log in to unmask]>:
>
>> Dear SPMers!
>>
>> Hope all is well.
>>
>> I have recently started playing around with SPM functions to do my
ASL
>> perfusion.
>> There is something I am really confused about and was wondering if
you
>> could kindly please give me some hints or notes I can read further.
>>
>> I want to realign my images of the same subject, they all belong to
> the
>> same modality, I use spm_realign and I pass the images names, it
gives
>> me back a structure that has the matrix in it. The way I understood
it
> u
>> need this matrix to map the images to each others space; that is
M2/M1
>> to map image2 to image1
>> Now do I need to scan each image and transform every pixel to new
> pixel
>> coordinate using M2/M1 ?
>>
>> Thank you very much indeed for the help
>>
>>
>> --------------
>>
>> Pouria Mojabi
>>
>> Research Associate
>>
>> Center for Imaging of Neurodegenerative Diseases (CIND)
>> VA Medical Center
>> 4150 Clement Street,
>> San Francisco, CA 94121
>> phone: 415-221-4810 x4222
>>
>>
>
>
>
>
>
>

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
2000
1999
1998


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