JPH11313218A - Image processing unit, binary processing method, and machine-readable recording medium recording program to allow computer to execute binary processing method - Google Patents

Image processing unit, binary processing method, and machine-readable recording medium recording program to allow computer to execute binary processing method

Info

Publication number
JPH11313218A
JPH11313218A JP10123900A JP12390098A JPH11313218A JP H11313218 A JPH11313218 A JP H11313218A JP 10123900 A JP10123900 A JP 10123900A JP 12390098 A JP12390098 A JP 12390098A JP H11313218 A JPH11313218 A JP H11313218A
Authority
JP
Japan
Prior art keywords
image
white
black
rgb
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10123900A
Other languages
Japanese (ja)
Other versions
JP3792402B2 (en
Inventor
Takashi Saito
高志 齋藤
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

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To avoid occurrence of set-off by processing even a black/white original to be a color image through the utilization of occurrence of a difference from a color component between a part causing the set-off and a medium tone component part on a surface of an original so as to acquire a desired binary image. SOLUTION: The processing unit is provided with an image input section 101 that receives a black/white image as an RGB color image, a lightness detection section.RbRw detection section 102 that obtains lightness of the color image and an RGB ratio of a minimum lightness part and a maximum lightness part, a tri-state processing section 103 that obtains a 'black level', a 'white level' or a 'medium level' depending on the obtained lightness, and a medium pixel binary processing section 104 that applies binary discrimination to decide the image to be a black image when the RGB ratio of a pixel of the medium tone is closer to a black level or to decide the image to be a white image when the RGB ratio of a pixel of the medium tone is closer to a white level.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は,スキャナやデジタ
ル複写機,OCRなどの前処理(画像の2値化)に利用
され,特に白黒原稿であってもカラー画像として処理
し,裏うつりの部分が原稿の表面の中間調成分と色成分
に違いが生じることを利用して所望の2値画像を得る画
像処理装置および2値化方法,並びに2値化方法をコン
ピュータに実行させるプログラムを記録した機械読み取
り可能な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is used for pre-processing (binarization of an image) of a scanner, a digital copier, an OCR, etc., and in particular, processes even a black-and-white original as a color image. Recorded an image processing apparatus and a binarization method for obtaining a desired binary image by utilizing a difference between a halftone component and a color component on the surface of a document, and a program for causing a computer to execute the binarization method. The present invention relates to a machine-readable recording medium.

【0002】[0002]

【従来の技術】従来,白黒原稿をスキャナなどで画像と
して入力する場合,まず明度信号として読み取り,これ
を2値化している。この2値化の技術が,たとえば特開
平6−195511公報や特開平9−305754号公
報に開示されいている。特開平6−195511公報の
『2値化しきい値決定装置』では,多値画像の濃度ヒス
トグラムをニューラルネットワークの入力として2値化
しきい値を決定している。また,特開平9−30575
4号公報の『画像処理方法』では,ブロック単位に2値
化処理を行っている。
2. Description of the Related Art Conventionally, when a black-and-white document is input as an image by a scanner or the like, a brightness signal is first read and then binarized. This binarization technique is disclosed in, for example, JP-A-6-195511 and JP-A-9-305754. In "Binarization threshold value determination device" of Japanese Patent Application Laid-Open No. 6-195511, a binarization threshold value is determined using a density histogram of a multivalued image as an input to a neural network. Also, Japanese Patent Application Laid-Open No. 9-30575
In the "image processing method" of Japanese Patent Application Laid-Open No. 4 (1999) -2002, a binarization process is performed for each block.

【0003】また,カラー画像における裏うつりを考慮
し,黒文字と中間調領域の判定方法として,特開平7−
226842号公報の『カラー画像形成装置における下
地制御方法及びその方法』が開示されている。なお,こ
の方法は2値化ではなく色地などの中間調を得るもので
ある。
Also, a method of determining black characters and a halftone area in consideration of back-filling in a color image is disclosed in
Japanese Patent Application Laid-Open No. 226,842 discloses a "base control method and method for color image forming apparatus". Note that this method is not for binarization but for obtaining a halftone such as a color background.

【0004】[0004]

【発明が解決しようとする課題】しかしながら,上記に
示されるような従来の特開平6−195511公報や特
開平9−305754号公報に開示されている技術にあ
っては,2値化を明度値のみに依存して処理するため,
裏うつりの部分が中間的な明度として画像信号上に現れ
ると,これを正しく除去して2値化することが困難であ
った。
However, in the conventional techniques disclosed in Japanese Patent Application Laid-Open Nos. Hei 6-195511 and Hei 9-305754 as described above, the binarization is not performed by using the brightness value. Processing depends only on
If the back-facing portion appears on the image signal as an intermediate brightness, it has been difficult to correctly remove this and binarize it.

【0005】すなわち,原稿の表側が白で,その裏側が
黒の部分に対し,従来の2値化処理を行うとしきい値レ
ベルの設定いかんによっては「黒」の判定がなされ,結
果的に裏うつり画像となってしまうという問題点があっ
た。
[0005] That is, when a conventional binarization process is performed on a portion where the front side of a document is white and the back side is black, "black" is determined depending on the setting of the threshold level, and as a result, the back side is determined. There has been a problem that the image becomes a reentrant image.

【0006】本発明は,上記に鑑みてなされたものであ
って,白黒原稿であってもカラー画像として処理するこ
とにより,裏うつりの部分が原稿の表面の中間調成分と
色成分に違いが生じることを利用して所望の2値画像を
獲得し,裏うつり発生を回避することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above, and even when a monochrome document is processed as a color image, the difference between the halftone component and the color component on the back side of the document is obtained. It is an object of the present invention to obtain a desired binary image by utilizing the phenomenon, and to prevent the occurrence of back-side-down.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めに,請求項1に係る画像処理装置にあっては,白黒画
像をRGBのカラー画像として入力する画像入力手段
と,前記カラー画像の明度および明度の最小部分と最大
部分のRGB比率を求める明度・RGB比率検出手段
と,前記明度により「黒」,「白」,「中間」の3値を
求める3値化手段と,前記「中間」の画素のRGB比率
が,黒レベルに近い場合に「黒」,白レベルに近い場合
に「白」と2値判定する中間画素2値化手段と,を備え
たものである。
In order to achieve the above object, an image processing apparatus according to the first aspect comprises an image input means for inputting a monochrome image as an RGB color image, and an image input means for inputting the color image. Lightness / RGB ratio detecting means for obtaining the lightness and the RGB ratio of the minimum and maximum parts of the lightness; ternary means for obtaining three values of "black", "white" and "intermediate" based on the lightness; And an intermediate pixel binarizing means for making a binary decision of "black" when the RGB ratio of the pixel of "" is close to the black level and "white" when it is near the white level.

【0008】すなわち,白黒原稿をカラー画像として入
力処理し,裏うつりの部分を原稿の表面の中間調成分と
色成分(RGB比率)との違いで求めることにより,所
望の2値画像を獲得し,裏うつり画像の発生を回避する
ことが可能となる。
That is, a desired binary image is obtained by inputting a black-and-white document as a color image, and obtaining a back-facing portion based on a difference between a halftone component and a color component (RGB ratio) on the surface of the document. Thus, it is possible to avoid the occurrence of a back-flush image.

【0009】また,請求項2に係る2値化方法にあって
は,白黒画像をカラーのRGB画像として入力し,最も
明度の高い部分を見つけ,そのRGB比率をRwとして
記録する第1の工程と,最も明度の低い部分を見つけ,
そのRGB比率をRbとして記録する第2の工程と,明
度で「黒」,「白」,「中間」の3値に分ける第3の工
程と,「中間」の画素のRGB比率を調べ,前記Rbに
近い場合は「黒」,前記Rwに近い場合は「白」とし,
白黒の2値画像を得る第4の工程と,を含むものであ
る。
According to a second aspect of the present invention, a first step of inputting a black-and-white image as a color RGB image, finding a portion having the highest brightness, and recording the RGB ratio as Rw. And find the lowest brightness part,
A second step of recording the RGB ratio as Rb, a third step of dividing the brightness into three values of "black", "white", and "intermediate"; and examining the RGB ratio of the "intermediate" pixel. If it is close to Rb, it will be "black", if it is close to Rw, it will be "white",
And a fourth step of obtaining a black and white binary image.

【0010】すなわち,白黒画像をカラーのRGB画像
として入力し,最高明度部分のRGB比率をRwとして
記録し,最低明度部分のRGB比率をRbとして記録
し,さらに明度で「黒」,「白」,「中間」の3値に分
け,「中間」の画素のRGB比率を調べ,Rbに近い場
合は「黒」,Rwに近い場合は「白」とし,白黒の2値
画像を得ることにより,裏うつり画像の発生を回避する
ことが可能となる。
That is, a black-and-white image is input as a color RGB image, the RGB ratio of the highest lightness portion is recorded as Rw, the RGB ratio of the lowest lightness portion is recorded as Rb, and "black" and "white" in lightness are further recorded. , "Intermediate", and the RGB ratio of the "intermediate" pixel is examined. When the pixel is close to Rb, "black" and when it is close to Rw, "white", a binary image of black and white is obtained. It is possible to avoid the occurrence of a back-flushed image.

【0011】また,請求項3に係る2値化方法にあって
は,白黒画像をカラーのRGB画像として入力し,明度
による「黒」,「白」,「中間」の3値化を行う第1の
工程と,白部分を代表する画素を特定し,そのRGB比
率をRwとして記録する第2の工程と,黒部分を代表す
る画素を特定し,そのRGB比率をRbとして記録する
第3の工程と,中間値画像に対して,RGB比率による
2値化を行い,白黒の2値画像を得る第4の工程と,を
含むものである。
Further, in the binarizing method according to the third aspect, a black-and-white image is input as a color RGB image, and the black-and-white, white, and intermediate values are binarized by brightness. A second step of specifying a pixel representing a white portion and recording its RGB ratio as Rw; and a third step of specifying a pixel representing a black portion and recording its RGB ratio as Rb. And a fourth step of performing binarization on the intermediate value image based on the RGB ratio to obtain a black and white binary image.

【0012】すなわち,白黒画像をカラーのRGB画像
として入力し,当該画像に対し,明度により「黒」,
「白」,の3値化を行い,黒を代表する画素のRGB値
と白を代表する画素のRGB値とを求め,該RGB値と
「中間」値の画素のRGB値とを比較することによって
「中間」と判定された裏うつり部分を「白」と判定する
ことにより,裏うつり画像の発生を回避することが可能
となる。
That is, a black-and-white image is input as a color RGB image, and “black”,
Ternary conversion of “white” to obtain the RGB value of a pixel representing black and the RGB value of a pixel representing white, and comparing the RGB value with the RGB value of a pixel having an “intermediate” value As a result, it is possible to avoid the occurrence of a back-flushed image by determining the back-flushed portion determined to be “intermediate” as “white”.

【0013】また,請求項4に係る2値化方法にあって
は,白黒画像をカラーのRGB画像として入力し,裏う
つり部分を白と判定し,所望とする2値化結果を得る際
に,黒部分あるいは白部分の画素全体または一部の複数
の画素からRGB比率を求めるものである。
Further, in the binarizing method according to the fourth aspect, when a black-and-white image is input as a color RGB image, the back-facing portion is determined to be white, and a desired binarizing result is obtained. , RGB ratios are obtained from all or some of the pixels in the black portion or the white portion.

【0014】すなわち,白黒画像をカラーのRGB画像
として入力し,裏うつり部分を白と判定し,黒部分/白
部分の画素全体または一部の複数の画素からRGB比率
を求め,所望とする2値化画像を得ることにより,裏う
つり画像の発生を回避することが可能となる。
That is, a black-and-white image is input as a color RGB image, the back-facing portion is determined to be white, and the RGB ratio is obtained from all or a plurality of pixels of the black portion / white portion to obtain a desired ratio. By obtaining a binarized image, it is possible to avoid the occurrence of a back-flushed image.

【0015】また,請求項5に係る2値化方法にあって
は,請求項2ないし4のいずれか1つに記載の2値化方
法をコンピュータに実行させるプログラムを記録したも
のである。
According to a fifth aspect of the present invention, there is provided a binarization method, wherein a program for causing a computer to execute the binarization method according to any one of the second to fourth aspects is recorded.

【0016】すなわち,請求項2ないし4のいずれか1
つに記載の2値化方法をコンピュータに実行させるプロ
グラムを記録したことにより,コンピュータによって2
値化処理を行うことが可能となる。
That is, any one of claims 2 to 4
By recording a program for causing a computer to execute the binarization method described in (1), the computer
It is possible to perform a value conversion process.

【0017】[0017]

【発明の実施の形態】以下,本発明の画像処理装置およ
び2値化方法,並びに2値化方法をコンピュータに実行
させるプログラムを記録した機械読み取り可能な記録媒
体について添付図面を参照し,詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image processing apparatus and a binarizing method according to the present invention and a machine-readable recording medium storing a program for causing a computer to execute the binarizing method will be described in detail with reference to the accompanying drawings. explain.

【0018】(システム構成)図1は,実施の形態に係
る画像処理装置の構成を示すブロック図である。図にお
いて,101はCCD搭載のスキャナなどを用い,白黒
原稿を光学的にカラー画像(R,G,B信号)として読
み取り,入力する画像入力手段としての画像入力部,1
02はカラー画像の明度を求め,該明度の最小部分と最
大部分とのRGB比率を求める明度・RGB比率検出手
段としての明度検出部・RbRw検出部である。
(System Configuration) FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to the embodiment. In FIG. 1, reference numeral 101 denotes an image input unit as an image input unit for optically reading and inputting a black-and-white original as a color image (R, G, B signals) using a CCD mounted scanner or the like;
Reference numeral 02 denotes a brightness detection unit / RbRw detection unit as brightness / RGB ratio detection means for obtaining the brightness of a color image and calculating an RGB ratio between a minimum portion and a maximum portion of the brightness.

【0019】また,103は明度による画素を「黒」,
「白」,「中間」に3値化する3値化手段としての3値
化部,104は中間画素をRGB比率に基づいて黒白の
2値に判定する中間画素2値化手段としての中間画素2
値化部,105は本装置を所定の制御プログラムに基づ
いて統括的に制御する制御部,106は入力されたカラ
ー画像や連結成分データ,領域データなどを記憶してお
くためのデータ記憶部,107は外部機器とのデータ送
受信などを行うデータ通信部である。
Reference numeral 103 denotes a pixel based on brightness as "black";
A ternarization unit 104 as ternarization means for ternarization into “white” and “intermediate”, and an intermediate pixel 104 as an intermediate pixel binarization means for determining the intermediate pixel to be a black and white binary based on the RGB ratio 2
A value conversion unit 105 is a control unit that controls the apparatus in accordance with a predetermined control program, 106 is a data storage unit for storing input color images, connected component data, area data, and the like. Reference numeral 107 denotes a data communication unit that performs data transmission / reception with an external device.

【0020】(システム動作)次に,以上のように構成
された画像処理装置の動作について説明する。まず,原
稿をスキャナ(画像入力部101)にセットし,該原稿
を露光走査することによりR,G,B信号のカラー画像
を得る。なお,この他に画像をデータ通信部109を介
して外部より入力してもよい。
(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 a color image of R, G, and B signals. In addition, an image may be externally input via the data communication unit 109.

【0021】ここで,画像読み取り動作およびRGB画
像の取り込み例について図4および図5を参照しながら
説明する。図4は,白黒原稿を光源/CCDにより読み
取る例を示す説明図である。図において,401は白黒
原稿,402は光源/CCD,403は圧板である。ま
た,図5は,図4の原稿読み取りにおいて,白黒原稿を
スキャナで多値信号として取り込む例を示す説明図であ
る。
Here, an image reading operation and an example of capturing an RGB image will be described with reference to FIGS. FIG. 4 is an explanatory diagram showing an example in which a black-and-white document is read by a light source / CCD. In the figure, reference numeral 401 denotes a black and white original, 402 denotes a light source / CCD, and 403 denotes a pressure plate. FIG. 5 is an explanatory diagram showing an example in which a black-and-white document is read as a multi-value signal by a scanner in the document reading of FIG.

【0022】読み取り用の光が原稿401の表面で全て
反射されず,一部が透過する場合,その透過光は原稿上
の圧板403で反射され,原稿表面の反射光と同様に画
像信号として得られる。
When the reading light is not reflected at all on the surface of the original 401 but is partially transmitted, the transmitted light is reflected by the pressure plate 403 on the original, and is obtained as an image signal similarly to the reflected light on the original surface. Can be

【0023】ここで,各反射光および各透過光(透過し
て再び戻ってきた光)を以下のように表す。 Lr:原稿表面の反射光 Lrw:白部分の反射光 Lrg:中間調の反射光 Lrb:黒部分の反射光 Lt:透過して再び戻ってきた光 Ltw:原稿の裏面が白部分の透過光 Ltb:原稿の裏面が黒部分の透過光
Here, each reflected light and each transmitted light (light transmitted and returned again) are represented as follows. Lr: Reflected light on the front surface of the document Lrw: Reflected light in the white portion Lrg: Reflected light in the halftone Lrb: Reflected light in the black portion Lt: Light that has passed through and returned again Ltw: Transmitted light in the white portion on the back surface of the document : Transmitted light with black back side of original

【0024】このとき,画像信号は,図5に示すような
グラフとなる。この場合,しきい値Thの設定レベルに
よっては,原稿の表側が白で,その裏側が黒の部分につ
いての「黒」の判定がなされる。
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, the determination of “black” is made for a portion where the front side of the document is white and the back side is black.

【0025】ここで,たとえば,図5に示すように白2
55〜黒0の範囲でRGBそれぞれが値をとるとした場
合, 両面白の部分:(200,202,192) 表が黒の部分:(85,75,57) 表が中間調の部分:(156,160,140) 原稿表が白で裏が黒の部分:(158,161,15
8) の値であるとする。
Here, for example, as shown in FIG.
Assuming that each of RGB takes a value in the range of 55 to black 0, white portions on both sides: (200, 202, 192) black portions in the table: (85, 75, 57) halftone portions in the table: ( (156, 160, 140) Part where the manuscript table is white and the back is black: (158, 161, 15)
8) It is assumed that

【0026】この例では,表面のインクに対する反射光
Lrb,LrgはいずれもR,Gに比べてBの値が低く
なっている。しかし,原稿の両面が白の部分では,Bの
値が低くなっているものの,その差は小さく,裏うつり
の部分でのBは,RやGと比べてさほど変わらない。
In this example, the reflected light Lrb and Lrg with respect to the ink on the surface both have a lower B value than R and G. However, although the value of B is low in the white portions of both sides of the original document, the difference is small, and B in the portion of the back side is not much different from R and G.

【0027】これは,反射光Lrwは,基本的に原稿用
紙の色(厳密には白から少しずれている)が反映されて
いるので,Lrwの比率の大きい両面白部分および表面
白部分にその影響が出ていることと,原稿を透過する際
に色成分に変化が生じることでLtとLrに違いが生じ
ることによる。
This is because the reflected light Lrw basically reflects the color of the original paper (strictly speaking, it slightly deviates from white). This is because Lt and Lr are different due to the influence and the change in color components when the light passes through the document.

【0028】ここで,中間調(Lrg)の部分を
「黒」,裏うつり(Lrw+Ltb)の部分を「白」と
するには,図2に示すようなフローチャートの動作処理
を行えばよい。
Here, in order to make the halftone (Lrg) part black and the back side (Lrw + Ltb) part white, the operation shown in the flowchart of FIG. 2 may be performed.

【0029】図2において,まず,RGB画像を入力し
(S201),最も明度の高い部分を見つけ,そのRG
B比率をRwとして記録する(S202)。さらに,最
も明度の低い部分を見つけ,そのRGB比率をRbとし
て記録する(S203)。次いで,単純に明度で
「黒」,「白」,「中間」の3値に分ける(S20
4)。これは,あらかじめ決定したしきい値を用いても
よいし,他に全体あるいは局所的な明度のヒストグラム
を利用するなどの方法を用いてもよい。続いて,「中
間」の画素のRGB比率を調べ,その結果,Rbに近い
場合は「黒」,Rwに近い場合は「白」とする。これを
各「中間」画素について実行し(S205),白黒の2
値画像を得る(S206)。
In FIG. 2, first, an RGB image is input (S201), a portion with the highest brightness is found, and the RGB
The B ratio is recorded as Rw (S202). Further, a portion having the lowest brightness is found, and its RGB ratio is recorded as Rb (S203). Next, the brightness is simply divided into three values of "black", "white", and "middle" (S20).
4). For this, a threshold value determined in advance may be used, or another method such as using a histogram of overall or local brightness may be used. Subsequently, the RGB ratio of the “middle” pixel is checked. As a result, “black” is set when the pixel is close to Rb, and “white” is set when the pixel is close to Rw. This is executed for each “intermediate” pixel (S205), and the monochrome 2
A value image is obtained (S206).

【0030】したがって,以上の処理を実行することに
より,明度だけでは判断が困難な部分についても,所望
の2値化結果を得ることが可能となる。
Therefore, by executing the above-described processing, it is possible to obtain a desired binarization result even for a portion that is difficult to determine only by brightness.

【0031】ところで,Rw,Rbを求める際に,最も
明度の高い画像・低い画素ではなく,別の指標に基づい
て特定した画素のRGB比率をRw,Rbとしてもよ
い。この動作を図3に示すフローチャートを用いて説明
する。
When determining Rw and Rb, the RGB ratio of the pixel specified based on another index may be used as Rw and Rb instead of the image and the pixel with the highest brightness. This operation will be described with reference to the flowchart shown in FIG.

【0032】図3において,まず,RGB画像を入力し
(S301),明度による3値化(「黒」,「白」,
「中間」の3値)を行う(S302)。さらに,白部分
を代表する画素を特定し,そのRGB比率をRwとして
記録する(S303)。続いて,黒部分を代表する画素
を特定し,そのRGB比率をRbとして記録する(S3
04)。次いで,中間値画像に対して,RGB比率によ
る2値化を行い(S305),白黒の2値画像を得る
(S306)。
In FIG. 3, first, an RGB image is input (S301), and ternarization based on lightness (“black”, “white”,
("Intermediate" three values) is performed (S302). Further, a pixel representing the white portion is specified, and its RGB ratio is recorded as Rw (S303). Subsequently, a pixel representing the black portion is specified, and its RGB ratio is recorded as Rb (S3).
04). Next, the intermediate value image is binarized by the RGB ratio (S305), and a black and white binary image is obtained (S306).

【0033】このように,RGB画像の対し,明度値に
より「黒」,「白」,「中間」の3値化を行い,黒を代
表する画素のRGB値と白を代表する画素のRGB値を
求め,該RGB値と「中間」値の画素のRGB値とを比
較し,「中間」として判定された裏うつり部分を「白」
と判定することにより,裏うつりがあっても所望とする
2値化画像を得ることができる。
As described above, for the RGB image, ternarization of “black”, “white”, and “intermediate” is performed according to the brightness value, and the RGB value of the pixel representing black and the RGB value of the pixel representing white are obtained. Is calculated, and the RGB value is compared with the RGB value of the pixel having the “intermediate” value.
By the determination, it is possible to obtain a desired binarized image even if there is a reverse embossing.

【0034】また,上記の他の方法として,たとえば,
特定の画素のRGB比率ではなく,黒部分あるいは白部
分の画素全体または一部の複数の画素からRGB比率を
求めてもよい。なお,この場合,各画素の平均をとる
か,あるいはメジアンをとる。
As another method described above, for example,
Instead of the RGB ratio of a specific pixel, the RGB ratio may be obtained from all or some of a plurality of pixels in a black portion or a white portion. In this case, the average of each pixel is taken or the median is taken.

【0035】さて,本発明は上述した実施の形態の他に
ソフトウェアによって実現することができる。たとえ
ば,上述した図2および図3で説明した2値化方法をプ
ログラム化し,それを機械読み取り可能な記録媒体に格
納しておき,コンピュータ上で実行することで実現す
る。
The present invention can be realized by software other than the above embodiment. 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】[0036]

【発明の効果】以上説明したように,本発明に係る画像
処理装置(請求項1)によれば,白黒原稿をカラー画像
として入力処理し,裏うつりの部分が原稿の表面の中間
調成分と色成分(RGB比率)に違いを求めるため,所
望の2値画像を獲得することができ,裏うつり画像の発
生を回避することが可能となる。
As described above, according to the image processing apparatus of the present invention (claim 1), a black-and-white document is input-processed as a color image, and the back-facing portion is replaced with a halftone component on the surface of the document. Since a difference is obtained in the color components (RGB ratios), a desired binary image can be obtained, and it is possible to avoid the occurrence of a back-facing image.

【0037】また,本発明に係る2値化方法(請求項
2)によれば,白黒画像をカラーのRGB画像として入
力し,最高明度部分のRGB比率をRwとして記録し,
最低明度部分のRGB比率をRbとして記録し,さらに
明度で「黒」,「白」,「中間」の3値に分け,「中
間」の画素のRGB比率を調べ,Rbに近い場合は
「黒」,Rwに近い場合は「白」として,白黒の2値画
像が得られ,裏うつり画像の発生を回避することが可能
となる。
According to the binarization method of the present invention (claim 2), a monochrome image is input as a color RGB image, and the RGB ratio of the highest brightness portion is recorded as Rw.
The RGB ratio of the lowest lightness portion is recorded as Rb, and further divided into three values of “black”, “white”, and “intermediate” according to the lightness, and the RGB ratio of the “middle” pixel is examined. , Rw, it is regarded as “white”, and a black-and-white binary image is obtained.

【0038】また,本発明に係る2値化方法(請求項
3)によれば,白黒画像をカラーのRGB画像として入
力し,当該画像に対し,明度により「黒」,「白」,の
3値化を行い,黒を代表する画素のRGB値と白を代表
する画素のRGB値とを求め,該RGB値と「中間」値
の画素のRGB値とを比較することによって「中間」と
判定された裏うつり部分を「白」と判定するため,裏う
つり画像の発生を回避することが可能となる。
According to the binarizing method of the present invention (claim 3), a black-and-white image is input as a color RGB image, and the black-and-white image is given to the image according to brightness. The value is determined, the RGB value of the pixel representing black and the RGB value of the pixel representing white are determined, and the RGB value is compared with the RGB value of the pixel having the “intermediate” value to determine “intermediate”. It is possible to avoid the occurrence of a back-flushed image, since the determined back-flushed portion is determined to be “white”.

【0039】また,本発明に係る2値化方法(請求項
4)によれば,白黒画像をカラーのRGB画像として入
力し,裏うつり部分を白と判定し,黒部分/白部分の画
素全体または一部の複数の画素からRGB比率を求める
ことにより,所望とする2値化画像が得られ,裏うつり
画像の発生を回避することが可能となる。
According to the binarization method of the present invention (claim 4), a black-and-white image is input as a color RGB image, the back-facing portion is determined to be white, and the whole pixels of the black portion / white portion are determined. Alternatively, by obtaining the RGB ratio from some of the plurality of pixels, a desired binarized image can be obtained, and it is possible to avoid the occurrence of a back-facing image.

【0040】また,本発明に係る機械読み取り可能な記
録媒体(請求項5)によれば,請求項2ないし4のいず
れか1つに記載の2値化方法をコンピュータに実行させ
るプログラムを記録したことにより,コンピュータによ
って2値化処理を行うことが可能となる。
According to a machine-readable recording medium of the present invention (claim 5), a program for causing a computer to execute the binarization method according to any one of claims 2 to 4 is recorded. This enables the computer to perform the binarization processing.

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

【図1】本発明の実施の形態に係る画像処理装置の構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】実施の形態に係るRGB画像から白黒2値化画
像を得るまでの第1の処理動作例を示すフローチャート
である。
FIG. 2 is a flowchart illustrating a first processing operation example until a black-and-white binary image is obtained from an RGB image according to the embodiment;

【図3】実施の形態に係るRGB画像から白黒2値化画
像を得るまでの第2の処理動作例を示すフローチャート
である。
FIG. 3 is a flowchart showing a second processing operation example until a black-and-white binary image is obtained from an RGB image according to the embodiment;

【図4】白黒原稿を光源/CCDにより読み取る例を示
す説明図である。
FIG. 4 is an explanatory diagram showing an example in which a black-and-white document is read by a light source / CCD.

【図5】図4の原稿読み取りにおいて,白黒原稿をスキ
ャナで多値信号として取り込む例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example in which a black-and-white original is read as a multi-value signal by a scanner in the original reading of FIG. 4;

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

101 画像入力部 102 明度検出部・RbRw検出部 103 3値化部 104 中間画素2値化部 Reference Signs List 101 image input unit 102 brightness detection unit / RbRw detection unit 103 ternarization unit 104 intermediate pixel binarization unit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 白黒画像をRGBのカラー画像として入
力する画像入力手段と,前記カラー画像の明度および明
度の最小部分と最大部分のRGB比率を求める明度・R
GB比率検出手段と,前記明度により「黒」,「白」,
「中間」の3値を求める3値化手段と,前記「中間」の
画素のRGB比率が,黒レベルに近い場合に「黒」,白
レベルに近い場合に「白」と2値判定する中間画素2値
化手段と,を備えたことを特徴とする画像処理装置。
1. An image input means for inputting a black and white image as an RGB color image, and a lightness / R for obtaining the lightness of the color image and an RGB ratio of a minimum part and a maximum part of the lightness.
GB ratio detecting means and "black", "white",
A ternary means for obtaining the ternary value of "intermediate", and an intermediate for making a binary determination of "black" when the RGB ratio of the "intermediate" pixel is close to the black level and "white" when the RGB ratio is close to the white level An image processing device comprising: a pixel binarizing unit.
【請求項2】 白黒画像をカラーのRGB画像として入
力し,最も明度の高い部分を見つけ,そのRGB比率を
Rwとして記録する第1の工程と,最も明度の低い部分
を見つけ,そのRGB比率をRbとして記録する第2の
工程と,明度で「黒」,「白」,「中間」の3値に分け
る第3の工程と,「中間」の画素のRGB比率を調べ,
前記Rbに近い場合は「黒」,前記Rwに近い場合は
「白」とし,白黒の2値画像を得る第4の工程と,を含
むことを特徴とする2値化方法。
2. A first step of inputting a black-and-white image as a color RGB image, finding a portion having the highest brightness, recording the RGB ratio as Rw, and finding a portion having the lowest brightness, and determining the RGB ratio. The second step of recording as Rb, the third step of dividing the brightness into three values of “black”, “white”, and “intermediate”, and the RGB ratio of the “intermediate” pixel are examined.
A fourth step of obtaining a black-and-white binary image by setting “black” when close to Rb and “white” when close to Rw.
【請求項3】 白黒画像をカラーのRGB画像として入
力し,明度による「黒」,「白」,「中間」の3値化を
行う第1の工程と,白部分を代表する画素を特定し,そ
のRGB比率をRwとして記録する第2の工程と,黒部
分を代表する画素を特定し,そのRGB比率をRbとし
て記録する第3の工程と,中間値画像に対して,RGB
比率による2値化を行い,白黒の2値画像を得る第4の
工程と,を含むことを特徴とする2値化方法。
3. A black-and-white image is input as a color RGB image, a first step of performing ternarization of “black”, “white”, and “intermediate” according to lightness, and a pixel representing a white portion is specified. A second step of recording the RGB ratio as Rw, a third step of specifying a pixel representing a black portion and recording the RGB ratio as Rb, and
A fourth step of performing binarization by a ratio to obtain a black and white binary image.
【請求項4】 白黒画像をカラーのRGB画像として入
力し,裏うつり部分を白と判定し,所望とする2値化結
果を得る際に,黒部分あるいは白部分の画素全体または
一部の複数の画素からRGB比率を求めることを特徴と
する請求項2または3に記載の2値化方法。
4. A black-and-white image is input as a color RGB image, a back-facing portion is determined to be white, and when obtaining a desired binarization result, a plurality of all or a part of pixels of a black portion or a white portion is obtained. The binarization method according to claim 2, wherein the RGB ratio is obtained from the pixel of (b).
【請求項5】 前記請求項2ないし4のいずれか1つに
記載の2値化方法をコンピュータに実行させるプログラ
ムを記録したことを特徴とする機械読み取り可能な記録
媒体。
5. A machine-readable recording medium on which is recorded a program for causing a computer to execute the binarization method according to any one of claims 2 to 4.
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
JP6202098 1998-02-27
JP10-62020 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 true JPH11313218A (en) 1999-11-09
JP3792402B2 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)

Cited By (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
JP2008148213A (en) * 2006-12-13 2008-06-26 Oki Electric Ind Co Ltd Image processor, image processing method, and computer program

Cited By (3)

* 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
JP2008148213A (en) * 2006-12-13 2008-06-26 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
JP3792402B2 (en) 2006-07-05

Similar Documents

Publication Publication Date Title
US4723173A (en) Image processing apparatus
JP2005094740A (en) Image processing apparatus, image forming apparatus and image processing method
JPH0722330B2 (en) Image region identification method for image processing apparatus
JP3088010B2 (en) Line drawing separation method and apparatus
EP0828375A2 (en) Image-region discriminating method and image-processing apparatus
US20060152765A1 (en) Image processing apparatus, image forming apparatus, image reading process apparatus, image processing method, image processing program, and computer-readable storage medium
JPH09186877A (en) Image processor
JPH10294862A (en) Image processor
JPH0879517A (en) Method for identifying type of image
JP3792402B2 (en) Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method
JP3118469B2 (en) Image area separation device
JPH10108012A (en) Image area separating device
JP2629699B2 (en) Image area identification device
EP0831636A2 (en) Image processing device
JP3064896B2 (en) Image processing device
JP3587740B2 (en) Image processing device
JP3326309B2 (en) Image processing device
JPH0457274B2 (en)
JP2507948B2 (en) Image area identification device
JP2900343B2 (en) Image processing device
JP2000175032A (en) Image processing unit
JP2629183B2 (en) Image area identification device
JP2853141B2 (en) Image area identification device
JP2000151997A (en) Original type discrimination device and image processor
JPH118759A (en) Image processor

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