JPH03119865A - Image data compression device - Google Patents

Image data compression device

Info

Publication number
JPH03119865A
JPH03119865A JP25660489A JP25660489A JPH03119865A JP H03119865 A JPH03119865 A JP H03119865A JP 25660489 A JP25660489 A JP 25660489A JP 25660489 A JP25660489 A JP 25660489A JP H03119865 A JPH03119865 A JP H03119865A
Authority
JP
Japan
Prior art keywords
data
image data
image
compression
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25660489A
Other languages
Japanese (ja)
Inventor
Toshio Tsuboi
俊雄 壷井
Hiroichi Yamada
博一 山田
Akio Nakajima
昭夫 中島
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP25660489A priority Critical patent/JPH03119865A/en
Publication of JPH03119865A publication Critical patent/JPH03119865A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the compression of image data with high compression efficiency by providing an encoder means to perform encode on data of difference outputted from an arithmetic means by using codes with different bit length and with bit length shorter as the absolute value of the data of difference is small. CONSTITUTION:A data compression part 53 is comprised of a latch circuit 91, a subtractor 92, a buffer memory 93, a CPU 94, a ROM 95, a RAM 96, and an input/output port circuit 97. The CPU 94 performs a data encoding processing to encode difference data CD stored in the buffer memory 93 transiently at every image data in one page to a compression code, respectively, and after that, outputs the compression code BD to an image memory 56 or a modem 57 via the input/output port circuit 97.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ファクシミリ装置等に用いられる画像データ
圧縮装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image data compression device used in facsimile machines and the like.

[従来の技術] 従来、ファクシミリ装置において画像データを伝送する
際、送信側では実際に伝送する画像データのビット数を
元の画像データのビット数よりも少なくなるように画像
データの圧縮処理を行い、一方、受信側で画像データの
伸長処理を行って元の画像データを復元し、これによっ
て、伝送時間の短縮を行っている。
[Prior Art] Conventionally, when transmitting image data using a facsimile machine, the sending side compresses the image data so that the number of bits of the image data to be actually transmitted is smaller than the number of bits of the original image data. On the other hand, the receiving side decompresses the image data to restore the original image data, thereby reducing the transmission time.

例えばファクシミリ装置における圧縮処理では、文字や
図形等が描かれた一般的な原稿を送信するときに伝送効
率がよくなるような処理がなされている。すなわち、−
船釣に、送信する原稿は、文字や図形が描かれていない
白色の部分が原稿全体に比較し大きいので、白色のドツ
トが連続する確率が非常に大きく、複数ドツトの白色の
画像データを、より少ないドツト数の圧縮データに変換
して圧縮処理を行っている。
For example, in the compression process in a facsimile machine, processing is performed to improve transmission efficiency when transmitting a general original document with characters, figures, etc. drawn thereon. That is, −
The white part of the manuscript to be sent for boat fishing is large compared to the entire manuscript without any text or figures, so the probability of consecutive white dots is very high, and the white image data of multiple dots is Compression processing is performed by converting the data into compressed data with a smaller number of dots.

昨今、このファクシミリ装置を用いて写真等の中間調画
像を含んだ画像を伝送する要望が増えており、中間調モ
ード又は写真モードを有するファクシミリ装置が製造販
売されている。
Recently, there has been an increasing demand for using facsimile machines to transmit images including halftone images such as photographs, and facsimile machines having a halftone mode or a photo mode are being manufactured and sold.

ファクシミリ装置で中間調画像を伝送する場合、ビット
単位で白色又は黒色の表現しかできないため、例えば複
数Nドツト×Nドツトの正方形状の複数ドツトの範囲を
1個の画素として扱い、その画素の中で白黒比の割合を
変化させて中間調画像を表現している。
When transmitting a halftone image using a facsimile machine, only white or black can be expressed in bits. Therefore, for example, a range of multiple N dots x N dots in a square shape is treated as one pixel, and the inside of that pixel is treated as one pixel. A halftone image is expressed by changing the black and white ratio.

[発明が解決しようとする課題] しかしながら、中間調画像を含む画像データは、一般の
文字原稿に比較して白色又は黒色が連続する確率が低く
、従来の方式で圧縮処理を行うと、逆に伝送するビット
数が増加して伝送効率が悪化し、伝送時間が増大すると
いう問題点があった。
[Problems to be Solved by the Invention] However, image data including halftone images has a lower probability of consecutive white or black colors compared to general character manuscripts, and when compression processing is performed using the conventional method, conversely There are problems in that the number of bits to be transmitted increases, the transmission efficiency deteriorates, and the transmission time increases.

例えば1画素を2ドツト×2ドツトの4ドツトで構成し
、これを中間調で表現する場合、第9図に示すように、
画像の階調度が大きくなるにつれて1画素内の黒色のド
ツト数を多くして、5種類の濃度パターンの画像を用い
ればよい。この場合、読み取った画像が、画素毎に、第
9図に示したO乃至4の階調度の濃度パターンの1つに
変換されて画像データの変換処理が行われる。中間調画
像は、上記濃度パターンの画素の集合で表現され、その
一部を抽出すると、例えば第10図に示すようになる。
For example, when one pixel is composed of four dots (2 dots x 2 dots) and expressed in halftones, as shown in Fig. 9,
The number of black dots within one pixel may be increased as the gradation of the image increases, and images with five types of density patterns may be used. In this case, the read image is converted pixel by pixel into one of the density patterns of gradations O to 4 shown in FIG. 9, and image data conversion processing is performed. A halftone image is expressed by a set of pixels having the above-mentioned density pattern, and when a part of the image is extracted, it becomes as shown in FIG. 10, for example.

第10図に示した中間調画像の画像データを従来のMH
符号化方式で圧縮処理を行うとき、1ドツトの白色の画
像は6ビツトの画像データに、また、1ドツトの黒色の
画像は3ビツトの画像データに変換されてしまうので、
例えば1ライン目の画像の処理においては、圧縮処理後
の画像データのビット数が元の画像データの4.5倍と
なり、伝送する画像データのビット数が大幅に増大する
The image data of the halftone image shown in FIG.
When compression processing is performed using the encoding method, a 1-dot white image is converted to 6-bit image data, and a 1-dot black image is converted to 3-bit image data.
For example, in processing the image of the first line, the number of bits of the image data after compression processing is 4.5 times that of the original image data, and the number of bits of the image data to be transmitted increases significantly.

本発明の目的は以上の問題点を解決し、中間調画像を含
む画像データであっても従来に比較し高い圧縮効率で画
像データの圧縮を行うことができる画像データ圧縮装置
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and to provide an image data compression device that can compress image data with higher compression efficiency than conventional methods even for image data including halftone images. be.

[課題を解決するための手段] 本発明に係る画像データ圧縮装置は、連続に入力される
階調を示す画像データを一時的に格納する記憶手段と、
入力される画像データと上記記憶手段から出力される1
画素前の画像データとの差のデータを演算する演算手段
と、上記演算手段から出力される差のデータを、上記差
のデータに応じて互いにビット長が異なりかつ上記差の
データの絶対値が小さいほどより短いビット長を有する
符号を用いて符号化する符号化手段とを備えたことを特
徴とする。
[Means for Solving the Problems] An image data compression device according to the present invention includes a storage means for temporarily storing image data indicating gradation that is input continuously;
Input image data and 1 output from the storage means
A calculation means for calculating the difference data from the image data before the pixel, and a calculation means for calculating the difference data output from the calculation means, the bit lengths of which are different from each other according to the difference data, and the absolute value of the difference data is different from each other according to the difference data. The present invention is characterized by comprising an encoding means for encoding using a code having a smaller bit length.

