I’m trying to determine a way to visualize the intensity of light in a cavity. For this 3D volume cavity I created an isosurface and for all triangles in this isosurface the intensity of light was calculated. I calculated the intensity for the isonormals instead of the individual pixels to simplify the calculations.
I was wondering if it is possible to give every face in the isosurface a color corresponding with its intensity.
There are different ways to color an isosurface, but these are all based on the values corresponding with the volume and not with the values corresponding with the isosurface.
Is there a way to color the isosurface corresponding with the calculated intensities so I can visualize the intensity course?
The code I’ve used to show my segment cavity is as follows:
S = isosurface(Im, 0.5); h = patch(S, 'Facecolor', 'none', 'EdgeColor', 'k');
And the size of the matrix with is as shown below:
Intensity_matrix = [‘number of faces’ ; 1]; %with all intensities corresponding to the faces of the isosurface.
I’m looking forward to one of your answers. Thanks in advance!