JPH09149261A - Image coding device - Google Patents

Image coding device

Info

Publication number
JPH09149261A
JPH09149261A JP30029895A JP30029895A JPH09149261A JP H09149261 A JPH09149261 A JP H09149261A JP 30029895 A JP30029895 A JP 30029895A JP 30029895 A JP30029895 A JP 30029895A JP H09149261 A JPH09149261 A JP H09149261A
Authority
JP
Japan
Prior art keywords
encoding
data
line
coding
binary image
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
JP30029895A
Other languages
Japanese (ja)
Other versions
JP3187696B2 (en
Inventor
Hironori Takeda
裕紀 武田
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP30029895A priority Critical patent/JP3187696B2/en
Publication of JPH09149261A publication Critical patent/JPH09149261A/en
Application granted granted Critical
Publication of JP3187696B2 publication Critical patent/JP3187696B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

(57)【要約】 【課題】 ファクシミリのような機器で扱う2値画像デ
ータを1画素ごとにシーケンシャルに処理する場合に、
余白部分のうち左右の両端に位置するものは、送信側の
用紙の横方向サイズに依存して一定の周期で現われるよ
うな性質がある。このような部分を符号化から省くこと
で、データの圧縮率を向上させる。 【解決手段】 画像データ入力装置10からの2値画像
データをデータラインに従って符号化部13で符号化す
る。符号化制御部12は、符号化しようとしている符号
化ラインの2値画像データと参照用データメモリ部11
に保持されている1ライン前の参照ラインの2値画像デ
ータとを対応画素同士で比較することにより、符号化部
13における符号化を開始する符号化ライン上の画素位
置及び符号化を終了する画素位置を決定し、符号化部1
3の制御を行う。
(57) 【Abstract】 PROBLEM TO BE SOLVED: To process binary image data handled by a device such as a facsimile sequentially for each pixel.
The margins located at the left and right ends have the property of appearing at a constant cycle depending on the lateral size of the paper on the transmission side. By omitting such a part from encoding, the data compression rate is improved. SOLUTION: Binary image data from an image data input device 10 is encoded by an encoding unit 13 according to a data line. The encoding control unit 12 uses the binary image data of the encoding line to be encoded and the reference data memory unit 11
By comparing the corresponding pixel with the binary image data of the reference line one line before, which is held in, the pixel position on the coding line where the coding is started in the coding unit 13 and the coding is ended. The pixel position is determined and the encoding unit 1
3 is performed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像符号化/復号
化装置に関し、より詳細には、ファクシミリなどの2値
画像データを扱うような通信機器に適用し得る2値画像
データを符号化復号化する装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding / decoding device, and more particularly to encoding / decoding of binary image data applicable to a communication device such as a facsimile which handles binary image data. The present invention relates to a device for converting the information.

【0002】[0002]

【従来の技術】従来、2値画像を対象として可逆的な符
号化を行うような画像符号化装置では、一般的にエント
ロピー算出手段を含むエントロピー符号化手段と、めっ
たに起きないと考えられるようなデータ入力に対応する
例外的処理手段で構成される。これらの手段のうち、後
者の例としては符号化しようとしている画素がある行の
2値画像データと1つ上の行の2値画像データとを比較
して、すべて同じであるような場合には、そのことを示
すフラグを符号化データの1部に含めることで、その行
についてはエントロピー符号化を省略するという方法が
ある。
2. Description of the Related Art Conventionally, in an image coding apparatus which performs reversible coding on a binary image, it is generally considered that an entropy coding unit including an entropy calculation unit and an entropy coding unit rarely occur. It is composed of exceptional processing means corresponding to data input. Among these means, as the latter example, when the binary image data of the row in which the pixel to be encoded is present and the binary image data of the row immediately above are compared and they are all the same, There is a method in which a flag indicating that is included in a part of the encoded data, and entropy encoding is omitted for that row.

【0003】[0003]

【発明が解決しようとする課題】上記した従来の手法
は、2値画像データを対象として適用し得るものである
が、2値画像データの符号化装置の用途としては、ファ
クシミリのような機器があげられる。ファクシミリで扱
う2値画像データの中には、余白部分を多く含むような
場合がある。そして、この余白は、行単位ですべてデー
タが同じであるような場合だけではないので、上記した
従来の手法のみでは不充分である。本発明は、このよう
な従来の実情に鑑みてなされたもので、画像データを1
画素ごとにシーケンシャルに処理する場合(従来の行単
位ですべてデータが同じであるような場合と違い)に
は、余白部分のうち左右の両端に位置しているものは、
送信しようとする画像が担持されている原稿として送信
側で用いる用紙横方向サイズに依存して、ほぼ一定の周
期で現れるような性質があり、このような余白部分につ
いても適応して符号化を省略するようにしてデータの圧
縮率を向上させることをその課題とする。
Although the above-mentioned conventional method can be applied to binary image data as an object, a device such as a facsimile is used as a binary image data encoding device. can give. Binary image data handled by a facsimile may include a large amount of blank space. Since this margin is not limited to the case where all the data is the same on a line-by-line basis, the conventional method described above is not sufficient. The present invention has been made in view of such a conventional situation, and the image data
In the case of sequential processing for each pixel (unlike the conventional case where all data is the same in row units), the margins located at the left and right ends are:
It has the property of appearing in a substantially constant cycle depending on the lateral size of the paper used on the sending side as the original carrying the image to be sent. The object is to improve the data compression rate by omitting it.

【0004】[0004]

【課題を解決するための手段】請求項1の発明は、符号
化しようとしている2値画像のラインデータを入力する
入力手段と、該入力手段からの2値画像データを該デー
タラインに従って符号化する符号化手段と、該符号化手
段の動作を制御する符号化制御手段を有する画像符号化
装置において、参照ラインの2値画像データを保持する
参照用データメモリ手段を備えるとともに、前記符号化
制御手段は、符号化しようとしている符号化ラインの2
値画像データと前記参照用データメモリ手段に保持され
ている参照ラインの2値画像データとを比較することに
より、前記符号化手段における符号化を開始する符号化
ライン上の画素位置及び符号化を終了する画素位置を決
定し、該符号化手段を制御するようにし、参照ラインの
2値画像データとの比較により、符号化ライン上の画素
単位で符号化の開始,終了を指定するようにして符号化
の省略を様々な画像に対して適応し得るものである。
According to a first aspect of the present invention, input means for inputting line data of a binary image to be encoded, and binary image data from the input means are encoded according to the data line. An image coding apparatus having a coding means for controlling the coding means and a coding control means for controlling the operation of the coding means is provided with a reference data memory means for holding binary image data of a reference line, and the coding control. The means is 2 of the coding line which is to be coded.
By comparing the value image data with the binary image data of the reference line held in the reference data memory means, the pixel position and the coding on the coding line for starting the coding in the coding means are determined. The position of the pixel to be ended is determined, the encoding means is controlled, and the start and end of the encoding are specified for each pixel on the encoded line by comparison with the binary image data of the reference line. The omission of coding can be applied to various images.

【0005】請求項2の発明は、上記請求項1におい
て、前記参照用データメモリ手段に保持される2値画像
データを符号化しようとしている符号化ラインの1つ前
のラインのデータとするようにし、実施に際し、機能し
得るものである。
According to a second aspect of the present invention, in the above-mentioned first aspect, the binary image data held in the reference data memory means is data of a line immediately before a coding line to be coded. And can function in practice.

【0006】請求項3の発明は、上記請求項1又は2に
おいて、前記符号化ラインの2値画像と参照ラインの2
値画像のデータの比較は、各ラインの対応する画素の値
を順次比較し、この比較によって画素が初めて異なる値
となった画素位置と、画素が最後に異なる値となった画
素位置とを検出することにより、前記符号化の開始及び
終了位置を決定するようにし、符号化しようとしている
データと参照データの比較の手法を具体的に提示するも
のである。
According to a third aspect of the present invention, in the first or second aspect, the binary image of the coded line and the reference line of the binary image are used.
To compare the data of the value images, the values of the corresponding pixels in each line are sequentially compared, and the pixel position where the pixel first becomes a different value and the pixel position where the pixel finally becomes a different value are detected by this comparison. By doing so, the start and end positions of the encoding are determined, and a method of comparing the data to be encoded with the reference data is specifically presented.

【0007】請求項4の発明は、上記請求項3におい
て、前記符号化制御手段は、符号化ライン上の符号化を
開始する画素位置および符号化を終了する画素位置の前
記決定を以前の符号化を開始する画素位置と今度検出さ
れた符号化開始画素位置とを比較して、この比較により
得られるライン上のより前方の画素位置を新たな符号化
を開始する画素位置とし、以前の符号化を終了する画素
位置と今度検出された符号化終了画素位置とを比較し
て、この比較により得られるより後方の画素位置を新た
な符号化を終了する画素位置とするようにし、誤って符
号化が省略されることを避けるようにしたものである。
According to a fourth aspect of the present invention, in the above-described third aspect, the encoding control means determines the pixel position on the encoding line at which the encoding is started and the pixel position at which the encoding is terminated by the previous code. The pixel position at which the encoding is started and the encoding start pixel position detected at this time are compared, and the pixel position at the front on the line obtained by this comparison is set as the pixel position at which the new encoding is started, and the previous code is set. The pixel position at which the encoding is ended and the encoding end pixel position detected at this time are compared, and the pixel position at a later position obtained by this comparison is set as the pixel position at which a new encoding is ended, and the code is erroneously encoded. This is to avoid omission of conversion.

【0008】請求項5の発明は、上記請求項1ないし4
のいずれかにおいて、前記符号化手段は、符号化後に得
る符号化ラインデータの先頭に前記の符号化開始位置ま
たは符号化終了位置が変化したことを示す1ビットのデ
ータを追加し、前記の符号化開始位置または符号化終了
位置が変化した場合、符号化開始位置および符号化終了
位置の値を所定ビット幅のデータに符号化して前記の1
ビットに続いて追加し、符号化開始位置と符号化終了位
置の間の2値画像データを符号化して構成する符号化ラ
インデータを生成するようにし、符号化ラインデータの
構成を符号化制御用のデータも入れるようなデータ構成
とするようにしたものである。
The invention of claim 5 relates to any one of claims 1 to 4 above.
In any one of the above, the encoding means adds 1-bit data indicating that the encoding start position or the encoding end position has changed to the beginning of the encoded line data obtained after encoding, When the encoding start position or the encoding end position changes, the values of the encoding start position and the encoding end position are encoded into data of a predetermined bit width, and the above 1
Bits are added after the bit to generate the encoded line data that is configured by encoding the binary image data between the encoding start position and the encoding end position, and the configuration of the encoded line data is used for encoding control. The data structure is such that the data of is also included.

【0009】請求項6の発明は、復号化しようとしてい
る符号化ラインデータを入力する手段と、該入力手段か
らの符号化ラインデータを該データラインに従って復号
化する復号化手段と、該復号化手段を制御する復号化制
御手段を有する画像復号化装置において、参照ラインの
2値画像データを保持する参照用データメモリ手段を備
えるとともに、前記復号化制御手段は、前記符号化ライ
ンデータの先頭から前記の符号化開始位置または符号化
終了位置が変化したことを示すデータを検出した後に、
符号化を開始する画素位置および符号化を終了する画素
位置のデータを検出し格納し、この格納されたデータに
基づいて前記符号化開始位置より前及び前記符号化終了
位置より後のデータを前記参照用データメモリ手段にお
けるライン上の対応する画素データから読み出し、さら
に、前記符号化開始位置と符号化終了する位置の間の前
記符号化ラインデータを2値画像データに復号化する制
御を行うようにし、上記請求項5の符号化ラインデータ
の構成に適応する復号化装置をなすものである。
According to a sixth aspect of the invention, means for inputting coded line data to be decoded, decoding means for decoding coded line data from the input means according to the data line, and the decoding In an image decoding apparatus having a decoding control means for controlling the means, a reference data memory means for holding binary image data of a reference line is provided, and the decoding control means is provided from the beginning of the encoded line data. After detecting the data indicating that the coding start position or the coding end position has changed,
The data of the pixel position where the encoding is started and the pixel position where the encoding is ended are detected and stored, and the data before the encoding start position and after the encoding end position are stored based on the stored data. Read out from the corresponding pixel data on the line in the reference data memory means, and further control to decode the encoded line data between the encoding start position and the encoding end position into binary image data. In addition, the decoding device is adapted to the structure of the coded line data according to the fifth aspect.

【0010】請求項7の発明は、上記請求項6におい
て、前記参照用データメモリ手段に保持される2値画像
データを復号化しようとしている符号化ラインの1つ前
のラインのデータとするようにし、実施に際し、機能し
得るものである。
According to a seventh aspect of the present invention, in the above-mentioned sixth aspect, the binary image data held in the reference data memory means is used as data of a line immediately before a coded line to be decoded. And can function in practice.

【0011】[0011]

【発明の実施の形態】図1は、本発明の画像符号化装置
の実施の形態を示すもので、全体の概要をブロック図と
して示すものである。この画像符号化装置は、画像デー
タ入力装置10と参照用メモリ部11と符号化制御部1
2と符号化部13と符号化データ出力装置14とによっ
て構成される。最初に、符号化される画像は、スキャナ
などの画像読み取り装置(図示せず)によって、画像デ
ータ入力装置10に入力される。そして、画像データ入
力装置10によって2値化処理された後に、シーケンシ
ャルに2値画像データ(a)として出力される。この2
値画像データ(a)は、FIFO(First-In First-Ou
t)で構成されている参照用メモリ部11に入力され
る。参照用メモリ部11は、入力された画像データ1行
分のデータを格納する。参照用メモリ装置11の出力側
からは、参照用データ(b)として1行前の2値画像デ
ータが出力される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of an image coding apparatus of the present invention, and is a block diagram showing an overall outline. This image encoding device includes an image data input device 10, a reference memory unit 11, and an encoding control unit 1.
2, the encoding unit 13, and the encoded data output device 14. First, the image to be encoded is input to the image data input device 10 by an image reading device (not shown) such as a scanner. Then, after being binarized by the image data input device 10, it is sequentially output as binary image data (a). This 2
The value image data (a) is a FIFO (First-In First-Ou).
It is input to the reference memory unit 11 composed of t). The reference memory unit 11 stores the data for one line of the input image data. The output side of the reference memory device 11 outputs the binary image data of the preceding row as reference data (b).

【0012】2値画像データ(a)と参照用データ
(b)は、符号化制御部12に入力される。符号化制御
部12は、符号化を開始する画素位置と符号化を終了す
る画素位置とを含む符号化制御用信号(c)を出力す
る。より詳細には、符号化しようとしている画素を含む
行である符号化ラインの2値化データ(a)と参照ライ
ンの2値画像データ(b)とを比較する。両方のデータ
を画素単位で順番に比較して、最初に両方の画素データ
が異なった位置を検出し、また、最後に異なった位置を
検出し、符号化制御用信号(c)として出力する。な
お、この符号化制御用信号(c)の作成については、よ
り詳細に下記(図4に関する記述)で説明する。そし
て、符号化部13では、それまで使用していた符号化開
始位置を保持しており、新たに符号化制御部12より入
力される制御用信号(c)における符号化開始位置と比
較する。もし、前記の検出した画素位置が、それまでの
符号化開始位置よりも手前にあるならば、これを新しい
符号化開始位置とする。また、符号化終了位置について
も同様に行われ、もし、前記の検出した画素位置が、そ
れ以前の符号化終了位置よりも後にあるならば、これを
新しい符号化終了位置とする。
The binary image data (a) and the reference data (b) are input to the coding control unit 12. The encoding control unit 12 outputs an encoding control signal (c) including a pixel position where encoding starts and a pixel position where encoding ends. More specifically, the binary data (a) of the encoded line, which is the row including the pixel to be encoded, and the binary image data (b) of the reference line are compared. Both data are compared in order on a pixel-by-pixel basis, first the positions where the two pixel data differ are detected, and finally the different positions are detected and output as the encoding control signal (c). The creation of the coding control signal (c) will be described in more detail below (the description relating to FIG. 4). Then, the encoding unit 13 holds the encoding start position that has been used until then, and compares it with the encoding start position in the control signal (c) newly input from the encoding control unit 12. If the detected pixel position is before the encoding start position up to that point, this is set as a new encoding start position. The same is done for the coding end position, and if the detected pixel position is after the previous coding end position, this is set as a new coding end position.

【0013】そして、符号化開始位置と符号化終了位置
の間の2値画像データの符号化を行う。図2及び図3
は、このようにして得られる符号化データのフォーマッ
トを示すものである。ここに示される符号化データの先
頭の1ビットは、符号化を開始または終了する画素位置
が1つ上の行と比べて変化したかどうかを表わすフラグ
である。図2は、符号化を開始または終了する画素位置
が変化しない場合を示している。一方、図3は、符号化
を開始または終了する画素位置が変化した場合を示して
おり、その場合に、前記フラグに続いて符号化開始位
置,符号化終了位置を示すデータが付加されている。こ
のようにして生成された符号化データ(d)は、図1の
符号化データ出力装置14によって相手側端末に対して
出力される。
Then, the binary image data between the coding start position and the coding end position is coded. 2 and 3
Indicates the format of encoded data obtained in this way. The first 1 bit of the encoded data shown here is a flag indicating whether or not the pixel position at which encoding starts or ends has changed as compared with the row immediately above. FIG. 2 shows a case where the pixel position at which the coding starts or ends does not change. On the other hand, FIG. 3 shows a case where the pixel position at which the encoding starts or ends changes, and in that case, data indicating the encoding start position and the encoding end position is added following the flag. . The encoded data (d) thus generated is output to the partner terminal by the encoded data output device 14 of FIG.

【0014】図4は、図1における符号化部及び符号化
制御部のより詳細なブロック図を示すものである。図4
において、符号化制御部12(図1参照)は、カウンタ
回路12aと比較器12bと範囲指定用レジスタ12c
とで構成される。2値画像データ(a)は、符号化部1
3に入力されると同時に、カウンタ回路12aおよび比
較器12bに入力される。参照用メモリ部11からの参
照データ(b)は、比較器12bに入力される。カウン
タ回路12aでは、ラインに従って順次入力される入力
2値画像データ(a)の画素数をカウントして、カウン
ト値(c)を出力する。比較器12bは、2値画像デー
タ(a)と参照データ(b)の画素毎の2値データの比
較をして、一致不一致を示す信号(d)を出力する。範
囲指定用レジスタ12cは、カウンタ値(c)と一致不
一致信号(d)を入力して、上記したように最初に不一
致の信号(d)が入力された時のカウンタ値を符号化開
始位置のデータ(c1)とし、また、最後に不一致の信
号(d)が入力された時のカウンタ値を符号化終了位置
(c2)として、これらを出力する。符号化部13は、
符号化開始及び終了の位置データ(c1,c2)によって
符号化を行い、符号化データ(g)を出力する。
FIG. 4 is a more detailed block diagram of the encoding unit and the encoding control unit in FIG. FIG.
In the encoding control unit 12 (see FIG. 1), the counter circuit 12a, the comparator 12b, and the range designation register 12c.
It is composed of The binary image data (a) is encoded by the encoding unit 1.
At the same time, the signal is input to the counter circuit 12a and the comparator 12b. The reference data (b) from the reference memory unit 11 is input to the comparator 12b. The counter circuit 12a counts the number of pixels of the input binary image data (a) sequentially input according to the line, and outputs the count value (c). The comparator 12b compares the binary image data (a) with the binary data for each pixel of the reference data (b) and outputs a signal (d) indicating a match / mismatch. The range specifying register 12c inputs the counter value (c) and the coincidence / non-coincidence signal (d), and the counter value when the non-coincidence signal (d) is first input as described above is set to the encoding start position. These are output as the data (c 1 ), and the counter value at the time when the mismatch signal (d) is finally input as the encoding end position (c 2 ). The encoding unit 13
Encoding is performed using the position data (c 1 , c 2 ) of the start and end of encoding, and the encoded data (g) is output.

【0015】図5は、本発明の画像復号化装置の実施の
形態を示すもので、全体の概要をブロック図として示す
ものである。図5で、符号化データ入力装置15は、受
信した相手側端末からのデータを符号化データ(e)と
して出力する。ここに、符号化データとしては、前述の
発明の実施の形態において示されたデータ構成をとるも
ので、以下の復号化装置は、このデータ構成に適用され
るものである。そして、復号化部16では、入力された
符号化データ(e)から、まず、符号化開始位置または
符号化終了位置が変化したことを示すフラグを符号化デ
ータの先頭から検出する。そして、符号化開始位置また
は符号化終了位置が変化した場合には、符号化データが
持っている符号化ラインにおける符号化の開始,終了の
データ(図4参照)から符号化開始位置および符号化終
了位置の値を分離して制御信号(g)として出力する。
参照メモリ部18には、すでに復号化された直前のライ
ンの2値画像データが保持されている。そして、この参
照用メモリ部18からの参照データ(i)を使用して、
符号化開始位置より前の2値画像データについては、こ
の参照データ(i)を再現する。また、符号化開始位置
と符号化終了位置との間の2値画像データを復号化部1
6で復号化する。さらに、符号化終了位置より後の2値
画像データを上記したと同様に参照データ(i)を再現
することによる。そして、ライン全体の復号化された2
値画像データ(f)が出力されることになる。
FIG. 5 shows an embodiment of the image decoding apparatus of the present invention, and is a block diagram showing an overall outline. In FIG. 5, the encoded data input device 15 outputs the received data from the partner terminal as encoded data (e). Here, the encoded data has the data structure shown in the above-described embodiment of the present invention, and the following decoding device is applied to this data structure. Then, the decoding unit 16 first detects, from the input coded data (e), a flag indicating that the coding start position or the coding end position has changed, from the beginning of the coded data. Then, when the coding start position or the coding end position changes, the coding start position and the coding start position are determined from the coding start and end data (see FIG. 4) in the coding line of the coded data. The value at the end position is separated and output as a control signal (g).
The reference memory unit 18 holds the already decoded binary image data of the previous line. Then, using the reference data (i) from the reference memory unit 18,
For the binary image data before the encoding start position, this reference data (i) is reproduced. Also, the decoding unit 1 decodes the binary image data between the coding start position and the coding end position.
Decrypt at 6. Furthermore, the binary image data after the coding end position is reproduced by reproducing the reference data (i) in the same manner as described above. And the decoded 2 of the whole line
The value image data (f) will be output.

【0016】復号化制御部17には、2値画像データ
(f)および制御信号(g)を入力される。そして、参
照用メモリ部18を制御する制御信号(h)を出力す
る。参照用メモリ部18には、すでに得られた1ライン
全体の2値画像データ(f)が入力される。そして、現
在復号化中の1ライン上の2値画像データを参照データ
(i)として出力する。2値画像データ(f)が入力さ
れる画像データ出力装置19では、2値画像データの印
刷等を行う。
Binary image data (f) and control signal (g) are input to the decoding control section 17. Then, the control signal (h) for controlling the reference memory unit 18 is output. The already-obtained binary image data (f) of the entire one line is input to the reference memory unit 18. Then, the binary image data on one line currently being decoded is output as reference data (i). The image data output device 19 to which the binary image data (f) is input prints the binary image data.

