Computer Vision News - July 2016
26 Computer Vision News Trick The rest of the code specifies the visualization properties: the patch function creates polygons from the given vertex and faces and display them on the figure. The patch also sets the FaceColor to red and the EdgeColor to none to produce a smoothly lit surface. The daspect controls the data unit length along each axis, as CT images are inhomogeneous and have a different data unit along the x-axis, y- axis and z-axis. The camlight creates a light at the specified azimuth (az) and elevation (el) with respect to the camera position and the lighting selects the algorithm used to calculate the effects of light. The gouraud calculates the vertex normals and interpolates linearly across the faces. 2. A three-dimensional with a kidney interior: We will add the kidney interior visualization layer. For this we will first need to ‘cut’ the given kidney segmentation (kidneyImage) in order to get the kidney interior. We will do that by simply deleting some of the slices; this code will do the work: To the previous code we will add the isocap function. Isocap adds context to visualizations by adding planes that are fitted to the limits of the isosurface which provides a cross-sectional view of the interior content of the isosurface. The AmbientStrength property of the isocap brightens the coloring without affecting the isosurface and the gray scale color map area used for the interior visualization. The output of this code is: Additional options may include advanced lighting by recalculating the surface normals based on the gradient of the volume data, which produces smoother lighting. For this we invite the reader to refer to the isonormals function. Trick
Made with FlippingBook
RkJQdWJsaXNoZXIy NTc3NzU=