JP2005065098A - Signal processing apparatus and method, and program - Google Patents

Signal processing apparatus and method, and program Download PDF

Info

Publication number
JP2005065098A
JP2005065098A JP2003295284A JP2003295284A JP2005065098A JP 2005065098 A JP2005065098 A JP 2005065098A JP 2003295284 A JP2003295284 A JP 2003295284A JP 2003295284 A JP2003295284 A JP 2003295284A JP 2005065098 A JP2005065098 A JP 2005065098A
Authority
JP
Japan
Prior art keywords
block
target position
block boundary
determination
pixels
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
JP2003295284A
Other languages
Japanese (ja)
Inventor
Yoshinari Shirata
義成 白田
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2003295284A priority Critical patent/JP2005065098A/en
Publication of JP2005065098A publication Critical patent/JP2005065098A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To appropriately detect block noise. <P>SOLUTION: A judgment part 51 judges block boundary candidates utilizing difference of luminance values between adjacent blocks by using a predetermined evaluation value set by a control part 53. A judgment part 52 judges whether or not a noticing position and each of boundaries at one block intervals to a boundary distant by n blocks in left and right directions from the noticing position are judged as the block boundary candidates based on the number set by the control part 53 and judges whether or not the noticing position is a block boundary based on the judgment result. The control part 53 changes size of the evaluation value of the judgment part 51 whenever it is judged that the noticing position is not the block boundary and performs processing for removing the block noise to pixel values within a prescribed range including the noticing position by controlling a filtering part 54 when the noticing position is judged as the block boundary. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、例えば、ブロック符号化方式が用いられて圧縮符号化されたデジタル画像データを再生する際に、再生するデジタル画像データからブロックノイズを低減させるようにする信号処理装置および方法、並びにプログラムに関する。   For example, the present invention relates to a signal processing apparatus and method, and a program for reducing block noise from digital image data to be reproduced when reproducing digital image data compression-encoded using a block coding method. About.

データ量が膨大となる静止画像データや動画像データを効率よく記録媒体に記録したり、あるいは伝送することができるようにするために、静止画像データや動画像データを、例えば、8画素×8画素などの所定の大きさにブロック化し、そのブロックを処理単位としてデータ圧縮するブロック符号化を用いた圧縮符号化方式が広く用いられている。   In order to efficiently record or transmit still image data or moving image data having a large amount of data to a recording medium, the still image data or moving image data is, for example, 8 pixels × 8. A compression coding method using block coding in which a block is formed into a predetermined size such as a pixel and data is compressed using the block as a processing unit is widely used.

静止画像データの圧縮符号化方式として広く用いられているJPEG(Joint Photographic Experts Group)方式や、動画像データの圧縮符号化方式として広く用いられているMPEG(Moving Picture Experts Group)方式は、いずれもブロック符号化方式を用いた圧縮符号化方式である。   Both the JPEG (Joint Photographic Experts Group) method, which is widely used as a compression coding method for still image data, and the MPEG (Moving Picture Experts Group) method, which is widely used as a compression coding method for moving image data, are used. This is a compression coding method using a block coding method.

ところで、このブロック符号化方式を用いた圧縮符号化方式は、画像を空間周波数列に分解して画像の印象として重要な部分(低周波成分)を残し、圧縮率に応じて、それ程重要でない部分(高周波成分)を切り捨てるようにして行われる。このため、圧縮率が高くなり、切り捨てられる部分が多くなると、ブロック境界(隣接ブロックとの境界部)での連続性が確保できずに、ブロック境界部分での再生データ値のずれがノイズとして知覚される(ブロックそのものが見えてしまう)いわゆるブロックノイズが発生する。   By the way, this compression coding method using the block coding method decomposes an image into a spatial frequency sequence and leaves an important part (low frequency component) as an image impression, and a part which is not so important depending on the compression rate. This is done by discarding (high frequency component). For this reason, if the compression ratio increases and the number of parts to be cut off increases, continuity at the block boundary (boundary with the adjacent block) cannot be ensured, and a deviation in the playback data value at the block boundary is perceived as noise. So-called block noise occurs (the block itself can be seen).

このブロックノイズは、ブロック境界部分を検出し、その部分の画像データに対してフィルタリングを施すころによって低減することができる。ブロックノイズが存在していると、その画像を鮮鋭化させるなどの処理をしたときに、ブロックノイズがさらに目立ってしまう不具合が生じるが、鮮鋭化させる前に、ブロックノイズを低減することができれば、ブロックノイズを目立たなくすることができる。したがって、ブロックノイズを低減することは、画質を維持する上で重要な技術である。   This block noise can be reduced by detecting a block boundary portion and filtering the image data of that portion. If block noise exists, there will be a problem that block noise will become more noticeable when processing such as sharpening the image, but if you can reduce block noise before sharpening, Block noise can be made inconspicuous. Therefore, reducing block noise is an important technique for maintaining image quality.

ここで、従来における、ブロックノイズ低減の際のブロック境界検出方法(特許文献1参照)について、簡単に説明する。   Here, a conventional block boundary detection method (see Patent Document 1) when reducing block noise will be briefly described.

はじめに、ブロック境界を挟んで隣接する画素間の輝度値(ブロック間の輝度値)には一定の差があることを利用して、ブロック境界の可能性のある境界が検出される。   First, a boundary that may be a block boundary is detected by using a certain difference in luminance values between adjacent pixels (brightness values between blocks) across the block boundary.

そして、ブロック境界は、ブロック(8画素×8画素)の大きさに応じた間隔で連続して存在しているので、例えば、図1に示すように、いま注目する位置P1と、それに対して1ブロック分(8画素)だけ前方の境界P0および1ブロック分(8画素)だけ後方の境界P2のいずれもが、ブロック境界の可能性がある境界と認識されたかが判定される。   Since the block boundary continuously exists at intervals corresponding to the size of the block (8 pixels × 8 pixels), for example, as shown in FIG. It is determined whether the boundary P0 that is one block (8 pixels) ahead and the boundary P2 that is one block (8 pixels) behind are recognized as possible block boundaries.

例えば、格子模様の画像における格子部分とその背景部分(画像上の輪郭の内側と外側)の輝度差も、その程度は異なるがブロックノイズが発生しているブロック境界と同様に一定の差があるので、ブロック間の画素値の違いだけに着目してブロック境界を検出すると、輪郭部分をブロック境界と誤認してしまう。そこでこのように、ブロック境界が一定間隔に存在すること(ブロック境界の連続性)に着目してブロック境界を検出することで、より正確にブロック境界を検出することができる。
特開2003−232890号公報
For example, the luminance difference between the lattice portion and the background portion (inside and outside of the contour on the image) in the lattice pattern image also has a certain difference as in the case of the block boundary where the block noise is generated although the degree is different. Therefore, if a block boundary is detected by paying attention only to the difference in pixel values between blocks, the contour portion is mistaken as a block boundary. Thus, the block boundary can be detected more accurately by detecting the block boundary by paying attention to the fact that the block boundary exists at a constant interval (continuity of the block boundary).
JP 2003-232890 A

しかしながら、輝度差が小さく、そして偶然にも、ブロック間隔で連続して3カ所境界部分が存在する場合、従来の方法では、その境界部分をブロック境界と誤認してしまう。すなわち従来のブロック境界検出方法では、適切にブロック境界を検出することができない場合があった。   However, if the luminance difference is small and there are coincidentally three boundary portions at the block interval, the conventional method misidentifies the boundary portion as a block boundary. That is, with the conventional block boundary detection method, the block boundary may not be detected properly.

以上のことにかんがみ、この発明は、ブロック境界を適切に検出することができるようにすることを目的とする。   In view of the above, an object of the present invention is to enable appropriate detection of block boundaries.

本発明の信号処理装置は、入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かを判定し、注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かを判定し、注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かを判定し、各判定結果に基づいて、注目位置がブロック境界候補であるか否かを判定する第1の判定手段と、注目位置および注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、確認対象境界が、第1の判定手段によりブロック境界候補であると判定されたか否かを判定し、その判定結果に基づいて、注目位置がブロック境界であるか否かを判定する第2の判定手段と、第2の判定手段によりブロック境界であると判定された注目位置を含む所定の範囲内の画素に対してブロックノイズの低減処理を施す処理手段とを備えることを特徴とする。   In the signal processing device of the present invention, for input image data, a difference value of pixel values between pixels adjacent to a predetermined position of interest and an average value of difference values of adjacent pixel values within a predetermined range including the position of interest are: It is determined whether or not the first condition is satisfied, and the difference between the average value of the pixel values of the plurality of pixels at the preceding stage and the average value of the pixel values of the plurality of pixels at the subsequent stage and the first evaluation value are the second Determine whether or not the condition is satisfied, determine whether or not the pixel value difference between the pixels adjacent to the target position and the second evaluation value satisfy the third condition, and based on each determination result, First determination means for determining whether or not the target position is a block boundary candidate; and a target number and a predetermined number of boundaries at one block interval from the target position as a target boundary, and the target target boundary is a first target boundary It is determined whether or not it is determined as a block boundary candidate by the determining means, Based on the determination result, a second determination unit that determines whether or not the target position is a block boundary, and a predetermined range including the target position determined to be a block boundary by the second determination unit And processing means for performing block noise reduction processing on the pixel.

第2の判定手段による判定結果に基づいて、第1の評価値および第2の評価値の値、並びに確認対象境界の数を変更する変更手段をさらに設けることができる。   Based on the determination result by the second determination means, it is possible to further provide a changing means for changing the values of the first evaluation value, the second evaluation value, and the number of confirmation target boundaries.

変更手段は、第1の条件または第2の条件を満たしやすくなる値から、満たしにくくなる値へ、第1の評価値または第2の評価値の値を変更し、確認対象境界の数を大きい数から小さい数に変更することができる。   The changing unit changes the value of the first evaluation value or the second evaluation value from a value that easily satisfies the first condition or the second condition to a value that does not easily satisfy the first condition or the second condition, and increases the number of confirmation target boundaries. The number can be changed from a small number.

第2の判定手段は、注目位置および確認対象境界のすべてが、第1の判定手段によりブロック境界候補であると判定された場合、注目位置はブロック境界であると判定することができる。   The second determination unit can determine that the target position is a block boundary when all of the target position and the confirmation target boundary are determined to be block boundary candidates by the first determination unit.

第2の判定手段は、確認対象境界の数が3個になったとき、注目位置がブロック境界候補であって、2個の確認対象境界のうちのいずれか一方がブロック境界候補であるとき、注目位置はブロック境界であると判定することができる。   When the number of confirmation target boundaries becomes three, the second determination unit is a block boundary candidate, and when one of the two confirmation target boundaries is a block boundary candidate, It can be determined that the position of interest is a block boundary.

