JPH07184067A - Binary image companding processing system and binary image segmentating method - Google Patents

Binary image companding processing system and binary image segmentating method

Info

Publication number
JPH07184067A
JPH07184067A JP5324457A JP32445793A JPH07184067A JP H07184067 A JPH07184067 A JP H07184067A JP 5324457 A JP5324457 A JP 5324457A JP 32445793 A JP32445793 A JP 32445793A JP H07184067 A JPH07184067 A JP H07184067A
Authority
JP
Japan
Prior art keywords
image
data
binary image
code
processing
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
JP5324457A
Other languages
Japanese (ja)
Other versions
JP3130721B2 (en
Inventor
Masayoshi Murayama
正佳 村山
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 JP05324457A priority Critical patent/JP3130721B2/en
Publication of JPH07184067A publication Critical patent/JPH07184067A/en
Application granted granted Critical
Publication of JP3130721B2 publication Critical patent/JP3130721B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To execute partial segmentation of an image at a high speed even from a binary image of a large size. CONSTITUTION:In order to generate a partial image by a binary image compander 20 provided with a decoding section 220 having a decoding circuit 222 decoding code data, a pointer 224 representing a decoded address, a register 228 instructing a color of a decoded code, a processing section 240 setting a run length of image data based on a change point detected from reference line image data and the decoding result of the code, a generating section 260 generating image data depending on the run length, reference line image data of each area obtained by dividing he binary image in horizontal and vertical directions, a run length in one dot before a succeeding changing picture element based on each divided position of an area, a coding start position corresponding to the changing picture element and color data of the image generated from the start position are registered in advance for each line at each divided position.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、大サイズの画像データ
から一部切出しを行なう2値画像圧縮伸張処理システム
及び2値画像切出し方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image compression / decompression processing system and a binary image clipping method for partially clipping large size image data.

【0002】[0002]

【従来の技術】大量の2値イメージを扱う2値画像圧縮
伸張処理システムでは、データ転送の高速化などのため
に2値イメージを符号化して扱う場合が多い。この種、
装置に用いられる代表的な符号化方式としては、MH
(Modified Huffman)方式、MR(Modified READ )方
式、MMR(Modified MR )方式がある。
2. Description of the Related Art In a binary image compression / expansion processing system which handles a large amount of binary images, binary images are often coded and handled in order to speed up data transfer. This species,
As a typical encoding method used in the device, MH
There are (Modified Huffman) system, MR (Modified READ) system, and MMR (Modified MR) system.

【0003】MR方式、MMR方式では、画像が水平、
垂直の両方向に強い相関をもつことに着目して、その冗
長性を除くことによりデータを圧縮する垂直モード符号
を基本としている。
In the MR system and the MMR system, the image is horizontal,
Focusing on the strong correlation in both vertical directions, it is based on the vertical mode code that compresses data by removing its redundancy.

【0004】垂直モードの符号を簡単に説明すると、1
枚の画像は、白黒ドットの列からなる走査線に分解さ
れ、符号化の処理は、走査線を左から右へ走査しながら
行なわれる。走査線は、上から下へ順に処理される。
The code of the vertical mode will be briefly described as follows.
The image of one sheet is decomposed into scanning lines composed of rows of black and white dots, and the encoding process is performed while scanning the scanning lines from left to right. The scan lines are processed from top to bottom.

【0005】符号化する走査線(符号化ライン)でドッ
トが白黒反転する位置(変化点)を、その直前の走査線
(参照ライン)上の対応する変化点を基準として、相対
ドット位置で表現するのが垂直モードの符号語である。
The position (change point) at which dots are inverted in black and white on the scanning line to be encoded (encoding line) is expressed as a relative dot position with reference to the corresponding changing point on the scanning line (reference line) immediately before it. This is the vertical mode code word.

【0006】垂直モードの符号は、次の3種類の変化点
を用いて定義される。 (1)a0点:直前の符号語でその位置を記述した変化
点。 (2)a1点:符号化ライン上でa0点の右にある最初
の変化点で、この位置が符号化される。 (3)b1点:参照ライン上でa0点よりも右にあり、
a1点と同じ方向(白から黒、または黒から白)へ変化
する変化点。
The code of the vertical mode is defined using the following three types of change points. (1) Point a0: a change point whose position is described by the immediately preceding codeword. (2) a1 point: This position is coded at the first change point to the right of the a0 point on the coding line. (3) b1 point: on the reference line to the right of a0 point,
A change point that changes in the same direction as point a (white to black or black to white).

【0007】b1点のドット位置を基準として、a1点
が左または右へ何ドットずれた位置にあるかを(相対位
置δで示す)、可変長符号で記述する。出現頻度の高い
符号語の長さを短くして符号化したコードデータ全体の
長さを最短にする。垂直モードでは、1ビットから7ビ
ットまでの長さの符号語が用いられる。
With respect to the dot position of the b1 point as a reference, how many dots the a1 point is displaced to the left or the right (indicated by the relative position δ) is described by a variable length code. The length of the code word that frequently appears is shortened to minimize the length of the entire coded code data. In the vertical mode, a code word with a length of 1 bit to 7 bits is used.

【0008】垂直モードで符号化されたデータから元の
画像を復元するには、通常、白または黒の一方だけのド
ットのつながり(ランと呼ぶ)を次のような手順で順次
生成する。 (1)符号を解読してδを求める。 (2)参照ラインを走査してb1点の位置を求める。 (3)b1点の位置にδを加算してa1点の位置を求め
る。 (4)a0点から始まるランを生成する。 (5)a1点を新しいa0点とし、白黒を反転する。 (6)次のランに対して(1)から繰り返す。
In order to restore the original image from the data encoded in the vertical mode, usually, a connection of dots of only one of white and black (called a run) is sequentially generated by the following procedure. (1) Decode the code to obtain δ. (2) The reference line is scanned to find the position of point b1. (3) δ is added to the position of the b1 point to obtain the position of the a1 point. (4) Generate a run starting from point a0. (5) The a1 point is set as the new a0 point and the black and white are inverted. (6) Repeat from (1) for the next run.

【0009】従来では、このような符号化方式によって
符号化された全体の画像に対応するコードデータから部
分的な画像の切出しを行なう場合には、全てのコードデ
ータを伸張して元の画像に展開した後に、所望する部分
ま画像を切出していた。
Conventionally, when a partial image is cut out from the code data corresponding to the whole image encoded by such an encoding method, all the code data are expanded to obtain the original image. After unfolding, the desired image was cut out.

【0010】また、別の方法としては、本出願人は、先
に特願平3−183689号によって、2値画像を所定
のライン数毎に分割して得られる複数のセグメントのそ
れぞれについて、各セグメントの開始ラインに対応する
参照ラインの画像データと、2値画像が圧縮された際の
符号データにおける開始ラインの先頭の符号位置を示す
データとを対応づけたテーブルを作成し、そのテーブル
に記憶された各データを利用して画像の途中から伸張す
る方式を提案している。
As another method, the applicant of the present invention has previously described, in Japanese Patent Application No. 3-183689, each of a plurality of segments obtained by dividing a binary image into a predetermined number of lines. A table is created in which the image data of the reference line corresponding to the start line of the segment and the data indicating the code position of the beginning of the start line in the code data when the binary image is compressed are created and stored in the table. We propose a method to expand the image from the middle by using each data.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、元の画
像に展開した後に画像の切出しを行なう方法では、直接
関係のない画像までも多量に展開しなければならず、元
の画像のサイズが大きくなるに従い伸張処理に時間がか
かり、また画像メモリの容量も膨大なものが必要となる
という問題があった。
However, in the method of cutting out an image after the original image is expanded, a large amount of even unrelated images must be expanded, which increases the size of the original image. Accordingly, there is a problem in that the decompression process takes time and a huge amount of image memory is required.

【0012】また、特願平3−183689号に示す方
式では、元の画像に展開した後に画像の切出しを行なう
方法と比較して高速な2値画像の切出しが可能である
が、所定のライン数毎に分割して得られるセグメントよ
りも小さい画像を切出す場合には、やはりセグメント中
の不要な部分の画像を展開することになり、必要以上の
時間を要していた。
Further, in the method shown in Japanese Patent Application No. 3-183689, a binary image can be cut out at a higher speed than a method of cutting out an image after developing the original image, but a predetermined line In the case of cutting out an image smaller than a segment obtained by dividing every number, an image of an unnecessary portion in the segment is also developed, and it takes more time than necessary.

【0013】本発明は前記のような点に鑑みてなされた
もので、大サイズの画像に対応するコードデータからで
あっても高速に画像の部分切出しを行なうことが可能な
2値画像圧縮伸張処理システム及び2値画像切出し方法
を提供することを目的とする。
The present invention has been made in view of the above points, and it is a binary image compression / decompression which enables high speed partial clipping of an image even from code data corresponding to a large size image. An object is to provide a processing system and a binary image cutout method.

【0014】[0014]

【課題を解決するための手段】本発明は、2値画像の圧
縮伸張を行なう2値画像圧縮伸張処理システムにおい
て、前記2値画像を水平方向に所定のライン数毎及び垂
直方向に所定のドット数毎に分割して得られる複数の領
域に対して、水平方向に分割した領域の開始ラインに対
応する参照ラインの画像データと、垂直方向に分割した
領域の分割位置を基準とする次の変化画素の1ドット手
前までのラン長、前記変化画素に対応する符号の開始位
置、及び前記開始位置より生成する画像の色を示す色デ
ータとが登録されたテーブルを作成するテーブル作成手
段と、前記テーブル作成手段によって作成されたテーブ
ルの内容に基づいて、前記2値画像中の部分的な画像
を、前記2値画像全体に対応するコードデータ中の該当
するコードデータから生成する部分画像生成手段とを具
備したことを特徴とする。
According to the present invention, in a binary image compression / expansion processing system for compressing / expanding a binary image, the binary image is horizontally divided by a predetermined number of lines and vertically by a predetermined dot. Image data of the reference line corresponding to the start line of the horizontally divided area and the next change based on the division position of the vertically divided area for the multiple areas obtained by dividing Table creating means for creating a table in which a run length up to one dot before a pixel, a start position of a code corresponding to the changed pixel, and color data indicating a color of an image generated from the start position are registered; Based on the contents of the table created by the table creating means, the partial image in the binary image is converted from the corresponding code data in the code data corresponding to the entire binary image. And characterized by including a partial image generating means for forming.

【0015】また、本発明は、2値画像を圧縮処理して
得られるコードデータを解読する解読回路と、前記解読
回路のコードの解読位置を示す指示手段と、前記指示手
段によって指示された位置から前記解読回路によって解
読されるコードの色を指示する色指示手段を有する解読
手段と、前記解読手段によって解読されるコードデータ
に対応する参照ライン画像データから変化点を検出し、
同変化点と前記解読手段による解読結果に基づいて生成
すべき画像データのラン長を設定する処理手段と、前記
処理手段によって設定されたラン長に応じてイメージデ
ータを生成する生成手段とを設けた2値画像圧縮伸張装
置を有し、2値画像全体に対する圧縮処理または伸張処
理の際に、前記2値画像を水平方向に所定のライン数毎
及び垂直方向に所定のドット数毎に分割して得られる複
数の領域に対して、水平方向に分割した各領域の開始ラ
インに対応する参照ラインの画像データと、垂直方向に
分割した領域の各分割位置を基準とする次の変化画素の
1ドット手前までのラン長、前記変化画素に対応する符
号の開始位置、及び前記開始位置より生成する画像の色
を示す色データとが前記分割位置毎に各ラインについて
登録されたテーブルを作成するテーブル作成手段と、前
記テーブル作成手段によって作成されたテーブルに登録
された、前記ラン長を前記処理手段に、前記符号の開始
位置を前記指示手段に、前記色データを前記色指示手段
にそれぞれ設定し、前記参照ラインの画像データを前記
処理手段に与えるテーブルデータ設定手段とを具備し、
前記テーブルデータ設定手段によって前記2値画像中の
部分画像に対応するデータを設定することにより部分画
像のみについて伸張処理を行なうことを特徴とする。
Further, according to the present invention, a decoding circuit for decoding code data obtained by compressing a binary image, an instruction means for indicating a code decoding position of the decoding circuit, and a position instructed by the instruction means. From the decoding means having a color designating means for designating the color of the code decoded by the decoding circuit, and detecting the change point from the reference line image data corresponding to the code data decoded by the decoding means,
Provided are processing means for setting a run length of image data to be generated based on the same change point and the decoding result by the decoding means, and generating means for generating image data according to the run length set by the processing means. A binary image compression / decompression device, the binary image is divided into a predetermined number of lines in the horizontal direction and a predetermined number of dots in the vertical direction during compression or expansion of the entire binary image. The image data of the reference line corresponding to the start line of each of the horizontally divided regions for the plurality of regions obtained by the above, and one of the following change pixels based on each divided position of the vertically divided region. A table in which a run length up to a dot, a start position of a code corresponding to the changed pixel, and color data indicating a color of an image generated from the start position are registered for each line for each division position. And the run length registered in the table created by the table creating means to the processing means, the start position of the code to the instructing means, and the color data to the color instructing means. And table data setting means for giving the image data of the reference line to the processing means.
The table data setting means sets the data corresponding to the partial image in the binary image so that only the partial image is expanded.

【0016】また本発明は、2値画像全体に対する圧縮
処理または伸張処理の際に、前記2値画像を水平方向に
所定のライン数毎及び垂直方向に所定のドット数毎に分
割して得られる複数の領域に対して、水平方向に分割し
た各領域の開始ラインに対応する参照ラインの画像デー
タと、垂直方向に分割した領域の各分割位置を基準とす
る次の変化画素の1ドット手前までのラン長、前記変化
画素に対応する符号の開始位置、及び前記開始位置より
生成する画像の色を示す色データとが前記分割位置毎に
各ラインについて登録されたテーブルを予め作成し、前
記2値画像全体に対応するコードデータをもとに部分画
像を伸張処理する際に、前記テーブルから前記部分画像
の開始位置に対応する各データを用いて伸張処理を開始
し、前記部分画像が生成された時点で伸張処理を終了す
ることを特徴とする。
Further, the present invention is obtained by dividing the binary image into a predetermined number of lines in the horizontal direction and a predetermined number of dots in the vertical direction when the compression process or the expansion process is performed on the entire binary image. Image data of a reference line corresponding to the start line of each of the horizontally divided regions for a plurality of regions and up to one dot before the next change pixel based on each divided position of the vertically divided regions Of the run length, the start position of the code corresponding to the changed pixel, and the color data indicating the color of the image generated from the start position are created in advance for each line for each division position, and a table is created in advance. When decompressing the partial image based on the code data corresponding to the entire value image, the decompression process is started from the table by using each data corresponding to the start position of the partial image, Characterized in that in the generated time finishes the decompression processing.

【0017】[0017]

【作用】このような構成によれば、2値画像を水平方向
に所定のライン数毎及び垂直方向に所定のドット数毎に
分割して得られる複数の領域に対して、領域単位で画像
の伸張処理が可能なデータが登録されたテーブルを作成
することで、2値画像全体中から必要な部分についての
みの伸張処理で所望する部分画像を取得することができ
る。
According to this structure, a plurality of areas obtained by dividing a binary image by a predetermined number of lines in the horizontal direction and a predetermined number of dots in the vertical direction are divided into image areas by area. By creating a table in which data that can be decompressed is registered, it is possible to obtain a desired partial image from the entire binary image by decompressing only the necessary part.

【0018】[0018]

【実施例】以下、図面を参照して本発明の一実施例を説
明する。図1は本実施例に係わる2値画像データ切出し
方式を適用する2値画像圧縮伸張処理システムの構成を
示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a binary image compression / expansion processing system to which the binary image data cutout method according to this embodiment is applied.

【0019】図1に示すように、2値画像圧縮伸張処理
システムは、CPU10、メモリ12、外部記憶装置1
4、画像入力装置16、ビットマップメモリ18、2値
画像圧縮伸張装置20、及び表示装置21が設けられて
いる。
As shown in FIG. 1, the binary image compression / expansion processing system includes a CPU 10, a memory 12, and an external storage device 1.
4, an image input device 16, a bit map memory 18, a binary image compression / expansion device 20, and a display device 21 are provided.

【0020】CPU10、メモリ12、外部記憶装置1
4、画像入力装置16、及び2値画像圧縮伸張装置20
は、相互にシステムバス22を介して接続されている。
また、CPU10、メモリ12、ビットマップメモリ1
8、及び2値画像圧縮伸張装置20は、相互にイメージ
バス24を介して接続されている。
CPU 10, memory 12, external storage device 1
4, image input device 16, and binary image compression / decompression device 20
Are mutually connected via the system bus 22.
Further, the CPU 10, the memory 12, the bitmap memory 1
The 8 and binary image compression / decompression devices 20 are connected to each other via an image bus 24.

【0021】CPU10は、本システム全体の制御を司
るもので、メモリ12に格納されたプログラムに従って
動作する。メモリ12は、本システムを動作させるため
のプログラムや各種データ等を格納するためのものであ
る。特に、2値画像圧縮伸張装置20に対して画像伸張
処理時に与えられるコードデータ、及び2値画像圧縮伸
張装置20がコードデータから一部分の画像を切出す画
像伸張処理を行なう際に参照される中間スタートテーブ
ル(後述する)が格納される。
The CPU 10 controls the entire system, and operates according to a program stored in the memory 12. The memory 12 is for storing programs for operating this system, various data, and the like. In particular, the code data given to the binary image compression / expansion device 20 at the time of the image expansion process, and the intermediate data referred to when the binary image compression / expansion device 20 performs the image expansion process of cutting out a part of the image from the code data. A start table (described later) is stored.

【0022】外部記憶装置14は、画像データやコード
データを格納するためのものである。画像データは、画
像入力装置16によって本システムに入力することがで
き、また画像データやコードデータは、外部より与えら
れたものでも良い。
The external storage device 14 is for storing image data and code data. The image data can be input to this system by the image input device 16, and the image data and the code data may be given from the outside.

【0023】画像入力装置16は、例えばITVやスキ
ャナ装置等によって構成され、画像データを生成し、入
力するものである。画像入力装置16によって入力され
た画像データは、外部記憶装置14に格納される。
The image input device 16 is composed of, for example, an ITV, a scanner device or the like, and generates and inputs image data. The image data input by the image input device 16 is stored in the external storage device 14.

【0024】ビットマップメモリ18は、画像入力装置
16によって入力された画像や2値画像圧縮伸張装置2
0によって伸張された画像等を表示装置21に表示させ
る際に、表示用画像データを格納するためのものであ
る。
The bitmap memory 18 stores the image input by the image input device 16 and the binary image compression / expansion device 2.
This is for storing display image data when displaying an image or the like expanded by 0 on the display device 21.

【0025】2値画像圧縮伸張装置20は、画像データ
を圧縮する圧縮処理、及び圧縮処理によって得られたコ
ードデータを伸張して元の画像に展開する伸張処理を実
行するものである。
The binary image compression / decompression device 20 executes a compression process for compressing image data and a decompression process for decompressing the code data obtained by the compression process to develop the original image.

【0026】図2は図1中に示す2値画像圧縮伸張装置
20の詳細な構成を示すブロック図である。図2に示す
ように、2値画像圧縮伸張装置20は、解読部220、
処理部240、生成部260、及びI/Oレジスタ群2
80が設けられている。
FIG. 2 is a block diagram showing the detailed arrangement of the binary image compression / decompression device 20 shown in FIG. As shown in FIG. 2, the binary image compression / decompression device 20 includes a decoding unit 220,
Processing unit 240, generation unit 260, and I / O register group 2
80 is provided.

【0027】解読部22は、処理対象とするデータ(伸
張処理時にはコードデータ、圧縮処理時には画像デー
タ)をシステムバス22を介して入力し、そのデータの
内容を解読するものであり、解読回路222、ポインタ
224、バイトカウンタ226、及びレジスタ228が
設けられている。
The decoding section 22 inputs the data to be processed (code data at the time of expansion processing, image data at the time of compression processing) via the system bus 22, and decodes the contents of the data. The decoding circuit 222 , A pointer 224, a byte counter 226, and a register 228 are provided.

【0028】解読回路222は、画像伸張時にはコード
データを入力し、画像圧縮時には画像データを入力し
て、データの解読を行なうものである。伸張処理時に
は、解読結果が垂直モードの符号語であれば位置データ
δ(a1点とb1点との相対位置)が処理部240に出
力される(その他、水平モード、パスモード、一次元符
号に応じたデータが出力される)。圧縮処理時には、a
1点を検出して処理部240に出力される。また、解読
回路222は、伸張処理時には、解読したコードデータ
のコード長を出力してポインタ224の値を更新する。
The decoding circuit 222 inputs the code data at the time of image expansion and the image data at the time of image compression to decode the data. At the time of decompression processing, if the decoding result is a code word in the vertical mode, position data δ (relative position between a1 point and b1 point) is output to the processing unit 240 (others, horizontal mode, pass mode, one-dimensional code). The corresponding data is output). During compression processing, a
One point is detected and output to the processing unit 240. Further, the decoding circuit 222 outputs the code length of the decoded code data and updates the value of the pointer 224 during the expansion processing.

