JPH02292962A - Block encoding system - Google Patents

Block encoding system

Info

Publication number
JPH02292962A
JPH02292962A JP1114391A JP11439189A JPH02292962A JP H02292962 A JPH02292962 A JP H02292962A JP 1114391 A JP1114391 A JP 1114391A JP 11439189 A JP11439189 A JP 11439189A JP H02292962 A JPH02292962 A JP H02292962A
Authority
JP
Japan
Prior art keywords
block
value
encoding
mode
section
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
JP1114391A
Other languages
Japanese (ja)
Inventor
Toshihiro Kashiwagi
柏樹 敏弘
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP1114391A priority Critical patent/JPH02292962A/en
Publication of JPH02292962A publication Critical patent/JPH02292962A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To encode a mean value, a difference value, and the key level of the picture elements in a block based on each fixed value by storing the emerging frequency of the different between the maximum and minimum levels of the picture elements in a block when the picture signals are encoded at every block and preparing the block identifiers in accordance with the block modes divided in an optimum manner based on the stored difference emerging frequency. CONSTITUTION:When an encoding process is commanded via the CPU 21 of a block encoding system with the operations of keys, etc., the prescribed number of picture elements in the first block of a picture to be processed are taken out of an original picture storage 22. Then the mean value X, the maximum value MAX, the minimum value MINL, and (MAXL-MINL)=D are calculated respectively for the picture elements in the taken-out block according to an encoding table 23 and the information on a RAM 24. The value D is compared with a parameter TI whether D<=TI is satisfied or not is judged. Then the next process is carried out when the value D is equal to or smaller than the TI. Then the picture elements in a block are expressed in a single level and the process of a relevant mode is carried out.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、テレビジョン画像やファクシミリ画像等を伝
送あるいは記録するために圧縮するブロック符号化方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a block encoding method for compressing television images, facsimile images, etc. for transmission or recording.

[従来の技術と解決すべき課題] 従来、テレビジョン画像やファクシミリ画像を伝送、記
録する場合、伝送効率、記録効率を向上するために画像
をブロック化し、各ブロックを平均値等に基づいて符号
化し、画像信号を圧縮するようにしている。すなわち、
第4図に示すように1画面11の画像情報をNXN画素
、例えば4X4画素のブロック12a. 12b,・・
・に分割し、各ブロック内の画素値の最大値(MAIL
)と最小値(MINL)と間を4階調に量子化し、これ
をビットブレーン形式で符号化するものであり、画像情
報を画素平均値La,差分値Ld,ビットブレーン情報
ψ[.φ2の3成分に分ける。更に、上記画像情報をパ
ラメータ(しきい値)TI.T2(T1≦72)を使用
して3つのモードA,B,Cに分けて表現する。
[Conventional technology and issues to be solved] Conventionally, when transmitting and recording television images or facsimile images, the images were divided into blocks in order to improve transmission efficiency and recording efficiency, and each block was encoded based on an average value, etc. The image signal is compressed. That is,
As shown in FIG. 4, the image information of one screen 11 is divided into NXN pixels, for example, a block 12a of 4×4 pixels. 12b,...
・The maximum pixel value in each block (MAIL
) and the minimum value (MINL) into four gradations and encoded in bit-brain format. Image information is divided into pixel average value La, difference value Ld, and bit-brain information ψ[. Divided into three components of φ2. Furthermore, the above image information is converted into a parameter (threshold value) TI. It is divided into three modes A, B, and C and expressed using T2 (T1≦72).

即ち、rMAXL−MINL≦TIJのときは、モード
Aとして1レベルで表現する。このとき各画素値ごとに
1ビットずつ設けられるビットブレーン情報φl.φ2
は全て“0゜とする。
That is, when rMAXL-MINL≦TIJ, it is expressed as mode A at one level. At this time, bit brain information φl. is provided one bit for each pixel value. φ2
are all “0°”.

rTl <MAXL−MINL≦T2Jのときは、モー
ドBとして2レベルで表現する。このときビットブレー
ン情報φ2は全て“0”とし、φ1には画素軍均値La
より大きい画素値を持つ画素には“0゜、画素平均値L
aより小さい画素値を持つ画素には“1゜を割り当てる
When rTl<MAXL-MINL≦T2J, it is expressed as mode B in two levels. At this time, all bit brain information φ2 is set to “0”, and φ1 has the pixel average value La.
For pixels with larger pixel values, “0°, pixel average value L
A pixel with a pixel value smaller than a is assigned "1°."

rMAXL−MINL>≦T2 J (7)ときは、モ
ードCとして4レベルで表現する。このとき各画素値ご
とに1ビットずつ設けられるビットプレーン情報φ1,
φ2は全て“0゜とする。
When rMAXL-MINL>≦T2 J (7), it is expressed as mode C in four levels. At this time, bit plane information φ1, which is provided one bit for each pixel value,
φ2 is all set to 0°.

また、上記各モードにおける画素平均1i1La、差分
lLd,ビットブレーンφl,φ2は、第5図(a)〜
(C)に示す処理によって決定される。
In addition, the pixel average 1i1La, the difference 1Ld, and the bit brains φl and φ2 in each of the above modes are shown in FIGS.
It is determined by the process shown in (C).

なお、上記第5図において、 X:ブロック内の画素の平均値 (φl)++:ビットブレーン情報1 (1≦l,j≦4) (φ2)1:ビットブレーン情報2 (1≦1,j≦4) X+):ブロック内の画素値 (1≦l,j≦4) である。In addition, in FIG. 5 above, X: Average value of pixels within the block (φl)++: Bitbrain information 1 (1≦l, j≦4) (φ2) 1: Bitbrain information 2 (1≦1, j≦4) X+): Pixel value within the block (1≦l, j≦4) It is.

