grayscale converting color image and 3D

Hi, I have a rectangular box picture as greyscale format . I want to convert it to a color image later I want to convert it to 3D image like a 3D real box and show them in GUI axis. Regards,

답변 (1개)

Image Analyst
Image Analyst 2015년 1월 13일

0 개 추천

I don't know what a "3D real box" is. But you can turn a grayscale image into a 3D (RGB) true color image with cat():
rgbImage = cat(3, grayImage, grayImage, grayImage);
To show in a GUI axes control:
axes(handles.axesImage); % Or whatever axes you want.
imshow(rgbImage);

댓글 수: 2

Image Analyst
Image Analyst 2015년 1월 14일
Try the surf() function.
Image Analyst
Image Analyst 2015년 1월 17일
Tevfik, did that work for you?

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

카테고리

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

태그

질문:

2015년 1월 13일

편집:

2016년 8월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by