【0017】図6は、図5における復号化部参照用メモ
リ部および復号化制御部のより詳細なブロック図を示す
ものである。復号化制御部17(図5参照)は、カウン
タ回路17aと範囲指定用レジスタ17bとで構成され
る。符号化データ(e)は、復号化部16に入力され
る。復号化部16は、2値画像データ(f)と符号化開
始位置と符号化終了位置データ(g)を出力する。復号
後の2値画像データ(f)は、カウンタ回路17aと参
照用メモリ部18に入力される。
FIG. 6 is a more detailed block diagram of the decoding unit reference memory unit and the decoding control unit in FIG. The decoding control unit 17 (see FIG. 5) includes a counter circuit 17a and a range specifying register 17b. The encoded data (e) is input to the decoding unit 16. The decoding unit 16 outputs the binary image data (f), the coding start position and the coding end position data (g). The decoded binary image data (f) is input to the counter circuit 17a and the reference memory unit 18.

【0018】カウンタ回路17aは、ラインに従って順
次入力される入力2値画像データ(a)の画素数をカウ
ントしてカウント値(k)を出力する。範囲指定用レジ
スタ17bは、カウント値(k)と符号化開始位置と符
号化終了位置(g)を入力として、参照用メモリ部18
から読み出す参照2値画像データの範囲、すなわち、符
号化開始位置の前のデータ、及び、符号化終了位置から
後のデータの範囲を指定する制御信号(h)を出力す
る。参照用メモリ部18は、参照制御信号(h)により
指示される範囲の2値画像データ(i)を復号化部16
へ出力する。
The counter circuit 17a counts the number of pixels of the input binary image data (a) sequentially input according to the line and outputs a count value (k). The range designation register 17b receives the count value (k), the coding start position and the coding end position (g) as input, and the reference memory unit 18
A control signal (h) that specifies the range of the reference binary image data read from, that is, the range of data before the coding start position and the range of data after the coding end position is output. The reference memory unit 18 decodes the binary image data (i) in the range designated by the reference control signal (h) into the decoding unit 16.
Output to

【0019】[0019]

【発明の効果】本発明により、符号化ライン上の画素の
単位で符号化,復号化の開始,終了を指定するようにし
て、符号化,復号化の省略を様々な2値画像に対して適
応してデータの圧縮率を向上させ、処理の負担を軽減す
ることができる。例えば、ファクシミリのような機器で
扱う画像を処理する場合に、送信しようとする画像を担
う原稿として送信側で用いる用紙の横方向サイズは様々
であり、そのために余白部分のうち左右に位置している
ものは、そのサイズに依存してほぼ一定の周期で現れる
ような性質があり、この様な余白部分について本発明を
適応することができ、より効果を上げることが可能であ
る。
According to the present invention, encoding and decoding can be omitted for various binary images by designating the start and end of encoding and decoding in units of pixels on an encoding line. It is possible to adaptively improve the data compression rate and reduce the processing load. For example, when processing an image handled by a device such as a facsimile, the size of the paper used on the transmission side as the original for carrying the image to be transmitted varies, and therefore the paper is placed on the left and right of the margin. However, the present invention can be applied to such a blank portion and the effect can be further improved.

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

【図1】本発明の画像符号化装置の実施の形態を示すも
ので、全体の概要をブロック図として示すものである。
FIG. 1 shows an embodiment of an image coding apparatus of the present invention, and is a block diagram showing an overall outline.

【図2】符号化データのフォーマットを示し、符号化を
開始または終了する画素位置が変化しない場合を示す図
である。
FIG. 2 is a diagram showing a format of encoded data and showing a case where a pixel position at which encoding starts or ends does not change.

【図3】符号化データのフォーマットを示し、符号化を
開始または終了する画素位置が変化した場合を示す図で
ある。
FIG. 3 is a diagram showing a format of encoded data and showing a case where a pixel position at which encoding starts or ends changes.

【図4】図1における符号化部及び符号化制御部のより
詳細なブロック図を示すものである。
FIG. 4 is a more detailed block diagram of an encoding unit and an encoding control unit in FIG.

【図5】本発明の画像復号化装置の実施の形態を示すも
ので、全体の概要をブロック図として示すものである。
FIG. 5 shows an embodiment of an image decoding apparatus of the present invention, and is a block diagram showing an overall outline.

【図6】図5における復号化部参照用メモリ部および復
号化制御部のより詳細なブロック図を示すものである。
6 is a more detailed block diagram of a decoding unit reference memory unit and a decoding control unit in FIG.

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

