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

조회 수: 6 (최근 30일)
Daniel Weppler
Daniel Weppler 2022년 11월 21일
댓글: Daniel Weppler 2022년 11월 23일
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.
Thanks,
-Daniel
  댓글 수: 2
Benjamin Thompson
Benjamin Thompson 2022년 11월 21일
Look over the example "3-D Point Cloud Registration and Stitching" in the Computer Vision Toolbox and see if that approach meets your needs.
Star Strider
Star Strider 2022년 11월 22일
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.

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

답변 (1개)

Image Analyst
Image Analyst 2022년 11월 22일
Maybe what you want is the attached demo.
  댓글 수: 1
Daniel Weppler
Daniel Weppler 2022년 11월 23일
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.

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

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by