数字图像处赖捻 第3章.pptVIP

  • 0
  • 0
  • 约 48页
  • 2017-05-04 发布于浙江
  • 举报
数字图像处赖捻 第3章

3.1 背景知识;3.2 亮度变换函数;例3.1:使用函数imadjust;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;3.2.2 对数和对比度拉伸变换;例3.2:使用对数变换减少动态范围;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;3.2.3 亮度变换的一些使用M函数;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;3.3 直方图处理与函数绘图;figure subplot(121),imshow(f),subplot(122),imhist(f)%绘制原图和默认直方图;figure %用bar函数绘制直方图并调整 bar(horz,h1) axis([0 255 0 15000]) set(gca,xtick,0:50:255) set(gca,ytick,0:2000:15000);figure stem(horz,h1,fill) %用stem函数绘制直方图 axis([0 255 0 15000]) set(gca,xtick,[0:50:255]) set(gca,ytick,[0:2000:15000]);3.3.2:直方图均衡化;直方图均衡化的matlab函数为histeq:g=histeq(f,nlev);Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;3.3.3:直方图归定化(匹配);例3.6:直方图归定化(匹配);采用交互式直方图匹配,首先计算一个已归一化到单位区域的双峰值高斯函数:;从键盘输入交互式信息,绘制高斯函数:;% Convert the input string to a vector of numerical values and % verify the number of inputs. v = str2num(s); if numel(v) ~= 7 disp(Incorrect number of inputs) continue end p = twomodegauss(v(1), v(2), v(3), v(4), v(5), v(6), v(7)); % Start a new figure and scale the axes. Specifying only xlim % leaves ylim on auto. figure, plot(p) xlim([0 255]) end;调用函数,实现直方图归定化(匹配);输入交互参数:0.15, 0.05, 0.75, 0.05, 1, 0.07, 0.002(此处为默认,直接输入x同),得到双峰归定化直方图:;运行后的归定化均衡效果:;3.4 空间滤波;Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd.;Evaluation on

文档评论(0)

1亿VIP精品文档

相关文档