JP4480651B2 - Image forming apparatus, image processing apparatus, image processing method, program, and storage medium - Google Patents

Image forming apparatus, image processing apparatus, image processing method, program, and storage medium Download PDF

Info

Publication number
JP4480651B2
JP4480651B2 JP2005267209A JP2005267209A JP4480651B2 JP 4480651 B2 JP4480651 B2 JP 4480651B2 JP 2005267209 A JP2005267209 A JP 2005267209A JP 2005267209 A JP2005267209 A JP 2005267209A JP 4480651 B2 JP4480651 B2 JP 4480651B2
Authority
JP
Japan
Prior art keywords
chromatic
scanning direction
data
image
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2005267209A
Other languages
Japanese (ja)
Other versions
JP2007081847A (en
Inventor
平 松岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2005267209A priority Critical patent/JP4480651B2/en
Publication of JP2007081847A publication Critical patent/JP2007081847A/en
Application granted granted Critical
Publication of JP4480651B2 publication Critical patent/JP4480651B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、電子写真法を使用した画像形成に関し、より詳細には、原稿を機械的に送りながら画像処理を実行し、画像処理結果に対応した印刷モードで画像形成を行う、画像形成装置、画像処理装置、画像処理方法、プログラムおよび記憶媒体に関する。   The present invention relates to image formation using electrophotography, and more specifically, an image forming apparatus that executes image processing while mechanically feeding a document and performs image formation in a print mode corresponding to the image processing result, The present invention relates to an image processing apparatus, an image processing method, a program, and a storage medium.

電子写真法を使用した画像形成装置は、多色化および多機能化が進められており、オート・ドキュメント・フィーダ(ADF)を備え、フルカラー画像を出力することが可能な、所謂、多機能周辺機器(Multi-Function-printer/peripheral:MFP)として提供されることが多くなってきている。特に、フルカラー画像形成装置の画像形成においては、シアン(C)、マゼンタ(M)、イエロー(Y)、およびブラック(Bk)の4色に関する画像処理を行い、対応する基本色の潜像を感光体上に形成させ、対応するトナーによる現像の後、紙、またはプラスチック・シートなどの転写材上に着色像を転写・定着して印刷物がユーザに対して提供される。   An image forming apparatus using electrophotography has been promoted to be multi-colored and multi-functional, is equipped with an auto document feeder (ADF), and can output a full-color image, so-called multi-functional peripheral It is increasingly provided as a device (Multi-Function-printer / peripheral: MFP). In particular, in the image formation of a full-color image forming apparatus, image processing for four colors of cyan (C), magenta (M), yellow (Y), and black (Bk) is performed, and the latent image of the corresponding basic color is exposed. After being formed on the body and developed with the corresponding toner, the printed image is provided to the user by transferring and fixing the colored image onto a transfer material such as paper or a plastic sheet.

すなわち、フルカラー画像を出力することができる画像形成装置は、ADFによる読取り結果に応答して1回の作像プロセスで4基本色分の画像処理および潜像形成処理、現像処理が行われ、画像形成装置の実行する処理量およびトナーなどの消耗品などのハードウェア資源のコストおよび印刷物1枚あたりのコストが変化する。このため、画像形成装置のユーザは、印刷物を得ようとする印刷モードを、印刷を開始するに先立ち、カラーまたは単色モードから選択する操作を行う必要がある。   That is, an image forming apparatus capable of outputting a full-color image is subjected to image processing, latent image forming processing, and developing processing for four basic colors in one image forming process in response to a reading result by ADF. The amount of processing executed by the forming apparatus, the cost of hardware resources such as consumables such as toner, and the cost per printed matter change. For this reason, the user of the image forming apparatus needs to perform an operation of selecting a print mode for obtaining a printed material from a color mode or a single color mode before starting printing.

従来、上述したユーザによる操作モードの煩雑な切換を解消し、ADFを使用したイメージ・スキャナによる画像認識を向上させることで印刷コストを低下させるため、種々の検討が行われてきている。   Conventionally, various studies have been made to reduce the printing cost by eliminating the above-described complicated switching of the operation mode by the user and improving the image recognition by the image scanner using the ADF.

例えば、特開昭63−107274号公報(特許文献1)では、原稿が有彩原稿か無彩原稿かを自動的に判断し、その判断結果に応じて画像形成装置の動作モードを切換える、所謂、自動カラー判定(以下、ACSとして参照する。)が開示されている。自動カラー判定は、ユーザに対して印刷モードの切換を行わせる煩雑さを軽減するものの、MFPなどにおいて通常使用されるADFによる原稿読取りの際には、充分に機能しないことがある。すなわち、ADFは、原稿を、自動的にイメージ・スキャナの読取り領域を通過させるように送りながらイメージを取得する。このときイメージ・スキャナを固定して、イメージ・スキャナを覆うように配置されたコンタクト・ガラス上を、原稿を移動させながら、イメージ・スキャナによる画像データ取得が行われる。   For example, Japanese Patent Laid-Open No. 63-107274 (Patent Document 1) automatically determines whether a document is a chromatic document or an achromatic document and switches the operation mode of the image forming apparatus according to the determination result. Automatic color determination (hereinafter referred to as ACS) is disclosed. Although the automatic color determination reduces the complexity of causing the user to switch the print mode, it may not function satisfactorily when reading an original using an ADF normally used in an MFP or the like. That is, the ADF acquires an image while automatically sending a document so as to pass through a reading area of the image scanner. At this time, the image scanner is fixed, and image data is acquired by the image scanner while the document is moved on the contact glass arranged to cover the image scanner.

このため、自動的に送られる原稿がイメージ・スキャナの原稿送り機構に侵入する時、および排出される時に原稿の搬送が不安定になり、ショック・ジッタとして参照される問題が発生する。イメージ・スキャナは、多くの場合、原稿の幅方向である主走査方向に延びたライン状の読取り領域がR、G、Bに対応して設けられたCCDを備えており、また、ラインCCDは、R、G、Bに対応したフィルタにより形成された各色のCCDセンサが所定の間隔で配置されている。ADFにより原稿を送る場合、原稿は、ADFの原稿送り機構に侵入・排出され、このときに原稿の搬送速度が変動すると、R、G、Bのデータ・ラインが同期しなくなる現象は、ショック・ジッタとして参照される有彩色判断における問題点を生じさせる。   For this reason, when an automatically fed document enters the document feeding mechanism of the image scanner and when it is ejected, the conveyance of the document becomes unstable, causing a problem referred to as shock jitter. In many cases, the image scanner includes a CCD in which line-shaped reading areas extending in the main scanning direction, which is the width direction of the document, are provided corresponding to R, G, and B. , R, G, B CCD sensors of each color formed by filters are arranged at predetermined intervals. When an original is fed by ADF, the original enters and exits the original feed mechanism of the ADF. If the conveyance speed of the original fluctuates at this time, the phenomenon that the R, G, and B data lines are not synchronized is shock shock. This causes a problem in chromatic color judgment referred to as jitter.

上述したショック・ジッタが発生すると、白黒原稿を読込んだ場合でも、RGBの読取り位置ずれが発生するので、白黒原稿であるにも関わらずACSにより有彩原稿と判定される場合がある。この場合には、画像形成装置は、プリンタに対して4基本色分のプリント指令を発行し、プリンタは、Bk、C、M、Yの各色を使用して白黒原稿を再現することになり、Bk以外に本来では必要のない基本色のトナーの消費量を増加させてしまい、プリント出力時間の増大、プリント・コストの増加、並びに原稿のBk再現性の低下という問題を生じさせる。   When the above-mentioned shock jitter occurs, even when a black and white original is read, a RGB reading position shift occurs, so that it may be determined as a chromatic original by ACS even though it is a black and white original. In this case, the image forming apparatus issues a print command for four basic colors to the printer, and the printer reproduces a black and white document using each of the Bk, C, M, and Y colors. In addition to Bk, the consumption of toner of a basic color that is not originally necessary is increased, which causes problems such as an increase in print output time, an increase in printing cost, and a decrease in Bk reproducibility of the document.

また、現実的な問題としては、上述したショック・ジッタの問題に加え、イメージ・スキャナの読取り領域に付着したゴミなどの異物が原稿からの反射光を遮ってしまうために生じるDF(Document Feeder)スジを、有彩画素として判断してしまうことにより、ショック・ジッタの他、ACSの有彩色判定に誤差を与える原因となっていた。   Moreover, as a practical problem, in addition to the above-mentioned shock jitter problem, DF (Document Feeder) is generated because foreign matter such as dust attached to the reading area of the image scanner blocks the reflected light from the document. By determining the streak as a chromatic pixel, it causes an error in ACS chromatic color determination in addition to shock jitter.

上述した問題点に対応するために、例えば特開2001−157051号公報(特許文献2)では、原稿をコンタクト・ガラス上に固定して、反射ミラーを移動させて画像データを取得する画像形成装置であって、反射ミラーの移動速度が安定しない画像先端部での黒文字判定部のルックアップ・テーブルのパラメータを切り換える画像処理を行う処理手段を設け、画像先端部での黒文字誤判定を防止する画像形成装置が開示されている。特許文献2に開示された画像形成装置は、ショック・ジッタの影響を受けやすい領域について定常領域とは異なる色変換用ルックアップ・テーブルを設け画質劣化を防止するものであり、主走査方向および副走査方向に連続する画像特性の変化がある場合に対応することができる方法とはいえない。   In order to cope with the above-described problems, for example, in Japanese Patent Laid-Open No. 2001-157051 (Patent Document 2), an image forming apparatus that acquires image data by fixing a document on a contact glass and moving a reflecting mirror. An image for preventing black character misjudgment at the front end of the image by providing image processing for switching the look-up table parameters of the black character determination at the front end of the image where the moving speed of the reflecting mirror is not stable. A forming apparatus is disclosed. The image forming apparatus disclosed in Patent Document 2 is provided with a color conversion look-up table different from a steady region for a region susceptible to shock and jitter to prevent image quality degradation. It cannot be said that the method can cope with a case where there is a continuous change in image characteristics in the scanning direction.

特開2003−298859号公報(特許文献3)では、読み取った画像データの副走査方向の位置を監視する手段を設け、管理される副走査方向の位置に応答して色判別手段による判別動作を切換える制御手段を備える画像形成装置が開示されている。特許文献3では、副走査方向の位置をモニタしておき、ショック・ジッタの影響を受けやすい領域に対して有彩判定を行うための閾値を変更することにより、ショック・ジッタに起因した有彩判定の誤りを防止する画像形成装置が開示されている。特許文献3に開示された画像形成装置においてもショック・ジッタの影響を受けやすい領域が有彩判定に与える影響を改善することを可能とするものの、副走査方向の位置を管理しているだけではDFスジに起因する有彩判定の誤りに対応することができないという問題点があった。   In Japanese Patent Laid-Open No. 2003-289859 (Patent Document 3), a means for monitoring the position of the read image data in the sub-scanning direction is provided, and the discrimination operation by the color discrimination means is performed in response to the managed position in the sub-scanning direction. An image forming apparatus including a control unit for switching is disclosed. In Patent Document 3, the position in the sub-scanning direction is monitored, and the chromaticity attributed to shock / jitter is changed by changing the threshold value for performing chromatic determination on a region susceptible to shock / jitter. An image forming apparatus that prevents a determination error is disclosed. Even in the image forming apparatus disclosed in Patent Document 3, although it is possible to improve the influence of the region susceptible to the influence of shock and jitter on the chromatic determination, it is only necessary to manage the position in the sub-scanning direction. There was a problem that it was impossible to cope with an error in chromatic determination caused by DF stripes.

また、ACSのショック・ジッタによる有彩判定の誤りに対応するべく、上述したように彩度の低い画像データの有彩判定に用いる閾値を変化させることで、ACSに対して無彩色と判定させることも可能である。しかしながら、原稿の低彩度の領域がBkとして再現されることになり、原稿の特性によっては原稿を再現したことにはならないという不都合が生じる。
特開昭63−107274号公報 特開2001−157051号公報 特開2003−298859号公報
Further, in order to cope with an error in chromatic determination due to shock / jitter of ACS, as described above, by changing the threshold value used for chromatic determination of image data with low saturation, ACS is determined to be an achromatic color. It is also possible. However, the low-saturation area of the original is reproduced as Bk, and there is a disadvantage that the original is not reproduced depending on the characteristics of the original.
JP 63-107274 A JP 2001-157051 A Japanese Patent Laid-Open No. 2003-289859

上述したように、これまでACSに対してショック・ジッタを解消するためにルックアップ・テーブルを変更したり、副走査方向の位置を管理してショック・ジッタの発生しやすい副走査方向での位置について有彩判定のための閾値を変更することにより、ショック・ジッタに起因するACSの有彩判定の誤りを防止する技術は知られている。しかしながら、ショック・ジッタによる有彩判定の閾値レベルを変更することによる弊害を生じさせることなく、低有彩領域の印刷再現性を損ねることなくACSによる有彩色判定を向上させる技術が依然として必要とされてきた。   As described above, the position in the sub-scanning direction in which shock jitter is likely to occur by changing the look-up table in order to eliminate shock jitter with respect to ACS or managing the position in the sub-scanning direction so far. A technique for preventing an error in ACS chromatic determination due to shock / jitter by changing a threshold value for determining chromaticity for is known. However, there is still a need for a technique for improving chromatic color determination by ACS without causing adverse effects caused by changing the threshold level of chromatic determination by shock jitter and without impairing print reproducibility in low chromatic areas. I came.

本発明では、ショック・ジッタが主走査方向に連続し、副走査方向には連続しないことに着目してなされたものである。本発明では、有彩原稿を判定する有彩画素であると判定された画素の副走査方向への連続性を判定する有彩原稿判定部を設け、副走査方向に規定される副走査方向に規定される1次元ブロック(以下、副走査1次元ブロックという。)を規定し、有彩画素判定の結果生成される第2の属性値の副走査1次元ブロック内での連続性を検査して、検査の結果に応答して副走査1次元ブロック内にエントリされた画素について、その第2の属性値を置換する。第2の属性値は、さらに第1有彩領域判定部により生成された属性値から主走査方向に規定される1次元ブロック(以下、主走査1次元ブロックという。)にエントリされる画素データの論理積の結果との論理積により与えられる属性値(col)を生成するために使用される。属性値(col)は、副走査方向への連続性が検査され、その結果、属性値(col)が所定の値以上連続することに対応して、有彩判定データ(yusai1)が生成され、原稿の有彩・無彩特性に対応するプリント・モードを設定するための割り込み信号を生成するために用いられる。 The present invention has been made paying attention to the fact that shock jitter is continuous in the main scanning direction and not continuous in the sub-scanning direction. In the present invention, there is provided a chromatic document determination unit that determines continuity in the sub-scanning direction of pixels determined to be a chromatic pixel that determines a chromatic document, and in the sub-scanning direction defined in the sub-scanning direction. A defined one-dimensional block (hereinafter referred to as a sub-scanning one-dimensional block) is defined, and the continuity of the second attribute value generated as a result of the chromatic pixel determination in the sub-scanning one-dimensional block is checked. The second attribute value of the pixel entered in the sub-scanning one-dimensional block in response to the inspection result is replaced. The second attribute value is pixel data entered in a one-dimensional block defined in the main scanning direction (hereinafter referred to as a main scanning one-dimensional block) from the attribute value generated by the first chromatic region determination unit . Used to generate an attribute value (col) given by the logical product with the logical product result. The attribute value (col) is inspected for continuity in the sub-scanning direction, and as a result, the chromaticity determination data (yusai1) is generated in response to the attribute value (col) being continuous over a predetermined value, This is used to generate an interrupt signal for setting a print mode corresponding to the chromatic / achromatic characteristics of the document.

すなわち、本発明によれば、オート・ドキュメント・フィーダを備える画像形成装置であって、
画像データについて主走査方向および副走査方向に連続する複数の画素を含む2次元ブロックを割当て、前記2次元ブロックが有彩ブロックであることを判断して、有彩ブロックであることを示す属性値を生成する像域分離部と、
走査方向に規定される1次元ブロックを割当て、前記属性値を使用して前記主走査方向に有彩画素が連続することを示す属性値を生成し、副走査方向に規定される1次元ブロックを前記画像データに割当て、前記副走査方向に規定される1次元ブロックの主走査方向につき所定の画素数平均されたRGBデータを使用して生成され、かつ画素データが少なくとも有彩画素であることを示す第2の属性値が副走査方向へ所定数以上に連続したとき有彩判定データを生成する有彩原稿判定部と、
前記有彩判定データを受け取り、原稿の有彩判定を行う制御装置と
を含む、画像形成装置が提供される。
That is, according to the present invention, an image forming apparatus including an auto document feeder,
An attribute value indicating that the image data is a chromatic block by allocating a two-dimensional block including a plurality of pixels continuous in the main scanning direction and the sub-scanning direction, determining that the two-dimensional block is a chromatic block An image area separation unit for generating
A one-dimensional block defined in the sub-scanning direction is assigned with a one-dimensional block defined in the main scanning direction, and an attribute value indicating that chromatic pixels are continuous in the main scanning direction is generated using the attribute value. Is generated using RGB data obtained by averaging a predetermined number of pixels in the main scanning direction of the one-dimensional block defined in the sub-scanning direction , and the pixel data is at least a chromatic pixel. A chromatic original determination unit that generates chromatic determination data when the second attribute value indicating
An image forming apparatus is provided that includes a control device that receives the chromatic determination data and performs chromatic determination of the document.

前記有彩原稿判定部は、前記副走査方向に規定される1次元ブロックに含まれる前記画素データの前記第2の属性値の論理積または論理和を計算し、前記副走査方向に規定される1次元ブロック内の画素データの全部またはいずれか1つが有彩画素であると判断された場合に前記第2の属性値を、有彩画素を示す値で置換する副走査ブロック化部を含むことができる。 The chromatic original determination unit calculates a logical product or a logical sum of the second attribute values of the pixel data included in the one-dimensional block defined in the sub-scanning direction, and is defined in the sub-scanning direction. Including a sub-scanning blocking unit that replaces the second attribute value with a value indicating a chromatic pixel when it is determined that all or any one of the pixel data in the one-dimensional block is a chromatic pixel. Can do.

本発明の前記有彩原稿判定部は、主走査方向に連続する画素のRGBデータを平均化して有彩画素の判定を行う画素平均部を含むことができる。本発明の前記有彩原稿判定部は、前記主走査方向に規定される1次元ブロックの前記属性値の論理積を計算して前記論理積の結果で前記主走査方向に有彩画素が連続することを示す属性値を設定する主走査方向1次元ブロック化部を備えることができる。 The chromatic original determination unit of the present invention may include a pixel average unit that averages RGB data of pixels that are continuous in the main scanning direction to determine a chromatic pixel. The chromatic original determination unit of the present invention calculates a logical product of the attribute values of the one-dimensional block defined in the main scanning direction, and a chromatic pixel continues in the main scanning direction as a result of the logical product. It is possible to provide a one-dimensional blocking unit in the main scanning direction for setting an attribute value indicating this.

前記画像形成装置は、前記画像データについて割り当てられる2次元ブロックの有彩画素数がしきい値を超える場合に当該2次元ブロックを有彩ブロックとして指定するための第2有彩判定データを生成する第2有彩原稿判定部を備え、前記画像形成装置は、前記有彩判定データと前記第2有彩判定データとを受け取って論理和を計算し、前記有彩判定データおよび前記第2有彩判定データのいずれかが有彩原稿を示す場合に、有彩印刷を指令する割り込み信号を生成することができる。本発明の前記第2有彩原稿判定部は、取得された画像データ全体について有彩画素の判定を行い、前記第2有彩判定データを生成し、前記制御装置に通知することができる。 The image forming apparatus generates second chromatic determination data for designating the two-dimensional block as a chromatic block when the number of chromatic pixels of the two-dimensional block allocated for the image data exceeds a threshold value. A second chromatic original determination unit, wherein the image forming apparatus receives the chromatic determination data and the second chromatic determination data, calculates a logical sum, and calculates the chromatic determination data and the second chromatic determination data; When any of the determination data indicates a chromatic document, an interrupt signal for instructing chromatic printing can be generated. The second chromatic document determination unit of the present invention can determine chromatic pixels for the entire acquired image data, generate the second chromatic determination data, and notify the control device.

本発明の第2の構成によれば、メモリとCPUとを備える画像処理装置における画像処理方法であって、前記画像処理方法は、
オート・ドキュメント・フィーダにより画像データを取得して、メモリに格納するステップと、
取得された前記画像データを読出して主走査方向および副走査方向に連続する複数の画素を含む2次元ブロックを割当て、前記2次元ブロックが有彩ブロックであることを判断して、有彩ブロックであることを示す属性値を生成するステップと、
走査方向に規定される1次元ブロックを割当て、前記属性値を使用して前記主走査方向に有彩画素が連続することを示す属性値を生成し、副走査方向に規定される1次元ブロックを前記画像データに割当て、前記副走査方向に規定される1次元ブロックの主走査方向につき所定の画素数平均されたRGBデータを使用して生成され、かつ画素データが少なくとも有彩画素であることを示す第2の属性値が副走査方向へ所定数以上に連続したとき有彩判定データを生成するステップと、
前記有彩判定データを受け取って、原稿の有彩判定を行ない、前記原稿の有彩または無彩の判定に応答してプリンタへの割り込みを行うステップと
を前記画像形成装置に対して実行させる、画像処理方法が提供できる。
According to a second configuration of the present invention, there is provided an image processing method in an image processing apparatus including a memory and a CPU, wherein the image processing method includes:
Acquiring image data with an auto document feeder and storing it in a memory;
The acquired image data is read, a two-dimensional block including a plurality of pixels continuous in the main scanning direction and the sub-scanning direction is assigned, and it is determined that the two-dimensional block is a chromatic block. Generating an attribute value indicating that there is,
A one-dimensional block defined in the sub-scanning direction is assigned with a one-dimensional block defined in the main scanning direction, and an attribute value indicating that chromatic pixels are continuous in the main scanning direction is generated using the attribute value. Is generated using RGB data obtained by averaging a predetermined number of pixels in the main scanning direction of the one-dimensional block defined in the sub-scanning direction , and the pixel data is at least a chromatic pixel. Generating chromaticity determination data when the second attribute value indicating is consecutive in a predetermined number or more in the sub-scanning direction ;
Receiving the chromatic determination data, performing chromatic determination of the document, and causing the image forming apparatus to execute a step of interrupting the printer in response to the chromatic or achromatic determination of the document. An image processing method can be provided.

本発明では、前記副走査方向に規定される1次元ブロックに含まれる前記画素データの前記第2の属性値の論理積または論理和を計算し、前記副走査方向に規定される1次元ブロック内の画素データの全部またはいずれか1つが有彩画素であると判断された場合に前記第2の属性値を、有彩画素を示す値で置換するステップを含むことができる。 In the present invention, the logical product or logical sum of the second attribute value of the pixel data included in a one-dimensional block which is defined in the sub-scanning direction is calculated, a one-dimensional block which is defined in the sub-scanning direction When it is determined that all or any one of the pixel data is a chromatic pixel, the second attribute value may be replaced with a value indicating the chromatic pixel.

本発明では、前記主走査方向に規定される1次元ブロックの前記属性値の論理積を計算して前記論理積の結果で前記主走査方向に有彩画素が連続することを示す属性値を設定するステップを含むことができる。 In the present invention, a logical product of the attribute values of the one-dimensional block defined in the main scanning direction is calculated, and an attribute value indicating that chromatic pixels continue in the main scanning direction is set as a result of the logical product. Steps may be included.

本発明では、前記属性値および前記第2の属性値を前記画像データと共に外部記憶装置に格納するステップを実行することができる。   In the present invention, the step of storing the attribute value and the second attribute value together with the image data in an external storage device can be executed.

本発明の第3の構成によれば、上記の画像処理方法を前記画像形成装置に実行させる装置実行可能なプログラムが提供できる。   According to the third configuration of the present invention, an apparatus-executable program for causing the image forming apparatus to execute the above-described image processing method can be provided.

本発明の第4の構成によれば、上記プログラムを記憶した装置可読な記憶媒体が提供できる。   According to the fourth configuration of the present invention, a device-readable storage medium storing the above program can be provided.

本発明の第5の構成によれば、メモリと外部記憶装置とCPUとを備える画像処理装置であって、
前記メモリに画像データを格納し、画像データについて主走査方向および副走査方向に連続する複数の画素を含む2次元ブロックを割当て、前記2次元ブロックが有彩ブロックであることを判断して、有彩ブロックであることを示す属性値を生成する像域分離部と、
走査方向に規定される1次元ブロックを割当て、前記属性値を使用して前記主走査方向に有彩画素が連続することを示す属性値を生成し、副走査方向に規定される1次元ブロックを前記画像データに割当て、前記副走査方向に規定される1次元ブロックの主走査方向につき所定の画素数平均されたRGBデータを使用して生成され、かつ画素データが少なくとも有彩画素であることを示す第2の属性値が副走査方向へ所定数以上に連続したとき有彩判定データを生成する有彩原稿判定部と、
前記有彩判定データを受け取り、原稿の有彩判定を行う制御装置と、
前記画像データを前記属性値および前記第2の属性値とともに格納する外部記憶装置と
を含む、画像処理装置が提供できる。
According to a fifth configuration of the present invention, there is provided an image processing apparatus including a memory, an external storage device, and a CPU,
Image data is stored in the memory, a two-dimensional block including a plurality of pixels continuous in the main scanning direction and the sub-scanning direction is assigned to the image data, and it is determined that the two-dimensional block is a chromatic block. An image area separation unit that generates an attribute value indicating that the block is a chromatic block;
A one-dimensional block defined in the sub-scanning direction is assigned with a one-dimensional block defined in the main scanning direction, and an attribute value indicating that chromatic pixels are continuous in the main scanning direction is generated using the attribute value. Is generated using RGB data obtained by averaging a predetermined number of pixels in the main scanning direction of the one-dimensional block defined in the sub-scanning direction , and the pixel data is at least a chromatic pixel. A chromatic original determination unit that generates chromatic determination data when the second attribute value indicating
A control device that receives the chromatic determination data and performs chromatic determination of the document;
And an external storage device that stores the image data together with the attribute value and the second attribute value.

本発明では、前記有彩原稿判定部は、前記副走査方向に規定される1次元ブロックに含まれる前記画素データの前記第2の属性値の論理積または論理和を計算し、前記副走査方向に規定される1次元ブロック内の画素データの全部またはいずれか1つが有彩画素であると判断された場合に前記第2の属性値を、有彩画素を示す値で置換する副走査ブロック化部を含むことができる。 In the present invention, the chromatic original determination unit calculates a logical product or a logical sum of the second attribute values of the pixel data included in the one-dimensional block defined in the sub-scanning direction, and the sub-scanning direction Sub-scanning block replacement that replaces the second attribute value with a value indicating a chromatic pixel when it is determined that all or any one of the pixel data in the one-dimensional block defined in the above is a chromatic pixel Parts can be included.

本発明によれば、副走査方向への画像データの属性値の連続を使用して有彩画素の判定を行うので、ショック・ジッタに対処しつつ、低彩度の原稿についての色相再現性を向上することができる。   According to the present invention, since chromatic pixel determination is performed using a series of attribute values of image data in the sub-scanning direction, hue reproducibility for a low-saturation document can be achieved while dealing with shock jitter. Can be improved.

また、本発明によれば、主走査方向に属性値を論理積した結果を使用して有彩原稿の判定を行うので、DFスジの発生による有彩原稿の誤判定を防止することができる。   In addition, according to the present invention, the determination of a chromatic original is performed using the result of logical product of attribute values in the main scanning direction, so that erroneous determination of a chromatic original due to the occurrence of a DF streak can be prevented.

さらに、本発明によれば、ショック・ジッタの大きさに応答して最適な有彩原稿判定を提供することができる。   Furthermore, according to the present invention, it is possible to provide optimal chromatic original determination in response to the magnitude of shock jitter.

また、本発明によれば、ADFにより取得された画像データを属性値および第2の属性値と共に格納するので、ADFを使用して取得した原稿を後に読み出して印刷させても良好な色相再現性を提供することができる。   In addition, according to the present invention, since the image data acquired by the ADF is stored together with the attribute value and the second attribute value, good hue reproducibility can be obtained even if a document acquired using the ADF is read and printed later. Can be provided.

図1は、本発明の画像形成装置10の概略的な構成を示した図である。図1に示した画像形成装置10は、ADF12を備えたMFPとされており、ADF12の原稿台にセットされた原稿は、ユーザからの指令に応答して、コンタクト・ガラス14の側へと送られ、コンタクト・ガラス14越しに白色光源(図示せず)からの白色光が原稿に照射される。原稿は、照射された白色光線を反射し、反射光は、コンタクト・ガラス14を再度通過して、複数の反射鏡16により、レンズ18へと反射される。レンズ18は、ラインCCD20へと原稿からの反射光を集光して、ラインCCD20が、ラインごとにRGBに対応する画像データを取得している。取得された画像データは、制御部22へと送られて、ADF12などの駆動を制御するクロック・パルスおよび原稿の送り速度に応答して決定されるライン・アドレス値およびライン方向に定義される主走査アドレス値と共に、FIFOバッファなどのメモリに格納されて、後に画像処理部へと渡される。   FIG. 1 is a diagram showing a schematic configuration of an image forming apparatus 10 according to the present invention. The image forming apparatus 10 shown in FIG. 1 is an MFP including an ADF 12, and a document set on a document table of the ADF 12 is sent to the contact glass 14 side in response to a command from the user. Then, white light from a white light source (not shown) is irradiated to the original through the contact glass 14. The original reflects the irradiated white light beam, and the reflected light passes through the contact glass 14 again and is reflected to the lens 18 by the plurality of reflecting mirrors 16. The lens 18 condenses the reflected light from the original onto the line CCD 20, and the line CCD 20 acquires image data corresponding to RGB for each line. The acquired image data is sent to the control unit 22 and is defined by a line address value and a line direction that are determined in response to a clock pulse for controlling driving of the ADF 12 and the like and a document feed speed. Along with the scan address value, it is stored in a memory such as a FIFO buffer, and later passed to the image processing unit.

制御部22に送られた画像データは、より詳細には後述する画像処理が行われた後、原稿の画像特性に応答して、Bkのみの無彩色原稿の場合には、感光体ドラム24へとレーザ・パルスまたはLEDパルスが照射されて、単一の感光体ドラム上に無彩色原稿に対応する静電潜像が形成される。また、フルカラー画像を形成する場合には、Bk、C、M、Yに対応する各感光体ドラムへとレーザ・パルスまたはLEDパルスが照射されて、各色に対応する静電潜像が形成される。形成された静電潜像は、その後、転写ローラ26により中間転写体28へと転写される。   The image data sent to the control unit 22 is subjected to image processing, which will be described in detail later, and in response to the image characteristics of the document, in the case of an achromatic color document of only Bk, to the photosensitive drum 24. The laser pulse or the LED pulse is irradiated to form an electrostatic latent image corresponding to an achromatic original on a single photosensitive drum. When a full-color image is formed, each photosensitive drum corresponding to Bk, C, M, and Y is irradiated with a laser pulse or an LED pulse to form an electrostatic latent image corresponding to each color. . The formed electrostatic latent image is then transferred to the intermediate transfer member 28 by the transfer roller 26.

トナー像を担持した転写材は、その後、2次転写部材30により紙またはプラスチック・シートなどの転写材へと転写され、その後さらに定着装置32へと搬送されてトナー像の定着が行われる。トナー像が定着された転写材は、搬送ローラの回動と共に排紙トレー34へと排出されて、ユーザは、ユーザがADF12にセットした原稿に対応した印刷物を得ることができる。   The transfer material carrying the toner image is then transferred to a transfer material such as paper or a plastic sheet by the secondary transfer member 30, and then further transferred to the fixing device 32 to fix the toner image. The transfer material on which the toner image is fixed is discharged to the paper discharge tray 34 along with the rotation of the transport roller, and the user can obtain a printed material corresponding to the original set on the ADF 12 by the user.

また、画像形成装置10には、公衆電話回線や、ISDNいった公衆電話網36が接続され、ファクシミリ通信などが可能とされている。さらに画像形成装置10は、イーサネット(登録商標)ケーブルなどを介してネットワークへと接続されていて、各種のサービスを提供している。   The image forming apparatus 10 is connected to a public telephone line or a public telephone network 36 such as ISDN to enable facsimile communication. Further, the image forming apparatus 10 is connected to a network via an Ethernet (registered trademark) cable or the like, and provides various services.

図2は、本発明の画像形成装置10の機能ブロック図を示す。本発明の画像形成装置10は、ADFを備えるスキャナ装置50およびオペレーション・パネルおよび入力キーなどの入力部52からデータまたは画像データを取得している。スキャナ装置50が取得した画像データは、スキャナI/F54を介して画像判定・画像処理部48へと送られている。また、画像形成装置10は、システム・コントローラとして機能するCPU42を備えていて、CPU42は、画像形成装置10の各機能部の処理タイミングを管理し、各機能部へと処理指令を発行している。   FIG. 2 is a functional block diagram of the image forming apparatus 10 of the present invention. The image forming apparatus 10 of the present invention acquires data or image data from a scanner device 50 having an ADF and an input unit 52 such as an operation panel and input keys. The image data acquired by the scanner device 50 is sent to the image determination / image processing unit 48 via the scanner I / F 54. Further, the image forming apparatus 10 includes a CPU 42 that functions as a system controller. The CPU 42 manages the processing timing of each functional unit of the image forming apparatus 10 and issues a processing command to each functional unit. .

また、画像形成装置10は、さらに画像などを処理したり、アプリケーション・ソフトウェアの実行空間を与えるためのRAM44と、処理を行うためのデータまたはプログラムなどを格納したROM46とを備えていて、CPU42による画像処理および画像形成装置の制御を可能としている。   The image forming apparatus 10 further includes a RAM 44 for processing images and the like, and providing an execution space for application software, and a ROM 46 for storing data or programs for processing. Image processing and control of the image forming apparatus are enabled.

画像判定・画像処理部48は、イメージ・スキャナにより取得された画像データに対してフィルタリング処理、文字画像抽出処理、網点画像抽出処理および本発明の有彩画像判定処理を実行し、その結果生成される各種の属性値に基づき画像処理を行い、プリント指令をエンジン・コントローラ60へと送出する。エンジン・コントローラ60は、画像形成装置10の仕様に応じて、直接またはUSB(Universal Serial BUS)またはIEEE1284などのバス66を介して、感光体ドラム、現像装置、定着装置などを含むプリンタに対して作像を行わせている。また、画像形成装置10は、ファクシミリ・コントローラ58またはネットワーク・インタフェース・カード(NIC)62、ATA,シリアルATA、ATAPI、ATA−4などの規格を有するIDE(Integrated Drive Electronics)64などのインタフェースを備えている。   The image determination / image processing unit 48 performs filtering processing, character image extraction processing, halftone image extraction processing, and chromatic image determination processing of the present invention on the image data acquired by the image scanner, and generates the result. Image processing is performed based on the various attribute values, and a print command is sent to the engine controller 60. The engine controller 60 is connected to a printer including a photosensitive drum, a developing device, a fixing device, or the like directly or via a bus 66 such as USB (Universal Serial BUS) or IEEE1284 according to the specifications of the image forming apparatus 10. I'm making an image. The image forming apparatus 10 also includes an interface such as a facsimile controller 58 or a network interface card (NIC) 62, IDE (Integrated Drive Electronics) 64 having standards such as ATA, serial ATA, ATAPI, ATA-4, and the like. ing.

ファクシミリ・コントローラ58は、取得した画像データをG3、G4などのファクシミリ・フォーマットへと変換させ、モデムなどのファクシミリ送受信装置78またはDSU/TA68を介して公衆電話網またはISDNなどを経由してアナログまたはディジタル回線を介してファクシミリ通信を行っている。   The facsimile controller 58 converts the acquired image data into a facsimile format such as G3, G4, and the like. Facsimile communication is performed via a digital line.

また、NIC62は、10BASE−100などのイーサネット(登録商標)ケーブルを介してローカルエリア・ネットワーク(LAN)、ワイドエリア・ネットワーク(WAN)、またはインターネットなどのネットワーク72へと接続されていて、ユーザに対して画像形成装置10をリモート・プリンタとして機能させ、またSMTP、POPなどのプロトコルの下で電子メールなどのサービスを提供させている。なお、電子メールなどのサービスは、NIC62を経由せず、モデムなどを介してPPP(Point-to-Point Protocol)のもと、ダイアルアップ接続で都度接続先を指定して送受信することもできる。   In addition, the NIC 62 is connected to a network 72 such as a local area network (LAN), a wide area network (WAN), or the Internet via an Ethernet (registered trademark) cable such as 10BASE-100. On the other hand, the image forming apparatus 10 functions as a remote printer, and services such as e-mail are provided under protocols such as SMTP and POP. Note that services such as e-mail can be transmitted and received by specifying a connection destination each time via dial-up connection via PPP (Point-to-Point Protocol) via a modem or the like without using the NIC 62.

また、IDE64は、ハードディスク・ドライブなどに接続され、ADFにより取得されたデータを、後述する各属性値と共に、オリジナルの画像データを上述した大容量記憶装置または記憶媒体に格納させている。この他、画像形成装置10は、SCSIなどの適切なインタフェースを使用して、USBなどのバスを介してフレキシブル・ディスク、CD−ROM、DVD、MOなどの外部記憶装置と接続されていてもよい。   The IDE 64 is connected to a hard disk drive or the like, and stores the original image data in the above-described large-capacity storage device or storage medium together with each attribute value to be described later along with data acquired by the ADF. In addition, the image forming apparatus 10 may be connected to an external storage device such as a flexible disk, a CD-ROM, a DVD, and an MO via a bus such as USB, using an appropriate interface such as SCSI. .

図3は、本発明の画像形成装置10のADF12とラインCCD20とを含んで構成されるスキャナ装置50の詳細な構成を示した図である。本発明の画像形成装置10のスキャナ装置50は、シートスルー・タイプとされており、原稿台50aと、原稿台50a上の原稿を送るための原稿送りローラ50b、50cを備えており、原稿50dを矢線Aの方向へと搬送している。原稿50dは、ガイド50eにより搬送方向が変えられた後、白色ガイド50fとコンタクト・ガラス14との間に侵入して、矢線Bの方向へと搬送されて、排紙ローラ50gを経由してスキャナ装置50から排紙されている。   FIG. 3 is a diagram showing a detailed configuration of the scanner device 50 including the ADF 12 and the line CCD 20 of the image forming apparatus 10 of the present invention. The scanner device 50 of the image forming apparatus 10 of the present invention is a sheet-through type, and includes a document table 50a and document feeding rollers 50b and 50c for feeding documents on the document table 50a. In the direction of arrow A. After the conveyance direction is changed by the guide 50e, the original 50d enters between the white guide 50f and the contact glass 14, and is conveyed in the direction of the arrow B, via the paper discharge roller 50g. The paper is discharged from the scanner device 50.

搬送される原稿50dには、コンタクト・ガラス14を隔てて配置された白色光源50hからの白色光が照射され、原稿50dは、原稿50dに形成された画像に対応する反射光を反射鏡16aへと反射させている。原稿50dからの反射光は、さらに反射鏡16bおよび16cを介してレンズ18およびラインCCD20へと入射される。ラインCCD20は、原稿50dの搬送速度などに応じて決定されるタイミングで、主走査方向および副走査方向に沿ったR、G、Bの画像データを生成させ、生成された画像データは、A/Dコンバータ(図示せず)によりA/D変換を受けた後にインタフェースを介して図示しない画像処理部へ送られて、画像形成装置10による画像データを使用した処理が実行される。   The conveyed document 50d is irradiated with white light from a white light source 50h disposed across the contact glass 14, and the document 50d transmits reflected light corresponding to the image formed on the document 50d to the reflecting mirror 16a. And reflected. The reflected light from the original 50d is further incident on the lens 18 and the line CCD 20 via the reflecting mirrors 16b and 16c. The line CCD 20 generates R, G, and B image data along the main scanning direction and the sub-scanning direction at a timing determined according to the conveyance speed of the original 50d, and the generated image data is A / After being subjected to A / D conversion by a D converter (not shown), it is sent to an image processing unit (not shown) via an interface, and processing using image data by the image forming apparatus 10 is executed.

スキャナ装置50は、まず、原稿50dを原稿送りローラ50b、50cを介して白色ガイド50fとコンタクト・ガラス14との間に搬送する。原稿50dがコンタクト・ガラス14と白色ガイド50fとの間を通過して、原稿50dの先端が排紙ローラに侵入する時、および原稿後端が原稿送りローラ50cを抜けるとき、原稿50dに機械的なショックが与えられ、原稿の搬送速度が変化する、所謂、ショック・ジッタが発生する。ラインCCD20を使用する場合、上述したショック・ジッタは、RGB読取りラインの同期を乱し、有彩色判定の誤差を生じさせる原因となる。   The scanner device 50 first transports the document 50d between the white guide 50f and the contact glass 14 via the document feed rollers 50b and 50c. When the document 50d passes between the contact glass 14 and the white guide 50f and the leading edge of the document 50d enters the paper discharge roller, and when the trailing edge of the document passes through the document feed roller 50c, the document 50d is mechanically moved. A so-called shock jitter occurs, in which a shock is applied and the conveying speed of the document changes. When the line CCD 20 is used, the above-described shock jitter disturbs the synchronization of the RGB read lines and causes an error in chromatic color determination.

図4(a)には、ラインCCD20による画像データの生成をラインCCD20の構成と共に示した図である。原稿の搬送開始および搬送速度は、メイン・クロックMCLに同期して与えられ、図3のコンタクト・ガラスを通過した反射光が、RGBの成分を含んでラインCCD20へと照射される。図4に示したラインCCD20は、R、G、Bに対応したフィルタ20a、20b、20cと、その下側に配置されたCCDセンサ20d、20e、20fを含んでおり、各CCDセンサ20d〜20fは、間隔が、読取り画像データのラインの4ライン分に対応する間隔で配置されている。   FIG. 4A is a diagram showing the generation of image data by the line CCD 20 together with the configuration of the line CCD 20. The document conveyance start and conveyance speed are given in synchronization with the main clock MCL, and the reflected light that has passed through the contact glass of FIG. 3 is irradiated onto the line CCD 20 including RGB components. The line CCD 20 shown in FIG. 4 includes filters 20a, 20b, and 20c corresponding to R, G, and B, and CCD sensors 20d, 20e, and 20f arranged below the filters, and each of the CCD sensors 20d to 20f. Are arranged at intervals corresponding to four lines of the read image data.

図4(b)には、メイン・クロックMCLと、ライン・クロックLCLと、ライン・クロックLCLに同期して与えられるA/Dコンバータのサンプリング・ゲートのタイミングを示す。ラインCCD20から送られる光電変換データは、ライン間隔を規定するライン・クロックに同期して発生される8ビットA/Dコンバータなどのサンプリング・ゲートごとに取り込まれ、主走査方向のライン・データを生成する。また、ライン・クロックは、適切なカウンタによりカウントされていて、原稿の副走査方向の領域および位置を取得して、各種のタイミング制御および副走査方向に関する位置制御のために使用される。   FIG. 4B shows timings of the main clock MCL, the line clock LCL, and the sampling gate of the A / D converter given in synchronization with the line clock LCL. The photoelectric conversion data sent from the line CCD 20 is taken in every sampling gate such as an 8-bit A / D converter generated in synchronization with a line clock that defines the line interval, and generates line data in the main scanning direction. To do. The line clock is counted by an appropriate counter, and is used for various timing control and position control in the sub-scanning direction by acquiring the area and position of the document in the sub-scanning direction.

図4に示した構成においてショック・ジッタが発生すると、それぞれR、G、Bに対応して入力される画像カラー・バランスが変化する。特にショック・ジッタが発生した箇所で読み込んでいる画像データが白黒原稿である場合、R、G、Bの要素のバランスが、色ずれの結果、白黒に相当するバランスとならない画素を生成させてしまう場合があり、この結果、ACSによる有彩原稿判定において有彩原稿の誤判断が行われる。この場合、画像形成装置は、プリンタに対して4基本色の作像指令を発行してしまうので、Bkだけの作像だけで充分に原稿を再現できるにもかかわらず、Bk、C、M、Yの作像が行われるので、プリント速度が低下し、また色再現性も充分ではない印刷物が与えられる場合がある。さらに、4色に対応した画像処理を実行させることになり誤判定がなければ他の処理に割り当てることができるCPUおよびRAMなどのハードウェア資源を無駄に消費することになる。   When shock jitter occurs in the configuration shown in FIG. 4, the image color balance input corresponding to R, G, and B changes. In particular, when the image data read at the location where the shock / jitter is generated is a black and white document, the balance of the R, G, and B elements results in a pixel that does not correspond to black and white as a result of color misregistration. As a result, an erroneous determination of a chromatic original is performed in the chromatic original determination by ACS. In this case, since the image forming apparatus issues an image forming command of four basic colors to the printer, the original can be sufficiently reproduced by only the image forming of Bk, but Bk, C, M, Since the image formation of Y is performed, there is a case where the printing speed is lowered and a printed matter with insufficient color reproducibility may be provided. Further, the image processing corresponding to the four colors is executed, and if there is no erroneous determination, hardware resources such as a CPU and a RAM that can be assigned to other processing are wasted.

図5は、本発明の画像形成装置10が取得する画像データのデータ構造を示した概略図である。CCDセンサからの出力は、主走査方向へのCCDデバイス数に相当する数だけ並列出力され、それぞれ主走査アドレス値および副走査ラインのカウントに応答して決定されるライン・アドレス値により管理され、画素80の2次元方向の位置を規定している。CCDセンサからの出力値は、8ビット分解能を有するA/Dコンバータにより、R、G、Bの出力電圧に対応したディジタル・データとされ、ライン・アドレス値、主走査アドレス値、RGBの彩度データからなる、24ビットのRGBデータの3次元マトリックスとして画像データが生成される。本発明の特定の実施の形態においては、主走査方向について画素は、7200画素のCCDセンサが使用され、RGBの値は、深さ方向に24ビットとされており、1ラインあたり、約173KBのメモリを消費する。   FIG. 5 is a schematic diagram showing a data structure of image data acquired by the image forming apparatus 10 of the present invention. The output from the CCD sensor is output in parallel by the number corresponding to the number of CCD devices in the main scanning direction, and is managed by the line address value determined in response to the main scanning address value and the sub scanning line count, The position of the pixel 80 in the two-dimensional direction is defined. The output value from the CCD sensor is converted into digital data corresponding to the output voltages of R, G, and B by an A / D converter having 8-bit resolution, and the line address value, main scanning address value, and RGB saturation Image data is generated as a three-dimensional matrix of 24-bit RGB data consisting of data. In a specific embodiment of the present invention, a 7200 pixel CCD sensor is used in the main scanning direction, and the RGB value is 24 bits in the depth direction, with about 173 KB per line. Consumes memory.

この画像データは、例えば先入れ・先出し(FIFO)バッファなどに格納され、各種の処理が終了するごとに先入れ・先出し形式で後続する処理を実行する各機能部へと送られ、最終的にプリンタが出力できるフォーマットへと変換された後、プリンタへと送られる。なお、本発明においては、RGBの深さレベルは、24ビットに限定されることはなく、また1ラインあたりの画素数も特に7200画素に限定されるものではない。   This image data is stored in, for example, a first-in / first-out (FIFO) buffer, and sent to each functional unit that executes subsequent processing in a first-in / first-out format each time various processes are completed. After being converted into a format that the printer can output, it is sent to the printer. In the present invention, the RGB depth level is not limited to 24 bits, and the number of pixels per line is not particularly limited to 7200 pixels.

図6は、上述した構成を有する本発明の画像形成装置の実行する画像処理方法のフローチャートを示す。図6に示すように、本発明の画像処理方法は、ステップ600で、ユーザからの指令を受け取り処理を開始し、ステップ601でADFを起動させ原稿をイメージ・スキャナへと供給する。ステップ602では、原稿からの反射光をラインCCDが受け取って、ライン・アドレス値、主走査アドレス値、深さ方向の彩度データを含む画像データを生成させ、FIFOバッファなどに画像データを蓄積する。ステップ604では、蓄積した画像データを読み出して、主走査方向および副走査方向の画像特性を計算し、第2の有彩判定データyusai2を計算し、画像処理CPUへとその値を通知する。さらにステップ605では、副走査方向のブロック化により第2の属性値(iro2)を生成し、像域分離部から出力される属性値を使用して、主走査方向に論理積処理を実行して生成される属性値(iro1)を計算し、これらの値から有彩判定データyusai1を計算して、画像処理CPUへとその値を通知する。   FIG. 6 shows a flowchart of an image processing method executed by the image forming apparatus of the present invention having the above-described configuration. As shown in FIG. 6, in the image processing method of the present invention, in step 600, a command from a user is received and processing is started. In step 601, an ADF is activated to supply a document to an image scanner. In step 602, the line CCD receives the reflected light from the document, generates image data including a line address value, a main scanning address value, and saturation data in the depth direction, and stores the image data in a FIFO buffer or the like. . In step 604, the stored image data is read out, image characteristics in the main scanning direction and sub-scanning direction are calculated, second chromatic determination data yusai2 is calculated, and the value is notified to the image processing CPU. Further, in step 605, the second attribute value (iro2) is generated by blocking in the sub-scanning direction, and the logical product process is executed in the main scanning direction using the attribute value output from the image area separation unit. The generated attribute value (iro1) is calculated, chromatic judgment data yusai1 is calculated from these values, and the value is notified to the image processing CPU.

なお、本発明の画像処理方法では、ステップ604における第2の有彩判定データを生成する処理を省略して画像処理を行うこともでき、他の実施の形態では、ステップ603の処理の後に直ちにステップ605の処理を実行し、有彩判定データyusai1のみを使用する画像処理を行うこともできる。   In the image processing method of the present invention, the image processing can be performed by omitting the process of generating the second chromatic determination data in step 604. In another embodiment, the process immediately after the process of step 603 is performed. It is also possible to execute the processing in step 605 and perform image processing using only the chromatic determination data yusai1.

図7は、本発明の画像形成装置の図6に後続する処理を示した図である。ステップ700で、計算された有彩判定データyusai1と第2の有彩判定データyusai2とに基づいて、有彩判定を行い、判断の結果、真の値(1)が返される場合(yes)には、ステップ701で画像処理部に対して、判定結果に対応するBk、C、M、Yの作像を通知する。なお、本発明において、yusai2を生成する処理を省略する場合には、ステップ700で、有彩判定データyusai1のみの値を判断して有彩原稿の判断を行うことができる。   FIG. 7 is a view showing processing subsequent to FIG. 6 of the image forming apparatus of the present invention. In step 700, chromatic determination is performed based on the calculated chromatic determination data yusai1 and the second chromatic determination data yusai2, and when a true value (1) is returned as a result of determination (yes) In step 701, Bk, C, M, and Y image formation corresponding to the determination result are notified to the image processing unit. In the present invention, when the process of generating yusai2 is omitted, in step 700, the value of only the chromatic determination data yusai1 can be determined to determine a chromatic manuscript.

ステップ702では、プリンタは、有彩判定結果に応答した割り込み信号を受け取り、バッファ・メモリからプリントするべき画像データを読出して対応するレーザ・ビーム変調データを生成し、プリンタに対してレーザ・ビーム、駆動モータ、帯電バイアス、現像バイアス、転写バイアスの同期制御指令を送る。ステップ703では、プリンタは、有彩判定結果に応答した割り込み信号に対応する指令コードを割り込み処理部から取得してプリンタを設定し、読出した画像データを使用して、帯電装置、半導体レーザ、ポリゴン・ミラー、f−θレンズ、駆動モータ、現像装置、転写装置、定着装置を制御して、プリンタにより画像データに対応する印刷物をユーザに対して提供し、ステップ704で一連の処理を終了し、ユーザからの次指令を待機する。   In step 702, the printer receives an interrupt signal in response to the chromatic determination result, reads out image data to be printed from the buffer memory and generates corresponding laser beam modulation data, and Sends synchronous control commands for drive motor, charging bias, development bias, and transfer bias. In step 703, the printer acquires a command code corresponding to the interrupt signal in response to the chromatic determination result from the interrupt processing unit, sets the printer, and uses the read image data to charge the charging device, semiconductor laser, polygon Control the mirror, f-θ lens, drive motor, developing device, transfer device, and fixing device, and provide the user with a printed material corresponding to the image data by the printer. In step 704, the series of processing ends, Wait for the next command from the user.

また、ステップ700の判断が偽の値を返す場合(no)には、ステップ705へと処理を分岐させ、Bk単色の作像を行う指令を画像処理部へと送り、再度ステップ702で判定結果に対応する画像を形成するための設定をプリンタに対して指令して、画像処理を行い、ステップ703およびステップ704の処理をプリンタに対して実行させる。   If the determination in step 700 returns a false value (no), the process branches to step 705, a command for image formation of Bk single color is sent to the image processing unit, and the determination result in step 702 again. A command for forming an image corresponding to the above is instructed to the printer, image processing is performed, and the processing of step 703 and step 704 is executed by the printer.

図8は、本発明の画像形成装置の画像判定・画像処理部48の機能ブロックを示した図である。画像処理CPU82は、ADF12およびラインCCD20に対して、メイン・クロックに同期した制御信号を送り、画像データをA/D変換して第2有彩原稿判定部84に渡す。第2有彩原稿判定部84は、主走査方向および副走査方向に関連する画素についての第2の有彩判定データ(yusai2)を計算し、画像処理CPU82へと通知する。なお、第2有彩原稿判定部84は、使用するデータおよび処理共に特開2003−46772号公報の色判定部と同一の処理を実行し、yusai2を出力する。第2有彩原稿判定部84は、無彩原稿と判断した場合には、第2の有彩判定データyusai2=0に設定し、有彩原稿と判断した場合には、yusai2=1と設定して、画像処理CPU82へと、その値を返している。   FIG. 8 is a functional block diagram of the image determination / image processing unit 48 of the image forming apparatus according to the present invention. The image processing CPU 82 sends a control signal synchronized with the main clock to the ADF 12 and the line CCD 20, A / D-converts the image data, and passes it to the second chromatic original determination unit 84. The second chromatic document determination unit 84 calculates the second chromatic determination data (yusai2) for the pixels related to the main scanning direction and the sub-scanning direction, and notifies the image processing CPU 82 of it. The second chromatic original determination unit 84 executes the same processing as the color determination unit of Japanese Patent Laid-Open No. 2003-46772 for both data and processing to be used, and outputs yusai2. The second chromatic original determination unit 84 sets the second chromatic determination data yusai2 = 0 when it is determined as an achromatic original, and sets yusai2 = 1 when it is determined as a chromatic original. The value is returned to the image processing CPU 82.

以下、簡単に、第2有彩原稿判定部84の処理を説明すると、第2有彩原稿判定部84は、各画素について、RGBデータから有彩画素の判定を行っており、2次元ブロックを画素に割当て、2次元ブロックに含まれる有彩画素の数が所定の閾値を超えると判断した場合には、有彩ブロックと判断し、この処理を画像データ全体にわたって行い、有彩画素があると判断された場合に、第2の有彩判定データであるyusai2を1ビットデータとして生成する。   Hereinafter, the processing of the second chromatic document determination unit 84 will be described briefly. The second chromatic document determination unit 84 determines chromatic pixels from RGB data for each pixel, and determines a two-dimensional block. If it is determined that the number of chromatic pixels included in the two-dimensional block exceeds a predetermined threshold, it is determined as a chromatic block, this process is performed over the entire image data, and there is a chromatic pixel. If it is determined, yusai2 that is the second chromatic determination data is generated as 1-bit data.

一方、画像データは、さらに像域分離部86および画像処理部88へと送られる。像域分離部86では、画像データから文字画像、網点画像、有彩画像の判定が行われ、計算された画素の有彩に関連する属性値を有彩原稿判定部90へと送る。バッファ・メモリ92、94、96は、スキャナ装置50から送られた画像データを格納しており、各機能部の処理の進行に応答して、例えば、先入れ・先出し方式でデータを読取らせている。なお、バッファ・メモリは、必ずしも各機能部に対応する数だけ複数用いられなくともよい。   On the other hand, the image data is further sent to the image area separation unit 86 and the image processing unit 88. In the image area separation unit 86, a character image, a halftone dot image, and a chromatic image are determined from the image data, and the attribute value related to the calculated chromaticity of the pixel is sent to the chromatic original determination unit 90. The buffer memories 92, 94, and 96 store the image data sent from the scanner device 50, and read the data by, for example, a first-in first-out method in response to the progress of processing of each functional unit. ing. It is not always necessary to use a plurality of buffer memories corresponding to each functional unit.

また、有彩原稿判定部90には、像域分離部86処理したと同一の画像データが送られていて、主走査方向に連続する画素について、像域分離部86が生成させる属性値iroを、主査方向に規定される1次元ブロックに含まれる画素について論理和を計算して、その結果を用いて属性値iro1を計算させ、同時に副走査方向に規定される副走査1次元ブロックに含まれる画素のデータを検査して第2の属性値(iro2)の値を設定する。有彩原稿判定部90では、少なくとも第2の属性値(iro2)の値の副走査方向への連続性を判断して、属性値colを生成し、colの値の副走査ラインでの連続性を判断して、有彩判定データ(yusai1)を生成する。有彩判定データyusai1は、画像処理CPU82へと通知され、画像処理CPU82は、少なくともyusai1の値を判断して、画像処理部88に対して有彩原稿か白黒原稿であるかを、プリンタに対して指令する割り込み信号を生成する。 In addition, the same image data processed by the image area separation unit 86 is sent to the chromatic original determination unit 90, and the attribute value iro generated by the image area separation unit 86 for pixels continuous in the main scanning direction. Is calculated for the pixels included in the one-dimensional block defined in the main scanning direction, and the attribute value iro1 is calculated using the result, and simultaneously included in the sub-scanning one-dimensional block defined in the sub-scanning direction. The second attribute value (iro2) is set by inspecting pixel data. The chromatic original determination unit 90 determines the continuity of at least the second attribute value (iro2) in the sub-scanning direction, generates the attribute value col, and the continuity of the col value on the sub-scan line. And chromatic judgment data (yusai1) is generated. The chromatic determination data yusai1 is notified to the image processing CPU 82. The image processing CPU 82 determines at least the value of yusai1 and determines whether the image processing unit 88 is a chromatic document or a monochrome document to the printer. Generate an interrupt signal to command.

なお、本発明の画像処理CPU82は、CPU42と通信を行って、画像形成装置の他の機能ブロックに対して画像判定・画像処理部48における処理と他の機能ブロックとの同期した処理を可能としている。また、本発明においてCPU42の能力が充分な場合には、画像処理CPU82と、CPU42とを共通して用いることができる。   It should be noted that the image processing CPU 82 of the present invention communicates with the CPU 42 to enable processing in the image determination / image processing unit 48 and processing synchronized with other functional blocks with respect to other functional blocks of the image forming apparatus. Yes. In the present invention, when the CPU 42 has sufficient capability, the image processing CPU 82 and the CPU 42 can be used in common.

図9は、本発明において使用することができる像域分離部86の機能ブロック図である。図9に示されるように、像域分離部86は、特開2000−46772号公報に記載されたと同様の処理を実行しており、R、G、Bの画像データが入力され、また、白色領域抽出部98と、フィルタ部100と、エッジ抽出部102とを含んで構成される。フィルタ部100は、画像データのうちセレクタなどを使用してGデータのみを取得し、Gデータを使用して、予めルックアップ・テーブルなどとして格納された伝達関数補正値を使用して、または特開2003−46772号公報に開示された方法を使用してエッジの劣化を補正したデータ生成する。また、白色領域抽出部98は、画像データおよびフィルタ部100からのGデータの出力を使用して、8ビット階調で与えられる階調レベルを所定の閾値と比較し、比較の結果に応答して、閾値より高い場合には黒を指令する値を生成し、閾値より低い場合には、白を指令する1ビットの属性値(wh)を生成させている。   FIG. 9 is a functional block diagram of the image area separation unit 86 that can be used in the present invention. As shown in FIG. 9, the image area separation unit 86 performs the same processing as described in Japanese Patent Laid-Open No. 2000-46772, and R, G, B image data is input, and white The region extraction unit 98, the filter unit 100, and the edge extraction unit 102 are included. The filter unit 100 acquires only G data from the image data using a selector or the like, and uses the G data to use a transfer function correction value stored in advance as a look-up table or the like, or specially. Using the method disclosed in Japanese Unexamined Patent Application Publication No. 2003-46772, data in which edge deterioration is corrected is generated. Further, the white area extraction unit 98 uses the output of the G data from the image data and the filter unit 100 to compare the gradation level given by the 8-bit gradation with a predetermined threshold value, and responds to the comparison result. When the value is higher than the threshold, a value for instructing black is generated. When the value is lower than the threshold, a 1-bit attribute value (wh) for instructing white is generated.

エッジ抽出部102は、画像データの含むGデータを使用し、8ビットの階調表現(0を白とし、255レベルを黒とする。)に対応するものとしてデータを階層化し、階層化レベルに対応した画像の連続性を判断してエッジ判断を行い、当該処理画素を含む5×5画素のブロックが黒と判定される領域と白と判定される領域とを含む場合、当該ブロックについてエッジと判断する。ブロックがエッジである場合には、エッジを示す1ビットの属性値(edge)を生成する。また、網点分離部104は、GデータおよびBデータを使用して2次元局所領域での濃度分布を判断し、例えば5×5画素のマトリックスについて濃度階調レベルを検査し、網点画像である場合には、中心画素を決定する処理を行なって、網点であることを示す1ビットの属性値(ht)を生成し、総合判定部106へと送っている。   The edge extraction unit 102 uses the G data included in the image data, hierarchizes the data so as to correspond to 8-bit gradation expression (0 is white, 255 level is black), and the hierarchized level is obtained. Edge determination is performed by determining the continuity of the corresponding image, and when a 5 × 5 pixel block including the processing pixel includes an area determined to be black and an area determined to be white, to decide. If the block is an edge, a 1-bit attribute value (edge) indicating the edge is generated. Further, the halftone dot separation unit 104 determines the density distribution in the two-dimensional local region using the G data and the B data, inspects the density gradation level with respect to, for example, a 5 × 5 pixel matrix, In some cases, a process for determining the center pixel is performed to generate a 1-bit attribute value (ht) indicating that the pixel is a halftone dot and send it to the comprehensive determination unit 106.

第1有彩領域検出部108は、スキャナ装置50より取得された画像データの各画素のRGBデータが入力され、主走査アドレス値およびライン・アドレス値に広がる2次元ブロックを割当て、この2次元ブロックに割当てられた画素のRGBデータの分布から有彩判定を実行する。   The first chromatic area detection unit 108 receives RGB data of each pixel of the image data acquired from the scanner device 50, assigns a two-dimensional block extending to the main scanning address value and the line address value, and this two-dimensional block The chromaticity determination is executed from the RGB data distribution of the pixels assigned to.

図10は、第1有彩領域検出部108が含む第1色画素ブロック判定部110におけるデータフローを示す。図10に示されるように、第1有彩領域検出部108は、第1色画素ブロック判定部110を備えており、第1色画素ブロック判定部110は、画像データの各画素のRGBデータを4ライン×4画素、合計16画素からなる2次元ブロックを単位として処理を実行する。第1色画素ブロック判定部110は、画素内のRGBデータのRGB空間における座標軸上の最大距離を与える指標ΔRGBを、下記式を使用して算出する。   FIG. 10 shows a data flow in the first color pixel block determination unit 110 included in the first chromatic region detection unit 108. As shown in FIG. 10, the first chromatic region detection unit 108 includes a first color pixel block determination unit 110, and the first color pixel block determination unit 110 stores the RGB data of each pixel of the image data. The processing is executed in units of a two-dimensional block composed of 4 lines × 4 pixels and 16 pixels in total. The first color pixel block determination unit 110 calculates an index ΔRGB that gives the maximum distance on the coordinate axis in the RGB space of the RGB data in the pixel using the following equation.

ΔRGB=d[i,j]={MAX[rij, gij, bij]-MIN[rij, gij, bij]}
(i,j=0,1,2,3)
ΔRGB = d [i, j] = {MAX [rij, gij, bij] -MIN [rij, gij, bij]}
(i, j = 0,1,2,3)

その後、16画素について得られたΔRGBの値が、設定された閾値th_1よりも大きいか否かを判断し、大きい場合には、閾値以上の値を有する画素のカウントを行う。16画素すべてについてカウントが終了すると、カウント値を有彩画素数Cとして設定する。その後、有彩画素数Cと、閾値th_2とを比較し、カウント値が閾値th_2よりも大きい場合には、判断している2次元ブロックが有彩ブロックであると決定し、属性値iro=1を生成させる。   Thereafter, it is determined whether or not the value of ΔRGB obtained for 16 pixels is larger than a set threshold value th_1, and if it is larger, the pixels having a value equal to or larger than the threshold value are counted. When the counting is completed for all 16 pixels, the count value is set as the chromatic pixel number C. Thereafter, the number of chromatic pixels C is compared with a threshold th_2. If the count value is larger than the threshold th_2, it is determined that the determined two-dimensional block is a chromatic block, and the attribute value iro = 1 Is generated.

以下の擬似コードは、第1色画素ブロック判定部110の実行する擬似コードを示す。
for (i=0, 3; i++)
{for (j=0, 3; j++)
delta_RGB[i,j]=MAX(rij, gij, bij)-MIN(rij, gij, bij);
if (delta_RGB > th_1) C=C++;
}
if (C > th_2) iro=1;
else iro=0;
属性値(iro)は、本発明の有彩原稿判定部90へと送られてさらに処理のために使用される。
The following pseudo code indicates pseudo code executed by the first color pixel block determination unit 110.
for (i = 0, 3; i ++)
{for (j = 0, 3; j ++)
delta_RGB [i, j] = MAX (rij, gij, bij) -MIN (rij, gij, bij);
if (delta_RGB> th_1) C = C ++;
}
if (C> th_2) iro = 1;
else iro = 0;
The attribute value (iro) is sent to the chromatic document determination unit 90 of the present invention and used for further processing.

図11は、図9に示した総合判定部106のモジュール構成を示す。総合判定部106は、文字判定部112、膨張処理部114およびデコード部116を含んで構成されており、文字判定部112では、当該画素領域がエッジであると判定され、白背景領域であると判定され、網点判定されていない場合、すなわち、edge==1&&wt==1&&ht==0の場合、属性値moji==1を出力し、それ以外の場合には、moji==0を出力する。この判断結果は、膨張処理部114において膨張処理のために使用される。   FIG. 11 shows a module configuration of the comprehensive judgment unit 106 shown in FIG. The overall determination unit 106 includes a character determination unit 112, an expansion processing unit 114, and a decoding unit 116. The character determination unit 112 determines that the pixel area is an edge, and is a white background area. If the halftone dot is not determined, that is, edge == 1 && wt == 1 && ht == 0, the attribute value moji == 1 is output, otherwise moji == 0 is output. . The determination result is used for expansion processing in the expansion processing unit 114.

膨張処理部114では、文字判定された画素の属性値mojiについて、8×8ブロックのOR処理を実行し、その後3×3ブロックのAND処理を実行する。図12には、膨張処理部114での処理を示す。図12に示すように、その時点で処理している処理ブロック118(黒ハッチで示す)を中心とする8×8ブロックのいずれかに文字エッジであると判定されるブロックに属する画素が存在すると、当該処理ブロック118についても文字エッジブロックとして一端選択する。   The dilation processing unit 114 performs an OR process of 8 × 8 blocks on the attribute value moji of the pixel determined as character, and then performs an AND process of 3 × 3 blocks. FIG. 12 shows processing in the expansion processing unit 114. As shown in FIG. 12, when any pixel belonging to a block that is determined to be a character edge exists in one of 8 × 8 blocks centered on a processing block 118 (shown by a black hatch) being processed at that time. The processing block 118 is also selected as a character edge block.

さらに処理ブロック118を中心とする3×3ブロックについて文字エッジである場合に処理ブロックを文字エッジとして確定させ、その後処理ブロック118と、下位アドレス側に隣接する3ブロックA、B、Cの計4ブロックを文字エッジとして各画素の属性を設定する。8×8ブロックについてのOR処理は、黒文字などの文字画像の場合に黒文字の領域の周辺に小領域の非黒文字領域が存在すると処理の差により違和感が発生することがあるためである。また、その後、処理ブロックについてAND処理により文字エッジブロックを膨張させているのは、文字部の膨張量を適切な程度として文字の識別性を向上させるためであり、これらは、処理の負荷や画像特性などに応じて適宜変更することができる。   Further, if the 3 × 3 block centering on the processing block 118 is a character edge, the processing block is determined as the character edge, and then the processing block 118 and the three blocks A, B, and C adjacent to the lower address side are 4 in total. The attribute of each pixel is set using a block as a character edge. This is because the OR processing for the 8 × 8 block may cause a sense of incongruity due to a difference in processing when a small non-black character region exists around the black character region in the case of a character image such as a black character. After that, the reason why the character edge block is expanded by AND processing for the processing block is to improve the character identification by setting the expansion amount of the character portion to an appropriate level. It can be changed as appropriate according to the characteristics.

この段階で、画素には、RGBデータ、ライン・アドレス値、主走査アドレス値の他、moji、ht、wh、edge、iroの画属性値が画素に対して設定されている。図11に示すデコード部116は、これらの属性値を使用して、2ビットの属性値であるC/Pを生成し、画素の属性値として追加する。図13には、デコード部116が属性値C/Pを生成するために使用するルックアップ・テーブル120を示す。デコード部116は、画素の各属性値を取得して、図13に示すルックアップ・テーブル120を参照し、2ビットの属性値C/Pを生成する。なお、図13に示した実施の形態では、C/Pの値が0は、絵柄領域の画素であることを示し、C/Pの値が1は、文字領域の画素であることを示し、C/Pの値が3は、網点画像領域の画素であることを示す。図13に示した実施の形態では、C/P=2に対応するデータは生成しない。また、デコード部116では、第1有彩領域検出部の出力する属性値である(iro)も入力されるが、iroは、図11にも示すように、変換されずにそのまま保存され、属性値B/Cとして有彩原稿判定部90へと渡される。   At this stage, the image attribute values of moji, ht, wh, edge, and iro are set for the pixel in addition to the RGB data, the line address value, and the main scanning address value. The decoding unit 116 shown in FIG. 11 uses these attribute values to generate C / P, which is a 2-bit attribute value, and adds it as a pixel attribute value. FIG. 13 shows a lookup table 120 used by the decoding unit 116 to generate the attribute value C / P. The decoding unit 116 obtains each attribute value of the pixel, refers to the lookup table 120 shown in FIG. 13, and generates a 2-bit attribute value C / P. In the embodiment shown in FIG. 13, a C / P value of 0 indicates a pixel in the picture area, a C / P value of 1 indicates a character area pixel, A C / P value of 3 indicates a pixel in the halftone image area. In the embodiment shown in FIG. 13, data corresponding to C / P = 2 is not generated. In addition, in the decoding unit 116, (iro) that is the attribute value output from the first chromatic region detection unit is also input. However, as shown in FIG. The value B / C is passed to the chromatic original determination unit 90.

上述した各属性値は、画像処理部88における画像処理のために使用され、C/P=1の場合には、画像処理部88においてエッジ強調フィルタで処理画素近傍のコントラストを強調する処理を実行し、ガンマ曲線の傾きを大きくすることで解像度を高める階調処理を実行する。また、C/P=0またはC/P=3の場合には、画像処理部88で平滑化フィルタを使用して処理画素近傍の平滑化やガンマ曲線の傾きを小さくして階調再現性を向上させるための処理が実行される。   Each attribute value described above is used for image processing in the image processing unit 88. When C / P = 1, the image processing unit 88 executes processing for enhancing the contrast near the processing pixel with an edge enhancement filter. Then, gradation processing is performed to increase the resolution by increasing the slope of the gamma curve. Further, when C / P = 0 or C / P = 3, the image processing unit 88 uses a smoothing filter to reduce the smoothing in the vicinity of the processing pixel and the gradient of the gamma curve to improve the gradation reproducibility. Processing for improvement is executed.

図14は、本発明の有彩原稿判定部90の構成を示した図である。本発明の有彩原稿判定部90は、画素平均部122と、第2有彩領域判定部124と、主走査方向ブロック化部126とを含んでいる。画素平均部122は、イメージ・スキャナが取得した画像データの4ライン分を読み出して、主走査方向に連続する画素のRGBデータをそれぞれ平均し、処理画素の値として設定する。主走査方向についてRGBデータをそれぞれ平均するのは、例えばDFスジなどによるRGBデータの影響を低下させるためである。   FIG. 14 is a diagram showing the configuration of the chromatic original determination unit 90 of the present invention. The chromatic original determination unit 90 of the present invention includes a pixel average unit 122, a second chromatic region determination unit 124, and a main scanning direction blocking unit 126. The pixel averaging unit 122 reads four lines of image data acquired by the image scanner, averages the RGB data of pixels that are continuous in the main scanning direction, and sets them as the value of the processing pixel. The reason why the RGB data is averaged in the main scanning direction is to reduce the influence of the RGB data due to, for example, DF stripes.

図15には、画素平均部122の処理する画素データの構成を示す。図15に示すように、画素データは、像域分離部86で使用する画像データと同様の画素データを使用する。図15に示すように、処理を行う画素についてのRGBデータは、主走査方向に連続する所定数、図15に示した実施の形態では、主走査方向に19画素分平均され、各処理画素の値として設定される。図15には、オート・ドキュメント・フィーダにゴミが付着して生成される反射光の変調される領域、すなわちDFスジ134を例示的に示す。図15に示されるように、DFスジ134は、副走査方向に連続し、主走査方向には連続しないという特徴がある。このため、副走査方向の連続性だけを判断しただけでは、DFスジ134の発生による有彩判定の誤りを生じる。このため、本発明では、主走査方向に画素データを平均化することによりDFスジ領域でのRGBデータの重みを低減させている。   FIG. 15 shows a configuration of pixel data processed by the pixel averaging unit 122. As shown in FIG. 15, pixel data similar to the image data used in the image area separation unit 86 is used as the pixel data. As shown in FIG. 15, the RGB data for the pixel to be processed is averaged for a predetermined number of 19 pixels in the main scanning direction in the embodiment shown in FIG. Set as a value. FIG. 15 exemplarily shows a region where reflected light generated by dust adhering to the auto document feeder is modulated, that is, a DF stripe 134. As shown in FIG. 15, the DF stripe 134 is characterized by being continuous in the sub-scanning direction and not continuous in the main scanning direction. For this reason, if only the continuity in the sub-scanning direction is determined, a chromatic determination error due to the generation of the DF stripe 134 occurs. For this reason, in the present invention, the weight of the RGB data in the DF stripe region is reduced by averaging the pixel data in the main scanning direction.

また、図14に示すように、有彩原稿判定部90は、第2有彩領域検出部124を含んでおり、本発明による有彩判定を実行する。また、第2有彩領域判定部124は、第2色画素ブロック判定部136を備えている。図16には、第2有彩領域検出部124が含む第2色画素ブロック判定部136のデータフローを示す。図16に示した第2色画素ブロック判定部136は、主走査方向について平均された画素のRGBデータを使用して第1色画素ブロック判定部110と同様に、4ライン×4画素の単位ブロックについて再度RGB空間における最大距離を算出し、所定の閾値th_3よりも大きな値を有する画素の数C2をカウントする。カウント終了後、C2を閾値th_4と比較して有彩画素であると判断し、1ビットの第2の属性値(iro2)を生成する。   Further, as shown in FIG. 14, the chromatic document determination unit 90 includes a second chromatic area detection unit 124, and executes chromatic determination according to the present invention. Further, the second chromatic area determination unit 124 includes a second color pixel block determination unit 136. FIG. 16 shows a data flow of the second color pixel block determination unit 136 included in the second chromatic region detection unit 124. The second color pixel block determination unit 136 illustrated in FIG. 16 uses the RGB data of the pixels averaged in the main scanning direction, and similarly to the first color pixel block determination unit 110, a unit block of 4 lines × 4 pixels. Again, the maximum distance in the RGB space is calculated, and the number C2 of pixels having a value larger than a predetermined threshold th_3 is counted. After the count is finished, C2 is compared with the threshold th_4 to determine that it is a chromatic pixel, and a 1-bit second attribute value (iro2) is generated.

第2有彩領域検出部124で生成されたiro2は、図14に示す副走査方向ブロック化部128へと送られ、ショック・ジッタに対応する処理が行われる。副走査方向ブロック化部128では、図17に示されるように、処理を行っている画素から、副走査方向の4画素×主走査方向の1画素の4×1の画素を抽出して処理ブロックとし、処理ブロックに含まれる4画素の第2の属性値であるiro2の値を検査する。 The iro2 generated by the second chromatic area detection unit 124 is sent to the sub-scanning direction blocking unit 128 shown in FIG. 14, and processing corresponding to shock jitter is performed. As shown in FIG. 17, the sub-scanning direction blocking unit 128 extracts 4 × 1 pixels of 4 pixels in the sub-scanning direction × 1 pixel in the main scanning direction from the pixels that are being processed. And the value of iro2 that is the second attribute value of the four pixels included in the processing block is inspected.

副走査方向ブロック化部128での検査は、iro21&&iro22&&iro23&&iro24==1であるか否かを判断し、if (iro21&&iro22&&iro23&&iro24==1)の値が0以外の値を返す場合には、当該4×1ブロックを有彩ブロックとして判断し、副走査方向に連続する画素がすべて有彩画素である場合をショック・ジッタに関わらず有彩画素が連続しているものとし、処理画素についての第2の属性値iro2を、iro2=1として設定する。なお、iro2i(i=1,2,3,4)は、同一処理ブロックでの副走査方向に連続した画素についてのiro2の値を意味する。 The inspection in the sub-scanning direction blocking unit 128 determines whether iro21 && iro22 && iro23 && iro24 == 1, and if the value of if (iro21 && iro22 && iro23 && iro24 == 1) returns a value other than 0, the corresponding 4 × 1 block Is determined as a chromatic block, and if all the pixels that are continuous in the sub-scanning direction are chromatic pixels, the chromatic pixels are assumed to be continuous regardless of shock and jitter, and the second attribute value for the processed pixel Set iro2 as iro2 = 1. Note that iro2i (i = 1, 2, 3, 4) means the value of iro2 for pixels that are continuous in the sub-scanning direction in the same processing block .

なお、本発明においてショック・ジッタの小さな画像形成装置である場合には、4×1ブロックの判定を、if(iro21||iro22||iro23||iro24==1)の結果を使用して実行することもでき、or判断を使用する有彩判断は、モノクロ原稿を有彩原稿として判断することなく、閾値th_3およびth_4の選択により、本来的に有彩画素と考えられる領域の有彩/無彩の判断を精度良く行うことが可能となる。   In the present invention, when the image forming apparatus has a small shock jitter, the determination of 4 × 1 block is executed using the result of if (iro21 || iro22 || iro23 || iro24 == 1). The chromatic judgment using the or judgment can be performed by selecting the thresholds th_3 and th_4 without judging the monochrome original as a chromatic original, and by selecting the threshold value th_3 and th_4. It is possible to accurately determine the color.

再度、図14に戻って本発明の有彩原稿判定部90の処理を説明すると、主走査方向ブロック化部126は、副走査方向に1画素×主走査方向に20画素を単位とする主走査方向に規定される主走査1次元ブロックを割当て、主走査1次元ブロックにエントリされている20画素のB/C(iro)の値の論理積を計算し、論理積の検査を行う。論理積の検査の結果、すべてがiro=1であると判断され肯定的な値が返される場合には、属性値iro1として設定し、否定的な値を返す場合には、エントリされた画素についてiro1=0として設定する。図18には、主走査方向1次元ブロック化部126が使用する画素の領域を示す。この段階で、画像データは、属性データとしてC/P、moji、ht、wh、edge、iro、iro1、iro2の属性が設定される。 Returning to FIG. 14 again, the processing of the chromatic original determination unit 90 of the present invention will be described. The main scanning direction blocking unit 126 performs main scanning in units of 1 pixel in the sub scanning direction × 20 pixels in the main scanning direction. A main scanning one-dimensional block defined in the direction is allocated, a logical product of B / C (iro) values of 20 pixels entered in the main scanning one-dimensional block is calculated, and the logical product is inspected. As a result of the logical product check, if all values are determined to be iro = 1 and a positive value is returned, the attribute value is set as iro1, and if a negative value is returned, the entry pixel is set. Set as iro1 = 0. FIG. 18 shows a pixel region used by the main scanning direction one-dimensional blocking unit 126. At this stage, attributes of C / P, moji, ht, wh, edge, iro, iro1, and iro2 are set as attribute data in the image data.

ロジック部130は、画像データの属性値から、iro1、iro2またはiro2のみの値を取得して、ルックアップ・テーブルを参照するか、または等価なプログラミング・コードを使用して、変数colの値を生成させる。図19は、ロジック部130が使用するルックアップ・テーブルの実施の形態を示す。図19(a)は、ロジック部118がiro1、iro2を使用する場合に使用するルックアップ・テーブル138であり、図19(b)は、ロジック部130がiro2のみを使用する場合のルックアップ・テーブル140の実施の形態を示す。図19(a)に示した実施の形態では、iro1およびiro2の値が論理積とされ、対応する属性値colの値がルックアップ・テーブル138から取得される。   The logic unit 130 obtains the value of only iro1, iro2, or iro2 from the attribute value of the image data, refers to the lookup table, or uses the equivalent programming code to set the value of the variable col. Generate. FIG. 19 shows an embodiment of a lookup table used by the logic unit 130. FIG. 19A shows a lookup table 138 used when the logic unit 118 uses iro1 and iro2, and FIG. 19B shows a lookup table when the logic unit 130 uses only iro2. An embodiment of the table 140 is shown. In the embodiment shown in FIG. 19A, the values of iro1 and iro2 are ANDed, and the value of the corresponding attribute value col is acquired from the lookup table 138.

図19(a)に示した実施の形態では、主走査方向への平均値としたデータを用いて副走査方向ブロック化部の出力であるiro2の値と、主走査方向ブロック化部の出力であるiro1を副走査方向に論理積とした返り値の両方を使用することによりショック・ジッタおよびDFスジによる誤判断を低減させることができる。また、図19(b)に示すように、iro2の出力をそのままcolの値として設定するルックアップ・テーブル140を使用しても、iro2の値自体は、DFスジの影響を低減したデータを使用して計算されるのでDFスジによる誤判断を低減させることができる。   In the embodiment shown in FIG. 19A, the value of iro2 that is the output of the sub-scanning direction blocking unit and the output of the main scanning direction blocking unit are used by using the data that is the average value in the main scanning direction. By using both of the return values obtained by ANDing a certain iro1 in the sub-scanning direction, it is possible to reduce misjudgment due to shock jitter and DF stripes. Further, as shown in FIG. 19B, even if the lookup table 140 for setting the output of iro2 as it is as the value of col is used, the value of iro2 itself uses data with reduced influence of DF stripes. Therefore, it is possible to reduce misjudgment due to DF lines.

なお、図19に示したルックアップ・テーブルを使用した処理ではなく、それぞれ対応するプログラミング・コードを用い、図19(a)の場合には、if (iro1&&iro2 == 1) col=1 else col==0;および図19(b)の場合には、col=iro2などのプログラミング・コードなどを用いて同様の処理を行うことができる。なお、ショック・ジッタの小さな画像形成装置では、属性値iroを参照しなくともiro2だけを参照することでもパラメータによって充分な結果が得られる。   In addition, instead of the processing using the lookup table shown in FIG. 19, the corresponding programming code is used. In the case of FIG. 19A, if (iro1 && iro2 == 1) col = 1 else col = = 0; and FIG. 19B, the same processing can be performed using programming code such as col = iro2. Note that in an image forming apparatus with a small shock jitter, a sufficient result can be obtained by referring to only iro2 without referring to the attribute value iro.

その後、図14に示される副走査連続ライン計数部132は、ライン・カウンタモニタしており、colの値の副走査連続ライン方向への連続性を判断し、画素のcolの値所定の主走査方向の画素位置について所定の閾値th_ACS以上連続しているか否かを判断する。colの値が所定数以上連続している場合には、有彩原稿であることを示す変数であるyusai1を、yusai1=1として設定し、所定数を越えない場合には、yusai1=0として設定する。有彩原稿判定部90の判定結果であるyusai1の値は、画像処理CPU82へと送られ、有彩または無彩印刷を指令する割り込み信号を生成するために使用される。 Thereafter, the sub-scan continuous line counting unit 132 shown in FIG. 14 is monitored by the line counter, determines the continuity of the col value in the sub-scan continuous line direction, and the col value of the pixel is a predetermined value. It is determined whether or not pixel positions in the main scanning direction are continuous for a predetermined threshold th_ACS or more. If the col value continues for a predetermined number or more, yusai1, which is a variable indicating that it is a chromatic manuscript, is set as yusai1 = 1, and if it does not exceed the predetermined number, yusai1 = 0 is set. To do. The value of yusai1, which is the determination result of the chromatic original determination unit 90, is sent to the image processing CPU 82, and used to generate an interrupt signal that instructs chromatic or achromatic printing.

画像処理CPU82は、本発明の有彩判定データyusai1または第2の有彩判定データyusai2とを使用して、有彩印刷または無彩印刷を指令ずる割り込み信号を生成する。本発明の第1の実施の形態では、有彩判定データyusai1を使用して、yusai1=1の場合に画像処理用CPU82のI/Oポートの対応するポートをHまたはビットを設定させ、yusai1=0の場合には、対応するI/OポートをLまたはビット設定しない処理させることにより、プリンタに対し、有彩原稿判定結果に応答する割り込み信号が送られる。   The image processing CPU 82 uses the chromatic determination data yusai1 or the second chromatic determination data yusai2 of the present invention to generate an interrupt signal instructing chromatic printing or achromatic printing. In the first embodiment of the present invention, the chromatic determination data yusai1 is used, and when yusai1 = 1, the corresponding port of the I / O port of the image processing CPU 82 is set to H or a bit, and yusai1 = In the case of 0, an interrupt signal that responds to the chromatic original determination result is sent to the printer by processing the corresponding I / O port without setting L or bit.

また、本発明の第2の実施の形態では、yusai1およびyusai2の論理積または論理和を生成し、yusai1&&yusai2の値またはyusai1||yusai2の値が1である場合に、有彩原稿であると判断し、画像処理部へと有彩原稿に対応する作像処理指令を発行し、そうでない場合には、画像処理部へと無彩原稿に対応する作像処理指令を発行することができる。なお、これらの処理は、使用する画像処理CPU82の特性に応答して、プログラム的に構成することもできるし、yusai1およびyusai2の各ビット値を入力とするANDゲートまたはORゲートを使用して、いずれか早く生成される有彩判定データをラッチさせておき、タイマなどを用いて、タイマの経過後ラッチしていた有彩判定データをORゲートに入力し、yusai1およびyusai2のどちらかまたは両方を使用して有彩判定を行うこともできる。 In the second embodiment of the present invention, a logical product or logical sum of yusai1 and yusai2 is generated, and when the value of yusai1 && yusai2 or yusai1 || yusai2 is 1, it is determined that the document is a chromatic manuscript. to issues an imaging processing command corresponding to the chromatic document to the image processing unit, otherwise, may issue an imaging processing command corresponding to the achromatic document to the image processing unit. Note that these processes can be configured programmatically in response to the characteristics of the image processing CPU 82 to be used, or by using an AND gate or an OR gate that inputs each bit value of yusai1 and yusai2. The chromatic judgment data generated earlier is latched, and the chromatic judgment data latched after the timer elapses is input to the OR gate using a timer, and either or both of yusai1 and yusai2 are It can also be used to make a chromatic determination.

図20は、本発明の画像判定・画像処理部48の状態遷移図を示す。図20に示されるように画像判定・画像処理部48は、画像データを受け取り、さらに像域分離部による第1有彩領域検出部での有彩判定の結果である属性値iroを受け取って、有彩画素の判定を行なう。本発明の第1の実施の形態では、yusai1のみを使用する場合には、yusai1の結果に応答してモノクロまたはフルカラー画像出力の判断を行い、プリンタへとモノクロまたはフルカラーを指令する割り込みを発生させ、yuzai1の値に応答した処理指令を、割り込み処理部から取得して、プリンタに対して、画像処理CPUにより処理された画像データを適切な出力モードに切り換えて出力を行わせている。また、本発明の第2の実施の形態では、有彩判定データyusai2を生成し、yusai1の値と論理和または論理積を計算して対応する割り込み処理を実行することで、プリンタに対して適切なモードでのプリントを実行させることができる。   FIG. 20 shows a state transition diagram of the image determination / image processing unit 48 of the present invention. As shown in FIG. 20, the image determination / image processing unit 48 receives image data, and further receives an attribute value iro that is a result of the chromatic determination in the first chromatic region detection unit by the image area separation unit, A chromatic pixel is determined. In the first embodiment of the present invention, when only yusai1 is used, a monochrome or full-color image output is determined in response to the result of yusai1, and an interrupt for instructing the printer to monochrome or full-color is generated. , A processing command in response to the value of yuzai1 is acquired from the interrupt processing unit, and the printer is configured to output the image data processed by the image processing CPU by switching to an appropriate output mode. In the second embodiment of the present invention, the chromatic judgment data yusai2 is generated, and the value of yusai1 and the logical sum or logical product are calculated and the corresponding interrupt processing is executed. Printing in various modes.

上述したように、本発明の有彩原稿判定部では、有彩領域の連続性を副走査方向しか参照せずに有彩判定を行うので、ショック・ジッタによる色ずれを原因とするモノクロ原稿のACS誤判定を大幅に改善することが可能となる。このため、第2有彩原稿判定部における閾値設定などによっては画像再現性が低下する中間彩度の画素に対しても本発明により、有彩判定を行うことが可能となる。ただし、本発明で使用する有彩原稿判定部では、副走査方向の連続性しか判断しないので、無彩原稿を有彩原稿と判断する可能性が生じる。しかしながら、ショック・ジッタが大きい場合には、原稿全体の有彩判断よりも画素単位での有彩判定を行う方が精度が良い場合もあり、ロジック部で属性値iro1を使用することにより、無彩原稿を有彩原稿と判断する可能性を低下させることができる。   As described above, the chromatic document determination unit of the present invention performs chromatic determination by referring to the continuity of the chromatic area only in the sub-scanning direction. ACS misjudgment can be greatly improved. For this reason, according to the present invention, it is possible to perform chromatic determination even with respect to pixels having intermediate saturation in which image reproducibility is reduced depending on threshold setting in the second chromatic document determination unit. However, since the chromatic original determination unit used in the present invention determines only continuity in the sub-scanning direction, there is a possibility that an achromatic original is determined as a chromatic original. However, when the shock jitter is large, it may be more accurate to perform chromatic determination on a pixel basis than chromatic determination on the entire document. The possibility of determining a chromatic original as a chromatic original can be reduced.

本発明の上述した処理は、C、C++、Java(登録商標)などの手続処理型プログラミング言語またはオブジェクト指向ブログラミング言語などで記述された装置実行可能なプログラムにより実現でき、また等価な処理を実行する加算器、除算器、乗算器を含む順序回路または組み合わせ回路などからハードウェア論理装置として構成することができ、装置のハードウェア資源および処理速度など性能に応じて適宜選択して装置に実装させることができる。   The above-described processing of the present invention can be realized by a device-executable program written in a procedural processing programming language such as C, C ++, Java (registered trademark) or an object-oriented programming language, and executes an equivalent processing. Can be configured as a hardware logic device from sequential circuits or combinational circuits including adders, dividers, multipliers, etc., which are appropriately selected according to performance such as hardware resources and processing speed of the device and mounted on the device be able to.

さらに、本発明のプログラムは、ハードディスク、ROM、EERROM、EPROMなどの半導体記憶装置、MO、CD−ROM、CD−RW、DVDなどの装置可読な記憶媒体に記録することができ、記憶媒体としては、ASICなどの半導体装置を含む。   Furthermore, the program of the present invention can be recorded on a semiconductor storage device such as a hard disk, ROM, EERROM, or EPROM, or a device-readable storage medium such as an MO, CD-ROM, CD-RW, or DVD. Including semiconductor devices such as ASIC.

これまで本発明を図面に示した実施の形態をもって説明してきたが、本発明は図面に示した実施の形態に限定されるものではなく、他の実施の形態、追加、変更、削除など、当業者が想到することができる範囲内で変更することができ、いずれの態様においても本発明の作用・効果を奏する限り、本発明の範囲に含まれるものである。   Although the present invention has been described with the embodiments shown in the drawings, the present invention is not limited to the embodiments shown in the drawings, and other embodiments, additions, modifications, deletions, etc. It can be changed within the range that can be conceived by a trader, and any embodiment is included in the scope of the present invention as long as the effects and effects of the present invention are exhibited.

本発明の画像形成装置の概略図。1 is a schematic diagram of an image forming apparatus of the present invention. 本発明の画像形成装置の機能ブロック図。1 is a functional block diagram of an image forming apparatus of the present invention. 本発明のスキャナ装置の概略図。1 is a schematic diagram of a scanner device of the present invention. 本発明のラインCCDの構成および画像データ取得タイミングを示した図。The figure which showed the structure and image data acquisition timing of the line CCD of this invention. 本発明において使用される画像データの概略図。Schematic of image data used in the present invention. 本発明の画像形成装置の画像形成プロセスを示したフローチャート。3 is a flowchart showing an image forming process of the image forming apparatus of the present invention. 本発明の画像形成装置の画像形成プロセスを示したフローチャート。3 is a flowchart showing an image forming process of the image forming apparatus of the present invention. 本発明の画像判定・画像処理部の詳細な構成を示した図。The figure which showed the detailed structure of the image determination and image processing part of this invention. 像域分離部の詳細な構成を示した機能ブロック図。The functional block diagram which showed the detailed structure of the image area separation part. 第1有彩領域検出部の機能ブロック図。The functional block diagram of a 1st chromatic area detection part. 総合判定部の機能ブロック図。The functional block diagram of a comprehensive determination part. 膨張処理部が使用する画像データ構造を示した図。The figure which showed the image data structure which an expansion | swelling process part uses. 本発明において属性値C/Pを生成するために使用するルックアップ・テーブルを示した図。The figure which showed the lookup table used in order to produce | generate attribute value C / P in this invention. 本発明の有彩原稿判定部の構成を示した機能ブロック図。The functional block diagram which showed the structure of the chromatic original determination part of this invention. 本発明の画素平均化部の処理対象の画素データの構成を示した図。The figure which showed the structure of the pixel data of the process target of the pixel averaging part of this invention. 本発明の有彩領域判定部のデータフローを示した機能ブロック図。The functional block diagram which showed the data flow of the chromatic area | region determination part of this invention. 本発明の副走査ブロック化部のブロック化処理の対象画像データを示した概略図。Schematic which showed the object image data of the blocking process of the sub-scanning blocking part of this invention. 本発明の主走査ブロック化部のロック化処理の対象画像データを示した概略図。Schematic which showed the object image data of the locking process of the main scanning blocking part of this invention. 本発明においてロジック部が使用するルックアップ・テーブルの実施の形態を示した図。The figure which showed embodiment of the look-up table which a logic part uses in this invention. 本発明の画像形成装置の画像判定・画像処理部の状態遷移図。FIG. 3 is a state transition diagram of an image determination / image processing unit of the image forming apparatus of the present invention.

10…画像形成装置、12…ADF、14…コンタクト・ガラス、16…反射ミラー、18…レンズ、20…ラインCCD、22…制御部、24…感光体ドラム、26…転写ローラ、28…中間転写体、30…2次転写部材、32…定着装置、34…排紙トレー、36…公衆電話網(公衆電話回線、ISDN)、38…ネットワーク、42…CPU、44…RAM、46…ROM、48…画像判定・画像処理部、50…スキャナ装置、52…入力部、54…スキャナI/F、56…入出力I/F、58…ファクシミリ・コントローラ、60…エンジン・コントローラ、62…NIC、64…IDE、66…バス、68…DSU/TA、70…プリンタ、72…ネットワーク(LANなど)、74…HDD(ハードディスク)、78…ファクシミリ送受信装置、80…画素 DESCRIPTION OF SYMBOLS 10 ... Image forming apparatus, 12 ... ADF, 14 ... Contact glass, 16 ... Reflection mirror, 18 ... Lens, 20 ... Line CCD, 22 ... Control part, 24 ... Photosensitive drum, 26 ... Transfer roller, 28 ... Intermediate transfer Body, 30 ... secondary transfer member, 32 ... fixing device, 34 ... paper discharge tray, 36 ... public telephone network (public telephone line, ISDN), 38 ... network, 42 ... CPU, 44 ... RAM, 46 ... ROM, 48 Image determination / image processing unit, 50 Scanner device, 52 Input unit, 54 Scanner I / F, 56 Input / output I / F, 58 Facsimile controller, 60 Engine controller, 62 NIC, 64 ... IDE, 66 ... Bus, 68 ... DSU / TA, 70 ... Printer, 72 ... Network (LAN etc.), 74 ... HDD (Hard Disk), 78 ... Facsimile Li transceiver, 80 ... pixels

Claims (15)

オート・ドキュメント・フィーダを備える画像形成装置であって、
画像データについて主走査方向および副走査方向に連続する複数の画素を含む2次元ブロックを割当て、前記2次元ブロックが有彩ブロックであることを判断して、有彩ブロックであることを示す属性値を生成する像域分離部と、
走査方向に規定される1次元ブロックを割当て、前記属性値を使用して前記主走査方向に有彩画素が連続することを示す属性値を生成し、副走査方向に規定される1次元ブロックを前記画像データに割当て、前記副走査方向に規定される1次元ブロックの主走査方向につき所定の画素数平均されたRGBデータを使用して生成され、かつ画素データが少なくとも有彩画素であることを示す第2の属性値が副走査方向へ所定数以上に連続したとき有彩判定データを生成する有彩原稿判定部と、
前記有彩判定データを受け取り、原稿の有彩判定を行う制御装置と
を含む、画像形成装置。
An image forming apparatus including an auto document feeder,
An attribute value indicating that the image data is a chromatic block by allocating a two-dimensional block including a plurality of pixels continuous in the main scanning direction and the sub-scanning direction, determining that the two-dimensional block is a chromatic block An image area separation unit for generating
A one-dimensional block defined in the sub-scanning direction is assigned with a one-dimensional block defined in the main scanning direction, and an attribute value indicating that chromatic pixels are continuous in the main scanning direction is generated using the attribute value. Is generated using RGB data obtained by averaging a predetermined number of pixels in the main scanning direction of the one-dimensional block defined in the sub-scanning direction , and the pixel data is at least a chromatic pixel. A chromatic original determination unit that generates chromatic determination data when the second attribute value indicating
A control device that receives the chromaticity determination data and performs chromaticity determination of the document.
前記有彩原稿判定部は、前記副走査方向に規定される1次元ブロックに含まれる前記画素データの前記第2の属性値の論理積または論理和を計算し、前記副走査方向に規定される1次元ブロック内の画素データの全部またはいずれか1つが有彩画素であると判断された場合に前記第2の属性値を、有彩画素を示す値で置換する副走査ブロック化部を含む、請求項1に記載の画像形成装置。 The chromatic original determination unit calculates a logical product or a logical sum of the second attribute values of the pixel data included in the one-dimensional block defined in the sub-scanning direction, and is defined in the sub-scanning direction. A sub-scanning blocking unit that replaces the second attribute value with a value indicating a chromatic pixel when it is determined that all or any one of the pixel data in the one-dimensional block is a chromatic pixel; The image forming apparatus according to claim 1. 前記有彩原稿判定部は、主走査方向に連続する画素のRGBデータを平均化して有彩画素の判定を行う画素平均部を含む、請求項2に記載の画像形成装置。 The image forming apparatus according to claim 2, wherein the chromatic original determination unit includes a pixel average unit that averages RGB data of pixels that are continuous in the main scanning direction to determine a chromatic pixel. 前記有彩原稿判定部は、前記主走査方向に規定される1次元ブロックについて前記属性値の論理積を計算して前記論理積の結果で前記主走査方向に有彩画素が連続することを示す属性値を設定する主走査方向1次元ブロック化部を備える、請求項1〜3のいずれか1項に記載の画像形成装置。 The chromatic document determination unit indicates that the main the chromatic pixel in the main scanning direction for one-dimensional blocks defined in the scanning direction by calculating a logical product of the attribute values in the result of the logical product is continuously The image forming apparatus according to claim 1, further comprising a main scanning direction one-dimensional blocking unit that sets an attribute value. 前記画像形成装置は、前記画像データについて割り当てられる2次元ブロックの有彩画素数がしきい値を超える場合に当該2次元ブロックを有彩ブロックとして指定するための第2有彩判定データを生成する第2有彩原稿判定部を備え、前記画像形成装置は、前記有彩判定データと前記第2有彩判定データとを受け取って論理和を計算し、前記有彩判定データおよび前記第2有彩判定データのいずれかが有彩原稿を示す場合に、有彩印刷を指令する割り込み信号を生成する、請求項1〜4のいずれか1項に記載の画像形成装置。 The image forming apparatus generates second chromatic determination data for designating the two-dimensional block as a chromatic block when the number of chromatic pixels of the two-dimensional block allocated for the image data exceeds a threshold value. A second chromatic original determination unit, wherein the image forming apparatus receives the chromatic determination data and the second chromatic determination data, calculates a logical sum, and calculates the chromatic determination data and the second chromatic determination data; The image forming apparatus according to claim 1, wherein an interrupt signal for instructing chromatic printing is generated when any of the determination data indicates a chromatic original. 前記第2有彩原稿判定部は、取得された画像データ全体について有彩画素の判定を行い、前記第2有彩判定データを生成し、前記制御装置に通知する、請求項5に記載の画像形成装置。   6. The image according to claim 5, wherein the second chromatic document determination unit determines chromatic pixels for the entire acquired image data, generates the second chromatic determination data, and notifies the control device of the second chromatic document determination unit. Forming equipment. メモリとCPUとを備える画像処理装置における画像処理方法であって、前記画像処理方法は、
オート・ドキュメント・フィーダにより画像データを取得して、メモリに格納するステップと、
取得された前記画像データを読出して主走査方向および副走査方向に連続する複数の画素を含む2次元ブロックを割当て、前記2次元ブロックが有彩ブロックであることを判断して、有彩ブロックであることを示す属性値を生成するステップと、
走査方向に規定される1次元ブロックを割当て、前記属性値を使用して前記主走査方向に有彩画素が連続することを示す属性値を生成し、副走査方向に規定される1次元ブロックを前記画像データに割当て、前記副走査方向に規定される1次元ブロックの主走査方向につき所定の画素数平均されたRGBデータを使用して生成され、かつ画素データが少なくとも有彩画素であることを示す第2の属性値が副走査方向へ所定数以上に連続したとき有彩判定データを生成するステップと、
前記有彩判定データを受け取って、原稿の有彩判定を行ない、前記原稿の有彩または無彩の判定に応答してプリンタへの割り込みを行うステップと
を前記画像形成装置に対して実行させる、画像処理方法。
An image processing method in an image processing apparatus comprising a memory and a CPU, wherein the image processing method includes:
Acquiring image data with an auto document feeder and storing it in a memory;
The acquired image data is read, a two-dimensional block including a plurality of pixels continuous in the main scanning direction and the sub-scanning direction is assigned, and it is determined that the two-dimensional block is a chromatic block. Generating an attribute value indicating that there is,
A one-dimensional block defined in the sub-scanning direction is assigned with a one-dimensional block defined in the main scanning direction, and an attribute value indicating that chromatic pixels are continuous in the main scanning direction is generated using the attribute value. Is generated using RGB data obtained by averaging a predetermined number of pixels in the main scanning direction of the one-dimensional block defined in the sub-scanning direction , and the pixel data is at least a chromatic pixel. Generating chromaticity determination data when the second attribute value indicating is consecutive in a predetermined number or more in the sub-scanning direction ;
Receiving the chromaticity determination data, performing chromaticity determination on the document, and causing the image forming apparatus to execute a step of interrupting the printer in response to the chromatic or achromatic determination of the document. Image processing method.
前記有彩判定データを生成するステップは、前記副走査方向に規定される1次元ブロックに含まれる前記画素データの前記第2の属性値の論理積または論理和を計算し、前記副走査方向に規定される1次元ブロック内の画素データの全部またはいずれか1つが有彩画素であると判断された場合に前記第2の属性値を、有彩画素を示す値で置換するステップを含む、請求項7に記載の画像処理方法。 The step of generating the chromatic determination data calculates a logical product or logical sum of the second attribute values of the pixel data included in the one-dimensional block defined in the sub-scanning direction, and And replacing the second attribute value with a value indicating a chromatic pixel when it is determined that all or any one of the pixel data in the defined one-dimensional block is a chromatic pixel. Item 8. The image processing method according to Item 7. 前記有彩判定データを生成するステップは、前記主走査方向に規定される1次元ブロックについて前記属性値の論理積を計算して前記論理積の結果で前記主走査方向に有彩画素が連続することを示す属性値を設定するステップを含む、請求項7〜8のいずれか1項に記載の画像処理方法。 In the step of generating the chromatic determination data, a logical product of the attribute values is calculated for a one-dimensional block defined in the main scanning direction, and chromatic pixels are continuous in the main scanning direction as a result of the logical product. The image processing method of any one of Claims 7-8 including the step which sets the attribute value which shows that . 前記有彩判定データを生成するステップは、主走査方向に連続する画素のRGBデータを平均化して有彩画素の判定を行うステップを含む、請求項7〜9のいずれか1項に記載の画像処理方法。 The image according to any one of claims 7 to 9, wherein the step of generating chromatic determination data includes a step of determining chromatic pixels by averaging RGB data of pixels continuous in the main scanning direction. Processing method. 前記属性値および前記第2の属性値を前記画像データと共に外部記憶装置に格納するステップを実行する、請求項7〜10のいずれか1項に記載の画像処理方法。   The image processing method according to claim 7, wherein a step of storing the attribute value and the second attribute value together with the image data in an external storage device is executed. 請求項7〜11に記載の画像処理方法を前記画像形成装置に実行させる装置実行可能なプログラム。   An apparatus-executable program for causing the image forming apparatus to execute the image processing method according to claim 7. 請求項12に記載のプログラムを記憶した装置可読な記憶媒体。   An apparatus-readable storage medium storing the program according to claim 12. メモリと外部記憶装置とCPUとを備える画像処理装置であって、
前記メモリに画像データを格納し、画像データについて主走査方向および副走査方向に連続する複数の画素を含む2次元ブロックを割当て、前記2次元ブロックが有彩ブロックであることを判断して、有彩ブロックであることを示す属性値を生成する像域分離部と、
走査方向に規定される1次元ブロックを割当て、前記属性値を使用して前記主走査方向に有彩画素が連続することを示す属性値を生成し、副走査方向に規定される1次元ブロックを前記画像データに割当て、前記副走査方向に規定される1次元ブロックの主走査方向につき所定の画素数平均されたRGBデータを使用して生成され、かつ画素データが少なくとも有彩画素であることを示す第2の属性値が副走査方向へ所定数以上に連続したとき有彩判定データを生成する有彩原稿判定部と、
前記有彩判定データを受け取り、原稿の有彩判定を行う制御装置と、
前記画像データを前記属性値および前記第2の属性値とともに格納する外部記憶装置と
を含む、画像処理装置。
An image processing apparatus comprising a memory, an external storage device, and a CPU,
Image data is stored in the memory, a two-dimensional block including a plurality of pixels continuous in the main scanning direction and the sub-scanning direction is assigned to the image data, and it is determined that the two-dimensional block is a chromatic block. An image area separation unit that generates an attribute value indicating that the block is a chromatic block;
A one-dimensional block defined in the sub-scanning direction is assigned with a one-dimensional block defined in the main scanning direction, and an attribute value indicating that chromatic pixels are continuous in the main scanning direction is generated using the attribute value. Is generated using RGB data obtained by averaging a predetermined number of pixels in the main scanning direction of the one-dimensional block defined in the sub-scanning direction , and the pixel data is at least a chromatic pixel. A chromatic original determination unit that generates chromatic determination data when the second attribute value indicating
A control device that receives the chromatic determination data and performs chromatic determination of the document;
An external storage device that stores the image data together with the attribute value and the second attribute value.
前記有彩原稿判定部は、前記副走査方向に規定される1次元ブロックに含まれる前記画素データの前記第2の属性値の論理積または論理和を計算し、前記副走査方向に規定される1次元ブロック内の画素データの全部またはいずれか1つが有彩画素であると判断された場合に前記第2の属性値を、有彩画素を示す値で置換する副走査ブロック化部を含む、請求項14に記載の画像処理装置。 The chromatic original determination unit calculates a logical product or a logical sum of the second attribute values of the pixel data included in the one-dimensional block defined in the sub-scanning direction, and is defined in the sub-scanning direction. A sub-scanning blocking unit that replaces the second attribute value with a value indicating a chromatic pixel when it is determined that all or any one of the pixel data in the one-dimensional block is a chromatic pixel; The image processing apparatus according to claim 14.
JP2005267209A 2005-09-14 2005-09-14 Image forming apparatus, image processing apparatus, image processing method, program, and storage medium Active JP4480651B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005267209A JP4480651B2 (en) 2005-09-14 2005-09-14 Image forming apparatus, image processing apparatus, image processing method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005267209A JP4480651B2 (en) 2005-09-14 2005-09-14 Image forming apparatus, image processing apparatus, image processing method, program, and storage medium

Publications (2)

Publication Number Publication Date
JP2007081847A JP2007081847A (en) 2007-03-29
JP4480651B2 true JP4480651B2 (en) 2010-06-16

Family

ID=37941674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005267209A Active JP4480651B2 (en) 2005-09-14 2005-09-14 Image forming apparatus, image processing apparatus, image processing method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP4480651B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5263018B2 (en) * 2009-06-11 2013-08-14 株式会社リコー Image processing apparatus, image processing method, program, and recording medium
CN117649420B (en) * 2023-11-14 2024-07-23 北京医百科技有限公司 Method and device for determining expansion domain of target area in image and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001036752A (en) * 1999-07-23 2001-02-09 Canon Inc Picture processor and its method
JP2003046772A (en) * 2001-05-25 2003-02-14 Ricoh Co Ltd Image processor, low-linear-density dot region detecting unit, image reader, imaging apparatus and color copying

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001036752A (en) * 1999-07-23 2001-02-09 Canon Inc Picture processor and its method
JP2003046772A (en) * 2001-05-25 2003-02-14 Ricoh Co Ltd Image processor, low-linear-density dot region detecting unit, image reader, imaging apparatus and color copying

Also Published As

Publication number Publication date
JP2007081847A (en) 2007-03-29

Similar Documents

Publication Publication Date Title
US8270046B2 (en) Image processor and image processing method for extracting removal color and color around removal color in an image prior to image color/monochrome determination
US8274710B2 (en) Image processing using count variation
JP4269521B2 (en) Image processing apparatus and image forming apparatus
US20060181725A1 (en) Image processing apparatus, and method of controlling the same
JP5147535B2 (en) Image processing apparatus, image processing method, and program
US6909803B2 (en) Text color detection for copier image processing
JP2005124075A (en) Image processing apparatus and image processing method
JP2002271616A (en) Image processing unit and imaging device
JP4550727B2 (en) Image processing apparatus and image forming apparatus
JP4480651B2 (en) Image forming apparatus, image processing apparatus, image processing method, program, and storage medium
JP2001036752A (en) Picture processor and its method
JP4158345B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP2007067908A (en) Image processor, image forming apparatus, image processing method, and image processing program
JP2008103917A (en) Image processor
JPH0766975A (en) Image forming device
JP2002262078A (en) Image processing unit and image forming device
JP2010288146A (en) Image processing apparatus and method
JP7003568B2 (en) Image processing device, image processing method
JP2000270220A (en) Image processor, image processing method, and computer readable medium recorded with program to be executed by computer and read by the computer
JP2001197304A (en) Picture processor, picture processing method and storage medium
US7375853B2 (en) Image processing apparatus and method
JP5361556B2 (en) Image processing apparatus and method, and computer program and storage medium
JP3281424B2 (en) Image processing apparatus and method
JP4389995B2 (en) Image processing apparatus and image forming apparatus
JP2003298859A (en) Image processor and image forming device

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20070320

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080725

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091228

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100217

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100316

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100316

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

Free format text: PAYMENT UNTIL: 20130326

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4480651

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140326

Year of fee payment: 4