How to Display Volume Using Volshow with Exported Configuration from Volume Viewer
조회 수: 24 (최근 30일)
이전 댓글 표시
Hi there,
I have a labeled volume as a double file type in my workspace. I opened this in 'volumeviewer' and made some slight changes to display (please see image below).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1587411/image.png)
I then exported the configuration using the 'export' button on volumeviewer. However when I run volshow in the following manner where "newL" is a labelled volume as a double data type and "objectConfig" is the exported configuration from volumeviewer, it simply returns a default display setting (seen below).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1587416/image.png)
Some help on how I can preserve these display settings when exporting would be much appreciated!
Thanks
댓글 수: 0
답변 (1개)
Sufiyan
2024년 1월 16일
편집: Sufiyan
2024년 1월 16일
"returns default settings" you mean that the labels are not applied ? if you see the properties in the command window, It says OverlayData is empty.
volshow(newL,objectConfig) will just display the volume of newL(Label volume) using the object properties. It means where ever the lables are marked, It shows the volume of that region.
If you want the labels(colours) to be displayed along with the volume of labels, Add the label data as shown.
hVolume = volshow(newL,objectConfig)
hVolume.OverlayData = newL
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Basic Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!