JPS6225575A - Encoding system for gradation facsimile picture signal - Google Patents

Encoding system for gradation facsimile picture signal

Info

Publication number
JPS6225575A
JPS6225575A JP60163949A JP16394985A JPS6225575A JP S6225575 A JPS6225575 A JP S6225575A JP 60163949 A JP60163949 A JP 60163949A JP 16394985 A JP16394985 A JP 16394985A JP S6225575 A JPS6225575 A JP S6225575A
Authority
JP
Japan
Prior art keywords
encoding
pixels
mode
pixel
encoded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP60163949A
Other languages
Japanese (ja)
Other versions
JPH0511467B2 (en
Inventor
Toshiaki Endo
俊明 遠藤
Yasuhiro Yamazaki
泰弘 山崎
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.)
KDDI Corp
Original Assignee
Kokusai Denshin Denwa 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 Kokusai Denshin Denwa KK filed Critical Kokusai Denshin Denwa KK
Priority to JP60163949A priority Critical patent/JPS6225575A/en
Publication of JPS6225575A publication Critical patent/JPS6225575A/en
Publication of JPH0511467B2 publication Critical patent/JPH0511467B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (発明の技術分野) 本発明は、再生画像の品質を受信側で自由に選択できる
ようにしたファクシミリ信号の符号化方式に関し、特に
ファクシミリ端末をディスプレイ装置と組み合わせて会
話形の画像通信や画像デニタベース検索などを行う場合
に有用なファクシミリ画像信号の符号化方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field of the Invention) The present invention relates to a facsimile signal encoding system that allows the receiving side to freely select the quality of reproduced images, and particularly relates to a facsimile signal encoding system that allows a receiver to freely select the quality of a reproduced image. The present invention relates to a facsimile image signal encoding method useful for digital image communication and image database searches.

(従来技術とその問題点) 従来のファクシミリ通信は紙から紙への通信であり、ハ
ードコピーを得ることを特徴とする特許通例であった。
(Prior Art and its Problems) Conventional facsimile communication is paper-to-paper communication, and is a patented feature that obtains hard copies.

しかし、今後画像処理に関する要求が多様化する傾向に
あるが、従来技術にはこれに十分対応し得る機能を有し
ていないのが現状である。
However, although there is a tendency for demands regarding image processing to become more diverse in the future, the current state of the art is that the conventional technology does not have a function that can sufficiently meet this demand.

ファクシミリ通信の多様化に伴い今後は、会話形の画像
通信や画像データベースの検索などを行うために、ファ
クシミリ端末をディスプレイ装置と組み合わせて利用す
ることが考えられる。このような会話形の画像通信では
、円滑な会話を実現するには情報量の多い図形情報は従
来どおりの画像再生符号化方式、即ち、走査線に従って
画像の上から下へ逐次完全な画像を再生するのではな(
、なるべく早い時点でディスプレイに大まかな全体の画
像を表示し、その後次第に画質を向上させるといった順
次再生符号化方式・の方が有効である。
With the diversification of facsimile communications, it is conceivable in the future that facsimile terminals will be used in combination with display devices to perform conversational image communication, image database searches, and the like. In such conversational image communication, in order to achieve smooth conversation, graphical information with a large amount of information is processed using the conventional image reproduction encoding method, that is, a complete image is sequentially reproduced from the top to the bottom of the image along the scanning line. I'm not going to play it (
It is more effective to use a sequential reproduction encoding method that displays a rough overall image on the display as early as possible and then gradually improves the image quality.

順次再生符号化方式では、大まかな画像を得た段階でそ
の情報が希望するものであるかどうかを受信者が判断で
きるため、不要であれば送信をストップさせて以降の無
駄な情報伝送を省く事ができる。一方その情報が希望す
るものであれば満足出来るまで画質を向上させ、必要な
らばその時点の画像のハードコピーを取ることもできる
。このように、順次再生符号化方式は画像の選択、迅速
な検索、通信コストの削減ができ、会話形の画像通信に
適した符号化方式である。特に、階調画像は多くの情報
量を有しているため順次再生符号化方式は有効である。
With the sequential reproduction encoding method, the recipient can determine whether the information is what he or she wants once a rough image is obtained, so if it is not needed, transmission can be stopped, eliminating unnecessary information transmission. I can do things. On the other hand, if the information is what you want, you can improve the image quality until you are satisfied, and if necessary, you can take a hard copy of the image at that point. In this way, the sequential reproduction encoding method allows for image selection, rapid search, and reduction in communication costs, and is an encoding method suitable for conversational image communication. Particularly, since gradation images have a large amount of information, the sequential reproduction encoding method is effective.

階調画像の画質を決定する要素として解像度と階調数の
二つがある。従って、順次再生符号化方式によって徐々
に画質を向上させる方法として、一つは解像度を徐々に
向上させる方法、一つは階調数を徐々に上げる方法があ
る。従来の階調画像の順次再生符号化方式は階調のみ徐
々に向上させる方法、解像度のみ徐々に上げる方法、ま
たは階調数、と解像度を同時に予め定められたアルゴリ
ズムに従い向上させる方法の何れかであり、階調数と解
像度を独立に向上させることが出来る順次再生符号化方
式はない。
There are two factors that determine the image quality of a gradation image: resolution and the number of gradations. Therefore, as methods for gradually improving image quality using the sequential reproduction encoding method, there are two methods: one is to gradually improve the resolution, and the other is to gradually increase the number of gradations. Conventional sequential reproduction encoding methods for gradation images are either a method of gradually increasing only the gradations, a method of gradually increasing only the resolution, or a method of simultaneously increasing the number of gradations and resolution according to a predetermined algorithm. However, there is no sequential reproduction encoding method that can independently improve the number of gradations and resolution.

これらの従来技術の欠点を解消するために、本願発明者
は、特願昭60−41084号「階調ファクシミリ画像
信号の符号化方式」を提案した。しかし、この先願の方
式では、まだ画像プレーン相互間の各対応画素又はその
周辺画素の相関を充分利用しているとはいえない。
In order to eliminate these drawbacks of the prior art, the inventor of the present application proposed Japanese Patent Application No. 60-41084 entitled "Coding System for Gradation Facsimile Image Signal". However, it cannot be said that the method of this prior application makes sufficient use of the correlation between each corresponding pixel between image planes or its surrounding pixels.

(発明の目的) 本発明は、従来技術をさらに改善するために、階調数と
解像度を独立に向上させることが可能な階調画像の順次
再生符号化方式を提供するものである。
(Objective of the Invention) In order to further improve the prior art, the present invention provides a sequential reproduction encoding method for gradation images that can independently improve the number of gradation levels and resolution.

(発明の構成と作用) 以下図面を参照して本発明の詳細な説明する。(Structure and operation of the invention) The present invention will be described in detail below with reference to the drawings.

ここで符号化される原画像は、一画素がNビットで表現
され2N階調を有する多値画像とするが、以下の説明で
はNの値が4の場合について述べる。
The original image to be encoded here is a multivalued image in which each pixel is expressed by N bits and has 2N gradations, but in the following explanation, the case where the value of N is 4 will be described.

先ず、一画面の画像を第1図に示すようにビットブレー
ン方式により4枚の2値画像(プレーン)に分解する。
First, one screen image is decomposed into four binary images (planes) using the BitBrain method, as shown in FIG.

各ビットプレーンの値は、画素の階調の値に応じてO(
白画素)、l (黒画素)′を決定する。
The value of each bit plane is O(
white pixel) and l (black pixel)'.

第2図は、原画素の階調の値を純二進信号で表現したも
ので、例えば、階調が8であれば、純二進信号は“01
11”となるので、ビ・ノドプレーン1.2,3.4に
はMSBより順に割当てられ、それぞれ“O”、“1”
  1ftl+、“1”となる。
Figure 2 shows the gradation value of the original pixel expressed as a pure binary signal.For example, if the gradation is 8, the pure binary signal is "01".
11", so bi-nodoplanes 1.2 and 3.4 are assigned in order starting from the MSB, and are "O" and "1" respectively.
1ftl+, becomes "1".

受信側では、先ずプレーン1の情報を受信すれば2値画
像を再生することができる。つまり、信号“O”は白画
素、信号“1”は黒画素に対応させ表示すれば良い。次
にプレーン2の情報を受信し既に受信済みのプレーン1
の情報を合わせれば4階調の画像を再生することが出来
る。同様にプルレーン3の情報を受信し、既に受信済み
のプレーン1と2の情報を合わせれば、8階調の画像を
再生することが出来る。さらに、プレーン4の情報を受
信し、既に受信済みのプレーン1と2と3の情報を合わ
せれば、166階調画像を再生することが出来る。この
ように、階調数はどのプレーンの情報まで受信するかに
よって選択することが出来る。
On the receiving side, if the information of plane 1 is first received, a binary image can be reproduced. In other words, the signal "O" may be displayed in correspondence with a white pixel, and the signal "1" may be displayed in correspondence with a black pixel. Next, plane 1 receives information from plane 2, which has already been received.
By combining the information, it is possible to reproduce a four-tone image. Similarly, by receiving the information on pull lane 3 and combining the already received information on planes 1 and 2, it is possible to reproduce an image with eight gradations. Furthermore, by receiving the information on plane 4 and combining the information on planes 1, 2, and 3 that have already been received, a 166-gradation image can be reproduced. In this way, the number of gradations can be selected depending on which plane's information is to be received.

2値化されたプレーン1は、後述する2値画像の順次再
生符号化方式で符号化する。ここでは、説明のため、原
画像の解像度を16画素/ mWとする。
The binarized plane 1 is encoded using a sequential reproduction encoding method for binary images, which will be described later. Here, for the sake of explanation, the resolution of the original image is assumed to be 16 pixels/mW.

2値画像の順次再生符号化方式で符号化を行えば、まず
大まかな画像を受信し、その後付加情報を受信すること
により徐々にその画質を向上させることが出来る。例え
ば、先ず原画像から縦横16画素おきに間引いた1画素
/lの解像度の画像の符号化情報を受信する。次に、1
画素/N1の解像度の画像に対して付加情報を受信し、
2画素/龍の解像度の画像を得る。さらに、2画素/l
■の解像度の画像に対して付加符号化情報を受信し、4
画素/龍の解像度の画像を得る。同様にして、8画素/
1m、16画素/龍の画像を順次得ることが出来る。
If encoding is performed using a binary image sequential reproduction encoding method, the image quality can be gradually improved by first receiving a rough image and then receiving additional information. For example, first, encoded information of an image with a resolution of 1 pixel/l, which is thinned out every 16 pixels vertically and horizontally from the original image, is received. Next, 1
receiving additional information for an image with a resolution of pixels/N1;
Obtain an image with a resolution of 2 pixels/dragon. Furthermore, 2 pixels/l
Receive additional encoding information for an image with a resolution of 4;
Obtain an image with a pixel/dragon resolution. Similarly, 8 pixels/
It is possible to sequentially obtain images of a 1m, 16 pixel/dragon.

このように、2値画像の順次再生符号化方式で符号化を
行えば、画像の解像度はどの付加符号化情報まで受信す
るかによって選択することが出来る。
In this way, if encoding is performed using the binary image sequential reproduction encoding method, the resolution of the image can be selected depending on which additional encoded information is to be received.

階調数に関してはどのプレーンの情報まで受信するかに
よって3j4訳することが出来、画像の解像度に関して
は2値画像の順次再生符号化方式の付加符号化情報まで
受信するかによって選択することが出来る。このように
、本方式は階調数と解像度を独立に向上させることが可
能な階調画像の順次再生符号化方式である。
Regarding the number of gradations, it can be translated into 3j4 depending on which plane information is to be received, and regarding the image resolution, it can be selected depending on whether additional encoded information of the binary image sequential reproduction encoding method is also to be received. . In this way, the present method is a sequential reproduction encoding method for gradation images that can independently improve the number of gradation levels and resolution.

画像データベースセンタへアクセスする端末の解像度お
よび階調表現の能力は必ずしも一種類とは限らない。従
って、同じ画像データを送る場合にもある端末には高解
像度の画像を、また、ある端末には高階調の画像を送る
こともある。そのような場合、従来の符号化方式を用い
ると、原画を蓄積し受信端末の能力に応じてその都度符
号化することになり、メモリも多く必要なうえ処理も複
雑である。しかし、本符号化方式を用いて以下に示す方
法で画像をデータベースに蓄積すれば、処理が簡単な上
、メモリ容量も少なくて済む。
The resolution and gradation expression capabilities of the terminals that access the image database center are not necessarily of the same type. Therefore, even when sending the same image data, a high-resolution image may be sent to one terminal, and a high-gradation image may be sent to another terminal. In such a case, if conventional encoding methods are used, the original images are stored and encoded each time according to the capabilities of the receiving terminal, which requires a large amount of memory and requires complicated processing. However, if images are stored in a database using the present encoding method using the method described below, processing is simple and the memory capacity is small.

第1表に画像の符号化情報の蓄積方法を示している。先
ず、プレーンlに関して、原画像より縦横16画素おき
に間引いた1画素/鶴の解像度の画像の符号化情報を蓄
積する。次に、その1画素/鶴の解像度の画像の解像度
を2画素/ amに向上するために必要な付加符号化情
報を蓄積する。同様に画像の解像度を4画素/鰭に向上
するために必要な付加符号化情報、画像の解像度を8画
素/鰭に向上するために必要な付加符号化情報、画像の
解像度を16画素/龍に向上するために必要な付加符号
化情報を順次蓄積する。同様に第1表に示すようにプレ
ーン2. 3. 4に対して符号化情報を蓄積する。
Table 1 shows the method for storing image encoded information. First, regarding plane l, encoded information of an image with a resolution of 1 pixel per crane, which is thinned out every 16 pixels vertically and horizontally from the original image, is accumulated. Next, additional encoding information necessary to improve the resolution of the image with a resolution of 1 pixel/am to 2 pixels/am is stored. Similarly, additional coding information necessary to improve image resolution to 4 pixels/fin, additional coding information necessary to improve image resolution to 8 pixels/fin, and image resolution to 16 pixels/fin. The additional encoding information necessary to improve the performance is sequentially accumulated. Similarly, as shown in Table 1, plane 2. 3. The encoding information is stored for 4.

例えば、受信端末に解像度8画素/鶴でかつ8階調の画
像を表示する場合には、符号化情報1゜2.3,4,6
,7,8,9,11.12,13.14を受信すれば十
分である。受信端末では、受信した情報をその都度表示
すれば、前述したように、早い時点で大まかな全体の画
像を表示し、その後画質を向上させるという表示方法が
実現できる。情報の受信順序は、符号化情報1. 2.
 3. 4. 6゜7、 8. 9.11.12.13
.14の順番に限らず、例えば、符号化情報1. 6.
11. 2. 7.12. 3゜8、13. 4. 9
.14の順序でもよい。前者の場合には、比較的早い時
点で解像度の高い画像が得られ、その後階調が高くなる
。それに対して、後者の場合には比較的早い時点で階調
の高い画像が得られ、その後解像度が高くなる。
For example, when displaying an image with a resolution of 8 pixels/Tsuru and 8 gradations on the receiving terminal, the encoded information 1°2.3,4,6
, 7, 8, 9, 11.12, 13.14 is sufficient. If the receiving terminal displays the received information each time, it is possible to realize a display method in which a rough overall image is displayed at an early point and the image quality is subsequently improved, as described above. The order in which the information is received is encoded information 1. 2.
3. 4. 6゜7, 8. 9.11.12.13
.. For example, the order of encoded information 1.14 is not limited to the order of encoded information 1. 6.
11. 2. 7.12. 3゜8, 13. 4. 9
.. It may be in the order of 14. In the former case, a high-resolution image is obtained at a relatively early point in time, and the gradation increases thereafter. On the other hand, in the latter case, an image with high gradation is obtained at a relatively early point in time, and the resolution increases thereafter.

第   1   表 次に本発明の符号化方式を実現する回路構成例を第3図
に示す。ここでの説明では、原画像の階調数は166階
調4ビツト)とする。
Table 1 Next, an example of a circuit configuration for realizing the encoding method of the present invention is shown in FIG. In the explanation here, the number of gradations of the original image is assumed to be 166 gradations (4 bits).

第3図は符号化回路の一例を示している。1゜2は入力
端子、11はビット化回路、13はアドレス制御回路(
I)、14はアドレス制御回路(III、21.22゜
23、24はそれぞれ一画面メモリ、31は符号化順序
制御部、41と42はそれぞれ順次再生符号化器(11
と順次再生符号化器(■)、51は出力端子、61.6
2.63゜64はそれぞれゲートを示している。以下、
第3図の回路の動作を詳細に説明する。入力端子1より
、符号化する原画像の信号が画像の左上を始点とし左か
ら右、上から下の順序で順次一画素単位に受信され、ビ
ット化回路11に転送される。ビット化回路11は4ビ
ツトで表現されている画素を一ビツト信号に分解し、M
SBからLSBまでの一ビツト信号を、それぞれ一画面
メモリ21.22.23.24に転送する。
FIG. 3 shows an example of an encoding circuit. 1゜2 is an input terminal, 11 is a bit conversion circuit, 13 is an address control circuit (
I), 14 are address control circuits (III, 21.22°, 23 and 24 are each one screen memory, 31 is an encoding order control unit, and 41 and 42 are sequential reproduction encoders (11
and a sequential reproduction encoder (■), 51 is an output terminal, 61.6
2.63° and 64 indicate gates, respectively. below,
The operation of the circuit shown in FIG. 3 will be explained in detail. The signal of the original image to be encoded is sequentially received pixel by pixel from the input terminal 1 in order from left to right and top to bottom starting from the upper left of the image, and is transferred to the bit conversion circuit 11. The bit conversion circuit 11 decomposes a pixel expressed in 4 bits into a 1-bit signal, and converts it into M
One-bit signals from SB to LSB are transferred to one-screen memories 21, 22, 23, and 24, respectively.

アドレス制御回路(1113は、ビット化回路11より
転送される信号を各−画面メモリ21.22.23.2
4のどの座標に記憶するかを指示する。各−画面メモリ
21.22.23.24には、アドレス制御回路fI1
13の指示により原画像から信号が読み出される順序と
同じ順序(画像の左上を始点とし左から右、上から下の
順序で)一画面分の情報が蓄積される。
The address control circuit (1113) controls the signals transferred from the bit converting circuit 11 to each screen memory 21, 22, 23, 2.
Indicate which coordinates in 4 are to be stored. Each screen memory 21, 22, 23, 24 has an address control circuit fI1
According to the instruction No. 13, information for one screen is accumulated in the same order as the order in which signals are read out from the original image (starting from the upper left of the image, from left to right, and from top to bottom).

各−画面メモリ21.22.23.24への情報の転送
が終了すると、アドレス制御回路(1113は、符号化
順序制御部31に転送の終了を示す信号を転送する。
When the transfer of information to each screen memory 21, 22, 23, and 24 is completed, the address control circuit (1113) transfers a signal indicating the completion of transfer to the encoding order control unit 31.

符号化順序制御部31はその信号を受信すると、予め記
憶された符号化の順序に従って、ゲート61〜64をオ
ープンし符号化すべきプレーンを選択するとともにアド
レス制御回路tll)14に符号化画素、参照画素の選
択を指示する。アドレス制御回路(II) 14は各−
画面メモリ21〜24より逐次符号化画素、参照画素を
抽出し、各ゲート61〜64を介して順次再生符号化器
(1141と順次再生符号化器(11142の一方又は
双方に転送する。順次再生符号化器4L 42は符号化
順序制御部31の制御に従って、各ゲートを介してくる
符号化画素を符号化する。順次再生符号化回路器fl)
4L (II142で出力される符号化情報は順次信号
合成回路43へ出力される。
When the encoding order control unit 31 receives the signal, it opens the gates 61 to 64 and selects the plane to be encoded according to the encoding order stored in advance, and also sends the address control circuit tll) 14 to the encoded pixel, see Instructs pixel selection. Address control circuit (II) 14 is each -
Sequentially encoded pixels and reference pixels are extracted from the screen memories 21 to 24 and transferred to one or both of a sequentially reproducing encoder (1141) and a sequentially reproducing encoder (11142) through each gate 61 to 64. The encoder 4L 42 encodes the encoded pixels coming through each gate under the control of the encoding order control unit 31.Sequential reproduction encoding circuit fl)
4L (The encoded information output from II 142 is sequentially output to the signal synthesis circuit 43.

信号合成回路43は符号化順序制御部31から出力され
るプレーン表示符号を出力端子51へ出力するとともに
、この符号により符号化プレーンを判蛍し、プレーン1
である場合は順次再生符号化器[)41の出力信号を、
プレーン2,3.4である場合は順次再生符号化器(n
)42の出力信号を選択し、プレーン表示符号に続けて
出力端子51へ出力する。
The signal synthesis circuit 43 outputs the plane display code outputted from the encoding order control unit 31 to the output terminal 51, and uses this code to distinguish the encoding plane,
, the output signal of the sequential reproduction encoder [) 41 is
In the case of planes 2, 3.4, a sequential reproduction encoder (n
) 42 is selected and outputted to the output terminal 51 following the plain display code.

また、上述した符号化順序は、符号化順序制御部31に
設けられたメモリに予め記憶される。従って、このメモ
リの内容を変更することで、符号化順序を任意に設定す
ることができる。このメモリ内容の変更は、送信側で行
ってもよいし、受信側から行うこともできる。これがた
めの信号の入力端子が図中の入力端子2である。
Further, the above-mentioned encoding order is stored in advance in a memory provided in the encoding order control section 31. Therefore, by changing the contents of this memory, the encoding order can be arbitrarily set. This modification of the memory contents can be done on the transmitting side or on the receiving side. The signal input terminal for this purpose is input terminal 2 in the figure.

次に、本発明における符号化アルゴリズムについて説明
する。本発明は前述のように、プレーン間の相関を積極
的に利用するものであるが、最初に符号化されるプレー
ン1については、参照すべきプレーンがない。従って、
符号化アルゴリズムとしては、プレーン1にのみ適用さ
れる符号化アルゴリズムと、他のプレーン2.3.4に
適用される符号化アルゴリズムの2つに大別される。第
3図の順次再生符号化器(1)41がプレーン1用であ
り、順次再生符号化器(11+42が他のプレーン用で
ある。
Next, the encoding algorithm in the present invention will be explained. As described above, the present invention actively utilizes the correlation between planes, but for plane 1, which is encoded first, there is no plane to refer to. Therefore,
Encoding algorithms are roughly divided into two: an encoding algorithm that is applied only to plane 1, and an encoding algorithm that is applied to other planes 2.3.4. The sequential reproduction encoder (1) 41 in FIG. 3 is for plane 1, and the sequential reproduction encoder (11+42) is for other planes.

前述のように、順次再生符号化器(I114の符号化ア
ルゴリズムは、従来技術(特願昭58−235023号
および特願昭60−41084号)に詳しく述べられて
いるが、参考までに、第4図から第8図を用いて以下に
説明しておく、第4図は画素信号のある部分から9ライ
ン分、!!1〜I!m+ZAYを抽出して示したもので
ある。
As mentioned above, the encoding algorithm of the sequential reproduction encoder (I114) is described in detail in the prior art (Japanese Patent Application No. 58-235023 and Japanese Patent Application No. 60-41084). This will be explained below using FIGS. 4 to 8. FIG. 4 shows nine lines of !!1 to I!m+ZAY extracted from a certain part of the pixel signal.

(i)本発明においては、先ず、横力向く走査線上)に
△X=2n (n=1.2.3−)画素、縦方向に△Y
=2fi (n= 1.2.3−)画素離れた図中◎印
を付した画素を抽出し、これをライン毎に区切ることな
く連結しランレングス符号化を行う。第4図はn=2、
すなわち4画素毎、4ラインおきに画素を抽出している
(i) In the present invention, first, △X=2n (n=1.2.3-) pixels on the scanning line facing the lateral force, and △Y in the vertical direction.
= 2fi (n= 1.2.3-) pixels marked with ◎ in the figure are extracted, and the pixels are connected without dividing each line to perform run-length encoding. In Figure 4, n=2,
That is, pixels are extracted every four pixels or every four lines.

(ii )次に、図中X印を付した画素を符号化するが
、このとき、◎印を付した画素を参照することとする。
(ii) Next, the pixels marked with X in the figure are encoded, and at this time, the pixels marked with ◎ are referred to.

すなわち第5図に示すように×印画素を符号化する際に
、横方向に△X/2、縦方向に△Y/2離れて存在する
すでに符号化された4つの◎印画素を参照する。4つの
◎印参照画素は次の5の状態をとる。
In other words, as shown in Fig. 5, when encoding an x-marked pixel, reference is made to the four ◎-marked pixels that have already been encoded and are separated by △X/2 in the horizontal direction and △Y/2 in the vertical direction. . The four ◎ mark reference pixels take the following 5 states.

状態0:4画素全て信号画素の場合 状態1:4画素の中で1画素のみが黒画素の場合状態2
:4画素の中で2画素が黒画素の場合状態3:4画素の
中で3画素が黒画素の場合状態4:4画素全て黒画素の
場合 このうち、状B2は2画素が白画素であるため文字や図
形の輪郭に当たると考えられ、その中心に位置するX印
の画素が白であるか黒であるかによっそ画質が大きく左
右される。よって、状態2にある×印画前を他の画素に
先行して符号化して送信すれば、受信側における画質を
急激に向上させることができる。このような観点から、
本発明においては、状態2.状態3.状B1.状態4゜
状BOの順に符号化することにしている。
State 0: When all 4 pixels are signal pixels State 1: When only 1 pixel among 4 pixels is black pixel State 2
: When 2 pixels out of 4 pixels are black pixels State 3: When 3 pixels out of 4 pixels are black pixels State 4: When all 4 pixels are black pixels Among these, in state B2, 2 pixels are white pixels. Therefore, it is thought that it corresponds to the outline of a character or figure, and the image quality is greatly influenced by whether the pixel marked with an X located at the center is white or black. Therefore, if the x before printing in state 2 is encoded and transmitted prior to other pixels, the image quality on the receiving side can be dramatically improved. From this perspective,
In the present invention, state 2. Condition 3. Condition B1. It is decided that the state will be encoded in the order of 4° state BO.

なお、状態Oおよび状態4においては、受信側で補間処
理(一種の予測)が行われるとすると、×印画前は状態
0においては白、状B4においては黒に補間される確率
が極めて高いので、受信側の画質に寄与する度合は低く
、場合によっては符号化を省略することも考えられる。
In addition, if interpolation processing (a kind of prediction) is performed on the receiving side in states O and 4, there is an extremely high probability that the interpolation will be white in state 0 and black in state B4 before x printing. , the degree of contribution to the image quality on the receiving side is low, and in some cases it may be possible to omit encoding.

以上のように、第5図に示す如く、◎印参照画素が、正
方形の頂点の位置にある場合の符号化モードをモード1
と称し、これに状vN(N=0゜−、5)を付してモー
ド1−Nと呼ぶこととする。
As described above, as shown in FIG.
, and the state vN (N=0°-, 5) is attached to this to call it mode 1-N.

(iii )次に、第4図に△印で示す画素を、すでに
、  符号化された◎印およびX印の画素を参照して符
号化する。この場合の参照画素の位置は、第6図に示す
ように、符号化しようとする△印画前がら△X/2.△
Y/2離れた△印画前の上下左右に位置することとなる
。この符号化モードをモード2と呼ぶこととする。参照
画素の取り得る状態は先述した状態O〜4と同じであり
、参照画素の状−態を考慮した△印画前の符号化順序も
先述と同じである。それぞれの状態の符号化モードをモ
ード2−N (N=0. ・−14)と表わすこととす
る。
(iii) Next, the pixels indicated by △ in FIG. 4 are encoded by referring to the pixels marked ◎ and X, which have already been encoded. In this case, as shown in FIG. 6, the position of the reference pixel is ΔX/2. △
It will be located above, below, left and right in front of the △ print, which is Y/2 away. This encoding mode will be referred to as mode 2. The possible states of the reference pixel are the same as the states O to 4 described above, and the coding order before Δ printing, which takes into account the state of the reference pixel, is also the same as described above. The encoding mode of each state will be expressed as mode 2-N (N=0.·-14).

(iv)次に、第4図で○印を付した画素を符号化する
。このときのモード1のときの参照画素のパターンを図
から抽出すると第7図+al〜(dlとなり、参照画素
は符号化すべき○印画前から△X/2゜△Y/2離れた
位置に存在している。すなわち、×印画前を符号化した
時の手順において、参照画素の抽出距離を1/2にすれ
ばよいことになる。
(iv) Next, the pixels marked with a circle in FIG. 4 are encoded. If the reference pixel pattern in mode 1 at this time is extracted from the diagram, it becomes Figure 7 +al~(dl, and the reference pixel exists at a position △X/2°△Y/2 away from the front of the ○ print to be encoded. In other words, in the procedure for encoding the image before x printing, the reference pixel extraction distance can be reduced to 1/2.

(V)最後に第4図の空白の画素を符号化する。(V) Finally, the blank pixels in FIG. 4 are encoded.

このときの参照画素のパターンを図から抽出すると第8
図(a)〜(d)となり、モード2の符号化モードで、
参照画素までの距離が△印画前を符号化したときの1/
2になっている。
If the reference pixel pattern at this time is extracted from the figure, the 8th
Figures (a) to (d) are shown, and in mode 2 encoding mode,
The distance to the reference pixel is △ 1/ of the value before printing is encoded.
It is now 2.

以、上のように、モード1.モード2の符号化を一連の
手順として、これを参照画素の抽出距離を1/2にしな
がら繰り返し、抽出距離が21 となれば全ての画素の
符号化が終了したことになる。
As mentioned above, mode 1. Mode 2 encoding is performed as a series of steps, which is repeated while reducing the reference pixel extraction distance to 1/2, and when the extraction distance reaches 21, encoding of all pixels is completed.

なお、第4図の例では△Xと△Yを22=4としたが2
nにおいてnを任意に選択できる。また△Xと△Yを等
しく設定することは必須ではなく、参照画素の抽出距離
が2になっ々ときその方向の距離を2に固定し、他方が
2になるまでモード1゜モード2の符号化を行えばよい
In addition, in the example of Figure 4, △X and △Y are set to 22=4, but 2
In n, n can be arbitrarily selected. Also, it is not essential to set △X and △Y equally; when the extraction distance of the reference pixel becomes 2, the distance in that direction is fixed to 2, and the sign of mode 1 and mode 2 is fixed until the other becomes 2. All you have to do is to

以上の符号化手順をさらに詳細にまとめれば次のように
なる。
The above encoding procedure can be summarized in more detail as follows.

手順l−1:△X、△Yを2”(n = 1 、2.3
゜4 、−−−−−−−)  で定める。
Step l-1: △X, △Y by 2” (n = 1, 2.3
Determined by ゜4, -----------).

手順1−2 二画素の座標をPとするとき、P(X△X
+1.  Y ・△Y+1)(X、Y=0. 1−・−
一)を画面の左から右へ、さらに上から下へ順にライン
ごとに区切ることなく連結しランレングス符号化を行う
Step 1-2 When the coordinates of two pixels are P, P(X△X
+1. Y ・△Y+1) (X, Y=0. 1-・-
1) are concatenated from left to right of the screen and then from top to bottom without dividing each line, and run-length encoding is performed.

手順1−3 :後述の手順2−1から手順2−10に示
す一連の符号化アルゴリズムに従って符号化する。
Step 1-3: Encode according to a series of encoding algorithms shown in steps 2-1 to 2-10 described below.

手順l−4:△Xを△X/2とし、△Yを△Y/2とす
る。
Step l-4: Set ΔX to ΔX/2, and set ΔY to ΔY/2.

手順1−5 :△X、△Yが共に1 (手順1−3終了
時は2)であれば符号化終了であり、そうでなければ手
順1−3へ進む。
Step 1-5: If △X and △Y are both 1 (2 at the end of step 1-3), encoding is complete; otherwise, proceed to step 1-3.

手順2−1乃至2−10は次のように構成される。Procedures 2-1 to 2-10 are configured as follows.

手順2−1 =モード1−2の符号化を行う。−画面内
のモード1−2に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−2に適合する黒画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-1 = Perform mode 1-2 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1-2 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one black pixel that virtually conforms to mode 1-2 exists at the beginning of the screen.

手順2−2 =モード1−3の符号化を行う。−画面内
のモード1−3に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−3に適合する黒画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-2 = Perform mode 1-3 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1 to 3 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one black pixel that virtually conforms to modes 1-3 exists at the beginning of the screen.

手順2−3 :モード1−1の符号化を行う。−画面内
のモード1−1に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−1に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-3: Perform mode 1-1 encoding. - Run-length encoding is performed by sequentially connecting all pixels in the screen that fit mode 1-1 without dividing them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 1-1 exists at the beginning of the screen.

手順2−4 :モード1−4の符号化を行う。−画面内
のモード1−4に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−4に適合する黒画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-4: Perform mode 1-4 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1 to 4 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one black pixel that virtually conforms to modes 1-4 exists at the beginning of the screen.

手順2−5 =モード1−0の符号化を行う。−画面内
のモード1−0に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初jl
J1条件として仮想的にモード1−〇に適合する白画素
が画面の先頭に一つ存在するものとして符号化を行う。
Step 2-5 = Perform mode 1-0 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1-0 in the screen without separating them line by line. First JL
As a J1 condition, encoding is performed assuming that one white pixel virtually matching mode 1-0 exists at the beginning of the screen.

手順2−6 :モード2−2の符号化を行う。−画面内
のモード2−2に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−2に適合する黒画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-6: Perform mode 2-2 encoding. - Run-length encoding is performed by sequentially connecting all pixels in the screen that conform to mode 2-2 without dividing them line by line. As an initial condition, encoding is performed on the assumption that one black pixel that virtually conforms to mode 2-2 exists at the beginning of the screen.

手順2−7 :モード2−3の符号化を行う。−画面内
のモード2−3に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−3に適合する黒画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-7: Perform mode 2-3 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 2-3 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one black pixel that virtually conforms to mode 2-3 exists at the beginning of the screen.

手順2−8 :モード2−1の符号化を行う。−画面内
のモード2−1に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−1に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-8: Perform mode 2-1 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit mode 2-1 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 2-1 exists at the beginning of the screen.

手順2−9 :モード2−4の符号化を行う。−画面内
のモード2−4に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−4に適合する黒画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-9: Perform mode 2-4 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 2 to 4 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one black pixel that virtually conforms to modes 2-4 exists at the beginning of the screen.

手順2−10:モード2−0の符号化を行う。−画面内
のモード2−0に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−〇に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-10: Perform mode 2-0 encoding. - Run-length encoding is performed by sequentially connecting all pixels in the screen that conform to mode 2-0 without dividing them line by line. As an initial condition, encoding is performed on the assumption that one white pixel virtually matching mode 2-0 exists at the beginning of the screen.

次に各符号化手順において使用する符号についてその一
例を示す。手順1−2に使用する符号割当て表を第2表
に示す。
Next, an example of codes used in each encoding procedure will be shown. Table 2 shows the code assignment table used in step 1-2.

第   2   表 第2表において、M H(W)はMH符号化方方式白ラ
ン用の符号を、WYLEは公知のWYLE符号を意味す
る。第3表にMH(W)のターミネイテングコードを、
第4表にはメイクアップ符号を示す。また第5表にはW
YLE符号を示す。
Table 2 In Table 2, M H (W) means a code for white run in the MH encoding method, and WYLE means a known WYLE code. Table 3 shows the MH(W) termination code.
Table 4 shows makeup codes. Also, in Table 5, W
Indicates YLE code.

なお、第2表中の1−2とは、本発明特有のものであり
、一般式的にrN−2Jと表すときランレングスが1〜
2ト1の範囲ではNビットの符号を用い、ランがNN 
−1+ 1以上の場合は2ビツト(lビットはフラッグ
ビット)ずつ必要なだけ加えるようにした符号であり、
その−例を第6表に示す。
Note that 1-2 in Table 2 is unique to the present invention, and when expressed generally as rN-2J, the run length is 1 to 1.
In the range of 2 to 1, an N-bit code is used, and the run is NN
-1+ If it is 1 or more, it is a code in which 2 bits (l bit is a flag bit) are added as necessary.
Examples are shown in Table 6.

第   3   表 第   4   表 第   5   表 第   6   表 手順1−3で用いる符号としては、例えば第7表の符号
割当表によって符号を使い分ける。表において、NON
とは画信号の白を「O」、黒をrlJと符号化すること
であり他は第1表と同じである。
Table 3 Table 4 Table 5 Table 6 For the codes used in steps 1-3, the codes are used according to the code assignment table in Table 7, for example. In the table, NON
This means that the white of the image signal is encoded as "O" and the black as rlJ, and the rest is the same as in Table 1.

第   7   表 次に、順次再生符号化器TII)42の符号化アルゴリ
ズムについて、以下第4図から第10図を参照して詳細
に説明する。
Table 7 Next, the encoding algorithm of the sequential reproduction encoder TII) 42 will be explained in detail with reference to FIGS. 4 to 10.

符号化画素に対して、既に符号化を終えた画素の中から
最も距離の近い4画素が選出される。以下、その選出さ
れた4画素を参照画素と呼ぶ。この4つの参照画素を参
照してそれらの中心に位置する画素を符号化する4つの
参照画素が、第9図のように矩形の頂点の位置にある状
態をモード1゜第10図のように菱形の頂点の位置にあ
る状態をモード2と呼ぶ。第9図と第10図に示すよう
に水平方向における参照画素の間隔を△X、垂直方向に
おける参照画素の間隔を△Yと記述し、画面の左上から
数えて水平方向の第■番目、垂直方向の第、1番目に位
置する画素をP(1,J)と表示する。
The four pixels closest to the encoded pixel are selected from among the pixels that have already been encoded. Hereinafter, the four selected pixels will be referred to as reference pixels. Refer to these four reference pixels to encode the pixel located at their center.The four reference pixels are located at the vertices of the rectangle as shown in Figure 9. The state at the apex of the rhombus is called mode 2. As shown in Figures 9 and 10, the interval between reference pixels in the horizontal direction is described as △X, and the interval between reference pixels in the vertical direction is described as △Y. The first pixel in the direction is expressed as P(1,J).

4つの参照画素をgi (!−I+・・−14)とおく
。この4つの参照画素は既にプレーンNまでの符号化を
終えており、プレーン1〜Nの画素値より、それぞれの
参照画素の値は 0≦g、≦21′I−1(i =1.−、4)となる。
Let the four reference pixels be gi (!-I+...-14). These four reference pixels have already finished encoding up to plane N, and from the pixel values of planes 1 to N, the values of each reference pixel are 0≦g, ≦21'I-1 (i = 1.- , 4).

さらに、符号化画素の値をf。(0≦f0≦2”−1)
とする。符号化画素に関しては既にプレーンN−1まで
の符号化を終えているとし、その値をg。(0≦g0≦
2n−’−1)とすると、goとf。の関係は f0=g0×2+h0 となる。但し、h、は1または0である。
Furthermore, the value of the encoded pixel is f. (0≦f0≦2”-1)
shall be. Regarding the encoded pixels, it is assumed that encoding up to plane N-1 has already been completed, and its value is g. (0≦g0≦
2n-'-1), go and f. The relationship is f0=g0×2+h0. However, h is 1 or 0.

従って、プレーンNの符号化画素の値h0が分かるとf
oの値を求めることが出来る。
Therefore, if we know the value h0 of the encoded pixel of plane N, then f
The value of o can be found.

hoの値を符号化する際、gt(i=D、 ・・−14
)の値を参照して符号化を行う。
When encoding the value of ho, gt(i=D,...-14
) is used for encoding.

さらに以下の定義を行う。Furthermore, we provide the following definitions.

minミmin(g; : i =1.−、4 ]ma
x=max (gi : i = 1.−、4 )le
vel ”E  max −m1nh0の値は以下の条
件に従い11゜に変換される。
min min (g; : i = 1.-, 4] ma
x=max(gi:i=1.-,4)le
The value of vel "E max - m1nh0 is converted to 11° according to the following conditions.

aνe < go X 2 + 0.5  の場合には
+10= mod(ho+1.2) ave≧g6X 2+o、s  の場合にはHo=h。
+10=mod(ho+1.2) if ave<go

ただし、mod(i−j)はiをjで乗算した場合の剰
余を示す。
However, mod (i-j) indicates the remainder when i is multiplied by j.

変換後のHoは後述の方式に従ってランレングス符号化
される。
The converted Ho is run-length encoded according to the method described later.

またgi (+ ”’ 0+−・−24)の状態によっ
て4つの状態に分離する。
Furthermore, it is divided into four states depending on the state of gi (+"' 0+-.-24).

状態3 :  1evel =0  の場合状態2:(
goX2≧maxLIgoX2+1≦m1n)nコ(l
evel = 0 )の場合 状u 1 :  (goX 2 =ave) n 1(
Ivel= 0)の場合状態0: ]匈、nコーを口]
匈3の場合このうち、状態3の場合には、f0=ave
である確率が非常に高い。また、状態2のg0×2≧m
axの場合には、ho=1である確率が非常に高い。ま
た状態2のg。×2+1≦minの場合には、h、=0
である確率が非常に高い。逆に状態0の場合には、ho
の値を予測することが難しく、状態oに属する符号化画
素を他の画素に先行して符号化して送信すれば、受信側
における画質を急激に向上させることができる。このよ
うな観点から、本発明においては、状態O1状態1.状
態2.状態3の順に符号化することとする。
State 3: If 1evel = 0, State 2: (
goX2≧maxLIgoX2+1≦m1n)n(l
evel = 0 ) case state u 1 : (goX 2 =ave) n 1(
If Ivel = 0), the state is 0: ]
In the case of 匈3, in the case of state 3, f0=ave
There is a very high probability that Also, g0×2≧m in state 2
In the case of ax, the probability that ho=1 is very high. Also, g in state 2. If ×2+1≦min, h,=0
There is a very high probability that Conversely, in the case of state 0, ho
It is difficult to predict the value of , and if the encoded pixels belonging to state o are encoded and transmitted before other pixels, the image quality on the receiving side can be rapidly improved. From this point of view, in the present invention, state O1 state 1. Condition 2. Encoding is performed in the order of state 3.

また、モードM(M=0.1)で状態N (N =0.
−。
Moreover, in mode M (M=0.1), state N (N=0.
−.

3)を単にモードM−Nと呼ぶこととする。3) will be simply referred to as mode MN.

第4図から第8図を用いて画素の符号化順序を説明する
。第4図はプレーンN上の画素信号のある部分から9ラ
イン分、1.〜I! m+Zm’lを抽出して示したも
のである。
The coding order of pixels will be explained using FIGS. 4 to 8. FIG. 4 shows 9 lines from a certain part of the pixel signal on plane N, 1. ~I! This is an extraction of m+Zm'l.

(i)先ず、横方向(走査線上)に△X=2n(n=1
.2.3.−−−)画素、縦方向に△Y=2n(n=1
゜2、3.−)画素離れた図中◎印を付した画素を抽出
しこれらをライン毎に区切ることなく連結しランレング
ス符号化を行う。第4図はn−2,すなわち4画素毎、
4ラインおきに画素を抽出している。
(i) First, in the horizontal direction (on the scanning line) △X=2n (n=1
.. 2.3. ---) pixels, vertically △Y=2n(n=1
゜2, 3. -) Extract the pixels marked with ◎ in the figure that are separated by pixels, connect them without dividing them line by line, and perform run-length encoding. In Fig. 4, every n-2, that is, every 4 pixels,
Pixels are extracted every four lines.

(ii)次に、図中X印を付した画素を符号化するが、
このとき◎印を付したプレーン1からN上の画素および
、X印を付したプレーン1からN−1上の画素の値、す
なわち、前述のg o + g l + g 2 + 
g 、3+g4の値を参照する。その際、前述のように
状態Oから3の分離を行う。
(ii) Next, the pixels marked with an X in the figure are encoded,
At this time, the values of the pixels marked with ◎ on planes 1 to N and the pixels marked with X on planes 1 to N-1, that is, the aforementioned go + g l + g 2 +
Refer to the value of g, 3+g4. At this time, 3 separations from state O are performed as described above.

まず、図中X印で示す符号化画素を画面の先頭から初め
て左から右へ上から下へ走査する。すなわち、まず画素
向上への寄与が大きいモード1−〇に適合する画素のH
oの値を、ライン単位に区切ることなしに順に連結し、
ランレングス符号化を行う。同様の方法で、画質向上を
考慮し、モード1−1.  モード1−2.  モード
1−3の順序でそれぞれのモードに適合する全画素にお
けるHoの値を順に連結し、ランレングス符号化を行う
First, encoded pixels indicated by X marks in the figure are scanned starting from the top of the screen from left to right and from top to bottom. In other words, first, the H
Concatenate the values of o in order without separating them line by line,
Perform run-length encoding. Using the same method, mode 1-1. Mode 1-2. In the order of modes 1 to 3, the Ho values of all pixels matching each mode are sequentially connected, and run-length encoding is performed.

(iii )次に、第4図でΔ印を付したプレーンN上
の画素を符号化する。この場合、既に符号化された◎印
およびX印を付したプレーンIからN上の画素および、
Δ印を付したプレーン1からN−1上の画素の値、すな
わち、前述のgo、 g++ gz+ g:++g4の
値を参照する。この場合、g1〜g4の参照画素の位置
は第6図に示すように、符号化しようとする△印画素か
ら、△x/2.△Y/2離れた△印画素の上下左右に位
置し、モード2に合致することとなる。符号化画素の取
り得る状態は先述した状態0〜4と同じであり、参照画
素の状態を考慮した△印画素の符号化順序も先述と同じ
である。
(iii) Next, pixels on plane N marked with Δ in FIG. 4 are encoded. In this case, the pixels on planes I to N marked with ◎ and X that have already been encoded and
The values of the pixels on planes 1 to N-1 marked with Δ, that is, the values of go, g++ gz+ g:++g4 described above are referred to. In this case, the positions of the reference pixels g1 to g4 are as shown in FIG. 6, from the △ mark pixel to be encoded to △x/2. They are located above, below, left and right of the △ print pixel, which is △Y/2 apart, and match mode 2. The possible states of the encoded pixels are the same as states 0 to 4 described above, and the encoding order of the Δ-marked pixels in consideration of the state of the reference pixel is also the same as described above.

(iv)次に、第4図で○印を付した画素を符号化する
。このときのモード1のときの参照画素のパターンを図
から抽出すると、第7図(al〜(d)となり、モード
2の符号化モードで参照画素までの距離が△印画素を符
号化したときの1/2になっている。
(iv) Next, the pixels marked with a circle in FIG. 4 are encoded. If the pattern of reference pixels in mode 1 at this time is extracted from the diagram, it will be shown in Figure 7 (al to (d)). It is 1/2 of that.

以上のように、モード1.モード2の符号化を一連の手
順として、これを参照画素の抽出距離を1/2にしなが
ら繰り返し、抽出距離が2′となれば全ての画素の符号
化を終了したこととなる。
As mentioned above, mode 1. Mode 2 encoding is performed as a series of steps, which is repeated while reducing the reference pixel extraction distance to 1/2, and when the extraction distance reaches 2', the encoding of all pixels is completed.

以上の本発明による符号化手順をさらに詳細にまとめれ
ば次のようになる。
The above encoding procedure according to the present invention can be summarized in more detail as follows.

手順1−1 :△X、△Yを2n  (n=1. 2゜
3.4.・−−一−−・)で定める。
Step 1-1: Define △X and △Y as 2n (n=1.2°3.4.---1---.).

手順1−2 =画素の座標をPとするとき、プレーンN
上のP(X△X+1.Y・△Y+1)(X。
Step 1-2 = When pixel coordinates are P, plane N
Above P(X△X+1.Y・△Y+1)(X.

Y=0.1−・−)を画面の左から右へ、さらに上から
下へ順にラインごとに区切ることなく連結しランレング
ス符号化を行う。
Y=0.1-.-) are connected from left to right of the screen and then from top to bottom without dividing each line to perform run-length encoding.

手順1−3 :後述の手順2−1から手順2−10に示
す一連の符号化アルゴリズムに従って符号化する。
Step 1-3: Encode according to a series of encoding algorithms shown in steps 2-1 to 2-10 described below.

手順1−4 :△Xを△X/2とし、△Yを△Y72と
する。
Step 1-4: Set △X to △X/2, and set △Y to △Y72.

手順l−5:△X、△Yが共に1 (手順1−3終了時
は2)であれば符号化終了であり、そうでなければ手順
1−3へ進む。
Step 1-5: If △X and △Y are both 1 (2 at the end of step 1-3), encoding is complete; otherwise, proceed to step 1-3.

手順2−1乃至2−10は次のように構成される。Procedures 2-1 to 2-10 are configured as follows.

手順2−1 :モード1−0の符号化を行う。−画面内
のモード1−0に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−0に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-1: Perform mode 1-0 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1-0 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one white pixel virtually compatible with mode 1-0 exists at the beginning of the screen.

手順2−2 =モード1−1の符号化を行う。−画面内
のモード1−1に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−1に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-2 = Perform mode 1-1 encoding. - Run-length encoding is performed by sequentially connecting all pixels in the screen that fit mode 1-1 without dividing them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 1-1 exists at the beginning of the screen.

手順2−3 =モード1−2の符号化を行う。−画面内
のモード1−2に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード1−2に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-3 = Perform mode 1-2 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1-2 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 1-2 exists at the beginning of the screen.

手順2−4 :モード1−3の符号化を行う。−画面内
のモード1−3に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモードi−3に適合する白画素が画面
の先頭に一つ存在するもの・とじて符号化を行う。
Step 2-4: Perform mode 1-3 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 1 to 3 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one white pixel virtually matching mode i-3 exists at the beginning of the screen.

手順2−5 :モード2−0の符号化を行う。−画面内
のモード2−0に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−〇に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-5: Perform mode 2-0 encoding. - Run-length encoding is performed by sequentially connecting all pixels in the screen that conform to mode 2-0 without dividing them line by line. As an initial condition, encoding is performed on the assumption that one white pixel virtually matching mode 2-0 exists at the beginning of the screen.

手順2−6 :モード2−1の符号化を行う。−画面内
のモード2−1に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−1に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-6: Perform mode 2-1 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit mode 2-1 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 2-1 exists at the beginning of the screen.

手順2−7 :モード2−2の符号化を行う。−画面内
のモード2−2に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−2に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-7: Perform mode 2-2 encoding. - Run-length encoding is performed by sequentially connecting all pixels in the screen that conform to mode 2-2 without dividing them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 2-2 exists at the beginning of the screen.

手順2−8 :モード2−3の符号化を行う。−画面内
のモード2−3に適合する全画素を順にライン毎に区切
ることなく連結し、ランレングス符号化を行う。初期条
件として仮想的にモード2−3に適合する白画素が画面
の先頭に一つ存在するものとして符号化を行う。
Step 2-8: Perform mode 2-3 encoding. - Run-length encoding is performed by sequentially connecting all pixels that fit modes 2-3 in the screen without separating them line by line. As an initial condition, encoding is performed on the assumption that one white pixel that virtually conforms to mode 2-3 exists at the beginning of the screen.

以下、本発明に用いられる符号化順序制御部31につい
て図を用いて詳細に説明する。第11図は符号化順序制
御部31の回路の一例を示している。81は符号化順序
制御回路、82は符号化順序テーブル、83は一画面メ
モリへの符号化に関する制御を行う符号化モード制御回
路Aを示し、同様に84.85゜86はそれぞれ一画面
メモリB、−画面メモリC2一画面メモリDの符号化に
関する制御を行う符号化モード制御回路を示している。
Hereinafter, the encoding order control unit 31 used in the present invention will be explained in detail using the drawings. FIG. 11 shows an example of a circuit of the encoding order control section 31. 81 is an encoding order control circuit, 82 is an encoding order table, 83 is an encoding mode control circuit A that controls encoding to one-screen memory, and similarly, 84.85° and 86 are one-screen memory B, respectively. , - Screen memory C2 shows an encoding mode control circuit that controls encoding of one screen memory D.

符号化モード制御回路83.84.85.86はそれぞ
れ対応する一画面メモリの符号化に関し、△X、△Y符
号化モード。
Encoding mode control circuits 83, 84, 85, and 86 respectively control ΔX and ΔY encoding modes for encoding of the corresponding one-screen memory.

の情報を記憶することによりどの段階まで符号化を終了
したかを記憶している。符号化順序テーブル82には予
め符号化の順序が記憶される。その−例を第8表に示す
。なお、テーブル82の内容は前述のように、入力端子
2からの制御により、書き替えが可能である。符号化順
序制御回路81は符号化順序テーブル82に記憶されて
いる順序に従い各符号化モード制御回路83.84.8
5.86に符号化を指示する。例えば、符号化順序テー
ブル82に第8表のようなテーブルがセットされており
、既に、符号化順序10まで符号化は終了しているとす
る。
By storing the information, it is possible to remember up to which stage the encoding has been completed. The encoding order table 82 stores the encoding order in advance. Examples are shown in Table 8. Note that the contents of the table 82 can be rewritten under control from the input terminal 2, as described above. The encoding order control circuit 81 controls each encoding mode control circuit 83, 84, 8 according to the order stored in the encoding order table 82.
5. Instruct encoding to 86. For example, assume that a table such as Table 8 is set in the encoding order table 82, and encoding up to encoding order 10 has already been completed.

符号化順序制御回路81は符号化順序テーブル82より
符号化順序11の内容を読み出す。符号化順序制御回路
81は、その内容に従いプレーンCを符号化 ・するた
めに符号化モード制御回路C85にΔX=4゜△Y=4
.モード1.状BOから3までの符号化を指示する。符
号化モード制御回路C85は、符号化順序制御回路81
の指示に従い、アドレス制御回路(II)14に対して
、△X、△Yおよびモードを指示し、ゲー)61.62
.63を開とし、順次再生符号化器(II)42に対し
、状態と使用すべき符号表の選択を指示し、かつ信号合
成回路43に対し、符号化プレーンの情報を与える。符
号化を終了したときには符号化順序制御回路81にその
終了信号を送る。符号化順序制御回路81は、次の符号
化を行うために符号化順序テーブル82より符号化順序
12の内容を読み出す。上記の手順を繰り返し符号化を
行う。
The encoding order control circuit 81 reads the contents of the encoding order 11 from the encoding order table 82. The encoding order control circuit 81 sends ΔX=4°ΔY=4 to the encoding mode control circuit C85 in order to encode the plane C according to its contents.
.. Mode 1. Instructs encoding of BO to 3. The encoding mode control circuit C85 is the encoding order control circuit 81.
According to the instructions, △X, △Y and mode are instructed to the address control circuit (II) 14, and
.. 63 is opened to instruct the sequential reproduction encoder (II) 42 to select the state and the code table to be used, and also to provide information on the encoding plane to the signal synthesis circuit 43. When the encoding is finished, a completion signal is sent to the encoding order control circuit 81. The encoding order control circuit 81 reads the contents of the encoding order 12 from the encoding order table 82 in order to perform the next encoding. The above procedure is repeated to perform encoding.

符号化順序テーブル82の内容が全て処理され、4枚の
一画面メモリ83.84. g5.86の全ての内容の
符号化を終了すると、全ての符号化が終了したことにな
る゛。
All the contents of the encoding order table 82 are processed, and four single-screen memories 83, 84, . When all the contents of g5.86 have been encoded, all the encoding has been completed.

第   8   表 第   9   表 第12図は順次再生符号化器(Ill 42の一例を示
している。121〜125はそれぞれゲート61.62
.63゜64を介して一画面メモリA21〜一画面メモ
リD24から転送されてくる画素値よりgz、 gz、
 g:+、 g4゜goを作成する画素合成回路を示し
、131〜135はそれらの値を蓄積する参照画素メモ
リを示す。また136はゲート61から64のいずれか
のゲートを介して転送される符号化画素値を蓄積するメ
モリ、141、142は比較器、143は加算器、14
4は乗算器145は減算器、146は除算器、 147
.148は加算器、151は状態選択回路、161はラ
ンレングス符号化回路、171.173.174はゲー
ト、172.175はOR回路、176はN07回路、
181は「0」を「1」へrlJをrOJに変換する符
号反転器を示す。
Tables 8, 9, and 12 show an example of a sequential regeneration encoder (Ill 42).121 to 125 are gates 61 and 62, respectively.
.. gz, gz, from the pixel values transferred from one-screen memory A21 to one-screen memory D24 via
The figure shows a pixel synthesis circuit that creates g:+, g4°go, and reference pixel memories 131 to 135 store those values. Further, 136 is a memory for storing encoded pixel values transferred via one of the gates 61 to 64, 141 and 142 are comparators, 143 is an adder, and 14
4 is a multiplier, 145 is a subtracter, 146 is a divider, 147
.. 148 is an adder, 151 is a state selection circuit, 161 is a run-length encoding circuit, 171.173.174 is a gate, 172.175 is an OR circuit, 176 is an N07 circuit,
Reference numeral 181 indicates a sign inverter that converts "0" to "1" and rlJ to rOJ.

以下、第11図に示した符号化順序制御部31の構成例
と第12図の順次再生符号化器(n)42の構成例を参
照し符号化動作を説明する。
The encoding operation will be described below with reference to the configuration example of the encoding order control section 31 shown in FIG. 11 and the configuration example of the sequential reproduction encoder (n) 42 shown in FIG. 12.

まず、符号化順序テーブル82の内容に従って、符号化
順序制御回路81は、符号化するプレーンの選択と状態
の選択を行う。ここでは、その−例としてプレーン3が
符号化される過程を説明し、その符号化回路の動作を説
明する。
First, according to the contents of the encoding order table 82, the encoding order control circuit 81 selects a plane to be encoded and a state. Here, as an example, the process of encoding plane 3 will be explained, and the operation of the encoding circuit will be explained.

プレーン3の符号化を制御する符号化モード制御回路C
85には△X、△Y、モード、状態がそれぞれ△X、△
Yメそり、モードメモリ、状態メモリに記憶されている
。まず初期値として△X、ΔYメモリには最初のへXお
よび△Yの値が、モー、  トメモリと状態メモリには
それぞれ「0」がセットされる。
Encoding mode control circuit C that controls encoding of plane 3
85 has △X, △Y, mode, and status, respectively.
It is stored in the Y mesori, mode memory, and state memory. First, the initial values of ΔX and ΔY are set in the ΔX and ΔY memories, and "0" is set in the mode memory and state memory, respectively.

まず手順1−2の符号化が以下のように行われる。符号
化モード制御回路C85はまずプレーン表示符号を信号
合成回路43へ出力する。プレーン表示符号の一例を第
9表に示す。例えば、プレーン3を符号化している場合
には「10」の符号を出力する。さらに符号化モード制
御回路C85はアドレス制御回路(III 14に各−
画面メモリより手順1−2で符号化する画素を読み出し
、順次再生符号化器(II)42へ転送するように指示
する。その際ゲート63のみがオーブンにされる。
First, encoding in step 1-2 is performed as follows. The encoding mode control circuit C85 first outputs the plain display code to the signal synthesis circuit 43. An example of plain display codes is shown in Table 9. For example, when encoding plane 3, a code of "10" is output. Furthermore, the encoding mode control circuit C85 is connected to an address control circuit (III 14).
The pixels to be encoded in step 1-2 are read out from the screen memory and instructed to be sequentially transferred to the reproduction encoder (II) 42. At that time, only the gate 63 is turned into an oven.

メモリC23からは、アドレス制御回路(■)140制
御のちとに、符号化画素が逐次読み出され、画素分配回
路121へ転送される。画素分配回路121は、手順1
−2の符号化であることを符号化モード制御回路C85
からの情報で知らされているので、転送されてくる符号
化画素を順次符号化画素メモリ136へ転送する。この
手順においては、符号化画素メモリ136の内容が直接
的にランレングス符号化回路161へ導かれる。ランレ
ングス符号化回路161は符号化モード制御回路C85
からの指示により、符号表の選択を行い、また、符号化
制御回路C85の指示によりオーブンにしたゲート17
1を介して転送される符号化画素メモリ136の内容を
順次ランレングス符号化を行って信号合成回路43へ出
力する。
The encoded pixels are sequentially read out from the memory C23 under the control of the address control circuit (■) 140 and transferred to the pixel distribution circuit 121. The pixel distribution circuit 121 performs step 1
-2 encoding is detected by the encoding mode control circuit C85.
The encoded pixels that are transferred are sequentially transferred to the encoded pixel memory 136. In this procedure, the contents of encoded pixel memory 136 are routed directly to run-length encoding circuit 161. The run length encoding circuit 161 is an encoding mode control circuit C85.
The code table is selected according to the instruction from the encoder control circuit C85, and the gate 17 is opened according to the instruction from the encoding control circuit C85.
The contents of the encoded pixel memory 136 transferred via the encoded pixel memory 136 are sequentially run-length encoded and output to the signal synthesis circuit 43.

アドレス制御回路(n)14は、一画面メモリ内の手順
1−2で符号化する画素の読み出しを終了すると、符号
化モード制御回路C85に符号化の終了を指示する。
When the address control circuit (n) 14 finishes reading out the pixels to be encoded in step 1-2 from the one-screen memory, it instructs the encoding mode control circuit C85 to terminate encoding.

次に、符号化モード制御回路C85は前述のようにその
中に設けられているモードメモリの内容を「1」、状態
メモリの内容を「0」とし、手順2−1の符号化を行う
。この符号化モード制御回路C85は、状態メモリの内
容rOJを状態選択回路151へ転送する。またランレ
ングス符号化回路161は、符号化順序制御部31より
モードメモリの内容「1」と状態メモリの内容「0」、
さらに△X。
Next, the encoding mode control circuit C85 sets the contents of the mode memory provided therein to "1" and the contents of the state memory to "0" as described above, and performs encoding in step 2-1. This encoding mode control circuit C85 transfers the contents rOJ of the state memory to the state selection circuit 151. Furthermore, the run-length encoding circuit 161 receives the encoding order control unit 31 from the encoding order control unit 31 such that the content of the mode memory is "1" and the content of the state memory is "0".
Furthermore △X.

ΔYの内容を受信し、△X、△Yの値およびモード1−
0よりその符号化に適した符号表の選択を行う。
Receive the contents of ΔY, and write the values of ΔX, ΔY and mode 1-
A code table suitable for the encoding is selected from 0.

アドレス制御回路+11114は、△X、△Yメモリよ
り△X、△Yの値を受信し、モードメモリより「1」を
受信することによって各−画面メモリA〜Dより同時に
モード1に適した参照画素値を順次抽出し、各ゲートを
介して各画素合成回路に転送する。その場合、ゲー1−
61.62.63のみがオーブンにされ、一画面メモリ
A〜Cの内容のみが画素分配回路121へ転送される。
The address control circuit +11114 receives the values of △X and △Y from the △X and △Y memories, and receives "1" from the mode memory, thereby simultaneously selecting a reference suitable for mode 1 from each of the screen memories A to D. Pixel values are sequentially extracted and transferred to each pixel synthesis circuit via each gate. In that case, game 1-
Only the pixels 61, 62, and 63 are opened, and only the contents of the one-screen memories A to C are transferred to the pixel distribution circuit 121.

画素分配回路121は、転送される画素値からgz(i
=1.−、4)を求め、各参照画素メモリA〜Dに書き
込み、同時にgoおよび符号化画素h0をそれぞれ参照
画素メモリ0135と符号化画素メモリ136に書き込
む。
The pixel distribution circuit 121 calculates gz(i
=1. -, 4) are calculated and written into each of the reference pixel memories A to D, and at the same time go and the encoded pixel h0 are written into the reference pixel memory 0135 and the encoded pixel memory 136, respectively.

比較器(11141,゛(11)142はそれぞれ4つ
の参照画素メモリA−Dに記憶されている参照画素値g
i (+−1,−、4)の内から最大値maxと最小値
minを求め、状態選択回路151へ転送する。また、
減算器145は、比較器(I) 141より転送される
n+axO値より比較器(U) 142より転送される
minの値を引き、1evelを求め、その値を状態選
択回路151に転送する。また、加算器143は4つの
参照画素値giの総和 &giを求め、その結果を除算
器へ転送する。除算器146は加算器143より転送さ
れる値を「4」で割り4つの参照画素値g□の平均値a
veを求め、その値を状態選択回路151へ転送する。
The comparators (11141, ゛(11) 142 each compare the reference pixel values g stored in the four reference pixel memories A-D.
The maximum value max and minimum value min are determined from i (+-1, -, 4) and transferred to the state selection circuit 151. Also,
The subtracter 145 subtracts the min value transferred from the comparator (U) 142 from the n+axO value transferred from the comparator (I) 141 to obtain 1evel, and transfers the value to the state selection circuit 151. Further, the adder 143 calculates the sum &gi of the four reference pixel values gi, and transfers the result to the divider. The divider 146 divides the value transferred from the adder 143 by "4" and calculates the average value a of the four reference pixel values g□.
ve is determined and the value is transferred to the state selection circuit 151.

乗算器144は、参照画素メモリ0135に記憶されて
いる参照画素g0の2倍の値rgoX2Jを求め、その
結果を状態選択回路151に転送する。また加算器14
7.148はそれぞれ乗算器144より転送される値に
rlJ  rO,5Jを加えそれぞれrgoX2+I 
J  I”goX 2 +0.5Jを求め、状態選択回
路151へ出力する。よって、状態選択回路151には
rg。
The multiplier 144 calculates a value rgoX2J that is twice the reference pixel g0 stored in the reference pixel memory 0135, and transfers the result to the state selection circuit 151. Also adder 14
7.148 adds rlJ rO, 5J to the value transferred from the multiplier 144, respectively, and calculates rgoX2+I
J I”goX 2 +0.5J is calculated and output to the state selection circuit 151. Therefore, the state selection circuit 151 receives rg.

X 2J  rgoX 2 +0.5j  rgoX 
2 + 1 j  ravelrlevelJ  rI
IIinJ  rmaxJの値が転送されることとなる
X 2J rgoX 2 +0.5j rgoX
2 + 1 j ravelrlevelJ rI
The value of IIinJ rmaxJ will be transferred.

これらの値を用いて、状態選択回路]、51は前述の状
態−0,W、、 W2. W、のどの状態に属するか求
める。また、状態選択回路151はravelと[g0
×2 +〇、5Jの比較を行い、符号化画素メモリ13
6より転送される符号化画素値h0の反転を行う場合に
は、ゲー1−174がオープンにされ、符号反転器18
1によってその反転が行われ、ゲート171へ転送され
る。
Using these values, the state selection circuit], 51 selects the aforementioned states -0, W, , W2 . Find out which state W belongs to. Further, the state selection circuit 151 selects ravel and [g0
Compare ×2 + 〇, 5J, encoded pixel memory 13
When inverting the encoded pixel value h0 transferred from 6, the gate 1-174 is opened and the sign inverter 18
1 performs its inversion and is transferred to gate 171.

状態選択回路151には符号化順序制御部31より状態
値「0」を受信しており、その値と同じ状態すなわちW
。の状態に合致したときのみゲート171をオ・−プン
にする。その時、符号化画素メモリ136の内容がラン
レングス符号化回路161へ転送される。ランレングス
符号化回路161はその符号1化画素値のランレングス
符号化を、前述の方法で予め定められた符号表を用いて
符号化し、信号合成回路43へ出力する。アドレス制御
回路(IT) 14は一画面メモリ内のモード1−〇で
符号化する画素の読み出しを全て終了すると符号化モー
ド制御回路C85に符号化の終了を指示する。次に、符
号化モード制御回路C85はモードメモリの内容を「工
」。
The state selection circuit 151 receives the state value “0” from the encoding order control unit 31, and the state that is the same as that value, that is, W
. The gate 171 is opened only when the following conditions are met. At that time, the contents of encoded pixel memory 136 are transferred to run-length encoding circuit 161. The run-length encoding circuit 161 encodes the run-length encoding of the encoded pixel value using the predetermined code table using the method described above, and outputs it to the signal synthesis circuit 43. When the address control circuit (IT) 14 finishes reading out all the pixels to be encoded in modes 1 to 0 in the one-screen memory, it instructs the encoding mode control circuit C85 to terminate encoding. Next, the encoding mode control circuit C85 "engineers" the contents of the mode memory.

状態メモリの内容を「1」とし、同様の動作を行い、手
順2−2の画素の符号化を行う。
The contents of the state memory are set to "1", the same operation is performed, and the pixels are encoded in step 2-2.

以下同様手順2−2乃至手順2−10の符号化を行う。Thereafter, encoding in steps 2-2 to 2-10 is performed in the same manner.

ただし、それぞれの手順において、モード選択メモリ、
状態メモリの内容は次のようにする。
However, in each step, mode selection memory,
The contents of the state memory are as follows.

手順2−3 :モード選択メモリの内容「1」状態メモ
リの内容「2」 手順2−4 :モード選択メモリの内容「1」状態メモ
リの内容「3」 手順2−5 :モード選択メモリの内容「2」状態メモ
リの内容「0」 手順2−6 :モード選択メモリの内容「2」状態メモ
リの内容「1」 手順2−7 :モード選択メモリの内容「2」状態メモ
リの内容「2」 手順2−8 :モード選択メモリの内容「2」状態メモ
リの内容「3」 このような符号化を終えた後、符号化モード制御回路C
85は△X、△Yメモリ内の△Xおよび△Yの内容がそ
れぞれ「1」でなければ△X、ΔYメモリ内のへXおよ
び△Yの内容をそれぞれ△X/2.△Y/2に変更した
後手順2−1から手順2−10までの符号化を繰り返す
。また、△X、△Yメそり内のへXおよび△Yの内容が
共に「1」であれば符号化は終了となる。
Step 2-3: Contents of mode selection memory "1" Contents of state memory "2" Step 2-4: Contents of mode selection memory "1" Contents of state memory "3" Step 2-5: Contents of mode selection memory "2" Contents of status memory "0" Step 2-6: Contents of mode selection memory "2" Contents of status memory "1" Step 2-7: Contents of mode selection memory "2" Contents of status memory "2" Step 2-8: Contents of the mode selection memory "2" Contents of the state memory "3" After completing such encoding, the encoding mode control circuit C
85 means that if the contents of △X and △Y in the △X and △Y memories are respectively "1", the contents of △ After changing to ΔY/2, the encoding from step 2-1 to step 2-10 is repeated. Furthermore, if the contents of HX and ΔY in the ΔX, ΔY mesori are both "1", the encoding ends.

上記の回路動作は、一枚の画面メモリの内容を・全て符
号化する回路動作について説明した。符号化モード制御
回路C85は手順1−22手順2−1、手順2−21手
手順2−10順2−41手順2−51手手順2−10順
2−72手順2−82手手順2−102−10の終了の
度に符号化順序制御回路81より指示された符号化の段
階まで符号化が終了したかどうかを判断し、まだ終了し
ていない場合には、さらに符号化を進める。また、符号
化順序制御回路81より指示された符号化の段階までの
符号化が終了した場合には、符号化モード制御回路C8
5はその終了を符号化順序制御回路81に指示し、△X
、△Y、モード、状態等の内容を保持して、符号化順序
制御回路81より符号化の指示があるまで動作を中断す
る。
The circuit operation described above is for encoding the entire contents of one screen memory. The encoding mode control circuit C85 performs step 1-22 step 2-1, step 2-21 step 2-10 order 2-41 step 2-51 step 2-10 order 2-72 step 2-82 step 2- Each time step 102-10 ends, it is determined whether the encoding has been completed up to the encoding stage instructed by the encoding order control circuit 81, and if it has not yet been completed, the encoding is further advanced. Furthermore, when the encoding up to the encoding stage instructed by the encoding order control circuit 81 is completed, the encoding mode control circuit C8
5 instructs the encoding order control circuit 81 to finish, and △X
, ΔY, mode, state, etc., and suspends operation until an encoding instruction is received from the encoding order control circuit 81.

第13図は復号化回路の一例を示しているものであり、
301は入力端子、311はプレーン表示符号抽出回路
、312は復号プレーン決定部、321は順次再生復号
回路、331.332.333.334.335.33
6゜337、338はゲート回路、341.342.3
43.344はそれぞれ二値化されたプレーンを記憶す
るための一画面メモリA、−画面メモリB、−画面メモ
リC1一画面メモリD、351と353はアドレス制御
回路(I)と(If)、352はビット合成回路、36
1は階調画像を記憶するための階調画像一画面メモリ、
371は出力端子を示している。
FIG. 13 shows an example of a decoding circuit,
301 is an input terminal, 311 is a plane display code extraction circuit, 312 is a decoding plane determining unit, 321 is a sequential reproduction decoding circuit, 331.332.333.334.335.33
6°337, 338 are gate circuits, 341.342.3
43. 344 are one-screen memory A for storing binarized planes, -screen memory B, -screen memory C1, one-screen memory D, 351 and 353 are address control circuits (I) and (If), 352 is a bit synthesis circuit, 36
1 is a gradation image one-screen memory for storing gradation images;
371 indicates an output terminal.

初期状態として、4枚の一画面メモリ341〜344内
の全メモリには全て“1”が記憶され、階調画像一画面
メモリ361内の全メモリには全て“15”が記憶され
る。
As an initial state, "1" is stored in all the memories in the four single-screen memories 341 to 344, and "15" is stored in all the memories in the gradation image single-screen memory 361.

入力端子301から符号化された信号を受信する。An encoded signal is received from an input terminal 301.

プレーン表示符号抽出回路311は入力端子301より
受信する信号からプレーン表示符号を抽出し、その符号
は復号プレーン決定部312に転送し、その他の符号は
順次再生復号回路321に転送する。
The plane display code extraction circuit 311 extracts the plane display code from the signal received from the input terminal 301, transfers the code to the decoding plane determination section 312, and sequentially transfers the other codes to the reproduction decoding circuit 321.

順次再生復号回路321は復号プレーン決定部312の
指示に従いプレーン表示符号抽出回路311より転送さ
れてくる符号化信号を復号化する。また、アドレス制御
回路(I))353は、各−画面メモリA〜Dより参照
画素値を読み出し、ゲート335〜338を介して、順
次再生復号回路321へ転送する。復号プレーン決定部
312は、プレーン表示符号抽出回路311より転送さ
れるプレーン表示符号と第10表よりそのプレーン表示
符号の後に入力端子301から転送されてくる符号が、
どのプレーンに関するものかを求め、それに従ってゲー
ト331からゲート334のいずれかのゲートをオープ
ンにすることにより、復号化するプレーンを選択すると
ともに、順次再生復号回路321を制御する。例えば、
プレーン表示符号抽出回路311よりプレーン表示符号
“10”を受信すると、復号プレーン決定部312はプ
レーンCの情報を復号するためにゲート333をオープ
ンにするとともにプレーンCの情報を復号するように順
次再生復号回路321に指示する。復号化の最小単位は
各手順単位(手順1−2、手順2−11手順2−2、−
−−−−・2手順2−9゜手順2−10のいずれか)で
あり、その単位の復号化を終了すると、順次再生復号回
路321は復号プレーン決定部312に復号終了を指示
する信号を転送する。復号プレーン決定部312はその
信号を受信すると、オープンにしていたゲート(ゲート
331から334のいずれか)をクローズしさらにプレ
ーン表示符号抽出回路311へ復号終了信号を転送する
。また、プレーン表示符号抽出回路311は、復号化プ
レーン決定部312から復号終了の信号を受信すると、
入力端子301より入力される信号からプレーン表示符
号を抽出し、以上の手順を繰り返す。
The sequential reproduction decoding circuit 321 decodes the encoded signal transferred from the plane display code extraction circuit 311 according to instructions from the decoding plane determining section 312. Further, the address control circuit (I) 353 reads reference pixel values from each of the screen memories A to D, and sequentially transfers them to the reproduction decoding circuit 321 via gates 335 to 338. The decoding plane determination unit 312 determines that the plane display code transferred from the plane display code extraction circuit 311 and the code transferred from the input terminal 301 after the plane display code from Table 10 are as follows.
By determining which plane it relates to and opening any of the gates 331 to 334 accordingly, the plane to be decoded is selected and the reproduction decoding circuit 321 is sequentially controlled. for example,
When receiving the plane display code "10" from the plane display code extraction circuit 311, the decoding plane determining unit 312 opens the gate 333 to decode the information of plane C, and sequentially reproduces the information of plane C so as to decode the information. Instructs the decoding circuit 321. The minimum unit of decoding is each procedure unit (procedure 1-2, procedure 2-11 procedure 2-2, -
----・2 Step 2-9 or Step 2-10) When the decoding of that unit is completed, the sequential reproduction decoding circuit 321 sends a signal to the decoding plane determination unit 312 to instruct the decoding end. Forward. When the decoding plane determination unit 312 receives the signal, it closes the open gate (any one of the gates 331 to 334) and further transfers the decoding end signal to the plane display code extraction circuit 311. Further, when the plane display code extraction circuit 311 receives a decoding end signal from the decoding plane determination unit 312,
The plane display code is extracted from the signal input from the input terminal 301, and the above procedure is repeated.

順次再生復号回路321は復号化された画情報信号をオ
ープンにされたゲート(ゲート331から334のいず
れか一つ)を介して、一画面メモリ (一画面メモリA
341から一画面メモリD344のいずれか一つ)の決
まったアドレスに転送し記憶する。
The sequential reproduction decoding circuit 321 transmits the decoded image information signal to one screen memory (single screen memory A) via an open gate (one of gates 331 to 334).
341 to one of the one-screen memories D344) and stored therein.

アドレス制御回路351は4枚の一画面メモリ341〜
344と階調画像一画面メモリの同一座標を指示する。
The address control circuit 351 includes four single-screen memories 341 to
344 and the same coordinates of the gradation image one screen memory.

4枚の一画面メモリ341〜344はアドレス制御回路
より指示された座標のメモリ内容をビット合成回路35
2に転送する。ビット合成回路352は、一画面メモリ
341〜344から転送されるビット情報を用いて第2
表により階調画像信号(4ビツト)を合成し、アドレス
制御回路351が指示する座標のメモリに記憶する。例
えば、一画面メモリ341〜344より転送されてくる
信号がそれぞれ”1″、′0″、″1”、“0”の場合
には、合成される階調画像信号は6”となる。
The four single-screen memories 341 to 344 transfer the memory contents of the coordinates specified by the address control circuit to the bit synthesis circuit 35.
Transfer to 2. The bit synthesis circuit 352 uses the bit information transferred from the one-screen memories 341 to 344 to
Gradation image signals (4 bits) are synthesized according to the table and stored in the memory at the coordinates specified by the address control circuit 351. For example, when the signals transferred from the one-screen memories 341 to 344 are "1", "0", "1", and "0", respectively, the gradation image signal to be synthesized is "6".

アドレス制御回路351は順次再生復号回路321によ
る復号化が全て終了した後に、上記の手順を一画面の左
上のすみの画素より始めて左から右へ上から下へと順次
に全座標に対して行う。その結果、階調画像一画面メモ
リ361に復号化された階調画像情報が得られる。
After all the decoding by the sequential reproduction decoding circuit 321 is completed, the address control circuit 351 performs the above procedure for all coordinates sequentially from left to right and top to bottom, starting from the upper left corner pixel of one screen. . As a result, decoded gradation image information is obtained in the gradation image one-screen memory 361.

以下復号プレーン決定部312について図面を用いて詳
細に説明する。第14図は復号プレーン決定部312の
一回路例を示したものであり、381は復号化プレーン
決定回路、382は一画面メモリA341の復号化に関
する制御を行う復号化モード制′御回路を示しており、
同様に383.384.385はそれぞれ一画面メモI
JB342.  一画面メモリC343゜一画面メモリ
D344の復号化に関する制御を行う復号化モード制御
回路を示している。復号化モード制御回路382.38
3.384.385はそれぞれ対応する一画面メモリの
復号化に関し、△X、△Y、モード、状態等の情報を記
憶することにより、どの段階まで復号化を終了したかを
記憶している。
The decoding plane determination unit 312 will be explained in detail below using the drawings. FIG. 14 shows an example of a circuit of the decoding plane determining section 312, where 381 is a decoding plane determining circuit, and 382 is a decoding mode control circuit that controls decoding of the single screen memory A341. and
Similarly, 383, 384, and 385 are each one-screen memo I
JB342. One-screen memory C343 indicates a decoding mode control circuit that controls decoding of one-screen memory D344. Decoding mode control circuit 382.38
3, 384, and 385 store information such as ΔX, ΔY, mode, state, etc. regarding the decoding of the corresponding one-screen memory, thereby storing the stage at which the decoding has been completed.

復号化プレーン決定回路381は、前述したように、プ
レーン表示符号抽出回路311より転送されるプレーン
表示符号を用いて第10表により、そのプレーン表示符
号の後に入力端子301から転送されてくる符号がどの
プレーン(一画面メモリ)に関するものか求め、それに
従って、ゲート331からゲート334のいずれかのゲ
ートをオープンにすることにより、復号化するプレーン
を選択するとともに、そのオープンにされたゲートに直
結された一画面メモリ (一画面メモリ341〜344
のいずれか一つ)の復号化に関する制御を行う復号化モ
ード制御回路(復号化モード制御回路382〜385の
いずれか一つ)に復号化を指示する信号を転送する。そ
の信号を受信した復号化モード制御回路は、一つの手順
の復号化を行う。その復号化終了後、その復号化モード
制御回路は復号化プレーン決定回路381に復号化の終
了を指示する。その後、復号化プレーン決定回路381
はプレーン表示符号抽出回路311へ復号終了信号を転
送する。
As mentioned above, the decoding plane determination circuit 381 uses the plane display code transferred from the plane display code extraction circuit 311 to determine the code transferred from the input terminal 301 after the plane display code according to Table 10. By determining which plane (one screen memory) it relates to and opening any of the gates 331 to 334 accordingly, the plane to be decoded is selected, and the plane that is directly connected to the opened gate is selected. One screen memory (One screen memory 341 to 344
A signal instructing decoding is transferred to a decoding mode control circuit (any one of decoding mode control circuits 382 to 385) that performs control regarding decoding (any one of decoding mode control circuits 382 to 385). The decoding mode control circuit that receives the signal performs one procedure of decoding. After the decoding is finished, the decoding mode control circuit instructs the decoding plane determining circuit 381 to finish the decoding. After that, the decoding plane determination circuit 381
transfers a decoding completion signal to the plane display code extraction circuit 311.

第15図は第13図の復号化回路に用いられている順次
再生復号化号回路321の構成例を示している。
FIG. 15 shows a configuration example of the sequential reproduction decoding circuit 321 used in the decoding circuit of FIG. 13.

231は一画面メモリA341〜一画面メモリD344
から転送されてくる画素値よりg++、 gz+ g:
+、 gar g。
231 is one screen memory A341 to one screen memory D344
From the pixel values transferred from g++, gz+ g:
+, gar g.

を作成する画素分配回路を示し、251〜255はそれ
らの値を蓄積するメモリを示す。また、256はランレ
ングス復号器、257は「0」を「1」へ「1」を「0
」へ変換する符号反転器、261.262は比較器、2
63は加算器、264は乗算器、265は減算器、26
6は除算器、267、268は加算器、271は状態選
択回路、224はFIFOバッファー、222゜223
は復号画素アドレス決定回路、244.245.246
゜247はゲート、248はNOT回路、249はOR
回路を示す。
251 to 255 indicate memories for storing these values. In addition, 256 is a run-length decoder, 257 is a run-length decoder, and 257 is a run-length decoder that converts “0” to
” sign inverter, 261.262 is a comparator, 2
63 is an adder, 264 is a multiplier, 265 is a subtracter, 26
6 is a divider, 267 and 268 are adders, 271 is a state selection circuit, 224 is a FIFO buffer, 222° 223
is the decoded pixel address determination circuit, 244.245.246
゜247 is the gate, 248 is the NOT circuit, 249 is the OR
Shows the circuit.

復号化プレーン決定回路381はプレーン表示符号抽出
回路311より転送されるプレーン表示符号に従い、復
号するプレーンの選択を行う。ここでは−例としてプレ
ーン3が復号化される過程を説明し、その復号化回路の
動作を説明する。
The decoding plane determination circuit 381 selects a plane to be decoded according to the plane display code transferred from the plane display code extraction circuit 311. Here, as an example, the process of decoding plane 3 will be explained, and the operation of the decoding circuit will be explained.

プレーン3の復号化を制御する復号化モード制御化C3
84には△X、△Y、モード、状態がそれぞれ△X、△
Yメモリ、モードメモリ、状態メモリに記憶されている
。まず、初期値として△X。
Decoding mode control C3 that controls plane 3 decoding
84 has △X, △Y, mode, and status, respectively.
It is stored in Y memory, mode memory, and state memory. First, the initial value is △X.

△Yメモリには最初のへXおよび△Yの値が、モードメ
モリと状態メモリにはそれぞれ「0」がセットされる。
The initial values of X and ΔY are set in the ΔY memory, and "0" is set in the mode memory and state memory, respectively.

まず、手順1−2の復号化が以下のように行われる。ラ
ンレングス復号器256には、△Xおよび△Yの値とモ
ードメモリと状態メモリの内容がそれぞれ転送され、そ
れらより手順1−2の復号に適した符号表をセットする
。その後、ランレングス復号器256はプレーン表示符
号抽出回路331より転送されてくる符号を順次受信し
、ランレングス復号を行う。また復号化モード制御回路
C384はゲート245をオープンにする。
First, decoding in step 1-2 is performed as follows. The values of ΔX and ΔY and the contents of the mode memory and state memory are respectively transferred to the run-length decoder 256, and a code table suitable for decoding in step 1-2 is set therefrom. Thereafter, the run-length decoder 256 sequentially receives the codes transferred from the plain display code extraction circuit 331 and performs run-length decoding. Further, the decoding mode control circuit C384 opens the gate 245.

復号化された信号はゲート245を介して復号側1素ア
ドレス決定回路m223へ転送される。復号画素アドレ
ス決定回路(I)223は△X、△Yメモリより△X、
△Yの内容を受信し、一画面メモリ201の最上左端の
アドレスから順次横方向へX、縦方向へYずつ離れたア
ドレスに位置する全ての画素CP (NXへX+1.M
X△Y+1)、  (N、 M’=0、・1,2.−・
・・・・)〕に対して、画面の左から右へ、さらに上か
ら下へ順番でゲート245を介して受信する信号を転送
する。−画面全てに対して上述の操作が終了すると、復
号画素アドレス決定回路(I)223より終了信号を復
号化モード制御回路384に送る。この時点で手順1−
2で符号化された画素がすべて復号化される。復号化モ
ード制御回路384は、復号画素アドレス決定回路(1
1223より信号を受信するとゲート245を閉じる。
The decoded signal is transferred via the gate 245 to the decoding side single element address determination circuit m223. The decoded pixel address determination circuit (I) 223 reads △X, △Y from the △X, △Y memory.
The contents of △Y are received, and all pixels CP (to NX X+1.M
X△Y+1), (N, M'=0,・1,2.−・
. - When the above-mentioned operation is completed for all the screens, a completion signal is sent from the decoding pixel address determination circuit (I) 223 to the decoding mode control circuit 384. At this point, step 1-
All pixels encoded with 2 are decoded. The decoding mode control circuit 384 includes a decoding pixel address determining circuit (1
Upon receiving a signal from 1223, gate 245 is closed.

同時に、復号化モード制御回路384は、復号化プレー
ン決定回路381に復号の終了を指示する。
At the same time, the decoding mode control circuit 384 instructs the decoding plane determining circuit 381 to terminate decoding.

次に、復号化モード制御回路384は、復号化ブレーシ
決定回路381より復号化の指示を受信すると、手順2
−1で符号化された画素の復号化を行う。復号化モード
制御回路384は、モードメモリに「1」状態メモリに
「2」をセットし、その後’、、−−)244.335
.336. ss□を開く。、7,7グユ復号器256
は、△X、△Yメモリより△X、△Yの値を受信し、モ
ードメモリよりモードの値(手順2−1で符号化された
画素を復号化する場合「1」)を、状態メモリより状態
値(手順2−1で符号化された画素を復号化する場合は
「2j)を受信することによって符号表を決定し、必要
な長さのランレングスの復号化を順次行う。復号化され
た信号はゲート244を介してFIFOバッファー22
4に転送する。アドレス制御回路(1)353は、△X
、△Yメモリより△X、△Yの値を受信し、またモード
メモリより「1」を受信することによって各−画面メモ
リ341〜344の中からモード1(第4図参照)に適
した4つの参照画素の画素値を順次(画面の左より右へ
さらに上から下の順序で)ゲート335〜337を介し
て画素分配回路231に転送する。画素分配回路231
はプレーンCの手順2−1の復号化であることを復号化
モード制御回路C384からの情報で知らされているの
で転送される画素値からg+(i=1.・・−94)を
求め、各参。
Next, when the decoding mode control circuit 384 receives a decoding instruction from the decoding brachy determination circuit 381, the decoding mode control circuit 384 performs step 2.
-1 encoded pixels are decoded. The decoding mode control circuit 384 sets "1" in the mode memory and "2" in the state memory, and then sets ',, --)244.335
.. 336. Open ss□. , 7,7 Guyu decoder 256
receives the values of △X, △Y from the △X, △Y memory, and transfers the mode value (“1” when decoding the pixel encoded in step 2-1) from the mode memory to the state memory. The code table is determined by receiving the state value (“2j” when decoding the pixels encoded in step 2-1), and the decoding of the required run length is performed sequentially.Decoding The signal is sent to the FIFO buffer 22 via the gate 244.
Transfer to 4. The address control circuit (1) 353 is
, △Y memory, and ``1'' from the mode memory, 4 suitable for mode 1 (see Fig. 4) is selected from each screen memory 341 to 344. The pixel values of the two reference pixels are transferred to the pixel distribution circuit 231 sequentially (from the left to the right of the screen and from top to bottom) via gates 335 to 337. Pixel distribution circuit 231
Since it is informed from the information from the decoding mode control circuit C384 that this is decoding in step 2-1 of plane C, g+(i=1...-94) is calculated from the pixel values transferred. Each reference.

照画素メモリA−Dに書き込み、同時にgoを参照比較
器(11261,(II)262はそれぞれ4つの参照
画素メモリA−Dに記憶されている参照画素値g。
The reference comparators (11261, (II) 262 write the reference pixel values g stored in the four reference pixel memories A to D, respectively) and simultaneously write go to the reference pixel memories A to D.

(i=1.−・、4)の内から最大値maxと最小値m
inを求め、状態選択回路271へ転送する。また、加
算器263は4つの参照画素値g、の総和 八g。
Maximum value max and minimum value m from (i=1.-・,4)
in is determined and transferred to the state selection circuit 271. Further, the adder 263 calculates the sum of the four reference pixel values g, 8g.

を求め、その結果を除算器266へ転送する。除算器2
66は加算器263より転送される値を「4」で割り平
均値raveJを求め、その値を状態選択回路271へ
転送する。乗算器264は、参照画素メモリo255に
記憶されている参照画素g0の2倍の値rgoX2Jを
求め、その結果を状態選択回路271へ出力する。また
、加算器267、268はそれぞれ乗算器264より転
送される値にrlJ  ro、5Jを加え、それぞれr
goX 2 + I J  rgoX 2 +0.5J
を求め、状態選択回路271に出力する。よって、状態
選択回路271にはraveJ  rlevelJ  
rminJrmaxJ  rgoX2J  rgoX2
+IJ  rgoX2+o、5Jの値が転送されること
となる。これらの値を用いて、状態選択回路271は前
述の状態−6,W、、 W2゜lll3のどの状態に属
するか求める。また、状B選択回路151はraveJ
とrgoX 2 +0.5Jの比較を行い、FIFOバ
ッファー224より転送される復号画素値H0の反転(
「0」ならば「1」へ、「1」ならば「0」へ)を行う
か同化を判断する。反転を行う場合には、ゲート247
がオープンにされ、符号反転器257によってその反転
が行われる。状6選択回路271は復号化モード制御回
路382.383.384゜385により状態値「0」
を受信しており、その値と同じ状態すなわち、−〇の状
態に合致したときのみ、ゲート222をオープンにする
。その時FIFOバッファー224中の一画素の値が、
ゲート222を介して各−画面メモリへ転送される。そ
の時ゲート333のみがオープンになっているので、そ
の内容は一画面メモリC343へ転送され、アドレス制
御回路([1351が指示する符号化画素のアドレスに
書き込まれる。
and transfers the result to the divider 266. Divider 2
66 divides the value transferred from the adder 263 by "4" to obtain an average value raveJ, and transfers the value to the state selection circuit 271. Multiplier 264 calculates a value rgoX2J that is twice the reference pixel g0 stored in reference pixel memory o255, and outputs the result to state selection circuit 271. Adders 267 and 268 add rlJ ro and 5J to the values transferred from multiplier 264, respectively, and
goX 2 + I J rgoX 2 +0.5J
is determined and output to the state selection circuit 271. Therefore, the state selection circuit 271 has raveJ rlevelJ
rminJrmaxJ rgoX2J rgoX2
+IJ rgoX2+o, the value of 5J will be transferred. Using these values, the state selection circuit 271 determines to which state of the above-mentioned states -6, W, . In addition, the state B selection circuit 151 uses raveJ
and rgoX 2 +0.5J, and the inversion of the decoded pixel value H0 transferred from the FIFO buffer 224 (
If it is "0", it is changed to "1"; if it is "1", it is changed to "0"). When performing inversion, gate 247
is opened, and the sign inverter 257 performs its inversion. The state 6 selection circuit 271 is set to the state value “0” by the decoding mode control circuit 382, 383, 384° 385.
is received, and the gate 222 is opened only when the state is the same as that value, that is, the state of −0. At that time, the value of one pixel in the FIFO buffer 224 is
It is transferred via gate 222 to each screen memory. Since only the gate 333 is open at that time, its contents are transferred to the one-screen memory C343 and written to the address of the encoded pixel indicated by the address control circuit ([1351).

復号画素アドレス決定回路CI)223は一画面メモリ
内のモード1,0で符号化する画素の読み出しを全て終
了すると、符号化モード制御回路C384に符号化の終
了を指示する。次に復号化モード制御回路C384はモ
ードメモリの内容を「1」、状態メモリの内容を「1」
とし、同時の動作を行いい、手順2−2の画素の符号化
を行う。
When the decoded pixel address determination circuit CI) 223 finishes reading out all the pixels to be encoded in modes 1 and 0 in the one-screen memory, it instructs the encoding mode control circuit C384 to terminate encoding. Next, the decoding mode control circuit C384 sets the content of the mode memory to "1" and the content of the state memory to "1".
Then, simultaneous operations are performed to perform pixel encoding in step 2-2.

以下同じように手順2−3乃至手順2−10で符号化さ
れた画素の復号を行う。ただし、それぞれにおいてモー
ドメモリと状態メモリの内容は次のようにする。
Thereafter, the pixels encoded in steps 2-3 to 2-10 are similarly decoded. However, the contents of the mode memory and state memory in each case are as follows.

手順2−3で符号化した画素の復号:モードメモリの内
容「1」 状態メモリの内容「2」 手順2−4で符号化した画素の復号:モードメモリの内
容rlJ 状態メモリの内容「3」 手順2−5で符号化した画素の復号:モードメモリの内
容「2」 状態メモリの内容「0」 手順2−6で符号化した画素の復号:モードメモリの内
容「2−」 状態メモリの内容「1」 手順2−7で符号化した画素の復号:モードメモリの内
容「2」 状態メモリの内容「2」 手順2−8で符号化した画素の復号:モードメモリの内
容「2」 状態メモリの内容「3」 以上の復号化を終えた後、復号化モード制御回路384
は△X、△Yメモリ内の△Xおよび△Yの内容がそれぞ
れ「1」でなければ、△X、△Yメモリ内のへXおよび
△Yの内容をそれぞれへX/2、△Y/2に変更した後
、手順2−1で符号化した画素の復号手順から手順2−
10で符号化した画素の復号手順を繰り返す。
Decoding of pixels encoded in step 2-3: Contents of mode memory "1" Contents of state memory "2" Decoding of pixels encoded in step 2-4: Contents of mode memory rlJ Contents of state memory "3" Decoding of pixels encoded in step 2-5: Contents of mode memory "2" Contents of state memory "0" Decoding of pixels encoded in step 2-6: Contents of mode memory "2-" Contents of state memory "1" Decoding of pixels encoded in step 2-7: Contents of mode memory "2" Contents of state memory "2" Decoding of pixels encoded in step 2-8: Contents of mode memory "2" State memory Content “3” After completing the above decoding, the decoding mode control circuit 384
If the contents of △X and △Y in △X, △Y memory are not "1", then the contents of △X and △Y are transferred to X/2, △Y/ respectively. After changing to step 2, the decoding procedure of the pixel encoded in step 2-1 to step 2-
The decoding procedure for the encoded pixels in step 10 is repeated.

また△X、△Yメモリ内の△Xおよび△Yの内容が共に
「1」であれば復号化を終了する。
Further, if the contents of ΔX and ΔY in the ΔX and ΔY memories are both "1", the decoding is terminated.

アドレス制御回路(II)351は画面の左上より順に
各−画面メモリ341〜344の内容を読み出し、ビッ
ト合成回路352へ転送する。ビット合成回路352は
、それらの値より階調値を作り、階調画像一画面メモリ
361の画面の左上より順に蓄積する。
The address control circuit (II) 351 sequentially reads the contents of each of the screen memories 341 to 344 from the upper left of the screen and transfers them to the bit synthesis circuit 352. The bit synthesis circuit 352 creates gradation values from these values and stores them sequentially from the upper left of the screen in the gradation image one-screen memory 361.

全画面に対して上記の動作を終了すると、階調画像が出
力端子371より出力される。
When the above operation is completed for the entire screen, a gradation image is output from the output terminal 371.

以上、本発明の一実施例を説明したが、本発明における
手順2−1乃至手順2−10の順序は上述のような順序
に限定されるものではなく、手順2−1乃至手順2−5
の順序さらに手順2−6乃至手順2−10は変えること
が出来る。
Although one embodiment of the present invention has been described above, the order of steps 2-1 to 2-10 in the present invention is not limited to the above-mentioned order.
The order of steps 2-6 to 2-10 can be changed.

また、手順1−2および手順2−1乃至手順2−10で
該当する画素を符号化する場合にもランレングス符号化
方式によらず公知のいずれかの符号化方式を用いること
ができる。
Also, when encoding the corresponding pixels in Steps 1-2 and 2-1 to 2-10, any known encoding method can be used, regardless of the run-length encoding method.

またアドレス制御回路351は、必ずしも順次再生復号
回路321による復号化が全て終了した後に上記の手順
を行う必要はなく、復号化の途中で上記の手順を始め、
一画面の全座標に対してその処理が終了すると、また最
初の画素(画面の左上ずみの画素)より順次上記の手順
を復号化が終了するまで繰り返してもよい。その結果、
例えば、階調画像一画面メモリ361の内容は常にCR
Tディスプレイに表示されているとすれば、始めは大ま
かな画像が表示され、復号化が進むにつれて徐々に画質
が良くなるという効果が得られる。さらに、受信側に表
示される画像の画質をできるだけ向上させるために、未
復号画素に対して補間処理を行うことも可能である。補
間処理としては、例えば、最近接の既復号画素で代表さ
せる方式など、従来の技術を利用することができる。
Further, the address control circuit 351 does not necessarily need to perform the above procedure after all the decoding by the sequential reproduction decoding circuit 321 is completed, but starts the above procedure in the middle of decoding.
When the processing is completed for all coordinates on one screen, the above procedure may be repeated sequentially from the first pixel (the pixel at the top left of the screen) until the decoding is completed. the result,
For example, the contents of the gradation image one-screen memory 361 are always CR
If the image is displayed on a T-display, a rough image will be displayed at first, and the image quality will gradually improve as decoding progresses. Furthermore, in order to improve the quality of the image displayed on the receiving side as much as possible, it is also possible to perform interpolation processing on undecoded pixels. As the interpolation process, conventional techniques such as a method of representing the pixel using the nearest decoded pixel can be used.

なお、上述した実施例の説明では、4つの参照画素の平
均値ave、最大値max、最小値min、最大値と最
小値の差分値1eνel とg。の値を用いて4つの状
態に分離した。しかし、状態の分離については、上述の
方法である必要はなく、例えば、以下のような状態を考
えてもよい。
In the above embodiment, the average value ave, the maximum value max, the minimum value min, and the difference value 1eνel between the maximum value and the minimum value of the four reference pixels are used. It was separated into four states using the value of . However, the separation of states is not necessarily limited to the above-mentioned method; for example, the following states may be considered.

(il  差分値1eνelで分離する方法1evel
O値で状態を分離する。すべての値に対して個々の状態
を設定する必要はなく、グループ化することもできる。
(il Method of separating with difference value 1eνel 1evel
Separate states by O value. It is not necessary to set individual states for all values; they can also be grouped.

例えば、 状ffQ 1 :  Ievel= 0状62 :  
1evel= 1 状7G3 :  Ievel= 2 状態4 :  Ievel= 3 状a 5 :  Ievel= 4 状態6 :  1evel= 5 (iil  平均値aveで分離する方法平均値で状態
を分離する。すべての値に対して個々の状態を設定する
必要はなく、グループ化することもできる。例えば、 状態1 :  (ave)≦6 状態2 :  (ave) −7 状態3 :  (ave) = 8 状態4 :  (ave) = 9 状態5 :  (ave) =10 状態6 :  (avel≧II ただし〔〕はガウス記号 (ii)  goとaveの比較で分離する方法例えば
、 状態1 :  goX 2 +0.5<aνe状態2 
:  goX 2 +0.5=ave状態3 :  g
oX2 +0.5>ave(iv)  goとmin、
 rnaxの比較で分離する方法例えば、 状態1:gox2≧max 状a2 :  goX 2 + 1≦min状態3: 
状B1,2以外 また、これら(i)からGv)の組み合わせによる状態
の分離もできる。
For example, state ffQ 1: Ievel=0 state 62:
1evel = 1 State 7G3: Ievel = 2 State 4: Ievel = 3 State a 5: Ievel = 4 State 6: 1evel = 5 (iil Method of separating by average value ave Separate states by average value. For all values It is not necessary to set individual states, and it is possible to group them. For example, state 1: (ave)≦6 state 2: (ave) -7 state 3: (ave) = 8 state 4: (ave) = 9 State 5: (ave) = 10 State 6: (avel≧II However, [] is a Gaussian symbol (ii) Method of separating by comparing go and ave For example, State 1: goX 2 +0.5<aνe State 2
: goX 2 +0.5=ave state 3 : g
oX2 +0.5>ave(iv) go and min,
For example, state 1: gox2≧max state a2: goX 2 + 1≦min state 3:
In addition to states B1 and B2, states can also be separated by combinations of these (i) to Gv).

(発明の効果) 以上詳説したように、本発明によれば、多階調画像につ
いても符号化効率の高い順次再生符号化方式が実現でき
る。特に、ビットプレーン方式を導入したことにより、
画質を解像度と階調数との2つの面から選択できること
となり、受信端末の解像度と階調の表現能力に応じた過
不足のない情報の伝送が可能となる。これは、多種類の
端末を通信相手とする画像データベースの蓄積方式に本
発明を適用した場合に、特に顕著であり、これにより、
著しく通信コストの低減を図ることができる。
(Effects of the Invention) As described in detail above, according to the present invention, a sequential reproduction encoding method with high encoding efficiency can be realized even for multi-tone images. In particular, by introducing the bitplane method,
Image quality can be selected from two aspects: resolution and number of gradations, and it becomes possible to transmit information with just the right amount depending on the resolution and gradation expression ability of the receiving terminal. This is particularly noticeable when the present invention is applied to an image database storage method that communicates with many types of terminals.
Communication costs can be significantly reduced.

なお、本発明の効果を、実際の画像を符号化した場合の
所要ビット数で従来技術と比較すると次のようになる。
Note that the effects of the present invention are compared with those of the prior art in terms of the number of bits required when encoding an actual image.

使用する画像は、東大生産研究所から提案されてい・る
5IDBA画像データベースに収録されているGIRL
(256X256 pel)を16階調に量子化し直し
たものとする。この画像を従来技術により符号化すると
、符号化ピント数は77527.22ビツトであり、本
発明による符号化では73486.24ビツトとなる。
The images used are GIRL, which is included in the 5IDBA image database proposed by the University of Tokyo Institute of Industrial Science.
(256×256 pel) is requantized to 16 gradations. When this image is encoded using the conventional technique, the number of encoded points is 77,527.22 bits, and when encoded according to the present invention, it is 73,486.24 bits.

従って、本発明は従来技術に比べ約5.5%の符号化率
の向上が図られている。
Therefore, the present invention aims to improve the coding rate by about 5.5% compared to the prior art.

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

第1図は本発明に用いられるビットプレーン方式による
画像の分解を説明するための斜視略図、第2図は各本発
明に用いられる各プレーンと階調との藺係を説明するた
めの図、第3図は本発明の実施例を示すブロック図、第
4図、第5図、第6図(a) (b) 、第7図(a)
 (b) fc) (di、第8図(a) (b) (
C) (d) 、第9図及び第10図は本発明に用いら
れる符号化の原理を説明するための画素配列パターン図
、第11図は本発明に用いられる符号化順序制御部の1
例を示すブロック図、第12図は本発明に用いられる順
次再生符号化器の1例を示すブロック図、第13図は本
発明による符号化信号の復号化回路例を示すブロック図
、第14図は第13図の回路例に用いられる復号プレー
ン決定部の1例を示すブロック図、第15図は第13図
の回路例に用いられる順次再生復号回路の1例を示すブ
ロック図である。 矛4区 万5閃 第6回 (aL’>        (−b”)    −第3
0 矛70 矛8閉
FIG. 1 is a schematic perspective view for explaining the decomposition of an image by the bit plane method used in the present invention, FIG. 2 is a diagram for explaining the relationship between each plane and gradation used in the present invention, Fig. 3 is a block diagram showing an embodiment of the present invention, Fig. 4, Fig. 5, Fig. 6 (a) (b), Fig. 7 (a)
(b) fc) (di, Fig. 8(a) (b) (
C) (d), FIGS. 9 and 10 are pixel arrangement pattern diagrams for explaining the principle of encoding used in the present invention, and FIG. 11 is a diagram of one of the encoding order control units used in the present invention.
FIG. 12 is a block diagram showing an example of a sequential reproduction encoder used in the present invention; FIG. 13 is a block diagram showing an example of a decoding circuit for encoded signals according to the present invention; FIG. 13 is a block diagram showing an example of a decoding plane determining section used in the circuit example of FIG. 13, and FIG. 15 is a block diagram showing an example of a sequential reproduction decoding circuit used in the circuit example of FIG. 13. 4th ward, 15th flash, 6th (aL'> (-b”) - 3rd
0 spear 70 spear 8 closed

Claims (1)

【特許請求の範囲】[Claims] 2^n階層で表現された多階調ファクシミリ画像信号を
n桁にそれぞれ対応するn枚のビットプレーンに分解し
てビットプレーンを作成する手段と、各ビットプレーン
を構成する画素のうちから△Yライン毎のライン上から
△X画素おきに画素を抽出しこれらの画素を符号化する
初期符号化手段と、該符号化された画素のうち最小の矩
形の頂点に位置する4つの画素と同じ位置にある既に符
号化を終えた各プレーンの画素を参照して該4つの参照
画素に囲まれた中心に位置する画素を符号化するモード
1の符号化手段と、前記初期符号化手段と該モード1の
符号化手段によって符号化された画素のうち最小の菱形
の頂点に位置する4つの画素と同じ位置にある既に符号
化を終えた各プレーンの画素を参照してその中心に位置
する画素を符号化するモード2の符号化手段とを有し、
前記n枚のビットプレーンのそれぞれにつき2^n(n
=整数)を前記△Xと△Yの初期値として初期符号化と
モード1、モード2の符号化を行い、この後は△Xと△
Yの値を2分してモード1およびモード2の符号化を繰
り返すことを特徴とする階調ファクシミリ画像信号の符
号化方式。
2^ A means for creating bit planes by decomposing a multi-gradation facsimile image signal expressed in n layers into n bit planes corresponding to n digits, and a means for creating bit planes from among the pixels constituting each bit plane. An initial encoding means that extracts pixels every △X pixels from each line and encodes these pixels, and the same position as the four pixels located at the vertices of the smallest rectangle among the encoded pixels. a mode 1 encoding means for encoding a pixel located at the center surrounded by the four reference pixels by referring to the pixels of each plane that have already been encoded; the initial encoding means; and the mode 1 encoding means; Among the pixels encoded by the encoding means 1, the pixel located at the center is determined by referring to the pixels of each plane that have already been encoded and are located at the same position as the four pixels located at the vertices of the smallest rhombus. and a mode 2 encoding means for encoding,
2^n(n
= integer) as the initial values of △X and △Y, initial encoding and mode 1 and mode 2 encoding are performed, and after this, △X and △
A method for encoding a gradation facsimile image signal, characterized in that the value of Y is divided into two and encoding in mode 1 and mode 2 is repeated.
JP60163949A 1985-07-26 1985-07-26 Encoding system for gradation facsimile picture signal Granted JPS6225575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60163949A JPS6225575A (en) 1985-07-26 1985-07-26 Encoding system for gradation facsimile picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60163949A JPS6225575A (en) 1985-07-26 1985-07-26 Encoding system for gradation facsimile picture signal

Publications (2)

Publication Number Publication Date
JPS6225575A true JPS6225575A (en) 1987-02-03
JPH0511467B2 JPH0511467B2 (en) 1993-02-15

Family

ID=15783881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60163949A Granted JPS6225575A (en) 1985-07-26 1985-07-26 Encoding system for gradation facsimile picture signal

Country Status (1)

Country Link
JP (1) JPS6225575A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01112882A (en) * 1987-10-26 1989-05-01 Kokusai Denshin Denwa Co Ltd <Kdd> Block dividing sequential reproducing coding system
JPH03192972A (en) * 1989-12-22 1991-08-22 Fuji Xerox Co Ltd Picture reader
WO2002047396A1 (en) * 2000-12-01 2002-06-13 Celartem Technology Inc. Image format

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033782A (en) * 1983-08-03 1985-02-21 Matsushita Electric Ind Co Ltd Halftone image data compression encoding method
JPS60127875A (en) * 1983-12-15 1985-07-08 Kokusai Denshin Denwa Co Ltd <Kdd> Coding system of facsimile picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033782A (en) * 1983-08-03 1985-02-21 Matsushita Electric Ind Co Ltd Halftone image data compression encoding method
JPS60127875A (en) * 1983-12-15 1985-07-08 Kokusai Denshin Denwa Co Ltd <Kdd> Coding system of facsimile picture

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01112882A (en) * 1987-10-26 1989-05-01 Kokusai Denshin Denwa Co Ltd <Kdd> Block dividing sequential reproducing coding system
JPH03192972A (en) * 1989-12-22 1991-08-22 Fuji Xerox Co Ltd Picture reader
WO2002047396A1 (en) * 2000-12-01 2002-06-13 Celartem Technology Inc. Image format

Also Published As

Publication number Publication date
JPH0511467B2 (en) 1993-02-15

Similar Documents

Publication Publication Date Title
JPS625779A (en) Encoding system for gradation facsimile picture signal
US5818970A (en) Image encoding apparatus
US5864345A (en) Table-based color conversion to different RGB16 formats
EP0507601A2 (en) Image processing method and apparatus
JP3364074B2 (en) Bit plane coding device
JPH0326947B2 (en)
JPH034153B2 (en)
JPH07184059A (en) Equipment and method for facsimile data coding
JPH0197064A (en) Processing device and method of pel signol of original inage
JPS6225575A (en) Encoding system for gradation facsimile picture signal
JPS5927677A (en) Coding system of facsimile signal
JPH04270564A (en) Serial picture data compression system having color information
JPH09139955A (en) Data encoding apparatus and method, and data decoding apparatus and method
WO2000018133A1 (en) Encoding device and method, and decoding device and method
EP0501988B1 (en) Storage of digital image composition control signal
JP3320282B2 (en) Multi-value image processing device
JP3209396B2 (en) Image data compression method and apparatus
JPH05324815A (en) Multi-value image compression method and multi-value image output method
JP2002297442A (en) Graphic pattern processing system
JPH07112243B2 (en) Block division sequential reproduction coding method
JP2000152226A (en) Image encoding apparatus and method, image decoding apparatus and method, and providing medium
JPH0157547B2 (en)
JP2534746B2 (en) Color image coding method
JP2534745B2 (en) Color image coding method
JPS61169086A (en) Encoding system of half tone image