MATLAB: Matlab image processing rgb How to merge the r,g and b components to get a single rgb image in matlab??? Best Answer r = rand(20, 30);g = rand(20, 30);b = rand(20, 30);rgb = cat(3, r, g, b); Related SolutionsMATLAB: How to find inverse of concatenate r = rgb(:, :, 1); g = rgb(:, :, 2); b = rgb(:, :, 3); MATLAB: Grayscale of RGB channels RGB = rand(100, 100, 3); % RGB arrayR = RGB(:, :, 1); % Gray image of the red channelG = RGB(:, :, 2); % Gray image of the green channelB = RGB(:, :, 3); % Gray image of the blue channelfigureimage(R)figureimage(cat(3, R, R, R)) Related QuestionHow can i convert an image to grayscale using for loopOperation on RGB ImagesDisplay an RGB image
Best Answer