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!