没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Tutorials
These are a bunch of tutorials on the use of vmtk. The first group is about the
infrastructure, the second about the functionality. You should really read the first
two infrastructure tutorials before moving on to the functionality tutorials.
Infrastructure
Vmtk Scripts - learn how to run vmtk scripts
Using Pypepad - learn how to use Pypepad
Basic PypeS Tutorial - learn how to effectively pipe vmtk scripts together
Use PypeS Programmatically - learn how to interactively work with PypeS
objects
Advanced PypeS Tutorial - learn how to write your own PypeS modules
Functionality
Getting Started - learn how to get your original dataset to work into vmtk
and set it up for further processing
Level Set Segmentation - learn how to reconstruct the 3D surface of a
vascular segment from CT or MR images using level sets
Computing Centerlines - learn how to compute centerlines of a vascular
segment
Preparing a Surface for Meshing - learn how to prepare a surface for mesh
generation
Generating a Mesh - learn how to generate a mesh from a surface
Meshing the Netgen Way - learn an alternative way of meshing with
Netgen
Branch Splitting - learn how to split a branching vessel into its constituent
branches
Geometric analysis - learn how to analyze the 3D geometry of a vascular
segment
Mapping and patching - learn how to map the surface of a population of
vessels onto the same parametric space and enable statistical analyses of
surface-based quantities
Applications
Cerebral aneurysms
Parent Vessel Reconstruction - learn how to perform digital aneurysm
removal and reconstruct the parent vessel using Matthew Ford's method
(Ford et al, BJR 2009). Contributed by Marina Piccinelli, Math&CS
Department, Emory University, Atlanta, US
Contributed tutorials
Image feature correction - learn how to correct the feature image in order
to have a good surface model near bone and pockets of air. Contributed by
Rob Jansen, Dept. of Biomedical Engineering, Eindhoven University of
Technology
Tutorial data
Aorta_voi.zip
OsiriX DICOM sample image sets
Infrastructure
vmtk scripts
vmtk algorithms are implemented in C++ classes. Python scripts, then call C++
classes and make them interact with each other.
If you're a user and you need the functionality included in vmtk, all you'll probably
need to care is how to run the scripts. There are several ways of running scripts,
although for the moment they basically consist in typing the name of the script
followed by options on some kind of command line.
For example, if you want to run the vmtkmarchingcubes script under Linux, you
can fire up a terminal and type
vmtk vmtkmarchingcubes -ifile foo.vti -ofile foo_mc.vtp
where foo.vti is an input image file in VTK XML format and foo_mc.vtp is a output
surface file in VTK XML format.
If you built vmtk from sources with the CMake flag MINIMAL_INSTALL set to OFF
and installed vmtk system-wide with make install, you can omit the vmtk and
directly write
vmtkmarchingcubes -ifile foo.vti -ofile foo_mc.vtp
You can also save your command vmtkmarchingcubes -ifile foo.vti -ofile
foo_mc.vtp into a text file, say my_script.txt, and run it by typing
vmtk --file my_script.txt
All lines in the text file will be executed, except those preceded by the character #,
which are used to indicate comments. Also, you can break a line by placing a
backslash \ symbol at the end of the line. In that case, the two subsequent lines
will be joined and then executed.
If you don't like the terminal or if you're on Windows (in which you can't possibly
like the command prompt!), you can use vmtk from a Tcl/Tk GUI. To do that,
simply run vmtk followed by no option.
A window will appear, whose title is PypePad for reasons you'll understand in
the next tutorial. It's organized in three panes, the top one in which you're
supposed to type text (the same way you do in the terminal), the gray one below in
which text messages will appear during execution and the bottom one, only one
line high, where you'll be eventually prompted to type in values or text during
execution.
Clicking with the right mouse button on the first pane makes a menu appear. From
there you can call contextual help, insert the name of a script among those that
are available or insert the name of a file by browsing in your file system.
Additionally, you can run the whole content of the pane or just the current line or
the current selection.
From the File menu you can also save the contents of the command pane or load
them from a text file. Note that saved text files can be also run from outside the
GUI with
vmtk --file my_file.txt.
Now you're ready to learn more about how vmtk scripts can interact with each
other in the basic PypeS tutorial.
Using Pypepad
by Carlos Remuzzi BEng, Biomedical Engineering, Freelance Developer, London UK
Vmtk operates in a text based environment but there is a version known as
Pypepad which operates in a GUI environment. Pypepad allows you to
interactively edit your pypes. It has full mouse support, clipboard support and
autocomplete functionality.
Running Pypepad
To run Pypepad simply enter the following command in your terminal:
vmtk &
If you are on Windows simply run vmtk-exe.py located in your VMTK installation
directory. Typically:
C:\Program Files\VMTK\bin\vmtk-exe.py
The window shown in Figure 1 will appear, layout may vary depending on your
platform and system settings:
Figure 1:
Pypepad
The Pypepad environment
Pypepad is organized in three main frames. The first on the top, referred as
the Input frame, is where you write and edit your pype; the second in the middle,
referred as the Output frame, is where the output text is displayed and the third
on the bottom, as the Entry frame, is where you enter values whenever prompted
by a script.
Pypepad Settings
Pypepad can work in a verbose or a non verbose mode. Also, it can save or
update a log file. To define your suitable behaviour use the following commands:
Toggle Verbose Output:
Edit -> Log
Disable Output Writing :
Edit -> No output to file
Save the Output to a file:
Edit -> Write output to file
剩余93页未读,继续阅读
shisanage999
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页