JPH0125266B2 - - Google Patents

Info

Publication number
JPH0125266B2
JPH0125266B2 JP59031001A JP3100184A JPH0125266B2 JP H0125266 B2 JPH0125266 B2 JP H0125266B2 JP 59031001 A JP59031001 A JP 59031001A JP 3100184 A JP3100184 A JP 3100184A JP H0125266 B2 JPH0125266 B2 JP H0125266B2
Authority
JP
Japan
Prior art keywords
signal
image signal
encoding
encoded
change point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP59031001A
Other languages
Japanese (ja)
Other versions
JPS60174577A (en
Inventor
Masamichi Kawakami
Hiroyuki Hayazaki
Masami Suzuki
Yoshinori Saito
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP59031001A priority Critical patent/JPS60174577A/en
Publication of JPS60174577A publication Critical patent/JPS60174577A/en
Publication of JPH0125266B2 publication Critical patent/JPH0125266B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、フアクシミリ装置の2値画信号な
どのデジタル画像信号の符号化方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for encoding digital image signals such as binary image signals for facsimile devices.

〔従来技術〕[Prior art]

従来、フアクシミリ装置は2値画信号をたとえ
ばモデイフアイド・リード符号化(モデイフアイ
ド・リード符号を以下MR符号と称する)してフ
アクシミリ伝送を行なう機能を備えている。
Conventionally, facsimile apparatuses have a function of performing facsimile transmission by, for example, modifying read encoding (the modified read code is hereinafter referred to as MR code) of a binary image signal.

ところでMR符号化は2次元逐次符号化に属す
る境界差分符号化の1例であり、1単位分すなわ
ち1ライン分の符号化の終了した2値画信号(以
下参照ライン画信号と称する)の白情報ビツト、
黒情報ビツトそれぞれのランレングスを演算して
参照ライン画信号の白から黒、黒から白への信号
変化点を検出すると同時に、参照ライン画信号に
つづく1ライン分の2値画信号(以下符号化ライ
ン画信号と称する)の白情報ビツト、黒情報ビツ
トのランレングスを算出して符号化ライン画信号
の信号変化点を検出し、さらに、両画信号の信号
変化点情報にもとづく両画信号の境界差分を演算
して符号化ライン画信号を符号化するものであ
り、つぎに、MR符号化の原理を第1図ないし第
4図とともに説明する。
By the way, MR encoding is an example of boundary differential encoding that belongs to two-dimensional sequential encoding. information bit,
The run length of each black information bit is calculated to detect signal change points from white to black and from black to white in the reference line image signal, and at the same time, one line of binary image signal (hereinafter referred to The run lengths of the white information bits and black information bits of the encoded line image signal (referred to as the encoded line image signal) are calculated to detect the signal change point of the encoded line image signal, and then the both image signal is detected based on the signal change point information of the encoded line image signal. The encoded line image signal is encoded by calculating the boundary difference between the lines.Next, the principle of MR encoding will be explained with reference to FIGS. 1 to 4.

第1図ないし第3図において、a0は符号化ライ
ン画信号の起点画素、a1は符号化ライン画信号の
起点画素a0より右にある最初の変化点画素であ
り、起点画素a0と反対の色である。a2は変化点画
素a1の右にある符号化ライン画信号のつぎの変化
点画素である。
In Figures 1 to 3, a 0 is the starting pixel of the encoded line image signal, a 1 is the first change point pixel to the right of the starting pixel a 0 of the encoded line image signal, and the starting pixel a 0 It is the opposite color. A2 is the next change point pixel of the encoded line image signal to the right of the change point pixel a1 .

b1は参照ライン画信号の最初の変化点画素であ
り、起点画素a0より右に位置し、変化点画素a1
同一色の画素である。b2は変化点画素b1の右にあ
る参照ライン画信号のつぎの変化点画素である。
b1 is the first change point pixel of the reference line image signal, is located to the right of the starting point pixel a0 , and has the same color as the change point pixel a1 . b2 is the next change point pixel of the reference line image signal to the right of the change point pixel b1 .

なお、第1図ないし第3図では画素色の区別
を、斜線、非斜線で示している。
In FIGS. 1 to 3, pixel colors are distinguished by diagonal lines and non-diagonal lines.

そして第1図は起点画素a0に対する各変化点画
素a1,b1,b2の画素色を示し、同図の参照ライン
画信号の〇印の画素は変化点画素a1と異なる画素
色であるため変化点画素ではない。
Figure 1 shows the pixel colors of each change point pixel a 1 , b 1 , b 2 with respect to the starting pixel a 0 , and the pixels marked with ○ in the reference line image signal in the figure have a different pixel color from the change point pixel a 1 . Therefore, it is not a change point pixel.

また、第2図は変化点画素b2が変化点画素a2
左に位置する場合、すなわちパスモード(以下P
と称する)の場合を示す。
In addition, Fig. 2 shows the case where the change point pixel b 2 is located to the left of the change point pixel a 2 , that is, the pass mode (hereinafter referred to as P
).

さらに、第3図は垂直モード(以下Vと称す
る)および水平モード(以下Hと称する)の場合
を示し、変化点画素a1またはb1から変化点画素b1
またはa1までの長さ、すなわち後述の境界差分
a1b1が3以下のときはVであり、前述の境界差分
a1b1が4以上のときはHである。
Further, FIG. 3 shows the case of vertical mode (hereinafter referred to as V) and horizontal mode (hereinafter referred to as H), in which the change point pixel a 1 or b 1 is changed from the change point pixel b 1 to the change point pixel a 1 or b 1 .
or the length up to a 1 , i.e. the boundary difference described below
When a 1 b 1 is 3 or less, it is V, and the boundary difference described above
When a 1 b 1 is 4 or more, it is H.

そしてVの場合は、変化点画素a1が変化点画素
b1の右にあればVR(a1b1)と定義し、逆に変化点
画素a1が変化点画素b1の左にあればVL(a1b1)と
定義している。
In the case of V, the change point pixel a 1 is the change point pixel
If it is on the right of b 1 , it is defined as VR (a 1 b 1 ), and conversely, if the change point pixel a 1 is on the left of change point pixel b 1 , it is defined as VL (a 1 b 1 ).

また、Hの場合は、Hの固有符号(001)と、
起点画素a0から変化点画素a1までのランレングス
a0a1および、変化点画素a1から変化点画素a2まで
のランレングスa1a2のモデイフアイド・ハフマン
符号(以下MH符号と称する)とにより符号を形
成する。
In addition, in the case of H, the unique code of H (001),
Run length from origin pixel a 0 to change point pixel a 1
A code is formed by a 0 a 1 and a modified Huffman code (hereinafter referred to as MH code) of the run length a 1 a 2 from the change point pixel a 1 to the change point pixel a 2 .

さらに、各モードにおける符号化対称画素およ
び符号はそれぞれ第4図に示すようになる。な
お、同図のV(0)は変化点画素a1と変化点画素
b1とが同時に現われる場合を示し、また、M
(a0a1),M(a1a2)はそれぞれMH符号を示す。
Furthermore, the encoded symmetric pixels and codes in each mode are shown in FIG. 4, respectively. In addition, V(0) in the same figure is the change point pixel a 1 and the change point pixel
b shows the case where 1 appears at the same time, and M
(a 0 a 1 ) and M (a 1 a 2 ) each indicate the MH code.

なお、符号化ライン画信号のMR符号化を行な
う場合、たとえば現在行なつている符号化の1つ
前の符号化のときのモードがPであれば、このと
きの変化点画素b2に対応する符号化ライン画信号
の画素を起点画素a0とし、また、前記1つ前の符
号化のときのモードがVであれば、このときの変
化点画素a1を起点画素a0とし、さらに、前記1つ
前の符号化のときのモードがHであれば、このと
きの変化点画素a2を起点画素a0とする。
Note that when performing MR encoding of a coded line image signal, for example, if the mode of the previous encoding to the currently performed encoding is P, the current change point pixel b2 corresponds to The pixel of the encoded line image signal to be encoded is taken as the starting pixel a 0 , and if the mode at the time of the previous encoding is V, the change point pixel a 1 at this time is taken as the starting pixel a 0 , and further , if the mode at the time of the previous encoding is H, the change point pixel a2 at this time is set as the starting point pixel a0 .

したがつて、MR符号化を行なう場合は前述し
たように、参照ライン画信号のランレングス
a0b1,b1b2および符号化ライン画信号のランレン
グスa0a1,a1a2をそれぞれ演算するとともに、該
演算の結果にもとづき、変化点画素a1の位置と変
化点画素b1の位置との差分長からなる境界差分
a1b1を演算する必要がある。
Therefore, when performing MR encoding, the run length of the reference line image signal is
a 0 b 1 , b 1 b 2 and the run lengths a 0 a 1 , a 1 a 2 of the encoded line image signal are respectively calculated, and based on the results of the calculations, the position of the changing point pixel a 1 and the changing point are calculated. Boundary difference consisting of the difference length from the position of pixel b 1
It is necessary to calculate a 1 b 1 .

なお、a0b1は参照ライン画信号の起点画素a0
対応する画素から変化点画素b1までの長さとして
求めるため、ランレングスとみなす。
Note that since a 0 b 1 is determined as the length from the pixel corresponding to the starting pixel a 0 of the reference line image signal to the change point pixel b 1 , it is regarded as a run length.

そして従来のフアクシミリ装置の符号化回路は
第5図に示すように構成され、同図において、1
は参照ラインメモリであり、少なくともMR符号
化の済んだ1ライン分の参照ライン画信号を書き
換え保持する。2はメモリ1から読み出された参
照ライン画信号をラツチする参照ラインシフトレ
ジスタであり、参照ライン画信号のビツト数と同
じ個数のパラレル出力端子を有し、1ライン分の
デジタル信号をパラレル出力する。
The encoding circuit of the conventional facsimile device is constructed as shown in FIG.
is a reference line memory, which rewrites and holds at least one line's worth of reference line image signals that have been MR encoded. 2 is a reference line shift register that latches the reference line image signal read from memory 1, and has the same number of parallel output terminals as the number of bits of the reference line image signal, and outputs one line's worth of digital signals in parallel. do.

3はレジスタ2のレジスタ出力信号が入力され
る参照ライン判別器であり、入力されたレジスタ
出力信号の全ビツトが白情報または黒情報である
か否かを判別し、たとえば黒情報ビツトが論理1
(以下“1”と称する)、白情報ビツトが論理0
(以下“0”と称する)であれば、入力されたレ
ジスタ信号の全ビツトが“1”のときに“1”の
判別信号Bを出力し、入力されたレジスタ出力信
号の全ビツトが“0”のときに“1”の判別信号
Wを出力する。
3 is a reference line discriminator to which the register output signal of register 2 is input; it discriminates whether all bits of the input register output signal are white information or black information; for example, if the black information bit is a logic 1
(hereinafter referred to as “1”), the white information bit is logic 0.
(hereinafter referred to as "0"), when all bits of the input register signal are "1", a discrimination signal B of "1" is output, and when all bits of the input register output signal are "0" ”, a discrimination signal W of “1” is output.

4は符号化ラインメモリであり、少なくとも
MR符号化する1ライン分の符号化ライン画信号
を書き換え保持する。5はメモリ4から読み出さ
れた符号化ライン画信号をラツチする符号化ライ
ンシフトレジスタであり、レジスタ2と同一に構
成されて符号化ライン画信号のビツト数と同じ個
数のパラレル出力端子を有し、1ライン分のデジ
タル信号をパラレル出力する。
4 is an encoding line memory, which contains at least
The encoded line image signal for one line to be MR encoded is rewritten and held. Reference numeral 5 denotes a coding line shift register for latching the coded line picture signal read out from the memory 4, and it has the same structure as register 2 and has the same number of parallel output terminals as the number of bits of the coded line picture signal. and outputs one line of digital signals in parallel.

6はレジスタ6のレジスタ出力信号が入力され
る符号化ライン判別器であり、判別器3と同一に
構成され、入力されたレジスタ出力信号の全ビツ
トが白情報または黒情報であるか否かを判別し、
たとえば黒情報ビツトが“1”、白情報ビツトが
“0”であれば、入力されたデジタル信号の全ビ
ツトが“1”のときに“1”の判別信号B′を出
力し、入力されたデジタル信号の全ビツトが
“0”のときに“1”の判別信号W′を出力する。
Reference numeral 6 denotes a coded line discriminator to which the register output signal of register 6 is input, which has the same configuration as discriminator 3 and determines whether all bits of the input register output signal are white information or black information. determine,
For example, if the black information bit is "1" and the white information bit is "0", when all bits of the input digital signal are "1", a discrimination signal B' of "1" is output, and the input digital signal is When all bits of the digital signal are "0", a discrimination signal W' of "1" is output.

7は種々の演算処理および制御処理を行なう制
御回路であり、参照ラインアドレスバス8を介し
てメモリ1に参照ラインアドレス信号Aを出力す
るとともに、符号化ラインアドレスバス9を介し
てメモリ4に符号化ラインアドレス信号A′を出
力し、かつ、レジスタ2,5のクロツク入力端子
ckにシフトクロツク信号Ka,Ka′をそれぞれ出
力するとともに、レジスタ2,5のシリアル入力
端子diにシリアルビツト信号S,S′をそれぞれ出
力する。
7 is a control circuit that performs various arithmetic processing and control processing, and outputs a reference line address signal A to the memory 1 via the reference line address bus 8, and also outputs a code to the memory 4 via the encoded line address bus 9. outputs line address signal A' and clock input terminal of registers 2 and 5.
Shift clock signals Ka and Ka' are output to ck, respectively, and serial bit signals S and S' are output to serial input terminals di of registers 2 and 5, respectively.

10は制御回路7から出力されるランレングス
演算用のクロツク信号Kbをカウントする参照ラ
インカウンタであり、クロツク信号Kbのカウン
トにより、前述のa0b1,b1b2を演算するととも
に、データバス11を介して制御回路7にa0b1
b1b2の演算値データ信号Dを出力する。12は制
御回路7から出力されるランレングス演算用のク
ロツク信号Kb′をカウントする符号化ラインカウ
ンタであり、クロツク信号Kb′のカウントによ
り、前述のa0a1,a1a2を演算するとともに、デー
タバス13を介して制御回路7にa0a1,a1a2の演
算値データ信号D′を出力する。
10 is a reference line counter that counts the clock signal Kb for run length calculation output from the control circuit 7. By counting the clock signal Kb, it calculates the aforementioned a 0 b 1 and b 1 b 2 , and also calculates the data. a 0 b 1 , to the control circuit 7 via the bus 11
Outputs the calculated value data signal D of b 1 b 2 . 12 is an encoded line counter that counts the clock signal Kb' for run length calculation output from the control circuit 7, and calculates the aforementioned a 0 a 1 and a 1 a 2 by counting the clock signal Kb'. At the same time, the calculated value data signal D' of a 0 a 1 and a 1 a 2 is output to the control circuit 7 via the data bus 13.

なお、制御回路7には、シフトレジスタ2,5
のレジスタ出力信号それぞれの第1ビツトの信
号Q,Q′および、MR符号伝送用のクロツク信号
Kcも入力される。
Note that the control circuit 7 includes shift registers 2 and 5.
Signals Q and Q' of the first bit of each register output signal and the clock signal for MR code transmission
Kc is also input.

そしてレジスタ2,5、判別器3,6、制御回
路7、カウンタ10,12はマイクロコンピユー
タ14により形成されている。
The registers 2 and 5, the discriminators 3 and 6, the control circuit 7, and the counters 10 and 12 are formed by a microcomputer 14.

つぎに、第5図の符号化動作を、第6図および
第7図を参照して説明する。
Next, the encoding operation shown in FIG. 5 will be explained with reference to FIGS. 6 and 7.

なお、参照ライン画信号および符号化ライン画
信号が8ビツトのデジタル信号により構成され、
黒情報ビツトが“1”、白情報ビツトが“0”に
設定されているとする。
Note that the reference line image signal and the encoded line image signal are composed of 8-bit digital signals,
Assume that the black information bit is set to "1" and the white information bit is set to "0".

まず、制御回路7からメモリ1に参照ラインア
ドレス信号Aが出力されてメモリ1からレジスタ
2に参照ライン画信号が読み出され、読み出され
た参照ライン画信号がレジスタ2にラツチされ
る。
First, a reference line address signal A is outputted from the control circuit 7 to the memory 1, a reference line picture signal is read out from the memory 1 to the register 2, and the read reference line picture signal is latched in the register 2.

つぎに、制御回路7からメモリ4に符号化ライ
ンアドレス信号A′が出力されてメモリ4からレ
ジスタ5に符号化ライン画信号が読み出され、読
み出された符号化ライン画信号がレジスタ5にラ
ツチされる。
Next, the encoded line address signal A' is output from the control circuit 7 to the memory 4, the encoded line image signal is read from the memory 4 to the register 5, and the read encoded line image signal is input to the register 5. Latched.

そしてレジスタ2にラツチされた参照ライン画
信号にもとづく1ライン分の画素および、レジス
タ5にラツチされた符号化ライン画信号にもとづ
く1ライン分の画素が、たとえば第6図aに示す
ように配列されているとする。
Then, one line of pixels based on the reference line image signal latched in register 2 and one line of pixels based on the encoded line image signal latched in register 5 are arranged, for example, as shown in FIG. 6a. Suppose that

なお、図中の斜線部、非斜線部は黒画素、白画
素をそれぞれ示し、ビツト,…,はレジスタ
2,5それぞれの第1ないし第8ビツトを示す。
Note that the hatched areas and non-hatched areas in the figure indicate black pixels and white pixels, respectively, and bits, . . . indicate the first to eighth bits of registers 2 and 5, respectively.

つぎに、レジスタ2にラツチされた参照ライン
画信号が、レジスタ2の各パラレル出力端子から
判別器3に入力され、このとき参照ライン画信号
の全ビツトが“1”または“0”でないため、判
別信号B,Wが共に“0”になる。
Next, the reference line picture signal latched in the register 2 is input to the discriminator 3 from each parallel output terminal of the register 2. At this time, since all bits of the reference line picture signal are not "1" or "0", Both discrimination signals B and W become "0".

また、レジスタ5にラツチされた符号化ライン
画信号が、レジスタ5の各パラレル出力端子から
判別器6に入力され、このとき符号化ライン画信
号の全ビツトも“1”または“0”でないため、
判別信号B′,W′も共に“0”になる。
Also, the encoded line image signal latched in the register 5 is input to the discriminator 6 from each parallel output terminal of the register 5, and at this time, since all bits of the encoded line image signal are not "1" or "0", ,
Both discrimination signals B' and W' become "0".

したがつて、制御回路7に“0”の判別信号
B,B′,W,W′が入力され、このとき信号Q,
Q′も制御回路7に入力される。
Therefore, the discrimination signals B, B', W, and W' of "0" are input to the control circuit 7, and at this time, the signals Q,
Q' is also input to the control circuit 7.

そして制御回路7は、1ライン前の符号化ライ
ン画信号の最後の符号化のときの変化点画素a1
ら第6図aの符号化ライン画信号の最初の符号化
の起点画素a0を認識し、さらに、たとえば第6図
aの符号化ライン画信号の最初の符号化の起点画
素a0が白、すなわち“0”であれば、このとき判
別信号W,W′が共に“0”であるため、符号化
ライン画信号に黒の変化点画素a1のビツトが含ま
れていることを認識する。
Then, the control circuit 7 changes the starting point pixel a 0 of the first encoding of the encoded line image signal of FIG . Furthermore, if the first encoding starting pixel a0 of the encoded line image signal in FIG. Therefore, it is recognized that the encoded line image signal includes the bit of the black change point pixel a1 .

つぎに、符号化ライン画信号に変化点画素a1
“1”のビツトが含まれていることを認識すると、
a0b1を演算するために、制御回路7はシリアルビ
ツト信号Sを“1”に保持するとともに、信号Q
が“1”になるまでクロツク信号Kaを出力し、
かつ、クロツク信号Kaの出力タイミングでクロ
ツク信号Kbを出力する。
Next, when it is recognized that the encoded line image signal includes the " 1 " bit of the change point pixel a1,
In order to calculate a 0 b 1 , the control circuit 7 holds the serial bit signal S at "1" and also outputs the signal Q.
Outputs the clock signal Ka until becomes “1”,
Moreover, the clock signal Kb is output at the output timing of the clock signal Ka.

ところでレジスタ2はクロツク信号Kaが入力
される毎に、第8ビツトの信号を第7ビツト
に、第7ビツトの信号を第6ビツトに、…、
第2ビツトの信号を第1ビツトに順次に転送
するとともに、第8ビツトにシリアルビツト信
号Sをラツチする。
By the way, every time the clock signal Ka is input, the register 2 transfers the 8th bit signal to the 7th bit, the 7th bit signal to the 6th bit, etc.
The second bit signal is sequentially transferred to the first bit, and the serial bit signal S is latched to the eighth bit.

そして第6図aの場合は2回目のクロツク信号
Kaが入力されたときに信号Qが“0”から“1”
に変化し、このとき制御回路7は変化点画素b1
検出してクロツク信号Kaの出力を停止する。
In the case of Figure 6a, the second clock signal
When Ka is input, signal Q changes from “0” to “1”
At this time, the control circuit 7 detects the change point pixel b1 and stops outputting the clock signal Ka.

つぎに、a0a1を演算するために、制御回路7は
シリアルビツト信号S′を“1”に保持するととも
に、信号Q′が“1”になるまでクロツク信号
Ka′を出力し、かつ、クロツク信号Ka′の出力タ
イミングでクロツク信号Kb′を出力する。
Next, in order to calculate a 0 a 1 , the control circuit 7 holds the serial bit signal S' at "1" and turns on the clock signal until the signal Q' becomes "1".
Ka' is output, and a clock signal Kb' is output at the output timing of the clock signal Ka'.

ところでレジスタ5はクロツク信号Ka′が入力
される毎に、第8ビツトの信号を第7ビツト
に、第7ビツトの信号を第6ビツトに、…、
第2ビツトの信号を第1ビツトに順次に転送
するとともに、第8ビツトにシリアルビツト信
号S′をラツチする。
By the way, every time the clock signal Ka' is input, the register 5 transfers the 8th bit signal to the 7th bit, the 7th bit signal to the 6th bit, etc.
The second bit signal is sequentially transferred to the first bit, and the serial bit signal S' is latched to the eighth bit.

そして第6図aの場合は4回目のクロツク信号
Ka′が入力されたときに、信号Q′が“0”から
“1”に変化し、このとき制御回路7は変化点画
素a1を検出してクロツク信号Ka′の出力を停止す
る。
In the case of Figure 6a, the fourth clock signal
When Ka' is input, the signal Q' changes from "0" to "1", and at this time the control circuit 7 detects the change point pixel a1 and stops outputting the clock signal Ka'.

なお、信号Q′が“1”になつたときは信号Q
が“1”に保持され、このときレジスタ2,5の
カウンタ出力信号それぞれにもとづく画素配列は
第6図bに示すようになり、このとき同図aの参
照ライン画信号の第3ビツトの変化点画素b1
よび符号化ライン画信号の第5ビツトの変化点
画素a1がそれぞれ第1ビツトに移行する。
Note that when the signal Q' becomes "1", the signal Q
is held at "1", and at this time, the pixel arrangement based on the counter output signals of registers 2 and 5 becomes as shown in FIG. The point pixel b 1 and the change point pixel a 1 of the fifth bit of the encoded line image signal each shift to the first bit.

さらに、信号Q,Q′が共に“1”になつて変
化点画素a1,b1が検出されたときは、カウンタ1
0からデータバスDを介して制御回路7に、a0b1
の演算値データ信号Dが出力されるとともに、カ
ウンタ12からデータバス13を介して制御回路
7にa0a1の演算値データ信号D′が出力される。
Furthermore, when the signals Q and Q' both become "1" and the change point pixels a 1 and b 1 are detected, the counter 1
0 to the control circuit 7 via the data bus D, a 0 b 1
At the same time, the counter 12 outputs the calculated value data signal D' of a 0 a 1 to the control circuit 7 via the data bus 13.

そして制御回路7は両データ信号D,D′の差
分から境界差分a1b1を演算し、この場合変化点画
素b1を検出するまでに2個のクロツク信号Kaが
出力され、かつ変化点画素a1を検出までに4個の
クロツク信号Ka′が出力されたので演算された境
界差分a1b1は〔2〕になる。
Then, the control circuit 7 calculates a boundary difference a 1 b 1 from the difference between both data signals D and D'. In this case, two clock signals Ka are output before detecting the change point pixel b 1 , and the change point Since four clock signals Ka' are output until pixel a1 is detected, the calculated boundary difference a1b1 becomes [2].

また、両データ信号D,D′にもとづき制御回
路7は、変化点画素a1が変化点画素b1の右に位置
することを認識する。
Furthermore, based on both data signals D and D', the control circuit 7 recognizes that the change point pixel a 1 is located to the right of the change point pixel b 1 .

そして変化点画素a1が変化点画素b1の右に位置
する場合、制御回路7はシリアルビツト信号Sを
“1”に保持してクロツク信号Kaを2回出力し、
信号Qが“1”から“0”に変化するか否かによ
つて符号化のモードがPであるか否かを識別す
る。
When the change point pixel a1 is located to the right of the change point pixel b1 , the control circuit 7 holds the serial bit signal S at "1" and outputs the clock signal Ka twice,
It is determined whether the encoding mode is P or not depending on whether the signal Q changes from "1" to "0".

すなわち、変化点画素b1を検出したときの信号
Qが“1”であり、また、変化点画素b2が変化点
画素b1と逆の色であるため、クロツク信号Kaに
よりレジスタ2のレジスタ出力信号を第1ビツト
側に順次に移行して信号Qが“1”から“0”
に変化したときに変化点画素b2が検出される。
That is, since the signal Q when the change point pixel b 1 is detected is "1" and the change point pixel b 2 has the opposite color to the change point pixel b 1 , the clock signal Ka causes the register 2 to be The output signal is sequentially transferred to the first bit side, and the signal Q changes from “1” to “0”.
When the pixel changes to , the change point pixel b2 is detected.

さらに、符号化のモードがPになるのは前述し
たように、変化点画素b2が変化点画素a1の左に位
置するときである。
Furthermore, as described above, the encoding mode becomes P when the change point pixel b2 is located to the left of the change point pixel a1 .

そこで変化点画素a1が変化点画素b1の右に位置
し、かつa1b1が〔2〕のときに、1回目のクロツ
ク信号Kaによりレジスタ2のデジタル信号が1
ビツトだけ第1ビツトに移行して信号Qが
“1”から“0”に変化すると、カウンタ10か
ら制御回路7に出力されるb1b2の演算値データD
は〔1〕になり、この場合変化点画素b2が変化点
画素a1の左に位置することを制御回路7が認識し
て符号化のモードがPであることを識別する。
Therefore, when the change point pixel a 1 is located to the right of the change point pixel b 1 and a 1 b 1 is [2], the digital signal of register 2 changes to 1 by the first clock signal Ka.
When the bit shifts to the first bit and the signal Q changes from "1" to "0", the calculated value data D of b 1 b 2 is output from the counter 10 to the control circuit 7.
becomes [1], and in this case, the control circuit 7 recognizes that the change point pixel b 2 is located to the left of the change point pixel a 1 and identifies that the encoding mode is P.

しかし、第6図aの符号化ライン画信号は、同
図bの画素配列から2ビツトだけ左に移行して
も、最初の画素色は黒に保持され続けて信号Qが
“1”から“0”に変化しないため、制御回路7
は符号化のモードがPでないことを識別する。
However, even if the encoded line image signal in FIG. 6a is shifted 2 bits to the left from the pixel arrangement in FIG. Since it does not change to 0'', the control circuit 7
identifies that the encoding mode is not P.

そして符号化のモードがPでなく、かつa1b1
〔2〕であるため、制御回路7は、符号化ライン
画信号の最初の符号化のモードがVR(2)であるこ
とを認識し、クロツク信号KcのタイミングでVR
(2)のMR符号(00001)をシリアルに出力する。
And the encoding mode is not P, and a 1 b 1 =
[2] Therefore, the control circuit 7 recognizes that the first encoding mode of the encoded line image signal is VR(2), and starts VR at the timing of the clock signal Kc.
Output the MR code (00001) in (2) serially.

なお、図中のFはシリアルに出力されるMR符
号を示す。
Note that F in the figure indicates an MR code that is serially output.

ところで第6図aの場合は、参照ライン画信号
の第6ないし第8ビツト〜に位置する画素お
よび、符号化ライン画信号の第7、第8ビツト
,に位置する画素が白であるため、同図bに
示すように変化点画素a1,b1を検出したときのレ
ジスタ2のレジスタ出力信号にもとづく画素配列
は第4〜第6ビツト〜が白に、レジスタ5の
デジタル信号にもとづく画素配列は第3、第4ビ
ツト,が白になり、この場合前述のように変
化点画素a1,b1を検出したときの両判別信号B,
B′は共に“0”になる。
By the way, in the case of FIG. 6a, since the pixels located at the 6th to 8th bits of the reference line image signal and the pixels located at the 7th and 8th bits of the encoded line image signal are white, As shown in Figure b, the pixel arrangement based on the register output signal of register 2 when change point pixels a 1 and b 1 are detected is such that the 4th to 6th bits are white, and the pixel arrangement is based on the digital signal of register 5. In the array, the 3rd and 4th bits are white, and in this case, as described above, when the change point pixels a 1 and b 1 are detected, both discrimination signals B,
Both B' become "0".

しかし、参照ライン画信号の第3ないし第8ビ
ツト〜に位置する画素および、符号化ライン
画信号の第5ないし第8ビツト〜に位置する
画素が全て黒であれば、変化点画素a1,b1を検出
したときの両判別信号B,B′は“1”になる。
However, if the pixels located at the third to eighth bits of the reference line image signal and the pixels located at the fifth to eighth bits of the encoded line image signal are all black, then the change point pixel a 1 , When b1 is detected, both discrimination signals B and B' become "1".

一方、黒の変化点画素a1,b1を検出して符号化
ライン画信号の最初の符号化を終了したときは、
つぎの符号化の起点画素a0の画素色が黒に、かつ
変化点画素a1,b1の画素色が白になる。
On the other hand, when the black change point pixels a 1 and b 1 are detected and the first encoding of the encoded line image signal is completed,
The pixel color of the starting point pixel a 0 of the next encoding becomes black, and the pixel color of the change point pixels a 1 and b 1 becomes white.

そこで黒の変化点画素a1,b1を検出して符号化
ライン画信号の最初の符号化を終了したときに両
判別信号B,B′が共に“1”であれば、当該符
号化ライン画信号にはつぎの符号化の変化点画素
a1,b1が存在しないことが認識でき、この場合当
該符号化ライン画信号のつぎの符号化ライン画信
号の符号化に移行できる。
Therefore, if both discrimination signals B and B' are "1" when the black change point pixels a 1 and b 1 are detected and the first encoding of the encoded line image signal is completed, the corresponding encoded line The image signal contains the following encoding change point pixels.
It can be recognized that a 1 and b 1 do not exist, and in this case, it is possible to move on to encoding the next encoded line image signal after the encoded line image signal concerned.

したがつて、前述のように第6図aの符号化ラ
イン画信号の最初の符号化を終了してVR(2)の
MR符号を出力すると、制御回路7は両判別信号
B,B′が共に“1”であるか否かを判別する。
Therefore, as mentioned above, the first encoding of the encoded line picture signal in FIG. 6a is completed and the VR(2)
When the MR code is output, the control circuit 7 determines whether both determination signals B and B' are both "1".

そして第6図aの符号化ライン画信号の場合
は、最初の符号化が終了したときに両判別信号
B,B′が共に“0”になるため、制御回路7は
当該符号化ライン画信号につぎの符号化の変化点
画素a1,b1が存在することを認識し、メモリ1,
4に最初の符号化のときと同じ参照ラインアドレ
ス信号Aおよび符号化ラインアドレス信号A′を
それぞれ出力する。
In the case of the encoded line image signal shown in FIG. It is recognized that there are change point pixels a 1 and b 1 for the next encoding, and memory 1,
4, the same reference line address signal A and encoded line address signal A' as in the first encoding are output, respectively.

そこでメモリ1,4からレジスタ2,5に、再
び第6図aの両画信号がそれぞれ読み出され、レ
ジスタ2,5に読み出された両画信号がラツチさ
れてレジスタ2,5のラツチ内容が両画信号に変
更される。
Then, the two image signals shown in FIG. is changed to a dual image signal.

ところでつぎの符号化のときの起点画素a0は、
第6図aの符号化ライン画信号の第5ビツトの
位置の黒の画素であり、また、変化点画素a1,b1
の色は白である。
By the way, the starting pixel a 0 for the next encoding is
This is a black pixel at the 5th bit position of the encoded line image signal in FIG. 6a, and the change point pixels a 1 , b 1
The color of is white.

そこでレジスタ2,5のラツチ内容が変更され
ると、制御回路7は、まず、シリアルビツト信号
S,S′を“0”に保持して最初の符号化のときの
変化点画素a1の検出に要した個数、すなわち4個
のクロツク信号Ka,Ka′をそれぞれ出力し、レ
ジスタ2,5から出力されるデジタル信号の画素
配列を第6図cに示す画素配列にする。
Therefore, when the contents of the latches in registers 2 and 5 are changed, the control circuit 7 first holds the serial bit signals S and S' at "0" and detects the change point pixel a1 during the first encoding. The required number of clock signals Ka, Ka' are outputted, respectively, and the pixel arrangement of the digital signals output from the registers 2 and 5 is made into the pixel arrangement shown in FIG. 6c.

すなわち、最初の符号化のときの変化点画素a1
および、該画素a1に対応する参照ライン画信号の
画素が、レジスタ5,2の第1ビツトに移行す
る画素配列にする。
In other words, the change point pixel a 1 at the time of first encoding
Then, the pixel arrangement is such that the pixel of the reference line image signal corresponding to the pixel a1 is transferred to the first bit of the registers 5 and 2.

つぎに、最初の符号化のときと同様にa0b1を演
算するために、制御回路7はシリアルビツト信号
Sを“0”に保持して信号Qが“1”から“0”
に変化するまで、すなわち変化点画素b1を検出す
るまでクロツク信号Kaを出力し、かつ、クロツ
ク信号Kaの出力タイミングでクロツク信号Kbを
出力する。
Next, in order to calculate a 0 b 1 as in the first encoding, the control circuit 7 holds the serial bit signal S at "0" and changes the signal Q from "1" to "0".
The clock signal Ka is outputted until the change point pixel b1 is detected, and the clock signal Kb is outputted at the output timing of the clock signal Ka.

そして第6図cの場合は、1回目のクロツク信
号Kaが出力されたときに信号Qが“1”から
“0”に変化し、このとき制御回路7はクロツク
信号Kaの出力を停止する。
In the case of FIG. 6c, the signal Q changes from "1" to "0" when the first clock signal Ka is output, and at this time the control circuit 7 stops outputting the clock signal Ka.

つぎに、a0a1を演算するために、制御回路7は
シリアルビツト信号S′を“0”に保持して信号
Q′が“1”から“0”に変化するまで、すなわ
ち変化点画素a1を検出するまでクロツク信号
Ka′を出力し、かつ、クロツク信号Ka′のタイミ
ングでクロツク信号Kb′を出力する。
Next, in order to calculate a 0 a 1 , the control circuit 7 holds the serial bit signal S' at "0" and outputs the signal.
Until Q' changes from "1" to "0", that is, until the change point pixel a
Ka', and also outputs a clock signal Kb' at the timing of the clock signal Ka'.

そして第6図cの場合は、2回目のクロツク信
号Ka′が出力されたときに信号Q′が“1”から
“0”に変化し、このとき制御回路7はクロツク
信号Ka′の出力を停止する。
In the case of FIG. 6c, when the second clock signal Ka' is output, the signal Q' changes from "1" to "0", and at this time, the control circuit 7 outputs the clock signal Ka'. Stop.

そしてクロツク信号Ka′の出力を停止した後、
制御回路7はカウンタ10,12のa0b1,a0a1
演算値データ信号D,D′を取り込んで境界差分
a1b1を演算し、この場合a0b1が〔1〕、a0a1
〔2〕であるため、制御回路7は境界差分a1b1
して〔1〕を演算するとともに、変化点画素a1
変化点画素b1の右に位置することから当該符号化
のモードがVR(1)であることを認識し、クロツク
信号KcのタイミングでVR(1)のMR符号(011)
をシリアルに出力する。
After stopping the output of the clock signal Ka',
The control circuit 7 takes in the calculated value data signals D and D' of a 0 b 1 and a 0 a 1 of the counters 10 and 12 and calculates the boundary difference.
In this case, since a 0 b 1 is [1] and a 0 a 1 is [ 2], the control circuit 7 calculates [1] as the boundary difference a 1 b 1 , and Since the change point pixel a 1 is located to the right of the change point pixel b 1 , it is recognized that the encoding mode is VR (1), and the MR code (011) of VR (1) is recognized at the timing of the clock signal Kc. )
output serially.

さらに、VR(1)のMR符号の出力が終了すると、
制御回路7はさらにつぎの符号化を開始する。
Furthermore, when the output of the MR code of VR(1) is finished,
The control circuit 7 further starts the next encoding.

ところでつぎの符号化のときの起点画素a0は、
第6図aの符号化ライン画信号の2回目の符号化
の変化点画素a1、すなわち前述の符号化の変化点
画素a1である同図cの第3ビツトの白の画素に
なる。
By the way, the starting pixel a 0 for the next encoding is
This becomes the change point pixel a 1 in the second encoding of the encoded line image signal in FIG. 6a, that is, the white pixel of the third bit in FIG. 6c, which is the change point pixel a 1 in the aforementioned encoding.

そこでVR(1)のMR符号の出力が終了すると、
制御回路7は両判別信号W,W′が共に“1”で
あるか否か、すなわち黒の変化点画素a1,b1が存
在するか否かを判別する。
Then, when the output of the MR code of VR(1) is finished,
The control circuit 7 determines whether both discrimination signals W and W' are "1", that is, whether black change point pixels a 1 and b 1 exist.

そしてVR(1)のMR符号の出力が終了したとき
は、レジスタ2,5のカウンタ出力信号にもとづ
く画素配列が第6図dに示すように全て白の画素
配列になつているため、両判別信号W,W′が共
に“1”になり、この場合制御回路7はレジスタ
2,5のカウンタ出力信号に変化点画素a1,b1
存在しないことを認識する。
When the output of the MR code of VR(1) is completed, the pixel array based on the counter output signals of registers 2 and 5 is an all-white pixel array as shown in Figure 6d, so both discriminations are possible. Both the signals W and W' become "1", and in this case, the control circuit 7 recognizes that the change point pixels a 1 and b 1 do not exist in the counter output signals of the registers 2 and 5.

さらに、変化点画素a1,b1が存在しないことを
認識すると、制御回路7は、前記2回目の符号化
のときの変化点画素a1、すなわち第6図aの符号
化ライン画信号の第7ビツトの画素からの残り
の画素数である残数2(=8−6)をカウンタ1
0,11に保持させる。
Furthermore, when it is recognized that the change point pixels a 1 and b 1 do not exist, the control circuit 7 controls the change point pixel a 1 at the time of the second encoding, that is, the encoded line image signal of FIG. 6a. The remaining number 2 (=8-6), which is the number of pixels remaining from the 7th bit pixel, is counted as counter 1.
It is held at 0,11.

すなわち、第6図aの符号化ライン画信号のつ
ぎの符号化ライン画信号の最初の符号化のときの
起点画素a0が第6図aの第7ビツトの画素にな
り、つぎの符号化ライン画信号の最初の符号化の
a0b1,a1a2,M(a0a1)などの演算のために、前
述の残数2をカウンタ10,11に保持させる。
That is, the starting pixel a0 at the time of the first encoding of the encoded line image signal following the encoded line image signal of FIG. 6a becomes the pixel of the 7th bit of FIG. The first encoding of the line image signal
For calculations such as a 0 b 1 , a 1 a 2 , M (a 0 a 1 ), etc., the aforementioned remaining number 2 is held in the counters 10 and 11.

そしてカウンタ10,11に残数2が保持され
ると、制御回路7は第6図aの符号化ライン画信
号の符号化を終了し、制御回路7からメモリ1,
4に、つぎの参照ライン画信号および符号化ライ
ン画信号を読み出すための参照ラインアドレス信
号Aおよび符号化ラインアドレス信号A′がそれ
ぞれ出力され、メモリ1,4からレジスタ2,5
に第6図aのつぎの符号化ライン画信号および符
号化ライン画信号がそれぞれ保持され、第6図a
の符号化ライン画信号の場合と同様の動作によ
り、レジスタ5に保持されたあらたな符号化ライ
ン画信号の符号化が行なわれる。
When the remaining number 2 is held in the counters 10 and 11, the control circuit 7 finishes encoding the encoded line image signal shown in FIG.
4, a reference line address signal A and an encoded line address signal A' for reading out the next reference line image signal and encoded line image signal are output, respectively, and are transferred from the memories 1 and 4 to the registers 2 and 5.
The next encoded line image signal and the encoded line image signal in FIG. 6a are respectively held in FIG.
The newly encoded line image signal held in the register 5 is encoded by the same operation as in the case of the encoded line image signal.

なお、第6図aの符号化ライン画信号のつぎの
符号化ライン画信号の符号化を行なうときは、同
図aの符号化ライン画信号が参照ライン画信号に
なるため、たとえば1ラインの符号化が終了する
毎にメモリ5の符号化ライン画信号がメモリ1に
転送される。
Note that when encoding the next encoded line image signal after the encoded line image signal in FIG. 6a, the encoded line image signal in FIG. The encoded line image signal in the memory 5 is transferred to the memory 1 every time encoding is completed.

そして以降同様の動作のくり返しにより各ライ
ンの符号化ライン画信号が順次にMR符号に符号
化される。
Thereafter, by repeating the same operation, the encoded line image signal of each line is sequentially encoded into an MR code.

ところでメモリ1,4から読み出された参照ラ
イン画信号および符号化ライン画信号が第7図に
示すように画素配列が全く同じ、すなわち内容が
等しければ、a1b1が常に0になるため符号化ライ
ン画信号のMR符号はV(0)の連続になり、ク
ロツク信号KcのタイミングでV(0)のMR符号
(1)が連続して出力される。
By the way, if the reference line image signals and encoded line image signals read out from memories 1 and 4 have exactly the same pixel arrangement, that is, the contents are the same, as shown in FIG. 7, then a 1 b 1 will always be 0. The MR code of the encoded line image signal is a series of V(0), and the MR code of V(0) is generated at the timing of the clock signal Kc.
(1) is output continuously.

そしてV(0)のときはa1b1が最も短くなると
ともにMR符号が1ビツトになるため、符号化を
高速で行なわなければ、クロツク信号Kcのタイ
ミングでV(0)のMR符号を順次に出力できな
くなり、いわゆる伝送遅れが生じることになる。
When V(0), a 1 b 1 becomes the shortest and the MR code becomes 1 bit. Therefore, unless encoding is performed at high speed, the MR code of V(0) is sequentially encoded at the timing of the clock signal Kc. This results in a so-called transmission delay.

すなわち、V(0)のときの符号化に要する時
間を、VR(1)やVL(1)の3ビツトのMR符号のとき
の符号化に要する時間の1/3にしなければ前述の
伝送遅れが生じる。
In other words, unless the time required for encoding when V(0) is reduced to 1/3 of the time required for encoding when using a 3-bit MR code such as VR(1) or VL(1), the aforementioned transmission delay will occur. occurs.

しかし、第5図の場合は符号化を行なうとき
に、まず、参照ライン画信号からa0b1,b1b2を演
算し、つぎに、符号化ライン画信号からa0a1
a1a2を演算し、さらに、a0b1,b1b2の演算結果お
よびa0a1,a1a2の演算結果からa1b1を演算する必
要があり、V(0)の符号化を行なうときにも同
様の演算を行なう必要があるため、符号化に要す
る時間が長くなる。
However, in the case of FIG. 5, when encoding, first calculate a 0 b 1 , b 1 b 2 from the reference line image signal, and then calculate a 0 a 1 , b 1 b 2 from the encoded line image signal.
It is necessary to calculate a 1 a 2 , and then calculate a 1 b 1 from the calculation results of a 0 b 1 , b 1 b 2 and the calculation results of a 0 a 1 , a 1 a 2 , and V(0 ), it is necessary to perform similar calculations, so the time required for encoding becomes longer.

そして第7図のように両画信号の内容が等し
く、符号化によりV(0)のMR符号を連続して
出力するような場合には、符号化を高速で行なえ
ないため、伝送遅れが生じる。
As shown in Figure 7, when the contents of both image signals are the same and the encoding outputs V(0) MR codes continuously, a transmission delay occurs because encoding cannot be performed at high speed. .

〔発明の目的〕[Purpose of the invention]

この発明は、前記の点に留意してなされたもの
であり、符号化の終了したデジタル画像信号と符
号化するデジタル画信号との内容が等しいときの
符号化の速度を速め、高速の符号化が行なえるよ
うにすることを目的とする。
The present invention has been made with the above-mentioned points in mind, and it speeds up the encoding when the contents of the encoded digital image signal and the digital image signal to be encoded are the same, thereby achieving high-speed encoding. The purpose is to make it possible to do so.

〔発明の構成〕[Structure of the invention]

この発明は、1単位分の符号化の終了したデジ
タル画像信号のランレングスおよび、前記符号化
の終了したデジタル画像信号のつぎの1単位分の
符号化するデジタル画像信号のランレングスをそ
れぞれ演算するとともに、該演算結果にもとづき
前記両デジタル画像信号の境界差分を演算して前
記符号化するデジタル画像信号の符号化を行なう
符号化方法において、前記両デジタル画像信号の
内容が等しいときに、前記境界差分を演算するこ
となく、前記両デジタル画像信号のいずれか一方
の変化点の検出時に所定の符号を生成し、前記符
号化するデジタル画像信号の符号化を行なうこと
を特徴とする符号化方法である。
The present invention calculates the run length of a digital image signal that has been encoded for one unit, and the run length of the digital image signal that is to be encoded for the next one unit of the encoded digital image signal. In addition, in the encoding method in which the digital image signal to be encoded is encoded by calculating a boundary difference between the two digital image signals based on the calculation result, when the contents of the two digital image signals are equal, the boundary difference between the two digital image signals is calculated. An encoding method characterized in that the digital image signal to be encoded is encoded by generating a predetermined code when detecting a change point in either of the digital image signals without calculating a difference. be.

〔発明の効果〕〔Effect of the invention〕

したがつて、この発明の符号化方法によると、
符号化の終了したデジタル画像信号と符号化する
デジタル画像信号の内容が等しいときに、両デジ
タル画像信号のいずれか一方の変化点の検出のみ
により、境界差分の演算を行なうことなく、所定
の符号を生成して高速の符号化を行なうことがで
きるものである。
Therefore, according to the encoding method of this invention,
When the contents of the digital image signal that has been encoded and the digital image signal to be encoded are the same, a predetermined code is generated by only detecting the change point of either one of the two digital image signals, without calculating the boundary difference. can be generated and encoded at high speed.

〔実施例〕〔Example〕

つぎに、この発明を、その1実施例を示した第
8図とともに詳細に説明する。
Next, this invention will be explained in detail with reference to FIG. 8 showing one embodiment thereof.

第8図において、第5図と同一記号は同一もし
くは相当するものを示し、異なる点はコンピユー
タ14に、レジスタ2,5の出力信号の全ビツト
が一致したときに“1”、一致しないときに“0”
の検出信号Nを出力する比較器15を設けるとと
もに、制御回路7に“1”の検出信号Nが入力さ
れたときに参照ライン画信号からのa0b1,b1b2
演算を省略する機能を付加した点である。
In FIG. 8, the same symbols as in FIG. 5 indicate the same or equivalent things. “0”
In addition to providing a comparator 15 that outputs a detection signal N of "1", the calculation of a 0 b 1 and b 1 b 2 from the reference line image signal is omitted when the detection signal N of "1" is input to the control circuit 7. This is because we have added a function to do this.

そしてメモリ1からレジスタ2に読み出された
参照ライン画信号および、メモリ4からレジスタ
5に読み出された符号化ライン画信号が、たとえ
ば第6図aの画素配列の場合、すなわち両画信号
の内容が等しくない場合は、比較器15から制御
回路7に“0”の一致検出信号Nが出力され、こ
のとき制御回路7は第5図の場合と同様に動作
し、まずa0b1,b1b2を演算し、つぎにa0a1,a1a2
を演算し、さらに両演算結果からa1b1を演算して
符号化ライン画信号の符号化を行なう。
If the reference line image signal read out from the memory 1 to the register 2 and the encoded line image signal read out from the memory 4 to the register 5 have the pixel arrangement shown in FIG. If the contents are not equal, a coincidence detection signal N of "0" is output from the comparator 15 to the control circuit 7. At this time, the control circuit 7 operates in the same manner as in the case of FIG. 5, and first a 0 b 1 , Calculate b 1 b 2 , then a 0 a 1 , a 1 a 2
is calculated, and a 1 b 1 is calculated from the results of both calculations to encode the encoded line image signal.

一方、メモリ1からレジスタ2に読み出された
参照ライン画信号および、メモリ4からレジスタ
5に読み出された符号化ライン画信号が、たとえ
ば第7図の画素配列の場合、すなわち両画信号の
内容が等しい場合は、比較器15から制御回路7
に“1”の一致検出信号Nが出力され、このとき
制御回路7は両画信号の内容が等しいことを認識
してレジスタ5およびカウンタ12のみを動作制
御し、符号化ライン画信号の変化点の検出にもと
づいて符号化を行なう。
On the other hand, if the reference line image signal read out from memory 1 to register 2 and the encoded line image signal read out from memory 4 to register 5 have the pixel arrangement shown in FIG. If the contents are equal, the comparator 15 to the control circuit 7
A coincidence detection signal N of "1" is output at this time, and at this time, the control circuit 7 recognizes that the contents of both picture signals are equal and controls the operation of only the register 5 and the counter 12, and detects the change point of the encoded line picture signal. Encoding is performed based on the detection of .

すなわち“1”の検出信号Nが入力されると、
第8図の場合は符号化ライン画信号の最初の符号
化の起点画素a0が白であるため、まず、シリアル
ビツト信号S′を“0”にして信号Q′が“0”から
“1”に変化するまでクロツク信号Ka′を出力し、
かつクロツク信号Ka′のタイミングでクロツク信
号Kb′を出力する。
That is, when a detection signal N of "1" is input,
In the case of FIG. 8, since the starting pixel a0 of the first encoding of the encoded line image signal is white, first, the serial bit signal S' is set to "0" and the signal Q' changes from "0" to "1". The clock signal Ka′ is output until it changes to ”, and
Also, it outputs a clock signal Kb' at the timing of the clock signal Ka'.

そして信号Q′が“0”から“1”に変化して
カウンタ12からa0a1の演算値データ信号D′が出
力され、最初の変化点が検出されると、制御回路
7はクロツク信号KcのタイミングでV(0)の
MR符号をシリアルに出力し、最初の符号化を終
了する。
Then, the signal Q' changes from "0" to "1" and the counter 12 outputs the calculated value data signal D' of a 0 a 1. When the first changing point is detected, the control circuit 7 changes the clock signal V(0) at the timing of Kc
Output the MR code serially and finish the first encoding.

つぎに、最初の符号化が終了すると、制御回路
7は、判別信号B′,W′が“1”になつているか
否か、すなわちレジスタ5の出力信号にもとづく
画素配列が全て白または黒になつているか否かを
判別し、判別信号B′,W′が共に“0”であれば、
レジスタ5のレジスタ出力信号に符号化すべき内
容が残つていることを認識し、つぎの符号化を開
始する。
Next, when the first encoding is completed, the control circuit 7 determines whether the discrimination signals B', W' are "1" or not, that is, the pixel array based on the output signal of the register 5 is all white or black. If the discrimination signals B' and W' are both "0",
It is recognized that there remains content to be encoded in the register output signal of register 5, and the next encoding is started.

ところで、つぎの符号化のときは第7図の第2
ビツトの位置の黒画素が起点画素a0になるた
め、シリアルビツト信号S′を“1”にして信号
Q′が“1”から“0”に変化するまでクロツク
信号Ka′を出力し、かつクロツク信号Ka′のタイ
ミングでクロツク信号Kb′を出力する。
By the way, in the next encoding, the second
Since the black pixel at the bit position becomes the starting pixel a0 , the serial bit signal S' is set to "1" and the signal is
Clock signal Ka' is output until Q' changes from "1" to "0", and clock signal Kb' is output at the timing of clock signal Ka'.

そして信号Q′が“1”から“0”に変化して
カウンタ12からa0a1の演算値データ信号D′が出
力され、つぎの変化点が検出されると、制御回路
7は最初の符号化のときと同様にクロツク信号
KcのタイミングでV(0)のMR符号をシリアル
に出力する。
Then, the signal Q' changes from "1" to "0" and the counter 12 outputs the calculated value data signal D' of a 0 a 1. When the next changing point is detected, the control circuit 7 Clock signal as in encoding
The MR code of V(0) is output serially at the timing of Kc.

以降、判別信号B′またはW′が“1”になるま
で前述と同様の動作をくり返して符号化ライン画
信号の符号化を終了する。
Thereafter, the same operation as described above is repeated until the discrimination signal B' or W' becomes "1", and the encoding of the encoded line image signal is completed.

したがつて、前記実施例によると、両画信号の
内容が等しいときには、レジスタ5およびカウン
タ12のみを動作制御し、符号化ライン画信号の
変化点の検出にもとづき、境界差分の演算を行う
ことなく、符号化ライン画信号の符号化を行なう
ことができ、符号化の速度を著しく速めて第7図
のようにV(0)のMR符号が連続するときにも
伝送遅れなく符号化を行なうことができる。
Therefore, according to the embodiment, when the contents of both picture signals are equal, only the register 5 and the counter 12 are controlled, and the boundary difference is calculated based on the detection of the change point of the encoded line picture signal. The encoded line image signal can be encoded without any transmission delay, and the encoding speed is significantly increased, so that even when V(0) MR codes are consecutive as shown in Fig. 7, encoding can be performed without transmission delay. be able to.

また、従来の回路に比較器14を付加するとと
もに、制御回路7の内容を少し変更するだけでよ
いため、簡単な回路の付加により実現することが
できる。
Further, since it is only necessary to add the comparator 14 to the conventional circuit and to slightly change the contents of the control circuit 7, the present invention can be realized by adding a simple circuit.

なお、前記実施例ではレジスタ5およびカウン
タ12のみを動作制御し、符号化ライン画信号の
変化点の検出のみにもとづいて符号化を行なうよ
うにしたが、逆にレジスタ2およびカウンタ10
のみを動作制御し、参照ライン画信号の変化点の
検出のみにもとづいて符号化を行なつても同様の
効果を得ることができる。
In the above embodiment, only the register 5 and the counter 12 are operated and the encoding is performed based only on the detection of the change point of the encoded line image signal.
The same effect can be obtained by controlling the operation of only the reference line image signal and performing encoding based only on detecting the change point of the reference line image signal.

また、前記実施例ではフアクシミリ装置のMR
符号化に適用たが種々のデジタル画信号のMR符
号化以外の境界差分符号化に適用することができ
るのは勿論である。
In addition, in the above embodiment, the MR of the facsimile machine
Although the present invention is applied to encoding, it is of course applicable to boundary differential encoding other than MR encoding of various digital image signals.

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

第1図ないし第4図はそれぞれMR符号化の原
理説明図、第5図は従来の符号化回路のブロツク
図、第6図以下の図面はこの発明の符号化方法の
1実施例を示し、第6図a〜d、第7図はそれぞ
れ画素配列の説明図、第8図は符号化回路のブロ
ツク図である。 1,4……参照ラインメモリ、符号化ラインメ
モリ、2,5……参照ラインシフトレジスタ、符
号化ラインシフトレジスタ、3,6……参照ライ
ン判別器、符号化ライン判別器、7……制御回
路、10,12……参照ラインカウンタ、符号化
ラインカウンタ、15……比較器。
1 to 4 are diagrams explaining the principle of MR encoding, FIG. 5 is a block diagram of a conventional encoding circuit, and FIG. 6 and subsequent drawings show an embodiment of the encoding method of the present invention. 6A to 6D and FIG. 7 are explanatory diagrams of the pixel arrangement, respectively, and FIG. 8 is a block diagram of the encoding circuit. 1, 4... Reference line memory, encoded line memory, 2, 5... Reference line shift register, encoded line shift register, 3, 6... Reference line discriminator, encoded line discriminator, 7... Control Circuits 10, 12... Reference line counter, encoded line counter, 15... Comparator.

Claims (1)

【特許請求の範囲】[Claims] 1 1単位分の符号化の終了したデジタル画信号
のランレングスおよび、前記符号化の終了したデ
ジタル画信号のつぎの1単位分のデジタル画信号
のランレングスをそれぞれ演算するとともに、該
演算結果にもとづき前記両デジタル画信号の境界
差分を演算して前記デジタル画信号の符号化を行
なう符号化方法において、前記両デジタル画信号
の内容が等しいときに、前記境界差分を演算する
ことなく、前記両デジタル画信号のいずれか一方
の変化点の検出時に所定の符号を生成し、前記デ
ジタル画信号の符号化を行なうことを特徴とする
符号化方法。
1 Calculate the run length of the digital image signal for which one unit of encoding has been completed and the run length of the digital image signal for one unit after the encoded digital image signal, and calculate the run length of the digital image signal for one unit of the encoded digital image signal, and Originally, in an encoding method in which the digital image signal is encoded by calculating the boundary difference between the two digital image signals, when the contents of the two digital image signals are equal, the boundary difference between the two digital image signals is calculated, and the boundary difference between the two digital image signals is calculated. An encoding method comprising: generating a predetermined code when detecting a change point in either one of the digital image signals, and encoding the digital image signals.
JP59031001A 1984-02-20 1984-02-20 Encoding method Granted JPS60174577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59031001A JPS60174577A (en) 1984-02-20 1984-02-20 Encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59031001A JPS60174577A (en) 1984-02-20 1984-02-20 Encoding method

Publications (2)

Publication Number Publication Date
JPS60174577A JPS60174577A (en) 1985-09-07
JPH0125266B2 true JPH0125266B2 (en) 1989-05-17

Family

ID=12319333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59031001A Granted JPS60174577A (en) 1984-02-20 1984-02-20 Encoding method

Country Status (1)

Country Link
JP (1) JPS60174577A (en)

Also Published As

Publication number Publication date
JPS60174577A (en) 1985-09-07

Similar Documents

Publication Publication Date Title
US4040093A (en) System for coding information change picture elements in facsimile signal
JPS5816667B2 (en) Interline encoding method for facsimile signals
US4097903A (en) Facsimile signal coding system
US4090222A (en) Facsimile signal reception system
US4955061A (en) Method and apparatus for processing an image signal
JPH0125266B2 (en)
JP2877236B2 (en) Encoding device
JPS6341271B2 (en)
JPH0149072B2 (en)
US5276526A (en) Decoding device for two-dimensional codes by using first or second reference line signals
JPS6339187B2 (en)
JPS5957576A (en) Picture data compressing circuit
JPH04270569A (en) Data compression system for picture processor
JPS58225779A (en) Decoding system for picture signal
JPS61173582A (en) Change point detecting circuit
JPS5829918B2 (en) Encoding method for facsimile equipment
JPH06225166A (en) Coding and decoding device
JPS61107875A (en) Coding system
SU1084749A1 (en) Device for tolerance checking of pulse sequences
SU769576A1 (en) Information registering device
JPS61234664A (en) Decoding circuit
JPS61284178A (en) One-dimensional code decoding circuit
JPS5941632B2 (en) 2-dimensional sequential encoding method
JPS61114655A (en) Decoder of picture data
JPS63275276A (en) System and device for coding digital picture signal