File Exchange

image thumbnail

RGB Image Decomposition

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

3 Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/18125-rgb-image-decomposition), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Didrik Kvanvik

BHARANEE PALANISWAMY

John

Ehm how can i convert now into YCbCr pleaz?

mohsan jamil

chen yuan

mini program

harun alrosid

Joseph Hollmann

Rick,
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!