10…画像データ入力装置、11,18…参照用メモリ
部、12…符号化制御部、12a,17a…カウンタ回
路、12b…比較器、12c,17b…範囲指定用レジ
スタ、13…符号化部、14…符号化データ出力装置、
15…符号化データ入力装置、16…復号化部、17…
復号化制御部。
10 ... Image data input device, 11, 18 ... Reference memory unit, 12 ... Encoding control unit, 12a, 17a ... Counter circuit, 12b ... Comparator, 12c, 17b ... Range designation register, 13 ... Encoding unit, 14 ... Encoded data output device,
15 ... Encoded data input device, 16 ... Decoding unit, 17 ...
Decoding control unit.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 符号化しようとしている2値画像のライ
ンデータを入力する入力手段と、該入力手段からの2値
画像データを該データラインに従って符号化する符号化
手段と、該符号化手段の動作を制御する符号化制御手段
を有する画像符号化装置において、参照ラインの2値画
像データを保持する参照用データメモリ手段を備えると
ともに、前記符号化制御手段は、符号化しようとしてい
る符号化ラインの2値画像データと前記参照用データメ
モリ手段に保持されている参照ラインの2値画像データ
とを比較することにより、前記符号化手段における符号
化を開始する符号化ライン上の画素位置及び符号化を終
了する画素位置を決定し、該符号化手段を制御するよう
にしたことを特徴とする画像符号化装置。
1. Input means for inputting line data of a binary image to be encoded, encoding means for encoding the binary image data from the input means according to the data line, and the encoding means of the encoding means. An image encoding apparatus having an encoding control unit for controlling an operation includes a reference data memory unit for holding binary image data of a reference line, and the encoding control unit is an encoding line to be encoded. Of the binary image data of the reference line held in the reference data memory means, and the pixel position and code on the coding line for starting the coding in the coding means. An image coding apparatus characterized in that a pixel position at which the coding is finished is determined and the coding means is controlled.
【請求項2】 前記参照用データメモリ手段に保持され
る2値画像データを符号化しようとしている符号化ライ
ンの1つ前のラインのデータとするようにしたことを特
徴とする請求項1記載の画像符号化装置。
2. The binary image data held in the reference data memory means is used as data of a line immediately before a coding line to be coded. Image encoding device.
【請求項3】 前記符号化ラインの2値画像と参照ライ
ンの2値画像のデータの比較は、各ラインの対応する画
素の値を順次比較し、この比較によって画素が初めて異
なる値となった画素位置と、画素が最後に異なる値とな
った画素位置とを検出することにより、前記符号化の開
始及び終了位置を決定するようにしたことを特徴とする
請求項1又は2記載の画像符号化装置。
3. The data of the binary image of the coded line and the data of the binary image of the reference line are compared with each other by sequentially comparing the values of the corresponding pixels of each line, and by this comparison, the pixels have different values for the first time. The image code according to claim 1 or 2, wherein the start position and the end position of the encoding are determined by detecting a pixel position and a pixel position where the pixel finally has a different value. Device.
【請求項4】 前記符号化制御手段は、符号化ライン上
の符号化を開始する画素位置および符号化を終了する画
素位置の前記決定を以前の符号化を開始する画素位置と
今度検出された符号化開始画素位置とを比較して、この
比較により得られるライン上のより前方の画素位置を新
たな符号化を開始する画素位置とし、以前の符号化を終
了する画素位置と今度検出された符号化終了画素位置と
を比較して、この比較により得られるより後方の画素位
置を新たな符号化を終了する画素位置とするようにした
ことを特徴とする請求項3記載の画像符号化装置。
4. The encoding control means is now detected that the determination of the pixel position on the encoding line where the encoding starts and the pixel position where the encoding ends is the pixel position for starting the previous encoding. The pixel position on the line obtained by this comparison is compared with the encoding start pixel position, and the pixel position to start a new encoding is set, and the pixel position to end the previous encoding is detected this time. 4. The image coding apparatus according to claim 3, wherein the pixel position after the coding is compared with the pixel position at the rear of the pixel position obtained by this comparison. .
【請求項5】 前記符号化手段は、符号化後に得る符号
化ラインデータの先頭に前記の符号化開始位置または符
号化終了位置が変化したことを示す1ビットのデータを
追加し、前記の符号化開始位置または符号化終了位置が
変化した場合、符号化開始位置および符号化終了位置の
値を所定ビット幅のデータに符号化して前記の1ビット
に続いて追加し、さらに、符号化開始位置と符号化終了
位置の間の2値画像データを符号化して構成する符号化
ラインデータを生成するようにしたことを特徴とする請
求項1ないし4のいずれかに記載の画像符号化装置。
5. The encoding means adds 1-bit data indicating that the encoding start position or the encoding end position has changed to the beginning of the encoded line data obtained after encoding, and the encoding code When the encoding start position or the encoding end position changes, the values of the encoding start position and the encoding end position are encoded into data of a predetermined bit width and added following the 1 bit, and further, the encoding start position. 5. The image coding apparatus according to claim 1, wherein the coded line data formed by coding the binary image data between the coding position and the coding end position is generated.
【請求項6】 復号化しようとしている符号化ラインデ
ータを入力する手段と、該入力手段からの符号化ライン
データを該データラインに従って復号化する復号化手段
と、該復号化手段を制御する復号化制御手段を有する画
像復号化装置において、参照ラインの2値画像データを
保持する参照用データメモリ手段を備えるとともに、前
記復号化制御手段は、前記符号化ラインデータの先頭か
ら前記の符号化開始位置または符号化終了位置が変化し
たことを示すデータを検出した後に、符号化を開始する
画素位置および符号化を終了する画素位置のデータを検
出し格納し、この格納されたデータに基づいて前記符号
化開始位置より前及び前記符号化終了位置より後のデー
タを前記参照用データメモリ手段におけるライン上の対
応する画素データから読み出し、さらに、前記符号化開
始位置と符号化終了する位置の間の前記符号化ラインデ
ータを2値画像データに復号化する制御を行うようにし
たことを特徴とする画像符号化装置。
6. A means for inputting coded line data to be decoded, a decoding means for decoding the coded line data from the input means according to the data line, and a decoding for controlling the decoding means. An image decoding apparatus having an encoding control means includes reference data memory means for holding binary image data of a reference line, and the decoding control means starts the encoding from the head of the encoded line data. After detecting the data indicating that the position or the coding end position has changed, the data of the pixel position where the coding is started and the data of the pixel position where the coding is ended are detected and stored, and based on the stored data, The data before the coding start position and after the coding end position are the corresponding pixel data on the line in the reference data memory means. The image coding apparatus is characterized in that control is performed to read the coded line data between the coding start position and the coding end position into binary image data.
【請求項7】 前記参照用データメモリ手段に保持され
る2値画像データを復号化しようとしている符号化ライ
ンの1つ前のラインのデータとするようにしたことを特
徴とする画像符号化装置。
7. An image coding apparatus, wherein the binary image data held in the reference data memory means is used as data of a line immediately before a coded line to be decoded. .
JP30029895A 1995-11-17 1995-11-17 Image coding device Expired - Fee Related JP3187696B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30029895A JP3187696B2 (en) 1995-11-17 1995-11-17 Image coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30029895A JP3187696B2 (en) 1995-11-17 1995-11-17 Image coding device

Publications (2)

Publication Number Publication Date
JPH09149261A true JPH09149261A (en) 1997-06-06
JP3187696B2 JP3187696B2 (en) 2001-07-11

Family

ID=17883109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30029895A Expired - Fee Related JP3187696B2 (en) 1995-11-17 1995-11-17 Image coding device

Country Status (1)

Country Link
JP (1) JP3187696B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6497485B1 (en) 2000-01-20 2002-12-24 Seiko Epson Corporation Image projection system having uniform brightness

Also Published As

Publication number Publication date
JP3187696B2 (en) 2001-07-11

Similar Documents

Publication Publication Date Title
US4677649A (en) Data receiving apparatus
JP4160689B2 (en) Arithmetic coding apparatus and arithmetic decoding apparatus
JPH07184059A (en) Equipment and method for facsimile data coding
JP3187696B2 (en) Image coding device
US5280361A (en) Data processing apparatus
JP3281183B2 (en) Image encoding / decoding method and image encoding / decoding device
JPH06121174A (en) Encoding / decoding device
JP3222576B2 (en) Encoding device
JPS5859665A (en) Picture and writing transmission device
JP3184255B2 (en) Facsimile machine
JPH09154023A (en) Image processing apparatus and method
JP3076070B2 (en) Encoded data transmission device
JP2000069298A (en) Facsimile machine
JP2869104B2 (en) Facsimile machine with storage function
JP4279887B2 (en) Arithmetic coding apparatus, arithmetic coding method, and arithmetic decoding apparatus
JP3295507B2 (en) Binary image encoding / decoding method
JP3295502B2 (en) Facsimile apparatus control method and facsimile apparatus
JP2899284B2 (en) Image data encoding device
JPH07184060A (en) Image processing device
JPS63117562A (en) Image data coding system
JPS6276867A (en) Image data processing device
JPS63257380A (en) Image communication device
JPH06245084A (en) Image data processor
JPS61131686A (en) Compression encoding system for picture data
JPS59190779A (en) Facsimile equipment

Legal Events

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