Hi Richard,
 a vtp file should contain polygonal surfaces (the 'p' in vtp stands for 'poly 
data', while the 'i' for 'image data').

Your best bet to load a vti file in Matlab is to convert it to some other image 
format, like nrrd
http://www.mathworks.com/matlabcentral/fileexchange/34653-nrrd-format-file-reader/content/nrrdread.m

or mha
http://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d/content/mha/mha_read_volume.m

Hope this helps.

Luca


On May 2, 2013, at 6:53 PM, Richard Abrich wrote:

> Hello everyone,
> 
> I used vmtklevelsetsegmentation to segment the coronary arteries in a CT 
> volume, and saved them to a VTI file, which defaulted to the XML format. I'd 
> like to import the data into Matlab for processing, but I haven't found a 
> good way to do it. Therefore, I'd like to convert the VTI XML file into a VTP 
> format.
> 
> Here is the command I'm running:
> 
> vmtkimagereader -ifile C:/levelsets.vti --pipe vmtkimagewriter -ofile 
> C:/levelsets.vtp
> 
> However, this command fails with the following popup error message:
> 
> "Microsoft Visual C++ Runtime Library"
> "Runtime error! Program: C:\Python27\pythonw.exe This application has 
> requested the Runtime to terminate it in an unusual way. Please contact the 
> application's support team for more information."
> 
> If I run it from the command line, the same output:
> 
> "This application has requested the Runtime to terminate it in an unusual 
> way. Please contact the application's support team for more information."
> 
> I've also tried using the explicit syntax with the same results:
> 
> vmtkimagereader -ifile C:/levelsets.vti --pipe vmtkimagewriter -i 
> @vmtkimagereader.o -ofile C:/levelsets.vtp
> 
> I've tried running as administrator, to no avail.
> 
> I've attached the log of the complete output. I tried adding a debug message 
> to the very beginning of the __init__(self) function in vmtkimagewriter, but 
> it seems to never reach it.
> 
> I'm on Windows 7 64-bit, with 32GB of RAM. Any ideas?
> <output.log>------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to