prog.cpp:18:10: warning: multi-character character constant [-Wmultichar]
se=strel('disk',5);
^
prog.cpp:23:7: warning: character constant too long for its type
title('Processed Image');
^
prog.cpp:26:7: warning: character constant too long for its type
title('Blurred Image')
^
prog.cpp:2:1: error: 'cam' does not name a type
cam=webcam(1);
^
prog.cpp:3:1: error: 'I' does not name a type
I = snapshot(cam);
^
prog.cpp:4:1: error: expected unqualified-id before '[' token
[m,n,t]=size(I);
^
prog.cpp:5:1: error: 'b' does not name a type
b=false(m,n);
^
prog.cpp:6:1: error: expected unqualified-id before '%' token
%mr,mg,mb & Mr,Mg,Mb are minimum & maximum range of colour of skin
^
prog.cpp:8:7: error: 'Mb' does not name a type
mb=35;Mb=62;mg=48;Mg=81;mr=57;Mr=110;
^
prog.cpp:8:13: error: 'mg' does not name a type
mb=35;Mb=62;mg=48;Mg=81;mr=57;Mr=110;
^
prog.cpp:8:19: error: 'Mg' does not name a type
mb=35;Mb=62;mg=48;Mg=81;mr=57;Mr=110;
^
prog.cpp:8:25: error: 'mr' does not name a type
mb=35;Mb=62;mg=48;Mg=81;mr=57;Mr=110;
^
prog.cpp:8:31: error: 'Mr' does not name a type
mb=35;Mb=62;mg=48;Mg=81;mr=57;Mr=110;
^
prog.cpp:9:1: error: expected unqualified-id before 'for'
for i=1:m
^
prog.cpp:13:13: error: 'end' does not name a type
end
^
prog.cpp:17:1: error: 'Iz' does not name a type
Iz=bwareafilt(b,1); %Assuming largest skin-coloured object is hand ,removes other objects with skin color
^
prog.cpp:17:21: error: expected unqualified-id before '%' token
Iz=bwareafilt(b,1); %Assuming largest skin-coloured object is hand ,removes other objects with skin color
^
prog.cpp:19:1: error: 'Iblur' does not name a type
Iblur=imclose(Iz,se); %Bluring image
^
prog.cpp:19:23: error: expected unqualified-id before '%' token
Iblur=imclose(Iz,se); %Bluring image
^
prog.cpp:24:8: error: expected constructor, destructor, or type conversion before '(' token
subplot(1,2,2)
^