JPH04358475A - Picture encoder - Google Patents

Picture encoder

Info

Publication number
JPH04358475A
JPH04358475A JP3134070A JP13407091A JPH04358475A JP H04358475 A JPH04358475 A JP H04358475A JP 3134070 A JP3134070 A JP 3134070A JP 13407091 A JP13407091 A JP 13407091A JP H04358475 A JPH04358475 A JP H04358475A
Authority
JP
Japan
Prior art keywords
data
line drawing
character
color
circuit
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.)
Withdrawn
Application number
JP3134070A
Other languages
Japanese (ja)
Inventor
Hideo Honma
英雄 本間
Tadayoshi Nakayama
忠義 中山
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 JP3134070A priority Critical patent/JPH04358475A/en
Publication of JPH04358475A publication Critical patent/JPH04358475A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reproduce a picture with excellent quality by keeping resolution of a character/a line drawing from a natural picture data in which the character/line drawing are in existence in mixture so as to implement effective compression. CONSTITUTION:A multilevel picture raster data 101 in which a character/a line drawing are in existence in mixture is given to an extraction circuit 102, in which a character/line drawing binary data 103 and a character/line drawing color data 104 are extracted. On the other hand, a multilevel picture data 105 subject to block processing at the character/line drawing extract circuit 102 is sent to a DCT circuit 106 and a quantization circuit 107, where the data are compressed and quantized and the result is given to an inverse quantization circuit 108 and an inverse DCT circuit 109, where the data is expanded to an original data and the expanded data is synthesized with the character/line drawing binary data 103 and a character/line drawing color data 104 without deterioration in the resolution and decoded into the multilevel picture data.

Description

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

【0001】0001

【産業上の利用分野】本発明は、線画が混在する自然画
像を符号化する画像符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding device for encoding natural images containing line drawings.

【0002】0002

【従来の技術】従来、カラー多値画像情報はその量の膨
大さのため、そのままではシステム上のポータビリティ
、ハンドリング等の困難を招き、また蓄積装置を有する
装置の場合、メモリコストが大幅に増加するという問題
があった。
[Prior Art] Conventionally, color multi-level image information has a huge amount, which poses difficulties in system portability and handling, and in the case of devices with a storage device, memory costs increase significantly. There was a problem.

【0003】これらの問題に対処する一手段として、D
CT等によって画像情報を直交変換した後、その係数を
量子化し、圧縮する符号化方式が提案されている。そし
て、この方法によれば、一般の自然画においても数分の
一〜数十分の一の圧縮が可能となる。
[0003] As a means of dealing with these problems, D
An encoding method has been proposed in which image information is orthogonally transformed by CT or the like, and then its coefficients are quantized and compressed. According to this method, even ordinary natural images can be compressed to a fraction of one to several tenths.

【0004】0004

【発明が解決しようとしている課題】しかしながら、上
記従来例では、画像をブロック毎に分割してDCT処理
後、量子化して圧縮符号化する際に、自然画に対してお
おむね良好に圧縮するために量子化テーブルをチューニ
ングし、その量子化テーブルを用いて文字・線画等を圧
縮すると、画像が大きく劣化してしまう。つまり、自然
画に対して良好な圧縮が得られるようにチューニングさ
れた量子化テーブルは、低周波成分を重視した特性を持
っており、エッジ部において発生する文字・線画の高周
波成分をカットしてしまう。このため、文字・線画と自
然画が混在する多値画像データを圧縮しようとする場合
、文字線画のエッジ部の品位が大きく劣化することにな
る。
[Problems to be Solved by the Invention] However, in the conventional example described above, when an image is divided into blocks, subjected to DCT processing, quantized, and compression encoded, it is difficult to compress the image generally well compared to a natural image. If you tune a quantization table and use that quantization table to compress characters, line drawings, etc., the image will be significantly degraded. In other words, a quantization table that is tuned to provide good compression for natural images has a characteristic that emphasizes low frequency components, and cuts high frequency components of characters and line drawings that occur at edges. Put it away. For this reason, when attempting to compress multivalued image data containing a mixture of text/line drawings and natural drawings, the quality of the edge portions of the text/line drawings will be significantly degraded.

【0005】この画像圧縮装置をプリンターに使用し、
文字・線画と自然画の混在する多値画像データを圧縮蓄
積する場合、自然画は、通常スキャナ等で取込まれるた
め、アパーチャロス等光学的条件により、そのデータ生
成時において、高周波成分がある程度抑制されたものと
なっている。それに対し、文字・線画コードをビットマ
ップに展開した画像データは、例えばホストコンピュー
タやインタープリータ上で処理されるため、光学的ロス
が多く、画素密度、振幅の限界まで大きな高周波成分を
持っている可能性が大である。従って、両者を同一の量
子化テーブルを用いて効果的に圧縮を行なう事は困難で
あり、また、敢えて圧縮率を上げる事により、プリンタ
ーという用途において文字品位が低下する事は極めて重
大な問題となっている。
[0005] This image compression device is used in a printer,
When compressing and storing multivalued image data that includes a mixture of text/line drawings and natural images, natural images are usually captured using a scanner, etc., and due to optical conditions such as aperture loss, high frequency components may be present to some extent when the data is generated. It has been suppressed. On the other hand, image data in which character/line drawing codes are developed into bitmaps is processed on a host computer or interpreter, so it has a lot of optical loss and has large high-frequency components that reach the limits of pixel density and amplitude. There is a high possibility that there are. Therefore, it is difficult to effectively compress both using the same quantization table, and it is an extremely serious problem that by deliberately increasing the compression rate, the character quality will deteriorate in printer applications. It has become.

【0006】また、DCT処理を行なうブロック単位で
文字・線画の有無を検出し、量子化テーブルを切換える
事によって、文字・線画の品位を保ったまま自然画と同
等の圧縮率を得ようとしても、DCT処理を行なう以上
、エッジ部の品位が低下することは免れない。
[0006] Furthermore, even if one attempts to obtain a compression rate equivalent to a natural image while maintaining the quality of characters and line drawings by detecting the presence or absence of characters and line drawings in each block that undergoes DCT processing and switching the quantization table, , as long as DCT processing is performed, it is inevitable that the quality of the edge portion will deteriorate.

【0007】このような問題点を解決するためには、文
字・線画データを自然画像から分離抽出し、解像度、信
号レベルを保持したまま符号化を行なう必要がある。例
えば、分離した多値自然画像はDCT処理後、量子化し
て圧縮し、また文字・線画は、例えば1 bit/pi
xel の解像度保存データとして保存する。画像デー
タの伸長時には、解像度が保存された文字・線画データ
に、DCT圧縮後、逆変換された自然画像がマージされ
る事になり、文字・線画のエッジ部における品位の低下
が生じない。
[0007] In order to solve these problems, it is necessary to separate and extract character/line drawing data from the natural image and encode it while maintaining the resolution and signal level. For example, separated multivalued natural images are quantized and compressed after DCT processing, and characters and line drawings are processed at 1 bit/pi, for example.
Save as xel resolution save data. When expanding image data, a natural image that is inversely converted after DCT compression is merged with character/line drawing data whose resolution is preserved, so that no deterioration in quality occurs at the edge portions of characters/line drawings.

【0008】しかし、これを効果的に実現するためには
、多値画像データにおける文字・線画を確実に識別し抽
出しなければならない。すなわち、文字・線画が均一な
色であると仮定するならば、色の付いた複雑な形状の文
字・線画であっても、その抽出色を確実に特定し、その
データを抽出する事が必要となる。
However, in order to effectively realize this, it is necessary to reliably identify and extract characters and line drawings in multivalued image data. In other words, assuming that characters and line drawings have a uniform color, it is necessary to reliably identify the extraction color and extract the data even if the characters and line drawings have complex colored shapes. becomes.

【0009】本発明は、上記課題を解決するために成さ
れたもので、文字・線画の混在する自然画像データから
文字・線画の解像度を保存して効果的な圧縮を行ない、
良好な品位の画像を再現できる画像符号化装置を提供す
ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and it performs effective compression by preserving the resolution of characters and line drawings from natural image data containing a mixture of characters and line drawings.
It is an object of the present invention to provide an image encoding device that can reproduce images of good quality.

【0010】0010

【課題を解決するための手段及び作用】上記目的を達成
するために、本発明の画像符号化装置は以下の構成を備
える。すなわち、入力画像データをブロック化するブロ
ック手段と、該ブロック手段でブロック化された画像デ
ータの階調情報に基づいて、エッジを検出するエッジ検
出手段と、該エッジ検出手段で検出されたエッジの階調
情報に応じて、前記画像データに混在する線画を抽出す
る抽出手段と、該抽出手段で抽出された線画を入力デー
タ以下の諧調データとして蓄積する蓄積手段とを備える
Means and Effects for Solving the Problems In order to achieve the above object, an image encoding apparatus of the present invention has the following configuration. That is, a blocking device blocks input image data, an edge detecting device detects edges based on gradation information of the image data blocked by the blocking device, and detects edges detected by the edge detecting device. The image forming apparatus includes an extraction means for extracting line drawings mixed in the image data according to the gradation information, and an accumulation means for accumulating the line drawings extracted by the extraction means as gradation data equal to or lower than the input data.

【0011】また好ましくは、カラー画像を入力し、そ
の表色系の1色のデータから前記抽出手段で抽出された
線画部分が同一の色であることを検出する同色検出手段
と、該同色検出手段での結果に応じて前記蓄積手段で蓄
積する線画データを有効と判断し出力する出力手段とを
更に備える事を特徴とする。
Preferably, the same color detection means inputs a color image and detects that the line drawing portions extracted by the extraction means from one color data of the color system are the same color; The apparatus is characterized in that it further comprises an output means for determining that the line drawing data stored in the storage means is valid according to the result in the storage means and outputting the determined data.

【0012】0012

【実施例】以下、図面を参照して本発明に係る好適な一
実施例を詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will be described in detail below with reference to the drawings.

【0013】図1は、本実施例における画像符号化装置
の構成を示す概略ブロック図である。図において、入力
された文字・線画の混在する多値画像ラスターデータ1
01は、抽出回路102によって文字・線画2値データ
103と文字・線画色104が抽出され、符号化される
。ここで、文字・線画2値データ103は、入力された
多値画像と同一の解像度を持ち、文字・線画部を“1”
、それ以外を“0”で表したビットマップデータである
。また、文字・線画色104は、文字・線画2値データ
103の“1”の部分の色を示し、入力された多値画像
データと同一の階調情報を保持する。そして、文字線画
2値データ103と文字線画色104は合成回路111
へ伝送される。
FIG. 1 is a schematic block diagram showing the configuration of an image encoding apparatus in this embodiment. In the figure, multivalued image raster data 1 containing a mixture of input characters and line drawings
01, character/line drawing binary data 103 and character/line drawing color 104 are extracted by the extraction circuit 102 and encoded. Here, the character/line drawing binary data 103 has the same resolution as the input multivalued image, and the character/line drawing part is set to "1".
, otherwise is bitmap data expressed as "0". Further, the text/line drawing color 104 indicates the color of the "1" portion of the text/line drawing binary data 103, and holds the same gradation information as the input multi-value image data. Then, the character line drawing binary data 103 and the character line drawing color 104 are processed by a synthesis circuit 111.
transmitted to.

【0014】一方、文字・線画抽出回路102によって
ブロック化された多値画像データ105は、DCT回路
106、量子化回路(Q)107へ伝送され、圧縮、量
子化される。そして、逆量子化回路108、逆DCT回
路109によって元のデータに伸長され、合成回路11
1にて解像度劣化のない文字・線画データと合成され多
値画像データに復元される。
On the other hand, multivalued image data 105 that has been divided into blocks by the character/line drawing extraction circuit 102 is transmitted to a DCT circuit 106 and a quantization circuit (Q) 107, where it is compressed and quantized. Then, the data is decompressed into the original data by the inverse quantization circuit 108 and the inverse DCT circuit 109, and the synthesis circuit 11
1, it is combined with character/line drawing data without resolution degradation and restored to multivalued image data.

【0015】次に、上述の文字・線画抽出回路102の
詳細な構成を図2に示すブロック図を参照して以下に説
明する。
Next, the detailed configuration of the above-mentioned character/line drawing extraction circuit 102 will be explained below with reference to the block diagram shown in FIG.

【0016】多値画像データ101は、まずブロック化
回路201に入力される。そして、ブロック化回路20
1は、ラスターイメージデータを表色系の各色プレーン
毎に、図3の(a)に示すようなX×Y画素のブロック
に分け、(b)に示すようにブロック内ラスタースキャ
ンデータに変化させる。一般的には、XとYは等しく(
X=Y)、入力された画像データがカラー画像データで
あるとすると、表色系の各色プレーン毎に、ブロック化
されたデータ202A〜Cとして出力される。図2に示
す203は上述のブロック化データ202A〜Cの1つ
先のブロック化データであるが、このデータの色は、表
色系色プレーンの1つで、エッジ抽出のための代表色と
なる。また、204はブロック毎のスキャン周期を示す
ブロック同期信号である。
Multivalued image data 101 is first input to a blocking circuit 201 . Then, the blocking circuit 20
Step 1 is to divide the raster image data into blocks of X×Y pixels as shown in FIG. 3(a) for each color plane of the color system, and convert the raster image data into raster scan data within the block as shown in FIG. 3(b). . Generally, X and Y are equal (
X=Y), and if the input image data is color image data, it is output as blocks of data 202A to 202C for each color plane of the color system. 203 shown in FIG. 2 is the block data that is one block ahead of the block data 202A to 202C described above, and the color of this data is one of the color planes of the color system, and is the representative color for edge extraction. Become. Further, 204 is a block synchronization signal indicating the scan period for each block.

【0017】ここで、本実施例におけるエッジ検出の概
要を図4を参照して説明する。
An outline of edge detection in this embodiment will now be explained with reference to FIG. 4.

【0018】まず、図4に示す(a)のように、注目ブ
ロック内の3画素(x,y),(x+1,y),(x,
y+1)に注目し、画素(x,y)と(x+1,y)及
び(x,y)と(x,y+1)との信号レベル差をそれ
ぞれ検出し、一定以上の差が存在するならば、その差の
存在する両方の画素の信号レベルに対応するカウンタを
カウントアップする。このカウンタは、信号レベルの数
だけ存在する。例えば信号レベルを8bitで表わすな
らば、28 =256個のカウンタが存在する。つまり
、画素(x,y)と(x+1,y)及び(x,y)と(
x,y)の両方に一定以上の差が存在するならば、画素
(x,y)の信号レベルカウンタは、2回カウントアッ
プされる。そして、上述の検出処理をブロック内座標(
0,0)〜(X−1,Y−1)までスキャンして行なう
。なお、x=X−1,y=Y−1の場合、(x+1,y
)(x,y+1)はブロック外となるが、信号レベルは
(x,y)と等しいものとして処理する。すなわち、差
は“0”となり、カウントは行なわれない。
First, as shown in FIG. 4(a), three pixels (x, y), (x+1, y), (x,
y+1), detect the signal level differences between pixels (x, y) and (x+1, y) and between (x, y) and (x, y+1), respectively, and if there is a difference above a certain level, Counters corresponding to the signal levels of both pixels where the difference exists are counted up. There are as many counters as there are signal levels. For example, if the signal level is expressed in 8 bits, there are 28 = 256 counters. In other words, pixels (x, y) and (x+1, y) and (x, y) and (
If there is a difference of more than a certain value between both pixel (x, y), the signal level counter of the pixel (x, y) is counted up twice. Then, the above-mentioned detection process is performed using the intra-block coordinates (
0,0) to (X-1,Y-1). In addition, in the case of x=X-1, y=Y-1, (x+1, y
)(x, y+1) is outside the block, but the signal level is treated as being equal to (x, y). In other words, the difference is "0" and no counting is performed.

【0019】図4に示す(b)の場合、○記号で示す画
素の信号レベルカウンタがカウントアップされる。ここ
で、401、402の部分は均一な色を持つものとし、
それ以外の部分は色の混ざった背景部とする。この例で
は、401の部分に対応する信号レベルカウンタが最大
カウント値を示し、最も多くのエッジを持つ色と識別さ
れる。すなわち、この色部分が文字・線画として識別さ
れ、その信号レベルは文字・線画信号レベル206とし
てエッジ検出回路205から出力される。この出力は、
注目ブロックの処理が終了時に、ブロック周期信号20
4でフリップ・フロップ207にホールドされる。上述
したように、エッジ検出回路205では、同時に3画素
に注目するが、203は3画素パラレルでも良く、また
、エッジ検出回路205内にレジスタを設け、3画素シ
リアルに入力しても良い。
In the case (b) shown in FIG. 4, the signal level counter of the pixel indicated by the ◯ symbol is counted up. Here, it is assumed that parts 401 and 402 have a uniform color,
The rest of the image is a mixed-color background. In this example, the signal level counter corresponding to the portion 401 indicates the maximum count value, and is identified as the color having the most edges. That is, this color portion is identified as a character/line drawing, and its signal level is output from the edge detection circuit 205 as a character/line drawing signal level 206. This output is
When the processing of the block of interest is completed, the block period signal 20
4, it is held in the flip-flop 207. As described above, the edge detection circuit 205 focuses on three pixels at the same time, but the three pixels 203 may be parallel, or a register may be provided in the edge detection circuit 205 to input three pixels serially.

【0020】次に、エッジ検出回路205でのスキャン
が終了すると、次のブロックの処理へ移行するが、前述
したブロック化回路201からは直前に出力されたブロ
ックデータ203がブロック化されたデータ202A〜
Cとして出力される。また、ブロックデータ203は、
エッジを検出する代表色であったのに対し、ブロック化
データ202は、表色系座標の全色プレーン(202A
〜C)である。この中からエッジ検出代表色と同じ色、
すなわち、先のブロックデータ203と同一のデータで
あるブロック化データ202Aがフリップ・フロップ2
07にホールドされた文字・線画信号レベル208Aと
比較され、同値検出回路209から同一信号レベルが出
力される。つまり、同値検出回路209では、両者が一
致すれば“1”を、それ以外は“0”を出力する。そし
て、2値データは、ビットマップメモリ211に2値イ
メージデータとしてホールドされる。図4に示す(b)
の場合、401の信号レベル部が抜出され、(c)に示
すように“1”又は“0”のビット・マップがビットマ
ップメモリ211上にセーブされる。
Next, when the scanning in the edge detection circuit 205 is completed, the process moves on to the next block, but the block data 203 outputted immediately before from the blocking circuit 201 described above is converted into blocked data 202A. ~
Output as C. In addition, the block data 203 is
In contrast to the representative color used to detect edges, the blocked data 202 uses the entire color plane (202A) of the color system coordinates.
~C). From among these, select the color that is the same as the edge detection representative color,
That is, the blocked data 202A, which is the same data as the previous block data 203, is transferred to the flip-flop 2.
It is compared with the character/line drawing signal level 208A held at 07, and the same signal level is output from the equivalency detection circuit 209. That is, the equivalence detection circuit 209 outputs "1" if the two match, and otherwise outputs "0". Then, the binary data is held in the bitmap memory 211 as binary image data. Shown in Figure 4 (b)
In the case of , the signal level part 401 is extracted and a bit map of "1" or "0" is saved on the bitmap memory 211 as shown in (c).

【0021】次に、同色検出回路214は、上述のビッ
トマップパターンで“1”の部分が表色系の他の色プレ
ーン上でも同色であるか否かを検出する。これは、他の
色プレーン202B、Cをスキャンし、各々のビットマ
ップパターンが“1”の部分が一致した場合、スイッチ
216の制御信号215を“L”とし、ビットマップメ
モリ211側を選択し、一致しなければ、文字・線画部
でないと判断し、文字・線画2値データ103が常にそ
のブロックで“0”となるように選択する。
Next, the same color detection circuit 214 detects whether the "1" portion in the bitmap pattern described above is the same color on another color plane of the color system. This scans the other color planes 202B and 202C, and if the "1" portions of each bitmap pattern match, the control signal 215 of the switch 216 is set to "L" and the bitmap memory 211 side is selected. , if they do not match, it is determined that the block is not a text/line drawing part, and the text/line drawing binary data 103 is selected so as to always be "0" in that block.

【0022】また、同色検出回路214は、ビットマッ
プメモリパターンが“1”の部分の色プレーンB、Cの
信号レベル208B、Cをそれぞれ出力する。これは、
合成回路217で文字・線画信号レベル208Aと合成
され、注目ブロックの文字・線画色データ104として
出力される。この文字・線画色データ104は、入力画
像データ101と同じ階調情報を持つ。ここで、文字・
線画信号レベル208Aはビットマップ作成、同色検出
のためのスキャン結果と同期をとるため、2ブロックデ
ィレィ218で2ブロックをスキャンする時間分ディレ
ィされる。このデータは、同色検出回路214で文字・
線画でないと判断した場合、意味の無いデータを出力す
るが、文字・線画2値データが“1”の場合のみ意味を
持つため、問題は生じない。
The same color detection circuit 214 also outputs signal levels 208B and C of color planes B and C in the portion where the bitmap memory pattern is "1", respectively. this is,
It is synthesized with the character/line drawing signal level 208A in the synthesis circuit 217 and output as the character/line drawing color data 104 of the block of interest. This character/line drawing color data 104 has the same gradation information as the input image data 101. Here, the characters
In order to synchronize the line drawing signal level 208A with the scanning results for bitmap creation and same color detection, the line drawing signal level 208A is delayed by a two block delay 218 for the time it takes to scan two blocks. This data is processed by the same color detection circuit 214 to
If it is determined that it is not a line drawing, meaningless data is output, but since it has meaning only when the character/line drawing binary data is "1", no problem occurs.

【0023】次に、本実施例におけるエッジ検出回路2
05の詳細な構成を図5を参照して以下に説明する。
Next, the edge detection circuit 2 in this embodiment
The detailed configuration of 05 will be explained below with reference to FIG.

【0024】図5の例では、前述した3画素をブロック
データ203a〜cとしてパラレルに入力するように構
成され、データ203aが画素(x,y)、データ20
3bが(x+1,y)、データ203cが(x,y+1
)である。
In the example shown in FIG. 5, the three pixels described above are input in parallel as block data 203a to 203c, and data 203a is the pixel (x, y), data 20
3b is (x+1, y), data 203c is (x, y+1
).

【0025】まず、ブロックデータ203a〜cは、減
算器501a,501bで差が計算され、絶対値回路(
ABS)502a,502bで絶対値が取られる。そし
て、コンパレータ503a,503bで閾値504と比
較され、差(絶対値)が閾値よりも大ならば“1”、等
しいか小ならば“0”が出力される。その結果、画素(
x,y)と隣接画素(x+1、y)及び(x,y+1)
との間にエッジが存在するか否かが判定される。つまり
、上述の出力が“1”であれば、エッジが存在すると判
定される。ここで、コンパレータ503aの出力が“1
”の場合、カウンタモジュール509内の画素(x,y
)及び画素(x+1,y)の信号レベルカウンタがカウ
ントアップされ、コンパレータ503bの出力が“1”
の場合、画素(x,y)、(x,y+1)の信号レベル
カウンタがカウントアップされる。従って、両方とも“
1”の場合、画素(x,y)の信号レベルカウンタは2
回カウントアップされる。ここで、カウンタモジュール
509は、入力画像データ203a〜cが取り得るすべ
ての信号レベルに対応したカウンタを持ち、入力が8b
itならば28 =256個のカウンタが各々信号レベ
ルに対応している。
First, the difference between the block data 203a to 203c is calculated by the subtracters 501a and 501b, and the difference is calculated by the absolute value circuit (
Absolute values are taken at ABS) 502a and 502b. Then, the comparators 503a and 503b compare it with a threshold value 504, and if the difference (absolute value) is greater than the threshold value, "1" is output, and if it is equal or smaller, "0" is output. As a result, the pixel (
x, y) and adjacent pixels (x+1, y) and (x, y+1)
It is determined whether an edge exists between. That is, if the above-mentioned output is "1", it is determined that an edge exists. Here, the output of the comparator 503a is “1”.
”, the pixel (x, y
) and the signal level counter of the pixel (x+1, y) are counted up, and the output of the comparator 503b becomes "1".
In this case, the signal level counters of pixels (x, y) and (x, y+1) are counted up. Therefore, both “
1”, the signal level counter of pixel (x, y) is 2
times are counted up. Here, the counter module 509 has a counter corresponding to all the signal levels that the input image data 203a to 203c can take, and has an input of 8b.
In the case of it, 28=256 counters each correspond to a signal level.

