grayscale converting color image and 3D

1 回表示 (過去 30 日間)
Tevfik YILMAZ
Tevfik YILMAZ 2015 年 1 月 13 日
編集済み: Tevfik YILMAZ 2016 年 8 月 10 日
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 日
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?

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

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by