そして、上記画素平均値La及び差分値Ldに対しては
、更に量子化した後、ノ1フマン符号テーブルを用いて
符号化する。また、ビットプ1ノ−ン情報φ1.φ2に
対しては、それぞれ2次元標準符号化方式を用いて符号
化する。
Then, the pixel average value La and the difference value Ld are further quantized and then encoded using a human code table. Also, bitp1non information φ1. φ2 is encoded using a two-dimensional standard encoding method.

上記のようにして各ブロックにおける画素平均値La,
差分値Ld,  ビットプレーン情報φ1,φ2が符号
化され、記録あるいは伝送処理される。
As described above, the pixel average value La in each block,
The difference value Ld and bit plane information φ1, φ2 are encoded and recorded or transmitted.

[発明が解決しようとする課題] 上記ブロック符号化方式を用いることにより、画像情報
をブロック単位で符号化して、画像信号を圧縮すること
ができる。
[Problems to be Solved by the Invention] By using the block encoding method described above, it is possible to encode image information in units of blocks and compress image signals.

しかし、上記従来のブロック符号化方式では、符号量に
上限を設けるとき、パラメータTI,T2を加減するこ
とによって全過程を複数回、実行しなければならず、処
理に時間がかかるという問題があった。
However, in the conventional block encoding method described above, when setting an upper limit on the amount of code, the entire process has to be executed multiple times by adjusting the parameters TI and T2, resulting in a problem that the processing takes time. Ta.

本発明は上記実情に鑑みて成されたもので、符号量に上
限を設けた場合において、符号量を一定にするための処
理を簡単に行なうことができるブロック符号化方式を提
供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a block encoding method that can easily perform processing to keep the code amount constant when an upper limit is set on the code amount. shall be.

〔課題を解決するための手段及び作用〕本発明は上記目
的を達成するため、画像信号をブロックに別けて符号化
する場合、ブロック内画素の最大値と最小値の差の出現
回数を記憶し、それを基に最適なブロックモードに分け
ると共に、そのモードに対応するブロック識別子を付け
、ブロック内画素の平均値、差分値、代表レベルを符号
化するようにしたものである。
[Means and effects for solving the problem] In order to achieve the above object, the present invention stores the number of occurrences of the difference between the maximum value and the minimum value of the pixels in the block when encoding the image signal by dividing it into blocks. , based on this, the blocks are divided into optimal block modes, a block identifier corresponding to the mode is attached, and the average value, difference value, and representative level of pixels within the block are encoded.

上記にようにブロック内画素の最大値と最小値の差の出
現回数に基づいて最適なブロックモードを決定すると共
に、そのブロックのモードを示すブロック識別子を付加
することにより、符号量を一定にして、且つ、符号化処
理を簡略化することができる。
As described above, by determining the optimal block mode based on the number of occurrences of the difference between the maximum and minimum values of pixels within a block, and adding a block identifier indicating the mode of the block, the amount of code can be kept constant. , and the encoding process can be simplified.

[発明の実施例] 以下、図面を参照して本発明の一実施例を説明する。[Embodiments of the invention] Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の回路構成を示すブロック図である。同
図において21はシステム全体の動作を制御するCPU
で、このCPU21には原画記憶装置22、符号化テー
ブル23、、RAM24、符号語記憶装置25が接続さ
れる。
FIG. 1 is a block diagram showing the circuit configuration of the present invention. In the figure, 21 is a CPU that controls the operation of the entire system.
An original image storage device 22, an encoding table 23, a RAM 24, and a code word storage device 25 are connected to this CPU 21.

上記原画記憶装置22には、符号化の対象となる画像の
各画素値がデジタルで記憶されている。
The original image storage device 22 digitally stores each pixel value of an image to be encoded.

符号化テーブル23は、データを符号化する際にCPU
21により参照されるもので、ブロック識別子用符号化
テーブル23a.La用符号化テーブル23b,Ld用
符号化テーブル23C,φ1用符号化テーブル23d.
φ2用符号化テーブル23eからなっている。上記ブロ
ック識別子用符号化テーブル23aは、モードAの場合
には1ビットの識別子「0」を、モードBの場合には2
ビットの識別子「10」を、モードCの場合には2ビッ
トの識別子「11」をそれぞれ割り当てるようになって
いる。また、La用符号化テーブル23bは、前ブロッ
クと現ブロックの画素平均値Laの差分値の出現頻度に
より割り当てられたハフマン符号語テーブルであり、L
d用符号化テーブル23cは、差分値Ldの出現頻度に
より割り当てられたハフマン符号語テーブルである。φ
1用符号化テーブル23dは、ブロック内の16ビット
のパターンの出現数を統計的に調べ、出現確率の高い1
92パターンに対しては8ビット符号語「00〜BF(
10進数の191)Jを割り当て、残りのパターンには
先頭に「11」の2ビットを付加し、続いて16ビット
のパターンをそのまま並べる符号語を割り当てる。φ2
用符号化テーブル23eは、φl用符号化テーブル23
dと同様に符号語の割り当てを行なう。
The encoding table 23 is used by the CPU when encoding data.
21, and the block identifier encoding table 23a. La encoding table 23b, Ld encoding table 23C, φ1 encoding table 23d.
It consists of a φ2 encoding table 23e. The block identifier encoding table 23a has a 1-bit identifier "0" in mode A, and a 2-bit identifier in mode B.
A bit identifier "10" is assigned, and in the case of mode C, a 2-bit identifier "11" is assigned. The La encoding table 23b is a Huffman codeword table assigned according to the appearance frequency of the difference value between the pixel average value La of the previous block and the current block.
The encoding table 23c for d is a Huffman codeword table allocated according to the frequency of appearance of the difference value Ld. φ
1 encoding table 23d statistically examines the number of occurrences of 16-bit patterns in a block, and selects 1 with a high probability of occurrence.
For 92 patterns, the 8-bit code word “00~BF(
A decimal number 191)J is assigned, 2 bits of "11" are added to the beginning of the remaining patterns, and a code word in which the 16-bit patterns are subsequently arranged as is is assigned. φ2
The encoding table 23e for φl is the encoding table 23 for φl.
Code words are assigned in the same manner as in d.

上記RAM24は、主に処理対象画像の符号語を一時的
に蓄えるためのもので、ブロック識別子記憶部24a,
La記憶部24b,Ld記憶部24C,φl記憶部24
d,φ2記憶部24e,D記憶部24fからなり、D記
憶部24fは、モードA以外のブロックに対するD (
D−MAXL−MINL)の値ごとに出現回数を数える
ためのものである。
The RAM 24 is mainly used to temporarily store code words of images to be processed, and includes a block identifier storage section 24a,
La storage section 24b, Ld storage section 24C, φl storage section 24
d, φ2 storage section 24e, and a D storage section 24f, and the D storage section 24f stores D (
This is for counting the number of appearances for each value (D-MAXL-MINL).

符号語記憶装置25は、ブロック識別子記憶部25a,
L’a記憶部25b,Ld記憶部25C,φ1記憶部2
5d.φ2記憶部25eからなっている。
The code word storage device 25 includes a block identifier storage section 25a,
L'a storage section 25b, Ld storage section 25C, φ1 storage section 2
5d. It consists of a φ2 storage section 25e.

第2図は、上記CPU21の機能ブロック図を示すもの
である。原画記憶装置22に記憶されている画像データ
は、ブロック読出し部3lにより1ブロック分の画素値
を単位として読み出され、ブロックメモリ32に記憶さ
れる。このブロックメモリ32に記憶された1ブロック
分の画素値は、最大値・最小値検出部38、平均値検出
部34、差分値検出部35、φ1検出部3B、φ2検出
部37へ送られる。上記最大値・最小値検出部33は、
ブロックメモリ32に記憶されている1ブロックの画素
値から最大値・最小値を検出し、平均値検出部34、差
分値検出部35、モード検出部38、LM大値一最小値
)集計部39へ出力する。上記平均値検出部34は、上
記最大値・最小値検出部33で検出された最大値・最小
値から平均値(中央値)Laを検出して平均値符号化部
4l及びφ1検出部3Bへ出力する。平均値符号化部4
lは、La用符号化テーブル23bを参照して上記平均
値Laを符号化し、La記憶部24bに記憶する。この
La記憶部24bに記憶された画素平均値Laは、符号
残量検出部42へ送られる。
FIG. 2 shows a functional block diagram of the CPU 21. The image data stored in the original image storage device 22 is read out in units of pixel values for one block by the block reading section 3l, and is stored in the block memory 32. The pixel values for one block stored in the block memory 32 are sent to the maximum value/minimum value detection section 38, the average value detection section 34, the difference value detection section 35, the φ1 detection section 3B, and the φ2 detection section 37. The maximum value/minimum value detection section 33 is
Detects the maximum value and minimum value from the pixel values of one block stored in the block memory 32, average value detection section 34, difference value detection section 35, mode detection section 38, LM maximum value - minimum value) aggregation section 39 Output to. The average value detection unit 34 detects an average value (median value) La from the maximum value/minimum value detected by the maximum value/minimum value detection unit 33 and sends it to the average value encoding unit 4l and the φ1 detection unit 3B. Output. Average value encoding unit 4
l refers to the La encoding table 23b, encodes the average value La, and stores it in the La storage section 24b. The pixel average value La stored in the La storage section 24b is sent to the code remaining amount detection section 42.

