JP2002024824A - Image processing device, image processing method and recording medium - Google Patents

Image processing device, image processing method and recording medium

Info

Publication number
JP2002024824A
JP2002024824A JP2000211377A JP2000211377A JP2002024824A JP 2002024824 A JP2002024824 A JP 2002024824A JP 2000211377 A JP2000211377 A JP 2000211377A JP 2000211377 A JP2000211377 A JP 2000211377A JP 2002024824 A JP2002024824 A JP 2002024824A
Authority
JP
Japan
Prior art keywords
image
histogram
calculating
character
binarization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000211377A
Other languages
Japanese (ja)
Other versions
JP4027016B2 (en
Inventor
Yukari Toda
ゆかり 戸田
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 JP2000211377A priority Critical patent/JP4027016B2/en
Priority to DE60138073T priority patent/DE60138073D1/en
Priority to EP01305987A priority patent/EP1173003B1/en
Priority to US09/902,172 priority patent/US6999619B2/en
Priority to CNB011325208A priority patent/CN1201266C/en
Priority to CNB200510054267XA priority patent/CN100348014C/en
Publication of JP2002024824A publication Critical patent/JP2002024824A/en
Priority to US11/246,301 priority patent/US7221790B2/en
Priority to US11/678,914 priority patent/US7376267B2/en
Application granted granted Critical
Publication of JP4027016B2 publication Critical patent/JP4027016B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To calculate the optimum representative color of a character. SOLUTION: This device is characterized by having a histogram calculation means for calculating a histogram corresponding to an input image, a binary threshold calculation means for calculating a binary threshold which blur a prescribed region image of the image based on the calculated histogram, a binarization means for binarizing the input image by using the calculated binary threshold, and a calculation means for calculating the color of the prescribed region image of the input image based on the binarization result by the binarization means.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は,画像処理装置、画
像処理方法及び記憶媒体に関する。
The present invention relates to an image processing device, an image processing method, and a storage medium.

【0002】[0002]

【従来の技術】近年、スキャナの普及により文書の電子
化が進んでいる。電子化された文書をフルカラーで所有
すると300dpiでA4サイズの場合約24Mバイトにな
り、保有するにもメモリを逼迫するし、メイル添付など
で他人に送信できるサイズではない。
2. Description of the Related Art In recent years, digitalization of documents has been advanced due to the spread of scanners. If you own a computerized document in full color, it will be about 24 Mbytes in the case of A4 size at 300 dpi, and it will take up too much memory to hold it, and it is not a size that can be sent to others by mail attachment or the like.

【0003】そこで、フルカラー画像を圧縮する方法と
してJPEGが知られている。JPEGは写真などの自然画像を
圧縮するには非常に効果も高く、画質も良いが、文字部
などの高周波部分をJPEG圧縮するとモスキートノイズと
呼ばれる画像劣化が発生し、圧縮率も悪い。一般的にオ
フィス文書は文字部が多いので、2値化を行いMMRな
どの圧縮をかけ、文字領域座標とそこの文字の代表色を
持つことで簡易的にカラーオフィス文書は表現できる。
さらに、雑誌などの複雑なカラー文書では、領域分割を
行い、文字領域を抜いた下地部分のJPEG圧縮と、文
字領域を最適閾値にて2値化した2値画像のMMR圧縮を
生成し、前記MMRデータに色情報を添付することで、
かなり複雑なカラー文書も小さなデータサイズで表現す
ることが可能となる。
Therefore, JPEG is known as a method for compressing a full-color image. JPEG is very effective for compressing natural images such as photographs, and has good image quality. However, JPEG compression of high-frequency portions such as characters causes image degradation called mosquito noise and a poor compression ratio. Generally, an office document has many character portions. Therefore, a color office document can be simply represented by binarizing and compressing such as MMR and having a character area coordinate and a representative color of the character.
Further, for complex color documents such as magazines, JPEG compression of the background portion where the character area is removed by performing area division and MMR compression of a binary image in which the character area is binarized with an optimal threshold are generated. By attaching color information to MMR data,
A considerably complicated color document can be represented with a small data size.

【0004】従って、文字領域部分の文字色代表色を算
出する技術が必要になる。従来、文字色代表色を算出す
るには例として次のような方法があった。
Therefore, a technique for calculating a character color representative color in a character area is required. Conventionally, there has been the following method as an example for calculating a character color representative color.

【0005】まず、文字領域の2値画像を参照しながら
黒部分の多値画像データの粗い3次元ヒストグラムをと
る。次にその粗い3次元ヒストグラムの一番高い値に含
まれる多値画像の画素の細かいヒストグラムを取り、そ
の一番高い値を代表色とする。
First, a coarse three-dimensional histogram of multivalued image data of a black portion is obtained with reference to a binary image of a character area. Next, a fine histogram of pixels of the multi-valued image included in the highest value of the coarse three-dimensional histogram is obtained, and the highest value is set as a representative color.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記方
法を用いて文字色の代表色を算出する場合に、12ポイ
ント以上の大きな文字を300dpi以上で読み込んだ文字で
あれば、そこそこの色を算出することができたが、10
ポイント以下の文字は本来算出した代表色データの2値
画像の黒に対応する割合は小さく、所望の色を算出する
ことができなかった。
However, when a representative color of a character color is calculated by using the above method, if a large character of 12 points or more is read at 300 dpi or more, a reasonable color is calculated. I was able to do 10
The proportion of characters below the point corresponding to black in the binary image of the originally calculated representative color data was small, and a desired color could not be calculated.

【0007】ここで、大きな文字の代表色を算出する場
合と、小さな文字の代表色を算出する場合を図19を利
用して説明する。
Here, the case of calculating the representative color of a large character and the case of calculating the representative color of a small character will be described with reference to FIG.

【0008】図19は白地に緑文字が書かれているサン
プルを示している。1901は比較的太い文字の2値化
結果を示している。その2値化結果1901の黒部分の
多値画像は1902のようなレベルの変化をしている。
1902のレベルの変化を見ると、文字部の代表色に相
当する部分1904及び1905に長くとどまっている
ため、色空間RGB上では図20(a)のように分布さ
れる。2002が図19における緑色の文字色の固まり
であり、すなわち文字部の代表色を表している。文字部
の固まり2002はある程度の大きさを有しているの
で、ここを抽出することは比較的容易である。
FIG. 19 shows a sample in which green characters are written on a white background. Reference numeral 1901 denotes a binarization result of relatively thick characters. The multivalued image of the black portion of the binarization result 1901 has a level change such as 1902.
Looking at the change in the level 1902, since it is long at the portions 1904 and 1905 corresponding to the representative colors of the character portion, the distribution is made as shown in FIG. 20A on the color space RGB. Reference numeral 2002 denotes a cluster of green character colors in FIG. 19, that is, a representative color of a character portion. Since the mass of the character portion 2002 has a certain size, it is relatively easy to extract it.

【0009】一方、図19の1906に示したような細
い文字においては多値画像でのレベル変化は1907の
ような形をしていて文字部の代表色に相当する部分19
08及び1909に到達するやいなやまた下地レベルへ
と変化してしまう。この場合のRGB色空間における分
布は図20(a)のようになり、図20(a)の200
2と比較すると、このデータから図20(b)の200
5のポイントを算出するのは困難である。その2値化処
理により点線であらわした線の左側が文字として黒く2
値化され、従来の方法で説明した方法により代表色を算
出すると、最多数存在する値として2006の点が得ら
れてしまう。これは得たい文字色と比較して白っぽい緑
となり、好ましくない。
On the other hand, in a thin character as shown by 1906 in FIG. 19, the level change in the multi-valued image has a shape like 1907 and corresponds to a portion 19 corresponding to the representative color of the character portion.
As soon as they reach 08 and 1909, they change to the background level again. The distribution in the RGB color space in this case is as shown in FIG.
In comparison with the data of FIG.
It is difficult to calculate the 5 points. The left side of the dotted line is black as a character by the binarization processing.
When the value is converted into a value and the representative color is calculated by the method described in the conventional method, 2006 is obtained as the value having the largest number. This results in a whitish green color in comparison with the desired character color, which is not preferable.

【0010】また、この現象を防ぐために、2値画像を
細線化し、その細線画像により従来の代表色算出処理を
行うことが考えられるが、その方法では、以下のような
不具合が考えられる。
In order to prevent this phenomenon, it is conceivable that the binary image is thinned and a conventional representative color calculation process is performed using the thin line image. However, this method has the following drawbacks.

【0011】簡単にするため「。」を例にして説明を行
う。
For the sake of simplicity, the description will be made using "." As an example.

【0012】図21に白地に緑の「。」が書かれている
とする。この「。」のレベル遷移は2104のような変
化をしていることが考えられる。これは本来中央の窪み
は白のレベルまで戻ることが理想であるのだが、小さい
ポイントの文字の「。」は戻りきらないことがある。そ
れを2105に示す閾値で2値化処理をおこなうと21
02に示すような真ん中が白くない黒丸が2値化結果に
なる。これに対して細線化処理を行うと2103のよう
になる。この2値画像が示す多値画像の位置はレベル2
104で示すと2106のポイントとなり、これは代表
色としては好ましくないレベルである。
Assume that a green "." Is written on a white background in FIG. It is conceivable that the level transition of “.” Changes like 2104. Ideally, the central depression should return to the white level, but the small point character "." When the binarization process is performed using the threshold value indicated by 2105, 21
A black circle whose center is not white as shown in 02 is a binarization result. On the other hand, when the thinning processing is performed, the result becomes 2103. The position of the multi-valued image indicated by the binary image is level 2
The point 104 indicates 2106 points, which is an undesirable level for the representative color.

【0013】このような「潰れ現象」は特にポイント数
の小さい文字において発生するので、細線化処理が効果
的でないことがわかる。
Since such a "crushing phenomenon" occurs particularly in a character having a small number of points, it can be seen that the thinning processing is not effective.

【0014】一方、文字を表現する出力としての2値画
像を文字代表色算出に使用していた。しかし、文字を最
適に表現する閾値は文字がかすれないように2値化する
ことが好ましい。その後のOCR処理などを考えても、か
すれるよりは潰れるように2値化したほうがOCR結果も
良いことが知られている。
On the other hand, a binary image as an output representing a character has been used for calculating a character representative color. However, it is preferable that the threshold for optimally representing a character is binarized so that the character is not blurred. Even in consideration of the subsequent OCR process, it is known that the OCR result is better when binarized so as to be crushed rather than squashed.

【0015】図22に文字領域の典型的な輝度ヒストグ
ラムの様子を示す。ポイント2201が文字の2値化画
像としては望ましい点である。しかし、この点で2値化
を行うと、下地から文字部分への遷移する画素も黒く2
値化され出力としては好ましいのに、文字の代表色を算
出するにはノイズとなる。
FIG. 22 shows a typical luminance histogram of a character area. Point 2201 is a desirable point as a binary image of a character. However, when binarization is performed at this point, the pixels that transition from the background to the character portion are also black.
Although it is preferable as a value and an output, it becomes noise when calculating the representative color of the character.

【0016】その様子を図22に示す。図22のポイン
ト2201で2値化を行うと、図23の2301で2値
化をすることになり、2値化結果は2302、2303
のように下地から文字への遷移部分も多く含んだ2値画
像となる。
FIG. 22 shows this state. When binarization is performed at point 2201 in FIG. 22, binarization is performed at 2301 in FIG. 23, and the binarization result is 2302, 2303
The binary image contains many transitions from the background to the characters.

【0017】従って、上記のように文字を表現する出力
としての2値画像を文字代表色算出に使用していたの
で、文字部分の最適な代表色を算出することができなか
った。
Accordingly, since the binary image as the output representing the character is used for calculating the character representative color as described above, the optimum representative color of the character portion cannot be calculated.

【0018】本発明は、上記問題を解決し、文字部分の
最適な代表色を算出することができる画像処理装置、画
像処理方法及び記憶媒体を提供することを目的とする。
An object of the present invention is to provide an image processing apparatus, an image processing method, and a storage medium which can solve the above-mentioned problem and can calculate an optimum representative color of a character portion.

【0019】[0019]

【課題を解決するための手段】上記目的を達成するため
に本発明は、入力画像に応じたヒストグラムを算出する
ヒストグラム算出手段と、前記算出されたヒストグラム
に基づいて前記画像の所定領域画像がかすれるような2
値化閾値を算出する2値化閾値算出手段と、前記算出さ
れた2値化閾値で前記入力画像を2値化する2値化手段
と、前記2値化手段の2値化結果に基づいて前記入力画
像の所定領域画像の色を算出する算出手段とを有するこ
とを特徴とする。
To achieve the above object, the present invention provides a histogram calculating means for calculating a histogram corresponding to an input image, and a predetermined area image of the image is blurred based on the calculated histogram. Like 2
A binarization threshold calculating unit for calculating a binarization threshold; a binarization unit for binarizing the input image with the calculated binarization threshold; and a binarization result based on the binarization result of the binarization unit. Calculating means for calculating a color of a predetermined area image of the input image.

【0020】[0020]

【発明の実施の形態】(第1の実施形態)以下、図面を
参照して本発明に係る好適な実施形態を詳細に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) Hereinafter, a preferred embodiment according to the present invention will be described in detail with reference to the drawings.

【0021】図1は、本実施形態の応用構成図を示す。FIG. 1 shows an application configuration diagram of the present embodiment.

【0022】102は原画像101を入力し、原画像1
01に対して2値化を行い2値画像(a)103を生成
する2値化部(a)である。
Reference numeral 102 denotes an input of the original image 101 and an original image 1
The binarization unit (a) generates a binary image (a) 103 by binarizing 01.

【0023】104は2値画像(a)を入力し、2値画
像(a)から文字領域、写真領域などの領域を検出し
て、その座標および属性、例えば文字、写真などの領域
情報105を生成する領域分割部である。
Reference numeral 104 denotes a binary image (a), which detects an area such as a character area and a photograph area from the binary image (a), and outputs coordinates and attributes thereof, for example, area information 105 such as characters and photographs. This is a region dividing unit to be generated.

【0024】106は領域情報105から文字の属性を
持つ領域に対応する2値画像の1部分に対してMMR圧縮
を行い、圧縮コードD107を生成するMMR圧縮部であ
る。
An MMR compression unit 106 performs MMR compression on one part of a binary image corresponding to a region having a character attribute from the region information 105, and generates a compression code D107.

【0025】108は領域情報105から文字の属性を
持つ領域に対応する領域内に含まれる文字の代表色を算
出する文字代表色演算部である。文字代表色演算部10
8内には、文字代表色算出部のための2値化部(b)1
081を有し、2値画像(b)1082を生成する。こ
こで算出された色情報は領域情報105の領域の属性と
して新たに書き込まれる。
Reference numeral 108 denotes a character representative color calculation unit that calculates a representative color of a character included in a region corresponding to a region having a character attribute from the region information 105. Character representative color calculation unit 10
8, a binarizing unit (b) 1 for a character representative color calculating unit
081 to generate a binary image (b) 1082. The color information calculated here is newly written as the attribute of the area in the area information 105.

【0026】109は前記領域情報105の情報から自
然画像の属性を持つ領域に対応する領域内に含まれる元
画像の1部分のJPEG圧縮を行い、圧縮コードCを生成す
るJPEG圧縮部である。
Reference numeral 109 denotes a JPEG compression unit for performing JPEG compression of a part of the original image included in the area corresponding to the area having the attribute of the natural image from the information of the area information 105 to generate a compression code C.

【0027】更に上記構成について詳細を説明する。Further, the above configuration will be described in detail.

【0028】図3に2値化部(a)102及び領域分割
部104における処理の流れの一例を示す。
FIG. 3 shows an example of a processing flow in the binarizing section (a) 102 and the area dividing section 104.

【0029】ステップS301〜S303に2値化部
(a)102における処理の流れを示し、ステップS3
04〜S306に領域分割部104における処理の流れ
を示す。
Steps S301 to S303 show the flow of processing in the binarization unit (a) 102, and step S3
04 to S306 show the flow of processing in the area dividing unit 104.

【0030】ステップS301にて原画像101、例え
ばRGBカラー画像を入力し、以下に示す式により、輝度
変換を行い、輝度画像Jを生成する。
In step S301, an original image 101, for example, an RGB color image is input, and luminance conversion is performed by the following equation to generate a luminance image J.

【0031】Y = 0.299R+0.587G+0.114BY = 0.299R + 0.587G + 0.114B

【0032】ステップS302にて輝度データのヒスト
グラムを取り、2値化を行うための閾値Tを算出する。
In step S302, a histogram of the luminance data is obtained, and a threshold value T for performing binarization is calculated.

【0033】ステップS303にて輝度画像Jを閾値T
にて2値化し、2値画像Kを生成する。
In step S303, the luminance image J is set to a threshold T.
To generate a binary image K.

【0034】ステップS304にて黒画素の輪郭線追跡
を行い、すべての黒領域をラベル付けする。
In step S304, contour tracing of black pixels is performed, and all black areas are labeled.

【0035】ステップS305にてラベル付けされた黒
領域をその形や位置から文字、自然画の判定を行う。
In step S305, the character and the natural image are determined from the shape and position of the labeled black area.

【0036】ステップS306にて更に、文字領域に関
して形や位置から結合するものを結合する。ステップS
306の結合処理は行わなくて良い。ただしその場合、
代表色を算出する文字領域の数が多くなり、処理時間が
かかってしまう欠点がある。利点としては、細やかに文
字色の変化に対応できることがある。
In step S306, those which are combined from the shape and position of the character area are combined. Step S
The combining process of 306 may not be performed. However, in that case,
There is a drawback that the number of character areas for calculating the representative color increases and processing time is required. The advantage is that it is possible to respond to a change in character color finely.

【0037】次に図2の原画像を使用して、ステップS
306の結合処理まで行った場合を説明する。
Next, using the original image of FIG.
A case where the processing up to the combining processing of step 306 is performed will be described.

【0038】図2の原画像に対して輝度変換を行い(S
301、S302)、その輝度のヒストグラムを算出す
ると図4のようになる。このヒストグラムから平均、分
散、などのデータを利用して閾値T=150を算出し、
2値化した画像は図5のようになる(S303)。これ
が図1の103の2値画像である。図6は図5の2値画
像の解像度を落したものに、輪郭線追跡処理を行い、す
べてをラベリングした様子である(S304)。このラ
ベル付けされた黒領域の形、位置などの情報から文字、
および自然画像の属性判断を行う(S305)。ただし
実際にこのような画像が生成されるわけではなく、イメ
ージである。ここでは、601が大きく、内部も黒いそ
の形状から自然画像と判断される。また、602から6
05については、内部に文字を所有し、空洞である形状
から「枠」であると判断される。本実施形態において
は、枠情報は領域情報105に保持されず無視されるこ
ととする。しかし、その限りでなく、枠情報として保有
することもアプリケーションも考えられる。または文字
領域情報の下地として扱うアプリケーションも考えられ
る。その場合、下地の色を算出する手段を持つ必要があ
る。
The original image shown in FIG. 2 is subjected to luminance conversion (S
301, S302), and calculating the histogram of the luminance results in FIG. From this histogram, a threshold T = 150 is calculated using data such as average and variance,
The binarized image is as shown in FIG. 5 (S303). This is the binary image 103 in FIG. FIG. 6 shows a state in which the resolution of the binary image shown in FIG. 5 has been reduced, contour line tracing processing has been performed, and all the images have been labeled (S304). From information such as the shape and position of this labeled black area, characters,
Then, the attribute of the natural image is determined (S305). However, such an image is not actually generated, but an image. Here, 601 is large and the inside is black, so that it is determined to be a natural image. Also, from 602 to 6
05 has a character inside and is determined to be a "frame" from the hollow shape. In the present embodiment, the frame information is not stored in the area information 105 and is ignored. However, the present invention is not limited to this, and it may be held as frame information or an application. Alternatively, an application that handles the background of the character area information is also conceivable. In that case, it is necessary to have a means for calculating the color of the background.

【0039】図7が図2の原画像から文字の属性がつい
て抽出された黒領域を示した図である。ここで、必要な
らばこれらの黒画素の集まりを位置の近さや横幅、高さ
の一致からグループ化していくと、図8に示すような、
801から817の17個の文字領域が検出できる。本
実施形態ではグループ化(S306)を行うこととし
て、これらの17個の座標データが文字という属性を持
ち、図1の109に格納される。一方、図6の601の
座標データは写真という属性を持ち、図1の109に格
納される。
FIG. 7 is a diagram showing a black region extracted from the original image of FIG. 2 with the attribute of the character. Here, if necessary, a group of these black pixels is grouped based on the closeness of the position, the width, and the height, and as shown in FIG.
17 character areas 801 to 817 can be detected. In the present embodiment, grouping (S306) is performed, and these 17 pieces of coordinate data have an attribute of a character, and are stored in 109 of FIG. On the other hand, the coordinate data 601 in FIG. 6 has an attribute of a photograph and is stored in 109 in FIG.

【0040】次に、文字代表色演算部108における処
理の流れを図9に示す。領域情報105に格納されたす
べての座標に対して処理を行うので、ステップS901
では未処理の文字座標があるかどうかチェックし、あっ
たらステップS902にすすみ、無かったらendにすす
む。
Next, the flow of processing in the character representative color calculation unit 108 is shown in FIG. Since processing is performed on all coordinates stored in the area information 105, step S901 is performed.
Then, it is checked whether or not there are unprocessed character coordinates. If there is, the process proceeds to step S902, and if not, the process proceeds to end.

【0041】ステップS902にて、その座標の属性が
文字であるかどうかチェックし、文字であったらステッ
プS903にすすみ、文字でない場合はステップS90
1に戻る。
In step S902, it is checked whether or not the attribute of the coordinate is a character. If the attribute is a character, the process proceeds to step S903. If not, the process proceeds to step S90.
Return to 1.

【0042】ステップS903にてその領域情報に対応
する原画像の輝度ヒストグラムを算出する。この輝度ヒ
ストグラムは一部の文字領域の物なので、図4に示した
ような全体のヒストグラムのように複雑な形状ではな
く、図22に示したようなシンプルな形状をしている可
能性が高い。
In step S903, a luminance histogram of the original image corresponding to the area information is calculated. Since this luminance histogram is a part of a character area, it is highly likely that the luminance histogram has a simple shape as shown in FIG. 22 instead of a complicated shape as in the whole histogram as shown in FIG. .

【0043】そこで、ステップS904にて代表色算出
に最適な閾値、すなわち文字がかすれるような閾値T2を
算出する。図22でいうと、ポイント2202である。
Therefore, in step S904, a threshold value optimal for calculating the representative color, that is, a threshold value T2 at which characters are blurred is calculated. In FIG. 22, it is point 2202.

【0044】閾値T2を算出する方法としては一例として
次のような方法がある。図10のフローチャートを使用
して説明する。
As an example of a method for calculating the threshold value T2, there is the following method. This will be described with reference to the flowchart of FIG.

【0045】ステップS1001にて、無限ループに陥
らないように処理数をカウントする変数limitに0を代
入する。
In step S1001, 0 is substituted for a variable limit for counting the number of processes so as not to fall into an infinite loop.

【0046】ステップS1002にて、輝度ヒストグラ
ムから、ヒストグラムの平均値(average)とそのスキュ
ー(skew)を求める。このskewは特別にskew_firstとし
て、値を保持しておく。それらの計算式は、以下のよう
になる。
In step S1002, an average value (average) of the histogram and its skew are obtained from the luminance histogram. This skew holds the value specially as skew_first. The calculation formulas are as follows.

【0047】[0047]

【外1】 [Outside 1]

【0048】ステップS1003にてHistUpperにavera
geを代入し、HistLowerに0を代入する。ステップS10
04にてlimitが10以上であるかどうかチェックし、
10以上であるならばステップS1009にすすむ。
(ここで、10でなくて、5でも構わないし、20でも
構わない)ステップS1005にて、HistUpperからHis
tLower内のヒストグラムの
In step S1003, avera is added to HistUpper.
Substitute ge and 0 for HistLower. Step S10
Check if limit is 10 or more at 04,
If it is 10 or more, the process proceeds to step S1009.
(Here, it may be 5 instead of 10, and may be 20.) In step S1005, from HistUpper to His
of the histogram in tLower

【0049】[0049]

【外2】 を算出する。[Outside 2] Is calculated.

【0050】ステップS1006にて、skew<my*0.1の
条件を満足するか否かをチェックして、満足した場合は
これ以上の計算は必要ないとしてステップS1010に
飛ぶ。満足しない場合はステップS1007にすすむ。
ステップS1007にてskew< 0.0かつskew_first < sk
ew*0.1の条件を満足するか否かをチェックして、満足し
た場合はこれ以上の計算は必要ないとして1010に飛
ぶ。満足しない場合はステップS1008にすすむ。ス
テップS1008ではHistLowerにaverageを代入する。
そしてステップS1009にてlimitに1を足し、ステ
ップS1004に戻る。
In step S1006, it is checked whether or not the condition of skew <my * 0.1 is satisfied. If the condition is satisfied, no further calculation is necessary and the process jumps to step S1010. If not, the process proceeds to step S1007.
In step S1007, skew <0.0 and skew_first <sk
Check whether the condition of ew * 0.1 is satisfied, and if satisfied, skip to 1010 assuming that no further calculation is necessary. If not, the process proceeds to step S1008. In step S1008, average is substituted for HistLower.
In step S1009, 1 is added to limit, and the process returns to step S1004.

【0051】以上のような繰り返しにより、最終的に1
010にて閾値T2にaverageが代入され、それは図22
のポイント2202に示すようなかすれる2値画像を得
られる閾値となる。
By the repetition as described above, finally 1
At 010, average is substituted for the threshold T2, which is shown in FIG.
Is a threshold value for obtaining a faint binary image as shown by point 2202 in FIG.

【0052】ヒストグラムの形状によっては、2値化す
ると黒画素の全くない閾値を算出する可能性もあるの
で、その閾値T2より黒側に存在する画素の数を数え、
極端に少ない場合は多少白よりに補正する必要がある。
そのような結果に陥り易いヒストグラムの形状を図17
に示す。
Depending on the shape of the histogram, there is a possibility of calculating a threshold value with no black pixels at the time of binarization. Therefore, the number of pixels existing on the black side from the threshold value T2 is counted.
If the amount is extremely small, it is necessary to correct the color slightly more than white.
FIG. 17 shows the shape of the histogram that easily leads to such a result.
Shown in

【0053】以上のような複雑な計算を行う代わりに、
閾値T2を算出する方法としては、ヒストグラムをとり、
全画素数に対して5%の画素が黒に2値化される閾値を
選ぶ方法などがある。(数値は一例)そのような閾値算
出例を図18に示す。
Instead of performing the above complicated calculations,
As a method of calculating the threshold value T2, take a histogram,
There is a method of selecting a threshold value at which 5% of pixels are binarized to black with respect to the total number of pixels. FIG. 18 shows an example of such a threshold value calculation.

【0054】ステップS905にて、前記閾値T2にてそ
の部分領域の2値化処理を2値化部(b)1081で行
い、図1の1082に示すような2値画像(b)を生成
する。図24に示すように、前記閾値T2、すなわちポイ
ント2202で2値化すれば、図24の2401で2値
化することになり、2402、2403に示したような
遷移部を含まない2値化が可能となる。必要ならば、こ
の2値画像をさらに細線化処理を行う。この2値画像は
かすれるような閾値なので、図21を使用して説明した
ような従来の代表色算出処理にて施した細線処理のよう
な失敗の発生の可能性は少ない。ステップS906にて
2値画像(b)の黒部分に対応する元画像の画素のRGB
のおのおののヒストグラムを生成する。生成されたヒス
トグラムの色空間は、RGBに限らず元画像がYUVならY
UVのヒストグラムをとってもよい。ステップS907に
て、RGBヒストグラムおのおののピークを文字代表色と
して、領域情報105の対応する領域の属性として書き
込む。
In step S905, the binarization unit (b) 1081 performs a binarization process on the partial area at the threshold value T2 to generate a binary image (b) as shown by 1082 in FIG. . As shown in FIG. 24, if binarization is performed at the threshold T2, that is, at the point 2202, binarization is performed at 2401 in FIG. 24, and binarization that does not include a transition portion 2402 and 2403 is performed. Becomes possible. If necessary, the binary image is further subjected to a thinning process. Since this binary image is a threshold value that is blurred, there is little possibility of failure such as thin line processing performed in the conventional representative color calculation processing described with reference to FIG. In step S906, the RGB values of the pixels of the original image corresponding to the black portions of the binary image (b)
Generate a histogram for each. The color space of the generated histogram is not limited to RGB, but Y if the original image is YUV
A UV histogram may be taken. In step S907, each peak of the RGB histogram is written as the character representative color as the attribute of the corresponding area in the area information 105.

【0055】このステップS906,ステップS907
は以下に示す他の方法も考えられる。例えば、RGBおの
おののヒストグラムを算出するのではなく、RGB3次元
のヒストグラムを算出する。その場合細かくヒストグラ
ムを算出することは、計算機の性能的に無理であるし、
また、色の遷移点というノイズに惑わされないようにす
るため粗いヒストグラムを算出することが好ましい。こ
の大まかなヒストグラムで一番大きな値を得た後に、こ
のヒストグラムに存在する細かなヒストグラムを改めて
算出し、また、一番大きな値を得る方法もある。
Steps S906 and S907
The following methods are also conceivable. For example, instead of calculating a histogram for each of RGB, an RGB three-dimensional histogram is calculated. In that case, it is impossible to calculate the histogram in detail because of the performance of the computer.
In addition, it is preferable to calculate a rough histogram so as not to be confused by noise such as a color transition point. After obtaining the largest value in the rough histogram, there is also a method of calculating a fine histogram existing in the histogram again and obtaining the largest value.

【0056】最終的には2値画像領域情報に従って、文
字の属性を持つ領域に関しては2値画像(a)102の
対応する領域のMMR圧縮を施して圧縮コードD107を生
成し、一方、自然画像の属性を持つ領域に関しては元画
像データの対応する領域のJPEG圧縮を行い圧縮コー
ドC110を生成する。文字や自然画像などの領域の種
別および文字のときはさらに代表色を保有する領域情報
105、圧縮コードC111、圧縮コードD112の3
つをまとめたフォーマットを必要ならば生成する。これ
が圧縮データとなる。
Finally, according to the binary image area information, the area having the character attribute is subjected to MMR compression of the corresponding area of the binary image (a) 102 to generate a compression code D107, while the natural image JPEG compression of the corresponding area of the original image data is performed on the area having the attribute of. For the type of area such as a character or a natural image, and in the case of a character, three pieces of area information 105 holding a representative color, a compression code C111, and a compression code D112
Generate a combined format if necessary. This is the compressed data.

【0057】(第2の実施形態)図11に他の応用構成
例を示す。本実施形態では領域分割する画像として閾値
による2値画像を使用するのではなく、微分フィルタを
かけ、すべての画素の近隣の画素とのエッジ量を算出
し、そのエッジ量を2値化することにより得られた2値
画像を使用して領域分割を行う。領域分割法としては第
1の実施形態と同様に輪郭線追跡をすることとする。
(Second Embodiment) FIG. 11 shows another application configuration example. In the present embodiment, instead of using a binary image based on a threshold as an image to be divided into regions, a differential filter is applied to calculate the edge amounts of all pixels with neighboring pixels, and binarize the edge amounts. Is divided using the binary image obtained by the above. As the region division method, contour tracing is performed as in the first embodiment.

【0058】この場合、第1の実施形態と異なること
は、文字として抽出される領域に、普通に2値化を施す
と反転状態になる領域も存在することである。
In this case, what is different from the first embodiment is that, in the region extracted as a character, there is also a region that is inverted when ordinary binarization is performed.

【0059】図12に通常文字と反転文字の違いを示
す。反転文字はたとえば赤色の下地に白い文字が書いて
あるようなものであり、カラー原稿には珍しいことでは
ない。このような文字領域は第1の実施形態では文字と
して属性がつかず、外側の色のついている枠を含んだ領
域で自然画像として属性がついた領域となっていた。本
実施形態では微分2値画像を領域分割に使用することに
より、図12に示すような反転文字領域も文字として領
域分割可能となる。すると、その輝度ヒストグラム形状
は通常文字領域が図22のようになるのに対して図13
のような形状になる。1301の山が下地の固まりを示
していて、1302の山が文字の固まりをしめしてい
る。本実施形態においては、文字代表色算出するための
部分2値画像(b)(図11の11082)を生成する
2値化部分は反転処理が必要であることになる。
FIG. 12 shows the difference between normal characters and inverted characters. Inverted characters are, for example, white characters written on a red base, and are not uncommon for color originals. In the first embodiment, such a character region has no attribute as a character, and is a region including a frame with an outer color and a region with an attribute as a natural image. In the present embodiment, by using the differential binary image for area division, an inverted character area as shown in FIG. 12 can also be area-divided as a character. Then, the brightness histogram shape of the normal character area becomes as shown in FIG.
It is shaped like A peak 1301 indicates a lump of the base, and a peak 1302 indicates a lump of characters. In the present embodiment, the binarized part for generating the partial binary image (b) (11082 in FIG. 11) for calculating the character representative color requires the inversion processing.

【0060】反転するか否かの判断は以下の式で得るこ
とができる。
The determination as to whether or not to invert can be obtained by the following equation.

【0061】応用構成例1にて一例として示した以下の
式がある。
The following equation is shown as an example in the first application example.

【0062】[0062]

【外3】 このskew_firstがマイナスのときは図22のような通常
文字部分の領域であるが、skew_firstがプラスのときは
図13に示すような反転文字領域であると判定できる。
[Outside 3] When the skew_first is minus, it can be determined that the area is a normal character area as shown in FIG. 22, but when the skew_first is plus, it can be determined that it is an inverted character area as shown in FIG.

【0063】また、この処理のフローチャートを図16
に示し、簡単に説明する。図16の右側(S1613-S1619)
は図10とまったく同じである。左側(1605-1611)が反
転文字の場合の計算式となる。
FIG. 16 is a flowchart of this process.
And a brief description. Right side of FIG. 16 (S1613-S1619)
Is exactly the same as FIG. This is the calculation formula when the left side (1605-1611) is a reverse character.

【0064】また、ステップ1603にて、skew_first
が0以上であったらば、2値化部に反転処理をするか否
かを指示するDoInvertフラグをセットする。
In step 1603, skew_first
Is greater than or equal to 0, a DoInvert flag is set to instruct the binarization unit whether to perform inversion processing.

【0065】DoInvertフラグが立っていたら(ONだった
ら)2値化部(b)11081および、出力として目に
見える2値化部(a)1111も2値化結果を反転す
る。なお、この反転文字も対応する攻勢の場合、領域分
割部1104においては、枠という属性を持つ領域を検
出する必要があり、また、その枠内の平均色を算出する
必要もある。というのも、反転文字の下地には白ではな
い色がついているのだが、それを表現する必要があるか
らである。それら枠領域平均色演算部は図11内では省
略した。
If the DoInvert flag is set (if it is ON), the binarization unit (b) 11081 and the binarization unit (a) 1111 visible as an output also invert the binarization result. In the case of the offensive that also corresponds to the inverted character, the area dividing unit 1104 needs to detect an area having the attribute of a frame, and also needs to calculate an average color in the frame. This is because the background of the inverted character has a color other than white, but it needs to be expressed. These frame area average color calculation units are omitted in FIG.

【0066】一方、後述する図14の構成においては、
下地に全面のJPEGを保持するので、反転文字に対応して
も、枠という属性を持つ領域を持つ必要はない。
On the other hand, in the configuration of FIG. 14 described later,
Since the entire surface of the JPEG is retained on the background, there is no need to have a region having the attribute of a frame even when corresponding to inverted characters.

【0067】(第3の実施形態)他に、応用構成例とし
て、図14に示すような構成が考えられる。
(Third Embodiment) As another applied configuration example, a configuration as shown in FIG. 14 can be considered.

【0068】簡単に図14の構成を説明する。The configuration of FIG. 14 will be briefly described.

【0069】本構成においては領域分割処理としては文
字領域のみの座標を検出する文字領域抽出処理1402
を保有し、文字領域座標を1403に格納する。
In this configuration, as the area division processing, a character area extraction processing 1402 for detecting the coordinates of only the character area
And stores the character area coordinates in 1403.

【0070】この文字領域の2値画像1405を2値化
部1404にて生成し、その2値画像1405従って、
文字部塗りつぶし部1408にて元画像の文字部を周り
の平均色で塗りつぶした原稿1413を生成する。上記
部分2値画像はMMR圧縮され圧縮コードDが生成される。
上記文字抜き画像はJPEG圧縮され圧縮コードCが生成さ
れる。
A binary image 1405 of this character area is generated by a binarizing unit 1404, and according to the binary image 1405,
An original 1413 in which the character portion of the original image is filled with the surrounding average color by the character portion painting portion 1408 is generated. The partial binary image is subjected to MMR compression to generate a compression code D.
The character-free image is JPEG-compressed to generate a compression code C.

【0071】1411にて、第1の実施形態の図9に示
した文字代表色演算処理が行われ、代表色1412が生
成される。
At 1411, the character representative color calculation processing shown in FIG. 9 of the first embodiment is performed, and a representative color 1412 is generated.

【0072】図15に図14の構成の圧縮データを伸長
するための構成図を示す。
FIG. 15 shows a configuration diagram for decompressing the compressed data having the configuration shown in FIG.

【0073】この圧縮データを伸長するときには、圧縮
コードCのJPEG伸長処理を行い多値画像Gを生成する。一
方、圧縮コードDのMMR伸長処理を行い、部分領域の2値
画像Fを生成し、上記画像G上に2値画像が黒の画素には
その領域の代表値を載せ、2値画像が白の領域は何もし
ないという合体処理をおこない、最終的に画像Hを得
る。
When decompressing the compressed data, a multi-valued image G is generated by performing JPEG decompression processing of the compression code C. On the other hand, the MMR expansion processing of the compression code D is performed to generate a binary image F of the partial area, and the representative value of the area is placed on the pixel where the binary image is black on the image G, and the binary image is The union processing of doing nothing is performed on the area of, and an image H is finally obtained.

【0074】構成例図1、構成例図11と比較して、文
字領域を抜いた全面のJPEG画像を保有するので元画像デ
ータの雰囲気を損なわないという利点がある。
Structural Example Compared with FIGS. 1 and 11, there is an advantage that the atmosphere of the original image data is not impaired because the entire JPEG image excluding the character area is retained.

【0075】(他の実施形態)また、本発明は、複数の
機器(例えばホストコンピュータ、インタフェイス機
器、リーダ、プリンタ等)から構成されるシステムに適
用しても、一つの機器からなる装置(例えば、複写機、
ファクシミリ装置等)に適用しても良い。
(Other Embodiments) Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (one device) For example, a copier,
Facsimile machine, etc.).

【0076】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウエアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納された
プログラムコードを読み出し実行することによっても、
達成されることは言うまでもない。この場合、記憶媒体
から読み出されたプログラムコード自体が前述した実施
形態の機能を実現することになり、そのプログラムコー
ドを記憶した記憶媒体は本発明を構成することになる。
また、コンピュータが読み出したプログラムコードを実
行することにより、前述した実施形態の機能が実現され
るだけでなく、そのプログラムコードの指示に基づき、
コンピュータ上で稼働しているオペレーティングシステ
ム(OS)などが実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Another object of the present invention is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer of the system or the apparatus. (Or CPU or MPU) by reading and executing the program code stored in the storage medium,
Needless to say, this is achieved. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
In addition, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also based on the instructions of the program code,
The operating system (OS) running on the computer performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0077】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書き込まれた後、そのプログラムコードの指
示に基づき、その機能拡張カードや機能拡張ユニットに
備わるCPUなどが実際の処理の一部または全部を行
い、その処理によって前述した実施形態の機能が実現さ
れる場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that a CPU or the like provided in the function expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0078】[0078]

【発明の効果】以上説明したように、本発明は、入力画
像に応じたヒストグラムを算出し、前記算出されたヒス
トグラムに基づいて前記画像の所定領域画像がかすれる
ような2値化閾値を算出し、算出された2値化閾値で前
記入力画像を2値化し、その2値化結果に基づいて前記
入力画像の所定領域画像の色を算出することにより、細
い文字であっても、下地から文字への遷移部の色のデー
タを削除することができるので、最適な文字の代表色を
算出することができる。
As described above, according to the present invention, a histogram corresponding to an input image is calculated, and a binarization threshold value for blurring a predetermined area image of the image is calculated based on the calculated histogram. By binarizing the input image with the calculated binarization threshold and calculating the color of the predetermined area image of the input image based on the binarization result, even if the character is a thin character, Since the data of the color of the transition part to the character can be deleted, it is possible to calculate the optimal representative color of the character.

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

【図1】第1の実施形態における応用構成図を示す図で
ある。
FIG. 1 is a diagram illustrating an application configuration diagram according to a first embodiment.

【図2】原画像の例を示す図である。FIG. 2 is a diagram illustrating an example of an original image.

【図3】2値化部と領域分割部における処理の流れの一
例を示す図である。
FIG. 3 is a diagram illustrating an example of a processing flow in a binarizing unit and a region dividing unit.

【図4】原画像の輝度ヒストグラム形状を示す図であ
る。
FIG. 4 is a diagram showing a luminance histogram shape of an original image.

【図5】原画像を2値化処理した2値画像を示す図であ
る。
FIG. 5 is a diagram showing a binary image obtained by binarizing an original image.

【図6】2値画像に対してラベリングした様子を示す図
である。
FIG. 6 is a diagram illustrating a state where labeling is performed on a binary image.

【図7】原画像から文字の属性がついて抽出された黒領
域を示す図である。
FIG. 7 is a diagram illustrating a black region extracted from a source image with character attributes.

【図8】原画像の文字領域を示す図である。FIG. 8 is a diagram showing a character area of an original image.

【図9】文字代表色演算部における処理の流れを示す図
である。
FIG. 9 is a diagram showing a flow of processing in a character representative color calculation unit.

【図10】閾値T2を算出する方法の一例を示す図であ
る。
FIG. 10 is a diagram illustrating an example of a method for calculating a threshold T2.

【図11】第2の実施形態における応用構成図を示す図
である。
FIG. 11 is a diagram showing an application configuration diagram in the second embodiment.

【図12】通常文字と反転文字の違いを示す図である。FIG. 12 is a diagram illustrating a difference between a normal character and a reverse character.

【図13】反転文字部の輝度ヒストグラム形状を示す図
である。
FIG. 13 is a diagram illustrating a luminance histogram shape of a reversed character portion.

【図14】第3の実施形態における応用構成図を示す図
である。
FIG. 14 is a diagram showing an application configuration diagram in the third embodiment.

【図15】第3の実施形態における圧縮データを伸張す
るための構成を示す図である。
FIG. 15 is a diagram illustrating a configuration for decompressing compressed data according to the third embodiment.

【図16】反転文字に対する処理の流れを示す図であ
る。
FIG. 16 is a diagram showing a flow of processing for a reversed character.

【図17】ヒストグラムの形状の一例を示す図である。FIG. 17 is a diagram showing an example of a histogram shape.

【図18】閾値T2を算出する方法の一例を示す図であ
る。
FIG. 18 is a diagram illustrating an example of a method for calculating a threshold value T2.

【図19】大きな文字の代表色を算出する場合と、小さ
な文字の代表色を算出する場合を説明する図である。
FIG. 19 is a diagram illustrating a case where a representative color of a large character is calculated and a case where a representative color of a small character is calculated.

【図20】RGB色空間における分布を示す図である。FIG. 20 is a diagram showing a distribution in an RGB color space.

【図21】2値画像の細線化を説明する図である。FIG. 21 is a diagram illustrating thinning of a binary image.

【図22】文字領域の典型的な輝度ヒストグラムの様子
を示すである。
FIG. 22 illustrates a typical luminance histogram of a character area.

【図23】画像を2値化した結果を示す図である。FIG. 23 is a diagram showing a result of binarizing an image.

【図24】画像を2値化した結果を示す図である。FIG. 24 is a diagram showing a result of binarizing an image.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/46 Z Fターム(参考) 5B057 BA30 CA01 CA08 CA12 CA16 CE12 CE16 CG02 CG04 DA08 DA12 DB02 DB06 DB09 DC14 DC17 DC19 DC23 DC36 5C077 LL08 MP05 MP06 MP08 PP27 PP31 PP32 PP46 PP47 PQ19 RR02 RR15 RR21 5C079 LA02 LA06 LA34 LB12 MA11 NA13 5L096 AA02 AA06 BA17 DA02 EA43 FA06 FA16 FA32 FA33 FA35 FA37 FA44 FA72 GA02 GA34 GA38 GA40 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 1/46 Z F Term (Reference) 5B057 BA30 CA01 CA08 CA12 CA16 CE12 CE16 CG02 CG04 DA08 DA12 DB02 DB06 DB09 DC14 DC17 DC19 DC23 DC36 5C077 LL08 MP05 MP06 MP08 PP27 PP31 PP32 PP46 PP47 PQ19 RR02 RR15 RR21 5C079 LA02 LA06 LA34 LB12 MA11 NA13 5L096 AA02 AA06 BA17 DA02 EA43 FA06 FA16 FA32 FA33 FA35 FA37 FA44 FA72 GA40 GA38 GA38

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 入力画像に応じたヒストグラムを算出す
るヒストグラム算出手段と、 前記算出されたヒストグラムに基づいて前記画像の所定
領域画像がかすれるような2値化閾値を算出する2値化
閾値算出手段と、 前記算出された2値化閾値で前記入力画像を2値化する
2値化手段と、 前記2値化手段の2値化結果に基づいて前記入力画像の
所定領域画像の色を算出する算出手段とを有することを
特徴とする画像処理装置。
1. A histogram calculation means for calculating a histogram according to an input image, and a binarization threshold value calculation means for calculating a binarization threshold value such that a predetermined area image of the image is blurred based on the calculated histogram. A binarizing unit that binarizes the input image with the calculated binarization threshold; and calculates a color of a predetermined area image of the input image based on a binarization result of the binarizing unit. An image processing apparatus comprising: a calculating unit.
【請求項2】 前記算出手段は、前記2値化手段により
2値化された画像を参照して、該画像の黒部分に対応す
る前記入力画像中の画像の平均値を算出し、該算出され
た平均値に基づいて前記入力画像の所定領域の色を算出
することを特徴とする請求項1記載の画像処理装置。
2. The calculating means calculates an average value of an image in the input image corresponding to a black portion of the image with reference to the image binarized by the binarizing means. The image processing apparatus according to claim 1, wherein a color of a predetermined area of the input image is calculated based on the average value obtained.
【請求項3】 前記算出手段は、前記2値化手段により
2値化された画像を参照して、該画像の黒部分に対応す
る前記入力画像の画像のヒストグラムを算出し、該算出
されたヒストグラムに基づいて前記入力画像の所定領域
の色を算出することを特徴とする請求項1記載の画像処
理装置。
3. The calculating means calculates a histogram of an image of the input image corresponding to a black portion of the image with reference to the image binarized by the binarizing means, and calculates the calculated histogram. The image processing apparatus according to claim 1, wherein a color of a predetermined area of the input image is calculated based on a histogram.
【請求項4】 前記2値化手段は、2値化結果を反転す
る反転手段を更に有することを特徴とする請求項1記載
の画像処理装置。
4. The image processing apparatus according to claim 1, wherein said binarizing means further comprises an inverting means for inverting the binarized result.
【請求項5】 前記所定領域画像は文字画像であること
を特徴とする請求項1記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the predetermined area image is a character image.
【請求項6】 入力画像に応じたヒストグラムを算出す
るヒストグラム算出工程と、 前記算出されたヒストグラムに基づいて前記画像の所定
領域画像がかすれるような2値化閾値を算出する2値化
閾値算出工程と、 前記算出された2値化閾値で前記入力画像を2値化する
2値化工程と、 前記2値化工程の2値化結果に基づいて前記入力画像の
所定領域画像の色を算出する算出工程とを有することを
特徴とする画像処理方法。
6. A histogram calculation step of calculating a histogram according to an input image, and a binarization threshold calculation step of calculating a binarization threshold such that a predetermined area image of the image is blurred based on the calculated histogram. A binarization step of binarizing the input image with the calculated binarization threshold; and calculating a color of a predetermined area image of the input image based on a binarization result of the binarization step. An image processing method comprising: a calculating step.
【請求項7】 前記算出工程は、前記2値化工程により
2値化された画像を参照して、該画像の黒部分に対応す
る前記入力画像中の画像の平均値を算出し、該算出され
た平均値に基づいて前記入力画像の所定領域の色を算出
することを特徴とする請求項6記載の画像処理方法。
7. The calculating step calculates an average value of an image in the input image corresponding to a black portion of the image with reference to the image binarized in the binarizing step, 7. The image processing method according to claim 6, wherein a color of a predetermined area of the input image is calculated based on the average value obtained.
【請求項8】 前記算出工程は、前記2値化工程により
2値化された画像を参照して、該画像の黒部分に対応す
る前記入力画像の画像のヒストグラムを算出し、該算出
されたヒストグラムに基づいて前記入力画像の所定領域
の色を算出することを特徴とする請求項6記載の画像処
理方法。
8. The calculating step calculates a histogram of an image of the input image corresponding to a black portion of the image with reference to the image binarized in the binarizing step, and calculates the calculated histogram. 7. The image processing method according to claim 6, wherein a color of a predetermined area of the input image is calculated based on the histogram.
【請求項9】 前記2値化工程は、2値化結果を反転す
る反転工程を更に有することを特徴とする請求項6記載
の画像処理方法。
9. The image processing method according to claim 6, wherein said binarizing step further includes an inverting step of inverting a binarized result.
【請求項10】 前記所定領域画像は文字画像であるこ
とを特徴とする請求項6記載の画像処理装置。
10. The image processing apparatus according to claim 6, wherein the predetermined area image is a character image.
【請求項11】 入力画像に応じたヒストグラムを算出
するコードと、 前記算出されたヒストグラムに基づいて前記画像の所定
領域画像がかすれるような2値化閾値を算出するコード
と、 前記算出された2値化閾値で前記入力画像を2値化する
2値化コードと、 前記2値化結果に基づいて前記入力画像の所定領域画像
の色を算出する算出コードとを有することを特徴とする
コンピュータ可読な記憶媒体。
11. A code for calculating a histogram according to an input image, a code for calculating a binarization threshold value such that a predetermined area image of the image is blurred based on the calculated histogram, A computer readable computer comprising: a binarization code for binarizing the input image with a binarization threshold; and a calculation code for calculating a color of a predetermined area image of the input image based on the binarization result. Storage media.
JP2000211377A 2000-07-12 2000-07-12 Image processing apparatus, image processing method, and storage medium Expired - Fee Related JP4027016B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP2000211377A JP4027016B2 (en) 2000-07-12 2000-07-12 Image processing apparatus, image processing method, and storage medium
EP01305987A EP1173003B1 (en) 2000-07-12 2001-07-11 Image processing method and image processing apparatus
US09/902,172 US6999619B2 (en) 2000-07-12 2001-07-11 Processing for accurate reproduction of symbols and other high-frequency areas in a color image
DE60138073T DE60138073D1 (en) 2000-07-12 2001-07-11 Image processing method and image processing apparatus
CNB011325208A CN1201266C (en) 2000-07-12 2001-07-12 Image processing apparatus, image processing method and program, and its recording medium
CNB200510054267XA CN100348014C (en) 2000-07-12 2001-07-12 Image processing apparatus, image processing method and program, and its recording medium
US11/246,301 US7221790B2 (en) 2000-07-12 2005-10-11 Processing for accurate reproduction of symbols and other high-frequency areas in a color image
US11/678,914 US7376267B2 (en) 2000-07-12 2007-02-26 Image processing apparatus, image processing method, and program and storage medium therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000211377A JP4027016B2 (en) 2000-07-12 2000-07-12 Image processing apparatus, image processing method, and storage medium

Publications (2)

Publication Number Publication Date
JP2002024824A true JP2002024824A (en) 2002-01-25
JP4027016B2 JP4027016B2 (en) 2007-12-26

Family

ID=18707493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000211377A Expired - Fee Related JP4027016B2 (en) 2000-07-12 2000-07-12 Image processing apparatus, image processing method, and storage medium

Country Status (1)

Country Link
JP (1) JP4027016B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015515894A (en) * 2012-05-10 2015-06-04 カール ツアイス メディテック アクチエンゲゼルシャフト Analysis and visualization of OCT angiography data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015515894A (en) * 2012-05-10 2015-06-04 カール ツアイス メディテック アクチエンゲゼルシャフト Analysis and visualization of OCT angiography data

Also Published As

Publication number Publication date
JP4027016B2 (en) 2007-12-26

Similar Documents

Publication Publication Date Title
US7170647B2 (en) Document processing apparatus and method
JP4646797B2 (en) Image processing apparatus, control method therefor, and program
JP2702928B2 (en) Image input device
US6393150B1 (en) Region-based image binarization system
US7751648B2 (en) Image processing apparatus, image processing method, and computer program
US6999619B2 (en) Processing for accurate reproduction of symbols and other high-frequency areas in a color image
JP4250483B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2003152995A (en) Image processing device
JP4632443B2 (en) Image processing apparatus, image processing method, and program
JP2006197178A (en) Image processor, image processing method, program, and storage medium
JP4441300B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium storing the program
JP2003244447A (en) Image processor and image processing method
JP2010074342A (en) Image processing apparatus, image forming apparatus, and program
JP4027016B2 (en) Image processing apparatus, image processing method, and storage medium
JP2005063055A (en) Image generating device, image generation program, and recording medium with the program stored therein
JP4116377B2 (en) Image processing method and image processing apparatus
JP4228905B2 (en) Image processing apparatus and program
JP4213357B2 (en) Image processing apparatus, image processing method, and program for executing the method
JPH07118002B2 (en) Image processing device
JP2003338934A (en) Image processing equipment and method therefor
JP4259950B2 (en) Image recognition apparatus, image recognition program, and recording medium
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JP3020293B2 (en) Attribute determination method
JP2004242075A (en) Image processing apparatus and method therefor
JP3756660B2 (en) Image recognition method, apparatus and recording medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041102

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041228

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050411

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050414

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20050506

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070829

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071009

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101019

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111019

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111019

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121019

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131019

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees