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."
Rick Rosson (2021). RGB Image Decomposition (https://www.mathworks.com/matlabcentral/fileexchange/18125-rgb-image-decomposition), MATLAB Central File Exchange. Retrieved .
Ehm how can i convert now into YCbCr pleaz?
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);
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!