JP2001045303A - Image thresholding method - Google Patents

Image thresholding method

Info

Publication number
JP2001045303A
JP2001045303A JP11212767A JP21276799A JP2001045303A JP 2001045303 A JP2001045303 A JP 2001045303A JP 11212767 A JP11212767 A JP 11212767A JP 21276799 A JP21276799 A JP 21276799A JP 2001045303 A JP2001045303 A JP 2001045303A
Authority
JP
Japan
Prior art keywords
image
value
values
correction
density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11212767A
Other languages
Japanese (ja)
Inventor
Yasushi Kodama
裕史 児玉
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP11212767A priority Critical patent/JP2001045303A/en
Publication of JP2001045303A publication Critical patent/JP2001045303A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve readability of a low contrast part in an image thresholding method for thresholding an analog or multi-gradation digital image to be processed by level-discriminating it according to a threshold. SOLUTION: A concentration histogram of each component of R, and B of a picture and maximum values Rmax, Gmax, and Bmax and minimum Rmin, Gmin, and Bmin of concentration histogram distribution of each R, G, and B are calculated (s8), and the concentration histogram distribution is extended so that the values of both edges of each data value area can be obtained (s9-s11). Thus, correction of brightenss and the correction of contrast shortage and the correction of color tone can be operated. As a result, satisfactory binary pictures suitable for contents judgment can be obtained. Also, a contrast and the color tone can be simultaneously corrected, and processing speed can be improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタルスチルカ
メラ、イメージスキャナ、あるいはビデオキャブチャ回
路等で取得したカラー静止画像の白黒2値化方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for binarizing a color still image obtained by a digital still camera, an image scanner or a video capture circuit into black and white.

【0002】[0002]

【従来の技術】前記カラー静止画像を前記白黒2値化画
像に変換するにあたっては、前記取得したカラー画像信
号やデータを所定の閾値でレベル弁別することになる。
その閾値の作成手法については、従来から種々の方法が
知られている。たとえば、単純に全画素の輝度平均値を
2値化の閾値とする方法、アナログ画像や階調のあるデ
ジタル画像では、図11において参照符α1で示すよう
な濃度ヒストグラム(図11では濃度を8ビット、すな
わち0〜255の256階調で示している)を求め、参
照符α2で示すヒストグラムの谷の部分に相当する輝度
値を閾値とする方法等がある。
2. Description of the Related Art In converting a color still image into a black-and-white binary image, the obtained color image signals and data are level-discriminated with a predetermined threshold value.
Various methods have been known for creating the threshold. For example, a method of simply setting the average luminance value of all pixels as a threshold for binarization, or a density histogram indicated by reference numeral α1 in FIG. Bit, that is, 256 gradations from 0 to 255), and a luminance value corresponding to the valley portion of the histogram indicated by reference numeral α2 is used as a threshold value.

【0003】また、他の従来技術である特開平8−30
728号公報では、文字認識等への応用を前提に、2値
化の際に閾値を用いず、予め学習させておいたニューラ
ルネットワークにより、背景と文字成分との分離を行う
ことが提案されている。
Further, another prior art, Japanese Patent Laid-Open No.
No. 728 proposes that the background and the character component are separated by a neural network that has been trained in advance without using a threshold value in binarization on the premise of application to character recognition and the like. I have.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前述の
ような閾値決定方法では、画像全体で1つの閾値を用い
る場合と、画像を分割し、それぞれの微小エリアについ
て閾値を求める場合値との何れの場合も、図11におい
て参照符α3で示すように、コントラストが低く、濃度
ヒストグラムが偏っていると、極端に高い値または低い
値に閾値が設定され、2値化された画像は、目視でも内
容が判別しにくい画像になってしまうという問題があ
る。たとえば、白黒の新聞写真を、イメージスキャナ
や、CCD、C−MOSエリアセンサ等を用いたデジタ
ルカメラで撮影したデジタル画像の場合、新聞写真部分
のコントラストが低く、従来技術による閾値決定方法で
は、前記デジタル画像中に含まれている微小な変化もそ
れぞれ1または0の何れかに2値化され、内容の判別し
にくい2値画像となってしまう。同様に、自然画を2値
化してインパクトを与える効果をねらう場合において
も、また文字認識等の前処理として2値化を行う際に
も、前述の従来技術による閾値決定方法では、ノイズ成
分が増加し、望ましくない。
However, in the above-described threshold value determination method, either one of a case where one threshold value is used for the entire image and a case where the image is divided and a threshold value is obtained for each minute area are used. Also in this case, as shown by reference numeral α3 in FIG. 11, when the contrast is low and the density histogram is biased, the threshold value is set to an extremely high or low value, and the binarized image is visually inspected. However, there is a problem that an image is difficult to determine. For example, in the case of a digital image obtained by photographing a black-and-white newspaper photograph with a digital camera using an image scanner, a CCD, a C-MOS area sensor, etc., the contrast of the newspaper photograph portion is low. A minute change included in the digital image is also binarized to 1 or 0, respectively, resulting in a binary image whose content is difficult to determine. Similarly, in the case where a natural image is binarized for the effect of giving an impact, and when binarization is performed as preprocessing such as character recognition, the threshold component determination method according to the above-described conventional technique causes the noise component to be reduced. Increased and undesirable.

【0005】一方、前記ニューラルネットワークを用い
た2値化の場合には、ネットの学習程度によって結果が
左右されてしまうので、学習時間が短いと、自然画と文
字との両方に対応しにくく、実用になるまでのオーバー
ヘッドが大きい等の問題がある。
On the other hand, in the case of binarization using the neural network, the result depends on the degree of learning of the net. Therefore, if the learning time is short, it is difficult to deal with both natural images and characters. There are problems such as a large overhead before practical use.

【0006】本発明の目的は、2値化対象画像の低コン
トラスト部分の判読性を向上することができるととも
に、ノイズを低減することができる画像2値化方法を提
供することである。
An object of the present invention is to provide an image binarization method capable of improving the readability of a low-contrast portion of an image to be binarized and reducing noise.

【0007】[0007]

【課題を解決するための手段】本発明の画像2値化方法
は、処理対象となるアナログまたは複数階調のデジタル
画像を予め定める閾値でレベル弁別することによって2
値化処理を行うようにした画像2値化方法において、前
記処理対象のアナログまたは複数階調のデジタル画像の
R,G,Bの各成分の濃度ヒストグラムならびにR,
G,Bそれぞれの濃度ヒストグラム分布の最大値Rma
x,Gmax,Bmaxおよび最小値Rmin,Gmi
n,Bminを求め、前記最大値Rmax,Gmax,
Bmaxおよび最小値Rmin,Gmin,Bminが
データ値域の両端の値となるように濃度ヒストグラム分
布を伸張することによって、明るさの補正、コントラス
ト不足の補正および色調補正を行うことを特徴とする。
According to the image binarization method of the present invention, an analog or multi-tone digital image to be processed is level-discriminated by a predetermined threshold value.
In the image binarization method in which the binarization process is performed, the density histogram of each of R, G, and B components of the analog or multi-tone digital image to be processed and R,
Maximum value Rma of density histogram distribution of each of G and B
x, Gmax, Bmax and minimum values Rmin, Gmi
n and Bmin, and the maximum values Rmax, Gmax,
The brightness correction, the lack of contrast correction, and the color tone correction are performed by extending the density histogram distribution so that Bmax and the minimum values Rmin, Gmin, and Bmin become values at both ends of the data value range.

【0008】上記の構成によれば、2値化処理前に、濃
度ヒストグラム分布を伸張することによって、画像の明
るさおよびコントラスト不足が補正され、閾値を用いた
2値化にあたって、その精度を向上することができる。
また、R,G,Bの各濃度ヒストグラムの分布に違いが
ある場合、前記伸張処理によって各色の値域が等しくな
るように変換されるので、本来白い部分に色が付いてし
まっているような色調のずれも同時に補正することがで
きる。
According to the above arrangement, the brightness and contrast of the image are corrected by expanding the density histogram distribution before the binarization process, and the accuracy of the binarization using the threshold is improved. can do.
If there is a difference between the distributions of the density histograms of R, G, and B, the expansion process converts the values so that the value ranges of the respective colors become equal, so that the color tone is such that a white portion is originally colored. Can be corrected at the same time.

【0009】さらにまた、前記色調補正を採用すること
によって、色調が偏っていると前記白部分で輝度が大き
く変化し、たとえば青に偏っていると前記白部分で輝度
が大きく低下し、閾値が適切に抽出されなくなってしま
うのに対して、このような不具合を防止することがで
き、この結果、内容判別に適した良好な2値画像を得る
ことができる。また、コントラストと色調とを同時に補
正することができ、処理速度の向上を図ることができ
る。
Further, by adopting the color tone correction, when the color tone is deviated, the luminance largely changes in the white portion, and when the color tone is deviated to blue, for example, the luminance largely decreases in the white portion, and the threshold value is lowered. In spite of the fact that extraction is not performed properly, such a problem can be prevented, and as a result, a good binary image suitable for content discrimination can be obtained. Further, the contrast and the color tone can be simultaneously corrected, and the processing speed can be improved.

【0010】また、本発明の画像2値化方法は、前記伸
張処理を、伸張前の濃度値をR,G,B、伸張後の濃度
値をR’,G’,B’、前記データ値域の最小値を0、
最大値をMAXとすると、 R’={MAX/(Rmax−Rmin)}×(R−R
min) G’={MAX/(Gmax−Gmin)}×(G−G
min) B’={MAX/(Bmax−Bmin)}×(B−B
min) の1次式によって行うことを特徴とする。
In the image binarizing method according to the present invention, the decompression processing may be performed such that the density values before decompression are R, G, B, the density values after decompression are R ', G', B ', The minimum value of 0,
When the maximum value is MAX, R ′ = {MAX / (Rmax−Rmin)} × (R−R
min) G ′ = {MAX / (Gmax−Gmin)} × (GG
min) B ′ = {MAX / (Bmax−Bmin)} × (BB
min) according to the linear equation.

【0011】上記の構成によれば、前記最大値Rma
x,Gmax,Bmaxおよび最小値Rmin,Gmi
n,Bminが、それぞれデータ値域の両端の値MA
X,0となるように、簡易な処理で伸長することができ
るとともに、R,G,Bそれぞれについて濃度ヒストグ
ラム分布を伸張するので、単色の色調補正では補正不可
能であった画像についても、高コントラストな変換画像
を得ることができる。
According to the above arrangement, the maximum value Rma
x, Gmax, Bmax and minimum values Rmin, Gmi
n and Bmin are values MA at both ends of the data value range, respectively.
X and 0 can be expanded by simple processing, and the density histogram distribution is expanded for each of R, G, and B. Therefore, even an image that cannot be corrected by single-color tone correction is high. A converted image with contrast can be obtained.

【0012】さらにまた、本発明の画像2値化方法は、
画像の中から白い画素と考えられる画素を白画素として
抽出し、抽出した白画素のR,G,Bの各濃度値の平均
値Wr,Wg,Wbを求め、その平均値Wr,Wg,W
bが相互に等しくなるような変換係数Kr,Kg,Kb
を求め、原画像の全画素のR,G,Bの各濃度値にその
変換係数Kr,Kg,Kbをそれぞれ乗算することで、
さらに白バランス補正を行うことを特徴とする。
Still further, the image binarization method of the present invention comprises:
A pixel considered to be a white pixel is extracted from the image as a white pixel, and average values Wr, Wg, Wb of respective density values of R, G, B of the extracted white pixel are obtained, and the average values Wr, Wg, W
Conversion coefficients Kr, Kg, Kb such that b becomes equal to each other
And multiplying each of the R, G, and B density values of all pixels of the original image by the conversion coefficients Kr, Kg, and Kb, respectively,
Further, white balance correction is performed.

【0013】上記の構成によれば、たとえば白画素は彩
度がきわめて小さいという特長を利用して、本来白い画
素と考えられる画素を白画素として抽出し、その抽出し
た白画素のR,G,Bの各濃度値をそれぞれ加算し、個
数で除算することによって求めた濃度平均値Wr,W
g,Wbから、原画像の平均輝度をWyとするとき、 Wr・Kr=Wg・Kg=Wb・Kb=Wy が成立するように、 Kr=Wy/Wr,Kg=Wy/Wg,Kb=Wy/W
b で求めた変換係数Kr,Kg,Kbを、原画像の全画素
のR,G,Bの各濃度値にそれぞれ乗算すると、本来白
い部分に付いた色に偏ってしまっている画像全体の色調
を補正することができる。
According to the above configuration, for example, taking advantage of the feature that white pixels have extremely low saturation, pixels which are originally considered to be white pixels are extracted as white pixels, and the extracted white pixels R, G, B. Average density values Wr, W obtained by adding the respective density values of B and dividing by the number.
From the g and Wb, assuming that the average luminance of the original image is Wy, Kr = Wy / Wr, Kg = Wy / Wg, and Kb = Wy such that Wr · Kr = Wg · Kg = Wb · Kb = Wy holds. / W
By multiplying each of the R, G, and B density values of all the pixels of the original image by the conversion coefficients Kr, Kg, and Kb obtained in b, the color tone of the entire image that is originally biased toward the color attached to the white portion Can be corrected.

【0014】したがって、たとえば原画像の中に面積の
大きいハイライト部分があるような画像で、光源の色温
度や、デジタルカメラ内部のホワイトバランスの誤動作
等で、前述のように本来白い部分に付いた色に画像全体
の色調が偏ってしまい、請求項1の濃度ヒストグラムに
よる色補正効果が少ない画像の場合にも、画像全体の色
調を補正し、自然な色調とした後に2値化処理を行うこ
とが可能になり、色調補正できる対象画像を増やすこと
ができる。
Therefore, for example, in an image in which a highlight area having a large area is present in the original image, the color temperature of the light source or a malfunction of the white balance inside the digital camera may cause the white area to be originally attached as described above. Even in the case of an image in which the color tone of the entire image is biased toward the resulting color and the color correction effect based on the density histogram according to claim 1 is small, the color tone of the entire image is corrected, and then a binarization process is performed after a natural color tone is obtained. This makes it possible to increase the number of target images that can be subjected to color tone correction.

【0015】また、本発明の画像2値化方法は、前記最
大値Rmax,Gmax,Bmaxと、予め定める閾値
Ythとの大小を比較し、Rmax>Yth、Gmax
>Yth、Bmax>Ythの3条件が同時に成立する
と、前記請求項1による濃度ヒストグラム伸張による色
調補正が難しい画像であると判定し、前記請求項3の白
バランス補正を行うことを特徴とする。
The image binarization method of the present invention compares the maximum values Rmax, Gmax, and Bmax with a predetermined threshold value Yth, and determines that Rmax> Yth, Gmax.
If the three conditions of> Yth and Bmax> Yth are satisfied at the same time, it is determined that the image is difficult to correct the color tone by the expansion of the density histogram according to the first aspect, and the white balance correction according to the third aspect is performed.

【0016】上記の構成によれば、前記原画像の中に面
積の大きいハイライト部分がある前記請求項1による濃
度ヒストグラム伸張による色補正が難しい画像を判定す
ることができ、前記請求項3の白バランス補正を適切に
行うことができる。
According to the above arrangement, it is possible to determine an image for which color correction by expansion of the density histogram according to claim 1 is difficult, because there is a highlight portion having a large area in the original image. White balance correction can be appropriately performed.

【0017】さらにまた、本発明の画像2値化方法は、
画像の全エリアを微小エリアに分割し、前記微小エリア
について、輝度が一定値Yp以上となる画素の輝度値の
平均値Yaveから2値化の閾値Bthを計算し、前記
一定値Yp以上となる画素数mと任意に設けた個数の基
準値Mとが、m<Mである場合にはその微小エリアほと
んどが暗い黒ベタ部分と判断して任意の固定の閾値を使
用し、前記m<Mでない場合にはその微小エリアは前記
黒ベタ部分ではなく、値域内で輝度が適度に分布してい
ると判断し、前記閾値Bthを使用することを特徴とす
る。
Still further, the image binarization method of the present invention comprises:
The entire area of the image is divided into minute areas, and for the minute areas, a threshold value Bth for binarization is calculated from the average value Yave of the luminance values of the pixels whose luminance is equal to or more than the constant value Yp, and the threshold value is equal to or more than the constant value Yp If the number m of pixels and the arbitrarily provided reference value M satisfy m <M, it is determined that most of the minute area is a dark black solid portion, and an arbitrary fixed threshold value is used. If not, it is determined that the minute area is not the black solid portion but the luminance is appropriately distributed within the value range, and the threshold value Bth is used.

【0018】上記の構成によれば、微小エリア内で2値
化された結果、自然画の場合は空、文字の場合は背景と
いった、画素値が1になるのが望ましい部分のみの輝度
情報を抽出し、2値化の閾値Bthを決定するので、2
値化処理結果は、たとえば暗い背景は確実に0になり、
明るい部分は確実に1となり、暗い背景がランダムに1
または0に2値化されるようなノイズが生じるようなこ
とはなく、文字認識の前処理としても有効である。
According to the above configuration, as a result of binarization in a minute area, luminance information of only a portion where a pixel value is desirably 1 such as a sky in a natural image and a background in a character is obtained. Extraction, and the threshold value Bth for binarization is determined.
The result of the binarization process is, for example, that the dark background is definitely 0,
The bright part is definitely 1 and the dark background is 1 at random
Or, noise such as binarization to 0 does not occur, and is effective as preprocessing for character recognition.

【0019】また、本発明の画像2値化方法は、任意の
1個の微小エリアを注目微小エリアとしたとき、該注目
微小エリアを含む近傍数エリアの閾値との間で補間を取
ることによって、前記注目微小エリアの新たな閾値Ba
veとして算出することを特徴とする。
Further, according to the image binarization method of the present invention, when any one minute area is set as a noticed minute area, interpolation is performed between the arbitrary small area and a threshold value of several neighboring areas including the noticed minute area. , A new threshold value Ba of the noted minute area
ve.

【0020】上記の構成によれば、白黒の文書を撮影し
たデジタル画像で、部分的に何らかの陰が写り込んでお
り、黒い文字の黒画素値は隣接画素で近似しているが、
背景の白部分の画素値が大きく異なり、隣接微小エリア
間で2値化の閾値Bthが大きく異なるのを緩和できる
ため、良好な2値化画像を得ることが可能である。
According to the above configuration, a digital image obtained by photographing a black-and-white document partially reflects some shade, and the black pixel value of a black character is approximated by an adjacent pixel.
Since the pixel value of the white portion of the background is largely different and the threshold value Bth of the binarization is greatly different between the adjacent minute areas, a good binarized image can be obtained.

【0021】[0021]

【発明の実施の形態】本発明の実施の一形態について、
図1〜図10に基づいて説明すれば以下のとおりであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described.
The following is a description based on FIGS. 1 to 10.

【0022】図1は、本発明に係わる画像2値化方法が
適用される画像処理装置の構成の一例を示すブロック図
である。この画像処理装置は、マイクロコンピュータな
どで実現される処理装置1と、陰極線管や液晶表示装置
などで実現される表示装置2と、RAMなどで実現され
る画像処理用メモリ3と、ハードディスク装置などで実
現される主ストレージ装置4と、マウスやキーボードな
どで実現されるコマンド入力装置5と、RAMなどで実
現されるプログラム記憶用メモリ6と、外部インタフェ
イス回路7とを備えて構成されている。
FIG. 1 is a block diagram showing an example of the configuration of an image processing apparatus to which the image binarization method according to the present invention is applied. The image processing device includes a processing device 1 realized by a microcomputer or the like, a display device 2 realized by a cathode ray tube or a liquid crystal display device, an image processing memory 3 realized by a RAM or the like, a hard disk device, and the like. , A command input device 5 implemented by a mouse or a keyboard, a program storage memory 6 implemented by a RAM or the like, and an external interface circuit 7. .

【0023】前記処理装置1は、前記コマンド入力装置
5からのユーザ操作に応答して、画像処理プログラムや
処理対象画像のデータを取込み、後に詳述するような白
黒2値化処理を行うとともに、処理データの格納や表示
画像の作成などのシステム全体の入出力制御や演算処理
を行う。前記表示装置2は、表示部と表示用メモリと前
記処理装置1とのインタフェイス回路となどを備えて構
成されており、コマンドや処理対象の画像などの前記処
理装置1で作成された表示画像を表示する。
In response to a user operation from the command input device 5, the processing device 1 fetches an image processing program and data of an image to be processed, performs black and white binarization processing as described in detail later, It performs input / output control and arithmetic processing of the entire system such as storage of processing data and creation of display images. The display device 2 includes a display unit, a display memory, an interface circuit for the processing device 1, and the like, and displays a display image created by the processing device 1, such as a command or an image to be processed. Is displayed.

【0024】前記画像処理用メモリ3は、処理対象画像
の画像値データを記憶するとともに、画像処理演算のた
めのワークエリアとして使用される。前記主ストレージ
装置4は、処理対象画像や処理後の画像ならびに画像処
理プログラムなどを記憶、保存している。前記コマンド
入力装置5は、プログラムの実行、停止、処理対象画像
の指定、処理後の画像の保存先の指定等をユーザが入力
するために操作される。
The image processing memory 3 stores image value data of an image to be processed and is used as a work area for image processing calculations. The main storage device 4 stores and stores an image to be processed, an image after processing, an image processing program, and the like. The command input device 5 is operated by a user to input execution of a program, stop, designation of an image to be processed, designation of a storage destination of a processed image, and the like.

【0025】前記プログラム記憶用メモリ6は、プログ
ラムの実行前に、前記主ストレージ装置4に保存されて
いる前記画像処理プログラムを読出し、実行するために
用いられる。前記外部インタフェイス回路7は、前記デ
ジタルスチルカメラ、イメージスキャナ、あるいはビデ
オキャブチャ回路等で取得された処理対象のカラー静止
画像のデータを取込み、また印刷装置に対する2値化処
理後の画像データの出力などのために用いられる。
The program storage memory 6 is used to read and execute the image processing program stored in the main storage device 4 before executing the program. The external interface circuit 7 captures data of a color still image to be processed obtained by the digital still camera, image scanner, video capture circuit, or the like, and outputs image data after binarization processing to a printing apparatus. Used for output.

【0026】本発明に従う画像2値化方法は、概略的
に、2値化処理前に、処理対象画像の明るさの補正やコ
ントラストの補正を行い、さらに本来白い部分に色が付
いてしまっているような色調のずれを補正する。そし
て、画像を任意の微小エリアに分割し、各エリア毎に求
めた閾値によって2値化処理を行う。
The image binarization method according to the present invention generally corrects the brightness and contrast of the image to be processed before the binarization processing, and furthermore, the white part is originally colored. To correct the color shift as if Then, the image is divided into arbitrary small areas, and binarization processing is performed using threshold values obtained for each area.

【0027】前記外部インタフェイス回路7を介して取
込まれ、前記主ストレージ装置4に保存されている原画
像ファイルから、処理対象のカラー静止画像のファイル
が読出され、JPEGなどの予め指定されたフォーマッ
トの前記処理対象画像のデータは、伸長処理などによっ
て、各画素毎に、たとえばR,G,Bの各色当り8ビッ
トのビットマップ画像に展開されて、前記画像処理用メ
モリ3に記憶される。
A color still image file to be processed is read out from an original image file which is fetched via the external interface circuit 7 and stored in the main storage device 4, and is designated by a JPEG or the like. The data of the image to be processed in the format is expanded into, for example, an 8-bit bitmap image for each of R, G, and B colors for each pixel by expansion processing or the like, and stored in the image processing memory 3. .

【0028】そして、さらに2値化処理にあたって、そ
の画像がどのような被写体を撮影した画像であるか、ま
たどのような手法で画像補正を施したらよいかを予測す
るために、図2で示すように、画面全体を小エリアに分
割する(図2では、展開されたビットマップの縦、横を
各々5分割、すなわち画面全体を25の小エリアに分割
している)。すなわち、各小エリアの輝度、R,G,B
の平均値、IQ値または、B−Y、R−Y等の色差信号
等の画像属性を計算することによって、前記被写体の推
測や画像補正の手法を決定することができる。
In order to further predict what kind of subject the image is in the binarization process and what method to perform image correction, FIG. 2 shows. In this manner, the entire screen is divided into small areas (in FIG. 2, the vertical and horizontal directions of the developed bitmap are each divided into five, that is, the entire screen is divided into 25 small areas). That is, the brightness of each small area, R, G, B
By calculating an image attribute such as an average value, an IQ value, or a color difference signal such as BY, RY, or the like, it is possible to determine a method of estimating the subject or correcting an image.

【0029】たとえば、図2で示すように、画面全体を
前記25の小エリアに分割し、さらに中央9エリアと周
囲16エリアとに区分する。前記中央9エリアとは、図
中のエリア番号6,7,8,11,12,13,16,
17,18で構成された矩形エリアのことであり、また
周囲16エリアとは、画面全体から、前記中央9エリア
の部分を除いたエリアのことである。
For example, as shown in FIG. 2, the entire screen is divided into the aforementioned 25 small areas, and further divided into 9 central areas and 16 peripheral areas. The nine central areas are area numbers 6, 7, 8, 11, 12, 13, 16,
It is a rectangular area constituted by 17, 18 and the surrounding 16 areas are areas excluding the central 9 area from the entire screen.

【0030】そして、まず前記中央9エリアの平均輝度
Ycを求める。中央9エリアの平均輝度Ycは、たとえ
ば画素のR,G,B成分をより人間の視感度特性に合わ
せて下式にて1画素ずつ求めた後に、それを前記中央9
エリアの全画素について積算し、画素数で除算すること
により求められる。
First, the average luminance Yc of the nine central areas is determined. The average luminance Yc of the central nine areas is obtained, for example, by calculating the R, G, and B components of the pixels one pixel at a time according to the following equation in accordance with the human luminosity characteristics.
It is obtained by integrating all the pixels in the area and dividing by the number of pixels.

【0031】 Y=0.3R+0.59G+0.11B …(1) 次に、同様にして、周囲16エリアの平均輝度Yaを求
める。続いて、上記平均輝度YcとYaとを比較し、Y
cがYaよりも小さければ、画面中央にある被写体が逆
光にあると判断することができ、周囲より暗い中央部の
階調を優先的に以下の補正を行うようにする。これに対
して、YcがYaより大きいか等しい場合は、風景や人
物の集合写真といった画面全体を重視するべき画像と判
断することができ、画面全体の25エリアすべての画素
を対象に補正を行うようにする。このようにして、前記
被写体の推測や画像補正の手法を決定することができ
る。
Y = 0.3R + 0.59G + 0.11B (1) Next, similarly, the average luminance Ya of the surrounding 16 areas is obtained. Subsequently, the average luminance Yc and Ya are compared, and Y
If c is smaller than Ya, it can be determined that the subject at the center of the screen is in backlight, and the following correction is preferentially performed on the gradation in the central part darker than the surroundings. On the other hand, if Yc is greater than or equal to Ya, it can be determined that the image such as a landscape or a group photo of a person should be emphasized on the entire screen, and correction is performed on all the pixels in the 25 areas of the entire screen. To do. In this manner, the method of estimating the subject and correcting the image can be determined.

【0032】図3および図4は、前記濃度補正および色
調補正を説明するためのグラフである。補正にあたって
は、まず図3で示すように、R,G,Bの各成分の濃度
ヒストグラムならびにR,G,Bそれぞれの濃度ヒスト
グラム分布の最大値Rmax,Gmax,Bmaxおよ
び最小値Rmin,Gmin,Bminが求められる。
すなわち、図3において、参照符β1は原画像から求め
られたR,G,Bのうち、任意の一色の濃度ヒストグラ
ムの一例であり、その分布範囲の最小値をminで、最
大値をmaxで示している。
FIGS. 3 and 4 are graphs for explaining the density correction and the color tone correction. In the correction, first, as shown in FIG. 3, the density histograms of the R, G, and B components, and the maximum values Rmax, Gmax, Bmax and the minimum values Rmin, Gmin, Bmin of the density histogram distributions of R, G, and B, respectively. Is required.
That is, in FIG. 3, reference numeral β1 is an example of a density histogram of an arbitrary color among R, G, and B obtained from the original image. The minimum value of the distribution range is represented by min, and the maximum value is represented by max. Is shown.

【0033】次に、補正は、前記最小値minおよび最
大値maxを、8ビット、すなわち0〜255までの2
56階調の値域に伸張し、参照符β2に示すような分布
にすることによって実現される。すなわち前記伸張処理
によって、画像としては値域の最小値から最大値につい
てその色の画素が分布することになり、明るさが補正さ
れるとともに、特定の濃度値にだけ分布が集中してしま
うようなコントラストの不足を補正することができる。
Next, the correction is performed by setting the minimum value min and the maximum value max to 8 bits, that is, 2 to 0 to 255.
This is realized by extending to a value range of 56 gradations and making a distribution as indicated by reference numeral β2. That is, by the expansion processing, the pixels of the color are distributed from the minimum value to the maximum value of the value range as an image, and the brightness is corrected and the distribution is concentrated only at a specific density value. The lack of contrast can be corrected.

【0034】また、図4(a)で示すように、原画に
R,G,Bの各濃度ヒストグラムの分布に違いがある場
合(図4(a)では、赤っぽい画像を例示している)
は、上記濃度ヒストグラムの伸張によって各色の値域が
等しくなるように変換されるので、図4(b)で示すよ
うに、同時に色調も補正される。上記伸張に用いる式
は、伸張前の濃度値をR,G,B、伸張後の濃度値を
R’,G’,B’とすると、たとえば下式で示すような
1次式によって求められる。また、濃度値RとR’と
は、図5にも示す。 R’={255/(Rmax−Rmin)}×(R−Rmin) …(2) G’={255/(Gmax−Gmin)}×(G−Gmin) …(3) B’={255/(Bmax−Bmin)}×(B−Bmin) …(4) このようにして、前記濃度補正および色調補正を同時に
行うことができ、処理速度を向上することができる。
Also, as shown in FIG. 4A, when the distribution of the density histograms of R, G, and B in the original image is different (FIG. 4A illustrates a reddish image). )
Is converted by the expansion of the density histogram so that the value range of each color becomes equal, and as shown in FIG. 4B, the color tone is also corrected at the same time. Assuming that the density values before expansion are R, G, B and the density values after expansion are R ', G', B ', the equation used for the above expansion is obtained by a linear equation as shown in the following equation, for example. The density values R and R ′ are also shown in FIG. R ′ = {255 / (Rmax−Rmin)} × (R−Rmin) (2) G ′ = {255 / (Gmax−Gmin)} × (G−Gmin) (3) B ′ = {255 / (Bmax−Bmin)} × (B−Bmin) (4) In this manner, the density correction and the color tone correction can be performed simultaneously, and the processing speed can be improved.

【0035】しかしながら、前述の濃度ヒストグラムに
よる色補正効果が少ない画像の場合には、さらに白バラ
ンス補正を行う。まず、補正を行うべきか否かを判定す
るために、前記R,G,Bの各濃度ヒストグラムの最大
値Rmax,Gmax,Bmaxと、予め定める閾値Y
thとの大小を比較し、Rmax>Yth、Gmax>
Yth、Bmax>Ythの3条件が同時に成立する
と、前記濃度ヒストグラム伸張による色補正が難しい画
像であると判定し、白バランス補正を行うようにする。
すなわち、前記閾値Ythは、前記のようにR,G,B
各色毎に8ビット、すなわち0〜255の値域では、た
とえば245に選ばれ、前記3条件が同時に成立するよ
うな画像は、R,G,B総ての濃度ヒストグラムの最大
値がいずれも255に近い値で、たとえば原画像の中に
面積の大きいハイライト部分があるような画像であり、
前記濃度ヒストグラムによる色補正効果が少なくなって
しまうためである。
However, in the case of an image having a small color correction effect based on the density histogram, the white balance correction is further performed. First, in order to determine whether or not to perform correction, the maximum values Rmax, Gmax, and Bmax of the R, G, and B density histograms and a predetermined threshold Y
Th is compared with Rmax> Yth, Gmax>
If the three conditions of Yth and Bmax> Yth are satisfied at the same time, it is determined that the image is an image for which color correction by expansion of the density histogram is difficult, and white balance correction is performed.
That is, the threshold value Yth is set to R, G, B as described above.
In the range of 8 bits for each color, that is, in the range of 0 to 255, for example, 245 is selected. For an image in which the above three conditions are satisfied at the same time, the maximum value of the density histogram of all R, G, and B is 255. An image with similar values, such as a large area highlight in the original image,
This is because the color correction effect by the density histogram is reduced.

【0036】次に、前記白バランス補正は、画像の中で
本来白である画素を抽出し、その抽出した白画素のR,
G,Bの各濃度値をそれぞれ加算し、白画素の個数で除
算することによって求めた濃度平均値Wr,Wg,Wb
から、R,G,B各色毎に白画素を白くするための変換
係数Kr,Kg,Kbを求め、原画像の全画素のR,
G,Bの各濃度値にその変換係数Kr,Kg,Kbをそ
れぞれ乗算することで行われる。前記変換係数Kr,K
g,Kbは、原画像の平均輝度をWyとするとき、それ
ぞれ前記濃度平均値Wr,Wg,Wbに乗じた結果が相
互に等しくなり、さらに輝度を変化させないものとする
と、 Wr・Kr=Wg・Kg=Wb・Kb=Wy …(5) が成立することから求められ、 Kr=Wy/Wr …(6) Kg=Wy/Wg …(7) Kb=Wy/Wb …(8) である。
Next, in the white balance correction, a pixel which is originally white in an image is extracted, and R and R of the extracted white pixel are extracted.
Average density values Wr, Wg, Wb obtained by adding the respective density values of G and B and dividing by the number of white pixels.
, Conversion coefficients Kr, Kg, and Kb for whitening white pixels for each of R, G, and B colors are obtained, and R,
This is performed by multiplying each of the density values of G and B by the conversion coefficients Kr, Kg, and Kb, respectively. The conversion coefficients Kr, K
Assuming that the average luminance of the original image is Wy, the results obtained by multiplying the average density values Wr, Wg, and Wb are equal to each other, and that the luminance is not changed. Wr · Kr = Wg Kg = Wb · Kb = Wy (5) Kr = Wy / Wr (6) Kg = Wy / Wg (7) Kb = Wy / Wb (8)

【0037】また、前記白画素の抽出は、彩度がきわめ
て小さいという特長を利用し、各画素の色成分を式9,
10でそれぞれ示すI,Qの2つの値で表し、式11で
示すように、I,Q各々の絶対値がともに規定値Wth
より小さい場合、彩度がきわめて小さい画素、すなわち
白画素であるとして行うことができる。 I=0.599R−0.277G−0.322B …(9) Q=0.213R−0.525G−0.312B …(10) |I|<Wth AND |Q|<Wth …(11) この結果、本来白である画素のR値、B値、G値が等し
い値、すなわち白(正確にはグレー)に補正されるの
で、画像全体の色調を補正し、自然な色調とすることが
でき、色調補正できる対象画像を増やすことができる。
また、たとえば画像の色調が青に偏っている場合、前記
式1から、白画素の輝度値が低下してしまい、後述する
閾値の抽出精度が低下してしまうという不具合をなくす
ことができる。
The extraction of the white pixels takes advantage of the fact that the saturation is extremely low.
10, are represented by two values of I and Q. As shown in Expression 11, both absolute values of I and Q are both defined values Wth.
In the case of being smaller, it can be performed as a pixel having extremely small saturation, that is, a white pixel. I = 0.599R-0.277G-0.322B (9) Q = 0.213R-0.525G-0.312B (10) | I | <Wth AND | Q | <Wth (11) As a result, since the R value, B value, and G value of a pixel that is originally white are corrected to equal values, that is, white (accurately, gray), the color tone of the entire image can be corrected and a natural color tone can be obtained. Thus, it is possible to increase the number of target images for which the color tone can be corrected.
Further, for example, when the color tone of the image is biased toward blue, it is possible to eliminate the problem that the luminance value of the white pixel is reduced from Expression 1 and the threshold value extraction accuracy described later is reduced.

【0038】以上のようにして原画像のコントラストお
よび色調の補正が行われると、補正後のデータを用い
て、各画素が閾値によって2値化される。まず、2値化
の閾値を求める前準備として、画面を微小エリアに分割
する。次に、その分割した各微小エリア毎に、高輝度画
素平均を基に2値化の閾値を決定する。続いて、その閾
値で各微小エリア内の全画素を2値化する。
When the contrast and the color tone of the original image are corrected as described above, each pixel is binarized by a threshold using the corrected data. First, the screen is divided into minute areas as preparation for obtaining a threshold for binarization. Next, a threshold value for binarization is determined for each of the divided micro areas based on the average of high luminance pixels. Subsequently, all pixels in each minute area are binarized by the threshold value.

【0039】前記微小エリアへの分割は、たとえば一般
にXGAサイズと呼ばれる図6(a)に示す1024×
768画素の画像を元画像とすると、64×48に分割
することで行われる。この場合、図6(b)に示す各微
小エリアa1,a2,…は、16×16画素で構成され
る正方形のエリアとなる。分割数は、本例では64×4
8としているが、画像サイズに応じて適宜変更されても
良い。
The division into the minute areas is performed, for example, by using the 1024 × size shown in FIG.
Assuming that an image of 768 pixels is an original image, the image is divided by 64 × 48. In this case, each of the minute areas a1, a2,... Shown in FIG. 6B is a square area composed of 16 × 16 pixels. The number of divisions is 64 × 4 in this example.
Although it is set to 8, it may be changed appropriately according to the image size.

【0040】2値化の閾値の決定は、前記の高輝度画素
平均に基づいており、まず画像の平均輝度Yaveを求
め、注目する微小エリア内の全画素について下式の条件
を満たす画素の輝度Ypを積算し、その合計値Ywを求
める。 Yp≧k×Yave …(12) 次に、前記式12の条件を満たす画素数mを求め、その
画素数mと任意に設けた個数の基準値M、たとえば10
とを比較し、m<10、すなわち16×16=256画
素中に、前記平均輝度Yaveの所定係数k倍(k>
1)以上の輝度Ypの画素が10個未満である場合に
は、その微小エリアほとんどが暗い黒ベタ部分で、2値
化した結果を0としてしまうのが望ましいエリアである
と判断し、そのエリアの閾値Bthを値域の中央値
(R,G,Bの各色毎に前記8ビットの分解能とする
と、128となる)とする。これに対して、m≧10で
ある場合には、その微小エリアは黒ベタ部分ではなく、
値域内で輝度が適度に分布していると判断し、前記平均
輝度Yaveを閾値Bthとする。
The determination of the threshold value for binarization is based on the above average of high luminance pixels. First, the average luminance Yave of the image is obtained, and the luminance of the pixels satisfying the following condition is obtained for all the pixels in the small area of interest. Yp is integrated, and the total value Yw is obtained. Yp ≧ k × Yave (12) Next, the number m of pixels that satisfies the condition of the expression 12 is obtained, and the number m of pixels and a reference value M of an arbitrary number, for example, 10
And m <10, that is, within 16 × 16 = 256 pixels, a predetermined coefficient k times (k>) of the average luminance Yave
1) When the number of pixels with the luminance Yp of the above is less than 10, it is determined that most of the minute area is a dark black solid portion, and it is desirable that the binarized result is set to 0, and that area is determined. Is the median value of the range (128 when the 8-bit resolution is set for each of R, G, and B colors). On the other hand, when m ≧ 10, the minute area is not a solid black portion,
It is determined that the luminance is appropriately distributed within the value range, and the average luminance Yave is set as a threshold Bth.

【0041】これによって、たとえば新聞の写真や大見
出しをスキャニングしたようなデジタル画像の場合、こ
ういった黒ベタ部分は値域の中央値と比較して画素値が
低く、前記のように値域の中央値で2値化することによ
って、値0に変換することができる。一方、この場合に
前記平均輝度Yaveを閾値としてしまうと、該平均輝
度Yaveが低い値となり、黒部分がランダムに1また
は0に変換され、元画像の黒部分が正確に0として変換
されなくなってしまう。
Thus, for example, in the case of a digital image obtained by scanning a newspaper photograph or a headline, such a solid black portion has a lower pixel value than the median of the range, and as described above, By binarizing with a value, it can be converted to a value 0. On the other hand, if the average luminance Yave is set as a threshold value in this case, the average luminance Yave becomes a low value, the black portion is randomly converted to 1 or 0, and the black portion of the original image is not accurately converted to 0 and cannot be converted. I will.

【0042】そして、元画像中の全微小エリアについ
て、上記のようにして求めた閾値を仮の閾値とし、注目
微小エリアを含む近傍の微小エリアの仮の閾値との間で
補間を取ることによって、該注目微小エリアの新たな閾
値Baveを計算し、その新たな閾値Baveに予め定
める係数nを乗算することによって、実際の閾値Btを
求め、2値化処理を行う。
Then, for all the micro areas in the original image, the threshold value obtained as described above is used as a provisional threshold value, and interpolation is performed with the provisional threshold value of a nearby micro area including the attention micro area. , A new threshold value Bave of the minute area of interest is calculated, and the new threshold value Bave is multiplied by a predetermined coefficient n to obtain an actual threshold value Bt, and a binarization process is performed.

【0043】したがって、たとえば白黒の文書を撮影し
たデジタル画像で、部分的に何らかの陰が写り込んでお
り、隣接画素との間で、黒い文字の画素値は近似してい
るが、背景の白部分の画素値が大きく異なるような元画
像に部分的な陰影の変化があり、注目微小エリアと隣接
する微小エリアとの間で前記仮の閾値が大きく変化して
いるような場合にも、それを緩和することができる。
Therefore, for example, in a digital image obtained by photographing a black and white document, some shade is partially reflected, and the pixel value of a black character is close to that of an adjacent pixel, but the white portion of the background Even if there is a partial shading change in the original image in which the pixel value of is significantly different, and the provisional threshold value greatly changes between the minute area of interest and the adjacent minute area, Can be eased.

【0044】ただし、隣接する微小エリアとの間に、極
端な明暗の変化があり、たとえば注目微小エリアc3が
明部分にあり、任意の微小エリアc2,c4,b3また
はd3が暗部分にあるような場合、そのエリアの影響を
受けないようにするために、下式で示すように両者の閾
値に大きな差があると、そのエリアの閾値を前記補間演
算に使用しないようにする。 注目エリアの閾値−任意の隣接エリアの閾値>基準値 …(13) このようにして、2値化の閾値およびその閾値での2値
化処理を行うことができる。
However, there is an extreme change in lightness and darkness between the adjacent minute areas. For example, the noticeable minute area c3 is located in the bright part, and any minute area c2, c4, b3 or d3 is located in the dark part. In such a case, in order to prevent the influence of the area, if there is a large difference between the two thresholds as shown in the following equation, the threshold of the area is not used for the interpolation calculation. Threshold value of attention area−threshold value of arbitrary adjacent area> reference value (13) In this way, the binarization threshold value and the binarization process using the threshold value can be performed.

【0045】図7は、上述のような本発明の実施の一形
態の画像2値化方法を説明するためのフローチャートで
ある。前記外部インタフェイス回路7を介して取込ま
れ、前記主ストレージ装置4に保存されている原画像フ
ァイルから、ステップs1で、処理対象画像のファイル
が前記JPEGなどの予め指定されたフォーマットで読
込まれ、前記画像処理用メモリ3上にビットマップとし
て展開される。ステップs2では、前記被写体の推定や
補正手法の決定のために、たとえば前記図2で示すよう
に、展開されたビットマップの縦、横を各々5分割し、
画面全体が25の小エリアに分割される。
FIG. 7 is a flowchart for explaining the image binarization method according to the embodiment of the present invention as described above. At step s1, a file of an image to be processed is read in a pre-designated format such as the JPEG from the original image file taken in through the external interface circuit 7 and stored in the main storage device 4. , Is developed as a bit map on the image processing memory 3. In step s2, for the purpose of estimating the subject and determining the correction method, for example, as shown in FIG.
The entire screen is divided into 25 small areas.

【0046】ステップs3では、前記中央9エリアにお
いて、1画素ずつの輝度Yが前記式1に従って求めら
れ、それを該中央9エリアの全画素について積算し、画
素数で除算することによって前記平均輝度Ycが求めら
れる。ステップs4では、同様にして周囲16エリアの
平均輝度Yaが求められる。
In step s3, the luminance Y for each pixel in the central nine areas is obtained according to the above equation 1, and the luminance Y is integrated for all the pixels in the central nine areas and divided by the number of pixels to obtain the average luminance. Yc is required. In step s4, the average luminance Ya of the surrounding 16 areas is similarly obtained.

【0047】ステップs5では、上記平均輝度YcとY
aとが比較され、YcがYaよりも小さければ、画面中
央にある被写体が逆光にあると判断して、ステップs6
で周囲より暗い中央部の階調を優先的に補正するため、
前記濃度ヒストグラムの計算や白ピクセルの抽出を中央
9エリアの画素を対象に設定し、逆にYcがYaより大
きいか等しい場合は、風景や人物の集合写真といった画
面全体を重視するべき画像と判断し、ステップs7にお
いて、画面全体の25エリアすべての画素を対象に設定
する。ステップs8では、前記ステップs6またはs7
で決定された注目エリアについて、R,G,Bの各成分
の濃度ヒストグラムならびに前記最大値Rmax,Gm
ax,Bmaxおよび最小値Rmin,Gmin,Bm
inが求められる。ステップs9,s10,s11で
は、前記ステップs8で求めたR,G,Bそれぞれの濃
度ヒストグラムを前記式2,3,4に従って伸張して、
コントラスト補正および色調補正が行われる。
In step s5, the average luminances Yc and Yc
is compared with Y. If Yc is smaller than Ya, it is determined that the subject at the center of the screen is in backlight, and step s6 is performed.
To preferentially correct the gradation at the center, which is darker than the surroundings,
The calculation of the density histogram and the extraction of white pixels are set for the pixels in the central nine areas. Conversely, when Yc is greater than or equal to Ya, it is determined that the image such as a landscape or group photo of a person should be emphasized. Then, in step s7, all 25 pixels in the entire screen are set as targets. In Step s8, Step s6 or s7
, The density histograms of the R, G, and B components and the maximum values Rmax, Gm
ax, Bmax and minimum values Rmin, Gmin, Bm
in is required. In steps s9, s10, and s11, the density histograms of R, G, and B obtained in step s8 are expanded according to the expressions 2, 3, and 4,
Contrast correction and color tone correction are performed.

【0048】ステップs12では、前述したR,G,B
の各濃度ヒストグラムの最大値Rmax,Gmax,B
maxと、閾値Ythとの大小が判定され、Rmax>
Yth、Gmax>Yth、Bmax>Ythの3条件
が同時に成立すれぱ、前記ステップs9〜s11による
濃度ヒストグラム伸張による色補正が難しい画像である
と判定し、以下のステップs13〜s15による第2の
色補正ステップを処理に追加する。
In step s12, the aforementioned R, G, B
Values Rmax, Gmax, B of each density histogram
The magnitude of max and the threshold Yth is determined, and Rmax>
If the three conditions of Yth, Gmax> Yth, and Bmax> Yth are simultaneously satisfied, it is determined that the image is an image for which color correction by the expansion of the density histogram in steps s9 to s11 is difficult, and the second color in steps s13 to s15 described below. Add a correction step to the process.

【0049】ステップs13では、前記式9〜11か
ら、画像の中で本来白である画素の抽出が行われ、さら
に抽出された白画素のR,G,Bの各濃度値がそれぞれ
加算され、白画素の個数で除算することによって、白画
素のR,G,B各色毎の濃度平均値Wr,Wg,Wbが
求められる。ステップs14では、前記濃度平均値W
r,Wg,Wbから、前記式6,7,8によって、R,
G,B各色毎に白画素を白くするための変換係数Kr,
Kg,Kbが求められる。ステップs15では、原画像
の全画素のR,G,Bの各濃度値に式6,7,8の変換
係数Kr,Kg,Kbがそれぞれ乗算される。こうし
て、本来白である画素のR値、G値、B値が等しい値に
補正されるため、画像全体の色調が補正され、自然な色
調となる。
In step s13, pixels which are originally white in the image are extracted from the expressions 9 to 11, and the R, G, and B density values of the extracted white pixels are added, respectively. By dividing by the number of white pixels, the average density values Wr, Wg, Wb of the R, G, B colors of the white pixels are obtained. In step s14, the density average value W
From r, Wg, and Wb, R,
A conversion coefficient Kr for whitening a white pixel for each of G and B colors,
Kg and Kb are determined. In step s15, the R, G, and B density values of all the pixels of the original image are multiplied by the conversion coefficients Kr, Kg, and Kb of Expressions 6, 7, and 8, respectively. Thus, the R value, the G value, and the B value of the pixel that is originally white are corrected to the same value, so that the color tone of the entire image is corrected and a natural color tone is obtained.

【0050】以上のステップs2〜s15の処理によっ
て、良好な2値化画像を得るために、原画像のコントラ
ストおよび色調の補正が行われと、ステップs16で
は、2値化の閾値を求める前準備として、画像が64×
48画像の微小エリアに分割される。ステップs17で
は、前記s16で分割された各微小エリア毎に、高輝度
画素平均を基に2値化の閾値が決定され、その閾値で各
微少エリア内の全画素が2値化される。2値化された画
像は、ステップs18において、指定された画像形式で
保存され、2値化画像ファイルが作成される。
After the above steps s2 to s15, the contrast and the tone of the original image are corrected in order to obtain a good binarized image. In step s16, the preparation for obtaining the binarization threshold is performed. The image is 64x
The image is divided into minute areas of 48 images. In step s17, a threshold for binarization is determined for each micro area divided in s16 based on the average of high-luminance pixels, and all pixels in each micro area are binarized using the threshold. In step s18, the binarized image is stored in a specified image format, and a binarized image file is created.

【0051】図8は、前記ステップs17における2値
化処理の詳細を説明するためのフローチャートである。
ステップs21では、画像の平均輝度Yaveが求めら
れる。ステップs22では、注目微小エリア内の全画素
について前記式12の条件を満たす画素の輝度Ypを積
算し、その合計値Ywが求められる。ステップs23で
は、前記式12の条件を満たす画素数mが求められる。
FIG. 8 is a flowchart for explaining the details of the binarization process in step s17.
In step s21, the average luminance Yave of the image is obtained. In step s22, the luminance Yp of the pixels satisfying the condition of the expression 12 is integrated for all the pixels in the small area of interest, and the total value Yw is obtained. In step s23, the number m of pixels that satisfies the condition of Expression 12 is obtained.

【0052】ステップs24で、前記画素数m基準値M
とが比較され、m<Mである場合には、その微小エリア
ほとんどが暗い黒ベタ部分で、2値化した結果を0とし
てしまうのが望ましいエリアであると判断し、ステップ
s25で、そのエリアの閾値Bthを値域の中央値と
し、m≧10である場合には、その微小エリアは黒ベタ
部分ではなく、値域内で輝度が適度に分布していると判
断し、ステップs26で、前記平均輝度Yaveを閾値
Bthとする。ステップs25,s26からはステップ
s27に移り、上記説明ではステップs22〜s26の
処理が画像内の1微小エリアについて説明しているが、
画像内の全微小エリアについて実行されたか否かが判断
され、そうでないときには前記ステップs22に戻り、
そうであるときには画像中の全微小エリアについて仮の
閾値が求まっているので、ステップs28に移る。
In step s24, the reference number M of the number of pixels m
When m <M, it is determined that most of the minute area is a dark black solid portion and it is desirable to set the binarized result to 0, and in step s25, that area is determined. Is set as the median value of the value range, and if m ≧ 10, it is determined that the small area is not a solid black portion but the luminance is appropriately distributed within the value range. The luminance Yave is set to a threshold Bth. The process moves from step s25 and s26 to step s27. In the above description, the processing of steps s22 to s26 is for one minute area in the image.
It is determined whether or not the process has been performed for all the small areas in the image. If not, the process returns to step s22.
If so, since the provisional threshold values have been determined for all the small areas in the image, the process proceeds to step s28.

【0053】ステップs28では、元画像に部分的な陰
影の変化があり、注目微小エリアと隣接する微小エリア
とで前記s22からs28までのステップで求めた仮の
2値化の閾値Bthが大きく変化することを緩和するた
め、前記式13に該当するエリアを除き、注目微小エリ
アを中心とする近傍の3×3の微小エリアの仮の閾値B
th間で補間を取り、新たな仮の閾値Baveが求めら
れる。
In step s28, there is a partial change in shading in the original image, and the provisional binarization threshold Bth obtained in steps s22 to s28 greatly changes between the minute area of interest and the minute area adjacent thereto. In order to alleviate this, a temporary threshold value B of a 3 × 3 minute area near the focused minute area is excluded except for the area corresponding to Expression 13.
Interpolation is performed between th and a new temporary threshold value Bave is obtained.

【0054】ステップs29からステップs31では、
ステップs28で求めた補間後の仮の閾値Baveに係
数nを乗算し、実際の2値化のための閾値Btを求め、
その閾値Btを用いて微小エリア内の全画素が2値化処
理される。或る微小エリア、たとえば前記c3内の全画
素について2値化処理が終了すると、次は注目微小エリ
アがd3となり、補間対象となる隣接微小エリアも1セ
クションだけシフトする。こうしてステップs32に
て、全微小エリアについて2値化処理が完了するまでス
テップs28に戻り、完了すると前記ステップs18に
戻る。
In steps s29 to s31,
The provisional threshold value Bave after interpolation obtained in step s28 is multiplied by a coefficient n to obtain a threshold value Bt for actual binarization.
Using the threshold value Bt, all pixels in the minute area are binarized. When the binarization processing is completed for a certain small area, for example, all the pixels in c3, the next minute area of interest becomes d3, and the adjacent minute area to be interpolated is also shifted by one section. Thus, in step s32, the process returns to step s28 until the binarization process is completed for all the small areas, and when completed, returns to step s18.

【0055】図9および図10は、2値化処理結果を示
す図である。図9(a)および図10(a)は、ともに
元画像であり、図9(a)は名刺画像、図10(a)は
風景画像である。図9(a)では背景に階調がついてお
り、図10(a)では空に階調がついている。図9
(b)および図10(b)は、ともに従来技術による2
値化処理結果を示すものであり、図9(c)および図1
0(c)は、ともに本発明による2値化処理結果を示す
ものである。
FIGS. 9 and 10 show the results of the binarization process. 9A and 10A are the original images, FIG. 9A is a business card image, and FIG. 10A is a landscape image. In FIG. 9A, the background has a gradation, and in FIG. 10A, the sky has a gradation. FIG.
(B) and FIG. 10 (b) both show 2
FIG. 9 (c) and FIG.
0 (c) indicates the binarization processing result according to the present invention.

【0056】図9(b)では、背景部分と、文字の回り
にノイズが乗っており、文字認識等の入力画像としては
不適切である。また、図10(b)では、空の階調がそ
のままノイズのドットパターンとなって表現されてしま
っている。これに対して、図9(c)では、背景や文字
の周囲にノイズが少ないことが理解される。また、図1
0(c)では、空の部分がほぼ全域にわたり1に振り分
けられており、コントラストの高い2値画像となってい
ることが理解される。
In FIG. 9B, noise is present around the background portion and around the character, which is inappropriate as an input image for character recognition or the like. Further, in FIG. 10B, the empty gradation is expressed as a noise dot pattern as it is. On the other hand, in FIG. 9C, it is understood that there is little noise around the background and the characters. FIG.
At 0 (c), the sky portion is distributed to 1 over almost the entire region, and it is understood that the image is a binary image with high contrast.

【0057】このようにして、2値化対象画像の低コン
トラスト部分の判読性を向上することができるととも
に、ノイズを低減することができる。
In this manner, the readability of the low-contrast portion of the image to be binarized can be improved, and the noise can be reduced.

【0058】[0058]

【発明の効果】本発明の画像2値化方法は、以上のよう
に、処理対象となるアナログまたは複数階調のデジタル
画像を予め定める閾値でレベル弁別することによって2
値化処理を行うようにした画像2値化方法において、2
値化処理前に、前記処理対象画像のR,G,Bの各成分
の濃度ヒストグラムならびにR,G,Bそれぞれの濃度
ヒストグラム分布の最大値Rmax,Gmax,Bma
xおよび最小値Rmin,Gmin,Bminを求め、
前記最大値Rmax,Gmax,Bmaxおよび最小値
Rmin,Gmin,Bminがデータ値域の両端の値
となるように濃度ヒストグラム分布を伸張することによ
って、明るさの補正、コントラスト不足の補正および色
調補正を行う。
As described above, according to the image binarization method of the present invention, the analog or multi-tone digital image to be processed is level-discriminated with a predetermined threshold value.
In an image binarization method in which a binarization process is performed,
Before the binarization processing, the density histogram of each component of R, G, and B of the image to be processed and the maximum values Rmax, Gmax, and Bmax of the density histogram distributions of R, G, and B, respectively.
x and minimum values Rmin, Gmin, Bmin are obtained,
The brightness correction, the lack of contrast correction, and the color tone correction are performed by expanding the density histogram distribution so that the maximum values Rmax, Gmax, Bmax and the minimum values Rmin, Gmin, Bmin become values at both ends of the data value range. .

【0059】それゆえ、明るさおよびコントラスト不足
の補正によって2値化処理のの精度を向上することがで
きる。また、R,G,Bの各濃度ヒストグラムの分布に
違いがあり、本来白い部分に色が付いてしまっているよ
うな色調のずれも同時に補正することができる。さらに
また、前記色調補正を採用することによって、色調が偏
っていると前記白部分で輝度が大きく変化し、閾値が適
切に抽出されなくなってしまうような不具合を防止する
ことができ、内容判別に適した良好な2値画像を得るこ
とができる。また、コントラストと色調とを同時に補正
することができ、処理速度の向上を図ることができる。
Therefore, the accuracy of the binarization process can be improved by correcting the lack of brightness and contrast. In addition, there is a difference in the distribution of the density histograms of R, G, and B, and it is possible to simultaneously correct a color tone shift such that a white portion is originally colored. Furthermore, by adopting the color tone correction, it is possible to prevent a problem that when the color tone is biased, the luminance largely changes in the white portion, and the threshold value is not properly extracted, and the content determination is performed. A suitable good binary image can be obtained. Further, the contrast and the color tone can be simultaneously corrected, and the processing speed can be improved.

【0060】また、本発明の画像2値化方法は、以上の
ように、前記伸張処理を、R,G,B各色毎の1次式に
よって行う。
Further, in the image binarization method of the present invention, as described above, the decompression processing is performed by a linear expression for each of R, G, and B colors.

【0061】それゆえ、簡易な処理で伸長することがで
きるとともに、R,G,Bそれぞれについて濃度ヒスト
グラム分布を伸張するので、単色の色調補正では補正不
可能であった画像についても、高コントラストな変換画
像を得ることができる。
Therefore, the image can be expanded by simple processing, and the density histogram distribution is expanded for each of R, G, and B. Therefore, even for an image that cannot be corrected by a single color tone correction, a high contrast image can be obtained. A converted image can be obtained.

【0062】さらにまた、本発明の画像2値化方法は、
以上のように、画像の中から白い画素と考えられる画素
を白画素として抽出し、抽出した白画素のR,G,Bの
各濃度値の平均値Wr,Wg,Wbを求め、その平均値
Wr,Wg,Wbが相互に等しくなるような変換係数K
r,Kg,Kbを求め、原画像の全画素のR,G,Bの
各濃度値にその変換係数Kr,Kg,Kbをそれぞれ乗
算することで、さらに白バランス補正を行う。
Further, the image binarization method of the present invention
As described above, a pixel considered to be a white pixel is extracted from the image as a white pixel, and the average values Wr, Wg, Wb of the R, G, B density values of the extracted white pixel are obtained, and the average value is obtained. Conversion coefficient K such that Wr, Wg, Wb are mutually equal
r, Kg, and Kb are obtained, and the white balance correction is further performed by multiplying the R, G, and B density values of all the pixels of the original image by the conversion coefficients Kr, Kg, and Kb, respectively.

【0063】それゆえ、本来白い部分に付いた色に画像
全体の色調が偏ってしまい、請求項1の濃度ヒストグラ
ムによる色補正効果が少ない画像の場合にも、画像全体
の色調を補正し、自然な色調とした後に2値化処理を行
うことが可能になり、色調補正できる対象画像を増やす
ことができる。
Therefore, the color tone of the entire image is biased toward the color originally attached to the white portion, and even in the case of an image having a small color correction effect based on the density histogram according to the first aspect, the color tone of the entire image is corrected. The binarization process can be performed after the color tone is adjusted, and the number of target images for which the color tone can be corrected can be increased.

【0064】また、本発明の画像2値化方法は、以上の
ように、前記最大値Rmax,Gmax,Bmaxの総
てが予め定める閾値Ythより大きい場合に、前記請求
項1による濃度ヒストグラム伸張による色補正が難しい
画像であると判定し、前記請求項3の白バランス補正を
行う。
As described above, the image binarization method of the present invention uses the density histogram expansion according to claim 1 when all of the maximum values Rmax, Gmax, and Bmax are larger than a predetermined threshold Yth. It is determined that the image is an image for which color correction is difficult, and the white balance correction according to claim 3 is performed.

【0065】それゆえ、前記原画像の中に面積の大きい
ハイライト部分がある前記請求項1による濃度ヒストグ
ラム伸張による色調補正が難しい画像を判定することが
でき、前記請求項3の白バランス補正を適切に行うこと
ができる。
Therefore, it is possible to determine an image in which there is a highlight portion having a large area in the original image and it is difficult to perform color tone correction by expanding the density histogram according to the first aspect. Can be done properly.

【0066】さらにまた、本発明の画像2値化方法は、
以上のように、画像の全エリアを微小エリアに分割し、
その微小エリアについて、輝度が一定値Yp以上となる
画素の輝度値の平均値Yaveから2値化の閾値Bth
を計算し、前記一定値Yp以上となる画素数mが任意の
基準値M未満である場合にはその微小エリアほとんどが
暗い黒ベタ部分と判断して任意の固定の閾値を使用し、
前記基準値M以上である場合にはその微小エリアは前記
黒ベタ部分ではなく、値域内で輝度が適度に分布してい
ると判断し、前記閾値Bthを使用する。
Further, the image binarizing method of the present invention
As described above, the entire area of the image is divided into small areas,
For the small area, the binarization threshold Bth is calculated from the average value Yave of the luminance values of the pixels whose luminance is equal to or more than the constant value Yp.
When the number m of pixels that is equal to or more than the predetermined value Yp is less than an arbitrary reference value M, the small area is determined to be a dark black solid portion, and an arbitrary fixed threshold value is used.
If the value is equal to or larger than the reference value M, it is determined that the minute area is not the solid black portion but the luminance is appropriately distributed within the value range, and the threshold value Bth is used.

【0067】それゆえ、自然画の場合は空、文字の場合
は背景といった、画素値が1になるのが望ましい前記一
定値Yp以上となる画素のみの輝度情報を抽出し、2値
化の閾値Bthを決定するので、暗い背景がランダムに
1または0に2値化されるようなノイズが生じるような
ことはなく、文字認識の前処理としても有効である。
Therefore, luminance information of only pixels having a pixel value equal to or more than the predetermined value Yp, such as a sky in the case of a natural image and a background in the case of a character, is preferably extracted, and a threshold value for binarization is obtained. Since Bth is determined, noise such that a dark background is randomly binarized to 1 or 0 does not occur, and is effective as preprocessing for character recognition.

【0068】また、本発明の画像2値化方法は、以上の
ように、任意の1個の微小エリアを注目微小エリアとし
たとき、該注目微小エリアを含む近傍数エリアの閾値と
の間で補間を取ることによって、前記注目微小エリアの
新たな閾値Baveとして算出する。
Further, according to the image binarization method of the present invention, as described above, when any one minute area is set as the noticeable minute area, the difference between the arbitrary minute area and the threshold value of several neighboring areas including the noticeable minute area is determined. By taking the interpolation, a new threshold value Bave of the noted minute area is calculated.

【0069】それゆえ、隣接微小エリア間で2値化の閾
値Bthが大きく異なるのを緩和できるため、良好な2
値化画像を得ることが可能である。
Therefore, a large difference in the threshold value Bth for binarization between adjacent minute areas can be mitigated.
It is possible to obtain a binarized image.

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

【図1】本発明に係わる画像2値化方法が適用される画
像処理装置の構成の一例を示すブロック図である。
FIG. 1 is a block diagram illustrating an example of a configuration of an image processing apparatus to which an image binarization method according to the present invention is applied.

【図2】2値化処理にあたっての画像中の注目エリアを
説明するための図である。
FIG. 2 is a diagram for explaining an area of interest in an image at the time of binarization processing.

【図3】濃度補正を実現する濃度ヒストグラムの伸張処
理を説明するためのグラフである。
FIG. 3 is a graph for explaining a density histogram expansion process for realizing density correction.

【図4】色調補正を説明するための濃度ヒストグラムで
ある。
FIG. 4 is a density histogram for explaining color tone correction.

【図5】前記濃度ヒストグラム伸長に用いる変換式を説
明するためのグラフである。
FIG. 5 is a graph for explaining a conversion formula used for the density histogram expansion.

【図6】2値化処理を行う画像の微小エリアへの分割を
説明するための図である。
FIG. 6 is a diagram for describing division of an image to be subjected to a binarization process into minute areas.

【図7】本発明の実施の一形態の画像2値化方法を説明
するためのフローチャートである。
FIG. 7 is a flowchart illustrating an image binarization method according to an embodiment of the present invention.

【図8】前記図7における2値化処理の詳細を説明する
ためのフローチャートである。
FIG. 8 is a flowchart illustrating details of a binarization process in FIG. 7;

【図9】2値化処理結果の一例を示す図である。FIG. 9 is a diagram illustrating an example of a binarization processing result;

【図10】2値化処理結果の他の例を示す図である。FIG. 10 is a diagram illustrating another example of the binarization processing result.

【図11】従来の2値化閾値の求め方を説明するための
濃度ヒストグラムである。
FIG. 11 is a density histogram for explaining how to obtain a conventional binarization threshold.

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

1 処理装置 2 表示装置 3 画像処理用メモリ 4 主ストレージ装置 5 コマンド入力装置 6 プログラム記憶用メモリ 7 外部インタフェイス回路 REFERENCE SIGNS LIST 1 processing device 2 display device 3 image processing memory 4 main storage device 5 command input device 6 program storage memory 7 external interface circuit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】処理対象となるアナログまたは複数階調の
デジタル画像を予め定める閾値でレベル弁別することに
よって2値化処理を行うようにした画像2値化方法にお
いて、 前記処理対象のアナログまたは複数階調のデジタル画像
のR,G,Bの各成分の濃度ヒストグラムならびにR,
G,Bそれぞれの濃度ヒストグラム分布の最大値Rma
x,Gmax,Bmaxおよび最小値Rmin,Gmi
n,Bminを求め、 前記最大値Rmax,Gmax,Bmaxおよび最小値
Rmin,Gmin,Bminがデータ値域の両端の値
となるように濃度ヒストグラム分布を伸張することによ
って、明るさの補正、コントラスト不足の補正および色
調補正を行うことを特徴とする画像2値化方法。
An image binarization method for performing a binarization process by level-discriminating a digital image of an analog or a plurality of gradations to be processed with a predetermined threshold value, wherein: The density histogram of each of the R, G, and B components of the gradation digital image,
Maximum value Rma of density histogram distribution of each of G and B
x, Gmax, Bmax and minimum values Rmin, Gmi
n and Bmin are obtained, and the density histogram distribution is expanded so that the maximum values Rmax, Gmax, and Bmax and the minimum values Rmin, Gmin, and Bmin become values at both ends of the data value range. An image binarization method comprising performing correction and color tone correction.
【請求項2】前記伸張処理を、伸張前の濃度値をR,
G,B、伸張後の濃度値をR’,G’,B’、前記デー
タ値域の最小値を0、最大値をMAXとすると、 R’={MAX/(Rmax−Rmin)}×(R−R
min) G’={MAX/(Gmax−Gmin)}×(G−G
min) B’={MAX/(Bmax−Bmin)}×(B−B
min) の1次式によって行うことを特徴とする請求項1記載の
画像2値化方法。
2. The method according to claim 1, wherein the density value before expansion is R,
G, B, the density values after expansion are R ′, G ′, B ′, the minimum value of the data range is 0, and the maximum value is MAX, R ′ = {MAX / (Rmax−Rmin)} × (R -R
min) G ′ = {MAX / (Gmax−Gmin)} × (GG
min) B ′ = {MAX / (Bmax−Bmin)} × (BB
2. The image binarization method according to claim 1, wherein the image is binarized by a linear expression.
【請求項3】画像の中から白い画素と考えられる画素を
白画素として抽出し、 抽出した白画素のR,G,Bの各濃度値の平均値Wr,
Wg,Wbを求め、 その平均値Wr,Wg,Wbが相互に等しくなるような
変換係数Kr,Kg,Kbを求め、 原画像の全画素のR,G,Bの各濃度値にその変換係数
Kr,Kg,Kbをそれぞれ乗算することで、さらに白
バランス補正を行うことを特徴とする請求項1または2
記載の画像2値化方法。
3. Extracting a pixel considered to be a white pixel from an image as a white pixel, and averaging Wr, Rr, G, and B density values of the extracted white pixel.
Wg and Wb are calculated, and conversion coefficients Kr, Kg and Kb are determined so that their average values Wr, Wg and Wb are equal to each other. The conversion coefficients are converted to the density values of R, G and B of all pixels of the original image. 3. A white balance correction is further performed by multiplying Kr, Kg, and Kb, respectively.
The image binarization method described in the above.
【請求項4】前記最大値Rmax,Gmax,Bmax
と、予め定める閾値Ythとの大小を比較し、Rmax
>Yth、Gmax>Yth、Bmax>Ythの3条
件が同時に成立すると、前記請求項1による濃度ヒスト
グラム伸張による色補正が難しい画像であると判定し、
前記請求項3の白バランス補正を行うことを特徴とする
請求項3記載の画像2値化方法。
4. The maximum value Rmax, Gmax, Bmax.
Is compared with a predetermined threshold value Yth, and Rmax
If the three conditions of> Yth, Gmax> Yth, Bmax> Yth are satisfied at the same time, it is determined that the image is difficult to perform color correction by the density histogram expansion according to claim 1,
4. The image binarization method according to claim 3, wherein the white balance correction according to claim 3 is performed.
【請求項5】画像の全エリアを微小エリアに分割し、 前記微小エリアについて、輝度が一定値Yp以上となる
画素の輝度値の平均値Yaveから2値化の閾値Bth
を計算し、 前記一定値Yp以上となる画素数mと任意に設けた個数
の基準値Mとが、m<Mである場合には任意の固定の閾
値を使用し、前記m<Mでない場合には前記閾値Bth
を使用することを特徴とする請求項1〜4の何れかに記
載の画像2値化方法。
5. An entire area of an image is divided into minute areas, and a threshold value Bth for binarization of the minute areas from an average luminance value Yave of pixels having a luminance equal to or more than a predetermined value Yp.
If the number m of pixels that is equal to or more than the predetermined value Yp and the arbitrarily provided number of reference values M satisfy m <M, an arbitrary fixed threshold is used. Is the threshold Bth
The image binarization method according to any one of claims 1 to 4, wherein
【請求項6】任意の1個の微小エリアを注目微小エリア
としたとき、該注目微小エリアを含む近傍数エリアの閾
値との間で補間を取ることによって、前記注目微小エリ
アの新たな閾値Baveとして算出することを特徴とす
る請求項1〜5の何れかに記載の画像2値化方法。
6. A new threshold value Bave for an attention minute area, when an arbitrary one minute area is set as an attention minute area, interpolation is performed between the arbitrary minute area and a threshold value of several neighboring areas including the attention minute area. The image binarization method according to claim 1, wherein the image is calculated as:
JP11212767A 1999-07-27 1999-07-27 Image thresholding method Pending JP2001045303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11212767A JP2001045303A (en) 1999-07-27 1999-07-27 Image thresholding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11212767A JP2001045303A (en) 1999-07-27 1999-07-27 Image thresholding method

Publications (1)

Publication Number Publication Date
JP2001045303A true JP2001045303A (en) 2001-02-16

Family

ID=16628071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11212767A Pending JP2001045303A (en) 1999-07-27 1999-07-27 Image thresholding method

Country Status (1)

Country Link
JP (1) JP2001045303A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027177B2 (en) * 1998-11-09 2006-04-11 Silverbrook Research Pty Ltd Digital printing system
KR100769728B1 (en) 2006-08-09 2007-10-23 삼성전기주식회사 Contrast enhancement apparatus using histogram and method thereof
US7330600B2 (en) 2002-09-05 2008-02-12 Ricoh Company, Ltd. Image processing device estimating black character color and ground color according to character-area pixels classified into two classes
US7916943B2 (en) 2006-06-02 2011-03-29 Seiko Epson Corporation Image determining apparatus, image determining method, image enhancement apparatus, and image enhancement method
US7916942B1 (en) 2006-06-02 2011-03-29 Seiko Epson Corporation Image determining apparatus, image enhancement apparatus, backlight image enhancement apparatus, and backlight image enhancement method
US8014602B2 (en) 2006-03-29 2011-09-06 Seiko Epson Corporation Backlight image determining apparatus, backlight image determining method, backlight image correction apparatus, and backlight image correction method
US8040569B2 (en) 2006-07-07 2011-10-18 Canon Kabushiki Kaisha Image processing apparatus and method for contrast processing and intermediate color removal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027177B2 (en) * 1998-11-09 2006-04-11 Silverbrook Research Pty Ltd Digital printing system
US7196820B2 (en) 1998-11-09 2007-03-27 Silverbrook Research Pty Ltd Printer controller for a pagewidth printhead
US7382488B2 (en) 1998-11-09 2008-06-03 Silverbrook Research Pty Ltd Printer configured to count printed drops
US7835029B2 (en) 1998-11-09 2010-11-16 Silverbrook Research Pty Ltd Printer controller for a printer printing according to print quality information supplied by a print cartridge
US7330600B2 (en) 2002-09-05 2008-02-12 Ricoh Company, Ltd. Image processing device estimating black character color and ground color according to character-area pixels classified into two classes
US8014602B2 (en) 2006-03-29 2011-09-06 Seiko Epson Corporation Backlight image determining apparatus, backlight image determining method, backlight image correction apparatus, and backlight image correction method
US7916943B2 (en) 2006-06-02 2011-03-29 Seiko Epson Corporation Image determining apparatus, image determining method, image enhancement apparatus, and image enhancement method
US7916942B1 (en) 2006-06-02 2011-03-29 Seiko Epson Corporation Image determining apparatus, image enhancement apparatus, backlight image enhancement apparatus, and backlight image enhancement method
US8040569B2 (en) 2006-07-07 2011-10-18 Canon Kabushiki Kaisha Image processing apparatus and method for contrast processing and intermediate color removal
KR100769728B1 (en) 2006-08-09 2007-10-23 삼성전기주식회사 Contrast enhancement apparatus using histogram and method thereof

Similar Documents

Publication Publication Date Title
JP5205968B2 (en) Gradation correction method, gradation correction apparatus, gradation correction program, and image device
JP2001126075A (en) Method and device for picture processing, and recording medium
JPH10198802A (en) Image processor, image processing method, and medium recording image processing program
JP3673092B2 (en) Image quality adjusting apparatus, image quality adjusting method, and recording medium recording image adjusting program
JP5024574B2 (en) Image processing apparatus and image processing program
JP5286215B2 (en) Outline extracting apparatus, outline extracting method, and outline extracting program
JP2001045303A (en) Image thresholding method
JP3950551B2 (en) Image processing method, apparatus, and recording medium
JPH118768A (en) Image processor, image processing method and medium recording image processing control program
JP4993028B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2003219180A (en) Image processing method, image processing device, recording medium capable of reading computer and computer program
JP4247621B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JP2929983B2 (en) Color image processing equipment
JP2002369004A (en) Image processing unit, image output device, image processing method and storage medium
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP4445026B2 (en) Image processing method, apparatus, and program
JP3501151B2 (en) Image processing apparatus, image processing method, medium recording image processing control program
JP4560845B2 (en) Image processing apparatus, image processing method, and medium on which image processing control program is recorded
JP5069599B2 (en) Video conversion apparatus, video conversion method, and video conversion program
JP2008312177A (en) Apparatus, method and program, for converting gradation of video image
JP3573143B2 (en) Image processing apparatus, image processing method, medium recording image processing control program
JP5227651B2 (en) Video conversion apparatus, video conversion method, and video conversion program
JPH09163164A (en) Image processing method and image processing unit
JP3596614B2 (en) Image processing apparatus, image processing method, and medium recording image processing program
JP3460216B2 (en) Binarization method and apparatus