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:
Red Eye

Subject: Red Eye

From: Nicholas Reid

Date: 19 Jan, 2011 21:51:05

Message: 1 of 2

Dear all,

My dissertation is on Oximetry in the eye using red light reflection. I have to take photographs using an SLR and import them into Matlab to manually identify red eye.
In order to do this, I need to take the image, extract the RGB planes and calculate R(bar), G(bar) and B(bar). Also, a plot of R/G against W(white) or S(skin) is required.

Any help on this would be extremely appreciated!

Regards,

Nick

Subject: Red Eye

From: Sean de

Date: 19 Jan, 2011 22:00:15

Message: 2 of 2

"Nicholas Reid" wrote in message <ih7mc9$t0g$1@fred.mathworks.com>...
> Dear all,
>
> My dissertation is on Oximetry in the eye using red light reflection. I have to take photographs using an SLR and import them into Matlab to manually identify red eye.
> In order to do this, I need to take the image, extract the RGB planes and calculate R(bar), G(bar) and B(bar). Also, a plot of R/G against W(white) or S(skin) is required.
>
> Any help on this would be extremely appreciated!
>
> Regards,
>
> Nick

I = imread('your_image.type_of_image');
vec = @(x)x(:);
Rbar = mean(vec(I(:,:,1)));
Gbar = mean(vec(I(:,:,2)));
Bbar = mean(vec(I(:,:,3)));

Tags for 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