また、上記モード検出部38は、最大値・最小値検出部
33で検出された最大値・最小値から符号化モードを決
定し、平均m検出部34、差分値検出部35及びモード
識別子記憶部24aへ出力する。上記差分値検出部35
は、ブロックメモリ32からのブロックデータ、最大値
・最小値検出部33からの最大値・最小値及びモード検
出部38からの符号化モードにより差分値Ldを検出し
、差分値符号化部43及びφl検出部3Bへ出力する。
Further, the mode detecting section 38 determines the encoding mode from the maximum value/minimum value detected by the maximum value/minimum value detecting section 33, and the average m detecting section 34, the difference value detecting section 35 and the mode identifier storage section Output to 24a. The difference value detection section 35
detects the difference value Ld using the block data from the block memory 32, the maximum value/minimum value from the maximum value/minimum value detection section 33, and the encoding mode from the mode detection section 38, It is output to the φl detection section 3B.

差分値符号化部43は、Ld用符号化テーブル23cを
参照して上記差分値Ldを符号化し、Ld記憶部24c
l.:記憶する。
The difference value encoding unit 43 encodes the difference value Ld with reference to the Ld encoding table 23c, and stores the difference value Ld in the Ld storage unit 24c.
l. :Remember.

このLd記憶部24cに記憶された差分値Ldは、符号
残量検出部42へ送られる。
The difference value Ld stored in the Ld storage section 24c is sent to the remaining code amount detection section 42.

上記φl検出部3Gは、ブロックメモリ82、モード検
出部38、平均値検出部34、差分値検出部35から送
られてくる情報に基づいてビットブレーン情報φlの値
を決定し、その値をφ1 ?f号化部44へ出力する。
The φl detection unit 3G determines the value of the bit brain information φl based on the information sent from the block memory 82, the mode detection unit 38, the average value detection unit 34, and the difference value detection unit 35, and sets the value to φ1. ? It is output to the f-encoding section 44.

このφl符号化部44は、φ2用符号化テーブル23d
を参照して上記ビットプレーン情報φlを符号化し、φ
l記憶部24dに記憶する。そして、このφl記憶部2
4dに記憶したφlを符号残量検出部42に入力する。
This φl encoding unit 44 has a φ2 encoding table 23d.
The above bit plane information φl is encoded with reference to φ
1 is stored in the storage section 24d. And this φl storage unit 2
4d is input to the code remaining amount detection section 42.

また、この符号残量検出部42には、ブロック識別子記
憶部24aからブロック識別子が人力される。符号残量
検出部42は、RAM24の各記憶部24a〜24dに
記憶されているブロック識別子,La,Ld,  φ1
の総符号量を求め、符号量の上限値から減算して符号残
量を検出し、しきい値決定部45へ出力する。また、こ
のしきい値決定部45には、(最大値一最小値)集計部
39から集計データか与えられる。しきい値決定部45
は、符号残量検出部42及び(最大値一最小値)集エ1
部39からのデータに基づいてしきい値を決定し、モー
ド検出部46へ出力する。また、このモード検出部46
には、(最大値一最小値)集計部39の集計データが人
力されると共に、ブロック識別子記憶部24aに記憶さ
れているブロック識別子がブロック識別子読出し部47
を介して入力される。このブロック識別子読出し部47
は、上記しきい値決定部45、(最大値一最小値)集計
部39、ブロック識別子読出し部47からのデータに基
づいてブロックのモードを決定し、ブロック識別子記憶
部24aへ出力すると共に、φ2検出部37へ出力する
。このφ2検出部37は、モード検出部4Bにより検出
されたモードに従ってブロック内のビットブレーン情報
φ2を検出し、φ2符号化部48へ出力する。
Further, a block identifier is manually inputted to the remaining code amount detection section 42 from the block identifier storage section 24a. The code remaining amount detection unit 42 uses block identifiers, La, Ld, φ1 stored in each storage unit 24a to 24d of the RAM 24.
The remaining code amount is detected by calculating the total code amount, subtracting it from the upper limit value of the code amount, and outputting it to the threshold determination unit 45. Further, the threshold value determination section 45 is given aggregated data from the (maximum value - minimum value) aggregation section 39 . Threshold determination unit 45
is the code remaining amount detection unit 42 and (maximum value - minimum value) collection 1
A threshold value is determined based on the data from section 39 and output to mode detection section 46 . In addition, this mode detection section 46
In this case, the (maximum value - minimum value) tally data of the tally section 39 is manually inputted, and the block identifier stored in the block identifier storage section 24a is read out by the block identifier reading section 47.
Input via . This block identifier reading section 47
determines the mode of the block based on the data from the threshold determining section 45, (maximum value - minimum value) aggregation section 39, and block identifier reading section 47, outputs it to the block identifier storage section 24a, and outputs it to the block identifier storage section 24a. It is output to the detection unit 37. This φ2 detection unit 37 detects bit brain information φ2 in the block according to the mode detected by the mode detection unit 4B, and outputs it to the φ2 encoding unit 48.

