JPH07162857A - Picture quality adjusting method - Google Patents

Picture quality adjusting method

Info

Publication number
JPH07162857A
JPH07162857A JP31005593A JP31005593A JPH07162857A JP H07162857 A JPH07162857 A JP H07162857A JP 31005593 A JP31005593 A JP 31005593A JP 31005593 A JP31005593 A JP 31005593A JP H07162857 A JPH07162857 A JP H07162857A
Authority
JP
Japan
Prior art keywords
pixel
processing
pixels
block
image signal
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.)
Withdrawn
Application number
JP31005593A
Other languages
Japanese (ja)
Inventor
Takashi Nishi
敬 西
Toshihisa Nakai
敏久 中井
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP31005593A priority Critical patent/JPH07162857A/en
Publication of JPH07162857A publication Critical patent/JPH07162857A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To improve picture quality by eliminating the distortion of an image generated due to the compression of a digitized image signal at every picture element block. CONSTITUTION:The image signal is stored in step S210. The fact that a processing target picture element is the picture element of the corner of the picture element block is identified based on a stored image signal in step S220. When the processing target picture element is the picture element of the corner of the picture element block, it is detected whether or not the picture element is the one with prominent distortion in step S230. The picture element value of the picture element is smoothed for the picture element value of an adjacent picture element only when the processing target picture element is the picture element with prominent distortion in step S240.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル化した画像
信号を圧縮することによって生じる画像の歪を除去し、
画質改善をする画質調整方法に関するものである。
BACKGROUND OF THE INVENTION The present invention eliminates image distortion caused by compressing a digitized image signal,
The present invention relates to an image quality adjustment method for improving image quality.

【0002】[0002]

【従来の技術】従来、このような分野の技術としては、
例えば、次のような文献に記載されるものがあった。 文献1;電子情報通信学会秋季全国大会論文D−60、
(1989)滝嶋康弘 和田正裕 著“低ビットレート
動画像符号化のポストフィルタに関する検討” 図2は、文献1に示されるような従来の画質調整方法を
示すフローチャートであり、ディジタル化した原画像の
信号をN×M(N,Mは正の整数)個の画素で構成され
る画素ブロック毎に離散コサイン変換(以下、DCT変
換という)を用いて圧縮し、逆離散コサイン変換(以
下、IDCT変換という)を用いて復元して形成された
画像信号から、圧縮により生じた歪を除去して再生用画
像信号を生成する画質調整方法の構成を示している。図
2の画質調整方法は、画素毎の画像信号を記憶装置に記
憶するステップS110と、その入力された画素の画像
信号が、画素ブロックのブロック境界付近の画素の画像
信号かどうかを判断するステップS120と、そのブロ
ック境界付近の画素の画像信号が、画像の輪郭(エッ
ジ)かどうかを検出するステップS130とを順に行
う。図2の画質調整方法は、続いて、エッジ以外でブロ
ック境界付近の画素の画像信号に対してフィルタリング
を行うステップS140と、上記一連のステップS11
0〜S140の処理対象画素を次の画素に変更するステ
ップS150と、画像信号が終了したかどうかを判定す
るステップS160とで、構成されている。
2. Description of the Related Art Conventionally, as a technique in such a field,
For example, some documents were described in the following documents. Reference 1: IEICE Fall National Conference Paper D-60,
(1989) Yasuhiro Takishima Masahiro Wada “Study on Post Filter for Low Bit Rate Video Coding” FIG. 2 is a flowchart showing a conventional image quality adjustment method as shown in Reference 1, which is a digitized original image. Signal is compressed for each pixel block composed of N × M (N and M are positive integers) pixels using discrete cosine transform (hereinafter referred to as DCT transform), and inverse discrete cosine transform (hereinafter referred to as IDCT) is performed. The image quality adjustment method for removing the distortion caused by the compression from the image signal formed by decompression using the conversion) and generating the image signal for reproduction is shown. In the image quality adjustment method of FIG. 2, a step S110 of storing an image signal for each pixel in a storage device and a step of determining whether or not the input image signal of a pixel is an image signal of a pixel near a block boundary of a pixel block. S120 and step S130 of detecting whether the image signal of the pixel near the block boundary is the contour (edge) of the image are sequentially performed. In the image quality adjustment method of FIG. 2, subsequently, a step S140 of filtering an image signal of a pixel near a block boundary other than an edge, and the series of steps S11.
It is composed of step S150 of changing the pixel to be processed from 0 to S140 to the next pixel, and step S160 of judging whether or not the image signal has ended.

