JPH09214777A - Image expansion processing method - Google Patents

Image expansion processing method

Info

Publication number
JPH09214777A
JPH09214777A JP8016031A JP1603196A JPH09214777A JP H09214777 A JPH09214777 A JP H09214777A JP 8016031 A JP8016031 A JP 8016031A JP 1603196 A JP1603196 A JP 1603196A JP H09214777 A JPH09214777 A JP H09214777A
Authority
JP
Japan
Prior art keywords
image
change point
data
coordinate
expansion
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
JP8016031A
Other languages
Japanese (ja)
Other versions
JP3795564B2 (en
Inventor
Yukinori Yajima
征典 矢島
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP01603196A priority Critical patent/JP3795564B2/en
Publication of JPH09214777A publication Critical patent/JPH09214777A/en
Application granted granted Critical
Publication of JP3795564B2 publication Critical patent/JP3795564B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To edit a large scale image even with a memory configuration of a small capacity by executing expansion processing only for a designated rectangular area with respect to compression data of one page. SOLUTION: An expansion start coordinate STX and an expansion end coordinate ENX with respect to a main scanning direction are set to a rectangular area being a segmentation object of an original image. Then a change point coordinate of input change point data CPOSB and the expansion start coordinate STX are compared and when the change point coordinate is less than the expansion start coordinate STX, the coordinate is set at the outside of objects of expansion processing and change point coordinates with a relation of the CPOSB > the STX are used for change point coordinates to be converted for the image data. Then the image data as to the designated area designated by the expansion start coordinate STX and the expansion end coordinate ENX are generated from the input change point data CPOSB consisting of change point coordinate information strings to white or black level picture elements in the main scanning direction of one line.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、イメージの伸張技
術に係り、特にMH(Modified Huffman)/MR(Modi
fied READ )/MMR(Modified Modified READ)符号
のイメージ伸張を行なうイメージ伸張処理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image expansion technique, and more particularly to MH (Modified Huffman) / MR (Modi).
The present invention relates to an image expansion processing method for expanding an image of a fied READ) / MMR (Modified Modified READ) code.

【0002】[0002]

【従来の技術】一般に、2値画像イメージに対するデー
タ圧縮方式として、MH(Modified Huffman)/MR
(Modified READ )/MMR(Modified Modified REA
D)符号化方式がある。
2. Description of the Related Art Generally, MH (Modified Huffman) / MR is used as a data compression method for a binary image.
(Modified READ) / MMR (Modified Modified REA
D) There is an encoding method.

【0003】MH/MR/MMR符号化方式等によって
得られた2値画像イメージの圧縮データをもとに、図1
2に示すように、元のイメージ中の部分的な矩形領域の
イメージを切り出すためには、従来のイメージ伸張処理
方法では次のようにして行なっている。
Based on the compressed data of a binary image image obtained by the MH / MR / MMR encoding method or the like, FIG.
As shown in FIG. 2, in order to cut out the image of the partial rectangular area in the original image, the conventional image expansion processing method is performed as follows.

【0004】すなわち、イメージの切り出しの対象とす
るイメージデータの1ページ分の作業メモリ(ワーク領
域)をメモリ上に用意し、圧縮データをもとに1ページ
分の全体のイメージを展開する。その後、作業メモリに
展開した1ページ分のイメージデータから対象とする矩
形領域のイメージを出力イメージ領域へ出力し、イメー
ジ切り出しを完了する。
That is, a work memory (work area) for one page of image data to be cut out of an image is prepared on the memory, and the entire image for one page is expanded based on the compressed data. Then, the image of the target rectangular area is output from the image data of one page expanded in the working memory to the output image area, and the image cutting is completed.

【0005】[0005]

【発明が解決しようとする課題】このように従来のイメ
ージ伸張処理方法では、圧縮データをもとに元のイメー
ジ中の特定の矩形領域のイメージを得るためには、一
度、圧縮データをもとに1ページ分のイメージ全体を作
業メモリ上で展開する必要があった。従って、必要なイ
メージを切り出すまでに要する時間は、1ページ分のイ
メージの伸張に要する時間と、展開した全体のイメージ
から特定の矩形領域のイメージ切り出しに要する時間の
合計分要してしまう。このため、出力イメージを得るま
での応答性が悪くなっていた。
As described above, according to the conventional image decompression processing method, in order to obtain an image of a specific rectangular area in the original image based on the compressed data, the compressed data is once extracted. It was necessary to expand the entire image for one page on the working memory. Therefore, the time required to cut out the required image is the total of the time required to decompress the image for one page and the time required to cut out the image of a specific rectangular area from the developed entire image. Therefore, the responsiveness until obtaining the output image is poor.

【0006】また、対象とするイメージが、例えばサイ
ズがA0、解像度が16本/mmであるような大イメー
ジの場合には、圧縮イメージを一度に伸張すると、その
データ量が約30Mbyteとなり、大容量の作業メモリが
必要になってしまう。
Further, when the target image is a large image having a size of A0 and a resolution of 16 lines / mm, for example, when the compressed image is expanded at one time, the data amount becomes about 30 Mbyte, which is large. It requires a large amount of working memory.

【0007】本発明は前記のような事情を考慮してなさ
れたもので、大容量の作業メモリを用いることなく、圧
縮データをもとに全体のイメージ中の矩形領域の部分切
り出しを高速に実行可能なイメージの伸張処理方法を提
供することを目的とする。
The present invention has been made in consideration of the above-mentioned circumstances, and at a high speed, a partial cutout of a rectangular area in an entire image is performed based on compressed data without using a large capacity work memory. An object is to provide a possible image decompression processing method.

【0008】[0008]

【課題を解決するための手段】本発明は、イメージデー
タの主走査方向における白画素及び黒画素への変化点座
標列をもとにしたイメージ伸張の対象とする、イメージ
データ中の伸張開始座標及び伸張終了座標を設定し、ラ
スタ走査方向に順次読み出された変化点座標と伸張開始
座標との比較により、前記イメージデータ中の伸張すべ
き範囲の先頭の変化点座標を検出し、ラスタ走査方向に
順次読み出された変化点座標と伸張終了座標との比較に
より、前記イメージデータ中の伸張すべき範囲の終端の
変化点座標を検出し、この検出した先頭の変化点座標か
ら終端の変化点座標までの前記変化点座標列中の変化点
座標に対し、所定の値で除算した商と余り値を求め、こ
の求めた商と直前の変化点座標に対して求めた商との差
を求め、求めた差の値が0の時に、所定の値に達しない
変化点座標列に対するイメージパターンを余り値に応じ
て求め、求めた差の値が1以上の時に、所定の値に達し
ない変化点座標列に対して求めたイメージパターンをイ
メージ伸張後のイメージパターンとし、さらに求めた差
に応じた白画素または黒画素が連続するイメージパター
ンをイメージ伸張後のイメージパターンとして出力する
ことを特徴とする。
DISCLOSURE OF THE INVENTION According to the present invention, a decompression start coordinate in image data, which is an object of image decompression based on a coordinate sequence of change points to a white pixel and a black pixel in the main scanning direction of the image data. And expansion end coordinates are set, and by comparing the change point coordinates sequentially read in the raster scanning direction with the expansion start coordinates, the start change point coordinates of the range to be expanded in the image data is detected, and raster scanning is performed. By comparing the change point coordinates sequentially read in the direction and the expansion end coordinates, the change point coordinates at the end of the range to be expanded in the image data are detected, and the detected change point coordinates from the end change point coordinates are detected. For the change point coordinates in the change point coordinate sequence up to the point coordinates, obtain the quotient and the remainder value divided by a predetermined value, and calculate the difference between the obtained quotient and the quotient obtained for the immediately preceding change point coordinate. Seeking, difference When the value is 0, the image pattern for the change point coordinate sequence that does not reach the predetermined value is obtained according to the remainder value, and when the obtained difference value is 1 or more, for the change point coordinate sequence that does not reach the predetermined value, The image pattern obtained by the above is used as an image pattern after image expansion, and an image pattern in which white pixels or black pixels are continuous according to the obtained difference is output as the image pattern after image expansion.

【0009】また本発明は、イメージのライン区分を示
すEOLコードを含む1次元符号化方式により符号化さ
れた圧縮データをもとにしたイメージ伸張の対象とす
る、イメージデータ中の伸張開始座標及び伸張終了座標
を設定し、圧縮データからEOLコードを検出しなが
ら、伸張開始座標及び伸張終了座標に基づいて、コード
データに対応するラインがイメージ伸張の対象であるか
否かを判定し、イメージ伸張の対象とするラインである
と判定した時に、コードデータを白画素及び黒画素への
変化点座標列に変換し、この変化点座標情報列に対し、
所定の値で除算した商と余り値を求め、この求めた商と
直前の変化点座標に対して求めた商との差を求め、求め
た差の値が0の時に、所定の値に達しない変化点座標列
に対するイメージパターンを余り値に応じて求め、求め
た差の値が1以上の時に、所定の値に達しない変化点座
標列に対して求めたイメージパターンをイメージ伸張後
のイメージパターンとし、さらに求めた差に応じた白画
素または黒画素が連続するイメージパターンをイメージ
伸張後のイメージパターンとして出力することを特徴と
する。
Further, according to the present invention, a decompression start coordinate in image data, which is an object of image decompression based on compressed data encoded by a one-dimensional encoding method including an EOL code indicating a line segment of an image, and While setting the decompression end coordinate and detecting the EOL code from the compressed data, it is determined whether or not the line corresponding to the code data is the object of image decompression based on the decompression start coordinate and the decompression end coordinate, and the image decompression is performed. When it is determined that the line is the target line, the code data is converted into a change point coordinate sequence to white pixels and black pixels, and for this change point coordinate information sequence,
Obtain the quotient and the remainder value divided by a given value, find the difference between the quotient obtained and the quotient obtained for the coordinates of the immediately preceding change point, and reach the given value when the obtained difference value is 0. The image pattern for the changing point coordinate sequence is obtained according to the remainder value, and when the obtained difference value is 1 or more, the image pattern obtained for the changing point coordinate sequence that does not reach the predetermined value is the image after image expansion. It is characterized in that an image pattern in which white pixels or black pixels corresponding to the obtained difference is continuous is output as an image pattern after image expansion.

【0010】また本発明は、2次元符号化方式により符
号化された圧縮データをもとにしたイメージ伸張の対象
とする、イメージデータ中の伸張開始座標及び伸張終了
座標を設定し、圧縮データからコードデータを順次読み
出して、白画素及び黒画素への変化点座標列に変換し、
この変化点座標列に対応するイメージデータのライン
が、イメージ伸張の対象であるか否かを、伸張開始座標
及び伸張終了座標に基づいて判定し、イメージ伸張の対
象とするラインであると判定した時に、変化点座標情報
列に対し、所定の値で除算した商と余り値を求め、この
求めた商と直前の変化点座標に対して求めた商との差を
求め、求めた差の値が0の時に、所定の値に達しない変
化点座標列に対するイメージパターンを余り値に応じて
求め、求めた差の値が1以上の時に、所定の値に達しな
い変化点座標列に対して求めたイメージパターンをイメ
ージ伸張後のイメージパターンとし、さらに求めた差に
応じた白画素または黒画素が連続するイメージパターン
をイメージ伸張後のイメージパターンとして出力するこ
とを特徴とする。
Further, according to the present invention, the decompression start coordinates and decompression end coordinates in the image data, which are objects of image decompression based on the compressed data coded by the two-dimensional coding method, are set and The code data is sequentially read out and converted into a sequence of change point coordinates for white pixels and black pixels,
It is determined whether or not the line of the image data corresponding to the change point coordinate sequence is the target of image expansion based on the expansion start coordinates and the expansion end coordinates, and it is determined that the line is the target of image expansion. Sometimes, for the change point coordinate information sequence, the quotient and the remainder value divided by a predetermined value are obtained, the difference between this quotient and the quotient obtained for the immediately preceding change point coordinates is obtained, and the obtained difference value When 0 is 0, the image pattern for the change point coordinate sequence that does not reach the predetermined value is obtained according to the remainder value, and when the obtained difference value is 1 or more, for the change point coordinate sequence that does not reach the predetermined value, The obtained image pattern is used as an image pattern after image expansion, and an image pattern in which white pixels or black pixels are continuous according to the obtained difference is output as the image pattern after image expansion.

【0011】また本発明は、1次元符号化方式により符
号化された含むコードデータと2次元符号化方式により
符号化されたコードデータとが混在する、イメージのラ
イン区分を示すEOLコードとコード種別を示す付加情
報とを含む圧縮データをもとにしたイメージ伸張の対象
とする、イメージデータ中の伸張開始座標及び終了開始
座標を設定し、圧縮データからEOLコードと付加情報
を検出しながら、付加情報をもとに注目ラインのコード
データが1次元符号化方式あるいは2次元符号化方式の
何れによるものかを判定し、この判定結果より、注目ラ
インが1次元符号化方式によるコードデータの場合は、
伸張開始座標−1から終了開始座標までのコードデータ
に対応するラインをイメージ伸張の対象と判定して、該
当するコードデータから白画素及び黒画素への変化点座
標列を生成し、判定結果より、注目ラインが2次元符号
化方式によるコードデータの場合は、伸張開始座標から
終了開始座標までのコードデータに対応するラインをイ
メージ伸張の対象と判定して、該当するコードデータか
ら白画素及び黒画素への変化点座標列を生成し、この生
成された変化点座標情報列に対し、所定の値で除算した
商と余り値を求め、この求めた商と直前の変化点座標に
対して求めた商との差を求め、求めた差の値が0の時
に、所定の値に達しない変化点座標列に対するイメージ
パターンを余り値に応じて求め、求めた差の値が1以上
の時に、所定の値に達しない変化点座標列に対して求め
たイメージパターンをイメージ伸張後のイメージパター
ンとし、さらに求めた差に応じた白画素または黒画素が
連続するイメージパターンをイメージ伸張後のイメージ
パターンとして出力することを特徴とする。
Further, according to the present invention, the EOL code indicating the line division of the image and the code type in which the code data encoded by the one-dimensional encoding method and the code data encoded by the two-dimensional encoding method are mixed. Is added to the image data based on the compressed data including the additional information indicating the expansion start coordinate and the end start coordinate in the image data, and the EOL code and the additional information are detected from the compressed data. Based on the information, it is determined whether the code data of the line of interest is based on the one-dimensional coding system or the two-dimensional coding system. From this determination result, if the line of interest is code data based on the one-dimensional coding system, ,
The line corresponding to the code data from the decompression start coordinate-1 to the end start coordinate is determined to be the target of image decompression, and the change point coordinate sequence from the corresponding code data to the white pixel and the black pixel is generated. If the line of interest is code data by the two-dimensional encoding method, the line corresponding to the code data from the decompression start coordinates to the end start coordinates is determined as the object of image decompression, and white pixels and black pixels are extracted from the corresponding code data. Generate a change point coordinate sequence to a pixel, find the quotient and the remainder value divided by a predetermined value from the generated change point coordinate information sequence, and find the obtained quotient and the immediately preceding change point coordinate. The difference between the calculated quotient and the quotient is 0. When the calculated difference is 0, the image pattern for the change point coordinate sequence that does not reach the predetermined value is calculated according to the remainder value, and when the calculated difference is 1 or more, To a predetermined value Do not output the image pattern obtained for the change point coordinate sequence as the image pattern after image decompression, and output the image pattern in which white pixels or black pixels continue according to the obtained difference as the image pattern after image decompression. Characterize.

【0012】[0012]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。図1は本実施形態に係わる
イメージ伸張処理方法を実現するシステムの構成を示す
ブロック図である。図1に示すように本システムは、C
PU10、RAM12、VRAM14、ROM16、入
力装置18、入力制御部20、表示装置22、表示制御
部24、記憶装置26、記憶制御部28によって構成さ
れている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a system that realizes an image expansion processing method according to this embodiment. As shown in FIG. 1, this system is C
The PU 10, the RAM 12, the VRAM 14, the ROM 16, the input device 18, the input control unit 20, the display device 22, the display control unit 24, the storage device 26, and the storage control unit 28.

【0013】CPU10は、装置全体の制御を行なうも
ので、RAM12、VRAM14、ROM16をアクセ
スして入力指示に従うプログラムの起動で、本発明によ
るイメージ伸張処理方法の機能を実現する。
The CPU 10 controls the entire apparatus, and accesses the RAM 12, the VRAM 14, and the ROM 16 and activates a program according to an input instruction to realize the function of the image expansion processing method according to the present invention.

【0014】RAM12は、CPU10の動作を決定す
る各種処理プログラムが格納されたプログラム領域12
aをはじめ、イメージ処理を行なう際に使用される各種
変数、テーブル、処理対象とする圧縮データ等を格納す
るための作業メモリとしてのワーク領域12b等が設け
られている。
The RAM 12 is a program area 12 in which various processing programs for determining the operation of the CPU 10 are stored.
In addition to a, a work area 12b as a working memory for storing various variables used when performing image processing, a table, compressed data to be processed, and the like are provided.

【0015】VRAM14は、表示装置22において表
示すべき表示データを展開するための領域である。VR
AM14に展開された表示データは、表示制御部24に
よって読み出され、表示装置22における表示に供され
る。
The VRAM 14 is an area for expanding display data to be displayed on the display device 22. VR
The display data expanded in the AM 14 is read by the display control unit 24 and provided for display on the display device 22.

【0016】ROM16は、CPU10の動作を決定す
る各種処理プログラムが格納されたプログラム領域16
a、各種データを格納するためのデータ領域16b等が
設けられている。
The ROM 16 is a program area 16 in which various processing programs for determining the operation of the CPU 10 are stored.
a, a data area 16b for storing various data, and the like are provided.

【0017】入力装置18は、キーボードまたはマウス
等によって構成され、システムに対する指示を入力す
る。表示装置22は、例えば液晶ディスプレイによって
構成され、表示制御部24の制御のもとに表示を行な
う。表示制御部24は、表示装置22における表示を制
御するもので、VRAM14に格納された表示データを
読み込み、表示装置22における表示に供する。
The input device 18 is composed of a keyboard, a mouse or the like, and inputs an instruction to the system. The display device 22 is composed of, for example, a liquid crystal display, and performs display under the control of the display control unit 24. The display control unit 24 controls the display on the display device 22, reads the display data stored in the VRAM 14, and provides the display data on the display device 22.

【0018】記憶装置26は、処理対象とするイメージ
データを符号化して得られる圧縮データ、変化点座標デ
ータ、イメージデータ等を格納する。記憶制御部28
は、記憶装置26に対するデータ等の入出力制御を行な
う。
The storage device 26 stores compressed data obtained by encoding the image data to be processed, change point coordinate data, image data, and the like. Storage control unit 28
Controls input / output of data and the like to / from the storage device 26.

【0019】次に、本発明の第1実施形態に係わるデー
タ伸張処理方法について、図2に示すフローチャートを
参照しながら説明する。第1実施形態におけるイメージ
伸張処理方法は、図5に示すように、イメージデータの
白画素及び黒画素への変化点座標情報からなる変化点デ
ータ列(圧縮データ)をもとにイメージデータを生成す
る。本実施形態では、変化点データ列をもとに、指定さ
れた矩形領域のイメージのみを伸張する。
Next, a data decompression processing method according to the first embodiment of the present invention will be described with reference to the flowchart shown in FIG. As shown in FIG. 5, the image decompression processing method according to the first embodiment generates image data based on a change point data string (compressed data) including change point coordinate information of white data and black pixels of image data. To do. In this embodiment, only the image of the specified rectangular area is expanded based on the change point data string.

【0020】ステップA1は、主走査方向に対する伸張
開始座標(STX)及び伸張終了座標(ENX)を設定
するステップである。ステップA2は、初期化処理を実
行するステップであり、直前の変化点演算結果の初期化
を行う。
Step A1 is a step of setting the extension start coordinates (STX) and the extension end coordinates (ENX) with respect to the main scanning direction. Step A2 is a step of executing an initialization process, and initializes the immediately preceding change point calculation result.

【0021】ステップA3は、ラスタ方向に順次読み出
される入力変化点データ(CPOSB)の変化点座標と
伸張開始座標(STX)とを比較し、変化点座標が伸張
開始座標(STX)以下となる部分を伸張処理の対象外
として読み捨て、CPOSB>STXとなる伸張処理の
対象の開始位置となる変化点座標を検出するステップで
ある。また、入力変化点データ(CPOSB)の変化点
座標と伸張終了座標(ENX)とを比較し、伸張終了座
標(ENX)+1の変化点座標を伸張処理の対象とする
終端として検出するステップである。
In step A3, the change point coordinates of the input change point data (CPOSB) sequentially read in the raster direction are compared with the expansion start coordinates (STX), and the change point coordinates are equal to or less than the expansion start coordinates (STX). Is excluded from the target of the decompression process and is discarded, and the change point coordinates serving as the start position of the target of the decompression process with CPOSB> STX are detected. Further, it is a step of comparing the change point coordinates of the input change point data (CPOSB) with the extension end coordinates (ENX), and detecting the change point coordinates of the extension end coordinates (ENX) +1 as the end point of the extension process. .

【0022】ステップA4は、部分伸張後の変化点座標
のバイトレングス(BYTELEN)とその余り値を求
めるステップであり、直前の変化点座標に対する演算結
果を(BYTELEN_OLD)に保存し、部分指定後
の変化点座標(CPOS)の値を、入力変化点の座標
(CPOSB)から伸張開始座標(STX)を減算した
値とし、これを所定の値で除算した商と余りを求める。
Step A4 is a step for obtaining the byte length (BYTELEN) of the change point coordinates after partial expansion and the remainder value thereof. The calculation result for the immediately previous change point coordinates is stored in (BYTELEN_OLD), and after the partial designation. The value of the change point coordinate (CPOS) is taken as the value obtained by subtracting the extension start coordinate (STX) from the coordinate of the input change point (CPOSB), and this is divided by a predetermined value to obtain the quotient and the remainder.

【0023】ステップA5は、ステップA4で求めた変
化点座標のバイトレングス(BYTELEN)と直前の
値(BYTELEN_OLD)との差を求め、これを
(FILL_NO)に保持するステップである。
In step A5, the difference between the byte length (BYTELEN) of the change point coordinates obtained in step A4 and the immediately preceding value (BYTELEN_OLD) is obtained and held in (FILL_NO).

【0024】ステップA6は、ステップA5で求めた
(FILL_NO)が1以上であるか否かを判定するス
テップである。ステップA7は、カレント変化点の色が
黒か否かを判定するステップ。
Step A6 is a step of determining whether or not (FILL_NO) obtained in step A5 is 1 or more. Step A7 is a step of determining whether or not the color of the current change point is black.

【0025】ステップA8,A9は、バイトレングスの
端数値(BITPAT_NO)とカレント色(COLO
R)をアドレスとし、イメージ変換テーブルを参照し、
端数部のイメージパターン(BITPAT_REG)を
求めるステップであり、カレント色が黒の場合、(BI
TPAT_REG)とイメージ変換テーブルの出力をO
R演算し、(BITPAT_REG)に代入する。
Steps A8 and A9 are the fractional value of the byte length (BITPAT_NO) and the current color (COLO).
R) as an address and referring to the image conversion table,
This is the step of obtaining the image pattern (BITPAT_REG) of the fractional part, and when the current color is black, (BI
TPAT_REG) and output of image conversion table
R calculation is performed and the result is substituted into (BITPAT_REG).

【0026】一方、カレント色が白の場合、(BITP
AT_REG)とイメージ変換テーブルの出力をAND
した結果を(BITPAT_REG)に代入する。ステ
ップA10は、ステップA6の判定で(FILL_N
O)が1以上の場合に実行されるステップであり、ステ
ップA8、A9で生成した端数部のイメージパターン
(BITPAT_REG)を出力イメージ領域に転送す
るステップである。また、(BITPAT_REG)を
ステップA4で求めた(BITPAT_NO)に対応す
るイメージパターンで初期化する。
On the other hand, if the current color is white, (BITP
AND the output of the image conversion table
The result obtained is substituted into (BITPAT_REG). Step A10 is (FILL_N
O) is a step executed when it is 1 or more, and is a step of transferring the image pattern (BITPAT_REG) of the fractional part generated in steps A8 and A9 to the output image area. Further, (BITPAT_REG) is initialized with the image pattern corresponding to (BITPAT_NO) obtained in step A4.

【0027】ステップA11は、1バイト(ここでは8
ビット)で構成される白または黒のイメージを(FIL
L_NO)−1回分出力イメージ領域に転送するステッ
プである。
Step A11 consists of 1 byte (8 in this case).
A white or black image composed of (bit) (FIL
L_NO) -1 step of transferring to the output image area.

【0028】ステップA12、13は、伸張終了位置、
1画面終了を判定するステップであり、主走査方向に切
り出された1画面分の変化点データ列をもとに指定され
た矩形領域のイメージを切り出すまでラスタ走査方向に
順次処理を実行するための終了判定である。
Steps A12 and A13 are the end position of expansion,
This is a step of determining the end of one screen, and is for performing sequential processing in the raster scanning direction until the image of the specified rectangular area is cut out based on the change point data string for one screen cut out in the main scanning direction. This is the end judgment.

【0029】次に、第1実施形態におけるデータ伸張処
理方法の動作について、図3、図4、図5に示す具体例
を用いながら説明する。図3(c)に示す入力変化点デ
ータが入力データとなる。図3(c)の変化点座標列に
対応するイメージデータを、図3(a)に示している。
図3(d)は伸張開始座標(STX)/伸張終了座標
(ENX)により指定された領域に対応する変化点座標
列(部分指定後の変化点列データ(CPOS))であ
る。図3(d)に示す変化点列データ(CPOS)に対
応するイメージパターンを図3(b)に示している。ま
た、ステップA3で求めた変化点のバイトレングス(B
YTELEN)を図3(e)、部分指定後の変化点デー
タ(CPOS)を所定の値(ここでは8)で除算した余
り(端数)を図3(f)に示している。
Next, the operation of the data decompression processing method according to the first embodiment will be described with reference to the specific examples shown in FIGS. 3, 4 and 5. The input change point data shown in FIG. 3C becomes the input data. Image data corresponding to the change point coordinate sequence of FIG. 3C is shown in FIG.
FIG. 3D shows a change point coordinate sequence (change point sequence data after partial designation (CPOS)) corresponding to the area designated by the extension start coordinates (STX) / extension end coordinates (ENX). An image pattern corresponding to the change point sequence data (CPOS) shown in FIG. 3D is shown in FIG. Also, the bit length (B) of the change point obtained in step A3
FIG. 3E shows YTELEN), and FIG. 3F shows the remainder (fraction) obtained by dividing the change point data (CPOS) after partial designation by a predetermined value (here, 8).

【0030】図4は、ステップA8,A9においてイメ
ージパターンを生成する際に、端数(BITPAT_N
O)によりアクセスされるビットパターン(本実施形態
では8ビットのイメージパターン)が格納されたメッセ
ージ変換テーブルを示している。本実施形態では、黒変
化点用と白変化点用の2つのイメージ変換テーブルが用
意されている。
FIG. 4 shows a fraction (BITPAT_N) when the image pattern is generated in steps A8 and A9.
The message conversion table stores the bit pattern (8-bit image pattern in this embodiment) accessed by O). In this embodiment, two image conversion tables for a black change point and a white change point are prepared.

【0031】図5には図3(c)に示す入力変化点列デ
ータ(CPOSB)をイメージデータに変換していく過
程を示している。まず、元のイメージにおける切り出し
対象とする矩形領域の主走査方向に対する伸張開始座標
(STX)及び伸張終了座標(ENX)を設定する。
FIG. 5 shows a process of converting the input change point sequence data (CPOSB) shown in FIG. 3C into image data. First, the expansion start coordinates (STX) and the expansion end coordinates (ENX) in the main scanning direction of the rectangular area to be cut out in the original image are set.

【0032】次に、直前の変化点演算結果の初期化を行
なった後(ステップA2)、ラスタ方向に順次読み出さ
れる図3(c)に示す入力変化点データ(CPOSB)
から、伸張開始座標(STX)及び伸張終了座標(EN
X)に基づいて、部分伸張処理の対象とする伸張開始・
終了位置を検出する(ステップA3)。すなわち、入力
変化点データ(CPOSB)の変化点座標と伸張開始座
標(STX)とを比較し、変化点座標が伸張開始座標
(STX)以下の場合は、伸張処理の対象外として読み
捨てる。そして、CPOSB>STXとなる変化点座標
をイメージデータに変換すべき変化点座標とする。ま
た、伸張終了座標(ENX)+1の座標を伸張処理の対
象とする変化点座標の終端とし、伸張終了座標(EN
X)+1を越える変化点座標に対して処理をしないもの
とする。
Next, after the immediately preceding change point calculation result is initialized (step A2), the input change point data (CPOSB) shown in FIG. 3C are sequentially read in the raster direction.
From the extension start coordinate (STX) and extension end coordinate (EN
Based on X), the start of decompression targeted for partial decompression processing
The end position is detected (step A3). That is, the change point coordinates of the input change point data (CPOSB) are compared with the decompression start coordinates (STX). If the change point coordinates are less than or equal to the decompression start coordinates (STX), they are discarded as non-expansion targets. Then, the change point coordinates satisfying CPOSB> STX are set as the change point coordinates to be converted into image data. Further, the extension end coordinate (ENX) +1 coordinate is set as the end of the change point coordinate to be subjected to the extension processing, and the extension end coordinate (EN
X) +1 change point coordinates are not processed.

【0033】ここで、入力変化点データ(CPOSB)
の変化点座標から伸張開始座標(STX)を減算した値
を、部分指定後の変化点データ(CPOS)の変化点座
標とする。これにより、図3(d)に示すような、現在
対象としているラインの伸張処理される部分指定後の変
化点データ(CPOS)が得られる。
Input change point data (CPOSB)
The value obtained by subtracting the expansion start coordinate (STX) from the change point coordinate of is set as the change point coordinate of the change point data (CPOS) after the partial designation. As a result, the change point data (CPOS) after designation of the part to be expanded of the currently targeted line as shown in FIG. 3D is obtained.

【0034】次に、直前の演算結果を(BYTELEN
_OLD)に保存し、変化点データ(CPOS)の変化
点座標を所定の値で除算した商(バイトレングス(BY
TELEN))と余り(BITPAT_NO)を求める
(ステップA4)。本実施形態では、所定の値を8と
し、変化点座標のバイトレングス(BYTELEN)と
その余り(BITPAT_NO)を求めている。すなわ
ち、(POSHIFT)=3として入力変化点データ
(CPOS)をシフトして商をもとめ、また(POSM
ASK)=7として入力変化点データ(CPOS)に対
する論理積によって余りを求めている。
Next, the immediately preceding calculation result is calculated as (BYTELEN
_OLD) and divides the change point coordinates of the change point data (CPOS) by a predetermined value (byte length (BY
TELEN)) and the remainder (BITPAT_NO) are calculated (step A4). In the present embodiment, the predetermined value is set to 8 and the byte length (BYTELEN) and the remainder (BITPAT_NO) of the change point coordinates are calculated. That is, with (POSSHIFT) = 3, the input change point data (CPOS) is shifted to obtain the quotient, and (POSMFT)
ASK) = 7 and the remainder is obtained by the logical product of the input change point data (CPOS).