本発明の信号処理方法は、入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かを判定し、注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かを判定し、注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かを判定し、各判定結果に基づいて、注目位置がブロック境界候補であるか否かを判定する第1の判定ステップと、注目位置および注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、確認対象境界が、第1の判定ステップの処理でブロック境界候補であると判定されたか否かを判定し、その判定結果に基づいて、注目位置がブロック境界であるか否かを判定する第2の判定ステップと、第2の判定ステップの処理でブロック境界であると判定された注目位置を含む所定の範囲内の画素に対してブロックノイズの低減処理を施す処理ステップとを含むことを特徴とする。   In the signal processing method of the present invention, for input image data, a difference value of pixel values between pixels adjacent to a predetermined position of interest and an average value of difference values of adjacent pixel values within a predetermined range including the position of interest are: It is determined whether or not the first condition is satisfied, and the difference between the average value of the pixel values of the plurality of pixels at the preceding stage and the average value of the pixel values of the plurality of pixels at the subsequent stage and the first evaluation value are the second Determine whether or not the condition is satisfied, determine whether or not the pixel value difference between the pixels adjacent to the target position and the second evaluation value satisfy the third condition, and based on each determination result, A first determination step for determining whether or not the position of interest is a block boundary candidate; and a predetermined number of boundaries within one block interval from the position of interest and the position of interest as a confirmation target boundary; Whether or not it was determined as a block boundary candidate in the processing of the determination step A second determination step of determining whether or not the target position is a block boundary based on the determination result, and a target position determined to be a block boundary in the processing of the second determination step And a processing step of performing block noise reduction processing on pixels within a predetermined range.

本発明のプログラムは、入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かの判定、注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かの判定、注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かの判定を制御するとともに、各判定結果に基づく、注目位置がブロック境界候補であるか否かの判定を制御する第1の判定制御ステップと、注目位置および注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、確認対象境界が、第1の判定制御ステップの処理でブロック境界候補であると判定されたか否かを判定し、その判定結果に基づく、注目位置がブロック境界であるか否かの判定を制御する第2の判定制御ステップと、第2の判定制御ステップの処理でブロック境界であると判定された注目位置を含む所定の範囲内の画素に対するブロックノイズの低減処理を制御する処理制御ステップとを含む処理をコンピュータに実行させることを特徴とする。   According to the program of the present invention, for input image data, a difference value of pixel values between pixels adjacent to a predetermined position of interest and an average value of difference values of adjacent pixel values within a predetermined range including the position of interest are first. The difference between the average value of the pixel values of the plurality of pixels at the preceding stage and the average value of the pixel values of the plurality of pixels at the subsequent stage, and the first evaluation value satisfy the second condition. Controlling whether or not the difference between the pixel values between the pixels adjacent to the target position and the second evaluation value satisfy the third condition, and determining the target position based on each determination result A first determination control step for controlling determination of whether or not is a block boundary candidate, a target position and a predetermined number of boundaries that are one block interval from the target position as a target boundary, and the target boundary is a first target Block boundary candidates in the decision control step A second determination control step for controlling whether or not the target position is a block boundary based on the determination result, and a block in the processing of the second determination control step And a processing control step of controlling block noise reduction processing for pixels within a predetermined range including a target position determined to be a boundary.

本発明の信号処理装置および方法、並びにプログラムにおいては、入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かが判定され、注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かが判定され、注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かが判定され、各判定結果に基づいて、注目位置がブロック境界候補であるか否かが判定され、注目位置および注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、確認対象境界が、ブロック境界候補であると判定されたか否かが判定され、その判定結果に基づいて、注目位置がブロック境界であるか否かが判定され、ブロック境界であると判定された注目位置を含む所定の範囲内の画素に対してブロックノイズの低減処理が施される。   In the signal processing device, method, and program of the present invention, for input image data, a difference value between pixel values adjacent to a predetermined position of interest and a difference value between adjacent pixel values within a predetermined range including the position of interest. It is determined whether the first value satisfies the first condition, and the difference between the average value of the pixel values of the plurality of pixels at the preceding stage and the average value of the pixel values of the plurality of pixels at the subsequent stage, and the first It is determined whether or not the evaluation value satisfies the second condition, and it is determined whether or not the difference between the pixel values between the pixels adjacent to the target position and the second evaluation value satisfy the third condition, Based on the determination result, it is determined whether or not the target position is a block boundary candidate, and the target position and a predetermined number of boundaries at one block interval from the target position are set as the target boundary, and the target boundary is the block boundary candidate. Whether or not Then, based on the determination result, it is determined whether or not the target position is a block boundary, and block noise reduction processing is performed on pixels within a predetermined range including the target position determined to be the block boundary. Applied.

本発明によれば、ブロックノイズを適切に検出し、ブロックノイズを低減することができる。   According to the present invention, it is possible to appropriately detect block noise and reduce block noise.

図2は、本発明を適用したDVD(Digital Versatile Disk)の再生装置1の構成例を示している。再生装置1は、ディスク2にMPEG方式で圧縮符号化されて記録されている画像データや音声データを読み出して再生するが、その際、画像データについて、ブロック符号化の際に発生するブロックノイズを後述するように低減(除去)する。   FIG. 2 shows a configuration example of a DVD (Digital Versatile Disk) playback apparatus 1 to which the present invention is applied. The playback device 1 reads out and plays back image data and audio data recorded on the disk 2 by compression encoding according to the MPEG method. At this time, the block noise generated at the time of block encoding is applied to the image data. Reduce (remove) as described later.

MPEG方式の圧縮符号化は、画像の時間方向および空間方向の相関を利用して、画像の圧縮符号化を行うものであり、その空間方向の相関の利用は、ブロック符号化であるDCT符号化(Discrete Cosin Transform)を用いることで実現されている。すなわち、ここで発生するブロックノイズは、DCTブロック(8画素×8画素)単位で発生する。   The MPEG compression coding is to perform compression coding of an image using the correlation between the time direction and the space direction of the image, and the use of the correlation in the space direction is the DCT coding which is block coding. This is realized by using (Discrete Cosin Transform). That is, the block noise generated here is generated in units of DCT blocks (8 pixels × 8 pixels).

光ヘッド11は、レーザ光源、ビームスプリッタ、対物レンズ、フォトディテクタ(受光素子)などの光学系や2軸アクチュエータなどから構成されている。光ヘッド11は、ディスク2からの画像データおよび音声データの再生時において、ディスク2にレーザビームを照射し、このレーザビームのディスク2からの反射光を受光する。光ヘッド11は、受光した反射光を電気信号に変換して、これをRFプロセッサ14に供給する。   The optical head 11 includes an optical system such as a laser light source, a beam splitter, an objective lens, and a photodetector (light receiving element), a biaxial actuator, and the like. The optical head 11 irradiates the disk 2 with a laser beam and receives reflected light from the disk 2 when reproducing image data and audio data from the disk 2. The optical head 11 converts the received reflected light into an electrical signal and supplies it to the RF processor 14.

回転駆動部12は、スピンドルモータなどから構成されており、ディスク2を例えば線速度一定(CLV)となるように回転駆動させる。駆動部13は、ディスク2の半径方向に移動させるためのスレッドモータなどのスライド機構などから構成されている。   The rotation drive unit 12 is composed of a spindle motor or the like, and drives the disk 2 to rotate, for example, at a constant linear velocity (CLV). The drive unit 13 includes a slide mechanism such as a sled motor for moving the disk 2 in the radial direction.

RFプロセッサ14は、光ヘッド11からの電気信号の供給を受け、ディスク2に記録されているデータに応じた再生RF信号や、フォーカスエラー信号、トラッキングエラー信号を形成する。ここで形成されたフォーカスエラー信号およびトラッキングエラー信号は、サーボコントローラ15に供給される。再生RF信号は、MPEGデコーダ16に供給される。また、ディスク2から読み出されたアドレス情報などは、RFプロセッサ14からシステムコントローラ31に供給される。   The RF processor 14 receives supply of an electrical signal from the optical head 11 and forms a reproduction RF signal, a focus error signal, and a tracking error signal corresponding to data recorded on the disk 2. The focus error signal and tracking error signal formed here are supplied to the servo controller 15. The reproduction RF signal is supplied to the MPEG decoder 16. Also, address information read from the disk 2 is supplied from the RF processor 14 to the system controller 31.

サーボコントローラ15は、システムコントローラ31からの制御信号と、RFプロセッサ14からのフォーカスエラー信号およびトラッキングエラー信号に基づいて、回転駆動部12および駆動部13を制御する制御信号を形成し、これを回転駆動部12および駆動部13に供給する。これにより、再生装置1に装填されたディスク2を、回転駆動部12により線速度一定となるように制御するとともに、データが記録されているディスク2上のトラックを適正な大きさのスポット形状のレーザビームにより正確に走査することができる。   The servo controller 15 forms a control signal for controlling the rotation drive unit 12 and the drive unit 13 based on the control signal from the system controller 31, the focus error signal and the tracking error signal from the RF processor 14, and rotates the control signal. This is supplied to the drive unit 12 and the drive unit 13. As a result, the disc 2 loaded in the reproducing apparatus 1 is controlled by the rotary drive unit 12 so that the linear velocity is constant, and the track on the disc 2 on which data is recorded has a spot shape of an appropriate size. The laser beam can be scanned accurately.

MPEGデコーダ16は、RFプロセッサ14からの再生RF信号に対して、逆量子化、逆DCT符号化などの処理を行って、MPEG方式でデータ圧縮されている画像データおよび音声データを復号し、圧縮符号化前の元の画像データおよび音声データを復元する。復号された音声データは、音声再生処理部17に供給され、画像データは、ブロックノイズ低減部18に供給される。   The MPEG decoder 16 performs processing such as inverse quantization and inverse DCT encoding on the reproduced RF signal from the RF processor 14 to decode image data and audio data that have been compressed by the MPEG method, and compress the compressed data. The original image data and audio data before encoding are restored. The decoded audio data is supplied to the audio reproduction processing unit 17, and the image data is supplied to the block noise reduction unit 18.

音声再生処理部17は、供給された復号されたデジタルオーディオデータから再生用のデジタルオーディオデータを形成する。ここで形成された再生用のデジタルオーディオデータは、デジタルI/F(図示せず)を通じて出力され、あるいは、D/A変換されて出力される。   The audio reproduction processing unit 17 forms digital audio data for reproduction from the supplied decoded digital audio data. The digital audio data for reproduction formed here is output through a digital I / F (not shown) or D / A converted and output.

ブロックノイズ低減部18は、MPEGデコーダ16からの復号された画像データ(正確には輝度信号)に対して、後述するブロックノイズを低減させるブロックノイズ低減処理を施し、処理後のデジタル画像データをデジタル出力エンコーダ19およびNTSC/PALエンコーダ22に供給する。   The block noise reduction unit 18 performs block noise reduction processing for reducing block noise, which will be described later, on the decoded image data (more precisely, a luminance signal) from the MPEG decoder 16 and digitally processes the processed digital image data. The output encoder 19 and the NTSC / PAL encoder 22 are supplied.

デジタル出力エンコーダ19は、供給されたブロックノイズ低減処理後のデジタル画像データから出力用のデジタル画像データを形成し、これをデジタルI/F20およびデジタル画像データの出力端子21を通じて、例えばモニタ受像機(図示せず)などに供給する。   The digital output encoder 19 forms digital image data for output from the supplied digital image data after the block noise reduction processing, and outputs the digital image data through the digital I / F 20 and the digital image data output terminal 21, for example, a monitor receiver ( (Not shown).

NTSC/PALエンコーダ22は、供給されたブロックノイズ低減処理後のデジタル画像データからNTSC方式/PAL方式に応じたデジタル画像データを形成し、これをD/A変換部23に供給する。D/A変換部23は、供給されたNTSC方式/PAL方式に変換されたデジタル画像データをアナログ信号に変換し、これをアナログ画像信号の出力端子24を通じて、例えばモニタ受像機などに供給する。   The NTSC / PAL encoder 22 forms digital image data corresponding to the NTSC system / PAL system from the supplied digital image data after the block noise reduction processing, and supplies this to the D / A converter 23. The D / A converter 23 converts the supplied digital image data converted into the NTSC system / PAL system into an analog signal, and supplies the analog signal to the monitor receiver or the like through the analog image signal output terminal 24.

システムコントローラ31は、再生装置1の各部を制御するものであり、CPU、ROM、RAM、EEPROMなどを備えたマイクロコンピュータである。操作部32は、使用者からの入力操作を受け付けるものであり、再生キー、停止キー、一時停止キーなどの種々の操作キーなどから構成されている。また、表示部33は、例えば、LCD(Liquid CrystalDisplay)により構成され、各種のガイダンスメッセージを表示する。   The system controller 31 controls each unit of the playback apparatus 1 and is a microcomputer including a CPU, a ROM, a RAM, an EEPROM, and the like. The operation unit 32 receives an input operation from the user, and includes various operation keys such as a reproduction key, a stop key, and a pause key. The display unit 33 is configured by, for example, an LCD (Liquid Crystal Display) and displays various guidance messages.

図3は、図2のブロックノイズ低減部18の構成例を示している。   FIG. 3 shows a configuration example of the block noise reduction unit 18 of FIG.

ブロック境界候補判定部51には、MPEGデコーダ16からの復号された画像データの輝度信号が入力される。ブロック境界候補判定部51は、画像データの各画素値(輝度値)を、例えば水平方向に参照し、後述するように制御部53により設定された所定の評価値を用い、隣接するブロック間の画素値(輝度値)の違いを利用したブロック境界候補の判定を行い、その判定結果をブロック境界判定部52に通知する。   The luminance signal of the decoded image data from the MPEG decoder 16 is input to the block boundary candidate determination unit 51. The block boundary candidate determination unit 51 refers to each pixel value (luminance value) of the image data in the horizontal direction, for example, and uses a predetermined evaluation value set by the control unit 53 as will be described later. Block boundary candidate determination using the difference in pixel value (luminance value) is performed, and the determination result is notified to the block boundary determination unit 52.

ブロック境界判定部52は、後述するように制御部53により設定された数(=2n−1)に基づいて、図4に示すように、注目する位置(注目位置)と、それから左右方向にnブロック分離れた境界までの1ブロック間隔にある境界(図4中、下向きの矢印で示されている境界)を確認対象境界とし、それらが、ブロック境界候補判定部51によりブロック境界候補であると判定されたか否かを判定し(連続性を判定し)、その判定結果に基づいて注目位置がブロック境界であるか否かを判定する。その判定結果は、制御部53に通知される。   Based on the number (= 2n−1) set by the control unit 53 as described later, the block boundary determining unit 52, as shown in FIG. The boundaries (boundaries indicated by downward arrows in FIG. 4) that are located at one block interval up to the boundary where the blocks are separated are the confirmation target boundaries, and these are the block boundary candidates by the block boundary candidate determination unit 51. It is determined whether it has been determined (continuity is determined), and based on the determination result, it is determined whether the target position is a block boundary. The determination result is notified to the control unit 53.

なお、ブロック境界判定部52は、別途入力される画素クロック信号を、例えば3ビットのカウンタで8画素ずつカウントすることで、注目位置から1ブロック間隔にある境界を特定することができる。   The block boundary determination unit 52 can specify a boundary at one block interval from the target position by counting a pixel clock signal separately input, for example, by 8 pixels with a 3-bit counter.

制御部53は、ブロック境界判定部52により、注目位置がブロック境界ではないと判定される度に、ブロック境界候補判定部51において利用される評価値の大きさを変更させる(後述)。制御部53はまた、ブロック境界判定部52により、注目する位置がブロック境界であると判定されたとき、フィルタリング部54を制御して、ブロック境界と判定された注目位置を含む所定の範囲の画素値に対して、ブロックノイズを除去するためのフィルタ処理を施させる。   Whenever the block boundary determination unit 52 determines that the target position is not a block boundary, the control unit 53 changes the magnitude of the evaluation value used in the block boundary candidate determination unit 51 (described later). The control unit 53 also controls the filtering unit 54 when the block boundary determination unit 52 determines that the position of interest is a block boundary, so that pixels in a predetermined range including the position of interest determined as the block boundary. The value is subjected to filter processing for removing block noise.

なお、制御部53は、別途入力される画素クロック信号を、例えば3ビットのカウンタで8画素ずつカウントすることで、フィルタ処理が施される画素を特定することができる。   Note that the control unit 53 can specify the pixel to be subjected to the filter process by counting the pixel clock signal separately input, for example, by 8 pixels with a 3-bit counter.

フィルタリング部54は、制御部53の制御に従って、入力される画像データ(輝度信号)にフィルタリングを施す。すなわちフィルタリング部54は、フィルタリングの要求がない場合、原の輝度信号をデジタル出力エンコーダ19およびNTSC/PALエンコーダ22に出力し、フィルタリングの要求があった場合、原の輝度信号に代えて、フィルタリング処理を施した輝度信号をデジタル出力エンコーダ19およびNTSC/PALエンコーダ22に出力する。   The filtering unit 54 filters input image data (luminance signal) according to the control of the control unit 53. That is, when there is no filtering request, the filtering unit 54 outputs the original luminance signal to the digital output encoder 19 and the NTSC / PAL encoder 22, and when there is a filtering request, the filtering unit 54 replaces the original luminance signal with a filtering process. Is output to the digital output encoder 19 and the NTSC / PAL encoder 22.

遅延回路55には、MPEGデコーダ16からの復号された画像データの色信号が入力される。遅延回路55は、フィルタリング部54からの輝度信号と同期するように色信号を遅延させて、デジタル出力エンコーダ19およびNTSC/PALエンコーダ22に出力する。   The color signal of the decoded image data from the MPEG decoder 16 is input to the delay circuit 55. The delay circuit 55 delays the color signal so as to be synchronized with the luminance signal from the filtering unit 54, and outputs the delayed color signal to the digital output encoder 19 and the NTSC / PAL encoder 22.

次に、ブロック境界候補判定部51の構成について説明する。ブロック境界候補判定部51の判定部61には、MPEGデコーダ16からの画像データ(輝度信号)が入力される。   Next, the configuration of the block boundary candidate determination unit 51 will be described. Image data (luminance signal) from the MPEG decoder 16 is input to the determination unit 61 of the block boundary candidate determination unit 51.

判定部61は、注目する位置(注目位置)を挟んで隣接する画素(以下、注目画素)間の輝度差の絶対値(以下、注目画素差分値DAと称する)が、注目画素と所定の位置関係にある画素群(以下、参照画素と称する)の隣接画素間の輝度差の絶対値(以下、参照画素差分値DBと称する)の平均値より大きいか否かを判定する(すなわち式(1)が成立するか否かを判定する)。
注目画素差分値DA>参照画素差分値DBの平均値・・・(1)
The determination unit 61 determines that the absolute value of the luminance difference (hereinafter referred to as a target pixel difference value DA) between adjacent pixels (hereinafter referred to as the target pixel) across the target position (target position) is a predetermined position. It is determined whether or not it is larger than the average value of the absolute values (hereinafter referred to as reference pixel difference values DB) of the luminance difference between adjacent pixels of the pixel group having the relationship (hereinafter referred to as reference pixels) (ie, the expression (1) ) Is determined).
Attention pixel difference value DA> average value of reference pixel difference value DB (1)

判定部61は、式(1)が成立すると判定した場合、Hレベルとなる信号(“1”)を、AND回路64(論理積回路)に出力し、式(1)が成立しないと判定した場合、Lレベルとなる信号(“0”)をAND回路64に出力する。   When the determination unit 61 determines that the expression (1) is satisfied, the determination unit 61 outputs a signal (“1”) that becomes the H level to the AND circuit 64 (logical product circuit), and determines that the expression (1) is not satisfied. In this case, an L level signal (“0”) is output to the AND circuit 64.

図5に示す画素データを例にして、判定部61の判定処理を説明する。なおここで処理されるMPEG方式の圧縮符号化された画像データは、8画素×8画素のブロック単位でDCT符号化処理がなされているので、ここで取り扱われるブロックは、8画素×8画家で構成されている。またここでは水平方向の各ブロック境界を検出するものとするが、垂直方向についても同様に行うことができる。   The determination process of the determination unit 61 will be described using the pixel data shown in FIG. 5 as an example. Note that the MPEG-compressed image data processed here is subjected to DCT encoding processing in units of blocks of 8 pixels × 8 pixels, so the blocks handled here are 8 pixels × 8 painters. It is configured. Here, each block boundary in the horizontal direction is detected, but the same can be done in the vertical direction.

図5の例では、注目位置Pを挟む2個の画素E,Fが注目画素であり、注目画素Eから左方向に並ぶ4個の画素A,B,C,D,と画素Fから右方向に並ぶ4個の画素G,H,I,Jの合計8画素が参照画素である。   In the example of FIG. 5, the two pixels E and F sandwiching the target position P are the target pixels, and the four pixels A, B, C, and D arranged in the left direction from the target pixel E and the right direction from the pixel F A total of 8 pixels of the four pixels G, H, I, and J arranged in a row are reference pixels.

