JP3262869B2 - Image coding method and apparatus - Google Patents

Image coding method and apparatus

Info

Publication number
JP3262869B2
JP3262869B2 JP33195692A JP33195692A JP3262869B2 JP 3262869 B2 JP3262869 B2 JP 3262869B2 JP 33195692 A JP33195692 A JP 33195692A JP 33195692 A JP33195692 A JP 33195692A JP 3262869 B2 JP3262869 B2 JP 3262869B2
Authority
JP
Japan
Prior art keywords
image data
encoding
reduced
encoded
pixel
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 - Fee Related
Application number
JP33195692A
Other languages
Japanese (ja)
Other versions
JPH06178125A (en
Inventor
秀史 大澤
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 JP33195692A priority Critical patent/JP3262869B2/en
Publication of JPH06178125A publication Critical patent/JPH06178125A/en
Priority to US08/515,385 priority patent/US5655032A/en
Priority to US08/736,942 priority patent/US6026197A/en
Application granted granted Critical
Publication of JP3262869B2 publication Critical patent/JP3262869B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は2値画像符号化方法及び
装置に関し、例えば静止画像フアイリング装置等に適し
た2値画像符号化方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image encoding method and apparatus, and more particularly to a binary image encoding method and apparatus suitable for a still image filling apparatus and the like.

【0002】[0002]

【従来の技術】従来の静止画像通信装置の代表的な例で
あるフアクシミリ装置においては、MH法、MR法等を
用いて2値画像を符号化していた。これらの符号化方法
では、画像の全体像を把握するには、画像データの全て
を伝送する必要があつた。このため、画像データベ−ス
サ−ビス、ビデオテツクス等の、迅速に画像を判断する
ことが必要とされる画像データベ−スサ−ビスへの適用
は困難であつた。
2. Description of the Related Art In a facsimile apparatus which is a typical example of a conventional still image communication apparatus, a binary image is encoded using an MH method, an MR method, or the like. In these encoding methods, it is necessary to transmit all of the image data in order to grasp the entire image. For this reason, it has been difficult to apply the image database service, the video technique, and the like to an image database service that requires quick image judgment.

【0003】そこでこれらの装置においては、フアクシ
ミリ装置で採用されている符号化方法とは異なる方法を
用いていた。即ち、一枚の画像を伝送するに当たり、大
まかな画像情報を最初に送り、その後追加情報を伝送
し、徐々に詳細な画像を生成していく、順次再生方法が
提案されている。これを実現するための、符号化方法が
階層符号化方法である。大まかな情報には、原画像を縮
小したものを使う例が多く、この縮小処理を何回か繰り
返すことにより階層を構成する。
[0003] Therefore, in these apparatuses, a method different from the encoding method employed in the facsimile apparatus has been used. That is, in transmitting one image, a sequential reproduction method has been proposed in which rough image information is first transmitted, additional information is transmitted thereafter, and a detailed image is gradually generated. An encoding method for achieving this is a hierarchical encoding method. In many cases, a reduced version of the original image is used as the rough information, and a hierarchy is formed by repeating this reduction process several times.

【0004】例えば、縦横1/2の縮小処理を繰り返す
と、面積が1/4,1/16サイズの画像が生成され
る。そこで先ず、サイズが小さい1/16サイズの画像
を最初に符号化して送り、次に1/4サイズの画像を生
成するための付加情報を符号化して送り、最後に、原画
を生成するための付加情報を送る方法である。以上の方
法においては、低解像度画像から高解像度画像をつくる
ための付加情報をなるべく少なくすることは、伝送時間
を短縮するのに大きな効果がある。そこで、サイズの小
さい画像から大まかに予測できるところは、符号化対象
からはずす符号化前処理が数多く考えられている。
[0004] For example, when a reduction process of 1/2 in length and width is repeated, an image having an area of 1/4 and 1/16 is generated. Therefore, first, a small 1/16 size image is encoded and sent first, and then additional information for generating a 1/4 size image is encoded and sent, and finally, an original image is generated. This is a method of sending additional information. In the above method, reducing the additional information for creating a high-resolution image from a low-resolution image as much as possible has a great effect on shortening the transmission time. Therefore, where the prediction can be roughly made from a small-sized image, a number of pre-coding processes that are excluded from the coding target are considered.

【0005】この場合に、一義的予測処理(DP)も符
号化前処理の有効な手段である。この方法は、画像の縮
小方法に決まつた規則がある場合、その規則から逆に推
定して、縮小画素(低解像画像データ)及び符号化画素
の周囲画素(高解像画像データ)から符号化画素のON
/OFFを予測できるものを予め抽出しておく。そし
て、符号化時において、符号化画素が一義的に決定でき
るものであれば、この画素を符号化対象画素から除外す
る方法である。
In this case, the unambiguous prediction process (DP) is also an effective means of the pre-coding process. In this method, when there is a rule determined in an image reduction method, the rule is inferred from the rule and the image is reduced from the reduced pixel (low-resolution image data) and the pixels surrounding the coded pixel (high-resolution image data). ON of coded pixel
Those that can predict / OFF are extracted in advance. Then, at the time of encoding, if the encoded pixel can be uniquely determined, this pixel is excluded from the encoding target pixel.

【0006】また復号化時には、既に復号された低解像
度画素データ、高解像度画素データから、復号対象画素
のON/OFFを一義的に決定する方法である。
Further, at the time of decoding, a method is used in which ON / OFF of a decoding target pixel is uniquely determined from already decoded low-resolution pixel data and high-resolution pixel data.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
一義的予測処理方法では、図16に示す様に、最初にス
テツプS1000で縮小処理を全画像について行い、縮
小画像を一旦全てフレ−ムメモリに蓄えた後に、ステツ
プS1001で一義的予測(DP)が行なわれていた。
このため、処理時間がかかると同時に、縮小画像を蓄え
るメモリが必要なためハ−ドウエアの規模も大きくなる
という問題があつた。
However, in the conventional unambiguous prediction processing method, as shown in FIG. 16, first, in step S1000, the reduction processing is performed on all the images, and all the reduced images are temporarily stored in the frame memory. After that, an unambiguous prediction (DP) was made in step S1001.
For this reason, there is a problem in that the processing time is increased and the scale of the hardware is increased because a memory for storing the reduced image is required.

【0008】[0008]

【課題を解決するための手段】本発明は上述した課題を
解決することを目的としてなされたもので、上述した課
題を解決する一手段として以下の構成を備え得る。即
ち、本発明に係る装置は、画像情報を階層符号化する符
号化装置であって、複数の連続ラインの符号化対象画素
を含む原符号化画像データをライン毎に入力する入力手
段と、前記入力手段により入力された前記原符号化画像
データに基づいて前記原符号化画像データを縮小して縮
小画像データを形成する縮小手段と、前記縮小手段によ
る前記縮小画像データの形成に並行して、前記縮小手段
で形成された縮小画像データ及び周辺画素の画像データ
から前記入力手段より入力される前記符号化対象画像デ
ータの状態を一義的予測可能か否かを判定する判定手段
と、前記判定手段の判定結果に基づいて前記符号化対象
画像データを符号化する符号化手段とを備え、前記符号
化手段は、前記符号化対象画像データのうち一義的予測
可能な画像データを符号化対象から除外することを特徴
とする。また、本発明に係る方法は、画像情報を階層符
号化する符号化方法であって、ライン毎に入力する複数
の連続ラインの原符号化画像データに基づいて前記原符
号化画像データを縮小して縮小画像データを形成し、前
記縮小画像データの形成に並行して、符号化対象画素の
状態が形成された縮小画像データ及び周辺画素の画像デ
ータから一義的予測可能か否かを判定し、判定結果に基
づいて画像データを符号化し、一義的予測可能な画素を
符号化対象から除外することを特徴とする。
SUMMARY OF THE INVENTION The present invention has been made for the purpose of solving the above-mentioned problems, and the following structure can be provided as one means for solving the above-mentioned problems. That is, the apparatus according to the present invention provides a code for hierarchically encoding image information.
An encoding device for encoding a plurality of continuous lines of pixels to be encoded
Input method for inputting the original encoded image data including
Stage and the original coded image input by the input means
Reducing the original encoded image data based on the
Reducing means for forming small image data;
In parallel with the formation of the reduced image data,
Image data and image data of peripheral pixels formed by
The encoding target image data inputted from the
Determining means for determining whether the state of the data can be uniquely predicted
And the encoding target based on the determination result of the determination unit.
Encoding means for encoding image data;
The encoding means comprises an unambiguous prediction among the encoding target image data.
Characteristically excludes possible image data from encoding
And Further, the method according to the present invention includes the steps of:
A coding method for encoding, in which a plurality of
Based on the original encoded image data of the continuous line
Reduced image data to form reduced image data,
In parallel with the formation of the reduced image data,
Reduced image data with the state formed and image data of peripheral pixels
Data to determine whether they can be uniquely predicted, based on the results of the determination.
And encodes the image data according to the
It is characterized by being excluded from encoding targets.

【0009】[0009]

【作用】以上の構成において、処理スピ−ドを向上させ
ることができると共に、ハ−ドウエア規模も縮小するこ
とができる。
In the above arrangement, the processing speed can be improved and the hardware scale can be reduced.

【0010】[0010]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳細に説明する。図1は本実施例の階層符号化を行な
う符号化装置の基本原理を示すブロツク図である。図1
において、原画像データI1 は縮小処理部a101に入
力され、1/2サイズに縮小処理され縮小画像I2 が生
成される。縮小画像I2 は縮小処理部b102に入力さ
れ、さらに1/2サイズに縮小処理されて縮小画像I3
が生成される。この縮小画像I3 は、原画のデータ量の
1/16のサイズに成つている。そして、これらの各縮
小画像は夫々符号器a〜c(103〜105)によりさ
らに符号化されて圧縮され、符号化出力C1 ,C2 ,C
3 として出力される。このため、原画をそのまま送る場
合と比し、非常に少ないデータ量の伝送と成る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing the basic principle of a coding apparatus for performing hierarchical coding according to the present embodiment. FIG.
In the original image data I 1 is input to the reduction processing unit a101, 1/2 is reduction processing to the size reduced image I 2 is generated. Reduced image I 2 is input to the reduction processing unit b 102, the reduced image I 3 are further reduction processing to 1/2 size
Is generated. This reduced image I 3 has a size of 1/16 of the data amount of the original image. These reduced images are further encoded and compressed by encoders a to c (103 to 105), respectively, and encoded outputs C 1 , C 2 , C
Output as 3 . For this reason, compared with the case where the original picture is sent as it is, the transmission of the data amount is very small.

【0011】即ち、縮小画像I3 は符号器103で符号
化処理され、符号データC3 が生成される。この符号デ
ータC3 を最初に伝送することにより、受信側では符号
データC3 の符号を復号して、画像サイズは小さいが送
信画像の概略を知ることが可能となる。また、符号器b
104では、縮小画像I3 を参照しながら縮小画像I2
を符号化し、符号データC2 を出力する。符号器c10
5では、縮小画像I2 を参照しながら原画像I1 を符号
化し、符号データC1 を出力する。
That is, the reduced image I 3 is encoded by the encoder 103 to generate encoded data C 3 . By transmitting the code data C 3 first decodes the code of the code data C 3 is the receiving side, the image size is small it is possible to know the outline of the transmission image. Also, encoder b
At 104, the reduced image I 2 is referred to while referring to the reduced image I 3.
The encoding, and outputs the code data C 2. Encoder c10
In 5, the original image I 1 with reference to the reduced image I 2 is coded, and outputs the code data C 1.

【0012】図2は階層符号化データを復号処理する本
実施例復号化装置の基本原理を示すブロツク図である。
符号データC3 は復号器a201で復号処理され、復号
画像データI3 ’は一旦フレ−ムメモリa204に記憶
される。フレ−ムメモリa204より読み出された復号
画像I3 ’は、補間器a207で必要サイズ(例えば4
倍)に補間処理され、セレクタ209を通してビデオメ
モリ210に記憶される。
FIG. 2 is a block diagram showing the basic principle of the decoding apparatus according to the present embodiment for decoding hierarchically encoded data.
Code data C 3 is the decoding processing at the decoder a201, decoded image data I 3 'is temporarily frame - are frame memory a204 to storage. The decoded image I 3 ′ read from the frame memory a 204 has a required size (for example, 4
) And is stored in the video memory 210 through the selector 209.

