Hi Anouk, Ben,
right, although there might be a chance that just doing
system('vmtk vmtksurfaceviewer -ifile foo.vtp');
might work, i.e. just specify the pipe right after the call to the vmtk script
- the one that makes pypepad show up (above I just wrote "vmtk", but whatever
you used that launched pypepad is fine).
Luca
On Apr 1, 2013, at 7:55 PM, Berkowitz, Benjamin M wrote:
> Anouk,
>
> You would need to have vmtk command line functionality implemented in order
> to use the vmtkscripts with the system function
> (http://www.vmtk.org/Main/Installation/).
>
> Ben
>
>
> On Mar 29, 2013, at 7:58 AM, Anouk Post <[email protected]> wrote:
>
>> 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 <[email protected]> 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
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>>
>>
>>
>>
>> --
>> Best Wishes,
>>
>> Anouk
>> ------------------------------------------------------------------------------
>> Own the Future-Intel(R) Level Up Game Demo Contest 2013
>> Rise to greatness in Intel's independent game demo contest. Compete
>> for recognition, cash, and the chance to get your game on Steam.
>> $5K grand prize plus 10 genre and skill prizes. Submit your demo
>> by 6/6/13.
>> http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2_______________________________________________
>> vmtk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
vmtk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vmtk-users