[作用1 以上のように構成することにより、上記記憶手段は、連
続に入力される階調を示す画像データを一時的に格納し
、上記演算手段は、入力される画像データと上記記憶手
段から出力される1画素前の画像データとの差のデータ
を演算する。次いで、上記符号化手段は、上記演算手段
から出力される差のデータを、上記差のデータに応じて
互いにビット長が異なりかつ上記差のデータの絶対値が
小さいほどより短いビット長を有する符号を用いて符号
化する。
[Operation 1] With the above configuration, the storage means temporarily stores the image data indicating the gradation that is input continuously, and the calculation means stores the image data inputted and the storage means. Calculate the difference data from the image data of the previous pixel to be output. Next, the encoding means converts the difference data output from the calculation means into a code having different bit lengths depending on the difference data and having a shorter bit length as the absolute value of the difference data is smaller. Encode using .

従って、連続して入力される画像データが例えば中間調
画像を含む画像データであって、特に当該画像データの
階調の変化が小さい場合、その画像データの情報をより
短いビット長の符号に符号化することができるので、従
来に比較し高い圧縮効率で画像データの圧縮を行うこと
ができる。
Therefore, if the continuously inputted image data is, for example, image data including a halftone image, and the change in gradation of the image data is particularly small, the information of the image data is encoded into a code with a shorter bit length. Therefore, image data can be compressed with higher compression efficiency than conventional methods.

[実施例] 以下、添付の図面を参照して本発明に係る一実施例であ
るファクシミリ装置について、以下の順序で説明する。
[Embodiment] Hereinafter, a facsimile machine that is an embodiment of the present invention will be described in the following order with reference to the accompanying drawings.

(a)ファクシミリ装置の構成 (b)操作パネル (c)信号処理部の構成 (d)データ符号化処理の70− (e)データ伸長処理のフロー (f)ファクシミリ装置の動作 (a)ファクシミリ装置の構成 第2図は、本発明に係る一実施例のファクシミリ装置の
断面図である。このファクシミリ装置は、プリンタ部l
と、その上方に設置された読取部20と、読取部20内
に内蔵される信号処理部・100から構成され、この信
号処理部200のデータ圧縮部53において、入力され
る画像データとl画素前の画像データとの差データを演
算し、演算された差データに基づいて第2表に示す圧縮
符号に符号化して、画像データの圧縮処理を行うことを
特徴としている。
(a) Configuration of facsimile machine (b) Operation panel (c) Configuration of signal processing unit (d) Data encoding process 70- (e) Flow of data decompression process (f) Operation of facsimile machine (a) Facsimile machine FIG. 2 is a sectional view of a facsimile machine according to an embodiment of the present invention. This facsimile machine has a printer section l.
, a reading section 20 installed above it, and a signal processing section 100 built into the reading section 20. In the data compression section 53 of this signal processing section 200, input image data and l pixels are processed. The image data is compressed by calculating the difference data with the previous image data and encoding the data into the compression code shown in Table 2 based on the calculated difference data.

プリンタ部1は、レーザプリンタであり、以下に簡単に
その動作を述べる。まず、回転駆動される感光体ドラム
2上の感−光体が、帯電器3により一様に帯電される。
The printer unit 1 is a laser printer, and its operation will be briefly described below. First, the photoreceptor on the rotationally driven photoreceptor drum 2 is uniformly charged by the charger 3 .

次に、光学系4により画像データに応じてレーザビーム
が照射されて感光体上に静電潜像が形成される。この静
電潜像に現像器5のトナーが付着する。一方、給紙カセ
ット11にはカット紙が置かれており、ローラ等により
カット紙が一枚ずつ感光体ドラム2の方へ送り込まれる
。感光体ドラム2に付着したトナーは、転写チャージャ
6によりカット紙に転写され、定着器12により定着さ
れた後、カット紙はトレー13に排出される。一方、付
着しなかったトナーはクリーナ8により回収され、これ
で−回のプリントが終了する。
Next, a laser beam is irradiated by the optical system 4 according to the image data to form an electrostatic latent image on the photoreceptor. Toner from the developing device 5 adheres to this electrostatic latent image. On the other hand, cut sheets are placed in the paper feed cassette 11, and the cut sheets are fed one by one toward the photosensitive drum 2 by rollers or the like. The toner adhering to the photosensitive drum 2 is transferred onto the cut paper by the transfer charger 6 and fixed by the fixing device 12, after which the cut paper is discharged onto the tray 13. On the other hand, the toner that has not adhered is collected by the cleaner 8, and this completes -th printing.

次に、読取部20において、送信原稿の読取りは従来と
同様に行われる。すなわち、原稿トレー21に置かれた
原稿は、センサ22により検知され、破線位置まで下が
ったローラ23とローラ24によりセンサ25の位置ま
で1枚ずつ送り込まれる。次に、モータ(図示せず。)
によるローラ24の回転と密着型CODリニアイメージ
センサ26の読み取りが同期されて、ランプ30に照射
された原稿がCODリニアイメージセンサ26により読
取られ、原稿画像はデジタル画像データに変換される。
Next, in the reading section 20, reading of the transmitted original is performed in the same manner as in the past. That is, the originals placed on the original tray 21 are detected by the sensor 22, and are fed one by one to the position of the sensor 25 by the rollers 23 and 24, which have been lowered to the dotted line position. Next, the motor (not shown)
The rotation of the roller 24 and the reading by the contact type COD linear image sensor 26 are synchronized, the original illuminated by the lamp 30 is read by the COD linear image sensor 26, and the original image is converted into digital image data.

読み取り終了後は、原稿は排出ローラ27により排出部
28に排出される。なお本実施例では、ローラ24およ
び27は同一の駆動系で駆動され、次の原稿の読取りに
よって原稿が排出される。
After the reading is completed, the document is discharged to the discharge section 28 by the discharge roller 27. In this embodiment, the rollers 24 and 27 are driven by the same drive system, and the original is ejected when the next original is read.

また、読取部20の側面に、信号処理部100を介して
電話回線に接続される電話機のハンドセット29が設け
られ、このファクシミリ装置を使用しないときは、この
ハンドセット29を用いて通話を行うことができる。さ
らに、このファクシミリ装置の動作の設定及び動作状態
の表示を行う操作パネル15が、読取部2oの横に位置
するプリンタ部1の上面に設けられる。
Further, a telephone handset 29 connected to a telephone line via the signal processing section 100 is provided on the side of the reading section 20, and when the facsimile machine is not in use, this handset 29 can be used to make a call. can. Further, an operation panel 15 for setting the operation of the facsimile machine and displaying the operating status is provided on the upper surface of the printer section 1 located next to the reading section 2o.

相手先のファクシミリ装置から電話回線を介して信号処
理部100で受信された画像データは、信号処理部10
0においてデータ圧縮処理等、詳細後述する所定の信号
処理がなされた後、プリンタ部14こよりカット紙Jこ
記録され、一方、読取部20で読取られた画像データは
、信号処理部100においてデータ伸長地理等、詳細後
述する所定の信号処理がなされた後、電話回線を介して
相手先のファクシミリ装置に送信される。
The image data received by the signal processing unit 100 from the destination facsimile device via the telephone line is processed by the signal processing unit 10.
After predetermined signal processing such as data compression processing, which will be described in detail later, is performed in the printer section 14, the image data read by the reading section 20 is decompressed in the signal processing section 100. After being subjected to predetermined signal processing such as geography, which will be described in detail later, the signal is transmitted to the other party's facsimile machine via the telephone line.

なお、記録部lと読取部2oは、一体になっていなくて
もよい。
Note that the recording section 1 and the reading section 2o do not have to be integrated.

(b)操作パネル 第3図は、操作パネル15上のキー及び表示パネル等の
配置を示す。操作パネル15は、テンキー40、液晶表
示パネル41 ワンタッチキー42、送信キー43、メ
モリキー45、番号プリントキー46、登録キー47、
自動送信キー48がも構成される。
(b) Operation panel FIG. 3 shows the arrangement of keys, display panel, etc. on the operation panel 15. The operation panel 15 includes a numeric keypad 40, a liquid crystal display panel 41, a one-touch key 42, a send key 43, a memory key 45, a number print key 46, a registration key 47,
An automatic send key 48 is also configured.

テンキー40は、相手先のファクシミリ装置が接続され
た電話回線の番号(以下、ファクシミリ番号という。)
の設定などに用いられ、液晶表示パネル41は、このフ
ァクシミリ装置の動作状態の表示あるいはオペレータへ
の指示と警告に用いられる。ワンタッチキー42は、各
キーにそれぞれ対応した相手先のファクシミリ番号のR
AM72(第1図参照。)への格納または相手先ファク
シミリ番号へのワンタッチ送信のために使用される。
The numeric keypad 40 displays the number of the telephone line to which the destination facsimile device is connected (hereinafter referred to as facsimile number).
The liquid crystal display panel 41 is used to display the operating status of the facsimile machine or to give instructions and warnings to the operator. The one-touch keys 42 are used to select the R of the facsimile number of the destination that corresponds to each key.
It is used for storing in AM72 (see Figure 1) or for one-touch transmission to a destination facsimile number.

送信キー43は、読取部20で読み取られた原稿画像の
送信を開始するためのキーであり、メモリキー45は、
読取部20で読取った画像を画像メモリ56(第1図参
照。)に−時的に記憶するためのキーである。また、番
号プリントキー46は、ワンタッチキー42の各キーに
対応する相手先のファクシミリ番号をプリントするため
のキーであり、登録キー47は、相手先のファクシミリ
番号を登録する登録モードと非登録モードの一方を指定
するだめのキーである。さらに、自動送信キー48は、
画像メモリ56に記憶された画像データを所定の指定時
刻に相手先に送信するだめのキーである。
The transmission key 43 is a key for starting transmission of the original image read by the reading section 20, and the memory key 45 is a key for starting transmission of the original image read by the reading section 20.
This key is used to temporarily store the image read by the reading unit 20 in the image memory 56 (see FIG. 1). Further, the number print key 46 is a key for printing the facsimile number of the other party corresponding to each key of the one-touch key 42, and the registration key 47 is used in a registration mode for registering the facsimile number of the other party and a non-registration mode. This is a key that only specifies one of the two. Furthermore, the automatic transmission key 48 is
This key is used to transmit the image data stored in the image memory 56 to the other party at a predetermined designated time.

(c)信号処理部の構成 第1図は、本実施例のファクシミリ装置の信号処理部1
00のブロック図である。
(c) Configuration of signal processing unit FIG. 1 shows the signal processing unit 1 of the facsimile machine of this embodiment.
00 is a block diagram.

第1図において、原稿画像49は、ランプ制御部50に
よってオン・オフが制御されるランプ30によって照射
され、原稿画像49で反射された光はCCDリニアイメ
ージセンサ26に入射する。
In FIG. 1, an original image 49 is irradiated by a lamp 30 whose on/off is controlled by a lamp controller 50, and the light reflected by the original image 49 is incident on the CCD linear image sensor 26.

CCDリニアイメージセンサ26は、受光した光を光電
変換して電気信号を増幅器51を介してアナログ/デジ
タル変換(以下、A/D変換という。
The CCD linear image sensor 26 photoelectrically converts the received light and converts the electrical signal into an analog/digital signal (hereinafter referred to as A/D conversion) via an amplifier 51.

)器52に出力する。A/D変換器52は、入力される
電気信号を階調度に応じて、第1表に示すように、1画
素当たり5階調度の3ビツトの画像データADに変換し
た後、データ圧縮部53に出力する。
) output to the device 52. The A/D converter 52 converts the input electrical signal into 3-bit image data AD with 5 gradations per pixel according to the gradation level, as shown in Table 1, and then converts the input electrical signal into 3-bit image data AD with 5 gradation levels per pixel. Output to.

