JP3792402B2 - Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method - Google Patents

Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method Download PDF

Info

Publication number
JP3792402B2
JP3792402B2 JP12390098A JP12390098A JP3792402B2 JP 3792402 B2 JP3792402 B2 JP 3792402B2 JP 12390098 A JP12390098 A JP 12390098A JP 12390098 A JP12390098 A JP 12390098A JP 3792402 B2 JP3792402 B2 JP 3792402B2
Authority
JP
Japan
Prior art keywords
black
white
image
rgb
rgb ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12390098A
Other languages
Japanese (ja)
Other versions
JPH11313218A (en
Inventor
高志 齋藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP12390098A priority Critical patent/JP3792402B2/en
Publication of JPH11313218A publication Critical patent/JPH11313218A/en
Application granted granted Critical
Publication of JP3792402B2 publication Critical patent/JP3792402B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は,スキャナやデジタル複写機,OCRなどの前処理(画像の2値化)に利用され,特に白黒原稿であってもカラー画像として処理し,裏うつりの部分が原稿の表面の中間調成分と色成分に違いが生じることを利用して所望の2値画像を得る画像処理装置および2値化方法,並びに2値化方法をコンピュータに実行させるプログラムを記録した機械読み取り可能な記録媒体に関する。
【0002】
【従来の技術】
従来,白黒原稿をスキャナなどで画像として入力する場合,まず明度信号として読み取り,これを2値化している。この2値化の技術が,たとえば特開平6−195511公報や特開平9−305754号公報に開示されいている。特開平6−195511公報の『2値化しきい値決定装置』では,多値画像の濃度ヒストグラムをニューラルネットワークの入力として2値化しきい値を決定している。また,特開平9−305754号公報の『画像処理方法』では,ブロック単位に2値化処理を行っている。
【0003】
また,カラー画像における裏うつりを考慮し,黒文字と中間調領域の判定方法として,特開平7−226842号公報の『カラー画像形成装置における下地制御方法及びその方法』が開示されている。なお,この方法は2値化ではなく色地などの中間調を得るものである。
【0004】
【発明が解決しようとする課題】
しかしながら,上記に示されるような従来の特開平6−195511公報や特開平9−305754号公報に開示されている技術にあっては,2値化を明度値のみに依存して処理するため,裏うつりの部分が中間的な明度として画像信号上に現れると,これを正しく除去して2値化することが困難であった。
【0005】
すなわち,原稿の表側が白で,その裏側が黒の部分に対し,従来の2値化処理を行うとしきい値レベルの設定いかんによっては「黒」の判定がなされ,結果的に裏うつり画像となってしまうという問題点があった。
【0006】
本発明は,上記に鑑みてなされたものであって,白黒原稿であってもカラー画像として処理することにより,裏うつりの部分が原稿の表面の中間調成分と色成分に違いが生じることを利用して所望の2値画像を獲得し,裏うつり発生を回避することを目的とする。
【0007】
【課題を解決するための手段】
上記の目的を達成するために,請求項1に係る画像処理装置にあっては,白黒画像をRGBのカラー画像として入力する画像入力手段と,前記カラー画像の明度において最も明度の高い部分のRGB比率と,最も明度の低い部分のRGB比率とを検出するデータ検出手段と,前記明度により「黒」「白」「中間」の3値に分ける3値化手段と,前記「中間」の画素のRGB比率を調べ,前記「中間」の画素のRGB比率が前記最も明度の低い部分のRGB比率に近い場合は「黒」,前記最も明度の高い部分のRGB比率に近い場合「白」と2値判定する中間画素2値化手段と,を備えものである。
【0008】
すなわち,白黒画像をカラーのRGB画像として入力し,最高明度部分のRGB比率をRwとして記録し,最低明度部分のRGB比率をRbとして記録し,さらに明度で「黒」,「白」,「中間」の3値に分け,「中間」の画素のRGB比率を調べ,Rbに近い場合は「黒」,Rwに近い場合は「白」とし,白黒の2値画像を得ることにより,裏うつり画像の発生を回避することが可能となる。
【0009】
また,請求項2に係る2値化方法にあっては,白黒画像をカラーのRGB画像として入力し,最も明度の高い部分を見つけ,そのRGB比率をRwとして記録する第1の工程と,最も明度の低い部分を見つけ,そのRGB比率をRbとして記録する第2の工程と,明度で「黒」,「白」,「中間」の3値に分ける第3の工程と,「中間」の画素のRGB比率を調べ,前記「中間」の画素のRGB比率が前記Rbに近い場合は「黒」,前記Rwに近い場合は「白」とし,白黒の2値画像を得る第4の工程と,を含むものである。
【0010】
すなわち,白黒画像をカラーのRGB画像として入力し,最高明度部分のRGB比率をRwとして記録し,最低明度部分のRGB比率をRbとして記録し,さらに明度で「黒」,「白」,「中間」の3値に分け,「中間」の画素のRGB比率を調べ,Rbに近い場合は「黒」,Rwに近い場合は「白」とし,白黒の2値画像を得ることにより,裏うつり画像の発生を回避することが可能となる。
【0015】
また,請求項に係る機械読み取り可能な記録媒体にあっては,請求項2に記載の2値化方法をコンピュータに実行させるプログラムを記録したものである。
【0016】
すなわち,請求項に記載の2値化方法をコンピュータに実行させるプログラムを記録したことにより,コンピュータによって2値化処理を行うことが可能となる。
【0017】
【発明の実施の形態】
以下,本発明の画像処理装置および2値化方法,並びに2値化方法をコンピュータに実行させるプログラムを記録した機械読み取り可能な記録媒体について添付図面を参照し,詳細に説明する。
【0018】
(システム構成)
図1は,実施の形態に係る画像処理装置の構成を示すブロック図である。図において,101はCCD搭載のスキャナなどを用い,白黒原稿を光学的にカラー画像(R,G,B信号)として読み取り,入力する画像入力手段としての画像入力部,102はカラー画像の明度を求め,該明度の最小部分と最大部分とのRGB比率を求める明度・RGB比率検出手段としての明度検出部・RbRw検出部である。
【0019】
また,103は明度による画素を「黒」,「白」,「中間」に3値化する3値化手段としての3値化部,104は中間画素をRGB比率に基づいて黒白の2値に判定する中間画素2値化手段としての中間画素2値化部,105は本装置を所定の制御プログラムに基づいて統括的に制御する制御部,106は入力されたカラー画像や連結成分データ,領域データなどを記憶しておくためのデータ記憶部,107は外部機器とのデータ送受信などを行うデータ通信部である。
【0020】
(システム動作)
次に,以上のように構成された画像処理装置の動作について説明する。まず,原稿をスキャナ(画像入力部101)にセットし,該原稿を露光走査することによりR,G,B信号のカラー画像を得る。なお,この他に画像をデータ通信部109を介して外部より入力してもよい。
【0021】
ここで,画像読み取り動作およびRGB画像の取り込み例について図4および図5を参照しながら説明する。図4は,白黒原稿を光源/CCDにより読み取る例を示す説明図である。図において,401は白黒原稿,402は光源/CCD,403は圧板である。また,図5は,図4の原稿読み取りにおいて,白黒原稿をスキャナで多値信号として取り込む例を示す説明図である。
【0022】
読み取り用の光が原稿401の表面で全て反射されず,一部が透過する場合,その透過光は原稿上の圧板403で反射され,原稿表面の反射光と同様に画像信号として得られる。
【0023】
ここで,各反射光および各透過光(透過して再び戻ってきた光)を以下のように表す。
Lr:原稿表面の反射光
Lrw:白部分の反射光
Lrg:中間調の反射光
Lrb:黒部分の反射光
Lt:透過して再び戻ってきた光
Ltw:原稿の裏面が白部分の透過光
Ltb:原稿の裏面が黒部分の透過光
【0024】
このとき,画像信号は,図5に示すようなグラフとなる。この場合,しきい値Thの設定レベルによっては,原稿の表側が白で,その裏側が黒の部分についての「黒」の判定がなされる。
【0025】
ここで,たとえば,図5に示すように白255〜黒0の範囲でRGBそれぞれが値をとるとした場合,
両面白の部分:(200,202,192)
表が黒の部分:(85,75,57)
表が中間調の部分:(156,160,140)
原稿表が白で裏が黒の部分:(158,161,158)
の値であるとする。
【0026】
この例では,表面のインクに対する反射光Lrb,LrgはいずれもR,Gに比べてBの値が低くなっている。しかし,原稿の両面が白の部分では,Bの値が低くなっているものの,その差は小さく,裏うつりの部分でのBは,RやGと比べてさほど変わらない。
【0027】
これは,反射光Lrwは,基本的に原稿用紙の色(厳密には白から少しずれている)が反映されているので,Lrwの比率の大きい両面白部分および表面白部分にその影響が出ていることと,原稿を透過する際に色成分に変化が生じることでLtとLrに違いが生じることによる。
【0028】
ここで,中間調(Lrg)の部分を「黒」,裏うつり(Lrw+Ltb)の部分を「白」とするには,図2に示すようなフローチャートの動作処理を行えばよい。
【0029】
図2において,まず,RGB画像を入力し(S201),最も明度の高い部分を見つけ,そのRGB比率をRwとして記録する(S202)。さらに,最も明度の低い部分を見つけ,そのRGB比率をRbとして記録する(S203)。次いで,単純に明度で「黒」,「白」,「中間」の3値に分ける(S204)。これは,あらかじめ決定したしきい値を用いてもよいし,他に全体あるいは局所的な明度のヒストグラムを利用するなどの方法を用いてもよい。続いて,「中間」の画素のRGB比率を調べ,その結果,Rbに近い場合は「黒」,Rwに近い場合は「白」とする。これを各「中間」画素について実行し(S205),白黒の2値画像を得る(S206)。
【0030】
したがって,以上の処理を実行することにより,明度だけでは判断が困難な部分についても,所望の2値化結果を得ることが可能となる。
【0031】
ところで,Rw,Rbを求める際に,最も明度の高い画像・低い画素ではなく,別の指標に基づいて特定した画素のRGB比率をRw,Rbとしてもよい。この動作を図3に示すフローチャートを用いて説明する。
【0032】
図3において,まず,RGB画像を入力し(S301),明度による3値化(「黒」,「白」,「中間」の3値)を行う(S302)。さらに,白部分を代表する画素を特定し,そのRGB比率をRwとして記録する(S303)。続いて,黒部分を代表する画素を特定し,そのRGB比率をRbとして記録する(S304)。次いで,中間値画像に対して,RGB比率による2値化を行い(S305),白黒の2値画像を得る(S306)。
【0033】
このように,RGB画像の対し,明度値により「黒」,「白」,「中間」の3値化を行い,黒を代表する画素のRGB値と白を代表する画素のRGB値を求め,該RGB値と「中間」値の画素のRGB値とを比較し,「中間」として判定された裏うつり部分を「白」と判定することにより,裏うつりがあっても所望とする2値化画像を得ることができる。
【0034】
また,上記の他の方法として,たとえば,特定の画素のRGB比率ではなく,黒部分あるいは白部分の画素全体または一部の複数の画素からRGB比率を求めてもよい。なお,この場合,各画素の平均をとるか,あるいはメジアンをとる。
【0035】
さて,本発明は上述した実施の形態の他にソフトウェアによって実現することができる。たとえば,上述した図2および図3で説明した2値化方法をプログラム化し,それを機械読み取り可能な記録媒体に格納しておき,コンピュータ上で実行することで実現する。
【0036】
【発明の効果】
以上説明したように,本発明に係る画像処理装置(請求項1)によれば,白黒画像をカラーのRGB画像として入力し,最高明度部分のRGB比率と,最低明度部分のRGB比率を検出し,さらに明度で「黒」,「白」,「中間」の3値に分け,「中間」の画素のRGB比率を調べ,「中間」の画素のRGB比率が最低明度部分のRGB比率に近い場合は「黒」,最高明度部分のRGB比率に近い場合は「白」とし,白黒の2値画像を得ることにより,裏うつり画像の発生を回避することが可能な装置が実現する。
【0037】
また,本発明に係る2値化方法(請求項2)によれば,白黒画像をカラーのRGB画像として入力し,最高明度部分のRGB比率をRwとして記録し,最低明度部分のRGB比率をRbとして記録し,さらに明度で「黒」,「白」,「中間」の3値に分け,「中間」の画素のRGB比率を調べ,Rbに近い場合は「黒」,Rwに近い場合は「白」として,白黒の2値画像が得られ,裏うつり画像の発生を回避することが可能となる。
【0040】
また,本発明に係る機械読み取り可能な記録媒体(請求項)によれば,請求項に記載の2値化方法をコンピュータに実行させるプログラムを記録したことにより,コンピュータによって2値化処理を行うことが可能となる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。
【図2】実施の形態に係るRGB画像から白黒2値化画像を得るまでの第1の処理動作例を示すフローチャートである。
【図3】実施の形態に係るRGB画像から白黒2値化画像を得るまでの第2の処理動作例を示すフローチャートである。
【図4】白黒原稿を光源/CCDにより読み取る例を示す説明図である。
【図5】図4の原稿読み取りにおいて,白黒原稿をスキャナで多値信号として取り込む例を示す説明図である。
【符号の説明】
101 画像入力部
102 明度検出部・RbRw検出部
103 3値化部
104 中間画素2値化部
[0001]
BACKGROUND OF THE INVENTION
The present invention is used for preprocessing (binarization of images) of scanners, digital copiers, OCRs, etc., and in particular, even a black and white document is processed as a color image, and the back side is halftone on the surface of the document. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and a binarization method for obtaining a desired binary image by utilizing the difference between components and color components, and a machine-readable recording medium on which a program for causing a computer to execute the binarization method is recorded .
[0002]
[Prior art]
Conventionally, when a black and white document is input as an image by a scanner or the like, it is first read as a brightness signal and binarized. This binarization technique is disclosed in, for example, Japanese Patent Laid-Open Nos. 6-195511 and 9-305754. Japanese Patent Laid-Open No. 6-195511 discloses a “binarization threshold value determination apparatus” that determines a binarization threshold value by using a density histogram of a multilevel image as an input to a neural network. In “Image processing method” of Japanese Patent Laid-Open No. 9-305754, binarization processing is performed in units of blocks.
[0003]
Further, in consideration of the back-shift in a color image, as a method for determining a black character and a halftone area, Japanese Patent Laid-Open No. 7-226842 “Background control method and method in a color image forming apparatus” is disclosed. This method obtains a halftone such as a color background instead of binarization.
[0004]
[Problems to be solved by the invention]
However, in the techniques disclosed in the conventional Japanese Patent Laid-Open Nos. 6-195511 and 9-305754 as described above, binarization is processed only depending on the brightness value, When the back shining portion appears on the image signal as intermediate brightness, it was difficult to correctly remove this and binarize it.
[0005]
In other words, if the conventional binarization process is performed on a white portion on the front side of the document and a black portion on the back side, “black” is determined depending on the threshold level setting. There was a problem of becoming.
[0006]
The present invention has been made in view of the above. By processing even a black and white original as a color image, a difference occurs between the halftone component and the color component on the back surface of the original. The purpose is to obtain a desired binary image by using it, and to avoid the occurrence of backshifting.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, in the image processing apparatus according to claim 1, image input means for inputting a monochrome image as an RGB color image, and RGB of the portion having the highest brightness in the brightness of the color image. Data detection means for detecting the ratio and the RGB ratio of the portion with the lowest brightness; a ternary means for dividing the brightness into three values of “black”, “white”, and “intermediate”; The RGB ratio is checked. When the RGB ratio of the “intermediate” pixel is close to the RGB ratio of the portion with the lowest lightness, “black”, and when the RGB ratio of the “lightest” portion is close to the RGB ratio , “white” is 2 an intermediate pixel binarizing means value determines, in which Ru comprising a.
[0008]
That is, a black-and-white image is input as a color RGB image, the RGB ratio of the highest brightness portion is recorded as Rw, the RGB ratio of the lowest brightness portion is recorded as Rb, and “black”, “white”, “intermediate” is further recorded as brightness. Is divided into three values, and the RGB ratio of the “middle” pixel is examined. If it is close to Rb, it is “black”, and if it is close to Rw, it is “white”. Can be avoided.
[0009]
In the binarization method according to claim 2, the first step of inputting a black and white image as a color RGB image, finding the portion with the highest brightness, and recording the RGB ratio as Rw, A second step of finding a low lightness portion and recording the RGB ratio as Rb, a third step of dividing the lightness into three values of “black”, “white”, and “middle”, and “middle” pixels A fourth step of obtaining a black-and-white binary image by setting “black” when the RGB ratio of the “intermediate” pixel is close to Rb and “white” when close to Rw; Is included.
[0010]
That is, a black-and-white image is input as a color RGB image, the RGB ratio of the highest brightness portion is recorded as Rw, the RGB ratio of the lowest brightness portion is recorded as Rb, and “black”, “white”, “intermediate” is further recorded as brightness. Is divided into three values, and the RGB ratio of the “middle” pixel is examined. If it is close to Rb, it is “black”, and if it is close to Rw, it is “white”. Can be avoided.
[0015]
According to a third aspect of the present invention, there is provided a machine-readable recording medium in which a program for causing a computer to execute the binarization method according to the second aspect is recorded .
[0016]
That is, by recording a program for causing a computer to execute the binarization method according to claim 2 , it is possible to perform binarization processing by the computer.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an image processing apparatus, a binarization method, and a machine-readable recording medium on which a program for causing a computer to execute the binarization method is recorded will be described in detail with reference to the accompanying drawings.
[0018]
(System configuration)
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment. In the figure, reference numeral 101 denotes a CCD-equipped scanner or the like, an image input unit as an image input means for optically reading and inputting a black and white original as a color image (R, G, B signals), and 102 a brightness of the color image. It is a lightness detection unit / RbRw detection unit as a lightness / RGB ratio detection means for obtaining the RGB ratio between the minimum part and the maximum part of the lightness.
[0019]
Reference numeral 103 denotes a ternarization unit as a ternarization unit for ternarizing pixels based on lightness into “black”, “white”, and “intermediate”, and 104 converts the intermediate pixel into binary values of black and white based on the RGB ratio. An intermediate pixel binarization unit serving as an intermediate pixel binarization unit for determination, 105 is a control unit that comprehensively controls the apparatus based on a predetermined control program, and 106 is an input color image, connected component data, and region A data storage unit 107 for storing data and the like is a data communication unit 107 that performs data transmission / reception with an external device.
[0020]
(System operation)
Next, the operation of the image processing apparatus configured as described above will be described. First, a document is set on a scanner (image input unit 101), and the document is exposed and scanned to obtain color images of R, G, and B signals. In addition, an image may be input from the outside via the data communication unit 109.
[0021]
Here, an image reading operation and an example of RGB image capturing will be described with reference to FIGS. FIG. 4 is an explanatory diagram showing an example of reading a black and white original with a light source / CCD. In the figure, 401 is a black and white document, 402 is a light source / CCD, and 403 is a pressure plate. FIG. 5 is an explanatory diagram showing an example in which a black and white document is captured as a multi-value signal by a scanner in the document reading of FIG.
[0022]
When the reading light is not totally reflected on the surface of the original 401 and part of it is transmitted, the transmitted light is reflected by the pressure plate 403 on the original and is obtained as an image signal in the same manner as the reflected light on the original surface.
[0023]
Here, each reflected light and each transmitted light (light transmitted and returned again) are expressed as follows.
Lr: Reflected light on the surface of the original Lrw: Reflected light on the white part Lrg: Reflected light in the middle tone Lrb: Reflected light on the black part Lt: Light transmitted and returned again Ltw: Transmitted light Ltb on the back side of the original with the white part : Transmitted light with black part on the back side of the document.
At this time, the image signal becomes a graph as shown in FIG. In this case, depending on the setting level of the threshold value Th, a determination of “black” is made for a portion where the front side of the document is white and the back side is black.
[0025]
Here, for example, as shown in FIG. 5, when each of RGB takes a value in the range of white 255 to black 0,
White parts on both sides: (200, 202, 192)
Black part of the table: (85, 75, 57)
Table is halftone: (156, 160, 140)
The part of the manuscript table that is white and the back is black: (158, 161, 158)
It is assumed that
[0026]
In this example, the reflected light Lrb and Lrg for the ink on the surface has a lower B value than R and G, respectively. However, although the value of B is low when the both sides of the document are white, the difference is small, and B in the reverse side is not much different from R and G.
[0027]
This is because the reflected light Lrw basically reflects the color of the original paper (strictly, it is slightly deviated from white), so that the influence is exerted on the double-sided white part and the surface white part where the ratio of Lrw is large. And a difference between Lt and Lr due to a change in the color component when passing through the original.
[0028]
Here, in order to set the halftone (Lrg) portion to “black” and the back cover (Lrw + Ltb) portion to “white”, the operation processing of the flowchart shown in FIG. 2 may be performed.
[0029]
In FIG. 2, first, an RGB image is input (S201), a portion having the highest brightness is found, and the RGB ratio is recorded as Rw (S202). Further, a portion with the lowest brightness is found, and the RGB ratio is recorded as Rb (S203). Next, the brightness is simply divided into three values of “black”, “white”, and “intermediate” (S204). For this, a predetermined threshold value may be used, or a method of using a histogram of the whole or local brightness may be used. Subsequently, the RGB ratio of the “intermediate” pixel is examined, and as a result, “black” is selected when close to Rb, and “white” when close to Rw. This is executed for each “intermediate” pixel (S205), and a black and white binary image is obtained (S206).
[0030]
Therefore, by executing the above processing, it is possible to obtain a desired binarization result even for a portion that is difficult to judge only by lightness.
[0031]
By the way, when calculating Rw and Rb, Rw and Rb may be the RGB ratio of the pixel specified based on another index instead of the image with the highest brightness and the low pixel. This operation will be described with reference to the flowchart shown in FIG.
[0032]
In FIG. 3, first, an RGB image is input (S301), and ternarization by brightness (“black”, “white”, “intermediate”) is performed (S302). Further, a pixel representing the white portion is specified, and the RGB ratio is recorded as Rw (S303). Subsequently, a pixel representing the black portion is specified, and the RGB ratio is recorded as Rb (S304). Next, the intermediate value image is binarized by the RGB ratio (S305), and a black and white binary image is obtained (S306).
[0033]
In this way, for the RGB image, ternarization of “black”, “white”, and “intermediate” is performed by the brightness value, and the RGB value of the pixel representing black and the RGB value of the pixel representing white are obtained, By comparing the RGB value with the RGB value of the “intermediate” value pixel, and determining the “backward” portion determined as “intermediate” as “white”, the desired binarization can be achieved even if there is backside change. An image can be obtained.
[0034]
Further, as another method described above, for example, the RGB ratio may be obtained not from the RGB ratio of a specific pixel, but from all or some of the pixels in the black portion or the white portion. In this case, the average of each pixel is taken or the median is taken.
[0035]
The present invention can be realized by software in addition to the embodiment described above. For example, the binarization method described with reference to FIGS. 2 and 3 is programmed, stored in a machine-readable recording medium, and executed on a computer.
[0036]
【The invention's effect】
As described above, according to the image processing apparatus (claim 1) of the present invention, a monochrome image is input as a color RGB image, and the RGB ratio of the highest brightness portion and the RGB ratio of the lowest brightness portion are detected. When the brightness is further divided into three values of “black”, “white”, and “intermediate”, the RGB ratio of the “intermediate” pixel is examined, and the RGB ratio of the “intermediate” pixel is close to the RGB ratio of the lowest brightness portion Is “black”, “white” when close to the RGB ratio of the maximum brightness portion, and by obtaining a black and white binary image, an apparatus capable of avoiding the occurrence of a back-slip image is realized.
[0037]
According to the binarization method of the present invention (claim 2), a black and white image is input as a color RGB image, the RGB ratio of the highest brightness portion is recorded as Rw, and the RGB ratio of the lowest brightness portion is set to Rb. Is further divided into three values, “black”, “white”, and “intermediate”, and the RGB ratio of the “intermediate” pixel is examined. If it is close to Rb, it is “black”, and if it is close to Rw, “ As a “white”, a black and white binary image is obtained, and it is possible to avoid the occurrence of a back-slip image.
[0040]
According to the machine-readable recording medium of the present invention (Claim 3 ), a program for causing a computer to execute the binarization method according to Claim 2 is recorded, whereby binarization processing is performed by the computer. Can be done.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.
FIG. 2 is a flowchart showing a first processing operation example until a monochrome binary image is obtained from an RGB image according to the embodiment.
FIG. 3 is a flowchart showing a second processing operation example until a monochrome binary image is obtained from the RGB image according to the embodiment.
FIG. 4 is an explanatory diagram showing an example of reading a black and white original by a light source / CCD.
5 is an explanatory diagram illustrating an example in which a black and white document is captured as a multi-value signal by a scanner in the document reading of FIG.
[Explanation of symbols]
101 Image Input Unit 102 Brightness Detection Unit / RbRw Detection Unit 103 Trinization Unit 104 Intermediate Pixel Binarization Unit

Claims (3)

白黒画像をRGBのカラー画像として入力する画像入力手段と,
前記カラー画像の明度において最も明度の高い部分のRGB比率と,最も明度の低い部分のRGB比率とを検出するデータ検出手段と,
前記明度により「黒」「白」「中間」の3値に分ける3値化手段と,前記「中間」の画素のRGB比率を調べ,前記「中間」の画素のRGB比率が前記最も明度の低い部分のRGB比率に近い場合は「黒」,前記最も明度の高い部分のRGB比率に近い場合「白」と2値判定する中間画素2値化手段と,
を備えことを特徴とする画像処理装置。
Image input means for inputting a black and white image as an RGB color image;
Data detection means for detecting the RGB ratio of the portion with the highest brightness in the brightness of the color image and the RGB ratio of the portion with the lowest brightness;
The ternary means for dividing into three values of “black”, “white”, and “intermediate” according to the lightness, and the RGB ratio of the “intermediate” pixel are examined, and the RGB ratio of the “intermediate” pixel has the lowest lightness. If close to the portion of the RGB ratio "black", is close to the RGB ratio of the portion having a high the most brightness and intermediate pixel binarizing means for determining two values "white",
The image processing device characterized by Ru with a.
白黒画像をカラーのRGB画像として入力し,最も明度の高い部分を見つけ,そのRGB比率をRwとして記録する第1の工程と,
最も明度の低い部分を見つけ,そのRGB比率をRbとして記録する第2の工程と,
明度で「黒」,「白」,「中間」の3値に分ける第3の工程と,
「中間」の画素のRGB比率を調べ,前記「中間」の画素のRGB比率が前記Rbに近い場合は「黒」,前記Rwに近い場合は「白」とし,白黒の2値画像を得る第4の工程と,
を含むことを特徴とする2値化方法。
Inputting a black and white image as a color RGB image, finding a portion with the highest brightness, and recording the RGB ratio as Rw;
A second step of finding the lightest part and recording the RGB ratio as Rb;
A third step of dividing the brightness into three values of “black”, “white”, and “intermediate”;
The RGB ratio of the “intermediate” pixel is examined. When the RGB ratio of the “intermediate” pixel is close to the Rb, it is “black”, and when the RGB ratio is close to the Rw, the white ratio is obtained. 4 processes,
A binarization method comprising:
請求項2に記載の2値化方法をコンピュータに実行させるプログラムを記録したことを特徴とする機械読み取り可能な記録媒体。A machine-readable recording medium on which a program for causing a computer to execute the binarization method according to claim 2 is recorded.
JP12390098A 1998-02-27 1998-04-20 Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method Expired - Fee Related JP3792402B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12390098A JP3792402B2 (en) 1998-02-27 1998-04-20 Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP10-62020 1998-02-27
JP6202098 1998-02-27
JP12390098A JP3792402B2 (en) 1998-02-27 1998-04-20 Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method

Publications (2)

Publication Number Publication Date
JPH11313218A JPH11313218A (en) 1999-11-09
JP3792402B2 true JP3792402B2 (en) 2006-07-05

Family

ID=26403092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12390098A Expired - Fee Related JP3792402B2 (en) 1998-02-27 1998-04-20 Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method

Country Status (1)

Country Link
JP (1) JP3792402B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007228215A (en) * 2006-02-23 2007-09-06 Oki Electric Ind Co Ltd Image processor, image processing method, and computer program
JP4743103B2 (en) * 2006-12-13 2011-08-10 沖電気工業株式会社 Image processing apparatus, image processing method, and computer program

Also Published As

Publication number Publication date
JPH11313218A (en) 1999-11-09

Similar Documents

Publication Publication Date Title
US8345310B2 (en) Halftone frequency determination method and printing apparatus
JP2005094740A (en) Image processing apparatus, image forming apparatus and image processing method
JPH0722330B2 (en) Image region identification method for image processing apparatus
JP4115999B2 (en) Image processing apparatus, image forming apparatus, image reading processing apparatus, image processing method, image processing program, and computer-readable recording medium
JP3088010B2 (en) Line drawing separation method and apparatus
JPH10294862A (en) Image processor
JP3792402B2 (en) Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method
JPH0879517A (en) Method for identifying type of image
JP2616386B2 (en) Image processing device
JP3118469B2 (en) Image area separation device
JPH10108012A (en) Image area separating device
JP2629699B2 (en) Image area identification device
JP3326309B2 (en) Image processing device
JP3587740B2 (en) Image processing device
JP3064896B2 (en) Image processing device
JPH1098614A (en) Picture processor
JP2629183B2 (en) Image area identification device
JP2507948B2 (en) Image area identification device
JPH0457274B2 (en)
JP2507927B2 (en) Image processing device
JP2900343B2 (en) Image processing device
JPS6180964A (en) Picture signal processing method
JPH07121063B2 (en) Image processing device
JPH09307765A (en) Image processing method and device
JPH0561677B2 (en)

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060306

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060404

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060405

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: 20100414

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100414

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110414

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120414

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130414

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140414

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees