JPH08280015A - Image encoder - Google Patents

Image encoder

Info

Publication number
JPH08280015A
JPH08280015A JP7998795A JP7998795A JPH08280015A JP H08280015 A JPH08280015 A JP H08280015A JP 7998795 A JP7998795 A JP 7998795A JP 7998795 A JP7998795 A JP 7998795A JP H08280015 A JPH08280015 A JP H08280015A
Authority
JP
Japan
Prior art keywords
code amount
quantization
image
coefficient
graph
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
JP7998795A
Other languages
Japanese (ja)
Other versions
JP3543412B2 (en
Inventor
Taro Yokose
太郎 横瀬
Akihiro Ando
明浩 安東
Shunichi Kimura
俊一 木村
Setsu Kunitake
節 國武
Yutaka Koshi
裕 越
Isao Uesawa
功 上澤
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP7998795A priority Critical patent/JP3543412B2/en
Publication of JPH08280015A publication Critical patent/JPH08280015A/en
Application granted granted Critical
Publication of JP3543412B2 publication Critical patent/JP3543412B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To enable efficient encoding by accurately estimating a quantization coefficient SF generating any positive error. CONSTITUTION: Converting processing at an image converting part 1, quantizing processing at a quantizing part 2 with quantizing width from a quantizing width estimating part 10, encoding processing at a variable length encoding part 3 and the amount of codes at a code amount calculating part 4 are repeatedly calculated. An inclination calculating part 8 calculates the inclination of an approximate straight line by selecting two sets of quantization coefficients and code amounts larger or smaller than the target quantization coefficient when the shape of a graph showing the logarithm of a quantization coefficient and the logarithm of a code amount is convex upward, and by selecting two sets of coefficients with the target amount in between when the graph is convex downward. A quantization width calculation part 9 calculates the quantization coefficient from the approximate straight line and sends the quantization width to the quantizing part 2. The approximate straight line becomes always made larger than the graph near the target quantization coefficient and the error of the code amount becomes always negative.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、非可逆の符号化処理を
行なう画像符号化装置に関するものであり、特に、符号
量の制御を行なう画像符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus for performing lossy coding processing, and more particularly to an image coding apparatus for controlling a code amount.

【0002】[0002]

【従来の技術】画像データの符号化手法は、可変長符号
化方式と固定長符号化方式の2種類に大別される。前者
の場合、一般には符号化してみないと発生する符号量が
わからない。従って、許容できる符号量に上限がある場
合、何らかの手段で符号量の制御を行なう必要が生じ
る。そのため、例えば、特開平4−2291号公報で
は、符号量の制御を行なって、画像データを目的符号量
に収まるまで圧縮するための画像データの符号化装置お
よび符号化方式が記載されている。
2. Description of the Related Art Image data encoding methods are roughly classified into two types: variable length encoding methods and fixed length encoding methods. In the former case, generally, the amount of code generated cannot be known unless encoding is performed. Therefore, when the allowable code amount has an upper limit, it is necessary to control the code amount by some means. Therefore, for example, Japanese Patent Application Laid-Open No. 4-2291 discloses an image data encoding apparatus and an encoding method for controlling the code amount and compressing the image data until the image data fits in the target code amount.

【0003】図2は、従来の可変長符号化方式を用いた
画像符号化装置の一例を示すブロック図である。図中、
1は画像変換部、2は量子化部、3は可変長符号化部、
4は符号量算出部、5は制御部、10は量子化幅推定
部、11は画像データ、12は変換データ、13は量子
化データ、14は符号データ、15は部分符号量デー
タ、16、23は総符号量データ、17は制御データ、
22は量子化幅データである。
FIG. 2 is a block diagram showing an example of an image coding apparatus using a conventional variable length coding system. In the figure,
1 is an image conversion unit, 2 is a quantization unit, 3 is a variable length coding unit,
4 is a code amount calculation unit, 5 is a control unit, 10 is a quantization width estimation unit, 11 is image data, 12 is conversion data, 13 is quantization data, 14 is code data, 15 is partial code amount data, 16, 23 is total code amount data, 17 is control data,
22 is quantization width data.

【0004】画像変換部1は入力された画像データ11
に対して変換処理を行なう。変換処理は、直交変換や推
定符号化等、画像情報を圧縮するための処理である。画
像変換部1で変換されたデータは、変換データ12とし
て量子化部2へ送出される。量子化部2は、量子化幅推
定部10から指示された量子化幅データ22に基づき、
入力された変換データ12に対して量子化処理を行な
う。そして、量子化処理の結果を量子化データ13とし
て可変長符号化部3へ送出する。可変長符号化部3は、
量子化データ13に対して可変長符号化処理を施す。そ
の結果は、制御部5による指示が統計処理か符号化処理
かに応じ、統計処理の場合は部分符号量データ15とし
て符号量算出部4へ、符号化処理の場合は符号データ1
4として外部へ出力する。符号量算出部4は、部分符号
量データ15を積算し、画像全体や色成分等を単位とし
た総符号量を算出する。算出された総符号量データ1
6、23は、それぞれ制御部5、量子化幅推定部10へ
送出される。制御部5は、総符号量データ16と予め指
定された目標符号量とを比較し、その差が適当な許容範
囲に含まれる場合は符号化処理を指示し、そうでない場
合は統計処理を指示する。その指示は、目標符号量に関
する情報とともに制御データ17として量子化幅推定部
10へ送出される。量子化幅推定部10は、制御データ
17と総符号量データ23に基づき、目標とする符号量
を得るための量子化幅を推定し、その結果を量子化幅デ
ータ22として量子化部2へ指示する。
The image conversion unit 1 receives the input image data 11
The conversion process is performed on. The transform process is a process for compressing image information, such as orthogonal transform or estimated coding. The data converted by the image converter 1 is sent to the quantizer 2 as converted data 12. The quantization unit 2 is based on the quantization width data 22 instructed by the quantization width estimation unit 10,
The input conversion data 12 is quantized. Then, the result of the quantization processing is sent to the variable length coding unit 3 as the quantized data 13. The variable length coding unit 3
A variable length coding process is performed on the quantized data 13. As a result, depending on whether the instruction from the control unit 5 is the statistical processing or the encoding processing, the partial code amount data 15 is sent to the code amount calculation unit 4 in the statistical processing, and the code data 1 is used in the encoding processing.
4 is output to the outside. The code amount calculation unit 4 integrates the partial code amount data 15 to calculate the total code amount in units of the entire image, color components and the like. Calculated total code amount data 1
6 and 23 are sent to the control unit 5 and the quantization width estimation unit 10, respectively. The control unit 5 compares the total code amount data 16 with the target code amount designated in advance, and instructs the encoding process if the difference is within an appropriate allowable range, and instructs the statistical process otherwise. To do. The instruction is sent to the quantization width estimation unit 10 as the control data 17 together with the information on the target code amount. The quantization width estimation unit 10 estimates the quantization width for obtaining the target code amount based on the control data 17 and the total code amount data 23, and sends the result to the quantization unit 2 as the quantization width data 22. Give instructions.

【0005】図3、図4は、従来の可変長符号化方式を
用いた画像符号化装置おける動作の一例を示すフローチ
ャートである。図3において、S31では、制御部5に
対して許容可能な符号量の設定を行なう。S32では、
画像変換部1へ画像データ11の入力を行なう。S33
では、画像データ11に対して一連の符号化処理を行な
う。
3 and 4 are flowcharts showing an example of the operation in the image coding apparatus using the conventional variable length coding system. In FIG. 3, in S31, an allowable code amount is set for the control unit 5. In S32,
Image data 11 is input to the image conversion unit 1. S33
Then, a series of encoding processing is performed on the image data 11.

【0006】このS33における符号化処理の詳細を図
4を用いて説明する。S41では、画像変換部1におい
て入力された画像データ11に対して、直交変換や推定
処理等の画像情報の圧縮に関わる画像変換処理を行な
う。S42では、量子化部2において、S41で変換処
理された変換データ12に対し、量子化幅推定部10に
よって指示された量子化幅データ22を用いて量子化処
理を行なう。S43では、可変長符号化部3において、
量子化幅データ22に対して可変長符号化処理を行な
う。
Details of the encoding process in S33 will be described with reference to FIG. In S41, image conversion processing relating to image information compression such as orthogonal transformation and estimation processing is performed on the image data 11 input in the image conversion unit 1. In S42, the quantization unit 2 performs quantization processing on the conversion data 12 converted in S41 using the quantization width data 22 instructed by the quantization width estimation unit 10. In S43, in the variable length coding unit 3,
Variable length coding processing is performed on the quantization width data 22.

【0007】図3に戻り、S34では、制御部5による
指示が統計処理か符号化処理かの判断を行なう。統計処
理であればS35へ、符号化処理であればS40へ進
む。S40に進んだ場合、符号データ14を外部へ出力
して処理を終了する。
Returning to FIG. 3, in S34, it is determined whether the instruction from the control unit 5 is statistical processing or coding processing. If statistical processing, the process proceeds to S35, and if encoding processing, the process proceeds to S40. When the process proceeds to S40, the code data 14 is output to the outside and the process ends.

【0008】一方、S35では、符号量算出部4におい
て、積算した部分符号量データ15から画面全体あるい
は色成分等を単位とした総符号量を計算する。S36で
は、制御部5において、S32からS38までの反復処
理を継続するか否かを判断する。例えば、符号量が許容
範囲に入ることを終了条件とした場合、総符号量データ
16とS31で設定された目標符号量との差が、設定さ
れた許容範囲に含まれるか否かを判断する。許容範囲に
含まれていない場合にはS37へ進み、含まれている場
合S39へ進む。上述の特開平4−2291号公報で
は、S36の判断基準として、反復回数を終了条件とす
る場合の例についても記載されている。
On the other hand, in S35, the code amount calculating section 4 calculates the total code amount in the unit of the entire screen or the color component from the integrated partial code amount data 15. In S36, the control unit 5 determines whether or not to repeat the iterative process from S32 to S38. For example, when the termination condition is that the code amount falls within the allowable range, it is determined whether or not the difference between the total code amount data 16 and the target code amount set in S31 is included in the set allowable range. . If it is not included in the allowable range, the process proceeds to S37, and if it is included in the allowable range, the process proceeds to S39. The above-mentioned Japanese Patent Laid-Open No. 4-2291 also describes an example in which the number of iterations is used as the termination condition as the determination criterion in S36.

【0009】S39へ進んだ場合は、制御部5において
符号化処理を指示し、S33へ戻る。S37へ進んだ場
合は、制御部5において統計処理を指示する。そしてS
38において、量子化幅推定部10で、制御データ17
と総符号量データ23に基づき、あらかじめ定められた
手法で量子化幅の推定を行なう。そして推定処理が終了
した後、S33へ戻る。
When the process proceeds to S39, the control unit 5 instructs the encoding process, and the process returns to S33. When the process proceeds to S37, the control unit 5 instructs the statistical processing. And S
38, the quantization width estimation unit 10 controls the control data 17
Based on the total code amount data 23, the quantization width is estimated by a predetermined method. Then, after the estimation process ends, the process returns to S33.

【0010】以上の処理において、S42の量子化処理
は、量子化幅推定部10からの量子化幅データ22に基
づいて行なわれる。S41における画像変換処理で得ら
れる変換データ12は、反復の回数に関わらず一定であ
り、またS43における可変長符号化処理で得られる符
号データの量は、量子化データ13の量に依存する。す
なわち、量子化幅データ22を制御することにより、量
子化データ13を制御し、最終的に得られる符号データ
14の総符号量を制御することができる。
In the above processing, the quantization processing of S42 is performed based on the quantization width data 22 from the quantization width estimation unit 10. The conversion data 12 obtained by the image conversion processing in S41 is constant regardless of the number of iterations, and the amount of code data obtained by the variable length encoding processing in S43 depends on the amount of quantized data 13. That is, by controlling the quantization width data 22, the quantization data 13 can be controlled, and the total code amount of the code data 14 finally obtained can be controlled.

【0011】以下、量子化幅の推定処理について説明す
る。前述の特開平4−2291号公報には、一例として
次のような趣旨のことが述べられている。ある1つの画
像データに対して、量子化幅に対する相対的な比(以
下、量子化係数という)SFと符号量CLとの関係を見
ると、次の式が成立する。
The quantization width estimation process will be described below. The above-mentioned Japanese Patent Application Laid-Open No. 4-2291 describes the following points as an example. Looking at the relationship between the relative ratio to the quantization width (hereinafter, referred to as a quantization coefficient) SF and the code amount CL for a certain image data, the following formula is established.

【数1】 (1)式において、aは画像によらないほぼ一定の定数
であり、bは画像に依存する定数である。従って(1)
式においてaとbを適当な値に決定できれば、所望の符
号量を得るための量子化係数SFを近似的に求めること
ができる。ここで求めた値から量子化幅の初期値を計算
し、あとは、例えば、ニュートン・ラプソン法等の手法
を使用することにより、所望の符号量CLに対応する量
子化係数SFを求めることができる。
[Equation 1] In the equation (1), a is a constant that does not depend on the image, and b is a constant that depends on the image. Therefore (1)
If a and b can be determined to be appropriate values in the equation, the quantization coefficient SF for obtaining a desired code amount can be approximately obtained. The initial value of the quantization width is calculated from the value obtained here, and thereafter, the quantization coefficient SF corresponding to the desired code amount CL can be obtained by using a method such as the Newton-Raphson method. it can.

【0012】また、画像符号化の標準方式であるJPE
G(Joint Photographic Expe
rts Group)においても、同様の式を用いてい
る。ただし、ここではパラメータaもb同様に画像に依
存するとしている。
In addition, JPE, which is a standard method of image coding,
G (Joint Photographic Expe
rts Group) also uses the same formula. However, here, the parameter a is also dependent on the image like b.

【0013】図5は、実験から求めた量子化係数SFと
符号量CLの関係の一例を示すグラフである。実際にあ
る画像について、量子化係数と符号量の関係を調べる
と、図5に示すように、量子化係数SFの対数と符号量
CLの対数のグラフ(以下、単にグラフと呼ぶことがあ
る)は、厳密な直線ではなく、全体的に見て、量子化係
数SFが小さく、符号量CLの大きい部分で上に凸とな
り、量子化係数SFが大きく、符号量CLの小さい部分
で下に凸となる。また、このグラフを詳細に見ると、小
さな凹凸がいくつも見られ、必ずしも平坦とは言えな
い。このような理由から、上述の(1)式を用いた仮定
と実際の実験結果との間には差分が存在する。
FIG. 5 is a graph showing an example of the relationship between the quantized coefficient SF and the code amount CL obtained from the experiment. When the relationship between the quantized coefficient and the code amount is examined for an actual image, as shown in FIG. 5, a graph of the logarithm of the quantized coefficient SF and the logarithm of the code amount CL (hereinafter may be simply referred to as a graph). Is not a strict straight line, and as a whole, the quantized coefficient SF is small and is convex upward in a portion with a large code amount CL, and is convex downward in a portion with a large quantized coefficient SF and a small code amount CL. Becomes In addition, looking at this graph in detail, it can be said that it is not necessarily flat, because there are many small irregularities. For this reason, there is a difference between the assumption using the above equation (1) and the actual experimental result.

【0014】図6は、量子化係数SFの対数と符号量C
Lの対数のグラフを微視的に見た場合の説明図である。
量子化係数SFは連続的な値をとるが、符号量CLは量
子化という処理の特性上、離散的な値しかとりえない。
従って、図5に示したグラフを拡大すると、図6に示す
ようなステップ状になっていると考えられる。このよう
な理由からも、上述の(1)式を用いた仮定と実際の実
験結果との間には差分が存在すると考えられる。
FIG. 6 shows the logarithm of the quantization coefficient SF and the code amount C.
It is explanatory drawing at the time of seeing the logarithmic graph of L microscopically.
The quantization coefficient SF takes a continuous value, but the code amount CL can take only a discrete value due to the characteristic of the processing called quantization.
Therefore, when the graph shown in FIG. 5 is enlarged, it is considered that the graph has a step shape as shown in FIG. For this reason as well, it is considered that there is a difference between the assumption using the equation (1) and the actual experimental result.

【0015】図7は、画像の相違による傾きaの値のば
らつきを示すグラフである。図7は、チャートナンバー
0〜9の10種類の画像について、JPEGのBase
line方式を用いていくつかの量子化係数SFに対す
る符号量CLを測定し、(1)式のパラメータaを重回
帰分析によって求めた結果を示している。なお、図7で
は、各画像をLab空間で3成分に分解し、それぞれの
成分ごとの符号量CLを求めている。図中、○はL成分
の符号量CLから求めたパラメータaの値を示し、同様
に、▲はa成分、×はb成分のパラメータaの値を示し
ている。図7からもわかるように、上述の(1)式にお
けるパラメータaは、画像によらず一定とはいえない。
FIG. 7 is a graph showing variations in the value of the inclination a due to differences in images. FIG. 7 shows JPEG Base for 10 types of images with chart numbers 0-9.
The code | symbol amount CL with respect to some quantized coefficient SF is measured using the line method, and the result which calculated | required the parameter a of Formula (1) by multiple regression analysis is shown. Note that in FIG. 7, each image is decomposed into three components in the Lab space, and the code amount CL for each component is obtained. In the figure, ∘ indicates the value of the parameter a calculated from the code amount CL of the L component, similarly, ∘ indicates the value of the parameter a of the a component, and x indicates the value of the parameter a of the b component. As can be seen from FIG. 7, the parameter a in the above equation (1) cannot be said to be constant regardless of the image.

【0016】このように、上述の(1)式を用いた仮定
と実際の実験結果との間には差分が存在する。この差分
によって、いくつかの問題を生じる。特に、上述の特開
平4−2291号公報によれば、例としてニュートン・
ラプソン法を推定処理に用いているが、単純にニュート
ン・ラプソン法をそのまま用いるのでは推定処理はうま
く働かない場合が生じる。
As described above, there is a difference between the assumption using the above equation (1) and the actual experimental result. This difference causes some problems. Particularly, according to the above-mentioned Japanese Patent Laid-Open No. 4-2291, Newton
Although the Rapson method is used for the estimation process, if the Newton-Raphson method is used as it is, the estimation process may not work well.

【0017】図8は、ニュートン・ラプソン法の原理の
説明図である。いま、関数f(x)が存在して、あるY
に対してY=f(X)となるようなXを求めたいとす
る。ニュートン・ラプソン法は次のような手順で行なわ
れる。まず、適当な初期値x0を選び、f(x0 )を計
算する。次に、x0 におけるf(x)の微係数、f’
(x0 )を求める。そして、次式によりx1 を計算す
る。
FIG. 8 is an explanatory diagram of the principle of the Newton-Raphson method. Now, the function f (x) exists, and some Y
Suppose we want to find X such that Y = f (X). The Newton-Raphson method is performed in the following procedure. First, an appropriate initial value x 0 is selected and f (x 0 ) is calculated. Next, the differential coefficient of f (x) at x 0 , f ′
Find (x 0 ). Then, x 1 is calculated by the following formula.

【数2】 1 が求まったらx0 の代わりにx1 を用いて、同様の
処理を繰り返し、x2 を得る。これを繰り返すうちに次
第にxn (n=0,1,2,・・・)がXに漸近するの
で、Yとf(xn )の差が許容できる誤差になったとき
に処理を終了する。
[Equation 2] When x 1 is obtained, the same process is repeated using x 1 instead of x 0 to obtain x 2 . While this is repeated, x n (n = 0, 1, 2, ...) Asymptotically approaches X, so the process ends when the difference between Y and f (x n ) becomes an allowable error. .

【0018】上述の特開平4−2291号公報では、こ
のようなニュートン・ラプソン法の手順を用い、例え
ば、logSFをx、logCLをf(x)として考
え、任意の符号量CLを得るための量子化係数SFを決
定している。ところが、実際には量子化係数SFを求め
るためにニュートン・ラプソン法を直接使うことはでき
ない。なぜなら、ニュートン・ラプソン法ではf(x)
の微係数f’(x)を用いるために、f(x)が微分可
能な関数にしか適用することができないからである。図
6を用いて説明したように、量子化係数SFの対数と符
号量CLの対数のグラフはステップ状になると考えられ
る。このようなステップ状の関数は、段のつぎめで微分
不能、言い換えれば微係数が無限大になってしまう。
In the above-mentioned Japanese Patent Application Laid-Open No. 4-2291, the procedure of the Newton-Raphson method is used to consider, for example, logSF as x and logCL as f (x) to obtain an arbitrary code amount CL. The quantization coefficient SF is determined. However, in practice, the Newton-Raphson method cannot be used directly to obtain the quantized coefficient SF. Because in Newton-Raphson method, f (x)
This is because f (x) can be applied only to a differentiable function because the differential coefficient f ′ (x) of is used. As described with reference to FIG. 6, the graph of the logarithm of the quantized coefficient SF and the logarithm of the code amount CL is considered to be stepwise. Such a step-like function cannot be differentiated at the round of steps, in other words, the differential coefficient becomes infinite.

【0019】特開平4−2291号公報には、この問題
の回避方法が記載されていない。もし、この文献に記載
されている通りに、パラメータaが画像によらず一定で
あれば、パラメータaを求める必要がなくなり、従って
ニュートン・ラプソン法自体も使う必要がなくなる。し
かし、図7に示したように、画像によってパラメータa
の値は一定ではなく、そのような仮定は無理がある。結
論としては、やはりパラメータaは画像に応じて計算す
るべきであり、ニュートン・ラプソン法を拡張して応用
する必要が生ずる。
Japanese Unexamined Patent Publication No. 4-2291 does not describe a method for avoiding this problem. If, as described in this document, the parameter a is constant regardless of the image, it is not necessary to obtain the parameter a, and therefore the Newton-Raphson method itself need not be used. However, as shown in FIG.
The value of is not constant and such an assumption is unreasonable. In conclusion, the parameter a should be calculated according to the image, and the Newton-Raphson method needs to be extended and applied.

【0020】そこで、微分が不要となるように、上述の
(2)式を離散的に拡張することを考える。これによれ
ば、(3)式による推定が可能となる。
Therefore, consider expanding the above equation (2) discretely so that differentiation is unnecessary. According to this, it becomes possible to perform estimation by the equation (3).

【数3】 ここで、Δxは微小な数とする。(3)式でΔx→0の
極限が(2)式と等しくなることから、(3)式が
(2)式の近似であることが容易に理解できる。この
(3)式による離散的なニュートン・ラプソン法を用い
れば、原理的には所望の符号量CLを与える量子化係数
SFを求めることが可能になる。
(Equation 3) Here, Δx is a minute number. Since the limit of Δx → 0 in the expression (3) is equal to the expression (2), it can be easily understood that the expression (3) is an approximation of the expression (2). If the discrete Newton-Raphson method according to the equation (3) is used, it is possible in principle to obtain the quantization coefficient SF that gives the desired code amount CL.

【0021】さらに、(3)式におけるΔxの解釈を拡
大すると、xi +Δxの代わりにxj (j≠i)を使う
ことが考えられる。そこで、xj に前回予測した結果、
すなわちxi-1 を用いてみる。(3)式は次のように表
わすことができる。
Further, expanding the interpretation of Δx in the equation (3), it is conceivable to use x j (j ≠ i) instead of x i + Δx. Therefore, the result of the previous prediction for x j ,
That is, let's use x i-1 . Equation (3) can be expressed as follows.

【数4】 つまり、i回目の結果と(i−1)回目の結果から傾き
を計算するのである。Δxの定義からはずれた値を
(3)式に代入したことになるので計算精度は落ちる可
能性があるが、(3)式のようにxi と(xi +Δx)
の2点のデータが必要な式に比べて処理負荷を小さくす
ることができる。
[Equation 4] That is, the slope is calculated from the i-th result and the (i-1) -th result. Since the value deviating from the definition of Δx is substituted into the equation (3), the calculation accuracy may decrease, but as in the equation (3), x i and (x i + Δx)
The processing load can be reduced as compared with an equation that requires data of two points.

【0022】しかし、これらの手法はいくつかの問題を
生じる。この問題点は、図5に示したように、グラフ全
体に凹凸が存在することによる推定誤差に起因する問題
である。図9は、グラフが上に凸のカーブを描いている
場合の推定誤差の説明図である。いま、量子化係数SF
0 とSF1 を用いて次の量子化係数SF2 を推定する。
この場合、図9において、量子化係数SF0 とSF1
結ぶ一点鎖線が、上述の(1)式の直線にあたる。その
ため、量子化係数SF2 は、この直線上で目標とする符
号量CLにあたる点として求められる。このとき、この
直線と実際のグラフとは同一ではないため、SF2 で実
際に符号化すると、図9で示すような誤差が生じる。
However, these approaches give rise to some problems. This problem is caused by an estimation error due to the presence of unevenness in the entire graph as shown in FIG. FIG. 9 is an explanatory diagram of the estimation error when the graph has an upwardly convex curve. Now, the quantization coefficient SF
The next quantized coefficient SF 2 is estimated using 0 and SF 1 .
In this case, in FIG. 9, the alternate long and short dash line connecting the quantization coefficients SF 0 and SF 1 corresponds to the straight line of the above-mentioned expression (1). Therefore, the quantization coefficient SF 2 is obtained as a point on the straight line that corresponds to the target code amount CL. At this time, since this straight line is not the same as the actual graph, when the SF 2 is actually encoded, an error as shown in FIG. 9 occurs.

【0023】この例では、量子化係数SF0 とSF
1 が、得たい量子化係数SFの両側に存在する。このよ
うな場合には、図9で一点鎖線で示したように、量子化
係数SF2 において、グラフのカーブは常に(1)式の
直線の上側に存在する。そのため、誤差は実際の符号量
が多い方への誤差となる。符号量制御においては、ある
符号量以下に抑えることが多いので、符号量CLが目標
値を越えることは望ましくない。
In this example, the quantization coefficients SF 0 and SF
1 exists on both sides of the desired quantization coefficient SF. In such a case, as shown by the alternate long and short dash line in FIG. 9, the curve of the graph always exists above the straight line of the equation (1) at the quantization coefficient SF 2 . Therefore, the error is the error toward the one with the larger actual code amount. In the code amount control, since the code amount is often suppressed to a certain code amount or less, it is not desirable that the code amount CL exceeds the target value.

【0024】図10は、グラフが下に凸のカーブを描い
ている場合の推定誤差の説明図である。図10では、量
子化係数SF0 とSF1 が、得たい量子化係数SFより
も大きい側に2つとも存在している。このとき、量子化
係数SF0 とSF1 を結ぶ一点鎖線が(1)式の直線に
あたる。そのため、量子化係数SF2 は、この直線上で
目標とする符号量CLにあたる点として求められる。し
かし、グラフが上に凸の場合と同様に、量子化係数SF
2 において、グラフのカーブは常に(1)式の直線の上
側に存在する。そのため、実際の符号量が多い方へ誤差
が発生する。また、量子化係数SF0 とSF1 が2つと
も得たい量子化係数SFよりも小さい側に存在する場合
にも、同様の理由によって実際の符号量が多い方へ誤差
が発生する。
FIG. 10 is an explanatory diagram of the estimation error when the graph has a downward convex curve. In FIG. 10, two quantized coefficients SF 0 and SF 1 exist on the side larger than the desired quantized coefficient SF. At this time, the alternate long and short dash line connecting the quantization coefficients SF 0 and SF 1 corresponds to the straight line of the equation (1). Therefore, the quantization coefficient SF 2 is obtained as a point on the straight line that corresponds to the target code amount CL. However, as in the case where the graph is convex upward, the quantization coefficient SF
In 2 , the curve of the graph is always above the straight line in equation (1). Therefore, an error occurs in the side where the actual code amount is large. Also, when both of the quantized coefficients SF 0 and SF 1 are present on the side smaller than the desired quantized coefficient SF, an error occurs in the direction in which the actual code amount is large for the same reason.

【0025】このように、従来の推定処理においては、
実際の符号量が目標とする符号量よりも多い方へ誤差が
発生する場合があるという問題を有していた。
As described above, in the conventional estimation process,
There is a problem that an error may occur in a direction in which the actual code amount is larger than the target code amount.

【0026】[0026]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、正の誤差を出さず、かつ精
度よく量子化係数SFを推定し、効率の良い符号化を行
なうことのできる画像符号化装置を提供することを目的
とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned circumstances, and it is possible to accurately estimate the quantization coefficient SF without causing a positive error and perform efficient encoding. It is an object of the present invention to provide an image encoding device capable of performing the above.

【0027】[0027]

【課題を解決するための手段】本発明は、画像符号化装
置において、画像の変換を行ない変換データを出力する
画像変換手段と、該変換データに対して与えられた量子
化幅に従って量子化を行ない量子化データを出力する量
子化手段と、該量子化データに対して可変長符号化を施
す可変長符号化手段と、該可変長符号化手段で作成され
る符号量を積算して単位画像の符号量を求める符号量算
出手段と、該符号量算出手段において作成される単位画
像の符号量と予め設定された目標符号量を比較してその
結果に応じた制御を行なう制御手段と、該制御手段から
の制御に従いそれまでの符号化結果から得られた量子化
係数の対数と対応する符号量の対数のグラフの形状およ
び目標符号量に基づいて前記量子化係数を計算しさらに
該量子化係数に基づいて量子化幅を計算して前記量子化
手段に与える量子化幅推定手段を有することを特徴とす
るものである。
According to the present invention, in an image coding apparatus, image conversion means for converting an image and outputting converted data, and quantization according to a quantization width given to the converted data. Quantization means for outputting quantized data, variable length coding means for performing variable length coding on the quantized data, and unit image by integrating the code amount created by the variable length coding means And a control means for comparing the code amount of the unit image created by the code amount calculating means with a preset target code amount and performing control according to the result. Under the control of the control means, the quantized coefficient is calculated based on the shape of the graph of the logarithm of the quantized coefficient and the logarithm of the corresponding code amount and the target code amount obtained from the encoding results up to that point, and further the quantized Based on coefficient It is characterized in that it has a quantization width estimating means calculates the quantization width supplied to the quantization means are.

【0028】前記量子化幅推定手段は、請求項2に記載
の発明のように、量子化係数の対数と対応する符号量の
対数のグラフの形状が上に凸の場合には、目標符号量よ
り多くかつ目標符号量に最も近い符号量を与える2つの
符号化結果、または、目標符号量よりも少なくかつ目標
符号量に最も近い符号量を与える2つの符号化結果を選
択して、前記量子化係数および前記量子化幅を計算する
ように構成することができる。
When the shape of the graph of the logarithm of the code amount corresponding to the logarithm of the quantization coefficient is convex upward, the quantizing width estimating means sets the target code amount. The two coding results that give the larger code amount and the code amount closest to the target code amount, or the two coding results that give the code amount smaller than the target code amount and closest to the target code amount are selected, It can be configured to calculate a quantization factor and the quantization width.

【0029】また、請求項3に記載の発明のように、前
記量子化幅推定手段は、量子化係数の対数と対応する符
号量の対数のグラフの形状が下に凸の場合には、目標符
号量より多くかつ目標符号量に最も近い符号量を与える
1つの符号化結果と、目標符号量より少なくかつ目標符
号量に最も近い符号量を与える1つの符号化結果を選択
して、前記量子化係数および前記量子化幅を計算するよ
うに構成することができる。
Further, as in the invention described in claim 3, when the shape of the graph of the logarithm of the code amount corresponding to the logarithm of the quantization coefficient is convex downward, One encoding result that gives a code amount that is greater than the code amount and closest to the target code amount and one encoding result that gives a code amount that is less than the target code amount and closest to the target code amount are selected and It can be configured to calculate a quantization factor and the quantization width.

【0030】さらに、請求項4に記載の発明のように、
前記量子化幅推定手段を、前記制御手段からの制御に従
い適応的にパラメータの作成方法を選択するパラメータ
選択手段と、該パラメータ選択手段からの制御に応じ予
め定められた定数を傾きパラメータおよび量子化係数の
初期値として提供する定数提示手段と、前記パラメータ
選択手段からの制御に応じ量子化係数の対数と対応する
符号量の対数のグラフの形状に基づき傾きパラメータを
計算する傾き計算手段と、前記定数提示手段または前記
傾き計算手段から与えられた傾きパラメータと前記目標
符号量を基に前記量子化係数および前記量子化幅を計算
する量子化幅計算手段を有するように構成することがで
きる。
Further, as in the invention described in claim 4,
The quantization width estimation means is a parameter selection means for adaptively selecting a parameter creation method according to the control from the control means, and a slope parameter and a quantization which are predetermined constants according to the control from the parameter selection means. Constant presenting means provided as an initial value of the coefficient, slope calculating means for calculating the slope parameter based on the shape of the graph of the logarithm of the quantization coefficient corresponding to the logarithm of the quantization coefficient according to the control from the parameter selecting means, It may be configured to have a quantization width calculation means for calculating the quantization coefficient and the quantization width based on the slope parameter given from the constant presenting means or the slope calculating means and the target code amount.

【0031】請求項4に記載の画像符号化装置における
前記定数提示手段は、請求項5に記載の発明のように、
前記量子化幅計算手段に与える前記傾きパラメータの初
期値の絶対値を、量子化係数の対数と対応する符号量の
対数のグラフが上に凸の場合には想定される値よりも大
きめに、また前記グラフが下に凸の場合には想定される
値よりも小さめに設定するように構成することができ
る。
According to the invention of claim 5, the constant presenting means in the image coding device of claim 4 is as follows.
The absolute value of the initial value of the slope parameter to be given to the quantization width calculation means is larger than the expected value when the graph of the logarithm of the code amount corresponding to the logarithm of the quantization coefficient is convex upward, Further, when the graph is convex downward, it can be configured to be set smaller than an expected value.

【0032】このとき、請求項6に記載の発明のよう
に、前記定数提示手段が前記量子化幅計算手段に与える
前記量子化係数の初期値を、予め求めた平均的な値とす
るように構成することができる。
At this time, as in the invention described in claim 6, the constant presenting means sets the initial value of the quantization coefficient given to the quantization width calculating means to an average value obtained in advance. Can be configured.

【0033】さらに、請求項7に記載の発明のように、
前記定数提示手段は、前記量子化幅計算手段に与えるパ
ラメータを複数用意し、目標符号量に応じて選択的に使
用するように構成することができる。
Further, as in the invention described in claim 7,
The constant presenting means may be configured to prepare a plurality of parameters to be given to the quantization width calculating means and selectively use the parameters according to the target code amount.

【0034】上述の請求項1ないし7のいずれか1項に
記載の画像符号化装置において、前記制御手段は、請求
項8に記載の発明のように、単位画像の符号量と前記目
標符号量との差がある許容値に入るまで該単位画像に関
して推定処理および符号化処理を反復し、しかる後に符
号を出力するよう制御する構成とすることができる。
In the image coding apparatus according to any one of claims 1 to 7 described above, the control means, as in the invention described in claim 8, has the code amount of the unit image and the target code amount. The estimation process and the encoding process may be repeated for the unit image until the difference between and reaches a certain allowable value, and then control may be performed to output the code.

【0035】また、請求項1ないし8のいずれか1項に
記載の画像符号化装置において、前記画像変換手段は、
請求項9に記載の発明のように、前記変換データを記憶
する変換データ記憶手段を備え、必要に応じて前記変換
データを繰り返し読み出せるように構成することができ
る。
Further, in the image coding apparatus according to any one of claims 1 to 8, the image conversion means includes:
According to a ninth aspect of the present invention, a conversion data storage unit that stores the conversion data is provided, and the conversion data can be repeatedly read as necessary.

【0036】さらに、請求項1ないし9のいずれか1項
に記載の画像符号化装置において、前記可変長符号化手
段は、請求項10に記載の発明のように、作成した符号
を記憶する符号記憶手段を備え、最新の符号または前記
目標符号量に最も近い符号量を持つ符号もしくは前記目
標符号量以下で最も近い符号量を持つ符号を記憶する記
憶手段を備え、必要に応じて読み出せるように構成する
ことができる。
Further, in the image coding apparatus according to any one of claims 1 to 9, the variable length coding means stores the code created as in the invention described in claim 10. A storage means is provided to store the latest code, a code having a code quantity closest to the target code quantity, or a code having a code quantity closest to or less than the target code quantity, so that the code can be read out as necessary. Can be configured to.

【0037】[0037]

【作用】上述の図9で示したように、上に凸のグラフで
は、本来得たい量子化係数SFを挟むような2点から推
定すると、実際のグラフはその2点を結ぶ直線の上を通
過するから、必ず誤差は符号量が増える方へ現れる。ま
た、下に凸のグラフでは、図10に示したように、本来
得たい量子化係数SFよりも大きい側または小さい側の
どちらか一方に存在する2点から推定すると、実際のグ
ラフはその2点を結ぶ直線の上を通過し、同様に誤差は
符号量が増える方へ現れる。逆に、上に凸のグラフにお
いて、2点が得たい量子化係数SFを挟まなければ、誤
差は符号量が少ない方へ現れる。下に凸のグラフにおい
ても、得たい量子化係数SFを挟む2点を用いれば、誤
差は符号量が少ない方へ現れる。誤差を必ずマイナスに
するには、このような性質を考慮した処理を行なえばよ
い。以下、過去の符号化結果における量子化係数SFと
符号量CLの組を推定用データと呼ぶことにする。
As shown in FIG. 9 described above, in the case of an upwardly convex graph, when estimated from two points sandwiching the originally desired quantization coefficient SF, the actual graph is on a straight line connecting the two points. Since it passes, the error always appears in the direction in which the code amount increases. Further, in the downward convex graph, as shown in FIG. 10, when estimated from two points existing on either the larger side or the smaller side of the originally desired quantization coefficient SF, the actual graph is It passes over the straight line connecting the points, and the error appears in the same way as the code amount increases. On the contrary, in the graph which is convex upward, if two points do not sandwich the quantized coefficient SF that is desired to be obtained, the error appears in the smaller code amount. Even in the downward convex graph, if two points sandwiching the desired quantized coefficient SF are used, the error appears in the direction of smaller code amount. In order to make the error always minus, it is sufficient to perform the processing in consideration of such a property. Hereinafter, a set of the quantization coefficient SF and the code amount CL in the past coding result will be referred to as estimation data.

【0038】そこで、本発明によれば、量子化幅推定手
段において、それまでの符号化結果から得られた量子化
係数SFの対数と対応する符号量CLの対数のグラフの
形状および目標符号量に基づいて量子化係数SFを推定
する。特に、グラフの形状が上に凸の場合には、請求項
2に記載の発明のように、目標符号量より多くかつ目標
符号量に最も近い符号量を与える2つの符号化結果、ま
たは、目標符号量よりも少なくかつ目標符号量に最も近
い符号量を与える2つの符号化結果を選択して、量子化
係数SFを推定する。また、グラフの形状が下に凸の場
合には、請求項3に記載の発明のように、目標符号量よ
り多くかつ目標符号量に最も近い符号量を与える1つの
符号化結果と、目標符号量より少なくかつ目標符号量に
最も近い符号量を与える1つの符号化結果を選択して、
前記量子化係数SFを推定する。このような推定を行な
うことによって、誤差は必ずマイナスとなり、実際の符
号量が目標値を上回ることはない。
Therefore, according to the present invention, in the quantization width estimating means, the graph shape and the target code amount of the logarithm of the code amount CL corresponding to the logarithm of the quantization coefficient SF obtained from the encoding results up to that time. The quantization coefficient SF is estimated based on In particular, when the shape of the graph is convex upward, as in the invention according to claim 2, two coding results that give a code amount that is larger than the target code amount and closest to the target code amount, or the target The quantization coefficient SF is estimated by selecting two coding results that give a code amount smaller than the code amount and closest to the target code amount. When the shape of the graph is convex downward, one encoding result that gives a code amount larger than the target code amount and closest to the target code amount, and the target code, as in the invention according to claim 3, Select one coding result that gives a code amount that is less than the amount and is closest to the target code amount,
The quantization coefficient SF is estimated. By performing such an estimation, the error always becomes negative, and the actual code amount does not exceed the target value.

【0039】2回の推定処理の後に符号データを出力す
るような場合、すなわち、2つの推定用データから量子
化係数SFを推定し、量子化幅を決定して量子化し、可
変長符号化を行なう場合には、さらに工夫が必要とな
る。この場合、グラフが上に凸の場合、2回目の推定処
理で得られた推定用データの量子化係数SF1 は、量子
化係数の初期値SF0 から見て求める量子化係数SFを
越えてはならない。すなわち、量子化係数SF0 とSF
1 の位置関係が上述の図9に示す関係となってはならな
い。そのため、量子化係数SF1 を求める際の傾きパラ
メータaの絶対値を大きめにする必要がある。逆にグラ
フが下に凸の場合には、傾きパラメータaの絶対値を小
さめにとればよい。
In the case where code data is output after two estimation processes, that is, the quantization coefficient SF is estimated from the two estimation data, the quantization width is determined and quantization is performed, and variable length encoding is performed. If it is done, further improvement is required. In this case, when the graph is convex upward, the quantization coefficient SF 1 of the estimation data obtained in the second estimation process exceeds the quantization coefficient SF obtained from the initial value SF 0 of the quantization coefficient. Don't That is, the quantization coefficients SF 0 and SF
The positional relationship of 1 should not be the relationship shown in FIG. 9 described above. Therefore, it is necessary to increase the absolute value of the slope parameter a when obtaining the quantization coefficient SF 1 . On the contrary, when the graph is convex downward, the absolute value of the tilt parameter a may be set to be small.

【0040】これを実現するため、請求項4に記載の発
明によれば、量子化幅推定手段内に、適応的にパラメー
タの作成方法を選択するパラメータ選択手段と、該パラ
メータ選択手段からの制御に応じ予め定められた定数を
傾きパラメータおよび量子化係数の初期値として提供す
る定数提示手段と、パラメータ選択手段からの制御に応
じ量子化係数の対数と対応する符号量の対数のグラフの
形状に基づき傾きパラメータを計算する傾き計算手段
と、前記定数提示手段または前記傾き計算手段から与え
られた傾きパラメータと前記目標符号量を基に前記量子
化係数および前記量子化幅を計算する量子化幅計算手段
を有するように構成し、グラフの形状に合わせて傾きパ
ラメータを変更して推定を開始する。特に、請求項5に
記載の発明のように、定数提示手段が量子化幅計算手段
に与える前記傾きパラメータの初期値の絶対値を、グラ
フが上に凸の場合には想定される値よりも大きめに、ま
たグラフが下に凸の場合には想定される値よりも小さめ
に設定する。このような構成によって、推定の過程で上
述の図9や図10に示すような状態とはならずに、必ず
誤差がマイナスとなるような推定処理を行なうことがで
き、実際の符号量が目標の符号量を上回ることなく、符
号化を行なうことができる。このとき、定数提示手段が
傾きパラメータとともに量子化幅計算手段に与える量子
化係数の初期値としては、請求項6に記載の発明のよう
に、予め求めた平均的な値とすることができる。
In order to realize this, according to the invention described in claim 4, in the quantization width estimating means, there is provided parameter selecting means for adaptively selecting a method for creating parameters, and control from the parameter selecting means. According to the control from the parameter selecting means, a constant presenting means for providing a predetermined constant as a slope parameter and an initial value of the quantizing coefficient, and a graph shape of a logarithm of the quantizing coefficient and a logarithm of the corresponding code amount. A slope calculation means for calculating a slope parameter based on the slope parameter; a quantization width calculation for calculating the quantization coefficient and the quantization width based on the slope parameter given by the constant presenting means or the slope calculation means and the target code amount. The estimation is started by changing the tilt parameter according to the shape of the graph. In particular, as in the invention described in claim 5, the absolute value of the initial value of the slope parameter given to the quantization width calculation means by the constant presentation means is set to be larger than the expected value when the graph is convex upward. Set to a larger value, or smaller than the expected value if the graph is convex downward. With such a configuration, it is possible to perform an estimation process such that the error does not necessarily become negative without causing the states shown in FIGS. 9 and 10 in the estimation process, and the actual code amount is the target. It is possible to perform encoding without exceeding the code amount of. At this time, as the initial value of the quantization coefficient which the constant presenting means gives to the quantization width calculating means together with the slope parameter, it is possible to use an average value obtained in advance as in the invention described in claim 6.

【0041】さらに、図5で説明したように、量子化係
数SFの対数と符号量CLの対数との関係は、符号量C
Lが少ない場合にはグラフが下に凸になり、符号量CL
が多い場合には、グラフが上に凸になる。このような性
質を利用し、請求項7に記載の発明のように、定数提示
手段は、前記量子化幅計算手段に与えるパラメータを複
数用意しておき、目標符号量に応じて選択的に使用する
ように構成することができる。これにより、どのような
目標符号量が与えられても、適切な初期値を選択して使
用し、良好な量子化係数の推定を行なうことができる。
Further, as described with reference to FIG. 5, the relationship between the logarithm of the quantization coefficient SF and the logarithm of the code amount CL is the code amount C.
When L is small, the graph is convex downward and the code amount CL
If there are many, the graph will be convex upward. By utilizing such a property, as in the invention according to claim 7, the constant presenting means prepares a plurality of parameters to be given to the quantization width calculating means, and selectively uses them according to the target code amount. Can be configured to. As a result, no matter what target code amount is given, it is possible to select and use an appropriate initial value and perform good estimation of the quantized coefficient.

【0042】請求項8に記載の発明によれば、上述のよ
うな推定処理および符号化処理を、単位画像の符号量と
目標符号量との差がある許容値に入るまで反復し、しか
る後に符号を出力するように制御手段が制御する。これ
により、符号量の誤差を許容範囲内に収めることができ
る。もちろん、上述のような推定処理を行なうことによ
り、誤差は必ずマイナスであり、実際の符号量が目標符
号量を上回ることはない。
According to the eighth aspect of the present invention, the estimation processing and the encoding processing as described above are repeated until the difference between the code amount of the unit image and the target code amount reaches a permissible value, and after that, The control means controls to output the code. As a result, the error in the code amount can be kept within the allowable range. Of course, by performing the above estimation process, the error is always negative and the actual code amount does not exceed the target code amount.

【0043】また、請求項9に記載の発明によれば、画
像変換手段は、変換データを記憶する変換データ記憶手
段を備え、必要に応じて前記変換データを繰り返し読み
出せるように構成する。これにより、反復して行なわれ
る推定処理および符号化処理において、2回目以降の推
定処理および符号化処理では、記憶している変換データ
を読み出せばよいため、不変の変換データを毎回生成す
る処理を行なわなくても済むため、全体の処理量を低下
させ、量子化処理以降の処理を効率的に行なうことがで
きる。
Further, according to the invention described in claim 9, the image conversion means is provided with a conversion data storage means for storing the conversion data, and is constituted so that the conversion data can be repeatedly read as necessary. As a result, in the iterative estimation processing and encoding processing, since the stored conversion data only has to be read in the estimation processing and the encoding processing after the second time, processing for generating unchanged conversion data each time. Since it is not necessary to perform the above, it is possible to reduce the overall processing amount and efficiently perform the processing after the quantization processing.

【0044】さらに、請求項10に記載の発明によれ
ば、可変長符号化手段は、作成した符号を記憶する符号
記憶手段を備え、最新の符号または目標符号量に最も近
い符号量を持つ符号もしくは目標符号量以下で最も近い
符号量を持つ符号を記憶する記憶手段を備え、必要に応
じて読み出せるように構成する。これにより、推定処理
によって得られた符号が最良であった場合、再度の量子
化処理および符号化処理を行なわずに、記憶している符
号データを読み出して出力すればよいので、画像符号化
装置のスループットを向上させることができる。
According to the tenth aspect of the invention, the variable length coding means includes code storage means for storing the created code, and has the latest code or the code having the code quantity closest to the target code quantity. Alternatively, a storage means for storing the code having the closest code amount less than or equal to the target code amount is provided, and the code can be read as necessary. As a result, when the code obtained by the estimation process is the best, the stored code data may be read and output without performing the quantization process and the coding process again. Therefore, the image coding device Throughput can be improved.

【0045】[0045]

【実施例】図1は、本発明の画像符号化装置の一実施例
を示すブロック図である。図中、図2と同様の部分には
同じ符号を付して説明を省略する。6はパラメータ選択
部、7は定数提示部、8は傾き計算部、9は量子化幅計
算部、18,19は制御データ、20,21はパラメー
タデータである。
1 is a block diagram showing an embodiment of an image coding apparatus of the present invention. In the figure, the same parts as those in FIG. 6 is a parameter selection unit, 7 is a constant presentation unit, 8 is a slope calculation unit, 9 is a quantization width calculation unit, 18 and 19 are control data, and 20 and 21 are parameter data.

【0046】パラメータ選択部6は、制御部5からの制
御データ17の内容に応じて適応的にパラメータの作成
方式を選択し、定数提示部7または傾き計算部8へパラ
メータの算出及び提示を指示する。定数提示部7は、予
め定められた傾きaと量子化係数SFの値をパラメータ
データ20として量子化幅計算部9へ送出する。傾き計
算部8は、パラメータ選択部6から与えられる制御デー
タ19から、符号量CLと量子化係数SFの関係のグラ
フの傾きを推定し、パラメータデータ21として量子化
幅計算部8へ送出する。量子化幅計算部8は、与えられ
たパラメータデータ20または21から目標符号量に対
応すると予測される量子化係数SFを算出し、それを量
子化幅に換算して量子化幅データ22として量子化部2
へ送出する。この際、パラメータデータ20によって直
接量子化係数SFが指定される場合には、量子化係数S
Fの算出処理は行なわず、与えられた量子化係数SFか
ら量子化幅を求める。
The parameter selection unit 6 adaptively selects a parameter creation method according to the contents of the control data 17 from the control unit 5, and instructs the constant presenting unit 7 or the slope calculating unit 8 to calculate and present the parameters. To do. The constant presentation unit 7 sends the predetermined slope a and the value of the quantization coefficient SF as parameter data 20 to the quantization width calculation unit 9. The gradient calculator 8 estimates the gradient of the graph of the relationship between the code amount CL and the quantization coefficient SF from the control data 19 given from the parameter selector 6 and sends it as parameter data 21 to the quantization width calculator 8. The quantization width calculation unit 8 calculates a quantization coefficient SF predicted to correspond to the target code amount from the given parameter data 20 or 21 and converts it into a quantization width to quantize the quantization width data 22. Conversion unit 2
Send to. At this time, when the quantization coefficient SF is directly designated by the parameter data 20, the quantization coefficient S
The calculation process of F is not performed, and the quantization width is obtained from the given quantization coefficient SF.

【0047】画像変換部1で用いる変換手法としては、
例えば、離散コサイン変換(DCT)を用いることがで
きる。このとき、変換データ12は、DCT変換係数で
ある。また、可変長符号化部3で用いる可変長符号化手
法としては、例えば、ハフマン符号化を用いることがで
きる。もちろん、他の変換手法、可変長符号化手法を用
いることもできる。
The conversion method used in the image conversion unit 1 is as follows.
For example, the Discrete Cosine Transform (DCT) can be used. At this time, the transform data 12 is a DCT transform coefficient. As a variable length coding method used in the variable length coding unit 3, for example, Huffman coding can be used. Of course, other conversion methods and variable length coding methods can also be used.

【0048】また、画像変換部1内に、変換データ12
を格納しておくメモリを設けることができる。推定処理
においては、量子化幅を変更しながら変換データ12に
対して繰り返し量子化処理を行なうが、量子化処理の対
象となる変換データ12は同じデータである。そのた
め、変換データ12をメモリに格納しておき、必要に応
じて読み出すように構成することによって、同一の変換
処理を繰り返し行なう必要が無くなり、量子化部2が変
換データ12を得るまでの所要時間を短縮して全体の処
理時間を短縮することができる。
Further, the conversion data 12 is stored in the image conversion unit 1.
A memory may be provided to store the. In the estimation process, the transform data 12 is repeatedly quantized while changing the quantization width, but the transform data 12 to be quantized is the same data. Therefore, by storing the converted data 12 in the memory and reading it as necessary, it is not necessary to repeatedly perform the same conversion process, and the time required for the quantizer 2 to obtain the converted data 12 Can be shortened to shorten the entire processing time.

【0049】さらに、可変長符号化部3に、符号を格納
しておくメモリを設けることができる。得られた符号の
符号量が目標符号量に非常に近い場合など、現在の符号
をそのまま出力できるとき、メモリ内の符号を読み出し
て符号データ14として出力する。これにより、最終回
の量子化処理および符号化処理を行なわずに済むので、
全体の処理時間を短縮し、スループットを向上させるこ
とができる。
Further, the variable length coding unit 3 can be provided with a memory for storing codes. When the current code can be output as it is, such as when the code amount of the obtained code is very close to the target code amount, the code in the memory is read and output as the code data 14. As a result, it is not necessary to perform the final quantization processing and coding processing.
Overall processing time can be shortened and throughput can be improved.

【0050】図11は、本発明の画像符号化装置の一実
施例における動作の一例を説明するフローチャートであ
る。S51において、制御部5に対して許容可能な符号
量の設定を行なう。S52では、定数提示部7におい
て、予め量子化係数SFの初期値として設定された値を
量子化幅計算部9へ送出する。
FIG. 11 is a flow chart for explaining an example of the operation in one embodiment of the image coding apparatus of the present invention. In S51, the allowable code amount is set in the control unit 5. In S52, the constant presenting unit 7 sends the value preset as the initial value of the quantization coefficient SF to the quantization width calculating unit 9.

【0051】S53において、画像変換部1へ画像デー
タ11の入力を行なう。S54では、画像データ11に
対して一連の符号化処理を行なう。この符号化処理は、
図4に示したとおりであるので、ここでは説明を省略す
る。ただし、S42における量子化処理では、定数提示
部7から量子化係数SFがパラメータデータ20として
量子化幅計算部9に渡される場合には、量子化幅計算部
9は、渡された量子化係数SFから量子化幅データ22
を作成し、これに基づいた量子化処理を量子化部2で行
なう。また、傾き計算部8からパラメータデータ21が
量子化幅計算部9に渡される場合には、量子化幅計算部
9は、量子化係数SFを推測し、推測した量子化係数S
Fから量子化幅データ22を作成し、これに基づいた量
子化処理を量子化部2で行なう。
In S53, the image data 11 is input to the image conversion unit 1. In S54, a series of encoding processing is performed on the image data 11. This encoding process
Since it is as shown in FIG. 4, the description is omitted here. However, in the quantization processing in S42, when the quantization coefficient SF is passed from the constant presenting section 7 to the quantization step calculation section 9 as the parameter data 20, the quantization step calculation section 9 uses the passed quantization coefficient. Quantization width data 22 from SF
Is generated, and the quantization processing based on this is performed by the quantization unit 2. When the parameter data 21 is passed from the slope calculator 8 to the quantization width calculator 9, the quantization width calculator 9 estimates the quantization coefficient SF and estimates the estimated quantization coefficient S.
The quantization width data 22 is created from F, and the quantization unit 2 performs the quantization processing based on the quantization width data 22.

【0052】S55〜S58,S61,S62の処理
は、図3におけるS34〜S37,S39,S40の処
理と同様である。すなわち、S55では、制御部5によ
る指示が統計処理か符号化処理かの判断を行ない、符号
化処理であれば、S62において、符号データ14を外
部へ出力して処理を終了する。一方、統計処理であれ
ば、S56に進み、符号量算出部4において、積算した
部分符号量データ15から画面全体あるいは色成分等を
単位とした総符号量を計算する。S57では、制御部5
において、S53〜S60までの反復処理を継続するか
否かを判断する。反復処理を継続する場合、S58で制
御部5において統計処理を指示し、反復処理を終了する
場合、S61で制御部5において符号化処理を指示す
る。どちらの場合もS59へ進み、パラメータ選択部6
に加え、定数提示部7または傾き計算部8のいずれかに
おいて、量子化幅計算部9で使用する傾きの値を設定す
る。そして、S60において量子化係数を推定した後、
S53へ戻る。
The processing of S55 to S58, S61 and S62 is the same as the processing of S34 to S37, S39 and S40 in FIG. That is, in S55, it is determined whether the instruction from the control unit 5 is the statistical processing or the encoding processing. If the instruction is the encoding processing, the encoded data 14 is output to the outside in S62 and the processing ends. On the other hand, in the case of statistical processing, the process proceeds to S56, and the code amount calculation unit 4 calculates the total code amount in the unit of the entire screen or color component from the integrated partial code amount data 15. In S57, the control unit 5
At, it is determined whether or not to repeat the iterative process from S53 to S60. When continuing the iterative process, the control unit 5 instructs the statistical process in S58, and when ending the iterative process, the control unit 5 instructs the encoding process in S61. In either case, the process proceeds to S59, where the parameter selection unit 6
In addition, either the constant presenting unit 7 or the slope calculating unit 8 sets the value of the slope used in the quantization width calculating unit 9. Then, after estimating the quantization coefficient in S60,
Return to S53.

【0053】図12は、傾き設定処理の動作の一例を示
すフローチャートである。S59で行なわれる傾き設定
処理は、例えば、次のようにして行なわれる。S71で
は、制御部5による指示が符号化処理か統計処理かの判
断を行なう。符号化処理の場合、S72において条件に
合う推定用データを選択し、S76へ進む。統計処理の
場合、S73において、パラメータ選択部6で、S53
からS60までの反復回数が1回目か否かを判定し、1
回目の場合には定数提示部7に対してパラメータデータ
の作成を指示する。この場合、S74へ進み、定数提示
部7において予め設定されたパラメータaの値をパラメ
ータデータ20として量子化幅計算部9へ送出し、S5
9の処理を終了する。一方、反復処理が2回目以降の場
合は、パラメータ選択部6は傾き計算部8に対し、パラ
メータデータの作成を指示する。そして、S75へ進
み、最近の2回の推定用データを選択する。S76で
は、傾き計算部8において選択された推定用データから
傾きaを推定し、パラメータデータ21として量子化幅
計算部9へ送出し、S59を終了する。
FIG. 12 is a flow chart showing an example of the operation of the inclination setting process. The inclination setting process performed in S59 is performed as follows, for example. In S71, it is determined whether the instruction from the control unit 5 is an encoding process or a statistical process. In the case of the encoding process, the estimation data that meets the conditions is selected in S72, and the process proceeds to S76. In the case of statistical processing, in S73, in the parameter selection unit 6, S53.
It is determined whether the number of iterations from S60 to S60 is the first time, and 1
In the case of the first time, the constant presenting unit 7 is instructed to create the parameter data. In this case, the process proceeds to S74, the value of the parameter a preset in the constant presenting unit 7 is sent to the quantization width calculating unit 9 as the parameter data 20, and S5
The process of 9 is completed. On the other hand, when the iterative process is the second time or later, the parameter selection unit 6 instructs the inclination calculation unit 8 to create parameter data. Then, the process proceeds to S75, and the latest two estimation data are selected. In S76, the slope a is estimated from the estimation data selected by the slope calculating unit 8 and sent as parameter data 21 to the quantization width calculating unit 9, and S59 ends.

【0054】以下、本発明の画像符号化装置の一実施例
における量子化係数の推定処理について、さらに説明す
る。既に説明したように、量子化係数SFの対数と符号
量CLの対数のグラフは、例えば、図5に示すように、
上述の(1)式で示されるような直線ではなく、凹凸が
見られる。そのようなグラフの形状によって、推定の際
に使用するパラメータの初期値、および、推定用パラメ
ータの取り方を切り替えることにより、実際に得られる
符号量を目標符号量以内とすることができる。グラフの
形状と、そのときの推定用パラメータの初期値および取
り方をまとめると、以下のようになる。
The quantization coefficient estimation process in one embodiment of the image coding apparatus of the present invention will be further described below. As described above, the graph of the logarithm of the quantization coefficient SF and the logarithm of the code amount CL is, for example, as shown in FIG.
Concavities and convexities are seen instead of the straight line as shown in the above formula (1). By switching the initial values of the parameters used at the time of estimation and the method of taking the estimation parameters according to the shape of such a graph, the code amount actually obtained can be kept within the target code amount. The following is a summary of the shape of the graph, the initial values of the parameters for estimation at that time, and the method of taking them.

【0055】まず、グラフが上に凸の場合には、 (1)推定処理を2回に限定する場合、1回目の推定処
理に使用するパラメータaの初期値の絶対値を、想定さ
れる傾きより大きめにとる。 (2)最終的な量子化係数SFを求めるのに使用する2
つの推定用データは、求める量子化係数SFを挟まない
組合せのうち、最も目標符号量に近い結果を与えたもの
を選択する。
First, when the graph is convex upward, (1) When the estimation process is limited to two times, the absolute value of the initial value of the parameter a used in the first estimation process is assumed to be the assumed slope. Take it larger. (2) Used to find the final quantized coefficient SF 2
The two pieces of estimation data are selected from the combinations which do not sandwich the quantized coefficient SF to be obtained and which give the result closest to the target code amount.

【0056】また、グラフが下に凸の場合には、 (1)推定処理を2回に限定する場合、1回目の推定処
理に使用するパラメータaの初期値の絶対値を、想定さ
れる傾きより小さめにとる。 (2)最終的な量子化係数SFを求めるのに使用する2
つの推定用データは、求める量子化係数SFを挟む組合
せのうち最も目標符号量に近い結果を与えたものを選択
する。
When the graph is convex downward, (1) When the estimation process is limited to two times, the absolute value of the initial value of the parameter a used in the first estimation process is assumed to be the assumed slope. Take smaller. (2) Used to find the final quantized coefficient SF 2
The two pieces of estimation data are selected from the combinations which sandwich the quantized coefficient SF to be obtained and which give the result closest to the target code amount.

【0057】ここでいう想定される傾きは、予め統計を
とって求める。具体的には、例えば、上述した図7に示
した実験結果に基づいて設定すればよい。図7に示した
実験結果に従う場合には、例えば、グラフが上に凸の場
合のL成分に対するパラメータaの初期値の絶対値は、
0.8以上に設定すればよい。ただし、このとき値の絶
対値を大きく取りすぎると、1回目の推定処理結果の推
定誤差が大きくなるので、例えば、絶対値が10.0以
下くらいの範囲から適当に定めた方がよい。
The assumed slope here is obtained by taking statistics beforehand. Specifically, for example, it may be set based on the experimental result shown in FIG. 7 described above. When the experimental result shown in FIG. 7 is followed, for example, the absolute value of the initial value of the parameter a for the L component when the graph is convex is:
It may be set to 0.8 or more. However, if the absolute value of the value is too large at this time, the estimation error of the result of the first estimation process becomes large. Therefore, for example, it is better to appropriately set the absolute value within the range of about 10.0 or less.

【0058】図13は、パラメータの設定の具体例の説
明図である。図7に示した実験結果から、例えば、図1
3に示すようなパラメータを設定することができる。こ
こで、図13の量子化係数SFの欄には、例えば、JP
EG等で一般に呼ばれる量子化係数SFではなく、実際
に量子化マトリクスに乗ずる係数を示している。
FIG. 13 is an explanatory diagram of a specific example of parameter setting. From the experimental results shown in FIG. 7, for example, FIG.
The parameters shown in 3 can be set. Here, in the column of the quantization coefficient SF of FIG. 13, for example, JP
Not the quantized coefficient SF generally called by EG or the like, but the coefficient actually multiplied by the quantized matrix is shown.

【0059】図13に示した値は、グラフが上に凸であ
るものと仮定して決定している。図13(A)に示した
値は、符号化の反復回数が2回しか許されないような場
合のパラメータの一例を示している。ここで、傾きパラ
メータaについては、図7に示した実験結果から読み取
れる値の絶対値の最大値を設定した。また、図13
(B)に示した値は、符号化の反復回数が3回以上許さ
れるような場合のパラメータの一例を示している。この
場合には、図7に示した実験結果からほぼ平均値と思わ
れる値を設定した。パラメータSFについては、図13
(A)と(B)のどちらの場合も圧縮率5を与える量子
化係数SFの平均値を設定した。
The values shown in FIG. 13 are determined on the assumption that the graph is convex upward. The values shown in FIG. 13A show an example of the parameters when the number of coding iterations is allowed only twice. Here, for the tilt parameter a, the maximum absolute value of the values that can be read from the experimental results shown in FIG. 7 was set. In addition, FIG.
The value shown in (B) shows an example of a parameter when the number of repetitions of encoding is permitted three times or more. In this case, a value considered to be an average value was set from the experimental results shown in FIG. 7. For the parameter SF, see FIG.
In both cases (A) and (B), the average value of the quantization coefficient SF that gives a compression rate of 5 was set.

【0060】図13に示すようなパラメータの初期値を
あらかじめ設定しておき、推定処理の初回においては、
定数提示部7がこれらの値を量子化幅計算部9にパラメ
ータデータ20として与える。図13(A)と(B)の
パラメータ値は、どちらか一方のみを設定しておいても
よいし、指示される反復回数によって切り替えてもよ
い。
Initial values of parameters as shown in FIG. 13 are set in advance, and at the first time of the estimation process,
The constant presentation unit 7 gives these values to the quantization width calculation unit 9 as parameter data 20. Only one of the parameter values shown in FIGS. 13A and 13B may be set, or the parameter values may be switched depending on the instructed number of repetitions.

【0061】また、図13ではグラフが上に凸の場合の
パラメータを示したが、グラフが下に凸の場合には、図
13(A)に示す反復回数が2回の場合の傾きパラメー
タaとして、例えば、図7に示した実験結果から読みと
れる値の絶対値の最小値を設定するようにすればよい。
これらのパラメータは、グラフの形状に応じて設定して
おくこともできるし、また、グラフが上に凸の場合のパ
ラメータとグラフが下に凸の場合のパラメータの両方を
設定しておき、得ようとする量子化係数の付近のグラフ
の形状に合わせて選択するように構成してもよい。
Further, FIG. 13 shows the parameters when the graph is convex upward, but when the graph is convex downward, the slope parameter a when the number of iterations shown in FIG. As an example, the minimum absolute value of the values that can be read from the experimental results shown in FIG. 7 may be set.
These parameters can be set according to the shape of the graph, or both the parameters when the graph is convex upward and the parameters when the graph is convex downward can be set. It may be configured to select according to the shape of the graph near the quantized coefficient to be obtained.

【0062】ところで、符号化の反復回数は、2回以
上、任意の回数に設定することができる。回数を多くす
ることによって、符号量は目標符号量に近くなり、画質
が向上する。また、回数を少なくすることによって、処
理速度を向上させることができる。また、反復処理を打
ち切るか否かを符号量の誤差で判断するように構成する
こともできる。この場合には、反復回数が何回になるか
見当が付かない。例えば、2回程度で済む場合もあれ
ば、3回以上となる場合もある。そのため、反復回数が
2回のときと同様のパラメータの初期値の設定を行なっ
て推定処理を開始するように構成すれば、反復回数が何
回であっても対応することができる。
By the way, the number of repetitions of encoding can be set to 2 or more, and to any number of times. By increasing the number of times, the code amount becomes closer to the target code amount and the image quality is improved. Moreover, the processing speed can be improved by reducing the number of times. Further, it may be configured to judge whether or not to terminate the iterative process based on the error in the code amount. In this case, there is no idea what the number of iterations will be. For example, there are cases where it only needs to be performed twice, and cases where the number of times is three or more. Therefore, if the estimation process is started by setting the initial values of the parameters similar to the case where the number of iterations is 2, the number of iterations can be dealt with.

【0063】グラフがどちらに凸かは、目標符号量に応
じて判断することができる。上述の図5に示したよう
に、グラフの全体の傾向は、符号量が多い場合には上に
凸、符号量が少ない場合には下に凸の形状となる。この
性質を用い、例えば、高画質でしか使用しないような場
合、グラフは上に凸になると始めに仮定して考えること
ができる。もちろん、3点以上の推定用データが存在す
る場合には、それらの点からグラフの形状を判定するこ
とができ、そのように構成してもよい。
Which side the graph is convex can be determined according to the target code amount. As shown in FIG. 5 described above, the overall tendency of the graph is a convex shape when the code amount is large and a convex shape when the code amount is small. Using this property, for example, when the graph is used only with high image quality, it can be initially assumed that the graph is convex. Of course, if there are three or more points of estimation data, the shape of the graph can be determined from those points, and such a configuration may be adopted.

【0064】例えば、本発明をJPEGのBaseli
ne方式の画像符号化装置に適用し、目標圧縮率を5と
して、高画質の符号化を行なう場合には、いくつかの画
像に対する実験の結果、圧縮率が5の周辺ではどの画像
についても量子化係数SFの対数と符号量CLの対数の
グラフは上に凸になることがわかった。このような場合
には、グラフの形状を上に凸であるものとして、パラメ
ータ値の設定や、推定用データの選択を行なうように構
成してもよい。
For example, the present invention is based on JPEG Baseli.
When the present invention is applied to a ne-type image encoding apparatus and high-quality encoding is performed with a target compression rate of 5, as a result of experiments on some images, it was found that the quantization rate of any image around the compression rate is 5. It was found that the graph of the logarithm of the conversion factor SF and the logarithm of the code amount CL was convex upward. In such a case, the shape of the graph may be convex upward, and the parameter value may be set or the estimation data may be selected.

【0065】次に、上述の推定用パラメータの初期値お
よび取り方に基づく量子化係数SFの推定処理の過程に
ついて説明する。図14は、グラフが上に凸の場合にお
いて、2回の推定処理で最終的な量子化係数SFを決定
する場合の過程の説明図である。まず、量子化係数の初
期値SF0 と、傾きパラメータaを設定する。量子化係
数の初期値SF0 は、あらかじめ求めた平均的な値を用
いればよい。例えばあらかじめ種々の画像について、目
標圧縮率を与えるSFの統計をとっておき、その中から
平均値などの代表的な値を用いることが考えられる。ま
た、傾きパラメータaは、上述のように、想定される傾
きよりも急峻な傾きとなるように値を設定する。そし
て、量子化係数の初期値SF0 をもとに量子化幅を設定
し、量子化処理および可変長符号化処理を行なって、符
号量CL0 を得る。このようにして得られた符号量CL
0 と、量子化係数の初期値SF0 および傾きパラメータ
aの値から、(1)式の係数bを決定する。これによ
り、図14の直線L1が決定される。この直線L1は、
想定される傾きよりも急峻な傾きとなるように設定され
た直線である。この直線を示す式を用い、目標符号量と
なる量子化係数SF1 を求める。この量子化係数SF1
が1回目の推定によって求められた量子化係数である。
このとき、1回目の推定処理では直線L1の傾きを急峻
にとっているので、量子化係数SF1 は、目標とする量
子化係数SFと量子化係数の初期値SF0の間の値とな
る。
Next, the process of estimating the quantized coefficient SF based on the initial value of the estimation parameter and how to take it will be described. FIG. 14 is an explanatory diagram of a process when the final quantized coefficient SF is determined by two estimation processes when the graph is convex upward. First, the initial value SF 0 of the quantization coefficient and the slope parameter a are set. As the initial value SF 0 of the quantization coefficient, an average value obtained in advance may be used. For example, it is conceivable to collect SF statistics for various images in advance and use a representative value such as an average value from the statistics. Further, the inclination parameter a is set to a value that is steeper than the assumed inclination as described above. Then, the quantization width is set based on the initial value SF 0 of the quantization coefficient, the quantization process and the variable length coding process are performed, and the code amount CL 0 is obtained. Code amount CL obtained in this way
From 0 , the initial value SF 0 of the quantized coefficient and the value of the slope parameter a, the coefficient b of the equation (1) is determined. As a result, the straight line L1 in FIG. 14 is determined. This straight line L1 is
It is a straight line set so as to have a steeper slope than the assumed slope. The quantized coefficient SF 1, which is the target code amount, is obtained using the equation showing this straight line. This quantization coefficient SF 1
Is the quantized coefficient obtained by the first estimation.
At this time, since the straight line L1 has a steep slope in the first estimation process, the quantization coefficient SF 1 is a value between the target quantization coefficient SF and the initial value SF 0 of the quantization coefficient.

【0066】2回目の推定処理では、まず、量子化係数
SF1 を用いて量子化幅を設定し、量子化処理および可
変長符号化処理を行なって、符号量CL1 を得る。そし
て、量子化係数SF0 と対応する符号量CL0 、およ
び、量子化係数SF1 と対応する符号量CL1 を用いて
直線を示す式を求める。図14では、2回目の推定処理
で求められた直線を直線L2で示している。この直線を
用いて量子化係数SF2を推定する。すなわち、この直
線において目標符号量となるときの量子化係数SF2
求める。
In the second estimation process, first, the quantization width is set using the quantization coefficient SF 1 , and the quantization process and the variable length coding process are performed to obtain the code amount CL 1 . Then, code amount CL 0 corresponding to the quantized coefficient SF 0, and obtains the equation indicating the straight line with the code amount CL 1 and the corresponding quantization coefficient SF 1. In FIG. 14, the straight line obtained by the second estimation process is indicated by the straight line L2. The quantization coefficient SF 2 is estimated using this straight line. That is, the quantization coefficient SF 2 when the target code amount is obtained on this straight line is obtained.

【0067】直線L2は、量子化係数SF0 およびSF
1 がともに得ようとする量子化係数SFの同じ側に存在
するので、得ようとする量子化係数SF近傍では常にグ
ラフよりも上に存在する。そのため、2回目の推定処理
で得られた量子化係数SF2を用いて、量子化処理およ
び可変長符号化処理を行なって得られる符号量は、必ず
目標符号量と同等あるいは少なくなる。
The straight line L2 is the quantized coefficients SF 0 and SF.
Since 1 exists on the same side of the quantized coefficient SF to be obtained together, it always exists above the graph in the vicinity of the quantized coefficient SF to be obtained. Therefore, the code amount obtained by performing the quantization process and the variable length coding process using the quantization coefficient SF 2 obtained in the second estimation process is always equal to or smaller than the target code amount.

【0068】このようにして求められた量子化係数SF
2 を用いて量子化幅を決定し、量子化処理および可変長
符号化処理を行なうことによって、得られる符号の符号
量は目標符号量に近く、しかも誤差で目標符号量を超え
ることはない。
The quantized coefficient SF thus obtained
By determining the quantization width using 2 , and performing the quantization processing and the variable length coding processing, the code amount of the obtained code is close to the target code amount, and the error does not exceed the target code amount.

【0069】図14では、量子化係数の初期値SF0
して、得ようとする量子化係数SFよりも大きな値を設
定した場合について図示したが、量子化係数の初期値S
を得ようとする量子化係数SFよりも小さな値に設
定した場合でも同様である。
FIG. 14 illustrates the case where a value larger than the quantized coefficient SF to be obtained is set as the quantized coefficient initial value SF 0.
The same applies when a value smaller than the quantization coefficient SF for which F 0 is to be obtained is set.

【0070】図15は、グラフが上に凸の場合におい
て、複数回の推定処理で最終的な量子化係数SFを決定
する場合の過程の説明図である。図14では、2回の推
定処理の過程を示したが、これを繰り返し行なうことに
よって、複数個の推定用データを得ることができる。3
回以上の推定処理を行なえば、グラフの凹凸も判定する
ことができる。反復回数は、あらかじめ設定しておいた
り、あるいは、誤差が所定以内となるまで繰り返しても
よく、これらを組み合わせてもよい。
FIG. 15 is an explanatory diagram of a process in the case where the final quantization coefficient SF is determined by a plurality of estimation processes when the graph is convex upward. Although FIG. 14 shows the process of the estimation process twice, a plurality of estimation data can be obtained by repeating this process. Three
If the estimation process is performed more than once, the unevenness of the graph can be determined. The number of repetitions may be set in advance, or may be repeated until the error is within a predetermined value, or these may be combined.

【0071】グラフが上に凸の場合には、得ようとする
量子化係数SFを挟まない推定用データの組合せのう
ち、最も目標符号量に近い結果を与えたものを選択す
る。図15では、得ようとする量子化係数SFよりも大
きな量子化係数SFおよびSFn を有する2つの推
定用データを選択している。選択した2つの推定用デー
タから、直線の式を求める。ここでは、図15中の直線
L3が求められる。そして、この直線が目標符号量とな
る時の量子化係数SFp を求めればよい。この量子化係
数SFp において、直線L3はグラフよりも上に存在す
る。そのため、量子化係数SFp に基づいて得られる符
号量CLp は、目標符号量を越えることはない。
When the graph is convex upward, the combination of estimation data that does not sandwich the quantized coefficient SF to be obtained and gives the result closest to the target code amount is selected. In FIG. 15, two pieces of estimation data having quantization coefficients SF m and SF n larger than the quantization coefficient SF to be obtained are selected. A straight line expression is obtained from the two selected estimation data. Here, the straight line L3 in FIG. 15 is obtained. Then, the quantization coefficient SF p when this straight line has the target code amount may be obtained. At this quantized coefficient SF p , the straight line L3 exists above the graph. Therefore, the code amount CL p obtained based on the quantized coefficient SF p does not exceed the target code amount.

【0072】このようにして求められた量子化係数SF
p を用いて量子化幅を決定し、量子化処理および可変長
符号化処理を行なうことによって、得られる符号の符号
量は目標符号量に近く、しかも、誤差で目標符号量を超
えることはない。
The quantized coefficient SF thus obtained
By determining the quantization width using p , and performing quantization processing and variable-length coding processing, the code amount of the obtained code is close to the target code amount, and the error does not exceed the target code amount. .

【0073】なお、図15では、得ようとする量子化係
数SFよりも大きな量子化係数を有する2つの推定用デ
ータを用いたが、量子化係数SFよりも小さな量子化係
数を有する2つの推定用データを用いた場合でも同様で
ある。
In FIG. 15, although two pieces of estimation data having a quantization coefficient larger than the quantization coefficient SF to be obtained are used, two estimation data having a quantization coefficient smaller than the quantization coefficient SF are used. The same applies when the use data is used.

【0074】図16は、グラフが下に凸の場合におい
て、2回の推定処理で最終的な量子化係数SFを決定す
る場合の過程の説明図である。グラフが上に凸の場合と
同様に、まず、量子化係数の初期値SF0 と、傾きパラ
メータaを設定する。このとき、傾きパラメータaは、
想定される傾きよりも緩やかな傾きとなるように値を設
定する。そして、量子化係数の初期値SF0 をもとに量
子化幅を設定し、量子化処理および可変長符号化処理を
行なって、符号量CL0 を得る。このようにして得られ
た符号量CL0 と、量子化係数の初期値SF0 および傾
きパラメータaの値から、図16中の直線L4を決定す
る。この直線L4を用い、目標符号量となる量子化係数
SF1 を求める。この量子化係数SF1 が1回目の推定
処理によって求められた量子化係数である。このとき、
直線L4の傾きを緩やかにとっているので、量子化係数
SF1 は、量子化係数の初期値SF0 とともに目標とす
る量子化係数SFを挟む値となる。図16では、量子化
係数の初期値SF0 が量子化係数SFよりも小さな値で
あるので、量子化係数SF1 は、量子化係数SFよりも
大きな値となる。
FIG. 16 is an explanatory diagram of a process in the case where the final quantization coefficient SF is determined by two estimation processes when the graph is convex downward. Similar to the case where the graph is convex upward, first, the initial value SF 0 of the quantization coefficient and the slope parameter a are set. At this time, the tilt parameter a is
Set the value so that the slope is gentler than the expected slope. Then, the quantization width is set based on the initial value SF 0 of the quantization coefficient, the quantization process and the variable length coding process are performed, and the code amount CL 0 is obtained. A straight line L4 in FIG. 16 is determined from the code amount CL 0 thus obtained, the initial value SF 0 of the quantization coefficient and the value of the slope parameter a. Using this straight line L4, the quantized coefficient SF 1 that is the target code amount is obtained. This quantized coefficient SF 1 is the quantized coefficient obtained by the first estimation process. At this time,
Since the straight line L4 has a gentle slope, the quantized coefficient SF 1 has a value sandwiching the target quantized coefficient SF together with the initial value SF 0 of the quantized coefficient. In FIG. 16, since the initial value SF 0 of the quantized coefficient is smaller than the quantized coefficient SF, the quantized coefficient SF 1 is larger than the quantized coefficient SF.

【0075】2回目の推定処理では、まず、量子化係数
SF1 を用いて量子化幅を設定し、量子化処理および可
変長符号化処理を行なって、符号量CL1 を得る。そし
て、量子化係数SF0 と対応する符号量CL0 、およ
び、量子化係数SF1 と対応する符号量CL1 を用いて
直線を示す式を求める。図16では、2回目の推定処理
で求められた直線を直線L5で示している。この直線を
用いて目標符号量となる量子化係数SF2 を求める。
In the second estimation process, first, the quantization width is set using the quantization coefficient SF 1 , and the quantization process and the variable length coding process are performed to obtain the code amount CL 1 . Then, code amount CL 0 corresponding to the quantized coefficient SF 0, and obtains the equation indicating the straight line with the code amount CL 1 and the corresponding quantization coefficient SF 1. In FIG. 16, the straight line L5 represents the straight line obtained in the second estimation process. Using this straight line, the quantization coefficient SF 2 that is the target code amount is obtained.

【0076】直線L5は、量子化係数SF0 およびSF
1 が得ようとする量子化係数SFを挟む位置に存在する
ので、グラフが下に凸の場合、量子化係数SF0 とSF
1 の間では常にグラフよりも上に存在する。そのため、
2回目の推定処理で得られた量子化係数SF2 を用い
て、量子化処理および可変長符号化処理を行なって得ら
れる実際の符号量は、必ず目標符号量と同等あるいは少
なくなる。
The straight line L5 is the quantized coefficients SF 0 and SF.
Since 1 exists at the position sandwiching the quantized coefficient SF to be obtained, when the graph is convex downward, the quantized coefficients SF 0 and SF
Between 1 is always above the graph. for that reason,
The actual code amount obtained by performing the quantization process and the variable length coding process using the quantization coefficient SF 2 obtained in the second estimation process is always equal to or smaller than the target code amount.

【0077】このようにして求められた量子化係数SF
2 を用いて量子化幅を決定し、量子化処理および可変長
符号化処理を行なうことによって、得られる符号の符号
量は目標符号量に近く、しかも誤差で目標符号量を超え
ることはない。
The quantized coefficient SF thus obtained
By determining the quantization width using 2 , and performing the quantization processing and the variable length coding processing, the code amount of the obtained code is close to the target code amount, and the error does not exceed the target code amount.

【0078】図16では、量子化係数の初期値SF0
して、得ようとする量子化係数SFよりも小さな値を設
定した場合について図示したが、量子化係数の初期値S
0を得ようとする量子化係数SFよりも大きな値に設
定した場合でも同様である。
FIG. 16 illustrates the case where a value smaller than the quantized coefficient SF to be obtained is set as the quantized coefficient initial value SF 0.
The same applies when a value larger than the quantization coefficient SF for which F 0 is to be obtained is set.

【0079】図17は、グラフが下に凸の場合におい
て、複数回の推定処理で最終的な量子化係数SFを決定
する場合の過程の説明図である。図16では、2回の推
定処理の過程を示したが、これを繰り返し行なうことに
よって、複数個の推定用データを得ることができる。グ
ラフが下に凸の場合には、得ようとする量子化係数SF
を挟む推定用データの組合せのうち、最も目標符号量に
近い組合せを選択する。図17では、得ようとする量子
化係数SFよりも大きな量子化係数SFm および得よう
とする量子化係数SFよりも小さな量子化係数SFn
有する2つの推定用データを選択している。選択した2
つの推定用データから、直線の式を求める。ここでは、
図17中の直線L6が求められる。そして、この直線が
目標符号量となる時の量子化係数SFp を求めればよ
い。下に凸のグラフの場合には、この量子化係数SFp
において、直線L6はグラフよりも上に存在する。その
ため、量子化係数SFp に基づいて実際に得られる符号
量CLp は、目標符号量を越えることはない。
FIG. 17 is an explanatory diagram of a process in the case where the final quantization coefficient SF is determined by a plurality of estimation processes when the graph is convex downward. Although FIG. 16 shows the process of the estimation process twice, a plurality of estimation data can be obtained by repeating this process. When the graph is convex downward, the quantization coefficient SF to be obtained
Among the combinations of estimation data sandwiching between, the combination closest to the target code amount is selected. In FIG. 17, two pieces of estimation data having a quantized coefficient SF m larger than the quantized coefficient SF to be obtained and a quantized coefficient SF n smaller than the quantized coefficient SF to be obtained are selected. Selected 2
A straight line formula is obtained from the three estimation data. here,
The straight line L6 in FIG. 17 is obtained. Then, the quantization coefficient SF p when this straight line has the target code amount may be obtained. In the case of a downward convex graph, this quantization coefficient SF p
In, the straight line L6 exists above the graph. Therefore, the code amount CL p actually obtained based on the quantized coefficient SF p does not exceed the target code amount.

【0080】このようにして求められた量子化係数SF
p を用いて量子化幅を決定し、量子化処理および可変長
符号化処理を行なうことによって、得られた符号の符号
量は目標符号量に近く、しかも、誤差で目標符号量を超
えることはない。
Quantization coefficient SF obtained in this way
By determining the quantization width using p , and performing the quantization process and the variable length coding process, the code amount of the obtained code is close to the target code amount, and the error does not exceed the target code amount. Absent.

【0081】[0081]

【発明の効果】以上の説明から明らかなように、本発明
によれば、非可逆符号化の符号量制御において、符号量
を目標符号量に近づけ、しかも符号量が目標符号量を越
えないように制御することが可能となる。これにより、
符号化された画像の符号量を、目標符号量以内でなるべ
く多くなるようにすることができ、画質の劣化を最小限
に押さえることができる。
As is apparent from the above description, according to the present invention, in the code amount control of lossy encoding, the code amount is made close to the target code amount and the code amount does not exceed the target code amount. Can be controlled to. This allows
The code amount of the encoded image can be increased as much as possible within the target code amount, and deterioration of the image quality can be suppressed to the minimum.

【0082】また、量子化係数SFの対数と符号量CL
の対数のグラフの形状が上に凸の部分でも、下に凸の部
分でも、どちらでも対応することができる。また、量子
化係数SFの初期値の変更により所望の推定処理回数内
でより正確な量子化幅を求めることが可能となる。さら
に、傾きパラメータaをグラフの形状に合わせて切り替
えて用いることによって、2回の推定処理だけでも、目
標符号量を超えない範囲で符号量を目標符号量に近づけ
ることができ、処理の効率化および画質の向上を図るこ
とができるなどの効果がある。
Also, the logarithm of the quantization coefficient SF and the code amount CL
The shape of the logarithmic graph of can be either upwardly convex or downwardly convex. Further, by changing the initial value of the quantization coefficient SF, it becomes possible to obtain a more accurate quantization width within a desired number of estimation processes. Furthermore, by switching the slope parameter a according to the shape of the graph and using it, the code amount can be brought close to the target code amount within a range that does not exceed the target code amount by only two estimation processes, and the processing efficiency is improved. Further, there is an effect that the image quality can be improved.

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

【図1】 本発明の画像符号化装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of an image encoding device of the present invention.

【図2】 従来の可変長符号化方式を用いた画像符号化
装置の一例を示すブロック図である。
FIG. 2 is a block diagram showing an example of an image coding apparatus using a conventional variable length coding method.

【図3】 従来の可変長符号化方式を用いた画像符号化
装置おける全体動作の一例を示すフローチャートであ
る。
FIG. 3 is a flowchart showing an example of the overall operation of an image coding apparatus using a conventional variable length coding method.

【図4】 従来の可変長符号化方式を用いた画像符号化
装置おける符号化処理の動作の一例を示すフローチャー
トである。
FIG. 4 is a flowchart showing an example of an operation of an encoding process in an image encoding device using a conventional variable length encoding system.

【図5】 実験から求めた量子化係数SFと符号量CL
の関係の一例を示すグラフである。
FIG. 5 Quantization coefficient SF and code amount CL obtained from experiments
It is a graph which shows an example of the relationship of.

【図6】 量子化係数SFの対数と符号量CLの対数の
グラフを微視的に見た場合の説明図である。
FIG. 6 is an explanatory diagram when a graph of the logarithm of the quantization coefficient SF and the logarithm of the code amount CL is viewed microscopically.

【図7】 画像の相違による傾きaの値のばらつきを示
すグラフである。
FIG. 7 is a graph showing variations in the value of the inclination a due to differences in images.

【図8】 ニュートン・ラプソン法の原理の説明図であ
る。
FIG. 8 is an explanatory diagram of the principle of the Newton-Raphson method.

【図9】 グラフが上に凸のカーブを描いている場合の
推定誤差の説明図である。
FIG. 9 is an explanatory diagram of an estimation error in the case where the graph has a curve that is convex upward.

【図10】 グラフが下に凸のカーブを描いている場合
の推定誤差の説明図である。
FIG. 10 is an explanatory diagram of an estimation error when the graph has a downwardly convex curve.

【図11】 本発明の画像符号化装置の一実施例におけ
る動作の一例を説明するフローチャートである。
FIG. 11 is a flowchart illustrating an example of an operation in an embodiment of the image encoding device of the present invention.

【図12】 傾き設定処理の動作の一例を示すフローチ
ャートである。
FIG. 12 is a flowchart showing an example of an operation of tilt setting processing.

【図13】 パラメータの設定の具体例の説明図であ
る。
FIG. 13 is an explanatory diagram of a specific example of parameter setting.

【図14】 グラフが上に凸の場合において、2回の推
定処理で最終的な量子化係数SFを決定する場合の過程
の説明図である。
FIG. 14 is an explanatory diagram of a process in the case where the final quantization coefficient SF is determined by two estimation processes when the graph is convex upward.

【図15】 グラフが上に凸の場合において、複数回の
推定処理で最終的な量子化係数SFを決定する場合の過
程の説明図である。
FIG. 15 is an explanatory diagram of a process in a case where a final quantization coefficient SF is determined by a plurality of estimation processes when the graph is convex upward.

【図16】 グラフが下に凸の場合において、2回の推
定処理で最終的な量子化係数SFを決定する場合の過程
の説明図である。
FIG. 16 is an explanatory diagram of a process in a case where a final quantization coefficient SF is determined by two estimation processes when the graph is convex downward.

【図17】 グラフが下に凸の場合において、複数回の
推定処理で最終的な量子化係数SFを決定する場合の過
程の説明図である。
FIG. 17 is an explanatory diagram of a process of determining a final quantization coefficient SF by a plurality of estimation processes when the graph is convex downward.

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

1…画像変換部、2…量子化部、3…可変長符号化部、
4…符号量算出部、5…制御部、6…パラメータ選択
部、7…定数提示部、8…傾き計算部、9…量子化幅計
算部、10…量子化幅推定部、11…画像データ、12
…変換データ、13…量子化データ、14…符号デー
タ、15…部分符号量データ、16…総符号量データ、
17,18,19…制御データ、20,21…パラメー
タデータ、22…量子化幅データ。
1 ... Image conversion unit, 2 ... Quantization unit, 3 ... Variable length coding unit,
4 ... Code amount calculation unit, 5 ... Control unit, 6 ... Parameter selection unit, 7 ... Constant presentation unit, 8 ... Slope calculation unit, 9 ... Quantization width calculation unit, 10 ... Quantization width estimation unit, 11 ... Image data , 12
... Transformed data, 13 ... Quantized data, 14 ... Code data, 15 ... Partial code amount data, 16 ... Total code amount data,
17, 18, 19 ... Control data, 20, 21 ... Parameter data, 22 ... Quantization width data.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 國武 節 神奈川県海老名市本郷2274番地 富士ゼロ ックス株式会社内 (72)発明者 越 裕 神奈川県海老名市本郷2274番地 富士ゼロ ックス株式会社内 (72)発明者 上澤 功 神奈川県海老名市本郷2274番地 富士ゼロ ックス株式会社内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Setsu Kunitake 2274 Hongo, Ebina City, Kanagawa Prefecture, Fuji Xerox Co., Ltd. ) Inventor Isao Uesawa 2274 Hongo, Ebina City, Kanagawa Prefecture Fuji Xerox Co., Ltd.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像の変換を行ない変換データを出力す
る画像変換手段と、該変換データに対して与えられた量
子化幅に従って量子化を行ない量子化データを出力する
量子化手段と、該量子化データに対して可変長符号化を
施す可変長符号化手段と、該可変長符号化手段で作成さ
れる符号量を積算して単位画像の符号量を求める符号量
算出手段と、該符号量算出手段において作成される単位
画像の符号量と予め設定された目標符号量を比較してそ
の結果に応じた制御を行なう制御手段と、該制御手段か
らの制御に従いそれまでの符号化結果から得られた量子
化係数の対数と対応する符号量の対数のグラフの形状お
よび目標符号量に基づいて前記量子化係数を計算しさら
に該量子化係数に基づいて量子化幅を計算して前記量子
化手段に与える量子化幅推定手段を有することを特徴と
する画像符号化装置。
1. An image conversion means for converting an image and outputting converted data, a quantizing means for quantizing in accordance with a quantization width given to the converted data, and outputting quantized data, and the quantizing means. Variable length encoding means for performing variable length encoding on the encoded data, code amount calculating means for accumulating the code amounts created by the variable length encoding means to obtain the code amount of the unit image, and the code amount The control means for comparing the code amount of the unit image created by the calculating means with the preset target code amount and performing control according to the result, and the control result from the control means The quantization coefficient is calculated based on the shape of the graph of the logarithm of the quantized coefficient and the logarithm of the corresponding code amount and the target code amount, and the quantization width is calculated based on the quantized coefficient and the quantization is performed. Quantum given to means An image coding apparatus having a coding width estimating means.
【請求項2】 前記量子化幅推定手段は、量子化係数の
対数と対応する符号量の対数のグラフの形状が上に凸の
場合には、目標符号量より多くかつ目標符号量に最も近
い符号量を与える2つの符号化結果、または、目標符号
量よりも少なくかつ目標符号量に最も近い符号量を与え
る2つの符号化結果を選択して、前記量子化係数および
前記量子化幅を計算することを特徴とする請求項1に記
載の画像符号化装置。
2. When the shape of the graph of the logarithm of the code amount corresponding to the logarithm of the quantization coefficient is convex upward, the quantization width estimation means is larger than the target code amount and closest to the target code amount. Calculate the quantization coefficient and the quantization width by selecting two coding results that give a code amount or two coding results that give a code amount that is less than the target code amount and is closest to the target code amount. The image coding apparatus according to claim 1, wherein
【請求項3】 前記量子化幅推定手段は、量子化係数の
対数と対応する符号量の対数のグラフの形状が下に凸の
場合には、目標符号量より多くかつ目標符号量に最も近
い符号量を与える1つの符号化結果と、目標符号量より
少なくかつ目標符号量に最も近い符号量を与える1つの
符号化結果を選択して、前記量子化係数および前記量子
化幅を計算することを特徴とする請求項1に記載の画像
符号化装置。
3. The quantization width estimation means is larger than the target code amount and closest to the target code amount when the shape of the graph of the logarithm of the code amount corresponding to the logarithm of the quantization coefficient is downwardly convex. Calculating the quantization coefficient and the quantization width by selecting one encoding result that gives a code amount and one encoding result that gives a code amount that is less than the target code amount and closest to the target code amount. The image coding apparatus according to claim 1, wherein:
【請求項4】 前記量子化幅推定手段は、前記制御手段
からの制御に従い適応的にパラメータの作成方法を選択
するパラメータ選択手段と、該パラメータ選択手段から
の制御に応じ予め定められた定数を傾きパラメータおよ
び量子化係数の初期値として提供する定数提示手段と、
前記パラメータ選択手段からの制御に応じ量子化係数の
対数と対応する符号量の対数のグラフの形状に基づき傾
きパラメータを計算する傾き計算手段と、前記定数提示
手段または前記傾き計算手段から与えられた傾きパラメ
ータと前記目標符号量を基に前記量子化係数および前記
量子化幅を計算する量子化幅計算手段を有することを特
徴とする請求項1に記載の画像符号化装置。
4. The quantization width estimation means sets a parameter selection means for adaptively selecting a parameter creation method according to the control from the control means, and a constant predetermined according to the control from the parameter selection means. Constant presenting means that provides as initial values of the slope parameter and the quantization coefficient,
Slope calculation means for calculating the slope parameter based on the shape of the graph of the logarithm of the quantized coefficient and the logarithm of the corresponding code amount according to the control from the parameter selection means, and the constant presenting means or the slope calculation means. The image coding apparatus according to claim 1, further comprising a quantization width calculation unit that calculates the quantization coefficient and the quantization width based on a gradient parameter and the target code amount.
【請求項5】 前記定数提示手段は、前記量子化幅計算
手段に与える前記傾きパラメータの初期値の絶対値を、
量子化係数の対数と対応する符号量の対数のグラフが上
に凸の場合には想定される値よりも大きめに、また前記
グラフが下に凸の場合には想定される値よりも小さめに
設定することを特徴とする請求項4に記載の画像符号化
装置。
5. The constant presenting means indicates an absolute value of an initial value of the slope parameter given to the quantization width calculating means,
If the graph of the logarithm of the quantization coefficient and the logarithm of the corresponding code amount is convex upward, it is larger than the expected value, and if the graph is convex downward, it is smaller than the expected value. The image encoding device according to claim 4, wherein the image encoding device is set.
【請求項6】 前記定数提示手段が前記量子化幅計算手
段に与える前記量子化係数の初期値を、予め求めた平均
的な値とすることを特徴とする請求項4または5に記載
の画像符号化装置。
6. The image according to claim 4, wherein the constant presenting means sets the initial value of the quantization coefficient given to the quantization width calculating means to an average value obtained in advance. Encoding device.
【請求項7】 前記定数提示手段は、前記量子化幅計算
手段に与えるパラメータを複数用意し、目標符号量に応
じて選択的に使用することを特徴とする請求項4、5ま
たは6に記載の画像符号化装置。
7. The constant presenting means prepares a plurality of parameters to be given to the quantizing width calculating means, and selectively uses the parameters according to a target code amount. Image encoding device.
【請求項8】 前記制御手段は、単位画像の符号量と前
記目標符号量との差がある許容値に入るまで該単位画像
に関して推定処理および符号化処理を反復し、しかる後
に符号を出力するよう制御することを特徴とする請求項
1ないし7のいずれか1項に記載の画像符号化装置。
8. The control means repeats the estimation process and the encoding process on the unit image until the difference between the code amount of the unit image and the target code amount reaches a certain allowable value, and then outputs the code. The image coding apparatus according to claim 1, wherein the image coding apparatus is controlled as follows.
【請求項9】 前記画像変換手段は、前記変換データを
記憶する変換データ記憶手段を備え、必要に応じて前記
変換データを繰り返し読み出せることを特徴とする請求
項1ないし8のいずれか1項に記載の画像符号化装置。
9. The image conversion means comprises conversion data storage means for storing the conversion data, and the conversion data can be repeatedly read out as necessary, and the image conversion means can read out the conversion data repeatedly. The image encoding device according to 1.
【請求項10】 前記可変長符号化手段は、作成した符
号を記憶する符号記憶手段を備え、最新の符号または前
記目標符号量に最も近い符号量を持つ符号もしくは前記
目標符号量以下で最も近い符号量を持つ符号を記憶する
記憶手段を備え、必要に応じて読み出せることを特徴と
する請求項1ないし9のいずれか1項に記載の画像符号
化装置。
10. The variable-length coding means includes code storage means for storing the created code, and has a code that is the latest code or a code quantity that is closest to the target code quantity, or is the code that is closest to or less than the target code quantity. The image coding apparatus according to any one of claims 1 to 9, further comprising a storage unit that stores a code having a code amount and can read the code when necessary.
JP7998795A 1995-04-05 1995-04-05 Image coding device Expired - Fee Related JP3543412B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7998795A JP3543412B2 (en) 1995-04-05 1995-04-05 Image coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7998795A JP3543412B2 (en) 1995-04-05 1995-04-05 Image coding device

Publications (2)

Publication Number Publication Date
JPH08280015A true JPH08280015A (en) 1996-10-22
JP3543412B2 JP3543412B2 (en) 2004-07-14

Family

ID=13705670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7998795A Expired - Fee Related JP3543412B2 (en) 1995-04-05 1995-04-05 Image coding device

Country Status (1)

Country Link
JP (1) JP3543412B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998054904A1 (en) * 1997-05-28 1998-12-03 Sony Corporation Coding method and coding equipment using the same
CN107290748A (en) * 2017-07-26 2017-10-24 国家卫星海洋应用中心 A kind of SAR magnitude images homogeneous phase is to error quantization method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998054904A1 (en) * 1997-05-28 1998-12-03 Sony Corporation Coding method and coding equipment using the same
US6023297A (en) * 1997-05-28 2000-02-08 Sony Corporation Encoding method and encoder using it
CN107290748A (en) * 2017-07-26 2017-10-24 国家卫星海洋应用中心 A kind of SAR magnitude images homogeneous phase is to error quantization method
CN107290748B (en) * 2017-07-26 2019-09-13 国家卫星海洋应用中心 A kind of SAR magnitude image homogeneous phase is to error quantization method

Also Published As

Publication number Publication date
JP3543412B2 (en) 2004-07-14

Similar Documents

Publication Publication Date Title
US5677689A (en) Fixed rate JPEG compliant still image compression
US7720310B2 (en) Scaling down of data
JPH10327403A (en) Method for optimizing compression of image data accompanying automatic selection of compression condition
US7463775B1 (en) Estimating compressed storage size of digital data
JPH08102943A (en) Image coder
US7420483B2 (en) Data processing apparatus, data processing method, computer readable medium storing program, and computer data signal
US20030007563A1 (en) Video signal coding method
US5937100A (en) Two-pass image processing method and apparatus using virtual estimation for compressed file size
JPH07107300A (en) Picture encoding device
JP2516082B2 (en) Data compression device
JP2968666B2 (en) Image coding method and apparatus
JPH09247675A (en) Image compression method and image compression system
JP4183432B2 (en) Image data encoding method
JPH08280015A (en) Image encoder
US7805014B2 (en) Image-encoding controlling apparatus for using a table reflecting statistical frequency of quantization parameter selection and method thereof
JP2002369198A (en) Encoding selection equipment, encoding equipment and its method
CN1321523C (en) Two-step image compression with compression parameter adjustment
JP2897563B2 (en) Image compression coding device
EP1632902B1 (en) Method for image compression, related system and computer product therefor
JP4730144B2 (en) Decoding device, inverse quantization method, and program thereof
JP4432469B2 (en) Encoding apparatus, encoding method and program thereof
JP2735001B2 (en) Image coding device
JP5042978B2 (en) Data encoding apparatus and data encoding method
JP2001148856A (en) Code quantity controller, code quantity control method, and code quantity control program recording medium
JPH05276391A (en) Method for compressing picture and device therefor

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040217

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040316

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040329

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080416

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100416

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees