JP2003244696A - Encoding processor, decoding processor, method therefor and computer program - Google Patents

Encoding processor, decoding processor, method therefor and computer program

Info

Publication number
JP2003244696A
JP2003244696A JP2002040949A JP2002040949A JP2003244696A JP 2003244696 A JP2003244696 A JP 2003244696A JP 2002040949 A JP2002040949 A JP 2002040949A JP 2002040949 A JP2002040949 A JP 2002040949A JP 2003244696 A JP2003244696 A JP 2003244696A
Authority
JP
Japan
Prior art keywords
block
processing
dynamic range
quantization
decoding
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
JP2002040949A
Other languages
Japanese (ja)
Other versions
JP4039076B2 (en
Inventor
Tetsujiro Kondo
哲二郎 近藤
Masanori Machimura
昌紀 町村
Masaru Ikeda
優 池田
Tsutomu Ichikawa
勉 市川
Masaaki Hattori
正明 服部
Hiroto Kimura
裕人 木村
Gakuho Fukushi
岳歩 福士
Sakon Yamamoto
左近 山元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2002040949A priority Critical patent/JP4039076B2/en
Publication of JP2003244696A publication Critical patent/JP2003244696A/en
Application granted granted Critical
Publication of JP4039076B2 publication Critical patent/JP4039076B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device and method for enhancing compression ratio and image quality in encoding and decoding by an ADRC. <P>SOLUTION: In block splitting of an encoding object image by the ADRC, a resplit block is selected on the basis of the dynamic range of each block, a block size, and a difference in a dynamic range at re-splitting, and the selected re-split block is subjected to re-splitting. With this configuration, an optimum resplit block can be efficiently selected, and re-splitting can reduce the dynamic range of each block and the width of a quantization step to realize reduction of quantization errors and image quality enhancement. A block with a small dynamic range is selected, and thinning of pixels in the block is conducted to reduce the data amount of encoded data. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、符号化処理装置、
復号処理装置、および方法、並びにコンピュータ・プロ
グラムに関する。さらに詳細には、ブロック分割した画
像信号の圧縮処理としてのADRCを適用した符号化、
復号化処理における改善された符号化処理装置、復号処
理装置、および方法、並びにコンピュータ・プログラム
に関する。
The present invention relates to a coding processing device,
The present invention relates to a decoding processing device and method, and a computer program. More specifically, encoding using ADRC as a compression process of a block-divided image signal,
The present invention relates to an improved encoding processing device, decoding processing device and method, and computer program in a decoding process.

【0002】[0002]

【従来の技術】画像信号は、例えば記録媒体への記録処
理、データ転送処理等の際に情報量の削減を目的とした
符号化処理が行なわれることが多い。デジタル画像信号
の高能率符号化処理の1つとして、ADRC(Adaptive
Dynamic Range Coding)が知られている。
2. Description of the Related Art An image signal is often subjected to an encoding process for the purpose of reducing the amount of information in recording process on a recording medium, data transfer process and the like. As one of the high-efficiency encoding processes for digital image signals, ADRC (Adaptive
Dynamic Range Coding) is known.

【0003】ADRCは、例えば特開昭61−1449
89号に開示されているように、画像領域をブロック分
割し、分割したブロック内に含まれる複数の画素の持つ
画素値としての最大値(MAX)および最小値(MI
N)の差分によって規定されるダイナミックレンジ(D
R)を算出し、算出したダイナミックレンジ(DR)に
適応した符号化処理を行なうものであり、ダイナミック
レンジ適応型の圧縮手法である。
ADRC is disclosed in, for example, JP-A-61-1449.
As disclosed in No. 89, the image area is divided into blocks, and the maximum value (MAX) and the minimum value (MI) as the pixel values of a plurality of pixels included in the divided blocks.
N) dynamic range (D)
R) is calculated and an encoding process adapted to the calculated dynamic range (DR) is performed, which is a dynamic range adaptive compression method.

【0004】ADRCによる画像符号化処理について、
図を参照して説明する。図18は、画像データのADR
Cによる符号化処理におけるブロック分割およびダイナ
ミックレンジの算出処理を説明する図である。例えば動
画像データの1フレームの画像信号を、複数画素領域の
ブロックに分割し、各ブロックに含まれる画素の信号レ
ベルの最大値と最小値とを検出する。
Regarding image encoding processing by ADRC,
It will be described with reference to the drawings. FIG. 18 shows ADR of image data.
It is a figure explaining the block division in the encoding process by C, and the calculation process of a dynamic range. For example, an image signal of one frame of moving image data is divided into blocks of a plurality of pixel areas, and the maximum value and the minimum value of the signal level of pixels included in each block are detected.

【0005】なお、画素の信号レベルとは、例えば画像
信号が白黒であれば輝度信号レベルが適用され、例えば
0〜255の256階調の輝度レベルデータが適用され
る。また、カラー画像信号でYUV信号、すなわち輝度
に関する輝度信号Y、色に関する2つの色信号U,Vが
用いられる場合は、Y,U,Vそれぞれについて最大値
と最小値とを検出し、それぞれの信号毎の量子化、すな
わち符号化処理を行う。また、RGB等の色信号を適用
する場合は、RGBそれぞれについて最大値と最小値と
を検出し、それぞれの信号毎の量子化処理を行うことに
なる。
The pixel signal level is, for example, a brightness signal level when the image signal is black and white, and for example, brightness level data of 256 gradations of 0 to 255 is applied. When a YUV signal is used in the color image signal, that is, a luminance signal Y relating to luminance and two color signals U and V relating to colors are used, the maximum value and the minimum value are detected for each of Y, U and V, and the respective values are detected. Quantization of each signal, that is, encoding processing is performed. When applying color signals such as RGB, the maximum value and the minimum value are detected for each of RGB, and the quantization processing is performed for each signal.

【0006】小領域に区分けされたブロック内の画素の
信号レベルは、画像の持つ相関性により近い値を持つこ
とが多い。従って、各ブロック内の信号レベルの最大値
と最小値との差を各ブロックにおけるダイナミックレン
ジとして定義することで、信号レベル方向の冗長度、す
なわちブロック内最大信号レベル値より大きいレベル
と、ブロック内最小信号レベル値より小さいレベルを取
り除くことができ、各ブロック内の限定されたダイナミ
ックレンジ内で効率のよい量子化が可能となる。
The signal level of pixels in a block divided into small areas often has a value closer to the correlation of an image. Therefore, by defining the difference between the maximum value and the minimum value of the signal level in each block as the dynamic range in each block, redundancy in the signal level direction, that is, a level larger than the maximum signal level value in the block and Levels smaller than the minimum signal level value can be removed, enabling efficient quantization within the limited dynamic range within each block.

【0007】例えば図18に示すように画像データ80
1を複数ブロックに分割する。次に、各ブロックに含ま
れる画素の持つ信号レベルを検出し、ブロック内の信号
レベルデータを取得する。例えばブロック802に含ま
れる画素の持つ信号レベルは、信号レベルデータ803
として取得される。次に、ブロック内に含まれる画素の
信号レベルの最大値(MAX)、最小値(MIN)を選
択し、その差分をダイナミックレンジ(DR)とする。
For example, as shown in FIG. 18, image data 80
1 is divided into a plurality of blocks. Next, the signal level of the pixel included in each block is detected, and the signal level data in the block is acquired. For example, the signal level of the pixel included in the block 802 is the signal level data 803.
Is obtained as. Next, the maximum value (MAX) and the minimum value (MIN) of the signal levels of the pixels included in the block are selected, and the difference between them is used as the dynamic range (DR).

【0008】このダイナミックレンジ(DR)に基づい
て、ブロック内の画素の値を量子化する。量子化処理に
ついて図19を参照して説明する。量子化ビット数をn
とした場合、ブロック内の各画素値から最小値(MI
N)が減算され、その減算値をDR/2nで除算し、除
算値に対応するコードを量子化コード(Qコード)とし
て設定する。
The value of the pixel in the block is quantized based on the dynamic range (DR). The quantization process will be described with reference to FIG. The number of quantization bits is n
, The minimum value (MI
N) is subtracted, the subtracted value is divided by DR / 2 n , and the code corresponding to the divided value is set as the quantization code (Q code).

【0009】図19の例では、ブロックAとブロックB
の2つのブロックについて、n=1、すなわち1ビット
量子化した場合の例を示している。各ブロックには8画
素含まれ、各画素の信号レベルが図に示すように分布し
ていたとする。ブロックAのダイナミックレンジ(D
R)は、ブロックAに含まれる画素の最大値と最小値に
よって決定し、ブロックBのダイナミックレンジ(D
R)は、ブロックBに含まれる画素の最大値と最小値に
よって決定する。
In the example of FIG. 19, block A and block B
2 shows an example in the case of n = 1, that is, 1-bit quantization. It is assumed that each block includes 8 pixels and the signal level of each pixel is distributed as shown in the figure. Dynamic range of block A (D
R) is determined by the maximum value and the minimum value of the pixels included in the block A, and the dynamic range (D
R) is determined by the maximum value and the minimum value of the pixels included in the block B.

【0010】1ビット量子化する場合は、ダイナミック
レンジを2分割し、例えば上部を[1]、下部を[0]
として各画素の信号レベルに応じて量子化する。この結
果、ブロックAの量子化コードは、[1111100
1]として構成され、ブロックBの量子化コード(Qコ
ード)は、[00001111]により構成される。例
えば2ビット量子化の場合は、各画素について、[0
0]、[01]、[10]、[11]の4値が設定可能
となり、ダイナミックレンジが22=4分割されて、各
画素にいずれかの量子化コード(Qコード)が割り当て
られることになる。3ビット量子化の場合は、23=8
分割されることになる。
In the case of 1-bit quantization, the dynamic range is divided into two, for example, the upper part is [1] and the lower part is [0].
Is quantized according to the signal level of each pixel. As a result, the quantization code of block A is [1111100
1] and the quantization code (Q code) of the block B is configured by [00001111]. For example, in the case of 2-bit quantization, [0
4 values of 0], [01], [10], and [11] can be set, the dynamic range is divided into 2 2 = 4, and one of the quantization codes (Q code) is assigned to each pixel. become. In the case of 3-bit quantization, 2 3 = 8
It will be divided.

【0011】図20は、ADRC符号化処理を行なった
場合の各ブロックのブロック情報の構成を示す図であ
る。ブロック情報には、各ブロックに含まれる画素の信
号レベルの最小値(MIN)、ダイナミックレンジ(D
R)、及び、上述した処理で算出した量子化コード(Q
コード)が含まれる。例えば信号レベルが0〜255で
ある場合、最小値(MIN)を8ビット、ダイナミック
レンジ(DR)を8ビット、量子化コード(Qコード)
をk×nビットとして構成することができる。ただし、
nは量子化ビット数、kはブロック内の画素数である。
FIG. 20 is a diagram showing a configuration of block information of each block when ADRC encoding processing is performed. The block information includes the minimum signal level (MIN) of pixels included in each block and the dynamic range (D
R) and the quantization code (Q
Code) is included. For example, when the signal level is 0 to 255, the minimum value (MIN) is 8 bits, the dynamic range (DR) is 8 bits, and the quantization code (Q code).
Can be configured as k × n bits. However,
n is the number of quantization bits, and k is the number of pixels in the block.

【0012】ADRCによる符号化(エンコード)処理
および復号(デコード)処理の手順を図21に示す。
FIG. 21 shows the procedure of the encoding process and the decoding process by ADRC.

【0013】ADRC符号化処理では、ステップS80
1において画像データをブロック分割し、ステップS8
02において、ブロック内の最大値(MAX)、最小値
(MIN)を検出する。次にステップS803で、各分
割ブロック内のダイナミックレンジ(DR)を求め、ス
テップS804で、各ブロックの画素値−最小値(MI
N)を算出し、ステップS805において、予め定めら
れた量子化ビット数=nに基づいて、各画素値の量子化
を実行し、ステップS806で、最小値(MIN)、ダ
イナミックレンジ(DR)、量子化コード(Qコード)
からなるブロック情報(図20参照)を生成する。
In the ADRC encoding process, step S80
1, the image data is divided into blocks, and step S8
In 02, the maximum value (MAX) and the minimum value (MIN) in the block are detected. Next, in step S803, the dynamic range (DR) in each divided block is calculated, and in step S804, the pixel value-minimum value (MI) of each block.
N) is calculated, and in step S805, quantization of each pixel value is performed based on a predetermined number of quantization bits = n, and in step S806, a minimum value (MIN), a dynamic range (DR), Quantization code (Q code)
Block information (see FIG. 20) is generated.

【0014】具体的なADRC処理による量子化コード
(Qコード)の生成は、下式に従って実行される。
Generation of a quantized code (Q code) by a specific ADRC process is executed according to the following equation.

【0015】[0015]

【数1】 DR=MAX−MIN+1 Δ=DR/2n Q=(x−MIN+0.5)/Δ (DR≧2nの場合) Q=(x−MIN) (DR<2nの場合)## EQU1 ## DR = MAX-MIN + 1 Δ = DR / 2 n Q = (x-MIN + 0.5) / Δ (when DR ≧ 2 n ) Q = (x-MIN) (when DR <2 n )

【0016】上記式において、DR:ダイナミックレン
ジ、MAX:最大値、MIN:最小値、Q:量子化コー
ド(Qコード)、x:画素値、Δ:量子化ステップ幅、
n:量子化ビット数である。DR<2nの場合の量子化
コード:Qの算出においては、Δ:量子化ステップ幅に
よる除算を行なうことなく、各ブロックの画素値−最小
値(x−MIN)そのものを量子化コードとして適用す
る。(x−MIN)の値そのものがnビット以下のコー
ドとして表現可能となるからである。また、DR=MA
X−MIN+1における[+1]は、MAX=MINの
場合において、DR=1と設定するための処理である。
In the above equation, DR: dynamic range, MAX: maximum value, MIN: minimum value, Q: quantization code (Q code), x: pixel value, Δ: quantization step width,
n: the number of quantization bits. In the calculation of the quantization code: Q when DR <2 n , Δ: pixel value of each block-minimum value (x-MIN) itself is applied as the quantization code without division by the quantization step width. To do. This is because the value itself of (x-MIN) can be expressed as a code of n bits or less. Also, DR = MA
[+1] in X-MIN + 1 is a process for setting DR = 1 when MAX = MIN.

【0017】一方、ADRCによる符号化(エンコー
ド)によって生成されたブロック情報に基づく復号(デ
コード)処理の手順について図21を参照して説明す
る。復号処理では、ステップS811において、最小値
(MIN)、ダイナミックレンジ(DR)、量子化コー
ド(Qコード)からなるブロック情報を取得する。
On the other hand, the procedure of the decoding process based on the block information generated by the ADRC encoding will be described with reference to FIG. In the decoding process, in step S811, block information including a minimum value (MIN), a dynamic range (DR), and a quantization code (Q code) is acquired.

【0018】ステップS812において、ブロック情報
に基づく復号(デコード)処理を実行する。デコード処
理の具体的処理は復元画素値をx’とすると、以下の、
x’算出式として示される。
In step S812, a decoding process based on the block information is executed. The specific process of the decoding process is as follows, where the restored pixel value is x ′.
It is shown as an x ′ calculation formula.

【0019】[0019]

【数2】 x’=(Q+0.5)×Δ+MIN(DR≧2nの場合) x’=(Q+MIN) (DR<2nの場合)X ′ = (Q + 0.5) × Δ + MIN (when DR ≧ 2 n ) x ′ = (Q + MIN) (when DR <2 n )

【0020】上記式において、x’:復元画素値、MI
N:最小値、Q:量子化コード(Qコード)、Δ:量子
化ステップ幅、n:量子化ビット数である。
In the above equation, x ': restored pixel value, MI
N: minimum value, Q: quantization code (Q code), Δ: quantization step width, n: number of quantization bits.

【0021】ステップS813において、上記式におい
て算出された画素値x’に基づいて各画素値を決定して
画像再生を実行する。
In step S813, each pixel value is determined based on the pixel value x'calculated in the above equation, and image reproduction is executed.

【0022】なお、前述したように、画素値は、例えば
画像信号が白黒であれば、輝度信号レベル値が適用さ
れ、カラーの画像信号では、例えばYUVなどの、輝度
に関する輝度信号Y、並びに色に関する2つの色信号
U,Vが画素値として用いられ、Y,U,Vそれぞれの
値についての符号化処理、復号処理が実行されることに
なる。
As described above, as the pixel value, for example, when the image signal is black and white, the luminance signal level value is applied, and for the color image signal, the luminance signal Y relating to the luminance such as YUV and the color signal. The two color signals U and V relating to Y, U, and V are used as pixel values, and the encoding process and the decoding process for each of the Y, U, and V values are executed.

【0023】上述したADRCによる量子化(符号化)
処理、復号処理は、各ブロック内の画素値に適用する符
号化ビット数を同一とした例である。例えば量子化ビッ
ト数:n=1として設定した場合であれば、すべてのブ
ロックにおいて1ビットの量子化処理を行ない、量子化
ビット数:n=2として設定した場合であれば、すべて
のブロックにおいて2ビットの量子化処理を行なう構成
例である。
Quantization (coding) by the above-mentioned ADRC
The processing and decoding processing is an example in which the number of coding bits applied to the pixel values in each block is the same. For example, if the number of quantization bits: n = 1 is set, 1-bit quantization processing is performed in all blocks, and if the number of quantization bits: n = 2 is set, all blocks are set. It is a configuration example for performing 2-bit quantization processing.

【0024】しかし、量子化ビット数をすべてのブロッ
クにおいて共通化すると、ダイナミックレンジ(DR)
の大きいブロックにおいても、また、小さいブロックに
おいても、同一のビット数の量子化が行われることにな
り、ダイナミックレンジの大きいブロックにおける量子
化ステップ幅が大きくなり、復号処理の際に元の画素値
と復元画素値との差が大きくなる場合がある。
However, if the number of quantization bits is made common in all blocks, the dynamic range (DR)
The same number of bits will be quantized in both the large block and the small block, and the quantization step width in the block with a large dynamic range will be large. And the restored pixel value may be large.

【0025】そこで、ダイナミックレンジ(DR)の大
きいブロックにおける量子化ビット数と、ダイナミック
レンジ(DR)の小さいブロックにおける量子化ビット
数を異ならせて、符号化処理を行なう可変長ADRCが
考案された。
Therefore, a variable length ADRC has been devised which performs coding processing by making the number of quantization bits in a block having a large dynamic range (DR) different from the number of quantization bits in a block having a small dynamic range (DR). .

【0026】可変長ADRCの基本的考え方は、ダイナ
ミックレンジ(DR)の大きいブロックにおける量子化
ビット数を大きくし、ダイナミックレンジ(DR)の小
さいブロックにおける量子化ビット数を小さくするもの
であり、例えば特開昭62−128621号にその基本
構成が示されている。
The basic idea of variable length ADRC is to increase the number of quantization bits in a block having a large dynamic range (DR) and decrease the number of quantization bits in a block having a small dynamic range (DR). The basic configuration is shown in Japanese Patent Laid-Open No. 62-128621.

【0027】具体的には、例えばダイナミックレンジ
(DR)の大きいブロックにおける量子化ビット数を3
ビットとして、ダイナミックレンジ(DR)の小さいブ
ロックにおける量子化ビット数を1ビットとするなどの
処理が行なわれる。このような処理を行なうことで、ダ
イナミックレンジ(DR)の小さいブロックにおいて
は、DR/21として、ダイナミックレンジを2つに区
分した量子化ステップ幅:Δを設定した量子化がなさ
れ、ダイナミックレンジ(DR)の大きいブロックで
は、DR/23として8つに区分した量子化ステップ
幅:Δ設定による量子化が実行可能となり、ダイナミッ
クレンジ(DR)の大きいブロックにおいても、より細
かい量子化ステップ幅:Δの設定が可能となるので元の
画素値と復号処理後の画素値との誤差を小さくすること
が可能となる。
Specifically, for example, the number of quantization bits in a block having a large dynamic range (DR) is 3
As a bit, processing such as setting the quantization bit number to 1 in a block having a small dynamic range (DR) is performed. By performing such processing, in a block with a small dynamic range (DR), quantization is performed with DR / 2 1 set to a quantization step width: Δ that divides the dynamic range into two. In a block with a large (DR), it is possible to perform quantization by setting a quantization step width: Δ that is divided into eight as DR / 2 3 , and in a block with a large dynamic range (DR), a finer quantization step width. Since: Δ can be set, it is possible to reduce the error between the original pixel value and the pixel value after the decoding process.

【0028】可変長ADRCによる符号化(エンコー
ド)処理および復号(デコード)処理の手順を図22に
示す。
FIG. 22 shows the procedure of the encoding process and the decoding process by the variable length ADRC.

【0029】可変長ADRC符号化処理では、ステップ
S821において画像データをブロック分割し、ステッ
プS822において、ブロック内の最大値(MAX)、
最小値(MIN)を検出する。次にステップS823
で、各分割ブロック内のダイナミックレンジ(DR)を
求め、ステップS824で、求めたダイナミックレンジ
(DR)に基づいて、量子化ビット数を決定する。
In the variable length ADRC encoding process, the image data is divided into blocks in step S821, and the maximum value (MAX) in the block is divided in step S822.
Detect the minimum value (MIN). Then step S823.
Then, the dynamic range (DR) in each divided block is calculated, and in step S824, the number of quantization bits is determined based on the calculated dynamic range (DR).

【0030】量子化ビット数は、例えば、予め定められ
た下記の量子化ビット数設定条件式に基づいて決定され
る。 0≦DR<th1 →0ビット th1≦DR<th2 →1ビット th2≦DR<th3 →2ビット : thn≦DR≦thn+1 →nビット
The number of quantization bits is determined, for example, on the basis of the following conditional expression for setting the number of quantization bits. 0 ≦ DR <th 1 → 0 bit th 1 ≦ DR <th 2 → 1 bit th 2 ≦ DR <th 3 → 2 bit: th n ≦ DR ≦ th n + 1 → n bit

【0031】上記条件式において、DRは、各ブロック
のダイナミックレンジであり、th 1〜thnは、予め定
められた閾値である。すなわち、ダイナミックレンジ
(DR)の大きいブロックほど多くのビット数が量子化
ビット数として割り当てられ、ダイナミックレンジ(D
R)の大きいブロックにおける量子化ステップ幅:Δが
過大になることを防止している。
In the above conditional expression, DR is each block
Is the dynamic range of th 1~ ThnIs predetermined
This is the set threshold. Ie dynamic range
The larger the (DR), the more bits are quantized
The dynamic range (D
Quantization step width in a block with large R): Δ
It prevents it from becoming too large.

【0032】各ブロックのダイナミックレンジ(DR)
に基づく量子化ビット数が決定されると、次に、ステッ
プS825で、各ブロックの画素値−最小値(MIN)
を算出し、ステップS826において、ステップS82
4で決定した量子化ビット数=0〜nに基づいて、各画
素値の量子化を実行し、ステップS827で、最小値
(MIN)、ダイナミックレンジ(DR)、量子化コー
ド(Qコード)からなるブロック情報(図20参照)を
生成する。
Dynamic range (DR) of each block
When the number of quantized bits based on is determined, next, in step S825, the pixel value of each block minus the minimum value (MIN).
Is calculated, and in step S826, step S82
Quantization of each pixel value is performed based on the number of quantization bits = 0 to n determined in step 4, and in step S827, from the minimum value (MIN), the dynamic range (DR), and the quantization code (Q code). Block information (see FIG. 20) is generated.

【0033】一方、可変長ADRCによる符号化(エン
コード)によって生成されたブロック情報に基づく復号
(デコード)処理の手順について図22を参照して説明
する。復号処理では、ステップS831において、最小
値(MIN)、ダイナミックレンジ(DR)、量子化コ
ード(Qコード)からなるブロック情報を取得する。
On the other hand, the procedure of the decoding process based on the block information generated by the variable length ADRC encoding will be described with reference to FIG. In the decoding process, in step S831, block information including a minimum value (MIN), a dynamic range (DR), and a quantization code (Q code) is acquired.

【0034】ステップS832では、ブロック情報から
取得した各ブロックのダイナミックレンジ(DR)に基
づいて量子化ビット数を算出する。復号側においても、
上述の量子化ビット数設定条件式を保有、あるいは、符
号化処理装置から取得し、量子化ビット数設定条件式に
基づいて量子化ビット数を算出する。
In step S832, the number of quantization bits is calculated based on the dynamic range (DR) of each block acquired from the block information. Even on the decryption side,
The above-described quantization bit number setting conditional expression is held or acquired from the encoding processing device, and the quantization bit number is calculated based on the quantization bit number setting conditional expression.

【0035】次に、ステップS833において、ブロッ
ク情報に基づく復号(デコード)処理を実行し、ステッ
プS834において、デコードにより算出された画素値
x’に基づいて各画素値を決定して画像再生を実行す
る。
Next, in step S833, decoding processing based on the block information is executed, and in step S834, each pixel value is determined based on the pixel value x'calculated by decoding and image reproduction is executed. To do.

【0036】さらに、ブロックサイズをダイナミックレ
ンジに応じて変更する構成についても、例えば特公平8
−21864号に開示されている。本公報に記載の技術
は、所定サイズ領域として設定した第1ブロックにおけ
るダイナミックレンジを計測し、計測したダイナミック
レンジに応じて、第1ブロックと異なるサイズの第2ブ
ロックを定義して各ブロックにおいてADRCを適用し
た符号化を実行するものである。
Further, regarding a configuration in which the block size is changed according to the dynamic range, for example, Japanese Patent Publication No.
No. 21864. The technique disclosed in this publication measures a dynamic range in a first block set as a predetermined size area, defines a second block having a size different from that of the first block in accordance with the measured dynamic range, and defines ADRC in each block. Is applied to perform encoding.

【0037】図23を参照して本公報に記載の符号化処
理の手順を説明する。ステップS901において、符号
化対象画像を予め定めたサイズにブロック分割する。こ
れを第1ブロックとする。
The procedure of the encoding process described in this publication will be described with reference to FIG. In step S901, the image to be encoded is divided into blocks of a predetermined size. This is the first block.

【0038】次に、ステップS902において、処理ブ
ロックを順次選択し、ステップS903において、選択
ブロック内の画素値の最大値、最小値に基づいてダイナ
ミックレンジ(DR)を算出する。ステップS904
で、算出ダイナミックレンジと予め定めた閾値とを比較
し、ダイナミックレンジが閾値より大である場合には、
ステップS905に進み、第1のブロックを、さらに小
さな第2のブロックに分割する。
Next, in step S902, processing blocks are sequentially selected, and in step S903, the dynamic range (DR) is calculated based on the maximum and minimum pixel values in the selected block. Step S904
Then, the calculated dynamic range is compared with a predetermined threshold value, and if the dynamic range is larger than the threshold value,
Proceeding to step S905, the first block is divided into smaller second blocks.

【0039】ステップS906では、ブロック内の画素
値に基づくADRC符号化を行なう。すなわち、最小
値、ダイナミックレンジ、Qコードからなるブロック情
報を生成する。ステップS907において、全ブロック
の処理が終了したか否かを判定し、終了していない場合
は、未処理ブロックについて、ステップS902以下を
繰り返し実行する。
In step S906, ADRC encoding is performed based on the pixel value in the block. That is, the block information including the minimum value, the dynamic range, and the Q code is generated. In step S907, it is determined whether or not all blocks have been processed. If not, steps S902 and subsequent steps are repeated for unprocessed blocks.

【0040】この処理手順に従うことにより、最初に設
定した第1のブロックサイズにおいて、ダイナミックレ
ンジの大きなブロックが再分割されて、第2のブロック
サイズでADRCによる符号化が実行されるため、量子
化ステップ幅が過大になることによる誤差の発生が抑制
されることになる。
By following this processing procedure, a block having a large dynamic range is redivided in the first block size initially set, and the ADRC encoding is executed in the second block size. The occurrence of an error due to an excessive step width is suppressed.

【0041】[0041]

【発明が解決しようとする課題】しかしながら、上述し
た特公平8−21864号に記載のブロックサイズの変
更を伴う処理において、まず、第1のブロックサイズを
どのように設定するかの処理基準を設定することが必要
であり、画像の大きさ、圧縮率等の様々な要素を考慮し
て第1のブロックサイズを設定することが必要となると
いう問題がある。また、第2のブロックサイズを適用す
べきダイナミックレンジの閾値設定処理も必要となる。
最適な閾値は、画像に応じて、また出力しようとする符
号化データの圧縮率に応じて異なり、最適な閾値の設定
は容易とはいえなかった。
However, in the process involving the change of the block size described in Japanese Patent Publication No. 8-21864 mentioned above, first, the process standard of how to set the first block size is set. However, there is a problem in that it is necessary to set the first block size in consideration of various factors such as image size and compression rate. In addition, a dynamic range threshold setting process to which the second block size should be applied is also required.
The optimum threshold differs depending on the image and the compression ratio of the encoded data to be output, and it has not been easy to set the optimum threshold.

【0042】本発明は、上述の問題点に鑑みてなされた
ものであり、ブロック分割によるADRC符号化および
復号処理において、様々なブロックサイズを適用した処
理を効率的に、実行可能とし、様々な画像データに応じ
て最適なブロック分割に基づく符号化、復号を実行可能
とした符号化処理を実現する符号化処理装置、復号処理
装置、および方法、並びにコンピュータ・プログラムを
提供するものである。
The present invention has been made in view of the above problems, and in ADRC encoding and decoding processing by block division, processing applying various block sizes can be efficiently executed and various processing can be performed. The present invention provides an encoding processing device, a decoding processing device, and a method, and a computer program that realizes an encoding process that enables encoding and decoding based on optimal block division according to image data.

【0043】[0043]

【課題を解決するための手段】本発明の第1の側面は、
画像データの符号化処理を実行する符号化処理装置であ
り、画像を構成する分割画素領域をブロックとして設定
するブロック分割手段と、前記ブロック分割手段におい
て設定されたブロック単位で、ブロックに対応して設定
されるダイナミックレンジに基づく量子化処理を実行す
る量子化処理手段と、を有し、前記ブロック分割手段
は、設定済みのブロックについて、ダイナミックレンジ
の大きなブロックから順に選択し、選択ブロックの再分
割によるブロック設定処理を行なう構成であることを特
徴とする符号化処理装置にある。
The first aspect of the present invention is as follows.
A coding processing device for executing coding processing of image data, comprising block dividing means for setting divided pixel areas forming an image as a block, and a block unit set in the block dividing means for each block. Quantization processing means for executing quantization processing based on a set dynamic range, wherein the block division means selects, in order from a block having a large dynamic range, blocks having already been set, and re-divides the selected block. In the encoding processing device, the block setting process is performed by

【0044】さらに、本発明の符号化処理装置の一実施
態様において、前記ブロック分割手段は、下記判定条件
(1)乃至(3)、(1)ダイナミックレンジが大、
(2)ブロックサイズが大、(3)再分割前のブロック
におけるダイナミックレンジと再分割後のブロックのダ
イナミックレンジ最大値との差分が大、の各判定条件に
ついて、判定条件(1)、(2)、(3)の優先順に判
定処理を実行して、再分割処理対象ブロックを選定する
処理を実行する構成であることを特徴とする。
Further, in an embodiment of the encoding processing device of the present invention, the block dividing means has the following determination conditions (1) to (3) and (1) a large dynamic range:
Regarding the determination conditions of (2) the block size is large, and (3) the difference between the dynamic range in the block before the subdivision and the maximum dynamic range of the block after the subdivision is large, the determination conditions (1), (2) ) And (3) are executed in the order of priority, and a process for selecting a re-division processing target block is executed.

【0045】さらに、本発明の符号化処理装置の一実施
態様において、前記ブロック分割手段は、符号化対象画
像を4分割し、該4分割ブロックを初期設定ブロックと
して、前記判定条件(1)、(2)、(3)の優先順に
判定処理を実行して、再分割処理対象ブロックを選定す
る処理を実行する構成であることを特徴とする。
Further, in an embodiment of the encoding processing device of the present invention, the block dividing means divides the image to be encoded into four parts, and the four divided blocks are used as initial setting blocks, and the judgment condition (1), The configuration is characterized in that the determination processing is executed in the priority order of (2) and (3), and the processing for selecting the re-division processing target block is executed.

【0046】さらに、本発明の符号化処理装置の一実施
態様において、前記符号化処理装置は、さらに間引き処
理手段を有し、前記間引き処理手段は、ブロック内の画
素をチェック状に間引く間引き処理を実行し、前記量子
化処理手段は、前記間引き処理手段の間引き処理後の残
留画素についての量子化処理を実行する構成であること
を特徴とする。
Further, in an embodiment of the encoding processing device of the present invention, the encoding processing device further has a thinning processing means, and the thinning processing means thins the pixels in the block in a check pattern. And the quantization processing means is configured to execute the quantization processing for the residual pixels after the thinning processing of the thinning processing means.

【0047】さらに、本発明の符号化処理装置の一実施
態様において、前記符号化処理装置は、さらに間引き処
理手段を有し、前記間引き処理手段は、ブロックのダイ
ナミックレンジが予め定めた閾値以下のブロックについ
て、ブロック内の画素をチェック状に間引く間引き処理
を実行する構成であることを特徴とする。
Further, in one embodiment of the encoding processing device of the present invention, the encoding processing device further has a thinning processing means, and the thinning processing means has a dynamic range of a block equal to or less than a predetermined threshold value. It is characterized in that a thinning process for thinning out pixels in the block is executed for each block.

【0048】さらに、本発明の符号化処理装置の一実施
態様において、前記ブロック分割手段は、予定圧縮率に
基づく、再分割対象ブロック選定処理を実行する構成を
有し、予定圧縮率から算出される符号化データとしての
許容データ量、および再分割処理により増加するデータ
量に基づいて、再分割処理ブロック許容数を算出し、該
算出数に基づいて、ダイナミックレンジの大きいブロッ
クを順に再分割対象ブロックとして選定する構成である
ことを特徴とする。
Further, in an embodiment of the encoding processing device of the present invention, the block dividing means has a configuration for executing a re-division target block selecting process based on a planned compression ratio, and is calculated from the planned compression ratio. Based on the allowable data amount as encoded data and the data amount increased by the re-division processing, the re-division processing block allowable number is calculated, and based on the calculated number, blocks with a large dynamic range are sequentially re-divided. It is characterized in that it is selected as a block.

【0049】さらに、本発明の符号化処理装置の一実施
態様において、前記量子化処理手段の適用する量子化処
理は、ADRC(Adaptive Dynamic Range Coding)に
基づく処理を実行し、前記ブロック分割手段の設定した
各ブロックの画素値の最小値(MIN)、およびダイナ
ミックレンジ(DR)に基づいて量子化コード(Qコー
ド)を算出する処理を実行する構成であることを特徴と
する。
Further, in an embodiment of the encoding processing device of the present invention, the quantization processing applied by the quantization processing means executes processing based on ADRC (Adaptive Dynamic Range Coding), and It is characterized in that it is configured to execute a process of calculating a quantization code (Q code) based on the set minimum pixel value (MIN) of each block and the dynamic range (DR).

【0050】さらに、本発明の符号化処理装置の一実施
態様において、前記符号化処理装置は、各ブロックの画
素値の最小値(MIN)、およびダイナミックレンジ
(DR)、量子化コード(Qコード)からなるブロック
情報と、前記ブロック分割手段の設定したブロック位置
を示すブロック分割情報とを有する符号化データを出力
する構成であることを特徴とする。
Further, in an embodiment of the encoding processing device of the present invention, the encoding processing device is configured such that the minimum value (MIN) of pixel values of each block, the dynamic range (DR), and the quantization code (Q code). ) And block division information indicating the block position set by the block dividing means, the encoded data is output.

【0051】さらに、本発明の符号化処理装置の一実施
態様において、前記符号化処理装置は、各ブロックの画
素値の最小値(MIN)、およびダイナミックレンジ
(DR)、量子化コード(Qコード)からなるブロック
情報と、各ブロック内の画素間引きの実行有無を示す付
加情報とを有する符号化データを出力する構成であるこ
とを特徴とする。
Further, in one embodiment of the encoding processing device of the present invention, the encoding processing device is configured such that the minimum value (MIN) of pixel values of each block, the dynamic range (DR), and the quantization code (Q code). It is characterized in that it is configured to output coded data having block information consisting of (4) and additional information indicating whether or not to execute pixel thinning in each block.

【0052】さらに、本発明の符号化処理装置の一実施
態様において、前記符号化処理装置は、各ブロックの画
素値の最小値(MIN)、およびダイナミックレンジ
(DR)、量子化コード(Qコード)からなるブロック
情報と、ブロックが再分割されたブロックであるか否か
を示す付加情報とを有する符号化データを出力する構成
であることを特徴とする。
Further, in one embodiment of the encoding processing device of the present invention, the encoding processing device is configured such that the minimum value (MIN) of pixel values of each block, the dynamic range (DR), and the quantization code (Q code). It is characterized in that it is configured to output encoded data having block information consisting of (1) and additional information indicating whether the block is a subdivided block.

【0053】さらに、本発明の第2の側面は、符号化画
像データの復号処理を実行する復号処理装置であり、各
ブロック単位の符号化データとしてのブロック情報に格
納された最小値(MIN)、およびダイナミックレンジ
(DR)、および各画素に対応する量子化コードに基づ
いて、各ブロック単位の画素値復号処理を実行する復号
処理手段と、前記符号化データ内に格納されたブロック
再分割情報に基づいて復元ブロックの位置を識別し、ブ
ロック再構成を実行するブロック再構成部と、を有する
ことを特徴とする復号処理装置にある。
Further, a second aspect of the present invention is a decoding processing device for executing a decoding process of coded image data, which is a minimum value (MIN) stored in block information as coded data of each block unit. , Dynamic range (DR), and decoding processing means for executing pixel value decoding processing for each block based on a quantization code corresponding to each pixel, and block re-division information stored in the encoded data. A block reconstruction unit that identifies the position of the restored block based on the above and executes block reconstruction.

【0054】さらに、本発明の復号処理装置の一実施態
様において、前記復号処理手段の適用する復号処理は、
ADRC(Adaptive Dynamic Range Coding)に対応す
る逆量子化処理であり、前記ブロックに対応する最小値
(MIN)、およびダイナミックレンジ(DR)に基づ
いて復元画素値を算出する処理を実行する構成であるこ
とを特徴とする。
Further, in one embodiment of the decoding processing device of the present invention, the decoding processing applied by the decoding processing means is:
It is a dequantization process corresponding to ADRC (Adaptive Dynamic Range Coding), and is configured to execute a process of calculating a restored pixel value based on a minimum value (MIN) corresponding to the block and a dynamic range (DR). It is characterized by

【0055】さらに、本発明の復号処理装置の一実施態
様において、前記復号処理装置は、さらに、前記ブロッ
ク情報に格納された量子化コードが、ブロック内の全画
素対応データではなく、間引きされたデータである場合
の間引きデータ復元処理を実行する間引きデータ復元手
段を有し、前記間引きデータ復元手段は、前記復号処理
手段が量子化コードに基づいて復号した複数の復元画素
値の平均値を、間引き画素データの画素値として設定す
る処理を実行する構成であることを特徴とする。
Further, in one embodiment of the decoding processing device of the present invention, in the decoding processing device, the quantization code stored in the block information is thinned out instead of data corresponding to all pixels in the block. It has a thinned-out data restoration means for executing thinned-out data restoration processing in the case of data, and the thinned-out data restoration means is an average value of a plurality of restored pixel values decoded by the decoding processing means based on a quantization code, It is characterized in that it is configured to execute a process of setting as a pixel value of thinned pixel data.

【0056】さらに、本発明の第3の側面は、画像デー
タの符号化処理を実行する符号化処理方法であり、画像
を構成する分割画素領域をブロックとして設定するブロ
ック分割ステップと、前記ブロック分割ステップにおい
て設定されたブロック単位で、ブロックに対応して設定
されるダイナミックレンジに基づく量子化処理を実行す
る量子化処理ステップと、を有し、前記ブロック分割ス
テップは、設定済みのブロックについて、ダイナミック
レンジの大きなブロックから順に選択し、選択ブロック
の再分割によるブロック設定処理を行なうことを特徴と
する符号化処理方法にある。
Further, a third aspect of the present invention is a coding processing method for executing coding processing of image data, which comprises a block dividing step of setting divided pixel areas forming an image as a block, and the block dividing. A block unit set in the step, a quantization process step of performing a quantization process based on a dynamic range set corresponding to the block, and the block division step, for the set block, dynamic An encoding processing method is characterized in that blocks are selected in order from a large range and block setting processing is performed by re-dividing the selected block.

【0057】さらに、本発明の第4の側面は、符号化画
像データの復号処理を実行する復号処理方法であり、各
ブロック単位の符号化データとしてのブロック情報に格
納された最小値(MIN)、およびダイナミックレンジ
(DR)、および各画素に対応する量子化コードに基づ
いて、各ブロック単位の画素値復号処理を実行する復号
処理ステップと、前記符号化データ内に格納されたブロ
ック再分割情報に基づいて復元ブロックの位置を識別
し、ブロック再構成を実行するブロック再構成ステップ
と、を有することを特徴とする復号処理方法にある。
Further, a fourth aspect of the present invention is a decoding processing method for executing decoding processing of coded image data, which is a minimum value (MIN) stored in block information as coded data in each block unit. , A dynamic range (DR), and a decoding process step of executing a pixel value decoding process for each block based on a quantization code corresponding to each pixel, and block re-division information stored in the encoded data. And a block reconstruction step of executing block reconstruction by identifying the position of the restored block based on the above.

【0058】さらに、本発明の第5の側面は、画像デー
タの符号化処理を実行する符号化処理の実行プログラム
としてのコンピュータ・プログラムであって、画像を構
成する分割画素領域をブロックとして設定するブロック
分割ステップと、前記ブロック分割ステップにおいて設
定されたブロック単位で、ブロックに対応して設定され
るダイナミックレンジに基づく量子化処理を実行する量
子化処理ステップと、を有し、前記ブロック分割ステッ
プは、さらに、設定済みのブロックについて、ダイナミ
ックレンジの大きなブロックから順に選択し、選択ブロ
ックの再分割によるブロック設定処理を行なうステップ
を、を有することを特徴とするコンピュータ・プログラ
ムにある。
Further, a fifth aspect of the present invention is a computer program as an execution program of an encoding process for executing an encoding process of image data, wherein divided pixel areas forming an image are set as blocks. A block division step, and a quantization processing step that executes a quantization process based on a dynamic range set corresponding to the block in block units set in the block division step. Furthermore, the computer program is characterized by further comprising the step of selecting blocks having a large dynamic range in order with respect to already set blocks and performing block setting processing by re-dividing the selected block.

【0059】さらに、本発明の第6の側面は、符号化画
像データの復号処理を実行する復号処理の実行プログラ
ムとしてのコンピュータ・プログラムであって、各ブロ
ック単位の符号化データとしてのブロック情報に格納さ
れた最小値(MIN)、およびダイナミックレンジ(D
R)、および各画素に対応する量子化コードに基づい
て、各ブロック単位の画素値復号処理を実行する復号処
理ステップと、前記符号化データ内に格納されたブロッ
ク再分割情報に基づいて復元ブロックの位置を識別し、
ブロック再構成を実行するブロック再構成ステップと、
を有することを特徴とするコンピュータ・プログラムに
ある。
Further, a sixth aspect of the present invention is a computer program as an execution program of a decoding process for executing a decoding process of coded image data, wherein block information as coded data of each block unit is obtained. Stored minimum value (MIN) and dynamic range (D
R), and a decoding processing step for executing pixel value decoding processing for each block based on the quantization code corresponding to each pixel, and a restoration block based on the block re-division information stored in the encoded data. Identify the location of
A block reconstruction step for performing block reconstruction,
And a computer program characterized by having.

【0060】さらに、本発明の第7の側面は、画像デー
タの符号化処理をコンピュータ・システム上で実行せし
めるコンピュータ・プログラムを提供するプログラム記
録媒体であって、前記コンピュータ・プログラムは、画
像を構成する分割画素領域をブロックとして設定するブ
ロック分割ステップと、前記ブロック分割ステップにお
いて設定されたブロック単位で、ブロックに対応して設
定されるダイナミックレンジに基づく量子化処理を実行
する量子化処理ステップと、を有し、前記ブロック分割
ステップは、さらに、設定済みのブロックについて、ダ
イナミックレンジの大きなブロックから順に選択し、選
択ブロックの再分割によるブロック設定処理を行なうス
テップを、を具備することを特徴とするプログラム記録
媒体にある。
Further, a seventh aspect of the present invention is a program recording medium for providing a computer program for causing an image data encoding process to be executed on a computer system, wherein the computer program constitutes an image. A block division step of setting the divided pixel area to be a block, a quantization processing step of executing a quantization process based on a dynamic range set corresponding to the block in the block unit set in the block division step, The block dividing step further includes a step of selecting blocks having a large dynamic range in order from already set blocks and performing block setting processing by re-dividing the selected block. It is on the program recording medium.

【0061】さらに、本発明の第8の側面は、符号化画
像データの復号処理をコンピュータ・システム上で実行
せしめるコンピュータ・プログラムを提供するプログラ
ム記録媒体であって、前記コンピュータ・プログラム
は、各ブロック単位の符号化データとしてのブロック情
報に格納された最小値(MIN)、およびダイナミック
レンジ(DR)、および各画素に対応する量子化コード
に基づいて、各ブロック単位の画素値復号処理を実行す
る復号処理ステップと、前記符号化データ内に格納され
たブロック再分割情報に基づいて復元ブロックの位置を
識別し、ブロック再構成を実行するブロック再構成ステ
ップと、を具備することを特徴とするプログラム記録媒
体にある。
Further, an eighth aspect of the present invention is a program recording medium for providing a computer program for causing a decoding process of coded image data to be executed on a computer system, wherein the computer program is each block. Pixel value decoding processing for each block is executed based on the minimum value (MIN) and dynamic range (DR) stored in the block information as encoded data of each unit, and the quantization code corresponding to each pixel. A program comprising: a decoding processing step; and a block reconstruction step of identifying a position of a restored block based on the block re-division information stored in the encoded data and executing block reconstruction. It is on the recording medium.

【0062】[0062]

【作用】本発明は、ADRCによる符号化処理または復
号処理対象のブロックサイズを固定とせず、各ブロック
のダイナミックレンジ、ブロックサイズ、再分割した際
のダイナミックレンジの差異に基づいて、再分割ブロッ
クを選択する構成であり、最適な再分割ブロックを効率
的に選択することが可能となり、再分割処理により、ブ
ロック毎のダイナミックレンジを減少させ、量子化ステ
ップ幅の減少により、量子化誤差の低減、画質の向上が
実現される。
The present invention does not fix the block size of the encoding process or the decoding process by ADRC, but determines the subdivided block based on the difference of the dynamic range of each block, the block size, and the dynamic range when subdivided. It is a configuration to select, it becomes possible to efficiently select the optimal subdivision block, the dynamic range of each block is reduced by the repartition processing, the quantization step width is reduced, the quantization error is reduced, Improvement of image quality is realized.

【0063】さらに、本発明は、ダイナミックレンジの
小さいブロックを選択して、ブロック内のチェック状の
画素の間引き処理を実行する構成としたことにより、符
号化データのデータ量削減、圧縮率向上を可能とした。
間引き処理対象ブロックの選定は、各ブロックのダイナ
ミックレンジに基づいて判定するので、効率的な処理が
可能となり、また良好な画質を保持することが可能とな
る。
Further, according to the present invention, a block having a small dynamic range is selected and the thinning process of check pixels in the block is executed, thereby reducing the data amount of the encoded data and improving the compression rate. Made possible
Since the selection of blocks to be thinned out is determined based on the dynamic range of each block, efficient processing is possible and good image quality can be maintained.

【0064】なお、本発明のコンピュータ・プログラム
は、例えば、様々なプログラム・コードを実行可能な汎
用コンピュータ・システムに対して、コンピュータ可読
な形式で提供する記憶媒体、通信媒体、例えば、CDや
FD、MOなどの記憶媒体、あるいは、ネットワークな
どの通信媒体によって提供可能なコンピュータ・プログ
ラムである。このようなプログラムをコンピュータ可読
な形式で提供することにより、コンピュータ・システム
上でプログラムに応じた処理が実現される。
The computer program of the present invention is, for example, a storage medium or communication medium provided in a computer-readable format for a general-purpose computer system capable of executing various program codes, such as a CD or FD. , MO, etc., or a computer program that can be provided by a communication medium such as a network. By providing such a program in a computer-readable format, processing according to the program is realized on the computer system.

【0065】本発明のさらに他の目的、特徴や利点は、
後述する本発明の実施例や添付する図面に基づく、より
詳細な説明によって明らかになるであろう。なお、本明
細書においてシステムとは、複数の装置の論理的集合構
成であり、各構成の装置が同一筐体内にあるものには限
らない。
Further objects, features and advantages of the present invention are as follows.
A more detailed description will be made clear based on embodiments of the present invention described below and the accompanying drawings. In this specification, the system is a logical set configuration of a plurality of devices, and is not limited to a device in which each configuration is provided in the same housing.

【0066】[0066]

【発明の実施の形態】以下、本発明の符号化処理装置、
復号処理装置、および方法について、図面を参照しなが
ら詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, an encoding processing device of the present invention,
The decoding processing device and method will be described in detail with reference to the drawings.

【0067】図1は、本発明の符号化処理装置の構成を
示すブロック図である。図1に示す符号化処理装置構成
について説明する。符号化処理対象となる画像データ
は、まず、ブロック分割部101に入力され、符号化対
象の画像領域をブロック分割する。
FIG. 1 is a block diagram showing the configuration of the encoding processing device of the present invention. The configuration of the encoding processing device shown in FIG. 1 will be described. The image data to be encoded is first input to the block division unit 101, and the image region to be encoded is divided into blocks.

【0068】本発明の符号化処理装置におけるブロック
分割処理の態様について、図2を参照して説明する。符
号化処理対象画像が(a)に示す画像であったとき、ブ
ロック分割部101は、まず、(b)に示すように画像
全体を4分割し、最初のブロック分割処理を実行する。
次に、(c)に示すように分割ブロック内の画素値に基
づいて、各ブロックのダイナミックレンジ(DR)を求
める。図の例では、4つのブロックのそれぞれのダイナ
ミックレンジが、170、213、130、175であ
った場合を示している。
A mode of block division processing in the encoding processing apparatus of the present invention will be described with reference to FIG. When the image to be encoded is the image shown in (a), the block division unit 101 first divides the entire image into four as shown in (b) and executes the first block division process.
Next, as shown in (c), the dynamic range (DR) of each block is obtained based on the pixel value in the divided block. In the illustrated example, the dynamic range of each of the four blocks is 170, 213, 130, and 175.

【0069】さらに、ブロック分割部101は、(d)
に示すように、各ブロックにおけるダイナミックレンジ
(DR)の値が最大のブロックを選択する。この場合、
最大ダイナミックレンジ(DR)は、213のDR値を
持つブロックである。ブロック分割部101は、(e)
に示すように、この213のDR値を持つブロックをさ
らに4分割する。さらに、(f)に示すように分割ブロ
ック内の画素値に基づいて、各ブロックのダイナミック
レンジ(DR)を求める。図の例では、最初の分割ブロ
ックのダイナミックレンジが、170、130、175
であり、再度の分割処理で生成したブロックのダイナミ
ックレンジが、160、78、128、59であった場
合を示している。
Further, the block dividing unit 101 (d)
As shown in, the block having the largest dynamic range (DR) value in each block is selected. in this case,
The maximum dynamic range (DR) is a block with a DR value of 213. The block division unit 101 uses (e)
As shown in, the block having the DR value of 213 is further divided into four. Further, as shown in (f), the dynamic range (DR) of each block is obtained based on the pixel value in the divided block. In the illustrated example, the dynamic range of the first divided block is 170, 130, 175.
In this case, the dynamic range of the blocks generated by the re-division processing is 160, 78, 128, 59.

【0070】ブロック分割部は、このようなブロック分
割処理を、予め定めた最大ブロック数に達するまで繰り
返し実行し、ブロック設定処理を行なう。
The block division unit repeatedly executes such block division processing until the predetermined maximum number of blocks is reached, and performs block setting processing.

【0071】ブロック分割部101の詳細構成を図3に
示す。ブロック分割部101は、ブロック分割処理部1
21、DR,ブロックサイズ判定処理部122、再分割
ブロック選択部123を有し、ブロック分割処理部12
1において、分割されたブロック内のダイナミックレン
ジ、およびブロックサイズについて、DR,ブロックサ
イズ判定処理部122が判定し、再分割ブロック選択部
123が、最大DR値を持つブロックを再分割ブロック
として選択し、選択したブロックについての分割をブロ
ック分割処理部121が実行する。これらの処理が繰り
返し実行される。
The detailed structure of the block division unit 101 is shown in FIG. The block division unit 101 is a block division processing unit 1.
21, the DR, the block size determination processing unit 122, and the subdivision block selection unit 123, and the block division processing unit 12
1, the DR / block size determination processing unit 122 determines the dynamic range and block size in the divided block, and the re-divided block selection unit 123 selects the block having the maximum DR value as the re-divided block. The block division processing unit 121 divides the selected block. These processes are repeatedly executed.

【0072】図4にブロック分割部101が実行するブ
ロック分割処理のフローチャートを示す。ステップS1
01において、初期化処理として、ブロック数=1、分
割数=0の設定を行なう。ステップS102では、符号
化対象画像全体を1ブロックの注目ブロックとして設定
する。これは符号化対象画像全体を1ブロックとしてみ
なす処理であり、図2(a)の状態に対応する。
FIG. 4 shows a flowchart of the block division processing executed by the block division unit 101. Step S1
In 01, as initialization processing, the number of blocks = 1 and the number of divisions = 0 are set. In step S102, the entire image to be encoded is set as a block of interest. This is a process in which the entire image to be encoded is regarded as one block, and corresponds to the state of FIG.

