File Exchange

image thumbnail

RGB Image Decomposition

version (1.65 KB) by Rick Rosson
Displays RGB decomposition of a full color image


Updated 01 Sep 2016

View Version History

View License

Function imColorSep takes a single input argument, an M x N x 3 array representing a full color RGB image, and generates a figure window containing four images: the original full color image, and the three individual monochromatic images representing the red, green, and blue components of the original image. The function returns a handle to the figure window.
See also "NTSC Image Decomposition."

Cite As

Rick Rosson (2021). RGB Image Decomposition (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Didrik Kvanvik



Ehm how can i convert now into YCbCr pleaz?

mohsan jamil

chen yuan

mini program

harun alrosid

Joseph Hollmann

this code can be easily rewritten to get rid of the imageprocessing toolbox dependency.

Also, I am pretty sure you want to take the following line out of your for-loop.
C = zeros(N,3);

Without the appropriate comments, it is difficult to tell but why use the line below line?
gr = gr(:,1);

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!