I=imread('RoadG2.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
http://www.codebf.com/read/15711/535943
I=imread('z12R.jpg'); I=im2bw(I,0.6); SE1=strel('square', 3); R=imerode(I,SE1); % “腐蚀”运算 Edge_Road=I-R; % 边缘检测 [y,x]=size(I); Px=zeros(y,1); CenterR=zeros(y,x); for
http://www.codebf.com/read/15711/535947
I=imread('cancer.bmp'); [y,x,z]=size(I); myI=double(I); % 图象的数据类型为无符号整型,必须转换为双精度实型才能计算 %%%%%%%%%%% RGB to HSI %%%%%%%% H=zeros(y,x); S=H; HS_I=H; for i=1:x for j=1:y
http://www.codebf.com/read/15711/535960
I=imread('cancer02.bmp'); % 注意必须保证二值图像中,细胞区域为白色区域或者像素点值为“1” [x,y]=size(I); BW = bwperim(I,8); % 检测细胞的边缘跟踪,用于计算周长 %检测垂直方向连读的周长像素点% P1=0; P2=0; Ny=0; ...
http://www.codebf.com/read/15711/535961
I=imread('brand02.jpg'); HS_I=double(I); tic G=gradient(HS_I); % 计算梯度值 [y,x]=size(I); T=60; %%%%%%% 商标文字分割 %%%%%%%%%% n=30; GY=zeros(y,1); for j=1:y for i=1:x-n
http://www.codebf.com/read/15711/535965
I=imread('Car.jpg'); [y,x,z]=size(I); myI=double(I); %%%%%%%%%%% RGB to HSI %%%%%%%% tic % 测定算法执行的时间,开始计时 %%%%%%%%%%% 统计分析 %%%%%%%%%%%%%%% %%%%%%%% Y 方向 %%%%%%%%%% Blue_y=zeros(y,1); for
http://www.codebf.com/read/15711/535971
%I=imread('24-1.jpg'); 该图像的试验结果读者自行试验。 I=imread('22-2.jpg'); tic [y,x,z]=size(I); myI=double(I); %%%%%%%%%%% RGB to HSI %%%%%%%% HS_I=(myI(:,:,1)+myI(:,:,2)+myI(:,:,3))/3; t1=toc tic
http://www.codebf.com/read/15711/535975
I=imread('19-3-02.jpg'); %I=imread('49-3-BW01.jpg'); I=im2bw(I,0.43); [y x]=size(I); Top=zeros(1,x); % 顶端轮廓检测 for i=1:x j=1; while ((I(j,i)==1)&&(j
http://www.codebf.com/read/15711/535985
I=imread('Plane211.jpg'); I2=rgb2gray(I); imshow(I); figure,imshow(I2);
http://www.codebf.com/read/15711/536037
I=imread('Plane211.jpg'); I2=rgb2gray(I); imshow(I); figure,imshow(I2); figure,subplot(1,2,1),imshow(I); subplot(1,2,2),imshow(I2);
http://www.codebf.com/read/15711/536038
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机