JPH08340554A - Color image coder - Google Patents

Color image coder

Info

Publication number
JPH08340554A
JPH08340554A JP8929396A JP8929396A JPH08340554A JP H08340554 A JPH08340554 A JP H08340554A JP 8929396 A JP8929396 A JP 8929396A JP 8929396 A JP8929396 A JP 8929396A JP H08340554 A JPH08340554 A JP H08340554A
Authority
JP
Japan
Prior art keywords
quantization width
value
signal
color image
color
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.)
Granted
Application number
JP8929396A
Other languages
Japanese (ja)
Other versions
JP3407176B2 (en
Inventor
Toshiyuki Kondo
敏志 近藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP08929396A priority Critical patent/JP3407176B2/en
Publication of JPH08340554A publication Critical patent/JPH08340554A/en
Application granted granted Critical
Publication of JP3407176B2 publication Critical patent/JP3407176B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE: To obtain a color image coder in which deterioration in image quantity is reduced by selecting a block whose color quality deterioration of a color signal is easily recognized through setting a simple threshold level so as to decrease the quantization width of the selected block. CONSTITUTION: An absolute value of a difference between a mean value of picture element values in each block and an achromatic color level of a color difference signal is calculated. Whether or not a maximum value of the absolute value is larger than a prescribed threshold level is discriminated by a color difference signal check device 15 and a quantization controller 16 decides the quantization width by using the discrimination result and a code string length counted by a generated code amount counter 17.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像符号化
装置に関し、特にカラー画像に対して視覚的な画質の劣
化を軽減することのできるカラー画像符号化装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image coding device, and more particularly to a color image coding device capable of reducing visual deterioration of a color image.

【0002】[0002]

【従来の技術】近年、画像符号化手法として、MPEG
(Moving Picture Experts Group)方式に代表されるよ
うに、離散コサイン変換(DCT,Discrete Cosine Tr
ansform )などの直交変換と、ハフマン符号(Huffman
Coding)などの可変長符号を用いた手法が広く知られて
いる。
2. Description of the Related Art In recent years, MPEG has been used as an image coding method.
As represented by the (Moving Picture Experts Group) method, discrete cosine transform (DCT, Discrete Cosine Tr)
orthogonal transform such as ansform) and Huffman code (Huffman code)
A method using a variable length code such as Coding) is widely known.

【0003】図8に直交変換と可変長符号化を用いた場
合における従来のカラー画像符号化装置の一例を示す。
ここでは、図8を用いてMPEG方式における符号化方
法について説明する。図8において、11はディジタル
映像信号18を、Y信号、R−Y信号、B−Y信号の各
信号ごとに8×8画素のブロックに変換するブロック変
換器、12は、ブロック化されたディジタル画像信号2
0を、各ブロックごとに直交変換し、直交変換係数12
8を生成する直交変換器、13は、上記直交変換係数を
量子化する量子化器であり、この量子化は、直交変換後
の各周波数毎に対応した8×8の量子化行列(図示せ
ず)と、量子化幅決定器16により決定された量子化幅
168とを用いて直交変換係数に除算を施すことにより
行う。14は、量子化された直交変換係数138に対
し、マクロブロック単位で可変長符号を施し、符号列1
9を生成する可変長符号化器、17は、可変長符号化器
14の符号量信号148を入力とし、該符号量を累積計
数し、発生符号量を検出する発生符号量計数器である。
また、16は、上記発生符号量計数器17の計数出力1
78から上記直交変換係数を上記量子化器13により量
子化するときの量子化幅168を決定する量子化幅決定
器である。
FIG. 8 shows an example of a conventional color image coding apparatus when orthogonal transform and variable length coding are used.
Here, an encoding method in the MPEG system will be described with reference to FIG. In FIG. 8, 11 is a block converter for converting the digital video signal 18 into a block of 8 × 8 pixels for each of the Y signal, the RY signal, and the BY signal, and 12 is a blocked digital signal. Image signal 2
0 is orthogonally transformed for each block and the orthogonal transformation coefficient 12
An orthogonal transformer that generates 8 and a quantizer 13 that quantizes the above orthogonal transform coefficient. This quantization is performed by an 8 × 8 quantization matrix (not shown) corresponding to each frequency after orthogonal transform. No.) and the quantization width 168 determined by the quantization width determiner 16 to perform division on the orthogonal transform coefficient. 14 performs variable-length coding on the quantized orthogonal transform coefficient 138 in macroblock units,
The variable length encoder 17 for generating 9 is a generated code amount counter for receiving the code amount signal 148 of the variable length encoder 14 and cumulatively counting the code amount to detect the generated code amount.
Further, 16 is a count output 1 of the generated code quantity counter 17.
78 is a quantizer width determiner for determining a quantizer width 168 when the orthogonal transform coefficient from 78 is quantized by the quantizer 13.

【0004】次に、従来のカラー画像符号化装置の動作
について、図8,図2,図9,図10を参照して説明す
る。ディジタル画像信号18は、まずブロック変換器1
1において、図9に示されるように、まず16×16画
素のマクロブロックMBに分割された後、さらにY信
号、R−Y信号、B−Y信号の各信号ごとに、8×8画
素を単位とする信号に変換されて、ブロック化されたデ
ィジタル画像信号20となる。図2はブロック変換器1
1によりブロック変換された画像信号の各成分を示し、
Y信号の16×16画素の範囲に含まれるY、R−Y、
B−Y信号の各信号のブロックY1,Cr1,Cb1は
それぞれ8×8画素を単位として、2×2=4ブロッ
ク,2×1=2ブロック,2×1=2ブロックの集合か
らなり、これらの各ブロックY1,Cr1,Cb1の集
まりをマクロブロックMBと呼ぶ。
Next, the operation of the conventional color image coding apparatus will be described with reference to FIGS. 8, 2, 9 and 10. The digital image signal 18 is first converted into the block converter 1
In FIG. 1, first, as shown in FIG. 9, after being divided into 16 × 16 pixel macro blocks MB, 8 × 8 pixels are further divided for each of the Y signal, RY signal, and BY signal. The digital image signal 20 is converted into a unit signal to be a blocked digital image signal 20. FIG. 2 shows a block converter 1
Showing each component of the image signal block-converted by 1
Y, RY, which are included in the 16 × 16 pixel range of the Y signal,
Each block Y1, Cr1, Cb1 of the BY signal is composed of a set of 2 × 2 = 4 blocks, 2 × 1 = 2 blocks and 2 × 1 = 2 blocks in units of 8 × 8 pixels. A group of each block Y1, Cr1, Cb1 is called a macro block MB.

【0005】ブロック化されたディジタル画像信号20
は、直交変換器12により各ブロックごとに直交変換さ
れ、直交変換係数128となる(図9参照)。そして直
交変換係数128は量子化器13により量子化される
(図9参照)。この際、各周波数毎に対応した8×8の
量子化行列と、量子化幅決定器16により決定された量
子化幅168とを乗じた値によって、直交変換係数12
8を割ることにより量子化を行う。量子化行列は輝度信
号と色差信号とで別のものを用いることができるが、量
子化幅168はマクロブロック内の全ブロックで同じ値
を用いる。量子化された直交変換係数138は、可変長
符号化器14により可変長符号を施され、符号列19と
なる。また、発生符号量計数器17は可変長符号化器1
4で発生した符号量148を計数し、例えばMPEGの
場合、1フレーム内の各マクロブロック毎に計数し、そ
の1フレーム内での累積量(マクロブロック番号N に対
してBN )を求める。そして量子化幅決定器16は、発
生符号量計数器17により得られた上記発生符号量の累
積値178を用いて、該発生符号量が所定の量になるよ
うに量子化幅168(BN に対してQN+1 )を決定する
(図10(a)(b)参照)。発生符号量を一定とする単位と
しては、1フレーム,あるいは1フレームから数フレー
ム程度が選ばれる。
Blocked digital image signal 20
Is orthogonally transformed for each block by the orthogonal transformer 12 and becomes an orthogonal transformation coefficient 128 (see FIG. 9). Then, the orthogonal transform coefficient 128 is quantized by the quantizer 13 (see FIG. 9). At this time, the orthogonal transform coefficient 12 is obtained by multiplying the 8 × 8 quantization matrix corresponding to each frequency by the quantization width 168 determined by the quantization width determiner 16.
Quantization is performed by dividing by 8. Although different quantization matrices can be used for the luminance signal and the color difference signal, the quantization width 168 uses the same value for all blocks in the macroblock. The quantized orthogonal transform coefficient 138 is subjected to a variable length code by the variable length encoder 14 to form a code string 19. Further, the generated code amount counter 17 is the variable length encoder 1
The code amount 148 generated in 4 is counted, for example, in the case of MPEG, it is counted for each macroblock in one frame, and the cumulative amount (BN for the macroblock number N) in the one frame is obtained. Then, the quantization width determiner 16 uses the cumulative value 178 of the generated code amount obtained by the generated code amount counter 17 to set the quantization width 168 (BN to the quantization width 168 so that the generated code amount becomes a predetermined amount. On the other hand, Q N + 1 ) is determined (see FIGS. 10 (a) and 10 (b)). As a unit for keeping the generated code amount constant, one frame, or one frame to several frames is selected.

【0006】図8のような従来のカラー画像符号化装置
では、以前に発生した符号量をもとにして符号化対象ブ
ロックの量子化幅を決定するようにしており、量子化
は、人間の視覚的な特性に関係なく行われているもので
あった。従って、人間の視覚は例えば赤色に対して敏感
であるが一方上記従来の装置では、どの色についても同
じ量子化歪みが生じているものであるので、上記のよう
に人間の視覚が赤色の部分では敏感であることより、他
の色に比べて赤色の部分では該量子化歪みによる劣化が
目立つこととなった。
In the conventional color image coding apparatus as shown in FIG. 8, the quantization width of the block to be coded is determined on the basis of the previously generated code amount. It was done regardless of the visual characteristics. Therefore, while human vision is sensitive to, for example, red, the above-described conventional device has the same quantization distortion for all colors, and thus the human vision has red portions as described above. Since it is sensitive, the deterioration due to the quantization distortion is more noticeable in the red portion than in other colors.

【0007】このような問題点を解決するために、特開
平6−225340号公報では、飽和状態または飽和状
態に近い色を含む場合に、量子化幅の増大を禁止する
か、または減少させる方法が提案されている。即ち、こ
のように、飽和状態または飽和状態に近い色を含む場合
には、少しの劣化が目につきやすいので、量子化幅を減
少して細かく量子化することにより、劣化を防止するこ
とができるものである。しかるに、この方法では、例え
ば、赤,青と逆位相である,シアン,黄等の劣化を防ぐ
ことができないという問題があった。
In order to solve such a problem, Japanese Patent Laid-Open No. 6-225340 discloses a method of prohibiting or reducing the increase of the quantization width when the color contains a saturated state or a color close to the saturated state. Is proposed. That is, when the color includes a saturated state or a color close to the saturated state as described above, a little deterioration is noticeable. Therefore, the deterioration can be prevented by reducing the quantization width and finely quantizing. It is a thing. However, this method has a problem in that it is not possible to prevent deterioration of cyan, yellow, and the like, which are in opposite phases to red and blue, for example.

【0008】また上記公報では、ある特定の色,例えば
紫色に対して飽和レベルが検出されると量子化幅を減少
させる方法についても提案されている。しかしながらこ
の従来の方法では、該ある特定の色,例えば紫等の色が
飽和レベルであるかを判断すために、該特定の色を検出
するためのR−YおよびB−Y信号に対するしきい値の
設定を種々行わなければならず、即ち細かいしきい値の
設定が必要であり、そのしきい値の設定が非常に複雑と
なるものであった。
The above publication also proposes a method of reducing the quantization width when a saturation level is detected for a specific color, for example, purple. However, in this conventional method, the thresholds for the RY and BY signals for detecting the specific color, for example, the color such as purple, are determined in order to determine whether the specific color is at a saturation level. It is necessary to set various values, that is, it is necessary to set a fine threshold value, and the setting of the threshold value is very complicated.

【0009】[0009]

【発明が解決しようとする課題】以上のように、従来の
カラー画像符号化装置では、量子化は、人間の視覚的な
特性に関係なく行っており、一方、人間の視覚は例えば
赤色に対して敏感であることから、他の色に比べ赤色の
部分で量子化歪みによる劣化が目立つこととなり、ま
た、このような問題点を解決するため、飽和状態または
飽和状態に近い色を含む場合に、量子化幅の増大を禁止
するか、または減少させる方法もあったが、この方法で
は、例えば、赤,青と逆位相である,シアン,黄等の劣
化を防ぐことができないものであった。また、ある特定
の色,例えば紫色に対して飽和レベルが検出されると量
子化幅を減少させる方法も提案されているが、しかしな
がらこの従来の方法では、該ある特定の色を検出するた
めに色差信号に対する細かいしきい値の設定が必要であ
り、しきい値の設定が非常に複雑となるという問題があ
った。
As described above, in the conventional color image coding apparatus, the quantization is performed regardless of the visual characteristics of human beings. Therefore, deterioration due to quantization distortion is more noticeable in the red part than other colors, and in order to solve such a problem, when the color contains a saturated state or a color close to the saturated state, , There is also a method of prohibiting or reducing the increase of the quantization width, but this method cannot prevent the deterioration of cyan, yellow, etc., which are in antiphase with red and blue, for example. . Further, a method of reducing the quantization width when a saturation level is detected for a specific color, for example, purple has been proposed. However, in this conventional method, in order to detect the specific color, There is a problem that it is necessary to set a fine threshold value for the color difference signal, which makes the setting of the threshold value very complicated.

【0010】本発明は、上記の従来の問題点を解決する
ためになされたもので、直交変換と可変長符号化を用い
たカラー画像符号化装置において、簡単なしきい値設定
により量子化幅を減少させるブロックを選択し、選択さ
れたブロックの量子化幅を減少させることにより、視覚
的な画質の劣化を軽減することのできる,カラー画像符
号化装置を提供することを目的としている。
The present invention has been made to solve the above-mentioned conventional problems. In a color image coding apparatus using orthogonal transform and variable length coding, the quantization width can be set by a simple threshold setting. An object of the present invention is to provide a color image coding apparatus capable of reducing visual deterioration of image quality by selecting a block to be reduced and reducing a quantization width of the selected block.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
に、本請求項1にかかるカラー画像符号化装置は、輝度
信号であるY信号と2つの色差信号R−Y、B−Y信号
から構成されるディジタルカラー画像信号に対して、符
号化を行うカラー画像符号化装置において、上記ディジ
タルカラー画像信号をブロックに分割するブロック変換
器と、上記ブロック毎に分割したディジタルカラー画像
信号に対して、上記ブロック毎に直交変換を施す直交変
換器と、該直交変換器により得られた直交変換係数を量
子化する量子化器と、該量子化された直交変換係数に可
変長符号化を施す可変長符号化器と、該可変長符号化器
による符号量を一定とすべき上記ブロックの集合内で、
該可変長符号化器で順次符号化されていく符号列長を累
積計数する発生符号量計数器と、上記2つの色差信号の
うち少なくとも1つの色差信号に対して各ブロック内の
画素値の平均値と色差信号の無色レベルの値との差の絶
対値を演算し、上記量子化器での量子化幅を変更すべき
画素集合単位内での,上記差の絶対値の最大値が所定の
しきい値よりも大きいかを判断する色差信号検査器と、
上記色差信号検査器において上記最大値が上記しきい値
以下であると判断された場合は、上記発生符号量計数器
で計数された符号列長に基づき上記量子化器で用いる量
子化幅を求め、上記色差信号検査器において上記最大値
が上記しきい値よりも大きいと判断された場合は、上記
量子化器で用いる量子化幅を、上記発生符号量計数器で
計数された符号列長に基づいて得られる量子化幅よりも
小さい値とする量子化幅決定器とを備えたことを特徴と
するものである。
In order to achieve the above object, a color image coding apparatus according to the first aspect of the invention uses a Y signal which is a luminance signal and two color difference signals RY and BY signals. In a color image encoding device for encoding a digital color image signal that is configured, a block converter that divides the digital color image signal into blocks, and a digital color image signal that is divided for each block , An orthogonal transformer that performs an orthogonal transformation for each block, a quantizer that quantizes the orthogonal transform coefficient obtained by the orthogonal transformer, and a variable that performs variable-length coding on the quantized orthogonal transform coefficient Within the set of the long encoder and the block whose code amount by the variable length encoder should be constant,
A generated code amount counter that cumulatively counts code string lengths that are sequentially encoded by the variable length encoder, and an average of pixel values in each block for at least one color difference signal of the two color difference signals. The absolute value of the difference between the value and the colorless level value of the color difference signal is calculated, and the maximum absolute value of the difference in the pixel set unit in which the quantization width in the quantizer is to be changed is a predetermined value. A color difference signal inspector that determines whether the difference is greater than a threshold value,
When it is determined that the maximum value is less than or equal to the threshold value in the color difference signal inspector, the quantization width used in the quantizer is obtained based on the code string length counted by the generated code amount counter. When the maximum value is determined to be larger than the threshold value in the color difference signal inspector, the quantization width used in the quantizer is set to the code string length counted by the generated code amount counter. And a quantizer width determiner for setting the value to be smaller than the quantizer width obtained based on the above.

【0012】また、本請求項2にかかるカラー画像符号
化装置は、請求項1のカラー画像符号化装置において、
上記色差信号検査器において用いるしきい値が、固定値
であるものとしたものである。
A color image coding apparatus according to a second aspect of the present invention is the color image coding apparatus according to the first aspect,
The threshold value used in the color difference signal inspecting device is assumed to be a fixed value.

【0013】また、本請求項3にかかるカラー画像符号
化装置は、請求項1のカラー画像符号化装置において、
上記色差信号検査器において用いるしきい値が、可変値
であるものとしたものである。
A color image coding apparatus according to a third aspect of the present invention is the color image coding apparatus according to the first aspect.
The threshold used in the color difference signal inspector is a variable value.

【0014】また、本請求項4にかかるカラー画像符号
化装置は、請求項3のカラー画像符号化装置において、
上記色差信号検査器において用いるしきい値が、直前に
符号化したフレーム内での,上記差の絶対値の最大値の
平均値であるものとしたものである。
A color image coding apparatus according to a fourth aspect of the present invention is the color image coding apparatus according to the third aspect, wherein
The threshold value used in the color difference signal tester is an average value of the maximum absolute values of the differences in the frame encoded immediately before.

【0015】また、本請求項5にかかるカラー画像符号
化装置は、請求項1ないし4のいずれかに記載のカラー
画像符号化装置において、上記実量子化幅を仮量子化幅
の1/2〜1/3に設定するものとしたものである。
A color image coding apparatus according to a fifth aspect of the present invention is the color image coding apparatus according to any one of the first to fourth aspects, wherein the actual quantization width is 1/2 of the temporary quantization width. It is supposed to be set to ⅓.

【0016】また、本請求項6にかかるカラー画像符号
化装置は、請求項1ないし5のカラー画像符号化装置に
おいて、上記仮量子化幅をQi、実量子化幅をQr、差
の絶対値の最大値をX、しきい値をTとし、上記仮量子
化幅に対する上記実量子化幅の設定を、 Qr=Qi/{2+(X−T)/(112−T)} (X>T) の式を用いて行うものとしたものである。
A color image coding apparatus according to a sixth aspect of the present invention is the color image coding apparatus according to any one of the first to fifth aspects, wherein the provisional quantization width is Qi, the actual quantization width is Qr, and the absolute value of the difference. Where X is a maximum value of T and T is a threshold value, the setting of the actual quantization width with respect to the temporary quantization width is Qr = Qi / {2+ (X−T) / (112−T)} (X> T ) Is used.

