JPH05219358A - Compressed picture data extraction device - Google Patents

Compressed picture data extraction device

Info

Publication number
JPH05219358A
JPH05219358A JP5711692A JP5711692A JPH05219358A JP H05219358 A JPH05219358 A JP H05219358A JP 5711692 A JP5711692 A JP 5711692A JP 5711692 A JP5711692 A JP 5711692A JP H05219358 A JPH05219358 A JP H05219358A
Authority
JP
Japan
Prior art keywords
image data
coefficient
data
compressed image
pixel block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5711692A
Other languages
Japanese (ja)
Other versions
JP2791410B2 (en
Inventor
Hidetoshi Nakanishi
英俊 中西
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing 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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP5711692A priority Critical patent/JP2791410B2/en
Publication of JPH05219358A publication Critical patent/JPH05219358A/en
Application granted granted Critical
Publication of JP2791410B2 publication Critical patent/JP2791410B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To extract compressed picture data of a partial picture without expanding compressed picture data of the entire picture. CONSTITUTION:Compressed picture data Dc include coded data being Huffman- coding of one DC coefficient and 63 sets of AC coefficients for each picture element block. The DC coefficient is decoded by a DC decoding circuit 224 and the AC coefficient is decoded by an AC decoding circuit 226 to identify a delimiter of the coded data. When the DC decoding circuit 224 decodes the coded data, a count-up signal CA is outputted and accumulated by a counter 210 and whether or not a picture element block during processing is a picture element block in an extracted area is discriminated by a CPU 42 based on the count CT. The decoded DC coefficient is extracted as to a head picture element block in the extracted area and the coded data are extracted as to the other picture element DC coefficient and the AC coefficient of all the picture element blocks.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えば商業印刷用の
圧縮画像データの一部を抽出する装置に関し、特に系列
変換とエントロピー符号化によって符号化された全画像
の圧縮画像データから、所望の部分画像の圧縮画像デー
タを抽出する装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for extracting a part of compressed image data for commercial printing, for example, and it is desirable to extract a desired image from compressed image data of all images encoded by sequence conversion and entropy coding. The present invention relates to a device for extracting compressed image data of a partial image.

【0002】[0002]

【従来の技術】印刷製版用の画像データはデータ量が膨
大なため、画像データをそのまま記憶するには膨大なメ
モリ容量が必要となり、また、データ転送に多大の時間
を要する。そこで、画像データを符号化して画像データ
を圧縮することにより、そのデータ量を減少させる画像
データ圧縮方法が一般に利用されている。
2. Description of the Related Art Since image data for printing plate making has a huge amount of data, a huge memory capacity is required to store the image data as it is, and a large amount of time is required for data transfer. Therefore, an image data compression method is generally used in which the amount of data is reduced by encoding the image data and compressing the image data.

【0003】多値画像データの圧縮方法としては、いわ
ゆるベクトル量子化符号化や直交変換符号化などの技術
が用いられる。直交変換としては、ディスクリートコサ
イン変換(以下、「DCT変換」と呼ぶ)やアダマール
変換が知られている。圧縮に際しては、DCT変換など
の系列変換によって得られた変換係数を量子化し、さら
に、ハフマン符号化などのエントロピー符号化によって
変換係数を符号化する。これらの圧縮方法は、高圧縮率
で画像データを圧縮することが可能であるが、その反
面、圧縮画像データを復元して得られる画像データが圧
縮前の画像データと完全には一致しない、いわゆる非可
逆の符号化方法である。
Techniques such as so-called vector quantization coding and orthogonal transform coding are used as a method of compressing multi-valued image data. Discrete cosine transform (hereinafter referred to as "DCT transform") and Hadamard transform are known as the orthogonal transform. At the time of compression, the transform coefficient obtained by the series transform such as DCT transform is quantized, and the transform coefficient is further encoded by entropy coding such as Huffman coding. These compression methods are capable of compressing image data at a high compression rate, but on the other hand, the image data obtained by restoring compressed image data does not completely match the image data before compression, so-called It is a lossy encoding method.

【0004】ところで、商業印刷用の画像処理では、1
つの画像内の部分的な画像領域(以下、「部分画像」と
呼ぶ)のみを取り出して、他の画像と合成したい場合が
ある。全画像の圧縮画像データの中から部分画像の圧縮
画像データを抽出する方法としては、特開昭62−18
8467号公報に記載された方法がある。この方法は、
ランレングス圧縮された画像データを対象としており、
圧縮画像データのランレングスを積算して全画像内にお
けるランレングスデータの位置を検出し、抽出すべき部
分画像の位置にあるランレングスデータのみを抽出す
る。ランレングス圧縮された圧縮画像データについて
は、ランレングスが画素の個数を表わしているので、上
述の方法で所望の部分画像の圧縮画像データのみを抽出
することが可能である。
By the way, in image processing for commercial printing, 1
In some cases, it may be desired to take out only a partial image area in one image (hereinafter referred to as “partial image”) and combine it with another image. As a method for extracting the compressed image data of partial images from the compressed image data of all images, Japanese Patent Laid-Open No. 62-18
There is a method described in Japanese Patent No. 8467. This method
The target is run-length compressed image data,
The run lengths of the compressed image data are integrated to detect the position of the run length data in all the images, and only the run length data at the position of the partial image to be extracted is extracted. In the run-length compressed compressed image data, since the run length represents the number of pixels, it is possible to extract only the compressed image data of the desired partial image by the method described above.

【0005】[0005]

【発明が解決しようとする課題】一方、エントロピー符
号化されている圧縮画像データは、圧縮画像データを伸
長せずに圧縮画像データ(可変長符号化データ)に対応
する画像位置を求めるのは困難である。このため、従来
は、圧縮画像データから所望の部分画像の圧縮画像デー
タを抽出するために、全画像の圧縮画像データを伸長し
た後に、部分画像の画像データを抽出し、抽出した画像
データを再度圧縮することによって部分画像の圧縮画像
データを作成していた。しかし、この方法では、全画像
の圧縮画像データを伸長するのにかなりの時間を要する
という問題があった。
On the other hand, in the case of entropy-coded compressed image data, it is difficult to obtain the image position corresponding to the compressed image data (variable length encoded data) without decompressing the compressed image data. Is. For this reason, conventionally, in order to extract the compressed image data of a desired partial image from the compressed image data, after decompressing the compressed image data of all the images, the image data of the partial images is extracted, and the extracted image data is again extracted. The compressed image data of the partial image is created by compressing. However, this method has a problem that it takes a considerable time to decompress the compressed image data of all images.

【0006】この発明は、従来技術における上述の課題
を解決するためになされたものであり、全画像の圧縮画
像データを伸長することなく、部分画像の圧縮画像デー
タを抽出することを目的とする。
The present invention has been made to solve the above-mentioned problems in the prior art, and its object is to extract the compressed image data of the partial image without decompressing the compressed image data of the entire image. ..

【0007】[0007]

【課題を解決するための手段】上述の課題を解決するた
め、請求項1に記載した発明による装置は、所定方向の
走査線に沿って、全体画像内の画素ブロックごとに画像
データを系列変換するとともに変換係数をエントロピー
符号化することによって作成された全体圧縮画像データ
の中から、部分画像に相当する部分圧縮画像データを抽
出する装置であって、(a)前記全体画像を表示する表
示手段と、(b)前記表示手段に表示された前記全体画
像内の部分画像の領域を指定する領域指定手段と、
(c)前記指定された部分画像を含み、複数の画素ブロ
ックで構成される抽出領域を特定する抽出領域特定手段
と、(d)前記全体圧縮画像データのエントロピー符号
化データを順次復号化するとともに復号化データの個数
を累算し、復号化データの個数に基づいて、前記全体圧
縮画像データにおける画素ブロック間の境界を検出する
エントロピー復号化手段と、(e)前記エントロピー復
号化手段による前記画素ブロック間の境界の検出に応じ
て、前記全体圧縮画像データにおける画素ブロックの個
数を累算する画素ブロックカウンタと、(f)前記画素
ブロックカウンタのカウント数に基づいて、前記抽出領
域に含まれる画素ブロックに相当する圧縮画像データを
部分圧縮画像データとして抽出する抽出手段と、を備え
る。また、請求項2に記載した圧縮画像データ抽出装置
は、全体圧縮画像データは、ディスクリートコサイン変
換のDC係数とAC係数とをエントロピー符号化したエ
ントロピー符号化データを含み、抽出手段は、所定方向
の走査線に沿って全体画像を見たときに抽出領域の先頭
に位置する先頭画素ブロックに相当するエントロピー符
号化データを、画素ブロックカウンタのカウント値に基
づいて検出し、当該先頭画素ブロックについては前記D
C係数を実質的に表わすエントロピー復号化データを部
分圧縮画像データとして抽出する第1の手段を含む。
In order to solve the above-mentioned problems, an apparatus according to the invention described in claim 1 serially converts image data for each pixel block in an entire image along a scanning line in a predetermined direction. A device for extracting partially compressed image data corresponding to a partial image from the entire compressed image data created by entropy-encoding the transform coefficient, and (a) display means for displaying the entire image And (b) a region designating unit that designates a region of the partial image in the whole image displayed on the display unit,
(C) extraction area specifying means for specifying an extraction area including the specified partial image and composed of a plurality of pixel blocks; and (d) sequentially decoding the entropy coded data of the entire compressed image data, Entropy decoding means for accumulating the number of decoded data and detecting a boundary between pixel blocks in the whole compressed image data based on the number of decoded data; and (e) the pixel by the entropy decoding means. A pixel block counter that accumulates the number of pixel blocks in the entire compressed image data according to the detection of a boundary between blocks, and (f) a pixel included in the extraction region based on the count number of the pixel block counter. Extraction means for extracting the compressed image data corresponding to the block as the partial compressed image data. Further, in the compressed image data extraction device according to a second aspect of the present invention, the entire compressed image data includes entropy coded data obtained by entropy coding the DC coefficient and the AC coefficient of the discrete cosine transform, and the extracting means has a predetermined direction. Entropy coded data corresponding to the head pixel block located at the head of the extraction area when the entire image is viewed along the scanning line is detected based on the count value of the pixel block counter, and the head pixel block is D
A first means for extracting the entropy-decoded data substantially representing the C coefficient as the partially compressed image data is included.

【0008】さらに、請求項3に記載した圧縮画像デー
タ抽出装置は、全体圧縮画像データにおけるDC係数の
エントロピー符号化データは、所定方向の走査線に沿っ
て隣接する画素ブロック間のDC係数の差分をエントロ
ピー符号化したエントロピー符号化データを含み、第1
の手段は、エントロピー復号化されたDC係数の差分を
走査線に沿って累算することによって各画素ブロックに
おけるDC係数の値を求めるとともに、先頭画素ブロッ
クに対しては、当該累算によって得られたDC係数の値
を部分圧縮画像データとして抽出する第2の手段を含
む。
Further, in the compressed image data extraction device according to the third aspect, the entropy-coded data of the DC coefficient in the entire compressed image data is the difference in DC coefficient between the pixel blocks adjacent to each other along the scanning line in the predetermined direction. Including entropy-encoded data obtained by entropy-encoding
Means obtains the value of the DC coefficient in each pixel block by accumulating the difference of the DC coefficient subjected to entropy decoding along the scanning line, and obtains the value of the DC coefficient in each pixel block by the accumulation. The second means for extracting the value of the DC coefficient as the partially compressed image data is included.

【0009】[0009]

【作用】エントロピー復号化手段がエントロピー符号化
データを復号化することによって得られる復号化データ
は、画像データを系列変換した変換係数に相当する。1
つの画素ブロックに対する変換係数の個数は、系列変換
の方法によって決まる一定の数である。そこで、エント
ロピー復号化手段は、この変換係数(復号化データ)の
個数を累算することによって、全体圧縮画像データにお
ける画素ブロック間の境界を検出する。画素ブロックカ
ウンタは、エントロピー復号化手段による画素ブロック
の境界の検出に応じて画素ブロックの個数を累算する。
抽出領域を構成する画素ブロックは抽出領域特定手段に
よって特定されているので、抽出手段は画素ブロックカ
ウンタのカウント数に基づいて、各画素ブロックが抽出
領域に含まれるか否かを判別でき、さらに、抽出領域に
含まれる画素ブロックに相当する圧縮画像データを部分
圧縮画像データとして抽出できる。
The decoded data obtained by the entropy decoding means decoding the entropy coded data corresponds to the transform coefficient obtained by series-converting the image data. 1
The number of transform coefficients for one pixel block is a fixed number determined by the method of sequence conversion. Therefore, the entropy decoding unit detects the boundary between pixel blocks in the overall compressed image data by accumulating the number of transform coefficients (decoded data). The pixel block counter accumulates the number of pixel blocks according to the detection of the boundaries of the pixel blocks by the entropy decoding means.
Since the pixel blocks forming the extraction area are specified by the extraction area specifying means, the extraction means can determine whether or not each pixel block is included in the extraction area based on the count number of the pixel block counter. The compressed image data corresponding to the pixel block included in the extraction area can be extracted as the partial compressed image data.

【0010】請求項2では、全体圧縮画像データを作成
する際に、画像データがディスクリートコサイン変換で
変換され、この変換で得られるDC係数(直流成分)と
AC係数(交流成分)がエントロピー符号化されてい
る。DC係数が予測符号化などの方法に従ってエントロ
ピー符号化されていると、抽出領域のDC係数のエント
ロピー符号化データのみでは抽出領域の画像を再現でき
ない場合がある。そこで、請求項2に記載したように、
第1の手段が、抽出領域の先頭画素ブロックについてD
C係数を実質的に表わすエントロピー復号化データを部
分圧縮画像データとして抽出すれば、DC係数が予測符
号化などの方法を用いてエントロピー符号化されていて
も、部分圧縮画像データによって抽出領域の画像を復元
することができる。
According to a second aspect, when the whole compressed image data is created, the image data is converted by the discrete cosine transform, and the DC coefficient (DC component) and the AC coefficient (AC component) obtained by this conversion are entropy coded. Has been done. If the DC coefficient is entropy coded according to a method such as predictive coding, the image of the extraction area may not be reproduced only by the entropy coded data of the DC coefficient of the extraction area. Therefore, as described in claim 2,
The first means sets D for the first pixel block of the extraction area.
If the entropy-decoded data that substantially represents the C coefficient is extracted as the partially compressed image data, even if the DC coefficient is entropy coded by using a method such as predictive coding, the image of the extraction region is extracted by the partially compressed image data. Can be restored.

【0011】ここで、「DC係数の値を実質的に表わす
エントロピー復号化データ」とは、先頭画素ブロックの
DC係数の値を求めることができるデータを言い、何ら
かの演算を行なうことによってDC係数の値を求められ
るようなデータも含んでいる。例えば、先頭画素ブロッ
クのDC係数の値そのものでもよく、DC係数の差分値
と1つ前の画素ブロックのDC係数の値でもよい。
Here, "entropy-decoded data substantially representing the value of the DC coefficient" means data for which the value of the DC coefficient of the first pixel block can be obtained, and the DC coefficient of the DC coefficient can be obtained by performing some calculation. It also contains the data for which the value is required. For example, the DC coefficient value itself of the first pixel block may be used, or the difference value of the DC coefficient and the DC coefficient value of the immediately preceding pixel block may be used.

【0012】請求項3では、DC係数の差分をエントロ
ピー符号化することによって全体圧縮画像データが生成
されている。この場合には、第2の手段が、エントロピ
ー復号化されたDC係数の差分を走査線に沿って累算す
ることによって、各画素ブロックにおけるDC係数の値
を求めることができ、先頭画素ブロックについてはDC
係数を部分圧縮画像データとして抽出する。このよう
に、先頭画素ブロックについては、DC係数が部分圧縮
画像データとして抽出されるので、部分圧縮画像データ
のみで抽出領域の画像を復元することができる。
In the third aspect, the entire compressed image data is generated by entropy coding the difference of the DC coefficient. In this case, the second means can obtain the value of the DC coefficient in each pixel block by accumulating the difference between the DC coefficients that have been entropy-decoded along the scanning line. Is DC
The coefficient is extracted as partially compressed image data. As described above, since the DC coefficient of the head pixel block is extracted as the partially compressed image data, the image of the extraction area can be restored only by the partially compressed image data.

【0013】[0013]

【実施例】A.装置の全体構成 図1は、この発明の一実施例としての画像処理システム
を示すブロック図である。この画像処理システムは、画
像入力装置30と画像データ圧縮装置40とを備えてい
る。画像入力装置30は、例えば原稿の画像データを読
み取る読取スキャナである。
EXAMPLES A. Overall Configuration of Apparatus FIG. 1 is a block diagram showing an image processing system as an embodiment of the present invention. This image processing system includes an image input device 30 and an image data compression device 40. The image input device 30 is, for example, a reading scanner that reads image data of a document.

【0014】画像データ圧縮装置40は、CPU42
と、バスライン44とを備えており、バスライン44に
は、メモリ46と、圧縮処理部48と、伸長処理部50
と、フレームメモリ52とが接続されている。フレーム
メモリ52にはD/A変換器54とCRT56とが順次
接続されている。バスライン44には、さらに、画像入
力装置30と接続されるインタフェイス58と、他の外
部装置との通信を行なうための通信インタフェイス60
と、大容量の画像データを保存するための光磁気ディス
ク62および磁気ディスク64と、キーボード66と、
マウス68とが接続されている。
The image data compression device 40 includes a CPU 42.
And a bus line 44. The bus line 44 includes a memory 46, a compression processing unit 48, and a decompression processing unit 50.
And the frame memory 52 are connected. A D / A converter 54 and a CRT 56 are sequentially connected to the frame memory 52. The bus line 44 further includes an interface 58 connected to the image input device 30 and a communication interface 60 for communicating with other external devices.
A magneto-optical disk 62 and a magnetic disk 64 for storing a large amount of image data, a keyboard 66,
The mouse 68 is connected.

【0015】B.画像データの圧縮方法の概要と圧縮画
像データの構成 圧縮画像データの抽出方法を説明する前に、その前提と
なる画像データの圧縮方法の概要と圧縮画像データの構
成とを説明する。この実施例では、カラー静止画符号化
の国際標準方式(以下、「JPEG方式」と呼ぶ)に従
って画像データを圧縮する。なお、この国際標準方式に
ついては、「カラー静止画符号化国際標準方式(JPE
G)の概説(その1)」、大町隆夫他、画像電子学会
誌、1991年、第20巻、第1号、第50頁〜第58
頁に説明されている。
B. Outline of Image Data Compressing Method and Structure of Compressed Image Data Before explaining the extracting method of the compressed image data, the outline of the image data compressing method and the structure of the compressed image data, which are prerequisites thereof, will be described. In this embodiment, image data is compressed according to the international standard method of color still image encoding (hereinafter referred to as "JPEG method"). Regarding this international standard, refer to "International Standard for Color Still Image Coding (JPE
G) (Part 1) ", Takao Omachi et al., The Institute of Image Electronics Engineers of Japan, 1991, Volume 20, No. 1, pp. 50-58.
Page.

