how to render volume in grayscale?

Hi all, does anyone know how to have a grayscale volume rendering? I'll try to explain: I have a 150x208x208 uint8 matrix which is in grayscale tones (0-255), and I want to render this volume, keeping the grayscale information. my code to render volume until now is (maschera_gray_bwMV is the 3D matrix): thanks in advance!
figure
volume_3d=permute(maschera_gray_bwMV,[2 3 1]); %2 3 1
vol=isosurface(volume_3d);
p=patch(vol,'FaceColor','none','EdgeColor','k'); %k
title('selected region 3D')
colormap gray

1 Kommentar

John BG
John BG am 2 Jul. 2017
Hi Alessandro
Would you please make available the variable maschera_gray_bwMW?
It hasn't got to be the actual data you are working with. If you attach a sample or a variable readers don't know in advance, that will help you in turn to readily see whether an answer is reaching the desired visualisation.
John BG

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 2 Jul. 2017

1 Stimme

From the help in R2017a:
Volume Viewer
View volumetric image
Description
The Volume Viewer app lets you view 3-D volumetric images. Using this app, you can view 3-D image data as volumes or as plane slices, and do volume rendering, maximum intensity projection, and isosurface visualizations. Using the Rendering Editor component you can manipulate opacity to see the structures in the volume that you want to see and make transparent those structures in the volume that you do not want to see.
Open the Volume Viewer App
MATLAB® Toolstrip: Open the Apps tab, under Image Processing and Computer Vision, click the Volume Viewer app icon.
MATLAB command prompt: Enter volumeViewer.

Gefragt:

am 2 Jul. 2017

Beantwortet:

am 2 Jul. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by