I=imread('wrod213.bmp'); imshow(I); figure,imshow(~I);
http://www.codebf.com/read/15711/536042
I=imread('testpat1.tif'); imshow(I); J=filter2([1 2; -1 -2], I); figure,imshow(J,[]);
http://www.codebf.com/read/15711/536044
I = imread('bacteria.BMP'); BW1 = edge(I,'prewitt',0.04); % 0.04为梯度阈值 figure(1); imshow(I); figure(2); imshow(BW1);
http://www.codebf.com/read/15711/536099
I=imread('4-11.jpg'); I1=I(:,:,1); I2=I(:,:,2); I3=I(:,:,3); [y,x,z]=size(I); d1=zeros(y,x); d2=d1; myI=double(I); I0=zeros(y,x); for i=1:x for j=1:y %欧式聚类 d1(j,i)=sqrt((myI(j,i,1)-1
http://www.codebf.com/read/15711/536100
I=imread('circbw.tif'); imshow(I); SE=strel('rectangle',[40 30]); % 结构定义 J=imopen(I,SE); % 开启运算 figure,imshow(J);
http://www.codebf.com/read/15711/536103
I = imread('bacteria.BMP'); BW1 = edge(I,'log',0.003); % σ=2 imshow(BW1);title('σ=2') BW1 = edge(I,'log',0.003,3); % σ=3 figure, imshow(BW1);title('σ=3')
http://www.codebf.com/read/15711/536104
I = [ 1 1 1 1 2 3 6 6 1 1 2 1 4 5 6 8 1 1 1 1 10 15 7 7 1 1 1 1 20 25
http://www.codebf.com/read/15711/536105
I=imread('blood1.bmp'); imhist(I); % 观察灰度直方图, 灰度140处有谷,确定阈值T=140 I1=im2bw(I,140/255); % im2bw函数需要将灰度值转换到[0,1]范围内 figure,imshow(I1);
http://www.codebf.com/read/15711/536106
I=imread('wrod213.bmp'); imshow(I); I=~I; % 腐蚀运算对灰度值为1的进行 figure, imshow(I); SE=strel('square',3); % 定义3×3腐蚀结构元素 J=imerode(~I,SE); BW=(~I)-J; % 检测边缘 figure,imshow(BW);
http://www.codebf.com/read/15711/536107
I = imread('bacteria.BMP'); imshow(I); BW1 = edge(I,'canny',0.2); figure,imshow(BW1);
http://www.codebf.com/read/15711/536108
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机