How can i seperate the values for R, B,G and pass the values to a equation and plot the graph?

i am getting values using
imshow strip1.tiff
vals = impixel
then i have to substitute the values of R , B , G in this equation
Ar = -log (Rs/ Rb)
Ag = -log (Gs/ Gb)
Ab = -log (Bs/ Bb)
and plot graph for RGB in one graph itself.

Answers (1)

What are "Rs", "Gs", "Bs", "Rb", "Gb", "Bb" ?
R = vals(:,1);
G = vals(:,2);
B = vals(:,3);

1 Comment

Thanks for u'r answer. I am new to matlab and I need to plot the graph using obtained values of R, G & B.

This question is closed.

Asked:

on 19 Apr 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!