JP2506720B2 - Encoder - Google Patents

Encoder

Info

Publication number
JP2506720B2
JP2506720B2 JP62031727A JP3172787A JP2506720B2 JP 2506720 B2 JP2506720 B2 JP 2506720B2 JP 62031727 A JP62031727 A JP 62031727A JP 3172787 A JP3172787 A JP 3172787A JP 2506720 B2 JP2506720 B2 JP 2506720B2
Authority
JP
Japan
Prior art keywords
pixel
state
encoding
pixels
reference 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 - Lifetime
Application number
JP62031727A
Other languages
Japanese (ja)
Other versions
JPS63199571A (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.)
KDDI Corp
Panasonic Holdings Corp
Original Assignee
Kokusai Denshin Denwa KK
Matsushita Electronics Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kokusai Denshin Denwa KK, Matsushita Electronics Corp, Matsushita Electric Industrial Co Ltd filed Critical Kokusai Denshin Denwa KK
Priority to JP62031727A priority Critical patent/JP2506720B2/en
Publication of JPS63199571A publication Critical patent/JPS63199571A/en
Application granted granted Critical
Publication of JP2506720B2 publication Critical patent/JP2506720B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は第1段階で間引いた画像を符号化し、第2段
階以降で順次その間を補う画像を符号化していく階層的
符号化における符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding apparatus in hierarchical coding in which images thinned out in a first stage are coded, and images complementing the gaps are sequentially coded in a second stage and thereafter. It is a thing.

従来の技術 ファクシミリ通信の多様化に伴い、会話型の画像通信
や画像データベースの検索などを行うために、ファクシ
ミリ端末をディスプレイ端末と組み合わせて利用するこ
とが考えられている。画像の上から下へ走査線に従って
逐次符号化するMR方式等の従来の符号化方式に対して、
このような会話型の画像通信に適した符号化方式として
階層的に符号化処理を行う方式が提案されている。階層
的符号化方式による復号処理では、早い段階で大まかな
画像が表示され順次解像度を上げつつ最終画像を得るこ
とができるので、会話型の画像通信や画像データベース
の検索などに適することになる。順次再生符号化方式
(特開昭60−127875号公報)はその一つである。
2. Description of the Related Art With the diversification of facsimile communication, it has been considered to use a facsimile terminal in combination with a display terminal for interactive image communication and image database search. Compared to conventional encoding methods such as MR method which sequentially encodes from the top to the bottom of the image according to scanning lines,
As a coding method suitable for such conversational image communication, a method of performing a hierarchical coding process has been proposed. In the decoding process using the hierarchical encoding method, a rough image is displayed at an early stage and the final image can be obtained while the resolution is sequentially increased, which is suitable for interactive image communication and image database search. One of them is the sequential reproduction coding method (Japanese Patent Laid-Open No. 60-127875).

順次再生符号化方式は以下の手順で符号化を行う。 The sequential reproduction coding method performs coding in the following procedure.

(1)横(主走査)方向にΔX=2n(n=整数)画素毎
に、縦(副走査)方向にΔY=2n(n=整数)ライン毎
に抽出した画素を連結してランレングス符号化を行う。
(1) Run by connecting every ΔX = 2 n (n = integer) pixels in the horizontal (main scanning) direction and ΔY = 2 n (n = integer) lines in the vertical (sub-scanning) direction. Performs length coding.

(2)次に、該符号化された近隣する4つの画素で矩形
に囲まれた中心に位置する画素を、この4つの画素を参
照画素として参照画素の黒画素の個数に応じて5状態に
分類し、各状態に対応した画素を連結してランレングス
符号化を行う。
(2) Next, the pixel located at the center surrounded by a rectangle with the four adjacent coded pixels is set to five states according to the number of black pixels of the reference pixels with these four pixels as reference pixels. The pixels are classified, and pixels corresponding to each state are connected to perform run-length coding.

(3)次に、該符号化された近隣する4つの画素で菱形
に囲まれた中心に位置する画素を、この4つの画素を参
照画素として参照画素の黒画素の個数に応じて5状態に
分類し、各状態に対応した画素を連結してランレングス
符号化を行う。
(3) Next, the pixel located at the center surrounded by the rhombus with the four adjacent coded pixels is set to five states according to the number of black pixels of the reference pixels with these four pixels as reference pixels. The pixels are classified, and pixels corresponding to each state are connected to perform run-length coding.

(4)(2)、(3)の符号化を画素の全ての符号化が
終えるまで繰り返し行う。
(4) The encoding of (2) and (3) is repeated until all the pixels are encoded.

第5図はΔX=ΔY=4の場合の順次再生符号化方式
における符号化順序の概念を示す図であり、まず◎印の
画素を符号化する(上記の(1))。
FIG. 5 is a diagram showing the concept of the encoding order in the sequential reproduction encoding method in the case of ΔX = ΔY = 4. First, the pixels marked with ⊚ are encoded ((1) above).

次に、○印の画素を、既に符号化された◎印の画素の
うち○印の画素を矩形に囲む最近傍の4つを参照画素と
し、参照画素の状態(黒画素の個数)別に符号化する
(上記の(2))。次に、△印の画素を、既に符号化さ
れた◎印および○印の画素のうち△印の画素を菱形に囲
む最近傍の4つを参照画素とし、参照画素の状態(黒画
素の個数)別に符号化する(上記の(3))。次に、×
印の画素を、既に符号化された◎印、○印および△印の
画素のうち×印の画素を矩形の囲む最近傍の4つを参照
画素とし、参照画素の状態(黒画素の個数)別に符号化
する。(上記の(2))。最後に、・印の画素を、既に
符号化された◎印、○印、△印および×印の画素のうち
・印の画素を菱形に囲む最近傍の4つを参照画素とし、
参照画素の状態(黒画素の個数)別に符号化する。(上
記の(3))。
Next, the circled pixels are coded according to the state (the number of black pixels) of the reference pixels, using the four nearest neighbors that surround the circled pixels among the already coded circled pixels as reference pixels. ((2) above). Next, regarding the pixels marked with Δ, among the already coded pixels marked with ◎ and ○, the four nearest neighbors surrounding the pixels marked with triangles in a diamond shape are used as reference pixels, and the state of the reference pixels (the number of black pixels ) Separate encoding ((3) above). Then ×
The pixel of the mark is the reference pixel which is the four nearest neighbors surrounding the rectangle of the pixel of the mark ∘ among the pixels of the mark ∘, ○ and Δ already encoded, and the state of the reference pixel (the number of black pixels) Encode separately. ((2) above). Finally, the pixel of the mark is, among the already coded pixels of the ◎ mark, the O mark, the Δ mark, and the X mark, the four nearest pixels that surround the pixel of the mark in a diamond shape are used as reference pixels,
Encoding is performed for each state of reference pixels (the number of black pixels). ((3) above).

以上はΔX=ΔY=4の場合であるが他のΔX、ΔY
についても同様である。またΔX≠ΔYの時は一方向の
参照画素の間隔が2となった時点でその方向の距離を固
定し、他方についてのみ参照画素の距離が2となるまで
(2)、(3)の処理を行う。
The above is the case of ΔX = ΔY = 4, but other ΔX and ΔY
The same applies to. When ΔX ≠ ΔY, the distance in one direction is fixed when the reference pixel interval in one direction becomes 2, and the processes in (2) and (3) are performed until the reference pixel distance becomes 2 only in the other direction. I do.

また、順次再生符号化方式における復号化は、符号化
の(1)、(2)、(3)と同様の手順に従い参照画素
の状態(黒画素の個数)別に復号化を行う。
Further, in the decoding in the sequential reproduction coding method, the decoding is performed for each reference pixel state (the number of black pixels) according to the same procedure as (1), (2), and (3) of the coding.

発明が解決しようとする問題点 階層的符号化方式ではデータ圧縮率の向上を目的とし
て参照画素の状態別に符号化を行うものがある。例えば
先に述べた順次再生符号化方式では、4つの参照画素の
黒画素の個数により5つの状態に分けて各状態別に符号
化を行う。順次再生符号化方式において、1つの状態を
1つの階層とした場合の階層構造を第4図に示す。これ
は第1階層(レベル1)のΔXおよびΔYが8の場合で
あり、また同図において状態iは4つの参照画素のうち
黒画素がi個である状態を意味している。
Problems to be Solved by the Invention There is a hierarchical coding method in which coding is performed for each state of reference pixels for the purpose of improving the data compression rate. For example, in the above-described sequential reproduction coding method, coding is performed for each state by dividing into five states according to the number of black pixels of four reference pixels. FIG. 4 shows a hierarchical structure in the case where one state is one layer in the sequential reproduction coding system. This is the case where ΔX and ΔY in the first layer (level 1) are 8, and the state i in the figure means a state in which there are i black pixels among the four reference pixels.

このような階層構造を持つ符号化方式においては、次
のような問題が生じる。すなわち、先に述べた順次再生
符号化方式のように処理を参照画素の状態別に行う場合
各状態で同じ符号・復号化画素および参照画素を重複し
てアクセスすることになり、符号・復号化画素,参照画
素のアクセスの点で無駄が生じるという問題である。順
次再生符号化方式を例にとると、第4図の第2階層〜第
6階層は全て等しい符号・復号化画素および参照画素
(ΔX=ΔY=8で正方形)を用いており、同じ符号・
復号化画素,参照画素を各階層で重複してアクセスして
いる。同様のことが第7〜11階層,第12〜第16階層,第
17〜第21階層,第22〜第26階層、第27〜第28階層のそれ
ぞれにおいても生じる。このため符号・復号化画素およ
び参照画素のアクセスにオーバヘッドが生じ、全体の処
理速度の低下を招くことになる。
The encoding system having such a hierarchical structure has the following problems. That is, when the processing is performed for each state of reference pixels as in the sequential reproduction encoding method described above, the same encoding / decoding pixel and reference pixel are accessed in duplicate in each state. However, there is a problem in that the access to the reference pixels is wasteful. Taking the sequential reproduction coding method as an example, the second layer to the sixth layer in FIG. 4 all use the same code / decode pixel and reference pixel (square with ΔX = ΔY = 8), and the same code /
Decoded pixels and reference pixels are accessed redundantly in each layer. The same applies to 7th to 11th layers, 12th to 16th layers, and
It also occurs in each of the 17th to 21st layers, the 22nd to 26th layers, and the 27th to 28th layers. For this reason, overhead occurs in accessing the coded / decoded pixel and the reference pixel, resulting in a decrease in the overall processing speed.

本発明はかかる点に鑑みてなされたもので、符号化処
理における符号化対象画素および参照画素のアクセス回
数により少くすることを目的としている。
The present invention has been made in view of the above points, and an object thereof is to reduce the number of times of access to a pixel to be coded and a reference pixel in a coding process.

問題点を解決するための手段 本発明は上記目的を達成するために、画素の中からサ
ンプリングした画素を、前記サンプリングした画素に対
して特定の位置にある前記画素からとった既知の参照画
素の状態に基づき、前記参照画素の状態別に分類し、前
記各状態に属する画素別に符号化を行う階層的な符号化
処理を行う装置において、符号化すべき画像データを格
納し、所定のサンプリングで参照画素及び符号化対象画
素を出力する記憶部と、前記参照画素の各状態毎に設け
られ、符号化対象画素に対して符号化を行う複数の符号
化部と、参照画素の黒白判別により前記状態を判別する
判別部と、該判別部の判別結果に基づいて前記複数の符
号化上部の中から1つの符号化部を選定し、該選定され
た符号化部に符号化対象画素を入力させる符号化部選定
部とを備え、前記参照画素の1以上複数個の状態の前記
符号化対象画素の処理を一括して行うことにより前記符
号化対象画素および前記参照画素のアクセスを各状態の
処理で共通化する階層的画素における符号化復号化処理
においてその処理を高速に行うようにしたものである。
Means for Solving the Problems In order to achieve the above object, the present invention relates to a known reference pixel obtained by taking a pixel sampled from among the pixels at a specific position with respect to the sampled pixel. An apparatus for performing a hierarchical encoding process in which the reference pixels are classified according to states and the pixels belonging to each state are encoded, and the image data to be encoded is stored and the reference pixels are sampled at a predetermined sampling. And a storage unit that outputs a pixel to be encoded, a plurality of encoding units that are provided for each state of the reference pixel and that encodes the pixel to be encoded, and the state based on whether the reference pixel is black or white. A discriminating unit for discriminating, and a code for selecting one encoding unit from the plurality of encoding upper parts based on the discrimination result of the discriminating unit and inputting a pixel to be encoded to the selected encoding unit. An encoding unit selecting unit, and by collectively performing the processing of the encoding target pixels in one or more states of the reference pixel, the encoding target pixel and the reference pixel can be accessed in each state. In the encoding / decoding process for the hierarchical pixels to be shared, the process is performed at high speed.

作用 本発明は上記した構成により、参照画素の等しい複数
状態の処理に対しては、符号化対象画素および参照画素
のアクセスを各状態で共通化することが可能になる。
Effect With the above-described configuration, the present invention makes it possible to share access to the encoding target pixel and the reference pixel in each state for processing in a plurality of states having the same reference pixel.

実施例 第1図は本発明の一実施例における符号化装置を示す
ブロック図であり、詳細に説明するために復号化処理を
行う回路についても示されている。同図の装置は、先に
説明した階層的符号化方式の一つである順次再生符号化
方式を対象として構成したものである。
First Embodiment FIG. 1 is a block diagram showing an encoding apparatus according to an embodiment of the present invention, and a circuit for performing a decoding process is also shown for the sake of detailed description. The apparatus shown in the figure is configured for the sequential reproduction coding system, which is one of the hierarchical coding systems described above.

第1図の装置では、1の画素メモリとして主走査方向
にサンプリングした画素のアクセスが可能なメモリ装置
(例えば、特開昭60−3039号公報,特開昭60−81661号
公報に記載のもの)を利用する。第2図はこのようなメ
モリ装置における画素のアクセスについて説明する図で
ある。同図(a)はメモリリードの場合であり、図に示
すごとく画像メモリの内容は縮小して読み出される。同
図(b)はメモリライトの場合であり、図に示すごとく
データは画像メモリに拡散されて書き込まれる。この
際、画像メモリの×印の位置にはデータは書き込まれず
元の値が保存される。
In the apparatus shown in FIG. 1, a memory device capable of accessing pixels sampled in the main scanning direction as one pixel memory (for example, those disclosed in JP-A-60-3039 and JP-A-60-81661). ) Is used. FIG. 2 is a diagram for explaining pixel access in such a memory device. The figure (a) shows the case of memory read, and as shown in the figure, the contents of the image memory are reduced and read. FIG. 7B shows a case of memory write, and data is diffused and written in the image memory as shown in the figure. At this time, the original value is stored without writing the data in the position of the X mark of the image memory.

このようなメモリ装置を画像メモリ1に用いることに
より、順次再生符号化方式におけるサンプリング間隔Δ
Xに該当する画素のみについて処理を行うことが可能で
ある。以下、第1図の装置の動作について説明を行う。
By using such a memory device for the image memory 1, the sampling interval Δ in the sequential reproduction encoding method is increased.
It is possible to process only the pixels corresponding to X. The operation of the apparatus shown in FIG. 1 will be described below.

まず、第1図の装置の符号化時の動作について説明す
る。画像メモリ1からは符号化画素およびそれに対応す
る参照画素が読み出され、それぞれ符号化画素シフトレ
ジスタ3および参照画素シフトレジスタ2にセットされ
る。データが各シフトレジスタにセットされると、タイ
ミング制御部28は各シフトレジスタのシフトを開始す
る。符号化画素シフトレジスタ3から出力された符号化
画素は、8〜12の各状態の符号化部に送られる。一方、
参照画素シフトレジスタ2から出力された参照画素は5
の参照画素状態判定部において参照画素の状態、すなわ
ち4個の参照画素のうちの黒画素の個数が判定され、参
照画素の状態を示すコードをデマルチプレクサ6に出力
する。デマルチプレクサ6は、参照画素状態判定部5か
らの状態を示すコードに従い、その状態に応じた符号化
部を選択して、該当する符号化部にタイミング制御部28
からの符号化画素取り込みクロックを出力する。例え
ば、符号化画素シフトレジスタ3から出力された符号化
画素が状態0である場合は、デマルチプレクサ6の制御
により状態0符号化部8のみに符号化画素が取り込まれ
符号化が行われる。これらの処理は符号化画素のビット
単位にシーケンシャルに行われていく。デマルチプレク
サ6は符号化画素の各ビット単位にその状態に応じた符
号化部8〜12を選択して符号化画素を入力させていくこ
とになる。このようにして、各状態の符号化部8〜12に
おいて独立に生成されたコードデータは、それぞれ23〜
27の各状態に対応したコードバッファに蓄積される。画
面の右下まで処理が終了した時点で、各状態のコードバ
ッファ23〜27に蓄積されたコードデータを基に、階層的
な符号体系を構成することになる。
First, the operation of the apparatus of FIG. 1 at the time of encoding will be described. A coded pixel and a reference pixel corresponding to the coded pixel are read from the image memory 1 and set in the coded pixel shift register 3 and the reference pixel shift register 2, respectively. When data is set in each shift register, the timing control unit 28 starts shifting of each shift register. The coded pixels output from the coded pixel shift register 3 are sent to the coding units in each of states 8 to 12. on the other hand,
The reference pixel output from the reference pixel shift register 2 is 5
The reference pixel state determining unit determines the state of the reference pixel, that is, the number of black pixels among the four reference pixels, and outputs a code indicating the state of the reference pixel to the demultiplexer 6. The demultiplexer 6 selects an encoding unit according to the state according to the code indicating the state from the reference pixel state determination unit 5 and sets the timing control unit 28 to the corresponding encoding unit.
To output the encoded pixel capture clock from. For example, when the coded pixel output from the coded pixel shift register 3 is in the state 0, the coded pixel is fetched only in the state 0 coding section 8 under the control of the demultiplexer 6 and is coded. These processes are sequentially performed in bit units of encoded pixels. The demultiplexer 6 selects the coding units 8 to 12 according to the state of each bit of the coded pixel and inputs the coded pixel. In this way, the code data independently generated in the coding units 8 to 12 in each state are 23 to 23, respectively.
It is stored in the code buffer corresponding to each state of 27. When the processing is completed up to the lower right of the screen, a hierarchical coding system is constructed based on the code data accumulated in the code buffers 23 to 27 in each state.

以上述べた処理により、参照画素が同一である5つの
状態(状態0〜状態4)に対して、一回の符号化画素お
よび参照画素アクセスで全状態の符号化を行うことがで
きる。
By the processing described above, it is possible to perform coding in all states with one access to the coded pixel and the reference pixel for the five states (state 0 to state 4) in which the reference pixels are the same.

次に、第1図の装置の復号化時の動作について説明す
る。
Next, the decoding operation of the apparatus shown in FIG. 1 will be described.

まず、同一の参照画素における5つの状態全てを復号
する場合について述べる。各状態におけるコードデータ
はコードバッファ23〜27に格納される。各状態の復号化
部13〜17は、それぞれ独立して対応する状態のコードバ
ッファよりコードデータを読み出して復号化を行い、各
状態の復号化画素をバッファ18〜22に出力し蓄積する。
またこれと並行して画素メモリ1からは参照画素が読み
出され、参照画素シフトレジスタ2にセットされる。参
照画素がシフトレジスタ2にセットされると、タイミン
グ制御部28は参照画素シフトレジスタ2、復号化画素シ
フトレジスタ4およびマスクパターンシフトレジスタ30
のシフトを開始する。符号化時と同様、参照画素シフト
レジスタ2から出力された参照画素は参照画素状態判定
部5においてその状態が判定され、状態を示すコードを
出力する。状態を示すコードは、マルチプレクサ7およ
びゲート29に出力される。マルチプレクサ7は、参照画
素状態判定部5からの状態を示すコードに従って参照画
素の状態に対応するバッファを選択し、バッファの内容
を復号化画素シフトレジスタ4に出力する。例えば、参
照画素が状態0であればバッファ18の復号化画素を復号
化画素シフトレジスタ4に出力する。なお、バッファ18
〜22はFIFO(ファストイン・ファストアウトメモリ)等
により構成されており、その内容を1ビットシフトアウ
トすると次のビットが出力に現われるようになってい
る。
First, the case of decoding all five states in the same reference pixel will be described. The code data in each state is stored in the code buffers 23-27. The decoding units 13 to 17 in each state independently read the code data from the code buffer in the corresponding state and perform decoding, and output the decoded pixels in each state to the buffers 18 to 22 and store them.
In parallel with this, reference pixels are read from the pixel memory 1 and set in the reference pixel shift register 2. When the reference pixel is set in the shift register 2, the timing control unit 28 causes the reference pixel shift register 2, the decoding pixel shift register 4, and the mask pattern shift register 30.
To start the shift. Similar to the case of encoding, the reference pixel output from the reference pixel shift register 2 has its state determined by the reference pixel state determination unit 5, and outputs a code indicating the state. The code indicating the state is output to the multiplexer 7 and the gate 29. The multiplexer 7 selects the buffer corresponding to the state of the reference pixel according to the code indicating the state from the reference pixel state determination unit 5, and outputs the content of the buffer to the decoding pixel shift register 4. For example, if the reference pixel is in state 0, the decoded pixel of the buffer 18 is output to the decoded pixel shift register 4. The buffer 18
22 to 22 are composed of a FIFO (fast-in / fast-out memory) or the like, and when the contents are shifted out by 1 bit, the next bit appears in the output.

符号化と同様これらの処理は復号化画素のビット単位
にシーケンシャルに行われていき、マルチプレクサ7は
参照画素の状態に応じてバッファ18〜22を選択して復号
化画素を読み出し復号化画素シフトレジスタ4へ出力し
ていく。復号化シフトレジスタ4に復号化画素が所定量
蓄積された時点で、復号化画素シフトレジスタ4の内容
が画像メモリ1に書き込まれる。この際、画像メモリ1
へは必要なビットのみが書き込まれ、不要なビットはマ
スクされる。このビット単位のマスクを制御するための
マスクパタンを生成するのがマスクパタンシフトレジス
タ30である。マスクパタンシフトレジスタ30は、画像メ
モリ1に書きこむべきビットに対応するメモリチップの
みライトイネイブル信号をアクティブとすることによ
り、ビット単位のマスク/ノンマスクの制御を行ってい
る。これは、例えば5つの状態のうち1つの状態のみを
復号する際には、他の4つの状態のビットについては画
像メモリへの書き込み時にマスクする必要があるために
行う制御である。今の場合5つの状態全ての復号を行っ
ているので、復号化画像シフトレジスタ4の内容は全て
画像メモリ1へ書き込むため、マスクパタンシフトレジ
スタ30の各ビットは全てアクティブを示す。従ってゲー
ト29は、マスクパタンシフトレジスタ30に対して常にア
クティブの信号を出力する。ゲート29の制御は31の状態
制御信号によって行われる。状態制御信号31はどの状態
の復号を行うかをゲート29に与えるものであり、今の場
合5つの状態全てを復号することを示すコードをゲート
29に与えている。
Similar to the encoding, these processes are sequentially performed on a bit-by-bit basis of the decoded pixel, and the multiplexer 7 selects the buffers 18 to 22 according to the state of the reference pixel to read the decoded pixel and decode the decoded pixel shift register. Output to 4. When a predetermined amount of decoded pixels are accumulated in the decoding shift register 4, the contents of the decoding pixel shift register 4 are written in the image memory 1. At this time, the image memory 1
Only the necessary bits are written in and the unnecessary bits are masked. The mask pattern shift register 30 generates a mask pattern for controlling the mask in bit units. The mask pattern shift register 30 controls the mask / non-mask in bit units by activating the write enable signal only in the memory chip corresponding to the bit to be written in the image memory 1. This is a control that is performed because, for example, when decoding only one of the five states, the bits of the other four states need to be masked when writing to the image memory. In this case, since all five states are being decoded, the contents of the decoded image shift register 4 are all written to the image memory 1, so all the bits of the mask pattern shift register 30 indicate active. Therefore, the gate 29 always outputs an active signal to the mask pattern shift register 30. The gate 29 is controlled by the state control signal 31. The state control signal 31 gives the gate 29 which state to decode, and in this case, gates the code indicating that all five states will be decoded.
Giving to 29.

このようにして画面の右下までの処理を行えば、参照
画素が同一である5つの状態(状態0〜状態4)復号
を、一回の復号化画素および参照画素アクセスで行った
ことになる。
If the processing to the lower right of the screen is performed in this way, it means that decoding of five states (state 0 to state 4) in which the reference pixels are the same is performed by one-time decoding pixel and reference pixel access. .

次に、同一の参照画素における5つの状態のうち、一
部の状態のみを復号する場合について述べる。基本的に
は先に説明した5つの状態全てを復号する場合と同じで
あるので、異る点についてのみ説明する。
Next, a case where only some of the five states of the same reference pixel are decoded will be described. Since it is basically the same as the case of decoding all five states described above, only different points will be described.

タイミング制御部28は状態制御信号31に従って、復号
化部13〜17のうち復号する状態に該当するものだけを動
作させ、復号化画素を各バッファ18〜22に蓄積する。マ
ルチプレクサ7は、参照画素状態判定部5からの状態を
示すコードにより状態に対応するバッファを選択し、バ
ッファの内容を復号化画素シフトレジスタ4に出力す
る。この時復号する状態以外のい復号化画素はバッファ
に存在しないためdon′t careであり不定値となる。
The timing control unit 28 operates only the decoding units 13 to 17 corresponding to the decoding state according to the state control signal 31, and accumulates the decoded pixels in the buffers 18 to 22. The multiplexer 7 selects the buffer corresponding to the state by the code indicating the state from the reference pixel state determination unit 5, and outputs the content of the buffer to the decoding pixel shift register 4. At this time, there is no decoded pixel other than the decoded state in the buffer, so it is don't care and has an indefinite value.

マスクパタンシフトレジスタ30は、復号化画素シフト
レジスタ4の内容を画素メモリ1に書き込む際に、復号
する状態以外のビット、すなわち前記のdon′t careで
あり不定値となる画素をマスクするマスクパタンを生成
する。第3図はこれを示す図であり、参照画素が矩形の
位置にありΔX=ΔY=2の時に状態0,1の復号を行う
場合である。同図(a)は画像メモリにおける復号化画
素の位置と参照画素を示している。図に示すように、各
復号化位置における状態は対応する参照画素の黒画素の
数で与えられる。同図(b)および同図(c)はそれぞ
れ第1図における復号化シフトレジスタ4およびマスク
パタンシフトレジスタ30の内容を示している。第2図で
説明したようにサンプリングしたアクセスにより、復号
化画素シフトレジスタ4およびマスクパタンシフトレジ
スタ30のビットには画像メモリ1のビットおきのサンプ
リングに応じたデータがセットされている。さて今の場
合、状態0,1のみ復号を行っているので、(b)の復号
化レジスタの状態2,3,4のビットはdon′t care(不定
値)であり、従って(c)のマスクパタンシフトレジス
タもこれに対応するビット位置がノンアクティブとなっ
ている。よって復号化画素シフトレジスタ4の内容を画
像メモリ1に書き込む際には、マスクパタンシフトレジ
スタ30の制御により状態0,1の画素のみが画像メモリに
書き込まれることになる。
The mask pattern shift register 30 is a mask pattern for masking bits other than the decoding state when writing the contents of the decoded pixel shift register 4 to the pixel memory 1, that is, the above-mentioned don't care and undefined value pixels. To generate. FIG. 3 is a diagram showing this, and is a case where the states 0 and 1 are decoded when the reference pixel is in the rectangular position and ΔX = ΔY = 2. FIG. 11A shows the position of the decoded pixel in the image memory and the reference pixel. As shown in the figure, the state at each decoding position is given by the number of black pixels of the corresponding reference pixels. 2B and 2C show the contents of the decoding shift register 4 and the mask pattern shift register 30 in FIG. 1, respectively. By the access sampled as described with reference to FIG. 2, the bits of the decoding pixel shift register 4 and the mask pattern shift register 30 are set with the data corresponding to the bit-by-bit sampling of the image memory 1. By the way, in this case, since only the states 0 and 1 are decoded, the bits of the states 2, 3 and 4 of the decoding register of (b) are don't care (undefined value), so that of (c) Also in the mask pattern shift register, the corresponding bit position is non-active. Therefore, when writing the contents of the decoded pixel shift register 4 to the image memory 1, only the pixels in the states 0 and 1 are written to the image memory under the control of the mask pattern shift register 30.

第1図のマスクパタンシフトレジスタ30への入力はゲ
ート29により制御される。ゲート29は、復号を行う状態
を示す状態制御信号31と参照画素状態判定部5から出力
される参照画素の状態を示すコードとを比較し、参照画
素の状態が復号を行う状態と合致すればアクティブ、合
致しなければノンアクティブの信号をマスクパタンシフ
トレジスタ30に出力する。このようにしてマスクパタン
シフトレジスタ30には、画像メモリ1に書き込むべきビ
ット位置のみアクティブであるマスクパタンが生成され
る。
The input to the mask pattern shift register 30 of FIG. 1 is controlled by the gate 29. The gate 29 compares the state control signal 31 indicating the state of decoding with the code indicating the state of the reference pixel output from the reference pixel state determination unit 5, and if the state of the reference pixel matches the state of decoding. If the signals are active and do not match, a non-active signal is output to the mask pattern shift register 30. In this way, the mask pattern shift register 30 generates a mask pattern in which only the bit positions to be written in the image memory 1 are active.

以上第1図の装置の符号化時および復号化時の動作を
述べてきたが、特別な場合として第4図における第1階
層の処理について説明する。順次再生符号化方式では第
1階層の処理だけは参照画素が存在しない。第1階層で
は、ΔXおよびΔYで規定されるサンプリング画素をそ
のまま連結して符号・復号化を行う。第1図の装置で第
1階層の処理に対処するには、参照画素状態判定部5の
出力をある1つの状態に強制的に固定し、またゲート29
の出力を常にアクティブとすればよい。例えば参照画素
状態判定部5の出力を状態0に固定すれば、符号化時に
は全ての符号化画素は状態0符号化部8で符号化されコ
ードバッファ23に格納される。また復号化時にはコード
データは状態0コードデータは全て状態0復号化部13に
おいて復号化され、復号化画素はバッファ18を経て復号
化画素シフトレジスタ4に送られる。復号化画素シフト
レジスタ4の内容は全て有効であるが、一方マスクパタ
ンシフトレジスタ30の内容もゲート29の制御により全て
アクティブなので、復号化画素シフトレジスタ4の内容
は全て画像メモリ1に書き込むことができる。このよう
にして順次再生符号化方式の第1階層の処理を行うこと
ができる。
While the operation of the apparatus of FIG. 1 at the time of encoding and decoding has been described above, the processing of the first layer in FIG. 4 will be described as a special case. In the sequential reproduction coding method, reference pixels do not exist only in the processing of the first layer. In the first layer, the sampling pixels defined by ΔX and ΔY are concatenated as they are for encoding / decoding. In order to deal with the processing of the first layer in the apparatus shown in FIG. 1, the output of the reference pixel state determination unit 5 is forcibly fixed to a certain state, and the gate 29
The output of should always be active. For example, if the output of the reference pixel state determination unit 5 is fixed to the state 0, all the encoded pixels are encoded by the state 0 encoding unit 8 and stored in the code buffer 23 during encoding. At the time of decoding, all the code data of the state 0 code data is decoded by the state 0 decoding unit 13, and the decoded pixels are sent to the decoded pixel shift register 4 via the buffer 18. All the contents of the decoded pixel shift register 4 are valid, while the contents of the mask pattern shift register 30 are all active under the control of the gate 29. Therefore, all the contents of the decoded pixel shift register 4 can be written in the image memory 1. it can. In this way, the processing of the first layer of the sequential reproduction coding method can be performed.

また、例えば第2階層から第6階層までの処理をシー
ケンシャルに行ったならば符号・復号化画素および参照
画素のアクセスは各階層において行われて計5回同一の
符号・復号化画素、参照画素をアクセスすることにな
る。これを本発明による複数状態の一括処理で行ったな
らば符号・復号化画素,参照画素のアクセスは1回で済
み、結局符号・復号化画素,参照画素のアクセス回数が
1/5になったことになる。これは処理速度の向上に大き
く貢献する。
Further, for example, if the processes from the second layer to the sixth layer are performed sequentially, the access of the encoding / decoding pixel and the reference pixel is performed in each layer, and the same encoding / decoding pixel and the reference pixel are accessed five times in total. Will be accessed. If this is performed by the batch processing of a plurality of states according to the present invention, the access of the code / decode pixel and the reference pixel is performed only once, and the number of access times of the code / decode pixel and the reference pixel is eventually increased.
That's 1/5. This greatly contributes to the improvement of processing speed.

最後に、第1図における各状態の符号化部8〜12およ
び復号化部13〜17の動作について説明する。本発明にお
いては、各状態の符号化部8〜12および復号化部13〜17
はそれぞれ時分割に動作させることも並列に動作させる
ことも可能である。例えば符号化時には、時分割動作の
場合1つの状態の符号化部が動作している間は他の状態
の符号化部は停止しているのに対して、並列動作させた
場合は各状態の符号化部は同時に動作することが可能で
ある。従って一つの状態が連続しない限り、符号化部の
処理は並列動作の方が速くなる。符号化部8〜12の処理
速度が遅いと符号化画素シフトレジスタ3から出力され
る符号化画素を処理しきれず、符号化画素シフトレジス
タ3のシフト動作を一旦停止させる必要がある。これは
符号化画素の処理速度の低下を意味する。この点で符号
化部8〜12の処理は高速であるのが好ましく、同一状態
が連続する場合を除いて符号化部8〜12の処理は並列動
作が処理速度の点からは有利である。復号化についても
同様であり、復号化部13〜17は並列動作させるのが処理
速度の点で有利である。
Finally, the operation of the coding units 8-12 and the decoding units 13-17 in each state in FIG. 1 will be described. In the present invention, the coding units 8-12 and the decoding units 13-17 for each state are
Can be operated in time division or in parallel. For example, at the time of encoding, in the case of time division operation, while the encoding unit in one state is operating, the encoding units in the other states are stopped, whereas when operating in parallel, The encoder can operate simultaneously. Therefore, unless one state is continuous, the processing of the encoding unit is faster in parallel operation. If the processing speed of the coding units 8 to 12 is slow, the coded pixels output from the coded pixel shift register 3 cannot be processed, and the shift operation of the coded pixel shift register 3 needs to be temporarily stopped. This means that the processing speed of coded pixels is reduced. In this respect, the processing of the coding units 8 to 12 is preferably high speed, and the parallel processing of the processing of the coding units 8 to 12 is advantageous in terms of processing speed, except when the same state continues. The same applies to decoding, and it is advantageous in terms of processing speed that the decoding units 13 to 17 operate in parallel.

発明の効果 以上のように本発明によれば、階層的符号化方式にお
いて参照画素が共通である階層は全て一括して符号化処
理を行うことができる。このため1回の符号化対象画素
および参照画素のアクセス参照画素が共通である全ての
階層の処理が行えることになる。したがって極めて高速
に処理できる。
EFFECTS OF THE INVENTION As described above, according to the present invention, it is possible to collectively perform coding processing for all layers having common reference pixels in the hierarchical coding method. Therefore, it is possible to perform the processing for all layers in which the access reference pixel of the encoding target pixel and the reference pixel is common once. Therefore, it can be processed at extremely high speed.

【図面の簡単な説明】 第1図は本発明の一実施例における符号化装置を示すブ
ロック図、第2図は画像メモリのサンプリングしたアク
セスを説明する図、第3図は復号時のマスクパタンシフ
トレジスタのマスクパタンを説明する図、第4図は順次
再生符号化方式における階層構造の一列を示す図、第5
図は順次再生符号化方式における符号化順序の概念を示
す図である。 1……画像メモリ、2……参照画素シフトレジスタ、3
……符号化画素シフトレジスタ、4……復号化画素シフ
トレジスタ、5……参照画素状態判定部、6……デマル
チプレクサ、7……マルチプレクサ、8〜12……符号化
部、13〜17……復号化部、18〜22……バッファ、23〜27
……コードバッファ、28……タイミング制御部、29……
ゲート、30……マスクパタンシフトレジスタ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an encoding device according to an embodiment of the present invention, FIG. 2 is a diagram explaining sampled access to an image memory, and FIG. 3 is a mask pattern at the time of decoding. FIG. 4 is a diagram for explaining a mask pattern of a shift register, FIG. 4 is a diagram showing one row of a hierarchical structure in a sequential reproduction coding system, and FIG.
The figure is a diagram showing the concept of the encoding order in the sequential reproduction encoding method. 1 ... Image memory, 2 ... Reference pixel shift register, 3
...... Encoding pixel shift register, 4 Decoding pixel shift register, 5 Reference pixel state determination unit, 6 Demultiplexer, 7 Multiplexer, 8 to 12 Encoding unit, 13 to 17 … Decoding unit, 18-22 …… Buffer, 23-27
...... Code buffer, 28 ...... Timing control unit, 29 ......
Gate, 30 ... Mask pattern shift register

───────────────────────────────────────────────────── フロントページの続き (72)発明者 遠藤 俊明 東京都目黒区中目黒2丁目1番23号 国 際電信電話株式会社研究所内 (72)発明者 加藤 久晴 東京都目黒区中目黒2丁目1番23号 国 際電信電話株式会社研究所内 (72)発明者 草尾 寛 門真市大字門真1006番地 松下電器産業 株式会社内 (72)発明者 平澤 晶 門真市大字門真1006番地 松下電器産業 株式会社内 (72)発明者 西野 寧一 門真市大字門真1006番地 松下電器産業 株式会社内 (72)発明者 三木 博 東京都目黒区下目黒2丁目3番8号 松 下電送株式会社内 (72)発明者 浅羽 章二 東京都目黒区下目黒2丁目3番8号 松 下電送株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Toshiaki Endo 2-23 Nakameguro, Meguro-ku, Tokyo Inside the International Telegraph and Telephone Corporation (72) Inventor Hisaharu Kato 2-1, Nakameguro, Meguro-ku, Tokyo No. 23 International Research Institute of Telegraph and Telephone Corporation (72) Inventor Hiroshi Kusao 1006 Kadoma, Kadoma City Matsushita Electric Industrial Co., Ltd. (72) Inventor Akira Hirasawa 1006 Kadoma, Kadoma City Matsushita Electric Industrial Co., Ltd. 72) Inventor Neiichi Nishino 1006 Kadoma, Kadoma, Kadoma-shi, Matsushita Electric Industrial Co., Ltd. (72) Hiroshi Miki 2-3-3 Shimeguro, Meguro-ku, Tokyo Matsushita Electric Transport Co., Ltd. (72) Inventor Asaba Shoji 2-3-8 Shimo-Meguro, Meguro-ku, Tokyo Matsushita Electric Transport Co., Ltd.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像の中からサンプリングした画素を、前
記サンプリングした画素に対して特定の位置にある前記
画像からとった既知の参照画素の状態に基づき、前記参
照画素の状態別に分類し、前記各状態に属する画素別に
符号化を行う階層的な符号化処理を行う装置において、
符号化すべき画像データを格納し、所定のサンプリング
で参照画素及び符号化対象画素を出力する記憶部と、前
記参照画素の各状態毎に設けられ、符号化対象画素に対
して符号化を行う複数の符号化部と、参照画素の黒白判
別により前記状態を判別する判別部と、該判別部の判別
結果に基づいて前記複数の符号化部の中から1つの符号
化部を選定し、該選定された符号化部に符号化対象画素
を入力させる符号化部選定部とを備え、前記参照画素の
1以上複数個の状態の前記符号化対象画素の処理を一括
して行うことにより前記符号化対象画素および前記参照
画素のアクセスを各状態の処理で共通化することを特徴
とする符号化装置。
1. A pixel sampled from an image is classified according to a state of the reference pixel based on a state of a known reference pixel taken from the image at a specific position with respect to the sampled pixel, In a device that performs hierarchical encoding processing that performs encoding for each pixel belonging to each state,
A storage unit that stores image data to be encoded and outputs a reference pixel and an encoding target pixel by predetermined sampling; and a plurality of units provided for each state of the reference pixel and encoding the encoding target pixel Coding unit, a discrimination unit that discriminates the state by the black-white discrimination of the reference pixel, and one coding unit is selected from the plurality of coding units based on the discrimination result of the discrimination unit, and the selection is performed. An encoding unit selecting unit for inputting an encoding target pixel to the encoded unit, and the encoding is performed by collectively processing the encoding target pixels in one or more states of the reference pixels. An encoding device, characterized in that access to a target pixel and the reference pixel is shared by processing in each state.
JP62031727A 1987-02-13 1987-02-13 Encoder Expired - Lifetime JP2506720B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62031727A JP2506720B2 (en) 1987-02-13 1987-02-13 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62031727A JP2506720B2 (en) 1987-02-13 1987-02-13 Encoder

Publications (2)

Publication Number Publication Date
JPS63199571A JPS63199571A (en) 1988-08-18
JP2506720B2 true JP2506720B2 (en) 1996-06-12

Family

ID=12339072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62031727A Expired - Lifetime JP2506720B2 (en) 1987-02-13 1987-02-13 Encoder

Country Status (1)

Country Link
JP (1) JP2506720B2 (en)

Also Published As

Publication number Publication date
JPS63199571A (en) 1988-08-18

Similar Documents

Publication Publication Date Title
US6542631B1 (en) Encoding method of a color image and its encoding device and a decoding method of the color image and its decoding device
US4750212A (en) Image processing method and apparatus therefor
US6285790B1 (en) Data compression for indexed color image data
US4809215A (en) Information processing system having decode, write and read means
JPH05183757A (en) Method and device for processing picture
JPH04199981A (en) Prompt processing type one-dimensional coder
JPS6145429B2 (en)
JPH06274612A (en) Image processor
JP2862242B2 (en) Image reading device
JP2506720B2 (en) Encoder
JP2563324B2 (en) Image signal coding method
US5319794A (en) Device for high-speed processing of information frames
JP2532422B2 (en) Encoder
JP2506705B2 (en) Coding / decoding apparatus for hierarchical image
JPH0488749A (en) Picture processor
JPH0439829B2 (en)
JPS63269871A (en) Image signal coding and transmitting method
JPH07121065B2 (en) Encoding / decoding device
JP4122753B2 (en) Image processing device
JP3227237B2 (en) Encoding device
JPS63157560A (en) Decoding device
JPH05191801A (en) Frame memory control system of moving image decoder
JP2705290B2 (en) Image processing device
JP3081665B2 (en) Frame memory device
JPH11252544A (en) Moving image coder, its method and recording medium