实验一图像增强和图像分割实验研讨.doc

实验一 图像增强和图像分割实验 (1)分别用图中给出的直线和曲线作为增强函数进行增强,比较它们的效果并讨论其特点。 线性变换 对指数变换 图片1 图片2 实验步骤: 在MATLAB中编写灰度图像的线性变换点运算程序 图片1处理程序 I=imread(图片1.png); %读入原图像 I=im2double(I); %转换数据类型为double [M,N]=size(I); figure(1); imshow(I);%显示原图像 title(原图像); figure(2); I=rgb2gray(I); %转化为灰度图像 [H,x]=imhist(I,64); stem(x,(H/M/N),.); title(原图像); %tan=30` a=sqrt(3)/3;b=0; y=a.*I+b; figure(3); imshow(y); title(tan=30); figure(4); [H,x]=imhist(y,64); stem(x,(H/M/N),.); title(tan=30); %tan=45` a=1;b=0; y=a.*I+b; figure(5); imshow(y); titl

文档评论(0)

1亿VIP精品文档

相关文档