Fast edge-oriented image interpolation algorithm
First Claim
Patent Images
1. An image interpolating method, wherein low resolution pixels Yij of an image are zoomed to high resolution pixels Y2i,2j, comprising:
- receiving the low resolution pixels Yij;
determining a homogenous area and an edge area of the image based on pixel differences of the pixels Y2i,2j in comparing with a threshold, wherein three variables of
Δ
Y1=|Y2i,2j−
Y2i+2p,2j+2q|, p,q∈
{(0,1),(1,0)},
Δ
Y2=|Y2i+2,2j−
Y2i,2j+2|, and
Δ
Y3=|Y2i,2j−
Y2i+2,2j+2|are used to determine whether the homogenous area or the edge area by a condition set of;
if Δ
Y1<
the threshold thenthe pixel Y2i+p,2j+q is in the homogenous areaelsethe pixel Y2i+p,2j+q is in the edge area as one of edge pixels;
if Δ
Y2<
the threshold and Δ
Y3<
the threshold thenthe pixel Y2i+1,2j+1 is in the homogenous areaelse if Δ
Y2<
the threshold thenthe pixel Y2i+1,2j+1 is in the homogenous areaelse if Δ
Y3<
the threshold thenthe pixel Y2i+1,2j+1 is in the homogenous areaelsethe pixel Y2i+1,2j+1 is in the edge area as one of edge pixels;
interpolating the low resolution pixels belonging to the homogenous area into the high resolution pixels by a first interpolating algorithm; and
interpolating the low resolution pixels belonging to the edge area into the high resolution pixels by a second interpolating algorithm.
2 Assignments
0 Petitions
Accused Products
Abstract
The invention provides an image interpolating method, which comprises receiving the low resolution pixels Yij. Then, a homogenous area and an edge area of the image are determined according to pixel differences of the pixels Y2i,2j in comparing with a threshold. Then, the pixels Y2i,2j belonging to the homogenous area are interpolated by a first interpolating algorithm, while the pixels Y2i,2j belonging to the edge area are interpolated by a second interpolating algorithm.
17 Citations
12 Claims
-
1. An image interpolating method, wherein low resolution pixels Yij of an image are zoomed to high resolution pixels Y2i,2j, comprising:
-
receiving the low resolution pixels Yij; determining a homogenous area and an edge area of the image based on pixel differences of the pixels Y2i,2j in comparing with a threshold, wherein three variables of
Δ
Y1=|Y2i,2j−
Y2i+2p,2j+2q|, p,q∈
{(0,1),(1,0)},
Δ
Y2=|Y2i+2,2j−
Y2i,2j+2|, and
Δ
Y3=|Y2i,2j−
Y2i+2,2j+2|are used to determine whether the homogenous area or the edge area by a condition set of; if Δ
Y1<
the threshold thenthe pixel Y2i+p,2j+q is in the homogenous area else the pixel Y2i+p,2j+q is in the edge area as one of edge pixels; if Δ
Y2<
the threshold and Δ
Y3<
the threshold thenthe pixel Y2i+1,2j+1 is in the homogenous area else if Δ
Y2<
the threshold thenthe pixel Y2i+1,2j+1 is in the homogenous area else if Δ
Y3<
the threshold thenthe pixel Y2i+1,2j+1 is in the homogenous area else the pixel Y2i+1,2j+1 is in the edge area as one of edge pixels; interpolating the low resolution pixels belonging to the homogenous area into the high resolution pixels by a first interpolating algorithm; and interpolating the low resolution pixels belonging to the edge area into the high resolution pixels by a second interpolating algorithm. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
diff2=|Y2i−
1,2j−
1−
Y2i+1,2j+1|,
diff3=|Y2i,2j−
1−
Y2i,2j+1|, and
diff4=|Y2i+1,2j−
1−
Y2i−
1,2j+1|,wherein the differences including one of the edge pixels is skipped.
-
-
9. The image interpolating method of claim 6, wherein the pixel Yij is obtained by calculating (Y2i−
- 1,2j+Y2i+1,2j)/2 at a direction with the minimum pixel difference.
-
10. The image interpolating algorithm of claim 1, further comprising interpolating the edge pixels according to a second algorithm as follows:
-
calculating a plurality of pixel differences of
diff1=|Y2i−
1,2j−
Y2i+1,2j|,
diff2=|Y2i−
1,2j−
1−
Y2i+1,2j+1|,
diff3=|Y2i,2j−
1−
Y2i,2j+1|, and
diff4=|Y2i+1,2j−
1−
Y2i−
1,2j+1|,wherein the differences including one of the edge pixels is skipped; finding a minimum of the pixel differences; and interpolating the pixel Y2i, 2j=(Y2i−
1,2j+Y2i+1,2j)/2 at a direction with the minimum pixel difference.
-
-
11. An image interpolating method, wherein low resolution pixels Yi,j of an image are zoomed to high resolution pixels Y2i,2j, the method comprising:
-
receiving the low resolution pixels Yi,j; determining a homogenous area and an edge area of the image based on pixel differences of the pixels Y2i,2j in comparing with a threshold; interpolating the low resolution pixels belonging to the homogenous area into the high resolution pixels by a first interpolating algorithm; and interpolating the low resolution pixels belonging to the edge area into the high resolution pixels by a second interpolating algorithm, wherein the first interpolating algorithm includes; when the pixels Y2i,2j in the homogenous area, the pixels Y2i,2j are interpolated by a linear interpolation algorithm.
-
-
12. An image interpolating algorithm for an image, wherein low resolution pixels Yi, j of the image are zoomed to high resolution pixels Y2i,2j, wherein three variables of Δ
- Y1=|Y2i,2j−
Y2i+2p,2j+2q|, Δ
Y2=|Y2i+2,2j−
Y2i,2j+2|, and Δ
Y3=|Y2i,2j−
Y2i+2,2j+2|, p,q∈
{(0,1), (1,0)} are used, the image interpolating algorithm comprising;determining at least one of edge pixel and interpolating the pixels Y2i, 2j if the pixel to be interpolated is not the edge pixel by a first algorithm as follows; if Δ
Y1<
a threshold then
Y2i+p,2j+q=(Y2i,2j+Y2i+2p,2j+2q)/2
else
Y2i+p,2j+q are the edge pixelif Δ
Y2<
the threshold and Δ
Y3<
the threshold then
Δ
Ymin=min{Δ
Y2,Δ
Y3}if Δ
Ymin=Δ
Y2
Y2i+1,2j+1=(Y2i+2,2j+Y2i,2j+2)/2
else
Y2i+1,2j+1=(Y2i,2j+Y2i+2,2j+2)/2else if Δ
Y2<
the threshold then
Y2i+1,2j+1=(Y2i+2,2j+Y2i,2j+2)/2else if Δ
Y3<
the threshold then
Y2i+1,2j+1=(Y2i,2j+Y2i+2,2j+2)/2
else
Y2i+1,2j+1 is one of the edge pixel.
- Y1=|Y2i,2j−
Specification