资 源 简 介
应用背景中图分类号;清除所有;关闭所有;我= imread(血液。JPG”);我=双(即时通讯);图(1)imshow(uint8(IM))【maxx,maxy ] =大小(IM);IMM =猫(3,IM,IM);%%%%%%%%%%%%%%%%CC1 = 8;2 = 250;ttfcm = 0;而(ttfcm & lt;15)ttfcm = ttfcm + 1C1 = repmat(CC1,maxx,maxy);C2 = repmat(CC2,maxx,maxy);如果ttfcm = = 1 & nbsp;test1 = C1;TEST2 = C2;结束C =猫(3,C1,C2);repmat REE =(0 00000 1,maxx,maxy);ree1 =猫(3,稀土元素,稀土元素);距离= ree1-c;距离=距离。*距离+ ree1;刀术= 1。/距离;daoshu2 =刀术(:,:,1)+刀术(:,:,2);distance1 =距离(:,:,1)。* daoshu2;U1=1。/ distance1;距离2=距离(:,:,2)。* daoshu2;U2 = 1 / distance2;CCC1 =金额(金额(U1 U1。*。*我))/金额(金额(U1。* U1));%的误差线。 ;CCC2 =金额(金额(U2乐队U2。*。*我))/笔(笔(U2。* U2));tmpmatrix = [ ABS(cc1-ccc1)/ CC1,ABS(cc2-ccc2)/ CC2 ];PP =猫(3,U1,U2);我= 1:麦斯J = 1:马克斯如果麦克斯(PP(I,J,:))= = u1(i,j)ix2(i,j)= 1;其他的ix2(i,j)= 2;结束结束结束%%%%%%%%%%%%%%%如果麦克斯(tmpmatrix)& lt;0.0001打破;其他的CC1 = CCC1;2 =功能;结束我= 1:麦斯J = 1:马克斯如果ix2(I,J)= = 2为(i,j)= 254;其他的为(i,j)= 8;结束结束结束%%%%%%%%%%%%%%%%%%图(2);imshow(uint8(IMMM));存储为uint8(IMMM);imwrite(存储,"fuzzysegmented JPG。”);结束我= 1:麦斯J =