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!