【0017】また、本請求項7にかかるカラー画像符号
化装置は、請求項1ないし6のいずれかのカラー画像符
号化装置において、上記色差信号ブロックの画素値の平
均値として、上記直交変換器により得られた色差信号の
ブロックの直流成分を用いるものとしたものである。
A color image coding apparatus according to a seventh aspect of the present invention is the color image coding apparatus according to any one of the first to sixth aspects, wherein the orthogonal transformer is the average value of the pixel values of the color difference signal blocks. The DC component of the block of the color difference signal obtained by the above is used.

【0018】[0018]

【発明の実施の形態】実施の形態1 .まず、本発明の実施の形態1を、図1を
用いて説明する。ここでは、入力ディジタル画像信号が
4:2:2フォーマットであり、MPEG方式のように
複数のブロックが集まったマクロブロックを単位として
量子化幅を変更する場合について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1 . First, the first embodiment of the present invention will be described with reference to FIG. Here, a case will be described in which the input digital image signal is in the 4: 2: 2 format and the quantization width is changed in units of macroblocks in which a plurality of blocks are gathered as in the MPEG system.

【0019】図1において、11はディジタル映像信号
18を、各信号ごとに8×8画素のブロックに変換し、
ブロック化されたディジタル画像信号20を出力するブ
ロック変換器、12は、ブロック化されたディジタル画
像信号20を、各ブロックごとに直交変換し、直交変換
係数121を生成する直交変換器、13は、上記直交変
換係数を量子化する量子化器であり、この量子化は、直
交変換後の各周波数毎に対応した8×8の量子化行列
と、量子化幅決定器16により決定された量子化幅とを
用いて直交変換係数に除算を施すことにより行う。14
は、量子化された直交変換係数に対し、マクロブロック
単位で可変長符号を施し、符号列19を生成する可変長
符号化器、17は、可変長符号化器14の符号量信号1
41を入力とし、該符号量を累積計数し、発生符号量を
検出する発生符号量計数器である。また、15は、上記
ブロック変換器11の出力21から色差信号を検査する
色差信号検査器であり、これは、2つの色差信号のうち
少なくとも1つの色差信号に対して各ブロック内の画素
値の平均値と色差信号の無色レベルの値との差の絶対値
を演算し、上記量子化器13での量子化幅を変更すべき
画素集合単位,ここではマクロブロック内での上記差の
絶対値の最大値と、所定のしきい値との比較を行うもの
である。16は、上記色差信号検査器15の出力22
と、上記発生符号量計数器17の計数出力171とか
ら、上記直交変換係数を上記量子化器13により量子化
するときの量子化幅を決定する量子化幅決定器であり、
これは、上記色差信号検査器15において上記最大値が
しきい値以下であると判断された場合は、上記量子化器
13で用いる量子化幅161を、上記発生符号量計数器
17で計数された符号列長171に基づき求め、上記色
差信号検査器15において上記最大値がしきい値よりも
大きいと判断された場合は、上記量子化器13で用いる
量子化幅161を、上記発生符号量計数器17で計数さ
れた符号列長171に基づいて得られる量子化幅よりも
小さい値とするものであり、その出力である該量子化幅
161は、上記量子化器13に与えられる。
In FIG. 1, numeral 11 converts the digital video signal 18 into blocks of 8 × 8 pixels for each signal,
A block converter that outputs a blocked digital image signal 20. An orthogonal converter that performs an orthogonal transform on the blocked digital image signal 20 for each block to generate an orthogonal transform coefficient 121. It is a quantizer for quantizing the orthogonal transformation coefficient, and this quantization is performed by the quantization matrix of 8 × 8 corresponding to each frequency after orthogonal transformation and the quantization determined by the quantization width determiner 16. The width is used to divide the orthogonal transform coefficient. 14
Is a variable-length encoder that applies a variable-length code to the quantized orthogonal transform coefficient in macroblock units to generate a code string 19, and 17 is a code amount signal 1 of the variable-length encoder 14.
41 is an input, and is a generated code amount counter for cumulatively counting the code amount and detecting the generated code amount. Reference numeral 15 denotes a color difference signal inspecting device for inspecting a color difference signal from the output 21 of the block converter 11, which is a pixel value in each block for at least one of the two color difference signals. The absolute value of the difference between the average value and the value of the colorless level of the color difference signal is calculated and the quantization width in the quantizer 13 is to be changed in pixel set units, here the absolute value of the difference in the macroblock. Is compared with a predetermined threshold value. 16 is an output 22 of the color difference signal inspector 15
And a count output 171 of the generated code amount counter 17, which is a quantization width determiner for determining a quantization width when the orthogonal transform coefficient is quantized by the quantizer 13.
This is because when the color difference signal inspector 15 determines that the maximum value is less than or equal to the threshold value, the quantization width 161 used by the quantizer 13 is counted by the generated code amount counter 17. When the color difference signal inspector 15 determines that the maximum value is larger than the threshold value, the quantization width 161 used in the quantizer 13 is set to the generated code amount. The quantization width is smaller than the quantization width obtained based on the code string length 171 counted by the counter 17, and the quantization width 161 which is the output is given to the quantizer 13.

【0020】次に、動作について説明する。ディジタル
映像信号18は、上記図8に関して述べたように、まず
ブロック変換器11において、図9に示すように、16
×16画素のマクロブロックに分割された後、さらにY
信号、R−Y信号、B−Y信号の各信号ごとに、8×8
画素を単位とする信号に変換されて、ブロック化された
ディジタル画像信号20となる。即ち、図2に示される
ように、ブロック変換器11によりブロック変換された
画像信号Y、R−Y、B−Y信号の各ブロックY1,C
r1,Cb1はそれぞれ8×8画素を単位として、2×
2=4ブロック,2×1=2ブロック,2×1=2ブロ
ックの集合からなり、これらの各ブロックY1,Cr
1,Cb1の集まりをマクロブロックMBと呼ぶ。
Next, the operation will be described. As described with reference to FIG. 8 above, the digital video signal 18 is first transmitted to the block converter 11 as shown in FIG.
After being divided into macroblocks of × 16 pixels, Y
8 × 8 for each signal, RY signal and BY signal
It is converted into a signal in units of pixels and becomes a blocked digital image signal 20. That is, as shown in FIG. 2, the blocks Y1 and C of the image signals Y, RY, and BY signals that have been block-converted by the block converter 11.
r1 and Cb1 are 2 × in units of 8 × 8 pixels, respectively.
It is composed of a set of 2 = 4 blocks, 2 × 1 = 2 blocks, and 2 × 1 = 2 blocks, and each of these blocks Y1, Cr
A group of 1 and Cb1 is called a macro block MB.

【0021】また、上記ブロック化されたディジタル画
像信号20は、直交変換器12により各ブロック毎に直
交変換を施され、直交変換係数121となる(図9参
照)。直交変換方式としては、例えばMPEG方式では
離散コサイン変換が用いられる。直交変換係数121は
量子化器13により量子化される(図9参照)。ここで
は、直交変換係数の各周波数毎に対応した8×8の量子
化行列と、量子化幅決定器16により決定された量子化
幅161とを乗じた値により直交変換係数を除算するこ
とにより量子化を行う。量子化器13で量子化された直
交変換係数131は、可変長符号化器14で可変長符号
を施され、符号列19となる。また、発生符号量計数器
17は、可変長符号化器14より出力された符号列19
の長さを、1フレーム内の各マクロブロック毎に計数
し、その1フレーム内での累積量(マクロブロック番号
N に対してBN )を求める(図11参照)。
Further, the block-shaped digital image signal 20 is subjected to orthogonal transformation for each block by the orthogonal transformation unit 12 and becomes an orthogonal transformation coefficient 121 (see FIG. 9). As the orthogonal transform method, for example, in the MPEG method, discrete cosine transform is used. The orthogonal transform coefficient 121 is quantized by the quantizer 13 (see FIG. 9). Here, the orthogonal transform coefficient is divided by a value obtained by multiplying the 8 × 8 quantization matrix corresponding to each frequency of the orthogonal transform coefficient by the quantization width 161 determined by the quantization width determiner 16. Quantize. The orthogonal transform coefficient 131 quantized by the quantizer 13 is variable-length coded by the variable-length encoder 14 to form a code string 19. In addition, the generated code amount counter 17 has a code string 19 output from the variable length encoder 14.
Of each macroblock in one frame, and the accumulated amount in one frame (macroblock number
BN) is calculated for N (see FIG. 11).

【0022】量子化器13で用いられる量子化幅161
(BN に対してQN+1 又はQN+1 ′)は、量子化幅決定
器16により、色差信号検査器15の出力22と、発生
符号量計数器17の出力171をもとにして決定され
る。この決定方法を以下に説明する。図3に本実施の形
態1における色差信号検査器15aの構成を示し、該色
差信号検査器15aには、ブロック変換器11から、R
−Y信号のブロック21が入力される。色差信号検査器
15aに入力されたR−Y信号21に対して、まず平均
値演算器31によりブロックごとに各ブロック内の画素
値の平均値、すなわち直流成分を求める。絶対差演算器
32は、平均値演算器31により得られた各ブロック内
の画素値の平均値と、色差信号の無色レベルの値との差
の絶対値を計算する。例えば、ディジタルビデオ信号の
規格であるITU−R REC.601では、各画素は
8ビットの精度で表現され、色差信号の無色レベル35
aは128であり、R−Y信号は、画素値としては16
〜240の値を取ることができる。
Quantization width 161 used in the quantizer 13
(Q N + 1 or Q N + 1 ′ for BN) is based on the output 22 of the color difference signal inspector 15 and the output 171 of the generated code amount counter 17 by the quantization width determiner 16. It is determined. This determination method will be described below. FIG. 3 shows the configuration of the color difference signal inspector 15a according to the first embodiment. The color difference signal inspector 15a includes a block converter 11 and an R
The block 21 of the -Y signal is input. For the RY signal 21 input to the color difference signal inspector 15a, the average value calculator 31 first obtains the average value of pixel values in each block, that is, the DC component. The absolute difference calculator 32 calculates the absolute value of the difference between the average value of the pixel values in each block obtained by the average value calculator 31 and the colorless level value of the color difference signal. For example, ITU-R REC. Which is a standard for digital video signals. At 601, each pixel is represented with an accuracy of 8 bits, and the colorless level 35 of the color difference signal is represented.
a is 128, and the RY signal has a pixel value of 16
It can take a value of ~ 240.

【0023】したがってこのような場合、平均値演算器
31により得られた画素値の平均値が100の場合、絶
対差演算器32の出力32aは28となる。絶対差演算
器32の出力32aは最大値検出器33に入力され、こ
こでマクロブロック内の二つのR−Y信号のブロックに
対して(4:2:2方式の場合),無色レベルとの差の
絶対値の最大値を求める。例えば、図4(a) のように、
2つのR−Y信号21のブロックCr1の画素値の平均
値が、それぞれ150、60である場合、無色レベルと
の差の絶対値は、それぞれ22、68となり、差の絶対
値の最大値は68となる。最大値検出器33により求め
られた最大値33aは、判別器34に入力され、これに
より、予め定めておいたしきい値36aと比較され、し
きい値36aよりも大きいかが、判定結果22aとして
判定出力される。
Therefore, in such a case, when the average value of the pixel values obtained by the average value calculator 31 is 100, the output 32a of the absolute difference calculator 32 is 28. The output 32a of the absolute difference calculator 32 is input to the maximum value detector 33, where two blocks of RY signals in the macroblock (in the case of 4: 2: 2 system) are compared with a colorless level. Find the maximum absolute difference. For example, as shown in Figure 4 (a),
When the average value of the pixel values of the block Cr1 of the two RY signals 21 is 150 and 60, respectively, the absolute values of the difference from the colorless level are 22 and 68, respectively, and the maximum absolute value of the difference is It becomes 68. The maximum value 33a obtained by the maximum value detector 33 is input to the discriminator 34, and is compared with a predetermined threshold value 36a by this, and it is determined as the determination result 22a whether it is larger than the threshold value 36a. Is output.

【0024】次に、量子化幅決定器16は、まず発生符
号量計数器17より得た、それまでの発生符号量の累積
値171、例えば、MPEGの場合、そのフレーム内で
のそれまでの全発生符号量の累積値(マクロブロック番
号N に対し、BN )から、該符号化による発生符号量が
所定量となるように、仮量子化幅Qi(BN に対しQ
N+1 )を決定する。次に、上記量子化幅決定器16は、
上述した色差信号検査器15の判定結果、すなわち判別
器34の出力22aを基にして上記仮量子化幅Qiを変
更して実量子化幅Qrを決定する(図11(a)(b)参
照)。
Next, the quantization width determiner 16 first obtains the cumulative value 171 of the generated code amount obtained so far from the generated code amount counter 17, for example, in the case of MPEG, the accumulated value up to that point in the frame. From the cumulative value of all generated code amounts (BN for macro block number N), the provisional quantization width Qi (Q for BN is set so that the generated code amount by the encoding becomes a predetermined amount).
N + 1 ) is determined. Next, the quantization width determiner 16
Based on the determination result of the color difference signal inspector 15, that is, the output 22a of the discriminator 34, the temporary quantization width Qi is changed to determine the actual quantization width Qr (see FIGS. 11 (a) (b)). ).

【0025】即ち、判別器34により、上記差の絶対値
の最大値33aがしきい値36a以下であるであると判
定された場合は、上記仮量子化幅Qiを実量子化幅Qr
とする。また、判別器34により、差の絶対値の最大値
33aがしきい値36aより大きいと判定された場合
は、実量子化幅Qrを仮量子化幅Qiよりも小さくする
(図11(a) でQN+1 ,QN+4 をQN+1 ′,QN+4 ′に
している)。例えば、図4のマクロブロックMBについ
て、しきい値36aの値を30とした場合を考える。図
4(a) では、差の絶対値の最大値は図4(c) に示すよう
に68であり、しきい値の値30より大きいので、実量
子化幅Qrを仮量子化幅Qiよりも小さくする。図4
(b) では、差の絶対値の最大値は18となるので、実量
子化幅Qrは、仮量子化幅Qiと同じ値とする(図11
(a) でQN , QN+2 ,QN+3 をそのままQN , QN+2
N+3 としている)。
That is, when the discriminator 34 determines that the maximum absolute value 33a of the difference is less than or equal to the threshold value 36a, the provisional quantization width Qi is set to the actual quantization width Qr.
And When the discriminator 34 determines that the maximum absolute difference value 33a is larger than the threshold value 36a, the actual quantization width Qr is made smaller than the temporary quantization width Qi (FIG. 11 (a)). Then, Q N + 1 and Q N + 4 are changed to Q N + 1 ′ and Q N + 4 ′). For example, consider the case where the threshold value 36a is set to 30 for the macroblock MB in FIG. In FIG. 4 (a), the maximum absolute value of the difference is 68 as shown in FIG. 4 (c), which is larger than the threshold value 30. Therefore, the actual quantization width Qr is calculated from the provisional quantization width Qi. Also make it smaller. FIG.
In (b), since the maximum absolute value of the difference is 18, the actual quantization width Qr is set to the same value as the temporary quantization width Qi (FIG. 11).
In (a), Q N , Q N + 2 , and Q N + 3 are directly changed to Q N , Q N + 2 ,
Q N + 3 ).

【0026】実量子化幅Qrを仮量子化幅Qiよりも小
さくする方法として、例えば差の絶対値の最大値が大き
い程、実量子化幅Qrをより小さくする場合を考える。
ここで、R−Y信号の各ブロックが取り得る画素値が1
6〜240であり、色差信号の無色レベルの値が128
であるとすると、差の絶対値の取り得る最大の値は11
2である。よって、実量子化幅Qrを仮量子化幅Qiの
1/3〜1/2倍の間に設定するとした場合には、例え
ば数式(1) のようにすればよい。ただしここで、仮量子
化幅をQi、実量子化幅をQr、差の絶対値の最大値を
X、しきい値をTとしている。 Qr=Qi/{2+(X−T)/(112−T)} (X>T) … (1) ここで、実量子化幅Qrを仮量子化幅Qiの1/3以上
にしようとするのは、仮量子化幅の1/3より小さい
と、差の絶対値がしきい値よりも大きいブロックに符号
量を割り当てすぎて、それ以外のマクロブロックに符号
量を割り当てることができず、それらのマクロブロック
の劣化が大きくなってしまうからである。一方、仮量子
化幅の1/2以下にしようとするのは、これを1/2よ
り大きくすると、画質劣化を抑える効果をあまり得るこ
とができなくなるからである。このようにして量子化幅
決定器16で求められた実量子化幅Qrと、あらかじめ
定められた量子化行列とを用いて、量子化器13で量子
化を行う。
As a method for making the actual quantization width Qr smaller than the tentative quantization width Qi, consider a case where the actual quantization width Qr is made smaller as the maximum absolute value of the difference becomes larger.
Here, the pixel value that each block of the RY signal can take is 1
6 to 240, and the value of the colorless level of the color difference signal is 128.
, The maximum possible absolute value of the difference is 11
It is 2. Therefore, when the actual quantization width Qr is set to be between 1/3 and 1/2 times the temporary quantization width Qi, the following expression (1) may be used. Here, the temporary quantization width is Qi, the actual quantization width is Qr, the maximum absolute value of the difference is X, and the threshold value is T. Qr = Qi / {2+ (X−T) / (112−T)} (X> T) (1) Here, the actual quantization width Qr is made to be 1/3 or more of the temporary quantization width Qi. Is smaller than 1/3 of the temporary quantization width, too much code amount is allocated to the block whose absolute value of difference is larger than the threshold value, and the code amount cannot be allocated to other macroblocks. This is because the deterioration of those macroblocks becomes large. On the other hand, the reason why the provisional quantization width is made 1/2 or less is that if it is made larger than 1/2, the effect of suppressing image quality deterioration cannot be obtained so much. Quantization is performed by the quantizer 13 using the actual quantization width Qr thus obtained by the quantization width determiner 16 and a predetermined quantization matrix.

【0027】以上のように、本発明の実施の形態1で
は、R−Y信号に対して、簡単なしきい値演算を行う、
即ち、ブロック内の画素値の平均値と色差信号の無色レ
ベルとの差の絶対値を求め、その絶対値の量子化幅を変
更すべき画素集合単位であるマクロブロック内での最大
値が所定のしきい値よりも大きいか否かを判定し、所定
のしきい値よりも大きいブロックに対する量子化幅を、
可変長符号化器による符号量を一定とすべき上記ブロッ
クの集合内で、可変長符号化器により順次符号化される
符号列長を累積計数した発生符号量に基づいて得られる
量子化幅より減少させるようにしたので、上記視覚的な
画質劣化を軽減することができる。
As described above, in the first embodiment of the present invention, a simple threshold value calculation is performed on the RY signal.
That is, the absolute value of the difference between the average value of the pixel values in the block and the colorless level of the color difference signal is calculated, and the maximum value in the macroblock, which is the pixel set unit in which the quantization width of the absolute value is to be changed, is predetermined. Is larger than the threshold value of, and the quantization width for the block larger than the predetermined threshold value is
From the quantization width obtained based on the generated code amount obtained by cumulatively counting the code string lengths sequentially coded by the variable length encoder in the set of blocks where the code amount by the variable length encoder should be constant Since the image quality is reduced, the visual deterioration of the image quality can be reduced.

【0028】実施の形態2.次に、本発明の実施の形態
2を、図1と図5を用いて説明する。本実施の形態2が
上記実施の形態1と異なるのは、色差信号検査器が、R
−Y信号のブロックだけではなく、B−Y信号のブロッ
クをも検査することである。
Embodiment 2 . Next, a second embodiment of the present invention will be described with reference to FIGS. 1 and 5. The second embodiment differs from the first embodiment in that the color difference signal inspector is
Checking not only the block of -Y signals, but also the block of BY signals.

【0029】図5は、本実施の形態2における色差信号
検査器のブロック図であり、図において、51は、R−
Y信号平均値演算器、52は、B−Y信号平均値演算器
である。その他の32,33,34は図3と同様、絶対
差演算器,最大値検出器,判別器である。
FIG. 5 is a block diagram of the color difference signal inspecting device according to the second embodiment, in which 51 is an R-
A Y signal average value calculator, 52 is a BY signal average value calculator. Others 32, 33 and 34 are an absolute difference calculator, a maximum value detector and a discriminator, as in FIG.

【0030】次に、本実施の形態2によるカラー画像符
号化装置の動作について説明する。ディジタル画像信号
18は、ブロック変換器11で、Y信号,R−Y信号,
B−Y信号の各信号ごとにブロックに変換された後、R
−Y信号とB−Y信号のブロックCr1,Cb1が色差
信号検査器15bに入力される。色差信号検査器15b
に入力されたR−Y信号のブロックCr1は、R−Y信
号平均値演算器51に、B−Y信号のブロックCb1
は、B−Y信号平均値演算器52に入力される。R−Y
信号平均値演算器51とB−Y信号平均値演算器52
は、上記実施の形態1の平均値演算器31と同じよう
に、各R−Y信号,B−Y信号の各ブロック内の画素値
の平均値51b,52bを求める。
Next, the operation of the color image coding apparatus according to the second embodiment will be described. The digital image signal 18 is supplied to the block converter 11 by the Y signal, the RY signal,
After each BY signal is converted into a block, R
Blocks Cr1 and Cb1 of the −Y signal and the BY signal are input to the color difference signal inspector 15b. Color difference signal inspector 15b
The RY signal block Cr1 input to the RY signal average value calculator 51 is input to the RY signal block Cb1.
Is input to the BY signal average value calculator 52. RY
Signal average value calculator 51 and BY signal average value calculator 52
In the same way as the average value calculator 31 of the first embodiment, the average value 51b, 52b of the pixel values in each block of each RY signal and BY signal is obtained.

【0031】R−Y信号平均値演算器51とB−Y信号
平均値演算器52でそれぞれ得られた画素値の平均値5
1b,52bは、絶対差演算器32に入力される。そし
て、各平均値51b,52bに対して、色差信号の無色
レベル35aの値(128)との差の絶対値32bが求
められる。このようにして、マクロブロックMB内のす
べてのR−Y信号およびB−Y信号のブロックに対し
て、差の絶対値32bを求めた後、最大値検出器33
で、マクロブロックMB内の全色差信号ブロックCr
1,Cb1の各8×8画素のブロックに対する,上記差
の絶対値の最大値33bを求める。そして判別器34に
より、求められた最大値33bとしきい値36aとの比
較を行い、判定結果22bを出力する。
The average value 5 of the pixel values obtained by the RY signal average value calculator 51 and the BY signal average value calculator 52, respectively.
1b and 52b are input to the absolute difference calculator 32. Then, for each average value 51b, 52b, the absolute value 32b of the difference from the value (128) of the colorless level 35a of the color difference signal is obtained. In this way, the absolute value 32b of the difference is obtained for all blocks of the RY signal and the BY signal in the macroblock MB, and then the maximum value detector 33 is used.
Then, all color difference signal blocks Cr in the macro block MB
The maximum absolute value 33b of the difference is calculated for each block of 8 × 8 pixels 1 and Cb1. Then, the discriminator 34 compares the obtained maximum value 33b with the threshold value 36a, and outputs the determination result 22b.

【0032】例えば、図4(a) のマクロブロックMBで
は、2つの,R−Y信号、B−Y信号ブロックCr1,
Cb1の各ブロックの画素値の平均値は、それぞれ15
0、60、50、170である。それぞれの平均値に対
して、無色レベル35aの値(128)との差の絶対値
を求めると、図4(c) に示すように、それぞれ22、6
8,78、42となる。したがって、最大値は78とな
り、この値78としきい値36aの値30との間で比較
が行われる。判別器34の判定結果22bを用いて量子
化幅決定器16で実量子化幅を決定する方法は、上記実
施の形態1と同様である。
For example, in the macro block MB of FIG. 4A, two RY signal and BY signal blocks Cr1,
The average pixel value of each block of Cb1 is 15
0, 60, 50, 170. When the absolute value of the difference between the average value and the value (128) of the colorless level 35a is obtained, as shown in FIG.
It becomes 8,78,42. Therefore, the maximum value is 78, and a comparison is made between this value 78 and the value 30 of the threshold value 36a. The method of determining the actual quantization width by the quantization width determiner 16 using the determination result 22b of the discriminator 34 is the same as in the first embodiment.

【0033】以上のような動作により、本実施の形態2
では、R−Y信号およびB−Y信号に対して、簡単なし
きい値演算を行う、即ち、ブロック内の画素値の平均値
と色差信号の無色レベルとの差の絶対値を求め、その絶
対値の量子化幅を変更すべき画素集合単位であるマクロ
ブロック内での最大値が所定のしきい値よりも大きいか
否かを判定し、所定のしきい値よりも大きいブロックに
対する量子化幅を減少させるようにしたので、上記視覚
的な画質劣化を軽減することができる。
With the above operation, the second embodiment
Then, a simple threshold value calculation is performed on the RY signal and the BY signal, that is, the absolute value of the difference between the average value of the pixel values in the block and the colorless level of the color difference signal is obtained, and the absolute value thereof is calculated. It is determined whether the maximum value in the macroblock, which is the unit of pixel set whose value quantization width is to be changed, is greater than a predetermined threshold value, and the quantization width for blocks larger than the predetermined threshold value is determined. Is reduced, it is possible to reduce the visual deterioration in image quality.

【0034】実施の形態3.次に、上記実施の形態1で
はしきい値36aをあらかじめ定めておいた固定値とし
たが、これは可変値とすることもできる。そのような構
成とした、本発明の実施の形態3における色差信号検査
器15cの構成の一例を図6に示す。
Third Embodiment Next, in the first embodiment, the threshold value 36a is set to a predetermined fixed value, but it can be set to a variable value. FIG. 6 shows an example of the configuration of the color difference signal inspecting device 15c according to the third embodiment of the present invention having such a configuration.

【0035】図6において、31,32,33,34は
上記図3におけると同様、平均値演算器,絶対差演算
器,最大値検出器,判別器であり、61は、上記最大値
検出器33の出力である最大値33cが入力され、その
平均値を演算する平均値演算器、36cは該平均値演算
器61の出力であり、上記判別器34にしきい値として
入力されるものである。
In FIG. 6, reference numerals 31, 32, 33 and 34 denote an average value calculator, an absolute difference calculator, a maximum value detector and a discriminator, as in FIG. 3, and 61 denotes the maximum value detector. The maximum value 33c, which is the output of 33, is input, and an average value calculator for calculating the average value, 36c is the output of the average value calculator 61, and is input to the discriminator 34 as a threshold value. .

【0036】本実施の形態3においては、最大値検出器
33で求めた上記差の絶対値の,量子化幅を変更すべき
マクロブロック内での最大値33cを、平均値演算器6
1にも入力する。そして、平均値演算器61で例えば上
記最大値の1フレーム分の平均値を求め、その平均値を
次のフレームでのしきい値36cとして判別器34で用
いる。
In the third embodiment, the average value calculator 6 calculates the maximum value 33c of the absolute value of the difference obtained by the maximum value detector 33 in the macroblock whose quantization width is to be changed.
Enter 1 as well. Then, the average value calculator 61 obtains, for example, the average value of the maximum value for one frame and the average value is used by the discriminator 34 as the threshold value 36c in the next frame.

【0037】したがって、この本実施の形態3の色差信
号検査器15cを用いることにより、色差信号がしきい
値を越えたものであるか否かの判別をするためのしきい
値を、その前フレームの画像の性質に応じて適応的に変
化させることができ、該画像の性質に応じて、量子化幅
を減少させるマクロブロックを適応的に選択することが
できる。
Therefore, by using the color difference signal inspector 15c according to the third embodiment, the threshold value for determining whether or not the color difference signal exceeds the threshold value is set in advance. It is possible to adaptively change it depending on the nature of the image of the frame, and it is possible to adaptively select the macroblock for reducing the quantization width according to the nature of the image.

【0038】以上のような動作により、本発明の実施の
形態3にかかるカラー画像符号化装置によれば、R−Y
信号およびB−Y信号に対して簡単なしきい値操作を行
い、しかもそのしきい値を可変値とすることにより、視
覚的な画質劣化を軽減するために量子化幅を減少させる
マクロブロックを、画像の性質に応じて適応的に選択す
ることができる。
With the above-described operation, the color image encoding apparatus according to the third embodiment of the present invention can provide RY
By performing a simple threshold value operation on the signal and the BY signal, and by making the threshold value a variable value, a macro block for reducing the quantization width in order to reduce the visual deterioration of the image quality, It can be adaptively selected according to the nature of the image.

【0039】なお、本実施の形態3における色差信号判
別値のしきい値を可変とする構成は、上記実施の形態2
においても同様に適用することができるのは勿論であ
る。
The configuration in which the threshold value of the color difference signal discrimination value in the third embodiment is variable is the same as in the second embodiment.
Of course, the same can be applied to the above.

【0040】実施の形態4.また本発明の実施の形態1
〜3では、色差信号ブロックの画素値の平均値を平均値
演算器31、R−Y信号平均値演算器51、B−Y信号
平均値演算器52により求めていたが、この平均値とし
ては、直交変換器12により得られた色差信号のブロッ
クの直流成分を用いても良い。例えば図1、図3におけ
るこの場合の構成は、図7のようになる。即ち、それぞ
れ本発明の実施の形態4によるカラー画像符号化装置の
ブロック図,及び色差信号検査器のブロック図を示す図
7(a),(b) において、色差信号検査器15が直交変換
器12からR−Y信号のブロックCr1の直流成分71
を受け取ることにより、本発明の実施の形態1,2と同
等の動作を行なうことができる。これは、他の実施の形
態についても同様である。
Fourth Embodiment The first embodiment of the present invention
In 3 to 3, the average value of the pixel values of the color difference signal block is obtained by the average value calculator 31, the RY signal average value calculator 51, and the BY signal average value calculator 52. Alternatively, the DC component of the block of the color difference signal obtained by the orthogonal transformer 12 may be used. For example, the configuration in this case in FIGS. 1 and 3 is as shown in FIG. That is, in FIG. 7 (a) and FIG. 7 (b) showing a block diagram of a color image coding apparatus and a block diagram of a color difference signal inspector according to Embodiment 4 of the present invention, the color difference signal inspector 15 is an orthogonal transformer. 12 to DC component 71 of block Cr1 of RY signal
By receiving, it is possible to perform the same operation as in the first and second embodiments of the present invention. This also applies to the other embodiments.

【0041】また、上記実施の形態1〜4では、カラー
画像の符号化方式としては、MPEG方式を用いた場合
を説明したが、これは他の方式を用いたものであっても
よい。
Further, in the above-described first to fourth embodiments, the case where the MPEG system is used as the color image encoding system has been described, but another system may be used.

【0042】また上記実施の形態1〜4では、Y、R−
Y、B−Y信号に対して量子化を行う際、同じ量子化幅
を用いた場合を説明したが、これらは、同じ量子化幅を
用いである。
In the first to fourth embodiments, Y, R-
The case where the same quantization width is used when performing quantization on the Y and B-Y signals has been described, but these use the same quantization width.

【0043】また、上記実施の形態1〜4では、カラー
画像の符号化方式としては、MPEG方式を用いた場合
を説明したが、これは他の方式を用いたものであっても
よい。
Further, in the above-described first to fourth embodiments, the case where the MPEG system is used as the color image encoding system has been described, but other system may be used.

【0044】また上記実施の形態1〜4では、Y、R−
Y、B−Y信号に対して量子化を行う際、同じ量子化幅
を用いた場合を説明したが、これらは、同じ量子化幅を
用いるのではなく、例えば、Y信号に対しては従来方式
と同じである仮量子化幅を用い、R−Y、B−Y信号に
対してのみ実量子化幅を用いるようにしてもよい。
In the first to fourth embodiments, Y, R-
The case where the same quantization width is used when performing quantization on the Y and B-Y signals has been described, but these do not use the same quantization width, but for example, for the Y signal, the conventional method is used. The temporary quantization width which is the same as the method may be used, and the actual quantization width may be used only for the RY and BY signals.

【0045】また上記実施の形態1〜4では、ディジタ
ル画像信号が4:2:2フォーマットである場合につい
て説明したが、本発明は、ディジタル画像信号が4:
2:0や4:1:1フォーマットである場合にも適用で
きるものである。即ち、ディジタル画像信号18が4:
2:0フォーマットであるとすると、ブロックに変換さ
れたディジタル画像信号18の各成分Y2,Cr2,C
b2は、図12(a) のようになり、また、ディジタル画
像信号18が4:1:1フォーマットであるとすると、
ブロックに変換されたディジタル画像信号18の各成分
Y3,Cr3,Cb3は、図12(b) のようになる。
In the above-described first to fourth embodiments, the case where the digital image signal is in the 4: 2: 2 format has been described. However, in the present invention, the digital image signal is in the 4: 2 format.
It can also be applied to the case of 2: 0 or 4: 1: 1 format. That is, the digital image signal 18 is 4:
If the format is 2: 0, each component Y2, Cr2, C of the digital image signal 18 converted into blocks
b2 is as shown in FIG. 12 (a), and if the digital image signal 18 is in the 4: 1: 1 format,
The components Y3, Cr3, Cb3 of the digital image signal 18 converted into blocks are as shown in FIG. 12 (b).

【0046】なお、入力ディジタル信号が4:2:0や
4:1:1フォーマットである場合には、図12(a) ,
(b) に示すように、マクロブロックMB2,MB3内の
R−Y信号ブロックCr2,Cr3は一つとなるため、
最大値検出器33は不要である。
When the input digital signal is in 4: 2: 0 or 4: 1: 1 format, as shown in FIG.
As shown in (b), since the RY signal blocks Cr2 and Cr3 in the macro blocks MB2 and MB3 are one,
The maximum value detector 33 is unnecessary.

【0047】また上記実施の形態1〜4では、ブロック
の大きさは8×8画素としたが、これは他の大きさであ
ってもよい。
Further, in the above-mentioned first to fourth embodiments, the size of the block is 8 × 8 pixels, but this may be another size.

【0048】また上記実施の形態1〜4では、数式(1)
を用いて、実量子化幅を仮量子化幅の1/2〜1/3に
設定する場合について説明したが、この実量子化幅はこ
れとは異なる範囲に設定してもよい。
In the first to fourth embodiments, the mathematical expression (1)
Although the case where the actual quantization width is set to 1/2 to 1/3 of the provisional quantization width has been described above, the actual quantization width may be set to a range different from this.

【0049】また上記実施の形態1〜4では、数式(1)
を変換式として用いることにより仮量子化幅から実量子
化幅を得たが、これは実量子化幅を仮量子化幅よりも小
さくするものであれば、他の方法を用いてもよい。
In the first to fourth embodiments, the mathematical expression (1)
Although the actual quantization width is obtained from the temporary quantization width by using as a conversion formula, other methods may be used as long as the actual quantization width is made smaller than the temporary quantization width.

【0050】また上記実施の形態1〜4では、量子化幅
の変換式として数式(1) を用いたが、量子化幅の変換に
はROM等に記録された変換テーブルを用いるようにし
てもよい。
In the first to fourth embodiments, the formula (1) is used as the quantization width conversion formula, but the conversion table recorded in the ROM or the like may be used for the conversion of the quantization width. Good.

【0051】また図6の説明においては、平均値演算器
31において、差の絶対値の最大値に対して、その1フ
レーム分の平均値を求めるものとしたが、これは他のフ
レーム数分の平均値であってもよい。また、直前のマク
ロブロックまでの平均値というような、フレーム以外の
単位で平均値を求めるようにしてもよい。
Further, in the explanation of FIG. 6, the average value calculator 31 calculates the average value of one frame with respect to the maximum absolute value of the difference. The average value of Alternatively, the average value may be obtained in units other than the frame, such as the average value up to the immediately preceding macroblock.

【0052】[0052]

【発明の効果】以上のように、本発明にかかるカラー画
像符号化装置によれば、符号化の際に、色差信号の各ブ
ロック内の画素値の平均値と無色レベルの値との差の絶
対値を演算し、絶対値が所定のしきい値よりも大きい場
合に量子化幅を減少させるようにしたので、色差信号に
対する単純なしきい値設定により、量子化幅を減少させ
るブロックを選択することができ、かつ視覚的な画質の
劣化を軽減させることができる効果がある。
As described above, according to the color image encoding apparatus of the present invention, at the time of encoding, the difference between the average value of the pixel values in each block of the color difference signal and the value of the colorless level is determined. Since the absolute value is calculated and the quantization width is reduced when the absolute value is larger than the predetermined threshold value, a block for which the quantization width is reduced is selected by a simple threshold value setting for the color difference signal. It is possible to reduce the visual deterioration of the image quality.

【0053】即ち、請求項1にかかるカラー画像符号化
装置によれば、輝度信号であるY信号と2つの色差信号
R−Y、B−Y信号から構成されるディジタルカラー画
像信号に対して、符号化を行うカラー画像符号化装置に
おいて、上記ディジタルカラー画像信号をブロックに分
割するブロック変換器と、上記毎に分割したディジタル
カラー画像信号に対して、上記ブロック毎に直交変換を
施す直交変換器と、該直交変換器により得られた直交変
換係数を量子化する量子化器と、該量子化された直交変
換係数に可変長符号化を施す可変長符号化器と、該可変
長符号化器による符号量を一定とすべき上記ブロックの
集合内で、該可変長符号化器で順次符号化されていく符
号列長を累積計数する発生符号量計数器と発生符号量計
数器と、上記2つの色差信号のうち少なくとも1つの色
差信号に対して各ブロック内の画素値の平均値と色差信
号の無色レベルの値との差の絶対値を演算し、上記量子
化器での量子化幅を変更する画素集合単位内での上記絶
対値の最大値が所定のしきい値よりも大きいかを判断す
る色差信号検査器と、上記色差信号検査器において上記
最大値が上記しきい値以下であると判断された場合は、
上記発生符号量計数器で計数された符号列長に基づき上
記量子化器で用いる量子化幅を求め、上記色差信号検査
器において上記最大値が上記しきい値よりも大きいと判
断された場合は、上記量子化器で用いる量子化幅を、上
記発生符号量計数器で計数された符号列長に基づいて得
られる量子化幅よりも小さい値とする量子化幅決定器と
を備えたものとし、色差信号に対してブロック内の画素
値の平均値と色差信号の無色レベルとの差を求め、差の
絶対値が所定のしきい値よりも大きいブロックを視覚的
劣化が目立つブロックであると判断し、そのブロックに
対する量子化幅を減少させるようにしたので、色差信号
に対する単純なしきい値設定により、量子化幅を減少さ
せるブロックを選択することができ、このような動作に
より、視覚的な画質の劣化を軽減させることができる効
果が得られる。
That is, according to the color image coding apparatus of the first aspect, for a digital color image signal composed of a Y signal which is a luminance signal and two color difference signals RY and BY signals, In a color image encoding device for encoding, a block converter that divides the digital color image signal into blocks, and an orthogonal converter that performs an orthogonal transform for each block on the digital color image signal divided in each of the blocks , A quantizer for quantizing the orthogonal transform coefficient obtained by the orthogonal transformer, a variable length encoder for performing variable length coding on the quantized orthogonal transform coefficient, and the variable length encoder And a generated code amount counter for accumulatively counting code string lengths sequentially coded by the variable length encoder in the set of blocks for which the code amount according to One The absolute value of the difference between the average value of the pixel values in each block and the colorless level value of the color difference signal is calculated for at least one of the color difference signals, and the quantization width in the quantizer is changed. A color difference signal inspecting device that determines whether the maximum value of the absolute value in the pixel set unit is greater than a predetermined threshold value, and the maximum value in the color difference signal inspecting device is less than or equal to the threshold value. If judged,
When the quantization width used in the quantizer is obtained based on the code string length counted by the generated code amount counter, and when it is determined that the maximum value is larger than the threshold value in the color difference signal inspector, A quantizer width determiner for setting the quantizer width used in the quantizer to a value smaller than the quantizer width obtained based on the code string length counted by the generated code quantity counter. For the color difference signal, the difference between the average value of the pixel values in the block and the colorless level of the color difference signal is obtained, and the block in which the absolute value of the difference is larger than a predetermined threshold is the block in which visual deterioration is noticeable. Since the decision is made to reduce the quantization width for that block, the block for which the quantization width is reduced can be selected by a simple threshold value setting for the color difference signal. Picture Effect which can reduce the degradation is obtained.

【0054】また、本請求項2にかかるカラー画像符号
化装置によれば、請求項1のカラー画像符号化装置にお
いて、上記色差信号検査器において用いるしきい値が、
固定値であるものとしたので、色差信号に対する単純な
しきい値設定により、量子化幅を減少させるブロックを
選択することができ、視覚的な画質の劣化を軽減させる
ことができる効果が得られる。
According to the color image coding apparatus of the second aspect, in the color image coding apparatus of the first aspect, the threshold value used in the color difference signal inspector is:
Since the value is a fixed value, it is possible to select a block in which the quantization width is reduced by simply setting a threshold value for the color difference signal, and it is possible to obtain an effect that visual deterioration in image quality can be reduced.

【0055】また、本請求項3にかかるカラー画像符号
化装置によれば、請求項1のカラー画像符号化装置にお
いて、上記色差信号検査器において用いるしきい値が、
可変値であるものとしたので、該しきい値を、入力ディ
ジタル映像信号に応じて適応的に可変することにより、
画像信号の性質に応じて適応的に視覚的な画質の劣化を
軽減させることができる。
According to the color image coding apparatus of the third aspect, in the color image coding apparatus of the first aspect, the threshold value used in the color difference signal inspector is:
Since it is assumed to be a variable value, by adaptively varying the threshold value according to the input digital video signal,
It is possible to adaptively reduce visual deterioration of image quality according to the property of the image signal.

【0056】また、本請求項4にかかるカラー画像符号
化装置によれば、請求項3のカラー画像符号化装置にお
いて、上記色差信号検査器において用いるしきい値が、
直前に符号化したフレーム内の,上記絶対値の最大値の
平均値であるものとしたので、直前のフレームの画像の
性質に応じて適応的に視覚的な画質の劣化を軽減させる
ことができる。
According to the color image coding apparatus of the fourth aspect, in the color image coding apparatus of the third aspect, the threshold value used in the color difference signal inspector is:
Since it is the average value of the maximum values of the absolute values in the frame encoded immediately before, it is possible to adaptively reduce the deterioration of the visual image quality according to the property of the image of the immediately preceding frame. .

【0057】また、本請求項5にかかるカラー画像符号
化装置によれば、請求項1ないし4のいずれかに記載の
カラー画像符号化装置において、上記実量子化幅を仮量
子化幅の1/2〜1/3に設定するものとしたので、視
覚的な画質の劣化を効果的に軽減させることができる。
According to a fifth aspect of the color image encoding apparatus of the present invention, in the color image encoding apparatus according to any one of the first to fourth aspects, the actual quantization width is 1 of the temporary quantization width. Since it is set to / 2 to 1/3, it is possible to effectively reduce the visual deterioration of the image quality.

【0058】また、本請求項6にかかるカラー画像符号
化装置によれば、請求項1ないし5のカラー画像符号化
装置において、上記仮量子化幅をQi、実量子化幅をQ
r、差の絶対値の最大値をX、しきい値をTとし、上記
仮量子化幅に対する上記実量子化幅の設定を、 Qr=Qi/{2+(X−T)/(112−T)} (X>T) の式を用いて行うようにしたので、視覚的な画質の劣化
を効果的に軽減させることができる。
According to a sixth aspect of the color image encoding apparatus of the present invention, in the color image encoding apparatus of the first to fifth aspects, the temporary quantization width is Qi and the actual quantization width is Qi.
Let r be the maximum absolute value of the difference, X be the threshold value, and T be the threshold, and set the actual quantization width to the temporary quantization width as follows: Qr = Qi / {2+ (X−T) / (112−T )} (X> T), the visual deterioration of the image quality can be effectively reduced.

【0059】また、本請求項7にかかるカラー画像符号
化装置によれば、請求項1ないし6のカラー画像符号化
装置において、上記色差信号ブロックの画素値の平均値
として、上記直交変換器により得られた色差信号の画素
ブロックの直流成分を用いるものとしたので、上記請求
項1ないし6のいずれかの構成において、色差信号の平
均値演算器を省略することができ、回路構成を簡略化す
ることができる。
According to a seventh aspect of the color image encoding device of the present invention, in the color image encoding device of the first to sixth aspects, the orthogonal transformer converts the pixel value of the color difference signal block as an average value. Since the DC component of the pixel block of the obtained color difference signal is used, the average value calculator of the color difference signal can be omitted in the configuration according to any one of claims 1 to 6, and the circuit configuration can be simplified. can do.

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

【図1】本発明の第1の実施の形態によるカラー画像符
号化装置のブロック図である。
FIG. 1 is a block diagram of a color image encoding device according to a first embodiment of the present invention.

【図2】本発明の実施の形態1における,デジタル映像
信号が4:2:2パターンである場合の輝度信号と色差
信号とのブロックの関係を示す模式的なパターン図であ
る。
FIG. 2 is a schematic pattern diagram showing a block relationship between a luminance signal and a color difference signal when a digital video signal has a 4: 2: 2 pattern according to the first embodiment of the present invention.

【図3】本発明の実施の形態1によるカラー画像符号化
装置における色差信号検査器のブロック図である。
FIG. 3 is a block diagram of a color difference signal tester in the color image coding device according to the first embodiment of the present invention.

【図4】本発明の実施の形態1によるカラー画像符号化
装置における色差信号ブロックの画素値の平均値の例
((a) ,(b) )を示す模式的なパターン図、及び各々の
場合の差の絶対値、最大値,及び実量子化幅,及び仮量
子化幅を示す図((c) ,(d) )である。
FIG. 4 is a schematic pattern diagram showing an example ((a) and (b)) of average values of pixel values of color difference signal blocks in the color image encoding device according to the first embodiment of the present invention, and respective cases FIG. 3 is a diagram ((c), (d)) showing the absolute value, the maximum value, the real quantization width, and the temporary quantization width of the difference of.

【図5】本発明の第2の実施の形態によるカラー画像符
号化装置における色差信号検査器のブロック図である。
FIG. 5 is a block diagram of a color difference signal tester in a color image coding apparatus according to a second embodiment of the present invention.

【図6】本発明の第3の実施の形態によるカラー画像符
号化装置における色差信号検査器のブロック図である。
FIG. 6 is a block diagram of a color difference signal tester in a color image coding apparatus according to a third embodiment of the present invention.

【図7】本発明の第4の実施の形態によるカラー画像符
号化装置のブロック図(a) ,及び色差信号検査器のブロ
ック図(b) である。
FIG. 7 is a block diagram (a) of a color image encoding device according to a fourth embodiment of the present invention and a block diagram (b) of a color difference signal inspector.

【図8】従来のカラー画像符号化装置のブロック図であ
る。
FIG. 8 is a block diagram of a conventional color image encoding device.

【図9】上記図1の本発明の実施の形態1によるカラー
画像符号化装置,及び図8の従来のカラー画像符号化装
置の動作を説明するための図である。
9 is a diagram for explaining the operation of the color image coding apparatus according to Embodiment 1 of the present invention in FIG. 1 and the conventional color image coding apparatus in FIG.

【図10】従来のカラー画像符号化装置の動作を説明す
るための,フレーム内のマクロブロックの発生ビット量
の累積値,及び量子化幅を示す図(a) 、及び上記累積値
から量子化幅を決める流れを示す図(b) である。
FIG. 10 is a diagram (a) showing the cumulative value of the generated bit amount of the macroblock in the frame and the quantization width for explaining the operation of the conventional color image coding device, and quantization from the cumulative value. It is a figure (b) which shows the flow which determines the width.

【図11】本発明の実施の形態1によるカラー画像符号
化装置の動作を説明するための,フレーム内のマクロブ
ロックの発生符号量の累積値,仮量子化幅,最大値検出
器の出力、判別器の出力、実量子化幅を示す図(a) 、及
び上記累積値から実量子化幅を決める流れを示す図(b)
である。
FIG. 11 is a diagram illustrating an operation of the color image encoding device according to the first embodiment of the present invention, in which a cumulative value of generated code amounts of macroblocks in a frame, a temporary quantization width, and an output of a maximum value detector; Diagram showing discriminator output and actual quantization width (a), and diagram showing flow of determining actual quantization width from the cumulative value (b)
Is.

【図12】ディジタル映像信号が、それぞれ4:2:0
パターン,4:1:1パターンである((a) ,(b) )場
合の輝度信号と色差信号とのブロックの関係を示す模式
的なパターン図である。
FIG. 12: Digital video signals are 4: 2: 0 respectively
FIG. 4 is a schematic pattern diagram showing a relationship between blocks of a luminance signal and a color difference signal in the case of a pattern, which is a 4: 1: 1 pattern ((a), (b)).

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

11 ブロック変換器 20 ブロック変換器の出力 12 直交変換器 121 直交変換器の出力 13 量子化器 131 量子化器の出力 14 可変長符号化器 141 可変長符号化器の出力 15a 色差信号検査器 15b 色差信号検査器 15c 色差信号検査器 16 量子化幅決定器 161 量子化幅決定器の出力 17 発生符号量計数器 171 発生符号量計数器の累積値 31 平均値演算器 31a 平均値演算器の出力 32 絶対差演算器 32a 絶対差演算器の出力 33 最大値検出器 33a 最大値検出器の出力 34 判別器 22a 判別結果 22b 判別結果 61 平均値演算器 36a しきい値 36c 平均値演算器の出力 Y1 Y信号ブロック Cr1 R−Y信号ブロック Cb1 B−Y信号ブロック Y2 Y信号ブロック Cr2 R−Y信号ブロック Cb2 B−Y信号ブロック Y3 Y信号ブロック Cr3 R−Y信号ブロック Cb3 B−Y信号ブロック 11 Block Transformer 20 Output of Block Transformer 12 Orthogonal Transformer 121 Output of Orthogonal Transformer 13 Quantizer 131 Quantizer Output 14 Variable Length Encoder 141 Variable Length Encoder Output 15a Color Difference Signal Tester 15b Color difference signal inspector 15c Color difference signal inspector 16 Quantization width determiner 161 Output of quantization width determiner 17 Generated code amount counter 171 Cumulative value of generated code amount counter 31 Average value calculator 31a Output of average value calculator 32 Absolute difference calculator 32a Output of absolute difference calculator 33 Maximum value detector 33a Output of maximum value detector 34 Discriminator 22a Discrimination result 22b Discrimination result 61 Average value calculator 36a Threshold value 36c Output of average value calculator Y1 Y signal block Cr1 RY signal block Cb1 BY signal block Y2 Y signal block Cr2 RY signal block Click Cb2 B-Y signal block Y3 Y signal block Cr3 R-Y signal block Cb3 B-Y signal block

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/32 G06F 15/66 330C H04N 7/137 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI Technical display location H04N 7/32 G06F 15/66 330C H04N 7/137 Z

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 輝度信号であるY信号と2つの色差信号
R−Y、B−Y信号から構成されるディジタルカラー画
像信号に対して、符号化を行うカラー画像符号化装置に
おいて、 上記ディジタルカラー画像信号をブロックに分割するブ
ロック変換器と、 上記ブロック毎に分割したディジタルカラー画像信号に
対して、上記ブロック毎に直交変換を施す直交変換器
と、 該直交変換器により得られた直交変換係数を量子化する
量子化器と、 該量子化された直交変換係数に可変長符号化を施す可変
長符号化器と、 該可変長符号化器による符号量を一定とすべき上記ブロ
ックの集合内で、該可変長符号化器で順次符号化されて
いく符号列長を累積計数する発生符号量計数器と、 上記2つの色差信号のうち少なくとも1つの色差信号に
対して各ブロック内の画素値の平均値と色差信号の無色
レベルの値との差の絶対値を演算し、上記量子化器での
量子化幅を変更する画素集合単位内での上記絶対値の最
大値が所定のしきい値よりも大きいかを判断する色差信
号検査器と、 上記色差信号検査器において上記最大値が上記しきい値
以下であると判断された場合は、上記発生符号量計数器
で計数された符号列長に基づき上記量子化器で用いる実
量子化幅を求め、上記色差信号検査器において上記最大
値が上記しきい値よりも大きいと判断された場合は、上
記量子化器で用いる実量子化幅を、上記発生符号量計数
器で計数された符号列長に基づいて得られる量子化幅を
仮量子化幅として、該仮量子化幅よりも小さい値とする
量子化幅決定器とを備えたことを特徴とするカラー画像
符号化装置。
1. A color image encoding apparatus for encoding a digital color image signal composed of a Y signal which is a luminance signal and two color difference signals RY and BY signals. A block converter that divides an image signal into blocks, an orthogonal transformer that performs an orthogonal transformation for each block on a digital color image signal that is divided for each block, and an orthogonal transformation coefficient obtained by the orthogonal transformer. , A variable length encoder for performing variable length coding on the quantized orthogonal transform coefficient, and a set of blocks in which the code amount by the variable length encoder should be constant. Then, a generated code amount counter for cumulatively counting the code string lengths sequentially encoded by the variable length encoder, and each block for at least one color difference signal of the two color difference signals The absolute value of the difference between the average value of the pixel values in and the value of the colorless level of the color difference signal is calculated, and the maximum value of the absolute value in the pixel set unit that changes the quantization width in the quantizer is A color difference signal inspecting device that determines whether it is greater than a predetermined threshold value, and if the maximum value is less than or equal to the threshold value in the color difference signal inspecting device, the generated code amount counter counts. The actual quantization width used in the quantizer is obtained based on the coded string length, and used in the quantizer when the color difference signal inspector determines that the maximum value is larger than the threshold value. Quantization width determiner that makes the actual quantization width a value smaller than the temporary quantization width, with the quantization width obtained based on the code string length counted by the generated code amount counter as the temporary quantization width And a color image coding device.
【請求項2】 請求項1に記載のカラー画像符号化装置
において、 上記色差信号検査器において用いるしきい値が、固定値
であることを特徴とするカラー画像符号化装置。
2. The color image coding apparatus according to claim 1, wherein the threshold value used in the color difference signal inspector is a fixed value.
【請求項3】 請求項1に記載のカラー画像符号化装置
において、 上記色差信号検査器において用いるしきい値が、可変値
であることを特徴とするカラー画像符号化装置。
3. The color image coding apparatus according to claim 1, wherein the threshold value used in the color difference signal tester is a variable value.
【請求項4】 請求項3に記載のカラー画像符号化装置
において、 上記色差信号検査器において用いるしきい値が、直前に
符号化したフレーム内での,上記絶対値の最大値の平均
値であることを特徴とするカラー画像符号化装置。
4. The color image coding apparatus according to claim 3, wherein the threshold value used in the color difference signal inspector is an average value of the maximum absolute values in the immediately preceding coded frame. A color image encoding device characterized by being present.
【請求項5】 請求項1ないし4のいずれかに記載のカ
ラー画像符号化装置において、 上記実量子化幅を、仮量子化幅の1/2〜1/3に設定
することを特徴とするカラー画像符号化装置。
5. The color image coding apparatus according to claim 1, wherein the actual quantization width is set to 1/2 to 1/3 of the provisional quantization width. Color image encoding device.
【請求項6】 請求項1ないし5のいずれかに記載のカ
ラー画像符号化装置において、 上記仮量子化幅をQi、実量子化幅をQr、差の絶対値
の最大値をX、しきい値をTとし、上記仮量子化幅に対
する上記実量子化幅の設定を、 Qr=Qi/{2+(X−T)/(112−T)} (X>T) の式を用いて行うことを特徴とするカラー画像符号化装
置。
6. The color image coding apparatus according to claim 1, wherein the temporary quantization width is Qi, the actual quantization width is Qr, the maximum absolute difference is X, and the threshold is X. Let T be a value, and set the actual quantization width with respect to the temporary quantization width by using the formula: Qr = Qi / {2+ (X−T) / (112−T)} (X> T) A color image encoding device characterized by the above.
【請求項7】 請求項1ないし6のいずれかに記載のカ
ラー画像符号化装置において、 上記色差信号ブロックの画素値の平均値として、上記直
交変換器により得られた色差信号のブロックの直流成分
を用いることを特徴とするカラー画像符号化装置。
7. The color image coding apparatus according to claim 1, wherein a DC component of a block of color difference signals obtained by the orthogonal converter is used as an average value of pixel values of the color difference signal block. A color image encoding device characterized by using.
JP08929396A 1995-04-11 1996-04-11 Color image coding device Expired - Lifetime JP3407176B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08929396A JP3407176B2 (en) 1995-04-11 1996-04-11 Color image coding device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP7-85288 1995-04-11
JP8528895 1995-04-11
JP08929396A JP3407176B2 (en) 1995-04-11 1996-04-11 Color image coding device

Publications (2)

Publication Number Publication Date
JPH08340554A true JPH08340554A (en) 1996-12-24
JP3407176B2 JP3407176B2 (en) 2003-05-19

Family

ID=26426304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08929396A Expired - Lifetime JP3407176B2 (en) 1995-04-11 1996-04-11 Color image coding device

Country Status (1)

Country Link
JP (1) JP3407176B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003015423A1 (en) * 2001-08-02 2003-02-20 Sony Corporation Image processing apparatus and method, and image processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003015423A1 (en) * 2001-08-02 2003-02-20 Sony Corporation Image processing apparatus and method, and image processing program
US7397852B2 (en) 2001-08-02 2008-07-08 Sony Corporation Image processing apparatus and method, and image processing program

Also Published As

Publication number Publication date
JP3407176B2 (en) 2003-05-19

Similar Documents

Publication Publication Date Title
KR0183688B1 (en) Image encoding method and device
KR100355375B1 (en) Method and circuit for deciding quantizing interval in video encoder
KR0176448B1 (en) Image coding method and apparatus
US8509556B2 (en) Image coding apparatus and image coding method to generate a targeted amount of code
KR100739790B1 (en) Method and apparatus for deciding intra prediction mode
US6122400A (en) Compression encoder bit allocation utilizing colormetric-adaptive weighting as in flesh-tone weighting
US5621465A (en) Color image encoder
EP0949822A2 (en) Video coding control method and apparatus
JP2006135557A (en) Moving picture encoding device
US6750942B2 (en) Motion picture code evaluation apparatus and system
US7751474B2 (en) Image encoding device and image encoding method
JP3407176B2 (en) Color image coding device
JP2002325254A (en) Moving image code evaluating apparatus and system
US6778254B2 (en) Motion picture code evaluator and related systems
JP4309703B2 (en) Coding error estimation device
US20060008004A1 (en) Video encoder
JP3858520B2 (en) Video encoding apparatus and method
JPH08102965A (en) Image coder
JP2001238215A (en) Moving picture coding apparatus and its method
JP3812269B2 (en) Video encoding apparatus and method
KR100336497B1 (en) Rate Control Apparatus and Method Using Spatial Prediction Error Model for Moving Picture Coding
JP2614661B2 (en) High efficiency image coding device
Chiang et al. An overview of the encoding tools in the MPEG-4 reference software
JP2002204449A (en) Quantization unit setting device, quantization unit setting method, coder and coding method, and information recording medium
KR100918560B1 (en) Apparatus and method for prediction of bit rate in real-time H.263 video coding rate control

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080314

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090314

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100314

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120314

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130314

Year of fee payment: 10