Professional Documents
Culture Documents
Edge Sensing Demosaicing Using Adaptive Weighted Interpolation
Edge Sensing Demosaicing Using Adaptive Weighted Interpolation
Edge Sensing Demosaicing Using Adaptive Weighted Interpolation
ISSN: 1546-9239
2013 Science Publication
doi:10.3844/ajassp.2013.418.425 Published Online 10 (4) 2013 (http://www.thescipub.com/ajas.toc)
ABSTRACT
Demosaicing is a process of obtaining a full color image by interpolating the missing colors of an image
captured from a digital still and video cameras that use a single-sensor array.The edges are not handled
properly in the existing demosaicking methods. This study provides an effective demosaicing algorithm
applying an adaptive weighted-edge interpolation to handle green pixels. Due to the introduction of
adaptive threshold based on the high frequency information for the classification of edges and textures,
the interpolation of edges is performed excellently. Adaptive weights depending on spatial and spectral
correlation are assigned for interpolation on both edges and smooth region. A refinement scheme based
on enhanced effective color interpolation is used to improve the red and blue interpolation to obtain
better quality image. As compared with the latest demosaicing algorithms, the proposed algorithm
produces the best average demosaicing performance both objectively and subjectively. This approach
handles the edges in a proper way and reconstructs the color image with best peak signal to noise ratio.
Keywords: Demosaicing, Bayer CFA, Adaptive Weighted Interpolation
1. INTRODUCTION
Corresponding Author: Dev. R. Newlin, Department of Electronics and Communication Engineering, Faculty of Engineering,
Noorul Islam College of Engineering, Kumaracoil, India
Science Publications
418
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
i + m, j + n
m = 1
m = 0 2,
LH = + G i + m, j+ n + Bi + m, j + n
n + = 1 m = 0, 2
m = 1
4 R i + m, j + G i + m , j
m = 1
m = 0, 2
n = 2
R i + m , j+ n +
R i + m , j+ n +
i + m , j+ n
n = 1
n = 0 2,
L = + G i + m , j+ n + Bi + m, j + n
m + = 1 n = 0, 2
n = 1
4 R i, j + n + G i, j + n
n = 1
n = 0, 2
m = 2
(1)
(2)
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
e = max(LH | LV ,| LV | LH )
(1 Wshrap
if L < L
H
Wsharp
(
) ( G
(6)
i, j 1
+ Gi, j+1 2 + 2R i, j R i, j 2 R i, j+ 2 / 4
+
g i, jWsharp =
+ 2Bi, j Bi, j 2 Bi, j+ 2 / 4
G i, j1 + G i,1+ j / 2
if LH < LV
(1 Wsharp )
+ 2B B
B
/
4
i 2, j
i + 2, j
i, j
G i 1, j + G i +1, j / 2 +
+
g i, j = Wsharp
2Bi, j Bi 2, j Bi + 2, j / 4
(7)
G i, j1 + G i, j+1 2
if LV < LH
(1 Wsharp )
+ 2B B
B
/
4
i, j 2
i, j + 2
i, j
(4)
Color
+ Gi, +1j / 2 + 2R i, j R i 2, j R i + 2, j
if L < L
V
ifLH < LV
( R i, j G up ) ( R i, j G down )
=
( Bi, j G up ) ( Bi, j G down )
ifLV < LH
G
B
G
left ) ( i, j
right )
( i, j
i, j 1
(1 Wshrap
Wsharp
)
/ 4)
(R i, j G up )(R i, j G down )
=
(R i, j G up )(R i, j G down )
V
H
(R G )(R G ) if L < L
left
i, j
right
i, j
(
) ( G
(3)
(
) ( G
)
/ 4 )
420
i, j 1
+ G i +1, j / 2 + 2R i, j R i 2, j R i + 2, j
(8)
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
gi,j =
4R R R + R R / 8
i, j i2,j i+2,j i, j2 i,j+2
(10)
+C +G
)/ 2
Ci,j = Gi,j + (Ci,j1 G
i, j1
i,j+1
i, j+1
Fig. 1. Reference neighborhood of 33 red centered Bayer
mosaic image
(11)
( C
+ m=1
Ci, j = G
i, j
)
(12)
(9)
G
i +m, j+n
G i 1, j + G i +1, j / 2
+
g i, jWsharp =
+ 2R R
R
/
4
i 2, j
i + 2, j
i, j
G i, j1 + G i, j+1 / 2
(1 Wsharp )
+ 2R R
R
/
4
i, j 2
i, j+ 2
i, j
n=1
i +m, j+n
421
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
R i, j = G
i, j
R(i, j)
(16)
K
=G
B
i, j
i, j
B(i, j)
i 1, j =
i +1, j =
i, j1 =
i, j+1 =
1 + G i 2, j G i, j + R i 1, j R i +1, j
1 + G i + 2, j G i, j + R i 1, j R i +1, j
1 + G i, j 2 G i, j + R i, j1 R i, j+1
1 + G i, j+ 2 G i, j + R i, j1 R i, j+1
)
)
(13)
)
)
K
R(i + m, j+ n) = Gi + m, j+ n Ri + m, j+ n
K
B(i + m, j+ n) = Gi + m, j+ n Bi + m, j+ n
3. RESULTS
Simulation was carried out to evaluate the
performance of the proposed algorithm.
The 24 digital color images shown in Fig. 4 were
used to generate a set of testing images. The Color Peak
Signal-to-Noise Ratio (CPSNR) and Mean Square Error
(MSE) were used as measures to quantify the
performance of the demosaicing methods.
Table 1-3 and Fig. 5 shows the performance of
various algorithms like Bilinear Interpolation (BI)
(Sakamoto et al., 1998), Effective Color Interpolation
(ECI) (Pei and Tam, 2003), Enhanced ECI (EECI)
(Chang and Tam, 2004) and Demosaicing using
Variance of Color Difference (DVCD) (Chung and
Chan, 2006). The proposed algorithm provided the best
performance among the evaluated algorithm.
(14)
K
R (i 1, j)i 1, j + K R (i +1, j)i +1, j
+K
R (i, j 1)i 1, j + K R (i, j +1)i, j+1
K
R (i, j) =
i 1, j + i +1, j + i, j1 + i, j+1
(15)
422
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
Fig. 4. Set of 24 bit tested images (images are numbered from 1 to 24 in the order of left-to-right and top-to-bottom)
423
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
4. DISCUSSION
Different results prove the effectiveness of the study
developed. We note that the proposed algorithm is
developed based on the fact that the interpolation
direction for each missing green sample is critical to
the final demosaicing result.
Here due to the introduction of the adaptive
weights based on edge levels this demosaicking
achieves better performance.
5. CONCLUSION
In Edge Sensing Demosaicing using Adaptive
weighted interpolation, an adaptive threshold exploiting
the correlation among neighborhood pixels is employed
for efficient classification of sharp edges and smooth
region. To preserve the high frequency information, an
adaptive weighted interpolation scheme is proposed.
Also, to improve the performance of demosaicing
technique on smooth region, an adaptive weighted
interpolation scheme is employed. Simulation results
show that this proposed algorithm is able to produce a
424
AJAS
Dev R. Newlin and Elwin Chandra Monie / American Journal of Applied Sciences, 10 (4): 418-425, 2013
6. REFERENCES
Bayer, B.E., 1976. Color imaging array. U.S. Patent 3
971 065.
Chang, L. and Y.P. Tam, 2004. Effective use of spatial
and spectral correlations for color filter array
demosaicking. IEEE Trans. Consumer Elect., 50:
355-365. DOI: 10.1109/TCE.2004.1277885
Chung, K.H. and Y.H. Chan, 2006. Color demosaicing
using variance of color differences. IEEE Trans.
Image
Process.,
15:
2944-2955.
DOI:
10.1109/TIP.2006.877521
Gunturk, B.K., Y. Altunbasak and R. Mersereau, 2002.
Color plane interpolation using alternating
projections. IEEE Trans. Image Process., 11: 9971013. DOI: 10.1109/TIP.2002.801121
Science Publications
425
AJAS