# I want matlab codes for constructing eye map in eye detection using luma and chroma components

2 Ansichten (letzte 30 Tage)
Bushry am 27 Sep. 2013
Beantwortet: Zahra kamkar am 16 Mär. 2014
I want matlab codes for constructing eye map in eye detection using luma and chroma components such that EyeMapChroma=1/3 {〖Cb〗^2+((Cr) ̅ )^2+(Cb/Cr) } and EyeMapLuma= (Y(x,y)⨁g_σ (x,y))/(Y(x,y)⊖g_σ (x,y)+1)
##### 1 Kommentar-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden
Image Analyst am 27 Sep. 2013
OK. I don't see a question, so . . . good luck writing your project.

Melden Sie sich an, um zu kommentieren.

### Antworten (1)

Zahra kamkar am 16 Mär. 2014
Hi, I've written some codes for it. I wish it can help you by God's favor.
if true
subplot(4,4,1)
imshow(i)
title('original image');
iycbcr=rgb2ycbcr(i);
iycbcr = im2double(iycbcr);
subplot(4,4,2)
imshow(iycbcr)
title('YCBCR space');
y=iycbcr(:,:,1);
cb=iycbcr(:,:,2);
cr=iycbcr(:,:,3);
ccb=cb.^2;
subplot(4,4,3)
imshow(ccb)
title('CB^2');
ccr=(1-cr).^2;
subplot(4,4,4)
imshow(ccr)
title('(1-CR)^2');
cbcr=ccb./cr;
subplot(4,4,5)
imshow(cbcr)
title('CB/CR');
igray=rgb2gray(i);
subplot(4,4,6)
imshow(igray)
title('Gray space');
g=1./3;
l=g*ccb;
m=g*ccr;
n=g*cbcr;
eyemapchr=l+m+n;
subplot(4,4,7)
imshow(eyemapchr)
title('Chrom Eyemap');
J=histeq(eyemapchr);
subplot(4,4,8)
imshow(J)
title('Equalized image');
SE=strel('disk',15,8);
o=imdilate(igray,SE);
p=1+imerode(igray,SE);
eyemaplum=o./p;
subplot(4,4,9)
imshow(eyemaplum)
title('Lum Eyemap');
end
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by