JP2000333175A - Image coder - Google Patents

Image coder

Info

Publication number
JP2000333175A
JP2000333175A JP14108099A JP14108099A JP2000333175A JP 2000333175 A JP2000333175 A JP 2000333175A JP 14108099 A JP14108099 A JP 14108099A JP 14108099 A JP14108099 A JP 14108099A JP 2000333175 A JP2000333175 A JP 2000333175A
Authority
JP
Japan
Prior art keywords
discrete cosine
image
cosine transform
component
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14108099A
Other languages
Japanese (ja)
Inventor
Hideyuki Terane
秀幸 寺根
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP14108099A priority Critical patent/JP2000333175A/en
Publication of JP2000333175A publication Critical patent/JP2000333175A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image coder that can effectively compress a data quantity and reliably suppress visual deterioration of a reproduced image. SOLUTION: The image coder is provided with a data processing means consisting of a data processing circuit 9 that detects whether the pixel block of image data includes many high frequency components and performs control as to whether the AC coefficient of a preset part in a quantized discrete cosine transform coefficient Ruv is to be forcibly replaced with zero in response to a replacement control signal. When the data processing means discriminates that the high frequency components of the pixel block of the image data are comparatively small, the data of the part are abandoned by replacing some non-zero AC coefficients in the quantized discrete cosine transform coefficient Ruv by zero by the replacement control signal so as to reduce the compression data quantity, and when the data processing means discriminates that the high frequency components of the pixel block of the image data are comparatively large, the AC coefficient in the quantized discrete cosine transform coefficient Ruv is outputted as it is.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、画像符号化装置
における量子化後の離散コサイン変換(DCT)係数の
有効係数値を効果的に処理する画像符号量制御に関する
ものである。特に、JPEG(Joint Photo
graphic Expert Group)方式を用
いたデータ圧縮装置において、再生画像の視覚的劣化を
生じさせにくい高周波成分を省略することにより、効果
的なデータ圧縮を行える画像符号量制御に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image code amount control for effectively processing an effective coefficient value of a quantized discrete cosine transform (DCT) coefficient in an image encoding device. In particular, JPEG (Joint Photo)
The present invention relates to an image code amount control capable of performing effective data compression by omitting a high-frequency component that does not easily cause visual deterioration of a reproduced image in a data compression device using a graphic expert group (Graphic Expert Group) method.

【0002】[0002]

【従来の技術】従来、JPEG方式を用いたデータ圧縮
装置においては、符号量を小さくするためにハフマン符
号化が行われている。しかしながら、ハフマン符号化は
可変長の符号化方式であるために、画像の種類によって
符号化量が異なるという性質を有する。すなわち、一色
の壁や空等は大きな圧縮比が得られるが、変化の大きな
画像は大きな圧縮比が得られないことがある。したがっ
て、1枚のディスクに何枚の画像データが収容できるか
は画像によって変化するために、あるディスクでは30
枚の画像が収容でき、他のディスクでは5枚しか収容で
きないようなことがあった。
2. Description of the Related Art Conventionally, in a data compression apparatus using the JPEG system, Huffman coding is performed to reduce the code amount. However, since Huffman coding is a variable-length coding method, it has the property that the amount of coding differs depending on the type of image. That is, a large compression ratio can be obtained for a wall of one color or the sky, but a large compression ratio cannot be obtained for an image having a large change. Therefore, the number of pieces of image data that can be accommodated in one disc varies depending on the image.
In some cases, a single image can be accommodated, and other disks can accommodate only five images.

【0003】この発明は、符号化量の変化を抑制し、1
枚のディスクにある程度の枚数の画像を収容できるよう
なことができる画像符号化装置を提供するものである。
[0003] The present invention suppresses a change in the amount of coding, and
It is an object of the present invention to provide an image coding apparatus capable of storing a certain number of images on a single disk.

【0004】この発明の説明をする前に、従来の符号化
技術について説明する。図5は従来の画像符号化装置を
示すブロック図である。図5において、1は8×8画素
ブロックの画像データを入力する入力端子、2は離散コ
サイン変換(DCT)を行う離散コサイン変換部、3は
ジグザグ変換部、4は量子化部、5は量子化テーブル、
6はエントロピー符号化部、7は符号化テーブル、8は
パラメータや符号データを出力する出力端子である。
Before describing the present invention, a conventional encoding technique will be described. FIG. 5 is a block diagram showing a conventional image encoding device. In FIG. 5, 1 is an input terminal for inputting image data of an 8 × 8 pixel block, 2 is a discrete cosine transform unit that performs a discrete cosine transform (DCT), 3 is a zigzag transform unit, 4 is a quantizing unit, 5 is a quantum unit. Table,
Reference numeral 6 denotes an entropy coding unit, 7 denotes a coding table, and 8 denotes an output terminal for outputting parameters and code data.

【0005】次に、動作について説明する。まず、画像
データとしては画像データ入力端子1から、例えば8ビ
ット幅のコンポーネント画像Pxy(x,y=0,1,
2,3・・・,7)が入力される。入力された画像デー
タは、離散コサイン変換部2に送られる。離散コサイン
変換部2では、その分割された8×8画素ブロックPx
yに対して2次元離散コサイン変換を行う。
Next, the operation will be described. First, as image data, a component image Pxy (x, y = 0, 1, 1, for example, having an 8-bit width) is input from the image data input terminal 1.
2, 3,..., 7) are input. The input image data is sent to the discrete cosine transform unit 2. In the discrete cosine transform unit 2, the divided 8 × 8 pixel block Px
Perform a two-dimensional discrete cosine transform on y.

【0006】2次元離散コサイン変換の結果、64個
(=8×8)の係数Suvが得られる。得られた64個
の係数はジグザグ変換部3でシリアル順序からジグザグ
順序に並び変えられて量子化部4に送られる。64個の
係数は量子化テーブル5を用いて係数位置毎に異なるス
テップサイズで量子化部4で量子化される。量子化され
た64個の係数はエントロピー符号化部6へ送られる。
エントロピー符号化部6では、符号化テーブル7を用い
て、ハフマン符号化方式により符号化し、符号データが
出力端子8から数バイト単位(例えば、16ビット幅)
で出力される。
As a result of the two-dimensional discrete cosine transform, 64 (= 8 × 8) coefficients Suv are obtained. The obtained 64 coefficients are rearranged from the serial order to the zigzag order by the zigzag converter 3 and sent to the quantizer 4. The 64 coefficients are quantized by the quantization unit 4 using the quantization table 5 with a different step size for each coefficient position. The 64 quantized coefficients are sent to the entropy coding unit 6.
The entropy coding unit 6 uses the coding table 7 to perform coding according to the Huffman coding method, and codes data from the output terminal 8 in units of several bytes (for example, 16-bit width).
Is output.

【0007】最初に、8×8画素のコンポーネント画像
Pxy(x,y=0,1,2,3・・・,7)は離散コ
サイン変換部2において、2次元離散コサイン変換さ
れ、次の(1)式のような係数Suvが得られる。
[0007] First, a component image Pxy (x, y = 0, 1, 2, 3, ..., 7) of 8 × 8 pixels is subjected to a two-dimensional discrete cosine transform in a discrete cosine transform unit 2, and the following ( The coefficient Suv as shown in the equation 1) is obtained.

【0008】[0008]

【数1】 (Equation 1)

【0009】ここで、コンポーネント画像Pxyは、次
の(2)式のように表される。
Here, the component image Pxy is represented by the following equation (2).

【0010】[0010]

【数2】 (Equation 2)

【0011】DCT係数Suvは、図6に示すように、
S00〔DC(直流)成分〕とそれ以外のS01〜S7
7までのAC(交流)成分とから構成され、DC成分S
00が最大で、他のAC成分はS00係数と比べて非常
に小さい値である。
The DCT coefficient Suv is, as shown in FIG.
S00 [DC (direct current) component] and other S01 to S7
And AC component (AC) up to 7 and a DC component S
00 is the maximum, and the other AC components are very small values compared to the S00 coefficient.

【0012】次に、このDCT係数Suvはジグザグ変
換部3でシリアル順序からジグザグ順序に変換された
後、量子化部4に入力される。DCT係数Suvは量子
化部4で量子化テーブル5の値Quvを用いて除算が行
われる。すなわち、量子化された量子化DCT係数Ru
vは次式で求められる。
Next, the DCT coefficient Suv is converted from a serial order to a zigzag order by a zigzag converter 3 and then input to a quantizer 4. The DCT coefficient Suv is divided by the quantization unit 4 using the value Quv of the quantization table 5. That is, the quantized quantized DCT coefficient Ru
v is obtained by the following equation.

【0013】Ruv=round(Suv/Quv) ここで、round関数は、Suv/Quvの演算結果
に最も近い整数に変換するための関数である。したがっ
て、2次元の次数uvが大きなところで大きくなるよう
に量子化テーブルの値Quvを決めることによって、A
C係数は次数が大きい部分では殆どの係数が0となるよ
うにすることができる。
Ruv = round (Suv / Quv) Here, the round function is a function for converting to an integer closest to the calculation result of Suv / Quv. Therefore, by determining the value Quv of the quantization table so that the two-dimensional order uv becomes large where it is large, A
Most of the C coefficient can be set to 0 in a portion having a large order.

【0014】次に、量子化部4から出力された64個の
係数Ruvは、エントロピー符号化部6に送られる。エ
ントロピー符号化部6では、8×8画素の平均値を表す
DC係数(R00)とその他のAC係数(R00以外)
では符号化方式が異なるので、それぞれ分けて説明す
る。
Next, the 64 coefficients Ruv output from the quantization unit 4 are sent to the entropy coding unit 6. In the entropy encoding unit 6, a DC coefficient (R00) representing an average value of 8 × 8 pixels and other AC coefficients (other than R00)
Since the encoding methods are different, they will be described separately.

【0015】まず、DC係数R00をグループ化するた
めのブロック図を図7に示す。図7において、量子化部
4から入力されたDC係数R00は、ブロック遅延部6
1によって遅延された一つ前のDC係数R00との間で
DC差分器62によって減算され、差分が取られ、グル
ープ化部63に送出される。DC差分器62の演算処理
は図8に示すように、現時点のDC成分のブロック
(i)のDC係数(DCi)と一つ前に符号化された同
一色成分のブロック(i−1)のDC係数(DCi−
1)との差が計算され、その差分値(ΔDCi)が求め
られる。コンピュータグラフィックスのような特殊な画
像を除いて、隣のブロックとの平均値が大きく変化する
ことはあまりないので、一つ前のDC係数との差分値は
0の近傍に集中する。したがって、このようにして求め
られた差分を符号化することにより高能率な符号化が期
待できる。
First, a block diagram for grouping DC coefficients R00 is shown in FIG. In FIG. 7, the DC coefficient R00 input from the quantization unit 4 is
The difference between the DC coefficient R00 delayed by 1 and the immediately preceding DC coefficient R00 is subtracted by the DC differentiator 62, the difference is obtained, and the difference is sent to the grouping unit 63. As shown in FIG. 8, the arithmetic processing of the DC differentiator 62 is performed on the DC coefficient (DCi) of the current DC component block (i) and the block (i-1) of the same color component encoded immediately before. DC coefficient (DCi-
1) is calculated, and the difference value (ΔDCi) is obtained. Except for special images such as computer graphics, the average value with the adjacent block does not change much, so that the difference value from the immediately preceding DC coefficient is concentrated near zero. Therefore, by encoding the difference obtained in this way, highly efficient encoding can be expected.

【0016】上記のDC差分器62によって求められた
DC係数の差分値はグループ化部63に入力され、図9
の表を用いることによって、その差分値が属するグルー
プが求められる。グループ化部63からの出力は、DC
差分値をグループ番号(S)と付加ビット(A)で表さ
れる。ここで、付加ビット(A)はグループ内における
差分値の順番を示す値である。図9において、例えば、
グループ3においては、付加ビット数は3であり、DC
差分値は−7,−6,−5,−4,4,5,6,7の8
値を取り得るので、−7に000、−6に001、−5
に010、−4に011、4に100、5に101、6
に110、7に111の付加ビットをそれぞれ割り当て
る。このように、グループ化部63からはグループ番号
(S)と付加ビット(A)が出力される。このグループ
化部63からの出力であるグループ番号(S)と付加ビ
ット(A)は、以下に説明するように、1次元ハフマン
符号化部65で1次元ハフマン符号化される。
The difference value of the DC coefficient obtained by the above-mentioned DC differentiator 62 is input to the grouping section 63,
Is used, the group to which the difference value belongs is obtained. The output from the grouping unit 63 is DC
The difference value is represented by a group number (S) and an additional bit (A). Here, the additional bit (A) is a value indicating the order of the difference value within the group. In FIG. 9, for example,
In group 3, the number of additional bits is 3, and DC
The difference value is -7, -6, -5, -4, 4, 5, 6, 7
Since it can take a value, 000 for -7, 001 for -6, -5
010 for -4, 011 for -4, 100 for 4 and 101 for 6
Are assigned to 110 and 7 to 111, respectively. As described above, the grouping unit 63 outputs the group number (S) and the additional bit (A). The group number (S) and the additional bit (A) output from the grouping unit 63 are one-dimensional Huffman encoded by the one-dimensional Huffman encoding unit 65 as described below.

【0017】次に、AC係数のグループ化のブロック図
を図10に示す。AC係数は、ジグザグ変換部3によっ
て図11に示すように、すでに並び変えられているため
にジグザグ順序で出力される。このジグザグ順序に並び
変えられたAC係数は、判定部92によって各AC係数
が0の場合はランレングスカウンタ93でそのAC係数
0の連続数がカウントされ、ラン長(N)として出力さ
れる。
FIG. 10 is a block diagram showing the grouping of AC coefficients. As shown in FIG. 11, the AC coefficients are output in a zigzag order because they have been rearranged by the zigzag converter 3. When the AC coefficients rearranged in the zigzag order are determined to be 0 by the determining unit 92, the run length counter 93 counts the number of consecutive AC coefficients 0 and outputs the run length (N).

【0018】AC係数が0以外の時はグループ化部94
において、DC差分値を求めたのと同様の手法によって
グループ番号(S)と付加ビット(A)が生成される。
図12の表を用いてそのAC係数が属するグループが求
められる。ここで、付加ビットはグループ内のAC係数
の順番を示す値である。例えば、AC係数が7であった
とするとグループ番号は3になる。グループ3において
は、付加ビット数は3であり、DC差分値は−7,−
6,−5,−4,4,5,6,7の8値を取り得るの
で、−7に000、−6に001、−5に010、−4
に011、4に100、5に101、6に110、7に
111の付加ビットをそれぞれ割り当てる。このよう
に、グループ化部94からはグループ番号(S)と付加
ビット(A)が出力される。
When the AC coefficient is other than 0, the grouping unit 94
In, the group number (S) and the additional bit (A) are generated by the same method as that used to determine the DC difference value.
The group to which the AC coefficient belongs is determined using the table of FIG. Here, the additional bit is a value indicating the order of the AC coefficients in the group. For example, if the AC coefficient is 7, the group number is 3. In group 3, the number of additional bits is 3, and the DC difference value is -7,-
6, -8, -5, -4,4,5,6,7 are available, so 000 for -7, 001 for -6, 010 for -5, -4
011, 4 to 100, 5 to 101, 6 to 110, and 7 to 111. As described above, the grouping unit 94 outputs the group number (S) and the additional bit (A).

【0019】このグループ化部94からの出力されたグ
ループ番号(S)およびランレングスカウンタ93から
出力されラン長(N)は、後述するように、ハフマン符
号化部70の2次元ハフマン符号化部95でAC符号テ
ーブル部96によってハフマン符号化される。
The group number (S) output from the grouping section 94 and the run length (N) output from the run length counter 93 are, as described later, the two-dimensional Huffman encoding section of the Huffman encoding section 70. At 95, Huffman coding is performed by the AC code table unit 96.

【0020】図13は、DC係数およびAC係数のグル
ープ化およびハフマン符号化を行う回路のブロック図を
示すものである。図13において、DCグループ化部6
0aは図7に示す回路と同一であり、ACグループ化部
60bは図10に示す回路と同一である。
FIG. 13 is a block diagram showing a circuit for performing grouping and Huffman coding of DC coefficients and AC coefficients. In FIG. 13, the DC grouping unit 6
0a is the same as the circuit shown in FIG. 7, and the AC grouping unit 60b is the same as the circuit shown in FIG.

【0021】以下に、ハフマン符号化部70について簡
単に説明する。図13において、1次元ハフマン符号化
部65,DC符号化テーブル部66,DC付加ビット結
合部67はDC係数の符号化部であり、1次元ハフマン
符号化部95,AC符号化テーブル部96,AC付加ビ
ット結合部97はAC係数の符号化部である。68はD
C符号化信号とAC符号化信号とを結合する結合回路で
ある。
Hereinafter, the Huffman encoding unit 70 will be briefly described. In FIG. 13, a one-dimensional Huffman coding unit 65, a DC coding table unit 66, and a DC additional bit combining unit 67 are coding units for DC coefficients, and are one-dimensional Huffman coding unit 95, an AC coding table unit 96, The AC additional bit combining unit 97 is an encoding unit for AC coefficients. 68 is D
This is a combining circuit that combines the C-coded signal and the AC-coded signal.

【0022】まず、DC係数の符号化について述べる。
DCグループ化部60aで得られたグループ番号Sと付
加ビットAのうち、グループ番号Sは1次元ハフマン符
号化部65でDC符号テーブル部66中のDC符号化テ
ーブルを用いて1次元ハフマン符号化され、DC符号と
して出力される。
First, coding of DC coefficients will be described.
Of the group number S and the additional bit A obtained by the DC grouping unit 60a, the group number S is one-dimensional Huffman encoded by the one-dimensional Huffman encoding unit 65 using the DC encoding table in the DC code table unit 66. And output as a DC code.

【0023】1次元ハフマン符号化の一例は図14に示
される。例えば、上記のグループ番号3が1次元ハフマ
ン符号化部65に入力された場合、図14から1次元ハ
フマン符号化されたDC符号化は110となる。1次元
ハフマン符号化部65から出力された出力110はグル
ープ化部60aから出力された付加ビット100(4)
とDC付加ビット結合部67で結合され、110100
(DC符号+付加ビット)となる。
An example of one-dimensional Huffman coding is shown in FIG. For example, when the above group number 3 is input to the one-dimensional Huffman encoding unit 65, the one-dimensional Huffman encoded DC encoding becomes 110 from FIG. The output 110 output from the one-dimensional Huffman coding unit 65 is the additional bit 100 (4) output from the grouping unit 60a.
Is combined with the DC additional bit combining unit 67 to
(DC code + additional bit).

【0024】次に、AC係数の符号化について説明す
る。図13において、グループ化部60bから出力され
たグループ番号Sおよびグループ化部60bのランレン
グスカウンタ93から出力されたラン長Nは、ハフマン
符号化部70の2次元ハフマン符号化部95とAC符号
化テーブル部96によってハフマン符号化される。その
符号化された値にAC付加ビット結合部97で付加ビッ
トAが付加され、AC符号として出力される。2次元ハ
フマン符号化については、以下の具体例中で説明する。
Next, encoding of AC coefficients will be described. In FIG. 13, the group number S output from the grouping unit 60b and the run length N output from the run length counter 93 of the grouping unit 60b are the same as the two-dimensional Huffman coding unit 95 of the Huffman coding unit 70 and the AC code. The Huffman coding is performed by the conversion table unit 96. The additional bit A is added to the encoded value by an AC additional bit combining unit 97, and the resultant value is output as an AC code. Two-dimensional Huffman coding will be described in a specific example below.

【0025】図15に示すように、DC係数に続いて、
AC係数(AC1,値=3)、0値の無効係数が4個、
AC係数(AC2,値=10)が1個、残り57個が0
値の無効係数のブロック信号が図13の回路に入力した
場合を一例として考える。
As shown in FIG. 15, following the DC coefficient,
AC coefficient (AC1, value = 3), 4 invalid coefficients of 0 value,
One AC coefficient (AC2, value = 10) and the remaining 57 are 0
Consider a case where a block signal of a value invalid coefficient is input to the circuit of FIG. 13 as an example.

