2.75

2.8 | 4 ratings Rate this file 154 downloads (last 30 days) File Size: 1.65 KB File ID: #18125

RGB Image Decomposition

by Rick Rosson

 

26 Dec 2007 (Updated 08 Jan 2008)

Code covered by BSD License  

Displays RGB decomposition of a full color image

Download Now | Watch this File

File Information
Description

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."

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
28 Dec 2007 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);

07 Jan 2008 harun alrosid  
09 Apr 2008 chen yuan

mini program

16 May 2008 mohsan jamil  
Please login to add a comment or rating.
Updates
27 Dec 2007

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

28 Dec 2007

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

01 Jan 2008

Simplified the description.

02 Jan 2008

Clarify the description

02 Jan 2008

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

02 Jan 2008

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

08 Jan 2008

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

Tag Activity for this File
Tag Applied By Date/Time
color Rick Rosson 22 Oct 2008 09:40:28
rgb Rick Rosson 31 Oct 2008 23:49:52
image processing Rick Rosson 31 Oct 2008 23:49:52
color separation Rick Rosson 31 Oct 2008 23:49:52
image decomposition Rick Rosson 31 Oct 2008 23:50:21
image Rick Rosson 12 Feb 2009 13:28:18
vip Rick Rosson 12 Feb 2009 13:28:28
ivp Rick Rosson 12 Feb 2009 13:28:32
ipt Rick Rosson 12 Feb 2009 13:29:00
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com