JP2001054137A - Color image coder, its method, color image decoder and its method - Google Patents

Color image coder, its method, color image decoder and its method

Info

Publication number
JP2001054137A
JP2001054137A JP22489799A JP22489799A JP2001054137A JP 2001054137 A JP2001054137 A JP 2001054137A JP 22489799 A JP22489799 A JP 22489799A JP 22489799 A JP22489799 A JP 22489799A JP 2001054137 A JP2001054137 A JP 2001054137A
Authority
JP
Japan
Prior art keywords
signal
step size
quantization step
rgb
color image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP22489799A
Other languages
Japanese (ja)
Inventor
Takayuki Nakachi
孝之 仲地
Tatsuya Fujii
竜也 藤井
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP22489799A priority Critical patent/JP2001054137A/en
Publication of JP2001054137A publication Critical patent/JP2001054137A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To set the S/N as desired under the condition of suppressing distortion caused in a reproduced image by giving an RGB signal to a reversible RGB/ YUV transform device, generating a transformed luminance signal and a transformed color difference signal, detecting the edge using the luminance signal as a representative signal, and revising the size of quantization corresponding to the presence of the edge. SOLUTION: A reversible RGB/YUV transform device 1 receives an RGB signal and transforms the RGB signal into a YUV signal. The difference between the obtained signal Y and the output of a prediction device 5 is given to an adaptive quantizer 2. The adaptive quantizer 2 changes the magnitude of quantization on the basis of an output from an edge detector 4 to quantize an input signal and an output of the adaptive quantizer 2 is fed to an entropy encoder 6. On the other hand, the output of the adaptive quantizer 2 is given to an inverse quantizer 3, the difference between the output of the prediction device 5 and the output of the inverse quantizer 3 is given again to the prediction device 5 as a signal Y', which constitutes a succeeding output of the prediction device 5.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、再生画像の品質が
所望のSN比となるようにしたカラー画像符号化装置及
び方法、カラー画像復号化装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image encoding apparatus and method, and a color image decoding apparatus and method for adjusting the quality of reproduced images to a desired SN ratio.

【0002】[0002]

【従来の技術】カラー静止画像を対象とした可逆・準可
逆符号化モデルを図7に示す。図7において、30はロ
スレス・カラー変換器、40は量子化器、50は予測
器、60はエントロピー符号器、70−1および70−
2は夫々符号50と符号60とを組にした処理に対応す
る処理部を表している。
2. Description of the Related Art FIG. 7 shows a lossless / quasi-lossless encoding model for a color still image. 7, 30 is a lossless color converter, 40 is a quantizer, 50 is a predictor, 60 is an entropy encoder, 70-1 and 70-
Reference numeral 2 denotes a processing unit corresponding to a process in which reference numerals 50 and 60 are respectively set.

【0003】図7において、ロスレス・カラー変換器3
0は、入力されたRGB信号を変換して、O1 ,O2
3 の信号を出力する。そして、量子化器40は信号O
1 ,O2 ,O3 を量子化した信号O'1,O'2,O'3 を出
力する。出力された信号O'1は予測器50をへて、エン
トロピー符号器60によってコード化されて出力され
る。他の信号O'2,O'3 についても、70−1,70−
2によって同様にコード化される。
In FIG. 7, a lossless color converter 3
0 converts the input RGB signals to O 1 , O 2 ,
And it outputs a signal of the O 3. Then, the quantizer 40 outputs the signal O
1, O 2, signal O 3 obtained by quantizing O '1, O' and outputs a 2, O '3. The output signal O ′ 1 passes through the predictor 50 and is coded by the entropy encoder 60 and output. For the other signal O '2, O' 3, 70-1,70-
2 is similarly coded.

【0004】[0004]

【発明が解決しようとする課題】図7の手法では、量子
化器において適切なステップサイズを選択することによ
り再生画像に発生する歪みを原画像の画素値に対して任
意の値±p以内に制御可能である。さらに、各画素の歪
みを任意の値±p以内に抑える拘束条件のもと、出力信
号のエントロピーおよび再生誤差のパワーを小さくでき
る。また、量子化を行わないことにより可逆符号化が実
現でき、同一のシステムで可逆と準可逆符号化が実現可
能である。しかしながら、図7の手法では、(1)再生
画像のSN比を任意の値に設定することができず、
(2)人間の視覚特性を考慮していない。
In the method shown in FIG. 7, distortion generated in a reproduced image is selected within an arbitrary value ± p with respect to a pixel value of an original image by selecting an appropriate step size in a quantizer. It can be controlled. Furthermore, the power of the entropy of the output signal and the power of the reproduction error can be reduced under the constraint condition that the distortion of each pixel is kept within an arbitrary value ± p. Also, lossless coding can be realized by not performing quantization, and lossless and quasi-lossless coding can be realized with the same system. However, in the method of FIG. 7, (1) the SN ratio of the reproduced image cannot be set to an arbitrary value,
(2) Human visual characteristics are not considered.

【0005】本発明は、この点を解決して、再生画像に
発生する歪みを±p(pは任意の整数)以内に抑える拘
束条件のもと、SN比を所望の値に設定し得る、視覚特
性を考慮した可逆・準可逆符号化を行うことを目的とし
ている。
The present invention solves this problem and can set the S / N ratio to a desired value under the constraint that distortion generated in a reproduced image is kept within ± p (p is an arbitrary integer). It aims to perform lossless / quasi-lossless encoding in consideration of visual characteristics.

【0006】[0006]

【課題を解決するための手段】本発明においては、再生
画像の品質が所望のSN比になるようにするために、R
GB信号について、可逆RGB/YUV変換器によって
変換した輝度信号(Y)と色差信号(U,V)とを生成
した上で、輝度信号(Y)を代表して用いてエッジを検
出し、当該エッジの存在に対応して量子化の大きさ(ス
テップサイズ)を変更するようにする。言うまでもな
く、信号(U)や信号(V)に対しても、信号(Y)に
おいて得られたエッジの存在に対応して、量子化の大き
さを変更する。
In the present invention, in order for the quality of a reproduced image to have a desired SN ratio, R
For the GB signal, after generating a luminance signal (Y) and a color difference signal (U, V) converted by a reversible RGB / YUV converter, an edge is detected using the luminance signal (Y) as a representative, and the edge is detected. The size of quantization (step size) is changed according to the presence of an edge. Needless to say, the magnitude of quantization is changed for the signal (U) and the signal (V) in accordance with the presence of the edge obtained in the signal (Y).

【0007】[0007]

【発明の実施の形態】図1は本発明の符号化器に関する
一実施例構成を示す。図中の符号1は可逆RGB/YU
V変換器、2は適応量子化器、3は逆量子化器、4はエ
ッジ検出器(本発明にいう量子化ステップサイズ判定部
に該当する)、5は予測器、6はエントロピー符号化
器、7はエッジ検出器を除いてY成分の場合と同じ構成
をもつ部分を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of the encoder according to the present invention. Symbol 1 in the figure is reversible RGB / YU
V converter, 2 is an adaptive quantizer, 3 is an inverse quantizer, 4 is an edge detector (corresponding to a quantization step size determination unit according to the present invention), 5 is a predictor, and 6 is an entropy encoder. , 7 indicate portions having the same configuration as in the case of the Y component except for the edge detector.

【0008】また図2は本発明の復号化器に関する一実
施例構成を示す。図中の符号8はエントロピー復号器、
9は逆量子化器、10はエッジ検出器、11は予測器、
12は可逆YUV/RGB変換器、13はエッジ検出器
を除いてY成分の場合と同じ構成をもつ部分を示す。
FIG. 2 shows an embodiment of a decoder according to the present invention. Reference numeral 8 in the figure denotes an entropy decoder,
9 is an inverse quantizer, 10 is an edge detector, 11 is a predictor,
Reference numeral 12 denotes a reversible YUV / RGB converter, and reference numeral 13 denotes a portion having the same configuration as that of the Y component except for an edge detector.

【0009】図1において、RGB信号が可逆RGB/
YUV変換器1に入力され、当該変換器1においてYU
V信号に変換される。
In FIG. 1, RGB signals are reversible RGB /
It is input to the YUV converter 1 and the YU converter 1
It is converted to a V signal.

【0010】図1における符号7は、信号Uと信号Vと
について夫々、信号Yについて行う処理と同じ処理が行
われることを表している。但しこのとき、夫々のエッジ
検出器は存在せず、量子化の大きさを制御するに当たっ
ては、信号Yに関してエッジ検出器4において得られた
信号を留用する。
Reference numeral 7 in FIG. 1 indicates that the same processing as that performed on the signal Y is performed on the signal U and the signal V, respectively. However, at this time, each edge detector does not exist, and in controlling the magnitude of quantization, the signal obtained by the edge detector 4 for the signal Y is used.

【0011】得られた信号Yは、信号Yについての予測
器5からの出力との差をとらえて、適応量子化器2に供
給される。適応量子化器2は、エッジ検出器4からの出
力にもとづいて、量子化の大きさを変更して、入力信号
を量子化した上で、エントロピー符号化器6に供給す
る。一方、適応量子化器2の出力は、逆量子化器3をへ
て、予測器5の出力との差をとらえて、再び予測器5に
信号Y’として供給され、予測器5の次回の出力とな
る。当該信号Y’は上述のエッジ検出器4に供給され、
エッジ検出器4はエッジの存否に対応して、量子化の大
きさを変更すべく、適応量子化器2に導かれる。このエ
ッジ検出器4の出力は、信号Uと信号Vとの夫々の適応
量子化器に対して供給される。
The obtained signal Y is supplied to the adaptive quantizer 2 by capturing the difference between the signal Y and the output from the predictor 5. The adaptive quantizer 2 changes the magnitude of quantization based on the output from the edge detector 4, quantizes the input signal, and supplies the quantized input signal to the entropy encoder 6. On the other hand, the output of the adaptive quantizer 2 passes through the inverse quantizer 3, captures the difference from the output of the predictor 5, and is supplied to the predictor 5 again as a signal Y '. Output. The signal Y ′ is supplied to the edge detector 4 described above,
The edge detector 4 is guided to the adaptive quantizer 2 in order to change the magnitude of quantization according to the presence or absence of an edge. The output of the edge detector 4 is supplied to respective adaptive quantizers of the signal U and the signal V.

【0012】図2においては、図1に示した信号Yにつ
いてのエントロピー符号化を行った信号、信号Uについ
ての同様の信号、および信号Vについての同様の信号が
供給されるものであるが、図2に示すエントロピー復号
器8には信号Yについてのもののみが入力されるものと
して示されている。信号Uについてのものや信号Vにつ
いてのものは、符号13で示すブロック内に存在する夫
々のエントロピー復号器に入力される。
In FIG. 2, a signal obtained by performing entropy coding on the signal Y, a similar signal on the signal U, and a similar signal on the signal V shown in FIG. 1 are supplied. It is shown that only the signal Y is input to the entropy decoder 8 shown in FIG. The signal for the signal U and the signal for the signal V are input to respective entropy decoders existing in the block denoted by reference numeral 13.

【0013】符号13は、信号Uと信号Vとに関連し
て、図2に示される信号Yに関連する処理と同じ処理が
行われる。但し、このとき、夫々のエッジ検出器は存在
せず、量子化の大きさを制御するに当たっては、信号Y
に関連するエッジ検出器10において得られた信号を留
用する。
Reference numeral 13 indicates that the same processing as the processing related to the signal Y shown in FIG. 2 is performed on the signals U and V. However, at this time, each edge detector does not exist, and when controlling the magnitude of quantization, the signal Y
The signal obtained in the edge detector 10 relating to the above is used.

【0014】図2において、信号Yに関連してのエント
ロピー符号化された信号がエントロピー復号器8に入力
される。エントロピー復号器8において復号された信号
は逆量子化器9に供給される。逆量子化器9は、エッジ
検出器10からの出力にもとづいて、量子化の大きさに
対応する信号を得て、逆量子化の処理を行う。逆量子化
器9からの出力は、予測器11からの出力との差をとら
えて、信号Y’となって、可逆YUV/RGB変換器1
2に導かれ、最終的に信号Rを得る。信号Y’はまた、
予測器11とエッジ検出器10とに入力されて、次回の
処理に対応可能にする。
In FIG. 2, the entropy coded signal associated with signal Y is input to entropy decoder 8. The signal decoded by the entropy decoder 8 is supplied to an inverse quantizer 9. The inverse quantizer 9 obtains a signal corresponding to the magnitude of the quantization based on the output from the edge detector 10 and performs an inverse quantization process. The output from the inverse quantizer 9 captures the difference from the output from the predictor 11 and becomes a signal Y ′, which is used as the signal Y ′.
2 to finally obtain a signal R. The signal Y 'also
The data is input to the predictor 11 and the edge detector 10 so that the next processing can be performed.

【0015】図7に示す従来法においては、すべての画
素に同一の量子化を適用していたが、本発明においては
画素ごとに量子化の大きさを変更することにより再生画
像の品質を所望のSN比に設定する。適応量子化器2
が、画素ごとに量子化の大きさを変更する機能を持ち、
エッジ検出器3により、エッジと判断された画素の量子
化を粗く、画像平坦部と判断された画素は細かく量子化
する。量子化の際には、輝度信号(Y)よりも色差信号
(U,V)の量子化を粗く行う。
In the conventional method shown in FIG. 7, the same quantization is applied to all pixels. However, in the present invention, the quality of a reproduced image is changed by changing the size of quantization for each pixel. Is set to the SN ratio. Adaptive quantizer 2
Has a function to change the size of quantization for each pixel,
The edge detector 3 coarsely quantizes the pixels determined to be edges and finely quantizes the pixels determined to be image flat parts. At the time of quantization, quantization of the color difference signal (U, V) is performed more coarsely than the luminance signal (Y).

【0016】なお、量子化を行わない場合、可逆RGB
/YUV変換器1を用いていることから完全に原画像を
復元できる可逆符号化が可能となる。 (I)図1および図2に示す符号1および符号13に示
す各変換部における可逆カラー変換・逆変換は次の式
(1)ないし式(6)で与えられる
When quantization is not performed, reversible RGB
Since the / YUV converter 1 is used, reversible encoding that can completely restore the original image is possible. (I) The reversible color conversion / inverse conversion in the conversion units denoted by reference numerals 1 and 13 shown in FIGS. 1 and 2 are given by the following equations (1) to (6).

【0017】[0017]

【数1】 (Equation 1)

【0018】(II) 量子化器について 図3に示すミッドトレッド型の如き一様量子化器を用い
る。カラー可逆変換の出力信号O'i は第7式で表され
る。すなわち量子化器への入力信号Oi に対して、出力
信号O'i は第7式で表される。
(II) Quantizer A uniform quantizer such as the mid-tread type shown in FIG. 3 is used. The output signal O ′ i of the color reversible conversion is expressed by the following equation (7). That is, the output signal O ′ i is expressed by the seventh equation with respect to the input signal O i to the quantizer.

【0019】[0019]

【数2】 (Equation 2)

【0020】但し、Δi は正の整数で、Oi の量子化ス
テップサイズを表す。また逆量子化は O''i =(2Δi +1)O'i (8) により計算される。逆量子化後の信号O''i とカラー可
逆変換器の出力Oi には O''i −Δi i O''i +Δi (9) の関係が成立し、図3に示す量子化器による量子化誤差
は±Δi 以内となる。
Here, Δ i is a positive integer and represents the quantization step size of O i . The inverse quantization is computed by O '' i = (2Δ i +1) O 'i (8). Relationship 'to the output O i i and color reversible converter O' signal O 'after inverse quantization' i -Δ i <O i < O '' i + Δ i (9) is satisfied, in FIG. 3 quantization error due to the quantizer shown is within ± delta i.

【0021】(III) 再生画像と原画像との誤差に関する
解析について 再生画像は、式(8)の逆量子化信号を式(5)−
(6)により逆変換することにより得られる。ここで
は、再生画像と原画像との誤差について検討する。逆量
子化後の信号O''i とカラー可逆変換器の出力Oi の誤
差すなわち量子化誤差をδi とし次式で定義する。
(III) Analysis on Error between Reconstructed Image and Original Image The reproduced image is obtained by converting the inverse quantized signal of Expression (8) into Expression (5)-
It is obtained by performing the inverse transformation according to (6). Here, the error between the reproduced image and the original image will be examined. An error between the signal O ″ i after inverse quantization and the output O i of the color reversible converter, that is, a quantization error is defined as δ i by the following equation.

【0022】 δi =O''i −Oi (10) 式(9)より、δi は−Δi δi Δi の範囲の値と
なる。このとき、再生画像R’,G’,B’は次式で書
き表せる。
[0022] than δ i = O '' i -O i (10) Formula (9), δ i is a value in the range of -Δ i <δ i <Δ i . At this time, the reproduced images R ', G', and B 'can be expressed by the following equations.

【0023】 R’=R+p1 (δ1 ,δ2 ,δ3 ) (11) G’=G+p2 (δ1 ,δ2 ,δ3 ) (12) B’=B+p3 (δ1 ,δ2 ,δ3 ) (13) ここで、pi (δ1 ,δ2 ,δ3 )は再生誤差すなわち
再生画像と原画像の誤差で次式で与えられる。
R ′ = R + p 11 , δ 2 , δ 3 ) (11) G ′ = G + p 21 , δ 2 , δ 3 ) (12) B ′ = B + p 31 , δ 2) , Δ 3 ) (13) Here, p i1 , δ 2 , δ 3 ) is a reproduction error, that is, an error between the reproduced image and the original image, and is given by the following equation.

【0024】[0024]

【数3】 (Equation 3)

【0025】mod(・)は、modulo演算子を表す。量子化ス
テップサイズがΔi のときの最大誤差は pi =Max|pi (δ1 ,δ2 ,δ3 )| (15) for δi =−Δi ,…,Δi i=1,2,3 で求まり、再生誤差を最大p以内に抑えるためには p=Max(p1 ,p2 ,p3 ) (16) となるようにΔ1 ,Δ2 ,Δ3 を設定すれば良い。、但
し、|x|はxの絶対値を表す。例として、p=1およ
びp=2の場合の(Δ1 ,Δ2 ,Δ3 )と対応する最大
誤差(p1 ,p2 ,p3 )を示すと、 1)p=1の場合
Mod (•) represents a modulo operator. Maximum error p i = Max when the quantization step size Δ i | p i (δ 1 , δ 2, δ 3) | (15) for δ i = -Δ i, ..., Δ i i = 1, Motomari a few, in order to suppress the reconstruction errors within the maximum p is p = Max (p 1, p 2, p 3) become as Δ 1 (16), Δ 2 , may be set delta 3 . Where | x | represents the absolute value of x. As an example, the maximum error (p 1 , p 2 , p 3 ) corresponding to (Δ 1 , Δ 2 , Δ 3 ) for p = 1 and p = 2 is as follows: 1) For p = 1

【0026】[0026]

【数4】 (Equation 4)

【0027】の3通りのパターンが存在し、いずれの場
合も再生誤差を±1以内に抑えることができる。 2)p=2の場合 p=2の場合には、以下の7通りのパターンが存在す
る。
There are three types of patterns, and in any case, the reproduction error can be suppressed to within ± 1. 2) When p = 2 When p = 2, the following seven patterns exist.

【0028】[0028]

【数5】 (Equation 5)

【0029】p3の場合も同様に式(16)の関係式
を満たすように(Δ1 ,Δ2 ,Δ3)を設定することに
より、再生誤差を±p以内に抑えることが可能となる。
なお、可逆符号化は(Δ1 ,Δ2 ,Δ3 )=(0,0,
0)と設定することにより実現できる。
Similarly, in the case of p > 3, by setting (Δ 1 , Δ 2 , Δ 3 ) so as to satisfy the relational expression (16), it is possible to suppress the reproduction error to within ± p. Become.
Note that the lossless encoding is (Δ 1 , Δ 2 , Δ 3 ) = (0, 0,
0).

【0030】(IV)適応量子化器について 所望のSN比となるように再生画像の誤差パワーを制御
する。なお、SN比(SNRに同じ)は次式で計算され
る。
(IV) Adaptive Quantizer The error power of the reproduced image is controlled so as to obtain a desired SN ratio. Note that the SN ratio (same as SNR) is calculated by the following equation.

【0031】[0031]

【数6】 (Equation 6)

【0032】但し、σ2 は再生画像の誤差パワーで、σ
2 =(σ2 R +σ2 G +σ2 B )/3で与えられる。
σ2 R ,σ2 G ,σ2 B はそれぞれ各RGB成分の再生誤
差のパワー、NはRGB信号成分のビット数を示す。
Where σ 2 is the error power of the reproduced image and σ 2
2 = it is given by (σ 2 R + σ 2 G + σ 2 B) / 3.
σ 2 R , σ 2 G , and σ 2 B indicate the power of the reproduction error of each RGB component, and N indicates the number of bits of the RGB signal component.

