JP2005065098A - Signal processing apparatus and method, and program - Google Patents
Signal processing apparatus and method, and program Download PDFInfo
- 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
- determination
- block boundary
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
【課題】ブロックノイズを適切に検出することができる。
【解決手段】判定部51は、制御部53により設定された所定の評価値を用い、隣接するブロック間の輝度値の違いを利用したブロック境界候補の判定を行う。判定部52は、制御部53により設定された数に基づいて、注目位置と、それから左右方向にnブロック分離れた境界までの1ブロック間隔にある境界のそれぞれが、ブロック境界候補であると判定されたか否かを判定し、その判定結果に基づいて注目位置がブロック境界であるか否かを判定する。制御部53は、注目位置がブロック境界ではないと判定される度に、判定部51の評価値の大きさを変更させ、また注目位置がブロック境界であると判定されたとき、フィルタリング部54を制御して、注目位置を含む所定の範囲の画素値に対して、ブロックノイズを除去するための処理を施させる。
【選択図】図3Block noise can be detected appropriately.
A determination unit 51 uses a predetermined evaluation value set by a control unit 53 to determine a block boundary candidate using a difference in luminance value between adjacent blocks. Based on the number set by the control unit 53, the determination unit 52 determines that each of the target position and the boundary at one block interval from the boundary separated by n blocks in the left-right direction is a block boundary candidate. It is determined whether or not the target position is a block boundary based on the determination result. The control unit 53 changes the magnitude of the evaluation value of the determination unit 51 every time it is determined that the target position is not a block boundary, and when it is determined that the target position is a block boundary, the control unit 53 Control is performed to perform processing for removing block noise on a pixel value in a predetermined range including the target position.
[Selection] Figure 3
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.
例えば、格子模様の画像における格子部分とその背景部分(画像上の輪郭の内側と外側)の輝度差も、その程度は異なるがブロックノイズが発生しているブロック境界と同様に一定の差があるので、ブロック間の画素値の違いだけに着目してブロック境界を検出すると、輪郭部分をブロック境界と誤認してしまう。そこでこのように、ブロック境界が一定間隔に存在すること(ブロック境界の連続性)に着目してブロック境界を検出することで、より正確にブロック境界を検出することができる。
しかしながら、輝度差が小さく、そして偶然にも、ブロック間隔で連続して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)
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
回転駆動部12は、スピンドルモータなどから構成されており、ディスク2を例えば線速度一定(CLV)となるように回転駆動させる。駆動部13は、ディスク2の半径方向に移動させるためのスレッドモータなどのスライド機構などから構成されている。
The
RFプロセッサ14は、光ヘッド11からの電気信号の供給を受け、ディスク2に記録されているデータに応じた再生RF信号や、フォーカスエラー信号、トラッキングエラー信号を形成する。ここで形成されたフォーカスエラー信号およびトラッキングエラー信号は、サーボコントローラ15に供給される。再生RF信号は、MPEGデコーダ16に供給される。また、ディスク2から読み出されたアドレス情報などは、RFプロセッサ14からシステムコントローラ31に供給される。
The
サーボコントローラ15は、システムコントローラ31からの制御信号と、RFプロセッサ14からのフォーカスエラー信号およびトラッキングエラー信号に基づいて、回転駆動部12および駆動部13を制御する制御信号を形成し、これを回転駆動部12および駆動部13に供給する。これにより、再生装置1に装填されたディスク2を、回転駆動部12により線速度一定となるように制御するとともに、データが記録されているディスク2上のトラックを適正な大きさのスポット形状のレーザビームにより正確に走査することができる。
The
MPEGデコーダ16は、RFプロセッサ14からの再生RF信号に対して、逆量子化、逆DCT符号化などの処理を行って、MPEG方式でデータ圧縮されている画像データおよび音声データを復号し、圧縮符号化前の元の画像データおよび音声データを復元する。復号された音声データは、音声再生処理部17に供給され、画像データは、ブロックノイズ低減部18に供給される。
The
音声再生処理部17は、供給された復号されたデジタルオーディオデータから再生用のデジタルオーディオデータを形成する。ここで形成された再生用のデジタルオーディオデータは、デジタルI/F(図示せず)を通じて出力され、あるいは、D/A変換されて出力される。
The audio
ブロックノイズ低減部18は、MPEGデコーダ16からの復号された画像データ(正確には輝度信号)に対して、後述するブロックノイズを低減させるブロックノイズ低減処理を施し、処理後のデジタル画像データをデジタル出力エンコーダ19およびNTSC/PALエンコーダ22に供給する。
The block
デジタル出力エンコーダ19は、供給されたブロックノイズ低減処理後のデジタル画像データから出力用のデジタル画像データを形成し、これをデジタルI/F20およびデジタル画像データの出力端子21を通じて、例えばモニタ受像機(図示せず)などに供給する。
The
NTSC/PALエンコーダ22は、供給されたブロックノイズ低減処理後のデジタル画像データからNTSC方式/PAL方式に応じたデジタル画像データを形成し、これをD/A変換部23に供給する。D/A変換部23は、供給されたNTSC方式/PAL方式に変換されたデジタル画像データをアナログ信号に変換し、これをアナログ画像信号の出力端子24を通じて、例えばモニタ受像機などに供給する。
The NTSC /
システムコントローラ31は、再生装置1の各部を制御するものであり、CPU、ROM、RAM、EEPROMなどを備えたマイクロコンピュータである。操作部32は、使用者からの入力操作を受け付けるものであり、再生キー、停止キー、一時停止キーなどの種々の操作キーなどから構成されている。また、表示部33は、例えば、LCD(Liquid CrystalDisplay)により構成され、各種のガイダンスメッセージを表示する。
The
図3は、図2のブロックノイズ低減部18の構成例を示している。
FIG. 3 shows a configuration example of the block
ブロック境界候補判定部51には、MPEGデコーダ16からの復号された画像データの輝度信号が入力される。ブロック境界候補判定部51は、画像データの各画素値(輝度値)を、例えば水平方向に参照し、後述するように制御部53により設定された所定の評価値を用い、隣接するブロック間の画素値(輝度値)の違いを利用したブロック境界候補の判定を行い、その判定結果をブロック境界判定部52に通知する。
The luminance signal of the decoded image data from the
ブロック境界判定部52は、後述するように制御部53により設定された数(=2n−1)に基づいて、図4に示すように、注目する位置(注目位置)と、それから左右方向にnブロック分離れた境界までの1ブロック間隔にある境界(図4中、下向きの矢印で示されている境界)を確認対象境界とし、それらが、ブロック境界候補判定部51によりブロック境界候補であると判定されたか否かを判定し(連続性を判定し)、その判定結果に基づいて注目位置がブロック境界であるか否かを判定する。その判定結果は、制御部53に通知される。
Based on the number (= 2n−1) set by the
なお、ブロック境界判定部52は、別途入力される画素クロック信号を、例えば3ビットのカウンタで8画素ずつカウントすることで、注目位置から1ブロック間隔にある境界を特定することができる。
The block
制御部53は、ブロック境界判定部52により、注目位置がブロック境界ではないと判定される度に、ブロック境界候補判定部51において利用される評価値の大きさを変更させる(後述)。制御部53はまた、ブロック境界判定部52により、注目する位置がブロック境界であると判定されたとき、フィルタリング部54を制御して、ブロック境界と判定された注目位置を含む所定の範囲の画素値に対して、ブロックノイズを除去するためのフィルタ処理を施させる。
Whenever the block
なお、制御部53は、別途入力される画素クロック信号を、例えば3ビットのカウンタで8画素ずつカウントすることで、フィルタ処理が施される画素を特定することができる。
Note that the
フィルタリング部54は、制御部53の制御に従って、入力される画像データ(輝度信号)にフィルタリングを施す。すなわちフィルタリング部54は、フィルタリングの要求がない場合、原の輝度信号をデジタル出力エンコーダ19およびNTSC/PALエンコーダ22に出力し、フィルタリングの要求があった場合、原の輝度信号に代えて、フィルタリング処理を施した輝度信号をデジタル出力エンコーダ19およびNTSC/PALエンコーダ22に出力する。
The
遅延回路55には、MPEGデコーダ16からの復号された画像データの色信号が入力される。遅延回路55は、フィルタリング部54からの輝度信号と同期するように色信号を遅延させて、デジタル出力エンコーダ19およびNTSC/PALエンコーダ22に出力する。
The color signal of the decoded image data from the
次に、ブロック境界候補判定部51の構成について説明する。ブロック境界候補判定部51の判定部61には、MPEGデコーダ16からの画像データ(輝度信号)が入力される。
Next, the configuration of the block boundary
判定部61は、注目する位置(注目位置)を挟んで隣接する画素(以下、注目画素)間の輝度差の絶対値(以下、注目画素差分値DAと称する)が、注目画素と所定の位置関係にある画素群(以下、参照画素と称する)の隣接画素間の輝度差の絶対値(以下、参照画素差分値DBと称する)の平均値より大きいか否かを判定する(すなわち式(1)が成立するか否かを判定する)。
注目画素差分値DA>参照画素差分値DBの平均値・・・(1)
The
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
図5に示す画素データを例にして、判定部61の判定処理を説明する。なおここで処理されるMPEG方式の圧縮符号化された画像データは、8画素×8画素のブロック単位でDCT符号化処理がなされているので、ここで取り扱われるブロックは、8画素×8画家で構成されている。またここでは水平方向の各ブロック境界を検出するものとするが、垂直方向についても同様に行うことができる。
The determination process of the
図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
同じブロックに属する、隣接する画素間の輝度差の絶対値は比較的小さいが、ブロックノイズが発生しているブロック境界を挟む隣接画素(図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
判定部61は、図6に示すように構成されている。
The
ラッチ回路101およびラッチ回路102は、隣接する画素の輝度値が、差分演算回路103に同期して供給されるように、入力される輝度値を1画素ずつラッチする。すなわちラッチ回路102から出力される輝度値が先に入力された輝度値であり、ラッチ回路101から出力される輝度値が、ラッチ回路102から出力される輝度値の1画素分後の輝度値となる。
The
差分演算回路103は、隣接画素間の輝度差の絶対値を求めることにより、注目画素差分値DA、および参照画素差分値DBを算出する。差分演算回路103において算出された差分値は、ラッチ回路部104に供給される。
The
ラッチ回路部104は、それを構成する各ラッチ回路によって、図5の例では、参照画素差分値DB1,DB2,DB3,DB4、注目画素差分値DA、そして参照画素差分値DB5,DB6,DB7,DB8を、この順番でラッチする。
In the example of FIG. 5, the
ラッチ回路部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
平均化回路105および106は、それらに供給された4つの参照画素差分値DBの平均値をそれぞれ算出し、算出した平均値を平均化回路107に供給する。
The averaging
平均化回路107は、平均化回路105および106からの算出結果の供給を受けて、これら2つの算出結果の平均値(参照画素差分値DB1乃至DB8全体の平均値)を算出し、その算出結果を比較回路108に供給する。
The averaging
比較回路108は、ラッチ回路部104からの注目画素差分値DAと、平均化回路107からの参照画素差分値DBの平均値とを比較し、式(1)が成立するか否かを判定する。式(1)が成立すると判定した場合、比較回路108は、その旨を表すHレベルの信号をAND回路64に出力し、式(1)が成立しないと判定した場合、その旨を表すLレベルの信号をAND回路64に出力する。
The
図3に戻り、次に、ブロック境界候補判定部51の判定部62について説明する。判定部62には、判定部61のラッチ回路102(図6)でラッチされた輝度値が順次供給される。判定部62は、注目位置の左側に並ぶ4個の画素の輝度値の平均値AVLと、その右側に並ぶ4個の画素の輝度値の平均値AVRとの差分の絶対値が、後述するように制御部53により設定された所定の評価値Dより小さいか否かを判定する(式(2)が成立するか否かを判定する)。
D>|平均値AVL−平均値AVR|・・・(2)
Returning to FIG. 3, the
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
図5の例の場合、判定部62は、注目位置Pの左側に並ぶ4個の画素B,C,D,Eの輝度値の平均値AVLと、注目位置Pの右側に並ぶ4個の画素F,G,H,Iの輝度値の平均値AVRとの差分値の絶対値が、所定の値Dより小さいか否かを判定する。
In the example of FIG. 5, the
ブロックノイズが発生するのは、画像データのビットレートが低い場合(圧縮率が高い場合)や、画像の動きが早い場合であることから、ブロック境界を挟んで隣接するブロック間の輝度値には一定の差ある。しかしながら、その差は、例えば、格子模様の画像における格子部分とその背景部分(輪郭の内側と外側)間の輝度値の差よりも、通常は小さい。 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
すなわち評価値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
判定部62は、図8に示すように構成されている。
The
ラッチ回路部111には、判定部61のラッチ回路101,102でラッチされた輝度値が供給される。ラッチ回路部111は、それを構成する各ラッチ回路によって、図5の例では、画素A,B,C,D,E,F,G,H,I,Jの輝度値をこの順番でラッチする。
The luminance value latched by the
ラッチ回路部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
平均化回路112および113は、それらに供給された4つの画素の輝度値の平均値AVL,AVRをそれぞれ算出し、比較回路114に出力する。
The averaging
比較回路114は、平均化回路112および113からの平均値AVLと平均値AVRの差分値の絶対値と、評価値Dとを比較し、式(2)が成立するか否かを判定する。比較回路114は、式(2)が成立すると判定した場合、その旨を表すHレベルの信号をAND回路64に出力し、式(1)が成立しないと判定した場合、その旨を表すLレベルの信号をAND回路64に出力する。
The
図3に戻り、次に、ブロック境界候補判定部51の判定部63について説明する。
Returning to FIG. 3, the
判定部63は、判定部61から供給された注目画素差分値DAが、後述するように制御部53により設定された評価値Hより小さいか否かを判定する(式(3)が成立するか否かを判定する)。
H>注目画素差分値DA・・・(3)
The
H> Remarked pixel difference value DA (3)
判定部63は、式(3)が成立すると判定した場合、Hレベルとなる信号をAND回路64に出力し、式(3)が成立しないと判定した場合、Lレベルとなる信号をAND回路64に出力する。
The
図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
すなわち評価値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
このように判定部61乃至63で、それぞれの判定条件によって注目位置がブロック境界候補であるか否かの判定がなされる。
In this manner, the
AND回路63には、判定部61乃至63での判定結果を表す信号が入力され、そこで、その論理積演算がなされる。したがってAND回路64からは、判定部61乃至判定653での判定結果のすべてが注目位置はブロック境界候補である旨を表しているとき(注目位置が、式(1)乃至式(3)の条件を満たしているとき)、Hレベルの信号がブロック境界判定部52に出力される(ブロック境界候補判定部51全体として、注目位置がブロック境界候補である旨が通知される)。
The AND
一方、判定部61乃至判定部63の判定結果のいずれか1つでも注目位置はブロック境界候補ではない旨を表しているとき(式(1)乃至式(3)の条件を満たしていないとき)、Lレベルの信号がブロック境界判定部52に出力される(ブロック境界候補判定部51全体として、注目位置はブロック境界候補ではない旨が通知される)。
On the other hand, when any one of the determination results of the
次に、図9を参照して、ブロック境界判定部52の構成を説明する。
Next, the configuration of the block
遅延部121を構成するm個の遅延回路R1乃至Rmは、ブロック境界候補判定部51からの判定結果を8画素分遅延させて、連続性確認回路122に出力する。すなわち連続性確認回路122には、注目位置および注目位置から左右方向に8画素ずつ離れた境界に対するブロック境界候補判定部51の判定結果が同期して入力される。
The m delay circuits R1 to Rm constituting the
連続性確認回路122は、制御部53により設定された数(=2n−1)に基づく、図4に示したような、注目位置と、それから左右方向にnブロック分離れた境界までの1ブロック間隔にある境界(図4中、下向きの矢印で示されている境界)に対するブロック境界候補判定部51の判定結果を取得するために、必要な遅延回路Rを選択する。
The
例えば、制御部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
そして連続性確認回路122は、その選択した遅延回路Rに入力された確認対象境界に対するブロック境界候補判定部51による判定結果に基づいて、ブロック境界の連続性を判定する。
Then, the
具体的には、図10に示すように、(2n−1)個の1ブロック間隔の境界における、ブロック境界候補判定部51の判定結果の論理積がとられる。すなわちすべての確認対象境界がブロック境界候補とされている場合、連続性確認回路122は、注目位置をブロック境界と判定する。ここでの判定結果は、制御部53に通知される。
Specifically, as shown in FIG. 10, the logical product of the determination results of the block boundary
次に、制御部53の動作を、図11のフローチャートを参照して説明する。
Next, the operation of the
ステップS1において、制御部53は、ブロック境界候補判定部51の判定部62の判定で使用される評価値D(式(2))と、判定部63の判定で使用される評価値H(式(3))を、設定可能な値のうち、最も大きな値とする。評価値D,Hを大きな値にすることにより、段差が大きいブロック境界でも、輪郭境界であるとして見逃すことなくブロック境界候補と判定することができる。
In step S1, the
制御部53はまた、ブロック境界判定部52のブロック境界の連続性判定で確認される境界(確認対象境界)の数(2n−1)を最大に設定する。評価値D,Hを大きくすることにより、ブロック境界候補判定部51で、段差の小さい輪郭境界がブロック境界候補であると判定されやすくなるが(誤認されやすくなるが)、連続性判定における確認対象境界の数を多くすることで、ブロック境界候補と判定された輪郭境界が、ブロック境界と判定されることを防止することができる。
The
次に、ステップS2において、制御部53は、ブロック境界判定部52により、注目位置がブロック境界であると判定されたか否かを判定し、ブロック境界ではないと判定された場合、ステップS3に進む。
Next, in step S2, the
ステップS3において、制御部53は、評価値D,Hの大きさを1ランク(所定の値だけ)小さくする。制御部53はまた、ブロック境界の連続性判定の確認対象境界の数を1ランク(所定の数だけ)少なくする。確認対象境界の数が多ければ多いほど、原理的にはブロック境界を正確に検出することができるが、確認対象境界の数が多ければ多いほど、図12に示すように、確認対象境界が画像の端VLに一致する可能性が高くなる。確認対象境界が画像の端VLに一致すると、注目位置がブロック境界であっても、注目位置はブロック境界ではないと判定され、結局、ブロック境界を見逃してしまうことになる。
In step S3, the
そこで、連続性判定の確認対象境界の数を減らし、図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
このようにステップ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
ステップ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
図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
なお、以上においては、ブロックが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
また以上においては、ブロックノイズ低減部18の制御部53が、ブロック境界判定部52の判定結果に基づいて、評価値D,Hや連続性判定のための確認対象境界の数を設定するようにしたが、例えば、長期間記録がされた画像のように、予めブロックノイズが発生しやすい画像を再生するときは、ユーザが、操作部32を操作して、ブロックノイズ境界をより確実に検出することができるように、評価値D,Hを高めに設定したり、確認対象境界の数を多く設定することもできる。
Further, in the above, the
上述した一連の処理は、ハードウエアにより実現させることもできるが、ソフトウエアにより実現させることもできる。一連の処理をソフトウエアにより実現する場合には、そのソフトウエアを構成するプログラムがコンピュータにインストールされ、そのプログラムがコンピュータで実行されることより、上述したブロックノイズ低減部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
図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
なお、本明細書において、記録媒体により提供されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。 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.
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.
をさらに備えることを特徴とする請求項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.
ことを特徴とする請求項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.
ことを特徴とする請求項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.
ことを特徴とする請求項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.
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)
| 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 |
-
2003
- 2003-08-19 JP JP2003295284A patent/JP2005065098A/en not_active Withdrawn
Cited By (3)
| 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 | |
| US20090034617A1 (en) | Image encoding apparatus and image encoding method | |
| JPH10145779A (en) | Field detection device and field detection method, image encoding device and image encoding method, and recording medium and recording method | |
| US7420487B2 (en) | Denoising video | |
| JP2004215263A (en) | Progressive scan conversion method and apparatus | |
| JPH0955879A (en) | Television signal conversion device, image encoding device, and image decoding device | |
| CN101491105B (en) | Reproduction device and reproduction method | |
| JP2002232889A (en) | Block distortion reduction circuit, reproducing device, receiving device, block distortion reduction method | |
| JP2005065098A (en) | Signal processing apparatus and method, and program | |
| US7433288B2 (en) | Recording device and method, recording medium and program | |
| US6781637B2 (en) | Image change detecting apparatus and image change detecting method, image encoding apparatus and information recording medium with image change detecting program recorded readable by computer | |
| CN101873495A (en) | Scene change detection device and image recording device | |
| JP4191385B2 (en) | Trick play playback of MPEG encoded signals | |
| JP2003179886A (en) | Image processing apparatus and method, recording medium, and program | |
| US20110081097A1 (en) | Image production device, reproduction device, reproduction system, image production method, and reproduction method | |
| JP4210939B2 (en) | Image recording apparatus and method, and program | |
| JP2002232890A (en) | Block distortion reduction circuit, reproducing device, receiving device, block distortion reduction method | |
| JP4746909B2 (en) | Auxiliary data processing of video sequences | |
| JP4151641B2 (en) | Video signal processing apparatus and video signal processing method | |
| US20050002645A1 (en) | Reproducing device and method, recording medium and program | |
| 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) | Image regenerator based on MPEG system |
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 |