随笔分类 - Matlab
摘要:%一,图像的预处理,读入彩色图像将其灰度化PS=imread('1.jpg'); %读入JPG彩色图像文件imshow(PS) %显示出来 title('输入的彩色JPG图像')imwrite(rgb2gray(PS),'PicSampleGray.bmp'); %将彩色图片灰度化并保存PS=rgb2gray(PS); %灰度化后的数据存入数组%二,绘制直方图[m,n]=size(PS); %测量图像尺寸参数GP=zeros(1,256); %预创建存放灰度出现概率的向量for k=0:255 GP(k+1)=length(find(PS==k)
阅读全文
摘要:1.灰度变换增强程序:% GRAY TRANSFORMclc;I=imread('pout.tif');imshow(I);J=imadjust(I,[0.3 0.7],[0 1],1);%transforms the walues in the %intensity image I to values in J by linealy mapping %values between 0.3 and 0.7 to values between 0 and 1.figure;imshow(J);J=imadjust(I,[0.3 0.7],[0 1],0.5);% if GAMMA
阅读全文
摘要:摘要:在对粮虫图像处理过程中,介绍了Matlab图像处理工具箱中的函数,给出了图像处理与分析的技术实现,边缘检测及轮廓提取,通过形态学方法进行图像特征抽取与分析,达到了比较好的效果.关键词:粮虫图像边缘处理形态学变换特征抽取Image offood insect processing based on MatlabZhou long(Department of electrical & information engineering,Wuhan Polytechnic University, 430023)Abstract:In the food insect image proces
阅读全文

浙公网安备 33010602011771号