【0035】次に、ステップA4で求めた変化点座標の
バイトレングス(BYTELEN)と直前の値(BYT
ELEN_OLD)との差を求め、これを(FILL_
NO)とする(ステップA5)。
Next, the byte length (BYTELEN) of the change point coordinates obtained in step A4 and the immediately preceding value (BYT).
ELEN_OLD) and calculate this as (FILL_OLD)
NO) (step A5).

【0036】ここで、(FILL_NO)が0であった
場合(ステップA6)、ステップA7に移行する。ステ
ップA7ではカレント変化点の色が黒か否かを判定す
る。カレント変化点の色が黒である場合、前の端数部の
イメージパターン(BITPAT_REG)と、図4
(1)に示す黒用のイメージ変換テーブルから得られる
イメージパターンとをOR演算することによって、(B
ITPAT_REG)を生成する(ステップA8)。
If (FILL_NO) is 0 (step A6), the process proceeds to step A7. In step A7, it is determined whether or not the color of the current change point is black. When the color of the current change point is black, the image pattern (BITPAT_REG) of the previous fractional part and FIG.
By ORing the image pattern obtained from the image conversion table for black shown in (1), (B
ITPAT_REG) is generated (step A8).

【0037】また、カレント変化点の色が白である場
合、前の端数部のイメージパターン(BITPAT_R
EG)と、図4(2)に示す白用のイメージ変換テーブ
ルから得られるイメージパターンとをAND演算するこ
とによって、(BITPAT_REG)を生成する(ス
テップA9)。
When the color of the current change point is white, the image pattern (BITPAT_R) of the previous fractional part is displayed.
EG) and the image pattern obtained from the image conversion table for white shown in FIG. 4B are ANDed to generate (BITPAT_REG) (step A9).

【0038】なお、本実施形態では、端数(BITPA
T_NO)によりアクセスされるイメージ変換用テーブ
ルに白変化点用と黒変化点用を設けているが、2つのテ
ーブルは互いにビット反転により求められるため必ずし
も2つ必要ではない。すなわち、一方のテーブルから得
られるイメージパターンを反転して用いることで、他方
のテーブルに代用する。また、本実施形態では、8ビッ
トのイメージパターンを格納するテーブルであるが、出
力イメージ領域に展開する単位によっては、16ビット
/32ビット等のテーブル構成とする。イメージ変換テ
ーブルに格納されるイメージパターンは、例えば黒用と
すると、端数(BITPAT_NO)が示す数の連続し
た白画素の後、残りの画素分の黒画素が連続するパター
ンである。
In this embodiment, the fraction (BITPA
The image conversion table accessed by (T_NO) is provided with a white change point and a black change point, but two tables are not necessarily required because they are obtained by bit inversion. That is, the image pattern obtained from one of the tables is inverted and used to substitute for the other table. Further, in the present embodiment, the table stores an 8-bit image pattern, but a table configuration of 16 bits / 32 bits or the like is used depending on the unit of expansion in the output image area. The image pattern stored in the image conversion table is, for example, for black, and is a pattern in which after the number of continuous white pixels indicated by the fraction (BITPAT_NO), the black pixels of the remaining pixels are continuous.

【0039】一方、ステップA6において、ステップA
5で求めた(FILL_NO)が1以上であると判定し
た場合、ステップA8、A9で生成した端数部のイメー
ジパターン(BITPAT_REG)を、変化点データ
をもとに生成された最終的なイメージパターンとして出
力イメージ領域に転送する(ステップA10)。また、
(BITPAT_REG)を、次の変化点データに対す
る処理(ステップA8,A9)のために、ステップA4
で求めた(BITPAT_NO)に対応するイメージ変
換テーブルから得られたイメージパターンで初期化す
る。
On the other hand, in step A6, step A
When it is determined that (FILL_NO) obtained in 5 is 1 or more, the fractional image pattern (BITPAT_REG) generated in steps A8 and A9 is used as the final image pattern generated based on the change point data. Transfer to the output image area (step A10). Also,
(BITPAT_REG) is processed in step A4 for processing (steps A8 and A9) for the next change point data.
The image pattern is initialized with the image pattern obtained from the image conversion table corresponding to (BITPAT_NO) obtained in step 1.

【0040】そして、8ビットで構成される白または黒
のイメージを(FILL_NO)−1回分出力イメージ
領域に転送する。すなわち、(FILL_NO)が2以
上である場合には、白または黒の同じ色が連続して1バ
イト以上連続することを示すので、必要なバイト数の白
または黒のデータを連続して出力する。
Then, the 8-bit white or black image is transferred to the output image area for (FILL_NO) -1 times. That is, if (FILL_NO) is 2 or more, it indicates that the same color of white or black is continuous for 1 byte or more, so that the required number of bytes of white or black data is continuously output. .

【0041】ここで、ライン終端に達していなければ、
ステップA3の処理に戻り、対象ラインの部分指定後の
変化点データ(CPOS)の残りの部分に対して処理を
繰り返す。また、ライン終端に達し、1画面分の処理が
終了していなければ、ステップA2の初期化処理にもど
り、残りのラインの入力変化点データに対する処理を行
なう。全てのラインについての処理が完了したら処理を
終了する。
If the line end has not been reached,
Returning to the process of step A3, the process is repeated for the remaining part of the change point data (CPOS) after the partial designation of the target line. If the end of the line has been reached and the processing for one screen has not been completed, the process returns to the initialization processing in step A2 and the processing is performed on the input change point data of the remaining lines. When the processing for all lines is completed, the processing ends.

【0042】図5に示す例では、まず、(FILL_N
O)が1以上となるまで端数部の演算を行う。この例で
は入力変化点データ(CPOS)が5から7までの間、
図3(e)に示すように、バイトレングス(BYTEL
EN)が0なので、端数部についての演算を行なうこと
になる。
In the example shown in FIG. 5, first, (FILL_N
The calculation of the fractional part is performed until O) becomes 1 or more. In this example, the input change point data (CPOS) is between 5 and 7,
As shown in FIG. 3E, the byte length (BYTEL
Since EN) is 0, the operation for the fractional part is performed.

【0043】入力変化点データ(CPOS)=5の時、
端数(BITPAT_NO)が5(黒画素への変化点)
であるので、端数部のイメージパターン(BITPAT
_REG)を、(BITPAT_NO)=5に対応する
黒用のイメージ変換テーブル値(0x07)、すなわち
図5に示すCPOSに対応するBITPAT(BITP
AT_NO)で初期化する。
When the input change point data (CPOS) = 5,
Fraction (BITPAT_NO) is 5 (change point to black pixel)
Therefore, the image pattern of the fractional part (BITPAT
_REG) is the image conversion table value for black (0x07) corresponding to (BITPAT_NO) = 5, that is, BIPTAT (BITP corresponding to CPOS shown in FIG.
AT_NO).

【0044】入力変化点データ(CPOS)=6の時、
端数(BITPAT_NO)が6であり、白画素への変
化点であるので、白用のイメージ変換テーブルから得ら
れる(BITPAT_NO)=6のテーブル値(0xf
c)と、前の端数部のイメージパターン(BITPAT
_REG)とANDをとることで(BITPAT_RE
G)を求める(ステップA9)。
When the input change point data (CPOS) = 6,
Since the fraction (BITPAT_NO) is 6, which is the change point to the white pixel, the table value (0xf) of (BITPAT_NO) = 6 obtained from the image conversion table for white.
c) and the image pattern of the previous fractional part (BITPAT
AND with (_REG) (BITPAT_RE
G) is obtained (step A9).

【0045】CPOS=7の時、変化点の色が黒である
ため、黒用のイメージ変換テーブルから得られる(BI
TPAT_NO)=7に対応するイメージパターンと、
前の端数部のイメージパターン(BITPAT_RE
G)とORをとることで(BITPAT_REG)を求
める(ステップA8)。
When CPOS = 7, since the color of the changing point is black, it is obtained from the image conversion table for black (BI
An image pattern corresponding to TPAT_NO) = 7,
The image pattern of the previous fractional part (BITPAT_RE
(BITPAT_REG) is obtained by taking an OR with G) (step A8).

【0046】CPOS=9の時(白画素への変化点)、
バイトレングス(BYTELEN)=1となるので、ス
テップA5において(FILL_NO)=1が求められ
る。従って、直前で求めた(BITPAT_REG)の
値を出力イメージ領域に転送する。また、(BITPA
T_NO)=1から白用のイメージ変換テーブルを参照
し、(BITPAT_REG)に代入する(ステップA
10)。
When CPOS = 9 (change point to white pixel),
Since the byte length (BYTELEN) = 1, (FILL_NO) = 1 is obtained in step A5. Therefore, the value of (BITPAT_REG) obtained immediately before is transferred to the output image area. In addition, (BITPA
From T_NO) = 1, the image conversion table for white is referred to and substituted for (BITPAT_REG) (step A
10).

【0047】以下、CPOS=15まで同様に演算が可
能である。最終変化点のCPOS=24の時、前のバイ
トレングス(BYTELEN_OLD)=1であり、バ
イトレングス(BYTELEN)であるため(FILL
_NO)=2となる。このため、ステップA10におい
て直前の(BITPAT_REG)を出力した後、(F
ILL_NO)−1回分のバイトデータ、つまり1バイ
ト分の黒のイメージパターンを出力する。処理対象とす
る入力変化点データ(イメージパターン)によっては、
ここで白のイメージパターンを出力する。
Hereinafter, the same calculation can be performed up to CPOS = 15. When CPOS = 24 at the final change point, the previous byte length (BYTELEN_OLD) = 1 and the byte length (BYTELEN) (FILL).
_NO) = 2. Therefore, in step A10, after the immediately preceding (BITPAT_REG) is output,
ILL_NO) -1 byte data, that is, a 1-byte black image pattern is output. Depending on the input change point data (image pattern) to be processed,
Here, a white image pattern is output.

【0048】このようにして、1ライン分のイメージパ
ターンの主走査方向における白画素及び黒画素への変化
点座標情報列からなる入力変化点データ(CPOSB)
から、伸張開始座標(STX)及び伸張終了座標(EN
X)によって指定される指定領域についてのイメージデ
ータを生成することができる。
In this way, the input change point data (CPOSB) consisting of the change point coordinate information sequence for white pixels and black pixels in the main scanning direction of the image pattern for one line.
From the extension start coordinate (STX) and extension end coordinate (EN
The image data for the designated area designated by X) can be generated.

【0049】第1実施形態のイメージ伸張処理方法で
は、指定領域以外の変化点座標については、伸張処理の
対象としない(イメージデータに変換しない)ため、そ
の分、処理時間が短縮される。また、指定領域外のイメ
ージが生成されないため、余分な作業メモリを必要とし
ない。
In the image decompression processing method of the first embodiment, the change point coordinates other than the designated area are not subject to decompression processing (not converted into image data), so the processing time is shortened accordingly. Further, since an image outside the designated area is not generated, no extra working memory is required.

【0050】次に、本発明の第2実施形態に係わるデー
タ伸張処理方法について、図6に示すフローチャートを
参照しながら説明する。第2実施形態におけるイメージ
伸張処理方法は、MH符号化方式で圧縮されたイメージ
データに対して、圧縮データから矩形領域で指定された
部分のみを出力イメージ領域に展開する。
Next, a data decompression processing method according to the second embodiment of the present invention will be described with reference to the flowchart shown in FIG. The image expansion processing method according to the second embodiment expands only the portion specified by the rectangular area from the compressed data in the output image area for the image data compressed by the MH encoding method.

【0051】ステップB1は、初期化処理のステップで
あり、主走査/副走査方向の伸張開始座標(STX.S
TY)と終了座標(ENX.ENY)を設定する。ま
た、処理の対象とするラインを管理するための、処理ラ
インカウンタのカウント値LCNTを初期化する。ただ
し、STX=主走査伸張開始座標、STY=副走査伸張
開始座標、ENX=主走査伸張終了座標、ENY=副走
査伸張終了座標とする。
Step B1 is a step of the initialization process, which is the extension start coordinate (STX.S) in the main scanning / sub scanning direction.
TY) and end coordinates (ENX.ENY). Also, the count value LCNT of the processing line counter for managing the line to be processed is initialized. However, STX = main scanning extension start coordinate, STY = sub scanning extension start coordinate, ENX = main scanning extension end coordinate, and ENY = sub scanning extension end coordinate.

【0052】ステップB2は、MH符号化方式による圧
縮コードの中からEOL(End Of Line )コードを検出
するステップである。ステップB3は、現在、処理対象
とすべきラインが、伸張処理領域内にあるか否かを判定
するステップであり、処理ラインカウンタのカウント値
LCNTが設定された伸張開始位置以上であるか否かに
よって判定する。
Step B2 is a step of detecting an EOL (End Of Line) code from the compressed code by the MH coding method. Step B3 is a step of determining whether or not the line to be processed at present is within the expansion processing area, and whether or not the count value LCNT of the processing line counter is equal to or greater than the set expansion start position. Judge by

【0053】ステップB4は、処理対象とすべきライン
が、ステップB3により伸張処理領域内にあると判定さ
れた時に、その1ライン分の符号データ(圧縮データ)
を白画素または黒画素への変化点座標列(変化点デー
タ)、すなわち変化点テーブルに変換するステップであ
る。
Step B4 is one line of coded data (compressed data) when the line to be processed is determined to be within the expansion processing area in step B3.
Is a step of converting a change point coordinate sequence (change point data) into white pixels or black pixels, that is, a change point table.

【0054】ステップB5は、ステップB4で得られた
変化点座標列に対し、前述した第1実施形態における主
走査方向への部分伸張処理を行なうステップであり、こ
こでイメージ出力領域に対して部分伸張結果が出力され
る。
Step B5 is a step of performing a partial expansion process in the main scanning direction in the above-described first embodiment on the change point coordinate sequence obtained in step B4, in which the image output area is partially expanded. The decompression result is output.

【0055】ステップB6は、処理ラインカウンタのカ
ウント値LCNTを+1インクリメントするステップで
ある。ステップB7は、処理ラインカウント値が伸張終
了ラインに到達した時、処理を終了するステップであ
る。
Step B6 is a step of incrementing the count value LCNT of the processing line counter by +1. Step B7 is a step of ending the processing when the processing line count value reaches the extension end line.

【0056】次に、第2実施形態におけるデータ伸張処
理方法の動作について、具体例を示して説明する。図7
は、MH符号化された1ページ分の圧縮データ(コード
データ列)を示すものであり、図7中のEOLは、各ラ
インのラインエンドを示す符号語である。ただし、この
符号語EOLは、1ページの最初のデータラインの前に
も付加される。
Next, the operation of the data decompression processing method according to the second embodiment will be described by showing a specific example. Figure 7
Indicates the MH-encoded compressed data (code data string) for one page, and EOL in FIG. 7 is a code word indicating the line end of each line. However, this code word EOL is also added before the first data line of one page.

【0057】DATAは、1ライン分のコードデータを
示すものであり、DATA1が1ライン目のコードデー
タとなり、図では1ページNラインの圧縮データである
ことを示している。
DATA indicates code data for one line, DATA1 is code data for the first line, and in the figure, indicates that it is N page compressed data.

【0058】まず、初期化処理として、例えば100ド
ット×100ラインのイメージの圧縮データに対して、
伸張処理の対象とする矩形領域を示す伸張開始座標(S
TX.STY)を(X.Y)=(10.1)とし、伸張
終了座標(ENX.ENY)を(X.Y)=(50.5
0)として設定されたものとする(ステップB1)。な
お、イメージの左上座標を原点(X.Y)=(0.0)
としている。
First, as initialization processing, for example, compressed data of an image of 100 dots × 100 lines
Decompression start coordinates (S
TX. STY) is set to (X.Y) = (10.1), and decompression end coordinates (ENX.ENY) is set to (X.Y) = (50.5).
0) is set (step B1). The upper left coordinate of the image is the origin (X.Y) = (0.0)
And

【0059】次に、圧縮データの中からEOLコードを
検出する(ステップB2)。ここでは、処理ラインカウ
ンタのカウント値LCNTが0であり、副走査伸張開始
座標STYの値が1であるため、現在、処理対象として
いるラインが伸張処理領域外であるものとして、1ライ
ン目の符号データ(DATA1)を読み飛ばす(ステッ
プB2,B3)。そして、処理ラインカウンタのカウン
ト値LCNTを+1インクリメントして、次のEOLコ
ードの検出処理に戻る(ステップB6,B7)。
Next, the EOL code is detected from the compressed data (step B2). Here, since the count value LCNT of the processing line counter is 0 and the value of the sub-scanning expansion start coordinate STY is 1, it is assumed that the line currently being processed is outside the expansion processing region and the first line The code data (DATA1) is skipped (steps B2 and B3). Then, the count value LCNT of the processing line counter is incremented by +1 and the process returns to the next EOL code detection process (steps B6 and B7).

【0060】次に、EOLコードを検出した時、副走査
方向の伸張開始座標STYの値が1であり、処理ライン
カウンタのカウント値LCNTが1となっているため、
処理対象としている2ライン目が伸張処理対象内にある
ものとして、2ライン目以降の符号データ(DATA
2,DATA3,…)を、白画素または黒画素への変化
点座標列(変化点データ)に変換する(ステップB
4)。MH符号化方式による圧縮コード(コードデー
タ)は、1次元符号であり、黒ランと白ランとが所定の
コードによって表わされているため、そのコードに応じ
て白画素または黒画素への変化点座標列に変換する。
Next, when the EOL code is detected, the value of the expansion start coordinate STY in the sub-scanning direction is 1, and the count value LCNT of the processing line counter is 1, so that
Assuming that the second line to be processed is within the decompression processing target, the code data (DATA
2, DATA3, ...) is converted into a sequence of change point coordinates (change point data) into white pixels or black pixels (step B).
4). The compressed code (code data) according to the MH coding method is a one-dimensional code, and black run and white run are represented by a predetermined code, and therefore, change to a white pixel or a black pixel according to the code. Convert to a point coordinate sequence.

【0061】次に、ステップB4において生成された1
ライン分の変化点データ中の指定された伸張処理領域分
(X方向座標値10から50まで)に含まれる変化点座
標列をもとに、第1実施形態において説明したイメージ
伸張処理方法によってイメージパターンを生成し、出力
イメージ領域に伸張イメージデータとして出力する(ス
テップB5)。
Next, 1 generated in step B4
The image is expanded by the image expansion processing method described in the first embodiment based on the change point coordinate sequence included in the specified expansion processing area (X-direction coordinate values 10 to 50) in the change point data for the line. A pattern is generated and output as decompressed image data in the output image area (step B5).

【0062】以上、処理ラインカウンタのカウント値L
CNTが伸張終了ライン座標(Y=50)に到達するま
で処理を繰り返し、伸張終了位置に到達した後の圧縮デ
ータに対する処理を行なわない。これにより、圧縮デー
タから指定された矩形領域内おけるイメージのみを生成
する(伸張)することができる。
As described above, the count value L of the processing line counter
The process is repeated until the CNT reaches the decompression end line coordinate (Y = 50), and the process for the compressed data after reaching the decompression end position is not performed. As a result, it is possible to generate (decompress) only the image in the specified rectangular area from the compressed data.

【0063】このようにして、伸張処理領域内に含まれ
る最初のライン、すなわち伸張開始ラインまでの圧縮デ
ータに対しては、EOLコードを検出する処理のみを行
なうだけで良く、また伸張終了ライン以降の圧縮データ
に対しては全く処理をしないため、その分、処理時間が
短縮される。
In this way, for the first line included in the decompression processing area, that is, for the compressed data up to the decompression start line, only the processing for detecting the EOL code is required, and after the decompression end line. Since no processing is performed on the compressed data of, the processing time is shortened accordingly.

【0064】しかも、指定された矩形領域外のイメージ
を生成しないため、伸張処理に要する時間を短縮すると
共に、余分な作業メモリを必要としない。次に、本発明
の第3実施形態に係わるデータ伸張処理方法について、
図8に示すフローチャートを参照しながら説明する。第
3実施形態におけるデータ伸張処理方法は、図9に示す
ようなMMR符号化方式で圧縮されたイメージデータに
対して、圧縮データから矩形領域で指定された部分のみ
を出力イメージ領域に展開する。
Moreover, since the image outside the designated rectangular area is not generated, the time required for the decompression process is shortened and no extra working memory is required. Next, regarding the data expansion processing method according to the third embodiment of the present invention,
This will be described with reference to the flowchart shown in FIG. In the data decompression processing method according to the third embodiment, with respect to the image data compressed by the MMR encoding method as shown in FIG. 9, only the portion designated by the rectangular area from the compressed data is expanded in the output image area.

