JP4522978B2 - Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium - Google Patents

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

Info

Publication number
JP4522978B2
JP4522978B2 JP2006222313A JP2006222313A JP4522978B2 JP 4522978 B2 JP4522978 B2 JP 4522978B2 JP 2006222313 A JP2006222313 A JP 2006222313A JP 2006222313 A JP2006222313 A JP 2006222313A JP 4522978 B2 JP4522978 B2 JP 4522978B2
Authority
JP
Japan
Prior art keywords
color
background color
background
document
unit
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
JP2006222313A
Other languages
Japanese (ja)
Other versions
JP2008048189A (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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2006222313A priority Critical patent/JP4522978B2/en
Publication of JP2008048189A publication Critical patent/JP2008048189A/en
Application granted granted Critical
Publication of JP4522978B2 publication Critical patent/JP4522978B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、原稿から読み取った画像データに対して下地色の除去処理および色補正処理を行う画像処理装置、画像処理方法、画像形成装置、画像処理プログラムおよびその記録媒体に関するものである。   The present invention relates to an image processing apparatus, an image processing method, an image forming apparatus, an image processing program, and a recording medium for performing background color removal processing and color correction processing on image data read from a document.

近年、OA機器のデジタル化が進展し、さらにカラー画像出力に対する需要が増してきたことにより、例えば、電子写真方式のデジタルカラー複写機・複合機、インクジェット方式あるいは熱転写方式のカラープリンタ等の画像形成装置が広く普及している。例えば、スキャナ等の画像入力装置より入力された画像データ等がこれらの画像形成装置を用いて出力されている。   In recent years, digitalization of office automation equipment has progressed, and demand for color image output has increased. For example, image formation such as electrophotographic digital color copiers / multifunction printers, inkjet or thermal transfer color printers, etc. The device is widespread. For example, image data input from an image input device such as a scanner is output using these image forming devices.

これらの画像形成装置においては、画像入力装置等から入力された画像データを適切に色再現した画像を出力することが必要とされている。それゆえ、画像形成装置に備えられている画像処理装置においては、デジタル画像処理技術を用いた色補正処理が重要な役割を果たしている。   In these image forming apparatuses, it is necessary to output an image in which image data input from an image input apparatus or the like is appropriately color-reproduced. Therefore, color correction processing using digital image processing technology plays an important role in the image processing apparatus provided in the image forming apparatus.

しかしながら、操作者が各原稿に対して色補正処理のパラメータを設定することは、非常に煩わしい作業である。また、不適切なパラメータを選択した場合などには、パラメータを再設定してから再び画像形成を行う必要があり、無駄な複写が行われることにもなる。   However, it is very troublesome for the operator to set parameters for color correction processing for each document. In addition, when an inappropriate parameter is selected, it is necessary to reset the parameter and then perform image formation again, resulting in useless copying.

そこで、このような問題を解決するために、色補正処理を自動的に行う構成が提案されている。   In order to solve such problems, a configuration for automatically performing color correction processing has been proposed.

例えば、特許文献1には、色補正データを格納したルックアップテーブルを予め備えておき、このルックアップテーブルを参照して第1の表色系からなる画像データを第2の表色系からなる画像データに変換する技術が開示されている。   For example, Patent Document 1 is provided with a lookup table in which color correction data is stored in advance, and image data including the first color system is referred to as the second color system with reference to the lookup table. A technique for converting to image data is disclosed.

また、特許文献2には、画像データを読み取る原稿の下地色と、読み取った画像データに基づく画像形成を行う記録用紙の下地色とに基づいて補正テーブルを生成し、生成した補正テーブルに基づいて色補正処理を行う技術が開示されている。具体的には、特許文献2では、原稿の下地色が無彩色として視認されるような方向への色補正と、記録用紙の下地色が無彩色として視認されるような方向への色補正とを合成した色補正を行うように、補正テーブルが生成される。
特開2003−153022号公報(公開日:2003年5月23日) 特開2004−23771号公報(公開日:2004年1月22日)
Further, in Patent Document 2, a correction table is generated based on a background color of a document from which image data is read and a background color of a recording sheet on which image formation is performed based on the read image data, and based on the generated correction table. A technique for performing color correction processing is disclosed. Specifically, in Patent Document 2, color correction in a direction in which the background color of the document is visually recognized as an achromatic color, and color correction in a direction in which the background color of the recording paper is visually recognized as an achromatic color, A correction table is generated so as to perform color correction combining the above.
JP 2003-153022 (Publication date: May 23, 2003) JP 2004-23771 A (publication date: January 22, 2004)

しかしながら、上記従来の技術では、下地除去処理(下地色除去処理;入力画像データから下地色の濃度成分(下地濃度)を除去する処理)を、原稿種別とは無関係に行っている。このため、適切な下地除去処理が行われない場合があった。   However, in the above conventional technique, the background removal processing (background color removal processing; processing for removing the density component (background density) of the background color from the input image data) is performed regardless of the document type. For this reason, appropriate background removal processing may not be performed.

例えば、文字原稿に対する下地除去処理で下地除去量(下地色の濃度成分の除去量)が不十分になって下地色が残留してしまったり、写真原稿に対する下地除去処理で下地除去を行うべきでない箇所の下地除去を行ってしまったりする場合があった。   For example, the background removal amount (removal amount of the density component of the background color) becomes insufficient in the background removal processing for the character document, and the background color should remain, or the background removal processing for the photo document should not be performed. In some cases, the background was removed.

また、原稿種別に応じて下地除去量を変更したい場合、オペレータが下地除去量あるいは原稿種別を指定する必要があり、オペレータは非常に煩わしい作業を行う必要があった。   Further, when it is desired to change the background removal amount according to the document type, the operator needs to specify the background removal amount or the document type, and the operator has to perform a very troublesome work.

本発明は上記の問題点に鑑みてなされたものであり、その目的は、原稿種別に応じた適切な下地処理を行うことのできる画像処理装置、画像処理方法、画像形成装置、画像処理プログラムおよび記録媒体を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing apparatus, an image processing method, an image forming apparatus, an image processing program, and an image processing apparatus capable of performing appropriate background processing according to the document type. It is to provide a recording medium.

本発明の画像処理装置は、上記の課題を解決するために、原稿から読み取った画像データに対して、上記原稿の原稿種別に応じた画像処理を施す画像処理装置であって、
注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別する原稿種別判別手段と、
上記画像データから下地色の濃度成分を除去する下地色除去手段とを備え、
上記下地色除去手段は、上記原稿種別判別手段の判別した原稿種別に応じて上記下地色の濃度成分の除去量を調整することを特徴としている。
An image processing apparatus according to the present invention is an image processing apparatus that performs image processing according to a document type of the document on image data read from the document in order to solve the above-described problem.
A document type determining unit that determines a type of a region to which a block including a plurality of pixels including a target pixel belongs, and that determines a document type based on a determination result of the region type;
A background color removing means for removing the density component of the background color from the image data,
The background color removing unit adjusts the removal amount of the density component of the background color according to the document type determined by the document type determining unit.

上記の構成によれば、原稿種別判別手段が、注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別する。そして、下地色除去手段が、原稿種別判別手段の判別した原稿種別に応じて下地色の濃度成分の除去量(下地除去量)を調整する。これにより、原稿種別に応じて下地除去量を調整することができ、原稿種別に応じて適切な下地除去を行うことができる。例えば、高コントラストが要求される文字原稿や、階調性の適切な再現が要求される写真原稿などについて、それぞれの原稿種別に応じて下地除去量を適切に設定できるので、原稿に応じた適切な下地除去を行うことができる。   According to the above configuration, the document type determination unit determines the type of the region to which a block including a plurality of pixels including the target pixel belongs, and determines the document type based on the determination result of the region type. Then, the background color removal unit adjusts the removal amount of the background color density component (background removal amount) according to the document type determined by the document type determination unit. Accordingly, the background removal amount can be adjusted according to the document type, and appropriate background removal can be performed according to the document type. For example, for text originals that require high contrast and photo originals that require appropriate reproduction of gradation, the background removal amount can be set appropriately according to the type of each original. It is possible to remove the background.

また、上記下地色除去手段は、上記原稿の下地の階調に応じて上記画像データを複数の階調レベルのいずれかに分類する階調判別手段と、上記階調レベルにそれぞれ対応して設けられた、上記下地色除去の前後の画像データを対応付けた複数の下地色除去用テーブルとを備え、上記階調判別手段の分類した階調レベルに対応する下地色除去用テーブルを用いて上記下地色の除去を行う構成としてもよい。   Further, the background color removing means is provided corresponding to each of the gradation levels and gradation determination means for classifying the image data into one of a plurality of gradation levels according to the gradation of the background of the document. A plurality of background color removal tables associated with the image data before and after the background color removal, and using the background color removal table corresponding to the gradation level classified by the gradation determination means, A configuration in which the background color is removed may be employed.

上記の構成によれば、各下地色除去用テーブルのデータを、下地色の各階調レベルに応じて設定できる。したがって、階調判別手段が原稿の下地の階調に応じて複数の階調レベルのいずれかに分類し、下地色除去手段が分類された階調レベルに対応する下地色除去用テーブルを用いて下地色の除去を行うことで、下地色除去処理を下地の階調レベルに応じて適切に行うことができる。   According to the above configuration, the data of each background color removal table can be set according to each gradation level of the background color. Therefore, the gradation determination unit classifies the gradation level into one of a plurality of gradation levels according to the background gradation of the document, and the background color removal unit uses the background color removal table corresponding to the classified gradation level. By removing the background color, the background color removal process can be appropriately performed according to the gradation level of the background.

また、上記原稿種別判別手段は、少なくとも上記原稿が文字原稿であるか文字原稿以外の原稿であるかを判別し、上記下地色除去手段は、文字原稿に対する下地色の濃度成分の除去量を、文字原稿以外の原稿に対する下地色の濃度成分の除去量よりも大きくする構成としてもよい。   The document type determining means determines at least whether the document is a character document or a document other than a character document, and the background color removing means determines the removal amount of the density component of the background color from the character document. It may be configured to be larger than the removal amount of the density component of the background color for the document other than the character document.

上記の構成によれば、文字原稿に対して十分な下地除去を行い、下地色成分が残留してしまうことを防止するとともに、文字原稿以外の原稿に対して下地除去を行うべきでない箇所の下地除去を行ってしまうことを防止できる。   According to the above configuration, the background color component is sufficiently removed from the character document to prevent the background color component from remaining, and the background of the portion where the background removal should not be performed on the document other than the character document. It is possible to prevent the removal.

また、上記の構成に加えて、上記原稿の下地色に応じて上記画像データを複数のグループのいずれかに分類する下地色判別手段と、上記各グループに対応する下地色にそれぞれ対応して設けられた、色補正の前後の画像データを対応付けた複数の色補正テーブルと、上記下地色判別手段の分類したグループに対応する上記色補正テーブルを用いて上記画像データを色補正する色補正処理手段とを備えている構成としてもよい。   In addition to the above-described configuration, a background color determination unit that classifies the image data into any of a plurality of groups according to the background color of the document, and a background color corresponding to each group. Color correction processing for color-correcting the image data using the plurality of color correction tables associated with the image data before and after the color correction and the color correction table corresponding to the group classified by the background color discrimination means It is good also as a structure provided with a means.

上記特許文献1の技術では、原稿の下地色によらず単一のルックアップテーブルを用いて色補正処理を行っている。このため、下地色を除去処理した場合に、残したい色の色味が大きく変化してしまい、適切な色再現ができなくなってしまうという問題があった。特に、濃い色の下地上に薄い色の画像が形成された画像を処理する場合に、下地色の除去処理の影響によって色再現性が低下しやすい。具体的には、例えば、濃いイエローの下地上に形成されている薄いピンクの画像が、オレンジ色に再現されたりしていた。   In the technique disclosed in Patent Document 1, color correction processing is performed using a single lookup table regardless of the background color of the document. For this reason, when the background color is removed, there is a problem that the color of the color to be left largely changes, and appropriate color reproduction cannot be performed. In particular, when processing an image in which a light color image is formed on the ground under a dark color, the color reproducibility is likely to deteriorate due to the influence of the background color removal process. Specifically, for example, a light pink image formed on a deep yellow ground has been reproduced in orange.

また、上記特許文献2の技術では、原稿の下地色が無彩色として視認されるような方向への色補正と、記録用紙の下地色が無彩色として視認されるような方向への色補正とを合成した色補正を行うので、原稿の下地色と記録用紙の下地色との組み合わせによっては、特許文献1と同様、適切な色再現ができない場合があった。また、特許文献2の技術では、画像形成を行う毎に原稿および記録用紙の画像読取動作を行い、それぞれの下地色を判別して補正テーブルを生成する必要があるので、装置構成の複雑化および大型化、処理時間の増大、消費電力の増大などの問題を招いていた。   In the technique of Patent Document 2, color correction in a direction in which the background color of the document is visually recognized as an achromatic color, and color correction in a direction in which the background color of the recording paper is visually recognized as an achromatic color, Therefore, depending on the combination of the background color of the original and the background color of the recording paper, it may not be possible to perform appropriate color reproduction as in Patent Document 1. Further, in the technique of Patent Document 2, it is necessary to perform an image reading operation of a document and a recording sheet every time image formation is performed, and to determine a base color of each and generate a correction table. Problems such as an increase in size, an increase in processing time, and an increase in power consumption have been caused.

これに対して、上記の構成によれば、各グループに対応する下地色にそれぞれ対応して設けられた複数の色補正テーブルを備えている。これにより、下地色除去処理が下地色以外の色に及ぼす影響を、原稿の下地色のグループ毎に考慮して各色補正テーブルを設定できる。したがって、下地色判別手段が原稿の下地色に応じて画像データを複数のグループのいずれかに分類し、色補正処理手段が分類されたグループに対応する色補正テーブルを用いて色補正を行うことで、下地色の除去に伴う下地色以外の色の変化を抑制し、色再現性を向上させることができる。また、記録用紙の画像読取動作、および補正テーブルの生成を画像形成を行う毎に行う必要がないので、上記特許文献2の技術に比べて装置構成を簡略化、処理時間の削減、消費電力の低減を図ることができる。   On the other hand, according to the above configuration, a plurality of color correction tables provided corresponding to the background colors corresponding to each group are provided. Thus, each color correction table can be set in consideration of the influence of the background color removal process on colors other than the background color for each group of background colors of the document. Therefore, the background color discrimination means classifies the image data into one of a plurality of groups according to the background color of the document, and the color correction processing means performs color correction using the color correction table corresponding to the classified group. Thus, it is possible to suppress a change in the color other than the base color due to the removal of the base color and improve the color reproducibility. Further, since it is not necessary to perform the image reading operation of the recording paper and the generation of the correction table every time image formation is performed, the apparatus configuration is simplified, the processing time is reduced, and the power consumption is reduced as compared with the technique of the above-mentioned Patent Document 2. Reduction can be achieved.

また、上記各色補正テーブルは、上記下地色除去に伴う下地色以外の色の変化が小さくなるように設定されていてもよい。   The color correction tables may be set so that changes in colors other than the base color due to the base color removal are small.

上記の構成によれば、上記各色補正テーブルに格納されるデータは、上記下地色除去に伴う下地色以外の色の変化が小さくなるように設定されている。すなわち、各色補正テーブルは、除去される下地色に応じて、下地色除去に伴う下地色以外の色の変化が小さくなるように設定されている。これにより、下地色の除去に伴う下地色以外の色の変化を確実に抑制することができ、色補正処理を下地色に応じてより適切に行うことができる。   According to the above configuration, the data stored in each of the color correction tables is set so that the change in colors other than the background color due to the background color removal becomes small. That is, each color correction table is set so that the change in colors other than the base color due to the base color removal becomes small according to the base color to be removed. As a result, it is possible to reliably suppress changes in colors other than the base color due to the removal of the base color, and it is possible to perform the color correction process more appropriately according to the base color.

また、上記色補正テーブルは、第1の表色系からなる画像データを、第2の表色系からなる画像データに変換するように設定されていてもよい。すなわち、上記色補正テーブルは、色補正処理と、第1の表色系(例えばRGB)からなる画像データを第2の表色系(例えばCMY)からなる画像データに変換する色変換処理とを同時に行うためのものであってもよい。   Further, the color correction table may be set so as to convert image data having the first color system into image data having the second color system. That is, the color correction table includes color correction processing and color conversion processing for converting image data composed of a first color system (for example, RGB) into image data composed of a second color system (for example, CMY). It may be for performing simultaneously.

上記の構成によれば、色補正処理と色変換処理とを共通のテーブルを用いて行えるので、画像処理装置の構成を簡略化することができる。   According to the above configuration, since the color correction process and the color conversion process can be performed using a common table, the configuration of the image processing apparatus can be simplified.

また、上記原稿種別判別手段は、注目画素を含む複数の画素からなるブロックが下地領域に属するかどうかを判定し、上記下地色除去手段は、上記原稿種別判別手段によって下地領域であると判定されたブロックについて上記下地色の除去を行い、上記色補正手段は、上記原稿種別判別手段によって下地領域であると判定されたブロックについて上記色補正を行う構成としてもよい。   The document type determination unit determines whether a block including a plurality of pixels including the target pixel belongs to the background region, and the background color removal unit determines that the block is a background region by the document type determination unit. The background color may be removed for the block, and the color correction unit may perform the color correction for the block determined to be the background region by the document type determination unit.

上記の構成によれば、原稿種別判別手段によって画像データの各ブロックが下地領域に属するかどうかを判定し、下地領域のブロックに対して上記の下地色除去および色補正を行うことができる。したがって、下地領域の各ブロックに対して下地色除去処理および色補正処理を適切に施すことができ、その他の領域のブロックに対しては、各領域の種別に応じた処理を施すことができる。   According to the above configuration, it is possible to determine whether or not each block of the image data belongs to the background area by the document type determination unit, and to perform the above background color removal and color correction on the block in the background area. Therefore, background color removal processing and color correction processing can be appropriately performed on each block in the background region, and processing corresponding to the type of each region can be performed on blocks in other regions.

本発明の画像処理方法は、上記の課題を解決するために、原稿から読み取った画像データに対して、上記原稿の原稿種別に応じた画像処理を施す画像処理方法であって、注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別する原稿種別判別工程と、上記画像データから下地色の濃度成分を除去する下地色除去工程とを含み、上記下地色除去工程では、上記原稿種別判別工程で判別した原稿種別に応じて下地色の濃度成分の除去量を調整することを特徴としている。   An image processing method of the present invention is an image processing method for performing image processing according to a document type of the document on image data read from the document in order to solve the above-described problem, and includes a target pixel. A document type determination step for determining the type of an area to which a block composed of a plurality of pixels belongs, and determining the document type based on the determination result of the area type, and a background color removal for removing the density component of the background color from the image data In the background color removal step, the removal amount of the density component of the background color is adjusted according to the document type determined in the document type determination step.

上記の方法によれば、原稿種別判別工程で、注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別する。そして、下地色除去工程で、原稿種別判別手段の判別した原稿種別に応じて下地色の濃度成分の除去量を調整する。これにより、原稿種別に応じて下地除去量を調整することができ、原稿種別に応じて適切な下地除去を行うことができる。   According to the above method, in the document type determination step, the type of an area to which a block composed of a plurality of pixels including the target pixel belongs is determined, and the document type is determined based on the determination result of the area type. Then, in the background color removal step, the removal amount of the density component of the background color is adjusted according to the document type determined by the document type determination unit. Accordingly, the background removal amount can be adjusted according to the document type, and appropriate background removal can be performed according to the document type.

また、上記の方法に加えて、上記原稿の下地色に応じて上記画像データを複数のグループのいずれかに分類する下地色判別工程と、上記各グループに対応する下地色にそれぞれ対応して設けられた、色補正の前後の画像データを対応付けた複数の色補正テーブルのうち、上記下地色判別工程で分類したグループに対応する色補正テーブルを用いて上記画像データを色補正する色補正処理工程とを含めてもよい。   In addition to the above method, a background color determining step for classifying the image data into one of a plurality of groups according to the background color of the document, and a background color corresponding to each group is provided. Color correction processing for color-correcting the image data using a color correction table corresponding to the group classified in the background color discrimination step among a plurality of color correction tables associated with the image data before and after color correction And a process.

上記の方法によれば、各グループに対応する下地色にそれぞれ対応して設けられた複数の色補正テーブルのうち、下地色判別工程で分類したグループに対応する色補正テーブルを用いて画像データを色補正する。したがって、下地色除去処理が下地色以外の色に及ぼす影響を、原稿の下地色のグループ毎に考慮して各色補正テーブルのデータを設定できるので、下地色の除去に伴う下地色以外の色の変化を抑制し、色再現性を向上させることができる。   According to the above method, the image data is obtained using the color correction table corresponding to the group classified in the background color discrimination step among the plurality of color correction tables provided corresponding to the background color corresponding to each group. Correct the color. Accordingly, since the data of each color correction table can be set in consideration of the influence of the background color removal processing on the colors other than the background color for each group of background colors of the document, the color of the color other than the background color accompanying the removal of the background color can be set. The change can be suppressed and the color reproducibility can be improved.

本発明の画像形成装置は、上記したいずれかの画像処理装置を備えていることを特徴としている。   The image forming apparatus of the present invention includes any one of the image processing apparatuses described above.

上記の構成によれば、原稿種別に応じて下地除去量を調整することができ、原稿種別に応じて適切な下地除去を行うことができる。   According to the above configuration, the background removal amount can be adjusted according to the document type, and appropriate background removal can be performed according to the document type.

なお、上記画像処理装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記各手段として動作させることにより、上記画像処理装置をコンピュータにて実現させる画像処理プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に含まれる。   The image processing apparatus may be realized by a computer. In this case, an image processing program for causing the image processing apparatus to be realized by the computer by causing the computer to operate as the respective means, and recording the program. Such computer-readable recording media are also included in the scope of the present invention.

以上のように、本発明の画像処理装置では、下地色除去手段が、原稿種別判別手段の判別した原稿種別に応じて下地色の濃度成分の除去量を調整する。また、本発明の画像処理方法では、下地色除去工程において、原稿種別判別工程で判別した原稿種別に応じて下地色の濃度成分の除去量を調整する。   As described above, in the image processing apparatus of the present invention, the background color removing unit adjusts the removal amount of the density component of the background color according to the document type determined by the document type determining unit. In the image processing method of the present invention, in the background color removal step, the removal amount of the density component of the background color is adjusted according to the document type determined in the document type determination step.

これにより、原稿種別に応じて下地除去量を調整することができ、原稿種別に応じて適切な下地除去を行うことができる。   Accordingly, the background removal amount can be adjusted according to the document type, and appropriate background removal can be performed according to the document type.

本発明の一実施形態について説明する。なお、本実施形態では、本発明の画像処理装置をデジタルカラー複写機(画像形成装置)に適用した場合について説明する。   An embodiment of the present invention will be described. In the present embodiment, a case where the image processing apparatus of the present invention is applied to a digital color copying machine (image forming apparatus) will be described.

(1−1.カラー画像処理装置2)
図2は、本発明のカラー画像処理装置(画像処理装置)2を適用したデジタルカラー複写機の概略構成を示すブロック図である。この図に示すように、本実施形態にかかるデジタルカラー複写機は、カラー画像入力装置1、カラー画像処理装置2、カラー画像出力装置3および操作パネル4を備えている。カラー画像処理装置2は、A/D変換部11、シェーディング補正部12、原稿種別自動判別部(原稿種別判別手段)13、入力階調補正部(下地色除去手段)14、領域分離処理部15、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、出力階調補正部19および階調再現処理部20を備えている。
(1-1. Color image processing apparatus 2)
FIG. 2 is a block diagram showing a schematic configuration of a digital color copying machine to which the color image processing apparatus (image processing apparatus) 2 of the present invention is applied. As shown in this figure, the digital color copying machine according to this embodiment includes a color image input device 1, a color image processing device 2, a color image output device 3, and an operation panel 4. The color image processing apparatus 2 includes an A / D conversion unit 11, a shading correction unit 12, a document type automatic determination unit (document type determination unit) 13, an input tone correction unit (background color removal unit) 14, and a region separation processing unit 15. A color correction unit 16, a black generation and under color removal unit 17, a spatial filter processing unit 18, an output gradation correction unit 19, and a gradation reproduction processing unit 20.

カラー画像入力装置(画像読取手段)1は、例えばCCD(Charge Coupled Device )を備えたスキャナ部(図示せず)より構成され、原稿からの反射光像を、RGB(R:赤・G:緑・B:青)のアナログ信号としてCCDにて読み取って、カラー画像処理装置2に入力するものである。   A color image input device (image reading means) 1 is composed of, for example, a scanner unit (not shown) provided with a CCD (Charge Coupled Device), and a reflected light image from a document is converted into RGB (R: red, G: green). B: read as an analog signal of blue) by the CCD and input to the color image processing apparatus 2

カラー画像入力装置1にて読み取られたアナログ信号は、カラー画像処理装置2内を、A/D変換部11、シェーディング補正部12、原稿種別自動判別部13、入力階調補正部14、領域分離処理部15、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、出力階調補正部19および階調再現処理部20の順に送られ、CMYKのデジタルカラー信号としてカラー画像出力装置3へ出力される。   An analog signal read by the color image input device 1 is converted into an A / D conversion unit 11, a shading correction unit 12, a document type automatic discrimination unit 13, an input tone correction unit 14, and a region separation in the color image processing device 2. The processing unit 15, the color correction unit 16, the black generation and under color removal unit 17, the spatial filter processing unit 18, the output gradation correction unit 19, and the gradation reproduction processing unit 20 are sent in this order, and a color image is output as a CMYK digital color signal. It is output to the device 3.

A/D(アナログ/デジタル)変換部11は、RGBのアナログ信号をデジタル信号に変換するもので、シェーディング補正部12は、A/D変換部11より送られてきたデジタルのRGB信号に対して、カラー画像入力装置1の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すものである。また、シェーディング補正部12ではカラーバランスの調整を行う。   The A / D (analog / digital) conversion unit 11 converts RGB analog signals into digital signals, and the shading correction unit 12 applies the digital RGB signals sent from the A / D conversion unit 11. The color image input apparatus 1 is subjected to processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system. The shading correction unit 12 adjusts the color balance.

原稿種別自動判別部13では、シェーディング補正部12にて各種の歪みが取り除かれカラーバランスの調整がなされたRGB信号(RGBの反射率信号)を濃度信号などカラー画像処理装置2に採用されている画像処理システムの扱い易い信号に変換するとともに、原稿種別の判別を行う。この原稿種別自動判別部13で生成された原稿種別判定信号は、入力階調補正部14、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、階調再現処理部20に出力される。なお、原稿種別自動判別部13の詳細については後述する。   In the automatic document type discrimination unit 13, the RGB signal (RGB reflectance signal) from which various distortions have been removed by the shading correction unit 12 and the color balance has been adjusted is employed in the color image processing apparatus 2 such as a density signal. The signal is converted into an easy-to-handle signal for the image processing system, and the document type is determined. The document type determination signal generated by the automatic document type determination unit 13 is sent to the input tone correction unit 14, the color correction unit 16, the black generation and under color removal unit 17, the spatial filter processing unit 18, and the tone reproduction processing unit 20. Is output. Details of the automatic document type discrimination unit 13 will be described later.

入力階調補正部14は、下地色(下地色の濃度成分)の除去やコントラストなどの画質調整処理を施すものである。なお、入力階調補正部14の詳細については後述するが、入力階調補正部14は、原稿種別自動判別部13の判別した原稿種別等に応じて下地色の濃度成分の除去量を調整するようになっている。また、入力階調補正部14は、複数の下地色除去用テーブルを有しており、下地色の階調レベルに応じた下地色除去用テーブルを選択して下地色の除去を行うようになっている。   The input gradation correction unit 14 performs image quality adjustment processing such as removal of background colors (background color density components) and contrast. Although details of the input tone correction unit 14 will be described later, the input tone correction unit 14 adjusts the removal amount of the density component of the background color according to the document type determined by the document type automatic determination unit 13. It is like that. The input gradation correction unit 14 has a plurality of background color removal tables, and selects a background color removal table corresponding to the gradation level of the background color to remove the background color. ing.

領域分離処理部15は、RGB信号より、入力画像中の各画素を文字領域、網点領域、写真(印画紙写真)領域のいずれかに分離するものである。領域分離処理部15は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、および階調再現処理部20へと出力するとともに、入力階調補正部14より出力された入力信号をそのまま後段の色補正部16に出力する。   The region separation processing unit 15 separates each pixel in the input image into one of a character region, a halftone dot region, and a photograph (photographic paper photograph) region from the RGB signal. Based on the separation result, the region separation processing unit 15 generates a region identification signal indicating which region the pixel belongs to, the color correction unit 16, the black generation and under color removal unit 17, the spatial filter processing unit 18, and the gradation reproduction. The output signal is output to the processing unit 20, and the input signal output from the input tone correction unit 14 is output to the subsequent color correction unit 16 as it is.

色補正部16は、色再現の忠実化実現のために、不要吸収成分を含むCMY(C:シアン・M:マゼンタ・Y:イエロー)色材の分光特性に基づいた色濁りを取り除く処理を行うものである。なお、色補正部16の詳細については後述するが、色補正部16は、下地色除去後に残る色の色味が下地色除去処理の影響によって極端に変化しないように調整した色補正テーブルを下地色に応じて複数備えている。これにより、本実施形態では、入力階調補正によって下地色の濃度成分の除去を行った画像データの色補正を行う場合であっても、色補正後の色味が極端に変化することを抑制し、原稿の色を適切に再現できるようになっている。   The color correction unit 16 performs a process of removing color turbidity based on spectral characteristics of CMY (C: cyan, M: magenta, Y: yellow) color materials including unnecessary absorption components in order to realize faithful color reproduction. Is. Although details of the color correction unit 16 will be described later, the color correction unit 16 uses a color correction table adjusted so that the color tone of the color remaining after the background color removal is not changed significantly by the influence of the background color removal process. There are several depending on the color. As a result, in this embodiment, even when color correction is performed on image data in which the density component of the background color has been removed by input tone correction, it is possible to prevent the color tone after color correction from changing extremely. The color of the original can be reproduced appropriately.

黒生成下色除去部17は、色補正後のCMYの3色信号から黒(K)信号を生成する黒生成、元のCMY信号から黒生成で得たK信号を差し引いて新たなCMY信号を生成する処理を行うものであって、CMYの3色信号はCMYKの4色信号に変換される。   The black generation and under color removal unit 17 generates black (K) signals from the CMY three-color signals after color correction, and subtracts the K signals obtained by black generation from the original CMY signals to generate new CMY signals. The CMY three-color signal is converted into a CMYK four-color signal.

黒生成処理の一例として、スケルトンブラックによる黒生成を行う方法(一般的方法)がある。この方法では、スケルトンカーブの入出力特性をy=f(x)、入力されるデータをC,M,Y、出力されるデータをC’,M’,Y’,K’、UCR(Under Color Removal)率をα(0<α<1)とすると、黒生成下色除去処理は以下の式(1)で表される。   As an example of the black generation process, there is a method (general method) for generating black by skeleton black. In this method, the input / output characteristic of the skeleton curve is y = f (x), the input data is C, M, Y, the output data is C ′, M ′, Y ′, K ′, UCR (Under Color When the removal rate is α (0 <α <1), the black generation and under color removal processing is expressed by the following equation (1).

K’=f{min(C,M,Y)}
C’=C−αK’
M’=M−αK’
Y’=Y−αK’ (1)
空間フィルタ処理部18は、黒生成下色除去部17より入力されるCMYK信号の画像データに対して、領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけや粒状性劣化を防ぐように処理するものである。階調再現処理部20も、空間フィルタ処理部18と同様に、CMYK信号の画像データに対して領域識別信号を基に所定の処理を施すものである。
K ′ = f {min (C, M, Y)}
C ′ = C−αK ′
M ′ = M−αK ′
Y ′ = Y−αK ′ (1)
The spatial filter processing unit 18 performs spatial filter processing by a digital filter on the image data of the CMYK signal input from the black generation and under color removal unit 17 based on the region identification signal, thereby correcting the spatial frequency characteristics. Processing is performed to prevent blurring of the output image and deterioration of graininess. Similar to the spatial filter processing unit 18, the gradation reproduction processing unit 20 also performs predetermined processing on the image data of the CMYK signal based on the region identification signal.

例えば、領域分離処理部15にて文字に分離された領域は、特に黒文字或いは色文字の再現性を高めるために、空間フィルタ処理部18による空間フィルタ処理における鮮鋭強調処理で高周波数の強調量が大きくされる。同時に、階調再現処理部20においては、高域周波数の再現に適した高解像度のスクリーンでの二値化または多値化処理が選択される。   For example, a region separated into characters by the region separation processing unit 15 has a high frequency enhancement amount in the sharp enhancement processing in the spatial filter processing by the spatial filter processing unit 18 in order to improve the reproducibility of black characters or color characters in particular. Increased. At the same time, the tone reproduction processing unit 20 selects binarization or multi-value processing on a high-resolution screen suitable for high-frequency reproduction.

また、領域分離処理部15にて網点領域に分離された領域に関しては、空間フィルタ処理部18において、入力網点成分を除去するためのローパス・フィルタ処理が施される。そして、出力階調補正部19では、濃度信号などの信号をカラー画像出力装置3の特性値である網点面積率に変換する出力階調補正処理を行った後、階調再現処理部20で、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理(中間調生成)が施される。領域分離処理部15にて写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化または多値化処理が行われる。   Further, with respect to the region separated into halftone dot regions by the region separation processing unit 15, the spatial filter processing unit 18 performs low-pass filter processing for removing the input halftone component. The output tone correction unit 19 performs output tone correction processing for converting a signal such as a density signal into a halftone dot area ratio that is a characteristic value of the color image output device 3, and then the tone reproduction processing unit 20. Then, gradation reproduction processing (halftone generation) is performed so that the image is finally separated into pixels and each gradation is reproduced. For the region separated into photographs by the region separation processing unit 15, binarization or multi-value processing is performed on the screen with an emphasis on gradation reproducibility.

操作パネル4は、例えば、液晶ディスプレイなどの表示部(図示せず)と設定ボタンなどより構成され、操作パネル4より入力された情報に基づいてカラー画像入力装置1、カラー画像処理装置2、カラー画像出力装置3の動作が制御される。   The operation panel 4 includes, for example, a display unit (not shown) such as a liquid crystal display, a setting button, and the like. Based on information input from the operation panel 4, the color image input device 1, the color image processing device 2, and the color The operation of the image output device 3 is controlled.

上述した各処理が施された画像データは、一旦記憶手段に記憶され、所定のタイミングで読み出されてカラー画像出力装置3に入力される。このカラー画像出力装置3は、画像データを記録媒体(例えば紙等)上に出力するもので、例えば、電子写真方式やインクジェット方式を用いたカラー画像出力装置等を挙げることができるが特に限定されるものではない。なお、以上の処理は図示しないCPU(Central Processing Unit)により制御される。   The image data that has been subjected to the above-described processes is temporarily stored in a storage unit, read at a predetermined timing, and input to the color image output device 3. The color image output device 3 outputs image data onto a recording medium (for example, paper). Examples of the color image output device 3 include a color image output device using an electrophotographic method or an inkjet method, but are not particularly limited. It is not something. The above processing is controlled by a CPU (Central Processing Unit) not shown.

(1−2.原稿種別自動判別部13)
次に、原稿種別自動判別部13の構成について説明する。なお、ここでは、原稿種別自動判別部13の一構成例について具体的に説明するが、原稿種別自動判別部13はこの構成に限るものではなく、少なくとも文字原稿と文字原稿以外の原稿とを判別できるものであればよい。
(1-2. Automatic Document Type Discrimination Unit 13)
Next, the configuration of the document type automatic discrimination unit 13 will be described. Here, an example of the configuration of the document type automatic discrimination unit 13 will be specifically described. However, the document type automatic discrimination unit 13 is not limited to this configuration, and at least discriminates between a text document and a document other than a text document. Anything is possible.

図3は、図2に示した原稿種別自動判別部13の構成を示すブロック図である。この原稿種別自動判別部13は、図3に示すように、最小濃度値算出部21(特徴量抽出部)、最大濃度値算出部22(特徴量抽出部)、最大濃度差算出部23(特徴量抽出部)、総和濃度繁雑度算出部24(特徴量抽出部)、判定領域設定部(第1面積階調画素検出部、第2面積階調画素検出部)25、最大濃度差閾値設定部(判定基準設定部)26、総和濃度繁雑度閾値設定部(判定基準設定部)27、文字・網点判定部(第1面積階調画素検出部)28、下地・印画紙判定部29、文字・網点判定閾値設定部(判定基準設定部)30、下地・印画紙判定閾値設定部31、第2面積階調画素抽出部32、文字画素計数部33、第1面積階調画素計数部34、下地画素計数部35、印画紙画素計数部36、面積階調画素判定部(種別決定部)37、面積階調画素判定閾値設定部(種別決定部)38および原稿判定部(種別決定部)39を備えている。   FIG. 3 is a block diagram showing a configuration of the document type automatic discrimination unit 13 shown in FIG. As shown in FIG. 3, the automatic document type discrimination unit 13 includes a minimum density value calculation unit 21 (feature amount extraction unit), a maximum density value calculation unit 22 (feature amount extraction unit), and a maximum density difference calculation unit 23 (features). Amount extraction unit), total density busyness calculation unit 24 (feature amount extraction unit), determination region setting unit (first area gradation pixel detection unit, second area gradation pixel detection unit) 25, maximum density difference threshold setting unit (Determination reference setting unit) 26, total density busyness threshold setting unit (determination reference setting unit) 27, character / halftone determination unit (first area gradation pixel detection unit) 28, background / photographic paper determination unit 29, character A halftone dot threshold setting unit (determination criterion setting unit) 30, a background / photographic paper determination threshold setting unit 31, a second area gradation pixel extraction unit 32, a character pixel counting unit 33, and a first area gradation pixel counting unit 34. , Background pixel counting unit 35, photographic paper pixel counting unit 36, area gradation pixel determining unit (type determining unit) 37, halftone dot pixel determination threshold setting section (classification determination section) 38 and a document determination unit and a (type determination portion) 39.

最小濃度値算出部21は、複数の画素からなり1個の注目画素を含むブロックの最小濃度値を算出する。最大濃度値算出部22は、上記ブロックの最大濃度値を算出する。最大濃度差算出部23は、最小濃度値算出部21および最大濃度値算出部22にて算出された最小濃度値および最大濃度値を用いて上記ブロックの最大濃度差を算出する。総和濃度繁雑度算出部24は、上記ブロックの隣接する画素同士の濃度差の絶対値の総和を算出する。   The minimum density value calculation unit 21 calculates a minimum density value of a block including a plurality of pixels and including one target pixel. The maximum density value calculation unit 22 calculates the maximum density value of the block. The maximum density difference calculation unit 23 calculates the maximum density difference of the block using the minimum density value and the maximum density value calculated by the minimum density value calculation unit 21 and the maximum density value calculation unit 22. The total density busyness calculation unit 24 calculates the sum of absolute values of density differences between adjacent pixels in the block.

