Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
illumination normalization
no vote
I=imread('fing2.jpg'); imshow(I); b= rgb2gray(I); >>c=adapthisteq(b); >>imshow(c); MN=size(c); >>background = imopen(c,strel('rectangle',MN)); >> I2 =imsubtract(c,background); I3= imadjust(I2); >>imshow(I3); level =graythresh(b); d=im2bw(I3,level); bw =bwareaopen(d, 50); >>imshow(bw);
kaviyaarulraj
2018-01-25
0
1
askin color thresholding
no vote
I=imread('filename'); I=double(I); [hue,s,v]=rgb2hsv(I); cb = 0.148* I(:,:,1) - 0.291* I(:,:,2) + 0.439 * I(:,:,3) + 128; cr = 0.439 * I(:,:,1) - 0.368 * I(:,:,2) -0.071 * I(:,:,3) + 128; [w h]=size(I(:,:,1)); for i=1:w for j=1:h if 140<=cr(i,j) && cr(i,j)<=165 && 140<=cb(i,j) && cb(i,j)<=195 && 0.01<=hue(i,j) && hue(i,j)<=0.1 segment(i,j)=1; else segment(i,j)=0; end end end % imshow(segment); im(:,:,1)=I(:,:,1).*segment; im(:,:,2)=I(:,:,2).*segment; im(:,:,3)=I(:,:,3).*segment; figure,imshow(uint8(im));
kaviyaarulraj
2018-01-20
1
1
No more~