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

4 Downloads

Updated 01 Sep 2016

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

Comments and Ratings (7)

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);

Updates

1.0.0.1

Updated license

1.0.0.0

Added "See also..." to the description.

Made minor improvements to the readability of the M-code and added comments.

Made minor improvements to the readability of the M-code and added comments.

Clarify the description

Simplified the description.

1. Minor correcto in the description.
2. Uploaded screenshot.

Correction of a minor typographical error in the description of the file.

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