[go: up one dir, main page]

JP2001245155A - Method for edge correction of image data, and device thereof - Google Patents

Method for edge correction of image data, and device thereof

Info

Publication number
JP2001245155A
JP2001245155A JP2000049534A JP2000049534A JP2001245155A JP 2001245155 A JP2001245155 A JP 2001245155A JP 2000049534 A JP2000049534 A JP 2000049534A JP 2000049534 A JP2000049534 A JP 2000049534A JP 2001245155 A JP2001245155 A JP 2001245155A
Authority
JP
Japan
Prior art keywords
pixel
image data
value
pixel value
interest
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.)
Pending
Application number
JP2000049534A
Other languages
Japanese (ja)
Inventor
Takeshi Mogi
健 茂木
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2000049534A priority Critical patent/JP2001245155A/en
Publication of JP2001245155A publication Critical patent/JP2001245155A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To resolve the problems where even through deblocking filter and delinking filter can reduce block noise but cannot sufficiently correct shape of edge of image data. SOLUTION: In an method for edge correcting of image data, that method is used to output an inputted image data through compression and decompression, a noted pixel is determined as to whether it is an edge pixel, according to the change in the pixel value of peripheral pixel of the interest pixel, and if the noted pixel is an edge pixel, the direction is detected to minimize the change of pixel value of the peripheral pixel, the pixel value, which is calculated by the average of the pixel value in this direction and by the gradient of the pixel value of the location of the interest pixel, is determined as the new pixel value for the noted pixel.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は圧縮符号化により画
像データに生じたエッジの形状の歪みを補正する方法、
及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for correcting distortion of the shape of an edge generated in image data by compression encoding.
And its device.

【0002】[0002]

【従来の技術】JPEGやMPEG等のDCT(ブロック離散余弦
変換:DCT(Discrete Cosine Transform))符号化され
た画像では、高い圧縮率においてブロックノイズやモス
キートノイズが発生するという問題があり、これらの圧
縮歪みを低減するための技術として、例えば「ISO/IEC
JTC1/SC29/WG11 MPEG97/N1796: MPEG-4 Video Verifica
tion Model Version 8.0」に記述されているデブロッキ
ングフィルタやデリンギングフィルタがある。
2. Description of the Related Art An image encoded by DCT (Discrete Cosine Transform) such as JPEG or MPEG has a problem that block noise and mosquito noise are generated at a high compression ratio. Techniques for reducing compression distortion include, for example, "ISO / IEC
JTC1 / SC29 / WG11 MPEG97 / N1796: MPEG-4 Video Verifica
There is a deblocking filter and a deringing filter described in "Action Model Version 8.0".

【0003】[0003]

【発明が解決しようとする課題】然しながら、デブロッ
キングフィルタやデリンギングフィルタでは、ブロック
ノイズやモスキートノイズは低減されるものの、輪郭の
形状は十分に補正されないという問題点が依然残ってい
た。
However, in the deblocking filter and the deringing filter, although the block noise and the mosquito noise are reduced, there still remains a problem that the contour shape is not sufficiently corrected.

【0004】また、輪郭形状の補正効果をもつフィルタ
としてメディアンフィルタがあるが、エッジの方向性を
考慮していない点、更にはエッジ以外の画素にもフィル
タリングを行う点から、画像が平坦化されすぎる場合が
あるという問題点があった。
There is a median filter as a filter having an effect of correcting the contour shape. However, the image is flattened because the directionality of the edge is not taken into account and the filtering is performed on pixels other than the edge. There was a problem that sometimes it was too long.

【0005】更に、画像拡大に伴う輪郭形状の歪みの回
避を考慮した画像拡大方法はあるが、輪郭形状の補正そ
のものを目的とはしていなかった。
Further, there is an image enlarging method in consideration of avoiding the distortion of the contour shape accompanying the image enlargement, but it is not intended to correct the contour shape itself.

【0006】また、ボケの解消のために歪み低減後の画
像に高域強調を行うことが考えられるが、低減された歪
みまでも強調してしまうという問題があった。
It is conceivable to perform high-frequency enhancement on an image after distortion reduction in order to eliminate blur, but there is a problem in that even reduced distortion is enhanced.

【0007】[0007]

【課題を解決するための手段】請求項1の画像データの
エッジ補正方法に係る発明は、入力された画像データを
圧縮復元して出力する際に用いる画像データのエッジ補
正方法において、前記画像データの各画素のうち、着目
画素の近傍に位置する画素の画素値の変化に基づいて、
前記着目画素をエッジ画素と見做してよいか否かを判定
し、前記着目画素をエッジ画素と見做した場合、前記着
目画素の近傍に位置する画素の画素値の変化が最小とな
る方向を検出し、その方向の画素値の平均値、或いはこ
の平均値と着目画素位置の画素値の勾配から算出される
画素値を前記着目画素の新たな画素値とすることを特徴
とする。
According to a first aspect of the present invention, there is provided an image data edge correction method for compressing / decompressing and outputting input image data. Of the pixels of the above, based on the change in the pixel value of the pixel located near the pixel of interest,
It is determined whether or not the pixel of interest may be regarded as an edge pixel, and when the pixel of interest is regarded as an edge pixel, a direction in which a change in the pixel value of a pixel located near the pixel of interest is minimized Is detected, and an average value of the pixel values in that direction, or a pixel value calculated from the average value and a gradient of the pixel value at the pixel position of interest is set as a new pixel value of the pixel of interest.

【0008】請求項2の画像データのエッジ補正方法に
係る発明は、請求項1に記載の発明において、前記着目
画素の近傍に位置する画素とは、前記着目画素を含んで
K×K(K:自然数)の範囲内に属する画素であること
を特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, a pixel located in the vicinity of the pixel of interest is K × K (K : Natural number).