【0065】ステップC1は、初期化処理のステップで
あり、主走査/副走査方向の伸張開始座標(STX.S
TY)と終了座標(ENX.ENY)を設定する。ま
た、処理ラインカウンタのカウント値LCNTを初期化
する。ただし、STX=主走査伸張開始座標、STY=
副走査伸張開始座標、ENX=主走査伸張終了座標、E
NY=副走査伸張終了座標とする。
Step C1 is a step of the initialization process, which is the extension start coordinate (STX.S) in the main scanning / sub scanning direction.
TY) and end coordinates (ENX.ENY). Also, the count value LCNT of the processing line counter is initialized. However, STX = main scanning extension start coordinate, STY =
Sub-scan decompression start coordinates, ENX = main-scan decompression end coordinates, E
NY = subscanning decompression end coordinate.

【0066】ステップC2は、圧縮データが格納される
エリアから2次元符号データであるMMR符号を順次読
み出し、この符号データから1ライン分の白画素および
黒画素への変化点座標列(変化点データ)、すなわち変
化点テーブルを生成するステップである。また、第3実
施形態では、2次元符号化データを伸張する際に、前ラ
インの変化点座標情報を元に、カレントラインの変化点
座標を生成する方式とする。
In step C2, an MMR code, which is two-dimensional code data, is sequentially read from the area where the compressed data is stored, and a line of change point coordinates (change point data) from this code data to white pixels and black pixels for one line. ), That is, a step of generating a change point table. Further, in the third embodiment, when decompressing the two-dimensional encoded data, the change point coordinates of the current line are generated based on the change point coordinate information of the previous line.

【0067】ステップC3は、これから処理する対象ラ
インが、伸張処理領域内にあるか否かを判定するステッ
プであり、処理ラインカウント値が設定された伸張開始
位置以上であるかによって判定する。
Step C3 is a step of determining whether or not the target line to be processed is in the expansion processing area, and it is determined whether the processing line count value is equal to or greater than the set expansion start position.

【0068】ステップC4は、ステップC2で得られた
変化点座標情報に対し、第1実施形態におけるイメージ
伸張処理方法の主走査方向の部分伸張処理を行なうステ
ップであり、ここでイメージ出力領域に対して部分伸張
処理結果が出力される。
Step C4 is a step of performing partial expansion processing in the main scanning direction of the image expansion processing method in the first embodiment on the change point coordinate information obtained in step C2. Here, for the image output area. The result of partial decompression processing is output.

【0069】ステップC5は、処理ラインカウンタのカ
ウント値LCNTを+1インクリメントするステップで
ある。ステップC6は、処理ラインカウント値LCNT
が伸張終了ラインに到達した時、処理を終了するステッ
プである。
Step C5 is a step of incrementing the count value LCNT of the processing line counter by +1. Step C6 is the processing line count value LCNT.
Is a step of ending the processing when reaches the decompression end line.

【0070】なお、主走査方向における部分伸張の具体
例については、第1実施形態または第2実施形態と同様
にして行なうものとして詳細な説明を省略する。第3実
施形態における、第2実施形態との違いは、図9に示す
ように、処理対象とする圧縮データが2次元符号化コー
ドであるMMR符号を対象としているため、EOLコー
ドのようなラインエンドを示すコードが含まれない点で
ある。
A specific example of partial expansion in the main scanning direction is performed in the same manner as in the first or second embodiment, and detailed description thereof will be omitted. The difference between the third embodiment and the second embodiment is that, as shown in FIG. 9, since the compressed data to be processed is the MMR code which is a two-dimensional code, the line like the EOL code is used. The point is that the code indicating the end is not included.

【0071】第3実施形態では、ステップC2におい
て、1ライン目から圧縮データを変化点座標情報に変換
し、ステップC3において、変化点座標情報からライン
数をカウントしている。なお、図9中に示す、EOFB
符号は、ファクシミリブロック終端符号であり、1ペー
ジの終了を示す符号語である。
In the third embodiment, in step C2, the compressed data from the first line is converted into change point coordinate information, and in step C3, the number of lines is counted from the change point coordinate information. In addition, EOFB shown in FIG.
The code is a facsimile block termination code and is a code word indicating the end of one page.

【0072】ステップC2において生成された変化点座
標情報は、指定された伸張処理領域内に入るまでは、次
ラインの変化点座標を生成するためにだけ使用され、イ
メージへの伸張は行なわない。すなわち、MMR符号化
方式では、主走査方向に対する白画素または黒画素への
変化点座標と、次ラインの白画素または黒画素への変化
点座標との相対的位置に基づいて符号化されているの
で、イメージへの伸張を行なわずコードに応じて直接、
次ラインの変化点座標を生成することができる。
The change point coordinate information generated in step C2 is used only to generate the change point coordinates of the next line until it enters the designated expansion processing area, and the image is not expanded. That is, in the MMR encoding method, the encoding is performed based on the relative position of the change point coordinate to the white pixel or the black pixel in the main scanning direction and the change point coordinate to the white pixel or the black pixel on the next line. So, according to the code directly without decompressing the image,
The change point coordinates of the next line can be generated.

【0073】このようにして、伸張開始ラインまでの圧
縮データに対しては変化点座標情報を生成するだけでよ
く、また伸張終了ライン以降の圧縮イメージに対して全
く処理をしないため、その分、処理時間が短縮される。
In this way, the change point coordinate information only needs to be generated for the compressed data up to the decompression start line, and the compressed image after the decompression end line is not processed at all. Processing time is reduced.

【0074】しかも、指定された矩形領域外のイメージ
を生成しないため、伸張処理に要する時間を短縮すると
共に、余分な作業メモリを必要としない。次に、本発明
の第4実施形態に係わるデータ伸張処理方法について、
図10に示すフローチャートを参照しながら説明する。
第4実施形態におけるデータ伸張処理方法は、図11に
示すようなMR符号化方式で圧縮されたイメージデータ
に対して、圧縮データから矩形領域で指定された部分の
みを出力イメージ領域に展開する。
Moreover, since the image outside the designated rectangular area is not generated, the time required for the decompression processing is shortened and no extra working memory is required. Next, regarding the data decompression processing method according to the fourth embodiment of the present invention,
This will be described with reference to the flowchart shown in FIG.
In the data decompression processing method according to the fourth embodiment, with respect to the image data compressed by the MR encoding method as shown in FIG. 11, only the portion designated by the rectangular area from the compressed data is expanded in the output image area.

【0075】図11は、MR符号化方式により圧縮され
たイメージの1ページ分の圧縮データを示している。図
11中EOLは、各ラインのラインエンドを示す符号語
であり、全ての符号化されたラインの最後に付加され
る。また、EOL符号の後には、次のラインには1次元
符号化方式あるいは2次元符号化方式のどちらの方式に
より圧縮されたコードが使用されるかを示す付加ビット
(Tag)が続く。なお、Tag=1の時、次のラインは1
次元符号化であり、Tag=0の時、次のラインは2次元
符号化であることを示す。ただし、EOL+Tagの符号
語は1ページの最初のデータラインの前にも付加され
る。
FIG. 11 shows compressed data for one page of an image compressed by the MR coding method. In FIG. 11, EOL is a code word indicating the line end of each line, and is added to the end of all encoded lines. Further, after the EOL code, an additional bit (Tag) indicating whether the code compressed by the one-dimensional coding method or the two-dimensional coding method is used in the next line. When Tag = 1, the next line is 1.
Dimensional coding, and when Tag = 0, the next line indicates two-dimensional coding. However, the code word of EOL + Tag is also added before the first data line of one page.

【0076】ステップD1は、初期化処理のステップで
あり、主走査/副走査方向の伸張開始座標(STX.S
TY)と終了座標(ENX.ENY)を設定する。ま
た、処理ラインカウンタLCNTの初期化を行なう。た
だし、STX=主走査伸張開始座標、STY=副走査伸
張開始座標、ENX=主走査伸張終了座標、ENY=副
走査伸張終了座標とする。
Step D1 is a step of the initialization process, which is the extension start coordinates (STX.S) in the main scanning / sub scanning direction.
TY) and end coordinates (ENX.ENY). Also, the processing line counter LCNT is initialized. However, STX = main scanning extension start coordinate, STY = sub scanning extension start coordinate, ENX = main scanning extension end coordinate, and ENY = sub scanning extension end coordinate.

【0077】ステップD2は、圧縮データが格納される
エリアからコードデータを順次読み出し、次に続くコー
ドが1次元符号か2次元符号かを判定するステップであ
る。第4実施形態ではEOL符号に続く付加ビット(T
ag)が1の時、1次元符号化とし、付加ビットが0の
時、2次元符号化と判定する。
Step D2 is a step of sequentially reading the code data from the area where the compressed data is stored and determining whether the code following the code is a one-dimensional code or a two-dimensional code. In the fourth embodiment, an additional bit (T
When ag) is 1, it is determined as one-dimensional encoding, and when the additional bit is 0, it is determined as two-dimensional encoding.

【0078】ステップD3は、ステップD2の判定結果
が2次元符号化コードの場合、実行されるステップであ
り、コードから1ライン分の白画素および黒画素への変
化点座標列(変化点テーブル)を生成する。また、第4
実施形態では、2次元符号化コードを伸張する際に、前
ラインの変化点座標情報を元に、カレントラインの変化
点座標を生成する方式とする。
Step D3 is a step that is executed when the result of determination in step D2 is a two-dimensional code, and a change point coordinate string (change point table) from the code to one line of white pixels and black pixels. To generate. Also, the fourth
In the embodiment, when decompressing the two-dimensional code, the change point coordinates of the current line are generated based on the change point coordinate information of the previous line.

【0079】ステップD4は、ステップD2の判定結果
が1次元符号化コードの場合、実行されるステップであ
り、処理ラインカウンタ値LCNTが、設定された伸張
開始ライン座標(STY)−1以上となるか否かを判定
する。
Step D4 is a step that is executed when the result of determination in step D2 is a one-dimensional code, and the processing line counter value LCNT is greater than or equal to the set decompression start line coordinate (STY) -1. Or not.

