Won't open VTK file

331 views
Skip to first unread message

kge...@research.baycrest.org

unread,
Mar 14, 2018, 4:55:13 PM3/14/18
to itksnap-users
Hi!

I was wondering if anyone could help me with an issue I'm having. 

My overall goal is I want to take a file sent to me by another lab which represents a brain region. This file is in VTK format which I'm very unaccustomed to. I want to covert this file to nifti format so I can turn it into a mask and use it as a "region of interest" in my neuroimaging analysis. 

However, when I try to open the VTK file in ITK-SNAP it gives me the following error: "Error: Wrong Format. The IO library for the format 'VTK Image' can not read the image file." This seems particularly bizarre seeing as the file format option is set to "VTK Image" so should be expecting a VTK file. 

Another thing I have tried is to use Convert3d which I understand is related. However when I try to use a command like the following to convert no nifti I get a similar error.
c3d C:/Users/kgeier/Desktop/MorelAtlasROIs/FileName.vtk -type uchar -o test.nii

Exception caught of type class ConvertException
  Exception detail: Unable to read image C:/Users/kgeier/Desktop/MorelAtlasROIs/FileName.vtk; IO factory can not create IO object.
Command C:/Program Files/Convert3D/bin/c3d.exe returned with error code -1


Any tips for how to proceed would be much appreciated!

Thanks,
Kirk Geier

Markus Heller

unread,
Mar 16, 2018, 8:50:49 AM3/16/18
to itksnap-users
Kirk are you sure that the file does contain image data and not e.g. some surface data?
Maybe you can check this in ParaView
Best wishes,
Markus
Reply all
Reply to author
Forward
0 new messages