Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: skin detection
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Karbala'a Unvi. Science

Posts: 4
Registered: 10/24/13
skin detection
Posted: Jan 10, 2014 11:03 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I got this code,
clc;
clear all;
close all;
a = imread('E:\stuff TOO\facese\7.jpg');
a =imresize(a,[700 700]); % resize the image
[r,c,p] = size(a);
R = a (:,:,1);
G = a (:,:,2);
B = a (:,:,3);
d=zeros(r,c,p);
Z=100;
for i=1:r;
for j=1:c;
if ( R(i,j)>185)&&(G(i,j)>90)&& (B(i,j)>70);
d(i,j)=1;
O=i-Z;
K=j-400;

end
end
end
for i=1:r;
for j=1:c;
F=d(i,j);
if F~=1;
a(i,j,1)=1;
a(i,j,2)=1;
a(i,j,3)=1;
end
end
end
imshow (a)
when I run that code I get the skin detected but the back ground is not removed from the resulted image and it is a white back ground.
what is the prefect way to remove the white color from the resulted image.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.