# Segmentation
Image processing for Polymer networks microscopy images (Segmentation, pore properties calculations, 3D rendering,...) in MATLAB.
The repository was used for the following Vandaele et al. Structural characterization of fibrous hydrogels using fluorescence microscopy. (INSERT LINK)
# User guide - WorkFlow
## Before using the code
The code is only taking .tif file, this was chosen because most software can convert to tif and was to avoid to have to plan for every file type that potential user would have. The code will make sure that the pixel size in XY and in Z is the same (by extrapolation if it is not the case), so if possible, it is better to acquire with the same Z step as the XY pixel size.
All the analysis detailed below can be run for testing on the testFile.tif that is in the repository.
## 1. Segmentation
To perform segmentation on the data, one need to use **mainImSegmentation.m**
Within the code there is a section **User Input** within which the parameter for the segmentation (sensitivity, cleanup,...) can be tuned although I would recommend to start with default. Each parameter is briefly explained in comment in the code. Once you have set the parameter, simply press run, it will open a dialog where you can indicate a **folder** in which your data is stored. In this folder, it will search and segment all the .tif files contained and stored the resulting segmentation in a folder called **SegmentedStacks** inside the user-indicated folder. The analysis will be run with adaptive threshold and single-threshold. It is important that you check which one works best on your data so you can choose after which one needs to be used for the property determination. **!!! The segmented image are inverted compare to the image so what is bright in the image will appear dark and vice versa because the rest of the code analyze only the bright part which therefore needs to be the pores**. if needed, Inversion of the data can be perform with ~ before the binary variable containing the data or using imcomplement (in matlab).
To check how good/bad is the segmentation, you can use **mainCheckSegmentation.m**.
Pressing run will aslo open a dialog where the user can select the **folder where segmented images are stored as .tif, SegmentedStacks folder if our routine was used for segmentation**.
I would recommend to first run and check the segmentation on a single file (to avoid long processing time) and then, once you are satisfied with your parameters, put all the files acquired in similar condition in one folder to segment them all in a single "run button" press.
## 2. Pore properties determination
To calculate the properties of the pores, one need to use **mainPorePropsCalc.m**.
The main information that need to be provided here is the pixel size in XY and in Z and whether you want the analysis to be run in 2D, 3D or both. Once you press run, a dialog where the user can select **folder where segmented images are stored as .tif, SegmentedStacks folder if our routine was used for segmentation**. The results will be stored in a folder called PoreSize-Results.
## 3. Data Visualization
To obtain 3D model of the network one need to use **main3DModel.m**.
The main information that needs to be provided here is the pixel size in XY and in Z for scaled representation., color of the model and color of the pores. Once again, pressing run will open a dialog where the user need to select **A binary z-stack folder **. In the indicated folder it will search for a PoreSize-Results folder and check if there is a .mat file in there. If yes, it will also output model of the pores connectivity and the polymer model together with the pores, if not it will only output a model of the network.
To obtain distribution plot of different properties one need to use **plotPoreprops.m**
Once you press run, a dialog where the user can select **folder where PoreSize results are stored as .mat, PoreSize-Results folder.**
The main information that needs to be provided is some details about the plotting (e.g. stepSize, number of bins, log scale or not), if you want to plot 2D or 3D determined properties and which propertie you want to plot (volume, internal radius, throat, diameter,...).
The code will save a figure for each .mat file present in the selected folder. Therefore, if you want to compare/look at different conditions one can put the results output from different conditions in a new folder (give meaningful name to the .mat file as they will be reuse in the figure names) and then run plotPoreProps which will output and save (in a folder called figure) a figure for each file (thus each conditions).
**Watchout that the results from different z-stack stored in the same folder (segmented together) will be made into one single distribution. This is okay if they were acquired in the same condition (e.g. in our paper, same polymer length, same concentration, same imaging conditions) but may lead to unwanted results if one mix data that should not be analyzed together.**
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【达摩老生出品,必属精品,亲测校正,质量保证】 资源名:Polymer networks microscopy images_Segmentation_MATLAB 资源类型:matlab项目全套源码 源码说明: 全部项目源码都是经过测试校正后百分百成功运行的,如果您下载后不能运行可联系我进行指导或者更换。 适合人群:新手及有一定经验的开发人员
资源推荐
资源详情
资源评论
收起资源包目录
Polymer networks microscopy images_Segmentation_MATLAB.zip (40个子文件)
Segmentation-master
mainCheckSegmentation.m 201B
testFile.tif 3.23MB
+Load
getData2Plot.m 1KB
+Movie
+tif
getframes.m 1KB
getinfo.m 887B
Folder.m 1KB
+dataStorage
BinaryTiff.m 2KB
EvalSegmentation.m 2KB
+imSegmentation
check.m 4KB
segmentStack.m 4KB
plotPoreProps.m 4KB
+Calc
getPoreProps2D.m 5KB
getPoreProps3D.m 4KB
findBubblesSimplified.m 990B
getPoreProps.m 2KB
findBubblesSimplifiedFiltered.m 1020B
main3DModel.m 9KB
SegmentedStacks
PoreSize-Results
adaptPoreProps.mat 5.89MB
info.txt 156B
Seg_adapt_testFile.tif 380KB
Seg_global_testFile.tif 380KB
info.txt 392B
.gitignore 167B
+rendering3D
cylinder2P.m 2KB
vertex_neighbours_double.m 2KB
smoothpatch.m 3KB
license.txt 1KB
vertex_neighbours.m 291B
vertex_neighbours_double.c 7KB
smoothpatch_curvature_double.c 7KB
smoothpatch_inversedistance_double.c 7KB
+Plotting
distrib.m 650B
colorCode2rgb.m 847B
lnbin.m 1KB
shadedErrorBar.m 6KB
distributionPlot.m 22KB
getCDF.m 1KB
mainPorePropsCalc.m 5KB
README.md 5KB
mainImSegmentation.m 8KB
共 40 条
- 1
资源评论
阿里matlab建模师
- 粉丝: 3525
- 资源: 2791
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 【Unity 插件】Photon Multiplayer Template (For Game Creator 2)
- 【字幕SRT翻译器】+【支持9种语言】+【大模型翻译,效果一级棒】+【永久不过期】
- PHP站长导航资源网站导航系统源码修复版
- 消息队列中间件RabbitMQ的CentOS环境下安装与配置指南
- yolov6n.onnx
- 高级系统架构设计师下午试题模拟题6套试题.pdf
- 科技公司员工转正评估表.xlsx
- 微观企业劳动力生产率数据(1999-2023年).txt
- CCF大数据竞赛-垃圾短信基于文本内容的识别项目源码(高分项目)
- Linux环境下Nginx服务器的源码安装与自动启动配置指南
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功