JPH06276103A - Method for partially extending compressed data - Google Patents
Method for partially extending compressed dataInfo
- Publication number
- JPH06276103A JPH06276103A JP8559193A JP8559193A JPH06276103A JP H06276103 A JPH06276103 A JP H06276103A JP 8559193 A JP8559193 A JP 8559193A JP 8559193 A JP8559193 A JP 8559193A JP H06276103 A JPH06276103 A JP H06276103A
- Authority
- JP
- Japan
- Prior art keywords
- compressed data
- code
- line
- data
- decompression
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
- G06T9/005—Statistical coding, e.g. Huffman, run length coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
(57)【要約】
【目的】 指定された範囲の圧縮データだけを伸長する
ことにより、合理的な圧縮データの復元を行う。
【構成】 圧縮データを復元する場合に、伸長を行うべ
き圧縮データの行の先頭までスキップし(ステップS1
〜S3)、その行の圧縮データから所定の符号を抽出し
て(ステップS4)、この所定の符号から、上記圧縮デ
ータの伸長が指定された範囲を判断するようにする(ス
テップS5等)。
(57) [Summary] [Purpose] Decompress only the specified range of compressed data to restore the compressed data reasonably. [Structure] When decompressing compressed data, skip to the beginning of a line of compressed data to be decompressed (step S1
S3), a predetermined code is extracted from the compressed data of the row (step S4), and the range in which the expansion of the compressed data is designated is determined from the predetermined code (step S5, etc.).
Description
【0001】[0001]
【産業上の利用分野】この発明は、例えば画像伸長方式
等の圧縮データ方法に関し、特にMH(Modifie
d Huffman)符号方法等で圧縮されたデータを
伸長しイメージの復元を用う圧縮データの伸長方法に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compressed data method such as an image decompression method, and more particularly to an MH (Modify) method.
The present invention relates to a method for decompressing compressed data which is used for decompressing data compressed by the d Huffman) coding method or the like to restore an image.
【0002】[0002]
【従来の技術】従来の圧縮データの伸長方法として、例
えば画像情報圧縮((株)オーム社出版)P28に記載
されたFAXのアルゴリズムがある。図7は、G3ファ
クシミリにおける1次元符号化方法(MH付号方法)の
伸長処理のフローチャートであり、圧縮されたイメージ
データを伸長した後、イメージデータの復元を行う場合
のフローチャートである。この図7において、EoLは
(End of Line)の略で、圧縮データの1行
の最後に挿入されている符号であり、圧縮データの最後
には6つのEoL符号が連続して並んでいる。また、図
7のS70,S74は圧縮データを1つ取り出し、現在
抽出の終わった圧縮データの位置を示すカウンターの更
新を行うMH符号抽出処理のステップ、S71は抽出し
た圧縮データがEoL符号かどうか判断するEoL符号
の判断する処理のステップである。S73は、抽出した
圧縮データに従がって白ビットを復元する白ビットを復
元する処理のステップ、S77は黒ビットの復元の処理
ステップ、S72,S75,S76はEoL符号があっ
た場合、引きつづき連続してEoL符号が存在するかど
うか確認を行うEoL符号の判断の処理ステップであ
る。2. Description of the Related Art As a conventional method of decompressing compressed data, there is a FAX algorithm described in, for example, Image Information Compression (published by Ohmsha Co., Ltd.) P28. FIG. 7 is a flowchart of a decompression process of the one-dimensional encoding method (MH numbering method) in the G3 facsimile, which is a flowchart when decompressing the compressed image data and then restoring the image data. In FIG. 7, EoL is an abbreviation for (End of Line), which is a code inserted at the end of one line of compressed data, and six EoL codes are continuously arranged at the end of the compressed data. Further, S70 and S74 of FIG. 7 are steps of MH code extraction processing for extracting one compressed data and updating the counter indicating the position of the currently extracted compressed data, and S71 is whether the extracted compressed data is an EoL code or not. This is the step of the processing for judging the EoL code to be judged. S73 is a step of restoring white bits according to the extracted compressed data, S77 is a step of restoring black bits, and S72, S75, and S76 are EoL code subtracted if there is an EoL code. Subsequently, it is a processing step of determining the EoL code for continuously checking whether or not the EoL code exists.
【0003】次にこの従来例の動作について説明する。
MH法の場合、圧縮符号は13ビット以内の可変長の符
号より成りたっており、白ビットから始まり白ビットと
黒ビットの符号が交互に入っている。また、画像データ
の1行が終了したら、必ずEoL符号が入っており全デ
ータが終了した所でEoLが6つ入っている。このた
め、図7では、白画素と黒画素用に抽出部や復元部が2
つで1セットとして構成されている。まずステップS7
0では、1つのMH圧縮符号を抽出し、そのMH圧縮符
号の長さから、次の圧縮符号の始まり位置をあらかじめ
カウンターに納めておく。次に、ステップS71では、
抽出した符号がEoL符号であるか否かを調べ、EoL
符号であれば(YES)、ステップS72でもう1度E
oL符号が続くかどうか調べる。この時、2度EoL符
号が続いていれば、圧縮データは最後であるという意味
であるので処理は終了し(END)、終了でなければ1
行の伸長処理が終了したことと判断し、処理を最初(ス
テップS70)に戻す。また、抽出した符号がEoL符
号でなければ(ステップS71でNO)、抽出した符号
に従がって実際にステップS73の処理によって白ビッ
トの復元を行う。同様にして、黒ビットについても同じ
処理を行い(ステップS75〜S77)、順次、白ビッ
トと黒ビットの復元を行い、この復元処理を圧縮データ
の中にEoLが2個以上連続してあることを確認するま
で続ける。Next, the operation of this conventional example will be described.
In the case of the MH method, the compression code is composed of a variable-length code of 13 bits or less, and the code of white bits and the code of black bits are alternated starting from the white bit. Also, when one line of image data is completed, the EoL code is always included, and when all the data is completed, 6 EoLs are included. Therefore, in FIG. 7, the extraction unit and the restoration unit are divided into two for the white pixel and the black pixel.
It is composed as one set. First, step S7
At 0, one MH compression code is extracted, and the start position of the next compression code is stored in the counter in advance based on the length of the MH compression code. Next, in step S71,
Check whether or not the extracted code is an EoL code,
If it is a sign (YES), E again in step S72.
Check if the oL code continues. At this time, if the EoL code continues twice, it means that the compressed data is the last one, so the process ends (END), and if it is not ended, 1
It is determined that the line decompression process has ended, and the process returns to the beginning (step S70). If the extracted code is not the EoL code (NO in step S71), the white bit is actually restored by the process of step S73 according to the extracted code. Similarly, the same process is performed on the black bit (steps S75 to S77), the white bit and the black bit are sequentially restored, and this restoration process is performed by having two or more consecutive EoLs in the compressed data. Continue until you confirm.
【0004】[0004]
【発明が解決しようとする課題】従来の圧縮データの伸
長方法では、このように圧縮データを全て解釈し元の画
像データを全て復元してしまうものであるため、もし、
必要なデータが1部分であった場合、画像データの復元
に使用するメモリを無駄にしたり画像データの演算に長
い時間を要したりという問題点があった。In the conventional method of decompressing compressed data, since all the compressed data are interpreted and all the original image data are restored in this way,
If the required data is only one part, there is a problem in that the memory used for restoring the image data is wasted and that it takes a long time to calculate the image data.
【0005】この発明は上記のような課題を解決するた
めになされたものであり、指定された範囲のみの圧縮デ
ータを伸長することにより、メモリを無駄にすることの
ない演算に長い時間を要することのない圧縮データの伸
長方法を提供することを目的としている。The present invention has been made in order to solve the above problems, and it takes a long time to perform an operation without wasting a memory by expanding compressed data only in a designated range. It is an object of the present invention to provide a compressed data decompression method.
【0006】[0006]
【課題を解決するための手段】この第1の発明に係る圧
縮データの部分伸長方法は、圧縮データを復元する際
に、伸長を行うべきMH符号化法による圧縮データの行
の先頭までスキップし、その行の圧縮データから所定の
符号を抽出してこの所定の符号から、上記圧縮データの
伸長が指定された範囲を判断するようにした。この第2
の発明に係る圧縮データの部分伸長方法は、圧縮データ
を復元する際に、所定の行の前行の圧縮データを記憶
し、この前行の圧縮データと所定の行の圧縮データとを
比較しながら伸長を行うべき圧縮データの行の先頭まで
スキップし、その行の圧縮データから所定の符号を抽出
してこの所定の符号から、上記圧縮データの伸長が指定
された範囲を判断するようにした。この第3の発明に係
る圧縮データの部分伸長方法は、圧縮データを復元する
際に、行と他の行との違いを符号化した全ての圧縮デー
タから所定の符号を抽出し、この所定の符号の抽出結果
が圧縮データの行の先頭に達していない場合に、上記圧
縮データの伸長処理を行わないようにした。According to the method of partially decompressing compressed data according to the first aspect of the present invention, when decompressing compressed data, the compressed data is skipped to the beginning of a line of compressed data by the MH coding method. A predetermined code is extracted from the compressed data of the row, and the range in which the expansion of the compressed data is designated is determined from the predetermined code. This second
In the method of partially decompressing compressed data according to the invention of claim 1, when decompressing the compressed data, the compressed data of the preceding row of a predetermined row is stored, and the compressed data of the preceding row is compared with the compressed data of the predetermined row. While skipping to the beginning of the line of compressed data to be expanded, a predetermined code is extracted from the compressed data of that line, and the range in which the expansion of the compressed data is specified is determined from this predetermined code. . In the method for partially decompressing compressed data according to the third aspect of the present invention, when decompressing the compressed data, a predetermined code is extracted from all the compressed data in which the difference between the row and another row is encoded, and the predetermined code is extracted. When the code extraction result does not reach the beginning of the line of the compressed data, the decompression process of the compressed data is not performed.
【0007】[0007]
【作用】この第1の発明による圧縮データの部分伸長方
法は、まず、MH符号化方法に符号化された、圧縮デー
タの行の先頭までスキップする。次に、その行の圧縮デ
ータから所定の符号を抽出し、この所定の符号から、上
記圧縮データの伸長が指定された範囲を判断することに
より、圧縮データの指定された範囲のみを復元する。こ
の第2の発明による圧縮データの部分伸長方法は、ま
ず、MR符号化方法により符号化された圧縮データの所
定の行の前行の圧縮データを記憶し、この前行の圧縮デ
ータと所定の行の圧縮データとを比較しながら伸長を行
うべき圧縮データの行の先頭までスキップする。次に、
その行の圧縮データから所定の符号を抽出してこの所定
の符号から、上記圧縮データの伸長が指定された範囲を
判断するようにすることにより、圧縮データの指定され
た範囲のみを復元する。この第3の発明による圧縮デー
タの部分伸長方法は、まず、MMR符号化方法で符号化
された圧縮データの行と他の行との違いを抽出する。次
に、この所定の符号の抽出結果が圧縮データの行の先頭
に達していない場合に、上記圧縮データの伸長処理を行
わないようにすることにより、圧縮データの指定された
範囲のみを復元する。In the method of partially decompressing compressed data according to the first aspect of the present invention, first, the compression data encoded in the MH encoding method is skipped to the beginning of the line. Next, a predetermined code is extracted from the compressed data of the row, and the range in which the expansion of the compressed data is designated is determined from this predetermined code, so that only the designated range of the compressed data is restored. In the method for partially decompressing compressed data according to the second aspect of the present invention, first, the compressed data of the preceding row of a predetermined row of the compressed data encoded by the MR encoding method is stored, and the compressed data of the preceding row and the prescribed data are stored. While comparing the compressed data of the line, skip to the beginning of the line of the compressed data to be expanded. next,
Only a specified range of the compressed data is restored by extracting a specified code from the compressed data of the row and determining the specified range of expansion of the compressed data from the specified code. In the method of partially decompressing compressed data according to the third aspect of the present invention, first, the difference between a row of compressed data encoded by the MMR encoding method and another row is extracted. Next, when the extraction result of the predetermined code does not reach the beginning of the line of the compressed data, the decompression process of the compressed data is not performed, and only the specified range of the compressed data is restored. .
【0008】[0008]
【実施例】以下、この発明の実施例を図に基づいて説明
する。図1はこの発明の実施例1を示す圧縮データの伸
長方法を説明するフローチャートである。図1におい
て、S1〜S3は圧縮データの各行の先頭までスキップ
を行う前処理のステップである。この前処理のステップ
は、画像データ等の圧縮データの伸長をyo_exライ
ン(行)目から行いたい場合は、yo_exラインまで
の圧縮データをスキップする処理であり、図1のステッ
プS1〜S3の処理に相当する。このステップS1〜S
3では、圧縮データの1行の終わりに「EoL」符号が
書かれていることを利用して、「EoL」符号をyo_
ex回カウントすることにより行う。S4はMH(Mo
difid Huffman)符号抽出の処理のステッ
プであり、このMH符号方法は画像データの白,黒ビッ
トの連続数を符号化するものである。S5はMH符号の
復元判断のステップ、S6,S10は縦方向カウンタの
値と縦方向先頭ビット位置の値との比較のステップ、S
7は白ビット復元のステップ、S9は復元判断のステッ
プ、S11は黒ビット復元のステップである。Embodiments of the present invention will be described below with reference to the drawings. First Embodiment FIG. 1 is a flow chart for explaining a method for expanding compressed data according to a first embodiment of the present invention. In FIG. 1, S1 to S3 are preprocessing steps for skipping to the beginning of each line of compressed data. This pre-processing step is processing for skipping compressed data up to the yo_ex line when it is desired to decompress compressed data such as image data from the yo_ex line (row), and the processing of steps S1 to S3 in FIG. Equivalent to. These steps S1 to S
In No. 3, the fact that the “EoL” code is written at the end of one line of compressed data is used to change the “EoL” code to yo_.
This is done by counting ex times. S4 is MH (Mo
This is the step of the process of extracting the Hiffman (Difid Huffman) code, and this MH coding method encodes the continuous number of white and black bits of the image data. S5 is a step of determining the restoration of the MH code, S6 and S10 are steps of comparing the value of the vertical direction counter with the value of the vertical direction first bit position, and S
7 is a white bit restoration step, S9 is a restoration judgment step, and S11 is a black bit restoration step.
【0009】次にこの実施例1の動作について説明す
る。まずステップS1〜S3の前処理によって、縦方向
の先頭部まで圧縮データをスキップするEoL符号を縦
方向先頭ビット位置yo_ex(縦方向先頭座標)個の
分抽出するまで圧縮データ復元位置を表すカウンター
(count)を更新していく。次にEoL符号をyo
_ex個検出した所で、従来の伸長動作を開始する。す
なわち、まずステップS4のMH符号抽出処理により、
MH符号を抽出し、ステップS5で復元判断を行う。こ
の復元判断結果が「0」であれば、圧縮データの復元を
スキップし次の処理へと進み、また、その復元判断の結
果が「1」であれば、ステップS3での白ビットの圧縮
データの復元を行い次の処理へと進み、その復元判断の
結果が「2」であれば、現在処理中のステップS6の処
理を終了する。このステップS6では、縦方向座標yo
_endと縦方向カウンタの値yiとを縦方向カウンタ
の値yiが大きければ、処理を終了し、小さければ1行
の処理が終了したと判断してステップS4の処理に戻
る。以上を繰り返し行い、縦方向カウンタの値yiがy
o_endより大きくなれば処理を終了する。また、以
上の処理を黒ビットに対しても同様に行う(ステップS
9〜S11)。Next, the operation of the first embodiment will be described. First, by the pre-processing of steps S1 to S3, a counter that represents the compressed data decompression position until the number of vertical head bit positions yo_ex (vertical head coordinates) of the EoL code that skips compressed data to the vertical head is extracted ( count) is updated. Next, set the EoL code to yo
When the _ex number is detected, the conventional decompression operation is started. That is, first, by the MH code extraction processing in step S4,
The MH code is extracted, and restoration judgment is performed in step S5. If this restoration judgment result is "0", the restoration of the compressed data is skipped and the process proceeds to the next process. If the restoration judgment result is "1", the compressed data of the white bit in step S3. Is restored and the process proceeds to the next process, and if the result of the restoration judgment is "2", the process of step S6 currently being processed is terminated. In this step S6, the vertical coordinate yo
_End and the value yi of the vertical direction counter are large if the value yi of the vertical direction counter is large, the process is ended. If the value yi is small, it is determined that the process for one row is completed and the process returns to step S4. By repeating the above, the value yi of the vertical counter is y
If it becomes larger than o_end, the processing is ended. Further, the above processing is similarly performed for the black bit (step S).
9-S11).
【0010】次に、復元判断の処理を図3を用いて説明
する。図1のステップS5,S9における復元処理で
は、現在抽出されたビット位置と復元を行いたい圧縮デ
ータの範囲とを比較し、範囲内であれば「1」を出力
し、範囲外であれば「0」を出力し、また、1行の終わ
りであれば「2」を出力する。この復元判断の処理で
は、例えば図2のイメージデータを示すように、現在伸
長している部分からxo〜xo_ex、xe_ex〜x
ex、ye_ex〜の間はイメージデータに展開する必
要がないので、符号の伸長の処理のみを行い、復元処理
はスキップする。すなわち、まず、ステップS31では
抽出された符号がEoL符号かどうかを判断する。そし
て、EoL符号であれば(ステップS31でYES)、
1行の処理が終わったと判断して縦方向カウンタの値y
iをインクリメントし(ステップS32)、「2」を出
力する。EoL符号でなければ(ステップS31でN
O)、横方向先頭ビット位置xo_exの値と現横方向
ビットカウンタ*paの値を比較し(ステップS3
3)、現横方向ビットカウンタの値の方が小さければ
(YES)、「0」を出力する。また、現横方向ビット
の値の方が大きければ(ステップS33でNO)、前回
の横方向ビットカウンタ*(pa−1)の値が部分伸長
横方向先頭ビット位置xo_exより小さく、かつ、前
回の横方向ビットカウンタが横方向出力ビット位置xe
_exより小さいかどうか比較し(ステップS34)、
この条件どうりであれば復元ビット数bit_cは、現
横方向ビットカウンタ*paの値から横方向出力ビット
位置xe_exの値の減算を行い(ステップS35)、
「1」を出力する。以下、同様にして、順番にステップ
S36〜S40の処理を行い、圧縮データを復元すべき
範囲であれば、復元ビット数bit_cを演算した後
「1」を出力し、そうでなければ「0」を出力する。Next, the restoration judgment processing will be described with reference to FIG. In the decompression processing in steps S5 and S9 of FIG. 1, the currently extracted bit position is compared with the range of compressed data to be decompressed, "1" is output if within the range, and "1" if outside the range. "0" is output, and if the end of one line is output, "2" is output. In this restoration judgment processing, for example, as shown in the image data of FIG. 2, xo to xo_ex and xe_ex to x from the currently expanded portion.
Since there is no need to expand the image data between ex and ye_ex, only the code decompression process is performed and the decompression process is skipped. That is, first, in step S31, it is determined whether the extracted code is an EoL code. If it is an EoL code (YES in step S31),
The value y of the vertical direction counter is judged to be the end of processing for one line
i is incremented (step S32) and "2" is output. If it is not an EoL code (N in step S31)
O), and compares the value of the horizontal first bit position xo_ex with the value of the current horizontal bit counter * pa (step S3).
3) If the value of the current horizontal bit counter is smaller (YES), "0" is output. If the value of the current horizontal bit is larger (NO in step S33), the value of the previous horizontal bit counter * (pa-1) is smaller than the partially expanded horizontal head bit position xo_ex, and The horizontal bit counter displays the horizontal output bit position xe
It is compared whether it is smaller than _ex (step S34),
If this condition is satisfied, the restored bit number bit_c is obtained by subtracting the value of the horizontal output bit position xe_ex from the value of the current horizontal bit counter * pa (step S35).
Outputs "1". Thereafter, similarly, the processes of steps S36 to S40 are sequentially performed, and if the compressed data is within the range to be decompressed, "1" is output after calculating the decompression bit number bit_c, and otherwise "0". Is output.
【0011】図4はこの発明の実施例2を示す圧縮デー
タの伸長方法を説明するフローチャートである。実施例
1では圧縮データの部分伸長方法として、MH法をベー
スにした場合を説明したが、実施例2ではMR法(Mo
dified READ)に応用した場合を説明する。
このMR法とは、Kパラメータで示される回数おきにM
H圧縮を行いMH圧縮とMH圧縮の間の行は、前行との
ちがいを符号化する方法である。したがって、この実施
例2の処理においては、K回ごとに行われるステップS
44のMH伸長処理とステップS46でのMR伸長処理
とに大きく分かれており、前行とのちがいを調べるた
め、伸長を行う前に、ステップS43,S45で変化点
テーブルを1行分作成する。ステップS44〜S48の
処理では、実施例1で示したように圧縮符号を抽出して
から、データを復元して良いかを判断し、良ければ復元
を行う。ただしMR法は、前行とのちがいを符号化する
ものであるので、ステップS42の前処理において、縦
方向の先頭座標をスキップして伸長を始めても意味が無
い場合がある。このため、縦方向先頭座標に1番近くて
小さいMH部までスキップするため、ステップS41の
演算を行う。ここでステップS41の処理における変数
はすべて整数型である。FIG. 4 is a flow chart for explaining the method of decompressing compressed data according to the second embodiment of the present invention. In the first embodiment, the case where the MH method is used as a base as the partial decompression method of the compressed data has been described, but in the second embodiment, the MR method (Mo
The case of application to "defined READ" will be described.
This MR method is called M for every number of times indicated by the K parameter.
A line between H compression and MH compression is a method of encoding a difference from the preceding line. Therefore, in the process of the second embodiment, step S is performed every K times.
This is largely divided into the MH decompression process of 44 and the MR decompression process of step S46. In order to examine the difference from the preceding line, the change point table for one line is created in steps S43 and S45 before decompression. In the processing of steps S44 to S48, the compression code is extracted as described in the first embodiment, and then it is determined whether the data can be restored. If it is good, the restoration is performed. However, since the MR method encodes the difference from the preceding line, it may be meaningless to start the decompression by skipping the vertical start coordinates in the preprocessing of step S42. For this reason, in order to skip to the smallest MH portion which is the closest to the vertical head coordinate, the calculation of step S41 is performed. Here, all variables in the process of step S41 are integer type.
【0012】図5,図6はこの発明の実施例3を示す圧
縮データの伸長方法を説明するフローチャートである。
この実施例3ではMMR符号法(Modified M
R)に応用したものである。このMMR法とは、Kパラ
メータごとにMH法を行うMR法と異なり、すべての圧
縮データが前行とのちがいを符号化するものである。し
たがって、この実施例3では、ステップS51での変化
点テーブルの作成の処理とステップS52でのMR伸長
の処理で十分となる。しかしながら符号を抽出した結
果、縦方向先頭座標に達してない場合、ビットの復元処
理をスキップする必要があるので、復元処理であるステ
ップS61,S62の処理を1つ追加した。他のステッ
プS31〜S40の処理は図3(実施例1)の処理と同
じである。FIG. 5 and FIG. 6 are flow charts for explaining a method of decompressing compressed data according to the third embodiment of the present invention.
In the third embodiment, the MMR coding method (Modified M
It is applied to R). The MMR method is different from the MR method in which the MH method is performed for each K parameter, and all the compressed data encode the difference from the preceding line. Therefore, in the third embodiment, the process of creating the change point table in step S51 and the process of MR decompression in step S52 are sufficient. However, as a result of extracting the code, if the vertical head coordinates have not been reached, it is necessary to skip the bit restoration process, so one additional process of steps S61 and S62 is added. The other processes of steps S31 to S40 are the same as the processes of FIG. 3 (Example 1).
【0013】[0013]
【発明の効果】この第1の発明によれば、MH符号化方
法による圧縮データを復元する場合に、伸長を行わない
不必要な圧縮データの行をスキップして伸長を行う行を
見つけ、更にその行の圧縮データの中から伸長を行う範
囲を所定の符号の抽出により行うようにしたので、必要
なデータのみを伸長でき、メモリを節約できるととも
に、演算時間を短縮できる効果がある。この第2の発明
によれば、MR符号化方法による圧縮データを復元する
場合に、伸長を行わない不必要な圧縮データの行をスキ
ップして伸長を行う行を見つけ、更にその行の圧縮デー
タの中から伸長を行う範囲を所定の符号の抽出により行
うようにしたので、必要なデータのみを伸長でき、メモ
リを節約できるとともに、演算時間を短縮できる効果が
ある。この第3の発明によれば、MH符号化方法による
圧縮データを復元する場合に、伸長を行わない不必要な
圧縮データの行をスキップして伸長を行う行を見つけ、
更にその行の圧縮データの中から伸長を行う範囲を所定
の符号の抽出により行うようにしたので、必要なデータ
のみを伸長でき、メモリを節約できるとともに、演算時
間を短縮できる効果がある。According to the first aspect of the present invention, when decompressing compressed data by the MH coding method, unnecessary decompressed data lines that are not decompressed are skipped to find a decompressed line, and Since the range of decompression from the compressed data of the row is performed by extracting a predetermined code, only the necessary data can be decompressed, the memory can be saved, and the operation time can be shortened. According to the second aspect of the present invention, when decompressing compressed data by the MR encoding method, a row of uncompressed unnecessary compressed data is skipped to find a row to be decompressed, and the compressed data of the row is further decompressed. Since the range in which the expansion is performed is performed by extracting a predetermined code, only the necessary data can be expanded, the memory can be saved, and the calculation time can be shortened. According to the third aspect of the invention, when decompressing compressed data by the MH coding method, unnecessary decompressed data lines that are not decompressed are skipped to find a decompressed line,
Further, since the range of expansion from the compressed data of the row is performed by extracting a predetermined code, only the necessary data can be expanded, the memory can be saved, and the operation time can be shortened.
【図1】この発明の実施例1を示す圧縮データの部分伸
長方法を説明するフローチャートである。FIG. 1 is a flowchart illustrating a method of partially expanding compressed data according to a first embodiment of the present invention.
【図2】図1のフローチャートの復元判断の処理を説明
するイメージデータの図である。FIG. 2 is a diagram of image data for explaining a restoration determination process in the flowchart of FIG.
【図3】図1のフローチャートの復元判断の処理を詳細
に説明するフローチャートである。FIG. 3 is a flowchart illustrating in detail the restoration determination process of the flowchart of FIG.
【図4】この発明の実施例2を示す圧縮データの部分伸
長方法を説明するフローチャートである。FIG. 4 is a flowchart illustrating a method of partially decompressing compressed data according to a second embodiment of the present invention.
【図5】この発明の実施例3を示す圧縮データの部分伸
長方法を説明するフローチャートである。FIG. 5 is a flowchart illustrating a method of partially expanding compressed data according to a third embodiment of the present invention.
【図6】図5のフローチャートの復元判断の処理を詳細
に説明するフローチャートである。FIG. 6 is a flowchart illustrating in detail the restoration determination process of the flowchart of FIG.
【図7】従来の圧縮データの伸長方法を説明するフロー
チャートである。FIG. 7 is a flowchart illustrating a conventional method of decompressing compressed data.
yi 縦方向カウンタの値 *pa 現横方向ビットカウンタの値 *(pa−1) 前横方向ビットカウンタの値 xo_ex 部分伸長横方向先頭ビット位置 xe_ex 横方向出力ビット位置 bit_c 復元ビット数 xex_dat 横方向出力ビット幅 yo_ex 縦方向先頭ビット位置 yi Vertical direction counter value * pa Current horizontal direction bit counter value * (pa-1) Previous horizontal direction bit counter value xo_ex Partially expanded horizontal direction first bit position xe_ex Horizontal direction output bit position bit_c Number of restored bits xex_dat Horizontal direction output Bit width yo_ex Vertical start bit position
─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成5年8月6日[Submission date] August 6, 1993
【手続補正1】[Procedure Amendment 1]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】特許請求の範囲[Name of item to be amended] Claims
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【特許請求の範囲】[Claims]
Claims (3)
ータの指定された範囲のみを伸長する圧縮データの部分
圧縮方法であって、伸長を行うべき圧縮データの行の先
頭までスキップし、その行の圧縮データから所定の符号
を抽出してこの所定の符号から、上記圧縮データの伸長
が指定された範囲を判断するようにしたことを特徴とす
る圧縮データの部分伸長方法。1. A partial compression method of compressed data for expanding only a specified range of vertical and horizontal compressed data by the MH encoding method, which skips to the beginning of a line of compressed data to be expanded and A partial decompression method for compressed data, wherein a predetermined code is extracted from the compressed data and the range in which the expansion of the compressed data is designated is determined from the predetermined code.
ータの指定された範囲のみを伸長する圧縮データの部分
伸長方法であって、所定の行の前行の圧縮データを記憶
し、この前行の圧縮データと所定の行の圧縮データとを
比較しながら伸長を行うべき圧縮データの行の先頭まで
スキップし、その行の圧縮データから所定の符号を抽出
してこの所定の符号から、上記圧縮データの伸長が指定
された範囲を判断するようにしたことを特徴とする圧縮
データの部分伸長方法。2. A partial decompression method of compressed data for expanding only a specified range of vertical and horizontal compressed data by an MR encoding method, wherein compressed data of a preceding line of a predetermined line is stored, and the preceding line is stored. While comparing the compressed data of the above and the compressed data of the predetermined line, skip to the beginning of the line of the compressed data to be expanded, extract a predetermined code from the compressed data of the line, and compress the above from the predetermined code. A partial decompression method for compressed data, characterized in that the range of decompression of data is determined.
データの指定された範囲のみを伸長する圧縮データの部
分伸長方法であって、行と他の行との違いを符号化した
全ての圧縮データから所定の符号を抽出し、この所定の
符号の抽出結果が圧縮データの行の先頭に達していない
場合に、上記圧縮データの伸長処理を行わないようにし
たことを特徴とする圧縮データの部分伸長方法。3. A partial decompression method of compressed data for decompressing only a specified range of vertical and horizontal compressed data by the MMR encoding method, wherein all compressed data obtained by encoding the difference between a row and another row. A predetermined code is extracted from the compressed data, and when the extraction result of the predetermined code does not reach the head of the line of the compressed data, the decompression process of the compressed data is not performed. Extension method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8559193A JPH06276103A (en) | 1993-03-19 | 1993-03-19 | Method for partially extending compressed data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8559193A JPH06276103A (en) | 1993-03-19 | 1993-03-19 | Method for partially extending compressed data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06276103A true JPH06276103A (en) | 1994-09-30 |
Family
ID=13863066
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8559193A Pending JPH06276103A (en) | 1993-03-19 | 1993-03-19 | Method for partially extending compressed data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06276103A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0965145A (en) * | 1995-08-18 | 1997-03-07 | Nec Corp | Picture signal decoder |
| EP0810552A3 (en) * | 1996-05-28 | 1999-06-16 | Sharp Kabushiki Kaisha | Image display device |
-
1993
- 1993-03-19 JP JP8559193A patent/JPH06276103A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0965145A (en) * | 1995-08-18 | 1997-03-07 | Nec Corp | Picture signal decoder |
| EP0810552A3 (en) * | 1996-05-28 | 1999-06-16 | Sharp Kabushiki Kaisha | Image display device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3108479B2 (en) | Encoding / decoding method and apparatus therefor | |
| US20090080531A1 (en) | Image encoding apparatus, image decoding apparatus, and control method therefor | |
| US20080317362A1 (en) | Image encoding apparatus and image decoding apparauts, and control method thereof | |
| US6728412B1 (en) | Method and apparatus for on-the-fly image coding | |
| JP2534276B2 (en) | Original image pel signal processing method | |
| US5960117A (en) | Method of adaptive arithmetic encoding/decoding according to JBIG standard | |
| JPH11168632A (en) | Binary expression processing method for dither image, method for uncompressing dither image expressed in compression binary representation and compression and uncompression system for dither image | |
| US5915042A (en) | Coding and decoding methods and apparatus for compressing and expanding image data | |
| JPH07264417A (en) | Image coding method | |
| JPH06152986A (en) | Picture compressing method and device | |
| JPH07152915A (en) | Image coding apparatus and decoding apparatus | |
| JPH10108011A (en) | Data-processing unit | |
| JP3859325B2 (en) | Image iterative transform decoding apparatus and method, and recording medium | |
| JP4660698B2 (en) | Image processing system and image processing program | |
| JP3320282B2 (en) | Multi-value image processing device | |
| JP3559419B2 (en) | Method and apparatus for decompressing compressed image data | |
| JP2806169B2 (en) | Compressed data decompression device | |
| JP3862781B2 (en) | Image compression method and image expansion method | |
| JP3339256B2 (en) | Fractal image compression data restoration device | |
| JPH0884260A (en) | Two-dimensional image data compression method and decompression method | |
| JP3321226B2 (en) | Encoding / decoding method | |
| JPH0918877A (en) | Fractal image compression device | |
| JP3531844B2 (en) | Image processing device | |
| JPH05127866A (en) | Image data compression method | |
| JPH09327015A (en) | Image compression method |