【0080】ステップD5は、ステップD4の判定結果
により、圧縮データから1ライン分の白画素および黒画
素への変化点座標列(変化点テーブル)を生成するステ
ップである。指定された伸張処理領域外の場合は、コー
ドデータは読み飛ばされる。
Step D5 is a step of generating a change point coordinate string (change point table) from the compressed data to one line of white pixels and black pixels based on the determination result of step D4. If it is outside the specified expansion processing area, the code data is skipped.

【0081】ステップD6は、処理ラインカウンタのカ
ウント値LCNTが、設定された伸張開始ライン座標以
上となるか否かを判定するステップである。ステップD
7は、ステップD3またはステップD5で得られた変化
点座標情報列(変化点テーブル)に対し、第1実施形態
において説明した主走査方向の部分伸張処理を行なうス
テップであり、ここでイメージ出力領域に対して部分伸
張結果が出力される。
Step D6 is a step of determining whether or not the count value LCNT of the processing line counter is equal to or larger than the set expansion start line coordinates. Step D
Step 7 is a step of performing the partial expansion processing in the main scanning direction described in the first embodiment on the change point coordinate information sequence (change point table) obtained in step D3 or step D5. The partial decompression result is output for.

【0082】ステップD8は、処理ラインカウンタのカ
ウント値LCNTを+1インクリメントするステップで
ある。ステップD9は、処理ラインカウンタのカウント
値LCNTが伸張終了ラインに到達した時、処理を終了
するステップである。
Step D8 is a step of incrementing the count value LCNT of the processing line counter by +1. Step D9 is a step of ending the processing when the count value LCNT of the processing line counter reaches the extension end line.

【0083】次に、第4実施形態におけるデータ伸張処
理方法の動作について、図11に示す圧縮データを例に
して説明する。まず、初期化処理のステップであり、主
走査/副走査方向の伸張開始座標(STX.STY)と
終了座標(ENX.ENY)を設定した後、圧縮データ
のコードデータを読み出し、EOL符号に続く付加ビッ
ト(Tag)を参照して、次に続くコードが1次元符号か
2次元符号かを判定する(ステップD2)。
Next, the operation of the data decompression processing method according to the fourth embodiment will be described by taking the compressed data shown in FIG. 11 as an example. First, in the step of the initialization processing, after setting the expansion start coordinates (STX.STY) and the end coordinates (ENX.ENY) in the main scanning / sub scanning direction, the code data of the compressed data is read out and is followed by the EOL code. By referring to the additional bit (Tag), it is determined whether the code that follows is a one-dimensional code or a two-dimensional code (step D2).

【0084】2次元符号である場合には、MR符号化方
式に基づいて、前ラインの変化点座標情報を元に、現在
処理対象としているカレントラインの変化点座標を生成
する(ステップD3)。
In the case of a two-dimensional code, the change point coordinates of the current line currently being processed are generated based on the change point coordinate information of the previous line based on the MR coding method (step D3).

【0085】一方、1次元符号である場合には、処理ラ
インカウンタ値LCNTが、設定された伸張開始ライン
座標(STY)−1以上であれば、圧縮データから1ラ
イン分の白画素および黒画素への変化点座標列(変化点
テーブル)を生成する(ステップD5)。
On the other hand, in the case of a one-dimensional code, if the processing line counter value LCNT is greater than or equal to the set decompression start line coordinate (STY) −1, white and black pixels for one line from the compressed data A change point coordinate sequence (change point table) is generated (step D5).

【0086】つまり、伸張開始ライン座標位置から2次
元符号化データが始まる場合、2次元符号化データを変
化点座標情報に変換する際に前ラインの変化点座標情報
が必要になる。このために、第4実施形態では1次元符
号化コードと判定された場合、伸張開始ライン座標の1
ライン手前から変化点座標を生成するようにする。
That is, when the two-dimensional coded data starts from the decompression start line coordinate position, the change point coordinate information of the previous line is required when converting the two-dimensional coded data into the change point coordinate information. Therefore, in the fourth embodiment, when it is determined that the code is a one-dimensional code, the decompression start line coordinate is 1
Change point coordinates are generated before the line.

【0087】以下、第3実施形態と同様にして、処理ラ
インカウンタ値LCNTが伸張領域内を示す間に生成さ
れる変化点テーブルをもとに、第1実施形態と同様にし
て伸張処理を行なうことにより、MR符号化方式による
1次元と2次元のコードデータが混在する圧縮データか
ら、指定された矩形領域のみのイメージを生成して、イ
メージ出力領域に出力することができる。
In the same manner as in the third embodiment, the decompression processing is performed in the same manner as in the first embodiment based on the change point table generated while the processing line counter value LCNT indicates the inside of the decompression area. As a result, it is possible to generate an image of only the specified rectangular area from the compressed data in which the one-dimensional code data and the two-dimensional code data by the MR encoding method are mixed and output the image to the image output area.

【0088】このようにして、第4実施形態では、伸張
開始ラインまでの圧縮データに対しては、EOLコード
検出または変化点座標情報を生成するだけでよく、また
伸張終了ライン以降の圧縮イメージについては、全く処
理をしないため、その分、処理時間が短縮される。しか
も、指定された矩形領域外のイメージを生成しないた
め、伸張処理に要する時間を短縮すると共に、余分な作
業メモリを必要としない。
As described above, in the fourth embodiment, it is only necessary to detect the EOL code or generate the change point coordinate information for the compressed data up to the decompression start line, and the compressed image after the decompression end line. Does not perform any processing, the processing time is shortened accordingly. Moreover, since the image outside the designated rectangular area is not generated, the time required for the decompression processing is shortened and an extra working memory is not required.

【0089】[0089]

【発明の効果】以上詳述したように本発明によれば、1
ページ分の圧縮データに対して指定された矩形領域のみ
について伸張処理を実行することにより高速なイメージ
展開が可能となり、1ページ分の全体イメージを展開す
る必要がなくなり、小容量のメモリ構成でも大イメージ
の編集を行なうことができる。
As described above in detail, according to the present invention, 1
By decompressing only the specified rectangular area for the compressed data of one page, high-speed image expansion becomes possible, there is no need to expand the entire image of one page, and even if the memory configuration of small capacity is large. You can edit the image.

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

【図1】本発明の実施形態に係わるイメージ伸張処理方
法を実現するシステムの構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a system that realizes an image expansion processing method according to an embodiment of the present invention.

【図2】第1実施形態に係わるデータ伸張処理方法を説
明するためのフローチャート。
FIG. 2 is a flowchart for explaining a data expansion processing method according to the first embodiment.

【図3】第1実施形態におけるデータ伸張処理方法の動
作を説明するためのイメージ生成過程を示す図。
FIG. 3 is a diagram showing an image generation process for explaining the operation of the data expansion processing method according to the first embodiment.

【図4】第1実施形態におけるイメージ変換テーブルの
一例を示す図。
FIG. 4 is a diagram showing an example of an image conversion table in the first embodiment.

【図5】第1実施形態におけるイメージ伸張処理方法の
動作を説明するためのイメージ生成過程を示す図。
FIG. 5 is a diagram showing an image generation process for explaining the operation of the image expansion processing method according to the first embodiment.

【図6】第2実施形態に係わるデータ伸張処理方法を説
明するためのフローチャート。
FIG. 6 is a flowchart for explaining a data expansion processing method according to the second embodiment.

【図7】第2実施形態において処理対象とするMH符号
化された1ページ分の圧縮データを示す図。
FIG. 7 is a diagram showing MH-encoded compressed data for one page which is a processing target in the second embodiment.

【図8】第3実施形態に係わるデータ伸張処理方法を説
明するためのフローチャート。
FIG. 8 is a flowchart for explaining a data expansion processing method according to the third embodiment.

【図9】第3実施形態において処理対象とするMMR符
号化された1ページ分の圧縮データを示す図。
FIG. 9 is a diagram showing MMR-encoded compressed data for one page which is a processing target in the third embodiment.

【図10】第4実施形態に係わるデータ伸張処理方法を
説明するためのフローチャート。
FIG. 10 is a flowchart for explaining a data expansion processing method according to the fourth embodiment.

【図11】第4実施形態において処理対象とするMR符
号化された1ページ分の圧縮データを示す図。
FIG. 11 is a diagram showing MR-encoded compressed data for one page which is a processing target in the fourth embodiment.

【図12】従来のイメージ伸張処理を説明するための
図。
FIG. 12 is a diagram for explaining conventional image expansion processing.

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

10…CPU10 12…RAM 14…VRAM 16…ROM 18…入力装置 20…入力制御部 22…表示装置 24…表示制御部 26…記憶装置 28…記憶制御部 10 ... CPU 10 12 ... RAM 14 ... VRAM 16 ... ROM 18 ... Input device 20 ... Input control unit 22 ... Display device 24 ... Display control unit 26 ... Storage device 28 ... Storage control unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 イメージデータの主走査方向における白
画素及び黒画素への変化点座標列をもとにしたイメージ
伸張の対象とする、イメージデータ中の伸張開始座標及
び伸張終了座標を設定し、 ラスタ走査方向に順次読み出された変化点座標と伸張開
始座標との比較により、前記イメージデータ中の伸張す
べき範囲の先頭の変化点座標を検出し、 ラスタ走査方向に順次読み出された変化点座標と伸張終
了座標との比較により、前記イメージデータ中の伸張す
べき範囲の終端の変化点座標を検出し、 この検出した先頭の変化点座標から終端の変化点座標ま
での前記変化点座標列中の変化点座標に対し、所定の値
で除算した商と余り値を求め、 この求めた商と直前の変化点座標に対して求めた商との
差を求め、 求めた差の値が0の時に、所定の値に達しない変化点座
標列に対するイメージパターンを余り値に応じて求め、 求めた差の値が1以上の時に、所定の値に達しない変化
点座標列に対して求めたイメージパターンをイメージ伸
張後のイメージパターンとし、さらに求めた差に応じた
白画素または黒画素が連続するイメージパターンをイメ
ージ伸張後のイメージパターンとして出力することを特
徴とするイメージ伸張処理方法。
1. A decompression start coordinate and an decompression end coordinate in the image data, which are targets of the image decompression based on a coordinate sequence of change points to white pixels and black pixels in the main scanning direction of the image data, are set, The change point coordinates of the beginning of the range to be expanded in the image data are detected by comparing the change point coordinates sequentially read in the raster scan direction with the expansion start coordinates, and the change sequentially read in the raster scan direction. The change point coordinates at the end of the range to be expanded in the image data are detected by comparing the point coordinates with the expansion end coordinates, and the change point coordinates from the detected start change point coordinates to the end change point coordinates are detected. For the change point coordinates in the row, find the quotient and the remainder value divided by a predetermined value, find the difference between this quotient and the quotient found for the immediately preceding change point coordinates, and find the difference value When 0, the predetermined The image pattern for the change point coordinate sequence that does not reach is obtained according to the remainder value, and when the obtained difference value is 1 or more, the image pattern obtained for the change point coordinate sequence that does not reach the predetermined value is decompressed. And an image pattern in which white pixels or black pixels corresponding to the obtained difference are consecutively output as an image pattern after image expansion.
【請求項2】 イメージのライン区分を示すEOLコー
ドを含む1次元符号化方式により符号化された圧縮デー
タをもとにしたイメージ伸張の対象とする、イメージデ
ータ中の伸張開始座標及び伸張終了座標を設定し、 圧縮データからEOLコードを検出しながら、伸張開始
座標及び伸張終了座標に基づいて、コードデータに対応
するラインがイメージ伸張の対象であるか否かを判定
し、 イメージ伸張の対象とするラインであると判定した時
に、コードデータを白画素及び黒画素への変化点座標列
に変換し、 この変化点座標情報列に対し、所定の値で除算した商と
余り値を求め、 この求めた商と直前の変化点座標に対して求めた商との
差を求め、 求めた差の値が0の時に、所定の値に達しない変化点座
標列に対するイメージパターンを余り値に応じて求め、 求めた差の値が1以上の時に、所定の値に達しない変化
点座標列に対して求めたイメージパターンをイメージ伸
張後のイメージパターンとし、さらに求めた差に応じた
白画素または黒画素が連続するイメージパターンをイメ
ージ伸張後のイメージパターンとして出力することを特
徴とするイメージ伸張処理方法。
2. A decompression start coordinate and an decompression end coordinate in the image data, which are targets of image decompression based on compressed data encoded by a one-dimensional encoding method including an EOL code indicating a line segment of an image. Is set, while detecting the EOL code from the compressed data, it is determined whether the line corresponding to the code data is the target of image expansion based on the expansion start coordinate and the expansion end coordinate, and the target of image expansion is determined. When it is determined that the line is a line, the code data is converted into a change point coordinate sequence to white pixels and black pixels, and a quotient and a remainder value obtained by dividing the change point coordinate information sequence by a predetermined value are obtained. The difference between the obtained quotient and the quotient obtained for the immediately preceding change point coordinate is obtained, and when the obtained difference value is 0, the image pattern for the change point coordinate sequence that does not reach the predetermined value is left over. When the value of the calculated difference is 1 or more, the image pattern obtained for the change point coordinate sequence that does not reach the predetermined value is the image pattern after image expansion, and the white An image expansion processing method comprising outputting an image pattern in which pixels or black pixels are continuous as an image pattern after image expansion.
【請求項3】 2次元符号化方式により符号化された圧
縮データをもとにしたイメージ伸張の対象とする、イメ
ージデータ中の伸張開始座標及び伸張終了座標を設定
し、 圧縮データからコードデータを順次読み出して、白画素
及び黒画素への変化点座標列に変換し、 この変化点座標列に対応するイメージデータのライン
が、イメージ伸張の対象であるか否かを、伸張開始座標
及び伸張終了座標に基づいて判定し、 イメージ伸張の対象とするラインであると判定した時
に、変化点座標情報列に対し、所定の値で除算した商と
余り値を求め、 この求めた商と直前の変化点座標に対して求めた商との
差を求め、 求めた差の値が0の時に、所定の値に達しない変化点座
標列に対するイメージパターンを余り値に応じて求め、 求めた差の値が1以上の時に、所定の値に達しない変化
点座標列に対して求めたイメージパターンをイメージ伸
張後のイメージパターンとし、さらに求めた差に応じた
白画素または黒画素が連続するイメージパターンをイメ
ージ伸張後のイメージパターンとして出力することを特
徴とするイメージ伸張処理方法。
3. The decompression start coordinates and decompression end coordinates in the image data, which are the objects of image decompression based on the compressed data encoded by the two-dimensional encoding method, are set, and the code data is converted from the compressed data. It is sequentially read and converted into a change point coordinate sequence to white pixels and black pixels, and whether the line of the image data corresponding to this change point coordinate sequence is an object of image extension is determined by the extension start coordinate and extension end. When it is determined based on the coordinates and it is determined that the line is the target of image decompression, the quotient and the remainder value obtained by dividing the change point coordinate information sequence by a predetermined value are obtained, and the obtained quotient and the previous change The difference between the point coordinate and the calculated quotient is calculated. When the calculated difference is 0, the image pattern for the change point coordinate sequence that does not reach the specified value is calculated according to the remainder value, and the calculated difference value Is 1 or more Occasionally, the image pattern obtained for the change point coordinate sequence that does not reach the predetermined value is the image pattern after image expansion, and the image pattern in which white pixels or black pixels are continuous according to the obtained difference is An image expansion processing method characterized by outputting as an image pattern.
【請求項4】 1次元符号化方式により符号化された含
むコードデータと2次元符号化方式により符号化された
コードデータとが混在する、イメージのライン区分を示
すEOLコードとコード種別を示す付加情報とを含む圧
縮データをもとにしたイメージ伸張の対象とする、イメ
ージデータ中の伸張開始座標及び終了開始座標を設定
し、 圧縮データからEOLコードと付加情報を検出しなが
ら、付加情報をもとに注目ラインのコードデータが1次
元符号化方式あるいは2次元符号化方式の何れによるも
のかを判定し、 この判定結果より、注目ラインが1次元符号化方式によ
るコードデータの場合は、伸張開始座標−1から終了開
始座標までのコードデータに対応するラインをイメージ
伸張の対象と判定して、該当するコードデータから白画
素及び黒画素への変化点座標列を生成し、 判定結果より、注目ラインが2次元符号化方式によるコ
ードデータの場合は、伸張開始座標から終了開始座標ま
でのコードデータに対応するラインをイメージ伸張の対
象と判定して、該当するコードデータから白画素及び黒
画素への変化点座標列を生成し、 この生成された変化点座標情報列に対し、所定の値で除
算した商と余り値を求め、 この求めた商と直前の変化点座標に対して求めた商との
差を求め、 求めた差の値が0の時に、所定の値に達しない変化点座
標列に対するイメージパターンを余り値に応じて求め、 求めた差の値が1以上の時に、所定の値に達しない変化
点座標列に対して求めたイメージパターンをイメージ伸
張後のイメージパターンとし、さらに求めた差に応じた
白画素または黒画素が連続するイメージパターンをイメ
ージ伸張後のイメージパターンとして出力することを特
徴とするイメージ伸張処理方法。
4. An EOL code indicating a line segment of an image in which code data encoded by a one-dimensional encoding method and code data encoded by a two-dimensional encoding method are mixed, and an addition indicating a code type. The expansion start coordinates and end start coordinates in the image data, which are the targets of image expansion based on the compressed data including the information, are set, and the additional information is detected while detecting the EOL code and the additional information from the compressed data. It is determined whether the code data of the line of interest is based on the one-dimensional coding system or the two-dimensional coding system. From this determination result, if the line of interest is code data based on the one-dimensional coding system, decompression starts. The line corresponding to the code data from the coordinate -1 to the end start coordinate is determined as the target of image decompression, and the white pixel is extracted from the corresponding code data. If the line of interest is the code data by the two-dimensional encoding method from the judgment result, the line corresponding to the code data from the expansion start coordinate to the end start coordinate is image expanded. Of the corresponding code data to generate a change point coordinate sequence from white pixels to black pixels, and the generated change point coordinate information sequence is divided by a predetermined value to obtain a quotient and a remainder value. Then, the difference between the obtained quotient and the quotient obtained for the immediately preceding change point coordinates is obtained. When the obtained difference value is 0, the image pattern for the change point coordinate sequence that does not reach the predetermined value is used as the remainder value. When the value of the calculated difference is 1 or more, the image pattern obtained for the change point coordinate sequence that does not reach the predetermined value is the image pattern after image expansion, and the white Pixel or black An image expansion processing method, wherein an image pattern in which pixels are continuous is output as an image pattern after image expansion.
JP01603196A 1996-01-31 1996-01-31 Image expansion processing method Expired - Fee Related JP3795564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01603196A JP3795564B2 (en) 1996-01-31 1996-01-31 Image expansion processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01603196A JP3795564B2 (en) 1996-01-31 1996-01-31 Image expansion processing method

Publications (2)

Publication Number Publication Date
JPH09214777A true JPH09214777A (en) 1997-08-15
JP3795564B2 JP3795564B2 (en) 2006-07-12

Family

ID=11905209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01603196A Expired - Fee Related JP3795564B2 (en) 1996-01-31 1996-01-31 Image expansion processing method

Country Status (1)

Country Link
JP (1) JP3795564B2 (en)

Also Published As

Publication number Publication date
JP3795564B2 (en) 2006-07-12

Similar Documents

Publication Publication Date Title
JP2968582B2 (en) Method and apparatus for processing digital data
US7119807B2 (en) Image processing apparatus and image processing method
JPS5932029B2 (en) image resizer
US6011566A (en) System and method to display raster images with negligible delay time and reduced memory requirements
US20060233444A1 (en) JBIG coding apparatus and method with low cost, high-performance ping-pong buffer arrangement
JPH07322074A (en) Equipment and method for data processing to process 2 level image file that a dither ring happened
JPH04134570A (en) Reduced picture generator
US6341178B1 (en) Method and apparatus for lossless precompression of binary images
JPH04328956A (en) Picture data read method
JPH08180180A (en) Electronic filing device
US6658156B1 (en) Information processing apparatus and method
CN112118449A (en) Method and device for compressing and decompressing image
JP2003174564A (en) Image processor, image processing method, program and storage medium
JPH09214777A (en) Image expansion processing method
US6556715B1 (en) Method for CCITT compression of image data
US6674912B2 (en) Data compression processing method and apparatus
JPH05342340A (en) Method for picture processing and device therefor
JP3130721B2 (en) Binary image compression / expansion processing system and binary image extraction method
JPH06217110A (en) Image converting method
JP2897876B2 (en) Code data expansion processing method
JP2839578B2 (en) Image data input processing device
JPH0812691B2 (en) How to convert a compressed image to a decompressed gray level reduced image
JPS6051370A (en) Picture information encoding processor
JPH064658A (en) Method and device for processing image
KR900007566B1 (en) Picture data converting device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050215

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050418

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060310

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060411

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060413

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees