|
发布时间: 2016-12-25 |
图像处理和编码 |
|
|
收稿日期: 2016-05-12; 修回日期: 2016-07-15
基金项目: 国家自然科学基金项目(61572015,41375115,11301276);大学生实践创新训练计划(201510300175)
第一作者简介: 云尧(1992-),男,南京信息工程大学数学专业硕士研究生,主要研究方向为模式识别。E-mail:18761425500@163.com
中图法分类号: TP391
文献标识码: A
文章编号: 1006-8961(2016)12-1602-08
|
摘要
目的 全局的仿射变换配准需估计出仿射变换的参数,现有算法要么效果不佳,要么对二值图像无能为力。本文改造传统质心的定义,提出广义质心的概念。 方法 传统的质心以二重积分定义,所提广义质心利用变形累次积分定义,传统质心只是这种广义质心的特例。本文给出了广义质心保持仿射变换前后对应关系的条件,并提出了一种利用这种广义质心进行仿射变换参数恢复的算法。 结果 该算法对灰度和二值图像的仿射变换参数恢复都适用,实验结果也表明现有的交叉权重矩方法耗时是本文算法耗时的25倍,但它们的恢复效果相差不大,并且本文算法要比现有的图像矩构造非线性方程组方法恢复效果好。 结论 本文提出了广义质心,利用这种广义质心进行仿射变换参数恢复算法,对二值图像和灰度图像均适用,恢复效果较好,并且计算量较小。
关键词
图像配准; 广义质心; 仿射变换; 仿射变换参数恢复; 变形累次积分
Abstract
Objective Global image registration aimed at finding a transformation aligning two images can be approximated by estimating parameters of affine deformations. Some of the existing methods are inapplicable to binary images. The burden of computation process in other methods is more expensive. In this paper, we modified the definition of centroid for images and proposed the concept of generalized centroid. By combining the generalized centroid, we proposed an algorithm to achieve the estimation for parameters of affine deformations. Method Unlike the traditional centroid, the generalized centroid is defined by a modified repeated integral. The traditional centroid is only a special case of the proposed generalized centroid. To maintain the affine deformation relation, we present the condition in which the generalized centroid needs to be satisfied. We propose an algorithm to achieve the estimation for parameters of affine deformations. The basic idea of the algorithm is that we should find three sets of corresponding points in the original image and corresponding deformation image using these three pairs of points and establish equations to determine the parameters of affine deformations. Resuls The proposed centroids are applicable not only to gray images but also to binary images. Compared with the cross-weighted moment method to estimate the parameters of affine deformations, the proposed method requires less calculation and the recovery effect of the two methods is not significantly different. Compared with the method of constructing a nonlinear equation group using the image moment, the proposed method has a good ability to estimate the parameters of affine deformations. Conclusion By combining the generalized centroid, we proposed an algorithm to achieve the estimation for parameters of affine deformations. The proposed method is applicable to gray images and binary images. Moreover, the recovery effect is better and the calculation is less.
Key words
image registration; feneralized centroids; affine transformation; parametric estimation of affine transformations; modified repeated integral
0 引 言
当摄像机从不同视点拍摄同一目标时,所得图像存在一定程度的几何形变,如果目标到摄像机的距离远小于目标大小时,图像的几何形变可用仿射变换近似[1]。仿射变换下图像的配准有着广泛的应用前景,现有的仿射变换图像配准算法大体可分为局部和全局两类,它们各有优缺点。本文考虑全局的仿射变换配准,这也就是仿射变换参数的恢复问题:给定两幅图像,估计它们之间仿射变换关系中的参数。而全局算法又分为轮廓和区域两类[2],轮廓类算法计算量小,但对由多部分构成的目标(如汉字“物”等)无能为力,因此区域类算法受到了更多地关注。
最常用的区域类算法是利用图像矩进行的仿射变换参数恢复。文献[3]利用交叉权重矩,然而其计算复杂度高;文献[4]利用高阶矩,其算法对噪声敏感;文献[5-6]对图像函数进行变换以建立关于仿射变换参数的线性方程组,计算量小,但该类算法对二值图像无能为力;文献[7]利用图像矩构造非线性方程组,能较方便地解出仿射变换参数,然而该算法所建立的方程组有多组解,需逐个验证,也可能出现无实数解的情形;近来文献[7]的作者及其合作者们利用与文献[7]类似的方法做了一系列的工作[8-9],但都绕不开非线性方程组多解或无实解的问题。如何设计出计算量小,对灰度、二值图像都适用的参数恢复算法是一个值得研究的问题。
仿射变换的参数恢复问题可通过确定仿射变换前后对应的点来求解。不久前,陈涛等人[10]提出扩展质心的概念,这种质心与普通质心类似,可保持仿射变换前后的对应关系,结合扩展质心和普通质心可进行图像的规范化、图像识别和仿射变换参数恢复等工作,文献[10-11]的实验结果也验证了这一点。然而扩展质心利用图像函数的幂来构造,对二值图像无能为力。如何构造对灰度和二值图像都适用、计算量小且能保持仿射变换前后对应关系的类质心点是一个值得研究的问题。
1 广义质心
1.1 扩展质心
仿射变换的关系式描述为
$\left[ \begin{matrix} {\tilde{x}} \\ {\tilde{y}} \\ \end{matrix} \right]=\left[ \begin{matrix} a & b \\ c & d \\ \end{matrix} \right]\left[ \begin{matrix} x \\ y \\ \end{matrix} \right]+\left[ \begin{matrix} e \\ f \\ \end{matrix} \right]$ | (1) |
式中,A=
陈涛等人[10]提出的扩展质心定义为
$\begin{align} & EC{{x}_{\alpha }}=\frac{\iint{{}}x{{I}^{\alpha }}\left( x,y \right)dxdy}{\iint{{}}{{I}^{\alpha }}\left( x,y \right)dxdy} \\ & EC{{y}_{\alpha }}=\frac{\iint{{}}y{{I}^{\alpha }}\left( x,y \right)dxdy}{\iint{{}}{{I}^{\alpha }}\left( x,y \right)dxdy} \\ \end{align}$ | (2) |
扩展质心Eα(ECxα,ECyα)实际上是通过图像函数的幂Iα计算得到的。当α=1时,扩展质心Eα即为普通质心,当α≠1时,Eα为不同于普通质心的扩展质心点,这些扩展质心点与普通质心有类似性质,可保持仿射变换的对应关系,利用扩展质心这一性质可提取仿射不变特征[10-11]。然而这种扩展质心对二值图像却无能为力(无论α取何值,(ECxα,ECyα)都是图像的普通质心),为此提出一种广义质心,这种质心对二值图像同样适用。
1.2 广义质心的定义
为构造广义质心,将图像原点移至质心,并将直角坐标系转化为极坐标系,极坐标与直角坐标系的变换关系为
$\begin{align} & x=rcos~\theta ,y=rsin~\theta \\ & \tilde{x}=\tilde{r}cos\tilde{\theta },\tilde{y}=\tilde{r}sin\tilde{\theta } \\ \end{align}$ |
式中,r=
定义 对于s,t≥0,令
$\begin{align} & Gx_{s}^{t}=\frac{\int {{\left[ \int {{r}^{s}}f\left( r,\theta \right)dr \right]}^{t}}cos~\theta ~d\theta }{\iint{{}}rf\left( r,\theta \right)drd~\theta }, \\ & Gy_{s}^{t}=\frac{\int {{\left[ \int {{r}^{s}}f\left( r,\theta \right)dr \right]}^{t}}sin~\theta ~d\theta }{\iint{{}}rf\left( r,\theta \right)drd\theta }, \\ \end{align}$ | (3) |
称点Ps(Gxst,Gyst)为图像的广义质心。
1) 上述广义质心利用变形累次积分计算。图像普通质心利用二重积分定义(如式(2) 中α=1的情形),通过累次积分计算。而上面的广义质心直接利用变形的累次积分定义(见式(3) ),在对极径方向积分后取幂,然后再对极角积分。
2) 上面定义的广义质心是普通质心的推广。普通质心(式(2) 中α=1的情形)在极坐标系下的形式为
$\begin{align} & EC{{x}_{1}}=\frac{\iint{{}}xf\left( x,y \right)dxdy}{\iint{{}}f\left( x,y \right)dxdy}=\frac{\int [\int {{r}^{2}}f\left( r,\theta \right)dr]cos~\theta d\theta }{\iint{{}}rf\left( r,\theta \right)drd\theta } \\ & EC{{y}_{1}}=\frac{\iint{{}}yf\left( x,y \right)dxdy}{\iint{{}}f\left( x,y \right)dxdy}=\frac{\int [\int {{r}^{2}}f\left( r,\theta \right)dr]sin~\theta d\theta }{\iint{{}}rf\left( r,\theta \right)drd\theta } \\ \end{align}$ |
也就是说,在式(3) 中s=2,t=1,广义质心对应的就是图像的普通质心,也就是普通质心仅是广义质心的特殊情形。
1.3 广义质心的性质
先将坐标原点移至质心以消除平移,则式(1) 可化为
$\left[ \begin{matrix} {\tilde{x}} \\ {\tilde{y}} \\ \end{matrix} \right]=\left[ \begin{matrix} a & b \\ c & d \\ \end{matrix} \right]\left[ \begin{matrix} x \\ y \\ \end{matrix} \right]$ | (4) |
此时有如下的定理:
定理 对于s≥0,取t=
$\left[ \begin{matrix} G{{{\tilde{x}}}^{t}}_{s} \\ G{{{\tilde{y}}}^{t}}_{s} \\ \end{matrix} \right]=\left[ \begin{matrix} a & b \\ c & d \\ \end{matrix} \right]\left[ \begin{matrix} G{{x}^{t}}_{s} \\ G{{y}^{t}}_{s} \\ \end{matrix} \right].$ | (5) |
证明 由式(3) 知
$\left\{ \begin{align} & \tilde{r}cos\tilde{\theta }~=arcos~\theta +brsin~\theta \\ & \tilde{r}sin~\tilde{\theta }=crcos~\theta +drsin~\theta \\ \end{align} \right.$ |
一方面,tan θ=
$\begin{align} & \alpha \left( \theta \right)=\sqrt{{{(acos~\theta +bsin~\theta )}^{2}}+{{(ccos~\theta +dsin~\theta )}^{2}}}, \\ & \beta \left( \theta \right)=\frac{ccos~\theta +dsin~\theta }{acos~\theta +bsin~\theta } \\ \end{align}$ |
则
$\tilde{r}=\alpha \left( \theta \right)r,tan~\tilde{\theta }=\beta \left( \theta \right)$ | (6) |
另一方面
${{(sin\tilde{\theta })}^{2}}=\frac{{{(tan\tilde{\theta })}^{2}}}{1+{{(tan\tilde{\theta })}^{2}}}=\frac{{{(ccos~\theta +dsin~\theta )}^{2}}}{{{\alpha }^{2}}\left( \theta \right)}$ |
且cos
$cos\tilde{\theta }=\frac{acos~\theta +bsin~\theta }{\alpha \left( \theta \right)},sin\tilde{\theta }=\frac{ccos~\theta +dsin~\theta }{\alpha \left( \theta \right)}$ |
再由式(6) 得
$\begin{align} & d\tilde{\theta }=\frac{d\left( \beta \left( \theta \right) \right)}{1+{{\left( \frac{ccos~\theta +dsin~\theta }{acos~\theta +bsin~\theta } \right)}^{2}}}= \\ & \frac{adco{{s}^{2}}\theta +adsi{{n}^{2}}\theta -bcsi{{n}^{2}}\theta -bcco{{s}^{2}}\theta }{{{\alpha }^{2}}\left( \theta \right)}d\theta = \\ & \frac{ad-bc}{{{\alpha }^{2}}\left( \theta \right)}d\theta =\frac{\left| A \right|}{{{\alpha }^{2}}\left( \theta \right)}d\theta . \\ \end{align}$ |
再由
$\begin{align} & G{{{\tilde{x}}}^{t}}_{s}=\frac{\int {{[\int {{{\tilde{r}}}^{s}}\tilde{f}\left( \tilde{r},\tilde{\theta } \right)d\tilde{r}]}^{t}}cos(\tilde{\theta })d\tilde{\theta }}{\iint{{}}{{{\tilde{r}}}^{s}}\tilde{f}\left( \tilde{r},\tilde{\theta } \right)d\tilde{r}d\tilde{\theta }}= \\ & \frac{\left| A \right|\int {{[\int {{r}^{s}}{{\alpha }^{s+1}}\left( \theta \right)f\left( r,\theta \right)]}^{t}}(acos~\theta +bsin~\theta ){{\alpha }^{-3}}\left( \theta \right)d\theta }{\left| A \right|\iint{{}}rf\left( r,\theta \right)drd\theta }= \\ & \frac{\int {{\alpha }^{t\left( s+1 \right)-3}}\left( \theta \right){{[\int {{r}^{s}}f\left( r,\theta \right)dr]}^{t}}(acos~\theta +bsin~\theta )d\theta }{\iint{{}}rf\left( r,\theta \right)drd\theta } \\ \end{align}$ |
令t=
同理有G
该定理说明广义质心与普通质心类似,能够保持仿射变换关系,以一个二值图像的例子说明该定理。图 1(a)(b)分别是仿射变换前后的二值汉字“扬”,图中用圆代表图像的普通质心,三角形代表图像的广义质心(这里s=0.1,从而t=
2 基于广义质心的仿射变换参数恢复
仿射变换参数的恢复就是利用两幅满足仿射变换关系的图像f(x,y)与
1) 确定图像的普通质心对P0(x0,y0)和
2) 以P0(x0,y0)和Ps(x0,y0)、
3) 以P0(x0,y0)和P0(x1,y1)、
以3组对应点P0(x1,y1)和
图 2是图 1中图像经质心与广义质心连线将原图像切片,各切片的质心也标注在图上,由图中可以看出图像经质心与广义质心连线所得切片的质心也保持仿射变换关系,这里只显示一次切片,另一次结果类似。利用这些切片所得质心可将图像恢复,如图 3所示,图 3(a)是利用本文方法恢复的图像,图 3(b)是恢复后图像与原图的差,可看出,恢复的图像与原图像相差不大。
3 实验结果
由于计算广义质心时已将坐标原点移至质心,从而平移已消除,因此实验中仅测试式(4) 中矩阵A=
${{e}_{1}}=\frac{\left\| \bar{A}-A \right\|}{\left\| A \right\|},{{e}_{2}}=\frac{\left\| \bar{f}-f \right\|}{\left\| f \right\|}$ | (7) |
式中,
3.1 仿射变换参数的恢复
以图 1中的二值汉字图像“扬”为例进行仿射变换参数的恢复,图 1(b)是图 1(a)中汉字的仿射变换,仿射变换矩阵为A=
3.2 与文献[3]、文献[7]算法的对比
与3.1类似,以图 1中的二值汉字图像“扬”为例,选取相同的仿射变换矩阵A=
使用文献[3]所提方法的恢复矩阵为R1=
选用图 6中大小为128×128像素的二值汉字图“扬”作为测试对象,在PC环境( 2.40 GHz CPU,4 GB RAM),软件Matlab7.0下,对本文算法与文献[3]和文献[7]各做一次仿射变换参数恢复耗时比较,结果如表 1 所示,文献[3]算法的耗时较大,文献[7] 算法与本文算法耗时相差不大。
为了测试本文算法,与文献[1]类似以矩阵
$A=l\left[ \begin{matrix} cos~\theta & -sin~\theta \\ sin~\theta & cos~\theta \\ \end{matrix} \right]~\left[ \begin{matrix} a & b \\ 0 & 1/a \\ \end{matrix} \right]$ | (8) |
来生成仿射变换。仿射变换参数随机选取,选取l∈{0.8,1.2},a∈{1,2},θ∈{00,720,1440,2160,2880,2880},b∈{-1.5,-1,-0.5,0,0.5,1,1.5}因此实验中将每幅图像进行168次变换,并用上面所提算法进行参数恢复。
使用本文算法所得的参数恢复结果与文献[3]和文献[7]中的方法所得的参数恢复结果进行比较。表 2,表 3分别给出了实验选取图 6 中的10个二值汉字图像及Coil-20库中20个灰度图像,利用式(8) 对每幅图像各做168种仿射变换,恢复的误差取平均值。由于文献[7]中利用方程组求解仿射变换参数,会存在方程组无解的情况,本文实验是在剔除无解的情况下对误差取平均值。
表 2
选择不同参数对选取的二值图像变换168次恢复的平均误差率
Table 2
The average error of the 168 times estimation for different parameters of affine deformations to the binary image
图 6 | s | 文献[3] | 文献[7] | |||||||||
0.01 | 0.02 | 0.05 | 0.10 | 0.50 | 1.00 | 5.00 | 10.0 | 20.0 | ||||
甲 | e1 | 0.098 4 | 0.099 1 | 0.099 2 | 0.101 2 | 0.122 7 | 0.160 4 | 0.039 8 | 0.046 6 | 0.073 7 | 0.049 0 | 1.121 0 |
e2 | 0.263 9 | 0.265 7 | 0.260 7 | 0.260 7 | 0.227 0 | 0.202 8 | 0.173 5 | 0.224 2 | 0.346 6 | 0.210 9 | 1.021 7 | |
电 | e1 | 0.068 7 | 0.068 5 | 0.068 6 | 0.069 2 | 0.068 7 | 0.089 9 | 0.066 8 | 0.050 9 | 0.055 9 | 0.096 0 | 2.307 2 |
e2 | 0.239 0 | 0.237 9 | 0.237 0 | 0.237 8 | 0.227 4 | 0.278 6 | 0.208 6 | 0.191 7 | 0.231 6 | 0.388 9 | 1.278 1 | |
由 | e1 | 0.122 5 | 0.114 9 | 0.099 0 | 0.084 0 | 0.079 2 | 0.106 8 | 0.074 8 | 0.039 4 | 0.056 8 | 0.087 9 | 1.167 2 |
e2 | 0.505 8 | 0.468 1 | 0.391 2 | 0.324 3 | 0.291 7 | 0.308 8 | 0.315 8 | 0.171 9 | 0.258 5 | 0.428 8 | 1.026 0 | |
用 | e1 | 0.043 6 | 0.043 5 | 0.045 7 | 0.048 6 | 0.109 1 | 0.675 4 | 0.323 8 | 0.425 4 | 0.532 4 | 0.081 7 | 1.096 4 |
e2 | 0.271 9 | 0.270 9 | 0.289 9 | 0.308 1 | 0.626 2 | 1.471 6 | 1.146 9 | 1.185 9 | 1.188 1 | 0.383 9 | 1.052 6 | |
甩 | e1 | 0.138 3 | 0.137 2 | 0.142 2 | 0.146 3 | 0.235 4 | 0.589 2 | 0.695 3 | 0.343 1 | 0.316 6 | 0.109 3 | 2.322 9 |
e2 | 0.663 5 | 0.659 6 | 0.681 0 | 0.698 9 | 0.969 3 | 1.321 8 | 1.518 2 | 1.093 6 | 1.013 7 | 0.494 2 | 1.223 5 | |
扬 | e1 | 0.028 0 | 0.027 8 | 0.027 4 | 0.026 4 | 0.028 6 | 0.049 9 | 0.151 7 | 0.140 0 | 0.145 5 | 0.525 0 | 3.727 9 |
e2 | 0.162 7 | 0.161 5 | 0.158 2 | 0.151 5 | 0.168 7 | 0.316 9 | 0.441 2 | 0.467 2 | 0.580 0 | 0.611 1 | 0.945 1 | |
物 | e1 | 0.042 1 | 0.041 7 | 0.041 2 | 0.042 1 | 0.104 8 | 0.098 6 | 0.079 2 | 0.055 4 | 0.059 9 | 0.103 9 | 1.750 8 |
e2 | 0.261 0 | 0.257 4 | 0.256 0 | 0.268 9 | 0.594 4 | 0.304 6 | 0.267 7 | 0.258 0 | 0.330 8 | 0.879 9 | 1.256 1 | |
畅 | e1 | 0.097 3 | 0.097 9 | 0.098 0 | 0.096 9 | 0.105 7 | 0.117 2 | 0.067 3 | 0.046 2 | 0.055 8 | 0.083 2 | 1.455 7 |
e2 | 0.593 9 | 0.595 7 | 0.594 8 | 0.593 8 | 0.621 7 | 0.516 4 | 0.301 1 | 0.265 8 | 0.328 1 | 0.529 3 | 1.199 2 | |
杨 | e1 | 0.033 7 | 0.033 7 | 0.033 9 | 0.032 8 | 0.040 0 | 0.106 6 | 0.154 1 | 0.206 0 | 0.230 9 | 0.174 3 | 5.655 3 |
e2 | 0.209 4 | 0.214 8 | 0.209 4 | 0.205 4 | 0.257 5 | 0.600 7 | 0.607 4 | 0.867 1 | 1.045 4 | 1.109 1 | 1.067 0 | |
肠 | e1 | 0.030 4 | 0.031 7 | 0.030 5 | 0.031 1 | 0.033 8 | 0.146 5 | 1.830 5 | 1.875 1 | 1.906 6 | 0.334 3 | 3.599 0 |
e2 | 0.180 9 | 0.192 4 | 0.183 4 | 0.187 6 | 0.200 4 | 0.901 3 | 1.452 7 | 1.403 3 | 1.365 8 | 0.776 5 | 1.114 4 |
表 3
不同参数对灰度图像的168次仿射变换参数恢复的平均误差
Table 3
The average error of the 168 times estimation for different parameters of affine deformations to the gray image
图 6 | s | 文献[3] | 文献[7] | |||||||||
0.01 | 0.02 | 0.05 | 0.10 | 0.50 | 1.00 | 5.00 | 10.0 | 20.0 | ||||
gray1 | e1 | 0.024 6 | 0.024 0 | 0.022 5 | 0.021 1 | 0.018 5 | 0.023 2 | 0.014 6 | 0.014 0 | 0.016 3 | 0.020 7 | 582.774 |
e2 | 0.027 5 | 0.026 9 | 0.025 1 | 0.023 4 | 0.020 6 | 0.025 1 | 0.018 4 | 0.018 2 | 0.020 2 | 0.027 8 | 0.949 5 | |
gray2 | e1 | 0.013 7 | 0.013 4 | 0.013 4 | 0.013 2 | 0.014 2 | 0.018 4 | 0.051 6 | 0.039 5 | 0.035 0 | 0.111 0 | 3.984 6 |
e2 | 0.056 2 | 0.055 9 | 0.056 0 | 0.055 9 | 0.058 3 | 0.066 2 | 0.097 1 | 0.087 8 | 0.087 0 | 0.201 3 | 0.926 4 | |
gray3 | e1 | 0.039 0 | 0.038 6 | 0.037 6 | 0.036 2 | 0.036 7 | 0.046 7 | 0.166 4 | 0.135 3 | 0.126 1 | 0.028 3 | 1.951 8 |
e2 | 0.051 1 | 0.050 6 | 0.049 2 | 0.047 5 | 0.048 2 | 0.058 7 | 0.079 9 | 0.069 3 | 0.064 7 | 0.041 5 | 0.624 0 | |
gray4 | e1 | 0.027 0 | 0.025 7 | 0.027 8 | 0.022 4 | 0.015 0 | 0.014 5 | 0.016 3 | 0.020 0 | 0.022 7 | 0.058 6 | 2.419 7 |
e2 | 0.065 3 | 0.062 2 | 0.066 6 | 0.055 8 | 0.044 5 | 0.044 8 | 0.047 7 | 0.054 7 | 0.059 2 | 0.129 0 | 0.749 8 | |
gray5 | e1 | 0.017 8 | 0.017 6 | 0.017 2 | 0.016 9 | 0.019 4 | 0.021 6 | 0.104 8 | 0.080 5 | 0.058 0 | 0.654 8 | 2.098 9 |
e2 | 0.033 3 | 0.033 2 | 0.032 9 | 0.032 7 | 0.035 4 | 0.038 3 | 0.063 6 | 0.056 8 | 0.053 9 | 0.197 8 | 0.795 2 | |
gray6 | e1 | 0.044 2 | 0.047 4 | 0.046 3 | 0.049 0 | 0.066 3 | 0.104 3 | 0.118 8 | 0.084 1 | 0.078 4 | 0.088 1 | 1.677 4 |
e2 | 0.074 0 | 0.078 9 | 0.077 2 | 0.080 7 | 0.106 8 | 0.160 7 | 0.182 9 | 0.135 6 | 0.127 5 | 0.127 6 | 0.750 5 | |
gray7 | e1 | 0.032 2 | 0.032 0 | 0.032 0 | 0.031 7 | 0.036 9 | 0.051 2 | 0.052 6 | 0.044 3 | 0.047 5 | 0.092 4 | 1.786 4 |
e2 | 0.048 5 | 0.048 2 | 0.047 9 | 0.047 0 | 0.052 4 | 0.066 3 | 0.064 4 | 0.057 0 | 0.062 1 | 0.152 7 | 0.537 5 | |
gray8 | e1 | 0.224 1 | 0.223 1 | 0.232 5 | 0.252 9 | 0.290 3 | 0.435 2 | 0.402 7 | 0.216 7 | 0.137 8 | 0.899 2 | 2.247 4 |
e2 | 0.183 5 | 0.183 0 | 0.186 1 | 0.192 8 | 0.212 3 | 0.259 8 | 0.227 2 | 0.172 5 | 0.130 9 | 0.194 5 | 0.636 9 | |
gray9 | e1 | 0.023 3 | 0.023 5 | 0.022 5 | 0.023 2 | 0.021 9 | 0.032 5 | 0.089 6 | 0.050 3 | 0.022 3 | 1.002 2 | 2.124 4 |
e2 | 0.105 9 | 0.106 2 | 0.104 2 | 0.105 2 | 0.103 2 | 0.114 8 | 0.168 2 | 0.144 5 | 0.104 9 | 0.255 5 | 0.756 8 | |
gray10 | e1 | 0.034 8 | 0.035 4 | 0.035 1 | 0.035 5 | 0.059 1 | 0.128 3 | 0.167 5 | 0.097 5 | 0.066 9 | 0.112 7 | 1.889 8 |
e2 | 0.137 3 | 0.138 1 | 0.138 0 | 0.140 0 | 0.178 3 | 0.219 2 | 0.240 3 | 0.206 7 | 0.182 1 | 0.577 7 | 0.903 8 | |
gray11 | e1 | 0.031 7 | 0.031 1 | 0.029 4 | 0.026 5 | 0.025 7 | 0.025 6 | 0.022 2 | 0.021 9 | 0.025 2 | 0.032 7 | 6.359 8 |
e2 | 0.050 0 | 0.048 4 | 0.045 6 | 0.041 7 | 0.039 1 | 0.037 4 | 0.037 6 | 0.036 3 | 0.039 5 | 0.055 6 | 0.904 3 | |
gray12 | e1 | 0.299 1 | 0.299 7 | 0.313 3 | 0.332 8 | 0.484 6 | 0.794 0 | 1.664 6 | 2.135 4 | 2.384 5 | 0.649 4 | 6.290 2 |
e2 | 0.322 8 | 0.323 6 | 0.332 8 | 0.345 8 | 0.433 3 | 0.546 9 | 0.634 9 | 0.655 8 | 0.736 5 | 0.422 6 | 0.882 4 | |
gray13 | e1 | 0.030 2 | 0.029 2 | 0.028 5 | 0.027 2 | 0.025 7 | 0.049 1 | 0.047 9 | 0.024 7 | 0.021 8 | 0.773 4 | 19.842 6 |
e2 | 0.103 8 | 0.102 1 | 0.100 4 | 0.097 7 | 0.091 3 | 0.115 4 | 0.105 6 | 0.086 6 | 0.083 7 | 0.330 8 | 0.970 7 | |
gray14 | e1 | 0.098 0 | 0.100 0 | 0.101 4 | 0.118 4 | 0.171 8 | 0.292 4 | 0.386 0 | 0.374 5 | 0.530 1 | 0.155 2 | 4.303 5 |
e2 | 0.180 2 | 0.181 8 | 0.182 6 | 0.199 6 | 0.244 6 | 0.340 2 | 0.393 7 | 0.374 0 | 0.479 1 | 0.248 2 | 0.967 1 | |
gray15 | e1 | 0.020 6 | 0.019 9 | 0.019 4 | 0.019 3 | 0.022 7 | 0.031 4 | 0.033 2 | 0.026 2 | 0.025 1 | 0.293 8 | 3.246 7 |
e2 | 0.025 3 | 0.024 5 | 0.024 4 | 0.024 4 | 0.027 7 | 0.034 1 | 0.036 4 | 0.029 9 | 0.028 8 | 0.238 5 | 0.504 8 | |
gray16 | e1 | 0.018 1 | 0.018 1 | 0.017 6 | 0.017 8 | 0.021 6 | 0.032 1 | 0.043 7 | 0.032 9 | 0.030 8 | 0.032 9 | 2.507 7 |
e2 | 0.023 2 | 0.023 3 | 0.023 2 | 0.023 4 | 0.026 2 | 0.031 6 | 0.037 3 | 0.032 2 | 0.031 3 | 0.044 1 | 0.631 6 | |
gray17 | e1 | 0.035 5 | 0.035 7 | 0.036 1 | 0.037 1 | 0.051 5 | 0.085 4 | 0.143 2 | 0.103 9 | 0.089 2 | 0.850 2 | 2.329 3 |
e2 | 0.042 1 | 0.042 1 | 0.042 4 | 0.043 0 | 0.049 7 | 0.060 5 | 0.077 5 | 0.071 2 | 0.068 5 | 0.158 5 | 0.549 0 | |
gray18 | e1 | 0.029 9 | 0.028 6 | 0.029 3 | 0.028 7 | 0.027 9 | 0.039 1 | 0.087 0 | 0.086 8 | 0.078 1 | 0.507 0 | 0.594 2 |
e2 | 0.070 6 | 0.069 2 | 0.069 8 | 0.069 5 | 0.071 9 | 0.086 7 | 0.102 6 | 0.115 0 | 0.103 3 | 0.319 3 | 0.432 5 | |
gray19 | e1 | 0.203 9 | 0.204 6 | 0.219 1 | 0.227 1 | 0.254 4 | 0.211 9 | 0.082 5 | 0.065 6 | 0.067 1 | 0.754 0 | 0.931 4 |
e2 | 0.183 3 | 0.183 5 | 0.192 3 | 0.197 7 | 0.214 9 | 0.214 4 | 0.128 2 | 0.118 4 | 0.118 7 | 0.490 6 | 0.749 7 | |
gray20 | e1 | 0.024 6 | 0.024 9 | 0.024 9 | 0.025 8 | 0.031 4 | 0.043 4 | 0.074 7 | 0.063 4 | 0.060 7 | 0.031 2 | 1.736 9 |
e2 | 0.049 9 | 0.050 1 | 0.049 8 | 0.050 7 | 0.054 1 | 0.063 5 | 0.058 4 | 0.055 1 | 0.056 0 | 0.069 8 | 0.560 4 |
由表 2和表 3可以看出,本文算法参数恢复的结果优于文献[7],而与文献[3]的结果相当。文献[7]利用图像矩构造非线性方程组以求解仿射变换参数,然而该算法所建立的方程组可能有多组解,也可能无实数解,并且所用的矩包括三阶的,然而高阶矩计算不稳定,从而利用该算法不仅有无法实现参数恢复的,即使能恢复的其结果也不佳(文献[7]所提供的结果都是在大尺寸图像上的实验结果);文献[3]基于交叉权重矩进行参数恢复,所用的一阶矩其实就是图像的质心,然而该算法为计算交叉权重矩需要计算图像中每一点的权重,尽管该文算法与本文算法实验结果类似,但其计算量偏大。因此本文算法对二值图像和灰度图像均适用,并且计算量较小。
4 结 论
参考文献
-
[1] Khalil M I, Bayoumi M M. A dyadic wavelet affine invariant function for 2D shape Recognition[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence , 2001, 23 (10) : 1152–1164. DOI:10.1109/34.954605]
-
[2] Mai F, Chang C Q, Hung Y S. A subspace approach for matching 2D shapes under affine distortions[J]. Pattern Recognition , 2011, 44 (2) : 210–221. DOI:10.1016/j.patcog.2010.08.032]
-
[3] Yang Z W, Cohen F S. Cross-weighted moments and affine invariants for image registration and matching[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence , 1999, 21 (8) : 804–814. DOI:10.1109/34.784312]
-
[4] Heikkilä J. Pattern matching with affine moment descriptors[J]. Pattern Recognition , 2004, 37 (9) : 1825–1834. DOI:10.1016/j.patcog.2004.03.005]
-
[5] Hagege R, Francos J M. Parametric estimation of affine transformations:an exact linear solution[J]. Journal of Mathematical Imaging and Vision , 2010, 37 (1) : 1–16. DOI:10.1007/s10851-009-0188-4]
-
[6] Bentolila J, Francos J M. Combined affine geometric transformations and spatially dependent radiometric deformations:a decoupled linear estimation framework[J]. IEEE Transactions on Image Processing , 2011, 20 (10) : 2886–2895. DOI:10.1109/TIP.2011.2136353]
-
[7] Domokos C, Kato Z. Parametric estimation of affine deformations of planar shapes[J]. Pattern Recognition , 2010, 43 (1) : 69–85. DOI:10.1016/j.patcog.2009.08.013]
-
[8] Domokos C, Kato Z. Simultaneous affine registration of multiple shapes[C]//Proceedings of the 21st International Conference on Pattern Recognition. Tsukuba, Japan:IEEE, 2012:9-12.
-
[9] Domokos C, Nemeth J, Kato Z. Nonlinear shape registration without correspondences[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence , 2012, 34 (5) : 943–958. DOI:10.1109/TPAMI.2011.200]
-
[10] Chen T, Su Y, Jiang Y M, et al. Affine invariant feature extraction based on affine geometry[J]. Journal of Image and Graphics , 2007, 12 (9) : 1633–1641. [ 陈涛, 粟毅, 蒋咏梅, 等. 利用仿射几何特性提取图像中的仿射不变特征[J]. 中国图象图形学报 , 2007, 12 (9) : 1633–1641. DOI:10.11834/jig.20070923 ]
-
[11] Gao F, Wen G J. A new method for affine invariants extraction based on affine geometry[J]. Journal of Image and Graphics , 2011, 16 (3) : 389–397. [ 高峰, 文贡坚. 利用仿射几何的仿射不变特征提取方法[J]. 中国图象图形学报 , 2011, 16 (3) : 389–397. DOI:10.11834/jig.20110315 ]