a = imread('Sample.jpeg');
surfc(rgb2gray (a), 'EdgeColor','none')
grid on
colormap (jet(50))
shading interp
Im using this code to make a 3d surface, but i got the surface upsite down. Can any one help me please?

답변 (1개)

Star Strider
Star Strider 2020년 4월 22일

0 개 추천

Try this:
a = imread('Sample.jpeg');
surfc(rgb2gray (a), 'EdgeColor','none')
grid on
colormap (jet(50))
shading interp
set(gca, 'ZDir','reverse')
.

댓글 수: 5

agung pratama
agung pratama 2020년 4월 22일
The Z-direction may be reversed, but the color bar still says the table is taller than a hammer.
Star Strider
Star Strider 2020년 4월 22일
What result do you want?
agung pratama
agung pratama 2020년 4월 28일
편집: agung pratama 2020년 4월 28일
A 3D graphic, something like this
Star Strider
Star Strider 2020년 4월 28일
That is likely not possible from a planar image. You would need to do some sort of scan (laser, CT, MRI) or something similar (stereoscopy) to extract the shape of the object. A single image itself will not provide that information.
Priscila de Araújo
Priscila de Araújo 2021년 8월 29일
Hi, Star Strider. I have four images of an object (superior view, lateral view, anterior view, posterior view). Can you help me, please?

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

카테고리

도움말 센터File Exchange에서 Orange에 대해 자세히 알아보기

태그

질문:

2020년 4월 21일

댓글:

2021년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by