problem with volume viewer in image processing toolbox

15 views (last 30 days)
I was working on a project using the image processing toolbox and i have to use the volume viewer app. But when i try to run it just a black screen is being displayed. It is able to read the input but couldn't display the output. Can anyone help me with this?

Sign in to comment.

Answers (2)

Alex Taylor
Alex Taylor on 21 Aug 2017
The behavior being described here is most likely an OpenGL issue. As Grgschmtz points out, the volumeViewer heavily uses hardware OpenGL for doing the rendering. On certain graphics hardware, particularly Intel Integrated Graphics, there can be insufficient OpenGL support, so you may see strange artifacts or all black rendering. As a diagnostic, try:
If this resolves the issue, then you are definitely experiencing an OpenGL rendering issue related to the app. Because using the preference above results in slowering rendering and disables certain features of the app, the best thing is to attempt to update the drivers for your graphics hardware to see if that resolves the issue. To do this, execute:
opengl info
To get information about the vendor of your graphics hardware. Go to their website and follow directions for updating drivers. Restart MATLAB. Now try the volumeViewer again to see if rendering is improved. If it is not, then the best course is to leave the preference for 'VolumeViewerUseHardware' set to false.

Grgschmtz on 28 Jul 2017
I had the same problem today. I think it is related to Matlab failing when trying to use the graphics hardware acceleration. At least switching off hardware acceleration made it work for me:
iptsetpref('VolumeViewerUseHardware',false); volumeViewer;
Matlab documentation says that some functions of the app may not be available and that it runs slower.

Community Treasure Hunt

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

Start Hunting!

Translated by