【0026】次に、上述したカウンタモジュール509
のカウント方法について説明する。ここで、供給される
クロックは、画素のスキャン速度の2倍のレートを持つ
ものであり、分周器506で1/2に分周され、スイッ
チ505,507をそれぞれ切換える。このスイッチ5
05がコンパレータ503a側の時、スイッチ507は
データ203b側とする。スイッチ505の出力はカウ
ンタモジュール509の入力ゲートに入力されている。 また、デコーダ508はスイッチ507の出力と画素(
x,y)の信号レベルを入力し、その信号レベルをデコ
ードして同時に2本の出力線をアサートする。これらの
出力線は、対応する信号レベルカウンタの入力ANDゲ
ートに接続され、上述のクロックに従ってエッジが存在
する画素の信号レベルカウンタがカウントアップされる
。各カウンタからの出力は、最大値選択回路510で最
大値の信号レベルがエンコードされ、取出される。これ
が抽出された信号レベル206として前述した抽出色A
である。また、カウンタモジュール509は、1ブロッ
クスキャン毎にブロック同期信号204でリセットされ
る。
Next, the counter module 509 described above
We will explain how to count. Here, the supplied clock has a rate twice as high as the pixel scanning speed, and is divided into 1/2 by a frequency divider 506 to switch the switches 505 and 507, respectively. This switch 5
When 05 is on the comparator 503a side, the switch 507 is on the data 203b side. The output of switch 505 is input to the input gate of counter module 509. Further, the decoder 508 outputs the output of the switch 507 and the pixel (
x, y) is input, the signal level is decoded, and two output lines are asserted at the same time. These output lines are connected to the input AND gates of the corresponding signal level counters, and the signal level counters of pixels where edges are present are counted up according to the above-mentioned clock. The maximum signal level of the output from each counter is encoded by a maximum value selection circuit 510 and extracted. This is the extracted color A mentioned above as the extracted signal level 206.
It is. Further, the counter module 509 is reset by the block synchronization signal 204 every block scan.

【0027】次に、同色検出回路214の構成を図6を
参照して説明する。入力画像データ202Cは、ビット
マップ作成と同期をとるため、1ブロックディレイ60
1で1ブロックスキャン時間分遅延される。一方、画素
スキャンレートの2倍で供給されているクロックは、分
周器602で1/2に分周され、ANDゲート613に
入力されている。また、元のデータと同一画素密度で抽
出され、2値化された文字線画のビットマップデータ2
13がANDゲート613に入力され、ゲート613か
らの出力データ、つまりビットマップデータ213の“
1”に対応する入力画像データ202Cがフリップ・フ
ロップ604にホールドされる。そして、次のビットマ
ップデータ213が“1”の時、先にホールドされた画
像データが続くフリップ・フロップ605に、新しいデ
ータがフリップ・フロップ604にそれぞれホールドさ
れる。次に、これらのデータは比較器606で比較され
、等しくない場合には、その出力“1”がフリップ・フ
ロップ607から出力される。すなわち、先に抽出した
文字・線画領域に色の等しくない部分が存在する事にな
る。
Next, the configuration of the same color detection circuit 214 will be explained with reference to FIG. The input image data 202C has a 1 block delay 60 to synchronize with bitmap creation.
1, it is delayed by one block scan time. On the other hand, the clock supplied at twice the pixel scan rate is divided into 1/2 by the frequency divider 602 and inputted to the AND gate 613. In addition, character line drawing bitmap data 2 is extracted and binarized with the same pixel density as the original data.
13 is input to the AND gate 613, and the output data from the gate 613, that is, the “
The input image data 202C corresponding to "1" is held in the flip-flop 604. Then, when the next bitmap data 213 is "1", the input image data 202C corresponding to The data is held in each flip-flop 604. Next, these data are compared in a comparator 606, and if they are not equal, the output "1" is outputted from the flip-flop 607. There will be parts with unequal colors in the extracted text/line drawing areas.

【0028】なお、フリップ・フロップ607出力は、
次のブロックスキャン時、ブロック同期信号204によ
ってフリップ・フロップ608にホールドされる。また
、ブロック同期信号204はフリップ・フロップ604
、605、607をそれぞれリセットする。そして、フ
リップ・フロップ605の出力は文字・線画部の抽出色
となり、ブロックスキャン終了時に、フリップフロップ
609にホールドされ抽出色208Cとなる。
Note that the output of the flip-flop 607 is:
During the next block scan, it is held in the flip-flop 608 by the block synchronization signal 204. Further, the block synchronization signal 204 is transmitted through the flip-flop 604.
, 605, and 607, respectively. Then, the output of the flip-flop 605 becomes the extracted color of the character/line drawing portion, and when the block scan ends, it is held in the flip-flop 609 and becomes the extracted color 208C.

【0029】また、610bは上述の610aと同一の
回路で、画像入力データ208Bに対して同じ処理を行
うものである。
Further, 610b is the same circuit as 610a described above, and performs the same processing on the image input data 208B.

【0030】両モジュールのいずれかにおいて、文字・
線画部の色と信号レベルの不均質さが検出されると、O
Rゲート611の出力が“1”となり、そのブロック内
に文字・線画が存在しないと判断する。この場合、前述
したように、抽出色B(208B)、抽出色C(208
C)及び抽出色A(208A)は意味を持たない。
[0030] In either of the two modules, the character/
When non-uniformity in the color and signal level of the line drawing area is detected, O
The output of the R gate 611 becomes "1", and it is determined that there are no characters or line drawings in that block. In this case, as described above, extracted color B (208B), extracted color C (208B),
C) and extracted color A (208A) have no meaning.

【0031】次に、合成回路111の構成を図7を参照
して説明する。
Next, the configuration of the synthesis circuit 111 will be explained with reference to FIG.

【0032】IDCT109で復元された画像データ1
10は、ビットマップデータ103の“1”の部分に従
ってスイッチ701で文字線画色104に置換される。 この出力は、ラスター化回路702により、元のラスタ
ーイメージデータとして復元される。
Image data 1 restored by IDCT109
10 is replaced with the character line drawing color 104 by the switch 701 according to the "1" part of the bitmap data 103. This output is restored by the rasterization circuit 702 as the original raster image data.

【0033】以上説明したように、本実施例では、最も
エッジに多く接している信号レベルを文字線画レベルと
してブロック毎独立に抽出しているが、実際は、文字・
線画がブロック間にまたがる場合が多く、隣接したブロ
ックでは前のブロックの抽出色が有意である可能性が高
い。そこで、前ブロックの抽出信号レベルを優先的に抽
出する構成も可能である。例えば、図8に示すように、
エッジ検出回路205に前ブロックの抽出信号208A
をフィードバックさせる構成とし、図5に示すカウンタ
モジュール509の前ブロックの抽出信号レベルのカウ
ンタを選択し、ブロックスキャン終了時に、完全にリセ
ットするのではなく、一定値をロードさせたり、或いは
選択したカウンタの出力に一定値を乗じることにより、
優先的に選択される確率を高めるものである。
As explained above, in this embodiment, the signal level that is most in contact with the edge is extracted independently for each block as the character/line drawing level.
Line drawings often span blocks, and in adjacent blocks, there is a high possibility that the extracted color of the previous block is significant. Therefore, a configuration is also possible in which the extraction signal level of the previous block is extracted preferentially. For example, as shown in FIG.
The extraction signal 208A of the previous block is sent to the edge detection circuit 205.
The counter module 509 shown in FIG. By multiplying the output of by a constant value,
This increases the probability of being selected preferentially.

【0034】以上説明したように、本実施例によれば、
文字線画の混在するカラーラスターイメージデータから
文字・線画の解像度を保存して、効果的な圧縮を行い、
良好な品位の画像を再現する事が可能となる。
As explained above, according to this embodiment,
Saves the resolution of characters and line drawings from color raster image data containing a mixture of text and line drawings, performs effective compression,
It becomes possible to reproduce images with good quality.

【0035】[0035]

【他の実施例】次に、本発明に係る他の実施例を図9を
参照して以下に説明する。
[Other Embodiments] Next, another embodiment according to the present invention will be described below with reference to FIG.

【0036】図9は、他の実施例における画像符号化装
置の構成を示すブロック図であり、図1における伝送線
路部をメモリで構成したものである。図9において、9
01は文字・線画2値メモリであり、入力画像データ1
01と同じ画素密度を有する2値データメモリである。 902は文字線画の色メモリであり、入力画像データ1
01と同一の階調をDCT処理ブロックの領域単位に保
持する。そして、903はイメージメモリであり、入力
画像データのDCT処理、量子化圧縮データを保持する
FIG. 9 is a block diagram showing the configuration of an image encoding apparatus according to another embodiment, in which the transmission line section in FIG. 1 is constructed with a memory. In FIG. 9, 9
01 is a character/line drawing binary memory, and input image data 1
It is a binary data memory having the same pixel density as 01. Reference numeral 902 is a color memory for character and line drawings, and input image data 1
The same gradation as 01 is maintained for each region of the DCT processing block. An image memory 903 stores DCT processing of input image data and quantized compressed data.

【0037】本発明は、複数の機器により構成されるシ
ステムに適用しても良いし、1つの機器からなる装置に
適用しても良い。また、システム或いは装置にプログラ
ムを供給することによって達成される場合にも適用でき
ることは言うまでもない。
The present invention may be applied to a system made up of a plurality of devices, or to an apparatus made up of one device. It goes without saying that the present invention can also be applied to cases where the present invention is achieved by supplying a program to a system or device.

【0038】[0038]

【発明の効果】以上説明したように、本発明によれば、
文字線画の混在する自然画像データから文字線画の解像
度を保存して効果的な圧縮を行ない、良好な品位の画像
を再現することが可能となる。
[Effects of the Invention] As explained above, according to the present invention,
It becomes possible to preserve the resolution of text and line drawings from natural image data containing text and line drawings, perform effective compression, and reproduce images of good quality.

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

【図1】本実施例における画像符号化装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram showing the configuration of an image encoding device in this embodiment.

【図2】文字線画抽出回路の構成を示す図である。FIG. 2 is a diagram showing the configuration of a character and line drawing extraction circuit.

【図3】入力画像データのブロック化を説明するための
図である。
FIG. 3 is a diagram for explaining blocking of input image data.

【図4】エッジ抽出を説明するための図である。FIG. 4 is a diagram for explaining edge extraction.

【図5】エッジ抽出回路の構成を示す図である。FIG. 5 is a diagram showing the configuration of an edge extraction circuit.

【図6】同色検出回路の構成を示す図である。FIG. 6 is a diagram showing the configuration of a same color detection circuit.

【図7】合成回路の構成を示す図である。FIG. 7 is a diagram showing the configuration of a synthesis circuit.

【図8】本実施例における変形例を示す図である。FIG. 8 is a diagram showing a modification of the present embodiment.

【図9】他の実施例における画像符号化装置の構成を示
すブロック図である。
FIG. 9 is a block diagram showing the configuration of an image encoding device in another embodiment.

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

102  文字線画抽出回路 106  DCT処理回路 107  量子化回路 108  逆量子化回路 109  逆DCT処理回路 111  合成回路 201  ブロック化回路 205  エッジ検出回路 209  同値検出回路 211  ビットマップメモリ 214  同色検出回路 217  文字線画抽出色合成回路 102 Character line drawing extraction circuit 106 DCT processing circuit 107 Quantization circuit 108 Inverse quantization circuit 109 Inverse DCT processing circuit 111 Synthesis circuit 201 Blocked circuit 205 Edge detection circuit 209 Equivalence detection circuit 211 Bitmap memory 214 Same color detection circuit 217 Character line drawing extraction color synthesis circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  入力画像データをブロック化するブロ
ック手段と、該ブロック手段でブロック化された画像デ
ータの階調情報に基づいて、エッジを検出するエッジ検
出手段と、該エッジ検出手段で検出されたエッジの階調
情報に応じて、前記画像データに混在する線画を抽出す
る抽出手段と、該抽出手段で抽出された線画を入力デー
タ以下の諧調データとして蓄積する蓄積手段とを備える
事を特徴とする画像符号化装置。
1. Blocking means for blocking input image data; edge detection means for detecting edges based on gradation information of the image data blocked by the blocking means; The present invention is characterized by comprising an extracting means for extracting line drawings mixed in the image data according to gradation information of the edge, and an accumulating means for accumulating the line drawings extracted by the extracting means as gradation data equal to or lower than the input data. An image encoding device that uses
【請求項2】  カラー画像を入力し、その表色系の1
色のデータから前記抽出手段で抽出された線画部分が同
一の色であることを検出する同色検出手段と、該同色検
出手段での結果に応じて前記蓄積手段で蓄積する線画デ
ータを有効と判断し出力する出力手段とを更に備える事
を特徴とする請求項1に記載の画像符号化装置。
[Claim 2] Input a color image and select one of its color systems.
a same color detection means for detecting that the line drawing parts extracted by the extraction means from the color data are of the same color; and a same color detection means for determining that the line drawing data accumulated by the storage means is valid according to the result of the same color detection means. The image encoding apparatus according to claim 1, further comprising output means for outputting the image.
JP3134070A 1991-06-05 1991-06-05 Picture encoder Withdrawn JPH04358475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3134070A JPH04358475A (en) 1991-06-05 1991-06-05 Picture encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3134070A JPH04358475A (en) 1991-06-05 1991-06-05 Picture encoder

Publications (1)

Publication Number Publication Date
JPH04358475A true JPH04358475A (en) 1992-12-11

Family

ID=15119679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3134070A Withdrawn JPH04358475A (en) 1991-06-05 1991-06-05 Picture encoder

Country Status (1)

Country Link
JP (1) JPH04358475A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7386168B2 (en) * 2003-02-24 2008-06-10 Canon Kabushiki Kaisha Image processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7386168B2 (en) * 2003-02-24 2008-06-10 Canon Kabushiki Kaisha Image processing apparatus

Similar Documents

Publication Publication Date Title
EP0411232B1 (en) Method for high-quality compression by binary text images
US5422736A (en) Multi-mode image processing permitting selection of quantization process according to image characteristics
US6947600B1 (en) Information processing method, apparatus and storage medium for receiving and decoding a code sequence obtained by encoding an image
JP2000175052A (en) Processing method and system for pixel map expression
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
JPH04328960A (en) Picture data transmitter
US5963342A (en) Image processing apparatus and method thereof
JP3193086B2 (en) Adaptive encoding apparatus and decoding apparatus for color document image
EP0902398B1 (en) Method and system for compressing and decompressing binary representations of dithered images
US8023756B2 (en) Image encoding apparatus and method of controlling same
JP3231800B2 (en) Image encoding apparatus and image encoding method
US6574367B1 (en) Method and apparatus for pattern matching encoding
JP3108133B2 (en) Adaptive coding of color document images
JPH1070654A (en) Image processor
JPH04358475A (en) Picture encoder
JPH0487460A (en) Picture processor
JPH06178122A (en) Adaptive encoding device for color image
JP3122481B2 (en) Image encoding apparatus and image encoding method
JPH08298589A (en) Image processor of photograph/document mixed image
JP4209174B2 (en) Color image processing apparatus and method
JPH0879754A (en) Image encoding device and image decoding device
JPH08307666A (en) Data processing unit for multi-gradation image with document and photograph in existence in mixture
JPH05308529A (en) Image encoder
KR930003482B1 (en) Simple identification method of mixed video and text documents
JP2959925B2 (en) Image processing device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980903