How can I color the specific region of the image?
Hi!
I want to change the color of specific region in an image. The background color should be different from the eyes color of the image shown below. Thanks
img = imread(‘C:UsersJunaid KhanDesktopjun.png’);
bn=im2bw(img);
imshow(bn)
bn=bwareaopen(bn,100);
imshow(bn)
[L,n]=bwlabel(bn);
imshow(label2rgb(L));
prop=regionprops(L);
The above is the input image and while I run this code the output is like this.
I want to change the eyes and mouth color and also the background color should not be same.
ThanksHi!
I want to change the color of specific region in an image. The background color should be different from the eyes color of the image shown below. Thanks
img = imread(‘C:UsersJunaid KhanDesktopjun.png’);
bn=im2bw(img);
imshow(bn)
bn=bwareaopen(bn,100);
imshow(bn)
[L,n]=bwlabel(bn);
imshow(label2rgb(L));
prop=regionprops(L);
The above is the input image and while I run this code the output is like this.
I want to change the eyes and mouth color and also the background color should not be same.
Thanks Hi!
I want to change the color of specific region in an image. The background color should be different from the eyes color of the image shown below. Thanks
img = imread(‘C:UsersJunaid KhanDesktopjun.png’);
bn=im2bw(img);
imshow(bn)
bn=bwareaopen(bn,100);
imshow(bn)
[L,n]=bwlabel(bn);
imshow(label2rgb(L));
prop=regionprops(L);
The above is the input image and while I run this code the output is like this.
I want to change the eyes and mouth color and also the background color should not be same.
Thanks image processing MATLAB Answers — New Questions