grayscale converting color image and 3D
Ältere Kommentare anzeigen
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,
Antworten (1)
Image Analyst
am 13 Jan. 2015
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 Kommentare
Image Analyst
am 14 Jan. 2015
Try the surf() function.
Image Analyst
am 17 Jan. 2015
Tevfik, did that work for you?
Kategorien
Mehr zu Image Arithmetic finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!