【0026】上記の例によれば、まず0値の無効係数0
個はラン長(N=0)として2次元ハフマン符号化部9
5に入力される。一方、次のAC1(値=3)1個は2
次元ハフマン符号化部95に入力される。AC係数の値
は3であるので、図12からグループ番号Sは2とな
り、有効係数の値3はそのグループの最大値であるの
で、付加ビットは11となる。したがって、2次元ハフ
マン符号化部95においては、上述のように無効係数
(N)は0であり、グループ番号(S)は2であるの
で、N/Sは0/2となる。そして、ハフマン符号化部
70の2次元ハフマン符号化部95において、N/S
(0/2)に対応するAC符号テーブル部96(図1
6)を用いて2次元ハフマン符号化が行われ、それに付
加ビットが付加されて2次元ハフマン符号化信号「10
011」が得られる。
According to the above example, first, the invalid coefficient 0 of 0 value
Are two-dimensional Huffman encoding units 9 as run lengths (N = 0).
5 is input. On the other hand, the next AC1 (value = 3) is 2
It is input to the dimensional Huffman encoding unit 95. Since the value of the AC coefficient is 3, the group number S is 2 from FIG. 12, and the value 3 of the effective coefficient is the maximum value of the group, so the additional bit is 11. Therefore, in the two-dimensional Huffman encoding unit 95, the invalid coefficient (N) is 0 and the group number (S) is 2 as described above, so that N / S is 0/2. Then, in the two-dimensional Huffman encoding section 95 of the Huffman encoding section 70, N / S
AC code table section 96 corresponding to (0/2) (FIG. 1)
6), two-dimensional Huffman coding is performed, additional bits are added thereto, and the two-dimensional Huffman coded signal "10
011 ”is obtained.

【0027】次に、0値の無効係数が4個,AC係数が
1個(値=10)の部分は、ラン長が4であり、一方、
図14からグループ番号(S)は4であり、付加ビット
は1010(10)となる。したがって、N/S信号は
4/4となり、AC符号化テーブル96(図16)を用
いて2次元ハフマン符号化が行われ、それに付加ビット
が付加されて2次元ハフマン符号化信号「111111
11100110001010」が得られる。次の残り
の0値の無効係数57個に対してはEOB(End o
f Block)符号「00」を付け、ブロックの符号
化を終了する。
Next, the run length is 4 in the portion where there are four zero-value invalid coefficients and one AC coefficient (value = 10), while
From FIG. 14, the group number (S) is 4, and the additional bit is 1010 (10). Therefore, the N / S signal becomes 4/4, and two-dimensional Huffman encoding is performed using the AC encoding table 96 (FIG. 16), and an additional bit is added to the two-dimensional Huffman encoding signal to make the two-dimensional Huffman encoded signal “111111”.
11100110001010 "is obtained. For the next remaining 57 invalid coefficients of 0 value, EOB (End o)
f Block) code “00” is added, and the encoding of the block is completed.

【0028】したがって、上述のようにハフマン符号化
方式は出現するデータによって符号長が変化する可変長
符号化方式であり、原画像によって符号量が変化するこ
とになる。
Therefore, as described above, the Huffman coding method is a variable-length coding method in which the code length changes depending on data that appears, and the code amount changes depending on the original image.

【0029】[0029]

【発明が解決しようとする課題】従来の画像符号化装置
は上述のように構成されているので、画像によって圧縮
率が異なり、同一サイズの画像であっても符号化量(圧
縮データ量)が大きく異なるという問題点があった。
Since the conventional image encoding apparatus is configured as described above, the compression rate differs depending on the image, and the encoding amount (compressed data amount) is reduced even for images of the same size. There was a problem that it was very different.

【0030】この発明は、上記のような問題点を解消す
るためになされたもので、効果的なデータ量圧縮をする
ことができるとともに、再生画像の視覚的劣化を確実に
抑制できる画像符号化装置を提供することを目的とす
る。
The present invention has been made in order to solve the above-described problems, and it is possible to effectively compress the amount of data and to surely suppress visual deterioration of a reproduced image. It is intended to provide a device.

【0031】[0031]

【課題を解決するための手段】第1の発明に係る画像符
号化装置では、画像データの画像ブロックを構成する各
コンポーネント画像Pxy(ここで、次数xyは各コン
ポーネント画像の前記画像データにおける2次元位置を
示す)毎に離散コサイン変換を行い、所定の順序に配列
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suv(ここで、次数uvは各コン
ポーネント画像Pxyの前記画像データにおける2次元
位置を示す次数xyに対応する前記画像データ上の2次
元位置を示す)を導出する離散コサイン変換部と、前記
離散コサイン変換部によって導出されたDC成分または
AC成分を有する係数からなる離散コサイン変換係数S
uvを前記画像データ上の2次元位置毎に異なるステッ
プサイズで線形量子化を行い量子化離散コサイン変換係
数Ruvを導出する量子化部と、所定順序に配列されシ
リアル順序に並ぶ前記量子化離散コサイン変換係数Ru
vをジグザグに並び変えるジグザグ変換部と、前記量子
化離散コサイン変換係数Ruvについてハフマン符号化
方式を用いてエントロピー符号化を行うエントロピー符
号化部を備え、画像データを圧縮する画像符号化装置に
おいて、前記画像データにおける画素ブロックの高周波
成分が多いかどうかを検出して置換用制御信号を出すか
出さないかを制御し、前記量子化離散コサイン変換係数
Ruvのうち予め設定した部分のAC係数を前記置換用
制御信号に応じて強制的に0に置き換えるかどうかを制
御するデータ処理手段を設け、前記データ処理手段によ
って前記画像データにおける画素ブロックの高周波成分
が比較的少ないと判別されたときに前記置換用制御信号
により前記量子化離散コサイン変換係数Ruvにおける
いくつかのAC係数の0でない部分を0に置き換えるこ
とでその部分のデータを切り捨てて圧縮データ量を減少
させるとともに、前記データ処理手段によって前記画像
データにおける画素ブロックの高周波成分が比較的多い
と判別されたときには前記量子化離散コサイン変換係数
RuvにおけるAC係数をそのまま出力するようにした
ものである。
In the image encoding apparatus according to the first aspect of the present invention, each component image Pxy (where the degree xy is a two-dimensional component of the image data of each component image) constituting an image block of the image data is provided. A discrete cosine transform is performed for each of the component images Pxy in the image data of each component image Pxy, where a discrete cosine transform is performed for each component image Pxy. A discrete cosine transform unit for deriving a two-dimensional position on the image data corresponding to an order xy indicating a two-dimensional position), and a discrete cosine transform unit comprising a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. Cosine transform coefficient S
a quantizer for linearly quantizing uv at different step sizes for each two-dimensional position on the image data to derive a quantized discrete cosine transform coefficient Ruv, and the quantized discrete cosine arranged in a predetermined order and arranged in a serial order Conversion coefficient Ru
a zigzag transformation unit that rearranges v in a zigzag manner, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method, and an image encoding device that compresses image data. Detecting whether or not a high-frequency component of a pixel block in the image data is large and controlling whether or not to output a replacement control signal, the AC coefficient of a predetermined portion of the quantized discrete cosine transform coefficient Ruv Data processing means for controlling whether to forcibly replace the pixel data with 0 in response to a replacement control signal, wherein the replacement is performed when the data processing means determines that the high frequency component of the pixel block in the image data is relatively small. Some AC coefficients in the quantized discrete cosine transform coefficient Ruv by the control signal for By replacing the non-zero part with zero, the data in that part is truncated to reduce the amount of compressed data, and when the data processing unit determines that the high frequency component of the pixel block in the image data is relatively large, the quantum The AC coefficients in the generalized discrete cosine transform coefficients Ruv are output as they are.

