How can I convert an image into a patch?

I have an image that I want to convert into a patch, and use it as a normal patch.
I also have the V matrix and the F vectoer, of the patch I want my image to become.
How can I do it?

답변 (1개)

Walter Roberson
Walter Roberson 2020년 7월 12일

1 개 추천

Would a surface be acceptable instead of a patch? If so then see warp() https://www.mathworks.com/help/images/ref/warp.html
If you really need a patch then use the above and then surf2patch() https://www.mathworks.com/help/matlab/ref/surf2patch.html

댓글 수: 1

Adam Danz
Adam Danz 2022년 6월 2일
In addition to warp, I also found this answer useful which sets texture mapping directly in surf().

댓글을 달려면 로그인하십시오.

카테고리

질문:

2020년 7월 12일

댓글:

2022년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by