vmtkcenterlines -ifile foo.vtp -ofile foo_centerlines.vtp
with my converted aorta segment as foo.vtp, an empty blue window appears. I'm guessing something must be wrong with the foo.vtp because I was expecting to see the same geometry that I can see in VTK
after reading in the .obj file.
Anyway, I need to build some confidence in the vmtkcenterlines script. I searched vmtkcenterlines in these archives and can see 172 threads of people having lots of problems. Can someone please
provide a very simple example of something that actually works? Something that explains every step clearly and doesn't leave anything to guess about. (For example, the vmtkcenterline tutorial
talks about adding source points but doesn't explain what those are. It says to zoom up to select them but doesn't say how to zoom up, etc).
Thank you,
Greg
Luca
Hello Luca,
I got the trachea.vtp but don't see any screen shots.
1) I right-clicked on my vmtk icon and selected properties. The "Target" field shows: C:\Program Files\vmtk\Install\bin\vmtk-exe.pyw and the "Start in" field shows "C:\Program Files\vmtk\Install\lib\vtk-5.8".
2) So I put your trachea.vtp in the target directory
3) Next I brought up PypePad and entered "vmtkcenterlines -seedselector openprofiles -ifile trachea.vtp -ofile trachea_centerline.vtp" (no quotes)
4) Put the cursor on that line and select "Run current line" from the Run menu
5) That brought up a blue window showing the trachea geometry along with 3 white labels 0, 1, and 2 located at the center of the left, right and main branches, respectively. (I could tell this by holding the LMB down and rotating the geometry). I did not see the centerlines themselves and assumed they must only be in the trachea_centerline.vtp. A search for that file, however, revealed nothing.
6) Then I noticed the q:Quit render/proceed option in the window so I pressed the "q" button on the keyboard.
7) Next the prompt said "Please input list of inlet profile ids:". Not sure what it wanted so I entered "2".
8) Next the prompt said "Please input list of outlet profiles (leave empty for all available profiles)". So I just hit the Enter button.
9) I briefly saw "Computing centerlines" in the geometry window and then it turned to white and had the following error messages:
ERROR: In C:\Users\orobix\Documents\VMTK\vmtk-build\VTK\Rendering\vtkFreeTypeUtilities (0000000003610/e40): no text in input
ERROR: IN C:\Users\orobix\Documents\VMTK\vmtk-build\VTK\IO\vtkXMLPolyDataWriter (000000000361E3A0): Error opening output file "tra*
ERROR: In C:\Users\orobix\Documents\VMTK\vmtk-build\VTK\Filtering\vtkStreamingDemandDrivenPipeline (00000000036BA830): Algorithm vtkX*
Debug: Off
Modified Time: 165868
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM OUTPUT PORT: -1
*The title of the window said vtkOutputWindow (Not Responding) so I could not scroll it to the right to see the rest of the line
10) I closed PypePad and reran steps 3-7
11) This time around I entered 0 1 for the outlet profiles instead of leaving it blank.
12) Again, the blue window turned white with error messages. This time, the first error ("no text in input") was gone but there was a new error at the end:
ERROR: In C:\Users\orobix\Documents\VMTK\vmtk-build\VTK\Filtering\vtkStreamingDemandDrivenPipeline (00000000036BCA10): Algorithm vtkX*
I'm guessing some kind of Windows 8 security crap is preventing the writing of trachea_centerline.vtp so I
13) Created empty folder C:\Users\Greg\Documents\BiologyModeling\VMTK_Centerlines (I then right-clicked on this folder and selected Properties to look at the permissions. The
Read-only checkbox was checked. I unchecked it and clicked Apply, then Ok. But when I looked at properties again, Read-only was still checked. I couldn't figure out how to make it stick.
I note that I have Full control but the check marks are grayed out and inaccessible)
Then I closed PypePad and reran steps 3-7, and 11 but this time around I used: -ofile C:\Users\Greg\Documents\BiologyModeling\VMTK_Centerlines\trachea_centerline.vtp in step 3
But alas, got the same white window with same error messages.
I also note, there is no C:\Users\orobix folder so don't know where it's coming up with that.
Hope you can shed some more light.
Thank you,
Greg
You received this message because you are subscribed to a topic in the Google Groups "vmtk-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vmtk-users/U282bsvHBT8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vmtk-users+...@googlegroups.com.
Hello Luca,
Here is the last command I tried:
vmtkcenterlines -seedselector openprofiles -ifile trachea.vtp -ofile c:\VMTK_Centerllines\trachea_centerline.vtp
Yes, that's what it looks like to me too because of "Error opening output file..."

I pasted a screenshot above. If it doesn't show up and there is a better way to get it to you, let me know.
I've searched for hours on google for permission issues regarding Windows 8 and tried as many things as I could think of. Nothing worked. From what I can see, it is an absolute nightmare. It is so complex I don't know how anybody can figure it out. I am the sole user of this computer. I am the administrator. I don't even have a password on it so when I reboot, there is no login. Yet apparently I am not allowed to write to any folder I've created anywhere on the hard drive. Advice to anybody considering "upgrading" to W8: Don't do it, you'll be sorry. W8 sucks big time.
Here are some of the things I've tried:
1) Created subfolder in the standard Documents folder and at C: level
2) Made sure the permissions of each group or user name listed was set to Full control
3) Clicked Advanced button in Security tab. Disabled inheritance and made sure each Principal was set to Full control.
4) "Open as administrator" a dos shell. Used the attrib -r -s Drive:Foldername to reset read-only flag and system flag, if set.
5) Created a text file in the folder called trachea_centerlines.vtp. Set each Principal to Full Control. (Thinking maybe if a file by that name already existed, maybe it would be able to modify it.)
I give up.
Hello Luca,
Here is the last command I tried:
Hello Luca,
I normally start vmtk by clicking on the vmtk icon. If you look at the properties of the icon you see:

Notice it starts in C:\Program Files\vmtk\Install\lib\vtk-5.8 where there are many .dll files needed.
There is no "run as administrator" option on .pyw files, only on .exe files. Presumably because .pyw files run inside of pythonw.exe. Using the properties window of python.exe, I set the compatibility to Windows 7 (there was no windows 8 option but I've read that W8 is really W7 under the hood, they just screwed up the interface to it). I can "run as administrator" pythonw.exe. When I do, I don't see anything happen and a prompt appears asking me if it ran ok. No idea.
So apparently I will need to open a command prompt "as administrator" and then enter the right line that will run vmtk-exe.pyw but also set the Start in folder. Something like pythonw.exe vmtk-exe.pyw -s StartFolder.
But I will need help from someone who knows the Windows particulars better than me to get the syntax right.
Note that I tried running vmtk like usual after I had set the pythonw.exe compatibility to W7, but got the same error again, so apparently that is not enough.
Greg
From: vmtk-...@googlegroups.com [mailto:vmtk-...@googlegroups.com] On Behalf Of Luca Antiga
Sent: Friday, September 6, 2013 3:29 PM
To: vmtk-...@googlegroups.com
Subject: Re: [vmtk-users] vmtkcenterlines example
Hi Greg,
I'm sorry with your experience with vmtk on Windows 8. I have no personal experience with that and do not have a W8 box around, so I can't really help.
Maybe the issue could be related to the fact that the vmtk installer might not be "signed" or might lack a manifest of some kind that could make W8 allow certain operations to it.
From what I'm reading on the Internet
http://www.verboon.info/index.php/2011/03/running-an-application-as-administrator-or-in-compatibility-mode/
http://technet.microsoft.com/en-us/magazine/ff431742.aspx
you should probably try running vmtk in Compatibility, Run as Administrator mode.
It would be great if you found the time to try this out and let me know.
Best,
Luca
On Wednesday, September 4, 2013 5:39:59 PM UTC+2, Greg Hanowski wrote:
Hello Luca,
Here is the last command I tried:
vmtkcenterlines -seedselector openprofiles -ifile trachea.vtp -ofile c:\VMTK_Centerllines\trachea_centerline.vtp
Yes, that's what it looks like to me too because of "Error opening output file..."

Error! Filename not specified.
Error! Filename not specified.
Error! Filename not specified.
--
You received this message because you are subscribed to a topic in the Google Groups "vmtk-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vmtk-users/U282bsvHBT8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vmtk-users+...@googlegroups.com.
To post to this group, send email to vmtk-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.