Got Questions? Get Answers.
Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Image normalization

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" <pprem...@gmail.com> 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);

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us