【0003】次に、図2の画質調整方法の概略の流れを
説明する。図2の画質調整方法は、以下の(1)から
(6)の処理を順に施し、再生画像の歪を除去して画質
改善を行っている。 (1) 画像信号記憶処理 ステップS110において、DCT変換及びIDCT変
換を経て生成された各画素毎の画像信号が、例えば、記
憶装置に順次記憶される。 (2) 画素識別処理 ステップS120において、記憶装置から読出された画
素の画像信号が、例えばその記憶装置の格納アドレスに
基づき、画素ブロックの境界の画素かどうか識別され
る。その結果、その画像信号が画素ブロックの境界の画
素でない場合、ステップS150により、次の画素の処
理に処理が移り、画素ブロックの境界の画素である場
合、処理はステップS130へ進む。 (3) エッジ検出処理 画素ブロックの境界の画素であると識別された画素の画
像信号は、ステップS130で、エッジに対応した画素
か否かが検出される。エッジに対応した画素であると判
定されたとき、ステップS150が実施され、再び画素
識別処理のステップS120に戻り、次の画素に処理が
移る。一方、対象画素がエッジでない場合に、処理はス
テップS140のフィルタ処理へ進む。 (4) フィルタ処理 ブロック境界の画素であり、かつエッジでない画素の画
素値のみ、ステップS140のフィルタ処理が施されて
平滑化される。ステップS140の処理の終了後、処理
はステップS150へ進む。 (5) 画素変更処理 ステップS140のフィルタ処理の終了後、ステップS
150が実施され、処理は再び画素識別処理のステップ
S120に戻り、次の画素に処理が移る。 (6) 画像信号終了判定処理 ステップS160において、画像信号の入力が終了した
かどうかの判定が、実施される。終了していないと判定
した場合は、処理がステップS120に戻り、終了した
と判定した場合は、ステップS170で一連の処理を終
了する。
Next, a schematic flow of the image quality adjusting method of FIG. 2 will be described. In the image quality adjustment method of FIG. 2, the following processes (1) to (6) are performed in order to remove the distortion of the reproduced image and improve the image quality. (1) Image signal storage processing In step S110, the image signal for each pixel generated through the DCT conversion and the IDCT conversion is sequentially stored in, for example, a storage device. (2) Pixel Discrimination Processing In step S120, it is discriminated whether the image signal of the pixel read from the storage device is a pixel at the boundary of the pixel block, for example, based on the storage address of the storage device. As a result, if the image signal is not the pixel at the boundary of the pixel block, the process proceeds to processing of the next pixel in step S150. If it is the pixel at the boundary of the pixel block, the process proceeds to step S130. (3) Edge Detection Processing In step S130, it is detected whether or not the image signal of the pixel identified as the pixel on the boundary of the pixel block corresponds to the edge. When it is determined that the pixel corresponds to the edge, step S150 is performed, the process returns to step S120 of the pixel identification process again, and the process proceeds to the next pixel. On the other hand, if the target pixel is not an edge, the process proceeds to the filtering process of step S140. (4) Filtering process Only the pixel values of pixels that are on the block boundary and that are not edges are subjected to the filtering process of step S140 and smoothed. After the processing of step S140 ends, the processing proceeds to step S150. (5) Pixel change processing After the filter processing of step S140 is completed, step S140
150 is performed, the process returns to step S120 of the pixel identification process again, and the process proceeds to the next pixel. (6) Image signal end determination processing In step S160, it is determined whether the input of the image signal is completed. If it is determined that it has not ended, the process returns to step S120, and if it is determined that it has ended, a series of processes ends in step S170.

【0004】図3は、従来のエッジ検出処理に用いる画
素とフィルタ処理位置とを示す図であり、図4は、従来
のエッジ検出処理を示すフローチャートである。図3で
は、処理される画像の一部が拡大されている。図3にお
いて、実線或いは破線で描かれた丸印は、処理される画
像の各画素を表し、縦に描かれた実線は画素ブロックの
境界を示している。また、実線の丸印B,Cは、ブロッ
ク境界部分の画素を表し、破線の丸印A,Dは、ブロッ
ク境界部分の画素B,Cと共にそのブロック境界がエッ
ジがどうかを検出するために用いられる画素を表してい
る。次に、図3及び図4を参照しつつ、上述(3)のエ
ッジ検出処理の詳細を説明する。 (3−1) 抽出処理 例えば、画素識別処理のステップS120の結果、処理
対象の画素Bがブロックの境界の画素であると識別され
た場合、図4におけるステップS131で、図3の位置
関係を有する画素A,C,Dが抽出されると共にブロッ
ク境界を挟むそれら4画素A,B,C,Dの各画素値
a,b,c,dが、それぞれ求められる。 (3−2) 差分計算処理 ステップS132の計算処理が実施され、各画素値a,
b,c,dから、以下の式の計算により、差分絶対値
α1〜α3が求められる。
FIG. 3 is a diagram showing pixels and filter processing positions used in the conventional edge detection processing, and FIG. 4 is a flowchart showing the conventional edge detection processing. In FIG. 3, a part of the image to be processed is magnified. In FIG. 3, circles drawn by solid lines or broken lines represent pixels of the image to be processed, and solid lines drawn vertically indicate boundaries of pixel blocks. Further, solid line circle marks B and C represent pixels in the block boundary portion, and broken line circle marks A and D are used together with pixels B and C in the block boundary portion to detect whether the block boundary is an edge. Represents the pixels that can be displayed. Next, the details of the above-mentioned edge detection processing (3) will be described with reference to FIGS. 3 and 4. (3-1) Extraction process For example, when the pixel B to be processed is identified as a pixel on the boundary of the block as a result of step S120 of the pixel identification process, the positional relationship of FIG. 3 is determined in step S131 of FIG. The pixels A, C, and D that it has are extracted, and at the same time, the pixel values a, b, c, and d of those four pixels A, B, C, and D that sandwich the block boundary are obtained. (3-2) Difference calculation process The calculation process of step S132 is performed, and each pixel value a,
The absolute difference values α1 to α3 are obtained from b, c, and d by calculating the following equation.

【0005】 ここで、例えば、|b−c|は、画素値bと画素値cの
差の絶対値を表している。 (3−3) 比較処理 画素Bがエッジかどうかを検出するために、ステップS
132の処理で求められた各差分絶対値α1〜α3は、
ステップS133〜135で、設定された各閾値TH1
またはTH2と比較される。即ち、ステップS133で
差分絶対値α1は、閾値TH1と比較され、ステップS
134,135で、各差分絶対値α2及びα3が、閾値
TH2と比較される。ただし、閾値TH1<TH2であ
る。ステップS133においてα1<TH1のとき、処
理はステップS134に移る。ステップS134におい
て、差分絶対値α2及び閾値TH2が比較され、α2≦
TH2のとき、処理はステップS135に進む。ステッ
プS135において、差分絶対値α3及び閾値TH2が
比較され、α3≦TH2のときには、画素Bはエッジで
はないと判定される。この判定により、処理がステップ
S140のフィルタ処理に進み、以降の処理が行われ
る。ステップS133〜135の比較処理のうち1つで
も満さない時は、画素Bはエッジであると判断され、処
理はステップS250へ進む。図3は、縦方向のブロッ
ク境界の場合を示しているが、横方向のブロック境界の
場合も同様の処理が施されて画素Bがエッジかどうかが
検出される。
[0005] Here, for example, | bc | represents the absolute value of the difference between the pixel value b and the pixel value c. (3-3) Comparison processing In order to detect whether the pixel B is an edge, step S
The absolute difference values α1 to α3 obtained by the process of 132 are
Each of the thresholds TH1 set in steps S133 to S135
Or compared to TH2. That is, in step S133, the absolute difference value α1 is compared with the threshold value TH1,
At 134 and 135, each absolute difference value α2 and α3 is compared to a threshold TH2. However, the threshold value TH1 <TH2. When α1 <TH1 in step S133, the process proceeds to step S134. In step S134, the absolute difference value α2 and the threshold value TH2 are compared, and α2 ≦
If TH2, the process proceeds to step S135. In step S135, the absolute difference value α3 and the threshold value TH2 are compared, and when α3 ≦ TH2, it is determined that the pixel B is not an edge. With this determination, the process proceeds to the filtering process of step S140, and the subsequent processes are performed. If even one of the comparison processes in steps S133 to 135 is not satisfied, it is determined that pixel B is an edge, and the process proceeds to step S250. Although FIG. 3 shows the case of the block boundary in the vertical direction, the same processing is performed also in the case of the block boundary in the horizontal direction to detect whether the pixel B is an edge.

【0006】図5は、従来のフィルタ処理を示すフロー
チャートであり、ステップS240の処理について、図
3及び図5を用いて説明する。ステップS131の抽出
処理で、抽出された境界を挟む画素B,Cの画素値b,
cが、ステップS141で読出され、ステップS142
でそれらの画素値b,cは、フィルタリングで平滑化さ
れる。以上の処理を施すことによって、ディジタル化し
た画像信号を圧縮することによって生じる再生画像の歪
が、除去される。
FIG. 5 is a flowchart showing a conventional filter process, and the process of step S240 will be described with reference to FIGS. 3 and 5. In the extraction processing of step S131, the pixel values b of the pixels B and C that sandwich the extracted boundary,
c is read in step S141, and step S142
Then, those pixel values b and c are smoothed by filtering. By performing the above processing, the distortion of the reproduced image generated by compressing the digitized image signal is removed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
画質調整方法においては、次のような課題があった。画
素ブロックの角に目立つ視覚的に不快なブロック歪は、
ブロック境界の交わる部分における4ブロックの角のう
ちの1つの画素値が、他の角の画素値より大きい場合
に、とくに目立つ。しかし、従来の画質調整方法では、
画素ブロックの角を意識して処理をしていないので、十
分な画質改善を行うことが困難であった。本発明は前記
従来技術が持っていた課題として、画素ブロックの角に
対する処理が適切でなく、再生画像中に視覚的に不快な
歪が残る点について解決をした画質調整方法を提供する
ものである。
However, the conventional image quality adjusting method has the following problems. The visually unpleasant block distortion that stands out at the corners of the pixel block is
This is particularly noticeable when the pixel value of one of the corners of the four blocks at the intersection of block boundaries is larger than the pixel values of the other corners. However, with the conventional image quality adjustment method,
It is difficult to sufficiently improve the image quality because the processing is not performed with consideration for the corners of the pixel block. SUMMARY OF THE INVENTION The present invention provides an image quality adjusting method that solves the problem that the above-mentioned conventional technique has with respect to the point that the processing for the corners of the pixel block is not appropriate and that visually unpleasant distortion remains in the reproduced image. .

【0008】[0008]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、原画像からの画像信号をN×M個の
画素で構成される画素ブロック毎のDCT変換を用いて
圧縮しIDCT変換を用いて復元した画像信号に対し、
該圧縮により生じた歪を除去して再生用画像信号を生成
する画質調整方法において、次のような方法を講じてい
る。即ち、第1の発明は、処理対象画素が前記各ブロッ
ク中の角の画素であることを識別する画素識別処理と、
前記角の画素が前記歪の目立つ画素であることを検出す
る検出処理と、前記歪の目立つ画素の画素値のみ該画素
近傍の画素値に対する平滑化を行うフィルタ処理とを順
に施す。第2の発明は、第1の発明における前記検出処
理を、前記処理対象画素を含む画素ブロック及びその画
素ブロックに隣接する画素ブロックのブロック境界が縦
横に交わった部分にそれぞれ接する4個の角の画素から
2個の画素を抽出する2画素抽出処理と、前記2個の画
素の各画素値の差の絶対値を計算する差分計算処理と、
前記2画素抽出処理及び差分計算処理を繰り返し行い、
前記2個の画素のすべての組合わせに対して画素値の差
の絶対値をそれぞれ計算する繰り返し処理と、前記繰り
返し処理の各結果と設定閾値とをそれぞれ比較する比較
処理と、前記比較処理の結果に基づき前記処理対象画素
が前記歪の目立つ画素であるか否かを判定する判定処理
とを、施す処理にしている。
In order to solve the above-mentioned problems, the first invention compresses an image signal from an original image using DCT conversion for each pixel block composed of N × M pixels. Then, for the image signal restored using the IDCT transform,
The following method is taken in the image quality adjusting method for removing the distortion caused by the compression and generating the image signal for reproduction. That is, the first invention is a pixel identification process for identifying that a pixel to be processed is a corner pixel in each block,
A detection process for detecting that the pixel at the corner is the pixel with the conspicuous distortion, and a filtering process for smoothing only the pixel value of the pixel with the conspicuous distortion to the pixel values in the vicinity of the pixel are sequentially performed. A second aspect of the present invention is the detection process according to the first aspect of the present invention, in which four corners are respectively in contact with a pixel block including the pixel to be processed and a portion where block boundaries of pixel blocks adjacent to the pixel block intersect vertically and horizontally. A two-pixel extraction process for extracting two pixels from the pixel, and a difference calculation process for calculating an absolute value of a difference between pixel values of the two pixels,
Repeating the two pixel extraction process and the difference calculation process,
Iterative processing for calculating the absolute value of the difference between pixel values for all combinations of the two pixels, comparison processing for comparing each result of the repeated processing with a set threshold value, and comparison processing for the comparison processing The determination process of determining whether or not the pixel to be processed is the pixel in which the distortion is conspicuous based on the result is performed.

【0009】[0009]

