Question: Using the previous Algorithm (procedure RGB_to_HSI) to solve the following questions: a) convert the RGB value (100,150,200) into an HSI value b) convert the RGB

 Using the previous Algorithm (procedure RGB_to_HSI) to solve the following questions:

Using the previous Algorithm (procedure RGB_to_HSI) to solve the following questions:

a) convert the RGB value (100,150,200) into an HSI value

b) convert the RGB value (0.0, 1.0, 0.0) to HSI

Conversion of RGB encoding to HSI encoding R,G,B input values of RGB all in range [0,1] or [0,255J: I output value of intensity in same range as input; S output value of saturation in range [0,1]; H output value of hue in range [0,21t), -1 if S is 0; R,G,B,H,S I are all floating point numbers; procedure RGB to HSI(in R,G,B; out H,S,I) I max (R, G, B) min min (R, G, B); if (I 20.00 then S min)/I else S 0.0 if (S S 0.0) then tH 1.0; return "compute the hue based on the relative sizes of the RGB components" diff min "is the point within 60 degrees of the red axis?" "is the point within 60 degrees of the green axis?" else if (G then H (2 Tr/3) Tr/3*(B R)/diff "is the point within +/-60 degrees of the blue axis?" else if (B I) then H (4 TT T/3 *(R G)/diff. if (H s 0.0) H H 2T

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!