[Pkg-exppsy-pymvpa] consult - Open no-header images
Michael Hanke
michael.hanke at gmail.com
Fri Apr 4 15:52:54 UTC 2008
Ah! Or do you mean 'single file nifti image' with header inside the file
;-)
In this case, I'd like to know the filename of the file, as you try to
open it without any extension?
Cheers,
Michael
On Fri, Apr 04, 2008 at 12:18:51PM -0300, Marco Zanger wrote:
> Hi,
>
> I'm current having a problem trying to open nifti images I've created
> without a header. This image is a "mask" I created using mipav, and i need
> to open it though it has no header. any suggestion?
>
> Regards,
> Marco
>
> The traceback is this:
>
> ** ERROR (nifti_image_read): cannot create nifti image from header
> 'mask.nii'
> Traceback (most recent call last):
> File "/home/marcozanger/workspace/MRISegment/src/MRI/ParseOptimized.py",
> line 333, in <module>
> ERROR, UNEXPECTED EXCEPTION
> Error while opening nifti header.
> main()
> File "/home/marcozanger/workspace/MRISegment/src/MRI/ParseOptimized.py",
> line 269, in main
> mask = NiftiImage('mask')
> File "/usr/lib/python2.5/site-packages/nifti/niftiimage.py", line 322, in
> __init__
> self.__newFromFile( source, load )
> File "/usr/lib/python2.5/site-packages/nifti/niftiimage.py", line 417, in
> __newFromFile
> raise RuntimeError, "Error while opening nifti header."
> RuntimeError: Error while opening nifti header.
> _______________________________________________
> Pkg-exppsy-pymvpa mailing list
> Pkg-exppsy-pymvpa at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
--
GPG key: 1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050
More information about the Pkg-exppsy-pymvpa
mailing list