【作用】第1の発明によれば、以上のように画質調整方
法を構成したので、画素識別処理により、処理対象画素
が各ブロック中の角の画素であることを識別され、検出
処理によってその角の画素が歪の目立つ画素であること
が検出される。その検出結果に基づき、処理対象画素が
歪の目立つ画素である場合に、その画素値は、フィルタ
処理で、近傍画素の画素値に対して平滑化される。第2
の発明によれば、第1の発明の検出処理において、2画
素抽出処理、差分計算処理、繰り返し処理を行い、処理
対象画素を含む画素ブロック及びその画素ブロックに隣
接する画素ブロックのブロック境界が縦横に交わった部
分にそれぞれ接する4個の角の画素の値から、その4個
の画素のうちの2個の画素のすべての組合わせに対する
画素値の差の絶対値が、それぞれ計算される。それらの
結果と設定閾値とが、比較処理でそれぞれ比較される。
比較処理の結果を受けて、処理対象画素が歪の目立つ画
素であるか否かが、判定処理により判定される。従っ
て、前記課題を解決できるのである。
According to the first aspect of the invention, since the image quality adjusting method is configured as described above, it is identified by the pixel identification process that the pixel to be processed is a pixel at a corner in each block, and the detection process It is detected that the pixel at the corner is a pixel in which distortion is noticeable. Based on the detection result, when the pixel to be processed is a pixel in which distortion is conspicuous, the pixel value is smoothed with respect to the pixel values of neighboring pixels by the filtering process. Second
According to the invention, in the detection process of the first invention, the 2-pixel extraction process, the difference calculation process, and the iterative process are performed, and the block boundaries of the pixel block including the pixel to be processed and the pixel blocks adjacent to the pixel block are aligned vertically and horizontally. From the values of the four corner pixels that are respectively in contact with the intersecting portion, the absolute values of the pixel value differences for all combinations of two of the four pixels are calculated. The results and the set threshold value are compared in the comparison process.
Based on the result of the comparison processing, it is determined by the determination processing whether or not the processing target pixel is a pixel in which distortion is conspicuous. Therefore, the above problem can be solved.

【0010】[0010]

【実施例】図1は、本発明の実施例の画質調整方法を示
すフローチャートである。この画質調整方法は、ディジ
タル化した原画像信号をN×M個の画素で構成される画
素ブロック毎にDCT変換を用いて圧縮し、IDCT変
換を用いて復元して形成された画像信号から、圧縮によ
り生じた歪を除去して再生用画像信号を生成する画質調
整方法である。図1のフローチャートは、例えば、演算
部、制御部及びレジスタ部を有したCPU(中央処理装
置)と記憶装置を用いて画質改善を実施するものであ
り、次の各ステップS210〜270が実施される。図
1の画質調整方法においては、入力された画素毎の画像
信号を記憶装置に記憶するステップS210と、入力さ
れた画像信号が、画素ブロックの角の画素の画像信号か
どうかを識別するステップS220と、画素ブロックの
角の画素の画像信号から、該画素が歪の目立つ角の画素
かどうかを検出するステップS230とが、順に実施さ
れる。図1の画質調整方法では、さらに、ステップS2
40でステップS230の結果を受けて歪の目立つ角の
画素の画像信号に対してフィルタリングを行う。また、
ステップS250では、上記一連のステップS210〜
S240の処理対象画素を次の画素に変更する。ステッ
プS260は、画像信号が終了したかどうかを判定を行
い、ステップS270において、一連の動作を終了す
る。
FIG. 1 is a flow chart showing an image quality adjusting method according to an embodiment of the present invention. In this image quality adjustment method, a digitized original image signal is compressed for each pixel block composed of N × M pixels by using DCT conversion, and is restored by using IDCT conversion. This is an image quality adjustment method for removing a distortion caused by compression to generate a reproduction image signal. The flowchart of FIG. 1 is for performing image quality improvement using, for example, a CPU (central processing unit) having a calculation unit, a control unit, and a register unit, and a storage device, and the following steps S210 to 270 are performed. It In the image quality adjustment method of FIG. 1, step S210 of storing the input image signal for each pixel in a storage device, and step S220 of identifying whether the input image signal is an image signal of a pixel at a corner of a pixel block. And step S230 of detecting from the image signal of the corner pixel of the pixel block whether or not the pixel is a corner pixel in which distortion is conspicuous. In the image quality adjustment method of FIG. 1, step S2 is further performed.
In step 40, in response to the result of step S230, filtering is performed on the image signal of the pixel of the corner where the distortion is noticeable. Also,
In step S250, the series of steps S210 to S210 described above.
The pixel to be processed in S240 is changed to the next pixel. A step S260 decides whether or not the image signal is finished, and a series of operations is finished in a step S270.

【0011】次に、図1の画質調整方法の概略の流れを
説明する。図1の画質調整方法は、以下の(7)から
(12)の流れで、再生画像の歪を除去して画質改善を
行っている。 (7) 画像信号記憶処理 ステップS210において、DCT変換及びIDCT変
換を経て生成された各画素毎の画像信号が、例えば記憶
装置に順次記憶される。 (8) 画素識別処理 ステップS220において、記憶装置から読み出された
処理対象画素の画像信号が、画素ブロックの角の画素の
画像信号かどうかが識別される。この識別は、例えば、
記憶装置の格納アドレスに基づいて判断される。その結
果、処理対象画素が画素ブロックの角の画素でない場
合、処理はステップS250に進み、次の画素に一連の
処理が移る。処理対象画素が画素ブロックの角の画素で
ある場合、処理はステップS230へ進む。 (9) 検出処理 処理対象画素が、画素ブロックの角の画素であると識別
された場合、ステップS230によって、その画素が圧
縮により生じた歪の目立つ画素であるかどうかが検出さ
れる。検出の結果、歪の目立つ画素ではないと判定され
たとき、処理は、ステップS250を介して再び画素識
別処理のステップS220に戻り、次の画素に処理が移
る。一方、処理対象画素が歪の目立つ画素と判定された
とき、ステップS240へ処理は進む。 (10) フィルタ処理 ステップS240では、角の画素のうち歪の目立つ画素
の画素値のみフィルタリングされ、該画素近傍の画素値
に対する平滑化が行われる。 (11) 画素変更処理 ステップS240のフィルタ処理の終了後、ステップS
250が実施され、処理は再び画素識別処理のステップ
S220に戻り、次の画素に処理が移る。 (12) 画像信号終了判定処理 ステップS260において、画像信号の入力が終了した
かどうかの判定が、実施される。終了していないと判定
された場合は、画素識別処理のステップS220に戻
り、終了したと判定された場合は、ステップS270で
一連の処理を終了する。
Next, the general flow of the image quality adjusting method of FIG. 1 will be described. In the image quality adjustment method of FIG. 1, the distortion of the reproduced image is removed and the image quality is improved by the following flow from (7) to (12). (7) Image signal storage process In step S210, the image signal for each pixel generated through the DCT conversion and the IDCT conversion is sequentially stored in, for example, a storage device. (8) Pixel Identification Processing In step S220, it is identified whether the image signal of the processing target pixel read from the storage device is the image signal of the pixel at the corner of the pixel block. This identification is, for example,
It is determined based on the storage address of the storage device. As a result, when the pixel to be processed is not the pixel at the corner of the pixel block, the process proceeds to step S250, and the series of processes moves to the next pixel. If the pixel to be processed is a pixel at the corner of the pixel block, the process proceeds to step S230. (9) Detection Processing When the processing target pixel is identified as a pixel at the corner of the pixel block, it is detected in step S230 whether or not the pixel is a pixel in which distortion caused by compression is conspicuous. When it is determined as a result of the detection that the pixel is not a pixel in which distortion is conspicuous, the process returns to step S220 of the pixel identification process again via step S250, and the process proceeds to the next pixel. On the other hand, when it is determined that the pixel to be processed is a pixel in which distortion is conspicuous, the process proceeds to step S240. (10) Filtering process In step S240, only the pixel values of the pixels in which the distortion is conspicuous among the corner pixels are filtered, and the pixel values in the vicinity of the pixels are smoothed. (11) Pixel change processing After the filter processing of step S240 is completed, step S240
250 is performed, the process returns to step S220 of the pixel identification process again, and the process proceeds to the next pixel. (12) Image signal end determination processing In step S260, it is determined whether or not the input of the image signal is completed. If it is determined that the processing has not ended, the process returns to step S220 of the pixel identification processing, and if it is determined that the processing has ended, a series of processing ends in step S270.

【0012】図6は、本実施例の検出処理に用る画素を
示す図であり、図7は、本実施例の検出処理を示すフロ
ーチャートである。ここで、図6では、処理される画像
の一部が簡略拡大されている。この図6において、実線
或いは破線で描かれた丸印は、処理される画像の各画素
を表し、縦横に描かれた実線は、画素ブロックの境界を
示している。実線の丸印は、ブロック境界部分の画素を
表し、破線の丸印は、その他の画素を表している。次
に、図6及び図7を参照しつつ、上述(9)の検出処理
の詳細を説明する。 (9−1) 2画素抽出処理、差分計算処理、及び繰り
返し処理 画素識別処理のステップS220の結果、画素Aがブロ
ックの角の画素であると識別された場合、図7における
ステップS231で、図6のように縦横に描かれた実線
が交わる点に最も近い3画素B,C,Dが、求められ
る。次に、ステップS232が実施される。ステップS
232は、4画素A,B,C,Dから、2画素の画素値
を順次抽出し、その抽出された画素値に対して式の差
分計算が、演算部で繰り返されて行われる。 α1=|a−b|/MAX α2=|a−c|/MAX α3=|a−d|/MAX α4=|b−c|/MAX … α5=|b−d|/MAX α6=|c−d|/MAX 但し、a,b,c,d ;各画素A,B,C,Dの画素
値 MAX ;画素値a,b,c,dの内の最大の値 ここで、例えば、|a−b|は、画素値aと画素値bの
差の絶対値を表している。 (9−2) 比較処理及び判定処理 ステップS232で求められた式の結果の各差分絶対
値α1〜α6は、ステップS233〜237で、例えば
CPUによって設定閾値THとそれぞれ比較される。比
較の結果で、処理対象画素が歪みの目立つ角の画素かど
うかが判定される。
FIG. 6 is a diagram showing pixels used in the detection processing of this embodiment, and FIG. 7 is a flow chart showing the detection processing of this embodiment. Here, in FIG. 6, a part of the image to be processed is simplified and enlarged. In FIG. 6, circles drawn by solid lines or broken lines represent each pixel of the image to be processed, and solid lines drawn vertically and horizontally indicate boundaries of pixel blocks. The solid circles represent the pixels at the block boundary, and the dashed circles represent the other pixels. Next, the details of the above-described detection processing (9) will be described with reference to FIGS. 6 and 7. (9-1) Two-Pixel Extraction Process, Difference Calculation Process, and Iterative Process When the pixel A is identified as the pixel at the corner of the block as a result of step S220 of the pixel identification process, the step S231 in FIG. The three pixels B, C, and D closest to the point where the solid lines drawn vertically and horizontally like 6 intersect are obtained. Next, step S232 is implemented. Step S
232 sequentially extracts the pixel values of two pixels from the four pixels A, B, C, and D, and the calculation unit repeatedly performs the difference calculation of the formula for the extracted pixel values. α1 = | a−b | / MAX α2 = | a−c | / MAX α3 = | a−d | / MAX α4 = | b−c | / MAX ... α5 = | b−d | / MAX α6 = | c -D | / MAX where a, b, c, d; pixel value of each pixel A, B, C, D MAX: maximum value of pixel values a, b, c, d Here, for example, | a−b | represents the absolute value of the difference between the pixel value a and the pixel value b. (9-2) Comparison processing and determination processing Each difference absolute value α1 to α6 of the result of the formula obtained in step S232 is compared with the set threshold value TH by the CPU in steps S233 to 237, respectively. As a result of the comparison, it is determined whether or not the pixel to be processed is a pixel having a corner where distortion is conspicuous.

【0013】即ち、ステップS233において、差分絶
対値α1と設定閾値THとの比較が行われ、α1≧TH
のときには、ステップS234に進む。ステップS23
4で差分絶対値α2と設定閾値THとの比較が行われ、
α2≧THのときには、ステップS235に進む。ステ
ップS235で差分絶対値α3と設定閾値THとの比較
が行われ、α3≧THのときにはステップS236に進
む。ステップS236で差分絶対値α4と設定閾値TH
との比較が行われ、α4<THのときにはステップS2
37に進み、そのステップS237で差分絶対値α5と
設定閾値THとの比較が行われ、α5<THのときには
ステップS238に進む。最後に、ステップS238で
差分絶対値α6と設定閾値THとの比較が行われ、α6
<THのときには、画素Aは、他の画素に比べて歪みの
目立つ角であると判定され、処理はステップS240に
進んで以降の処理が施される。ステップS233〜S2
38のうち、1つでも条件を満たさないときには、処理
はステップS250に進み、次の画素が一連の処理の対
象画素となる。ここで、ステップS230における処理
を具体的な数値を用いて説明する。例えば、各画素A,
B,C,Dの画素a,b,c,dを、それぞれa=10
0、b=30、c=25、d=20とし、閾値THをT
H=0.3とすると、 α1=|100−30|/100=0.7 ≧0.3 α2=|100−25|/100=0.75≧0.3 α3=|100−20|/100=0.8 ≧0.3 α4=| 30−25|/100=0.05<0.3 α5=| 30−20|/100=0.1 <0.3 α6=| 25−20|/100=0.05<0.3 となり、画素Aの画素値(100)が、他の画素値(3
0,25,20)に比較して大きくなる。
That is, in step S233, the absolute difference value α1 is compared with the set threshold value TH, and α1 ≧ TH.
In case of, it progresses to step S234. Step S23
In step 4, the absolute difference value α2 is compared with the set threshold value TH,
When α2 ≧ TH, the process proceeds to step S235. In step S235, the difference absolute value α3 is compared with the set threshold value TH, and when α3 ≧ TH, the process proceeds to step S236. In step S236, the absolute difference value α4 and the set threshold value TH are set.
Is compared, and when α4 <TH, step S2
37, the absolute difference value α5 is compared with the set threshold value TH in step S237, and when α5 <TH, the process proceeds to step S238. Finally, in step S238, the absolute difference value α6 is compared with the set threshold value TH, and α6
When <TH, it is determined that the pixel A has an angle where distortion is more noticeable than other pixels, and the process proceeds to step S240, and the subsequent processes are performed. Steps S233-S2
If even one of 38 does not satisfy the condition, the process proceeds to step S250, and the next pixel becomes the target pixel of the series of processes. Here, the process in step S230 will be described using specific numerical values. For example, each pixel A,
The pixels a, b, c and d of B, C and D are respectively a = 10.
0, b = 30, c = 25, d = 20, and the threshold TH is T
When H = 0.3, α1 = | 100-30 | /100=0.7 ≧ 0.3 α2 = | 100-25 | /100=0.75≧0.3 α3 = | 100-20 | / 100 = 0.8 ≧ 0.3 α4 = | 30-25 | /100=0.05 <0.3 α5 = | 30-20 | /100=0.1 <0.3 α6 = | 25-20 | /100=0.05<0.3, and the pixel value (100) of the pixel A is equal to another pixel value (3
0, 25, 20).

【0014】次に、ステップS240における処理の詳
細を、図を用いて説明する。図8は、本実施例のフィル
タ処理位置を示す図であり、画像の一部を簡略化して拡
大したものである。図8において、実線或いは破線で描
かれた丸印は、処理される画像の各画素を表し、縦横に
描かれた実線は、画素ブロックの境界を示している。実
線の丸印はブロック境界部分の画素を表し、破線の丸印
は、その他の画素を表している。図9は、本実施例のフ
ィルタ処理を示すフローチャートである。検出処理のス
テップS230において、角が目立つと判定された場
合、図9のステップS241で、図8中に縦横に描かれ
た実線の交点に最も近い4画素をA(画素値a)、B
(画素値b)、C(画素値c)、D(画素値d)とす
る。図8では、画素Aの画素値aが、他の画素の画素値
b,c,dに対して大きく値が異なるとステップS23
0で判定された場合を示している。このような場合に
は、画素Aの含まれる画素ブロックには、図8に太い実
線て表したような角ができる。そこで、図9中のステッ
プS242において、画素Aの含まれる画素ブロック中
の画素Aの周辺画素(例えば、図8中の斜線で示される
画素)の画素値と画素Aの画素値aとに対してフィルタ
処理が、実施される。これにより、画素値aが他の画素
値b,c,dと大きく異なることによって生じていた図
8の太い実線の角が、丸みを帯びる。フィルタ処理は、
例えば、画素Aの周辺画素(画素ブロック外も含む)を
用いて平均値を求め、その値を画素Aの画素値とする。
以上のように、本実施例では、画素ブロックの境界部分
に発生したDCT変換に起因する歪を、画素ブロックの
角の画素の画素値から判定し、判定結果に基づいてその
画素のみ周辺画素に対するフィルタリングを施してい
る。そのため、従来技術では、不可能であった歪を除去
し、画質を改善することができる。
Next, details of the processing in step S240 will be described with reference to the drawings. FIG. 8 is a diagram showing the filter processing position of this embodiment, which is a simplified and enlarged part of the image. In FIG. 8, circles drawn by solid lines or broken lines represent pixels of the image to be processed, and solid lines drawn vertically and horizontally represent boundaries of pixel blocks. Solid line circles represent pixels at the block boundary, and dashed circles represent other pixels. FIG. 9 is a flowchart showing the filter processing of this embodiment. If it is determined in step S230 of the detection process that the corners are conspicuous, in step S241 in FIG. 9, the four pixels closest to the intersection of the solid lines drawn vertically and horizontally in FIG. 8 are A (pixel value a) and B.
(Pixel value b), C (pixel value c), and D (pixel value d). In FIG. 8, if the pixel value a of the pixel A is significantly different from the pixel values b, c, d of the other pixels, step S23.
The case where the judgment is 0 is shown. In such a case, the pixel block including the pixel A has a corner represented by a thick solid line in FIG. Therefore, in step S242 in FIG. 9, with respect to the pixel value of the peripheral pixel of the pixel A (for example, the pixel indicated by diagonal lines in FIG. 8) in the pixel block including the pixel A and the pixel value a of the pixel A, Filter processing is performed. As a result, the corners of the thick solid line in FIG. 8 caused by the pixel value a being significantly different from the other pixel values b, c, d are rounded. The filtering process is
For example, the average value is obtained using the peripheral pixels of the pixel A (including outside the pixel block), and the average value is set as the pixel value of the pixel A.
As described above, in the present embodiment, the distortion caused by the DCT transformation that occurs in the boundary portion of the pixel block is determined from the pixel values of the pixels at the corners of the pixel block, and only that pixel is compared with the peripheral pixels based on the determination result. Has been filtered. Therefore, it is possible to improve the image quality by removing the distortion that was impossible with the conventional technology.

【0015】なお、本発明は、上記実施例に限定されず
種々の変形が可能である。その変形例としては、例えば
次のようなものがある。 (i) フィルタ処理は、周辺画素の画素値と画素値aと
の平均値を求め、その平均値を画素値aに代入している
が、例えば、周辺画素の各画素値に重み付けをし、その
重み付けされた各画素値と画素値aとの平均値を求める
方法も考えられる。 (ii) 検出処理における閾値THは、0.3に限定さ
れず、用途に応じて変更が可能である。 (iii) 各画素ブロックの1つの角に、1つの画素(例
えば画素A)を設定して、目立つ角か或いは目立たない
角かを求めてフィルタ処理を行っているが、1つの処理
対象角に対して複数の画素を設定して、目立つ角か或い
は目立たない角かを求めてフィルタ処理を行ってもよ
い。これにより、一層の画質改善が可能となる。
The present invention is not limited to the above embodiment, and various modifications can be made. The following are examples of such modifications. (i) In the filtering process, the average value of the pixel values of the peripheral pixels and the pixel value a is obtained, and the average value is substituted for the pixel value a. For example, each pixel value of the peripheral pixels is weighted, A method of obtaining the average value of the weighted pixel values and the pixel value a is also conceivable. (ii) The threshold TH in the detection process is not limited to 0.3 and can be changed according to the application. (iii) One pixel (for example, pixel A) is set in one corner of each pixel block, and filtering is performed by determining whether the corner is a prominent corner or an inconspicuous corner. On the other hand, a plurality of pixels may be set, and a filtering process may be performed by determining whether a corner is conspicuous or an inconspicuous corner. As a result, it is possible to further improve the image quality.

【0016】[0016]

【発明の効果】以上詳細に説明したように、第1の発明
によれば、画素ブロックの境界部分に発生したDCT変
換に起因する歪を、画素ブロックの角の画素が目立つ角
か否かの検出処理で検出し、その検出結果に基づいて歪
の目立つ角の画素のみフィルタ処理をして歪を補正す
る。そのため、従来技術では不可能であった画素ブロッ
クの角にできる歪を除去し、画質を改善することができ
る。第2の発明によれば、検出処理を、前記処理対象画
素を含む画素ブロック及びその画素ブロックに隣接する
画素ブロックのブロック境界が縦横に交わった部分にそ
れぞれ接する4個の角の画素から2個の画素を抽出する
2画素抽出処理と、その2個の画素の各画素値の差の絶
対値を計算する差分計算処理とを、繰り返し行い、2個
の画素のすべての組合わせに対して画素値の差の絶対値
をそれぞれ計算し、その各結果と設定閾値とをそれぞれ
比較している。そのため、処理対象画素が歪の目立つ角
の画素であるか否かの検出を、例えば、予め定められた
結果の組合わせから、容易にしかも確実に行うことがで
きる。
As described above in detail, according to the first aspect of the present invention, the distortion caused by the DCT conversion generated at the boundary portion of the pixel block is determined whether the pixel at the corner of the pixel block is a conspicuous corner or not. Detection is performed by the detection processing, and based on the detection result, only the pixels at the corners where distortion is noticeable are filtered to correct the distortion. Therefore, it is possible to improve the image quality by removing the distortion that is generated at the corners of the pixel block, which is not possible with the conventional technology. According to the second aspect of the present invention, the detection process is performed by selecting two pixels from the four corner pixels that respectively contact the pixel block including the pixel to be processed and the pixel blocks adjacent to the pixel block where the block boundaries intersect in the vertical and horizontal directions. 2 pixel extraction processing for extracting the pixels and the difference calculation processing for calculating the absolute value of the difference between the pixel values of the 2 pixels are repeated, and the pixel is calculated for all combinations of the 2 pixels. The absolute value of the difference between the values is calculated, and each result is compared with the set threshold value. Therefore, it is possible to easily and surely detect whether or not the pixel to be processed is a pixel having a corner with conspicuous distortion, for example, from a combination of predetermined results.

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

【図1】本発明の実施例の画質調整方法を示すフローチ
ャートである。
FIG. 1 is a flowchart showing an image quality adjusting method according to an embodiment of the present invention.

【図2】従来の画質調整方法を示すフローチャートであ
る。
FIG. 2 is a flowchart showing a conventional image quality adjustment method.

【図3】従来のエッジ検出処理に用いる画素とフィルタ
処理位置を示す図である。
FIG. 3 is a diagram showing pixels used in conventional edge detection processing and filter processing positions.

【図4】従来のエッジ検出処理を示すフローチャートで
ある。
FIG. 4 is a flowchart showing a conventional edge detection process.

【図5】従来のフィルタ処理を示すフローチャートであ
る。
FIG. 5 is a flowchart showing conventional filter processing.

【図6】本実施例の検出処理に用いる画素を示す図であ
る。
FIG. 6 is a diagram showing pixels used in the detection processing of the present embodiment.

【図7】本実施例の検出処理を示すフローチャートであ
る。
FIG. 7 is a flowchart showing a detection process of this embodiment.

【図8】本実施例のフィルタ処理位置を示す図である。FIG. 8 is a diagram showing filter processing positions of the present embodiment.

【図9】本実施例のフィルタ処理を示すフローチャート
である。
FIG. 9 is a flowchart showing a filter process of this embodiment.

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

S220 画素識別処理を施すステップ S230 検出処理を施すステップ S231〜S232 2画素抽出処理、差分計算処理及
び繰り返し処理を施すステップ S233〜S238 比較処理及び判定処理を施すステ
ップ S240 フィルタ処理を施すステップ
S220 Performing pixel identification processing S230 Performing detection processing S231 to S232 Performing two-pixel extraction processing, difference calculation processing and repetition processing S233 to S238 Performing comparison processing and determination processing S240 Performing filter processing

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 原画像からの画像信号をN×M(N,M
は正の整数)個の画素で構成される画素ブロック毎の離
散コサイン変換を用いて圧縮し逆離散コサイン変換を用
いて復元した画像信号に対し、該圧縮により生じた歪を
除去して再生用画像信号を生成する画質調整方法におい
て、 処理対象画素が前記各ブロック中の角の画素であること
を識別する画素識別処理と、 前記角の画素が前記歪の目立つ画素であることを検出す
る検出処理と、 前記歪の目立つ画素の画素値のみ該画素近傍の画素値に
対する平滑化を行うフィルタ処理とを、 順に施すことを特徴とする画質調整方法。
1. An image signal from an original image is N × M (N, M
Is a positive integer) For reproduction, by removing the distortion caused by the compression from the image signal compressed using the discrete cosine transform for each pixel block and restored using the inverse discrete cosine transform In an image quality adjusting method for generating an image signal, a pixel identification process for identifying that a pixel to be processed is a corner pixel in each block, and a detection for detecting that the corner pixel is the distorted pixel An image quality adjusting method, which comprises sequentially performing a process and a filtering process of smoothing only pixel values of a pixel in which the distortion is noticeable with respect to pixel values in the vicinity of the pixel.
【請求項2】 前記検出処理は、前記処理対象画素を含
む画素ブロック及びその画素ブロックに隣接する画素ブ
ロックのブロック境界が縦横に交わった部分にそれぞれ
接する4個の角の画素から2個の画素を抽出する2画素
抽出処理と、 前記2個の画素の各画素値の差の絶対値を計算する差分
計算処理と、 前記2画素抽出処理及び差分計算処理を繰り返し行い、
前記2個の画素のすべての組合わせに対して画素値の差
の絶対値をそれぞれ計算する繰り返し処理と、 前記繰り返し処理の各結果と設定閾値とをそれぞれ比較
する比較処理と、 前記比較処理の結果に基づき前記処理対象画素が前記歪
の目立つ画素であるか否かを判定する判定処理とを、 施すことを特徴とした請求項1記載の画質調整方法。
2. The detection processing comprises two pixels out of four corner pixels which respectively contact a portion where the block boundaries of the pixel block including the processing target pixel and a pixel block adjacent to the pixel block intersect in the vertical and horizontal directions. A two-pixel extraction process, a difference calculation process for calculating an absolute value of a difference between pixel values of the two pixels, and a two-pixel extraction process and a difference calculation process.
Iterative processing for calculating the absolute value of the difference between pixel values for all combinations of the two pixels, comparison processing for comparing each result of the repeated processing with a set threshold value, and The image quality adjustment method according to claim 1, further comprising: a determination process of determining whether or not the processing target pixel is a pixel in which the distortion is conspicuous based on a result.
JP31005593A 1993-12-10 1993-12-10 Picture quality adjusting method Withdrawn JPH07162857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31005593A JPH07162857A (en) 1993-12-10 1993-12-10 Picture quality adjusting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31005593A JPH07162857A (en) 1993-12-10 1993-12-10 Picture quality adjusting method

Publications (1)

Publication Number Publication Date
JPH07162857A true JPH07162857A (en) 1995-06-23

Family

ID=18000627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31005593A Withdrawn JPH07162857A (en) 1993-12-10 1993-12-10 Picture quality adjusting method

Country Status (1)

Country Link
JP (1) JPH07162857A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011250472A (en) * 2000-10-20 2011-12-08 Panasonic Corp Block distortion removal method, and block distortion removal apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011250472A (en) * 2000-10-20 2011-12-08 Panasonic Corp Block distortion removal method, and block distortion removal apparatus

Similar Documents

Publication Publication Date Title
US9905031B2 (en) Method and related apparatus for capturing and processing image data
JPH0946519A (en) Image processing unit and its method
JPH07162857A (en) Picture quality adjusting method
JP3100383B2 (en) Character region separation method and apparatus
JPH08237475A (en) Image area separation method, image area separator and image processing method and image processing unit
US6750986B1 (en) Color image processing method with thin-line detection and enhancement
JPH07107275A (en) Image data discrimination device
JPH0730752A (en) Image area discriminating device
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JP3966448B2 (en) Image processing apparatus, image processing method, program for executing the method, and recording medium storing the program
JPH0846966A (en) Method for improving picture quality
JP3126961B2 (en) Video cut screen group detection device
JP2777378B2 (en) Halftone area detection method
JP2968276B2 (en) Halftone area separation method
JP3145145B2 (en) Image processing device
JP3605773B2 (en) Image area discriminating device
JP3216165B2 (en) Image region identification device and image region identification method
JP3004244B2 (en) Area separation device
JP2507948B2 (en) Image area identification device
JP2853141B2 (en) Image area identification device
JPH0728998A (en) Expansion processing method for object in picture
JPH02105271A (en) Separating system for halftone dot area
JPH01286571A (en) Picture area identification device
JP2001197306A (en) Method and device for detecting white background area, image area separating method and recording medium
JPH0918702A (en) Image processing unit and its method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010306