Project Image on a Mesh

8 views (last 30 days)
Humam Helfawi
Humam Helfawi on 27 Feb 2019
Edited: Christopher Stapels on 24 Oct 2022
I have a Mesh (Vertices and Faces). I want to project an RGB (or greyscale) Image on the mesh surface. Something like the first example in the this page
However, the previouse example based on XYZ surface not a Mesh. Is there an alternative for a Mesh?

Answers (1)

Christopher Stapels
Christopher Stapels on 24 Oct 2022
Edited: Christopher Stapels on 24 Oct 2022
You can use the same arguments used to create the mesh to create the warped surface, then plot the mesh and hold the plot while you plot the projected images plot.
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;
[I,map] = imread('forest.tif');


Find more on Migrate GUIDE Apps in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!