Experiment(EC)

更新时间:2023-06-29 22:51:48 阅读: 评论:0

Experiment(EC)
Digital Image Processing Cour Experiment Report
Experiment Title
Student’s Name
Student’s ID
Class
Date handed in
Information Engineering school, NCUT
1
整顿作风
Experiment 1
Basic Image Operation & Image Transformation
图像基本操作及图像变换
殷墟遗址
1. Objective
(1) to know how to manipulate images了解图像管理的方法
(2) to be able to implement basic image transformations in Matlab
能够在Matlab中实现基本的图像变换
2. Experiment Content
(1) Basic Image Operation图像基本操作
a. Read the images img_1.tif, img_2.png given in the folder, and show them in one and two figures respectively.
(referenced function: imread, imshow, figure, subplot)
读取文件夹中给定的图像img_1.tif和img_2.png,并分别显示在一个figure中和两个figure中。
b. In Matlab, obrve the images information from the workspace Panel在Matlab的工作区面板中观察图像信息。
c. U size, imfinfo,whos,etc functions to obtain image information respectively.分别获取图像信息
d. Add title to the images. (referenced function: title)添加图片标题
e. Implement the following codes in the M-file Editor, obrve the result, and determine the function of t(). 在文件编辑器中执行下面的代码,观察结果,并确定函数t()的功能。
f=imread(‘img_1.tif’) ;
imshow(f);
t(figure(1),'NumberTitle','off','Name','my first image’)
f. Save img_1.tif to the directory “d:\imagetest”. If the folder does not exist, plea create this new folder first. (referenced function: imwrite)
2
保存img_1.tif到目录“D:\ imagetest”。如果文件夹不存在,请先创建新的文件夹。(参考函数:imwrite)
(2) Image transformation图像变换
a (Optional). write a program capable of reducing the number of intensity levels in an image from 256 to L(in integer powers of 2). The desired number of intensity levels needs to be a varialbe input to your program.
(选做)编写程序将图像亮度值从256减少到L(2的整数次幂)。
b. Zooming and Shrinking Images图像缩放
(a) Write a program capable of shrinking an image by nearest, bilinear, and bicubic interp
七色追新助手olation respectively. (referenced function: resize) 编写程序,分别使用 nearest、bilinear, 和bicubic interpolation实现图像缩小。
(b) U your program to zoom the images in (a) back to original size. Explain the reasons for their differences.
使用前面的程序将(a)结果图像放大到原尺寸。解释说明形成图像前后差异的原因。
c. Write a program capable of performing the four arithmetic operations between two images. In addition to multiplying two images, your multiplication function must be able to handle multiplication of an image by a constant. (hint:im2doulbe)
编写程序实现两图像的四则运算。乘法功能必须能够处理图像与一个常数的乘法运算。
3
Experiment 2
Image Enhancement图像增强
1. Objective
(1) to be able to implement basic image enhancement by intensity transformation.能利用灰度变换实现基本的图像增强。
(2) to be able to implement basic image enhancement by spatial filtering.能够利用空间滤波实现基本的图像增强。
2. Experiment Content
(1) Image Enhancement Using Intensity Transformation利用灰度变换的图像增强
A. Basic Intensity Transformation基本亮度变换
(a) Read the following program to determine the parts of rever transformation, threshold transformation, log transformation and power-law transformation. Give the comments to the codes.
阅读下面的程序来确定其中反向变换、阈值变换、对数变换和幂次变换各部分,注释代码。
I=imread('cameraman.tif');
figure(1),imshow(I)
I_rever=255-I;鲁比克魔方
figure(2),imshow(I_rever);
I_bw=im2bw(I,0.4);
figure(3),imshow(I_bw)
I_double=double(I);
I1=I_double/255;
学习表格C=2;
K=C*log(1+I1);
勇往直前歌曲figure(4),imshow(K);
I_gamma_A=imadjust(I,[ ],[ ],0.75);
I_gamma_C=imadjust(I,[ ],[ ],1.5);%Gamma=1.5
figure(5);subplot(1,2,1);imshow(I_gamma_A),title('Gamma=0.75');
subplot(1,2,2);imshow(I_gamma_C),title('Gamma=1.5');
(b) Run the above program and obrve the result images. Modify the parameters in the log transformation and power-law transformation to get the best visual result. Explain the reasons for the major
4
differences between them.
运行上面的程序并观察图像的结果,修改对数变换和幂率变换中的参数以得到最好的视觉效果,解释图像变化的原因。
竞聘理由怎么写B. Histogram Equalization直方图均衡化
(a) Write a computer program for computing the histogram of an image.(Referenced function: imhist)
编写程序,计算图像的直方图。(参考函数:imhist)
(b) Implement the histogram equalization on an image, and obrve the result.(Referenced function: histeq)实现图像的直方图均衡化并观
勇猛的拼音
察结果。(参考函数:histeq)
As a minimum, your report should include the original image, a plot of its histogram, the enhanced image, and a plot of its histogram. U this information to explain why the resulting image was enhanced as it was.
实验报告应包括原始图像、直方图,增强的图像及其直方图。使用直方图信息解释结果图像增强的原因。
(2) Spatial Filtering空间滤波
A. Read the program to determine the program function, write the mask of the filter.
阅读下面的程序,确定程序功能,写出滤波掩模。
f = imread ( ‘cameraman.tif’);
w=ones(3);

本文发布于:2023-06-29 22:51:48,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1069137.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:图像   直方图   变换   实现   程序   结果   解释   基本
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图