判定部61はこのとき、画素E,F間の輝度差の絶対値(注目画素差分値DA=|画素Fの輝度値f−画素Eの輝度値e|),並びに参照画素の隣接する画素間の輝度差の絶対値(参照画素差分値D)(DB1=|b−a|,DB2=|c−b|,DB3=|d−c|,DB4=|e−d|,DB5=|g−f|,DB6=|h−g|,DB7=|i−h|,DB8=|j−i|)およびそれらの平均値(=(DB1+DB2+DB3+DB4+DB5+DB6+DB7+DB8)/8)を算出する。そして判定部61は、その算出結果に基づいて式(1)が成り立つか否かを判定する。   At this time, the determination unit 61 determines the absolute value of the luminance difference between the pixels E and F (the pixel difference value DA = | the luminance value f of the pixel F−the luminance value e | of the pixel E) and the adjacent pixels of the reference pixel. Absolute value (reference pixel difference value D) (DB1 = | b−a |, DB2 = | c−b |, DB3 = | dc−, DB4 = | ed−, DB5 = | g −f |, DB6 = | hg |, DB7 = | i−h |, DB8 = | j−i |) and their average value (= (DB1 + DB2 + DB3 + DB4 + DB5 + DB6 + DB7 + DB8) / 8). And the determination part 61 determines whether Formula (1) is formed based on the calculation result.

同じブロックに属する、隣接する画素間の輝度差の絶対値は比較的小さいが、ブロックノイズが発生しているブロック境界を挟む隣接画素(図5中、黒丸で示されている画素からなるブロックB1に属する画素Eと、白丸で示されている画素からなるブロックB2に属する画素F)間の輝度差の絶対値は、ブロックノイズが、ブロックそのものが見えてしまうことからもわかるように、大きいものとなっている(画素上の段差がある)。   Although the absolute value of the luminance difference between adjacent pixels belonging to the same block is relatively small, adjacent pixels sandwiching the block boundary where block noise occurs (block B1 including pixels indicated by black circles in FIG. 5) The absolute value of the luminance difference between the pixel E belonging to the pixel E and the pixel F belonging to the block B2 made up of pixels indicated by white circles is large, as can be seen from the fact that the block itself can be seen. (There is a step on the pixel).

すなわち注目画素差分値DAが、参照画素差分値DBの平均値より大きい場合(式(1)が成立する場合)、注目位置は、ブロック境界である可能性が高いので、判定部61はそのとき、注目位置は、ブロック境界候補であると判定し、その旨を示すHレベルの信号をAND回路64に出力する。一方注目画素差分値DAが、参照画素差分値DBの平均値以下である場合(式(1)が成立しない場合)、注目位置は、ブロック境界である可能性が低いので、判定部61はそのとき、注目位置は、ブロック境界候補ではないと判定し、その旨を表すLレベルの信号をAND回路64に出力する。   That is, when the target pixel difference value DA is larger than the average value of the reference pixel difference values DB (when the formula (1) is satisfied), the target position is highly likely to be a block boundary. The target position is determined to be a block boundary candidate, and an H level signal indicating that is output to the AND circuit 64. On the other hand, when the target pixel difference value DA is equal to or smaller than the average value of the reference pixel difference value DB (when the formula (1) is not established), the determination unit 61 determines that the target position is less likely to be a block boundary. At this time, it is determined that the target position is not a block boundary candidate, and an L level signal indicating that is output to the AND circuit 64.

判定部61は、図6に示すように構成されている。   The determination unit 61 is configured as shown in FIG.

ラッチ回路101およびラッチ回路102は、隣接する画素の輝度値が、差分演算回路103に同期して供給されるように、入力される輝度値を1画素ずつラッチする。すなわちラッチ回路102から出力される輝度値が先に入力された輝度値であり、ラッチ回路101から出力される輝度値が、ラッチ回路102から出力される輝度値の1画素分後の輝度値となる。   The latch circuit 101 and the latch circuit 102 latch input luminance values pixel by pixel so that the luminance values of adjacent pixels are supplied in synchronization with the difference calculation circuit 103. That is, the luminance value output from the latch circuit 102 is the luminance value input first, and the luminance value output from the latch circuit 101 is the luminance value one pixel after the luminance value output from the latch circuit 102. Become.

差分演算回路103は、隣接画素間の輝度差の絶対値を求めることにより、注目画素差分値DA、および参照画素差分値DBを算出する。差分演算回路103において算出された差分値は、ラッチ回路部104に供給される。   The difference calculation circuit 103 calculates the target pixel difference value DA and the reference pixel difference value DB by obtaining the absolute value of the luminance difference between adjacent pixels. The difference value calculated by the difference calculation circuit 103 is supplied to the latch circuit unit 104.

ラッチ回路部104は、それを構成する各ラッチ回路によって、図5の例では、参照画素差分値DB1,DB2,DB3,DB4、注目画素差分値DA、そして参照画素差分値DB5,DB6,DB7,DB8を、この順番でラッチする。   In the example of FIG. 5, the latch circuit unit 104 includes reference pixel difference values DB1, DB2, DB3, DB4, a target pixel difference value DA, and reference pixel difference values DB5, DB6, DB7, DB8 is latched in this order.

ラッチ回路部104の第1番目乃至第4番目のラッチ回路によってラッチされた差分値が、注目位置Pの右側の画素についての参照画素差分値DB5,DB6,DB7,DB8として平均化回路105に供給され、第6番目乃至第9番目のラッチ回路によってラッチされた差分値が、注目位置Pの左側の画素についての参照画素差分値DB1,DB2,DB3,DB4として平均化回路106に供給される。また、ラッチ回路部104の5番目のラッチ回路によってラッチされた差分値は、注目画素差分値DAとして比較回路108および判定部63に供給される。   The difference values latched by the first to fourth latch circuits of the latch circuit unit 104 are supplied to the averaging circuit 105 as reference pixel difference values DB5, DB6, DB7, and DB8 for the pixels on the right side of the target position P. Then, the difference values latched by the sixth to ninth latch circuits are supplied to the averaging circuit 106 as the reference pixel difference values DB1, DB2, DB3, DB4 for the pixel on the left side of the target position P. Further, the difference value latched by the fifth latch circuit of the latch circuit unit 104 is supplied to the comparison circuit 108 and the determination unit 63 as the target pixel difference value DA.

平均化回路105および106は、それらに供給された4つの参照画素差分値DBの平均値をそれぞれ算出し、算出した平均値を平均化回路107に供給する。   The averaging circuits 105 and 106 calculate the average values of the four reference pixel difference values DB supplied thereto, and supply the calculated average values to the averaging circuit 107.

平均化回路107は、平均化回路105および106からの算出結果の供給を受けて、これら2つの算出結果の平均値(参照画素差分値DB1乃至DB8全体の平均値)を算出し、その算出結果を比較回路108に供給する。   The averaging circuit 107 receives the calculation results from the averaging circuits 105 and 106, calculates the average value of these two calculation results (the average value of the entire reference pixel difference values DB1 to DB8), and the calculation result Is supplied to the comparison circuit 108.

比較回路108は、ラッチ回路部104からの注目画素差分値DAと、平均化回路107からの参照画素差分値DBの平均値とを比較し、式(1)が成立するか否かを判定する。式(1)が成立すると判定した場合、比較回路108は、その旨を表すHレベルの信号をAND回路64に出力し、式(1)が成立しないと判定した場合、その旨を表すLレベルの信号をAND回路64に出力する。   The comparison circuit 108 compares the target pixel difference value DA from the latch circuit unit 104 with the average value of the reference pixel difference value DB from the averaging circuit 107, and determines whether or not Expression (1) is satisfied. . When it is determined that Expression (1) is satisfied, the comparison circuit 108 outputs an H level signal indicating that to the AND circuit 64. When it is determined that Expression (1) is not satisfied, the comparison circuit 108 is L level indicating that. Is output to the AND circuit 64.

図3に戻り、次に、ブロック境界候補判定部51の判定部62について説明する。判定部62には、判定部61のラッチ回路102(図6)でラッチされた輝度値が順次供給される。判定部62は、注目位置の左側に並ぶ4個の画素の輝度値の平均値AVLと、その右側に並ぶ4個の画素の輝度値の平均値AVRとの差分の絶対値が、後述するように制御部53により設定された所定の評価値Dより小さいか否かを判定する(式(2)が成立するか否かを判定する)。
D>|平均値AVL−平均値AVR|・・・(2)
Returning to FIG. 3, the determination unit 62 of the block boundary candidate determination unit 51 will be described next. The luminance value latched by the latch circuit 102 (FIG. 6) of the determination unit 61 is sequentially supplied to the determination unit 62. The determination unit 62 determines the absolute value of the difference between the average value AVL of the luminance values of the four pixels arranged on the left side of the target position and the average value AVR of the luminance values of the four pixels arranged on the right side as described later. It is determined whether or not the value is smaller than a predetermined evaluation value D set by the control unit 53 (determines whether or not Expression (2) is satisfied).
D> | Average value AVL−Average value AVR | (2)

判定部62は、式(2)が成立すると判定した場合、Hレベルとなる信号をAND回路64に出力し、式(2)が成立しないと判定した場合、Lレベルとなる信号をAND回路64に出力する。   When determining that Expression (2) is satisfied, the determination unit 62 outputs a signal that becomes H level to the AND circuit 64, and when determining that Expression (2) is not satisfied, the determination unit 62 outputs a signal that is L level to the AND circuit 64. Output to.

図5の例の場合、判定部62は、注目位置Pの左側に並ぶ4個の画素B,C,D,Eの輝度値の平均値AVLと、注目位置Pの右側に並ぶ4個の画素F,G,H,Iの輝度値の平均値AVRとの差分値の絶対値が、所定の値Dより小さいか否かを判定する。   In the example of FIG. 5, the determination unit 62 includes the average value AVL of the luminance values of the four pixels B, C, D, and E arranged on the left side of the target position P and the four pixels arranged on the right side of the target position P. It is determined whether or not the absolute value of the difference value from the average value AVR of the luminance values of F, G, H, and I is smaller than a predetermined value D.

ブロックノイズが発生するのは、画像データのビットレートが低い場合(圧縮率が高い場合)や、画像の動きが早い場合であることから、ブロック境界を挟んで隣接するブロック間の輝度値には一定の差ある。しかしながら、その差は、例えば、格子模様の画像における格子部分とその背景部分(輪郭の内側と外側)間の輝度値の差よりも、通常は小さい。   Block noise occurs when the bit rate of the image data is low (when the compression rate is high) or when the image moves fast, so the luminance value between adjacent blocks across the block boundary There is a certain difference. However, the difference is usually smaller than, for example, the difference in luminance value between the lattice portion and the background portion (inside and outside of the contour) in the lattice pattern image.

