JP2008103917A - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP2008103917A JP2008103917A JP2006283897A JP2006283897A JP2008103917A JP 2008103917 A JP2008103917 A JP 2008103917A JP 2006283897 A JP2006283897 A JP 2006283897A JP 2006283897 A JP2006283897 A JP 2006283897A JP 2008103917 A JP2008103917 A JP 2008103917A
- Authority
- JP
- Japan
- Prior art keywords
- color
- determination
- chromatic
- unit
- signal
- 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.)
- Withdrawn
Links
Images
Landscapes
- Color Image Communication Systems (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
【課題】 原稿がカラー原稿かモノクロ原稿なのかを判定する処理及び装置において、読み取り装置の構成要因で誤判定しやすい領域の影響を極力低減し、読み取り原稿全体に及ぼす判定精度を落とさない画像処理装置を提供することにある。
【解決手段】 第1の方向及び第1の方向の直行する第2の方向にそれぞれ所定の画素数を有する画像データから、カラー原稿かモノクロ原稿かを判定する画像処理装置であって、注目画素が有彩色か無彩色かを判定する無彩色判定手段と、指定した領域毎に判定信号値を変更する判定信号変更手段の結果を、第1の方向の判定/第2の方向の判定との独立に設定できる設定手段と、設定手段に応じて、第1の方向、第2の方向にそれぞれ独立に原稿中の有彩画素を計数する第1、第2の有彩画素係数手段の結果により画像データをカラー原稿としてかモノクロ原稿として処理すべきかを判断する判定手段を有する。
【選択図】 図9PROBLEM TO BE SOLVED: To reduce as much as possible the influence of an area that is easily misjudged due to a constitutional factor of a reading apparatus in an image processing and apparatus for determining whether a manuscript is a color manuscript or a monochrome manuscript, and to prevent the judgment accuracy on the entire reading manuscript from being lowered. To provide an apparatus.
An image processing apparatus for determining whether a color document or a monochrome document from image data having a predetermined number of pixels in a first direction and a second direction orthogonal to the first direction, the pixel of interest The result of the achromatic color judging means for judging whether the color is a chromatic color or the achromatic color and the judgment signal changing means for changing the judgment signal value for each designated region are determined as the first direction judgment / second direction judgment. According to the result of the setting means that can be set independently and the first and second chromatic pixel coefficient means for counting the chromatic pixels in the document independently in the first direction and the second direction, respectively, according to the setting means. It has a determination means for determining whether the image data should be processed as a color document or a monochrome document.
[Selection] Figure 9
Description
本発明は、画像処理装置およびその制御方法に関し、詳しくは入力画像がカラー画像なのかモノクロ画像かを識別する機能を有する画像処理装置及び制御方法に関する。本発明は又、これらの画像処理装置を用いた画像形成装置に関する。 The present invention relates to an image processing apparatus and a control method thereof, and more particularly to an image processing apparatus and a control method having a function of identifying whether an input image is a color image or a monochrome image. The present invention also relates to an image forming apparatus using these image processing apparatuses.
カラー画像形成装置、特にカラー複写機や、カラースキャナ、コンピュータ、カラープリンタを組み合わせて実現されるカラー複写装置などにおいては、モノクロ原稿に対して画像を形成し出力する際に、C(シアン)、M(マゼンタ)、Y(イエロー)、K(ブラック)の4色で複写させる場合がある。しかしながらカラーレーザービームプリンタを用いるカラー複写機やカラー複写装置の場合には、ドラムの寿命、またトナーの消費量を考えると、モノクロ原稿に対しては黒単色で複写させることが望ましい。これはカラーインクジェットプリンタを用いたカラー複写機、複写装置でもインクの消費量を考えると同様である。 In a color image forming apparatus, in particular, a color copying machine realized by combining a color copying machine, a color scanner, a computer, and a color printer, C (cyan), There are cases where copying is performed with four colors of M (magenta), Y (yellow), and K (black). However, in the case of a color copying machine or a color copying apparatus using a color laser beam printer, it is desirable to copy a monochrome original with a single black color considering the life of the drum and the amount of toner consumption. This is the same as color copiers and copiers using color ink jet printers, considering the ink consumption.
このため、カラー画像形成装置には、原稿画像がカラー原稿なのかモノクロ原稿なのかを識別する機能が従来から搭載され、自動原稿種別判定:ACS(Auto Color Select)を用いて判別を行っている。従来、このような原稿種別の判別は、主に入力される原稿の色画素(有彩色と判定された画素)を加算し、加算された値を統計的に評価したり、閾値と比較するといった単純な評価により行われていた。 For this reason, a color image forming apparatus is conventionally equipped with a function for identifying whether a document image is a color document or a monochrome document, and the determination is made using automatic document type determination: ACS (Auto Color Select). . Conventionally, such document type discrimination is mainly performed by adding color pixels (pixels determined to be chromatic) of an input document, and statistically evaluating the added value or comparing it with a threshold value. It was done by simple evaluation.
しかしながら、原稿入力装置において読み込んだ原稿画像の画素毎の色成分(R,G,Bの輝度信号)に基づいて色画素の判定を行う場合、同一の位置で色成分の読み取りを行うべき読み取り素子が、完全に同じ画素位置を読み取れない場合、つまり、微少距離だけずれて読み取りを行った場合(以後、この状態を色ずれという)に、黒線のエッジ部は色があるように検出されてしまう。 However, when the color pixel is determined based on the color components (R, G, and B luminance signals) of each pixel of the document image read by the document input device, the reading element that should read the color component at the same position. However, when the completely same pixel position cannot be read, that is, when reading is performed with a slight shift (hereinafter referred to as color shift), the edge of the black line is detected as having a color. End up.
また、読み取り位置精度は充分だったとしても、レンズによる波長毎のMTF特性のばらつきによっては、黒線のエッジ付近で、読み取り位置精度が不十分な場合と同様な色成分(偽色)が発生してしまう。 Even if the reading position accuracy is sufficient, the color component (false color) similar to the case where the reading position accuracy is insufficient is generated near the edge of the black line due to variations in MTF characteristics for each wavelength by the lens. Resulting in.
上記課題に対して、特許文献:特開2002-199239公報 によれば、主、副走査方向に有彩色を計数する場合に、有彩色と判定した色画素の塊を計数し、さらにその塊の数を計数することで、読み取り装置のデバイス特性に依存して発生する偽色の影響を軽減させる方法を提案している。さらに、上記発明では、原稿読み取り位置による色ずれ量(偽色の発生度合い)に応じて、色ずれ量が他の領域に比べ大きなところ(例えば、読み取り先端、後端、左右の領域)を、判定に利用しないことで、判定精度を落とさない工夫をしている。 In response to the above problem, according to Japanese Patent Application Laid-Open No. 2002-199239, when counting chromatic colors in the main and sub-scanning directions, the number of color pixels determined to be chromatic is counted, and A method of reducing the influence of false colors generated depending on the device characteristics of the reading apparatus by counting the number is proposed. Furthermore, in the above invention, the amount of color misregistration amount is larger than other regions (for example, the reading front end, the rear end, and the left and right regions) according to the color misregistration amount (false color generation degree) depending on the document reading position. By not using it for the determination, it is devised not to reduce the determination accuracy.
また特許文献:特開2003-259133広報 では、ADF(Auto Document Feeder)を利用して上記の判定を行う際の課題として、原稿を引き込み時やリリース時に原稿に対して振動が加わるために発生するエッジ部の偽色による影響を改善する方法が提案されている。 In addition, in the patent document: Japanese Patent Laid-Open No. 2003-259133, as a problem when performing the above determination using ADF (Auto Document Feeder), it occurs because vibration is applied to the original when the original is drawn or released. A method for improving the influence of the false color at the edge has been proposed.
上記文献では、まず、固定読み取りモード(ブックモードとも呼ばれる)と搬送読取モード(ADFを使って読み取る)における有効判定対象領域を変更する。特に、搬送読取モードで、搬送時の振動によって影響を与える領域を除いて原稿の色種別を行う。上記文献では、原稿の突入後より速度変動によって偽色が生じる領域を特定(予測)し、偽色が発生しやすい領域の有彩色成分を無効、或いはブロック内部で有彩色を計数する閾値や、ブロック毎に判定されたカラー/モノクロ信号を計数する閾値を変更することで誤判定を回避する提案を行っている。 In the above document, first, the validity determination target region in the fixed reading mode (also called book mode) and the conveyance reading mode (reading using ADF) is changed. In particular, in the conveyance reading mode, the color classification of the original is performed except for the area affected by vibration during conveyance. In the above-mentioned document, a region where false color is generated due to speed fluctuation after entry of a document is specified (predicted), a chromatic color component in a region where false color is likely to be generated is invalid, or a threshold for counting chromatic colors inside a block, A proposal has been made to avoid erroneous determination by changing the threshold for counting the color / monochrome signal determined for each block.
また、特許文献:特許第3330392号では、特許文献:特開2003-259133広報とは異なり、入力原稿で実際に利用する領域部分をACS判定として利用する方法を提案している。
特許文献:特開2002-199239公報、特開2003-259133広報、特許第3330392号ともに、有彩色を判定する領域に制限を設けることで、偽色の発生、もしくは不必要な領域からの情報による原稿の色種別判定の誤判定を回避している。 Patent literature: JP 2002-199239, JP 2003-259133 PR, and Patent 3303992 both have the occurrence of false colors or information from unnecessary areas by limiting the chromatic color determination area. An erroneous determination of the original color type determination is avoided.
ところが、領域制限を設けている領域に、原稿が有彩色、もしくは無彩色であることを示す情報がある場合、上記発明ではその情報を有効に利用することはできない。 However, if there is information indicating that the document is chromatic or achromatic in the area where the area restriction is provided, the information cannot be used effectively in the above invention.
つまり、領域制限を設けているところが色鮮やかな情報が記載されているにもかかわらず、複写した結果、制限をうけた以外の領域が白黒であったがために、白黒原稿として出力されてしまう場合がある。 In other words, despite the fact that the area restriction is provided, colorful information is described, but as a result of copying, the area other than the restriction is black and white, so it is output as a black and white document. There is a case.
特許文献:特開2003-259133広報では、この点について注目画素がカラーか白黒かを判定する閾値、それらがブロック内で計数し判定する閾値、さらにブロック単位で判断された結果を計数するそれぞれの閾値で改善することを提案している。しかし、画素の有彩/無彩の判定閾値を落とすことは、以後の判定の判定精度そのものを落とすことになる。また、その画素単位の判定結果をブロック単位で計数し判断する方法では、ブロック間にまたがる鮮やかな線、文字情報がある場合、ブロック内部に締める有彩色の比率がブロック内の判定に大きく影響を及ぼすため、感度の良い判定を行うことが困難と考えられる。 Patent document: JP 2003-259133 A public information, each of which counts the threshold for judging whether the pixel of interest is color or black and white, the threshold for counting and judging in the block, and the result judged in block unit It is proposed to improve with a threshold. However, lowering the chromatic / achromatic threshold of a pixel lowers the accuracy of subsequent determinations. In addition, in the method of counting and determining the determination result in pixel units, if there are vivid lines and character information straddling blocks, the ratio of chromatic colors to be tightened inside the block greatly affects the determination in the block. Therefore, it is considered difficult to make a sensitive determination.
本発明は、このような従来技術の問題点に鑑みなされたものであり、その目的は、原稿がカラー原稿かモノクロ(白黒)原稿なのかを判定する処理及び装置において、読み取り装置の構成要因で誤判定しやすい領域の影響を極力低減し、読み取り原稿全体に及ぼす判定精度を落とさない画像処理装置及びその制御方法を提供することにある。 The present invention has been made in view of the above-described problems of the prior art, and an object of the present invention is to determine whether a manuscript is a color manuscript or a monochrome (monochrome) manuscript. An object of the present invention is to provide an image processing apparatus and a control method therefor that reduce the influence of an area that is easily erroneously determined and reduce the accuracy of determination on the entire read original.
すなわち、本発明の要旨は、第1の方向及び第1の方向の直行する第2の方向にそれぞれ所定の画素数を有する画像データから、上記画像データがカラー原稿かモノクロ原稿かを判定する画像処理装置であって、注目画素が有彩色か無彩色かを判定する無彩色判定手段と、上記無彩色判定手段から送出される信号を、指定した領域毎に判定信号値を変更する判定信号変更手段と、上記判定信号変更手段の結果を、第1の方向の判定/第2の方向の判定との独立に設定できる設定手段と、上記設定手段に応じて、前記第1の方向、前記第2の方向にそれぞれ独立に原稿中の有彩画素を計数する第1、第2の有彩画素係数手段と、上記第1、第2の有彩画素係数手段の結果により画像データをカラー原稿として処理すべきかモノクロとして処理すべきかを判断する判定手段することで、上記問題を解決する。さらに上記の有彩画素係数手段は、有彩色と判断された画素の連続度とその連続度の数を係数することを特徴とし、上記の判定手段は、第1の方向と第2の方向の計数結果に対し、独立に閾値を設けて判定することが特徴となる。
That is, the gist of the present invention is an image for determining whether the image data is a color document or a monochrome document from image data having a predetermined number of pixels in each of the first direction and the second direction orthogonal to the first direction. A processing device for determining whether a pixel of interest is a chromatic color or an achromatic color, and a determination signal change for changing a determination signal value for each designated region of a signal transmitted from the achromatic color determination unit And a setting means capable of setting the result of the determination signal changing means independently of the determination of the first direction / the determination of the second direction, and the first direction, the first direction according to the setting means The first and second chromatic pixel coefficient means for counting the chromatic pixels in the document independently in the
また、本発明の別の要旨は、第1の方向及び第1の方向の直行する第2の方向にそれぞれ所定の画素数を有する画像データから、上記画像データがカラー原稿かモノクロ原稿かを判定する画像処理装置であって、注目画素が有彩色か無彩色かを判定する無彩色判定手段と、上記無彩色判定手段から送出される信号を、指定した領域毎に判定信号値を変更する判定信号変更手段と、上記判定信号変更手段の結果を、第1の方向の判定/第2の方向の判定との独立に設定できる第1設定手段と、上記第1設定手段で、第1の方向と第2の方向が重なる領域で、設定手段を選択する第2の設定手段と、上記第1、第2の設定手段に応じて、前記第1の方向、前記第2の方向にそれぞれ独立に原稿中の有彩画素を計数する第1、第2の有彩画素係数手段と、上記第1、第2の有彩画素係数手段の結果により画像データをカラー原稿として処理すべきかモノクロとして処理すべきかを判断する判定手段とで上記問題を解決する。さらに上記の有彩画素係数手段は、有彩色と判断された画素の連続度とその連続度の数を係数することを特徴とし、上記の判定手段は、第1の方向と第2の方向の計数結果に対し、独立に閾値を設けて判定することが特徴となる。 Another aspect of the present invention is to determine whether the image data is a color document or a monochrome document from image data having a predetermined number of pixels in each of the first direction and the second direction orthogonal to the first direction. An achromatic color determining unit that determines whether a pixel of interest is a chromatic color or an achromatic color, and a determination that a signal transmitted from the achromatic color determining unit is changed for each specified region The first setting means that can set the signal changing means and the result of the determination signal changing means independently of the determination of the first direction / the determination of the second direction, and the first setting means, the first direction And a second setting means for selecting a setting means in an area where the second direction and the second direction overlap with each other independently in the first direction and the second direction according to the first and second setting means. First and second chromatic pixel coefficient means for counting chromatic pixels in the document; To solve the above problem and determining means for determining whether to process a monochrome should be processed image data as a color original by the results of the chromatic pixel coefficient means. Further, the chromatic pixel coefficient means is characterized by calculating the continuity of pixels determined to be chromatic colors and the number of the continuity, and the determination means includes the first direction and the second direction. It is a feature that the determination result is determined by providing a threshold value independently.
以上説明したように本発明によれば、領域毎に入力装置に起因する偽色の発生を、画素ごとに判定された有彩/無彩の判定精度を落とさず、原稿種別の判定を行なうことができるため、例え、偽色が発生しやすい領域のみ有彩色が存在している原稿であって、その判定を精度良く行なうことが可能となる。 As described above, according to the present invention, it is possible to determine the document type without degrading the chromatic / achromatic determination accuracy determined for each pixel for the occurrence of false colors caused by the input device for each region. Therefore, for example, it is possible to accurately determine a document in which a chromatic color exists only in a region where false colors are likely to occur.
さらには、領域毎に主走査方向、副走査方向に独立に判定信号を送出する機構を備えているため、メカ的な要因で発生する偽色だけでなく、レンズの収差などで、副走査方向に発生する偽色に対しても対応できるため、従来技術に比べラチチュードの広い処理装置を提供できる。 Furthermore, each area is equipped with a mechanism that sends a determination signal independently in the main scanning direction and the sub-scanning direction, so that not only false colors caused by mechanical factors but also lens aberrations, etc. Therefore, it is possible to provide a processing device having a wide latitude compared to the prior art.
[実施形態1]
以下、図面を参照しながら本発明に係る実施の形態を詳細に説明する。図18は、本発明の実施形態に係る画像処理装置を適用可能な画像形成装置の一例としてのカラー画像形成装置の構造例を示す断面図である。
[Embodiment 1]
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 18 is a cross-sectional view showing a structural example of a color image forming apparatus as an example of an image forming apparatus to which the image processing apparatus according to the embodiment of the present invention can be applied.
図において、201はイメージスキャナ部であり、原稿台硝子上におかれた原稿を読み取り、その原稿画像に対してディジタル処理を行う。また、200はプリンタ部であり、イメージスキャナ部201で読み取った原稿画像に対応した画像を紙等の記録媒体上に形成し、出力する。
In the figure,
図18では、202は原稿圧板を利用した複写機で説明するが、図20、21に示すようなUターンパスで構成されるADFを利用する場合に本発明は効果的である。図20に示すADFの一例を示す構成図では、1は原稿トレイ、2は原稿の側部を規制する幅規制遺体である。3はピックアップローラであり、原稿を給送するための、原稿の当接する位置まで降下することができる。4は分離ローラで、対抗する分離パッド5と常に接触し摩擦分離を行い、原稿を一枚ずつ搬送する。6は第一搬送ローラ、7は搬送コロである。
In FIG. 18, a
原稿分離された原稿は内ガイド10と外ガイド18で形成され、下方に湾曲傾斜した搬送路を進み、読取位置Q直前の上流側搬送手段としての読取前ローラ11及び読取加圧コロ12を経て、読取位置Qまで搬送される。読取位置Q付近の原稿裏側(読取面と反対側)をガイドするガイド部材を読取ガイド13と称す。この読取ガイド13の対向側に位置し、原稿表側をガイドする手段として透明フィルム部材である透明シートとしてのガイドマイラ14が装着されている。ガイドマイラ14は例えばPET材等からなる透明なプラスチックフィルムであり、100μm程度の厚みで構成されている。ガイドマイラ14をボス部により係止して部材をマイラホルダ19と称する。ガイドマイラ14は一端がマイラホルダ19のボス部19aで係止され、もう一端が原稿台ガラス62を経て排出ガイド20に乗っている。
The separated original is formed by an
読取ガイド13は読取位置Qと対向する面が、原稿台ガラス62と平行な平面部13aと、その平面部13aと上流側、下流側にそれぞれ連なって湾曲傾斜している上流側傾斜部13bと、下流側傾斜部13cによって形成されている。また、読取ガイド13は回動支点13dを中20心に回動自在に装着され、図示しない付勢手段により原稿台ガラス62方向へ付勢されている。また、ガイドマイラ14は読取位置Q付近で原稿台ガラス62と接し、原稿画像はこのガイドマイラ14と原稿台ガラス62を通して読取られる。
The
以上が、ADFを利用した場合の原稿を読み取る装置構成である。 The above is the apparatus configuration for reading a document when ADF is used.
引き続き、複写機の説明を、構成図18を元に続ける。 The description of the copying machine will be continued based on the configuration diagram 18.
イメージスキャナ部201において、202は原稿圧板、203は原稿台硝子(プラテン硝子)である。原稿204は原稿台硝子203上に、記録面を図示下方に向けて載置され、原稿圧板202によってその位置が固定される。205は蛍光ランプ、ハロゲンランプ、もしくはキセノンランプ等の光源であり、原稿台硝子203上に置かれた原稿の記録面を照射する。本実施形態において光源205は蛍光ランプであるとする。
In the
原稿204からの反射光は、ミラー206、207に導かれ、レンズ208により収束されてリニアCCDイメージセンサ等の画像読み取り素子(以下、CCD)210の受光面上に結像する。CCD210は、原稿からの反射光を赤(R)、緑(G)、青(B)の各色に分解して読み取り、画像処理部209へ送る。
Reflected light from the original 204 is guided to mirrors 206 and 207, converged by a
本実施形態において、CCD210は、約7500画素の受光画素が1ラインに並び、RGBそれぞれ計3ライン分で構成され、A3サイズの原稿の短手方向297mmを600dpi(ドット/インチ)で読み取りことが可能である。同様に、A3サイズの原稿の短手方向297mmを400dpiで読み取るためには、RGBそれぞれ約5000画素の1次元イメージセンサであれば良い。
In the present embodiment, the
尚、蛍光ランプ205、ミラー206が速度vで、ミラー207がv/2で副走査方向(CCD210の並びに直交する方向)に機械的に移動することにより、反射光は一定の距離を経てCCD210に結像され、読み取られるようになる。
The
211は均一な色度を有する基準白色板であり、レンズ208によるシェーデイングムラやCCD201の各画素の感度ムラを補正するための基準色度値の算出に用いられる。
A reference white plate 211 having uniform chromaticity is used to calculate a reference chromaticity value for correcting shading unevenness by the
本発明の実施形態に係る画像処理装置としての画像処理部209についての詳細は後述するが、CCD210で読み取られた信号をディジタル信号に変換し、印刷の際のインク色に対応したイエロー(Y)、マゼンタ(M)、シアン(C)、ブラック(Bk)の各色成分画像を形成してプリンタ部200へ送出する。イメージスキャナ部201における1回の原稿スキャン(1回の副走査に相当)につき、Y,M,C,Bkのうちの1つの色成分画像がプリンタ部200に送出され、従って4回スキャンを行い、各スキャンで得られた記録色成分の画像信号を順次プリンタ部200に送出することにより、1回のプリント処理が完了する。尚、画像処理部209内に必要十分なメモリがあれば1回の走査読み取り結果(4回分のスキャン結果)をそのメモリに格納させることで、プリンタ部への送出を1回にすることができる。
The details of the
このようにして画像処理部209より送出されたY,M,C,Bkの画像信号は、プリンタ部200内のレーザードライバ212へと送られる。レーザードライバ212は、各画素の画像信号に応じてレーザーダイオードを発光させることによりレーザー光を出力する。該レーザー光はポリゴンミラー214、f−θレンズ215、ミラー216を介して感光ドラム217上を走査する。
The Y, M, C, and Bk image signals sent from the
219〜222は現像器であり、イエロー、マゼンタ、シアン、ブラックの現像材(トナー等) によりそれぞれの色成分に対応した静電潜像の現像を行う。4個の現像器219〜222が順次感光ドラム217に当接し、前記のレーザー光照射により形成された感光ドラム静電潜像に対して、対応する色トナーにより現像を行う。
223は転写ドラムであり、用紙カセット224又は225より給紙された記録用紙を静電気の作用で巻き付け、感光ドラム217上で現像されたトナー像をこの記録用紙上に転写する。4色成分を使用した記録処理では、この転写ドラム223が4回転することで各色成分のトナーが重畳記録される。そして、最後に剥離爪で記録用紙を転写ドラム223から剥離させ、定着ユニット226にむけて搬送して定着させ、装置外部へ排紙させる。以上が図18に示すカラー複写機の動作概要である。
A transfer drum 223 winds the recording paper fed from the
尚、記録紙の裏面、多重記録を行うべく、図示の如く排紙口に分岐搬送路が設けられている。この搬送路を介して再度装置に取込むことで、裏面への記録及び多重記録等を行うことを可能にしている。 In addition, in order to perform multiple recording on the back side of the recording paper, a branch conveyance path is provided at the paper discharge port as shown in the figure. By taking in the apparatus again through this conveyance path, it is possible to perform recording on the back surface, multiple recording, and the like.
(画像処理部の構成)図1(a)は、主として図18における画像処理部209の機能的な構成を示すブロック図である。イメージスキャナ部201によって読み取られた画像の3色分解信号R1,G1,B1の1つであるG1信号は、文字/画像判定部111に入力される。文字/画像判定部111は、G1信号から注目画素が文字や線画などの線画像か、または、写真や印刷画像などの階調画像であるかを判定し、その結果を文字/画像判定信号TIとして出力する。
(Configuration of Image Processing Unit) FIG. 1A is a block diagram mainly showing a functional configuration of the
尚、文字/画像判定部111は、例えば3×3画素程度(読み取り解像度で適宜変更してもよい)のG成分信号を取り出し、その中の最大値と最小値との差分を算出し、その差分が所定値以上あるか否かによって判定を行う。これは、文字や線画のエッジ付近では、この差分(輝度変化)が大きな値となり、逆に中間調画像の場合には差分が小さいという現象を利用したものである。また、印刷画像と区別するためには、上記3×3画素の領域を拡張して画像の特徴と空間周波数特性との対応関係から判別することができる。 The character / image determination unit 111 takes out a G component signal of, for example, about 3 × 3 pixels (which may be changed as appropriate depending on the reading resolution), calculates the difference between the maximum value and the minimum value, The determination is made based on whether the difference is equal to or greater than a predetermined value. This utilizes the phenomenon that this difference (luminance change) becomes a large value near the edge of a character or line drawing, and conversely, in the case of a halftone image, the difference is small. Further, in order to distinguish from the print image, the above 3 × 3 pixel region can be expanded and discriminated from the correspondence between the image characteristics and the spatial frequency characteristics.
文字/画像判定信号TIは、黒文字/色文字/画像判定信号発生部117及び空間フィルタ係数記憶部112に出力される。空間フィルタ係数記憶部112は例えばROM等で構成されるものであり、注目画素が文字や線画を示す場合(例えばTI=‘1')には、文字用の空間フィルタ係数が、階調(中間調画像)を示す場合(例えばTI=‘0')は、階調画像用空間フィルタ係数がそれぞれ選択され出力される。
The character / image determination signal TI is output to the black character / color character / image determination signal generation unit 117 and the spatial filter
図2(a)および図2(b)は、空間フィルタ係数記憶部112に記憶される、文字用および階調画像用の空間フィルタ係数Kijの一例を示す図である。従来の文字用および階調画像用の空間フィルタの直流成分は「1」であるのに対して、本実施形態での文字用または階調画像用の空間フィルタ図2(a)または図2(b)はその直流成分を「0」にしている。即ち、エッジ成分のない平坦な画像に対し、従来の空間フィルタリング後の出力は入力画像値をそのまま出力するのに対して、本実施形態の空間フィルタ処理後の出力値は「0」となる。
FIG. 2A and FIG. 2B are diagrams showing an example of the spatial filter coefficients Kij for characters and gradation images stored in the spatial filter
図1(a)に戻って、カラー画像の3色分解信号R1,G1,B1の3信号は、第1の色空間変換部102に入力され、明るさを表す明度信号L1、及び色味を表す色度信号(Ca1,Cb1)に変換される。明度信号L1及び色度信号(Ca1,Cb1)は、測色的にCIE1976(L*a*b*)色空間の3変数L*,a*,b*やCIE1976(L*u*v*)色空間の3変数L*,u*,v*でもよいし、さらに簡易的に決められた任意の色空間の変数でもよい。ただし、本実施形態においては、3色分解信号R,G,Bからの簡易的な変換が可能であることから、L1、Ca1、Cb1を用いている。
Returning to FIG. 1A, the three signals of the three color separation signals R1, G1, and B1 of the color image are input to the first color
次式(1)は、3色分解信号R,G,Bを明度及び色度信号L1,Ca1,Cb1に簡易的に変換する変換式の一例を示す。 The following equation (1) shows an example of a conversion equation for simply converting the three color separation signals R, G, and B into lightness and chromaticity signals L1, Ca1, and Cb1.
L=(R+2G+B)/4
Ca=(R−G)/2 式(1)
Cb=(R+G−2B)/4
第1の色空間変換部102によって変換された明度信号L1、及び色度信号(Ca1,Cb1)は、遅延部103に入力される。遅延部103では、明度信号L1がNライン分、色度信号(Ca1,Cb1)が(N/2)ライン分それぞれ記憶される。より具体的には、5×5画素の空間フィルタ処理を行うとき、過去4ライン分の明度信号L1と、現ラインの明度信号L1の、計5ライン分のデータとなってエッジ強調抽出部113に入力される。又、この際色度信号は、過去の4/2=2ライン分及び現在のラインの、計3ライン分のデータとなって、彩度量抽出部114に入力される。
L = (R + 2G + B) / 4
Ca = (RG) / 2 Formula (1)
Cb = (R + G-2B) / 4
The lightness signal L1 and the chromaticity signals (Ca1, Cb1) converted by the first color
エッジ強調量抽出部113は、空間フィルタ係数記憶部112から出力された空間フィルタ係数Kij(文字/画像判定信号TIに依存する)によって5×5の画素ブロック内の明度信号をそれぞれ演算し、注目画素(5×5画素ブロックにおける中心位置の画素)のエッジ強調量εを算出し、出力する。
The edge enhancement
5×5の明度信号をL1ij(i=1〜5、j=1〜5)で表すと、エッジ強調量εは次の様に求められる。ε=(ΣL1ij*Kij)/C(ここで、*は乗算、Cは、エッジ強調された成分を正規化する、正規化定数である。)
このエッジ強調量εは、エッジ強調量分配部116に供給される。エッジ強調量分配部116は、このエッジ強調量εと彩度量抽出部114からの彩度信号S、そして、後述する無彩色/有彩色判定部115からの判定信号KCに基づいて、明度信号L1のエッジ強調量εlと色度信号(Ca1,Cb1)のエッジ強調補正量εcを生成し、エッジ強調部104に出力する。
When a 5 × 5 lightness signal is represented by L1ij (i = 1 to 5, j = 1 to 5), the edge enhancement amount ε is obtained as follows. ε = (ΣL1ij * Kij) / C (where * is a multiplication, and C is a normalization constant that normalizes the edge-enhanced component.)
This edge enhancement amount ε is supplied to the edge enhancement amount distribution unit 116. The edge enhancement amount distribution unit 116 is based on the edge enhancement amount ε, the saturation signal S from the saturation
遅延部103によって遅延された色度信号(Ca1,Cb1)は、図1では図示していないが、実際には遅延された2ライン及び現在のラインの、計3ライン分のデータとなって、彩度量抽出部114に入力される。これを受け、彩度量抽出部114は、上記の如く色の鮮やかさを表す彩度信号Sを生成し、出力する。
Although not shown in FIG. 1, the chromaticity signals (Ca1, Cb1) delayed by the
ここで、色度信号(Ca1,Cb1)から彩度信号Sの生成方法について簡単に説明する。色度信号(Ca1,Cb1)が、上述のCIE1976(L*,a*,b*)色空間における信号(a*,b*)やCIE1976(L*,u*,v*)色空間における信号(u*,v*)であるとき、彩度信号Sは、式(2)によって決められる。尚、式において記号「^」はべき乗を表すものである。 Here, a method for generating the saturation signal S from the chromaticity signals (Ca1, Cb1) will be briefly described. The chromaticity signal (Ca1, Cb1) is a signal (a *, b *) in the CIE 1976 (L *, a *, b *) color space or a signal in the CIE 1976 (L *, u *, v *) color space. When (u *, v *), the saturation signal S is determined by equation (2). In the equation, the symbol “^” represents a power.
S=(Ca1^2+Cb1^2)^0.5 式(2)
更に、簡易的には、彩度信号Sは式(3)によって決められても良い。
S = (Ca1 ^ 2 + Cb1 ^ 2) ^ 0.5 Formula (2)
Further, for simplicity, the saturation signal S may be determined by the equation (3).
S=MAX(Ca1,Cb1) 式(3)
ここで、関数MAX(A,B)は、変数A,Bの絶対値の大きな方の値を出力するものである。
S = MAX (Ca1, Cb1) Formula (3)
Here, the function MAX (A, B) outputs a value having a larger absolute value of the variables A and B.
さて、エッジ強調量分配部116には上記の如く、エッジ強調量εと彩度信号Sの他に後述する無彩色/有彩色判定部115からの判定信号KCも入力される。
In addition to the edge enhancement amount ε and the saturation signal S, the edge enhancement amount distribution unit 116 also receives a determination signal KC from an achromatic / chromatic
無彩色/有彩色判定部115は、その画素が、白黒(無彩色)であるかカラー(有彩色)であるかを判定し、判定信号KCを出力する。本実施形態では、無彩色/有彩色判定部115への入力信号は、色の鮮やかさを表す彩度信号Sとし、この信号によって無彩色/有彩色を判定する。
The achromatic / chromatic
但し、前述のように、彩度信号Sは遅延部103によって遅延された2ライン+現ラインの計3ライン分の色度信号(Ca1,Cb1)に基づいて彩度量抽出部114が生成するものであるから、無彩色/有彩色判定部115への入力信号は、彩度信号S及びそのもとの信号である色度信号(Ca1,Cb1)を入力してもよい。(その場合、図1に示す彩度量抽出部114へ引かれた(Ca1,Cb1)信号線は、彩度信号Sとともに無彩色/有彩色判定部115へと延長される)。
However, as described above, the saturation signal S is generated by the saturation
以下、図8を用いて、本実施形態の遅延部103とその周辺部であるエッジ強調量抽出部113、彩度量抽出部114、無彩色/有彩色判定部115について詳細に説明する。
Hereinafter, the
第1の色空間変換部102から出力された明度信号L1、及び色度信号(Ca1,Cb1)は、遅延部103のラインメモリ801〜804によって、明度信号の中心画素に同期させるため、ラインメモリ805及び806で色度信号Ca1を2ライン分、ラインメモリ807及び808によって色度信号Cb1を2ライン分それぞれ記憶する。
Since the lightness signal L1 and the chromaticity signals (Ca1, Cb1) output from the first color
今、中心ラインをjラインとすると明度信号L1は、j−2,j−1,j,j+1ラインが記憶され、現在のラインj+2ラインを含めた5ライン分の明度信号がエッジ強調量抽出部113に入力される。 Now, assuming that the center line is j line, the lightness signal L1 stores j-2, j-1, j, j + 1 lines, and the lightness signal for five lines including the current line j + 2 lines is the edge enhancement amount extraction unit. 113 is input.
エッジ量強調部113では、遅延部103から5×5の明度信号と空間フィルタ係数記憶部112からの5×5のフィルタ係数に基づいてエッジ強調後のデータ(エッジ強調量ε)を作成することになるから、上述の式から、単純に考えて、乗算器25個、加算器24個から構成できる。
The
一方、色度信号Ca1、Cb1に対しては、遅延部103のラインメモリ805〜808によって、それぞれj,j+1ラインが記憶され、現在のラインj+2を含めた3ライン分の色度信号Ca1、Cb1が彩度量抽出部114、無彩色/有彩色判定部115に供給される。
On the other hand, for the chromaticity signals Ca1 and Cb1, the
さらに本実施形態では、彩度信号Sは無彩色/有彩色判定信号KCの算出にあたって、前述の式(2)や式(3)を用いた算出方法を、j,j+1,j+2の3ライン分のデータを用いて空間的な処理を行うことも考えられる。例えば、彩度信号Sは、注目画素を取り囲む3×3サイズの隣接画素(8画素)の彩度信号を平均して、その平均値を彩度信号Sに代表することもできるし、無彩色/有彩色判定信号KCも、同様に3×3サイズの隣接画素の判定結果を統計的に処理し、代表値を無彩色/有彩色判定信号KCとすることもできる。 Further, in the present embodiment, the saturation signal S is calculated for the three lines j, j + 1, and j + 2 by using the above-described equations (2) and (3) when calculating the achromatic / chromatic color determination signal KC. It is also possible to perform spatial processing using this data. For example, the saturation signal S can be obtained by averaging the saturation signals of adjacent pixels (8 pixels) of 3 × 3 size surrounding the target pixel, and the average value can be represented by the saturation signal S. Similarly, for the chromatic color determination signal KC, the determination result of the adjacent pixels of 3 × 3 size may be statistically processed, and the representative value may be the achromatic / chromatic color determination signal KC.
(色判定信号KCの算出)続いて、求められた彩度信号Sによって、判定信号KCを算出する方法について説明する。今、彩度信号Sが小さい時はその画素が白黒(無彩色)であり、彩度信号Sが大きい時はその画素がカラー(有彩色)であるとする。よって、簡易的には、判定信号KCは、予め決められた閾値ρを用いて式(4)によって決められる。 (Calculation of Color Determination Signal KC) Next, a method for calculating the determination signal KC from the obtained saturation signal S will be described. When the saturation signal S is small, the pixel is black and white (achromatic color). When the saturation signal S is large, the pixel is color (chromatic color). Therefore, simply, the determination signal KC is determined by Expression (4) using a predetermined threshold ρ.
(S<ρのとき)KC=無彩色
(S≧ρのとき)KC=有彩色 式(4)
(明度信号に対するエッジ強調補正量の生成)以下、エッジ強調量分配部116に入力されたエッジ強調量ε、彩度信号S、判定信号KCに基づいてエッジ強調補正量εl、εcを生成する処理について説明する。
(When S <ρ) KC = achromatic color (when S ≧ ρ) KC = chromatic color Formula (4)
(Generation of Edge Enhancement Correction Amount for Lightness Signal) Hereinafter, processing for generating edge enhancement correction amounts εl and εc based on the edge enhancement amount ε, the saturation signal S, and the determination signal KC input to the edge enhancement amount distribution unit 116. Will be described.
まず、明度信号L1に対するエッジ強調補正量εの分配を多くし、無彩色信号画素に対しては全エッジ強調量εをεlに割り当てる。また、予め決められた同値以上に彩度を有する画素に対しては、明度信号に対するエッジ補正を行わない。 First, the distribution of the edge enhancement correction amount ε with respect to the lightness signal L1 is increased, and the total edge enhancement amount ε is assigned to εl for achromatic signal pixels. Further, edge correction for the brightness signal is not performed for pixels having a saturation equal to or higher than a predetermined value.
この処理を図3のフローチャート及び図4の模式図を用いて説明する。図3に示すステップS1において、注目画素の無彩色/有彩色判定信号KCに従い分岐する。判定信号KCが無彩色のとき(ステップS1の判定がYESの場合)、全エッジ強調量εをεlに割り当てるため、ステップS2で乗算係数γに“1”を割り当て、ステップS6でεl=γε、つまり、εlにεが割り当てられる。 This process will be described with reference to the flowchart of FIG. 3 and the schematic diagram of FIG. In step S1 shown in FIG. 3, the process branches according to the achromatic / chromatic determination signal KC of the target pixel. When the determination signal KC is achromatic (when the determination in step S1 is YES), in order to assign the total edge enhancement amount ε to εl, “1” is assigned to the multiplication coefficient γ in step S2, and εl = γε, That is, ε is assigned to εl.
また、ステップS1で判定信号KCが有彩色である場合には、彩度信号Sが所定値ηより大きいかどうかを判断し(ステップS3)、もしηより大きい場合には、乗算係数γに“0”を割り当て(ステップS4)、ステップS6でεlにγε、つまり“0”を割り当てる。 If the determination signal KC is a chromatic color in step S1, it is determined whether the saturation signal S is larger than a predetermined value η (step S3). 0 ”is assigned (step S4), and γε, ie,“ 0 ”is assigned to εl in step S6.
一方、ステップS3で彩度Sがη以下の場合には、注目画素が有彩色か無彩色かの判断が困難なことになるので、ステップS5、ステップS6で乗算係数γ、さらにはεlを次式(5)で決定する。 On the other hand, when the saturation S is equal to or less than η in step S3, it is difficult to determine whether the target pixel is a chromatic color or an achromatic color. Therefore, in step S5 and step S6, the multiplication coefficient γ and further εl are set. Determined by equation (5).
γ=(1−(S−α)/(η−α))
εl=(1一(S−α)/(η−α))ε 式(5)
上記処理を行うと、α,η及びγの関係は図4に示す通りになる。即ち、実質的に無彩色であると判断してもよい場合には、γは“1”になり、有彩色であると判断できる場合には、γは“0”になる。そして、その中間状態では、図示の如く彩度信号Sに応じて0〜1の値(つまり、小数点)の値をとる。
γ = (1− (S−α) / (η−α))
εl = (1 ((S−α) / (η−α)) ε (5)
When the above processing is performed, the relationship among α, η, and γ is as shown in FIG. That is, γ is “1” when it can be determined that the color is substantially achromatic, and γ is “0” when it can be determined that the color is chromatic. In the intermediate state, a value of 0 to 1 (that is, a decimal point) is taken according to the saturation signal S as shown.
(色度信号に対するエッジ強調補正量の生成)次に、色度信号(Ca1,Cb1)に対するエッジ強調補正量εcについて説明する。 (Generation of Edge Enhancement Correction Amount for Chromaticity Signal) Next, the edge enhancement correction amount εc for the chromaticity signal (Ca1, Cb1) will be described.
色度信号に対しては、基本的に明度信号のそれとは逆に、彩度が高い(鮮やかな色)程、色度信号に対するエッジ強調量εの分配を多くし、無彩色信号画素に対してはエッジ補正を行わず、さらには対象画素の色度信号も除去する。 For chromaticity signals, contrary to that of lightness signals, the higher the saturation (brighter colors), the more the edge enhancement amount ε is distributed to the chromaticity signals, and for achromatic signal pixels. Then, edge correction is not performed, and the chromaticity signal of the target pixel is also removed.
これは、カラー複写機などの画像形成装置において、黒い文字などの複写画像に対し、色成分が残ると、視覚的に画像品位が悪くなるからである。換言すれば、このような画素に対しては色成分をカットし、完全な無彩色信号に色補正する必要がある。 This is because in an image forming apparatus such as a color copying machine, if a color component remains in a copy image such as a black character, the image quality is visually deteriorated. In other words, for such a pixel, it is necessary to cut the color component and correct the color to a complete achromatic signal.
この処理を図5のフローチャート及び図6の模式図を用いて説明する。図5のステップS11において、まず、対象画素に対する処理を、無彩色/有彩色判定信号KCにしたがって切り替える。すなわち、判定信号KCが無彩色を示す時(図中のステップS11がYESの場合)、前述のようにエッジ強調量εcを0にするため、ステップS12で乗算係数γに0をセットし、ステップS18の演算を行うことでεcを0にさせる。 This process will be described with reference to the flowchart of FIG. 5 and the schematic diagram of FIG. In step S11 of FIG. 5, first, the process for the target pixel is switched in accordance with the achromatic / chromatic color determination signal KC. That is, when the determination signal KC indicates an achromatic color (when step S11 in the figure is YES), in order to set the edge enhancement amount εc to 0 as described above, the multiplication coefficient γ is set to 0 in step S12. Εc is set to 0 by performing the calculation of S18.
また、ステップS11の判断がNOの場合には、ステップS13に進み、彩度信号Sと閾値λ2とを比較する。S>λ2である場合には、ステップS14で乗算係数γを1にして、ステップS18の演算を行い、εcを(1−ε/κ)の値にさせる。 If the determination in step S11 is NO, the process proceeds to step S13, and the saturation signal S is compared with the threshold value λ2. If S> λ2, the multiplication coefficient γ is set to 1 in step S14, the calculation in step S18 is performed, and εc is set to a value of (1−ε / κ).
また、ステップS13で、S≦λ2であると判断した場合には、ステップS15に進み、彩度Sとλ1とを比較し、S<λ1であるか否かを判断する。この不等式が満足する揚合には、注目画素は無彩色であると判断して良いから、ステップS19で乗算係数γを0にして、εcを0にする。 If it is determined in step S13 that S ≦ λ2, the process proceeds to step S15, where the saturation S and λ1 are compared to determine whether S <λ1. If the inequality is satisfied, it may be determined that the pixel of interest is an achromatic color, so the multiplication coefficient γ is set to 0 and εc is set to 0 in step S19.
そして、ステップS15で、S≧λ1であると判断した場合には、乗算係数γを彩度信号Sに応じた値(0と1の間の値)にするため、ステップS17で次式より決定する。 When it is determined in step S15 that S ≧ λ1, the multiplication coefficient γ is determined from the following equation in step S17 in order to set the multiplication coefficient γ to a value corresponding to the saturation signal S (a value between 0 and 1). To do.
γ=(S−λ1)/(λ2−λ1) 式(6)
そして、ステップS18で色度信号に対するエッジ強調補正量εcは、式(7)に従って求められる。
γ = (S−λ1) / (λ2−λ1) Equation (6)
In step S18, the edge enhancement correction amount εc for the chromaticity signal is obtained according to the equation (7).
εc=γ(1−ε/κ) 式(7)
(ここでκは正規化定数である)
上記の結果、乗算係数γは、図6に示す如く色度信号Sに応じた値をとるようになる。つまり、乗算係数γは、無彩色の間(閾値λ1未満)“0”の値をとり、εc=0となる。また、彩度Sが閾値λ1からλ2まではγ=(S−λ1)/(λ2−λ1)となり、彩度Sが高くなるに従い連続的に増加する。そして、彩度Sが閾値λ2より高い時、γ=1となるので、εc=1−ε/κとなる。
εc = γ (1-ε / κ) Equation (7)
(Where κ is a normalization constant)
As a result, the multiplication coefficient γ takes a value corresponding to the chromaticity signal S as shown in FIG. That is, the multiplication coefficient γ takes a value of “0” during an achromatic color (less than the threshold λ1), and εc = 0. Further, γ = (S−λ1) / (λ2−λ1) when the saturation S is between the threshold values λ1 and λ2, and increases continuously as the saturation S increases. When the saturation S is higher than the threshold λ2, γ = 1, so εc = 1−ε / κ.
以上説明したようにして生成されたエッジ強調補正量εl、εcは、L、Ca、Cb信号とともにエッジ強調部104に供給される。
The edge enhancement correction amounts εl and εc generated as described above are supplied to the
エッジ強調部104は、遅延部103からの明度信号Lに対しては、エッジ強調補正量εlを加算し、同色度信号Ca、Cbに対しては、エッジ強調補正量εcを乗算する処理を行い、L2,Ca2,Cb2を生成する。すなわち、
L2=εl+L1
Ca2=εc*Ca1
Cb2=εc*Cb1 式(8)
となる。
The
L2 = εl + L1
Ca2 = εc * Ca1
Cb2 = εc * Cb1 Formula (8)
It becomes.
式(8)から分かるように、信号Lに対してはエッジ補正量εlを加算することにより、彩度が高く明度にエッジ強調したくない画素では(εl=0)となり、明度は保存される。一方、信号Ca、Cbに対してはエッジ補正量εcを乗算することにより、彩度が低く無彩色に近いほど、εcが徐々に小さな値になり、実質的に無彩色となった場合には、εc=0となる。つまり、彩度の値が低いほど、対象画素そのものの色度成分が除去されやすく制御することになる。 As can be seen from the equation (8), by adding the edge correction amount εl to the signal L, the pixel having high chroma and not desired to be edge-enhanced becomes (εl = 0), and the lightness is preserved. . On the other hand, by multiplying the signals Ca and Cb by the edge correction amount εc, as the saturation is lower and the color is closer to an achromatic color, the εc gradually becomes a smaller value. , Εc = 0. That is, the lower the saturation value, the easier the removal of the chromaticity component of the target pixel itself is controlled.
ここで、色度信号のエッジ強調に対する色味(色相)の保存性について説明する。図7は、色度信号(Ca1,Cb1)方向を座標軸とする色度座標を表す。説明を簡単にするために、Ca及びCb軸はCIE1976(L*,a*,b*)色空間におけるa*,b*軸とする。 Here, the preservability of the hue (hue) with respect to the edge enhancement of the chromaticity signal will be described. FIG. 7 represents chromaticity coordinates with the chromaticity signal (Ca1, Cb1) direction as a coordinate axis. For simplicity of explanation, the Ca and Cb axes are assumed to be a * and b * axes in the CIE 1976 (L *, a *, b *) color space.
また、a*,b*軸の交点0は、無彩色を表し、交点0より離れる程彩度が高く、a*軸となす角θが色味(色相)を表す。また、紙面に垂直な方向が明度L*になる。さて今、対象画素が色度信号Ca1(702)、Cb1(703)の時、この色は色度座標上でベクトル701で表される。式(8)に従い、色度信号(Ca1,cb1)にエッジ補正量εcを乗算し、生成されるエッジ強調後の信号(Ca2,Cb2)は(εcCa1,εcCb1)となるわけであるから、色度座標上でベクトル704で表されるが、図のようにa*軸とのなす角θは変わらず、色味の変化はないことを表している。すなわち強調により、鮮やかさは強調されるが、色味の変化には実質的に影響がないことがわかるであろう。
Further, the
さて、上記のようにエッジ強調処理がなされると、その信号L2,Ca2,Cb2は第2色空間変換部105に供給され、ここでR,G,Bの値に逆変換される。
When the edge enhancement processing is performed as described above, the signals L2, Ca2, and Cb2 are supplied to the second color
次式(9)は、明度及び色度信号L2,Ca2,Cb2を3色分解信号R2、G2、B2に変換する変換式の一例を示しており、先に説明した式(1)から求まるものである。 The following equation (9) shows an example of a conversion equation for converting the lightness and chromaticity signals L2, Ca2, and Cb2 into the three-color separation signals R2, G2, and B2, and is obtained from the equation (1) described above. It is.
R2=(4L+5Ca+2Cb)/4
G2=(4L−3Ca+2Cb)/4
B2=(4L+Ca−6Cb)/4 式(9)
以下、R2,G2,B2信号に逆変換された3色分解信号は、輝度/濃度変換部106に入力され、濃度信号C1,M1,Y1に変換される。尚、RGBからCMY表色系への変換自体は公知であるので、その方法についてここでは説明しない。
R2 = (4L + 5Ca + 2Cb) / 4
G2 = (4L-3Ca + 2Cb) / 4
B2 = (4L + Ca-6Cb) / 4 Formula (9)
Thereafter, the three-color separation signal inversely converted into R2, G2, and B2 signals is input to the luminance /
さて、濃度信号C1,M1,Y1は、次に色補正部107によって、下地除去(UCR処理として知られている)を行い、黒成分信号Kの生成や、下色除去、色補正などの色処理がなされ、濃度信号C2,M2,Y2,K2が出力される。
The density signals C1, M1, and Y1 are then subjected to background removal (known as UCR processing) by the
本実施形態においては、色補正部107は、黒文字/色文字/画像判定信号発生部117からのTC信号に従ってこの処理を行う。黒文字/色文字/画像判定信号発生部117は、前述の無彩色/有彩色判定部115の判定結果である色判定信号KC、及び文字/画像判定部111の判定結果であるTI信号を入力し、上記のTC信号を生成するものである。
In the present embodiment, the
例えば、画像信号に対しては、ハイライトの色再現性を重視した色補正を行い、色文字や黒文字信号に対しては、下地色を飛ばしたハイライト再現を除去した色補正を行う。同様に、2値化部108では公知の誤差拡散処理を用いて多値画像を2値化したC3、M3、Y3、K3信号を送出し、続いて、平滑化/解像度変換部109にも文字/画像判定部111の判定結果である判定信号TIを参照しながら、TI=1(文字部分)には、主走査方向、もしくは副走査方向に高解像度に変換してノッチ処理に代表されるエッジ補正処理が施される。
For example, color correction is performed with emphasis on highlight color reproducibility for image signals, and color correction is performed on color characters and black character signals without highlight reproduction with the background color skipped. Similarly, the
尚、平滑化/解像度変換部109は、操作部(不図示)からの指示、あるいは画像処理モード(例えば、写真用や、文字用など)に応じて、機能自体を制御することも可能である。それぞれの処理を実施し、平滑化/解像度変換部109の出力であるC4、M4、Y4、K4信号をプリンタ部200に出力することでカラー画像が印字記録される。
Note that the smoothing / resolution conversion unit 109 can also control the function itself in accordance with an instruction from an operation unit (not shown) or an image processing mode (for example, for photographs or characters). . Each process is performed, and the C4, M4, Y4, and K4 signals that are the output of the smoothing / resolution conversion unit 109 are output to the
(原稿種別判定部)上述した画像処理は、以下で説明する原稿種別判定部118の判定結果を判定し動作する。図9〜17は、原稿種別判定部118の説明図となる。
(Document Type Determination Unit) The image processing described above operates by determining the determination result of the document
原稿種別判定部118は、上述した無彩色/有彩色判定部115より判定信号KCが有彩色として出力された画素信号を主走査方向、副走査方向に認識して最終的な判断をする。
The document
図9は、本実施形態における原稿種別判定部118の構成例を示すブロック図である。本実施形態において、原稿種別判定部118は、無彩色/有彩色判定手段115が出力する色判定信号KCを順次計算して、原稿がモノクロなのか、カラーなのかを判定する。
FIG. 9 is a block diagram illustrating a configuration example of the document
まず、無彩色/有彩色判定部115から順次送られてくる無彩色/有彩色判定信号KCは、原稿種別判定部を実施する有効領域か否かを識別領域制限部901にて制限する。識別領域制限部901は、図19−a,bに示すように、原稿全読み取り領域1801に対し、主走査、副走査方向にて以後の判定処理に制限を与える領域を説明するものである。
First, the identification
図19−aは、主走査方向に制限を与えるものである。図では、網点で覆った3つの領域に示す部分(領域)で主走査方向に制限を加える。本実施例では3つの領域で説明しているが、制限を加える領域はこの数に限定されるものではない。 FIG. 19A gives a restriction in the main scanning direction. In the figure, the main scanning direction is limited by the portions (areas) shown in the three areas covered by the halftone dots. Although this embodiment has been described with three areas, the number of areas to be restricted is not limited to this number.
この制限を与える領域(網点部分)は、例えば、レジスタ設定(1901〜1905)によって設定することができる。レジスタ設定値は、ROM122で予めセットしておいても良いし、入出力部124を介して、操作部より入力することで設定しても構わない。
The area (halftone dot portion) that gives this restriction can be set by register settings (1901 to 1905), for example. The register setting value may be set in advance in the
本実施例では、原稿種別判定で利用する主走査方向領域は、Reg−width:1905により決定される。 In this embodiment, the main scanning direction area used for the document type determination is determined by Reg-width: 1905.
よって起点となる左端の破線から、Reg_main_mask:1901までの領域(=主走査マスク0領域)、Reg_main0_enable:1902からReg_main1_mask:1903の領域(=主走査マスク1領域)、さらに、Reg_main1_enable:1904からReg_width:1905の領域(=主走査マスク2領域)の各領域で、制限を行う構成となる。
Therefore, the region from the leftmost broken line as the starting point to Reg_main_mask: 1901 (=
同様に図19−bでは、上部の破線を基点として、Reg_sub0_mask:1906までの領域(=副走査マスク0領域)、Reg_sub0_enable:1907からReg_sub1_mask:1908の領域(=副走査マスク1領域)、Reg_sub1_enable:1909からReg_sub2_mask:1910の領域(=副走査マスク2領域)、さらに、Reg_sub2_enable:1911からReg_height:1912まで(=副走査マスク3領域)の各領域で制限を行う。
Similarly, in FIG. 19B, with the upper broken line as the base point, the region from Reg_sub0_mask: 1906 (=
図19−aと同様に、副走査方向の領域制限を行ったところ(網点部分)も、4つに制限されるものではなく、さらに、それらに領域の数、範囲の設定には、図19−aで説明したように、レジスタ設定(1906〜1912)によって設定することができる。レジスタ設定値は、ROM122を介して予めセットしておいても良いし、入出力部124を介して、操作部より入力することで設定しても構わない。
Similarly to FIG. 19-a, the area restriction in the sub-scanning direction (halftone dot part) is not limited to four. Furthermore, for setting the number of areas and the range thereof, FIG. As described in 19-a, it can be set by register setting (1906 to 1912). The register setting value may be set in advance via the
また、副走査の有効判定領域は、Reg_height:1912にて制限される。 In addition, the sub-scanning validity determination area is limited by Reg_height: 1912.
続いて、以上説明したマスク領域における制限方法について説明する。 Next, the limiting method in the mask area described above will be described.
図22は、主走査、副走査方向にそれぞれ設定される制限内容の一例である。図では、2ビットで制限する内容を規定しているが、制限の内容に応じてビット数を増やしても構わない。 FIG. 22 is an example of the restriction contents set in the main scanning and sub-scanning directions, respectively. In the figure, the content restricted by 2 bits is defined, but the number of bits may be increased according to the content of the restriction.
まず、“00”は、以降に説明する「主走査・副走査方向の連続性を検出しない」、“01”は「主走査方向のみ連続性の検出を行い、副走査方向をマスク:強制的に判定に反映させない」、“10”は“01”と逆で、「副走査方向のみ連続性の検出を行い、主走査方向をマスク:強制的に判定に反映させない」、最後に、“11”は、「有効領域と同様」として動作させる。 First, “00” is “not detecting continuity in the main scanning / sub-scanning direction” described later, and “01” is “detecting continuity only in the main scanning direction and masking the sub-scanning direction: forced "10 is not reflected in determination", "10" is opposite to "01", "continuity is detected only in the sub-scanning direction and the main scanning direction is masked: not forcibly reflected in determination", and finally "11 “Is operated as“ same as effective area ”.
以上、主走査用、副走査用の各マスク領域は独立に制限する方法を設定する。
続いて、独立に制限された設定方法が、重なる領域でどのように振舞うか、図23,24を用いて説明する。
As described above, a method for independently limiting the mask regions for main scanning and sub-scanning is set.
Next, how the independently limited setting method behaves in the overlapping region will be described with reference to FIGS.
図24は、以上説明したように、主走査/副走査のマスク制限が重なっている様子を表すものである。図では説明を簡単にするために、主走査方向のマスク領域:2401と副走査のマスク領域:2402は1つずつ設定された場合を想定し、その重なる領域(斜線で表示):2403は1つ存在する(複数のマスク領域を設定する場合は、2403の領域は複数存在することになる)。
FIG. 24 shows a state in which the main scanning / sub-scanning mask restrictions overlap as described above. In order to simplify the explanation in the figure, it is assumed that the
識別領域制限部901内部では、図23に示す、主走査/副走査の各2bitで構成される制限値を判断して、注目画素における以降の処理への振る舞いを決定する。この制限決定ブロック:図23は、入力として、主走査用のマスク設定値:2302と副走査用のマスク設定値:2303を用い、制限決定部:2301にてその振る舞いを決定し、マスク設定値:2304を出力し、制限方法が決定される。
In the identification
尚、上述のように領域制限係数記憶部119には、例えば主走査ラインを認識できる主走査同期信号:HSYNC、副走査同期信号:VSYNC、それに1画素毎に同期した信号であるビデオクロック:VCLKとから領域の制限を内部カウンタ(不図示)のカウンタ値を利用して、画素毎に上記制限方法を切り替えて利用できるようになっている。
As described above, the region limit
斜線の部分について本実施例では、主走査/副走査どちらの設定を優先するかを決定するレジスタ値:2305によって切り替えられるようになっている。 In the present embodiment, the hatched portion can be switched by a register value: 2305 for determining which of the main scanning and sub-scanning settings is to be prioritized.
レジスタ値:2305は、ROM122を介して予めセットしておいても良いし、入出力部124を介して、操作部より入力することで設定しても構わない。
The register value: 2305 may be set in advance via the
設定の構成としては、以下の6つを選ぶ、もしくは初期値として設定しておくことができる。 As the setting configuration, the following six can be selected or set as initial values.
・ 主走査優先
・ 副走査優先
・“00”
・“01”
・“10”
・“11”
以上の制限によって、原稿領域制限手段901は、そのままKC信号を送出するか、以降の判定に制限を与えてKC信号を変更して送出する。
• Main scan priority • Sub scan priority • “00”
・ "01"
·"Ten"
・ "11"
Due to the above restriction, the document area restriction means 901 sends the KC signal as it is, or gives a restriction to the subsequent determination to change and send the KC signal.
本実施形態ではさらに、領域制限された信号を主走査方向の判定結果(主走査カウント部)と、副走査方向の判定結果(副走査カウント部)をもとに最終的な判定を行う特徴をもつ。 In the present embodiment, the region-limited signal is further subjected to final determination based on the determination result in the main scanning direction (main scanning count unit) and the determination result in the sub scanning direction (sub scanning count unit). Have.
以上原稿領域判別部901では、図24で示す白い領域では、図23で“11”に相当し、主走査の判定用はACS_MAINとして、副走査判定用として、ACS_SUBとして、それぞれ出力される。 24, the white region shown in FIG. 24 corresponds to “11” in FIG. 23, and the main scan determination is output as ACS_MAIN, and the sub-scan determination is output as ACS_SUB.
網点の領域では、主走査・副走査毎に制限を与えた設定値がACS_MAIN、ACS_SUBに反映され、“01”と設定されていれば、指定される領域でACS_SUBは強制的に無彩色と判定した信号を生成し、ACS_MAINではそのままKC信号が創出される。 In the halftone dot area, the setting values that are restricted for each of the main scanning and the sub scanning are reflected in ACS_MAIN and ACS_SUB, and if set to “01”, ACS_SUB is forced to be achromatic in the specified area. The determined signal is generated, and a KC signal is created as it is in ACS_MAIN.
判定斜線の領域では、図23のレジスタ値2305の設定に従い、ACS_MAIN、ACS_SUBの値が確定することになる。
In the shaded area, the values of ACS_MAIN and ACS_SUB are determined according to the setting of the
以上に示す制限を行うことで、色ずれなどの原因で偽色が発生した場合では、有彩色と判定された画素の信号を強制的に無彩色にするだけでなく、副走査方向の判定にはその色情報を伝播することで、判定精度を落とさず、原稿の有彩/無彩を判断することが可能となる。 By performing the above-mentioned restrictions, when a false color occurs due to a color shift or the like, not only the pixel signal determined to be a chromatic color is forced to be an achromatic color but also the determination in the sub-scanning direction. By propagating the color information, it becomes possible to determine the chromatic / achromatic color of the document without degrading the determination accuracy.
同様に他の要因で主走査方向に偽色が発生しやすい場合では、“01”を指定することで、副走査方向の判定をマスク(ACS_SUBを強制的に無彩色)し、主走査方向の判定に活用することが可能となる。 Similarly, when false colors are likely to occur in the main scanning direction due to other factors, by specifying “01”, the sub-scanning direction determination is masked (ACS_SUB is forcibly achromatic), and the main scanning direction It can be used for judgment.
(主走査方向の判定処理)
始めに、主走査方向に有彩色が存在することを判定する部である主走査カウント部903につながる処理について説明する。
(Determination processing in the main scanning direction)
First, a process connected to the main
原稿領域判別部901にて領域制限を受けた無彩色/有彩色信号KCは、ACS_MAIN信号として出力され、第1主走査色群認識部902にて、主走査方向に連続した有彩色画素の固まりが所定数以上あるか否かを判定する。構成例を図10に示す。
The achromatic / chromatic signal KC subjected to the region restriction by the document
図10において、第1主走査色群認識部902は、主走査方向に有彩色と判定された画素が所定数M(≧0)連続しているかの判定を行う主走査連続性認識部1001と、主走査連続性認識部1001が認識した、M画素連続した有彩色画素の固まりを、色の固まりとして認識する色群認識部1002とから構成される。第1主走査色群認識部902にて判定された結果は、その結果をCOL_EXIST_M(1ビット)信号として、後段の主走査カウント部903に送出する。
In FIG. 10, the first main scanning color
まず、主走査連続性認識部1001について説明する。まず、このような主走査に有彩色画素の連続性を観測する理由は、例えば図11に示すように、黒い縦線1101のエッジ(1102、1103:図のグレー部分)において、何らかの理由(レンズのMTF差、収差、ミラー台の振動など)で、主走査方向に色ずれが発生した場合に、本来無彩色領域にも関わらず、エッジ1102、1103に偽色が発生し、有彩色画素が副走査方向に縦線1101の長さ分だけ存在することになる。
First, the main scanning
その結果生じる誤判定部分を間違ってカウントしてしまうと原稿の種別検知(カラー原稿かモノクロ原稿か)を誤って判定しまうため、本処理のような主走査方向の連続性の認識処理を組み込んで、誤判定を回避している。 If the erroneously determined parts resulting from this are counted incorrectly, the document type detection (color document or monochrome document) will be erroneously determined, so a continuity recognition process in the main scanning direction like this process is incorporated. , Avoiding misjudgment.
続いて主走査連続性認識部1001の処理について説明する。まず、処理の開始時に連続性を観測するためのカウンタ1011をリセットする。本実施形態では、有彩色の連続度を観測するのに、アップカウンタを想定している。よって、連続度を認識するために、副走査同期信号(VSYNC)と、主走査同期信号(HSYNC)とのタイミングにより、コピーシーケンスの動作の始まりか、もしくは、スキャナ動作の始まりを示す動作タイミングに合わせて、内部のアップカウンタをリセットする。
Next, processing of the main scanning
また、内部のカウンタは、連続した有彩色判定信号を観測するので、有彩色が連続していない場合は、その都度、リセットされ、さらに、主走査方向に有彩色の存在を観測する目的から、1主走査ラインの終了時にもリセットされ、計3つの条件で内部カウンタはリセットされることになる。リセット信号生成部1010は、VSYNC,HSYNC及びACS_MAIN信号から、上述した条件に従ってカウンタ1011のリセット信号を生成し、カウンタ1011のリセット端子に供給する。
In addition, since the internal counter observes a continuous chromatic color determination signal, if the chromatic color is not continuous, it is reset each time, and further, for the purpose of observing the presence of the chromatic color in the main scanning direction, It is also reset at the end of one main scanning line, and the internal counter is reset under a total of three conditions. The reset
内部カウンタの値は、1ビデオクロック(VCLK)毎に増加し、リセットされずにカウンタ値が、所定のカウント値(M、M>0とする)に達すると、カウント値と所定値Mとを比較するコンパレータ1012が検出信号を発生する。所定値Mは、後述するROM122に記憶されている。
The value of the internal counter increases every video clock (VCLK), and when the counter value reaches a predetermined count value (M, M> 0) without being reset, the count value and the predetermined value M are A
図12を用いて、主走査連続性認識部1001の動作についてさらに説明する。ここでは、例えば1主走査ライン上のある9画素の判定信号の処理に着目して説明を行う。図のマスは1画素における無彩色/有彩色判定信号KCの結果を示し(厳密には、領域制限をうけたACS_MAIN信号を示す)、白いマスは有彩色と判定された画素、黒いマスは無彩色と判定された画素を表す。図では、N−4が古い時刻の結果、N+4が新しい時刻の判定結果を示す。
The operation of the main scanning
本実施形態に示す主走査連続性認識部1001の内部カウンタ1011は、N−4からNまでの4 画素については連続してカウントアップされ、N+1の画素で無彩色と判定されたACS_MAIN信号を観測することにより、リセット信号発生部1010がリセット信号を発生し、内部カウンタ1011をリセットする。そして、有彩色画素のN+2画素から再びカウントを開始し、N+3画素までカウントすると、N+4画素が無彩色と判定された画素なので、再び内部カウンタはリセットされる。
The
このようなカウント動作の間、カウント値が所定値Mに達すると、コンパレータ1012から色群認識処理部1002内部のカウンタ1021をカウントアップするパルス信号が出力される。このパルス信号はまた、主走査連続性認識部1001のカウンタ1011のリセット信号としても用いられ、これにより再度M画素連続した有彩色画素の有無が判定される。
During the counting operation, when the count value reaches the predetermined value M, a pulse signal for counting up the counter 1021 in the color group
また、本実施形態で用いた内部カウンタ1011は、有限のビット数で構成されているので、カウンタ値OUTが最大値を示した場合には、それ以上カウントアップしないように制限を持たせている。
In addition, since the
続いて、主走査色群認識処理内の色群認識処理部1002について説明する。色群認識処理1002も、主走査連続性認識部1001と同様に、内部にアップカウンタ1021と、カウンタ1021のカウント値を所定の閾値MGと比較するコンパレータ1022及びリセット信号生成部1020とから構成されている。
Next, the color group
主走査連続性認識部1001が所定の連続度Mの有彩色画素を検出すると、コンパレータ1012が出力するパルス信号により、色群認識処理1002内部のカウンタ1021がカウントアップする。そして、コンパレータ1022によって、カウンタ1021のカウント値と所定の値MG(後述のROM122内に設定された値)と比較後、所定の値以上であれば、注目する主走査ラインに有彩色の固まりが存在したことを知らせる:COL_EXIST_M信号にビット“1”を立てる。そうでない場合は、COL_EXIST_Mは、有彩色の固まりが無いものとして、ビットは“0”を立て、後段の主走査カウント部に注目するラインにおける色の存在を知らせる。
When the main scanning
リセット信号生成部1020は、主走査連続性認識部1001のリセット信号生成部1010と同様、VSYNC及びHSYNC信号から、1主走査ラインの終了時及び、コピーシーケンスの動作の始まり、スキャナ動作の始まりを示す動作タイミングに合わせて、カウンタ1021のリセット信号を発生する。
Similar to the reset
次に、色群認識部1002の具体的な動作を、図13を用いて説明する。図13のマスは、図12で説明したものと同様に、白が有彩色と判定された画素を、黒が無彩色と判定された画素を示す。ここでは、動作内容をわかりやすくするために、主走査連続性認識部1001の動作とあわせて説明する。また、主走査連続性認識部1001で検出する連続度Mが“2”、色群認識部1002で色の固まりを認識するパラメータMGが“3”であるものとして動作の説明を進める。
Next, a specific operation of the color
図13の例では、主走査連続性を認識する内部カウンタ1011は、有彩色画素N−4、N−3によりカウンタ値が2を示すので、コンパレータ1012がパルス信号を発生し、色群認識部1002内部のカウンタ1021は、カウントアップし、1となる。コンパレータ1012のパルス信号はカウンタ1011のリセット信号として用いられるので、カウンタ1021がカウントアップした後にリセットされる。
In the example of FIG. 13, the
続いて、N−1で再び、カウンタ1011のカウンタ値が“2”に達するので、カウンタ1021はカウントアップしてカウンタ値は2となる。N+1画素が無彩色のため、その時点でカウンタ1011はリセットされ、次にN+3画素のときに、カウンタ1021のカウンタ値が3にカウントアップされる。この時点で、コンパレータ1022は、カウント値がMGと同じ値になったので、COL_EXIST_M信号に“1”を立てて、注目するラインに色が存在したことを後段の主走査カウント部903に知らせる。また、COL_EXIST_Mの値は、一度“1”になると、カウンタ1021の値が同じ主走査ラインに対する処理では減ることが無いため、その主走査ラインに対しては“1”が保持される。
Subsequently, since the counter value of the
尚、図13において、N+8画素まで処理したときの、カウンタ1011とカウンタ1021のカウンタ値は、それぞれ、“2”、“5”となり、カウン1011はリセットされる。カウンタ1021もカウンタ1011と同様に有限のビットで構成されているので、カウンタ値が最大の値を示したときは、それ以上カウントアップしないように制限を持たせている。
In FIG. 13, the counter values of the
また、上述のように、カウンタ1021は、カウンタ1011と同様に、コピーシーケンスの動作時、スキャンの動作時、さらに1主走査ライン毎にリセットされる。以上、第1主走査色群認識部902の動作内容を説明した。このように第1主走査色群認識部902は、注目する主走査ライン上に、先ず所定数の有彩色画素の連続度と、その連続した固まりが所定の数だけ存在したか否かを判定するものである。
Further, as described above, the counter 1021 is reset at the time of the copy sequence operation, the scan operation, and further every main scanning line, similarly to the
続いて、主走査カウント部903について説明する。図14に示すように、主走査カウント部903も、基本的な構成は主走査連続性認識部1001や色群認識部1002と同様に、アップカウンタ911及びリセット信号生成部910によって構成されている。
Next, the main
カウンタ911のリセットは、コピーシーケンスの動作初期、スキャンの動作初期に行われ、第1主走査色群認識部902のカウンタ1011、1021の様な、1主走査ライン毎のリセットは行わない。リセット信号生成部910は、VSYNC及びHSYNC信号から、これら所定のタイミングでカウンタ911をリセットするリセット信号を生成する。
The
カウンタ911のカウントタイミングは、1主走査ライン内の処理で、第1主走査色群認識部902の処理が終了し、COL_EXIST_Mの値が確定した時となる。つまり、1主走査ライン上で、設定された連続度Mを有する有彩色画素の固まりがMG回検出され、注目するラインに色の存在が確定した後にカウントされる。
The count timing of the
このとき、第1主走査色群認識部902内部のカウンタ1021は、主走査カウント部903のカウントが終了するまで、リセットされない。また、主走査カウント部903内部のカウンタ911は、主走査色群認識部902内部のカウンタ群と同様に、カウント値が最大値になったら、それ以上カウントしないように制限されている。以上が、主走査方向の判定処理に関する説明である。
At this time, the counter 1021 in the first main scanning color
(副走査方向の判定処理)
続いて、副走査方向の判定処理について図15〜図17を用いて説明する。副走査方向の判定処理は、主走査方向と同様に、第2主走査色群認識部904(副走査用)と副走査カウント部905から構成される。副走査方向の判定処理の特徴は、注目するラインに色画素の固まりの存在を認識したら、副走査方向にその連続性を観測することによって、副走査方向の色の存在を認識することである。
(Sub-scanning direction determination process)
Subsequently, determination processing in the sub-scanning direction will be described with reference to FIGS. Similar to the main scanning direction, the sub-scanning direction determination process includes a second main scanning color group recognition unit 904 (for sub-scanning) and a
まず、第2主走査色群認識部904について、図15を用いて説明する。第2主走査色群認識部904は、主走査方向の判定部に用いられた第1主走査色群認識部902と全く同じ構成を有する(コンパレータ1012で比較される連続度MがSに、コンパレータ1 022で比較される連続度MGがSGに、色群認識手段の出力COL_EXIST_MがCOL_EXIST_Sへそれぞれ変化することを除き、図15中の1401は、図10中の1001と、図15中の1042は、図10中の1002と同様の回路構成を有する)。
First, the second main scanning color
本実施形態の特徴でもあるが、このように主走査、副走査の判定処理に、同一の処理を行う構成を用いている理由は、主走査、副走査の各処理判定において、処理に用いるパラメータを独立して設定可能とすることにより、異なる判定精度を持たせるためにある。よって、本実施形態では、副走査判定用の連続度を認識するパラメータSとSGは、主走査判定用のMとMGとは異なる値を持つことができる。 Although it is also a feature of this embodiment, the reason for using the same processing for the main scanning and sub-scanning determination processing is that the parameters used for processing in the main scanning and sub-scanning processing determination This is to provide different determination accuracy by enabling the setting independently. Therefore, in this embodiment, the parameters S and SG for recognizing the continuity for sub-scanning determination can have different values from M and MG for main-scanning determination.
例えば、副走査方向に色ずれが激しい場合、主走査方向の第一主走査色群認識部902の設定パラメータで、連続度Mや、固まりを認識パラメータMGの感度を副走査方向のそれらと変更することである程度対応可能だが、そうすると、その領域自体の判定感度(有彩色の有無を判別する精度)そのものを落としてしまう場合ある。
For example, when the color misregistration is severe in the sub-scanning direction, the continuity M and the sensitivity of the mass recognition parameter MG are changed from those in the sub-scanning direction with the setting parameters of the first main scanning color
本発明では、原稿領域判別部901で特定する領域によって、入力されるKC信号を偽色が発生しやすい画素の判定信号を強制的に変更するのではなく、主走査・副走査方向に独立に判定する信号として、ACS_MAIN信号と、ACS_SUB信号それぞれにレジスタ設定に応じて制限された信号を送出することでその改善を行っている。
In the present invention, the input KC signal is not forcibly changed in the main scanning / sub-scanning direction independently of the input signal of the pixel that is likely to generate a false color depending on the area specified by the document
続いて、副走査カウント部905の処理を、図16、17を用いて説明する。図16は、副走査カウント部905の内部処理ブロックを表すものである。まず、副走査カウント部905内部の副走査連続性認識部1501について説明する。副走査連続性認識部1501は、主走査連続性認識部1001と同様、内部カウンタ1511とコンパレータ1512及びリセット信号生成部1510で構成されている。
Subsequently, processing of the
まず、前段の第2主走査連続性認識部904から送出されたCOL_EXIST_Sの値を、1主走査ラインにおける判定結果が確定した後にカウントする。このとき、主走査連続性認識部1001で連続度を認識したのと同様に、コンパレータ1512によって、副走査方向の連続度を認識する(閾値lineと比較する)。比較の結果、カウンタ1511の値が、閾値を超えていれば、後段の副走査方向カウント部1502のカウンタ1521にてカウントアップする。
First, the value of COL_EXIST_S sent from the second main scanning
副走査連続性認識部1501が有するリセット信号生成部1510は、コピーシーケンスの動作初期、スキャンの動作初期にカウンタ1511をリセットするリセット信号を生成する。カウンタ1511はまた、コンパレータ1512が副走査方向カウント部1502のカウンタ1521をカウントアップする信号によってもリセットされる。
A reset
同様に、副走査方向カウント部1502が有するリセット信号生成部1520は、コピーシーケンスの動作初期、スキャンの動作初期にカウンタ1521をリセットするリセット信号を生成する。
Similarly, a reset
次に、図17を用いて副走査カウント部905の処理について説明する。図17においてN−4からN+8は主走査方向の画素位置を表し、M−4からM+3は、副走査方向のライン数を表し、白いマス目は有彩色と判定された画素を、黒いマス目は無彩色と判定された画素を表す。動作をわかりやすく説明するために、連続性を判定するための閾値を、S=3、SG=2、line=3と設定する。
Next, processing of the
N−4画素で1主走査ラインが始まり、N +8画素で1主走査ラインが終了するとすると、第2主走査色群認識部904において、N−4画素からN−2画素、N−1画素からN+1画素において、有彩色画素が3連続するため、この時点でCOLOR_EXIST_Sが1になり、ラインが終了した時点でM−4ラインにおける副走査連続性認識部1501の内部カウンタ1511はインクリメントされ1となる。
When one main scanning line starts with N-4 pixels and one main scanning line ends with N + 8 pixels, the second main scanning color
続いて、M−3、M−2ラインもM−4ラインと同一パターンであるため、カウンタ1511のカウント値は3となる。このとき、コンパレータ1512により閾値line(=3)に達したことが検出され、副走査方向カウント部1502の内部カウンタ1521はカウントアップする。カウンタ1521のカウントアップが確定すると、コンパレータ1512の出力信号によってカウンタ1511はリセットされる。
Subsequently, since the M-3 and M-2 lines have the same pattern as the M-4 line, the count value of the
引き続き、M−1ラインにおいても3連続の有彩色画素が2回検出されるため、COLOR_EXIST_Sが1になり、ラインが終了した時点でM−1ラインにおける副走査連続性認識部1501の内部カウンタ1511はインクリメントされ1となる。同様に処理を続け、M+1ラインでカウンタ1511のカウント値が3となったところで、再びコンパレータ1512によってカウンタ1521がインクリメントされ、カウンタ値は2となる。
Subsequently, since three continuous chromatic color pixels are detected twice also in the M-1 line, COLOR_EXIST_S becomes 1, and when the line ends, the
また、副走査カウント部905内部にあるカウンタ1511及び1512は、いずれもカウンタが最大値を示すと、それ以上カウントアップしないように制限を持たせている。以上、副走査カウント部905ならびに、副走査方向の判定処理に関する説明である。
In addition, the
このように、主走査、副走査方向の判定部による結果が確定(1スキャン終了を示し、これは、フォワードスキャンでもバックスキャンのいずれでもよい)すると、それぞれのカウント結果を識別部906で観測する。 As described above, when the result of the determination unit in the main scanning and sub-scanning directions is confirmed (indicating the end of one scan, which may be either forward scan or back scan), each count result is observed by the identification unit 906. .
識別部906は、主走査カウント部903のカウント値MAIN_UC及び副走査カウント部905SUB_UCから、所定の判定条件に従って原稿がモノクロかカラーかを判定する。
The identification unit 906 determines whether the document is monochrome or color according to a predetermined determination condition from the count value MAIN_UC of the main
判定条件は任意に決定可能であるが、例えば主走査、副走査のカウント結果のいずれかの値が1以上になっていれば、原稿中に色が存在しているとして、読み込まれた原稿をカラー処理専用の処理に設定して、所定の画像処理を実施することになる。あるいは、主走査カウント部903のカウント値が1以上で、かつ副走査カウント部905のカウント値が3以上の場合カラー原稿と判断することもできる。このように、副走査カウント部のカウント値を組み合わせることによって、黒色の輪郭に発生する偽色を誤検出する可能性が削減できる。
The determination condition can be arbitrarily determined. For example, if the value of one of the main scanning and sub-scanning count values is 1 or more, it is determined that a color exists in the original and the read original is Predetermined image processing is performed by setting processing dedicated to color processing. Alternatively, when the count value of the main
識別部906で、原稿がカラーと判定されれば、カラートナーを用いる等の画ラー画像に適した画像処理を行い、プリンタ部200でカラーの画像形成処理が行われる。又、原稿がモノクロと判定されれば、黒色トナーのみを用いる等、モノクロ処理に最適な画像処理がなされ、プリンタ部200で画像形成処理が行われる。
If the identification unit 906 determines that the document is color, image processing suitable for an image-rendered image such as using color toner is performed, and the
尚、本実施形態において図1(a)として示した画像処理部209は、各部をハードウェアで構成することも可能であるが、例えば図1(b)に示すように、CPU121がROM122に記憶されたプログラムを、RAM123をワークエリアとして用いて実行する構成でも実現することができる。この場合、イメージスキャナ部201及びプリンタ部200とのやりとりは入出力部124を介して行う。RAM123はCPU121のワークエリアとしてのみならず、イメージスキャナ部201から読み込んだ画像データや、プリンタ部200へ送信する印刷データの一次保存場所としても用いられる。また、RAM123以外の読み書き可能な記憶装置として、ハードディスクドライブ等の外部記憶装置を用いることも可能である。
In the present embodiment, the
また、図1(a)の各部のうち、CPU処理の負荷が大きな部分のみハードウェアで構成し、それ以外の部分をCPUがプログラムを実行することで実現することも可能であることは言うまでもない。 Further, it is needless to say that, among the units in FIG. 1A, only a part with a large CPU processing load is configured by hardware, and the other part can be realized by the CPU executing a program. .
以上説明したように本実施形態によれば、色ずれの発生によりモノクロ原稿内の黒の細線の縁が色ずれしても、その色ドットの計数方法工夫することで、原稿の種別検知を高い精度で行うことができる。詳しくは、主走査、副走査方向の判定方法において、色ドットの連続性を観測することで、従来のような単純加算による方法に比べ、色ずれに対しラチチュードの高いアルゴリズムが実現できた。さらに、主走査、副走査方向に判定する連続度の精度を独立して設定することができるため、スキャナの機種毎、あるいは1台毎に適切な閾値を設定することが可能になり、さらにラナチュードを広くもつことができた。 As described above, according to the present embodiment, even if the edge of a black thin line in a monochrome original is color-shifted due to the occurrence of color misregistration, the color type counting method is devised to increase the type detection of the original. Can be done with precision. Specifically, by observing the continuity of the color dots in the determination method in the main scanning and sub-scanning directions, an algorithm having a high latitude for color misregistration can be realized as compared with the conventional method using simple addition. Furthermore, since the accuracy of the continuity in the main scanning and sub-scanning directions can be set independently, it is possible to set an appropriate threshold value for each scanner model or for each scanner. Could have
尚、実施形態で説明した各判定のための閾値は、動的に適宜変更可能としてもよい。変更するタイミングとしては、例えば原稿画像のサイズを検知する部を備え、その検出部からの信号によるなどが考えられる。 Note that the thresholds for each determination described in the embodiment may be dynamically changed as appropriate. As the timing of the change, for example, a part that detects the size of the document image is provided, and a signal from the detection part may be considered.
また、閾値をイメージスキャナ部の特性(読み取り位置ずれの量など)によって設定することによって、イメージスキャナ部の個体差に影響されずに精度の高い判定が可能になるほか、イメージスキャナ部を交換可能もしくは複数のイメージスキャナ部から選択して使用可能な場合などであっても常に適切な判定が可能になる。 In addition, by setting the threshold value according to the characteristics of the image scanner (such as the amount of reading position deviation), it is possible to make highly accurate judgments without being affected by individual differences in the image scanner, and the image scanner can be replaced. Alternatively, appropriate determination can always be made even when a plurality of image scanner units can be selected and used.
[他の実施形態]
尚、本発明は、複数の機器(例えばホストコンピュータ、インターフェイス機器、スキャナ、プリンタなど)から構成されるシステムに適用しても、上記の如く、一つの機器からなる複写機に適用してもよい。
[Other Embodiments]
The present invention may be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a scanner, a printer, etc.), or may be applied to a copying machine composed of a single device as described above. .
本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 An object of the present invention is to supply a storage medium (or recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus. Needless to say, this can also be achieved by reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
さらに、記憶媒体から読み出きれたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Further, after the program code read from the storage medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the card or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
Claims (6)
注目画素が有彩色か無彩色かを判定する無彩色判定手段、
上記無彩色判定手段から送出される信号を、指定した領域毎に判定信号値を変更する判定信号変更手段、
上記判定信号変更手段の結果を、第1の方向の判定/第2の方向の判定との独立に設定できる設定手段、
上記設定手段に応じて、前記第1の方向、前記第2の方向にそれぞれ独立に原稿中の有彩画素を計数する第1、第2の有彩画素係数手段
上記第1、第2の有彩画素係数手段の結果により画像データをカラー原稿として処理すべきかモノクロとして処理すべきかを判断する判定手段とを有することを特徴とする画像処理装置。 An image processing apparatus for determining whether the image data is a color document or a monochrome document from image data having a predetermined number of pixels in each of a first direction and a second direction orthogonal to the first direction,
Achromatic color determination means for determining whether the pixel of interest is a chromatic color or an achromatic color;
A determination signal changing means for changing a signal sent from the achromatic color determining means for each designated area;
Setting means capable of setting the result of the determination signal changing means independently of the determination in the first direction and the determination in the second direction;
First and second chromatic pixel coefficient means for counting chromatic pixels in the document independently in the first direction and the second direction, respectively, in accordance with the setting means. An image processing apparatus comprising: determining means for determining whether image data should be processed as a color original or monochrome according to a result of the chromatic pixel coefficient means.
注目画素が有彩色か無彩色かを判定する無彩色判定手段、
上記無彩色判定手段から送出される信号を、指定した領域毎に判定信号値を変更する判定信号変更手段、
上記判定信号変更手段の結果を、第1の方向の判定/第2の方向の判定との独立に設定できる第1設定手段、
上記第1設定手段で、第1の方向と第2の方向が重なる領域で、設定手段を選択する第2の設定手段、
上記第1、第2の設定手段に応じて、前記第1の方向、前記第2の方向にそれぞれ独立に原稿中の有彩画素を計数する第1、第2の有彩画素係数手段
上記第1、第2の有彩画素係数手段の結果により画像データをカラー原稿として処理すべきかモノクロとして処理すべきかを判断する判定手段とを有することを特徴とする画像処理装置。 An image processing apparatus for determining whether the image data is a color document or a monochrome document from image data having a predetermined number of pixels in each of a first direction and a second direction orthogonal to the first direction,
Achromatic color determination means for determining whether the pixel of interest is a chromatic color or an achromatic color;
A determination signal changing means for changing a signal sent from the achromatic color determining means for each designated area;
A first setting means capable of setting the result of the determination signal changing means independently of the determination in the first direction and the determination in the second direction;
In the first setting means, in the region where the first direction and the second direction overlap, the second setting means for selecting the setting means,
According to the first and second setting means, first and second chromatic pixel coefficient means for counting chromatic pixels in the document independently in the first direction and the second direction, respectively. 1. An image processing apparatus comprising: determination means for determining whether image data should be processed as a color document or monochrome according to a result of the first and second chromatic pixel coefficient means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006283897A JP2008103917A (en) | 2006-10-18 | 2006-10-18 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006283897A JP2008103917A (en) | 2006-10-18 | 2006-10-18 | Image processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2008103917A true JP2008103917A (en) | 2008-05-01 |
Family
ID=39437918
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006283897A Withdrawn JP2008103917A (en) | 2006-10-18 | 2006-10-18 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2008103917A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009278363A (en) * | 2008-05-14 | 2009-11-26 | Canon Inc | Image processor and image processing method |
| JP2010263598A (en) * | 2009-04-10 | 2010-11-18 | Sony Corp | Video signal processing device and display device |
| JP2011023999A (en) * | 2009-07-16 | 2011-02-03 | Fuji Xerox Co Ltd | Image reading apparatus |
| JP2011188207A (en) * | 2010-03-08 | 2011-09-22 | Canon Inc | Image determining apparatus, and image determining method |
-
2006
- 2006-10-18 JP JP2006283897A patent/JP2008103917A/en not_active Withdrawn
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009278363A (en) * | 2008-05-14 | 2009-11-26 | Canon Inc | Image processor and image processing method |
| US8384964B2 (en) | 2008-05-14 | 2013-02-26 | Canon Kabushiki Kaisha | Image processing apparatus and image processing method |
| JP2010263598A (en) * | 2009-04-10 | 2010-11-18 | Sony Corp | Video signal processing device and display device |
| JP2011023999A (en) * | 2009-07-16 | 2011-02-03 | Fuji Xerox Co Ltd | Image reading apparatus |
| JP2011188207A (en) * | 2010-03-08 | 2011-09-22 | Canon Inc | Image determining apparatus, and image determining method |
| US9007666B2 (en) | 2010-03-08 | 2015-04-14 | Canon Kabushiki Kaisha | Determining whether an image is color |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8203773B2 (en) | Image processing method, image processing apparatus, image forming apparatus, and recording medium for chromatic content determination | |
| US20090097072A1 (en) | Image processor and image processing method | |
| JP4387584B2 (en) | Image processing apparatus and image processing method | |
| JPH09139843A (en) | Image processor | |
| JP2002218235A (en) | Image processing apparatus and image forming apparatus | |
| US6909803B2 (en) | Text color detection for copier image processing | |
| JP2005124075A (en) | Image processing apparatus and image processing method | |
| US7961951B2 (en) | Image processing apparatus capable of accurately removing isolated point noise, image processing method, and computer readable medium | |
| US7978365B2 (en) | Document type discriminating apparatus | |
| JP2001036752A (en) | Image processing apparatus and method | |
| US20070236707A1 (en) | Image processing apparatus, image processing method and image processing program | |
| EP0559471B1 (en) | Image forming apparatus | |
| US7236266B2 (en) | Image processing apparatus and image processing method | |
| JP2008103917A (en) | Image processing device | |
| JP2000172850A (en) | Image processing apparatus and method | |
| JP4454786B2 (en) | Image processing apparatus and control method thereof | |
| JP3313739B2 (en) | Image processing apparatus and method | |
| JPH0541796A (en) | Copying machine | |
| JPH1040373A (en) | Image processing apparatus and method | |
| JP3272739B2 (en) | Image processing apparatus and method | |
| JP4085584B2 (en) | Image processing apparatus and image forming apparatus | |
| JPH06110988A (en) | Image processing device | |
| JP2007214922A (en) | Image processing apparatus and image processing method | |
| JPH1132213A (en) | Image processing apparatus and image processing method | |
| JP2006270148A (en) | Image processing method, image processor and image forming apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20100105 |