JPH0275275A - Block coding device for multilevel picture - Google Patents

Block coding device for multilevel picture

Info

Publication number
JPH0275275A
JPH0275275A JP63226926A JP22692688A JPH0275275A JP H0275275 A JPH0275275 A JP H0275275A JP 63226926 A JP63226926 A JP 63226926A JP 22692688 A JP22692688 A JP 22692688A JP H0275275 A JPH0275275 A JP H0275275A
Authority
JP
Japan
Prior art keywords
block
level
levels
pixel
representative
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
JP63226926A
Other languages
Japanese (ja)
Inventor
Takashi Morihara
隆 森原
Shigeru Yoshida
茂 吉田
Tsuguo Noda
嗣男 野田
Masahiro Fukuda
昌弘 福田
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 JP63226926A priority Critical patent/JPH0275275A/en
Publication of JPH0275275A publication Critical patent/JPH0275275A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To save coding quantity by approximating a block including a contour line or the like with a few representative levels even when a picture element level in a block is distributed in a wide level range. CONSTITUTION:A maximum picture element level and a minimum picture element level in a fetched block 502 are obtained by a gradation change detection circuit 202, which obtains a difference between the maximum value and the minimum value and each picture element level of the fetched block 502 is given to a quantizing circuit 204 together with the difference. Then a mode identification circuit 208 decides modes in which a mode having a singular picture element level representing the fetched block 502, a mode B represented by the two levels and a mode C represented by four levels. Even when a picture element level in the fetched block 502 is distributed in a wide level range, when a contour line is included, the two representative levels are decided. Thus, the coding quantity of resolution components phi1, phi2 is saved.

Description

【発明の詳細な説明】 [目次] 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 発明の効果 [(既要] 多値画像のブロック符号化を行なう装置に関し、輪郭線
などの含まれる多値画像を効率良く圧縮できるブロック
符号化装置の提供を目的をし、多レベル画素による画像
をブロック単位で取り込む手段、取込ブロックの画素レ
ベルが狭い範囲で分布しているときに該ブロックの唯一
の代表となる画素レベルの生成を指示する手段、取込ブ
ロックの画素レベルが広い範囲で分布し中間レベルの画
素が少ないときにブロック代表レベルの少数生成を指示
する手段、取込ブロックの画素レベルが広〜)範囲で分
布し中間レベルの画素が多いときにブロック代表レベル
の多数生成を指示する手段、指示された数のブロック代
表レベルを取込ブロックの各画素レベルに基づいて生成
する手段、取込ブロックの各画素レベルをブロック代表
レベルのいずれかに量子化する手段、ブロック代表レベ
ルの分布幅を求める手段、取込ブロックの標準的な画素
レベルを求める手段、画素レベルに量子化内容とブロッ
ク代表レベルの分布幅と標準的な画素レベルとを符号化
する手段、を存する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Field of Application Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Actions Examples Effects of the Invention [(Already needed) Block codes for multivalued images The purpose of the present invention is to provide a block encoding device that can efficiently compress multivalued images including contour lines, a means for capturing images with multilevel pixels in block units, and a means for capturing images with multilevel pixels in units of blocks. A means for instructing the generation of a pixel level that is the only representative of the block when the pixel levels are distributed in a narrow range, and a means for instructing the generation of a block representative level when the pixel levels of the captured block are distributed over a wide range and there are few intermediate level pixels. A means for instructing generation of a small number of block representative levels, a means for instructing generation of a large number of block representative levels when the pixel levels of the captured block are distributed over a wide range (from 1 to 2), and there are many intermediate level pixels, and a means for instructing generation of a large number of block representative levels. means for generating data based on each pixel level of the captured block, means for quantizing each pixel level of the captured block to one of the block representative levels, means for determining the distribution width of the block representative level, and a standard method for the captured block. There are means for determining the pixel level, and means for encoding the quantization content, the distribution width of the block representative level, and the standard pixel level at the pixel level.

[産業上の利用分野コ 本発明は、多値画像のブロック符号化を行なう装置に関
するものである。
[Industrial Field of Application] The present invention relates to an apparatus for block encoding multivalued images.

カラーのカメラやスキャナから入力された多値画像は多
レベルの画素により形成され、このため、その多値画像
のデータ量は数値や文字に比して膨大なものとなる。
A multivalued image input from a color camera or scanner is formed by multilevel pixels, and therefore the amount of data in the multivalued image is enormous compared to numbers and characters.

したがって多値画像を転送したり電子計算機で処理する
ためには、これを効率良く符号化することが必要となる
Therefore, in order to transfer a multilevel image or process it on a computer, it is necessary to encode it efficiently.

そこで、この種の装置により多値画像が符号化され、そ
のコンパクト化が図られている。
Therefore, multivalued images are encoded using this type of apparatus in an effort to make them more compact.

[従来の技術] この種の装置に関しては特願昭62−142501号公
報などの提案が行なわれており、第5図では従来におけ
るブロック符号化処理の手順が説明されている(画像電
子学会研究会予稿 86−02−05  r濃淡画像の
多階調型ブロツク符号化」参照)。
[Prior Art] Regarding this type of device, proposals have been made in Japanese Patent Application No. 142501/1983, and the procedure of conventional block encoding processing is explained in Fig. 5 (Research by the Institute of Image Electronics Engineers). 86-02-05 (Refer to ``Multi-gradation Block Coding of Grayscale Images'').

同図の多値画像500は多数のブロック502に分割さ
れ、それらが装置に逐次取り込まれる。
The multivalued image 500 in the figure is divided into a large number of blocks 502, which are sequentially imported into the apparatus.

これラップロック502はNXN (N=4)個の(す
なわち16個)の画素による方形領域とされており、各
画素は256レベルのいずれかで表現されている。
The wrap lock 502 is a rectangular area made up of NXN (N=4) (that is, 16) pixels, and each pixel is expressed in one of 256 levels.

そしていずれかのブロック502が装置に取り込まれる
と、符号化パラメータTIT  T2(TI<T2)が
選択される。
Then, when any block 502 is loaded into the device, the encoding parameter TIT T2 (TI<T2) is selected.

さらに、装置内へ取り込まれたブロック502から最大
と最小の画素レベルMAJL、MIN−Lがサーチされ
、それらの差が求められる。
Further, the maximum and minimum pixel levels MAJL and MIN-L are searched from the block 502 taken into the apparatus, and the difference therebetween is determined.

次にこれらの最大画素レベルMA、X−Lと最小画素レ
ベルMIN−Lとの差と符号化パラメータTI、T2と
が比較され、 MAX−L−MIN  L≦T1 の場合には、モードAが選択され、ブロック内の全画素
レベルが単一のレベルP9に量子化される。
Next, the difference between these maximum pixel levels MA, XL and the minimum pixel level MIN-L is compared with the encoding parameters TI, T2, and if MAX-L-MIN L≦T1, mode A is selected. selected, all pixel levels within the block are quantized to a single level P9.

また TI<MAX −L  M I N −L≦T2の場合
には、モードBが選択され、ブロック内の画素レベルが
2つのレベルP++  P2のいずれかに量子化される
Further, in the case of TI<MAX-L M I N -L≦T2, mode B is selected and the pixel level within the block is quantized to one of two levels P++ P2.

そして T2<MAX −L−M I N −Lの場合には、モ
ードCが選択され、ブロック内の各画素レベルが4つの
レベルQlI  Q2.  Q3.  Q4のいずれか
に量子化される。
If T2<MAX-L-M I N -L, mode C is selected, and each pixel level in the block is equal to four levels QlI Q2. Q3. Q4 is quantized.

この画素レベル量子化が行なわれる際に使用する多値は
以下の式で理解される。
The multi-value used when performing this pixel level quantization can be understood by the following equation.

〈モードA〉 P o−AV E (X 1j) =La (φ +:l j−0+   (φ2)1ノーO(全て
のi、jに対して) くそ−ドB〉 P+−AVE  (Xij≧(MAX−L+M I N
−L)/2)Pa−AVE (Xij<(MAX−L+
M I N−L)/2)L a−(P++P2)/2 Ld”P+−Pa (φ1)1j−0 (Xij≧(MAX−L十M I N−L)/2の場合
)(φ1)1」:1 (Xij<(MAX、−L+M I N−L)/2の場
合)(φ2)1」・0 (全てのj、jに対して) くそ−ドC〉 Q+=AVE (Xij≧(3MAX−L+M r N
−L)/4)O4−AVE (Xij<(MAX−L+
3M I N−L)/4)La=(QI+QA)/2 Ld二2 (Q I−O4)/3 (φ+)z=o、  (φ2)++”0(Xij≧La
+Ld/2の場合) (φI)1j:O2(φ2)ll”1 (L a+Ld/2>Xij≧Laの場合)(φ1)I
J=1.(φ2)lI”0 (L a>Xij>=L a−L d/2の場合)(φ
t)++−L  (φ2)(j−1(La−Ld/2>
Xijの場合) このように、取込ブロック502内の最大画素レベルM
AX−Lと最小画素レベルMIN−Lとの差により画素
レベル量子化のレベル数が単数。
<Mode A> P o-AVE (X 1j) = La (φ +: l j-0+ (φ2) 1 no O (for all i, j) Damn B> P+-AVE (Xij≧ (MAX-L+M I N
-L)/2)Pa-AVE (Xij<(MAX-L+
M I N-L)/2) L a-(P++P2)/2 Ld”P+-Pa (φ1) 1j-0 (When Xij≧(MAX-L+M I N-L)/2) (φ1) 1": 1 (If Xij<(MAX, -L+M I N-L)/2) (φ2) 1"・0 (For all j, j) Damn C> Q+=AVE (Xij≧ (3MAX-L+M r N
-L)/4)O4-AVE (Xij<(MAX-L+
3M I N-L)/4) La=(QI+QA)/2 Ld22 (Q I-O4)/3 (φ+)z=o, (φ2)++”0(Xij≧La
+Ld/2) (φI)1j:O2(φ2)ll”1 (If L a+Ld/2>Xij≧La) (φ1)I
J=1. (φ2) lI”0 (when L a>Xij>=L a−L d/2) (φ
t)++-L (φ2)(j-1(La-Ld/2>
Xij) In this way, the maximum pixel level M in the acquisition block 502
The number of levels of pixel level quantization is single depending on the difference between AX-L and the minimum pixel level MIN-L.

少数(=2)、  多数(=4)のいずれかに指定され
る。
Specified as either a small number (=2) or a large number (=4).

そして基準レベルLaは前回のものと比較され、その差
分に対して可変長の符号化処理が行なわれる。
The reference level La is then compared with the previous one, and the difference is subjected to variable length encoding processing.

またレベル間隔Ldに対しては、非線形量子化の後に可
変長の符号化処理が行なわれる。
Further, variable length encoding processing is performed on the level interval Ld after nonlinear quantization.

さらに上記の量子化内容を示し分解能成分φ1゜φ2を
形成する一対のビットプレーンはMMR方式で符号化さ
れ、その符号信号と基準レベルLa。
Further, a pair of bit planes representing the above-mentioned quantization contents and forming resolution components φ1 and φ2 are encoded by the MMR method, and the encoded signal and the reference level La are encoded by the MMR method.

レベル間隔Ldの符号信号は転送などのために合成され
る。
Code signals with a level interval Ld are combined for transfer or the like.

以上のように従来においては、取込ブロック502の最
大画素レベルMAX−Lと最小画素レベルMIN−Lと
の差のみからこのブロック502を代表するレベル数が
決定され、そのいずれかのレベルにブロック502内の
各画素レベルが量子化される。
As described above, conventionally, the number of levels representing this block 502 is determined only from the difference between the maximum pixel level MAX-L and the minimum pixel level MIN-L of the acquisition block 502, and the block Each pixel level within 502 is quantized.

このため、ブロック内画素レベルの振幅がわずかなとき
にはすべての画素レベルがルベルで近似され、その振幅
が大きなときには多数のレベルで近似され、中間振幅の
ときには少数のレベルで近似される。
Therefore, when the amplitude of the pixel level within a block is small, all pixel levels are approximated by Lebel, when the amplitude is large, it is approximated by a large number of levels, and when the amplitude is intermediate, it is approximated by a small number of levels.

[発明が解決しようとする課題] 第6図では各ブロック502内におけるレベル(階調)
の変化の様子が説明されており、同図における右側の山
部分は輝度や色相が徐々に変化するパターンなどと対応
し、階調が緩やかに変化している。
[Problem to be solved by the invention] In FIG. 6, the level (gradation) in each block 502
The mountain on the right side of the figure corresponds to a pattern in which brightness and hue gradually change, and the gradation gradually changes.

この部分では最大画素レベルMAX−Lと最小画素レベ
ルMIN−Lとの差が大きなものとなっており、したが
って各画素レベルが多数のレベルに量子化される。
In this part, the difference between the maximum pixel level MAX-L and the minimum pixel level MIN-L is large, and therefore each pixel level is quantized into a large number of levels.

また同図における左側の山部分は輪郭線などに相当し、
階調が急峻に変化している。
Also, the mountain part on the left side in the same figure corresponds to the contour line, etc.
The gradation changes rapidly.

その急峻な山部分でも最大画素レベルMAX−Lと最小
画素レベルMIN−Lとの差が大きなものとなっている
ので、各画素レベルが多数のレベルに量子化される。
Even in the steep mountain portion, the difference between the maximum pixel level MAX-L and the minimum pixel level MIN-L is large, so each pixel level is quantized into a large number of levels.

ここで、図の左側の山部分が輪郭線などに相当するので
、それらを少数のレベルで量子化しても十分にこの部分
を復元でき、多数のレベルで近似−1〇− する必要はない。
Here, since the mountain portion on the left side of the figure corresponds to the contour line, this portion can be sufficiently restored even if they are quantized at a small number of levels, and there is no need to approximate -10- at a large number of levels.

したがって従来においては、復元時の画質が向上しない
にもかかわらず、輪郭線などに相当する分解能成分の符
号量が増加していた。
Therefore, in the past, the amount of code for resolution components corresponding to contour lines and the like increased, although the image quality during restoration did not improve.

本発明は上記従来の課題に鑑みてなされたものであり、
その目的は、輪郭線などが含まれる多値画像を効率良く
圧縮できる装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional problems,
The purpose is to provide an apparatus that can efficiently compress multivalued images containing contour lines and the like.

[課題を解決するための手段] 上記目的を達成するために、本発明にかかる装置は第1
図のように構成されている。
[Means for Solving the Problems] In order to achieve the above object, the device according to the present invention has the following features:
It is configured as shown in the figure.

同図の手段10には多レベル表現の画素により形成され
た画像がブロック単位で取り込まれており、取込ブロッ
クの画素レベルが狭い範囲内で分布しているときには、
該ブロックの唯一の代表となる画素レベルの生成が手段
工2により指示される。
The means 10 in the figure captures an image formed by pixels of multi-level expression in blocks, and when the pixel levels of the captured blocks are distributed within a narrow range,
The means 2 instructs generation of a pixel level that is the only representative of the block.

さらに取込ブロックの画素レベルが広い範囲に分布し、
中間レベルの画素が少ないときには、該ブロックの代表
となる画素レベルの少数生成が手段14により指示され
る。
Furthermore, the pixel level of the captured block is distributed over a wide range,
When there are few intermediate level pixels, the means 14 instructs generation of a small number of representative pixel levels of the block.

また取込ブロックの画素レベルが広い範囲に分布し、中
間レベルの画素が多いときには、該ブロックの代表とな
る画素レベルの多数生成が手段16により指示される。
Further, when the pixel levels of the captured block are distributed over a wide range and there are many intermediate level pixels, the means 16 instructs generation of a large number of representative pixel levels of the block.

そして手段18では、手段12,14.16のいずれか
で指示された数のブロック代表レベルが取込ブロックの
各画素レベルに基づいて生成される。
Means 18 then generates the number of block representative levels indicated by any of means 12, 14, 16 based on each pixel level of the captured block.

また手段20では、手段18で生成されたブロック代表
レベルのいずれかに、取込ブロックの各画素レベルが量
子化される。
The means 20 also quantize each pixel level of the captured block to one of the block representative levels generated by the means 18.

さらに手段22ではブロック代表レベルの分布幅が求め
られ、手段24では取込ブロックの標準的な画素レベル
が求められる。
Furthermore, the means 22 determines the distribution width of the block representative level, and the means 24 determines the standard pixel level of the captured block.

そして手段26では、手段20による画素レベル量子化
内容と手段22によるブロック代表レベルの分布幅と手
段24による標準的な画素レベルとが符号化される。
Then, in the means 26, the pixel level quantization content by the means 20, the distribution width of the block representative level by the means 22, and the standard pixel level by the means 24 are encoded.

[作用コ 本発明では、取込ブロックの画素レベルが広〜1範囲に
分布している場合であっても、中間レベルの画素数が少
ないときには、該ブロックの代表となる画素レベルが多
数生成されず、少数生成される。
[Operation] In the present invention, even if the pixel levels of the captured block are widely distributed, when the number of intermediate level pixels is small, a large number of representative pixel levels of the block are generated. However, a small number of them are generated.

[実施例] 以下、図面に基づいて本発明にかかる装置の好適な実施
例を説明する。
[Embodiments] Hereinafter, preferred embodiments of the apparatus according to the present invention will be described based on the drawings.

第2図には実施例のブロック構成が示されており、同図
のバッファメモリ200にはカメラやスキャナなどで得
られた多レベル(例えば256階調)表現の画素による
画像500のデータが書き込まれる。
FIG. 2 shows the block configuration of the embodiment, and data of an image 500 obtained by a camera, scanner, etc. and expressed by pixels with multiple levels (for example, 256 gradations) is written into a buffer memory 200. It will be done.

そしてバッファメモリ200の画像500は階調変化検
出回路202によりブロック単位(4×4画素)で取り
込まれ、取込ブロック502における最大画素レベルM
AX−Lと最小画素レベルMIN−Lとが階調変化検出
回路202で求められる。
Then, the image 500 in the buffer memory 200 is captured in block units (4×4 pixels) by the gradation change detection circuit 202, and the maximum pixel level M in the capture block 502 is
AX-L and the minimum pixel level MIN-L are determined by the gradation change detection circuit 202.

さらにこの階調変化検出回路202で最大値MA X 
−Lと最小値MIN−Lとの差が求められ、その差とと
もに取込ブロック502の各画素レベルが量子化回路2
04に与えられる。
Furthermore, this gradation change detection circuit 202 detects the maximum value MAX
The difference between -L and the minimum value MIN-L is calculated, and together with the difference, each pixel level of the acquisition block 502 is determined by the quantization circuit 2.
Given on 04.

量子化回路204では最大画素レベルMAX−Lと最小
画素レベルMII’lLとの間を3領域に区切る値T 
IQ+  T 20が生成され、それらの値T+o+T
2Qと取込ブロック502の各画素レベルとが比較され
る。
The quantization circuit 204 uses a value T that divides the maximum pixel level MAX-L and the minimum pixel level MII'lL into three regions.
IQ+T 20 are generated and their values T+o+T
2Q and each pixel level of acquisition block 502 are compared.

これにより値T IO+  T 20で区切られる3領
域のいずれに取込ブロック502の各画素レベルが属す
かの判断が行なわれ、その結果、各画素レベルは3レベ
ルのいずれかに量子化される。
This determines which of the three regions delimited by the value T IO+T 20 each pixel level of the acquisition block 502 belongs to, and as a result, each pixel level is quantized to one of the three levels.

このようにして取込ブロック502の各画素レベルが3
つのレベル領域に仕分けられると、状態検出回路206
では各領域ごとに(すなわち各量子化レベルごとに)、
領域内の画素数が求められる。
In this way, each pixel level of the acquisition block 502 is set to 3.
The state detection circuit 206
So for each region (i.e. for each quantization level),
The number of pixels within the area is determined.

そしてモード識別回路208では取込ブロック502を
代表する画素レベルが単数となるモードA(1階調近似
)、2つのレベルで代表されるモードB(2階調近似)
、あるいは4つのレベルで代表されるモードC(4階調
近似)が決定される。
Then, in the mode identification circuit 208, mode A (one gradation approximation) has a single pixel level representing the capture block 502, and mode B (two gradation approximation) has two levels.
, or mode C (four-gradation approximation), which is represented by four levels, is determined.

その決定条件は、 モードA MAX−L−M I N−L <Ta モードB T8≦MAX、−L−MIN−L  かッn Il< 
N t hモードC T8≦MAXj−−M I N、−L  かっ nII
≧Nthで示される。
The determination conditions are: Mode A MAX-L-M I N-L <Ta Mode B T8≦MAX, -L-MIN-L Katn Il<
N th mode C T8≦MAXj--M I N, -L Ka nII
Indicated by ≧Nth.

ただ込 値T6は取込ブロック502内における画素レ
ベルの最大変化量を大小判別するためのしきい値とされ
ており、値Nthは3領域に仕分けされた(すなわち3
レベルに量子化された)画素のうち、中間領域に属する
画素の数を大小判別するためのしきいMOrR込ブロツ
ブロック502内?る全画素数=16の約10%程度)
とされている。
The value T6 is a threshold value for determining the maximum amount of change in pixel level within the acquisition block 502, and the value Nth is the threshold value for determining the maximum amount of change in pixel level within the acquisition block 502.
Threshold block 502 with MOrR for determining the number of pixels belonging to the intermediate region among the pixels (quantized into levels)? Approximately 10% of the total number of pixels = 16)
It is said that

すなわちモード識別回路208においては、最大画素レ
ベルMAJLと最小画素レベルMIN−Lとの差が値T
8未満であり、取込ブロック502の画素レベルが狭い
範囲に分布しているときには、モードAが選択される。
That is, in the mode identification circuit 208, the difference between the maximum pixel level MAJL and the minimum pixel level MIN-L is the value T.
8 and the pixel levels of acquisition block 502 are distributed in a narrow range, mode A is selected.

また最大画素レベルMAX)Lと最小画素レベルMIN
−Lとの差が値18以上である場合には、中間レベルの
範囲に属する画素数n11と値1’lthとが比較され
、中間レベルの画素数n0が値N t hで示される数
より少ないききにはモードBが選択され、多いときには
モードCが選択される。
Also, the maximum pixel level MAX)L and the minimum pixel level MIN
-L is greater than or equal to the value 18, the number n11 of pixels belonging to the intermediate level range is compared with the value 1'lth, and the number n0 of pixels in the intermediate level is greater than the number indicated by the value Nth. Mode B is selected when the noise is small, and mode C is selected when the noise is large.

コノようにしてモード識別回路208によりモードA、
  BまたはCが選択されると、この選択モードA、 
 BまたはCで示される数(1,2または4)のブロッ
ク代表レベルが代表階調決定回路210で求められる。
In this way, the mode identification circuit 208 selects mode A.
When B or C is selected, this selection mode A,
The number (1, 2, or 4) of block representative levels indicated by B or C is determined by the representative gradation determination circuit 210.

この代表階調決定回路210で求められた取込ブロック
502の代表レベルはメモリ回路212を介して比較回
路214に与えられ、取込ブロック502内の各画素レ
ベルと比較される。
The representative level of the capture block 502 determined by the representative gradation determination circuit 210 is provided to the comparison circuit 214 via the memory circuit 212 and compared with the level of each pixel within the capture block 502.

その結果、これらの画素レベルはブロック代表レベルの
いずれかに量子化され、これにより、前述の分解能成分
φ1.φ2が得られる。
As a result, these pixel levels are quantized to one of the block representative levels, which results in the aforementioned resolution components φ1. φ2 is obtained.

そして分解能成分φ1.φ2はバッファメモリ216.
218を介して符号化回路220へ与えられ、符号化さ
れる。
And resolution component φ1. φ2 is the buffer memory 216.
218 to the encoding circuit 220 and encoded.

さらに分解能成分φ1.φ2の符号化データはメモリ2
22,224に与えられ、信号合成器226に供給され
る。
Furthermore, the resolution component φ1. The encoded data of φ2 is stored in memory 2.
22 and 224 and is supplied to a signal combiner 226.

また前記の代表階調決定回路210でモードA。Also, mode A is set in the representative gradation determining circuit 210.

BまたはCに応じた数のブロック代表レベルが得られる
と、差分値発生回路228ではブロック代表レベルの分
布幅となるレベル間隔Ldが求められ、レベル間隔Ld
は差分値符号化回路230に与えられる。
When the number of block representative levels corresponding to B or C is obtained, the difference value generating circuit 228 calculates the level interval Ld that is the distribution width of the block representative levels, and the level interval Ld
is provided to the difference value encoding circuit 230.

差分値符号化回路230ではレベル間隔Ldが従来と同
様にして符号化され、その符号化データはバッファメモ
リ232を介して信号合成器226に供給される。
In the difference value encoding circuit 230, the level interval Ld is encoded in a conventional manner, and the encoded data is supplied to the signal synthesizer 226 via the buffer memory 232.

そして基準レベル発生回路234では取込プロツクの標
準的な画素レベルとなる基準レベルLaが求められ、そ
の基準レベルLaは基準レベル符号化回路23Gにより
従来と同様にして符号化される。
Then, the reference level generation circuit 234 obtains a reference level La, which is a standard pixel level of the capture block, and the reference level La is encoded by the reference level encoding circuit 23G in the same manner as in the prior art.

さらにその符号化データはバッファメモリ238に与え
られ、信号合成器226に供給される。
Further, the encoded data is provided to a buffer memory 238 and supplied to a signal combiner 226.

この信号合成器226ではメモリ222,224及びバ
ッファメモリ232,238から与えられた符号化デー
タが合成され、その合成信号はそのまま転送され、ある
いは記録される。
This signal combiner 226 combines the encoded data provided from the memories 222, 224 and the buffer memories 232, 238, and the combined signal is transferred or recorded as is.

本実施例は以上の構成からなり、以下その作用を説明す
る。
This embodiment has the above configuration, and its operation will be explained below.

階調変化検出回路202ヘバツフアメモリ200から取
り込まれたブロック502の各画素レベルがほぼ一定な
場合には、ブロック502内の最大画素レベルMAX−
Lと最小画素レベルMIN−りとの差が値T8を下回る
When each pixel level of the block 502 taken from the buffer memory 200 to the gradation change detection circuit 202 is almost constant, the maximum pixel level MAX-
The difference between L and the minimum pixel level MIN-ri is less than the value T8.

このためモード識別回路208でモードAが選択され、
単一のブロック代表レベルが代表階調決定回路210で
求められる。
Therefore, mode identification circuit 208 selects mode A,
A single block representative level is determined by the representative gradation determining circuit 210.

すなわち、階調変化検出回路202に取り込まれたブロ
ック502内の各画素データが狭いレベル範囲に分布し
ていた場合には、それらは一つのレベルに量子化され、
符号化回路220で符号化される。
That is, if each pixel data in the block 502 taken into the gradation change detection circuit 202 is distributed in a narrow level range, they are quantized to one level,
It is encoded by the encoding circuit 220.

また階調変化検出回路202に取り込まれたブロック5
02の最大画素レベルMAX−Lと最小画素レベルMI
N−Lとの差が値Ta以上であり、それらの画素レベル
が広いレベル範囲に分布していた場合においては、モー
ドB(2階調近似)またはモードC(4階調近似)がモ
ード識別回路208で選択される。
In addition, block 5 taken into the gradation change detection circuit 202
Maximum pixel level MAX-L and minimum pixel level MI of 02
If the difference from NL is greater than or equal to the value Ta and the pixel levels are distributed over a wide range of levels, mode B (two-tone approximation) or mode C (four-tone approximation) is used for mode identification. Selected in circuit 208.

第3図ではモート識別回路208によるモード選択に先
立って量子化回路204において行なわれる画素レベル
の量子化作用が説明されており、同図の左側ではブロッ
ク502内で画素レベルが急峻に変化している。
In FIG. 3, the quantization operation of the pixel level performed in the quantization circuit 204 prior to the mode selection by the mote identification circuit 208 is explained. There is.

このパターンは前述のように輪郭線などがブロック50
2内に含まれた場合に生じ、その場合には、画素レベル
が第4図(A)のように、最小画素レベルMIN−Lと
最大画素レベルMAX−Lに集中する。
As mentioned above, this pattern has outlines etc. in blocks 50.
In this case, the pixel levels are concentrated at the minimum pixel level MIN-L and the maximum pixel level MAX-L, as shown in FIG. 4(A).

したがってそれら画素レベルMIN−L、MAX−Lの
中間レベルでは画素レベルがほとんど存在せず、このた
め第3図のように画素レベルが3つのレベル範囲に仕分
けられると、中間のレベル範囲に灰する画素数がわずか
なものとなる。
Therefore, there are almost no pixel levels at the intermediate level between these pixel levels MIN-L and MAX-L. Therefore, when the pixel levels are divided into three level ranges as shown in Figure 3, the pixel levels are grayed out in the middle level range. The number of pixels becomes small.

これに対し、第3図の右側で示されるように、ブロック
502内で画素レベルが緩やかに変化し、輝度や色相が
定方向へ徐々に増減する場合には、第4図(B)のよう
にブロック502内の各画素レベルは最小画素レベルM
IN  Lから最大画素レベルMAX−Lまで、−様に
分布する。
On the other hand, as shown on the right side of FIG. 3, if the pixel level changes slowly within block 502 and the brightness or hue gradually increases or decreases in a fixed direction, as shown in FIG. 4(B), Each pixel level in block 502 is the minimum pixel level M
From IN L to the maximum pixel level MAX-L, the pixel levels are distributed in a --like manner.

したがって、ブロック502内の各画素レベルが3つの
レベル領域へ第3図のように仕分けられると、中間のレ
ベル範囲に屈する画素数が多いものとなる。
Therefore, when each pixel level within block 502 is sorted into three level regions as shown in FIG. 3, there will be a large number of pixels that fall into the intermediate level range.

この中間のレベル範囲に属する画素数n、と比較される
値Nihは第3図の左側に示された急峻なパターンと同
図の右側に示された緩やかなパターン=20− とを確実に識別できる値に設定されており、第3図の左
側に示された急峻なパターンの場合にはモードBが、右
側の緩慢なパターンの場合にはモードCがモード選択回
路208で選択される。
The value Nih compared with the number of pixels belonging to this intermediate level range, n, reliably distinguishes between the steep pattern shown on the left side of Figure 3 and the gentle pattern = 20- shown on the right side of the same figure. The mode selection circuit 208 selects mode B for the steep pattern shown on the left side of FIG. 3, and mode C for the slow pattern shown on the right side of FIG.

すなわち、取込ブロック502内の最大画素レベルMA
X −Lと最小画素レベルMIN  Lとの差が値18
以上であり、それらの画素レベルが広いレベル範囲に分
布している場合においては、中間のレベル範囲に属する
画素数が少ないときに2つのブロック代表レベルが代表
階調決定回路210で求められる。
That is, the maximum pixel level MA within acquisition block 502
The difference between X-L and the minimum pixel level MIN L is 18.
As described above, when the pixel levels are distributed over a wide level range, two block representative levels are determined by the representative gradation determining circuit 210 when the number of pixels belonging to the intermediate level range is small.

また、中間のレベル範囲に属する画素数が多いときには
、4つのブロック代表レベルが求められる。
Furthermore, when the number of pixels belonging to the intermediate level range is large, four block representative levels are determined.

以上説明したように本実施例によれば、取り込まれたブ
ロック502内における画素レベルの広い範囲に分布し
ていた場合であっても、輪郭線などが含まれるブロック
502のときには2つの代表レベルが決定されるので、
分解能成分φ1.φ2の符号量を削減できる。
As explained above, according to this embodiment, even if the pixel levels in the captured block 502 are distributed over a wide range, there are two representative levels when the block 502 includes an outline or the like. As it is decided,
Resolution component φ1. The amount of code for φ2 can be reduced.

したがって多値画像のブロック符号化をより効率良く、
高速に行なうことが可能となる。
Therefore, block encoding of multilevel images can be performed more efficiently.
It becomes possible to perform the process at high speed.

また、輪郭線などは多数のレベルで近似する場合より2
つのレベルで近似する場合の方がより明瞭な復元を行な
え、このため画像品質を高めることも可能となる。
In addition, when approximating contour lines etc. at many levels, 2
Approximation at two levels allows for clearer restoration, which also makes it possible to improve image quality.

[発明の効果] 以上説明したように本発明によれば、ブロック内の画素
レベルが広いレベル範囲に分布している場合であっても
、その分布が双峰特性となるときには、現在のブロック
中に輪郭線などが含まれているので、これを多数の代表
レベルで近似することな々、少数のレベルで近似して符
号データ量を削減できる。
[Effects of the Invention] As explained above, according to the present invention, even if the pixel levels within a block are distributed over a wide level range, when the distribution has a bimodal characteristic, the pixel levels within the current block are contains contour lines, etc., so it is possible to reduce the amount of encoded data by approximating it using a large number of representative levels, or by approximating it using a small number of levels.

このため多値画像のブロック符号化を効率良(高速に行
なうことが可能となる。
Therefore, it is possible to perform block encoding of a multivalued image efficiently (at high speed).

また本発明によれば、輪郭線などが少数の代表レベルで
近似されるほど、その復元時における明瞭度が高められ
るので、画像品質をより向上させることも可能となる。
Furthermore, according to the present invention, the more a contour line or the like is approximated by a smaller number of representative levels, the more clearly the contour line is restored, and therefore the image quality can be further improved.

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

第1図は発明の原理説明図、 第2図は実施例のブロック構成説明図、第3図は画素レ
ベルの量子化作用説明図、第4図は画素レベルの頻度分
布説明図、第5図はブロック符号化処理の手順説明図、
第6図は階調の変化特性説明図、 である。 200・・eバッファメモリ、 202会・・階調変化検出回路、 204@@+に子化回路、 206・e・状態検出回路、 208・・・モード識別回路、 210−−・代表階調決定回路、 212・争・メモリ回路、 214・・舎比較回路、 216.218@・・バッファメモリ、220・・ψ符
号化回路、 222.224・φφメモ1ハ 226・曇拳信号合成器、 228・−−差分値発生回路、 230・・・差分値符号化回路、 232参・書バッファメモリ、 234・拳・M準しベル発生回路、 236・・・基準レベル符号化回路、 238・・・バッファメモリ。 ワ耐 無郵 闇べΔ<ま 基準レベル   La        Laレベル間隔
           Ldブロック
Fig. 1 is an explanatory diagram of the principle of the invention, Fig. 2 is an explanatory diagram of the block configuration of the embodiment, Fig. 3 is an explanatory diagram of the quantization effect at the pixel level, Fig. 4 is an explanatory diagram of the frequency distribution at the pixel level, and Fig. 5 is an explanatory diagram of the pixel level frequency distribution. is an explanatory diagram of the block encoding process,
FIG. 6 is an explanatory diagram of gradation change characteristics. 200...e buffer memory, 202...gradation change detection circuit, 204@@+ conversion circuit, 206.e.state detection circuit, 208...mode identification circuit, 210--.representative tone determination Circuit, 212・Contest・Memory circuit, 214・・Sha comparison circuit, 216.218@・・Buffer memory, 220・・φ encoding circuit, 222.224・φφ memo 1ha 226・Cloud fist signal synthesizer, 228 - Difference value generation circuit, 230... Difference value encoding circuit, 232 Reference/write buffer memory, 234/Fist/M standard bell generation circuit, 236... Reference level encoding circuit, 238... buffer memory. Wa resistanceless light and darkness Be Δ<ma reference level La La level interval Ld block

Claims (1)

【特許請求の範囲】 多レベル表現の画素により形成された画像をブロック単
位で取り込む手段(10)と、 取込ブロックの画素レベルが狭い範囲で分布していると
きに該ブロックの唯一の代表となる画素レベル生成を指
示する手段(12)と、 取込ブロックの画素レベルが広い範囲で分布し中間レベ
ルの画素が少ないときに該ブロックの代表となる画素レ
ベルの少数生成を指示する手段(14)と、 取込ブロックの画素レベルが広い範囲で分布し中間レベ
ルの画素が多いときに該ブロックの代表となる画素レベ
ルの多数生成を指示する手段(16)と、 指示された数のブロック代表レベルを取込ブロックの各
画素レベルに基づいて生成する手段(18)と、 取込ブロックの各画素レベルを生成されたブロック代表
レベルのいずれかに量子化する手段(20)と、 ブロック代表レベルの分布幅を求める手段(22)と、 取込ブロックの標準的な画素レベルを求める手段(24
)と、 画素レベルの量子化内容とブロック代表レベルの分布幅
と標準的な画素レベルとを符号化する手段(26)と、 を有する、ことを特徴とする多値画像のブロック符号化
装置。
[Claims] Means (10) for capturing an image formed by pixels of a multilevel representation block by block; means (12) for instructing the generation of a pixel level that is representative of the block; and means (14) for instructing the generation of a small number of pixel levels representative of the block when the pixel levels of the captured block are distributed over a wide range and there are few intermediate level pixels; ), means (16) for instructing the generation of a large number of pixel levels representative of the block when the pixel levels of the captured block are distributed over a wide range and there are many intermediate level pixels; means (18) for generating a level based on each pixel level of the acquired block; means (20) for quantizing each pixel level of the acquired block into one of the generated block representative levels; and block representative levels. means (22) for determining the distribution width of the captured block; and means (24) for determining the standard pixel level of the captured block.
); and means (26) for encoding pixel level quantization content, block representative level distribution width, and standard pixel level.
JP63226926A 1988-09-09 1988-09-09 Block coding device for multilevel picture Pending JPH0275275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63226926A JPH0275275A (en) 1988-09-09 1988-09-09 Block coding device for multilevel picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63226926A JPH0275275A (en) 1988-09-09 1988-09-09 Block coding device for multilevel picture

Publications (1)

Publication Number Publication Date
JPH0275275A true JPH0275275A (en) 1990-03-14

Family

ID=16852769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63226926A Pending JPH0275275A (en) 1988-09-09 1988-09-09 Block coding device for multilevel picture

Country Status (1)

Country Link
JP (1) JPH0275275A (en)

Similar Documents

Publication Publication Date Title
CA2403194C (en) Enhanced compression of gray-level images
US5341441A (en) Method and apparatus for coding image information, and method of creating code books
US4631521A (en) Method and apparatus for differential run-length coding
EP0449516B1 (en) Image processing using neural network
JP2794281B2 (en) Code decoding processor for dither signal
EP0778696B1 (en) Method and apparatus for providing halftoning processing of color images by means of a neural network
GB2300083A (en) Fractal image compression
KR930000033B1 (en) Quantification wide adjusting circuits using edge detection
JP2005323326A (en) Image encoding apparatus, image decoding apparatus, control method thereof, computer program and computer-readable storage medium
JP3231800B2 (en) Image encoding apparatus and image encoding method
Gelenbe et al. Random network learning and image compression
JPH0275275A (en) Block coding device for multilevel picture
Godfrey et al. Self-organized color image quantization for color image data compression
JPH0698157A (en) Halftone image forming device
JPH0275274A (en) Block coding device for multi-value picture
JPH06197223A (en) Image reader
JP2716618B2 (en) Image coding method
JPH02108372A (en) Compression device for picture data
JPH1042132A (en) Picture processor
KR0136120B1 (en) Method to retrieve half tone image
JPH0563984A (en) Half tone binary data generation circuit
JPH0385871A (en) Method and apparatus for picture data coding
JPS63169878A (en) Vector encoding system for image data
Li et al. Piecewise linear compression scheme for PC video cameras
JPH0275273A (en) Block coding system for multi-value picture