評価値Dは、画像上の輪郭の内側(格子部分)と外側(背景部分)間の輝度値の差(大きい値)を、一般的に表す値であるので、注目位置の左側に並ぶ4個の画素の輝度値の平均値AVLと、右側に並ぶ4個の画素の輝度値の平均値AVRとの差分の絶対値が、評価値Dより小さい場合(式(2)が成立する場合)、注目位置Pは、式(1)が成立していることを条件として、ブロック境界である可能性が高い。そこで、判定部62はこのとき、注目位置は、ブロック境界候補であると判定し、その旨を示すHレベルの信号をAND回路64に出力する。一方、注目位置の左側に並ぶ4個の画素の輝度値の平均値AVLと、右側に並ぶ4個の画素の輝度値の平均値AVRとの差分値の絶対値が、評価値D以上である場合(式(2)が成立しない場合)、注目位置は、ブロック境界である可能性が低い(輪郭部分である可能性が高い)。そこで、判定部62はこのとき、注目位置は、ブロック境界候補ではないと判定し、その旨を表すLレベルの信号をAND回路64に出力する。   The evaluation value D is a value that generally represents the difference (large value) in luminance value between the inner side (grid portion) and the outer side (background portion) of the contour on the image. When the absolute value of the difference between the average value AVL of the luminance values of the pixels and the average value AVR of the luminance values of the four pixels arranged on the right side is smaller than the evaluation value D (when formula (2) is satisfied), The attention position P is highly likely to be a block boundary on condition that the expression (1) holds. Accordingly, at this time, the determination unit 62 determines that the target position is a block boundary candidate, and outputs an H level signal indicating that to the AND circuit 64. On the other hand, the absolute value of the difference value between the average value AVL of the luminance values of the four pixels arranged on the left side of the target position and the average value AVR of the luminance values of the four pixels arranged on the right side is equal to or greater than the evaluation value D. In the case (when Expression (2) is not established), the target position is unlikely to be a block boundary (highly likely to be a contour portion). Therefore, at this time, the determination unit 62 determines that the target position is not a block boundary candidate, and outputs an L level signal indicating that to the AND circuit 64.

すなわち評価値Dを大きな値に設定すればするほど、注目位置がブロック境界候補であると判定され易くなり、確実にブロック境界を検出することができる。しかしながらこのことは、ブロック境界でない部分(輪郭部分)がブロック境界と誤認されやすいことを意味している。   That is, the larger the evaluation value D is set, the easier it is to determine that the position of interest is a block boundary candidate, and the block boundary can be reliably detected. However, this means that a portion (contour portion) that is not a block boundary is easily mistaken for a block boundary.

なお、判定部61における判定条件(式(1))の他に、判定部62における判定条件(式(2))をさらに設けたのは、図7に示すように、画像上の輪郭部分Lにも、ブロック境界と同様に段差があり、式(1)を満たす場合があるので、式(2)の判定条件で、輪郭部分がブロック境界候補に認識されることを防止するためである。画像の輪郭部分がブロックノイズとして検出され、低減処理が施されると、画像がぼけてしまうなどの不具合が生じる。   In addition to the determination condition (expression (1)) in the determination unit 61, the determination condition (expression (2)) in the determination unit 62 is further provided as shown in FIG. In addition, there is a step similar to the block boundary, and the expression (1) may be satisfied, so that the contour portion is prevented from being recognized as a block boundary candidate by the determination condition of the expression (2). If the contour portion of the image is detected as block noise and subjected to reduction processing, a problem such as blurring of the image occurs.

判定部62は、図8に示すように構成されている。   The determination unit 62 is configured as shown in FIG.

ラッチ回路部111には、判定部61のラッチ回路101,102でラッチされた輝度値が供給される。ラッチ回路部111は、それを構成する各ラッチ回路によって、図5の例では、画素A,B,C,D,E,F,G,H,I,Jの輝度値をこの順番でラッチする。   The luminance value latched by the latch circuits 101 and 102 of the determination unit 61 is supplied to the latch circuit unit 111. In the example of FIG. 5, the latch circuit unit 111 latches the luminance values of the pixels A, B, C, D, E, F, G, H, I, and J in this order by the respective latch circuits constituting the latch circuit unit 111. .

ラッチ回路部111の第2番目乃至第5番目のラッチ回路によってラッチされた注目位置Pの右側の画素F,G,H,Iの輝度値が平均化回路112に供給され、第6番目乃至第9番目のラッチ回路によってラッチされた注目位置Pの左側の画素B,C,D,Eが平均化回路113に供給される。   The luminance values of the pixels F, G, H, and I on the right side of the target position P latched by the second to fifth latch circuits of the latch circuit unit 111 are supplied to the averaging circuit 112, and the sixth to sixth pixels are supplied. Pixels B, C, D, E on the left side of the target position P latched by the ninth latch circuit are supplied to the averaging circuit 113.

平均化回路112および113は、それらに供給された4つの画素の輝度値の平均値AVL,AVRをそれぞれ算出し、比較回路114に出力する。   The averaging circuits 112 and 113 calculate the average values AVL and AVR of the luminance values of the four pixels supplied to them, and output them to the comparison circuit 114.

比較回路114は、平均化回路112および113からの平均値AVLと平均値AVRの差分値の絶対値と、評価値Dとを比較し、式(2)が成立するか否かを判定する。比較回路114は、式(2)が成立すると判定した場合、その旨を表すHレベルの信号をAND回路64に出力し、式(1)が成立しないと判定した場合、その旨を表すLレベルの信号をAND回路64に出力する。   The comparison circuit 114 compares the absolute value of the difference value between the average value AVL and the average value AVR from the averaging circuits 112 and 113 with the evaluation value D, and determines whether or not Expression (2) is satisfied. When it is determined that Expression (2) is satisfied, the comparison circuit 114 outputs an H level signal indicating that to the AND circuit 64, and when it is determined that Expression (1) is not satisfied, the comparison circuit 114 is L level indicating that. Is output to the AND circuit 64.

図3に戻り、次に、ブロック境界候補判定部51の判定部63について説明する。   Returning to FIG. 3, the determination unit 63 of the block boundary candidate determination unit 51 will be described next.

判定部63は、判定部61から供給された注目画素差分値DAが、後述するように制御部53により設定された評価値Hより小さいか否かを判定する(式(3)が成立するか否かを判定する)。
H>注目画素差分値DA・・・(3)
The determination unit 63 determines whether the pixel-of-interest difference value DA supplied from the determination unit 61 is smaller than an evaluation value H set by the control unit 53 as will be described later (whether equation (3) is satisfied) Or not).
H> Remarked pixel difference value DA (3)

判定部63は、式(3)が成立すると判定した場合、Hレベルとなる信号をAND回路64に出力し、式(3)が成立しないと判定した場合、Lレベルとなる信号をAND回路64に出力する。   The determination unit 63 outputs an H level signal to the AND circuit 64 when it is determined that the expression (3) is satisfied, and outputs an L level signal when the expression (3) is not satisfied. Output to.

図5の例では、画素E,Fの輝度差の絶対値が、評価値Hより小さいか否かが判定される。   In the example of FIG. 5, it is determined whether or not the absolute value of the luminance difference between the pixels E and F is smaller than the evaluation value H.

ブロック境界を挟んで隣接する画素間の輝度差の絶対値は一定以上あるが、それは、画像上の輪郭の内側と外側のそれぞれに属する互いに隣接する画素間の輝度差の絶対値より通常小さい。   Although the absolute value of the luminance difference between adjacent pixels across the block boundary is above a certain level, it is usually smaller than the absolute value of the luminance difference between adjacent pixels belonging to the inside and outside of the contour on the image.

評価値Hは、画像上の輪郭の内側と外側のそれぞれに属して互いに隣接する画素間の輝度差の絶対値を一般的に表す値であるので、注目画素差分値DAが、評価値Hより小さい場合(式(3)が成立する場合)、注目位置は、式(1),(2)が成立することを条件として、ブロック境界である可能性が高い。そこで、判定部62はこのとき、注目位置は、ブロック境界候補であると判定し、その旨を示すHレベルの信号をAND回路64に出力する。一方、注目画素差分値DAが、評価値H以上である場合(式(3)が成立しない場合)、注目位置は、ブロック境界である可能性が低い(輪郭部分である可能性が高い)。そこで、判定部63はこのとき、注目位置は、ブロック境界候補ではないと判定し、その旨を表すLレベルの信号がAND回路64に出力する。   Since the evaluation value H is a value that generally represents the absolute value of the luminance difference between adjacent pixels belonging to the inside and outside of the contour on the image, the target pixel difference value DA is greater than the evaluation value H. When it is small (when Expression (3) is satisfied), the target position is highly likely to be a block boundary on condition that Expressions (1) and (2) are satisfied. Accordingly, at this time, the determination unit 62 determines that the target position is a block boundary candidate, and outputs an H level signal indicating that to the AND circuit 64. On the other hand, when the pixel-of-interest difference value DA is equal to or greater than the evaluation value H (when Expression (3) is not established), the target position is unlikely to be a block boundary (highly likely to be an outline portion). Accordingly, at this time, the determination unit 63 determines that the target position is not a block boundary candidate, and outputs an L level signal indicating that to the AND circuit 64.

すなわち評価値Hを大きな値に設定すればするほど、注目位置がブロック境界候補であると判定され易くなり、確実にブロック境界を検出することができる。しかしながらこのことは、ブロック境界でない部分(輪郭部分)がブロック境界と誤認されやすくなることを意味している。   That is, as the evaluation value H is set to a larger value, it is easier to determine that the target position is a block boundary candidate, and the block boundary can be reliably detected. However, this means that a portion (contour portion) that is not a block boundary is easily misidentified as a block boundary.

なお、判定部61における判定条件(式(1))および判定部62における判定条件(式(2))の他に、判定部63における判定条件(式(3))をさらに設けたのは、輪郭部分がブロック境界候補に認識されることをさらに確実に防止するためである。   In addition to the determination condition (equation (1)) in the determination unit 61 and the determination condition (expression (2)) in the determination unit 62, the determination condition (expression (3)) in the determination unit 63 is further provided. This is to more reliably prevent the contour portion from being recognized as a block boundary candidate.

このように判定部61乃至63で、それぞれの判定条件によって注目位置がブロック境界候補であるか否かの判定がなされる。   In this manner, the determination units 61 to 63 determine whether or not the target position is a block boundary candidate according to each determination condition.

AND回路63には、判定部61乃至63での判定結果を表す信号が入力され、そこで、その論理積演算がなされる。したがってAND回路64からは、判定部61乃至判定653での判定結果のすべてが注目位置はブロック境界候補である旨を表しているとき(注目位置が、式(1)乃至式(3)の条件を満たしているとき)、Hレベルの信号がブロック境界判定部52に出力される(ブロック境界候補判定部51全体として、注目位置がブロック境界候補である旨が通知される)。   The AND circuit 63 receives a signal representing the determination result from the determination units 61 to 63, and performs a logical product operation there. Therefore, from the AND circuit 64, when all of the determination results in the determination units 61 to 653 indicate that the position of interest is a block boundary candidate (the position of interest is the condition of Expression (1) to Expression (3)). ), An H level signal is output to the block boundary determination unit 52 (the block boundary candidate determination unit 51 as a whole is notified that the target position is a block boundary candidate).

一方、判定部61乃至判定部63の判定結果のいずれか1つでも注目位置はブロック境界候補ではない旨を表しているとき(式(1)乃至式(3)の条件を満たしていないとき)、Lレベルの信号がブロック境界判定部52に出力される(ブロック境界候補判定部51全体として、注目位置はブロック境界候補ではない旨が通知される)。   On the other hand, when any one of the determination results of the determination unit 61 to the determination unit 63 indicates that the target position is not a block boundary candidate (when the conditions of the expressions (1) to (3) are not satisfied) , An L-level signal is output to the block boundary determination unit 52 (the block boundary candidate determination unit 51 as a whole is notified that the target position is not a block boundary candidate).

次に、図9を参照して、ブロック境界判定部52の構成を説明する。   Next, the configuration of the block boundary determination unit 52 will be described with reference to FIG.

遅延部121を構成するm個の遅延回路R1乃至Rmは、ブロック境界候補判定部51からの判定結果を8画素分遅延させて、連続性確認回路122に出力する。すなわち連続性確認回路122には、注目位置および注目位置から左右方向に8画素ずつ離れた境界に対するブロック境界候補判定部51の判定結果が同期して入力される。   The m delay circuits R1 to Rm constituting the delay unit 121 delay the determination result from the block boundary candidate determination unit 51 by 8 pixels and output the result to the continuity confirmation circuit 122. That is, to the continuity confirmation circuit 122, the determination result of the block boundary candidate determination unit 51 with respect to the target position and the boundary separated from the target position by 8 pixels in the left-right direction is input in synchronization.

連続性確認回路122は、制御部53により設定された数(=2n−1)に基づく、図4に示したような、注目位置と、それから左右方向にnブロック分離れた境界までの1ブロック間隔にある境界(図4中、下向きの矢印で示されている境界)に対するブロック境界候補判定部51の判定結果を取得するために、必要な遅延回路Rを選択する。   The continuity check circuit 122 is based on the number (= 2n−1) set by the control unit 53, and is one block from the attention position and the boundary separated by n blocks in the left-right direction as shown in FIG. In order to obtain the determination result of the block boundary candidate determination unit 51 for the boundary at the interval (the boundary indicated by the downward arrow in FIG. 4), the necessary delay circuit R is selected.

例えば、制御部53により設定された数が3(=2×2−1)である場合、連続性確認回路122は、遅延部121の遅延回路R1とR2を選択する。すなわちこの場合、図1を例として説明すれば、遅延されずに入力された境界P0の判定結果、遅延回路R1により8画素分遅延された境界P1の判定結果、および遅延回路R2によりさらに8画素分遅延された境界P1の判定結果が同期して連続性確認回路122に入力される。   For example, when the number set by the control unit 53 is 3 (= 2 × 2-1), the continuity confirmation circuit 122 selects the delay circuits R1 and R2 of the delay unit 121. That is, in this case, referring to FIG. 1 as an example, the determination result of the boundary P0 input without delay, the determination result of the boundary P1 delayed by 8 pixels by the delay circuit R1, and an additional 8 pixels by the delay circuit R2 The determination result of the boundary P1 delayed by the minute is input to the continuity confirmation circuit 122 in synchronization.

そして連続性確認回路122は、その選択した遅延回路Rに入力された確認対象境界に対するブロック境界候補判定部51による判定結果に基づいて、ブロック境界の連続性を判定する。   Then, the continuity confirmation circuit 122 determines the continuity of the block boundary based on the determination result by the block boundary candidate determination unit 51 for the confirmation target boundary input to the selected delay circuit R.

具体的には、図10に示すように、(2n−1)個の1ブロック間隔の境界における、ブロック境界候補判定部51の判定結果の論理積がとられる。すなわちすべての確認対象境界がブロック境界候補とされている場合、連続性確認回路122は、注目位置をブロック境界と判定する。ここでの判定結果は、制御部53に通知される。   Specifically, as shown in FIG. 10, the logical product of the determination results of the block boundary candidate determination unit 51 is taken at the boundary of (2n-1) 1 block intervals. That is, when all the confirmation target boundaries are set as block boundary candidates, the continuity confirmation circuit 122 determines that the target position is a block boundary. The determination result here is notified to the control unit 53.

次に、制御部53の動作を、図11のフローチャートを参照して説明する。   Next, the operation of the control unit 53 will be described with reference to the flowchart of FIG.

ステップS1において、制御部53は、ブロック境界候補判定部51の判定部62の判定で使用される評価値D(式(2))と、判定部63の判定で使用される評価値H(式(3))を、設定可能な値のうち、最も大きな値とする。評価値D,Hを大きな値にすることにより、段差が大きいブロック境界でも、輪郭境界であるとして見逃すことなくブロック境界候補と判定することができる。   In step S1, the control unit 53 evaluates the evaluation value D (equation (2)) used in the determination of the determination unit 62 of the block boundary candidate determination unit 51 and the evaluation value H (expression (equation) used in the determination of the determination unit 63. Let (3)) be the largest value among settable values. By making the evaluation values D and H large, even block boundaries with large steps can be determined as block boundary candidates without being overlooked as being contour boundaries.

制御部53はまた、ブロック境界判定部52のブロック境界の連続性判定で確認される境界(確認対象境界)の数(2n−1)を最大に設定する。評価値D,Hを大きくすることにより、ブロック境界候補判定部51で、段差の小さい輪郭境界がブロック境界候補であると判定されやすくなるが(誤認されやすくなるが)、連続性判定における確認対象境界の数を多くすることで、ブロック境界候補と判定された輪郭境界が、ブロック境界と判定されることを防止することができる。   The control unit 53 also sets the number (2n−1) of boundaries (confirmation target boundaries) confirmed by the block boundary continuity determination of the block boundary determination unit 52 to the maximum. By increasing the evaluation values D and H, it becomes easy for the block boundary candidate determination unit 51 to determine that a contour boundary with a small step is a block boundary candidate (although it is likely to be mistaken), but a confirmation target in continuity determination By increasing the number of boundaries, it is possible to prevent a contour boundary determined as a block boundary candidate from being determined as a block boundary.

次に、ステップS2において、制御部53は、ブロック境界判定部52により、注目位置がブロック境界であると判定されたか否かを判定し、ブロック境界ではないと判定された場合、ステップS3に進む。   Next, in step S2, the control unit 53 determines whether or not the position of interest is determined to be a block boundary by the block boundary determination unit 52. If it is determined that the target position is not a block boundary, the control unit 53 proceeds to step S3. .

ステップS3において、制御部53は、評価値D,Hの大きさを1ランク(所定の値だけ)小さくする。制御部53はまた、ブロック境界の連続性判定の確認対象境界の数を1ランク(所定の数だけ)少なくする。確認対象境界の数が多ければ多いほど、原理的にはブロック境界を正確に検出することができるが、確認対象境界の数が多ければ多いほど、図12に示すように、確認対象境界が画像の端VLに一致する可能性が高くなる。確認対象境界が画像の端VLに一致すると、注目位置がブロック境界であっても、注目位置はブロック境界ではないと判定され、結局、ブロック境界を見逃してしまうことになる。   In step S3, the control unit 53 reduces the magnitudes of the evaluation values D and H by one rank (by a predetermined value). The control unit 53 also reduces the number of confirmation target boundaries for block boundary continuity determination by one rank (a predetermined number). As the number of confirmation target boundaries increases, in principle, the block boundary can be accurately detected. However, as the number of confirmation target boundaries increases, as shown in FIG. There is a high possibility that it will coincide with the end VL. When the confirmation target boundary matches the edge VL of the image, even if the target position is a block boundary, it is determined that the target position is not a block boundary, and eventually the block boundary is missed.

そこで、連続性判定の確認対象境界の数を減らし、図12に示したような不具合が生じる可能性を低くする。そして一方で、評価値D,Hを1ランクだけ小さくして、輪郭境界がブロック境界候補と判定される可能性を低くし、全体としてブロック境界が適切に検出されるようにしている。   Therefore, the number of boundaries to be confirmed for continuity determination is reduced to reduce the possibility of occurrence of a problem as shown in FIG. On the other hand, the evaluation values D and H are reduced by one rank to reduce the possibility that the contour boundary is determined as a block boundary candidate, and the block boundary is appropriately detected as a whole.

次に、ステップS4で、連続判定の確認対象境界の数<3であるか否かを判定し、確認対象境界の数<3ではないと判定した場合、ステップS2に戻り、制御部53は、それ以降の処理を実行する。   Next, in step S4, it is determined whether or not the number of confirmation target boundaries for continuous determination <3. If it is determined that the number of confirmation target boundaries <3, the process returns to step S2 and the control unit 53 The subsequent processing is executed.

このようにステップS3の処理が繰り返し行われ、連続性判定の確認対象境界の数=3になったとき、ブロック境界判定部52は、そのいずれもがブロック境界候補であるとされていなくても、図13に示すように、注目位置の他、前または後の境界のいずれか一方がブロック境界候補であると判定されている場合、注目位置をブロック境界であると判定する。このようにすることにより、図14に示すように、注目位置P1の他の境界P0,P2のうちの、境界P2が画像の端VLに一致しても、本来ブロック境界である注目位置をブロック境界であると判定することができるようになる。   As described above, when the process of step S3 is repeatedly performed and the number of confirmation target boundaries for continuity determination is 3, the block boundary determination unit 52 may determine that none of them is a block boundary candidate. As shown in FIG. 13, when it is determined that either the front or rear boundary other than the target position is a block boundary candidate, the target position is determined to be a block boundary. By doing so, as shown in FIG. 14, even if the boundary P2 coincides with the edge VL of the image among the other boundaries P0 and P2 of the target position P1, the target position that is originally a block boundary is blocked. It becomes possible to determine that it is a boundary.

ステップS2で、注目位置がブロック境界であると判定されたとき、ステップS5に進み、制御部53は、フィルタリング部54を制御して、注目位置を挟む所定の範囲内の画素に対して、ブロックノイズを低減するためのフィルタリングを施させる。   When it is determined in step S2 that the target position is a block boundary, the process proceeds to step S5, and the control unit 53 controls the filtering unit 54 to block the pixels within a predetermined range sandwiching the target position. Apply filtering to reduce noise.

図5の例では、注目位置Pを挟む8個の画素B,C,D,E,F,G,H,Iに対してフィルタリング処理を施される。   In the example of FIG. 5, filtering processing is performed on the eight pixels B, C, D, E, F, G, H, and I sandwiching the target position P.

ここでフィルタリング処理について簡単に説明する。はじめに、基本補正量が式(4)で算出される。
基本補正量=|f−e|−(|e−d|+|g−f|)/2・・・(4)
Here, the filtering process will be briefly described. First, the basic correction amount is calculated by Expression (4).
Basic correction amount = | f−e | − (| ed−d | + | g−f |) / 2 (4)

例えばそれらの画素の画素値が、図15に示すように、ITU−RBT.601の定義による値で、64,64,56,64,128,136,128,128である場合、基本補正量=56(=64−(8+8)/2)となる。   For example, the pixel values of these pixels are ITU-RBT. In the case of 64, 64, 56, 64, 128, 136, 128, and 128 according to the definition of 601, the basic correction amount = 56 (= 64− (8 + 8) / 2).

そして基本補正量に基づいて、注目位置Pからの距離に応じた各画素に対する補正量が以下のように算出される。
画素E,Fの補正量=基本補正量/2
画素D,Gの補正量=基本補正量/4
画素C,Hの補正量=基本補正量/8
画素B,Iの補正量=基本補正量/16
Based on the basic correction amount, the correction amount for each pixel corresponding to the distance from the target position P is calculated as follows.
Correction amount of pixels E and F = basic correction amount / 2
Correction amount of pixels D and G = basic correction amount / 4
Correction amount of pixels C and H = basic correction amount / 8
Correction amount of pixels B and I = basic correction amount / 16

そして以上のように算出された補正量が各画素の輝度値に加減算される。なお、f−e<0である場合、画素F,G,H,Iの輝度値f,g,h,iに、それぞれの補正量が加算され、画素B,C,D,Eの輝度値b,c,d,eから、それぞれの補正量が減算される。一方、f−e>0である場合、画素F,G,H,Iの輝度値f,g,h,iから、それぞれの補正量が減算され、画素B,C,D,Eの輝度値b,c,d,eに、それぞれの補正量が加算される。すなわち画素b,c,d,e,f,g,h,iの輝度値は、図16の点線で示されるように補正される。   The correction amount calculated as described above is added to or subtracted from the luminance value of each pixel. Note that when fe <0, the respective correction amounts are added to the luminance values f, g, h, and i of the pixels F, G, H, and I, and the luminance values of the pixels B, C, D, and E are obtained. The respective correction amounts are subtracted from b, c, d, and e. On the other hand, when fe> 0, the respective correction amounts are subtracted from the luminance values f, g, h, i of the pixels F, G, H, I, and the luminance values of the pixels B, C, D, E are obtained. The respective correction amounts are added to b, c, d, and e. That is, the luminance values of the pixels b, c, d, e, f, g, h, i are corrected as shown by the dotted lines in FIG.

ステップS4で、確認対象境界の数<3であると判定された場合、またはステップS5でフィルタリング処理が実行された場合、制御部53は、この処理を終了し、次の注目位置に対して、ステップS1乃至ステップS5の処理を同様に実行する。   When it is determined in step S4 that the number of confirmation target boundaries <3, or when the filtering process is executed in step S5, the control unit 53 ends this process, and for the next target position, The processing from step S1 to step S5 is executed in the same manner.

なお、以上においては、ブロックが8画素×8画素で構成されている場合を例として説明したが、図17に示すように、ビデオCDなどのMPEG1の処理単位である16画素×16画素を1つのブロックとして取り扱いこともできる。   In the above description, the case where the block is composed of 8 pixels × 8 pixels has been described as an example. However, as shown in FIG. 17, 16 pixels × 16 pixels, which are MPEG1 processing units such as a video CD, are set to 1 It can also be handled as one block.

また以上においては、DVDの再生装置1を例として説明したが、DVDレコーダ、HDDレコーダ、CSデジタルチューナなどの機器にも適用することができる。   In the above description, the DVD playback apparatus 1 has been described as an example, but the present invention can also be applied to devices such as a DVD recorder, an HDD recorder, and a CS digital tuner.

また以上においては、ブロックノイズ低減部18の制御部53が、ブロック境界判定部52の判定結果に基づいて、評価値D,Hや連続性判定のための確認対象境界の数を設定するようにしたが、例えば、長期間記録がされた画像のように、予めブロックノイズが発生しやすい画像を再生するときは、ユーザが、操作部32を操作して、ブロックノイズ境界をより確実に検出することができるように、評価値D,Hを高めに設定したり、確認対象境界の数を多く設定することもできる。   Further, in the above, the control unit 53 of the block noise reduction unit 18 sets the evaluation values D and H and the number of confirmation target boundaries for continuity determination based on the determination result of the block boundary determination unit 52. However, for example, when reproducing an image in which block noise is likely to occur in advance, such as an image recorded for a long period of time, the user operates the operation unit 32 to more reliably detect the block noise boundary. The evaluation values D and H can be set higher or the number of confirmation target boundaries can be set larger.

上述した一連の処理は、ハードウエアにより実現させることもできるが、ソフトウエアにより実現させることもできる。一連の処理をソフトウエアにより実現する場合には、そのソフトウエアを構成するプログラムがコンピュータにインストールされ、そのプログラムがコンピュータで実行されることより、上述したブロックノイズ低減部18が機能的に実現される。   The series of processes described above can be realized by hardware, but can also be realized by software. When a series of processing is realized by software, a program constituting the software is installed in a computer, and the program is executed by the computer, so that the block noise reduction unit 18 described above is functionally realized. The

図18は、上述のようなブロックノイズ低減部18として機能するコンピュータ501の一実施の形態の構成を示すブロック図である。CPU(Central Processing Unit)511にはバス515を介して入出力インタフェース516が接続されており、CPU511は、入出力インタフェース516を介して、ユーザから、キーボード、マウスなどよりなる入力部518から指令が入力されると、例えば、ROM(Read Only Memory)512、ハードディスク514、またはドライブ520に装着される磁気ディスク531、光ディスク532、光磁気ディスク533、若しくは半導体メモリ534などの記録媒体に格納されているプログラムを、RAM(Random Access Memory)513にロードして実行する。これにより、上述した各種の処理が行われる。さらに、CPU511は、その処理結果を、例えば、入出力インタフェース516を介して、LCD(Liquid Crystal Display)などよりなる出力部517に必要に応じて出力する。なお、プログラムは、ハードディスク514やROM512に予め記憶しておき、コンピュータ501と一体的にユーザに提供したり、磁気ディスク531、光ディスク532、光磁気ディスク533,半導体メモリ534等のパッケージメディアとして提供したり、衛星、ネットワーク等から通信部519を介してハードディスク514に提供することができる。   FIG. 18 is a block diagram illustrating a configuration of an embodiment of a computer 501 that functions as the block noise reduction unit 18 as described above. An input / output interface 516 is connected to a CPU (Central Processing Unit) 511 via a bus 515, and the CPU 511 receives a command from an input unit 518 such as a keyboard and a mouse via the input / output interface 516. When input, it is stored in a recording medium such as a read only memory (ROM) 512, a hard disk 514, or a magnetic disk 531, an optical disk 532, a magneto-optical disk 533, or a semiconductor memory 534 mounted in the drive 520. The program is loaded into a RAM (Random Access Memory) 513 and executed. Thereby, the various processes described above are performed. Further, the CPU 511 outputs the processing result to an output unit 517 such as an LCD (Liquid Crystal Display) via the input / output interface 516 as necessary. The program is stored in advance in the hard disk 514 and the ROM 512 and provided to the user integrally with the computer 501 or as a package medium such as the magnetic disk 531, the optical disk 532, the magneto-optical disk 533, and the semiconductor memory 534. Or can be provided to the hard disk 514 via the communication unit 519 from a satellite, a network, or the like.

なお、本明細書において、記録媒体により提供されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In the present specification, the step of describing the program provided by the recording medium is not limited to the processing performed in chronological order according to the described order, but is not necessarily performed in chronological order. It also includes processes that are executed individually.

従来のブロック境界検出方法を説明する図である。It is a figure explaining the conventional block boundary detection method. 本発明を適用した再生装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the reproducing | regenerating apparatus to which this invention is applied. 図2のブロックノイズ低減部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the block noise reduction part of FIG. 図3のブロック境界判定部52の動作を説明する図である。It is a figure explaining operation | movement of the block boundary determination part 52 of FIG. 図3のブロック境界候補判定部51の動作を説明する図である。It is a figure explaining operation | movement of the block boundary candidate determination part 51 of FIG. 図3の判定部61の構成例を示すブロック図である。It is a block diagram which shows the structural example of the determination part 61 of FIG. 輪郭部分の画素データを示す図である。It is a figure which shows the pixel data of an outline part. 図3の判定部62の構成例を示すブロック図である。It is a block diagram which shows the structural example of the determination part 62 of FIG. 図3のブロック境界判定部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the block boundary determination part of FIG. 図3のブロック境界判定部の動作を説明する他の図である。It is another figure explaining operation | movement of the block boundary determination part of FIG. 図3の制御部の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the control part of FIG. 図3のブロック境界判定部の動作を説明する他の図である。It is another figure explaining operation | movement of the block boundary determination part of FIG. 図3のブロック境界判定部の動作を説明する他の図である。It is another figure explaining operation | movement of the block boundary determination part of FIG. 図3のブロック境界判定部の動作を説明する他の図である。It is another figure explaining operation | movement of the block boundary determination part of FIG. 図3のフィルタリング部の動作を説明する図である。It is a figure explaining operation | movement of the filtering part of FIG. 図3のフィルタリング部の動作を説明する他の図である。It is another figure explaining operation | movement of the filtering part of FIG. ブロックの構成を示す図である。It is a figure which shows the structure of a block. パーソナルコンピュータの構成例を示すブロック図である。And FIG. 16 is a block diagram illustrating a configuration example of a personal computer.

符号の説明Explanation of symbols

18 ブロックノイズ低減部,51 ブロック境界候補判定部,52 ブロック境界判定部,53 制御部,54 フィルタリング部,61 判定部,62 判定部,63 判定部 18 block noise reduction unit, 51 block boundary candidate determination unit, 52 block boundary determination unit, 53 control unit, 54 filtering unit, 61 determination unit, 62 determination unit, 63 determination unit

Claims (7)

ブロック符号化されたデジタル画像データをブロック復号して出力する場合に、ブロック復号されて順次供給される入力画像データのブロックノイズを低減させる信号処理装置において、
前記入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、前記注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かを判定し、前記注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かを判定し、前記注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かを判定し、各判定結果に基づいて、前記注目位置がブロック境界候補であるか否かを判定する第1の判定手段と、
前記注目位置および前記注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、前記確認対象境界が、前記第1の判定手段によりブロック境界候補であると判定されたか否かを判定し、その判定結果に基づいて、前記注目位置がブロック境界であるか否かを判定する第2の判定手段と、
前記第2の判定手段によりブロック境界であると判定された前記注目位置を含む所定の範囲内の画素に対してブロックノイズの低減処理を施す処理手段と
を備えることを特徴とする信号処理装置。
In a signal processing device that reduces block noise of input image data that is block-decoded and sequentially supplied when block-coded digital image data is block-decoded and output,
Regarding the input image data, a difference value of pixel values between pixels adjacent to a predetermined position of interest and an average value of difference values of adjacent pixel values within a predetermined range including the position of interest satisfy the first condition. Whether or not the difference between the average value of the pixel values of the preceding pixels of the target position and the average value of the pixel values of the subsequent pixels and the first evaluation value satisfy the second condition. Whether the pixel value difference between the pixels adjacent to the target position and the second evaluation value satisfy the third condition, and based on each determination result, the target position is First determination means for determining whether or not a block boundary candidate;
The target position and a predetermined number of boundaries that are one block interval from the target position are used as a check target boundary, and it is determined whether or not the check target boundary is determined as a block boundary candidate by the first determination unit. , Based on the determination result, second determination means for determining whether or not the target position is a block boundary;
A signal processing apparatus comprising: processing means for performing block noise reduction processing on pixels within a predetermined range including the target position determined to be a block boundary by the second determination means.
前記第2の判定手段による判定結果に基づいて、前記第1の評価値および前記第2の評価値の値、並びに前記確認対象境界の数を変更する変更手段
をさらに備えることを特徴とする請求項1に記載の信号処理装置。
The apparatus further comprises changing means for changing the values of the first evaluation value, the second evaluation value, and the number of the confirmation target boundaries based on the determination result by the second determination means. Item 2. The signal processing device according to Item 1.
前記変更手段は、前記第1の条件または前記第2の条件を満たしやすくなる値から、満たしにくくなる値へ、前記第1の評価値または前記第2の評価値の値を変更し、前記確認対象境界の数を大きい数から小さい数に変更する
ことを特徴とする請求項2に記載の信号処理装置。
The changing means changes the value of the first evaluation value or the second evaluation value from a value that makes it easy to satisfy the first condition or the second condition to a value that makes it difficult to satisfy the condition. The signal processing device according to claim 2, wherein the number of target boundaries is changed from a large number to a small number.
前記第2の判定手段は、前記注目位置および前記確認対象境界のすべてが、前記第1の判定手段によりブロック境界候補であると判定された場合、前記注目位置はブロック境界であると判定する
ことを特徴とする請求項1に記載の信号処理装置。
The second determination unit determines that the target position is a block boundary when all of the target position and the confirmation target boundary are determined to be block boundary candidates by the first determination unit. The signal processing apparatus according to claim 1.
前記第2の判定手段は、前記確認対象境界の数が3個になったとき、前記注目位置がブロック境界候補であって、2個の確認対象境界のうちのいずれか一方がブロック境界候補であるとき、前記注目位置はブロック境界であると判定する
ことを特徴とする請求項4に記載の信号処理装置。
When the number of confirmation target boundaries is three, the second determination unit is configured such that the target position is a block boundary candidate, and one of the two confirmation target boundaries is a block boundary candidate. The signal processing device according to claim 4, wherein the target position is determined to be a block boundary.
ブロック符号化されたデジタル画像データをブロック復号して出力する場合に、ブロック復号されて順次供給される入力画像データのブロックノイズを低減させる信号処理方法において、
前記入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、前記注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かを判定し、前記注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かを判定し、前記注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かを判定し、各判定結果に基づいて、前記注目位置がブロック境界候補であるか否かを判定する第1の判定ステップと、
前記注目位置および前記注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、前記確認対象境界が、前記第1の判定ステップの処理でブロック境界候補であると判定されたか否かを判定し、その判定結果に基づいて、前記注目位置がブロック境界であるか否かを判定する第2の判定ステップと、
前記第2の判定ステップの処理でブロック境界であると判定された前記注目位置を含む所定の範囲内の画素に対してブロックノイズの低減処理を施す処理ステップと
を含むことを特徴とする信号処理方法。
In a signal processing method for reducing block noise of input image data that is block-decoded and sequentially supplied when block-coded digital image data is block-decoded and output,
Regarding the input image data, a difference value of pixel values between pixels adjacent to a predetermined position of interest and an average value of difference values of adjacent pixel values within a predetermined range including the position of interest satisfy the first condition. Whether or not the difference between the average value of the pixel values of the preceding pixels of the target position and the average value of the pixel values of the subsequent pixels and the first evaluation value satisfy the second condition. Whether the pixel value difference between the pixels adjacent to the target position and the second evaluation value satisfy the third condition, and based on each determination result, the target position is A first determination step of determining whether or not the block boundary candidate;
Whether or not the target position and a predetermined number of boundaries at one block interval from the target position are to be confirmed, and whether or not the confirmation target boundary is determined to be a block boundary candidate in the process of the first determination step. A second determination step of determining whether or not the target position is a block boundary based on the determination result;
A processing step of performing block noise reduction processing on a pixel within a predetermined range including the target position determined to be a block boundary in the processing of the second determination step. Method.
ブロック符号化されたデジタル画像データをブロック復号して出力する場合に、ブロック復号されて順次供給される入力画像データのブロックノイズを低減させるためのプログラムであって、
前記入力画像データについて、所定の注目位置に隣接する画素間の画素値の差分値と、前記注目位置を含む所定範囲内の隣接画素値の差分値の平均値とが、第1の条件を満たすか否かの判定、前記注目位置の前段の複数画素の画素値の平均値と後段の複数画素の画素値の平均値の差分、および第1の評価値が第2の条件を満たすか否かの判定、前記注目位置に隣接する画素間の画素値の差分と第2の評価値とが第3の条件を満たすか否かの判定を制御するとともに、各判定結果に基づく、前記注目位置がブロック境界候補であるか否かの判定を制御する第1の判定制御ステップと、
前記注目位置および前記注目位置から1ブロック間隔にある所定数の境界を確認対象境界とし、前記確認対象境界が、前記第1の判定制御ステップの処理でブロック境界候補であると判定されたか否かを判定し、その判定結果に基づく、前記注目位置がブロック境界であるか否かの判定を制御する第2の判定制御ステップと、
前記第2の判定制御ステップの処理でブロック境界であると判定された前記注目位置を含む所定の範囲内の画素に対するブロックノイズの低減処理を制御する処理制御ステップと
を含む処理をコンピュータに実行させることを特徴とするプログラム。
A program for reducing block noise of input image data that is block-decoded and sequentially supplied when block-coded digital image data is block-decoded and output.
Regarding the input image data, a difference value of pixel values between pixels adjacent to a predetermined position of interest and an average value of difference values of adjacent pixel values within a predetermined range including the position of interest satisfy the first condition. Whether the first evaluation value satisfies the second condition or not, and the difference between the average value of the pixel values of the plurality of pixels at the preceding stage and the average value of the pixel values of the plurality of pixels at the subsequent stage of the target position. The determination of whether or not the difference between the pixel values between the pixels adjacent to the target position and the second evaluation value satisfies the third condition, and the target position based on each determination result is A first determination control step for controlling determination of whether or not the block boundary candidate;
Whether or not the target position and a predetermined number of boundaries at one block interval from the target position are used as check target boundaries, and the check target boundary is determined to be a block boundary candidate in the processing of the first determination control step. And a second determination control step for controlling determination of whether or not the target position is a block boundary based on the determination result;
Causing the computer to execute a process including a process control step for controlling a block noise reduction process for pixels within a predetermined range including the target position determined to be a block boundary in the process of the second determination control step. A program characterized by that.
JP2003295284A 2003-08-19 2003-08-19 Signal processing apparatus and method, and program Withdrawn JP2005065098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003295284A JP2005065098A (en) 2003-08-19 2003-08-19 Signal processing apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003295284A JP2005065098A (en) 2003-08-19 2003-08-19 Signal processing apparatus and method, and program

Publications (1)

Publication Number Publication Date
JP2005065098A true JP2005065098A (en) 2005-03-10

Family

ID=34371583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003295284A Withdrawn JP2005065098A (en) 2003-08-19 2003-08-19 Signal processing apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP2005065098A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312369A (en) * 2006-04-18 2007-11-29 Pioneer Electronic Corp Block noise removal device
JP2011114704A (en) * 2009-11-27 2011-06-09 Toshiba Corp Image processing apparatus and image processing method for the same
US7974491B2 (en) 2006-04-18 2011-07-05 Pioneer Corporation Block noise removal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312369A (en) * 2006-04-18 2007-11-29 Pioneer Electronic Corp Block noise removal device
US7974491B2 (en) 2006-04-18 2011-07-05 Pioneer Corporation Block noise removal device
JP2011114704A (en) * 2009-11-27 2011-06-09 Toshiba Corp Image processing apparatus and image processing method for the same

Similar Documents

Publication Publication Date Title
JP4649355B2 (en) Block noise detection method and apparatus, and block noise reduction method and apparatus
JP5144545B2 (en) Moving picture codec apparatus and method
JP2004215263A (en) Sequential scan conversion method and its apparatus
JPH10145779A (en) Field detection device and method, image encoding device and method, and recording medium and its recording method
JPH0955879A (en) Television signal conversion device, picture encoding device, and picture decoding device
JP5030495B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, PROGRAM, AND RECORDING MEDIUM
US20090002567A1 (en) Image analysis apparatus and image analysis method
JP2005065098A (en) Signal processing apparatus and method, and program
JP2002232889A (en) Block distortion reduction circuit, reproducing device, receiver, block distortion reduction method
US20040233806A1 (en) Recording device and method, recording medium and program
JP4746909B2 (en) Auxiliary data processing of video sequences
US8594454B2 (en) Image production device, reproduction device, reproduction system, image production method, and reproduction method
JP2003179886A (en) Image processing apparatus and method, recording medium, and program
JP4191385B2 (en) Trick play playback of MPEG encoded signals
JP4210939B2 (en) Image recording apparatus and method, and program
JP2002232890A (en) Block distortion reduction circuit, reproducing device, receiver, block distortion reduction method
JP4151641B2 (en) Video signal processing apparatus and video signal processing method
JPWO2008129648A1 (en) Frame rate conversion apparatus, frame rate conversion method, and moving picture encoding apparatus
JP2005072824A (en) Method, device, and program for reducing block distortion
JP2508440B2 (en) High efficiency encoder
JPH08265751A (en) Picture reproducing device by mpeg system
JP2010050860A (en) Image display apparatus, recorded image reproducing apparatus and image processing method
JP2007129489A (en) Picture reproducer and picture reproduction method
KR100195017B1 (en) Noise Reduction Device of Image Signal Processing System
JP4297192B2 (en) Video signal processing device

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: 20061107