JP2506724B2 - Orthogonal transformer - Google Patents

Orthogonal transformer

Info

Publication number
JP2506724B2
JP2506724B2 JP62036090A JP3609087A JP2506724B2 JP 2506724 B2 JP2506724 B2 JP 2506724B2 JP 62036090 A JP62036090 A JP 62036090A JP 3609087 A JP3609087 A JP 3609087A JP 2506724 B2 JP2506724 B2 JP 2506724B2
Authority
JP
Japan
Prior art keywords
divisor
orthogonal
component representing
orthogonal component
maximum value
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.)
Expired - Lifetime
Application number
JP62036090A
Other languages
Japanese (ja)
Other versions
JPS63204831A (en
Inventor
達郎 重里
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62036090A priority Critical patent/JP2506724B2/en
Publication of JPS63204831A publication Critical patent/JPS63204831A/en
Application granted granted Critical
Publication of JP2506724B2 publication Critical patent/JP2506724B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To simply compress the quantity of data after orthogonal conversion by outputting a code work being a divisor obtained by a divisor coding means, an orthogonal component representing AC and an orthogonal component representing DC obtained by a divider means. CONSTITUTION:A divisor generator 4 forming a divisor as Ai/B (B is an optional number) in case of AO<A1<-An (AO=O and Ai is an optional number) and in the case of A(i-1)<=MAX<Ai, where MAX is a maximum value obtained by a maximum value detector 3, a divider 7 using a divisor obtained by the divisor generator 4 to divide the orthogonal component representing all AC components in the block, and a divisor coder 5 coding the divisor, are provided. Then the orthogonal component representing the AC component and the orthogonal component representing the DC component obtained by the divisor 7 and the code work of the divisor obtained by the divisor coder 5 are outputted. Thus, since the maximum value of the absolute value of the orthogonal component representing each AC is >=O and <B, the fluctuation of data quantity is decreased and the compression rate is improved.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、画像や音声の高能率符号化に用いる直交変
換器に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an orthogonal transformer used for high efficiency coding of images and sounds.

従来の技術 画像や音声のディジタル化にともなって高能率符号化
技術が重要になってきている。高能率符号化の有効な手
段として直交変換符号化がある。これは、隣接するデー
タを集めて一旦直交変換してから各直交成分毎に符号化
するものである。一般に画像情報などでは隣接するデー
タには大きな相関があるため、ほとんどの交流を表す直
交成分は非常に小さい値となる。このためハフマン符号
化などを用いて、小さい値を取る直交成分を少ないビッ
ト数で符号化することによって、データ量を圧縮するこ
とができる。
2. Description of the Related Art With the digitization of images and sounds, high-efficiency coding techniques have become important. Orthogonal transform coding is an effective means of high efficiency coding. This is to collect adjacent data, perform orthogonal transformation once, and then encode each orthogonal component. Generally, in image information and the like, adjacent data has a large correlation, and therefore, the orthogonal component representing most of alternating currents has a very small value. Therefore, by using Huffman coding or the like, the data amount can be compressed by coding the orthogonal component having a small value with a small number of bits.

発明が解決しようとする問題点 しかしながらこの様な方法では、大きな直交成分が現
れたときにビット数が非常に大きくなってしまう。この
ため圧縮後のデータ量の変動が大きくなり、一定速度で
の伝送が困難になる。また逆に大きな値を取る直交成分
に余り大きくない符号長の符号を割り当てようとする
と、全体の圧縮率が低下してしまう。かかる点に鑑み、
本発明はデータ量の変動が小さくしかも圧縮効率の高い
直交変換器を提供することを目的とする。
Problems to be Solved by the Invention However, with such a method, the number of bits becomes very large when a large orthogonal component appears. As a result, the amount of data after compression varies greatly, making it difficult to transmit at a constant speed. On the contrary, if an attempt is made to allocate a code having a code length that is not too large to the orthogonal component that takes a large value, the overall compression rate will decrease. Considering this point,
SUMMARY OF THE INVENTION It is an object of the present invention to provide an orthogonal transformer having a small variation in data amount and a high compression efficiency.

問題点を解決するための手段 本発明は、画像信号をある大きさのブロックに分割し
て直交変換する直交変換手段と、前記直交変換手段によ
って得られる直交成分のうちブロック毎に交流をあらわ
す直交成分の絶対値の最大値を求める最大値検出手段
と、前記最大値検出手段によって得られる最大値をMAX
とする場合に、A(0)<A(1)<,……,<A
(n),(A(0)=0,A(i)は任意の数)とし、A
(i−1)≦MAX<A(i)のとき、除数をA(i)/B
とする除数生成手段と(Bは任意の数)、前記除数生成
手段によって得られる除数で前記ブロック内の全ての交
流を表す直交成分を、除算する除算手段と、前記除数を
符号化する除数符号化手段とを有し、前記除数符号化手
段によって得られる除数の符号語と前記除算手段によっ
て得られる交流を表す直交成分と直流を表す直交成分と
を出力することを特徴とする直交変換器である。
Means for Solving the Problems The present invention relates to an orthogonal transforming unit that divides an image signal into blocks of a certain size and orthogonally transforms it, and an orthogonal component that represents an alternating current for each block among the orthogonal components obtained by the orthogonal transforming unit. The maximum value detecting means for obtaining the maximum value of the absolute value of the component and the maximum value obtained by the maximum value detecting means are set to MAX.
, A (0) <A (1) <, ..., <A
(N), (A (0) = 0, A (i) is an arbitrary number), and A
When (i-1) ≤ MAX <A (i), the divisor is A (i) / B
A divisor generating means (B is an arbitrary number), a divisor obtained by the divisor generating means for dividing an orthogonal component representing all alternating currents in the block, and a divisor code for encoding the divisor. An orthogonal transformer characterized in that it has an encoding means and outputs a codeword of a divisor obtained by the divisor encoding means, and an orthogonal component representing an alternating current and an orthogonal component representing a direct current obtained by the dividing means. is there.

作用 本発明は前記した構成により、各交流を表す直交成分
の絶対値の最大値が0以上B未満となるためデータ量の
変動が小さくなる。同時に、一つでも大きな直交成分が
あると除数が大きくなるため、各直交成分が小さくなり
圧縮率が高くなる。特に大きさが0である直交成分は伝
送しないような符号化においては、除数が大きい場合に
は0になる直交成分が増加するために圧縮率がより高く
なる。
Effect According to the present invention, the maximum value of the absolute value of the orthogonal component representing each alternating current is 0 or more and less than B due to the above-described configuration, so that the variation in the data amount is reduced. At the same time, if there is even one large orthogonal component, the divisor becomes large, so that each orthogonal component becomes small and the compression rate becomes high. In particular, in the encoding in which the orthogonal component whose magnitude is 0 is not transmitted, when the divisor is large, the orthogonal component which becomes 0 increases, so that the compression rate becomes higher.

実施例 第1図は本発明の実施例のブロック図を示している。
第1図の1は直交変換器、2は絶対値化器、3は最大値
検出器、4は除数生成器、5は除数符号化器、6は遅延
器、7は除算器である。
Embodiment FIG. 1 shows a block diagram of an embodiment of the present invention.
In FIG. 1, 1 is an orthogonal transformer, 2 is an absolute value converter, 3 is a maximum value detector, 4 is a divisor generator, 5 is a divisor encoder, 6 is a delay device, and 7 is a divider.

第1図の直交変換器1では入力されたデータをある大
きさのブロックに分割し、ブロック毎に直交変換する。
直交変換器1で得られた直交成分のうち、直流を表す直
交成分はそのまま出力し、交流を表す直交成分は絶対値
化器2に入力されて絶対値と正負を表す符号とに分離さ
れる。絶対値に変換された直交成分は、遅延器6へ入力
されると同時に最大値検出器3へ入力される。最大値検
出器3では上記のブロック毎に交流を表す直交成分の絶
対値の最大値を求める。そしてその最大値は除数生成器
4に入力されて除数が得られる。この除数は除数符号化
器5で符号化されて出力される。また絶対値化器2から
出力される直交成分の絶対値は、遅延器6で除数が生成
されるまで遅延させられ、その後除算器7で除数器4で
生成される除数によって除算されて出力される。
The orthogonal transformer 1 shown in FIG. 1 divides the input data into blocks of a certain size and orthogonally transforms each block.
Of the quadrature components obtained by the quadrature converter 1, the quadrature component representing a direct current is output as it is, and the quadrature component representing an alternating current is input to the absolute value converter 2 and separated into an absolute value and a sign representing positive / negative. . The quadrature component converted into the absolute value is input to the delay unit 6 and the maximum value detector 3 at the same time. The maximum value detector 3 obtains the maximum absolute value of the orthogonal component representing the alternating current for each block. Then, the maximum value is input to the divisor generator 4 to obtain the divisor. This divisor is encoded by the divisor encoder 5 and output. The absolute value of the quadrature component output from the absolute value converter 2 is delayed until the divisor is generated by the delay unit 6, and then divided by the divisor generated by the divisor 4 by the divider 7 and output. It

ここで除数生成器4について説明する。除数生成器で
はA(0)=0およびA(0)<A(1)<,……,<
A(n)なる定数A(i)と定数Bをあらかじめ準備し
ている。そして最大値検出器3から入力される直交成分
の最大値とA(0),……,A(n)とを比較し、 A(i−1)≦最大値<A(i) のときに除数を、A(i)/Bとする。このように除数を
定めることにより、そのブロック内の直交成分の大きさ
は全てB以下となる。また最大値が大きいとき除数が大
きくなるためこの処理による量子化誤差も大きくなる。
しかし一般に大きな値の直交成分があるブロックでは量
子化誤差が視覚上あまり目だたない。以上のようにして
視覚上大きな劣化を伴わずに全ての交流を表す直交成分
の絶対値をB以下にすることが出来る。これによってデ
ータ量を大幅に減少させると同時に、伝送量の変動を小
さくすることが可能となる。
Here, the divisor generator 4 will be described. In the divisor generator, A (0) = 0 and A (0) <A (1) <, ..., <
A constant A (i) and a constant B of A (n) are prepared in advance. Then, the maximum value of the orthogonal component input from the maximum value detector 3 is compared with A (0), ..., A (n), and when A (i−1) ≦ maximum value <A (i) Let the divisor be A (i) / B. By defining the divisor in this way, the sizes of the orthogonal components in the block are all B or less. Further, when the maximum value is large, the divisor becomes large, so the quantization error due to this processing also becomes large.
However, in general, the quantization error is not noticeable visually in a block having a large value of the orthogonal component. As described above, the absolute value of the quadrature component representing all alternating currents can be set to B or less without causing significant visual deterioration. This makes it possible to significantly reduce the amount of data and at the same time reduce the fluctuation in the amount of transmission.

次に第2図を用いてより具体的な実施例について説明
する。第2図の8はディスクリート・コサイン変換(DC
T)器、9は絶対値化器、10は切り捨て器、11は最大値
検出器、12はシフト数生成器、13は遅延器、14はシフト
器、15は丸め器である。
Next, a more specific embodiment will be described with reference to FIG. 8 in FIG. 2 is a discrete cosine conversion (DC
T) device, 9 is an absolute value converter, 10 is a truncation device, 11 is a maximum value detector, 12 is a shift number generator, 13 is a delay device, 14 is a shift device, and 15 is a rounding device.

第2図のDCT器8では入力されたデータをある大きさ
のブロックに分割し、ブロック毎にDCTする。DCT器8で
得られた直交成分のうち直流を表す直交成分はそのまま
出力し、交流を表す直交成分は絶対値化器9に入力され
て絶対値と正負を表す符号とに分割される。絶対値に変
換された直交成分は切り捨て器10に入力され、全ての交
流を表す直交成分の絶対値は8ビットに切り捨てられ
る。最大桁検出器11では切り捨て器10から入力される直
交成分の絶対値から上記のブロック毎に直交成分の最大
桁数を求める。そしてその最大桁数はシフト生成器12に
入力され、そこでシフト数に変換される。また切り捨て
器10から出力される直交成分の絶対値は、遅延器13でシ
フト数が生成されるまで遅延させられ、その後シフト器
14でシフト数生成器12で生成されるシフト数だけ右シフ
トされる。シフト器14でシフトされた直交成分の絶対値
は、丸め器15で4ビットに丸められて出力される。同時
に直流を表す直交成分と正負を表す符号、およびシフト
数も符号化されて出力される。
The DCT unit 8 in FIG. 2 divides the input data into blocks of a certain size and performs DCT for each block. Of the quadrature components obtained by the DCT device 8, the quadrature component representing direct current is output as it is, and the quadrature component representing alternating current is input to the absolute value converter 9 and divided into an absolute value and a sign representing positive and negative. The quadrature component converted into the absolute value is input to the truncator 10, and the absolute value of the quadrature component representing all alternating currents is truncated to 8 bits. The maximum digit detector 11 obtains the maximum number of digits of the orthogonal component for each block from the absolute value of the orthogonal component input from the truncator 10. Then, the maximum number of digits is input to the shift generator 12, where it is converted into the number of shifts. The absolute value of the quadrature component output from the truncator 10 is delayed until a shift number is generated by the delay unit 13, and then the shift unit
At 14, the shift number is right-shifted by the shift number generated by the shift number generator 12. The absolute value of the orthogonal component shifted by the shifter 14 is rounded to 4 bits by the rounder 15 and output. At the same time, the orthogonal component representing the direct current, the code representing the positive and negative, and the shift number are also encoded and output.

さてシフト数生成器12は、入力される最大桁MAXに対
して、 MAX=8のとき、シフト数=3 MAX=7のとき、シフト数=2 MAX=6のとき、シフト数=1 MAX≦5のとき、シフト数=0 と出力する。これによってシフト器14でシフトされた直
交成分の絶対値は常に5ビット以下になり、さらに丸め
器15で最下位ビットが丸められて4ビットにされる。
The shift number generator 12 outputs the maximum digit MAX when MAX = 8, shift number = 3 MAX = 7, shift number = 2 MAX = 6, shift number = 1 MAX ≦ When the number is 5, the shift number = 0 is output. As a result, the absolute value of the orthogonal component shifted by the shifter 14 is always 5 bits or less, and the rounding device 15 rounds the least significant bit to 4 bits.

本実施例では、全ての交流を表す直交成分の絶対値が
4ビット以下に交換される。またこの処理は桁数の検出
とビットシフトだけからなるため、非常に簡単に実現で
きる。このときB=16,A(i)=16*2i-1となる。ただ
しシフト数の選び方やその個数はこれ以外に任意に設定
できる。
In the present embodiment, the absolute values of the orthogonal components representing all alternating currents are exchanged to 4 bits or less. Further, since this processing consists only of detection of the number of digits and bit shift, it can be realized very easily. At this time, B = 16 and A (i) = 16 * 2 i-1 . However, the method of selecting the number of shifts and the number of shifts can be set arbitrarily other than this.

以上のように2つの実施例を用いて説明したが、本発
明はDCT以外の全ての直交交換に利用できるものであ
り、また除数生成や除算器の構成もさまざまな方法が適
応可能である。さらに本発明によって得られた直交成分
をさまざまな方法で圧縮することも可能である。
As described above using two embodiments, the present invention can be used for all orthogonal exchanges other than DCT, and various methods can be applied to the divisor generation and the configuration of the divider. Further, it is possible to compress the quadrature component obtained by the present invention by various methods.

発明の効果 本発明は、上記のように簡単な方法によって直交変換
後のデータ量を大幅に圧縮できる。また全ての交流を表
す直交成分をある定数以下に圧縮できるため、伝送量の
変動が小さい。さらに本発明の除算はビットシフトで実
行することも可能であり、装置化が非常に簡単でありそ
の実用的効果は大きい。
EFFECTS OF THE INVENTION The present invention can significantly compress the data amount after orthogonal transformation by the simple method as described above. Further, since the quadrature component representing all alternating currents can be compressed to a certain constant or less, the fluctuation of the transmission amount is small. Further, the division of the present invention can be executed by bit shift, which is very simple to implement and has a great practical effect.

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

第1図は本発明の第1の実施例のブロック図、第2図は
本発明の第2の実施例のブロック図である。 1……直交変換器、2……絶対値化器、3……除数生成
器、7……除算器、8……DCT器、11……最大桁検出
器、14……シフト器。
FIG. 1 is a block diagram of a first embodiment of the present invention, and FIG. 2 is a block diagram of a second embodiment of the present invention. 1 ... Orthogonal converter, 2 ... Absolute value converter, 3 ... Divisor generator, 7 ... Divider, 8 ... DCT device, 11 ... Maximum digit detector, 14 ... Shifter.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像信号をある大きさのブロックに分割し
て直交変換する直交変換手段と、前記直交変換手段によ
って得られる直交成分のうちブロック毎に交流をあらわ
す直交成分の絶対値の最大値を求める最大値検出手段
と、前記最大値検出手段によって得られる最大値をMAX
とする場合に、A(0)<A(1)<,……,<A
(n),(A(0)=0,AA(i)は任意の数)とし、A
(i−1)≦MAX<A(i)のとき、除数をA(i)/B
とする除数生成手段と(Bは任意の数)、前記除数生成
手段によって得られる除数で前記ブロック内の全ての交
流を表す直交成分を除算する除算手段と、前記除数を符
号化する除数符号化手段とを有し、前記除数符号化手段
によって得られる除数の符号語と前記割り算手段によっ
て得られる交流を表す直交成分と直流を表す直交成分と
を出力することを特徴とする直交変換器。
1. An orthogonal transform means for dividing an image signal into blocks of a certain size and orthogonally transforming it, and a maximum absolute value of the orthogonal component representing an alternating current for each block among the orthogonal components obtained by the orthogonal transform means. And the maximum value obtained by the maximum value detecting means
, A (0) <A (1) <, ..., <A
(N), (A (0) = 0, AA (i) is an arbitrary number), and A
When (i-1) ≤ MAX <A (i), the divisor is A (i) / B
And (B is an arbitrary number), division means for dividing the orthogonal components representing all alternating currents in the block by the divisor obtained by the divisor generation means, and divisor coding for encoding the divisor. Means for outputting the codeword of the divisor obtained by the divisor encoding means, the orthogonal component representing the alternating current and the orthogonal component representing the direct current, obtained by the dividing means.
【請求項2】除数生成手段で、A(0)=0,A(i)=
B*2i-1(i=1,……,n)であることを特徴とする特許
請求の範囲第1項記載の直交変換器。
2. A divisor generating means, A (0) = 0, A (i) =
The orthogonal transformer according to claim 1, wherein B * 2 i-1 (i = 1, ..., N).
【請求項3】除数生成手段で、B=2jであることを特徴
とする特許請求の範囲第1項または第2項記載の直交変
換器。
3. An orthogonal transformer according to claim 1 or 2, wherein B = 2 j in the divisor generating means.
【請求項4】割り算手段で、割り算をビットシフトで実
行することを特徴とする特許請求の範囲第1項または第
2項記載の直交変換器。
4. The orthogonal transformer according to claim 1 or 2, wherein the division is performed by a bit shift in the division means.
【請求項5】直交変換手段で、直交変換がディスクリー
ト・コサイン変換であることを特徴とする特許請求の範
囲第1項記載の直交変換器。
5. The orthogonal transformer according to claim 1, wherein the orthogonal transform is a discrete cosine transform in the orthogonal transform means.
JP62036090A 1987-02-19 1987-02-19 Orthogonal transformer Expired - Lifetime JP2506724B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62036090A JP2506724B2 (en) 1987-02-19 1987-02-19 Orthogonal transformer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62036090A JP2506724B2 (en) 1987-02-19 1987-02-19 Orthogonal transformer

Publications (2)

Publication Number Publication Date
JPS63204831A JPS63204831A (en) 1988-08-24
JP2506724B2 true JP2506724B2 (en) 1996-06-12

Family

ID=12460054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62036090A Expired - Lifetime JP2506724B2 (en) 1987-02-19 1987-02-19 Orthogonal transformer

Country Status (1)

Country Link
JP (1) JP2506724B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0671237B2 (en) * 1988-09-16 1994-09-07 日本ビクター株式会社 High efficiency coding system
JP4593720B2 (en) * 2000-03-10 2010-12-08 パナソニック株式会社 Method and apparatus for dynamically displaying residue number coefficient

Also Published As

Publication number Publication date
JPS63204831A (en) 1988-08-24

Similar Documents

Publication Publication Date Title
US4922273A (en) Compression method of halftone image data
JP2940304B2 (en) High efficiency coding apparatus, high efficiency coding method, and decoding apparatus for high efficiency coding apparatus
KR930702852A (en) Image data compression device
KR100254402B1 (en) A method and a device for encoding picture signals by run-length coding
JP2506724B2 (en) Orthogonal transformer
KR920005014A (en) Image data restoration method and device
JPH0270127A (en) Conversion encoding system
JPH0748857B2 (en) Orthogonal transformation device
JPS61123280A (en) Image data compressing device
JPS61135286A (en) Picture data compressor
JP3230336B2 (en) Recompression device and recompression system
JP3024386B2 (en) Encoding device
JPH0670175A (en) Method and device for encoding picture data
JP2511669B2 (en) Compressor for gradation image data
JPH077460B2 (en) Vector quantizer
JPH0310486A (en) Moving picture encoder
JP2887843B2 (en) Image data restoration method and apparatus
JPH0984009A (en) Image compression coding method and image compression coding device
JPH03192878A (en) Picture data compressor
JP2001094985A (en) Image coder
JPH04192673A (en) Data converter
JPH0344187A (en) Coder for picture signal
JPS62150472A (en) Method for compressing picture data
JP3166163B2 (en) Cyclic code transmission method
JP2003309848A (en) Image encoding apparatus and control method thereof

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term