CN101452573A - 一种图像边缘增强方法 - Google Patents

一种图像边缘增强方法 Download PDF

Info

Publication number
CN101452573A
CN101452573A CN200710077567.9A CN200710077567A CN101452573A CN 101452573 A CN101452573 A CN 101452573A CN 200710077567 A CN200710077567 A CN 200710077567A CN 101452573 A CN101452573 A CN 101452573A
Authority
CN
China
Prior art keywords
edge
centerdot
diff
pixel point
central pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200710077567.9A
Other languages
English (en)
Other versions
CN101452573B (zh
Inventor
彭茂
胡文阁
傅璟军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Semiconductor Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN200710077567.9A priority Critical patent/CN101452573B/zh
Priority to US12/274,314 priority patent/US8417030B2/en
Publication of CN101452573A publication Critical patent/CN101452573A/zh
Application granted granted Critical
Publication of CN101452573B publication Critical patent/CN101452573B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

本发明适用于数字图像处理领域,提供了一种图像边缘增强方法,包括:根据中心像素点在不同方向上的二阶梯度值判断图像的边缘走向;对中心像素点进行插值运算,计算像素点缺失的色彩分量;基于Bayer数据,根据中心像素点原始分量的颜色、图像的边缘走向在插值模板中对图像进行边缘增强处理。本发明实施例在对图像进行边缘增强处理时,充分考虑了中心像素点周围不同像素点的绿色分量值的影响,采取了抗噪声的自适应的边缘增强算法,消除噪声可能对边缘产生的影响,使得图像边缘齐整,处理后的图像效果好;同时基于Bayer数据,在插值模块中进行边缘增强处理,节省了单独进行边缘增强处理所需要的SRAM,节省了器件的很多面积,从而节省了成本。

Description

一种图像边缘增强方法
技术领域
本发明属于数字图像处理领域,尤其涉及一种图像边缘增强方法。
背景技术
图像品质的提高,一般是通过增强图像的边缘效果来实现。传统的图像边缘增强方法是先对图像进行插值运算得到全彩的RGB图像,然后再对全彩的RGB图像进行二阶拉普拉斯运算、基于边缘走向的运算等操作,以实现图像的边缘增强。这些方法虽然能使图像品质有较大的提高,但在对图像进行边缘增强时,需要预先存储2行或者4行的RGB数据,即需要预先存储6行或者12行静态随机存储器(Static Random Access Memory,SRAM),占用了较多的空间,成本高。
发明内容
本发明实施例的目的在于提供一种图像边缘增强方法,旨在解决现有技术基于RGB数据单独进行边缘增强处理导致占用空间多、成本高的问题。
本发明实施例是这样实现的,一种图像边缘增强方法,其特征在于,所述方法包括如下步骤:
根据中心像素点在不同方向上的二阶梯度值判断图像的边缘走向;
对中心像素点进行插值运算,计算像素点缺失的色彩分量;
基于Bayer数据,根据中心像素点原始分量的颜色、图像的边缘走向在插值模板中对图像进行边缘增强处理。
本发明实施例在对图像进行边缘增强处理时,充分考虑了中心像素点周围不同像素点的绿色分量值的影响,采取了抗噪声的自适应的边缘增强算法,消除噪声可能对边缘产生的影响,使得图像边缘齐整,处理后的图像效果好;同时基于Bayer数据,在插值模块中进行边缘增强处理,节省了单独进行边缘增强处理所需要的SRAM,节省了器件的很多面积,从而节省了成本。
附图说明
图1是本发明实施例提供的图像边缘增强方法的实现流程图;
图2是中心像素点为B分量的Bayer模式的原始图像的像素排列格式图;
图3是中心像素点为R分量的Bayer模式的原始图像的像素排列格式图;
图4是中心像素点为G分量,且该行包含原始值为B分量的Bayer模式的原始图像的像素排列格式图;
图5是中心像素点为G分量,且该行包含原始值为R分量的Bayer模式的原始图像的像素排列格式图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及买施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例,在插值模块中进行边缘增强处理,采用同一边缘上尽可能取多个点分别做边缘增强处理后再平均的方法,充分抑制了噪声对边缘的影响;用一个3×5的Bayer矩阵和一个5×3的Bayer矩阵来确定水平方向和垂直方向上的二阶梯度值,用一个5×5的Bayer矩阵来确定135度角方向和45度角方向上的二阶梯度值,从而判断图像边缘的走向,选择相应的边缘增强算法对图像进行边缘增强处理。
图像的边缘主要体现在边缘两侧亮度的变化,一侧为较亮区域,一侧为较暗区域,若亮区域越亮,暗区域越暗,则表示亮暗变化越明显,边缘越突出。处于边缘区域上的点,或者分布在较亮区域的一侧,或者分布在较暗区域的一侧,如果将分布在较暗区域上的点的亮度再降低一定亮度,将分布在较亮区域上的点的亮度再增加一定亮度,则边缘两侧亮暗变化更明显,达到了边缘增强的效果。
图1示出了本发明实施例提供的图像边缘增强方法的实现流程,详述如下:
在步骤S101中,计算中心像素点在不同方向上的二阶梯度值;
作为本发明的一个实施例,利用一个3×5的Bayer矩阵和一个5×3的Bayer矩阵计算中心像素点在水平方向上的二阶梯度值H和在垂直方向上的二阶梯度值V;利用一个5×5的Bayer矩阵计算中心像素点在135度角方向上的二阶梯度值X和在45度角方向上的二阶梯度值Y。
本发明实施例中;当中心像素点的原始分量为蓝色值时,如图2所示,中心像素点B33在水平方向上的二阶梯度值H为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|G32-G34|+|2B33-B31-B35|;
H2=|R22-R24|+|2G23-G21-G25|;
H3=|R42-R44|+|2G43-G41-G45|;
、在垂直方向上的二阶梯度值V为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|G23-G43|+|2B33-B13-B53|;
V2=|R22-R42|+|2G32-G12-G52|;
V3=|R24-R44|+|2G34-G14-G54|;
在135度角方向上的二阶梯度值X为:X=|R22-R44|+|2B33-B11-B55|;
在45度角方向上的二阶梯度值Y为:Y=|R24-R42|+|2B33-B15-B51|。
当中心像素点的原始分量为红色值时,如图3所示,中心像素点R33在水平方向上二阶梯度值H为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|G32-G34|+|2R33-R31-R35|;
H2=|B22-B24|+|2G23-G21-G25|;
H3=|B42-B44|+|2G43-G41-G45|;
在垂直方向上的二阶梯度值V为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|G23-G43|+|2R33-R13-R53|;
V2=|B22-B42|+|2G32-G12-G52|;
V3=|B24-B44|+|2G34-G14-G54|;
在135度角方向上的二阶梯度值X为:X=|B22-B44|+|2R33-R11-R55|;
在45度角方向上的二阶梯度值Y为:Y=|B24-B42|+|2R33-R15-R51|。
当中心像素点的原始分量为绿色值,且左右相邻像素点为蓝色值时,如图4所示,中心像素点G33在水平方向上的二阶梯度值为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|B32-B34|+|2G33-G31-G35|;
H2=|G22-G24|+|2R23-R21-R25|;
H3=|G42-G44|+|2R43-R41-R45|;
在垂直方向上的二阶梯度值为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|R23-R43|+|2G33-G13-G53|;
V2=|G22-G42|+|2B32-B12-B52|;
V3=|G24-G44|+|2B34-B14-B54|;
在135度角方向上的二阶梯度值为:X=|2G33-G22-G44|+|2G33-G11-G55|;
在45度角方向上的二阶梯度值为:Y=|2G33-G24-G42|+|2G33-G15-G51|。
当中心像素点的原始分量为绿色值,且左右相邻像素点为红色值时,如图5所示,中心像素点G33在水平方向上的二阶梯度值为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|R32-R34|+|2G33-G31-G35|;
H2=|G22-G24|+|2B23-B21-B25|;
H3=|G42-G44|+|2B43-B41-B45|;
在垂直方向上的二阶梯度值为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|B23-B43|+|2G33-G13-G53|;
V2=|G22-G42|+|2R32-R12-R52|;
V3=|G24-G44|+|2R34-R14-R54|;
在135度角方向上的二阶梯度值为:X=|2G33-G22-G44|+|2G33-G11-G55|;
在45度角方向上的二阶梯度值为:Y=|2G33-G24-G42|+|2G33-G15-G51|。
在步骤S102中,根据中心像素点在不同方向上的二阶梯度值判断图像的边缘走向;
在本发明实施例中,分别求出H和V中的最大值Max_HV和最小值Min_HV,以及X和Y中的最大值Max_XY,最小值Min_XY。将Max_HV和Max_XY分别与给定的平坦区域阈值TH_flat进行比较。
当Max_HV和Max_XY同时小于TH_flat时,将中心像素点视为平坦区域上的一点,即对该点不作边缘增强处理。
当Max_HV和Max_XY中至少有一个不小于TH_flat时,再将Min_HV和Min_XY进行比较,当Min_HV<Min_XY,且H-V<-TH_edge时,将中心像素点视为水平方向边缘上的一点;当Min_HV<Min_XY,且H-V>TH_edge时,将中心像素点视为垂直方向边缘上的一点;当Min_HV>Min_XY,且x-Y<-TH_edge时,将中心像素点视为135度角方向边缘上的一点;当Min_HV>Min_XY,且X-Y>TH_edge时,将中心像素点视为45度角方向边缘上的一点。
除了上述四种情况下的点以外的任何点,均视为一般区域(即既不平坦也非边缘)上的点,不作边缘增强的处理。
上述过程可以通过软件编程实现,示例程序如下:
If(Max_HV和Max_XY同时小于TH_flat)-----平坦区域上的点
else if(Min_HV小于Min_XY并且|H-V|>TH_edge)
If(H<V)                ----水平方向边缘上的点
else                  ----垂直方向边缘上的点
else if(Min_XY小于Min _HV并且|X-Y|>TH_edge)
 If(X<Y)               ----135度角方向边缘上的点
 else                  ----45度角方向边缘上的点
else                   ----一般区域上的点
end
在步骤S103中,采用沿边缘插值的方法对中心像素点进行插值运算,计算出像素点缺失的色彩分量。
作为本发明的一个优选实施例,在插值运算时,可以以插值点为中心像素点建立5×5的Bayer矩阵,根据色彩变化趋势,选择插值运算基准,根据选定的插值运算基准,按照色彩的非突变性和边缘的非突变性计算中心像素点的两个插值分量的值。其中,色彩变化趋势与上述边缘判断一致
经过插值运算后,中心像素点的各颜色分量已经齐备,即有(R33,G33,B33)。
在步骤S104中,基于Bayer数据,根据中心像素点原始分量的颜色、图像的边缘走向在插值模板中对图像进行边缘增强处理。
在本发明实施例中,进行边缘增强时需要避免的是中心像素点在边缘增强处理后的颜色变化。假定某个像素点周围像素点的颜色相同,只是亮度有差别,则根据RGB空间到YCbCr空间的转换公式:
Y=0.299R+0.587G+0.114B……(1)
Cb=-0.1687R-0.3313G+0.5B……(2)
Cr=0.5R-0.4187G-0.0813B……(3)
其中,Y是亮度分量,Cb是蓝色色度分量,Cr是红色色度分量。
由(1)(2)(3)式可得:当R、G、B同时变化相同的变化值Diff时,Cb,Cr不变,Y变化Diff,即如果两个像素点a,b颜色相同,则Ga-Gb=Ra-Rb=Ba-Bb。因此,只需要计算一个颜色分量的变化值Diff,然后将这个变化值Diff附加于另外两个分量上,可使得中心像素点在边缘增强后的颜色不会发生变化,相当于对Y做边缘增强处理。
在本发明实施例提供的边缘增强方法包括以下步骤:
[1]通过边缘两侧的亮度值平均计算边缘正中心的亮度值
Figure A200710077567D00131
[2]计算中心像素点的亮度值Y33同边缘正中心的亮度值的差值
En_Diff=Y33-Y_center,当En_Diff<0时,则表明中心像素点处于较暗的一侧;当En_Diff>0时,则表明中心像素点处于较亮的一侧;
[3]放大差值En_Diff,设放大倍数为Edge_Gain_t,则
Y33_new-Y_center=Edge_Gain_t×En_Diff即Y33_new=Y_center+Edge_Gain_t×En_Diff
由Y_center=Y33-En_Diff得:
Y_33_new=Y33-En_Diff+Edge_Gain_t×En_Diff
=Y33+(Edge_Gain_t-1)×En_Diff
=Y33+Edge_Gain×En_Diff
其中,Edge_Gain为放大倍数,取值范围为0~3,默认值为1。
上述边缘增强算法中的数据是基于Bayer数据,亮度信息未知,依据由RGB空间到YCbCr空间的转换公式可得,只要R,G,B同时变化相同的Diff,则Cb,Cr不变,Y变化Diff。于是该算法中只需要计算一个颜色分量的变化值,然后将这个变化值附加于另外两个分量上,即可使得中心像素点在边缘增强后的颜色不会发生变化,相当于对Y做边缘增强。考虑到Bayer数据中绿色像素点是红色或者蓝色像素点的两倍,于是选择先对中心像素点的绿色分量G进行边缘增强处理,计算出En_Diff_G,然后再分别对R,B分量进行边缘增强处理,进行边缘增强处理后的中心像素点三种颜色分量的亮度值按照下式计算:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G°
以下根据中心像素点原始分量的颜色、图像的边缘走向以及相应的边缘增强算法分别进行描述:
1、中心像素点的原始分量为蓝色值,对中心像素点做边缘增强处理,如图2所示:
(1)当Min_HV<Min_XY,且H-V<-TH_edge时,将中心像素点视为水平方向边缘上的一点,即对水平方向边缘上的点做边缘增强处理。
(a)计算中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 &times; [ 1 2 ( G 13 + G 53 ) + 1 2 ( G 23 + G 43 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.1 )
式(1.1)中,G23和G43是已知的,而G13和G53是未知的,由于中心像素点为水平方向上的点,因此可以将G13和G53均视作水平方向上的点,即:
G 13 = 1 2 ( G 12 + G 14 &prime; ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.2 )
G 53 = 1 2 ( G 52 + G 54 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 3 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(1.4)
再由(1.1)(1.2)(1.3)(1.4)可得:
En _ Diff _ G _ cen = G 33 - 1 8 [ 2 ( G 23 + G 43 ) + G 12 + G 14 + G 52 + G 54 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.5 )
(b)计算中心像素点左边相邻点(3,2)处所在边缘的正中心的绿色分量的En_Diff_G_lef
先估算中心像素点左边相邻点所在边缘的正中心绿色分量的亮度值G_lef_center
G _ lef _ cemter = 1 2 &times; [ 1 2 ( G 12 + G 52 ) + 1 2 ( G 22 + G 42 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.6 )
式(1.6)中,G12和G52是已知的,而G22和G42是未知的,由于中心像素点为水平方向上的点,因此可以将G22和G42均视作水平方向上的点,即:
G 22 = 1 2 ( G 21 + G 23 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 7 )
G 42 = 1 2 ( G 41 + G 43 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 8 )
而中心像素点左边相邻点(3,2)处所在边缘的正中心绿色分量的En_Diff_G_lef为:
En_Diff_G_Ief=G32-G_lef_center……(1.9)
再由(1.6)(1.7)(1.8)(1.9)可得:
En _ Diff _ G _ lef = G 32 - 1 8 [ 2 ( G 12 + G 52 ) + G 21 + G 23 + G 41 + G 43 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.10 )
(c)计算中心像素点右边相邻点(3,4)处所在边缘的正中心的绿色分量的En_Diff_G_rig
先估算中心像素点右边相邻点所在边缘的正中心绿色分量的亮度值G_rig_center
G _ rig _ center = 1 2 &times; [ 1 2 ( G 14 + G 54 ) + 1 2 ( G 24 + G 44 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 11 )
式(1.11)中,G14和G54是已知的,而G24和G44是未知的,由于中心像素点为水平方向上的点,因此可以将G24和G44均视作水平方向上的点,即:
G 24 = 1 2 ( G 23 + G 25 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 12 )
G 44 = 1 2 ( G 43 + G 45 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 13 )
而中心像素点右边相邻点(3,4)处所在边缘的正中心绿色分量的En_Diff_G_rig为:
En_Diff_G_rig=G34-G_rig_center……(1.14)
再由(1.11)(1.12)(1.13)(1.14)可得:
En _ Diff _ G _ rig = G 34 - 1 8 [ 2 ( G 14 + G 54 ) + G 23 + G 25 + G 43 + G 45 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.15 )
(d)边缘增强处理
为了抑制噪声对图像边缘增强的影响,计算En_Diff_G_cen,En_Diff_G_lef和En_Diff_G_rig的平均值,即
En _ Diff _ G = 1 4 ( En _ Diff _ G _ lef + 2 En _ Diff _ G _ cen + En _ Diff _ G _ rig ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 16 )
由(1.5)(1.10)(1.15)(1.16)可得:
En _ Diff _ G = 1 4 ( G 32 + 2 G 33 + G 34 ) - 1 32 [ 4 ( G 12 + G 14 + G 52 + G 54 ) + 6 ( G 23 + G 43 ) + G 21 + G 41 + G 25 + G 45 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 17 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(2)当Min_HV<Min_XY,且H-V>TH_edge时,将中心像素点视为垂直方向边缘上的一点,即对垂直方向边缘上的点做边缘增强处理。
(a)计算中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 &times; [ 1 2 ( G 31 + G 35 ) + 1 2 ( G 32 + G 34 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 18 )
式(1.18)中,G32和G34是已知的,而G31和G35是未知的,由于中心像素点为垂直方向上的点,因此可以将G13和G53均视作垂直方向上的点,即:
G 31 = 1 2 ( G 21 + G 41 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 19 )
G 35 = 1 2 ( G 25 + G 45 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 20 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(1.21)
再由(1.18)(1.19)(1.20)(1.21)可得:
En _ Diff _ G _ cen = G 33 - 1 8 [ 2 ( G 32 + G 34 ) + G 21 + G 41 + G 25 + G 45 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.22 )
(b)计算中心像素点上边相邻点(2,3)处所在边缘的正中心的绿色分量的En_Diff_G_up
先估算中心像素点上边相邻点所在边缘的正中心绿色分量的亮度值G_up_center
G _ up _ center = 1 2 &times; [ 1 2 ( G 21 + G 25 ) + 1 2 ( G 22 + G 24 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 23 )
式(1.23)中,G21和G25是已知的,而G22和G24是未知的,由于中心像素点为垂直方向上的点,因此可以将G22和G24均视作垂直方向上的点,即:
G 22 = 1 2 ( G 12 + G 32 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 24 )
G 24 = 1 2 ( G 14 + G 34 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 25 )
而中心像素点上边相邻点(2,3)处所在边缘的正中心绿色分量的En_Diff_G_up为:
En_Diff_G_up=G23-G_up_center……(1.26)
再由(1.23)(1.24)(1.25)(1.26)可得:
En _ Diff _ G _ up = G 23 - 1 8 [ 2 ( G 21 + G 25 ) + G 12 + G 32 + G 14 + G 34 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.27 )
(c)计算中心像素点下边相邻点(4,3)处所在边缘的正中心的绿色分量的En_dow_center
先估算中心像素点下边相邻点所在边缘的正中心绿色分量的亮度值G_dow_center
G _ dow _ center = 1 2 &times; [ 1 2 ( G 41 + G 45 ) + 1 2 ( G 42 + G 44 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 28 )
式(1.28)中,G41和G45是已知的,而G42和G44是未知的,由于中心像素点为垂直方向上的点,因此可以将G42和G44均视作垂直方向上的点,即:
G 42 = 1 2 ( G 32 + G 52 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 29 )
G 44 = 1 2 ( G 34 + G 54 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 30 )
而中心像素点下边相邻点(4,3)处所在边缘的正中心绿色分量的En_Diff_G_dow为:
En_Diff_G_dow=G43-G_dow_center……(1.31)
再由(1.28)(1.29)(1.30)(1.31)可得:
En _ Diff _ G _ dow = G 43 - 1 8 [ 2 ( G 41 + G 45 ) + G 32 + G 52 + G 34 + G 54 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.32 )
(d)边缘增强处理
为了抑制噪声对图像边缘增强的影响,计算En_Diff_G_cen,En_Diff_G_up和En_Diff_G_dow的平均值,即
En _ Diff _ G = 1 4 ( En _ Diff _ G _ up + 2 En _ Diff _ G _ cen + En _ Diff _ G _ dow ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 33 )
由(1.22)(1.27)(1.32)(1.33)可得:
En _ Diff _ G = 1 4 ( G 23 + 2 G 33 + G 43 ) - 1 32 [ 4 ( G 21 + G 41 + G 25 + G 45 ) + 6 ( G 32 + G 34 ) + G 12 + G 14 + G 52 + G 54 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 34 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(3)当Min_HV>Min_XY,且X-Y<-TH_edge时,将中心像素点视为135度角方向边缘上的一点,即对135度角方向边缘上的点做边缘增强处理。
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_centerr
G _ center = 1 2 &times; ( G 24 + G 42 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 35 )
式(1.35)中,G24和G42是未知的,由于中心像素点为135度角方向上的点,因此可以将G24和G42均视作135度角方向上的点,即:
G 24 = 1 4 ( G 14 + G 25 + G 34 + G 23 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 36 )
G 42 = 1 4 ( G 41 + G 32 + G 43 + G 52 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 37 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(1.38)
再由(1.35)(1.36)(1.37)(1.38)可得:
En _ Diff _ G = En _ Diff _ G _ cen = G 33 - 1 8 ( G 14 + G 25 + G 41 + G 52 + G 32 + G 34 + G 23 + G 43 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.39 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(4)当Min_HV>Min_XY,且X-Y>TH_edge时,将中心像素点视为45度角方向边缘上的一点,即对45度角方向边缘上的点做边缘增强处理。
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 &times; ( G 22 + G 44 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 40 )
式(1.40)中,G22和G44是未知的,由于中心像素点为45度角方向上的点,因此可以将G22和G44均视作45度角方向上的点,即:
G 22 = 1 4 ( G 12 + G 21 + G 32 + G 23 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 41 )
G 44 = 1 4 ( G 45 + G 54 + G 43 + G 34 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1 . 42 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(1.43)
再由(1.40)(1.41)(1.42)(1.43)可得:
En _ Diff _ G = En _ Diff _ G _ cen = G 33 - 1 8 ( G 12 + G 21 + G 45 + G 54 + G 32 + G 34 + G 23 + G 43 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 1.44 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
2、中心像素点的原始分量为红色值,对中心像素点做边缘增强处理,如图3所示:
(1)当Min_HV<Min_XY,且H-V<-TH_edge时,将中心像素点视为水平方向边缘上的一点,即对水平方向边缘上的点做边缘增强处理。
与1.(1)中计算En_Diff_G同理可得:
En _ Diff _ G = 1 4 ( G 32 + 2 G 33 + G 34 ) - 1 32 [ 4 ( G 12 + G 14 + G 52 + G 54 ) + 6 ( G 23 + G 43 ) + G 21 + G 41 + G 25 + G 45 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 2.1 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(2)当Min_HV<Min_XY,且H-V>TH_edge时,将中心像素点视为垂直方向边缘上的一点,即对垂直方向边缘上的点做边缘增强处理。
与1.(2)中计算En_Diff_G同理可得:
En _ Diff _ G = 1 4 ( G 23 + 2 G 33 + G 43 ) - 1 32 [ 4 ( G 21 + G 41 + G 25 + G 45 ) + 6 ( G 32 + G 34 ) + G 12 + G 14 + G 52 + G 54 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 2.2 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(3)当Min_HV>Min_XY;且X-Y<-TH_edge时,将中心像素点视为135度角方向边缘上的一点,即对135度角方向边缘上的点做边缘增强处理。
与1.(3)中计算En_Diff_G同理可得:
En _ Diff _ G = En _ Diff _ G _ cen = G 33 - 1 4 ( G 14 + G 25 + G 41 + G 52 + G 32 + G 34 + G 23 + G 43 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 2.3 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Ditf_G
(4)当Min_HV>Min_XY,且X-Y>TH_edge时,将中心像素点视为45度角方向边缘上的一点,即对45度角方向边缘上的点做边缘处理。
与1.(4)中计算En_Diff_G同理可得:
En _ Diff _ G = En _ Diff _ G _ cen = G 33 - 1 4 ( G 12 + G 21 + G 45 + G 54 + G 32 + G 34 + G 23 + G 43 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 2.4 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
3、中心像素点的原始分量为绿色值,且左右相邻像素点为蓝色值时,对中心像素点做边缘增强处理,如图4所示:
(1)当Min_HV<Min_XY,且H-V<-TH_edge时,将中心像素点视为水平边缘上的一点,即对水平方向边缘上的点做边缘增强处理。
(a)计算中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 &times; [ 1 2 ( G 13 + G 53 ) + 1 2 ( G 23 + G 43 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.1 )
式(3.1)中,G13和G53是已知的,而G23和G43是未知的,由于中心像素点为水平方向上的点,因此可以将G23和G43均视作水平方向上的点,即:
G 23 = 1 2 ( G 22 + G 24 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.2 )
G 43 = 1 2 ( G 42 + G 44 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.3 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(3.4)
再由(3.1)(3.2)(3.3)(3.4)可得:
En _ Diff _ G _ cen = G 33 - 1 8 [ 2 ( G 13 + G 53 ) + G 22 + G 24 + G 42 + G 44 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.5 )
(b)计算中心像素点左边相邻点(3,2)处所在边缘的正中心的绿色分量的En_Diff_G_lef
先估算中心像素点左边相邻点所在边缘的正中心绿色分量的亮度值G_lef_center
G _ lef _ center = 1 2 &times; [ 1 2 ( G 12 + G 52 ) + 1 2 ( G 22 + G 42 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.6 )
式(3.6)中,G22和G42是已知的,而G12和G52是未知的,由于中心像素点为水平方向上的点,因此可以将G12和G52均视作水平方向上的点,即:
G 12 = 1 2 ( G 11 + G 13 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.7 )
G 52 = 1 2 ( G 51 + G 53 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.8 )
而中心像素点左边相邻点(3,2)处所在边缘的正中心绿色分量的En_Diff_G_lef为:
En_Diff_G_lef=G32-G_lef_center……(3.9)
G32也可视作水平方向上的点,即 G 32 = 1 2 ( G 31 + G 33 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 10 )
再由(3.6)(3.7)(3.8)(3.9)(3.10)可得:
En _ Diff _ G _ lef = 1 2 ( G 31 + G 33 ) - 1 8 [ 2 ( G 22 + G 42 ) + G 11 + G 13 + G 51 + G 53 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.11 )
(c)计算中心像素点右边相邻点(3,4)处所在边缘的正中心的绿色分量的En_Diff_G_rig
先估算中心像素点右边相邻点所在边缘的正中心绿色分量的亮度值G_rig_center
G _ rig _ center = 1 2 &times; [ 1 2 ( G 14 + G 54 ) + 1 2 ( G 24 + G 44 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.12 )
式(3.12)中,G24和G44是已知的,而G14和G54是未知的,由于中心像素点为水平方向上的点,因此可以将G14和G54均视作水平方向上的点,即:
G 14 = 1 2 ( G 13 + G 15 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.13 )
G 54 = 1 2 ( G 53 + G 55 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.14 )
而中心像素点右边相邻点(3,4)处所在边缘的正中心绿色分量的En_Diff_G_rig为:
En_Diff_G_rig=G34-G_rig_center……(3.15)
G34也可视作水平方向上的点,即 G 34 = 1 2 ( G 33 + G 35 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 16 )
再由(3.12)(3.13)(3.14)(3.15)(3.16)可得:
En _ Diff _ G _ rig = 1 2 ( G 33 + G 35 ) - 1 8 [ 2 ( G 24 + G 44 ) + G 13 + G 15 + G 53 + G 55 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.17 )
(d)边缘增强处理
为了抑制噪声对图像边缘增强的影响,计算En_Diff_G_cen,En_Diff_G_lef和En_Diff_G_rig的平均值,即
En _ Diff _ G = 1 4 ( En _ Diff _ G _ lef + 2 En _ Diff _ G _ cen + En _ Diff _ G _ rig ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 18 )
由(3.5)(3.11)(3.17)(3.18)可得:
En _ Diff _ G = 1 8 ( G 31 + 6 G 33 + G 35 ) - 1 32 [ 4 ( G 22 + G 24 + G 42 + G 44 ) + 6 ( G 13 + G 53 ) + G 11 + G 15 + G 51 + G 55 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 19 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(2)当Min_HV<Min_XY,且H-V>TH_edge时,将中心像素点视为垂直方向边缘上的一点,即对垂直方向边缘上的点做边缘增强处理。
(a)计算中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 &times; [ 1 2 ( G 31 + G 35 ) + 1 2 ( G 32 + G 34 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.20 )
式(3.20)中,G31和G35是已知的,而G32和G34是未知的,由于中心像素点为垂直方向上的点,因此可以将G32和G34均视作垂直方向上的点,即:
G 32 = 1 2 ( G 22 + G 42 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.21 )
G 34 = 1 2 ( G 24 + G 44 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.22 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(3.23)
再由(3.20)(3.21)(3.22)(3.23)可得:
En _ Diff _ G _ cen = G 33 - 1 8 [ 2 ( G 31 + G 35 ) + G 22 + G 24 + G 42 + G 44 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.24 )
(b)计算中心像素点上边相邻点(2,3)处所在边缘的正中心的绿色分量的En_Diff_G_up
先估算中心像素点上边相邻点所在边缘的正中心绿色分量的亮度值G_up_center
G _ up _ center = 1 2 &times; [ 1 2 ( G 21 + G 25 ) + 1 2 ( G 22 + G 24 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.25 )
式(3.25)中,G22和G24是已知的,而G21和G25是未知的,由于中心像素点为垂直方向上的点,因此可以将G21和G25均视作垂直方向上的点,即:
G 21 = 1 2 ( G 11 + G 31 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.26 )
G 25 = 1 2 ( G 15 + G 35 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.27 )
而中心像素点上边相邻点(2,3)处所在边缘的正中心绿色分量的En_Diff_G_up为:
En_Diff_G_up=G23-G_up_center……(3.28)
G23也可以视作垂直方向上的点,即: G 23 = 1 2 ( G 13 + G 33 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 29 )
再由(3.25)(3.26)(3.27)(3.28)(3.29)可得:
En _ Diff _ G _ up = 1 2 ( G 13 + G 33 ) - 1 8 [ 2 ( G 22 + G 24 ) + G 11 + G 31 + G 15 + G 35 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.30 )
(c)计算中心像素点下边相邻点(4,3)处所在边缘的正中心的绿色分量的En_Diff_G_dow
先估算中心像素点下边相邻点所在边缘的正中心绿色分量的亮度值G_dow_center
G _ dow _ center = 1 2 &times; [ 1 2 ( G 41 + G 45 ) + 1 2 ( G 42 + G 44 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.31 )
式(3.31)中,G42和G44是已知的,而G41和G45是未知的,由于中心像素点为垂直方向上的点,因此可以将G41和G45均视作垂直方向上的点,即:
G 41 = 1 2 ( G 31 + G 51 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.32 )
G 45 = 1 2 ( G 35 + G 55 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.33 )
而中心像素点下边相邻点(4,3)处所在边缘的正中心绿色分量的En_Diff_G_dow为:
En_Diff_G_dow=G43-G_dow_center……(3.34)
G43也可以视作垂直方向上的点,即: C 43 &prime; = 1 2 ( G 53 + G 33 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 35 )
再由(3.31)(3.32)(3.33)(3.34)(3.35)可得:
En _ Diff _ G _ dow = 1 2 ( G 53 + G 33 ) - 1 8 [ 2 ( G 42 + G 44 ) + G 31 + G 51 + G 35 + G 55 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.36 )
(d)边缘增强处理
为了抑制噪声对边缘增强的影响,计算En_Diff_G_cen,En_Diff_G_up和En_Diff_G_dow的平均值,即 En _ Diff _ G = 1 4 ( En _ Diff _ G _ up + 2 En _ Diff _ G _ cen + En _ Diff _ G _ dow ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 37 )
由(3.24)(3.30)(3.36)(3.37)可得:
En _ Diff _ G = 1 8 ( G 13 + 6 G 33 + G 53 ) - 1 32 [ 4 ( G 22 + G 24 + G 42 + G 44 ) + 6 ( G 31 + G 35 ) + G 11 + G 15 + G 51 + G 55 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 38 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G°
(3)当Min_HV>Min_XY,且X-Y<-TH_edge时,将中心像素点视为135度角方向边缘上的一点,即对135度角方向边缘上的点做边缘增强处理。
(a)计算中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 [ 1 2 &times; ( G 15 + G 51 ) + 1 2 &times; ( G 24 + G 42 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.39 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(3.40)
再由(3.39)(3.40)可得:
En _ Diff _ G _ cen = G 33 - 1 4 ( G 15 + G 51 + G 24 + G 42 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.41 )
(b)计算中心像素点左上边相邻点(2,2)处所在边缘的正中心的绿色分量的En_Diff_G_lu
先估算中心像素点左上边相邻点所在边缘的正中心绿色分量的亮度值G_lu_center
G _ lu _ center = 1 2 ( G 13 + G 31 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 42 )
而中心像素点左上边相邻点(2,2)处所在边缘的正中心绿色分量的En_Diff_G_lu为:
En_Diff_G_lu=G22-G_lu_center……(3.43)
再由(3.42)(3.43)可得:
En _ Diff _ G _ lu = G 22 - 1 2 ( G 13 + G 31 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 44 )
(c)计算中心像素点右下边相邻点(4,4)处所在边缘的正中心的绿色分量的En_Diff_G_rd
先估算中心像素点右下边相邻点所在边缘的正中心绿色分量的亮度值G_rd_center
G _ rd _ center = 1 2 ( G 35 + G 53 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 45 )
而中心像素点右下边相邻点(4,4)处所在边缘的正中心绿色分量的En_Diff_G_rd为:
En_Diff_G_rd=G44-G_rd_center……(3.46)
再由(3.45)(3.46)可得:
En _ Diff _ G _ rd = G 44 - 1 2 ( G 53 + G 35 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 47 )
(d)边缘增强处理
为了抑制噪声对图像边缘增强的影响,计算En_Diff_G_cen,En_Diff_G_lu和En_Diff_G_rd的平均值,即 En _ Diff _ G = 1 4 ( En _ Diff _ G _ lu + 2 En _ Diff _ G _ cen + En _ Diff _ G _ rd ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 48 )
由(3.41)(3.44)(3.47)(3.48)可得:
En _ Diff _ G = 1 4 ( G 22 + 2 G 33 + G 44 ) - 1 8 ( G 13 + G 53 + G 31 + G 35 + G 24 + G 42 + G 15 + G 51 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 49 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G°
(4)当Min_HV>Min_XY,且X-Y>TH_edge时,将中心像素点视为45度角方向边缘上的一点,即对45度角方向边缘上的点做边缘增强处理。
(a)计算中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen
先估算中心像素点所在边缘的正中心绿色分量的亮度值G_center
G _ center = 1 2 [ 1 2 &times; ( G 11 + G 55 ) + 1 2 &times; ( G 22 + G 44 ) ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.50 )
而中心像素点(3,3)处所在边缘的正中心绿色分量的En_Diff_G_cen为:
En_Diff_G_cen=G33-G_center……(3.51)
再由(3.50)(3.51)可得:
En _ Diff _ G _ cen = G 33 - 1 4 ( G 11 + G 55 + G 22 + G 44 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3.52 )
(b)计算中心像素点右上边相邻点(2,4)处所在边缘的正中心的绿色分量的En_Diff_G_ru
先估算中心像素点右上边相邻点所在边缘的正中心绿色分量的亮度值G_ru_center
G _ ru _ center = 1 2 ( G 13 + G 35 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 53 )
而中心像素点右上边相邻点(2,4)处所在边缘的正中心绿色分量的En_Diff_G_ru为:
En_Diff_G_ru=G24-G_ru_center……(3.54)
再由(3.53)(3.54)可得:
En _ Diff _ G _ ru = G 24 - 1 2 ( G 13 + G 35 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 55 )
(c)计算中心像素点左下边相邻点(4,2)处所在边缘的正中心的绿色分量的En_Diff_G_ld
先估算中心像素点左下边相邻点所在边缘的正中心绿色分量的亮度值G_ld_center
G _ ld _ center = 1 2 ( G 31 + G 53 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 56 )
而中心像素点左下边相邻点(4,2)处所在边缘的正中心绿色分量的En_Diff_G_ld为:
En_Diff_G_ld=G42-G_ld_center……(3.57)
再由(3.56)(3.57)可得:
En _ Diff _ G _ ld = G 42 - 1 2 ( G 53 + G 31 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 58 )
(d)边缘增强处理
为了抑制噪声对图像边缘增强的影响,计算En_Diff_G_cen,En_Diff_G_ld和En_Diff_G_ru的平均值,即 En _ Diff _ G = 1 4 ( En _ Diff _ G _ ld + 2 En _ Diff _ G _ cen + En _ Diff _ G _ ru ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 59 )
由(3.52)(3.55)(3.58)(3.59)可得:
En _ Diff _ G = 1 4 ( G 24 + 2 G 33 + G 42 ) - 1 8 ( G 13 + G 53 + G 31 + G 35 + G 22 + G 44 + G 15 + G 55 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 3 . 60 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
4、中心像素点的原始分量为绿色值,且左右相邻像素点为红色值时,对中心像素点做边缘增强处理,如图5所示:
(1)当Min_HV<Min_XY,且H-V<-TH_edge时,将中心像素点视为水平方向边缘上的一点,即对水平方向边缘上的点做边缘处理。
与3.(1)中计算En_Diff_G同理可得:
En _ Diff _ G = 1 8 ( G 31 + 6 G 33 + G 35 ) - 1 32 [ 4 ( G 22 + G 24 + G 42 + G 44 ) + 6 ( G 13 + G 53 ) + G 11 + G 15 + G 51 + G 55 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 4.1 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(2)当Min_HV<Min_XY,且H-V>TH_edge时,将中心像素点视为垂直边缘上的一点,即对垂直方向边缘上的点做边缘处理。
与3.(2)中计算En_Diff_G同理可得:
En _ Diff _ G = 1 8 ( G 13 + 6 G 33 + G 53 ) - 1 32 [ 4 ( G 22 + G 24 + G 42 + G 44 ) + 6 ( G 31 + G 35 ) + G 11 + G 15 + G 51 + G 55 ] &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 4.2 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(3)当Min_HV>Min_XY,且X-Y<-TH_edge时,将中心像素点视为135度角方向边缘上的一点,即对135度角方向边缘上的点做边缘处理。
与3.(3)中计算En_Diff_G同理可得:
En _ Diff _ G = 1 4 ( G 22 + 2 G 33 + G 44 ) - 1 8 ( G 13 + G 53 + G 31 + G 35 + G 24 + G 42 + G 15 + G 51 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 4.3 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
(4)当Min_HV>Min_XY,且X-Y>TH_edge时,将中心像素点视为45度角方向边缘上的一点,即对45度角方向边缘上的点做边缘处理。
与3.(4)中计算En_Diff_G同理可得:
En _ Diff _ G = 1 4 ( G 24 + 2 G 33 + G 42 ) - 1 8 ( G 13 + G 53 + G 31 + G 35 + G 22 + G 44 + G 15 + G 55 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; ( 4.4 )
即中心像素点(3,3)处R,G,B三个分量进行边缘增强处理之后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
由上述可知,本发明实施例在对图像进行边缘增强处理时,充分考虑了中心像素点周围不同像素点的绿色分量值的影响,采取了抗噪声的自适应的边缘增强算法,消除噪声可能对边缘产生的影响,使得图像边缘齐整,处理后的图像效果好。同时基于Bayer数据,在插值模块中进行边缘增强处理,节省了单独进行边缘增强处理所需要的SRAM,节省了器件的很多面积,从而节省了成本。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (12)

1、一种图像边缘增强方法,其特征在于,所述方法包括如下步骤:
根据中心像素点在不同方向上的二阶梯度值判断图像的边缘走向;
对中心像素点进行插值运算,计算像素点缺失的色彩分量;
基于Bayer数据,根据中心像素点原始分量的颜色、图像的边缘走向在插值模板中对图像进行边缘增强处理。
2、如权利要求1所述的方法,其特征在于,所述根据中心像素点在不同方向上的二阶梯度值判断图像的边缘走向的步骤具体为:
由一个3×5的Bayer矩阵和一个5×3的Bayer矩阵计算所述中心像素点在水平方向上的二阶梯度值H和在垂直方向上的二阶梯度值V;
由一个5×5的Bayer矩阵计算所述中心像素点在135度角方向上的二阶梯度值X和在45度角方向上的二阶梯度值Y;
将H和V中的最大值Max_HV,最小值Min_HV,以及X和Y中的最大值Max_XY,最小值Min_XY分别与给定的平坦区域阈值TH_flat进行比较;
当Max_HV和Max_XY同时小于TH_flat时,将中心像素点视为平坦区域上的一点;当Max_HV和Max_XY中至少有一个不小于TH_flat时,再将Min_HV和Min_XY进行比较,当Min_HV<Min_XY,且H-V<-TH_edge时,将中心像素点视为水平方向边缘上的一点;当Min_HV<Min_XY,且H-V>TH_edge时,将中心像素点视为垂直方向边缘上的一点;当Min_HV>Min_XY,且X-Y<-TH_edge时,将中心像素点视为135度角方向边缘上的一点;当Min_HV>Min_XY,且X-Y>TH_edge时,将中心像素点视为45度角方向边缘上的一点。
3、如权利要求1或2所述的方法,其特征在于,当中心像素点的原始分量为蓝色值时,其在水平方向上的二阶梯度值为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|G32-G34|+|2B33-B31-B35|;
H2=|R22-R24|+|2G23-G21-G25|;
H3=|R42-R44|+|2G43-G41-G45|;
在垂直方向上的二阶梯度值为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|G23-G43|+|2B33-B13-B53|;
V2=|R22-R42|+|2G32-G12-G52|;
V3=|R24-R44|+|2G34-G14-G54|;
在135度角方向上的二阶梯度值为:X=|R22-R44|+|2B33-B11-B55|;在45度角方向上的二阶梯度值为:Y=|R24-R42|+|2B33-B15-B51|。
4、如权利要求1或2所述的方法,其特征在于,当中心像素点的原始分量为红色值时,其在水平方向上二阶梯度值为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|G32-G34|+|2R33-R31-R35|;
H2=|B22-B24|+|2G23-G21-G25|;
H3=|B42-B44|+|2G43-G41-G45|;
在垂直方向上的二阶梯度值为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|G23-G43|+|2R33-R13-R53|;
V2=|B22-B42|+|2G32-G12-G52|
V3=|B24-B44|+|2G34-G14-G54|;
在135度角方向上的二阶梯度值为:X=|B22-B44|+|2R33-R11-R55|;
在45度角方向上的二阶梯度值为:Y=|B24-B42|+|2R33-R15-R51|。
5、如权利要求1或2所述的方法,其特征在于,当中心像素点的原始分量为绿色值,且左右相邻像素点为蓝色值时,其在水平方向上的二阶梯度值为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|B32-B34|+|2G33-G31-G35|;
H2=|G22-G24|+|2R23-R21-R25|;
H3=|G42-G44|+|2R43-R41-R45|;
在垂直方向上的二阶梯度值为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|R23-R43|+|2G33-G13-G53|;
V2=|G22-G42|+|2B32-B12-B52|;
V3=|G24-G44|+|2B34-B14-B54|;
在135度角方向上的二阶梯度值为:X=|2G33-G22-G44|+|2G33-G11-G55|;
在45度角方向上的二阶梯度值为:Y=|2G33-G24-G42|+|2G33-G15-G51|。
6、如权利要求1或2所述的方法,其特征在于,当中心像素点的原始分量为绿色值,且左右相邻像素点为红色值时,其在水平方向上的二阶梯度值为: H = 2 H 1 + H 2 + H 3 4
其中:H1=|R32-R34|+|2G33-G31-G35|;
H2=|G22-G24|+|2B23-B21-B25|;
H3=|G42-G44|+|2B43-B41-B45|;
在垂直方向上的二阶梯度值为: V = 2 V 1 + V 2 + V 3 4
其中:V1=|B23-B43|+|2G33-G13-G53|;
V2=|G22-G42|+|2R32-R12-R52|;
V3=|G24-G44|+|2R34-R14-R54|;
在135度角方向上的二阶梯度值为:X=|2G33-G22-G44|+|2G33-G11-G55|;
在45度角方向上的二阶梯度值为:Y=|2G33-G24-G42|+|2G33-G15-G51|。
7、如权利要求1所述的方法,其特征在于,所述基于Bayer数据,根据中心像素点原始分量的颜色、图像的边缘走向在插值模板中对图像进行边缘增强处理的步骤具体为:
通过边缘两侧的亮度值平均计算边缘正中心的亮度值Y_center
计算中心像素点的亮度值Y33同边缘正中心的亮度值的差值En_Diff,判断中心像素点是处于较暗的一侧或者处于较亮的一侧;
计算中心像素点进行边缘增强处理后的新值Y33_new=Y33+Edge_Gain×En_Diff
其中,Edge_Gain为放大倍数。
8、如权利要求7所述的方法,其特征在于,所述边缘正中心的亮度值Y_center由绿色分量的亮度值近似代替。
9、如权利要求7所述的方法,其特征在于,所述Edge_Gain的取值范围为0~3。
10、如权利要求7所述的方法,其特征在于,所述中心像素点进行边缘增强处理后的新值为:
R33_new=R33+Edge_Gain×En_Diff_G
G33_new=G33+Edge_Gain×En_Diff_G
B33_new=B33+Edge_Gain×En_Diff_G
11、如权利要求2或7或10所述的方法,其特征在于,当所述中心像素点的原始分量为蓝色值时或者当所述中心像素点的原始分量为红色值时,以水平方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = 1 4 ( G 32 + 2 G 33 + G 34 ) - 1 32 [ 4 ( G 12 + G 14 + G 52 + G 54 ) + 6 ( G 23 + G 43 ) + G 21 + G 41 + G 25 + G 45 ] ;
以垂直方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = 1 4 ( G 23 + 2 G 33 + G 43 ) - 1 32 [ 4 ( G 21 + G 41 + G 25 + G 45 ) + 6 ( G 32 + G 34 ) + G 12 + G 14 + G 52 + G 54 ] ;
以135度角方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = G 33 - 1 8 ( G 14 + G 25 + G 41 + G 52 + G 32 + G 34 + G 23 + G 43 ) ;
以45度角方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = G 33 - 1 8 ( G 12 + G 21 + G 45 + G 54 + G 32 + G 34 + G 23 + G 43 ) .
12、如权利要求2或7或10所述的方法,其特征在于,当所述中心像素点的原始分量为绿色值时,以水平方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = 1 8 ( G 31 + 6 G 33 + G 35 ) - 1 32 [ 4 ( G 22 + G 24 + G 42 + G 44 ) + 6 ( G 13 + G 53 ) + G 11 + G 15 + G 51 + G 55 ] ;
以垂直方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = 1 8 ( G 13 + 6 G 33 + G 53 ) - 1 32 [ 4 ( G 22 + G 24 + G 42 + G 44 ) + 6 ( G 31 + G 35 ) + G 11 + G 15 + G 51 + G 55 ] ;
以135度角方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = 1 4 ( G 22 + 2 G 33 + G 44 ) - 1 8 ( G 13 + G 53 + G 31 + G 35 + G 24 + G 42 + G 15 + G 51 ) ;
以45度角方向为边缘走向,其中心像素点绿色分量的亮度值与边缘正中心的亮度值的差值En_Diff_G按下式计算:
En _ Diff _ G = 1 4 ( G 24 + 2 G 33 + G 42 ) - 1 8 ( G 13 + G 53 + G 31 + G 35 + G 22 + G 44 + G 15 + G 55 ) .
CN200710077567.9A 2007-12-04 2007-12-04 一种图像边缘增强方法 Active CN101452573B (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200710077567.9A CN101452573B (zh) 2007-12-04 2007-12-04 一种图像边缘增强方法
US12/274,314 US8417030B2 (en) 2007-12-04 2008-11-19 Method of image edge enhancement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710077567.9A CN101452573B (zh) 2007-12-04 2007-12-04 一种图像边缘增强方法

Publications (2)

Publication Number Publication Date
CN101452573A true CN101452573A (zh) 2009-06-10
CN101452573B CN101452573B (zh) 2013-01-30

Family

ID=40675794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710077567.9A Active CN101452573B (zh) 2007-12-04 2007-12-04 一种图像边缘增强方法

Country Status (2)

Country Link
US (1) US8417030B2 (zh)
CN (1) CN101452573B (zh)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930599A (zh) * 2010-08-24 2010-12-29 黄伟萍 一种医学图像增强方法及系统
CN102158714A (zh) * 2010-02-11 2011-08-17 昆山锐芯微电子有限公司 基于拜尔域三基色格式的图像边缘增强方法及装置
CN102170572A (zh) * 2010-06-22 2011-08-31 上海盈方微电子有限公司 一种新型边缘自适应cfa彩色图像插值方法
CN102254301A (zh) * 2011-07-22 2011-11-23 西安电子科技大学 基于边缘方向插值的cfa图像去马赛克方法
CN102413271A (zh) * 2011-11-21 2012-04-11 苏州希图视鼎微电子有限公司 消除假轮廓的图像处理方法及装置
CN102483882A (zh) * 2009-09-14 2012-05-30 罗伯特·博世有限公司 用于在汽车的泊车辅助系统中显示障碍物的方法和装置
CN102682424A (zh) * 2012-01-07 2012-09-19 河南科技大学 基于边缘方向差值的图像放大处理方法
CN104346778A (zh) * 2013-07-30 2015-02-11 比亚迪股份有限公司 图像的边缘增强方法和装置以及数码摄像设备
CN104394336A (zh) * 2014-12-01 2015-03-04 北京思比科微电子技术股份有限公司 基于cmos图像传感器的图像轮廓锐化方法及系统
CN104680484A (zh) * 2013-11-26 2015-06-03 展讯通信(上海)有限公司 一种图像增强的方法及装置
CN107517367A (zh) * 2017-07-28 2017-12-26 建荣半导体(深圳)有限公司 拜尔域图像插值方法、装置、图像处理芯片及存储装置
CN109981920A (zh) * 2017-12-28 2019-07-05 夏普株式会社 图像处理装置、图像处理程序、图像处理方法及图像形成装置
CN111340693A (zh) * 2019-08-29 2020-06-26 杭州海康慧影科技有限公司 一种Bayer图像的插值方法、装置及电子设备
CN117057995A (zh) * 2023-08-23 2023-11-14 上海玄戒技术有限公司 图像处理方法、装置、芯片、电子设备及存储介质

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100992362B1 (ko) * 2008-12-11 2010-11-04 삼성전기주식회사 컬러 보간 장치
JP5655355B2 (ja) * 2009-11-02 2015-01-21 ソニー株式会社 画素欠陥補正装置、撮像装置、画素欠陥補正方法、およびプログラム
TWI543586B (zh) 2014-05-30 2016-07-21 國立交通大學 影像增強的方法及其影像處理裝置與電腦程式產品
CN104463097B (zh) * 2014-10-31 2018-04-03 武汉工程大学 基于局部自适应阈值分割算法的高压线图像检测方法
CN105096883B (zh) * 2015-08-28 2017-10-27 厦门天马微电子有限公司 像素结构、显示面板、显示装置及其驱动方法
CN107392856B (zh) * 2016-05-16 2020-10-27 合肥君正科技有限公司 一种图像滤波方法及其装置
US10096097B2 (en) 2016-08-01 2018-10-09 The United States Of America As Represented By The Secretary Of The Navy Content-aware bidirectional image edge highlighting
JP6461430B1 (ja) * 2016-11-30 2019-01-30 広東欧珀移動通信有限公司 画像の不良画素補償方法、装置及び非一時的なコンピュータ可読記憶媒体
TWI640958B (zh) * 2017-10-30 2018-11-11 瑞昱半導體股份有限公司 增強影像邊緣的電子裝置與影像處理方法
US10636127B2 (en) 2018-09-25 2020-04-28 United States Of America As Represented By Secretary Of The Navy Bidirectional edge highlighting with strong edge attenuation
US11207148B2 (en) * 2018-09-25 2021-12-28 Covidien Lp Devices, systems, and methods enabling utilization of surgical packaging as a surgical drape
KR20210151450A (ko) * 2020-06-05 2021-12-14 에스케이하이닉스 주식회사 스마트 비닝 회로, 이미지 센싱 장치 및 그 동작방법
CN114820297A (zh) * 2021-01-29 2022-07-29 北京小米移动软件有限公司 图像处理方法、图像处理装置及存储介质
CN113949824B (zh) * 2021-10-28 2022-08-23 深圳市三一众合科技有限公司 卡通头像的嘴巴控制方法及相关产品
CN116977173B (zh) * 2023-07-12 2024-03-22 武汉大学 基于色差和色比的边缘优化Bayer插值方法

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02162475A (ja) * 1988-12-15 1990-06-22 Dainippon Screen Mfg Co Ltd 画像輪郭修正方法
US5373322A (en) * 1993-06-30 1994-12-13 Eastman Kodak Company Apparatus and method for adaptively interpolating a full color image utilizing chrominance gradients
US5629734A (en) * 1995-03-17 1997-05-13 Eastman Kodak Company Adaptive color plan interpolation in single sensor color electronic camera
JP3503372B2 (ja) * 1996-11-26 2004-03-02 ミノルタ株式会社 画素補間装置及びその画素補間方法
US6674903B1 (en) * 1998-10-05 2004-01-06 Agfa-Gevaert Method for smoothing staircase effect in enlarged low resolution images
US6836289B2 (en) * 1999-12-20 2004-12-28 Texas Instruments Incorporated Digital still camera architecture with red and blue interpolation using green as weighting factors
US20020167602A1 (en) * 2001-03-20 2002-11-14 Truong-Thao Nguyen System and method for asymmetrically demosaicing raw data images using color discontinuity equalization
KR100396898B1 (ko) * 2001-09-13 2003-09-02 삼성전자주식회사 이미지센서 출력데이터 처리장치 및 처리방법
US7002627B1 (en) * 2002-06-19 2006-02-21 Neomagic Corp. Single-step conversion from RGB Bayer pattern to YUV 4:2:0 format
FI115942B (fi) * 2002-10-14 2005-08-15 Nokia Corp Menetelmä kuvien interpoloimiseksi ja terävöittämiseksi
US20070292022A1 (en) * 2003-01-16 2007-12-20 Andreas Nilsson Weighted gradient based and color corrected interpolation
US7130491B2 (en) * 2003-03-14 2006-10-31 Hewlett-Packard Development Company, L.P. System and method for interpolating a color image
TW200528770A (en) * 2004-02-23 2005-09-01 Altek Corp Method and apparatus for determining edge inclination of an interested pixel in a color filter image array interpolation (CFAI)
CN100414964C (zh) * 2005-08-10 2008-08-27 展讯通信(上海)有限公司 一种彩色滤镜阵列插值方法
CN100546335C (zh) * 2005-12-21 2009-09-30 比亚迪股份有限公司 一种实现异常点数值校正的色彩插值方法
US8111299B2 (en) * 2008-08-15 2012-02-07 Seiko Epson Corporation Demosaicking single-sensor camera raw data

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483882A (zh) * 2009-09-14 2012-05-30 罗伯特·博世有限公司 用于在汽车的泊车辅助系统中显示障碍物的方法和装置
CN102158714A (zh) * 2010-02-11 2011-08-17 昆山锐芯微电子有限公司 基于拜尔域三基色格式的图像边缘增强方法及装置
CN102158714B (zh) * 2010-02-11 2013-04-17 昆山锐芯微电子有限公司 基于拜尔域三基色格式的图像边缘增强方法及装置
CN102170572A (zh) * 2010-06-22 2011-08-31 上海盈方微电子有限公司 一种新型边缘自适应cfa彩色图像插值方法
CN101930599B (zh) * 2010-08-24 2013-02-13 黄伟萍 一种医学图像增强方法及系统
CN101930599A (zh) * 2010-08-24 2010-12-29 黄伟萍 一种医学图像增强方法及系统
CN102254301A (zh) * 2011-07-22 2011-11-23 西安电子科技大学 基于边缘方向插值的cfa图像去马赛克方法
CN102413271B (zh) * 2011-11-21 2013-11-13 晶门科技(深圳)有限公司 消除假轮廓的图像处理方法及装置
CN102413271A (zh) * 2011-11-21 2012-04-11 苏州希图视鼎微电子有限公司 消除假轮廓的图像处理方法及装置
CN102682424A (zh) * 2012-01-07 2012-09-19 河南科技大学 基于边缘方向差值的图像放大处理方法
CN102682424B (zh) * 2012-01-07 2014-12-17 河南科技大学 基于边缘方向差值的图像放大处理方法
CN104346778A (zh) * 2013-07-30 2015-02-11 比亚迪股份有限公司 图像的边缘增强方法和装置以及数码摄像设备
CN104346778B (zh) * 2013-07-30 2017-08-22 比亚迪股份有限公司 图像的边缘增强方法和装置以及数码摄像设备
CN104680484B (zh) * 2013-11-26 2018-01-26 展讯通信(上海)有限公司 一种图像增强的方法及装置
CN104680484A (zh) * 2013-11-26 2015-06-03 展讯通信(上海)有限公司 一种图像增强的方法及装置
CN104394336A (zh) * 2014-12-01 2015-03-04 北京思比科微电子技术股份有限公司 基于cmos图像传感器的图像轮廓锐化方法及系统
CN104394336B (zh) * 2014-12-01 2017-10-27 北京思比科微电子技术股份有限公司 基于cmos图像传感器的图像轮廓锐化方法及系统
CN107517367A (zh) * 2017-07-28 2017-12-26 建荣半导体(深圳)有限公司 拜尔域图像插值方法、装置、图像处理芯片及存储装置
CN107517367B (zh) * 2017-07-28 2019-11-01 建荣半导体(深圳)有限公司 拜尔域图像插值方法、装置、图像处理芯片及存储装置
CN109981920A (zh) * 2017-12-28 2019-07-05 夏普株式会社 图像处理装置、图像处理程序、图像处理方法及图像形成装置
CN109981920B (zh) * 2017-12-28 2021-10-01 夏普株式会社 图像处理装置、图像处理程序、图像处理方法及图像形成装置
CN111340693A (zh) * 2019-08-29 2020-06-26 杭州海康慧影科技有限公司 一种Bayer图像的插值方法、装置及电子设备
CN111340693B (zh) * 2019-08-29 2023-12-01 杭州海康慧影科技有限公司 一种Bayer图像的插值方法、装置及电子设备
CN117057995A (zh) * 2023-08-23 2023-11-14 上海玄戒技术有限公司 图像处理方法、装置、芯片、电子设备及存储介质

Also Published As

Publication number Publication date
CN101452573B (zh) 2013-01-30
US8417030B2 (en) 2013-04-09
US20090141999A1 (en) 2009-06-04

Similar Documents

Publication Publication Date Title
CN101452573B (zh) 一种图像边缘增强方法
CN103238335B (zh) 图像处理装置和图像处理方法
CN101399996A (zh) 一种彩色滤镜阵列插值方法
US9832388B2 (en) Deinterleaving interleaved high dynamic range image by using YUV interpolation
US9147236B2 (en) Method and device for generating high dynamic range images
Martinkauppi et al. Behavior of skin color under varying illumination seen by different cameras at different color spaces
EP1416739B1 (en) Color interpolation for image sensors using a local linear regression method
CN103491280B (zh) 一种拜耳图像联合去噪插值方法
FI115942B (fi) Menetelmä kuvien interpoloimiseksi ja terävöittämiseksi
CN106845313A (zh) 一种二维码的二值化处理方法
US7855741B2 (en) Apparatus and method for processing image
US20070229684A1 (en) Color interpolation method for Bayer filter array images
CN105047179B (zh) 显示屏的电流限制方法及其装置
CN107331341A (zh) 一种子像素的渲染方法及系统
US20060125955A1 (en) Format conversion
US7468732B2 (en) Character display apparatus and character display method, control program for controlling the character display method and recording medium recording the control program
CN107767356A (zh) 一种图像处理方法和装置
CN104505052A (zh) 图像数据处理方法及装置
US10863148B2 (en) Tile-selection based deep demosaicing acceleration
CN101489142A (zh) 数字影像的彩色插补方法
US20240096293A1 (en) Multi-primary display mask-based dithering with low blooming sensitivity
US20230230553A1 (en) Method and apparatus for rendering color images
CN108462862B (zh) 对输入影像进行色彩空间转换的方法及装置
KR20240099428A (ko) 낮은 블루밍 민감도를 갖는 멀티-프라이머리 디스플레이 마스크 기반 디더링
CN113452967A (zh) 一种去除块效应的镜头阴影校正的方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EE01 Entry into force of recordation of patent licensing contract

Assignee: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

Assignor: BYD Co.,Ltd.

Contract fulfillment period: 2008.4.25 to 2015.8.16

Contract record no.: 2008440000068

Denomination of invention: Method and system for enhancing image edge

License type: General permission

Record date: 20080504

LIC Patent licence contract for exploitation submitted for record

Free format text: COMMON LICENSE; TIME LIMIT OF IMPLEMENTING CONTACT: 2008.4.25 TO 2015.8.16; CHANGE OF CONTRACT

Name of requester: SHENZHEN BIYADI MICRO-ELECTRONIC CO., LTD.

Effective date: 20080504

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191230

Address after: 518119 1 Yanan Road, Kwai Chung street, Dapeng New District, Shenzhen, Guangdong

Patentee after: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

Address before: 518119 BYD Industrial Park, Yanan Road, Kwai Chung Town, Longgang District, Guangdong, Shenzhen

Patentee before: BYD Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: BYD Semiconductor Co.,Ltd.