Isosurfaces are surfaces that join points of equal magnitude. They are the 2D analog of contour lines. In this recipe, you will explore isosurfaces and their use in 3D visualization.
You will once again use the MRI dataset that comes with MATLAB installation. Load the data:
load mri D = squeeze(D);
Perform the following steps:
isosurfaceand the MRI plates. The three-dimensional smoothing creates a smoothed surface for presenting the human face. The color of the patch is chosen to match common skin tones.
% create figure with predefined colormap figure('Colormap',map) % smooth the data Ds = smooth3(D); % create a isosurface; use patch to construct the image ...