# Canny 边缘检测器

**Canny 边缘检测器**是一种多阶段图像边缘检测算法，由约翰·F·坎尼（John F. Canny）为他在麻省理工学院（MIT）1983 年的硕士工作开发，并于 1986 年发表在《IEEE 模式分析与机器智能汇刊》（IEEE Transactions on Pattern Analysis and Machine Intelligence）上。它用[高斯滤波器](https://www.edgepedia.org/zh/gaussian-filter)平滑图像，计算梯度幅值和方向，通过非极大值抑制细化响应，并在两个阈值之间通过滞后阈值处理连接边缘。Canny 将其设计为满足三条明确准则的“最优”检测器，而它至今仍是 OpenCV、scikit-image 和 MATLAB 中自带的边缘检测器。<sup>[1](https://docs.opencv.org/5.0/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html)</sup><sup> • </sup><sup>[2](https://www.cs.tau.ac.il/~turkel/notes/can2.pdf)</sup><sup> • </sup><sup>[3](https://algonow.net/canny-edge-detector-hysteresis-thresholding/)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由约翰·F·坎尼（John F. Canny）于 1983 年为他的麻省理工学院（MIT）硕士学位开发；1986 年作为“最优”边缘检测器发表<sup>[2](https://www.cs.tau.ac.il/~turkel/notes/can2.pdf)</sup><sup> • </sup><sup>[1](https://docs.opencv.org/5.0/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html)</sup> |
| 阶段 | 高斯平滑、x/y 导数、梯度幅值、非极大值抑制、使用 TLOW 和 THIGH 的滞后阈值处理<sup>[4](https://www.cecs.uci.edu/~doemer/publications/CECS_TR_12_13.pdf)</sup> |
| 阈值比 | 按 Canny 自己的实现，高阈值与低阈值之比为 2:1 或 3:1<sup>[5](https://www.cse.ust.hk/~quan/comp5421/notes/canny1986.pdf)</sup> |
| BSDS500 准确率 | Canny ODS 0.600、OIS 0.640、AP 0.580，而人类标注者之间为 0.80 ODS/OIS<sup>[6](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)</sup> |
| 学习型检测器 | HED 0.782 ODS（2015）、NBED 0.834–0.840 ODS、基于扩散的 GED 0.870 ODS<sup>[6](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)</sup><sup> • </sup><sup>[7](https://arxiv.org/html/2409.14976v3)</sup><sup> • </sup><sup>[8](https://dl.acm.org/doi/10.1145/3830018)</sup> |
| OpenCV 注意事项 | cv2.Canny 不执行内部高斯平滑；它直接对输入运行 Sobel<sup>[9](https://visionbook.icsgen-ai.org/part-2-classical-computer-vision/module-09-edges-lines-curves/section-9.2.html)</sup> |
| 硬件速度 | FPGA 实现在 100 MHz 下以 0.721 ms 检测 512×512 图像的边缘<sup>[10](https://www.ijsr.net/archive/v3i11/T0NUMTQxMTQw.pdf)</sup> |

## 算法

该流程依次运行五个函数：高斯平滑、计算 x 和 y 导数、计算梯度幅值、非极大值抑制和滞后阈值处理。<sup>[4](https://www.cecs.uci.edu/~doemer/publications/CECS_TR_12_13.pdf)</sup>

**高斯平滑。** 由参数 sigma（滤波器标准差）构建的高斯核先水平、后垂直地模糊每个像素，以降低噪声。<sup>[4](https://www.cecs.uci.edu/~doemer/publications/CECS_TR_12_13.pdf)</sup> 高斯宽度是该算子的三个控制参数中的第一个；增大它会降低噪声敏感性，代价是丢失细节并略微增加定位误差。<sup>[11](https://homepages.inf.ed.ac.uk/rbf/HIPR2/canny.htm)</sup>

**梯度。** 对平滑后的图像求微分。scikit-image 的实现应用水平和垂直 Sobel 算子，边缘强度是梯度的范数。<sup>[12](https://github.com/scikit-image/scikit-image/blob/v0.25.2/skimage/feature/_canny.py)</sup> OpenCV 让调用者选择范数：默认 L1 范数 \( |dI/dx| + |dI/dy| \)，或通过 L2gradient 标志使用更准确的 L2 范数 \( \sqrt{(dI/dx)^2 + (dI/dy)^2} \)。<sup>[13](https://docs.opencv.org/5.0/main%5Fmodules/imgproc_feature.html)</sup>

**非极大值抑制。** 仅当某像素在其梯度方向及相反方向上的三个像素中最大时，抑制才保留该像素，所有梯度方向都舍入到最近的 45 度整数倍。<sup>[14](http://vision.stanford.edu/teaching/cs131_fall1718/files/06_notes.pdf)</sup> 不是梯度幅值局部极大值的像素被置为非边缘。<sup>[4](https://www.cecs.uci.edu/~doemer/publications/CECS_TR_12_13.pdf)</sup> scikit-image 的实现根据 X-Sobel 和 Y-Sobel 的符号与相对幅值，将点分为水平、垂直、对角和反对角四类，然后沿边缘法线进行插值；结果是细化为 1 像素宽的曲线。<sup>[12](https://github.com/scikit-image/scikit-image/blob/v0.25.2/skimage/feature/_canny.py)</sup> 非极大值抑制通过仅保留沿梯度方向的梯度幅值局部极大值，将边缘细化到单像素宽度。<sup>[15](https://www.mdpi.com/2227-7390/13/15/2464)</sup> 这一步并不完美。噪声导致的梯度计算错误仍可能产生厚于一个像素的边缘，因此一些边缘检测流程可能在非极大值抑制之后加入基于骨架的细化。<sup>[16](https://openaccess.thecvf.com/content/CVPR2026/papers/Cetinkaya_MatchED_Crisp_Edge_Detection_Using_End-to-End_Matching-based_Supervision_CVPR_2026_paper.pdf)</sup>

**滞后阈值处理。** 单一阈值要么把真实边缘断成碎片（设得高），要么引入噪声（设得低）。Canny 的解决方案使用两个阈值：任何高于高阈值的轮廓点立即输出，包含该点且位于低阈值以上的整个连通轮廓段也一并输出。<sup>[5](https://www.cse.ust.hk/~quan/comp5421/notes/canny1986.pdf)</sup> scikit-image 将所有高于高阈值的点标记为边缘，然后递归地标记任何高于低阈值且与已标记点 8 连通的点。<sup>[12](https://github.com/scikit-image/scikit-image/blob/v0.25.2/skimage/feature/_canny.py)</sup> 这大大减少了拖尾和孤立的虚假边缘点。<sup>[5](https://www.cse.ust.hk/~quan/comp5421/notes/canny1986.pdf)</sup>

## 最优性准则与推导

Canny 将边缘检测视为一个信号处理问题，并从一个带有三条准则的形式化目标函数设计该算子：良好检测（尽可能标记真实边缘）、良好定位（标记边缘接近真实边缘）和最小响应（对单一边缘只有一个响应）。<sup>[2](https://www.cs.tau.ac.il/~turkel/notes/can2.pdf)</sup><sup> • </sup><sup>[10](https://www.ijsr.net/archive/v3i11/T0NUMTQxMTQw.pdf)</sup> OpenCV 教程将设计目标概括为满足这三条准则，这也是该检测器被广泛称为最优检测器的原因。<sup>[1](https://docs.opencv.org/5.0/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html)</sup> 针对阶跃边缘得到的最优滤波器是一个广义函数，可由高斯的一阶导数很好地近似。该近似在检测准则上比最优算子差约 20%，在多重响应度量上差约 10%，但在二维中计算成本低得多。<sup>[5](https://www.cse.ust.hk/~quan/comp5421/notes/canny1986.pdf)</sup>

**德里什的递归变体。** 拉希德·德里什（Rachid Deriche）推导出满足 Canny 微分方程的滤波器，形式为 \( f(x) = k' e^{-\alpha |x|} \sin(\omega x) \) 和 \( g(x) = k \cdot x \cdot e^{-\alpha |x|} \)，其性能远好于 Canny 作为近似提出的高斯一阶导数。<sup>[17](https://pzs.dstu.dp.ua/ComputerGraphics/bibl/deriche_87.pdf)</sup> 由于这些滤波器是递归 IIR 滤波器，每像素只需五次乘法和五次加法，且与邻域大小无关；通过改变一个参数即可改变滤波器大小，而不影响执行时间。<sup>[17](https://pzs.dstu.dp.ua/ComputerGraphics/bibl/deriche_87.pdf)</sup> 德里什的流程保留了 Canny 设计的其余部分，在精确边缘方向应用非极大值抑制，并采用相同的滞后方案。<sup>[17](https://pzs.dstu.dp.ua/ComputerGraphics/bibl/deriche_87.pdf)</sup>

**罗斯韦尔的修正。** 后来的一项重新审视发现，Canny 对定位准则的推导不正确，并给出了一个更准确的准则，由此推导出新的最优检测器。<sup>[18](https://dl.acm.org/doi/10.1007/s11263-010-0392-0)</sup> 在修正后的分析下，Canny 准则得到的是无限宽的最优检测器；通过考虑图像中的相邻边缘来限制宽度，最优阶跃边缘检测器就变成沈（Shen）与卡斯坦（Castan）的 ISEF 滤波器的导数。<sup>[18](https://dl.acm.org/doi/10.1007/s11263-010-0392-0)</sup> 同一分析表明，考虑不同宽度的模糊边缘意味着边缘检测必须在多个尺度上进行，并给出了一种推导出的尺度选择流程。<sup>[18](https://dl.acm.org/doi/10.1007/s11263-010-0392-0)</sup> 简言之，Canny 意义上的“最优”是指在他的定位模型下相对于他的三条准则最优，而不是在修正后的数学中依然原样成立的主张。

## 参数与调参

该算子的效果由三个参数决定：平滑所用高斯核的宽度，以及上、下跟踪阈值。<sup>[11](https://homepages.inf.ed.ac.uk/rbf/HIPR2/canny.htm)</sup> 对于 sigma，实用指南给出 \( \sigma \approx 1 \) 到 1.4 以保留细纹理边缘，\( \sigma \approx 2 \) 到 3 作为自然照片的合理默认值，更大的值用于只寻找主要轮廓。<sup>[9](https://visionbook.icsgen-ai.org/part-2-classical-computer-vision/module-09-edges-lines-curves/section-9.2.html)</sup>

**阈值比。** Canny 自己的实现中，高阈值与低阈值之比在 2:1 到 3:1 之间。<sup>[5](https://www.cse.ust.hk/~quan/comp5421/notes/canny1986.pdf)</sup> OpenCV 教程给出的建议是上限与下限之比在 2:1 到 3:1 之间。<sup>[1](https://docs.opencv.org/5.0/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html)</sup> 实践中，上阈值可以设得相当高，下阈值可以设得相当低：下阈值设得太高会使含噪边缘断裂，而上阈值设得太低会增加虚假边缘碎片。<sup>[11](https://homepages.inf.ed.ac.uk/rbf/HIPR2/canny.htm)</sup>

**OpenCV 细节。** cv::Canny 接受 8 位输入（或类型为 CV_16SC1 或 CV_16SC3 的 16 位 dx/dy 导数）、两个滞后阈值、默认值为 3 的 Sobel 孔径尺寸以及 L2gradient 标志。两个阈值中较小的用于边缘连接，较大的用于寻找强边缘的初始段。<sup>[13](https://docs.opencv.org/5.0/main%5Fmodules/imgproc_feature.html)</sup> 一个常见的生产环境缺陷源于以下事实：cv2.Canny 不执行内部高斯平滑，而是直接对传入的任何内容运行 Sobel；若未对含噪图像预模糊，就会产生碎片化、由噪声驱动的输出。scikit-image 的 canny 则接受显式的 sigma 参数。<sup>[9](https://visionbook.icsgen-ai.org/part-2-classical-computer-vision/module-09-edges-lines-curves/section-9.2.html)</sup>

**自动阈值。** 一种基于中位数的启发式方法从图像统计量推导阈值：设 \( v \) 为模糊图像的中位数，低阈值和高阈值大致为 \( 0.66 \cdot v \) 和 \( 1.33 \cdot v \)。一个中位数为 118 的算例得到阈值 77 和 156，以及 2.64% 的边缘像素。<sup>[9](https://visionbook.icsgen-ai.org/part-2-classical-computer-vision/module-09-edges-lines-curves/section-9.2.html)</sup> 阈值选择还与图像尺度相互作用：将图像尺寸加倍而保持灰度值不变会使所有梯度减半，这使设置任何固定阈值都变得复杂。<sup>[2](https://www.cs.tau.ac.il/~turkel/notes/can2.pdf)</sup>

## 数据一览

标准准确率基准是 BSDS500，它包含 200 张训练、100 张验证和 200 张测试图像，并带有手动标注的真值轮廓，评估指标为固定轮廓阈值的 ODS F 分数、每图最佳阈值的 OIS 和平均精度。<sup>[6](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)</sup> 在该基准上，Canny 得分为 ODS 0.600、OIS 0.640 和 AP 0.580，而人类标注者之间的一致程度约为 0.80 ODS/OIS。<sup>[6](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)</sup> 另一项评估报告 Canny 在同一基准上的 ODF 为 0.606、OIF 为 0.646。<sup>[19](https://www.ntnu.no/ojs/index.php/nikt/article/download/5482/4955/20875)</sup>

学习型检测器缩小了与人类的大部分差距。HED 在 BSDS500 上达到 ODS F 分数 0.782，在 NYU Depth 上达到 0.746，每图耗时 0.4 秒。<sup>[6](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)</sup> 一项综述报告 HED 在 BSDS500 上为 0.788 ODS，这是同一方法略有不同的数字。<sup>[15](https://www.mdpi.com/2227-7390/13/15/2464)</sup> NBED 是 2024 年的编码器-解码器基线，在 BSDS500 训练与验证集上单尺度测试达到 ODS 0.834，多尺度测试达到 0.840。<sup>[7](https://arxiv.org/html/2409.14976v3)</sup> GED 是一种基于 [Stable Diffusion](https://www.edgepedia.org/zh/stable-diffusion) 的单步检测器，在 ODS 上比 DiffusionEdge 高 3.6%（0.870），在 OIS 上高 3.2%（0.880）。<sup>[8](https://dl.acm.org/doi/10.1145/3830018)</sup>

速度则相反。在 Xilinx Virtex-5 上的拆分式 Canny FPGA 实现在 100 MHz 下以 0.721 ms 检测 512×512 图像的边缘，切片利用率为 64%，BRAM 利用率为 87%。<sup>[10](https://www.ijsr.net/archive/v3i11/T0NUMTQxMTQw.pdf)</sup> 即使是经典流程的算法改进，也远比学习型模型便宜：进化自动编程通过改进 Canny 的滞后阶段，将自然图像上的 F 度量提高了 1.8%，经配对 t 检验和 Wilcoxon 符号秩检验具有统计显著性，使检测器从 ODF 0.606/OIF 0.646 提升到 0.618/0.656，仍低于 SCG 的 0.71/0.73。<sup>[19](https://www.ntnu.no/ojs/index.php/nikt/article/download/5482/4955/20875)</sup>

## 与其他边缘检测器的比较

一项比较性论述对经典检测器评价如下：Sobel 使用梯度幅值阈值化，检测好但定位差且边缘粗；Marr–Hildreth 使用高斯-拉普拉斯零交叉，检测、定位和单响应好，但会平滑角点；Canny 使用一阶导数的局部极值，检测最佳且定位良好。<sup>[20](https://www.cs.ubc.ca/~aerion1/425_2025W2/Lecture9.pdf)</sup> Sobel 掩模本身在相差一个比例因子的意义下，是垂直导数掩模 \( [-1\ 0\ 1]^T \) 与水平平滑滤波器 \( [1\ 2\ 1] \) 的卷积，其响应比 Prewitt 更接近高斯。<sup>[21](https://www.ipol.im/pub/art/2015/35/article_lr.pdf)</sup> 与 Sobel 相比，Canny 提供更好的噪声鲁棒性和边缘连续性，但代价是三个手动调参的参数：\( \sigma \)、\( T_{low} \) 和 \( T_{high} \)。<sup>[15](https://www.mdpi.com/2227-7390/13/15/2464)</sup>

与学习型检测器相比，需要在准确率、成本和参数负担之间权衡。HED、NBED 和基于扩散的检测器在 BSDS500 分数上比 Canny 高 0.18 到 0.27 ODS，<sup>[6](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)</sup><sup> • </sup><sup>[7](https://arxiv.org/html/2409.14976v3)</sup><sup> • </sup><sup>[8](https://dl.acm.org/doi/10.1145/3830018)</sup> 但它们需要自己的后处理，而 Canny 在嵌入式硬件上以毫秒级运行。<sup>[16](https://openaccess.thecvf.com/content/CVPR2026/papers/Cetinkaya_MatchED_Crisp_Edge_Detection_Using_End-to-End_Matching-based_Supervision_CVPR_2026_paper.pdf)</sup><sup> • </sup><sup>[10](https://www.ijsr.net/archive/v3i11/T0NUMTQxMTQw.pdf)</sup> 一项对五种经典检测器（Sobel、LoG、Canny、罗斯韦尔和 Edison）在具有明确真值边界的真实图像上的比较评估，界定了深度学习时代之前经典边缘检测性能的状况。<sup>[22](https://link.springer.com/article/10.1155/ASP/2006/76278)</sup>

## 应用、鲁棒性与实践

**用在哪里。** 一项对 2019 至 2023 年间 41 篇论文的系统综述在医学图像上比较了 Canny、Sobel、Prewitt、Roberts 和 LoG，发现尽管计算时间更长，Canny 仍是最准确的算子，尤其是在巴氏涂片和 CT 扫描图像上，而 LoG 在 MRI 上以更高效的计算提供高准确率。<sup>[23](https://eltikom.poliban.ac.id/index.php/eltikom/article/view/1012)</sup> 同一综述确认了 Canny 在经典算子中对噪声鲁棒性的优势。<sup>[23](https://eltikom.poliban.ac.id/index.php/eltikom/article/view/1012)</sup> Canny 还在生成式 AI 中找到了新角色：[ControlNet](https://www.edgepedia.org/zh/controlnet) 以包括 Canny 边缘、霍夫线、用户涂鸦、人体关键点、分割图、形状法线和深度图在内的输入为 Stable Diffusion 提供条件，因此从一幅图像绘制的 Canny 图可以引导另一幅图像的生成。<sup>[24](https://arxiv.org/pdf/2302.05543)</sup>

**失效模式。** 包括 Canny、Sobel 和 Prewitt 在内的传统算子依赖低层局部像素变化，缺乏对图像整体内容的语义理解，因此在纹理复杂、光照不均和噪声干扰的图像上表现不佳。<sup>[25](https://www.nature.com/articles/s41598-026-44362-2)</sup> 非极大值抑制步骤也有同样的弱点：受噪声污染的梯度可能产生厚于一个像素的边缘，需要额外细化。<sup>[16](https://openaccess.thecvf.com/content/CVPR2026/papers/Cetinkaya_MatchED_Crisp_Edge_Detection_Using_End-to-End_Matching-based_Supervision_CVPR_2026_paper.pdf)</sup> 实际的应对措施就是参数本身：选择与感兴趣结构尺度匹配的 sigma，在 cv2.Canny 之前对含噪输入预模糊，以及按比例或根据图像统计量而非固定常数设置阈值。<sup>[9](https://visionbook.icsgen-ai.org/part-2-classical-computer-vision/module-09-edges-lines-curves/section-9.2.html)</sup><sup> • </sup><sup>[11](https://homepages.inf.ed.ac.uk/rbf/HIPR2/canny.htm)</sup>

**它仍然是最先进的方法吗？** 就原始基准准确率而言，不是：学习型检测器目前在 BSDS500 上接近 0.87 ODS。<sup>[8](https://dl.acm.org/doi/10.1145/3830018)</sup> 作为 OpenCV、scikit-image 和 MATLAB 中自带的无需训练的边缘提取器，它在发表四十年后仍在积极使用。<sup>[3](https://algonow.net/canny-edge-detector-hysteresis-thresholding/)</sup>

## References

1. [OpenCV 5.0: Canny Edge Detection tutorial](https://docs.opencv.org/5.0/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html)
2. [Canny Edge Detection lecture notes. Tel Aviv University.](https://www.cs.tau.ac.il/~turkel/notes/can2.pdf)
3. [Canny edge detector × Hysteresis thresholding. algonow.](https://algonow.net/canny-edge-detector-hysteresis-thresholding/)
4. [System-Level Modeling and Refinement of a Canny Edge Detector. UCI CECS TR 12-13.](https://www.cecs.uci.edu/~doemer/publications/CECS_TR_12_13.pdf)
5. [John F. Canny (1986). A Computational Approach to Edge Detection. IEEE TPAMI.](https://www.cse.ust.hk/~quan/comp5421/notes/canny1986.pdf)
6. [Saining Xie and Zhe Tu (2015). Holistically-Nested Edge Detection. ICCV.](https://openaccess.thecvf.com/content_iccv_2015/papers/Xie_Holistically-Nested_Edge_Detection_ICCV_2015_paper.pdf)
7. [A New Baseline for Edge Detection: Make Encoder-Decoder Great Again (NBED). arXiv.](https://arxiv.org/html/2409.14976v3)
8. [Generative Edge Detection with Stable Diffusion (GED). ACM TOMM.](https://dl.acm.org/doi/10.1145/3830018)
9. [Section 9.2: The Canny Edge Detector, Step by Step. Building Vision AI.](https://visionbook.icsgen-ai.org/part-2-classical-computer-vision/module-09-edges-lines-curves/section-9.2.html)
10. [A Split Canny Edge Detection: Algorithm and its FPGA Implementation. IJSR.](https://www.ijsr.net/archive/v3i11/T0NUMTQxMTQw.pdf)
11. [Feature Detectors — Canny Edge Detector. HIPR2, University of Edinburgh.](https://homepages.inf.ed.ac.uk/rbf/HIPR2/canny.htm)
12. [scikit-image skimage/feature/_canny.py, v0.25.2](https://github.com/scikit-image/scikit-image/blob/v0.25.2/skimage/feature/_canny.py)
13. [OpenCV: Feature Detection, cv::Canny reference (5.0)](https://docs.opencv.org/5.0/main%5Fmodules/imgproc_feature.html)
14. [Stanford CS131 Lecture 6: Edge Detection](http://vision.stanford.edu/teaching/cs131_fall1718/files/06_notes.pdf)
15. [A Mathematical Survey of Image Deep Edge Detection Algorithms: From Convolution to Attention. Mathematics (MDPI).](https://www.mdpi.com/2227-7390/13/15/2464)
16. [MatchED: Crisp Edge Detection Using End-to-End, Matching-based Supervision. CVPR.](https://openaccess.thecvf.com/content/CVPR2026/papers/Cetinkaya_MatchED_Crisp_Edge_Detection_Using_End-to-End_Matching-based_Supervision_CVPR_2026_paper.pdf)
17. [Rachid Deriche (1987). Using Canny's criteria to derive a recursively implemented optimal edge detector.](https://pzs.dstu.dp.ua/ComputerGraphics/bibl/deriche_87.pdf)
18. [The Canny Edge Detector Revisited. International Journal of Computer Vision.](https://dl.acm.org/doi/10.1007/s11263-010-0392-0)
19. [Improving the Canny Edge Detector Using Automatic Programming: Improving Hysteresis Thresholding. NIKT.](https://www.ntnu.no/ojs/index.php/nikt/article/download/5482/4955/20875)
20. [CPSC 425 Computer Vision, Lecture 9, University of British Columbia](https://www.cs.ubc.ca/~aerion1/425_2025W2/Lecture9.pdf)
21. [A Review of Classic Edge Detectors. IPOL.](https://www.ipol.im/pub/art/2015/35/article_lr.pdf)
22. [Evaluating Edge Detection through Boundary Detection. EURASIP Journal on Advances in Signal Processing.](https://link.springer.com/article/10.1155/ASP/2006/76278)
23. [A Systematic Literature Review: Performance Comparison of Edge Detection Operators in Medical Images. ELTIKOM.](https://eltikom.poliban.ac.id/index.php/eltikom/article/view/1012)
24. [Adding Conditional Control to Text-to-Image Diffusion Models (ControlNet). arXiv.](https://arxiv.org/pdf/2302.05543)
25. [A CNN-transformer dual-branch network with structure-aware loss for high-resolution edge detection. Scientific Reports.](https://www.nature.com/articles/s41598-026-44362-2)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 语言与视觉人工智能 › 计算机视觉 › 视觉方法与几何 › 特征检测与描述

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/canny-edge-detector

English original: https://www.edgepedia.org/canny-edge-detector
