No support for spm ecat import and imcalc ?

71 views
Skip to first unread message

Pankaj Singh

unread,
Nov 1, 2013, 7:02:56 PM11/1/13
to nipy...@googlegroups.com
Hi,

I could not find ecat import and imcalc utility in spm interface? Is it available?
If it is not there then is it that people generally do not use them? In that case what are the alternatives?

Regards,
Pankaj

Pankaj Singh

unread,
Nov 1, 2013, 7:12:38 PM11/1/13
to nipy...@googlegroups.com
My requirement is as below :
1) Convert ecat to nii (was previously using ecat  from spm util)
2) use spm realign
3) do basic image arithmetic. (was previously using imcalc from spm)

Please suggest the alternatives.

cindee

unread,
Nov 2, 2013, 8:53:12 PM11/2/13
to nipy...@googlegroups.com
Hi Pankaj,


Have you tried nibabel ?
http://nipy.sourceforge.net/nibabel/

It allows you to read in ecat images and save them to nifit format...
you also have basic access to the data array...

import nibabel.ecat as ecat
img = ecat.load('someimage.v')

you have access to frames and header info, and mlist

--Cindee



--
 
---
You received this message because you are subscribed to the Google Groups "NiPy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nipy-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Cindee Madison
Jagust Lab
UC Berkeley
cin...@gmail.com

Pankaj Singh

unread,
Nov 6, 2013, 7:02:01 PM11/6/13
to nipy...@googlegroups.com
Hi Cindee

Thanks. But I want to conver ecat to nii so that I can use it in other flows. is there any utility in nibable to do so?

Regards,
Pankaj

cindee

unread,
Nov 6, 2013, 8:00:30 PM11/6/13
to nipy...@googlegroups.com
I have some code that should work for you...I should have time to put it up on github gist later tonight or tmr am?

Ill plan to add this as an example in nibabel...should have done this long ago...

--Cindee

cindee

unread,
Nov 6, 2013, 9:23:56 PM11/6/13
to nipy...@googlegroups.com
This is quick,  but hopefully helps

https://gist.github.com/cindeem/7347843

--C
Reply all
Reply to author
Forward
0 new messages