JP2818323B2 - Binary image data extraction method - Google Patents

Binary image data extraction method

Info

Publication number
JP2818323B2
JP2818323B2 JP3183689A JP18368991A JP2818323B2 JP 2818323 B2 JP2818323 B2 JP 2818323B2 JP 3183689 A JP3183689 A JP 3183689A JP 18368991 A JP18368991 A JP 18368991A JP 2818323 B2 JP2818323 B2 JP 2818323B2
Authority
JP
Japan
Prior art keywords
data
code
binary image
image
line
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.)
Expired - Fee Related
Application number
JP3183689A
Other languages
Japanese (ja)
Other versions
JPH0522609A (en
Inventor
正佳 村山
文孝 佐藤
茂弘 梶原
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 JP3183689A priority Critical patent/JP2818323B2/en
Publication of JPH0522609A publication Critical patent/JPH0522609A/en
Application granted granted Critical
Publication of JP2818323B2 publication Critical patent/JP2818323B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、二値画像圧縮伸張処理
装置等において適用される、大サイズの画像データから
一部切出しを行なう二値画像データ切出し方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image data extracting system for extracting a part of large-size image data, which is applied to a binary image compression / expansion processor.

【0002】[0002]

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

【0003】従来では、このような符号化方式によって
符号化された二値画像から部分的なイメージの切出しを
行なう場合には、符号化されたコード(符号)データを
全て伸張し、元の画像に展開した後に、所望する部分を
切出していた。
Conventionally, when extracting a partial image from a binary image encoded by such an encoding method, all encoded code (code) data is decompressed and the original image is decompressed. Then, the desired part was cut out.

【0004】また、別の方法としては、特公昭63−3
3350号に示されるように、画像データの一次元ライ
ンを利用して、複数のセグメントに分割し、そのセグメ
ントの開始一次元ラインに対応するコードの先頭アドレ
スを記憶するテーブルを作成し、そのテーブルを利用し
て画像の途中から伸張する方法がある。
As another method, Japanese Patent Publication No. Sho 63-3
As shown in No. 3350, a one-dimensional line of image data is used to divide the image data into a plurality of segments, and a table for storing a start address of a code corresponding to a starting one-dimensional line of the segment is created. There is a method of decompressing from the middle of the image using.

【0005】[0005]

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

【0006】また、二値画像をセグメントに分割して各
セグメントの先頭ラインを一次元の符号化方式で符号化
する特公昭63−33350号に示す方法では、全ライ
ンが複数のラインに相関のある符号化方式で符号化する
MMR方式に対応できなかった。さらに、MR方式を用
いて符号化する際、各セグメントの先頭ラインを二次元
の符号化方式で符号化した場合には対応できなかった。
In the method disclosed in JP-B-63-33350, in which a binary image is divided into segments and the first line of each segment is encoded by a one-dimensional encoding method, all lines are correlated with a plurality of lines. It was not possible to cope with the MMR method of encoding with a certain encoding method. Furthermore, when encoding using the MR method, it is not possible to cope with the case where the first line of each segment is encoded using a two-dimensional encoding method.

【0007】本発明は前記のような点に鑑みてなされた
もので、大サイズの二値画像からであっても高速に画像
の部分切出しを行なうことが可能な二値画像データ切出
し方式を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and provides a binary image data extraction method capable of performing high-speed partial image extraction even from a large-sized binary image. The purpose is to do.

【0008】[0008]

【課題を解決するための手段】本発明は、二値画像の圧
縮伸張を行なうシステムにおいて、二値画像を所定のラ
イン数毎に分割して得られる複数の領域のそれぞれにつ
いて、前記領域の開始ラインに対応する参照ラインのイ
メージデータと前記二値画像が圧縮された際のコードデ
ータにおける前記開始ラインの先頭の符号位置を示すデ
ータとを対応づけて記憶するための符号位置データ記憶
手段を具備し、前記二値画像中の部分的な画像を切出す
際に、前記符号位置データ記憶手段に記憶されたデータ
をもとに画像を生成するように構成するものである。
According to the present invention, there is provided a system for compressing and decompressing a binary image, wherein each of a plurality of regions obtained by dividing the binary image by a predetermined number of lines is used to start the region. A code position data storage unit for storing the image data of the reference line corresponding to the line and the data indicating the code position of the start of the start line in the code data when the binary image is compressed, in association with each other Then, when cutting out a partial image in the binary image, an image is generated based on the data stored in the code position data storage means.

【0009】また本発明は、二値画像のデータをもとに
してコードデータを生成する圧縮処理、またはコードデ
ータをもとにして二値画像を生成する伸張処理を実行す
る二値画像圧縮伸張処理手段と、前記二値画像圧縮伸張
処理手段による処理によって得られたデータをもとに、
前記二値画像を所定のライン数毎に分割して得られる複
数の領域のそれぞれについて、前記領域の開始ラインに
対応する参照ラインのイメージデータと前記二値画像が
圧縮された際のコードデータにおける前記開始ラインの
先頭の符号位置を示すデータとを対応づけて記憶するた
めの符号位置データ記憶手段と、前記二値画像圧縮伸張
処理手段において扱われるコードデータを記憶するため
のコードデータ記憶手段とを具備し、前記二値画像圧縮
伸張処理手段において前記二値画像中の部分的な画像を
切出す際に、前記符号位置データ記憶手段に記憶された
データをもとに、コードデータ記憶手段に記憶されたコ
ードデータを切り出し、伸張することによって画像を生
成するように構成するものである。
The present invention also provides a binary image compression / expansion for executing a compression process for generating code data based on binary image data or a decompression process for generating a binary image based on code data. Processing means, based on the data obtained by the processing by the binary image compression / decompression processing means,
For each of a plurality of regions obtained by dividing the binary image for every predetermined number of lines, the image data of the reference line corresponding to the start line of the region and the code data when the binary image is compressed Code position data storage means for storing data indicating the start code position of the start line in association with each other, and code data storage means for storing code data handled in the binary image compression / decompression processing means When cutting out a partial image in the binary image in the binary image compression / decompression processing means, based on the data stored in the code position data storage means, the code data storage means An image is generated by cutting out and expanding the stored code data.

【0010】特に、二値画像圧縮伸張処理手段は、切り
出し域に最も近い直前の領域の開始ラインに対応する参
照ラインのイメージデータを設定する参照ライン設定手
段と、前記参照ライン設定手段によって設定された参照
ラインに対応する開始ラインの先頭の符号位置を設定す
る符号位置設定手段とを具備し、前記コードデータ記憶
手段に記憶されたコードデータを、前記符号位置設定手
段によって設定された符号位置まで読み飛ばし、開始位
置以降のコードデータについて前記参照ライン設定手段
に設定された参照ラインのイメージデータを参照して伸
張することによって部分的な画像を生成するものであ
る。
In particular, the binary image compression / expansion processing means is set by the reference line setting means for setting image data of a reference line corresponding to the start line of the area immediately before the cut-out area, and the reference line setting means. Code position setting means for setting the leading code position of the start line corresponding to the reference line, wherein the code data stored in the code data storage means is transferred to the code position set by the code position setting means. The partial image is generated by skipping and expanding the code data after the start position by referring to the image data of the reference line set in the reference line setting means.

【0011】また、前記二値画像圧縮伸張処理手段は、
切り出し域に最も近い直前の領域の開始ラインに対応す
る参照ラインのイメージデータを設定する参照ライン設
定手段と、前記参照ライン設定手段によって設定された
参照ラインに対応する開始ラインの先頭の符号位置を設
定する符号位置設定手段とを具備し、前記コードデータ
記憶手段に記憶されたコードデータを、前記符号位置設
定手段によって設定された符号位置から読出し、前記参
照ライン設定手段に設定された参照ラインのイメージデ
ータを参照して伸張することによって部分的な画像を生
成するものである。
Further, the binary image compression / expansion processing means comprises:
A reference line setting means for setting image data of a reference line corresponding to the start line of the area immediately before the cut-out area; and a code position at the head of the start line corresponding to the reference line set by the reference line setting means. Code position setting means for setting, the code data stored in the code data storage means is read from the code position set by the code position setting means, the reference line set in the reference line setting means A partial image is generated by decompressing with reference to image data.

【0012】また、二値画像圧縮伸張処理手段は、分割
された二値画像の各領域のライン数を保持するためのラ
イン数保持手段と、処理されたコードデータのバイト数
を計数するバイト数計数手段と、処理を始めるべきコー
ドの先頭ビット位置を示すビット位置保持手段と、処理
対象とするラインに対応する参照ラインのイメージデー
タを保持する参照ライン保持手段と、処理されたライン
数を計数するライン数計数手段とを具備し、伸張処理の
際に、前記ライン数計数手段によって計数された伸張処
理の対象とするライン数が、前記ライン数保持手段に保
持されたライン数に達したときに、圧縮処理と同様にイ
メージデータと符号位置を示すデータを前記符号位置デ
ータ記憶手段に記憶するものである。
The binary image compression / expansion processing means includes a line number holding means for holding the number of lines in each area of the divided binary image, and a byte number for counting the number of bytes of the processed code data. Counting means, bit position holding means for indicating a head bit position of a code to start processing, reference line holding means for holding image data of a reference line corresponding to a line to be processed, and counting the number of processed lines The number of lines to be subjected to the expansion process counted by the line number counting unit reaches the number of lines held by the line number holding unit. Further, similarly to the compression processing, image data and data indicating a code position are stored in the code position data storage means.

【0013】また、二値画像圧縮伸張処理手段は、分割
された二値画像の各領域のライン数を保持するためのラ
イン数保持手段と、処理されたコードデータのバイト数
を計数するバイト数計数手段と、処理を始めるべきコー
ドの先頭ビット位置を示すビット位置保持手段と、処理
対象とするラインに対応する参照ラインのイメージデー
タを保持する参照ライン保持手段と、処理されたライン
数を計数するライン数計数手段とを具備し、圧縮処理の
際に、前記ライン数計数手段によって計数された圧縮処
理の対象とするライン数が、前記ライン数保持手段に保
持されたライン数に達したときに、前記参照ライン保持
手段に保持されたイメージデータと、前記バイト数計数
手段によって計数されたバイト数及び前記ビット位置保
持手段に保持された先頭ビット位置によって示される符
号位置を示すデータを、前記符号位置データ記憶手段に
記憶するものである。
The binary image compression / expansion processing means includes a line number holding means for holding the number of lines in each area of the divided binary image, and a byte number for counting the number of bytes of the processed code data. Counting means, bit position holding means for indicating a head bit position of a code to start processing, reference line holding means for holding image data of a reference line corresponding to a line to be processed, and counting the number of processed lines The number of lines to be subjected to the compression processing counted by the line number counting means during the compression processing reaches the number of lines held by the line number holding means. The image data held by the reference line holding means, the number of bytes counted by the byte number counting means, and the image data held by the bit position holding means. Data indicating a code position indicated by the first bit position, and stored in the code position data storage means.

【0014】[0014]

【作用】このような構成によれば、領域の開始ラインに
対応する参照ラインのイメージデータとコードデータに
おける開始ラインの先頭の符号位置を示すデータとが対
応づけて記憶されるので、部分的な画像の切り出しを行
なう際、すなわち所望する切り出し域に対応するイメー
ジデータの伸張を行なう際に、参照ラインのイメージデ
ータを参照することができるので、MR方式、MMR方
式を用いることができる。
According to this structure, the image data of the reference line corresponding to the start line of the area and the data indicating the leading code position of the start line in the code data are stored in association with each other. When the image is cut out, that is, when the image data corresponding to the desired cut-out area is expanded, the image data of the reference line can be referred to, so that the MR method and the MMR method can be used.

【0015】特に、圧縮伸張処理手段では、符号位置設
定手段によって設定された符号位置まで前記コードデー
タ記憶手段に記憶されたコードデータを読み飛ばし、不
要なデータの伸張処理を行なわないようにしたことで、
切り出し処理が高速化される。
In particular, the compression / expansion processing means skips the code data stored in the code data storage means up to the code position set by the code position setting means, and does not perform unnecessary data expansion processing. so,
The cutout processing is sped up.

【0016】また、前記コードデータ記憶手段に記憶さ
れたコードデータを任意の位置から読み出せる場合に、
圧縮伸張処理手段では、符号位置設定手段によって設定
された符号位置から前記コードデータ記憶手段に記憶さ
れたコードデータを読み出すことによって、不要なデー
タの伸張処理を行なわないようにし、さらに切り出し処
理を高速化できる。
Further, when the code data stored in the code data storage means can be read from an arbitrary position,
The compression / decompression processing means reads out the code data stored in the code data storage means from the code position set by the code position setting means so that unnecessary data decompression processing is not performed, and furthermore, the cutout processing is performed at high speed. Can be

【0017】さらに、前記符号位置データ記憶手段に
は、二値画像圧縮伸張処理手段に設けられたライン数保
持手段、バイト数計数手段、ビット位置保持手段、参照
ライン保持手段、ライン数計数手段の内容に基づいて、
圧縮処理の際に、参照ラインのイメージデータ、及び開
始ラインの先頭の符号位置を示すデータが記憶される。
さらに、二値画像が既に符号化されている場合には、伸
張処理時の際に、ライン数保持手段、バイト数計数手
段、ビット位置保持手段、参照ライン保持手段、ライン
数計数手段の内容に基づいて、参照ラインのイメージデ
ータ、及び開始ラインの先頭の符号位置を示すデータが
記憶される。
Further, the code position data storage means includes a line number holding means, a byte number counting means, a bit position holding means, a reference line holding means, and a line number counting means provided in the binary image compression / decompression processing means. Based on the content,
At the time of compression processing, image data of a reference line and data indicating a code position at the head of a start line are stored.
Further, when the binary image has already been encoded, the contents of the line number holding means, byte number counting means, bit position holding means, reference line holding means, and line number counting means are used during the decompression processing. Based on this, the image data of the reference line and the data indicating the leading code position of the start line are stored.

【0018】[0018]

【実施例】以下、図面を参照して本発明の一実施例を説
明する。図1は同実施例に係わる二値画像データ切出し
方式を適用するシステムにおける二値画像圧縮伸張処理
装置の構成を示すブロック図である。図1に示すよう
に、二値画像圧縮伸張処理装置10は、変化点検出回路
12、解読回路14、生成回路16、I/Oレジスタ群
18、バイトカウンタ20、ラインカウンタ22、ポイ
ンタバッファ24,26、及び参照ライン画像メモリ2
7により構成され、システムバス28を介してCPU
(図示せず)に接続されている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a binary image compression / expansion processing apparatus in a system to which a binary image data extraction system according to the embodiment is applied. As shown in FIG. 1, the binary image compression / decompression processing device 10 includes a change point detection circuit 12, a decoding circuit 14, a generation circuit 16, an I / O register group 18, a byte counter 20, a line counter 22, a pointer buffer 24, 26, and reference line image memory 2
7 and a CPU via a system bus 28.
(Not shown).

【0019】本システムは、二値画像圧縮伸張処理装置
10に対して画像伸張時に与えられるコードデータ、及
び後述する中間スタートテーブル50(符号位置データ
記憶手段)としての情報等を格納するための記憶装置
(図示せず)が設けられている。また、画像圧縮の対象
とする画像データは、例えばITV等の画像入力装置
(図示せず)によって本システムに入力されるものとす
る。
The present system stores code data given to the binary image compression / decompression processing device 10 at the time of image decompression, and information and the like as an intermediate start table 50 (code position data storage means) described later. An apparatus (not shown) is provided. It is assumed that image data to be subjected to image compression is input to the system by an image input device (not shown) such as an ITV.

【0020】変化点検出回路12は、参照ライン画像メ
モリ27に格納された復号化、あるいは符号化の対象と
しているラインの直前のライン(参照ライン)の画像デ
ータから変化点の検出を行なうものである。
The change point detection circuit 12 detects a change point from the image data of the line (reference line) immediately before the line to be decoded or encoded stored in the reference line image memory 27. is there.

【0021】解読回路14は、画像伸張時には符号(コ
ードデータ)を入力し、画像圧縮時には画像データを入
力して、データの解読を行なうものである。
The decoding circuit 14 inputs a code (code data) at the time of image expansion and inputs image data at the time of image compression to decode the data.

【0022】生成回路16は、変化点検出回路12によ
って検出された変化点、及び解読回路14によって解読
された結果に基づいて、画像伸張時には画像データを生
成し、画像圧縮時にはコードデータを生成するものであ
る。
The generation circuit 16 generates image data at the time of image expansion and code data at the time of image compression based on the change points detected by the change point detection circuit 12 and the result decoded by the decoding circuit 14. Things.

【0023】I/Oレジスタ群18は、同装置における
圧縮伸張処理に用いられる各種データを保持するもの
で、その中には画像を複数の分割領域に分割するための
ライン数nを設定するためのレジスタ(ライン数保持手
段)を含んでいる。
An I / O register group 18 holds various data used for compression / expansion processing in the same device, and includes therein a line number n for dividing an image into a plurality of divided areas. (Line number holding means).

【0024】バイトカウンタ20は、画像伸張時、コー
ドデータの先頭バイトからコードデータのバイト数のカ
ウントを行なうものである。ポインタバッファ24は、
伸張処理時、解読回路14に対してコードデータにおけ
る解読を始めるべきコードの先頭ビット位置を示すもの
である。
The byte counter 20 counts the number of bytes of the code data from the first byte of the code data when the image is expanded. The pointer buffer 24
In the decompression process, the decoding circuit 14 indicates the position of the first bit of the code to start decoding in the code data.

【0025】ラインカウンタ22は、圧縮,伸張処理を
1ライン分実行する毎に、I/Oレジスタ群18中に設
定された分割領域内のライン数nまでカウントを行なう
ものである。ポインタバッファ26は、圧縮処理時、生
成回路16に対してコードデータにおけるコードをつな
ぎ合せるべき先頭のビット位置を示すものである。
The line counter 22 counts up to the number n of lines in the divided area set in the I / O register group 18 every time the compression / expansion processing is executed for one line. The pointer buffer 26 indicates the first bit position where the codes in the code data should be joined to the generation circuit 16 during the compression processing.

【0026】次に、同実施例におけるデータ構造につい
て説明する。図2に原画に対応させた画像データ30の
概念図を示している。図3に図2に示す画像データ30
に対応する二次元的に配置したコードデータ40の概念
図を示している。さらに図4に画像の圧縮、または伸張
処理の際に生成され、部分的な画像切出しを行なう場合
に用いられる中間スタートテーブル50の概念図を示し
ている。
Next, a data structure in the embodiment will be described. FIG. 2 shows a conceptual diagram of the image data 30 corresponding to the original image. FIG. 3 shows the image data 30 shown in FIG.
2 is a conceptual diagram of two-dimensionally arranged code data 40 corresponding to. FIG. 4 is a conceptual diagram of an intermediate start table 50 generated at the time of image compression or decompression processing and used when performing partial image clipping.

【0027】図2に示す画像データ30は、nライン毎
に複数の分割領域30−1,30−2,…に分割されて
いる。図3に示すコードデータ40は、図2に示す画像
データ30に対応づけて示している。一般に、符号化さ
れたデータは、同じ長さの画像データを符号化してもデ
ータの内容によって長さが異なるので、符号化されたデ
ータ上では、各分割領域40−1,40−2,…の先頭
位置(先頭位置0,1,2,…)には規則性がない。
The image data 30 shown in FIG. 2 is divided into a plurality of divided areas 30-1, 30-2,... Every n lines. The code data 40 shown in FIG. 3 is shown in association with the image data 30 shown in FIG. In general, the length of encoded data differs depending on the content of the data even if image data of the same length is encoded. Therefore, on the encoded data, each divided area 40-1, 40-2,. Have no regularity at the head position (head positions 0, 1, 2,...).

【0028】図4に示す中間スタートテーブル50に
は、図2に示す画像データ30中の各分割領域30−
1,30−2,…の先頭ラインに対応する参照ライン
と、図3に示す各分割領域40−1,40−2,…の先
頭位置(コード開始位置)を示すコードデータ40中に
おける先頭からのバイト位置とそのバイト内のビット位
置とが対応づけられて格納されるものである。なお、第
1の分割領域30−1の先頭ライン(符号化ライン)に
対応する参照ラインのイメージデータは、全てのビット
が白を示す“0”であるものとする。
The intermediate start table 50 shown in FIG. 4 stores each divided area 30- in the image data 30 shown in FIG.
, 30-2,..., And from the head in the code data 40 indicating the head position (code start position) of each of the divided areas 40-1, 40-2,. And the bit position in the byte are stored in association with each other. In the image data of the reference line corresponding to the first line (encoding line) of the first divided area 30-1, all bits are “0” indicating white.

【0029】中間スタートテーブル50では、画像デー
タ30中の分割領域と、それぞれに対応するコードデー
タを1対1に対応させている。従って、例えば圧縮画像
データから部分的に画像を切出す際に、画像データ30
において切出したい部分画像を含む分割領域が判れば、
コードデータ40における該当分割領域のコード開始位
置を中間スタートテーブル50より参照してくることに
より、そのアドレスから復号化を開始し必要なライン数
の復号化が完了すれば、そこで復号化を打ち切れば必要
なデータの効率の良い切出しができる。
In the intermediate start table 50, the divided areas in the image data 30 and the corresponding code data are made to correspond one-to-one. Therefore, for example, when partially extracting an image from the compressed image data, the image data 30
If the divided area including the partial image to be cut out is known in,
By referring to the code start position of the corresponding divided area in the code data 40 from the intermediate start table 50, decoding is started from that address, and if decoding of the required number of lines is completed, decoding is stopped there. Necessary data can be efficiently extracted.

【0030】次に、同実施例の動作について説明する。Next, the operation of the embodiment will be described.

【0031】ここでは、二値画像圧縮伸張処理装置10
における、部分的な伸張処理(部分画像の切出し)の動
作を図1乃至図4を参照しながら説明する。
Here, the binary image compression / decompression processing device 10
1 will be described with reference to FIGS. 1 to 4. FIG.

【0032】まず、図4に示す中間スタートテーブル5
0の作成方法について説明する。はじめに、I/Oレジ
スタ群18がアクセスされて、画像データ30における
分割領域内のライン数nが設定される。中間スタートテ
ーブル50は、元のデータが画像データの場合には画像
圧縮時に、元のデータがコードデータの場合には最初の
画像伸張時に作成される。
First, the intermediate start table 5 shown in FIG.
A method of creating 0 will be described. First, the I / O register group 18 is accessed, and the number n of lines in the divided area in the image data 30 is set. The intermediate start table 50 is created at the time of image compression when the original data is image data, and is created at the time of the first image decompression when the original data is code data.

【0033】画像データ、またはコードデータが二値画
像圧縮伸張処理装置10(の解読回路14)に入力され
ると、圧縮処理、または伸張処理を順次実行する。この
時、1ライン分の処理を実行する毎に、ラインカウンタ
22において処理したライン数をカウントする。また、
作成されたコードデータのバイト数(圧縮時)、あるい
は入力されたコードデータのバイト数(伸張時)が、バ
イトカウンタ20によってカウントされる。
When image data or code data is input to (the decoding circuit 14 of) the binary image compression / expansion processing apparatus 10, the compression processing or expansion processing is sequentially executed. At this time, every time the processing for one line is executed, the number of processed lines is counted by the line counter 22. Also,
The number of bytes of the created code data (at the time of compression) or the number of bytes of the input code data (at the time of expansion) is counted by the byte counter 20.

【0034】ラインカウンタ22のカウント値が予め設
定されたライン数(n)分の処理が終了したことを示す
値に達すると、二値画像圧縮伸張処理装置10は、CP
U割り込みを発生する。圧縮時には、ポインタバッファ
26の内容は、次のラインのコードをつなぎ合わせるべ
き先頭のビット位置を示している。また、伸張時には、
ポインタバッファ24の内容は、次のラインの解読を始
めるべきコードの先頭ビット位置(コード開始位置)を
示している。
When the count value of the line counter 22 reaches a value indicating that the processing for the preset number of lines (n) has been completed, the binary image compression / expansion processing device 10
Generate a U interrupt. At the time of compression, the contents of the pointer buffer 26 indicate the first bit position to which the code of the next line should be connected. Also, at the time of extension,
The contents of the pointer buffer 24 indicate the start bit position (code start position) of the code at which decoding of the next line is to be started.

【0035】ここで、CPUからのI/O命令により、
参照ラインデータ、及びバイトカウンタ20、ポインタ
バッファ26の内容(圧縮時)、あるいはポインタバッ
ファ24の内容(伸張時)が、システムバス28を介し
て読み込まれる。
Here, according to an I / O instruction from the CPU,
The reference line data and the contents of the byte counter 20 and the pointer buffer 26 (at the time of compression) or the contents of the pointer buffer 24 (at the time of expansion) are read via the system bus 28.

【0036】システム側では、二値画像圧縮伸張処理装
置10から読み込んだデータを中間スタートテーブル5
0に順次記憶する。ここで、参照ラインデータは、次の
処理対象とする分割領域に先頭ラインに対応する参照ラ
インのイメージデータとなっている。この参照ラインの
イメージデータと、コードデータ40中における先頭か
らのバイト位置とそのバイト内のビット位置とが対応づ
けられる。なお、中間スタートテーブル50に記憶され
た内容に対応した圧縮伸張処理に伴うコードデータ40
も保持される(図3参照)。
On the system side, the data read from the binary image compression / decompression processor 10 is stored in the intermediate start table 5.
0 is sequentially stored. Here, the reference line data is the image data of the reference line corresponding to the first line in the divided area to be processed next. The image data of the reference line is associated with the byte position from the head in the code data 40 and the bit position in the byte. The code data 40 associated with the compression / decompression processing corresponding to the contents stored in the intermediate start table 50
(See FIG. 3).

【0037】その後、二値画像圧縮伸張処理装置10に
おける処理を再開させる。そして、前記処理を画像デー
タ全体に対して続けて行なうことによって、全画像中の
各分割領域に関する中間スタートテーブル50が作成さ
れる。
Thereafter, the processing in the binary image compression / expansion processing apparatus 10 is restarted. Then, the above processing is continuously performed on the entire image data, whereby the intermediate start table 50 for each divided area in the entire image is created.

【0038】次に、中間スタートテーブル50を用いて
部分的な伸張処理(部分画像の切出し)を行なう具体的
な動作について説明する。
Next, a specific operation of performing a partial decompression process (cutting out a partial image) using the intermediate start table 50 will be described.

【0039】画像データの切出し伸張を行なう際には、
コードデータ40、及び中間スタートテーブル50から
データを読出して実行する。ここでは、所望する切出し
領域に最も近い手前の分割領域から伸張処理を行なう。
このため、まず伸張処理開始前に、分割領域先頭のライ
ンに対応する参照ラインのイメージデータと、このデー
タに対応するコード開始位置が中間スタートテーブル5
0から読み出される。
When extracting and expanding image data,
The data is read from the code data 40 and the intermediate start table 50 and executed. Here, the expansion processing is performed from the nearest divided area closest to the desired cutout area.
Therefore, before starting the decompression processing, the image data of the reference line corresponding to the line at the beginning of the divided area and the code start position corresponding to this data are stored in the intermediate start table 5.
It is read from 0.

【0040】読み出されたデータは、システムバス28
を介して二値画像圧縮伸張処理装置10に与えられる。
二値画像圧縮伸張処理装置10では、CPUによるI/
O命令によって、参照ラインのイメージデータが参照ラ
イン画像メモリ27に格納され、コード開始位置を示す
バイト位置,同バイト内のビット位置がそれぞれバイト
カウンタ20,ポインタバッファ24に設定される。
The read data is transmitted to the system bus 28
To the binary image compression / decompression processing device 10 via
In the binary image compression / decompression processing device 10, the I / O
By the O command, the image data of the reference line is stored in the reference line image memory 27, and the byte position indicating the code start position and the bit position in the byte are set in the byte counter 20 and the pointer buffer 24, respectively.

【0041】伸張処理が起動され、コードデータ40が
解読回路14に入力されると、1バイトの入力毎にバイ
トカウンタ20がカウントダウンされる。入力されたコ
ードデータは、バイトカウンタ20の値が「0」になる
間、読み飛ばされる。すなわち、切出しの対象とする画
像が含まれる分割領域以前の不要なコードデータについ
ては伸張処理を行なわない。順次コードデータが入力さ
れて、バイトカウンタ20の値が「0」になると、所望
する伸張を始めるべき領域の先頭のコードデータを含む
バイトが取り込まれていることになる。そして、ポイン
タバッファ24は、同バイト内の解読開始位置を示して
いる。
When the decompression process is started and the code data 40 is input to the decoding circuit 14, the byte counter 20 is counted down every time one byte is input. The input code data is skipped while the value of the byte counter 20 is "0". That is, decompression processing is not performed on unnecessary code data before the divided area including the image to be extracted. When the code data is sequentially input and the value of the byte counter 20 becomes "0", it means that the byte including the code data at the head of the area where the desired decompression should be started is taken. The pointer buffer 24 indicates the decoding start position in the byte.

【0042】また、コードデータ40を任意の位置から
読み出せる場合には、伸張処理が起動された際に、バイ
トカウンタ20で示されているコードデータ40のバイ
ト位置からデータを入力しても良い。これにより、分割
領域以前の不要なコードデータを読み飛ばす時間を、さ
らに短縮することができる。
If the code data 40 can be read from an arbitrary position, the data may be input from the byte position of the code data 40 indicated by the byte counter 20 when the decompression process is started. . As a result, the time for skipping unnecessary code data before the divided area can be further reduced.

【0043】ここで、変化点検出回路12は、符号化ラ
イン(分割領域の先頭ライン)に対応する参照ラインの
変化点の検出を、参照ライン画像メモリ27に格納され
た参照ラインデータをもとに行なう。一方、解読回路1
4は、ポインタバッファ24の内容によって示される解
読開始位置から解読を行なう。生成回路16は、変化点
検出回路12における変化点の検出結果、及び解読回路
14における解読結果に応じて画像の生成を行なう。
Here, the change point detection circuit 12 detects the change point of the reference line corresponding to the coding line (the leading line of the divided area) based on the reference line data stored in the reference line image memory 27. Perform On the other hand, decryption circuit 1
4 performs decoding from the decoding start position indicated by the contents of the pointer buffer 24. The generation circuit 16 generates an image according to the detection result of the change point in the change point detection circuit 12 and the decoding result in the decoding circuit 14.

【0044】以下、入力されるコードデータについて順
次画像の生成を行なう。ここでの伸張処理は、切出しの
対象とする部分画像が含まれる分割領域のみについて行
なう。また、一つの分割領域の途中で必要なライン数の
復号化が完了すれば、そこで伸張処理を打ち切る。
Hereinafter, an image is sequentially generated for the input code data. The decompression process is performed only on the divided region including the partial image to be extracted. If decoding of the required number of lines is completed in the middle of one divided area, the decompression process is terminated there.

【0045】このようにして、画像をnライン毎に分割
して得られる複数の分割領域のそれぞれについて、先頭
ラインに対応する参照ラインのイメージデータとコード
開始位置を示す情報とが対応づけられて中間スタートテ
ーブル50に格納される。
In this way, for each of a plurality of divided areas obtained by dividing an image every n lines, the image data of the reference line corresponding to the head line and the information indicating the code start position are associated with each other. It is stored in the intermediate start table 50.

【0046】このため、部分画像の切出しを行なう際に
は、中間スタートテーブル50に格納されたコード開始
位置が示す情報をもとに、部分画像を含む分割領域につ
いてのみ伸張処理を行なう。
Therefore, when a partial image is cut out, expansion processing is performed only on a divided area including the partial image based on the information indicated by the code start position stored in the intermediate start table 50.

【0047】この方式では、直接関係のない多量の画像
について伸張処理を行わないために、効率的に部分画像
の切出しが実行できると共に、膨大な画像メモリの容量
を必要としない。また、中間スタートテーブル50に
は、コード開始位置を示す情報と対応づけて参照ライン
のイメージデータが格納されているので、このデータを
用いることによってMMR方式を用いて符号化を行なう
システムにも対応できる。また、MR方式においても、
分割領域の開始ラインを一次元ラインに限る必要がな
い。
In this method, since the decompression process is not performed on a large number of images which are not directly related, the extraction of the partial image can be performed efficiently, and a huge image memory capacity is not required. Further, since the intermediate start table 50 stores the image data of the reference line in association with the information indicating the code start position, by using this data, a system that performs encoding using the MMR method is also supported. it can. In the MR system,
It is not necessary to limit the start line of the divided area to a one-dimensional line.

【0048】[0048]

【発明の効果】以上のように本発明によれば、画像の圧
縮時、または伸張時に、符号化された画像データに対す
る、画像の部分切出しのできる参照ラインのイメージデ
ータとコード開始位置を示す情報を格納するので、この
情報を用いることによって高速に画像の部分切出しを行
なうことができるものである。
As described above, according to the present invention, when compressing or decompressing an image, the image data of the reference line from which the image can be partially cut out and the information indicating the code start position with respect to the encoded image data. Is stored, the partial cutout of the image can be performed at high speed by using this information.

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

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

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

【図3】図2に示す画像データに対応する二次元的に配
置したコードデータの概念図。
3 is a conceptual diagram of two-dimensionally arranged code data corresponding to the image data shown in FIG. 2;

【図4】中間スタートテーブルの概念図である。FIG. 4 is a conceptual diagram of an intermediate start table.

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

10…二値画像圧縮伸張処理装置(二値画像圧縮伸張処
理手段)、12…変化点検出回路、14…解読回路、1
6…生成回路、18…I/Oレジスタ群、20…バイト
カウンタ(バイト数計数手段)、22…ラインカウンタ
(ライン数計数手段)、24,26…ポインタバッファ
(ビット位置保持手段)、27…参照ライン画像メモリ
(参照ライン保持手段)、28…システムバス。
10: binary image compression / expansion processing device (binary image compression / expansion processing means), 12: change point detection circuit, 14: decoding circuit, 1
6 ... Generating circuit, 18 ... I / O register group, 20 ... Byte counter (byte number counting means), 22 ... Line counter (line number counting means), 24, 26 ... Pointer buffer (bit position holding means), 27 ... Reference line image memory (reference line holding means), 28 ... System bus.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04N 1/41 - 1/419 H04N 1/38 - 1/393──────────────────────────────────────────────────の Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04N 1/41-1/419 H04N 1/38-1/393

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 二値画像の圧縮伸張を行なうシステムに
おいて、 前記二値画像を所定のライン数毎に分割して得られる複
数の領域のそれぞれについて、前記領域の開始ラインに
対応する参照ラインのイメージデータと前記二値画像が
圧縮された際のコードデータにおける前記開始ラインの
先頭の符号位置を示すデータとを対応づけて記憶するた
めの符号位置データ記憶手段を具備し、 前記二値画像中の部分的な画像を切出す際に、前記符号
位置データ記憶手段に記憶されたデータをもとに画像を
生成することを特徴とする二値画像データ切出し方式。
1. A system for compressing and decompressing a binary image, wherein each of a plurality of regions obtained by dividing the binary image by a predetermined number of lines includes a reference line corresponding to a start line of the region. A code position data storage unit for storing image data and data indicating the code position of the start of the start line in the code data when the binary image is compressed, in association with each other, Wherein the image is generated based on the data stored in the code position data storage means when the partial image is extracted.
【請求項2】 二値画像の圧縮伸張を行なうシステムに
おいて、 二値画像のデータをもとにしてコードデータを生成する
圧縮処理、またはコードデータをもとにして二値画像を
生成する伸張処理を実行する二値画像圧縮伸張処理手段
と、 前記二値画像圧縮伸張処理手段による処理によって得ら
れたデータをもとに、前記二値画像を所定のライン数毎
に分割して得られる複数の領域のそれぞれについて、前
記領域の開始ラインに対応する参照ラインのイメージデ
ータと前記二値画像が圧縮された際のコードデータにお
ける前記開始ラインの先頭の符号位置を示すデータとを
対応づけて記憶するための符号位置データ記憶手段と、 前記二値画像圧縮伸張処理手段において扱われるコード
データを記憶するためのコードデータ記憶手段と、 を具備し、 前記二値画像圧縮伸張処理手段において前記二値画像中
の部分的な画像を切出す際に、前記符号位置データ記憶
手段に記憶されたデータをもとに、コードデータ記憶手
段に記憶されたコードデータを切り出し、伸張すること
によって画像を生成することを特徴とする二値画像デー
タ切出し方式。
2. A compression processing for generating code data based on data of a binary image, or a decompression processing for generating a binary image based on code data in a system for compressing and expanding a binary image. A binary image compression / expansion processing means for executing a plurality of lines obtained by dividing the binary image by a predetermined number of lines based on data obtained by the processing by the binary image compression / expansion processing means. For each of the regions, the image data of the reference line corresponding to the start line of the region and the data indicating the leading code position of the start line in the code data when the binary image is compressed are stored in association with each other. Code position data storage means, and code data storage means for storing code data handled in the binary image compression / decompression processing means. When the binary image compression / expansion processing unit cuts out a partial image in the binary image, the binary image is stored in the code data storage unit based on the data stored in the code position data storage unit. A binary image data extraction method, wherein an image is generated by extracting and expanding code data.
【請求項3】 前記二値画像圧縮伸張処理手段は、 切り出し域に最も近い直前の領域の開始ラインに対応す
る参照ラインのイメージデータを設定する参照ライン設
定手段と、 前記参照ライン設定手段によって設定された参照ライン
に対応する開始ラインの先頭の符号位置を設定する符号
位置設定手段とを具備し、 前記コードデータ記憶手段に記憶されたコードデータ
を、前記符号位置設定手段によって設定された符号位置
まで読み飛ばし、開始位置以降のコードデータについて
前記参照ライン設定手段に設定された参照ラインのイメ
ージデータを参照して伸張することによって部分的な画
像を生成することを特徴とする第2請求項記載の二値画
像データ切出し方式。
3. The binary image compression / expansion processing means includes: a reference line setting means for setting image data of a reference line corresponding to a start line of a region immediately before the cut-out area; and a reference line setting means. Code position setting means for setting a head code position of a start line corresponding to the reference line thus set, wherein the code data stored in the code data storage means is converted to a code position set by the code position setting means. 3. A partial image is generated by skipping up to the start position and expanding the code data after the start position by referring to the image data of the reference line set in the reference line setting means. Binary image data extraction method.
【請求項4】 前記二値画像圧縮伸張処理手段は、 切り出し域に最も近い直前の領域の開始ラインに対応す
る参照ラインのイメージデータを設定する参照ライン設
定手段と、 前記参照ライン設定手段によって設定された参照ライン
に対応する開始ラインの先頭の符号位置を設定する符号
位置設定手段とを具備し、 前記コードデータ記憶手段に記憶されたコードデータ
を、前記符号位置設定手段によって設定された符号位置
から読出し、前記参照ライン設定手段に設定された参照
ラインのイメージデータを参照して伸張することによっ
て部分的な画像を生成することを特徴とする第2請求項
記載の二値画像データ切出し方式。
4. A reference line setting means for setting image data of a reference line corresponding to a start line of a region immediately before a cut-out area, wherein the reference image is set by the reference line setting means. Code position setting means for setting a head code position of a start line corresponding to the reference line thus set, wherein the code data stored in the code data storage means is converted to a code position set by the code position setting means. 3. A binary image data extracting method according to claim 2, wherein a partial image is generated by reading out from a reference line and expanding the image by referring to image data of a reference line set in the reference line setting means.
【請求項5】 二値画像圧縮伸張処理手段は、 分割された二値画像の各領域のライン数を保持するため
のライン数保持手段と、 処理されたコードデータのバイト数を計数するバイト数
計数手段と、 処理を始めるべきコードの先頭ビット位置を示すビット
位置保持手段と、 処理対象とするラインに対応する参照ラインのイメージ
データを保持する参照ライン保持手段と、 処理されたライン数を計数するライン数計数手段と、 を具備し、 伸張処理の際に、前記ライン数計数手段によって計数さ
れた伸張処理の対象とするライン数が、前記ライン数保
持手段に保持されたライン数に達したときに、前記参照
ライン保持手段に保持されたイメージデータと、前記バ
イト数計数手段によって計数されたバイト数及び前記ビ
ット位置保持手段に保持された先頭ビット位置によって
示される符号位置を示すデータを、前記符号位置データ
記憶手段に記憶することを特徴とする第2請求項記載の
二値画像データ切出し方式。
5. A binary image compression / expansion processing means, comprising: a line number holding means for holding the number of lines of each area of the divided binary image; and a byte number for counting the number of bytes of the processed code data. Counting means; bit position holding means for indicating a head bit position of a code to start processing; reference line holding means for holding image data of a reference line corresponding to a line to be processed; and counting the number of processed lines Line number counting means, and the number of lines to be subjected to expansion processing counted by the line number counting means at the time of expansion processing has reached the number of lines held by the line number holding means. At this time, the image data held in the reference line holding means, the number of bytes counted by the byte number counting means, and the number of bytes held in the bit position holding means are stored. Leading data indicating a code position indicated by the bit position, the binary image data cutting method of the second claim, wherein the storing the code position data storage means has.
【請求項6】 二値画像圧縮伸張処理手段は、 分割された二値画像の各領域のライン数を保持するため
のライン数保持手段と、 処理されたコードデータのバイト数を計数するバイト数
計数手段と、 処理を始めるべきコードの先頭ビット位置を示すビット
位置保持手段と、 処理対象とするラインに対応する参照ラインのイメージ
データを保持する参照ライン保持手段と、 処理されたライン数を計数するライン数計数手段と、 を具備し、 圧縮処理の際に、前記ライン数計数手段によって計数さ
れた圧縮処理の対象とするライン数が、前記ライン数保
持手段に保持されたライン数に達したときに、前記参照
ライン保持手段に保持されたイメージデータと、前記バ
イト数計数手段によって計数されたバイト数及び前記ビ
ット位置保持手段に保持された先頭ビット位置によって
示される符号位置を示すデータを、前記符号位置データ
記憶手段に記憶することを特徴とする第2請求項記載の
二値画像データ切出し方式。
6. A binary image compression / expansion processing means, comprising: a line number holding means for holding the number of lines in each area of the divided binary image; and a byte number for counting the number of bytes of the processed code data. Counting means; bit position holding means for indicating a head bit position of a code to start processing; reference line holding means for holding image data of a reference line corresponding to a line to be processed; and counting the number of processed lines Line number counting means, and the number of lines to be subjected to the compression processing counted by the line number counting means during the compression processing has reached the number of lines held by the line number holding means. At this time, the image data held in the reference line holding means, the number of bytes counted by the byte number counting means, and the number of bytes held in the bit position holding means are stored. Leading data indicating a code position indicated by the bit position, the binary image data cutting method of the second claim, wherein the storing the code position data storage means has.
JP3183689A 1990-07-31 1991-06-28 Binary image data extraction method Expired - Fee Related JP2818323B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3183689A JP2818323B2 (en) 1990-07-31 1991-06-28 Binary image data extraction method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2-201539 1990-07-31
JP20153990 1990-07-31
JP3183689A JP2818323B2 (en) 1990-07-31 1991-06-28 Binary image data extraction method

Publications (2)

Publication Number Publication Date
JPH0522609A JPH0522609A (en) 1993-01-29
JP2818323B2 true JP2818323B2 (en) 1998-10-30

Family

ID=26502025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3183689A Expired - Fee Related JP2818323B2 (en) 1990-07-31 1991-06-28 Binary image data extraction method

Country Status (1)

Country Link
JP (1) JP2818323B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4853208B2 (en) * 2006-09-29 2012-01-11 ブラザー工業株式会社 Image forming system, image forming apparatus, and copying apparatus

Also Published As

Publication number Publication date
JPH0522609A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
JPS63109653A (en) Information registering and retrieving device
KR870008446A (en) Binary data compression and extension processing unit
US8849051B2 (en) Decoding variable length codes in JPEG applications
JP2818323B2 (en) Binary image data extraction method
US5623556A (en) System and method of extracting binary image data
JP3130721B2 (en) Binary image compression / expansion processing system and binary image extraction method
JPH06334872A (en) Picture processing unit
JPH033566A (en) Decoding method for compression data
JP3417684B2 (en) Image processing device
JPH0522573A (en) Binary picture data segment editing system
JPH0522574A (en) Binary picture data segment system
JP2897876B2 (en) Code data expansion processing method
JPH05276396A (en) Picture information processor
JPH09246988A (en) Decoder and method therefor
JPH07184063A (en) Binary image compression system
JP3152772B2 (en) Image data restoration device
JPH09307456A (en) Variable length encoding and decoding device and method
EP0302432A2 (en) Document decompressing system
JP2945553B2 (en) High-speed restoration of image data
JPH07195757A (en) Page printer
JP2815750B2 (en) High-speed data writing apparatus and high-speed data writing method
JPS59161174A (en) Picture processing device
JP2000326571A (en) Device and method for controlling printing, and memory medium
JP2002044461A (en) Image processing method and image processor
JPH07226848A (en) Picture signal encoding device

Legal Events

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