【0033】図7の従来法においては、すべての画素に
同一のステップサイズを適用していたが、本発明におい
ては、量子化ステップサイズを画素ごとに制御すること
により、所望にSNRを実現する。量子化ステップサイ
ズの設定においては、 ・輝度信号よりも色差信号 ・画像平坦部よりも画像エッジ部分 の感度が低い人間の視覚特性を利用する。エッジ検出器
によりエッジと判断された画素の量子化を粗く、画像平
坦部と判断された画素は細かく量子化する。量子化の際
には、輝度信号(Y)よりも色差信号(U,V)の量子
化を粗く行う。
In the conventional method shown in FIG. 7, the same step size is applied to all the pixels. In the present invention, the SNR is desirably realized by controlling the quantization step size for each pixel. . In setting the quantization step size, a color difference signal is used rather than a luminance signal. Human visual characteristics with lower sensitivity at the edge of the image than at the flat part of the image are used. Pixels determined to be edges by the edge detector are roughly quantized, and pixels determined to be image flat portions are finely quantized. At the time of quantization, quantization of the color difference signal (U, V) is performed more coarsely than the luminance signal (Y).

【0034】(V)エッジ検出器について 輝度成分(Y信号)の符号化対象画素をy(m,n)、
その近傍の符号化済み画素をy(m,n−1),y(m
−1,n−1),y(m−1,n)と定義する。このと
き、以下のいずれかの条件を満たすときy(m,n)は
エッジであると判断する。
(V) Edge Detector The pixel to be encoded of the luminance component (Y signal) is represented by y (m, n),
The coded pixels in the vicinity are y (m, n-1) and y (m
-1, n-1) and y (m-1, n). At this time, when any of the following conditions is satisfied, it is determined that y (m, n) is an edge.

【0035】 |y(m,n−1)−y(m−1,n−1)|>Th (20) |y(m−1,n)−y(m−1,n−1)|>Th (21) 但し、|・|は絶対値演算子、Thはしきい値を表す。
同エッジ推定器は、符号化済み画素を勾配の推定に用い
ることから、各画素ごとにエッジ推定のための付加情報
を伝送する必要はない。
| Y (m, n−1) −y (m−1, n−1) |> Th (20) | y (m−1, n) −y (m−1, n−1) | > Th (21) where | · | represents an absolute value operator and Th represents a threshold value.
Since the edge estimator uses coded pixels for gradient estimation, it is not necessary to transmit additional information for edge estimation for each pixel.

【0036】(VI)具体的符号化処理手順について ステップ1:所望SNR=SNR’を推定する。 ステップ2:SNR’が無限大の場合、可逆符号化の処
理(量子化を行わない)を実行し終了。それ以外の場
合、ステップ3へ進む。 ステップ3:p=1と設定する。 ステップ4:歪みをpとするステップサイズのなかで、
色差信号の量子化が粗いステップサイズによるSNRを
すべて計算する。このときSNRはすべての画素に対し
て量子化を施した結果得られたものである。歪みが0〜
pまでに得られたSNRの中で、(a)SNR’よりも
小さい値で、もっともSNR’に近い値を L−SNR (b)SNR’よりも大きな値で、もっともSNR’に
近い値をH−SNRと定義する。この条件を満たさない
場合、pの値を1増やしステップ4に戻る。 ステップ5:再度、画像をスキャンしL−SNRおよび
H−SNRを与えるステップサイズにより、画像を量子
化し符号化する。エッジ部分の量子化はH−SNRを与
えるステップサイズで行い、平坦部の量子化はL−SN
Rを与えるステップサイズにより量子化する。各画素ご
とにSNRを計算し、所望のSNRが得られた段階で処
理を終了する。SNRの計算においては、初期値として
SNR=L−SNRから始め、エッジ部においてSNR
を再計算する。
(VI) Specific Coding Procedure Step 1: Estimate desired SNR = SNR '. Step 2: If SNR ′ is infinite, execute lossless encoding processing (no quantization) and end. Otherwise, go to step 3. Step 3: Set p = 1. Step 4: In the step size where distortion is p,
Calculate all SNRs with a step size in which quantization of the color difference signal is coarse. At this time, the SNR is obtained as a result of performing quantization on all the pixels. Distortion is 0
Among the SNRs obtained up to p, (a) a value smaller than SNR 'and closest to SNR' is L-SNR (b) a value larger than SNR 'and a value closest to SNR' Defined as H-SNR. If this condition is not satisfied, the value of p is increased by 1 and the process returns to step 4. Step 5: The image is again scanned and the image is quantized and coded by a step size giving L-SNR and H-SNR. The quantization of the edge portion is performed with a step size giving H-SNR, and the quantization of the flat portion is performed by L-SN
Quantization is performed by a step size that gives R. The SNR is calculated for each pixel, and the process ends when the desired SNR is obtained. In the calculation of SNR, SNR = L−SNR is started as an initial value, and SNR is calculated at an edge portion.
Is recalculated.

【0037】(VII) 数値演算結果について 図4に示す超高精細寺院画像(2048×2048〔画素〕,R
GB各8〔ビット〕)に対してシミュレーションを行っ
た。所望SN比を50,55,60,65,70〔d
B〕と設定した場合の対エントロピー特性を図5に示
す。なお再生画像の歪みは、すべて±1内に保持されて
いる。また、所望SN比を60〔dB〕としたときのエ
ッジ検出結果を図6に示した。図5により、所望のSN
比に再生画像品質が保たれていることが確認できる。提
案法を用いることにより、画像の要求品質に応じた符号
化が可能となる。
(VII) Regarding Numerical Calculation Results The super-high-definition temple image (2048 × 2048 [pixels], R
A simulation was performed for each of 8 GB. When the desired SN ratio is 50, 55, 60, 65, 70 [d
FIG. 5 shows the anti-entropy characteristics in the case of setting [B]. Note that all the distortions of the reproduced image are kept within ± 1. FIG. 6 shows an edge detection result when the desired SN ratio is set to 60 [dB]. According to FIG. 5, the desired SN
It can be confirmed that the reproduction image quality is maintained at the same ratio. By using the proposed method, it becomes possible to perform encoding according to the required quality of an image.

【0038】[0038]

【発明の効果】以上説明した如く、本発明によれば、カ
ラー静止画像を対象とした可逆・準可逆符号化を連続的
に制御しうる符号化法が提案され、準可逆符号化におい
ては、復号画像のSN比を任意の値に設定することが可
能であり、かつ復号画像に発生する歪みは原画像の画素
値に対して±p内に抑制されている。
As described above, according to the present invention, an encoding method capable of continuously controlling lossless / quasi-lossless encoding for a color still image has been proposed. It is possible to set the SN ratio of the decoded image to an arbitrary value, and distortion generated in the decoded image is suppressed within ± p with respect to the pixel value of the original image.

【0039】そして、本発明によれば、(1)統一した
アルゴリズムによる可逆・準可逆符号化を実現し、
(2)再生画像のSN比を任意の値に設定可能で、
(3)可逆符号化における高い圧縮率を得、(4)濃淡
画像を対象とした可逆符号化との互換性があり、(5)
少ない付加情報量で足りるなどの利点がある。
According to the present invention, (1) lossless / quasi-lossless encoding by a unified algorithm is realized,
(2) The SN ratio of the reproduced image can be set to an arbitrary value,
(3) A high compression rate in lossless coding is obtained, (4) compatibility with lossless coding for grayscale images, (5)
There are advantages such that a small amount of additional information is sufficient.

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

【図1】本発明の符号化器に関する一実施例構成を示す
図である。
FIG. 1 is a diagram showing a configuration of an embodiment of an encoder according to the present invention.

【図2】本発明の復号化器に関する一実施例構成を示す
図である。
FIG. 2 is a diagram showing a configuration of an embodiment relating to a decoder of the present invention.

【図3】ミッドトレッド型の如き一様量子化器を用いる
ことを示す図である。
FIG. 3 is a diagram showing the use of a uniform quantizer such as a mid-tread type.

【図4】超高精細寺院画像を示す図である。FIG. 4 is a diagram showing an ultra-high-definition temple image.

【図5】エントロピー特性を示す図である。FIG. 5 is a diagram showing entropy characteristics.

【図6】エッジ検出結果を示す図である。FIG. 6 is a diagram showing an edge detection result.

【図7】カラー静止画像を対象とした可逆・準可逆符号
化モデルを示す図である。
FIG. 7 is a diagram showing a lossless / quasi-lossless encoding model for a color still image.

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

1:可逆RGB/YUV変換器 2:適応量子化器 3:逆量子化器 4:エッジ検出器 5:予測器 6:エントロピー符号化器 7:エッジ検出器を除いてY成分の場合と同じ構成をも
つ部分 8:エントロピー復号器 9:逆量子化器 10:エッジ検出器 11:予測器 12:可逆YUV/RGB変換器 13:エッジ検出器を除いてY成分の場合と同じ構成を
もつ部分
1: reversible RGB / YUV converter 2: adaptive quantizer 3: inverse quantizer 4: edge detector 5: predictor 6: entropy coder 7: same configuration as the case of the Y component except for the edge detector 8: Entropy decoder 9: Dequantizer 10: Edge detector 11: Predictor 12: Reversible YUV / RGB converter 13: Part having the same configuration as that of the Y component except for the edge detector

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C057 AA11 CE04 CE05 DA06 EA04 EA07 EM01 EM16 GE08 GE09 5C059 KK23 MA01 MA45 MC11 PP15 TA46 TC06 TC08 TD08 UA02 UA05 5C078 AA09 BA32 CA21 DA00 DA01 DA02 DB00 DB07 5J064 AA01 BA09 BB07 BB14 BC02 BC08 BC14 BC16 BD01 9A001 BB02 EE02 EE05 HH25 HH27 HH31 KK42  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C057 AA11 CE04 CE05 DA06 EA04 EA07 EM01 EM16 GE08 GE09 5C059 KK23 MA01 MA45 MC11 PP15 TA46 TC06 TC08 TD08 UA02 UA05 5C078 AA09 BA32 CA21 DA00 DA01 DA02 DB00 DB07 BA07A07 BC07 BC08 BC14 BC16 BD01 9A001 BB02 EE02 EE05 HH25 HH27 HH31 KK42

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 RGB信号を入力とするカラー画像符号
化装置において、 前記RGB信号が入力されて輝度信号Yと2つの色差信
号UおよびVとに変換する可逆RGB/YUV変換器
と、 信号Yと信号Uと信号Vとの夫々について、適応量子化
器を含む予測符号化処理部をそなえると共に、 信号Yあるいは信号Uあるいは信号Vのいずれか1つま
たは複数個に対応して、画像のSN比を指定されて量子
化ステップサイズを判定する量子化ステップサイズ判定
部をそなえ、 当該量子化ステップサイズ判定部の判定結果にもとづい
て、前記信号Yと信号Uと信号Vとの夫々に対応する適
応量子化器における量子化ステップサイズを制御するよ
うにしたことを特徴とするカラー画像符号化装置。
1. A color image encoding apparatus that receives an RGB signal, a reversible RGB / YUV converter that receives the RGB signal and converts the signal into a luminance signal Y and two color difference signals U and V; Each of the signal U, the signal U, and the signal V is provided with a predictive coding processing unit including an adaptive quantizer, and the SN of the image corresponding to one or more of the signal Y, the signal U, and the signal V is provided. A quantization step size determination unit that determines a quantization step size by designating a ratio, and that corresponds to each of the signal Y, the signal U, and the signal V based on a determination result of the quantization step size determination unit. A color image encoding device, wherein a quantization step size in an adaptive quantizer is controlled.
【請求項2】 前記量子化ステップサイズ判定部におけ
る判定結果による前記信号Yと信号Uと信号Vとに対応
する適応量子化器における量子化ステップサイズの制御
に当たって、信号Uと信号Vとに対応する量子化ステッ
プサイズを信号Yに対する量子化ステップサイズにくら
べて粗くするようにしたことを特徴とする請求項1記載
のカラー画像符号化装置。
2. The control of a quantization step size in an adaptive quantizer corresponding to the signal Y, the signal U, and the signal V based on a determination result in the quantization step size determination unit corresponds to the signal U and the signal V. 2. The color image encoding apparatus according to claim 1, wherein the quantization step size to be used is made coarser than the quantization step size for the signal Y.
【請求項3】 前記量子化ステップサイズ判定部は、信
号Yあるいは信号Uあるいは信号Vのいずれか1つまた
は複数個に対応して、該当する信号についてのエッジを
検出するエッジ検出器で構成され、 前記信号Yと信号Uと信号Vとに対応する適応量子化器
における量子化ステップサイズの制御に当たって、画像
のエッジ部分における量子化ステップサイズを画像の平
坦部にくらべて粗くするようにしたことを特徴とする請
求項1記載のカラー画像符号化装置。
3. The quantization step size judging section comprises an edge detector for detecting an edge of a signal corresponding to one or more of the signal Y, the signal U, and the signal V. In controlling the quantization step size in the adaptive quantizer corresponding to the signal Y, the signal U, and the signal V, the quantization step size in the edge portion of the image is made coarser than that in the flat portion of the image. The color image encoding device according to claim 1, wherein:
【請求項4】 RGB信号を出力するカラー画像復号化
装置において、 供給される夫々の輝度信号Yと2つの色差信号Uおよび
Vとに対応して逆量子化器を含む予測復号化処理部をそ
なえると共に、 信号Yあるいは信号Uあるいは信号Vのいずれか1つま
たは複数個に対応してもうけられた量子化ステップサイ
ズ判定部をそなえ、 当該量子化ステップサイズ判定部の判定結果にもとづい
て、前記信号Yと信号Uと信号Vとの夫々に対応する逆
量子化器における逆量子化ステップサイズを制御するよ
う構成し、 かつ前記信号Yと信号Uと信号Vとに対応する夫々の予
測復号化処理部からの出力が入力されて前記RGB信号
を出力する可逆YUV/RGB変換器をそなえたことを
特徴とするカラー画像復号化装置。
4. A color image decoding apparatus for outputting an RGB signal, comprising: a predictive decoding processing section including an inverse quantizer corresponding to each of the supplied luminance signal Y and two color difference signals U and V. And a quantization step size determination unit provided for one or more of the signal Y, the signal U, and the signal V, and based on the determination result of the quantization step size determination unit, A dequantizer corresponding to each of the signal Y, the signal U, and the signal V is configured to control an inverse quantization step size, and prediction decoding corresponding to the signal Y, the signal U, and the signal V is performed. A color image decoding device comprising a reversible YUV / RGB converter that receives an output from a processing unit and outputs the RGB signal.
【請求項5】 RGB信号を入力とするカラー画像符号
化方法において、 前記RGB信号が入力されて輝度信号Yと2つの色差信
号UおよびVとに変換し、 信号Yと信号Uと信号Vとの夫々について、適応量子化
処理を含む予測符号化処理を実行すると共に、 信号Yあるいは信号Uあるいは信号Vのいずれか1つま
たは複数個に対応して、画像のSN比を指定して量子化
ステップサイズを判定する処理を実行し、 当該量子化ステップサイズ判定処理の判定結果にもとづ
いて、前記信号Yと信号Uと信号Vとの夫々に対応する
量子化ステップサイズを制御するようにしたことを特徴
とするカラー画像符号化方法。
5. A color image encoding method using an RGB signal as an input, wherein the RGB signal is input and converted into a luminance signal Y and two color difference signals U and V. , A prediction encoding process including an adaptive quantization process is executed, and an image signal-to-noise ratio is designated and quantized corresponding to one or more of the signal Y, the signal U, and the signal V. A step size determination process is performed, and a quantization step size corresponding to each of the signal Y, the signal U, and the signal V is controlled based on a determination result of the quantization step size determination process. A color image encoding method characterized by the following.
【請求項6】 前記量子化ステップサイズ判定処理にお
ける判定結果による前記信号Yと信号Uと信号Vとに対
応する量子化ステップサイズの制御に当たって、信号U
と信号Vとに対応する量子化ステップサイズを信号Yに
対する量子化ステップサイズにくらべて粗くするように
したことを特徴とする請求項5記載のカラー画像符号化
方法。
6. In controlling a quantization step size corresponding to the signal Y, the signal U, and the signal V based on a determination result in the quantization step size determination processing, a signal U
6. A color image coding method according to claim 5, wherein the quantization step size corresponding to the signal Y and the signal V is made coarser than the quantization step size for the signal Y.
【請求項7】 前記量子化ステップサイズ判定処理は、
信号Yあるいは信号Uあるいは信号Vのいずれか1つま
たは複数個に対応して、該当する信号についてのエッジ
を検出するようにし、 前記信号Yと信号Uと信号Vとに対応する量子化ステッ
プサイズの制御に当たって、画像のエッジ部分における
量子化ステップサイズを画像の平坦部にくらべて粗くす
るようにしたことを特徴とする請求項5記載のカラー画
像符号化方法。
7. The quantization step size determination processing includes:
An edge corresponding to one or more of the signal Y, the signal U, and the signal V is detected, and a quantization step size corresponding to the signal Y, the signal U, and the signal V is detected. 6. The color image encoding method according to claim 5, wherein, in the control of (a), the quantization step size at the edge portion of the image is made coarser than the flat portion of the image.
【請求項8】 RGB信号を出力するカラー画像復号化
方法において、 供給される夫々の輝度信号Yと2つの色差信号Uおよび
Vとに対応して逆量子化処理を含む予測復号化処理を実
行すると共に、 信号Yあるいは信号Uあるいは信号Vのいずれか1つま
たは複数個に対応してもうけられた量子化ステップサイ
ズを判定する処理を実行し、 当該量子化ステップサイズ判定処理の判定結果にもとづ
いて、前記信号Yと信号Uと信号Vとの夫々に対応する
逆量子化ステップサイズを制御するようにし、 かつ前記信号Yと信号Uと信号Vとに対応する夫々の予
測復号化処理からの出力を変換して前記RGB信号を出
力するようにしたことを特徴とするカラー画像復号化方
法。
8. A color image decoding method for outputting an RGB signal, wherein a predictive decoding process including an inverse quantization process is executed for each of the supplied luminance signal Y and two color difference signals U and V. And a process of determining a quantization step size provided for one or more of the signal Y, the signal U, and the signal V, based on the determination result of the quantization step size determination process. To control the inverse quantization step size corresponding to each of the signal Y, the signal U, and the signal V, and to control the inverse quantization step size from the respective predictive decoding processes corresponding to the signal Y, the signal U, and the signal V. A color image decoding method, wherein the output is converted to output the RGB signals.
JP22489799A 1999-08-09 1999-08-09 Color image coder, its method, color image decoder and its method Pending JP2001054137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22489799A JP2001054137A (en) 1999-08-09 1999-08-09 Color image coder, its method, color image decoder and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22489799A JP2001054137A (en) 1999-08-09 1999-08-09 Color image coder, its method, color image decoder and its method

Publications (1)

Publication Number Publication Date
JP2001054137A true JP2001054137A (en) 2001-02-23

Family

ID=16820878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22489799A Pending JP2001054137A (en) 1999-08-09 1999-08-09 Color image coder, its method, color image decoder and its method

Country Status (1)

Country Link
JP (1) JP2001054137A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004537220A (en) * 2001-07-24 2004-12-09 ヒューレット・パッカード・カンパニー Equipment for processing digital images
CN105308960A (en) * 2013-05-30 2016-02-03 苹果公司 Adaptive color space transform coding
US10602143B2 (en) 2013-05-30 2020-03-24 Apple Inc. Adaptive color space transform coding

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004537220A (en) * 2001-07-24 2004-12-09 ヒューレット・パッカード・カンパニー Equipment for processing digital images
CN105308960A (en) * 2013-05-30 2016-02-03 苹果公司 Adaptive color space transform coding
CN105308960B (en) * 2013-05-30 2019-09-20 苹果公司 For the method for decoding video data, medium and system
US10602143B2 (en) 2013-05-30 2020-03-24 Apple Inc. Adaptive color space transform coding
US11184613B2 (en) 2013-05-30 2021-11-23 Apple Inc. Adaptive color space transform coding
US11368689B2 (en) 2013-05-30 2022-06-21 Apple Inc. Adaptive color space transform coding
US11758135B2 (en) 2013-05-30 2023-09-12 Apple Inc. Adaptive color space transform coding

Similar Documents

Publication Publication Date Title
JP2925097B2 (en) Adaptive quantization method and system for image transmission
JP4102841B2 (en) Computer-implemented method for processing video images
KR100303054B1 (en) Quantization matrix for still and moving picture coding
US7062104B2 (en) Distortion-adaptive visual frequency weighting
KR100213015B1 (en) Quantization method and circuit
US4851906A (en) Data compression using orthogonal transform and vector quantization
JP4545388B2 (en) System and method for processing video frames with fading estimation / compensation
EP1867175B1 (en) Method for locally adjusting a quantization step
JP4425563B2 (en) Parameterization for fading compensation
JPH06233137A (en) Encoder and decoder of digital signal
JP2001508976A (en) Method and apparatus for restoring quantized coefficients
JPH05219385A (en) Picture compression expansion method and device
JPH05219384A (en) Compression expansion method by orthogonal transformation coding of picture
JP3887043B2 (en) Outline coding method and outline coding apparatus
JP2001054137A (en) Color image coder, its method, color image decoder and its method
JPH01202082A (en) Data speed regulator
JPH11513873A (en) Apparatus and method for selecting a coding mode in a block-based coding system
JPH08204971A (en) Image compression method using predictive coding and error diffusion
JPH0671333B2 (en) Image signal encoding method
JPH03140074A (en) Moving picture coding device
JPH09224262A (en) Method and device for encoding video
JP2002232721A (en) Image coding apparatus and its method, and storage medium
JP2002204449A (en) Quantization unit setting device, quantization unit setting method, coder and coding method, and information recording medium
JP3732684B2 (en) Color image encoding apparatus and method, and color image decoding apparatus and method
JPH03255792A (en) Picture quality controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040406