How to make a mask from the render of volshow?

조회 수: 3 (최근 30일)
Olivier
Olivier 2023년 1월 11일
답변: Atharva 2023년 3월 2일
Volshow adjuste the transparency and colormap. I was wondering if it is possible to make a mask from what is showed by volshow? this is not returned by the function.
Thanks
O

답변 (1개)

Atharva
Atharva 2023년 3월 2일
Yes, it is possible to create a mask from what is displayed by volshow in MATLAB.
You can use the vol3d function instead of volshow, which will return a handle to the vol3d object. You can then use the vol3d object's cdata property to access the voxel data displayed by the vol3d object. The cdata property is a three-dimensional matrix that represents the voxel data. You can use the imfill function to fill in any holes in the voxel data, and then use a thresholding function like imbinarize to create a binary mask from the voxel data.

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by