[go: up one dir, main page]

JP2001169101A - Image discriminating device - Google Patents

Image discriminating device

Info

Publication number
JP2001169101A
JP2001169101A JP34882599A JP34882599A JP2001169101A JP 2001169101 A JP2001169101 A JP 2001169101A JP 34882599 A JP34882599 A JP 34882599A JP 34882599 A JP34882599 A JP 34882599A JP 2001169101 A JP2001169101 A JP 2001169101A
Authority
JP
Japan
Prior art keywords
pixel
color
area
image
monochrome
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
JP34882599A
Other languages
Japanese (ja)
Inventor
Hiroshi Kono
浩史 河野
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 JP34882599A priority Critical patent/JP2001169101A/en
Publication of JP2001169101A publication Critical patent/JP2001169101A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 入力される画像が白黒画像かカラー画像かを
精度よく判別する。 【解決手段】 画像入力手段21によって入力される画
像は、画像領域判別手段22によって、カラー領域画素
26、中間領域画素27または白黒領域画素28に分離
される。白黒領域画素28は、白黒領域判別手段29に
よって、モノクロ領域画素30か下地領域画素31かに
分離される。モノクロ領域画素30は、モノクロブロッ
ク認識手段32によってモノクロブロックとしての認識
が行われる。モノクロブロックの周縁の境界の画素は、
属性判別手段38によって色ずれが生じているか否かを
判別され、判別結果は画素計数補正手段39による画素
計数手段33の計数値の補正に反映される。画像判別手
段40は、画素計数手段33の計数結果に基づいて、白
黒画像であるかカラー画像であるかの判別信号を導出す
る。
(57) [Summary] [Problem] To accurately determine whether an input image is a monochrome image or a color image. An image input by an image input unit is separated into a color region pixel, an intermediate region pixel, and a monochrome region pixel by an image region determination unit. The monochrome area pixel 28 is separated into a monochrome area pixel 30 and a base area pixel 31 by a monochrome area determination unit 29. The monochrome area pixel 30 is recognized as a monochrome block by the monochrome block recognition means 32. Pixels at the border of the monochrome block are
Whether or not a color shift has occurred is determined by the attribute determining unit 38, and the determination result is reflected in correction of the count value of the pixel counting unit 33 by the pixel counting correcting unit 39. The image discriminating means 40 derives a discrimination signal indicating whether the image is a monochrome image or a color image based on the counting result of the pixel counting means 33.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像形成装
置により画像形成を行う場合などにおいて、カラー画像
と白黒画像との判別を行う画像判別装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image discriminating apparatus for discriminating between a color image and a monochrome image when an image is formed by a color image forming apparatus.

【0002】[0002]

【従来の技術】従来、複写や印刷によって画像形成を行
うために使用される画像データは、モノクロと称される
白黒画像がほとんどであった。しかしながら、近年、O
A機器のデジタル化が急速に進展し、またカラー画像出
力の需要が増してきたことによって、デジタルカラー複
写機やカラープリンタなどのカラー画像形成装置が広く
一般に普及してきている。
2. Description of the Related Art Conventionally, most image data used to form an image by copying or printing is a monochrome image called a monochrome image. However, in recent years, O
With the rapid progress of digitization of the device A and the demand for color image output, color image forming apparatuses such as digital color copying machines and color printers have been widely and widely used.

【0003】これらのカラー画像形成装置においては、
複数色を重ねて白黒画像を形成することも原理的には可
能である。白黒画像は、文字など輪郭をはっきりさせる
必要がある画像や、濃淡を網点で表現する場合が多く、
カラー用の記録材を複数色重ねて白黒画像ととして形成
しようとすると、色ずれや記録材の分光特性等から、黒
い文字や細線が網点にならず、見づらいという欠点があ
る。また、白黒画像を形成する場合を想定してカラー画
像を処理するプロセスを考えると、前述のように形成さ
れる画像の品質が悪くなるという問題の他に、白黒画像
であるにも拘わらず、色分解した複数の成分として処理
するので処理に時間がかかり、複数のプロセスによって
画像を形成するためコストが多くかかったりするという
問題もある。
[0003] In these color image forming apparatuses,
It is also possible in principle to form a black and white image by overlapping a plurality of colors. In black and white images, images that need to have sharp outlines, such as characters, and shades are often expressed with halftone dots,
If a color recording material is to be formed as a black and white image by superimposing a plurality of colors, black characters and thin lines do not become halftone dots due to color misregistration and spectral characteristics of the recording material. Also, considering the process of processing a color image assuming the case of forming a black and white image, in addition to the problem that the quality of the formed image is deteriorated as described above, in spite of being a black and white image, There is also a problem that the processing is time-consuming because the processing is performed as a plurality of components separated by color, and the cost is increased because an image is formed by a plurality of processes.

【0004】カラー画像形成の際には、画像を複数の色
成分、たとえば赤(R)・緑(G)・青(B)の三原色
や、シアン(C)・マゼンタ(M)・イエロー(Y)の
三原色に分けて処理される。各色成分の濃度が同等であ
れば、無彩色化され、白黒成分となるはずである。しか
しながら、前述のような問題が生じる。このため、入力
される画像に対して、カラー情報を含むカラー画像か、
白黒情報のみからなる白黒画像であるかを判別し、カラ
ー画像にはカラー画像を処理するプロセスを、白黒画像
には白黒画像を処理するプロセスを、画像の種類に応じ
て適切に選択する必要がある。
When forming a color image, an image is formed by converting a plurality of color components, for example, three primary colors of red (R), green (G), and blue (B), cyan (C), magenta (M), and yellow (Y). ) Are processed separately. If the densities of the respective color components are the same, they should be achromatic and become black and white components. However, the above-described problem occurs. For this reason, the input image is a color image containing color information,
It is necessary to determine whether the image is a black-and-white image consisting only of black-and-white information, and appropriately select a process for processing a color image for a color image and a process for processing a black-and-white image for a black-and-white image according to the type of image. is there.

【0005】このような画像の種類の判別を行う先行技
術として、たとえば特開平3−270380号公報や特
開平4−282968号公報等がある。特開平3−27
0380号公報においては、画素毎のカラー判別信号の
出力回数をしきい値と比較した結果としてカラー画像判
別信号を出力する技術が開示されている。この先行技術
では、各画素毎にカラー画素であるかモノクロ画素であ
るかを判別し、画像中のカラー画素数を計数し、その計
数値が一定以上の回数に達していれば、その画像をカラ
ー画像であると判別し、そうでなければモノクロ画像で
あると判別する。
[0005] As a prior art for discriminating such image types, there are, for example, Japanese Patent Application Laid-Open Nos. 3-270380 and 4-282968. JP-A-3-27
Japanese Patent Application Publication No. 0380 discloses a technique of outputting a color image determination signal as a result of comparing the number of times of output of a color determination signal for each pixel with a threshold value. In this prior art, each pixel is determined to be a color pixel or a monochrome pixel, the number of color pixels in the image is counted, and if the count value reaches a certain number or more, the image is displayed. It is determined that the image is a color image, and otherwise, it is determined that the image is a monochrome image.

【0006】また、特開平4−282968号公報で
は、画像を形成するライン毎の判別結果としてのカラー
ライン数に基づいて、カラー画像を判別する技術が開示
されている。この先行技術では、各画素毎にカラー画素
であるかモノクロ画素であるかを判別し、入力される画
素順で所定数以上連続するカラー画素の存在が検知され
ると、この連続カラー画素分をカラーブロックと認識
し、1ライン中に所定数以上のカラーブロックが存在し
ていれば、そのラインをカラーラインとして計数する。
そして、画像中にカラーラインが所定数存在していれば
カラー画像と判断し、そうでない場合はモノクロ画像と
判断する。
Japanese Patent Application Laid-Open No. 4-282968 discloses a technique for discriminating a color image based on the number of color lines as a discrimination result for each line forming an image. In this prior art, it is determined whether each pixel is a color pixel or a monochrome pixel, and when the presence of color pixels continuous for a predetermined number or more in the order of input pixels is detected, the number of the continuous color pixels is determined. It is recognized as a color block, and if a predetermined number or more of color blocks exist in one line, the line is counted as a color line.
If a predetermined number of color lines exist in the image, the image is determined to be a color image, and if not, it is determined to be a monochrome image.

【0007】しかしながら、これらの先行技術では、各
画素毎の判別において、誤判別に対する考慮がなされて
いない。画素判別の際の誤判別としては、実際はカラー
画素であるにも拘わらずモノクロ画素として判別される
場合と、逆に実際はモノクロ画素であるにも拘わらず、
カラー画素として判別されてしまう場合とがある。この
ような誤判別は、主としてモノクロエッジ部分に発生す
るカラーノイズの影響と、原稿の下地部分やいわゆるパ
ステル色と呼ばれる領域において問題になるような1画
素の濃度値からだけでは判別することができない画素の
取扱い方に起因する。
However, in these prior arts, no consideration is given to erroneous determination in the determination for each pixel. As an erroneous determination at the time of pixel determination, a case where a pixel is actually determined to be a monochrome pixel despite being a color pixel, and conversely, although a pixel is actually a monochrome pixel,
There is a case where it is determined as a color pixel. Such an erroneous determination cannot be determined only from the influence of color noise mainly occurring in the monochrome edge portion and the density value of one pixel which is problematic in the background portion of the document or in a region called a pastel color. This is due to the way pixels are handled.

【0008】モノクロエッジ部分に発生するカラーノイ
ズとは、画像の読み取りに起因して生じる色ずれのこと
である。色ずれが発生すると、実際にはモノクロ領域に
属する画素がカラー領域に属するものとして誤判別され
る可能性がある。そこで、本件出願人は、特開平11−
196282号公報で、前述の問題を解決することが可
能な画像判別装置を提案している。
[0008] The color noise generated in the monochrome edge portion is a color shift caused by reading an image. When a color shift occurs, there is a possibility that a pixel belonging to the monochrome area is erroneously determined as belonging to the color area. Accordingly, the applicant of the present application has disclosed in
Japanese Patent Publication No. 196282 proposes an image discriminating apparatus capable of solving the above-mentioned problem.

【0009】図16は、特開平11−196282号公
報で提案されている画像判別装置の構成を示す。この画
像判別装置では、次のようにして画像の判別を行う。
FIG. 16 shows a configuration of an image discriminating apparatus proposed in Japanese Patent Application Laid-Open No. H11-196282. The image discriminating apparatus discriminates an image as follows.

【0010】画像入力手段1によって読み込まれ、複
数の色に分解される画像データを基に、該画像データを
構成する色成分の相互差分値が算出され、画素領域判別
手段2によって各画素がカラー領域、白黒領域、あるい
はカラー領域と白黒領域とのどちらとも言えない中間領
域のいずれに属するのかの判別がなされる。
Based on image data read by the image input means 1 and decomposed into a plurality of colors, mutual difference values of the color components constituting the image data are calculated. It is determined whether the image belongs to an area, a black and white area, or an intermediate area that cannot be said to be either a color area or a black and white area.

【0011】ここで、白黒領域に判別される画素につ
いては、画素領域判別手段2に設けられる白黒領域判別
手段(画素判別手段5)によって、下地領域とモノクロ
領域とに分離される。画素領域判別手段2内には、差分
値算出手段3、差分最大値選択手段4および画素判別手
段5が含まれる。画素判別手段5は、判別結果に基づい
て、カラー領域画素6、中間領域画素7およびモノクロ
領域画素8に分類する。
Here, the pixels determined to be in the black and white area are separated into a base area and a monochrome area by the black and white area determination means (pixel determination means 5) provided in the pixel area determination means 2. The pixel area determination means 2 includes a difference value calculation means 3, a maximum difference value selection means 4, and a pixel determination means 5. The pixel discriminating means 5 classifies the pixel into a color area pixel 6, an intermediate area pixel 7, and a monochrome area pixel 8 based on the discrimination result.

【0012】モノクロ領域と判別されたモノクロ領域
画素8については、モノクロ領域画素8が連続して存在
し、その連続数が閾値Border以上のとき、モノク
ロブロック認識手段9によって、その領域がモノクロブ
ロックであると認識される。なお、カラー領域画素6、
中間領域画素7およびモノクロ領域画素8の数は、画素
計数手段10のカラー画素カウンタ11、中間画素カウ
ンタ12およびモノクロ画素カウンタ13にそれぞれ計
数される。モノクロブロック認識手段9によって認識さ
れるモノクロブロックでの画素数は、モノクロブロック
カウンタ14によって計数される。
As for the monochrome area pixels 8 which are determined to be monochrome areas, the monochrome area pixels 8 are continuously present, and when the number of continuous pixels is equal to or greater than the threshold value Border, the monochrome block recognition means 9 determines that the area is a monochrome block. It is recognized that there is. Note that the color area pixel 6,
The numbers of the intermediate area pixels 7 and the monochrome area pixels 8 are counted by the color pixel counter 11, the intermediate pixel counter 12, and the monochrome pixel counter 13 of the pixel counting means 10, respectively. The number of pixels in the monochrome block recognized by the monochrome block recognition means 9 is counted by the monochrome block counter 14.

【0013】モノクロブロックが検出されると、 1)モノクロブロックの両端に位置する画素がカラー領
域あるいは中間領域に属する場合、その画素数だけカラ
ー画素カウンタ11あるいは中間画素カウンタ12の計
数値から差引く。すなわち、モノクロブロックの両端に
おいてカラー画素あるいは中間画素が単独で生じている
場合には、該画素はカラーノイズであるとみなす。した
がって、モノクロブロックの両端に位置するカラー領域
あるいは中間領域の画素数だけカラー画素カウンタ11
あるいは中間画素カウンタ12の計数値から差引くこと
によって、カラーノイズの除去・補正を行うことができ
る。 2)モノクロブロックの両端の位置の画素が下地領域に
属する場合は、カラーノイズが発生していないので、カ
ラー画素カウンタ11・中間画素カウンタ12・モノク
ロ画素カウンタ13の計数値は変更しない。
When a monochrome block is detected: 1) If pixels located at both ends of the monochrome block belong to the color area or the intermediate area, the number of pixels is subtracted from the count value of the color pixel counter 11 or the intermediate pixel counter 12. . That is, if a color pixel or an intermediate pixel occurs independently at both ends of the monochrome block, the pixel is regarded as color noise. Therefore, the color pixel counters 11 correspond to the number of pixels in the color area or the intermediate area located at both ends of the monochrome block.
Alternatively, by subtracting from the count value of the intermediate pixel counter 12, color noise can be removed and corrected. 2) When the pixels at both ends of the monochrome block belong to the background area, since the color noise has not occurred, the count values of the color pixel counter 11, the intermediate pixel counter 12, and the monochrome pixel counter 13 are not changed.

【0014】以上説明したような工程で、モノクロブロ
ックの両端に発生するカラーノイズを補正することがで
きる。この補正は、カラーノイズ除去手段15によって
行われる。カラー画像判別手段16は、画像の種類の判
別結果を出力し、最終出力手段17によって印刷などが
行われる。
In the steps described above, the color noise generated at both ends of the monochrome block can be corrected. This correction is performed by the color noise removing unit 15. The color image discriminating means 16 outputs the discrimination result of the image type, and the final output means 17 performs printing or the like.

【0015】[0015]

【発明が解決しようとする課題】特開平11−1962
82号公報で提案している構成では、モノクロブロック
の両端においてカラー画素あるいは中間画素が生じてい
る場合、該画素がたとえ本来のカラー画素であっても、
常にカラーノイズと判断されて除去されてしまう。すな
わち、モノクロブロックの両端の画素が色ずれ画素であ
るか否かの判別が充分になされていないという問題があ
る。
Problems to be Solved by the Invention Japanese Patent Laid-Open No. 11-1962
In the configuration proposed in Japanese Patent Publication No. 82, when color pixels or intermediate pixels occur at both ends of a monochrome block, even if the pixels are original color pixels,
It is always judged as color noise and removed. In other words, there is a problem that it is not sufficiently determined whether or not the pixels at both ends of the monochrome block are color shift pixels.

【0016】本発明の目的は、特にモノクロブロックの
周縁の位置の画素がカラー画素であるか白黒画素である
かを精度よく判別することが可能な画像判別装置を提供
することである。
It is an object of the present invention to provide an image discriminating apparatus capable of accurately discriminating whether a pixel at a peripheral position of a monochrome block is a color pixel or a monochrome pixel.

【0017】[0017]

【課題を解決するための手段】本発明は、入力される画
像情報を、画素毎に複数の色成分に分解して、画像信号
として導出する画像入力手段と、画像入力手段からの画
像信号の色成分に基づいて、画素毎にカラー領域・中間
領域または白黒領域のうちのいずれに属するかを判別す
る画素領域判別手段と、画素領域判別手段によって白黒
領域に属すると判別される画素を、予め定める基準に従
ってモノクロ領域と下地領域とのいずれに属するかを判
別する白黒領域判別手段と、画素領域判別手段および白
黒領域判別手段によって、カラー領域・白黒領域または
モノクロ領域に属すると判別される画素が現れる毎に、
それぞれカラー領域画素カウンタ・中間領域画素カウン
タまたはモノクロ領域画素カウンタに計数する画素計数
手段と、白黒領域判別手段によって、モノクロ領域に属
すると判別される画素が所定数以上連続して存在する場
合、その連続する画素の領域をモノクロブロックである
と認識するモノクロブロック認識手段と、モノクロブロ
ック認識手段によって認識されるモノクロブロックの周
縁の境界部に位置する画素の属性を判別する属性判別手
段と、属性判別手段の判別結果を基に、カラー領域画素
カウンタ・中間領域画素カウンタまたはモノクロ領域画
素カウンタの計数値を補正する画素計数補正手段と、画
素計数補正手段の計数値補正結果に基づいて、画像入力
手段に入力される画像の種類を判別する画像判別手段と
を含むことを特徴とする画像判別装置である。
According to the present invention, there is provided an image input means for decomposing input image information into a plurality of color components for each pixel and deriving the image signal as an image signal; Based on the color component, a pixel region determining unit that determines whether each pixel belongs to a color region, an intermediate region, or a black and white region, and a pixel that is determined to belong to a black and white region by the pixel region determining unit is determined in advance. A black-and-white area determining means for determining whether a pixel belongs to a monochrome area or a background area according to a predetermined criterion, and a pixel determined to belong to a color area / black-and-white area or a monochrome area by a pixel area determining means and a monochrome area determining means. Every time it appears,
The pixel counting means for counting to the color area pixel counter / intermediate area pixel counter or the monochrome area pixel counter, and the monochrome area determination means, when a predetermined number or more of pixels determined to belong to the monochrome area are continuously present, A monochrome block recognizing unit for recognizing a continuous pixel area as a monochrome block, an attribute determining unit for determining an attribute of a pixel located at a boundary of a peripheral edge of the monochrome block recognized by the monochrome block recognizing unit, and an attribute determining unit Means for correcting the count value of the color area pixel counter / intermediate area pixel counter or the monochrome area pixel counter based on the determination result of the means; and image input means based on the count value correction result of the pixel count correction means. Image determination means for determining the type of image input to the An image determination apparatus.

【0018】本発明に従えば、画像入力手段によって入
力され、複数の色数分に分解されて導出される画像信号
に基づき、画素領域判別手段は画素毎にその画素がカラ
ー領域に属する画素であるか、白黒領域に属する画素で
あるか、あるいはカラー領域と白黒領域との中間領域に
属する画素であるかを判別する。白黒領域に属すると判
別される画素については、白黒領域判別手段によって、
下地領域とモノクロ領域とに分離される。各領域に属す
る画素は、画素計数手段によって、カラー領域画素カウ
ンタ・中間領域画素カウンタまたはモノクロ領域画素カ
ウンタに計数される。モノクロブロック認識手段によっ
てモノクロブロックと認識される画素の周縁の境界部に
位置する画素の属性は、属性判別手段によって判別され
る。属性判別手段の判別結果に従って、画素計数補正手
段によって、カラー領域画素カウンタ・中間領域画素カ
ウンタまたはモノクロ領域画素カウンタの計数値に対す
る補正が行われる。画像判別手段は、補正された計数値
に基づいて画像の種類を判別するので、定量的な判別に
よって、精度よくカラー画像とモノクロ画像との判別を
行うことができる。
According to the present invention, based on an image signal input by the image input means and decomposed into a plurality of colors, the pixel area determining means determines, for each pixel, a pixel whose pixel belongs to the color area. It is determined whether the pixel belongs to a pixel that belongs to a black-and-white area, or a pixel that belongs to an intermediate area between the color area and the black-and-white area. For pixels determined to belong to the black and white area, the black and white area determination means
It is separated into a base area and a monochrome area. Pixels belonging to each area are counted by a pixel counting means into a color area pixel counter / intermediate area pixel counter or a monochrome area pixel counter. The attribute of the pixel located at the border of the periphery of the pixel recognized as a monochrome block by the monochrome block recognition means is determined by the attribute determination means. According to the determination result of the attribute determination unit, the pixel count correction unit corrects the count value of the color area pixel counter / intermediate area pixel counter or the monochrome area pixel counter. Since the image discriminating unit discriminates the type of the image based on the corrected count value, it is possible to accurately discriminate between a color image and a monochrome image by quantitative discrimination.

【0019】また本発明で前記画像判別手段は、前記画
像入力手段に入力される画像の1ライン毎の全画素に対
して、カラー領域・中間領域またはモノクロ領域に属す
ると判別される画素数を計数し、当該ラインがカラー領
域画素を含むカラーラインであるか否かを判別してカラ
ーラインの数を計数し、計数されたカラーライン数に基
づいて画像の種類を判別することを特徴とする。
In the present invention, the image determining means determines the number of pixels determined to belong to a color area / intermediate area or a monochrome area for all pixels of each line of the image input to the image input means. Counting, determining whether the line is a color line including a color area pixel, counting the number of color lines, and determining the type of image based on the counted number of color lines. .

【0020】本発明に従えば、画像領域の判別は、画像
を形成するライン毎に行うので、判別処理の際に必要と
なるバッファは1ライン分あればよく、回路規模を小さ
くすることができる。
According to the present invention, the determination of the image area is performed for each line forming the image, so that only one buffer is required for the determination processing, and the circuit scale can be reduced. .

【0021】また本発明で前記画像判別手段は、前記画
像入力手段に入力される画像の全ての画素に対して、カ
ラー領域・中間領域またはモノクロ領域に属すると判別
される画素数を計数し、計数された各領域の画素数に基
づいて画像の種類を判別することを特徴とする。
In the present invention, the image determining means counts the number of pixels determined to belong to a color area / intermediate area or a monochrome area for all pixels of the image input to the image input means, The type of image is determined based on the counted number of pixels in each area.

【0022】本発明に従えば、画像領域の判別は、入力
される画像の全ての画素に対して行うので、ライン毎に
判別を行う場合と比較すれば、処理工程を少なくするこ
とができる。
According to the present invention, since the determination of the image area is performed for all the pixels of the input image, the number of processing steps can be reduced as compared with the case where the determination is performed for each line.

【0023】また本発明で前記画素計数補正手段は、前
記属性判別手段によって、モノクロブロックの周縁の境
界部に位置する画素が色ずれ画素であると判別される場
合、当該画素をモノクロ領域に属する画素であるとして
前記計数値の補正を行うことを特徴とする。
In the present invention, when the pixel located at the boundary of the peripheral edge of the monochrome block is determined to be a color shift pixel by the attribute determining means, the pixel count correction means belongs to the monochrome area. It is characterized in that the count value is corrected as a pixel.

【0024】本発明に従えば、モノクロブロックの周縁
の境界部に位置する画素が色ずれ画素であると判別され
る場合に、モノクロ領域に属する画素として形成するの
で、色ずれが発生してもその影響を受けず、カラー領域
画素であるとして誤判別する可能性を少なくして、精度
よく画像の判別を行うことができる。
According to the present invention, if a pixel located at the boundary of the peripheral edge of the monochrome block is determined to be a color shift pixel, it is formed as a pixel belonging to the monochrome area. Without being affected by the influence, the possibility of erroneous determination as a color area pixel is reduced, and the image can be accurately determined.

【0025】また本発明で前記属性判別手段は、前記画
素の複数の色成分を三原色の濃度で(XYZ)とし、予
め定められる第1および第2の閾値をそれぞれa,bと
して、a>b>0とするとき、 │X−Y│>a かつ │Y−Z│<b あるいは │Y−Z│>a かつ │Z−X│<b あるいは │Z−X│>a かつ │X−Y│<b のいずれかの不等式が満たされることを条件として、当
該画素を色ずれ画素であると判別することを特徴とす
る。
In the present invention, the attribute discriminating means sets a plurality of color components of the pixel as (XYZ) in density of three primary colors, sets first and second predetermined thresholds as a and b, respectively, and a> b │XY│> a and │YZ│ <b or │YZ│> a and │ZX│ <b or │ZX│> a and │XY The pixel is determined to be a color misregistration pixel on the condition that one of the inequalities of | <b is satisfied.

【0026】本発明に従えば、画素の色成分間の差分値
の絶対値に基づいて、色ずれ画素の判別が行われる。画
素領域判別手段で差分値の絶対値を求めておくことによ
って、色ずれの判別でもその演算結果を利用することが
できる。色ずれは、カラー画素を構成する複数の色成分
のうち、いずれかがずれてしまうことであり、基本的に
は或る1つの色成分が他の色成分に対して位置ずれを生
じることである。したがって、色成分の差分値の絶対値
のうちで1つが大きく、他の組合わせが小さいという条
件を用いることによって、確実に色ずれ画素であるか否
かを判別することができる。
According to the present invention, a color shift pixel is determined based on the absolute value of the difference between the color components of the pixel. By calculating the absolute value of the difference value by the pixel area determination means, the calculation result can be used for determination of color misregistration. A color shift is a shift in one of a plurality of color components constituting a color pixel. Basically, a position shift of one color component with respect to another color component occurs. is there. Therefore, by using the condition that one of the absolute values of the difference values of the color components is large and the other combination is small, it is possible to reliably determine whether or not the pixel is a color shift pixel.

【0027】[0027]

【発明の実施の形態】図1は、本発明の実施の一形態と
しての画像判別装置20の概略的な構成を示す。本実施
形態では、画像入力手段21によって、Y、MおよびC
の3つの色成分を有するカラー画像データが読み込まれ
る場合を想定する。画像入力手段21は、たとえばCC
D(Charge Coupled Device)などを受光素子として、
カラーフィルタなどを用いるカラー撮像手段であり、カ
ラースキャナやカラービデオカメラなどによって実現さ
れる。画像入力手段21によって読み取られる画像は、
画素単位の画像データとして、三色成分が走査方向順に
与えられる。
FIG. 1 shows a schematic configuration of an image discriminating apparatus 20 according to an embodiment of the present invention. In the present embodiment, Y, M and C
It is assumed that color image data having the following three color components is read. The image input means 21 is, for example, CC
D (Charge Coupled Device) etc.
This is a color imaging unit using a color filter or the like, and is realized by a color scanner, a color video camera, or the like. The image read by the image input means 21 is
Three color components are given in the scanning direction as image data in pixel units.

【0028】CCDなどの画像入力手段21では、読み
取る画像の元となる原稿から、反射光像をRGBの3原
色アナログ信号として読み取る。画像入力手段21から
YMC信号を画像データとして導出する場合には、RG
B信号が反転される。以下の説明では画像データがYM
C信号である場合を想定して説明するけれども、RGB
信号であっても本発明を同様に適用することができるこ
とは勿論である。
The image input means 21 such as a CCD reads a reflected light image as an RGB three primary color analog signal from a document as a source of an image to be read. When the YMC signal is derived as image data from the image input means 21, RG
The B signal is inverted. In the following description, the image data is YM
It is assumed that the signal is a C signal.
Of course, the present invention can be applied to signals as well.

【0029】画像入力手段21から導出される画像デー
タは、画素領域判別手段22によって、画素毎に領域判
別が行われる。画素領域判別手段22には、差分値算出
手段23、差分最大値選択手段24および画素判別手段
25が含まれる。差分値算出手段23は、各画素毎の画
像データを構成する色成分としてのY,M,C間の相互
差分値であるY−M,M−C,C−Yをそれぞれ算出し
て絶対値を求める演算を行う。差分最大値選択手段24
は、差分値算出手段23によって算出される相互差値の
絶対値の3つの組合わせ{│Y−M│,│M−C│,│
C−Y│}のうちの最大の値をとる組合わせを{│Y−
M│,│M−C│,│C−Y│}maxとして選択す
る。
The image data derived from the image input means 21 is subjected to area discrimination by the pixel area discriminating means 22 for each pixel. The pixel area determination unit 22 includes a difference value calculation unit 23, a maximum difference value selection unit 24, and a pixel determination unit 25. The difference value calculation means 23 calculates the mutual difference values YM, MC, and CY between Y, M, and C as the color components constituting the image data for each pixel, and calculates the absolute values. Is calculated. Difference maximum value selection means 24
Are three combinations of the absolute values of the mutual difference values calculated by the difference value calculation means 23 {| Y−M |, | M−C |, |
The combination that takes the maximum value of C−Y |
M│, │MC│, │CY│} max.

【0030】画素判別手段25は、予め定められている
所定の閾値α,β(α<β,α>0,β>0)と{│Y
−M│,│M−C│,│C−Y│}maxの値とを比較
し、{│Y−M│,│M−C│,│C−Y│}max<
αのときには、当該画素を白黒領域に属する画素である
と判断し、{│Y−M│,│M−C│,│C−Y│}m
ax>βのときには当該画素をカラー領域に属する画素
であると判断する。また、α≦{│Y−M│,│M−C
│,│C−Y│}max≦βのときは、当該画素を白黒
領域ともカラー画素ともそのどちらともいえない中間領
域に属するものと判別する。このようにして、画素判別
手段25は、カラー領域に属する画素をカラー領域画素
26として判別し、中間領域に属する画素を中間領域画
素27として判別し、白黒領域に属する画素を白黒領域
画素28として判別する。ここで、前述の閾値α,β
は、たとえばα=20、β=30であるとする。
The pixel discriminating means 25 determines predetermined threshold values α, β (α <β, α> 0, β> 0) and {| Y
−M│, │MC│, │CY│} max, and {│YM│, │MC│, │CY│} max <
If α, the pixel is determined to be a pixel belonging to the black-and-white area, and || Y−M |, | M−C |, | C−Y |
When ax> β, the pixel is determined to be a pixel belonging to the color area. Also, α ≦ {| Y−M |, | MC
When |, | CY |} max ≦ β, it is determined that the pixel belongs to an intermediate area that cannot be said to be either a black-and-white area or a color pixel. In this way, the pixel discriminating means 25 discriminates pixels belonging to the color area as color area pixels 26, discriminates pixels belonging to the intermediate area as intermediate area pixels 27, and pixels belonging to the black and white area as black and white area pixels 28. Determine. Here, the aforementioned threshold values α, β
Is, for example, α = 20 and β = 30.

【0031】白黒領域画素28は、さらに白黒領域判別
手段29によってモノクロ領域画素30と下地領域画素
31とに分離される。白黒領域判別手段29は、YMC
信号の最小値を算出する最小値算出手段を有する。最小
値算出手段によって算出される最小値{YMC}min
と下地の閾値ωとを比較し、{YMC}min<ωとな
る領域を下地領域であるとする。下地領域は、白の画
素、あるいは薄い有彩色の画素が集って形成され、下地
となる領域である。閾値ωは、たとえばω=20または
ω=30というような値であるとする。
The monochrome area pixel 28 is further separated into a monochrome area pixel 30 and a base area pixel 31 by a monochrome area determination means 29. The black-and-white area determination means 29 is
It has minimum value calculating means for calculating the minimum value of the signal. Minimum value {YMC} min calculated by the minimum value calculation means
Is compared with the background threshold value ω, and an area where {YMC} min <ω is determined to be a background area. The base region is a region in which white pixels or pixels of light chromatic color are formed and are used as a base. The threshold value ω is a value such as ω = 20 or ω = 30.

【0032】図2は、各色の画像データを8ビットで表
すときの画素領域の設定状態の一例を示す。αおよびβ
の閾値に基づいて、モノクロ領域、中間領域およびカラ
ー領域が設定され、それぞれの領域の画素数が求められ
る。
FIG. 2 shows an example of the setting state of the pixel area when the image data of each color is represented by 8 bits. α and β
The monochrome region, the intermediate region, and the color region are set based on the threshold value of, and the number of pixels in each region is obtained.

【0033】図3に示すように、図1のモノクロ領域画
素30は、モノクロブロック認識手段32によって、連
続して発生している部分がモノクロブロックであると認
識される。モノクロ領域での連続画素数をxとし、予め
定められる正の整数Borderを閾値とする。xとB
orderを比較し、x≧Borderであれば、この
連続部分をモノクロブロックであると認識する。閾値B
orderは、たとえば10とする。
As shown in FIG. 3, the monochrome block 30 in FIG. 1 is recognized by the monochrome block recognizing means 32 as a monochrome block in a portion that occurs continuously. The number of continuous pixels in the monochrome area is x, and a predetermined positive integer Border is a threshold. x and B
The order is compared, and if x ≧ Border, this continuous part is recognized as a monochrome block. Threshold B
The order is, for example, 10.

【0034】図1の画素計数手段33は、カラー領域画
素26、中間領域画素27またはモノクロ領域画素30
のうちのいずれかが現れる毎に、カラー画素カウンタ3
4、中間画素カウンタ35またはモノクロ画素カウンタ
36でそれぞれ発生数分だけ計数を行う。モノクロブロ
ック認識手段32によって認識されるモノクロブロック
に属する画素は、モノクロブロックカウンタ37で計数
される。
The pixel counting means 33 shown in FIG. 1 calculates the color area pixel 26, the intermediate area pixel 27 or the monochrome area pixel 30.
Each time any of the above appears, the color pixel counter 3
4. The number of occurrences is counted by the intermediate pixel counter 35 or the monochrome pixel counter 36, respectively. Pixels belonging to a monochrome block recognized by the monochrome block recognition means 32 are counted by the monochrome block counter 37.

【0035】モノクロブロック認識手段32は、モノク
ロブロックの開始部分の画素とモノクロブロックの終了
部分の画素が属する領域の認識を行う。属性判別手段3
8は、モノクロブロック認識手段32によって認識され
るモノクロブロックの開始部分および終了部分の画素に
ついて、カラーノイズであるのか、あるいはカラーノイ
ズでない本来のカラー画素であるのかの属性判別を行
う。画素計数補正手段39は、属性判別手段38の判別
結果に基づいて、画素計数手段33の計数値の補正を行
う。画像判別手段40は、画素計数補正手段39による
計数値の補正後、カラー画素カウンタ34、中間画素カ
ウンタ35およびモノクロ画素カウンタ36の計数値に
基づいて、画像入力手段21に読み取られた画像データ
がカラー画像を表しているのか否かを判別し、判別結果
を表す信号を導出する。
The monochrome block recognizing means 32 recognizes an area to which the pixel at the start portion of the monochrome block and the pixel at the end portion of the monochrome block belong. Attribute determination means 3
Reference numeral 8 identifies the attribute of the pixel at the start and end of the monochrome block recognized by the monochrome block recognition means 32 as to whether the pixel is color noise or an original color pixel that is not color noise. The pixel count correction unit 39 corrects the count value of the pixel count unit 33 based on the determination result of the attribute determination unit 38. After correcting the count value by the pixel count correction unit 39, the image determination unit 40 converts the image data read by the image input unit 21 based on the count values of the color pixel counter 34, the intermediate pixel counter 35, and the monochrome pixel counter 36. It is determined whether or not it represents a color image, and a signal representing the determination result is derived.

【0036】画素領域判別手段22、モノクロブロック
認識手段32、画素計数手段33、属性判別手段38、
画素計数補正手段39および画像判別手段40は、コン
ピュータ装置のプログラム動作によって実現される。コ
ンピュータ装置として、特にデジタル信号プロセッサを
用いることもできる。
The pixel area determining means 22, the monochrome block recognizing means 32, the pixel counting means 33, the attribute determining means 38,
The pixel count correction means 39 and the image determination means 40 are realized by a program operation of a computer device. In particular, a digital signal processor can be used as the computer device.

【0037】図4は、図1に示す画像判別装置20の全
体的な処理の手順を示す。ここでは説明の簡単化のため
に、モノクロブロックの両端の部分における判別対象の
画素幅を1とし、両端で合計2画素を判別の対象とする
場合について説明する。
FIG. 4 shows an overall processing procedure of the image discriminating apparatus 20 shown in FIG. Here, for the sake of simplicity, a case will be described where the pixel width of the discrimination target at both ends of the monochrome block is 1, and a total of two pixels are determined at both ends.

【0038】手順の開始後、ステップS1では、カラー
画素カウンタ34、中間画素カウンタ35、モノクロ画
素カウンタ36およびモノクロブロックカウンタ37な
どについての初期設定を行う。ステップS2では処理の
途中で参照するカレントフラグをクリアしておく。ステ
ップS3では、1画素の画像データを入力する。ステッ
プS4では、入力された画素の属する領域を判別する。
ステップS5では画素についての属性判別処理を行う。
ステップS6では、全ての画素についての判別が終了し
ているか否かを判断する。終了していないときにはステ
ップS2に戻る。ステップS6で、全ての画素の判別が
終了していると判断されるときには、ステップS7で終
端判別処理を行う。ステップS8では、カラー画素カウ
ンタ34、中間画素カウンタ35、モノクロ画素カウン
タ36およびモノクロブロックカウンタ37の計数値に
基づく画像の判別を行い、全体としての手順を終了す
る。
After the start of the procedure, in step S1, initial settings are made for the color pixel counter 34, the intermediate pixel counter 35, the monochrome pixel counter 36, the monochrome block counter 37, and the like. In step S2, the current flag referred to during the processing is cleared. In step S3, image data of one pixel is input. In step S4, the area to which the input pixel belongs is determined.
In step S5, an attribute determination process for the pixel is performed.
In step S6, it is determined whether or not the determination for all pixels has been completed. If not, the process returns to step S2. If it is determined in step S6 that the determination of all pixels has been completed, a termination determination process is performed in step S7. In step S8, an image is determined based on the count values of the color pixel counter 34, the intermediate pixel counter 35, the monochrome pixel counter 36, and the monochrome block counter 37, and the overall procedure ends.

【0039】図5に示すように、本実施形態では、モノ
クロブロックの両端の画素の判別を行うために、次のよ
うな2種類のフラグを用いる。フロントフラグ:現在の
判別対象の画素とモノクロブロックを挟んで対面する位
置にある画素のフラグ。カレントフラグ:現在の判別対
象の画素に対するフラグ。
As shown in FIG. 5, in the present embodiment, the following two types of flags are used to determine the pixels at both ends of a monochrome block. Front flag: A flag of a pixel at a position facing the current pixel to be determined with a monochrome block interposed therebetween. Current flag: a flag for the current pixel to be determined.

【0040】図6は、図4のステップS1の初期設定を
サブルーチンとして行う場合の処理手順を示す。ステッ
プS11では、カラー画素カウンタ34の計数値CO−
CNTRを「0」にセットする。ステップS12では、
中間画素カウンタ35の計数値MI−CNTRを「0」
にセットする。ステップS13では、モノクロ画素カウ
ンタ36の計数値BL−CNTRを「0」にセットす
る。ステップS14では、現在の判別対象位置に対し、
モノクロブロックを挟んで対面する位置でのカラー画素
用のフラグとして、通常は「オフ」となるフロントカラ
ーフラグFC−FLAGを「オフ」にセットしておく。
ステップS15では、現在の判別対象位置に対し、モノ
クロブロックを挟んで対向する位置での中間画素用のフ
ラグとして、通常は「オフ」となるフロント中間フラグ
FM−FLAGを「オフ」にセットしておく。ステップ
S16では、現在の判別対象位置に対し、モノクロブロ
ックを挟んで対向する位置での下地画素用のフラグとし
て、通常は「オフ」となるフロント下地フラグFG−F
LAGを「オフ」にセットしておく。ステップS17で
は、読み取り順に連続してモノクロ領域に属すると判別
される画素が発生した場合に、その連続数を表すモノク
ロブロックカウンタ37の計数値MO−BLKを「0」
にセットする。
FIG. 6 shows a processing procedure when the initial setting of step S1 in FIG. 4 is performed as a subroutine. In step S11, the count value CO-
Set CNTR to "0". In step S12,
The count value MI-CNTR of the intermediate pixel counter 35 is set to “0”
Set to. In step S13, the count value BL-CNTR of the monochrome pixel counter 36 is set to "0". In step S14, with respect to the current determination target position,
A front color flag FC-FLAG, which is normally "off", is set to "off" as a flag for a color pixel at a position facing the monochrome block.
In step S15, a front intermediate flag FM-FLAG, which is normally "off", is set to "off" as a flag for intermediate pixels at a position facing the current determination target position across the monochrome block. deep. In step S16, a front ground flag FG-F which is normally "off" is set as a background pixel flag at a position opposed to the current determination target position across the monochrome block.
LAG is set to “off”. In step S17, when there is a pixel determined to belong to the monochrome area continuously in the reading order, the count value MO-BLK of the monochrome block counter 37 indicating the number of continuous pixels is set to “0”.
Set to.

【0041】図7は、図4のステップS2で行われるカ
レントフラグクリアをサブルーチンとして行う場合の処
理手順を示す。ステップS21では、現在の判別対象位
置でカラー画素用のフラグとして用いられ、通常は「オ
フ」であり、現在の判別対象画素がカラー領域に属する
と判別されるときに「オン」となるカレントカラーフラ
グCC−FLAGを、「オフ」にセットしておく。ステ
ップS22では、現在の判別対象位置での中間画素用の
フラグとして、通常は「オフ」であり、現在の判別対象
画素が中間領域に属すると判別されるときに「オン」と
なるカレント中間フラグCM−FLAGを「オフ」にセ
ットしておく。ステップS23では、現在の判別対象位
置での下地画素用のフラグであり、通常は「オフ」であ
り、現在の判別対象画素が下地領域に属すると判別され
るときに「オン」となるカレント下地フラグCG−FL
AGを「オフ」にセットしておく。
FIG. 7 shows a processing procedure when the current flag clear performed in step S2 of FIG. 4 is performed as a subroutine. In step S21, the current color that is used as a flag for a color pixel at the current determination target position and is normally “off” and becomes “on” when it is determined that the current determination target pixel belongs to the color area The flag CC-FLAG is set to “off”. In step S22, a current intermediate flag that is normally “off” as an intermediate pixel flag at the current determination target position and that is “on” when it is determined that the current determination target pixel belongs to the intermediate region. CM-FLAG is set to “off”. In step S23, a flag for a background pixel at the current determination target position, which is normally “off”, and becomes “on” when it is determined that the current determination target pixel belongs to the background region. Flag CG-FL
AG is set to “off”.

【0042】図8は、図4のステップS4の画素判別を
サブルーチンとして行う場合の処理手順を示す。ステッ
プS31では、色成分間の相互差分値の絶対値の最大値
が第1の閾値αよりも小さいか否かを判断する。相互差
分値の絶対値の最大値がαよりも小さいと判断されると
きには、ステップS32でYMCの最小値が下地領域と
判断するための閾値ωよりも小さいか否かを判断する。
閾値ωより小さいと判断されるときには、ステップS3
3でカレント下地フラグCG−FLAGを「オン」にセ
ットする。
FIG. 8 shows a processing procedure when the pixel determination in step S4 in FIG. 4 is performed as a subroutine. In step S31, it is determined whether or not the maximum value of the absolute value of the mutual difference between the color components is smaller than a first threshold value α. When it is determined that the maximum value of the absolute values of the mutual difference values is smaller than α, it is determined in step S32 whether or not the minimum value of YMC is smaller than a threshold value ω for determining the background area.
If it is determined that it is smaller than the threshold value ω, step S3
In step 3, the current background flag CG-FLAG is set to "ON".

【0043】ステップS32で、YMCの最小値が閾値
ωよりも小さくないと判断されるときには、ステップS
34でモノクロ画素カウンタの計数値BL−CNTRを
1だけ増加させ、ステップS35ではモノクロブロック
カウンタ37の計数値MO−BLKを1だけ増加させ
る。
If it is determined in step S32 that the minimum value of YMC is not smaller than the threshold value ω, the process proceeds to step S32.
In step S34, the count value BL-CNTR of the monochrome pixel counter is increased by one, and in step S35, the count value MO-BLK of the monochrome block counter 37 is increased by one.

【0044】ステップS31でYMCの相互差分値の絶
対値のうちの最大値が、閾値αよりも小さくないと判断
されるときには、ステップS36で、その絶対値の最大
値がβよりも大きいか否かを判断する。絶対値の最大値
がβよりも大きいときには、ステップS37で、カラー
画素カウンタ34の計数値CO−CNTRを1増加させ
る。ステップS38では、カレントカラーフラグCC−
FLAGを「オン」にセットする。ステップS36で絶
対値の最大値が閾値βよりも大きくないと判断されると
きには、ステップS39で中間画素カウンタ35の計数
値MI−CNTRを1増加させる。ステップS40で
は、カレント中間フラグCM−FLAGを「オン」にセ
ットする。ステップS33、ステップS35、ステップ
S38またはステップS40の手順が終了すると、サブ
ルーチンを終了して元のプログラムに戻る。
When it is determined in step S31 that the maximum value among the absolute values of the mutual difference values of YMC is not smaller than the threshold value α, it is determined in step S36 whether the maximum value of the absolute value is larger than β. Judge. When the maximum value of the absolute value is larger than β, the count value CO-CNTR of the color pixel counter 34 is increased by 1 in step S37. In step S38, the current color flag CC-
Set FLAG to “ON”. When it is determined in step S36 that the maximum value of the absolute value is not larger than the threshold value β, the count value MI-CNTR of the intermediate pixel counter 35 is increased by 1 in step S39. In step S40, the current intermediate flag CM-FLAG is set to "ON". When the procedure of step S33, step S35, step S38 or step S40 ends, the subroutine ends and the program returns to the original program.

【0045】図8の画素判別では、入力される画像デー
タとして、Y,M,Cの相互差分の絶対値が最大値とな
る組合わせである{│Y−M│,│M−C│,│C−Y
│}maxと2つの画素判別用閾値であるα,βとの値
の比較が行われ、当該画素がカラー領域、中間領域また
は白黒領域のいずれに属する画素であるかを判別してい
る。白黒領域に属するとされる画素に対しては、下地判
別用の閾値ωとの比較によって、白であるとみなせる下
地領域であるか黒であるとみなせるモノクロ領域である
か、いずれに属する画素であるかが判別される。画素が
カラー領域または中間領域に属していると判別される場
合は、対応するカラー画素カウンタ34または中間画素
カウンタ35をそれぞれ1だけ増加させ、カレントカラ
ーフラグCC−FLAGまたはカレント中間フラグCM
−FLAGをそれぞれ「オン」にする。画素がモノクロ
領域に属すると判別される場合は、モノクロ画素カウン
タ36を1増加させ、モノクロブロックカウンタ37も
1増加させる。画素が下地領域に属する場合には、カレ
ント下地フラグCG−FLAGを「オン」にする。
In the pixel discrimination shown in FIG. 8, as the input image data, a combination in which the absolute value of the mutual difference between Y, M, and C is maximized is {| Y−M |, | M−C |, │CY
The value of |} max is compared with the two pixel discrimination thresholds α and β to determine whether the pixel belongs to a color area, an intermediate area, or a monochrome area. Pixels belonging to the black-and-white region are compared with a threshold value ω for background determination to determine whether the pixel belongs to a background region that can be regarded as white or a monochrome region that can be regarded as black. It is determined whether there is. If it is determined that the pixel belongs to the color area or the intermediate area, the corresponding color pixel counter 34 or the intermediate pixel counter 35 is incremented by one, and the current color flag CC-FLAG or the current intermediate flag CM is increased.
-Turn FLAG "ON" respectively. If it is determined that the pixel belongs to the monochrome area, the monochrome pixel counter 36 is increased by one, and the monochrome block counter 37 is also increased by one. If the pixel belongs to the background area, the current background flag CG-FLAG is turned on.

【0046】図9は、図4のステップS5で行われる属
性判別処理をサブルーチンとして処理する手順を示す。
ステップS51では、カレントカラーフラグCC−FL
AG、カレント中間フラグCM−FLAG、カレント下
地フラグCG−FLAGのいずれかが「オン」であるか
否かを判断する。いずれかが「オン」であると判断され
るときには、ステップS52で、モノクロブロックカウ
ンタ37の計数値MO−BLKが予め設定されるモノク
ロブロック閾値BORDER以上であるか否かを判断す
る。条件が成立するときには、ステップS53でフラグ
チェックを行う。ステップS53のフラグチェックの
後、またはステップS52で条件が成立しないときは、
ステップS54でカレントカラーフラグCC−FLAG
の状態をフロントカラーフラグFC−FLAGにセット
する。ステップS55では、カレント下地フラグCG−
FLAGの状態をフロント下地フラグFG−FLAGに
セットする。ステップS57では、モノクロブロックカ
ウンタ37の計数値MO−BLKを「0」にセットす
る。ステップS57の終了後、またはステップS51で
条件が成立しないときには、属性判別処理を終了する。
FIG. 9 shows a procedure for processing the attribute discrimination process performed in step S5 of FIG. 4 as a subroutine.
In step S51, the current color flag CC-FL
It is determined whether any of the AG, the current intermediate flag CM-FLAG, and the current base flag CG-FLAG is “ON”. When it is determined that either of them is "ON", in step S52, it is determined whether or not the count value MO-BLK of the monochrome block counter 37 is equal to or greater than a preset monochrome block threshold value BORDER. When the condition is satisfied, a flag check is performed in step S53. After the flag check in step S53 or when the condition is not satisfied in step S52,
In step S54, the current color flag CC-FLAG
Is set in the front color flag FC-FLAG. In step S55, the current background flag CG-
The state of FLAG is set to the front base flag FG-FLAG. In step S57, the count value MO-BLK of the monochrome block counter 37 is set to "0". After the end of step S57, or when the condition is not satisfied in step S51, the attribute determination processing ends.

【0047】図9に示す属性判別処理では、カレントカ
ラーフラグCC−FLAG、カレント中間フラグCM−
FLAGまたはカレント下地フラグCG−FLAGのい
ずれかが「オン」になっている場合に、モノクロブロッ
クカウンタ37の計数値MO−BLKとモノクロブロッ
ク閾値BORDERとを比較し、モノクロブロックカウ
ンタの計数値MO−BLKがモノクロブロック閾値BO
RDER以上であれば、モノクロブロックの両端部分に
カラーノイズが発生している可能性があるとして、該両
端画素の属性判断が行われる。モノクロブロックカウン
タの計数値MO−BLKがモノクロブロック閾値BOR
DERを下まわっている場合には、属性判別は行われな
い。これは、一定以上の大きさをもたない連続モノクロ
領域は、孤立点や単なるノイズである可能性があるため
に、一定以上の大きさを持つモノクロブロックのみに属
性判別処理を適用するためである。
In the attribute determination process shown in FIG. 9, the current color flag CC-FLAG and the current intermediate flag CM-FLAG
When either the FLAG or the current background flag CG-FLAG is “ON”, the count value MO-BLK of the monochrome block counter 37 is compared with the monochrome block threshold value BORDER, and the count value MO− of the monochrome block counter is determined. BLK is monochrome block threshold BO
If it is equal to or greater than RDER, it is determined that color noise may have occurred at both ends of the monochrome block, and attribute determination of the pixels at both ends is performed. The count value MO-BLK of the monochrome block counter is the monochrome block threshold value BOR.
If the value is below DER, no attribute determination is performed. This is because a continuous monochrome area having no more than a certain size may be an isolated point or simply noise, so that the attribute discrimination processing is applied only to a monochrome block having a certain size or more. is there.

【0048】図10は、図9のステップS53でのフラ
グチェックをサブルーチンとして行う場合の処理手順を
示す。ステップS61では、フロントカラーフラグFC
−FLAGが「オン」であるか否かを判断する。「オ
ン」であるときには、ステップS62で色ずれ判別処理
を行う。ステップS61でフロントカラーフラグFC−
FLAGが「オン」でないと判断される場合には、ステ
ップS63で、フロント中間フラグFM−FLAGが
「オン」であるか否かを判断する。「オン」であるとき
には、ステップS62で色ずれ判別処理を行う。ステッ
プS63で、フロント中間フラグFLAGが「オン」で
ないと判断されれば、ステップS64に移る。ステップ
S62の色ずれ判別処理の終了後も、ステップS64に
移る。
FIG. 10 shows a processing procedure when the flag check in step S53 of FIG. 9 is performed as a subroutine. In step S61, the front color flag FC
Determine whether FLAG is "on"; If it is "ON", a color misregistration determination process is performed in step S62. In step S61, the front color flag FC-
If it is determined that the FLAG is not “ON”, it is determined in a step S63 whether or not the front intermediate flag FM-FLAG is “ON”. If it is "ON", a color misregistration determination process is performed in step S62. If it is determined in step S63 that the front intermediate flag FLAG is not “ON”, the process proceeds to step S64. After the end of the color misregistration determination processing in step S62, the process proceeds to step S64.

【0049】ステップS64では、カレントカラーフラ
グCC−FLAGが「オン」であるか否かを判断する。
「オン」であるときには、ステップS65で、色ずれ判
別処理を行う。なお、カレント下地フラグCG−FLA
Gおよびフロント下地フラグFG−FLAGが「オン」
の場合であっても、画像の下地部分にはカラーノイズが
便宜上存在しないので、無視する。ステップS64で、
カレントカラーフラグCC−FLAGが「オン」でない
と判断されるときには、ステップS66で、カレント中
間フラグCM−FLAGが「オン」であるか否かを判断
する。「オン」であるときには、ステップS65で、色
ずれ判別処理を行う。ステップS64の色ずれ判別処理
の終了後、またはステップS66でカレント中間フラグ
CM−FLAGが「オフ」であると判断されるとき、ま
たはステップS65の色ずれ判別処理が終了すると、全
体としての手順も終了する。
In step S64, it is determined whether the current color flag CC-FLAG is "ON".
If it is "ON", a color misregistration determination process is performed in step S65. Note that the current background flag CG-FLA
G and front ground flag FG-FLAG are "ON"
Even in the case of, color noise does not exist in the background portion of the image for convenience, and is ignored. In step S64,
When it is determined that the current color flag CC-FLAG is not “on”, in a step S66, it is determined whether or not the current intermediate flag CM-FLAG is “on”. If it is "ON", a color misregistration determination process is performed in step S65. After the end of the color misregistration determination processing in step S64, or when it is determined in step S66 that the current intermediate flag CM-FLAG is "OFF", or when the color misregistration determination processing in step S65 is completed, the entire procedure is also performed. finish.

【0050】色ずれ判別は、判別の対象となるカラー画
素または中間画素がカラーノイズであるか否かを判別す
るために行う。この判別では、次の第1式〜第3式に従
って、対象画素が色ずれか否かを判断する。 │Y−M│>a かつ │M−C│<b …(1) │M−C│>a かつ │C−Y│<b …(2) │C−Y│>a かつ │Y−M│<b …(3)
The color misregistration determination is performed to determine whether a color pixel or an intermediate pixel to be determined is color noise. In this determination, it is determined according to the following first to third equations whether or not the target pixel has a color shift. │YM│> a and │MC│ <b ... (1) │MC│> a and │CY│ <b ... (2) │CY│> a and │YM │ <b… (3)

【0051】ただし、第1式〜第3式において、a>b
>0であり、種々の画像を基に予め定められる閾値であ
る。第1式〜第3式は、以下に説明する考え方に基づ
く。すなわち、加法混色によってモノクロ画素が構成さ
れている場合、色ずれによるカラーノイズは、YMCの
いずれかの色の成分が他の色の成分に対して位置がず
れ、モノクロブロックの端部にはみ出た色のカラー画素
が生じることによるものである。したがって、カラーノ
イズ画素は、はみ出した色の値が他の色よりも大きくな
り、他の色成分の値はほぼ同等となる特徴を有する。な
お、モノクロブロックの終了部分において発生する画素
については、YMCのうちの下流側にはみ出るように画
像がずれた場合は、はみ出た色の値のみが大きいカラー
ノイズとなる。YMCの1色が上流側にずれた場合に
は、ずれた色のみが小さいカラーノイズとなる。すなわ
ち第1式〜第3式は、YMCの3色のうちの2色がほぼ
同等の値となり、他の1色が大きく離れた値となること
をもって、カラーノイズを検出していることになる。よ
って、第1式〜第3式のいずれかが満たされる場合、対
象画素は色ずれによるカラーノイズであると判断され、
モノクロ領域として計数される。
However, in the first to third equations, a> b
> 0, which is a predetermined threshold based on various images. The first to third expressions are based on the concept described below. That is, when a monochrome pixel is formed by additive color mixture, the color noise due to color misregistration is such that the component of one of the YMC colors is displaced from the other color components and protrudes to the edge of the monochrome block. This is due to the occurrence of color pixels. Therefore, the color noise pixel has a feature that the value of the protruding color is larger than that of the other colors, and the values of the other color components are substantially equal. Note that, for a pixel generated at the end of the monochrome block, if the image is shifted so as to protrude to the downstream side of the YMC, only the value of the protruding color becomes large color noise. When one color of YMC is shifted to the upstream side, only the shifted color becomes small color noise. That is, in the first to third expressions, color noise is detected when two of the three colors of YMC have substantially the same value and the other color has a value far apart. . Therefore, when any of the first to third expressions is satisfied, the target pixel is determined to be color noise due to color shift,
It is counted as a monochrome area.

【0052】図11は、色ずれ判断を行う図1の属性判
断手段38の内部構成を示す。属性判断手段38内に
は、カラーノイズ検出回路41,42,43が設けられ
る。カラーノイズ検出回路41,42,43には、差分
値算出手段23から、│Y−M│,│M−C│,│C−
Y│の3つの信号出力のうちで、2つの組合わせがそれ
ぞれ入力される。各カラーノイズ検出回路41,42,
43内には、2つの比較器41a,41b;42a,4
2b;43a,43bが設けられ、差分値算出手段23
からの信号を、閾値a,bとそれぞれ比較する。2つの
比較器41a,41b;42a,42b;43a,43
bの出力は、2つの入力を有するAND回路41c,4
2c,43cに入力される。3つのAND回路41c,
42c,43cからの出力は、3入力のOR回路44に
入力され、OR回路44から色ずれ判別信号が導出され
る。すなわち、カラーノイズ検出回路41では、比較器
41aは│Y−M│>aであるときに「オン」信号を出
力し、比較器41bは│M−C│<bであるときに「オ
ン」信号を出力する。AND回路41cは、比較器41
aおよび比較器41bが共に「オン」信号を出したと
き、すなわち│Y−M│>aかつ│Y−M│<bとなる
ときに「オン」信号を出力する。OR回路44から出力
される色ずれ判別信号は、カラーノイズ検出回路41〜
43のうちの少なくとも1つが「オン」である場合に有
効信号「1」として出力され、カラーノイズ検出回路4
1〜43の出力の全てが「オフ」である場合に非有効信
号「0」として出力される。
FIG. 11 shows the internal structure of the attribute judging means 38 of FIG. 1 for judging color misregistration. Color noise detection circuits 41, 42, and 43 are provided in the attribute determination means 38. The color noise detection circuits 41, 42, and 43 supply | YM |, | MC |, | C-
Of the three signal outputs Y |, two combinations are respectively input. Each of the color noise detection circuits 41, 42,
43, two comparators 41a, 41b;
2b; 43a and 43b are provided;
Are compared with threshold values a and b, respectively. Two comparators 41a, 41b; 42a, 42b; 43a, 43
The output of b is an AND circuit 41c, 4 having two inputs.
2c and 43c. Three AND circuits 41c,
The outputs from 42c and 43c are input to a three-input OR circuit 44, from which a color misregistration determination signal is derived. That is, in the color noise detection circuit 41, the comparator 41a outputs an “ON” signal when | Y−M |> a, and the comparator 41b outputs “ON” when | MC− <b. Output a signal. The AND circuit 41c includes a comparator 41
a and the comparator 41b output an "ON" signal when both output "ON" signals, that is, when | YM |> a and | YM | <b. The color misregistration determination signals output from the OR circuit 44 are output from the color noise detection circuits 41 to 41.
43 is output as a valid signal “1” when at least one of the signals 43 is “ON”, and the color noise detection circuit 4
When all of the outputs 1 to 43 are “off”, they are output as the invalid signal “0”.

【0053】図12は、図10のステップS62または
ステップS65で行う色ずれ判別処理をサブルーチンと
して行う場合の処理手順を示す。この色ずれ判別処理の
ステップS71では、図11の属性判別手段38からの
色ずれ判別信号が有効であるか否かを判断する。色ずれ
判断信号が有効である場合には、属性判別された対象画
素がカラーノイズであるとしても、実際にはモノクロ画
素と見なされるので、ステップS72で、モノクロ画素
カウンタ36の計数値BL−CNTRを1だけ増加させ
る。ステップS73では、フロントカラーフラグFC−
FLAGまたはカレントカラーフラグCC−FLAGが
「オン」であるか否かを判断する。いずれかが「オン」
であれば、ステップS74でカラー画素カウンタ34の
計数値CO−CNTRを1だけ減少させる。ステップS
73で、いずれのフラグも「オン」でないと判断される
ときには、ステップS75で、中間画素カウンタ35の
計数値MI−CNTRを1だけ減少させる。ステップS
71で色ずれ判別信号が有効でないと判断されるとき、
またはステップS74あるいはステップS75の手順が
終了すると、元のルーチンに戻る。
FIG. 12 shows a processing procedure when the color misregistration determination processing performed in step S62 or S65 in FIG. 10 is performed as a subroutine. In step S71 of the color misregistration determination processing, it is determined whether or not the color misregistration determination signal from the attribute determination unit 38 in FIG. 11 is valid. If the color misregistration determination signal is valid, even if the target pixel whose attribute has been determined is color noise, it is actually regarded as a monochrome pixel. Therefore, in step S72, the count value BL-CNTR of the monochrome pixel counter 36 is determined. Is increased by one. In step S73, the front color flag FC-
It is determined whether FLAG or the current color flag CC-FLAG is “ON”. Either is "on"
If so, in step S74, the count value CO-CNTR of the color pixel counter 34 is decreased by one. Step S
If it is determined in 73 that none of the flags is "ON", the count value MI-CNTR of the intermediate pixel counter 35 is decreased by 1 in step S75. Step S
When it is determined at 71 that the color misregistration determination signal is not valid,
Alternatively, when the procedure of step S74 or step S75 ends, the process returns to the original routine.

【0054】図13は、図4のステップS7の終端判別
処理をサブルーチンとして行う場合の処理手順を示す。
終端判別処理は、まだモノクロブロックとして残ったま
まの画素に対する属性判別を行う処理である。ステップ
S81では、モノクロブロックカウンタ37の計数値M
O−BLKがモノクロブロック閾値BORDER以上と
なっているか否かを判断する。条件が成立するときに
は、ステップS82で、図10に示すような手順でのフ
ラグチェックを行う。ステップS82が終了したとき、
またはステップS81で条件が成立しないときには、終
端判別処理を終了する。
FIG. 13 shows a processing procedure in the case where the termination determination processing in step S7 in FIG. 4 is performed as a subroutine.
The end determination process is a process of performing attribute determination on a pixel which still remains as a monochrome block. In step S81, the count value M of the monochrome block counter 37 is set.
It is determined whether or not O-BLK is equal to or greater than the monochrome block threshold BORDER. When the condition is satisfied, a flag check is performed in step S82 according to a procedure as shown in FIG. When step S82 ends,
Alternatively, when the condition is not satisfied in step S81, the termination determination processing ends.

【0055】図14は、図13に示す処理手順での終端
処理についての考え方を示す。いくつかの画素が連続す
るモノクロ領域が続いた後で、そのまま終端の画素もモ
ノクロ領域に属する画素として画像データについての処
理が終了する場合には、まだ連続モノクロ領域内に残っ
ている画素に対しては、属性判別を行うか否かの判定を
行っていないことになる。この部分に対する判定が、図
12に示す終端判別として行われる。この処理は、終了
地点でのモノクロブロックカウンタ37の計数値MO−
BLKとモノクロブロック閾値BORDERとを比較
し、属性判別を行うか否かを判定し、行う場合は各フロ
ントフラグの状態に基づいて属性判別処理を行う。この
場合は終端であるので、各カレントフラグの状態は無視
することができる。
FIG. 14 shows the concept of termination processing in the processing procedure shown in FIG. After the monochrome area in which some pixels continue, if the processing of the image data ends as the pixel belonging to the monochrome area as the pixel at the end as well, the pixels still remaining in the continuous monochrome area In other words, it is not determined whether or not to perform attribute determination. The determination for this part is performed as the termination determination shown in FIG. This process is performed by counting the count value MO- of the monochrome block counter 37 at the end point.
BLK is compared with a monochrome block threshold value BORDER to determine whether or not to perform attribute determination. If so, attribute determination processing is performed based on the state of each front flag. In this case, since it is the end, the state of each current flag can be ignored.

【0056】以上説明した判別の結果、最終的に得られ
るカラー画素カウンタ34、中間画素カウンタ35およ
びモノクロ画素カウンタ36の計数値に基づき、図1の
画像判別手段40が画像の判別を行う。
The image discriminating means 40 shown in FIG. 1 discriminates an image based on the count values of the color pixel counter 34, the intermediate pixel counter 35, and the monochrome pixel counter 36 which are finally obtained as a result of the above-described discrimination.

【0057】図15は、画像判別手段40の内部構成を
示す。画像判別手段40は、判定部45、カラーライン
カウンタ46および比較器47が含まれる。画像判別手
段40での画像判別は、判定部45に入力される各カウ
ンタからの計数値に基づいて行われる。判別処理はライ
ン毎に行われ、判定部45にはライン毎の計数値が入力
される。
FIG. 15 shows the internal structure of the image discriminating means 40. The image determination means 40 includes a determination unit 45, a color line counter 46, and a comparator 47. The image discrimination by the image discriminating means 40 is performed based on the count value from each counter input to the judgment unit 45. The determination process is performed for each line, and the determination unit 45 receives a count value for each line.

【0058】判定部45では、カラー画素カウンタ34
の計数値と所定の閾値とを比較し、計数値が閾値以上で
ある場合には、当該ラインをカラーラインと判別し、カ
ラーラインカウンタ46を1だけ増加させる。また、カ
ラー画素カウンタ34の計数値が閾値より小さいときに
は、モノクロ画素カウンタ36の計数値と所定の閾値と
を比較して、モノクロ画素カウンタ36の計数値が閾値
以上である場合には、当該ラインをモノクロラインと判
別する。どちらの条件も満たさないときには、中間画素
カウンタ35の計数値を考慮して、前述の判別結果を補
正する。たとえばカラー画素カウンタ34の計数値と重
み付けをした1/2や1/3等の中間画素カウンタ35
の計数値との合計値を、所定の閾値と比較して、合計値
が閾値を上回っている場合には、当該ラインをカラーラ
インと判別し、カラーラインカウンタを1増加させる。
合計値が閾値を上回らなければ、当該ラインをモノクロ
ラインと判別する。
In the judgment section 45, the color pixel counter 34
Is compared with a predetermined threshold value. If the count value is equal to or greater than the threshold value, the line is determined to be a color line, and the color line counter 46 is incremented by one. When the count value of the color pixel counter 34 is smaller than the threshold value, the count value of the monochrome pixel counter 36 is compared with a predetermined threshold value. Is determined as a monochrome line. When neither condition is satisfied, the above-described determination result is corrected in consideration of the count value of the intermediate pixel counter 35. For example, an intermediate pixel counter 35 such as 1/2 or 1/3 which is weighted with the count value of the color pixel counter 34
Is compared with a predetermined threshold value, and if the total value exceeds the threshold value, the line is determined as a color line, and the color line counter is incremented by one.
If the total value does not exceed the threshold, the line is determined to be a monochrome line.

【0059】判定部45に入力された画像に対して全て
のラインの判別が終了した後、カラーラインカウンタ4
6の計数値を、比較器47で所定の閾値THCLと比較
し、カラー画像かモノクロ画像かの判別信号を出力す
る。また前述のようなライン毎の判定を行わず、入力さ
れた画像の全ての画素数を基に判断する場合には、画像
判別手段40は判定部45のみで構成し、判定部45で
の結果を基に判別信号を出力すればよい。
After all lines have been determined for the image input to the determination unit 45, the color line counter 4
6 count value is compared in a comparator 47 with a predetermined threshold value TH CL, and outputs a color image or a monochrome image or a discrimination signal. In the case where the determination is not made for each line as described above and the determination is made based on the total number of pixels of the input image, the image determination means 40 is composed of only the determination unit 45 and the result of the determination unit 45 May be output based on the determination.

【0060】以上説明した本実施形態では、入力色成分
として、Y,M,Cの三成分を用いているけれども、実
際にはこれのみではなく、R,G,Bとの三成分を用い
ても同様である。また、本実施形態では、モノクロブロ
ックの両端における属性判別の対象画素幅をそれぞれ1
画素とし、両端で2画素としているけれども、実際には
これらのみに特定せず、カラーノイズが広範囲にわたっ
て発生していると予測される画像では、属性判別の対象
幅を2画素、両端で4画素とすることも可能である。本
実施形態のような画像判別によれば、画像判別を行う時
点で問題となるモノクロエッジ近傍に発生するカラーノ
イズを判別することができるので、より精度の高い画像
判別を行うことができる。また同時に、カラーノイズ除
去時に画像データを格納するバッファを用いる代わり
に、画素カウンタの増減によって判別することができる
ので、処理回路をコンパクト化することができる。また
画像データを何回も数多くアクセスするための時間を要
しないので、処理を迅速化することができる。
In this embodiment described above, three components of Y, M, and C are used as input color components. However, actually, not only these components but also three components of R, G, and B are used. The same is true for In the present embodiment, the target pixel widths for attribute determination at both ends of the monochrome block are each set to 1
Although pixels are used and pixels at both ends are used, two pixels at both ends are not actually specified. In an image in which color noise is predicted to occur over a wide range, the target width for attribute determination is 2 pixels, and four pixels are used at both ends. It is also possible to use According to the image discrimination as in the present embodiment, it is possible to discriminate color noise occurring near the monochrome edge, which is a problem at the time of performing the image discrimination, so that more accurate image discrimination can be performed. At the same time, instead of using a buffer for storing image data when removing color noise, the determination can be made by increasing or decreasing the pixel counter, so that the processing circuit can be made compact. In addition, since it does not require time to access many image data many times, the processing can be speeded up.

【0061】[0061]

【発明の効果】以上のように本発明によれば、モノクロ
ブロックの周縁部の境界部に位置する画素が、カラー領
域や中間領域に属するのか、あるいは色ずれ画素なのか
を定量的に判断するので、精度よくカラー画像とモノク
ロ画像との判別を行うことができる。
As described above, according to the present invention, it is quantitatively determined whether a pixel located at the boundary of the peripheral portion of a monochrome block belongs to a color area, an intermediate area, or a color shift pixel. Therefore, a color image and a monochrome image can be accurately determined.

【0062】また本発明によれば、画像の判別をライン
毎に行うので、判別の処理のために必要となるバッファ
などの容量を小さくし、回路規模を小さくすることがで
きる。
According to the present invention, since the image is determined for each line, the capacity of a buffer and the like required for the determination processing can be reduced, and the circuit scale can be reduced.

【0063】また本発明によれば、画像の領域を判別す
る処理を、読み取られる画像の全ての画素に対して行う
ので、ライン毎に判別を行う場合と比較して、処理工数
を少なくすることができる。
Further, according to the present invention, the process of determining the image area is performed for all the pixels of the read image, so that the number of processing steps can be reduced as compared with the case of performing the determination for each line. Can be.

【0064】カラー画素は、通常、複数の色成分である
RGBまたはCMYKの重ね合わせによって構成され
る。画像入力手段の入力精度や機械的な変動によって、
カラー画素を構成する色成分のいずれかに色ずれが発生
して、本来モノクロ領域の画素であるにも拘わらず、カ
ラー領域の画素として判別されてしまうことがある。カ
ラー領域画素あるいは中間領域画素と、所定数以上のモ
ノクロ領域画素が連続するモノクロブロックとが隣接す
る場合、モノクロブロックの周縁の境界部の画素は、カ
ラー領域画素である可能性と、本来モノクロ領域の画素
であっても色ずれによってカラー領域画素として誤判断
される可能性とがある。本発明によれば、このような画
素に対してその属性を判断し、色ずれ画素として判断さ
れる画素に対しては、モノクロ領域の画素として計数す
るので、精度よく画像の判断を行うことができる。
A color pixel is usually formed by superimposing a plurality of color components RGB or CMYK. Depending on the input accuracy of the image input means and mechanical fluctuations,
A color shift may occur in any of the color components constituting the color pixel, and the color pixel may be identified as a pixel in the color area even though the pixel is originally in the monochrome area. When a color area pixel or an intermediate area pixel and a monochrome block in which a predetermined number or more of monochrome area pixels are adjacent to each other, the pixel at the boundary of the peripheral edge of the monochrome block is likely to be a color area pixel, and Pixel may be erroneously determined as a color area pixel due to color misregistration. According to the present invention, the attribute of such a pixel is determined, and the pixel determined as a color misregistration pixel is counted as a pixel in a monochrome area, so that an image can be accurately determined. it can.

【0065】また本発明によれば、画素の色成分の差分
値の絶対値が、一組だけ第1の閾値aよりも大きく、他
の差分値の絶対値は第2の閾値bよりも小さい条件が満
たされる場合、当該画素を色ずれ画素であると判別す
る。この場合、この画素は1つの色成分だけがずれた画
素である可能性が高くなり、これによって、色ずれ画素
であるか否かの判断を確実に行うことができる。
Further, according to the present invention, the absolute value of the difference value of the color component of the pixel is one set larger than the first threshold value a and the absolute value of the other difference value is smaller than the second threshold value b. If the condition is satisfied, the pixel is determined to be a color shift pixel. In this case, there is a high possibility that this pixel is a pixel in which only one color component is displaced, thereby making it possible to reliably determine whether or not this pixel is a color-displaced pixel.

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

【図1】本発明の実施の一形態の画像判別装置20の概
略的な構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image discriminating apparatus 20 according to an embodiment of the present invention.

【図2】読み取られた画像をカラー領域・中間領域・モ
ノクロ領域に分けて画素数を計数した例を示すグラフで
ある。
FIG. 2 is a graph showing an example in which a read image is divided into a color area, an intermediate area, and a monochrome area and the number of pixels is counted.

【図3】本発明でのモノクロブロックについての考え方
を示す図である。
FIG. 3 is a diagram illustrating a concept of a monochrome block according to the present invention.

【図4】図1の実施形態での画像判別の全体的な処理手
順を示すフローチャートである。
FIG. 4 is a flowchart illustrating an overall processing procedure of image discrimination in the embodiment of FIG. 1;

【図5】モノクロブロックの両端のフラグを示す図であ
る。
FIG. 5 is a diagram showing flags at both ends of a monochrome block.

【図6】図4に示す初期設定の処理手順を示すフローチ
ャートである。
FIG. 6 is a flowchart showing a processing procedure of an initial setting shown in FIG. 4;

【図7】図4に示すカレントフラグクリアの処理手順を
示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure of a current flag clear shown in FIG. 4;

【図8】図4に示す画素判別処理の手順を示すフローチ
ャートである。
FIG. 8 is a flowchart illustrating a procedure of a pixel determination process illustrated in FIG. 4;

【図9】図4の属性判別処理の手順を示すフローチャー
トである。
FIG. 9 is a flowchart illustrating a procedure of an attribute determination process in FIG. 4;

【図10】図9に示すフラグチェックの手順を示すフロ
ーチャートである。
FIG. 10 is a flowchart showing a procedure of a flag check shown in FIG. 9;

【図11】図1の属性判別手段38の構成を示すブロッ
ク図である。
11 is a block diagram showing a configuration of an attribute discriminating means 38 of FIG.

【図12】図10に示す色ずれ判別処理の手順を示すフ
ローチャートである。
FIG. 12 is a flowchart illustrating a procedure of a color misregistration determination process illustrated in FIG. 10;

【図13】図4に示す終端判別処理の手順を示すフロー
チャートである。
FIG. 13 is a flowchart illustrating a procedure of a termination determination process illustrated in FIG. 4;

【図14】図13の終端判別処理の考え方を示す図であ
る。
FIG. 14 is a diagram illustrating the concept of the termination determination processing in FIG.

【図15】図1に示す画像判別手段40の構成を示すブ
ロック図である。
FIG. 15 is a block diagram showing a configuration of an image determining unit 40 shown in FIG.

【図16】従来技術の画像判別装置の構成を示すブロッ
ク図である。
FIG. 16 is a block diagram showing a configuration of a conventional image discriminating apparatus.

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

20 画像判別装置 21 画像入力手段 22 画素領域判別手段 23 差分値算出手段 24 差分最大値選択手段 25 画素判別手段 26 カラー領域画素 27 中間領域画素 30 モノクロ領域画素 31 下地領域画素 32 モノクロブロック認識手段 33 画素計数手段 34 カラー画素カウンタ 35 中間画素カウンタ 36 モノクロ画素カウンタ 37 モノクロブロックカウンタ 38 属性判別手段 39 画素計数補正手段 40 画像判別手段 41,42,43 カラーノイズ検出回路 44 OR回路 45 判定部 46 カラーラインカウンタ 47 比較器 Reference Signs List 20 image discriminating device 21 image input means 22 pixel area discriminating means 23 difference value calculating means 24 maximum difference value selecting means 25 pixel discriminating means 26 color area pixel 27 intermediate area pixel 30 monochrome area pixel 31 background area pixel 32 monochrome block recognizing means 33 Pixel counting means 34 Color pixel counter 35 Intermediate pixel counter 36 Monochrome pixel counter 37 Monochrome block counter 38 Attribute discrimination means 39 Pixel count correction means 40 Image discrimination means 41, 42, 43 Color noise detection circuit 44 OR circuit 45 Judgment unit 46 Color line Counter 47 Comparator

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 BA28 CA01 CA02 CA06 CA08 CA12 CA16 CB01 CB02 CB06 CB08 CB12 CB16 CC03 CE20 DC22 5C077 LL20 MM03 MP01 MP08 PP27 PP33 PP38 PP43 PP47 PP61 PP65 PP68 PQ08 PQ17 PQ24 TT06 5C079 HB03 JA23 LA01 LA10 LA31 MA01 NA29 PA01 5L096 AA02 AA03 AA06 BA07 EA35 GA19 GA28 GA36  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) LA10 LA31 MA01 NA29 PA01 5L096 AA02 AA03 AA06 BA07 EA35 GA19 GA28 GA36

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 入力される画像情報を、画素毎に複数の
色成分に分解して、画像信号として導出する画像入力手
段と、 画像入力手段からの画像信号の色成分に基づいて、画素
毎にカラー領域・中間領域または白黒領域のうちのいず
れに属するかを判別する画素領域判別手段と、画素領域
判別手段によって白黒領域に属すると判別される画素
を、予め定める基準に従ってモノクロ領域と下地領域と
のいずれに属するかを判別する白黒領域判別手段と、 画素領域判別手段および白黒領域判別手段によって、カ
ラー領域・白黒領域またはモノクロ領域に属すると判別
される画素が現れる毎に、それぞれカラー領域画素カウ
ンタ・中間領域画素カウンタまたはモノクロ領域画素カ
ウンタに計数する画素計数手段と、 白黒領域判別手段によって、モノクロ領域に属すると判
別される画素が所定数以上連続して存在する場合、その
連続する画素の領域をモノクロブロックであると認識す
るモノクロブロック認識手段と、 モノクロブロック認識手段によって認識されるモノクロ
ブロックの周縁の境界部に位置する画素の属性を判別す
る属性判別手段と、 属性判別手段の判別結果を基に、カラー領域画素カウン
タ・中間領域画素カウンタまたはモノクロ領域画素カウ
ンタの計数値を補正する画素計数補正手段と、画素計数
補正手段の計数値補正結果に基づいて、画像入力手段に
入力される画像の種類を判別する画像判別手段とを含む
ことを特徴とする画像判別装置。
An image input means for decomposing input image information into a plurality of color components for each pixel and deriving an image signal, and for each pixel based on a color component of an image signal from the image input means. A pixel area determining means for determining whether the pixel area belongs to a color area / intermediate area or a black-and-white area; and a pixel determined to belong to the black-and-white area by the pixel area determining means. A black-and-white area discriminating means for discriminating which pixel belongs to a color area, a pixel area discriminating means and a black-and-white area discriminating means. The pixel counting means for counting to the counter / intermediate area pixel counter or the monochrome area pixel counter and the monochrome area determining means (B) when a predetermined number or more of pixels determined to belong to the area exist continuously, a monochrome block recognizing means for recognizing the area of the continuous pixels as a monochrome block; and a monochrome block recognized by the monochrome block recognizing means. Attribute determining means for determining the attribute of the pixel located at the boundary of the periphery of the pixel, and a pixel for correcting the count value of the color area pixel counter / intermediate area pixel counter or the monochrome area pixel counter based on the determination result of the attribute determining means An image discriminating apparatus comprising: a count correcting unit; and an image discriminating unit that discriminates a type of an image input to the image input unit based on a count value correction result of the pixel count correcting unit.
【請求項2】 前記画像判別手段は、前記画像入力手段
に入力される画像の1ライン毎の全画素に対して、カラ
ー領域・中間領域またはモノクロ領域に属すると判別さ
れる画素数を計数し、当該ラインがカラー領域画素を含
むカラーラインであるか否かを判別してカラーラインの
数を計数し、計数されたカラーライン数に基づいて画像
の種類を判別することを特徴とする請求項1に記載の画
像判別装置。
2. The image determining means counts the number of pixels determined to belong to a color area / intermediate area or a monochrome area for all pixels of each line of an image input to the image input means. Determining whether or not the line is a color line including color area pixels, counting the number of color lines, and determining the type of image based on the counted number of color lines. 2. The image discriminating apparatus according to 1.
【請求項3】 前記画像判別手段は、前記画像入力手段
に入力される画像の全ての画素に対して、カラー領域・
中間領域またはモノクロ領域に属すると判別される画素
数を計数し、計数された各領域の画素数に基づいて画像
の種類を判別することを特徴とする請求項1に記載の画
像判別装置。
3. The image determination means according to claim 1, wherein all pixels of the image input to the image input means are provided with a color area and a color area.
The image discriminating apparatus according to claim 1, wherein the number of pixels determined to belong to the intermediate area or the monochrome area is counted, and the type of the image is determined based on the counted number of pixels of each area.
【請求項4】 前記画素計数補正手段は、前記属性判別
手段によって、モノクロブロックの周縁の境界部に位置
する画素が色ずれ画素であると判別される場合、当該画
素をモノクロ領域に属する画素であるとして前記計数値
の補正を行うことを特徴とする請求項1〜3のいずれか
に記載の画像判別装置。
4. The pixel count correction unit, when the attribute determination unit determines that a pixel located at a boundary of a peripheral edge of a monochrome block is a color shift pixel, sets the pixel as a pixel belonging to a monochrome region. The image discriminating apparatus according to any one of claims 1 to 3, wherein the count value is corrected when there is an error.
【請求項5】 前記属性判別手段は、前記画素の複数の
色成分を三原色の濃度で(XYZ)とし、予め定められ
る第1および第2の閾値をそれぞれa,bとして、a>
b>0とするとき、 │X−Y│>a かつ │Y−Z│<b あるいは │Y−Z│>a かつ │Z−X│<b あるいは │Z−X│>a かつ │X−Y│<b のいずれかの不等式が満たされることを条件として、当
該画素を色ずれ画素であると判別することを特徴とする
請求項1〜4のいずれかに記載の画像判別装置。
5. The attribute discriminating means sets a plurality of color components of the pixel to three primary color densities (XYZ), and sets first and second predetermined thresholds as a and b, respectively, where a> b.
When b> 0, │XY│> a and │YZ│ <b or │YZ│> a and │ZX│ <b or │ZX│> a and │X- The image discriminating apparatus according to any one of claims 1 to 4, wherein the pixel is judged to be a color misregistration pixel on the condition that any inequality Y | <b is satisfied.
JP34882599A 1999-12-08 1999-12-08 Image discriminating device Pending JP2001169101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34882599A JP2001169101A (en) 1999-12-08 1999-12-08 Image discriminating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34882599A JP2001169101A (en) 1999-12-08 1999-12-08 Image discriminating device

Publications (1)

Publication Number Publication Date
JP2001169101A true JP2001169101A (en) 2001-06-22

Family

ID=18399637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34882599A Pending JP2001169101A (en) 1999-12-08 1999-12-08 Image discriminating device

Country Status (1)

Country Link
JP (1) JP2001169101A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7339703B2 (en) 2002-06-28 2008-03-04 Canon Kabushiki Kaisha Image processing apparatus and method thereof
JP2012191407A (en) * 2011-03-10 2012-10-04 Riso Kagaku Corp Printer and image data discrimination method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7339703B2 (en) 2002-06-28 2008-03-04 Canon Kabushiki Kaisha Image processing apparatus and method thereof
JP2012191407A (en) * 2011-03-10 2012-10-04 Riso Kagaku Corp Printer and image data discrimination method

Similar Documents

Publication Publication Date Title
JP3436828B2 (en) Image processing device
US5331442A (en) Identification of graphic and character areas in color image processor
US5296939A (en) Image area discriminating system for an image processing apparatus
JP3784649B2 (en) Image processing apparatus, image forming apparatus including the same, and image processing method
US6473202B1 (en) Image processing apparatus
US20080137159A1 (en) Image forming apparatus and image quality improving method thereof
JP3560776B2 (en) Color type discriminator
US6240203B1 (en) Image discriminating apparatus
US7826098B2 (en) Image processing apparatus
JP2002165101A (en) Color image forming equipment
JP3847565B2 (en) Image processing apparatus, image forming apparatus including the same, and image processing method
JPH0654180A (en) Method and device for image area separation
JP2001169101A (en) Image discriminating device
JP3224172B2 (en) Color image processing equipment
JP3153221B2 (en) Color image processing equipment
JP3255085B2 (en) Image area determination method and apparatus, image processing apparatus
JPH07298074A (en) Image processing device
JP3064896B2 (en) Image processing device
US7262884B2 (en) Image processing apparatus and image processing method
JP3665461B2 (en) Image discrimination device
JP3894409B2 (en) Image processing apparatus and image processing method
JP3261247B2 (en) Image processing system
JP2002125121A (en) Image processing method, image processing apparatus, and image forming apparatus including the same
JP3471915B2 (en) Image processing apparatus and method
JP2000151997A (en) Document type determination device and image processing device