Re: [vmtk-users] How to use vmtk in c++?
Brought to you by:
davidsteinman,
lucantiga
From: Luca A. <luc...@gm...> - 2013-04-22 15:48:26
|
Hello Haibin, vmtk is composed of a low-level layer in C++ and a high-level layer in Python (www.python.org). A vmtk pipe is essentially a Python program that you compose at the command line. Therefore, you'll be able to run a pipe outside of PypePad, you just need to run it inside any Python interpreter. However, if you need to use vmtk functionality from C++ you need to use vmtk C++ classes directly, such as vtkvmtkPolyDataCenterlines. These are all classes derived from VTK classes, so the best way to learn how to use vmtk from C++ is to learn VTK (www.vtk.org). You can find all C++ classes in the vtkVmtk directory and you can have an idea on how to use them by looking at how they are instantiated inside the vmtk scripts in the vmtkScripts directory. Hope this gives you an outlook so you can take an informed decision. Luca On Apr 22, 2013, at 5:40 PM, Haibin Cai wrote: > Hello vmtk-users, > I can use vmtk to compute the centerlines of vessels now. The only thing I need to do is to type the following in pypepad ---"vmtkcenterlines -ifile E:\\zbuild\\fengeguli.vtp -ofile E:\\zbuild\\fengegulicenter_4.vtp --pipe vmtkrenderer --pipe vmtksurfaceviewer -ifile E:\\zbuild\\fengeguli.vtp -opacity 0.25 --pipe vmtksurfaceviewer -ifile E:\\zbuild\\fengegulicenter_4.vtp". Is there a way that the program can be operated in vs2010 but not on the pypepad? > Thanks, > haibin > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________ > vmtk-users mailing list > vmt...@li... > https://lists.sourceforge.net/lists/listinfo/vmtk-users |