JP3205010B2 - Image compression device - Google Patents

Image compression device

Info

Publication number
JP3205010B2
JP3205010B2 JP20269291A JP20269291A JP3205010B2 JP 3205010 B2 JP3205010 B2 JP 3205010B2 JP 20269291 A JP20269291 A JP 20269291A JP 20269291 A JP20269291 A JP 20269291A JP 3205010 B2 JP3205010 B2 JP 3205010B2
Authority
JP
Japan
Prior art keywords
image
value
max1
min1
block
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.)
Expired - Fee Related
Application number
JP20269291A
Other languages
Japanese (ja)
Other versions
JPH0564010A (en
Inventor
信孝 三宅
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 JP20269291A priority Critical patent/JP3205010B2/en
Priority to US07/872,988 priority patent/US5818970A/en
Publication of JPH0564010A publication Critical patent/JPH0564010A/en
Application granted granted Critical
Publication of JP3205010B2 publication Critical patent/JP3205010B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は画像圧縮装置に関し、特
に自然画,写真等の階調を有する画像情報とコンピュー
タ等で発生させた人工的な文字,線画情報とが合成され
た画像情報を直交変換を利用して圧縮する画像圧縮装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression apparatus, and more particularly to an image compression apparatus which combines image information having a gradation such as a natural image and a photograph with artificial character and line drawing information generated by a computer or the like. The present invention relates to an image compression device that performs compression using orthogonal transform.

【0002】[0002]

【従来の技術】写真等の中間調画像をメモリに記憶する
のに必要なメモリ容量は、(画素数)×(階調ビツト
数)となり、高品位なカラー画像を記憶するためには膨
大なメモリ容量が必要であった。このため、各種の情報
量圧縮方式が提案され、情報量を圧縮した後、メモリに
記憶することにより、メモリ容量の削減が図られてい
る。近年、カラー静止画符号化の国際標準化方式とし
て、JPEG(Joint Photographic Experts Group)に
て提案されているBase Line System(基本方式)の符号
化方式がある。
2. Description of the Related Art The memory capacity required to store a halftone image such as a photograph in a memory is (number of pixels) × (number of gradation bits), which is enormous for storing a high-quality color image. Memory capacity was required. For this reason, various information amount compression methods have been proposed, and the amount of information is compressed and then stored in a memory to reduce the memory capacity. In recent years, as an international standardized method of color still image coding, there is a coding method of a Base Line System (basic method) proposed by JPEG (Joint Photographic Experts Group).

【0003】この方式は、人間の視界特性及びDCT
(離散コサイン変換)の成分の発生を考慮してDCT空
間の低域に量子化ステップが細かくなる様に設定されて
いる。その為、中間調画像に対しては、高圧縮率でも画
像品位がさほど劣化しない画像を提供することができ
る。
[0003] This system is based on human visual characteristics and DCT.
In consideration of the occurrence of (discrete cosine transform) components, the quantization step is set to be small in the low frequency band of the DCT space. Therefore, it is possible to provide an image in which the image quality is not significantly deteriorated even at a high compression ratio for a halftone image.

【0004】[0004]

【発明が解決しようとしている課題】しかしながら、上
記従来例では、以下に示す問題点を有している。
However, the above-mentioned conventional example has the following problems.

【0005】すなわち、上記従来例を、例えば画像出力
装置に応用した場合、一般的に画像出力装置はホストコ
ンピュータ,イメージスキャナ等の画像入力装置などと
接続され、システムとして動作することが多い。この場
合、画像出力装置にはホストコンピュータ上で作成され
たCG(コンピュータグラフィック)画像やイメージス
キャナによって入力された画像など様々な画像が送信さ
れることになる。
That is, when the above-mentioned conventional example is applied to, for example, an image output device, the image output device is generally connected to an image input device such as a host computer or an image scanner and often operates as a system. In this case, various images such as CG (computer graphic) images created on the host computer and images input by the image scanner are transmitted to the image output device.

【0006】上記従来例では、前述した様に、写真等の
イメージをイメージスキャナによりディジタル化した画
像等、DCT低域に変換係数が集中する様な画像におい
ては効力を発揮するが、上述のCG画像,文字等のフォ
ント情報,CAD(ComputerAided Design )などの線
画においては、DCT高域にも大きな変換係数が発生し
てしまい、高域係数の粗い量子化によって伸長された後
の画像は、いわゆる、モスキートノイズというリンギン
グを起こした劣悪な画像になってしまう。
In the above-mentioned conventional example, as described above, the present invention is effective for an image in which the conversion coefficients are concentrated in the low frequency band of the DCT, such as an image obtained by digitizing an image such as a photograph by an image scanner. In the case of images, font information such as characters, and line drawings such as CAD (Computer Aided Design), large transform coefficients also occur in the DCT high band, and the image expanded by coarse quantization of the high band coefficients is a so-called image. The result is a poor image with mosquito noise ringing.

【0007】そこで我々は、上述の様な性質の異なる画
像が送信された場合でも、自然画像と人工的に発生させ
た文字,線画等を自動識別してそれらを分離し、文字,
線画等においては深さ情報のないビットマップメモリに
格納し、文字,線画等の濃度情報(色情報)を階調メモ
リに格納し、残された自然画像は通常のDCT、量子化
後にイメージメモリに格納するという方式を提案した。
この方式により、人工的に発生させた文字,線画情報は
歪みを生じることがなく、自然画像の伸長後に合成する
ことが可能となる。また、文字,線画を分離した後の文
字,線画の存在していた画素を非分離領域の平均値で置
換した後、DCT,量子化を行なうことで、非分離領域
(自然画像の部分)も劣化の少ない良好な画像が再現で
きる。
Therefore, even when an image having different properties as described above is transmitted, we automatically identify a natural image and an artificially generated character, line drawing, etc., and separate them to obtain a character,
For line drawings and the like, the information is stored in a bitmap memory having no depth information, density information (color information) such as characters and line drawings is stored in a gradation memory, and the remaining natural image is subjected to normal DCT and image memory after quantization. We proposed the method of storing in.
According to this method, artificially generated character and line drawing information can be combined after natural image expansion without distortion. In addition, by replacing the pixel where the character and the line drawing existed after separating the character and the line drawing with the average value of the non-separable region, and performing DCT and quantization, the non-separable region (part of the natural image) is also obtained. A good image with little deterioration can be reproduced.

【0008】しかし、先の提案では、自然画像中の人工
的に発生させた文字,線画等の自動識別・分離が簡便か
つ誤検出の少ない方式では提案されていなかった。
However, in the above proposal, automatic identification and separation of artificially generated characters, line drawings, and the like in a natural image has not been proposed in a method that is simple and has few erroneous detections.

【0009】本発明は、上記課題を解決するためになさ
れたもので、ヒストグラム等を作成することなく、極め
て簡単な構成で正確に文字,線画を構成している画素
自動識別・分離できる画像圧縮装置を提供することを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and has an extremely simple structure and can accurately identify and separate pixels constituting a character or a line drawing without creating a histogram or the like. It is an object to provide a compression device.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、自然画像と線画像とが混在する画像を圧
縮する画像圧縮装置であって、入力画像データを所定の
ブロックにブロック化するブロック化手段と、該ブロッ
ク化手段にて得られた各ブロックに基づいて、所定の画
素値を有する画像データを、線画像として抽出する抽出
手段と、該抽出手段で抽出された画像データの画素の値
を、他の画素値に置換した後の画像データを圧縮する圧
縮手段とを有し、前記抽出手段は、前記ブロック内で最
大値(MAX1とする)、最小値(MIN1とする)、
2番目に大きな値(MAX2とする)、2番目に小さな
値(MIN2とする)の4種の値を抜き出し、MAX1
−MAX2、MIN2−MIN1を算出し、前記減算値
同士及び所定の閾値との比較結果に応じて、MAX1若
しくはMIN1の何れかを抽出するか決定することを特
徴とするまた、上記目的を達成するために、本発明
は、自然画像と線画像とが混在する画像を圧縮する画像
圧縮装置であって、入力画像データを所定のブロックに
ブロック化するブロック化手段と、該ブロック化手段に
て得られた各ブロックに基づいて、所定の画素値を有す
る画像データを、線画像として抽出する抽出手段と、該
抽出手段で抽出された画像データの画素の値を、他の画
素値に置換した後の画像データを圧縮する圧縮手段とを
有し、前記抽出手段は、前記ブロック内で最大値(MA
X1とする)、最小値(MIN1とする)、2番目に大
きな値(MAX2とする)、2番目に小さな値(MIN
2とする)の4種の値を抜き出し、(MAX1−MAX
2)/(MAX2−MIN1)、(MIN2−MIN
1)/(MAX1−MIN2)を算出し、前記除算値同
士及び所定の閾値との比較結果に応じて、MAX1若し
くはMIN1の何れかを抽出するか決定することを特徴
とする。
In order to achieve the above object, the present invention provides a method for compressing an image in which a natural image and a line image are mixed.
An image compression apparatus for compressing input image data to a predetermined size.
Blocking means for blocking into blocks;
Based on each block obtained by the
Extraction to extract image data having prime values as line images
Means, and pixel values of the image data extracted by the extraction means
Is replaced with another pixel value.
Compression means, and the extraction means includes
Large value (MAX1), minimum value (MIN1),
The second largest value (MAX2), the second smallest value
Extract the four values (value MIN2)
Calculate MAX2, MIN2-MIN1, and calculate the subtraction value.
Depending on the result of comparison with each other and a predetermined threshold, MAX1
Or to determine which of MIN1 to extract.
Sign . Further, in order to achieve the above object, the present invention
Is an image that compresses an image in which natural images and line images are mixed
A compression device for converting input image data into predetermined blocks.
Blocking means for blocking, and
Has a predetermined pixel value based on each block obtained
Extracting means for extracting image data as a line image,
The pixel values of the image data extracted by the extraction means are
Compression means for compressing the image data after replacement with prime values
The extraction means has a maximum value (MA) in the block.
X1), minimum value (MIN1), second largest
(MAX2), the second smallest value (MIN
2) are extracted, and (MAX1-MAX)
2) / (MAX2-MIN1), (MIN2-MIN)
1) Calculate / (MAX1-MIN2), and calculate
MAX1 or less depending on the result of comparison with the predetermined threshold value.
Or MIN1 is determined.
And

【0011】[0011]

【0012】[0012]

【0013】[0013]

【0014】[0014]

【0015】[0015]

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

【0016】図1は、本実施例における画像圧縮装置の
構成を示す概略ブロック図である。図中、100は入力
端子を示し、多値画像信号が入力される。ここで、入力
信号は階調を有する中間調画像やコンピュータで作成さ
れたCG画像,文字,線画等が、それぞれ区別なしに合
成された画像データである。入力された多値画像信号は
8ライン分のラインバッファ(不図示)に格納され、ブ
ロック化回路101により、8×8画素のブロック状に
切り出される。尚、本実施例では、直交変換に8×8の
DCTを用いて説明するが、他の直交変換方式であって
も、8×8以外のブロックサイズであっても良いことは
勿論である。
FIG. 1 is a schematic block diagram showing the configuration of an image compression apparatus according to this embodiment. In the figure, reference numeral 100 denotes an input terminal to which a multi-level image signal is input. Here, the input signal is image data in which a halftone image having a gradation, a CG image, a character, a line drawing, and the like created by a computer are combined without distinction. The input multi-level image signal is stored in a line buffer (not shown) for eight lines, and is cut out by the blocking circuit 101 into a block of 8 × 8 pixels. In the present embodiment, an explanation will be given using an 8 × 8 DCT for the orthogonal transform, but it is a matter of course that other orthogonal transform schemes or block sizes other than 8 × 8 may be used.

【0017】102はブロック内の抽出回路を示し、1
ブロック64画素中の最も値の大きなレベル(MAX1
とする)、2番目に値の大きなレベル(MAX2とす
る)、最も値の小さなレベル(MIN1とする)、そし
て、2番目に値の小さなレベル(MIN2とする)をそ
れぞれ抽出する。ここで、ブロック内で64画素が同一
レベルの場合には、MAX1=MAX2=MIN2=M
IN1となり、2レベルしかない場合には、MAX1=
MIN2,MAX2=MIN1に、又、3レベルの場合
は、MAX1,MAX2=MIN2,MIN1の3レベ
ルとなり、4レベル以上の場合には、MAX1>MAX
2>MIN2>MIN1の関係が成り立つ。この抽出回
路は、MAX1,MAX2,MIN2,MIN1の4個
のレジスタと比較器により構成され、64画素分の走査
終了と同時に4種のレベルが求められる。103は加算
器を示し、入力された64画素分の全てのレベルについ
てその加算値を求める回路である。本実施例の場合、入
力画素の階調性が8bit,1ブロック64画素分の
為、その加算された結果は最大14bit以内の値であ
る。
Reference numeral 102 denotes an extraction circuit in the block, and 1
The highest level (MAX1) in the block 64 pixels
The second highest level (MAX2), the lowest level (MIN1), and the second lowest level (MIN2) are extracted. Here, when 64 pixels are at the same level in the block, MAX1 = MAX2 = MIN2 = M
If there are only two levels, then MAX1 =
MIN2, MAX2 = MIN1, and in the case of three levels, MAX1, MAX2 = MIN2, MIN1 are three levels, and in the case of four or more levels, MAX1> MAX
2>MIN2> MIN1 holds. This extraction circuit is composed of four registers MAX1, MAX2, MIN2, and MIN1 and a comparator, and four levels are obtained at the same time when scanning of 64 pixels is completed. Reference numeral 103 denotes an adder, which is a circuit for obtaining an added value for all levels of the input 64 pixels. In the case of the present embodiment, since the gradation of the input pixel is 8 bits and 64 pixels per block, the added result is a value within a maximum of 14 bits.

【0018】104a,bはカウンタを示し、抽出回路
102により抽出されたMAX1,MIN1の2種のレ
ベルが、1ブロック内に何画素あったかをそれぞれカウ
ントするカウンタA,カウンタBを示す。そして、10
5a,bは抽出回路102で抽出されたMAX1,MI
N1がブロック内にどの位置に存在しているかを示す6
4bit分のビットマップを示す。すなわち、MAX1
ビットマップ105aは、ブロック内のMAX1に相当
する画素を“1”,他の画素を“0”に、MIN1ビッ
トマップ105bは、ブロック内のMIN1に相当する
画素を“1”,他の画素を“0”としてビットマップを
作成する。抽出回路102は64画素の走査において、
各レジスタへの登録,更新を繰り返すが、MAX1の更
新時にはカウンタA104a、及びビットマップ105
aのリセットを、MIN1の更新時にはカウンタB10
4b、及びビットマップ105bのリセットを連動させ
ることは勿論である。
Numerals 104a and 104b denote counters. Counters A and B respectively count how many pixels MAX1 and MIN1 extracted by the extraction circuit 102 are in one block. And 10
5a and 5b are MAX1 and MI extracted by the extraction circuit 102.
Indicates where N1 is located in the block 6
4 shows a bit map for 4 bits. That is, MAX1
The bitmap 105a sets the pixel corresponding to MAX1 in the block to “1” and sets the other pixels to “0”. The MIN1 bitmap 105b sets the pixel corresponding to MIN1 in the block to “1” and sets the other pixels to “1”. A bitmap is created as "0". The extraction circuit 102 scans 64 pixels.
Registration and update to each register are repeated. When MAX1 is updated, the counter A 104a and the bit map 105 are updated.
a is reset and the counter B10 is updated when MIN1 is updated.
4b and the reset of the bitmap 105b are of course linked.

【0019】106は判定回路を示し、抽出回路102
において抽出したMAX1の画素の部分を分離するか、
又は、MIN1の画素の部分を分離するか、若しくは、
分離しないかの3択を判定する判定回路を示す。この判
定回路106の詳細については後述する。そして、その
判定結果は、スイッチ115,スイッチ107、及びス
イッチ108に送信される。つまり、判定結果がMAX
1の画素の分離と判定した場合は、スイッチ115にお
いてMAX1の画素数をカウントしたカウンタA104
aが選択され、かつスイッチ107においてMAX1ビ
ットマップ105aが選択されて、ビットマップメモリ
109に格納される。また同様に、判定結果がMIN1
の画素の分離と判定した場合は、スイッチ115におい
てMIN1の画素数をカウントしたカウンタB104b
が選択され、かつスイッチ107においてMINビット
マップ105bが選択されて、ビットマップメモリ10
9に格納される。判定結果が分離せずと判定した場合に
は、スイッチ107においてビットスタッフィング11
0が選択され、64画素分、全て“0”がビットマップ
メモリ109に格納される。上述のビットマップメモリ
109は各ブロックで分離した画素の部分を“1”とし
て格納しておくもので、入力画像の(画素)bit分保
有するものとする。
Reference numeral 106 denotes a judgment circuit, and the extraction circuit 102
Is to separate the pixel part of MAX1 extracted in
Alternatively, the pixel portion of MIN1 is separated, or
5 shows a determination circuit for determining whether to select three types of separation. The details of the determination circuit 106 will be described later. Then, the determination result is transmitted to the switch 115, the switch 107, and the switch 108. That is, the judgment result is MAX
If it is determined that one pixel is separated, the counter A 104 counts the number of MAX1 pixels in the switch 115.
a is selected, and the MAX1 bitmap 105 a is selected by the switch 107 and stored in the bitmap memory 109. Similarly, the judgment result is MIN1
When it is determined that the pixels are separated, a counter B 104b that counts the number of pixels of MIN1 by the switch 115
Is selected, and the MIN bitmap 105b is selected by the switch 107.
9 is stored. If it is determined that the separation is not performed, the bit stuffing 11
0 is selected, and all “0” for 64 pixels are stored in the bitmap memory 109. The above-described bitmap memory 109 stores a pixel portion separated in each block as "1", and stores the (pixel) bits of the input image.

【0020】そして、判定結果がMAX1,MIN1の
どちらかを分離すると判定した場合は、スイッチ108
において図中、下側(端子B)が選択され、1ブロック
遅延回路111において64画素分遅延されたブロック
分の情報(抽出,判定に用いられたブロックと同一ブロ
ックの情報)が、分離,置換回路112に入力される。
すなわち、抽出回路102での1ブロックの走査がある
為に、同一ブロックの情報を1ブロック遅延して入力す
ることになる(上述の判定における時間は無視する)。
また、もし判定結果が分離せずと判定した場合には、ス
イッチ108において端子Aが選択され、1ブロック内
の情報は何も加工されずにDCT回路113へ送信され
る。判定回路106でMAX1,MIN1のどちらかを
選択した場合、選択したレベル値を階調メモリ114に
格納して保存する。ここで、階調メモリ114は1ブロ
ック当たり8bit分割り当てられ、入力画像の(画素
/64)Byte分保有するものである。
If it is determined that either MAX1 or MIN1 is to be separated, the switch 108
In the figure, the lower side (terminal B) is selected, and information of a block delayed by 64 pixels in the one-block delay circuit 111 (information of the same block as the block used for extraction and determination) is separated and replaced. The signal is input to the circuit 112.
That is, since one block is scanned by the extraction circuit 102, information of the same block is input with a delay of one block (the time in the above determination is ignored).
If it is determined that the determination result is not separated, the terminal A is selected by the switch 108, and the information in one block is transmitted to the DCT circuit 113 without any processing. When one of MAX1 and MIN1 is selected by the determination circuit 106, the selected level value is stored in the gradation memory 114 and saved. Here, the gradation memory 114 is allocated for 8 bits per block and holds (pixels / 64) bytes of the input image.

【0021】分離・置換回路112は、ビットマップメ
モリ109の読出しにより、“1”が発生したアドレス
に相当する画素を分離し、所定の値に置換する回路であ
る。尚、本実施例では、置換値を64画素中、分離しな
かった画素のレベルの平均値とする方法について述べ
る。すなわち、分離,置換回路112に入力される加算
器103からのデータをTとし、カウンタA104a、
又はカウンタB104bからの入力をCとして階調メモ
リ114からの入力をGとした場合、置換値TRは、次
式によって算出される。
The separation / replacement circuit 112 is a circuit that separates a pixel corresponding to the address where “1” occurs by reading out the bitmap memory 109 and replaces the pixel with a predetermined value. In this embodiment, a method will be described in which the replacement value is an average value of the levels of the pixels that are not separated out of 64 pixels. That is, the data from the adder 103 input to the separation / substitution circuit 112 is T, and the counter A 104a,
Alternatively, when the input from the counter B 104b is C and the input from the gradation memory 114 is G, the replacement value TR is calculated by the following equation.

【0022】TR=(T−C×G)/(64−C) すなわち、分離した画素の部分は全て置換値TRの値に
置換され、DCT回路113に入力される。そして、D
CT回路113によってDCT(離散コサイン変換)が
施され、出力端子116に出力され、DCTの係数を量
子化後メモリに格納される(不図示)。
TR = (T−C × G) / (64−C) That is, all the separated pixels are replaced with the value of the replacement value TR and input to the DCT circuit 113. And D
The DCT (Discrete Cosine Transform) is performed by the CT circuit 113, output to the output terminal 116, and the DCT coefficients are stored in a memory after quantization (not shown).

【0023】以上の構成による符号化が行なわれた後、
復号時には、逆にIDCT(逆離散コサイン変換)後の
信号上にビットマップメモリに基づいて、“1”が発生
している画素の部分にそのブロックの階調メモリの値を
代入することで、分離された部分を解像性,階調性共に
損なわず復元させることが可能となる。
After the encoding according to the above configuration is performed,
At the time of decoding, on the other hand, on the signal after IDCT (inverse discrete cosine transform), based on the bitmap memory, the value of the gray scale memory of the block is substituted for the pixel where "1" is generated, The separated portion can be restored without deteriorating both resolution and gradation.

【0024】図2は、上述した判定回路106の詳細な
構成を示すブロック図である。図示するように、入力さ
れたMAX1,MAX2,MIN2,MIN1の各信号
は、減算器201,202において、それぞれ(MAX
1−MAX2),(MIN2−MIN1)が算出され
る。そして、この(MAX1−MAX2),(MIN2
−MIN1)は、比較器203で大小関係が比較され、
スイッチ204にて値の大きな方が選択される。その選
択された信号は、比較器205において或る閾値(T
H)と比較され、分離するか否かの判定がなされる。す
なわち、(MAX1−MAX2)、又は(MIN2−M
IN1)のコントラストの差が、ある程度大きな場合、
そのコントラスト差が大きい方が分離の対象となる。
FIG. 2 is a block diagram showing a detailed configuration of the determination circuit 106 described above. As shown in the figure, the input signals MAX1, MAX2, MIN2, and MIN1 are subtracted by subtracters 201 and 202 into (MAX), respectively.
1-MAX2), (MIN2-MIN1) are calculated. Then, the (MAX1-MAX2), (MIN2
−MIN1), the magnitude relation is compared by the comparator 203,
The switch 204 selects the larger value. The selected signal is applied to a comparator 205 at a certain threshold (T
H) and a determination is made as to whether or not separation is to be performed. That is, (MAX1-MAX2) or (MIN2-M
When the difference in contrast of IN1) is large to some extent,
The one with the larger contrast difference is the object of separation.

【0025】上述の判定について、実際の画像情報を例
に説明する。図3に示す(a)は、ある自然画像の8b
itデータ上に、コンピュータから人工的に線画を発生
し、合成させた画像の或る1ブロックを抜き出したもの
である。このブロックでは、抽出回路102からの出力
は、それぞれMAX1=171,MAX2=170,M
IN2=104,MIN1=20となる。これを図2の
判定回路によって計算すると、MAX1−MAX2=
1,MIN2−MIN1=84となり、MIN2−MI
N1が或る閾値THと比較される。ここで、例えばTH
=40と固定しておいた場合、MIN2−MIN1>T
Hが成り立ち、MIN1の画素を人工的に発生させた画
素と仮定して分離することになる。
The above determination will be described by taking actual image information as an example. FIG. 3A shows a certain natural image 8b.
A line drawing is artificially generated from a computer on the it data and a certain block of the synthesized image is extracted. In this block, the outputs from the extraction circuit 102 are MAX1 = 171, MAX2 = 170, M
IN2 = 104 and MIN1 = 20. When this is calculated by the determination circuit of FIG. 2, MAX1-MAX2 =
1, MIN2-MIN1 = 84, and MIN2-MI
N1 is compared with a certain threshold TH. Here, for example, TH
= 40, MIN2-MIN1> T
H holds, and the pixels of MIN1 are separated on the assumption that they are artificially generated pixels.

【0026】 図3に示す(c)は、分離したMIN
1、つまり“20”の存在していた画素の位置に分離し
なかった55画素(64−9=55)の平均値“14
6”を代入・置換したブロックである。図3に示す
(b)及び(d)は、図3に示す(a)及び(c)にD
CTをかけた場合のDCT成分の発生状況を示す図であ
る(11bit精度,DC成分は入力画素からオフセッ
トをかけている)。
FIG. 3C shows the separated MIN.
1, that is, the average value “14” of 55 pixels (64−9 = 55) not separated at the position of the pixel where “20” existed.
6 "is a block obtained by substituting and replacing 6". (B) and (d) shown in FIG. 3 correspond to (a) and (c) shown in FIG.
FIG. 4 is a diagram illustrating a state of generation of a DCT component when a CT is applied (11-bit accuracy, the DC component is offset from an input pixel).

【0027】 図3に示す(b),(d)を比較しても
明らかな様に、分離に成功した場合はDCT高域の大き
な係数は除去され、係数の発生が低域に集中した符号化
効率の良好な量子化が行なえることがわかる。
As is apparent from a comparison between (b) and (d) shown in FIG. 3, when the separation is successful, a large coefficient in the DCT high band is removed, and a code in which the generation of the coefficient is concentrated in the low band. It can be seen that good quantization with high conversion efficiency can be performed.

【0028】次に、図4に示す(a),(b)は、図3
に示す(a)と同様に、“20”の値で自然画上にコン
ピュータで発生させた線画を合成させたものである。図
4に示す(a)の場合、MAX1=74,MAX2=6
4,MIN2=12,MIN1=10となり、図2の判
定回路では分離せずと判定される。また、図4に示す
(b)の場合は、MAX1=88,MAX2=70,M
IN2=32,MIN1=20となるが、TH>(MA
X1−MAX2)>(MIN2−MIN1)の関係とな
り、図4の(a)と同様に、分離せずと判定さる(TH
=40と仮定)。しかし、本来コンピュータ上で人工的
に発生させた信号の自動分離は、量子化時の高域成分の
粗い量子化によるモスキートノイズ等のリングキングの
発生を阻止し、符号量を増大させることなく視覚的な画
質の劣化を防ぐことが目的である。すなわち、図4に示
す(a),(b)のブロックにおいて、“20”という
値を分離できなくても、大した影響がないのは次の理由
からである。
Next, (a) and (b) shown in FIG.
Similarly to (a) shown in FIG. 7, a line drawing generated by a computer is synthesized on a natural image at a value of "20". In the case of FIG. 4A, MAX1 = 74, MAX2 = 6.
4, MIN2 = 12, and MIN1 = 10, and it is determined by the determination circuit of FIG. 2 that separation is not performed. In the case of FIG. 4B, MAX1 = 88, MAX2 = 70, M
IN2 = 32 and MIN1 = 20, but TH> (MA
X1−MAX2)> (MIN2−MIN1), and it is determined that separation is not performed as in (a) of FIG. 4 (TH
= 40). However, automatic separation of signals originally generated on a computer originally prevents ringing such as mosquito noise due to coarse quantization of high-frequency components during quantization, and allows visual recognition without increasing the code amount. The purpose is to prevent a typical deterioration in image quality. That is, in the blocks (a) and (b) shown in FIG. 4, even if the value "20" cannot be separated, there is no significant effect for the following reason.

【0029】まず第1に、入力画像そのものが“20”
という線画情報が目立たない。つまり、図4に示す
(a)の場合には、1ブロック内に“20”以上のレベ
ルの画素もあれば、“20”以下のレベルの画素もあ
り、自然画の部分が“20”というレベルをまたいで存
在していることになる。また、図4に示す(b)の場合
には、“20”というレベルをまたいではいないが、コ
ントラスト差がなく、自然画が近傍のレベルにより成り
立っていることになる。もともとの“20”という線画
が目立たない為、たとえDCT後の量子化によりAC成
分が量子化されても、多少振幅が変化する程度で視覚的
には大きな影響とはならない。
First, the input image itself is "20".
Line drawing information is inconspicuous. That is, in the case of (a) shown in FIG. 4, there are pixels having a level of “20” or more in one block, and pixels having a level of “20” or less in one block. It will exist across levels. Further, in the case of (b) shown in FIG. 4, although the level does not cross the level “20”, there is no contrast difference, and the natural image is formed by the neighboring levels. Since the original line drawing of “20” is inconspicuous, even if the AC component is quantized by the quantization after the DCT, the amplitude is slightly changed but does not have a great effect visually.

【0030】第2の理由として、“20”という線画が
合成されたことによるコントラストの差の変化があまり
ない(大きなコントラストのエッジにはならない)為、
分離しないでDCTを施しても、高域のAC成分は大き
な係数では発生しないからである。画質劣化の原因は主
に高域のAC成分の量子化誤差によるものであるが、A
C成分が小さい為、量子化誤差の影響は小さくて済む。
すなわち、分離をしないでDCT,量子化,逆量子化,
IDCTが行なわれても出力画像の視覚的劣化は少な
い。
The second reason is that there is not much change in the difference in contrast due to the combination of the line drawing “20” (it does not become a large contrast edge).
This is because even if DCT is performed without separation, the high-frequency AC component does not occur with a large coefficient. The cause of the image quality deterioration is mainly due to the quantization error of the high frequency AC component.
Since the C component is small, the influence of the quantization error can be small.
That is, DCT, quantization, inverse quantization,
Even if the IDCT is performed, the visual deterioration of the output image is small.

【0031】図5は、以上述べてきた判定について、わ
かりやすい様にヒストグラム化して表わしたものであ
る。1ブロックのヒストグラムが図5の様に2分された
場合、すなわち、自然画像のレベルの固まりと人工的な
ある同一レベルの線画が分かれた場合を、MAX1,M
AX2,MIN2,MIN1の抽出,判定により行なう
ものである。一般的にDTP(ディスクトップパブリッ
シング)を考えた場合、自然画中に合成する文字,線画
は自然画及び背景のレベルとは異なったレベル、つま
り、あるレベル差以上の値を用いることが多いと思われ
る。
FIG. 5 shows a histogram of the above-described determination for easy understanding. The case where the histogram of one block is divided into two as shown in FIG. 5, that is, the case where a cluster of natural image levels and an artificial line drawing of the same level are separated, is defined as MAX1, M2.
AX2, MIN2, and MIN1 are extracted and determined. In general, when DTP (desktop publishing) is considered, it is often the case that a character and a line image to be synthesized in a natural image use a different level from the levels of the natural image and the background, that is, a value equal to or more than a certain level difference. Seem.

【0032】以上説明したように、本実施例によれば、
ブロック内のレベルのヒストグラムを作成することな
く、極めて簡易的な方法で人工的に発生させた様な文
字,線画等の自動抽出,分離を実現可能とする。 <判定回路の変形例1>図6は、変形例における判定回
路106の構成を示すブロック図である。この例では、
図1に示すカウンタA,B104a,bからの出力が判
定回路106に入力されている場合である。図6におい
て、MAX1countは、カウンタA104aからの
入力、MIN1countは、カウンタB104bから
の入力とする。また、MAX1,MAX2,MIN2,
MIN1の入力は、図2と同様である。そして、図2と
同一部分には同一番号を付してある。
As described above, according to this embodiment,
It is possible to realize automatic extraction and separation of characters, line drawings, and the like that are artificially generated by an extremely simple method without creating a histogram of levels in a block. <Modification 1 of Judgment Circuit> FIG. 6 is a block diagram showing a configuration of a judgment circuit 106 in a modification. In this example,
This is a case where the outputs from the counters A, B 104a, b shown in FIG. In FIG. 6, MAX1count is an input from the counter A 104a, and MIN1count is an input from the counter B 104b. MAX1, MAX2, MIN2,
The input of MIN1 is the same as in FIG. The same parts as those in FIG. 2 are denoted by the same reference numerals.

【0033】図6の回路で(MAX1−MAX2),
(MIN2−MIN1)を求め、大小関係を比較器20
3で比較するのは図2の回路と同じであるが、この比較
結果をスイッチ601に送信している点が異なる。すな
わち、スイッチ601では比較器203で(MAX1−
MAX2)が選択されると、MAX1countを選択
し、(MIN2−MIN1)が選択されると、MIN1
countを選択する。スイッチ204及び比較器20
5については、図2の回路と同様であり、説明は省く
が、スイッチ601で選択されたMAX1又はMIN1
のブロック内の画素数は比較器602で或る閾値(TH
2)と比較される。
In the circuit of FIG. 6, (MAX1-MAX2),
(MIN2-MIN1), and the magnitude relation is calculated by the comparator 20.
3 is the same as that of the circuit of FIG. 2, except that the comparison result is transmitted to the switch 601. That is, in the switch 601, (MAX1-
When MAX2) is selected, MAX1count is selected. When (MIN2-MIN1) is selected, MIN1count is selected.
Select count. Switch 204 and comparator 20
5 is the same as the circuit of FIG. 2, and the description is omitted, but MAX1 or MIN1 selected by the switch 601 is omitted.
The number of pixels in the block is determined by a comparator 602 at a certain threshold (TH
2) is compared.

【0034】すなわち、この判定回路では、抽出するM
AX1又はMIN1が1ブロック内に(TH2)画素数
以上存在しなくてはならないという条件を加味したもの
で、この条件は、例えば図2に示した条件を満たしてい
ても、1ブロック内に1画素だけ飛び抜けた値の画素が
存在した場合、それが人工的に発生させた文字,線画で
あるのか、それとも入力画像のノイズによるものなのか
を判断可能としたものである。これは本発明の画像圧縮
装置を搭載したシステムの特性にもよる。この例では、
比較器205及び比較器602の2つの条件によりAN
D回路602を通して分離するか否かの判断が下され
る。 <判定回路の変形例2>図7は、前述した判定回路10
6の変形例を示すブロック図である。図示するように、
抽出したMAX1,MAX2,MIN2,MIN1は、
減算器701にてMAX1−MAX2(=aとおく)
が、減算器702にてMIN2−MIN1(=bとお
く)が、減算器703にてMAX1−MIN2(=cと
おく)が、そして、減算器704にてMAX2−MIN
1(=dとおく)が各々算出される。次に、算出された
a,b,c,dは、除算器705,706にてa/d,
b/cが求められ、図2の回路と同様に、比較器707
において大小関係が比較され、スイッチ708にて大き
な値の方が選択される。選択された値は、比較器709
にて或る閾値THと比較され、分離するか否かが判定さ
れる。すなわち、図2の回路では、コントラストの差に
よって判定していたのに対し、この判定回路ではコント
ラストの比によって判定を下すものである。
That is, in this determination circuit, the extracted M
The condition that AX1 or MIN1 must be present in the number of (TH2) pixels or more in one block is added. For example, even if the condition shown in FIG. If there is a pixel having a value that is only an extraordinary pixel, it is possible to determine whether the pixel is an artificially generated character or line drawing or is due to noise in the input image. This depends on the characteristics of the system equipped with the image compression device of the present invention. In this example,
AN is determined by the two conditions of the comparator 205 and the comparator 602.
A determination is made through the D-circuit 602 as to whether or not to separate. <Modification 2 of Judgment Circuit> FIG.
It is a block diagram which shows the modification of FIG. As shown
The extracted MAX1, MAX2, MIN2, MIN1 are:
MAX1-MAX2 (= a) in the subtractor 701
, MIN2-MIN1 (= b) in the subtractor 702, MAX1-MIN2 (= c) in the subtractor 703, and MAX2-MIN in the subtractor 704.
1 (= d) is calculated. Next, the calculated a, b, c, and d are divided by the dividers 705 and 706 into a / d,
b / c is obtained, and the comparator 707 is obtained similarly to the circuit of FIG.
The magnitude relationship is compared at, and the larger value is selected by the switch 708. The selected value is output to comparator 709
Is compared with a certain threshold value TH to determine whether or not separation is performed. That is, in the circuit of FIG. 2, the judgment is made based on the contrast difference, whereas in this judgment circuit, the judgment is made based on the contrast ratio.

【0035】次に、この例における判定を図8に示す実
際の画像情報に基づいて説明する。尚、図8は自然画像
上に“20”のレベルの線画を合成したものである。ま
た、図8に示すブロックでは、MAX1=39,MAX
2=38,MIN2=31,MIN1=20となり、図
2の判定回路では分離することはできなかったものであ
る。しかし、この判定回路においては、a=1,b=1
1,c=8,d=18が求まり、b/c>a/dが成立
する。ここで、b/c=1.375で、例えば閾値TH
=1.3とした場合、MIN1を分離することになる。
Next, the determination in this example will be described based on actual image information shown in FIG. FIG. 8 shows a line image of a level "20" synthesized on a natural image. In the block shown in FIG. 8, MAX1 = 39, MAX
2 = 38, MIN2 = 31, and MIN1 = 20, which cannot be separated by the determination circuit of FIG. However, in this determination circuit, a = 1 and b = 1
1, c = 8 and d = 18 are obtained, and b / c> a / d is satisfied. Here, b / c = 1.375, for example, the threshold value TH
In the case where = 1.3, MIN1 is separated.

【0036】尚、この例では、説明を簡単にする為、除
算器を用いているが、実際はb/c>a/dの比較を除
算器を用いてb×d>a×cの比較に置き換えても良い
し、除算器を用いる場合でも小数点が出ない様に、分子
をビットシフトする等、工夫しても良い。
In this example, a divider is used for the sake of simplicity. However, in actuality, the comparison of b / c> a / d is replaced with the comparison of b × d> a × c using the divider. It may be replaced, or even if a divider is used, the numerator may be bit-shifted so that no decimal point appears.

【0037】図9に示すヒストグラムに基づいて更に詳
述する。1ブロックのヒストグラムが図9に示した様に
2分された場合、この例ではブロック中の自然画像のレ
ベルのコントラストが少ない場合に有効である。つま
り、たとえ図9中のb(MIN2−MIN1)が同じで
も背景の自然画像のコントラスト(c(MAX1−MI
N2)にあたる)が大きい場合と小さい場合では、MI
N1の重要度(目立ちやすさ)は異なってくる。すなわ
ち、自然画中のコントラスト(c)と文字,線画部と思
われるレベルと自然画の最も線画のレベルに近いレベル
とのコントラスト(b)の比を分離するか否かの判定に
用いることができる。
This will be described in more detail based on the histogram shown in FIG. When the histogram of one block is divided into two as shown in FIG. 9, this example is effective when the contrast of the level of the natural image in the block is small. That is, even if b (MIN2-MIN1) in FIG. 9 is the same, the contrast (c (MAX1-MI
N2) is large and small, MI
The importance (conspicuousness) of N1 differs. That is, it can be used to determine whether or not to separate the ratio of the contrast (c) in the natural image and the contrast (b) of the level considered to be a character or line drawing portion from the level closest to the level of the line image in the natural image. it can.

【0038】[0038]

【他の実施例】次に、本発明に係る他の実施例を図面を
参照して以下に詳細に説明する。
Next, another embodiment of the present invention will be described in detail with reference to the drawings.

【0039】図10は、他の実施例としてカラー画像の
画像圧縮装置に応用した例である。今、例えばカラー画
像情報をR(レッド),G(グリーン),B(ブルー)
の3プレーンで画像情報を入力したとする。入力した
R,G,Bは、各色間の相関が強い為、例えばY(輝
度),U,V(共に色差)に色空間の変換を施して相関
性を少なくする。
FIG. 10 shows another embodiment applied to a color image compression apparatus. Now, for example, color image information is represented by R (red), G (green), and B (blue).
It is assumed that image information is input on the three planes. Since the input R, G, and B have a strong correlation between the colors, color space conversion is performed on, for example, Y (luminance), U, and V (both color differences) to reduce the correlation.

【0040】図10中、1001はY成分の自動分離判
定手段を示し、前述の実施例で述べた様に、MAX1,
MAX2,MIN2,MIN1の4個の値を用いて自動
分離をするか否かの判定をする。この実施例では、例え
ば判定条件を満たしてY成分の文字部と思われる画素を
“1”としたビットマップ1002が作られた場合、こ
のビットマップを用いて同じブロックの他の色プレーン
でも分離しても良いのかの確認を行なうものである。こ
の確認はU成分,V成分のどちらのプレーンでも、ビッ
トマップ“1”の画素が同じ値(同値と称する)をとる
ものか否かを判定する(U成分同値確認手段1003及
びV成分同値確認手段1004にて)。そして、100
5はAND回路を示し、U成分のプレーン,V成分のプ
レーンともにビットマップ1002の“1”の画素が同
値であったかを判定し、分離決定手段1006に送信す
る。
In FIG. 10, reference numeral 1001 denotes a means for automatically determining the separation of the Y component, as described in the above-described embodiment.
It is determined whether or not to perform automatic separation using the four values of MAX2, MIN2, and MIN1. In this embodiment, for example, when a bitmap 1002 in which a pixel considered to be a character part of a Y component is set to “1” by satisfying a determination condition is created, other bitplanes of the same block are separated using this bitmap. It is to confirm whether it is OK to do so. This check determines whether the pixels of the bitmap “1” take the same value (called the same value) in both the U component and the V component planes (the U component same value checking means 1003 and the V component same value check). Means 1004). And 100
Reference numeral 5 denotes an AND circuit, which determines whether the “1” pixel in the bitmap 1002 has the same value in both the U component plane and the V component plane, and transmits the same to the separation determining unit 1006.

【0041】ここで、実際の画像情報を用いて説明す
る。図11に示す(a)〜(c)は、ある画像の同一空
間座標における1ブロックの情報をそれぞれ示す図であ
り、Yプレーン,Uプレーン,Vプレーンに対応する。
図1の分離回路106によって分離判定を行った場合、
MIN1“20”の画素の部分が分離され、作成される
ビットマップは図11に示す(d)の様になる。この図
11の(d)を用いて、Uプレーン,Vプレーンの同値
確認を行なう。図11の(b)では、図11に示す
(d)の“1”の画素の部分は全て“130”という値
で同値条件を満たす。この“130”という値が他の画
素に出現しているか否かは問題ではなく、ビットマップ
が“1”であるにもかかわらず、“130”以外の値を
とる画素が存在した場合には同値条件を満たさないこと
になる。また、図11に示す(c)においても、図11
に示す(d)の“1”の画素の部分は全て“108”と
いう値で同値条件を満たしている。すなわち、コンピュ
ータ等で人工的に発生させた或る1色の値の画素は、
Y,U,Vの各プレーンでも、それぞれのプレーンでは
同じ値の画素をとりうる。これが、もしあるプレーンで
分離に成功したビットマップに基づいて他の2プレーン
で確認した場合、同値条件を満たさないとすれば、1色
の値ではないと判断することができる。
Here, a description will be given using actual image information. (A) to (c) of FIG. 11 are diagrams each showing information of one block in the same spatial coordinates of a certain image, and correspond to a Y plane, a U plane, and a V plane.
When the separation is determined by the separation circuit 106 in FIG.
The pixel portion of MIN1 “20” is separated, and the created bitmap is as shown in FIG. 11D. Using FIG. 11D, the equivalence check of the U plane and the V plane is performed. In (b) of FIG. 11, all of the “1” pixel portions in (d) of FIG. 11 satisfy the equivalence condition with a value of “130”. It does not matter whether or not the value of “130” appears in other pixels. If there is a pixel having a value other than “130” even though the bitmap is “1”, The equivalence condition will not be satisfied. Also, in (c) shown in FIG.
(D) of the pixel shown in (d) satisfies the same value condition with the value of "108". That is, a pixel of a certain color value artificially generated by a computer or the like is:
Even in each of the Y, U, and V planes, each plane can have the same pixel value. If this is confirmed on the other two planes based on the bitmap that has been successfully separated on a certain plane, it can be determined that the value is not one color if the equivalence condition is not satisfied.

【0042】また、図10ではY成分の自動分離判定時
の他に、U成分での自動分離判定、V成分での自動分離
判定も行っており、それぞれ分離判定条件に適合した場
合、分離を判定したプレーン以外の他の色成分において
同値確認手段を施す。そして、分離決定手段1006
は、それぞれの色成分の分離するか否かの信号を入力し
て分離を決定する。この決定は、Y成分での分離→U成
分での分離→V成分での分離の様に優先順位をつけて行
なう様にする。
In FIG. 10, in addition to the automatic separation judgment of the Y component, the automatic separation judgment of the U component and the automatic separation judgment of the V component are also performed. The same value checking means is applied to other color components other than the determined plane. Then, the separation determining means 1006
Inputs a signal indicating whether or not to separate each color component, and determines the separation. This determination is made by giving a priority such as separation in the Y component → separation in the U component → separation in the V component.

【0043】この様に、色成分に分割して同一空間のブ
ロックをれぞれ分離できるか否かを判定する為、例えば
コントラスト差において分離する場合でも、色空間中の
或る1点の近傍に押さえこむことが可能である。換言す
れば、この方式で分離できない時は背景の自然画の色と
合成した文字,線画の色が極めて近い時、即ち分離せず
に圧縮・伸長を施こしても画質劣化があまりない時のみ
となる。以上、いろいろな条件について説明したが、こ
れらの条件を単独で用いても、組み合わせて用いても良
いことは勿論である。
As described above, in order to determine whether or not blocks in the same space can be separated by being divided into color components, for example, even in the case where separation is performed based on a contrast difference, the vicinity of a certain point in a color space can be determined. It is possible to hold down. In other words, when separation is not possible with this method, only when the color of the character or line image synthesized with the color of the natural image of the background is very close, that is, when there is not much deterioration in image quality even if compression / expansion is performed without separation. Becomes Although various conditions have been described above, it is needless to say that these conditions may be used alone or in combination.

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

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
1ブロック内の自然画像上に人工的に合成された線画部
を、上述したようにブロック内で第1、第2番目に大き
い値と第1、第2番目に小さい値の存在とその関係を十
分考慮し、これらに基づいて、上記線画部を識別するよ
うにしたので、簡易かつ正確に線画部を抽出することが
可能となる
As described above, according to the present invention,
Line drawing part artificially synthesized on the natural image in one block
Is the first and second largest in the block as described above.
Value and the first and second smallest values and their relationship
It was separated consideration, on the basis of these, to identify the line drawing unit
As a result, it is possible to easily and accurately extract the line drawing part.
It becomes possible .

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

【図1】本実施例における画像圧縮装置の構成を示す概
略ブロック図である。
FIG. 1 is a schematic block diagram illustrating a configuration of an image compression device according to an embodiment.

【図2】本実施例における判定回路の詳細な構成を示す
図である。
FIG. 2 is a diagram illustrating a detailed configuration of a determination circuit according to the embodiment.

【図3】分離した場合としない場合のDCT成分の比較
を示す図である。
FIG. 3 is a diagram showing a comparison of DCT components with and without separation.

【図4】分離しない場合を示す図である。FIG. 4 is a diagram illustrating a case where separation is not performed.

【図5】本実施例での判定をヒストグラムによって説明
する図である。
FIG. 5 is a diagram illustrating a determination in the present embodiment using a histogram.

【図6】変形例1における判定回路の詳細な構成を示す
図である。
FIG. 6 is a diagram illustrating a detailed configuration of a determination circuit according to a first modification.

【図7】変形例2における判定回路の詳細な構成を示す
図である。
FIG. 7 is a diagram illustrating a detailed configuration of a determination circuit according to a second modification.

【図8】変形例2で抜き出せるブロックを示す図であ
る。
FIG. 8 is a diagram showing blocks that can be extracted in a second modification.

【図9】変形例2での判定をヒストグラムによって説明
する図である。
FIG. 9 is a diagram illustrating a determination in Modification Example 2 using a histogram.

【図10】他の実施例における画像圧縮装置の構成を示
す概略ブロック図である。
FIG. 10 is a schematic block diagram illustrating a configuration of an image compression device according to another embodiment.

【図11】他の実施例における各色成分のブロックとビ
ットマップを示す図である。
FIG. 11 is a diagram showing a block and a bit map of each color component in another embodiment.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 H04N 7/30 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/41-1/419 H04N 7/30

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 自然画像と線画像とが混在する画像を圧
縮する画像圧縮装置であって、 入力画像データを所定のブロックにブロック化するブロ
ック化手段と、該ブロック化手段にて得られた各ブロッ
クに基づいて、所定の画素値を有する画像データを、線
画像として抽出する抽出手段と、 該抽出手段で抽出された画像データの画素の値を、他の
画素値に置換した後の画像データを圧縮する圧縮手段と
を有し、前記 抽出手段は、前記ブロック内で最大値(MAX1と
する)、最小値(MIN1とする)、2番目に大きな値
(MAX2とする)、2番目に小さな値(MIN2とす
る)の4種の値を抜き出し、MAX1−MAX2、MI
N2−MIN1を算出し、前記減算値同士及び所定の閾
値との比較結果に応じて、MAX1若しくはMIN1の
何れかを抽出するか決定することを特徴とする画像圧縮
装置。
1. An image compression apparatus for compressing image and natural image and a line image are mixed, the blocking means for blocking an input image data into predetermined blocks, obtained in the blocking means based on each block <br/> click, the image data having a predetermined pixel value, the line
Extracting means for extracting an image as an image ;
And a compression means for compressing the image data after replacing the pixel values, the extraction means is a maximum value (MAX1 and in the block
Yes ), minimum value (assumed to be MIN1), second largest value
(MAX2) The second smallest value (MIN2)
4) are extracted, and MAX1-MAX2, MI
N2-MIN1 is calculated, and the subtracted values are compared with each other and a predetermined threshold is calculated.
MAX1 or MIN1 depending on the comparison result with the value.
An image compression apparatus for determining which one to extract .
【請求項2】 自然画像と線画像とが混在する画像を圧
縮する画像圧縮装置であって、 入力画像データを所定のブロックにブロック化するブロ
ック化手段と、 該ブロック化手段にて得られた各ブロックに基づいて、
所定の画素値を有する画像データを、線画像として抽出
する抽出手段と、 該抽出手段で抽出された画像データの画素の値を、他の
画素値に置換した後の画像データを圧縮する圧縮手段と
を有し、 前記抽出手段は、前記ブロック内で最大値(MAX1と
する)、最小値(MIN1とする)、2番目に大きな値
(MAX2とする)、2番目に小さな値(MIN2とす
る)の4種の値を抜き出、(MAX1−MAX2)
(MAX2−MIN1)、(MIN2−MIN1)
(MAX1−MIN2)を算出、前記算値同士及び
所定の閾値と比較結果に応じて、MAX1若しくはM
IN1の何れかを抽出するか決定することを特徴とする
画像圧縮装置。
2. An image in which a natural image and a line image are mixed is compressed.
An image compression apparatus for compressing input image data into predetermined blocks.
On the basis of each block obtained by the blocking means and the blocking means,
Extract image data with a predetermined pixel value as a line image
Extracting means, and a pixel value of the image data extracted by the extracting means,
Compression means for compressing the image data after replacement with pixel values;
And the extraction means has a maximum value (MAX1), a minimum value (MIN1), a second largest value (MAX2), and a second smallest value (MIN2) in the block. de disconnect the four values of, (MAX1-MAX2) /
(MAX2-MIN1) , (MIN2-MIN1) /
(MAX1-MIN2) is calculated, the divide value and between
MAX1 or M according to the result of comparison with the predetermined threshold
An image compression apparatus for determining which one of IN1 is to be extracted.
JP20269291A 1991-04-26 1991-08-13 Image compression device Expired - Fee Related JP3205010B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP20269291A JP3205010B2 (en) 1991-08-13 1991-08-13 Image compression device
US07/872,988 US5818970A (en) 1991-04-26 1992-04-24 Image encoding apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20269291A JP3205010B2 (en) 1991-08-13 1991-08-13 Image compression device

Publications (2)

Publication Number Publication Date
JPH0564010A JPH0564010A (en) 1993-03-12
JP3205010B2 true JP3205010B2 (en) 2001-09-04

Family

ID=16461577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20269291A Expired - Fee Related JP3205010B2 (en) 1991-04-26 1991-08-13 Image compression device

Country Status (1)

Country Link
JP (1) JP3205010B2 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
テレビ学技報14〔29〕(1990)安藤、東野、谷中p.25−30

Also Published As

Publication number Publication date
JPH0564010A (en) 1993-03-12

Similar Documents

Publication Publication Date Title
US5818970A (en) Image encoding apparatus
JP2656897B2 (en) Image data compression and decompression device
JP2960386B2 (en) Signal adaptive filtering method and signal adaptive filter
US8660347B2 (en) Image processing apparatus and processing method therefor
US6947600B1 (en) Information processing method, apparatus and storage medium for receiving and decoding a code sequence obtained by encoding an image
US6320981B1 (en) Image processing system and image processing method
EP0130415A2 (en) Data compression for graphics images
JP2001223903A (en) Method for compressing scanned document with color and gray scale
US20050018903A1 (en) Method and apparatus for image processing and computer product
EP1248472B1 (en) Image compressing device and image decompressing device, and computer-readable recorded medium on which program for allowing computer to execute image compressing method and image decompressing method
JP2005303979A (en) Image processing apparatus, image processing method, and program for making computer perform that method
US20010012397A1 (en) Image processing apparatus and method
US7983504B2 (en) Sign coring for contour reduction
EP0105085B1 (en) A method and apparatus for filtering grey scale image data
US7447384B2 (en) Image processing method and apparatus
US8023756B2 (en) Image encoding apparatus and method of controlling same
JP3231800B2 (en) Image encoding apparatus and image encoding method
US6947599B2 (en) Apparatus and method for image compression using a specified restart interval
US20050163389A1 (en) Image data comprising device, image data compression method, recording medium, and program
JP3205010B2 (en) Image compression device
JP3804906B2 (en) Line image processing method and recording medium
JP3108133B2 (en) Adaptive coding of color document images
JP3953183B2 (en) Image communication method and image communication apparatus
JP3122481B2 (en) Image encoding apparatus and image encoding method
JP3083336B2 (en) Image processing apparatus and method

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010601

LAPS Cancellation because of no payment of annual fees