[Insight-users] Problems with nifti File io and vector images.
Luis Ibanez
luis.ibanez at kitware.com
Tue Jul 8 15:33:15 EDT 2008
Hi Luke,
Thanks for tracking this further.
Hans Johnson and Kent Williams (in cc) will probably be the best
qualified developers to illuminate us on the capabilities of the
Nifti format.
You may want to log a bug in the MANTIS bug tracker:
http://public.kitware.com/Bug/my_view_page.php
just to make sure that we don't forget about the issue.
...and... of course if you are motivated, you are welcome to
join the "Adopt a bug" program,
http://www.vtk.org/Wiki/ITK_Adopt_a_Bug_Program
which will give you CVS write access to ITK and the opportunity
to contribute the bug fix directly to the repository. :-)
Regards,
Luis
-----------------
Luke Bloy wrote:
> I've had success in writing out 3d multi-component images to nifti files
> (3d images of diffusion tensors) and the nifti standard certainly
> supports this. Perhaps the problem is caused by using a itkVectorImage
> as opposed to an itkImage?
>
> I've also noticed that the NiftiImageIO class implements a non-standard
> format for writing out diffusionTensors. This bug i have a fix for. If
> the VectorImage support is a bug I would be willing to try to tackle it
> as well, with a bit of guidance :)
>
> -Luke
>
> On Wed, 2008-07-02 at 14:46 -0400, Karthik Krishnan wrote:
>
>>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
>>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list