Artificial Intelligence - هوش مصنوعی

Artificial Intelligence - هوش مصنوعی (http://artificial.ir/intelligence/)
-   پردازش تصوير(Image Processing) (http://artificial.ir/intelligence/forum67.html)
-   -   استخراج چشم از تصویر چهره (http://artificial.ir/intelligence/thread12624.html)

زهرا فاطمه ۱۲-۱۸-۱۳۹۲ ۰۷:۰۷ بعد از ظهر

استخراج چشم از تصویر چهره
 
سلام. من یه برنامه نوشتم که چشم رو از تصویر استخراج کنه. چندتا اشکال دارم:
1- چرا خروجی cb و cr به توان دو سفیده؟
2- چرا and آی مپ هام سفیده؟
3- چرا خروجی لومینانسم که داره چشم ها رو نشون میده، یکم نویز داره و برای تصاویر دیگه که امتحان کردم درست نیست؟

i=imread('pic8.jpg');
imshow(i);
subplot(4,4,1)
imshow(i)
%%
iycbcr=rgb2ycbcr(i);
subplot(4,4,2)
imshow(iycbcr)
y=iycbcr(:,:,1);
cb=iycbcr(:,:,2);
cr=iycbcr(:,:,3);
ccb=cb.^2;
subplot(4,4,3)
imshow(ccb)
ccr=(255-cr).^2;
subplot(4,4,4)
imshow(ccr)
cbcr=ccb./cr;
subplot(4,4,5)
imshow(cbcr)
%%
igray=rgb2gray(i);
subplot(4,4,6)
imshow(igray)
g=1./3;
l=g*ccb;
m=g*ccr;
n=g*cbcr;
%%
eyemapchr=l+m+n;
subplot(4,4,7)
imshow(eyemapchr)
J=histeq(eyemapchr);
subplot(4,4,8)
imshow(J)
SE=strel('disk',15,8);
o=imdilate(igray,SE);
p=1+imerode(igray,SE);
eyemaplum=o./p;
subplot(4,4,9)
imshow(eyemaplum)
cc=and(J,eyemaplum);
subplot(4,4,10)
imshow(cc)


زمان محلي شما با تنظيم GMT +3.5 هم اکنون ۰۱:۵۷ بعد از ظهر ميباشد.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.