MATLAB: How to display 3D image in each layer show 3d image layer Hi everyone, I have an bmp image, let say it's 256x256x3 uint8 I need to show up the image in each layer : image1 : 256x256x1 image2 : 256x256x2 image3 : 256x256x3 Could you help me guys? thanks in advance Best Answer Just clear unnecessary channels:I = imread('http://www.3drealms.com/zerohour/images/zhbackground.bmp');figurer = I;r(:,:,2:3) = 0;imshow(r)figureg = I;g(:,:,[1 3]) = 0;imshow(g)figureb = I;b(:,:,1:2) = 0;imshow(b) Related SolutionsMATLAB: How to get back the rgb image from r g b component Exactly the opposite of how you pulled out the data;im = imread(...);red = im(:,:,1);grn = im(:,:,2);blu = im(:,:,3);original_mk2 = zeros(size(im));original_mk2(:,:,1) = red;original_mk2(:,:,2) = grn;original_mk2(:,:,3) = blu;fiugre; imshow(original_mk2); MATLAB: Merge image using matlab Yes you can do this as:im1= imread('image1.jpg');im2= imread('image2.jpg');im3= imread('image3.jpg');r = im1(:,:,1);g = im2(:,:,2);b = im3(:,:,3);NewImage = cat(3,r,g,b);imshow(NewImage) Related QuestionCretae a video from Images using WriterObjHow is making zero of a component in an RGB image different from taking individual array color panelMontage of 3 imageMatlab imshowERROR while creating GLCM
Best Answer