Download - Academy Publisher
Download - Academy Publisher
Download - Academy Publisher
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
In this paper, we adopt two Sobel operators that<br />
correspond to difference in vertical and horizontal<br />
direction to calculate edge direction. For example, if we<br />
evaluate p5, each surrounding pixel is located as figure 3.<br />
Figure 3. Template for Sobel operator.<br />
For p5, Sobel operator is applied and obtain:<br />
gx () = ( p7+ 2* p8+ p9) − (1 p+ 2* p2+<br />
p3)<br />
(13)<br />
gy ( ) = ( p3+ 2* p6+ p9) − ( p1+ 2* p4+<br />
p7)<br />
(14)<br />
where g(x) and g(y) represent the difference between<br />
adjacent pixels in vertical and horizontal directions,<br />
respectively. The gradient direction angle is defined as:<br />
α= arctan( gy ( )/ gx ( )) α∈(-π/2, π/2) (15)<br />
It means that the pixels vary fastest along angle α . In<br />
order to predict pixel p5, the edge direction β, along<br />
which pixel value varies most smoothly, has to be found.<br />
According to the definition of gradient, when direction β<br />
satisfy β ⊥ α , p5 varies most smoothly. So p5 is<br />
calculated by the neighboring pixels along β. Here, a<br />
simple average value of two adjacent pixels is adopted as<br />
p5.<br />
Let’s look at an example. If α=0, it indicates g(x) >><br />
g(y), the values at vertical direction vary more fast than<br />
the horizontal direction. So we use the horizontal pixels to<br />
predict. The pseudo code for p5 prediction is<br />
If abs(α)≤(π/8)<br />
p5=(p4+p6)/2;<br />
else if abs(α) >(π/8 )&& abs(α)≤(3*π/8)<br />
if g(y)*g(x) ≥0<br />
p5=(p3+p7)/2;<br />
else<br />
p5=(p1+p9)/2;<br />
else<br />
p5=(p2+p8)/2;<br />
Using our technique, we can interpolate all pixels in<br />
the image. Parabola interpolation polynomial is used to<br />
interpolate 1-D signal with an adaptive error being<br />
considered, improving interpolation precision. Gradientbased<br />
method is adopted to get 2-D signal value.<br />
IV. EXPERIMENT RESULTS<br />
The performance of the proposed method is evaluated<br />
in this section. The test sequences are Hall, Mobile, News,<br />
Container, and Foreman. Each sequence is in qcif and<br />
magnification factor is 2x2. Four methods, Bilinear, cubic<br />
convolution, EASE, and the proposed method, are<br />
simulated and compared. Two metrics are adopted and<br />
they are average gradient and mean structural similarity<br />
(MSSIM) [8]. Average gradient is defined as:<br />
T<br />
M N<br />
1 Δ I +ΔI<br />
MN = = 2<br />
i 1 j 1<br />
2 2<br />
x y<br />
= ∑∑ (16)<br />
where Δ I = f ( i + 1, j) − f ( i, j)<br />
x<br />
Δ I = f(, i j+ 1) − f(, i j)<br />
y<br />
It represents the contrast of an image. The bigger the T<br />
is, the sharper the image is. In table I, the proposed<br />
method shows its superior to other methods. The bilinear<br />
method have the smallest average gradient, so it is the<br />
smoothest. It shows the interpolated image looks more<br />
blurry.<br />
TABLE I. average gradient results of the interpolated images by four<br />
algorithms<br />
Method<br />
Image<br />
Bilinear Cubic EASE Proposed<br />
Hall 4.4011 4.9118 4.8379 5.3374<br />
Mobile 8.5801 10.072 9.8354 11.0250<br />
0<br />
News 4.6758 5.2719 5.1695 5.5733<br />
Container 4.7412 5.4123 5.3276 5.8723<br />
Foreman 3.8324 4.1950 4.1317 4.3801<br />
TABLE II. MSSIM RESULTS OF THE INTERPOLATED IMAGES BY FOUR<br />
ALGORITHMS<br />
Method<br />
Image<br />
Bilinear Cubic EASE Proposed<br />
Hall 0.8805 0.8927 0.8749 0.8813<br />
Mobile 0.6061 0.6291 0.5399 0.5604<br />
News 0.8941 0.9062 0.8896 0.8988<br />
Container 0.8174 0.8357 0.8137 0.8270<br />
Foreman 0.9013 0.9084 0.9124 0.9157<br />
Mean structural similarity describes the difference<br />
between an image and its distorted version. The bigger the<br />
MSSIM is, the interpolated image is more closer to the<br />
original image. From table II, we can see the cubic<br />
method has the best performance. The proposed method is<br />
a little worse than it. EASE is the worst. Combining the<br />
two criteria, we can conclude that the proposed method<br />
has the best performance.<br />
From above tables, we can also conclude that if the<br />
image has more details, the average gradient is bigger;<br />
when interpolating, the MSSIM is smaller because the<br />
edge is smoothed, the Mobile shows this property.<br />
For objective point of view, we interpolate standard<br />
test image Lena. The local area of each interpolated image<br />
is shown in figure 4. Figure 4(a) is obviously blurry. The<br />
269