JPH01264092A - Compression coding system for color picture - Google Patents

Compression coding system for color picture

Info

Publication number
JPH01264092A
JPH01264092A JP63092302A JP9230288A JPH01264092A JP H01264092 A JPH01264092 A JP H01264092A JP 63092302 A JP63092302 A JP 63092302A JP 9230288 A JP9230288 A JP 9230288A JP H01264092 A JPH01264092 A JP H01264092A
Authority
JP
Japan
Prior art keywords
color
approximated
small area
picture element
small
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
JP63092302A
Other languages
Japanese (ja)
Other versions
JPH07105969B2 (en
Inventor
Takio Kurita
多喜夫 栗田
Nobuyuki Otsu
展之 大津
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.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
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 Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP9230288A priority Critical patent/JPH07105969B2/en
Publication of JPH01264092A publication Critical patent/JPH01264092A/en
Publication of JPH07105969B2 publication Critical patent/JPH07105969B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To simplify a device by treating RGB signals representing the color of a picture element as a three-dimension vector and representing the information of the RGB signal by a 1st major component reflecting the information at a maximum. CONSTITUTION:A color picture is split into small areas and the major component is analyzed with respect to the RGB signal of the picture element included in each small area and each picture element is divided into two classes based on the score of the 1st major component of each picture element obtained as a result and each small area is approximated in 2 colors. Thus, in case of approximating the small area by a mean color optimum in the means of square error, a small area whose mean square error is smaller than a permissible value between a color vector and a mean color vector of each picture element included in the small area can be approximated by one color (mean color) only. That is, the small area able to be approximated by one color is approximated by one color and other small areas are approximated by 2 colors. Thus, considerable information compression is attained and the device is simplified.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はカラー画像の圧縮符号化方式に関し、特に、静
止カラー画像データ伝送における情報圧縮符号化方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a compression encoding method for color images, and particularly to an information compression encoding method for transmitting still color image data.

〔従来の技術] 従来この種の方式としては、RGB信号をそれぞれ独立
に符号化する方式もしくは第2図に示すように、RGB
信号をある変換によって新しい座標系Coding a
nd Its Application to Co1
or Images、”IEEE Trans、COM
、、vol、com−32,No、10,0ctorb
er1984)が知られている。
[Prior Art] Conventionally, this type of method includes a method in which RGB signals are encoded independently, or a method in which RGB signals are encoded independently, as shown in FIG.
A new coordinate system is created by converting the signal into a new coordinate system Coding a
nd Its Application to Co1
or Images,”IEEE Trans,COM
,,vol,com-32,No,10,0ctorb
er1984) is known.

[発明が解決しようとする課題] ところが従来の圧縮符号化方式では、3組の符号化器と
復号化器が必要であり、装置の小形化およびコストの低
減を図ることが困難であるという欠点がみられた。
[Problems to be Solved by the Invention] However, the conventional compression encoding method requires three sets of encoders and decoders, and has the disadvantage that it is difficult to reduce the size and cost of the device. was seen.

よって本発明の目的は上述の点に鑑み、画素の色を表わ
すRGB信号を3次元のベクトルとして扱い、RGBが
あわせてもつ情報を最大限反映する第1主成分で代表さ
せることにより、上記の従来方式において必要であった
3組の符号化器と復号化器を1組ですませ、もって装置
の大幅な簡素化を可能としたカラー画像の圧縮符号化方
式を提供することにある。
Therefore, in view of the above-mentioned points, an object of the present invention is to treat the RGB signal representing the color of a pixel as a three-dimensional vector, and to represent it with the first principal component that reflects the information of RGB to the maximum, thereby solving the above problem. It is an object of the present invention to provide a color image compression encoding system that can significantly simplify the apparatus by eliminating three sets of encoders and decoders that were required in the conventional system.

〔課題を解決するための手段] 本発明に係る符号化方式では、カラー画像を小領域に分
割し、各小領域に含まれる画素のRGB信号に対する主
成分分析を行い、その結果得られる各画素の第1主成分
のスコアに基づき、各画素を2クラスに分けることによ
って、各小領域を2色で近似する(第1図(a)参照)
[Means for Solving the Problems] In the encoding method according to the present invention, a color image is divided into small regions, principal component analysis is performed on the RGB signals of pixels included in each small region, and each pixel obtained as a result of the principal component analysis is By dividing each pixel into two classes based on the score of the first principal component, each small region is approximated with two colors (see Figure 1 (a)).
.

十作=梱→ 本発明に係る符号化方式により、各小領域は、各画素が
どちらのクラスに属すかを示すビットマツプ(0/1)
と各クラスの代表色に符号化される。
Jusaku = Pack → With the encoding method according to the present invention, each small area is a bitmap (0/1) indicating which class each pixel belongs to.
and is encoded into the representative color of each class.

また、復号化は、ビットマツプに従って、各画素に代表
色を割り当てることによって実現できる(第1図(b)
参照)。
Furthermore, decoding can be realized by assigning a representative color to each pixel according to the bitmap (Figure 1(b)).
reference).

上記の方式は基本的なものであり、全ての小領域を2色
で近似するものであるが、実際には全ての小領域を2色
で近似する必要はなく、はとんどの小領域は、1色のみ
の近似で十分である。
The above method is basic and approximates all small areas with two colors, but in reality it is not necessary to approximate all small areas with two colors, and most small areas , a one-color approximation is sufficient.

ある許容値より小さい小領域は、1色(平均色)のみで
近似可能となる。
A small area smaller than a certain tolerance can be approximated with only one color (average color).

つまり、1色で近似可能な小領域は1色で近似し、それ
以外の小領域は2色で近似する。
That is, small areas that can be approximated with one color are approximated with one color, and other small areas are approximated with two colors.

これにより、かなりの情報圧縮が可能である。This allows considerable information compression.

さらなる情報圧縮は、ビットマツプや代表色を従来のデ
ータ圧縮手法を用いてデータ圧縮することによって可能
となる。
Further information compression is possible by data compressing the bitmap and representative colors using conventional data compression techniques.

[実施例] 以下、実施例に基づいて本発明の詳細な説明する。[Example] Hereinafter, the present invention will be described in detail based on Examples.

まず、本発明の原理一般について説明する。First, the general principle of the present invention will be explained.

カラー画像を小領域へ分割するためには、例えば、画像
を4×4の小ブロックに分割する等の方゛ト盪hZy画
素’a’ M’+= (R+、G+、B+) 、 X’
2 = (R2,G2゜==J B2)、・・・、 X’、 = (R,、G□BJとす
ると、3’l−(J’(’L−4)   (i−1,2
s=、m)    (1)により計算できる(第4図参
照)。ただし、鵠は固有値問題 Σ則−λuL(2) の解であり、χ、Σは、それぞれ、平均ベクトル、共分
散行列であり、 により計算できる。ここで′は行列(ベクトル)の転置
を表す。
In order to divide a color image into small areas, for example, divide the image into 4 x 4 small blocks.
2 = (R2, G2゜==J B2), ..., X', = (R,, G□BJ, 3'l-(J'('L-4) (i-1,2
s=, m) (1) (see Figure 4). However, the moose is the solution of the eigenvalue problem Σ law-λuL (2), and χ and Σ are the mean vector and covariance matrix, respectively, and can be calculated as follows. Here, ′ represents the transposition of the matrix (vector).

(2)式の固有値問題は、3次の固有値問題であり、以
下のような方法により、直接、解を求めることができ、
高速計算が可能である。共分散行列Σは3×3対称行列
であるので、 となる。ここで、 bo−011−022033 C“σ■σ22+σ22σ33+σ33σ宜1−CI+
22−023”’(71:12 d:σ■σ232+σ22σ!32+033(7122
−σ11σ22033−2σ12σ23σI3である。
The eigenvalue problem in equation (2) is a third-order eigenvalue problem, and the solution can be found directly using the following method.
High-speed calculation is possible. Since the covariance matrix Σ is a 3×3 symmetric matrix, it becomes as follows. Here, bo-011-022033 C"σ■σ22+σ22σ33+σ33σI1-CI+
22-023"' (71:12 d:σ■σ232+σ22σ!32+033(7122
−σ11σ22033−2σ12σ23σI3.

(3)式の根は、 により計算できる。ここで、 o == 4p3  q2 のが(2)式の固有値問題の最大固有値λである。The root of equation (3) is It can be calculated by here, o == 4p3 q2 is the maximum eigenvalue λ of the eigenvalue problem of equation (2).

つまり、 λ= max (入1.λ2.λ3) である。最大固有値λに対する固有ベクトル団=(u、
 u2u3)は、以下の手続きによって計算できる。
That is, λ=max (input 1.λ2.λ3). Eigenvector group for maximum eigenvalue λ = (u,
u2u3) can be calculated by the following procedure.

C11= ((722−λ) (a 、、−入)   
0232C22= (σII−λ) (a 33−λ)
   (7132c3s”(σ目−入)(σ22−λ)
−σ122C,2=   (σ33−λ)σ12+σ1
3σ23013”−(σ22−λ)σ13+σ1202
゜C23ニー(σ■−入)023十〇12σI3とする
と、 もし、e11≠0なら、 もし、c22≠0なら、 もし、c33≠Oなら、 もし、C11+C22+C33が全て0で、Cl3−0
+C23−0+CI2≠0なら u1虐u2■0.u、=1 もし、C11,C22,C33が全て0で、c、2−0
.c23−0゜CI3≠0なら u、−u、−0,u2ml もし、CIl +C22+C33が全て0で、Cl2−
0+Cl3−0+C23≠0なら u2−us−0,ul−1 それ以外なら、解は不定である。
C11= ((722-λ) (a,,-in)
0232C22= (σII−λ) (a 33−λ)
(7132c3s” (σ eyes-in) (σ22-λ)
−σ122C,2= (σ33−λ)σ12+σ1
3σ23013”-(σ22-λ)σ13+σ1202
゜C23 knee (σ■-in) 023 〇12σI3 If e11≠0, if c22≠0, if c33≠O, if C11+C22+C33 are all 0, Cl3-0
+C23-0+CI2≠0 then u1 abuse u2■0. u, = 1 If C11, C22, C33 are all 0, c, 2-0
.. c23-0゜If CI3≠0 then u, -u, -0, u2ml If CIl +C22+C33 are all 0 and Cl2-
If 0+Cl3-0+C23≠0, then u2-us-0, ul-1. Otherwise, the solution is indeterminate.

普通、解が不定になることはほとんどないが、解が不定
の場合には、例えば、YIQ変換のY座標を主軸のかわ
りに用いることができる。つまり、1.11’= (0
,299,0,587,0,114)とする。
Normally, the solution is rarely indefinite, but if the solution is indefinite, for example, the Y coordinate of YIQ transformation can be used instead of the principal axis. In other words, 1.11'= (0
, 299, 0, 587, 0, 114).

各画素を2クラスに分割するには、以下の方法が使える
The following method can be used to divide each pixel into two classes.

方法1(主成分スコアの平均値による分割)主成分スコ
アの平均値は(1)式により、0であるから、各画素の
主成分スコアの正負によって、画素を2クラスに分割す
る(第5図参照)。
Method 1 (Division based on the average value of principal component scores) Since the average value of principal component scores is 0 according to equation (1), pixels are divided into two classes depending on the sign of the principal component score of each pixel (5th class). (see figure).

実用上は、上記の手法で十分であるが、次のような方法
を用いることも可能である(大津展之“判別および最小
2乗基準に基づく自動間値運定法”、電子通信学会論文
誌り、J63−4,349−356(1980))。
In practice, the above method is sufficient, but it is also possible to use the following method (Nobuyuki Otsu, "Automatic value calculation method based on discriminant and least squares criterion", Journal of the Institute of Electronics and Communication Engineers) J63-4, 349-356 (1980)).

yI≦y2≦・・・≦y。yI≦y2≦...≦y.

とする。shall be.

を最大とするk(1< k<+n−1)を探す。Find k (1<k<+n-1) that maximizes.

ykより大きい主成分スコアを持つ画素をクラス1へ y、より小さい主成分スコアを持つ画素をクラス2へ 分割する(第6図参照)。Pixels with principal component scores greater than yk are assigned to class 1. y, pixels with smaller principal component scores to class 2 Divide (see Figure 6).

この方法2により、再現される画像がわずかではあるが
、改善される。
Method 2 improves the reproduced image, albeit slightly.

各クラスの代表色は、各クラスの平均色が最小2乗誤差
の意味で最適であることが示せるので、各クラスの平均
色を各クラスの代表色とする。
Since it can be shown that the average color of each class is optimal in the sense of least square error, the average color of each class is set as the representative color of each class.

小領域が1色のみで近似可能かどうかは、小領域に含ま
れる画素の色ベクトルと平均色ベクトルとの間の平均2
乗誤差 小領域を1色のみで近似できる場合、その小領域の全て
の画素は、平均色Xに近似される。
Whether a small area can be approximated with only one color is determined by the average 2 between the color vector of the pixels included in the small area and the average color vector.
When a multiplicative error small region can be approximated with only one color, all pixels in the small region are approximated to the average color X.

本発明の一実施例では、256 X256画素のカラー
画像に対して、本手法を通用した。
In one embodiment of the present invention, this method was successfully applied to a color image of 256 x 256 pixels.

各画素は、R,G、Bそれぞれ8ビツトの24ビット/
画素で表現されている。小領域を4×4の小ブロックと
し、全ての小領域を2色で近似すると、各ブロック(4
X4=16画素)当りビットマツプに4X4=18ビツ
ト、2クラスの代表色をそれぞれR,G、B、8ビツト
の24ビツト×2クラス=48ビツトで表すとすると、
カラー画像は4ビット/画素、つまり1/6に圧縮され
る。小ブロックを1色のみで近似することを許すと、さ
らに情報圧縮が可能である。
Each pixel has 24 bits/8 bits each for R, G, and B.
It is expressed in pixels. If the small area is a 4 x 4 small block and all the small areas are approximated with two colors, each block (4
Assuming that the representative colors of 2 classes are represented by 24 bits (R, G, B, 8 bits each) x 2 classes = 48 bits,
Color images are compressed to 4 bits/pixel, or 1/6. Information can be further compressed by allowing small blocks to be approximated using only one color.

本発明によれば、カラー画像データの圧縮が、非常に少
ないメモリと計算時間によって実現できる。しかもこの
方式のハードウェア化は容易である。
According to the present invention, compression of color image data can be achieved with very little memory and calculation time. Furthermore, it is easy to implement this method in hardware.

また、復号化によって再現される画像は、通信チャネル
のノイズに対して頑健で、しかも、画像のエツジの再現
性のよい好ましいものである。
Further, the image reproduced by decoding is preferably robust against communication channel noise and has good reproducibility of image edges.

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

第1図は本発明の概要を示すフローチャート、 第2図は従来のカラー画像の圧縮符号化方式の説明図、 第3図は本発明の符号化方式を示す説明図、第4図は主
成分スコアの計算法を示すフローチャート、 第5図および第6図は各画素を2クラスに分割する方法
を示すフローチャートである。 カラーJlをkLf)刀己移竹号イし第1\を月\すb
]第1図 碕号化    +’t’t−旭 j更米の1ラーエイ象の三相り呼号イし才へt示す口笛
2図 ト冶朗の待号イbテ式rホす図 第3図 ス1.χ21・・・−2χm  (8フーロプクのpラ
ーへ゛クトル)主ft、ケ加アの宴丁′JFを不丁フD
−チャート第4図 主ペケスコアのモ何イ直にJるづ3゛夢りλり、i’v
示すフローチャート第5図 上へ分スコアに墓ブく最小2東1玉荒ケ枦j患丁!【■
すフロー十イード第6図
Figure 1 is a flowchart showing an overview of the present invention, Figure 2 is an explanatory diagram of a conventional color image compression encoding method, Figure 3 is an explanatory diagram showing the encoding method of the present invention, and Figure 4 is a diagram showing principal components. Flowchart showing a method for calculating scores. FIGS. 5 and 6 are flowcharts showing a method for dividing each pixel into two classes. Color Jl kLf) Touki Ichitake Go I and the 1st \ month \su b
] Fig. 1 - Number of numbers +'t't - Asahi j Sarame's 1 Raei Elephant's three-phase call and whistle to show t Fig. 2 To Jiro's waiting number Ib Te style r Figure 3 1. χ21...-2χm (Pler vector of 8 hoops) Main ft, Keaka's banquet'JF is not D
-Chart Figure 4 What is the main Peke score?
The flowchart shown in Figure 5 shows a minimum score of 2 points and 1 ball! [■
Flow diagram 6

Claims (1)

【特許請求の範囲】[Claims] (1)カラー画像を小領域に分割し、前記各小領域で当
該小領域に含まれる画素のRGB信号に対する主成分分
析を行い、その結果得られる各画素の第1主成分のスコ
アに基づき、各画素を2クラスに分けることによって、
各小領域を2色で近似することを特徴とするカラー画像
の圧縮符号化方式。
(1) Divide the color image into small regions, perform principal component analysis on the RGB signals of pixels included in each of the small regions, and based on the score of the first principal component of each pixel obtained as a result, By dividing each pixel into two classes,
A color image compression encoding method characterized by approximating each small area with two colors.
JP9230288A 1988-04-14 1988-04-14 Color image compression coding method Expired - Lifetime JPH07105969B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9230288A JPH07105969B2 (en) 1988-04-14 1988-04-14 Color image compression coding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9230288A JPH07105969B2 (en) 1988-04-14 1988-04-14 Color image compression coding method

Publications (2)

Publication Number Publication Date
JPH01264092A true JPH01264092A (en) 1989-10-20
JPH07105969B2 JPH07105969B2 (en) 1995-11-13

Family

ID=14050616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9230288A Expired - Lifetime JPH07105969B2 (en) 1988-04-14 1988-04-14 Color image compression coding method

Country Status (1)

Country Link
JP (1) JPH07105969B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5898794A (en) * 1992-11-02 1999-04-27 Fujitsu Limited Image compression method and image processing system
US6917704B2 (en) 2000-05-25 2005-07-12 Matsushita Electric Industrial Co., Ltd. Image processing method, image processing apparatus and image processing system
US6961462B2 (en) 2001-01-22 2005-11-01 Matsushita Electric Industrial Co., Ltd. Image processing method and image processor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6087596A (en) * 1983-10-20 1985-05-17 Hitachi Ltd Coding processing method of color picture information
JPS6224374A (en) * 1985-07-24 1987-02-02 Mitsubishi Electric Corp Picture converting device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6087596A (en) * 1983-10-20 1985-05-17 Hitachi Ltd Coding processing method of color picture information
JPS6224374A (en) * 1985-07-24 1987-02-02 Mitsubishi Electric Corp Picture converting device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5898794A (en) * 1992-11-02 1999-04-27 Fujitsu Limited Image compression method and image processing system
US6917704B2 (en) 2000-05-25 2005-07-12 Matsushita Electric Industrial Co., Ltd. Image processing method, image processing apparatus and image processing system
US6961462B2 (en) 2001-01-22 2005-11-01 Matsushita Electric Industrial Co., Ltd. Image processing method and image processor

Also Published As

Publication number Publication date
JPH07105969B2 (en) 1995-11-13

Similar Documents

Publication Publication Date Title
AU597921B2 (en) Transmitting system and method using data compression
JP3023961B2 (en) Encoder and decoder
JP3830009B2 (en) Data processing system and color conversion method
KR100270851B1 (en) Motion compensation for color video signals
JPH02100465A (en) Image encoding system
US20070097142A1 (en) Resampling chroma video using a programmable graphics processing unit to provide improved color rendering
EP0293225B1 (en) Colour picture processing system
JPH01264092A (en) Compression coding system for color picture
JP2001145107A (en) Signal processor using dct and image-compressing device
JP2557965B2 (en) Image coding method
JP2629035B2 (en) Image coding processor
JP2809552B2 (en) Image encoding method and image decoding method
JPS62283776A (en) Color picture input/output device
JP2810585B2 (en) Image encoding method and image decoding method
JPS63182781A (en) Picture processor
JPH03291059A (en) Color picture encoding device
JP3353375B2 (en) Luminance matrix digital arithmetic unit
JPH07254993A (en) Yuv/rgb conversion circuit
JP3004272B2 (en) Color image coding method
JPH04154374A (en) Image data encoding device
ARAI et al. Structure runlength coding for digital images
JPH01213069A (en) Decoding system for encoded data
JPH0799853B2 (en) Image data compression / decompression method for printing
JPH09191409A (en) Image information coder
JPS6258780A (en) Compressing and coding system for color picture data

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term