版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 (1) 名词解释RGB Red Green Blue,红绿蓝三原色CMYK Cyan Magenta yellow blacK , 用于印刷的四分色HISHorizontal Situation Indicator 水平位置指示器FFTFast Fourier Transform Algorithm (method) 快速傅氏变换算法CWTcontinuous wavelet transform 连续小波变换DCTDiscrete Cosine Transform 离散余弦变换DWT DiscreteWaveletTransform离散小波变换CCDCharge Coupled Device
2、 电荷耦合装置Pixel: a digital image is composed of a finite number of elements,each of which has a particular lication and value,these elements are called pixel 像素DC component in frequency domain 频域直流分量GLH Gray Level Histogram 灰度直方图Mather(basic)wavelet:a function (wave) used to generate a set of wav
3、elets, 母小波,用于产生小波变换所需的一序列子小波Basis functions basis image 基函数基图像Multi-scale analysis 多尺度分析Gaussian function 高斯函数sharpening filter 锐化滤波器Smoothing filter/convolution 平滑滤波器/卷积Image enhancement /image restoration图像增强和图像恢复(2)问答题1. Cite one example of digital image processingAnswer: In the domain of medical
4、 image processing we may need to inspect a certain class of images generated by an electron microscope to eliminate bright, isolated dots that are no interest. 2.Cite one example of frequency domain operation from the following processing result, make a general comment about ideal highpass filter (f
5、igure B) and Gaussian highpass filter(figure D) A. Original image B. ideal highpass filter In contrast to the ideal low pass filter, it is to let all the signals above the cutoff frequency fc without loss, and to make all the signals below the cutoff frequency of FC without loss of.C. the result of
6、ideal highpass filter D. Gaussian highpass filterHigh pass filter, also known as "low resistance filter", it is an inhibitory spectrum of the low frequency signal and retain high frequency signal model (or device). High pass filter can make the high frequency components, while the high-fre
7、quency part of the frequency in the image of the sharp change in the gray area, which is often the edge of the object. So high pass filter can make the image get sharpening processingE. The result of Gaussian filter3.The original image, the ideal lowpass filter and Gaussian lowpass filter are shown
8、below B nd C .D and E are the result of the either filter B or CA. Draw lines to connect the filter with their resultB. Explain the difference of the two filters Due to excessive characteristics of the ideal low-pass filter too fast Jun, it will produce a ringing phenomenon.Over characteristics of G
9、auss filter is very flat, so it is not ringing4.What is the result when applying an averaging mask with the size 1X1? 5.State the concept of the Nyquist sampling theorem from the figure belovyThe law of sampling process should be followed, also called the sampling theorem and the sampling theorem. T
10、he sampling theorem shows the relationship between the sampling frequency and the signal spectrum, and it is the basic basis of the continuous signal discretization. In analog / digital signal conversion process, when the sampling frequency fs.max greater than 2 times the highest frequency present i
11、n the signal Fmax fs.max>2fmax, sampling digital signal completely retained the information in the original signal, the general practical application assurance sampling frequency is 5 10 times higher than that of the signal of the high frequency; sampling theorem, also known as the Nyquist theore
12、m6.A mean filter is a linear filter but a median filter is not, why?Mean filter is a typical linear filtering algorithm, it is to point to in the target pixels in the image to a template, this template including its surrounding adjacent pixels and the pixels in itself.To use in the template to repla
13、ce all the pixels of average pixel values.Linear filter, median filter, also known as the main method used in the bounded domain average method.Median filter is a kind of commonly used nonlinear smoothing filter and its basic principle is to put the little value in a digital image or sequence to use
14、 value at various points in the field of a point at which the value to replace, its main function is to let the surrounding pixel gray value differences between larger pixel change with the surrounding pixels value close to the values, which can eliminate the noise of the isolated points, so median
15、filter to filter out the salt and pepper noise image is very effective.(3)算法题1.The following matrix A is a 3*3 image and B is 3*3 Laplacian mask, what will be the resulting image? (Note that the elements beyond the border remain unchanged)2.Develop an algorithm to obtain the processing result B from
16、 original image A3.Develop an algorithm which computes the pseudocolor image processing by means of fourier tramsformAnswer:The steps of the process are as follow:(1) Multiply the input image f(x,y) by (-1)x+y to center the transform; (2) Compute the DFT of the image from (1) to get power spectrum F
17、(u,v) of Fourier transform.(3) Multiply by a filter function h(u,v) .(4) Compute the inverse DFT of the result in (3).(5) Obtain the real part of the result in (4).(6) Multiply the result in (5) by(-1)x+y4.Develop an algorithm to generate approximation image series shown in the following figure b* m
18、eans of down sampling .(4)编程题There are two satellite photos of night as blew.Write a program with MATLAB to tell which is brighter An 8*8 image f(i,i) has gray levels given by the following equation:f(i,i)=|i-j|, i,j=0,1.7Write a program to find the output image obtained by applying a 3*3 median fil
19、ter on the image f(i,j) ;note that the border pixels remain unchanged.Answer:1Design an adaptive local noise reduction filter and apply it to an image with Gaussian noise. Compare the performance of the adaptive local noise reduction filter with arithmetic mean and geometric mean filter. Answer:clea
20、rclose all;rt=imread('E:数字图像处理yy.bmp');gray=rgb2gray(rt);subplot(2,3,1);imshow(rt);title('原图像') ;subplot(2,3,2);imshow(gray);title('原灰度图像') ;rtg=im2double(gray);rtg=imnoise(rtg,'gaussian',0,0.005)%加入均值为0,方差为0.005的高斯噪声subplot(2,3,3);imshow(rtg);title('高噪点处理后的图像'
21、;);a,b=size(rtg);n=3;smax=7;nrt=zeros(a+(smax-1),b+(smax-1);for i=(smax-1)/2+1):(a+(smax-1)/2) for j=(smax-1)/2+1):(b+(smax-1)/2) nrt(i,j)=rtg(i-(smax-1)/2,j-(smax-1)/2); endendfigure;imshow(nrt);title('扩充后的图像');nrt2=zeros(a,b); for i=n+1:a+n for j=n+1:b+n for m1=3:2 m2=(m1-1)/2; c=nrt2(i-m2
22、:i+m2,j-m2:j+m2);%使用7*7的滤波器 Zmed=median(median(c); Zmin=min(min(c); Zmax=max(max(c); A1=Zmed-Zmin; A2=Zmed-Zmax; if(A1>0&&A2<0) B1=nrt2(i,j)-Zmin; B2=nrt2(i,j)-Zmax; if(B1>0&&B2<0) nrt2(i,j)= nrt2(i,j); else nrt2(i,j)=Zmed; end continue; end end endendnrt3=im2uint8(nrt2);
23、figure;imshow(nrt3);title('自适应中值滤波图');2. Implement Wiener filter with “wiener2” function of MatLab to an image with Gaussian noise and compare the performance with adaptive local noise reduction filter.代码如下:>> I=imread('E:数字图像处理yy.bmp');>>J=rgb2gray(I);>>K = imnoise
24、(J,'gaussian',0,0.005);>>L=wiener2(K,5 5);>>subplot(1,2,1);imshow(K);title('高噪点处理后的图像');>>subplot(1,2,2);imshow(L);title('维纳滤波器处理后的图像');3. Image smoothing with arithmetic averaging filter (spatial convolution). 图像平滑与算术平均滤波(空间卷积)。>> h=ones(3,3)/9;>&g
25、t; hh = 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111>> x1=imfilter(x,h);>> subplot(121);imshow(x);title('原图');>> subplot(122);imshow(x1);title('经过(3*3)邻域平均后图');>> h1=ones(5,5)/25;>> h1h1 = 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.040
26、0 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.0400 0.04000.0400 0.0400 0.0400 0.0400 0.0400>> x2=imfilter(x,h1);>> subplot(121);imshow(x);title('原图');>> subplot(122);imshow(x2);title('经过(5*5)邻域平均后图');4.Make a comparison of noise re
27、duction by both median filter and averaging filter. 进行比较和中值滤波的降噪平均滤波器。 >> avgx=filter2(fspecial('average',5),x)/255;>> midx=medfilt2(x,5,5);>> subplot(131);imshow(x);title('原图');>> subplot(132);imshow(avgx);title('经过(5*5)均值滤波图');>> subplot(133);i
28、mshow(midx);title('经过(5*5)中值滤波图');5.Develop a program to implement a Gradient Mask to obtain edge of an object (in compare with the function provided by Matlab)开发一个程序来实现梯度面具来获取一个对象的边缘(与Matlab提供的函数)>> subplot(231);imshow(j);title('原图');>> eSoble=edge(j,'sobel');>
29、;> subplot(232);imshow(eSoble);title('Soble图');>> ePrewitt=edge(j,'prewitt');>> subplot(233);imshow(ePrewitt);title('Prewitt图');>> eRobert=edge(j,'roberts');>> subplot(234);imshow(eRobert);title('Robert图');>> eLog=edge(j,'l
30、og');>> subplot(235);imshow(eLog);title('Log图');>> eCanny=edge(j,'canny');>> subplot(236);imshow(eCanny);title('Canny图');6.Image enhancement with High-Boost Filtering Mask and compare with the result of the operation defined by equation 图像增强与High-Boost过滤
31、面罩和与方程定义的操作的结果>> subplot(131);imshow(j);title('原图');>> H=-1 -1 -1;-1 -9 -1;-1 -1 -1;>> xhigh=filter2(H,j);>> subplot(132);imshow(xhigh,);title('高通滤波');>> jdouble=double(j);>> M=1 1 1;1 1 1;1 1 1/9;>> xmask=double(xhigh);>> xmask2=filter
32、2(M,xmask);>> xm=xmask-xmask2;>> subplot(133);imshow(xm);title('掩膜处理');7Count the number of pixels for each gray levels. 计算像素的数量为每个灰色的水平。>> jpg=imread('F:19.jpg');>> grayjpg=rgb2gray(jpg);>> imshow(grayjpg);>> m,n=size(jpg);>> figure(1);>&
33、gt; imshow(jpg);>> gp=zeros(1,256); for i=1:256 gp(i)=length(find(jpg = (i-1);end figure,bar(0:255,gp);8Estimate probabilities of each gray levels. 估计每个灰度级的概率。 m,n=size(jpg); figure(1); imshow(jpg); gp=zeros(1,256); %创建一个全零矩阵,1×256,计算各灰度出现的概率 for i=1:256 gp(i)=length(find(jpg = (i-1)/(m*n
34、); end figure,bar(0:255,gp); 9Calculate cumulative distribution function of each gray levels. 计算每个灰度级的累积分布函数。 S1=zeros(1,256); tmp=0; for i=1:256 tmp=tmp+gp(i); S1(i)=tmp; %各灰度的累计概率 end figure,plot(S1); 10. Calculate gray levels of output image. 计算输出图像的灰度值g = EQ (f)newGp=zeros(1,256); %计算新的各灰度出现的概率
35、S2=zeros(1,256); for i=1:256S2(i)=round(S1(i)*256); %将取整后的值存储在S2 endfor i=1:256newGp(i)=sum(gp(find(S2=i); end figure,bar(0:255,newGp);11Develop a program to decompose the two images into coefficients and then fuse the corresponding coefficients to obtain a fusion result. Observe the experiment result by trying different wavelets provided by Matlab and make necessary comparisons.x1=imread('E:bwb.jpg');x1=rgb2gray(x1);x1=double(x1)/255;x2=imread('E:bwb.jpg');x2=rgb2gray(x2);x2=double(x2)/255; subpl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年数据产品和服务创新形态:核验查询 分析报告 指数 可视化开发规范
- 河南省郑州八中学2026届初三5月大联考(三)化学试题试卷含解析
- 泰安市泰山区重点达标名校2026年初三3月月测生物试题试卷(人教版)含解析
- 2026年绿电制氢耦合生物质气化制绿色甲醇工艺
- 2026年公共数据分级定价机制与国有资产运营管理逻辑衔接
- 2026年虚拟电厂聚合储能资源需求响应收益模式
- 高性能计算技术专家的面试技巧解析
- 外包服务公司项目负责人服务外包策略规划及执行方案
- 2026年广告发布合同效果评估标准
- 汽车零部件销售经理面试全解析
- 锚索张拉力计算表
- 小班数学认识数字1-5
- LY/T 1705-2007管氏肿腿蜂人工繁育及应用技术规程
- GB/T 5154-2022镁及镁合金板、带材
- 马工程《刑法学(下册)》教学课件 第17章 危害国家安全罪
- GB 30509-2014车辆及部件识别标记
- 医学导论-课件
- 细胞生物学CRISPR-CAS9-课件
- 建筑工程项目管理综合练习及答案
- 楼地面装饰工程计量与计价
- 学生预登信息采集表
评论
0/150
提交评论