how to form color 3D image

Answers (1)

Please give an example of what you mean:
% red cameraman
I = imread('cameraman.tif');
I = cat(3,I,zeros(size(I,1),size(I,2),2,class(I)));
imshow(I) %I is a 3d image now

Categories

Tags

Asked:

on 9 Aug 2011

Community Treasure Hunt

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

Start Hunting!