JP2000013797A - Image compression device and image decompression device - Google Patents
Image compression device and image decompression deviceInfo
- Publication number
- JP2000013797A JP2000013797A JP17889198A JP17889198A JP2000013797A JP 2000013797 A JP2000013797 A JP 2000013797A JP 17889198 A JP17889198 A JP 17889198A JP 17889198 A JP17889198 A JP 17889198A JP 2000013797 A JP2000013797 A JP 2000013797A
- Authority
- JP
- Japan
- Prior art keywords
- bit
- quantized dct
- dct coefficient
- coefficient
- orthogonal transform
- 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.)
- Withdrawn
Links
Landscapes
- Color Television Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
(57)【要約】
【課題】 高解像度の画像を効率的に圧縮し、かつ画像
劣化を生じさせないように画像を圧縮、伸張処理する。
【解決手段】 画像圧縮装置10内に離散コサイン変換
(DCT演算)部15、量子化部16、ビット分離部1
7、ハフマン符号化部18を設ける。画像圧縮装置10
内に入力された画像データを、DCT演算部15におい
てDCT演算し、量子化部16において量子化すること
により、量子化DCT係数に変換する。量子化DCT係
数を、ビット分離部17において上位量子化DCT係数
と下位量子化DCT係数に分離し、上位量子化DCT係
数をハフマン符号化部18においてハフマン符号化す
る。
(57) [Summary] [PROBLEMS] To efficiently compress a high-resolution image and compress and decompress the image so as not to cause image deterioration. A discrete cosine transform (DCT operation) unit, a quantization unit, and a bit separation unit are provided in an image compression apparatus.
7. A Huffman encoding unit 18 is provided. Image compression device 10
The DCT operation unit 15 performs a DCT operation on the image data input into, and the quantization unit 16 quantizes the image data, thereby converting the image data into quantized DCT coefficients. The quantized DCT coefficient is separated into a higher-order quantized DCT coefficient and a lower-order quantized DCT coefficient by a bit separation unit 17, and the Huffman coding unit 18 performs Huffman coding on the higher-order quantized DCT coefficient.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、カラー静止画像を
圧縮し、伸張する画像圧縮装置および画像伸張装置に関
する。[0001] 1. Field of the Invention [0002] The present invention relates to an image compression apparatus and an image expansion apparatus for compressing and expanding a color still image.
【0002】[0002]
【従来の技術】カラー静止画像を圧縮することによって
通信回路を介した画像の転送を効率的に行うため、JP
EG(Joint Photographic Expert Group)方式と呼ばれ
る画像圧縮方式が標準化されている。JPEG方式のベ
ースラインプロセスでは、まず画像データを離散コサイ
ン変換することによって空間周波数成分ごとに分解し、
空間周波数成分毎に表されたデータを量子化し、量子化
されたデータを符号化(圧縮)する。符号化された画像
データは、復号化し、逆量子化し、逆離散コサイン変換
することによって伸張され、これにより元の画像が復元
される。2. Description of the Related Art To efficiently transfer an image through a communication circuit by compressing a color still image, JP
An image compression method called an EG (Joint Photographic Expert Group) method has been standardized. In the JPEG-based baseline process, image data is first decomposed into spatial frequency components by discrete cosine transform.
The data represented for each spatial frequency component is quantized, and the quantized data is encoded (compressed). The encoded image data is expanded by decoding, inverse quantization, and inverse discrete cosine transform, thereby restoring the original image.
【0003】[0003]
【発明が解決しようとする課題】このようなJPEG方
式によれば、高解像度の画像を効率的に圧縮することが
できるが、圧縮、伸張の過程で何らかの歪みが付加され
るため圧縮された画像には劣化が生じる。そのためJP
EG方式には画像に歪みが付加されない可逆符号化方式
も提案されているが、この方式では高解像度の画像を効
率的に圧縮できない。According to the JPEG method, a high-resolution image can be efficiently compressed. However, since some distortion is added in the process of compression and decompression, the compressed image is compressed. Deteriorates. Therefore JP
A lossless encoding method in which distortion is not added to an image has been proposed as the EG method, but this method cannot efficiently compress a high-resolution image.
【0004】本発明は、高解像度の画像を効率的に圧縮
するJPEG方式を取り入れながら、歪みを付加させ
ず、画像劣化を生じさせないように画像を圧縮、伸張す
るための画像圧縮装置および画像伸張装置を得ることを
目的としている。[0004] The present invention provides an image compression apparatus and an image decompression device for compressing and decompressing an image so as not to add distortion and cause image degradation while adopting the JPEG system for efficiently compressing a high-resolution image. The aim is to get the device.
【0005】[0005]
【課題を解決するための手段】本発明の画像圧縮装置
は、入力される静止画像に対応した画像データを直交変
換することによりビット列で表される直交変換係数を求
める直交変換手段と、直交変換係数のビット列を上位ビ
ット列と下位ビット列の2つに分離し、上位ビット列で
表される上位直交変換係数と下位ビット列で表される下
位直交変換係数とを求めるビット分離手段と、上位直交
変換係数を符号化することにより圧縮画像データを求め
る符号化手段とを備えたことを特徴とする。An image compression apparatus according to the present invention comprises: orthogonal transform means for orthogonally transforming image data corresponding to an input still image to obtain an orthogonal transform coefficient represented by a bit string; A bit separation unit that separates the bit string of the coefficient into two bits, an upper bit string and a lower bit string, and obtains an upper orthogonal transform coefficient represented by an upper bit string and a lower orthogonal transform coefficient represented by a lower bit string; Encoding means for obtaining compressed image data by encoding.
【0006】ビット分離手段は、量子化された直交変換
係数をビット分離することが望ましい。It is desirable that the bit separation means separates the quantized orthogonal transform coefficients into bits.
【0007】ビット分離手段は、ビット列で表される直
交変換係数を右シフト演算し、右シフト演算により分離
されるビット列を下位ビット列、右シフト演算により変
換される直交変換係数のビット列を上位ビット列とする
ことで上位直交変換係数と下位直交変換係数とを求める
ことが望ましい。The bit separation means performs a right shift operation on the orthogonal transform coefficient represented by the bit sequence, a lower bit sequence for the bit sequence separated by the right shift operation, and an upper bit sequence for the bit sequence of the orthogonal transform coefficient converted by the right shift operation. Thus, it is desirable to obtain the upper orthogonal transform coefficient and the lower orthogonal transform coefficient.
【0008】本発明の画像伸張装置は、入力される圧縮
画像データを復号化することによって上位直交変換係数
を求める復号化手段と、入力される下位直交変換係数と
復号化手段によって得られる上位直交変換係数をビット
合成することにより直交変換係数を求めるビット合成手
段と、直交変換係数を逆直交変換することにより画像デ
ータを求める逆直交変換手段とを備えたことを特徴とす
る。An image decompression device according to the present invention comprises decoding means for obtaining upper orthogonal transform coefficients by decoding input compressed image data, upper orthogonal transform coefficients to be inputted, and upper orthogonal transform coefficients obtained by the decoding means. It is characterized by comprising bit synthesizing means for obtaining orthogonal transform coefficients by bit synthesizing transform coefficients, and inverse orthogonal transform means for obtaining image data by performing orthogonal transform on the orthogonal transform coefficients.
【0009】逆直交変換手段は、逆量子化された直交変
換係数を逆直交変換することが望ましい。The inverse orthogonal transform means desirably performs inverse orthogonal transform on the inversely quantized orthogonal transform coefficient.
【0010】ビット合成手段は、ビット列で表される上
位直交変換係数を左シフト演算し、左シフト演算によっ
て空白になるビット部分に下位ビット列を当てはめるこ
とにより、直交変換係数を求めることが望ましい。It is desirable that the bit synthesizing unit obtains the orthogonal transform coefficient by performing a left shift operation on the upper orthogonal transform coefficient represented by the bit string and applying the lower bit string to a bit portion which becomes blank by the left shift operation.
【0011】[0011]
【発明の実施の形態】以下、本発明の実施形態である画
像圧縮装置および画像圧縮装置について図面を参照して
説明する。図1は、本発明の一実施形態例である画像圧
縮装置のブロック図である。DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image compression apparatus and an image compression apparatus according to embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an image compression apparatus according to an embodiment of the present invention.
【0012】被写体像11( 静止画像)は、レンズ12
を介して固体撮像素子13の受光面上に結像される。固
体撮像素子13の受光面には光電変換素子が配設され、
光電変換素子の上面にはレッド(R)、グリーン
(G)、ブルー(B)の各色フィルタ要素からなるカラ
ーフィルタが設けられている。各光電変換素子は一つの
画素データに対応しており、被写体像は各光電変換素子
によって所定の色に対応した電気的な画像信号に変換さ
れる。そして画像信号は、A/D変換器( 図示せず)に
おいてアナログ信号からデジタル信号に変換される。A subject image 11 (still image) is
Is imaged on the light receiving surface of the solid-state imaging device 13 via A photoelectric conversion element is provided on a light receiving surface of the solid-state imaging device 13,
A color filter including red (R), green (G), and blue (B) color filter elements is provided on the upper surface of the photoelectric conversion element. Each photoelectric conversion element corresponds to one pixel data, and a subject image is converted into an electric image signal corresponding to a predetermined color by each photoelectric conversion element. The image signal is converted from an analog signal to a digital signal in an A / D converter (not shown).
【0013】デジタル化された画像信号は、信号処理回
路(図示せず)において輝度データY、色差データC
b、Crに変換されて画像メモリ14に入力される。画
像メモリ14には、輝度データY、色差データCb、C
rがそれぞれ独立した領域に格納されており、各メモリ
領域は1画像分の記憶容量を有している。輝度データ
Y、色差データCb、Crは、画像圧縮装置10に対す
る入力データである。The digitized image signal is converted into luminance data Y and chrominance data C in a signal processing circuit (not shown).
The data is converted into b and Cr and input to the image memory 14. The image memory 14 stores luminance data Y, color difference data Cb, C
r are stored in independent areas, and each memory area has a storage capacity for one image. The luminance data Y and the color difference data Cb, Cr are input data to the image compression device 10.
【0014】輝度データYおよび色差データCb、Cr
の画像データは、1画面において複数のブロックに分割
され、ブロック単位で処理される。各ブロックは、8×
8個の画素データからなる。The luminance data Y and the color difference data Cb, Cr
Is divided into a plurality of blocks in one screen, and is processed in block units. Each block is 8x
It consists of eight pixel data.
【0015】画像メモリ14から読み出された輝度デー
タYおよび色差データCb、Crは、画像圧縮装置10
に入力される。画像圧縮装置10は、離散コサイン変換
(DCT演算)部15、量子化部16、ビット分離部1
7、ハフマン符号化部18から構成されている。輝度デ
ータYおよび色差データCb、Crは、画像圧縮装置1
0においてそれぞれ別々に圧縮処理される。The luminance data Y and the color difference data Cb and Cr read from the image memory 14 are
Is input to The image compression device 10 includes a discrete cosine transform (DCT operation) unit 15, a quantization unit 16, and a bit separation unit 1.
7, and a Huffman encoding unit 18. The luminance data Y and the color difference data Cb, Cr are
0 is separately compressed.
【0016】入力された輝度データYおよび色差データ
Cb、Crは、DCT演算部15において、DCT演算
が施される。DCT演算は直交変換の一つであり、画像
データは空間周波数成分毎に分解されてDCT係数に変
換される。The input luminance data Y and color difference data Cb and Cr are subjected to a DCT operation in a DCT operation section 15. The DCT operation is one of orthogonal transforms, and image data is decomposed for each spatial frequency component and converted into DCT coefficients.
【0017】輝度データYおよび色差データCb、Cr
のDCT係数は、量子化部16において量子化され、量
子化DCT係数に変換される。この量子化は線形量子化
であり、8×8=64個の量子化係数から構成される量
子化テーブルQを用いて量子化される。すなわち、DC
T係数がそれぞれに対応する量子化係数で割り算され、
余りが丸められる。量子化テーブルとして、輝度データ
Y用の量子化テーブルQy 、色差データCb,Cr用の
量子化テーブルQc がそれぞれ設けられている。The luminance data Y and the color difference data Cb, Cr
Are quantized by the quantization unit 16 and converted into quantized DCT coefficients. This quantization is linear quantization, and is performed using a quantization table Q including 8 × 8 = 64 quantization coefficients. That is, DC
T coefficients are divided by the corresponding quantization coefficients,
The remainder is rounded. As the quantization tables, a quantization table Q y for luminance data Y and a quantization table Q c for color difference data Cb and Cr are provided.
【0018】輝度データYおよび色差データCb、Cr
は、画像圧縮装置10において2進数のビット列で表さ
れており、輝度データYおよび色差データCb、Crの
量子化DCT係数も2進数のビット列で表される。輝度
データYおよび色差データCb、Crの量子化DCT係
数のビット列は、ビット分離部17において上位ビット
列と下位ビット列に分離され、上位ビット列で表される
上位量子化DCT係数と下位ビット列で表される下位量
子化DCT係数とが求められる。ただし、ここでは1ビ
ットに対してもビット列として表す。The luminance data Y and the color difference data Cb, Cr
Is represented by a binary bit string in the image compression apparatus 10, and the quantized DCT coefficients of the luminance data Y and the color difference data Cb and Cr are also represented by a binary bit string. The bit string of the quantized DCT coefficient of the luminance data Y and the color difference data Cb, Cr is separated into an upper bit string and a lower bit string by the bit separation unit 17, and is represented by the upper quantized DCT coefficient and the lower bit string represented by the upper bit string. A lower quantized DCT coefficient is obtained. However, here, even one bit is represented as a bit string.
【0019】輝度データYおよび色差データCb、Cr
の上位量子化DCT係数は、符号化部18において符号
化(圧縮)され、圧縮画像データとして記録媒体Mの圧
縮画像データ記録領域M2に記録される。符号化に関し
てはJPEGアルゴリズムに準拠したハフマン符号化方
式を適用する。下位量子化DCT係数は、符号化されず
にそのまま記録媒体Mの下位記録領域M3に記録され
る。上位量子化DCT係数、下位量子化DCT係数の記
録とともに量子化部16で用いられた量子化テーブルQ
y 、Qc が、記録媒体Mの量子化テーブル記録領域M1
に記録される。The luminance data Y and the color difference data Cb, Cr
Are encoded (compressed) in the encoding unit 18 and recorded in the compressed image data recording area M2 of the recording medium M as compressed image data. For the encoding, a Huffman encoding method based on the JPEG algorithm is applied. The lower quantized DCT coefficient is recorded in the lower recording area M3 of the recording medium M without being encoded. The quantization table Q used in the quantization unit 16 together with the recording of the upper quantization DCT coefficient and the lower quantization DCT coefficient.
y and Q c are the quantization table recording area M1 of the recording medium M
Will be recorded.
【0020】図2、図3を用いて、8×8のマトリクス
で表された1つの画素ブロックに対する圧縮処理を説明
する。A compression process for one pixel block represented by an 8 × 8 matrix will be described with reference to FIGS.
【0021】図2には、輝度データYの画素ブロックP
と、DCT係数行列Cと、量子化テーブルQと、量子化
DCT係数行列Dとがそれぞれ8×8のマトリクスで例
示されている。各マトリクスの要素は、それぞれ画素値
Pyx、DCT係数Cji、量子化係数Qji、量子化DCT
係数Djiと表される。FIG. 2 shows a pixel block P of luminance data Y.
, A DCT coefficient matrix C, a quantization table Q, and a quantized DCT coefficient matrix D are each exemplified by an 8 × 8 matrix. Elements of each matrix are a pixel value P yx , a DCT coefficient C ji , a quantization coefficient Q ji , and a quantized DCT
It is expressed as a coefficient Dji .
【0022】画素値Pyxは輝度データYの値である。画
素値Pyxにおいて、添字yは縦方向の位置を示し、上か
ら0,1,2,・・・7である。また添字xは横方向の
位置を示し、左から0,1,2,・・・7である。例え
ば、y=1、x=1の場合、画素値P11=162であ
る。The pixel value P yx is the value of the luminance data Y. In the pixel value P yx , the subscript y indicates the position in the vertical direction, and is 0, 1, 2, ... 7 from the top. The subscript x indicates the position in the horizontal direction, and is 0, 1, 2, ... 7 from the left. For example, when y = 1 and x = 1, the pixel value P 11 = 162.
【0023】DCT係数Cji、量子化テーブルQji、量
子化DCT係数Djiにおける添字jは、添字yと同じよ
うに縦方向の位置を示し、上から0,1,2,・・・7
である。また添字iは、添字xと同じように横方向の位
置を示し、左から0,1,2,・・・7である。例え
ば、j=1、i=1の場合、DCT係数C11の値は36
である。The DCT coefficients C ji, quantization table Q ji, subscript j in the quantized DCT coefficients D ji, like subscript y indicates the vertical position, 0,1,2 from the top, ... 7
It is. The subscript i indicates the position in the horizontal direction similarly to the subscript x, and is 0, 1, 2, ... 7 from the left. For example, for j = 1, i = 1, the value of the DCT coefficients C 11 36
It is.
【0024】まず画素ブロックPの各画素値Pyxは、D
CT演算によってDCT係数Cjiに変換される。DCT
係数行列Cのなかで位置(0,0)にあるDCT係数C
00はDC成分であり、残りの位置にあるDCT係数Cji
はAC成分である。DC成分は画素ブロックPの画素値
Pyxの平均値を表し、空間周波数は0である。一方AC
成分は、DCT係数C01ないしC10からDCT係数C77
の方向に向かって、より高い空間周波数成分の値が画素
ブロックPの中にどれほどあるかを表す。このように画
素ブロックPは、DCT演算によって空間周波数成分毎
に分解される。First, each pixel value P yx of the pixel block P is represented by D
It is converted into a DCT coefficient Cji by CT operation. DCT
DCT coefficient C at position (0,0) in coefficient matrix C
00 is a DC component, and DCT coefficients C ji at the remaining positions
Is the AC component. The DC component represents the average value of the pixel values P yx of the pixel block P, and the spatial frequency is 0. AC
The components are from the DCT coefficients C 01 to C 10 to the DCT coefficients C 77
Represents how much higher spatial frequency component values are in the pixel block P in the direction of. Thus, the pixel block P is decomposed for each spatial frequency component by the DCT operation.
【0025】次に各DCT係数Cjiは、量子化係数Qji
によって量子化DCT係数Djiに量子化される。すなわ
ち、各DCT係数Cjiがそれぞれ対応する量子化係数Q
jiで割り算され、余りが丸められる。ほぼ無歪みの画像
圧縮処理をするため、量子化テーブルQは高圧縮な画像
処理に対応した量子化テーブルではなく、なるべく小さ
い値の量子化係数Qjiによって構成されている。Next, each DCT coefficient C ji is a quantization coefficient Q ji
Is quantized to a quantized DCT coefficient Dji . That is, each DCT coefficient C ji corresponds to the corresponding quantization coefficient Q
Divide by ji and round the remainder. To substantially image compression processing unstrained, quantization table Q is not a quantization table corresponding to the high-compression image processing, and is configured by a quantization coefficient Q ji of as small as possible value.
【0026】例えばDCT係数C03(=5)は、量子化
係数Q03(=2)で割り算されて余りが丸められる(四
捨五入される)ことにより、量子化DCT係数D03(=
3)が求められる。For example, the DCT coefficient C 03 (= 5) is divided by the quantization coefficient Q 03 (= 2), and the remainder is rounded (rounded) to obtain the quantized DCT coefficient D 03 (=
3) is required.
【0027】図3には、量子化DCT係数行列Dと、上
位量子化DCT係数行列DHと、下位量子化DCT係数
行列DLが示されている。それぞれの要素は、量子化D
CT係数Dji、上位量子化DCT係数DHji、下位量子
化DCT係数DLjiと表される。FIG. 3 shows a quantized DCT coefficient matrix D, an upper quantized DCT coefficient matrix DH, and a lower quantized DCT coefficient matrix DL. Each element is a quantization D
They are represented as CT coefficient D ji , upper quantized DCT coefficient DH ji , and lower quantized DCT coefficient DL ji .
【0028】ビット列で表されるそれぞれの量子化DC
T係数Djiは、ビット分離によって上位ビット列と下位
ビット列に分離され、上位ビット列で表される上位量子
化DCT係数DHjiと下位ビット列で表される下位量子
化DCT係数DLjiとが求められる。ビット分離される
ビット数は、ここでは1ビットである。Each quantized DC represented by a bit string
The T coefficient D ji is separated into an upper bit string and a lower bit string by bit separation, and an upper quantized DCT coefficient DH ji represented by an upper bit string and a lower quantized DCT coefficient DL ji represented by a lower bit string are obtained. Here, the number of bits to be bit-separated is 1 bit.
【0029】例えば量子化DCT係数D11(=36)の
ビット列は、ビット分離によって上位量子化DCT係数
DH11(=18)のビット列と下位量子化DCT係数D
L11(=0)のビット列に分離される。また量子化DC
T係数D21(=−7)のビット列は、ビット分離によっ
て上位量子化DCT係数DH21(=−4)のビット列と
下位量子化DCT係数DL21(=1)のビット列に分離
される。ただし、1ビットに対してもビット列として表
す。ビット分離に関しては、後述する。For example, the bit string of the quantized DCT coefficient D 11 (= 36) is divided into a bit string of the upper quantized DCT coefficient DH 11 (= 18) and a lower quantized DCT coefficient D
It is separated into bit strings of L 11 (= 0). Also quantized DC
The bit string of the T coefficient D 21 (= −7) is separated into a bit string of the upper quantized DCT coefficient DH 21 (= −4) and a bit string of the lower quantized DCT coefficient DL 21 (= 1) by bit separation. However, even one bit is represented as a bit string. The bit separation will be described later.
【0030】上位量子化DCT係数DHjiは、ハフマン
テーブルを用いてハフマン符号化される。そのとき、A
C成分、DC成分によって上位量子化DCT係数DHji
は別々に符号化され、AC成分の上位量子化DCT係数
DHjiは従来公知のようにジグザグスキャンされて2次
元のマトリクスから1列のデータに変換された後に符号
化される。一方、下位量子化DCT係数DLjiはハフマ
ン符号化されない。The upper quantized DCT coefficient DHji is Huffman-coded using a Huffman table. Then A
Upper quantization DCT coefficient DH ji by C component and DC component
Are encoded separately, the upper quantized DCT coefficients DH ji of the AC components are encoded after being converted from a two-dimensional matrix is zigzag scanned in a conventional manner known to one row of data. On the other hand, the lower quantized DCT coefficient DLji is not Huffman-coded.
【0031】上位量子化DCT係数行列DHをジグザグ
スキャンして1列に並べ替えたとき、ゼロの出現頻度が
量子化DCT係数行列Dをジグザグスキャンするときに
比べて増える。そのため、ゼロラン長(連続する0の長
さ)が長くなる。また、0以外の上位量子化DCT係数
DHjiの値は量子化DCT係数Djiの値より小さいた
め、上位量子化DCT係数行列DHjiがハフマン符号化
されるときに必要な情報量は量子化DCT係数Djiの場
合に比べて少ない。よって、ビット分離を実行すること
により画像データを効率的に圧縮することができる。When the upper quantized DCT coefficient matrix DH is zigzag scanned and rearranged into one column, the frequency of occurrence of zeros increases as compared to when the quantized DCT coefficient matrix D is zigzag scanned. Therefore, the zero run length (the length of consecutive 0s) becomes longer. Further, since the value of the upper quantized DCT coefficients DH ji nonzero smaller than the value of the quantized DCT coefficients D ji, the amount of information required when higher quantized DCT coefficient matrix DH ji is Huffman coding quantization Less than the DCT coefficient Dji . Therefore, image data can be efficiently compressed by performing bit separation.
【0032】図3、図4を用いて、1ビットのビット分
離を詳述する。そのため、量子化DCT係数Djiをビッ
ト列で表す。1つのDCT係数Cjiには通常16ビット
が割り当てられ、量子化DCT係数Djiでは16ビット
のうち12ビットが使用される。正負の値をとるAC成
分の量子化DCT係数Djiの場合、16ビットのうち最
上位の1ビットが符号ビットとして使われ、下位の11
ビットを使用して量子化DCT係数Djiが2進数で表さ
れる。The bit separation of one bit will be described in detail with reference to FIGS. Therefore, the quantized DCT coefficient Dji is represented by a bit string. Usually 16-bit is assigned to one of the DCT coefficients C ji, 12 bits of the 16 bits for quantized DCT coefficients D ji is used. In the case of a quantized DCT coefficient Dji of an AC component having a positive or negative value, the most significant one bit of the 16 bits is used as a sign bit, and the least significant 11 bits are used.
The quantized DCT coefficients D ji are represented in binary using bits.
【0033】図4では、図3の量子化DCT係数Djiの
うちAC成分である量子化DCT係数D11(=36)と
量子化DCT係数D21(=−7)のビット分離を示して
いる。FIG. 4 shows the bit separation of the quantized DCT coefficient D 11 (= −36) and the quantized DCT coefficient D 21 (= −7) which are AC components of the quantized DCT coefficient D ji of FIG. I have.
【0034】まず、正の値をとる量子化DCT係数D11
(=36)に対して1ビットのビット分離をする場合を
説明する。First, a quantized DCT coefficient D 11 having a positive value
A case where 1-bit separation is performed for (= 36) will be described.
【0035】量子化DCT係数D11(=36)は、2進
法で表すと「00000100100」であり、符号ビ
ットFは正を表す「0」である。16ビットのビット列
B0において、2進数「00000100100」は右
端からの11ビットを使って表される。「0」である符
号ビットFは、ビット列B0の左端にある最上位ビット
に位置する。なお量子化DCT係数Djiが正の値の場
合、使用されていない4ビットJ0は「0000」とな
っている。The quantized DCT coefficient D 11 (= 36) is “0000100100100” in the binary system, and the sign bit F is “0” representing the positive. In the 16-bit bit string B0, the binary number “00000100100” is represented using 11 bits from the right end. The sign bit F of “0” is located at the leftmost most significant bit of the bit string B0. When the quantized DCT coefficient Dji has a positive value, the unused 4-bit J0 is "0000".
【0036】ビット分離の実行により、量子DCT係数
D11(=36)は右シフト演算される。 シフト演算と
は、各ビットを指定されたビット数だけ右または左に桁
移動させる演算である。1ビットの右シフト演算が実行
されると、各ビットが右に1つずつ移動させられ、
「0」である右端の最下位ビットKは分離される。そし
て右シフト演算によって空白になった左端の最上位ビッ
トには、「0」である符号ビットFが埋められる。By performing the bit separation, the quantum DCT coefficient D 11 (= 36) is right-shifted. The shift operation is an operation for shifting each bit right or left by a designated number of bits. When a one bit right shift operation is performed, each bit is shifted one by one to the right,
The rightmost least significant bit K which is "0" is separated. The left most significant bit left blank by the right shift operation is filled with a sign bit F of “0”.
【0037】このようにして、ビット列B0は右シフト
演算により10ビットで表される2進数「000001
0010」のビット列B1に変換される。このビット列
B1が上位ビット列であり、2進数「00000100
10」を10進法で表した値が上位量子化DCT係数D
H11の値となる。すなわち、上位量子化DCT係数DH
11の値は18である。As described above, the bit string B0 is converted to the binary number “000001” represented by 10 bits by the right shift operation.
0010 ". This bit string B1 is a high-order bit string, and is a binary number “0000100100
The value obtained by expressing “10” in decimal notation is the higher-order quantized DCT coefficient D.
The value of H 11. That is, the upper quantization DCT coefficient DH
The value of 11 is 18.
【0038】一方、右シフト演算によって分離された最
下位ビットKが下位ビット列であり、最下位ビットKの
値が下位量子化DCT係数DL11の値となる。2進数
「0」は10進法で0と表されるから、下位量子化DC
T係数DL11の値は0である。On the other hand, the least significant bit K, separated by right shift operation is lower bit string, the value of the least significant bit K is the value of the lower quantized DCT coefficients DL 11. Since the binary number “0” is represented as 0 in the decimal system, the lower quantization DC
The value of T coefficient DL 11 is 0.
【0039】このように量子化DCT係数D11(=3
6)のビット列B0は、ビット分離によって上位ビット
列であるビット列B1と下位ビット列である最下位ビッ
トKに分離され、上位量子化DCT係数DH11(=1
8)と下位量子化DCT係数DL 11(=0)が求められ
る。Thus, the quantized DCT coefficient D11(= 3
The bit string B0 of 6) is obtained by separating the upper bits
Bit sequence B1 and the least significant bit
And the upper quantized DCT coefficient DH11(= 1
8) and the lower quantized DCT coefficient DL 11(= 0) is required
You.
【0040】次に、負の値である量子化DCT係数D21
(=−7)に対して1ビットのビット分離をする場合を
説明する。Next, the quantized DCT coefficient D 21 which is a negative value
A case where 1-bit separation is performed for (= −7) will be described.
【0041】量子化DCT係数D21(=−7)は、2進
法では「11111111001」と表され、符号ビッ
トFは負を表す「1」である。16ビットのビット列M
0において、2進数「11111111001」は右端
からの11ビットを使って表される。「1」である符号
ビットFは、ビット列M0の左端にある最上位ビットに
位置する。なお、量子化DCT係数Djiが負の値の場
合、使用されていない4ビットJ1は、「1111」と
なっている。The quantized DCT coefficient D 21 (= −7) is represented as “11111111001” in the binary system, and the sign bit F is “1” representing negative. 16-bit bit string M
At 0, the binary number “11111111001” is represented using the 11 bits from the right end. The sign bit F of "1" is located at the leftmost most significant bit of the bit string M0. When the quantized DCT coefficient Dji is a negative value, the unused 4-bit J1 is "1111".
【0042】ビット分離の実行により、量子化DCT係
数D21(=−7)は右シフト演算される。右シフト演算
されると、「1」である最下位ビットKは分離される。
そして、右シフト演算によって空白となった最上位ビッ
トには、「1」である符号ビットFが埋められる。By performing the bit separation, the quantized DCT coefficient D 21 (= −7) is right-shifted. When the right shift operation is performed, the least significant bit K of “1” is separated.
Then, the sign bit F of “1” is filled in the most significant bit left blank by the right shift operation.
【0043】このようにして、ビット列M0は右シフト
演算により10ビットで表される2進数「111111
1100」のビット列M1に変換される。このビット列
M1が上位ビット列であり、2進数「11111111
00」を10進法で表した値が上位量子化DCT係数D
H21の値となる。すなわち、量子化DCT係数DH21の
値は符号ビットFが「1」であることから−4である。As described above, the bit string M0 is converted to the binary number "111111" represented by 10 bits by the right shift operation.
1100 ". This bit string M1 is a high-order bit string, and the binary number “11111111”
00 ”in decimal notation is the higher quantization DCT coefficient D
The value of H 21. That is, the value of the quantized DCT coefficients DH 21 is -4 to the sign bit F is "1".
【0044】一方、右シフト演算によって分離された最
下位ビットKが下位ビット列であり、最下位ビットKを
10進法で表した値が、下位量子化DCT係数DL21の
値となる。2進数「1」は10進法で1と表されるか
ら、下位量子化DCT係数DL 21の値は1である。On the other hand, the most part separated by the right shift operation
The lower bit K is a lower bit string, and the lower bit K is
The value expressed in decimal notation is the lower quantized DCT coefficient DLtwenty oneof
Value. Is binary "1" represented as 1 in decimal notation
From the lower quantized DCT coefficient DL twenty oneIs 1.
【0045】このように量子化DCT係数D21(=−
7)のビット列M0は、ビット分離によって上位ビット
列であるビット列B1と下位ビット列である最下位ビッ
トKに分離され、上位量子化DCT係数DH21(=−
4)と下位量子化DCT係数DL 21(=1)が求められ
る。Thus, the quantized DCT coefficient Dtwenty one(= −
The bit string M0 of 7) is obtained by separating the upper bits by bit separation.
Bit sequence B1 and the least significant bit
And the upper quantized DCT coefficient DHtwenty one(= −
4) and lower quantized DCT coefficient DL twenty one(= 1) is required
You.
【0046】以上のようにAC成分の量子化DCT係数
Djiは、ビット分離によって上位量子化DCT係数DH
jiと下位量子化DCT係数jiに分離される。As described above, the quantized DCT coefficient D ji of the AC component is converted to the upper quantized DCT coefficient DH by bit separation.
ji and the lower quantized DCT coefficient ji .
【0047】DC成分の量子化DCT係数D00も、AC
成分の量子化DCT係数Djiと同じようにビット分離さ
れる。ただし、DC成分の量子化DCT係数D00は必ず
正の値になるため、16ビットのビット列において12
ビットが割り当てられる。そのため、右シフト演算され
たとき空白になる最上位ビットには、正を示す「0」の
符号ビットFが埋められる。The quantized DCT coefficient D 00 of the DC component is also
Bit separation is performed in the same manner as the quantized DCT coefficient Dji of the component. However, the quantized DCT coefficients D of the DC component 00 for always a positive value, the 16-bit bit string 12
Bits are assigned. Therefore, the sign bit F of “0” indicating positive is filled in the most significant bit which becomes blank when the right shift operation is performed.
【0048】なお、2ビット、3ビットのビット分離の
場合、量子化DCT係数Djiに対して2ビット、3ビッ
トの右シフト演算が実行される。In the case of 2-bit or 3-bit separation, a 2-bit or 3-bit right shift operation is performed on the quantized DCT coefficient Dji .
【0049】図5は、8×8の量子化DCT係数行列に
対してnビットのビット分離を行うときの手順を示すフ
ローチャートである。図3、図5を用いてビット分離の
フローチャートを説明する。FIG. 5 is a flowchart showing a procedure for performing n-bit bit separation on an 8 × 8 quantized DCT coefficient matrix. A flowchart of the bit separation will be described with reference to FIGS.
【0050】ステップ201では、縦方向の位置を表す
添字jが0に設定される。ステップ202では、横方向
の位置を表す添字iが0と設定され、行列の横方向を表
す行のなかで最も左側の量子化DCT係数Dj0がビット
分離の対象とされる。量子化DCT係数D00が最初のビ
ット分離の対象である。In step 201, the subscript j representing the position in the vertical direction is set to 0. In step 202, the subscript i representing the horizontal position is set to 0, and the leftmost quantized DCT coefficient D j0 in the row representing the horizontal direction of the matrix is subjected to bit separation. The quantized DCT coefficient D00 is the subject of the first bit separation.
【0051】ステップ203では、量子化DCT係数D
jiに対してnビットのビット分離をするためにnビット
の右シフト演算が実行され、上位量子化DCT係数DH
jiが求められる。In step 203, the quantized DCT coefficient D
An n-bit right shift operation is performed to separate n bits from ji , and the upper quantized DCT coefficient DH
ji is required.
【0052】例えば1ビットのビット分離の場合、量子
化DCT係数D21(=−7)から上位量子化DCT係数
DH21(=−4)が求められる。例えば3ビットのビッ
ト分離の場合、量子化DCT係数D21(=−7)から上
位量子化DCT係数DH21(=−1)が求められる。For example, in the case of 1-bit separation, a higher-order quantized DCT coefficient DH 21 (= −4) is obtained from the quantized DCT coefficient D 21 (= −7). For example, in the case of 3-bit bit separation, the upper quantized DCT coefficients DH 21 (= -1) is determined from the quantized DCT coefficients D 21 (= -7).
【0053】ステップ204では、下位量子化DCT係
数DLjiが求められる。下位量子化DCT係数DLjiを
求める算術式は、(1)式のようになる。In step 204, the lower quantized DCT coefficient DLji is obtained. An arithmetic expression for obtaining the lower quantization DCT coefficient DLji is as shown in Expression (1).
【0054】 DLji=Dji−(DHji×2n ) ・・・・・・・・(1)DL ji = D ji − (DH ji × 2 n ) (1)
【0055】例えば1ビットのビット分離の場合、量子
化DCT係数D21(=−7)に対して下位量子化DCT
係数DL21の値は、上位量子化DCT係数DH21の値が
−4であることから DLji= −7−(−4×21)=1 となる。For example, in the case of 1-bit separation, the lower quantized DCT coefficient D 21 (= −7) is
The value of the coefficient DL 21 is DL ji = −7 − (− 4 × 2 1 ) = 1 because the value of the upper quantization DCT coefficient DH 21 is −4.
【0056】例えば3ビットのビット分離の場合、量子
化DCT係数D21(=−7)に対して下位量子化DCT
係数DL21の値は、上位量子化DCT係数DH21の値が
−1であることから DLji=−7−(−1×23 )=1 となる。For example, in the case of bit separation of 3 bits, the quantized DCT coefficient D 21 (= −7) is
The value of the coefficient DL 21 is DL ji = −7 − (− 1 × 2 3 ) = 1 since the value of the upper quantization DCT coefficient DH 21 is −1.
【0057】ステップ205では、添字iに1が加算さ
れる。これによりビット分離される対象の量子化DCT
係数Djiが1つ右隣の量子化DCT係数Djiに移され
る。In step 205, 1 is added to the subscript i. Quantized DCT to be bit-separated by this
The coefficient D ji is moved to the immediately next right quantized DCT coefficient D ji .
【0058】ステップ206では、添字iが8であるか
否かが判定される。すなわち、横方向の1つの行に関し
てすべての量子化DCT係数Djiがビット分離されたか
否かが判定される。添字iが8であると判定されるとス
テップ207に移る。添字iが8でないと判定されると
ステップ203に戻る。At step 206, it is determined whether or not the subscript i is 8. That is, it is determined whether or not all the quantized DCT coefficients Dji have been bit-separated for one row in the horizontal direction. If it is determined that the subscript i is 8, the process proceeds to step 207. If it is determined that the subscript i is not 8, the process returns to step 203.
【0059】ステップ207では、添字jに1が加算さ
れる。すなわち、ビット分離される量子化DCT係数D
jiが、1つ下の行の量子化DCT係数Djiに移される。In step 207, 1 is added to the subscript j. That is, the quantized DCT coefficient D that is bit-separated
ji is moved to the quantized DCT coefficient D ji in the next lower row.
【0060】ステップ208では、添字jが8であるか
否かが判定される。すなわち、全ての量子化DCT係数
Djiがビット分離されたか否かが判定される。添字jが
8であると判定されると、量子化DCT係数行列のビッ
ト分離は終了する。添字jが8でないと判定されると、
ステップ202に戻る。At step 208, it is determined whether or not the subscript j is 8. That is, it is determined whether or not all the quantized DCT coefficients Dji have been bit-separated. If it is determined that the subscript j is 8, the bit separation of the quantized DCT coefficient matrix ends. When it is determined that the subscript j is not 8,
Return to step 202.
【0061】以上のように本実施形態を適用して画像を
圧縮処理すれば、ゼロラン長がより長くなり、また符号
化に必要な情報量がより少なくなるため、画像を効率的
に圧縮することができる。As described above, if the image is compressed by applying this embodiment, the zero run length becomes longer and the amount of information necessary for encoding becomes smaller, so that the image can be efficiently compressed. Can be.
【0062】図6は、本発明の一実施形態である画像伸
張装置のブロック図である。FIG. 6 is a block diagram of an image decompression device according to an embodiment of the present invention.
【0063】輝度データYおよび色差データCb,Cr
の圧縮画像データが記録媒体Mの記録領域M2から読み
出され、画像伸張装置30に送られる。画像伸張装置3
0は、ハフマン復号化部31、ビット合成部32、逆量
子化部33、逆離散コサイン変換(IDCT演算)部3
4から構成されている。輝度データYおよび色差データ
Cb,Crの圧縮画像データは、画像伸張装置30にお
いてそれぞれ別々に伸張処理される。The luminance data Y and the color difference data Cb, Cr
Is read from the recording area M2 of the recording medium M and sent to the image decompression device 30. Image expansion device 3
0 is a Huffman decoding unit 31, a bit synthesis unit 32, an inverse quantization unit 33, an inverse discrete cosine transform (IDCT operation) unit 3
4. The compressed image data of the luminance data Y and the color difference data Cb and Cr are separately decompressed by the image decompression device 30.
【0064】輝度データYおよび色差データCb,Cr
の圧縮画像データは、ハフマン復号化部31において復
号化され、上位量子化DCT係数に変換される。この復
号化はハフマン符号化とは逆の作用であり、上位量子化
DCT係数は2進数のビット列で表される。The luminance data Y and the color difference data Cb, Cr
Are decoded by the Huffman decoding unit 31 and are converted into higher-order quantized DCT coefficients. This decoding is the reverse operation of the Huffman coding, and the upper quantized DCT coefficients are represented by a binary bit string.
【0065】輝度データYおよび色差データCb,Cr
の上位量子化DCT係数と、記録媒体Mの下位記録領域
M3から読み出された輝度データYおよび色差データC
b,Crの下位量子化DCT係数が、ビット合成部32
においてビット合成され、量子化DCT係数が復元され
る。The luminance data Y and the color difference data Cb, Cr
, And the luminance data Y and chrominance data C read from the lower recording area M3 of the recording medium M.
The lower-order quantized DCT coefficients of b, Cr are
, And the quantized DCT coefficients are restored.
【0066】輝度データYおよび色差データCb,Cr
の量子化DCT係数は、逆量子化部33において量子化
テーブルQを用いて逆量子化され、DCT係数に変換さ
れる。すなわち、輝度データY用の量子化テーブル
Qy 、および色差データCb,Cr用の量子化テーブル
Qc が記録媒体Mの量子化テーブル記録領域M1から読
み出され、各量子化DCT係数にそれぞれ対応する量子
化係数が掛け算される。The luminance data Y and the color difference data Cb, Cr
Are inversely quantized by the inverse quantization unit 33 using the quantization table Q, and are converted into DCT coefficients. That is, the quantization table Q y for the luminance data Y and the quantization table Q c for the chrominance data Cb and Cr are read from the quantization table recording area M1 of the recording medium M, and correspond to each quantized DCT coefficient. Is multiplied.
【0067】輝度データYおよび色差データCb,Cr
のDCT係数は、IDCT演算部34においてIDCT
演算され、輝度データYおよび色差データCb,Crに
変換される。IDCT演算は、DCT演算とは逆の演算
である。IDCT演算によって得られた輝度データYお
よび色差データCb,Crは、画像メモリ14に入力さ
れる。The luminance data Y and the color difference data Cb, Cr
The DCT coefficient of the IDCT
It is calculated and converted into luminance data Y and color difference data Cb, Cr. The IDCT operation is the reverse operation of the DCT operation. The luminance data Y and the color difference data Cb, Cr obtained by the IDCT operation are input to the image memory 14.
【0068】図7、8を用いて、圧縮画像データに対す
る伸張処理を説明する。圧縮画像データは、 以下では輝
度データYを対象とする。The decompression process for the compressed image data will be described with reference to FIGS. In the following, the luminance data Y is targeted for the compressed image data.
【0069】図7には、図3と同じように上位量子化D
CT係数行列DHと、下位量子化DCT係数行列DL
と、量子化DCT係数行列Dとが8×8のマトリクスで
例示されている。各マトリクスの要素は、上位量子化D
CT係数DHji、下位量子化DCT係数DLji、量子化
DCT係数Djiと表される。FIG. 7 shows the upper quantization D as in FIG.
CT coefficient matrix DH and lower quantization DCT coefficient matrix DL
And a quantized DCT coefficient matrix D are exemplified by an 8 × 8 matrix. The elements of each matrix are the upper quantization D
They are represented as CT coefficient DH ji , lower quantized DCT coefficient DL ji , and quantized DCT coefficient D ji .
【0070】圧縮画像データはAC成分、DC成分それ
ぞれ別々にハフマン復号化され、AC成分がジグザグス
キャンの逆であるマトリクス化されることにより、上位
量子化DCT係数行列DHが求められる。The compressed image data is subjected to Huffman decoding separately for each of the AC component and the DC component, and the AC component is converted into a matrix that is the inverse of the zigzag scan, thereby obtaining a higher-order quantized DCT coefficient matrix DH.
【0071】上位量子化DCT係数DHjiとそれに対応
する下位量子化DCT係数DLjiがビット合成されるこ
とにより、量子化DCT係数Djiが復元される。ビット
合成されるビット数は、ここでは1ビットである。The upper quantized DCT coefficient DH ji and the corresponding lower quantized DCT coefficient DL ji are bit-combined to restore the quantized DCT coefficient D ji . Here, the number of bits to be combined is 1 bit.
【0072】例えば上位量子化DCT係数DH11(=1
8)と下位量子化DCT係数DL11(=0)がビット合
成されると、量子化DCT係数D11(=36)が復元さ
れる。また、上位量子化DCT係数DH21(=−4)と
下位量子化DCT係数DL21(=1)がビット合成され
ると、量子化CT係数D21(=−7)が復元される。な
お、ビット合成に関しては後述する。For example, the upper quantized DCT coefficient DH 11 (= 1
When bit 8) is combined with the lower quantized DCT coefficient DL 11 (= 0), the quantized DCT coefficient D 11 (= 36) is restored. When the upper quantized DCT coefficient DH 21 (= −4) and the lower quantized DCT coefficient DL 21 (= 1) are bit-combined, the quantized CT coefficient D 21 (= −7) is restored. The bit composition will be described later.
【0073】図8には、量子化DCT係数行列Dと量子
化テーブルQとDCT係数行列C’と画素ブロックP’
とが8×8のマトリクスで例示されている。各マトリク
スの要素は、それぞれ量子化DCT係数Dji、量子化係
数Qji、DCT係数C’ji、画素値P’yxと表される。FIG. 8 shows a quantized DCT coefficient matrix D, a quantization table Q, a DCT coefficient matrix C ′, and a pixel block P ′.
Are exemplified by an 8 × 8 matrix. Elements of each matrix are respectively represented as a quantized DCT coefficient Dji , a quantized coefficient Qji , a DCT coefficient C'ji , and a pixel value P'yx .
【0074】量子化DCT係数Djiは、量子化係数Qji
によってDCT係数C’jiに逆量子化される。すなわ
ち、各量子化DCT係数Djiにそれぞれ対応する量子化
係数Q jiが掛け算される。Quantized DCT coefficient DjiIs the quantization coefficient Qji
By the DCT coefficient C 'jiIs inversely quantized. Sand
That is, each quantized DCT coefficient DjiQuantization corresponding to
Coefficient Q jiIs multiplied.
【0075】例えば量子化DCT係数D23(=−1)に
は、量子化係数Q23(=2)が掛け算されて、DCT係
数C’23(=−2)が求められる。For example, the quantized DCT coefficient D 23 (= −1) is multiplied by the quantized coefficient Q 23 (= 2) to obtain the DCT coefficient C ′ 23 (= −2).
【0076】DCT係数C’jiはIDCT演算によって
画素値P’yxに変換される。IDCT演算が実行される
ことにより、8×8の画像値P’yxからなる画素ブロッ
クP’が復元される。The DCT coefficient C ′ ji is converted into a pixel value P ′ yx by an IDCT operation. By executing the IDCT operation, the pixel block P ′ including the 8 × 8 image values P ′ yx is restored.
【0077】図7、図9を用いて、1ビットのビット合
成を詳述する。そのため、上位量子化DCT係数DHji
および下位量子化DCT係数DLjiをビット列で表す。The bit combination of one bit will be described in detail with reference to FIGS. Therefore, the upper quantized DCT coefficient DH ji
And the lower quantized DCT coefficient DLji are represented by a bit string.
【0078】図9では、図7の上位量子化DCT係数D
H11(=18)と下位量子化DCT係数DL11(=
0)、および上位量子化DCT係数DH21(=−4)と
下位量子化DCT係数DL21(=1)に対するビット合
成を示している。In FIG. 9, the upper quantized DCT coefficient D in FIG.
H 11 (= 18) and the lower quantized DCT coefficient DL 11 (=
0), and the bit combination for the upper quantized DCT coefficient DH 21 (= −4) and the lower quantized DCT coefficient DL 21 (= 1).
【0079】まず、AC成分の上位量子化DCT係数D
H11(=18)と下位量子化DCT係数DL11(=0)
に対して1ビットのビット合成を行う場合を説明する。First, the upper quantized DCT coefficient D of the AC component
H 11 (= 18) and lower quantized DCT coefficient DL 11 (= 0)
A case in which 1-bit bit synthesis is performed on the
【0080】上位量子化DCT係数DH11(=18)
は、図4で示したように16ビットのビット列B1で表
される。下位量子化DCT係数DL11(=0)は2進数
で「0」であり、下位ビット列K1で表される。Upper quantized DCT coefficient DH 11 (= 18)
Is represented by a 16-bit bit string B1 as shown in FIG. The lower quantized DCT coefficient DL 11 (= 0) is “0” in binary, and is represented by the lower bit string K1.
【0081】ビット合成の実行により、上位量子化DC
T係数DH11(=18)は左シフト演算される。1ビッ
トの左シフト演算が実行されると、各ビットが左に1つ
ずつ移動させられ、 左端の「0」である符号ビットFが
分離される。そして左シフト演算によって空白になった
右端の最下位ビットには、「0」である下位ビット列K
1が埋められる。また、左端から2番目の「0」である
ビットF0が、1ビットの左シフト演算によって左端の
最上位ビットに移動され、符号ビットFとなる。By performing the bit synthesis, the upper quantized DC
The T coefficient DH 11 (= 18) is subjected to a left shift operation. When the one-bit left shift operation is performed, each bit is shifted one by one to the left, and the code bit F which is “0” at the left end is separated. The rightmost least significant bit blanked out by the left shift operation has a lower bit string K of “0”.
1 is filled. Further, the bit F0 that is the second “0” from the left end is moved to the leftmost most significant bit by a 1-bit left shift operation, and becomes a sign bit F.
【0082】左シフト演算により、ビット列B1は11
ビットを使用して表される2進数「000001001
00」のビット列B0に変換される。そして、2進数
「00000100100」を10進法で表した値が量
子化DCT係数D11となる。すなわち、量子化DCT係
数D11の値は36である。By the left shift operation, the bit string B1 becomes 11
The binary number "0000001001" represented using bits
00 ". Then, a value obtained by expressing the binary number “00000100100” in the decimal system becomes the quantized DCT coefficient D 11 . That is, the value of the quantized DCT coefficients D 11 is 36.
【0083】このように、上位量子化DCT係数DH11
(=18)と下位量子化DCT係数DL11(=0)がビ
ット合成されることにより、量子化DCT係数D11(=
36)が復元される。Thus, the upper quantized DCT coefficient DH 11
(= 18) and the lower quantized DCT coefficient DL 11 (= 0) are bit-synthesized, so that the quantized DCT coefficient D 11 (=
36) is restored.
【0084】次に、AC成分の上位量子化DCT係数D
H21(=−4)と下位量子化DCT係数DL21(=1)
に対して1ビットのビット合成をする場合を説明する。Next, the upper quantized DCT coefficient D of the AC component
H 21 (= −4) and lower quantized DCT coefficient DL 21 (= 1)
A case where 1-bit bit synthesis is performed for the following will be described.
【0085】上位量子化DCT係数DH21(=−4)
は、図4で示したように16ビットのビット列M1で表
される。下位量子化DCT係数DL21(=1)は、2進
数で「1」であり、下位ビット列K1で表される。Higher order quantized DCT coefficient DH 21 (= −4)
Is represented by a 16-bit bit string M1 as shown in FIG. The lower quantized DCT coefficient DL 21 (= 1) is “1” in binary, and is represented by the lower bit string K1.
【0086】ビット合成の実行により、上位量子化DC
T係数DH21(=−4)は左シフト演算される。1ビッ
トの左シフト演算が実行されると、各ビットが左に1つ
ずつ移動させられ、 左端の「1」である符号ビットFが
分離される。そして左シフト演算によって空白になった
右端の最下位ビットには、「1」である下位ビット列K
1が埋められる。また、左端から2番目の「1」である
ビットF0が、1ビットの左シフト演算によって左端の
最上位ビットに移動され、符号ビットFとなる。By executing the bit synthesis, the upper quantized DC
T coefficient DH 21 (= -4) is left shift operation. When the one-bit left shift operation is performed, each bit is shifted one by one to the left, and the code bit F that is the leftmost “1” is separated. The rightmost least significant bit blanked out by the left shift operation has a lower bit string K of “1”.
1 is filled. Further, the bit F0 that is the second “1” from the left end is moved to the leftmost most significant bit by a one-bit left shift operation, and becomes a sign bit F.
【0087】左シフト演算により、ビット列M1は11
ビットを使用して表される2進数「111111110
01」のビット列M0に変換される。そして、2進数
「11111111001」を10進法で表した値が量
子化DCT係数D21の値となる。すなわち、「1」であ
る符号ビットFを考慮して量子化DCT係数D21の値は
−7である。By the left shift operation, the bit string M1 becomes 11
The binary number "111111110" represented using bits
01 ”is converted to a bit string M0. The value representing the binary number "11111111001" in decimal is the value of the quantized DCT coefficients D 21. That is, the value of the quantized DCT coefficients D 21 in consideration of the sign bit F is "1" is -7.
【0088】このように、上位量子化DCT係数DH21
(=−4)と下位量子化DCT係数DL21(=1)がビ
ット合成されることにより、量子化DCT係数D21(=
−7)が復元される。Thus, the upper quantized DCT coefficient DH 21
(= −4) and the lower quantized DCT coefficient DL 21 (= 1) are bit-combined, so that the quantized DCT coefficient D 21 (=
-7) is restored.
【0089】以上のようにAC成分の上位量子化DCT
係数DHjiと下位量子化DCT係数DLjiがビット合成
されることにより、量子化DCT係数Djiが復元され
る。As described above, the upper quantization DCT of the AC component
The coefficient DH ji and the lower quantized DCT coefficient DL ji are bit-combined to restore the quantized DCT coefficient D ji .
【0090】DC成分の上位量子化DCT係数DH00と
下位量子化DCT係数DL00も、同じようにビット合成
される。ただし、DC成分の上位量子化DCT係数DH
00は必ず正の値になるため、16ビットのビット列にお
いて12ビットが割り当てられる。The upper quantized DCT coefficient DH 00 and the lower quantized DCT coefficient DL 00 of the DC component are bit-synthesized in the same manner. However, the higher quantization DCT coefficient DH of the DC component
Since 00 is always a positive value, 12 bits are allocated in a 16-bit bit string.
【0091】なお、2ビット、3ビットのビット合成の
場合、上位量子化DCT係数DHjiに対して2ビット、
3ビットの左シフト演算が実行される。In the case of 2-bit or 3-bit bit synthesis, 2 bits are added to the upper quantized DCT coefficient DHji .
A 3-bit left shift operation is performed.
【0092】図10は、8×8の上位量子化DCT係数
行列と下位量子化DCT係数行列に対してnビットのビ
ット合成するときの手順を示すフローチャートである。
図7、図10を用いてビット合成のフローチャートを説
明する。FIG. 10 is a flowchart showing the procedure when n-bit bits are combined with an 8 × 8 upper quantized DCT coefficient matrix and a lower quantized DCT coefficient matrix.
A flowchart of bit combination will be described with reference to FIGS.
【0093】ステップ301では、縦方向の位置を表す
jが0に設定される。ステップ302では、横方向の位
置を表す添字iが0に設定され、行列の横方向を表す行
の中でもっとも左側の上位量子化DCT係数DHj0と下
位量子化DCT係数DLj0がビット合成の対象とされ
る。上位量子化DCT係数DH00と下位量子化DCT係
数DL00が最初のビット合成の対象である。In step 301, j representing the vertical position is set to 0. At step 302, index i representing the position in the lateral direction is set to 0, the leftmost upper quantized DCT coefficients DH j0 and lower quantized DCT coefficients DL j0 is bit synthesized in a row representing the lateral matrix It is targeted. The upper quantized DCT coefficient DH 00 and the lower quantized DCT coefficient DL 00 are the targets of the first bit combination.
【0094】ステップ303では、上位量子化DCT係
数DHjiに対してnビットの左シフト演算が実行され、
量子化DCT係数Djiが求められる。量子化DCT係数
Djiを求める算術式は、(2)式のようになる。In step 303, an n-bit left shift operation is performed on the upper quantized DCT coefficient DHji ,
A quantized DCT coefficient Dji is obtained. An arithmetic expression for obtaining the quantized DCT coefficient Dji is as shown in Expression (2).
【0095】 Dji=DHji×2n +DLji・・・・・・(2)D ji = DH ji × 2 n + DL ji (2)
【0096】例えば、1ビットのビット合成の場合、上
位量子化DCT係数DH21(=−4)と下位量子化DC
T係数DL21(=1)に対して量子化DCT係数D21の
値は 、 Dji=−4×21 +1=−7 となる。For example, in the case of 1-bit bit synthesis, the upper quantized DCT coefficient DH 21 (= −4) and the lower quantized DCT
The value of the quantized DCT coefficient D 21 for the T coefficient DL 21 (= 1) is D ji = −4 × 2 1 + 1 = −7.
【0097】例えば、3ビットのビット合成の場合、上
位量子化DCT係数DH21(=−1)と下位量子化DC
T係数DL21(=1)に対して量子化DCT係数D21の
値は D21=−1×23 +1=−7 となる。For example, in the case of 3-bit bit synthesis, the upper quantized DCT coefficient DH 21 (= −1) and the lower quantized DCT coefficient
For the T coefficient DL 21 (= 1), the value of the quantized DCT coefficient D 21 is D 21 = −1 × 2 3 + 1 = −7.
【0098】ステップ304では、添字iに1が加算さ
れる。これによりビット合成される対象の上位量子化D
CT係数DHjiと下位量子化DCT係数DLjiが1つ右
隣の上位量子化DCT係数DHjiと下位量子化DCT係
数DLjiに移される。In step 304, 1 is added to the subscript i. Thereby, the upper quantization D to be bit-combined
The CT coefficient DH ji and the lower-order quantized DCT coefficient DL ji are moved to the immediately next upper-order quantized DCT coefficient DH ji and the lower-order quantized DCT coefficient DL ji .
【0099】ステップ305では、添字iが8であるか
否かが判定される。すなわち、横方向の1つの行に関し
て全ての上位量子化DCT係数DHjiと下位量子化DC
T係数DLjiがビット合成されたか否かが判定される。
添字iが8であると判定されるとステップ306に移
る。添字iが8でないと判定されるとステップ303に
戻る。In step 305, it is determined whether or not the subscript i is 8. That is, for one row in the horizontal direction, all upper quantized DCT coefficients DH ji and lower quantized DCT coefficients
It is determined whether or not the T coefficient DLji has been bit-combined.
If it is determined that the subscript i is 8, the process proceeds to step 306. If it is determined that the subscript i is not 8, the process returns to step 303.
【0100】ステップ306では、添字jに1が加算さ
れる。すなわち、ビット合成される対象の上位量子化D
CT係数DHjiと下位量子化DCT係数DLjiが、1つ
下の行の上位量子化DCT係数DHjiと下位量子化DC
T係数DLjiに移される。In step 306, 1 is added to the subscript j. That is, the upper quantization D to be bit-combined
The CT coefficient DH ji and the lower quantized DCT coefficient DL ji correspond to the upper quantized DCT coefficient DH ji and the lower quantized DC
Transferred to T coefficient DLji .
【0101】ステップ307では、添字jが8であるか
否かが判定される。すなわち、全ての上位量子化DCT
係数DHjiと下位量子化DCT係数DLjiがビット合成
された否かが判定される。添字jが8であると判定され
ると、8×8の上位量子化DCT係数行列DHと下位量
子化DCT係数行列DLに対するビット合成は終了す
る。添字jが8でないと判定されると、ステップ302
に戻る。In step 307, it is determined whether or not the subscript j is 8. That is, all upper quantization DCTs
It is determined whether or not the coefficient DH ji and the lower quantized DCT coefficient DL ji have been bit-combined. If it is determined that the subscript j is 8, the bit combination for the 8 × 8 upper quantized DCT coefficient matrix DH and lower quantized DCT coefficient matrix DL ends. If it is determined that the subscript j is not 8, step 302
Return to
【0102】以上のように本実施形態によれば、量子化
DCT係数Djiのビット列を上ビット列と下位ビット列
にビット分離し、上位ビット列で表される上位量子化D
CT係数DHjiと下位ビット列で表される下位量子化D
CT係数DLjiを求めることにより、画像を効率的に圧
縮することができる。また、上位量子化DCT係数DH
jiと下位量子化DCT係数DLjiをビット合成すること
により、量子化DCT係数Djiを復元し、ほぼ無歪みの
画像を復元することができる。As described above, according to the present embodiment, the bit string of the quantized DCT coefficient Dji is bit-separated into an upper bit string and a lower bit string, and the upper quantization D
Lower quantization D represented by CT coefficient DHji and lower bit string
By obtaining the CT coefficient DLji , the image can be efficiently compressed. Also, the upper quantization DCT coefficient DH
By bit synthesizing ji and lower quantized DCT coefficients DL ji, it is possible to restore the quantized DCT coefficients D ji, to restore the image of the substantially unstrained.
【0103】従来の可逆符号化方式と本発明による画像
圧縮方式を比較するため、それぞれの画像圧縮方式を用
いてカラー静止画像を圧縮し、圧縮率(元画像データ量
に対する圧縮画像データ量の割合)を計った。ただし、
本発明の画像圧縮方式では画像劣化を生じさせないため
に量子化を実行しない。従来の可逆符号化方式の場合、
圧縮率は75.6パーセントであったのに対し、本発明
による画像圧縮方式の場合、圧縮率は70.9パーセン
トであった。この計測結果から、本発明による画像圧縮
方式は従来の可逆符号化方式よりも画像を効率的に圧縮
できることがわかる。To compare the conventional lossless encoding method with the image compression method according to the present invention, a color still image is compressed using each image compression method, and the compression ratio (the ratio of the compressed image data amount to the original image data amount) is calculated. ) Was measured. However,
In the image compression method of the present invention, quantization is not performed to prevent image degradation. In the case of the conventional lossless encoding method,
The compression ratio was 75.6%, whereas the compression ratio of the image compression system according to the present invention was 70.9%. From this measurement result, it is understood that the image compression method according to the present invention can compress the image more efficiently than the conventional lossless encoding method.
【0104】なお、画像圧縮処理に関してはDCT演算
の代わりにアダマール変換を適用してもよい。この場
合、画像伸張処理に関してはIDCT演算の代わりに逆
アダマール変換が用いられる。In the image compression processing, Hadamard transform may be applied instead of the DCT operation. In this case, the inverse Hadamard transform is used for the image expansion processing instead of the IDCT operation.
【0105】[0105]
【発明の効果】以上のように本発明によれば、高解像度
の画像をほぼ無歪みで圧縮、伸張処理することができ、
かつ効率的に圧縮することができる。As described above, according to the present invention, a high-resolution image can be compressed and decompressed with almost no distortion.
And it can be compressed efficiently.
【図1】本発明の一実施形態を適用した画像圧縮装置の
ブロック図である。FIG. 1 is a block diagram of an image compression apparatus to which an embodiment of the present invention has been applied.
【図2】画素ブロックとDCT係数行列と量子化DCT
行列を示した図である。FIG. 2 shows a pixel block, a DCT coefficient matrix, and a quantized DCT.
It is a figure showing a matrix.
【図3】量子化DCT係数行列と上位量子化DCT係数
行列と下位量子化DCT係数行列を示した図である。FIG. 3 is a diagram showing a quantized DCT coefficient matrix, an upper quantized DCT coefficient matrix, and a lower quantized DCT coefficient matrix.
【図4】2つの量子化DCT係数のビット分離を示した
図である。FIG. 4 is a diagram illustrating bit separation of two quantized DCT coefficients.
【図5】ビット分離の手順を示すフローチャートであ
る。FIG. 5 is a flowchart showing a procedure of bit separation.
【図6】本発明の一実施形態を適用した画像伸張装置の
ブロック図である。FIG. 6 is a block diagram of an image decompression device to which an embodiment of the present invention is applied.
【図7】上位量子化DCT係数行列と下位量子化DCT
係数行列と量子化DCT行列を示した図である。FIG. 7 shows an upper quantization DCT coefficient matrix and a lower quantization DCT.
FIG. 3 is a diagram illustrating a coefficient matrix and a quantized DCT matrix.
【図8】量子化DCT係数行列とDCT係数行列と画素
ブロックを示した図である。FIG. 8 is a diagram showing a quantized DCT coefficient matrix, a DCT coefficient matrix, and a pixel block.
【図9】2つの上位量子化DCT係数と下位量子化DC
T係数のビット合成を示した図である。FIG. 9 shows two upper quantized DCT coefficients and a lower quantized DC.
FIG. 9 is a diagram illustrating bit combination of T coefficients.
【図10】ビット合成の手順を示すフローチャートであ
る。FIG. 10 is a flowchart illustrating a procedure of bit combination.
10 画像圧縮装置 30 画像伸張装置 10 Image compression device 30 Image decompression device
─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成11年1月29日(1999.1.2
9)[Submission date] January 29, 1999 (1999.1.2
9)
【手続補正1】[Procedure amendment 1]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0036[Correction target item name] 0036
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【0036】ビット分離の実行により、量子化DCT係
数D11(=36)は右シフト演算される。シフト演算
とは、各ビットを指定されたビット数だけ右または左に
桁移動させる演算である。1ビットの右シフト演算が実
行されると、各ビットが右に1つずつ移動させられ、
「0」である右端の最下位ビットKは分離される。そし
て右シフト演算によって空白になった左端の最上位ビッ
トには、「0」である符号ビットFが埋められる。By performing the bit separation, the quantized DCT coefficient D 11 (= 36) is right-shifted. The shift operation is an operation for shifting each bit right or left by a designated number of bits. When a one bit right shift operation is performed, each bit is shifted one by one to the right,
The rightmost least significant bit K which is "0" is separated. The left most significant bit left blank by the right shift operation is filled with a sign bit F of “0”.
【手続補正2】[Procedure amendment 2]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0055[Correction target item name] 0055
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【0055】例えば1ビットのビット分離の場合、量子
化DCT係数D21(=−7)に対して下位量子化DC
T係数DL21の値は、上位量子化DCT係数DH21
の値が−4であることから DL21= −7−(−4×21)=1 となる。For example, in the case of 1-bit separation, the lower-order quantized DCT coefficient D 21 (= −7) is
The value of the T coefficient DL 21 is the upper quantized DCT coefficient DH 21
Is −4, DL 21 = −7 − (− 4 × 2 1 ) = 1.
【手続補正3】[Procedure amendment 3]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0056[Correction target item name] 0056
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【0056】例えば3ビットのビット分離の場合、量子
化DCT係数D21(=−7)に対して下位量子化DC
T係数DL21の値は、上位量子化DCT係数DH21
の値が−1であることから DL21= −7−(−1×23)=1 となる。For example, in the case of bit separation of 3 bits, the quantized DCT coefficient D 21 (= −7) is
The value of the T coefficient DL 21 is the upper quantized DCT coefficient DH 21
Is −1, DL 21 = −7 − (− 1 × 2 3 ) = 1.
【手続補正4】[Procedure amendment 4]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0096[Correction target item name] 0096
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【0096】例えば、1ビットのビット合成の場合、上
位量子化DCT係数DH21(=−4) と下位量子化
DCT係数DL21(=1)に対して量子化DCT係数
D2 1の値は、 D21=−4×21 +1=−7 となる。[0096] For example, in the case of 1-bit bit synthetic, upper quantized DCT coefficients DH 21 (= -4) and lower quantized DCT coefficients DL 21 (= 1) the quantized DCT coefficients D 2 1 value for the , D 21 = −4 × 2 1 + 1 = −7.
【手続補正5】[Procedure amendment 5]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0101[Correction target item name] 0101
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【0101】ステップ307では、添字jが8であるか
否かが判定される。すなわち、全ての上位量子化DCT
係数DHjiと下位量子化DCT係数DLjiがビット
合成されたか否かが判定される。添字jが8であると判
定されると、8×8の上位量子化DCT係数行列DHと
下位量子化DCT係数行列DLに対するビット合成は終
了する。添字jが8でないと判定されると、ステップ3
02に戻る。In step 307, it is determined whether or not the subscript j is 8. That is, all upper quantization DCTs
It is determined whether or not the coefficient DH ji and the lower quantized DCT coefficient DL ji have been bit-combined. If it is determined that the subscript j is 8, the bit combination for the 8 × 8 upper quantized DCT coefficient matrix DH and lower quantized DCT coefficient matrix DL ends. If it is determined that the subscript j is not 8, step 3
Return to 02.
【手続補正6】[Procedure amendment 6]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0102[Correction target item name] 0102
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
【0102】以上のように本実施形態によれば、量子化
DCT係数Djiのビット列を上位ビット列と下位ビッ
ト列にビット分離し、上位ビット列で表される上位量子
化DCT係数DHjiと下位ビット列で表される下位量
子化DCT係数DLjiを求めることにより、画像を効
率的に圧縮することができる。また、上位量子化DCT
係数DHjiと下位量子化DCT係数DLjiをビット
合成することにより、量子化DCT係数Djiを復元
し、ほぼ無歪みの画像を復元することができる。As described above, according to the present embodiment, the bit string of the quantized DCT coefficient D ji is bit-separated into an upper bit string and a lower bit string, and the upper quantized DCT coefficient DH ji and the lower bit string represented by the upper bit string are separated. By obtaining the lower quantized DCT coefficient DL ji represented, the image can be efficiently compressed. Also, upper quantization DCT
By bit combining the coefficient DH ji and the lower-order quantized DCT coefficient DL ji , the quantized DCT coefficient D ji can be restored, and an almost distortion-free image can be restored.
───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C057 AA03 BA14 EA01 EC01 EK04 EL01 EM09 EM11 EM16 GF01 GF02 GM01 5C059 KK03 LA01 MA00 MA23 MA34 MC02 MC14 MC33 MC35 MC36 MC38 ME02 PP01 PP14 SS15 UA02 UA05 5C078 AA09 BA01 BA12 BA21 BA44 BA57 CA22 DA01 DA02 DB18 ──────────────────────────────────────────────────続 き Continuing on the front page F term (reference) 5C057 AA03 BA14 EA01 EC01 EK04 EL01 EM09 EM11 EM16 GF01 GF02 GM01 5C059 KK03 LA01 MA00 MA23 MA34 MC02 MC14 MC33 MC35 MC36 MC38 ME02 PP01 PP14 SS15 UA02 UA05 BA01BA21 BA21 CA22 DA01 DA02 DB18
Claims (6)
タを直交変換することによりビット列で表される直交変
換係数を求める直交変換手段と、 前記直交変換係数のビット列を上位ビット列と下位ビッ
ト列の2つに分離し、前記上位ビット列で表される上位
直交変換係数と前記下位ビット列で表される下位直交変
換係数とを求めるビット分離手段と、 前記上位直交変換係数を符号化することにより、圧縮画
像データを求める符号化手段と、 を備えたことを特徴とする画像圧縮装置。1. An orthogonal transformation means for orthogonally transforming image data corresponding to an input still image to obtain an orthogonal transformation coefficient represented by a bit string, and converting the bit string of the orthogonal transformation coefficient into an upper bit string and a lower bit string. Bit separation means for obtaining an upper orthogonal transform coefficient represented by the upper bit string and a lower orthogonal transform coefficient represented by the lower bit string; and encoding the upper orthogonal transform coefficient to obtain a compressed image. An image compression apparatus, comprising: encoding means for obtaining data;
記直交変換係数をビット分離することを特徴とする請求
項1に記載の画像圧縮装置。2. The image compression apparatus according to claim 1, wherein said bit separation means separates the quantized orthogonal transform coefficients into bits.
れる前記直交変換係数を右シフト演算し、前記右シフト
演算により変換される前記直交変換係数のビット列を前
記上位ビット列、前記右シフト演算により分離されるビ
ット列を前記下位ビット列とすることで前記上位直交変
換係数と前記下位直交変換係数とを求めることを特徴と
する請求項1に記載の画像圧縮装置。3. The bit separation means performs a right shift operation on the orthogonal transform coefficient represented by a bit sequence, and converts the bit sequence of the orthogonal transform coefficient converted by the right shift operation into the upper bit sequence and the right shift operation. The image compression apparatus according to claim 1, wherein the upper-order orthogonal transform coefficient and the lower-order orthogonal transform coefficient are obtained by using a bit string to be separated as the lower-order bit string.
することにより、前記上位直交変換係数を求める復号化
手段と、 入力される前記下位直交変換係数と前記復号化手段によ
って得られた前記上位直交変換係数をビット合成するこ
とにより、前記直交変換係数を求めるビット合成手段
と、 前記直交変換係数を逆直交変換することにより、前記画
像データを求める逆直交変換手段と、 を備えたことを特徴とする画像伸張装置。4. A decoding means for obtaining the upper orthogonal transform coefficient by decoding the input compressed image data, and the higher order orthogonal coefficient obtained by the input lower orthogonal transform coefficient and the higher order orthogonal coefficient obtained by the decoding means. Bit combining means for calculating the orthogonal transform coefficient by bit combining orthogonal transform coefficients, and inverse orthogonal transform means for obtaining the image data by inverse orthogonally transforming the orthogonal transform coefficient. Image expansion device.
前記直交変換係数を逆直交変換することを特徴とする請
求項4に記載の画像伸張装置。5. The image decompression device according to claim 4, wherein the inverse orthogonal transform unit performs inverse orthogonal transform on the inversely quantized orthogonal transform coefficient.
れる前記上位直交変換係数を左シフト演算し、前記左シ
フト演算によって空白になるビット部分に前記下位ビッ
ト列を当てはめることにより、前記直交変換係数を求め
ることを特徴とする請求項4に記載の画像伸張装置。6. The orthogonal transform coefficient by performing a left shift operation on the upper orthogonal transform coefficient represented by a bit sequence and applying the lower bit sequence to a bit portion that becomes blank by the left shift operation. The image decompression device according to claim 4, wherein
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17889198A JP2000013797A (en) | 1998-06-25 | 1998-06-25 | Image compression device and image decompression device |
| US09/338,380 US6396955B1 (en) | 1998-06-25 | 1999-06-23 | Image compression and expansion device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17889198A JP2000013797A (en) | 1998-06-25 | 1998-06-25 | Image compression device and image decompression device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000013797A true JP2000013797A (en) | 2000-01-14 |
Family
ID=16056511
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17889198A Withdrawn JP2000013797A (en) | 1998-06-25 | 1998-06-25 | Image compression device and image decompression device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000013797A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005088977A1 (en) * | 2004-03-12 | 2005-09-22 | Canon Kabushiki Kaisha | Moving image coding apparatus, moving image decoding apparatus, control method therefor, computer program, and computer-readable storage medium |
| JP2006094225A (en) * | 2004-09-24 | 2006-04-06 | Fujitsu Ltd | Image processing apparatus, image processing method, and program thereof |
| US7957604B2 (en) | 2004-03-12 | 2011-06-07 | Canon Kabushiki Kaisha | Moving image coding apparatus, moving image decoding apparatus, control method therefor, and computer-readable storage medium |
| US8260072B2 (en) | 2008-08-07 | 2012-09-04 | Canon Kabushiki Kaisha | Image encoding apparatus and method of controlling the same |
| JP2013013085A (en) * | 2011-06-29 | 2013-01-17 | Canon Inc | Compression of high bit-depth images |
-
1998
- 1998-06-25 JP JP17889198A patent/JP2000013797A/en not_active Withdrawn
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005088977A1 (en) * | 2004-03-12 | 2005-09-22 | Canon Kabushiki Kaisha | Moving image coding apparatus, moving image decoding apparatus, control method therefor, computer program, and computer-readable storage medium |
| JP2005295504A (en) * | 2004-03-12 | 2005-10-20 | Canon Inc | Moving picture encoding apparatus and decoding apparatus, control method therefor, computer program, and computer-readable storage medium |
| US7822282B2 (en) | 2004-03-12 | 2010-10-26 | Canon Kabushiki Kaisha | Moving image coding apparatus, moving image decoding apparatus, control method therefor, computer program, and computer-readable storage medium |
| US7957604B2 (en) | 2004-03-12 | 2011-06-07 | Canon Kabushiki Kaisha | Moving image coding apparatus, moving image decoding apparatus, control method therefor, and computer-readable storage medium |
| JP2006094225A (en) * | 2004-09-24 | 2006-04-06 | Fujitsu Ltd | Image processing apparatus, image processing method, and program thereof |
| US8260072B2 (en) | 2008-08-07 | 2012-09-04 | Canon Kabushiki Kaisha | Image encoding apparatus and method of controlling the same |
| JP2013013085A (en) * | 2011-06-29 | 2013-01-17 | Canon Inc | Compression of high bit-depth images |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3830009B2 (en) | Data processing system and color conversion method | |
| JP4343440B2 (en) | Real-time algorithm and architecture for encoding images compressed by DWT-based techniques | |
| JP3320389B2 (en) | Data processing method, system, device, and program storage device | |
| JP4559622B2 (en) | Color image compression based on two-dimensional discrete wavelet transform yielding perceptually lossless images | |
| KR100880039B1 (en) | Method and system for achieving coding gain in wavelet based image codec | |
| US6285796B1 (en) | Pseudo-fixed length image compression scheme | |
| JP3856336B2 (en) | Forward conversion apparatus and method, inverse conversion apparatus and method, color conversion processing apparatus and method, and data processing apparatus | |
| US7548583B2 (en) | Generation and use of masks in MPEG video encoding to indicate non-zero entries in transformed macroblocks | |
| US6396955B1 (en) | Image compression and expansion device | |
| JP3469438B2 (en) | Image signal processing method and apparatus, recording medium | |
| JPH1075448A (en) | Image compression device and image decompression device | |
| JP2004040429A (en) | DIGITAL IMAGE ENCODING DEVICE, DIGITAL IMAGE ENCODING METHOD USED FOR THE SAME, AND PROGRAM THEREOF | |
| JP2000013797A (en) | Image compression device and image decompression device | |
| JPH0487460A (en) | Picture processor | |
| US20090304073A1 (en) | Systems and Methods for the Bandwidth Efficient Processing of Data | |
| JPH1188701A (en) | Image compression device and image decompression device | |
| JP3732900B2 (en) | Image compression apparatus and image expansion apparatus | |
| JP3845206B2 (en) | Image compression apparatus and image expansion apparatus | |
| JP3650527B2 (en) | Image compression apparatus and image expansion apparatus | |
| US7164369B2 (en) | System for improving storage efficiency of digital files | |
| JP3709106B2 (en) | Image compression and decompression device | |
| JP3559314B2 (en) | Image compression device | |
| JP2000101848A (en) | Image compression device and image decompression device | |
| JP3857820B2 (en) | Image compression apparatus and image expansion apparatus | |
| JP2698034B2 (en) | Code conversion method, code conversion system, and digital data signal processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040830 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041027 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050209 |
|
| A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20050316 |