[Insight-users] Problems with nifti File io and vector images.

Karthik Krishnan karthik.krishnan at kitware.com
Wed Jul 2 14:46:03 EDT 2008


Luke:

Only file formats that support 3D multi-component images can be used to 
write out VectorImage. The file formats that do support it are 
MetaImage, NRRD, VTK XML, and several few others.

ITK users:   Does NIFTI IO in ITK support 3 dimensional multi-component 
images ?

If so, you might have found a bug.
If not, sorry.. please use another file format.

Thanks
--
karthik

Luke Bloy wrote:
> Hi i'm having trouble writing VectorImages to nifti files. What I'm
> trying to do is convert a 4D analyze Image to a 3D vectorImage. I'm
> attaching a testProgram that does this.
>
> It works fine if i specify the output as either .nhdr or as .mhd but if
> i specify the output as .nii I get a 352 byte nii file. ie the
> databuffer doesn't get written to the file? If i use the 2 file nifti
> then I get the header and a 0 byte img file?
>
> any ideas?
> -Luke
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

-- 
--
Karthik Krishnan
R & D Engineer,
Kitware Inc,




More information about the Insight-users mailing list