JP2653497B2 - Image data encoding / decoding method and facsimile apparatus - Google Patents

Image data encoding / decoding method and facsimile apparatus

Info

Publication number
JP2653497B2
JP2653497B2 JP63269202A JP26920288A JP2653497B2 JP 2653497 B2 JP2653497 B2 JP 2653497B2 JP 63269202 A JP63269202 A JP 63269202A JP 26920288 A JP26920288 A JP 26920288A JP 2653497 B2 JP2653497 B2 JP 2653497B2
Authority
JP
Japan
Prior art keywords
pixel
data
pixels
value
shift
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 - Lifetime
Application number
JP63269202A
Other languages
Japanese (ja)
Other versions
JPH02114767A (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.)
KOWA BOSEKI KK
Original Assignee
KOWA BOSEKI KK
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 KOWA BOSEKI KK filed Critical KOWA BOSEKI KK
Priority to JP63269202A priority Critical patent/JP2653497B2/en
Publication of JPH02114767A publication Critical patent/JPH02114767A/en
Application granted granted Critical
Publication of JP2653497B2 publication Critical patent/JP2653497B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)

Description

【発明の詳細な説明】 発明の目的 [産業上の利用分野] 本発明は画像データの符号化・復号化方法とファクシ
ミリ装置に関し、詳しくは画像データに他のデータを重
畳・分離する符号化・復号化方法とその方法を適用した
ファクシミリ装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for encoding / decoding image data and a facsimile apparatus, and more particularly to an encoding / decoding method for superimposing / separating other data on image data. The present invention relates to a decoding method and a facsimile apparatus to which the method is applied.

[従来の技術] 従来、画像データの記録や伝送を効率化するために、
画像データを符号化し圧縮する手法が採られている。例
えば、画像を白黒に二値化すると共に二値化された画素
の二次元の相関を利用して画像を圧縮するモディファイ
ドリード(MR)方式が知られている。この方式は、二値
化された画素のランレングスをそのまま符号化するモデ
ィファイドハフマン(MH)方式のように水平方向の一走
査線だけで符号化・圧縮を行なうものではなく、隣接す
る走査線における画素との垂直方向の相関を利用するも
ので、符号化走査線とその直前の参照走査線における白
黒画像の境界の変化をパスモード、垂直モード、水平モ
ードの3種類のモードに分類して符号化する。こうした
画像データの符号化・復号化方法はファクシミリ装置に
用いられているので、ファクシミリでの方法に即して、
以下説明する。
[Prior art] Conventionally, in order to make recording and transmission of image data more efficient,
A technique of encoding and compressing image data is employed. For example, there is known a modified read (MR) method in which an image is binarized into black and white and the image is compressed using a two-dimensional correlation of the binarized pixels. This method does not perform encoding / compression with only one horizontal scanning line as in the modified Huffman (MH) method in which the run length of a binarized pixel is directly encoded. It uses the vertical correlation with pixels and classifies the change of the boundary of the black and white image between the coded scanning line and the immediately preceding reference scanning line into three types of modes: pass mode, vertical mode, and horizontal mode. Become Since such an image data encoding / decoding method is used in a facsimile machine, in accordance with the facsimile method,
This will be described below.

画素の並びに関し、第12図に示すように、特定の画素
を定義する。同一走査線上において、前の画素と色(白
あるいは黒)が変化した特定の画素を、変化画素と呼
ぶ。すなわち、 a0:符号化走査線上にある起点開始変化画素。ただし符
号化走査線の開始時(左端)では、a0は第1画素の直前
(左)に仮想的においた画素とする a1:符号化走査線上にありa0より右にある最初の変化画
素 a2:符号化走査線上にありa1より右にある最初の変化画
素 b1:参照走査線上にありa0より右にあるa0と逆の色を持
つ最初の変化画素 b2:参照走査線上にありb1の右にある最初の変化画素 ただしa0を除くa1,a2,b1,b2が当該走査線上に設定で
きないならば、これらはそれぞれの走査線の最後(右
端)の画素の直後(右)に仮想的に設定されているもの
とする。
With respect to the arrangement of pixels, specific pixels are defined as shown in FIG. A specific pixel whose color (white or black) has changed from the previous pixel on the same scanning line is called a changed pixel. That is, a0: a starting point start change pixel on the coded scan line. However, at the start of the coded scan line (left end), a0 is a pixel virtually placed immediately before (left) the first pixel. A1: The first changed pixel on the coded scan line and to the right of a0 a2: The first change pixel on the coded scan line and to the right of a1 b1: The first change pixel on the reference scan line and to the right of a0 and having the opposite color to a0 b2: On the reference scan line and to the right of b1 First change pixel However, if a1, a2, b1, and b2 except a0 cannot be set on the scan line, they are virtually set immediately after (right end) the last (right end) pixel of each scan line. Shall be

次に、第13図に例示する3種類のモードを下記のよう
に定義し、第1表の符号語を適用する。
Next, three types of modes illustrated in FIG. 13 are defined as follows, and the codewords in Table 1 are applied.

パスモード b2がa1の左に位置する場合をいう。このとき、b2の直
下をパスモードで符号化し、次に a0をb2の直下に移す。(第13図(A)) 垂直モード a1とb1との距離Δが±3画素以内である場合をいう。
このとき、a1の位置を垂直モードで符号化する。次に、
a0をa1の位置に移す。(第13図(B)) つまり、垂直モードでは、参照走査線上の変化画素と
符号化走査線上の変化画素とで同じ値(同じ色)のもの
同士の走査線方向における画素位置のずれ(上記距離
△)が±3画素分以内である、という条件を満たす符号
化走査線上の変化画素の位置を、そのずれを表す符号で
符号化する。
This means that the pass mode b2 is located to the left of a1. At this time, just below b2 is encoded in pass mode, and then Move a0 just below b2. (FIG. 13 (A)) This refers to a case where the distance Δ between the vertical modes a1 and b1 is within ± 3 pixels.
At this time, the position of a1 is encoded in the vertical mode. next,
Move a0 to a1. (FIG. 13 (B)) In other words, in the vertical mode, a pixel position shift in the scanning line direction between the changed pixels on the reference scanning line and the changed pixels on the coded scanning line having the same value (the same color) (see FIG. The position of the changed pixel on the coded scanning line that satisfies the condition that the distance △) is within ± 3 pixels is coded with a code representing the shift.

水平モード でもでもない場合をいう。この時a0a1とa1a2はMH
方式で符号化する(第1表2行目最右欄のM(a0a1),M
(a1a2)を示す)。次にa0をa2の位置に移す。(第13図
(C)) 尚、MR方式では、少なくともK本の走査線ごとに第1
走査線をMH方式で符号化し、引き続くK−1本の走査線
を、それぞれ直前の走査線を参照しながら上記のモード
に従い符号化する。この値をKパラメータと呼ぶが、フ
ァクシミリ装置では、標準解像度(3.85本/mm)でK=
2、高解像度(7.7本/mm)でK=4である。
It is neither horizontal mode nor horizontal mode. At this time, a0a1 and a1a2 are MH
(M (a0a1), M in the rightmost column in the second row of Table 1)
(A1a2)). Next, a0 is moved to the position of a2. (FIG. 13 (C)) In the MR method, the first scanning is performed at least every K scanning lines.
The scanning lines are encoded by the MH method, and the subsequent K-1 scanning lines are encoded according to the above-described mode while referring to the immediately preceding scanning line. This value is called a K parameter. In a facsimile machine, K = K at standard resolution (3.85 lines / mm).
2. K = 4 at high resolution (7.7 lines / mm).

一般に、文書画像は垂直方向に強い相関を持つため、
このMR方式で符号化すると垂直モードの割合、即ち、参
照走査線上の変化画素と符号化走査線上の変化画素と
で、同じ値のもの同士の走査線方向における画素位置の
ずれが±3画素分以内となる割合が非常に高くなる。例
えばCCITTのテストドキュメント(高解像度)では垂直
モードが平均89%となる。
Generally, document images have strong vertical correlation,
When the encoding is performed by the MR method, the ratio of the vertical mode, that is, the deviation of the pixel position in the scanning line direction between the changed pixels on the reference scanning line and the changed pixels on the encoded scanning line in the scanning line direction is ± 3 pixels. Is very high. For example, in CCITT test documents (high resolution), vertical mode averages 89%.

[発明が解決しようとする課題] しかしながら、かかる符号化の方法は公知のものなの
で、圧縮した形式で記録したものであっても、圧縮した
形で伝送している途中であっても、容易に復号化されて
しまうという問題があった。そこで、従来、走査線や画
素の転置によるスクランブル暗号化方式を採用し、ファ
クシミリ端末間の回線上の漏洩や盗聴を防止しようとす
るものも提案されているが、これらの方法でも最終的に
は誰にでも認識できる形に復元してしまうので、受信端
末にいる第三者、例えば文書係などの介在者には秘匿効
果がない。同一企業やグループ内であっても、軽率な情
報流出を慎まなければならないような文書の送受信は日
常多くみられるにもかかわらず、こうした問題について
の配慮はなされていない。即ち、従来の符号化・復号化
方法では、情報のセキュリティについてはほとんど考慮
されていないといえる。
[Problems to be Solved by the Invention] However, since such an encoding method is a known method, even if the data is recorded in a compressed form or is being transmitted in a compressed form, the encoding method can be easily performed. There was a problem of being decrypted. Therefore, conventionally, there has been proposed a method of adopting a scramble encryption method by transposing a scanning line or a pixel to prevent leakage or eavesdropping on a line between facsimile terminals. Since it is restored to a form that can be recognized by anyone, there is no concealment effect for a third party at the receiving terminal, for example, an intermediary such as a document clerk. Even within the same company or group, documents are sent and received on a daily basis that should not be taken carelessly, but no consideration has been given to such issues. That is, in the conventional encoding / decoding method, it can be said that information security is hardly considered.

また、多桁の数値であるキー等を利用してデータを暗
号化する手法も提案されているが、一見して暗号化され
ていると分かるため、解読されてしまうことが充分に考
えられ、現実的な解決とならない。また、秘匿しようと
するデータを他のデータ(ダミーデータ)に合成して暗
号化する手法も考えられるが、この場合にはデータの容
量が大きくなり、しかも秘匿しようとするデータやダミ
ーデータのいずれも通常の方法では復号化できなくなっ
てしまうという互換性上の問題を招致する。
In addition, a method of encrypting data using a key or the like which is a multi-digit number has also been proposed, but since it is apparent at first glance that the data is encrypted, it is sufficiently considered that the data may be decrypted. It is not a realistic solution. Further, a method of combining the data to be concealed with other data (dummy data) and encrypting the data is also conceivable, but in this case, the data capacity becomes large, and the data to be concealed or the dummy data is not used. However, there is a compatibility problem that decoding cannot be performed by a normal method.

本発明は上記課題を解決し、通常のMR方式の枠内で、
画像データに他のデータを合成しデータの記録あるいは
伝送密度の向上と、これに伴うデータの秘匿化とを実現
することを目的とする。
The present invention solves the above problems, and within the framework of a normal MR method,
An object of the present invention is to combine image data with other data to realize data recording or transmission density improvement and data concealment associated therewith.

発明の構成 かかる目的を達成する本発明の構成について以下説明
する。
Configuration of the Invention The configuration of the present invention that achieves the above object will be described below.

[課題を解決するための手段] 画像データに他のデータを合成し、あるいは、その合
成された他のデータを画像データから分離する方法とし
て、請求項1,2に記載の方法発明がある。
[Means for Solving the Problems] As a method of combining other data with image data or separating the combined other data from image data, there are the method inventions according to claims 1 and 2.