【0029】ポインタ224は、解読回路222が解読
を開始する位置を示すデータを格納するレジスタであ
り、伸張処理時にはコードデータに対する解読開始の先
頭位置を示し、圧縮処理時にはa0点の位置を示す。ポ
インタ224のデータは、解読回路222による処理に
応じて更新される。
The pointer 224 is a register for storing data indicating the position where the decoding circuit 222 starts decoding, and indicates the starting position of decoding start for the code data at the time of decompression processing and the position of a0 point at the time of compression processing. The data of the pointer 224 is updated according to the processing by the decoding circuit 222.

【0030】バイトカウンタ226は、解読回路222
に入力されたデータのバイト数をカウントするものであ
る。レジスタ228は、解読回路222において解読さ
れる色データ(白“0”、黒“1”に対応する)を格納
するものである。
The byte counter 226 has a decoding circuit 222.
It counts the number of bytes of data input to. The register 228 stores color data decoded by the decoding circuit 222 (corresponding to white “0” and black “1”).

【0031】次に、処理部240は、参照ライン画像デ
ータからb1点(色変化点)を検出するもので、変化点
検出回路241、演算回路242、ランレングスカウン
タ244、及びラインカウンタ255が設けられてい
る。
Next, the processing section 240 detects point b1 (color change point) from the reference line image data, and a change point detection circuit 241, a calculation circuit 242, a run length counter 244, and a line counter 255 are provided. Has been.

【0032】変化点検出回路241は、参照ライン画像
メモリに格納された、圧縮または伸張の対象としている
ラインの直前のライン(参照ライン)の画像データから
変化点(b1点)の検出を行なうものである。
The change point detection circuit 241 detects a change point (point b1) from the image data of the line (reference line) immediately before the line to be compressed or expanded, which is stored in the reference line image memory. Is.

【0033】演算回路242は、伸張処理時には、ポイ
ンタ243が示すa0点の位置を起点として、変化点検
出回路241によって検出されたb1点と解読部220
により得られた位置データ(δ)からa1点、すなわち
生成するイメージの長さ(ラン長)を求める。また、圧
縮処理時には、変化点検出回路241によって検出され
たb1点と解読部220によって得られたa1点から、
a1点とb1点との相対位置(δ)を求める(垂直モー
ド)。この位置データδは、生成部260において、対
応するコードデータを特定するために用いられる。
During the decompression process, the arithmetic circuit 242 uses the position of the point a0 indicated by the pointer 243 as a starting point, and the point b1 detected by the change point detection circuit 241 and the decoding section 220.
The a1 point, that is, the length (run length) of the image to be generated is obtained from the position data (δ) obtained by. Further, at the time of compression processing, from the b1 point detected by the change point detection circuit 241 and the a1 point obtained by the decoding unit 220,
The relative position (δ) between the points a1 and b1 is obtained (vertical mode). This position data δ is used by the generation unit 260 to specify the corresponding code data.