【0016】図2は、圧縮処理部48に含まれている符
号化ユニットの構成を示すブロック図である。符号化ユ
ニットは、DCT変換部72と、量子化部74と、ハフ
マン符号化部76とを有している。また、ハフマン符号
化部76は、DC係数符号化部78と、AC係数符号化
部80と、圧縮データ編集部82とを備えている。DC
T変換部72では、画像入力装置30によって読み取ら
れた原画像データDoが2次元DCT変換される。この
際、全画像領域が8×8画素の画素ブロックに分割さ
れ、各画素ブロックごとにDCT変換が行なわれる。ま
た、カラー画像の場合、各色版(例えばイエロー、マゼ
ンタ、シアン、ブラックの各色版)ごとに変換される。
図3(a)は、全画像IPがM×N個の画素ブロックP
Bに分割された様子を示す概念図であり、図3(b)は
1つの画素ブロックPBを拡大して示している。
FIG. 2 is a block diagram showing the structure of the encoding unit included in the compression processing unit 48. The coding unit has a DCT transform unit 72, a quantization unit 74, and a Huffman coding unit 76. The Huffman coding unit 76 also includes a DC coefficient coding unit 78, an AC coefficient coding unit 80, and a compressed data editing unit 82. DC
In the T conversion unit 72, the original image data Do read by the image input device 30 is two-dimensionally DCT converted. At this time, the entire image region is divided into pixel blocks of 8 × 8 pixels, and DCT conversion is performed for each pixel block. In the case of a color image, each color plate (for example, each color plate of yellow, magenta, cyan, and black) is converted.
In FIG. 3A, the entire image IP has M × N pixel blocks P.
FIG. 3 is a conceptual diagram showing a state of being divided into B, and FIG. 3B shows one pixel block PB in an enlarged manner.

【0017】1つの画素ブロックPB内の8×8個(=
64個)の画像データは、DCT変換によって8×8個
の変換係数に変換される。図4は、DCT変換により得
られる変換係数F(p,q)を示す説明図である。8×
8の変換係数F(p,q)のうちで、F(0,0)は直
流成分(以下、「DC係数」と呼ぶ)であり、F(0,
0)以外は交流成分(以下、「AC係数」と呼ぶ)であ
る。
8 × 8 (=) pixels in one pixel block PB
64 pieces of image data are converted into 8 × 8 conversion coefficients by DCT conversion. FIG. 4 is an explanatory diagram showing the transform coefficient F (p, q) obtained by the DCT transform. 8x
Of the eight conversion coefficients F (p, q), F (0,0) is a direct current component (hereinafter referred to as “DC coefficient”), and F (0,0)
Other than 0) are AC components (hereinafter referred to as “AC coefficients”).

【0018】量子化部74は、64個の変換係数F
(p,q)を線形量子化する。図5は、量子化の際に用
いられる量子化テーブルの例を示す説明図である。各変
換係数F(p,q)は、量子化テーブルの各位置(p,
q)に示された量子化幅Ss(ステップサイズ)によ
り、次式に従って線形量子化される。 f(p,q)=round[F(p,q)/Ss(p,q)] …(1) ここで、f(p,q)は量子化後の変換係数であり、演
算子「round」はもっとも近い整数に整数化する演
算を示す。
The quantizing unit 74 has 64 transform coefficients F.
Linearly quantize (p, q). FIG. 5 is an explanatory diagram showing an example of a quantization table used for quantization. Each transform coefficient F (p, q) is assigned to each position (p, p,
Linear quantization is performed according to the following equation with the quantization width Ss (step size) shown in q). f (p, q) = round [F (p, q) / Ss (p, q)] (1) Here, f (p, q) is a quantized conversion coefficient, and the operator “round” "Indicates an operation for converting to the nearest integer.

【0019】量子化された変換係数f(p,q)は、ハ
フマン符号化部76によって符号化され、圧縮画像デー
タDcとして出力される。JPEG方式では、DC係数
とAC係数とが別々に符号化される。図6は、DC係数
符号化部78の機能を示すブロック図である。また、図
7は、DC係数符号化部78におけるデータ処理の内容
を示す説明図である。ブロック遅延部102と加算器1
04は、各画素ブロックのDC係数Fdと1つ前の画素
ブロックのDC係数Fdとの差分(以下、「DC差分」
とよる)△Fdを算出する。これは、図7(a)および
(b)に示されている。
The quantized transform coefficient f (p, q) is coded by the Huffman coding unit 76 and output as compressed image data Dc. In the JPEG method, the DC coefficient and the AC coefficient are encoded separately. FIG. 6 is a block diagram showing the function of the DC coefficient coding unit 78. FIG. 7 is an explanatory diagram showing the contents of data processing in the DC coefficient coding unit 78. Block delay unit 102 and adder 1
04 is the difference between the DC coefficient Fd of each pixel block and the DC coefficient Fd of the immediately preceding pixel block (hereinafter referred to as “DC difference”).
ΔFd is calculated. This is shown in Figures 7 (a) and (b).

【0020】グループ化処理部106は、図8に示すグ
ループ化テーブルに従って、DC差分△Fdに対応する
グループ番号SSSSと付加ビットデータAdとを求め
る(図7(f)参照)。なお、図7において付加ビット
データAdは2進数で示されている。グループ番号SS
SSは、図8に示すように、DC差分△Fdの範囲に対
応して定められる番号であり、付加ビットデータAd
は、同じグループ番号SSSSで指定されるDC差分△
Fdの範囲の中の小さい方から何番目の値であるかを示
すデータである。
The grouping processing unit 106 obtains the group number SSSS and the additional bit data Ad corresponding to the DC difference ΔFd according to the grouping table shown in FIG. 8 (see FIG. 7 (f)). In FIG. 7, the additional bit data Ad is shown in binary. Group number SS
As shown in FIG. 8, SS is a number determined corresponding to the range of the DC difference ΔFd, and the additional bit data Ad
Is the DC difference specified by the same group number SSSS.
It is data indicating the smallest value in the range of Fd.

【0021】グループ番号SSSSは、さらに1次元ハ
フマン符号化部108においてハフマン符号化され、グ
ループ番号符号Hd(図7(d)参照)が生成される。
図9は、1次元ハフマン符号化部108によって使用さ
れるハフマン符号テーブル110の一例を示す説明図で
ある。図9のハフマン符号テーブル110は、図7
(c)のグループ番号SSSSと符号データHdとの関
係を表わしたテーブルである。ハフマン符号化によって
得られる符号データ(符号語)は、図9からも解るよう
に可変長である。
The group number SSSS is further Huffman-encoded by the one-dimensional Huffman encoder 108 to generate a group number code Hd (see FIG. 7 (d)).
FIG. 9 is an explanatory diagram showing an example of the Huffman code table 110 used by the one-dimensional Huffman coding unit 108. The Huffman code table 110 of FIG.
It is a table showing the relationship between the group number SSSS of (c) and code data Hd. The code data (codeword) obtained by the Huffman coding has a variable length as can be seen from FIG.

【0022】こうして作成された符号データHdと付加
ビットデータAdはDC係数符号化データCFd(図7
(g)参照)として圧縮データ編集部82(図2)に与
えられる。以上のように、DC係数は、隣接する画素ブ
ロック間のDC係数の差分△Fdをハフマン符号化した
符号データCFdに変換される。DC係数符号化データ
CFdはDC差分△Fdに基づいて符号化されているの
で、画像IP内の部分画像のDC係数符号化データCF
dを復号化すると、DC差分が得られる。通常は、各画
素ブロックのDC差分からDC係数の値を直接求めるこ
とはできない。ただし、各走査線の先頭の画素ブロック
では、DC差分△FdがDC係数Fdに等しいので、復
号化によってDC係数Fdの値を直接得ることができ
る。
The code data Hd and the additional bit data Ad thus created are the DC coefficient coded data CFd (see FIG. 7).
(See (g)) to the compressed data editing unit 82 (FIG. 2). As described above, the DC coefficient is converted into the code data CFd obtained by Huffman coding the DC coefficient difference ΔFd between the adjacent pixel blocks. Since the DC coefficient coded data CFd is coded based on the DC difference ΔFd, the DC coefficient coded data CF of the partial image in the image IP
Decoding d yields the DC difference. Normally, the value of the DC coefficient cannot be directly obtained from the DC difference of each pixel block. However, in the pixel block at the head of each scanning line, the DC difference ΔFd is equal to the DC coefficient Fd, and thus the value of the DC coefficient Fd can be directly obtained by decoding.

【0023】図10は、AC係数符号化部80の機能を
示すブロック図である。AC係数Faは、まずジグザグ
スキャン部112によって1次元に並び直される。図1
1は、ジグザグスキャンの順路を示す説明図である。ま
た、図12(a)は8行8列に配列されたDCT係数の
一例を示し、図12(b)はジグザグスキャンによって
並び直されたAC係数を示している。
FIG. 10 is a block diagram showing the function of the AC coefficient coding unit 80. The AC coefficient Fa is first rearranged in one dimension by the zigzag scanning unit 112. Figure 1
FIG. 1 is an explanatory diagram showing a route of zigzag scanning. Further, FIG. 12A shows an example of DCT coefficients arranged in 8 rows and 8 columns, and FIG. 12B shows AC coefficients rearranged by a zigzag scan.

【0024】判定部114は、1次元に並び直されたA
C係数Faの値が0か否かを判定する。AC係数Faが
0であれば、ランレングスカウンタ116が、連続する
0のAC係数をランレングスカウントNNNNに変換す
る。AC係数Faが0でなければ、グループ化部118
によって、DC係数と同様にグループ番号SSSSと付
加ビットデータAaが生成される。図12(c)には、
0でない8つのAC係数がグループ番号に変換された状
態を示している。
The determination unit 114 is arranged in the one-dimensional rearranged A
It is determined whether or not the value of the C coefficient Fa is 0. If the AC coefficient Fa is 0, the run length counter 116 converts consecutive AC coefficients of 0 into a run length count NNNN. If the AC coefficient Fa is not 0, the grouping unit 118
Thus, the group number SSSS and the additional bit data Aa are generated in the same manner as the DC coefficient. In FIG. 12 (c),
8 shows a state in which eight non-zero AC coefficients are converted into group numbers.

【0025】ランレングスカウントNNNNとグループ
番号SSSSとは、2次元ハフマン符号化部120にお
いてハフマン符号化され、符号データHa(図12
(d))が生成される。図13は、2次元ハフマン符号
化部120によって使用されるハフマン符号テーブル1
22の一例を示す説明図である。このハフマン符号テー
ブル122は、図12(c)のように並べられたデータ
と、符号データHaとの関係を表わしたテーブルであ
る。
The run length count NNNN and the group number SSSS are Huffman-encoded by the two-dimensional Huffman encoder 120 to obtain code data Ha (FIG. 12).
(D)) is generated. FIG. 13 shows a Huffman code table 1 used by the two-dimensional Huffman coding unit 120.
It is explanatory drawing which shows an example of 22. The Huffman code table 122 is a table showing the relationship between the data arranged as shown in FIG. 12C and the code data Ha.

【0026】こうして作成された符号データHaと付加
ビットデータAaはAC係数符号化データCFaとして
圧縮データ編集部82(図2)に与えられる。圧縮デー
タ編集部82は、DC係数符号化データCFdとAC係
数符号化データCFaとを編集して、画像IPの圧縮画
像データDcを作成する。
The code data Ha and the additional bit data Aa thus created are given to the compressed data editing unit 82 (FIG. 2) as AC coefficient coded data CFa. The compressed data editing unit 82 edits the DC coefficient coded data CFd and the AC coefficient coded data CFa to create the compressed image data Dc of the image IP.

【0027】図14は、圧縮画像データDcに含まれる
符号化データの部分の構成を示す説明図である。図14
に示すように、圧縮画像データは次のような特徴があ
る。 (1)各画素ブロックごとにDC係数符号化データCF
dとAC係数符号化データCFaがまとめられて保存さ
れている。 (2)DC係数符号化データCFdとAC係数符号化デ
ータCFaとの間に両者を識別するデータが介挿されて
おらず、符号化データCFdとCFaとが連続してい
る。 (3)各画素ブロックに対応する1群の符号化データの
間にも画素ブロックの境界を識別するデータが介挿され
ていない。 (4)可変長符号化されているので、各画素ブロックの
符号化データのデータ長が異なる。
FIG. 14 is an explanatory diagram showing the structure of the encoded data included in the compressed image data Dc. 14
As shown in, the compressed image data has the following features. (1) DC coefficient coded data CF for each pixel block
d and the AC coefficient coded data CFa are collectively stored. (2) No data for identifying the DC coefficient coded data CFd and the AC coefficient coded data CFa is inserted between them, and the coded data CFd and CFa are continuous. (3) No data for identifying the boundary of the pixel block is inserted between the group of encoded data corresponding to each pixel block. (4) Since the variable length coding is performed, the data length of the coded data of each pixel block is different.

【0028】なお、画像データが複数の色成分(例え
ば、YMCKの4成分)を含む場合には、圧縮画像デー
タ内において各色成分を並べる方法としてノンインター
リーブとインターリーブの2つがある。ノンインターリ
ーブでは、1つの色成分について図14のように符号化
データを並べた後に、次の色成分について符号データを
続ける。一方、インターリーブでは、各画素ブロックご
とに、YMCKの各成分の符号化データを並べた後に、
次の画素ブロックの符号化データを続ける。この実施例
では、ノンインターリーブに従って生成された圧縮画像
データを抽出する場合について説明する。
When the image data includes a plurality of color components (for example, four YMCK components), there are two methods for arranging the color components in the compressed image data: non-interleave and interleave. In non-interleaving, coded data is arranged for one color component as shown in FIG. 14, and then coded data for the next color component is continued. On the other hand, in interleaving, after arranging the encoded data of each component of YMCK for each pixel block,
Continue with the encoded data for the next pixel block. In this embodiment, a case will be described in which compressed image data generated according to non-interleave is extracted.

【0029】C.伸長処理部の構成と動作 図15は、圧縮画像データの抽出が行なわれる伸長処理
部50の内部構成と、圧縮画像データの抽出に関連する
他の回路要素を示すブロック図である。伸長処理部50
は、復号回路202と、第1のバッファ204と、積算
回路206と、カウンタ210と、第2のバッファ21
2と、IDCT変換回路214と、メモリ216とを有
している。IDCT変換回路214は、圧縮画像データ
を伸長する際に逆DCT変換を行なう回路であり、圧縮
画像データの抽出処理の際には利用されない。なお、図
1において省略されていたCPU42の入力インタフェ
イス41と出力インタフェイス43も図示されている。
復号回路202は、分離回路222と、DC復号回路2
24と、AC復号回路226とを含んでいる。
C. Configuration and Operation of Decompression Processing Unit FIG. 15 is a block diagram showing the internal configuration of the decompression processing unit 50 for extracting compressed image data and other circuit elements related to the extraction of compressed image data. Expansion processing unit 50
Is a decoding circuit 202, a first buffer 204, an integrating circuit 206, a counter 210, and a second buffer 21.
2, an IDCT conversion circuit 214, and a memory 216. The IDCT conversion circuit 214 is a circuit that performs inverse DCT conversion when decompressing the compressed image data, and is not used during the extraction process of the compressed image data. The input interface 41 and the output interface 43 of the CPU 42, which are omitted in FIG. 1, are also illustrated.
The decoding circuit 202 includes a separation circuit 222 and a DC decoding circuit 2
24 and an AC decoding circuit 226.

【0030】なお、本発明における表示手段はCRT5
6(図1)により実現されており、また、領域指定手段
はキーボード66およびマウス68によって実現されて
いる。さらに、抽出領域特定手段は、ROM46aに格
納されたプログラムによってCPU42が実行する処理
内容によって実現されている。エントロピー復号化手段
は、復号回路202によって実現されている。また、画
素ブロックカウンタはカウンタ210によって実現さ
れ、抽出手段はROM46aに格納されたプログラムに
よってCPU42が実行する処理内容によって実現され
ている。
The display means in the present invention is the CRT 5
6 (FIG. 1), and the area designating means is realized by a keyboard 66 and a mouse 68. Further, the extraction area specifying means is realized by the processing contents executed by the CPU 42 by the program stored in the ROM 46a. The entropy decoding means is realized by the decoding circuit 202. The pixel block counter is realized by the counter 210, and the extraction means is realized by the processing contents executed by the CPU 42 by the program stored in the ROM 46a.

【0031】図16は、圧縮画像データの抽出処理の手
順を示すフローチャートである。図17は、画像IPの
全領域と、抽出処理の対象となる部分画像PIPを示す
説明図である。図17において、(x,y)は画素座標
であり、(m,n)は画素ブロック座標である。ここ
で、y,nが主走査方向の座標軸、x,mが副走査方向
の座標軸である。図18は、抽出処理によって作成され
る圧縮画像データEDcの構成を示す説明図である。
FIG. 16 is a flowchart showing the procedure of the extraction process of compressed image data. FIG. 17 is an explanatory diagram showing the entire area of the image IP and the partial image PIP that is the target of the extraction processing. In FIG. 17, (x, y) are pixel coordinates, and (m, n) are pixel block coordinates. Here, y and n are coordinate axes in the main scanning direction, and x and m are coordinate axes in the sub scanning direction. FIG. 18 is an explanatory diagram showing the configuration of the compressed image data EDc created by the extraction process.

【0032】まず、図16のステップS1では、処理の
対象となる画像の縮小画像をCRT56に表示する。縮
小画像を表わす縮小画像データは、原画像データを間引
くことによって予め準備され、磁気ディスク64に格納
されている。ステップS2では、オペレータが圧縮画像
データの抽出処理を行なうことをキーボード66やマウ
ス68で指示する。
First, in step S1 of FIG. 16, a reduced image of an image to be processed is displayed on the CRT 56. The reduced image data representing the reduced image is prepared in advance by thinning out the original image data and stored in the magnetic disk 64. In step S2, the operator uses the keyboard 66 or the mouse 68 to instruct to perform the extraction processing of the compressed image data.

【0033】ステップS3では、ステップS2の指示に
従って、CPU42が出力インタフェイス43を介して
カウンタ210をリセットする。カウンタ210は、後
述するように、画素ブロック数を数えるための回路であ
る。また、ステップS3では、磁気ディスク64に格納
された圧縮画像データDcのヘッダが入力インタフェイ
ス41を介してCPU42に読み取られ、メモリ216
のヘッダ領域にその内容が記憶される(図18のヘッダ
に相当)。
In step S3, the CPU 42 resets the counter 210 via the output interface 43 in accordance with the instruction in step S2. The counter 210 is a circuit for counting the number of pixel blocks, as described later. In step S3, the header of the compressed image data Dc stored on the magnetic disk 64 is read by the CPU 42 via the input interface 41, and the memory 216 is read.
The content is stored in the header area of (corresponding to the header of FIG. 18).

【0034】図19は、圧縮画像データのヘッダの内容
を示す説明図である。ヘッダには、全画像IPのサイズ
(画素数単位)、色成分の数(YMCKの場合には
4)、圧縮方法を示す圧縮フラグ、抽出領域EAの主走
査方向および副走査方向の画素ブロック数、抽出領域E
Aのオフセットアドレス(画素数単位)、圧縮ランク
(圧縮率のレベルを示す)、量子化テーブル(図5)、
およびハフマン符号テーブル(図9、図13)が含まれ
ている。
FIG. 19 is an explanatory diagram showing the contents of the header of the compressed image data. In the header, the size of the entire image IP (in number of pixels), the number of color components (4 in the case of YMCK), the compression flag indicating the compression method, the number of pixel blocks in the main scanning direction and the sub scanning direction of the extraction area EA. , Extraction area E
Offset address of A (pixel number unit), compression rank (indicating compression level), quantization table (FIG. 5),
And a Huffman code table (FIGS. 9 and 13).

【0035】なお、量子化テーブルおよびハフマン符号
テーブルは、CPU42から出力インタフェイス43を
介して復号回路202内のDC復号回路224やAC復
号回路226に転送され、記憶される。
The quantization table and the Huffman code table are transferred from the CPU 42 via the output interface 43 to the DC decoding circuit 224 and the AC decoding circuit 226 in the decoding circuit 202 and stored therein.

【0036】ステップS4では、CRT56に表示され
た縮小画像において、抽出すべき部分画像の領域をマウ
ス68を用いて指定する。図17において、オペレータ
が2つの点P1、P2の位置をマウス68で指定する
と、これらの点の座標(x1,y1),(x2,y2)
がそれぞれCPU42に与えられる。CPU42は、こ
れらの座標(x1,y1),(x2,y2)に基づい
て、点P1、P2を含む画素ブロックPB1、PB2の
座標(m1,n1),(m2,n2)を、以下の式に従
って算出する。 m1=INT(x1/Px)+1 …(2) n1=INT(y1/Py)+1 …(3) m2=INT(x2/Px)+1 …(4) n2=INT(y2/Py)+1 …(5) ここで、関数「INT」は、括弧内の数値の小数点以下
を切り捨てる演算を示す。また、PxおよびPyは、画
素ブロックのx方向およびy方向の画素数をそれぞれ示
す。
In step S4, the area of the partial image to be extracted in the reduced image displayed on the CRT 56 is designated by using the mouse 68. In FIG. 17, when the operator specifies the positions of the two points P1 and P2 with the mouse 68, the coordinates (x1, y1), (x2, y2) of these points are set.
Are provided to the CPU 42, respectively. The CPU 42 calculates the coordinates (m1, n1), (m2, n2) of the pixel blocks PB1, PB2 including the points P1, P2 based on these coordinates (x1, y1), (x2, y2) using the following formula. Calculate according to. m1 = INT (x1 / Px) +1 (2) n1 = INT (y1 / Py) +1 (3) m2 = INT (x2 / Px) +1 (4) n2 = INT (y2 / Py) +1 ((4)) 5) Here, the function “INT” indicates an operation of truncating the value in parentheses after the decimal point. Further, Px and Py indicate the numbers of pixels in the x direction and the y direction of the pixel block, respectively.

【0037】オペレータが指定した部分画像PIPは、
図17に示すように、2つの点P1、P2を対角線上の
頂点とする矩形の領域である。一方、圧縮画像データが
抽出される領域(以下、「抽出領域」と呼ぶ)は、この
部分画像PIPの少なくとも一部を含むようなすべての
画素ブロックで構成される。図17では、抽出領域EA
が太い実線で囲まれている。
The partial image PIP designated by the operator is
As shown in FIG. 17, it is a rectangular region having two points P1 and P2 as diagonal vertices. On the other hand, the area from which the compressed image data is extracted (hereinafter referred to as “extracted area”) is composed of all pixel blocks including at least a part of this partial image PIP. In FIG. 17, the extraction area EA
Is surrounded by a thick solid line.

【0038】ステップS5では、圧縮画像データDcの
中から、復号回路202によって1画素ブロック分のD
C符号化データが復号される。図20は、ステップS5
の内容をさらに詳細に示すフローチャートである。ステ
ップS21では、圧縮画像データDcに含まれている符
号化データが1ビットだけ復号回路202の分離回路2
22によって読み取られる。分離回路222は、DC係
数符号化データCFdとAC係数符号化データCFaと
を分離する回路であり、圧縮画像データの抽出処理の初
期にはDC復号回路224に符号化データを与えるよう
に初期設定されている。
In step S5, one pixel block worth of D is extracted from the compressed image data Dc by the decoding circuit 202.
The C encoded data is decoded. FIG. 20 shows step S5.
3 is a flowchart showing the details of the above. In step S21, only 1 bit of the encoded data included in the compressed image data Dc is separated by the separation circuit 2 of the decoding circuit 202.
22 read. The separation circuit 222 is a circuit that separates the DC coefficient coded data CFd and the AC coefficient coded data CFa, and is initialized so that the encoded data is given to the DC decoding circuit 224 at the initial stage of the extraction process of the compressed image data. Has been done.

【0039】ステップS22では、DC復号回路224
がDC係数用のハフマン符号テーブル110(図9)を
参照して、ステップS21で読み込んだ符号化データと
ハフマン符号テーブル110の符号語を比較する。ステ
ップS21で読み込んだ符号化データがハフマン符号テ
ーブル110のいずれかの符号語に一致しなければ、ス
テップS23からS21に戻り、符号化データをもう1
ビット追加して読み取る。ステップS22において符号
化データがハフマン符号テーブル110のいずれかの符
号語に一致した場合(すなわち、符号化データを復号化
した場合)には、ステップS23を経由してステップS
24が実行される。
In step S22, the DC decoding circuit 224
Refers to the DC coefficient Huffman code table 110 (FIG. 9) and compares the coded data read in step S21 with the code word of the Huffman code table 110. If the encoded data read in step S21 does not match one of the code words in the Huffman code table 110, the process returns from step S23 to S21, and another encoded data is added.
Read by adding a bit. When the coded data matches any code word in the Huffman code table 110 in step S22 (that is, when the coded data is decoded), the process passes through step S23 to step S23.
24 is executed.

【0040】ステップS24では、DC係数の算出と分
離回路222の切換えが以下のようにして行なわれる。
まず、DC復号回路224が符号化データを復号化する
と、DC復号回路224からカウントアップ信号CAが
積算回路206とレジスタ208とカウンタ210とに
与えられる。
In step S24, the calculation of the DC coefficient and the switching of the separation circuit 222 are performed as follows.
First, when the DC decoding circuit 224 decodes the encoded data, the DC decoding circuit 224 gives the count-up signal CA to the integrating circuit 206, the register 208, and the counter 210.

【0041】積算回路206とレジスタ208は、DC
復号回路224から出力される復号化データ(DC差分
データ△S)に基づいて、各画素ブロックのDC係数を
求める機能を有する。積算回路206は、カウントアッ
プ信号CAに応じてDC差分データ△Sをレジスタ20
8内のデータと加算し、積算回路206で得られたデー
タSUによってレジスタ208内のデータを更新する。
積算回路206から出力されるデータSUは、各画素ブ
ロックのDC係数である。ただし、積算回路206から
の出力をDC係数と一致させるために、各走査線の先頭
にある画素ブロック(図3(a)に斜線で示す画素ブロ
ック)の符号化データを処理する前に、レジスタ208
内のデータがCPU42によって0に初期化されてい
る。なお、圧縮画像データDcには、各走査線の符号化
データが始まる前に走査線の先頭であることを示すマー
カが含まれており、そのマーカの検出に応じてレジスタ
208の内容が初期化される。
The integrating circuit 206 and the register 208 are DC
It has a function of obtaining the DC coefficient of each pixel block based on the decoded data (DC difference data ΔS) output from the decoding circuit 224. The integrating circuit 206 stores the DC difference data ΔS in the register 20 according to the count-up signal CA.
8 is added to the data in 8 and the data in the register 208 is updated by the data SU obtained by the integrating circuit 206.
The data SU output from the integrating circuit 206 is the DC coefficient of each pixel block. However, in order to match the output from the integrating circuit 206 with the DC coefficient, before processing the encoded data of the pixel block at the beginning of each scanning line (pixel block shown by hatching in FIG. 3A), the register 208
The data inside is initialized to 0 by the CPU 42. It should be noted that the compressed image data Dc includes a marker that indicates the beginning of the scanning line before the encoded data of each scanning line starts, and the contents of the register 208 are initialized according to the detection of the marker. To be done.

【0042】カウンタ210は、カウントアップ信号C
Aのパルス数をカウントすることにより、実質的に各走
査線に沿って圧縮画像データにおける画素ブロックの個
数をカウントし、そのカウント値CTをCPU42に与
える。なお、カウンタ210は、圧縮画像データの抽出
処理の始めにCPU42により0に初期化される。
The counter 210 has a count-up signal C.
By counting the number of A pulses, the number of pixel blocks in the compressed image data is substantially counted along each scanning line, and the count value CT is given to the CPU 42. The counter 210 is initialized to 0 by the CPU 42 at the beginning of the process of extracting the compressed image data.

【0043】ステップS24では、さらに、DC復号回
路224から分離回路222に切換信号が与えられる。
分離回路222が切り換えられると、磁気ディスク64
から読み込まれる符号化データが分離回路222からA
C復号回路226に与えられるようになる。
In step S24, a switching signal is further given from the DC decoding circuit 224 to the separation circuit 222.
When the separation circuit 222 is switched, the magnetic disk 64
The encoded data read from the separation circuit 222 is A
It is supplied to the C decoding circuit 226.

【0044】こうしてステップS5(S21〜S24)
が終了すると、図16のステップS6〜S10が実行さ
れ、処理中の符号化データに相当する画素ブロックが抽
出領域EAの先頭画素ブロックであるか否かがCPU4
2によって判断される。ここで、抽出領域EAの先頭画
素ブロックとは、抽出領域EA内の画素ブロックのうち
で主走査方向座標nが最小値n1を有する画素ブロック
である。図17には、抽出領域EAの最上部にある先頭
画素ブロックに一方向だけの斜線が付されている。
Thus, step S5 (S21 to S24)
16 is executed, the CPU 4 determines whether the pixel block corresponding to the coded data being processed is the leading pixel block of the extraction area EA.
Judged by 2. Here, the leading pixel block of the extraction area EA is a pixel block in the main scanning direction coordinate n having the minimum value n1 among the pixel blocks in the extraction area EA. In FIG. 17, the leading pixel block at the top of the extraction area EA is shaded in only one direction.

【0045】ステップS6では、処理中の画素ブロック
が抽出領域EAの先頭画素ブロックであるか否かが判断
される。次式(5)および(6)が満足されるときには
先頭画素ブロックである。 MOD(CT,N)=n1 …(6) m1≦INT[(CT−1)/N]≦m2 …(7) ここで、関数「MOD」は、括弧内の第1の値を第2の
値で徐算した余りをとる演算を示している。CTはカウ
ンタ210のカウント値、Nは全画像IPの主走査方向
の画素ブロック数(図3)、n1は抽出領域EAの主走
査方向の画素ブロック座標の最小値、m1,m2は抽出
領域EAの副走査方向の画素ブロック座標の最小値と最
大値である。
In step S6, it is determined whether or not the pixel block being processed is the leading pixel block of the extraction area EA. When the following expressions (5) and (6) are satisfied, the pixel block is the head pixel block. MOD (CT, N) = n1 (6) m1 ≦ INT [(CT-1) / N] ≦ m2 (7) Here, the function “MOD” has the first value in parentheses as the second value. The calculation shows the remainder when the value is divided. CT is the count value of the counter 210, N is the number of pixel blocks in the main scanning direction of the entire image IP (FIG. 3), n1 is the minimum pixel block coordinate in the main scanning direction of the extraction area EA, and m1 and m2 are the extraction area EA. 2 is the minimum value and the maximum value of the pixel block coordinates in the sub-scanning direction.

【0046】処理中の画素ブロックが先頭画素ブロック
である場合には、ステップS7において、先頭画素ブロ
ックのデータであることを示すマーカがCPU42によ
ってメモリ216に書き込まれ、次に積算回路206か
ら出力されたDC係数SUがバッファ212を介してメ
モリ216に書き込まれる。図18に示すように、第1
番目の先頭画素ブロックのマーカはヘッダのすぐ後のア
ドレスに書き込まれ、DC係数SUがその後に書き込ま
れる。ヘッダとマーカとDC係数SUとは固定長のデー
タである。なお、処理中の画素ブロックが先頭画素ブロ
ックでない場合については、さらに後述する。
If the pixel block being processed is the head pixel block, a marker indicating that it is the data of the head pixel block is written in the memory 216 by the CPU 42 and then output from the integrating circuit 206 in step S7. The DC coefficient SU is written in the memory 216 via the buffer 212. As shown in FIG. 18, the first
The marker of the th first pixel block is written at the address immediately after the header, and the DC coefficient SU is written after that. The header, marker, and DC coefficient SU are fixed-length data. The case where the pixel block being processed is not the first pixel block will be described later.

【0047】先頭画素ブロックのDC係数SUがメモリ
216に書き込まれると、ステップS11においてその
先頭画素ブロックのAC係数が復号化される。図21
は、ステップS11の詳細手順を示すフローチャートで
ある。ステップS31では、圧縮画像データDcに含ま
れている符号化データが1ビットだけ復号回路202の
分離回路222によって読み取られる。分離回路222
は、ステップS24(図19)においてAC復号回路2
26に符号化データを与えるように切り換えられてい
る。
When the DC coefficient SU of the head pixel block is written in the memory 216, the AC coefficient of the head pixel block is decoded in step S11. Figure 21
3 is a flowchart showing a detailed procedure of step S11. In step S31, the encoded data included in the compressed image data Dc is read by the separation circuit 222 of the decoding circuit 202 by 1 bit. Separation circuit 222
Is the AC decoding circuit 2 in step S24 (FIG. 19).
26 has been switched to provide encoded data.

【0048】ステップS32では、AC復号回路226
がAC係数用のハフマン符号テーブル122(図13)
を参照して、ステップS31で読み込んだ符号化データ
とハフマン符号テーブル122の符号語を比較する。な
お、ステップS31〜S33の手順は、図20に示すD
C係数の復号の手順S21〜S23と同じである。
At step S32, the AC decoding circuit 226.
Is the Huffman code table 122 for AC coefficients (FIG. 13)
With reference to, the coded data read in step S31 and the code word of the Huffman code table 122 are compared. The procedure of steps S31 to S33 is D shown in FIG.
This is the same as the procedure S21 to S23 for decoding the C coefficient.

【0049】ステップS34では、処理中の画素ブロッ
クが抽出領域EA内の画素ブロックであるか否かが判断
される。次式(8)および(9)が満足されるときに
は、抽出領域EA内の画素ブロックである。 n1≦MOD(CT,N)≦n2 …(8) m1≦INT[(CT−1)/N)]+1≦m2 …(9)
In step S34, it is determined whether or not the pixel block being processed is a pixel block in the extraction area EA. When the following expressions (8) and (9) are satisfied, the pixel block is in the extraction area EA. n1 ≦ MOD (CT, N) ≦ n2 (8) m1 ≦ INT [(CT-1) / N)] + 1 ≦ m2 (9)

【0050】処理中の画素ブロックが抽出領域EA内の
画素ブロックである時には、ステップS35においてA
C係数符号化データCFaがそのままメモリ216に書
き込まれる。図18に示されるように、最初の画素ブロ
ックPB(m1,n1)のAC係数符号化データCFa
は、復号化されたDC係数SUのすぐ後に書き込まれ
る。一方、処理中の画素ブロックが抽出領域EA内の画
素ブロックでない時には、ステップS37に示すよう
に、AC係数符号化データCFaがメモリ216に書き
込まれずに、次のステップS37に移行する。
When the pixel block being processed is a pixel block in the extraction area EA, A is determined in step S35.
The C coefficient coded data CFa is written in the memory 216 as it is. As shown in FIG. 18, the AC coefficient coded data CFa of the first pixel block PB (m1, n1)
Is written immediately after the decoded DC coefficient SU. On the other hand, when the pixel block being processed is not the pixel block in the extraction area EA, the AC coefficient coded data CFa is not written in the memory 216 as shown in step S37, and the process proceeds to the next step S37.

【0051】ステップS37では、1画素ブロック分
(63個)のAC係数の復号化が終了したか否かが判断
され、終了していなければステップS31に戻って上述
の処理を繰り返す。
In step S37, it is judged whether or not the decoding of the AC coefficients for one pixel block (63 pieces) is completed. If not completed, the process returns to step S31 and the above-mentioned processing is repeated.

【0052】1画素ブロック分のAC係数が復号される
と、ステップS38において切換信号がAC復号回路2
26から分離回路222に与えられ、分離回路222が
DC復号回路224側に切り換えられる。こうして図1
6のステップS11(図21のステップS31〜S3
8)が終了すると、ステップS12に移行する。
When the AC coefficient for one pixel block is decoded, the switching signal is changed to the AC decoding circuit 2 in step S38.
26 to the separation circuit 222, and the separation circuit 222 is switched to the DC decoding circuit 224 side. Thus, FIG.
6 step S11 (steps S31 to S3 in FIG. 21)
When step 8) ends, the process moves to step S12.

【0053】ステップS12では、処理中の画素ブロッ
クが抽出領域EA内の最終ブロックであるか否かが判断
される。最終ブロックとは、その座標値(m,n)が抽
出領域EAの最大値(m2,n2)と等しい画素ブロッ
クPB2である(図17参照)。次式(10)および
(11)が満足されるときには、抽出領域EA内の最終
ブロックである。 MOD(CT,N)=n2 …(10) INT[(CT−1)/N)]+1=m2 …(11) 最終ブロックでないときにはステップS5に戻り、ステ
ップS5〜S12の処理を繰り返す。
In step S12, it is determined whether the pixel block being processed is the final block in the extraction area EA. The final block is a pixel block PB2 whose coordinate value (m, n) is equal to the maximum value (m2, n2) of the extraction area EA (see FIG. 17). When the following expressions (10) and (11) are satisfied, it is the final block in the extraction area EA. MOD (CT, N) = n2 (10) INT [(CT-1) / N)] + 1 = m2 (11) If it is not the final block, the process returns to step S5, and steps S5 to S12 are repeated.

【0054】ところで、ステップS6において、処理中
の画素ブロックが先頭画素ブロックでないと判断された
場合には、次のように処理が実行される。まず、ステッ
プS8において、処理中の画素ブロックが抽出領域EA
内の画素ブロックであるか否かが判断される。上述の次
式(8)および(9)が満足されるときには、抽出領域
EA内の画素ブロックである。
By the way, if it is determined in step S6 that the pixel block being processed is not the head pixel block, the following process is executed. First, in step S8, the pixel block being processed is the extraction area EA.
It is determined whether or not the pixel block is a pixel block in. When the following equations (8) and (9) are satisfied, the pixel block is in the extraction area EA.

【0055】抽出領域EA内の画素ブロックである時に
は、ステップS9においてDC係数符号化データCFd
がそのままメモリ216に書き込まれる。図18に示す
ように、各走査線上の先頭画素ブロック以外の画素ブロ
ックの符号化データは、DC係数符号化データCFd、
AC係数符号化データCFaの順で画素ブロックごとに
連続的に書き込まれる。一方、処理中の画素ブロックが
抽出領域EA内の画素ブロックでない時には、ステップ
S10に示すように、DC係数符号化データCFdがメ
モリ216に書き込まれずにステップS11に移行し、
前述したAC係数の復号化処理が実行される。
If it is a pixel block in the extraction area EA, in step S9 the DC coefficient coded data CFd
Is written in the memory 216 as it is. As shown in FIG. 18, the encoded data of the pixel blocks other than the first pixel block on each scanning line is DC coefficient encoded data CFd,
The AC coefficient coded data CFa is continuously written in each pixel block. On the other hand, when the pixel block being processed is not the pixel block in the extraction area EA, as shown in step S10, the DC coefficient coded data CFd is not written in the memory 216 and the process proceeds to step S11.
The above-described AC coefficient decoding process is executed.

【0056】以上のように、抽出領域EAの先頭画素ブ
ロックの符号化データを抽出する際に、メモリ216に
マーカを書き込んだ後に復号化されたDC係数SUを書
き込み、さらにAC係数符号化データCFaを書き込
む。また、抽出領域EA内のその他の画素ブロックにつ
いてはDC係数符号化データCFdとAC係数符号化デ
ータCFaをそのまま連続して書き込む。この結果、図
18に示す圧縮画像データEDcが作成される。
As described above, when the coded data of the first pixel block of the extraction area EA is extracted, the marker is written in the memory 216, the decoded DC coefficient SU is written, and the AC coefficient coded data CFa is written. Write. Further, in the other pixel blocks in the extraction area EA, the DC coefficient coded data CFd and the AC coefficient coded data CFa are continuously written as they are. As a result, the compressed image data EDc shown in FIG. 18 is created.

【0057】先頭画素ブロック以外の画素ブロックにつ
いては符号化データをそのまま抽出するが、上述したよ
うに、その際にもハフマン符号化されている符号化デー
タを復号化している。これは、図14にも示したよう
に、画像IP全体の圧縮画像データに含まれて いる符
号化データが可変長データになっているので、符号化デ
ータをハフマン符号テーブルと照合しないと、符号化デ
ータにおける画素ブロック間の境界が判別できないから
である。
The coded data is extracted as it is from the pixel blocks other than the first pixel block, but as described above, the Huffman-coded coded data is also decoded at that time. This is because, as shown in FIG. 14, the encoded data included in the compressed image data of the entire image IP is variable-length data, so the encoded data must be collated with the Huffman code table. This is because the boundary between the pixel blocks in the encoded data cannot be identified.

【0058】なお、先頭画素ブロック以外の画素ブロッ
クでは、符号化データにおける画素ブロック間の境界を
判別できればよいので、復号されたデータを求めずに、
符号化データがハフマン符号語の1つと一致するか否か
だけを判断するようにしてもよい。
In the pixel blocks other than the first pixel block, it is sufficient that the boundaries between the pixel blocks in the encoded data can be discriminated, so that the decoded data is not obtained,
It may be possible to determine only whether the encoded data matches one of the Huffman codewords.

【0059】図18に示すように、抽出された圧縮画像
データEDcにおいて、ヘッダとマーカと先頭画素ブロ
ックのDC係数SUの部分は固定長データであり、その
後に続く符号化データは可変長データである。なお、図
18では図示の便宜上、1本の走査線上の圧縮画像デー
タを一行にまとめて示している。各走査線の可変長符号
化データの最後尾には、可変長符号化データのデータ長
が8ビットの整数倍になるように、バイト合せのための
データ(図18中斜線で示す)が付加されている。
As shown in FIG. 18, in the extracted compressed image data EDc, the header, the marker, and the DC coefficient SU of the first pixel block are fixed length data, and the coded data that follows is a variable length data. is there. Note that, in FIG. 18, for convenience of illustration, the compressed image data on one scanning line is collectively shown in one line. At the end of the variable length encoded data of each scanning line, data for byte alignment (indicated by diagonal lines in FIG. 18) is added so that the data length of the variable length encoded data becomes an integral multiple of 8 bits. Has been done.

【0060】以上のように、この実施例では、圧縮画像
データを抽出する際に、圧縮画像データ中の符号化デー
タがハフマン符号テーブル中の符号語の1つと一致する
ことを検出して各符号化データ間の区切りを識別した
後、符号化データをそのまま抽出後の圧縮画像データに
用いる。抽出後の圧縮画像データにおいて、抽出領域E
Aの先頭画素ブロックのDC係数のデータとしては、符
号化データを復号化したDC係数が用いられており、ま
た、復号化したDC係数の前に先頭画素ブロックである
ことを示すマーカが書き込まれている。すなわち、この
実施例では、全画像の圧縮画像データを伸長する必要が
なく、ハフマン符号化されている符号化データを復号化
するだけで所望の抽出領域EAの圧縮画像データを抽出
できるという利点がある。
As described above, in this embodiment, when the compressed image data is extracted, it is detected that the encoded data in the compressed image data matches one of the code words in the Huffman code table, and each code is detected. After identifying the delimiter between the encoded data, the encoded data is used as it is for the extracted compressed image data. In the compressed image data after extraction, the extraction area E
As the DC coefficient data of the head pixel block of A, the DC coefficient obtained by decoding the encoded data is used, and a marker indicating the head pixel block is written before the decoded DC coefficient. ing. That is, this embodiment has an advantage that it is not necessary to decompress the compressed image data of all the images, and the compressed image data of the desired extraction area EA can be extracted only by decoding the Huffman-encoded encoded data. is there.

【0061】なお、この発明は上記実施例に限られるも
のではなく、その要旨を逸脱しない範囲において種々の
態様において実施することが可能であり、例えば次のよ
うな変形も可能である。
The present invention is not limited to the above embodiments, but can be carried out in various modes without departing from the scope of the invention, and the following modifications can be made.

【0062】(1)本発明は、YMCKの画像成分で構
成された画像データに限らず、BGR成分やCIE表色
系成分で構成された圧縮画像データの抽出にも適用でき
る。また、1色の画像成分のみを含む画像データにも適
用可能である。一般に、本発明は多値圧縮画像データの
抽出に適用することができる。
(1) The present invention is applicable not only to image data composed of YMCK image components but also to extraction of compressed image data composed of BGR components and CIE color system components. It is also applicable to image data containing only one color image component. In general, the present invention can be applied to the extraction of multivalued compressed image data.

【0063】(2)上記実施例では、DCT変換とハフ
マン符号化とによって画像データを符号化することによ
って圧縮していたが、この発明は一般に、系列変換とエ
ントロピー符号化によって圧縮された圧縮画像データを
抽出する場合に適用できる。系列変換としては、例え
ば、フーリエ変換、アダマール変換などの直交変換やベ
クトル量子化符号化などを利用できる。また、エントロ
ピー符号化としては算術符号化などが利用できる。
(2) In the above embodiment, the image data is compressed by encoding the image data by the DCT transform and the Huffman encoding, but the present invention is generally a compressed image compressed by the sequence conversion and the entropy encoding. Applicable when extracting data. As the sequence transformation, for example, orthogonal transformation such as Fourier transformation or Hadamard transformation, vector quantization coding, or the like can be used. Further, arithmetic coding or the like can be used as the entropy coding.

【0064】(3)抽出後の圧縮画像データにおいて、
先頭画素ブロックのDC係数として復号化したデータS
Uを用いていたが、一旦復号化したDC係数SUを予測
符号化やハフマン符号化などで圧縮し、この符号化デー
タをマーカの次に記録しておいてもよい。上記実施例に
おいて、復号化したDC係数SUを用いていたのは、J
PEG方式ではDC係数の差分△Fdをハフマン符号化
しているので、符号化データからは先頭画素のDC係数
SUを直接的に算出できないからである。
(3) In the compressed image data after extraction,
Data S decoded as the DC coefficient of the first pixel block
Although U is used, the DC coefficient SU once decoded may be compressed by predictive coding or Huffman coding, and the coded data may be recorded next to the marker. In the above embodiment, the decoded DC coefficient SU is used in J
This is because the DC coefficient difference ΔFd is Huffman-encoded in the PEG method, and therefore the DC coefficient SU of the first pixel cannot be directly calculated from the encoded data.

【0065】DC係数の差分△Fdではなく、DC係数
Fdそのものを符号化して作成した圧縮画像データから
その一部を抽出する場合には、先頭画素ブロックについ
ても符号化データをそのまま用いて抽出後の圧縮画像デ
ータを作成することが可能である。
When extracting a part of the compressed image data created by encoding the DC coefficient Fd itself instead of the DC coefficient difference ΔFd, the encoded data is used as it is for the first pixel block as well. It is possible to create compressed image data of.

【0066】抽出後の圧縮画像データの他の構成とし
て、先頭画素ブロックについても符号化データをそのま
ま用いることとし、先頭画素ブロックの前の画素ブロッ
クのDC係数の値を保存するようにしてもよい。この
際、先頭画素ブロックの前の画素ブロックのDC係数
は、可逆符号化して保存してもよい。すなわち、一般
に、先頭画素ブロックについてはDC係数を実質的に表
わすデータが抽出されていればよい。
As another configuration of the compressed image data after extraction, the encoded data may be used as it is for the head pixel block, and the value of the DC coefficient of the pixel block before the head pixel block may be stored. .. At this time, the DC coefficient of the pixel block before the first pixel block may be losslessly encoded and stored. That is, generally, it is sufficient that the data substantially representing the DC coefficient is extracted for the first pixel block.

【0067】(4)上記実施例において、DC係数の差
分△Fdを求める演算は予測符号化の一種である。ま
た、ハフマン符号化はエントロピー符号化の一種であ
る。すなわち、上記実施例の圧縮方法では、DC係数に
ついて予測符号化(差分の算出)を行なった後にエント
ロピー符号化(ハフマン符号化)を行なっている。この
発明は、差分以外の予測符号化を用いた圧縮画像データ
の抽出にも適用することができる。差分以外の予測式に
従った予測符号化を用いる場合には、抽出後の圧縮画像
データのみによって先頭画素ブロックのDC係数を算出
することができるように、予測式に従って先頭画素ブロ
ックのDC係数を実質的に表わすデータを抽出すればよ
い。
(4) In the above embodiment, the calculation for obtaining the difference ΔFd of the DC coefficient is a kind of predictive coding. Huffman coding is a kind of entropy coding. That is, in the compression method of the above embodiment, the entropy coding (Huffman coding) is performed after the predictive coding (calculation of the difference) is performed on the DC coefficient. The present invention can also be applied to extraction of compressed image data using predictive coding other than the difference. When the predictive coding according to the prediction formula other than the difference is used, the DC coefficient of the head pixel block is calculated according to the prediction formula so that the DC coefficient of the head pixel block can be calculated only by the extracted compressed image data. It suffices to extract the data that substantially represents.

【0068】(5)抽出領域EAの範囲は、CRT56
に表示された縮小画像の上でオペレータがマウス68を
用いて指定していたが、この代わりに、抽出領域EAの
幅の寸法(画素数)をオペレータがキーボード66を用
いて入力するようにしてもよい。
(5) The range of the extraction area EA is CRT56.
Although the operator designated it using the mouse 68 on the reduced image displayed on the screen, instead of this, the operator inputs the width dimension (pixel number) of the extraction area EA using the keyboard 66. Good.

【0069】(6)画像表示装置としては、CRT56
の代わりにカラープリンタなどの他の画像出力装置を用
いてもよい。
(6) As an image display device, a CRT 56
Other image output devices such as a color printer may be used instead of the above.

【0070】(7)上記実施例では、ノンインターリー
ブに従って生成された圧縮画像データからその一部を抽
出していたが、本発明は、インターリーブに従って生成
された圧縮画像データの抽出にも適用できる。この場合
には、AC復号回路226によって分離回路222を切
り換える際の基準となる復号化データの個数を、インタ
ーリーブの方法に従って変更しておけばよい。
(7) In the above embodiment, a part of the compressed image data is extracted from the non-interleaved compressed image data, but the present invention can be applied to the extraction of the compressed image data generated according to the interleave. In this case, the number of pieces of decoded data serving as a reference when the AC decoding circuit 226 switches the separation circuit 222 may be changed according to the interleaving method.

【0071】[0071]

【発明の効果】以上説明したように、本発明の請求項1
に記載した発明によれば、エントロピー復号化手段がエ
ントロピー符号化データを復号化して求める復号化デー
タ(変換係数)の個数を累算することによって、全体圧
縮画像データにおける画素ブロック間の境界を検出し、
画素ブロックカウンタは、エントロピー復号化手段によ
る画素ブロックの境界の検出に応じて画素ブロックの個
数を累算する。抽出領域を構成する画素ブロックは抽出
領域特定手段によって特定されているので、抽出手段は
画素ブロックカウンタのカウント数に基づいて、各画素
ブロックが抽出領域に含まれるか否かを判別でき、さら
に、抽出領域に含まれる画素ブロックに相当する圧縮画
像データを部分圧縮画像データとして抽出できる。すな
わち、請求項1に記載した発明によれば、圧縮画像デー
タを画像データにまで伸長することなく、部分画像を含
む抽出領域の圧縮画像データを抽出することができると
いう効果がある。
As described above, according to the first aspect of the present invention.
According to the invention described in (1), the entropy decoding unit detects the boundary between pixel blocks in the entire compressed image data by accumulating the number of decoded data (transform coefficients) obtained by decoding the entropy coded data. Then
The pixel block counter accumulates the number of pixel blocks according to the detection of the boundaries of the pixel blocks by the entropy decoding means. Since the pixel blocks forming the extraction area are specified by the extraction area specifying means, the extraction means can determine whether or not each pixel block is included in the extraction area based on the count number of the pixel block counter. The compressed image data corresponding to the pixel block included in the extraction area can be extracted as the partial compressed image data. That is, according to the invention described in claim 1, there is an effect that the compressed image data of the extraction region including the partial image can be extracted without expanding the compressed image data to the image data.

【0072】また、請求項2に記載した発明によれば、
抽出領域の先頭画素ブロックについてはDC係数を実質
的に表わすエントロピー復号化データを部分圧縮画像デ
ータとして抽出するので、DC係数が予測符号化などの
方法を用いてエントロピー符号化されている場合にも、
部分圧縮画像データによって抽出領域の画像を復元する
ことができるという効果がある。
According to the invention described in claim 2,
Since the entropy-decoded data that substantially represents the DC coefficient is extracted as the partial compressed image data for the first pixel block of the extraction area, even when the DC coefficient is entropy-coded using a method such as predictive coding, ,
There is an effect that the image of the extraction area can be restored by the partially compressed image data.

【0073】さらに、請求項3に記載した発明によれ
ば、先頭画素ブロックについてはDC係数を部分圧縮画
像データとして抽出するので、DC係数の差分に基づい
てDC係数がエントロピー符号化されている場合にも、
部分圧縮画像データによって抽出領域の画像を復元する
ことができるという効果がある。
Further, according to the invention described in claim 3, since the DC coefficient is extracted as the partial compressed image data for the head pixel block, when the DC coefficient is entropy coded based on the difference of the DC coefficient. Also,
There is an effect that the image of the extraction area can be restored by the partially compressed image data.

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

【図1】この発明の一実施例を適用して画像データの圧
縮を行なう画像処理システムを示すブロック図。
FIG. 1 is a block diagram showing an image processing system for compressing image data by applying an embodiment of the present invention.

【図2】圧縮処理部48に備えられている符号化ユニッ
トの構成を示すブロック図。
FIG. 2 is a block diagram showing a configuration of an encoding unit provided in a compression processing unit 48.

【図3】画像内の画素ブロックを示す説明図。FIG. 3 is an explanatory diagram showing pixel blocks in an image.

【図4】DCT変換により得られた変換係数F(p,
q)を示す説明図。
FIG. 4 is a diagram showing transform coefficients F (p, p,
Explanatory drawing which shows q).

【図5】量子化の際に用いられる量子化テーブルの例を
示す説明図。
FIG. 5 is an explanatory diagram showing an example of a quantization table used for quantization.

【図6】DC係数符号化部78の機能を示すブロック
図。
FIG. 6 is a block diagram showing the function of a DC coefficient encoding unit 78.

【図7】DC係数符号化部78におけるデータ処理の内
容を示す説明図。
FIG. 7 is an explanatory diagram showing the content of data processing in a DC coefficient encoding unit 78.

【図8】グループ化テーブルを示す説明図。FIG. 8 is an explanatory diagram showing a grouping table.

【図9】DC係数用の一次元ハフマン符号テーブルを示
す説明図。
FIG. 9 is an explanatory diagram showing a one-dimensional Huffman code table for DC coefficients.

【図10】AC係数符号化部80の機能を示すブロック
図。
FIG. 10 is a block diagram showing functions of an AC coefficient coding unit 80.

【図11】ジグザグスキャンの順路を示す説明図。FIG. 11 is an explanatory diagram showing a route of zigzag scanning.

【図12】8行8列に配列されたDCT係数と、ジグザ
グスキャンによって並び直されたAC係数を示す説明
図。
FIG. 12 is an explanatory diagram showing DCT coefficients arranged in 8 rows and 8 columns and AC coefficients rearranged by a zigzag scan.

【図13】AC係数用の2次元ハフマン符号テーブルを
示す説明図。
FIG. 13 is an explanatory diagram showing a two-dimensional Huffman code table for AC coefficients.

【図14】圧縮画像データDcに含まれる符号化データ
の部分の構成を示す説明図。
FIG. 14 is an explanatory diagram showing a configuration of a portion of encoded data included in compressed image data Dc.

【図15】圧縮画像データの抽出に関連する回路要素を
示すブロック図。
FIG. 15 is a block diagram showing circuit elements related to extraction of compressed image data.

【図16】圧縮画像データの抽出処理の手順を示すフロ
ーチャート。
FIG. 16 is a flowchart showing a procedure of compressed image data extraction processing.

【図17】画像IPの全領域と、抽出処理の対象となる
部分画像PIPを示す説明図。
FIG. 17 is an explanatory diagram showing the entire area of the image IP and a partial image PIP that is the target of extraction processing.

【図18】抽出処理によって作成される圧縮画像データ
EDcの構成を示す説明図。
FIG. 18 is an explanatory diagram showing a configuration of compressed image data EDc created by extraction processing.

【図19】抽出された圧縮データのヘッダの内容を示す
説明図。
FIG. 19 is an explanatory diagram showing the content of the header of the extracted compressed data.

【図20】ステップS5におけるDC符号化データの復
号処理の内容を詳細に示すフローチャート。
FIG. 20 is a flowchart showing the details of the decoding process of the DC encoded data in step S5.

【図21】ステップS11におけるAC符号化データの
復号処理の詳細手順を示すフローチャート。
FIG. 21 is a flowchart showing a detailed procedure of decoding processing of AC encoded data in step S11.

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

30 画像入力装置 40 画像データ圧縮装置 41 入力インタフェイス 42 CPU 43 出力インタフェイス 44 バスライン 46 メモリ 48 圧縮処理部 50 伸長処理部 52 フレームメモリ 54 D/A変換器 56 CRT 58 インタフェイス 60 通信インタフェイス 62 光磁気ディスク 64 磁気ディスク 66 キーボード 68 マウス 72 DCT変換部 74 量子化部 76 ハフマン符号化部 78 DC係数符号化部 80 AC係数符号化部 82 圧縮データ編集部 102 ブロック遅延部 104 加算器 106 グループ化処理部 108 1次元ハフマン符号化部 110 1次元ハフマン符号テーブル 112 ジグザグスキャン部 114 判定部 116 ランレングスカウンタ 118 グループ化部 120 2次元ハフマン符号化部 122 2次元ハフマン符号テーブル 202 復号回路 206 積算回路 208 レジスタ 210 カウンタ 212 バッファ 214 IDCT変換回路 216 メモリ 222 分離回路 224 DC復号回路 226 AC復号回路 Aa 付加ビットデータ Ad 付加ビットデータ CA カウントアップ信号 CFa AC係数符号化データ CFd DC係数符号化データ Dc 圧縮画像データ Do 原画像データ EA 抽出領域 EDc 抽出後の圧縮画像データ F DCT変換係数 Ha ハフマン符号データ Hd ハフマン符号データ IP 全画像 PB 画素ブロック PIP 部分画像 NNNN ランレングスカウント SSSS グループ番号 SU 復号されたDC係数データ m 副走査方向画素ブロック座標 n 主走査方向画素ブロック座標 x 副走査方向画素座標 y 主走査方向画素座標 30 image input device 40 image data compression device 41 input interface 42 CPU 43 output interface 44 bus line 46 memory 48 compression processing unit 50 decompression processing unit 52 frame memory 54 D / A converter 56 CRT 58 interface 60 communication interface 62 magneto-optical disk 64 magnetic disk 66 keyboard 68 mouse 72 DCT conversion unit 74 quantization unit 76 Huffman coding unit 78 DC coefficient coding unit 80 AC coefficient coding unit 82 compressed data editing unit 102 block delay unit 104 adder 106 group Conversion processing unit 108 1-dimensional Huffman coding unit 110 1-dimensional Huffman coding table 112 Zigzag scanning unit 114 Judgment unit 116 Run length counter 118 Grouping unit 120 Two-dimensional Huffman coding unit 12 Two-dimensional Huffman code table 202 Decoding circuit 206 Accumulation circuit 208 Register 210 Counter 212 Buffer 214 IDCT conversion circuit 216 Memory 222 Separation circuit 224 DC decoding circuit 226 AC decoding circuit Aa Additional bit data Ad Additional bit data CA Count up signal CFa AC coefficient code CFd DC coefficient coded data Dc Compressed image data Do Original image data EA Extraction area EDc Compressed image data after extraction F DCT conversion coefficient Ha Huffman code data Hd Huffman code data IP whole image PB pixel block PIP partial image NNNN run length Count SSSS Group number SU Decoded DC coefficient data m Sub scanning direction pixel block coordinates n Main scanning direction pixel block coordinates x Sub scanning direction pixel coordinates y Scanning direction pixel coordinates

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 所定方向の走査線に沿って、全体画像内
の画素ブロックごとに画像データを系列変換するととも
に変換係数をエントロピー符号化することによって作成
された全体圧縮画像データの中から、部分画像に相当す
る部分圧縮画像データを抽出する装置であって、 (a)前記全体画像を表示する表示手段と、 (b)前記表示手段に表示された前記全体画像内の部分
画像の領域を指定する領域指定手段と、 (c)前記指定された部分画像を含み、複数の画素ブロ
ックで構成される抽出領域を特定する抽出領域特定手段
と、 (d)前記全体圧縮画像データのエントロピー符号化デ
ータを順次復号化するとともに復号化データの個数を累
算し、復号化データの個数に基づいて、前記全体圧縮画
像データにおける画素ブロック間の境界を検出するエン
トロピー復号化手段と、 (e)前記エントロピー復号化手段による前記画素ブロ
ック間の境界の検出に応じて、前記全体圧縮画像データ
における画素ブロックの個数を累算する画素ブロックカ
ウンタと、 (f)前記画素ブロックカウンタのカウント数に基づい
て、前記抽出領域に含まれる画素ブロックに相当する圧
縮画像データを部分圧縮画像データとして抽出する抽出
手段と、 を備えることを特徴とする圧縮画像データ抽出装置。
1. A part of the whole compressed image data created by performing a series conversion of the image data for each pixel block in the whole image along a scanning line in a predetermined direction and entropy coding the conversion coefficient. An apparatus for extracting partially compressed image data corresponding to an image, comprising: (a) display means for displaying the whole image; and (b) designation of a partial image area within the whole image displayed on the display means. (C) extraction area specifying means for specifying an extraction area including the specified partial image and composed of a plurality of pixel blocks; and (d) entropy-encoded data of the entire compressed image data. Are sequentially decoded, the number of decoded data is accumulated, and the boundary between pixel blocks in the overall compressed image data is detected based on the number of decoded data. And (e) a pixel block counter that accumulates the number of pixel blocks in the overall compressed image data in response to detection of boundaries between the pixel blocks by the entropy decoding unit. A compressed image data extraction device, comprising: an extraction unit that extracts, as partial compressed image data, compressed image data corresponding to a pixel block included in the extraction area based on the count number of the pixel block counter.
【請求項2】 請求項1記載の圧縮画像データ抽出装置
であって、 全体圧縮画像データは、ディスクリートコサイン変換の
DC係数とAC係数とをエントロピー符号化したエント
ロピー符号化データを含み、 抽出手段は、 所定方向の走査線に沿って全体画像を見たときに抽出領
域の先頭に位置する先頭画素ブロックに相当するエント
ロピー符号化データを、画素ブロックカウンタのカウン
ト値に基づいて検出し、当該先頭画素ブロックについて
は前記DC係数を実質的に表わすエントロピー復号化デ
ータを部分圧縮画像データとして抽出する第1の手段を
含む圧縮画像データ抽出装置。
2. The compressed image data extraction device according to claim 1, wherein the entire compressed image data includes entropy coded data obtained by entropy coding the DC coefficient and the AC coefficient of the discrete cosine transform, and the extraction means , Entropy coded data corresponding to the head pixel block located at the head of the extraction area when the entire image is viewed along the scanning line in the predetermined direction is detected based on the count value of the pixel block counter, and the head pixel is detected. A compressed image data extraction device including first means for extracting entropy-decoded data substantially representing the DC coefficient as a block as partial compressed image data.
【請求項3】 請求項2記載の圧縮画像データ抽出装置
であって、 全体圧縮画像データにおけるDC係数のエントロピー符
号化データは、所定方向の走査線に沿って隣接する画素
ブロック間のDC係数の差分をエントロピー符号化した
エントロピー符号化データを含み、 第1の手段は、 エントロピー復号化されたDC係数の差分を走査線に沿
って累算することによって各画素ブロックにおけるDC
係数の値を求めるとともに、先頭画素ブロックに対して
は、当該累算によって得られたDC係数の値を部分圧縮
画像データとして抽出する第2の手段を含む圧縮画像デ
ータ抽出装置。
3. The compressed image data extraction device according to claim 2, wherein the entropy-encoded data of the DC coefficient in the entire compressed image data is a DC coefficient between adjacent pixel blocks along a scanning line in a predetermined direction. The first means includes entropy coded data that is entropy coded and the first means is DC in each pixel block by accumulating the differences of the entropy decoded DC coefficients along the scan line.
A compressed image data extraction device including second means for obtaining the coefficient value and extracting the DC coefficient value obtained by the accumulation as partial compressed image data for the first pixel block.
JP5711692A 1992-02-06 1992-02-06 Compressed image data extraction device Expired - Lifetime JP2791410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5711692A JP2791410B2 (en) 1992-02-06 1992-02-06 Compressed image data extraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5711692A JP2791410B2 (en) 1992-02-06 1992-02-06 Compressed image data extraction device

Publications (2)

Publication Number Publication Date
JPH05219358A true JPH05219358A (en) 1993-08-27
JP2791410B2 JP2791410B2 (en) 1998-08-27

Family

ID=13046573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5711692A Expired - Lifetime JP2791410B2 (en) 1992-02-06 1992-02-06 Compressed image data extraction device

Country Status (1)

Country Link
JP (1) JP2791410B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0810552A2 (en) * 1996-05-28 1997-12-03 Sharp Kabushiki Kaisha Image display device
US7469068B2 (en) 2004-05-27 2008-12-23 Seiko Epson Corporation Method and apparatus for dimensionally transforming an image without a line buffer
KR20170082132A (en) * 2016-01-05 2017-07-13 가부시키가이샤 뉴플레어 테크놀로지 Writing-data generating method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0810552A2 (en) * 1996-05-28 1997-12-03 Sharp Kabushiki Kaisha Image display device
EP0810552A3 (en) * 1996-05-28 1999-06-16 Sharp Kabushiki Kaisha Image display device
US7469068B2 (en) 2004-05-27 2008-12-23 Seiko Epson Corporation Method and apparatus for dimensionally transforming an image without a line buffer
KR20170082132A (en) * 2016-01-05 2017-07-13 가부시키가이샤 뉴플레어 테크놀로지 Writing-data generating method

Also Published As

Publication number Publication date
JP2791410B2 (en) 1998-08-27

Similar Documents

Publication Publication Date Title
KR100530681B1 (en) How to send and receive coded video images
KR20040018414A (en) An apparatus and method for encoding digital image data in a lossless manner
JPH0678288A (en) Method and apparatus for vector encoding of video conversion factor
KR20040018413A (en) Lossless intraframe encoding using golomb-rice
JPH099261A (en) Signal compression device
JPH1118087A (en) Device and method for converting image data
JP2000138836A (en) Compressor for digital image including background pixels
JP3105906B2 (en) Image processing device
JP3217507B2 (en) Image compression device
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
JP2791410B2 (en) Compressed image data extraction device
JP3952116B2 (en) Image compression apparatus and method
JP2802378B2 (en) Decompression method of compressed image data
JP3732900B2 (en) Image compression apparatus and image expansion apparatus
JP3023215B2 (en) Image processing device
JPH0678297A (en) Method for encoding of digital video signal
JP4649764B2 (en) Image data decompression method and image data decompression apparatus
JP3559314B2 (en) Image compression device
JP3559419B2 (en) Method and apparatus for decompressing compressed image data
JP2935320B2 (en) Image compression / decompression device
JP3347488B2 (en) Image processing apparatus and method
JP3260925B2 (en) Image processing device
JPH1075426A (en) Image compressor and image expander
JP2001078199A (en) Video signal coder
JP3392949B2 (en) Image compression device and image decompression device