How to wrap an image/points to a 3d surface?

31 views (last 30 days)
Hi, I am trying to figure out a way to wrap a set of points (that make up an image) onto a 3d surface, similar to how one would wrap a printed image onto a cylinder in real life.
I have looked into some of the built-in MATLAB functions (such as warp), but this does not acheive the desired result, as it projects rather than warps. I feel like there should be a simple solution to this problem, as wrapping is very common in CAD programs such as Solidworks.
The ideal workflow is given a a set of XY points (that make up an image), and a point cloud (which can be made into a surface), the code would return the XYZ coordinates of the image on that surface.
Any and all help would be appreciated. The image (made of points) is shown below.
Star Strider
Star Strider on 22 Nov 2022
Another option may be the warp funciton. There are two warp funcitons, the one I linked to here is described as: ‘Display image as texture-mapped surface’. It gives an example using a surf plot.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 22 Nov 2022
Maybe what you want is the attached demo.
  1 Comment
Daniel Weppler
Daniel Weppler on 23 Nov 2022
Unfortunatley warp doesn't perform the transformation I'm looking for, however I've solved the problem mathematically, and am working on writing a complete function to upload to the file exchange. Thanks for the help regardless.

Sign in to comment.




Community Treasure Hunt

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

Start Hunting!