【0009】請求項3の画像データのエッジ補正方法に
係る発明は、請求項1、2のうちいずれかに記載の発明
において、前記着目画素の近傍に位置する画素の画素値
の変化を、前記着目画素を中心とした水平方向、垂直方
向、右斜め方向、及び左斜め方向の画素値差分に基づい
て求めることを特徴とする。
According to a third aspect of the present invention, there is provided the image data edge correction method according to any one of the first and second aspects, wherein a change in a pixel value of a pixel located in the vicinity of the pixel of interest is determined by It is obtained based on the pixel value differences in the horizontal direction, the vertical direction, the diagonally right direction, and the diagonally left direction centering on the target pixel.

【0010】請求項4の画像データのエッジ補正方法に
係る発明は、入力された画像データを圧縮復元して出力
する際に用いる画像データのエッジ補正方法において、
前記画像データのうち、着目画素を含んでK×K(K:
自然数)の範囲内に属する画素を対象として、水平方向
及び垂直方向の画素値差分を算出する第1処理と、該第
1処理の結果、水平方向及び垂直方向の画素値差分がし
きい値を越える場合、前記着目画素を含んでK×K
(K:自然数)の範囲内に属する画素を対象として、更
に右斜め方向、及び左斜め方向の画素値差分を算出する
第2処理と、前記水平方向、垂直方向、右斜め方向、及
び左斜め方向の画素値差分のうち、最小値を算出する第
3処理と、該第3処理の結果、最小値となる方向に配列
されたK(K:自然数)個の画素の画素値の平均値を算
出し、その方向の画素値の平均値を前記着目画素の新た
な画素値とする第4処理と、からなることを特徴とす
る。
According to a fourth aspect of the present invention, there is provided an image data edge correction method used for compressing and restoring input image data and outputting the compressed image data.
Of the image data, K × K (K:
A natural number), a pixel value difference in the horizontal direction and the vertical direction is calculated for the pixels belonging to the range, and as a result of the first process, the pixel value difference in the horizontal direction and the vertical direction sets a threshold value. If it exceeds, K × K including the pixel of interest is included.
(K: natural number) A second process of calculating a pixel value difference in the diagonal right and diagonal directions for the pixels belonging to the range of the natural number, and the horizontal direction, the vertical direction, the diagonal right direction, and the diagonal left direction A third process of calculating the minimum value among the pixel value differences in the directions, and an average value of the pixel values of K (K: natural number) pixels arranged in the direction of the minimum value as a result of the third process. And calculating the average value of the pixel values in that direction as a new pixel value of the pixel of interest.

【0011】請求項5の画像データのエッジ補正方法に
係る発明は、請求項1、4のうちいずれかに記載の発明
において、前記画像データは、静止画像データ、動画像
データの双方、或いはいずれか一方であることを特徴と
する。
According to a fifth aspect of the present invention, there is provided the image data edge correcting method according to any one of the first and fourth aspects, wherein the image data is either still image data, moving image data, or both. It is characterized by being one or the other.

【0012】請求項6の画像データのエッジ補正装置に
係る発明は、入力された画像データを圧縮復元して出力
する際に用いる画像データのエッジ補正装置において、
前記画像データの各画素のうち、着目画素の近傍に位置
する画素の画素値の変化に基づいて、前記着目画素をエ
ッジ画素と見做してよいか否かを判定し、前記着目画素
をエッジ画素と見做した場合、前記着目画素の近傍に位
置する画素の画素値の変化が最小となる方向を検出し、
その方向の画素値の平均値、或いはこの平均値と着目画
素位置の画素値の勾配から算出される画素値を前記着目
画素の新たな画素値とすることを特徴とする。
According to a sixth aspect of the present invention, there is provided an image data edge correcting apparatus for compressing and restoring input image data and outputting the compressed image data.
It is determined whether or not the target pixel may be regarded as an edge pixel based on a change in the pixel value of a pixel located in the vicinity of the target pixel among the pixels of the image data. When considered as a pixel, a direction in which a change in pixel value of a pixel located in the vicinity of the pixel of interest is minimized is detected,
An average value of pixel values in that direction, or a pixel value calculated from the average value and a gradient of a pixel value at a pixel position of interest is set as a new pixel value of the pixel of interest.

【0013】請求項7の画像データのエッジ補正装置に
係る発明は、請求項6に記載の発明において、前記着目
画素の近傍に位置する画素とは、前記着目画素を含んで
K×K(K:自然数)の範囲内に属する画素であること
を特徴とする。
According to a seventh aspect of the present invention, in the invention according to the sixth aspect, a pixel located in the vicinity of the pixel of interest includes K × K (K : Natural number).

【0014】請求項8の画像データのエッジ補正装置に
係る発明は、請求項6、7のうちいずれかに記載の発明
において、前記着目画素の近傍に位置する画素の画素値
の変化を、前記着目画素を中心とした水平方向、垂直方
向、右斜め方向、及び左斜め方向の画素値差分に基づい
て求めることを特徴とする。
According to an eighth aspect of the present invention, there is provided the image data edge correction apparatus according to any one of the sixth and seventh aspects, wherein the change in the pixel value of the pixel located in the vicinity of the pixel of interest is determined by It is obtained based on the pixel value differences in the horizontal direction, the vertical direction, the diagonally right direction, and the diagonally left direction centering on the target pixel.

