Chapter 5 Image Restoration and Reconstruction 图像复原与重建

5.1 A Model of the Image Defradation/Restoration Process 图像退化/复原过程的模型

As Fig.5.1 shows,the degradation process is modeled as a degradation function (退化函数) with an additive noise term (加性噪声) ,operates on an input image \(f(x,y)\) to produce a degraded image \(g(x,y)\).Given \(g(x,y)\) ,some knowledge about the degradation function and the additive noise term \(\eta(x,y)\),the objective of restoration is to obtain an estimate \(\hat{f}(x,y)\)

通过退化后的图像\(g(x,y)\)以及退化函数和噪声获得原始图像的一个估计。

If H is a linear,position-invariant process,then the degrade image is given in the spatial domain by

\[ g(x,y) = h(x,y) * f(x,y) + \eta(x,y) \]

write the model in an equivalent frequency domain representation(use Fourier Transform):

\[ G(u,v) = H(u,v)F(u,v) + N(u,v) \]

乘性噪声通过取对数的方式可以转换为加性噪声,故主要分析加性噪声的相关特性。

5.2 Noise Models 噪声模型

5.2.1 Spatial and Frequency Properties of Noise 噪声的空间和频率特性

white noise(白噪声),a random signal with a constant power spectral density 功率谱密度为常数的随机信号。理想的白噪声拥有无限大的带宽,实际中,我们常常将有限带宽的平整信号视为白噪声。

5.2.2 Some Important Noise Probability Density Functions 噪声概率密度函数

The spatial noise descriptor with which we shall be concerned is the statistical behavior of the intensity values in the noise component of the model in Fig.5.1.These may be considered random variables,characterized by a probability density function(PDF).

考虑噪声分量的灰度值统计特性(由概率密度函数PDF表征的随机变量)

Gaussian noise 高斯噪声

also called normal noise (正态噪声),with mathematical tractability (数学上的易处理性)

The PDF of a Gaussian random variable,z,is given by

\[ p(z) = \frac{1}{\sqrt{2\pi}\sigma}e^{-(z-\bar{z})^2/{2\sigma^2}} \]

where \(z\) represents intensity,\(\bar{z}\) is the mean(average) value of \(z\), and \(\sigma\) is its standard deviation.The standard deviation squard,\(\sigma^2\),is called the variance of z.

\(z\) 表示灰度值, \(\bar{z}\)表示\(z\)的平均值, \(\sigma\)表示\(z\)的标准差, 标准差的平方\(\sigma^2\)称为\(z\)的方差。

Rayleigh noise 瑞利噪声

The PDF of Rayleigh noise is given by

\[ p(z) =
\begin{cases}
\frac{2}{b}(z-a)e^{-(z-a)^2/b} & \text{for $z\ge a$} \\
\\
\,0 & \text{for $z\lt a$}
\end{cases} \]

The mean and variance of this density are given by

\[ \quad\,\,\bar{z} = a + \sqrt{\pi b/4} \] \[ \sigma^2 = \frac{b(4-\pi)}{4} \]

Erlang(gamma) noise 爱尔兰(伽马)噪声

The PDF of Gamma noise is given by

\[ p(z) =
\begin{cases}
\frac{a^bz^{b-1}}{(b-1)!}e^{-az} & \text{for $z\ge 0$} \\
\\\\
\;0 &\text{for $z\lt 0$}
\end{cases}
\]

The mean and variance of this density are given by

\[ \bar{z} = \frac{b}{a} \] \[ \sigma^2 = \frac{b}{a^2} \]

Exponential noise 指数噪声

The PDF of exponential noise is given by

\[ p(z) =
\begin{cases}
ae^{-az} & \text{ for $z \ge 0$} \\\\
0 &\text{ for $z<0$}
\end{cases}
\]

where $ a > 0 $. The mean and variance of this density function are

\[ \bar{z} = \frac{1}{a} \] \[ \sigma^2 = \frac{1}{a^2} \]

Uniform noise 均匀噪声

The PDF of uniform noise is given by

\[ p(z) =
\begin{cases}
\frac{1}{b-a} & \text{ if $a\le z \le b$} \\\\
\,0 &\text{otherwise}
\end{cases}
\]

The mean and variance of this density function are

\[ \bar{z} = \frac{a+b}{2} \] \[ \sigma^2 = \frac{(b-a)^2}{12} \]

Impulse (salt-and-pepper) noise 椒盐噪声

The PDF of exponential noise is given by

\[ p(z) =
\begin{cases}
P_a & \text{for $ z=a $} \\\\
P_b & \text{for $ z=b $} \\\\
1-P_a-P_b & \text{otherwise}
\end{cases}
\]



5.2.3 Periodic Noise 周期噪声

Periodic noise in an image arises typically from electrical or electromechanical interference during image acquisition.As discussed in Section 5.4,periodic noise can be reduced significantly via frequency domain filtering.

