필터 지우기
필터 지우기

Project Image on a Mesh

조회 수: 13 (최근 30일)
Humam Helfawi
Humam Helfawi 2019년 2월 27일
편집: Christopher Stapels 2022년 10월 24일
Hi,
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 https://www.mathworks.com/help/images/ref/warp.html.
However, the previouse example based on XYZ surface not a Mesh. Is there an alternative for a Mesh?
Thanks!

답변 (1개)

Christopher Stapels
Christopher Stapels 2022년 10월 24일
편집: Christopher Stapels 2022년 10월 24일
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;
mesh(X,Y,Z);
hold
[I,map] = imread('forest.tif');
warp(X,Y,Z,I,map);

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by