Re: [vmtk-users] centerlines question
Brought to you by:
davidsteinman,
lucantiga
From: Luca A. <an...@ma...> - 2007-01-26 20:44:05
|
Hey Joong-Ho, thanks for reporting. I noticed this a few days ago. Indeed this is a issue with ITK. ITK developers are used to derive classes and build against the built version of ITK. In the build tree, those included files are in fact in Utilities/ itkExtHdrs. However, during make install the itkExtHdrs directory disappears, and all files are placed in /usr/local/include/ InsightToolkit/Utilities. Therefore, the quick workaround is to build against the built ITK version. I'll file a bug report to the ITK guys, this thing should be fixed. Thanks a lot and let me know if you need anything. Luca PS: by the way, which compiler are you using under Windows? -- Luca Antiga, PhD Biomedical Technologies Laboratory, Bioengineering Department, Mario Negri Institute email: an...@ma... web: http://villacamozzi.marionegri.it/~luca mail: Villa Camozzi, 24020, Ranica (BG), Italy phone: +39 035 4535-381 On Jan 25, 2007, at 10:36 PM, Joong-Ho Won wrote: > Hi Luca, > > It worked very well, and the results are exactly what I wanted. I > really appreciate your help. > > BTW, I had some minor troubles in compiling the source. Some ITK > headers (itkAnalyzeImageIO.h, itkGE5ImageIO.h) look for headers in > itkExtHdrs subdirectory, but they are in fact in Utilities > subdirectory. I think this is the problem of ITK, not VMTK. But I > just wanted to let you know. I use ITK3.0 on Windows XP. > > Thanks again, > > Joong-Ho. > > > Luca Antiga wrote: >> Hi Joong-Ho, last night I coded in a class that does what you >> were looking for. >> I attach the new vmtk code. >> Since there has been a change in this version on how python >> modules are organized (it's much more pythonic now), you're >> required to clean your /usr/local/lib/vmtk directory before >> installing this version. This has just to be done the first time, >> of course. >> The class that lumps branches into single centerline tracts is >> called vmtkcenterlinemerge. You have to provide split centerlines >> and it will generate a line for each branch (bifurcation tracts >> are excluded), preserving group ids: >> vmtkcenterlinemerge -ifile foo_tracts.vtp -groupidsarray GroupIds - >> blankingarray Blanking -radiusarray MaximumInscribedSphereRadius - >> length 0.01 -ofile foo_merged.vtp >> The -length option is relative to the length of the step with >> which you resample centerlines (resampling is used to generate >> coincident points on the different cells of a branch). >> Then you can display centerlines this way >> vmtkcenterlineviewer -ifile foo_merged.vtp -cellarray GroupIds >> to know what groupid is what. >> Let me know if this works for you >> Luca |