clc;
clear;
close all;

% read image
I = imread('002_45.bmp');
imshow(I);
% Spliting Channel of the image
R = I(:,:,1);
G = I(:,:,2);
B = I(:,:,3);
% Color ratio is computed for each channel
r = R./R + G + B;
g = G./R + G + B;
b = B./R + G + B;
imshow([R G B]);