# 3D Image Skeletonization Tools
This repository contains programs needed to obtain a 3D skeleton and quantify the skeletonized array to statistics with the help of function present in metrics.segmentStats.
Input must be a binary array with z in its first dimension.
Skeletonization on a 3D binary array is performed by iteratively removing the boundary points until a line in the center is obtained by convolving the image with structuring elements from the [paper](https://drive.google.com/file/d/1kCEmfOx1mwoyggAfkYOsyRhOywfkiIU1/view?usp=sharing).
This function is implemented using [cython](http://docs.cython.org/src/reference/compilation.html) for fast execution and pyximport is used to automatically build and use the function
Using mayavi is a useful way to visualize these test stacks
Install mayavi via:
```conda install -c menpo mayavi=4.5.0```
This version works on python 3
Versions < 4.5 don't work on python 3.x
mayavi also requires that QT4 (pyqt) is installed
This may be in conflict with matplotlib >=1.5.3, which started to use qt5. So, use mayavi and matplotlib in a separate [conda](https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-16-04) environment to avoid conflicts
View the stack contours:
```import mayavi as mlab```
```mlab.contour3d(anynpynonbooleanarray)```
```mlab.options.offscreen = True```
```mlab.savefig("arrayName.png")```
没有合适的资源?快使用搜索试试~ 我知道了~
3D图像骨架化工具_python_代码_下载
共37个文件
py:30个
npz:1个
pyx:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 158 浏览量
2022-06-15
01:06:07
上传
评论
收藏 73KB ZIP 举报
温馨提示
3D 图像骨架化工具 该存储库包含获取 3D 骨架所需的程序,并借助 metrics.segmentStats 中存在的函数将骨架化数组量化为统计数据。 输入必须是第一个维度为 z 的二进制数组。 3D 二进制数组的骨架化是通过迭代移除边界点来执行的,直到通过将图像与论文中的结构元素进行卷积而获得中心的一条线。 该函数使用cython实现快速执行,使用 pyximport 自动构建和使用该函数 使用 mayavi 是可视化这些测试堆栈的有用方法 通过以下方式 安装 mayavi: conda install -c menpo mayavi=4.5.0 此版本适用于 python 3 版本 < 4.5 不适用于 python 3.x mayavi 还需要安装 QT4 (pyqt) 这可能与 matplotlib >=1.5.3 冲突,它开始使用 qt5。因此,在单独的conda环境中使用 mayavi 和 matplotlib 以避免冲突 查看堆栈轮廓: import mayavi as mlab mlab.contour3d(anynpynonbooleanarray) ml
资源推荐
资源详情
资源评论
收起资源包目录
3scan-skeleton-master.zip (37个子文件)
3scan-skeleton-master
.flake8 284B
.gitignore 971B
README.md 1KB
metrics
segmentStats.py 18KB
segmentStats_tests.py 5KB
__init__.py 0B
runscripts
objWrite_tests.py 3KB
firstPhantom.py 3KB
phantom.py 4KB
testCasesVascularize.py 6KB
__init__.py 0B
getMetrics.py 299B
animation.py 4KB
objWrite.py 4KB
requirements.txt 799B
.travis.yml 437B
setup_cython.py 408B
skeleton
thinVolume_tests.py 10KB
pruning_tests.py 1KB
rotational_operators_tests.py 3KB
networkx_graph_from_array.py 7KB
skeletonClass_tests.py 3KB
image_tools.py 12KB
generate_lookup_array_tests.py 3KB
lookuparray.npz 273KB
pruning.py 2KB
thinVolume.py 2KB
__init__.py 203B
skeleton_testlib.py 4KB
skeletonClass.py 3KB
rotational_operators.py 5KB
thininng_tests.py 5KB
io_tools.py 8KB
networkx_graph_from_array_tests.py 2KB
io_tools_tests.py 398B
generate_lookup_array.py 9KB
thinning.pyx 6KB
共 37 条
- 1
资源评论
- 追梦你我他2022-12-10感谢资源主的分享,这个资源对我来说很有用,内容描述详尽,值得借鉴。
- jsonjson2023-03-03这个资源内容超赞,对我来说很有价值,很实用,感谢大佬分享~
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功