JPH0273777A - Picture data decoder - Google Patents

Picture data decoder

Info

Publication number
JPH0273777A
JPH0273777A JP22467788A JP22467788A JPH0273777A JP H0273777 A JPH0273777 A JP H0273777A JP 22467788 A JP22467788 A JP 22467788A JP 22467788 A JP22467788 A JP 22467788A JP H0273777 A JPH0273777 A JP H0273777A
Authority
JP
Japan
Prior art keywords
difference value
block
value
difference
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP22467788A
Other languages
Japanese (ja)
Inventor
Masahiro Fukuda
昌弘 福田
Tsuguo Noda
嗣男 野田
Takashi Morihara
隆 森原
Shigeru Yoshida
茂 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP22467788A priority Critical patent/JPH0273777A/en
Publication of JPH0273777A publication Critical patent/JPH0273777A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the operating sequence of a picture by selecting a difference of each block from a difference decoded from a code data and a fixed value '0' based on a representative gradation number of each block detected from a resolution component in advance and writing a data by one pattern in a difference memory. CONSTITUTION:While a difference Ld decoded by a difference decoding means 2 is inputted to a difference value selection means, the mode is inputted from a mode detection means 1. A zero generating means 3 always generates '0' as a data. A difference value selection means 4 selects the difference Ld and the value '0' generated by a zero generator based on the output of the mode detection means 1, outputs the result to a difference value storage means 5 and a difference value read means 6 reads a difference value corresponding to each block from the difference value storage means 5 sequentially. Thus, the operating sequence to reproduce a picture by using the difference value is simplified and the efficiency of the operating test of a picture recovery circuit is improved.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 (第4図、第5図) 発明が解決しようとする課題 課題を解決するための手段 (第1図)作用 実施例 (第2図、第3図、第4図) 発明の効果 (概要) 圧縮された画像データを復元する画像データ復元装置に
係り、特に粗い画像から高品質画像へと段階的に画質が
向上した画像を復元する画像データ復元装置に関し、 差分値の値を用いて画像を再生する時の動作シーケンス
を簡略化すると共に、画像再生回路の動作試験の効率を
向上できるようにすることを目的として、 多値画像を隣接する複数の画素からなるブロックに分割
し、各ブロック毎にブロック内の最大階調値と最小階調
値との差を閾値と比較してこのブロックの画像を表示す
る1または複数の代表階調を求め、代表階調を各ブロッ
クにおける基準値と、この基準値と代表階調との差分値
とて表示し、各ブロックにおける代表階調の分布を示す
分解能成分を算出し、上記基準値と差分値と分解能成分
とを符号化した画像データを復元する画像データの復元
装置において、前記分解能成分から各ブロックの代表階
調数を検出するモード検出手段と、前記差分値を復号す
る差分値復号手段と、差分値として零信号を常時発生す
る零発生手段と、前記モード検出手段が代表階調数が1
であるとしたときは前記零発生手段により発生した零信
号を選択し、また代表階調数が複数であるとしたときは
前記差分値復号手段が復号した差分値を選択する差分値
選択手段と、上記差分値選択手段が選択した零信号及び
差分値を格納する差分値格納手段と、前記差分値格納手
段から各ブロックに対応した差分値を順次呼び出す差分
値読出し手段と・ど備えるものとして構成する。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figures 4 and 5) Means for solving the problem to be solved by the invention (Figure 1) Example of operation (Figures 2, 3, and 4) Effects of the invention (Summary) This invention relates to an image data restoration device that restores compressed image data, and the image quality has improved step by step, especially from coarse images to high-quality images. Regarding an image data restoration device that restores an image, the purpose of the present invention is to simplify the operation sequence when reproducing an image using difference values, and to improve the efficiency of the operation test of the image reproduction circuit. Divide a multivalued image into blocks consisting of a plurality of adjacent pixels, compare the difference between the maximum and minimum gradation values within each block with a threshold value, and display the image of this block. Find multiple representative gradations, display the representative gradation as a reference value in each block, and the difference value between this reference value and the representative gradation, and calculate the resolution component that indicates the distribution of the representative gradation in each block. , an image data restoring device for restoring image data obtained by encoding the reference value, the difference value, and the resolution component, comprising: mode detection means for detecting the number of representative gradations of each block from the resolution component; The difference value decoding means for decoding, the zero generation means for always generating a zero signal as a difference value, and the mode detection means are arranged so that the number of representative gradations is 1.
difference value selection means for selecting the zero signal generated by the zero generation means, and selecting the difference value decoded by the difference value decoding means when the number of representative gradations is plural; , a difference value storage means for storing the zero signal and the difference value selected by the difference value selection means, and a difference value reading means for sequentially reading the difference value corresponding to each block from the difference value storage means. do.

(産業上の利用分野) 本発明は、データ圧縮された画像データを復元する装置
に係り、特に粗い画像から高品質な画像へと階層的な復
元を行う画像データ復元装置に関する。データベース検
索等においては、受信者が早い時期から画像の概略を認
識できるように、粗い画像から高品質画像へと段階的に
画質が向上する階層的伝送が望まれている。即ち、粗い
画像の段階で不必要な画像であると認識されたときには
、その後の復元を行なわず、次の検索を行えるためであ
る。このことは粗い画像の復元は高品質画像の復元に比
して短時間で行なえるため一層有効なものである。
(Industrial Application Field) The present invention relates to an apparatus for restoring compressed image data, and more particularly to an image data restoring apparatus that performs hierarchical restoration from a coarse image to a high-quality image. In database searches and the like, hierarchical transmission is desired in which the image quality is gradually improved from a coarse image to a high quality image so that the recipient can recognize the outline of the image from an early stage. That is, if an unnecessary image is recognized at the rough image stage, the next search can be performed without performing subsequent restoration. This is more effective because restoration of a coarse image can be performed in a shorter time than restoration of a high quality image.

(従来の技術) 画像データの高能率な圧縮方式として、例えば多階調適
応形ブロック符号化方式(昭和62年画像電子学会全国
大会予稿6)がある。
(Prior Art) As a highly efficient compression method for image data, there is, for example, a multi-gradation adaptive block coding method (1986 Institute of Image Electronics Engineers National Conference Proceedings 6).

