Hi users and developes of Slicer
For creating surface model from one nifti image file, I used “Grayscale Model Maker” module in the category of “Surface Models”. I can save this surface model in vtk format successfully.
At now, I want to save this surface model in nifti format. How can I do it (convert vtk to nifti or dicom)?
I do not know to do it using Slicer modules. How can do it using Slicer?
I try to do it using applications such as Convert3D (c3d), itksnap or gdcm (gdcm2vtk), but I do not success. I get the following error messages.
[sn@localhost Documents]$ gdcm2vtk -h
gdcm2vtk: gdcm 2.8.2 $Date$
vtk version 6.3.0
Usage: gdcm2vtk [OPTION] input output
Convert a vtk-supported file into DICOM.
[sn@localhost Documents]$ ll -h *.vtk
-rw-rw-r–. 1 sn sn 68K Sep 11 08:52 myTest.vtk
[sn@localhost Documents]$ gdcm2vtk myTest.vtk myTest.dcm
Warning: In /builddir/build/BUILD/VTK-6.3.0/IO/Legacy/vtkDataReader.cxx, line 490
vtkStructuredPointsReader (0x2bbb860): Reading file version: 4.1 with older reader version 4.0
could not find no reader to handle file: myTest.vtk
[sn@localhost Documents]$ c3d myTest.vtk -o myTest.dcm
Exception caught of type 16ConvertException
After select myTest.vtk in the window of “Open Image - ITK-SNAP”, I get this error message: "Error: Wrong Format: The IO library for the format ‘VTK Image’ can not read the image file.’
Please guid me to solve it. How can I convert vtk file to nifti format?
Please guide me.
Thanks a lot.