【0015】請求項9の画像データのエッジ補正装置に
係る発明は、入力された画像データを圧縮復元して出力
する際に用いる画像データのエッジ補正装置において、
画像データを入力する画像データ入力部と、前記画像デ
ータのうち、着目画素を含んでK×K(K:自然数)の
範囲内に属する画素を対象として、水平方向、垂直方
向、斜め方向、及び左斜め方向の画素値差分を算出する
エッジ判定部と、該エッジ判定部で算出した画素値差分
のうち、最小値となる方向に配列されたK(K:自然
数)個の画素を選択する最小勾配方向画素選択部と、該
最小勾配方向画素選択部で選択された画素の画素値の平
均値、或いはこの平均値と着目画素位置の画素値の勾配
から算出される画素値を算出する新画素値算出部と、該
新画素値算出部で算出された画素値を前記着目画素の新
たな画素値として出力する画像データ出力部と、を具備
することを特徴とする。
According to a ninth aspect of the present invention, there is provided an image data edge correcting apparatus for compressing and restoring input image data and outputting the compressed image data.
An image data input unit for inputting image data, and a horizontal direction, a vertical direction, a diagonal direction, and a pixel range including a pixel of interest and belonging to a range of K × K (K: natural number). An edge determining unit that calculates a pixel value difference in the diagonal left direction; and a minimum (K: natural number) pixel that is arranged in the direction of the minimum value among the pixel value differences calculated by the edge determining unit. A gradient direction pixel selection unit and a new pixel that calculates an average value of pixel values of the pixels selected by the minimum gradient direction pixel selection unit, or a pixel value calculated from the average value and the gradient of the pixel value at the pixel position of interest The image processing apparatus further includes a value calculation unit, and an image data output unit that outputs the pixel value calculated by the new pixel value calculation unit as a new pixel value of the pixel of interest.

【0016】請求項10の画像データのエッジ補正装置
に係る発明は、請求項9に記載の発明において、前記画
像データは、静止画像データ、動画像データの双方、或
いはいずれか一方であることを特徴とする。
According to a tenth aspect of the present invention, there is provided the image data edge correcting apparatus according to the ninth aspect, wherein the image data is either still image data or moving image data, or any one of them. Features.

【0017】[0017]

【発明の実施の形態】本発明の好適な実施の形態を図面
に従って説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described with reference to the drawings.

【0018】図1は、本発明を実現するための画像デー
タのエッジ補正を行うための装置の概略構成図である。
FIG. 1 is a schematic configuration diagram of an apparatus for performing edge correction of image data for realizing the present invention.

【0019】図1に示すように、画像データ入力部10
1は、例えばJPEGデコーダ100から入力された全
画像データ(静止画像データ、動画像データ)を入力画
素値として、エッジ判定部103、及び切換部104を
介して最小勾配方向画素選択部105に入力する。エッ
ジ判定部103は、全画像データのうち、着目画素をエ
ッジ画素と見做してよいか否かを判定し、着目画素をエ
ッジ画素と見做してよいと判定された場合には、切換部
104を最小勾配方向画素選択部105側に切り換え
て、最小勾配方向画素選択部105側は水平方向、垂直
方向、右斜め方向、及び左斜め方向の入力画素値の変化
(勾配)が最小となる方向の画素を求め、最小となる方
向の画素値データを新画素値算出部106に送り、新画
素値算出部106はそれらの画素値の算術平均値、或い
はこの平均値と着目画素位置の画素値の勾配から新しい
画素値を算出する。画像データ出力部107は、新画素
値算出部106で処理した画像データを着目画素の新た
な画素値として置換し、出力画像として画像データ表示
部108へ出力する。
As shown in FIG. 1, an image data input unit 10
1 is input to the minimum gradient direction pixel selection unit 105 via the edge determination unit 103 and the switching unit 104, using, for example, all image data (still image data and moving image data) input from the JPEG decoder 100 as input pixel values. I do. The edge determination unit 103 determines whether or not the pixel of interest can be regarded as an edge pixel in all the image data. If it is determined that the pixel of interest can be regarded as an edge pixel, switching is performed. The unit 104 is switched to the minimum gradient direction pixel selection unit 105 side, and the minimum gradient direction pixel selection unit 105 side minimizes the change (gradient) of the input pixel value in the horizontal direction, the vertical direction, the diagonal right direction, and the diagonal left direction. The pixel value data in the minimum direction is sent to the new pixel value calculation unit 106, and the new pixel value calculation unit 106 calculates the arithmetic average value of those pixel values or the average value A new pixel value is calculated from the gradient of the pixel value. The image data output unit 107 replaces the image data processed by the new pixel value calculation unit 106 with a new pixel value of the pixel of interest, and outputs the image data to the image data display unit 108 as an output image.

【0020】ここで、図1に示した装置の処理ステップ
を図2のフローチャートに従って説明する。
Here, the processing steps of the apparatus shown in FIG. 1 will be described with reference to the flowchart of FIG.

【0021】図2において、着目画素位置(i,j)のう
ち着目画素垂直位置jを「0」とし(ステップ20
1)、また着目画素位置(i,j)のうち着目画素水平位
置iを「0」とする(ステップ2011)。
In FIG. 2, the vertical position j of the target pixel among the target pixel positions (i, j) is set to "0" (step 20).
1) Also, the horizontal position i of the target pixel among the target pixel positions (i, j) is set to “0” (step 2011).

【0022】次に、図3(a)に示すように、着目画素
位置(i,j)を中心とした水平方向の画素を対象とした
画素値差分d1、及び着目画素位置(i,j)を中心とし
た垂直方向の画素を対象とした画素値差分d2を算出す
る(ステップ202)。具体的には、 水平方向の画素値差分d1=|X(i-1,j)−X(i+1,
j)| 垂直方向の画素値差分d2=|X(i,j-1)−X(i,j+
1)| を算出する。
Next, as shown in FIG. 3 (a), a pixel value difference d1 for a pixel in the horizontal direction centering on the target pixel position (i, j) and a target pixel position (i, j) Then, a pixel value difference d2 is calculated for a pixel in the vertical direction with respect to (step 202). Specifically, the horizontal pixel value difference d1 = | X (i-1, j) -X (i + 1,
j) | Pixel value difference d2 = | X (i, j-1) -X (i, j +
1) Calculate |.

【0023】ステップ202で求めた、水平方向の画素
値差分d1と第1しきい値(Th1)との大小関係を比
較すると共に、垂直方向の画素値差分d2と第2しきい
値(Th2)との大小関係を比較する(ステップ20
3)。
The magnitude relationship between the horizontal pixel value difference d1 and the first threshold value (Th1) obtained in step 202 is compared, and the vertical pixel value difference d2 and the second threshold value (Th2) are compared. (Step 20)
3).

【0024】水平方向の画素値差分d1が第1しきい値
(Th1)より大きいか、又は垂直方向の画素値差分d
2(Th2)が第2しきい値(Th2)より大きい場合
にはステップ205に進んで、更に図3(b)に示すよ
うに、着目画素位置(i,j)を中心とした右斜め方向の
画素を対象とした画素値差分d3、及び着目画素位置
(i,j)を中心とした左斜め方向の画素を対象とした画
素値差分d4を算出する(ステップ205)。具体的に
は、 左斜め方向の画素値差分d3=|X(i-1,j-1)−X(i
+1,j+1)| 右斜め方向の画素値差分d4=|X(i+1,j-1)−X(i
-1,j+1)| を算出する。
The pixel value difference d1 in the horizontal direction is larger than the first threshold value (Th1), or the pixel value difference d1 in the vertical direction is
If 2 (Th2) is greater than the second threshold (Th2), the process proceeds to step 205, and further, as shown in FIG. A pixel value difference d3 for the pixel of interest and a pixel value difference d4 for the pixel in the diagonally left direction about the pixel position of interest (i, j) are calculated (step 205). Specifically, the pixel value difference d3 in the oblique left direction d3 = | X (i-1, j-1) -X (i
+ 1, j + 1) | Pixel value difference d4 = | X (i + 1, j-1) -X (i
-1, j + 1) |

【0025】ステップ202で算出した水平方向の画素
値差分d1、垂直方向の画素値差分d2、及びステップ
205で算出した右斜め方向の画素値差分d3、左斜め
方向の画素値差分d4のうち、最小値を算出する(ステ
ップ206)。
Of the horizontal pixel value difference d1 calculated in step 202, the vertical pixel value difference d2, the right diagonal pixel value difference d3 calculated in step 205, and the left diagonal pixel value difference d4, A minimum value is calculated (step 206).

【0026】ステップ206で求めた最小値に従って最
小勾配方向の画素値の平均値を求める(ステップ20
7)。エッジにおいて高域強調効果を得るために、前記
平均値と着目画素位置の画素値の勾配から新しい画素値
を算出する。
An average value of the pixel values in the direction of the minimum gradient is obtained according to the minimum value obtained in step 206 (step 20).
7). In order to obtain a high-frequency emphasis effect at the edge, a new pixel value is calculated from the average value and the gradient of the pixel value at the pixel position of interest.

【0027】具体的には、 if(d1 = dmin) Y(i,j) = (X(i-1,j) + X(i,j) + X(i+1,j) ) / 3 + L( X(i,j)-m1) …(1) else if(d2 = dmin) Y(i,j) = (X(i,j-1) + X(i,j) + X(i,j+1) )/3 + L(X( i,j)-m2) …(2) else if(d3 = dmin) Y(i,j) = (X(i-1,j-1) + X(i,j) + X(i+1,j+1) ) / 3 + L(X(i,j)-m3) …(3) else if(d4 = dmin) Y(i,j) = (X(i+1,j-1) + X(i,j) + X(i-1,j+1) ) / 3 + L(X(i,j)-m4) …(4) を求める。尚、 m1 = (X(i,j-1)+X(i,j+1))/2 …(5) m2 = (X(i-1,j)+X(i+1,j))/2 …(6) m3 = (X(i+1,j-1)+X(i-1,j+1))/2 …(7) m4 = (X(i-1,j-1)+X(i+1,j+1))/2 …(8) である。Specifically, if (d1 = dmin) Y (i, j) = (X (i-1, j) + X (i, j) + X (i + 1, j)) / 3+ L (X (i, j) -m1)… (1) else if (d2 = dmin) Y (i, j) = (X (i, j-1) + X (i, j) + X (i, j + 1)) / 3 + L (X (i, j) -m2)… (2) else if (d3 = dmin) Y (i, j) = (X (i-1, j-1) + X (i, j) + X (i + 1, j + 1)) / 3 + L (X (i, j) -m3)… (3) else if (d4 = dmin) Y (i, j) = ( X (i + 1, j-1) + X (i, j) + X (i-1, j + 1)) / 3 + L (X (i, j) -m4) ... (4) M1 = (X (i, j-1) + X (i, j + 1)) / 2… (5) m2 = (X (i-1, j) + X (i + 1, j)) / 2… (6) m3 = (X (i + 1, j-1) + X (i-1, j + 1)) / 2… (7) m4 = (X (i-1, j-1) + X (i + 1, j + 1)) / 2 (8).

【0028】ただし、dminはd1〜d4の最小値とし、また
Lは0以上の実数であり、Lが大きい程、高域強調度が
大きくなる。
However, dmin is a minimum value of d1 to d4, L is a real number equal to or greater than 0, and the greater the L, the greater the degree of high-frequency emphasis.

【0029】尚、前述の(1)〜(4)式において、エ
ッジの高域強調効果を得る必要がない場合には、L=0
とすればよい。
In the above equations (1) to (4), if it is not necessary to obtain a high-frequency edge emphasis effect, L = 0.
And it is sufficient.

【0030】一方、前述の(5)〜(8)式の他に以下
の式を適用しても、エッジの高域強調効果を得ることが
できる。このとき、 m1=m2=m3=m4= ( X(i-1,j-1)+X(i,j-1)+X(i+1,j-1)+ X(i
-1,j)+X(i,j)+X(i+1,j)+X(i-1,j+1)+X(i,j+1)+X(i+1,j+
1) )/9 によって、m1、m2、m3、及びm4を求める。
On the other hand, if the following equation is applied in addition to the above-described equations (5) to (8), the effect of enhancing the high frequency range of the edge can be obtained. At this time, m1 = m2 = m3 = m4 = (X (i-1, j-1) + X (i, j-1) + X (i + 1, j-1) + X (i
-1, j) + X (i, j) + X (i + 1, j) + X (i-1, j + 1) + X (i, j + 1) + X (i + 1, j +
1) Calculate m1, m2, m3, and m4 by) / 9.

【0031】着目画素位置(i,j)のiに対して画像
の幅全体に関して処理を行ったか否かを判断し(ステッ
プ208)、画像の幅全体に対して処理を行っていれ
ば、ステップ210に進み、一方画像の幅全体に対して
処理を行っていなければ、ステップ209に進んで、i
=i+1として処理を行った後,ステップ202に戻っ
て前述の処理を行う。
It is determined whether or not processing has been performed for the entire width of the image for i at the pixel position of interest (i, j) (step 208). If the process has not been performed on the entire width of the image, the process proceeds to step 209, where i
= I + 1, the process returns to step 202, and the above-described process is performed.

【0032】最後に、着目画素位置(i,j)のjに対
して画像の高さ全体に関して処理を行ったか否かを判断
し(ステップ210)、画像の高さ全体に対して処理を
行っていれば終了し、一方画像の高さ全体に対して処理
を行っていなければ、ステップ211に進んで、j=j
+1として処理を行った後,ステップ2011に戻って
前述の処理を行う。
Finally, it is determined whether or not processing has been performed on the entire height of the image for j at the pixel position of interest (i, j) (step 210), and processing has been performed on the entire height of the image. If so, the process ends. If the process has not been performed on the entire height of the image, the process proceeds to step 211, where j = j
After performing the process with +1, the process returns to step 2011 to perform the above-described process.

【0033】次に、図2の処理をした場合の入力画素値
と出力画素値の一例を図4、図5及び図6に示す。
Next, an example of the input pixel value and the output pixel value when the processing of FIG. 2 is performed is shown in FIGS.

【0034】図4(A)では、エッジ形状がギザギザ状
に歪んでいる場合、エッジ画素のレベルが不連続になっ
ている。この場合に、最小勾配方向はエッジの方向(左
斜め方向)となり、この方向の画素値の平均値で着目画
素の値を置き換えることにより、エッジ画素のレベルが
連続になり、エッジ形状が補正される。
In FIG. 4A, when the edge shape is distorted jaggedly, the level of the edge pixel is discontinuous. In this case, the minimum gradient direction is the edge direction (diagonal left direction). By replacing the value of the target pixel with the average value of the pixel values in this direction, the level of the edge pixel becomes continuous and the edge shape is corrected. You.

【0035】また、図4(B)では、着目画素位置の近
傍にエッジが存在しない場合には、エッジ以外の画素に
対してはもとの画素値のまま出力する。
In FIG. 4B, when no edge exists near the pixel position of interest, pixels other than the edge are output with the original pixel values.

【0036】図5(A)は図2のステップ207におい
てL=1として高域強調のための項を加算した場合であ
る。この場合、エッジ形状の補正に加えて、エッジの強
調が行われる。
FIG. 5A shows a case where a term for high-frequency emphasis is added at L = 1 in step 207 of FIG. In this case, the edge is emphasized in addition to the correction of the edge shape.

【0037】図5(B)では図4(B)と同じく、着目
画素位置の近傍にエッジが存在しない場合には、エッジ
以外の画素に対してはもとの画素値のまま出力する。
In FIG. 5B, as in FIG. 4B, when there is no edge near the position of the pixel of interest, the pixel other than the edge is output with the original pixel value.

【0038】図6は5×5の画素サイズに対してエッジ
強調効果を得る場合の例を示している。同図(A)のX
1、X2、及びX3を着目画素位置とした場合、図2に
示した処理を夫々の着目画素に対して行うことにより、
図6(B)のY1、Y2、及びY3の画素位置の画素値
は新画素値に置換され、エッジの強調が行われる。
FIG. 6 shows an example in which an edge enhancement effect is obtained for a 5.times.5 pixel size. X in FIG.
When 1, X2, and X3 are the target pixel positions, the processing shown in FIG. 2 is performed on each of the target pixels.
The pixel values at the pixel positions Y1, Y2, and Y3 in FIG. 6B are replaced with new pixel values, and edge enhancement is performed.

【0039】本発明は、画素サイズを3×3、5×5と
して説明をしたが、これには限られず、4、或いは6以
上の画素に対して処理する場合にも本発明を適用するこ
とが可能である。
Although the present invention has been described on the assumption that the pixel size is 3 × 3, 5 × 5, the present invention is not limited to this, and the present invention can be applied to the case where processing is performed on four or six or more pixels. Is possible.

【0040】[0040]

【発明の効果】以上の説明から明らかなように本発明に
よれば、一回のフィルタリングによる簡易な構成で、低
い演算量で、効果的にエッジの形状の歪みを補正するこ
とができる。
As is apparent from the above description, according to the present invention, it is possible to effectively correct the distortion of the edge shape with a simple configuration by one filtering and with a small amount of calculation.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を実現するための画像データのエッジ補
正を行うための装置の概略構成図である。
FIG. 1 is a schematic configuration diagram of an apparatus for performing edge correction of image data for realizing the present invention.

【図2】本発明におけるフローチャート図である。FIG. 2 is a flowchart in the present invention.

【図3】着目画素位置(i,j)の近傍の画素図である。FIG. 3 is a pixel diagram near a pixel position of interest (i, j).

【図4】エッジ補正の原理を示す模式図である。FIG. 4 is a schematic diagram illustrating the principle of edge correction.

【図5】3×3の画素サイズにおけるエッジ補正の原理
を示す模式図である。
FIG. 5 is a schematic diagram illustrating the principle of edge correction in a 3 × 3 pixel size.

【図6】5×5の画素サイズにおけるエッジ補正の原理
を示す模式図である。
FIG. 6 is a schematic diagram illustrating the principle of edge correction in a 5 × 5 pixel size.

【符号の説明】[Explanation of symbols]

100…JPEGデコーダ 101…画像データ入力部 102…入力画素値 103…エッジ判定部 104…切換部 105…最小勾配方向画素選択部 106…新画素値算出部 107…出力画素値 108…画像データ表示部 100 JPEG decoder 101 Image data input unit 102 Input pixel value 103 Edge determining unit 104 Switching unit 105 Minimum gradient direction pixel selection unit 106 New pixel value calculation unit 107 Output pixel value 108 Image data display unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 CC03 CE02 CE03 CE06 5C021 PA53 PA56 PA57 PA58 PA62 PA66 RA02 RA07 RB08 XB03 5C077 LL19 PP03 PP05 RR21 5C078 CA22 DA02 9A001 BZ04 EE04 HH25 HH27 HH28 HH30 HZ24  ────────────────────────────────────────────────── ─── Continued on the front page F term (reference) 5B057 CC03 CE02 CE03 CE06 5C021 PA53 PA56 PA57 PA58 PA62 PA66 RA02 RA07 RB08 XB03 5C077 LL19 PP03 PP05 RR21 5C078 CA22 DA02 9A001 BZ04 EE04 HH25 HH27 HH28 HH30 HZ24

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像データを圧縮復元して出
力する際に用いる画像データのエッジ補正方法におい
て、 前記画像データの各画素のうち、着目画素の近傍に位置
する画素の画素値の変化に基づいて、前記着目画素をエ
ッジ画素と見做してよいか否かを判定し、前記着目画素
をエッジ画素と見做した場合、前記着目画素の近傍に位
置する画素の画素値の変化が最小となる方向を検出し、
その方向の画素値の平均値、或いはこの平均値と着目画
素位置の画素値の勾配から算出される画素値を前記着目
画素の新たな画素値とすることを特徴とする画像データ
のエッジ補正方法。
1. An image data edge correction method used when compressing and decompressing input image data and outputting the image data, wherein a change in a pixel value of a pixel located near a pixel of interest among pixels of the image data It is determined whether or not the target pixel may be regarded as an edge pixel based on the above.If the target pixel is regarded as an edge pixel, a change in the pixel value of a pixel located in the vicinity of the target pixel is determined. Detect the minimum direction,
An edge correction method for image data, wherein an average value of pixel values in the direction or a pixel value calculated from the average value and a gradient of a pixel value at a pixel position of interest is set as a new pixel value of the pixel of interest. .
【請求項2】 前記着目画素の近傍に位置する画素と
は、前記着目画素を含んでK×K(K:自然数)の範囲
内に属する画素であることを特徴とする請求項1に記載
の画像データのエッジ補正方法。
2. The pixel according to claim 1, wherein the pixels located in the vicinity of the target pixel are pixels belonging to a range of K × K (K: natural number) including the target pixel. Edge correction method for image data.
【請求項3】 前記着目画素の近傍に位置する画素の画
素値の変化を、前記着目画素を中心とした水平方向、垂
直方向、右斜め方向、及び左斜め方向の画素値差分に基
づいて求めることを特徴とする請求項1、2のうちいず
れかに記載の画像データのエッジ補正方法。
3. A change in a pixel value of a pixel located in the vicinity of the target pixel is obtained based on pixel value differences in a horizontal direction, a vertical direction, a right diagonal direction, and a left diagonal direction centered on the target pixel. 3. The image data edge correction method according to claim 1, wherein:
【請求項4】 入力された画像データを圧縮復元して出
力する際に用いる画像データのエッジ補正方法におい
て、 前記画像データのうち、着目画素を含んでK×K(K:
自然数)の範囲内に属する画素を対象として、水平方向
及び垂直方向の画素値差分を算出する第1処理と、該第
1処理の結果、水平方向及び垂直方向の画素値差分がし
きい値を越える場合、前記着目画素を含んでK×K
(K:自然数)の範囲内に属する画素を対象として、更
に右斜め方向、及び左斜め方向の画素値差分を算出する
第2処理と、前記水平方向、垂直方向、右斜め方向、及
び左斜め方向の画素値差分のうち、最小値を算出する第
3処理と、該第3処理の結果、最小値となる方向に配列
されたK(K:自然数)個の画素の画素値の平均値を算
出し、その方向の画素値の平均値を前記着目画素の新た
な画素値とする第4処理と、からなることを特徴とする
画像データのエッジ補正方法。
4. An edge correction method for image data used when compressing and decompressing input image data and outputting the image data, wherein K × K (K:
A natural number), a pixel value difference in the horizontal direction and the vertical direction is calculated for the pixels belonging to the range, and as a result of the first process, the pixel value difference in the horizontal direction and the vertical direction sets a threshold value. If it exceeds, K × K including the pixel of interest is included.
(K: natural number) A second process of calculating a pixel value difference in the diagonal right and diagonal directions for the pixels belonging to the range of the natural number, and the horizontal direction, the vertical direction, the diagonal right direction, and the diagonal left direction A third process of calculating the minimum value among the pixel value differences in the directions, and an average value of the pixel values of K (K: natural number) pixels arranged in the direction of the minimum value as a result of the third process. Calculating the average value of the pixel values in the direction, and setting the average value of the pixel values in the direction as a new pixel value of the pixel of interest.
【請求項5】 前記画像データは、静止画像データ、動
画像データの双方、或いはいずれか一方であることを特
徴とする請求項1、4のうちいずれかに記載の画像デー
タのエッジ補正方法。
5. The image data edge correction method according to claim 1, wherein said image data is either still image data or moving image data or any one of them.
【請求項6】 入力された画像データを圧縮復元して出
力する際に用いる画像データのエッジ補正装置におい
て、 前記画像データの各画素のうち、着目画素の近傍に位置
する画素の画素値の変化に基づいて、前記着目画素をエ
ッジ画素と見做してよいか否かを判定し、前記着目画素
をエッジ画素と見做した場合、前記着目画素の近傍に位
置する画素の画素値の変化が最小となる方向を検出し、
その方向の画素値の平均値、或いはこの平均値と着目画
素位置の画素値の勾配から算出される画素値を前記着目
画素の新たな画素値とすることを特徴とする画像データ
のエッジ補正装置。
6. An image data edge correction apparatus used when compressing and decompressing input image data and outputting the image data, wherein a change in a pixel value of a pixel located near a pixel of interest among pixels of the image data It is determined whether or not the target pixel may be regarded as an edge pixel based on the above.If the target pixel is regarded as an edge pixel, a change in the pixel value of a pixel located in the vicinity of the target pixel is determined. Detect the minimum direction,
An edge correction apparatus for image data, wherein an average value of pixel values in the direction or a pixel value calculated from the average value and a gradient of a pixel value at a pixel position of interest is set as a new pixel value of the pixel of interest. .
【請求項7】 前記着目画素の近傍に位置する画素と
は、前記着目画素を含んでK×K(K:自然数)の範囲
内に属する画素であることを特徴とする請求項6に記載
の画像データのエッジ補正装置。
7. The pixel according to claim 6, wherein the pixels located in the vicinity of the target pixel are pixels belonging to a range of K × K (K: natural number) including the target pixel. Image data edge correction device.
【請求項8】 前記着目画素の近傍に位置する画素の画
素値の変化を、前記着目画素を中心とした水平方向、垂
直方向、右斜め方向、及び左斜め方向の画素値差分に基
づいて求めることを特徴とする請求項6、7のうちいず
れかに記載の画像データのエッジ補正装置。
8. A change in pixel value of a pixel located in the vicinity of the pixel of interest is determined based on pixel value differences in a horizontal direction, a vertical direction, a diagonal right direction, and a diagonal left direction centering on the pixel of interest. 8. The image data edge correction device according to claim 6, wherein:
【請求項9】 入力された画像データを圧縮復元して出
力する際に用いる画像データのエッジ補正装置におい
て、 画像データを入力する画像データ入力部と、 前記画像データのうち、着目画素を含んでK×K(K:
自然数)の範囲内に属する画素を対象として、水平方
向、垂直方向、斜め方向、及び左斜め方向の画素値差分
を算出するエッジ判定部と、 該エッジ判定部で算出した画素値差分のうち、最小値と
なる方向に配列されたK(K:自然数)個の画素を選択
する最小勾配方向画素選択部と、 該最小勾配方向画素選択部で選択された画素の画素値の
平均値、或いはこの平均値と着目画素位置の画素値の勾
配から算出される画素値を算出する新画素値算出部と、 該新画素値算出部で算出された画素値を前記着目画素の
新たな画素値として出力する画像データ出力部と、を具
備することを特徴とする画像データのエッジ補正装置。
9. An image data edge correction apparatus used when compressing and decompressing and outputting input image data, comprising: an image data input unit for inputting image data; K × K (K:
An edge determining unit that calculates a pixel value difference in a horizontal direction, a vertical direction, a diagonal direction, and a left diagonal direction with respect to a pixel belonging to a range of (natural number), and among the pixel value differences calculated by the edge determining unit, A minimum gradient direction pixel selector for selecting K (K: natural number) pixels arranged in the direction of the minimum value, and an average value of the pixel values of the pixels selected by the minimum gradient direction pixel selector, or A new pixel value calculator for calculating a pixel value calculated from the average value and a gradient of the pixel value at the pixel position of interest; and outputting the pixel value calculated by the new pixel value calculator as a new pixel value for the pixel of interest. And an image data output unit.
【請求項10】 前記画像データは、静止画像データ、
動画像データの双方、或いはいずれか一方であることを
特徴とする請求項9に記載の画像データのエッジ補正装
置。
10. The image data includes still image data,
The image data edge correction apparatus according to claim 9, wherein both or one of the moving image data is used.
JP2000049534A 1999-12-24 2000-02-25 Method for edge correction of image data, and device thereof Pending JP2001245155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000049534A JP2001245155A (en) 1999-12-24 2000-02-25 Method for edge correction of image data, and device thereof

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP11-365775 1999-12-24
JP36577599 1999-12-24
JP2000049534A JP2001245155A (en) 1999-12-24 2000-02-25 Method for edge correction of image data, and device thereof

Publications (1)

Publication Number Publication Date
JP2001245155A true JP2001245155A (en) 2001-09-07

Family

ID=26581700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000049534A Pending JP2001245155A (en) 1999-12-24 2000-02-25 Method for edge correction of image data, and device thereof

Country Status (1)

Country Link
JP (1) JP2001245155A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008076566A1 (en) * 2006-12-20 2008-06-26 Anchor Bay Technologies, Inc. Noise cancellation
US7710501B1 (en) 2004-07-12 2010-05-04 Anchor Bay Technologies, Inc. Time base correction and frame rate conversion
US7982798B2 (en) 2005-09-08 2011-07-19 Silicon Image, Inc. Edge detection
US8004606B2 (en) 2005-09-08 2011-08-23 Silicon Image, Inc. Original scan line detection
US8120703B2 (en) 2005-09-08 2012-02-21 Silicon Image/BSTZ Source-adaptive video deinterlacer
US8452117B2 (en) 2009-02-10 2013-05-28 Silicon Image, Inc. Block noise detection and filtering
US8559746B2 (en) 2008-09-04 2013-10-15 Silicon Image, Inc. System, method, and apparatus for smoothing of edges in images to remove irregularities
RU2499360C2 (en) * 2008-10-22 2013-11-20 Ниппон Телеграф Энд Телефон Корпорейшн Deblocking method, deblocking apparatus, deblocking programme and computer-readable recording medium recorded with said programme
CN117912404A (en) * 2024-03-15 2024-04-19 杭州海康威视数字技术股份有限公司 Boundary determination method of lamp bead effective pixel point applied to LED display screen

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7710501B1 (en) 2004-07-12 2010-05-04 Anchor Bay Technologies, Inc. Time base correction and frame rate conversion
US8446525B2 (en) 2005-09-08 2013-05-21 Silicon Image, Inc. Edge detection
US7982798B2 (en) 2005-09-08 2011-07-19 Silicon Image, Inc. Edge detection
US8004606B2 (en) 2005-09-08 2011-08-23 Silicon Image, Inc. Original scan line detection
US8120703B2 (en) 2005-09-08 2012-02-21 Silicon Image/BSTZ Source-adaptive video deinterlacer
US8086067B2 (en) 2006-12-20 2011-12-27 Silicon Image, Inc. Noise cancellation
WO2008076566A1 (en) * 2006-12-20 2008-06-26 Anchor Bay Technologies, Inc. Noise cancellation
US8559746B2 (en) 2008-09-04 2013-10-15 Silicon Image, Inc. System, method, and apparatus for smoothing of edges in images to remove irregularities
US9305337B2 (en) 2008-09-04 2016-04-05 Lattice Semiconductor Corporation System, method, and apparatus for smoothing of edges in images to remove irregularities
RU2499360C2 (en) * 2008-10-22 2013-11-20 Ниппон Телеграф Энд Телефон Корпорейшн Deblocking method, deblocking apparatus, deblocking programme and computer-readable recording medium recorded with said programme
US8452117B2 (en) 2009-02-10 2013-05-28 Silicon Image, Inc. Block noise detection and filtering
US8891897B2 (en) 2009-02-10 2014-11-18 Silicon Image, Inc. Block noise detection and filtering
CN117912404A (en) * 2024-03-15 2024-04-19 杭州海康威视数字技术股份有限公司 Boundary determination method of lamp bead effective pixel point applied to LED display screen

Similar Documents

Publication Publication Date Title
CN101288099B (en) Visual processing apparatus, display apparatus, visual processing method, program and integrated circuit
JP2920209B2 (en) Blocking Phenomenon Elimination Method by Video Coding
CA2616875A1 (en) Apparatus and method for adaptive 3d artifact reducing for encoded image signal
JP2003339048A (en) Adaptive post-filtering to reduce noise from highly compressed image / video coding
EP2197214A1 (en) Method and device for reducing block distortion
JPH1198505A (en) De-blocking filtering method for moving image at low speed transmission
JP2001522172A (en) Video data post-processing method and apparatus for reducing quantization effect and recording medium recording the same
CN109168065B (en) Video enhancement method, device, electronic device and storage medium
CN102238314A (en) Visual processing apparatus, visual processing method, program, recording medium, display, and integrated circuit
JPWO2002023915A1 (en) Noise reduction method, noise reduction device, medium, and program
KR20030069897A (en) Method and apparatus for improving picture sharpness
JPWO2002067589A1 (en) Image processing system, image processing method, and image processing program
JPH08251422A (en) Block distortion corrector and image signal expansion device
JP2001245155A (en) Method for edge correction of image data, and device thereof
KR20060083303A (en) Image Compensation Device and Compensation Method of Display Device
JP2008301336A (en) Image processing apparatus, image encoding apparatus, and image decoding apparatus
CN107155109A (en) The filtering method and device of a kind of frame of video
JP2001245179A (en) Method for reducing image data distortion and equipment of the same
JP4380498B2 (en) Block distortion reduction device
US20080013849A1 (en) Video Processor Comprising a Sharpness Enhancer
JP3176270B2 (en) Image decoding processing method
US7373010B2 (en) Method and device for post-processing digital images
JP2001346208A (en) Image signal decoding apparatus and method
JPH11298898A (en) Block distortion reduction circuit
CN106488079A (en) A kind of method and device of video denoising

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040405

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20051227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060612

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060620

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061017