JP2721337B2 - Image signal encoding device - Google Patents
Image signal encoding deviceInfo
- Publication number
- JP2721337B2 JP2721337B2 JP17081085A JP17081085A JP2721337B2 JP 2721337 B2 JP2721337 B2 JP 2721337B2 JP 17081085 A JP17081085 A JP 17081085A JP 17081085 A JP17081085 A JP 17081085A JP 2721337 B2 JP2721337 B2 JP 2721337B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- line
- mode
- encoding
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 230000008859 change Effects 0.000 claims description 81
- 230000015654 memory Effects 0.000 claims description 42
- 238000012544 monitoring process Methods 0.000 claims description 6
- 238000000034 method Methods 0.000 description 54
- 238000001514 detection method Methods 0.000 description 40
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 6
- 230000007704 transition Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- OROGSEYTTFOCAN-DNJOTXNNSA-N codeine Chemical compound C([C@H]1[C@H](N(CC[C@@]112)C)C3)=C[C@H](O)[C@@H]1OC1=C2C3=CC=C1OC OROGSEYTTFOCAN-DNJOTXNNSA-N 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012856 packing Methods 0.000 description 2
- FLDSMVTWEZKONL-AWEZNQCLSA-N 5,5-dimethyl-N-[(3S)-5-methyl-4-oxo-2,3-dihydro-1,5-benzoxazepin-3-yl]-1,4,7,8-tetrahydrooxepino[4,5-c]pyrazole-3-carboxamide Chemical compound CC1(CC2=C(NN=C2C(=O)N[C@@H]2C(N(C3=C(OC2)C=CC=C3)C)=O)CCO1)C FLDSMVTWEZKONL-AWEZNQCLSA-N 0.000 description 1
- 229910001374 Invar Inorganic materials 0.000 description 1
- 244000309464 bull Species 0.000 description 1
- 229960004126 codeine Drugs 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009963 fulling Methods 0.000 description 1
- OROGSEYTTFOCAN-UHFFFAOYSA-N hydrocodone Natural products C1C(N(CCC234)C)C2C=CC(O)C3OC2=C4C1=CC=C2OC OROGSEYTTFOCAN-UHFFFAOYSA-N 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000005065 mining Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
Description
【発明の詳細な説明】
〔技術分野〕
本発明はフアクシミリや画像電子フアイル等に用いら
れる画像信号の符号化装置に関するものである。
〔従来の技術〕
従来のフアクシミリ等の画像伝送装置や近年の光デイ
スクや磁気デイスク等を用いた画像フアイル装置等にお
いては、画像信号を符号化して取扱うことにより、デー
タ量を減少せしめ伝送或いは蓄積動作の高速化、効率化
を計っている。
例えば、フアクシミリの分野においては一般に一次元
符号化としてモデイフアイドハフマン(MH)法,二次元
符号化としてモデイフアイドリード(MR)法,高能率二
次元符号化としてモデイフアイドモデイフアイドリード
(MMR)法が用いられている。
これらMH法,MR法及びMMR法の相互の関係であるがMMR
法はMH法に極めて近い方法を包含するし、又MR法を一部
修飾したものがMMR法である。
また、符号化の対象とする画像及び符号化法の規則等
はひとことでいえばCCITT(国際電信電話諮問委員会)
の勧告するT4やT6に準拠するものである。
更に上述の符号化法はMMR法については昭和60年3月2
2日の官報(号外第29号)52ページ以下のフアクシミリ
グループ4型装置の推奨通信方式(郵政一九七)の中で
高能率二次元符号化方式として告示されており、MH法は
一次元符号化方式として、又MR法は二次元符号化方式と
して共に昭和56年郵政省告示第1013号に告示されてい
る。
前述のMH,MR,MMRの如くの3通りの符号化は符号化さ
れた画像信号を取扱う後段の処理装置に適用させて選択
される。そして、後段の処理形態が変更となった場合に
は、それに適する様な回路変更を必要とし、効率が悪か
った。しかしながら、前述した様に3通りの符号化には
関連性があり、この関連性を用いて共通の符号化装置に
より3通りの符号化が達成されることが望ましい。
〔目的〕
本発明は以上の点に鑑みてなされたもので、前述した
モデイフアイド・ハフマン符号化、モデイフアイド・リ
ード符号化及びモデイフアイド・モデイフアイド・リー
ド符号化の3通りの符号化モードによる画像信号の符号
化を実行可能とすることを目的とし、詳しくは、モデイ
フアイド・ハフマン符号化、モデイフアイド・リード符
号化又はモデイフアイド・モデイフアイド・リード符号
化により画像信号を符号化する画像信号の符号化装置に
おいて、符号化ラインの画像信号を入力する入力手段
と、先の符号化動作により符号化済の画像信号を記憶
し、参照ラインの画像信号として出力するバツフア手段
と、前記入力手段より入力される符号化ラインの画像信
号の変化点を検出する検出手段と、前記検出手段により
検出された変化点間の画素数を計数する計数手段と、前
記計数手段の計数結果に基づいて水平モードの画像コー
ドに含まれるランレングスコードを発生する第1発生手
段と、前記入力手段により入力される符号化ラインの画
像信号と前記バツフア手段より出力される参照ラインの
画像信号との変化点に関する相関関係を監視する監視手
段と、前記監視手段の監視結果に基づいて、パスモード
及び垂直モードの画像コードを発生する第2発生手段
と、前記第1発生手段から発生された水平モードのラン
レングスコード又は第2発生手段から発生されたパスモ
ード又は垂直モードの画像コードを出力する出力手段と
を有し、更に、実行すべき符号化モードがモデイフアイ
ド・リード符号化又はモデイフアイド・モデイフアイド
・リード符号化の場合には、前記第1発生手段及び前記
第2発生手段の両方を用いて符号化動作を実行せしめ、
一方、実行すべき符号化モードがモデイフアイド・ハフ
マン符号化の場合には、前記第1発生手段を用いて符号
化動作せしめる符号化制御手段と、一画面の終了を示す
RTCコード及び各ラインの区切りを示すライン区切りコ
ードをモデイフアイド・ハフマン符号化、モデイフアイ
ド・リード符号化及びモデイフアイド・モデイフアイド
・リード符号化の夫々に応じた複数通りの形式で発生可
能なメモリテーブルを備え、符号化モードに応じた形式
でRTCコード及びライン区切りコードを発生するコード
発生手段とを有する画像信号の符号化装置を提供するこ
とを目的とする。
〔実施例〕
本発明を適用した符号化回路の構成例を第1図及び第
2図の回路ブロツク図で示す。次いで該実施例の動作を
前記第1図、第2図と第3図〜第5図等を用いて説明す
る。
第1図に於いて121で示す信号は画像スキヤナや画像
フアイル、コンピユータ等の外部機器から供給される符
号化すべき画像信号であり、“0"又は“1"(例えば“0"
=白、“1"=黒画素)の2値信号のシリアル・データと
して与えられる。又、134で示す信号は画像信号121の入
力に同期して外部機器より供給されるクロツクであり、
1画素当り1クロツクとなっている。次に136で示す記
号は同期信号であり、画像信号121の水平区間や垂直区
間等を示す数種の同期信号を示している。
即ち、本実施例では、符号化すべき画像信号121はレ
ーザ・プリンタ等に与えられる信号と同様、各主走査毎
のシリアルな画像信号である走査型画像信号として与え
られるものとする。
次に101はコーデイング・ライン(符号化すべき画像
の主走査方向の1本分)上の実画像の最終画素の次の画
素(=仮想画素)が必ず変化点となるように、強制的に
変化点をつくり出す回路であり、「仮想変化点発生回路
A」と称する。但し、上記「仮想変化点発生回路A」は
コーデイング・ライン上の実画像には何ら変化を与えな
い構造となっている。
102はライン・バツフア・メモリA、103はライン・バ
ツフア・メモリBであり、各々独立に書込み又は読出し
動作が可能なRAM(ランダム・アクセス・メモリ)であ
り、各々独立に書込み又は読出し動作が可能なRAM(ラ
ンダム・アクセス・メモリ)であり、各々コーデイング
・ライン1本分の2値画像を記憶できる容量(主走査画
素数)を有する。
又、ライン・バツフア・メモリA102とライン・バツフ
ア・メモリB103は、片方が書込み動作を実行している
時、もう一方は読出し動作を実行する様、制御されてい
る。即ち、これら2つのライン・バツフア・メモリに依
り、一組のダブル・バツフア・メモリを構成している。
111はメモリ・アドレス・カウンタであり、コーデイ
ング・ラインの画素数に対応するクロツク134をカウン
トするカウンタである。該カウンタ111のカウント値
は、メモリ・アドレス信号135として、ライン・バツフ
ア・メモリA102及びライン・バツフア・メモリB103の両
方に共通に与えられる。又、メモリ・アドレス・カウン
タ111はコーデイング・ライン1本毎に初期値に戻り、
カウント動作を繰返す。従って、ライン・バツフア・メ
モリに書込まれた各ラインの2値画像は、新たに入力す
るラインの画像信号121の画素位置に対応づけられて各
画素毎に読出される。
104はセレクタであり、ライン・バツフア・メモリA10
2又はライン・バツフア・メモリB103のうち、どちらか
読出し動作を実行している方から読出しデータを得るべ
くセレクト信号901により選択動作する回路である。こ
のセレクタ104により選択的に得られたデータはリフア
レンス・ライン125として、即ち、コーデイング・ライ
ンの参照用データ(画像)として、次段に与えられる。
105はリフアレンス・ライン上の実画像の最終画素と
その次の画素(仮想画素)が必ず変化点となる様に強制
的に変化点をつくり出す回路で「仮想変化点発生回路
B」と称する。
但し、仮想変化点発生回路B105はリフアレンス・ライ
ン上の実画像には何ら変化を与えない構造となってい
る。
106はリフアレンス・ライン上の実画像及び仮想画素
上の変化点となる画素を検出する回路であり、「変化点
検出回路A」と称する。
又、107はコーデイング・ライン上の実画像及び仮想
画素上の変化点を検出する回路で「変化点検出回路B」
と称する。
108はAレジスタ、109はBレジスタ、110はCレジス
タであり、各々、4ビツトのシフト・レジスタである
又、126で示す信号はリフアレンス・ライン上の実画
像及び仮想画素を表わす信号であり、又127で示す信号
はリフアレンス・ライン上の実画像及び仮想画素上の変
化点信号である。128で示す信号はコーデイング・ライ
ン上の実画像及び仮想画素上の変化点信号である。
112はクロツク134及び同期信号136を入力とし、これ
らに基づいて、各回路ブロツクの動作タイミングをとる
ための各種タイミング信号137を形成するタイミング回
路である。
ここまでに説明した第1図の回路ブロツクの動作を、
第4図示の如き実際の画像(符号化すべき画像)が与え
られ、これをMMR法により符号化する場合を例にして説
明する。
まず、ここで例示する第4図の画像は、説明を簡易に
する為に、1ラインが32画素(主走査画素数=32画素)
から成り、かつ合計2ライン(副走査線数=2本)によ
り1ページを構成する極めて簡単な画像とした。
第4図の402で示す第1ラインを実際に符号化するに
は、第5図に示すように第4図の401で示す仮想ライン
をリフアレンス・ラインとし、第1ライン402をコーデ
イング・ラインとする。
又、第4図の403で示す第2ラインを符号化する時に
は第6図に示すように、第4図の第1ライン402をリフ
アレンス・ラインとし、第2ライン403をコーデイング
・ラインとする。
以下、仮に1ページが3ライン以上の主走査からな
り、第3ライン、第4ライン、……と続く場合でも、上
記の如く、リフアレンス・ライン及びコーデイング・ラ
インの関係を順次繰下げていけば副走査線数に拘らず、
符号化を続行できる。
第3図は第4図に例示する画像が第1図示の回路ブロ
ツクに与えられる時のタイミング・チヤートである。
第3図において136−1は垂直同期信号で副走査方向
の画像の区間、即ち、1ページの画像の入力期間を示
す。136−2は水平同期信号で主走査方向の画像区間、
即ち、1ラインの画像の入力期間を示す。134は画像ク
ロツク、121は第4図に例示した符号化すべき画像の信
号波形としての表現であり、黒画素=“1"=“H"、白画
素=“0"=“L"として描かれている。即ち、第3図示の
画像のうち、区間T1の画像が、符号化すべき第4図示の
第1ライン402の実画像であり、区間T2の画像が符号化
すべき第4図示の第2ライン403の実画像である。
又、第4図示の仮想ライン401は実際の紙面等に印刷
されるような画像に於いては、紙面の上方部のいわば余
白、或いは紙面外に相当するもので、MMR法に於いて
は、全白(1ラインの画素が全て白画素)ラインと仮想
するよう規定されている。従って、前記第4図示の仮想
ライン401は第3図示の画像信号121上には現れていな
い。
第5図は第1ライン402の符号化動作を示すタイミン
グチヤートであり、リフアレンス・ラインとなる仮想ラ
イン401とコーデイング・ラインである第1ライン402と
の関係を示す。
まず、第5図示の第1ライン402の画像が仮想変化点
発生回路A101に与えられると第3図の122(コーデイン
グ・ライン)に示す様に、仮想変化点(仮想画素)302
が付加された画像となる。即ち区間T1において実画像は
不変であるが図でも示すように第1ラインの最終画素30
1とその次の画素302は相反する色(白→黒)となってい
る。又仮想変化点(仮想画素)302に続く仮想の数画素
は後述する理由により変化点とならないように仮想変化
点(仮想画素)302と同じ色の画素に保持される。
さて、第3図におけるコーデイング・ライン信号122
は第1図に見るように符号化すべき画像信号として、変
化点検出回路B107に入力されるとともに、ライン・バツ
フア・メモリA102及び、ライン・バツフア・メモリB103
へ書込用データとして与えられる。
一方、アドレス・カウンタ111は第3図の区間T1のみ
画像クロツク134をカウントし、第3図の135に示すよう
なカウント値を出力し、該出力はメモリ・アドレス135
として、ライン・バツフア・メモリA102及びライン・バ
ツフア・メモリB103へ共通に与えられる。
更に、この時図示はしていないがライン・バツフアメ
モリA102は書込みモードに、又ラインバツフア・メモリ
B103は読出しモードに制御されているとすると、コーデ
イング・ライン122のデータはライン・バツフア・メモ
リA102内のメモリ・アドレス135で指示された番地に順
次・書込まれる。又、ライン・バツフア・メモリB103
は、この時、前述したように、読出しモードにあるか
ら、初期状態で全て“0"を書込んでおけば、メモリ・ア
ドレス135で指示された番地から“0"を順次読出し、第
1図の124で示す読出し信号Bとなり、セレクタ104によ
り選択されて、リフアレンス・ライン125のデータとな
る。
第3図の125は該リフアレンス・ラインのデータ信号
波形を示しており、区間T1中“0"となっている。これ
は、即ち、第5図に示した如く仮想ライン401を“全
白”のリフアレンス・ラインとして回路上に得た事であ
る。
コーデイング・ライン122は前述の様に変化点検出回
路B107にも与えられる。該検出回路B107は与えられたデ
ータ入力の内の変化点(画素)を検出し、該変化点画素
を“1"として出力し、変化点とならない画素をすべて
“0"として出力する。第1図の128は該出力である。
仮想変化点発生回路B105及び変化点検出回路A106はそ
の名称の通り、前述したコーデイング・ライン122に対
して動作する同一名称の回路101及び107の動作をライン
バツフアメモリから読出されたリフアレンス・ライン12
5に対して実行する。
結局リフアレンスライン125の信号は仮想変化点発生
回路B105により第3図の126の如く、最終画素の次に最
終画素と異なる色の仮想画素の付加された信号に変換さ
れる。
変化点検出回路B107から発生される信号128はクロツ
ク134によりAレジスタ108に順次シフト・インされる。
Aレジスタ108の記号A1〜A4は各々該レジスタのパラレ
ルな4ビツト出力を示しており、常に出力されている。
該Aレジスタ108の出力信号波形を第3図の129−1〜12
9−4に示す。従って、コーデイングラインの注目画素
がAレジスタ108の出力A4にシフトされたとするとその
注目画素に続く3画素分のデータ中に変化点が有るか否
かを出力129により判断できる。
同様に第3図の130−1〜130−4及び第3図の131−
1〜131−4にBレジスタ109及びCレジスタ110の出力
信号波形を示す。即ち、Bレジスタ109及びCレジスタ1
10には、Aレジスタ108に格納されている各画素位置に
対応したリフアレンスラインの画素の変化点信号及び色
信号が格納されている。従って、Aレジスタ108の出力A
4をコーデイングラインの注目画素とすると、Bレジス
タ109及びCレジスタ110により、リフアレンスラインに
おける該注目画素位置に続く3画素内に変化点が有るか
否か及びその色を判断できる。
第2ラインを符号化する為に第4図の第2ライン403
が画像信号121として入力される時には、ラインバツフ
ア・メモリB103が書込みモードとなり、ライン・バツフ
ア・メモリA102が、読出しモードとなる。即ち、第1ラ
イン402のコーデイング動作中にラインバツフアメモリB
103に書込まれていた第1ライン402がリフアレンスライ
ンとなり、新たに入力する第2ライン403がコーデイン
グとなる。そして、第1ライン目に於ける動作と同様の
動作が実行される。
第2ライン403に於ける各信号波形を第3図の区間T2
に示す。この際、リフアレンス・ライン125の区間T2の
データは区間T1中にライン・バツフア・メモリA102に書
込んでおいた第1ライン402のデータを読出したもので
ある。
以上が第1図示の回路ブロツクの具体的動作である。
次に、第2図示の回路ブロツクを説明する。
201は記号検出回路であって、図示の如く、第1図示
の回路ブロツクのA,B,Cレジスタより信号129,130,131を
得て、MMR符号化法に於いて、必要な記号a0,a1,a2及
びb1,b2等の記号を検出する為の回路である。これら記
号の定義は以下の如くである。
a0=符号化の起点となるコーデイング・ライン上の画
素。
a1=a0より右にあるコーデイング・ライン上の最初の変
化点(画素)。
a2=a1より右にあるコーデイング・ライン上の最初の変
化点(画素)。
b1=a0より右にあるリフアレンス・ライン上の変化点
(画素)でa0と反対色で且つ、最初の変化点。
b2=b1より右にあるリフアレンス・ライン上の最初の変
化点(画素)。
但し、ここで言う右とは、例えば第4図示の各画素の
左と右の関係と同じである。
次に、202はB′レジスタであり、第2図の222で示す
変化点信号b1を入力データとして、クロツク134によっ
て順次シフト・インされる、3ビツトのシフト・レジス
タである。従って、記号検出回路201で検出された変化
点信号b1が続く3クロツク期間に渡って保持され、注目
画素に対する変化点信号b1の位置が判断できる。
203はランレングス・カウンタであり、通常、画素a0
から画素a1までの画素数(ランレングス)又は画素a1か
ら画素a2までの画素数をカウントする2進カウンタで、
12ビツトの出力をもち、最大は10進数の2559までカウン
トできるカウンタである。
第2図の228で示す信号はランレングス・カウンタ203
のカウント値出力のうち下位6ビツトである。又、第2
図の227で示す信号はランレングス・カウンタ203のカウ
ント値出力のうち上位6ビツトである。
204はROMテーブルAであり、主として、バスモード
(Pモード)のコード、及び垂直モード(Vモード)の
コードと各々のコードのビツト数(コード長)とを記憶
しており、与えられた入力に応じて該コード及びコード
長を並列に出力できるROM(リードオンリメモリ)であ
る。
又、205はROMテーブルBであり、主として、水平モー
ド(Hモード)のメイク・アツプ・コード及びコード長
を記憶しているROMであり、信号227をアドレスとして出
力すべきコード及びコード長が選択出力される。
206はROMテーブルCであり、主としてHモードのター
ミネイテイング・コード及びコード長を記憶しているRO
Mであり、信号228をアドレスとして出力すべきコード及
びコード長が選択出力される。
207及び208は前記各ROMより出力されたメイク・アツ
プ・コード及びコード長を一時記憶するラツチ回路であ
る。また、209は前記ROMより出力されたターミネイテイ
ング・コード及びコード長を一時記憶するラツチ回路で
ある。
210はラツチ回路C209内のコード及びコード長を順次
受取り、一時記憶する為のバツフアメモリである。
ここで、MMR法の符号化規則をもう少し、述べてお
く。この符号化法において前述した様に定義された記号
a0,a1,a2はコーデイング・ライン上に有り、又、同じ
く記号b1及びb2はリフアレンス・ライン上に有る。そし
て、これらの各記号a0,a1,a2のグループとb1,b2のグ
ループの相対位置(距離)により、符号化モードを次の
3つのモードのうちから一義的に選択し、符号化するよ
う規定されている。
(1)パスモード(Pモード)
b2がa1より左にある時(発生コードは1種のみ)
(2)垂直モード(Vモード)
|a1b1|≦3の時(発生コードは距離ごとに違う計7種
の発生コード)
(3)水平モード(Hモード)
上記(1)(2)以外の時(ラン・レングス・コード表
に従う)
形式:H+M(a0a1)+M(a1a2)
ここで、HはHモードを示すコード、M(a0a1)は白
又は黒の|a0a1|のランレングス・コード、M(a1a2)
は黒又は白の|a1a2|のランレングス・コードである。
但し、上記(1),(2),(3)のうち2モード以上
が同時に満たされた場合には、
(1)Pモード>(2)Vモード>(3)Hモード
の順位で優先される。
この優先出力動作を制御するのが、コード決定回路212
であり、このコード決定回路212によりラツチを選択す
る。
次に、第4図の第1ラインの画像402を符号化する動
作を説明する。
まず、本実施例では、第3図の320に示す時刻のt0を
符号化開始時刻とする。
即ち、時刻t0はリフアレンス・ライン及びコーデイン
グ・ラインの先頭画素が第2図のCレジスタ110のC4出
力又はAレジスタ108のA4出力に夫々現われる時刻であ
る。即ち、時刻t0では、Cレジスタ110、Bレジスタ109
及びAレジスタ108の各出力はリフアレンス・ライン及
びコーデイング・ラインの先頭画素とその先頭画素に続
く3画素の状態を並列出力している。又、a0は第3図の
221のA0(a0)に示すように初期値“0"(白画素=仮
想)に設定されている。
ランレング・カウンタ203は初期値の0から時刻t0以
降画像クロツク134のカウントを開始する。
カウンタ203の各時刻におけるカウント値出力を第3
図の322に示す。
時刻t0に於いては、第3図の信号129−4に“1"が立
っていない、即ち、第2図のAシフト・レジスタ108のA
4出力に変化点が無い、又同様にBシフト・レジスタ109
のB4出力にも変化点が無い。従って、コードを発生する
要因が無いので、ランレングス・カウンタのカウント値
を1進めるだけで、次の時刻t1へ進むが、時刻t1でも時
刻t0の状態と同様である。
次に時刻t2に進むと、第3図の信号129−4に“1"が
立っている。これは即ち、第2図のAレジスタ108のA4
出力が1となり、コーデイングラインのその位置に変化
点が存在する事を示している。この変化点は今の起点a0
より右(時刻では後の時刻に相当)で最初の変化点であ
るから、第2図の記号検出回路201により、記号a1であ
ると判定される。尚、この記号a1の検出状態をFa1とし
て記憶する。
この時刻t2に於いて、第3図の130−1〜130−4を見
ると、いずれにも“1"が立っていない。この事は時刻t2
から3時刻以内には変化点b1が無い事を意味する。又、
記号検出回路201はb1を検出した時にはそのb1をB′シ
フト・レジスタ202にシフト・インし3時刻の間、消滅
しないようにしている。又、記号検出回路201はb1が既
に検出された事を記憶する回路も持っている。
これらにより、本ケースでは変化点画素a1の左右3画
素以内に変化点画素b1が無い事及び起点a0からa1までの
間にもb1が無いこと(従ってb2も無い)が判定出来る。
従って、時刻t2でa1が検出されたが、Pモード(b2が既
に検出されていなければならない)及びVモード(|a1
b1|3が条件)の条件を満さない事が決定し、従って
Hモードとなる。
この時、ランレングス・カウンタ203の値は第3図322
にも示すようにa0からa1の画素数を示し、“2"である。
又ランレングスの色は初期セツトした“0"=白のままで
ある。従って、ランレングスカウンタ203の出力228等に
よりランレングスの値及び色等がROMテーブルC206に与
えられ、該当するコード及びコード長がROM206から出力
される。このケースでは“白ラン2"のコードが出力され
る。即ちM(a0a1)=白2である。
この際、Hモードの最初のコードである事を判定しH
モードを示すコード“001"を白ラン2のコード“0111"
と同時に即ち1クロツクで出すよう制御する。又コード
長も2進数等で同時に出力される。
次いでランレングス・カウンタ203を初期値1(0で
はない点に注目)にセツトし直し、画素a1から画素a2の
カウントに移る。但し画素a1、即ち時刻t2では初期値の
セツト準備をするのみで、カウンタに初期値がセツトさ
れカウントを進めるのは次の時刻t3からである。又、こ
の時刻t3からA0の色も反転させる。(時刻t2=“0"→時
刻t3=“1")、以後時刻tnが進むと結局時刻t4に於い
て、Aレジスタ108のA4出力に“1"が立ち変化点が現わ
れる。該変化点は記号検出回路201が変化点a1がすでに
通過し検出済である事を記憶している(Fa1=1となっ
ている)ので、記号検出回路201によりa2と判定され
る。尚、このa2の検出状態はFa2として記憶される。さ
て、時刻t4でランレングス・カウンタ203の値は2であ
りA0=“1"=黒となっている。又既に時刻t2に於いて、
Hモードである事が確定しているので、a2の検出された
時には、リフアレンスラインの状態、即ち、第3図の13
1−1〜131−4及び第3図130−1〜130−4等の参照は
不要であり、本ケースでは無いが、仮にリフアレンス・
ライン上にb1,b2等があっても、無視するように制御さ
れる。
以上により結局、M(a0,a1)の時と同様にして、
M(a1,a2)=黒“2"のコード及びコード長が出力され
る。この際にはM(a0,a1)の時とは異なりHモードを
示すコード“001"は付加されないよう制御される。
次いで上記、時刻t4の后、即ち、時刻t5でランレング
ス・カウンタ203は初期値1にセツトされる。又、A0
(=a0)は反転する。そして、時刻t4の変化点a2は次の
モードの起点a0と見なされる。
以上の動作により第1ライン402の符号化による発生
コードは第5図の501に記した如くとなる。
又、第3図の時刻t30では、ランレングス・カウンタ
値は9で、この時、記号a″1(=a1)が検出される
が、リフレンスライン上の2画素後に変化点b″1が有
る事が時刻t30において、第3図のBレジスタ109の出力
130−2及びCレジスタ110の出力131−2等から判断さ
れる。従って|a1b1|3の条件が満され、Pモード
(b2が必要)ではないので、定義によりVモードと決定
されVL(2)コード(a1がb1の左2画素の位置にある)
が出力される。
この際、Hモードのランレングス・白9のコードの発
生し得る状態にあったわけであるが、先に述べた各モー
ド間の優先度の定義に従い、Vモードが有効コードとな
り、Hモードのコードは無効となる。さらにVモードの
コードが発生した事により、ランレングスカウンタ203
の該時刻t30までのカウント値はクリアとなり、新たに
1にプリセツトし直されるよう制御される。又、Vモー
ドのコードが発生した後では起点a0記号の色は反転され
る。(但し、Vモード・コードの発生はa1記号の変化点
検出と同時刻(時刻t30)である。)
また、ここまでに説明していないが、記号b1が記号a1
より先の検出される場合には、記号b1の検出信号はB′
レジスタ202への入力信号として、該レジスタ内へシフ
トインされ以降3時刻の間、B′レジスタ202の出力、B
5→B6→B7の順でシフトしていき、それ以後消滅する。
又、記号b1がすでにBレジスタ109のB4出力を通過して
もまだコードが発生しない時には、該事実を記憶検出回
路201の出力Fb1で示すように記憶する。
次に、第1図示の回路ブロツクの各諸機能ブロツクの
具体的回路を説明する。
第1図の仮想変化点発生回路A101、及び仮想変化点発
生回路B105は同形式の回路であり、共に第7図示の仮想
変化点発生回路により実現される。図中、702はフリツ
プフロツプ、703−1及び703−4はアンドゲート、704
はオアゲート、705は反転回路(インバータ)である。
第7図示の回路の動作を第8図のタイミングチヤートに
示す。即ち、第7図及び第8図の各部の番号は第1図及
び第3図の番号と符合している。但し、第7図及び第8
図の701で示す信号は、例えば第1図示のメモリアドレ
ス・カウンタ111のカウント値をデコードすることによ
って得た1ラインの最終画素の位置(タイミング)を示
す信号である。即ち、信号701の発生時刻にフリツプフ
ロツプ702をコーデイングラインの最終画素と同じ色に
クロツク134に同期してセツトし、該時刻より後、即ち
水平同期信号136−2の滅勢後ではフリツプフロツプ702
の出力を122信号とし、該時刻以前即ち、水平同期信
号136−2の出力中は画像121を122信号に出すように成
すものである。
第1図のセレクタ104は第9図に示す回路により実現
される。図中、902−1及び902−2はアンドゲート、90
3はオアゲート、904はインバータである。第9図の123,
124は第1図のラインバツフアメモリA,Bの出力123,124
と符合するが、第9図の信号901は画像1ライン毎にレ
ベルが反転するセレクト信号で、第1図の水平同期信号
136−2により作られる。該セレクト信号901により信号
125への出力を切換える。
第1図の変化点検出回路A106及び変化点検出回路B107
は同形式の回路であり、第10図に変化点検出回路B107の
構成を代表して示す。図中、1002はフリツプフロツプ、
1003は排他的オアゲート、1004はインバータである。
即ち、第8図のタイミング・チヤートに示すようにク
ロツク134に同期したフリツプ・フロツプ1002の入力と
出力の排他的論理和(Exclusive OR)を取る事により隣
り合った画素の色が異なる事を検知し、変化点信号とし
ている。
次に第2図の回路ブロツク内の諸機能ブロツクの具体
的回路を説明する。
第11図は前述のコーデイング・ライン上の記号a1又は
a2及び先に言及したa1が検出済であることを示すFa1信
号を検出する回路で第2図示の記号検出回路201内にあ
る。図中、1102はフリツプフロツプ、1104−1及び1104
−2はアンドゲート、1105はインバータである。
さて、第11図における、各部の番号は第1図等の番号
と符合している。第11図の1101で示す信号はフリツプフ
ロツプ1102を初期状態に戻す(即ちQ出力=“0")か、
Q出力=“1"にセツトされるのを禁止する制御信号であ
り、通常時には“1"のレベルにある。▲▼信
号1103も同様である。ここにおいて変化点A4(129−4
信号)が最初に到来するとA4=“1"となる。この場合、
フリツプフロツプ1102の出力=“1"及び制御信号1101
=“1"であるから、a1=“1"が出力され、記号a1が検出
される。このa1検出信号によりフリツプフロツプ1102が
セツトされQ出力=“1"となり、a1が既に検出された事
を記憶する(即ちQ出力=Fa1=“1")。この状態で次
にA4=“1"となるとa2=“1"となり、記号a2が検出され
る。
次に、記号b1等を検出する為の回路を第12図に示す。
図中、1201は排他的オアゲート、1202,1203はフリツプ
フロツプ、1204−1及び1204−2はアンドゲート、1205
はインバータである。各部の番号の符合は第11図の場合
と同様である。但し、b1となり得るのはa0と反対の色と
いう条件の為排他的オアゲート1201でリフアレンスライ
ンの変化とa0信号との排他的論理和を取った後の信号を
使用する回路となっている。尚、第12図示の回路は第2
図の記号検出回路201に含まれる。
第2図のランレングスカウンタ203の具体的構成を第1
3図に示す。まず、ランレングス・カウンタ203は前述し
たように12ビツトの2進カウンタとなっており、該カウ
ンタ203の計数範囲は0(10進)から2560−1(10進数
の2559)である。又、該カウンタ203はプリセツト機能
及び、クリア機能等を有するもので、具体的には米国・
フエア・チヤイルド社製、IC.型名74F163等により構成
し得るものである。
更に、該カウンタ203のカウント値出力が10進数2559
である事を検出し、MK1信号を発生する回路1301及び該
出力の下位6ビツトをデコードした値が10進数“63"で
ある事を検出し、MK2信号を発生する回路1302を備えて
いる。
更に、プリセツト機能によりセツトする値として“0"
(10進数)又は“1"(10進数)を選択的にプリセツトで
きる構造となっている。
ランレングス・カウンタ203の動き方について説明す
る。まず、各コーデイング・ライン毎に画像左端外の位
置に於いて初期値“0"にプリセツト(又はクリア)され
る。次に画像領域内では画素ごとに順次カウントを進め
るが下記の値又は3状態に於いてはカウンタ203はプリ
セツト機能により“1"に戻される。
即ち、
(1)変化点a1又はa2が検出された時、
(2)カウント値が2559に到達した時、
(3)Pモード・コード又はVモード・コードが発生し
た時、
但し、符号化法の規則により、コーデイング・ライン最
右端外の仮想画素上で変化点a1をa2とする場合には、a1
の検出時にカウンタ値を“0"に戻す事とする。
次に第2図のROMテーブルA204の構成について述べ
る。該ROMテーブルA204はPモードとVモードの計8種
のコード及び該コード長等を発生する為のものである。
ここで述べる構成は本実施の構成原理及び前述の説明で
も明らかなように、コーデイング・ライン及びリフアレ
ンス・ラインの変化点位置の相対的関係及び特にリフア
レンス・ライン上の変化点b2がBレジスタ109のB4出力
に現われた時、又はコーデイング・ライン上の変化点a1
がAレジスタ108のA4出力として現われた時、該時刻に
於いて記号検出回路201の状態及びAレジスタ108、Bレ
ジスタ109、Cレジスタ110及びB′レジスタ202の各出
力の状態等を同時に並列的に判断可能な構成となってい
る。故に上記諸出力の状態の組合せは当然有限のもので
あり、又、判断すべき時刻にあっては静止状態として扱
える。従って、組合せごとに出力すべきPモード又はV
モードのコード及びコード長が決定できるので、該ROM
テーブルとして構成できるものである。ここでは該ROM
テーブルの具体的内容については冗長に過ぎるので、一
例として第14図にROMと等価な論理回路によって、Pモ
ードのコード及びコード長を発生する場合を例示してお
く。図中、1409−1〜1409−3はインバータ、1410−1
〜1410−6はタイミング回路、1411はナンドゲート、14
12はノアゲートである。即ち第14図の1401で示す信号は
第2図の記号検出回路201に於いてリフアレンス・ライ
ン上に変化点b2が検出された事を示す信号である。
即ち第1図のBレジスタ109のB4出力にb2としての変
化点がある事を意味するものである。又、第14図の1402
で示すa1信号は同様にして第1図のAレジスタ108のA4
出力としてのa1変化点である。又第14図の1403で示すFa
1信号は現時刻までに第2図記号検出回路201に於いて既
にa1としての変化点が検出済である事を示す信号であ
る。
第14図の論理回路は該b2の検出された時刻に於いて、
a1又はFa1信号が“真”でない事によりPモードである
と判定する事を意味している。即ち、起点a0以後、b2が
検出される時刻までにa1変化点がない事を意味する。即
ち、画像上で言えば、起点a0からb2変化点の真下の間に
a1変化点がない事になる。従って、定義によりPモード
となる。第14図の1404はPモード検出信号、1405はPモ
ードの具体的なコード、1406はPモードのコードのコー
ド長を表す2進数である。又1407はPモードのコードが
発生した事を示す信号である。以上、Pモードの判定法
であるが、Vモードにも同様の手法が適用できる。該手
法によりROMテーブルA204は構成される。
結局Pモード又はVモードのコード及びコード長は前
記b2又はa1記号が検出された時刻に於いて、前記の手法
に基づく第2図ROMテーブルA204に前記各レジスター等
の状態信号を入力データとして与える事により即刻1ク
ロツクの時間で発生される。
第2図のROMテーブルB205及びROMテーブルC206は同様
の構造であるから、代表して第15図及び第16図によりRO
MテーブルC206について説明する。
まず、206はROMで少なくとも11ビツトのアドレス入力
及び21ビツトの並列出力をもつ、また、228入力は第2
図の228信号に符合する。即ち第2図のランレングス・
カウンタ203の下位6ビツトである。また、第15図の150
2入力はランレングスの色を指定する信号で、記号検出
回路201の出力のa0信号であり、本例では白=0、黒=
1とする。また1503入力はHモードを示すコード(=00
1)を付加するか、不要かを指定する信号で、記号検出
回路201の出力のFa1信号であり、本例では要=1、不要
=0とする。即ち、1503入力が1の場合はHモードのコ
ードの最初のランレングスコードに前記コード(001)
を付加したものを1クロツクで出力する。1504は該コー
ド決定回路212の出力に従って、該ROMテーブルC206の出
力を有効とするか無効とするかを制御するチツプイネー
ブル信号である。1507入力はEOL、1508入力はEOL+1、
1509入力はEOL+0の夫々の読出しを制御するアドレス
入力であり、これら入力にパルスを入力することによ
り、対応したラインの区切りコードが読出される。又、
1505は入力で指定された番地のコード出力であり1506は
同じく該コードのコード長である。
第16図は前記第15図の各番地A0〜A10と記憶内容(デ
ータ)との対応を示す図である。
第2図のコード決定回路212を具体的に第17図により
説明する。図中、1706−1〜1706−3はアンドゲート、
1707−1及び1701−2はインバータである。1407は第14
図のROMテーブルA204からのPモードのコードが発生し
たことを示す信号であり、同様に、1702及び1703は夫々
Vモードのコード、Hモードのコードの発生を示す信号
である。
本実施例に於けるコード発生法の原理から判るよう
に、第2図示のROMテーブル204及び205又は206等によ
り、Pモード,Vモード,Hモードの各々のコードが最終的
に発生すべきコードと決定される前段階に於いて、同時
に2つ以上ROMテーブルより出力される場合がある。し
かし2以上のコードは前述したように優先度が定義され
ている。第17図は該定義に従って、一義的に発生すべき
コードを決定する為の回路である。
即ち、Pモード,Vモード及びHモードのコードが同時
に発生し得る場合には、アンドゲート1706−1〜1706−
3及び1707−1、1707−2の組合わせによる論理に従っ
て、前述の如く、
Pモード>Vモード>Hモード
順位により、出力1701、1704、1705のいずれかが1とな
り、優先権を獲得したモードのコードが最終的に発生す
べきコードとして決定され、他のモードのコードは無効
となり、発生コードとならない。
尚、信号1708は本符号化回路をMH法、即ち、一次元符
号化に用いるか、MMR又はMRの二次元符号化に用いるか
を選択するためのモード信号であり、一次元符号化を実
行する場合にはLレベル,一方、二次元符号化を実行す
る場合にはHレベルとなる。
従って、一次元符号化を実行する場合には、Pモード
コード及びVモードコードの発生は阻止され、常にHモ
ードコード即ちランレングスを表わすコードのみが有効
とされる。
次に、第2図のラッチA207及びラツチB208等の役割に
ついて述べる。ラツチA207及びラツチB208はコーデイン
グ途中に仮に発生するHモードのメイクアツプコード及
び該コード長を該Hモードが有効か又は無効となるかが
決定するまで、一時記憶する為の回路である。そして、
Hモードが有効と決定すれば該ラツチの内容は次段の回
路へ受渡される。
第2図のラツチA207及びラツチB208の働きを一例とし
て、メイクアツプコードが発生するランレングスが長い
場合、例えばランレングス=2972で説明する。この時、
符号化の規定により次のように2つのメイクアツプコー
ド及び1つのターミネイテイングコードの合計3つのラ
ンレングスコードに分割して出力される。
即ち、
(1)
メイクアツプコード1=
ランレングス2560コード(白,黒共通)
(2)
メイクアツプコード2=
ランレングス384コード(白又は黒)
(3)
ターミネイテイングコード=
ランレングス28コード(白又は黒)
この様に、2560+384+28=2972の如く複数のコードに
より1つのランレングスを表わす場合には、まず、第2
図のランレングス・カウンタ203のカウント値が63+64
×N(N=0,1,2……の正整数)になる毎に、その時点
でAレジスタのA4出力がa1変化点でなければ、次にメイ
クアツプ値が発生することを予知し、該カウンタ203の
上位6ビツトの値(Nに相当)が示す1つ上(即ちN=
0で64のメイクアツプ)のメイクアツプコード及びコー
ド長をROMテーブルB205から出力させ、ラツチB208へ一
時記憶(ラツチ)する。続いて前値カウント値が64進む
毎(即ち前述の63+64×Nの式に於いてNが1進む毎)
に該ラツチB208の内容は、更新されていく。
そして、ランレングス・カウンタ203の値が2559(即
ち63+64×Nの式でN=39)になった時刻で変化点a1が
検出されていなければ現在カウント中のランレングスが
2560以上になる事が予知できるので、前記同様、ROMテ
ーブルB205からランレングス2560のコード及びコード長
を読み出してラツチA207へ一時記憶する。また、同時に
ラツチB208の記憶済内容を一旦無効とする。又、ランレ
ングスカウンタ203のカウント値は初期値1に戻され
る。続いてカウントが進むにつれて再び前述の63+64×
Nの式毎に同様にラツチB208へのメイクアツプコード等
の記憶が再開される。
そして、変化点a1が検出されると、他のPモード又は
Vモードとの競合関係が判定され、Hモードが決定する
と該変化点a1の時刻に於けるランレングスカウンタ203
の下位6ビツトの値(0〜最大63)が示すランレングス
のターミネイテイングコード及びコード長をROMテーブ
ルC206を介してラツチC209へ一旦記憶する。又、既に前
記のようにラツチA207及びラツチB208に記憶済の内容も
有効となる。
但し、変化点a1の時刻にVモード等が発生していれば
Hモード自体、発生しない事となり、当然ラツチA207及
びラツチB208の内容は無効とされ、又ROMテーブルC206
の出力がチツプいネーブル信号1504により無効とされ、
ラッチC209へは前記ターミネイテイングコードのかわり
にオアゲート231を介してROMテーブルA204からのVモー
ドコードが有効コードとしてラツチされる。
上記メイクアツプコード1およびメイクアツプコード
2等の発生,記憶制御の回路を第18図に示し、この回路
はタイミング回路112に含まれるものである。この回路
のタイミングチヤート(ランレングスが前述の如く2972
であった場合)を第19図に示す。図中、1801,1802はフ
リツプフロツプ、1803はアンドゲート、1804はインバー
タである。
MK1及びMK2は第13図に示したランレングスカウンタ20
3の2559検出回路1301及び63検出回路1302からそれぞれ
出力される信号である。フリツプフロツプ1802はMK2信
号の入力によりセツトされてMK2有信号を発生し、フリ
ツプフロツプ1801はMK1信号の入力によりセツトされてM
K1有信号を発生する。尚、MK1信号の入力によりフリツ
プフロツプ1802はリセツトされる。
以上のような構成により、ランレングスカウンタ203
のカウント値が64以上となった場合はMK2有信号がハイ
レベルとなり、更に2560以上となった場合はMK1有信号
のみかMK1有信号とMK2有信号が両方ハイレベルとなる。
このMK1有信号とMK2有信号のレベルによりランレングス
を表わすコードがターミネイテイングコードのみである
か、ターミネイテイングコードとメイクアツプコードの
組合せであるか、又、そのメークアツプコードの数が1
であるか2であるかを判別できる。従って、Hモードに
おいてをコードを発生する場合、このMK1有信号とMK2有
信号とのレベルをパツキング回路211は判別し、3個の
ラツチA,B,Cのうち有効なものを選択して、そのラツチ
データを取込む。
この様にメイクアツプコードの発生に於いて少なくと
も1時刻前に該コードの発生を予知し、該コードを一時
記憶回路(ラツチA,B)へ送り済にしておくことによ
り、変化点a1が来た時に、同時刻に処理すべき出力コー
ドの数やビツト数の増大を防ぐ効果があり回路構成上、
極めて有効である。
即ち、ラツチA207及びラツチB208へランレングスカウ
ンタ203がHモード決定前にカウントした数のうち必要
となるメイクアツプコード及びコード長を一時記憶して
おくことにより、Hモード決定時にはターミネイテイン
グコード及びコード長のみを処理すれば良いので、a1検
出時に出力すべきHモードのコードが全て揃い、続く符
号化動作を遅延なく実行することができる。
207,208,209の各ラツチA,B,Cの内容を次段回路へ送り
出す順序はラツチA207>ラツチB208>ラツチC209(210
バツフア)の順を崩さないよう制御される(内容が無効
の時は省略,無視する)。
ラツチC209の内容を一旦バツフアメモリ210に格納す
るのは、符号化モードの確定された次の時刻から次の符
号化動作が開始し、ROMテーブルより次の符号化データ
がラツチC209に数クロツク(最低1クロツク)で入力さ
れることがある。従って、モードの確定後は次の符号化
データをラツチ可能な様にラツチC209の内容はバツフア
メモリ210に送られ、バツフアメモリ210よりタイミング
を取って後段に出力される。
次に変化点a1及び変化点a2を符号化法の規定により、
同一画素上に設定するような特殊なケースについて述べ
る。
第20図は上記のケースを図示したものである。即ち、
第20図に於いて、2001はリフアレンスライン,2002はコ
ーデイングラインである。又、2003はコーデイングライ
ンの最終画素,2004は仮想変化点(画素)である。
さて第20図において、左方からの符号化の結果、起点
a0が図の位置になったとすると、次に発生すべきコード
は第21図の如く、〔Hモードコード+白12ターミネイテ
イングコード+黒0ターミネイトコード〕である。ここ
で、第21図(1)のコードは変化点a1の時刻に前述した
手段により1つのコードとして扱う事ができ問題ない。
しかし、第21図(2)のコードは本来変化点a2が変化点
a1と別の時刻に来た時、変化点a2の時刻に於いて発生す
るべきコードである。だが本ケースの場合、明らかに変
化点a2として記号検出回路201等から検知されない。
そこで本ケースの場合、記号検出回路201に設けた第2
2図の回路により以下の処理を行なう。第23図は本回路
動作のタイミングチヤートである。第22図に於いて2201
は画像が仮想領域に入ったことを示す信号(水平同期信
号の反転信号)、2202はa1変化点検出信号,2203はHモ
ードに於いて、第1番目のターミネイトコードの発生ま
でを示す信号である。上記信号を監視し、アンドゲート
2207により該2201〜2203信号の論理積をとることにより
第20図の状態を検知し、2204−1信号をつくり(即ち、
時刻はa1と同じ)、まず、第20図(1)のコードを前述
の方法で出力する。次にランレングスカウンタを0にク
リアする等所定の処理し、第22図の2204−1信号をDフ
リツプフロツプからなる遅延回路2208で1時刻遅延させ
た2205−1信号により第21図(2)の黒0のターミネイ
トコードを発生させる。
第2図のパツキング回路211は前述の方法によって得
られたコード及びコード長を入力とし(この際次々に発
生する各々のコード長(コードのビツト数)は一定して
いない。但し、最長はHモードコード(=001)を付加
しても16ビツトである)、順次16ビツト単位にまとめる
回路であり、本実施例では16ビツト毎に次の外部回路へ
パラレルに受渡すようにしているものである。
第2図の238で示す信号はパツキング回路211により16
ビツトにまとめたコードであり、239で示す信号は該事
実を次段の外部回路へ報知する為の信号である。尚、パ
ツキング回路211はコード長加算回路,ビツトシフタ,
マルチプレクサ,ラツチ等、周知の回路を組合わすこと
により容易に実現しうるものである。
次に1ページの終了を示すRTC(Return To Control)
信号について述べる。MMR法の場合RTCコード=EOLコー
ド×2回である。即ちRTC信号は(000000000001)×2
=000000000001,000000000001で表現される。又本実施
例においては、前述してきたように1クロツク時間で16
ビツトのコードまで出力できる構造となっている。従っ
てRTC信号を出力するには第3図示の垂直同期信号136−
1等を監視する事により、1ページの終りを検知し、2
クロツク時間(2時刻)のパルスを発生させ、このパル
スを(第15図に示した)ROMテーブルC206のアドレス信
号1507として与える事により、ROMテーブルの相当する
番地にEOLコード及びコード長を書込んでおき、出力さ
せればRTCコードを前述の画像に対するコードに続いて
得る事ができる。
次に前述した3つの符号化法の相異点を第1表に挙げ
ておく。
そこでMH法の符号化法は前述したMMR法のHモードを
繰返して行く場合とほぼ同じであるが次の点で相異す
る。
即ち
(1)MH法ではHモードコード(001)は不要
(2)MH法では白ラン、黒ランはペアにする事は不要
(3)MH法では1ライン毎にEOLコードを入れる
(4)RTCの違い
又MR法の場合は
(1)1次元ラインは、MH法と同じ
(2)2次元ラインは、MMR法と同じ
(3)ラインの区切りは
EOL+1=0000000000011
又は
EOL+1=0000000000010
(4)RTCの違い
(5)Kパラメータにより1次元ラインと2次元ライン
が混在する。
結局、3つの符号化法間の切換えは前述したMMR法の
回路の動きを、MR法又はMH法の方式選択信号により制御
する事により容易に実現できる。
まず第24図にライン・区切り・コードの違いを制御す
る回路例を示す。図中、2407はラインカウンタ、2408は
ナンドゲート、2409−1〜2409−3はアンドゲート、24
10はインバータである。即ち、第24図の2401は第3図の
320に示すt−1時刻のパルス信号で、各コーデイング
ライン毎に繰返される又該時刻t−1には画像符号化に
伴なう、コードは発生しない。このt−1時刻のパルス
信号はアドレスカウンタ111の値をデコードすることに
より得る。又、2402及び2403は符号化法を指定するCpu
等、本実施例回路外からの符号化法選択信号である。又
136−2信号は第3図の136−2信号と対応し、従って、
K進カウンタ2407は、MR法のKパラーメータの進み方を
信号136−2をカウントしライン・カウンタとして、監
視する。
第24図の論理により得られた信号2404〜2406を第2図
のROMテーブルC206のアドレス入力(第15図の1507〜150
8入力)となし、各々特定の番地を指定する様になし、
該特定の番地に必要なコード及びコード長を記憶させた
ものを出力させる様になす事により、所望のライン・区
切り・コードを得る。
又、MH法の一次元ラインの符号化法は前述した第17図
のMMR法のモード決定回路に於いて常にHモードが優先
できるよう、選択信号1708により制御すればよい。
又MH法においては常にHモード・コード(001)も不
要となるよう制御するがこれも前述のROMテーブルC206
のアドレス信号A7をOとすることにより達成する。
又RTCにおけるEOLの数の違いはROMテーブルC206のに
印加するパルス数をモードに応じて異ならせることによ
り達成する。
本実施例に於いては第3図等に示すように(画像)ク
ロツク134に同期して動作しているが、クロツクの間隔
(周期)には関係しない。そこで第25図に示す如く、い
わば画像ゲート信号によりクロツク134をマスクする等
の方法により容易に画像又はライン間に休止期間を設け
る事ができる。
即ち、第25図に於て2501は画像ゲート信号で“0"レベ
ルの間、動作を休止させる事を示す信号である。又2502
は前記ゲート信号2501とクロツク134との論理積により
作り出された歯抜けのクロツクであり、該クロツク2502
を前述のクロツク134に代って本実施例の実質の内部回
路へ送れば、本実施例はクロツク信号によってのみ状態
が遷移し得るものであるから第25図斜線部は明らかに休
止状態となる。
この休止制御により、例えば、符号化すべき画像信号
の発生源の画像信号の出力速度等が、符号化回路の動作
に制限される事がない。又、逆に、例えば、画像発生源
がデイスクを備えた画像フアイルの場合等、1ページの
画像信号の出力が間欠的になされたとしても、符号化回
路が、その間欠的出力に同期して符号化動作を間欠的に
実行する事ができる。従って、画像信号の出力源と符号
化回路の間に時間合せ用の多大なバツフアメモリ等を必
要とせずに、出力源からの画像信号を逐次符号化する事
もできる。
次に第26図及び第27図によって、本実施例の回路へ符
号化すべき画像を並列形式で与える方法について述べ
る。即ち、第26図の2601は8ビツトの並列データを入力
とし、2602に1ビツトの直列データとして出力できる並
直列変化用シフト・レジスタである。
第27図に示す様に符号化すべき画像信号を8ビツトの
並列データとしてレジスタ2601にロードしたのち、クロ
ツクにより直列シフトし、第27図に示す如くの直列の画
像信号2602を得る。同時に前記直列シフト中のクロツク
数等をカウントし、実データの区間を示すゲート信号27
02をつくり出す。又実データに対応したクロツク2702も
同様に得る事ができる。
以上、第27図の如き諸信号は前記第25図で述べた休止
方法により本実施例で前述した如く符号化可能な形式と
なっている。この画像の並列入力に対する動作はCpu等
により画像が与えられる場合等において極めて有効であ
る。
尚、以上の実施例では、MH,MR,MMRの符号化について
説明したが、他の符号化方法にも適用可能なことは言う
迄もない。また、符号化すべき画像信号は原稿画像を光
電的に読取る装置や、コンピユータ等から入力され、ま
た、符号化コードは伝送線等により遠隔地に伝送された
り、画像フアイルに格納されたりする。以上、本発明を
好ましい実施例に基づいて説明したが、本発明はこの構
成に限定されるものではなく、特許請求の範囲内で種々
の変形、変更が可能であることは言う迄もない。
〔効果〕
以上説明した様に、本発明によると、モデイフアイド
・ハフマン符号化、モデイフアイド・リード符号化又は
モデイフアイド・モデイフアイド・リード符号化により
画像信号を符号化する画像信号の符号化装置において、
符号化ラインの画像信号の変化点間の画素数の計数結
果に基づいて水平モードの画像コードに含まれるランレ
ングスコードを発生する第1発生手段と、符号化ライン
の画像信号と参照ラインの画像信号との変化点に関する
相関関係の監視結果に基づいて、パスモード及び垂直モ
ードの画像コードを発生する第2発生手段とを備え、実
行すべき符号化モードがモデイフアイド・リード符号化
又はモデイフアイド・モデイフアイド・リード符号化の
場合には、第1発生手段及び第2発生手段の両方を用い
て符号化動作を実行せしめ、一方、実行すべき符号化モ
ードがモデイフアイド・ハフマン符号化の場合には、第
1発生手段を用いて符号化動作せしめる符号化制御手段
と、一画面の終了を示すRTCコード及び各ラインの区切
りを示すライン区切りコードをモデイフアイド・ハフマ
ン符号化、モデイフアイド・リード符号化及びモデイフ
アイド・モデイフアイド・リード符号化の夫々に応じた
複数通りの形式で発生可能なメモリテーブルを備え、符
号化モードに応じた形式でRTCコード及びライン区切り
コードを発生するコード発生手段とを有するので、モデ
イフアイド・ハフマン符号化、モデイフアイド・リード
符号化及びモデイフアイド・モデイフアイド・リード符
号化の3通りの符号化モードによる画像信号の符号化を
実行可能とすることができる。DETAILED DESCRIPTION OF THE INVENTION
〔Technical field〕
The present invention is applicable to facsimile, electronic image file, etc.
The present invention relates to an apparatus for encoding an image signal to be encoded.
[Conventional technology]
Conventional facsimile and other image transmission devices and recent optical
Image file devices using disks and magnetic disks, etc.
In other words, by encoding and handling image signals,
Speed up the transmission or storage operation by reducing the amount of data
Is being measured.
For example, in the facsimile field, one-dimensional
Modified Huffman (MH) method for encoding, 2D
Modified lead (MR) method for coding, high efficiency
Modified as a dimensional encoding
(MMR) method is used.
The relationship between the MH method, MR method and MMR method is
The method includes a method very similar to the MH method, and also partially incorporates the MR method.
The modified one is the MMR method.
Also, the image to be encoded and the rules of the encoding method, etc.
In short, CCITT (International Telegraph and Telephone Advisory Committee)
It conforms to the recommendations of T4 and T6.
Furthermore, the above-mentioned encoding method is the same as that of the MMR method on March 2, 1985.
Facsimile of 52 pages or less of the Official Gazette of the 2nd (Extra No. 29)
Among the recommended communication methods for Group 4 devices (Postal Service 197)
Announced as a highly efficient two-dimensional coding method, the MH method is
As a one-dimensional coding method, the MR method is a two-dimensional coding method.
And both were notified in 1981 Notification No. 1013 of the Ministry of Posts and Telecommunications.
You.
The above three types of coding such as MH, MR, and MMR are coded.
Select to apply to the subsequent processing device that handles the processed image signal
Is done. And when the processing form of the subsequent stage is changed
Requires a circuit change suitable for it, and
Was. However, as mentioned earlier,
Related, and use this relationship to create a common encoding device.
It is desirable that three more encodings be achieved.
〔Purpose〕
The present invention has been made in view of the above points, and has been described above.
Modified Huffman coding, Modified
Coded and Modified Mode Lee
Of image signals in three coding modes
The purpose of this is to make
Feid Huffman coding, Modified lead sign
Coding or modified-mode lead code
Image signal encoding device that encodes image signals by encoding
Input means for inputting an image signal of an encoding line
And the image signal that has been encoded by the previous encoding operation is stored.
Buffer means for outputting the image signal of the reference line
And an image signal of a coding line input from the input means.
Detecting means for detecting a change point of the signal, and the detecting means
Counting means for counting the number of pixels between the detected transition points;
The horizontal mode image coding is performed based on the counting result of the counting means.
First generation means for generating run-length code contained in the code
And a picture of a coding line input by the input means.
Between the image signal and the reference line output from the buffer means.
A monitor that monitors the correlation of the change point with the image signal
And a pass mode based on the monitoring result of the monitoring means.
And second generating means for generating a vertical mode image code
And a horizontal mode run generated by the first generation means.
Length code or path model generated by second generation means
Output means for outputting an image code in a code mode or a vertical mode.
And the encoding mode to be executed is
Read-Read or Modified-Modified
-In the case of read encoding, the first generating means and the
Causing the encoding operation to be performed using both of the second generating means;
On the other hand, the coding mode to be executed is Modified Huff
In the case of the Man coding, a code is generated using the first generating means.
Encoding control means for performing the encoding operation and indicating the end of one screen
RTC code and line delimiter to indicate line delimiters
Modified Huffman coding, Modified
De Read Coding and Modified Modified
・ Can be generated in multiple formats corresponding to each of lead coding
With a memory table that can be used, the format according to the encoding mode
Generate RTC code and line break code with
An image signal encoding device having a generating means.
aimed to.
〔Example〕
FIGS. 1 and 2 show examples of the configuration of an encoding circuit to which the present invention is applied.
This is shown in the circuit block diagram of FIG. Next, the operation of the embodiment is described.
This will be described with reference to FIGS. 1 and 2 and FIGS. 3 to 5 and the like.
You.
The signal indicated by 121 in FIG. 1 is an image scanner or an image.
Code supplied from an external device such as a file or computer
This is an image signal to be encoded, and is “0” or “1” (for example, “0”
= White, "1" = black pixel)
Given. The signal indicated by 134 is the input of the image signal 121.
Clock supplied from external equipment in synchronization with power
There is one clock per pixel. Next, the note indicated by 136
The signal is a synchronizing signal.
It shows several types of synchronization signals indicating the interval and the like.
That is, in this embodiment, the image signal 121 to be encoded is
Like the signals given to the user printer, etc., each main scan
As a scanning image signal which is a serial image signal of
Shall be
Next, 101 is a coding line (image to be encoded)
Next to the last pixel of the actual image
So that the element (= virtual pixel) always becomes a change point
This is a circuit that creates a transition point.
A ". However, the above “virtual change point generating circuit A”
Do not change the actual image on the coding line
It has a good structure.
102 is a line buffer memory A, 103 is a line buffer memory
It is a buffer memory B, which is independently written or read
Operable RAM (random access memory)
RAMs that can be written or read independently
Access memory), each of which is coded
.Capacity capable of storing one line of binary image (main scanning image)
Prime number).
In addition, the line buffer memory A102 and the line buffer
One of the memory B103 is executing the write operation
The other is controlled to perform a read operation.
You. In other words, these two line buffer memories depend on each other.
To form a set of double buffer memories.
111 is a memory address counter,
Clock 134 corresponding to the number of pixels in the
This is the counter to be executed. The count value of the counter 111
Is a line buffer as the memory address signal 135.
Memory A102 and line buffer memory B103
Is commonly given to Also, memory address count
Data 111 returns to the initial value for each coding line,
Repeat the counting operation. Therefore, the line buffer
The binary image of each line written in the memory is newly input.
Corresponding to the pixel position of the image signal 121 of the line
It is read out for each pixel.
104 is a selector, which is a line buffer memory A10
Either 2 or line buffer memory B103
Obtain read data from the person performing the read operation.
This is a circuit that performs a selection operation in response to a select signal 901. This
Data selectively obtained by the selector 104 of
As the coding line 125, that is, the coding line
This is given to the next stage as reference data (image) for the application.
105 is the last pixel of the actual image on the reference line
Force the next pixel (virtual pixel) to always be a change point
A circuit that creates a change point in a virtual way
B ".
However, the virtual change point generation circuit B105 is a reference line.
The structure does not change the actual image on the screen.
You.
106 is a real image and a virtual pixel on the reference line
This is a circuit that detects the pixel that is the upper transition point.
This is referred to as “detection circuit A”.
107 is a real image and a virtual image on the coding line.
"Change point detection circuit B" is a circuit that detects a change point on a pixel.
Called.
108 is A register, 109 is B register, 110 is C register
, Each being a 4-bit shift register
The signal indicated by 126 is the actual image on the reference line.
A signal representing an image and a virtual pixel, and a signal represented by 127
Are the changes on the real image and virtual pixels on the reference line.
It is a transition point signal. The signal indicated by 128 is the coding line.
5 shows a change point signal on a real image on a virtual pixel and a change point signal on a virtual pixel.
112 receives a clock 134 and a synchronization signal 136 as inputs.
Timing of each circuit block based on
Timing signal for forming various timing signals 137
Road.
The operation of the circuit block shown in FIG.
An actual image (image to be coded) as shown in FIG.
This is explained using an example in which this is encoded by the MMR method.
I will tell.
First of all, the image of FIG. 4 exemplified here is simply described.
32 pixels per line (number of main scanning pixels = 32 pixels)
And a total of two lines (the number of sub-scanning lines = 2)
This is an extremely simple image that composes one page.
To actually encode the first line indicated by 402 in FIG.
Is a virtual line indicated by 401 in FIG. 4 as shown in FIG.
Is the reference line, and the first line 402 is
Ing line.
Also, when encoding the second line indicated by 403 in FIG.
6, the first line 402 in FIG. 4 is lifted as shown in FIG.
Coordinate the second line 403 as the Allens line
・ Line.
Hereinafter, suppose that one page consists of three or more lines of main scanning.
Even if the third line, the fourth line, ...
As mentioned, the reference line and the coding line
If the relationship of IN is gradually lowered, regardless of the number of sub-scanning lines,
Encoding can continue.
FIG. 3 shows the circuit block diagram shown in FIG.
This is a timing chart when given to Tsuk.
In FIG. 3, reference numeral 136-1 denotes a vertical synchronizing signal in the sub-scanning direction.
Indicates the section of the image, that is, the input period of the image of one page.
You. 136-2 is a horizontal synchronizing signal, an image section in the main scanning direction,
That is, it indicates the input period of the image of one line. 134 is the image
Reference numeral 121 denotes a signal of an image to be encoded illustrated in FIG.
Black pixel = "1" = "H", white image
Element = “0” = “L”. That is, as shown in FIG.
Of the images, the image in the section T1 is the one shown in FIG.
This is the actual image of the first line 402, and the image in the section T2 is encoded.
It is an actual image of the second line 403 shown in FIG.
The virtual line 401 shown in FIG. 4 is printed on an actual paper surface or the like.
In the case of such an image,
White or equivalent to out of paper, according to the MMR method
Is an all white (one line of pixels is all white pixels) line and virtual
It is stipulated that Therefore, the virtual shown in FIG.
Line 401 does not appear on image signal 121 shown in FIG.
No.
FIG. 5 is a timing chart showing the encoding operation of the first line 402.
Guchayat, a virtual line that becomes the reference line
In 401 and the first line 402 which is the coding line
Shows the relationship.
First, the image of the first line 402 shown in FIG.
When applied to the generation circuit A101, 122 (code
Virtual change point (virtual pixel) 302 as shown in FIG.
Is added to the image. That is, in section T1, the actual image is
Although unchanged, as shown in the figure, the last pixel 30 of the first line
1 and the next pixel 302 have opposite colors (white → black)
You. Also, several virtual pixels following the virtual change point (virtual pixel) 302
Is a virtual change so that it does not become a change point for the reasons described later.
A pixel of the same color as the point (virtual pixel) 302 is held.
Now, the coding line signal 122 in FIG.
Is an image signal to be encoded as shown in FIG.
Input to the dot detection circuit B107, and
Full memory A102 and line buffer memory B103
Is provided as write data.
On the other hand, the address counter 111 is only for the section T1 in FIG.
The image clock 134 is counted, as shown at 135 in FIG.
And outputs the same to memory address 135
As the line buffer memory A102 and the line buffer
Commonly applied to the toe memory B103.
Further, although not shown at this time, the line buffer
Memory A102 is in the write mode and the line buffer memory
Assuming that B103 is controlled to read mode, code
The data of Ing Line 122 is a line buffer memo.
In order of the address specified by memory address 135 in A102
Next is written. Also, line buffer memory B103
Is in read mode at this time, as described above.
If you write all “0” in the initial state,
"0" is sequentially read from the address specified by the dress 135, and
The read signal B indicated by reference numeral 124 in FIG.
Is selected and becomes the data of the reference line 125.
You.
Reference numeral 125 in FIG. 3 indicates a data signal of the reference line.
The waveform is shown and is “0” during the section T1. this
Means that, as shown in FIG.
What I got on the circuit as a “white” reference line
You.
The coding line 122 is used for detecting the change point as described above.
It is also given to road B107. The detection circuit B107 receives the given data.
Change point (pixel) in the data input is detected and the change point pixel
Is output as “1”, and all pixels that do not
Output as "0". Reference numeral 128 in FIG. 1 is the output.
The virtual change point generation circuit B105 and the change point detection circuit A106
Of the coding line 122 described above.
Operation of circuits 101 and 107 with the same name
Reference line 12 read from buffer memory
Execute for 5.
After all, the signal on the reference line 125 generates a virtual change point
The circuit B105 provides the next pixel after the last pixel as indicated by 126 in FIG.
Converted to a signal with virtual pixels of a different color from the end pixel
It is.
The signal 128 generated from the change point detection circuit B107 is
The data is sequentially shifted into the A register 108 by the clock 134.
Symbols A1 to A4 of the A register 108 are parallel
It shows a simple 4-bit output, which is always output.
The output signal waveform of the A register 108 is shown in FIG.
It shows in 9-4. Therefore, the target pixel of the coding line
Is shifted to the output A4 of the A register 108,
Whether there is a change point in the data of three pixels following the pixel of interest
Can be determined from the output 129.
Similarly, 130-1 to 130-4 in FIG. 3 and 131- in FIG.
Output of B register 109 and C register 110 to 1-131-4
3 shows a signal waveform. That is, the B register 109 and the C register 1
In FIG. 10, each pixel position stored in the A register 108 is
Change point signal and color of the corresponding reference line pixel
The signal is stored. Therefore, the output A of the A register 108
If 4 is the pixel of interest for the coding line,
The reference line by the data register 109 and the C register 110.
Whether there is a change point in three pixels following the target pixel position in
No and its color can be determined.
In order to encode the second line, the second line 403 in FIG.
Is input as the image signal 121, the line buffer
Memory B103 enters the write mode and the line buffer
The memory A102 enters the read mode. That is, the first la
Line buffer memory B during coding operation of IN 402
The first line 402 written in 103 is the reference line
And the second line 403 to be newly input is
It becomes. Then, the same operation as in the first line
The operation is performed.
Each signal waveform in the second line 403 is shown in section T2 in FIG.
Shown in At this time, the section T2 of the reference line 125
Data is written to line buffer memory A102 during section T1.
The data of the first line 402
is there.
The above is the specific operation of the circuit block shown in FIG.
Next, the circuit block shown in FIG. 2 will be described.
201 is a symbol detection circuit, as shown in FIG.
Signals 129, 130, 131 from the A, B, C registers of the circuit block
Then, in the MMR coding method, the necessary symbol a0, A1, ATwoPassing
B1, BTwoIt is a circuit for detecting symbols such as. These notes
The definition of the number is as follows.
a0= Image on coding line that is the starting point of encoding
Elementary.
a1= A0First change on the coding line to the right
Inversion point (pixel).
aTwo= A1First change on the coding line to the right
Inversion point (pixel).
b1= A0Transition point on the reference line to the right
(Pixel) at a0The opposite color and the first change point.
bTwo= B1First change on the reference line to the right
Inversion point (pixel).
However, the right here refers to, for example, each pixel shown in FIG.
Same as the relationship between left and right.
Next, reference numeral 202 denotes a B 'register, which is indicated by 222 in FIG.
Change point signal b1With clock 134 as input data.
3-bit shift register shifted in sequentially
It is. Therefore, the change detected by the symbol detection circuit 201
Point signal b1Is maintained for the next three clock periods
Change point signal b for pixel1Can be determined.
203 is a run-length counter, usually a pixel a0
From pixel a1Number of pixels up to (run length) or pixel a1Or
Pixel aTwoA binary counter that counts the number of pixels up to
It has a 12-bit output and counts up to 2559 decimal.
Counter that can be
The signal indicated by 228 in FIG.
Are the lower 6 bits of the count value output. Also, the second
The signal indicated by 227 in the figure is the count of the run-length counter 203.
This is the upper 6 bits of the event value output.
Reference numeral 204 denotes a ROM table A, which is mainly in a bus mode.
(P mode) code and vertical mode (V mode) code
Stores codes and the number of bits (code length) of each code
The code and the code according to the input provided.
ROM (read only memory) that can output lengths in parallel
You.
Reference numeral 205 denotes a ROM table B, which is mainly a horizontal mode.
(H mode) make-up code and code length
Is stored in the ROM, and the signal 227 is output as an address.
The code to be input and the code length are selectively output.
Reference numeral 206 denotes a ROM table C.
RO that stores the mining code and code length
M and the code and signal to output signal 228 as address
And the code length are selected and output.
207 and 208 indicate the make-up output from each ROM.
A latch circuit for temporarily storing a loop code and a code length.
You. Reference numeral 209 denotes the termination output from the ROM.
Latch circuit that temporarily stores the running code and code length
is there.
210 indicates the code and code length in the latch circuit C209 sequentially.
This is a buffer memory for receiving and temporarily storing.
Here, the coding rules of the MMR method are described a little more.
Good. Symbols defined as above in this encoding method
a0, A1, ATwoIs on the coding line and is the same
Symbol b1And bTwoIs on the reference line. Soshi
And each of these symbols a0, A1, ATwoGroups and b1, BTwoNo
Depending on the relative position (distance) of the loop, the encoding mode
Uniquely select from three modes and encode
Stipulated.
(1) Pass mode (P mode)
bTwoIs a1When to the left (only one occurrence code)
(2) Vertical mode (V mode)
| a1b1When | ≦ 3 (7 different codes are generated for each distance)
Occurrence code)
(3) Horizontal mode (H mode)
Other than (1) and (2) above (Run length code table
Obey)
Format: H + M (a0a1) + M (a1aTwo)
Here, H is a code indicating the H mode, and M (a0a1) Is white
Or black | a0a1| Run-length code, M (a1aTwo)
Is black or white | a1aTwo| Is the run-length code.
However, two or more modes among the above (1), (2) and (3)
Are satisfied at the same time,
(1) P mode> (2) V mode> (3) H mode
Takes priority.
The code output circuit 212 controls the priority output operation.
The latch is selected by the code determination circuit 212.
You.
Next, the operation of encoding the image 402 of the first line in FIG.
Explain the work.
First, in the present embodiment, at time t shown at 320 in FIG.0To
This is the encoding start time.
That is, time t0Is Reference Line and Cordine
The first pixel of the line is the C4 output of the C register 110 in FIG.
The time at which they appear at the output or A4 output of the A register 108, respectively.
You. That is, time t0Then, C register 110, B register 109
And each output of the A register 108 is a reference line and
And the first pixel of the coding line
The three pixel states are output in parallel. Also, a0In Figure 3
221 A0 (a0), The initial value “0” (white pixel = temporary)
).
The run-length counter 203 counts from the initial value 0 to time t.0Less than
The counting of the descending image clock 134 is started.
The count value output at each time of the counter 203 is set to the third
This is shown at 322 in the figure.
Time t0In this case, "1" is set to the signal 129-4 in FIG.
The A shift register 108 of FIG.
4 There is no change point in the output, and similarly, the B shift register 109
B4 output has no change point. Therefore, generate the code
Since there is no cause, the count value of the run-length counter
Only by one, the next time t1Go to time t1But when
Time t0This is the same as the state described above.
Then at time tTwoGoes to "1" in signal 129-4 in FIG.
Are standing. This means that A4 of the A register 108 in FIG.
The output becomes 1 and changes to that position on the coding line
Indicates that a point exists. This change point is the current starting point a0
To the right (the time corresponds to a later time)
Therefore, the symbol detection circuit 201 shown in FIG.1In
Is determined. Note that this symbol a1The detection status of Fa1age
To remember.
This time tTwoAt 130-1 to 130-4 in FIG.
Then, "1" does not stand in any of them. This is at time tTwo
Change point b within 3 hours from1Means that there is no or,
Symbol detection circuit 201 is b1B is detected when1To B '
Shift register 202 and disappear for 3 hours
I try not to. The symbol detection circuit 201 is b1Already
Also, there is a circuit for storing the detection.
Thus, in this case, the change point pixel a1Left and right 3 strokes
Change point pixel b within the element1Is missing and origin a0From a1For up to
Between b1That there is noTwoCan also be determined.
Therefore, at time tTwoIn a1Is detected, but in P mode (bTwoAlready
And V mode (| a1
b1| 3 is not satisfied), and therefore
H mode is set.
At this time, the value of the run length counter 203 is
As also shown in a0From a1Is "2".
The run-length color remains the same as the initial setting “0” = white
is there. Therefore, the output 228 of the run length counter 203, etc.
More run length values and colors are given to ROM table C206.
And the corresponding code and code length are output from ROM 206.
Is done. In this case, the code for “White Run 2” is output
You. That is, M (a0a1) = White 2.
At this time, it is determined that this is the first code in the H mode,
The code “001” indicating the mode is changed to the code “0111” of the white run 2
At the same time, control is performed so as to output in one clock. Also code
The length is also output simultaneously as a binary number.
Next, the run-length counter 203 is initialized to 1 (0
Note that there is no1From pixel aTwoof
Move on to counting. Where pixel a1I.e., time tTwoIn the initial value
Just prepare for setting and the counter will be set to the initial value.
The next time tThreeBecause. Also this
Time tThreeThe color of A0 is also inverted. (Time tTwo= “0” → hour
Time tThree= "1"), after which time tnTime tFourIn
As a result, the A4 output of the A register 108 becomes “1” and the transition point appears.
It is. The change point is detected by the symbol detection circuit 201 as a change point a.1Already
It remembers that it passed and was detected (Fa1= 1
The symbol detection circuit 201TwoIs determined
You. In addition, this aTwoDetection status is FaTwoIs stored as Sa
And time tFourAnd the value of the run-length counter 203 is 2.
A0 = “1” = black. Time tTwoAt
Since it is determined that the mode is H, aTwoDetected
Sometimes the state of the reference line, ie, 13 in FIG.
References to 1-1 to 131-4 and FIG.
It is unnecessary and not in this case.
B on the line1, BTwoIs controlled to ignore any
It is.
After all, M (a0, A1),
M (a1, ATwo) = Black “2” code and code length are output
You. In this case, M (a0, A1H mode is different from the case of
The code "001" is controlled not to be added.
Then, at time tFourAfter, that is, time tFiveRun length with
The counter 203 is set to an initial value of 1. A0
(= A0) Is inverted. And time tFourChange point aTwoIs the next
Mode origin a0Is considered.
By the above operation, generation by the encoding of the first line 402
The code is as shown at 501 in FIG.
The time t in FIG.30So, the run-length counter
The value is 9, where the symbol a ″1(= A1) Is detected
Changes point b ″ two pixels after the reference line1Has
Time t30At the output of the B register 109 in FIG.
130-2 and the output 131-2 of the C register 110, etc.
It is. Therefore | a1b1| 3 condition is satisfied, P mode
(BTwoIs necessary), so it is determined to be V mode by definition
VL(2) Code (a1Is b1At the position of two pixels to the left of
Is output.
At this time, the H mode run-length white 9 code
Although it was in a state where it could be produced,
V-mode is a valid code according to the definition of priority between
Therefore, the H mode code becomes invalid. In addition, V mode
The run-length counter 203
At the time t30The count value until is cleared and newly
It is controlled so that it is reset to 1. Also, V mode
Start code a after the code0The symbol color is inverted
You. (However, generation of V mode code is a1Change point of symbol
Same time as detection (time t30). )
Although not described so far, the symbol b1Is the symbol a1
If it is detected earlier, the symbol b1Detection signal is B '
As an input signal to the register 202, a shift into the register is performed.
The output of the B 'register 202, B
Shifts in the order of 5 → B6 → B7, then disappears.
Also, the symbol b1Already passed the B4 output of B register 109
When no code is generated yet, the fact is memorized and detected.
Output Fb of road 2011Is stored as shown in FIG.
Next, each function block of the circuit block shown in FIG.
A specific circuit will be described.
The virtual change point generation circuit A101 of FIG.
The raw circuit B105 is a circuit of the same type, and both are virtual circuits shown in FIG.
This is realized by a change point generation circuit. In the figure, 702 is frits
Flop, 703-1 and 703-4 are AND gates, 704
Is an OR gate, and 705 is an inverting circuit (inverter).
The operation of the circuit shown in FIG. 7 is applied to the timing chart of FIG.
Show. That is, the numbers of the respective parts in FIG. 7 and FIG.
And the numbers in FIG. However, FIGS. 7 and 8
The signal indicated by 701 in the figure is, for example, the memory address shown in FIG.
By decoding the count value of the
Shows the position (timing) of the last pixel of one line obtained
Signal. That is, the flip-flop occurs at the time when the signal 701 is generated.
Make 702 the same color as the last pixel of the coding line
Set in synchronization with clock 134, and after that time, ie,
After the horizontal synchronizing signal 136-2 is deactivated, the flip-flop 702
Of the horizontal synchronization signal before the time, that is, the horizontal synchronization signal
During output of signal 136-2, the image 121 is output as a 122 signal.
It is something.
1 is realized by the circuit shown in FIG.
Is done. In the figure, 902-1 and 902-2 are AND gates, 90
3 is an OR gate, and 904 is an inverter. In FIG. 9, 123,
Reference numeral 124 denotes outputs 123 and 124 of the line buffer memories A and B in FIG.
However, the signal 901 in FIG. 9 is recorded every line of the image.
The select signal with inverted bell, the horizontal sync signal shown in FIG.
136-2. The select signal 901 causes a signal
Switch output to 125.
The change point detection circuit A106 and the change point detection circuit B107 in FIG.
Is a circuit of the same type, and FIG.
The configuration is shown as a representative. In the figure, 1002 is a flip-flop,
1003 is an exclusive OR gate, and 1004 is an inverter.
That is, as shown in the timing chart of FIG.
Input of flip-flop 1002 synchronized with lock 134
Next by taking the exclusive OR of the output
It detects that the colors of the pixels that match each other are different and generates a change point signal.
ing.
Next, the specific function blocks in the circuit block shown in FIG.
The circuit will be described.
Figure 11 shows the symbol a on the above-mentioned coding line.1Or
aTwoAnd a mentioned above1Fa indicating that has been detected1Faith
Signal detection circuit 201 in the symbol detection circuit 201 shown in FIG.
You. In the figure, reference numeral 1102 denotes a flip-flop, 1104-1 and 1104
-2 is an AND gate, and 1105 is an inverter.
By the way, the numbers of each part in FIG. 11 are the numbers in FIG. 1 and the like.
It matches. The signal indicated by 1101 in FIG. 11 is a flip-flop.
Returning the rope 1102 to the initial state (that is, the Q output = "0");
Q output is a control signal that inhibits the output from being set to "1".
Normally, it is at the level of “1”. ▲ ▼ Shin
No. 1103 is similar. Here, change point A4 (129-4)
A4 = "1" when the first signal arrives. in this case,
Output of flip-flop 1102 = "1" and control signal 1101
= “1”, so a1= “1” is output and the symbol a1Is detected
Is done. This a1The flip-flop 1102 is activated by the detection signal.
Set and the Q output becomes "1".1Has already been detected
(That is, Q output = Fa1= “1”). Next in this state
A when A4 = "1"Two= "1" and the symbol aTwoIs detected
You.
Next, the symbol b1FIG. 12 shows a circuit for detecting the like.
In the figure, 1201 is an exclusive OR gate, 1202 and 1203 are flips
Flops, 1204-1 and 1204-2 are AND gates, 1205
Is an inverter. The sign of each part number is as shown in Fig. 11.
Is the same as Where b1Can be a0And the opposite color
Reference line with exclusive OR gate 1201
Change and a0The signal after taking the exclusive OR with the signal
The circuit to be used. The circuit shown in FIG.
It is included in the symbol detection circuit 201 shown in FIG.
The specific configuration of the run length counter 203 shown in FIG.
See Figure 3. First, the run-length counter 203 is described above.
As shown, the counter is a 12-bit binary counter.
The counting range of the counter 203 is from 0 (decimal) to 2560-1 (decimal number).
2559). The counter 203 has a preset function.
And has a clear function, etc.
IC made by Fair Child, Inc., composed of 74F163, etc.
Can be done.
Further, the count value output of the counter 203 is a decimal number 2559.
And a circuit 1301 for generating an MK1 signal
The decoded value of the lower 6 bits of the output is decimal "63".
It has a circuit 1302 that detects something and generates an MK2 signal
I have.
Furthermore, “0” is set as the value to be set by the preset function.
(Decimal) or “1” (decimal) can be selectively preset
It has a clear structure.
The following describes how the run-length counter 203 operates.
You. First, the position outside the left edge of the image for each coding line
Preset (or cleared) to the initial value “0”
You. Next, counting is performed sequentially for each pixel in the image area.
However, the counter 203 is not
It is returned to "1" by the set function.
That is,
(1) Change point a1Or aTwoWhen is detected,
(2) When the count value reaches 2559,
(3) P-mode code or V-mode code occurs
When
However, due to the rules of the coding method, the coding line
Change point a on virtual pixel outside right end1ATwoIf a1
The counter value is returned to "0" upon detection of.
Next, the configuration of the ROM table A204 shown in FIG. 2 will be described.
You. The ROM table A204 has 8 types of P mode and V mode.
And the code length and the like.
The configuration described here is based on the configuration principle of the present embodiment and the above description.
As is clear, the coding line and
The relative position of the change point of the
Change point b on the lens lineTwoIs B4 output of B register 109
At the point of change or on the coding line1
Appears as the A4 output of the A register 108,
The state of the symbol detection circuit 201 and the A register 108 and B register
Each output of the register 109, C register 110 and B 'register 202
It is configured to be able to judge the state of force etc. at the same time in parallel
You. Therefore, the combination of the above output states is of course finite.
At the time to be judged,
I can. Therefore, P mode or V to be output for each combination
Mode code and code length can be determined.
It can be configured as a table. Here is the ROM
Since the specific contents of the table are too verbose,
As an example, a logic circuit equivalent to ROM shown in FIG.
Code code and code length are generated as examples.
Good. In the figure, 1409-1 to 1409-3 are inverters and 1410-1
1410-6 is a timing circuit, 1411 is a NAND gate, 14
12 is a NOR gate. That is, the signal indicated by 1401 in FIG.
In the symbol detection circuit 201 shown in FIG.
Change point bTwoIs a signal indicating that is detected.
That is, the b4 output of the B register 109 in FIG.TwoStrange as
It means that there is an inflection point. Also, 1402 in FIG.
A1The signal is similarly supplied to A4 of the A register 108 in FIG.
A as output1It is a turning point. Fa indicated by 1403 in FIG.
1The signal is already detected by the symbol detection circuit 201 in FIG.
To a1Is a signal indicating that the change point as
You.
The logic circuit of FIG.TwoAt the time of detection of
a1Or Fa1P mode due to signal not being "true"
Is determined. That is, starting point a0Hereafter, bTwoBut
A by the time of detection1It means that there is no change point. Immediately
In the image, the origin a0From bTwoJust below the point of change
a1There will be no change. Therefore, by definition, P-mode
Becomes In FIG. 14, 1404 is a P mode detection signal, and 1405 is a P mode detection signal.
1406 is the code of the P-mode code.
This is a binary number that represents the length of the command. Also, 1407 has P mode code
This is a signal indicating that an event has occurred. As described above, the determination method of the P mode
However, the same method can be applied to the V mode. The hand
The ROM table A204 is configured by the method.
After all, the code and code length of P mode or V mode are before
Note bTwoOr a1At the time the symbol is detected,
Figure 2 ROM table A204 based on the above registers
Instantaneously by giving the status signal of
Generated in lock time.
ROM table B205 and ROM table C206 in FIG. 2 are the same.
Because of the structure shown in FIG. 15 and FIG.
The M table C206 will be described.
First, 206 is a ROM with at least 11-bit address input
And 21 bits of parallel output, and 228 inputs are second
This corresponds to the signal 228 in the figure. That is, the run length of FIG.
The lower 6 bits of the counter 203. In addition, 150 in FIG.
2 Input is a signal to specify the run length color, and symbol detection
This is an a0 signal output from the circuit 201. In this example, white = 0 and black =
Let it be 1. The 1503 input is a code indicating the H mode (= 00
1) Add a symbol or specify whether the symbol is unnecessary.
This is the Fa1 signal output from the circuit 201. In this example, necessary = 1, unnecessary
= 0. In other words, if the 1503 input is 1, the H mode
Code (001) as the first run length code
Is output in one clock. 1504 is the
Output of the ROM table C206 in accordance with the output of the
Chipine to control whether force is enabled or disabled
Bull signal. 1507 input is EOL, 1508 input is EOL + 1,
1509 input is the address that controls each reading of EOL + 0
Input, and by inputting a pulse to these inputs
Thus, the corresponding line delimiter code is read. or,
1505 is the code output of the address specified by the input and 1506 is the code output
Similarly, it is the code length of the code.
FIG. 16 shows the addresses A0 to A10 of FIG.
FIG.
The code determination circuit 212 of FIG.
explain. In the figure, 1706-1 to 1706-3 are AND gates,
Reference numerals 1707-1 and 1701-2 denote inverters. 1407 is the 14th
P mode code from ROM table A204 shown
Signals 1702 and 1703, respectively.
Signal indicating generation of V-mode code and H-mode code
It is.
As can be seen from the principle of the code generation method in this embodiment.
The ROM tables 204 and 205 or 206 shown in FIG.
Each code of P mode, V mode and H mode is finally
Before the code to be generated
May be output from the ROM table. I
However, two or more codes have priority defined as described above.
ing. Figure 17 must be generated uniquely according to the definition
This is a circuit for determining the code.
That is, the P mode, V mode and H mode codes are
In this case, AND gates 1706-1 to 1706-
3 and 1707-1, 1707-2
As mentioned above,
P mode> V mode> H mode
Depending on the order, one of the outputs 1701, 1704, and 1705 becomes 1.
The code of the mode in which the priority was
Is determined as the power code, and the other mode code is invalid.
Is not generated code.
Note that the signal 1708 indicates that the present encoding circuit uses the MH method,
Whether to use for coding or two-dimensional coding of MMR or MR
Mode signal for selecting
L level to execute, on the other hand, execute two-dimensional encoding
In this case, the level becomes H level.
Therefore, when performing one-dimensional encoding, the P mode
Code and V mode code are prevented, and the H mode
Only code that indicates run length is valid
It is said.
Next, the role of the latch A207 and the latch B208 in FIG.
I will talk about it. Latch A207 and Latch B208 are codeine
H mode make-up code and
And whether the H mode is enabled or disabled.
This is a circuit for temporarily storing until it is determined. And
If the H mode is determined to be valid, the contents of the latch will be
Delivered to the road.
The operation of the latches A207 and B208 in FIG.
Has a long run length at which a make-up code occurs
In this case, for example, the description will be made with a run length of 2972. This time,
According to the coding rules, two make-up code
Code and one terminating code for a total of three
It is split into length codes and output.
That is,
(1)
Makeup code 1 =
Run-length 2560 code (common for white and black)
(2)
Makeup code 2 =
Run length 384 cord (white or black)
(3)
Terminating code =
Run length 28 cord (white or black)
In this way, multiple codes like 2560 + 384 + 28 = 2972
To represent one more run length, first the second
The count value of the run-length counter 203 in the figure is 63 + 64
× N (positive integer of N = 0,1,2 ...) at that time
And the A4 output of the A register is a1If it is not a change point,
Foreseeing that a capture value will occur,
The value of the upper 6 bits (corresponding to N) indicates one higher (that is, N =
0 to 64 make-up codes)
Data length from ROM table B205, and
Remember the time. Next, the previous count value advances by 64.
Every (that is, every time N advances by 1 in the above-mentioned formula of 63 + 64 × N)
Then, the contents of the latch B208 are updated.
Then, the value of the run-length counter 203 becomes 2559 (immediately).
Change point a at the time when N = 39 in the formula of 63 + 64 × N1But
If not detected, the run length currently being counted is
It can be predicted that it will be 2560 or more.
Code B205 to run length 2560 code and code length
Is read out and temporarily stored in the latch A 207. Also at the same time
The stored contents of the latch B208 are temporarily invalidated. Also, runle
The count value of the pitch counter 203 is returned to the initial value 1.
You. Then, as the count goes on, 63 + 64 ×
Make up code for latch B208, etc. in the same way for each formula of N
Is resumed.
And the change point a1Is detected, another P mode or
The competition with the V mode is determined, and the H mode is determined.
And the change point a1Run length counter 203 at time
Run length indicated by lower 6-bit value (0 to 63)
ROM-terminated terminating code and code length
Is temporarily stored in the latch C209 via the file C206. Also already
As described above, the contents stored in Latch A 207 and Latch B 208
Becomes effective.
However, change point a1If V mode etc. occur at the time of
The H mode itself will not occur, and naturally the latch A207 and
And the contents of the latch B208 are invalidated, and the ROM table C206
Is disabled by the chip enable signal 1504,
Latch C209 is replaced with the terminating code
V-mode from ROM table A204 via OR gate 231
The code is latched as a valid code.
Above make-up code 1 and make-up code
FIG. 18 shows a circuit for controlling generation and storage of 2 etc.
Are included in the timing circuit 112. This circuit
Timing chart (run length is 2972
Is shown in FIG. In the figure, 1801 and 1802 are
Lip flop, 1803 AND gate, 1804 Invar
It is.
MK1 and MK2 are the run-length counters 20 shown in FIG.
3 from 2559 detection circuit 1301 and 63 detection circuit 1302 respectively
This is the output signal. Flip flop 1802 is MK2 signal
Signal is set and the MK2 signal is generated.
The flip-flop 1801 is set by the input of the MK1 signal and
Generates K1 signal. It should be noted that, due to the input of the MK1 signal,
The flop 1802 is reset.
With the above configuration, the run length counter 203
MK2 signal is high when the count value of
Level, and if it becomes 2560 or more, MK1 signal
Only the MK1 existence signal and the MK2 existence signal both become high level.
The run length depends on the level of the MK1 signal and the MK2 signal.
Is the only terminating code
Or the terminating code and make-up code
Combination and the number of make-up codes is 1
Or 2 can be determined. Therefore, in H mode
The MK1 signal and MK2 signal
The packing circuit 211 determines the level of the signal and the three levels.
Select a valid one of latches A, B, and C, and
Capture data.
In this way, at least in the generation of make-up codes
Also predicts the occurrence of the code one hour before and temporarily stores the code.
By sending it to the memory circuit (Latch A, B)
Change point a1Output code to be processed at the same time when
Has the effect of preventing an increase in the number of bits and the number of bits.
Extremely effective.
That is, run-length cowling to Latch A207 and Latch B208
Required by the counter 203 before the H mode was determined
And temporarily store the make-up code and code length
By setting, when H mode is decided,
Since only the code and code length need to be processed, a1Inspection
All H mode codes to be output at the time of
The decoding operation can be performed without delay.
Send the contents of latches A, B and C of 207, 208 and 209 to the next circuit.
The order of delivery is Latch A207> Latch B208> Latch C209 (210
(Buffer) is controlled so as not to break the order (contents are invalid)
Omit and ignore when.)
The contents of the latch C209 are temporarily stored in the buffer memory 210.
The next code is determined from the next time when the encoding mode is determined.
The encoding operation starts and the next encoded data is read from the ROM table.
Is input to the latch C209 with a few clocks (minimum 1 clock).
May be Therefore, after the mode is determined, the next encoding
The contents of the latch C209 are buffered so that data can be latched.
Sent to memory 210, timing from buffer memory 210
And output to the subsequent stage.
Next, change point a1And change point aTwoAccording to the encoding method,
Describe special cases such as setting on the same pixel.
You.
FIG. 20 illustrates the above case. That is,
In Fig. 20, 2001 is the reference line, and 2002 is the reference line.
It is a decoding line. Also, 2003 is a coding line
The last pixel of the image, 2004, is a virtual change point (pixel).
Now, in FIG. 20, the encoding result from the left
a0Is the position shown in the figure.
Is as shown in Fig. 21 [H mode code + white 12 terminator
Ing code + black 0 terminating code]. here
Then, the code in FIG.1At the time
There is no problem because it can be treated as one code by means.
However, the code in FIG.TwoIs the changing point
a1When it comes to another time, change point aTwoOccurs at time
Code to be done. However, in this case,
Change point aTwoIs not detected from the symbol detection circuit 201 or the like.
Therefore, in the case of this case, the second
The following processing is performed by the circuit shown in FIG. Fig. 23 shows this circuit
This is an operation timing chart. 2201 in Fig. 22
Is a signal indicating that the image has entered the virtual area (horizontal synchronization signal).
Signal 2202) a1Change point detection signal, 2203 is H mode
The first terminating code is generated.
Is a signal indicated by. Monitor the above signal and AND gate
By taking the logical product of the 2201 to 2203 signals by 2207
20 is detected and a 2204-1 signal is generated (ie,
Time is a1First, the code shown in Fig. 20 (1)
Output. Next, the run-length counter is cleared to 0.
22. The signal 20204-1 shown in FIG.
Delay one time by a delay circuit 2208 composed of a lip flop
The terminator of black 0 in FIG.
Generate a code.
The packing circuit 211 of FIG. 2 is obtained by the method described above.
The entered code and code length are input (in this case,
Each generated code length (number of code bits) is constant
Not in. However, the longest is H mode code (= 001)
Even 16 bits), and sequentially grouped in 16-bit units
In this embodiment, the circuit is connected to the next external circuit every 16 bits.
They are delivered in parallel.
The signal indicated by 238 in FIG.
This is a code summarized in bits.
This is a signal for notifying the fact to the external circuit of the next stage. In addition,
The tucking circuit 211 is a code length adding circuit, a bit shifter,
Combining known circuits such as multiplexers and latches
It can be realized more easily.
Next, RTC (Return To Control) indicating the end of one page
The signal will be described. RTC code = EOL code for MMR method
X 2 times. That is, the RTC signal is (000000000001) × 2
= 000000000001,000000000001. In addition
In the example, 16 clocks per clock time as described above.
It has a structure that can output even bit codes. Follow
In order to output the RTC signal, the vertical synchronization signal 136 shown in FIG.
By monitoring 1 etc., the end of 1 page is detected and 2
A pulse of clock time (2 times) is generated and this pulse
Address of the ROM table C206 (shown in FIG. 15).
By giving it as number 1507, it corresponds to the ROM table
Write the EOL code and code length in the address
If possible, add the RTC code
You can get it.
Next, Table 1 lists the differences between the above three encoding methods.
Keep it.
Therefore, the coding method of the MH method uses
It is almost the same as when repeating, but differs in the following points
You.
That is
(1) H mode code (001) is not required for MH method
(2) White run and black run need not be paired in MH method
(3) In the MH method, insert an EOL code for each line
(4) Difference of RTC
In the case of MR method
(1) One-dimensional line is the same as MH method
(2) Two-dimensional line is the same as MMR method
(3) Line break
EOL + 1 = 0000000000011
Or
EOL + 1 = 0000000000010
(4) Difference of RTC
(5) One-dimensional line and two-dimensional line by K parameter
Are mixed.
After all, the switching between the three encoding methods is the same as the MMR method described above.
Circuit operation controlled by MR or MH method selection signal
Can be easily realized.
First of all, Fig. 24 controls the differences between lines, breaks and codes.
An example of a circuit is shown below. In the figure, 2407 is a line counter, 2408 is
NAND gate, 249-1 to 2409-3 are AND gate, 24
10 is an inverter. That is, 2401 in FIG.
The pulse signal at time t-1 shown at 320
It is repeated for each line.
Accompanying, no code is generated. This pulse at time t-1
The signal is to decode the value of the address counter 111.
Get more. Also, 2402 and 2403 are CPUs that specify the encoding method.
Etc. are encoding method selection signals from outside the circuit of this embodiment. or
The 136-2 signal corresponds to the 136-2 signal in FIG.
The K-base counter 2407 indicates how the K parameter of the MR method advances.
The signal 136-2 is counted and monitored as a line counter.
To watch.
The signals 2404 to 2406 obtained by the logic of FIG.
Input of the ROM table C206 (1507 to 150 in FIG. 15)
8 input) and none, none to specify a specific address,
Code and code length required for the specific address are stored
Output the desired line / division
Get the cut and code.
Also, the encoding method of the one-dimensional line of the MH method is described in FIG.
H mode always takes precedence in the MMR method mode decision circuit
It may be controlled by the selection signal 1708 so that it can be performed.
In the MH method, the H mode code (001) is always
This is controlled as required, but this is also the same as the ROM table C206
This is achieved by setting the address signal A7 of FIG.
Also, the difference in the number of EOLs in RTC is
By changing the number of applied pulses according to the mode,
Achieve.
In this embodiment, as shown in FIG.
Works synchronously with clock 134, but with clock intervals
It has nothing to do with (cycle). Therefore, as shown in FIG.
For example, the clock 134 is masked by an image gate signal.
Pauses between images or lines easily
I can do it.
That is, in FIG. 25, reference numeral 2501 denotes an image gate signal, which is at the “0” level.
This signal indicates that the operation is suspended during the operation. Also 2502
Is the logical product of the gate signal 2501 and the clock 134
It is a clock with a missing tooth, and the clock 2502
In place of the above-mentioned clock 134,
If this signal is sent to the road, this embodiment
The hatched area in Fig. 25 is clearly
It will stop.
With this pause control, for example, an image signal to be encoded
The output speed of the image signal from the source of the
Is not limited to Conversely, for example, an image source
Is an image file with a disc, etc.
Even if the image signal is output intermittently, the encoding
Channel intermittently performs the encoding operation in synchronization with the intermittent output.
You can do it. Therefore, the output source and sign of the image signal
A large amount of buffer memory etc.
Encoding the image signal from the output source without need
Can also.
26 and 27, reference is made to the circuit of this embodiment.
Describes how to provide images to be encoded in parallel format.
You. That is, 2601 in FIG. 26 inputs 8-bit parallel data.
And 2602 can be output as 1-bit serial data
This is a serial change shift register.
As shown in FIG. 27, an image signal to be encoded is an 8-bit image signal.
After loading the register 2601 as parallel data,
A series shift is performed by the check, and a series image as shown in FIG. 27 is displayed.
An image signal 2602 is obtained. Clock during the serial shift at the same time
A gate signal 27 that counts the number etc. and indicates the section of the actual data
Create 02. Also, clock 2702 corresponding to actual data
You can get it as well.
As described above, the signals as shown in FIG.
The format that can be encoded as described above in this embodiment by the method
Has become. The operation for parallel input of this image is Cpu etc.
This is extremely effective when images are given by
You.
In the above embodiment, the coding of MH, MR, MMR
Explained, but can be applied to other encoding methods
Not to mention. Also, the image signal to be encoded is a light from the original image.
Input from a device that reads electronically or a computer, etc.
Also, the encoded code was transmitted to a remote location via a transmission line, etc.
Or stored in an image file. As described above, the present invention
Although described based on the preferred embodiment, the present invention
The invention is not limited to the
It is needless to say that the modification and change of are possible.
〔effect〕
As described above, according to the present invention,
・ Huffman coding, modified lead coding or
Modified-mode lead coding
In an image signal encoding device that encodes an image signal,
Counting the number of pixels between changing points of the image signal of the coding line
The run-les included in the horizontal mode image code
First code generating means for generating an encoding code;
Between the image signal of the reference line and the image signal of the reference line
Based on the correlation monitoring results, pass mode and vertical mode
And second generating means for generating an image code of the code.
The coding mode to be executed is Modified Read Coding
Or modified-mode lead coding
In this case, both the first generating means and the second generating means are used.
To execute the encoding operation, while the encoding mode to be executed is
If the mode is Modified Huffman coding,
Coding control means for performing a coding operation using one generating means
And the RTC code indicating the end of one screen, and the separation of each line
The line break code indicating the
Coding, Modified Read coding and Modified coding
According to each of the Eyed Modified Eyed lead coding
It has a memory table that can be generated in multiple formats,
RTC code and line break in the format corresponding to the encoding mode
Code generation means for generating a code.
Ifif Huffman coding, modified lead
Encoding and Modified Lead Code
Encoding of image signals using three encoding modes
It can be executable.
【図面の簡単な説明】
第1図及び第2図は本発明を適用した符号化装置の構成
を示すブロツク図、第3図は符号化動作を示すタイミン
グチヤート図、第4図,第5図及び第6図はリフアレン
スラインとコーデイングラインの関係を示す図、第7図
は仮想変化点発生回路の構成例を示す図、第8図は第7
図示回路の動作を示すタイミングチヤート図、第9図は
セレクタの構成例を示す図、第10図は変化点検出回路の
構成例を示す図、第11図及び第12図は記号検出回路の一
部構成例を示す図、第13図はランレングスカウンタの構
成例を示す図、第14図はROMテーブルAの等価回路の構
成例を示す図、第15図はROMテーブルCの構成例を示す
図、第16図はROMテーブルCの内容例を示す図、第17図
はコード決定回路の構成例を示す図、第18図はメイクア
ツプコードの発生、記憶回路の構成例を示す図、第19図
は第18図示回路の動作を示すタイミングチヤート図、第
20図はリフアレンスラインとコーデイングラインの関係
を示す図、第21図はHモードコードを示す図、第22図は
仮想変化点の遅延回路の構成例を示す図、第23図は第22
図示回路の動作を示すタイミングチヤート図、第24図は
ライン区切りコードの発生を制御する回路の構成例を示
す図、第25図は符号化動作の休止制御動作を示すタイミ
ングチヤート図、第26図は画像信号のパラレル入力をシ
リアル出力する回路の構成例を示す図、第27図は第26図
示回路の出力状態を示すタイミングチヤート図であり、
101及び105は仮想変化点発生回路、106及び107は変化点
検出回路、108〜110はレジスタ、111はアドレスカウン
タ、201は記号検出回路、203はランレングスカウンタ、
207〜209はラツチである。BRIEF DESCRIPTION OF THE DRAWINGS FIGS. 1 and 2 are block diagrams showing the configuration of an encoding apparatus to which the present invention is applied, FIG. 3 is a timing chart showing an encoding operation, and FIGS. 6 is a diagram showing a relationship between a reference line and a coding line, FIG. 7 is a diagram showing a configuration example of a virtual change point generating circuit, and FIG.
9 is a timing chart showing the operation of the circuit shown, FIG. 9 is a diagram showing a configuration example of a selector, FIG. 10 is a diagram showing a configuration example of a change point detection circuit, and FIG. 11 and FIG. FIG. 13 shows a configuration example of a run-length counter, FIG. 14 shows a configuration example of an equivalent circuit of the ROM table A, and FIG. 15 shows a configuration example of a ROM table C. FIG. 16, FIG. 16 is a diagram showing an example of the contents of a ROM table C, FIG. 17 is a diagram showing an example of the configuration of a code determination circuit, FIG. FIG. 19 is a timing chart showing the operation of the circuit shown in FIG.
FIG. 20 is a diagram showing a relationship between a reference line and a coding line, FIG. 21 is a diagram showing an H mode code, FIG. 22 is a diagram showing a configuration example of a delay circuit at a virtual change point, and FIG.
FIG. 24 is a timing chart showing the operation of the circuit shown, FIG. 24 is a diagram showing a configuration example of a circuit for controlling generation of a line break code, FIG. 25 is a timing chart showing a pause control operation of the encoding operation, FIG. 26 Is a diagram showing a configuration example of a circuit for serially outputting the parallel input of the image signal, FIG. 27 is a timing chart showing the output state of the circuit shown in FIG. 26,
101 and 105 are virtual change point generation circuits, 106 and 107 are change point detection circuits, 108 to 110 are registers, 111 is an address counter, 201 is a symbol detection circuit, 203 is a run length counter,
207 to 209 are latches.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 櫻井 茂樹 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 村田 幸雄 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 岡野 達夫 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 ────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Shigeki Sakurai 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (72) Inventor Yukio Murata 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (72) Inventor Tatsuo Okano 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc.
Claims (1)
・リード符号化又はモデイフアイド・モデイフアイド・
リード符号化により画像信号を符号化する画像信号の符
号化装置において、 符号化ラインの画像信号を入力する入力手段と、 先の符号化動作により符号化済の画像信号を記憶し、参
照ラインの画像信号として出力するバツフア手段と、 前記入力手段より入力される符号化ラインの画像信号の
変化点を検出する検出手段と、 前記検出手段により検出された変化点間の画素数を計数
する計数手段と、 前記計数手段の計数結果に基づいて水平モードの画像コ
ードに含まれるランレングスコードを発生する第1発生
手段と、 前記入力手段により入力される符号化ラインの画像信号
と前記バツフア手段より出力される参照ラインの画像信
号との変化点に関する相関関係を監視する監視手段と、 前記監視手段の監視結果に基づいて、パスモード及び垂
直モードの画像コードを発生する第2発生手段と、 前記第1発生手段から発生された水平モードのランレン
グスコード又は第2発生手段から発生されたパスモード
又は垂直モードの画像コードを出力する出力手段とを有
し、 更に、実行すべき符号化モードがモデイフアイド・リー
ド符号化又はモデイフアイド・モデイフアイド・リード
符号化の場合には、前記第1発生手段及び前記第2発生
手段の両方を用いて符号化動作を実行せしめ、一方、実
行すべき符号化モードがモデイフアイド・ハフマン符号
化の場合には、前記第1発生手段を用いて符号化動作せ
しめる符号化制御手段と、 一画面の終了を示すRTCコード及び各ラインの区切りを
示すライン区切りコードをモデイフアイド・ハフマン符
号化、モデイフアイド・リード符号化及びモデイフアイ
ド・モデイフアイド・リード符号化の夫々に応じた複数
通りの形式で発生可能なメモリテーブルを備え、符号化
モードに応じた形式でRTCコード及びライン区切りコー
ドを発生するコード発生手段とを有することを特徴とす
る画像信号の符号化装置。(57) [Claims] Modified Huffman coding, Modified lead coding or Modified
An image signal encoding apparatus for encoding an image signal by read encoding, comprising: an input unit that inputs an image signal of an encoding line; an image signal that has been encoded by a previous encoding operation; Buffer means for outputting as an image signal; detecting means for detecting a change point of the image signal of the coding line inputted from the input means; and counting means for counting the number of pixels between the change points detected by the detecting means. First generation means for generating a run-length code included in a horizontal mode image code based on the counting result of the counting means; an image signal of a coded line input by the input means and output from the buffer means Monitoring means for monitoring a correlation with respect to a change point with the image signal of the reference line to be detected; and A second generating means for generating a direct mode image code; and an output for outputting a horizontal mode run length code generated from the first generating means or a pass mode or vertical mode image code generated from the second generating means. When the encoding mode to be executed is the modified read encoding or the modified modified read encoding, the encoding is performed by using both the first generating means and the second generating means. If the encoding mode to be executed is Modified Huffman encoding, encoding control means for performing the encoding operation using the first generating means, and RTC indicating the end of one screen. The code and the line break code indicating the break of each line are written in Modified Huffman coding, Modified lead coding and Model It is provided with a memory table that can be generated in a plurality of formats corresponding to each of the Fed, Modified, and Read coding, and a code generation unit that generates an RTC code and a line delimiter code in a format corresponding to a coding mode. Characteristic image signal encoding device.
Priority Applications (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17081085A JP2721337B2 (en) | 1985-08-02 | 1985-08-02 | Image signal encoding device |
CA000514467A CA1296798C (en) | 1985-08-02 | 1986-07-23 | Image signal coding apparatus |
US06/888,493 US4799110A (en) | 1985-08-02 | 1986-07-23 | Image signal coding apparatus |
DE8686305854T DE3684966D1 (en) | 1985-08-02 | 1986-07-30 | IMAGE SIGNAL ENCODER. |
EP86305854A EP0211611B1 (en) | 1985-08-02 | 1986-07-30 | Image signal coding apparatus |
CN 86106256 CN1009048B (en) | 1985-08-02 | 1986-08-01 | Image signal encoding device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17081085A JP2721337B2 (en) | 1985-08-02 | 1985-08-02 | Image signal encoding device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6231264A JPS6231264A (en) | 1987-02-10 |
JP2721337B2 true JP2721337B2 (en) | 1998-03-04 |
Family
ID=15911755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17081085A Expired - Lifetime JP2721337B2 (en) | 1985-08-02 | 1985-08-02 | Image signal encoding device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2721337B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63272172A (en) * | 1987-04-30 | 1988-11-09 | Hitachi Ltd | Two-dimensional coding circuit |
-
1985
- 1985-08-02 JP JP17081085A patent/JP2721337B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPS6231264A (en) | 1987-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4325085A (en) | Method and apparatus for adaptive facsimile compression using a two dimensional maximum likelihood predictor | |
EP0089797B1 (en) | Digital image information compression and decompression method and apparatus | |
JPH04270568A (en) | Data compression system in picture processing unit | |
US5655032A (en) | Coding method and apparatus therefor | |
US4799110A (en) | Image signal coding apparatus | |
US4215375A (en) | Digital facsimile transmission system for screened pictures | |
US4918540A (en) | System for encoding or decoding analog video signals | |
JP2721337B2 (en) | Image signal encoding device | |
EP0153397A1 (en) | A method and device for decoding two-dimensional facsimile signals. | |
JP2721336B2 (en) | Image signal two-dimensional encoding device | |
JP2721335B2 (en) | Image signal two-dimensional encoding device | |
JPH04270564A (en) | Serial picture data compression system having color information | |
JP2774490B2 (en) | Image code decoding device | |
JP2634793B2 (en) | Color image signal encoding device | |
JP2774488B2 (en) | Image code decoding device | |
US5452092A (en) | Changing pixel detector for coding of image data | |
JPS6231260A (en) | Two-dimensional coding device for picture signal | |
JPS6231263A (en) | Two-dimensional coding device for picture signal | |
JP2774489B2 (en) | Image code decoding device | |
JP3325703B2 (en) | Data reception control device | |
JPS6341271B2 (en) | ||
JPS6231261A (en) | Coding device for picture signal | |
JPS6118266A (en) | Modified huffman coding and decoding device | |
JPH0351354B2 (en) | ||
JPS6231262A (en) | Two-dimensional coding device for picture signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |