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 Center および File ExchangeRead, 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