JPH046956A - Color picture coding system - Google Patents

Color picture coding system

Info

Publication number
JPH046956A
JPH046956A JP2109653A JP10965390A JPH046956A JP H046956 A JPH046956 A JP H046956A JP 2109653 A JP2109653 A JP 2109653A JP 10965390 A JP10965390 A JP 10965390A JP H046956 A JPH046956 A JP H046956A
Authority
JP
Japan
Prior art keywords
signal
line
code
picture
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2109653A
Other languages
Japanese (ja)
Inventor
Tadashi Yoshida
正 吉田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2109653A priority Critical patent/JPH046956A/en
Publication of JPH046956A publication Critical patent/JPH046956A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect a location of an error caused in the unit of lines by adding an identification signal to each picture line to incorporate the identification signal and a picture signal into a same signal series and applying prediction coding to the series. CONSTITUTION:R, G, B input data 201, 202, 203 representing each picture element of a color picture are inputted to a state detection section 13. The state prediction section 13 decides the picture element state around the coded picture element and sends a state signal st206 and a coded picture element signal D203 to a coder 11. The coder 11 generates a code 207, which is sent to a decoder 14. A code synchronization generating section 12 detects a head of a 1-line RGB picture to be coded and gives an identification number cyclicly. The identification number is coded by the coder 11 similarly to the case of a picture element signal. When an error takes place during picture transmission, the decoder finds out a line in which an error takes place by taking synchronization with each line.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、カラー画像を通信するカラーファクシミリ装
置におけるカラー画像符号化方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a color image encoding method in a color facsimile device that communicates color images.

〔従来技術〕[Prior art]

従来の画像符号化方式はCCITT (国際電信電話諮
問委員会)で勧告されているG3.G4ファクシミリに
代表されるランレングス符号化方式が一般に用いられて
いる。この符号化方式は、画素が白または黒が続く長さ
(ランレングス)をカウントし、あらかじめ用意された
符号表からそのカウント値に対応する符号を決定する方
式である。ここで用いられる符号表は、文書画像に多い
長い白ランに対して比較的短かい符号を割りあてるよう
な特徴づけがされている。
The conventional image encoding method is G3. recommended by CCITT (International Telegraph and Telephone Consultative Committee). A run-length encoding method, typified by G4 facsimile, is generally used. This encoding method is a method that counts the length (run length) in which a pixel continues to be white or black, and determines a code corresponding to the count value from a code table prepared in advance. The code table used here is characterized by assigning relatively short codes to long white runs, which are common in document images.

一方、最近になって安価なカラープリンタの開発が進み
、カラー画像、特に赤(R)、緑(G)9青(B)また
は黄(Y)、シアン(C)、マゼンタ(M)の1bit
ずつのデータを持つ2値カラーの画像通信が提案されて
きた。
On the other hand, recently, the development of inexpensive color printers has progressed, and color images, especially 1 bit of red (R), green (G), 9 blue (B), yellow (Y), cyan (C), and magenta (M), have been developed.
Binary color image communication with different data has been proposed.

このような2値カラーの符号化方式として、3色をビッ
トブレーンごとに符号化し、白黒用のMH。
As a binary color encoding method, three colors are encoded for each bit brain, and MH for black and white is used.

MR符号化方式を用いる方法が考えられている。A method using an MR encoding method has been considered.

〔発明が解決しようとしている課題〕[Problem that the invention is trying to solve]

しかし、上述の3色をビットプレーン毎に符号化する方
法では、R,G、  Bのビットプレーンごとに符号化
することにより、元々のR,G、 B情報源のもつエン
トロピーを増大させてしまい、符号化効率が悪くなると
いう問題がある。これは、端的にいえば、色の相関情報
を利用していないということである。
However, with the above method of encoding the three colors for each bit plane, encoding each R, G, and B bit plane increases the entropy of the original R, G, and B information sources. , there is a problem that encoding efficiency deteriorates. Simply put, this means that color correlation information is not used.

したがって、色の相関を利用し、いかに符号化効率を上
げるかが課題である。そこで色の相関を用いて、予測符
号化することが考えられる。従来、予測符号化に算術符
号を用い符号化する方式が考えられている。しかし算術
符号で画像を符号化すると、画像先端から終端まで符号
化は続くため、送信等でエラーが発生した場合、符号最
後までデコードしないとエラーが発見できない欠点があ
った。このような方式をカラー画像に適用した場合、デ
ータ量が多いため更に問題となる。
Therefore, the challenge is how to improve encoding efficiency by utilizing color correlation. Therefore, it is possible to perform predictive encoding using color correlation. Conventionally, encoding methods have been considered that use arithmetic codes for predictive encoding. However, when an image is encoded using arithmetic codes, the encoding continues from the beginning to the end of the image, so if an error occurs during transmission, etc., the error cannot be detected unless the end of the code is decoded. If such a method is applied to a color image, it becomes more problematic because the amount of data is large.

また、カラー画像の場合、一般にデータ量は多いが、符
号化しようとする画像には空白部分が存在する。この空
白部分については符号化効率、符号化スピード等も考え
る必要がある。
Furthermore, in the case of a color image, although the amount of data is generally large, there are blank areas in the image to be encoded. Regarding this blank space, it is necessary to consider encoding efficiency, encoding speed, etc.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は以上の点に鑑みてなされたもので、複数の色成
分信号により表される2値カラー画像符号化方式におい
て、画像ライン毎に識別信号を付加し、該識別信号と画
像信号を同じ信号系列とみなし、予測符号化するカラー
画像符号化方式を提供するものである。
The present invention has been made in view of the above points, and in a binary color image encoding method represented by a plurality of color component signals, an identification signal is added to each image line, and the identification signal and the image signal are the same. This provides a color image encoding method that treats the image as a signal sequence and performs predictive encoding.

〔実施例〕〔Example〕

第1図は本発明を適用したカラー画像伝送システムの実
施例である。カラー画像の各画素を表わすR,G、 B
各1bitの入力データ201.202.203は各フ
レームメモリ(不図示)から状態予測部13へ送られる
。状態予測部13は符号化画素の周囲の画素状態を決定
し符号器11へ状態信号5t206を送る。また符号化
画素信号D203も符号器11へ送られる。
FIG. 1 shows an embodiment of a color image transmission system to which the present invention is applied. R, G, B representing each pixel of a color image
Each 1-bit input data 201, 202, and 203 is sent from each frame memory (not shown) to the state prediction unit 13. The state prediction unit 13 determines the state of pixels around the encoded pixel and sends a state signal 5t206 to the encoder 11. The encoded pixel signal D203 is also sent to the encoder 11.

符号化画素信号りはRGB、RGB・・・の順番にシリ
アルに符号器に203で送られる。
The encoded pixel signals are serially sent to the encoder in the order of RGB, RGB, . . . at 203.

符号器11では、画素信号りと状態信号stに基づいて
、後述する如く、例えば算術符号のようなマルコフモデ
ル符号化により符号207が作られ、復号器14に伝送
される。
In the encoder 11, a code 207 is created based on the pixel signal RI and the state signal st by Markov model encoding, such as an arithmetic code, as will be described later, and is transmitted to the decoder 14.

復号器14では伝送されてきた符号207に対して、復
号処理が行われ、復号されたRGBシリアル画素信号D
’り208を得る。D’ 208はRGBパラレル変換
部15によって分離復号された画素信号R′G’ B’
 209,210,211を得る。
The decoder 14 performs decoding processing on the transmitted code 207, and generates a decoded RGB serial pixel signal D.
'I get 208. D' 208 is a pixel signal R'G'B' separated and decoded by the RGB parallel conversion unit 15.
Obtain 209, 210, 211.

符号同期発生部12は次に述べる役割を果している。ま
ず、符号化すべきlラインのRGB画素の先頭を検知し
、サイクリックに識別番号をつける。この識別番号は画
素信号と同様に符号化部11で符号化される。さらに符
号化すべき1ラインのR,G。
The code synchronization generator 12 plays the role described below. First, the beginning of the RGB pixels of the l line to be encoded is detected and an identification number is cyclically assigned. This identification number is encoded by the encoding section 11 in the same way as the pixel signal. Furthermore, R and G of one line to be encoded.

B信号がすべて“0″すなわち、lラインが白であるな
らば識別番号に“0”、そうでない場合、つまり、1画
素でもR,G、 Hのうち“0″でないものがある場合
には、識別番号に“1”を1ビット加えている。
If the B signal is all "0", that is, the l line is white, the identification number is "0", otherwise, if even one pixel among R, G, and H is not "0", then the identification number is "0". , one bit of "1" is added to the identification number.

前者の役割は、画像伝送中にエラーが発生した場合、デ
ユーダ側では、ライン毎に同期をとることによりエラー
が発生したラインを発見することができる。
The role of the former is that when an error occurs during image transmission, the receiver side can discover the line in which the error occurred by synchronizing each line.

また、後者の役割は、カラー画像中、空白部がある場合
、これらを符号化せず識別番号のみの符号化でスキップ
することにより符号化効率及び符号化スピードを向上す
ることができる。
Moreover, the latter role can improve encoding efficiency and encoding speed by not encoding blank areas in a color image and skipping them by encoding only the identification number.

第5図(b)はライン識別信号の例を示したものである
。1ラインの画素がRGBRGBとシリアルに並んでい
るとすると、その先頭に2ビツトライン識別番号がつけ
られる。図のように1ライン目であれば0112ライン
目であれば10等の2ビツトが付けられる。またスキッ
プ信号は1ビツト図のようにつけられ、1ラインのRG
BすべてがOだった時のみ0、それ以外は1である。図
の例では4ライン目から7ライン目までが空白部とみな
し、識別番号のみ符号化する。
FIG. 5(b) shows an example of the line identification signal. If the pixels of one line are arranged serially in RGBRGB, a 2-bit line identification number is attached to the beginning. As shown in the figure, if it is the 1st line, 2 bits such as 10 are added if it is the 2nd line. In addition, a skip signal is attached as shown in the 1-bit diagram, and RG of 1 line
It is 0 only when all B are O, and 1 otherwise. In the example shown in the figure, the fourth line to the seventh line is regarded as a blank section, and only the identification number is encoded.

第5図(a)は符号同期発生部12の詳細ブロック図を
示したものである。画像信号R,G、 Bはパラレルに
符号同期発生部12に入力される。12−1゜12−2
.12−3はRGBそれぞれ1ライン分を記憶するライ
ンメモリである。したがってラインメモリの出力12−
10.12−11.12−12は1ライン前の画像信号
が出力される。
FIG. 5(a) shows a detailed block diagram of the code synchronization generating section 12. The image signals R, G, and B are input in parallel to the code synchronization generator 12. 12-1゜12-2
.. 12-3 is a line memory that stores one line each of RGB. Therefore, the output 12- of the line memory
At 10.12-11.12-12, the image signal of the previous line is output.

12−4. 12−5. 12−6はそれぞれ各ライン
のデータに“l”が存在するかを検知する信号検知部で
、フリップフロップ等で簡単に構成できる。その出力1
2−13. 12−14. 12−15は1ラインのデ
ータがすべて“0”の場合のみ0を出力する。
12-4. 12-5. Reference numeral 12-6 denotes a signal detection unit that detects whether "l" exists in the data of each line, and can be easily constructed using flip-flops or the like. Its output 1
2-13. 12-14. 12-15 outputs 0 only when all data on one line is "0".

12−7は負論理のアンド回路であり、すなわち出力1
2−13. 12−14. 12−15がすべて0のと
き0となる。従って、1ラインのRGB画素がすべて0
のときのみ12−17が0となる。この信号は第5図(
b)のスキップ信号に相当する。
12-7 is a negative logic AND circuit, that is, output 1
2-13. 12-14. It becomes 0 when all 12-15 are 0. Therefore, all RGB pixels of one line are 0.
12-17 becomes 0 only when . This signal is shown in Figure 5 (
This corresponds to the skip signal in b).

12−8はラインカウント部で、12−6に2bitで
第5図(b)のようなライン識別番号を出力する。
12-8 is a line counting section, which outputs a 2-bit line identification number as shown in FIG. 5(b) to 12-6.

