3D segmentation using treshold method
7 次查看(过去 30 天)
显示 更早的评论
I am triying to make a 3D segmentation using a treshold method. Given a 3D image I, in particulare slice of the image I(:,:,i) I performed a treshold segmentation and using region props I selected a specific ROI. What is the best way to propagate this roi to the other slices?
My idea was: given a slice I(:,:,i+/-1) I do the same treshold segemntation and for all ROIs I need to find if some pixels coincide with the ROI of the previous slice. Is there any simple way to do that?
Thanks is advance!
0 个评论
采纳的回答
Image Analyst
2016-2-8
Just get the threshold from that particular slice, or however you do it. Then just create a binary 3D volumetric logical image by thresholding your entire image (the badly-named I):
binaryImage = I > threshold;
To find out if some pixels coincide for two slices, you can AND the slices
inBothSlices = I(:,:,slice1Index) & I(:,:,slice2Index);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!