文档介绍:图像Canny边缘检测的程序设计
摘要
边缘检测是数字图像处理中的重要内容,边缘是图像最基本的特性。在图像边缘检测中,微分算子可以提取出图像的细节信息,景物边缘是细节信息中最具有描述景物特征的部分,也是图像分析中的一个不可或缺的部分。本文详细地分析了目前常用的几种算法,即:Roberts交叉微分算子、Sobel微分算子、Priwitt微分算子和Laplacian微分算子以及Canny算子,用C语言编程实现各算子的边缘检测,并根据边缘检测的有效性和定位的可靠性,得出Canny算子具备有最优边缘检测所需的特性。
关键词:图像处理,微分算子,Canny算子,边缘检测
Abstract
Edge detection is the important contents of digital image processing ,and the edge is the most basic characteristics of the the image edge detection ,differential operator can be used to extract the details of the images,features’edge is the most detailed information describing the characteristics of the features of the image analysis, and is also an integral part of the article gives the detailed analysis of several algorithms which monly used at present,such as Roberts cross-differential operator、Sobel differential operator、Priwitt differential operator、Laplacian differential operator and Canny operator,and plete with the C language procedure e ture edge to the effectiveness of the image detection and the reliability of the orientation,we can deduced that the Canny operator have the characteristics which the image edge has.
Keywords: Image processing, Canny operator, differential operator, edge detection
目录
摘要 I
Abstract II
第一章绪论 1
引言 1
数字图像技术的概述 2
边缘检测 3
论文各章节的安排 4
第二章微分算子边缘检测 5
Roberts算子 5
Sobel算子 5
Priwitt算子 6
Laplacian算子 6
第三章 Canny边缘检测 8
Canny指标 8
Canny算子的实现 9
第四章程序设计与实验 12
12
实验结果及比较 14
第五章结论与展望 17
结论 17
展望 17
致谢 18
参考文献 19
附录(源程序) 20
第一章绪论
引言
边缘检测是图像处理中的重要内容。边缘是图像的最基本特征。所谓图像的边缘是指图像局部区域亮度变化显著的部分,该区域的灰度剖面一般可以看作是一个阶跃,即从一个灰度值在很小的缓冲区域内急剧变化到另一个灰度相差较大的灰度值。图像的边缘部分集中了图像的大部分信息,图像边缘的确定与提取对整个图像场景的识别与理解是非常重要的,同时也是图像分割所依赖的重要特征,边缘检测主要是图像的灰度变化的度量、检测和定位。边缘与图像中物体的边界有关,但又是不同的。边缘反映的是图像灰度的不连续。
边缘在边界检测、图像分割、模式识别、机器视觉等等中有很重要的作用。边缘是边界检测的基础,也是外形检测的基础。边缘广泛存在于物体与背景之间、物体与物体之间以及基元与基元之间,因此它也是图像分割所依赖的重要特。
边缘检测对于物体的识别也是很重要的。主要有以下几个理由:首先,人眼通过追踪未知物体的轮廓