【0073】ステップS103では、注目ブロックを4
分割する。これは、図2(b)の状態に対応する。ステ
ップS104では、分割ブロックにおける各ブロックの
ダイナミックレンジ(DR)を算出する。この処理は、
各ブロック内に含まれる画素の画素値の解析に基づいて
行われる。なお、画素値とは、例えば画像信号が白黒で
あれば輝度信号レベルが適用され、例えば0〜255の
256階調の輝度レベルデータである。また、カラー画
像信号でYUV信号、すなわち輝度に関する輝度信号
Y、色に関する2つの色信号U,Vが用いられる場合
は、Y,U,Vそれぞれについての信号レベルである。
RGB等の色信号を適用する場合は、RGBそれぞれに
ついての信号レベルである。ブロック分割処理、さらに
量子化処理は、各信号について実行されることになる
が、その処理態様は同様のものであるので、以下では、
0〜255の256階調の輝度レベル信号についての処
理を行なうものとして説明する。
In step S103, the target block is set to 4
To divide. This corresponds to the state shown in FIG. In step S104, the dynamic range (DR) of each block in the divided blocks is calculated. This process
It is performed based on the analysis of the pixel value of the pixel included in each block. It should be noted that the pixel value is, for example, the brightness signal level when the image signal is black and white, and is the brightness level data of 256 gradations of 0 to 255, for example. When a YUV signal is used in the color image signal, that is, a luminance signal Y relating to luminance and two color signals U and V relating to colors are used, the signal levels are for Y, U and V, respectively.
When a color signal such as RGB is applied, the signal level is for each of RGB. Block division processing and further quantization processing will be executed for each signal, but since the processing mode is the same, in the following,
The description will be made assuming that the processing is performed on the brightness level signals of 256 gradations of 0 to 255.

【0074】ステップS104で、分割ブロックにおけ
る各ブロックのダイナミックレンジ(DR)が算出され
ると、ステップS105において、算出されたDR値に
基づいてブロックリストが生成または更新される。
When the dynamic range (DR) of each block in the divided blocks is calculated in step S104, the block list is generated or updated based on the calculated DR value in step S105.

【0075】ブロックリストの構成例を図5に示す。ブ
ロックリストは、図5に示すように、各分割ブロックに
おけるダイナミックレンジの値[DR値]、ブロックの
左上端の位置データとしての座標値、ブロックサイズ
(x×y)、さらに、再分割を実行した場合の現DR値
との差分データ、すなわち、現ブロックのダイナミック
レンジの値と、現ブロックを4つに再分割した場合のダ
イナミックレンジの最大値との差分データが格納され
る。
FIG. 5 shows an example of the structure of the block list. As shown in FIG. 5, the block list includes a dynamic range value [DR value] in each divided block, a coordinate value as position data at the upper left end of the block, a block size (x × y), and further subdivision. The difference data with the current DR value in that case, that is, the difference data with the value of the dynamic range of the current block and the maximum value of the dynamic range when the current block is subdivided into four are stored.

【0076】ステップS105では、新たなブロックが
生成された場合に、これらのデータをブロックリストに
追加する処理を行なう。
In step S105, when a new block is generated, a process of adding these data to the block list is performed.

【0077】ステップS106では、ブロックリストに
基づいて、注目ブロック、すなわち、再分割処理対象と
なるブロックの決定処理を実行する。この処理の詳細を
図6のフローを参照して説明する。
In step S106, the process of determining the block of interest, that is, the block to be subdivided is executed based on the block list. Details of this processing will be described with reference to the flow of FIG.

【0078】注目ブロックの設定処理において、ステッ
プS201では、まず初期化処理として最小ブロックサ
イズを指定する。最小ブロックサイズの極限値は、1画
素となるが、ADRC符号化処理の場合、ブロック毎の
最小値(MIN)、ダイナミックレンジ(DR)、量子
化コード(Qコード)が生成されることになり、最小ブ
ロックサイズを小さく設定すると、ブロック情報が多数
生成されることになり、全体としてのデータ量を増加さ
せることになる。ただし、最小ブロックサイズが小さい
ほど、量子化誤差は抑制できる。従って、出力データの
要求圧縮率、および許容画質に応じて、最小ブロックサ
イズを設定することになる。
In the setting process of the block of interest, in step S201, the minimum block size is first designated as the initialization process. The limit value of the minimum block size is 1 pixel, but in the case of ADRC encoding processing, the minimum value (MIN), dynamic range (DR), and quantization code (Q code) for each block are generated. If the minimum block size is set to be small, a lot of block information will be generated, and the data amount as a whole will be increased. However, the smaller the minimum block size, the more the quantization error can be suppressed. Therefore, the minimum block size is set according to the required compression rate of output data and the allowable image quality.

【0079】次に、ステップS202において、ブロッ
クリストの読込みが行なわれる。ブロックリストは、図
5に示すデータ構成を持つ。ステップS203では、ブ
ロックリストのエントリ全体を再分割処理対象としての
注目ブロックとしての選択候補とする。ステップS20
4では、選択候補から、最大のダイナミックレンジ(D
R)を持つブロックを選択する。
Next, in step S202, the block list is read. The block list has the data structure shown in FIG. In step S203, the entire entry of the block list is selected as a candidate for selection as a block of interest to be subdivided. Step S20
In 4, the maximum dynamic range (D
Select the block with R).

【0080】ステップS205において、選択ブロック
の分割サイズ≦最小ブロックサイズであるか否かが判定
され、Yesである場合は、ステップS206におい
て、そのブロックを候補ブロックから除外し、さらに、
ステップS204で除外後の選択候補から候補ブロック
の選定を実行する。
In step S205, it is determined whether or not the division size of the selected block ≦ minimum block size, and if Yes, the block is excluded from the candidate blocks in step S206, and further,
In step S204, a candidate block is selected from the selection candidates after exclusion.

【0081】ステップS204〜S206の処理を介し
て候補ブロックが選択されると、ステップS207にお
いて、候補ブロックのダイナミックレンジ(DR)と等
しいDR値を持つブロックが複数あるか否かが判定され
る。
When the candidate block is selected through the processing of steps S204 to S206, it is determined in step S207 whether there are a plurality of blocks having a DR value equal to the dynamic range (DR) of the candidate block.

【0082】例えば、図5に示すブロックリスト例にお
いては、(b),(c),(d)の3ブロックのダイナ
ミックレンジが53と等しく、このような場合、これら
複数のブロックから、再分割処理を実行すべき1つのブ
ロックを選定することが必要となる。
For example, in the block list example shown in FIG. 5, the dynamic range of the three blocks (b), (c), and (d) is equal to 53. In such a case, subdivision from these plural blocks is performed. It is necessary to select one block to execute the process.

【0083】この処理が、ステップS208〜S210
の処理として実行される。ステップS208では、同一
DR値ブロック中、ブロックサイズが最大のブロックが
選択される。等しいDR値、かつ等しいサイズのブロッ
クがある場合(ステップS209でYes)は、ステッ
プS210において、現ブロックのDR値と、分割後の
DR値との差分が最大となるブロックを選択する処理を
実行する。
This processing is performed in steps S208 to S210.
It is executed as the process of. In step S208, the block having the largest block size is selected from the same DR value blocks. When there are blocks having the same DR value and the same size (Yes in step S209), the process of selecting the block having the maximum difference between the DR value of the current block and the DR value after the division is executed in step S210. To do.

【0084】図5のブロックリストの例を参照して、ス
テップS208〜S210の処理について説明する。ス
テップS208における処理は、例えば、図5のリスト
中の(b)〜(d)から、ブロックサイズが最大のブロ
ックが選択され、(b)および(c)が選択される。さ
らに、ステップS210の処理として、図5のリスト中
の(b),(c)から、現ブロックのDR値と、分割後
のDR値との差分が最大となるブロックとして、(b)
が選択される。
The processing of steps S208 to S210 will be described with reference to the example of the block list of FIG. In the process in step S208, for example, the block having the largest block size is selected from (b) to (d) in the list of FIG. 5, and (b) and (c) are selected. Further, as the process of step S210, from (b) and (c) in the list of FIG. 5, a block in which the difference between the DR value of the current block and the DR value after division is the maximum is (b).
Is selected.

【0085】このように、 (1)ダイナミックレンジが最大 (2)ブロックサイズが大、 (3)DR値差分が大 の各判定処理を、順次実行して、再分割処理対象ブロッ
クとして1つのブロックが選択される。なお、これらの
処理においても複数ブロックが候補として選択される場
合は、リストの上位から1つのみを選択する等の処理を
実行してもよい。
As described above, the determination processes of (1) the maximum dynamic range, (2) the block size is large, and (3) the DR value difference is large are sequentially executed, and one block is selected as the re-division processing target block. Is selected. In addition, also in these processes, when a plurality of blocks are selected as candidates, a process such as selecting only one from the top of the list may be executed.

【0086】ステップS211では、選択された1つの
候補ブロックを注目ブロック、すなわち再分割処理対象
ブロックとして決定する。
In step S211, one selected candidate block is determined as a target block, that is, a subdivision processing target block.

【0087】図4の処理フローに戻り、ブロック分割処
理の説明を続ける。図6を参照して説明したステップS
106の注目ブロックの決定処理が終了すると、ステッ
プS107に進み、現ブロック数+3≦設定最大ブロッ
ク数の判定が行なわれる。
Returning to the processing flow of FIG. 4, the description of the block division processing will be continued. Step S described with reference to FIG.
When the process of determining the block of interest in 106 is completed, the process proceeds to step S107, and it is determined whether the current block number + 3 ≦ the set maximum block number.

【0088】現ブロック数+3は、新たな再分割処理を
実行した場合のブロック数を示しており、再分割を行な
った場合のブロック数が、あらかじめ定めた上限ブロッ
ク数としての設定最大ブロック数以下である場合にの
み、ステップS104以下の処理、すなわち、注目ブロ
ックの再分割処理を実行する。再分割を行なった場合の
ブロック数が、あらかじめ定めた上限ブロック数を超え
る場合は、新たな再分割処理を行なわず、ブロック分割
処理を終了する。
The number of current blocks + 3 indicates the number of blocks when a new subdivision process is executed, and the number of blocks when the subdivision is performed is equal to or less than the preset maximum number of blocks as a predetermined upper limit number of blocks. Only in the case of, the processing of step S104 and thereafter, that is, the re-division processing of the target block is executed. When the number of blocks when the redivision is performed exceeds the predetermined upper limit number of blocks, a new redivision process is not performed and the block division process is terminated.

【0089】このように、本発明のブロック分割処理
は、あらかじめ定めたブロック数を超えない範囲で、ブ
ロック再分割が実行され、再分割対象ブロックは、前述
したように、(1)ダイナミックレンジが最大、(2)
ブロックサイズが大、(3)DR値差分が大の判定条件
に従って選択されることになる。
As described above, in the block division processing of the present invention, the block subdivision is executed within the range that does not exceed the predetermined number of blocks, and the subdivision target block has (1) the dynamic range as described above. Maximum, (2)
The block size is large, and (3) the DR value difference is selected according to the judgment condition.

【0090】図7に、本発明の符号化処理装置(エンコ
ーダ)の符号化処理の手順を説明するフローを示す。図
1の符号化処理装置構成を参照しながら、各ステップに
ついて説明する。
FIG. 7 shows a flow for explaining the procedure of the encoding processing of the encoding processing device (encoder) of the present invention. Each step will be described with reference to the configuration of the encoding processing device in FIG.

【0091】ステップS301において、ブロック分割
部101においてブロック分割を実行する。ブロック分
割は、上述したように、再分割処理を含み、あらかじめ
定めたブロック数に至るまで、DR値、ブロックサイ
ズ、DR値差分に基づいて再分割処理対象ブロックが選
択されて実行されるブロック分割処理である。
In step S301, the block division unit 101 executes block division. As described above, the block division includes the re-division processing, and the re-division processing target block is selected and executed based on the DR value, the block size, and the DR value difference up to a predetermined number of blocks. Processing.

【0092】次に、ステップS302では、処理対象ブ
ロックが順次選択される。ステップS303では、処理
対象ブロックの画素値解析が実行され、最小値、最大
値、ダイナミックレンジ等の値が取得される。
Next, in step S302, blocks to be processed are sequentially selected. In step S303, the pixel value analysis of the processing target block is executed, and the values such as the minimum value, the maximum value, and the dynamic range are acquired.

【0093】さらに、ステップS304では、間引き処
理の実行の有無が判定され、間引き処理を実行する場合
は、間引き処理部104において、間引き処理が行なわ
れる。間引き処理部104は、所定の画素値を他の画素
データから復元することを前提とした間引き処理を実行
する。この間引き処理については、後段で説明する。
Further, in step S304, it is determined whether or not the thinning-out process is executed, and when the thinning-out process is executed, the thinning-out processing unit 104 performs the thinning-out process. The thinning-out processing unit 104 executes thinning-out processing on the assumption that a predetermined pixel value is restored from other pixel data. This thinning-out process will be described later.

【0094】間引き処理を実行する場合は、ステップS
305の間引き処理の後、間引き処理を実行しない場合
は、ステップS305を省略して、ステップS306に
おける量子化処理を実行する。
When executing the thinning-out process, step S
If the thinning process is not executed after the thinning process of 305, step S305 is omitted and the quantization process in step S306 is executed.

【0095】ステップS306では、量子化処理が実行
される。図1の構成においては、DR、最小値(MI
N)検出部102が、処理対象ブロック内の画素値に基
づいて、ダイナミックレンジ(DR)、および最小値
(MIN)を算出し、量子化(符号化)処理部103
が、ダイナミックレンジ(DR)、および最小値(MI
N)、および各画素の画素値に基づいて、量子化コード
(Qコード)を算出する。量子化(符号化)処理部10
3において実行する量子化コード(Qコード)算出は、
下式に従った処理として実行される。
In step S306, the quantization process is executed. In the configuration of FIG. 1, DR, minimum value (MI
N) The detection unit 102 calculates the dynamic range (DR) and the minimum value (MIN) based on the pixel value in the processing target block, and the quantization (encoding) processing unit 103.
, Dynamic range (DR), and minimum value (MI
A quantization code (Q code) is calculated based on N) and the pixel value of each pixel. Quantization (encoding) processing unit 10
Quantization code (Q code) calculation executed in 3 is
It is executed as a process according to the following formula.

【0096】[0096]

【数3】 Δ=DR/2n Q=(x−MIN+0.5)/Δ (DR≧2nの場合) Q=(x−MIN) (DR<2nの場合) ……(数式a1)## EQU3 ## Δ = DR / 2 n Q = (x−MIN + 0.5) / Δ (when DR ≧ 2 n ) Q = (x−MIN) (when DR <2 n ) (Equation a1)

【0097】上記式において、x:画素値、Δ:量子化
ステップ幅、n:量子化ビット数である。DRは、各ブ
ロックに対応するダイナミックレンジ(DR)であり、
DR、最小値(MIN)算出部102が、各ブロック内
の画素値に基づいて、取得した情報が適用される。MI
Nは、各ブロックに対応する最小値(MIN)であり、
これも各ブロック内の画素値に基づいて取得した情報が
適用される。
In the above equation, x is the pixel value, Δ is the quantization step width, and n is the number of quantization bits. DR is a dynamic range (DR) corresponding to each block,
The information acquired by the DR / minimum value (MIN) calculation unit 102 is applied based on the pixel value in each block. MI
N is the minimum value (MIN) corresponding to each block,
The information acquired based on the pixel value in each block is also applied to this.

【0098】また、可変長ADRCを適用した処理を実
行する場合は、各ブロックのダイナミックレンジ(D
R)に対応して予め設定された量子化ビット数に応じた
量子化処理により、各画素の量子化コード(Qコード)
が設定されることになる。可変長ADRCの場合の量子
化ビット数は、例えば、予め定められた下記の量子化ビ
ット数設定条件式に基づいて決定される。
Further, when executing the processing to which the variable length ADRC is applied, the dynamic range (D
R), the quantization code (Q code) of each pixel by the quantization processing according to the number of quantization bits set in advance.
Will be set. The number of quantized bits in the case of the variable length ADRC is determined, for example, based on a predetermined quantized bit number setting conditional expression below.

【数4】 0≦DR<th1 →0ビット th1≦DR<th2 →1ビット th2≦DR<th3 →2ビット : thn≦DR≦thn+1 →nビット ……(数式a2)[Formula 4] 0 ≦ DR <th 1 → 0 bit th 1 ≦ DR <th 2 → 1 bit th 2 ≦ DR <th 3 → 2 bit: th n ≦ DR ≦ th n + 1 → n bit. a2)

【0099】上記条件式(数式a2)において、DR
は、各ブロックのダイナミックレンジであり、本実施例
の場合は、DR、最小値(MIN)検出部102におい
て検出する画素値に基づいて算出されるダイナミックレ
ンジ(DR)である。th1〜thnは、予め定められた
閾値である。
In the above conditional expression (expression a2), DR
Is the dynamic range of each block, and in the case of the present embodiment, is the dynamic range (DR) calculated based on the pixel value detected by the DR and minimum value (MIN) detection unit 102. th 1 to TH n is a predetermined threshold.

【0100】可変長ADRCの場合の各ブロックと、量
子化ビットの構成例について、図8を参照して説明す
る。
Each block in the case of variable length ADRC and an example of the configuration of the quantization bit will be described with reference to FIG.

【0101】量子化処理対象となる図8(a)に示す画
像データは、ブロック分割部101において、ブロック
分割され、各分割ブロック内のダイナミックレンジ(D
R)、最小値(MIN)がDR、最小値(MIN)検出
部102において検出され、量子化(符号化)処理部1
03が、各ブロックのダイナミックレンジに応じた量子
化ビット数を設定して量子化処理を行なう。量子化ビッ
ト数の設定処理は、上記(数式a2)に示す如く、ブロ
ック内のダイナミックレンジと、閾値との比較により行
われる。
The image data shown in FIG. 8A to be quantized is divided into blocks by the block division unit 101, and the dynamic range (D
R) and the minimum value (MIN) are detected by the DR and minimum value (MIN) detection unit 102, and the quantization (encoding) processing unit 1
03 sets the number of quantization bits according to the dynamic range of each block and performs the quantization process. The setting process of the number of quantization bits is performed by comparing the dynamic range in a block with a threshold value, as shown in (Formula a2) above.