即ち、画像データに他のデータを合成して符号化する
ための請求項1に記載の本発明は、 原画像の各画素を二値化してなる画像データから、符
号化対象とする符号化走査線と該符号化走査線の直前の
参照走査線との各々について、走査線上で同じ値の画素
が連続している領域の先頭にある変化画像を抽出し、前
記参照走査線上の変化画素と前記符号化走査線上の変化
画素とで同じ値のもの同士の走査線方向における画素位
置のずれが所定画素数分以内である、という条件を満た
す前記符号化走査線上の変化画素を検出した場合に、当
該検出した符号化走査線上の変化画素の位置を、前記ず
れを表す符号で符号化することにより前記画像データを
圧縮する画像データの符号化方法において、 前記条件を満たす前記符号化走査線上の変化画素を検
出する毎に、前記画素データに合成すべき他の二値デー
タを読み出し、該読み出した二値データに応じて、該二
値データが第1の値である場合に前記ずれが前記所定画
素数分以内で且つ偶数となり、前記二値データが前記第
1の値と反対の第2の値である場合に前記ずれが前記所
定画素数分以内で且つ奇数となるように、前記検出した
変化画素を前記符号化走査線上にて1画素分以内で移動
させることにより、前記画素位置のずれに前記読み出し
た二値データを合成し、 該二値データを合成した後の前記ずれを表す符号によ
って、前記検出した符号化走査線上の変化画素の位置を
符号化すること、 を特徴とする画像データの符号化方法を要旨としてい
る。
In other words, the present invention according to claim 1 for synthesizing image data by combining other data with the image data, performs encoding scan as an encoding target from image data obtained by binarizing each pixel of an original image. For each of the line and the reference scan line immediately before the encoded scan line, a change image at the beginning of a region where pixels of the same value are continuous on the scan line is extracted, and a change pixel on the reference scan line and the change image In the case of detecting a changed pixel on the coded scanning line that satisfies the condition that the pixel position shift in the scanning line direction between those having the same value with the changed pixel on the coded scanning line is within a predetermined number of pixels, In the method of encoding image data, which compresses the image data by encoding the position of the changed pixel on the detected encoded scan line with a code representing the shift, the change on the encoded scan line satisfying the condition Pixel Each time the binary data is read out, the other binary data to be combined with the pixel data is read out, and according to the read binary data, if the binary data is a first value, the shift is equal to the predetermined number of pixels. Within a minute and the even number, and when the binary data is a second value opposite to the first value, the detected change pixel so that the shift is within the predetermined number of pixels and an odd number. Is moved within one pixel on the coded scanning line, thereby combining the read binary data with the displacement of the pixel position, and using a code representing the displacement after combining the binary data, Encoding the position of the changed pixel on the encoded scanning line detected above.

そして、この符号化方法により符号化された画像デー
タから、画像を復元すると共に、他のデータを分離する
ための請求項2に記載の本発明は、 請求項1に記載の符号化方法により符号化された画像
データから前記ずれを表す符号を順次抽出し、該抽出し
た符号を復号化して各走査線上の画素の並びを復元する
ことにより、画像を復元する画像データの復号化方法に
おいて、 画像の並びを復元した後の隣接する2つの走査線の各
々について、走査線上で同じ値の画素が連続している領
域の先頭にある変化画素を抽出し、一方の走査線上の変
化画素と他方の走査線上の変化画素との、同じ値のもの
同士の走査線方向における画素位置のずれが、前記所定
画素数分以内で且つ偶数であれば、当該ずれに前記第1
の値である他の二値データが合成されていると判断し、
前記画素位置のずれが、前記所定画素数分以内で且つ奇
数であれば、当該ずれに前記第2の値である他の二値デ
ータが合成されていると判断して、前記画像データから
前記他の二値データを分離すること、 を特徴とする画像データの復号化方法を要旨としてい
る。
The present invention according to claim 2 for restoring an image and separating other data from the image data encoded by this encoding method, uses the encoding method according to claim 1. A code representing the shift is sequentially extracted from the converted image data, and the extracted code is decoded to restore the arrangement of pixels on each scanning line, thereby recovering an image. For each of the two adjacent scanning lines after restoring the arrangement of the above, the changed pixel at the head of the area where pixels of the same value are continuous on the scanning line is extracted, and the changed pixel on one scanning line and the other If the shift of the pixel position in the scan line direction between pixels having the same value with the change pixel on the scan line is within the predetermined number of pixels and even, the first shift is regarded as the shift.
Judge that other binary data which is the value of
If the shift of the pixel position is within the predetermined number of pixels and is an odd number, it is determined that another binary data that is the second value is combined with the shift, and the The gist of the present invention is a method of decoding image data, which is characterized by separating other binary data.

一方、上述した画像データの符号化方法と復号化方法
とを直接実施する装置として、請求項3,4に記載のファ
クシミリ装置がある。
On the other hand, a facsimile apparatus according to claims 3 and 4 is an apparatus that directly performs the above-described image data encoding method and image data decoding method.

即ち、請求項1に記載の符号化方法を直接実施する請
求項3に記載のファクシミリ装置は、 原稿に記された画像を二値化して読み込む読取手段
と、 該読取手段により二値化して読み込まれた画像データ
から、符号化対象とする符号化走査線と該符号化走査線
の直前の参照走査線との各々について、走査線上で同じ
値の画素が連続している領域の先頭にある変化画素を抽
出し、前記参照走査線上の変化画素と前記符号化走査線
上の変化画素とで同じ値のもの同士の走査線方向におけ
る画素位置のずれが所定画素数分以内である、という条
件を満たす前記符号化走査線上の変化画素を検出した場
合に、当該検出した符号化走査線上の変化画素の位置
を、前記ずれを表す符号で符号化することにより前記画
像データを圧縮する符号化手段と、 該符号化手段により圧縮された画像データを所定の手
順で通信回線に出力する送信手段と、 を備えたファクシミリ装置において、 前記画像データに合成すべき他の二値データを用意す
る合成データ設定手段と、 前記符号化手段により前記条件を満たす前記符号化走
査線上の変化画素が検出される毎に、前記合成データ設
定手段により用意された二値データを読み出し、該読み
出した二値データに応じて、該二値データが第1の値で
ある場合に前記ずれが前記所定画素数分以内で且つ偶数
となり、前記二値データが前記第1の値と反対の第2の
値である場合に前記ずれが前記所定画素数分以内で且つ
奇数となるように、前記符号化手段により検出された変
化画素を前記符号化走査線上にて1画素分以内で移動さ
せることにより、前記画素位置のずれに前記読み出した
二値データを合成する合成手段とを備え、 前記符号化手段は、前記合成手段により前記二値デー
タが合成された後の前記ずれを表す符号によって、前記
検出した符号化走査線上の変化画素の位置を符号化する
こと、 を特徴としている。
That is, a facsimile apparatus according to claim 3, which directly implements the encoding method according to claim 1, reads out an image written on a document by binarization, and reads the image binarized by the reading means. From the obtained image data, for each of the encoded scan line to be encoded and the reference scan line immediately before the encoded scan line, the change at the head of the area where pixels of the same value are continuous on the scan line A pixel is extracted, and a condition is satisfied that a shift of a pixel position in a scanning line direction between pixels having the same value between a changed pixel on the reference scanning line and a changed pixel on the encoded scanning line is within a predetermined number of pixels. Encoding means for compressing the image data by encoding a position of the changed pixel on the detected coded scanning line with a code representing the shift when detecting a changed pixel on the coded scanning line; The sign Transmitting means for outputting the image data compressed by the converting means to the communication line in a predetermined procedure, and a facsimile apparatus comprising: a synthetic data setting means for preparing other binary data to be synthesized with the image data; Each time a changed pixel on the encoded scan line that satisfies the condition is detected by the encoding unit, the binary data prepared by the composite data setting unit is read, and the binary data is read according to the read binary data. When the binary data is the first value, the shift is within the predetermined number of pixels and is even, and when the binary data is the second value opposite to the first value, the shift is By moving the changed pixel detected by the encoding means within one pixel on the encoded scanning line so as to be an odd number within the predetermined number of pixels, the position of the pixel is shifted. Synthesizing means for synthesizing the read binary data, wherein the encoding means uses a code representing the shift after the binary data is synthesized by the synthesizing means, on the detected encoded scan line. And coding the position of the changed pixel of.

そして、請求項2に記載の復号化方法を直接実施する
請求項4に記載のファクシミリ装置は、 請求項3に記載のファクシミリ装置から送信される画
像データを、通信回線を介して受信する受信手段と、 該受信手段により受信された画像データから前記ずれ
を表す符号を順次抽出し、該抽出した符号を復号化して
各走査線上の画素の並びを復元する復元手段と、 該復元手段により復元された画素の並びに従って画像
を再現する画像再現手段と、 を備えたファクシミリ装置において、 前記復元手段により画素の並びが復元された隣接する
2つの走査線の各々について、走査線上で同じ値の画素
が連続している領域の先頭にある変化画素を抽出し、一
方の走査線上の変化画素と他方の走査線上の変化画素と
の、同じ値のもの同士の走査線方向における画素位置の
ずれが、前記所定画素数分以内で且つ偶数であれば、当
該ずれに前記第1の値である他の二値データが合成され
ていると判断し、前記画素位置のずれが、前記所定画素
数分以内で且つ奇数であれば、当該ずれに前記第2の値
である他の二値データが合成されていると判断して、前
記画像データから前記他の二値データを分離するデータ
分離手段と、 該データ分離手段により分離された二値データを出力
するデータ出力手段と、 を備えたことを特徴としている。
A facsimile apparatus according to claim 4, which directly implements the decoding method according to claim 2, wherein receiving means for receiving, via a communication line, image data transmitted from the facsimile apparatus according to claim 3. Restoring means for sequentially extracting codes representing the shift from the image data received by the receiving means, decoding the extracted codes and restoring the arrangement of pixels on each scanning line, Image reproducing means for reproducing an image in accordance with the arrangement of the pixels, and for each of two adjacent scanning lines in which the arrangement of pixels has been restored by the restoration means, a pixel having the same value on the scanning line The changed pixel at the head of the continuous area is extracted, and the changed pixel on one scanning line and the changed pixel on the other scanning line are scanned in the scanning line direction between those having the same value. If the deviation of the pixel position is within the predetermined number of pixels and is even, it is determined that another binary data that is the first value is combined with the deviation, and the deviation of the pixel position is determined. If the number is within the predetermined number of pixels and is an odd number, it is determined that the other binary data that is the second value is combined with the shift, and the other binary data is converted from the image data. And a data output means for outputting the binary data separated by the data separation means.

[作用] 上記構成を有する本発明の画像データの符号化・復号
化方法によれば、画像データは次のように取り扱われ
る。
[Operation] According to the image data encoding / decoding method of the present invention having the above configuration, the image data is handled as follows.

まず、請求項1に記載の画像データの符号化方法で
は、原画像の各画素を二値化してなる画像データから、
符号化対象とする符号化走査線と該符号化走査線の直前
の参照走査線との各々について、走査線上で同じ値の画
素が連続している領域の先頭にある変化画素を抽出し、
参照走査線上の変化画素と符号化走査線上の変化画素と
で同じ値のもの同士の走査線方向における画素位置のず
れが所定画素数分以内である、という条件を満たす符号
化走査線上の変化画素を検出した場合に、その検出した
符号化走査線上の変化画素の位置を、前記ずれを表す符
号で符号化することにより画像データを圧縮する。
First, in the image data encoding method according to the first aspect, image data obtained by binarizing each pixel of an original image is obtained by:
For each of the encoded scan line to be encoded and the reference scan line immediately before the encoded scan line, extract a changed pixel at the beginning of a region where pixels of the same value are continuous on the scan line,
A changed pixel on an encoded scan line that satisfies the condition that the pixel position shift in the scan line direction between the changed pixel on the reference scan line and the changed pixel on the encoded scan line in the scan line direction is within a predetermined number of pixels. Is detected, the image data is compressed by encoding the detected position of the changed pixel on the encoded scan line with the code representing the shift.

つまり、前述したモディファイドリード(MR)方式の
垂直モードの如き手順により画像データを圧縮するので
あるが、更に、前記条件を満たす符号化走査線上の変化
画素を検出する毎に、画像データに合成すべき他の二値
データを読み出して、その二値データを、以下の手順に
より画像データに合成する。
That is, the image data is compressed by a procedure such as the above-described vertical mode of the modified read (MR) method, and is further combined with the image data every time a changed pixel on the coded scanning line satisfying the above condition is detected. The other binary data to be read is read, and the binary data is combined with the image data by the following procedure.

