Re: [vmtk-users] Problem with VMTKcenterlinegeometry
Brought to you by:
davidsteinman,
lucantiga
From: Arjan G. <aj...@gm...> - 2012-04-26 16:45:09
|
Hi Manasi, The not-so-elegant solution to your problem may be here: http://sourceforge.net/mailarchive/message.php?msg_id=28032510 Open the file .\vmtk 0.9.0\lib\vmtk\vmtk\vmtkcenterlinegeometry.py in a text editor and add the following lines near the end of the file: centerlineGeometry.SetLengthArrayName('Length') centerlineGeometry.SetTortuosityArrayName('Tortuosity') Run the following in PypePad to get the desired output: vmtkcenterlinegeometry -ifile cl.vtp -smoothing 1 -iterations 10 -outputsmoothed 1 -ofile clgm.tec Notice that you should leave out of your script "-lengtharray Length" and "-tortuosityarray Tortuosity",because those array names are now hard-coded. Otherwise, you will receive again the error message: "vmtkcenterlinegeometry error: unknown option -lengtharray" Optionally, you could leave out "-curvaturearray Curvature", because the default value is 'Curvature'.* *And you could leave out "-i Centerlines", because you already specify the centerline with "-ifile cl.vtp". Hope this helps, Arjan On Thu, Apr 26, 2012 at 3:04 PM, Ramachandran, Manasi < man...@ui...> wrote: > Hi, > > > > I am using VMTK0.9 on windows 7 (64 bit). I have some problem using > vmtkcenterlinegeometry. > > > I ran this command: > *vmtkcenterlinegeometry -i Centerlines -ifile > stented_Series5_Negative20_levelsets_cl_CL.vtp -lengtharray Length > -curvaturearray Curvature -tortuosityarray Tortuosity -smoothing 1 > -iterations 10 -outputsmoothed 1 -ofile > stented_Series5_Negative20_levelsets_cl_CLGM.tec* > > And it will not detect most parameters. Here is the message I get: > > *Creating vmtkCenterlineGeometry instance.** > Automatic piping vmtkcenterlinegeometry** > Parsing options vmtkcenterlinegeometry** > vmtkcenterlinegeometry error: unknown option -lengtharray** > vmtkcenterlinegeometry : compute the local geometry of centerlines in** > terms of curvature and torsion** > Input arguments:** > -id Id (str,1); default=0: script id** > -handle Self (self,1): handle to self** > -disabled Disabled (bool,1); default=0: disable execution and** > piping** > -i Centerlines (vtkPolyData,1): the input centerlines** > -ifile CenterlinesInputFileName (str,1): filename for the default** > Centerlines reader** > -curvaturearray CurvatureArrayName (str,1); default=Curvature: name** > of the array where curvature values have to be stored** > -torsionarray TorsionArrayName (str,1); default=Torsion: name of** > the array where torsion values have to be stored** > -frenettangentarray FrenetTangentArrayName (str,1);** > default=FrenetTangent: name of the array where tangent vectors of** > the Frenet reference system have to be stored** > -frenetnormalarray FrenetNormalArrayName (str,1);** > default=FrenetNormal: name of the array where normal vectors of** > the Frenet reference system have to be stored** > -frenetbinormalarray FrenetBinormalArrayName (str,1);** > default=FrenetBinormal: name of the array where binormal vectors** > of the Frenet reference system have to be stored** > -smoothing LineSmoothing (bool,1); default=0** > -outputsmoothed OutputSmoothedLines (bool,1); default=0** > -iterations NumberOfSmoothingIterations (int,1) >= 0; default=100** > -factor SmoothingFactor (float,1) >= 0.0; default=0.1** > -ofile CenterlinesOutputFileName (str,1): filename for the default** > Centerlines writer** > Output arguments:** > -id Id (str,1); default=0: script id** > -handle Self (self,1): handle to self** > -o Centerlines (vtkPolyData,1): the output centerlines** > -curvaturearray CurvatureArrayName (str,1); default=Curvature: name** > of the array where curvature values are stored** > -torsionarray TorsionArrayName (str,1); default=Torsion: name of** > the array where torsion values are stored.* > > And when I try running the basic command with only -ifile and -ofile, I > get an empty .tec file. I dont know if it has anything to do with running > VMTK on windows. I am able to run vmtkcenterlineattributes > successfully. Please let me know if anyone else has had the same problem > and how you tried to fix it. > > Thanks, > Manasi > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > vmtk-users mailing list > vmt...@li... > https://lists.sourceforge.net/lists/listinfo/vmtk-users > > |