【0102】図8(b)には、各ブロックの量子化コー
ド(Qコード)の例を示しており、本例においては、ブ
ロック1については4ビット量子化、ブロックpについ
ては3ビット量子化、ブロックsについては4ビット量
子化処理がなされている。各ブロックの量子化コード数
は、ブロック内画素数:m×n=k個となり、各ブロッ
クに含まれる量子化コードのビット総数は、ブロック1
は、4×kビット、ブロックpは3×kビット、ブロッ
クsは4×kビットとなる。
FIG. 8B shows an example of the quantization code (Q code) of each block. In this example, the block 1 is 4-bit quantization, and the block p is 3-bit quantization. , Block s has been subjected to 4-bit quantization processing. The number of quantization codes in each block is the number of pixels in the block: m × n = k, and the total number of bits of the quantization codes included in each block is block 1
Is 4 × k bits, the block p is 3 × k bits, and the block s is 4 × k bits.

【0103】量子化処理部103の生成した量子化コー
ド(Qコード)は、各ブロック毎のブロック情報中に格
納され、ステップS307において、ブロック情報を含
む符号化データが出力、あるいは記憶手段に格納され、
符号化処理を終了する。
The quantized code (Q code) generated by the quantization processing unit 103 is stored in the block information for each block, and in step S307, the encoded data including the block information is output or stored in the storage means. Is
The encoding process ends.

【0104】図9に、間引き処理を実行しない場合にお
ける符号化データの構成例を示す。符号化データは、図
9に示すように、画像情報、ブロック分割情報、ブロッ
ク情報から構成される。ブロック情報は、各ブロックに
おける最小値(MIN)、ダイナミックレンジ(D
R)、量子化コード(Qコード)からなるデータであ
る。
FIG. 9 shows an example of the configuration of encoded data when the thinning process is not executed. As shown in FIG. 9, the encoded data is composed of image information, block division information, and block information. The block information includes the minimum value (MIN) and dynamic range (D) in each block.
R) and the quantization code (Q code).

【0105】画像情報は、画像の形式、画像の大きさ、
量子化ビット数等の情報からなる付加情報である。ブロ
ック分割情報は、ブロック分割部の実行したブロック分
割態様を示すデータである。図10を参照して、ブロッ
ク分割情報の形式について説明する。
The image information includes image format, image size,
It is additional information including information such as the number of quantization bits. The block division information is data indicating the block division mode executed by the block division unit. The format of the block division information will be described with reference to FIG.

【0106】ブロック分割情報は、符号化データを受信
し、復号処理を実行する復号処理装置において、ブロッ
ク情報に基づく復号データが画像情報のどの位置の符号
化データであるかを判別するために用いられる情報であ
る。すなわち、各ブロック情報がどの位置の画像データ
に対応するかを判別するために用いられる。
The block division information is used for determining in which position of the image information the decoded data based on the block information is the coded data in the decoding processing device that receives the coded data and executes the decoding process. Information. That is, it is used to determine which position each block information corresponds to image data.

【0107】ブロック分割情報は、分割(子)があるブ
ロックを[1]、分割(子)がないブロックを[0]と
してそれぞれ1ビットで示し、全体画像からブロックサ
イズの大きなものから左上から右下に向かって、ツリー
状にデータを配列した場合に生成されるシーケンスデー
タとして構成する。
The block division information is represented by 1 bit for a block having a division (child) as [1] and a block having no division (child) as [0]. It is configured as sequence data generated when the data is arranged in a tree shape downward.

【0108】図10に示す画像は、分割ブロックa,
b,c,d中、さらに分割のあるブロックはbのみであ
り、ブロックbは[1]、ブロックa,c,dは[0]
が設定される。全体ブロックについては、分割(子)が
あるので[1]として設定され、ブロック[b]の再分
割ブロックba,bb,bc,bdは、さらなる分割
(子)はないので[0]が設定される。これらのデータ
を、上、左優先として並べることで、ブロック分割情報
[101000000]が生成される。復号処理側で
は、このブロック分割情報に対応させて、ブロック情報
に基づく復号データの画素位置を特定することが可能と
なる。
The image shown in FIG. 10 is divided block a,
Of b, c, and d, the only block with further division is b, the block b is [1], and the blocks a, c, and d are [0].
Is set. The whole block has divisions (children), so it is set as [1], and the subdivided blocks ba, bb, bc, and bd of the block [b] have no further divisions (children), so are set to [0]. It The block division information [101000000] is generated by arranging these pieces of data in the top-left order. On the decoding processing side, it becomes possible to specify the pixel position of the decoded data based on the block information in association with this block division information.

【0109】ブロック分割情報の後には、図9に示すよ
うに、ブロック数に応じた数のブロック情報が格納され
る。ブロック情報は、各ブロックにおける最小値(MI
N)、ダイナミックレンジ(DR)、量子化コード(Q
コード)からなるデータである。
After the block division information, as shown in FIG. 9, a number of pieces of block information corresponding to the number of blocks are stored. The block information is the minimum value (MI
N), dynamic range (DR), quantization code (Q
Code).

【0110】本発明の符号化処理装置において生成する
符号化データには、ブロック分割情報が付加されること
になる。これは、ツリー構造を示すデータ量となり、こ
のビット数は、以下の式によって示される。 ツリー構造表示ビット数=(子を持たない最終的ブロッ
ク数−1)/3×4+1)×1bit
The block division information is added to the encoded data generated by the encoding processing device of the present invention. This is the amount of data indicating the tree structure, and the number of bits is represented by the following formula. Tree structure display bit number = (final block number without children-1) / 3 × 4 + 1) × 1 bit

【0111】上記式によって算出されるビット数の増加
は、符号化データの全体ビット数に占める比率は極めて
小さく、圧縮率を増大させるものとはならない。
The increase in the number of bits calculated by the above equation does not increase the compression rate because the ratio of the encoded data to the total number of bits is extremely small.

【0112】次に、図1の符号化処理装置構成図におけ
る間引き処理部104が実行する間引き処理について説
明する。
Next, the thinning-out processing executed by the thinning-out processing unit 104 in the block diagram of the encoding processing apparatus of FIG. 1 will be described.

【0113】図11は、本発明の符号化処理装置におけ
る間引き処理部104が行なう間引き処理例を説明する
図である。
FIG. 11 is a diagram for explaining an example of thinning processing performed by the thinning processing unit 104 in the encoding processing device of the present invention.

【0114】図11(a)のある分割ブロックの複数画
素を示している。間引き処理は、(b)に示すように、
ブロックの境界周辺画素を除いた画素部分をチェック状
に選択した画素を間引き対象画素とする。これは、間引
き画素の復元処理を(c)に示すように、上下および左
右の画素値に基づいて実行可能とするための処置であ
る。間引かれた画素の画素値の復元は、例えば、間引き
画素の上下および左右4画素の平均値として設定する。
FIG. 11 (a) shows a plurality of pixels in a certain divided block. The thinning-out process is, as shown in (b),
Pixels selected in a check pattern except for the pixels around the boundary of the block are set as the thinning target pixels. This is a procedure for enabling restoration processing of thinned pixels to be executed based on the upper and lower pixel values and the left and right pixel values as shown in (c). The restoration of the pixel values of the thinned pixels is set, for example, as an average value of four pixels above and below and left and right of the thinned pixels.

【0115】符号化処理装置側では、間引き処理を実行
する場合は、図1の構成における間引き処理部が、図1
1(b)に示すようにブロック内画素をチェック状に間
引いた後、量子化処理部103が間引き後に残留した画
素値についてのみ量子化コード(Qコード)を生成する
ことになり、ブロック情報中の量子化コード数がほぼ半
減し、データ量が削減される。
On the encoding processing device side, when executing the thinning processing, the thinning processing unit in the configuration of FIG.
As shown in FIG. 1 (b), after the pixels in the block are thinned out in a check pattern, the quantization processing unit 103 generates a quantization code (Q code) only for the pixel values remaining after the thinning out. The number of quantized codes is almost halved, and the amount of data is reduced.

【0116】なお、間引き処理は、全ての分割ブロック
に対して実行する。または、全く実行しない。あるいは
特定の分割ブロックに対してのみ実行する等、様々な処
理形態が可能である。
The thinning process is executed for all the divided blocks. Or do not run at all. Alternatively, various processing forms are possible such as executing only for a specific divided block.

【0117】特定の分割ブロックに対してのみ間引き処
理を実行する形態の一例として、ダイナミックレンジの
小さいブロックを選択して、これらのブロックについて
のみ間引き処理を実行する方法がある。
As an example of the mode in which the thinning-out process is executed only for a specific divided block, there is a method in which blocks having a small dynamic range are selected and the thinning-out process is executed only for these blocks.

【0118】ダイナミックレンジの小さいブロックは、
ブロック内に含まれる画素値の差が小さいということで
あり、間引き処理を実行した場合において、他の周囲画
素に基づく画素値補間処理を実行しても、元の画素値と
の差が小さくできるという理由に基づくものである。
A block with a small dynamic range is
This means that the difference between the pixel values contained in the block is small, and when the thinning processing is executed, the difference from the original pixel value can be reduced even if the pixel value interpolation processing based on other surrounding pixels is executed. It is based on the reason.

【0119】図12に間引き処理を選択的に実行する場
合の判定処理フローを示す。ステップS401におい
て、判定処理対象となるブロックを選択し、ステップS
402において、ブロック内画素の画素値解析を実行
し、ステップS403において、画素値解析により取得
したブロックのダイナミックレンジ(DR)が予め設定
した閾値(DRmin)より大であるか否かを判定す
る。
FIG. 12 shows a determination processing flow when the thinning processing is selectively executed. In step S401, a block to be subjected to determination processing is selected, and step S
In 402, the pixel value analysis of the pixels in the block is executed, and in step S403, it is determined whether or not the dynamic range (DR) of the block acquired by the pixel value analysis is larger than a preset threshold value (DRmin).

【0120】DR>(DRmin)である場合は、間引
き処理を実行せずに、ステップS405の量子化処理ス
テップに進み、DR>(DRmin)でない場合は、ス
テップS404の間引き処理を実行した後、ステップS
405の量子化処理を実行する。量子化処理後のデータ
に基づいて、ブロック情報が生成される。
If DR> (DRmin), the thinning processing is not executed, and the process proceeds to the quantization processing step of step S405. If DR> (DRmin) is not satisfied, the thinning processing of step S404 is executed. Step S
The quantization processing of 405 is executed. Block information is generated based on the data after the quantization processing.

【0121】本フローの処理に従えば、DR>(DRm
in)でない場合にのみ間引きデータに基づく量子化デ
ータとしてのブロック情報が生成されることになる。従
って、ブロック情報を受領して復号を実行する復号処理
装置に対して、ブロック情報が、間引きデータに基づく
ものか否かを判定するための付加情報を各ブロック情報
に対して設定することが必要となる。これらのデータ構
成については、後述する。
According to the processing of this flow, DR> (DRm
block information as the quantized data based on the thinned-out data is generated only when it is not in). Therefore, it is necessary to set additional information for each block information to determine whether the block information is based on the thinned-out data, to the decoding processing device that receives the block information and executes the decoding. Becomes The data structure of these will be described later.

【0122】次に、ブロック分割の再分割処理を、予定
圧縮率に基づいて実行する処理について説明する。前述
の図6を参照した再分割ブロック選択処理においては、
(1)ダイナミックレンジが最大、(2)ブロックサイ
ズが大、(3)DR値差分が大の判定条件に従って、再
分割ブロックを選択する処理例を説明したが、以下、初
期的にあるサイズの分割ブロックを生成し、その後、予
定圧縮率に基づいて、再分割ブロックを選択する処理例
を図13の処理フローを参照して説明する。
Next, a description will be given of the process of executing the subdivision process of block division based on the planned compression rate. In the subdivision block selection processing with reference to FIG. 6 described above,
The processing example of selecting a re-divided block according to the determination conditions of (1) maximum dynamic range, (2) large block size, and (3) large DR value difference has been described below. A processing example of generating a divided block and then selecting a re-divided block based on the planned compression rate will be described with reference to the processing flow of FIG. 13.

【0123】図13に示すフローの各ステップについて
説明する。ステップS501において、処理対象画像を
入力し、ステップS502において、入力画像を1次ブ
ロック分割する。この1次ブロック分割は、あらかじめ
設定したブロックサイズに従って実行する。ステップS
503で各ブロックのダイナミックレンジ(DR)算出
を実行する。
Each step of the flow shown in FIG. 13 will be described. An image to be processed is input in step S501, and the input image is divided into primary blocks in step S502. This primary block division is executed according to a preset block size. Step S
At 503, dynamic range (DR) calculation of each block is executed.

【0124】ステップS504では、間引き処理を実行
するか否かを決定するための閾値(DRmin)と、各
ブロックのダイナミックレンジ(DR)比較を行ない、
間引き処理実行対象ブロック数を算出する。
In step S504, the dynamic range (DR) of each block is compared with the threshold value (DRmin) for determining whether or not to execute the thinning process.
The number of blocks subject to thinning processing is calculated.

【0125】ステップS505では、予め設定した予定
圧縮率に基づいて、ブロックの再分割処理を実行するか
否かを決定するダイナミックレンジ閾値としてのDRm
axを算出する。
In step S505, DRm as a dynamic range threshold value for determining whether or not to execute block subdivision processing based on a preset planned compression rate.
Calculate ax.

【0126】ステップS505のDRmax決定処理に
ついて、具体例を示して詳細に説明する。処理対象画
像、および、1次分割ブロックサイズ、再分割ブロック
サイズ、および、間引き処理実行判定閾値:DRmin
が以下のように設定されたとする。
The DRmax determination process in step S505 will be described in detail with a specific example. Image to be processed, primary divided block size, subdivided block size, and thinning process execution determination threshold: DRmin
Is set as follows.

【0127】 画像サイズ:704(画素)×480(画素) 1次ブロックサイズ:8(画素)×8(画素) 再分割ブロックサイズ:4(画素)×4(画素) DRmin:35[0127] Image size: 704 (pixels) x 480 (pixels) Primary block size: 8 (pixels) x 8 (pixels) Subdivision block size: 4 (pixels) x 4 (pixels) DRmin: 35

【0128】なお、各画素の画素値情報は8ビットデー
タであるとする。この時、予定圧縮率を1/3とする
と、予定圧縮率に基づく予定情報量は、 予定情報量=(704×480×8)/3 =901120ビット……(b1) となる。
It is assumed that the pixel value information of each pixel is 8-bit data. At this time, if the scheduled compression rate is 1/3, the scheduled information amount based on the scheduled compression rate is: Scheduled information amount = (704 × 480 × 8) / 3 = 901120 bits (b1).

【0129】一方、通常のADRC処理、の各ブロック
情報は、2ビット量子化を実行したとすると、 最小値(MIN):8ビット ダイナミックレンジ:8ビット 量子化コード:8×8×2=128ビット の総計:142ビット……(b2) である。
On the other hand, assuming that 2-bit quantization is executed for each block information of the normal ADRC processing, the minimum value (MIN): 8-bit dynamic range: 8-bit quantization code: 8 × 8 × 2 = 128 The total number of bits: 142 bits (b2).

【0130】全ブロック数は、 (704×480)/(8×8)=5280 であるから、全ブロック情報は、 5280×128=675840ビット……(b3) となる。The total number of blocks is (704 × 480) / (8 × 8) = 5280 Therefore, all block information is 5280 × 128 = 675840 bits (b3) Becomes

【0131】間引き処理によって削減される情報量は、
間引きブロック数=Aとすると、1ブロック(8×8)
の間引き画素数=18であるので、 間引き情報量=(2×18)×A……(b4) となる。
The amount of information reduced by the thinning process is
If the number of thinned blocks = A, 1 block (8 × 8)
Since the number of thinned pixels = 18, the amount of thinned information = (2 × 18) × A (b4).

【0132】間引き処理を実行するか否かを決定するた
めの閾値(DRmin)=35としたとき、間引きブロ
ック数=A=125と算出されたとする。 間引き情報量=(2×18)×125 =4500ビット……(b5) となる。
When the threshold value (DRmin) for determining whether or not to execute the thinning process is set to 35, it is assumed that the number of thinned blocks = A = 125 is calculated. Thinned-out information amount = (2 × 18) × 125 = 4500 bits (b5).

【0133】この時、間引きのみを実行し、ブロックの
再分割処理を実行しない場合の符号化データ量は、 符号化データ量=(b3)−(b5) =675840−4500 =671340ビット……(b6) となる。
At this time, the coded data amount in the case where only the thinning is executed and the block re-division processing is not executed is as follows: coded data amount = (b3)-(b5) = 675840-4500 = 671340 bits. b6).

【0134】上記値(b6)と、予定圧縮率に基づく予
定情報量としての(b1)との差分は、 差分=(b1)−(b6) =901120−671340 =229780ビット……(b7) となる。
The difference between the value (b6) and (b1) as the planned information amount based on the planned compression rate is as follows: difference = (b1)-(b6) = 901120-671340 = 229780 bits (b7) Become.

【0135】一方、1つの1次ブロック(8×8)の再
ブロック化(4つの4×4)によって増加する情報量
は、再ブロック(4×4)のブロック情報は、 最小値(MIN):8ビット ダイナミックレンジ:8ビット 量子化コード:4×4×2=32ビット の総計:48ビット……(b8) であるから、 増加情報量=4×(b8)−(b2) =(4×48)−142 =50ビット……(b9) となる。
On the other hand, the amount of information increased by reblocking (4 × 4) of one primary block (8 × 8) is the minimum value (MIN) for the block information of the reblock (4 × 4). : 8-bit dynamic range: 8-bit quantization code: 4 × 4 × 2 = 32-bit total: 48 bits (b8) Therefore, the increased information amount = 4 × (b8)-(b2) = (4 × 48) −142 = 50 bits (b9)

【0136】予定圧縮率に基づく予定情報量としての
(b1)との差分である(b7)と、上記ブロック再分
割によって増加する情報量(b9)に基づいて、許容再
分割ブロック数は、 許容再分割ブロック数=(b1)/(b9) =229780/50 =4595.6 ≒4595 となる。
Based on the difference (b7) from the planned information amount (b1) based on the planned compression ratio and the information amount (b9) increased by the block re-division, the allowable number of re-divided blocks is The number of subdivided blocks = (b1) / (b9) = 229780/50 = 4595.6≈4595.

【0137】このブロック数に基づいて、各1次ブロッ
クのダイナミックレンジを最大のものから並べ、459
5個目のブロックのダイナミックレンジをDRmaxと
して設定する。例えばこの値がDR=39であるとき、
DRmax=39として設定する。
Based on the number of blocks, the dynamic range of each primary block is arranged from the largest one to 459.
The dynamic range of the fifth block is set as DRmax. For example, when this value is DR = 39,
Set as DRmax = 39.

【0138】以上のような処理に従って再分割を実行す
るか否かのダイナミックレンジ閾値(DRmax)の設
定を実行する。図13の処理フローに戻り説明を続け
る。
The dynamic range threshold value (DRmax), which indicates whether or not to perform re-division, is set in accordance with the above processing. Returning to the processing flow of FIG. 13, the description will be continued.

【0139】ステップS505において、上述した処理
に従って、DRmaxを算出すると、ステップS506
に進み、処理対象ブロックのダイナミックレンジ(D
R)と、間引き処理の実行有無判定閾値(DRmin)
との比較を行ない、DR>閾値(DRmin)でない場
合は、ステップS507に進み、間引き処理を実行す
る。
In step S505, when DRmax is calculated according to the above-described processing, step S506
To the dynamic range (D
R) and a threshold for determining whether to execute thinning processing (DRmin)
When DR> threshold value (DRmin) is not satisfied, the process proceeds to step S507 and thinning processing is executed.

【0140】DR>閾値(DRmin)である場合は、
ステップS508に進み、処理対象ブロックのダイナミ
ックレンジ(DR)と、再分割を実行するか否かのダイ
ナミックレンジ閾値(DRmax)との比較を行ない、
DR≧閾値(DRmax)である場合は、ステップS5
09のブロック再分割処理、例えば1次分割ブロック
(8×8)を4つの(4×4)小ブロックに再分割す
る。
If DR> threshold value (DRmin),
In step S508, the dynamic range (DR) of the processing target block is compared with the dynamic range threshold (DRmax) of whether or not to perform subdivision,
If DR ≧ threshold value (DRmax), step S5
09 block re-division processing, for example, a primary division block (8 × 8) is re-divided into four (4 × 4) small blocks.

【0141】その後、ステップS510の量子化処理を
実行し、ステップS511において、全ブロックの処理
終了を判定して、未処理ブロックがある場合は、ステッ
プS506以下の処理を繰り返し実行して、全てのブロ
ックについての量子化を実行する。
After that, the quantization process of step S510 is executed, and in step S511, it is determined whether all blocks have been processed. If there is an unprocessed block, the processes of step S506 and subsequent steps are repeatedly executed, and all blocks are processed. Performs quantization on blocks.

【0142】次に、図14を参照して、先に説明したブ
ロックリストを生成してブロック毎のダイナミックレン
ジの比較を実行して、最大のダイナミックレンジのもの
から順次分割する処理(図4乃至図6参照)に、図13
を参照して説明した間引き処理を加えた処理について説
明する。
Next, with reference to FIG. 14, a process of generating the block list described above, comparing the dynamic ranges of the blocks, and sequentially dividing from the largest dynamic range (FIGS. 4 to 4). (See FIG. 6)
A process to which the thinning process described with reference to is added will be described.

【0143】ステップS521において、初期化処理と
して、ブロック数=1、分割数=0の設定を行なう。ス
テップS522では、符号化対象画像全体を1ブロック
の注目ブロックとして設定する。これは符号化対象画像
全体を1ブロックとしてみなす処理であり、図2(a)
の状態に対応する。
In step S521, the number of blocks = 1 and the number of divisions = 0 are set as initialization processing. In step S522, the entire image to be encoded is set as a block of interest. This is a process in which the entire image to be encoded is regarded as one block.
Corresponding to the state of.

【0144】ステップS523では、注目ブロックを4
分割する。これは、図2(b)の状態に対応する。ステ
ップS524では、分割ブロックにおける各ブロックの
ダイナミックレンジ(DR)を算出する。この処理は、
各ブロック内に含まれる画素の画素値の解析に基づいて
行われる。
In step S523, the target block is set to 4
To divide. This corresponds to the state shown in FIG. In step S524, the dynamic range (DR) of each block in the divided blocks is calculated. This process
It is performed based on the analysis of the pixel value of the pixel included in each block.

【0145】ステップS525では、間引き処理を実行
するか否かを決定するための閾値(DRmin)と、各
ブロックのダイナミックレンジ(DR)比較を行ない、
間引き処理実行対象ブロック数を算出する。
In step S525, the dynamic range (DR) of each block is compared with the threshold value (DRmin) for determining whether or not to execute the thinning process.
The number of blocks subject to thinning processing is calculated.

【0146】ステップS526では、処理対象ブロック
のダイナミックレンジ(DR)と、間引き処理の実行有
無判定閾値(DRmin)との比較を行ない、DR>閾
値(DRmin)でない場合は、ステップS527に進
み、間引き処理を実行する。
In step S526, the dynamic range (DR) of the block to be processed is compared with the execution presence / absence determination threshold value (DRmin). If DR> threshold value (DRmin), the process advances to step S527 to perform thinning processing. Execute the process.

【0147】ステップS528では、新たなブロックが
生成された場合に、これらのデータをブロックリストに
追加する処理を行なう。ブロックリストの構成は、先に
図5を参照して説明したと同様であり、各分割ブロック
におけるダイナミックレンジの値[DR値]、ブロック
の左上端の位置データとしての座標値、ブロックサイズ
(x×y)、さらに、再分割を実行した場合の現DR値
との差分データ、すなわち、現ブロックのダイナミック
レンジの値と、現ブロックを4つに再分割した場合のダ
イナミックレンジの最大値との差分データが格納され
る。
In step S528, when a new block is generated, a process of adding these data to the block list is performed. The configuration of the block list is the same as that described above with reference to FIG. 5, and the dynamic range value [DR value] in each divided block, the coordinate value as the position data of the upper left end of the block, the block size (x Xy), further, the difference data from the current DR value when the subdivision is executed, that is, the value of the dynamic range of the current block and the maximum value of the dynamic range when the current block is subdivided into four. Difference data is stored.

【0148】ステップS529では、ブロックリストに
基づいて、注目ブロック、すなわち、再分割処理対象と
なるブロックの決定処理を実行する。この処理の詳細
は、先に図6を参照して説明した処理となる。図6に示
す処理フローに従ったS529の注目ブロックの決定処
理が終了すると、ステップS530に進み、現ブロック
数+1≦許容ブロック数の判定が行なわれる。
In step S529, the process of determining the target block, that is, the block to be re-divided is executed based on the block list. The details of this processing are the processing described above with reference to FIG. When the process of determining the target block in S529 according to the process flow shown in FIG. 6 is completed, the process proceeds to step S530, and it is determined whether the current block number + 1 the allowable block number.

【0149】この処理は、予定圧縮率に基づく予定情報
量とブロック再分割によって増加する情報量に基づいて
求められる許容再分割ブロック数[許容再分割ブロック
数=(b1)/(b9)]と、再分割ブロック数+1と
の比較、すなわち、再分割ブロック数+1≦許容再分割
ブロック数を満足するか否かの判定処理を実行する。な
お、ここでは、ブロックの再分割として、1つのブロッ
クを4分割するものとして仮定している。
In this process, the allowable number of re-divided blocks [allowable number of re-divided blocks = (b1) / (b9)] is calculated on the basis of the planned information amount based on the planned compression ratio and the information amount increased by the block re-division. , The number of re-divided blocks + 1, that is, the process of determining whether or not the number of re-divided blocks + 1 ≦ the allowable number of re-divided blocks is satisfied. Here, it is assumed that one block is divided into four as subdivision of the block.

【0150】再分割ブロック数+1≦許容再分割ブロッ
ク数を満足する場合は、ステップS523以下の処理、
すなわち、注目ブロックの再分割処理を実行する。再分
割ブロック数+1≦許容再分割ブロック数を満足しない
場合は、ステップS531に進み、ブロック分割データ
に基づく量子化処理を実行する。
If the number of re-divided blocks + 1 ≦ allowable number of re-divided blocks is satisfied, the processing from step S523 onward
That is, the redivision processing of the target block is executed. If the number of re-divided blocks + 1 ≦ allowable number of re-divided blocks is not satisfied, the process advances to step S531 to execute the quantization process based on the block-divided data.

【0151】図13または図14の処理に従うと、間引
き処理を実行したブロック、非実行のブロック、さらに
再分割処理を実行したブロック、再分割を実行していな
いブロックが混在することになり、これら様々なブロッ
クのブロック情報が生成されることになる。
According to the processing shown in FIG. 13 or FIG. 14, blocks that have undergone decimation processing, blocks that have not been executed, blocks that have been re-divided, and blocks that have not been re-divided are mixed. Block information for various blocks will be generated.

【0152】これらの混在ブロック情報に基づいて復号
を行なう復号処理装置では、これらのブロック情報の判
別を行なうことが必要となる。符号化処理装置では、こ
れらの判別のために付加情報を各ブロック情報に設定す
る。
In the decoding processing device which performs decoding based on these mixed block information, it is necessary to determine these block information. In the encoding processing device, additional information is set in each block information for these discriminations.

【0153】図15に付加情報を設定したブロック情報
構成例を示す。ブロック情報には、各ブロックに含まれ
る画素の信号レベルの最小値(MIN)、ダイナミック
レンジ(DR)、及び、上述した処理で算出した量子化
コード(Qコード)が含まれる。例えば信号レベルが0
〜255である場合、最小値(MIN)を8ビット、ダ
イナミックレンジ(DR)を8ビット、量子化コード
(Qコード)をk×nビットとして構成することができ
る。ただし、nは量子化ビット数、kはブロック内の画
素数である。さらに、間引き処理の実行の有無を示すビ
ット情報が1ビット、例えば間引き処理あり=[1]、
無し=[0]、さらに、再分割処理の実行の有無を示す
ビット情報が1ビット、再分割あり=[1]、無し=
[0]の各情報が設定される。なお、先に説明したヘッ
ダ情報中のブロック分割情報(図9参照)に基づいてブ
ロック情報中の量子化コードに対応する画素位置は特定
可能であり、ブロック情報毎に再分割処理の実行の有無
を示すビット情報を付加することは必須ではない。
FIG. 15 shows an example of the block information structure in which additional information is set. The block information includes the minimum value (MIN) of the signal level of the pixels included in each block, the dynamic range (DR), and the quantization code (Q code) calculated in the above processing. For example, the signal level is 0
In the case of ˜255, the minimum value (MIN) can be configured as 8 bits, the dynamic range (DR) can be configured as 8 bits, and the quantization code (Q code) can be configured as k × n bits. However, n is the number of quantization bits, and k is the number of pixels in the block. Further, the bit information indicating whether or not the thinning process is executed is 1 bit, for example, thinning process is present = [1],
None = [0], 1 bit of bit information indicating the presence / absence of re-division processing, re-division = [1], none =
Each information of [0] is set. The pixel position corresponding to the quantization code in the block information can be specified based on the block division information (see FIG. 9) in the header information described above, and whether or not the re-division processing is executed for each block information. It is not essential to add the bit information indicating the.

【0154】ブロック分割情報、または付加情報に基づ
いて、間引き処理を実行したブロック、非実行のブロッ
ク、さらに再分割処理を実行したブロック、再分割を実
行していないブロックの判別が可能となる。なお、全く
再分割を実行しない場合は、再分割を示すビット情報は
省略可能であり、また、間引き処理を全く実行しない場
合は、間引きの有無を示すビット情報が省略可能とな
り、これらの場合は、いずれかの1ビットのみの情報を
付加情報として設定する構成としてもよい。
On the basis of the block division information or the additional information, it is possible to discriminate a block that has been subjected to thinning processing, a non-execution block, a block that has been further re-divided, and a block that has not been re-divided. It should be noted that if no re-division is performed, the bit information indicating the re-division can be omitted, and if no thinning processing is performed, the bit information indicating the presence or absence of the thinning can be omitted. Alternatively, any one bit information may be set as the additional information.

【0155】次に復号処理装置の構成について、図16
を参照して説明する。復号処理対象となる符号化データ
の構成は、図16に示す構成を有し、画像の形式、画像
の大きさ、量子化ビット数等の情報からなる画像情報、
ブロック情報に基づく復号データが画像情報のどの位置
の符号化データであるかを判別するためのブロック分割
情報、およびブロック情報から構成される。ブロック情
報は、各ブロックにおける最小値(MIN)、ダイナミ
ックレンジ(DR)、量子化コード(Qコード)からな
るデータであり、さらに、再分割処理の有無、間引き処
理の有無を判定するための付加情報を有する。
Next, regarding the configuration of the decoding processing device, FIG.
Will be described with reference to. The structure of the encoded data to be decoded has the structure shown in FIG. 16, and the image information including information such as the image format, the image size, and the number of quantization bits,
The block information is composed of block division information for discriminating at which position of the image information the decoded data based on the block information is the encoded data. The block information is data including a minimum value (MIN), a dynamic range (DR), and a quantization code (Q code) in each block, and is added to determine whether or not the subdivision processing is performed and whether or not the thinning processing is performed. Have information.

【0156】符号化データ解析部201は、画像情報、
ブロック分割情報を参照し、量子化ビット数、各ブロッ
クの位置情報を取得し、逆量子化処理を実行するブロッ
ク情報を順次解析する。また、ヘッダ情報中のブロック
分割情報(図9参照)または、各ブロック情報の付加情
報から、各ブロックが再分割ブロックであるか、間引き
処理されているか否かを判定する。
The coded data analysis unit 201 uses the image information,
The number of quantization bits and the position information of each block are acquired by referring to the block division information, and the block information for which the inverse quantization process is executed is sequentially analyzed. Further, it is determined from the block division information (see FIG. 9) in the header information or the additional information of each block information whether each block is a re-divided block or has been thinned out.

【0157】最小値取得部203は、ブロック情報中か
ら最小値(MIN)を取得する。DR取得部204は、
ブロック情報中からダイナミックレンジ(DR)を取得
する。復号(逆量子化)処理部205は、ブロック情報
内の量子化コード(Qコード)と、最小値取得部203
の取得した最小値(MIN)、DR取得部204の取得
したダイナミックレンジ(DR)とに基づいて、復号処
理を実行する。復号処理は、復元画素値をx’として、
下式に従ってx’を算出する処理として実行する。
The minimum value acquisition unit 203 acquires the minimum value (MIN) from the block information. The DR acquisition unit 204
The dynamic range (DR) is acquired from the block information. The decoding (inverse quantization) processing unit 205 includes a quantization code (Q code) in the block information and a minimum value acquisition unit 203.
The decoding process is executed based on the acquired minimum value (MIN) and the dynamic range (DR) acquired by the DR acquisition unit 204. In the decoding process, the restored pixel value is x ′,
It is executed as a process of calculating x ′ according to the following formula.

【0158】[0158]

【数5】 x’=(Q+0.5)×Δ+MIN(DR≧2nの場合) x’=(Q+MIN) (DR<2nの場合) ……(数式a3)X ′ = (Q + 0.5) × Δ + MIN (when DR ≧ 2 n ) x ′ = (Q + MIN) (when DR <2 n ) (Equation a3)

【0159】上記式において、x’:復元画素値、MI
N:最小値、Q:量子化コード(Qコード)、Δ:量子
化ステップ幅、n:量子化ビット数、DR:ダイナミッ
クレンジであり、DR、およびMINは、ブロック情報
から取得したダイナミックレンジ(DR)および最小値
(MIN)である。
In the above equation, x ': restored pixel value, MI
N: minimum value, Q: quantization code (Q code), Δ: quantization step width, n: quantization bit number, DR: dynamic range, and DR and MIN are dynamic range (obtained from block information). DR) and the minimum value (MIN).

【0160】このようにして、ブロック情報に基づい
て、各画素の復元画素値x’が求められ、復元画素値に
基づいて画像データが再生される。
In this way, the restored pixel value x'of each pixel is obtained based on the block information, and the image data is reproduced based on the restored pixel value.

【0161】ただし、間引き処理を実行している場合
は、間引きされた画素データの復元を、間引きデータ復
元部206において実行する。間引き処理が実行されて
いるか否かは、ブロック情報中の付加情報によってブロ
ック情報解析部201が解析し、間引きされた情報を格
納したブロック情報の処理である場合にのみ、間引きデ
ータ復元部206における処理を実行する。
However, when the thinning-out processing is being executed, the thinned-out data restoring unit 206 restores the thinned-out pixel data. Whether or not the thinning-out process is executed is performed by the block information analyzing unit 201 based on the additional information in the block information, and only in the case of the block information processing in which the thinned-out information is stored, the thinning-out data restoring unit 206 Execute the process.

【0162】間引きデータ復元部の処理は、先に図11
を参照して説明した通りの処理であり、間引きされた画
素の上下および左右の4画素の画素値の平均値を間引き
画素の画素値として設定する。
The processing of the thinned-out data restoration unit is first described in FIG.
The process is as described with reference to, and the average value of the pixel values of the four pixels above and below and on the left and right of the thinned pixels is set as the pixel value of the thinned pixels.

【0163】間引きされた情報を格納したブロック情報
の処理である場合は、間引きデータ復元部206におけ
る間引きデータ復元処理を実行した後、復元画素値に基
づく画像再生、出力を実行する。
In the case of the block information processing in which the thinned-out information is stored, the thinned-out data restoration unit 206 executes the thinned-out data restoration processing, and then the image reproduction and output based on the restored pixel value are executed.

【0164】ブロック再構成部207は、復元画素のブ
ロック位置、画素位置を判定する処理を実行し、符号化
データに格納された再分割されているか否かの付加情
報、および先に図10を参照して説明したブロック分割
情報に基づいて復元画素のブロック位置、画素位置を判
定する処理を実行する。
The block reconstructing unit 207 executes the process of determining the block position and pixel position of the restored pixel, and the additional information stored in the encoded data as to whether or not the re-division is performed, and FIG. The process of determining the block position and pixel position of the restored pixel based on the block division information described with reference to FIG.

【0165】次に、図17に示すフローチャートを参照
して、本実施例に係る復号処理装置の処理手順について
説明する。
Next, the processing procedure of the decoding processing apparatus according to the present embodiment will be described with reference to the flowchart shown in FIG.

【0166】ステップS601において、復号処理対象
となるブロック情報を含む符号化データを入力する。ス
テップS602では、入力ブロック情報から、各ブロッ
クに対応して設定された最小値(MIN)、ダイナミッ
クレンジ(DR)の各値を取得し、ステップS603に
おいて、ブロック情報から取得する量子化コード(Qコ
ード)と、クラス情報テーブルから取得した最小値(M
IN)、ダイナミックレンジ(DR)とに基づいて、復
号処理を実行する。復号処理は、先に説明した(数式a
3)に従って復元画素値x’を算出する処理として実行
される。
In step S601, encoded data including block information to be decoded is input. In step S602, the minimum value (MIN) and the dynamic range (DR) values set for each block are acquired from the input block information, and in step S603, the quantization code (Q) acquired from the block information is acquired. Code) and the minimum value (M
IN) and the dynamic range (DR), and the decoding process is executed. The decoding process is described above (formula a
This is executed as a process of calculating the restored pixel value x ′ according to 3).

【0167】次に、ステップS604において、間引き
処理が実行されたデータであるか否かが判定される。こ
れはブロック情報中の付加情報(図15、図16参照)
に基づいて実行される。間引き処理のなされたブロック
情報でない場合は、ステップS603の復号処理におい
て復号した画素がブロックに含まれる全画素であり、ス
テップS606に進む。
Next, in step S604, it is determined whether or not the data has been thinned out. This is additional information in the block information (see FIGS. 15 and 16).
It is executed based on. If the block information has not been thinned out, the pixels decoded in the decoding processing in step S603 are all the pixels included in the block, and the flow advances to step S606.

【0168】ステップS604において、ブロック情報
中の付加情報に基づいて間引き処理を実行していると判
定した場合は、ステップS605において、間引きデー
タ復元部が間引きされた画素データの復元処理を実行す
る。すなわち、間引きされた画素の上下および左右の4
画素の画素値の平均値を間引き画素の画素値として設定
する。
If it is determined in step S604 that the thinning-out process is being executed based on the additional information in the block information, in step S605 the thinning-out data restoring unit executes the process of restoring the thinned-out pixel data. That is, the four pixels above and below and to the left and right of the thinned pixels
The average value of the pixel values of the pixels is set as the pixel value of the thinned pixel.

【0169】ステップS606では、、再分割されてい
るか否かの付加情報、および先に図10を参照して説明
したブロック分割情報に基づいて、各ブロックの位置、
復元画素の位置を決定し、ステップS607において、
ブロック内画素値の出力を実行する。
In step S606, the position of each block is determined based on the additional information indicating whether or not the redivision has been performed and the block division information described above with reference to FIG.
The position of the restored pixel is determined, and in step S607,
Output the pixel value in the block.

【0170】上述したように、本発明の構成では、AD
RCによる符号化を実行する際、ブロックサイズを固定
とせず、再分割処理を行なって符号化を行なう構成とし
たので、ダイナミックレンジの大きなブロックを減少さ
せることが可能となり、符号化、復号化に伴う復元画素
と、元画素の差異を低減させることができ、画質の劣化
を防止することが可能となる。
As described above, in the configuration of the present invention, AD
Since the block size is not fixed when performing the encoding by RC and the encoding is performed by performing the re-division processing, it is possible to reduce the blocks having a large dynamic range, and the encoding and decoding are performed. The difference between the restored pixel and the original pixel that accompanies it can be reduced, and the deterioration of the image quality can be prevented.

【0171】また、本発明の構成では、間引き処理を実
行することにより、符号化データのデータ量削減が可能
となり、圧縮率を向上させることが可能となる。
Further, in the configuration of the present invention, by executing the thinning-out process, the data amount of the encoded data can be reduced and the compression rate can be improved.

【0172】また、再分割処理対象ブロックの選定、お
よび間引き処理対象ブロックの選定を各ブロックのダイ
ナミックレンジに基づいて判定する構成としたので、効
率的な処理が可能となり、また良好な画質を保持するこ
とが可能となる。
Further, since the selection of the subdivision processing target block and the selection of the thinning processing target block are made based on the dynamic range of each block, efficient processing is possible and good image quality is maintained. It becomes possible to do.

【0173】以上、特定の実施例を参照しながら、本発
明について詳解してきた。しかしながら、本発明の要旨
を逸脱しない範囲で当業者が該実施例の修正や代用を成
し得ることは自明である。すなわち、例示という形態で
本発明を開示してきたのであり、限定的に解釈されるべ
きではない。本発明の要旨を判断するためには、冒頭に
記載した特許請求の範囲の欄を参酌すべきである。
The present invention has been described in detail above with reference to the specific embodiments. However, it is obvious that those skilled in the art can modify or substitute the embodiments without departing from the scope of the present invention. That is, the present invention has been disclosed in the form of exemplification, and should not be limitedly interpreted. In order to determine the gist of the present invention, the section of the claims described at the beginning should be taken into consideration.

【0174】なお、明細書中において説明した一連の処
理はハードウェア、またはソフトウェア、あるいは両者
の複合構成によって実行することが可能である。ソフト
ウェアによる処理を実行する場合は、処理シーケンスを
記録したプログラムを、専用のハードウェアに組み込ま
れたコンピュータ内のメモリにインストールして実行さ
せるか、あるいは、各種処理が実行可能な汎用コンピュ
ータにプログラムをインストールして実行させることが
可能である。
The series of processes described in the specification can be executed by hardware, software, or a combined configuration of both. When executing the processing by software, the program recording the processing sequence is installed in the memory in the computer incorporated in the dedicated hardware and executed, or the program is stored in a general-purpose computer capable of executing various processing. It can be installed and run.

【0175】例えば、プログラムは記録媒体としてのハ
ードディスクやROM(Read OnlyMemory)に予め記録し
ておくことができる。あるいは、プログラムはフレキシ
ブルディスク、CD−ROM(Compact Disc Read Only
Memory),MO(Magneto optical)ディスク,DVD(Dig
ital Versatile Disc)、磁気ディスク、半導体メモリな
どのリムーバブル記録媒体に、一時的あるいは永続的に
格納(記録)しておくことができる。このようなリムー
バブル記録媒体は、いわゆるパッケージソフトウエアと
して提供することができる。
For example, the program can be recorded in advance in a hard disk or a ROM (Read Only Memory) as a recording medium. Alternatively, the program may be a flexible disk or a CD-ROM (Compact Disc Read Only).
Memory), MO (Magneto optical) disk, DVD (Dig
Ital Versatile Disc), magnetic disk, semiconductor memory, or other removable recording medium can be temporarily (or permanently) stored (recorded). Such a removable recording medium can be provided as so-called package software.

【0176】なお、プログラムは、上述したようなリム
ーバブル記録媒体からコンピュータにインストールする
他、ダウンロードサイトから、コンピュータに無線転送
したり、LAN(Local Area Network)、インターネット
といったネットワークを介して、コンピュータに有線で
転送し、コンピュータでは、そのようにして転送されて
くるプログラムを受信し、内蔵するハードディスク等の
記録媒体にインストールすることができる。
The program is installed in the computer from the removable recording medium as described above, is wirelessly transferred from the download site to the computer, or is wired to the computer via a network such as LAN (Local Area Network) or the Internet. Then, the computer can receive the program thus transferred and install it in a recording medium such as a built-in hard disk.

【0177】なお、明細書に記載された各種の処理は、
記載に従って時系列に実行されるのみならず、処理を実
行する装置の処理能力あるいは必要に応じて並列的にあ
るいは個別に実行されてもよい。
The various processes described in the specification are
The processing may be executed not only in time series according to the description, but also in parallel or individually according to the processing capability of the device that executes the processing or the need.

【0178】[0178]

【発明の効果】以上説明してきたように、本発明の構成
によれば、ADRCによる符号化処理または復号処理対
象のブロックサイズを固定とせず、各ブロックのダイナ
ミックレンジ、ブロックサイズ、再分割した際のダイナ
ミックレンジの差異に基づいて、再分割ブロックを選択
する構成としたので、最適な再分割ブロックを効率的に
選択することが可能となり、再分割処理により、ブロッ
ク毎のダイナミックレンジを減少させ、量子化ステップ
幅を減少させることが可能となり、量子化誤差の低減、
画質の向上が実現される。
As described above, according to the configuration of the present invention, when the block size of the encoding process or the decoding process by ADRC is not fixed, the dynamic range of each block, the block size, and the re-division are performed. Since the re-divided block is selected based on the difference in the dynamic range of, it is possible to efficiently select the optimum re-divided block, and the re-division processing reduces the dynamic range of each block. It is possible to reduce the quantization step width, reduce the quantization error,
Improvement of image quality is realized.

【0179】さらに、本発明の構成によれば、ダイナミ
ックレンジの小さいブロックを選択して、ブロック内の
チェック状の画素の間引き処理を実行することにより、
符号化データのデータ量削減が可能となり、圧縮率を向
上させることが可能となる。間引き処理対象ブロックの
選定は、各ブロックのダイナミックレンジに基づいて判
定する構成としたので、効率的な処理が可能となり、ま
た良好な画質を保持することが可能となる。
Further, according to the configuration of the present invention, by selecting a block having a small dynamic range and executing the thinning process of the check-like pixels in the block,
The amount of encoded data can be reduced, and the compression rate can be improved. Since the block to be thinned out is selected based on the dynamic range of each block, efficient processing is possible and good image quality can be maintained.

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

【図1】本発明の符号化処理装置の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of an encoding processing device of the present invention.

【図2】本発明のブロック分割処理を説明する図であ
る。
FIG. 2 is a diagram illustrating block division processing of the present invention.

【図3】本発明の符号化処理装置のブロック分割部の構
成図である。
FIG. 3 is a configuration diagram of a block division unit of the encoding processing device of the present invention.

【図4】本発明のブロック分割処理フローを示す図であ
る。
FIG. 4 is a diagram showing a block division processing flow of the present invention.

【図5】本発明の構成に係るブロックリストの構成例を
示す図である。
FIG. 5 is a diagram showing a configuration example of a block list according to the configuration of the present invention.

【図6】本発明のブロック分割対象となる注目ブロック
の決定処理を説明するフロー図である。
FIG. 6 is a flowchart illustrating a process of determining a block of interest to be divided into blocks according to the present invention.

【図7】本発明の符号化処理装置における処理を説明す
るフロー図である。
FIG. 7 is a flowchart illustrating processing in the encoding processing device of the present invention.

【図8】本発明の符号化処理装置における可変長ADR
C符号化処理の量子化コード生成処理例を示す図であ
る。
FIG. 8 is a variable length ADR in the encoding processing device of the present invention.
It is a figure which shows the quantization code generation process example of C encoding process.

【図9】本発明の構成に係る符号化データ構成例を示す
図である。
FIG. 9 is a diagram showing an example of a coded data structure according to the structure of the present invention.

【図10】本発明の構成に係る符号化データ中のブロッ
ク分割情報を説明する図である。
FIG. 10 is a diagram illustrating block division information in encoded data according to the configuration of the present invention.

【図11】本発明における間引き処理および復元処理を
説明する図である。
FIG. 11 is a diagram illustrating thinning processing and restoration processing according to the present invention.

【図12】本発明における間引き処理対象ブロックの選
択処理を説明するフロー図である。
FIG. 12 is a flowchart illustrating a process of selecting a block to be thinned out according to the present invention.

【図13】本発明の符号化処理における間引き処理、再
分割処理対象ブロック選定処理を説明するフロー図であ
る。
FIG. 13 is a flowchart illustrating a thinning process and a redivision process target block selection process in the encoding process of the present invention.

【図14】本発明の符号化処理における間引き処理、再
分割処理対象ブロック選定処理を説明するフロー図であ
る。
FIG. 14 is a flowchart illustrating thinning processing and redivision processing target block selection processing in the encoding processing of the present invention.

【図15】本発明の構成に係る符号化データ構成例を示
す図である。
FIG. 15 is a diagram showing an example of a coded data structure according to the structure of the present invention.

【図16】本発明の構成に復号処理装置構成例を示すブ
ロック図である。
FIG. 16 is a block diagram showing a configuration example of a decoding processing device in the configuration of the present invention.

【図17】本発明の構成に係る復号処理手順を説明する
フロー図である。
FIG. 17 is a flowchart illustrating a decoding processing procedure according to the configuration of the present invention.

【図18】ADRC処理の概要を説明する図である。FIG. 18 is a diagram illustrating an outline of ADRC processing.

【図19】ADRC処理における量子化処理の概要を説
明する図である。
FIG. 19 is a diagram illustrating an outline of quantization processing in ADRC processing.

【図20】ADRC処理において生成するブロック情報
の構成を説明する図である。
FIG. 20 is a diagram illustrating a configuration of block information generated in ADRC processing.

【図21】固定長ADRC処理の手順を説明するフロー
図である。
FIG. 21 is a flowchart illustrating a procedure of fixed length ADRC processing.

【図22】可変長ADRC処理の手順を説明するフロー
図である。
FIG. 22 is a flowchart illustrating a procedure of variable length ADRC processing.

【図23】従来のブロック再分割処理を伴うADRC処
理の手順を説明するフロー図である。
FIG. 23 is a flowchart illustrating a procedure of a conventional ADRC process involving block re-division processing.

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

101 ブロック分割部 102 DR,最小値(MIN)検出部 103 量子化処理部 104 間引き処理部 121 ブロック分割処理部 122 DR,ブロックサイズ判定処理部 123 再分割ブロック選択部 201 符号化データ解析部 203 最小値(MIN)取得部 204 DR取得部 205 復号(逆量子化)処理部 206 間引きデータ復元部 207 ブロック再構成部 801 画像データ 802 ブロック 803 信号レベルデータ 101 block division unit 102 DR, minimum value (MIN) detector 103 Quantization processing unit 104 Thinning processing unit 121 block division processing unit 122 DR, block size determination processing unit 123 Subdivision block selection unit 201 coded data analysis unit 203 Minimum value (MIN) acquisition unit 204 DR acquisition unit 205 Decoding (Dequantization) Processing Unit 206 Thinned-out data restoration unit 207 Block reconstruction unit 801 image data 802 blocks 803 Signal level data

フロントページの続き (72)発明者 池田 優 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 市川 勉 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 服部 正明 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 木村 裕人 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 福士 岳歩 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 山元 左近 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5C059 LB07 LC09 MA28 MC11 UA02 UA05 UA39 5J064 AA02 BB04 BB12 BC16 BC22 BC25 BC27 BD01 Continued front page    (72) Inventor Yu Ikeda             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation (72) Inventor Tsutomu Ichikawa             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation (72) Inventor Masaaki Hattori             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation (72) Inventor Hiroto Kimura             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation (72) Inventor Fukushi Takeho             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation (72) Inventor Sakon Yamamoto             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation F-term (reference) 5C059 LB07 LC09 MA28 MC11 UA02                       UA05 UA39                 5J064 AA02 BB04 BB12 BC16 BC22                       BC25 BC27 BD01

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】画像データの符号化処理を実行する符号化
処理装置であり、 画像を構成する分割画素領域をブロックとして設定する
ブロック分割手段と、 前記ブロック分割手段において設定されたブロック単位
で、ブロックに対応して設定されるダイナミックレンジ
に基づく量子化処理を実行する量子化処理手段と、 を有し、 前記ブロック分割手段は、 設定済みのブロックについて、ダイナミックレンジの大
きなブロックから順に選択し、選択ブロックの再分割に
よるブロック設定処理を行なう構成であることを特徴と
する符号化処理装置。
1. A coding processing device for executing coding processing of image data, comprising block dividing means for setting a divided pixel area forming an image as a block, and a block unit set in the block dividing means, Quantization processing means for executing a quantization process based on a dynamic range set corresponding to the block, and, the block dividing means, for the set block, sequentially from a block with a large dynamic range, An encoding processing device having a configuration for performing block setting processing by re-dividing a selected block.
【請求項2】前記ブロック分割手段は、下記判定条件
(1)乃至(3)、 (1)ダイナミックレンジが大、 (2)ブロックサイズが大、 (3)再分割前のブロックにおけるダイナミックレンジ
と再分割後のブロックのダイナミックレンジ最大値との
差分が大、 の各判定条件について、判定条件(1)、(2)、
(3)の優先順に判定処理を実行して、再分割処理対象
ブロックを選定する処理を実行する構成であることを特
徴とする請求項1に記載の符号化処理装置。
2. The block division means has the following determination conditions (1) to (3), (1) a large dynamic range, (2) a large block size, and (3) a dynamic range in a block before subdivision. For each judgment condition that the difference from the maximum value of the dynamic range of the block after subdivision is large, the judgment conditions (1), (2),
The encoding processing apparatus according to claim 1, wherein the determination processing is executed in the priority order of (3), and processing for selecting a redivision processing target block is executed.
【請求項3】前記ブロック分割手段は、 符号化対象画像を4分割し、該4分割ブロックを初期設
定ブロックとして、前記判定条件(1)、(2)、
(3)の優先順に判定処理を実行して、再分割処理対象
ブロックを選定する処理を実行する構成であることを特
徴とする請求項2に記載の符号化処理装置。
3. The block dividing means divides an image to be encoded into four, and sets the four divided blocks as an initial setting block, and the determination conditions (1), (2),
The encoding processing apparatus according to claim 2, wherein the determination processing is executed in the priority order of (3), and the processing for selecting a redivision processing target block is executed.
【請求項4】前記符号化処理装置は、さらに間引き処理
手段を有し、 前記間引き処理手段は、 ブロック内の画素をチェック状に間引く間引き処理を実
行し、 前記量子化処理手段は、前記間引き処理手段の間引き処
理後の残留画素についての量子化処理を実行する構成で
あることを特徴とする請求項1に記載の符号化処理装
置。
4. The encoding processing device further includes thinning processing means, the thinning processing means executes thinning processing for thinning pixels in a block in a check pattern, and the quantization processing means uses the thinning processing. The encoding processing apparatus according to claim 1, wherein the encoding processing apparatus is configured to execute a quantization processing for the residual pixels after the thinning processing of the processing means.
【請求項5】前記符号化処理装置は、さらに間引き処理
手段を有し、 前記間引き処理手段は、 ブロックのダイナミックレンジが予め定めた閾値以下の
ブロックについて、ブロック内の画素をチェック状に間
引く間引き処理を実行する構成であることを特徴とする
請求項1に記載の符号化処理装置。
5. The encoding processing apparatus further comprises thinning processing means, wherein the thinning processing means thins out pixels in blocks in a check pattern for blocks whose dynamic range is equal to or less than a predetermined threshold value. The encoding processing device according to claim 1, wherein the encoding processing device is configured to execute processing.
【請求項6】前記ブロック分割手段は、 予定圧縮率に基づく、再分割対象ブロック選定処理を実
行する構成を有し、 予定圧縮率から算出される符号化データとしての許容デ
ータ量、および再分割処理により増加するデータ量に基
づいて、再分割処理ブロック許容数を算出し、該算出数
に基づいて、ダイナミックレンジの大きいブロックを順
に再分割対象ブロックとして選定する構成であることを
特徴とする請求項1に記載の符号化処理装置。
6. The block dividing means has a configuration for executing a redivision target block selection process based on a planned compression ratio, an allowable data amount as encoded data calculated from the planned compression ratio, and a redivision. It is configured such that a permissible number of subdivision processing blocks is calculated based on the amount of data increased by processing, and blocks having a large dynamic range are sequentially selected as the subdivision target blocks based on the calculated number. The encoding processing device according to Item 1.
【請求項7】前記量子化処理手段の適用する量子化処理
は、 ADRC(Adaptive Dynamic Range Coding)に基づく
処理を実行し、 前記ブロック分割手段の設定した各ブロックの画素値の
最小値(MIN)、およびダイナミックレンジ(DR)
に基づいて量子化コード(Qコード)を算出する処理を
実行する構成であることを特徴とする請求項1に記載の
符号化処理装置。
7. The quantization processing applied by the quantization processing means executes processing based on ADRC (Adaptive Dynamic Range Coding), and a minimum pixel value (MIN) of pixel values of each block set by the block dividing means. , And dynamic range (DR)
The encoding processing device according to claim 1, wherein the encoding processing device is configured to execute a process of calculating a quantized code (Q code) based on.
【請求項8】前記符号化処理装置は、 各ブロックの画素値の最小値(MIN)、およびダイナ
ミックレンジ(DR)、量子化コード(Qコード)から
なるブロック情報と、前記ブロック分割手段の設定した
ブロック位置を示すブロック分割情報とを有する符号化
データを出力する構成であることを特徴とする請求項1
に記載の符号化処理装置。
8. The encoding processing device sets block information including block information including a minimum value (MIN) of pixel values of each block, a dynamic range (DR), and a quantization code (Q code), and the block dividing means. 2. The configuration is such that encoded data having block division information indicating a selected block position is output.
The encoding processing device according to.
【請求項9】前記符号化処理装置は、 各ブロックの画素値の最小値(MIN)、およびダイナ
ミックレンジ(DR)、量子化コード(Qコード)から
なるブロック情報と、各ブロック内の画素間引きの実行
有無を示す付加情報とを有する符号化データを出力する
構成であることを特徴とする請求項1に記載の符号化処
理装置。
9. The encoding processing device comprises block information including a minimum value (MIN) of pixel values of each block, a dynamic range (DR), and a quantization code (Q code), and pixel thinning in each block. The coding processing device according to claim 1, wherein the coding data is configured to output coded data having additional information indicating whether or not to execute.
【請求項10】前記符号化処理装置は、 各ブロックの画素値の最小値(MIN)、およびダイナ
ミックレンジ(DR)、量子化コード(Qコード)から
なるブロック情報と、ブロックが再分割されたブロック
であるか否かを示す付加情報とを有する符号化データを
出力する構成であることを特徴とする請求項1に記載の
符号化処理装置。
10. The encoding processing device re-divides a block from block information including a minimum pixel value (MIN) of each block, a dynamic range (DR), and a quantization code (Q code). The encoding processing device according to claim 1, wherein the encoding processing device is configured to output encoded data having additional information indicating whether the block is a block or not.
【請求項11】符号化画像データの復号処理を実行する
復号処理装置であり、 各ブロック単位の符号化データとしてのブロック情報に
格納された最小値(MIN)、およびダイナミックレン
ジ(DR)、および各画素に対応する量子化コードに基
づいて、各ブロック単位の画素値復号処理を実行する復
号処理手段と、前記符号化データ内に格納されたブロッ
ク再分割情報に基づいて復元ブロックの位置を識別し、
ブロック再構成を実行するブロック再構成部と、 を有することを特徴とする復号処理装置。
11. A decoding processing device for executing a decoding process of coded image data, comprising a minimum value (MIN) and a dynamic range (DR) stored in block information as coded data of each block. Decoding processing means for executing pixel value decoding processing for each block based on the quantization code corresponding to each pixel, and identifying the position of the restored block based on the block re-division information stored in the encoded data. Then
A block processing unit for executing block reconstruction, and a decoding processing device.
【請求項12】前記復号処理手段の適用する復号処理
は、ADRC(Adaptive Dynamic RangeCoding)に対応
する逆量子化処理であり、前記ブロックに対応する最小
値(MIN)、およびダイナミックレンジ(DR)に基
づいて復元画素値を算出する処理を実行する構成である
ことを特徴とする請求項11に記載の復号処理装置。
12. A decoding process applied by the decoding processing means is a dequantization process corresponding to ADRC (Adaptive Dynamic Range Coding), and a minimum value (MIN) and a dynamic range (DR) corresponding to the block are obtained. The decoding processing device according to claim 11, wherein the decoding processing device is configured to execute a process of calculating a restored pixel value based on the decoding pixel value.
【請求項13】前記復号処理装置は、さらに、 前記ブロック情報に格納された量子化コードが、ブロッ
ク内の全画素対応データではなく、間引きされたデータ
である場合の間引きデータ復元処理を実行する間引きデ
ータ復元手段を有し、 前記間引きデータ復元手段は、 前記復号処理手段が量子化コードに基づいて復号した複
数の復元画素値の平均値を、間引き画素データの画素値
として設定する処理を実行する構成であることを特徴と
する請求項11に記載の復号処理装置。
13. The decoding processing device further executes decimation data restoration processing when the quantization code stored in the block information is not the data corresponding to all pixels in the block but decimation data. And a decimation data decompression unit, wherein the decimation data decompression unit executes a process of setting an average value of a plurality of decompression pixel values decoded by the decoding processing unit based on a quantization code as a pixel value of the decimation pixel data. The decoding processing device according to claim 11, wherein the decoding processing device has the following configuration.
【請求項14】画像データの符号化処理を実行する符号
化処理方法であり、 画像を構成する分割画素領域をブロックとして設定する
ブロック分割ステップと、 前記ブロック分割ステップにおいて設定されたブロック
単位で、ブロックに対応して設定されるダイナミックレ
ンジに基づく量子化処理を実行する量子化処理ステップ
と、 を有し、 前記ブロック分割ステップは、 設定済みのブロックについて、ダイナミックレンジの大
きなブロックから順に選択し、選択ブロックの再分割に
よるブロック設定処理を行なうことを特徴とする符号化
処理方法。
14. A coding processing method for executing coding processing of image data, comprising a block dividing step of setting a divided pixel area forming an image as a block, and a block unit set in the block dividing step, Quantization processing step for executing a quantization process based on a dynamic range set corresponding to the block, and, the block division step, for the set block, select from a block with a large dynamic range in order, An encoding processing method characterized in that block setting processing is performed by re-dividing a selected block.
【請求項15】符号化画像データの復号処理を実行する
復号処理方法であり、 各ブロック単位の符号化データとしてのブロック情報に
格納された最小値(MIN)、およびダイナミックレン
ジ(DR)、および各画素に対応する量子化コードに基
づいて、各ブロック単位の画素値復号処理を実行する復
号処理ステップと、 前記符号化データ内に格納されたブロック再分割情報に
基づいて復元ブロックの位置を識別し、ブロック再構成
を実行するブロック再構成ステップと、 を有することを特徴とする復号処理方法。
15. A decoding processing method for executing decoding processing of coded image data, comprising a minimum value (MIN) and a dynamic range (DR) stored in block information as coded data in units of blocks. A decoding processing step of executing pixel value decoding processing for each block based on the quantization code corresponding to each pixel, and identifying the position of the restored block based on the block re-division information stored in the encoded data And a block reconstructing step for executing block reconstructing, and a decoding processing method.
【請求項16】画像データの符号化処理を実行する符号
化処理の実行プログラムとしてのコンピュータ・プログ
ラムであって、 画像を構成する分割画素領域をブロックとして設定する
ブロック分割ステップと、 前記ブロック分割ステップにおいて設定されたブロック
単位で、ブロックに対応して設定されるダイナミックレ
ンジに基づく量子化処理を実行する量子化処理ステップ
と、 を有し、 前記ブロック分割ステップは、さらに、 設定済みのブロックについて、ダイナミックレンジの大
きなブロックから順に選択し、選択ブロックの再分割に
よるブロック設定処理を行なうステップを、 を有することを特徴とするコンピュータ・プログラム。
16. A computer program as an execution program of an encoding process for executing an encoding process of image data, the block dividing step of setting divided pixel regions forming an image as a block, and the block dividing step. In a block unit set in, a quantization processing step for performing a quantization process based on a dynamic range set corresponding to the block, and, the block division step, further, for the set block, A computer program comprising the steps of: selecting blocks in order of increasing dynamic range and performing block setting processing by re-dividing the selected block.
【請求項17】符号化画像データの復号処理を実行する
復号処理の実行プログラムとしてのコンピュータ・プロ
グラムであって、 各ブロック単位の符号化データとしてのブロック情報に
格納された最小値(MIN)、およびダイナミックレン
ジ(DR)、および各画素に対応する量子化コードに基
づいて、各ブロック単位の画素値復号処理を実行する復
号処理ステップと、 前記符号化データ内に格納されたブロック再分割情報に
基づいて復元ブロックの位置を識別し、ブロック再構成
を実行するブロック再構成ステップと、 を有することを特徴とするコンピュータ・プログラム。
17. A computer program as an execution program of a decoding process for executing a decoding process of encoded image data, comprising a minimum value (MIN) stored in block information as encoded data of each block unit, And a dynamic range (DR), and a decoding processing step for executing pixel value decoding processing in each block based on a quantization code corresponding to each pixel, and a block re-division information stored in the encoded data. A block reconstructing step of identifying the position of the restored block based on the block and executing the block reconstructing, and a computer program.
【請求項18】画像データの符号化処理をコンピュータ
・システム上で実行せしめるコンピュータ・プログラム
を提供するプログラム記録媒体であって、前記コンピュ
ータ・プログラムは、 画像を構成する分割画素領域をブロックとして設定する
ブロック分割ステップと、 前記ブロック分割ステップにおいて設定されたブロック
単位で、ブロックに対応して設定されるダイナミックレ
ンジに基づく量子化処理を実行する量子化処理ステップ
と、 を有し、 前記ブロック分割ステップは、さらに、 設定済みのブロックについて、ダイナミックレンジの大
きなブロックから順に選択し、選択ブロックの再分割に
よるブロック設定処理を行なうステップを、 を具備することを特徴とするプログラム記録媒体。
18. A program recording medium for providing a computer program for causing an image data encoding process to be executed on a computer system, wherein the computer program sets a divided pixel area forming an image as a block. A block division step, and a quantization processing step that executes a quantization process based on a dynamic range set corresponding to the block in block units set in the block division step, wherein the block division step is Further, the program recording medium is characterized by further comprising a step of: selecting a set block in order from a block having a large dynamic range and performing block setting processing by re-dividing the selected block.
【請求項19】符号化画像データの復号処理をコンピュ
ータ・システム上で実行せしめるコンピュータ・プログ
ラムを提供するプログラム記録媒体であって、前記コン
ピュータ・プログラムは、 各ブロック単位の符号化データとしてのブロック情報に
格納された最小値(MIN)、およびダイナミックレン
ジ(DR)、および各画素に対応する量子化コードに基
づいて、各ブロック単位の画素値復号処理を実行する復
号処理ステップと、 前記符号化データ内に格納されたブロック再分割情報に
基づいて復元ブロックの位置を識別し、ブロック再構成
を実行するブロック再構成ステップと、 を具備することを特徴とするプログラム記録媒体。
19. A program recording medium for providing a computer program for causing a decoding process of encoded image data to be executed on a computer system, wherein the computer program is block information as encoded data of each block unit. A decoding process step of executing a pixel value decoding process for each block based on a minimum value (MIN) and a dynamic range (DR) stored in, and a quantization code corresponding to each pixel; A block reconfiguration step of identifying the position of a restored block based on the block repartition information stored in the block and executing the block reconfiguration.
JP2002040949A 2002-02-19 2002-02-19 Encoding processing device, decoding processing device and method, and computer program Expired - Fee Related JP4039076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002040949A JP4039076B2 (en) 2002-02-19 2002-02-19 Encoding processing device, decoding processing device and method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002040949A JP4039076B2 (en) 2002-02-19 2002-02-19 Encoding processing device, decoding processing device and method, and computer program

Publications (2)

Publication Number Publication Date
JP2003244696A true JP2003244696A (en) 2003-08-29
JP4039076B2 JP4039076B2 (en) 2008-01-30

Family

ID=27781482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002040949A Expired - Fee Related JP4039076B2 (en) 2002-02-19 2002-02-19 Encoding processing device, decoding processing device and method, and computer program

Country Status (1)

Country Link
JP (1) JP4039076B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008294689A (en) * 2007-05-24 2008-12-04 Sony Corp Device, circuit and method, for imaging
US20150016521A1 (en) * 2013-05-27 2015-01-15 Microsoft Corporation Video encoder for images
US10038917B2 (en) 2015-06-12 2018-07-31 Microsoft Technology Licensing, Llc Search strategies for intra-picture prediction modes
US10136140B2 (en) 2014-03-17 2018-11-20 Microsoft Technology Licensing, Llc Encoder-side decisions for screen content encoding
US10136132B2 (en) 2015-07-21 2018-11-20 Microsoft Technology Licensing, Llc Adaptive skip or zero block detection combined with transform size decision
US10924743B2 (en) 2015-02-06 2021-02-16 Microsoft Technology Licensing, Llc Skipping evaluation stages during media encoding

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6755518B2 (en) 2001-08-30 2004-06-29 L&P Property Management Company Method and apparatus for ink jet printing on rigid panels

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008294689A (en) * 2007-05-24 2008-12-04 Sony Corp Device, circuit and method, for imaging
US20150016521A1 (en) * 2013-05-27 2015-01-15 Microsoft Corporation Video encoder for images
US10003792B2 (en) * 2013-05-27 2018-06-19 Microsoft Technology Licensing, Llc Video encoder for images
US10136140B2 (en) 2014-03-17 2018-11-20 Microsoft Technology Licensing, Llc Encoder-side decisions for screen content encoding
US10924743B2 (en) 2015-02-06 2021-02-16 Microsoft Technology Licensing, Llc Skipping evaluation stages during media encoding
US10038917B2 (en) 2015-06-12 2018-07-31 Microsoft Technology Licensing, Llc Search strategies for intra-picture prediction modes
US10136132B2 (en) 2015-07-21 2018-11-20 Microsoft Technology Licensing, Llc Adaptive skip or zero block detection combined with transform size decision

Also Published As

Publication number Publication date
JP4039076B2 (en) 2008-01-30

Similar Documents

Publication Publication Date Title
KR101633443B1 (en) Luminance evaluation
JP5143120B2 (en) Image encoding method and apparatus, decoding method and apparatus
JP2007288785A (en) Image data spatial prediction apparatus and method, encoding apparatus and method using the same, image data spatial prediction compensation apparatus and method, and decoding apparatus and method using the same
CN104904220B (en) Encoding and decoding device and encoding and decoding method for depth image
EP2314073B1 (en) Selection of watermarks for the watermarking of compressed video
JP2009530958A (en) Image encoding method and apparatus, decoding method and apparatus
KR20130062109A (en) Method and apparatus for encoding and decoding image
JP4762938B2 (en) Data embedding device, data extracting device, data embedding method, and data extracting method
JP6065613B2 (en) Video encoding device
JP2012235407A (en) Image processing apparatus and image processing method
JP2003244696A (en) Encoding processor, decoding processor, method therefor and computer program
US7925019B2 (en) Method and apparatus for converting data, method and apparatus for inverse converting data, and recording medium
US10728470B2 (en) Image processing device, image processing method, and non-transitory computer readable medium storing image processing program
JP4995171B2 (en) Video encoding apparatus and method using visual characteristics
KR101073938B1 (en) Method for encoding image using estimation of color space
JP4622264B2 (en) Motion vector detection apparatus, motion vector detection method, and computer program
JP4016662B2 (en) Encoding processing device, decoding processing device and method, and computer program
JP4622265B2 (en) Motion vector detection device, motion vector detection method, and program
KR101979379B1 (en) Method and apparatus for encoding image, and method and apparatus for decoding image
JP2007088687A (en) Image processing apparatus, image processing method and program thereof
JP2006121460A (en) Method for embedding electronic watermark and method for extracting the same
JP2003259368A (en) Encoding apparatus, decoding apparatus and method, and computer program
JP2003259393A (en) Encoding apparatus, decoding apparatus, method, and computer program
JP4061917B2 (en) Encoding processing device, decoding processing device and method, and computer program
JP6080077B2 (en) Image encoding method and image encoding apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070724

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070919

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071029

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

Free format text: PAYMENT UNTIL: 20101116

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101116

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111116

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121116

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131116

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees