MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

### Discover what MATLAB® can do for your career.

 Subject: Image normalization From: prema veera Date: 20 Jun, 2011 11:27:04 Message: 1 of 2 I'm a research scholar. The color image(r,g,b) was normalized using r=R/R+G+B,g=G/R+G+B. b=B/R+G+B , Then i need to find indices computation Excess Green ExG=2g-r-b , Excess red Exr=1.4r-g, ExcessBlue Exb=1.4b-g and Excess green minus and excess red ExGR= ExG-ExR and color index of vegetation extraction : CIVE=0.441r-0.811g+0.385b+18.78745 . I nedda matlab coding for this. Thanks
 Subject: Image normalization From: ImageAnalyst Date: 20 Jun, 2011 12:26:34 Message: 2 of 2 On Jun 20, 7:27 am, "prema veera" wrote: > I'm a research scholar. The color image(r,g,b) was normalized using r=R/R+G+B,g=G/R+G+B. b=B/R+G+B , Then i need to find indices computation Excess Green ExG=2g-r-b  , Excess red Exr=1.4r-g, ExcessBlue Exb=1.4b-g and Excess green minus and excess red ExGR= ExG-ExR  and color index of vegetation extraction : CIVE=0.441r-0.811g+0.385b+18.78745 . I nedda matlab coding for this. > Thanks ----------------------------------------------------------------- You basically just gave it. Just insert * for multiply. Instead of Excess Green ExG=2g-r-b just do ExcessGreen = 2*single(g) - single(r) - single(b) and CIVE=0.441*r-0.811*g+0.385*b+18.78745 % Extract the individual red, green, and blue color channels. r = rgbImage(:, :, 1); g = rgbImage(:, :, 2); b = rgbImage(:, :, 3);