【0013】なお、ビデオメモリ210に記憶された画
像データは、モニタ211より表示される。また、セレ
クタ209は表示画像サイズを切り換えるもので、図示
しないコントロ−ラからの切替により入力データの内の
1つを選択して出力する。符号データC2 は、復号器b
202で復号処理される。なお、この時予測参照に復号
画像データI3 ’を加える。復号画像I2 ’は、一旦フ
レ−ムメモリb206に記憶される。フレ−ムメモリb
206より読み出された復号画像I2 ’は、補間器b2
08で必要サイズ(例えば2倍)に補間処理され、セレ
クタ209を通して、ビデオメモリ210に記憶され
る。
The image data stored in the video memory 210 is displayed on a monitor 211. The selector 209 switches the display image size, and selects and outputs one of the input data by switching from a controller (not shown). The code data C 2 is output from the decoder b
Decryption processing is performed at 202. At this time, the decoded image data I 3 ′ is added to the prediction reference. The decoded image I 2 ′ is temporarily stored in the frame memory b206. Frame memory b
The decoded image I 2 ′ read from 206 is input to the interpolator b2
At 08, interpolation processing is performed to a required size (for example, 2 times), and stored in the video memory 210 through the selector 209.

【0014】符号データC3 は、復号器c203で復号
処理される。なお、この時予測参照に復号画像データI
2 ’を加える。復号画像I1 ’は、フレ−ムメモリc2
06に記憶される。また、フレ−ムメモリc206より
の読み出された画像I1 ’は、セレクタ209を通し
て、ビデオメモリ210に記憶される。なお、復号画像
1 ’は原画と全く同じものなので、プリンタ212よ
りハ−ドコピ−をとることも可能である。
The code data C 3 is decoded by the decoder c 203. At this time, the decoded image data I
Add 2 '. The decoded image I 1 ′ is stored in the frame memory c2.
06 is stored. The image I 1 ′ read from the frame memory c 206 is stored in the video memory 210 through the selector 209. Since the decoded image I 1 ′ is exactly the same as the original image, it is possible to make a hard copy from the printer 212.

【0015】図1に示す符号器の詳細構成を図3に示
す。図3に示す本実施例の符号器は、縮小処理のフレ−
ムメモリをなくして一義的予測を連続して行う符号器で
ある。図3において、110は縮小処理部、111は一
義的予測部、112は予測符号化部、113は入力画素
ラインバツフアN、114は縮小ラインバツフアM、1
15はタイミング調整回路である。
FIG. 3 shows a detailed configuration of the encoder shown in FIG. The encoder of the present embodiment shown in FIG.
This is an encoder that performs unambiguous prediction continuously without a memory. 3, reference numeral 110 denotes a reduction processing unit, 111 denotes an unambiguous prediction unit, 112 denotes a prediction encoding unit, 113 denotes an input pixel line buffer N, 114 denotes a reduction line buffer M,
Reference numeral 15 denotes a timing adjustment circuit.

【0016】入力画像データInは、まず入力画素ライ
ンバツフアN113に入力され、入力画素ラインバツフ
アN113よりの参照画素出力は予測符号化部112、
および縮小ラインバツフアM114に出力される。この
ため、入力画素ラインバツフアN113には符号化画素
データInの周囲画素も記憶されている。また、縮小処
理部110での縮小結果は縮小ラインバツフアM114
に格納される。このため、縮小ラインバツフアM114
には、縮小画素のデータI(n+1)の数ラインデータ
が記憶されている。そして縮小ラインバツフアM114
からは、縮小処理部110、一義的予測部111、予測
符号化部112に参照画素データが出力される。
The input image data In is first input to an input pixel line buffer N113, and a reference pixel output from the input pixel line buffer N113 is input to a predictive coding unit 112.
And output to the reduced line buffer M114. Therefore, the surrounding pixels of the coded pixel data In are also stored in the input pixel line buffer N113. The reduction result of the reduction processing unit 110 is a reduction line buffer M114.
Is stored in Therefore, the reduced line buffer M114
Stores several line data of reduced pixel data I (n + 1). And the reduced line buffer M114
, The reference pixel data is output to the reduction processing unit 110, the unambiguous prediction unit 111, and the prediction encoding unit 112.

【0017】縮小処理部110における縮小処理を図4
を参照して説明する。図4において、四角で示された画
素a,b,c,d,e,f,g,h,iは高解像度画素
を表し、丸で示された画素A、B、Cは既に縮小された
画素を表している。画素?は、本実施例の縮小処理によ
り画素のON/OFFを決定しようとしている画素を表
している。
FIG. 4 shows the reduction processing in the reduction processing section 110.
This will be described with reference to FIG. In FIG. 4, pixels a, b, c, d, e, f, g, h, and i shown by squares represent high-resolution pixels, and pixels A, B, and C shown by circles have already been reduced. Represents a pixel. Pixel? Represents a pixel for which ON / OFF of the pixel is to be determined by the reduction processing of the present embodiment.

【0018】本実施例の縮小処理部110においては、
画素?の決定は周囲の縮小済の画素、及び高解像度画素
を参照して行ない、縮小画像での細線の消失を防止する
とともに、濃度を保存すること等を考慮して縮小画像の
画質を保つ様な規則を決めておき、これをルツクアツプ
テ−ブルに入れておき、このルツクアツプテーブルを参
照して?画素を決定する。
In the reduction processing section 110 of the present embodiment,
Pixel? Is determined with reference to the surrounding reduced pixels and high resolution pixels to prevent the thin lines from disappearing in the reduced image and to maintain the image quality of the reduced image in consideration of preserving the density. Decide the rules, put them in the look-up table, and refer to this look-up table? Determine the pixel.

【0019】図5に一義的予測部111における一義的
予測(DP)の例を示す。図5において、四角で示され
た画素a,b,c,d,e,f,g,h,iは高解像度
画素を表し、丸で示された画素A、B、C、Dは縮小処
理部110で既に縮小処理された画素を表している。図
5において、Dは縮小処理部110において、ON/O
FFが決定された図4に示す画素?に対応している。
FIG. 5 shows an example of the unambiguous prediction (DP) in the unambiguous prediction unit 111. In FIG. 5, pixels a, b, c, d, e, f, g, h, and i shown by squares represent high-resolution pixels, and pixels A, B, C, and D shown by circles represent reduction processing. Pixels that have already been reduced by the unit 110 are shown. In FIG. 5, D is ON / O in the reduction processing unit 110.
The pixel shown in FIG. 4 where the FF is determined? It corresponds to.

【0020】DP値は一義的予測ができるかどうかを1
ビツトで表しており、本実施例においては、一義的予測
ができる場合には、その予測可能画素を符号化対象の画
素から除外している。画素“e”のDP値は画素A,
B,C,D及び画素a,b,c,dにより決定される。
The DP value indicates whether a unique prediction can be made or not.
In this embodiment, when unambiguous prediction can be performed, the predictable pixel is excluded from the pixels to be encoded. The DP value of pixel “e” is pixel A,
B, C, D and pixels a, b, c, d.

【0021】画素“f”のDP値は画素A、B、C、D
及び画素a,b,c,d,eにより決定される。画素
“h”のDP値は画素A、B、C、D及び画素a,b,
c,d,e,f,gにより決定される。画素“i”のD
P値は画素A、B、C、D及び画素a,b,c,d,
e,f,g,hにより決定される。
The DP value of the pixel "f" is represented by pixels A, B, C, D
And pixels a, b, c, d, and e. The DP value of the pixel “h” is determined by pixels A, B, C, D and pixels a, b,
It is determined by c, d, e, f, and g. D of pixel “i”
The P value is calculated for pixels A, B, C, D and pixels a, b, c, d,
It is determined by e, f, g, h.

【0022】そして復号側では、更にできる時はそれが
白か黒かを1ビツトで示し、その結果を復号画素データ
としている。以上の構成を備える本実施例の入力画像を
符号化してDP値を決定する処理を図6のフローチヤー
トを参照して以下に説明する。ステツプS1でまず縮小
処理部110は既に縮小処理済の低解像度画素3画素を
読み込む。但し処理の最初は全白とする。続いてステツ
プS2で高解像度画素9画素を読み込む。同じく、処理
の初め全は全白とする。そしてステツプS3で以上の9
+3=12画素から縮小画素1画素を決定する。
On the decoding side, when it can be further performed, whether it is white or black is indicated by one bit, and the result is used as decoded pixel data. A process of encoding an input image and determining a DP value according to the present embodiment having the above configuration will be described below with reference to a flowchart of FIG. In step S1, the reduction processing unit 110 first reads three low-resolution pixels that have already been reduced. However, it is all white at the beginning of the processing. Then, in step S2, 9 high-resolution pixels are read. Similarly, the whole of the processing is completely white at the beginning. Then, in step S3, the above 9
One reduced pixel is determined from + 3 = 12 pixels.

【0023】続いてステツプS4〜ステツプS7で画素
“e”〜“i”のDP値を決定する。即ち、ステツプS
4で画素“e”のDP値を決定し、ステツプS5では画
素“f”のDP値を決定し、ステツプS6では画素
“h”のDP値を決定し、ステツプS7では画素“i”
のDP値を決定する。この処理が終わると、次の予測符
号化部112による予測符号化処理を実行する。
Subsequently, the DP values of the pixels "e" to "i" are determined in steps S4 to S7. That is, step S
4, the DP value of the pixel "e" is determined, the DP value of the pixel "f" is determined in step S5, the DP value of the pixel "h" is determined in step S6, and the pixel "i" is determined in step S7.
Is determined. When this process ends, the next predictive coding unit 112 performs a predictive coding process.

【0024】図3の予測符号化部の詳細ブロツク図を図
7に示す。図7において、120は予測状態メモリ12
2の初期化回路であり、予測状態メモリ122の通常I
NDEX、MPS格納領域を“0”に初期化する。12
1は予測状態を決定する予測器であり、ラインバツフア
からの周囲画素データ1020はこの予測器121に入
力され、予測信号1021及び符号化シンボルXn(1
022)が出力される。予測信号1021は、予測状態
メモリ122に送られ、格納される。予測状態メモリ1
22からは、予測状態を示すINDEX1023、イン
デツクスに対応する優勢シンボルMPS(1024)が
出力される。
FIG. 7 is a detailed block diagram of the predictive encoding unit shown in FIG. 7, reference numeral 120 denotes the predicted state memory 12
2 of the initialization circuit of the prediction state memory 122.
The NDEX and MPS storage areas are initialized to “0”. 12
Reference numeral 1 denotes a predictor for determining a prediction state. Surrounding pixel data 1020 from a line buffer is input to the predictor 121, and a prediction signal 1021 and a coded symbol Xn (1
022) is output. The prediction signal 1021 is sent to and stored in the prediction state memory 122. Predicted state memory 1
22 outputs the INDEX 1023 indicating the prediction state and the dominant symbol MPS (1024) corresponding to the index.

【0025】予測信号1021は、算術パラメ−タRO
M123に入力され、算術パラメ−タROM123から
はインデツクスに対応する劣勢シンボルの確率(予測は
ずれの確率)P(1025)が出力される。P(102
5)、優勢シンボルMPS(1024)、符号化シンボ
ルXn(1022)は動的に算術符号化を行う算術符号
器124に入力され、該算術符号器124で符号化が行
われる。
The prediction signal 1021 is an arithmetic parameter RO
The arithmetic parameter ROM 123 outputs a probability (probability of misprediction) P (1025) of the inferior symbol corresponding to the index. P (102
5), the dominant symbol MPS (1024) and the coded symbol Xn (1022) are input to an arithmetic encoder 124 that dynamically performs arithmetic coding, and the arithmetic encoder 124 performs coding.

【0026】またUPDATE器125では、予測状態
メモリ122よりのMPS(1024)と算術符号器1
24よりの注目画素Xnの一致、不一致信号YN(10
32)により、インデツクスに対応する優勢シンボルM
PS値を更新し、更新MPS(1028)及びInde
x(1029)を出力する。また、算術符号器124に
入力されるLS1031は、符号化信号の最終ビツトを
示す信号であり、図示しないコントロ−ラから算術符号
器124に与えられる。更に、算術符号器124よりの
NS1027は、次の符号化シンボルの要求信号であ
り、予測器121にも与えられる。Cn1026は算術
符号器124で符号化した算術符号データである。
In the UPDATE unit 125, the MPS (1024) from the prediction state memory 122 and the arithmetic encoder 1
24, the match / mismatch signal YN (10
32), the dominant symbol M corresponding to the index
Update PS value, update MPS (1028) and Inde
x (1029) is output. The LS 1031 input to the arithmetic encoder 124 is a signal indicating the last bit of the encoded signal, and is supplied to the arithmetic encoder 124 from a controller (not shown). Further, NS1027 from the arithmetic encoder 124 is a request signal for the next encoded symbol, and is also supplied to the predictor 121. Cn1026 is arithmetic code data encoded by the arithmetic encoder 124.

【0027】図7に示す算術符号器124の詳細構成を
図8に示す。図8において、130は乗算器、131は
減算器、132はセレクタ、133はラツチ、134は
比較器、135は乗算器、136は符号出力器、137
は加算器、138はEXOR回路である。以上の構成を
備える本実施例の算術符号化方法を図9〜15のフロー
チヤートを参照して以下に説明する。
FIG. 8 shows a detailed configuration of the arithmetic encoder 124 shown in FIG. 8, 130 is a multiplier, 131 is a subtractor, 132 is a selector, 133 is a latch, 134 is a comparator, 135 is a multiplier, 136 is a sign output unit, and 137
Is an adder, and 138 is an EXOR circuit. The arithmetic coding method of the present embodiment having the above configuration will be described below with reference to the flowcharts of FIGS.

【0028】図9は本実施例における符号化処理の全体
制御を示すフローチヤート、図10は符号器の初期化制
御を示すフローチヤート、図11は符号化制御を示すフ
ローチヤート、図12はRENORME制御を示すフロ
ーチヤート、図13はバイト出力制御を示すフローチヤ
ート、図14は出力制御を示すフローチヤート、図15
は最終符号出力(FLUSH)制御を示すフローチヤー
トである。
FIG. 9 is a flowchart showing the overall control of the encoding process in this embodiment, FIG. 10 is a flowchart showing the initialization control of the encoder, FIG. 11 is a flowchart showing the encoding control, and FIG. FIG. 13 is a flowchart showing byte output control, FIG. 14 is a flowchart showing output control, and FIG.
Is a flowchart showing final code output (FLUSH) control.

【0029】まず、図9を参照して本実施例における符
号化処理の全体制御を説明する。符号化処理において
は、最初にステツプS51で符号器の初期設定を行う図
10に示す初期化サブルーチンを実行する。そしてステ
ツプS52で符号化シンボルXnを読み込み、続くステ
ツプS53の後述する図11に示す符号化制御サブルー
チンを実行する。
First, the overall control of the encoding process in this embodiment will be described with reference to FIG. In the encoding process, first, in step S51, an initialization subroutine shown in FIG. 10 for initializing the encoder is executed. Then, in step S52, the encoded symbol Xn is read, and an encoding control subroutine shown in FIG. 11 described later in step S53 is executed.

【0030】次にステツプS54で処理画素が最終画素
か否かを判定する。最終画素でなければステツプS52
に戻り、最終画素であればステツプS55に進む。ステ
ツプS55では、後述する図15に示す最終処理制御サ
ブルーチンを実行して処理を終了する。以下、上述した
各サブルーチンの詳細を説明する。
Next, in step S54, it is determined whether or not the processing pixel is the last pixel. If it is not the last pixel, step S52
Returning to step S55, if it is the last pixel, the process proceeds to step S55. In step S55, a final process control subroutine shown in FIG. 15 to be described later is executed, and the process ends. Hereinafter, the details of each of the above-described subroutines will be described.

【0031】図10に示す初期化制御サブルーチンにお
いては、ステツプS61で例えば信号C1033が通る
ラツチC133を“0”に、またバイト出力136出力
の内部レジスタであるバツフアB及びカウンタSCを
“0”にそれぞれ初期化し、また、例えば、信号A10
32が通るラツチA133を“FFFF”に、、またバ
イト出力136出力の内部レジスタであるフラグSTF
LGをセツトし(≠0)カウンタCTを“11”にそれ
ぞれ初期化してリターンする。
In the initialization control subroutine shown in FIG. 10, in step S61, for example, the latch C133 through which the signal C1033 passes is set to "0", and the buffer B and the counter SC, which are the internal registers of the byte output 136, are set to "0". Each is initialized, and for example, the signal A10
The latch A 133 through which the 32 passes through is set to “FFFF”, and the flag STF which is an internal register of the byte output 136 is output.
LG is set (# 0), the counter CT is initialized to "11", and the routine returns.

【0032】図11は符号化制御サブルーチンの一例を
示すフローチヤートである。図11において、ステツプ
S71で、図7に示した予測状態メモリ122から、前
述の優勢シンボルMPSとインデツクスINDEXを読
出し、読出したINDEXから前述の劣勢シンボルPを
決定する。続いて、ステツプS72で、乗算器130に
よるレジスタA1 の更新(A1 ←A×P)及び減算器1
31によるレジスタA0 の更新(A0 ←A−A1 )とを
実行する。そしてステツプS73で、XnとMPSとを
比較する。これはEXOR138を利用して行う。そし
て、Xn=MPSの場合(つまり予測が一致した場合)
はステツプS74へ進む。
FIG. 11 is a flowchart showing an example of the encoding control subroutine. 11, at step S71, the above-mentioned superior symbol MPS and index INDEX are read from the prediction state memory 122 shown in FIG. 7, and the above-mentioned inferior symbol P is determined from the read INDEX. Then, in step S72, the register A1 is updated by the multiplier 130 (A1.
31 to update the register A0 (A0 ← A-A1). Then, in step S73, Xn and MPS are compared. This is performed using EXOR 138. Then, when Xn = MPS (that is, when the predictions match)
Goes to step S74.

【0033】ステツプS74では、レジスタAを更新
(A←A0 )し、続くステツプS75でレジスタAの最
上位ビツト(以下「MSB」という)を判定する。そし
て、MSB=“0”の場合はステツプS76へ進み、M
SB=“1”の場合は符号化制御サブルーチンを終了し
て、メインルーチンへ戻る。一方、MSB=“0”でス
テツプS76に進んだ場合には、INDEXをNMPS
テーブルに従つて更新し、ステツプS85へ進む。
At step S74, the register A is updated (A ← A0), and at the next step S75, the most significant bit (hereinafter, referred to as "MSB") of the register A is determined. If MSB = "0", the process proceeds to step S76, where M
If SB = "1", the encoding control subroutine ends, and the process returns to the main routine. On the other hand, when the process proceeds to step S76 with MSB = "0", INDEX is changed to NMPS.
Update according to the table, and proceed to step S85.

【0034】一方、ステツプS73で予測が外れた場合
(Xn≠MPS)にはステツプS81に進み、加算器1
37によるラツチCの更新(C←C+A0 )及びラツチ
Aの更新(A←A1 )とを実行し、ステツプS82で、
INDEXに対応するスイツチSWITCHを判定す
る。そしてSWITCH=“0”の場合にはステツプS
84へ進む。
On the other hand, if the prediction is incorrect in step S73 (Xn ≠ MPS), the process proceeds to step S81, where the adder 1
Update of the latch C (C ← C + A0) and update of the latch A (A ← A1) by 37 are executed, and in step S82,
The switch SWITCH corresponding to INDEX is determined. If SWITCH = "0", step S
Proceed to 84.

【0035】また、SWITCH=“1”の場合にはス
テツプS83へ進み、MPSを反転(MPS←1−MP
S)した後、ステツプS84へ進む。なお、これらのS
WITCH処理は、UPDATE125により行われ
る。続いて、本実施例は、ステツプS84でINDEX
をNLPSテーブルに従つて更新した後、ステツプS8
5へ進む。ステツプS85では、後述する図12に示す
RENORME制御サブルーチンを実行する。これで符
号化制御サブルーチンを終了して、メインルーチンへ戻
る。
If SWITCH = "1", the flow advances to step S83 to invert the MPS (MPS ← 1-MP
After S), the process proceeds to step S84. Note that these S
The WITCH process is performed by UPDATE 125. Subsequently, in the present embodiment, INDEX in step S84.
Is updated according to the NLPS table, and then step S8 is performed.
Go to 5. In step S85, a RENORME control subroutine shown in FIG. 12 to be described later is executed. This ends the encoding control subroutine and returns to the main routine.

【0036】図12はRENORME制御(RENOR
ME)サブルーチンの一例を示すフローチヤートであ
る。図12において、まずステツプS91でラツチAの
MSBを判定して、MSB=“0”の場合はステツプS
92へ進み、また、MSB=“1”の場合は、RENO
RME制御サブルーチンを終了して、符号化制御サブル
ーチンへ戻る。
FIG. 12 is a diagram showing the renorme control (RENOR control).
(ME) is a flowchart showing an example of a subroutine. In FIG. 12, first, the MSB of the latch A is determined in step S91, and if MSB = "0", step S91 is executed.
92, and if MSB = "1", RENO
The RME control subroutine ends, and the process returns to the encoding control subroutine.

【0037】MSB=“0”でステツプS92に進んだ
場合には、乗算器135によりラツチAとラツチCを左
にシフトさせて更新し、かつ、カウンタCTをデクリメ
ントして更新する。続くステツプS93で、カウンタC
Tの値を判定する。ここで、CT=0の場合はステツプ
S94へ進み、CT≠0の場合はステツプS91へ戻
る。
When the process proceeds to step S92 with MSB = "0", the latch 135 updates the latches A and C by shifting them to the left, and decrements and updates the counter CT. In the following step S93, the counter C
Determine the value of T. Here, when CT = 0, the process proceeds to step S94, and when CT ≠ 0, the process returns to step S91.

【0038】CT=0であつた場合にはステツプS94
で後述する図13に示すバイト出力制御サブルーチンを
実行した後、ステツプS91へ戻る。即ち、本実施例に
おいては、RENORME制御サブルーチンで、ラツチ
AのMSBが“1”になるまで、ラツチAとラツチCを
左シフトし、かつカウンタCTをデクリメントする。
If CT = 0, step S94
After executing the byte output control subroutine shown in FIG. 13 which will be described later, the flow returns to step S91. That is, in this embodiment, in the RENOMEME control subroutine, the latches A and C are shifted to the left and the counter CT is decremented until the MSB of the latch A becomes "1".

【0039】図13のバイト出力制御サブルーチンは、
主にバイト出力器136により実行され、レジスタte
mp等はこのバイト出力器136に含まれている。まず
ステツプS401で、例えば、ラツチCの値を19ビツ
ト右シフトした値と“1FF”とを論理積した結果を、
レジスタtempへ格納する。すなわち、レジスタte
mpは、例えば、ラツチCのビツト19からビツト27
までの9ビツトを格納する。
The byte output control subroutine of FIG.
Mainly executed by the byte output unit 136, the register te
mp and the like are included in the byte output unit 136. First, in step S401, for example, a result obtained by logically ANDing a value obtained by shifting the value of the latch C to the right by 19 bits and “1FF” is obtained.
The value is stored in the register temp. That is, the register te
mp is, for example, bits 19 to 27 of the latch C
Up to 9 bits are stored.

【0040】続いて、ステツプS402でレジスタte
mpの値を判定する。temp>“FF”の場合はステ
ツプS403へ進み、temp≦“FF”の場合はステ
ツプS410へ進む。例えばビツト27のキヤリーがセ
ツトされていた(temp>“FF”)場合にはステツ
プS403に進み、レジスタBUFFERの値に1を加
えた値を引数として、後述する図14に示す出力(アウ
トプツト)サブルーチンを実行する。続いて、ステツプ
S404でバイト出力の内部レジスタであるカウンタS
Cの値を判定する。SC>0の場合にはステツプS40
5へ進み、カウンタSCをデクリメントする。続いてス
テツプS406で、例えば“00”を引数として出力制
御サブルーチンを実行した後、ステツプS404へ戻
る。すなわち、本実施例は、カウンタSCが0に達する
まで、ステツプS404からステツプS406を繰返
す。
Subsequently, at step S402, the register te
Determine the value of mp. If temp> “FF”, the process proceeds to step S403, and if temp ≦ “FF”, the process proceeds to step S410. For example, if the carry of the bit 27 has been set (temp> FF), the process proceeds to step S403, and an output (output) subroutine shown in FIG. 14 described later is used as an argument with a value obtained by adding 1 to the value of the register BUFFER. Execute Subsequently, in step S404, the counter S, which is an internal register for byte output, is output.
Determine the value of C. If SC> 0, step S40
Proceed to 5 to decrement the counter SC. Subsequently, in step S406, an output control subroutine is executed using, for example, "00" as an argument, and the process returns to step S404. That is, in the present embodiment, steps S404 to S406 are repeated until the counter SC reaches 0.

【0041】そしてカウンタSCが“0”となり、SC
>0でない状態となつた場合にはステツプS421に進
む。また、例えばビツト27のキヤリーがセツトされて
いなかつた(temp≦“FF”)場合にはステツプS
402よりステツプS410に進み、レジスタtemp
<“FF”か否かを判定する。そして、例えば、tem
p=“FF”の場合は、ステツプS411でカウンタS
Cをインクリメントした後、ステツプS422へ進む。
Then, the counter SC becomes "0" and SC
If it is not> 0, the process proceeds to step S421. For example, if the carrier of the bit 27 is not set (temp ≦ “FF”), the step S
From step 402, the process proceeds to step S410, where the register temp
It is determined whether or not “FF”. And, for example, tem
If p = "FF", the counter S is set in step S411.
After incrementing C, the process proceeds to step S422.

【0042】一方、ステツプS410でtemp<“F
F”の場合にはステツプS412へ進み、レジスタBU
FFERの値を引数として、出力制御サブルーチンを実
行する。続いて、ステツプS413でカウンタSCの値
がSC>0か否かを判定する。そして、SC>0の場合
はステツプS414へ進み、SC=0の場合はステツプ
S421へ進む。
On the other hand, in step S410, temp <“F
F ", the process proceeds to step S412 and the register BU
The output control subroutine is executed using the value of FFER as an argument. Subsequently, in step S413, it is determined whether or not the value of the counter SC is SC> 0. If SC> 0, the process proceeds to step S414, and if SC = 0, the process proceeds to step S421.

【0043】SC>0の場合、本実施例は、ステツプS
414でカウンタSCをデクリメントし、ステツプS4
15で、例えば“FF”を引数として「出力」サブルー
チンを実行した後、ステツプS413へ戻る。すなわ
ち、本実施例は、カウンタSCが0に達するまで、ステ
ツプS413からステツプS415を繰返す。ステツプ
S421では、例えば、レジスタtempの値と“F
F”を論理積した結果を、レジスタBUFFERへ格納
する。すなわち、レジスタBUFFERとして、例え
ば、レジスタtempの下位8ビツトを格納する。続い
てステツプS422で、例えば、ラツチCの値と“7F
FFF”を論理積した結果を、ラツチCへ格納すること
によつて、出力したラツチCのビツトをクリアし、か
つ、例えばカウンタCT=8とした後、バイト出力制御
サブルーチンを終了して、メインルーチンへ戻る。
If SC> 0, the present embodiment performs step S
At step 414, the counter SC is decremented, and at step S4
At 15, the "output" subroutine is executed with "FF" as an argument, for example, and the process returns to step S413. That is, in the present embodiment, steps S413 to S415 are repeated until the counter SC reaches 0. In step S421, for example, the value of the register temp and “F
The result of the logical AND of F "is stored in the register BUFFER. That is, for example, the lower 8 bits of the register temp are stored as the register BUFFER. Then, in step S422, for example, the value of the latch C and the value of" 7F "are stored.
By storing the result of logical AND of FFF "in the latch C, the bit of the output latch C is cleared, and, for example, the counter CT is set to 8, and then the byte output control subroutine is terminated. Return to routine.

【0044】図14は出力制御サブルーチンの一例を示
すフローチヤートである。図14において、本実施例
は、ステツプS431でフラグSTFLGを判定する。
そして、STFLG=“0”の場合には、ステツプS4
33に進み、引数として与えられたデータを出力した
後、出力制御サブルーチンを終了してリターンする。
FIG. 14 is a flowchart showing an example of the output control subroutine. In FIG. 14, in the present embodiment, the flag STFLG is determined in step S431.
If STFLG = "0", step S4
The program proceeds to step 33, where the data given as the argument is output, and thereafter the output control subroutine ends and returns.

【0045】また、ステツプS431でSTFLG≠
“0”の場合にはステツプS432に進み、STFLG
=“0”にした後、出力制御サブルーチンを終了してリ
ターンスる。なお、これは、初回の「出力」処理に入つ
ているラツチCの初期値を無効にするためであり、2回
目以降は引数として与えられたデータを出力する。図1
5は最終符号出力制御サブルーチンの一例を示すフロー
チヤートであり、当該サブルーチンは、ラツチCに残つ
た符号の最終出力を行うルーチンである。
Also, in step S431, the STFLG @
If it is "0", the flow advances to step S432, and STFLG
After "=", the output control subroutine ends and the routine returns. This is to invalidate the initial value of the latch C included in the first "output" process, and to output data given as an argument from the second time on. FIG.
Numeral 5 is a flowchart showing an example of a final code output control subroutine. This subroutine is a routine for performing a final output of the code remaining on the latch C.

【0046】図15において、まずステツプS501
で、例えば、演算結果(C+A−1)と“FFFF00
00”を論理積した結果を、レジスタtempへ格納す
る。すなわち、レジスタtempは、例えば、演算結果
(C+A−1)の上位16ビツトを格納する。続くステ
ツプS502で、レジスタtempの値とラツチCの値
を比較する。そして、temp<Cの場合にはステツプ
S507に進み、ラツチCを更新(C←temp+“8
000”)してステツプS505に進む。
In FIG. 15, first, in step S501,
Then, for example, the operation result (C + A-1) and "FFFF00
00 "is stored in the register temp. That is, the register temp stores, for example, the upper 16 bits of the operation result (C + A-1). In the next step S502, the value of the register temp and the latch C are stored. Then, if temp <C, the flow advances to step S507 to update the latch C (C ← temp + “8”).
000 ") and the process proceeds to step S505.

【0047】一方、ステツプS502でtemp≧Cの
場合にはステツプS504に進み、ラツチCを更新(C
←temp)してステツプS505に進む。ステツプS
505では、カウンタCTの値だけラツチCを左シフト
し、続くステツプS506でカウンタCの値を判定す
る。そして、カウンタC>“7FFFFFF”の場合に
はステツプS507へ進み、レジスタBUFFERの値
に1を加えた値を引数として、図14に示した出力制御
サブルーチンを実行する。
On the other hand, if temp ≧ C in step S502, the flow advances to step S504 to update the latch C (C
<← temp) and the process proceeds to step S505. Step S
At 505, the latch C is shifted to the left by the value of the counter CT, and the value of the counter C is determined at the following step S506. If the counter C is greater than "7FFFFFF", the flow advances to step S507 to execute the output control subroutine shown in FIG. 14 using the value obtained by adding 1 to the value of the register BUFFER as an argument.

【0048】続いて、ステツプS508でカウンタSC
の値を判定する。そして、SC=0の場合はステツプS
515へ進む。一方、ステツプS508でSC>0の場
合にはステツプS509へ進み、カウンタSCをデクリ
メントする。続いてステツプS510で、例えば“0
0”を引数として出力制御サブルーチンを実行した後、
ステツプS508へ戻る。すなわち、本実施例は、カウ
ンタSCが0に達するまで、ステツプS508からステ
ツプS510を繰返す。
Subsequently, the counter SC is set at step S508.
Is determined. If SC = 0, step S
Proceed to 515. On the other hand, if SC> 0 in step S508, the flow advances to step S509 to decrement the counter SC. Subsequently, in step S510, for example, "0"
After executing the output control subroutine with 0 ”as an argument,
It returns to step S508. That is, in the present embodiment, steps S508 to S510 are repeated until the counter SC reaches 0.

【0049】一方ステツプS506でC≦“7FFFF
FF”の場合にはステツプS511に進み、レジスタB
UFFERの値を引数として、出力制御サブルーチンを
実行する。続いてステツプS512で、カウンタSCの
値を判定する。SC>0の場合はステツプS513へ進
み、カウンタSCをデクリメントする。続いてステツプ
S514で、例えば“FF”を引数として出力制御サブ
ルーチンを実行してステツプS512へ戻る。すなわ
ち、本実施例は、カウンタSCが0に達するまで、ステ
ツプS512からステツプS514を繰返す。
On the other hand, in step S506, C ≦ “7FFFF”
In the case of "FF", the process proceeds to step S511,
The output control subroutine is executed using the value of UFFER as an argument. Subsequently, in step S512, the value of the counter SC is determined. If SC> 0, the flow advances to step S513 to decrement the counter SC. Subsequently, in step S514, an output control subroutine is executed using, for example, "FF" as an argument, and the flow returns to step S512. That is, in the present embodiment, steps S512 to S514 are repeated until the counter SC reaches 0.

【0050】一方、ステツプS511でSC=0の場合
にはステツプS515へ進む。ステツプS515では、
例えば、ラツチCのビツト19からビツト26までの8
ビツトを引数として、出力制御サブルーチンを実行す
る。そして続いてステツプS516で、ラツチCのビツ
ト11からビツト18までの8ビツトを引数として、出
力制御サブルーチンを実行する。そして最終符号出力制
御サブルーチンを終了してリターンする。
On the other hand, if SC = 0 in step S511, the flow advances to step S515. In step S515,
For example, 8 from bit 19 to bit 26 of latch C
The output control subroutine is executed using the bit as an argument. Then, in step S516, an output control subroutine is executed using the eight bits from bit 11 to bit 18 of the latch C as arguments. Then, the final code output control subroutine ends and the process returns.

【0051】[0051]

【他の実施例】なお、以上の説明においては、フローチ
ヤートを使つてソフトウエアで達成した例について説明
したが、専用のハ−ドウエアで実施することも可能であ
る。尚、本発明は、複数の機器から構成されるシステム
に適用しても、1つの機器から成る装置に適用しても良
い。また、本発明はシステムあるいは、装置にプログラ
ムを供給することによつて達成される場合にも適用でき
ることは言うまでもない。
Other Embodiments In the above description, an example has been described in which the present invention is achieved by software using a flow chart. However, the present invention can also be implemented by dedicated hardware. The present invention may be applied to a system including a plurality of devices or to an apparatus including a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0052】[0052]

【発明の効果】以上説明した様に本発明では処理スピ
ードの向上、ハード規模の縮小が可能に成った。また、
特に符号化対象画像データのうち一義的に予測可能な画
像データを符号化対象から除外することにより、圧縮効
率を上げることができる。
As described above, according to the present invention, the processing speed can be improved and the hardware scale can be reduced. Also,
In particular, image data that can be uniquely predicted
By excluding image data from encoding,
Rate can be increased.

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

【図1】本発明に係る一実施例の階層符号化を行なう符
号化装置の基本原理を示すブロツク図である。
FIG. 1 is a block diagram showing a basic principle of a coding apparatus for performing hierarchical coding according to an embodiment of the present invention.

【図2】本実施例における階層符号化データを復号処理
する復号化装置の基本原理を示すブロツク図である。
FIG. 2 is a block diagram showing a basic principle of a decoding device for decoding hierarchically encoded data in the embodiment.

【図3】図1に示す符号器の詳細構成を示すブロツク図
である。
FIG. 3 is a block diagram showing a detailed configuration of the encoder shown in FIG.

【図4】図3に示す縮小処理部における縮小処理を説明
するための図である。
FIG. 4 is a diagram for explaining a reduction process in a reduction processing unit shown in FIG. 3;

【図5】図3に示す一義的予測部における一義的予測
(DP)を説明するための図である。
FIG. 5 is a diagram for explaining a unique prediction (DP) in a unique prediction unit shown in FIG. 3;

【図6】本実施例の入力画像を符号化してDP値を決定
する処理を示すフローチヤートである。
FIG. 6 is a flowchart illustrating a process of encoding an input image and determining a DP value according to the embodiment;

【図7】図3の予測符号化部の詳細ブロツク図である。FIG. 7 is a detailed block diagram of the prediction encoding unit in FIG. 3;

【図8】図7に示す算術符号器の詳細構成を示す図であ
る。
FIG. 8 is a diagram showing a detailed configuration of the arithmetic encoder shown in FIG. 7;

【図9】本実施例における符号化処理の全体制御を示す
フローチヤートである。
FIG. 9 is a flowchart showing overall control of an encoding process in the embodiment.

【図10】本実施例における符号器の初期化制御を示す
フローチヤートである。
FIG. 10 is a flowchart illustrating initialization control of an encoder according to the present embodiment.

【図11】本実施例における符号化制御を示すフローチ
ヤートである。
FIG. 11 is a flowchart illustrating encoding control in the present embodiment.

【図12】本実施例におけるRENORME制御を示す
フローチヤートである。
FIG. 12 is a flowchart illustrating RENOMEME control in the present embodiment.

【図13】本実施例におけるバイト出力制御を示すフロ
ーチヤートである。
FIG. 13 is a flowchart showing byte output control in the embodiment.

【図14】本実施例における出力制御を示すフローチヤ
ートである。
FIG. 14 is a flowchart showing output control in the present embodiment.

【図15】最終符号出力(FLUSH)制御を示すフロ
ーチヤートである。
FIG. 15 is a flowchart showing final code output (FLUSH) control.

【図16】従来の一義的予測処理を示す図である。FIG. 16 is a diagram showing a conventional unambiguous prediction process.

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

100 縮小処理部 101 符号器 102 復号器 103 フレ−ムメモリ 104 補間器 110 縮小処理部 111 一義的予測部 112 予測符号化部 113 入力画素ラインバツフアN 114 縮小ラインバツフアM 115 タイミング調整回路 120 初期化回路 121 予測器 122 予測状態メモリ 123 算術パラメ−タROM 124 算術符号器 125 UPDATE器 130 乗算器 131 減算器 132 セレクタ 133 ラツチ 134 比較器 135 乗算器 136 符号出力器 137 加算器 138 EXOR回路 209 セレクタ 210 ビデオメモリ 211 ビデオメモリ 212 プリンタ Reference Signs List 100 Reduction processing unit 101 Encoder 102 Decoder 103 Frame memory 104 Interpolator 110 Reduction processing unit 111 Unique prediction unit 112 Prediction encoding unit 113 Input pixel line buffer N 114 Reduction line buffer M 115 Timing adjustment circuit 120 Initialization circuit 121 prediction Unit 122 Prediction state memory 123 Arithmetic parameter ROM 124 Arithmetic encoder 125 UPDATE unit 130 Multiplier 131 Subtractor 132 Selector 133 Latch 134 Comparator 135 Multiplier 136 Code output unit 137 Adder 138 EXOR circuit 209 Selector 210 Video memory 211 Video memory 212 Printer

Claims (14)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像情報を階層符号化する符号化装置であ
って、 複数の連続ラインの符号化対象画素を含む原符号化画像
データをライン毎に入力する入力手段と、 前記入力手段により入力された前記原符号化画像データ
に基づいて前記原符号化画像データを縮小して縮小画像
データを形成する縮小手段と、 前記縮小手段による前記縮小画像データの形成に並行し
て、前記縮小手段で形成された縮小画像データ及び周辺
画素の画像データから前記入力手段より入力される前記
符号化対象画像データの状態を一義的予測可能か否かを
判定する判定手段と、 前記判定手段の判定結果に基づいて前記符号化対象画像
データを符号化する符号化手段とを備え、 前記符号化手段は、前記符号化対象画像データのうち
義的予測可能な画像データを符号化対象から除外するこ
とを特徴とする符号化装置。
An encoding apparatus for hierarchically encoding image information, comprising: input means for inputting, for each line, original encoded image data including a plurality of continuous lines of pixels to be encoded; Reducing means for reducing the original coded image data based on the obtained original coded image data to form reduced image data; and in parallel with formation of the reduced image data by the reducing means, the reducing means A determining unit that determines whether the state of the encoding target image data input from the input unit is uniquely predictable from the formed reduced image data and the image data of the peripheral pixels, and a determination result of the determining unit. based an encoding means for encoding the encoding target image data, said encoding means, one of said coded image data
An encoding apparatus characterized in that image data that can be uniquely predicted is excluded from encoding targets.
【請求項2】前記判定手段は、前記符号化対象画像デー
タの状態を一義的予測可能か否かを表わすデータを生成
することを特徴とする請求項1記載の符号化装置。
2. The encoding apparatus according to claim 1, wherein said determining means generates data indicating whether or not the state of said encoding target image data can be uniquely predicted.
【請求項3】前記縮小手段は、複数の前記原符号化画像
データと複数の縮小画像データに基づいて縮小画像デー
タを形成することを特徴とする請求項1又は請求項2記
載の符号化装置。
3. The encoding apparatus according to claim 1, wherein said reduction means forms reduced image data based on a plurality of said original encoded image data and a plurality of reduced image data. .
【請求項4】前記判定手段は、所定の縮小画像データに
関連する複数画像データが一義的予測可能か否かを判定
することを特徴とする請求項1乃至請求項3のいずれか
に記載の符号化装置。
4. The apparatus according to claim 1, wherein said determining means determines whether or not a plurality of image data related to the predetermined reduced image data can be uniquely predicted. Encoding device.
【請求項5】前記符号化手段は、前記判定手段で前記符
号化対象画素の状態を一義的予測不可能と判断された画
素データを符号化することを特徴とする請求項1乃至請
求項4のいずれかに記載の符号化装置。
Wherein said encoding means, according to claim 1 to claim 4, characterized in that encode the pixel data is determined uniquely unpredictable states of the coded pixel in said determination means The encoding device according to any one of the above.
【請求項6】前記符号化手段は、前記縮小画像データと
前記原符号化画像データとに基づいて前記原符号化画像
データを予測符号化することを特徴とする請求項1乃至
請求項5のいずれかに記載の符号化装置。
6. The apparatus according to claim 1, wherein said encoding means predictively encodes said original encoded image data based on said reduced image data and said original encoded image data. An encoding device according to any one of the above.
【請求項7】前記判定手段が前記符号化対象画像データ
の状態を一義的予測可能か否かの判定に要する時間、前
記入力手段の原符号化画像データ入力を遅延させる遅延
手段を備えることを特徴とする請求項1乃至請求項6の
いずれかに記載の符号化装置。
7. A system according to claim 1, further comprising delay means for delaying input of the original coded image data from said input means during a time required for said determination means to determine whether or not the state of said image data to be coded can be uniquely predicted. The encoding device according to any one of claims 1 to 6, characterized in that:
【請求項8】画像情報を階層符号化する符号化方法であ
って、 ライン毎に入力する複数の連続ラインの原符号化画像デ
ータに基づいて前記原符号化画像データを縮小して縮小
画像データを形成し、前記縮小画像データの形成に並行
して、符号化対象画素の状態が形成された縮小画像デー
タ及び周辺画素の画像データから一義的予測可能か否か
を判定し、判定結果に基づいて画像データを符号化し、
一義的予測可能な画素を符号化対象から除外することを
特徴とする符号化方法。
8. An encoding method for hierarchically encoding image information, wherein the original encoded image data is reduced based on the original encoded image data of a plurality of continuous lines input for each line, and the reduced image data is reduced. Is formed, and in parallel with the formation of the reduced image data, it is determined whether or not the state of the encoding target pixel can be uniquely predicted from the reduced image data in which the state has been formed and the image data of the peripheral pixels. To encode the image data
A coding method characterized in that pixels that can be uniquely predicted are excluded from coding targets.
【請求項9】前記符号化対象画素の状態が一義的予測可
能か否かの判定結果を表わすデータを生成して出力可能
であることを特徴とする請求項8記載の符号化方法。
9. The encoding method according to claim 8, wherein data representing a determination result as to whether or not the state of the encoding target pixel is uniquely predictable can be generated and output.
【請求項10】前記縮小データの形成においては、複数
の前記原符号化画像データと複数の縮小画像データに基
づいて縮小画像データを形成することを特徴とする請求
項8又は請求項9記載の符号化方法。
10. The method according to claim 8, wherein in forming the reduced data, reduced image data is formed based on a plurality of the original coded image data and a plurality of reduced image data. Encoding method.
【請求項11】前記前記符号化対象画素の状態の判定
は、所定の縮小画像データに関連する複数画像データが
一義的予測可能か否かにより判定することを特徴とする
請求項8乃至請求項10のいずれかに記載の符号化方
法。
11. The method according to claim 1, wherein the determination of the state of the pixel to be encoded includes determining a plurality of image data associated with predetermined reduced image data.
The encoding method according to any one of claims 8 to 10, wherein the determination is made based on whether or not unambiguous prediction is possible.
【請求項12】前記画像データの符号化においては、前
記符号化対象画素の状態を一義的予測不可能と判断され
た画素データのみを符号化することを特徴とする請求項
8乃至請求項11のいずれかに記載の符号化方法。
12. The image data encoding method according to claim 8, wherein only the pixel data for which it is determined that the state of the encoding target pixel cannot be uniquely predicted is encoded. The encoding method according to any one of the above.
【請求項13】前記画像データの符号化は、前記縮小画
像データと前記原符号化画像データとに基づいて前記原
符号化画像データを予測符号化することを特徴とする請
求項8乃至請求項12のいずれかに記載の符号化方法。
13. The image data encoding apparatus according to claim 8, wherein said original encoded image data is predictively encoded based on said reduced image data and said original encoded image data. 13. The encoding method according to any one of 12.
【請求項14】前記符号化対象画像データの状態を一義
予測可能か否かの判定に要する時間、前記原符号化画
像データに対する処理を遅延させることを特徴とする請
求項8乃至請求項13のいずれかに記載の符号化装置。
14. A state of the image data to be encoded is defined.
Predictability whether time required for determination, the encoding device according to any one of claims 8 to 13, characterized in that delaying processing for the original encoded image data.
JP33195692A 1992-08-20 1992-12-11 Image coding method and apparatus Expired - Fee Related JP3262869B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP33195692A JP3262869B2 (en) 1992-12-11 1992-12-11 Image coding method and apparatus
US08/515,385 US5655032A (en) 1992-08-20 1995-08-15 Coding method and apparatus therefor
US08/736,942 US6026197A (en) 1992-08-20 1996-10-25 Coding method and apparatus therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33195692A JP3262869B2 (en) 1992-12-11 1992-12-11 Image coding method and apparatus

Publications (2)

Publication Number Publication Date
JPH06178125A JPH06178125A (en) 1994-06-24
JP3262869B2 true JP3262869B2 (en) 2002-03-04

Family

ID=18249525

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33195692A Expired - Fee Related JP3262869B2 (en) 1992-08-20 1992-12-11 Image coding method and apparatus

Country Status (1)

Country Link
JP (1) JP3262869B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003242407A1 (en) 2003-06-13 2005-01-04 Nokia Corporation Electronic device for compressing image data and creating thumbnail image, image processor, and data structure

Also Published As

Publication number Publication date
JPH06178125A (en) 1994-06-24

Similar Documents

Publication Publication Date Title
EP0260462B1 (en) Arithmetic coding for data compression/de-compression by selectively employed, diverse arithmetic coding encoders and decoders
EP0772364B1 (en) Image processing apparatus and method
JP2000115783A (en) Decoder and its method
JPH02177766A (en) Hierarchical encoding system for binary image
US6026197A (en) Coding method and apparatus therefor
JP3457269B2 (en) Arithmetic encoding / decoding method and arithmetic encoding / decoding device
JPH0269075A (en) Picture information coder/decoder
JP3466058B2 (en) Image decoding apparatus and image decoding method
JP3262869B2 (en) Image coding method and apparatus
JPH06164940A (en) Encoder
JP3406550B2 (en) Arithmetic encoding device and arithmetic decoding device
JPH04296169A (en) Picture transmittion equipment
JPH0670176A (en) Encoding method and encoding device
JP2007208543A (en) Moving image encoder
JP2003198858A (en) Encoder and decoder
JPH07249995A (en) Data encoding device
JP3146109B2 (en) Binary image coding device
JP3750367B2 (en) Image encoding / decoding device
JP3384287B2 (en) Encoding device and decoding device
JP2000134479A (en) Image signal processor
JPH046948A (en) Binarizing method for color picture
JPH046954A (en) Picture prediction coding system
JP3213200B2 (en) Decoding device and method
JPH1070730A (en) Image encoding and decoding device, and recording medium stored with their control program
JP2000278538A (en) Device and method for arithmetic encoding/decoding

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011126

LAPS Cancellation because of no payment of annual fees