JPH0537785A - Coding method for definite bit picture - Google Patents

Coding method for definite bit picture

Info

Publication number
JPH0537785A
JPH0537785A JP3191487A JP19148791A JPH0537785A JP H0537785 A JPH0537785 A JP H0537785A JP 3191487 A JP3191487 A JP 3191487A JP 19148791 A JP19148791 A JP 19148791A JP H0537785 A JPH0537785 A JP H0537785A
Authority
JP
Japan
Prior art keywords
bit
pixel
coded
picture
data
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.)
Withdrawn
Application number
JP3191487A
Other languages
Japanese (ja)
Inventor
Hideshi Osawa
秀史 大澤
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 JP3191487A priority Critical patent/JPH0537785A/en
Publication of JPH0537785A publication Critical patent/JPH0537785A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To improve the compression rate when a definite bit picture is coded by detecting coincidence/dissidence between a coded picture element and a surrounding picture element and coding the picture depending on the detection. CONSTITUTION:A picture data signal 100 (4 bits) inputted from a picture input means 10 is inputted to a line memory 12, in which several lines of data are stored. A coincidence detection circuit 11 discriminates to which picture element of surrounding picture elements the coded picture element is coincident and outputs a 2-bit signal 102. The discrimination is implemented for scanning of all pattern to obtain a data of a first half of coding and the result is stored in a memory 15. A bit stream generator 13 collects each bit of a coded picture element around which no coincident picture element is in existence and sends the result to a coding section 14, in which the signal is coded and the result is stored in the memory 15 as a latter half coding data. The stored data is subjected to decode processing by a decoder 16 and the result is displayed on a display device 17.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、デジタルメモリの容量
の制限から、数ビツトで表される色数(例えば4ビツト
で表される16色)に限定されたカラー画像処理装置の
ための限定ビツト画像の符号化方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is limited to a color image processing apparatus which is limited to the number of colors represented by several bits (for example, 16 colors represented by 4 bits) due to the limitation of the capacity of a digital memory. The present invention relates to a bit image encoding method.

【0002】[0002]

【従来の技術】従来の画像符号化方法としては、一般に
CCITT(国際電信電話諮問委員会)で勧告されてい
るG3,G4フアクシミリに代表されるランレングス符
号化方式が用いられている。この符号化方式は、白また
は黒の画素が続く長さ(ランレングス)をカウントし、
予め用意された符号表からそのカウント値に対応する符
号を決定する方式である。ここで用いられている符号表
は、文書画像に多い長い白ランに対して比較的短い符号
を割り当てるような特徴づけがされている。
2. Description of the Related Art As a conventional image encoding method, a run length encoding method represented by G3 and G4 facsimiles generally recommended by CCITT (International Telegraph and Telephone Consultative Committee) is used. This encoding method counts the length (run length) of white or black pixels,
This is a method of determining a code corresponding to the count value from a code table prepared in advance. The code table used here is characterized by assigning a relatively short code to a long white run which is often found in a document image.

【0003】[0003]

【発明が解決しようとしている課題】ところで、画素あ
たり数ビツトの画像を符号化する方法として、上記の方
式を数ビツト画像の各ビツトプレーンごとに適応する方
式が考えられるが、この方式ではビツト間の相関情報を
利用していないことにより圧縮率が上がらないという問
題がある。
By the way, as a method for encoding an image of several bits per pixel, a method in which the above method is applied to each bit plane of several bit images is conceivable. There is a problem that the compression rate does not increase because the correlation information of is not used.

【0004】本発明は、前記従来の欠点を除去し、限定
ビツト画像を効率良く且つ圧縮率を高めて符号化する限
定ビツト画像の符号化方法を提供する。
The present invention provides a limited bit image encoding method which eliminates the above-mentioned conventional drawbacks and which efficiently encodes a limited bit image at a high compression rate.

【0005】[0005]

【課題を解決するための手段】この課題を解決するため
に、本発明の限定ビツト画像の符号化方法は、1画素あ
たり数ビツトで表わされる限定ビツト画像を符号化する
限定ビツト画像の符号化方法であつて、符号化画素と周
囲画素との一致/不一致を検出し、一致する周囲画素が
ある場合は一致画素の位置に基づいて符号化を行い、一
致する周囲画素がない場合は各符号化画素のビツトに基
づいて符号化を行う。ここで、前記各符号化画素のビツ
トに基づく符号化は、符号化画素を周囲画素に基づいて
予測する予測符号化である。
In order to solve this problem, a limited bit image encoding method of the present invention is a limited bit image encoding for encoding a limited bit image represented by several bits per pixel. In this method, the match / mismatch between the coded pixel and the surrounding pixels is detected, if there is a matching surrounding pixel, the coding is performed based on the position of the matching pixel, and if there is no matching surrounding pixel, each code is used. Encoding is performed based on the bit of the encoded pixel. Here, the bit-based encoding of each encoded pixel is a predictive encoding for predicting an encoded pixel based on surrounding pixels.

【0006】本発明によれば、周囲画素との一致を検出
し、一致した場所を示す信号と、一致しない画素に対し
て画素値の各ビツトを符号化することにより、数ビツト
画像を効率よく圧縮する。
According to the present invention, by detecting the coincidence with the surrounding pixels, and encoding the signal indicating the coincident position and each bit of the pixel value for the non-coincident pixels, the several-bit image can be efficiently displayed. Compress.

【0007】[0007]

【実施例】本発明の符号化方法を実現する画像表示装置
の構成を図1に示す。特に、画像表示装置では表示用デ
ジタルメモリの容量の制限から限定ビツトによる処理が
よく行われる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the configuration of an image display device which realizes the encoding method of the present invention. Particularly, in the image display device, the processing by the limited bit is often performed due to the limitation of the capacity of the display digital memory.

【0008】画像入力手段10から入力される画像デー
タ信号100(4ビツト)は、ラインメモリ12に入つ
て数ライン分が蓄えられる。一致検出回路11では、符
号化画素が周囲画素のどの画素と画素値が一致している
かを判定する。例えば、図2に示したように、左隣と一
致すれば“00”、左上と一致すれば“10”、真上と
一致すれば“01”、以上の3画素いずれとも一致しな
い場合は“11”のように、2ビツトの信号102が出
力される。これを全画面分走査して符号化の前半部分の
データとし、デイスク等のメモリ15に記憶する。
The image data signal 100 (4 bits) input from the image input means 10 is stored in the line memory 12 for several lines. The match detection circuit 11 determines which of the surrounding pixels the coded pixel matches with the pixel value. For example, as shown in FIG. 2, "00" if it matches the left neighbor, "10" if it matches the upper left, "01" if it matches directly above, and " A 2-bit signal 102 is output, such as 11 ″. This is scanned for the entire screen and is used as data in the first half of encoding, and is stored in the memory 15 such as a disk.

【0009】ビツトストリーム生成器13では、符号化
画素の周囲に一致画素がない符号化画素の各ビツトを集
め、これを算術符号を用いた符号化部14に送つて符号
化し、後半の符号化データとしてメモリ15に記憶す
る。これら一度蓄積されたデータは復号器16で復号処
理され、表示器17のモニタ等に表示される。
The bit stream generator 13 collects each bit of coded pixels having no matching pixel around the coded pixel, sends the bit to the coding section 14 using arithmetic code, and codes the latter half of the code. It is stored in the memory 15 as data. The data once accumulated is decoded by the decoder 16 and displayed on the monitor of the display unit 17 or the like.

【0010】図3は符号化データの構成を示したもの
で、1つの画像の符号化データの前半は全画像に対して
の周囲画素との一致判定結果、後半は周囲に一致画素が
ない場合の符号化画素の各ビツトの符号化データにな
る。
FIG. 3 shows the structure of the coded data. The first half of the coded data of one image is the result of matching judgment with surrounding pixels for all images, and the latter half is when there is no matching pixel in the surroundings. The encoded data of each bit of the encoded pixels of

【0011】図4に本実施例の符号化手順の概略フロー
チヤートを示す。まず、ステツプS1では一致画素を検
出し、ステツプS2でその結果を出力する。ステツプS
3では一致したものがない画素のみ各ビツト毎の符号化
を行う。次に、ステツプS4で符号化結果を出力する。
FIG. 4 shows a schematic flow chart of the encoding procedure of this embodiment. First, in step S1, a matching pixel is detected, and in step S2 the result is output. Step S
In 3, the encoding is performed for each bit only for pixels that do not match. Next, in step S4, the coding result is output.

【0012】以下、図5〜図9に従つて、図1の各構成
要素を更に詳細に説明する。
The respective constituent elements of FIG. 1 will be described in more detail below with reference to FIGS.

【0013】図5は周囲画素との一致検出回路11のブ
ロツク図である。ラインメモリ12から注目画素40の
周囲3画素41のデータ101が出力され、これらは比
較器42a〜42cで原信号と比較される。決定回路4
3では比較器42a〜42cの出力より、一致信号10
2を生成する。ここで、複数の画素値が一致することも
有り得るので、例えば左隣>真上>左上の順に優先順位
をつけておく。左隣と真上が一致した場合は左隣の一致
信号“00”が出力され、また左上と真上が一致した場
合真上の一致信号“01”が出力されることになる。
FIG. 5 is a block diagram of the coincidence detection circuit 11 with the surrounding pixels. The line memory 12 outputs the data 101 of the three pixels 41 surrounding the pixel of interest 40, and these are compared with the original signal by the comparators 42a to 42c. Decision circuit 4
3, the match signal 10 is output from the outputs of the comparators 42a to 42c.
Generates 2. Here, there is a possibility that a plurality of pixel values may match, so that priorities are set in the order of, for example, left-neighboring> right above> upper-left. When the left-hand side and the right-hand top match, the left-hand side match signal "00" is output, and when the left-hand side and the right top match, the right-hand top match signal "01" is output.

【0014】図6は符号化部14のブロツク図である。
ビツトストリーム生成器13からの一致する周囲画素の
ない符号化画素の4ビツト信号103は、パラレル・シ
リアル変換回路60に入り、1ビツト単位で符号化回路
62に送られる。これと同時に原信号の何ビツト目なの
かを示す信号120が予測状態決定回路61に送られ
る。
FIG. 6 is a block diagram of the encoding unit 14.
The 4-bit signal 103 of the encoded pixel having no corresponding surrounding pixel from the bit stream generator 13 enters the parallel-serial conversion circuit 60 and is sent to the encoding circuit 62 in 1-bit units. At the same time, a signal 120 indicating what the bit number of the original signal is is sent to the prediction state determination circuit 61.

【0015】図7は予測状態決定回路のブロツク図であ
る。
FIG. 7 is a block diagram of the prediction state determination circuit.

【0016】データバツフア70(70−0〜70−
3)は、ラインメモリ12からの信号104のビツト0
〜ビツト3に分けられた各ビツトプレーンに対して、周
囲7画素を参照することができるようにしたものであ
る。この7画素の情報は、セレクタ71に入力され信号
120の2ビツトによつて切り換えられる。
The data buffer 70 (70-0 to 70-
3) is bit 0 of the signal 104 from the line memory 12.
~ For each bit plane divided into bit 3, it is possible to refer to the surrounding 7 pixels. The information of 7 pixels is input to the selector 71 and switched by 2 bits of the signal 120.

【0017】さらに、符号化済みの注目画素データ72
(72−3〜72−1)をゲート部73に通す。符号化
ビツトが1番目(ビツト3)の時は全部“0”である。
2番目(ビツト2)の時はビツト3のみ有効で後は
“0”とし、3番目(ビツト1)の時はビツト3とビツ
ト2を有効で後は“0”とし、4番目(ビツト0)の時
はすべてのビツトを有効とする。以上の7+3=10ビ
ツトを符号化回路62に信号123として出力する。
Further, the coded pixel data of interest 72 is encoded.
(72-3 to 72-1) is passed through the gate portion 73. When the encoding bit is the first (bit 3), all are "0".
At the time of the second (bit 2), only bit 3 is valid and the subsequent "0" is set, and at the time of the third (bit 1), bit 3 and bit 2 are valid and the subsequent "0" is set and the fourth (bit 0). ), All bits are valid. The above 7 + 3 = 10 bits are output to the encoding circuit 62 as the signal 123.

【0018】以上の操作により、各符号化ビツトはその
周囲画素の同じビツトを7ビツト参照し、さらに2番目
のビツト以降はすでに符号化済みの符号化画素のビツト
を参照し、予測状態分けをしていることになる。
By the above operation, each coded bit refers to the same bit of its surrounding pixels by 7 bits, and from the second bit onward, the bit of the coded pixel which has already been coded is referred to determine the prediction state. You are doing it.

【0019】図8は符号化回路62に含まれている動的
算術符号器のブロツク図であり、80は予測状態決定回
路61から出力される信号123に対応してその状態を
示すインデツクスを記憶した予測状態メモリ、81は予
測状態メモリ80より出力されるインデツクス値により
劣勢シンボルの確率Pを出力する算術パラメータRO
M、83は算術パラメータROM81から出力される確
率P及び優勢シンボルMPSと符号化シンボルXnとに
より動的に算術符号化を行う算術符号器、82は優勢シ
ンボルMPSと符号化シンボルXnの一致/不一致の信
号YNに基づき予測状態メモリ80の値を更新するため
の予測更新器である。
FIG. 8 is a block diagram of the dynamic arithmetic encoder included in the encoding circuit 62, and 80 stores the index indicating the state corresponding to the signal 123 output from the prediction state determining circuit 61. Prediction state memory 81 is an arithmetic parameter RO for outputting the probability P of the inferior symbol according to the index value output from the prediction state memory 80.
M and 83 are arithmetic encoders that dynamically perform arithmetic encoding based on the probability P output from the arithmetic parameter ROM 81 and the dominant symbol MPS and the encoded symbol Xn, and 82 is a match / mismatch between the dominant symbol MPS and the encoded symbol Xn. Is a prediction updater for updating the value of the prediction state memory 80 based on the signal YN.

【0020】また、信号LSは符号化信号の最終ビツト
を示す信号で、図示しないコントローラから算術符号器
に与えられる。また、信号NSは次の符号化シンボルの
要求信号でバツフアコントローラに与えられる。
The signal LS is a signal indicating the final bit of the encoded signal, and is given to the arithmetic encoder from a controller (not shown). Further, the signal NS is given to the buffer controller as a request signal for the next coded symbol.

【0021】図9は算術パラメータROM81及び予測
更新器82内のUPDATE・ROMに格納されるデー
タ例である。
FIG. 9 shows an example of data stored in the arithmetic parameter ROM 81 and the UPDATE ROM in the prediction updater 82.

【0022】図10に図8中の算術符号器83のブロツ
ク図を示す。125は減算器、126a〜126cは乗
算器、127a〜127bはセレクタ、128a,12
8bはラツチ(以下のフローでは、128aは16ビツ
トのレジスタA、128bは17ビツトのレジスタCと
して説明される)、129は比較器、130は符号出力
器、131は加算器である。尚、図10の算術符号器8
3の動作については、以下にフローチヤートに従い詳細
に示される。
FIG. 10 is a block diagram of the arithmetic encoder 83 shown in FIG. Reference numeral 125 is a subtractor, 126a to 126c are multipliers, 127a to 127b are selectors, and 128a and 12a.
Reference numeral 8b is a latch (in the following flow, 128a is described as a 16-bit register A, 128b is described as a 17-bit register C), 129 is a comparator, 130 is a code output device, and 131 is an adder. Incidentally, the arithmetic encoder 8 of FIG.
The operation of No. 3 will be described in detail below according to the flow chart.

【0023】以上の構成により符号化されるが、以下図
11〜図18のフローチヤートに従いその動作を説明す
る。尚、以下のフローチヤートでは、上記構成の細部と
の対応ではなく動作の流れに重点が置かれている。
The encoding is performed with the above configuration, and its operation will be described below with reference to the flow charts of FIGS. In the following flow charts, the flow of operation is emphasized, not the correspondence with the details of the above configuration.

【0024】ENCODEサブルーチンでは、まずステ
ツプ11で初期セツトを行うためINITサブルーチン
(図12)へ飛ぶ。INITサブルーチンではステツプ
S111でレジスタCとバツフアBとカウンタSCを
“0”,レジスタAを“FFFF”(HEX) ,フラグST
FLGを“1”,CTを“11”に設定し、図11に戻
る。次に、ステツプS12で符号化シンボルXnを読み
出し、ステツプS13ではENCODEルーチン(図1
3)に飛ぶ。
In the ENCODE subroutine, first, in step 11, the initial set is performed, and the process jumps to the INIT subroutine (FIG. 12). In the INIT subroutine, in step S111, the register C, the buffer B, and the counter SC are "0", the register A is "FFFF" (HEX), and the flag ST is set.
The FLG is set to "1" and the CT is set to "11", and the process returns to FIG. Next, in step S12, the encoded symbol Xn is read out, and in step S13, the ENCODE routine (see FIG.
Fly to 3).

【0025】ENCODEサブルーチンでは、ステツプ
S131でインデツクスを予測状態メモリ80より読み
出し、算術パラメータPを決定する。次に、ステツプS
132でレジスタAと算術パラメータPを乗算してA1
とし、またAからA1を減算してA0とする。次に、ス
テツプS133でXnとMPSを比較し、XnとMPS
が一致したとき(予測が一致したとき)ステツプS13
4に進んでAをA0に代入する。ステツプS135でA
のMSB(最上位bit)が0のときは、ステツプS1
36でインデツクスをNMPSのテーブルに従つて更新
し、ステツプS137でRENORMEサブルーチン
(図14)へ飛ぶ。
In the ENCODE subroutine, the index is read from the prediction state memory 80 and the arithmetic parameter P is determined in step S131. Next, step S
At 132, the register A is multiplied by the arithmetic parameter P to obtain A1.
And subtract A1 from A to obtain A0. Next, in step S133, Xn and MPS are compared, and Xn and MPS are compared.
When the values match (when the predictions match), step S13
Proceed to 4 and substitute A into A0. A at step S135
If the MSB (most significant bit) of is 0, step S1
At 36, the index is updated according to the NMPS table, and at step S137, the RENORME subroutine (FIG. 14) is reached.

【0026】また、XnとMPSが不一致の時は、ステ
ツプS138に進んでCにA0を加算しCを更新し、A
1をAに代入する。そして、ステツプS139でインデ
ツクスに対応するスイツチが“1”の時は、ステツプS
140でMPSを反転する。インデツクスの値の更新
は、ステツプS141のようにNLPSのテーブルに従
い、ステツプS142でRENORMEサブルーチン
(図14)へ飛ぶ。
When Xn and MPS do not match, the process proceeds to step S138, C0 is added with A0 to update C, and A
Substitute 1 for A. When the switch corresponding to the index is "1" in step S139, step S139 is executed.
The MPS is inverted at 140. The update of the index value follows the NLPS table as in step S141, and jumps to the RENORME subroutine (FIG. 14) in step S142.

【0027】図14のRENORMEサブルーチンで
は、ステツプS145,S146でレジスタAのMSB
が“1”になるまでAとCを左シフトし、またカウンタ
CTをデクリメントする。CTが0になつたらステツプ
S147からS148に進んでBYTEOUTサブルー
チン(図15)に飛ぶ。
In the RENORME subroutine of FIG. 14, the MSB of the register A in steps S145 and S146.
A and C are left-shifted until is "1", and the counter CT is decremented. When CT reaches 0, the process proceeds from step S147 to step S148 to jump to the BYTEOUT subroutine (FIG. 15).

【0028】BYTEOUTサブルーチンでは、ステツ
プS151でCの19ビツトめから28ビツトめまでを
tempレジスタに取り出す。tempが“FF”Xより大きい
場合(27ビツトめにcarry がある場合)は、ステツプ
S152からS153に進んでBUFFERレジスタの
値を“1”加算してOUTPUTサブルーチン(図1
6)に飛ぶ。
In the BYTEOUT subroutine, in step S151, the 19th bit to the 28th bit of C are selected.
Extract to temp register. If temp is larger than "FF" X (if carry is present at the 27th bit), the process proceeds from step S152 to S153, where the value of the BUFFER register is incremented by "1" and the OUTPUT subroutine (Fig. 1).
Fly to 6).

【0029】OUTPUTサブルーチンではステツプS
165でSTFLGが“1”かを判定し、“1”のとき
はSTFLG=0に変更し、(図15)に戻る。これ
は、最初のOUTPUT処理のみ、Cレジスタの初期値
が入ってくるためこれを無効にするための処理である。
2回目以降は、1バイトのデータを外部(フアイル,回
線)に出力し(図15)に戻る。
In the OUTPUT subroutine, step S
At 165, it is determined whether STFLG is "1". When it is "1", STFLG = 0 is changed, and the process returns to (FIG. 15). This is a process for invalidating only the first OUTPUT process because the initial value of the C register is input.
After the second time, 1-byte data is output to the outside (file, line) and the process returns to FIG.

【0030】SCが0でない場合は、ステツプS15
4,S155でSC個の“00”Xを出力する。次に、
ステツプS156でtempの下位8ビツトをレジスタBU
FFERに書き込む。
If SC is not 0, step S15
4, SC "00" X is output in S155. next,
At step S156, the lower 8 bits of temp are set to the register BU.
Write to FFER.

【0031】一方、tempが“FF”Xの場合は、ステツ
プS157からS162に進んでカウンタSCをインク
リメントする。tempが“FF”以下の場合はステツプS
157からS158に進んでOUTPUTサブルーチン
(図16)に飛ぶ。次に、ステツプS159,S160
で“FF”をSC個出力する。そしてステツプS161
でtempの下位8ビツトをレジスタBUFFERに書き込
む。次に、ステツプS163でCレジスタにおいて出力
したビツトをクリアし、またCTを8に戻す。ステツプ
S12〜14の処理を全画素終了するまで繰り返し、最
終画素の処理が終ったら、ステツプS14からS15に
進んでFLUSHサブルーチン(図17)へ飛ぶ。
On the other hand, if temp is "FF" X, the flow advances from step S157 to S162 to increment the counter SC. If temp is less than "FF", step S
The process proceeds from S157 to S158 and jumps to the OUTPUT subroutine (FIG. 16). Next, steps S159 and S160.
Output SC of "FF". And step S161
Write the lower 8 bits of temp to register BUFFER. Next, in step S163, the bit output in the C register is cleared, and CT is returned to 8. The processes of steps S12 to S14 are repeated until all the pixels are completed, and when the process of the final pixel is completed, the process proceeds from step S14 to S15 to jump to the FLUSH subroutine (FIG. 17).

【0032】FLUSHサブルーチンでは、Cレジスタ
に残った符号の最終出力を行う。まず、ステツプS17
1で(C+A−1)の演算結果から上位16ビツトをte
mpに取り出し、tempがC以下だつたらステツプS172
からS173に進んでtempに“8000”Xを加算しC
とする。そうでない場合は、ステツプS174に進んで
tempにCを代入する。
In the FLUSH subroutine, the code remaining in the C register is finally output. First, step S17
Te the upper 16 bits from the calculation result of (C + A-1)
If it is taken out to mp and temp is C or less, step S172
To S173, add "8000" X to temp and C
And If not, proceed to step S174.
Substitute C for temp.

【0033】次に、ステツプS175でCをCTビツト
左シフトする。Cが“7FFFFFF”より大きい場合
は、ステツプS176からS177に進んでBUFFE
Rに1を加算し、OUTPUTサブルーチンへ飛ぶ。次
に、ステツプS178,S179で“00”XをSC個
出力する。また、Cが“7FFFFFF”より小さい場
合はステツプS176からS180に進んでBUFFE
Rの内容を出力し、ステツプS181,S182で“F
F”XをSC個出力する。最後に、ステツプS183で
Cレジスタの19ビツトから11ビツトまでを出力して
図11に戻る。以上の処理を最終画素が符号化されるま
で繰り返し行う。
Then, in step S175, C is left-shifted by the CT bit. If C is larger than "7FFFFFF", the process proceeds from step S176 to S177 and BUFFE.
Add 1 to R and jump to the OUTPUT subroutine. Next, in steps S178 and S179, SC "00" X are output. If C is smaller than "7FFFFFF", the process proceeds from step S176 to S180 and BUFFE.
The contents of R are output and "F" is output in steps S181 and S182.
Then, SC "F" X are output. Finally, in step S183, the 19th bit to the 11th bit of the C register are output and the process returns to Fig. 11. The above process is repeated until the final pixel is encoded.

【0034】以上説明したように、周囲画素との一致を
検出する手段と、一致した場所を示す信号と原信号を合
成するビツトストリーム生成手段、及びこのビツトスト
リームを符号化する手段を設けることにより、数ビツト
画像を効率よく圧縮することが可能となつた。
As described above, by providing the means for detecting the coincidence with the surrounding pixels, the bit stream generating means for synthesizing the signal indicating the coincident position and the original signal, and the means for encoding the bit stream. , It is possible to efficiently compress a few bit images.

【0035】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによつて達成される場合にも適用で
きることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0036】[0036]

【発明の効果】本発明により、限定ビツト画像を効率良
く且つ圧縮率を高めて符号化する限定ビツト画像の符号
化方法を提供できる。
According to the present invention, it is possible to provide a limited bit image encoding method for encoding a limited bit image efficiently and with an increased compression rate.

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

【図1】本発明の符号化方法を実現する画像表示装置の
実施例を示す図である。
FIG. 1 is a diagram showing an embodiment of an image display device that realizes an encoding method of the present invention.

【図2】一致検出器の入出力の関係を示す図である。FIG. 2 is a diagram showing an input / output relationship of a coincidence detector.

【図3】1枚の画像の符号データの例を示す図である。FIG. 3 is a diagram showing an example of code data of one image.

【図4】符号データ生成器の処理手順のフローチヤート
である。
FIG. 4 is a flowchart of the processing procedure of the code data generator.

【図5】一致検出回路のブロツク図である。FIG. 5 is a block diagram of a match detection circuit.

【図6】符号化部のブロツク図である。FIG. 6 is a block diagram of an encoding unit.

【図7】予測状態決定回路のブロツク図である。FIG. 7 is a block diagram of a prediction state determination circuit.

【図8】符号化回路のブロツク図である。FIG. 8 is a block diagram of an encoding circuit.

【図9】算術パラメータROM及び予測更新器内のUP
DATE・ROMの内容を示す図である。
FIG. 9: UP in arithmetic parameter ROM and prediction updater
It is a figure which shows the content of DATE ROM.

【図10】算術符号化器のブロツク図である。FIG. 10 is a block diagram of an arithmetic encoder.

【図11】〜FIG. 11:

【図17】符号化手順のフローチヤートである。FIG. 17 is a flowchart of an encoding procedure.

【符号の説明】[Explanation of symbols]

10…画像入力手段、11…一致検出回路、12…ライ
ンメモリ、13…ビツトストリーム生成器、14…符号
化部、15…メモリ、16…復号器、17…表示器
10 ... Image input means, 11 ... Match detection circuit, 12 ... Line memory, 13 ... Bit stream generator, 14 ... Encoding section, 15 ... Memory, 16 ... Decoder, 17 ... Display

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 1画素あたり数ビツトで表わされる限定
ビツト画像を符号化する限定ビツト画像の符号化方法で
あつて、 符号化画素と周囲画素との一致/不一致を検出し、 一致する周囲画素がある場合は一致画素の位置に基づい
て符号化を行い、 一致する周囲画素がない場合は各符号化画素のビツトに
基づいて符号化を行うことを特徴とする限定ビツト画像
の符号化方法。
1. A limited bit image encoding method for encoding a limited bit image represented by a few bits per pixel, the method comprising: detecting a match / mismatch between a coded pixel and a surrounding pixel; A limited bit image coding method characterized in that if there is a matching pixel, coding is performed based on the position of the matching pixel, and if there is no matching surrounding pixel, coding is performed based on the bit of each coding pixel.
【請求項2】 前記各符号化画素のビツトに基づく符号
化は、符号化画素を周囲画素に基づいて予測する予測符
号化であることを特徴とする請求項1記載の限定ビツト
画像の符号化方法。
2. The limited bit image encoding according to claim 1, wherein the bit-based encoding of each encoded pixel is a predictive encoding for predicting an encoded pixel based on surrounding pixels. Method.
JP3191487A 1991-07-31 1991-07-31 Coding method for definite bit picture Withdrawn JPH0537785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3191487A JPH0537785A (en) 1991-07-31 1991-07-31 Coding method for definite bit picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3191487A JPH0537785A (en) 1991-07-31 1991-07-31 Coding method for definite bit picture

Publications (1)

Publication Number Publication Date
JPH0537785A true JPH0537785A (en) 1993-02-12

Family

ID=16275465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3191487A Withdrawn JPH0537785A (en) 1991-07-31 1991-07-31 Coding method for definite bit picture

Country Status (1)

Country Link
JP (1) JPH0537785A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001313569A (en) * 2000-04-28 2001-11-09 Denso Corp Image compression method and device, recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001313569A (en) * 2000-04-28 2001-11-09 Denso Corp Image compression method and device, recording medium

Similar Documents

Publication Publication Date Title
Baharav et al. Watermarking of dither halftoned images
EP0412047A1 (en) Method and system for arithmetic coding and decoding
EP0776569B1 (en) Method and system for encoding and decoding image data
KR950000286B1 (en) Coding device and method for fax
EP0658982B1 (en) System for bi-level symbol coding-decoding with saved storage and method for the same
JP3027089B2 (en) Encoding method, decoding method and encoding / decoding method
US5960117A (en) Method of adaptive arithmetic encoding/decoding according to JBIG standard
KR100739110B1 (en) Method for compressing binary image rapidly
US5091977A (en) Image data compression method using a run prediction technique
JPH0537785A (en) Coding method for definite bit picture
EP1009167B1 (en) Method and apparatus for electronic data compression
JP3193140B2 (en) Image and code data compression
US6339659B1 (en) Fractal coding/decoding of picture data using memory capacity information
JPH06121174A (en) Encoder/decoder
JP2891818B2 (en) Encoding device
JP3420389B2 (en) Image encoding method and apparatus
JP3123791B2 (en) Encoding device and decoding device using arithmetic code
JP3302253B2 (en) Information encoding / decoding method and apparatus
JP3146092B2 (en) Encoding device and decoding device
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
JP3095947B2 (en) Image coding device
KR910002773B1 (en) Quast-medium picture data procossing method
JPH099065A (en) Picture data compression encoding method and decoding method
JPH10290166A (en) Coding method, coder, decoding method and decoder
JPH11205613A (en) Image processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981008