Re: [vmtk-users] calling VMTK from MATLAB
Brought to you by:
davidsteinman,
lucantiga
From: Anouk P. <ano...@gm...> - 2013-03-29 12:58:40
|
Hi Luca, Thanks! I do understand how I can open VMTK from MATLAB, but not how to actually run a VMTK 'script' from MATLAB. When I use the system function it just opens pypepad. Do you know how I can actually let it run a VMTK script? Best wishse, Anouk On 29 March 2013 12:56, Luca Antiga <luc...@gm...> wrote: > Hi Anouk, > you'll probably have to use the system() function in Matlab to call vmtk > the way you call it from the command line. > It should work. > > Luca > > PS: a couple of random references on the system function > > > http://stackoverflow.com/questions/6708760/non-blocking-call-to-external-program-without-losing-return-code > http://www.mathworks.com/matlabcentral/newsreader/view_thread/324084 > http://www.perlmonks.org/?node_id=768159 > > On Mar 25, 2013, at 6:06 PM, Anouk Post wrote: > > Dear VMTK Users, > > I am using VMTK to calculate centerlines of stl files. This is part of a 3D reconstruction process for which I use MATLAB. I really want to incorporate the VMTK part of the process into my MATLAB code. > > Does anyone know how I can call VMTK from MATLAB and execute a VMTK script? > > Thanks! > > Best wishes, > > Anouk > > > P.S. My VMTK code is: > > vmtksurfacereader -ifile /Users/.../Phantom_Best_Catheter_now.stl -f "stl" --pipe vmtkcenterlines -endpoints 1 -seedselector openprofiles --pipe vmtkcenterlinegeometry -ofile /Users/.../Phantom_Best_Catheter_now_output.dat > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar_______________________________________________ > vmtk-users mailing list > vmt...@li... > https://lists.sourceforge.net/lists/listinfo/vmtk-users > > > -- Best Wishes, Anouk |