[vmtk-users] How to provide vmtkcenterlines.py with predetermined source and target points
Brought to you by:
davidsteinman,
lucantiga
From: David R. <dav...@ya...> - 2012-06-17 20:28:05
|
Hi Luca, I would need to make the process of building centerlines without following the default procedure of letting the code opening a window and asking for manually picking points. I would rather have to make the process fully automatic (and without opening any window, like in batch then), provided I know in advance the coordinates of source and target points. So, is this possible to provide vmtkcenterlines.py with such coordinates directly, either by any command (maybe via -sourcepoints x1, y1, z1 and -targetpoints x2, y2, z2, x3, y3, z3 ), or modifying centerlines.py (by initializing SourcePoints and TargetPoints as shown below, and commenting all unrelevant parts of the script to prevent them running) ? self.SourceIds = [1] self.TargetIds = [2, 3] self.SourcePoints = [2.94, 60.07, -96.04] self.TargetPoints = [28.79, 58.05, -323.46, -36.92, 64.15, -323.33] Thanks in advance David (PhD student) |