データ圧縮部53は、第4図に示すように、ラッチ回路
91と、減算器92と、バッファメモリ93と、CPU
94と、ROM95と、RAM96と、入出力ポート回
路97から構成される。ラッチ回路91は、クロック発
生回路60から発生されるクロック信号SCKに同期し
て、入力される3ビツトの画像データを一時的にラッチ
した後減算器92に出力し、減算器92は入力される画
像データADと、ラッチ回路91から出力される1画素
前の画像データAD’ との4ビツトの差データCDを
演算し、バッファメモリ93に出力する。
As shown in FIG. 4, the data compression unit 53 includes a latch circuit 91, a subtracter 92, a buffer memory 93, and a CPU.
94, ROM 95, RAM 96, and input/output port circuit 97. The latch circuit 91 temporarily latches the input 3-bit image data in synchronization with the clock signal SCK generated from the clock generation circuit 60 and outputs it to the subtracter 92. 4-bit difference data CD between the image data AD and the image data AD' of the previous pixel output from the latch circuit 91 is calculated and output to the buffer memory 93.

CPU94は、バッファメモリ93に一時的に記憶され
た差データCDを1ページの画像データ毎にそれぞれ、
第2表に従って圧縮符号に符号化するデータ符号化処理
(第6図(A)及び(B)参照。)を行った後、圧縮符
号BDを入出力ポート回路97を介して画像メモリ56
又は変復調装置(以下、モデムという。)57に出力す
る。ここで、CPU94は、バス98を介して、CPU
94の演算制御プログラムと各差データCDに対応した
圧縮符号を格納するROM95と、CPU94のワーク
エリアとして用いられるRAM96と、入出力ポート回
路97に接続される。なお、例えば第1O図に示される
濃度パターンを有する画像を処理する場合、データ圧縮
部53は、第3表に示すように、データ圧縮処理を行う
。また、各ラインの先頭ドツトの画像データの前に画像
データがないため、1画素前の画像データとして、中間
の階調度の画像データ” 010”であるダミーデータ
をラッチ回路91にラッチさせる。
The CPU 94 stores the difference data CD temporarily stored in the buffer memory 93 for each page of image data.
After performing data encoding processing (see FIGS. 6(A) and (B)) to encode the compressed code according to Table 2, the compressed code BD is sent to the image memory 56 via the input/output port circuit 97.
Alternatively, it is output to a modulation/demodulation device (hereinafter referred to as a modem) 57. Here, the CPU 94 connects to the CPU 94 via the bus 98.
The CPU 94 is connected to a ROM 95 that stores the arithmetic control program 94 and compression codes corresponding to each difference data CD, a RAM 96 used as a work area for the CPU 94, and an input/output port circuit 97. Note that, for example, when processing an image having the density pattern shown in FIG. 1O, the data compression unit 53 performs data compression processing as shown in Table 3. Further, since there is no image data before the image data of the first dot of each line, the latch circuit 91 latches dummy data, which is image data "010" with an intermediate gradation level, as the image data of one pixel before.

以上のイメージセンサ26、A/D変換器52、及びデ
ータ圧縮部53の処理は、クロック発生回路60から発
生されるクロック信号SCKに同期して行われる。
The above processing of the image sensor 26, A/D converter 52, and data compression section 53 is performed in synchronization with the clock signal SCK generated from the clock generation circuit 60.

さらに、画像メモリ56は、指定された時刻に自動送信
するためにデータ圧縮後の画像データを一時的に記憶し
、又はプリンタ部lの非動作時又は動作不良時に電話回
線を介して受信された画像データを一時的に記憶してプ
リンタ部lの動作回復後にプリンタ部1に出力して印字
するためのメモリである。
Further, the image memory 56 temporarily stores compressed image data for automatic transmission at a designated time, or for storing image data received via a telephone line when the printer section l is not operating or malfunctioning. This is a memory for temporarily storing image data and outputting it to the printer section 1 for printing after the printer section 1 recovers.

モデム57は、データ圧縮部53又は画像メモリ56か
ら出力される圧縮符号である画像データを所定の変調方
式で変調した後、電話回線との回線接続制御等を行うネ
ットワーク制御装置t(以下、NCUという。)58を
介して電話回線に出力する。また、モデム57は、電話
回線とNCU5gを介して受信された画像信号を復調し
て圧縮符号である画像データに変換した後、画像メモリ
56又はデータ伸長部81に出力する。
The modem 57 modulates the image data, which is a compressed code outputted from the data compression unit 53 or the image memory 56, using a predetermined modulation method, and then connects the modem 57 to a network control unit t (hereinafter referred to as NCU) that performs line connection control with a telephone line. ) 58 to the telephone line. Furthermore, the modem 57 demodulates the image signal received via the telephone line and the NCU 5g, converts it into image data that is a compressed code, and then outputs it to the image memory 56 or the data expansion section 81.

CPU70は、このファクシミリ装置の動作の制御を行
う制御装置であって、バス75を介して、CPU70の
システムプログラム等を記憶するROM71と、相手先
のファクシミリ番号を記憶するとともにCPU70のワ
ーキングエリアとして用いられるRAM72と、NCU
38と、モデム57と、ランプ30のオン・オフを制御
するランプ制御部50にランプ制御信号を出力する入出
力ポート回路74、読取部20のセンサ22,25が接
続される読取センサ部76に接続される。また、CPU
70は、バス75及び入出力ポート回路73を介して上
記操作パネル部15に接続され、操作パネル部15の各
キーを用いて入力される情報を取り込むとともに、操作
パネル部15の液晶パネル41にファクシミリ装置の動
作の表示を行わせる。
The CPU 70 is a control device that controls the operation of this facsimile machine, and is connected via a bus 75 to a ROM 71 that stores the system program of the CPU 70, etc., and a ROM 71 that stores the facsimile number of the other party and is used as a working area of the CPU 70. RAM72 and NCU
38, a modem 57, an input/output port circuit 74 that outputs a lamp control signal to the lamp control section 50 that controls on/off of the lamp 30, and a reading sensor section 76 to which the sensors 22 and 25 of the reading section 20 are connected. Connected. Also, CPU
70 is connected to the operation panel section 15 via the bus 75 and the input/output port circuit 73, and takes in information input using each key of the operation panel section 15, and displays the information on the liquid crystal panel 41 of the operation panel section 15. Displays the operation of the facsimile machine.

データ伸長部81は、画像メモリ56又はモデム57か
ら入力される画像データに対して、データ圧縮部53の
データ圧縮処理と逆の処理である伸長処理を行った後、
伸長処理後の画像データをプリンタ部lに出力する。こ
のデータ伸長部81は、第5図に示すように、2個の画
像バッファメモリ120,121と、データ伸長処理を
行うCPUll0と、上記データ伸長処理の処理プログ
ラムを格納するROMIIIと、CPUll0のワーク
エリアとして用いられるRAM112から構成され、C
PUll0は、バス113を介してバッファメモリ12
0.121 ROMI l l、及びRAM112に接
続される。モデム57又は画像メモリ56からデータ伸
長部81に入力される画像データは、バッファメモリ1
20に一時的に格納された後、CPUll0によるデー
タ伸長処理(第7図参照。)が行われる。データ伸長処
理後の画像データはバッファメモリ121に一時的に格
納された後プリンタ部1に出力される。
The data decompression unit 81 performs decompression processing on the image data input from the image memory 56 or the modem 57, which is a process opposite to the data compression processing of the data compression unit 53, and then
The image data after the decompression process is output to the printer section l. As shown in FIG. 5, this data decompression unit 81 includes two image buffer memories 120 and 121, a CPUll0 that performs data decompression processing, a ROM III that stores a processing program for the data decompression processing, and a workpiece of CPUll0. Consists of RAM 112 used as an area, C
PUll0 is connected to the buffer memory 12 via the bus 113.
0.121 Connected to ROMI l and RAM112. Image data input from the modem 57 or the image memory 56 to the data decompression unit 81 is transferred to the buffer memory 1.
After being temporarily stored in 20, the data is decompressed by CPUll0 (see FIG. 7). The image data after the data expansion process is temporarily stored in the buffer memory 121 and then output to the printer section 1.

最後に、プリンタ部1は、入力される画像データに基づ
いて、上述のように、カット紙への印字が行われる。
Finally, the printer unit 1 performs printing on cut paper as described above based on the input image data.

(d)データ符号化処理のフロー 第6図(A)及び(B)に、データ圧縮部53における
データ符号化処理のフローチャートを示す。
(d) Flow of data encoding processing FIGS. 6(A) and 6(B) show flowcharts of data encoding processing in the data compression unit 53.

第6図(A)及び(B)に示すように、ステップ551
(以下、「ステップ」を省略して記す。)、S53、S
55、S57、S59、S61、S63、S65におい
てそれぞれ、バッファメモリ93に記憶され処理すべき
差データCDが0100”  ”0011”  ”00
10” 0001”  ”0000”  ”1111”
  ”1110” 1101”であるか否かが判断され
、第2表に従って圧縮符号に符号化される。すなわち、
差データCDが”0100”であれば(S51でYES
)圧縮符号’ 10000001”を入出力ボート回路
97に出力しくS 52) 、差データCDが”001
1″であれば(S53でYES)圧縮符号”10000
1”を入出力ボート回路97に出力しく554)、差デ
ータCDが”0010″であれば(S55でYE S’
)圧縮符号”to。
As shown in FIGS. 6(A) and (B), step 551
(Hereinafter, "step" will be omitted.), S53, S
55, S57, S59, S61, S63, and S65, the difference data CD stored in the buffer memory 93 and to be processed is 0100""0011""00"
10"0001""0000""1111"
"1110"1101" is determined and encoded into a compression code according to Table 2. That is,
If the difference data CD is “0100” (YES in S51)
) The compression code '10000001' should be output to the input/output boat circuit 97. S52) If the difference data CD is '001'
1" (YES in S53), the compression code is "10000"
1" to the input/output boat circuit 97 (554), and if the difference data CD is "0010" (YES in S55)
) compression code "to.

ビを入出力ボート回路97に出力する(S 56)。ま
た、差データCDが”0001 ”であれば(S57で
YES)圧縮符号”11”を入出力ボート回路97に出
力しく558L差データCDが”oooo”であれば(
S59でYES)圧縮符号”0″を入出力ボート回路9
7に出力しくS 60)、差データCDが”111ビで
あれば(S61でYES)圧縮符号”101 ”を入出
力ボート回路97に出力する(S 62)。さらに、差
データCDが”1110”であれば(S63でYES)
圧縮符号” +0001”を入出力ボート回路97に出
力しく564)、差データCDが”1101”であれば
(S65でYES)圧縮符号”1000001”を入出
力ボート回路97に出力しく566)、差データCDが
”1100″であれば(S65でNo)圧縮符号”10
0000001”を入出力ボート回路97に出力する(
S 67)。上記S52、S54、S56、S58、S
60. S62.564、S66、及びS67における
圧縮符号の各出力処理の後、S70に進む。
The bit is output to the input/output boat circuit 97 (S56). Also, if the difference data CD is "0001" (YES in S57), the compression code "11" is output to the input/output boat circuit 97, and if the 558L difference data CD is "oooo" (
YES in S59) Input/output compression code “0” to the input/output boat circuit 9
If the difference data CD is "111 bits" (YES in S61), the compressed code "101" is output to the input/output boat circuit 97 (S62). ” (YES in S63)
The compression code "+0001" is output to the input/output boat circuit 97 (564), and if the difference data CD is "1101" (YES in S65), the compression code "1000001" is output to the input/output boat circuit 97 (566), If the data CD is “1100” (No in S65), the compression code is “10”
0000001” to the input/output boat circuit 97 (
S67). Above S52, S54, S56, S58, S
60. After the compression code output processing in S62.564, S66, and S67, the process advances to S70.

S70では1ペ一ジ分のデータの処理が終了したか否か
を判断し、終了していなければ、S51に戻って上述の
処理を繰り返し、一方、終了していれば、このデータ符
号化処理を終了する。
In S70, it is determined whether or not the processing of data for one page has been completed. If not, the process returns to S51 and the above-mentioned process is repeated; on the other hand, if it has been completed, this data encoding process is completed. end.

(e)データ伸長処理のフロー 第7図に、データ伸長部81におけるデータ伸長処理の
メインルーチンのフローチャートを示す。
(e) Flow of Data Decompression Processing FIG. 7 shows a flowchart of the main routine of data decompression processing in the data decompression section 81.

第7図に示すように、まず、Slにおいて、CPUll
0は、バッファメモリ120に格納された画像データを
順次読み出した後、読出した画像データに対して圧縮前
の画像データを復元する画像復元処理(第8図(A)〜
 (B)及び(C)参照。)を行う(S2)。次いで、
画像復元処理後の画像データは、バッファメモリ121
に−時的に格納された後、プリンタ部1に出力される(
S3)。
As shown in FIG. 7, first, in Sl, CPUll
0 is an image restoration process (FIG. 8 (A) to
See (B) and (C). ) is performed (S2). Then,
The image data after image restoration processing is stored in the buffer memory 121.
- After being temporarily stored, it is output to the printer section 1 (
S3).

第8図(A)、(B)、及び(C)に、画像復元処理(
第7図のS2)のサブルーチンのフローチャートを示す
。この画像復元処理において、DN+Mは、1ページの
Nライン目のM画素目の伸長処理後の画像データであり
、aは1画素の圧縮符号における最上位ビットからのビ
ット番号(ただし、最上位ビットのビット番号は0であ
る。)を示すパラメータ、bは圧縮符号における0”の
データの計数値を示すパラメータである。
FIG. 8 (A), (B), and (C) show image restoration processing (
A flowchart of the subroutine of S2) in FIG. 7 is shown. In this image restoration process, DN+M is the image data after decompression processing of the Mth pixel of the Nth line of the first page, and a is the bit number from the most significant bit in the compression code of one pixel (however, the most significant bit b is a parameter indicating the count value of 0'' data in the compression code.

まず、パラメータNが0に初期化された後(S100)
、パラメータa、bがともにOに初期化される(Slo
t)。次いで、パラメータNに1が加算され、パラメー
タMがOに初期化される(S102)。さらに、画像デ
ータD、、Mに2が設定された後(S l 03) 、
パラメータaが0であるならば(S I O4でYES
)、入力される符号のデータ(以下、符号データという
。)が′0”であるか否かを判断する(S 105)。
First, after the parameter N is initialized to 0 (S100)
, parameters a and b are both initialized to O (Slo
t). Next, 1 is added to the parameter N, and the parameter M is initialized to O (S102). Furthermore, after 2 is set in the image data D, , M (S l 03),
If parameter a is 0 (YES in S I O4
), it is determined whether the input code data (hereinafter referred to as code data) is '0' (S105).

ここで、符号データが11011であるならば、1画素
前の画像データI)、、M−、を画像データD H,M
とし、パラメータMに1を加算した後、3180以降の
チエツクルーチンに進む。もし、符号データが0”でな
いならば(S105でNO)、パラメータaに1を加算
した後、5180に進む。
Here, if the code data is 11011, the image data I), , M-, of the previous pixel are converted to the image data D H,M
After adding 1 to the parameter M, the program proceeds to the check routine starting from 3180. If the code data is not 0'' (NO in S105), 1 is added to the parameter a, and then the process proceeds to 5180.

5104において、パラメータaが”o”でないならば
、符号データが0′″であるか否かが判断される(S 
I O9)。ここで、符号データが0″であるならば(
S109でYES)、パラメータbに1が加算された後
(SIIO)、”O”のデータの計数値を示すパラメー
タbが8以上であるか判断される。もし、1つの符号に
おける”θ″の数が8以上であれば、伝送されたデータ
に誤りがあったと判断し、5190以降のエラールーチ
ンに進む。一方、”0″の数が8未満であれば、518
0以降のチエツクルーチンに進む。
In 5104, if the parameter a is not "o", it is determined whether the code data is 0'' (S
IO9). Here, if the code data is 0'' (
After 1 is added to parameter b (S109: YES) (SIIO), it is determined whether parameter b, which indicates the count value of "O" data, is 8 or more. If the number of "θ" in one code is 8 or more, it is determined that there is an error in the transmitted data, and the process proceeds to the error routine starting from 5190. On the other hand, if the number of "0" is less than 8, 518
Proceed to check routine after 0.

一方、5109において、符号データが0′でないなら
ば、パラメータaを0にリセットした後、Sl 13,
5120,5130,5140゜3150.5160.
5170においてそれぞれ、パラメータbが0乃至6で
あるか否かが判断され、伝送されたデータが第2表のど
の圧縮符号であるかが判断され、圧縮符号に対応し階調
を示す画像データDN、Mがバッファメモリ121に格
納される。ここで、パラメータbがOであるならば(S
113でYES)1画素前の画像データD、、、−。
On the other hand, in 5109, if the code data is not 0', after resetting the parameter a to 0, Sl 13,
5120, 5130, 5140°3150.5160.
5170, it is determined whether the parameter b is 0 to 6, it is determined which compression code in Table 2 the transmitted data is, and the image data DN corresponding to the compression code and indicating the gradation is determined. , M are stored in the buffer memory 121. Here, if the parameter b is O, then (S
113: YES) One pixel previous image data D, , -.

から1を減算したものを画像データD 、、、としくS
l 14) 、パラメータbが1であるならば(S12
0でYES)1画素前の画像データDNIM−1に1を
加算したものを画像データD N、Mとしく5121)
、パラメータbが2であるならば(S130でYES)
1画素前の画像データDN、M−1から2を減算したも
のを画像データD、、Mとする(S131)。また、パ
ラメータbが3であるならば(S 140でYES)1
画素前の画像データI)、Il+i+−+に2を加算し
たものを画像データD N+MとしくS 141) 、
パラメータbが4であるならば(S150でYES)1
画素前の画像データD N r M−1から3を減算し
たものを画像データDN、Mとしく5t51Lパラメー
タbが5であるならば(S160でYES)1画素前の
画像データDll+M−1に3を加算したものを画像デ
ータD 、、Mとする(S l 61)。さらに、パラ
メータbが6であるならば(S 170でYES)1画
素前の画像データD、、、−□から4を減算したものを
画像データDH,Mとしく5171.)、パラメータb
が7であるならば(5170でNo)1画素前の画像デ
ータD)IIM−1に4を加算したものを画像データD
H9Mとする(S l 72)。上記5114.512
1.5131.5141,5151、S 161゜51
71、及び5172における画像データの各復元処理の
後、パラメータbを0にリセットしくS l l 5)
 、パラメータMilliを加算した後(S116)、
3180以降のチエツクルーチンに進む。
The image data obtained by subtracting 1 from the image data D is S.
l14), if parameter b is 1 (S12
0 = YES) Add 1 to the image data DNIM-1 of the previous pixel to create the image data D N, M5121)
, if parameter b is 2 (YES in S130)
The result obtained by subtracting 2 from the image data DN, M-1 of one pixel before is set as image data D, , M (S131). Also, if parameter b is 3 (YES in S140), 1
Add 2 to the image data I) and Il+i+-+ before the pixel as the image data D N+M S141),
If parameter b is 4 (YES in S150), 1
The image data DN and M obtained by subtracting 3 from the image data before the pixel D N r M-1 are the image data DN and M. If the 5t51L parameter b is 5 (YES at S160), the image data before the pixel Dll+M-1 is 3. The sum of these is set as image data D, , M (S l 61). Furthermore, if the parameter b is 6 (YES in S170), the image data DH,M is obtained by subtracting 4 from the image data D, . ), parameter b
If is 7 (No in 5170), the image data of the previous pixel D) IIM-1 plus 4 is the image data D
H9M (S 1 72). 5114.512 above
1.5131.5141,5151, S 161°51
After each restoration process of image data in 71 and 5172, parameter b should be reset to 0.S l l 5)
, after adding the parameter Milli (S116),
Proceed to check routine after 3180.

5180では、lラインの処理が終了したか否かが判断
され、lラインの処理が終了していないときは5104
に進み、上述の圧縮符号の復元処理を繰り返す。一方、
lラインの処理が終了しているならば、1ラインの画像
データの数が予め決められた数であるか否かが判断され
C5181)、一致しないとき、5190以降のエラー
ルーチンに進み、一方、一致するとき、5182に進む
In 5180, it is determined whether or not the processing of the l line has been completed, and if the processing of the l line has not been completed, the process returns to step 5104.
Then, the process of restoring the compressed code described above is repeated. on the other hand,
If the processing of 1 line has been completed, it is determined whether the number of image data of 1 line is a predetermined number (C5181), and if they do not match, the process proceeds to the error routine after 5190; If they match, proceed to 5182.

5182において、1ペ一ジ分の画像データの復元処理
が終了したか否かが判断され、1ペ一ジ分の処理が終了
していないとき、次のラインの処理を行うため、510
1から上述の処理を繰り返す。
At 5182, it is determined whether the restoration process for one page of image data has been completed, and if the process for one page has not been completed, the next line is processed.
Repeat the above process from step 1.

1ペ一ジ分の処理が終了しているならば、第7図のメイ
ンルーチンに戻る。
If the processing for one page has been completed, the process returns to the main routine shown in FIG.

lラインの画像データの数が所定の数に一致しないとき
(5181でNo)、又は1つの圧縮符号の中に含まれ
る′″0”のデータの数が8以上であるならば(S l
 11でYES)、伝送されたデータに誤りがあったと
して、5190からSl’95までのエラールーチンを
行う。
When the number of image data in the l line does not match the predetermined number (No in 5181), or if the number of ``0'' data included in one compression code is 8 or more (S l
11), it is assumed that there is an error in the transmitted data, and the error routine from 5190 to Sl'95 is performed.

まず、現在処理しているデータの次のラインの圧縮符号
のデータを階調を示す画像データに復元する処理を行っ
た後(5190)、5191から5195までにおいて
、次のラインの画像データと前のラインの画像データの
平均値のデータ(このデータは、前のラインの画像デー
タの階調度と次のラインの画像データの階調度の平均を
示す。)を演算して現在処理しているラインの画像デー
タとし、擬似の画像データを作成する。すなわち、まず
、パラメータMを1にリセットした後(S191)、平
均値のデータ(DN−1,M +DN+l1M) /2
を演算して画像データD N+Mとしてバッファメモリ
121に格納しく3192)、パラメータMに1を加算
して(S193)、1942分の処理が終了するまでこ
の処理を繰り返す(S 194)。
First, after performing the process of restoring the compressed code data of the next line of the data currently being processed into image data indicating gradation (5190), from 5191 to 5195, the image data of the next line and the previous line are The line currently being processed is calculated by calculating the average value of the image data of the line (this data indicates the average of the gradation of the image data of the previous line and the gradation of the image data of the next line). image data, and create pseudo image data. That is, first, after resetting the parameter M to 1 (S191), the average value data (DN-1, M + DN + l1M) /2
is calculated and stored in the buffer memory 121 as image data D N+M (3192), 1 is added to the parameter M (S193), and this process is repeated until 1942 minutes of processing is completed (S194).

1ライン分の処理の終了後に(S l 94でYES)
、パラメータNに1を加算して更新した後(S195)
、5104に戻り、次のラインの処理に進む。
After finishing processing for one line (YES at S l 94)
, after adding 1 to the parameter N and updating it (S195)
, 5104 and proceeds to process the next line.

以上説明したように、lラインの画像データの数が所定
の数に一致しないとき(S 181でNo)、又は1つ
の圧縮符号の中に含まれる”0゛′のデータの数が8以
上であるならば(S l l IでYES)、伝送され
たデータに誤りがあったとして、5190から5195
までのエラールーチンを行い、これによって、送信側で
送信された元の画像データを擬似的に復元することがで
きる。
As explained above, when the number of image data in one line does not match the predetermined number (No in S181), or when the number of "0" data included in one compression code is 8 or more, If there is (YES in S l l I), there is an error in the transmitted data, and 5190 to 5195
By performing the error routine up to this point, the original image data sent on the sending side can be restored in a pseudo manner.

(f)ファクシミリ装置の動作 次に、ファクシミリ装置の送信動作について説明する。(f) Operation of facsimile equipment Next, the transmission operation of the facsimile device will be explained.

まず、原稿トレー11に原稿が置かれると、原稿の存在
が読取センサ部76のセンサ22により検知され、その
情報はCPU70に送られる。これに応答してCPU7
0は、操作パネル部15の液晶表示パネル41に相手先
のファクシミリ番号の入力の要求を表示させた後、テン
キー40を用いてファクシミリ番号の入力があると、C
PU70はNCU38及び電話回線を介して相手先のフ
ァクシミリ装置の読出しを行う。読出しが行われると、
読取部20のモータとCCDリニアイメージセンサ26
を同期させなからlラインずつ画像信号を読取り、その
lラインの画像データは増幅器51を′介してA/D変
換器52に送られて、第1表のように、1画素当たり3
ビツトの5階調度の画像データADにA/D変換された
後、データ圧縮部53に送られる。データ圧縮部53で
は、上述のように、入力された3ビツトの画像データA
Dと1画素前の画像データAD’ との差データCDが
演算された後、差データCDが第2表に示すように圧縮
符号の画像データに変換されて、モデム57に送られる
。次いで、モデム57で所定の変調方式で画像信号に変
調された後、NCU38及びt話回線を介して相手先の
ファクシミリ装置に送信される。すべての画像データが
送信されると、所定の切断手順に従って電話回線を切断
し、送信が終了する。
First, when a document is placed on the document tray 11, the presence of the document is detected by the sensor 22 of the reading sensor section 76, and the information is sent to the CPU 70. In response to this, CPU7
0 displays a request for input of the recipient's facsimile number on the liquid crystal display panel 41 of the operation panel section 15, and then when the facsimile number is input using the numeric keypad 40, C is displayed.
The PU 70 reads out the facsimile device of the other party via the NCU 38 and the telephone line. When reading is performed,
The motor of the reading section 20 and the CCD linear image sensor 26
The image signal is read l lines at a time without synchronizing the image signals, and the image data of the l line is sent to the A/D converter 52 via the amplifier 51', and as shown in Table 1, 3 lines per pixel.
After being A/D converted into 5-bit image data AD, it is sent to the data compression section 53. In the data compression unit 53, as described above, the input 3-bit image data A
After the difference data CD between D and the image data AD' of one pixel before is calculated, the difference data CD is converted into compressed code image data as shown in Table 2 and sent to the modem 57. Next, the image signal is modulated into an image signal using a predetermined modulation method by the modem 57, and then transmitted to the destination facsimile machine via the NCU 38 and the t-communication line. When all the image data has been transmitted, the telephone line is disconnected according to a predetermined disconnection procedure, and the transmission is completed.

次に、受信時の動作について述べる。Next, the operation during reception will be described.

電話回線を通して相手先のファクシミリ装置から呼び出
しがあると、CPU70は所定の通信手順に従って回線
の接続を行う。回線の接続が完了すると、相手先のファ
クシミリ装置から送られてくる画像データは、NCU3
8及びモデム57を介してデータ伸長部81に送られ、
データ圧縮部53と逆の処理である上記データ伸長処理
を行った後、処理後の画像データはプリンタ部lに送ら
れ、その画像データの画像が上述のように、カット紙に
印字される。すべての画像データの受信及び印字が終了
すると、通信手順に従って電話回線の切断を行う。これ
によって、受信動作が完了する。
When a call is received from the other party's facsimile machine through the telephone line, the CPU 70 connects the line according to a predetermined communication procedure. When the line connection is completed, the image data sent from the other party's facsimile machine is transferred to the NCU3.
8 and the modem 57 to the data decompression unit 81,
After performing the data decompression processing, which is the reverse processing of the data compression section 53, the processed image data is sent to the printer section 1, and an image of the image data is printed on a cut sheet as described above. When all image data has been received and printed, the telephone line is disconnected according to the communication procedure. This completes the receiving operation.

以上説明したように、本実施例では、階調度を示す画像
データADと1画素前の画像データAD′との差データ
CDを演算し、演算された差データCDを第2表に示す
圧縮符号を用いて符号化している。例えば、第1O図に
示された画像データを本実施例のデータ圧縮部53を用
いて圧縮した場合、符号されたデータのビット数は第3
表に示すように20となる。一方、例えば公知のMH符
号化方式で、第1O図に示された画像データを符号化し
た場合、符号化されt;データのビット数は290であ
る。従って、本実施例のデータ圧縮部53におけるデー
タ圧縮処理を用いることにより、10倍以上の圧縮効率
で画像データの圧縮処理を行うことができる。また、第
10図に示された元の画像データのビット数は48であ
り、元の画像データと比較した場合、本実施例では、2
倍以上の圧縮効率で画像データの圧縮処理を行うことが
できる。
As explained above, in this embodiment, the difference data CD between the image data AD indicating the gradation level and the image data AD' one pixel before is calculated, and the calculated difference data CD is converted into the compression code shown in Table 2. It is encoded using For example, when the image data shown in FIG. 1O is compressed using the data compression unit 53 of this embodiment, the number of bits of the encoded data is
20 as shown in the table. On the other hand, when the image data shown in FIG. 1O is encoded using, for example, a known MH encoding method, the number of bits of the encoded data is 290. Therefore, by using the data compression process in the data compression unit 53 of this embodiment, it is possible to compress image data with a compression efficiency of ten times or more. Further, the number of bits of the original image data shown in FIG. 10 is 48, and when compared with the original image data, in this example, 2 bits are used.
Image data can be compressed with compression efficiency that is more than double that.

他の実施例 以上の実施例において、入力される画像データADと1
画素前の画像データAD’ との差データCDを演算し
、演算された差データCDを、第2表に示すように、差
データCDが”oooo”である場合を除いて、最上位
ビットと最下位ビットを”I”とし、最上位ビットと最
下位ビットの間に差データCDの絶対値に応じてビット
長が互いに異なる”0′′のビットを有し、かつ上記差
データCDの値が小さいほどより短いビット長を有する
圧縮符号を用いて符号化している。しかしながら、これ
に限らず、最上位ビットと最下位ビットを”0″とし、
最上位ビットと最下位ビットの間に”1″のビットを有
するように圧縮符号を構成してもよい。
Other Embodiments In the above embodiments, input image data AD and 1
Calculate the difference data CD with the image data AD' before the pixel, and divide the calculated difference data CD into the most significant bit as shown in Table 2, except when the difference data CD is "oooo". The least significant bit is "I", and between the most significant bit and the least significant bit there is a "0" bit with a different bit length depending on the absolute value of the difference data CD, and the value of the difference data CD The smaller the bit length, the shorter the bit length.However, the most significant bit and the least significant bit are set to "0",
The compression code may be configured to have a "1" bit between the most significant bit and the least significant bit.

以上の実施例において、1画素当たり2×2ドツトの5
階調度のデイザパターンの画像データを処理する場合に
ついて述べたが、これに限らず、1画素当たり、例えば
4×4ドツトや8×8ドツトの高い階調を有するデータ
パターンの画像データを処理する場合についても、本発
明のデータ圧縮処理及びデータ伸長処理を適用すること
ができる。
In the above embodiment, 5 dots of 2×2 dots per pixel.
Although we have described the case of processing image data with a dither pattern of gradations, this is not the only option; processing image data with a data pattern having a high gradation of, for example, 4 x 4 dots or 8 x 8 dots per pixel. The data compression processing and data expansion processing of the present invention can also be applied to such cases.

以上の実施例において、画像データのデータ圧縮処理及
びデータ伸長処理を行うファクシミリ装置について述べ
ているが、これに限らず、画像データの処理を行う他の
画像処理装置に適用することができる。また、画像メモ
リ56は固定のRAMメモリを用いているが、これに限
らず、着脱自在のメモリカードに圧縮された画像データ
を記憶させるようにしてもよい。
In the above embodiments, a facsimile machine that performs data compression processing and data expansion processing of image data has been described, but the present invention is not limited to this, and can be applied to other image processing devices that perform image data processing. Further, although a fixed RAM memory is used as the image memory 56, the compressed image data may be stored in a removable memory card.

(以下余白) 第1表 第2表 [発明の効果1 以上詳述したように本発明によれば、入力される画像デ
ータと1画素前の画像データとの差のデータを演算し、
上記差のデータを、上記差のデータに応じて互いにビッ
ト長が異なりかつ上記差のデータの絶対値が小さいほど
より短いビット長を有する符号を用いて符号化したので
、連続して入力される画像データが例えば中間調画像を
含む画像データであって、特に当該画像データの階調の
変化が小さい場合、その画像データの情報をより短いビ
ット長の符号に符号化することができるので、従来に比
較し高い圧縮効率で画像データの圧縮を行うことができ
る。
(Margin below) Table 1 Table 2 [Effect of the invention 1 As detailed above, according to the present invention, the data of the difference between the input image data and the image data one pixel before is calculated,
The difference data is encoded using a code that has different bit lengths depending on the difference data and has a shorter bit length as the absolute value of the difference data is smaller, so that it is input continuously. For example, if the image data is image data including a halftone image, and the change in gradation of the image data is particularly small, the information of the image data can be encoded into a code with a shorter bit length, so it is possible to encode the information of the image data into a code with a shorter bit length. It is possible to compress image data with higher compression efficiency compared to .

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

第1図は本発明に係る一実施例であるファクシミリ装置
の信号処理部のブロック図、 第2図は第1図のファクシミリ装置の断面図、第3図は
第2図のファクシミリ装置の操作パネル部の正面図、 第4図は第1図のファクシミリ装置のデータ圧縮部のブ
ロック図、 第5図は第1図のファクシミリ装置のデータ伸長部のブ
ロック図、 第6図(A)及び(B)は第4図のデータ圧縮部53に
おけるデータ符号化処理のフローチャート、 ′M7図は第5図のデータ伸長部におけるデータ伸長処
理のメインルーチンのフローチャート、第8図(A)、
(B)及び(C)は第7図の画像復元処理のサブルーチ
ンのフローチャート、第9図は5階調度の濃度パターン
の一例を示す図、 第10図は第9図の濃度パターンで構成された画像デー
タの一例を示す図である。 54・・・データ圧縮部、 91・・・ラッチ回路、 92・・・減算器、 93・・・バッファメモリ、 94・・・CPU。 95・・・ROM。 96・・・RAM。 97・・・入出力ポート回路。
FIG. 1 is a block diagram of a signal processing section of a facsimile device according to an embodiment of the present invention, FIG. 2 is a sectional view of the facsimile device of FIG. 1, and FIG. 3 is an operation panel of the facsimile device of FIG. 2. FIG. 4 is a block diagram of the data compression section of the facsimile machine of FIG. 1, FIG. 5 is a block diagram of the data decompression section of the facsimile machine of FIG. 1, and FIGS. ) is a flowchart of the data encoding process in the data compression section 53 of FIG. 4; 'M7 is a flowchart of the main routine of the data decompression process in the data decompression section of FIG. 5; FIG.
(B) and (C) are flowcharts of the image restoration processing subroutine shown in Fig. 7, Fig. 9 is a diagram showing an example of a density pattern with 5 gradations, and Fig. 10 is a diagram composed of the density pattern shown in Fig. 9. It is a figure showing an example of image data. 54...Data compression unit, 91...Latch circuit, 92...Subtractor, 93...Buffer memory, 94...CPU. 95...ROM. 96...RAM. 97...I/O port circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)連続に入力される階調を示す画像データを一時的
に格納する記憶手段と、 入力される画像データと上記記憶手段から出力される1
画素前の画像データとの差のデータを演算する演算手段
と、 上記演算手段から出力される差のデータを、上記差のデ
ータに応じて互いにビット長が異なりかつ上記差のデー
タの絶対値が小さいほどより短いビット長を有する符号
を用いて符号化する符号化手段とを備えたことを特徴と
する画像データ圧縮装置。
(1) A storage means for temporarily storing continuously inputted image data indicating gradations;
a calculation means for calculating the difference data from the image data before the pixel; and a calculation means for calculating the difference data output from the calculation means, the bit lengths being different from each other according to the difference data and the absolute value of the difference data being different from each other according to the difference data. An image data compression device comprising: encoding means for encoding using a code having a smaller bit length.
JP25660489A 1989-09-30 1989-09-30 Image data compression device Pending JPH03119865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25660489A JPH03119865A (en) 1989-09-30 1989-09-30 Image data compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25660489A JPH03119865A (en) 1989-09-30 1989-09-30 Image data compression device

Publications (1)

Publication Number Publication Date
JPH03119865A true JPH03119865A (en) 1991-05-22

Family

ID=17294940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25660489A Pending JPH03119865A (en) 1989-09-30 1989-09-30 Image data compression device

Country Status (1)

Country Link
JP (1) JPH03119865A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57106275A (en) * 1980-12-23 1982-07-02 Ricoh Co Ltd Method for compression of multilevel picture data
JPS6424634A (en) * 1987-07-21 1989-01-26 Fujitsu Ltd Variable length encoder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57106275A (en) * 1980-12-23 1982-07-02 Ricoh Co Ltd Method for compression of multilevel picture data
JPS6424634A (en) * 1987-07-21 1989-01-26 Fujitsu Ltd Variable length encoder

Similar Documents

Publication Publication Date Title
US5282059A (en) Facsimile apparatus comprising converting means for converting binary image data into multi-value image data
JP2756371B2 (en) Image processing device
US7253926B2 (en) Image-processing apparatus, method and program for outputting an image to a plurality of functions
JPH03119865A (en) Image data compression device
JPH03119863A (en) Image data expandor
JPS63182973A (en) Pseudo half-tonal image transmission method for facsimile equipment
JP2009100285A (en) Image reading apparatus, and image forming apparatus
JPH10308872A (en) Image information processing unit
JP3257648B2 (en) Image output apparatus and control method thereof
JPH03119864A (en) Image data compression device
JP2621875B2 (en) Facsimile machine
JP3364348B2 (en) Communication device
JPH06164778A (en) Copying machine with facsimile function having automatic dialing function
JPS63305671A (en) Facsimile equipment
JPH07312663A (en) Facsimile equipment
JPH08191396A (en) Communication equipment
JP2002185797A (en) Communication terminal
JPH05167836A (en) Image processing device and facsimile equipment
JP2002232725A (en) Color facsimile machine
JPH07322070A (en) Facsimile equipment
JPH06334863A (en) Picture processing unit
JP2002354251A (en) Image forming device
JPH05122508A (en) Facsimile pictorial communication method
JPH08204962A (en) Facsimile equipment
JP2004096198A (en) Communication terminal device and facsimile machine