JPH07121065B2 - Encoding / decoding device - Google Patents
Encoding / decoding deviceInfo
- Publication number
- JPH07121065B2 JPH07121065B2 JP61305764A JP30576486A JPH07121065B2 JP H07121065 B2 JPH07121065 B2 JP H07121065B2 JP 61305764 A JP61305764 A JP 61305764A JP 30576486 A JP30576486 A JP 30576486A JP H07121065 B2 JPH07121065 B2 JP H07121065B2
- Authority
- JP
- Japan
- Prior art keywords
- pixels
- pixel
- encoding
- memory
- marked
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 claims description 24
- 230000015654 memory Effects 0.000 description 60
- 238000010586 diagram Methods 0.000 description 12
- 238000006243 chemical reaction Methods 0.000 description 9
- 238000005070 sampling Methods 0.000 description 3
- 229910003460 diamond Inorganic materials 0.000 description 2
- 239000010432 diamond Substances 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Description
【発明の詳細な説明】 産業上の利用分野 本発明は第1段階で間引いた画像を符号化、第2段階以
降順次その間を補う画像を符号化していく階層的符号化
方式における符号・復号化装置に関するものである。Description: TECHNICAL FIELD The present invention relates to a coding / decoding in a hierarchical coding system in which an image decimated in a first stage is coded, and an image complementing the interval is sequentially coded in a second stage and thereafter. It relates to the device.
従来の技術 ファクシミリ通信の多様化に伴い、会話型の画像通信や
画像データベースの検索などを行うために、ファクシミ
リ端末をディスプレイ端末と組み合わせて利用すること
が考えられている。画像の上から下へ走査線に従って逐
次符号化する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. As a coding method suitable for such interactive image communication, in contrast to conventional coding methods such as MR method for sequentially coding from the top to the bottom of an image according to scanning lines,
A method of performing hierarchical encoding processing such as a sequential reproduction encoding method (for example, Japanese Patent Laid-Open No. 60-127875) has been proposed.
順次再生符号化方式は以下の手順で符号化を行う。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 the rectangle of the four adjacent coded pixels is set to 5 states according to the number of black devices of the reference pixels with these 4 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 four adjacent coded pixels surrounded by the rhombus is set to 5 states according to the number of black pixels of the reference pixels with these 4 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.
第7図はΔX=ΔY=4の場合の順次再生符号化方式に
おける符号化順序の概念を示す図であり、まず◎印の画
素を符号化する。次に○印の画素を、既に符号化された
◎印の画素で、○印の画素を矩形に囲む最近傍の4つを
参照画素とし、参照画素の黒画素の個数別に符号化す
る。次に△印の画素を、既に符号化された◎印及び○印
の画素で、△印の画素を菱形に囲む最近傍の4つを参照
画素とし、参照画素の黒画素の個数別に符号化する。次
に×印の画素を、既に符号化された◎印、○印及び△印
の画素で、×印の画素を矩形に囲む最近傍の4つを参照
画素とし、参照画素の黒画素の個数別に符号化する。最
後に・印の画素を、既に符号化された◎印、○印、△印
及び×印の画素で、・印の画素を菱形に囲む最近傍の4
つを参照画素とし、参照画素の黒画素の個数別に符号化
する。FIG. 7 is a diagram showing the concept of the coding order in the sequential reproduction coding method in the case of ΔX = ΔY = 4. First, the pixels marked with ⊚ are coded. Next, the circled pixels are the already coded circled pixels, and the four nearest neighbors surrounding the circled pixels are used as reference pixels, and are coded according to the number of black pixels of the reference pixels. Next, the Δ-marked pixels are the already-encoded ◎ -marked and ◯ -marked pixels, and the four nearest neighbors surrounding the Δ-marked pixels in the diamond shape are used as reference pixels, and are coded by the number of black pixels of the reference pixels To do. Next, the x-marked pixels are the already coded ◎ -marked, ◯ -marked and Δ-marked pixels, and the four nearest neighbors surrounding the x-marked pixel in the rectangle are used as reference pixels, and the number of black pixels of the reference pixels is set. Encode separately. Finally, the pixel of the mark is the already coded pixel of the ◎ mark, the ○ mark, the Δ mark and the X mark, and the nearest 4 pixels that surround the pixel of the mark in a diamond shape.
One of the reference pixels is used as a reference pixel, and the reference pixels are encoded according to the number of black pixels.
符号・復号化を行う装置を構成する場合に、参照画素、
符号画素及び復号画素を、画素を記憶しているメモリに
並列に読み書きすることが処理速度の向上につながる。
前記の順次再生符号化方式においては、もとの画素に対
して必要な画素だけ2i(i=整数)ごとにサンプリング
した状態で並列に参照画素、符号画素及び復号画素を扱
うことが望ましい。When configuring a device that performs encoding / decoding, reference pixels,
Reading and writing the coded pixel and the decoded pixel in parallel with the memory storing the pixels leads to an improvement in the processing speed.
In the above sequential reproduction coding method, it is desirable to handle reference pixels, coded pixels, and decoded pixels in parallel in a state where only necessary pixels are sampled every 2 i (i = integer) with respect to the original pixels.
一方、独立にアドレスを与え得るメモリを2j個用意し、
2j+k画素を1つのブロックとし、このブロック内では1/
2i(0≦i≦k)に縮小した2jビットのデータを一度に
アクセス出来るデータの記憶方法が提案されている。On the other hand, prepare 2 j memories that can independently give addresses,
2 j + k pixels are set as one block, and within this block, 1 /
A data storage method has been proposed in which 2 j- bit data reduced to 2 i (0 ≦ i ≦ k) can be accessed at one time.
この方法は、各ブロック内の2j+k個のデータを縮小率に
応じてサンプリングした結果を2j個ごとにグループ分け
した場合に、各グループ内の2j個のデータは並列に動作
可能な2j個のメモリに分解して記憶されるように2j+k個
のデータの記憶方法を定めている(例えば、特開昭60−
3039号公報、特開昭60−81661号公報)。This method, when grouping the 2 j + k-number results data sampled according to the reduction ratio of each 2 j number in each block, 2 j-number of data in each group can operate in parallel a 2 j-number of memory decompose defines a method for storing 2 j + k pieces of data to be stored (e.g., JP-60-
3039, JP-A-60-81661).
前記の記憶方法を用いたメモリ装置を前記の順次再生符
号化方式における画素を記憶するメモリに利用すること
により、もとの画素に対して必要な画素だけ2i(i=整
数)ごとにサンプリングした状態で並列に参照画素、符
号画素及び復号画素を扱うことが出来る。By using the memory device using the above storage method as a memory for storing pixels in the above sequential reproduction coding method, only pixels necessary for the original pixels are sampled every 2 i (i = integer). In this state, the reference pixel, the code pixel and the decoded pixel can be handled in parallel.
発明が解決しようとする問題点 前記で説明した順次再生符号化方式において、最初に画
素を抽出する時、横方向にΔX=2n(n=整数)画素
毎、縦方向にΔY=2n(n=整数)ライン毎で、ΔX及
びΔYが2の指数乗であることにより前記の記憶方法を
用いたメモリを利用出来る。Problems to be Solved by the Invention In the sequential reproduction coding method described above, when first extracting pixels, ΔX = 2 n (n = integer) pixels in the horizontal direction and ΔY = 2 n ( n in the vertical direction). A memory using the above storage method can be used because ΔX and ΔY are exponentiated to 2 for each (n = integer) line.
しかしながら、前記のアルゴリズムの一部を変形するこ
とでΔX及びΔYが2の指数乗でなくてもよい。第2図
はΔX=ΔY=5の場合における符号化順序の概念とそ
の画素を示す図である。同図において、・印の画素の符
号化までは第7図で示す順序と同様である。次に※印の
画素を、既に符号化された◎印、○印、△印、×印及び
・印の画素で、※印の画素を矩形に囲む最近傍の4つを
参照画素とし、参照画素の黒画素の個数別に符号化す
る。最後に▽印の画素を、既に符号化された◎印、○
印、△印、×印、・印及び※印の画素で、▽印の画素を
菱形に囲む最近傍の4つを参照画素とし、参照画素の黒
画素の個数別に符号化する。However, ΔX and ΔY do not have to be powers of 2 by modifying a part of the above algorithm. FIG. 2 is a diagram showing the concept of the encoding order and its pixels when ΔX = ΔY = 5. In the figure, the sequence up to the encoding of the pixel indicated by-is the same as that shown in FIG. Next, the pixels marked with * are the already-encoded pixels marked with ◎, ○, Δ, ×, and ・, and the four nearest neighbors surrounding the pixel marked with ※ are used as reference pixels, and are referred to. Encoding is performed for each number of black pixels. Finally, the pixel marked with ▽ is the already coded ◎, ○
Among the pixels of the mark, Δ mark, × mark, · mark, and * mark, the four nearest neighbors surrounding the ▽ mark pixel are set as reference pixels, and the pixels are coded according to the number of black pixels of the reference pixels.
この場合の符号・復号化では、もとの画素に対して必要
な画素のサンプリングが2の指数乗ごとでなくなり、前
記の記憶方法を用いたメモリ装置を使えず、もとの画素
に対して必要な画素だけサンプリングした状態でメモリ
に並列に読み書きすることが出来なくなり処理速度が低
下する。In the encoding / decoding in this case, the sampling of pixels necessary for the original pixel is not every power of 2, and the memory device using the above storage method cannot be used. It becomes impossible to read and write in parallel to the memory in a state where only the necessary pixels are sampled, and the processing speed decreases.
本発明はかかる点に鑑みてなされたもので、主走査方向
に、2の指数乗でない画素毎に抽出した画素を対象に符
号・復号化処理を行う際の符号・復号化装置を提供する
ことを目的としている。The present invention has been made in view of the above circumstances, and provides a coding / decoding device for performing coding / decoding processing on a pixel extracted for each pixel that is not an exponentiated power of 2 in the main scanning direction. It is an object.
問題点を解決するための手段 本発明は上記問題点を解決するために、主走査方向に、
2の指数乗でないΔX画素毎に抽出した画素を対象に符
号・復号化処理を行う場合に、画像信号を主走査方向に
2n/ΔX(2n>ΔX,n=整数)倍にし、この変換した画
像信号を2n画素毎に抽出した画素を符号・復号化処理す
る。Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides, in the main scanning direction,
When the encoding / decoding process is performed on the pixels extracted for each ΔX pixel that is not a power of 2, the image signal is moved in the main scanning direction.
It is multiplied by 2 n / ΔX (2 n > ΔX, n = integer), and the pixels obtained by extracting the converted image signal every 2 n pixels are subjected to encoding / decoding processing.
作用 主走査方向に2n/ΔX倍にした画像信号を2n画素毎に抽
出した画素を対象に符号・復号化処理することになり、
1/2i(0≦i≦k)に縮小した2jビットのデータを一度
にアクセス出来る前記した記憶方法を用いたメモリ装置
を利用することで、もとの画素に対して必要な画素部分
をサンプリングした状態でメモリに並列に読み書きする
ことが出来るので、符号・復号化装置における処理速度
が向上する。Action The image signal that is multiplied by 2 n / ΔX in the main scanning direction will be subjected to encoding / decoding processing for the pixels extracted every 2 n pixels,
By using the memory device using the above-described storage method that can access 2 j- bit data reduced to 1/2 i (0 ≦ i ≦ k) at a time, a pixel portion necessary for the original pixel can be obtained. Can be read and written in parallel to the memory in a sampled state, so that the processing speed in the encoding / decoding device is improved.
実施例 第1図は本発明の符号・復号化装置の一実施例を示すブ
ロック図である。同図において、1は符号化すべき画像
及び復号化した画像を蓄積する一画面メモリ、2は拡大
変換及び縮小変換を行う変換回路、3は1/2i(0≦i≦
k)に縮小した2jビットのデータを一度にアクセス出来
る縮小メモリ、4は符号画素及び参照画素から符号デー
タを生成及び符号データと参照画素から復号画素を再生
する符号・復号化回路である。Embodiment FIG. 1 is a block diagram showing an embodiment of an encoding / decoding device of the present invention. In the figure, 1 is a single-screen memory that stores an image to be encoded and a decoded image, 2 is a conversion circuit that performs enlargement conversion and reduction conversion, and 3 is 1/2 i (0 ≦ i ≦
A reduction memory 4 capable of accessing the 2 j- bit data reduced to k) at a time is a code / decoding circuit for generating code data from code pixels and reference pixels and reproducing decoded pixels from the code data and reference pixels.
第2図に示す順序で符号化する場合(最初に画素を抽出
する時、横方向にΔX=5画素毎、縦方向にΔY=5画
素毎)を例にして、符号化に関して説明する。第2図の
符号化すべき画像は、これは一画面メモリ1に蓄積され
ている。横方向にΔX=5画素毎に抽出した画素を対象
に符号化処理することになるので、一画面メモリ1に蓄
積されている画像を、変換回路2で横方向に8/5倍に拡
大して縮小メモリ3に書き込む。縮小メモリ3の並列ビ
ット数が8ビットとすると、1/2i(0≦i≦3)に縮小
した8ビットのデータを一度にアクセス出来る記憶方法
で縮小メモリ3に書き込むことになる。第3図は横方向
に8/5倍に拡大して縮小メモリ3に書き込まれた画像を
示す図で、−印の画像はdon′t careである。The encoding will be described by taking the case of encoding in the order shown in FIG. 2 (when first extracting pixels, ΔX = 5 pixels in the horizontal direction and ΔY = 5 pixels in the vertical direction) as an example. The image to be encoded in FIG. 2 is stored in the single screen memory 1. Since the pixels extracted every ΔX = 5 pixels in the horizontal direction will be subjected to the encoding process, the image stored in the one-screen memory 1 is enlarged in the horizontal direction by the conversion circuit 2 to 8/5 times. And writes it in the reduced memory 3. If the parallel bit number of the reduced memory 3 is 8 bits, 8-bit data reduced to 1/2 i (0 ≦ i ≦ 3) will be written to the reduced memory 3 by a storage method that can be accessed at one time. FIG. 3 is a diagram showing an image written in the reduction memory 3 by being enlarged 8/5 times in the horizontal direction, and an image with a minus sign is don't care.
まず、符号・復号化回路4は縮小メモリ3から◎印の画
素を読み出し符号化する。各ラインで符号画素は縮小メ
モリ3において8画素毎に記憶されているから、符号・
復号化回路4は縮小メモリ3に対して1/8に縮小したデ
ータのアクセスを行うことにより、各ラインで符号画素
のみを8ビット一度に読み出し、符号化する。First, the encoding / decoding circuit 4 reads out the pixel marked with ⊚ from the reduction memory 3 and encodes it. In each line, the code pixel is stored in the reduction memory 3 every 8 pixels.
The decoding circuit 4 accesses the reduced memory 3 to reduce the data to 1/8 to read only the code pixels in each line for 8 bits at a time and encode them.
次に、○印の画素を符号化する。符号・復号化回路4は
縮小メモリ3からこの画素と参照画素(◎印の画素)を
読み出し符号化する。例えば、符号画素22の参照画素は
画素00,05,50,55である。各ラインで符号画素及び参照
画素は縮小メモリ3において8画素毎に記憶されている
から、符号・復号化回路4は縮小メモリ3に対して1/8
に縮小したデータのアクセスを行うことにより、各ライ
ンでそれぞれの画素のみを8ビット一度に読み出し、符
号化する。Next, the pixels marked with a circle are encoded. The encoding / decoding circuit 4 reads out this pixel and the reference pixel (pixels marked with ⊚) from the reduction memory 3 and encodes them. For example, the reference pixels of the code pixel 22 are pixels 00, 05, 50, 55. In each line, the code pixel and the reference pixel are stored in the reduction memory 3 for every 8 pixels, so that the encoding / decoding circuit 4 has 1/8 of the reduction memory 3.
By accessing the data reduced to, only each pixel in each line is read out and encoded for 8 bits at a time.
次に、△印の画素を符号化する。符号・復号化回路4は
縮小メモリ3からこの画素と参照画素(◎,○印の画
素)を読み出し符号化する。例えば、符号画素25の参照
画素は画素05,22,27,55である。各ライン上の符号画素
及び参照画素は縮小メモリ3において8画素毎に記憶さ
れているから、符号・復号化回路4は縮小メモリ3に対
して1/8に縮小したデータのアクセスを行うことによ
り、各ラインでそれぞれの画素のみを8ビット一度に読
み出し、符号化する。Next, the pixels marked with Δ are encoded. The encoding / decoding circuit 4 reads out and encodes this pixel and the reference pixel (pixels marked with ⊚ and ◯) from the reduction memory 3. For example, the reference pixels of the code pixel 25 are pixels 05, 22, 27, 55. Since the code pixels and the reference pixels on each line are stored in the reduced memory 3 every 8 pixels, the encoding / decoding circuit 4 accesses the reduced memory 3 by reducing the data to 1/8. , 8 bits of each pixel are read out at once in each line and encoded.
次に、×印の画素を符号化する。符号・復号化回路4は
縮小メモリ3からこの画素と参照画素(◎,○,△印の
画素)を読み出し符号化する。例えば、符号画素11の参
照画素は画素00,02,20,22である。各ライン上の符号画
素及び参照画素は縮小メモリ3において8画素毎に記憶
されているから、符号・復号化回路4は縮小メモリ3に
対して1/4に縮小したデータのアクセスを行うことによ
り、各ラインでそれぞれの画素のみを8ビット一度に読
み出し、符号化する。Next, the pixels marked with X are encoded. The encoding / decoding circuit 4 reads out and encodes this pixel and reference pixels (pixels marked with ⊚, ◯ and Δ) from the reduction memory 3. For example, the reference pixels of the code pixel 11 are pixels 00, 02, 20, 22. Since the code pixels and the reference pixels on each line are stored in the reduced memory 3 for every 8 pixels, the encoding / decoding circuit 4 accesses the reduced memory 3 by reducing the data to 1/4. , 8 bits of each pixel are read out at once in each line and encoded.
次に、・印の画素を符号化する。符号・復号化回路4は
縮小メモリ3からこの画素と参照画素(◎,○,△,×
印の画素)を読み出し符号化する。例えば、符号画素12
の参照画素は画素02,11,13,22、符号画素15の参照画素
は画素05,13,16,25である。各ラインで符号画素及び参
照画素は縮小メモリ3において4画素毎に記憶されてい
るから、符号・復号化回路4は縮小メモリ3に対して1/
4に縮小したデータのアクセスを行うことにより、各ラ
インでそれぞれの画素のみを8ビット一度に読み出し、
符号化する。Next, the pixel of the mark is encoded. The encoding / decoding circuit 4 receives this pixel and the reference pixel (⊚, ○, Δ, ×) from the reduction memory 3.
(The pixel of the mark) is read and encoded. For example, code pixel 12
The reference pixels of 0 are pixels 02, 11, 13, 22, and the reference pixels of the code pixel 15 are pixels 05, 13, 16, 25. In each line, the code pixel and the reference pixel are stored in the reduced memory 3 for every 4 pixels.
By accessing the data reduced to 4, only each pixel in each line is read out 8 bits at a time,
Encode.
次に、※印の画素を符号化する。符号・復号化回路4は
縮小メモリ3からこの画素と参照画素(◎,×,・印の
画素)を読み出し符号化する。例えば、符号画素44の参
照画素は画素33,35,53,55、符号画素49の参照画素は画
素38,3A,58,5Aである。各ラインで符号画素は縮小メモ
リ3において8画素毎に、必要な参照画素は縮小メモリ
3において最も細かいところで2画素毎に記憶されてい
るので、符号・復号化回路4は縮小メモリ3に対して最
も細かいところが同時に読み出せるアクセス(1/2に縮
小したデータのアクセス)を行う。これにより各ライン
上で、必要な符号画素、参照画素を含む画素を8ビット
一度に読み出し、符号・復号化回路4は必要な画素のみ
を用いて符号化する。Next, the pixels marked with * are encoded. The encoding / decoding circuit 4 reads out and encodes this pixel and the reference pixel (pixels marked with ⊚, ×, ...) from the reduction memory 3. For example, reference pixels of the code pixel 44 are pixels 33, 35, 53, 55, and reference pixels of the code pixel 49 are pixels 38, 3A, 58, 5A. In each line, the code pixel is stored in every 8 pixels in the reduction memory 3, and the necessary reference pixel is stored in every 2 pixels at the finest place in the reduction memory 3. Access is performed so that the finest part can be read at the same time (access of data reduced to 1/2). As a result, on each line, the pixels including the required code pixels and the reference pixels are read out in 8 bits at a time, and the encoding / decoding circuit 4 encodes using only the required pixels.
次に、▽印の画素を符号化する。符号・復号化回路4は
縮小メモリ3からこの画素と参照画素(◎,△,×,
・,※印の画素)を読み出し符号化する。例えば、符号
画素45の参照画素は画素35,44,49,55、符号画素46の参
照画素は画素36,44,49,56、符号画素54の参照画素は画
素44,53,55,94である。各ラインで符号画素は縮小メモ
リ3において8画素毎に記憶されている場合と2画素毎
に記憶されている場合があり、必要な参照画素は縮小メ
モリ3において最も細かいところで2画素毎に記憶され
ているので、符号・復号化回路4は縮小メモリ3に対し
て最も細かいところが同時に読み出せるアクセス(1/2
に縮小したデータのアクセス)を行う。これにより各ラ
イン上で、必要な符号画素、参照画素を含む画素を8ビ
ット一度に読み出し、符号・復号化回路4は必要な画素
のみを用いて符号化する。Next, the pixel marked with ∇ is encoded. The encoding / decoding circuit 4 receives this pixel and the reference pixel (⊚, Δ, ×,
・ Pixel marked with * is read and encoded. For example, the reference pixels of the code pixel 45 are pixels 35, 44, 49, 55, the reference pixels of the code pixel 46 are pixels 36, 44, 49, 56, and the reference pixels of the code pixel 54 are pixels 44, 53, 55, 94. is there. In each line, the code pixels may be stored in the reduced memory 3 every 8 pixels or in every 2 pixels, and the necessary reference pixels are stored in every 2 pixels at the finest place in the reduced memory 3. Therefore, the encoding / decoding circuit 4 can access the reduced memory 3 at the same time to read the finest part (1/2
Access the reduced data). As a result, on each line, pixels including necessary code pixels and reference pixels are read out at once in 8 bits, and the encoding / decoding circuit 4 encodes using only the necessary pixels.
第2図に示す順序で符号化したデータを、復号化する場
合を説明する。A case of decoding the data encoded in the order shown in FIG. 2 will be described.
最初に画素を抽出する時、横方向にΔX=5画素毎を対
象に符号化処理されているので、横方向に8/5倍に拡大
した画像を想定して復号化処理する。When the pixels are first extracted, since the encoding processing is performed for each ΔX = 5 pixels in the horizontal direction, the decoding processing is performed by assuming an image that is magnified 8/5 times in the horizontal direction.
まず、符号・復号化回路4は符号データから◎印の画素
を復号する。各ラインで復号画素は横方向に8/5倍する
ので、縮小メモリ3に対して8画素毎に記憶すればよい
から、符号・復号化回路4は縮小メモリ3に対して1/8
に縮小したデータのアクセスを行うことにより、各ライ
ンで復号画素のみを8ビット一度に書き込む。First, the encoding / decoding circuit 4 decodes the pixel marked with ⊚ from the encoded data. Since the decoded pixels in each line are multiplied by 8/5 in the horizontal direction, it suffices to store every 8 pixels in the reduced memory 3, so that the encoding / decoding circuit 4 has 1/8 of the reduced memory 3.
By accessing the data reduced to, only the decoded pixels are written in 8 bits at a time in each line.
次に、符号・復号化回路4は縮小メモリ3から参照画素
(◎印の画素)を読み出し、この画素をもとに符号デー
タから○印の画素を復号する。各ラインで復号画素は横
方向に8/5倍するので、縮小メモリ3に対して8画素毎
に記憶すればよく、各ラインで参照画素は縮小メモリ3
において8画素毎に記憶されているから、符号・復号化
回路4は縮小メモリ3に対して1/8に縮小したデータの
アクセスを行うことにより、各ラインでそれぞれの画素
のみを8ビット一度に読み出し及び書き込みを行う。Next, the encoding / decoding circuit 4 reads the reference pixel (pixel marked with ⊚) from the reduction memory 3 and decodes the pixel marked with ∘ from the coded data based on this pixel. Since the decoded pixels are multiplied by 8/5 in the horizontal direction in each line, it is sufficient to store every 8 pixels in the reduced memory 3, and the reference pixel in each line is the reduced memory 3.
Since the data is stored in every 8 pixels in, the encoding / decoding circuit 4 accesses the reduced memory 3 by reducing the data to 1/8 so that only each pixel in each line is 8 bits at a time. Read and write.
以下、△印の画素の復号に関しては同様である。また、
×印及び・印の画素の復号に関しては縮小メモリ3に対
して1/4に縮小したデータのアクセスを行うことを除い
て同様である。Hereinafter, the same applies to the decoding of the pixels marked with Δ. Also,
The decoding of the pixels marked with X and .circle-solid. Is the same except that the data reduced to 1/4 is accessed to the reduced memory 3.
※印の画素を復号化では、符号・復号化回路4は縮小メ
モリ3から参照画素(◎,×,・印の画素)を読み出
し、この画素をもとに符号データから※印の画素を復号
する。各ラインで復号画素は横方向に8/5倍するので、
縮小メモリ3に対して8画素毎に記憶すればよく、各ラ
インで必要な参照画素は縮小メモリ3において最も細か
いところで2画素毎に記憶されているので、符号・復号
化回路4は縮小メモリ3に対して最も細かいところが同
時に読み出し書き込めるアクセス(1/2に縮小したデー
タのアクセス)を行うことにより、各ラインで必要な参
照画素、復号画素を含む画素を8ビット一度に読み出し
及び書き込みを行う。▽印の画素を復号化では、符号・
復号化回路4は縮小メモリ3から参照画素(◎,△,
×,・,※印の画素)を読み出し、この画素をもとに符
号データから▽印の画素を復号する。各ラインで復号画
素は横方向に8/5倍するので、縮小メモリ3に対して8
画素毎に記憶すればよい場合と2画素毎に記憶すればよ
い場合があり、各ラインで必要な参照画素は縮小メモリ
3において最も細かいところで2画素毎に記憶されてい
るので、符号・復号化回路4は縮小メモリ3に対して最
も細かいところが同時に読み出し書き込めるアクセス
(1/2に縮小したデータのアクセス)を行うことによ
り、各ラインで必要な参照画素、復号画素を含む画素を
8ビット一度に読み出し及び書き込みを行う。When decoding the pixels marked with *, the coding / decoding circuit 4 reads the reference pixels (pixels marked with ◎, ×, ...) from the reduction memory 3 and decodes the pixels marked with * from the coded data based on these pixels. To do. In each line, the decoded pixel is multiplied by 8/5 in the horizontal direction, so
It suffices to store every 8 pixels in the reduction memory 3, and since the reference pixel required in each line is stored in every 2 pixels at the finest part in the reduction memory 3, the encoding / decoding circuit 4 is set to the reduction memory 3 By performing an access (access of the data reduced to 1/2) at the same time for the finest part, a pixel including a reference pixel and a decoded pixel required for each line is read and written at 8 bits at a time. When decoding the pixels marked with ▽,
The decoding circuit 4 receives the reference pixels (⊚, Δ,
The pixels marked with ×, ·, * are read out, and the pixels marked with ▽ are decoded from the coded data based on these pixels. Decoded pixels in each line are multiplied by 8/5 in the horizontal direction, so 8
It may be stored for each pixel or for every two pixels. Since the reference pixel required for each line is stored for every two pixels at the finest point in the reduction memory 3, the encoding / decoding is performed. The circuit 4 accesses the reduced memory 3 so that the finest part can be read and written at the same time (access of data reduced to 1/2), so that the pixels including the reference pixel and the decoded pixel required for each line are 8 bits at a time. Read and write.
書き込みにおいて、8画素毎のアクセスでよい所を2画
素毎のアクセスにした場合、余分なデータは縮小メモリ
3のdon′t care(−印)のところに書かれるので、復
号画素は潰れない。In the writing, when the access to every 8 pixels is good to the access to every 2 pixels, the extra data is written in the reduced memory 3 at the don't care (-mark), so that the decoded pixel is not collapsed.
上記の復号処理により、縮小メモリ3には第3図に示す
画像が復号される。この画像は横方向に8/5倍されてい
るにで、変換回路2で横方向に5/8倍に縮小して一画面
メモリ1に書き込むことで、もとの画像が再生される。By the above decoding processing, the image shown in FIG. 3 is decoded in the reduction memory 3. Since this image is scaled by 8/5 in the horizontal direction, the original image is reproduced by reducing the size in the horizontal direction by 5/8 in the conversion circuit 2 and writing it in the one-screen memory 1.
第4図はΔX=ΔY=3の場合における符号化順序の概
念とその画素を示す図であり、符号化は◎印,△印,×
印,・印の画素の順である。この場合は、もとの画像を
横方向に4/3倍し、同様に符号化及び復号化を行えばよ
い。第5図は一画面メモリ1に蓄積されている第4図の
画像が変換回路2で横方向に4/3倍に拡大して縮小メモ
リ3に書き込まれた画像を示す図で、−印の画像はdo
n′t careである。FIG. 4 is a diagram showing the concept of the encoding order and the pixels in the case of ΔX = ΔY = 3, and the encoding is ⊚, Δ, and ×.
The mark and the pixel of the mark are in order. In this case, the original image may be multiplied by 4/3 in the horizontal direction and similarly encoded and decoded. FIG. 5 is a diagram showing an image in which the image of FIG. 4 stored in the single screen memory 1 is laterally enlarged by 4/3 times in the conversion circuit 2 and written in the reduced memory 3. Image is do
n't care.
上記の説明では横方向のみ拡大していたが、縦方向も同
様に拡大することで抽出するラインが2の指数乗ごとに
なり、縦方向のアドレス演算を簡易にすることが出来
る。第6図は一画面メモリ1に蓄積されている第4図の
画像が変換回路2で横方向及び縦方向に4/3倍に拡大し
て縮小メモリ3に書き込まれた画像を示す図で、−印の
画像はdon′t careである。In the above description, only the horizontal direction is enlarged, but the vertical direction is also enlarged so that the lines to be extracted are every exponentiation of 2, and the address calculation in the vertical direction can be simplified. FIG. 6 is a diagram showing an image in which the image of FIG. 4 stored in the one-screen memory 1 is enlarged by 4/3 times in the horizontal and vertical directions in the conversion circuit 2 and written in the reduced memory 3. Images marked with-are don't care.
発明の効果 本発明によれば、横方向の符号画素等の抽出単位が2の
指数乗でない場合に、抽出単位が2の指数乗になるよう
に拡大変換するので、1/2i(0≦i≦k)に縮小した2j
ビットのデータを一度にアクセス出来る記憶方法を用い
たメモリ装置を利用することが出来るようになる。これ
により符号・復号化回路が、もとの画素に対して必要な
画素部分をサンプリングした状態でメモリに並列に読み
書きすることが出来るので、サンプリングしない状態で
メモリよりデータを読み書きする場合に比べてメモリへ
のアクセス回路が減少し、符号・復号化装置における処
理速度の向上が図れる。EFFECTS OF THE INVENTION According to the present invention, when the extraction unit of the horizontal code pixels or the like is not the exponentiation power of 2, expansion conversion is performed so that the extraction unit is the exponentiation power of 2, so that 1/2 i (0 ≦ 2 j reduced to i ≦ k)
It becomes possible to use a memory device that uses a storage method capable of accessing bit data at one time. This allows the encoding / decoding circuit to read and write in parallel to the memory while sampling the necessary pixel portion for the original pixel, so compared to reading and writing data from the memory without sampling. The number of access circuits to the memory is reduced, and the processing speed in the encoding / decoding device can be improved.
第1図は本発明の一実施例における符号・復号化装置を
示すブロック図、第2図はΔX=ΔY=5の場合におけ
る符号化順序の概念とその画素を示す図、第3図は第2
図の画像を横方向に8/5倍した画像を示す図、第4図は
ΔX=ΔY=3の場合における符号化順序の概念とその
画素を示す図、第5図は第4図の画像を横方向に4/3倍
した画像を示す図、第6図は第4図の画像を横方向及び
縦方向に4/3倍した画像を示す図、第7図はΔX=ΔY
=4の場合の順次再生符号化方式における符号化順序の
概念図である。 1……一画面メモリ、2……変換回路、3……縮小メモ
リ、4……符号・復号化回路。FIG. 1 is a block diagram showing a coding / decoding device according to an embodiment of the present invention, FIG. 2 is a diagram showing a concept of a coding order and pixels thereof when ΔX = ΔY = 5, and FIG. Two
FIG. 4 is a diagram showing an image obtained by multiplying the image in the figure by 8/5 in the horizontal direction, FIG. 4 is a diagram showing the concept of the encoding order and its pixels in the case of ΔX = ΔY = 3, and FIG. 5 is the image of FIG. Figure 4 shows an image obtained by multiplying 4/3 in the horizontal direction, Figure 6 shows an image obtained by multiplying the image in Figure 4 by 4/3 in the horizontal and vertical directions, and Figure 7 shows ΔX = ΔY.
4 is a conceptual diagram of an encoding order in the sequential reproduction encoding method when = 4. 1 ... One screen memory, 2 ... Conversion circuit, 3 ... Reduction memory, 4 ... Encoding / decoding circuit.
フロントページの続き (72)発明者 遠藤 俊明 東京都目黒区中目黒2丁目1番23号 国際 電信電話株式会社研究所内 (72)発明者 加藤 久晴 東京都目黒区中目黒2丁目1番23号 国際 電信電話株式会社研究所内 (72)発明者 西野 寧一 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 草尾 寛 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 平澤 晶 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 三木 博 東京都目黒区下目黒2丁目3番8号 松下 電送株式会社内 (72)発明者 浅羽 章二 東京都目黒区下目黒2丁目3番8号 松下 電送株式会社内Front page continuation (72) Inventor Toshiaki Endo 2-23 Nakameguro, Meguro-ku, Tokyo International Telegraph and Telephone Corporation (72) Inventor Hisaharu Kato 2-12-23 Nakameguro, Meguro-ku, Tokyo International (72) Inventor, Neiichi Nishino, 1006, Kadoma, Kadoma City, Osaka Prefecture, Matsushita Electric Industrial Co., Ltd. (72) Inventor, Hiroshi Kusao, 1006, Kadoma, Kadoma City, Osaka Prefecture (in Matsushita Electric Industrial Co., Ltd. 72) Inventor Akira Hirasawa 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (72) Inventor Hiroshi Miki 2-3-3 Shimomeguro, Meguro-ku, Tokyo Matsushita Electric Transmission Co., Ltd. (72) Inventor Asaba Shoji 2-3-8 Shimo-Meguro, Meguro-ku, Tokyo Matsushita Dentsu Co., Ltd.
Claims (2)
方向にΔX画素毎に、副走査方向にΔYライン毎に抽出
した画素を対象に符号・復号化処理を行うものであり、
ΔXが2の指数乗でない場合に画像信号を主走査方向に
2n/ΔX(2n>ΔX,n=整数)倍にし、主走査方向では2
n画素毎に抽出した画素を対象に符号・復号化処理を行
うように構成したことを特徴とする符号・復号化装置。1. An encoding / decoding process is performed for pixels extracted from ΔP pixels in the main scanning direction and ΔY lines in the sub-scanning direction from pixels forming an image signal.
When ΔX is not an exponential power of 2, the image signal is moved in the main scanning direction.
2 n / ΔX (2 n > ΔX, n = integer) times, and 2 in the main scanning direction
An encoding / decoding device characterized by being configured to perform encoding / decoding processing on pixels extracted for every n pixels.
向に対しても画像信号を2m/ΔY(2m>ΔY,m=整数)
倍にし、副走査方向にも2mライン毎に抽出した画素を対
象に符号・復号化処理することを特徴とする特許請求の
範囲第1項記載の符号・復号化装置。2. If ΔY is not an exponential power of 2, the image signal is 2 m / ΔY (2 m > ΔY, m = integer) even in the sub-scanning direction.
The encoding / decoding apparatus according to claim 1, wherein the encoding / decoding processing is performed on pixels extracted every 2 m lines in the sub-scanning direction.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61305764A JPH07121065B2 (en) | 1986-12-22 | 1986-12-22 | Encoding / decoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61305764A JPH07121065B2 (en) | 1986-12-22 | 1986-12-22 | Encoding / decoding device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63157562A JPS63157562A (en) | 1988-06-30 |
| JPH07121065B2 true JPH07121065B2 (en) | 1995-12-20 |
Family
ID=17949066
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61305764A Expired - Lifetime JPH07121065B2 (en) | 1986-12-22 | 1986-12-22 | Encoding / decoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07121065B2 (en) |
-
1986
- 1986-12-22 JP JP61305764A patent/JPH07121065B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63157562A (en) | 1988-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6192086A (en) | Video terminal equipment causing confusion in image lines | |
| JP3092382B2 (en) | Signal processing device | |
| JPH07121065B2 (en) | Encoding / decoding device | |
| JP3437197B2 (en) | Image processing device | |
| JPS6073575A (en) | Data display | |
| JP2506706B2 (en) | Coding / decoding apparatus for hierarchical image | |
| JP2506705B2 (en) | Coding / decoding apparatus for hierarchical image | |
| JP4131349B2 (en) | Data conversion apparatus, data conversion method, recording medium, and data conversion system | |
| JP2506720B2 (en) | Encoder | |
| JP3193285B2 (en) | Coding noise reduction filter circuit | |
| JP2805621B2 (en) | Image data processing device | |
| JP2532422B2 (en) | Encoder | |
| JPH0320871A (en) | Image retriever | |
| JP3227154B2 (en) | Image processing system | |
| JP2839578B2 (en) | Image data input processing device | |
| JP3227237B2 (en) | Encoding device | |
| KR100246374B1 (en) | 8x8 block inverter for pixel data | |
| JPH10341351A (en) | Method and device for processing data | |
| JPH0439829B2 (en) | ||
| JP3427586B2 (en) | Data processing device and storage device | |
| JPH09121286A (en) | Method and device for compressing picture data | |
| JPS5828587B2 (en) | menzukeihatsuseisouchi | |
| JPS63279669A (en) | Encoding/decoding device | |
| JPS61267457A (en) | Picture processor | |
| JPH09154139A (en) | Moving image coding method and device |