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.

Réponses (1)

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

1 commentaire

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

Cette question est clôturée.

Question posée :

le 19 Avr 2013

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by