12−17と12−16が識別信号D−SYNC120
となる。12−9は識別番号状態発生部であり、3ビツ
トのD−8YNC120のそれぞれのビットが固有とな
るように状態を決定し、s t −S Y N C12
1を出力する。
12-17 and 12-16 are identification signals D-SYNC120
becomes. Reference numeral 12-9 is an identification number state generating unit, which determines the state so that each bit of the 3-bit D-8YNC120 is unique, and
Outputs 1.

第4図(a)は状態予測部13(第1図)の詳細ブロッ
ク図である。画素信号R,G、 Bはそれぞれ220、
221.222から状態予測部13へ入力する。
FIG. 4(a) is a detailed block diagram of the state prediction unit 13 (FIG. 1). Pixel signals R, G, and B are each 220,
221 and 222 to the state prediction unit 13.

G、 Bの状態予測の詳細はRと同様なので省略する。The details of the state prediction for G and B are the same as for R, so they will be omitted.

13−1はlライン前の画素状態を記憶するラインメモ
リ、131−138は符号化画素の周囲画素を記憶する
ためのラッチである。符号化画素はラッチ136に記憶
された値である。
Reference numeral 13-1 is a line memory for storing the pixel state one line before, and latches 131-138 are for storing surrounding pixels of the encoded pixel. The encoded pixel is the value stored in latch 136.

ラッチ131〜135,137,138は符号化画素の
周囲7画素である。これらはセレクタ13−3へ参照画
素値13−4として入力される。また、修正された符号
化画素値13−5も同様にセレクタ13−3へ入力され
る。
Latches 131 to 135, 137, and 138 are seven pixels around the encoded pixel. These are input to the selector 13-3 as a reference pixel value 13-4. Further, the corrected encoded pixel value 13-5 is similarly input to the selector 13-3.

同様にG画素信号の場合も周囲7画素が参照画素値13
−6へ9、そして、符号化画素13−7とともにセレク
タ13−3へ、R画素信号も、それぞれ参照画素値13
−8.符号化画素13−9として出力される。セレクタ
13−3では、パラレルに入力したR、 G、 B符号
化画素及び参照画素を3倍のクロックスピードでシリア
ルにR,G、  B、  R,G、  B、・・・と符
号器11(第1図)へ出力する。
Similarly, in the case of a G pixel signal, the surrounding 7 pixels have a reference pixel value of 13.
-6 to 9, and the R pixel signal also goes to the selector 13-3 together with the encoded pixel 13-7, each with a reference pixel value of 13.
-8. It is output as encoded pixel 13-9. The selector 13-3 serially inputs R, G, B encoded pixels and reference pixels input in parallel to R, G, B, R, G, B, . . . and the encoder 11 ( Figure 1).

第4図(b)は符号化状態5t206を決定するための
参照画素説明図である。(a)はR画素信号の参照画素
を示しており苦で示した符号化画素周囲の符号化済の7
画素を参照することを表している。
FIG. 4(b) is an explanatory diagram of reference pixels for determining the encoding state 5t206. (a) shows the reference pixel of the R pixel signal, and the encoded 7 pixels around the encoded pixel shown in black are shown in (a).
Indicates that a pixel is referenced.

(b)はG画素信号の参照画素を示しており、(a)と
同様の7画素および符号化画素と同位置の2画素をあわ
せて8画素を参照することを表わしている。
(b) shows the reference pixels of the G pixel signal, and represents that eight pixels are referred to, including seven pixels similar to (a) and two pixels at the same position as the encoded pixel.

また、第5図(c)はBの画素信号の参照画素を示して
おり、(a)と同様の7画素およびRおよびGの符号化
画素と同位置の画素をあわせて9画素を参照することを
表わしている。
Furthermore, FIG. 5(c) shows the reference pixels of the B pixel signal, and refers to 9 pixels including the same 7 pixels as in (a) and the pixels at the same position as the R and G encoded pixels. It represents that.

このように同色の周囲画素を参照することに加えて、既
に符号化済の他色画素を参照することにより符号器11
での予測−政事を上げて符号化効率を向上させることが
できる。第4図(b)で示した各色毎の参照画素および
符号化画素をセレクタ13−3は、カラー指示信号に同
期して選択し、符号化画素信号13−11および、符号
化状態5t13−12として出力する。
In addition to referring to surrounding pixels of the same color in this way, the encoder 11
Prediction in - policy can be increased to improve coding efficiency. The selector 13-3 selects the reference pixel and encoded pixel for each color shown in FIG. Output as .

13−13は符号化画素が同期識別番号かを選択するセ
レクタである。ライン同期信号13−14により、ライ
ンの先頭であるときは、符号化画素信号りとして、符号
同期発生部で生成した識別番号D−5YNC120を選
択し、また、状態予測信号5t206として、識別番号
状態5t−3YNC121を選択する。1ラインの画像
中の場合は、D203に符号化画素信号D13−11を
、状態予測信号5t206には符号化画素の周囲状態1
3−12を選択する。
13-13 is a selector for selecting whether the encoded pixel is a synchronization identification number. When the line synchronization signal 13-14 is at the beginning of the line, the identification number D-5YNC120 generated in the code synchronization generator is selected as the encoded pixel signal, and the identification number state is selected as the state prediction signal 5t206. Select 5t-3YNC121. In the case of one line of image, the encoded pixel signal D13-11 is input to D203, and the surrounding state 1 of the encoded pixel is input to the state prediction signal 5t206.
Select 3-12.

D−3YNC120は3ビツトシリアルにD203とし
て処理される。そのときの識別番号状態は符号化画素周
囲状態13−12にない状態を選択すればよい。本実施
例の場合、参照状態が最大9画素子カラー指示信号2ビ
ット、すなわち11ビツトであるため12bit (7
)状態X’ 801’ 、 X’ 802’X’ 80
3’ を用いている。ここでXはへキサを表わす。
D-3YNC120 is processed as 3-bit serial D203. For the identification number state at that time, a state that is not in the encoded pixel surrounding state 13-12 may be selected. In the case of this embodiment, the reference state is 12 bits (7
) state X'801',X'802'X' 80
3' is used. Here, X represents hexa.

したがって符号器11へは符号化画素信号と識別信号は
区別なく符号化することができる。
Therefore, the encoder 11 can encode the encoded pixel signal and the identification signal without distinction.

第2図は符号器11のブロック図である。FIG. 2 is a block diagram of the encoder 11.

第2図の説明の前に、本実施例で用いた算術符号につい
て説明する。
Before explaining FIG. 2, the arithmetic codes used in this embodiment will be explained.

従来から知られている様に、算術符号は、入力信号列を
小数2進数で表わされる符号になるように算術演算によ
り符号形成がなされる方法である。この方法はLang
donおよびR15sanenらによる文献“Comp
ression  of  Black / Whit
eImages with Arithmetic C
oding 、 IEEETran  Com、C0M
−29,6,(1981,6)等に発表されている。こ
の文献によるとすでに符号化した入力信号列を81劣勢
シンボル(LPS)の出る確率をq1演算レジスタAu
gendをA (S)、符号レジスタをC(S)とした
時に、入力信号ごとに以下の算術演算を行う。
As is conventionally known, arithmetic coding is a method in which a code is formed by arithmetic operations so that an input signal string becomes a code expressed in binary decimal numbers. This method uses Lang
The document “Comp
Ression of Black / White
eImages with Arithmetic C
oding, IEEETran Com, C0M
-29, 6, (1981, 6), etc. According to this document, the probability that 81 least-likely symbols (LPS) will appear in an input signal sequence that has already been encoded is calculated using q1 calculation register Au.
When the gend is A (S) and the code register is C (S), the following arithmetic operation is performed for each input signal.

A(Sl)=A(S)Xq特A(S)X2−Q  ・・
・(1)A(SO) = <A(S)−A(SL):)
z    ・・・(2)<>lは有効桁12 bitで
打ち切りを表すc(so)=C(S)        
   ・・・(3)C(Sl)=C(S)+A(So)
      ・・・(4)ここて、符号化データが優勢
シンボル(MPS :上の例では0)の場合はA (S
o)、 C(So)を次のデータの符号化に使う。また
劣勢シンボル(LPS:上の例では1)の場合は、A 
(Sl)、 C(Sl)を次のデータの符号化に使う。
A(Sl)=A(S)XqSpecial A(S)X2-Q...
・(1) A(SO) = <A(S)-A(SL):)
z...(2) <>l represents truncation with 12 significant digits c(so)=C(S)
...(3) C(Sl)=C(S)+A(So)
...(4) Here, if the encoded data is a dominant symbol (MPS: 0 in the above example), A (S
o), C(So) is used to encode the next data. In addition, in the case of the inferior symbol (LPS: 1 in the above example), A
(Sl) and C(Sl) are used to encode the next data.

新しいAの値は2S倍(Sは0以上の整数)され、0.
5<A<1.0の範囲におさめられる。この処理は、ハ
ードウェアでは演算レジスタAを8回シフトすることに
相当する。符号レジスタCに対しても同じ回数のシフト
が行われ、シフトアウトされた信号が符号となる。以上
の処理を繰り返し符号形成がなされる。
The new value of A is multiplied by 2S (S is an integer greater than or equal to 0) and 0.
It falls within the range of 5<A<1.0. This processing corresponds to shifting the calculation register A eight times in hardware. The code register C is also shifted the same number of times, and the shifted out signal becomes the code. The above process is repeated to form a code.

また、(1)の式で示したようにLPSの出現確率qを
2のべき乗(2−’:Qは正整数)で近似することによ
り、乗算計算をシフト演算に置き換えている。この近似
をさらによ(するためにqを、例えば(5)の式の如く
の2のべき乗の多項式で近似している。この近似により
効率最悪点の改善が行われている。
Further, as shown in equation (1), the occurrence probability q of LPS is approximated by a power of 2 (2-': Q is a positive integer), thereby replacing the multiplication calculation with a shift calculation. In order to further improve this approximation, q is approximated by a polynomial of a power of 2, such as the expression (5). This approximation improves the worst point of efficiency.

q、 2−Ql + 2−02           
・・・(5)また、算術符号は符号化データごとにQの
値を切換えることが可能なことから確率推定部を符号化
と分離することができる。
q, 2-Ql + 2-02
(5) Furthermore, since the arithmetic code allows the value of Q to be switched for each encoded data, the probability estimator can be separated from the encoding.

本実施例では前述のように符号化を行いながら確率を推
定していく動的な方法をとっている。
In this embodiment, as described above, a dynamic method is used in which the probability is estimated while performing encoding.

以上の算術符号を行う第2図の符号器11のブロック図
の説明を行う。
A block diagram of the encoder 11 shown in FIG. 2 that performs the above arithmetic coding will be explained.

状態予測回路13からの状態信号5t206は、カウン
タメモリ23、符号化条件メモリ24に入力される。
The state signal 5t206 from the state prediction circuit 13 is input to the counter memory 23 and the encoding condition memory 24.

符号化条件メモリ24には、状態信号5t206で表わ
される各状態毎に、出現しやすいシンボルである優勢シ
ンボルMPS108と、後述する算術符号のLPSの出
現確率を含む符号化条件を示すインデックス1107が
記憶されている。MP3108は予測変換回路27に入
力され、予測変換回路27では画素信号D203がMP
S108と一致した時に0となるYN信号lO1を作る
。YN信号101は更新回路25に入力され、更新回路
25では、YN信号が0の時に、カウンタメモリ23に
記憶されているカウント値のうち対応する状態のカウン
トをインクリメントする。そして、カウンタメモリ23
に記憶されているカウント値C106がカウントテーブ
ルROM12からの設定値MC105に一致したならば
、インデックス1107が大きくなる方向(LPSの出
現確率qが小さくなる方向)に更新する。(MPSの反
転は行わない。) 尚、カウントテーブルROM22は、LPSの出現確率
qを表わすインデックス■に対応して決められている爾
1表で示したMPSの数MC105を更新回路25に供
給する。
The coding condition memory 24 stores, for each state represented by the state signal 5t206, an index 1107 indicating a coding condition including a dominant symbol MPS108, which is a symbol that is likely to appear, and the probability of appearance of an arithmetic code LPS, which will be described later. has been done. MP3108 is input to the predictive conversion circuit 27, and the pixel signal D203 is input to the predictive conversion circuit 27.
Create a YN signal lO1 which becomes 0 when it matches S108. The YN signal 101 is input to the update circuit 25, and the update circuit 25 increments the count of the corresponding state among the count values stored in the counter memory 23 when the YN signal is 0. And counter memory 23
If the count value C106 stored in the count table ROM12 matches the set value MC105 from the count table ROM12, the index 1107 is updated in the direction of increasing (in the direction of decreasing the LPS appearance probability q). (The MPS is not inverted.) The count table ROM 22 supplies the update circuit 25 with the number MC105 of MPS shown in Table 1, which is determined corresponding to the index ■ representing the LPS appearance probability q. .

また、更新回路25では、MP3108と画素信号D2
03が不一致の場合、即ち、予測変換回路27からのY
N信号が1の時はインデックス1107が小さくなる方
向(LPSの出現確率qが大きくなる方向)に更新する
。また、インデックスが1の時に値が0のYN信号が来
ると、MPSを反転(0→lまたは1→O)する処理を
行う。出力I’ 109、MPS’ 110は更新後の
インデックスの値であり、符号化条件メモリ24に再記
憶される。
Furthermore, in the update circuit 25, the MP3108 and the pixel signal D2
03 does not match, that is, Y from the prediction conversion circuit 27
When the N signal is 1, the index 1107 is updated in the direction of decreasing (in the direction of increasing the LPS appearance probability q). Furthermore, when a YN signal with a value of 0 comes when the index is 1, processing is performed to invert the MPS (0→l or 1→O). The outputs I' 109 and MPS' 110 are the updated index values and are stored again in the encoding condition memory 24.

符号化パラメータ決定回路26では、インデックス11
07の値に基づいて算術符号の符号化パラメータQ11
1を算術符号器28にセットする。この算術符号器28
では、予測変換回路27からのYN信号101をパラメ
ータQlllを用いて算術符号化し符号102を得る。
In the encoding parameter determination circuit 26, the index 11
Coding parameter Q11 of arithmetic code based on the value of 07
1 is set in the arithmetic encoder 28. This arithmetic encoder 28
Now, the YN signal 101 from the predictive conversion circuit 27 is arithmetic encoded using the parameter Qllll to obtain a code 102.

尚、符号化条件メモリ24に初期値を与えておき、1、
MPSを更新しないようにすることにより、静的な符号
化が容易に実現できる。
Incidentally, an initial value is given to the encoding condition memory 24, and 1,
By not updating the MPS, static encoding can be easily achieved.

第8図は予測変換回路27のブロック図である。FIG. 8 is a block diagram of the predictive conversion circuit 27.

画素信号D203とMPS108がEX−OR回路29
に入力され、第2表の論理式に従って、画素信、号D2
03とMP3108が一致したときに01不一致のとき
に1となるYN信号101が出力される。
Pixel signal D203 and MPS108 are connected to EX-OR circuit 29
and according to the logical formula in Table 2, the pixel signal, signal D2
When 03 and MP3108 match, a YN signal 101 which becomes 1 when 01 does not match is output.

第3図は、更新回路25のブロック図である。YN信号
101がOの時、カウンタメモリ23からのカウント値
0106が加算器31で+1インクリメントされ、信号
C’l12になる。この値は比較器33でカウントテー
ブルROM22からのMC105と比較され、C′の値
がMCの値に一致したならば、更新信号UPA113を
セットする。またYN信号101は更新信号UPB11
4となり、UPA、UPBはインデックス変更回路35
に入る。また、UPAとUPEはOR回路37で論理O
Rがとられ、OR回路37の出力信号115はセレクタ
32の切り換え信号となる。
FIG. 3 is a block diagram of the update circuit 25. When the YN signal 101 is O, the count value 0106 from the counter memory 23 is incremented by +1 by the adder 31 and becomes the signal C'l12. This value is compared with MC105 from count table ROM 22 in comparator 33, and if the value of C' matches the value of MC, update signal UPA113 is set. Moreover, the YN signal 101 is an update signal UPB11.
4, and UPA and UPB are index change circuits 35
to go into. In addition, UPA and UPE are logically outputted by an OR circuit 37.
R is taken, and the output signal 115 of the OR circuit 37 becomes a switching signal for the selector 32.

セレクタ32では信号115が1の時はカウンタの値を
リセットするため0信号119を選び、それ以外は加算
器31の出力信号C’l12を選び、カウンタ更新信号
C’l16として出力し、これをカウンタメモリ23に
記憶させる。
When the signal 115 is 1, the selector 32 selects the 0 signal 119 to reset the counter value, and otherwise selects the output signal C'l12 of the adder 31 and outputs it as the counter update signal C'l16. It is stored in the counter memory 23.

インデックス変更回路35には、インデックスの更新き
ざみを制御する信号dl17(標準的にはd=1)とU
PA113.UPB114および符号化条件メモリ24
から現在のインデックス1107が入力されている。
The index change circuit 35 includes signals dl17 (standardly d=1) that control the index update increments and U
PA113. UPB 114 and encoding condition memory 24
The current index 1107 is input from .

第3表はインデックス変更回路35におけるインデック
ス更新方法を示すテーブルである(第3表には更新きざ
みがd=1とd=2の場合を示している。)このテーブ
ルを入力l1条件d、UPA、UPBで参照することに
より更新したインデックス1′を決定する。また、I=
1でUPB=1の時はEX信号118をセットする。E
X信号が1の時に反転器36では現在のMPS108の
シンボルを反転させ(0→1または1→0)、更新MP
S’ 110を得る。また、EX信号が0の時は MP
S’は変化させない。更新されたI’ 109およびM
PS’ 110は符号化条件メモリ24に記憶され、次
の処理用のインデックス■及びMPSとして用いられる
。尚、第3表に示した更新法は、ROMなどによりテー
ブルでも構成できるし、加減算器を使ってロジックで構
成することも可能である。
Table 3 is a table showing the index update method in the index change circuit 35 (Table 3 shows cases where the update increments are d=1 and d=2.) Input this table l1 condition d, UPA , UPB to determine the updated index 1'. Also, I=
1 and when UPB=1, EX signal 118 is set. E
When the X signal is 1, the inverter 36 inverts the symbol of the current MPS 108 (0→1 or 1→0) and updates the MPS
Obtain S'110. Also, when the EX signal is 0, MP
S' is not changed. Updated I' 109 and M
PS' 110 is stored in the encoding condition memory 24 and used as the index (2) and MPS for the next processing. Note that the updating method shown in Table 3 can be configured as a table using a ROM or the like, or can be configured as a logic using an adder/subtractor.

以上の如(,2のべき乗の多項式で近似したLPSの出
現確率qを表わすインデックス■の値に応じて定められ
たMPSの数分のMPSが発生したときには、インデッ
クス■をd加算し、算術符号に用いるLPSの出現確率
qを小さくせしめ、一方、LPsが発生したときには、
インデックス■をd減算し、算術符号に用いるLPSの
出現確率qを大きくせしめる。また、更にLPSの出現
確率qが0.5を表わすインデックスIが1の状態にお
いてLPSが発生した場合は、MPSを反転する。
As described above (, when MPSs as many as the number of MPSs determined according to the value of the index ■ representing the appearance probability q of an LPS approximated by a polynomial of a power of 2 are generated, the index ■ is added by d, and the arithmetic code is The appearance probability q of LPS used for is made small, and on the other hand, when LPs occur,
The index ■ is subtracted by d to increase the appearance probability q of LPS used for arithmetic codes. Furthermore, if an LPS occurs in a state where the index I representing the LPS appearance probability q is 0.5 is 1, the MPS is inverted.

この様に、入力画像に適応的にインデックス及びMPS
を更新することにより、符号化効率の良い算術符号化が
達成できる。
In this way, the index and MPS are adaptively applied to the input image.
By updating , arithmetic coding with high coding efficiency can be achieved.

第6図は本実施例で用いる算術符号の符号化効率曲線で
ある。以下、インデックスIの値を小文字iで示す。こ
の曲線はLPSの出現確率をq1符号化時での近似確率
qeiとした時に式(6)で示される。
FIG. 6 is a coding efficiency curve of the arithmetic code used in this embodiment. Hereinafter, the value of index I will be indicated by a lowercase letter i. This curve is expressed by equation (6) when the LPS appearance probability is the approximate probability qei at the time of q1 encoding.

そして、LPSの出現確率qの値の大きい方から小さい
方へ、順次インデックスIを1. 2. 3.・・・と
付与する。
Then, the index I is sequentially set to 1. 2. 3. ...and given.

ここで、分子はエントロピであり、qelは式(7)で
示される値である。
Here, the numerator is entropy, and qel is the value shown by formula (7).

q*I=q 1 +q 2          ・・・
(7)q11Q2の値は2のべき乗の多項近似の値で第
5表で与えられている。例えば(8)〜(10)で示さ
れる。
q*I=q1+q2...
(7) The value of q11Q2 is a polynomial approximation value of a power of 2 and is given in Table 5. For example, it is shown by (8) to (10).

qel  =2−’                
 ・・・ (8)qa2  =2−’−2−’    
          −(9)q e3’  ” 2−
2+ 2−”             ・・・ (1
0)となり、この確率において効率ηが1.0になるピ
ーク点となるqelを以降実効確率と呼ぶ。また効率曲
線の交点を境界確率qbiと呼び、この確率を境に隣り
の実効確率を使って符号化するほうが効率が向上するこ
とは明らかである。
qel =2-'
... (8) qa2 = 2-'-2-'
-(9)q e3' ” 2-
2+ 2-"... (1
0), and the peak point qel at which the efficiency η becomes 1.0 in this probability will be referred to as the effective probability hereinafter. Furthermore, it is clear that the efficiency is improved by calling the intersection of the efficiency curves the boundary probability qbi, and encoding using the effective probabilities adjacent to this probability.

本実施例では、式(5)で示したように2つの項で近似
できる確率から第4表に示した実効確率qmlを選んで
いる。また、第4表のQl、Q2.Q3は算術符号器2
8に送るパラメータQ、111である。即ち、Ql、Q
2はシフトレジスタへ与えるシフト量であり、このシフ
ト演算により2のべき乗計算を行っている。また、Q3
は第2項めの係数を示し、+、−の切り換えを行う。
In this embodiment, the effective probability qml shown in Table 4 is selected from the probabilities that can be approximated by two terms as shown in equation (5). Also, Ql, Q2 in Table 4. Q3 is arithmetic encoder 2
This is the parameter Q, 111 sent to 8. That is, Ql, Q
2 is the shift amount given to the shift register, and this shift operation is used to calculate the power of 2. Also, Q3
indicates the coefficient of the second term, and switches between + and -.

第1表のMCの値は、以下のように決定している。The values of MC in Table 1 are determined as follows.

即ち、LPSの数をNL、MPSの数をNMとした時、
LPSの発生確率は式(11)で与えられる。
That is, when the number of LPS is NL and the number of MPS is NM,
The probability of LPS occurrence is given by equation (11).

この式をNyで解(と式(12)になる。This equation is solved by Ny (and becomes equation (12).

N M = L N L (1/ q −1) J  
   ・・・(12)ただしLX」は小数点以下の切り
上げを表す。
N M = L N L (1/ q -1) J
...(12) However, "LX" indicates rounding up to the decimal point.

式(12)におけるqに第6図に示したqbiを与える
ことにより、そこでの優勢シンボル(MPS)の数N 
Miが計算される。したがって、MCは式(13)から
計算される。
By giving qbi shown in FIG. 6 to q in equation (12), the number of dominant symbols (MPS) there
Mi is calculated. Therefore, MC is calculated from equation (13).

MCi = NMt++ −NMt         
・・・(13)第1表のMCの値は式(11)、  (
12)、  (13)からN L = 2として計算し
たものである。
MCi = NMt++ −NMt
...(13) The value of MC in Table 1 is expressed by formula (11), (
12) and (13) with N L = 2.

この様に、第6図示の如くの各境界確率qbtに基づい
て各インデックスIに対応した優勢シンボルMPSの数
N Miを求め、隣り合ったインデックス間の優勢シン
ボルNMの差を各インデックスIに対するMCとする。
In this way, the number NMi of dominant symbols MPS corresponding to each index I is determined based on each boundary probability qbt as shown in FIG. shall be.

そして、このMCの値と発生する優勢シンボルの数を前
述の如く比較し、MCの値と優勢シンボルの数が一致し
たならば、その状態は隣りのインデックスIを用いた符
号化が適した状態と判断して、インデックスIを変更す
る。これによって、優勢シンボルの発生数を基にして良
好なタイミングでインデックスIの変更がなされ、且つ
、最適なインデックスIを用いた符号化を適応的に達成
できる。
The value of this MC and the number of generated dominant symbols are compared as described above, and if the value of MC and the number of dominant symbols match, the state is suitable for encoding using the neighboring index I. It is determined that index I is changed. As a result, the index I is changed at a good timing based on the number of dominant symbols generated, and encoding using the optimum index I can be adaptively achieved.

第7図は算術符号器28のブロック図である。FIG. 7 is a block diagram of the arithmetic encoder 28.

符号パラメータ決定回路26で決められたコントロール
信号Qclll(第4表)のうちシフトレジスタA70
にQlを、シフトレジスタBにQ 2 、セレクタ72
にQ3が入力される。Ql、Q2はそれぞれシフトレジ
スタA、  Hに対してAugend信号であるA s
 123を何bit右にシフトするかを指示する。
Of the control signals Qclll (Table 4) determined by the code parameter determination circuit 26, the shift register A70
Ql to shift register B, Q 2 to shift register B, selector 72
Q3 is input to . Ql and Q2 are Augend signals for shift registers A and H, respectively.
Indicates how many bits to shift 123 to the right.

シフトされた結果が出力信号130,131となる。The shifted results become output signals 130 and 131.

信号131は、反転器76により補数がとられ、セレク
タ72はコントロール信号Q3により信号131又は反
転器76の出力信号を選択し、出力信号132を得る。
The signal 131 is complemented by the inverter 76, and the selector 72 selects the signal 131 or the output signal of the inverter 76 using the control signal Q3 to obtain the output signal 132.

加算器73ではシフトレジスタA70からの信号130
とセレクタ72からの信号132の加算が行われ、AS
I信号124が出力される。減算器74では、As信号
123からAs+信号124を減算し、As。
Adder 73 receives signal 130 from shift register A70.
and the signal 132 from the selector 72 are added, and AS
An I signal 124 is output. The subtracter 74 subtracts the As+ signal 124 from the As signal 123 to obtain As.

信号125を得る。セレクタ75ではAso信号125
とASI信号124のいずれかをYN信号101により
選択する。即ちYN信号が1の時はAso信号が、また
、YN信号がOの時はASI信号がA′信号126にな
る。シフト回路80ではA′信号のMSBが1になるま
で左ヘシフトする処理が行われ、このシフトによりAS
′信号127が得られる。このシフトの回数に相当する
シフト信号132は、コードレジスタ79に入り、コー
ドレジスタ79からはシフト回数に相当する数のbit
がKSBから順番に出力され符号データ130になる。
A signal 125 is obtained. The selector 75 receives the Aso signal 125.
and the ASI signal 124 are selected by the YN signal 101. That is, when the YN signal is 1, the Aso signal becomes the A' signal 126, and when the YN signal is O, the ASI signal becomes the A' signal 126. In the shift circuit 80, processing is performed to shift the A' signal to the left until the MSB becomes 1, and this shift causes the AS
' signal 127 is obtained. The shift signal 132 corresponding to the number of shifts enters the code register 79, and from the code register 79, bits corresponding to the number of shifts are sent.
are output in order from KSB to become code data 130.

符号データ130は、図示しないbit処理方法にて、
bitlの連続が有限個内になるように処理され、復号
器14側に伝送されることになる。
The code data 130 is processed using a bit processing method (not shown).
The bitl sequence is processed so that it is within a finite number of bits, and is transmitted to the decoder 14 side.

また、コードレジスタ79の内容CR128は加算器7
7でAso信号125と加算され、セレクタ78に入る
。また、Aso信号125の加算されていない信号CR
128もセレクタ78に入り、YN信号101が1の時
はCR’ =CR,YN信号がOの時はCR’ =CR
十AsoとなるCR’信号129として出力される。
Further, the content CR128 of the code register 79 is stored in the adder 7
7, it is added to the Aso signal 125 and enters the selector 78. Also, the signal CR to which the Aso signal 125 is not added is
128 also enters the selector 78, when the YN signal 101 is 1, CR' = CR, and when the YN signal is O, CR' = CR
It is output as a CR' signal 129 which is 10Aso.

コードレジスタ79に関して前述したシフト処理はCR
’信号に対して行う。
The shift processing described above regarding the code register 79 is CR
'Do this for the signal.

以上の実施例では2値R,G、  Bカラー画像を符号
化する際、各ラインを識別する識別番号として、ライン
識別番号2ビツトと空白スキップ信号1ビツトを用いた
が、ライン識別番号とスキップ信号独立に用いることが
できる。またライン識別番号は2bitより多くするこ
とにより、よりエラー検知を正確に行うことができる。
In the above embodiment, when encoding a binary R, G, B color image, a 2-bit line identification number and a 1-bit blank skip signal were used as identification numbers to identify each line. Can be used independently as a signal. Furthermore, by setting the line identification number to more than 2 bits, error detection can be performed more accurately.

以上の様に、各色信号たとえばR,G、 B信号を画素
単位に順番に符号化し、色情報が混在した1つの符号デ
ータを生成する。符号生成する際、各ラインの先頭にラ
インを識別するコードを挿入することにより、エラー発
生時はライン単位でエラー検知をすることができる。ま
た、ライン識別コードと他の画素と同様に予測符号化を
行うことにより、ライン識別コードを含めた符号効率の
低下を最小限にとどめることができる。
As described above, each color signal, such as the R, G, and B signals, is sequentially encoded pixel by pixel to generate one piece of code data in which color information is mixed. When generating codes, by inserting a code that identifies the line at the beginning of each line, it is possible to detect errors line by line when an error occurs. Further, by performing predictive encoding on the line identification code in the same way as other pixels, it is possible to minimize the reduction in coding efficiency including the line identification code.

また、同時にライン識別コードに空白ラインスキップ符
号を加え、同様な予測符号を行うことにより、符号化効
率、符号化スピードを向上させるものである。
Furthermore, by simultaneously adding a blank line skip code to the line identification code and performing similar predictive coding, coding efficiency and coding speed are improved.

第1表 第2表 (−)はdon’ c a r e。Table 1 Table 2 (-) is don' c a r e.

12・・・符号同期発生部 13・・・状態予測部 〔発明の効果〕 以上説明したように、本発明では各ラインに識別番号を
付加し、これを符号化画素と同様に符号化することによ
り、デユード中に発生したエラーの場所をライン単位で
検知することができる。また、更に識別番号に空白スキ
ップラインを追加することにより符号化効率を向上する
と同時に符号化スピードも向上させた。
12... Code synchronization generation unit 13... State prediction unit [Effects of the invention] As explained above, in the present invention, an identification number is added to each line and this is encoded in the same way as the encoded pixels. This makes it possible to detect the location of errors that occur during dud on a line-by-line basis. Furthermore, by adding a blank skip line to the identification number, the encoding efficiency and the encoding speed were improved at the same time.

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

第1図はカラー画像の伝送システムのブロック図、第2
図は符号器のブロック図、 第3図は更新回路のブロック図、 第4図(a)は状態予測部の詳細ブロック図、第4図(
b)は参照画素説明図、 第5図(a)は符号同期発生部の詳細ブロック図、第5
図(b)はライン識別の例を示す図、第6図は符号化効
率曲線を示す図、 第7図は算術符号器のブロック図、 第8図は予測変換回路のブロック図である。 11・・・符号器 第 う 図 田ロロ図 82GB=− 1101;l!GB +111<GB−− ooogctB D D I  RGB  −− 0/ OF’(3B  −−− 0/IRGB−−− 10DR(iB−−− インテニクス。 ”$4=
Figure 1 is a block diagram of a color image transmission system, Figure 2 is a block diagram of a color image transmission system.
Figure 3 is a block diagram of the encoder, Figure 3 is a block diagram of the update circuit, Figure 4 (a) is a detailed block diagram of the state prediction section, Figure 4 (
b) is a reference pixel explanatory diagram, FIG. 5(a) is a detailed block diagram of the code synchronization generation section, and FIG.
FIG. 6 is a diagram showing an example of line identification, FIG. 6 is a diagram showing a coding efficiency curve, FIG. 7 is a block diagram of an arithmetic encoder, and FIG. 8 is a block diagram of a predictive conversion circuit. 11...Encoder diagram 82GB=-1101;l! GB +111<GB-- ooogctB D DI RGB -- 0/ OF' (3B --- 0/IRGB --- 10DR (iB --- Intenix. "$4=

Claims (3)

【特許請求の範囲】[Claims] (1)複数の色成分信号により表される2値カラー画像
符号化方式において、画像ライン毎に識別信号を付加し
、該識別信号と画像信号を同じ信号系列とみなし、予測
符号化することを特徴とするカラー画像符号化方式。
(1) In a binary color image encoding method represented by multiple color component signals, an identification signal is added to each image line, and the identification signal and image signal are regarded as the same signal sequence and predictive coding is performed. Characteristic color image encoding method.
(2)請求項(1)において、前記識別信号はライン番
号を識別する信号を含むことを特徴とするカラー画像符
号化方式。
(2) The color image encoding method according to claim (1), wherein the identification signal includes a signal for identifying a line number.
(3)請求項(1)において、前記識別信号は従属する
ラインを符号化せずスキップできるか否かを示す信号を
含むことを特徴とするカラー画像符号化方式。
(3) A color image encoding method according to claim (1), wherein the identification signal includes a signal indicating whether or not dependent lines can be skipped without being encoded.
JP2109653A 1990-04-24 1990-04-24 Color picture coding system Pending JPH046956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2109653A JPH046956A (en) 1990-04-24 1990-04-24 Color picture coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2109653A JPH046956A (en) 1990-04-24 1990-04-24 Color picture coding system

Publications (1)

Publication Number Publication Date
JPH046956A true JPH046956A (en) 1992-01-10

Family

ID=14515743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2109653A Pending JPH046956A (en) 1990-04-24 1990-04-24 Color picture coding system

Country Status (1)

Country Link
JP (1) JPH046956A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5420199A (en) * 1992-02-25 1995-05-30 Teijin Limited Thermoplastic polyester resin composition containing polybutylene terephthalate, modified polyolefin and polycarbonate resins

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5420199A (en) * 1992-02-25 1995-05-30 Teijin Limited Thermoplastic polyester resin composition containing polybutylene terephthalate, modified polyolefin and polycarbonate resins

Similar Documents

Publication Publication Date Title
EP0395394B1 (en) Image encoding method
US5363219A (en) Image processing method and apparatus
US5317411A (en) Image encoding
US5844718A (en) Image processing apparatus and method in which multi-level color signal with removed edge component is encoded
US5903366A (en) Color image encoding method
JPH046956A (en) Color picture coding system
JP2877451B2 (en) Image coding method
JP2675903B2 (en) Image coding method
JPH046955A (en) Color picture coding system
US6058216A (en) Apparatus for encoding image data
JPH046948A (en) Binarizing method for color picture
JPH02285774A (en) Color picture coding system
JP2952007B2 (en) Image coding device
JP2815510B2 (en) Motion vector calculation circuit for color difference signal
JPH0393359A (en) Color picture coding system
JP2872334B2 (en) Color image encoding device
JPH03102967A (en) Color image encoding system
JP2810478B2 (en) Image coding device
JPH046954A (en) Picture prediction coding system
JP3119373B2 (en) Image coding device
JPH0393358A (en) Color picture coding system
JPH0393357A (en) Color picture coding system
JP2832059B2 (en) Color image encoding device
JPH05145766A (en) Image processor
JPH0522605A (en) Image processing method and device