JPH04322562A - Color picture coder - Google Patents

Color picture coder

Info

Publication number
JPH04322562A
JPH04322562A JP3090747A JP9074791A JPH04322562A JP H04322562 A JPH04322562 A JP H04322562A JP 3090747 A JP3090747 A JP 3090747A JP 9074791 A JP9074791 A JP 9074791A JP H04322562 A JPH04322562 A JP H04322562A
Authority
JP
Japan
Prior art keywords
signal
color
image
binary
picture
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.)
Granted
Application number
JP3090747A
Other languages
Japanese (ja)
Other versions
JP3119373B2 (en
Inventor
Tadashi 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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP03090747A priority Critical patent/JP3119373B2/en
Publication of JPH04322562A publication Critical patent/JPH04322562A/en
Priority to US08/402,325 priority patent/US5761342A/en
Application granted granted Critical
Publication of JP3119373B2 publication Critical patent/JP3119373B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Color Television Systems (AREA)

Abstract

PURPOSE:To code a color picture in which a binary and a multi-value color signal are in existence in mixture without deterioration by extracting a characteristic part from an original picture, coding a binary color picture generated from the extracted picture part and coding a difference picture from the original picture in a hierarchical way. CONSTITUTION:A multi-value color picture signal 100 of each color read from a picture memory 20 is converted into a binary color signal for each color at a binarizing circuit 21. Moreover, each block of the signal 100 is discriminated by a discrimination section 91 as to whether the block is an edge part or a nonedge part. A signal from the circuit 1 is masked at a selector section 28 for each block by using a mask signal 121. Only an edge picture of a binarized picture is stored in a memory 22. The binarized color signal read from the memory 22 is subject to code processing at a coder A and a code word 105 is outputted. A level of the binary edge picture outputted from the selector section 28 is converted at a conversion section 29 and the result is subject to difference processing from a multi-value color signal 112 at a difference device 23, a color conversion section 27 converts the result into a luminance color difference signal 108, coded via a memory 24 and a code word 106 is outputted.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、カラー画像通信等に用
いられるカラー画像符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image encoding device used for color image communication and the like.

【0002】0002

【従来の技術】従来からカラー静止画像符号化方式に関
して様々な提案がなされている。また、対象となるカラ
ー静止画像を大別すると以下の2つになる。
2. Description of the Related Art Various proposals have been made regarding color still image encoding systems. Furthermore, the target color still images can be roughly divided into the following two types.

【0003】■赤、緑、青、シアン、マゼンタ、黄、白
、黒の8色を2値で扱う2値カラー画像■赤、緑、青を
例えば各256階調により1670万色を表示する多値
カラー画像
[0003] ■ Binary color image that handles the eight colors of red, green, blue, cyan, magenta, yellow, white, and black as binary values ■ Displays 16.7 million colors with 256 gradations of each of red, green, and blue, for example. Multivalued color image

【0004】2値カラー画像符号化方式としては、現在
ファクシミリ等で用いられている可変長符号化方式であ
るモディファイドハフマン方式を各色ごとに用いる方式
が考えられている。
As a binary color image encoding method, a method is being considered in which the modified Huffman method, which is a variable length encoding method currently used in facsimile machines, is used for each color.

【0005】またその他の方法として、周囲画素から符
号化画素を予測する予測符号化方式も提案されている。
[0005] As another method, a predictive coding method has been proposed in which a coded pixel is predicted from surrounding pixels.

【0006】これらの方法は、可逆符号化の分類に入り
、符号化・復号化におけるデータ保存がなされている。
[0006] These methods fall under the category of lossless encoding, and data is preserved during encoding and decoding.

【0007】一方、多値カラー画像符号化方式としては
、RGB各8bit信号を輝度・色差信号に変換した後
に、直交変換(離散コサイン変換)を行った係数値を線
形量子化し、この量子化値を可変長符号化する方式が提
案されている。この方式は基本的には画像の空間周波数
の低周波側を残し、高周波側をカットして、画像データ
を削減する方式である。
On the other hand, as a multilevel color image encoding method, after converting each 8-bit RGB signal into a luminance/chrominance signal, orthogonal transform (discrete cosine transform) is performed, the coefficient values are linearly quantized, and the quantized values are A method of variable length encoding has been proposed. This method basically reduces image data by leaving the low frequency side of the spatial frequency of the image and cutting the high frequency side.

【0008】この方法は、非可逆符号化方式になり、圧
縮率と画質劣化がトレード・オフの関係にある。
[0008] This method is an irreversible encoding method, and there is a trade-off between compression rate and image quality deterioration.

【0009】また、圧縮率と画質のトレードオフを利用
した多値カラー画像の階層的符号化が考えられている。
[0009] Hierarchical encoding of multivalued color images using the trade-off between compression rate and image quality has also been considered.

【0010】この方法は多値画像をサブサンプリング等
により縮小した画像を量子化した後符号化し、低解像階
層画像とし、原画像と、低解像画像を復号したものとの
差分画像を量子化したのち符号化し、高解像階層画像と
する方法である。階層数はサブサンプリングのレベルに
応じて多くとることもある。この方法は、データ量の少
ない低解像画像を先に符号化するため画像の早期把握が
可能である。
[0010] In this method, a multivalued image is reduced by subsampling, etc., is quantized and then encoded to produce a low-resolution hierarchical image, and a difference image between the original image and the decoded low-resolution image is quantized. This is a method of converting images into high-resolution hierarchical images and then encoding them to create high-resolution hierarchical images. The number of layers may be increased depending on the level of subsampling. In this method, a low-resolution image with a small amount of data is encoded first, so that the image can be grasped at an early stage.

【0011】[0011]

【発明が解決しようとしている課題】しかし、上記従来
例によって、カラー文章中にカラー写真がはめ込まれて
いるようなカラー文書画像を符号化する場合。
However, according to the conventional example described above, a color document image in which a color photograph is embedded in a color document is to be encoded.

【0012】■2値カラー方式では、カラー文章部は圧
縮率を上げて符号化できても、カラー写真部の諧調性あ
る画像を効率よく符号化できない。
[0012] In the binary color method, although color texts can be encoded with a high compression rate, it is not possible to efficiently encode color photographic images with tonality.

【0013】■多値カラー方式では、圧縮率を上げてい
くと、画像の高周波成分が大きくカットされ文字等のエ
ッジ部の画質劣化が目立ってくるので、文章に対しては
、写真部ほどの高圧縮率は期待できない。などの問題点
がある。
[0013] In the multi-level color method, as the compression rate is increased, the high frequency components of the image are largely cut and the deterioration of the image quality at the edges of characters etc. becomes noticeable. A high compression rate cannot be expected. There are problems such as:

【0014】また多値カラー画像の階層的符号化を用い
て低解像画像部の圧縮率を上げることも考えられるが、
やはり、カラー文書、あるいはエッジ部を多く含んだ画
像については画質劣化が大きく、全体画像の早期把握に
問題が残る。
[0014]Also, it is conceivable to increase the compression rate of the low-resolution image part by using hierarchical encoding of multivalued color images;
After all, image quality deteriorates significantly for color documents or images containing many edge portions, and there remains a problem in early understanding of the entire image.

【0015】[0015]

【課題を解決するための手段】本発明は以上の点に鑑み
てなされたもので、多値カラー画像、2値カラー画像の
みらなず、多値カラー画像と2値カラー画像の混存した
カラー画像をも良好に符号化することを目的とするもの
である。
[Means for Solving the Problems] The present invention has been made in view of the above points, and is capable of handling not only multi-value color images and binary color images, but also multi-value color images and binary color images. The purpose of this method is to encode color images well as well.

【0016】更に従来の多値カラー階層的符号化におい
て問題のあった低解像度画像すなわち早期伝送画像の画
質を2値カラー符号化により改善することを目的として
いる。
Furthermore, it is an object of the present invention to improve the image quality of low-resolution images, that is, early transmission images, which have had problems with conventional multilevel color hierarchical coding, by using binary color coding.

【0017】また、本発明は、カラー画像をコンポーネ
ント毎にM×Nのブロック単位にエッジ部と非エッジ部
に分類し、エッジ部のブロックに対しては、2値化後2
値カラー方式で圧縮することによりカラー文章部等の画
質を保存する。また非エッジ部のブロックについては、
原画とエッジ部の2値画像を差分をとった画像を多値カ
ラー方式により圧縮する。
Furthermore, the present invention classifies a color image into edge portions and non-edge portions in M×N block units for each component, and divides the edge portion blocks into two after binarization.
The image quality of color text parts, etc. is preserved by compressing using the value color method. For non-edge blocks,
The image obtained by taking the difference between the original image and the binary image of the edge portion is compressed using a multi-value color method.

【0018】更に、非エッジ部である差分画像を階層的
に符号化することにより高圧縮を実現するものである。
Furthermore, high compression is achieved by hierarchically encoding the differential image, which is a non-edge portion.

【0019】[0019]

【実施例】以下、本発明を好ましい実施例を用いて説明
する。
EXAMPLES The present invention will be explained below using preferred examples.

【0020】図1は本発明を適用した符号部の実施例構
成である。
FIG. 1 shows the configuration of an embodiment of a code section to which the present invention is applied.

【0021】画像メモリ20には、図示しない例えばカ
ラースキャナ等のカラー静止画像入力手段から入力され
たフルカラー画像を表わす赤(R)、緑(G)、青(B
)各8bit多値のカラー画像信号が記憶されている。
The image memory 20 stores red (R), green (G), and blue (B) images representing full-color images input from a color still image input means such as a color scanner (not shown).
) Each 8-bit multivalued color image signal is stored.

【0022】画像メモリ20から読出された各色の多値
カラー画像信号100は、2値化回路21で各色毎に2
値化処理を施されてR、G、B各1bitの2値カラー
信号に変換される。
The multivalued color image signal 100 of each color read out from the image memory 20 is converted into two signals for each color by a binarization circuit 21.
It is subjected to value processing and converted into a binary color signal of 1 bit each for R, G, and B.

【0023】また、多値カラー画像信号100はブロッ
クエッジ判定部19によりブロック毎にそのブロックが
エッジ部か否かを判定している。本実施例においては画
像8×8をブロック単位として、エッジ部か非エッジ部
かの判定を行っている。
Furthermore, the multivalued color image signal 100 is subjected to a block edge determination section 19 that determines whether or not each block is an edge portion. In this embodiment, an 8×8 image is used as a block to determine whether it is an edge portion or a non-edge portion.

【0024】2値化回路21で2値化された信号はブロ
ック毎にセレクタ部28によりマスク信号121により
マスクされる。
The signal binarized by the binarization circuit 21 is masked by the mask signal 121 by the selector section 28 for each block.

【0025】すなわち、ブロックエッジ判定部19によ
りエッジ部と判定されたブロックはブロック判定信号1
11により2値化信号101が選択される。また、非エ
ッージ部と判定されたブロックについてはマスク信号0
が選択される。したがって2値化画像のうちエッジ画像
のみが102を介し2値画像メモリ22へ各色別に記憶
される。
That is, a block determined to be an edge portion by the block edge determination section 19 receives the block determination signal 1.
11 selects the binary signal 101. Also, for blocks determined to be non-edge parts, the mask signal 0 is applied.
is selected. Therefore, only the edge image of the binarized image is stored in the binary image memory 22 via 102 for each color.

【0026】2値メモリ22から読出された2値カラー
信号は、2値カラー信号符号化用の符号器Aで符号化処
理され、符号語105を出力する。この符号器Aにより
符号化処理が第1の符号化処理である。
The binary color signal read from the binary memory 22 is encoded by the encoder A for encoding the binary color signal, and a code word 105 is output. The encoding process performed by this encoder A is the first encoding process.

【0027】次に、画像メモリ20から、前述の第1の
符号化処理がなされたと同じカラー画像信号を読出す。
Next, the same color image signal that has been subjected to the first encoding process described above is read out from the image memory 20.

【0028】このカラー信号は第1の符号化により符号
化された2値エッジ画像以外の部分を符号化するための
ものである。
This color signal is used to encode parts other than the binary edge image encoded by the first encoding.

【0029】2値エッジ画像はセレクタ部102からレ
ベル変換部29へ入力される。ここで、2値信号は0.
1から0.255(8ビット)に変換される。
The binary edge image is input from the selector section 102 to the level conversion section 29. Here, the binary signal is 0.
Converted from 1 to 0.255 (8 bits).

【0030】レベル変換された2値画像104は差分器
23により多値カラー信号112との差分がとられ、差
分多値R、G、B信号107となる。
The level-converted binary image 104 is subtracted from the multi-value color signal 112 by a subtractor 23, resulting in a differential multi-value R, G, B signal 107.

【0031】次に、色変換部27によりRGB信号から
輝度・色差信号108に変換される。この変換には一般
的に以下の式が用いられている。
Next, the color converter 27 converts the RGB signal into a luminance/color difference signal 108 . The following formula is generally used for this conversion.

【0032】 Y=0.299R+0.587G+0.114BCr=
0.713(R−Y) Cb=0.564(B−Y) ただし、ここで示したR、G、B、Y、Cr、Cbは規
格化した値である。
Y=0.299R+0.587G+0.114BCr=
0.713 (RY) Cb=0.564 (B-Y) However, R, G, B, Y, Cr, and Cb shown here are standardized values.

【0033】色変換された差分多値YCrCb信号10
8は差分多値メモリ24に格納された後符号化される。
Color-converted differential multivalued YCrCb signal 10
8 is stored in the differential multilevel memory 24 and then encoded.

【0034】本実施例では、この差分多値YCrCb信
号を更に階層的に符号化する。まずローパスフィルタ2
8により差分多値YCrCb信号が平滑化され、符号器
B26により符号化される。
In this embodiment, this differential multilevel YCrCb signal is further hierarchically encoded. First, low pass filter 2
The differential multi-level YCrCb signal is smoothed by 8 and encoded by encoder B26.

【0035】ローパスフィルタ28は、たとえば図2で
示されるフィルタ係数を用いる。実際のフィルタリング
では各係数は規格化されたものすなわち1/36倍され
たもので行われる。
The low-pass filter 28 uses filter coefficients shown in FIG. 2, for example. In actual filtering, each coefficient is normalized, that is, multiplied by 1/36.

【0036】符号化B26による符号化処理が第2の符
号化処理であり符号語106を生成する。また階層符号
化処理のため第2の符号語106は符号器B26と逆変
換である復号器B30により復号され差分多値YCrC
b信号114に復号される。
The encoding process by encoding B26 is the second encoding process and generates the code word 106. Further, for layered encoding processing, the second code word 106 is decoded by a decoder B30, which is an inverse transform of the encoder B26, and is converted into a differential multi-level YCrC.
b signal 114.

【0037】次に逆色変換36により、差分多値RGB
信号を復元できる。この変換は前述の式1の逆変換を行
えばよい。
Next, by inverse color conversion 36, differential multi-value RGB
The signal can be restored. This conversion may be performed by inversely converting the above-mentioned equation 1.

【0038】逆変換された差分多値RGB信号120は
逆差分器31により差分多値RGB信号120と2値カ
ラー信号115が合成された圧縮画像として復号される
。この画像は第1の符号語105と第2の符号語106
を階層的RGB画像に復元したものである。
The inversely transformed differential multi-value RGB signal 120 is decoded by the inverse differentiator 31 as a compressed image in which the differential multi-value RGB signal 120 and the binary color signal 115 are combined. This image consists of a first codeword 105 and a second codeword 106.
is restored into a hierarchical RGB image.

【0039】このRGB復元画像117は再び色変換3
3によりYCrCb復元画像118に変換される。この
変換は同様に式1である。
This RGB restored image 117 is again subjected to color conversion 3.
3, it is converted into a YCrCb restored image 118. This conversion is also Equation 1.

【0040】また、一方画像メモリ20に格納されてい
る原画像信号100も同様に色変換34によりYCrC
b原画像信号116に色変換される。
On the other hand, the original image signal 100 stored in the image memory 20 is also converted into YCrC by color conversion 34.
The color is converted to b original image signal 116.

【0041】YCrCb原画像信号116とYCrCb
差分復元画像信号118は減算器35により原画像から
差分復元画像を減算する計算が行われ、原画差分画像信
号119を生成し、符号器B32により第3の符号化処
理が行われ、第3の符号語110を作成する。
YCrCb original image signal 116 and YCrCb
The differentially restored image signal 118 is subjected to calculation to subtract the differentially restored image from the original image by the subtracter 35 to generate the original image difference image signal 119, and the third encoding process is performed by the encoder B32. A codeword 110 is created.

【0042】ここで符号器B32と符号器B26は同符
号化処理である。また第3の符号化処理は第1、第2の
符号化処理と原画像の差分であり第3階層符号化である
[0042] Here, encoder B32 and encoder B26 perform the same encoding process. Further, the third encoding process is a difference between the first and second encoding processes and the original image, and is third layer encoding.

【0043】ブロックエッジ判定部19においては、本
実施例では以下の判定を用いている。図3(a)はその
一例を示したものである。
The block edge determination section 19 uses the following determination in this embodiment. FIG. 3(a) shows an example.

【0044】ブロック毎に(本実施例では8×8画素を
1ブロックとするがブロックの単位はこれに限らない)
エッジの検出をRGBそれぞれについて行う。このエッ
ジの検出法として、図3(a)では、ブロック中の最大
値MaxLと最小値MinSの差、P=L−Sを求め、
Pがある一定値(T=70、但し全体レベルを2値とす
る)以上ならばエッジが存在するという方法である。
For each block (in this embodiment, one block is 8×8 pixels, but the unit of block is not limited to this)
Edge detection is performed for each of RGB. As a method for detecting this edge, in FIG. 3(a), the difference between the maximum value MaxL and the minimum value MinS in the block, P = L - S, is calculated,
This is a method in which an edge exists if P is equal to or greater than a certain value (T=70, where the overall level is assumed to be binary).

【0045】また、図3(b)のような方法を用いても
実現できる。
[0045] It can also be realized using a method as shown in Fig. 3(b).

【0046】図3(b)では8×8ブロック毎にDCT
変換を行い、変換された係数のうちDCをのぞくAC部
分の絶対値の和を求める。Sが一定値以上であればエッ
ジ部と判定する。
In FIG. 3(b), DCT is performed for each 8×8 block.
The conversion is performed, and the sum of the absolute values of the AC portion excluding the DC of the converted coefficients is determined. If S is a certain value or more, it is determined that it is an edge portion.

【0047】この方法においてAC係数の和は斜線部分
であるが、このうち一部の係数のみを用いても判定可能
である。
In this method, the sum of AC coefficients is shown in the shaded area, but it is also possible to make a determination using only some of these coefficients.

【0048】図4は、画像メモリ20から読出された多
値カラー画像信号Mと2値エッジ画像Bと差分多値画像
Sの関係を示したものである。
FIG. 4 shows the relationship between the multi-value color image signal M, the binary edge image B, and the differential multi-value image S read out from the image memory 20.

【0049】本実施例では8×8画素ブロック単位にエ
ッジ判定を行っているが図4は8×8画素ブロックを一
次元的にみた場合の例である。エッジであると判定され
たブロックについては多値カラー画像信号Mはスレッシ
ョルドTHで2値化されレベル変換(0.255)され
たものが2値エッジ画像Bである。
In this embodiment, edge determination is performed in units of 8×8 pixel blocks, but FIG. 4 shows an example when an 8×8 pixel block is viewed one-dimensionally. For blocks determined to be edges, the multivalued color image signal M is binarized at a threshold TH and level-converted (0.255), resulting in a binary edge image B.

【0050】差分多値画像Sは、MとBの差分の絶対値
をとったもの、すなわち、S=|M−B|により得られ
る。
The differential multivalued image S is obtained by taking the absolute value of the difference between M and B, that is, S=|M−B|.

【0051】本実施例においては差分絶対値をとったが
、これは負の差分をさけるためである。図4(c)にお
いて、斜線部分がこの部分である。結果として高周波成
分を含んだ2値エッジ画像Bと低周波成分の差分多値画
像に分割でできる。
In this embodiment, the absolute value of the difference is taken, but this is to avoid negative differences. In FIG. 4(c), the shaded portion is this portion. As a result, the image is divided into a binary edge image B containing high frequency components and a differential multivalued image containing low frequency components.

【0052】尚、2値化のスレッショルドTHはTH>
128(8ビットの場合)が好ましい。小さいと差分多
値画像に高周波が残りやすいためである。
[0052] The binarization threshold TH is TH>
128 (for 8 bits) is preferred. This is because if it is small, high frequencies tend to remain in the differential multivalued image.

【0053】本実施例の差分方式は図1の差分器23に
適用されている。また、図1の逆差分器31は差分絶対
値処理と逆の処理、すなわちM=|S−B|を計算する
ことで、多値カラー画像信号を復元できる。
The differential method of this embodiment is applied to the differentiator 23 in FIG. Further, the inverse subtractor 31 in FIG. 1 can restore a multi-valued color image signal by performing a process inverse to the absolute difference value process, that is, by calculating M=|SB|.

【0054】図5は本発明を適用した復号部の実施例の
構成である。
FIG. 5 shows the configuration of an embodiment of a decoding section to which the present invention is applied.

【0055】2値カラー画像の符号語105は復号器A
40で各色毎にドットイメージに復元され2値メモリ4
3に記憶される。このドットイメージは図1の2値メモ
リ22に格納された2値信号を完全に対応する。
The code word 105 of the binary color image is sent to the decoder A.
40, each color is restored to a dot image and stored in binary memory 4.
3 is stored. This dot image completely corresponds to the binary signal stored in the binary memory 22 of FIG.

【0056】復号されたデータは第1階層の2値画像1
50を形成する。
[0056] The decoded data is the binary image 1 of the first layer.
form 50.

【0057】次に第2階層の差分多値カラー画像の符号
語106は復号器B41でコンポーネント信号YCrC
b信号に復元される。
Next, the code word 106 of the differential multilevel color image of the second layer is converted into a component signal YCrC by the decoder B41.
b signal is restored.

【0058】YCrCb信号は154を介し逆色変換部
44によりRGB差分信号に変換される。RGB差分信
号155と2値メモリ43に格納してある第1階層の2
値画像150は、逆差分器46により減算されて第2階
層の多値復元画像151を形成する。
The YCrCb signal is converted into an RGB difference signal by the inverse color conversion section 44 via 154. The RGB difference signal 155 and the first layer 2 stored in the binary memory 43
The value image 150 is subtracted by the inverse differentiator 46 to form a multi-value restored image 151 of the second layer.

【0059】さらに、第3階層の差分多値カラー画像の
符号語110も同様に復号器B42によりYCrCb信
号に復号される。
Furthermore, the code word 110 of the third layer differential multilevel color image is similarly decoded into a YCrCb signal by the decoder B42.

【0060】この差分信号157は、第2階層復号画像
151を色変換部45によりコンポーネント信号YCr
Cbに変換された信号と加算器48により合成され、第
3階層の復号画像YCrCbが形成される。このYCr
Cb信号は逆変換部47によりRGB信号を形成し、第
3階層の復号画像152が得られる。
This difference signal 157 converts the second layer decoded image 151 into a component signal YCr by the color converter 45.
It is combined with the signal converted to Cb by an adder 48 to form a third layer decoded image YCrCb. This YCr
The Cb signal is converted into an RGB signal by the inverse transformer 47, and a third layer decoded image 152 is obtained.

【0061】本実施例では以下のような階層符号化が実
現できる。すなわち第1段階にデータ量は少ないが画像
の特徴(エッジ)を抽出した2値カラー画像を完全復元
型のエレトロピ符号化により符号化送信し、受信側で第
1段階のみを復号し、表示することによって受信した画
像の比較的画質の良い全体画像が早期に把握できる。
In this embodiment, the following hierarchical encoding can be realized. In other words, in the first stage, a binary color image with a small amount of data but with image features (edges) extracted is encoded and transmitted using fully restored electrotropic encoding, and the receiving side decodes and displays only the first stage. As a result, an overall image of relatively high quality of the received image can be grasped at an early stage.

【0062】次に第2段階において、原画像と2値カラ
ーの差分多値画像をスムージング処理等により低周波成
分のみの画像とし、低周波画像の符号化に効率の良いD
CTハフマン符号化等を用い圧縮効率を上げている。
Next, in the second step, the differential multivalued image between the original image and the binary color is transformed into an image containing only low frequency components by smoothing processing, etc., and D
Compression efficiency is improved by using CT Huffman encoding.

【0063】更に第3段階で原画像と第2段階画像との
差分多値画像を同様にDCTハフマン符号化等により所
望の圧縮率、画質の画像を符号化できる。
Furthermore, in the third stage, the differential multivalued image between the original image and the second stage image can be similarly encoded into an image with a desired compression ratio and image quality by DCT Huffman encoding or the like.

【0064】本実施例の差分多値画像は、周知の種々の
ブロック符号化により符号化できる。本実施例では8×
8画素ブロック毎にDCT変換し、変換係数をハフマン
符号化する方式をとっている。
The differential multivalued image of this embodiment can be encoded by various well-known block encoding methods. In this example, 8×
A method is used in which DCT transform is performed for each 8-pixel block and the transform coefficients are Huffman encoded.

【0065】図6(B)は本実施例における差分多値画
像の符号器の例を示している。
FIG. 6B shows an example of an encoder for a differential multivalued image in this embodiment.

【0066】図1の符号器B26および32に入力され
る画像信号は式(1)により色変換された信号YCrC
bである。この信号は図6(B)の符号器B110に入
力され直交変換部456に入力される。
The image signals input to the encoders B26 and B32 in FIG.
It is b. This signal is input to encoder B110 in FIG. 6(B) and then input to orthogonal transform section 456.

【0067】直交変換回路456では離散コサイン変換
により8×8画素ブロック毎に画像を周波数ごとの変換
係数(強度)に変換する。図7に示した変換係数は、や
はり8×8のブロックになっており、変換値に1から6
4の番号をつける。500で示す係数番号1が直流成分
を示している。また、501、502で示す係数番号2
、3…は交流成分を示しており、番号が大きくなるに従
って低周波から高周波への交流成分を示すことになる。
The orthogonal transform circuit 456 transforms the image into transform coefficients (intensities) for each frequency by discrete cosine transform for each 8×8 pixel block. The transform coefficients shown in Figure 7 are also 8x8 blocks, and the transform values range from 1 to 6.
Number it 4. Coefficient number 1 indicated by 500 indicates the DC component. In addition, coefficient number 2 indicated by 501 and 502
, 3... indicate alternating current components, and as the number increases, it indicates alternating current components from low frequency to high frequency.

【0068】変換係数信号401は線形量子化器457
で例えば、8ビットに量子化される。この線形量子化器
457は、直流および低周波の量子化ステップは細かく
、高周波の量子化ステップは粗くとるように量子化ステ
ップが決められている。
The transform coefficient signal 401 is processed by a linear quantizer 457
For example, it is quantized to 8 bits. In this linear quantizer 457, the quantization steps are determined so that the quantization steps for direct current and low frequencies are fine, and the quantization steps for high frequencies are coarse.

【0069】ハフマン符号化部462においては、直流
成分(図7の係数番号1)と交流成分(係数番号2〜6
4)はそれぞれ別々に符号化される。また、これら符号
化はY,Cr,Cbの順でそれぞれ直流成分、交流成分
がハフマン符号化される。
In the Huffman encoding unit 462, the DC component (coefficient number 1 in FIG. 7) and the AC component (coefficient numbers 2 to 6) are
4) are each encoded separately. Further, in these encodings, the DC component and AC component are Huffman encoded in the order of Y, Cr, and Cb, respectively.

【0070】直流成分については前ブロックの直流成分
との差分にハフマン符号を割りあてるDPCMハフマン
符号を用いている。
For the DC component, a DPCM Huffman code is used in which a Huffman code is assigned to the difference from the DC component of the previous block.

【0071】また、交流成分についてはブロック毎に係
数番号2〜64を図7のようにジグザグにスキャンし、
係数が0であるラインと次の係数値の統計によりハフマ
ン符号を割りあてる方法である。
Regarding the AC component, the coefficient numbers 2 to 64 are scanned in a zigzag manner for each block as shown in FIG.
This is a method of assigning a Huffman code based on the statistics of the line where the coefficient is 0 and the next coefficient value.

【0072】以上のようにして差分多値画像は符号化さ
れ出力106を得る。
As described above, the differential multivalued image is encoded to obtain the output 106.

【0073】復号器B(図5の41、42)については
、図6(B)の符号器Bの逆の変換を行うことにより容
易に復号できる。すなわち、直流成分、交流成分のハフ
マン符号を復号し、DCT係数を8×8画素ブロック毎
に構成した後逆DCT変換を行えば復号できる。
Decoder B (41, 42 in FIG. 5) can easily decode by performing the inverse transformation of encoder B in FIG. 6(B). That is, decoding can be performed by decoding the Huffman code of the DC component and AC component, configuring DCT coefficients for each 8×8 pixel block, and then performing inverse DCT transformation.

【0074】図1の符号器A25の詳細を図6(A)に
示す。本実施例では動的算術符号を実施しているが、算
術符号においては符号化、復号化とも同様な処理を行っ
ているため符号部の詳細のみを説明する。
Details of the encoder A25 in FIG. 1 are shown in FIG. 6(A). In this embodiment, dynamic arithmetic coding is implemented, but since the same processing is performed for encoding and decoding in arithmetic coding, only the details of the coding part will be explained.

【0075】図1の2値メモリ22から読出された符号
化する画像の2値データはR,G,B画素順に図6(A
)の予測状態決定回路450に入る。
The binary data of the image to be encoded read out from the binary memory 22 in FIG. 1 is shown in FIG. 6 (A
) enters the predicted state determination circuit 450.

【0076】予測状態決定回路450は、注目画素に関
して、その周囲符号化済画素から構成される予測状態信
号S206を出力する。また、S116と同期した符号
化画素データX217を出力し、両信号は動的算術符号
器453に入力され符号化される。
[0076] The prediction state determining circuit 450 outputs a prediction state signal S206 composed of the surrounding encoded pixels regarding the pixel of interest. It also outputs encoded pixel data X217 in synchronization with S116, and both signals are input to the dynamic arithmetic encoder 453 and encoded.

【0077】図8は予測状態決定回路450のブロック
図であり、図9は状態予測のために参照される各色別の
画素位置を示す。
FIG. 8 is a block diagram of the predicted state determination circuit 450, and FIG. 9 shows pixel positions for each color that are referred to for state prediction.

【0078】即ち、図9(a)は符号化第1色目(本実
施例ではR)の参照画素を示しており、*で示した符号
化画素の周囲の符号化済の7画素を参照することを表わ
している。
That is, FIG. 9(a) shows the reference pixel of the first encoded color (R in this example), and refers to the seven encoded pixels around the encoded pixel indicated by *. It represents that.

【0079】また、図9(b)は符号化第2色目(本実
施例ではG)の参照画素を示しており、(a)と同様の
7画素および第1色の同位置の画素のあわせて8画素を
参照することを表わしている。
Furthermore, FIG. 9(b) shows the reference pixels of the second encoded color (G in this example), and the combination of the same seven pixels as in (a) and the pixel at the same position of the first color. This indicates that eight pixels are referred to.

【0080】また、図9(c)は第3色(本実施例では
B)の参照画素を示しており、(a)と同様の7画素お
よび第1色および第2色の同位置の各画素のあわせて9
画素を参照することを表わしている。
FIG. 9(c) shows reference pixels of the third color (B in this example), including the same seven pixels as in FIG. 9(a) and each of the same positions of the first and second colors. Total of 9 pixels
Indicates that a pixel is referred to.

【0081】図8の構成では、図9(a)〜(c)に示
す各色毎の参照画素位置の複数画素を参照することによ
り、各色毎の状態を決定する。以下、図8の動作を説明
する。
In the configuration of FIG. 8, the state of each color is determined by referring to a plurality of pixels at reference pixel positions for each color shown in FIGS. 9(a) to 9(c). The operation of FIG. 8 will be explained below.

【0082】R,G,B各1bitからなる3bit信
号である信号103は、RGBデータ200〜202と
して、ラッチ群67〜69に入力されるとともに、ライ
ンメモリ61、62、63にも入力され、ラインメモリ
61〜63により1ライン遅延したRGBデータが保持
される。またラッチ67a〜67h、ラッチ68a〜6
8h及びラッチ69a〜69hには、1画素クロック毎
に遅延されたデータが保持される。
The signal 103, which is a 3-bit signal consisting of 1 bit each for R, G, and B, is input to the latch groups 67 to 69 as RGB data 200 to 202, and is also input to the line memories 61, 62, and 63. Line memories 61 to 63 hold RGB data delayed by one line. Also, latches 67a to 67h, latches 68a to 6
8h and latches 69a to 69h hold data delayed every pixel clock.

【0083】ラッチ群67においてラインメモリ61の
出力が入力されるラッチ67a,67b,67c,67
dおよびラインメモリ61の出力により符号化ラインの
前ライン上の5画素のデータが参照できることになる。 また、ラッチ67g,67hの出力により、符号化ライ
ン上の符号化済2画素が参照できることになる。これら
7画素のデータを合わせて符号化第1色であるRの状態
決定用の参照画素信号210とする。また、ラッチ67
fからは符号化画素のRのデータ211が他色G,Bの
状態決定用に出力される。
In the latch group 67, the output of the line memory 61 is input to latches 67a, 67b, 67c, and 67.
d and the output of the line memory 61, data of five pixels on the previous line of the encoding line can be referenced. Furthermore, the two encoded pixels on the encoding line can be referenced by the outputs of the latches 67g and 67h. The data of these seven pixels are combined to form a reference pixel signal 210 for determining the state of R, which is the first color to be encoded. Also, the latch 67
From f, R data 211 of the encoded pixel is output for determining the status of other colors G and B.

【0084】このラッチ群67と同じ構成のラッチ群6
8,69がデータG201及びB202に対して設けら
れており、これらラッチ群68,69からは夫々、ラッ
チ群67と同様の7画素のデータが参照画素信号212
,214として出力される。
A latch group 6 having the same configuration as this latch group 67
8 and 69 are provided for the data G201 and B202, and from these latch groups 68 and 69, seven pixel data similar to the latch group 67 are provided as the reference pixel signal 212.
, 214.

【0085】また、ラッチ群68中のラッチ68fから
符号化画素のGのデータ213がBの状態決定用に出力
される。
Furthermore, the G data 213 of the encoded pixel is output from the latch 68f in the latch group 68 for determining the B state.

【0086】セレクタ64においてはRGBの各色デー
タの出力に対応した色を示す2ビットのカラー指示信号
219に応じて参照画素信号を切り換える。即ち、カラ
ー指示信号219がRの時は、参照画素信号210と零
信号2bitを選択する。また、Gの時は参照画素信号
212およびR信号212と零信号1bitが選択され
る。また、Bの時は参照画素信号214およびR信号2
11、G信号213が選択される。
The selector 64 switches the reference pixel signal in accordance with a 2-bit color instruction signal 219 indicating the color corresponding to the output of each RGB color data. That is, when the color instruction signal 219 is R, the reference pixel signal 210 and the 2-bit zero signal are selected. Further, in the case of G, the reference pixel signal 212, the R signal 212, and 1 bit of the zero signal are selected. Also, in the case of B, the reference pixel signal 214 and the R signal 2
11, G signal 213 is selected.

【0087】この9bitの選択信号215と2bit
のカラー指示信号219はパッキング回路65により、
11bitの信号にまとめられて状態信号S206にな
る。従って、状態信号S1は符号化すべき画素の色と周
囲の状態を示し、R,G,B各色に対して27,28,
29個の状態を示す。
This 9-bit selection signal 215 and 2-bit
The color instruction signal 219 is sent by the packing circuit 65,
The signals are combined into an 11-bit signal and become the status signal S206. Therefore, the status signal S1 indicates the color of the pixel to be encoded and the surrounding status, and for each color R, G, B, 27, 28,
29 states are shown.

【0088】また、セレクタ64からは周囲画素の状態
信号S206に同期して符号化すべき画素信号X217
が出力される。
The selector 64 also outputs a pixel signal X217 to be encoded in synchronization with the status signal S206 of surrounding pixels.
is output.

【0089】図10は図6(A)の動的符号器453の
ブロック図である。
FIG. 10 is a block diagram of the dynamic encoder 453 of FIG. 6(A).

【0090】図10の説明の前に、本実施例で用いた算
術符号について説明する。
Before explaining FIG. 10, the arithmetic codes used in this embodiment will be explained.

【0091】従来から知られている様に、算術符号は、
入力信号列を小数2進数で表わされる符号になるように
算術演算により符号形成がなされる方法である。この方
法はLangdonおよびRissanenらによる文
献“Compressionof  Black/Wh
ite  Images  With  Arithm
etic  Coding”,IEEE  Tran 
 Com.COM−29、6、(1981.6)等に発
表されている。 この文献によるとすでに符号化した入力信号列をS、劣
勢シンボル(LPS)の出る確率をq、演算レジスタA
ugendをA(S)、符号レジスタをC(S)とした
時に、入力信号ごとに以下の算術演算を行なう。
As is conventionally known, the arithmetic code is
This is a method in which a code is formed by arithmetic operations so that the input signal string becomes a code expressed in binary decimal numbers. This method is described in the paper “Compression of Black/Wh” by Langdon and Rissanen et al.
ite Images With Arithm
etic Coding", IEEE Tran
Com. Published in COM-29, 6, (1981.6), etc. According to this document, the input signal sequence that has already been encoded is S, the probability that a least-likely symbol (LPS) appears is q, and the arithmetic register A is
When ugend is A(S) and the code register is C(S), the following arithmetic operation is performed for each input signal.

【0092】 A(S1)=A(S)×q≒A(S)×2−Q…(1)
A(S0)=〈A(S)−A(S1)〉l…(2)〈 
 〉lは有効桁lbitで打ち切りを表すC(S0)=
C(S)…(3) C(S1)=C(S)+A(S0)…(4)
A(S1)=A(S)×q≒A(S)×2−Q…(1)
A(S0)=〈A(S)−A(S1)〉l…(2)〈
〉l represents truncation in significant digits C(S0)=
C(S)…(3) C(S1)=C(S)+A(S0)…(4)

【0093
】ここで、符号化データが優勢シンボル(MPS:上の
例では0)の場合はA(S0)、C(S0)を次のデー
タの符号化に使う。また劣勢シンボル(LPS:上の例
では1)の場合は、A(S1)、C(S1)を次のデー
タの符号化に使う。
0093
]Here, if the encoded data is a dominant symbol (MPS: 0 in the above example), A(S0) and C(S0) are used to encode the next data. Furthermore, in the case of a less-likely symbol (LPS: 1 in the above example), A(S1) and C(S1) are used to encode the next data.

【0094】新しいAの値は2s倍(Sは0以上の整数
)され、0.5<A<1.0の範囲におさめられる。 この処理は、ハードウエアでは演算レジスタAをS回シ
フトすることに相当する。符号レジスタCに対しても同
じ回数のシフトが行なわれ、シフトアウトされた信号が
符号となる。以上の処理を繰り返し符号形成がなされる
The new value of A is multiplied by 2s (S is an integer greater than or equal to 0) and falls within the range of 0.5<A<1.0. This processing corresponds to shifting the calculation register A S times in hardware. The code register C is also shifted the same number of times, and the shifted out signal becomes the code. The above process is repeated to form a code.

【0095】また、(1)の式で示したようにLPSの
出現確率qを2のべき乗(2−Q:Qは正整数)で近似
することにより、乗算計算をシフト演算に置き換えてい
る。この近似をさらによくするためにqを、例えば(5
)式の如くの2のべき乗の多項式で近似している。 この近似により効率最悪点の改善が行なわれている。
Furthermore, as shown in equation (1), the LPS appearance probability q is approximated by a power of 2 (2-Q: Q is a positive integer), thereby replacing the multiplication calculation with a shift calculation. To make this approximation even better, let q be changed to, for example, (5
) is approximated by a polynomial of a power of 2. This approximation improves the worst point of efficiency.

【0096】q≒2−Q1+2−Q2…(5)q≒2-Q1+2-Q2...(5)

【009
7】また、算術符号は符号化データ毎にQの値を切換え
ることが可能なことから確率推定部を符号化と分離する
ことができる。
009
[7] Furthermore, since the arithmetic code allows the value of Q to be changed for each encoded data, the probability estimation section can be separated from the encoding.

【0098】本実施例では前述のように符号化を行ない
ながら確率を推定していく動的な方法をとっている。
In this embodiment, as described above, a dynamic method is used in which the probability is estimated while performing encoding.

【0099】以上の算術符号を行なう図6(A)の符号
器453のブロック図の説明を行なう。
A block diagram of the encoder 453 shown in FIG. 6A that performs the above arithmetic coding will be explained.

【0100】図6(A)の予測状態決定回路450から
の状態信号S206は、図10のカウンタメモリ73、
符号化条件メモリ74に入力される。
The state signal S206 from the predicted state determining circuit 450 of FIG. 6(A) is sent to the counter memory 73 of FIG.
The data is input to the encoding condition memory 74.

【0101】符号化条件メモリ74には、状態信号S2
06で表わされる各状態毎に、出現しやすいシンボルで
ある優勢シンボルMPS308と、後述する算術符号の
LPSの出現確率を含む符号化条件を示すインデックス
1307が記憶されている。
[0101] The encoding condition memory 74 stores the status signal S2.
For each state represented by 06, a dominant symbol MPS 308, which is a symbol that is likely to appear, and an index 1307 indicating encoding conditions including the probability of appearance of LPS of an arithmetic code, which will be described later, are stored.

【0102】符号化条件メモリ74から符号化すべき画
像の色および状態に応じて読み出されたMPS308は
予測変換回路77に入力され、予測変換回路77では図
6の予測状態決定回路450からのシリアル画素信号X
217がMPS308と一致した時に0となるYN信号
301を作る。
The MPS 308 read out from the encoding condition memory 74 in accordance with the color and state of the image to be encoded is input to the predictive conversion circuit 77, which receives the serial data from the predictive state determination circuit 450 in FIG. Pixel signal
217 and MPS 308, a YN signal 301 which becomes 0 is generated.

【0103】YN信号301は更新回路75に入力され
、更新回路75では、YN信号が0の時に、カウンタメ
モリ73に記憶されているカウント値のうち対応する状
態のカウントをインクリメントする。そして、カウンタ
メモリ73に記憶されているカウント値C306がカウ
ントテーブルROM72からの設定値MC305に一致
したならば、インデックスI307が大きくなる方向(
LPSの出現確率qが小さくなる方向)に更新する(M
PSの反転は行なわない。)。
The YN signal 301 is input to the update circuit 75, and the update circuit 75 increments the count of the corresponding state among the count values stored in the counter memory 73 when the YN signal is 0. Then, if the count value C306 stored in the counter memory 73 matches the set value MC305 from the count table ROM 72, the index I307 increases (
update in the direction in which the LPS appearance probability q becomes smaller (M
No inversion of PS is performed. ).

【0104】尚、カウントテーブルROM72は、LP
Sの出現確率qを表わすインデックスIに対応して決め
られている第1表で示したMPSの数MC305を更新
回路75に供給する。
[0104] The count table ROM 72 is
The number MC305 of MPS shown in Table 1, determined corresponding to the index I representing the appearance probability q of S, is supplied to the update circuit 75.

【0105】また、更新回路75では、MPS308と
画素信号X217が不一致の場合、即ち、予測変換回路
77からのYN信号が1の時はインデックスI307が
小さくなる方向(LPSの出現確率qが大きくなる方向
)に更新する。また、インデックスが1の時に値が0の
YN信号が来ると、MPSを反転(0→1または1→0
)する処理を行なう。更新回路75の出力I′309、
MPS′310は更新後のインデックスの値であり、符
号化条件メモリ74に再記憶される。
Furthermore, in the update circuit 75, when the MPS 308 and the pixel signal direction). Also, if a YN signal with a value of 0 comes when the index is 1, the MPS is inverted (0 → 1 or 1 → 0
). Output I'309 of update circuit 75,
MPS' 310 is the updated index value and is stored again in the encoding condition memory 74.

【0106】符号化パラメータ決定回路76では、イン
デックスI307の値に基づいて算術符号の符号化パラ
メータQ311を算術符号器78にセットする。この算
術符号器78では、予測変換回路77からのYN信号3
01をパラメータQ311を用いて算術符号化し符号3
02を得る。
The encoding parameter determining circuit 76 sets the encoding parameter Q311 of the arithmetic code in the arithmetic encoder 78 based on the value of the index I307. In this arithmetic encoder 78, the YN signal 3 from the predictive conversion circuit 77 is
01 is arithmetic encoded using parameter Q311 and code 3
Get 02.

【0107】尚、符号化条件メモリ74に初期値を与え
ておき、I、MPSを更新しないようにすることにより
、静的な符号化が容易に実現できる。
Note that static encoding can be easily realized by providing initial values to the encoding condition memory 74 and not updating I and MPS.

【0108】図11は予測変換回路77のブロック図で
ある。シリアル画素信号X217とMPS308がEX
−OR回路79に入力され、表2の論理式に従ってシリ
アル画素信号X217とMPS308が一致したときに
0、不一致のときに1となるYN信号301が出力され
る。
FIG. 11 is a block diagram of the predictive conversion circuit 77. Serial pixel signal X217 and MPS308 are EX
A YN signal 301 is inputted to the -OR circuit 79 and becomes 0 when the serial pixel signal X217 and MPS 308 match, and becomes 1 when they do not match, according to the logical formula in Table 2.

【0109】図12は、更新回路75のブロック図であ
る。YN信号301が0の時、カウンタメモリ73から
のカウント値C306が加算器81で+1インクリメン
トされ、信号C′312になる。この値は比較器83で
カウントテーブルROM72からのMC305と比較さ
れ、C′の値がMCの値に一致したならば、更新信号U
PA313を1にセットする。
FIG. 12 is a block diagram of update circuit 75. When the YN signal 301 is 0, the count value C306 from the counter memory 73 is incremented by +1 by the adder 81 and becomes the signal C'312. This value is compared with MC305 from count table ROM 72 in comparator 83, and if the value of C' matches the value of MC, update signal U
Set PA313 to 1.

【0110】またYN信号301は更新信号UPB31
4となり、UPA、UPBはインデックス変更回路85
に入る。また、UPAとUPBはOR回路87で論理O
Rがとられ、OR回路87の出力信号315はセレクタ
82の切換え信号となる。
[0110] Furthermore, the YN signal 301 is the update signal UPB31.
4, and UPA and UPB are index change circuits 85
to go into. In addition, UPA and UPB are logically outputted by an OR circuit 87.
R is taken, and the output signal 315 of the OR circuit 87 becomes a switching signal for the selector 82.

【0111】セレクタ82では信号315が1の時はカ
ウンタメモリ73の値をリセットするため0信号319
を選び、それ以外は加算器81の出力信号C′312を
選びカウンタ更新信号C″316として出力し、これを
カウンタメモリ73に記憶させる。従って、シリアル画
素信号X115とMPS308が不一致の場合、および
一致状態が所定回連続した場合に、カウンタメモリ73
のカウント値がリセットされる。
In the selector 82, when the signal 315 is 1, a 0 signal 319 is sent to reset the value of the counter memory 73.
Otherwise, the output signal C'312 of the adder 81 is selected and outputted as the counter update signal C''316, which is stored in the counter memory 73. Therefore, if the serial pixel signal X115 and MPS308 do not match, When the matching state continues a predetermined number of times, the counter memory 73
The count value will be reset.

【0112】インデックス変更回路85には、インデッ
クスの更新きざみを制御する信号d317(標準的には
d=1)とUPA313、UPB314および符号化条
件メモリ74から現在のインデックスI307が入力さ
れている。
The index change circuit 85 receives a signal d317 (standardly d=1) for controlling the index update step, and the current index I307 from the UPA 313, UPB 314, and encoding condition memory 74.

【0113】表3はインデックス変更回路85における
インデックス更新方法を示すテーブルである(表3には
更新きざみがd=1とd=2の場合を示している。)。 このテーブルを現在のインデックスI、更新きざみ条件
d、UPA、UPBで参照することにより更新したイン
デックスI′を決定する。
Table 3 is a table showing the index update method in the index change circuit 85 (Table 3 shows cases where the update increments are d=1 and d=2). The updated index I' is determined by referring to this table using the current index I, update step conditions d, UPA, and UPB.

【0114】また、I=1でUPB=1(シリアル画素
信号X115とMPS308が不一致の場合)の時はE
X信号318をセットする。EX信号318が1の時に
反転器86では現在のMPS308のシンボルを反転さ
せ(0→1又は1→0)、更新MPS′310を得る。 また、EX信号が0のときはMPS′は変化させない。
Furthermore, when I=1 and UPB=1 (when serial pixel signal X115 and MPS308 do not match), E
Set the X signal 318. When EX signal 318 is 1, inverter 86 inverts the symbol of the current MPS 308 (0→1 or 1→0) to obtain an updated MPS' 310. Furthermore, when the EX signal is 0, MPS' is not changed.

【0115】更新されたI′309およびMPS′31
0は符号化条件メモリ74に記憶され、次の処理用のイ
ンデックスIおよびMPSとして用いられる。尚、表3
に示した更新法は、ROMなどによりテーブルでも構成
できるし、加減算器を使ってロジックで構成することも
可能である。
Updated I'309 and MPS'31
0 is stored in the encoding condition memory 74 and used as index I and MPS for the next processing. Furthermore, Table 3
The updating method shown in can be configured with a table using a ROM or the like, or can be configured with logic using an adder/subtractor.

【0116】以上の如く、2のべき乗の多項式で近似し
たLPSの出現確率qを表わすインデックスIの値に応
じて定められたMPSの数分のMPSが発生したときに
は、インデックスIをd加算し、算術符号に用いるLP
Sの出現確率qを小さくせしめ、一方、LPSが発生し
たときには、インデックスIをd減算し、算術符号に用
いるLPSの出現確率qを大きくせしめる。また、更に
LPSの出現確率qが0.5を表わす状態(インデック
スIが1の状態)においてLPSが発生した場合は、M
PSを反転する。
As described above, when MPSs as many as the number of MPSs determined according to the value of the index I representing the appearance probability q of an LPS approximated by a polynomial of a power of 2 are generated, add d to the index I, LP used for arithmetic codes
The appearance probability q of S is made small, while when an LPS occurs, the index I is subtracted by d to make the appearance probability q of the LPS used for the arithmetic code larger. Furthermore, if an LPS occurs in a state where the LPS appearance probability q is 0.5 (a state where index I is 1), M
Invert PS.

【0117】この様に、入力画像に適応的にインデック
スIおよびMPSを更新することにより、符号化効率の
良い算術符号化が達成できる。
[0117] In this way, by adaptively updating the index I and MPS to the input image, arithmetic coding with high coding efficiency can be achieved.

【0118】図13は本実施例で用いる算術符号の符号
化効率曲線である。以下、インデックスIの値を小文字
iで示す。この曲線はLPSの出現確率をq、符号化時
での近似確率qeiとした時に式(6)で示される。そ
して、LPSの出現確率qの値の大きい方から小さい方
へ、順次インデックスIを1、2、3、…と付与する。
FIG. 13 is a coding efficiency curve of the arithmetic code used in this embodiment. Hereinafter, the value of index I will be indicated by a lowercase letter i. This curve is expressed by equation (6), where q is the probability of appearance of LPS, and qei is the approximate probability at the time of encoding. Then, indexes I are sequentially assigned as 1, 2, 3, etc. from the larger value of the LPS appearance probability q to the smaller value.

【0119】[0119]

【数1】 ここで、分子はエントロピであり、qeiは式(7)で
示される値である。
##EQU00001## Here, the numerator is entropy, and qei is the value shown by equation (7).

【0120】qei=q1+q2…(7)q1、q2の
値は2のべき乗の多項近似の値で第4表で与えられてい
る。例えば(8)〜(10)で示される。
qei=q1+q2 (7) The values of q1 and q2 are polynomial approximation values of powers of 2 and are given in Table 4. For example, it is shown by (8) to (10).

【0121】qei′=2−1…(8)qe2′=2−
1  −2−4…(9)qe3′=2−2+2−3…(
10) となり、この確率において効率ηが1.0になるピーク
点となるqeiを以降実効確率と呼ぶ。また効率曲線の
交点を境界確率qbiと呼び、この確率を境に隣の実効
確率を使って符号化するほうが効率が向上することは明
らかである。
qei'=2-1...(8) qe2'=2-
1 -2-4...(9) qe3'=2-2+2-3...(
10) The peak point qei at which the efficiency η becomes 1.0 in this probability is hereinafter referred to as the effective probability. Furthermore, it is clear that the efficiency is improved by calling the intersection of the efficiency curves the boundary probability qbi, and encoding using the effective probabilities adjacent to this probability.

【0122】本実施例では、式(5)で示したように2
つの項で近似できる確率から第4表に示した実効確率q
eiを選んでいる。また、第4表のQ1、Q2、Q3は
算術符号器78に送るパラメータQc311である。即
ち、Q1、Q2はシフトレジスタへ与えるシフト量であ
り、このシフト演算により2のべき乗計算を行なってい
る。また、Q3は第2項めの係数を示し、+、−の切換
えを行なう。
In this example, as shown in equation (5), 2
The effective probability q shown in Table 4 is calculated from the probability that can be approximated by two terms.
I am choosing ei. Furthermore, Q1, Q2, and Q3 in Table 4 are parameters Qc311 sent to the arithmetic encoder 78. That is, Q1 and Q2 are shift amounts given to the shift register, and a power of 2 calculation is performed by this shift operation. Further, Q3 indicates a coefficient of the second term, and switches between + and -.

【0123】表1のMCの値は、以下のように決定して
いる。
The value of MC in Table 1 is determined as follows.

【0124】即ち、LPSの数をNL、MPSの数をN
Mとした時、LPSの発生確率は式(11)で与えられ
る。
That is, the number of LPS is NL, and the number of MPS is N.
When M is assumed, the probability of LPS occurrence is given by equation (11).

【0125】[0125]

【数2】 この式をNMで解くと式(12)になる。[Math 2] Solving this equation using NM gives equation (12).

【0126】NM=「NL(1/q−1)」…(12)
ただし「x」は小数点以下の切り上げを表わす。式(1
2)におけるqに図13に示したqbiを与えることに
より、そこでの優勢シンボル(MPS)の数NMiが計
算される。従って、MC波式(13)から計算される。
[0126]NM=“NL(1/q-1)”…(12)
However, "x" represents rounding up to the nearest whole number. Formula (1
By giving qbi shown in FIG. 13 to q in 2), the number NMi of dominant symbols (MPS) there is calculated. Therefore, it is calculated from the MC wave equation (13).

【0127】MCi=NMi+1−NMi…(13)MCi=NMi+1-NMi (13)


0128】表1のMCの値は式(11)、(12)、(
13)からNL=2として計算したものである。
[
[0128] The values of MC in Table 1 are expressed by equations (11), (12), (
13) with NL=2.

【0129】この様に、図13の如くの各境界確率qb
iに基づいて各インデックスIに対応した優勢シンボル
MPSの数NMiを求め、隣り合ったインデックス間の
優勢シンボルNMの差を各インデックスIに対応するM
Cとする。
In this way, each boundary probability qb as shown in FIG.
The number NMi of dominant symbols MPS corresponding to each index I is determined based on i, and the difference in the dominant symbols NM between adjacent indices is calculated as M corresponding to each index I.
Let it be C.

【0130】そして、このMCの値と発生する優勢シン
ボルMPSの数を前述の如く比較し、MCの値と優勢シ
ンボルMPSの数が一致したならば、その状態は隣のイ
ンデックスIを用いた符号化が適した状態と判断して、
インデックスIを変更する。これによって、優勢シンボ
ルMPSの発生数を基にして良好なタイミングでインデ
ックスIの変更がなされ、且つ、最適なインデックスI
を用いた符号化を適応的に達成できる。
[0130] Then, the value of this MC and the number of generated dominant symbols MPS are compared as described above, and if the value of MC and the number of dominant symbols MPS match, the state is determined by the code using the neighboring index I. It is determined that the situation is suitable for
Change index I. As a result, the index I is changed at a good timing based on the number of occurrences of the dominant symbol MPS, and the optimum index I is changed.
can be achieved adaptively.

【0131】図14は算術符号器78のブロック図であ
る。
FIG. 14 is a block diagram of arithmetic encoder 78.

【0132】符号パラメータ決定回路76で決められた
コントロール信号Q311(表4)のうちシフトレジス
タA90にQ1を、シフトレジスタB91にQ2、セレ
クタ92にQ3が入力される。Q1、Q2は夫々シフト
レジスタA、Bに対してAugend信号であるAS3
23を何bit右にシフトするかを指示する。シフトさ
れた結果が出力信号330、331となる。
Of the control signals Q311 (Table 4) determined by the code parameter determining circuit 76, Q1 is input to the shift register A90, Q2 to the shift register B91, and Q3 to the selector 92. Q1 and Q2 are the Augend signals AS3 for shift registers A and B, respectively.
Instructs how many bits to shift 23 to the right. The shifted results become output signals 330 and 331.

【0133】信号331は、反転器96により補数がと
られ、セレクタ92はコントロール信号Q3により信号
331又は反転器96の出力信号を選択し、出力信号3
32を得る。加算器93ではシフトレジスタA90から
の信号322とセレクタ92からの信号332の加算が
行われ、AS1信号324が出力される。減算器94で
は、AS信号323からAS1信号324を減算し、A
S0信号325を得る。
The signal 331 is complemented by the inverter 96, and the selector 92 selects the signal 331 or the output signal of the inverter 96 according to the control signal Q3, and outputs the output signal 3.
Get 32. The adder 93 adds the signal 322 from the shift register A90 and the signal 332 from the selector 92, and outputs an AS1 signal 324. The subtracter 94 subtracts the AS1 signal 324 from the AS signal 323, and
Obtain S0 signal 325.

【0134】セレクタ95ではAS0信号325とAS
1信号324のいずれかをYN信号301により選択す
る。 即ちYN信号が1の時はAS0信号が、また、YN信号
が0の時はAS1信号がA′信号326になる。
[0134] In the selector 95, the AS0 signal 325 and the AS
1 signal 324 is selected by the YN signal 301. That is, when the YN signal is 1, the AS0 signal becomes the A' signal 326, and when the YN signal is 0, the AS1 signal becomes the A' signal 326.

【0135】シフト回路89ではA′信号のMSBが1
になるまで左へシフトする処理が行われ、このシフトに
よりAS′信号327が得られる。このシフトの回数に
相当するシフト信号332は、コードレジスタ99に入
り、コードレジスタ99からはシフト回数に相当する数
のbitがMSBから順番に出力され符号データ330
になる。
In the shift circuit 89, the MSB of the A' signal is 1.
A shift process to the left is performed until the AS' signal 327 is obtained. The shift signal 332 corresponding to the number of shifts enters the code register 99, and the code register 99 outputs bits of the number corresponding to the number of shifts in order starting from the MSB.
become.

【0136】符号データ330は、図示しないbit処
理方法にて、bit1の連続が有限個内になるように処
理され、復号器側に伝送されることになる。
[0136] The code data 330 is processed by a bit processing method (not shown) so that the number of consecutive bits is within a finite number, and is transmitted to the decoder side.

【0137】また、コードレジスタ99の内容CR32
8は加算器で97でAS0信号325と加算され、セレ
クト98に入る。また、AS0信号325にの加算され
ていない信号CR328もセレクタ98に入り、YN信
号301が1の時はCR′=CR、YN信号が0の時は
CR′=CR+AS0となるCR′信号329として出
力される。コードレジスタ99に関して前述したシフト
処理はCR′信号に対しても行う。
[0137] Also, the contents of code register 99 CR32
8 is added to the AS0 signal 325 in an adder 97 and enters the select 98. In addition, the signal CR328 that is not added to the AS0 signal 325 also enters the selector 98, and when the YN signal 301 is 1, CR'=CR, and when the YN signal is 0, CR'=CR+AS0. Output. The shift processing described above regarding code register 99 is also performed on the CR' signal.

【0138】以上説明したように、多値カラー信号をブ
ロック毎にエッジ部であるか否かを判定しエッジ部であ
るブロックについて2値化後動的算術符号により情報保
存符号化を行い、文字、線画等のエッジ部の2値カラー
については劣化の少ないシャープな画像を高圧縮率で実
現できる。
As explained above, it is determined whether or not each block of a multivalued color signal is an edge portion, and after binarization, information preservation encoding is performed using dynamic arithmetic coding for blocks that are edge portions, and character , sharp images with little deterioration can be achieved at high compression rates for binary colors at the edges of line drawings and the like.

【0139】さらに、カラー写真等エッジ部の少ない多
値カラーについては原画からエッジ部の2値画像をさし
引いた差分画像すなわち低周波画像を階層的にDCTハ
フマン符号化することにより高圧縮率の符号化が可能と
なる。
Furthermore, for multivalued colors with few edges such as color photographs, a high compression ratio can be achieved by hierarchically DCT Huffman encoding the difference image, that is, the low frequency image obtained by subtracting the binary image of the edge from the original image. It becomes possible to encode

【0140】また、2値カラー画像、多値カラー画像と
も画質劣化が少なく、かつ高圧縮率を実現すると同時に
、階層的符号化における早期伝送画像の特徴であるエッ
ジ等を保存することにより全体画像の早期把握を実現す
るものである。
[0140] In addition, both binary color images and multi-value color images have little image quality deterioration and achieve a high compression rate. This will enable early understanding of the situation.

【0141】[0141]

【表1】[Table 1]

【0142】[0142]

【表2】[Table 2]

【0143】[0143]

【表3】[Table 3]

【0144】[0144]

【発明の効果】以上説明したように、本発明によると、
多値カラー画像を階層的に符号化するカラー画像符号化
装置であって、原画像から特徴部分を抽出する抽出手段
と、前記抽出手段により抽出された画像部分を2値化し
、2値カラー画像を生成する生成手段を有し、前記2値
カラー画像を情報保存形符号化により符号し、原画像と
前記2値カラー画像との差分画像を階層的に符号化する
ので、2値カラー画像と多値カラー画像の混在したカラ
ー画像を夫々劣化なく符号化でき、また、復号時におけ
る画像の早期認識が可能となる。
[Effects of the Invention] As explained above, according to the present invention,
A color image encoding device that hierarchically encodes a multivalued color image, comprising an extraction means for extracting a characteristic part from an original image, and a binarization of the image part extracted by the extraction means to create a binary color image. , the binary color image is encoded by information preserving encoding, and the difference image between the original image and the binary color image is hierarchically encoded, so that the binary color image and the binary color image are encoded. Color images containing a mixture of multivalued color images can be encoded without deterioration, and images can be recognized early during decoding.

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

【図1】符号化部のブロック図である。FIG. 1 is a block diagram of an encoding unit.

【図2】ローパスフィルタの例を示す図である。FIG. 2 is a diagram showing an example of a low-pass filter.

【図3】ブロックエッジの判定例を示す図である。FIG. 3 is a diagram showing an example of block edge determination.

【図4】差分器の動作例を示す図である。FIG. 4 is a diagram illustrating an example of the operation of a differentiator.

【図5】復号化部のブロック図である。FIG. 5 is a block diagram of a decoding unit.

【図6】符号器のブロック図である。FIG. 6 is a block diagram of an encoder.

【図7】変換係数を示す図である。FIG. 7 is a diagram showing conversion coefficients.

【図8】状態予測決定回路のブロック図である。FIG. 8 is a block diagram of a state prediction determination circuit.

【図9】参照画素位置を示すブロック図である。FIG. 9 is a block diagram showing reference pixel positions.

【図10】動的符号器のブロック図である。FIG. 10 is a block diagram of a dynamic encoder.

【図11】予測変換回路のブロック図である。FIG. 11 is a block diagram of a predictive conversion circuit.

【図12】更新回路のブロック図である。FIG. 12 is a block diagram of an update circuit.

【図13】符号化効率曲線を示す図である。FIG. 13 is a diagram showing a coding efficiency curve.

【図14】算術符号器のブロック図である。FIG. 14 is a block diagram of an arithmetic encoder.

【符号の説明】[Explanation of symbols]

20  画像メモリ 21  2値化回路 25  符号器A 23  差分器 26  符号器B 20 Image memory 21 Binarization circuit 25 Encoder A 23 Differentiator 26 Encoder B

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  多値カラー画像を階層的に符号化する
カラー画像符号化装置であって、原画像から特徴部分を
抽出する抽出手段と、前記抽出手段により抽出された画
像部分を2値化し、2値カラー画像を生成する生成手段
を有し、前記2値カラー画像を情報保存形符号化により
符号し、原画像と前記2値カラー画像との差分画像を階
層的に符号化することを特徴とするカラー画像符号化装
置。
1. A color image encoding device that hierarchically encodes a multivalued color image, comprising: an extraction means for extracting a characteristic part from an original image; and a binarization of the image part extracted by the extraction means. , comprising a generating means for generating a binary color image, encoding the binary color image by information preserving encoding, and hierarchically encoding a difference image between the original image and the binary color image. Characteristic color image encoding device.
【請求項2】  請求項1に記載のカラー画像符号化装
置において、前記抽出手段は、M×N(M、Nは2以上
の自然数)画素ブロック毎にエッジ部を含むブロックか
含まないブロックかを判定し、エッジを含むブロックに
対しては2値化を行い、その他のブロックに対してはマ
スク(0にする)した2値カラー画像と、原画像と2値
カラー画像との差分とった多値カラー画像とに分離する
分離手段であることを特徴とするカラー画像符号化装置
2. The color image encoding device according to claim 1, wherein the extraction means determines whether each M×N (M and N are natural numbers of 2 or more) pixel block includes or does not include an edge portion. The blocks containing edges were binarized, and other blocks were masked (set to 0) in a binary color image, and the difference between the original image and the binary color image was calculated. 1. A color image encoding device, characterized in that it is a separating means for separating a multivalued color image.
JP03090747A 1991-04-16 1991-04-22 Image coding device Expired - Fee Related JP3119373B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP03090747A JP3119373B2 (en) 1991-04-22 1991-04-22 Image coding device
US08/402,325 US5761342A (en) 1991-04-16 1995-03-10 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03090747A JP3119373B2 (en) 1991-04-22 1991-04-22 Image coding device

Publications (2)

Publication Number Publication Date
JPH04322562A true JPH04322562A (en) 1992-11-12
JP3119373B2 JP3119373B2 (en) 2000-12-18

Family

ID=14007190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03090747A Expired - Fee Related JP3119373B2 (en) 1991-04-16 1991-04-22 Image coding device

Country Status (1)

Country Link
JP (1) JP3119373B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0959432A2 (en) * 1998-05-19 1999-11-24 Canon Kabushiki Kaisha Image processing apparatus and method
US6507674B1 (en) 1998-12-14 2003-01-14 Ricoh Company, Ltd. Image data encoding apparatus
JP2006332955A (en) * 2005-05-25 2006-12-07 Nikon Corp Image compression apparatus, image compression program, electronic camera, image expansion apparatus, and image expansion program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0959432A2 (en) * 1998-05-19 1999-11-24 Canon Kabushiki Kaisha Image processing apparatus and method
EP0959432A3 (en) * 1998-05-19 2000-09-13 Canon Kabushiki Kaisha Image processing apparatus and method
US6507674B1 (en) 1998-12-14 2003-01-14 Ricoh Company, Ltd. Image data encoding apparatus
US6683990B2 (en) 1998-12-14 2004-01-27 Ricoh Company, Ltd. Image data encoding apparatus
JP2006332955A (en) * 2005-05-25 2006-12-07 Nikon Corp Image compression apparatus, image compression program, electronic camera, image expansion apparatus, and image expansion program

Also Published As

Publication number Publication date
JP3119373B2 (en) 2000-12-18

Similar Documents

Publication Publication Date Title
US5363219A (en) Image processing method and apparatus
JP2621747B2 (en) Image processing device
US5844718A (en) Image processing apparatus and method in which multi-level color signal with removed edge component is encoded
US5317428A (en) Image encoding method and apparatus providing variable length bit stream signals
US5317411A (en) Image encoding
US5761342A (en) Image processing apparatus and method
JP3119373B2 (en) Image coding device
JPH09149260A (en) Information processor and information processing method
JPH04316279A (en) Color picture encoder
JP2952007B2 (en) Image coding device
JP2832059B2 (en) Color image encoding device
JP2872334B2 (en) Color image encoding device
JPH046948A (en) Binarizing method for color picture
JP2942243B2 (en) Image encoding apparatus and method
JP2675903B2 (en) Image coding method
JPH11164150A (en) Image processor
JP2697897B2 (en) Color image encoding method and apparatus
JPH0437369A (en) Color picture encoding/decoding system
JP2877451B2 (en) Image coding method
Chithra A Novel Lossy Image Compression Based On Color Prediction Technique
JPH046954A (en) Picture prediction coding system
JPH0342968A (en) Color picture information encoding system
JP2817843B2 (en) Image coding method
JPH0393359A (en) Color picture coding system
JPH0799853B2 (en) Image data compression / decompression method for printing

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000912

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071013

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081013

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091013

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101013

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees