Info

This question is closed. Reopen it to edit or answer.

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

2 views (last 30 days)
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)

Walter Roberson
Walter Roberson on 19 Apr 2013
What are "Rs", "Gs", "Bs", "Rb", "Gb", "Bb" ?
R = vals(:,1);
G = vals(:,2);
B = vals(:,3);

This question is closed.

Community Treasure Hunt

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

Start Hunting!