how to render volume in grayscale?
Show older comments
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 Comment
John BG
on 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
Answers (1)
Image Analyst
on 2 Jul 2017
1 vote
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.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!