Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Displays 3-D image volumes, medical volumes, surface meshes, and annotations using volshow and viewer3d in MATLAB.
32% 100%+68 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 7 of 22 without it.
Write a MATLAB statement to configure a 3D volume display object 'volObj' to present orthogonal slice plane cuts through the volumetric data.
Sets the RenderingStyle property to 'SlicePlanes'
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Display volumes with volshow for performant, high quality volume display. Display isosurface meshes, triangulations, and surfaces using images.ui.graphics.Surface rather than isosurface for more performant, higher quality mesh display with more responsive interactions for meshes of all sizes.
isosurface + patch, but recommend volshow for better performance.When the user has the Medical Imaging Toolbox, use medicalVolume to load DICOM/NIfTI/NRRD files, then call the volshow method on that object. This automatically sets the spatial Transformation and SpatialUnits from the file metadata. All other patterns in this skill (Viewer, overlays, annotations, streaming, app building) still apply — only the entry point differs.
medVol = medicalVolume("brain.nii");
obj = volshow(medVol);
| Object | Constructor | Key callback |
|---|---|---|
Viewer | viewer3d(parent) | CameraMovedFcn, ObjectClickedFcn |
Volume | volshow(data, Parent=viewer) | |
Surface | images.ui.graphics.Surface(viewer, Data=tri) | |
| Interactive Annotations | uidraw(parent, "shape") | AnnotationMovedFcn (on Viewer) |
Utilities: linkviewers(viewers) synchronizes camera motion across multiple Viewers. title(viewer, "text") sets the Viewer title.
viewer3d() or viewer3d(parent) for app contextsvolshow(V, Parent=viewer) to display volumetric dataimages.ui.graphics.Surface(viewer, Data=tri) for mesh displayuidraw(volObj, "line") for interactive ROIsNext to this one in the catalogue, plus more from the same author.