用于GATE的Python工具,请参见https://github.com/OpenGATE/Gate
gatetools的Python项目详细描述
安装方式:pip install gatetools
用法示例:
gt_gate_info
gt_image_convert -i input.dcm -o output.mhd
gt_image_convert -i input.mhd -o output_float.mhd -p float
gt_image_arithm -i *.mhd -o output.mhd -O sum
gt_gamma_index dose.mhd gate-DoseToWater.mhd -o gamma.mhd --dd 2 --dta 2.5 -u "%" -T 0.2
使用标志-h
获取每个工具的打印帮助。下面是命令行工具的当前列表。在
Tool | Comment |
---|---|
^{ | Resample (resize, rotate) an image |
^{ | Print tag values of a dicom file |
^{ | Convert Dicom RT proton plan for Gate |
^{ | Turn Dicom RT Struct contours into mask image |
^{ | Create Dose Volume Histogram |
^{ | Compute gamma index between images |
^{ | Display info about current Gate/G4 version |
^{ | Pixel- or voxel-wise arithmetic operations |
^{ | Convert image file format (dicom, mhd, hdr, nii ... ) |
^{ | Crop an image |
^{ | Blur an image using gaussian filter |
^{ | Resize an image |
^{ | Statistics of an image |
^{ | Compute statistical uncertainty |
^{ | Convert a phase space file from root to npy |
^{ | Display information about a phase space file |
^{ | Merge two phase space files (output in npy only) |
^{ | Try to detect photopeaks (experimental) |
^{ | Plot marginal distributions form a phase space file |
^{ | Convert image (mhd, nii, ...) to dicom |
所有工具也可以在您自己的Python脚本中使用,例如:
^{pr2}$测试:运行
python -m unittest gatetools -v
python -m unittest gatetools.phsp -v
类和函数文档。使用以下命令打开用于文档的浏览器(它仍然不太方便;稍后将进行改进)。在
pydoc -b
对于开发人员,请查看readme_dev.md文件。在
- 项目
标签: