[go: up one dir, main page]

JPH04142879A - Picture coding and decoding system - Google Patents

Picture coding and decoding system

Info

Publication number
JPH04142879A
JPH04142879A JP2266054A JP26605490A JPH04142879A JP H04142879 A JPH04142879 A JP H04142879A JP 2266054 A JP2266054 A JP 2266054A JP 26605490 A JP26605490 A JP 26605490A JP H04142879 A JPH04142879 A JP H04142879A
Authority
JP
Japan
Prior art keywords
color
area
image
decoding
signal
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
JP2266054A
Other languages
Japanese (ja)
Inventor
Masahiro Nakamura
昌弘 中村
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2266054A priority Critical patent/JPH04142879A/en
Publication of JPH04142879A publication Critical patent/JPH04142879A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To improve the compression efficiency by coding a luminance component and a chrominance component with respect to a halftone area and coding the luminance component with respect to a character area. CONSTITUTION:An inputted primary color signal is binarized by a binarizing section 1, a base color detection section 2 detects a base color, a color space conversion section 3 separates the inputted primary color signal into a luminance component and a chrominance component and a color signal generating section 5 uses background color information from the background color detection section 2 to generate color signals Cr1, Cb1. As the result of discrimination by an area discrimination section 6, when a block is resident in a halftone area, a halftone coding section 7 is operated to code the luminance signal and chrominance signal Cr1, Cb1 in the unit of blocks. When a block is in a character area, a character area coding section 8 is active to allow a luminance signal binarizing section 4 to code the binarized luminance signal in the unit of blocks. Thus, a high compression rate is obtained.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、カラー画像の符号化および復壮化方式に関し
、特に下地に色の伺いた原稿の画像を符号化する画像符
号化および該符号化された画像ブタを復号化する復号化
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for encoding and reconstructing color images, and in particular to image encoding for encoding an image of an original with a colored background and the encoding method. The present invention relates to a decoding method for decoding a converted image pig.

[従来技術] カラー画像は、従来のモノクロ2値の画像に比べてその
データ量が非常に多く、カラー文書画像を蓄積あるいは
伝送する際に、データ量を削減するために符号化処理を
行い、データ圧縮する必要がある。そして、高い圧縮率
を得るために、個々の画像の性質に適した符号化方式を
用いることが必要であり、そのために種々の符号化方式
が既に提案されている。
[Prior Art] Color images have a much larger amount of data than conventional monochrome binary images, and when storing or transmitting color document images, encoding processing is performed to reduce the amount of data. Data needs to be compressed. In order to obtain a high compression rate, it is necessary to use an encoding method suitable for the characteristics of each image, and various encoding methods have already been proposed for this purpose.

特に、文字と写真が混在する原稿に対しては、画像をカ
ラー画像部とモノクロ画像部とに分け、適応的に符号化
することにより圧縮率を高めるようにしている。
In particular, for documents containing a mixture of text and photographs, the compression ratio is increased by dividing the image into a color image part and a monochrome image part and adaptively encoding them.

例えば、特開昭62−1373号公報に記載された技術
では、入力画像を輝度信号と色度信号とに分離し、この
分離された色度信号量から入力画像がカラー画像か否か
を判別し、カラー画像の揚合は輝度信号と色度信号を符
号化し、カラー画像でない場合は輝度信号のみを符号化
することによって圧縮効率を高めている。
For example, in the technique described in Japanese Patent Application Laid-Open No. 62-1373, an input image is separated into a luminance signal and a chromaticity signal, and it is determined whether the input image is a color image from the amount of the separated chromaticity signals. However, when producing a color image, the luminance signal and chromaticity signal are encoded, and when the image is not a color image, only the luminance signal is encoded to improve compression efficiency.

[発明が解決しようとする課題] しかし、」1記した従来の符号化方法では、白黒文字と
カラー写真が混在するような原稿に対しては効果がある
が、下地に色が付いている原稿に対しては全てカラー画
像として処理するため、高い圧縮率が得られないという
問題があった。
[Problems to be Solved by the Invention] However, the conventional encoding method described in 1. is effective for documents containing a mixture of black and white text and color photographs, but it is effective for documents with a colored background. Since all images are processed as color images, there is a problem in that a high compression ratio cannot be obtained.

本発明の目的は、原稿の下地の色を検出することにより
文字領域と中間調領域とに分離し、文字領域の黒文字は
輝度成分のみを符号化し、色文字は輝度成分と色成分を
符号化し、中間調領域に対しては、従来と同様に輝度成
分と色成分を符号化し、該符号化された画像データを復
号化する画像符号化および復号化方式を提供することに
ある。
The purpose of the present invention is to separate a document into a character area and a halftone area by detecting the background color of the original, encode only the luminance component for black characters in the character area, and encode the luminance component and color component for color characters. , An object of the present invention is to provide an image encoding and decoding method for encoding a luminance component and a color component in a halftone region in the same way as in the past, and decoding the encoded image data.

[課題を解決するための手段] 前記目的を達成するために、請求項(1)記載の発明で
は、カラー画像を所定の領域毎に符号化する画像符号化
方式において、原稿の下地の色を検出する手段と、該検
出された下地の色に従って、入力画像信号の色成分の値
を修正する手段と、該修正された色成分の値から所定の
領域が中間調領域であるか文字領域であるかを判定する
手段と、該判定手段の判定結果に応答して、中間調領域
に対しては輝度成分と色成分を符号化し、文字領域に対
しては輝度成分を符号化する手段とを備えたことを特徴
としている。
[Means for Solving the Problems] In order to achieve the above object, in the invention according to claim (1), in an image encoding method that encodes a color image for each predetermined area, the color of the base of the document is changed. means for detecting, means for correcting a color component value of an input image signal according to the detected background color, and determining whether a predetermined area is a halftone area or a character area based on the corrected color component value. and means for encoding a luminance component and a color component for a halftone area, and encoding a luminance component for a character area, in response to the determination result of the determination means. It is characterized by the fact that it is equipped with

請求項(2)記載の発明では、カラー画像を所定の領域
毎に復号化する画像復号化方式において、符号化された
画像データから下地の色信号を解読する第1の手段と、
所定の領域が中間調領域であるか文字領域であるかを指
定する領域情報を解読する第2の手段と、該第2の手段
の出力に応答して前記所定の領域に対応した復号処理を
選択する手段と、前記第1、第2の手段の出力に応答し
て色信号を再生する手段とを備えたことを特徴としてい
る。
In the invention described in claim (2), in an image decoding method for decoding a color image for each predetermined area, a first means for decoding a base color signal from encoded image data;
a second means for decoding area information specifying whether a predetermined area is a halftone area or a character area; and a decoding process corresponding to the predetermined area in response to the output of the second means. The present invention is characterized in that it comprises means for selecting, and means for reproducing color signals in response to the outputs of the first and second means.

請求項(3)記載の発明では、カラー画像を所定の領域
毎に符号化する画像符号化方式において、一 原稿の下地の色を検出する手段と、該検出された下地の
色に従って、入力画像信号の色成分の値を修正する手段
と、該修正された色成分の値から所定の領域か中間調領
域であるか文字領域であるがを判定する第1の手段と、
輝度成分と色成分がら黒文字を検出する第2の手段と、
該第1の手段の判定結果に応答して、中間調領域に対し
ては輝度成分と色成分を符号化する手段と、該第2の手
段の出力に応答して黒文字領域に対しては輝度成分を符
号化する手段と、nii記第1、第2の手段の出力に応
答して色文字領域に対しては2値化された輝度成分と色
成分を符号化する手段とを備えたことを特徴としている
In the invention described in claim (3), in an image encoding method for encoding a color image for each predetermined area, there is provided a means for detecting the background color of one document, and an input image according to the detected background color. means for correcting the value of a color component of the signal; first means for determining whether the area is a predetermined area, a halftone area, or a character area from the corrected value of the color component;
a second means for detecting black characters from the luminance component and the color component;
means for encoding a luminance component and a color component for a halftone region in response to the determination result of the first means; and a means for encoding a luminance component and a color component for a black text region in response to the output of the second means; and a means for encoding the binarized luminance component and color component for the color character area in response to the outputs of the first and second means described in iii. It is characterized by

請求項(4)記載の発明では、カラー画像を所定の領域
毎に復号化する画像復号化方式において、符号化された
画像データから下地の色信号を解読する第1の手段と、
所定の領域が中間調領域であるか黒文字領域もしくは色
文字領域であるかを指定する領域情報を解読する第2の
手段と、該第2の手段の出力に応答して前記所定の領域
に対応した復号処理を選択する手段と、前記第1、第2
の手段の出力に応答して色信号を再生する手段とを備え
たことを特徴としている。
In the invention described in claim (4), in an image decoding method for decoding a color image for each predetermined area, a first means for decoding a base color signal from encoded image data;
a second means for decoding area information specifying whether a predetermined area is a halftone area, a black text area, or a color text area; and responding to the output of the second means to correspond to the predetermined area. means for selecting a decoding process, and the first and second decoding processes.
and means for reproducing a color signal in response to the output of the means.

請求項(5)記載の発明では、カラー画像データを蓄積
あるいは伝送するために、該カラー画像デタが下地色情
報と領域情報と符号化データによって構成されているこ
とを特徴としている。
The invention according to claim (5) is characterized in that in order to store or transmit color image data, the color image data is composed of base color information, area information, and encoded data.

請求項(6)記載の発明では、前記下地色検出手段が原
稿の下地の色を検出するに要する時間分の人力画像を蓄
積する手段を備えてなることを特徴としている。
The invention as set forth in claim (6) is characterized in that the background color detection means includes means for accumulating human images for the time required to detect the color of the background of the document.

〔作 用〕[For production]

前述した手段によれば、入力された原色信号が2値化部
で2値化され、2値化された原色信号R1、Gl、Bl
が下地色検出部に入力され、下地色検出部では、信号R
1,Gl、Bl毎にヒストグラムを作成する。このヒス
i・グラムと入力された複数ラインの総画素数とを比較
することによって、下地の色を検出し、下地色情報は色
信号生成部に送られる。また、色空間変換部では、六カ
された原色信号を輝度成分と色成分に分解し、この色信
号は色信号生成部に送られ、色信号生成部では、下地色
検出部からの下地色情報を用いて色信号Crl、Cbl
を生成する。この色信号Cry。
According to the above-described means, the input primary color signals are binarized by the binarization section, and the binarized primary color signals R1, Gl, Bl
is input to the background color detection section, and in the background color detection section, the signal R
1. Create a histogram for each Gl and Bl. The background color is detected by comparing this hiss i-gram with the total number of pixels of the input plurality of lines, and the background color information is sent to the color signal generation section. In addition, the color space conversion section separates the six-dimensional primary color signal into a luminance component and a color component, and this color signal is sent to the color signal generation section. Color signals Crl, Cbl using information
generate. This color signal Cry.

Cl) lは領域判定部に送られ、領域判定部ではlブ
ロックについて中間調領域であるか文字領域であるかを
判定する。そして、その判定の結果、ブロックが中間調
領域であれば中間調符号化部か動作して、輝度信号と色
信号Crl、Cblをブロック単位で符号化し、ブロッ
クが文字領域であれば文字領域符号化部か動作して、輝
度信号2値化部で2値化された輝度信号をブロック単位
で符号化する。
Cl) l is sent to the area determination section, and the area determination section determines whether the l block is a halftone area or a character area. As a result of the determination, if the block is a halftone area, the halftone encoding unit operates and encodes the luminance signal and color signals Crl and Cbl in block units, and if the block is a text area, it is coded as a text area code. The converting section operates to encode the luminance signal binarized by the luminance signal binarizing section in units of blocks.

[実施例] 以下、本発明の一実施例を図面を用いて具体的に説明す
る。
[Example] Hereinafter, an example of the present invention will be specifically described using the drawings.

第1図は、本発明の第1の実施例に係るカラ画像符号化
方式のブロック構成図である。図において、1は、外部
から入力されるカラー画像の原色信じr;!、 G、 
 11を所定の閾値で2値化する2値化部、2は、2値
化された原色信号R1,Gl。
FIG. 1 is a block diagram of a color image encoding method according to a first embodiment of the present invention. In the figure, 1 is the primary color belief r;! of a color image input from the outside. , G.
A binarization unit binarizes 11 using a predetermined threshold value, and 2 is a binarized primary color signal R1, Gl.

B1から下地の色を検出する下地色検出部、3は、原色
信号R,G、Bを輝度信号Yと色信号Cr。
A base color detection unit 3 detects the base color from B1 and converts the primary color signals R, G, and B into a luminance signal Y and a color signal Cr.

cbに変換する色空間変換部、4は、輝度信号Yを2値
化する輝度信号2値化部、5は、下地色検出部2の信号
により色信号Crl、Cblを生成する色信号生成部、
6は、生成された色信号Crl。
4 is a luminance signal binarization unit that binarizes the luminance signal Y; 5 is a color signal generation unit that generates color signals Crl and Cbl based on the signal from the base color detection unit 2; ,
6 is a generated color signal CRL.

Cblから文字領域と中間調領域を判定する領域判定部
、7は、領域判定部6からの領域情報に従って中間調の
輝度信号Yと色信号Crl、Cblを符号化する中間調
符号化部、8は、輝度信号2値化部4で2値化された輝
度信号Y1を符号化する文字領域符号化部である。そし
て、ライン9には、下地色検出部2からの下地色情報が
出力され、ラインlOには、中間調符号化部7からの中
間調ブタか出力され、ライン11.12にはそれぞれ領
域情報、文字データが出力され、これらのブタは後述す
る形式に構成されて、伝送あるいは蓄積される。
A region determination section 7 determines a character region and a halftone region from Cbl, and a halftone encoding section 8 encodes a halftone luminance signal Y and color signals Crl and Cbl according to the region information from the region determination section 6. is a character area encoding unit that encodes the luminance signal Y1 binarized by the luminance signal binarization unit 4. Then, the background color information from the background color detection section 2 is outputted to the line 9, the halftone color information from the halftone encoding section 7 is outputted to the line 10, and the area information is outputted to the lines 11 and 12, respectively. , character data is output, and these pigs are configured in the format described below and transmitted or stored.

以」−のように構成された本発明の詳細な説明する。本
実施例では、ます下地色の検出を行う。予め読み取られ
た原稿の複数ライン(例えば、下地色の検出が比較的容
易な原稿のに部の余白部分をスキャンする)の信号を図
示しないバッファメモリから入力する。この入力された
原色信号R,G。
The present invention constructed as follows will be described in detail. In this embodiment, the background color is detected. Signals of a plurality of lines of a document that have been read in advance (for example, a margin portion of the back of the document whose background color is relatively easy to detect) are input from a buffer memory (not shown). These input primary color signals R and G.

Bは2値化部1で2値化され、2値化された原色信号R
1,Gl、Blが下地色検出部2に入力される。
B is binarized by the binarization unit 1, and the binarized primary color signal R
1, Gl, and Bl are input to the base color detection section 2.

下地色検出部2では、信号R1,Gl、Bl毎にヒスト
グラム+((Rl) 、 l((G l) 、 l−I
 (B1)を作成する。このヒストグラム1−((R1
)。
The background color detection unit 2 generates a histogram +((Rl), l((Gl), l-I) for each signal R1, Gl, and Bl.
Create (B1). This histogram 1-((R1
).

1−T (CI)、1−I(Bi)と先のムカされた複
数ラインの総画素数Jとを比較することによって、下地
の色を検出する。即ち、 j f  H(X) /J>閾値T H]]hen  
5(X) else  5(X)=0 となるR1.Gl、Blの色の組み合わせを下地の色と
する。このようにして検出された下地色情報S (R1
)、S (Gl)、S (+31)は色信号生成部5に
送られる。
The background color is detected by comparing 1-T (CI), 1-I (Bi) and the total number of pixels J of the plurality of lines that have been irritated. That is, j f H(X) /J>threshold T H]]hen
5(X) else R1.5(X)=0. The combination of Gl and Bl colors is used as the base color. The background color information S (R1
), S (Gl), and S (+31) are sent to the color signal generation section 5.

一方、色空間変換部3は、人力された原色信号R,G、
Bを例えば次式に示すような輝度成分Yと色成分Cr、
Cbに分解する。
On the other hand, the color space conversion unit 3 inputs manually generated primary color signals R, G,
For example, B is a luminance component Y and a color component Cr as shown in the following equation,
Decomposes into Cb.

Y=0.3R+0.59G+0.11 BCr=0.5
1R−0,43G−0,08BCb=−0,17R−0
,34G+0.51 Bこの分解された色信号は例えば
8×8画素ごとにブロック化され、このうち色信号Cr
、Cbは色信号生成部5に送られる。色信号生成部5で
は、下地色検出部2からの下地色情報S (X)を用い
て次式に示すような計算を行い、色信号C1゜Cblを
生成する。
Y=0.3R+0.59G+0.11 BCr=0.5
1R-0,43G-0,08BCb=-0,17R-0
, 34G+0.51B This separated color signal is divided into blocks of, for example, 8×8 pixels, and among these, the color signal Cr
, Cb are sent to the color signal generation section 5. The color signal generation section 5 uses the background color information S (X) from the background color detection section 2 to perform calculations as shown in the following equation, and generates a color signal C1°Cbl.

Cr1=Cr−0,51S (R1) +〇、43S(
Gl)+o、oss (Bl) Cbl=Cb+O,]]S (R1) +〇、34S(
G I) −0,5]、 ] (B ])なお、一般に
はC=aR+bG+cBとしたとき、CI=C−aS 
(R1)−bS (Gl)−cS(131)となる。
Cr1=Cr-0,51S (R1) +〇,43S(
Gl)+o,oss (Bl) Cbl=Cb+O,]]S (R1) +〇,34S(
G I) -0,5], ] (B ]) In general, when C=aR+bG+cB, CI=C-aS
(R1)-bS (Gl)-cS (131).

この色信号C1,Cblは領域判定部6に送られ、領域
判定部6では先の1ブロック分の色信号Crl、Cbl
の絶対値の総和Scを求め、この総和Scと所定の閾値
Th2とを比較し、該ブロックについて11ft、+]
調領領域あるか文字領域であるかを判定する。すなわち
、 1fSc−Σ(Crlの絶対値+Cblの絶対値))T
h2、 t h e n  中間調領域 else  文字領域 領域判定部6で生成された判定信号は、中間調符号化部
7と文字領域符号化部8に送られ、ブロックが中間調領
域であれば中間調符号化部7が動作し、輝度信号Yと色
信号Crl、Cblをブロック単位で符号化する。この
符号化方式としては、例えば自然静止画像符号化方式の
標準案であるADCT  (Adaptive  Di
screte  Co51ne  Transf。
These color signals C1 and Cbl are sent to the area determination unit 6, where the color signals Crl and Cbl for the previous one block are sent to the area determination unit 6.
Find the sum Sc of the absolute values of Sc, compare this sum Sc with a predetermined threshold Th2, and calculate 11 ft, +] for the block.
Determine whether there is a check area or a character area. That is, 1fSc-Σ(absolute value of Crl+absolute value of Cbl))T
h2, t h e n Halftone region else The determination signal generated by the character region region determination section 6 is sent to the halftone encoding section 7 and the character region encoding section 8, and if the block is in the halftone region, the determination signal is The tone encoding unit 7 operates and encodes the luminance signal Y and color signals Crl and Cbl in units of blocks. As this encoding method, for example, ADCT (Adaptive Di
screte Co51ne Transf.

r・n1er、適用離散コサイン変換)方式を用いる。r·n1er, applied discrete cosine transform) method is used.

他方、ブロックが文字領域であれば文字領域符号化部8
が動作し、輝度信号2値化部4で2値化された輝度信号
Y1をブロック単位で符号化する。
On the other hand, if the block is a character area, the character area encoder 8
operates, and the luminance signal Y1 binarized by the luminance signal binarization section 4 is encoded in units of blocks.

この符号化方式としては、例えばM l−1(Modi
fiedHuffman符号化方式)方式を用いる。
As this encoding method, for example, M l-1 (Modi
Huffman encoding method) is used.

このようにして符号化されたデータは蓄積あるいは伝送
される。
Data encoded in this manner is stored or transmitted.

第2図に符号化のフォーマットを示す。符号化されたデ
ータは、下地色情報21と、領域情報22と、符号化デ
ータ23とから構成されている。
FIG. 2 shows the encoding format. The encoded data includes base color information 21, area information 22, and encoded data 23.

ただし、同じ領域の符号化データが連続するときは、2
番目以降のブロックの領域情報を省略して、符号化デー
タを連続して格納する。
However, when encoded data in the same area is consecutive, 2
The encoded data is stored continuously, omitting the area information of blocks after the block.

第3図は、」−記符号化データを復号するための本発明
のブロック構成図である。
FIG. 3 is a block diagram of the present invention for decoding "-" encoded data.

31は、符号化データから下地色情報を解読する下地色
情報解読部、32は、符号化データがら領域情報を解読
する領域情報解読部、33は、領域情報解読部32が文
字領域であると解読したときに、続いて送られて来るn
ブロワ9分の符号化データを復号して輝度信号Yを再生
する文字領域復号部、34は、領域情報解読部32か中
間調領域であると解読したときに、続いて送られて来る
nブロワ9分の符号化データを復号して、色信号Crl
、Cblと輝度信号Yを再生する中間調領域復号部、3
5は、下地色情報解読部31の解読結果に従って色信号
Cr、Cbを再生する色信号再生部、36は、[1f生
された色信号Cr、Cbと復号された輝度信号Yを色空
間変換してRGB信号を復元する色空間変換部である。
31 is a base color information decoding unit that decodes base color information from encoded data, 32 is an area information decoding unit that decodes area information from encoded data, and 33 is a base color information decoding unit that decodes area information from encoded data. When decrypted, the n that will be sent next
When the area information decoding unit 32 decodes the encoded data for 9 blowers to reproduce the luminance signal Y, the character area decoding unit 34 decodes the coded data for 9 blowers and reproduces the luminance signal Y. Decode the encoded data for 9 minutes to obtain the color signal Crl
, Cbl and a halftone area decoding unit that reproduces the luminance signal Y, 3
5 is a color signal reproducing unit that reproduces the color signals Cr and Cb according to the decoding result of the base color information decoding unit 31; This is a color space conversion unit that restores RGB signals.

符号化データは復号のためにまず下地色情報5(R1)
、S (Gl)、S (Bl)21が下地色情報解読部
31によって解読される。次いで、領域情報22か領域
情報解読部32によって解読され、例えば文字領域であ
れば、ライン37を介して文字領域復号部33を駆動す
るように指示する。
For decoding, the encoded data is first subjected to background color information 5 (R1).
, S (Gl), and S (Bl) 21 are decoded by the base color information decoding section 31. Next, the area information 22 is decoded by the area information decoding section 32, and if it is a character area, for example, an instruction is given to drive the character area decoding section 33 via a line 37.

そして、次の領域情報が入力するまで文字領域復号部3
3は、文字領域の符号化データの復′r′J−(1−記
した例に従えばMH方式の復号)を行う。そして、次の
領域情報か読みだされると、該情報は中間調領域である
ことを指示しているので、ライン38を介した解読部3
2からの指示信号によって、中間調領域復号部34は中
間調領域の復号(上記した例に従えばADCT方式の復
号)を行う。
Then, the character area decoding unit 3 continues until the next area information is input.
3 performs decoding of encoded data in the character area (1--according to the example described, MH method decoding). Then, when the next area information is read out, since the information indicates that it is a halftone area, the decoding unit 3
In response to the instruction signal from 2, the halftone region decoding section 34 performs halftone region decoding (according to the above example, ADCT method decoding).

このような処理を繰り返すことにより復号処理が行われ
る。そして、ライン39を介した解読部31の解読結果
S (X)に従って色信号再生rfll 35は、次式
のように復号されたデータのうち色信号Cr、Cbを再
生する。但し、文字領域については、Cr1=Cbl=
Oとして引算する。
Decoding processing is performed by repeating such processing. Then, according to the decoding result S (X) of the decoding unit 31 via the line 39, the color signal reproducing rfll 35 reproduces the color signals Cr and Cb from the decoded data as shown in the following equation. However, for the character area, Cr1=Cbl=
Subtract as O.

Cr=c rl+o、51 S (Rl) −0,4,
33(Gl)−0,083(Bl) Cb=Cbl−0,178(R1) −0,343(G
l) +0.513 (B l) なお、一般にはC=aR十bG十cBとしたとき、C=
C1+aS (R1)+bS (Gl)+cS(B1)
となる。
Cr=crl+o, 51 S (Rl) -0,4,
33(Gl)-0,083(Bl) Cb=Cbl-0,178(R1) -0,343(G
l) +0.513 (B l) In general, when C=aR + bG + cB, C =
C1+aS (R1)+bS (Gl)+cS(B1)
becomes.

この再生されたC r 、Ci l)と復号された輝度
信号Yを色空間変換部36によって色空間変換してRG
B信号を復元する。
The reproduced C r , C i l) and the decoded luminance signal Y are color space converted by the color space converter 36 and converted into RG
Restore the B signal.

」1記実施例では、外部に設けられたバッファから画像
データを読み込んで下地色を検出した後に符号化を行う
ようにしているが、これを第4図に示す如く、色空間変
換部の前に下地色検出に相当する時間分の読み取り(画
像)データを格納するデイレイバッファを設けるように
構成してもよい。
In the first embodiment, encoding is performed after reading the image data from an external buffer and detecting the background color, but as shown in FIG. A delay buffer may be provided to store read (image) data for a time corresponding to background color detection.

また、符号化のフォーマットとしては、■ブロック単位
毎に領域情報を付加するようにしてもよいし、ブロック
の単位は8×8画素に限定されるものではなく、符号化
方式も他の方式を採用しても良い。更に、原色信号から
輝度信号と色信号への変換式も」1記した実施例に限定
されるものではない。
In addition, as an encoding format, area information may be added for each block, and the block unit is not limited to 8 x 8 pixels, and the encoding method may also be other methods. May be adopted. Further, the conversion formula from the primary color signal to the luminance signal and color signal is not limited to the embodiment described in 1.

第5図は、本発明の第2の実施例に係るカラ画像符号化
方式のブロック構成図である。この第2の実施例では、
1)1j記第1の実施例の構成に、更に輝度信号Yと色
信号Cr、Cbから黒文字を検出する黒文字判定部51
と、2値化された輝度信号Y1と色信号Crl、Cbl
を符号化する色文字領域符号化部52を付加し、実施例
1の文字領域符号化部8を黒文字領域符号化部53に置
き換えた構成を特徴としている。その他の構成要素は実
施例1のものと同様のものである。
FIG. 5 is a block diagram of a color image encoding method according to a second embodiment of the present invention. In this second example,
1) In addition to the configuration of the first embodiment described in 1j, a black character determination unit 51 is added to detect black characters from the luminance signal Y and color signals Cr and Cb.
, the binarized luminance signal Y1 and the color signals Crl and Cbl
The present invention is characterized by the addition of a color character area encoding section 52 for encoding, and replacing the character area encoding section 8 of the first embodiment with a black character area encoding section 53. The other components are the same as those in the first embodiment.

以上のように構成された本発明の第2の実施例の動作に
ついて以下説明するが、2値化部l、−ド地色検出部2
、色空間変換部3、輝度信号2値化部4、色信号生成部
5、領域判定部6、中間調符号化部7は前述した実施例
1と同様に機能するので、その下地色検出処理、色空間
変換処理、色信号生成処理、領域判定処理動作の説明を
省略する。
The operation of the second embodiment of the present invention configured as described above will be explained below.
, the color space conversion unit 3, the luminance signal binarization unit 4, the color signal generation unit 5, the area determination unit 6, and the halftone encoding unit 7 function in the same manner as in the first embodiment described above, so that the background color detection processing , color space conversion processing, color signal generation processing, and area determination processing operations will be omitted.

黒文字判定部51は、色空間変換部3からの輝度信号Y
と色信号Cr、Cbを所定の閾値(Th3、Th4.T
h5)と比較し、画素毎に黒文字か否かを判定する。す
なわち、 i f  (Y>i’ h 3 &CI・<’「h 4
 &Cb<T h 5 )t h e n  k = 
l  黒文字else  k=0 ここて&は論理積を表す。
The black character determination unit 51 receives the luminance signal Y from the color space conversion unit 3.
and color signals Cr, Cb to predetermined thresholds (Th3, Th4.T
h5) to determine whether each pixel is a black character. That is, if (Y>i' h 3 &CI・<'h 4
&Cb<T h 5 )t h e n k =
l Black text else k=0 Here & represents logical product.

この処理を1ブロツクについて行い、黒文字の数が所定
の閑値以」二あるか否かによって黒文字領域であるか否
かを判定する。すなわち、1fK=  Σ k>ThG t、 h e n  黒文字領域 else  黒文字領域以外 と判定する。
This process is performed for one block, and it is determined whether the block is a black character area or not based on whether the number of black characters is greater than or equal to a predetermined value. That is, 1fK=Σ k>ThG t, h e n black text area else It is determined that the area is other than the black text area.

領域判定部6と黒文字判定部51で生成された判定信号
は、中間調符号化部7と色文字領域符号化部52と黒文
字領域符号化部53に送られ、ブロックが中間調領域で
あれば中間調符号化部7が動作し、輝度信号Yと色信号
Crl、Cblをブロックjii位で符号化する。この
符シ)化方式としては、例えば八r’) CT方式を用
いる。
The determination signal generated by the area determination unit 6 and the black character determination unit 51 is sent to the halftone encoding unit 7, the color character area encoding unit 52, and the black character area encoding unit 53. The halftone encoding unit 7 operates and encodes the luminance signal Y and color signals Crl and Cbl in block jii. As this coding method, for example, the 8r') CT method is used.

他方、ブロックが文字領域であってがっ黒文字領域であ
れば、黒文字領域符号化@53が動作し、輝度信号・2
値化部4で2値化された輝度信号Y1をブロック単位で
符号化する。この符号化方式としては、例えばM l−
1力式を用いる。
On the other hand, if the block is a character area and is a black character area, the black character area encoding @53 operates and the luminance signal 2
The binarized luminance signal Y1 is encoded in units of blocks by the digitizing unit 4. As this encoding method, for example, M l-
Use the 1 force formula.

また、文字領域であって黒文字領域でなければ、すなわ
ち、色文字領域であれば色文字領域符号化部52が動作
し、輝度信号Y1と色信号Cr1.Cb Iをブロック
単位で符号化する。この符号化方式としては、輝度信号
Y1については例えばMH方式、色信号Crl、Cbl
については例えばADCT方式を用いる。
Further, if it is a character area but not a black character area, that is, if it is a color character area, the color character area encoding unit 52 operates, and the luminance signal Y1 and the color signal Cr1. Cb I is encoded block by block. As for this encoding method, for example, the MH method is used for the luminance signal Y1, and the color signals Crl and Cbl are used.
For example, the ADCT method is used.

このようにして符号化されたデータは実施例1と同様に
蓄積あるいは伝送される。また、その符号化のフォーマ
ットも実施例1と同様である。ただし、領域情報は中間
調領域情報と黒文字領域情報と色文字領域情報の3種類
となる。
The data encoded in this manner is stored or transmitted in the same manner as in the first embodiment. Further, the encoding format is also the same as in the first embodiment. However, there are three types of area information: halftone area information, black text area information, and color text area information.

第6図は、−1−記符号化データを復号するための本発
明のブロック構成図であり、実施例1の構成に更に色文
字領域情報部61か伺加され、実施例1の文字領域復号
部を黒文字領域復号部62に置換した構成となっていて
、他の部分は実施例]のものと同一である。
FIG. 6 is a block configuration diagram of the present invention for decoding -1- encoded data, in which a color character area information section 61 is further added to the configuration of the first embodiment, and The decoding section is replaced with a black character area decoding section 62, and the other parts are the same as those in the embodiment].

符号化データは復号のためにまず下地色情報5(R1)
、S (G1.)、S <Bl)が下地色情報解読部3
1によって解読され、次いで、領域情報が領域情報解読
部32によって解読され、例えば黒文字領域であれば次
の領域情報が入力するまで黒文字領域復号部62は黒文
字領域の復号(、l〕記した例に従えばM +−1方式
の復号)を行う。そして、次の領域情報か読みだされ、
該情報が色文字領域であることを指示していれば、色文
字領域の符号化データは色文字領域復号部61で復号さ
れ、中間調領域であれば、中間調領域復号部34は中間
調領域の符号化データの復号(ヒ記した例に従えばAD
CT方式の復号)を行う。
For decoding, the encoded data is first subjected to background color information 5 (R1).
, S (G1.), S < Bl) are the base color information decoding section 3
1, and then the area information is decoded by the area information decoding unit 32. For example, if it is a black text area, the black text area decoding unit 62 decodes the black text area (, l] until the next area information is input. According to the following, M+-1 method decoding) is performed. Then, the next area information is read out,
If the information indicates that it is a color text area, the encoded data of the color text area is decoded by the color text area decoding unit 61, and if it is a halftone area, the halftone area decoding unit 34 decodes the coded data of the color text area. Decoding of the encoded data of the area (according to the example described above, AD
CT method decoding).

この処理を繰り返すことにより復号処理が行われる。そ
して、解読部31の解読結果に従って色信号再生部35
は、次式のように復号されたブタのうち魚信>3Cr、
Cbを再生する。但し、黒文字領域については、Cr1
=Cbl=Oとして計算する。また、文字領域の符号化
時に使用した輝度信号Y1を復号時に、輝度信号Yとし
て使用する。
The decoding process is performed by repeating this process. Then, according to the decoding result of the decoding unit 31, the color signal reproducing unit 35
is the fish signal > 3Cr among the pigs decoded as follows:
Play Cb. However, for the black character area, Cr1
Calculate as =Cbl=O. Furthermore, the luminance signal Y1 used when encoding the character area is used as the luminance signal Y during decoding.

Y=Y] Cr=Crl+0.51S (R1)−0,433(G
l) −0,083(Bl) Cb=Cbl−0,17S (R1)−0,34S(G
 ]) +0.513 (B l)なお、一般にはC=
 a R+ b G +c Bとしたとき、C=CI+
aS (R1)+bS (Gl)+cS(Bl)となる
Y=Y] Cr=Crl+0.51S (R1)-0,433(G
l) -0,083(Bl) Cb=Cbl-0,17S (R1)-0,34S(G
]) +0.513 (B l) In general, C=
a R+ b G +c When B, C=CI+
aS (R1) + bS (Gl) + cS (Bl).

この再生されたCr、Cbと復号された輝度信号Yを色
空間変換部36によって色空間変換してRGB信号を復
元する。
The reproduced Cr and Cb and the decoded luminance signal Y are subjected to color space conversion by a color space conversion unit 36 to restore RGB signals.

なお、符号化のフォーマットとしては、1ブロック単位
毎に領域情報を付加するようにしてもよいし、ブロック
の単位は8×8画素に限定されるものではなく、符号化
方式も他の方式を採用しても良い。更に、原色信号から
輝度信号と色信号への変換式も」1記した実施例に限定
されるものではない。
Note that the encoding format may be such that area information is added to each block, and the block unit is not limited to 8 x 8 pixels, and other encoding methods may be used. May be adopted. Further, the conversion formula from the primary color signal to the luminance signal and color signal is not limited to the embodiment described in 1.

〔発明の効果] 以」1、説明したように、本発明によれば、原稿の下地
に色が着色されていても、文字部分が2値の符号化方式
によって符号化されるので、従来の符号化方式に比べて
高い圧縮率の符号化方式が得られる。また、中間調とし
て符号化処理する従来のものに比べて、文字のエツジ部
分が鮮明に再現されるので、文字部分の品質が格段に向
上する。
[Effects of the Invention] 1. As explained above, according to the present invention, even if the base of the document is colored, the character part is encoded using a binary encoding method, which is different from the conventional method. An encoding method with a higher compression rate than other encoding methods can be obtained. Furthermore, compared to the conventional method in which encoding is performed as halftones, the edge portions of characters are reproduced more clearly, so the quality of the character portions is significantly improved.

更に、色文字領域の色情報か失われないので、色文字部
分か高品質に再現される。
Furthermore, since the color information in the color text area is not lost, the color text area can be reproduced with high quality.

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

第1図は本発明の第1の実施例に係るカラー画像符号化
方式のブロック構成図、第2図は本発明の符号化のフォ
ーマットを示す図、第3図は符号化データを復号するた
めの本発明のブロック構成図、第4図はデイレイバッフ
ァを設けた本発明の他の実施例のブロック構成図、第5
図は本発明の第2の実施例に係るカラー画像符号化方式
のブロック構成図、第6図は符号化データを復号するた
めの本発明の第2の実施例のブロック構成図である。 2値化部、  2・・・下地色検出部、色空間変換部、
 4 ・輝度信号2値化部、色信号生成部、  6・・
領域判定部、中間調符号化部、8・・文字領域符号化部
、黒文字判定部、 ・色文字領域符号化部、 黒文字領域符号化部、 色文字領域復号部、 62 ・黒文字領域復号部。
FIG. 1 is a block diagram of a color image encoding method according to the first embodiment of the present invention, FIG. 2 is a diagram showing the encoding format of the present invention, and FIG. 3 is a diagram for decoding encoded data. FIG. 4 is a block diagram of another embodiment of the present invention provided with a delay buffer, and FIG.
FIG. 6 is a block diagram of a color image encoding system according to a second embodiment of the present invention, and FIG. 6 is a block diagram of a second embodiment of the present invention for decoding encoded data. Binarization unit, 2... base color detection unit, color space conversion unit,
4 - Luminance signal binarization section, color signal generation section, 6...
Area determining unit, halftone encoding unit, 8... character area encoding unit, black character determining unit, - color character area encoding unit, black character area encoding unit, color character area decoding unit, 62 - black character area decoding unit.

Claims (5)

【特許請求の範囲】[Claims] (1)カラー画像を所定の領域毎に符号化する画像符号
化方式において、原稿の下地の色を検出する手段と、該
検出された下地の色に従って、入力画像信号の色成分の
値を修正する手段と、該修正された色成分の値から所定
の領域が中間調領域であるか文字領域であるかを判定す
る手段と、該判定手段の判定結果に応答して、中間調領
域に対しては輝度成分と色成分を符号化し、文字領域に
対しては輝度成分を符号化する手段とを備えたことを特
徴とする画像符号化方式。
(1) In an image encoding method that encodes a color image for each predetermined area, there is a means for detecting the background color of the document, and the value of the color component of the input image signal is corrected according to the detected background color. means for determining whether a predetermined area is a halftone area or a character area based on the corrected color component values; What is claimed is: 1. An image encoding method characterized by comprising means for encoding a luminance component and a color component for a text area, and encoding a luminance component for a character area.
(2)カラー画像を所定の領域毎に復号化する画像復号
化方式において、符号化された画像データから下地の色
信号を解読する第1の手段と、所定の領域が中間調領域
であるか文字領域であるかを指定する領域情報を解読す
る第2の手段と、該第2の手段の出力に応答して前記所
定の領域に対応した復号処理を選択する手段と、前記第
1、第2の手段の出力に応答して色信号を再生する手段
とを備えたことを特徴とする画像復号化方式。
(2) In an image decoding method that decodes a color image for each predetermined region, the first means for decoding the underlying color signal from the encoded image data and whether the predetermined region is a halftone region or not. a second means for decoding area information specifying whether it is a character area; a means for selecting a decoding process corresponding to the predetermined area in response to the output of the second means; 2. An image decoding system comprising means for reproducing a color signal in response to the output of the means of item 2.
(3)カラー画像を所定の領域毎に符号化する画像符号
化方式において、原稿の下地の色を検出する手段と、該
検出された下地の色に従って、入力画像信号の色成分の
値を修正する手段と、該修正された色成分の値から所定
の領域が中間調領域であるか文字領域であるかを判定す
る第1の手段と、輝度成分と色成分から黒文字を検出す
る第2の手段と、該第1の手段の判定結果に応答して、
中間調領域に対しては輝度成分と色成分を符号化する手
段と、該第2の手段の出力に応答して黒文字領域に対し
ては輝度成分を符号化する手段と、前記第1、第2の手
段の出力に応答して色文字領域に対しては2値化された
輝度成分と色成分を符号化する手段とを備えたことを特
徴とする画像符号化方式。
(3) In an image encoding method that encodes a color image for each predetermined area, there is a means for detecting the background color of the document, and the value of the color component of the input image signal is corrected according to the detected background color. a first means for determining whether a predetermined area is a halftone area or a character area from the corrected color component values; and a second means for detecting black characters from the luminance component and the color component. means, and in response to the determination result of the first means,
means for encoding a luminance component and a color component for a halftone region; means for encoding a luminance component for a black character region in response to the output of the second means; 2. An image encoding system characterized by comprising means for encoding binarized luminance components and color components for a color character area in response to the output of the means of item 2.
(4)カラー画像を所定の領域毎に復号化する画像復号
化方式において、符号化された画像データから下地の色
信号を解読する第1の手段と、所定の領域が中間調領域
であるか黒文字領域もしくは色文字領域であるかを指定
する領域情報を解読する第2の手段と、該第2の手段の
出力に応答して前記所定の領域に対応した復号処理を選
択する手段と、前記第1、第2の手段の出力に応答して
色信号を再生する手段とを備えたことを特徴とする画像
復号化方式。
(4) In an image decoding method that decodes a color image for each predetermined region, the first means for decoding the underlying color signal from the encoded image data and whether the predetermined region is a halftone region or not. a second means for decoding area information specifying whether it is a black text area or a color text area; a means for selecting a decoding process corresponding to the predetermined area in response to the output of the second means; An image decoding system comprising means for reproducing a color signal in response to the outputs of the first and second means.
(5)カラー画像データを蓄積あるいは伝送するために
、該カラー画像データが下地色情報と領域情報と符号化
データによって構成されていることを特徴とする画像符
号化方式。(6)前記下地色検出手段が原稿の下地の色
を検出するに要する時間分の入力画像を蓄積する手段を
備えてなることを特徴とする請求項(1)記載の画像符
号化方式。
(5) An image encoding method for storing or transmitting color image data, characterized in that the color image data is composed of base color information, area information, and encoded data. (6) The image encoding method according to claim (1), characterized in that the background color detection means comprises means for accumulating input images for the time required for detecting the color of the background of the document.
JP2266054A 1990-10-03 1990-10-03 Picture coding and decoding system Pending JPH04142879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2266054A JPH04142879A (en) 1990-10-03 1990-10-03 Picture coding and decoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2266054A JPH04142879A (en) 1990-10-03 1990-10-03 Picture coding and decoding system

Publications (1)

Publication Number Publication Date
JPH04142879A true JPH04142879A (en) 1992-05-15

Family

ID=17425742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2266054A Pending JPH04142879A (en) 1990-10-03 1990-10-03 Picture coding and decoding system

Country Status (1)

Country Link
JP (1) JPH04142879A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005229622A (en) * 2004-02-12 2005-08-25 Xerox Corp Image processing method and image processing apparatus
JP2005244736A (en) * 2004-02-27 2005-09-08 Seiko Epson Corp Image processing system and image processing method
US7646517B2 (en) 2004-02-27 2010-01-12 Seiko Epson Corporation Image processing system and image processing method
US8023145B2 (en) 2004-02-27 2011-09-20 Seiko Epson Corporation Image processing system and image processing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005229622A (en) * 2004-02-12 2005-08-25 Xerox Corp Image processing method and image processing apparatus
JP4688515B2 (en) * 2004-02-12 2011-05-25 ゼロックス コーポレイション Image processing method and image processing apparatus
JP2005244736A (en) * 2004-02-27 2005-09-08 Seiko Epson Corp Image processing system and image processing method
US7646517B2 (en) 2004-02-27 2010-01-12 Seiko Epson Corporation Image processing system and image processing method
US8023145B2 (en) 2004-02-27 2011-09-20 Seiko Epson Corporation Image processing system and image processing method

Similar Documents

Publication Publication Date Title
JPS6318777A (en) Dither signal coding/decoding processing method
JPH04142879A (en) Picture coding and decoding system
US7298894B2 (en) Color image conversion method and system for reducing color image data size
JPH05176180A (en) Coding method for still natural picture with mixed existence of binary picture
JPS621373A (en) Picture encoding system
WO2000018133A1 (en) Encoding device and method, and decoding device and method
JP2925047B2 (en) Data compression device and data decompression device
JPH01161993A (en) Coding system for color picture information
JP2559726B2 (en) Color image processor
JPH08298589A (en) Image processor of photograph/document mixed image
JPS63256080A (en) Decoder for block coding
JPS63190474A (en) Color picture data coder
JP2629239B2 (en) Decoding device and decoding method
JPH06113276A (en) Reception/reproduction device for digital picture signal
JPS5947916B2 (en) Color image encoding processing method
JP2910204B2 (en) Decoding device and decoding method
JP3259989B2 (en) Binary and multi-valued mixed coded image data restoration method and apparatus
JP3330308B2 (en) Color image information encoding processing method
JP3340015B2 (en) Image data decoding device and decoding method
JP3340006B2 (en) Image processing device
JP2995740B2 (en) Facsimile image density converter
JPH0342968A (en) Color picture information encoding system
JPH06315143A (en) Image processor
JPH05328143A (en) Color piclture coding device
JPH0795420A (en) Image data compression method