一幅图像中的周期噪声是在图像获取期间由电力或机电干扰产生的。周期噪声可以通过频率域滤波来显著减少。具体讨论见5.4节。

5.2.4 Estimation of Noise Parameters 噪声参数的估计

estimate the parameters of the PDF from small patches of reasonably constant background intensity.根据有着合理恒定灰度值的一小部分来估计PDF的参数。

考虑由S表示的一个子图像,并令\(p_s(z_i),i=0,1,2,...,L-1\)表示S中像素灰度的概率估计(归一化直方图值),其中L是整个图像中可能的灰度值(例如,对于8比特图像,L为256)。S的均值和方差。计算如下

\[ \bar{z} = \sum_{i=0}^{L-1}z_ip_s(z_i) \] \[ \sigma^2 = \sum_{i=0}^{L-1}(z_i-\bar{z})^2p_s(z_i) \]

5.3 Restoration in the Presence of Noise Only-Spatial Filtering 只存在噪声的复原-空间滤波

When the only degradation present in than image is noise,当图像中只有噪声引起的退化(忽略退化函数)时,we have

\[ g(x,y) = f(x,y) + \eta(x,y) \] \[ G(u,v) = F(u,v) + N(u,v) \]

假设\(\hat{f}(x,u=y)\)为对图像的估计,则\(|\hat{f}(x,y)-g(x,y)|^2\)应该尽可能与已知的噪声分布一致,由此得出合理的估计值。

5.6 Estimating the Degradation Function 估计退化函数

5.6.1 Estimation by Image Observation 图像观察估计

根据$ g(x,y) = f(x,y) * h(x,y) + \eta(x,y) $,暂时忽略噪声,对该式作Fourier Transform,得到: $ G(u,v) = F(u,v) H(u,v) $ 故有 \[ H(u,v) = \frac{G(u,v)}{F(u,v)} \]

5.6.2 Estimation by Experimentation 试验估计

通过试验,找到与获取退化图像设备相似的装置,从而得到一个准确的退化估计。

根据$ g(x,y) = f(x,y) * h(x,y) \(,(忽略噪声),当\)f(x,y)\(为一个冲激函数\)\delta(x,y)\(时,卷积得到的\)g(x,y)\(就是\)h(x,y)$。

使用相同的系统对一个冲激(小亮点)成像,得到退化的冲激响应。

5.6.3 Estimation by Modeling 建模估计

1、Turbulence (湍流模型),该模型通用形式为:

\[ H(u,v) = e^{-k(u^2+v^2)^{5/6}} \] \(k\) 是和湍流性质有关的常数。

2、Motion blurring (运动模糊)。假设图象想 \(f(x,y)\) 进行平面运动,\(x_0(t)\) 和 \(y_0(t)\) 分别是在 \(x\) 和 \(y\) 方向上随时间变化的分量,\(T\) 为曝光时间,\(g(x,y)\) 为模糊后的图像,则有

\[ g(x,y) = \int_0^Tf[x-x_0(t),y-y_0(t)]dt \]

上式经Fourier Transform,得到

\[ G(u,v) = H(u,v)\,F(u,v) \]

5.7 Inverse Filtering 逆滤波

通过退化图形的傅里叶变换 \(G(u,v)\) 与退化函数 \(H(u,v)\) 之比来计算原始图像的傅里叶变换的估计 \(\hat{F}(x,y)\) ,即

\[ \hat{F}(u,v) = \frac{G(u,v)}{H(u,v)} \]

又有 \(G(u,v) = H(u,v)F(u,v) + N(u,v)\) ,代入上式,有

\[ \hat{F}(u,v) = F(u,v) + \frac{N(u,v)}{H(u,v)} \]

因为 \(N(u,v)\) 未知,所以即使知道退化函数,也并不能准确的复原图像。另外,如果退化函数是零或者非常小的值,则分式项值会非常大,很容易支配估计值 \(\hat{F}(u,v)\)。因此,直接逆滤波的性能是很差的,下面提到的维纳滤波器就是很好的改进方法。

5.8 Minimum Mean Square Error (Wiener) Filtering 最小均方差(维纳)滤波

该方法建立在图像和噪声都是随机变量的基础上,目标是找到未污染图像 \(f\) 的一个估计 \(\hat{f}\) ,使它们之间的均方误差最小。这种误差度量由下式给出

\[ e^2 = E\,\{(f-\hat{f})^2\} \]

其中,\(E\{\cdot\}\)是参数的期望值。该误差函数的最小值在频率域中由如下表达式给出(最常用的近似式)

\[ \hat{F}(u,v) = \left[\frac{1}{H(u,v)}\frac{|H(u,v)|^2}{|H(u,v)|^2+K}\right]G(u,v) \]

直接逆滤波和维纳滤波效果对比

【Duke-Image】Week_4 Image restoration的更多相关文章

  1. hdu1540 Tunnel Warfare【线段树】

    During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast a ...

  2. 【SR汇总】基于深度学习方法

    1.SRCNN.FSRCNN (Learning a Deep Convolutional Network for Image Super-Resolution, ECCV2014) (Acceler ...

  3. 【AR实验室】mulberryAR : ORBSLAM2+VVSION

    本文转载请注明出处 —— polobymulberry-博客园 0x00 - 前言 mulberryAR是我业余时间弄的一个AR引擎,目前主要支持单目视觉SLAM+3D渲染,并且支持iOS端,但是该引 ...

  4. 【.net 深呼吸】细说CodeDom(1):结构大观

    CodeDom 是啥东东?Html Dom听过吧,XML Dom听过吧.DOM一般可翻译为 文档对象模型,那 Code + DOM呢,自然是指代码文档模型了.如果你从来没接触过 CodeDom,你大概 ...

  5. 【Machine Learning】KNN算法虹膜图片识别

    K-近邻算法虹膜图片识别实战 作者:白宁超 2017年1月3日18:26:33 摘要:随着机器学习和深度学习的热潮,各种图书层出不穷.然而多数是基础理论知识介绍,缺乏实现的深入理解.本系列文章是作者结 ...

  6. 【前端性能】高性能滚动 scroll 及页面渲染优化

    最近在研究页面渲染及web动画的性能问题,以及拜读<CSS SECRET>(CSS揭秘)这本大作. 本文主要想谈谈页面优化之滚动优化. 主要内容包括了为何需要优化滚动事件,滚动与页面渲染的 ...

  7. 【深入浅出jQuery】源码浅析--整体架构

    最近一直在研读 jQuery 源码,初看源码一头雾水毫无头绪,真正静下心来细看写的真是精妙,让你感叹代码之美. 其结构明晰,高内聚.低耦合,兼具优秀的性能与便利的扩展性,在浏览器的兼容性(功能缺陷.渐 ...

  8. 【.net 深呼吸】程序集的热更新

    当一个程序集被加载使用的时候,出于数据的完整性和安全性考虑,程序集文件(在99.9998%的情况下是.dll文件)会被锁定,如果此时你想更新程序集(实际上是替换dll文件),是不可以操作的,这时你得把 ...

  9. 【.net 深呼吸】跨应用程序域执行程序集

    应用程序域,你在网上可以查到它的定义,凡是概念性的东西,大伙儿只需要会搜索就行,内容看了就罢,不用去记忆,更不用去背,“名词解释”是大学考试里面最无聊最没水平的题型. 简单地说,应用程序域让你可以在一 ...

随机推荐

  1. kthread_run【转】

    转自:http://blog.csdn.net/zhangxuechao_/article/details/50876397 头文件 include/linux/kthread.h 创建并启动 /** ...

  2. 工作中总结的常用PHP代码

    [目录] ◆PHP常用的代码 ◆HTML常用代码 [值传递 和 引用传递] [单例模式] [魔术常量] [代码调试(自定义一个简单的debug函数)] [thinkphp多表查询] [获取客户端IP地 ...

  3. 将windows server 2016改造为像windows 10一样适合个人使用的系统

    Windows server 2016 RTM已流出,具体可以搜索wzor大神泄露的,英文版本是0911的.现根据我安装后整理的如何配置使个人更适合使用. 20170102更新:wzor泄漏的0911 ...

  4. Hadoop深入浅出实战经典–第02讲

    本文转载:通通学--知识学习与分享平台 Hadoop的核心 HDFS: Hadoop Distributed File System 分布式文件系统 MapReduce:并行计算框架 Yarn:集群资 ...

  5. thinkphp 查询当天 ,本周,本月,本季度,本年度,全部, 数据方法

    数据库字段是createtime 里面保存的是时间戳 <?php /* *按今天,本周,本月,本季度,本年,全部查询预约单数据 * $day 代表查询条件 $cid 代表 公司id *返回arr ...

  6. phpMyAdmin的配置

    好久没写东西了,上来记录一下今天学的一点小东西吧~ 之前搞php开发的时候,一直用的是SQLyog来操作mysql数据库的,但是今天发现sqlyog功能不是很完善,主要是我想修改数据库名,但是sqly ...

  7. Flags-Ural1225简单递推

    Time limit: 1.0 second Memory limit: 64 MB On the Day of the Flag of Russia a shop-owner decided to ...

  8. Fisher–Yates shuffle 洗牌(shuffle)算法

    今天在敲undersore的源码,数组里面有一个shuffle,把数组随机打乱. _.shuffle = function(obj) { var set = isArrayLike(obj) ? ob ...

  9. winform 对话框,保存,另存为,还有打印控件

    学习的对话框的种类: 1.打开文件对话框(OpenFileDialog) 2.保存文件对话框(SaveFileDialog) 3.字体对话框(FontDialog) 4.颜色对话框(ColorDial ...

  10. 几个简单的css样式使用说明

    假设我们的单标签是一个 div: 定义如下通用CSS: div{ position:relative; width:200px; height:60px; background:#ddd; } 法一: ...