2D RGB image plotting on 3D dimension

7 ビュー (過去 30 日間)
sungryoung koo
sungryoung koo 2019 年 2 月 18 日
回答済み: Alfonso Pérez-Escudero 2019 年 10 月 5 日
Hi, I just want to know how to plot the 2D RGB image on 3D coordinate(x,y,z).
For example, if i got 5 pieces of 2D RGB image, and plotting the images at z=1:5,
and the size of x,y is not same, likes 150 and 50
I already checked the functions 'surf, scatter3, slice' , but these only support the same size matrix ; 10 by 10 by 10.
Please somebody help me.
Thanks,

回答 (2 件)

Alfonso Pérez-Escudero
Alfonso Pérez-Escudero 2019 年 10 月 5 日
Hi! I think the command warp would solve your problem. It allows you to "paint" any image on any surface in 3D, so you can use it to show your image on flat planes at different heights. For example, I used this code:
figure
[X,Y] = meshgrid(1:size(im,2),1:size(im,1));
warp(X,Y,ones(size(X)),im)
hold on
warp(X,Y,5*ones(size(X)),im)
I hope it helps!

Image Analyst
Image Analyst 2019 年 2 月 18 日
Do you want this:
screenshot.jpg
  1 件のコメント
sungryoung koo
sungryoung koo 2019 年 2 月 18 日
Thanks for your appreciation.
I want to position 2D image at specific height of z position likes... five images at 1 2 3 4 5 of z.
I do not need the 3D canopy. I wank to know how to place 2D image on 3D dimension.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by