JPH04139960A - Picture coder - Google Patents

Picture coder

Info

Publication number
JPH04139960A
JPH04139960A JP2262798A JP26279890A JPH04139960A JP H04139960 A JPH04139960 A JP H04139960A JP 2262798 A JP2262798 A JP 2262798A JP 26279890 A JP26279890 A JP 26279890A JP H04139960 A JPH04139960 A JP H04139960A
Authority
JP
Japan
Prior art keywords
color
signal
encoding
bit
image
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
JP2262798A
Other languages
Japanese (ja)
Inventor
Akihiro Katayama
昭宏 片山
Yasuhiko Yasuda
安田 靖彦
Yuichi Uchio
裕一 内尾
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 JP2262798A priority Critical patent/JPH04139960A/en
Priority to AT91300917T priority patent/ATE137377T1/en
Priority to DE69118939T priority patent/DE69118939T2/en
Priority to EP91300917A priority patent/EP0441586B1/en
Publication of JPH04139960A publication Critical patent/JPH04139960A/en
Priority to US08/173,863 priority patent/US5361147A/en
Priority to US08/289,225 priority patent/US5668646A/en
Priority to US08/811,286 priority patent/US5909505A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the picture quality and to enhance a coding efficiency by applying different coding to a line drawing part in plural colors extracted by an extraction means and other part than the line drawing part. CONSTITUTION:A signal output device 92 is configurated to be a shift register, receives a parallel 7-bit input signal 211 and outputs a serial signal in one bit each from the MSB. The output is a binary series signal D203. The signal output device 92 terminates a color signal of one picture element when the binary series signal is 1 or seven of Os are outputted and receives a succeeding input data. Moreover, the signal output device 92 outputs a signal Bt204 representing to which order bit of the binary series the bit outputted at present corresponds. Thus, when a 3-bit color character discrimination signal is subjected to binary series conversion and coded to 1-bit serial signal, the coding is implemented while preserving the color correlation and the coding efficiency is enhanced without separate coding of a 3-bit signal having correlation.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、カラー画像中の線画部と自然画像部を分離し
て符号化する画像符号化装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image encoding device that separates and encodes a line drawing part and a natural image part in a color image.

[従来の技術] 従来、カラー画像を符号化する方法として、画像をブロ
ックに分割し、直交変換を施した後、その係数を量子化
・符号化するものが知られていた。
[Prior Art] Conventionally, as a method of encoding a color image, a method has been known in which the image is divided into blocks, orthogonal transformation is performed, and then the coefficients are quantized and encoded.

ところが、上記従来例では、直交変換後の係数を量子化
するため、高周波成分が失われ、エツジ部でリンギング
(Ringing)を起こし、原稿の文字部の品位が低
下していた。
However, in the above-mentioned conventional example, since the coefficients after orthogonal transformation are quantized, high frequency components are lost, ringing occurs at the edges, and the quality of the text portion of the document is degraded.

また、低ビツトレートで符号化する場合にブロックとブ
ロックの境界においてブロック歪を生じ、文字のアウト
ラインが見苦しくなっていた。
Furthermore, when encoding at a low bit rate, block distortion occurs at the boundaries between blocks, making the outlines of characters unsightly.

これに対し、最も使用頻度高い黒文字の品位を向上させ
るために、黒文字部とそれ以外の部分を分離して符号化
する技術が本出願人により提案されている。
On the other hand, in order to improve the quality of black characters, which are the most frequently used characters, the present applicant has proposed a technique in which black characters and other parts are separated and encoded.

しかしながら、上記技術では、原稿の特定の1色のみ抽
出する様に構成されていたため、例えば原稿中に複数色
の色文字が存在する場合については改善の余地があった
However, since the above technique is configured to extract only one specific color of the original, there is room for improvement when, for example, there are characters in multiple colors in the original.

そこで、本発明は、かかる従来技術の欠点を除去し、画
像の品位を良好に保つことができ、しかも符号化効率の
良い画像符号化装置を提供することを目的とする。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide an image encoding device that can eliminate the drawbacks of the prior art, maintain good image quality, and has high encoding efficiency.

[課題を解決するための手段及び作用]上記目的を解決
するため本発明の画像符号化装置は、入力画像データの
複数色の線画部を抽出する抽出手段と、前記抽出手段に
より抽出された複数色の線画部と該線画部以外の部分に
対して異なる符号化を行う符号化手段とを有することを
特徴とする。
[Means and operations for solving the problem] In order to solve the above object, the image encoding device of the present invention includes an extraction means for extracting a plurality of color line drawing parts of input image data, and a plurality of lines extracted by the extraction means. The present invention is characterized by having an encoding means for performing different encoding on a color line drawing portion and a portion other than the line drawing portion.

上記構成において、前記抽出手段は入力画像データの複
数色の線画部を抽出し、前記符号化手段は前記抽出手段
により抽出された複数色の線画部と該線画部以外の部分
に対して異なる符号化を行う。
In the above configuration, the extraction means extracts a multi-color line drawing part of the input image data, and the encoding means codes different codes for the multi-color line drawing part extracted by the extraction means and parts other than the line drawing part. make a change.

[実施例コ 以下図面を用いて本発明の好適な実施例を説明する。[Example code] Preferred embodiments of the present invention will be described below with reference to the drawings.

策」4ど(圧胴 第1図は、本発明の第1の実施例の画像符号化装置の全
体構成を示す図である。
4. Impression cylinder FIG. 1 is a diagram showing the overall configuration of an image encoding apparatus according to a first embodiment of the present invention.

第1図おいて、1は原稿を表す画像信号を入力する画像
入力部であり、CCDラインセンサーにより原稿を走査
し、画素毎にR(レッド)、G(グリーン)、B(ブル
ー)各々8ビツトの色成分信号を出力するイメージセン
サ−により構成される。2はエツジ検出部であり、後述
の方法により原稿画像の高周波成分の部分を検出する。
In FIG. 1, reference numeral 1 denotes an image input unit that inputs an image signal representing a document, which scans the document with a CCD line sensor, and scans the document by a CCD line sensor. It consists of an image sensor that outputs bit color component signals. Reference numeral 2 denotes an edge detection section, which detects high frequency component portions of the original image by a method described later.

3は色検出部であり、所定の色成分の画素を検出する。3 is a color detection unit that detects pixels of a predetermined color component.

4は色文字判定部であり、エツジ部かつ所定の色成分の
画素を判定する。5は2値系列変換部であり、複数色を
表す画素データを算術符号化に適した2値系列信号に変
換する。6は算術符号化部であり、2値系列信号を動的
算術符号化により符号化する。7は色文字除去部であり
、色文字と判定された画素のデータをその画素の属する
ブロックの平均値データで置換する。8は直交変換部で
あり、ブロック毎にDCT (Di 5crete  
Co51ne  Transform)を行い、更にハ
フマン符号化を行う、いわゆるADCT方式の符号化を
行う。9は符号データ送信部であり、算術符号化部6及
び直交変換部8の出力を統合し、送信すべき符号データ
を生成する。
Reference numeral 4 denotes a color character determination section, which determines pixels of edge portions and predetermined color components. Reference numeral 5 denotes a binary series conversion unit, which converts pixel data representing a plurality of colors into a binary series signal suitable for arithmetic encoding. 6 is an arithmetic encoding unit which encodes the binary sequence signal by dynamic arithmetic encoding. Reference numeral 7 denotes a color character removal unit, which replaces the data of a pixel determined to be a color character with the average value data of the block to which the pixel belongs. 8 is an orthogonal transform unit, which performs DCT (Di 5crete
Co51ne Transform) and further Huffman encoding, so-called ADCT encoding. Reference numeral 9 denotes a code data transmitter, which integrates the outputs of the arithmetic encoder 6 and the orthogonal transformer 8 to generate code data to be transmitted.

10は符号データ受信部であり、受信した符号データを
算術符号とハフマン符号に分離する。11は逆算術符号
化部であり、算術符号を復号化し色文字データを出力す
る。12は逆直交変換部であり、ハフマン復号化、逆直
交変換を行い、多値画像データを出力する。13は平滑
化部であり復号化された画像のブロック歪みを除去すべ
く、平滑化を行う。14は合成部であり色文字と多値画
像データを合成し、再生すべき画像データを出力する。
10 is a code data receiving unit which separates the received code data into an arithmetic code and a Huffman code. Reference numeral 11 denotes an inverse arithmetic encoding unit, which decodes the arithmetic code and outputs color character data. 12 is an inverse orthogonal transform unit that performs Huffman decoding and inverse orthogonal transform, and outputs multivalued image data. A smoothing unit 13 performs smoothing to remove block distortion of the decoded image. Reference numeral 14 denotes a synthesizing section which synthesizes color characters and multivalued image data and outputs image data to be reproduced.

15は画像出力部であり、画像データを可視画像形成す
る。
Reference numeral 15 denotes an image output section, which forms a visible image from the image data.

以下各部について説明する。Each part will be explained below.

〈エツジ検出部2〉 エツジ検出部2においては、注目画素Xに対して、第2
図に示す様に周辺画素A、B、C,Dとのあいだで以下
に示す様な演算を行い、RGB空間における2点間の距
離を算出し、画像中のエツジを検出する。即ち、いま注
目画素及び周辺画素の画像データをそれぞれ(Xr、X
g、Xb)、(Ar、Ag、Ab)とすると、 S= ((Xr−Ar) 2+ (Xg−Ag) 2(
Xb−Ab) 2)”” ・・・ (1)S>THI 
(=100)  ・・・・・・ (2)を満たすとき、
XとAとの間にはエツジがあると判定する。
<Edge detection unit 2> In the edge detection unit 2, the second
As shown in the figure, the following calculations are performed between surrounding pixels A, B, C, and D to calculate the distance between two points in the RGB space and detect edges in the image. That is, the image data of the current pixel of interest and surrounding pixels are respectively (Xr,
g, Xb), (Ar, Ag, Ab), then S= ((Xr-Ar) 2+ (Xg-Ag) 2(
Xb-Ab) 2)”” ... (1) S>THI
(=100) ...... When (2) is satisfied,
It is determined that there is an edge between X and A.

同様にして、B、C,Dとの間においてもエツジの有無
を判定し、A、B、C,Dのいずれか1つでもエツジと
判定されれば、注目画素Xはエツジであると判定する。
Similarly, the presence or absence of an edge is determined between B, C, and D, and if any one of A, B, C, and D is determined to be an edge, the pixel of interest X is determined to be an edge. do.

この様に、注目画素と周辺画素との3次元の色空間上の
距離を算出することにより、エツジの有無を判定するの
で、例えば、同じ明度で色相や彩原が異なる色エツジも
判定することができる。
In this way, the presence or absence of an edge is determined by calculating the distance in the three-dimensional color space between the pixel of interest and the surrounding pixels, so for example, it is possible to determine the presence or absence of an edge with the same brightness but with different hues or color sources. I can do it.

従って、本発明において色文字を検出するうえで極めて
有効である。
Therefore, the present invention is extremely effective in detecting colored characters.

上記画素ごとのエツジ判定に加え、後述の色文い、その
判定信号も出力する。
In addition to the edge determination for each pixel, the color pattern and its determination signal, which will be described later, are also output.

なお、周辺画素の取り方は上述の例に限らず、例えば周
辺8画素をとってもよい。
Note that the method of selecting peripheral pixels is not limited to the above-mentioned example, and for example, eight peripheral pixels may be selected.

また、例えば、A、B、C,Dの画像データの平均値を
算出し、その平均値と画素Xとの間で上記演算を行なっ
てもよい。
Alternatively, for example, the average value of the image data of A, B, C, and D may be calculated, and the above calculation may be performed between the average value and the pixel X.

〈色検出部3〉 色検出部3は、下記の式により所定の複数の限定色カラ
ーの検出を行なう。いま、注目画素Xの画像データを(
r、g、b)とすると、r、g  b<thl  かつ r−g  、  g−b  、  b−r  <th3
・ ・ ・ (3) のとき、注目画素XをK(黒)と判定する。
<Color Detection Unit 3> The color detection unit 3 detects a plurality of predetermined limited colors using the following equation. Now, the image data of the pixel of interest X (
r, g, b), then r, g b < thl and r-g, g-b, br < th3
・ ・ ・ When (3), the pixel of interest X is determined to be K (black).

同様にして、 r>th2  かつ g。Similarly, r>th2 and g.

b<thl かつ g−b   <th3 のとき、X=R(赤)、 g>th2  かつ r b<thl かつ r−b<th3 のとき、X=C(緑)、 b>th2  かつ r g<th  1 かつ r−g<th3 のとき、X=B (青)、 r、g>th2  かつ b<thl かつ r−g<th3 のとき、X=Y (イエロ r  b>th2  かつ )、 g<thl かつ r−b<th3 のとき、X=M (マゼンタ)、 g+ b>th2  かつ r<thl  かつg−b
<th3 ・ ・ ・ (9) のとき、X=C(シアン)、 として色検出を行なう。
When b<thl and g-b <th3, X=R (red), when g>th2 and r b<thl and r-b<th3, X=C (green), b>th2 and r g< When th 1 and r-g<th3, X=B (blue), when r, g>th2 and b<thl and r-g<th3, X=Y (yellow r b>th2 and), g< When thl and r-b<th3, X=M (magenta), g+ b>th2 and r<thl and g-b
<th3 . . . (9) When X=C (cyan), color detection is performed.

なお、ここでthl、th2.th3は所定の閾値であ
り、例えば、 thl=50.th2=205.、th3=30とする
と、検出結果が良好である。
Note that here, thl, th2. th3 is a predetermined threshold value, for example, thl=50. th2=205. , th3=30, the detection result is good.

色検出信号は(R,G、B)の3ビツトで表され、各検
出色とR,G、Bの値との対応関係は第3図に示す通り
である。
The color detection signal is represented by three bits (R, G, B), and the correspondence between each detected color and the R, G, and B values is as shown in FIG.

〈色文字判定部4〉 色文字判定部4は、エツジ検出部2によりエツジに該当
する画素が存在すると判定されたブロック内の画素であ
って、色検出部3により上記式(3)〜(9)のいずれ
かを満たす画素を色文字と判定する。
<Color character determination unit 4> The color character determination unit 4 is a pixel in a block where the edge detection unit 2 has determined that there is a pixel corresponding to an edge, and the color detection unit 3 calculates the pixels according to the above equations (3) to (3). A pixel that satisfies any of the conditions 9) is determined to be a color character.

く2値系列変換部5〉 2値系列変換部5は、3ビツトの色文字判定信号により
表される8色の色信号を第3図に示す2値系列信号に変
換する。
Binary Series Conversion Unit 5> The binary series conversion unit 5 converts eight color signals represented by 3-bit color character determination signals into binary sequence signals shown in FIG.

2値系列変換部5のブロック図を第4図に示す。入力デ
ータ200〜202はROM等で構成される変換テーブ
ル91で、画素ごとに第3図に示した最大7ビツトの信
号212に変換され、信号出力器92に入力される。こ
こで、変換テーブル91に、出現頻度の多い色に短いビ
ット長を割り当てられるように、複数のROMが用意し
、コントロール信号300に応じて複数のROMを選択
できる様にしてもよい。
A block diagram of the binary sequence converter 5 is shown in FIG. Input data 200 to 202 are converted for each pixel by a conversion table 91 comprised of a ROM or the like into a maximum 7-bit signal 212 shown in FIG. 3, and input to a signal output device 92. Here, a plurality of ROMs may be prepared in the conversion table 91 so that short bit lengths can be assigned to colors that appear frequently, and the plurality of ROMs may be selected according to the control signal 300.

信号出力器92はシフトレジスタの構成をとっており、
7ビツトの入力信号212が並列に人力され、MSBか
ら1ビツトずつシリアルに出力される。これが2値系列
信号D203である。信号出力器92は2値系列信号が
1になったとき、またはOを7個出力したとき、1画素
の色信号の出力を終了させ、次の入力データを受は取る
。また、信号出力器92からは現在出力しているbit
が2値系列信号の何bit目かを表す信号Bt204が
出力される。
The signal output device 92 has a shift register configuration,
A 7-bit input signal 212 is input in parallel and serially output bit by bit starting from the MSB. This is the binary sequence signal D203. When the binary series signal becomes 1 or when the signal output device 92 outputs 7 O's, the signal output device 92 finishes outputting the color signal of one pixel and receives the next input data. In addition, the bit currently output from the signal output device 92
A signal Bt204 representing the number of bits in the binary sequence signal is output.

このように、3ビツトの色文字判定信号を2値系列変換
して、1ビツトのシリアル信号として符号化することに
より、互いに相関性をもった3ビツトの信号を別々に符
号化することなく、色相関性を保存したままで符号化が
できる。しかも、例えば算術符号化のごとく、注目画素
を予測しながら符号化を行なう際に、R,G、Bの色成
分毎に予測、符号化を行なうことなく、色情報として予
測、符号イfき、符号化効率を上げることができる。
In this way, by converting the 3-bit color character determination signal into a binary sequence and encoding it as a 1-bit serial signal, it is possible to eliminate the need to separately encode the 3-bit signals that are correlated with each other. Encoding can be performed while preserving color correlation. Furthermore, when encoding is performed while predicting the pixel of interest, as in arithmetic encoding, the prediction and code are used as color information without predicting and encoding each color component of R, G, and B. , encoding efficiency can be increased.

また、各画素の色を表すR,G、Bの各色成分が1つの
データとして表されるので、復号時に1つデータを復号
することで、各画素に対応するR、G、B信号を一度に
得ることができ、カラー画像の再生を迅速に行なうこと
ができる。
In addition, since each color component of R, G, and B representing the color of each pixel is represented as one data, by decoding one data at the time of decoding, the R, G, and B signals corresponding to each pixel can be color images can be obtained, and color images can be reproduced quickly.

〈算術符号化部6〉 算術符号化部6においては、数色を表す2値系列信号を
可逆符号化である算術符号化により符号化する。算術符
号化の方法及び回路構成は特開平2−65372号公報
に示される通りである。
<Arithmetic Encoding Unit 6> In the arithmetic encoding unit 6, binary sequence signals representing several colors are encoded by arithmetic encoding, which is reversible encoding. The arithmetic encoding method and circuit configuration are as shown in Japanese Unexamined Patent Publication No. 2-65372.

く色文字除去部7〉 色文字除去部7は、上記色文字判定部4iこより色文字
と判定された画素のデータを該画素の属するブロック中
の他の画素のデータに応じた値を用いて置換する。
Dark color character removal unit 7> The color character removal unit 7 processes the data of the pixel determined to be a color character by the color character determination unit 4i using a value corresponding to the data of other pixels in the block to which the pixel belongs. Replace.

即ち、第5図(a、 )のように色文字の存在する画像
から第5図(b)のように色文字データを除去する。ま
たその際に、色文字を差し引くことによって第5図(b
)のように生じるエツジも除去するため第5図(c)の
ように色文字の周囲の画素であって、色文字画素と同様
の色相を有する画素のデータも合わせて差し引き、ブロ
ック内の他の画素データの平均値で置換する。
That is, color character data is removed as shown in FIG. 5(b) from an image in which colored characters exist as shown in FIGS. 5(a, 5). In addition, at that time, by subtracting the colored characters, Figure 5 (b
) In order to remove the edges that occur as shown in Figure 5(c), we also subtract the data of pixels surrounding the color text and having the same hue as the color text pixels, and remove the data from other pixels in the block. Replace with the average value of pixel data.

このとき、色文字除去処理のブロックと後述の直交変換
のブロックのサイズは同一とする。
At this time, it is assumed that the size of the block for color character removal processing and the block for orthogonal transformation described later are the same.

色文字除去部7の構成を第6図に示す。The configuration of the color character removing section 7 is shown in FIG.

各8ビツトの画素画像データr、g、  bは色検出器
71に人力され、上記式(3)〜(9)に基いて除去す
べき色の画素を検出する。その際、色文字周辺部も検出
される様にするため、閾値を例えば下記の様に定める。
Each of the 8-bit pixel image data r, g, and b is input to a color detector 71, which detects pixels of the color to be removed based on the above equations (3) to (9). At this time, in order to ensure that the peripheral parts of the colored characters are also detected, the threshold value is determined as shown below, for example.

thl=1.20  th2=130  th3=30
このように、前述の色検出の閾値を変更して色検出部3
よりも広い範囲で色検出を行なうことにより、色文字に
近似する色味の部分を抽出することができ、この部分の
入力画像データも除去することができる。
thl=1.20 th2=130 th3=30
In this way, by changing the color detection threshold described above, the color detection unit 3
By performing color detection in a wider range, it is possible to extract a portion with a color tone similar to that of a colored character, and the input image data of this portion can also be removed.

色検出器71の検出信号R’ 、G’ 、B’のうち少
なくとも1つが1の場合に、除去すべき色が存在する画
素と判断し、減算回路72において該画素のr、g、b
の値をOとする。次に平均値演算回路73において、8
X8画素ブロック内のr、g、bデータの平均値を演算
し、置換部74において、その平均値を色が除去された
画素の画像データとして置換し、r’ 、g’ 、b’
 として出力する。
When at least one of the detection signals R', G', and B' of the color detector 71 is 1, it is determined that the pixel has a color to be removed, and the subtraction circuit 72 calculates r, g, and b of the pixel.
Let the value of be O. Next, in the average value calculation circuit 73, 8
The average value of the r, g, b data in the X8 pixel block is calculated, and the replacement unit 74 replaces the average value as image data of the pixel from which the color has been removed, r', g', b'
Output as .

なお、平均値での置換に限らず、もっとも頻度の多い値
に置き換えること、或はメディアンフィルク用いてブロ
ック内の画素の中央値に置き換えることもできる。
Note that the replacement is not limited to the average value, but can also be replaced with the most frequent value, or replaced with the median value of pixels within the block using a median filter.

また、色文字周囲の画素であって、色文字に近似する信
実の部分のみをより正確に抽出するために、色文字判定
信号R,G、BのORをとった信号と第6図の2つのO
R回路の出力信号のANDをとって、減算回路72及び
置換部74における処理を行なう様にしてもよい。
In addition, in order to more accurately extract only the pixel surrounding the color character that is true and approximate to the color character, the signal obtained by ORing the color character determination signals R, G, and B and the signal 2 in FIG. One O
The output signals of the R circuit may be ANDed to perform processing in the subtraction circuit 72 and the substitution unit 74.

〈直交変換部8〉 直交変換部8は、8×8画素ブロック単位で2次元離散
コサイン変換を行ない、得られた変換係数を量子イヒし
た後ハフマン符号化する、いわゆるADCT方式の符号
化を行なう。
<Orthogonal transform unit 8> The orthogonal transform unit 8 performs a two-dimensional discrete cosine transform in units of 8×8 pixel blocks, performs quantum conversion on the obtained transform coefficients, and then performs Huffman encoding, which is the so-called ADCT encoding. .

第7図に直交変換部8の構成を示す。前処理部81にお
いて、画素毎にr’ 、g’ 、 b’の8ビツトの信
号が、輝度信号Y及び色度信号Cr  Cbに変換され
る。次に、サブサンプリング部82においてCr、Cb
倍信号2×2画素ブロック毎に平均値がとられる。これ
は、色度信号の劣化が輝度信号の劣化に比べて人間の視
覚にとらえられに(いという性質を利用したものである
。最後に、直交変換部83において、Y、Cr、Cbの
各面について、独立にADCT方式の符号化を行なう。
FIG. 7 shows the configuration of the orthogonal transform section 8. In the preprocessing section 81, 8-bit signals of r', g', and b' are converted into a luminance signal Y and a chromaticity signal CrCb for each pixel. Next, in the sub-sampling section 82, Cr, Cb
An average value is taken for each double signal 2×2 pixel block. This takes advantage of the fact that the deterioration of the chromaticity signal is less noticeable to human vision than the deterioration of the luminance signal.Finally, in the orthogonal transform section 83, each of Y, Cr, and Cb is ADCT encoding is performed independently for each surface.

この符号化は、専用の演算回路を構成し、lあるいはコ
ンピュータのソフトウェアにより実行することができる
This encoding can be performed by configuring a dedicated arithmetic circuit or by computer software.

〈符号データ送信部9〉 符号データ送信部9においては、最初に色文字のパター
ン符号が送信され、次に、Y、Cr、Cbの符号データ
が面順次に送信される。各面の送信に先立って、そのデ
ータがどの成分であるかを示すフラッグが送信される。
<Code Data Transmitter 9> In the code data transmitter 9, the color character pattern code is first transmitted, and then the Y, Cr, and Cb code data are transmitted in sequence. Prior to transmitting each side, a flag indicating which component the data is is transmitted.

このとき、各データの送信順序に応じた時間的なずれを
補償するためのメモリを有する。
At this time, it has a memory for compensating for time lag depending on the transmission order of each data.

以上の様に、色文字パターンを可逆符号化により、符号
化することで色文字の品位を保ちつつ、高能率のデータ
圧縮を行なうことができる。
As described above, by encoding color character patterns using reversible encoding, highly efficient data compression can be performed while maintaining the quality of color characters.

一方、色文字をオリジナルデータから分離する際にその
周囲の部分も含めて所定の置換を行なうことにより、直
交変換符号化の効率を向上させることができる。
On the other hand, when separating color characters from original data, by performing predetermined replacement including surrounding parts, it is possible to improve the efficiency of orthogonal transform encoding.

く符号データ受信部10〉 符号データ受信部10は、送信部9からの符号データを
受信し、フラッグに基づき算術符号であるかY、Cr、
Cbのいずれかのハフマン符51あるかを判断し、それ
ぞれのデータを逆算術符号化部11、逆直交変換符号化
部12に出力する。
Code data receiving section 10> The code data receiving section 10 receives the code data from the transmitting section 9 and determines whether it is an arithmetic code based on the flag, Y, Cr,
It is determined whether there is any Huffman code 51 of Cb, and the respective data is output to the inverse arithmetic encoding section 11 and the inverse orthogonal transform encoding section 12.

〈逆算術符号化部11、 逆直交変換符号化部12〉 逆算術符号化部11、逆直交変換符号化部12は、算術
符号化、直交変換符号化と逆の手順で、色文字データ、
および” + g’ + b’の多値データを復号化す
る。
<Inverse arithmetic encoding unit 11, inverse orthogonal transformation encoding unit 12> The inverse arithmetic encoding unit 11 and inverse orthogonal transformation encoding unit 12 process color character data,
and ``+g'+b' multivalued data is decoded.

復号化されたr’ 、  ’ 、b’の多値データは、
平滑化部13において、それぞれの面で平滑化される。
The decoded multivalued data of r', ', b' is
In the smoothing section 13, each surface is smoothed.

色文字データに対して平滑化を行なわず、多値データの
みに平滑化を行なうのは、色文字の解像度の劣化を防止
し、鮮明な色文字を再生するためである。
The reason why smoothing is not performed on color character data but only on multivalued data is to prevent deterioration of the resolution of color characters and reproduce clear color characters.

〈合成部14〉 合成部14は、復号化された色文字データとr  、g
“、b°多値データとを合成する。
<Composition unit 14> The composition unit 14 combines the decoded color character data and r, g.
", b° multi-value data are synthesized.

即ち、色文字データ(R,G、B)に所定の係数aを乗
算した結果(RXa、GXa、BXa)と多値データ(
r’ 、  ’ 、b’ )とを合成する。この合成に
際しては、色文字の存在する画素の画像データとして色
文字データを優先させる様にする。これにより、色文字
を(つきつと再現することかできる。
That is, the result of multiplying color character data (R, G, B) by a predetermined coefficient a (RXa, GXa, BXa) and multi-value data (
r', ', b'). In this synthesis, priority is given to color character data as image data of pixels where color characters exist. This allows color characters to be reproduced with ease.

〈画像出力部15〉 画像出力部15は、例えばレーザービームプリンタ、L
EDプリンタ、液晶プリンタ、熱転写ブリンク、ドツト
ブリンク、インクジェットプリンタ等の画像出力装置、
CRT等の画像表示装置であり、再生信号に応じて記録
媒体上に可視画像形成を行なう。
<Image output section 15> The image output section 15 is, for example, a laser beam printer, L
Image output devices such as ED printers, liquid crystal printers, thermal transfer blinks, dot blinks, inkjet printers,
An image display device such as a CRT, which forms a visible image on a recording medium in response to a reproduction signal.

特に、インクジェットプリンタには、熱エネルギーを利
用した膜沸騰により液滴を吐出させるタイプのヘッドを
用いたいわゆるバブルジェットブリンクが含まれる。
In particular, inkjet printers include so-called bubble jet printers that use a type of head that ejects droplets by film boiling using thermal energy.

第」しス遺」1例 本発明は、カラーファクシミリ等の画像通信装置に限ら
ず、画像ファイル等の記憶装置にも適用することができ
る。
1. Example of the "Results" The present invention is not limited to image communication devices such as color facsimiles, but can also be applied to storage devices such as image files.

第8図は、本発明を記憶装置に用いた場合の例である。FIG. 8 shows an example in which the present invention is applied to a storage device.

第8図において、1〜15は第1図と同様なのでその説
明は省略する。21は、ハードディスク、ROM、RA
Mなどにより構成される画像ファイルであり、複数の画
像を記憶することができる。記憶時には、前記算術符号
とハフマン符合を別々に記憶させても良く、画像ごとに
まとめて記憶させても良い。また、例えば、文字部のみ
をデイスプレィやハードコピーで利用したい場合には、
算術符号のみを復号化すれば良(、その場合には処理時
間を短縮することができる。
In FIG. 8, 1 to 15 are the same as in FIG. 1, so their explanation will be omitted. 21 is hard disk, ROM, RA
This is an image file composed of files such as M, and can store multiple images. At the time of storage, the arithmetic code and Huffman code may be stored separately or may be stored together for each image. Also, for example, if you want to use only the text part on a display or hard copy,
It is only necessary to decode the arithmetic code (in that case, the processing time can be shortened).

夏l鬼入IL 本実施例は、第1の実施例の構成に加え、復号化時の画
像合成部14の後に、更に平滑化部31を設けたもので
ある。
Summer I Oni IL In this embodiment, in addition to the configuration of the first embodiment, a smoothing section 31 is further provided after the image composition section 14 at the time of decoding.

平滑化のためには、例えば3×3画素ブロックの平滑フ
ィルターを用いることができる。また、フィルター係数
として、注目画素と周辺画素の加重平均をとる様な係数
を用いても良い。
For smoothing, for example, a 3×3 pixel block smoothing filter can be used. Furthermore, as the filter coefficients, coefficients that take a weighted average of the pixel of interest and surrounding pixels may be used.

本実施例によれば、色文字と多値画像の合成後にも平滑
化を行なうので、色文字部と多値画像との境界が不自然
になるのを防止することができる。これは特にCODセ
ンサーにより文字と自然画像の混在した原稿を読み取っ
た場合に有効である。従って、例えば、コンピュータグ
ラフィックスの様に、文字をはっきり分離できる様な画
像の場合には、この平滑化を行なわない様にしても良い
According to this embodiment, since smoothing is performed even after the color text and the multi-value image are combined, it is possible to prevent the boundary between the color text portion and the multi-value image from becoming unnatural. This is particularly effective when a COD sensor reads an original containing a mixture of text and natural images. Therefore, for example, in the case of an image such as computer graphics in which characters can be clearly separated, this smoothing may not be performed.

以上の様に、本発明の上記実施例によれば、入力画像に
存在する色文字部分を同時にい検出し、これらを同時に
符号化する様にしたので、複数の色文字を迅速に符号化
することができ、しかも、階調画像部とは、別に符号化
することにより、高品位を保ちながら高能率の符号化を
行なうことができる。即ち、階調画像に対しては非可逆
の高能率符号化を行ない、この階調画像の符号化により
高周波成分が失われるという欠点を補うために、エツジ
部、特に色文字部に対してはエントロピー符号化するこ
とによりリンギングを防止し、色文字部を高品位に再現
することができる。
As described above, according to the embodiment of the present invention, the color character portions present in the input image are simultaneously detected and encoded simultaneously, so that multiple color characters can be encoded quickly. Moreover, by encoding separately from the gradation image part, highly efficient encoding can be performed while maintaining high quality. In other words, irreversible high-efficiency encoding is performed on gradation images, and in order to compensate for the drawback that high frequency components are lost due to the encoding of gradation images, edge parts, especially color character parts, are By entropy encoding, ringing can be prevented and color text parts can be reproduced with high quality.

また、色文字部に加え、色文字部とほぼ等しい色相の周
囲の色部分も階調画像から除去し、所定の置換を行なう
ことにより、階調画像の効率が格段に向上する。
Further, in addition to the color text portion, the surrounding color portions having approximately the same hue as the color text portion are also removed from the gradation image and predetermined replacement is performed, thereby greatly improving the efficiency of the gradation image.

なお、上記画像入力部1はCCDラインセンサーに限ら
ず、コンピュータの処理結果を出力するインターフェー
ス、静止画像を記録するスチルビデオカメラ、動画像を
記録するビデオカメラなどであってもよい。
Note that the image input section 1 is not limited to a CCD line sensor, but may be an interface that outputs a computer processing result, a still video camera that records still images, a video camera that records moving images, or the like.

特に、コンピュータのインターフェースとしては、例え
ば、ボストスクリプト、PCLなどのページ記述言語の
インタープリタが含まれる。
In particular, computer interfaces include, for example, interpreters for page description languages such as BostScript and PCL.

また、入力信号もR,G、Bの色成分に限らず例えば、
(Y、I、Q)、(L″ a。
In addition, input signals are not limited to R, G, and B color components; for example,
(Y, I, Q), (L″ a.

b”)、(L”、u”、v”)、(Y、M、C)などの
信号であってもよい。
It may be a signal such as ``b''), (L'', u'', v''), (Y, M, C), etc.

また、色検出のための色成分信号も同様に上述のR,G
、B信号に限らない。
Similarly, the color component signals for color detection are the same as those for R and G.
, is not limited to the B signal.

また、上記色文字の符号化方法は2値系列変換、算術符
号化に限らず、ランレングス符号化、MH,MR,MM
Rなど他の可逆符号化であってもよい。
In addition, the encoding method of the above-mentioned color characters is not limited to binary series conversion and arithmetic encoding, but also run-length encoding, MH, MR, MM
Other reversible encoding such as R may also be used.

また、多値画像の符号化方法もADCTに限らず、ベク
トル量子化や他の直交変換符号化であってもよい。
Further, the method of encoding a multivalued image is not limited to ADCT, but may be vector quantization or other orthogonal transform encoding.

また検出する色文字の種類や数も上述の例に限らない。Furthermore, the types and number of color characters to be detected are not limited to the above example.

また、仮に上記従来技術の黒文字抽出のための回路を複
数色分設け、複数の色文字を抽出できる様に構成しても
よい。
Further, the circuit for extracting black characters of the above-mentioned prior art may be provided for multiple colors so that characters of multiple colors can be extracted.

また、本発明は、符号化装置に限らず、画像処理装置、
特に、色変換処理、線画抽出処理を行なう複写機、カラ
ー画像編集装置等に適用可能である。
Further, the present invention is not limited to an encoding device, but also an image processing device,
In particular, it is applicable to copying machines, color image editing devices, etc. that perform color conversion processing and line drawing extraction processing.

[発明の効果] 以上の様に、本発明によれば、画像の品位な良好に保つ
ことができ、しかも符号化効率の良い画像符号化装置を
提供することができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to provide an image encoding device that can maintain good image quality and has high encoding efficiency.

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

第1図は、本発明の第1の実施例の符号化装置のブロッ
ク図、 第2図は、エツジ検出を説明する図、 第3図は、2値系列変換を説明する図、第4図は、2値
系列変換部の構成を示すブロック図、 第5図は、色文字除去を説明する図、 第6図は、色文字除去部の構成を示すブロック図、 第7図は、直交変換部の構成を示すブロック図、 第8図は、本発明の第2の実施例の構成を示すブロック
図、 第9図は、本発明の第3の実施例の構成を示すブロック
図である。 2・・・エツジ判定部 3・・・色検出部 ・色文字判定部 ・2値系列変換部 ・色文字除去部
FIG. 1 is a block diagram of the encoding device according to the first embodiment of the present invention. FIG. 2 is a diagram explaining edge detection. FIG. 3 is a diagram explaining binary sequence conversion. is a block diagram showing the configuration of the binary sequence conversion section, FIG. 5 is a diagram explaining color character removal, FIG. 6 is a block diagram showing the configuration of the color character removal section, and FIG. 7 is orthogonal transformation. FIG. 8 is a block diagram showing the structure of a second embodiment of the present invention. FIG. 9 is a block diagram showing the structure of a third embodiment of the present invention. 2...Edge judgment section 3...Color detection section, color character judgment section, binary series conversion section, color character removal section

Claims (3)

【特許請求の範囲】[Claims] (1)入力画像データの複数色の線画部を抽出する抽出
手段と、 前記抽出手段により抽出された複数色の線画部と該線画
部以外の部分に対して異なる符号化を行う符号化手段と を有することを特徴とする画像符号化装置。
(1) Extraction means for extracting a multi-color line drawing part of input image data; and encoding means for performing different encoding on the multi-color line drawing part extracted by the extraction means and parts other than the line drawing part. An image encoding device comprising:
(2)前記抽出手段はエッジ判定及び色成分判定により
前記複数色の線画部を抽出することを特徴とする請求項
第1項記載の画像符号化装置。
(2) The image encoding apparatus according to claim 1, wherein the extraction means extracts the line drawing portion of the plurality of colors by edge determination and color component determination.
(3)前記符号化手段は前記線画部に対して2値系列変
換した後に符号化を行なうことを特徴とする請求項第1
項記載の画像符号化装置。
(3) The encoding means performs encoding after performing binary sequence conversion on the line drawing portion.
The image encoding device described in Section 2.
JP2262798A 1990-02-06 1990-09-30 Picture coder Pending JPH04139960A (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2262798A JPH04139960A (en) 1990-09-30 1990-09-30 Picture coder
AT91300917T ATE137377T1 (en) 1990-02-06 1991-02-05 IMAGE PROCESSING DEVICE
DE69118939T DE69118939T2 (en) 1990-02-06 1991-02-05 Image processing device
EP91300917A EP0441586B1 (en) 1990-02-06 1991-02-05 Image processing apparatus
US08/173,863 US5361147A (en) 1990-02-06 1993-12-23 Method and apparatus for encoding and decoding color images
US08/289,225 US5668646A (en) 1990-02-06 1994-08-12 Apparatus and method for decoding differently encoded multi-level and binary image data, the later corresponding to a color in the original image
US08/811,286 US5909505A (en) 1990-02-06 1997-03-04 Color image encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2262798A JPH04139960A (en) 1990-09-30 1990-09-30 Picture coder

Publications (1)

Publication Number Publication Date
JPH04139960A true JPH04139960A (en) 1992-05-13

Family

ID=17380758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2262798A Pending JPH04139960A (en) 1990-02-06 1990-09-30 Picture coder

Country Status (1)

Country Link
JP (1) JPH04139960A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246374A (en) * 2005-03-07 2006-09-14 Toshiba Corp Image compressor, image compression method, and image compression program
JP2006323870A (en) * 2006-07-26 2006-11-30 Sharp Corp Image subtractive color processing device, image encoding device, image decoding device, image subtractive color processing method, image encoding method and image decoding method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006246374A (en) * 2005-03-07 2006-09-14 Toshiba Corp Image compressor, image compression method, and image compression program
JP2006323870A (en) * 2006-07-26 2006-11-30 Sharp Corp Image subtractive color processing device, image encoding device, image decoding device, image subtractive color processing method, image encoding method and image decoding method

Similar Documents

Publication Publication Date Title
JP3072776B2 (en) Image processing device
US5909505A (en) Color image encoding method and apparatus
US5361147A (en) Method and apparatus for encoding and decoding color images
US5905579A (en) Image processing method and apparatus which separates an input image into character and non-character areas
US5930386A (en) Image processing apparatus and method
JP3095804B2 (en) Image data transmission apparatus and image data transmission method
JP3523719B2 (en) Image encoding device and image decoding device
JP3101597B2 (en) Image storage method and apparatus
JPH04139960A (en) Picture coder
JP3176057B2 (en) Image processing device
US20090169123A1 (en) Method and apparatus to encode and decode halftone image
JP3595601B2 (en) Image communication method and apparatus
JP2877448B2 (en) Image coding device
JP2559726B2 (en) Color image processor
JP2832073B2 (en) Image coding device
JP3327684B2 (en) Color image processing method and apparatus
JPH05130426A (en) Picture coder
JPH0797829B2 (en) Color image input / output device
JPH0799853B2 (en) Image data compression / decompression method for printing
JPS639282A (en) Color picture information coding system
JPH0353767A (en) Picture data compression and restoration system for print
JPH1084555A (en) Image pickup device
JPH03231565A (en) Picture coding device
JP2002218208A (en) Image processor and image formation device provide with the same
JPH0342968A (en) Color picture information encoding system