即ち、読み出した二値データに応じて、その二値デー
タが第1の値である場合に前記ずれが前記所定画素数分
以内で且つ偶数となり、また、読み出した二値データが
第1の値と反対の第2の値である場合に前記ずれが前記
所定画素数分以内で且つ奇数となるように、前記検出し
た変化画素を符号化走査線上にて1画素分以内で移動さ
せることにより、前記画素位置のずれに前記読み出した
二値データを合成する。そして、このように、二値デー
タを合成した後のずれを表す符号によって、前記検出し
た符号化走査線上の変化画素の位置を符号化すること
で、本来の画像データを符号化・圧縮する際に他の二値
データを合成するのである。
That is, in accordance with the read binary data, when the binary data is the first value, the shift is within the predetermined number of pixels and is even, and the read binary data is the first value. By moving the detected changed pixel within one pixel on the coded scanning line so that the deviation is within the predetermined number of pixels and becomes an odd number when the second value is opposite to the second value, The read binary data is combined with the displacement of the pixel position. In this way, by encoding the position of the changed pixel on the detected encoded scanning line with the code representing the shift after the combination of the binary data, the original image data is encoded and compressed. Is combined with other binary data.

次に、上記のような手順で二値データが合成された画
像データからは、請求項2に記載の画像データの復号化
方法によって、その合成された二値データを分離するこ
とができる。
Next, the combined binary data can be separated from the image data in which the binary data has been combined in the above procedure by the image data decoding method according to the second aspect.

つまり、請求項2に記載の復号化方法では、請求項1
に記載の符号化方法により符号化された画像データから
前記ずれを表す符号を順次抽出し、その抽出した符号を
復号化して各走査線上の画像の並びを復元することによ
り、画像を復元するのであるが、画素の並びを復元した
後の隣接する2つの走査線の各々について変化画素を抽
出し、一方の走査線上の変化画素と他方の走査線上の変
化画素との、同じ値のもの同士の走査線方向における画
素位置のずれが、前記所定画素数分以内で且つ偶数であ
れば、そのずれに第1の値である他の二値データが合成
されていると判断し、前記画素位置のずれが、前記所定
画素数分以内で且つ奇数であれば、そのずれに第2の値
である他の二値データが合成されていると判断して、画
像データから他の二値データを分離するのである。
That is, in the decoding method according to claim 2, claim 1
Since the code representing the shift is sequentially extracted from the image data encoded by the encoding method described in the above, and the extracted code is decoded to restore the arrangement of the images on each scanning line, the image is restored. However, a changed pixel is extracted for each of two adjacent scanning lines after the pixel arrangement is restored, and a changed pixel having the same value between a changed pixel on one scanning line and a changed pixel on the other scanning line is extracted. If the displacement of the pixel position in the scanning line direction is within the predetermined number of pixels and is even, it is determined that another binary data that is the first value is combined with the displacement, and the displacement of the pixel position is determined. If the shift is within the predetermined number of pixels and is an odd number, it is determined that another binary data, which is the second value, is combined with the shift, and the other binary data is separated from the image data. You do it.

一方、請求項1に記載の符号化方法を直接実施する請
求項3に記載のファクシミリ装置においては、読取手段
が、原稿に記された画像を二値化して読み込み、符号化
手段が、読取手段により二値化して読み込まれた画像デ
ータから、符号化対象とする符号化走査線と該符号化走
査線の直前の参照走査線との各々について変化画素を抽
出し、参照走査線上の変化画素と符号化走査線上の変化
画素とで同じ値のもの同士の走査線方向における画素位
置のずれが所定画素数分以内である、という条件を満た
す符号化走査線上の変化画素を検出した場合に、その検
出した符号化走査線上の変化画素の位置を、前記ずれを
表す符号で符号化することにより画像データを圧縮す
る。そして、送信手段が、符号化手段により圧縮された
画像データを所定の手順で通信回線に出力する。
On the other hand, in the facsimile apparatus according to claim 3, which directly implements the encoding method according to claim 1, the reading means binarizes and reads the image written on the original, and the encoding means reads the image. From the image data read by binarization, a changed pixel is extracted for each of an encoded scan line to be encoded and a reference scan line immediately before the encoded scan line, and a changed pixel on the reference scan line is extracted. When a changed pixel on the coded scanning line that satisfies the condition that the pixel position shift in the scanning line direction between those having the same value as the changed pixel on the coded scanning line is within a predetermined number of pixels, Image data is compressed by encoding the detected position of the changed pixel on the encoded scan line with a code representing the shift. Then, the transmitting means outputs the image data compressed by the encoding means to the communication line in a predetermined procedure.

ここで特に、請求項3に記載のファクシミリ装置で
は、合成データ設定手段が、画像データに合成すべき他
の二値データを用意し、合成手段が、符号化手段により
前記条件を満たす符号化走査線上の変化画素が検出され
る毎に、合成データ設定手段により用意された二値デー
タを読み出し、その読み出した二値データに応じて、該
二値データが第1の値である場合に前記ずれが前記所定
画素数分以内で且つ偶数となり、前記二値データが第1
の値と反対の第2の値である場合に前記ずれが前記所定
画素数分以内で且つ奇数となるように、符号且手段によ
り検出された変化画素を符号化走査線上にて1画素分以
内で移動させることにより、前記画素位置のずれに前記
読み出した二値データを合成する。そして、符号化手段
は、合成手段により二値データが合成された後のずれを
表す符号によって、前記検出した符号化走査線上の変化
画素の位置を符号化する。
In this case, in particular, in the facsimile apparatus according to the third aspect, the combined data setting means prepares another binary data to be combined with the image data, and the combining means performs the encoding scan satisfying the condition by the encoding means. Each time a changed pixel on the line is detected, the binary data prepared by the combined data setting means is read out. If the binary data is the first value according to the read binary data, the shift is performed. Is an even number within the predetermined number of pixels, and the binary data is
The changed pixel detected by the signing means within one pixel on the coded scanning line so that the deviation is within the predetermined number of pixels and an odd number when the value is a second value opposite to the value of And the read binary data is combined with the displacement of the pixel position. Then, the encoding unit encodes the position of the changed pixel on the detected encoded scanning line by using a code representing a shift after the binary data is combined by the combining unit.

つまり、請求項3に記載のファクシミリ装置では、合
成手段と符号化手段が上記の如く機能することで、画像
データを符号化・圧縮する際に他の二値データが合成さ
れるのである。
In other words, in the facsimile apparatus according to the third aspect, when the synthesizing means and the encoding means function as described above, other binary data is synthesized when the image data is encoded and compressed.

また、請求項2に記載の符号化方法を直接実施する請
求項4に記載のファクシミリ装置においては、受信手段
が、請求項3に記載のファクシミリ装置から送信される
画像データを、通信回線を介して受信し、復元手段が、
受信手段により受信された画像データから前記ずれを表
す符号を順次抽出し、その抽出した符号を復号化して各
走査線上の画素の並びを復元する。そして、画像再現手
段が、復元手段により復元された画素の並びに従って画
像を再現する。
Further, in the facsimile apparatus according to claim 4 for directly executing the encoding method according to claim 2, the receiving means transmits image data transmitted from the facsimile apparatus according to claim 3 via a communication line. Receiving and restoring means,
Codes representing the shifts are sequentially extracted from the image data received by the receiving means, and the extracted codes are decoded to restore the arrangement of pixels on each scanning line. Then, the image reproducing means reproduces the image in accordance with the arrangement of the pixels restored by the restoring means.

ここで特に、請求項4に記載のファクシミリ装置で
は、データ分離手段が、復元手段により画素の並びが復
元された隣接する2つの走査線の各々について変化画素
を抽出し、一方の走査線上の変化画素と他方の走査線上
の変化画素との、同じ値のもの同士の走査線方向におけ
る画素位置のずれが、前記所定画素数分以内で且つ偶数
であれば、そのずれに第1の値である他の二値データが
合成されていると判断し、前記画素位置のずれが、前記
所定画素数分以内で且つ奇数であれば、そのずれに第2
の値である他の二値データが合成されていると判断し
て、受信した画像データから他の二値データを分離す
る。そして、出力手段が、データ分離手段により分離さ
れた二値データを出力する。
In this case, in particular, in the facsimile apparatus according to claim 4, the data separating unit extracts a change pixel for each of two adjacent scanning lines whose pixel arrangement has been restored by the restoration unit, and changes the change pixel on one of the scan lines. If the shift of the pixel position in the scan line direction between pixels having the same value between the pixel and the change pixel on the other scan line is within the predetermined number of pixels and even, the shift is the first value. It is determined that other binary data has been synthesized, and if the shift of the pixel position is within the predetermined number of pixels and is an odd number, the shift is regarded as the second shift.
It is determined that other binary data having the value of (i) has been synthesized, and the other binary data is separated from the received image data. Then, the output means outputs the binary data separated by the data separation means.

つまり、請求項4に記載のファクシミリ装置では、デ
ータ分離手段が上記の如く機能することで、画像データ
を復号化して画像を再現する際に、その画像データから
他の二値データが分離されるのである。
That is, in the facsimile apparatus according to the fourth aspect, when the data separating means functions as described above, when decoding the image data and reproducing the image, other binary data is separated from the image data. It is.

[実施例] 以上説明した本発明の構成・作用を一層明らかにする
ために、以下本発明の画像データの符号化・復号化方法
とこの方法を直接実施するファクシミリ装置の好適な実
施例について説明する。第1図は、通信回線を介して接
続された実施例としての2台のファクシミリ装置の概略
構成図である。2台のファクシミリ装置は、送受信の両
機能を備えたものであり、内部の構成は同一なので、こ
こでは送信側として説明するファクシミリ装置1の構成
を中心に説明する。
[Embodiment] In order to further clarify the configuration and operation of the present invention described above, a preferred embodiment of an image data encoding / decoding method of the present invention and a facsimile apparatus which directly implements the method will be described below. I do. FIG. 1 is a schematic configuration diagram of two facsimile apparatuses as an embodiment connected via a communication line. Since the two facsimile apparatuses have both functions of transmission and reception, and have the same internal configuration, the configuration of the facsimile apparatus 1 described here as the transmitting side will be mainly described.

このファクシミリ装置1は、端末2を備えたコンピュ
ータ3に、画像入力用のイメージスキャナ5および画像
出力用のプリンタ7を接続し、ボードタイプのファクシ
ミリ用モデム10を組み込んだものである。コンピュータ
3の内部には、周知のCPU11,ROM12,RAM13の他、端末2
とのデータの入出力を司る端末コントローラ15,イメー
ジスキャナ5に接続されそのデータを入力するスキャナ
入力ポート17,プリンタ7に接続されデータを出力する
プリンタ制御ポート18が備えられている。尚、受信側と
して働くファクシミリ装置21も、その構成はファクシミ
リ1と同一であり、端末22,コンピュータ23,イメージス
キャナ25,プリンタ27,ファクシミリ用モデム30も同様に
備えられている。両ファクシミリ装置1,21は、内蔵のフ
ァクシミリ用モデム10,30を介して公衆通信回線40に接
続されている。
In the facsimile apparatus 1, an image scanner 5 for image input and a printer 7 for image output are connected to a computer 3 having a terminal 2, and a board-type facsimile modem 10 is incorporated. Inside the computer 3, in addition to the well-known CPU 11, ROM 12, RAM 13,
A terminal controller 15 for inputting and outputting data to and from the scanner, a scanner input port 17 connected to the image scanner 5 and inputting the data, and a printer control port 18 connected to the printer 7 and outputting data are provided. The configuration of the facsimile machine 21 serving as the receiving side is the same as that of the facsimile machine 1, and the terminal 22, the computer 23, the image scanner 25, the printer 27, and the facsimile modem 30 are also provided. Both facsimile machines 1, 21 are connected to a public communication line 40 via built-in facsimile modems 10, 30.

次に、両ファクシミリ装置1,21におけるデータの合成
・出力処理、データの受信・分離処理について順次説明
する。第2図は、送信側のファクシミリ装置1が実行す
る処理ルーチンを示すフローチャート、第3図は、かか
る処理ルーチンにおけるデータの合成処理の詳細を示す
フローチャートである。尚、以下の説明で、a0,a1,a2,b
1,b2は、第12図に示し[従来の技術]の項で説明したよ
うに、符号化走査線と参照走査線とにおける白または黒
画像の並びの反転する位置の画素(変化画素)を示すも
のとする。
Next, data combining / outputting processing and data receiving / separating processing in both facsimile apparatuses 1 and 21 will be sequentially described. FIG. 2 is a flowchart showing a processing routine executed by the facsimile machine 1 on the transmitting side, and FIG. 3 is a flowchart showing details of data combining processing in the processing routine. In the following description, a0, a1, a2, b
As shown in FIG. 12 and described in the section of [Prior Art], 1 and b2 denote the pixels (change pixels) at the positions where the arrangement of the white or black image in the encoding scan line and the reference scan line is inverted. Shall be shown.

送信側のファクシミリ装置1は、イメージスキャナ5
により送信しようとする原稿51を読み取って、その画像
データを予めRAM13に展開している。原稿51の画像デー
タは、走査線毎に展開されている。また、これに合成し
ようとするデータは、端末2からの文字列の形で入力さ
れ、コンピュータ3内のRAM13に展開・記憶されてい
る。
The facsimile machine 1 on the transmitting side includes an image scanner 5
The original 51 to be transmitted is read, and the image data is expanded in the RAM 13 in advance. The image data of the document 51 is developed for each scanning line. The data to be combined with the data is input in the form of a character string from the terminal 2 and is developed and stored in the RAM 13 in the computer 3.

送信側のファクシミリ装置1は、呼設定のフェーズA
を経て受信側のファクシミリ装置21と通信回線40を介し
て接続されると、メッセージ伝送に先立つフェーズBを
完了し、その後、メッセージを伝送するフェーズCに移
行する。フェーズCでは、まず、MR方式におけるKパラ
メータの参照用の変数Kxを初期値1に設定する処理を行
ない(ステップ100)、画像データの読取の解像度の指
定が標準モードであったか高解像度モードであったかの
判断を行なう(ステップ110)。解像度モードであれば
Kパラメータを値4に設定し(ステップ113)、標準モ
ードであればKパラメータを値2に設定する(ステップ
116)。その後、変数Kxが値1であるか否かの判断を行
なう(ステップ120)。
The facsimile machine 1 on the transmitting side performs the call setting phase A
When the connection is made to the facsimile machine 21 on the receiving side via the communication line 40 via the communication line 40, the phase B prior to the message transmission is completed, and then the process proceeds to the phase C for transmitting the message. In the phase C, first, a process of setting a variable Kx for reference of the K parameter in the MR method to an initial value 1 is performed (step 100), and whether the resolution of the image data reading is the standard mode or the high-resolution mode is determined. Is determined (step 110). In the case of the resolution mode, the K parameter is set to the value 4 (step 113), and in the case of the standard mode, the K parameter is set to the value 2 (step 113).
116). Thereafter, it is determined whether or not the variable Kx has the value 1 (step 120).

変数Kx=1、即ち頁の最初のようにMH方式で符号化す
る走査線であると判断されれば、ラインの先頭としてエ
ンドオブライン(EOL)+1の信号を出力し(ステップ1
25)、1ライン終了するまで、MH方式で画素の並びを符
号化し出力する処理を行なう(ステップ130,135)。
If it is determined that the variable Kx = 1, that is, the scanning line to be encoded in the MH system as at the beginning of the page, an end-of-line (EOL) +1 signal is output as the head of the line (step 1).
25) Until the end of one line, a process of encoding and outputting the pixel arrangement in the MH system is performed (steps 130 and 135).

一方、変数Kxが値1以外の値であれば(ステップ12
0)、MR方式で符号化すべきラインであるとして、符号E
OL+0を出力し(ステップ140)、a0を第1画素の更に
左側に設定する処理を行なう(ステップ145)。次に、
[従来の技術]の項で説明したように、符号化走査線お
よび参照走査線上の連続する白または黒画素の変化する
画素(変化画素と呼ぶ)a1,a2,b1,b2を検出する処理を
行なう(ステップ150)。各画素の定義については、第1
2図を参照のこと。
On the other hand, if the variable Kx is a value other than the value 1 (step 12
0), assuming that the line is to be encoded by the MR method,
OL + 0 is output (step 140), and processing for setting a0 to the further left of the first pixel is performed (step 145). next,
As described in the section of [Prior Art], a process for detecting pixels (referred to as changed pixels) a1, a2, b1, b2 in which continuous white or black pixels change on an encoding scan line and a reference scan line is performed. Perform (step 150). For the definition of each pixel,
See FIG.

こうして検出された画素に関して、画素b2は画素a1の
左側か否かの判断を行ない(ステップ150)、左側にあ
ればパスモードに当たるので、パスモードで符号化し、
これをファクシミリ用モデム10を介して出力すると共
に、次の符号化に備えて画素a0を画素b2の真下に移動・
設定する処理を行なう(ステップ160)。パスモードに
相当する画素の並びの一例および画素a0の移動の様子
は、第13図(A)に示した通りである。
With respect to the pixels thus detected, it is determined whether or not the pixel b2 is on the left side of the pixel a1 (step 150). If the pixel is on the left side, the pixel corresponds to the pass mode.
This is output via the facsimile modem 10, and the pixel a0 is moved to a position immediately below the pixel b2 in preparation for the next encoding.
A setting process is performed (step 160). An example of the arrangement of pixels corresponding to the pass mode and the movement of the pixel a0 are as shown in FIG. 13 (A).

一方、画素b2が画素a1の左側にない場合には(ステッ
プ155)、画素a1と画素b1との隔たりΔ(a1b1)が値3
以内であるか否かの判断を行なう(ステップ165)。隔
たりが値3以上であれば、第13図(C)に例示したよう
に、水平モードに相当するので、水平モードで符号化
し、これをファクシミリ用モデム10を介して出力すると
共に、次の符号化の処理に備えて画素a0を画素a2の位置
に移動・設定する処理を行なう(ステップ170)。
On the other hand, if the pixel b2 is not to the left of the pixel a1 (step 155), the distance Δ (a1b1) between the pixel a1 and the pixel b1 is 3
It is determined whether it is within the range (step 165). If the distance is 3 or more, it corresponds to the horizontal mode as illustrated in FIG. 13 (C), so that it is coded in the horizontal mode, and this is output via the facsimile modem 10 and the next code is output. The pixel a0 is moved / set to the position of the pixel a2 in preparation for the conversion process (step 170).

両画素a1,b1の隔たりΔ(a1b1)が値3以内の場合に
は、第13図(B)に例示したように、垂直モードに相当
するので、データの合成を行なうとして、合成可能か否
かの判断および可能な場合のデータDm(i)の合成処理
を行なう(ステップ180)。データ合成の可否の判断お
よび合成の詳細については、第3図に基づき後述する。
こうして垂直モードにおいてのデータの合成を行なった
後、垂直モードで符号化しこれを出力する処理を行なう
と共に、次の符号化に備えて画素a0を画素a1の位置に移
動・設定する処理を行なう(ステップ190)。
If the distance Δ (a1b1) between the two pixels a1 and b1 is within the value 3, it corresponds to the vertical mode as exemplified in FIG. 13 (B). Is determined, and the data Dm (i) is synthesized if possible (step 180). The determination of whether or not data combination is possible and details of the combination will be described later with reference to FIG.
After combining the data in the vertical mode in this manner, a process of encoding the data in the vertical mode and outputting it is performed, and a process of moving and setting the pixel a0 to the position of the pixel a1 in preparation for the next encoding is performed ( Step 190).

パスモード(ステップ160),水平モード(ステップ1
70),垂直モード(ステップ190)の各々で符号化・出
力等を行なった後、1ラインの符号化が総て終了したか
否かの判断を行ない(ステップ195)、1ライン終了し
ていなければ、上述したステップ150に戻り、符号化後
設定した画素a0に基づいて、画素a1,a2,b1,b2を新たに
検出する処理から繰り返す。一方、符号化走査線の最後
まで符号化が終了した場合には(ステップ195)、走査
線のKパラメータの判断を行なう変数Kxを値1だけイン
クリメントし(ステップ200)、この変数KxがKパラメ
ータより大きくなったか否かの判断を行ない(ステップ
205)、Kパラメータよりも大きくなった場合には、初
期値1に戻す処理を行なう(ステップ210)。
Pass mode (step 160), horizontal mode (step 1)
70), after performing encoding / output in each of the vertical modes (step 190), it is determined whether or not encoding of one line has been completed (step 195). One line must be completed. For example, the process returns to step 150 described above, and the process is repeated from the process of newly detecting the pixels a1, a2, b1, and b2 based on the pixel a0 set after the encoding. On the other hand, when the encoding is completed up to the end of the encoded scanning line (step 195), the variable Kx for determining the K parameter of the scanning line is incremented by 1 (step 200), and this variable Kx It is determined whether or not it has become larger (step
205) If the value is larger than the K parameter, a process for returning to the initial value 1 is performed (step 210).

その後、1ページ終了したか否かの判断を行ない(ス
テップ215)、終了していなければ、変数Kxについての
判断(ステップ120)から処理を繰り返す。即ち、次の
ラインがMH方式で符号化するラインかMR方式で符号化す
るラインかの判断から繰り返すのである。1ページ分の
画像の伝送が終了したと判断された場合には、ページの
終了を示す符号RTCを出力し(ステップ220)、「NEXT」
に抜けて、フェーズDの処理に移行する。尚、複数ペー
ジのデータを送信する場合には、フェーズDから再びフ
ェーズCに戻り、第2図に示す処理を再度実行する。
Thereafter, it is determined whether or not one page has been completed (step 215). If not, the process is repeated from the determination on the variable Kx (step 120). That is, the process is repeated from the determination of whether the next line is a line to be encoded by the MH method or a line to be encoded by the MR method. If it is determined that the transmission of the image for one page has been completed, a code RTC indicating the end of the page is output (step 220), and "NEXT"
And the process proceeds to a phase D process. When transmitting data of a plurality of pages, the process returns from the phase D to the phase C again, and executes the processing shown in FIG. 2 again.

以上簡単にフェーズCの処理について説明したが、次
に、データの合成の詳細について説明する。第2図に示
すステップ180では、まず、符号化走査線上の画素a1か
ら参照走査線上の画素b1までの隔たりΔ(a1b1)がどの
ような条件に入っているかの判断を行なう(ステップ25
0)。尚、Δ(a1b1)に限り、以下の説明で単にΔと表
示する。垂直モードの場合、両画素の隔たりは±3以内
であるので、これを偶奇性に着目して、 Δ=0,2の場合、 Δ=1,3の場合、 Δ=−1,−3の場合、 Δ=−2の場合、 に場合分けする。各場合について、データの合成を行な
うためには画素間に一定の制約がある。これは、画素の
配置によってはデータを1ビット合成することによりデ
ータの復元ができなくなってしまう場合があることによ
っている。そこで、各場合について、条件が成立するか
否かの判断を行なう。
The processing of the phase C has been briefly described above. Next, the details of the data synthesis will be described. In step 180 shown in FIG. 2, first, it is determined what condition the gap Δ (a1b1) from the pixel a1 on the coded scanning line to the pixel b1 on the reference scanning line is in (step 25).
0). It should be noted that only Δ (a1b1) is simply indicated as Δ in the following description. In the case of the vertical mode, the distance between both pixels is within ± 3. Therefore, paying attention to the evenness, Δ = 0,2, Δ = 1,3, Δ = -1, -3 In the case where Δ = −2, the case is divided into: In each case, there are certain restrictions between pixels in order to combine data. This is due to the fact that data may not be able to be restored by combining 1-bit data depending on the arrangement of pixels. Therefore, in each case, it is determined whether or not the condition is satisfied.

Δ=0または2の場合 画素a0と画素a1との距離Δ(a0a1)が値3以上で(ス
テップ260)、かつ、参照走査線上で画素b1の1つ前に
ある変化画素である画素b0と画素a1との距離Δ(b0a1)
が値2以上の場合(ステップ262)に限り、データの合
成を行なうものとする。これらの条件が満たされている
場合には、合成しようとする文字列Dmを順次読み出しそ
のi番目のビット(以下これをビットDm(i)と表す)
が値1であるか否かの判断を行ない(ステップ266)、
値1であれば、符号化走査線上の画素a1を1画素分左へ
移動する処理を行なう(ステップ268)。条件が成立し
ない場合(ステップ260,262)およびビットDm(i)が
値1でない場合には、何の処理も行なわない。この結
果、第4図(A1),(A2)に示すように、Δ=0,2の場
合、ビットDm(i)を挿入すると、ビットDm(i)が値
1の場合には隔たりΔは奇数に、ビットDm(i)が値0
の場合には隔たりΔは偶数に設定される。
In the case of Δ = 0 or 2, the distance Δ (a0a1) between the pixel a0 and the pixel a1 is equal to or more than 3 (step 260), and the pixel b0, which is the change pixel immediately before the pixel b1 on the reference scanning line, Distance Δ from pixel a1 (b0a1)
Only when the value is 2 or more (step 262), data synthesis is performed. If these conditions are satisfied, the character string Dm to be synthesized is sequentially read out and its i-th bit (hereinafter, this is referred to as bit Dm (i))
It is determined whether or not is the value 1 (step 266),
If the value is 1, a process of moving the pixel a1 on the encoded scanning line to the left by one pixel is performed (step 268). If the condition is not satisfied (steps 260 and 262) and if the bit Dm (i) is not the value 1, no processing is performed. As a result, as shown in FIGS. 4 (A1) and (A2), when Δ = 0,2, if the bit Dm (i) is inserted, when the bit Dm (i) has the value 1, the gap Δ becomes Oddly, bit Dm (i) has value 0
In this case, the gap Δ is set to an even number.

Δ=1,3の場合 この場合には、合成の条件として、画素a0と画素a1と
の隔たりΔ(a0a1)が値2以上であり(ステップ27
0)、かつ画素b0と画素a1との隔たりΔ(b0a1)が値1
以上であり(ステップ272)、かつ画素b1と画素a2との
隔たりΔ(b1a2)が値1以上であること(ステップ27
4)を判別する。これらの条件が満たされている場合に
は、合成しようとするビットDm(i)が値0であるか否
かの判断を行ない(ステップ276)、値0であれば、符
号化走査線上の画素a1を1画素分右へ移動する処理を行
なう(ステップ278)。条件が成立しない場合(ステッ
プ270,272,274)およびビットDm(i)が値0でない場
合には、何の処理も行なわない。この結果、第4図(B
1),(B2)に示すように、Δ=1,3の場合、ビットDm
(i)を挿入すると、ビットDm(i)が値1の場合には
隔たりΔは奇数に、ビットDm(i)が値0の場合には隔
たりΔは偶数に設定される。
In the case of Δ = 1,3 In this case, as a condition for synthesis, the distance Δ (a0a1) between the pixel a0 and the pixel a1 is equal to or more than 2 (step 27).
0) and the distance Δ (b0a1) between the pixel b0 and the pixel a1 is a value of 1.
(Step 272), and the distance Δ (b1a2) between the pixel b1 and the pixel a2 is equal to or greater than 1 (step 27).
4) is determined. If these conditions are satisfied, it is determined whether or not the bit Dm (i) to be synthesized has a value of 0 (step 276). If the value is 0, the pixel on the coded scanning line is determined. A process is performed to move a1 one pixel to the right (step 278). If the condition is not satisfied (steps 270, 272, 274) and if the bit Dm (i) is not the value 0, no processing is performed. As a result, FIG.
As shown in 1) and (B2), when Δ = 1,3, the bit Dm
When (i) is inserted, the gap Δ is set to an odd number when the bit Dm (i) has a value of 1, and the gap Δ is set to an even number when the bit Dm (i) has a value of 0.

Δ=−1,−3の場合 この場合には、合成の条件として、画素a0と画素a1と
の隔たりΔ(a0a1)が値4以上であり(ステップ28
0)、かつ画素b0と画素a1との隔たりΔ(b0a1)が値3
以上であり(ステップ282)、かつ画素a1と画素b2との
隔たりΔ(a1b2)が値1以上であること(ステップ28
4)を判別する。これらの条件が満たされている場合に
は、合成しようとするビットDm(i)が値0であるか否
かの判断を行ない(ステップ286)、値0であれば、符
号化走査線上の画素a1を1画素分左へ移動する処理を行
なう(ステップ288)。条件が成立しない場合(ステッ
プ280,282,284)およびビットDm(i)が値0でない場
合には、何の処理も行なわない。この結果、第4図(C
1),(C2)に示すように、Δ=−1,−3の場合、ビッ
トDm(i)を挿入すると、ビットDm(i)が値1の場合
には隔たりΔは奇数に、ビットDm(i)が値0の場合に
は隔たりΔは偶数に設定される。
In the case of Δ = −1, −3 In this case, as a synthesis condition, the distance Δ (a0a1) between the pixel a0 and the pixel a1 is 4 or more (step 28).
0) and the distance Δ (b0a1) between the pixel b0 and the pixel a1 is a value of 3.
(Step 282), and the distance Δ (a1b2) between the pixel a1 and the pixel b2 is equal to or more than 1 (step 28).
4) is determined. If these conditions are satisfied, it is determined whether or not the bit Dm (i) to be synthesized has a value of 0 (step 286). A process is performed to move a1 one pixel to the left (step 288). If the condition is not satisfied (steps 280, 282, 284) and if the bit Dm (i) is not 0, no processing is performed. As a result, FIG.
As shown in (1) and (C2), when the bit Dm (i) is inserted when Δ = −1, −3, when the bit Dm (i) has the value 1, the gap Δ is odd and the bit Dm (i) is When (i) has the value 0, the gap Δ is set to an even number.

Δ=−2の場合 画素a1と画素a2との距離Δ(a1a2)が値2以上で(ス
テップ290)かつ画素a1と画素b2との距離Δ(a1b2)が
値2以上の場合(ステップ292)に限り、データの合成
を行なうものとする。これらの条件が満たされている場
合には、合成しようとするビットDm(i)が値1である
か否かの判断を行ない(ステップ296)、値1であれば
符号化走査線上の画素a1を画素分右へ移動する処理を行
なう(ステップ298)。条件が成立しない場合(ステッ
プ290,292)およびビットDm(i)が値1でない場合に
は、何の処理も行なわない。この結果、第4図(D1),
(D2)に示すように、Δ=−2の場合、ビットDm(i)
を挿入すると、ビットDm(i)が値1の場合には隔たり
Δは奇数に、ビットDm(i)が値0の場合には隔たりΔ
は偶数に設定される。
When Δ = −2 When the distance Δ (a1a2) between the pixel a1 and the pixel a2 is greater than or equal to 2 (step 290) and when the distance Δ (a1b2) between the pixel a1 and the pixel b2 is greater than or equal to 2 (step 292). Only for data synthesis. If these conditions are satisfied, it is determined whether or not the bit Dm (i) to be synthesized has the value 1 (step 296). If the value is 1, the pixel a1 on the coded scanning line is determined. Is moved to the right by pixels (step 298). If the condition is not satisfied (steps 290 and 292) and if the bit Dm (i) is not the value 1, no processing is performed. As a result, FIG. 4 (D1),
As shown in (D2), when Δ = −2, the bit Dm (i)
Is inserted, when the bit Dm (i) has a value of 1, the gap Δ is odd, and when the bit Dm (i) has a value of 0, the gap Δ
Is set to an even number.

以上説明した処理において、データを合成する際に各
画素の隔たりに条件をつけるのは、上述したように、ビ
ットDm(i)の値に応じて画素a1の位置を1ビットずら
すと、元の画像の画素の並びそのものを変えたり、直前
のモードを破壊したりする場合が生じるためである。例
えば、第5図(A)に示すように、隔たりΔ(a0a1)<
2の時にビットDm(i)=1を合成すると、画素が連続
してしまうため、第5図(B)に示すように、復号する
ことができなくなってしまう上、垂直モードでなくなっ
てしまう場合さえ考えられる。また、第6図(A)に示
すように、画素b0と画素a1との隔たりΔ(b0a1)が値2
未満の場合には、ビット「1」を合成すると、復号時に
第6図(B)に示すように、Δ=1,3の場合の合成の条
件Δ(b0a1)≧1を満たさず、データが合成されていな
いと判断してしまい、ビット「1」を復号することがで
きない。従って、Δ(b0a1)≧2の条件が必要になる。
さらに第7図(A)に示すように、隔たりΔ(a0a1)<
3の場合に、ビット「1」を合成すると、復号時に第7
図(B)に示すように、直前のモードにおいて隔たりΔ
=−2場合の符号化の条件、Δ(a1a2)≧2を満たさず
データを合成できなかったのか、または第7図(C)に
示すように、ビット「0」が合成されているのか判断で
きなくなってしまう。従って、前述のΔ(a0a1)≧2の
条件を併せ考慮して、Δ(a0a1)≧3かつΔ(b0a1)≧
2が、Δ=0,2の場合のデータ合成可能条件となる。
In the processing described above, the condition of the distance between pixels when combining data is that, as described above, if the position of pixel a1 is shifted by one bit in accordance with the value of bit Dm (i), the original This is because the arrangement of the pixels in the image itself may be changed, or the previous mode may be destroyed. For example, as shown in FIG. 5 (A), the gap Δ (a0a1) <
When bit Dm (i) = 1 is synthesized at the time of 2, pixels are continuous, so that decoding is not possible as shown in FIG. Even conceivable. Further, as shown in FIG. 6A, the distance Δ (b0a1) between the pixel b0 and the pixel a1 is a value of 2
In the case of less than 1, if the bit "1" is combined, as shown in FIG. 6 (B) at the time of decoding, the combining condition Δ (b0a1) ≧ 1 when Δ = 1,3 is not satisfied, and the data becomes It is determined that they have not been combined, and the bit “1” cannot be decoded. Therefore, a condition of Δ (b0a1) ≧ 2 is required.
Further, as shown in FIG. 7 (A), the gap Δ (a0a1) <
In the case of 3, combining bits "1" gives the seventh
As shown in FIG. (B), the gap Δ
= −2, whether the data could not be synthesized because Δ (a1a2) ≧ 2 was not satisfied, or whether the bit “0” was synthesized as shown in FIG. 7 (C) I can no longer do it. Therefore, considering the above condition of Δ (a0a1) ≧ 2, Δ (a0a1) ≧ 3 and Δ (b0a1) ≧
2 is the data synthesizable condition when Δ = 0,2.

他の場合でも同様であり、第3図のフローチャートに
示した条件をまとめると、次の通りである。
The same applies to other cases, and the conditions shown in the flowchart of FIG. 3 are summarized as follows.

(1)Δ=0,2のとき、 Δ(a0a1)≧3かつΔ(b0a1)≧2 (2)Δ=1,3のとき Δ(a0a1)≧2かつΔ(b0a1)≧1かつΔ(b1a2)≧1 (3)Δ=−1,−3のとき、 Δ(a0a1)≧4かつΔ(b0a1)≧3かつΔ(a1b2)≧1 (4)Δ=−2のとき、 Δ(a1a2)≧2かつΔ(a1b2)≧2 MR符号化時にこれらの制約条件を考慮して合成するな
らば、画素の並びを全く変えてしまったりデータの合成
の有無の混乱を招致したりすることがないので、復号時
に合成データ系列を正しく抽出することが可能となる。
(1) When Δ = 0,2, Δ (a0a1) ≧ 3 and Δ (b0a1) ≧ 2 (2) When Δ = 1,3 Δ (a0a1) ≧ 2 and Δ (b0a1) ≧ 1 and Δ ( b1a2) ≧ 1 (3) When Δ = −1, −3, Δ (a0a1) ≧ 4 and Δ (b0a1) ≧ 3 and Δ (a1b2) ≧ 1 (4) When Δ = −2, Δ (a1a2 ) ≧ 2 and Δ (a1b2) ≧ 2 If the composition is performed in consideration of these constraints at the time of MR encoding, the arrangement of pixels may be completely changed or confusion as to whether or not data is combined may be caused. Therefore, it is possible to correctly extract the composite data sequence at the time of decoding.

次に、上述したデータ合成処理を実行することにより
生成され出力された画像データを受信するファクシミリ
装置21の処理について説明する。第8図は、受信用のフ
ァクシミリ装置21が実行するデータ受信・分離処理ルー
チンを示すフローチャートである。
Next, the processing of the facsimile machine 21 that receives the image data generated and output by executing the above-described data synthesis processing will be described. FIG. 8 is a flowchart showing a data reception / separation processing routine executed by the facsimile machine 21 for reception.

受信用のファクシミリ装置21は、呼設定のフェーズA
を経て送信側のファクシミリ装置1に通信回線40を介し
て接続されると、メッセージに伝送・受信に先立つフェ
ーズBを完了し、その後、メッセージを受け取るフェー
ズCに移行する。フェーズCでは、第8図に示すよう
に、まずファクシミリ用モデム30を介して受信された先
頭の符号を入力する処理を行ない(ステップ300)、受
信した信号について判別する処理を行なう(ステップ31
0)。受信した符号が、KパラケータによりMH方式によ
る符号化のなされたラインを示すEOL+1であると判断
された場合には、更に符号の入力を行ない(ステップ32
0)、入力した符号(ランレングス)をMH方式に従って
復号する(ステップ330)。復号したデータには、合成
データは含まれていないので、そのままプリンタ27に出
力する(ステップ340)。こうした符号の入力、データ
の符号および出力を、1ラインの処理が終了するまで繰
り返す(ステップ350)。1ラインの処理が終了すれ
ば、上述したステップ300に戻って、ラインの先頭の符
号の入力から処理を繰り返す。
The facsimile apparatus 21 for reception sets the call setup phase A
When the connection is made to the facsimile machine 1 on the transmission side via the communication line 40 via the communication line 40, the phase B prior to transmission / reception of the message is completed, and thereafter, the phase shifts to the phase C for receiving the message. In phase C, as shown in FIG. 8, first, a process of inputting the first code received via the facsimile modem 30 is performed (step 300), and a process of determining the received signal is performed (step 31).
0). If the received code is determined by the K parameter to be EOL + 1 indicating a line coded by the MH system, the code is further input (step 32).
0), the input code (run length) is decoded according to the MH method (step 330). Since the decoded data does not include the composite data, the data is output to the printer 27 as it is (step 340). The input of the code, the code of the data, and the output are repeated until the processing of one line is completed (step 350). When the processing for one line is completed, the process returns to step 300, and the processing is repeated from the input of the code at the head of the line.

一方、ラインの先頭の符号がEOL+0の場合には、そ
のラインはMR方式で符号化されており、データの合成が
なされていると判断し(ステップ310)、ステップ400以
下で、データの復号・分離・出力処理を行なう。まず、
符号を入力し(ステップ400)、第1表に示した符号に
従って、モードの判断を行なう(ステップ410)。入力
された符号のモードに従って、水平モードでの復号(ス
テップ420)、パスモードでの復号(ステップ430)、垂
直モードでの復号(ステップ440)を行なう。
On the other hand, if the leading code of the line is EOL + 0, it is determined that the line has been encoded by the MR method and that data has been synthesized (step 310). Performs separation / output processing. First,
The code is input (step 400), and the mode is determined according to the code shown in Table 1 (step 410). According to the mode of the input code, decoding in the horizontal mode (step 420), decoding in the pass mode (step 430), and decoding in the vertical mode (step 440) are performed.

垂直モードに従って復号した場合には、次に、直前の
参照走査線上の並びと復号した走査線上の画素の並びと
の関係について、これに重畳されたデータを分離する条
件が成立しているか否かの判断を行なう(ステップ45
0)。この条件は、送信用ファクシミリ装置1について
説明した合成時の条件(第3図ステップ260,262,270な
いし274,280ないし284,290,292)に相当するものであ
る。
When decoding according to the vertical mode, next, regarding the relationship between the arrangement on the immediately preceding reference scanning line and the arrangement of pixels on the decoded scanning line, whether or not a condition for separating data superimposed on this is satisfied. (Step 45
0). These conditions correspond to the conditions (steps 260, 262, 270 to 274, 280 to 284, 290, 292 in FIG. 3) at the time of combining described for the facsimile machine 1 for transmission.

かかる条件が満足されていれば、データが合成されて
いるとして、データの分離処理を行なう。即ち、直前の
参照走査線上の画素b1と画素a1との距離Δ(a1b1)が偶
数(even)であるか否かの判断を行なって(ステップ46
0)、偶数の場合には、ビット0が合成されているとし
てビットDm(i)に値0をセットし(ステップ470)、
奇数であればビットDm(i)に値1をセットするのであ
る(ステップ475)。その後、データの1ビットが分離
されたとして、ビット数を示す変数iを、値0ないし7
の範囲で、値1だけインクリメントする(ステップ48
0)。尚、8ビット分離されるたびに変数mをインクリ
メントさせて新たな文字Dmを復号していく。この変数m
の初期化を第8図に示すルーチン内で行なっていないの
は、合成された文字列Dmは、画像データの複数ページに
亘る場合にがあるからである。
If such a condition is satisfied, it is determined that data has been synthesized, and data separation processing is performed. That is, it is determined whether or not the distance Δ (a1b1) between the pixel b1 and the pixel a1 on the immediately preceding reference scanning line is an even number (step 46).
0), in the case of an even number, it is determined that bit 0 has been synthesized, and the value 0 is set in bit Dm (i) (step 470);
If it is odd, the value 1 is set to the bit Dm (i) (step 475). Thereafter, assuming that one bit of data is separated, a variable i indicating the number of bits is set to a value of 0 to 7
Is incremented by 1 within the range (step 48)
0). Note that the variable m is incremented each time 8 bits are separated, and a new character Dm is decoded. This variable m
Is not performed in the routine shown in FIG. 8 because the synthesized character string Dm may cover a plurality of pages of image data.

こうして画像データの分離を行なった後、あるいは水
平モード,パスモードで復号されたり垂直モードで復号
されたが分離条件が成立していなかった場合、復号した
データに従って、画像データを出力しプリンタ27に画像
を印字させる(ステップ485)。以上説明した処理を1
ラインが終了するまで繰り返す(ステップ490)。1ラ
インの処理が終了すれば、ラインの先頭の符号の入力か
ら繰り返す。
After the image data is separated in this way, or when the image data is decoded in the horizontal mode, pass mode, or decoded in the vertical mode but the separation condition is not satisfied, the image data is output to the printer 27 in accordance with the decoded data. An image is printed (step 485). The processing described above
Repeat until the line ends (step 490). When the processing of one line is completed, the processing is repeated from the input of the leading code of the line.

ラインの先頭の符号がページの終了を示す符号RTCで
ある場合には(ステップ310)、プリンタ27に改頁を出
力した後、「NEXT」に抜けて、フェーズDの処理に移行
する。複数ページのデータを送信する場合には、フェー
ズDから再びフェーズCに戻り、第8図に示す処理を再
度実行する。
If the head code of the line is the code RTC indicating the end of the page (step 310), a page break is output to the printer 27, and the process exits from "NEXT" and shifts to the processing of phase D. When transmitting data of a plurality of pages, the process returns from phase D to phase C again, and executes the processing shown in FIG. 8 again.

以上の処理により、データの伝送を受けた受信用のフ
ァクシミリ装置21は、原稿51上の画像をプリンタ27によ
り印字する。第9図(A)は、高解像度モード(7.7本/
mm)で原稿51の画像だけを伝送した場合の受信画像の一
部を示す説明図、第9図(B)は、原稿51に端末2から
入力されたデータを合成して伝送した場合の受信画像の
一部を示す説明図、である。図示するように、データを
合成した分、1ビットだけ画素の変化点が前後する関係
で、画像に若干の荒れが見られるものの、品質上問題と
なるほどではない。ファクシミリ画像はA4版の1走査線
を1728ドット(8.23ドット/mm)に標準化しているの
で、水平方向の1ドットは約0,12mmとなっている。この
ようにファクシミリ画像は高解像度であるために、走査
線上の1ドットを増減しても人間の目にはほとんど影響
を与えないのである。また、第9図(B)を見る限り、
この画像にデータが合成されていることが了知される可
能性はなく、データの秘匿性は極めて高い。
By the above processing, the receiving facsimile machine 21 that has received the data transmission prints the image on the document 51 by the printer 27. FIG. 9 (A) shows the high resolution mode (7.7 lines /
9 (B) is an explanatory view showing a part of a received image when only the image of the original 51 is transmitted in the original 51 mm, and FIG. FIG. 3 is an explanatory diagram showing a part of an image. As shown in the figure, the image is slightly rough due to the fact that the change point of the pixel is shifted by one bit due to the combination of the data, but the quality is not so much a problem. Since the facsimile image standardizes one scanning line of the A4 size to 1728 dots (8.23 dots / mm), one dot in the horizontal direction is about 0.12 mm. As described above, since the facsimile image has a high resolution, even if one dot on the scanning line is increased or decreased, it hardly affects the human eyes. Also, as shown in FIG. 9 (B),
There is no possibility that the data is synthesized with this image, and the confidentiality of the data is extremely high.

第10図(A),(B)は、他の画像によるデータ合成
の一例を示す説明図である。同様の伝送実験をいくつか
行なったが、それらの場合の合成可能データ量と符号化
されたデータの伝送量を第2表に示す。第2表に示す原
稿2,4は、第9図,第10図にその一部を示したものであ
る。また、原稿4,7は文字数の多い原稿であり、垂直モ
ードの出現確率が高いことから、合成できるデータ量が
写真・絵などと較べるとかなり大きいことが了解され
る。これらの結果から、ファクシミリによりA4版の原稿
(1728×2375画素)を伝送した場合、第9図,第10図の
例で数千文字 のデータを合成することができ、多い場合には数万文字
のデータを合成することができることが分かる。しか
も、こうしたデータの合成によって伝送する情報量はほ
とんど増加しておらず、減少する場合さえ見られる。た
だし、第2表の符号量はバイト単位で、EOL及びRTC信号
は含めるが、FILLビットについては含めていない。また
比率は、情報合成画像の符号量の原画像の符号量に対す
る割合を示す。また、CCITTのテストドキュメント(高
解像度)では垂直モードが平均89%となるから、垂直モ
ードを利用したこのデータ合成の方法は、極めて効率の
優れたものとなっている。
FIGS. 10A and 10B are explanatory diagrams showing an example of data synthesis using other images. Table 2 shows the amount of data that can be combined and the amount of transmission of encoded data in these transmission experiments. Documents 2 and 4 shown in Table 2 are partially shown in FIGS. 9 and 10. Also, since the manuscripts 4 and 7 are manuscripts having a large number of characters and the appearance probability of the vertical mode is high, it can be understood that the amount of data that can be synthesized is considerably larger than that of a photograph or a picture. From these results, when an A4-size original (1728 x 2375 pixels) is transmitted by facsimile, thousands of characters are used in the examples shown in Figs. 9 and 10. It can be understood that data of tens of thousands of characters can be synthesized in many cases. In addition, the amount of information to be transmitted by the combination of such data hardly increases, and sometimes decreases. However, the code amount in Table 2 is in byte units, and includes the EOL and RTC signals, but does not include the FILL bit. The ratio indicates the ratio of the code amount of the information composite image to the code amount of the original image. In addition, since the vertical mode averages 89% in the CCITT test document (high resolution), this method of synthesizing data using the vertical mode is extremely efficient.

次に、第8図に示す処理により取り出され受信用のフ
ァクシミリ装置21の内蔵RAMに蓄積されたデータDmを取
出す処理について説明する。第11図は、受信用のファク
シミリ装置21が実行するデータ復元処理ルーチンを示す
フローチャートである。このルーチンが開始されると、
まず端末22からパスワードの入力を行ない(ステップ50
0)、パスワードが予め登録した符号列と一致すれば、
更に復元の方法について選択させる(ステップ520)。
プリンタが指定されていれば、蓄積されたデータDmを順
次読み出してプリンタ27に出力し(ステップ530)、CRT
が指定されていれば、文字列Dmを順次、端末22のCRTに
出力する処理を行なう(ステップ540)。その後、文字
列を消去すべきかを判断し(ステップ550)、端末22か
ら消去等の指示がなされておれば、文字列Dmをすべて16
進コード$AAで置換する処理を行なう(ステップ56
0)。尚、パスワードが一致しない場合にも、情報のセ
キュリティを保持するため、同様に文字列Dmの置換処理
を行なう。文字列Dmは単にディレクトリを消去するだけ
でなくコード$AAで置換するので、一旦消去してしまえ
ばデータを読み出される恐れはない。
Next, a process for extracting the data Dm extracted by the process shown in FIG. 8 and stored in the built-in RAM of the facsimile machine 21 for reception will be described. FIG. 11 is a flowchart showing a data restoration processing routine executed by the receiving facsimile machine 21. When this routine starts,
First, a password is input from the terminal 22 (step 50
0), if the password matches the code string registered in advance,
Further, a method of restoration is selected (step 520).
If a printer is designated, the stored data Dm is sequentially read out and output to the printer 27 (step 530), and the CRT
If is designated, a process of sequentially outputting the character string Dm to the CRT of the terminal 22 is performed (step 540). Thereafter, it is determined whether or not the character string should be deleted (step 550). If an instruction such as deletion has been issued from the terminal 22, all the character strings Dm are deleted.
Perform the process of replacing with base code $ AA (step 56
0). Even when the passwords do not match, the character string Dm is similarly replaced in order to maintain the security of the information. Since the character string Dm is not only deleted from the directory but also replaced with the code $ AA, there is no danger that data will be read out once the directory is deleted.

尚、本実施例では、イメージスキャナ5が読取手段に
相当し、第2図のステップ145〜155,165,190の処理が符
号化手段に相当し、ファクシミリ用モデム10が送信手段
に相当し、端末2及びRAM13が合成データ設定手段に相
当し、第2図のステップ180で実行される第3図の処理
が合成手段に相当している。
In this embodiment, the image scanner 5 corresponds to the reading means, the processing of steps 145 to 155, 165, and 190 in FIG. 2 corresponds to the encoding means, the facsimile modem 10 corresponds to the transmitting means, and the terminal 2 and the RAM 13 Corresponds to the combined data setting means, and the processing of FIG. 3 executed in step 180 of FIG. 2 corresponds to the combining means.

また、ファクシミリ用モデム30が受信手段に相当し、
第8図のステップ410,440の処理が復元手段に相当し、
第8図のステップ485の処理及びプリンタ27が画像再現
手段に相当し、第8図のステップ450〜480の処理がデー
タ分離手段に相当し、第11図のステップ530,540の処理
がデータ出力手段に相当している。
Further, the facsimile modem 30 corresponds to the receiving means,
The processing of steps 410 and 440 in FIG. 8 corresponds to the restoration means,
The processing in step 485 in FIG. 8 and the printer 27 correspond to image reproducing means, the processing in steps 450 to 480 in FIG. 8 corresponds to data separation means, and the processing in steps 530 and 540 in FIG. 11 correspond to data output means. Is equivalent.

以上のように構成された本実施例のデータの符号化・
復号化方法は、データの合成・分離を極めて簡略に行な
うことができ、しかも汎用性の高いモディファイドリー
ド方式と互換性があるという点で極めて優れる。また、
データの合成によっても符号化されたデータ量が増加す
ることがないという優れた利点を有する。更に、本実施
例のファクシミリ装置1,21によれば、伝送する画像デー
タへの他のデータの合成・分離を容易に行なうことがで
き、しかもデータが合成されていることを復元された画
像から視認することが極めて困難なため、情報の秘匿性
が極めて高いという利点がある。しかも、データを合成
していながら、伝送する情報量がほとんど増加せず、減
少する場合さえあるなど、データの伝送効率が極めて高
い。また、データが合成してあるにもかかわらず、受信
側のファクシミリ装置が従来のMR方式の受信機能を備え
ていれば、データの授受ができるという利点も備える。
従って、データを合成して暗号化することができるにも
かかわらず、データの伝送が特別の装置間に限定される
ことがない。
Encoding of data of the present embodiment configured as described above
The decoding method is extremely excellent in that the data can be synthesized and separated in a very simple manner and is compatible with the highly versatile modified read method. Also,
There is an excellent advantage that the amount of encoded data does not increase even by combining data. Further, according to the facsimile apparatuses 1 and 21 of the present embodiment, it is possible to easily combine / separate other data with the image data to be transmitted, and furthermore, it is possible to determine that the data has been combined from the restored image. Since it is extremely difficult to visually recognize, there is an advantage that the confidentiality of information is extremely high. In addition, the data transmission efficiency is extremely high such that the amount of information to be transmitted hardly increases or even decreases while the data is being combined. Further, if the receiving-side facsimile apparatus has a reception function of the conventional MR system even though data is synthesized, there is an advantage that data can be transmitted and received.
Therefore, although data can be synthesized and encrypted, data transmission is not limited to a special device.

以上本発明の好適な実施例について説明したが、更に
伝送エラーによるデータの誤りに対する対策を合わせ行
なうものとしてもよい。例えば、ファクシミリ装置では
G IIIモードでの伝送誤りによる被害をその走査線だけ
に限定するため各符号化走査線の終端に走査線同期信号
EOLを設定している。これは、識別が容易な符号語であ
り、ある走査線が伝送誤りによる被害を受けても、符号
EOLによる再同期で後続の走査線を正しく復号すること
ができるように用いられている。上述した実施例のよう
に、文字列Dmのコードを1ビットずつ、他の画像データ
のランレングスに合成していく手法では、伝送誤りによ
り1もしくは2ビット以上の誤りを生じると、それ以降
の合成情報の復号が不可能になってしまう。従って、通
信回線を介した伝送のようにエラーが生じ得る場合に
は、合成した文字Dmの第1ビットを誤りなく取り出すた
めの工夫が必要となる。例えば、各文字の第1ビットを
必ず走査線同期信号EOLの直後に置くといった手法が考
えられる。この場合には、走査線内に合成できるデータ
に無駄を生じるので、合成可能データ量は低下する。従
って、この防止法を採用した場合、走査線当り合成でき
る文字数は平均的におよそ3文字程度となるが、その
分、分離したデータの信頼性は高くなる。また、走査線
当りに合成されるデータは、3,4文字分なので、伝送誤
りが生じて一走査線内の情報が総て失われても、実用に
は差し支えない。
While the preferred embodiment of the present invention has been described above, measures against data errors due to transmission errors may be further provided. For example, in a facsimile machine
A scan line synchronization signal at the end of each coded scan line to limit the damage caused by transmission errors in G III mode to only that scan line
EOL is set. This is a code word that is easy to identify, and even if a certain scan line is damaged by transmission errors,
It is used so that subsequent scan lines can be correctly decoded by resynchronization by EOL. In the technique of combining the code of the character string Dm one bit at a time into the run length of other image data as in the above-described embodiment, if an error of one or more bits occurs due to a transmission error, Decoding of the combined information becomes impossible. Therefore, when an error can occur as in the case of transmission via a communication line, it is necessary to devise a method for extracting the first bit of the synthesized character Dm without error. For example, a method is conceivable in which the first bit of each character is always placed immediately after the scanning line synchronization signal EOL. In this case, data that can be combined within the scanning line is wasted, so that the amount of data that can be combined is reduced. Therefore, when this prevention method is adopted, the number of characters that can be combined per scanning line is about three characters on average, but the reliability of the separated data increases accordingly. Also, since the data synthesized per scanning line is equivalent to 3,4 characters, even if a transmission error occurs and all information in one scanning line is lost, there is no problem in practical use.

以上本発明の実施例について説明したが、本発明はこ
うした実施例に何等限定されるものではなく、例えばデ
ータを磁気的な記録装置に記録する方法やその装置とし
て、あるいはデータを暗号化して送信・受信するものと
して、本発明の要旨を逸脱しない範囲であれば、種々な
る態様で実施し得ることは勿論である。
Although the embodiment of the present invention has been described above, the present invention is not limited to such an embodiment. For example, a method for recording data on a magnetic recording device or as an apparatus, or encrypting and transmitting data It goes without saying that the present invention can be implemented in various modes as long as it does not depart from the gist of the present invention.

発明の効果 以上詳述したように、本発明の画像データの符号化・
復号化方法によれば、参照走査線上の画素の並びとの相
関を利用したデータの符号化・復号化において、極めて
容易に他のデータを合成・分離することができるという
優れた効果を奏する。特に、本発明の方法によれば、本
来画像データを効率よく圧縮するモディファイドリード
方式の垂直モードにおいて、情報量を増加することな
く、他のデータを合成することができるという利点を有
する。即ち、効率よくデータを合成することができるの
である。この結果、データの記録・伝送等の密度を一層
高くすることができる。しかも、データが合成されてい
るか否かは明示的でなく、データの秘匿性に優れるとい
う利点も得られる。また、本発明の符号化・復号化方法
は、従来のモディファイドリード方式の符号化・復号化
方法に対して、上位の互換性を保持することができる。
Effect of the Invention As described in detail above, encoding and encoding of image data of the present invention
According to the decoding method, there is an excellent effect that other data can be very easily combined and separated in encoding and decoding of data using the correlation with the arrangement of pixels on the reference scanning line. In particular, according to the method of the present invention, there is an advantage that other data can be synthesized without increasing the amount of information in a modified read vertical mode in which image data is originally efficiently compressed. That is, data can be efficiently synthesized. As a result, the density of data recording / transmission can be further increased. In addition, it is not explicit whether the data is synthesized or not, and the advantage of excellent data confidentiality can be obtained. Further, the encoding / decoding method of the present invention can maintain higher compatibility with the encoding / decoding method of the conventional modified read system.

かかる発明の符号化方法を直接実施するファクシミリ
装置は、送信しようとする画像データの情報量を増やす
ことなく、読み取った画像データに他のデータを合成し
て送信することができるという優れた効果を奏する。ま
た、本発明の符号化方法を直接実施するファクシミリ装
置は、他のデータが合成されて符号化された画像データ
を受信して符号化し、その復号化した画像データから他
のデータを容易に分離することができるという優れた効
果を奏する。従って、本発明のファクシミリ装置によれ
ば、高い伝送効率により、画像データに合成した他のデ
ータを容易に送信・受信することができ、しかもデータ
の高い秘匿性を実現することができる。
A facsimile apparatus that directly implements the encoding method of the present invention has an excellent effect that other data can be combined with read image data and transmitted without increasing the information amount of image data to be transmitted. Play. Further, a facsimile apparatus which directly implements the encoding method of the present invention receives and encodes image data in which other data is synthesized and encoded, and easily separates other data from the decoded image data. The effect is excellent. Therefore, according to the facsimile apparatus of the present invention, it is possible to easily transmit and receive other data combined with image data with high transmission efficiency, and to realize high confidentiality of data.

また、情報の合成によって伝送符号量を増大させない
という本方式の特徴は、ファクシミリ等の通信に適用し
た場合、現行の回線システムにおいて同一伝送時間で更
に多量の情報を伝送できるのでコストの低減の利点をも
たらす。従って、これは既存の符号体系を変更せずにデ
ータ圧縮を達成したことになり回線資源の有効にもつな
がるものである。合成する情報としては、文書のみなら
ず他の情報(例えば画像やプログラムなど)も利用可能
であるからファクシミリ通信における情報メディアの利
用形態の拡大ともなる。
In addition, the feature of this method that the amount of transmission code is not increased by combining information is that when applied to communications such as facsimile, a large amount of information can be transmitted in the same transmission time in the current line system, which is an advantage of cost reduction. Bring. Therefore, this means that data compression has been achieved without changing the existing coding system, which also leads to effective use of line resources. As information to be combined, not only a document but also other information (for example, an image or a program) can be used, so that the use form of the information medium in facsimile communication is expanded.

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

第1図は本発明の実施例を説明するファクシミリ装置の
概略構成図、第2図はそのファクシミリ装置におけるデ
ータ合成・出力処理ルーチンを示すフローチャート、第
3図データの合成可能の判断と合成処理の詳細を示すフ
ローチャート、第4図(A1),(A2),(B1),(B
2),(C1),(C2),(D1),(D2)は各々データ合
成の様子を示す説明図、第5図(A),(B),第6図
(A),(B)および第7図(A),(B),(C)は
各々データの合成ができない場合について例示する説明
図、第8図はデータの分離・復号処理ルーチンを示すフ
ローチャート、第9図(A),(B)および第10図
(A),(B)は各々データ合成の各例を示す説明図、
第11図は受信用のファクシミリ装置における合成された
データを復元する処理ルーチンを示すフローチャート、
第12図は取り扱う走査線上の画素の呼び名を示す説明
図、第13図はMR方式における各モードの符号化の様子を
示す説明図、である。 1,21……ファクシミリ装置 3,23……コンピュータ 5,25……イメージスキャナ 7,27……プリンタ 10,30……ファクシミリ用モデム 40……公衆通信回線
FIG. 1 is a schematic configuration diagram of a facsimile apparatus for explaining an embodiment of the present invention, FIG. 2 is a flowchart showing a data synthesis / output processing routine in the facsimile apparatus, and FIG. Flow chart showing details, FIG. 4 (A1), (A2), (B1), (B
2), (C1), (C2), (D1), and (D2) are explanatory diagrams each showing a state of data synthesis, and FIGS. 5 (A), (B), 6 (A), and (B). 7 (A), 7 (B), and 7 (C) are explanatory diagrams each illustrating a case where data cannot be combined, FIG. 8 is a flowchart showing a data separation / decoding processing routine, and FIG. 9 (A). , (B) and FIGS. 10 (A), (B) are explanatory diagrams showing examples of data synthesis, respectively.
FIG. 11 is a flowchart showing a processing routine for restoring the combined data in the receiving facsimile machine,
FIG. 12 is an explanatory diagram showing names of pixels on a scanning line to be handled, and FIG. 13 is an explanatory diagram showing a state of encoding of each mode in the MR system. 1,21 ... Facsimile machine 3,23 ... Computer 5,25 ... Image scanner 7,27 ... Printer 10,30 ... Facsimile modem 40 ... Public communication line

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】原画像の各画素を二値化してなる画像デー
タから、符号化対象とする符号化走査線と該符号化走査
線の直前の参照走査線との各々について、走査線上で同
じ値の画素が連続している領域の先頭にある変化画素を
抽出し、前記参照走査線上の変化画素と前記符号化走査
線上の変化画素とで同じ値のもの同士の走査線方向にお
ける画素位置のずれが所定画素数分以内である、という
条件を満たす前記符号化走査線上の変化画素を検出した
場合に、当該検出した符号化走査線上の変化画素の位置
を、前記ずれを表す符号で符号化することにより前記画
像データを圧縮する画像データの符号化方法において、 前記条件を満たす前記符号化走査線上の変化画素を検出
する毎に、前記画像データに合成すべき他の二値データ
を読み出し、該読み出した二値データに応じて、該二値
データが第1の値である場合に前記ずれが前記所定画素
数分以内で且つ偶数となり、前記二値データが前記第1
の値と反対の第2の値である場合に前記ずれが前記所定
画素数分以内で且つ奇数となるように、前記検出した変
化画素を前記符号化走査線上にて1画素分以内で移動さ
せることにより、前記画素位置のずれに前記読み出した
二値データを合成し、 該二値データを合成した後の前記ずれを表す符号によっ
て、前記検出した符号化走査線上の変化画素の位置を符
号化すること、 を特徴とする画像データの符号化方法。
1. An image processing method comprising the steps of: converting image data obtained by binarizing each pixel of an original image into an encoding scan line to be encoded and a reference scan line immediately before the encoding scan line; The change pixel at the head of the area where the pixels of the value are continuous is extracted, and the change pixel on the reference scan line and the change pixel on the coded scan line have the same pixel value in the scan line direction between those having the same value. When a changed pixel on the coded scanning line that satisfies the condition that the shift is within a predetermined number of pixels is detected, the position of the detected changed pixel on the coded scanning line is encoded with a code representing the shift. In the image data encoding method of compressing the image data, every time a changed pixel on the encoded scan line that satisfies the condition is detected, another binary data to be combined with the image data is read out, The reading According to the extracted binary data, when the binary data is the first value, the shift is within the predetermined number of pixels and even, and the binary data is the first value.
The detected changed pixel is moved within one pixel on the coded scan line so that the shift is within the predetermined number of pixels and is odd when the second value is opposite to the second value. By combining the read binary data with the displacement of the pixel position, the position of the detected changed pixel on the encoded scan line is encoded by a code representing the displacement after the combination of the binary data. A method of encoding image data.
【請求項2】請求項1に記載の符号化方法により符号化
された画像データから前記ずれを表す符号を順次抽出
し、該抽出した符号を復号化して各走査線上の画素の並
びを復元することにより、画像を復元する画像データの
復号化方法において、 画素の並びを復元した後の隣接する2つの走査線の各々
について、走査線上で同じ値の画素が連続している領域
の先頭にある変化画素を抽出し、一方の走査線上の変化
画素と他方の走査線上の変化画素との、同じ値のもの同
士の走査線方向における画素位置のずれが、前記所定画
素数分以内で且つ偶数であれば、当該ずれに前記第1の
値である他の二値データが合成されていると判断し、前
記画素位置のずれが、前記所定画素数分以内で且つ奇数
であれば、当該ずれに前記第2の値である他の二値デー
タが合成されていると判断して、前記画像データから前
記他の二値データを分離すること、 を特徴とする画像データの復号化方法。
2. The method according to claim 1, wherein codes representing the shifts are sequentially extracted from the image data encoded by the encoding method, and the extracted codes are decoded to restore the arrangement of pixels on each scanning line. Accordingly, in the image data decoding method for restoring an image, in each of two adjacent scanning lines after restoring the arrangement of the pixels, a pixel having the same value on the scanning line is located at the head of a continuous area. The change pixel is extracted, and the shift of the pixel position in the scan line direction between those having the same value between the change pixel on one scan line and the change pixel on the other scan line is within the predetermined number of pixels and is an even number. If so, it is determined that the other binary data that is the first value is combined with the shift, and if the shift of the pixel position is within the predetermined number of pixels and is odd, the shift is determined to be the shift. Another binary data which is the second value Determining that the data has been combined, and separating the other binary data from the image data.
【請求項3】原稿に記された画像を二値化して読み込む
読取手段と、 該読取手段により二値化して読み込まれた画像データか
ら、符号化対象とする符号化走査線と該符号化走査線の
直前の参照走査線との各々について、走査線上で同じ値
の画素が連続している領域の先頭にある変化画素を抽出
し、前記参照走査線上の変化画素と前記符号化走査線上
の変化画素とで同じ値のもの同士の走査線方向における
画素位置のずれが所定画素数分以内である、という条件
を満たす前記符号化走査線上の変化画素を検出した場合
に、当該検出した符号化走査線上の変化画素の位置を、
前記ずれを表す符号で符号化することにより前記画像デ
ータを圧縮する符号化手段と、 該符号化手段により圧縮された画像データを所定の手順
で通信回線に出力する送信手段と、 を備えたファクシミリ装置において、 前記画像データに合成すべき他の二値データを用意する
合成データ設定手段と、 前記符号化手段により前記条件を満たす前記符号化走査
線上の変化画素が検出される毎に、前記合成データ設定
手段により用意された二値データを読み出し、該読み出
した二値データに応じて、該二値データが第1の値であ
る場合に前記ずれが前記所定画素数分以内で且つ偶数と
なり、前記二値データが前記第1の値と反対の第2の値
である場合に前記ずれが前記所定画素数分以内で且つ奇
数となるように、前記符号化手段により検出された変化
画素を前記符号化走査線上にて1画素分以内で移動させ
ることにより、前記画素位置のずれに前記読み出した二
値データを合成する合成手段とを備え、 前記符号化手段は、前記合成手段により前記二値データ
が合成された後の前記ずれを表す符号によって、前記検
出した符号化走査線上の変化画素の位置を符号化するこ
と、 を特徴とするファクシミリ装置。
3. A reading means for reading an image written on a document in a binarized form, an encoding scan line to be encoded and an encoding scan from the image data read in a binary form by the reading means. For each of the reference scan lines immediately before the line, the change pixel at the head of the area where pixels of the same value are continuous on the scan line is extracted, and the change pixel on the reference scan line and the change pixel on the encoded scan line are extracted. When a change pixel on the coded scanning line that satisfies the condition that the pixel position in the scanning line direction between pixels having the same value in the scanning line direction is within a predetermined number of pixels is detected, the detected coded scan is performed. The position of the change pixel on the line is
A facsimile comprising: an encoding unit that compresses the image data by encoding with the code representing the shift; and a transmission unit that outputs the image data compressed by the encoding unit to a communication line in a predetermined procedure. In the apparatus, a combined data setting unit that prepares another binary data to be combined with the image data, and each time a changed pixel on the encoded scanning line that satisfies the condition is detected by the encoding unit, the combined data is combined. Reading the binary data prepared by the data setting means, and according to the read binary data, when the binary data is the first value, the shift is within the predetermined number of pixels and is even; When the binary data is a second value opposite to the first value, the shift detected by the encoding means is set so that the shift is within the predetermined number of pixels and an odd number. And a synthesizing unit for synthesizing the read binary data with the shift of the pixel position by moving the coded pixel within one pixel on the coded scanning line. Encoding the position of the changed pixel on the detected coded scan line with a code representing the shift after the binary data is synthesized by the facsimile apparatus.
【請求項4】請求項3に記載のファクシミリ装置から送
信される画像データを、通信回線を介して受信する受信
手段と、 該受信手段により受信された画像データから前記ずれを
表す符号を順次抽出し、該抽出した符号を復号化して各
走査線上の画素の並びを復元する復元手段と、 該復元手段により復元された画素の並びに従って画像を
再現する画像再現手段と、 を備えたファクシミリ装置において、 前記復元手段により画素の並びが復元された隣接する2
つの走査線の各々について、走査線上で同じ値の画素が
連続している領域の先頭にある変化画素を抽出し、一方
の走査線上の変化画素と他方の走査線上の変化画素と
の、同じ値のもの同士の走査線方向における画素位置の
ずれが、前記所定画素数分以内で且つ偶数であれば、当
該ずれに前記第1の値である他の二値データが合成され
ていると判断し、前記画素位置のずれが、前記所定画素
数分以内で且つ奇数であれば、当該ずれに前記第2の値
である他の二値データが合成されていると判断して、前
記画像データから前記他の二値データを分離するデータ
分離手段と、 該データ分離手段により分離された二値データを出力す
るデータ出力手段と、 を備えたことを特徴とするファクシミリ装置。
4. A receiving means for receiving image data transmitted from a facsimile apparatus according to claim 3 via a communication line, and sequentially extracting a code representing said shift from the image data received by said receiving means. A facsimile apparatus including: a decoding unit that decodes the extracted code to restore the arrangement of pixels on each scanning line; and an image reproduction unit that reproduces an image in accordance with the arrangement of pixels restored by the restoration unit. The adjacent two pixels whose pixel arrangement has been restored by the restoration means
For each of the two scanning lines, extract the changed pixel at the beginning of the area where pixels of the same value are continuous on the scanning line, and extract the same value of the changed pixel on one scanning line and the changed pixel on the other scanning line. If the deviation of the pixel position in the scanning line direction between them is within the predetermined number of pixels and is even, it is determined that the other binary data as the first value is combined with the deviation. If the displacement of the pixel position is within the predetermined number of pixels and is an odd number, it is determined that another binary data that is the second value is combined with the displacement, and from the image data, A facsimile apparatus comprising: a data separation unit that separates the other binary data; and a data output unit that outputs the binary data separated by the data separation unit.
JP63269202A 1988-10-25 1988-10-25 Image data encoding / decoding method and facsimile apparatus Expired - Lifetime JP2653497B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63269202A JP2653497B2 (en) 1988-10-25 1988-10-25 Image data encoding / decoding method and facsimile apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63269202A JP2653497B2 (en) 1988-10-25 1988-10-25 Image data encoding / decoding method and facsimile apparatus

Publications (2)

Publication Number Publication Date
JPH02114767A JPH02114767A (en) 1990-04-26
JP2653497B2 true JP2653497B2 (en) 1997-09-17

Family

ID=17469096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63269202A Expired - Lifetime JP2653497B2 (en) 1988-10-25 1988-10-25 Image data encoding / decoding method and facsimile apparatus

Country Status (1)

Country Link
JP (1) JP2653497B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7004476B2 (en) 2000-10-13 2006-02-28 Nok Corporation Combustion gas seal for injector

Also Published As

Publication number Publication date
JPH02114767A (en) 1990-04-26

Similar Documents

Publication Publication Date Title
US5337362A (en) Method and apparatus for placing data onto plain paper
JPH06343132A (en) Transmission of information and/or method of memory
JP2611012B2 (en) Character separation encoding method
JP3614358B2 (en) Image encoding device
WO1997016920A2 (en) Image communications
GB2241406A (en) Colour image transmitting method
JP2653497B2 (en) Image data encoding / decoding method and facsimile apparatus
JPH07264417A (en) Image coding method
AU2007361621B2 (en) Method and apparatus for secured facsimile transmission
JP3808229B2 (en) Image encoding apparatus and image decoding apparatus
JP2653490B2 (en) Image data encoding / decoding method and facsimile apparatus
JP2807293B2 (en) Image data encoding / decoding method and facsimile apparatus
JPH06178122A (en) Adaptive encoding device for color image
JPH0869250A (en) Input device for coding key or decoding key and communication device
JP3376095B2 (en) Image communication device
US6272256B1 (en) Fast compression of periodic halftoned bitonal images
JPS62118642A (en) Redundancy suppression coding system
JP2000244748A (en) Image data transmitter
JP3005200B2 (en) Color image transmission method
JP3159811B2 (en) Demodulator
JPH10271342A (en) Binary image-encoding method
JPH08125869A (en) Method and device for image communication
JPH0423567A (en) Facsimile communication equipment
JP2010200018A (en) Encoder, decoder, image forming apparatus, image reader, encoding method, decoding method, program, and recording medium thereof
JPH06205197A (en) Facsimile equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 12