【0034】ポインタ243は、変化点検出回路24
1、演算回路242における処理に参照されるもので、
a0点の位置を示すデータが格納される。ランレングス
カウンタ244は、生成するランの開始位置からのラン
長をカウントするものである。
The pointer 243 is a change point detection circuit 24.
1, which is referred to in the processing in the arithmetic circuit 242,
Data indicating the position of point a0 is stored. The run length counter 244 counts the run length from the start position of the generated run.

【0035】ラインカウンタ255は、画像圧縮伸張処
理を画像の1ライン分実行する毎に、I/Oレジスタ群
280中に設定された分割領域を規定するライン数nま
でカウントを行なうものである。画像全体を所定のライ
ン数毎に分割して得られる分割領域のライン数をカウン
トするものである。
The line counter 255 counts up to the number of lines n which defines the divided area set in the I / O register group 280 every time the image compression / expansion process is executed for one line of the image. The number of lines in a divided area obtained by dividing the entire image by a predetermined number of lines is counted.

【0036】次に、生成部260は、処理部240によ
って検出されたa1点(ラン長)または位置データ
(δ)に基づいて、画像伸張処理時には画像データを生
成し、画像圧縮処理時にはコードデータを生成し、画像
伸張処理時には画像データを生成するもので、生成回路
262、ポインタ264、及びバイトカウンタ266が
設けられている。
Next, the generation unit 260 generates image data at the time of image expansion processing and code data at the time of image compression processing based on the a1 point (run length) or position data (δ) detected by the processing unit 240. Is generated and image data is generated at the time of image expansion processing, and a generation circuit 262, a pointer 264, and a byte counter 266 are provided.

【0037】生成回路262は、画像圧縮時には、処理
部240によって検出された位置データ(δ)に応じた
(その他、水平モード、パスモード、一次元符号に応じ
た)コードを求め、コードをつなぎ合わせてコードデー
タを生成するものである。また、画像伸張処理時には、
処理部240によって検出されたa1点(ラン長)に応
じて、白“0”または黒“1”のデータをつなぎ合わせ
て、画像データをよ生成するものである。
At the time of image compression, the generation circuit 262 obtains a code according to the position data (δ) detected by the processing unit 240 (others, horizontal mode, pass mode, one-dimensional code) and connects the codes. It also generates code data. Also, during the image expansion processing,
According to the a1 point (run length) detected by the processing unit 240, data of white “0” or black “1” are connected to generate image data.

【0038】ポインタ264は、画像圧縮処理時には、
生成回路262に対してコードデータにおけるコードを
つなぎ合せるべき先頭のビット位置を示し、画像伸張処
理時にはa0点の位置を示すものである。ポインタ26
4は、画像圧縮処理時には、つなぎ合わせが完了したコ
ードのコード長で更新され、画像伸張処理時には、処理
部240の演算回路242によって出力されるa1点
(ラン長)によって更新される。
The pointer 264 is used for the image compression processing.
The bit position of the head to which the code in the code data is to be connected is shown to the generation circuit 262, and the position of a0 point is shown at the time of the image expansion processing. Pointer 26
4 is updated with the code length of the code that has been joined together during the image compression processing, and is updated with the a1 point (run length) output by the arithmetic circuit 242 of the processing unit 240 during the image expansion processing.

【0039】バイトカウンタ266は、画像圧縮処理時
には、生成回路262によって作成されたコードデータ
のバイト長をカウントし、画像伸張処理時には、生成回
路262によって作成された画像データのバイト長をI
/Oレジスタ群280中に設定された分割領域を規定す
るドット数mまでカウントを行なうものである。
The byte counter 266 counts the byte length of the code data created by the generation circuit 262 during the image compression processing, and the byte length of the image data created by the generation circuit 262 during the image expansion processing by I.
The number of dots is counted up to the number of dots m that defines the divided area set in the / O register group 280.

【0040】I/Oレジスタ群280は、同装置におけ
る圧縮伸張処理に用いられる各種データを保持するもの
で、その中には画像を複数の分割領域に分割するための
ライン数n(水平方向の分割)及びドット数m(垂直方
向への分割)を設定するためのレジスタを含んでいる。
The I / O register group 280 holds various data used for compression / expansion processing in the same apparatus. In the I / O register group 280, the number of lines n (in the horizontal direction) for dividing an image into a plurality of divided areas is included. It includes a register for setting the division) and the number of dots m (division in the vertical direction).

【0041】次に、本実施例におけるデータ構造につい
て説明する。図3は原画像の全体に対応させた画像デー
タ30の概念図を示している。図4に部分的な画像切出
しを行なう場合に用いられる水平方向中間スタートテー
ブル40、図5に部分的な画像切出しを行なう場合に用
いられる垂直方向中間スタートテーブル50の概念図を
示している。水平方向中間スタートテーブル40及び垂
直方向中間スタートテーブル50は、最初の圧縮処理ま
たは伸張処理の際に生成される(詳細については後述す
る)。
Next, the data structure in this embodiment will be described. FIG. 3 shows a conceptual diagram of the image data 30 corresponding to the entire original image. FIG. 4 is a conceptual diagram of the horizontal intermediate start table 40 used when partial image clipping is performed, and FIG. 5 is a conceptual diagram of the vertical intermediate start table 50 used when partial image clipping is performed. The horizontal intermediate start table 40 and the vertical intermediate start table 50 are generated during the first compression processing or decompression processing (details will be described later).

【0042】図3に示す画像データ30は、nライン毎
に水平方向で複数に分割され、さらにmドット毎に垂直
方向で複数に分割されて得られる分割領域30−1,3
0−2,…に分割されている。
The image data 30 shown in FIG. 3 is divided into a plurality of regions in the horizontal direction for every n lines and further into a plurality of regions in the vertical direction for every m dots.
It is divided into 0-2, ....

【0043】図4に示す水平方向中間スタートテーブル
40には、図3に示す画像データ30中の水平方向に分
割された各領域(図4(a)参照)の先頭ラインに対応
する参照ラインの画像データ(参照ライン画像データ)
が格納される。なお、図4(a)に示す領域0の先頭ラ
イン(符号化ライン)に対応する参照ライン画像データ
は、全てのビットが白を示す“0”であるものとする。
In the horizontal intermediate start table 40 shown in FIG. 4, the reference line corresponding to the head line of each horizontally divided area (see FIG. 4A) in the image data 30 shown in FIG. Image data (reference line image data)
Is stored. In the reference line image data corresponding to the first line (encoding line) of the area 0 shown in FIG. 4A, all bits are “0” indicating white.

【0044】図5に示す垂直方向中間スタートテーブル
50−0,50−1,…には、図3に示す画像データ3
0中の垂直方向に分割された各領域(図5(a)参照)
の、各領域の分割位置(位置0、位置1、…)における
次の変化画素の1ドット手前までのラン長と、その変化
画素(符号化開始画素a0点)に対応する符号の開始位
置と、生成する画像の色とを、各ライン毎に対応づけて
格納される。
The vertical intermediate start tables 50-0, 50-1, ... Shown in FIG. 5 have the image data 3 shown in FIG.
Vertically divided areas in 0 (see FIG. 5 (a))
At the division position (position 0, position 1, ...) Of each region up to one dot before the next change pixel and the start position of the code corresponding to the change pixel (coding start pixel a0 point) , And the color of the image to be generated are stored in association with each line.

【0045】水平方向中間スタートテーブル40には画
像データ30中の領域(図4(a)に示す領域)毎に伸
張するために参照される参照ライン画像データが格納さ
れ、垂直方向中間スタートデータ50−0,50−1,
…には各領域の分割位置(位置0、位置1、…)から伸
張するために参照される情報が格納されている。従っ
て、例えば全画像に対応するコードデータから部分的に
画像を切出す際に、図3に示す画像データ30において
切出したい部分画像を含む領域30−1,30−2,…
が判れば、コードデータにおける該当分割領域を伸張す
るための情報を各中間スタートテーブル40,50−
0,50−1,…より参照することにより、そのアドレ
スから伸張処理を開始し必要なドット数及びライン数の
復号化が完了すれば、そこで復号化を打ち切ることで必
要な画像の効率の良い切出しが可能となる。
The horizontal intermediate start table 40 stores reference line image data which is referred to in order to expand each area (area shown in FIG. 4A) in the image data 30, and the vertical intermediate start data 50. -0, 50-1,
Stores information referred to in order to extend from the division position (position 0, position 1, ...) Of each area. Therefore, for example, when partially cutting out an image from the code data corresponding to all images, areas 30-1, 30-2, ... Including the partial image to be cut out in the image data 30 shown in FIG.
, The information for expanding the corresponding divided area in the code data is provided to each of the intermediate start tables 40, 50-.
By referring from 0, 50-1, ..., If the decompression process is started from the address and the decoding of the required number of dots and lines is completed, the decoding is aborted there to improve the efficiency of the required image. It is possible to cut out.

【0046】次に、本実施例の動作について説明する。
まず、図4及び図5に示す水平方向中間スタートテーブ
ル40、及び垂直方向中間スタートテーブル50−0,
50−1,…の作成の手順について説明する。各中間ス
タートテーブル40、50−0,50−1,…は、画像
入力装置16によって入力された画像の画像データ(あ
るいは外部から与えられた画像データ)に対して、最初
に圧縮処理を行なう際に、圧縮処理の過程の中で、必要
なデータが取得されて生成される。または、外部から圧
縮処理によって得られたコードデータが与えられた場合
に、最初に画像全体について伸張処理を行なう際に、伸
張処理過程の中で、必要なデータが取得されて生成され
る。各中間スタートテーブル40、50−0,50−
1,…が作成された後、画像全体に対応するコードデー
タから、部分的な画像を切り出す伸張処理が可能とな
る。
Next, the operation of this embodiment will be described.
First, the horizontal intermediate start table 40 and the vertical intermediate start table 50-0, shown in FIGS.
The procedure for creating 50-1, ... Will be described. The intermediate start tables 40, 50-0, 50-1, ... Are used when the image data of the image input by the image input device 16 (or image data given from the outside) is first compressed. In addition, necessary data is acquired and generated during the compression process. Alternatively, when the code data obtained by the compression process is given from the outside, when the decompression process is performed on the entire image first, necessary data is acquired and generated in the decompression process. Each intermediate start table 40, 50-0, 50-
After the creation of 1, ...

【0047】まず、与えられた元のデータが画像データ
の場合(画像圧縮処理)のテーブル作成処理について、
図6に示すフローチャートを参照しながら説明する。は
じめに、CPU10は、I/Oレジスタ群280をアク
セスし、画像データ30における分割領域を規定するラ
イン数n、及びドット数mを設定する(ステップA
1)。
First, regarding the table creation processing when the given original data is image data (image compression processing),
This will be described with reference to the flowchart shown in FIG. First, the CPU 10 accesses the I / O register group 280 and sets the number of lines n and the number of dots m that define the divided area in the image data 30 (step A).
1).

【0048】CPU10は、システムバス22を介し
て、圧縮対象とする画像データを2値画像圧縮伸張装置
20の解読回路222に転送し、また処理部240に参
照ライン画像データを転送して圧縮処理を開始させる
(ステップA2)。
The CPU 10 transfers the image data to be compressed to the decoding circuit 222 of the binary image compression / decompression device 20 via the system bus 22, and also transfers the reference line image data to the processing unit 240 for compression processing. Is started (step A2).

【0049】2値画像圧縮伸張装置20は、入力される
データについて順次、画像圧縮処理を実行する。この
時、バイトカウンタ226によって処理された画像デー
タのドット数がカウントされており、I/Oレジスタ群
280に設定されたmドット分の処理が実行されたか判
別される(ステップA3)。
The binary image compression / expansion device 20 sequentially performs image compression processing on input data. At this time, the number of dots of the image data processed by the byte counter 226 is counted, and it is determined whether or not the processing for m dots set in the I / O register group 280 has been executed (step A3).

【0050】バイトカウンタ226のカウント値が所定
の値(m)に達すると(mドット分の処理が実行される
と)、2値画像圧縮伸張装置20は、CPU割り込みを
発生する。
When the count value of the byte counter 226 reaches a predetermined value (m) (when the processing for m dots is executed), the binary image compression / decompression device 20 generates a CPU interrupt.

【0051】ここで、CPU10は、分割領域を規定す
る位置を越えた端数のラン長(次の変化画素の1ドット
手前までのラン長)、及びこのランの色データ(白
“0”または黒“1”)をレジスタ228から読出し、
メモリ12の垂直方向中間スタートテーブル(該当する
位置に対応する)に登録する。
Here, the CPU 10 runs the fractional run length beyond the position defining the divided area (run length up to one dot before the next change pixel) and the color data of this run (white "0" or black). "1") is read from the register 228,
It is registered in the vertical intermediate start table of the memory 12 (corresponding to the corresponding position).

【0052】また、CPU10は、端数のランの次ドッ
トから始まる符号位置(バイト位置、ビット位置)を、
バイトカウンタ266、ポインタ264からそれぞれ読
み出し、分割領域を規定する位置(位置0,1,…)に
おけるメモリ12中の垂直方向スタートテーブルに登録
する(ステップA3,A4)。
The CPU 10 also determines the code position (byte position, bit position) starting from the dot next to the fractional run,
It is read from the byte counter 266 and the pointer 264, respectively, and registered in the vertical start table in the memory 12 at the position (position 0, 1, ...) That defines the divided area (steps A3, A4).

【0053】以上の垂直方向中間スタートテーブルに対
する登録を、分割領域を規定する位置(位置0,1,
…)毎に、各ラインについて繰り返して行なう。これに
より、各位置に対応する垂直方向中間スタートテーブル
50−1,50−1,…が作成される(図5参照)。
The above registration in the vertical intermediate start table is performed at the position (position 0, 1,
...) for each line. As a result, vertical intermediate start tables 50-1, 50-1, ... Corresponding to the respective positions are created (see FIG. 5).

【0054】一方、1ライン分の処理を実行する毎に、
ラインカウンタ255において処理した画像のライン数
をカウントしている(ステップA5)。ラインカウンタ
255のカウント値が予め設定されたライン数(n)分
の処理が終了したことを示す値に達すると、2値画像圧
縮伸張装置20は、CPU割り込みを発生する。
On the other hand, every time the processing for one line is executed,
The line counter 255 counts the number of lines of the processed image (step A5). When the count value of the line counter 255 reaches a value indicating that the processing for the preset number of lines (n) is completed, the binary image compression / decompression device 20 generates a CPU interrupt.

【0055】CPU10は、分割領域の最終ラインの画
像データ(次の段の分割領域に対する参照ライン画像デ
ータ)を、メモリ12の水平方向中間スタートテーブル
40に登録する(ステップA6)。
The CPU 10 registers the image data of the last line of the divided area (reference line image data for the divided area of the next stage) in the horizontal intermediate start table 40 of the memory 12 (step A6).

【0056】以上の処理を画像圧縮処理の対象とする1
ページ分の画像全体に対して行なう(ステップA7)。
そして、1ページ分の水平方向中間スタートテーブル4
0及び垂直方向中間スタートテーブル50−1,50−
1,…がメモリ12に格納されると、CPU10は、各
テーブルの内容を外部記憶装置14に登録する(ステッ
プA8)。
Targeting the above processing for image compression processing 1
This is performed for the entire image for pages (step A7).
And the horizontal intermediate start table 4 for one page
0 and vertical intermediate start tables 50-1, 50-
When 1, ... Are stored in the memory 12, the CPU 10 registers the contents of each table in the external storage device 14 (step A8).

【0057】次に、与えられた元のデータがコードデー
タの場合(画像伸張処理)のテーブル作成処理について
説明する。前述した画像圧縮処理と同様の手順によって
テーブルの作成が行なわれる。ただし、バイトカウンタ
266によって処理された画像データのドット数がカウ
ントされており、I/Oレジスタ群280に設定された
mドット分の処理が実行されたか判別される。
Next, a table creating process when the given original data is code data (image expansion process) will be described. The table is created by the same procedure as the image compression processing described above. However, the number of dots of the image data processed by the byte counter 266 is counted, and it is determined whether or not the processing for m dots set in the I / O register group 280 has been executed.

【0058】また、バイトカウンタ266のカウント値
が所定の値(m)に達すると、バイトカウンタ226、
ポインタ224から符号位置が読み出されてメモリ12
中の垂直方向スタートテーブルに登録される。また、端
数のラン長は、バイトカウンタ266のカウント値がm
となった時のランレングスカウンタ244によって示さ
れるラン長の端数分となる。
When the count value of the byte counter 266 reaches a predetermined value (m), the byte counter 226,
The code position is read from the pointer 224 and the memory 12
Registered in the vertical start table inside. In addition, as for the run length of the fraction, the count value of the byte counter 266 is m.
Is a fraction of the run length indicated by the run length counter 244.

【0059】次に、中間スタートテーブル(水平方向、
垂直方向)40,50−0,50−1,…を用いて部分
的な伸張処理(部分画像の切出し)を行なう具体的な動
作について、図7に示すフローチャートを参照しながら
説明する。
Next, the intermediate start table (horizontal direction,
A specific operation of performing a partial decompression process (partial image cutout) using the vertical direction) 40, 50-0, 50-1, ... Will be described with reference to the flowchart shown in FIG.

【0060】画像の切出しを行なう際には、所望する切
出し領域に最も近い手前の分割領域(開始領域)から伸
張処理を開始する。このため、まず伸張処理開始前に、
伸張処理が開始される部分領域(開始領域)からの伸張
処理の対象となる範囲(切り出す画像のサイズ)を示す
ライン数(縦サイズ)とバイト数(横サイズ)を、2値
画像圧縮伸張装置20のI/Oレジスタ群280に設定
する(ステップB1)。
When the image is cut out, the decompression processing is started from the nearest divided area (start area) closest to the desired cut-out area. Therefore, first, before starting the decompression process,
A binary image compression / decompression device that determines the number of lines (vertical size) and the number of bytes (horizontal size) indicating the range (size of the image to be cut) that is the target of decompression processing from the partial area (start area) where decompression processing starts 20 I / O register groups 280 are set (step B1).

【0061】次に、開始領域に対応する参照ライン画像
データを伸張処理の対象とする画像の水平方向中間スタ
ートテーブル40から読出し、参照ライン画像メモリに
設定する(参照ライン画像データを処理部240の変化
点検出回路241に与える)(ステップB2)。
Next, the reference line image data corresponding to the start area is read from the horizontal intermediate start table 40 of the image to be expanded and set in the reference line image memory (the reference line image data is stored in the processing unit 240). It is given to the change point detection circuit 241) (step B2).

【0062】次に、伸張処理の対象とする画像の垂直方
向中間スタートテーブルのうち、開始領域に対応する位
置における垂直方向中間スタートテーブルからラン長、
符号位置、及び色データを読み出す。そして、ラン長を
ランレングスカウンタ244に、符号位置のビット位置
はポインタ224に、符号位置のバイト位置はバイトカ
ウンタ226に、色データはレジスタ228にそれぞれ
設定する(ステップB3)。
Next, of the vertical intermediate start table of the image to be decompressed, the run length from the vertical intermediate start table at the position corresponding to the start area is calculated.
The code position and color data are read. Then, the run length is set in the run length counter 244, the bit position of the code position is set in the pointer 224, the byte position of the code position is set in the byte counter 226, and the color data is set in the register 228 (step B3).

【0063】各データの設定を終了した後、部分画像の
画像伸張処理を開始させる(ステップB4)。まず、開
始位置からのランレングスカウンタ244に設定された
端数のラン長のイメージが生成される。生成された画像
データは、イメージバス24を介してビットマップメモ
リ18に転送され格納される。
After the setting of each data is completed, the image expansion processing of the partial image is started (step B4). First, an image with a run length of a fraction set in the run length counter 244 from the start position is generated. The generated image data is transferred to and stored in the bitmap memory 18 via the image bus 24.

【0064】一方、解読部220の解読回路222に画
像伸張処理の対処とするコードデータが入力される。解
読部220は、バイトカウンタ226、ポインタ22
4、レジスタ228(色データ)の内容に応じてコード
データの解読を行なう。また、処理部240は、参照ラ
イン画像メモリに格納された参照ライン画像データから
変化点を検出する。この解読結果に応じて、生成部26
0は、画像データを生成する。画像データは、順次イメ
ージバス24を介してビットマップメモリ18に格納さ
れる。
On the other hand, the decoding circuit 222 of the decoding unit 220 is supplied with the code data to deal with the image expansion processing. The decoding unit 220 includes a byte counter 226 and a pointer 22.
4. Decode the code data according to the contents of the register 228 (color data). The processing unit 240 also detects a change point from the reference line image data stored in the reference line image memory. According to the result of this decoding, the generation unit 26
0 generates image data. The image data is sequentially stored in the bitmap memory 18 via the image bus 24.

【0065】生成された画像データのデータ長は、バイ
トカウンタ266によってバイト数がカウントされてい
る(ステップB5)。このバイト数が、ステップB1に
おいて設定されたバイト数に達した場合、現在対象とし
ているラインについての処理を完了し、2値画像圧縮伸
張装置20は、CPU割り込みを発生する。これによ
り、次のラインについての処理に移る。次のラインの開
始位置では、前述と同様にして、ラン長、符号位置、及
び色データを設定し、その位置に対応するコードデータ
から解読して画像データを生成する。
The byte length of the generated image data is counted by the byte counter 266 (step B5). When the number of bytes reaches the number of bytes set in step B1, the process for the currently targeted line is completed, and the binary image compression / decompression device 20 generates a CPU interrupt. As a result, the process for the next line starts. At the start position of the next line, the run length, code position, and color data are set in the same manner as described above, and the image data is generated by decoding from the code data corresponding to that position.

【0066】以下、入力されるコードデータから順次画
像データの生成を行なう。ここでの画像伸張処理は、切
出しの対象とする部分画像が含まれる分割領域のみにつ
いて行なう。さらに、生成された画像データのライン数
は、ラインカウンタ255によってカウントされている
(ステップB6)。このライン数が、ステップB1にお
いて設定されたライン数に達した場合、所望する部分画
像の画像データの生成を完了し、2値画像圧縮伸張装置
20は、CPU割り込みを発生する。すなわち、一つの
分割領域の途中であっても、必要なライン数の画像伸張
処理が完了すれば、そこで伸張処理を打ち切る。
Thereafter, image data is sequentially generated from the input code data. The image expansion processing here is performed only on the divided areas including the partial image to be cut out. Further, the number of lines of the generated image data is counted by the line counter 255 (step B6). When the number of lines reaches the number of lines set in step B1, the generation of the image data of the desired partial image is completed, and the binary image compression / decompression device 20 generates a CPU interrupt. That is, if the image decompression processing for the required number of lines is completed even in the middle of one divided area, the decompression processing is terminated there.

【0067】このようにして、画像をnライン、mドッ
ト毎に水平垂直方向で分割して得られる複数の分割領域
について、水平方向の画像に分割して得られる領域のそ
れぞれについて先頭ラインに対応する参照ライン画像デ
ータを水平方向中間スタートテーブル40として作成
し、また垂直方向の画像に分割して得られる領域を規定
する位置毎に端数のラン長、符号位置、及び色データと
を対応づけて各ラインについて水平方向中間スタートテ
ーブル50−0,50−1,…として作成する。
In this way, with respect to a plurality of divided areas obtained by dividing the image in the horizontal and vertical directions for every n lines and m dots, each of the areas obtained by dividing the image in the horizontal direction corresponds to the leading line. The reference line image data to be created is created as the horizontal intermediate start table 40, and the fractional run length, the code position, and the color data are associated with each other for each position that defines an area obtained by dividing the image in the vertical direction. Horizontal intermediate start tables 50-0, 50-1, ... Are created for each line.

【0068】従って、各中間スタートテーブル40,5
0−0,50−1,…に登録されたデータを、2値画像
圧縮伸張回路20の所定の部分に設定することで、全体
の画像の中で所望する部分画像のみの画像データを生成
する画像伸張処理が可能となる。
Therefore, each intermediate start table 40, 5
By setting the data registered in 0-0, 50-1, ... In a predetermined portion of the binary image compression / expansion circuit 20, image data of only a desired partial image in the entire image is generated. Image expansion processing becomes possible.

【0069】この方式では、直接関係のない多量の画像
について伸張処理を行わないために、効率的に部分画像
の切出しが実行できると共に、膨大な画像メモリの容量
を必要としない。
In this method, since the expansion processing is not performed on a large number of images that are not directly related to each other, the partial images can be cut out efficiently, and a huge image memory capacity is not required.

【0070】[0070]

【発明の効果】以上のように本発明によれば、画像の圧
縮処理時、または伸張処理時に、画像データを所定のラ
イン毎に水平方向で分割して得られる各領域に対応する
参照ライン画像データと、所定のドット毎に垂直方向で
分割して得られる領域を分割する位置毎の各ラインにつ
いての端数のラン長と符号位置と色データとを対応づけ
て格納するので、この情報を用いることによって高速に
画像の部分切出しを行なうことができるものである。
As described above, according to the present invention, the reference line image corresponding to each area obtained by horizontally dividing the image data for each predetermined line at the time of the compression processing or the expansion processing of the image. This information is used because the data, the run length of the fraction, the code position, and the color data for each line for each position that divides the area obtained by dividing in the vertical direction for each predetermined dot are stored in association with each other. As a result, the image can be partially cut out at high speed.

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

【図1】本発明の一実施例に係わる2値画像データ切出
し方式を適用する2値画像圧縮伸張処理システムの構成
を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a binary image compression / expansion processing system to which a binary image data cutout method according to an embodiment of the present invention is applied.

【図2】図1中に示す2値画像圧縮伸張装置20の詳細
な構成を示すブロック図。
FIG. 2 is a block diagram showing a detailed configuration of a binary image compression / decompression device 20 shown in FIG.

【図3】原画像に対応させた画像データの概念図。FIG. 3 is a conceptual diagram of image data corresponding to an original image.

【図4】本実施例における水平方向中間スタートテーブ
ル40を説明するための概念図。
FIG. 4 is a conceptual diagram for explaining a horizontal intermediate start table 40 in the present embodiment.

【図5】本実施例における垂直方向中間スタートテーブ
ル50−0,50−1,…を説明するための概念図。
FIG. 5 is a conceptual diagram for explaining vertical intermediate start tables 50-0, 50-1, ... In the present embodiment.

【図6】本実施例におけるテーブル作成処理の手順を説
明するためのフローチャート。
FIG. 6 is a flowchart for explaining a procedure of table creation processing in this embodiment.

【図7】本実施例における中間スタートテーブルを用い
た部分画像を切り出す処理の手順を説明するためのフロ
ーチャート。
FIG. 7 is a flowchart for explaining a procedure of a process of cutting out a partial image using the intermediate start table in the present embodiment.

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

10…CPU、12…メモリ、14…外部記憶装置、1
6…画像入力装置、18…ビットマップメモリ、20…
2値画像圧縮伸張装置、21…表示装置、22…システ
ムバス、24…イメージバス、220…解読部、222
…解読回路、224…ポインタ、226…バイトカウン
タ、228…レジスタ、240…処理部、241…変化
点検出回路、242…演算回路、244…ランレングス
カウンタ、255…ラインカウンタ、260…生成部、
262…生成回路、264…ポインタ、266…バイト
カウンタ、280…I/Oレジスタ群。
10 ... CPU, 12 ... Memory, 14 ... External storage device, 1
6 ... Image input device, 18 ... Bitmap memory, 20 ...
Binary image compression / decompression device, 21 ... Display device, 22 ... System bus, 24 ... Image bus, 220 ... Decoding unit, 222
... Decoding circuit, 224 ... Pointer, 226 ... Byte counter, 228 ... Register, 240 ... Processing section, 241 ... Change point detection circuit, 242 ... Operation circuit, 244 ... Run length counter, 255 ... Line counter, 260 ... Generation section,
262 ... Generation circuit, 264 ... Pointer, 266 ... Byte counter, 280 ... I / O register group.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 2値画像の圧縮伸張を行なう2値画像圧
縮伸張処理システムにおいて、 前記2値画像を水平方向に所定のライン数毎及び垂直方
向に所定のドット数毎に分割して得られる複数の領域に
対して、水平方向に分割した領域の開始ラインに対応す
る参照ラインの画像データと、垂直方向に分割した領域
の分割位置を基準とする次の変化画素の1ドット手前ま
でのラン長、前記変化画素に対応する符号の開始位置、
及び前記開始位置より生成する画像の色を示す色データ
とが登録されたテーブルを作成するテーブル作成手段
と、 前記テーブル作成手段によって作成されたテーブルの内
容に基づいて、前記2値画像中の部分的な画像を、前記
2値画像全体に対応するコードデータ中の該当するコー
ドデータから生成する部分画像生成手段と、 を具備したことを特徴とする2値画像圧縮伸張処理シス
テム。
1. A binary image compression / expansion processing system for compressing / expanding a binary image, wherein the binary image is obtained by dividing the binary image by a predetermined number of lines in a horizontal direction and a predetermined number of dots in a vertical direction. For a plurality of areas, the image data of the reference line corresponding to the start line of the horizontally divided area and the run up to one dot before the next change pixel based on the division position of the vertically divided area A length, a start position of a code corresponding to the change pixel,
And a table creating unit that creates a table in which color data indicating the color of the image generated from the start position is registered, and a portion in the binary image based on the contents of the table created by the table creating unit. Partial image generating means for generating a specific image from the corresponding code data in the code data corresponding to the entire binary image, and a binary image compression / decompression processing system.
【請求項2】 前記テーブル作成手段は、2値画像全体
についての伸張処理または圧縮処理を行なう際に前記テ
ーブルを作成することを特徴とする請求項1記載の2値
画像圧縮伸張処理システム。
2. The binary image compression / expansion processing system according to claim 1, wherein the table creation means creates the table when performing expansion processing or compression processing for the entire binary image.
【請求項3】 2値画像を圧縮処理して得られるコード
データを解読する解読回路と、前記解読回路のコードの
解読位置を示す指示手段と、前記指示手段によって指示
された位置から前記解読回路によって解読されるコード
の色を指示する色指示手段を有する解読手段と、 前記解読手段によって解読されるコードデータに対応す
る参照ライン画像データから変化点を検出し、同変化点
と前記解読手段による解読結果に基づいて生成すべき画
像データのラン長を設定する処理手段と、 前記処理手段によって設定されたラン長に応じてイメー
ジデータを生成する生成手段と、 を設けた2値画像圧縮伸張装置を有し、 2値画像全体に対する圧縮処理または伸張処理の際に、
前記2値画像を水平方向に所定のライン数毎及び垂直方
向に所定のドット数毎に分割して得られる複数の領域に
対して、水平方向に分割した各領域の開始ラインに対応
する参照ラインの画像データと、垂直方向に分割した領
域の各分割位置を基準とする次の変化画素の1ドット手
前までのラン長、前記変化画素に対応する符号の開始位
置、及び前記開始位置より生成する画像の色を示す色デ
ータとが前記分割位置毎に各ラインについて登録された
テーブルを作成するテーブル作成手段と、 前記テーブル作成手段によって作成されたテーブルに登
録された、前記ラン長を前記処理手段に、前記符号の開
始位置を前記指示手段に、前記色データを前記色指示手
段にそれぞれ設定し、前記参照ラインの画像データを前
記処理手段に与えるテーブルデータ設定手段と、 を具備し、 前記テーブルデータ設定手段によって前記2値画像中の
部分画像に対応するデータを設定することにより部分画
像のみについて伸張処理を行なうことを特徴とする2値
画像圧縮伸張処理システム。
3. A decoding circuit for decoding code data obtained by compressing a binary image, instruction means for indicating a code decoding position of the decoding circuit, and the decoding circuit from the position instructed by the instruction means. Decoding means having a color designating means for designating the color of the code to be decoded by the deciphering means, and detecting a change point from the reference line image data corresponding to the code data decoded by the deciphering means. A binary image compression / decompression device provided with processing means for setting a run length of image data to be generated based on a decoding result, and generation means for generating image data according to the run length set by the processing means. And when performing compression processing or decompression processing for the entire binary image,
A reference line corresponding to the start line of each region divided in the horizontal direction for a plurality of regions obtained by dividing the binary image in the horizontal direction by a predetermined number of lines and in the vertical direction by a predetermined number of dots. Of the image data, the run length up to one dot before the next change pixel based on each division position of the vertically divided area, the start position of the code corresponding to the change pixel, and the start position. Table creating means for creating a table in which color data indicating the color of the image is registered for each line for each of the division positions; and the processing means for processing the run length registered in the table created by the table creating means. In addition, the start position of the code is set in the indicating means, the color data is set in the color indicating means, and the image data of the reference line is given to the processing means. A binary image compression, wherein the table data setting means sets data corresponding to a partial image in the binary image to perform decompression processing only on the partial image. Extension processing system.
【請求項4】 2値画像全体に対する圧縮処理または伸
張処理の際に、前記2値画像を水平方向に所定のライン
数毎及び垂直方向に所定のドット数毎に分割して得られ
る複数の領域に対して、水平方向に分割した各領域の開
始ラインに対応する参照ラインの画像データと、垂直方
向に分割した領域の各分割位置を基準とする次の変化画
素の1ドット手前までのラン長、前記変化画素に対応す
る符号の開始位置、及び前記開始位置より生成する画像
の色を示す色データとが前記分割位置毎に各ラインにつ
いて登録されたテーブルを予め作成し、 前記2値画像全体に対応するコードデータをもとに部分
画像を伸張処理する際に、前記テーブルから前記部分画
像の開始位置に対応する各データを用いて伸張処理を開
始し、 前記部分画像が生成された時点で伸張処理を終了するこ
とを特徴とする2値画像切出し方法。
4. A plurality of regions obtained by dividing the binary image by a predetermined number of lines in the horizontal direction and by a predetermined number of dots in the vertical direction during compression or expansion of the entire binary image. On the other hand, the image data of the reference line corresponding to the start line of each area divided in the horizontal direction and the run length up to one dot before the next change pixel based on each division position of the area divided in the vertical direction , A starting position of a code corresponding to the changed pixel and color data indicating a color of an image generated from the starting position are registered in advance for each line for each division position, and the entire binary image is created. When decompressing the partial image based on the code data corresponding to, the decompression process is started from the table by using each data corresponding to the start position of the partial image, and the partial image is generated. Binary image extraction method, characterized by terminating the decompression processing at point.
JP05324457A 1993-12-22 1993-12-22 Binary image compression / expansion processing system and binary image extraction method Expired - Fee Related JP3130721B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05324457A JP3130721B2 (en) 1993-12-22 1993-12-22 Binary image compression / expansion processing system and binary image extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05324457A JP3130721B2 (en) 1993-12-22 1993-12-22 Binary image compression / expansion processing system and binary image extraction method

Publications (2)

Publication Number Publication Date
JPH07184067A true JPH07184067A (en) 1995-07-21
JP3130721B2 JP3130721B2 (en) 2001-01-31

Family

ID=18166030

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05324457A Expired - Fee Related JP3130721B2 (en) 1993-12-22 1993-12-22 Binary image compression / expansion processing system and binary image extraction method

Country Status (1)

Country Link
JP (1) JP3130721B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100476389B1 (en) * 1997-07-10 2005-06-10 주식회사 팬택앤큐리텔 Binary Data Encoding Method of Image Signal
JP2016005205A (en) * 2014-06-18 2016-01-12 キヤノン株式会社 Imaging device and imaging device control method
JP2016005206A (en) * 2014-06-18 2016-01-12 キヤノン株式会社 Imaging device and imaging device control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100476389B1 (en) * 1997-07-10 2005-06-10 주식회사 팬택앤큐리텔 Binary Data Encoding Method of Image Signal
JP2016005205A (en) * 2014-06-18 2016-01-12 キヤノン株式会社 Imaging device and imaging device control method
JP2016005206A (en) * 2014-06-18 2016-01-12 キヤノン株式会社 Imaging device and imaging device control method

Also Published As

Publication number Publication date
JP3130721B2 (en) 2001-01-31

Similar Documents

Publication Publication Date Title
JP3504978B2 (en) Virtual editing of compressed images
JPH10134192A (en) Device and method for pattern matching encoding
JPH02266615A (en) Method and apparatus for parallel decoding of variable length code
JP2001203897A (en) Pattern-matching encoding device and its method
US5170445A (en) Document decompressing system
JP2664240B2 (en) Image data registration search method
JP3130721B2 (en) Binary image compression / expansion processing system and binary image extraction method
JP3261208B2 (en) Picture information prediction encoding and decoding apparatus
JP3795564B2 (en) Image expansion processing method
JP2818323B2 (en) Binary image data extraction method
JP2897876B2 (en) Code data expansion processing method
JPH10215366A (en) Method and device for extracting compression image data
JPH0531974A (en) Image processing device
JP2003189108A (en) Image compression method
JP3073072B2 (en) Image data compression and decompression method
JPH0522573A (en) Binary picture data segment editing system
JP2945553B2 (en) High-speed restoration of image data
JPH0522574A (en) Binary picture data segment system
JPH07184063A (en) Binary image compression system
JP2000217005A (en) Data coding method/decoding method, data coder/decoder, and image data recording system using the data coding method/decoding method
JPH09307456A (en) Variable length encoding and decoding device and method
EP0302432A2 (en) Document decompressing system
JP2002103700A (en) Image processor
JP2601169B2 (en) Image data compression coding system
JP3119387B2 (en) Image processing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees