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