# 点运算（图像处理）

点运算是一种图像处理方法，它仅根据对应输入像素的值，通过亮度、对比度或伽马调整等映射来计算每个输出像素的值。它是最简单的空域运算类别：邻域为单个像素。<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/pntops.htm)</sup><sup> • </sup><sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup> 这与邻域（空间滤波）运算形成对比，后者的输出取决于周围像素的窗口。由于映射忽略位置，点运算不使用邻域信息：每个像素独立处理，图像的空间布局得以保留。<sup>[3](http://graphics.cs.cmu.edu/courses/15-463/2010_spring/Lectures/PointProcessing.pdf)</sup> 点运算在代价上也不同于邻域运算和全局运算：对于 N 个像素的图像，逐点应用的成本为 O(N)（每像素常数），直接邻域处理对于 K 个像素的邻域通常成本为 O(NK)，而全局运算的复杂度取决于算法，[直方图均衡化](https://www.edgepedia.org/zh/histogram-equalization)通常成本为 O(N + K)，其中 K 是灰度级数。<sup>[4](https://ftp.imphys.tudelft.nl/DIPimage/docs/FIP2.3.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 输出像素仅取决于同位置的输入像素，不依赖于位置或邻居<sup>[5](https://bioimagebook.github.io/chapters/2-processing/2-point_operations/point_operations.html)</sup> |
| 公式化 | \( g(x,y) = T[f(x,y)] \)，或逐像素 \( s = T(r) \)<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup><sup> • </sup><sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup> |
| 实现 | 8 位图像使用 256 项查找表，逐像素应用<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup> |
| 常见变体 | 亮度、对比度拉伸、对数变换、伽马校正、负片、阈值处理、量化、位平面切片、直方图均衡化<sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup> |
| 颜色扩展 | 通常为三个一维 LUT，每个颜色通道一个，在显示前应用<sup>[7](https://developer.nvidia.cn/gpugems/gpugems2/part-iii-high-quality-rendering/chapter-24-using-lookup-tables-accelerate-color)</sup> |
| 主要失效模式 | 裁剪、多对一信息丢失、8 位 LUT 导致的条带<sup>[5](https://bioimagebook.github.io/chapters/2-processing/2-point_operations/point_operations.html)</sup><sup> • </sup><sup>[8](https://people.cs.rutgers.edu/~elgammal/classes/cs443/PointOperation.pdf)</sup><sup> • </sup><sup>[7](https://developer.nvidia.cn/gpugems/gpugems2/part-iii-high-quality-rendering/chapter-24-using-lookup-tables-accelerate-color)</sup> |
| 近期趋势 | 学习的、图像自适应的色调曲线和三维 LUT 取代手工设计的固定曲线<sup>[9](https://arxiv.org/html/2501.06448)</sup> |

## 工作原理

点运算是在每个位置以相同方式应用的传递函数。在标准空域记法中，处理后的图像为 \( g(x,y) = T[f(x,y)] \)，其中算子 \( T \) 定义在单像素邻域上；等价地，\( s = T(r) \) 将输入灰度值 \( r \) 映射为输出值 \( s \)。<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup><sup> • </sup><sup>[10](https://www.ece.mcmaster.ca/~shirani/ip12/chapter3.pdf)</sup> 传递函数 \( f(p) = q \) 必须是单值的：每个旧像素值恰好对应一个新值。<sup>[11](https://wuecampus.uni-wuerzburg.de/moodle/mod/book/view.php?chapterid=10066&id=958001)</sup> 用算子记法，对于每个像素 \( \mathbf{x} \)，\( g(\mathbf{x}) = \psi(f(\mathbf{x})) \)，且点算子不限于单幅输入图像；多幅图像可作为输入。<sup>[12](https://staff.fnwi.uva.nl/r.vandenBoomgaard/IPCV20172018/LectureNotes/IP/PointOperators/index.html)</sup>

区分两个子类是有用的。变形算子是具有严格递增或递减映射函数的算子，包括对数、指数和对比度拉伸算子。<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/pntops.htm)</sup> 合并灰度级的映射，如压缩或裁剪，是多对一且不可逆的。<sup>[8](https://people.cs.rutgers.edu/~elgammal/classes/cs443/PointOperation.pdf)</sup> 两幅同尺寸图像之间的代数运算，如用于阴影校正的逐点减法或用于掩膜的除法，也属于点运算类别，因为每个输出仍然仅取决于对应的输入值。<sup>[13](https://www.cs.rug.nl/~roe/publications/IntroDig_Iman1998.pdf)</sup><sup> • </sup><sup>[12](https://staff.fnwi.uva.nl/r.vandenBoomgaard/IPCV20172018/LectureNotes/IP/PointOperators/index.html)</sup>

## 实现方式

对于 8 位图像，映射最多有 256 个不同输入，因此函数被一次性求值到 256 项查找表中，然后通过简单的查找循环应用于所有像素；对于 1024 × 1024 的图像，这意味着 256 次求值而非约一百万次。<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup><sup> • </sup><sup>[11](https://wuecampus.uni-wuerzburg.de/moodle/mod/book/view.php?chapterid=10066&id=958001)</sup> 硬件显示 LUT 位于帧缓冲器和显示器之间；设置 8 位、通道可分离的颜色变换需要发送三个 256 项表，每项一字节时最多 768 字节（3 × 256），尽管跨通道变换需要多维 LUT，更高精度的表需要更多存储；由于图像数据本身不变，基于 LUT 的编辑是非破坏性的。<sup>[14](https://www2.ph.ed.ac.uk/~wjh/teaching/dia/documents/point-ohp.pdf)</sup><sup> • </sup><sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup>

对于颜色，通常的安排是三个一维 LUT，每个通道一个，在显示前应用；显示器伽马表是经典例子。<sup>[7](https://developer.nvidia.cn/gpugems/gpugems2/part-iii-high-quality-rendering/chapter-24-using-lookup-tables-accelerate-color)</sup> 混合通道的算子需要三维 LUT，其元素数量随采样率的立方增长（每轴 4 个采样给出 \( 4^{3} = 64 \) 个元素）；32 × 32 × 32 的格点可以替代 2048 × 1556 图像的完整逐像素处理，加速约 100 倍，而简单的原色校正用 2 × 2 × 2 格点就足够了。<sup>[7](https://developer.nvidia.cn/gpugems/gpugems2/part-iii-high-quality-rendering/chapter-24-using-lookup-tables-accelerate-color)</sup>

## 起源

没有文献明确指出“点运算”一词最早出现在哪一篇出版物中。早期文献中最接近的锚点是罗森菲尔德时代将图像处理运算形式化的传统：阿兹里尔·罗森菲尔德和约翰·L·普法尔茨于 1966 年在《美国计算机学会杂志》上发表了《数字图像处理中的顺序运算》，<sup>[15](https://doi.org/10.1145/321356.321357)</sup> 罗森菲尔德的教科书《数字图像处理》（学术出版社/爱思唯尔）在同一传统中涵盖了数字图像的预处理和归一化。<sup>[16](https://shop.elsevier.com/books/digital-picture-processing/rosenfeld/978-0-12-597360-1)</sup> \( s = T(r) \) 公式化是大学课程中使用的标准教科书处理方式。<sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup>

## 变体

常见变换在曲线形状和目的上有所不同：<sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup>

- **线性（负片、恒等）。** 灰度级在 \([0, L-1]\) 范围内的图像的负片为 \( s = L - 1 - r \)。<sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup>
- **对数变换。** \( s = c \cdot \log(1 + r) \) 将窄范围的低灰度级映射到更宽的输出范围，并压缩像素值变化极大的图像的动态范围，如范围从 0 到 \( 10^{6} \) 或更高的傅里叶频谱。<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup><sup> • </sup><sup>[17](https://www.philadelphia.edu.jo/academics/qhamarsheh/uploads/Lecture_9_Intensity_Transformation_and_spatial_filtering.pdf)</sup>
- **幂律（伽马）。** \( s = c \cdot r^{\gamma} \)，常数 \( c \) 用于归一化；\( c = \gamma = 1 \) 给出恒等变换。<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup> [伽马校正](https://www.edgepedia.org/zh/gamma-correction)的存在是因为显示设备非线性响应：一种说法给出 CRT 响应 \( \text{out} = \text{in}^{\gamma} \)，其中 \( \gamma = 2.2 \)，<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup> 通过用逆幂律 \( T(f) = f^{1/\gamma} \) 预处理来校正。<sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup>
- **对比度拉伸。** 将输入范围 \([r_{\min}, r_{\max}]\) 线性映射到完整输出范围 \([0, L-1]\)；阈值处理是 \( r_{1} = r_{2} \)、\( s_{1} = 0 \)、\( s_{2} = L-1 \) 的特例。<sup>[17](https://www.philadelphia.edu.jo/academics/qhamarsheh/uploads/Lecture_9_Intensity_Transformation_and_spatial_filtering.pdf)</sup><sup> • </sup><sup>[10](https://www.ece.mcmaster.ca/~shirani/ip12/chapter3.pdf)</sup>
- **阈值处理和量化。** 阈值处理将低于 \( m \) 的值替换为黑色（0），高于 \( m \) 的值替换为白色（255）；它是一种将像素值分为两类的特殊量化，是二值化的基本途径。<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup><sup> • </sup><sup>[8](https://people.cs.rutgers.edu/~elgammal/classes/cs443/PointOperation.pdf)</sup> 量化（色调分离）到固定级数可以通过用 \( \text{scale} = \text{MXGRAY} / \text{levels} \) 缩放来实现，量化误差通过在量化前添加均匀分布的白噪声（抖动）来减少。<sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup>
- **位平面和灰度级切片。** 位平面切片分离像素值的特定位，高阶位携带最重要的视觉显著数据，可用于压缩；灰度级切片突出特定的灰度级范围。<sup>[2](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)</sup><sup> • </sup><sup>[17](https://www.philadelphia.edu.jo/academics/qhamarsheh/uploads/Lecture_9_Intensity_Transformation_and_spatial_filtering.pdf)</sup>
- **直方图均衡化。** 直方图均衡化是一种点运算，即使其映射是从图像的全局统计量计算的：一些点算子，如阈值处理和伽马校正，具有预定义的映射函数，而另一些从输入图像本身计算映射，一旦计算完成，映射就固定并逐像素应用。<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/pntops.htm)</sup> 色调曲线是图像自身的累积分布函数，缩放到输出范围：对于 L 级图像，\( s = \operatorname{round}((L-1) \cdot \text{CDF}(r)) \)，这将拥挤的色调分散开并压缩空色调。<sup>[18](https://people.csail.mit.edu/fredo/comp-photo-book/03-basic-image-processing-and-isp-05-tone-mapping.html)</sup> 结果只是近似平坦的：由于输入和输出值是整数，且值为 \( f_{0} \) 的所有像素映射到相同的 \( g_{0} \)，输出直方图有空隙，严格平坦的结果可能需要一对多映射，而 LUT 无法实现。<sup>[14](https://www2.ph.ed.ac.uk/~wjh/teaching/dia/documents/point-ohp.pdf)</sup><sup> • </sup><sup>[19](https://homepages.inf.ed.ac.uk/rbf/HIPR2/histeq.htm)</sup> 它只能产生一种结果，即均匀分布；直方图匹配通过 \( v_{\text{out}} = c_{1}^{-1}(c_{0}(v_{\text{in}})) \) 针对其他直方图形状。<sup>[19](https://homepages.inf.ed.ac.uk/rbf/HIPR2/histeq.htm)</sup><sup> • </sup><sup>[6](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)</sup> [自适应直方图均衡化](https://www.edgepedia.org/zh/adaptive-histogram-equalization)在均匀区域过度放大噪声；CLAHE 通过分区图像、在裁剪限值处裁剪每个区域的直方图、并用双线性插值消除区域边界来解决这个问题。<sup>[20](https://research.ijcaonline.org/volume100/number18/pxc3898384.pdf)</sup>

## 应用

伽马校正可以作为帧缓冲器和显示器之间的硬件 LUT 实现，加载指数接近 1/2.2 的幂函数。<sup>[21](https://ydl.oregonstate.edu/pub/libpng/documents/proposals/history/png-1.1-pdg/PNG-GammaAppendix.html)</sup> 当没有线性 LUT 设置能同时显示亮部和暗部细节时，对数变换和伽马变换可使高动态范围图像得以显示。<sup>[5](https://bioimagebook.github.io/chapters/2-processing/2-point_operations/point_operations.html)</sup> 在医学成像中，伽马校正用于 CT 切片显示，其中空气、软组织、对比剂和骨骼跨越 −1000 到 1000 HU。<sup>[22](https://www.ncbi.nlm.nih.gov/books/NBK546156/)</sup> 双图像点运算支持生物图像分析中的背景减除、比率计算和掩膜，而对多幅具有独立噪声的对齐图像求平均（通过逐点加法和缩放实现）可以减少噪声。<sup>[5](https://bioimagebook.github.io/chapters/2-processing/2-point_operations/point_operations.html)</sup> 直方图均衡化作为预处理，对灰度值进行归一化，使其不受光照变化的影响。<sup>[23](https://staff.fnwi.uva.nl/r.vandenboomgaard/IPCV20162017/LectureNotes/IP/PointOperators/ImageHistograms.html)</sup>

## 局限与替代方案

添加一个将 8 位值推出 0–255 范围的常数会将它们裁剪到最接近的可能值，再减去该常数不会恢复原始值，这是直接的非可逆性失效。<sup>[5](https://bioimagebook.github.io/chapters/2-processing/2-point_operations/point_operations.html)</sup> 任何合并直方图箱的映射都是不可逆的，因此对比度压缩会丢失灰度级分辨率并在映射图像中产生可见的斑块。<sup>[8](https://people.cs.rutgers.edu/~elgammal/classes/cs443/PointOperation.pdf)</sup><sup> • </sup><sup>[24](https://www.engr.colostate.edu/ECE513/SP09/lectures/lectures17_18.pdf)</sup> 对于基于 LUT 的颜色变换，8 位不足以防止条带。<sup>[7](https://developer.nvidia.cn/gpugems/gpugems2/part-iii-high-quality-rendering/chapter-24-using-lookup-tables-accelerate-color)</sup>

定义性局限是局部性。全局色调映射对每个像素应用一条曲线 \( f(v) \)，因此相同的输入值在暗区和亮区映射到相同的输出；局部色调映射使曲线适应周围像素的窗口，而自适应阈值处理（映射随图像变化）不再是纯点运算。<sup>[18](https://people.csail.mit.edu/fredo/comp-photo-book/03-basic-image-processing-and-isp-05-tone-mapping.html)</sup><sup> • </sup><sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/pntops.htm)</sup> 直方图均衡化比手动灰度映射更自动，但用户无法尝试各种映射以达到视觉上最令人愉悦的结果。<sup>[24](https://www.engr.colostate.edu/ECE513/SP09/lectures/lectures17_18.pdf)</sup> 作为替代，学习的、图像自适应的色调曲线和三维 LUT 保持点运算结构——逐像素应用曲线或 LUT——但使曲线成为图像的函数，从数据学习而非手工固定。<sup>[9](https://arxiv.org/html/2501.06448)</sup>

## References

1. [Point Operations, HIPR2 (Image Processing Learning Resources, Edinburgh)](https://homepages.inf.ed.ac.uk/rbf/HIPR2/pntops.htm)
2. [Chapter 03a Intensity Transformations (Point Processing) 6spp (cs.uoi.gr)](https://www.cs.uoi.gr/~cnikou/Courses/Digital_Image_Processing/2010-2011/Chapter_03a_Intensity_Transformations_%28Point_Processing%29_6spp.pdf)
3. [Point Processing, CMU 15-463 lecture notes](http://graphics.cs.cmu.edu/courses/15-463/2010_spring/Lectures/PointProcessing.pdf)
4. [Fundamentals of Image Processing (TU Delft)](https://ftp.imphys.tudelft.nl/DIPimage/docs/FIP2.3.pdf)
5. [Point operations, Introduction to Bioimage Analysis](https://bioimagebook.github.io/chapters/2-processing/2-point_operations/point_operations.html)
6. [Point Operations, CSc 470 lecture notes, George Wolberg, City College of New York](https://www-cs.ccny.cuny.edu/~wolberg/cs470/pdf/CSc470-04-PointOps.pdf)
7. [GPU Gems 2, Chapter 24: Using Lookup Tables to Accelerate Color Transformations](https://developer.nvidia.cn/gpugems/gpugems2/part-iii-high-quality-rendering/chapter-24-using-lookup-tables-accelerate-color)
8. [Point Operations (lecture notes, Rutgers CS 443)](https://people.cs.rutgers.edu/~elgammal/classes/cs443/PointOperation.pdf)
9. [Discovering an Image-Adaptive Coordinate System for Photography Processing (IAC)](https://arxiv.org/html/2501.06448)
10. [CoE4TN4 Image Processing, Chapter 3 (F. Shirani, McMaster University)](https://www.ece.mcmaster.ca/~shirani/ip12/chapter3.pdf)
11. [3.7. Point Operations, Image Processing lecture, University of Würzburg](https://wuecampus.uni-wuerzburg.de/moodle/mod/book/view.php?chapterid=10066&id=958001)
12. [3. Point Operators, Image Processing and Computer Vision (R. van den Boomgaard, UvA)](https://staff.fnwi.uva.nl/r.vandenBoomgaard/IPCV20172018/LectureNotes/IP/PointOperators/index.html)
13. [An Introduction to Digital Image Processing (University of Groningen)](https://www.cs.rug.nl/~roe/publications/IntroDig_Iman1998.pdf)
14. [Topic 4: Point Processing, W. J. Hossack, University of Edinburgh](https://www2.ph.ed.ac.uk/~wjh/teaching/dia/documents/point-ohp.pdf)
15. [Azriel Rosenfeld, John L. Pfaltz (1966). Sequential Operations in Digital Picture Processing. Journal of the ACM.](https://doi.org/10.1145/321356.321357)
16. [Digital Picture Processing, 1st Edition (Rosenfeld)](https://shop.elsevier.com/books/digital-picture-processing/rosenfeld/978-0-12-597360-1)
17. [Intensity Transformation and Spatial Filtering, Q. Hamarsheh, Philadelphia University](https://www.philadelphia.edu.jo/academics/qhamarsheh/uploads/Lecture_9_Intensity_Transformation_and_spatial_filtering.pdf)
18. [Tone mapping, Computational Photography (Durand, Freeman et al. book chapter)](https://people.csail.mit.edu/fredo/comp-photo-book/03-basic-image-processing-and-isp-05-tone-mapping.html)
19. [HIPR2: Point Operations - Histogram Equalization](https://homepages.inf.ed.ac.uk/rbf/HIPR2/histeq.htm)
20. [Review of Different Local and Global Contrast Enhancement Techniques for a Digital Image](https://research.ijcaonline.org/volume100/number18/pxc3898384.pdf)
21. [PNG (Portable Network Graphics) Specification, Version 1.1, Gamma Appendix](https://ydl.oregonstate.edu/pub/libpng/documents/proposals/history/png-1.1-pdg/PNG-GammaAppendix.html)
22. [Chapter 3 Image Processing (NCBI Bookshelf)](https://www.ncbi.nlm.nih.gov/books/NBK546156/)
23. [Histogram Based Image Operations, Image Processing and Computer Vision (University of Amsterdam)](https://staff.fnwi.uva.nl/r.vandenboomgaard/IPCV20162017/LectureNotes/IP/PointOperators/ImageHistograms.html)
24. [Digital Image Processing Lectures 17 & 18 (Colorado State University ECE513)](https://www.engr.colostate.edu/ECE513/SP09/lectures/lectures17_18.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › Low-level image analysis

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/point-operation-image-processing

English original: https://www.edgepedia.org/point-operation-image-processing
