[go: up one dir, main page]

JPH0490676A - Color picture processor - Google Patents

Color picture processor

Info

Publication number
JPH0490676A
JPH0490676A JP2206610A JP20661090A JPH0490676A JP H0490676 A JPH0490676 A JP H0490676A JP 2206610 A JP2206610 A JP 2206610A JP 20661090 A JP20661090 A JP 20661090A JP H0490676 A JPH0490676 A JP H0490676A
Authority
JP
Japan
Prior art keywords
pixel
color
document
black
pixels
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
JP2206610A
Other languages
Japanese (ja)
Other versions
JP3039675B2 (en
Inventor
Jiyunichi Shishizuka
順一 宍塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2206610A priority Critical patent/JP3039675B2/en
Priority to EP91302326A priority patent/EP0448330B1/en
Priority to DE69121439T priority patent/DE69121439T2/en
Publication of JPH0490676A publication Critical patent/JPH0490676A/en
Priority to US08/292,049 priority patent/US5786906A/en
Application granted granted Critical
Publication of JP3039675B2 publication Critical patent/JP3039675B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To correctly decide the colored/colorless state of an input color signal by deciding the colored/colorless state of the input color signal and controlling a deciding reference corresponding to the number of picture elements having intermediate chroma included in the input color signal. CONSTITUTION:An automatic color/monochromatic original discriminating device is composed of a scanner 101, YIQ conversion part 102, picture element discrimination part 103, original discrimination part 104, picture processing part 106, display 107, facsimile transmission part 108, printer 109, intermediate chroma picture element counter part 110 and CPU 111. In this case, the colored/ colorless state of the input color signal is decided and corresponding to the number of picture elements at the intermediate chroma included in the input color signal, the deciding reference is controlled. Thus, the colored/colorless state of the input color signal can be correctly decided.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は例えばカラー複写機、カラースキャナ、カラー
ファクシミリなどのカラー画像処理装置、特に、カラー
白黒判別を行う機能を有するカラー画像処理装置に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a color image processing apparatus such as a color copying machine, a color scanner, a color facsimile, and more particularly to a color image processing apparatus having a function of discriminating color from black and white. It is.

〔従来の技術〕[Conventional technology]

従来のカラー原稿を読み取るシステムでは、入力画像信
号の3原色(RGB、XYZなど)の3成分の比を用い
て有彩/無彩を判定していた。例えば、3原色の入力レ
ベルが同じような値であれば無彩色、レベルにバラツキ
があれば有彩色であると判定していた。この1画素毎の
判定を原稿の全画素について繰り返して、有彩色の画素
が存在すれば、原稿はカラー、また逆に、存在しなけれ
ば原稿は白黒とする技術が知られている。
In conventional systems for reading color originals, chromatic/achromatic is determined using the ratio of three components of the three primary colors (RGB, XYZ, etc.) of an input image signal. For example, if the input levels of the three primary colors are similar, it is determined that the color is achromatic, and if the levels vary, it is determined that the color is chromatic. A technique is known in which this pixel-by-pixel determination is repeated for all pixels of the document, and if a chromatic pixel exists, the document is colored, and conversely, if there is no pixel, the document is determined to be black and white.

〔発明が解決しようとしている課題〕[Problem that the invention is trying to solve]

しかしながら、上記従来技術では、画像入力用のカラー
センサの読み取り精度がよくない場合、入力画像の黒文
字の周辺部の画素を有彩色と誤判定することが多かった
。そのために、白黒原稿にもかかわらず、カラー原稿と
誤判別してしまう問題があった。また、原稿の下地に薄
い色がついている場合に誤判定をする場合もあった。
However, in the above-mentioned conventional technology, when the reading accuracy of the color sensor for image input is poor, pixels around black characters in the input image are often incorrectly determined to be chromatic. For this reason, there is a problem in that even though the original is black and white, it is mistakenly determined to be a color original. In addition, there were cases where incorrect judgments were made when the background of the document had a light color.

また次のような問題点もある。例えば第11図の斜線部
分に彩度の分布がある色の下地で、黒文字が印刷されて
いる原稿を考えると、これは白層原稿と判断してもらい
たい。さらに、第11図の斜線部分に彩度分布がある彩
度の低いカラー原稿があった場合、この原稿はカラー原
稿と判別してもらいたい。このように彩度の低い原稿に
対しては原稿の判別が非常に困難である。白黒の原稿を
、カラー原稿として誤判別すると次のような問題が起こ
る。
There are also the following problems. For example, if we consider a document in which black characters are printed on a color background with a saturation distribution in the shaded area in FIG. 11, we would like to conclude that this is a white layer document. Furthermore, if there is a color document with low saturation that has a saturation distribution in the shaded area in FIG. 11, this document should be determined to be a color document. It is extremely difficult to distinguish between documents with such low saturation. If a black and white original is misidentified as a color original, the following problems will occur.

カラー複写機の場合には、カラーのインク(CMY)を
重ね合わせて白黒原稿を複写すると、色ずれや、インク
の分光特性の違いにより、文字や線や網点の締りが悪く
見づらくなる。カラーファクシミリの場合には、上記の
印刷品位が悪いという欠点のほかに、白黒原稿であるに
も関わらず、3原色を送信すると伝送時間がかかり、通
信コストが高くなるという欠点もある。
In the case of a color copying machine, when a black and white document is copied by overlapping color inks (CMY), characters, lines, and halftone dots become hard to see due to color shift and differences in the spectral characteristics of the inks. In the case of color facsimile, in addition to the above-mentioned drawback of poor print quality, there is also the drawback that, even though the original is black and white, sending three primary colors takes time to transmit and increases communication costs.

そこで、本発明は、上記従来技術の欠点を除去し、正確
に入力カラー信号の有彩/無彩を判定できるカラー画像
処理装置を提供することを目的とする。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a color image processing device that eliminates the drawbacks of the prior art described above and can accurately determine whether an input color signal is chromatic or achromatic.

〔課題を解決するための手段及び作用〕上記課題を解決
するため、本発明の画像処理装置は、入力カラー信号の
有彩/無彩を判定する手段と、前記入力カラー信号に含
まれる中間彩度の画素数に応じて、前記判定手段の判定
基準を制御する制御手段とを有することを特徴とする。
[Means and operations for solving the problems] In order to solve the above problems, the image processing device of the present invention includes means for determining whether an input color signal is chromatic or achromatic, and an intermediate color included in the input color signal. and a control means for controlling the determination criteria of the determination means in accordance with the number of pixels at a given time.

〔実施例〕〔Example〕

(本発明の原理) 原稿をカラースキャナから読み取り、そのデータをNT
SCのRGBに変換し、さらに明度データYと色度デー
タ■とQに変換する。そしてIQをグラフにプロットし
たものが第6図と、第7図である・。
(Principle of the present invention) A document is read from a color scanner and the data is transferred to the NT.
It is converted into SC RGB, and further converted into brightness data Y and chromaticity data ■ and Q. Figures 6 and 7 are graphs of IQ.

第6図は白黒原稿、第7図はカラー原稿を読み込んだ場
合の分布を示すものである。白黒原稿を読み込んだとき
は、原点付近に分布し、カラー原稿では、原点から離れ
たところに分布するのがわかる。よって、原点(■=0
、Q−0)からの距離を計算して、距離が離れた画素が
多ければカラー原稿、少なければ白黒原稿とする。この
ような考え方に基づいて原稿の判別を行うことができる
FIG. 6 shows the distribution when a monochrome original is read, and FIG. 7 shows the distribution when a color original is read. It can be seen that when a black and white document is read, the distribution is near the origin, and when a color document is read, the distribution is far from the origin. Therefore, the origin (■=0
. Documents can be identified based on this concept.

(スキャナの読み取り精度) 白黒の文字をスキャナから読み取ると、スキャナの精度
がよくないと入力画像としては、第8図のように色ずれ
を起こした画像になってしまう。これでは、色ずれの画
素を色画素と判別してしまい、その結果白黒原稿にも関
わらずカラー原稿と誤判別する可能性がある。そこで、
入力画素の周囲に黒画素(白黒画素であって、かつ暗画
素)が存在すれば、入力画素は色ずれの画素であり、実
際は白黒画素であると判断する。そうすることによりス
キャナの読み取りの誤差を少なくすることができる。
(Scanner Reading Accuracy) When reading black and white characters with a scanner, if the scanner accuracy is not good, the input image will be an image with color shift as shown in FIG. 8. In this case, a pixel with color shift is determined to be a color pixel, and as a result, there is a possibility that the document is erroneously determined to be a color document even though it is a black and white document. Therefore,
If a black pixel (a black and white pixel and a dark pixel) exists around the input pixel, it is determined that the input pixel is a pixel with color shift and is actually a black and white pixel. By doing so, errors in reading by the scanner can be reduced.

(彩度の低い中間彩度の画素を有する原稿に対して)第
11図の斜線部分に含まれる画素は、しきい値αよりも
彩度が低いので白黒画素と判断される。そこで彩度の低
い色の下地(例えば再生紙)の黒文字原稿を考えると、
下地部分の彩度がαよりも小さい場合には、その原稿は
白黒原稿、逆に大きければカラー原稿となる。次に彩度
の低い写真原稿に対しては、斜線部分に分布する画素が
比較的多くなる。この場合にはしきい値αよりも小さい
ので白黒原稿と判別されてしまう。そこで下地に彩度の
低い色がついている原稿の場合、斜線部に含まれる画素
の数が、写真原稿の場合に比べて非常に多いということ
に注目して、原稿中に中彩度の画素が所定値βより多け
れば、白黒原稿と判定し易いように、逆に多くなければ
カラー原稿と判定するように制御する。
The pixels included in the diagonally shaded area in FIG. 11 (for originals having pixels with low and intermediate chroma saturation) are determined to be black and white pixels because their chroma is lower than the threshold value α. Therefore, if we consider a black text manuscript with a background of low saturation color (for example, recycled paper),
If the saturation of the background portion is smaller than α, the document is a black and white document, and if it is larger, the document is a color document. Next, for photographic originals with low saturation, the number of pixels distributed in the shaded area is relatively large. In this case, since it is smaller than the threshold value α, it is determined that the document is black and white. Therefore, we focused on the fact that in the case of originals with low chroma colors on the background, the number of pixels included in the shaded area is much larger than in the case of photographic originals. If the number is greater than a predetermined value β, the document is easily determined to be a black and white document, and if it is not, the document is determined to be a color document.

〔第1の実施例〕 第9図に処理のフローチャートを示す。処理は太き(、
画素判別処理(Sl−S4)と画素補正処理(85〜5
ll)、そして原稿判別処理(812〜515)に分け
られる。画素判別処理は注目画素がカラーか白黒かを判
別する処理で、原稿判別処理は原稿全体がカラー原稿か
、白黒原稿かを判別する処理である。以下アルゴリズム
の詳細をフローに従って説明する。
[First Example] FIG. 9 shows a flowchart of the process. The processing is thick (,
Pixel discrimination processing (Sl-S4) and pixel correction processing (85-5
ll), and document discrimination processing (812 to 515). The pixel discrimination process is a process for discriminating whether the pixel of interest is color or monochrome, and the document discrimination process is a process for discriminating whether the entire document is a color document or a monochrome document. The details of the algorithm will be explained below according to the flow.

く画素判定処理〉 はじめにカラー画素判定処理について説明する。Pixel judgment processing> First, color pixel determination processing will be explained.

カラー画素判定は81〜S4で処理される。入力画素が
カラー画素であるか、白黒画素であるかを画素毎に判定
するものである。
Color pixel determination is processed in steps 81 to S4. It is determined for each pixel whether the input pixel is a color pixel or a monochrome pixel.

■色空間変換処理 Slでは、色空間変換処理を行う。すなわち、NTSC
−RGBに正規化されたデータを式(1)に従って、輝
度信号Yと色度信号I、Qに変換する。
(2) Color space conversion processing In Sl, color space conversion processing is performed. That is, NTSC
- Convert the RGB normalized data into a luminance signal Y and chromaticity signals I and Q according to equation (1).

■距離計算 S2と86では、IとQから彩度情報を作るために、距
離計算部で汀Tマを計算する。これは、対象の色がIQ
色度図上で原点からどれだけ離れているかを示すもので
ある。この値が大きければ彩度が高く、カラー画素であ
る確率が高いといえる。
(2) Distance Calculation In steps S2 and 86, the distance calculation unit calculates the distance T in order to create saturation information from I and Q. This means that the target color is IQ
This shows how far away from the origin it is on the chromaticity diagram. If this value is large, the saturation is high, and it can be said that the probability that the pixel is a color pixel is high.

■彩度比較部 S3では注目画素の彩度をしきい値と比較する。■Saturation comparison section In S3, the saturation of the pixel of interest is compared with a threshold value.

第10図(A)に示すように注目画素Cが文字や下地(
白色に限る)の一部分であるならば彩度が低(、汀Tで
< aの条件を満たすために84に進み、黒画素の個数
BPIXを1だけ増加させる。そしてまたS2に戻り次
の画素を読み込んで同様に処理を行う。
As shown in Figure 10 (A), the pixel C of interest is a character or background (
If the color saturation is low (limited to white), the saturation is low (and in order to satisfy the condition of < a at T, proceed to 84 and increase the number of black pixels BPIX by 1. Then, return to S2 again and select the next pixel. Load it and perform the same processing.

また、第10図(E)のように注目画素がカラー画素と
思われる位置にある場合、彩度が高(vT了マくαの条
件を満たさずS5に進む。
If the pixel of interest is located at a position that is considered to be a color pixel as shown in FIG. 10(E), the saturation is high (the condition of α is not satisfied) and the process proceeds to S5.

■画素補正処理 85〜Sllは画素補正処理部である。これは、Flo
w3彩度比較部でカラー画素と判定されたとしても、セ
ンサの色ずれによって生じた黒文字のにじみのために誤
ってカラー画素と判定してしまう可能性があるために、
この誤判定を補正するために設けられたものである。以
下画素補正部について説明する。
(2) Pixel correction processing 85 to Sll are pixel correction processing units. This is Flo
Even if the pixel is determined to be a color pixel by the w3 saturation comparison unit, there is a possibility that it will be mistakenly determined as a color pixel due to blurring of black characters caused by color shift of the sensor.
This is provided to correct this misjudgment. The pixel correction section will be explained below.

S5では、第5図の注目画素Cの周囲8画素S1〜S8
を1画素ずつ入力する。S6で、色空間変換によりRG
B→YIQ変換を行う(Slと同様)。
In S5, eight pixels S1 to S8 surrounding the pixel of interest C in FIG.
Input pixel by pixel. In S6, RG is created by color space conversion.
Perform B→YIQ conversion (same as Sl).

S7で彩度情報汀Tマを計算する(S2と同様)。In S7, saturation information T is calculated (same as S2).

S8では周囲画素の彩度&と輝度Yをしきい値と比較す
る。例えば、周囲画素S1が文字部であるならば、彩度
が低く輝度も低いのでm < BかつY〈γの条件を満
たす。その結果注目画素Cは画素判定処理でカラー画素
と判定されたが、実際はセンサの色ずれによるものであ
り、本来は黒画素であると判断し、S9に進み、黒画素
の個数BPIXを1だけ増加させる。周囲画素S6の場
合は汀Tマ〈βかつY〈γの条件を満たさないために8
6は黒画素ではないと判断しFlowlOに進む。SI
Oはすべての周囲8画素を入力し終ったかのチエツクを
行うものである。このようにして、周囲8画素に黒画素
が含まれるかを85〜S10の処理を注目画素の周囲の
8画素81〜S9まで繰り返すことにより調べる。周囲
8画素に1個でも黒画素が含まれるならば注目画素Cは
黒画素としてS9に進む。また周囲8画素に黒画素が1
つも含まれていなければ、注目画素Cは色ずれによるカ
ラー画素ではなく、本当のカラー画素としてSllに進
み、カラー画素の個数CPIXを1だけ増加させる。
In S8, the saturation & and luminance Y of surrounding pixels are compared with a threshold value. For example, if the surrounding pixel S1 is a character portion, the saturation is low and the brightness is low, so that the conditions m<B and Y<γ are satisfied. As a result, the pixel C of interest is determined to be a color pixel in the pixel determination process, but it is actually determined to be due to color shift in the sensor and is originally a black pixel.The process proceeds to S9, and the number of black pixels BPIX is set by 1. increase. In the case of the surrounding pixel S6, it is 8 because the conditions of Tma〈β and Y〈γ are not satisfied.
It is determined that pixel 6 is not a black pixel and the process proceeds to FlowlO. S.I.
O is for checking whether all the surrounding 8 pixels have been input. In this way, it is checked whether the surrounding eight pixels include a black pixel by repeating the processing from 85 to S10 to the eight pixels 81 to S9 surrounding the pixel of interest. If even one black pixel is included in the surrounding eight pixels, the pixel C of interest is treated as a black pixel and the process proceeds to S9. Also, there is one black pixel among the surrounding eight pixels.
If no color pixel is included, the pixel C of interest is not a color pixel due to color shift, but is treated as a true color pixel and proceeds to Sll, and the number of color pixels CPIX is increased by one.

(カラー白黒原稿判別〉 以上に述べた画素判別(Sl−11)を原稿のすべての
画素に対して施し、カラー画素CPIXと白黒画素BP
IXの割合を求める。S13でCPIX >δの条件を
満たした場合、対象とする原稿はカラー原稿であると判
別し、満たさない場合は、白黒原稿であると判別する。
(Color and monochrome original discrimination) The pixel discrimination described above (Sl-11) is applied to all pixels of the original, and the color pixel CPIX and monochrome pixel BP are
Find the ratio of IX. If the condition CPIX > δ is satisfied in S13, it is determined that the target document is a color document; otherwise, it is determined that it is a black and white document.

以上は例えばコンピュータのソフトウェアによって処理
を行う場合のフローチャートであったが、以下に上述の
処理を行う回路構成について第1図を用いて説明する。
The above is a flowchart in which processing is performed by, for example, computer software, and the circuit configuration for performing the above processing will be described below with reference to FIG. 1.

101のCODによって構成されるスキャナに原稿を置
き、スキャンするとNTSCの規格に正規化されたRG
Bのデータが出力される。102のYIQ変換部では1
01から出力されたRGEのデータを明度(輝度)信号
Yと色度信号■とQに変換する。103の画素判別部で
は入力した1画素が白黒画素(彩度が小さい)かカラー
画素かの判別を行う。104は原稿判別部であり、1画
素毎の判別結果を集計して、全画素数に対するカラー画
素数の割合を求め、割合に応じて原稿がカラーであるか
、白黒であるかの105原稿判別信号を出力する。10
6は画像処理部、107は画像表示を行うデイスプレィ
、108は画像伝送を行うファクシミリ送信部、109
は画像を記録媒体上に再生するプリンタ、110は中間
彩度画素カウント部、IIIはCPUである。画像処理
部106は、原稿判別信号105に応じて白黒原稿とカ
ラー原稿に対して夫々異なる処理を行う。
When a document is placed on a scanner composed of 101 CODs and scanned, it is RG normalized to the NTSC standard.
Data of B is output. 1 in the YIQ conversion section of 102
The RGE data output from 01 is converted into a brightness (luminance) signal Y and chromaticity signals ■ and Q. A pixel determination unit 103 determines whether an input pixel is a black and white pixel (low saturation) or a color pixel. Reference numeral 104 denotes a document discrimination unit, which aggregates the discrimination results for each pixel, calculates the ratio of the number of color pixels to the total number of pixels, and determines whether the document is color or black and white according to the proportion. Output a signal. 10
6 is an image processing unit, 107 is a display for displaying images, 108 is a facsimile transmission unit for transmitting images, 109
Reference numeral 110 represents a printer that reproduces an image onto a recording medium, 110 represents an intermediate saturation pixel counting unit, and 3 represents a CPU. The image processing unit 106 performs different processing on a monochrome original and a color original in accordance with the original discrimination signal 105.

例えばファクシミリ送信部108に送る画像信号につい
ては、カラー原稿の場合はR,G、B信号それぞれの保
存できるような圧縮符号化を行い、白黒原稿の場合は、
濃度(輝度)信号に変換して通常のMH,MR,MMR
等の圧縮符号化を行う。
For example, regarding the image signal sent to the facsimile transmission unit 108, in the case of a color original, compression encoding is performed so that each of the R, G, and B signals can be stored, and in the case of a black and white original,
Convert to density (luminance) signal and use normal MH, MR, MMR
Performs compression encoding such as

また、プリンタ109へ送る画像信号については、カラ
ー原稿の場合は、R,GSB信号に対して対数変換、U
CR,マスキング等の所定の処理を施してY、M、C,
にの面順次信号となるように画像処理し、白黒原稿の場
合は、K(黒)信号のみ生成して黒単色プリントを行う
ようにする。
Regarding the image signal sent to the printer 109, in the case of a color original, logarithmic conversion is performed on the R and GSB signals, and U
After performing predetermined processing such as CR and masking, Y, M, C,
The image is processed so that it becomes a frame-sequential signal, and in the case of a monochrome original, only a K (black) signal is generated to perform monochromatic black printing.

なお、プリンタの種類は、レーザービームプリンタやイ
ンクジェットプリンタ、熱転写プリンタ、ドツトプリン
タ等カラー印字が可能なものであればよい。
Note that the printer may be of any type as long as it is capable of color printing, such as a laser beam printer, an inkjet printer, a thermal transfer printer, or a dot printer.

第2図はYIQ変換部を表す図で、式(1)を計算して
いる。201.202.203はそれぞれ、R,G。
FIG. 2 is a diagram showing a YIQ conversion section, which calculates equation (1). 201.202.203 are R and G, respectively.

Bの入力信号である。204〜212は式(1)の係数
をセットするレジスタ、213〜221は入力データと
係数を乗算する乗算器、222.223.225.22
8は加算器、226と229は減算器である。そして、
演算の結果は224にY、 227に1.230にQが
出力される。
This is the input signal of B. 204-212 are registers that set the coefficients of equation (1), 213-221 are multipliers that multiply input data and coefficients, 222.223.225.22
8 is an adder, and 226 and 229 are subtracters. and,
The result of the operation is Y at 224 and Q at 227 and 1.230.

たとえば、Yの計算をする場合には、レジスタ204に
0.3、レジスタ207に0.59、レジスタ210に
0.11がセットされていて、Rデータ201とレジス
タ204の内容を213に乗算器で乗算する。同様にG
データとレジスタ207の内容を乗算器216、Bデー
タとレジスタ210の内容乗算器219で乗算する。そ
して、3個の乗算結果が加算器222と223で加えら
れ、最終的にYが得られる。同様に、IとQを計算する
ことができる。
For example, when calculating Y, register 204 is set to 0.3, register 207 is set to 0.59, register 210 is set to 0.11, and R data 201 and the contents of register 204 are multiplied by 213. Multiply by Similarly, G
The data and the contents of the register 207 are multiplied by a multiplier 216, and the B data and the contents of the register 210 are multiplied by a multiplier 219. Then, the three multiplication results are added by adders 222 and 223, and Y is finally obtained. Similarly, I and Q can be calculated.

第3図は画素判別部を示す図である。301にY130
2にI、 303にQのデータが入力される。■は乗算
器310て自乗される。またQは乗算器311で自乗さ
れる。■2とQ2は加算器312て加算される。つぎに
汀Tでの計算であるが、これはテーブルの参照によって
行う。たとえばROM313の入力が2の場合、ROM
の2番アドレスがアクセスされ、データ1.414が出
力される。さらにROM313の出力した汀■マが比較
器305.306に入力される。レジスタ308にはし
きい値βが、レジスタ309にはしきい値αがセットさ
れる。そして、比較器305で、しきい値βと汀でか比
較され、βく汀丁でのとき1を出力、それ以外は0を出
力する。また、比較器306では、しきい値αと汀=マ
が比較され、α<汀コでの時1を出力、それ以外は0を
出力する。この比較器306の出力結果を第1次判定結
果と呼ぶ。
FIG. 3 is a diagram showing a pixel discrimination section. 301 to Y130
I data is input to 2, and Q data is input to 303. (2) is squared by the multiplier 310. Further, Q is squared by a multiplier 311. (2) 2 and Q2 are added by an adder 312. Next is the calculation for T, which is done by referring to the table. For example, if the input of ROM313 is 2, the ROM
Address No. 2 is accessed and data 1.414 is output. Further, the output signals from the ROM 313 are input to comparators 305 and 306. A threshold value β is set in the register 308, and a threshold value α is set in the register 309. Then, a comparator 305 compares the threshold value β with the threshold value β, outputs 1 when β is equal to the threshold value, and outputs 0 otherwise. Further, the comparator 306 compares the threshold value α and t=ma, and outputs 1 when α<ts, and outputs 0 otherwise. The output result of this comparator 306 is called the first determination result.

次に、明度(輝度)信号であるが、レジスタ307には
、しきい値γがセットされており、比較器304でYと
γの比較を行う。Yくγの時に1を出力、それ以外は0
を出力する。比較器304.305の出力はアンドゲー
ト314て論理積がとられる。すなわち、明度(輝度)
が低く、かつ彩度も低い場合に、アンドゲート314は
1を出力し、それ以外はOを出力する。このアンドゲー
ト314の出力結果を第2次判定結果と呼ぶ。アンドゲ
ート314の出力はフリップフロップ(以下FF)31
8と315のラインメモリに入力される。またラインメ
モリ315の出力はラインメモリ316とFF312の
入力になる。
Next, regarding the brightness (luminance) signal, a threshold value γ is set in the register 307, and a comparator 304 compares Y and γ. Outputs 1 when Y is γ, otherwise 0
Output. The outputs of comparators 304 and 305 are ANDed by AND gate 314. In other words, brightness (brightness)
is low and the saturation is low, the AND gate 314 outputs 1, and otherwise outputs O. The output result of this AND gate 314 is called a second determination result. The output of the AND gate 314 is a flip-flop (hereinafter referred to as FF) 31
8 and 315 line memories. Further, the output of the line memory 315 becomes the input of the line memory 316 and the FF 312.

したがって、FF321にはlライン遅延した画素が、
FF324には2ライン遅延した画素が入力されること
になる。FF318〜326は画素クロックに同期して
アンドゲート314の出力結果を保持する。よって、あ
る時点において、注目画素の第2次判別結果がFF32
2に保持されているとすると、FF318.319.3
20.321.323.324.325.326には周
囲8画素の第2次判定結果が保持されていることになる
。これら8画素の第2次判定結果はオアゲート329.
330.331.332で、論理和がとられる。
Therefore, the FF321 has l-line delayed pixels.
A pixel delayed by two lines is input to the FF 324. FFs 318 to 326 hold the output result of AND gate 314 in synchronization with the pixel clock. Therefore, at a certain point, the secondary discrimination result of the pixel of interest is FF32.
If it is held at 2, then FF318.319.3
20.321.323.324.325.326 holds the secondary determination results of the surrounding eight pixels. The secondary determination results for these 8 pixels are OR gate 329.
A logical OR is performed on 330.331.332.

周囲8画素に第2次判別結果1がの画素が一つでもあれ
ばオアゲート332の出力は1になる。すなわち、注目
画素の周りに8画素に一つでも黒画素があれば332は
lを出力することになる。このオアゲート322の出力
を画素補正結果と呼ぶ。また、比較器306の出力(第
1次判定結果)はラインメモリ317に入り、1ライン
遅延されてFF327、FF328と流れて行く。すな
わち、FF328とFF322はそれぞれ同一画素の第
1次判別結果と第2次判別結果が保持されることになる
If there is even one pixel with a secondary discrimination result of 1 among the surrounding 8 pixels, the output of the OR gate 332 becomes 1. That is, if there is at least one black pixel in eight pixels around the pixel of interest, the 332 will output l. The output of this OR gate 322 is called a pixel correction result. Further, the output of the comparator 306 (first determination result) enters the line memory 317, is delayed by one line, and flows to the FF 327 and FF 328. That is, the FF 328 and the FF 322 respectively hold the first discrimination result and the second discrimination result of the same pixel.

最後に、画素補正結果と第1次判定結果のNORをNO
Rゲートで判断する。カラー画素と判定された場合には
、カラー画素判定信号334が1になり、白黒と判定さ
れた場合には0になる。
Finally, NOR the pixel correction result and the first judgment result.
Judge by R gate. The color pixel determination signal 334 becomes 1 when the pixel is determined to be a color pixel, and becomes 0 when the pixel is determined to be black and white.

第4図は原稿判別部を示す図である。FIG. 4 is a diagram showing the document discriminating section.

406はアップカウントであり、入力として403に初
期カウントデータDAT、402に画素クロック、40
1にカラー画素判定信号。406のカウンタは画素クロ
ックに同期して、初期カウントデータからカウントアツ
プを行うが、カウントアツプがイネーブルな期間は、カ
ラー画素判定信号が1の間だけで、結果としてカラー画
素判定信号がカウントされることになる。
406 is an up count, and as inputs 403 is initial count data DAT, 402 is a pixel clock, and 40
1 is a color pixel judgment signal. The counter 406 counts up from the initial count data in synchronization with the pixel clock, but during the period when count-up is enabled, the color pixel determination signal is only 1, and as a result, the color pixel determination signal is counted. It turns out.

また第1図の110中間彩度画素カウント部では中間彩
度の入力画素の数をカウントする。すなわち、第11図
において、彩度汀Tで〉ε、かつ彩度α7で< aの画
素が入力された場合にカウントする。原稿判別部104
のカラー画素数としきい値δを比較する。CPU 11
1は、カラー画素数〉δならばカラー原稿と判断し、カ
ラー画素数≦δならば白黒原稿と判断するのである。こ
こで、しきい値δの設定であるが、CPUIIIは中間
彩度画素カウント部のカウント数に応じて変化させる。
Further, the 110 intermediate chroma pixel counting section in FIG. 1 counts the number of input pixels of intermediate chroma. That is, in FIG. 11, if a pixel with saturation T > ε and saturation α7 < a is input, it is counted. Original discrimination section 104
The number of color pixels and the threshold value δ are compared. CPU 11
1, if the number of color pixels>δ, it is determined to be a color document, and if the number of color pixels≦δ, it is determined to be a black and white document. Here, regarding the setting of the threshold value δ, CPU III is changed according to the count number of the intermediate chroma pixel count section.

すなわち、中間彩度の画素が所定値βより多ければ、し
きい値δを大きくして、白黒原稿と判断する傾向に、ま
た中間彩度の画素が多くなければ、しきい値δを小さく
してカラー原稿と判断する傾向にδを設定し、DAT4
03にセットする。このように有彩色と無彩色の中間に
有する中間彩度の画素数に応じて、原稿の白黒/カラー
の判定の判定基準を変更することにより、所望の判定結
果が得られる。
In other words, if there are more pixels with intermediate saturation than the predetermined value β, the threshold value δ is increased to determine that the original is black and white, and if there are not many pixels with intermediate saturation, the threshold value δ is decreased. DAT4
Set to 03. In this way, a desired determination result can be obtained by changing the criterion for determining black and white/color of a document according to the number of pixels with intermediate saturation between chromatic colors and achromatic colors.

以上の処理により原稿がカラーか白黒かを判別すること
ができる。
Through the above processing, it is possible to determine whether the document is in color or black and white.

〔第2の実施例〕 第5図は第2実施例を説明するための図である。[Second example] FIG. 5 is a diagram for explaining the second embodiment.

第1実施例では式(1)の計算を実現するために、第2
図の構成を用いていたが、第2の実施例では第5図の構
成で式(1)の計算を近似する。式(1)の係数を2の
べき乗分の1を加える形で近似すると式2のようになる
。例えば式lの係数0.3は0.25+0.0625に
近似する。そうすることにより、入力データを2ビツト
シフトしたものと4ビツトシフトしたものを加えること
により0.3 * Hの計算を簡易的に行うことができ
る。
In the first embodiment, in order to realize the calculation of equation (1), the second
Although the configuration shown in the figure was used, in the second embodiment, the calculation of equation (1) is approximated using the configuration shown in FIG. If the coefficient of equation (1) is approximated by adding 1 to a power of 2, equation 2 is obtained. For example, the coefficient 0.3 in equation l is approximated to 0.25+0.0625. By doing so, it is possible to easily calculate 0.3*H by adding the input data shifted by 2 bits and shifted by 4 bits.

・・・ (2) 次に第4図の説明をする。501.502.503には
それぞれ、R,G、Bの入力データがセットされる50
4〜513.519.520はビットシフト部で入力デ
ータのビットをシフトする回路である。514.515
.516.517.518.521.523.527は
加算器、524.525.526は減算器である。最終
的に計算されたデータは528にYが、529にL 5
30にはQが出力される。
... (2) Next, Fig. 4 will be explained. 501, 502, and 503 are set with R, G, and B input data, respectively.
4 to 513, 519, and 520 are bit shift units that shift bits of input data. 514.515
.. 516.517.518.521.523.527 is an adder, and 524.525.526 is a subtracter. The final calculated data is Y in 528 and L in 529.
Q is output to 30.

次にデータの流れを説明する。計算方法はY、I、Qと
も同様の計算をするのでここではYは例にし、、(11 て説明し、IとQは省略する。式2 −+、)Rの項の
計算として、504で2ビツトシフト、507で4ビツ
トシフトを行い、その結果を加算器517て、入力され
たGのデータを509で1ビツトシフト、510て4ヒ
ツトシフトを行い、その結果と加算器517の出力を加
算器522で加算する。加算器522の出力は、式2の
Yの計算において、RとGの項の加算の結果になる。つ
ぎに、Bの入力データ503を3ビツトシフトしたもの
を加算器523に入力する。結果的に加算器523の出
力528は式2のYになる。
Next, the flow of data will be explained. The calculation method is the same for Y, I, and Q, so here we will use Y as an example, and (11) will be explained, and I and Q will be omitted.For calculation of the term of R, 504 A 2-bit shift is performed at 507, a 4-bit shift is performed at 507, the result is sent to an adder 517, the input G data is shifted 1 bit at 509, a 4-bit shift is performed at 510, and the result and the output of the adder 517 are sent to an adder 522. Add with . The output of adder 522 is the result of the addition of the R and G terms in the calculation of Y in Equation 2. Next, the input data 503 of B is shifted by 3 bits and input to the adder 523. As a result, the output 528 of the adder 523 becomes Y in Equation 2.

以上のように本発明の実施例によれば、入力カラー信号
の各成分信号を明度信号と色度信号に分離する手段と、
色度信号から彩度信号を作る手段と、彩度信号をしきい
値αと比較する手段と、彩度信号をしきい値βと比較す
る手段と、明度信号をしきい値γと比較する手段と、中
間彩度を持つ入力信号の数をカウントする手段と、注目
画素の彩度信号としきい値を比較した結果、彩度信号〈
αならば白黒画素数を1増やす手段と、注目画素の彩度
信号としきい値を比較した結果、彩度信号≧αならば周
囲の画素に対して、彩度信号としきい値βを比較した結
果、彩度信号くβかつ明度信号としきい値γを比較した
結果、明度信号〈γの判定を行い、周囲画素中にこの条
件を満たす画素が含まれていたならば、白黒画素数を1
増やし、含まれていなければカラー画素数を1増やす手
段と、中間彩度を持つ入力信号の総数に応じてしきい値
δを変化させる手段と、カラー画素数をしきい値δと比
較する手段と、カラー画素数をしきい値δを比較した結
果、カラー画素数〉δならば、カラー原稿と判断する手
段とを設けることにより1.スキャナの精度が良くない
場合や、原稿の下地に薄い色がついている場合、また、
彩度の低い写真原稿なども、誤判定せず原稿を判別する
ことができる。その結果、原稿の種類に応じた処理を行
うことができ、印刷品位の向上、通信コストの低減を図
ることができるという効果がある。
As described above, according to the embodiment of the present invention, means for separating each component signal of an input color signal into a brightness signal and a chromaticity signal;
means for generating a saturation signal from the chromaticity signal; means for comparing the saturation signal with a threshold value α; means for comparing the saturation signal with a threshold value β; and means for comparing the lightness signal with a threshold value γ. As a result of comparing the means for counting the number of input signals with intermediate saturation, the saturation signal of the pixel of interest, and the threshold value, the saturation signal <
If α, the method is to increase the number of black and white pixels by 1, and as a result of comparing the saturation signal and threshold value of the pixel of interest, and if the saturation signal ≧ α, the saturation signal and threshold value β are compared for surrounding pixels. As a result, as a result of comparing the saturation signal β and the brightness signal with the threshold value γ, the brightness signal <γ is determined, and if the surrounding pixels include a pixel that satisfies this condition, the number of black and white pixels is reduced to 1.
means for increasing the number of color pixels by 1 if the number of color pixels is not included; means for changing the threshold value δ according to the total number of input signals having intermediate saturation; and means for comparing the number of color pixels with the threshold value δ. By comparing the number of color pixels with the threshold value δ and determining that the number of color pixels>δ, the document is determined to be a color document.1. If the scanner accuracy is not good, or if the background of the document has a light color,
Even photographic originals with low saturation can be identified without misjudgment. As a result, it is possible to perform processing according to the type of document, and it is possible to improve print quality and reduce communication costs.

なお、画像入力手段はスキャナに限らず、ホストコンピ
ュータ、スチルビデオカメラ、ビデオカメラ、などのイ
ンターフェースであってもよい。
Note that the image input means is not limited to a scanner, and may be an interface of a host computer, a still video camera, a video camera, or the like.

また、参照する周辺画素数も8画素に限らない。Furthermore, the number of peripheral pixels to be referenced is not limited to eight pixels.

また、OR処理ではな(多数決処理を行ってもよい。Moreover, instead of OR processing (majority processing may be performed).

また(Y、L Q)に分離するほか、(L”、al、b
’)、(じ、Uo、V″)、(Y% us v)等に分
離して判定を行ってもよい。
In addition to separating into (Y, L Q), (L", al, b
'), (J, Uo, V''), (Y% us v), etc. for determination.

〔発明の効果〕〔Effect of the invention〕

以上のように本発明によれば、正確に入力カラー信号の
有彩/無彩を判定できる。
As described above, according to the present invention, it is possible to accurately determine whether an input color signal is chromatic or achromatic.

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

第1図は本発明の第1実施例のカラー白黒原稿自動判別
装置を示すブロック図。 第2図はYIQ変換部の構成図。 第3図は画素判別部の構成図、 第4図は原稿判別部の構成部。 第5図は第2実施例のYIQ変換部の構成図。 第6図は白黒原稿を読み込んだ時のIとQの分布を表す
図。 第7図はカラー原稿読み込んだ時のIとQの分布を表す
図。 第8図は色ずれの様子を表す図。 第9図はカラー白黒原稿判別の全体フローを示す図。 第10図は画素補正処理を説明する図。 第11図は中彩度原稿の分布を示す図。 101・・・スキャナ 102・・・YIQ変換部 103・・・画素判別部 104・・・原稿判別部 105・・・原稿判別信号 =Iψ−V−クー6−xQ \
FIG. 1 is a block diagram showing an automatic color/black-and-white document discriminator according to a first embodiment of the present invention. FIG. 2 is a configuration diagram of the YIQ conversion section. FIG. 3 is a diagram showing the configuration of the pixel discrimination section, and FIG. 4 is a configuration diagram of the document discrimination section. FIG. 5 is a configuration diagram of the YIQ conversion section of the second embodiment. FIG. 6 is a diagram showing the distribution of I and Q when a monochrome original is read. FIG. 7 is a diagram showing the distribution of I and Q when a color original is read. FIG. 8 is a diagram showing the state of color shift. FIG. 9 is a diagram showing the overall flow of color/monochrome document discrimination. FIG. 10 is a diagram illustrating pixel correction processing. FIG. 11 is a diagram showing the distribution of medium saturation originals. 101... Scanner 102... YIQ conversion unit 103... Pixel discrimination unit 104... Original discrimination unit 105... Original discrimination signal = Iψ-V-K6-xQ \

Claims (3)

【特許請求の範囲】[Claims] (1)入力カラー信号の有彩/無彩を判定する手段と、
前記入力カラー信号に含まれる中間彩度の画素数に応じ
て、前記判定手段の判定基準を制御する制御手段とを有
することを特徴とするカラー画像処理装置。
(1) means for determining whether an input color signal is chromatic or achromatic;
A color image processing apparatus comprising: a control means for controlling a determination criterion of the determination means according to the number of intermediate chroma pixels included in the input color signal.
(2)更に、周辺画素を参照して前記判定手段による判
定結果の補正を行う補正手段を有することを特徴とする
請求項第1項記載のカラー画像処理装置。
(2) The color image processing apparatus according to claim 1, further comprising a correction means for correcting the determination result by the determination means by referring to surrounding pixels.
(3)更に前記判定結果を用いて、入力カラー信号によ
って表される原稿の白黒/カラーを判別する手段を有す
ることを特徴とする請求項第1項記載のカラー画像処理
装置。
3. The color image processing apparatus according to claim 1, further comprising means for determining whether a document represented by an input color signal is black and white or color, using the determination result.
JP2206610A 1990-03-19 1990-08-03 Color image processing equipment Expired - Fee Related JP3039675B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2206610A JP3039675B2 (en) 1990-08-03 1990-08-03 Color image processing equipment
EP91302326A EP0448330B1 (en) 1990-03-19 1991-03-18 Method and apparatus for processing image
DE69121439T DE69121439T2 (en) 1990-03-19 1991-03-18 Image processing method and apparatus
US08/292,049 US5786906A (en) 1990-03-19 1994-08-18 Method and apparatus for processing image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2206610A JP3039675B2 (en) 1990-08-03 1990-08-03 Color image processing equipment

Publications (2)

Publication Number Publication Date
JPH0490676A true JPH0490676A (en) 1992-03-24
JP3039675B2 JP3039675B2 (en) 2000-05-08

Family

ID=16526236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2206610A Expired - Fee Related JP3039675B2 (en) 1990-03-19 1990-08-03 Color image processing equipment

Country Status (1)

Country Link
JP (1) JP3039675B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001126075A (en) * 1999-08-17 2001-05-11 Fuji Photo Film Co Ltd Image processing method and apparatus, and recording medium
JP2002094809A (en) * 2000-09-11 2002-03-29 Canon Inc Picture processor and method thereof
JP2008035478A (en) * 2006-07-04 2008-02-14 Sharp Corp Method and apparatus for image processing, image forming apparatus, computer program, and recording medium
JP2012080183A (en) * 2010-09-30 2012-04-19 Brother Ind Ltd Image processing apparatus, image processing method, image reading apparatus and image processing program
US8743414B2 (en) 2010-12-27 2014-06-03 Brother Kogyo Kabushiki Kaisha Image processing apparatus, image processing method and recording medium for attaching additional information to images in an image file to faciltate searching the image file
CN118485741A (en) * 2023-11-08 2024-08-13 荣耀终端有限公司 Image display method and electronic device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001126075A (en) * 1999-08-17 2001-05-11 Fuji Photo Film Co Ltd Image processing method and apparatus, and recording medium
US7468759B2 (en) 1999-08-17 2008-12-23 Fujifilm Corporation Method, apparatus and recording medium for image processing
JP2002094809A (en) * 2000-09-11 2002-03-29 Canon Inc Picture processor and method thereof
JP2008035478A (en) * 2006-07-04 2008-02-14 Sharp Corp Method and apparatus for image processing, image forming apparatus, computer program, and recording medium
JP2012080183A (en) * 2010-09-30 2012-04-19 Brother Ind Ltd Image processing apparatus, image processing method, image reading apparatus and image processing program
US8634114B2 (en) 2010-09-30 2014-01-21 Brother Kogyo Kabushiki Kaisha Image processing apparatus, image processing method and image scanning apparatus
US8743414B2 (en) 2010-12-27 2014-06-03 Brother Kogyo Kabushiki Kaisha Image processing apparatus, image processing method and recording medium for attaching additional information to images in an image file to faciltate searching the image file
CN118485741A (en) * 2023-11-08 2024-08-13 荣耀终端有限公司 Image display method and electronic device

Also Published As

Publication number Publication date
JP3039675B2 (en) 2000-05-08

Similar Documents

Publication Publication Date Title
US5786906A (en) Method and apparatus for processing image
JP3399486B2 (en) Color image processing apparatus and method
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JPH01198870A (en) Digital color picture processor
JPH0364272A (en) Image processor
JPH0722330B2 (en) Image region identification method for image processing apparatus
KR20080013716A (en) Image conversion method and apparatus, and image forming apparatus
US7206446B2 (en) Image processing apparatus
US6256112B1 (en) Color type determining device
JP3039675B2 (en) Color image processing equipment
US6178010B1 (en) Image processing device
JP3039674B2 (en) Color image processing equipment
JP3334047B2 (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JP3082931B2 (en) Color image processing method
JP3227152B2 (en) Color image processing apparatus and color image processing method
JP2000134471A (en) Image processor attended with output correction in inside of character
JPH03270382A (en) Image processing method
JP3082932B2 (en) Color image processing equipment
CN101309341A (en) Imaging device and control method thereof
JP2000172850A (en) Device and method for processing picture
JPH1042151A (en) Image processing unit and its method
JP2000357237A (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JPH1040373A (en) Image processor and method therefor
JP3281391B2 (en) Full-color image reproducing apparatus and full-color image reproducing method
JP2000151997A (en) Original type discrimination device and image processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees