Hi All,Thanks in advance,I want to read an input image and convert it into a 3D image.Could any one show how can I achieve this.the image is color preferably.

답변 (2개)

Chad Greene
Chad Greene 2014년 11월 4일

0 개 추천

It's hard to know exactly what you mean by convert to a 3D image. Try this:
A = imread('eight.tif');
surf(double(A))
shading flat

댓글 수: 2

I tried this but getting an error Warning: Matrix dimensions must agree, not rendering mesh
Image Analyst
Image Analyst 2014년 11월 5일
You ran different code. I just copied and pasted Chad's code and it worked fine. What did you do differently? You must have changed something that broke it.

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

Image Analyst
Image Analyst 2014년 11월 4일

0 개 추천

A color image is already a 3D image, at least if it's RGB and not indexed color, so you can simply use imread() and you're done!
rgbImage = imread(filename);

카테고리

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

질문:

2014년 11월 4일

댓글:

2014년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by