このφ2符号化部48は、φ2用符号化テーブル23e
を参照してφ2を符号化し、φ2記憶部24eに記憶す
る。そして、1画面の全ブロックに対する符号化処理を
終了した後、上記ブロック識別子記憶部24 a s 
L a記憶部24b,Ld記憶部24c、φl記憶部2
4d1φ2記憶部24eに保Flされている符号化デー
タが、第1図の符号語記憶装置25へ転送される。
This φ2 encoding unit 48 has a φ2 encoding table 23e.
φ2 is encoded with reference to φ2 and stored in the φ2 storage unit 24e. After finishing the encoding process for all blocks of one screen, the block identifier storage unit 24 a s
La storage section 24b, Ld storage section 24c, φl storage section 2
The encoded data Fl stored in the 4d1φ2 storage section 24e is transferred to the codeword storage device 25 in FIG.

次に上記実施例における符号化処理の動作を第3図のフ
ローチャートを参照して説明する。この第3図に示すフ
ローチャートは、CPU21の制御に従って実行される
。CPU21は、キー操作等により符号化処理が指令さ
れると、先ず、符号化処理する画像の最初のブロックの
4X4画素(16画素)を原画記憶装置22から取り出
す(ステップSl)。そして、ブロック内の画素の平均
値X,最大値MAIL,最小値MINL,MAIL−M
INL−Dをそれぞれ計算する(ステップS2)。そし
て、上記Dの値とパラメータTIとを比較し、D≦TI
であるか否かを判断し、Dの値がTlと等しいか、より
小さいときはステップS4へ進み、それ以外はステップ
S7へ進む。
Next, the operation of the encoding process in the above embodiment will be explained with reference to the flowchart of FIG. The flowchart shown in FIG. 3 is executed under the control of the CPU 21. When the CPU 21 is instructed to perform encoding processing by a key operation or the like, first, the CPU 21 takes out 4×4 pixels (16 pixels) of the first block of the image to be encoded from the original image storage device 22 (step Sl). Then, the average value X, maximum value MAIL, minimum value MINL, MAIL-M of pixels in the block
Each INL-D is calculated (step S2). Then, compare the value of D and the parameter TI, and find that D≦TI
If the value of D is equal to or smaller than Tl, the process proceeds to step S4; otherwise, the process proceeds to step S7.

上記ステップ84〜S6は、ブロック内の画素を1レベ
ルで表現するモードAの処理である。このモードAの処
理では、先ず、ブロック内の画素平均値をXとし(ステ
ップS4)、ブロック識別子としてモードA用の“O”
を1ビット、RAM24内のブロック識別子記憶部24
aに記憶する。そして、上記画素平均値Laの値から前
ブロックの量子化された画素平均値Laを減算し、La
用符号化テーブル23bにより、その差を量子化、符号
化して、符号語記憶装置25内のLa記憶部25bにd
己憶する。(ステップSI3)。
Steps 84 to S6 described above are mode A processing in which pixels within a block are expressed at one level. In this mode A process, first, the average pixel value in the block is set to X (step S4), and "O" for mode A is used as the block identifier.
1 bit, block identifier storage section 24 in RAM 24
Store in a. Then, the quantized pixel average value La of the previous block is subtracted from the value of the pixel average value La, and La
The difference is quantized and encoded using the encoding table 23b for d
Remember yourself. (Step SI3).

また、上記ステップS3の条件が成立しないときは、モ
ードBかモードCの処理を実行する。ここではパラメー
タT2の値が未だ決まっていないので、それらのモード
に共通する処理を行なうことになる。先ず、Dの値毎に
用意されている出現回数を数えるカウンタを「+1」す
る(ステップS7)。このカウンタは、D記憶部24【
内に設けられている。次いでブロック内の16画素のう
ち、r (MAXL−MINL)/2J lこ等しいか
、より大きな画素の平均値を求め、それをPiとして記
憶する。また、ブロック内の16画素のうち、r (M
AXL−MINL)/2Jより小さい画素の平均値を求
め、それをP2として記憶する。そして、 La= (Pi +P2 )/2 Ld− (PI −P2 ) の計算を行なって画素平均値La及び差分値Ldを求め
る。また、(φl),,はそれぞれx1に対応する画素
値のレベルを示しており、Xz(1≦i≦4.1≦j≦
4)の値が画素iP均値Laより小さい画素に対する(
φl)zには1ビット“1゜を割り当て、それ以外の画
素値を持つ画素に対する(φl)zには1ビット“0“
を割り当てる(ステップS8)。
Further, if the condition of step S3 is not satisfied, mode B or mode C processing is executed. Here, since the value of parameter T2 has not yet been determined, processing common to these modes will be performed. First, a counter for counting the number of appearances prepared for each value of D is incremented by "+1" (step S7). This counter is stored in the D storage unit 24 [
It is located inside. Then, among the 16 pixels in the block, the average value of the pixels that is equal to or larger than r (MAXL-MINL)/2J l is determined and stored as Pi. Also, among the 16 pixels in the block, r (M
The average value of pixels smaller than AXL-MINL)/2J is determined and stored as P2. Then, the calculation La=(Pi+P2)/2Ld-(PI-P2) is performed to obtain the pixel average value La and the difference value Ld. In addition, (φl),, respectively indicate the level of the pixel value corresponding to x1, and Xz(1≦i≦4.1≦j≦
4) for pixels whose value is smaller than the pixel iP average value La (
1 bit “1°” is assigned to φl)z, and 1 bit “0” is assigned to (φl)z for pixels with other pixel values.
(Step S8).

その後、現ブロックの画素平均圃Laと前ブロックの量
子化された画素平均v1Laの差ΔLaをLa用符号化
テーブル23bにより量子化並びに符号化し、L a 
記憶部24bに格納する。また、差分値LdをL d 
JTJ ?’1号化テーブル23cにより量子化並びに
符号化し、Ld記憶部24cに格納する。更に16ビッ
トのビットブレーン情報φ1をφl用符号化テーブル2
3dにより符号化し、ψl記憶部24dに格納する。こ
のとき仮のブロック識別子として例えばモードBの識別
子「10」をブロック識別子記憶部24al.:記憶す
る(ステップS9)。
Thereafter, the difference ΔLa between the pixel average field La of the current block and the quantized pixel average v1La of the previous block is quantized and encoded using the La encoding table 23b, and La
The data is stored in the storage unit 24b. Also, the difference value Ld is L d
JTJ? '1 Quantization and encoding are performed using the encoding table 23c, and the results are stored in the Ld storage unit 24c. Furthermore, 16 bits of bit brain information φ1 are encoded in φl encoding table 2.
3d and stored in the ψl storage unit 24d. At this time, for example, the mode B identifier "10" is set as a temporary block identifier in the block identifier storage unit 24al. : Store (step S9).

上記のようにしてステップS8あるいはステップS9の
処理を行なった後、処理対象画像の全ブロックに対する
処理を終了したか否かをチェックする(ステップS10
)。処理が終了していないときはステップSllへ進ん
で次のブロックの16画素を原画記憶装置22から取り
出し、ステップS2に戻って上記した処理を繰り返して
行なう。全ブロックの処理を終了している時は、ステッ
プS12へ進む。
After performing the processing in step S8 or step S9 as described above, it is checked whether or not processing has been completed for all blocks of the image to be processed (step S10).
). If the processing has not been completed, the process proceeds to step Sll, where 16 pixels of the next block are taken out from the original image storage device 22, and the process returns to step S2, where the above-described process is repeated. When all blocks have been processed, the process advances to step S12.

このステップSl2では、画素平均値La,差分値Ld
,ブロック識別子の総符号量をRAM24内の各記憶部
から求め、その総符号量を符号量の上限から減算するこ
とにより、ビットブレーン情報φ2に割り当てることの
できる符号aSを計算する(ステップS12)。
In this step Sl2, the pixel average value La, the difference value Ld
, the total code amount of the block identifier is obtained from each storage section in the RAM 24, and the code aS that can be assigned to the bit brain information φ2 is calculated by subtracting the total code amount from the upper limit of the code amount (step S12). .

しかして、モードBのブロックでは、ピットブレーン情
報φ2が全て“0“になるが、ブロック識別子からその
ことが判断できるためφ2を符号化する必要はない。モ
ードCのブロックは、ブロックごとにビットプレーン情
報φ2に対して最大18ビットが必要とされる。ブロッ
クをモー・ドBとモードCに分ける際、「D≦T2Jが
成立するブロックはモードB1成立しないブロックはモ
ードCとして符号化を行なう。そして、D記憶部24f
から得られるDIの度数を01とすると、S〉16Σn
1  (iは大きい方から計算する)となる最小のl求
め、T 2 ”” D t − tとしてT2の値を決
定する(ステップS 13)。このようにしてT2の値
を決定することにより、予め設定した符号量を守った上
で最良の画像品質を得ることが可能となる。
In the block of mode B, all pit brain information φ2 becomes "0", but this can be determined from the block identifier, so there is no need to encode φ2. Mode C blocks require a maximum of 18 bits for bit plane information φ2 for each block. When dividing a block into mode B and mode C, blocks where D≦T2J holds are coded as mode B1, blocks where mode C does not hold are coded as mode C, and the D storage unit 24f
If the frequency of DI obtained from is 01, then S〉16Σn
1 (i is calculated from the larger one) and determines the value of T2 as T 2 "" D t - t (step S13). By determining the value of T2 in this manner, it is possible to obtain the best image quality while maintaining the preset code amount.

次にブロック識別子記憶部24aから最初のブロックに
対する識別子を取り出し(ステップs14)、この識別
子からモードAかどうかを判断する。モードAと判断さ
れた場合は、ステップ521へ進み、モードA以外と判
断された場合は、ステップSIGヘ進む。このステップ
Sl8では、該当ブロックの16画素を原画記憶装置2
2から取り出し、ブロック内の最大1iiMAXLと最
小値M I N Lを求め(ステップS 17)、 MAXL−MINL≦T2 が成立するかどうかを判断する(ステップ818)。
Next, the identifier for the first block is retrieved from the block identifier storage section 24a (step s14), and it is determined whether the mode is A or not based on this identifier. If it is determined that the mode is mode A, the process proceeds to step 521, and if it is determined that the mode is other than mode A, the process proceeds to step SIG. In this step Sl8, 16 pixels of the corresponding block are stored in the original image storage device 2.
2, the maximum 1ii MAXL and the minimum value M I NL in the block are determined (step S17), and it is determined whether MAXL-MINL≦T2 holds (step 818).

このステップS18の条件が成立するときはステップS
21へ進み、条件が成立しない時はモードCと判断して
ステップSl9に進む。
When the condition of step S18 is satisfied, step S18 is satisfied.
If the conditions are not met, it is determined that mode C is selected and the process proceeds to step Sl9.

ステップSl9では、 X+1 ≧ (MAXL+3M  夏 NL)/4で、
且つ x.1<  C3MAXL+MINL)/4である画素
X.lに対する(φ2)1は“0°とし、その他の画素
に対する(φ2),,は1ビット“1”とする。そして
、ブロック識別子をモードC用の1ビット″11″に変
更するため、当該ブロックに対応するブロック識別子記
憶部24aの内容を書き直す。そして、ビットブレーン
情報φ2をφ2用符号化テーブル23eによって符号化
し、φ2記憶部24eに格納する(ステップS 20)
In step Sl9, X+1 ≧ (MAXL+3M summer NL)/4,
and x. 1<C3MAXL+MINL)/4. (φ2) 1 for l is set to "0°, and (φ2),, for other pixels is set to 1 bit "1". Then, in order to change the block identifier to 1 bit "11" for mode C, the corresponding The contents of the block identifier storage unit 24a corresponding to the block are rewritten. Then, the bit brain information φ2 is encoded using the φ2 encoding table 23e and stored in the φ2 storage unit 24e (step S20).
.

その後、全ブロックに対するステップ815以下の処理
が終了したか否かをチェックする(ステップS 21)
。このステップS21が成立しない場合は、次のブロッ
クに対するブロック識別子をブロック識別子記憶部24
aから取り出し(ステップS22)ステップS15に戻
って上記した動作を繰り返す。
After that, it is checked whether the processing from step 815 onwards for all blocks has been completed (step S21).
. If this step S21 is not established, the block identifier for the next block is stored in the block identifier storage unit 24.
Take out from a (step S22) and return to step S15 to repeat the above operation.

そして、全ブロックに対する処理を終了すると、RAM
24に記憶しているブロック識別子、画素平均値La,
差分値Ld,ビットブレーン情報φl,φ2を符号語記
憶装置25へ転送する。
Then, when processing for all blocks is finished, the RAM
The block identifier stored in 24, the pixel average value La,
The difference value Ld and bit brain information φl, φ2 are transferred to the code word storage device 25.

以上で1画面に対するブロック符号化処理を終了する。This completes the block encoding process for one screen.

そして、復号装置側では、上記符号語記憶装置25に記
憶した符号語に基づいて復号処理を行ない、原画像を復
号して表示装置に表示する。
Then, on the decoding device side, a decoding process is performed based on the code word stored in the code word storage device 25, and the original image is decoded and displayed on the display device.

[発明の効果] 以上詳記したように本発明によれば、画像信号をブロッ
クに別けて符号化する場合、ブロック内画素の最大値と
最小値の差の出現回数を記憶し、それを基に最適なブロ
ックモードに分けると共に、そのモードに対応するブロ
ック識別子を付け、ブロック内画素の平均値、差分鎖、
代表レベルを符号化するようにしたので、符号量を一定
にできると共に、処理の簡略化を図ることができる。ま
た、上記のように簡単な処理で符号量を一定にできるの
で、テレビジョン画像やファクシミリ画像の伝送あるい
は記録だけでなく、撮影した写真の画像情報をフロッピ
ーディスク等の記録媒体に電子的に記録する電子式スチ
ルカメラ等に利用し得るものである。
[Effects of the Invention] As described in detail above, according to the present invention, when an image signal is divided into blocks and encoded, the number of occurrences of the difference between the maximum value and the minimum value of pixels in the block is stored, and the number of occurrences of the difference between the maximum value and the minimum value of pixels in the block is stored, and the number of occurrences of the difference between the maximum value and the minimum value of pixels in the block is In addition to dividing into the optimal block mode, a block identifier corresponding to that mode is attached, and the average value of the pixels in the block, the difference chain,
Since the representative level is encoded, the amount of code can be kept constant and the processing can be simplified. In addition, since the amount of code can be made constant through simple processing as described above, it is not only possible to transmit or record television images or facsimile images, but also to electronically record image information of photographs taken on recording media such as floppy disks. It can be used in electronic still cameras and the like.

図における各モードA−Cの処理動作を示すフローチャ
ートである。
It is a flowchart which shows the processing operation of each mode A-C in a figure.

2l・・・CPU,22・・・画像処理装置、23・・
・符号化テーブル、24・・・RAM,25・・・符号
語記憶装置。
2l...CPU, 22...Image processing device, 23...
- Encoding table, 24...RAM, 25...code word storage device.

Claims (1)

【特許請求の範囲】[Claims] 原画像信号を複数ブロックに分割する分割手段と、この
手段により分割された各ブロック内の画素の最大値、最
小値、平均値、差分値、代表レベルを検出するブロック
情報検出手段と、この手段により検出された上記ブロッ
ク内画素の最大値と最小値との差の出現回数を計数する
計数手段と、この計数手段により計数された値に基づい
て各ブロックの符号化処理のモードを決定するモード決
定手段と、この決定手段により決定結果に応じてブロッ
クの符号化モードを示すブロック識別子を付加する手段
と、上記ブロック情報検出手段により検出されたブロッ
ク内画素の平均値、差分値、代表レベルを符号化する符
号化手段とを具備したことを特徴とするブロック符号化
方式。
A dividing means for dividing an original image signal into a plurality of blocks; a block information detecting means for detecting the maximum value, minimum value, average value, difference value, and representative level of pixels in each block divided by the means; and this means. a counting means for counting the number of occurrences of the difference between the maximum value and the minimum value of the pixels in the block detected by the counting means; and a mode for determining the mode of encoding processing for each block based on the value counted by the counting means. determining means; means for adding a block identifier indicating the encoding mode of the block according to the determination result by the determining means; 1. A block encoding method comprising: encoding means for encoding.
JP1114391A 1989-05-08 1989-05-08 Block encoding system Pending JPH02292962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1114391A JPH02292962A (en) 1989-05-08 1989-05-08 Block encoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1114391A JPH02292962A (en) 1989-05-08 1989-05-08 Block encoding system

Publications (1)

Publication Number Publication Date
JPH02292962A true JPH02292962A (en) 1990-12-04

Family

ID=14636504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1114391A Pending JPH02292962A (en) 1989-05-08 1989-05-08 Block encoding system

Country Status (1)

Country Link
JP (1) JPH02292962A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009511946A (en) * 2005-10-05 2009-03-19 エルジー エレクトロニクス インコーポレイティド Signal processing method and apparatus, encoding and decoding method, and apparatus therefor
US9210340B2 (en) 1998-07-17 2015-12-08 Sony Corporation Imaging apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9210340B2 (en) 1998-07-17 2015-12-08 Sony Corporation Imaging apparatus
US9628710B2 (en) 1998-07-17 2017-04-18 Sony Corporation Imaging apparatus
JP2009511946A (en) * 2005-10-05 2009-03-19 エルジー エレクトロニクス インコーポレイティド Signal processing method and apparatus, encoding and decoding method, and apparatus therefor
JP2009511948A (en) * 2005-10-05 2009-03-19 エルジー エレクトロニクス インコーポレイティド Signal processing method and apparatus, encoding and decoding method, and apparatus therefor

Similar Documents

Publication Publication Date Title
CA2305572C (en) System and method for fixed-rate block-based image compression with inferred pixel values
EP0899959B1 (en) Image data coding and restoring method and apparatus for coding and restoring the same
EP0385654B1 (en) Highly efficient coding apparatus
US6658146B1 (en) Fixed-rate block-based image compression with inferred pixel values
US5363138A (en) Image signal reproducing apparatus for partially reproducing image to be displayed
EP2498223A1 (en) Video pre-processing before encoding and corresponding post-processing after decoding
JPS6333351B2 (en)
US5485212A (en) Software video compression for teleconferencing
US20050168479A1 (en) Method and apparatus for color quantization of images employing a dynamic color map
US5793428A (en) Self-encoded deltas for digital video data transmission
US11044466B2 (en) Image processing device
US20020021834A1 (en) Image processing method, image processing apparatus and image processing system
JPH02292962A (en) Block encoding system
JP2003531553A (en) Efficient video data access using fixed compression ratio
US20110299790A1 (en) Image compression method with variable quantization parameter
JPS6192073A (en) Picture data compression system
US20110122003A1 (en) Method and device for encoding and decoding of data in unique number values
JP2806944B2 (en) How to improve the resolution of digital signals
TWI795480B (en) Image processing device for performing data decompression and image processing device for performing data compression
JPH02108372A (en) Compression device for picture data
CN102271252B (en) Image compression method having variable quantization parameters
JP3015001B2 (en) Huffman decoding device
JP3123797B2 (en) Coding device and decoding device for predictive coding method
JPH06113276A (en) Reception/reproduction device for digital picture signal
JPS63151269A (en) Adaptive type data reduction system