判定領域設定部25は、最大濃度差算出部23にて算出された最大濃度差と最大濃度差閾値設定部26から与えられる第1最大濃度差閾値THd1とを比較し、また総和濃度繁雑度算出部24にて算出された総和濃度繁雑度と総和濃度繁雑度閾値設定部27から与えられる第1総和濃度繁雑度閾値THb1とを比較することにより、上記ブロックの注目画素が下地領域・印画紙(写真)領域と文字領域・網点領域とのいずれに属するかを判定する。   The determination area setting unit 25 compares the maximum density difference calculated by the maximum density difference calculation unit 23 with the first maximum density difference threshold THd1 given from the maximum density difference threshold setting unit 26, and calculates the total density busyness. By comparing the total density busyness calculated by the unit 24 with the first total density busyness threshold value THb1 given from the total density busyness threshold setting unit 27, the target pixel of the block becomes the background area / printing paper ( It is determined whether it belongs to the (photo) area or the character area / halftone dot area.

さらに、判定領域設定部25は、最大濃度差算出部23にて算出された上記最大濃度差と最大濃度差閾値設定部26から与えられる第2最大濃度差閾値THd2(THd1>THd2)とを比較し、また総和濃度繁雑度算出部24にて算出された上記総和濃度繁雑度と総和濃度繁雑度閾値設定部27から与えられる第2総和濃度繁雑度閾値THb2(THb1>THb2)とを比較する。これにより、上記ブロックについて、最大濃度差が第2最大濃度差閾値THd2以上であり、かつ総和濃度繁雑度が第2総和濃度繁雑度閾値THb2以上の条件を満たすか否かを判定する。   Further, the determination area setting unit 25 compares the maximum density difference calculated by the maximum density difference calculation unit 23 with the second maximum density difference threshold THd2 (THd1> THd2) given from the maximum density difference threshold setting unit 26. Further, the total density busyness calculated by the total density busyness calculating unit 24 is compared with the second total density busyness threshold THb2 (THb1> THb2) given from the total density busyness threshold setting unit 27. As a result, it is determined whether or not the above block satisfies the condition that the maximum density difference is equal to or greater than the second maximum density difference threshold THd2 and the total density busyness is equal to or greater than the second total density busyness threshold THb2.

上記第1最大濃度差閾値THd1および第1総和濃度繁雑度閾値THb1を用いた判定処理、並びに第2最大濃度差閾値THd2および第2総和濃度繁雑度閾値THb2を用いた判定処理は、注目画素に対して順次行われる。すなわち、原稿種別自動判別部13では、1つの注目画素がいずれの領域に属するかの判定処理を最大濃度差閾値と総和濃度繁雑度閾値という2種類の閾値を用いて判定している。また、注目画素を順次シフトするのに伴い、その注目画素を含むブロックの領域も順次シフトする。これら判定処理に伴う種々の制御はCPUにより行われる。   The determination process using the first maximum density difference threshold THd1 and the first total density busyness threshold THb1 and the determination process using the second maximum density difference threshold THd2 and the second total density busyness threshold THb2 are performed on the target pixel. It is performed sequentially. In other words, the document type automatic determination unit 13 determines the determination process as to which region one pixel of interest belongs to using two types of threshold values, a maximum density difference threshold value and a total density busyness threshold value. Further, as the target pixel is sequentially shifted, the area of the block including the target pixel is also sequentially shifted. Various controls associated with these determination processes are performed by the CPU.

最大濃度差閾値設定部26は、最大濃度差算出部23にて算出された最大濃度差に基づいて注目画素が下地領域・印画紙(写真)領域と文字領域・網点領域とのいずれに属するかを判定するための第1最大濃度差閾値THd1、および注目画素が第2面積階調画素であるか否かを判定するための第2最大濃度差閾値THd2(THd1>THd2)を設定する。これら第1最大濃度差閾値THd1および第2最大濃度差閾値THd2は判定領域設定部25において使用される。   The maximum density difference threshold setting unit 26, based on the maximum density difference calculated by the maximum density difference calculation unit 23, the pixel of interest belongs to any of the background area / printing paper (photo) area and the character area / halftone dot area. And a second maximum density difference threshold THd2 (THd1> THd2) for determining whether or not the target pixel is a second area gradation pixel. The first maximum density difference threshold THd1 and the second maximum density difference threshold THd2 are used in the determination area setting unit 25.

総和濃度繁雑度閾値設定部27は、総和濃度繁雑度算出部24にて算出された総和濃度繁雑度に基づいて注目画素が下地領域・印画紙領域と文字領域・網点領域とのいずれに属するかを判定するための第1総和濃度繁雑度閾値THb1、および注目画素が第2面積階調画素であるか否かを判定するための第2総和濃度繁雑度閾値THb2(THb1>THbを設定する。これら第1総和濃度繁雑度閾値THb1および第2総和濃度繁雑度閾値THb2は、判定領域設定部25において使用される。   The total density busyness threshold setting unit 27 includes a pixel of interest belonging to any one of the background area, the photographic paper area, the character area, and the halftone dot area based on the total density busyness calculated by the total density busyness calculation unit 24. The first total density busyness threshold THb1 for determining whether or not the target pixel is the second area gradation pixel, and the second total density busyness threshold THb2 (THb1> THb) are set. The first total density busyness threshold THb1 and the second total density busyness threshold THb2 are used in the determination area setting unit 25.

なお、第2最大濃度差閾値THd2、第2総和濃度繁雑度閾値THb2としては、例えば印画紙写真領域に属する画素を検出するための閾値を参考に、面積階調画素領域としての特徴を有していると判断される画素、すなわち、網点印刷で使用されている網点(第1面積階調画素)だけでなく、誤差拡散、ディザ処理、万線等により階調再現がなされている画素(第2面積階調画素)も含めて広い範囲で面積階調画画素領域の画素を抽出できるように設定される。   The second maximum density difference threshold value THd2 and the second total density busyness threshold value THb2 have characteristics as area gradation pixel regions with reference to threshold values for detecting pixels belonging to, for example, a photographic paper photograph region. In other words, pixels that are reproduced not only by halftone dots (first area gradation pixels) used in halftone printing, but also by error diffusion, dither processing, lines, etc. It is set so that pixels in the area gradation image pixel region can be extracted in a wide range including (second area gradation pixel).

文字・網点判定部28は、上記判定領域設定部25において文字・網点領域に属すると判別された画素について、その画素が文字領域と網点領域(第1面積階調画素)とのいずれに属するかを判定する。文字・網点判定閾値設定部30は、文字・網点判定部28において上記判定を行うための文字・網点判定閾値を設定する。   The character / halftone determination unit 28 determines whether the pixel determined as belonging to the character / halftone region by the determination region setting unit 25 is a character region or a halftone region (first area gradation pixel). It is judged whether it belongs to. The character / halftone dot determination threshold setting unit 30 sets a character / halftone dot determination threshold for the character / halftone dot determination unit 28 to perform the above determination.

下地・印画紙判定部29は、上記判定領域設定部25において下地領域・印画紙領域に属すると判別された画素について、その画素が下地領域と印画紙領域(印画紙写真領域。連続階調領域)とのいずれに属するかを判定する。下地・印画紙判定閾値設定部31は、下地・印画紙判定部29において前記判定を行うための下地・印画紙判定閾値を設定する。   The background / photographic paper determination unit 29, for the pixels determined by the determination region setting unit 25 as belonging to the background region / printing paper region, includes the background region and the photographic paper region (photographic paper photographic region, continuous tone region). ). The background / photographic paper determination threshold value setting unit 31 sets a background / photographic paper determination threshold value for the background / photographic paper determination unit 29 to perform the determination.

第2面積階調画素抽出部32は、画素抽出部(第2面積階調画素検出部)41、補正部42および画素計数部43を備えている。   The second area gradation pixel extraction unit 32 includes a pixel extraction unit (second area gradation pixel detection unit) 41, a correction unit 42, and a pixel counting unit 43.

画素抽出部41は、判定領域設定部25において、最大濃度差が第2最大濃度差閾値THd2以上であり、かつ総和濃度繁雑度が第2総和濃度繁雑度閾値THb2以上であると判定されたブロックの注目画素について、上記最大濃度差に上記文字・網点判定閾値を掛けた値と上記総和濃度繁雑度とを比較し、総和濃度繁雑度が最大濃度差×文字・網点判定閾値以上であるという条件を満たすブロックの注目画素を第2面積階調画素として抽出する。   The pixel extraction unit 41 determines in the determination area setting unit 25 that the maximum density difference is equal to or greater than the second maximum density difference threshold THd2 and the total density busyness is equal to or greater than the second total density busyness threshold THb2. For the pixel of interest, the value obtained by multiplying the maximum density difference by the character / halftone determination threshold is compared with the total density busyness, and the total density busyness is equal to or greater than the maximum density difference × character / halftone determination threshold. The target pixel of the block that satisfies the condition is extracted as the second area gradation pixel.

補正部42は、判定領域設定部25において、第2最大濃度差閾値THd2および第2総和濃度繁雑度閾値THb2を用いた判定処理で文字領域・網点領域のいずれにも属さないものと判定された画素、あるいは、画素抽出部41おいて第2面積階調画素として抽出されなかった画素(対象画素)のうちから、第2面積階調画素と見なし得るものを第2階調画素として扱うように補正する。この補正の可否は上記対象画素を注目画素として、その周辺画素の判定結果を参照して判断する。   In the determination region setting unit 25, the correction unit 42 is determined not to belong to either the character region or the halftone dot region in the determination process using the second maximum density difference threshold THd2 and the second total density busyness threshold THb2. Pixels that can be regarded as the second area gradation pixel among the pixels (target pixels) that have not been extracted as the second area gradation pixel by the pixel extraction unit 41 are treated as the second gradation pixel. To correct. Whether or not this correction is possible is determined by referring to the determination result of the surrounding pixels with the target pixel as the target pixel.

画素計数部43は、画素抽出部41および補正部42において第2面積階調画素であると判定された画素数(見なされた画素の数を含む)を計数する。   The pixel counting unit 43 counts the number of pixels determined to be the second area gradation pixel by the pixel extracting unit 41 and the correcting unit 42 (including the number of pixels considered).

文字画素計数部33は、文字・網点判定部28において文字領域に属すると判定された画素数を計数する。第1面積階調画素計数部34は、文字・網点判定部28において網点領域(第1面積階調画素)に属すると判定された画素数を計数する。下地画素計数部35は、下地・印画紙判定部29において下地領域に属すると判定された画素数を計数する。印画紙画素計数部36は、下地・印画紙判定部29において印画紙写真領域に属すると判定された画素数を計数する。なお、これら計数値は原稿画像全体についての合計値である。   The character pixel counting unit 33 counts the number of pixels determined to belong to the character area by the character / halftone determination unit 28. The first area gradation pixel counting unit 34 counts the number of pixels determined by the character / halftone determination unit 28 to belong to the halftone area (first area gradation pixel). The background pixel counting unit 35 counts the number of pixels determined to belong to the background region by the background / photographic paper determination unit 29. The photographic paper pixel counting unit 36 counts the number of pixels determined to belong to the photographic paper photograph area by the background / photographic paper determination unit 29. These count values are total values for the entire document image.

面積階調画素判定部37は、第1面積階調画素計数部34での網点領域(第1面積階調画素)に属する画素の計数結果および第2面積階調画素抽出部32の画素計数部43での第2面積階調画素の計数結果と面積階調画素判定閾値設定部38から与えられる面積階調画素判定閾値とを比較し、原稿画像に網点(第1面積階調画素)が含まれているか否かを判定する。面積階調画素判定閾値設定部38は、面積階調画素判定部37において使用される面積階調画素判定閾値を設定する。   The area gradation pixel determination unit 37 counts the pixels belonging to the dot area (first area gradation pixel) in the first area gradation pixel counting unit 34 and the pixel count of the second area gradation pixel extraction unit 32. The count result of the second area gradation pixel in the unit 43 is compared with the area gradation pixel determination threshold given from the area gradation pixel determination threshold setting unit 38, and a halftone dot (first area gradation pixel) is added to the document image. Whether or not is included is determined. The area gradation pixel determination threshold setting unit 38 sets an area gradation pixel determination threshold used in the area gradation pixel determination unit 37.

原稿判定部39は、文字画素計数部33、下地画素計数部35、印画紙画素計数部36および面積階調画素判定部37からの各画素数の計数結果および判定結果に基づいて原稿種別を判定する。   The document determination unit 39 determines the document type based on the count result and the determination result of each pixel number from the character pixel counting unit 33, the background pixel counting unit 35, the photographic paper pixel counting unit 36, and the area gradation pixel determining unit 37. To do.

ここで、文字、網点、印画紙写真および下地の各領域における画素濃度の分布の例を図4(a)〜図4(d)に基づいて説明する。また、上記の各領域の最大濃度差と総和濃度繁雑度とを指標とした分布を図5に基づいて説明する。なお、総和濃度繁雑度と最大濃度差との関係において総和濃度繁雑度が最大濃度差以下となることはなく、図5における最大濃度差=総和濃度繁雑度以下の領域は、画素が存在しない領域を示している。   Here, an example of pixel density distribution in each region of characters, halftone dots, photographic paper photograph, and background will be described with reference to FIGS. 4 (a) to 4 (d). In addition, a distribution using the maximum density difference and the total density busyness in each area as an index will be described with reference to FIG. Note that the total density busyness never falls below the maximum density difference in the relationship between the total density busyness and the maximum density difference, and the area where the maximum density difference = the total density busyness in FIG. Is shown.

下地領域は、図4(a)に示すように、通常、濃度変化が少ないため、最大濃度差および総和濃度繁雑度ともに非常に小さくなり、図5に示す領域Aに分布している。したがって、下地・印画紙領域に属すると判別された画素であって下地・印画紙判定閾値よりも最大濃度差が小さい画素は、下地画素であると判別することが可能である。   As shown in FIG. 4A, the background area usually has a small change in density, so that both the maximum density difference and the total density busyness are very small and are distributed in the area A shown in FIG. Therefore, a pixel that has been determined to belong to the background / printing paper region and that has a smaller maximum density difference than the background / printing paper determination threshold can be determined to be a background pixel.

印画紙写真領域は、図4(b)に示すように、通常、滑らかな濃度変化をしており、最大濃度差および総和濃度繁雑度がともに小さく、かつ、下地領域よりも多少大きくなるため、図5に示す領域Bに分布している。したがって、下地領域・印画紙領域に属すると判別された画素であって下地・印画紙判定閾値よりも最大濃度差が大きいブロックの画素(注目画素)は、印画紙領域に属するものであると判別することが可能である。   As shown in FIG. 4B, the photographic paper photograph area usually has a smooth density change, and both the maximum density difference and the total density busyness are small and slightly larger than the background area. It is distributed in the region B shown in FIG. Therefore, a pixel (a pixel of interest) that is determined to belong to the background area / photographic paper area and has a maximum density difference larger than the background / print paper determination threshold value is determined to belong to the photographic paper area. Is possible.

網点領域は、図4(c)に示すように、最大濃度差が網点によりさまざまであるものの、網点の数だけ濃度変化が存在するので、最大濃度差に対する総和濃度繁雑度の割合が大きくなる。このため、図5に示す領域Dのような分布になる。したがって、文字・網点領域に属すると判別された画素であって最大濃度差と文字・網点判定閾値との積よりも総和濃度繁雑度が大きいブロックの画素(注目画素)は、網点領域に属するものであると判別することが可能である。   In the halftone dot area, as shown in FIG. 4C, although the maximum density difference varies depending on the halftone dots, there are density changes as many as the number of halftone dots, so the ratio of the total density busyness to the maximum density difference is growing. For this reason, it becomes distribution like the area | region D shown in FIG. Therefore, a pixel (a target pixel) of a block that is determined to belong to the character / halftone dot area and has a total density busyness larger than the product of the maximum density difference and the character / halftone dot determination threshold is the halftone dot area. It is possible to determine that it belongs to.

文字領域は、図4(d)に示すように、最大濃度差が大きく、それに伴い総和濃度繁雑度も大きくなるものの、網点領域よりも濃度変化が少ないため、網点領域よりも総和濃度繁雑度が小さくなる。特に、最大濃度差に対する総和濃度繁雑度の割合が小さくなるため、図5に示す領域Cのような分布になる。したがって、文字・網点領域に属すると判別された画素であって最大濃度差と文字・網点判定閾値との積よりも総和濃度繁雑度が小さいブロックの画素(注目画素)は、文字領域に属するものであると判別することが可能である。   As shown in FIG. 4D, the character area has a large maximum density difference and a corresponding increase in the total density busyness. However, since the density change is smaller than that in the halftone dot area, the total density busyness is lower than that in the halftone dot area. The degree becomes smaller. In particular, since the ratio of the total density busyness with respect to the maximum density difference is small, the distribution is as shown in a region C in FIG. Therefore, a pixel (a pixel of interest) of a block that is determined to belong to the character / halftone dot area and has a total density busyness smaller than the product of the maximum density difference and the character / halftone dot determination threshold is included in the character area. It can be determined that it belongs.

上述したように、下地領域および印画紙写真領域は、最大濃度差および総和濃度繁雑度が文字領域および網点領域に比べて小さくなる。したがって、最大濃度差を最大濃度差閾値(第1最大濃度差閾値THd1)と比較するとともに、総和濃度繁雑度を総和濃度繁雑度閾値(第1総和濃度繁雑度閾値THb1)と比較することにより、判定領域設定部25では、注目画素が下地・印画紙領域と文字・網点領域とのいずれに属するかを判別することが可能となる。   As described above, the maximum density difference and the total density busyness are smaller in the background area and the photographic paper photograph area than in the character area and the dot area. Therefore, by comparing the maximum density difference with the maximum density difference threshold (first maximum density difference threshold THd1) and comparing the total density busyness with the total density busyness threshold (first total density busyness threshold THb1), The determination area setting unit 25 can determine whether the pixel of interest belongs to the background / printing paper area or the character / halftone area.

次に、第1面積階調画素と第2面積階調画素について説明する。図6(a)は第1面積階調画素(網点)を含む領域における1網点(1ドット)付近の画素の濃度値を示す説明図であり、図6(b)は第1面積階調画素を含む領域における濃度変化を示す説明図である。同様に、図7(a)は第2面積階調画素を含む領域における1ドット付近の画素の濃度値を示す説明図であり、図7(b)は第2面積階調画素を含む領域における濃度変化を示す説明図である。なお、図6(a)および図7(a)では、ドットの濃度を6値で表しており、「0」は最低濃度(白:地肌)であり、「5」は最大濃度である。   Next, the first area gradation pixel and the second area gradation pixel will be described. FIG. 6A is an explanatory diagram showing density values of pixels near one halftone dot (one dot) in a region including the first area gradation pixel (halftone dot), and FIG. It is explanatory drawing which shows the density change in the area | region containing a tone pixel. Similarly, FIG. 7A is an explanatory diagram showing the density value of a pixel near one dot in a region including the second area gradation pixel, and FIG. 7B is a diagram in the region including the second area gradation pixel. It is explanatory drawing which shows a density | concentration change. In FIG. 6A and FIG. 7A, the dot density is represented by six values, “0” being the lowest density (white: background) and “5” being the highest density.

網点印刷で用いられる網点(第1面積階調画素)は濃淡が明確であり、印刷物に適した線数が用いられる。したがって、網点印刷原稿において網点の濃度が高く網点の間隔はほぼ一定である(図6(a)、図6(b)参照)。   A halftone dot (first area gradation pixel) used in halftone printing has clear shading, and the number of lines suitable for the printed material is used. Therefore, the halftone dot density is high in the halftone printed document, and the halftone dot interval is substantially constant (see FIGS. 6A and 6B).

上記の構成において、原稿種別自動判別部13による原稿種別判別処理の動作を図8から図11に示すフローチャートに基づいて説明する。なお、以下では、複数の画素からなり1個の注目画素を含むブロックがn×m(例えば、15×15)画素からなるものとする。   The operation of the document type determination process by the document type automatic determination unit 13 in the above configuration will be described with reference to the flowcharts shown in FIGS. In the following description, it is assumed that a block including a plurality of pixels and including one target pixel includes n × m (for example, 15 × 15) pixels.

まず、注目画素を含むn×m画素のブロックについて、最小濃度値算出部21では最小濃度値を算出し(S1)、最大濃度値算出部22では最大濃度値を算出する(S2)。次に、最大濃度差算出部23では、算出された最小濃度値および最大濃度値を用いて上記ブロックにおける最大濃度差を算出する(S3)。一方、総和濃度繁雑度算出部24では、上記ブロックにおける、隣接する画素の濃度差の絶対値の総和、つまり総和濃度繁雑度を算出する(S4)。これら最大濃度差の算出処理と総和濃度繁雑度の算出処理とは順次行われてもよく、並行して行われてもよい。   First, for a block of n × m pixels including the target pixel, the minimum density value calculation unit 21 calculates the minimum density value (S1), and the maximum density value calculation unit 22 calculates the maximum density value (S2). Next, the maximum density difference calculation unit 23 calculates the maximum density difference in the block using the calculated minimum density value and maximum density value (S3). On the other hand, the total density busyness calculation unit 24 calculates the sum of absolute values of density differences between adjacent pixels in the block, that is, the total density busyness (S4). The maximum density difference calculation process and the total density busyness calculation process may be performed sequentially or in parallel.

次に、判定領域設定部25では、最大濃度差算出部23にて算出された最大濃度差と第1最大濃度差閾値THd1および第2最大濃度差閾値THd2とを比較し、総和濃度繁雑度算出部24にて算出された総和濃度繁雑度と第1総和濃度繁雑度閾値THb1および第2総和濃度繁雑度閾値THb2とを比較する(S5およびS6、S151およびS152(図9参照))。   Next, the determination area setting unit 25 compares the maximum density difference calculated by the maximum density difference calculation unit 23 with the first maximum density difference threshold value THd1 and the second maximum density difference threshold value THd2, and calculates the total density busyness. The total density busyness calculated in the unit 24 is compared with the first total density busyness threshold THb1 and the second total density busyness threshold THb2 (S5 and S6, S151 and S152 (see FIG. 9)).

そして、判定領域設定部25では、最大濃度差が第1最大濃度差閾値THd1よりも小さく、かつ総和濃度繁雑度が第1総和濃度繁雑度閾値THb1よりも小さい場合に(S6)、そのブロックに含まれる注目画素を下地・印画紙領域のものと判定する(S7)。一方、S6において上記条件を満たさない場合に、上記注目画素を文字・網点領域のものと判定する(S9)。   Then, in the determination area setting unit 25, when the maximum density difference is smaller than the first maximum density difference threshold THd1 and the total density busyness is smaller than the first total density busyness threshold THb1 (S6), the determination area setting unit 25 sets the block. The target pixel included is determined to be in the background / printing paper region (S7). On the other hand, if the above condition is not satisfied in S6, the pixel of interest is determined to be in the character / halftone area (S9).

この判定において注目画素が下地・印画紙領域のものと判定された場合に、下地・印画紙判定部29では、その注目画素を含むブロックの上記最大濃度差と下地・印画紙判定閾値とを比較する(S8)。この比較の結果、最大濃度差の方が小さければその注目画素を下地領域のものと判定し(S11)、最大濃度差の方が大きければその注目画素を印画紙領域のものと判定する(S12)。   In this determination, when it is determined that the pixel of interest is in the background / photographic paper region, the background / photographic paper determination unit 29 compares the maximum density difference of the block including the pixel of interest with the background / photographic paper determination threshold value. (S8). As a result of the comparison, if the maximum density difference is smaller, the target pixel is determined to be in the background area (S11), and if the maximum density difference is larger, the target pixel is determined to be in the photographic paper area (S12). ).

一方、S9の判定において注目画素が文字・網点領域のものと判定された場合に、文字・網点判定部28では、その注目画素を含むブロックの上記最大濃度差に文字・網点判定閾値を掛けた値と上記総和濃度繁雑度とを比較する(S10)。この比較の結果、総和濃度繁雑度の方が小さければその注目画素を文字領域のものと判定し(S13)、総和濃度繁雑度の方が大きければ、その注目画素を網点領域のものと判定する(S14)。   On the other hand, if it is determined in S9 that the pixel of interest is in the character / halftone area, the character / halftone determination unit 28 determines the character / halftone determination threshold to the maximum density difference of the block including the pixel of interest. The value multiplied by is compared with the total density busyness (S10). If the total density busyness is smaller as a result of this comparison, the target pixel is determined to be in the character region (S13), and if the total density busyness is higher, the target pixel is determined to be in the halftone dot region. (S14).

次に、原稿種別自動判別部13では、原稿画像の全ての画素について以上の判定が終了しているか否かを判定し(S16:図11)、終了していなければS1に戻ってそれ以下の処理を繰り返す。一方、終了していれば、S17〜S19の処理を経た後、原稿判定部39において原稿種別の判定を行う(S20)。   Next, the document type automatic determination unit 13 determines whether or not the above determination has been completed for all the pixels of the document image (S16: FIG. 11). Repeat the process. On the other hand, if the process has been completed, the document determination unit 39 determines the document type after the processing of S17 to S19 (S20).

原稿種別自動判別部13では、上記S5〜S14の処理と並行して、第2面積階調画素抽出部32による第2面積階調画素抽出処理(S15)を行う。この処理の詳細を図9のフローチャートに示す。   The document type automatic discrimination unit 13 performs second area gradation pixel extraction processing (S15) by the second area gradation pixel extraction unit 32 in parallel with the processing of S5 to S14. Details of this processing are shown in the flowchart of FIG.

判定領域設定部25では、最大濃度差算出部23にて算出された最大濃度差と第2最大濃度差閾値THd2とを比較し、総和濃度繁雑度算出部24にて算出された総和濃度繁雑度と第2総和濃度繁雑度閾値THb2とを比較する(S151およびS152)。   The determination area setting unit 25 compares the maximum density difference calculated by the maximum density difference calculating unit 23 with the second maximum density difference threshold THd2, and the total density busyness calculated by the total density busyness calculating unit 24. And the second total density busyness threshold THb2 are compared (S151 and S152).

第2面積階調画素抽出部32の画素抽出部41では、最大濃度差が第2最大濃度差閾値THd2以上であり、かつ総和濃度繁雑度が第2総和濃度繁雑度閾値THb2以上であると判定されたブロックについて、最大濃度差に文字・網点判定閾値を掛けた値と総和濃度繁雑度とを比較する(S153)。この比較の結果、総和濃度繁雑度の方が大きければ、そのブロックに含まれる注目画素を第2面積階調画素領域のものと判定する(S155)。   In the pixel extraction unit 41 of the second area gradation pixel extraction unit 32, it is determined that the maximum density difference is greater than or equal to the second maximum density difference threshold THd2, and the total density busyness is greater than or equal to the second total density busyness threshold THb2. For the block obtained, the value obtained by multiplying the maximum density difference by the character / halftone dot determination threshold is compared with the total density busyness (S153). If the total density busyness is larger as a result of this comparison, the target pixel included in the block is determined to be in the second area gradation pixel region (S155).

一方、S152において、最大濃度差が第2最大濃度差閾値THd2よりも小さい、あるいは総和濃度繁雑度が第2総和濃度繁雑度閾値THb2よりも小さいと判定されたブロックの注目画素、およびS153において、総和濃度繁雑度が最大濃度差×文字・網点判定閾値よりも小さいと判定されたブロックの注目画素については、補正部42が補正処理の候補画素とし、適宜補正処理を行う(S154)。この補正処理について、図10のフローチャートおよび図12を用いて以下に説明する。   On the other hand, in S152, the target pixel of the block in which the maximum density difference is determined to be smaller than the second maximum density difference threshold THd2, or the total density busyness is smaller than the second total density busyness threshold THb2, and in S153, For the target pixel of the block for which the total density busyness is determined to be smaller than the maximum density difference × character / halftone determination threshold value, the correction unit 42 sets the pixel as a candidate pixel for correction processing, and performs correction processing as appropriate (S154). This correction process will be described below with reference to the flowchart of FIG. 10 and FIG.

まず、図12に示すように、注目画素の左側に隣接する画素が第2面積階調画素と判定されているか否かを判定する(S161)。なお、図12においては、左側の画素から右側の画素に処理が進行し、注目画素の左側の画素については既に処理が終了しているものとする。処理が右側の画素から左側の画素に進行する場合はその逆となる。また、処理は上側のラインから下側のラインへ進行するものとする。   First, as shown in FIG. 12, it is determined whether or not the pixel adjacent to the left side of the target pixel is determined as the second area gradation pixel (S161). In FIG. 12, it is assumed that the process proceeds from the left pixel to the right pixel, and the process has already been completed for the pixel on the left side of the target pixel. The opposite is true when processing proceeds from the right pixel to the left pixel. Further, the processing proceeds from the upper line to the lower line.

次に、注目画素に隣接する1つ前のラインの所定領域内に存在する第2面積階調画素と判定された画素の数を計数し(S162)、その計数値と予め定めされる閾値THsとを比較する(S163)。この比較の結果、第2面積階調画素の数が閾値THs以上であれば、注目画素についての判定結果を第2面積階調画素に変更する(S164)。一方、第2面積階調画素の数が閾値THbsよりも少なければ、注目画素の判定結果の変更は行わない(S165)。   Next, the number of pixels determined to be the second area gradation pixel existing in the predetermined area of the previous line adjacent to the target pixel is counted (S162), and the count value and a predetermined threshold THs are counted. Are compared (S163). If the number of second area gradation pixels is equal to or greater than the threshold value THs as a result of this comparison, the determination result for the target pixel is changed to the second area gradation pixel (S164). On the other hand, if the number of second area gradation pixels is smaller than the threshold THbs, the determination result of the target pixel is not changed (S165).

上記1つ前のラインの所定領域は、注目画素に隣接する画素を含むように選択され、例えば、10画素程度の領域として設定される。この所定領域は注目画素とする画素を順次シフトして行くのに応じて同方向にシフトする。なお、所定領域を10画素程度の領域とした場合、閾値THsは例えば3に設定する。   The predetermined area of the previous line is selected so as to include a pixel adjacent to the target pixel, and is set as an area of about 10 pixels, for example. This predetermined area shifts in the same direction as the pixel of interest is sequentially shifted. When the predetermined area is an area of about 10 pixels, the threshold value THs is set to 3, for example.

上記のように、第2面積階調画素抽出部32では、最大濃度差と第2最大濃度差閾値とを比較し、さらに総和濃度繁雑度と第2総和濃度繁雑度閾値および最大濃度差×文字・網点判定閾値とを比較し、面積階調画素としての特徴量を有する画素を第2面積階調画素として抽出している。さらに、面積階調画素としての特徴量を有していないと判定された画素のうちから、所定領域の情報(注目画素に対する周辺画素の判定結果)に基づいて第2面積階調画素と見なし得る画素を第2面積階調画素として加算している。   As described above, the second area gradation pixel extraction unit 32 compares the maximum density difference with the second maximum density difference threshold, and further, the total density busyness, the second total density busyness threshold, and the maximum density difference × character. The halftone dot determination threshold is compared, and a pixel having a feature amount as an area gradation pixel is extracted as a second area gradation pixel. Furthermore, from among the pixels determined not to have the feature amount as the area gradation pixel, it can be regarded as the second area gradation pixel based on information on a predetermined region (determination result of the peripheral pixel with respect to the target pixel). Pixels are added as second area gradation pixels.

なお、第2面積階調画素抽出部32でのS153の判定では、S10での最大濃度差×文字・網点判定閾値をそのまま用いているが、これに限定されず、異なる値を設定してもよい。例えば、S10で用いる値よりも小さい値に設定してもよい。具体的には、S10で用いる値を6とした場合、S153では4に設定してもよい。   In the determination of S153 in the second area gradation pixel extraction unit 32, the maximum density difference in S10 × the character / halftone determination threshold is used as it is, but the present invention is not limited to this, and a different value is set. Also good. For example, a value smaller than the value used in S10 may be set. Specifically, if the value used in S10 is 6, it may be set to 4 in S153.

次に、面積階調画素判定部37での判定動作について図11のフローチャートに基づいて説明する。   Next, the determination operation in the area gradation pixel determination unit 37 will be described based on the flowchart of FIG.

面積階調画素判定部37では、第1面積階調画素計数部34による第1面積階調画素の計数値をCs1、画素計数部43による第2面積階調画素の計数値をCs2、面積階調画素判定閾値設定部38における面積階調画素判定閾値をTHsとすると、
Cs1/Cs2>THs
を満たす場合に、その原稿画像に印刷網点が含まれていると判定し(S17、S18)、第1面積階調画素の計数値を網点の計数値とする。一方、上式を充たさない場合に、その原稿画像に印刷網点が含まれていないと判定する(S17、S19)。この判定において、面積階調画素判定閾値THsは例えば0.15とする。面積階調画素判定閾値THsは、種々の画像サンプルを基に、適切な値を設定すれば良い。
In the area gradation pixel determination unit 37, the count value of the first area gradation pixel by the first area gradation pixel counting unit 34 is Cs1, the count value of the second area gradation pixel by the pixel counting unit 43 is Cs2, and the area level When the area gradation pixel determination threshold value in the adjustment pixel determination threshold value setting unit 38 is THs,
Cs1 / Cs2> THs
If the condition is satisfied, it is determined that the original halftone dot is included in the original image (S17, S18), and the count value of the first area gradation pixel is set as the halftone dot count value. On the other hand, when the above equation is not satisfied, it is determined that the original halftone dot is not included in the document image (S17, S19). In this determination, the area gradation pixel determination threshold value THs is set to 0.15, for example. The area gradation pixel determination threshold value THs may be set to an appropriate value based on various image samples.

次に、原稿判定部39における原稿種別判別動作について詳細に説明する。原稿判定部39での原稿種別の判別は、面積階調画素判定部37において上記のように原稿画像に印刷網点が含まれていると判定された場合(図11のS18)に、例えば、その原稿についてプレスキャンを行って得た画像データを用いて画素の判別を行い、判別された画素数を計数し、予め用意されている下地領域、印画紙領域、網点領域および文字領域に対する閾値と比較することにより原稿全体の種別の判定を行う。   Next, the document type determination operation in the document determination unit 39 will be described in detail. The document type determination unit 39 determines the document type when the area gradation pixel determination unit 37 determines that the document image includes a print halftone dot as described above (S18 in FIG. 11). Pixels are discriminated using image data obtained by pre-scanning the original, the number of discriminated pixels is counted, and threshold values for a preliminarily prepared background area, photographic paper area, halftone dot area, and character area are prepared. To determine the type of the entire document.

具体的には、例えば、文字領域の比率と網点領域の比率とが、それぞれ閾値以上の場合は、文字/網点印刷原稿(文字印刷写真原稿)であると判定する。また、文字、網点、印画紙写真の順に検出精度が高くなっている場合において、文字領域の比率が全画素数の30%の場合には文字原稿、網点領域の比率が全画素数の20%の場合には網点印刷原稿(印刷写真原稿)、印画紙写真領域の比率が全画素数の10%の場合には印画紙写真原稿であると判定する。   Specifically, for example, when the ratio of the character area and the ratio of the halftone dot area are equal to or greater than the threshold values, respectively, it is determined that the character / halftone print original (character print photo original). In the case where the detection accuracy increases in the order of characters, halftone dots, and photographic paper photographs, if the ratio of the character area is 30% of the total number of pixels, the ratio of the character original and the halftone area is the total number of pixels. When the ratio is 20%, it is determined that the image is a halftone print original (printed photo original), and when the ratio of the photographic paper photographic area is 10% of the total number of pixels, it is a photographic paper photographic original.

なお、以上の説明では、面積階調画素判定部37において、第1面積階調画素の計数結果と第2面積階調画素の計数結果との比を用いて原稿画像に印刷網点が含まれるか否かの判定を行っているが、上記比に代えて、両者を加算した結果や両者の差など、第1面積階調画素と第2面積階調画素の計数結果に対して演算処理を行った結果を用いることが可能である。   In the above description, the area gradation pixel determination unit 37 includes a print halftone dot in the document image using the ratio between the count result of the first area gradation pixel and the count result of the second area gradation pixel. However, instead of the above ratio, arithmetic processing is performed on the counting results of the first area gradation pixel and the second area gradation pixel, such as the result of adding the two and the difference between the two. It is possible to use the results performed.

また、上記では、S154として補正処理を行っているが、この補正処理は必須のものではない。補正処理を行わない場合には、上記のように算出された最大濃度差、総和濃度繁雑度に対して、第2最大濃度差閾値、第2総和濃度繁雑度閾値および最大濃度差×文字・網点判定閾値を用いて第2面積階調画素を判定する場合、第2面積階調画素を面積階調画素としての特徴量を有している画素とし、上記網点判定処理で用いる面積階調画素判定閾値設定部38の面積階調画素判定閾値を例えば0.30と高く設定すれば良い。   In the above description, correction processing is performed as S154, but this correction processing is not essential. When the correction process is not performed, the second maximum density difference threshold, the second total density busyness threshold, and the maximum density difference × character / network with respect to the maximum density difference and the total density busyness calculated as described above. When determining the second area gradation pixel using the point determination threshold value, the second area gradation pixel is a pixel having a feature amount as the area gradation pixel, and the area gradation used in the halftone determination processing. The area gradation pixel determination threshold value of the pixel determination threshold value setting unit 38 may be set as high as 0.30, for example.

また、原稿種別自動判別部13が特徴量として最大濃度差、総和濃度繁雑度を用いて処理を行う方法について説明を行ったが、特徴量はこれらに限定されるのもではなく、ランレングスや反転回数であっても構わない。また、上記では、注目画素を下地領域・印画紙(写真)領域と文字領域・網点領域に判別し、再度、下地領域と印画紙領域に判別する例について示したが、文字領域、網点領域、印画紙領域、下地領域に含まれるか否かをそれぞれ並列に判別処理する方法であっても構わない。また、文字領域と網点領域をまとめてその他領域としても良い。   In addition, the method of performing processing using the maximum density difference and the total density busyness as the feature amount has been described by the document type automatic determination unit 13, but the feature amount is not limited to these, and run length and It may be the number of inversions. In the above description, the pixel of interest is identified as the background area / printing paper (photo) area and the character area / halftone dot area, and again determined as the background area / printing paper area. It may be a method of performing determination processing in parallel as to whether or not each region is included in the region, the photographic paper region, and the background region. In addition, the character area and the halftone dot area may be combined into other areas.

なお、原稿種別自動判別部13は、原稿1ページを走査したのちに判別結果を後段各処理へとフィードフォローするために、少なくとも原稿1ページ分のデータをバッファリング(一時保管)するバッファ部(図示せず)を有している。   The document type automatic discrimination unit 13 scans one page of the document and feeds the discrimination result to each process in the subsequent stage to buffer (temporarily store) data for at least one page of the document. (Not shown).

次に、原稿種別の判別がなされた場合、原稿種別自動判別部13の判別結果に基づく、後段の各処理部での処理の例について説明する。   Next, an example of processing in each processing unit in the subsequent stage based on the determination result of the document type automatic determination unit 13 when the document type is determined will be described.

複数の領域が混在しないと判別された場合は上述した領域分離処理と同様である。一方、複数の領域が混在すると判別された場合はそれぞれの領域処理の中間パラメータを使用し、原稿種別判別処理で判別されなかった領域処理のパラメータは使用しないようにすればよい。   When it is determined that a plurality of areas are not mixed, the process is the same as the area separation process described above. On the other hand, if it is determined that a plurality of areas are mixed, the intermediate parameters of the respective area processes may be used, and the area process parameters that have not been determined in the document type determination process may not be used.

例えば、詳細は後述するが、入力画像(原稿)が文字原稿であると判別された場合には、入力階調補正処理において、ハイライト(高輝度部分)の下地除去量を多めに設定したり、コントラストを大きくしたりするような補正曲線を用いる。   For example, as will be described in detail later, when it is determined that the input image (original) is a character original, the background removal amount of highlight (high luminance portion) is set to be larger in the input gradation correction processing. A correction curve that increases contrast is used.

また、色文字に対しては彩度を重視した色補正処理を行う一方、黒文字に対しては黒生成下色除去処理(CMY3色の重なりからなるグレー成分を減らしてK(黒)成分で置き換える処理)において黒生成量が多めに設定される。また、文字に対しては、空間フィルタ処理でエッジを強調し、平滑化処理を弱くするようにフィルタ係数を設定する等のパラメータの切り替え等が行われる。   In addition, color correction processing that emphasizes saturation is performed on color characters, while black generation and lower color removal processing is performed on black characters (a gray component formed by overlapping CMY three colors is reduced and replaced with a K (black) component). In the processing, the black generation amount is set to be large. In addition, for a character, switching of parameters such as setting a filter coefficient so as to enhance an edge by spatial filter processing and weaken smoothing processing is performed.

入力画像が文字印画紙写真原稿であると判別された場合は、各処理において、文字原稿処理と印画紙写真原稿処理の中間パラメータを用いた処理が行われる。文字原稿又は印画紙写真原稿のいずれを重視するかにより、入力階調補正処理では、印画紙写真原稿処理と文字原稿処理との中間のパラメータを用いてハイライトの除去やコントラストの調整を行い、また、彩度の強弱や階調性のバランスが極端にならないような色補正処理を行う。また、黒生成下色除去処理では、印画紙写真画像に影響が出ない程度に黒生成量の調整を行うようにすればよい。   When it is determined that the input image is a character photographic paper photographic document, processing using intermediate parameters between the character document processing and the photographic paper photographic document processing is performed in each process. Depending on whether the text manuscript or photographic paper photo manuscript is prioritized, the input tone correction processing uses the intermediate parameters between the photographic paper photo manuscript processing and the character manuscript processing to remove highlights and adjust the contrast. Also, color correction processing is performed so that the intensity of saturation and the balance of gradation are not extreme. Further, in the black generation and under color removal processing, the black generation amount may be adjusted to such an extent that the photographic paper photographic image is not affected.

次に、入力階調補正部14および色補正部16の構成、ならびに下地領域に対する色補正処理について説明する。まず、入力階調補正部14の構成について説明する。   Next, the configurations of the input tone correction unit 14 and the color correction unit 16 and the color correction processing for the background region will be described. First, the configuration of the input tone correction unit 14 will be described.

(1−3.入力階調補正部14)
図13は、入力階調補正部14の構成を示すブロック図である。この図に示すように、入力階調補正部14は、階調レベル判定部(階調判別手段)51、階調補正処理部52、階調補正テーブル記憶部53を備えている。
(1-3. Input tone correction unit 14)
FIG. 13 is a block diagram showing the configuration of the input tone correction unit 14. As shown in this figure, the input tone correction unit 14 includes a tone level determination unit (tone determination unit) 51, a tone correction processing unit 52, and a tone correction table storage unit 53.

階調レベル判定部51には、原稿種別自動判別部13の判別結果を示す原稿種別判定信号が入力される。階調レベル判定部51は、この原稿種別判定信号に基づいて、下地領域に属すると判定されたブロック(複数の画素からなり1個の注目画素を含むブロック)の階調レベルを複数段階(本実施形態ではTS16〜TS32の17段階)に分類し、この分類結果を階調補正処理部52に出力する。   A document type determination signal indicating the determination result of the document type automatic determination unit 13 is input to the gradation level determination unit 51. The gradation level determination unit 51 determines the gradation levels of a block (a block including a plurality of pixels and including one target pixel) determined to belong to the background area based on the document type determination signal in a plurality of stages (this In the embodiment, classification is performed in 17 stages (TS16 to TS32), and the classification result is output to the gradation correction processing unit 52.

ここで、階調レベル判定部51における階調レベルの分類方法について説明する。表1〜表3は、入力階調補正部14に入力された下地領域の画像データにおけるR,G,B成分の各階調と分類される段階との関係を示している。   Here, a gradation level classification method in the gradation level determination unit 51 will be described. Tables 1 to 3 show the relationship between the gradation levels of the R, G, and B components in the background area image data input to the input gradation correction unit 14 and the classified stages.

Figure 0004522978
Figure 0004522978

Figure 0004522978
Figure 0004522978

Figure 0004522978
Figure 0004522978

表1に示すように、上記ブロックの各画素におけるR,G,Bの信号が、R≧230かつR−G≧20かつR−B≧20の関係を満たす場合にはTS16に分類する。同様に、R≧230かつR−G≧16かつR−B≧16の場合にはTS17に分類し、R≧230かつR−G≧12かつR−B≧12の場合にはTS18に分類し、R≧230かつR−G≧8かつR−B≧8の場合にはTS19に分類する。なお、TS16〜TS19に分類される下地色は、ピンク系の色である。   As shown in Table 1, when the signals of R, G, B in each pixel of the block satisfy the relationship of R ≧ 230, RG ≧ 20, and RB ≧ 20, the signal is classified as TS16. Similarly, if R ≧ 230, R−G ≧ 16, and R−B ≧ 16, classify as TS17, and if R ≧ 230, R−G ≧ 12, and R−B ≧ 12, classify as TS18. , R ≧ 230, R−G ≧ 8, and R−B ≧ 8, classify as TS19. Note that the base color classified into TS16 to TS19 is a pink color.

また、表2に示すように、上記ブロックの各画素におけるR,G,Bの信号が、Rmax≧235かつGmin≧231かつR−G<4かつR−B<4の関係を満たす場合にはTS20に分類し、Rmax≧243かつGmin≧236かつR−G<4かつR−B<4の関係を満たす場合にはTS21に分類し、Rmax≧247かつGmin≧244かつR−G<4かつR−B<4の関係を満たす場合にはTS22に分類する。なお、TS20〜TS22に分類される下地色は、グレー系の色である。   Also, as shown in Table 2, when the R, G, B signals in each pixel of the block satisfy the relationship of Rmax ≧ 235, Gmin ≧ 231, RG <4, and RB <4 If it is classified as TS20 and the relationship of Rmax ≧ 243, Gmin ≧ 236, RG <4, and RB <4 is satisfied, it is classified as TS21, Rmax ≧ 247, Gmin ≧ 244, RG <4 and If the relationship of R−B <4 is satisfied, it is classified as TS22. The base color classified into TS20 to TS22 is a gray color.

また、表3に示すように、上記ブロックの各画素におけるR,G,Bの信号が、B≧230かつR−B≧20かつG−B≧20の関係を満たす場合にはTS23に分類し、B≧230かつR−B≧16かつG−B≧16の関係を満たす場合にはTS24に分類し、B≧230かつR−B≧12かつG−B≧12の関係を満たす場合にはTS25に分類し、B≧230かつR−B≧8かつG−B≧8の関係を満たす場合にはTS26に分類する。なお、TS23〜26に分類される下地色は、イエロー系の色である。   As shown in Table 3, if the R, G, B signals in each pixel of the block satisfy the relationship of B ≧ 230, RB ≧ 20, and GB ≧ 20, the signal is classified as TS23. , If B ≧ 230 and RB ≧ 16 and GB ≧ 16 are satisfied, classify as TS24, and if B ≧ 230, RB ≧ 12 and GB ≧ 12, If it is classified as TS25 and B ≧ 230, R−B ≧ 8, and G−B ≧ 8 are satisfied, it is classified as TS26. Note that the base color classified as TS23 to 26 is a yellow color.

TS16〜TS27のいずれにも該当しない下地色は白系の色であり、これら白系の下地色からなる画像データは、R,G、Bの階調レベルに応じてTS28〜TS32のいずれかのレベルに分類される。TS28〜TS32の分類方法については任意に設定すればよい。   The background color that does not correspond to any of TS16 to TS27 is a white color, and the image data composed of these white background colors is at any level of TS28 to TS32 according to the R, G, and B gradation levels. being classified. What is necessary is just to set arbitrarily about the classification method of TS28-TS32.

階調補正テーブル記憶部53には、複数の原稿種別(あるいは原稿種別のグループ)のそれぞれについて、上記のように分類される下地色の階調レベル(TS16〜TS32)に対応して設けられた複数の下地色除去用テーブル(入力階調−出力階調の変換テーブル)が対応して格納されている。つまり、TS16〜TS32の17段階の下地色除去テーブルが複数セット(17段階×原稿種別数(あるいは原稿種別のグループ数))格納されている。これらの各下地色除去用テーブルは、それぞれの階調レベルに応じて、入力画像データと下地色の除去を行った後の出力画像データとを対応付けたデータからなる。   The gradation correction table storage unit 53 is provided corresponding to the gradation levels (TS16 to TS32) of the background color classified as described above for each of a plurality of document types (or groups of document types). A plurality of background color removal tables (input gradation-output gradation conversion tables) are stored correspondingly. That is, a plurality of sets (17 stages × number of document types (or number of groups of document types)) of 17-stage background color removal tables of TS16 to TS32 are stored. Each of the background color removal tables includes data in which input image data and output image data after removal of the background color are associated with each other according to the respective gradation levels.

図18は、文字原稿,印画紙写真原稿,文字印画紙写真原稿(文字と写真の混じった原稿)における1ページ分の濃度出現頻度の一例を表したグラフである。図19は、文字原稿に対する下地色除去テーブル(γカーブ)の一例、および写真原稿に対する下地色除去テーブルの一例を示すグラフである。この図に示すように、文字原稿では下地部と文字部の区別が付きやすいので、階調レベルの判定結果が同じ場合、文字原稿用の下地色除去テーブルは写真原稿用の下地色除去テーブルよりもハイライトの下地除去量が多く設定する。これにより、文字原稿に対する下地除去量が不足して下地色の成分が残ってしまうことを防止できる。一方、写真原稿用の下地色除去テーブルは、文字原稿用の下地色除去テーブルよりも下地除去量を抑えている。これにより、写真原稿の場合に、例えば下地除去を行うべきでない箇所の下地除去が行われるといった不具合が生じることを防止できる。   FIG. 18 is a graph showing an example of the density appearance frequency for one page in a character document, a photographic paper photographic document, and a character photographic paper photographic document (a document in which characters and photographs are mixed). FIG. 19 is a graph showing an example of a background color removal table (γ curve) for a character document and an example of a background color removal table for a photographic document. As shown in this figure, in a character document, it is easy to distinguish between the background portion and the character portion. Therefore, if the gradation level determination result is the same, the background color removal table for the character document is more than the background color removal table for the photo document. Also set the amount of highlight ground removal large. Thereby, it is possible to prevent the background color component from remaining due to insufficient background removal amount for the character document. On the other hand, the background color removal table for photographic originals has a lower background removal amount than the background color removal table for character originals. As a result, in the case of a photographic document, it is possible to prevent the occurrence of a problem such as removal of a background where a background should not be removed.

なお、本実施形態では、網点印刷原稿および印画紙原稿における濃度出現頻度は、マクロ視点(原稿全体)で見た場合にはほとんど差異がないので(ただし、ミクロ視点(数画素程度の範囲)での濃度出現頻度や画像平面上の出現パターンは異なる)、下地除去用テーブルについては網点印刷原稿と印画紙原稿とで同じテーブルを用いている。   In the present embodiment, the density appearance frequency in the halftone printed document and the photographic paper document is almost the same when viewed from the macro viewpoint (entire document) (however, the micro viewpoint (range of several pixels)). As for the background removal table, the same table is used for the halftone print original and the photographic paper original.

また、本実施形態では、印刷写真原稿(網点などの面積階調(階調をON/OFFの面積で表現する方法)による中間調表現がされている原稿)および印画紙写真原稿(面積階調によらず、染料や顔料自体を変えることによって中間調表現がされている原稿)に対して同じ下地除去用テーブルを用いている。ただし、機器の特性(例えば画像読取装置の解像力等)に応じて、それぞれ専用の下地除去用テーブルを用いてもよい。   In the present embodiment, a printed photo document (a document in which halftone expression is represented by area gradation such as halftone dots (a method of expressing gradation by an ON / OFF area)) and a photographic paper document (area floor) The same background removal table is used for originals (halftones expressed by changing dyes or pigments themselves, regardless of tone). However, a dedicated background removal table may be used according to the characteristics of the device (for example, the resolving power of the image reading apparatus).

また、本実施形態では、文字印画紙写真原稿に対する下地色除去用テーブルとして、文字原稿用の下地色除去テーブルと印画紙写真原稿用の下地色除去用テーブルとの中間の下地除去量を有するテーブルを用いている。ただし、これに限らず、文字印画紙写真原稿に対する下地色除去用テーブルとして、印画紙写真原稿用の下地色除去用テーブルを用いてもよい。したがって、文字と写真とが混在する原稿の場合、下地除去と階調再現のどちらを優先すべきかに応じて下地除去量を適宜設定(あるいは下地色除去用テーブルを適宜選択)すればよい。   Further, in the present embodiment, as a background color removal table for a character photographic paper photographic document, a table having an intermediate background removal amount between a background color removal table for a character document and a background color removal table for a photographic paper photographic document. Is used. However, the present invention is not limited to this, and a background color removal table for a photographic paper photographic document may be used as a background color removal table for a character photographic paper photographic document. Therefore, in the case of a document in which characters and photographs are mixed, the background removal amount may be appropriately set (or the background color removal table is appropriately selected) depending on whether background removal or gradation reproduction should be given priority.

図14は、下地色除去用テーブル(γカーブ)の一例を示すグラフである。なお、本実施形態では、R,G,Bの各データに対して原稿種別(あるいは原稿種別のグループ)および階調レベル毎に共通のテーブルを用いているが、これに限らず、R,G,Bのそれぞれについて個別のテーブルを用意してもよい。   FIG. 14 is a graph showing an example of the base color removal table (γ curve). In the present embodiment, a common table is used for each of R, G, and B data for each document type (or group of document types) and gradation level. However, the present invention is not limited to this. , B may be provided with separate tables.

階調補正処理部52は、原稿種別自動判別部13の判別した原稿種別および階調レベル判定部51の分類結果に基づいて、階調補正テーブル記憶部53に格納されている下地色除去用テーブルの中から原稿種別および下地色の階調レベルに応じたテーブルを選択し、選択したテーブルを参照して原稿種別自動判別部13から入力された画像データ(R,G,B)を出力画像データ(R’,G’,B’)に変換して領域分離処理部15に出力する。なお、階調レベル判定部51に下地領域以外の原稿種別判定信号が入力された場合、例えば、階調レベル判定部51が原稿種別判定信号をそのまま階調補正処理部52に出力し、階調補正処理部52が原稿種別に応じた階調補正テーブルを選択して階調補正処理を行うようにしてもよい。   The gradation correction processing unit 52 is a background color removal table stored in the gradation correction table storage unit 53 based on the document type determined by the document type automatic determination unit 13 and the classification result of the gradation level determination unit 51. A table corresponding to the document type and the gradation level of the background color is selected from among the image data, and the image data (R, G, B) input from the document type automatic discrimination unit 13 with reference to the selected table is output image data. It is converted into (R ′, G ′, B ′) and output to the region separation processing unit 15. When a document type determination signal other than the background area is input to the gradation level determination unit 51, for example, the gradation level determination unit 51 outputs the document type determination signal to the gradation correction processing unit 52 as it is, The correction processing unit 52 may select the gradation correction table corresponding to the document type and perform the gradation correction process.

(1−4.色補正部16)
図15は、色補正部16の構成を示すブロック図である。この図に示すように、色補正部16は、下地色判定部(下地色判別手段)61、色補正処理部(色補正処理手段)62、色補正テーブル記憶部63を備えている。
(1-4. Color Correction Unit 16)
FIG. 15 is a block diagram illustrating a configuration of the color correction unit 16. As shown in this figure, the color correction unit 16 includes a background color determination unit (background color determination unit) 61, a color correction processing unit (color correction processing unit) 62, and a color correction table storage unit 63.

下地色判定部61は、原稿種別自動判別部13の判別結果を示す原稿種別判定信号が入力され、この原稿種別判定信号に基づいて、下地領域に属すると判定されたブロック(複数の画素からなり1個の注目画素を含むブロック)を下地色の色系統に応じて複数のグループに分類する。本実施形態では、上記した入力階調補正部14に備えられる階調レベル判定部51と同様の方法で上記ブロックの階調レベルをTS16〜TS32の17段階に分類し、さらにTS23〜TS26(イエロー系の下地色)に分類されたブロックをグループA、TS20〜TS22(グレー系の下地色)に分類されたブロックをグループB、TS16〜TS19(ピンク系の下地色)に分類されたブロックをグループC、TS27〜TS32(白系の下地色)に分類されたブロックをグループDに分類する。そして、この分類結果を色補正処理部62に出力する。   The background color determination unit 61 receives a document type determination signal indicating the determination result of the document type automatic determination unit 13 and, based on the document type determination signal, is a block (consisting of a plurality of pixels) determined to belong to the background region. A block including one pixel of interest) is classified into a plurality of groups according to the color system of the background color. In the present embodiment, the gradation level of the block is classified into 17 levels of TS16 to TS32 by the same method as the gradation level determination unit 51 provided in the input gradation correction unit 14, and TS23 to TS26 (yellow). Block classified as group A), blocks classified as TS20 to TS22 (gray background color) into group B, and blocks classified as TS16 to TS19 (pink background color) into group Blocks classified as C and TS27 to TS32 (white base colors) are classified into group D. Then, the classification result is output to the color correction processing unit 62.

色補正テーブル記憶部63には、上記の各グループにそれぞれ対応して設けられた複数の色補正テーブル(色補正・色変換テーブル)が格納されている。図16は、色補正テーブル記憶部63に記憶される各色補正テーブルの概念を示す説明図である。この図に示すように、各色補正テーブルは、R’,G’,B’をそれぞれ軸とする3次元空間として表現でき、R’,G’,B’の値によって特定されるアドレスには、変換後の色データであるC,M,Yの値が格納されている。つまり、これらの色補正テーブルを用いることで、RGBからなる第1の表色系の画像データを、CMYからなる第2の表色系の画像データに変換できるようになっている。   The color correction table storage unit 63 stores a plurality of color correction tables (color correction / color conversion tables) provided corresponding to the above groups. FIG. 16 is an explanatory diagram showing the concept of each color correction table stored in the color correction table storage unit 63. As shown in this figure, each color correction table can be expressed as a three-dimensional space with R ′, G ′, and B ′ as axes, and addresses specified by the values of R ′, G ′, and B ′ include: C, M, and Y values that are color data after conversion are stored. That is, by using these color correction tables, it is possible to convert the first color system image data composed of RGB into the second color system image data composed of CMY.

また、各色補正テーブルのデータは、下地色除去後に残る色の色味が極端に変化しないように、すなわち、下地色除去に伴う下地色以外の色の変化を小さくするように、それぞれの色補正テーブルに対応するグループ毎に設定されている。例えば、濃い色の下地上に薄い色の画像が形成された原稿から読み取った画像データに対して入力階調処理によって下地色の濃度成分の除去を施した画像データの色補正を行う場合であっても、原稿における薄い色の画像が忠実に色再現されるように、各色補正テーブルのデータが各テーブルに対応する下地色に応じて設定されている。   In addition, the data of each color correction table is such that the color tone remaining after the background color removal does not change drastically, that is, the color correction other than the background color due to the background color removal is reduced. It is set for each group corresponding to the table. For example, this is a case where color correction is performed on image data obtained by removing density components of the background color by input gradation processing on image data read from a document in which a light color image is formed on a dark ground. However, the data of each color correction table is set according to the background color corresponding to each table so that the light color image in the original is faithfully reproduced.

(1−5.下地色除去処理および色補正処理)
次に、入力階調補正部14における下地色除去処理および色補正部16における色補正処理について、図17に基づいて説明する。図17は下地色除去処理および色補正処理の流れを示すフロー図である。
(1-5. Background color removal processing and color correction processing)
Next, the background color removal process in the input tone correction unit 14 and the color correction process in the color correction unit 16 will be described with reference to FIG. FIG. 17 is a flowchart showing the flow of background color removal processing and color correction processing.

原稿種別自動判別部13から入力階調補正部14に画像データ(R,G,B)および原稿種別判定信号が入力されると、図17に示すように、階調レベル判定部51が下地領域に属するブロックについて、TS16〜TS32のうちのどの階調レベルに該当するかを判定する(S201)。また、階調レベル判定部51は、判定結果を示す信号、すなわち注目しているブロックがTS16〜TS32のうちのどの階調レベルに該当するかを示す信号を階調補正処理部52に出力する。   When the image data (R, G, B) and the document type determination signal are input from the document type automatic determination unit 13 to the input gradation correction unit 14, as shown in FIG. It is determined which gradation level of TS16 to TS32 corresponds to the block belonging to (S201). Further, the gradation level determination unit 51 outputs a signal indicating the determination result, that is, a signal indicating which gradation level of the TS 16 to TS 32 corresponds to the target block to the gradation correction processing unit 52. .

次に、階調補正処理部52は、原稿種別判別信号が示す原稿種別および階調レベル判定部51の判定結果が示す階調レベルに応じて下地色除去用テーブルを選択し(S202)、上記ブロックについての入力画像データ(R,G,B)を、選択した下地色除去用テーブルに基づいて出力画像データ(R’,G’,B’)に補正し、下地色の除去を行う(S203)。そして、出力画像データ(R’,G’,B’)を領域分離処理部15に出力する。なお、ここでは領域分離処理部15の処理については説明を省略する。   Next, the gradation correction processing unit 52 selects the background color removal table according to the document type indicated by the document type determination signal and the gradation level indicated by the determination result of the gradation level determination unit 51 (S202). The input image data (R, G, B) for the block is corrected to output image data (R ′, G ′, B ′) based on the selected background color removal table, and the background color is removed (S203). ). The output image data (R ′, G ′, B ′) is output to the region separation processing unit 15. Here, description of the processing of the region separation processing unit 15 is omitted.

領域分離処理部15から画像データ(R’,G’,B’)を入力された色補正部16では、下地色判定部61が、そのブロックがグループA〜Dのいずれに属するかを判定し、判定結果を色補正処理部62に出力する(S204)。   In the color correction unit 16 to which the image data (R ′, G ′, B ′) is input from the region separation processing unit 15, the background color determination unit 61 determines which of the groups A to D the block belongs to. The determination result is output to the color correction processing unit 62 (S204).

色補正処理部62は、下地色判定部61の判定結果が示すグループに対応する色補正テーブルを選択し(S205)、入力画像データ(R’,G’,B’)を、選択した色補正テーブルに基づいて出力画像データ(C,M,Y)に補正する(S206)。   The color correction processing unit 62 selects a color correction table corresponding to the group indicated by the determination result of the background color determination unit 61 (S205), and selects the input image data (R ′, G ′, B ′) as the selected color correction. The output image data (C, M, Y) is corrected based on the table (S206).

図1は、入力階調補正部14における下地色除去処理、および色補正部16における色補正処理におけるルックアップテーブル(下地色除去用テーブルおよび色補正テーブル)の選択方法を示す説明図である。この図に示すように、階調レベル判定部51の判定結果が示す階調レベル(TS16〜TS32)に対応する下地色除去用テーブル(LUT16〜LUT32)を用いて下地色除去処理が行われ、下地色判定部61の判定結果が示すグループ(グループA〜D)に対応する色補正テーブル(LUT−A〜LUTD)を用いて色補正が行われる。   FIG. 1 is an explanatory diagram illustrating a selection method of lookup tables (background color removal table and color correction table) in the background color removal process in the input tone correction unit 14 and the color correction process in the color correction unit 16. As shown in this figure, the background color removal process is performed using the background color removal tables (LUT16 to LUT32) corresponding to the gradation levels (TS16 to TS32) indicated by the determination result of the gradation level determination unit 51, Color correction is performed using color correction tables (LUT-A to LUTD) corresponding to groups (groups A to D) indicated by the determination result of the background color determination unit 61.

以上のように、本実施形態にかかるカラー画像処理装置2では、原稿種別自動判別部13が、注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別し、入力階調補正部14が原稿種別判別手段の判別した原稿種別に応じて下地色除去用テーブルを選択することで下地除去量を調整している。   As described above, in the color image processing apparatus 2 according to the present embodiment, the document type automatic determination unit 13 determines the type of an area to which a block composed of a plurality of pixels including the target pixel belongs, and the determination result of the area type The input gradation correction unit 14 selects the background color removal table in accordance with the document type determined by the document type determination means, thereby adjusting the background removal amount.

つまり、入力階調補正部14は、下地色の階調レベルに対応して設けられた複数の下地色除去用テーブルを、原稿種別(あるいは原稿種別のグループ)に対応して複数セット記憶した階調補正テーブル記憶部53と、原稿種別自動判別部13の判別した原稿種別に基づいて、階調補正テーブル記憶部53に格納されている下地色除去用テーブルの中からその原稿種別に応じたテーブルを選択し、選択したテーブルを用いて下地色除去処理を行う階調補正処理部52とを備えている。   In other words, the input gradation correction unit 14 stores a plurality of sets of background color removal tables provided corresponding to the gradation levels of the background color corresponding to the document type (or group of document types). Based on the document type determined by the tone correction table storage unit 53 and the document type automatic determination unit 13, a table corresponding to the document type is selected from the background color removal tables stored in the gradation correction table storage unit 53. And a gradation correction processing unit 52 that performs background color removal processing using the selected table.

これにより、原稿種別に応じて下地除去量を調整することができ、原稿種別に応じて適切な下地除去を行うことができる。例えば、高コントラストが要求される文字原稿や、階調性の適切な再現が要求される写真原稿などについて、それぞれの原稿種別に応じて下地除去量を適切に設定できるので、原稿に応じた適切な下地除去を行うことができる。   Accordingly, the background removal amount can be adjusted according to the document type, and appropriate background removal can be performed according to the document type. For example, for text originals that require high contrast and photo originals that require appropriate reproduction of gradation, the background removal amount can be set appropriately according to the type of each original. It is possible to remove the background.

また、本実施形態では、階調補正テーブル記憶部53に、複数の原稿種別(あるいは原稿種別のグループ)のそれぞれについて、下地色の階調レベルに応じた複数の下地色除去テーブルが記憶されている。そして、入力階調補正部14には、原稿種別自動判別部13で下地領域に属すると判定されたブロック(複数の画素からなり1個の注目画素を含むブロック)の階調レベルを複数段階に分類する階調レベル判定部51を備えており、階調補正処理部52が、原稿種別と階調レベル判定部51の分類した階調レベルとに応じて下地色除去用テーブルを選択し、選択したテーブルを用いて下地色除去処理を行うようになっている。   In the present embodiment, the gradation correction table storage unit 53 stores a plurality of background color removal tables corresponding to the gradation levels of the background colors for each of a plurality of document types (or document type groups). Yes. The input tone correction unit 14 sets the tone levels of the blocks (blocks including a plurality of pixels and including one pixel of interest) determined to belong to the background area by the document type automatic discrimination unit 13 in a plurality of stages. A gradation level determination unit 51 for classification is provided, and a gradation correction processing unit 52 selects and selects a background color removal table according to the document type and the gradation level classified by the gradation level determination unit 51. The background color removal processing is performed using the table.

これにより、原稿種別および下地色の階調レベルに応じて下地除去量を調節でき、より適切な下地除去処理を行うことができる。ただし、これに限らず、複数の原稿種別(あるいは原稿種別のグループ)のそれぞれについて下地色除去用テーブルを1つづつ備えた構成としてもよい。   As a result, the amount of background removal can be adjusted according to the document type and the gradation level of the background color, and more appropriate background removal processing can be performed. However, the present invention is not limited to this, and one background color removal table may be provided for each of a plurality of document types (or groups of document types).

また、本実施形態では、下地色の階調レベルが同じ場合、文字原稿用の下地色除去テーブルは写真原稿用の下地色除去テーブルよりもハイライトの下地除去量が多くなっている。これにより、文字原稿における下地除去量を十分にするとともに、その他の原稿(例えば写真原稿)において下地除去を行うべきでない箇所の下地除去を行ってしまう不具合が生じることを防止できる。   Further, in the present embodiment, when the gradation level of the background color is the same, the background color removal table for character originals has a higher amount of highlight background removal than the background color removal table for photo originals. As a result, the background removal amount in the character original is sufficient, and it is possible to prevent a problem that the background removal is performed in a portion where the background removal should not be performed in other originals (for example, photographic originals).

また、本実施形態にかかるカラー画像処理装置2では、複数の色補正用テーブルを記憶した色補正テーブル記憶部63と、画像データに基づいて下地色を判定する下地色判定部61とを備えており、下地色判定部61の判定結果に基づいて色補正処理に用いる色補正テーブルを選択するようになっている。また、各色補正テーブルは、下地色除去後に残る色に対する下地色除去に伴う色味の変化が小さくなるように、下地色の色系統に応じて設定されている。これにより、下地色の除去に伴う下地色以外の色の変化を抑制し、色再現性を向上させることができる。   In addition, the color image processing apparatus 2 according to the present embodiment includes a color correction table storage unit 63 that stores a plurality of color correction tables, and a background color determination unit 61 that determines a background color based on image data. The color correction table used for the color correction process is selected based on the determination result of the background color determination unit 61. In addition, each color correction table is set according to the color system of the background color so that a change in color due to the background color removal with respect to the color remaining after the background color removal is reduced. Thereby, it is possible to suppress a change in the color other than the base color due to the removal of the base color and improve the color reproducibility.

なお、本実施形態では、入力階調補正部14に備えられる階調レベル判定部51において下地領域に属するブロックの階調レベルを判別し、色補正部16に備えられる下地色判定部61において下地領域に属するブロックの色系統(グループ)を判定しているが、これに限らず、例えばこれらの各処理を階調レベル判定部51において行うようにしてもよい。   In the present embodiment, the gradation level determination unit 51 provided in the input gradation correction unit 14 determines the gradation level of the block belonging to the background region, and the background color determination unit 61 provided in the color correction unit 16 determines the background level. Although the color system (group) of the blocks belonging to the region is determined, the present invention is not limited to this, and for example, each of these processes may be performed in the gradation level determination unit 51.

また、本実施形態では、グループA〜Dにそれぞれ対応する4つの色補正テーブルを備えた構成について説明したが、これに限らず、少なくとも2つ以上の色補正テーブルを備えていればよい。色補正テーブルの数を増やすほど色再現性を向上させることができる一方で、色補正テーブル記憶部63に要求される記憶容量は大きくなる。したがって、色補正テーブルの数は、必要とする色再現性能と色補正テーブル記憶部63として使用するメモリのコスト等を考慮して適宜設定すればよい。   In the present embodiment, the configuration including the four color correction tables respectively corresponding to the groups A to D has been described. However, the configuration is not limited thereto, and at least two or more color correction tables may be provided. While the color reproducibility can be improved as the number of color correction tables is increased, the storage capacity required for the color correction table storage unit 63 is increased. Therefore, the number of color correction tables may be appropriately set in consideration of the required color reproduction performance and the cost of the memory used as the color correction table storage unit 63.

また、色補正テーブルとして、全ての入力画像データの組み合わせに対応する出力画像データを格納したものを用いてもよく(直接変換法)、選択された一部の入力画像データの組み合わせに対応する出力画像データを格納しておき、格納されていない入力画像データの色補正を行うときには補間演算によって出力画像データを得るようにしてもよい(テーブル補間法)。テーブル補間法を採用する場合、色補正テーブル記憶部63として使用するメモリの容量を小さくし、コストの低減を図ることができる。   Further, as the color correction table, a table storing output image data corresponding to all combinations of input image data may be used (direct conversion method), and an output corresponding to some selected combinations of input image data may be used. Image data may be stored, and output image data may be obtained by interpolation calculation when color correction is performed on unstored input image data (table interpolation method). When the table interpolation method is adopted, the capacity of the memory used as the color correction table storage unit 63 can be reduced, and the cost can be reduced.

また、本実施形態では、色補正テーブルとして、色補正および色変換を同時に行うためのテーブルを用いているが、これに限らず、色補正と色変換とを別々のテーブルを用いて行ってもよい。   In this embodiment, a table for performing color correction and color conversion at the same time is used as the color correction table. However, the present invention is not limited to this, and color correction and color conversion may be performed using separate tables. Good.

また、本実施形態におけるカラー画像処理装置2の各ブロックは、上記したように、CPU等のプロセッサを用いてソフトウェアによって実現される。   Also, each block of the color image processing apparatus 2 in the present embodiment is realized by software using a processor such as a CPU as described above.

すなわち、カラー画像処理装置2は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の目的は、上述した機能を実現するソフトウェアであるカラー画像処理装置2の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記カラー画像処理装置2に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによって達成される。   That is, the color image processing apparatus 2 includes a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and a RAM (random access memory) that expands the program. ), A storage device (recording medium) such as a memory for storing the program and various data. An object of the present invention is a recording medium in which a program code (execution format program, intermediate code program, source program) of a control program of the color image processing apparatus 2 which is software that realizes the above-described functions is recorded so as to be readable by a computer. Is achieved by the computer (or CPU or MPU) reading and executing the program code recorded on the recording medium.

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, and disks including optical disks such as CD-ROM / MO / MD / DVD / CD-R. Card system such as IC card, IC card (including memory card) / optical card, or semiconductor memory system such as mask ROM / EPROM / EEPROM / flash ROM.

また、カラー画像処理装置2を通信ネットワークと接続可能に構成し、通信ネットワークを介して上記プログラムコードを供給してもよい。この通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   The color image processing apparatus 2 may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. A net or the like is available. Further, the transmission medium constituting the communication network is not particularly limited. For example, even in the case of wired such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA and remote control, Bluetooth ( (Registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, and the like can also be used. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

また、本実施形態におけるカラー画像処理装置2の各ブロックは、ソフトウェアを用いて実現されるものに限らず、ハードウェアロジックによって構成されるものであってもよい。   In addition, each block of the color image processing apparatus 2 in the present embodiment is not limited to being realized using software, but may be configured by hardware logic.

本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.

本発明は、原稿種別を判別する必要のある機器、例えばカラーコピー機、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラ等にも適用できる。   The present invention can also be applied to a device that needs to determine the type of document, such as a color copier, a flatbed scanner, a film scanner, a digital camera, or the like.

本発明の一実施形態にかかる画像処理装置における、下地色除去処理および色補正処理に用いるルックアップテーブルの選択方法を示す説明図である。It is explanatory drawing which shows the selection method of the look-up table used for a background color removal process and a color correction process in the image processing apparatus concerning one Embodiment of this invention. 本発明の一実施形態にかかる画像処理装置を備えた画像形成装置の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an image forming apparatus including an image processing apparatus according to an embodiment of the present invention. 本発明の実施の一形態における画像処理装置が備える原稿種別自動判別部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a document type automatic determination unit provided in the image processing apparatus according to the embodiment of the present invention. 図4(a)は下地領域の最大濃度差と濃度を有する領域の分布とを示す説明図、図4(b)は印画紙領域における同説明図、図4(c)は網点領域における同説明図、図4(d)は文字領域における同説明図である。FIG. 4A is an explanatory diagram showing the maximum density difference of the background region and the distribution of the region having the density, FIG. 4B is the same explanatory diagram in the photographic paper region, and FIG. 4C is the same in the halftone dot region. FIG. 4D is an explanatory diagram of the character area. 図4(a)〜図4(d)に示した各領域についての最大濃度差と総和濃度繁雑度との関係を示すグラフである。It is a graph which shows the relationship between the maximum density difference about each area | region shown to Fig.4 (a)-FIG.4 (d), and total density busyness. 図6(a)は第1面積階調画素(網点)を含む領域における1網点(1ドット)付近の画素の濃度値を示す説明図、図6(b)は第1面積階調画素を含む領域における濃度変化を示す説明図である。FIG. 6A is an explanatory diagram showing density values of pixels near one halftone dot (one dot) in a region including the first area gradation pixel (halftone dot), and FIG. 6B is a first area gradation pixel. It is explanatory drawing which shows the density | concentration change in the area | region containing. 図7(a)は第2面積階調画素を含む領域における1ドット付近の画素の濃度値を示す説明図、図7(b)は第2面積階調画素を含む領域における濃度変化を示す説明図である。FIG. 7A is an explanatory diagram showing the density value of a pixel near one dot in the region including the second area gradation pixel, and FIG. 7B is an explanation showing the density change in the region including the second area gradation pixel. FIG. 図3に示した原稿種別自動判別部における原稿種別判別処理の流れを示すフローチャートである。FIG. 4 is a flowchart showing a flow of a document type determination process in a document type automatic determination unit shown in FIG. 3. 図8のS15に示した第2面積階調画素抽出部による第2面積階調画素抽出処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the 2nd area gradation pixel extraction process by the 2nd area gradation pixel extraction part shown to S15 of FIG. 図9のS154に示した補正部による補正処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the correction process by the correction | amendment part shown to S154 of FIG. 図8のフローチャートに続く、原稿種別自動判別部における原稿種別判別処理の流れを示すフローチャートである。FIG. 9 is a flowchart illustrating a flow of document type determination processing in a document type automatic determination unit following the flowchart of FIG. 8. 図3に示した補正部における補正処理の説明図である。It is explanatory drawing of the correction process in the correction | amendment part shown in FIG. 図2に示した画像処理装置に備えられる入力階調補正部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of an input tone correction unit provided in the image processing apparatus illustrated in FIG. 2. 図13示した入力階調補正部で用いられる下地色除去用テーブルの一例を示すグラフである。It is a graph which shows an example of the base color removal table used in the input tone correction unit shown in FIG. 図2に示した画像処理装置に備えられる色補正部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a color correction unit provided in the image processing apparatus illustrated in FIG. 2. 図15に示した色補正部に記憶される色補正テーブルを示す説明図である。It is explanatory drawing which shows the color correction table memorize | stored in the color correction part shown in FIG. 図2に示した画像処理装置における下地色除去処理および色補正処理の流れを示すフロー図である。FIG. 3 is a flowchart showing the flow of background color removal processing and color correction processing in the image processing apparatus shown in FIG. 2. 文字原稿,印画紙写真原稿,文字印画紙写真原稿における濃度出現頻度の一例を表したグラフである。It is a graph showing an example of density appearance frequency in a character manuscript, a photographic paper photographic manuscript, and a character photographic paper photographic manuscript. 図13示した入力階調補正部で用いられる、文字原稿に対する下地色除去テーブルおよび写真原稿に対する下地色除去テーブルの一例を示すグラフである。14 is a graph illustrating an example of a background color removal table for a character document and a background color removal table for a photographic document, which are used in the input tone correction unit illustrated in FIG. 13.

符号の説明Explanation of symbols

2 カラー画像処理装置(画像処理装置)
13 原稿種別自動判別部(原稿種別判別手段)
14 入力階調補正部(下地色除去手段)
16 色補正部
51 階調レベル判定部(階調判別手段)
52 階調補正処理部
53 階調補正テーブル記憶部(下地色除去用テーブル記憶部)
61 下地色判定部(下地色判別手段)
62 色補正処理部(色補正処理手段)
63 色補正テーブル記憶部
2 Color image processing device (image processing device)
13 Document Type Automatic Discrimination Unit (Document Type Discrimination Unit)
14 Input tone correction unit (background color removal means)
16 color correction unit 51 gradation level determination unit (gradation determination means)
52 Gradation correction processing unit 53 Gradation correction table storage unit (background color removal table storage unit)
61 Background color determination unit (background color determination means)
62 Color correction processing unit (color correction processing means)
63 color correction table storage

Claims (8)

原稿から読み取った画像データに対して、上記原稿の原稿種別に応じた画像処理を施す画像処理装置であって、
注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別する原稿種別判別手段と、
上記画像データから下地色の濃度成分を除去する下地色除去処理を行う下地色除去手段と
上記画像データにおける上記原稿種別判別手段によって下地領域として判別された領域の各画素における各色成分の階調値の組み合わせに基づいて当該下地領域の階調レベルを予め定められた複数の階調レベルのいずれかに分類する階調判別手段と、
複数の上記原稿種別のそれぞれについて、上記各階調レベルにそれぞれ対応して設けられた、上記下地色除去処理の前後の画像データを対応付けた複数の下地色除去用テーブルを記憶したテーブル記憶部と、
上記原稿の下地色に応じて上記画像データを複数のグループのいずれかに分類する下地色判別手段と、
上記各グループに対応する下地色にそれぞれ対応して設けられた、色補正の前後の画像データを対応付けた複数の色補正テーブルと、
上記下地色除去処理が施された後の上記画像データに対して上記下地色判別手段の分類したグループに対応する上記色補正テーブルを用いて色補正処理を行う色補正処理手段とを備え、
上記下地色除去手段は、
上記テーブル記憶部に記憶されている下地色除去用テーブルの中から、上記原稿種別判別手段による原稿種別の判別結果、および上記階調判別手段による階調レベルの分類結果に対応する下地色除去用テーブルを抽出し、抽出した下地色除去用テーブルを用いて上記下地色除去処理を行い、
上記各色補正テーブルは、上記下地色除去処理に伴う下地色以外の色の変化が小さくなるように設定されていることを特徴とする画像処理装置。
An image processing apparatus that performs image processing on image data read from a document according to the document type of the document,
A document type determining unit that determines a type of a region to which a block including a plurality of pixels including a target pixel belongs, and that determines a document type based on a determination result of the region type;
A background color removal means for performing a background color removal process for removing the density component of the background color from the image data ;
Based on a combination of gradation values of each color component in each pixel of the area of the image data determined as the background area by the document type determination means, the gradation level of the background area is set to a plurality of predetermined gradation levels. Gradation discrimination means for classifying into either,
A table storage unit for storing a plurality of background color removal tables associated with the image data before and after the background color removal processing, which are provided corresponding to the respective gradation levels, for each of the plurality of document types; ,
A background color determining means for classifying the image data into one of a plurality of groups according to the background color of the document;
A plurality of color correction tables associated with the image data before and after color correction, provided corresponding to the background color corresponding to each group,
Color correction processing means for performing color correction processing on the image data after the background color removal processing is performed using the color correction table corresponding to the group classified by the background color determination means ,
The background color removing means is
From the background color removal table stored in the table storage unit, the background color removal corresponding to the document type determination result by the document type determination unit and the gradation level classification result by the gradation determination unit Extract the table, perform the background color removal process using the extracted background color removal table,
Each of the color correction tables is set so that a change in a color other than the background color associated with the background color removal process is reduced .
上記原稿種別判別手段は、少なくとも上記原稿が文字原稿であるか文字原稿以外の原稿であるかを判別し、
上記下地色除去手段は、文字原稿に対する下地色の濃度成分の除去量を、文字原稿以外の原稿に対する下地色の濃度成分の除去量よりも大きくすることを特徴とする請求項1に記載の画像処理装置。
The document type determining means determines at least whether the document is a text document or a document other than a text document,
2. The image according to claim 1, wherein the background color removing unit makes the removal amount of the background color density component for the character document larger than the removal amount of the background color density component for the document other than the character document. Processing equipment.
上記色補正テーブルは、第1の表色系からなる画像データを、第2の表色系からなる画像データに変換するように設定されていることを特徴とする請求項に記載の画像処理装置。 The above color correction table, the image data composed of the first color system, the image processing according to claim 1, characterized in that it is set to convert the image data of a second color system apparatus. 上記原稿種別判別手段は、注目画素を含む複数の画素からなるブロックについて、当該ブロック内における各画素の濃度値の最大値と最小値との差である最大濃度差および当該ブロック内における隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度を算出し、上記最大濃度差が予め設定された第1最大濃度差閾値よりも小さく、かつ上記総和濃度繁雑度が予め設定された第1総和濃度繁雑度閾値よりも小さく、かつ上記最大濃度差が予め設定された下地・印画紙判定閾値よりも小さいブロックを下地領域として判定し、
上記下地色除去手段は、上記原稿種別判別手段によって下地領域であると判定されたブロックについて上記下地色の除去を行い、
上記色補正処理手段は、上記原稿種別判別手段によって下地領域であると判定されたブロックについて上記色補正を行うことを特徴とする請求項1に記載の画像処理装置。
The document type determination unit is configured to detect, for a block including a plurality of pixels including a target pixel, a maximum density difference that is a difference between a maximum value and a minimum value of each pixel in the block, and adjacent pixels in the block. A total density busyness that is a sum of absolute values of the density differences is calculated, the first maximum density difference is smaller than a preset first maximum density difference threshold value, and the total density busyness is a preset first value. A block that is smaller than the total density busyness threshold and the maximum density difference is smaller than a preset background / photographic paper determination threshold is determined as a background area ,
The background color removing unit removes the background color for the block determined to be a background region by the document type determining unit;
The image processing apparatus according to claim 1, wherein the color correction processing unit performs the color correction on a block that is determined to be a background area by the document type determination unit.
原稿から読み取った画像データに対して、上記原稿の原稿種別に応じた画像処理を施す画像処理方法であって、
注目画素を含む複数の画素からなるブロックが属する領域の種別を判別し、この領域種別の判別結果に基づいて原稿種別を判別する原稿種別判別工程と、
上記画像データから下地色の濃度成分を除去する下地色除去処理を行う下地色除去工程と
上記画像データにおける上記原稿種別判別工程において下地領域として判別された領域の各画素における各色成分の階調値の組み合わせに基づいて当該下地領域の階調レベルを予め定められた複数の階調レベルのいずれかに分類する階調判別工程と、
上記原稿の下地色に応じて上記画像データを複数のグループのいずれかに分類する下地色判別工程と、
上記各グループに対応する下地色にそれぞれ対応して設けられた、色補正の前後の画像データを対応付けた複数の色補正テーブルのうち、上記下地色判別工程で分類したグループに対応する色補正テーブルを用いて、上記下地色除去処理が施された後の上記画像データに対して色補正処理を行う色補正処理工程とを含み、
上記下地色除去工程では、
複数の上記原稿種別のそれぞれについて、上記各階調レベルにそれぞれ対応して設けられた、上記下地色除去処理の前後の画像データを対応付けた複数の下地色除去用テーブルの中から、上記原稿種別判別工程による原稿種別の判別結果、および上記階調判別工程における階調レベルの分類結果に対応する下地色除去用テーブルを抽出し、抽出した下地色除去用テーブルを用いて上記下地色除去処理を行い、
上記各色補正テーブルは、上記下地色除去処理に伴う下地色以外の色の変化が小さくなるように設定されていることを特徴とする画像処理方法。
An image processing method for performing image processing on image data read from a document according to the document type of the document,
A document type determination step of determining a type of an area to which a block including a plurality of pixels including a target pixel belongs, and determining a document type based on a determination result of the area type;
A background color removal step of performing a background color removal process for removing a background color density component from the image data ;
Based on a combination of gradation values of each color component in each pixel of the area determined as the background area in the document type determination step in the image data, the gradation level of the background area is set to a plurality of predetermined gradation levels. A gradation discrimination process classified into one of the following:
A background color determination step for classifying the image data into one of a plurality of groups according to the background color of the document;
Color correction corresponding to the group classified in the background color discrimination step among a plurality of color correction tables associated with the image data before and after color correction provided corresponding to the background color corresponding to each group. A color correction processing step for performing color correction processing on the image data after the background color removal processing is performed using a table ,
In the background color removal step,
For each of the plurality of document types, the document type is selected from a plurality of background color removal tables associated with the image data before and after the background color removal process, which are provided corresponding to the respective gradation levels. The background color removal table corresponding to the document type determination result in the determination step and the gradation level classification result in the gradation determination step is extracted, and the background color removal process is performed using the extracted background color removal table. Done
The image processing method according to claim 1, wherein each of the color correction tables is set so that a change in a color other than the background color associated with the background color removal process is reduced .
請求項1から4のいずれか1項に記載の画像処理装置を備えていることを特徴とする画像形成装置。 An image forming apparatus characterized by comprising an image processing apparatus according to any one of claims 1 to 4. 請求項1から4のいずれか1項に記載の画像処理装置を動作させる画像処理プログラムであって、コンピュータを上記各手段として機能させるための画像処理プログラム。 An image processing program for operating an image processing apparatus according to claim 1, any one of 4, an image processing program for causing a computer to function as each means described above. 請求項に記載の画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the image processing program according to claim 7 is recorded.
JP2006222313A 2006-08-17 2006-08-17 Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium Active JP4522978B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006222313A JP4522978B2 (en) 2006-08-17 2006-08-17 Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006222313A JP4522978B2 (en) 2006-08-17 2006-08-17 Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium

Publications (2)

Publication Number Publication Date
JP2008048189A JP2008048189A (en) 2008-02-28
JP4522978B2 true JP4522978B2 (en) 2010-08-11

Family

ID=39181495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006222313A Active JP4522978B2 (en) 2006-08-17 2006-08-17 Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium

Country Status (1)

Country Link
JP (1) JP4522978B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5239744B2 (en) 2008-10-27 2013-07-17 ソニー株式会社 Program sending device, switcher control method, and computer program
JP2010103959A (en) 2008-10-27 2010-05-06 Sony Corp Program delivery apparatus, and method of assigning functions of operation buttons
JP5557775B2 (en) * 2011-02-28 2014-07-23 京セラドキュメントソリューションズ株式会社 Image processing apparatus, image forming apparatus, and image processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005101765A (en) * 2003-09-22 2005-04-14 Sharp Corp Method and apparatus for processing image, and image forming apparatus
JP2005260399A (en) * 2004-03-10 2005-09-22 Ricoh Co Ltd Image processor and image forming apparatus
JP2006094039A (en) * 2004-09-22 2006-04-06 Fuji Xerox Co Ltd Image processor, processing method and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3469299B2 (en) * 1994-03-25 2003-11-25 株式会社リコー Image processing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005101765A (en) * 2003-09-22 2005-04-14 Sharp Corp Method and apparatus for processing image, and image forming apparatus
JP2005260399A (en) * 2004-03-10 2005-09-22 Ricoh Co Ltd Image processor and image forming apparatus
JP2006094039A (en) * 2004-09-22 2006-04-06 Fuji Xerox Co Ltd Image processor, processing method and program

Also Published As

Publication number Publication date
JP2008048189A (en) 2008-02-28

Similar Documents

Publication Publication Date Title
JP4197346B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4170353B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, program, and recording medium
JP2006115425A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP2002232708A (en) Image processing device, image forming device using the same, and image processing method
JP4731595B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2003219191A (en) Image processor and image forming apparatus comprising it
JP4522978B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
JP4596964B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP7123752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4260774B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP3847565B2 (en) Image processing apparatus, image forming apparatus including the same, and image processing method
JP4080252B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP2002218271A (en) Image processor, image formation device and image, processing method
JP2004248103A (en) Image processing device, image reading device, image forming device, image processing method, image processing program, and computer readable record medium recording the same
JP4043982B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JP2003125198A (en) Image processing apparatus and image processing method, and image forming device provided with the same, program, and recording medium
JP4086537B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP2011015172A (en) Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP4958626B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2003219178A (en) Image processing method, device thereof and image forming device
JP2005175824A (en) Image processing method, image processor and image forming apparatus, and computer program
JP4118823B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100326

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100406

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100510

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: 20100525

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: 20100526

R150 Certificate of patent or registration of utility model

Ref document number: 4522978

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: 20130604

Year of fee payment: 3