Volumetric slice plot of tomographic data
显示 更早的评论
I am trying to use the slice function to stack the following 79 slices and display a 3D representation of an object.
The problem is that the black regions in each image are obstructing the image of the previous slice. So, I'm only seeing the very last slice on top, rather than a meaningful volumetric presentation of the data. So, how can I include only the non-zero elements of each image in the plot?
Any suggestions would be greatly appreciated.
3 个评论
Exactly. As you can see from the documentation of "slice" - it just makes solid planes. So either you reduce the number of planes to display (so not your 1:79 but just a few slices in different orientations).
If you really would like to get a 3d volume of your data ... that is a little bit more tricky. You could take a look at the MATLAB functions isosurface (that basically relies on a simple threshold that creates a surface) and related helper functions like smooth3 to clean up your data.
Hope this already helps a bit.
Edit: vol3d might be very useful for you. As an alpha map you can basically use a binary mask or even your inverted brightness level.
Sordin
2017-4-21
Philip G
2017-4-24
I found a nice way to use surf images ... see my anwer.
采纳的回答
更多回答(1 个)
Bjorn Gustavsson
2017-4-21
1 个投票
If you change your colour-map from black-white to white-black then you might get some mileage out of experimentations with alpha-mapping, look at the help for alphamap and alim.
HTH
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!