![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数字图像处理
文章平均质量分 50
不吃水果的太空人
这个作者很懒,什么都没留下…
展开
-
MatLab 数字图像处理实验 图像表示与描述
clearclose alladdpath D:\纹理图像集percent=[];for n=1:10 train=[];test=[]; index=0; for i=1:8 P=randperm(8); for j=1:4 train{i,j}=strcat(int2str(i),int2str(P(j)),'.jpg'); end for j=5:8 inde原创 2021-07-02 16:25:00 · 676 阅读 · 0 评论 -
MatLab 数字图像处理实验 色彩图像处理
close allclear allrgb=imread('D:/honghua.jpg');rgb1=im2double(rgb);r=rgb1(:,:,1);%图像的红色分量g=rgb1(:,:,2);%图像的绿色分量b=rgb1(:,:,3);%图像的蓝色分量r1=r(130:195,86:170);%在红分量中选择一块矩形区域,由输入可知size(r)=(195 ,218),改变选择的行列可以改变标准偏差的标准值r1_u=mean(mean(r1(:)));%计算该矩形区域的均值[原创 2021-06-22 10:54:24 · 1230 阅读 · 0 评论 -
MatLab 数字图像处理实验 图像分割
实验(1)以chair.jpg图像为例,分别采用sobel、prewitt、roberts和log对该图像及其加上噪声后的图像进行边缘检测。close allclear allI=imread('D:/chair.jpg');I_noise=imnoise(I,'gaussian',0.06);bw1=edge(I_noise,'sobel');bw2=edge(I_noise,'prewitt');bw3=edge(I_noise,'roberts');bw4=edge(I_noise,'原创 2021-06-11 10:32:01 · 2098 阅读 · 0 评论 -
MatLab 数字图像处理实验 图像压缩
clcclose allclear allI=imread('D:/lena.jpg'); BW=im2bw(I,0.6);%二值化阈值[zipped,info]=RLEencode(BW); unzipped=RLEdecode(zipped,info);cr=info.ratio;whos BW unzipped zippedfunction [zipped,info]=RLEencode(vector)[m,n]=size(vector); vector=uint8(vecto原创 2021-06-10 13:30:00 · 2235 阅读 · 1 评论 -
MatLab 数字图像处理实验 图像复原
实验内容实验(1)使用给定的图像cameraman做实验,添加高斯噪声,所使用的均值滤波器包括算术均值滤波器、几何均值滤波器和逆谐波滤波器,参考教材110页至112页的算法原理和程序例6.2close allclear allI = imread('D:/cameraman.tif'); I_noise=double(imnoise(I,'gaussian',0.06));I_mean1=imfilter(I_noise,fspecial('average',3));I_mean2=exp(原创 2021-05-18 11:35:49 · 2768 阅读 · 12 评论 -
MatLab 数字图像处理实验 图像增强
实验内容(1)对曝光不足的图像采用灰度线性变换对图像每一个像素灰度做线性拉伸。close allclear allI = im2double(imread('D:\figure51.jpg'));a = 1.2;b = -150;I2 = a.*I+b/255;figure;subplot(1,2,1);imshow(I);title('1824100163 高政宏'),xlabel('原图');subplot(1,2,2);imshow(I2);title('1824100163 高政原创 2021-04-30 11:02:44 · 1569 阅读 · 0 评论 -
MatLab 图像基本运算实验 数字图像处理
内容:(1)对图像比例放大1.5倍,比例缩小0.7倍,非比例放大到600x700像素,非比例缩小到300x400像素。I=imread('D:/lenagray.jpg');I=im2double(I);O1=imresize(I,1.5,'bilinear');O2=imresize(I,0.7,'bilinear');O3=imresize(I,[600,700],'bilinear');O4=imresize(I,[300,400],'bilinear');figure;subplo原创 2021-04-05 11:39:43 · 1373 阅读 · 0 评论