【0032】第2の発明に係る画像符号化装置では、画
像データの画像ブロックを構成する各コンポーネント画
像Pxy(ここで、次数xyは各コンポーネント画像の
前記画像データにおける2次元位置を示す)毎に離散コ
サイン変換を行い、所定の順序に配列されたDC成分ま
たはAC成分を有する係数からなる離散コサイン変換係
数Suv(ここで、次数uvは各コンポーネント画像P
xyの前記画像データにおける2次元位置を示す次数x
yに対応する前記画像データ上の2次元位置を示す)を
導出する離散コサイン変換部と、前記離散コサイン変換
部によって導出されたDC成分またはAC成分を有する
係数からなる離散コサイン変換係数Suvを前記画像デ
ータ上の2次元位置毎に異なるステップサイズで線形量
子化を行い量子化離散コサイン変換係数Ruvを導出す
る量子化部と、所定順序に配列されシリアル順序に並ぶ
前記量子化離散コサイン変換係数Ruvをジグザグに並
び変えるジグザグ変換部と、前記量子化離散コサイン変
換係数Ruvについてハフマン符号化方式を用いてエン
トロピー符号化を行うエントロピー符号化部を備え、画
像データを圧縮する画像符号化装置において、前記画像
データにおける画素ブロックの高周波成分が多いかどう
かを検出して置換用制御信号を出すか出さないかを制御
し、前記配列された量子化離散コサイン変換係数Ruv
のうち予め設定した特定の係数以降のAC係数を前記置
換用制御信号に応じて強制的に0に置き換えるかどうか
を制御するデータ処理手段を設け、前記データ処理手段
によって前記画像データにおける画素ブロックの高周波
成分が比較的少ないと判別されたときに前記置換用制御
信号により前記量子化離散コサイン変換係数Ruvにお
けるいくつかのAC係数の0でない部分を0に置き換え
ることでその部分のデータを切り捨てて圧縮データ量を
減少させるとともに、前記データ処理手段によって前記
画像データにおける画素ブロックの高周波成分が比較的
多いと判別されたときには前記量子化離散コサイン変換
係数RuvにおけるAC係数をそのまま出力するように
したものである。
In the image encoding apparatus according to the second invention, each component image Pxy (where the degree xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data is provided. A discrete cosine transform is performed, and a discrete cosine transform coefficient Suv composed of coefficients having a DC component or an AC component arranged in a predetermined order (where the order uv is equal to each component image P
x representing the two-dimensional position of the xy in the image data
a discrete cosine transform unit for deriving a two-dimensional position on the image data corresponding to y), and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. A quantizer for performing linear quantization at a different step size for each two-dimensional position on image data to derive a quantized discrete cosine transform coefficient Ruv; and a quantized discrete cosine transform coefficient Ruv arranged in a predetermined order and arranged in a serial order. A zigzag transform unit that rearranges zigzag, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method, wherein the image encoding device compresses image data. Detects and replaces whether high frequency components of pixel blocks in image data are large Controls or not issued or issues a control signal, said array of quantized discrete cosine transform coefficients Ruv
Data processing means for controlling whether or not AC coefficients after a predetermined specific coefficient are forcibly replaced with 0 in accordance with the replacement control signal, wherein the data processing means When it is determined that the high-frequency component is relatively small, the non-zero part of some AC coefficients in the quantized discrete cosine transform coefficient Ruv is replaced with zero by the replacement control signal, thereby truncating and compressing data of the part. The data amount is reduced, and the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is when the data processing means determines that the high frequency component of the pixel block in the image data is relatively large. is there.

【0033】第3の発明に係る画像符号化装置では、画
像データの画像ブロックを構成する各コンポーネント画
像Pxy(ここで、次数xyは各コンポーネント画像の
前記画像データにおける2次元位置を示す)毎に離散コ
サイン変換を行い、所定の順序に配列されたDC成分ま
たはAC成分を有する係数からなる離散コサイン変換係
数Suv(ここで、次数uvは各コンポーネント画像P
xyの前記画像データにおける2次元位置を示す次数x
yに対応する前記画像データ上の2次元位置を示す)を
導出する離散コサイン変換部と、前記離散コサイン変換
部によって導出されたDC成分またはAC成分を有する
係数からなる離散コサイン変換係数Suvを前記画像デ
ータ上の2次元位置毎に異なるステップサイズで線形量
子化を行い量子化離散コサイン変換係数Ruvを導出す
る量子化部と、所定順序に配列されシリアル順序に並ぶ
前記量子化離散コサイン変換係数Ruvをジグザグに並
び変えるジグザグ変換部と、前記量子化離散コサイン変
換係数Ruvについてハフマン符号化方式を用いてエン
トロピー符号化を行うエントロピー符号化部を備え、画
像データを圧縮する画像符号化装置において、前記画像
データにおける画素ブロックの高周波成分が多いかどう
かを検出して置換用制御信号を出すか出さないかを制御
し、前記ジグザグ変換部によりジグザグに並び変えて配
列される前記量子化離散コサイン変換係数Ruvのうち
予め設定した部分のAC係数を前記置換用制御信号に応
じて強制的に0に置き換えるかどうかを制御するデータ
処理手段を設け、前記データ処理手段によって前記画像
データにおける画素ブロックの高周波成分が比較的少な
いと判別されたときに前記置換用制御信号により前記量
子化離散コサイン変換係数RuvにおけるいくつかのA
C係数の0でない部分を0に置き換えることでその部分
のデータを切り捨てて圧縮データ量を減少させるととも
に、前記データ処理手段によって前記画像データにおけ
る画素ブロックの高周波成分が比較的多いと判別された
ときには前記量子化離散コサイン変換係数Ruvにおけ
るAC係数をそのまま出力するようにしたものである。
In the image coding apparatus according to the third invention, each component image Pxy (where the degree xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data is provided. A discrete cosine transform is performed, and a discrete cosine transform coefficient Suv composed of coefficients having a DC component or an AC component arranged in a predetermined order (where the order uv is equal to each component image P
x representing the two-dimensional position of the xy in the image data
a discrete cosine transform unit for deriving a two-dimensional position on the image data corresponding to y), and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. A quantizer for performing linear quantization at a different step size for each two-dimensional position on image data to derive a quantized discrete cosine transform coefficient Ruv; and a quantized discrete cosine transform coefficient Ruv arranged in a predetermined order and arranged in a serial order. A zigzag transform unit that rearranges zigzag, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method, wherein the image encoding device compresses image data. Detects and replaces whether high frequency components of pixel blocks in image data are large Controlling whether or not to output a control signal, and setting the AC coefficient of a predetermined portion of the quantized discrete cosine transform coefficients Ruv arranged in zigzag by the zigzag converter in accordance with the replacement control signal. A data processing means for controlling whether or not the high-frequency component of the pixel block in the image data is relatively small by the data processing means. A in the generalized discrete cosine transform coefficient Ruv
When the non-zero portion of the C coefficient is replaced with 0, the data in that portion is truncated to reduce the amount of compressed data. The AC coefficient in the quantized discrete cosine transform coefficient Ruv is directly output.

【0034】第4の発明に係る画像符号化装置では、画
像データの画像ブロックを構成する各コンポーネント画
像Pxy(ここで、次数xyは各コンポーネント画像の
前記画像データにおける2次元位置を示す)毎に離散コ
サイン変換を行い、所定の順序に配列されたDC成分ま
たはAC成分を有する係数からなる離散コサイン変換係
数Suv(ここで、次数uvは各コンポーネント画像P
xyの前記画像データにおける2次元位置を示す次数x
yに対応する前記画像データ上の2次元位置を示す)を
導出する離散コサイン変換部と、前記離散コサイン変換
部によって導出されたDC成分またはAC成分を有する
係数からなる離散コサイン変換係数Suvを前記画像デ
ータ上の2次元位置毎に異なるステップサイズで線形量
子化を行い量子化離散コサイン変換係数Ruvを導出す
る量子化部と、所定順序に配列されシリアル順序に並ぶ
前記量子化離散コサイン変換係数Ruvをジグザグに並
び変えるジグザグ変換部と、前記量子化離散コサイン変
換係数Ruvについてハフマン符号化方式を用いてエン
トロピー符号化を行うエントロピー符号化部を備え、画
像データを圧縮する画像符号化装置において、前記画像
データにおける画素ブロックの高周波成分が多いかどう
かを検出して置換用制御信号を出すか出さないかを制御
し、前記ジグザグ変換部によりジグザグに並び変えて配
列される量子化離散コサイン変換係数Ruvのうち予め
設定した特定の係数以降のAC係数を前記置換用制御信
号に応じて強制的に0に置き換えるかどうかを制御する
データ処理手段を設け、前記データ処理手段によって前
記画像データにおける画素ブロックの高周波成分が比較
的少ないと判別されたときに前記置換用制御信号により
前記量子化離散コサイン変換係数Ruvにおけるいくつ
かのAC係数の0でない部分を0に置き換えることでそ
の部分のデータを切り捨てて圧縮データ量を減少させる
とともに、前記データ処理手段によって前記画像データ
における画素ブロックの高周波成分が比較的多いと判別
されたときには前記量子化離散コサイン変換係数Ruv
におけるAC係数をそのまま出力するようにしたもので
ある。
In the image coding apparatus according to the fourth invention, each component image Pxy (where the degree xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data is provided. A discrete cosine transform is performed, and a discrete cosine transform coefficient Suv composed of coefficients having a DC component or an AC component arranged in a predetermined order (where the order uv is equal to each component image P
x representing the two-dimensional position of the xy in the image data
a discrete cosine transform unit for deriving a two-dimensional position on the image data corresponding to y), and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. A quantizer for performing linear quantization at a different step size for each two-dimensional position on image data to derive a quantized discrete cosine transform coefficient Ruv; and a quantized discrete cosine transform coefficient Ruv arranged in a predetermined order and arranged in a serial order. A zigzag transform unit that rearranges zigzag, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method, wherein the image encoding device compresses image data. Detects and replaces whether high frequency components of pixel blocks in image data are large Controlling whether or not to output a control signal, and replacing the AC coefficient after a predetermined coefficient among the quantized discrete cosine transform coefficients Ruv rearranged and arranged in a zigzag manner by the zigzag conversion unit with the replacement control signal A data processing unit for controlling whether to forcibly replace the pixel block with 0 in accordance with the control signal for replacement when the high frequency component of the pixel block in the image data is determined to be relatively small by the data processing unit. By replacing non-zero parts of some AC coefficients in the quantized discrete cosine transform coefficient Ruv with zeros, the data in those parts is truncated to reduce the amount of compressed data, and the data processing unit is used to reduce the amount of compressed data. When it is determined that the high frequency component of the Down conversion coefficient Ruv
Is output as it is.

【0035】第5の発明に係る画像符号化装置では、前
記データ処理手段として、前記画素ブロック毎に前記画
像データのエッジ成分を検出し、前記エッジ成分の値を
しきい値と比較して、その比較結果の累積値に基づき置
換用制御信号を導出するデータ処理回路を用いたもので
ある。
In the image coding apparatus according to a fifth aspect, the data processing means detects an edge component of the image data for each pixel block, compares the edge component value with a threshold value, A data processing circuit that derives a replacement control signal based on the accumulated value of the comparison result is used.

【0036】第6の発明に係る画像符号化装置では、前
記画素ブロック毎に前記画像データのエッジ成分を検出
するエッジ検出器と、前記エッジ検出器により検出され
たエッジ成分の値をしきい値設定レジスタからのしきい
値と大小比較しエッジ成分の値が前記しきい値より大き
い場合に比較結果出力を導出するしきい値大小比較器
と、前記しきい値比較結果出力の度数を累積するカウン
タとを備え、前記カウンタによる前記比較結果出力度数
の累積値を高周波成分数設定レジスタの設定値とを比較
し高周波成分が多いかどうかを検出するデータ処理回路
を、前記データ処理手段として用いたものである。
In the image coding apparatus according to a sixth aspect, an edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector is set to a threshold value. A threshold magnitude comparator for comparing the magnitude with a threshold value from a setting register to derive a comparison result output when the value of the edge component is greater than the threshold value; and accumulating the frequency of the threshold comparison result output. A data processing circuit comprising a counter and comparing the cumulative value of the comparison result output frequency by the counter with a set value of a high frequency component number setting register to detect whether or not the high frequency component is large, as the data processing means. Things.

【0037】第7の発明に係る画像符号化装置では、前
記データ処理手段として、前記画素ブロック毎に前記画
像データのエッジ成分を検出し、前記エッジ成分の値を
しきい値と比較し、その比較結果の累積値に基づいてデ
ータ制御信号を導出するデータ処理回路を用いたものに
おいて、前記しきい値を複数設定し、それぞれのしきい
値に係る比較結果の累積値に基づき複数の異なるデータ
制御信号を導出して、前記複数のデータ制御信号のそれ
ぞれに応じて異なる部分の前記量子化離散コサイン変換
係数RuvのAC係数を強制的に0とするようにしたも
のである。
In the image encoding apparatus according to a seventh aspect, as the data processing means, an edge component of the image data is detected for each of the pixel blocks, and a value of the edge component is compared with a threshold value. In a device using a data processing circuit for deriving a data control signal based on a cumulative value of a comparison result, a plurality of the thresholds are set, and a plurality of different data are set based on a cumulative value of the comparison result related to each threshold. A control signal is derived, and an AC coefficient of the quantized discrete cosine transform coefficient Ruv of a different portion is forcibly set to 0 according to each of the plurality of data control signals.

【0038】第8の発明に係る画像符号化装置では、前
記データ処理手段として、前記画素ブロック毎に前記画
像データのエッジ成分を検出し、前記エッジ成分の値を
第2のしきい値およびこの第2のしきい値と異なる第3
のしきい値と比較し、前記第2のしきい値についての比
較結果の累積値および前記第3のしきい値についての比
較結果の累積値に基づいて第2および第3のデータ制御
信号を導出するデータ処理回路を用いたものである。
[0038] In the image encoding apparatus according to an eighth aspect of the present invention, the data processing means detects an edge component of the image data for each pixel block, and sets a value of the edge component to a second threshold value and a second threshold value. A third different from the second threshold
And the second and third data control signals are calculated based on the cumulative value of the comparison result for the second threshold value and the cumulative value of the comparison result for the third threshold value. This uses a derived data processing circuit.

【0039】第9の発明に係る画像符号化装置では、前
記画素ブロック毎に前記画像データのエッジ成分を検出
するエッジ検出器と、前記エッジ検出器により検出され
たエッジ成分の値を第2および第3のしきい値設定レジ
スタからの第2および第3のしきい値と大小比較しエッ
ジ成分の値が前記第2および第3のしきい値より大きい
場合に比較結果出力を導出するしきい値大小比較器と、
前記第2のしきい値についての比較結果出力の度数を累
積する第2のカウンタと、前記第3のしきい値について
の比較結果出力の度数を累積する第3のカウンタとを備
え、前記第2のカウンタによる前記比較結果出力度数の
累積値と、前記第3のカウンタによる前記比較結果出力
度数の累積値と、高周波成分数設定レジスタの設定値と
を比較し高周波成分が多いかどうかを検出するデータ処
理回路を、前記データ処理手段として用いたものであ
る。
In an image encoding apparatus according to a ninth aspect, an edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector is used for a second and a second component. A threshold for comparing the second and third threshold values from the third threshold setting register with each other and deriving a comparison result output when the value of the edge component is larger than the second and third threshold values; Value comparator,
A second counter for accumulating the frequency of the comparison result output for the second threshold value, and a third counter for accumulating the frequency of the comparison result output for the third threshold value; And comparing the cumulative value of the output frequency of the comparison result by the second counter, the cumulative value of the output frequency of the comparison result by the third counter, and the set value of the high frequency component number setting register to detect whether or not the high frequency component is large. A data processing circuit is used as the data processing means.

【0040】第10の発明に係る画像符号化装置では、
前記データ処理手段として、前記画素ブロック毎に前記
画像データのエッジ成分を検出し、前記エッジ成分の値
を第4のしきい値およびこの第4のしきい値と異なる第
5のしきい値ならびに第4,第5のしきい値と異なる第
6のしきい値と比較し、前記第4のしきい値についての
比較結果の累積値および前記第5のしきい値についての
比較結果の累積値ならびに前記第6のしきい値について
の比較結果の累積値に基づき第4および第5ならびに第
6のデータ制御信号を導出するデータ処理回路を用いた
ものである。
In the image coding apparatus according to the tenth aspect,
As the data processing means, an edge component of the image data is detected for each of the pixel blocks, and a value of the edge component is set to a fourth threshold value, a fifth threshold value different from the fourth threshold value, and A cumulative value of the comparison result for the fourth threshold value and a cumulative value of the comparison result for the fifth threshold value, which are compared with a sixth threshold value different from the fourth and fifth threshold values. And a data processing circuit that derives fourth, fifth, and sixth data control signals based on the cumulative value of the comparison result of the sixth threshold value.

【0041】第11の発明に係る画像符号化装置では、
前記画素ブロック毎に前記画像データのエッジ成分を検
出するエッジ検出器と、前記エッジ検出器により検出さ
れたエッジ成分の値を第4,第5および第6のしきい値
設定レジスタからの第4,第5および第6のしきい値と
大小比較しエッジ成分の値が前記第4,第5および第6
のしきい値より大きい場合に比較結果出力を導出するし
きい値大小比較器と、前記第4のしきい値についての比
較結果出力の度数を累積する第4のカウンタと、前記第
5のしきい値についての比較結果出力の度数を累積する
第5のカウンタと、前記第6のしきい値についての比較
結果出力の度数を累積する第6のカウンタとを備え、前
記第4のカウンタによる前記比較結果出力度数の累積値
と、前記第5のカウンタによる前記比較結果出力度数の
累積値と、前記第6のカウンタによる前記比較結果出力
度数の累積値と、高周波成分数設定レジスタの設定値と
比較し高周波成分が多いかどうかを検出するデータ処理
回路を、前記データ処理手段として用いたものである。
In the image coding apparatus according to the eleventh aspect,
An edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector being set to a fourth value from a fourth, fifth, and sixth threshold setting registers. , Fifth and sixth threshold values, and the edge component values are compared with the fourth, fifth and sixth threshold values.
A threshold magnitude comparator for deriving a comparison result output when the threshold value is larger than a threshold value, a fourth counter for accumulating the frequency of the comparison result output for the fourth threshold value, and a fifth counter. A fifth counter for accumulating the frequency of the comparison result output with respect to the threshold value, and a sixth counter for accumulating the frequency of the comparison result output with respect to the sixth threshold value; The cumulative value of the comparison result output frequency, the cumulative value of the comparison result output frequency by the fifth counter, the cumulative value of the comparison result output frequency by the sixth counter, and the set value of the high frequency component number setting register. A data processing circuit for comparing and detecting whether there are many high frequency components is used as the data processing means.

【0042】[0042]

【発明の実施の形態】実施の形態1.以下、この発明の
実施の形態1を図について説明する。図1は、この発明
の画像符号化装置の全体構成を示す図である。図におい
て、1は8×8画素ブロックの画像データを入力する入
力端子、2は離散コサイン変換(DCT)を行う離散コ
サイン変換部、3はジグザグ変換部、4は量子化部、5
は量子化テーブル、6はエントロピー符号化部、7は符
号化テーブル、8はパラメータや符号データを出力する
出力端子、9はエッジを検出し、量子化後の離散コサイ
ン変換(DCT)係数を処理するデータ処理回路からな
るデータ処理手段である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing the overall configuration of an image encoding device according to the present invention. In the figure, 1 is an input terminal for inputting image data of an 8 × 8 pixel block, 2 is a discrete cosine transform unit that performs a discrete cosine transform (DCT), 3 is a zigzag transform unit, 4 is a quantizing unit,
Is a quantization table, 6 is an entropy coding unit, 7 is a coding table, 8 is an output terminal for outputting parameters and code data, 9 is an edge detector, and processes discrete cosine transform (DCT) coefficients after quantization. This is a data processing means including a data processing circuit.

【0043】図2は、この発明における実施の形態1に
よる8×8画素ブロックの画像データを入力する入力端
子から画像データのエッジ成分を検出し、そのエッジ成
分の値と第1のしきい値との比較結果の大小の個数によ
り、効果的な符号量制御を行う信号を生成するデータ処
理回路9の回路構成を示す図である。図において、10
はエッジ検出器、11は第1の大小比較器、12はしき
い値設定レジスタ、13はカウンタ、14は高周波成分
数設定レジスタ、15は第2の大小比較器である。この
発明による実施の形態においては、データ処理回路9に
関連する部分以外の基本的な構成および動作は、図5以
下に示され、これらの図面について先に従来の技術の項
で説明した従来のものと同様である。ただし、ジグザグ
変換部3と量子化部4との処理順序は、量子化部4によ
る処理の後、ジグザグ変換部3において処理が行われる
ように変更されている。
FIG. 2 shows an embodiment in which an edge component of image data is detected from an input terminal for inputting image data of an 8 × 8 pixel block according to the first embodiment of the present invention. FIG. 9 is a diagram showing a circuit configuration of a data processing circuit 9 that generates a signal for performing effective code amount control based on the number of comparison results with the data processing circuit 9. In the figure, 10
Is an edge detector, 11 is a first magnitude comparator, 12 is a threshold setting register, 13 is a counter, 14 is a high frequency component number setting register, and 15 is a second magnitude comparator. In the embodiment according to the present invention, the basic configuration and operation other than those related to the data processing circuit 9 are shown in FIG. 5 and subsequent figures. Same as the one. However, the processing order of the zigzag conversion unit 3 and the quantization unit 4 is changed so that the processing is performed in the zigzag conversion unit 3 after the processing by the quantization unit 4.

【0044】次に、この発明による画像符号化装置の動
作を図1および図2を用いて説明する。入力端子1から
入力された画像データは、離散コサイン変換部2で8×
8画素からなる各コンポーネント画像Pxy毎に2次元
離散コサイン変換を実行され、その結果得られた64個
の離散コサイン変換係数Suvが量子化部4に送られ
る。量子化部4では、離散コサイン変換係数Suvを量
子化テーブル5の値Quvで割る演算が行われ、ジグザ
グ変換部3に送られる。データ処理回路9からの制御信
号によりジグザグ変換部3で処理されたデータはエント
ロピー符号化部6で符号化される。これが、この発明に
よる実施の形態1における動作の概略説明である。
Next, the operation of the image coding apparatus according to the present invention will be described with reference to FIGS. The image data input from the input terminal 1 is converted into an 8 ×
A two-dimensional discrete cosine transform is executed for each component image Pxy composed of eight pixels, and the resulting 64 discrete cosine transform coefficients Suv are sent to the quantization unit 4. In the quantization unit 4, an operation of dividing the discrete cosine transform coefficient Suv by the value Quv in the quantization table 5 is performed, and the result is sent to the zigzag conversion unit 3. The data processed by the zigzag converter 3 according to the control signal from the data processing circuit 9 is encoded by the entropy encoder 6. This is a schematic description of the operation in the first embodiment according to the present invention.

【0045】次に、動作について更に詳細に説明する。
まず、画像データとして、画像データ入力端子1から、
画像ブロックを構成する、例えば8ビット幅を持つ64
個のコンポーネント画像Pxy(x,y=0,1,2,
3・・・,7)が入力される。ここで、各コンポーネン
ト画像Pxyの次数xyは、前記画像データにおける2
次元マトリックス位置を示すものである。例えば、x=
2,y=1の場合のコンポーネント画像Pxyは画像デ
ータを構成する画像ブロックとして、画像データにおけ
る2次元マトリックス行位置(x=0,1,2,3・・
・,7)が2で、列位置(y=0,1,2,3・・・,
7)が1のものを示すものである。
Next, the operation will be described in more detail.
First, as image data, from the image data input terminal 1,
64 having an 8-bit width, for example, constituting an image block
Component images Pxy (x, y = 0, 1, 2, 2,
3..., 7) are input. Here, the order xy of each component image Pxy is 2 in the image data.
It shows the position of the dimensional matrix. For example, x =
2, y = 1, the component image Pxy is a two-dimensional matrix row position (x = 0, 1, 2, 3,...) In the image data as an image block constituting the image data.
, 7) is 2 and the column position (y = 0, 1, 2, 3,...,
7) shows one.

【0046】入力された画像データの64個のコンポー
ネント画像Pxyは、離散コサイン変換部2に送られ
る。離散コサイン変換部2では、その分割された8×8
画素ブロックからなる各コンポーネント画像Pxy毎に
2次元離散コサイン変換(DCT)が行われる。
The 64 component images Pxy of the input image data are sent to the discrete cosine transform unit 2. In the discrete cosine transform unit 2, the divided 8 × 8
A two-dimensional discrete cosine transform (DCT) is performed for each component image Pxy composed of pixel blocks.

【0047】2次元離散コサイン変換部2における2次
元離散コサイン変換(DCT)の結果、8×8画素ブロ
ックについてのコンポーネント画像Pxyのデータとし
てコンポーネント画像Pxyの次数xyに対応する次数
uvを持つ64個(=8×8)の離散コサイン変換係数
Suvが得られる。ここで、各離散コサイン変換係数S
uvの次数uvは各コンポーネント画像Pxyの次数x
yと対応し、前記画像データにおける2次元マトリック
ス位置を示すものである。例えば、u=2,v=1の場
合の離散コサイン変換係数Suvは画像データを構成す
る画像ブロックとして、画像データにおける2次元マト
リックス行位置(u=0,1,2,3・・・,7)が2
で、列位置(v=0,1,2,3・・・,7)が1のも
のを示すものである。
As a result of the two-dimensional discrete cosine transform (DCT) in the two-dimensional discrete cosine transform unit 2, 64 data having the order uv corresponding to the order xy of the component image Pxy as the data of the component image Pxy for the 8 × 8 pixel block (= 8 × 8) discrete cosine transform coefficients Suv are obtained. Here, each discrete cosine transform coefficient S
The order uv of uv is the order x of each component image Pxy
It corresponds to y and indicates a two-dimensional matrix position in the image data. For example, the discrete cosine transform coefficient Suv in the case of u = 2, v = 1 is a two-dimensional matrix row position (u = 0, 1, 2, 3,..., 7) in the image data as an image block constituting the image data. ) Is 2
, Where the row position (v = 0, 1, 2, 3,..., 7) is 1.

【0048】得られた64個の離散コサイン変換係数S
uvは、離散コサイン変換部3から量子化部4に送られ
る。前記64個の離散コサイン変換係数Suvは、量子
化テーブル5を用いて係数位置毎に異なるステップサイ
ズで、すなわち係数Suvの次数uvに対応する前記画
像データ上における2次元位置毎に異なるステップサイ
ズで、量子化部4において量子化される。
The obtained 64 discrete cosine transform coefficients S
uv is sent from the discrete cosine transform unit 3 to the quantization unit 4. The 64 discrete cosine transform coefficients Suv have different step sizes for each coefficient position using the quantization table 5, that is, different step sizes for each two-dimensional position on the image data corresponding to the order uv of the coefficient Suv. , Are quantized by the quantization unit 4.

【0049】量子化部4から出力されてジグザグ変換部
3に送られる、量子化され、シリアル順序に配列された
64個の量子化離散コサイン変換係数Ruvは、ジグザ
グ変換部3でシリアル順序からジグザグ順序に並び変え
られる。
The 64 quantized discrete cosine transform coefficients Ruv output from the quantizing section 4 and sent to the zigzag transform section 3 and arranged in the serial order are converted from the serial order by the zigzag transform section 3 to the zigzag transform section 3. Can be reordered.

【0050】ジグザグ変換部3から出力された64個の
量子化離散コサイン変換係数Ruvは、エントロピー符
号化部6へ送られる。エントロピー符号化部6では、量
子化離散コサイン変換係数Ruvは、符号化テーブル7
を用いて、ハフマン符号化方式により符号化され、符号
データが出力端子8から数バイト単位(例えば、16ビ
ット幅)で出力される。
The 64 quantized discrete cosine transform coefficients Ruv output from the zigzag transformer 3 are sent to the entropy encoder 6. In the entropy encoder 6, the quantized discrete cosine transform coefficient Ruv is stored in the encoding table 7.
And the encoded data is output from the output terminal 8 in units of several bytes (for example, 16-bit width).

【0051】一方、入力端子1から入力された画像デー
タは、データ処理回路9にも送られる。データ処理回路
9では、入力された画像データがエッジ検出器10に送
られる。エッジ検出器10では、8×8画素の画像デー
タに対して、例えば3×3画素毎にラブラシアンのマス
ク処理を実行する。8×8画素に対して3×3画素のマ
スク処理を実行すると、結果として6×6画素のエッジ
データが得られる。得られた6×6画素のエッジデータ
は第1の大小比較器11に送られ、予めしきい値設定レ
ジスタ12に設定されている値と大小比較される。エッ
ジデータが第1のしきい値よりも大きいとカウンタ13
の値を一つカウントアップする。
On the other hand, the image data input from the input terminal 1 is also sent to the data processing circuit 9. In the data processing circuit 9, the input image data is sent to the edge detector 10. The edge detector 10 performs Laplacian mask processing on the image data of 8 × 8 pixels, for example, every 3 × 3 pixels. When mask processing of 3 × 3 pixels is performed on 8 × 8 pixels, edge data of 6 × 6 pixels is obtained as a result. The obtained edge data of 6 × 6 pixels is sent to the first magnitude comparator 11 and compared with the value preset in the threshold setting register 12. If the edge data is larger than the first threshold, the counter 13
Is incremented by one.

【0052】6×6画素についてしきい値判別した結果
のカウンタ13のカウント値は第2の大小比較器15に
送られる。第2の大小比較器15では、カウンタ13の
値と予め設定した高周波成分数設定レジスタ14の値と
を大小比較する。カウンタ13の値が予め設定した高周
波成分数設定レジスタ14の値よりも大きいときは、こ
の8×8画素の高周波成分が多いと判定し、第1の置換
用データ制御信号をジグザグ変換部3に出さない。一
方、カウンタ13の値が予め設定した高周波成分数設定
レジスタ14の値よりも大きくないときは、高周波成分
が少ないと判定し、第1の置換用データ制御信号をジグ
ザグ変換部3に出す。
The count value of the counter 13 as a result of the threshold value determination for 6 × 6 pixels is sent to the second magnitude comparator 15. The second magnitude comparator 15 compares the value of the counter 13 with the preset value of the high frequency component number setting register 14. When the value of the counter 13 is larger than the value of the high frequency component number setting register 14 set in advance, it is determined that the number of high frequency components of 8 × 8 pixels is large, and the first replacement data control signal is sent to the zigzag converter 3. Not issued. On the other hand, when the value of the counter 13 is not larger than the value of the high frequency component number setting register 14, it is determined that the high frequency component is small, and the first replacement data control signal is output to the zigzag converter 3.

【0053】ジグザグ変換部3では量子化部4で量子化
されたデータがシリアル順序からジグザグ順序に並び変
えられる。ジグザグ順序に並び変えられた64個の量子
化された離散コサイン変換係数Ruvは、第1番目のデ
ータをDC(直流)係数、第2番目から第64番目まで
がAC(交流)係数となる。これらの係数は、随時、エ
ントロピー符号化部6に送られ、エントロピー符号化部
6でハフマン符号化処理が行われる。
In the zigzag converter 3, the data quantized by the quantizer 4 is rearranged from a serial order to a zigzag order. As for the 64 quantized discrete cosine transform coefficients Ruv rearranged in the zigzag order, the first data is a DC (direct current) coefficient, and the second to 64th is an AC (alternating current) coefficient. These coefficients are sent to the entropy encoding unit 6 as needed, and the entropy encoding unit 6 performs Huffman encoding processing.

【0054】ここで、ジグザグ変換部3においてブロッ
クデータがジグザグ順序に並び変える際に、データ処理
手段を構成するデータ処理回路9に設けた第2の大小比
較器15からの置換用データ制御信号により、この置換
用データ制御信号に対応して予め設定した前記ブロック
データのうちの特定部分、すなわち、ジグザグ順序に配
列されるAC係数をそれぞれ持つ64個の離散コサイン
変換係数Ruvのうち、例えば36番目以降64番目ま
での離散コサイン変換係数RuvのAC係数の値を全て
「0」に置き換える。
Here, when the block data is rearranged in the zigzag order in the zigzag conversion section 3, a replacement data control signal from the second magnitude comparator 15 provided in the data processing circuit 9 constituting the data processing means is used. Out of 64 discrete cosine transform coefficients Ruv each having an AC coefficient arranged in a zigzag order, for example, the 36th one of a specific portion of the block data set in advance corresponding to the replacement data control signal. Thereafter, all the AC coefficient values of the 64th discrete cosine transform coefficient Ruv are replaced with “0”.

【0055】これに対し、データ処理手段を構成するデ
ータ処理回路9に設けた第2の大小比較器15から置換
用データ制御信号が出力されないとき、すなわち前記高
周波成分が多いと判別されたときには、前記離散コサイ
ン変換係数RuvのAC係数における「0」でない部分
の「0」への置き換えは行われず、そのAC係数はその
まま出力されることになる。
On the other hand, when the replacement data control signal is not output from the second magnitude comparator 15 provided in the data processing circuit 9 constituting the data processing means, that is, when it is determined that the high frequency component is large, A portion other than “0” in the AC coefficient of the discrete cosine transform coefficient Ruv is not replaced with “0”, and the AC coefficient is output as it is.

【0056】このように、第2の大小比較器15の出力
によって、ジグザグ変換部3で離散コサイン変換係数R
uvのAC係数値をあるところから強制的に「0」にす
るので、次段のエントロピー符号化部6においてエント
ロピー符号化されるデータ量を節約することができる。
そして、前記離散コサイン変換係数Ruvは画像のエネ
ルギーが低周波領域に集中している点を考慮して量子化
され、前述のように、離散コサイン変換係数Suvは、
量子化テーブル5を用いて係数位置毎に異なるステップ
サイズで、すなわち係数Suvの次数uvに対応する前
記画像データ上における2次元位置毎に異なるステップ
サイズで量子化されているものであり、しかも、データ
処理回路9の第2の大小比較器15により置換用データ
制御信号が出力されているときは、画像データにおける
画素ブロックの高周波成分が少ないときであるから、離
散コサイン変換係数RuvのAC係数値をあるところか
ら強制的に「0」にしても、再生画像の視覚的劣化は確
実に抑制できるものである。
As described above, the output of the second magnitude comparator 15 allows the zigzag converter 3 to generate the discrete cosine transform coefficient R
Since the AC coefficient value of uv is forcibly set to “0” from a certain point, the amount of data entropy-encoded in the entropy encoding unit 6 at the next stage can be saved.
Then, the discrete cosine transform coefficient Ruv is quantized in consideration of the fact that the energy of the image is concentrated in the low-frequency region. As described above, the discrete cosine transform coefficient Suv is
It is quantized with a different step size for each coefficient position using the quantization table 5, that is, with a different step size for each two-dimensional position on the image data corresponding to the order uv of the coefficient Suv, and When the replacement data control signal is output from the second magnitude comparator 15 of the data processing circuit 9 because the high frequency component of the pixel block in the image data is small, the AC coefficient value of the discrete cosine transform coefficient Ruv is obtained. Can be forcibly set to "0" from a certain point, the visual degradation of the reproduced image can be reliably suppressed.

【0057】この実施の形態1では、画像ブロック毎に
離散コサイン変換を行う離散コサイン変換部と、離散コ
サイン変換された係数を係数位置毎に異なるステップサ
イズで線形量子化を行う量子化部と、シリアル順序に並
ぶブロックデータをジグザグに並び変えるジグザグ変換
部と、上記画素ブロック毎にデータ制御信号を生成する
データ処理回路と、データ処理された係数をハフマン符
号化方式を用いてエントロピー符号化を行うエントロピ
ー符号化部を備え、画像データを圧縮する画像符号化装
置において、上記画素ブロック毎に上記画像データのエ
ッジ成分を検出し、上記エッジ成分の値を第1のしきい
値と比較し、その比較結果の個数に基づいて上記量子化
部で量子化されたAC係数の0でない部分をそのまま出
力するか、上記量子化されたAC係数の0でない部分を
強制的に0にして出力するかを制御する上記データ処理
回路を有し、いくつかのAC係数の0でない部分のデー
タを切り捨てることによって圧縮データ量を減少させる
ようにしたものである。
In the first embodiment, a discrete cosine transform unit for performing discrete cosine transform for each image block, a quantizing unit for performing linear quantization of the discrete cosine transformed coefficients at different step sizes for each coefficient position, A zigzag converter for zigzagging block data arranged in a serial order, a data processing circuit for generating a data control signal for each pixel block, and entropy encoding of the data-processed coefficients using a Huffman encoding scheme An image encoding device comprising an entropy encoding unit, which compresses image data, detects an edge component of the image data for each pixel block, compares the edge component value with a first threshold value, Based on the number of comparison results, the non-zero portion of the AC coefficient quantized by the quantization unit is output as it is or The data processing circuit for controlling whether a non-zero part of the converted AC coefficient is forcibly set to 0 and outputting the data, and reducing the amount of compressed data by truncating some non-zero parts of the AC coefficient It is intended to be.

【0058】また、この実施の形態1では、上記量子化
されたAC係数の0でない部分を強制的に0にして出力
するのは、上記ジグザグ変換部のジグザグ順序に並び変
えられた上記画素ブロックの所定の箇所以降であること
を特徴とするものである。
In the first embodiment, the non-zero portion of the quantized AC coefficient is forcibly set to zero and output. At a predetermined location or later.

【0059】この発明による実施の形態1によれば、画
像データの画像ブロックを構成する各コンポーネント画
像Pxy(ここで、次数xyは各コンポーネント画像の
前記画像データにおける2次元マトリックス位置を示
す)毎に離散コサイン変換を行い、所定の順序に配列さ
れたDC成分またはAC成分を有する係数からなる離散
コサイン変換係数Suv(ここで、次数uvは各コンポ
ーネント画像Pxyの前記画像データにおける2次元マ
トリックス位置を示す次数xyに対応する前記画像デー
タ上の2次元マトリックス位置を示す)を導出する離散
コサイン変換部2と、前記離散コサイン変換部2によっ
て導出されたDC成分またはAC成分を有する係数から
なる離散コサイン変換係数Suvを前記画像データ上の
2次元マトリックス位置毎に異なるステップサイズで線
形量子化を行い量子化離散コサイン変換係数Ruvを導
出する量子化部4と、所定順序に配列されシリアル順序
に並ぶ前記量子化離散コサイン変換係数Ruvをジグザ
グに並び変えるジグザグ変換部3と、前記量子化離散コ
サイン変換係数Ruvについてハフマン符号化方式を用
いてエントロピー符号化を行うエントロピー符号化部6
を備え、画像データを圧縮する画像符号化装置におい
て、前記画像データにおける画素ブロックの高周波成分
が多いかどうかを検出して置換用制御信号を出すか出さ
ないかを制御し、前記ジグザグ変換部によりジグザグに
並び変えて配列される量子化離散コサイン変換係数Ru
vのうち予め設定した特定の係数以降のAC係数を前記
置換用制御信号に応じて強制的に0に置き換えるかどう
かを制御するデータ処理回路9からなるデータ処理手段
とを設け、前記データ処理回路9からなるデータ処理手
段によって前記画像データにおける画素ブロックの高周
波成分が比較的少ないと判別されたときに前記置換用制
御信号により前記量子化離散コサイン変換係数Ruvに
おけるいくつかのAC係数の0でない部分を0に置き換
えることでその部分のデータを切り捨てて圧縮データ量
を減少させるとともに、前記データ処理回路9からなる
データ処理手段によって前記画像データにおける画素ブ
ロックの高周波成分が比較的多いと判別されたときには
前記量子化離散コサイン変換係数RuvにおけるAC係
数をそのまま出力するようにしたので、効果的なデータ
量圧縮をすることができ、しかも再生画像の視覚的劣化
を確実に抑制できる画像符号化装置を得ることができ
る。
According to the first embodiment of the present invention, each component image Pxy (where the degree xy indicates a two-dimensional matrix position in the image data of each component image) constituting an image block of image data is provided. A discrete cosine transform is performed, and a discrete cosine transform coefficient Suv composed of coefficients having DC components or AC components arranged in a predetermined order (where the order uv indicates a two-dimensional matrix position in the image data of each component image Pxy) A discrete cosine transform unit 2 for deriving a two-dimensional matrix position on the image data corresponding to the order xy), and a discrete cosine transform comprising a coefficient having a DC component or an AC component derived by the discrete cosine transform unit 2 Coefficient Suv is converted to a two-dimensional matrix on the image data A quantizing unit 4 that performs linear quantization with a different step size for each unit to derive a quantized discrete cosine transform coefficient Ruv, and rearranges the quantized discrete cosine transform coefficient Ruv arranged in a predetermined order and in a serial order zigzag. A zigzag transformer 3 and an entropy encoder 6 for performing entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding scheme.
In an image encoding device that compresses image data, detects whether a high-frequency component of a pixel block in the image data is large and controls whether or not to output a replacement control signal, and controls the zigzag conversion unit. Quantized discrete cosine transform coefficients Ru arranged in zigzag
and v. a data processing circuit comprising a data processing circuit 9 for controlling whether or not AC coefficients after a predetermined specific coefficient among v are forcibly replaced with 0 according to the replacement control signal. 9 when the high-frequency component of the pixel block in the image data is determined to be relatively small by the data processing means comprising the non-zero part of some AC coefficients in the quantized discrete cosine transform coefficient Ruv by the replacement control signal. Is replaced by 0 to reduce the amount of compressed data by truncating the data in that portion, and when the data processing means including the data processing circuit 9 determines that the high frequency components of the pixel blocks in the image data are relatively large. Outputting the AC coefficient in the quantized discrete cosine transform coefficient Ruv as it is Since the so that, it is possible to make effective data compression amount, it is possible to obtain a picture coding apparatus that can reliably suppress the visual degradation of the reproduced image.

【0060】実施の形態2.図3は、この発明における
実施の形態2による8×8画素ブロックの画像データを
入力する入力端子から画像データのエッジ成分を検出
し、そのエッジ成分の値と第2のしきい値と第3のしき
い値との比較結果の大小の個数により、効果的な符号量
制御を行う信号を生成するデータ処理回路9の回路構成
を示す図である。
Embodiment 2 FIG. 3 is a block diagram showing an embodiment in which an edge component of image data is detected from an input terminal for inputting image data of an 8 × 8 pixel block according to a second embodiment of the present invention. FIG. 9 is a diagram showing a circuit configuration of a data processing circuit 9 that generates a signal for performing effective code amount control based on the number of comparison results with the threshold value of.

【0061】図3において、10はエッジ検出器、11
は第1の大小比較器、14は高周波成分数設定レジス
タ、15は第2の大小比較器、16は第2のしきい値設
定レジスタ、17は第3のしきい値設定レジスタ、18
は第2のカウンタ、19は第3のカウンタである。この
発明による実施の形態2においては、データ処理回路9
部分以外の構成および動作は、先に述べた実施の形態1
のものと同様である。
In FIG. 3, reference numeral 10 denotes an edge detector;
Is a first magnitude comparator, 14 is a high frequency component number setting register, 15 is a second magnitude comparator, 16 is a second threshold setting register, 17 is a third threshold setting register, 18
Is a second counter, and 19 is a third counter. In the second embodiment according to the present invention, data processing circuit 9
The configuration and operation other than the parts are the same as those of the first embodiment.
It is similar to that of

【0062】次に、この発明による画像符号化装置の動
作を図1および図3を用いて説明する。まず、入力端子
1から入力された画像データは、離散コサイン変換部2
で8×8画素からなるコンポーネント画像Pxy毎に2
次元離散コサイン変換が行われ、その結果得られた64
個の離散コサイン変換係数Suvが量子化部4に送られ
る。量子化部4では、離散コサイン変換係数Suvを量
子化テーブル5の値Quvで割る演算が行われ、ジグザ
グ変換部3に送られる。また、入力端子1から入力され
た画像データはデータ処理回路9にも送られる。
Next, the operation of the image coding apparatus according to the present invention will be described with reference to FIGS. First, the image data input from the input terminal 1 is converted into a discrete cosine transform unit 2
Is 2 for each 8 × 8 pixel component image Pxy
A dimensional discrete cosine transform is performed and the resulting 64
The discrete cosine transform coefficients Suv are sent to the quantization unit 4. In the quantization unit 4, an operation of dividing the discrete cosine transform coefficient Suv by the value Quv in the quantization table 5 is performed, and the result is sent to the zigzag conversion unit 3. The image data input from the input terminal 1 is also sent to the data processing circuit 9.

【0063】データ処理回路9では、入力された画像デ
ータがエッジ検出器10に送られる。エッジ検出器10
では、8×8画素の画像データに対して、例えば3×3
画素毎にラブラシアンのマスク処理を実行する。8×8
画素に対して3×3画素のマスク処理を実行すると、結
果として6×6画素のエッジデータが得られる。得られ
た6×6画素のエッジデータは第1の大小比較器11に
送られ、予めしきい値設定レジスタ16と17に設定さ
れている第2のしきい値および第3のしきい値と大小比
較される。エッジデータが第2のしきい値よりも大き
く、第3のしきい値よりも大きくないとカウンタ18の
値を一つカウントアップする。さらに、エッジデータが
第3のしきい値よりも大きいとカウンタ19の値を一つ
カウントアップする。
In the data processing circuit 9, the input image data is sent to the edge detector 10. Edge detector 10
For example, for image data of 8 × 8 pixels, for example, 3 × 3
The mask processing of the LaBlacian is executed for each pixel. 8x8
When mask processing of 3 × 3 pixels is performed on the pixels, edge data of 6 × 6 pixels is obtained as a result. The obtained edge data of 6 × 6 pixels is sent to the first magnitude comparator 11, and the second and third threshold values set in advance in the threshold value setting registers 16 and 17 are used. They are compared in size. If the edge data is larger than the second threshold and not larger than the third threshold, the value of the counter 18 is incremented by one. Further, when the edge data is larger than the third threshold value, the value of the counter 19 is counted up by one.

【0064】6×6画素についてしきい値判別した結果
のカウンタ18のカウント値とカウンタ19のカウント
値は第2の大小比較器15に送られる。第2の大小比較
器15では、カウンタ18の値とカウンタ19の値と予
め設定した高周波成分数設定レジスタ14の値とを大小
比較する。カウンタ19の値が最大のときは、この8×
8画素の高周波成分が多いと判定し、第2の置換用デー
タ制御信号も第3の置換用データ制御信号もジグザグ変
換部3に出さない。次に、カウンタ18の値が最大のと
きは、この8×8画素の高周波成分がやや多いと判定
し、第2の置換用データ制御信号をジグザグ変換部3に
出す。そして、予め設定した高周波成分数設定レジスタ
14の値が最大のときは、高周波成分が少ないと判定し
て、第3の置換用データ制御信号をジグザグ変換部3に
出す。
The count value of the counter 18 and the count value of the counter 19 as a result of the threshold value determination for 6 × 6 pixels are sent to the second magnitude comparator 15. The second magnitude comparator 15 compares the value of the counter 18 and the value of the counter 19 with the preset value of the high frequency component number setting register 14. When the value of the counter 19 is the maximum, this 8 ×
It is determined that the high frequency components of the eight pixels are large, and neither the second replacement data control signal nor the third replacement data control signal is output to the zigzag converter 3. Next, when the value of the counter 18 is the maximum, it is determined that the high frequency component of this 8 × 8 pixel is slightly large, and the second replacement data control signal is output to the zigzag converter 3. When the preset value of the high frequency component number setting register 14 is the maximum, it is determined that the high frequency component is small, and the third replacement data control signal is output to the zigzag converter 3.

【0065】ジグザグ変換部3では量子化部4で量子化
された量子化離散コサイン変換係数Ruvがシリアル順
序からジグザグ順序に並び変えられる。さらに、前記第
2の大小比較器15から第2の置換用データ制御信号が
出されており、8×8画素の高周波成分がやや多いと判
定されているときには、ジグザグ順序に並び変える際
に、第2の大小比較器15からの第2の置換用データ制
御信号により、この第2の置換用データ制御信号に対応
して予め設定した量子化離散コサイン変換係数Ruvの
うちの特定部分、すなわちジグザグ順序に配列される6
4個の量子化離散コサイン変換係数Ruvのうち、例え
ば48番目以降64番目までの量子化離散コサイン変換
係数RuvのAC係数の値を全て強制的に「0」にす
る。
In the zigzag transformer 3, the quantized discrete cosine transform coefficients Ruv quantized in the quantizer 4 are rearranged from serial order to zigzag order. Further, when a second replacement data control signal is output from the second magnitude comparator 15 and it is determined that the high frequency component of 8 × 8 pixels is slightly large, when rearranging in a zigzag order, In accordance with the second replacement data control signal from the second magnitude comparator 15, a specific portion of the quantized discrete cosine transform coefficient Ruv preset corresponding to the second replacement data control signal, that is, a zigzag 6 arranged in order
Of the four quantized discrete cosine transform coefficients Ruv, for example, all the AC coefficient values of the 48th to 64th quantized discrete cosine transform coefficients Ruv are forcibly set to “0”.

【0066】また、前記第2の大小比較器15から第2
の置換用データ制御信号が出されており、8×8画素の
高周波成分が少ないと判定されているときには、第2の
大小比較器15からの第3の置換用データ制御信号によ
り、この第3の置換用データ制御信号に対応して予め設
定した量子化離散コサイン変換係数Ruvのうちの特定
部分、すなわちジグザグ順序に配列される64個の量子
化離散コサイン変換係数Ruvのうち、例えば36番目
以降64番目までの量子化離散コサイン変換係数Ruv
のAC係数の値を全て強制的に「0」にする。
Further, the second magnitude comparator 15 outputs the second
Is output, and it is determined that the high-frequency component of 8 × 8 pixels is small, the third replacement data control signal from the second magnitude comparator 15 outputs the third replacement data control signal. Out of 64 quantized discrete cosine transform coefficients Ruv arranged in a zigzag order, for example, the 36th or later among the quantized discrete cosine transform coefficients Ruv preset in correspondence with Up to 64th quantized discrete cosine transform coefficient Ruv
Are forcedly set to “0”.

【0067】ジグザグ順序に並び変えられた64個の量
子化された離散コサイン変換係数Ruvは、第1番目の
データをDC(直流)係数、第2番目から第64番目ま
でがAC(交流)係数となる。これらの量子化離散コサ
イン変換係数は、随時、エントロピー符号化部6に送ら
れ、エントロピー符号化部6でハフマン符号化処理が行
われる。
The 64 quantized discrete cosine transform coefficients Ruv rearranged in a zigzag order are a DC (DC) coefficient for the first data, and an AC (AC) coefficient for the second to 64th data. Becomes These quantized discrete cosine transform coefficients are sent to the entropy encoding unit 6 as needed, and the entropy encoding unit 6 performs Huffman encoding processing.

【0068】このように、第2の大小比較器15の出力
によって、ジグザグ変換部3の値をあるところから強制
的に「0」にするので、次段のエントロピー符号化部6
においてエントロピー符号化されるデータ量を節約する
ことができる。そして、前記離散コサイン変換係数Ru
vは画像のエネルギーが低周波領域に集中している点を
考慮して量子化されているものであり、しかも、データ
処理回路9の第2の大小比較器15により第2の置換用
データ制御信号が出力されているときは、画像データに
おける画素ブロックの高周波成分がやや多いときであ
り、第3の置換用データ制御信号が出力されているとき
は、画像データにおける画素ブロックの高周波成分が少
ないときであるから、離散コサイン変換係数RuvのA
C係数値をあるところから強制的に「0」にしても、再
生画像の視覚的劣化は確実に抑制できるものである。
As described above, the value of the zigzag converter 3 is forcibly set to "0" from a certain point by the output of the second magnitude comparator 15, so that the entropy encoder 6 in the next stage
Can save the amount of data entropy-encoded. And the discrete cosine transform coefficient Ru
v is quantized in consideration of the fact that the energy of the image is concentrated in the low frequency region, and the second magnitude comparator 15 of the data processing circuit 9 controls the second replacement data control. When the signal is output, the high frequency component of the pixel block in the image data is slightly high, and when the third replacement data control signal is output, the high frequency component of the pixel block in the image data is low. Since it is time, A of discrete cosine transform coefficient Ruv
Even if the C coefficient value is forcibly set to “0” from a certain point, visual deterioration of the reproduced image can be surely suppressed.

【0069】この実施の形態2では、画像ブロック毎に
離散コサイン変換を行う離散コサイン変換部と、離散コ
サイン変換された係数を係数位置毎に異なるステップサ
イズで線形量子化を行う量子化部と、シリアル順序に並
ぶブロックデータをジグザグに並び変えるジグザグ変換
部と、上記画素ブロック毎にデータ制御信号を生成する
データ処理回路と、データ処理された係数をハフマン符
号化方式を用いてエントロピー符号化を行うエントロピ
ー符号化部を備え、画像データを圧縮する画像符号化装
置において、上記画素ブロック毎に上記画像データのエ
ッジ成分を検出し、上記エッジ成分の値を第2のしきい
値と第3のしきい値と比較し、上記第2のしきい値の比
較結果の個数と上記第3の比較結果の個数に基づいて上
記量子化部で量子化されたAC係数の0でない部分をそ
のまま出力するか、上記量子化されたAC係数の0でな
い部分を強制的に0にして出力するかを制御する上記デ
ータ処理回路を有し、いくつかのAC係数の0でない部
分のデータを切り捨てることによって圧縮データ量を減
少させるものである。
In the second embodiment, a discrete cosine transform unit for performing discrete cosine transform for each image block, and a quantizer for linearly quantizing the discrete cosine transformed coefficients at different step sizes for each coefficient position, A zigzag converter for zigzagging block data arranged in a serial order, a data processing circuit for generating a data control signal for each pixel block, and entropy encoding of the data-processed coefficients using a Huffman encoding scheme In an image coding apparatus including an entropy coding unit for compressing image data, an edge component of the image data is detected for each pixel block, and the value of the edge component is set to a second threshold value and a third threshold value. The threshold value is compared with the threshold value. The data processing circuit for controlling whether the non-zero part of the quantized AC coefficient is output as it is or the non-zero part of the quantized AC coefficient is forcibly set to zero and output. This is to reduce the amount of compressed data by truncating the data in the non-zero portion of the coefficient.

【0070】この発明による実施の形態2によれば、前
記画素ブロック毎に前記画像データのエッジ成分を検出
するエッジ検出器10と、前記エッジ検出器10により
検出されたエッジ成分の値を第2および第3のしきい値
設定レジスタ16,17からの第2および第3のしきい
値と大小比較しエッジ成分の値が前記第2および第3の
しきい値より大きい場合に比較結果出力を導出するしき
い値大小比較器11と、前記第2のしきい値についての
比較結果出力の度数を累積する第2のカウンタ18と、
前記第3のしきい値についての比較結果出力の度数を累
積する第3のカウンタ19とを備え、前記第2のカウン
タ18による前記比較結果出力度数の累積値と、前記第
3のカウンタ19による前記比較結果出力度数の累積値
と、高周波成分数設定レジスタ14の設定値とを比較し
高周波成分が多いかどうかを検出するデータ処理回路
を、前記データ処理手段として用いることにより、第3
のカウンタ19の値が最大のときは画素データにおける
画素ブロックの高周波成分が多いと判別し、第2のカウ
ンタの値が最大のときは画素データにおける画素ブロッ
クの高周波成分がやや多いと判別し、予め設定した高周
波成分数設定レジスタ14の値が最大のときは画素デー
タにおける画素ブロックの高周波成分が少ないと判別す
るようにしたので、画素データにおける画素ブロックの
高周波成分が多いかどうかをより的確に判別して、効果
的なデータ量圧縮をすることができ、しかも再生画像の
視覚的劣化を確実に抑制できる画像符号化装置を得るこ
とができる。
According to the second embodiment of the present invention, an edge detector 10 for detecting an edge component of the image data for each pixel block, and a value of the edge component detected by the edge And compare the magnitude with the second and third thresholds from the third threshold setting registers 16 and 17 and output a comparison result output when the value of the edge component is larger than the second and third thresholds A threshold value comparator 11 to be derived, a second counter 18 for accumulating the frequency of the comparison result output for the second threshold value,
A third counter for accumulating the frequency of the comparison result output with respect to the third threshold value; and a cumulative value of the comparison result output frequency by the second counter and a third counter for accumulating the frequency. By using, as the data processing means, a data processing circuit that compares the cumulative value of the comparison result output frequency with the set value of the high frequency component number setting register 14 and detects whether the number of high frequency components is large,
When the value of the counter 19 is maximum, it is determined that the high frequency component of the pixel block in the pixel data is large, and when the value of the second counter is maximum, it is determined that the high frequency component of the pixel block in the pixel data is slightly high, When the value of the preset high frequency component number setting register 14 is the maximum, it is determined that the high frequency component of the pixel block in the pixel data is small, so it is more accurately determined whether the high frequency component of the pixel block in the pixel data is large. As a result, it is possible to obtain an image encoding device that can effectively compress the data amount and can surely suppress the visual deterioration of the reproduced image.

【0071】実施の形態3.図4は、この発明における
実施の形態3による8×8画素ブロックの画像データを
入力する入力端子から画像データのエッジ成分を検出
し、そのエッジ成分の値と第4のしきい値と第5のしき
い値と第6のしきい値の比較結果の大小の個数により、
効果的な符号量制御を行う信号を生成するデータ処理回
路9の回路構成を示す図である。図4において、10は
エッジ検出器、11は第1の大小比較器、14は高周波
成分数設定レジスタ、15は第2の大小比較器、20は
第4のしきい値設定レジスタ、21は第5のしきい値設
定レジスタ、22は第6のしきい値レジスタ、23は第
4のカウンタ、24は第5のカウンタ、25は第6のカ
ウンタである。この発明による実施の形態3において
は、データ処理回路9部分以外の構成および動作は、先
に述べた実施の形態1のものと同様である。
Embodiment 3 FIG. 4 shows an edge component of image data detected from an input terminal for inputting image data of an 8 × 8 pixel block according to the third embodiment of the present invention, and the value of the edge component, the fourth threshold value, and the fifth threshold value are detected. By the number of comparison results of the threshold value of the sixth threshold and the sixth threshold,
FIG. 3 is a diagram illustrating a circuit configuration of a data processing circuit 9 that generates a signal for performing effective code amount control. 4, reference numeral 10 denotes an edge detector, 11 denotes a first magnitude comparator, 14 denotes a high frequency component number setting register, 15 denotes a second magnitude comparator, 20 denotes a fourth threshold value setting register, and 21 denotes a fourth threshold value setting register. 5 is a threshold setting register, 22 is a sixth threshold register, 23 is a fourth counter, 24 is a fifth counter, and 25 is a sixth counter. In the third embodiment according to the present invention, the configuration and operation other than the data processing circuit 9 are the same as those in the first embodiment.

【0072】次に、この発明による画像符号化装置の動
作を図1および図4を用いて説明する。まず、入力端子
1から入力された画像データは、離散コサイン変換部2
で8×8画素からなるコンポーネント画像Pxy毎に2
次元離散コサイン変換を行われ、その結果得られた64
個の離散コサイン変換係数Suvが量子化部4に送られ
る。量子化部4では、離散コサイン変換DCT係数Su
vを量子化テーブル5の値Quvで割る演算が行われ、
ジグザグ変換部3に送られる。また、入力端子1から入
力された画像データはデータ処理回路9にも送られる。
Next, the operation of the image coding apparatus according to the present invention will be described with reference to FIGS. First, the image data input from the input terminal 1 is converted into a discrete cosine transform unit 2
Is 2 for each 8 × 8 pixel component image Pxy
A dimensional discrete cosine transform is performed and the resulting 64
The discrete cosine transform coefficients Suv are sent to the quantization unit 4. In the quantization unit 4, the discrete cosine transform DCT coefficient Su
An operation of dividing v by the value Quv of the quantization table 5 is performed,
It is sent to the zigzag converter 3. The image data input from the input terminal 1 is also sent to the data processing circuit 9.

【0073】データ処理回路9では、入力された画像デ
ータがエッジ検出器10に送られる。エッジ検出器10
では、8×8画素の画像データに対して、例えば3×3
画素毎にラブラシアンのマスク処理を実行する。8×8
画素に対して3×3画素のマスク処理を実行すると、結
果として6×6画素のエッジデータが得られる。得られ
た6×6画素のエッジデータは第1の大小比較器11に
送られ、予めしきい値設定レジスタ21,22,23に
設定されている第4のしきい値と第5のしきい値と第6
のしきい値と大小比較される。エッジデータが第4のし
きい値よりも大きく、第5のしきい値よりも大きくない
とカウンタ23の値を一つカウントアップする。さら
に、エッジデータが第5のしきい値よりも大きく、第6
のしきい値よりも大きくないとカウンタ24の値を一つ
カウントアップする。さらに、エッジデータが第6のし
きい値よりも大きいとカウンタ25の値を一つカウント
アップする。
In the data processing circuit 9, the input image data is sent to the edge detector 10. Edge detector 10
For example, for image data of 8 × 8 pixels, for example, 3 × 3
The mask processing of the LaBlacian is executed for each pixel. 8x8
When mask processing of 3 × 3 pixels is performed on the pixels, edge data of 6 × 6 pixels is obtained as a result. The obtained edge data of 6.times.6 pixels is sent to the first magnitude comparator 11, and the fourth threshold value and the fifth threshold value set in advance in the threshold value setting registers 21, 22, 23 are set. Value and sixth
Is compared with the threshold value. If the edge data is larger than the fourth threshold and not larger than the fifth threshold, the value of the counter 23 is counted up by one. Further, when the edge data is larger than the fifth threshold value,
If it is not larger than the threshold value, the value of the counter 24 is counted up by one. Further, when the edge data is larger than the sixth threshold value, the value of the counter 25 is counted up by one.

【0074】6×6画素についてしきい値判別した結果
のカウンタ23のカウント値とカウンタ24のカウント
値とカウンタ25のカウント値は第2の大小比較器15
に送られる。第2の大小比較器15では、カウンタ23
の値と、カウンタ24の値と、カウンタ25の値と、予
め設定した高周波成分数設定レジスタ14の値とを、大
小比較する。カウンタ25の値が最大のときは、この8
×8画素の高周波成分が非常に多いと判定し、第4の置
換用データ制御信号も第5の置換用データ制御信号も第
6の置換用データ制御信号もジグザグ変換部3に出さな
い。次に、カウンタ24の値が最大のときは、この8×
8画素の高周波成分が特に多くはないと判定して、第4
の置換用データ制御信号をジグザグ変換部3に出す。次
に、カウンタ23の値が最大のときは、この8×8画素
の高周波成分があまり多くないと判定して、第5の置換
用データ制御信号をジグザグ変換部3に出す。そして、
予め設定した高周波成分数設定レジスタ14の値が最大
のときは、高周波成分が少ないと判定して、第6の置換
用データ制御信号をジグザグ変換部3に出す。
The count value of the counter 23, the count value of the counter 24, and the count value of the counter 25 as a result of the threshold value determination for the 6 × 6 pixels are calculated by the second magnitude comparator 15.
Sent to In the second magnitude comparator 15, the counter 23
, The value of the counter 24, the value of the counter 25, and the value of the preset high frequency component number setting register 14 are compared in magnitude. When the value of the counter 25 is the maximum,
It is determined that the high-frequency component of × 8 pixels is very large, and neither the fourth replacement data control signal nor the fifth replacement data control signal or the sixth replacement data control signal is output to the zigzag converter 3. Next, when the value of the counter 24 is the maximum, this 8 ×
It is determined that the high frequency components of the eight pixels are not particularly large, and the fourth
To the zigzag conversion unit 3. Next, when the value of the counter 23 is the maximum, it is determined that the high frequency component of the 8 × 8 pixels is not so large, and the fifth replacement data control signal is output to the zigzag converter 3. And
When the preset value of the high frequency component number setting register 14 is the maximum, it is determined that the high frequency component is small, and the sixth replacement data control signal is output to the zigzag converter 3.

【0075】ジグザグ変換部3では量子化部4で量子化
された量子化離散コサイン変換係数Ruvがシリアル順
序からジグザグ順序に並び変えられる。さらに、前記第
2の大小比較器15から第4の置換用データ制御信号が
出されており、8×8画素の高周波成分が特に多くはな
いと判定されているときには、ジグザグ順序に並び変え
る際に、第2の大小比較器15からの第4の置換用デー
タ制御信号により、この第4の置換用データ制御信号に
対応して予め設定した量子化離散コサイン変換係数Ru
vのうちの特定部分、すなわちジグザグ順序に配列され
る64個の量子化離散コサイン変換係数Ruvのうち、
例えば58番目以降64番目までの量子化離散コサイン
変換係数RuvのAC係数の値を全て強制的に「0」に
する。
In the zigzag transformation unit 3, the quantized discrete cosine transform coefficients Ruv quantized in the quantization unit 4 are rearranged from a serial order to a zigzag order. Further, when a fourth replacement data control signal is output from the second magnitude comparator 15, and it is determined that the high frequency components of 8 × 8 pixels are not particularly large, the rearrangement in the zigzag order is performed. The quantized discrete cosine transform coefficient Ru set in advance corresponding to the fourth replacement data control signal by the fourth replacement data control signal from the second magnitude comparator 15
v, that is, among 64 quantized discrete cosine transform coefficients Ruv arranged in a zigzag order,
For example, all the AC coefficient values of the 58th to 64th quantized discrete cosine transform coefficients Ruv are forcibly set to “0”.

【0076】また、前記第2の大小比較器15から第5
の置換用データ制御信号が出されており、8×8画素の
高周波成分があまり多くないと判定されているときに
は、第2の大小比較器15からの第5の置換用データ制
御信号により、この第5の置換用データ制御信号に対応
して予め設定した量子化離散コサイン変換係数Ruvの
うちの特定部分、すなわちジグザグ順序に配列される6
4個の量子化離散コサイン変換係数Ruvのうち、例え
ば48番目以降64番目までの量子化離散コサイン変換
係数RuvのAC係数の値を全て強制的に「0」にす
る。
Further, the second magnitude comparator 15 to the fifth magnitude comparator 15
When it is determined that the high-frequency component of 8 × 8 pixels is not so large, the fifth replacement data control signal from the second magnitude comparator 15 outputs A specific part of the quantized discrete cosine transform coefficients Ruv preset corresponding to the fifth replacement data control signal, that is, arranged in a zigzag order 6
Of the four quantized discrete cosine transform coefficients Ruv, for example, all the AC coefficient values of the 48th to 64th quantized discrete cosine transform coefficients Ruv are forcibly set to “0”.

【0077】また、前記第2の大小比較器15から第6
の置換用データ制御信号が出されており、8×8画素の
高周波成分が少ないと判定されているときには、第2の
大小比較器15からの第6の置換用データ制御信号によ
り、この第6の置換用データ制御信号に対応して予め設
定した量子化離散コサイン変換係数Ruvのうちの特定
部分、すなわちジグザグ順序に配列される64個の量子
化離散コサイン変換係数Ruvのうち、例えば36番目
以降64番目までの量子化離散コサイン変換係数Ruv
のAC係数の値を全て強制的に「0」にする。
The second magnitude comparator 15 to the sixth magnitude comparator 15
Is output, and it is determined that the high-frequency component of 8 × 8 pixels is small, the sixth replacement data control signal from the second magnitude comparator 15 determines the sixth replacement data control signal. Out of 64 quantized discrete cosine transform coefficients Ruv arranged in a zigzag order, for example, the 36th or later among the quantized discrete cosine transform coefficients Ruv preset corresponding to the replacement data control signal Up to 64th quantized discrete cosine transform coefficient Ruv
Are forcedly set to “0”.

【0078】ジグザグ順序に並び変えられた64個の量
子化された離散コサイン変換係数Ruvは、第1番目の
データをDC(直流)係数、第2番目から第64番目ま
でがAC(交流)係数となる。これらの量子化離散コサ
イン変換係数は、随時、エントロピー符号化部6に送ら
れ、エントロピー符号化部6でハフマン符号化処理が行
われる。
The 64 quantized discrete cosine transform coefficients Ruv rearranged in the zigzag order are as follows. Becomes These quantized discrete cosine transform coefficients are sent to the entropy encoding unit 6 as needed, and the entropy encoding unit 6 performs Huffman encoding processing.

【0079】このように、第2の大小比較器15の出力
によって、ジグザグ変換部3の値をあるところから強制
的に「0」にするので、次段のエントロピー符号化部6
においてエントロピー符号化されるデータ量を節約する
ことができる。そして、前記離散コサイン変換係数Ru
vは画像のエネルギーが低周波領域に集中している点を
考慮して量子化されているものであり、しかも、データ
処理回路9の第4の大小比較器15により第2の置換用
データ制御信号が出力されているときは、画像データに
おける画素ブロックの高周波成分が特に多くはないとき
であり、第5の置換用データ制御信号が出力されている
ときは、画像データにおける画素ブロックの高周波成分
があまり多くないときであり、第6の置換用データ制御
信号が出力されているときは、画像データにおける画素
ブロックの高周波成分が少ないときであるから、離散コ
サイン変換係数RuvのAC係数値をあるところから強
制的に「0」にしても、再生画像の視覚的劣化は確実に
抑制できるものである。
As described above, the value of the zigzag converter 3 is forcibly set to "0" from a certain point by the output of the second magnitude comparator 15, so that the entropy encoder 6 in the next stage
Can save the amount of data entropy-encoded. And the discrete cosine transform coefficient Ru
v is quantized in consideration of the fact that the energy of the image is concentrated in the low-frequency region, and the second replacement data control by the fourth magnitude comparator 15 of the data processing circuit 9 is performed. When the signal is output, the high frequency component of the pixel block in the image data is not particularly large, and when the fifth replacement data control signal is output, the high frequency component of the pixel block in the image data is output. Is not too large, and the sixth replacement data control signal is output, because the high frequency component of the pixel block in the image data is small, and the AC coefficient value of the discrete cosine transform coefficient Ruv is However, even if it is forcibly set to "0", the visual degradation of the reproduced image can be surely suppressed.

【0080】この実施の形態3では、画像ブロック毎に
離散コサイン変換を行う離散コサイン変換部と、離散コ
サイン変換された係数を係数位置毎に異なるステップサ
イズで線形量子化を行う量子化部と、シリアル順序に並
ぶブロックデータをジグザグに並び変えるジグザグ変換
部と、上記画素ブロック毎にデータ制御信号を生成する
データ処理回路と、データ処理された係数をハフマン符
号化方式を用いてエントロピー符号化を行うエントロピ
ー符号化部を備え、画像データを圧縮する画像符号化装
置において、上記画素ブロック毎に上記画像データのエ
ッジ成分を検出し、上記エッジ成分の値を第4のしきい
値と第5のしきい値と第6のしきい値と比較し、上記第
4のしきい値の比較結果の個数と上記第5のしきい値の
比較結果の個数と上記第6のしきい値の比較結果の個数
に基づいて上記量子化部で量子化されたAC係数の0で
ない部分をそのまま出力するか、上記量子化されたAC
係数の0でない部分を強制的に0にして出力するかを制
御する上記データ処理回路を有し、いくつかのAC係数
の0でない部分のデータを切り捨てることによって圧縮
データ量を減少させるものである。
In the third embodiment, a discrete cosine transform unit for performing a discrete cosine transform for each image block, a quantizing unit for performing a linear quantization on the discrete cosine transformed coefficients with a different step size for each coefficient position, A zigzag converter for zigzagging block data arranged in a serial order, a data processing circuit for generating a data control signal for each pixel block, and entropy encoding of the data-processed coefficients using a Huffman encoding scheme In an image coding apparatus having an entropy coding unit for compressing image data, an edge component of the image data is detected for each pixel block, and a value of the edge component is set to a fourth threshold value and a fifth threshold value. The threshold value is compared with the sixth threshold value, and the number of comparison results of the fourth threshold value and the number of comparison results of the fifth threshold value are calculated. Serial sixth Accept outputs the partial non-zero AC coefficients quantized by the quantization unit based on the number of comparison results of the threshold of the quantized AC
The data processing circuit controls whether the non-zero part of the coefficient is forcibly set to zero and outputs the data, and reduces the amount of compressed data by truncating some non-zero part of the AC coefficient. .

【0081】この発明による実施の形態3によれば、前
記画素ブロック毎に前記画像データのエッジ成分を検出
するエッジ検出器10と、前記エッジ検出器10により
検出されたエッジ成分の値を第4,第5および第6のし
きい値設定レジスタ20,21,22からの第4,第5
および第6のしきい値と大小比較し、エッジ成分の値が
前記第4,第5および第6のしきい値より大きい場合に
比較結果出力を導出するしきい値大小比較器11と、前
記第4のしきい値についての比較結果出力の度数を累積
する第4のカウンタ23と、前記第5のしきい値につい
ての比較結果出力の度数を累積する第5のカウンタ24
と、前記第6のしきい値についての比較結果出力の度数
を累積する第6のカウンタ25とを備え、前記第4のカ
ウンタ23による前記比較結果出力度数の累積値と、前
記第5のカウンタ24による前記比較結果出力度数の累
積値と、前記第6のカウンタ25による前記比較結果出
力度数の累積値と、高周波成分数設定レジスタ14の設
定値と比較し高周波成分が多いかどうかを検出するデー
タ処理回路9を、前記データ処理手段として用いること
により、第6のカウンタ25の値が最大のときは画素デ
ータにおける画素ブロックの高周波成分が非常に多いと
判別し、第5のカウンタ24の値が最大のときは画素デ
ータにおける画素ブロックの高周波成分が特に多くはな
いと判別し、第4のカウンタ23の値が最大のときは画
素データにおける画素ブロックの高周波成分があまり多
くないと判別し、予め設定した高周波成分数設定レジス
タ14の値が最大のときは画素データにおける画素ブロ
ックの高周波成分が少ないと判別するようにしたので、
画素データにおける画素ブロックの高周波成分が多いか
どうかを更に的確かつ綿密に判別して、効果的なデータ
量圧縮をすることができ、しかも再生画像の視覚的劣化
を確実に抑制できる画像符号化装置を得ることができ
る。
According to the third embodiment of the present invention, an edge detector 10 for detecting an edge component of the image data for each pixel block, and a value of the edge component detected by the edge , Fifth and sixth threshold setting registers 20, 21, and 22 from the fourth and fifth threshold setting registers.
A threshold magnitude comparator 11 for comparing the magnitude with the threshold value and the sixth threshold value and deriving a comparison result output when the value of the edge component is greater than the fourth, fifth and sixth threshold values; A fourth counter 23 for accumulating the frequency of the comparison result output for the fourth threshold value, and a fifth counter 24 for accumulating the frequency of the comparison result output for the fifth threshold value
And a sixth counter 25 for accumulating the frequency of the comparison result output with respect to the sixth threshold value, wherein the cumulative value of the comparison result output frequency by the fourth counter 23 and the fifth counter 24, the cumulative value of the comparison result output frequency by the sixth counter 25, and the set value of the high frequency component number setting register 14 to detect whether or not the high frequency component is large. By using the data processing circuit 9 as the data processing means, when the value of the sixth counter 25 is maximum, it is determined that the high frequency component of the pixel block in the pixel data is extremely large, and the value of the fifth counter 24 is determined. Is maximum, it is determined that the high frequency components of the pixel block in the pixel data are not particularly large, and when the value of the fourth counter 23 is maximum, High-frequency component of the unit block is determined to be not too much, because if the value of the high frequency component number setting register 14 is the maximum set in advance was set to determine the high frequency component of the pixel block in the pixel data is small,
An image encoding device that can more accurately and precisely determine whether or not a pixel block has a large number of high-frequency components in pixel data, can effectively compress the amount of data, and can reliably suppress visual degradation of a reproduced image. Can be obtained.

【0082】[0082]

【発明の効果】第1の発明によれば、画像データの画像
ブロックを構成する各コンポーネント画像Pxy(ここ
で、次数xyは各コンポーネント画像の前記画像データ
における2次元位置を示す)毎に離散コサイン変換を行
い、所定の順序に配列されたDC成分またはAC成分を
有する係数からなる離散コサイン変換係数Suv(ここ
で、次数uvは各コンポーネント画像Pxyの前記画像
データにおける2次元位置を示す次数xyに対応する前
記画像データ上の2次元位置を示す)を導出する離散コ
サイン変換部と、前記離散コサイン変換部によって導出
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suvを前記画像データ上の2次元
位置毎に異なるステップサイズで線形量子化を行い量子
化離散コサイン変換係数Ruvを導出する量子化部と、
所定順序に配列されシリアル順序に並ぶ前記量子化離散
コサイン変換係数Ruvをジグザグに並び変えるジグザ
グ変換部と、前記量子化離散コサイン変換係数Ruvに
ついてハフマン符号化方式を用いてエントロピー符号化
を行うエントロピー符号化部を備え、画像データを圧縮
する画像符号化装置において、前記画像データにおける
画素ブロックの高周波成分が多いかどうかを検出して置
換用制御信号を出すか出さないかを制御し、前記量子化
離散コサイン変換係数Ruvのうち予め設定した部分の
AC係数を前記置換用制御信号に応じて強制的に0に置
き換えるかどうかを制御するデータ処理手段を設け、前
記データ処理手段によって前記画像データにおける画素
ブロックの高周波成分が比較的少ないと判別されたとき
に前記置換用制御信号により前記量子化離散コサイン変
換係数RuvにおけるいくつかのAC係数の0でない部
分を0に置き換えることでその部分のデータを切り捨て
て圧縮データ量を減少させるとともに、前記データ処理
手段によって前記画像データにおける画素ブロックの高
周波成分が比較的多いと判別されたときには前記量子化
離散コサイン変換係数RuvにおけるAC係数をそのま
ま出力するようにしたので、効果的なデータ量圧縮をす
ることができ、しかも再生画像の視覚的劣化を確実に抑
制できる画像符号化装置を得ることができる。
According to the first aspect of the present invention, a discrete cosine is used for each component image Pxy (where the order xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data. The transform is performed, and a discrete cosine transform coefficient Suv composed of coefficients having DC components or AC components arranged in a predetermined order (where the order uv is an order xy indicating a two-dimensional position in the image data of each component image Pxy) A discrete cosine transform unit for deriving a corresponding two-dimensional position on the image data), and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. Performs linear quantization with a different step size for each of the above two-dimensional positions, and performs quantization discrete cosine transformation. A quantization unit for deriving the coefficients Ruv,
A zigzag transform unit that arranges the quantized discrete cosine transform coefficients Ruv arranged in a predetermined order and arranged in a serial order zigzag; An image coding apparatus for compressing image data, comprising detecting whether or not a high-frequency component of a pixel block in the image data is large and controlling whether or not to output a replacement control signal; Data processing means for controlling whether the AC coefficient of a preset portion of the discrete cosine transform coefficient Ruv is forcibly replaced with 0 according to the control signal for replacement, and a pixel in the image data by the data processing means; When it is determined that the high frequency component of the block is relatively small, the replacement control is performed. By replacing non-zero parts of some AC coefficients in the quantized discrete cosine transform coefficients Ruv with 0, the data in those parts is truncated to reduce the amount of compressed data, and the data processing means reduces the amount of compressed data. When it is determined that the high frequency component of the pixel block is relatively large, the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is, so that it is possible to effectively compress the data amount, and furthermore, to reproduce the reproduced image. It is possible to obtain an image encoding device that can reliably suppress visual deterioration.

【0083】第2の発明によれば、画像データの画像ブ
ロックを構成する各コンポーネント画像Pxy(ここ
で、次数xyは各コンポーネント画像の前記画像データ
における2次元位置を示す)毎に離散コサイン変換を行
い、所定の順序に配列されたDC成分またはAC成分を
有する係数からなる離散コサイン変換係数Suv(ここ
で、次数uvは各コンポーネント画像Pxyの前記画像
データにおける2次元位置を示す次数xyに対応する前
記画像データ上の2次元位置を示す)を導出する離散コ
サイン変換部と、前記離散コサイン変換部によって導出
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suvを前記画像データ上の2次元
位置毎に異なるステップサイズで線形量子化を行い量子
化離散コサイン変換係数Ruvを導出する量子化部と、
所定順序に配列されシリアル順序に並ぶ前記量子化離散
コサイン変換係数Ruvをジグザグに並び変えるジグザ
グ変換部と、前記量子化離散コサイン変換係数Ruvに
ついてハフマン符号化方式を用いてエントロピー符号化
を行うエントロピー符号化部を備え、画像データを圧縮
する画像符号化装置において、前記画像データにおける
画素ブロックの高周波成分が多いかどうかを検出して置
換用制御信号を出すか出さないかを制御し、前記配列さ
れた量子化離散コサイン変換係数Ruvのうち予め設定
した特定の係数以降のAC係数を前記置換用制御信号に
応じて強制的に0に置き換えるかどうかを制御するデー
タ処理手段を設け、前記データ処理手段によって前記画
像データにおける画素ブロックの高周波成分が比較的少
ないと判別されたときに前記置換用制御信号により前記
量子化離散コサイン変換係数Ruvにおけるいくつかの
AC係数の0でない部分を0に置き換えることでその部
分のデータを切り捨てて圧縮データ量を減少させるとと
もに、前記データ処理手段によって前記画像データにお
ける画素ブロックの高周波成分が比較的多いと判別され
たときには前記量子化離散コサイン変換係数Ruvにお
けるAC係数をそのまま出力するようにしたので、効果
的なデータ量圧縮をすることができ、しかも再生画像の
視覚的劣化を確実に抑制できる画像符号化装置を得るこ
とができる。
According to the second aspect of the present invention, discrete cosine transform is performed for each component image Pxy (where the order xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data. And a discrete cosine transform coefficient Suv composed of coefficients having a DC component or an AC component arranged in a predetermined order (where the order uv corresponds to the order xy indicating a two-dimensional position in the image data of each component image Pxy). A discrete cosine transform unit for deriving the two-dimensional position on the image data) and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. Quantized discrete cosine transform by performing linear quantization with a different step size for each two-dimensional position A quantizer for deriving a number Ruv,
A zigzag transform unit for arranging the quantized discrete cosine transform coefficients Ruv arranged in a predetermined order and arranged in a serial order zigzag; and an entropy code for performing entropy encoding on the quantized discrete cosine transform coefficients Ruv using a Huffman coding method. An image coding apparatus for compressing image data, comprising detecting whether or not a high-frequency component of a pixel block in the image data is large, and controlling whether or not to output a replacement control signal. Data processing means for controlling whether AC coefficients subsequent to a predetermined specific coefficient among the quantized discrete cosine transform coefficients Ruv are forcibly replaced with 0 according to the control signal for replacement, It was determined that the high frequency component of the pixel block in the image data was relatively small At the same time, the non-zero part of some AC coefficients in the quantized discrete cosine transform coefficient Ruv is replaced with zero by the replacement control signal, thereby cutting off the data of the part to reduce the amount of compressed data and performing the data processing. When it is determined by the means that the high frequency component of the pixel block in the image data is relatively large, the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is, so that effective data amount compression can be performed. It is possible to obtain an image encoding device that can surely suppress visual deterioration of a reproduced image.

【0084】第3の発明によれば、画像データの画像ブ
ロックを構成する各コンポーネント画像Pxy(ここ
で、次数xyは各コンポーネント画像の前記画像データ
における2次元位置を示す)毎に離散コサイン変換を行
い、所定の順序に配列されたDC成分またはAC成分を
有する係数からなる離散コサイン変換係数Suv(ここ
で、次数uvは各コンポーネント画像Pxyの前記画像
データにおける2次元位置を示す次数xyに対応する前
記画像データ上の2次元位置を示す)を導出する離散コ
サイン変換部と、前記離散コサイン変換部によって導出
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suvを前記画像データ上の2次元
位置毎に異なるステップサイズで線形量子化を行い量子
化離散コサイン変換係数Ruvを導出する量子化部と、
所定順序に配列されシリアル順序に並ぶ前記量子化離散
コサイン変換係数Ruvをジグザグに並び変えるジグザ
グ変換部と、前記量子化離散コサイン変換係数Ruvに
ついてハフマン符号化方式を用いてエントロピー符号化
を行うエントロピー符号化部を備え、画像データを圧縮
する画像符号化装置において、前記画像データにおける
画素ブロックの高周波成分が多いかどうかを検出して置
換用制御信号を出すか出さないかを制御し、前記ジグザ
グ変換部によりジグザグに並び変えて配列される前記量
子化離散コサイン変換係数Ruvのうち予め設定した部
分のAC係数を前記置換用制御信号に応じて強制的に0
に置き換えるかどうかを制御するデータ処理手段を設
け、前記データ処理手段によって前記画像データにおけ
る画素ブロックの高周波成分が比較的少ないと判別され
たときに前記置換用制御信号により前記量子化離散コサ
イン変換係数RuvにおけるいくつかのAC係数の0で
ない部分を0に置き換えることでその部分のデータを切
り捨てて圧縮データ量を減少させるとともに、前記デー
タ処理手段によって前記画像データにおける画素ブロッ
クの高周波成分が比較的多いと判別されたときには前記
量子化離散コサイン変換係数RuvにおけるAC係数を
そのまま出力するようにしたので、効果的なデータ量圧
縮をすることができ、しかも再生画像の視覚的劣化を確
実に抑制できる画像符号化装置を得ることができる。
According to the third aspect of the present invention, discrete cosine transform is performed for each component image Pxy (where the degree xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data. And a discrete cosine transform coefficient Suv composed of coefficients having a DC component or an AC component arranged in a predetermined order (where the order uv corresponds to an order xy indicating a two-dimensional position in the image data of each component image Pxy). A discrete cosine transform unit for deriving a two-dimensional position on the image data) and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. Quantized discrete cosine transform by performing linear quantization with a different step size for each two-dimensional position A quantizer for deriving a number Ruv,
A zigzag transform unit that arranges the quantized discrete cosine transform coefficients Ruv arranged in a predetermined order and arranged in a serial order zigzag; An image coding apparatus for compressing image data, comprising detecting whether a high-frequency component of a pixel block in the image data is large and controlling whether or not to output a replacement control signal, and performing the zigzag conversion. A part of the quantized discrete cosine transform coefficients Ruv arranged in zigzag by the unit is forced to 0 in accordance with the replacement control signal.
A data processing means for controlling whether or not to replace the quantized discrete cosine transform coefficient by the replacement control signal when the data processing means determines that the high frequency component of the pixel block in the image data is relatively small. By replacing non-zero parts of some AC coefficients in Ruv with 0, the data in those parts is truncated to reduce the amount of compressed data, and the data processing means has relatively large high-frequency components of pixel blocks in the image data. When it is determined that the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is, an effective data amount compression can be performed, and furthermore, an image which can surely suppress the visual deterioration of the reproduced image can be obtained. An encoding device can be obtained.

【0085】第4の発明によれば、画像データの画像ブ
ロックを構成する各コンポーネント画像Pxy(ここ
で、次数xyは各コンポーネント画像の前記画像データ
における2次元位置を示す)毎に離散コサイン変換を行
い、所定の順序に配列されたDC成分またはAC成分を
有する係数からなる離散コサイン変換係数Suv(ここ
で、次数uvは各コンポーネント画像Pxyの前記画像
データにおける2次元位置を示す次数xyに対応する前
記画像データ上の2次元位置を示す)を導出する離散コ
サイン変換部と、前記離散コサイン変換部によって導出
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suvを前記画像データ上の2次元
位置毎に異なるステップサイズで線形量子化を行い量子
化離散コサイン変換係数Ruvを導出する量子化部と、
所定順序に配列されシリアル順序に並ぶ前記量子化離散
コサイン変換係数Ruvをジグザグに並び変えるジグザ
グ変換部と、前記量子化離散コサイン変換係数Ruvに
ついてハフマン符号化方式を用いてエントロピー符号化
を行うエントロピー符号化部を備え、画像データを圧縮
する画像符号化装置において、前記画像データにおける
画素ブロックの高周波成分が多いかどうかを検出して置
換用制御信号を出すか出さないかを制御し、前記ジグザ
グ変換部によりジグザグに並び変えて配列される量子化
離散コサイン変換係数Ruvのうち予め設定した特定の
係数以降のAC係数を前記置換用制御信号に応じて強制
的に0に置き換えるかどうかを制御するデータ処理手段
を設け、前記データ処理手段によって前記画像データに
おける画素ブロックの高周波成分が比較的少ないと判別
されたときに前記置換用制御信号により前記量子化離散
コサイン変換係数RuvにおけるいくつかのAC係数の
0でない部分を0に置き換えることでその部分のデータ
を切り捨てて圧縮データ量を減少させるとともに、前記
データ処理手段によって前記画像データにおける画素ブ
ロックの高周波成分が比較的多いと判別されたときには
前記量子化離散コサイン変換係数RuvにおけるAC係
数をそのまま出力するようにしたので、効果的なデータ
量圧縮をすることができ、しかも再生画像の視覚的劣化
を確実に抑制できる画像符号化装置を得ることができ
る。
According to the fourth aspect, the discrete cosine transform is performed for each component image Pxy (where the degree xy indicates the two-dimensional position of each component image in the image data) constituting the image block of the image data. And a discrete cosine transform coefficient Suv composed of coefficients having a DC component or an AC component arranged in a predetermined order (where the order uv corresponds to the order xy indicating a two-dimensional position in the image data of each component image Pxy). A discrete cosine transform unit for deriving the two-dimensional position on the image data) and a discrete cosine transform coefficient Suv composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit. Quantized discrete cosine transform by performing linear quantization with a different step size for each two-dimensional position A quantizer for deriving a number Ruv,
A zigzag transform unit that arranges the quantized discrete cosine transform coefficients Ruv arranged in a predetermined order and arranged in a serial order zigzag; An image coding apparatus for compressing image data, comprising detecting whether a high-frequency component of a pixel block in the image data is large and controlling whether or not to output a replacement control signal; Data for controlling whether the AC coefficients after a predetermined coefficient among the quantized discrete cosine transform coefficients Ruv rearranged in zigzag by the unit are forcibly replaced with 0 according to the control signal for replacement. Processing means, and a pixel block in the image data is provided by the data processing means. When it is determined that the high frequency component is relatively small, the non-zero part of some AC coefficients in the quantized discrete cosine transform coefficient Ruv is replaced with 0 by the replacement control signal, thereby cutting off the data of that part. Since the amount of compressed data is reduced, and when the data processing unit determines that the high frequency component of the pixel block in the image data is relatively large, the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is. In addition, it is possible to obtain an image encoding device that can effectively compress the data amount and can surely suppress the visual deterioration of the reproduced image.

【0086】第5の発明に係る画像符号化装置では、前
記データ処理手段として、前記画素ブロック毎に前記画
像データのエッジ成分を検出し、前記エッジ成分の値を
しきい値と比較して、その比較結果の累積値に基づき置
換用制御信号を導出するデータ処理回路を用いたので、
画素データにおける画素ブロックの高周波成分が多いか
どうかを的確に判別して、効果的なデータ量圧縮をする
ことができ、しかも再生画像の視覚的劣化を確実に抑制
できる画像符号化装置を得ることができる。
In the image encoding apparatus according to a fifth aspect, the data processing means detects an edge component of the image data for each pixel block, compares the edge component value with a threshold value, Since a data processing circuit that derives a replacement control signal based on the accumulated value of the comparison result was used,
To obtain an image coding apparatus capable of accurately determining whether a pixel block has a large number of high-frequency components in pixel data, effectively compressing the amount of data, and reliably suppressing visual deterioration of a reproduced image. Can be.

【0087】第6の発明によれば、前記画素ブロック毎
に前記画像データのエッジ成分を検出するエッジ検出器
と、前記エッジ検出器により検出されたエッジ成分の値
をしきい値設定レジスタからのしきい値と大小比較しエ
ッジ成分の値が前記しきい値より大きい場合に比較結果
出力を導出するしきい値大小比較器と、前記しきい値比
較結果出力の度数を累積するカウンタとを備え、前記カ
ウンタによる前記比較結果出力度数の累積値を高周波成
分数設定レジスタの設定値とを比較し高周波成分が多い
かどうかを検出するデータ処理回路を、前記データ処理
手段として用いたので、画素データにおける画素ブロッ
クの高周波成分が多いかどうかを的確に判別して、効果
的なデータ量圧縮をすることができ、しかも再生画像の
視覚的劣化を確実に抑制できる画像符号化装置を得るこ
とができる。
According to the sixth aspect, an edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector is supplied from a threshold setting register. A threshold value comparator for comparing the threshold value with the threshold value to derive a comparison result output when the value of the edge component is larger than the threshold value; and a counter for accumulating the frequency of the threshold comparison result output. Since the data processing circuit for comparing the cumulative value of the comparison result output frequency by the counter with the set value of the high frequency component number setting register and detecting whether the high frequency component is large is used as the data processing means, the pixel data It is possible to accurately determine whether there is a large amount of high-frequency components in the pixel block in, effectively compress the amount of data, and ensure visual deterioration of the reproduced image. It is possible to obtain a picture coding apparatus can be suppressed.

【0088】第7の発明によれば、前記データ処理手段
として、前記画素ブロック毎に前記画像データのエッジ
成分を検出し、前記エッジ成分の値をしきい値と比較
し、その比較結果の累積値に基づいてデータ制御信号を
導出するデータ処理回路を用いたものにおいて、前記し
きい値を複数設定し、それぞれのしきい値に係る比較結
果の累積値に基づき複数の異なるデータ制御信号を導出
して、前記複数のデータ制御信号のそれぞれに応じて異
なる部分の前記量子化離散コサイン変換係数RuvのA
C係数を強制的に0とするようにしたので、画素データ
における画素ブロックの高周波成分が多いかどうかを的
確に判別して、効果的なデータ量圧縮をすることがで
き、しかも再生画像の視覚的劣化を確実に抑制できる画
像符号化装置を得ることができる。
According to the seventh aspect, the data processing means detects an edge component of the image data for each pixel block, compares the value of the edge component with a threshold value, and accumulates the comparison result. In a device using a data processing circuit that derives a data control signal based on a value, a plurality of the thresholds are set, and a plurality of different data control signals are derived based on an accumulated value of a comparison result related to each threshold. Then, A of the quantized discrete cosine transform coefficient Ruv of a different part according to each of the plurality of data control signals
Since the C coefficient is forcibly set to 0, it is possible to accurately determine whether or not there is a large number of high frequency components in the pixel block in the pixel data, and to effectively compress the data amount. It is possible to obtain an image encoding device capable of reliably suppressing the target deterioration.

【0089】第8の発明によれば、前記データ処理手段
として、前記画素ブロック毎に前記画像データのエッジ
成分を検出し、前記エッジ成分の値を第2のしきい値お
よびこの第2のしきい値と異なる第3のしきい値と比較
し、前記第2のしきい値についての比較結果の累積値お
よび前記第3のしきい値についての比較結果の累積値に
基づいて第2および第3のデータ制御信号を導出するデ
ータ処理回路を用いたので、画素データにおける画素ブ
ロックの高周波成分が多いかどうかをより的確に判別し
て、効果的なデータ量圧縮をすることができ、しかも再
生画像の視覚的劣化を確実に抑制できる画像符号化装置
を得ることができる。
According to the eighth aspect, as the data processing means, an edge component of the image data is detected for each pixel block, and the value of the edge component is set to a second threshold value and the second threshold value. Comparing the threshold value with a third threshold value different from the threshold value, based on the cumulative value of the comparison result for the second threshold value and the cumulative value of the comparison result for the third threshold value. Since the data processing circuit for deriving the data control signal of No. 3 is used, it is possible to more accurately determine whether or not the pixel block contains a large number of high frequency components in the pixel data, and to effectively compress the data amount. It is possible to obtain an image encoding device that can surely suppress visual deterioration of an image.

【0090】第9の発明によれば、前記画素ブロック毎
に前記画像データのエッジ成分を検出するエッジ検出器
と、前記エッジ検出器により検出されたエッジ成分の値
を第2および第3のしきい値設定レジスタからの第2お
よび第3のしきい値と大小比較しエッジ成分の値が前記
第2および第3のしきい値より大きい場合に比較結果出
力を導出するしきい値大小比較器と、前記第2のしきい
値についての比較結果出力の度数を累積する第2のカウ
ンタと、前記第3のしきい値についての比較結果出力の
度数を累積する第3のカウンタとを備え、前記第2のカ
ウンタによる前記比較結果出力度数の累積値と、前記第
3のカウンタによる前記比較結果出力度数の累積値と、
高周波成分数設定レジスタの設定値とを比較し高周波成
分が多いかどうかを検出するデータ処理回路を、前記デ
ータ処理手段として用いたので、画素データにおける画
素ブロックの高周波成分が多いかどうかをより的確かつ
綿密に判別して、効果的なデータ量圧縮をすることがで
き、しかも再生画像の視覚的劣化を確実に抑制できる画
像符号化装置を得ることができる。
According to the ninth aspect, an edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector is set to a second and a third value. A threshold magnitude comparator for comparing the magnitude of the edge component with the second and third thresholds from the threshold value setting register and deriving a comparison result output when the value of the edge component is greater than the second and third thresholds And a second counter for accumulating the frequency of the comparison result output for the second threshold value, and a third counter for accumulating the frequency of the comparison result output for the third threshold value, A cumulative value of the comparison result output frequency by the second counter, a cumulative value of the comparison result output frequency by the third counter,
Since a data processing circuit that compares the value set in the high frequency component number setting register and detects whether the number of high frequency components is large is used as the data processing means, it is more accurate to determine whether the pixel block in the pixel data has many high frequency components. In addition, it is possible to obtain an image encoding device which can discriminate carefully and can effectively compress the data amount and can surely suppress the visual deterioration of the reproduced image.

【0091】第10の発明によれば、前記データ処理手
段として、前記画素ブロック毎に前記画像データのエッ
ジ成分を検出し、前記エッジ成分の値を第4のしきい値
およびこの第4のしきい値と異なる第5のしきい値なら
びに第4,第5のしきい値と異なる第6のしきい値と比
較し、前記第4のしきい値についての比較結果の累積値
および前記第5のしきい値についての比較結果の累積値
ならびに前記第6のしきい値についての比較結果の累積
値に基づき第4および第5ならびに第6のデータ制御信
号を導出するデータ処理回路を用いたので、画素データ
における画素ブロックの高周波成分が多いかどうかを更
に的確かつ綿密に判別して、効果的なデータ量圧縮をす
ることができ、しかも再生画像の視覚的劣化を確実に抑
制できる画像符号化装置を得ることができる。
According to the tenth aspect, as the data processing means, an edge component of the image data is detected for each pixel block, and the value of the edge component is set to a fourth threshold value and the fourth threshold value. A fifth threshold value different from the threshold value and a sixth threshold value different from the fourth and fifth threshold values, and a cumulative value of a comparison result of the fourth threshold value and the fifth threshold value are compared. Since the data processing circuit that derives the fourth, fifth, and sixth data control signals based on the cumulative value of the comparison result for the threshold value and the cumulative value of the comparison result for the sixth threshold value is used. An image code that can more accurately and precisely determine whether or not a pixel block has a large number of high-frequency components in pixel data, can effectively compress the amount of data, and can reliably suppress visual deterioration of a reproduced image. It can be obtained device.

【0092】第11の発明によれば、前記画素ブロック
毎に前記画像データのエッジ成分を検出するエッジ検出
器と、前記エッジ検出器により検出されたエッジ成分の
値を第4,第5および第6のしきい値設定レジスタから
の第4,第5および第6のしきい値と大小比較しエッジ
成分の値が前記第4,第5および第6のしきい値より大
きい場合に比較結果出力を導出するしきい値大小比較器
と、前記第4のしきい値についての比較結果出力の度数
を累積する第4のカウンタと、前記第5のしきい値につ
いての比較結果出力の度数を累積する第5のカウンタ
と、前記第6のしきい値についての比較結果出力の度数
を累積する第6のカウンタとを備え、前記第4のカウン
タによる前記比較結果出力度数の累積値と、前記第5の
カウンタによる前記比較結果出力度数の累積値と、前記
第6のカウンタによる前記比較結果出力度数の累積値
と、高周波成分数設定レジスタの設定値と比較し高周波
成分が多いかどうかを検出するデータ処理回路を、前記
データ処理手段として用いたので、画素データにおける
画素ブロックの高周波成分が多いかどうかを更に的確か
つ綿密に判別して、効果的なデータ量圧縮をすることが
でき、しかも再生画像の視覚的劣化を確実に抑制できる
画像符号化装置を得ることができる。
According to the eleventh aspect, an edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector is set to a fourth, fifth, and fifth values. The threshold value is compared with the fourth, fifth, and sixth threshold values from the sixth threshold setting register, and if the value of the edge component is larger than the fourth, fifth, and sixth threshold values, the comparison result is output. , A fourth counter for accumulating the frequency of the comparison result output for the fourth threshold value, and accumulating the frequency of the comparison result output for the fifth threshold value And a sixth counter that accumulates the frequency of the comparison result output for the sixth threshold value, wherein the cumulative value of the comparison result output frequency by the fourth counter is 5 by the counter A data processing circuit that compares the accumulated value of the comparison result output frequency, the accumulated value of the comparison result output frequency by the sixth counter, and the set value of the high frequency component number setting register to detect whether or not the high frequency component is large; Since it is used as the data processing means, it is possible to more accurately and precisely determine whether or not the pixel data has a large number of high-frequency components in the pixel data, and to effectively compress the data amount. , An image encoding apparatus capable of surely suppressing the above can be obtained.

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

【図1】 この発明の画像符号化装置全体構成を示すブ
ロックである。
FIG. 1 is a block diagram illustrating an overall configuration of an image encoding device according to the present invention.

【図2】 この発明における実施の形態1による効果的
な符号量制御を行うデータ処理回路の回路構成を示す図
である。
FIG. 2 is a diagram illustrating a circuit configuration of a data processing circuit that performs effective code amount control according to the first embodiment of the present invention.

【図3】 この発明における実施の形態2による効果的
な符号量制御を行うデータ処理回路の回路構成を示す図
である。
FIG. 3 is a diagram showing a circuit configuration of a data processing circuit for performing effective code amount control according to a second embodiment of the present invention;

【図4】 この発明における実施の形態3による効果的
な符号量制御を行うデータ処理回路の回路構成を示す図
である。
FIG. 4 is a diagram showing a circuit configuration of a data processing circuit for performing effective code amount control according to a third embodiment of the present invention.

【図5】 従来の画像符号化装置を示す基本ブロックで
ある。
FIG. 5 is a basic block illustrating a conventional image encoding device.

【図6】 画像符号化装置における8×8画素ブロック
の2次元離散コサイン変換および量子化した後の量子化
DCT係数の分布グラフを示す図である。
FIG. 6 is a diagram illustrating a distribution graph of quantized DCT coefficients after two-dimensional discrete cosine transform and quantization of an 8 × 8 pixel block in the image encoding device.

【図7】 画像符号化装置におけるDC係数のグループ
化回路を示すブロック図である。
FIG. 7 is a block diagram illustrating a DC coefficient grouping circuit in the image encoding device.

【図8】 画像符号化装置におけるDC係数の差分処理
の概念を示す図である。
FIG. 8 is a diagram illustrating the concept of DC coefficient difference processing in the image encoding device.

【図9】 画像符号化装置におけるDC係数のグループ
化を行うためのグループ化表を示す図である。
FIG. 9 is a diagram showing a grouping table for performing grouping of DC coefficients in the image encoding device.

【図10】 画像符号化装置におけるAC係数のグルー
プ化回路を示すブロック図である。
FIG. 10 is a block diagram illustrating an AC coefficient grouping circuit in the image encoding device.

【図11】 画像符号化装置における8×8画素ブロッ
クのジグザグスキャン順序を示す図である。
FIG. 11 is a diagram illustrating a zigzag scan order of an 8 × 8 pixel block in the image encoding device.

【図12】 画像符号化装置におけるAC係数のグルー
プ化を行うためのグループ化表を示す図である。
FIG. 12 is a diagram illustrating a grouping table for performing grouping of AC coefficients in the image encoding device.

【図13】 画像符号化装置におけるDC係数およびA
C係数のハフマン符号化を示すブロック図である。
FIG. 13 shows a DC coefficient and A in an image encoding apparatus.
It is a block diagram which shows Huffman coding of C coefficient.

【図14】 画像符号化装置におけるDC係数の差分符
号化を行うための符号表を示す図である。
FIG. 14 is a diagram illustrating a code table for performing differential coding of DC coefficients in the image coding device.

【図15】 画像符号化装置におけるAC係数およびD
C係数がグループ化される手順を示す図である。
FIG. 15 shows AC coefficients and D in an image coding apparatus.
It is a figure showing the procedure in which C coefficient is grouped.

【図16】 画像符号化装置におけるAC係数の符号化
を行うための符号表を示す図である。
FIG. 16 is a diagram illustrating a code table for encoding AC coefficients in the image encoding device.

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

1 入力端子、2 離散コサイン変換部(DCT)、3
ジグザグ変換部、4量子化部、5 量子化テーブル、
6 エントロピー符号化部、7 符号化テーブル、8
出力端子、9 データ処理回路、10 エッジ検出器、
11 大小比較器、12 しきい値設定レジスタ、13
カウンタ、14 高周波成分数設定レジスタ、15
大小比較器、16,17 しきい値設定レジスタ、1
8,19カウンタ、20,21,22 しきい値設定レ
ジスタ、23,24,25 カウンタ、60 グループ
化部、61 ブロック遅延部、62 DC差分器、63
グループ化部、65 1次元ハフマン符号化部、66
DC符号テーブル部、67 DC付加ビット結合部、6
8 DC符号化信号とAC符号化信号とを結合する結合
回路、70 ハフマン符号化部、86 Ruv信号の入
力端子、92判定部、93 ランレングスカウンタ、9
4 グループ化部、95 2次元ハフマン符号化部、9
6 AC符号化部、97 AC付加ビット結合部。
1 input terminal, 2 discrete cosine transform unit (DCT), 3
A zigzag conversion unit, a 4 quantization unit, a 5 quantization table,
6 entropy coding section, 7 coding table, 8
Output terminal, 9 data processing circuit, 10 edge detector,
11 large / small comparator, 12 threshold setting register, 13
Counter, 14 high frequency component number setting register, 15
Large / small comparator, 16, 17 threshold setting register, 1
8, 19 counter, 20, 21, 22 threshold setting register, 23, 24, 25 counter, 60 grouping unit, 61 block delay unit, 62 DC differentiator, 63
Grouping unit, 65 one-dimensional Huffman coding unit, 66
DC code table section, 67 DC additional bit combining section, 6
8 Coupling circuit for coupling DC coded signal and AC coded signal, 70 Huffman coding section, 86 Ruv signal input terminal, 92 determination section, 93 run length counter, 9
4 grouping unit, 95 two-dimensional Huffman coding unit, 9
6 AC encoding unit, 97 AC additional bit combining unit.

フロントページの続き Fターム(参考) 5C059 MA00 MA23 MC01 MC11 MC14 MC22 MC32 MC34 MC38 ME02 ME08 PP16 PP22 TA47 TA49 TB08 TC04 TC10 TC43 TD07 TD12 UA02 5C078 AA04 BA21 BA57 CA21 DA00 DA01 DB07 DB18 9A001 EE02 EE04 GG03 HH27 KK31Continued on the front page F term (reference) 5C059 MA00 MA23 MC01 MC11 MC14 MC22 MC32 MC34 MC38 ME02 ME08 PP16 PP22 TA47 TA49 TB08 TC04 TC10 TC43 TD07 TD12 UA02 5C078 AA04 BA21 BA57 CA21 DA00 DA01 DB07 DB18 9A001 EE02 EE04 GG31H27

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 画像データの画像ブロックを構成する各
コンポーネント画像Pxy(ここで、次数xyは各コン
ポーネント画像の前記画像データにおける2次元位置を
示す)毎に離散コサイン変換を行い、所定の順序に配列
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suv(ここで、次数uvは各コン
ポーネント画像Pxyの前記画像データにおける2次元
位置を示す次数xyに対応する前記画像データ上の2次
元位置を示す)を導出する離散コサイン変換部と、前記
離散コサイン変換部によって導出されたDC成分または
AC成分を有する係数からなる離散コサイン変換係数S
uvを前記画像データ上の2次元位置毎に異なるステッ
プサイズで線形量子化を行い量子化離散コサイン変換係
数Ruvを導出する量子化部と、所定順序に配列されシ
リアル順序に並ぶ前記量子化離散コサイン変換係数Ru
vをジグザグに並び変えるジグザグ変換部と、前記量子
化離散コサイン変換係数Ruvについてハフマン符号化
方式を用いてエントロピー符号化を行うエントロピー符
号化部を備え、画像データを圧縮する画像符号化装置に
おいて、前記画像データにおける画素ブロックの高周波
成分が多いかどうかを検出して置換用制御信号を出すか
出さないかを制御し、前記量子化離散コサイン変換係数
Ruvのうち予め設定した部分のAC係数を前記置換用
制御信号に応じて強制的に0に置き換えるかどうかを制
御するデータ処理手段を設け、前記データ処理手段によ
って前記画像データにおける画素ブロックの高周波成分
が比較的少ないと判別されたときに前記置換用制御信号
により前記量子化離散コサイン変換係数Ruvにおける
いくつかのAC係数の0でない部分を0に置き換えるこ
とでその部分のデータを切り捨てて圧縮データ量を減少
させるとともに、前記データ処理手段によって前記画像
データにおける画素ブロックの高周波成分が比較的多い
と判別されたときには前記量子化離散コサイン変換係数
RuvにおけるAC係数をそのまま出力するようにした
ことを特徴とする画像符号化装置。
1. A discrete cosine transform is performed for each component image Pxy (here, an order xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data, and the components are arranged in a predetermined order. Discrete cosine transform coefficients Suv composed of arranged coefficients having DC components or AC components (where the order uv is 2 on the image data corresponding to the order xy indicating a two-dimensional position in the image data of each component image Pxy). And a discrete cosine transform coefficient S composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit.
a quantizer for linearly quantizing uv at different step sizes for each two-dimensional position on the image data to derive a quantized discrete cosine transform coefficient Ruv, and the quantized discrete cosine arranged in a predetermined order and arranged in a serial order Conversion coefficient Ru
a zigzag transformation unit that rearranges v in a zigzag manner, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method, and an image encoding device that compresses image data. Detecting whether or not a high-frequency component of a pixel block in the image data is large and controlling whether or not to output a replacement control signal, the AC coefficient of a predetermined portion of the quantized discrete cosine transform coefficient Ruv Data processing means for controlling whether to forcibly replace the pixel data with 0 in response to a replacement control signal, wherein the replacement is performed when the data processing means determines that the high frequency component of the pixel block in the image data is relatively small. Some AC coefficients in the quantized discrete cosine transform coefficient Ruv by the control signal for By replacing the non-zero part with 0, the data in that part is truncated to reduce the amount of compressed data, and when the data processing unit determines that the high frequency component of the pixel block in the image data is relatively large, the quantum An image coding apparatus, wherein an AC coefficient in a generalized discrete cosine transform coefficient Ruv is output as it is.
【請求項2】 画像データの画像ブロックを構成する各
コンポーネント画像Pxy(ここで、次数xyは各コン
ポーネント画像の前記画像データにおける2次元位置を
示す)毎に離散コサイン変換を行い、所定の順序に配列
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suv(ここで、次数uvは各コン
ポーネント画像Pxyの前記画像データにおける2次元
位置を示す次数xyに対応する前記画像データ上の2次
元位置を示す)を導出する離散コサイン変換部と、前記
離散コサイン変換部によって導出されたDC成分または
AC成分を有する係数からなる離散コサイン変換係数S
uvを前記画像データ上の2次元位置毎に異なるステッ
プサイズで線形量子化を行い量子化離散コサイン変換係
数Ruvを導出する量子化部と、所定順序に配列されシ
リアル順序に並ぶ前記量子化離散コサイン変換係数Ru
vをジグザグに並び変えるジグザグ変換部と、前記量子
化離散コサイン変換係数Ruvについてハフマン符号化
方式を用いてエントロピー符号化を行うエントロピー符
号化部を備え、画像データを圧縮する画像符号化装置に
おいて、前記画像データにおける画素ブロックの高周波
成分が多いかどうかを検出して置換用制御信号を出すか
出さないかを制御し、前記配列された量子化離散コサイ
ン変換係数Ruvのうち予め設定した特定の係数以降の
AC係数を前記置換用制御信号に応じて強制的に0に置
き換えるかどうかを制御するデータ処理手段を設け、前
記データ処理手段によって前記画像データにおける画素
ブロックの高周波成分が比較的少ないと判別されたとき
に前記置換用制御信号により前記量子化離散コサイン変
換係数RuvにおけるいくつかのAC係数の0でない部
分を0に置き換えることでその部分のデータを切り捨て
て圧縮データ量を減少させるとともに、前記データ処理
手段によって前記画像データにおける画素ブロックの高
周波成分が比較的多いと判別されたときには前記量子化
離散コサイン変換係数RuvにおけるAC係数をそのま
ま出力するようにしたことを特徴とする画像符号化装
置。
2. A discrete cosine transform is performed for each component image Pxy (where the order xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data, and the components are arranged in a predetermined order. Discrete cosine transform coefficients Suv composed of arranged coefficients having DC or AC components (where the order uv is 2 on the image data corresponding to the order xy indicating the two-dimensional position in the image data of each component image Pxy). And a discrete cosine transform coefficient S composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit.
a quantizer for linearly quantizing uv at different step sizes for each two-dimensional position on the image data to derive a quantized discrete cosine transform coefficient Ruv, and the quantized discrete cosine arranged in a predetermined order and arranged in a serial order Conversion coefficient Ru
a zigzag transformation unit that rearranges v in a zigzag manner, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method. Detecting whether a high-frequency component of a pixel block in the image data is large and controlling whether or not to output a control signal for replacement is performed, and a predetermined specific coefficient among the arranged quantized discrete cosine transform coefficients Ruv is set. Data processing means for controlling whether the subsequent AC coefficient is forcibly replaced with 0 in accordance with the replacement control signal is provided. When the quantized discrete cosine transform coefficient Ruv is changed by the replacement control signal when When the non-zero part of some AC coefficients is replaced with zero, the data in that part is truncated to reduce the amount of compressed data. An image coding apparatus characterized in that when discriminated, the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is.
【請求項3】 画像データの画像ブロックを構成する各
コンポーネント画像Pxy(ここで、次数xyは各コン
ポーネント画像の前記画像データにおける2次元位置を
示す)毎に離散コサイン変換を行い、所定の順序に配列
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suv(ここで、次数uvは各コン
ポーネント画像Pxyの前記画像データにおける2次元
位置を示す次数xyに対応する前記画像データ上の2次
元位置を示す)を導出する離散コサイン変換部と、前記
離散コサイン変換部によって導出されたDC成分または
AC成分を有する係数からなる離散コサイン変換係数S
uvを前記画像データ上の2次元位置毎に異なるステッ
プサイズで線形量子化を行い量子化離散コサイン変換係
数Ruvを導出する量子化部と、所定順序に配列されシ
リアル順序に並ぶ前記量子化離散コサイン変換係数Ru
vをジグザグに並び変えるジグザグ変換部と、前記量子
化離散コサイン変換係数Ruvについてハフマン符号化
方式を用いてエントロピー符号化を行うエントロピー符
号化部を備え、画像データを圧縮する画像符号化装置に
おいて、前記画像データにおける画素ブロックの高周波
成分が多いかどうかを検出して置換用制御信号を出すか
出さないかを制御し、前記ジグザグ変換部によりジグザ
グに並び変えて配列される前記量子化離散コサイン変換
係数Ruvのうち予め設定した部分のAC係数を前記置
換用制御信号に応じて強制的に0に置き換えるかどうか
を制御するデータ処理手段を設け、前記データ処理手段
によって前記画像データにおける画素ブロックの高周波
成分が比較的少ないと判別されたときに前記置換用制御
信号により前記量子化離散コサイン変換係数Ruvにお
けるいくつかのAC係数の0でない部分を0に置き換え
ることでその部分のデータを切り捨てて圧縮データ量を
減少させるとともに、前記データ処理手段によって前記
画像データにおける画素ブロックの高周波成分が比較的
多いと判別されたときには前記量子化離散コサイン変換
係数RuvにおけるAC係数をそのまま出力するように
したことを特徴とする画像符号化装置。
3. A discrete cosine transform is performed for each component image Pxy (where the order xy indicates a two-dimensional position of each component image in the image data) constituting an image block of image data, and the components are arranged in a predetermined order. Discrete cosine transform coefficients Suv composed of arranged coefficients having DC or AC components (where the order uv is 2 on the image data corresponding to the order xy indicating the two-dimensional position in the image data of each component image Pxy). And a discrete cosine transform coefficient S composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit.
a quantizer for linearly quantizing uv at different step sizes for each two-dimensional position on the image data to derive a quantized discrete cosine transform coefficient Ruv, and the quantized discrete cosine arranged in a predetermined order and arranged in a serial order Conversion coefficient Ru
a zigzag transformation unit that rearranges v in a zigzag manner, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method, and an image encoding device that compresses image data. The quantized discrete cosine transform, which is arranged to detect whether or not a high-frequency component of a pixel block in the image data is large and to control whether or not to output a replacement control signal, is arranged in a zigzag manner by the zigzag converter. Data processing means is provided for controlling whether the AC coefficient of a preset portion of the coefficient Ruv is forcibly replaced with 0 in accordance with the replacement control signal, and the data processing means controls a high frequency of a pixel block in the image data. When it is determined that the component is relatively small, the replacement control signal By replacing non-zero parts of some AC coefficients in the generalized discrete cosine transform coefficient Ruv with zeros, the data in those parts is truncated to reduce the amount of compressed data, and the data processing means performs high-frequency conversion of pixel blocks in the image data. An image coding apparatus characterized in that when it is determined that the number of components is relatively large, the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is.
【請求項4】 画像データの画像ブロックを構成する各
コンポーネント画像Pxy(ここで、次数xyは各コン
ポーネント画像の前記画像データにおける2次元位置を
示す)毎に離散コサイン変換を行い、所定の順序に配列
されたDC成分またはAC成分を有する係数からなる離
散コサイン変換係数Suv(ここで、次数uvは各コン
ポーネント画像Pxyの前記画像データにおける2次元
位置を示す次数xyに対応する前記画像データ上の2次
元位置を示す)を導出する離散コサイン変換部と、前記
離散コサイン変換部によって導出されたDC成分または
AC成分を有する係数からなる離散コサイン変換係数S
uvを前記画像データ上の2次元位置毎に異なるステッ
プサイズで線形量子化を行い量子化離散コサイン変換係
数Ruvを導出する量子化部と、所定順序に配列されシ
リアル順序に並ぶ前記量子化離散コサイン変換係数Ru
vをジグザグに並び変えるジグザグ変換部と、前記量子
化離散コサイン変換係数Ruvについてハフマン符号化
方式を用いてエントロピー符号化を行うエントロピー符
号化部を備え、画像データを圧縮する画像符号化装置に
おいて、前記画像データにおける画素ブロックの高周波
成分が多いかどうかを検出して置換用制御信号を出すか
出さないかを制御し、前記ジグザグ変換部によりジグザ
グに並び変えて配列される量子化離散コサイン変換係数
Ruvのうち予め設定した特定の係数以降のAC係数を
前記置換用制御信号に応じて強制的に0に置き換えるか
どうかを制御するデータ処理手段を設け、前記データ処
理手段によって前記画像データにおける画素ブロックの
高周波成分が比較的少ないと判別されたときに前記置換
用制御信号により前記量子化離散コサイン変換係数Ru
vにおけるいくつかのAC係数の0でない部分を0に置
き換えることでその部分のデータを切り捨てて圧縮デー
タ量を減少させるとともに、前記データ処理手段によっ
て前記画像データにおける画素ブロックの高周波成分が
比較的多いと判別されたときには前記量子化離散コサイ
ン変換係数RuvにおけるAC係数をそのまま出力する
ようにしたことを特徴とする画像符号化装置。
4. A discrete cosine transform is performed for each component image Pxy (where the order xy indicates a two-dimensional position of each component image in the image data) constituting an image block of the image data, and the components are arranged in a predetermined order. Discrete cosine transform coefficients Suv composed of arranged coefficients having DC components or AC components (where the order uv is 2 on the image data corresponding to the order xy indicating a two-dimensional position in the image data of each component image Pxy). And a discrete cosine transform coefficient S composed of a coefficient having a DC component or an AC component derived by the discrete cosine transform unit.
a quantizer for linearly quantizing uv at different step sizes for each two-dimensional position on the image data to derive a quantized discrete cosine transform coefficient Ruv, and the quantized discrete cosine arranged in a predetermined order and arranged in a serial order Conversion coefficient Ru
a zigzag transformation unit that rearranges v in a zigzag manner, and an entropy encoding unit that performs entropy encoding on the quantized discrete cosine transform coefficient Ruv using a Huffman encoding method. Quantized discrete cosine transform coefficients arranged to be arranged in a zigzag manner by the zigzag conversion unit by detecting whether or not a high frequency component of a pixel block in the image data is large, and controlling whether or not to output a replacement control signal. A data processing unit for controlling whether AC coefficients after a predetermined coefficient among Ruv are forcibly replaced with 0 according to the control signal for replacement, and a pixel block in the image data by the data processing unit. When it is determined that the high-frequency component is relatively small, the replacement control signal Serial quantized discrete cosine transform coefficients Ru
By replacing non-zero parts of some AC coefficients in v with 0, the data in those parts is truncated to reduce the amount of compressed data, and the data processing means has relatively large high-frequency components of pixel blocks in the image data. Wherein the AC coefficient in the quantized discrete cosine transform coefficient Ruv is output as it is.
【請求項5】 前記データ処理手段として、前記画素ブ
ロック毎に前記画像データのエッジ成分を検出し、前記
エッジ成分の値をしきい値と比較して、その比較結果の
累積値に基づき置換用制御信号を導出するデータ処理回
路を用いたことを特徴とする請求項1ないし請求項4の
いずれかに記載の画像符号化装置。
5. The data processing unit detects an edge component of the image data for each pixel block, compares the value of the edge component with a threshold value, and performs replacement based on a cumulative value of the comparison result. 5. The image encoding device according to claim 1, wherein a data processing circuit for deriving a control signal is used.
【請求項6】 前記画素ブロック毎に前記画像データの
エッジ成分を検出するエッジ検出器と、前記エッジ検出
器により検出されたエッジ成分の値をしきい値設定レジ
スタからのしきい値と大小比較しエッジ成分の値が前記
しきい値より大きい場合に比較結果出力を導出するしき
い値大小比較器と、前記しきい値比較結果出力の度数を
累積するカウンタとを備え、前記カウンタによる前記比
較結果出力度数の累積値を高周波成分数設定レジスタの
設定値とを比較し高周波成分が多いかどうかを検出する
データ処理回路を、前記データ処理手段として用いたこ
とを特徴とする請求項1ないし請求項4のいずれかに記
載の画像符号化装置。
6. An edge detector for detecting an edge component of the image data for each of the pixel blocks, and comparing a value of the edge component detected by the edge detector with a threshold value from a threshold value setting register. A threshold magnitude comparator that derives a comparison result output when the value of the edge component is greater than the threshold value; and a counter that accumulates the frequency of the threshold comparison result output. 3. A data processing circuit for comparing the cumulative value of the result output frequency with a set value of a high frequency component number setting register to detect whether or not the high frequency component is large is used as the data processing means. Item 5. The image encoding device according to any one of Items 4.
【請求項7】 前記データ処理手段として、前記画素ブ
ロック毎に前記画像データのエッジ成分を検出し、前記
エッジ成分の値をしきい値と比較し、その比較結果の累
積値に基づいてデータ制御信号を導出するデータ処理回
路を用いたものにおいて、前記しきい値を複数設定し、
それぞれのしきい値に係る比較結果の累積値に基づき複
数の異なるデータ制御信号を導出して、前記複数のデー
タ制御信号のそれぞれに応じて異なる部分の前記量子化
離散コサイン変換係数RuvのAC係数を強制的に0と
するようにしたことを特徴とする請求項1ないし請求項
4のいずれかに記載の画像符号化装置。
7. The data processing means detects an edge component of the image data for each pixel block, compares the value of the edge component with a threshold value, and performs data control based on a cumulative value of the comparison result. In the one using a data processing circuit for deriving a signal, a plurality of the thresholds are set,
Deriving a plurality of different data control signals based on the accumulated value of the comparison results relating to the respective thresholds, and calculating the AC coefficients of the quantized discrete cosine transform coefficients Ruv of different portions according to each of the plurality of data control signals 5. The image encoding apparatus according to claim 1, wherein is set to 0 forcibly.
【請求項8】 前記データ処理手段として、前記画素ブ
ロック毎に前記画像データのエッジ成分を検出し、前記
エッジ成分の値を第2のしきい値およびこの第2のしき
い値と異なる第3のしきい値と比較し、前記第2のしき
い値についての比較結果の累積値および前記第3のしき
い値についての比較結果の累積値に基づいて第2および
第3のデータ制御信号を導出するデータ処理回路を用い
たことを特徴とする請求項7に記載の画像符号化装置。
8. The data processing means detects an edge component of the image data for each pixel block, and sets a value of the edge component to a second threshold value and a third threshold value different from the second threshold value. And the second and third data control signals are calculated based on the cumulative value of the comparison result for the second threshold value and the cumulative value of the comparison result for the third threshold value. The image encoding device according to claim 7, wherein a data processing circuit for deriving the image is used.
【請求項9】 前記画素ブロック毎に前記画像データの
エッジ成分を検出するエッジ検出器と、前記エッジ検出
器により検出されたエッジ成分の値を第2および第3の
しきい値設定レジスタからの第2および第3のしきい値
と大小比較しエッジ成分の値が前記第2および第3のし
きい値より大きい場合に比較結果出力を導出するしきい
値大小比較器と、前記第2のしきい値についての比較結
果出力の度数を累積する第2のカウンタと、前記第3の
しきい値についての比較結果出力の度数を累積する第3
のカウンタとを備え、前記第2のカウンタによる前記比
較結果出力度数の累積値と、前記第3のカウンタによる
前記比較結果出力度数の累積値と、高周波成分数設定レ
ジスタの設定値とを比較し高周波成分が多いかどうかを
検出するデータ処理回路を、前記データ処理手段として
用いたことを特徴とする請求項7に記載の画像符号化装
置。
9. An edge detector for detecting an edge component of the image data for each of the pixel blocks, and a value of the edge component detected by the edge detector from a second and third threshold value setting registers. A threshold magnitude comparator for comparing the magnitude with the second and third thresholds to derive a comparison result output when the value of the edge component is greater than the second and third thresholds; A second counter for accumulating the frequency of the comparison result output for the threshold value, and a third counter for accumulating the frequency of the comparison result output for the third threshold value
And comparing the cumulative value of the comparison result output frequency by the second counter, the cumulative value of the comparison result output frequency by the third counter, and the set value of the high frequency component number setting register. 8. The image coding apparatus according to claim 7, wherein a data processing circuit for detecting whether a high frequency component is large is used as said data processing means.
【請求項10】 前記データ処理手段として、前記画素
ブロック毎に前記画像データのエッジ成分を検出し、前
記エッジ成分の値を第4のしきい値およびこの第4のし
きい値と異なる第5のしきい値ならびに第4,第5のし
きい値と異なる第6のしきい値と比較し、前記第4のし
きい値についての比較結果の累積値および前記第5のし
きい値についての比較結果の累積値ならびに前記第6の
しきい値についての比較結果の累積値に基づいて第4お
よび第5ならびに第6のデータ制御信号を導出するデー
タ処理回路を用いたことを特徴とする請求項7に記載の
画像符号化装置。
10. The data processing means detects an edge component of the image data for each pixel block, and sets a value of the edge component to a fourth threshold value and a fifth threshold value different from the fourth threshold value. And a sixth threshold value different from the fourth and fifth threshold values, and the cumulative value of the comparison result for the fourth threshold value and the sixth threshold value for the fifth threshold value are compared. A data processing circuit for deriving fourth, fifth, and sixth data control signals based on a cumulative value of a comparison result and a cumulative value of a comparison result for the sixth threshold value is used. Item 8. The image encoding device according to Item 7.
【請求項11】 前記画素ブロック毎に前記画像データ
のエッジ成分を検出するエッジ検出器と、前記エッジ検
出器により検出されたエッジ成分の値を第4,第5およ
び第6のしきい値設定レジスタからの第4,第5および
第6のしきい値と大小比較しエッジ成分の値が前記第
4,第5および第6のしきい値より大きい場合に比較結
果出力を導出するしきい値大小比較器と、前記第4のし
きい値についての比較結果出力の度数を累積する第4の
カウンタと、前記第5のしきい値についての比較結果出
力の度数を累積する第5のカウンタと、前記第6のしき
い値についての比較結果出力の度数を累積する第6のカ
ウンタとを備え、前記第4のカウンタによる前記比較結
果出力度数の累積値と、前記第5のカウンタによる前記
比較結果出力度数の累積値と、前記第6のカウンタによ
る前記比較結果出力度数の累積値と、高周波成分数設定
レジスタの設定値と比較し高周波成分が多いかどうかを
検出するデータ処理回路を、前記データ処理手段として
用いたことを特徴とする請求項7に記載の画像符号化装
置。
11. An edge detector for detecting an edge component of the image data for each pixel block, and setting a fourth, fifth and sixth threshold values of the edge component detected by the edge detector. A threshold value which compares the magnitude with the fourth, fifth and sixth threshold values from the register and derives a comparison result output when the value of the edge component is greater than the fourth, fifth and sixth threshold values A magnitude comparator, a fourth counter for accumulating the frequency of the comparison result output for the fourth threshold value, and a fifth counter for accumulating the frequency of the comparison result output for the fifth threshold value. A sixth counter for accumulating the frequency of the comparison result output with respect to the sixth threshold value, wherein the accumulated value of the comparison result output frequency by the fourth counter is compared with the comparison value by the fifth counter. Cumulative result output frequency A data processing circuit for comparing the product value, the accumulated value of the comparison result output frequency by the sixth counter, and the set value of the high frequency component number setting register to detect whether or not the high frequency component is large, as the data processing means; The image encoding device according to claim 7, wherein the image encoding device is used.
JP14108099A 1999-05-21 1999-05-21 Image coder Pending JP2000333175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14108099A JP2000333175A (en) 1999-05-21 1999-05-21 Image coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14108099A JP2000333175A (en) 1999-05-21 1999-05-21 Image coder

Publications (1)

Publication Number Publication Date
JP2000333175A true JP2000333175A (en) 2000-11-30

Family

ID=15283757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14108099A Pending JP2000333175A (en) 1999-05-21 1999-05-21 Image coder

Country Status (1)

Country Link
JP (1) JP2000333175A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006059424A1 (en) * 2004-12-01 2006-06-08 Nec Corporation Variable-length encoding method, device and program
US7646926B2 (en) 2005-03-29 2010-01-12 Fujitsu Limited Image encoding apparatus
CN105791874A (en) * 2010-07-19 2016-07-20 Sk电信有限公司 Method and device for subband coding frequency conversion unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006059424A1 (en) * 2004-12-01 2006-06-08 Nec Corporation Variable-length encoding method, device and program
JPWO2006059424A1 (en) * 2004-12-01 2008-08-07 日本電気株式会社 Variable length coding method, device and program
US7646926B2 (en) 2005-03-29 2010-01-12 Fujitsu Limited Image encoding apparatus
CN105791874A (en) * 2010-07-19 2016-07-20 Sk电信有限公司 Method and device for subband coding frequency conversion unit

Similar Documents

Publication Publication Date Title
KR930009872B1 (en) Changing coding apparatus
US5719961A (en) Adaptive technique for encoder and decoder signal transformation
JPH05316360A (en) Coding/decoding device for picture signal
US6330369B1 (en) Method and apparatus for limiting data rate and image quality loss in lossy compression of sequences of digital images
JP2003304404A (en) Image encoder
JPH07184057A (en) Adct compression of minimum compression ratio
JP3163880B2 (en) Image compression coding device
JP3278948B2 (en) Variable length coding method
US6606039B2 (en) Huffman encoder, Huffman encoding method and recording medium having program for Huffman encoding process recorded thereon
AU1551099A (en) An image compression system and method of determining quantisation parameters therefor
JP2000333175A (en) Image coder
JPH06189140A (en) Image compression device
US6084913A (en) Method for compressing dynamic image information and system and device therefor
US7646926B2 (en) Image encoding apparatus
WO2004066608A2 (en) Image compression using a color visual model
EP1629675B1 (en) Fixed bit rate, intraframe compression and decompression of video
JP3024386B2 (en) Encoding device
JP3235761B2 (en) High efficiency coding device
JPH0670175A (en) Method and device for encoding picture data
JP3001758B2 (en) Huffman encoding device and Huffman encoding method
JP2820807B2 (en) Image data encoding method
JP3017510B2 (en) Compressed data amount control method
JPH0898175A (en) Picture encoding device
JP3016805B2 (en) Image data compression method
JP3200073B2 (en) Image processing device