この多階調適応形ブロック符号化方式(General
ized Block Truncation Cod
ing  以下、略してGBTCと称する)は原画像を
NXN画素からなるブロックに分割し、各画素(X i
 j )をブロック内の最大・最小画素レベル内の2n
 (n=o。
This multi-gradation adaptive block coding method (General
ized Block Truncation Cod
ing (hereinafter abbreviated as GBTC) divides the original image into blocks consisting of NXN pixels, and each pixel (X i
j ) within the maximum and minimum pixel levels within the block
(n=o.

1.2.・・・)レベルで量子化すると共に、各画素の
量子化レベルをビットプレーン形式で表現し、階調情報
とビットプレーン情報とを符号化するものである。
1.2. ...) level, expresses the quantization level of each pixel in a bit plane format, and encodes gradation information and bit plane information.

これをN=4.n=2とした場合について、詳細に述べ
る。第4図はGBTCのアルゴリズムを示すものである
。各ブロックは、ブロック内の最大画素レベル(MAX
L)と最小画素レベル(MINL)の差と符号化パラメ
ータ(閾値)T1.T2 (Tt <T2>により以下
の3つの符号化モード(モードA、モードB、モードC
)に分類される。
This is N=4. The case where n=2 will be described in detail. FIG. 4 shows the GBTC algorithm. Each block has a maximum pixel level within the block (MAX
L) and the minimum pixel level (MINL) and the encoding parameter (threshold) T1. T2 (Tt <T2> allows the following three encoding modes (Mode A, Mode B, Mode C
)are categorized.

モードA:MAXL−MINL≦T1の場合、ブロック
内の画素はルベル(po)に量子化される。
Mode A: If MAXL-MINL≦T1, the pixels in the block are quantized to levels (po).

モードB : TI <MAXL−MINL≦T2の場
合、ブロック内の画素は2レベル (p、 、p2)に量子化される。
Mode B: If TI<MAXL-MINL≦T2, the pixels in the block are quantized to two levels (p, , p2).

モードC:T2<MAXL−MINLの場合、ブロック
内の画素は等間隔な4レベル (Q、〜Q4)に量子化される。
Mode C: When T2<MAXL-MINL, pixels within a block are quantized into four equally spaced levels (Q, to Q4).

量子化レベルは、ブロックの基準レベルLa、レベル間
隔Ld及び画素毎のレベル指定信号(φ、)、j、(φ
2)i、で記述される。平均値処理をAVE()とする
と、次のように符号化に必要な各個が算出される。
The quantization level is determined by the block reference level La, level interval Ld, and level designation signals (φ, ), j, (φ
2) Described by i. If the average value processing is AVE(), each element required for encoding is calculated as follows.

モードA:Po =AVE (Xij)=La(φx)
tj=o、(φ2)、J=0 (全ての1+Jに対して) モートB : P 1=AVE (X t J ≧(M
AX L +MINL)/2) P2=AVE (Xij< (MAXL+MINL)/
2) La= (Pt +P2 )/2 Ld=P□−P2 (φ1)ij=O: (ただし、Xij ≧(MAXL+ MINL)/2の場合) (φx)zj=1: (ただし、Xij< (MAXL+ MINL)/2の場合) (φ2  )  i、+=o : (全ての1+Jに対して) モートC: Ql =AVE (X i j≧(3MA
XL+MINL)/4) Q4=AVE (Xij< (MAXL+3MINL)
/4) La = (Ql +Q4 ) / 2Ld=2 (Q
、−Q4)/3 (φ 1 )Z、+=O,(φ2 ) 五j= 0 :
(ただし、Xij≧La+Ld/ 2の場合) (φ□)2.、+=0.  (φ2)ij=1:(ただ
し、L a + L d / 2 >Xij≧Laの場
合) (φ□)ij=1.(φ2 ) 1==O:(ただし、
La>Xij>= L a −L d / 2の場合) (φ、)1j=1.(φ2)ij=1:(ただし、L 
a −L d / 2 >Xijの場合) 分解能成分(φ□、φ2)は、ブロック間で接続して2
つのビットマツプに変換し、それぞれ2値画像の標準符
号化方式であるMMR符号化方式で符号化する。Ldは
、非線形量子化後、可変長符号化し、Laは、DPCM
符号化を用いて前置差分(ΔLa)を非線形量子化後、
可変長符号化する。
Mode A: Po = AVE (Xij) = La (φx)
tj=o, (φ2), J=0 (for all 1+J) Moat B: P 1=AVE (X t J ≧(M
AX L +MINL)/2) P2=AVE (Xij< (MAXL+MINL)/
2) La= (Pt + P2 )/2 Ld=P□−P2 (φ1)ij=O: (However, if Xij ≧ (MAXL+ MINL)/2) (φx)zj=1: (However, if Xij< ( MAXL+MINL)/2) (φ2) i, +=o: (for all 1+J) Mote C: Ql = AVE (X i j≧(3MA
XL+MINL)/4) Q4=AVE (Xij< (MAXL+3MINL)
/4) La = (Ql +Q4) / 2Ld=2 (Q
, -Q4)/3 (φ1)Z, +=O, (φ2) 5j=0:
(However, in the case of Xij≧La+Ld/2) (φ□)2. , +=0. (φ2) ij=1: (However, in the case of La + L d / 2 > Xij≧La) (φ□) ij=1. (φ2) 1==O: (However,
When La>Xij>= La − L d / 2) (φ, )1j=1. (φ2) ij=1: (However, L
a − L d / 2 > Xij) The resolution components (φ□, φ2) are connected between blocks and
The images are converted into two bitmaps and encoded using the MMR encoding method, which is a standard encoding method for binary images. Ld is variable length coding after nonlinear quantization, La is DPCM
After nonlinear quantization of the pre-difference (ΔLa) using encoding,
Perform variable length encoding.

GBTC方式では、ISO寄書 ISO/TC97/SC2/W(: N510  ”G
eneralized Block Truncati
on Coding”で記述されるように、内部ステー
ジを用いてプログレッシブ・ビルドアップ機能を実現す
ることができる。これに対応するために、従来、符号化
データの伝送を第1ステージから順に第2、第3と第7
ステージまで、画像データを送出し、この画像データを
使用する者が必要に応じて、画像データの入手を停止す
ることができるようにして、画像データの伝送時間等を
短くするようにしたものである。
In the GBTC method, the ISO contribution ISO/TC97/SC2/W (: N510 ”G
eneralized Block Truncati
As described in ``On Coding'', a progressive build-up function can be realized using internal stages.To support this, conventionally, encoded data is transmitted sequentially from the first stage to the second stage. 3rd and 7th
It is designed to shorten the image data transmission time by transmitting image data to the stage and allowing the person using this image data to stop acquiring the image data if necessary. be.

第5図はこの画像データの復元を行う画像データ復元装
置を示すものである。同図において、11は入力端子、
12は入力された画像データを名成分(基準値La、差
分値Ld、分解能成分φ1.φ2)に分解して各復号部
に分配する信号分配部、13は基準値Laを復号する基
準値復号部、14は差分値Ldを復号する差分値復号部
、15は分解能成分φ1.φ2を復号する分解能成分復
号部を示している。また同図において16はこの復号さ
れた分解能成分を格納する分解能成分格納部、17はこ
の分解能成分から、画像のモード(モードA、モードB
、モードC)を検出するモード検出部、18はこのモー
ド検出部17からのモード信号と、分解能成分φ1.φ
2と、差分値信号Ldとから、代表階調値を算出して出
力する代表階調値算出部、19は復号された画像データ
を格納するアップデートメモリを示している。
FIG. 5 shows an image data restoration device that restores this image data. In the figure, 11 is an input terminal;
12 is a signal distribution unit that decomposes the input image data into name components (reference value La, difference value Ld, resolution components φ1 and φ2) and distributes them to each decoding unit; 13 is a reference value decoder that decodes the reference value La; 14 is a difference value decoding unit that decodes the difference value Ld, and 15 is a resolution component φ1. A resolution component decoding unit that decodes φ2 is shown. In addition, in the same figure, 16 is a resolution component storage unit that stores this decoded resolution component, and 17 is a resolution component storage unit that stores the decoded resolution component, and 17 is a resolution component storage unit that stores the decoded resolution component.
, mode C), a mode detection section 18 detects the mode signal from the mode detection section 17 and the resolution component φ1. φ
2 and the difference value signal Ld, a representative gradation value calculation unit calculates and outputs a representative gradation value, and 19 indicates an update memory that stores decoded image data.

端子11から入力される信号は信号分配部12で各復号
部13,14,15に分配され、基準値Laの符号デー
タは基準値復号部13により復号され、Laの値が出力
される。当該ブロックのすべての画素に対して画像信号
S工なS、=La として与え、これをアップデートメモリ19に蓄積する
。1画面のLaがすべて復号されたとき、Slによって
概略画像が構成される。以上の81を求める復元処理を
「検索モードの復元」と呼ぶ。
A signal input from the terminal 11 is distributed by the signal distribution section 12 to each decoding section 13, 14, and 15, code data of the reference value La is decoded by the reference value decoding section 13, and the value of La is output. An image signal S=La is given to all pixels of the block, and this is stored in the update memory 19. When all La of one screen is decoded, a schematic image is constructed by Sl. The above restoration process for obtaining 81 is referred to as "search mode restoration."

次にφ、の符号データが入力されると、分解能成分復号
部15によりφ、を復号し、最低4ライン分のφ□の復
号信号が分解能成分格納部16に格納される。そして、
モード検出部17において、各ブロックのφ、の「1」
の数を計算し、階調数を検出する。1ブロツク内のすべ
ての画素でφ1が「0」ならば1階調表現のブロックと
なり、φ1が「1」の画素が1ブロツク内で少なくとも
1画素以上存在すれば2階調あるいは4階調表現のブロ
ックと判定する。代表階調値算出部18では、モード検
出部17において検出されたブロック内の階調数と、ア
ップデートメモリ19に格納されている画像信号S工と
、各ブロック毎の差分値Ldの値より、ブロック内の各
画素の代表階調値を次のように算出し、アップデートメ
モリ19の内容をSlから32に書き換える。
Next, when the code data of φ is input, the resolution component decoding unit 15 decodes φ, and the decoded signal of φ□ for at least four lines is stored in the resolution component storage unit 16. and,
In the mode detection unit 17, φ of each block is “1”.
Calculate the number of gradations and detect the number of gradations. If φ1 is "0" for all pixels in one block, the block has one gradation expression, and if there is at least one pixel with φ1 "1" in one block, it has two gradation or four gradation expression. It is determined that the block is The representative gradation value calculation unit 18 calculates, based on the number of gradations in the block detected by the mode detection unit 17, the image signal S stored in the update memory 19, and the difference value Ld for each block. The representative gradation value of each pixel in the block is calculated as follows, and the contents of the update memory 19 are rewritten from Sl to 32.

■1階調表現のブロックの場合: 差分値Ldは存在しないので、差分値復号部14では差
分値Ldの符号データを復号せず、固定値「0」を画像
信号S□に加算する。
(1) In the case of a block with one gradation expression: Since the difference value Ld does not exist, the difference value decoding section 14 does not decode the code data of the difference value Ld, but adds a fixed value "0" to the image signal S□.

52=S、+O ■2階調表現あるいは4階調表現のブロックの場合: 差分値Ldは存在するので、差分値復号部14で差分値
Ldの符号データを復号し、復号された差分値Ldの値
より、分散値「±1/2LdJを各画素のφ、の値に応
じて画像信号S1に加算する。
52=S, +O ■In the case of a block with 2-gradation expression or 4-gradation expression: Since the difference value Ld exists, the code data of the difference value Ld is decoded by the difference value decoding unit 14, and the decoded difference value Ld From the value of , the variance value "±1/2LdJ is added to the image signal S1 according to the value of φ of each pixel.

φ1=0の画素は  52=S□+1/2Ldφ1=1
の画素は  52=St −1/2Ldこれらの処理を
1画面に対して繰り返す。
The pixel with φ1=0 is 52=S□+1/2Ldφ1=1
52=St -1/2Ld These processes are repeated for one screen.

続いて、φ2の符号データが入力されると、分解能成分
復号部15によりφ2を復号し、最低4ライン分のφ2
の復号信号が分解能成分格納16に格納される。そして
、モード検出部17において、各ブロックのφ2の「1
」の数を計算し、階調数を検出する。1ブロツク内のす
べての画素でφ2が「0」ならば1階調表現あるいは2
階調表現のブロックと判定する。また、φ2が「1」の
画素が1ブロツク内で少なくとも1画素以上存在すれば
4階調表現のブロックと判定する。代表階調値算出部1
8では、モード検出部17において検出されたブロック
内の階調数と、アップデートメモリ19に格納されてい
る画像信号S2と各ブロック毎の差分値Ldの値より、
ブロック内の各画素の代表階調値を次のように算出し、
アップデートメモリ19の内容を82から83に書き換
える。
Subsequently, when the code data of φ2 is input, the resolution component decoding unit 15 decodes φ2, and the code data of φ2 for at least four lines is decoded by the resolution component decoding unit 15.
The decoded signal of is stored in the resolution component storage 16. Then, in the mode detection unit 17, “1” of φ2 of each block is detected.
” and detect the number of gradations. If φ2 is “0” for all pixels in one block, one gradation expression or two
Determined as a gradation expression block. Furthermore, if there is at least one pixel with φ2 of "1" in one block, the block is determined to be a four-gradation expression block. Representative gradation value calculation unit 1
8, based on the number of gradations in the block detected by the mode detection unit 17, the image signal S2 stored in the update memory 19, and the value of the difference value Ld for each block,
Calculate the representative tone value of each pixel in the block as follows,
The contents of the update memory 19 are rewritten from 82 to 83.

■1階調表現のブロックの場合: 差分値Ldは存在しないので、差分値復号部14では差
分値Ldの符号データを復号せず、固定値「0」を画像
信号S2に加算する。
(1) In the case of a block with one gradation expression: Since the difference value Ld does not exist, the difference value decoding unit 14 does not decode the code data of the difference value Ld, but adds a fixed value "0" to the image signal S2.

53=82+0 ■2階調表現のブロックの場合: 差分値Ldは存在するので、差分値復号部14では差分
値Ldの符号データを復号するが、画像信号S2との分
散値は「0」であるので、復号された差分値Ldの値は
用いず、固定値「0」を画像信号S2に加算する。
53=82+0 ■For a block with two-gradation expression: Since the difference value Ld exists, the difference value decoding unit 14 decodes the code data of the difference value Ld, but the variance value with the image signal S2 is "0". Therefore, the fixed value "0" is added to the image signal S2 without using the value of the decoded difference value Ld.

S3 =S2 +0 ■4階調表現のブロックの場合: 差分値Ldは存在するので、差分値復号部14で差分値
Ldの符号データを復号し、復号された差分値Ldの値
より、分散値「±1/4LdJを各画素のφ2の値に応
じ画像信号S2に加算する。
S3 = S2 +0 ■For a block with 4-gradation expression: Since the difference value Ld exists, the difference value decoding unit 14 decodes the code data of the difference value Ld, and from the value of the decoded difference value Ld, the variance value is calculated. ``Add ±1/4LdJ to the image signal S2 according to the value of φ2 of each pixel.

φ2=Oの画素は S3 =32+1/4Ldφ2=1
の画素は S3 =32−1/4Ldこれらの処理を1
画面に対して繰り返す。
The pixel of φ2=O is S3 = 32+1/4Ldφ2=1
The pixel of S3 = 32-1/4Ld These processes are 1
Repeat for the screen.

このようにして得られるS3が復元画像を表している。S3 obtained in this way represents the restored image.

以上の83を求める復元処理を「標準モードの復元」と
呼ぶ。
The above restoration process for obtaining 83 is called "standard mode restoration."

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで従来の画像データ復元装置においては、差分値
の値を用いて、アップデートメモリを更新する際に、ま
ず分解能成分より各ブロックの階調数を検出し、検出し
た階調数に従って、各ブロックの差分値として、差分値
の符号データを復号した値を用いるか、もしくは固定値
「0」を用いるかを選択し、選択した差分値の値を用い
て各画素の代表階調値を算出し、画像を再生していた。
By the way, in conventional image data restoration devices, when updating the update memory using the difference value, the number of gradations of each block is first detected from the resolution component, and the number of gradations of each block is determined according to the detected number of gradations. As the difference value, select whether to use a value obtained by decoding the code data of the difference value or use a fixed value "0", calculate the representative gradation value of each pixel using the selected difference value, The image was being played.

すなわち、φ、の階層においても、φ2の階層において
も、差分値の値を用いて画像を再生するので、必ず前記
の一連の処理を各ブロック毎1画面分行わなければなら
ず、このため画像再生時の動作シーケンスが複雑になる
という問題がある。
That is, since the image is reproduced using the difference value both in the layer of φ and in the layer of φ2, the above series of processing must be performed for each block for one screen. There is a problem that the operation sequence during playback becomes complicated.

また、差分値の存在しないブロックがあるため、差分値
復号手段で符号データより復号された差分値は画像と1
対1に対応しないため、画像再生回路の動作試験の効率
が悪いという問題がある。そこで本発明は、差分値の値
を用いて画像を再生する時の動作シーケンスを簡略化す
ると共に、画像再生回路の動作試験の効率を向上できる
画像データ復元装置を提供することを目的とする。
In addition, since there are blocks in which no difference value exists, the difference value decoded from the encoded data by the difference value decoding means is the same as the image.
Since there is no one-to-one correspondence, there is a problem that the efficiency of testing the operation of the image reproducing circuit is low. SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an image data restoring device that can simplify the operation sequence when reproducing an image using the difference value and improve the efficiency of the operation test of the image reproducing circuit.

(課題を決定するための手段) 本発明にあって上記の課題を解決するための手段は、第
1図に示すように、多値画像を隣接する複数の画素から
なるブロックに分割し、各ブロック毎にブロック内の最
大階調値と最小階調値との差を閾値と比較してこのブロ
ックの画像を表示する1または複数の代表階調を求め、
代表階調を各ブロックにおける基準値と、この基準値と
代表階調との差分値とで表示し、各ブロックにおける代
表階調の分布を示す分解能成分を算出し、上記基準値と
差分値と分解能成分とを符号化した画像データを復元す
る画像データの復元装置において、前記分解能成分から
各ブロックの代表階調数を検出するモード検出手段1と
、前記差分値を復号する差分値復号手段2と、差分値と
して零信号を常時発生する零発生手段3と、前記モード
検出手段が代表階調数が1であるとしたときは前記零発
生手段により発生した零信号を選択し、また代表階調数
が複数であるとしたときは前記差分値復号手段2が復号
した差分値を選択する差分値選択手段4と、上記差分値
選択手段4が選択した零信号及び差分値を格納する差分
値格納手段5と、前記差分値格納手段5から各ブロック
に対応した差分値を順次呼び出す差分値読出し手段6と
を備え゛たことである。
(Means for determining the problem) As shown in FIG. 1, the means for solving the above problem in the present invention is to divide a multilevel image into blocks each consisting of a plurality of adjacent pixels, and For each block, compare the difference between the maximum gradation value and the minimum gradation value within the block with a threshold value to determine one or more representative gradations for displaying the image of this block,
The representative gradation is displayed as a reference value in each block and a difference value between this reference value and the representative gradation, a resolution component indicating the distribution of the representative gradation in each block is calculated, and the above reference value and difference value are calculated. An image data restoring device for restoring image data encoded with a resolution component includes a mode detection means 1 for detecting the number of representative gradations of each block from the resolution component, and a difference value decoding means 2 for decoding the difference value. When the number of representative gradations is 1, the mode detection means selects the zero signal generated by the zero generation means, and also selects the zero signal generated by the zero generation means when the number of representative gradations is 1. When there are multiple keys, a difference value selection means 4 for selecting the difference value decoded by the difference value decoding means 2, and a difference value for storing the zero signal and difference value selected by the difference value selection means 4. It comprises a storage means 5 and a difference value reading means 6 for sequentially reading the difference values corresponding to each block from the difference value storage means 5.

〔作用〕[Effect]

差分値復号手段2で復号された差分値Ldは差分値選択
手段に入力される一方、モード検出手段1からモードが
入力される。零発生手段3は常にデータとして「0」を
発生している。差分値選択手段4はモード検出手段1の
出力に基づき、差分値Ldと零発生器で発生された「0
」を選択して差分値格納手段5に出力する。すなわち1
階調表現のブロックの場合、Ldは存在しないので、零
発生手段3のデータ「0」を選択する一方、複数階調の
場合、Ldは存在し、差分値復号手段2からの復号デー
タを選択する。差分値読出し手段6はこの差分値格納手
段5から各ブロックに対応した差分値を順次呼び出す。
The difference value Ld decoded by the difference value decoding means 2 is input to the difference value selection means, while the mode is input from the mode detection means 1. The zero generating means 3 always generates "0" as data. The difference value selection means 4 selects the difference value Ld and "0" generated by the zero generator based on the output of the mode detection means 1.
” is selected and output to the difference value storage means 5. i.e. 1
In the case of a block with gradation expression, Ld does not exist, so the data "0" of the zero generation means 3 is selected, while in the case of multiple gradations, Ld exists and the decoded data from the difference value decoding means 2 is selected. do. The difference value reading means 6 sequentially reads the difference values corresponding to each block from the difference value storage means 5.

〔実施例〕〔Example〕

以下本発明に係る画像データ復元装置の実施例を説明す
る。
Embodiments of the image data restoration device according to the present invention will be described below.

第2図は、本発明に係る画像データ復元装置の実施例で
ある。
FIG. 2 shows an embodiment of the image data restoration device according to the present invention.

同図において、21は入力端子、22は信号分配部、2
3は基準値Laを復号する基準値復号部、24は差分値
Ldを復号する差分値復号部、28は分解能成分φ1.
φ2を復号する分解能成分復号部、29は復号された分
解能成分を格納する分解能成分格納部、27はこの分解
能成分から画像のモードを検出するモード検出部、26
は差分値を格納する差分値格納部を示している。そして
、本実施例において、差分値復号部24には、モードに
よって差分値と、零信号とを選択して出力する差分値選
択部25を設けている。この差分値選択部25は第3図
に示すように、上述した差分値をラッチするラッチ部3
8と、常時零信号を発生する零発生器34と、モード検
出部からのモード信号がモードAであることを判定する
モード判定器35と、ラッチ部38と零発生器34との
出力を受けこのモード判定器35がモートAと判定した
ときには零信号を、それ以外のときはラッチ部38にラ
ッチされている差分値を選択して出力するマルチプレク
サ36とを備えている。
In the figure, 21 is an input terminal, 22 is a signal distribution section, 2
3 is a reference value decoding unit that decodes the reference value La, 24 is a difference value decoding unit that decodes the difference value Ld, and 28 is a resolution component φ1.
29 is a resolution component storage unit that stores the decoded resolution component; 27 is a mode detection unit that detects the mode of the image from this resolution component; 26
indicates a difference value storage section that stores difference values. In this embodiment, the difference value decoding section 24 is provided with a difference value selection section 25 that selects and outputs a difference value and a zero signal depending on the mode. As shown in FIG.
8, a zero generator 34 that always generates a zero signal, a mode determiner 35 that determines that the mode signal from the mode detection section is mode A, and a latch section 38 that receives the outputs of the zero generator 34. A multiplexer 36 is provided which selects and outputs a zero signal when the mode determiner 35 determines the mode A, and otherwise selects and outputs the difference value latched in the latch section 38.

尚同図中符号37は差分値格納部26にデータ書き込み
要求(WRITE)を送信する差分値復号制御部を示し
ている。また同図中代表階調算出部30には差分値格納
部26からの差分値(零信号を含んでいる)をラッチす
るラッチ部38と差分値格納部26に読み取り要求(R
EAD)を発生する画像再生制御部39とを表示してい
る。
Note that reference numeral 37 in the figure indicates a difference value decoding control unit that transmits a data write request (WRITE) to the difference value storage unit 26. In addition, the representative gradation calculation unit 30 in the figure includes a latch unit 38 that latches the difference value (including a zero signal) from the difference value storage unit 26, and a read request (R) to the difference value storage unit 26.
An image reproduction control section 39 that generates EAD) is displayed.

次に本実施例に係る画像データの復元装置の作動を説明
する。
Next, the operation of the image data restoration device according to this embodiment will be explained.

端子21より入力される信号は信号分配部22で各復号
部に分配され、基準値Laの符号データは基準値復号部
23により復号され、Laの値が出力される。
The signal input from the terminal 21 is distributed to each decoding section by the signal distribution section 22, the code data of the reference value La is decoded by the reference value decoding section 23, and the value of La is output.

「検索モードの復元」を行う場合には、各ブロックのす
べての画素に対して画像信号S0をS□=La として与え、これをアップデートメモリ31に蓄積し、
Slによって概略画像が構成される。
When performing "restoration of search mode", give the image signal S0 as S = La to all pixels of each block, store this in the update memory 31,
A schematic image is constructed by Sl.

「標準モードの復元」は以下の手順により行なわれる。"Restoration of standard mode" is performed by the following procedure.

まず、φ、の符号データが入力されると、分解能成分復
号部28によりφ□を復号し、最低4ライン分のφ1の
復号信号が分解能成分格納部29に格納される。そして
、モード検出部27において、各ブロックのφ1の「1
」の数を計算し、階調数を検出する。1ブロツク内のす
べての画素でφ□がrOJならば1階調表現のブロック
となり、φ1が「1」の画素が1ブロツク内で少なくと
も1画素以上存在すれば2階調表現あるいは4階調表現
のブロックと判定する。差分値選択部25のマルチプレ
クサ36はモード検出部27において検出されたモード
をモード判定器35で判定した結果により、1階調表現
のブロックの場合は差分値Ldとして零発生器34の「
0」を選択し、一方、2階調表現または4階調表現のブ
ロックの場合は差分値復号信号部24て符号データより
復号した差分値Ldの値を選択し、差分値格納部26に
最低1ブロツクライン゛(4ライン)の差分値を格納す
る。これらの処理を1画面に対して繰り返すことにより
、差分値格納部26に1画面分の差分値が格納される。
First, when code data of φ is input, the resolution component decoding unit 28 decodes φ□, and the decoded signal of φ1 for at least four lines is stored in the resolution component storage unit 29. Then, in the mode detection unit 27, “1” of φ1 of each block is detected.
” and detect the number of gradations. If φ□ is rOJ for all pixels in one block, it becomes a block with one gradation expression, and if there is at least one pixel with φ1 “1” in one block, it is expressed as two gradation expression or four gradation expression. It is determined that the block is The multiplexer 36 of the difference value selection unit 25 selects the mode detected by the mode detection unit 27 as the difference value Ld from the zero generator 34 based on the result of the mode determination unit 35 determining the mode detected by the mode detection unit 27.
On the other hand, in the case of a block with two-gradation expression or four-gradation expression, the difference value decoding signal unit 24 selects the value of the difference value Ld decoded from the code data, and stores the lowest value in the difference value storage unit 26. Stores the difference value of 1 block line (4 lines). By repeating these processes for one screen, the difference values for one screen are stored in the difference value storage section 26.

この部分の作動を第2図を参照して詳細に説明すれば、
端子31より入力される復号された差分値Ldはラッチ
部38でラッチされ、マルチプレクサ36に入力される
。一方、端子32より入力される各ブロックの階調数(
モード)は、モード判定器35に入力される。モード判
定器35は入力されたモードに従い、対象ブロックの階
調数を判定し、その結果(MODEA)をマルチプレク
サ36に知らせる。零発生器34は常にデータとして「
0」を発生している。マルチプレクサ36はモード判定
器35の判定結果(MODEA)に従い、ラッチ部38
にラッチされた差分値Ldと零発生器34で発生された
データ「0」を選択して差分値格納部26に出力する。
The operation of this part will be explained in detail with reference to FIG.
The decoded difference value Ld inputted from the terminal 31 is latched by the latch section 38 and inputted to the multiplexer 36. On the other hand, the number of gradations of each block input from the terminal 32 (
mode) is input to the mode determiner 35. The mode determiner 35 determines the number of gradations of the target block according to the input mode, and notifies the multiplexer 36 of the result (MODEA). The zero generator 34 always outputs “
0" is generated. The multiplexer 36 selects the latch unit 38 according to the determination result (MODEA) of the mode determiner 35.
The difference value Ld latched in the difference value Ld and the data "0" generated by the zero generator 34 are selected and output to the difference value storage section 26.

すなわち1階調表現のブロックの場合、Ldは存在しな
いので、零発生器34のデータ「0」を選択する。一方
、2階調及び4階調表現のブロックの場合、Ldは存在
し、差分値復号手段により符号データより復号されたデ
ータであるので、ラッチ部38にラッチされているデー
タを選択する。差分値復号制御部37は差分値格納部2
6に書込み要求(WRITE)を送信し、差分値格納部
26にマルチプレクサ36で選択されたデータが書込ま
れる。この書込みを1画面分繰り返すことにより、差分
値格納部26に全てのブロックに1対1に対応した差分
値Ldが格納される。次に、画像再生制御部39は各ブ
ロック毎差分値格納部26にデータ読出し要求(REA
D)を送信し、読出されたデータはラッチ部38にラッ
チされ、1ブロック分の画素の再生が終了するまで保持
される。この読出しを1画面分繰り返すことにより、1
画面の全画素の代表階調値が算出される。
That is, in the case of a block expressing one gradation, since Ld does not exist, data "0" of the zero generator 34 is selected. On the other hand, in the case of blocks with two-gradation and four-gradation expression, Ld exists and is data decoded from code data by the difference value decoding means, so the data latched in the latch unit 38 is selected. The difference value decoding control unit 37 is the difference value storage unit 2
A write request (WRITE) is sent to 6, and the data selected by the multiplexer 36 is written into the difference value storage section 26. By repeating this writing for one screen, the difference values Ld corresponding one-to-one to all blocks are stored in the difference value storage section 26. Next, the image reproduction control unit 39 makes a data read request (REA) to each block difference value storage unit 26.
D), and the read data is latched by the latch section 38 and held until reproduction of one block of pixels is completed. By repeating this reading for one screen, 1
Representative tone values of all pixels on the screen are calculated.

次に、代表階調算出部30では、差分値格納部26に格
納された差分値Ldの値と、アップデートメモリ31に
格納されている画像信号S□より、ブロック内も各画素
の代表階調値を分解能成分φ1の値に応じて次のように
算出し、アップデートメモリ31の内容をSいから82
に書き換える。
Next, the representative gradation calculation unit 30 uses the value of the difference value Ld stored in the difference value storage unit 26 and the image signal S□ stored in the update memory 31 to calculate the representative gradation of each pixel within the block. The value is calculated as follows according to the value of the resolution component φ1, and the contents of the update memory 31 are updated from S to 82.
Rewrite it to .

■φ1=0の画素の場合: 52=S、+1/2Ld 但し、1階調表現のブロックでは、等価的に、52=3
1+O(Ld=O) ■φ、−〇の画素の場合: S2 =S□ −1/2Ld これらの処理を1画面に対して繰り返す。
■For a pixel with φ1=0: 52=S, +1/2Ld However, in a block with one gradation expression, equivalently, 52=3
1+O (Ld=O) ■For pixels with φ and -〇: S2 = S□ -1/2Ld These processes are repeated for one screen.

続いて、φ2の符号データが入力されると、分解能成分
復号部28によりφ2を復号し、最低4ライン分のφ2
の復号信号が分解能成分格納部29に格納される。そし
て、モード検出部27において、各ブロックのφ2の「
1」の数を計数し、階調数を検出する。1ブロツク内の
すべての画素でφ2がrOJならば1階調表現あるいは
2階調表現のブロックと判定する。また、φ2が「1」
の画素が1ブロツク内で少なくとも1画素以上存在すれ
ば4階調表現のブロックと判定する。差分値選択部25
はモード検出部27において検出されたブロック内の階
調数より、1階調表現または2階調表現のブロックの場
合は差分値Ldとして「0」を選択し、差分値格納部2
6の内容を「0」に更新する。一方、4階調表現のブロ
ックの場合は、差分値格納部26への信号の書込みを行
なわず、元のデータを保持することにより、差分値格納
部26に最低ニブロックライン(4ライン)の差分値が
格納される。これらの処理を1画面に対して繰り返すこ
とにより、差分値格納部26に1画面分の差分値が格納
される。
Subsequently, when the code data of φ2 is input, the resolution component decoding unit 28 decodes φ2, and at least four lines of φ2 are input.
The decoded signal is stored in the resolution component storage section 29. Then, in the mode detection unit 27, φ2 of each block is
1" and detect the number of gradations. If φ2 is rOJ for all pixels in one block, the block is determined to be one-gradation expression or two-gradation expression. Also, φ2 is “1”
If there is at least one pixel in one block, the block is determined to be a four-gradation expression block. Difference value selection section 25
In the case of a block with one tone expression or two tone expression, “0” is selected as the difference value Ld based on the number of tone levels in the block detected by the mode detection unit 27, and the difference value storage unit 2
Update the contents of 6 to "0". On the other hand, in the case of a block with 4-gradation expression, the signal is not written to the difference value storage unit 26 and the original data is retained, so that the minimum two block lines (4 lines) are stored in the difference value storage unit 26. The difference value is stored. By repeating these processes for one screen, the difference values for one screen are stored in the difference value storage section 26.

次に、代表階調値算出部30では、差分値格納部26に
格納された差分値Ldの値と、アップデートメモリ31
に格納されている画素信号S2より、ブロック内の各画
素の代表階調値を分解能成分φ2の値に応じて次のよう
に算出し、アップデート31の内容を82から83に書
き換える。
Next, the representative gradation value calculation section 30 uses the value of the difference value Ld stored in the difference value storage section 26 and the update memory 31.
From the pixel signal S2 stored in the pixel signal S2, the representative gradation value of each pixel in the block is calculated as follows according to the value of the resolution component φ2, and the contents of the update 31 are rewritten from 82 to 83.

■φ2=0の画素の場合: 53=S2+1/4Ld 但し、1階調表現あるいは2階調表現のブロックでは、
等価的に、 S 3 = S 2 + O(L d = O)■φ1
=0の画素の場合: 53=32−1/4Ld これらの処理を1画面に対して繰り返す。
■For a pixel with φ2=0: 53=S2+1/4Ld However, in a block with one gradation expression or two gradation expression,
Equivalently, S 3 = S 2 + O (L d = O) ■φ1
For pixels with =0: 53=32-1/4Ld These processes are repeated for one screen.

以上の処理で得られるS3が標準モードの復元画素を表
している。
S3 obtained through the above processing represents the restored pixel in the standard mode.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、あらかじめ分解能成分より検出した各
ブロックの代表階調数を元に、符号データより復号した
差分値の値と固定値「0」より各ブロックの差分値を選
択して、差分値メモリに1画面分書込むことにより、画
像再生時には、差分値メモリにより各ブロックの差分値
を順次読出せば良いことになり、画像の動作シーケンス
を簡、酪化することができる他、画像再生回路の動作試
験を効率良く行なうことができるという効果を奏する。
According to the present invention, the difference value of each block is selected from the value of the difference value decoded from the encoded data and the fixed value "0" based on the representative number of gradations of each block detected from the resolution component in advance, and the difference value is By writing one screen worth of data into the value memory, during image playback, it is only necessary to sequentially read the difference values of each block using the difference value memory, which not only simplifies and streamlines the image operation sequence, but also This has the effect that the operation test of the reproducing circuit can be efficiently performed.

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

第1図は本発明の原理図、第2図は本発明に係る画像デ
ータ復元装置の実施例を示すブロク、り図、第3図は第
2図に示した画像データ復元装置の差分値選択部の構造
を示すブロック図、第4図はGBTCのアルゴリズムを
示す図、第5図は従来の画像データ復元装置を示すブロ
ック図である。 1・・・モード検出手段 2・・・差分値復号手段 3・・・零発生手段 4・・・差分値選択手段 5・・・差分値格納手段 6・・・差分値読出し手段 大発明の原理コ @ 1 図
Fig. 1 is a principle diagram of the present invention, Fig. 2 is a block diagram showing an embodiment of the image data restoration device according to the invention, and Fig. 3 is a difference value selection of the image data restoration device shown in Fig. 2. FIG. 4 is a block diagram showing the GBTC algorithm, and FIG. 5 is a block diagram showing a conventional image data restoration device. 1...Mode detection means 2...Difference value decoding means 3...Zero generation means 4...Difference value selection means 5...Difference value storage means 6...Difference value reading means Principle of the great invention Ko@1 Figure

Claims (1)

【特許請求の範囲】 多値画像を隣接する複数の画素からなるブロックに分割
し、各ブロック毎にブロック内の最大階調値と最小階調
値との差を閾値と比較してこのブロックの画像を表示す
る1または複数の代表階調を求め、 代表階調を各ブロックにおける基準値と、この基準値と
代表階調との差分値とで表示し、各ブロックにおける代
表階調の分布を示す分解能成分を算出し、 上記基準値と差分値と分解能成分とを符号化した画像デ
ータを復元する画像データの復元装置において、 前記分解能成分から各ブロックの代表階調数を検出する
モード検出手段(1)と、 前記差分値を復号する差分値復号手段(2)差分値とし
て零信号を常時発生する零発生手段(3)と、 前記モード検出手段が代表階調数が1であるとしたとき
は前記零発生手段(3)により発生した零信号を選択し
、また代表階調数が複数であるとしたときは前記差分値
復号手段(2)が復号した差分値を選択する差分値選択
手段(4)と、上記差分値選択手段(4)が選択した零
信号及び差分値を格納する差分値格納手段(5)と、前
記差分値格納手段(5)から各ブロックに対応した差分
値を順次呼び出す差分値読出し手段(6)とを備えたこ
とを特徴とする画像データの復元装置。
[Claims] A multilevel image is divided into blocks each consisting of a plurality of adjacent pixels, and the difference between the maximum tone value and the minimum tone value within each block is compared with a threshold value to determine the value of this block. Find one or more representative gradations for displaying an image, display the representative gradation as a reference value in each block and the difference value between this reference value and the representative gradation, and calculate the distribution of the representative gradation in each block. In the image data restoring device that calculates a resolution component indicated by the reference value, and restores image data obtained by encoding the reference value, the difference value, and the resolution component, the mode detection means detects the number of representative gradations of each block from the resolution component. (1), a difference value decoding means (2) for decoding the difference value; a zero generation means (3) for always generating a zero signal as a difference value; and the mode detection means assumes that the number of representative gradations is 1. difference value selection in which the zero signal generated by the zero generation means (3) is selected, and the difference value decoded by the difference value decoding means (2) is selected when the number of representative gradations is plural; means (4), a difference value storage means (5) for storing the zero signal and difference value selected by the difference value selection means (4), and a difference value corresponding to each block from the difference value storage means (5). An image data restoring device comprising: a difference value reading means (6) for sequentially calling the difference value reading means (6).
JP22467788A 1988-09-09 1988-09-09 Picture data decoder Pending JPH0273777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22467788A JPH0273777A (en) 1988-09-09 1988-09-09 Picture data decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22467788A JPH0273777A (en) 1988-09-09 1988-09-09 Picture data decoder

Publications (1)

Publication Number Publication Date
JPH0273777A true JPH0273777A (en) 1990-03-13

Family

ID=16817491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22467788A Pending JPH0273777A (en) 1988-09-09 1988-09-09 Picture data decoder

Country Status (1)

Country Link
JP (1) JPH0273777A (en)

Similar Documents

Publication Publication Date Title
JP3978478B2 (en) Apparatus and method for performing fixed-speed block-unit image compression with estimated pixel values
KR100819597B1 (en) Multi-mode alpha image processing
JP2527351B2 (en) Image data compression method
KR960013055A (en) Conditional Quidtree Segmentation Image Compression Method and Apparatus
JPH0969951A (en) Encoding method and decoding method
JPH0273777A (en) Picture data decoder
JPH01138867A (en) Apparatus and method for coding a set of digits
JP3213012B2 (en) Image data encoding and decoding method
US6356667B1 (en) Encoding apparatus and method, decoding apparatus and method and recording medium
JP2625674B2 (en) Image signal encoding method and encoding device
JP3235510B2 (en) Encoding method and encoding device, decoding method and decoding device
JP3263218B2 (en) Image information data compression and playback device
JPS6118387B2 (en)
JP3015001B2 (en) Huffman decoding device
JPH06225160A (en) Picture data compressor
JPH01231582A (en) Method and device for hierarchical coding of picture data
JPH07112243B2 (en) Block division sequential reproduction coding method
JP3146092B2 (en) Encoding device and decoding device
JPH01286674A (en) Data synthesizing method
JPH06253153A (en) Picture coding/decoding device
JPH0714205B2 (en) Sequential reproduction vector quantization encoding / decoding device
JPS63304768A (en) Decoding method
JP2856268B2 (en) Image data restoration device
JPH0437262A (en) Color picture compression device
JPH04239271A (en) Picture data compressor