[pymvpa] How to export neighborhood relationships of NiftiDataset?
Yaroslav Halchenko
debian at onerussian.com
Tue Nov 8 12:55:22 UTC 2011
axes and direction depend on how they are stored in your specific
Nifti -- and those could vary since we do not deduce physical
orientation of the volume anyhow from qform.
On Tue, 08 Nov 2011, 冯璐 wrote:
> I think that is what I need.
> So array([0, 0, 1]) is the coordinate in the voxel space. X from 0 to max: right->left; Y from 0 to max: posterior->anterior; Z from 0 to max: inferior->superior ??
> Best wishes!
> Lu FENG
> fenglu at fingerpass.net.cn
> -----Original Message-----
> From: pkg-exppsy-pymvpa-bounces+fenglu=fingerpass.net.cn at lists.alioth.debian.org [mailto:pkg-exppsy-pymvpa-bounces+fenglu=fingerpass.net.cn at lists.alioth.debian.org] On Behalf Of Yaroslav Halchenko
> Sent: 2011年11月8日 13:35
> To: Development and support pf PyMVPA
> Subject: Re: [pymvpa] How to export neighborhood relationships of NiftiDataset?
> so we are talking about 0.4.x series of pymvpa (in 0.6 AKA mvpa2 voxel
> indices are explicitly stored in feature attributes of a dataset): so I
> guess you are looking for:
> In [10]: from mvpa.tests.tests_warehouse import datasets
> In [11]: datasets['3dsmall'].mapper.getInId(0)
> Out[11]: array([0, 0, 1])
> ?
> On Tue, 08 Nov 2011, 冯璐 wrote:
> > Dear experts,
> > I know that using NiftiDataset.map2Nifti() or other functions
> > like mapForward() or mapReverse(), we can deal with either 2D or 3D
> > dataset freely. But I wonder how to export the neighborhood relationships
> > of the volume. Briefly, I��d like to have a transformation matrix or a
> > list of coordinations for each voxel. I need this if I go on with
> > processing by other tools instead of PyMVPA.
> > Thanks in advanceJ
> > Best wishes!
> > Lu FENG
> > fenglu at fingerpass.net.cn
> > __________ Information from ESET NOD32 Antivirus, version of virus
> > signature database 6532 (20111010) __________
> > The message was checked by ESET NOD32 Antivirus.
> > [1]http://www.eset.com
> > References
> > Visible links
> > 1. http://www.eset.com/
> > _______________________________________________
> > Pkg-ExpPsy-PyMVPA mailing list
> > Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa
--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
More information about the Pkg-ExpPsy-PyMVPA
mailing list