简介:范文网小编为你整理了多篇相关的《2024数字图像处理教案模板(精选6篇)_数字图像处理教案》,但愿对你工作学习有帮助,当然你在范文网还可以找到更多《2024数字图像处理教案模板(精选6篇)_数字图像处理教案》。
数字图像处理教案模板(精选6篇)由范文网小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“数字图像处理教案”。
第1篇:《数字图像处理》
实验五 图像的几何变换
一.实验目的及要求
掌握图像几何变换的基本原理,熟练掌握数字图像的缩放、旋转、平移、镜像和转置的基本原理及其MATLAB编程实现方法。
二、实验内容
(一)研究以下程序,分析程序功能;输入执行各命令行,认真观察命令执行的结果。熟悉程序中所使用函数的调用方法,改变有关参数,观察试验结果。
1.图像缩放 clear all, close all I = imread('cameraman.tif'); Scale = 1.35;
% 将图像放大1.35倍
J1 = imresize(I, Scale, 'nearest');
% using the nearest neighbor interpolation J2 = imresize(I, Scale, 'bilinear');
% using the bilinear interpolation imshow(I), title('Original Image'); figure, imshow(J1), title('Resized Image-- using the nearest neighbor interpolation '); figure, imshow(J2), title('Resized Image-- using the bilinear interpolation '); help imresize
% 查看imresize使用帮助
1.95倍
I = imread('cameraman.tif'); Scale = 1.96;
% 将图像放大1.96倍
J1 = imresize(I, Scale, 'nearest');
% using the nearest neighbor interpolation J2 = imresize(I, Scale, 'bilinear');
% using the bilinear interpolation imshow(I), title('Original Image'); figure, imshow(J1), title('Resized Image-- using the nearest neighbor interpolation '); figure, imshow(J2), title('Resized Image-- using the bilinear interpolation ');
3
说明:
注意观察不同插值方法的图像表现; 改变图像缩放因子Scale,重做上述实验。 2.图像旋转
clear all, close all I = imread('cameraman.tif'); Theta = 45;
% 将图像逆时针旋转45。
J1 = imrotate(I, Theta, 'nearest');
% using the nearest neighbor interpolation Theta = -45;
% 将图像顺时针旋转45。
J2 = imrotate(I, Theta, 'bilinear', 'crop'); % using bilinear interpolation and crops the output image imshow(I), title('Original Image'); figure, imshow(J1), title('Rotated Image-- using the nearest neighbor interpolation '); figure, imshow(J2), title(' Rotated Image-- using the bilinear interpolation '); % 查看imrotate使用帮助
5 help imrotate %-------
图像旋转30顺时针逆时针
clear all, close all I = imread('cameraman.tif'); Theta = 30;
% 将图像逆时针旋转30。
J1 = imrotate(I, Theta, 'nearest');
% using the nearest neighbor interpolation Theta = -30;
% 将图像顺时针旋转30。
…… 此处隐藏18151字,全部文档请下载后查看。喜欢就下载吧 ……
2024数字图像处理教案模板(精选6篇)_数字图像处理教案




该篇《2024数字图像处理教案模板(精选6篇)_数字图像处理教案》范文为DOC格式,范文网为全国知名范文网站,下载本文后稍作修改便可使用,即刻完成写稿任务。网址:https://www.zhsm.net/a/32wgkk8.shtml