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

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

Info

Publication number
JP4808282B2
JP4808282B2 JP2010089919A JP2010089919A JP4808282B2 JP 4808282 B2 JP4808282 B2 JP 4808282B2 JP 2010089919 A JP2010089919 A JP 2010089919A JP 2010089919 A JP2010089919 A JP 2010089919A JP 4808282 B2 JP4808282 B2 JP 4808282B2
Authority
JP
Japan
Prior art keywords
pixel
value
density
pixels
average value
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
JP2010089919A
Other languages
Japanese (ja)
Other versions
JP2010154579A (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 JP2010089919A priority Critical patent/JP4808282B2/en
Publication of JP2010154579A publication Critical patent/JP2010154579A/en
Application granted granted Critical
Publication of JP4808282B2 publication Critical patent/JP4808282B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、読み取る原稿が両面原稿なのか片面原稿なのかを判断する画像処理装置、画像形成装置、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録する記録媒体に関する。   The present invention relates to an image processing apparatus, an image forming apparatus, an image processing method, an image processing program, and a recording medium for recording an image processing program, which determine whether a document to be read is a double-sided document or a single-sided document.

複写機や画像読取装置において、自動原稿送り装置等で両面原稿を複写する場合、または、scan to e-mailとして原稿画像を所定のメールアドレスに電子メール送信する場合においては、読み取るべき複数の原稿の中に、片面原稿と両面原稿とが混在していると、まず、片面原稿と両面原稿とをユーザが手作業で分離し、それぞれに対して読み取り操作を行う必要があり、出力された原稿を元の順番に並べ直すという作業が必要になる。   When copying a double-sided document with an automatic document feeder or other device in a copying machine or image reader, or when sending an original image to a specified email address as a scan to e-mail, multiple documents to be read If a single-sided document and a double-sided document are mixed, the user must first separate the single-sided document and the double-sided document and perform a reading operation on each. It is necessary to rearrange them in the original order.

一方、上記のように原稿を分離しないで読み取りを行うと、不要な無地の用紙が出力されることになる。特にカラーの無地の用紙が混入している場合は、カラートナー(インク)が無駄に消費されることになる。また、読み取った原稿画像データを保存しておく場合にも、ハードディスク等の記憶容量を無駄に使用することになる。   On the other hand, if reading is performed without separating the document as described above, unnecessary plain paper is output. In particular, when color plain paper is mixed, color toner (ink) is wasted. Also, when storing the read original image data, the storage capacity of the hard disk or the like is wasted.

以上のような問題を解決するために、下記の方法が提案されている。
特許文献1記載の発明では、両面原稿と片面原稿とが混在したファイルにおいて、画像の有無により両面原稿と片面原稿との区別を行う。画像の有無は、黒画素数をカウントし、カウント値がある基準値を超えるかどうかチェックし、超える場合は画像が存在すると判定する。あるいは、圧縮された画像データのデータ量に基づいて判定する。
In order to solve the above problems, the following methods have been proposed.
In the invention described in Patent Document 1, in a file in which a double-sided original and a single-sided original are mixed, the double-sided original and the single-sided original are distinguished depending on the presence or absence of an image. The presence or absence of an image is determined by counting the number of black pixels and checking whether or not the count value exceeds a certain reference value. Alternatively, the determination is made based on the data amount of the compressed image data.

特許文献2記載の発明では、両面原稿か片面原稿かを区別する場合に、白色に近いレベルに閾値を設定し、この閾値よりも低い画素の数をカウントすることにより画像の有無を判定する。上記カウント数が予め定めた所定値よりも多いときには、画像ありと判断する。   In the invention described in Patent Document 2, when distinguishing between double-sided originals and single-sided originals, a threshold is set to a level close to white, and the presence or absence of an image is determined by counting the number of pixels lower than this threshold. When the count number is greater than a predetermined value, it is determined that there is an image.

特許文献3記載の発明は、画像データの2値レベルを求め、2値レベルの画素数と所定値とを比較して画像データが白紙原稿に相当するか否かの判定を行う。   The invention described in Patent Document 3 obtains a binary level of image data, compares the number of pixels of the binary level with a predetermined value, and determines whether the image data corresponds to a blank original.

特開平6−245003号公報JP-A-6-245003 特開平9−261383号公報JP-A-9-261383 特開平9−284490号公報JP-A-9-284490

上記の従来技術を適用した場合、画像データにはない孤立点、読み取り時のノイズの影響、さらには、原稿の地肌部の汚れ、原稿の地肌部に付着しているダストが黒画素としてカウントされ、無地画像の判定精度が低下する。これは、白画素をカウントする場合も、黒画素をカウントする場合も同じである。   When the above conventional technology is applied, isolated points that are not in the image data, the influence of noise during scanning, dirt on the background of the document, and dust adhering to the background of the document are counted as black pixels. The determination accuracy of the plain image is lowered. This is the same when counting white pixels and counting black pixels.

さらに、従来技術では、カラーの無地原稿については全く考慮されていないので、カラーの無地画像について判定を行うことができない。   Further, in the prior art, since a color plain original is not considered at all, it is not possible to make a determination on a color plain image.

本発明の目的は、モノクロとカラーにかかわらず無地画像を高精度で判別することが可能な画像処理装置、画像形成装置、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録する記録媒体を提供することである。   An object of the present invention is to provide an image processing apparatus, an image forming apparatus, an image processing method, an image processing program, and a recording medium for recording the image processing program capable of determining a plain image with high accuracy regardless of whether it is monochrome or color. It is to be.

本発明は、複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理装置において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出部と、
平均値算出部で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成部と、
色成分毎に、注目画素を含む複数の画素からなる画素ブロックで濃度に関する濃度情報を算出し、算出された濃度情報と予め定められる濃度閾値とを比較して注目画素がエッジ画素であるか否かの判定を行うとともに、エッジ画素と判定された画素数の計数を行う画素判定部と、
画素判定部でエッジ画素と判定された画素数が画素数閾値以下であり、ヒストグラム作成部で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下のとき、無地原稿を読み取った画像データであると判定する判定部とを備えていることを特徴とする画像処理装置である。
The present invention provides an image processing apparatus for determining whether image data is image data obtained by reading a plain original composed only of pixels having a single color density based on image data composed of a plurality of pixels.
An average value calculation unit that calculates an average value of pixel values in a pixel block including a plurality of pixels including a target pixel for each color component, and uses the calculated average value as a pixel value of the target pixel;
Based on the average value of each color component calculated by the average value calculation unit, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation unit that creates each histogram with the number of pixels for the classification as a frequency value;
For each color component, density information regarding density is calculated in a pixel block including a plurality of pixels including the target pixel, and whether the target pixel is an edge pixel by comparing the calculated density information with a predetermined density threshold value. A pixel determination unit that counts the number of pixels determined as edge pixels, and
Density classification in which the number of pixels determined as edge pixels by the pixel determination unit is equal to or less than a pixel number threshold, and the histogram of the maximum value and the histogram of maximum difference created by the histogram creation unit are equal to or greater than a predetermined frequency value And a determination unit that determines that the image data is obtained by reading a plain original when both of the density division numbers are equal to or less than the division threshold value.

また本発明は、複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理装置において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出部と、
平均値算出部で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成部と、
ヒストグラム作成部で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下であり、前記所定の度数値以上となる区分数全体を表す最大差ヒストグラム原稿濃度幅の数が、所定の値を満たすとき、無地原稿を読み取った画像データであると判定する判定部とを備えていることを特徴とする画像処理装置である。
According to another aspect of the present invention, there is provided an image processing apparatus for determining whether image data is image data obtained by reading a plain document including only pixels having a single color density, based on image data including a plurality of pixels.
An average value calculation unit that calculates an average value of pixel values in a pixel block including a plurality of pixels including a target pixel for each color component, and uses the calculated average value as a pixel value of the target pixel;
Based on the average value of each color component calculated by the average value calculation unit, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation unit that creates each histogram with the number of pixels for the classification as a frequency value;
In the histogram of the maximum value and the histogram of the maximum difference created by the histogram creation unit, the number of density categories that are equal to or greater than a predetermined frequency value is obtained, both of these density categories are equal to or less than the threshold value, A determination unit that determines that the image data is obtained by reading a plain original when the number of maximum difference histogram original density widths representing the entire number of sections equal to or greater than a predetermined frequency value satisfies a predetermined value. An image processing apparatus is characterized.

また本発明は、前記画像処理装置を備えることを特徴とする画像形成装置である。
また本発明は、複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理方法において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出工程と、
色成分毎に、注目画素を含む複数の画素からなる画素ブロックで濃度に関する濃度情報を算出し、算出された濃度情報と予め定められる濃度閾値とを比較して注目画素がエッジ画素であるか否かの判定を行うとともに、エッジ画素と判定された画素数の計数を行う画素判定工程と、
平均値算出工程で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成工程と、
画素判定工程でエッジ画素と判定された画素数が画素数閾値以下であり、ヒストグラム作成工程で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下のとき、無地原稿を読み取った画像データであると判定する判定工程を備えていることを特徴とする画像処理方法である。
In addition, the present invention is an image forming apparatus including the image processing apparatus.
According to another aspect of the present invention, there is provided an image processing method for determining whether image data is image data obtained by reading a plain original composed only of pixels having a single color density, based on image data composed of a plurality of pixels.
For each color component, an average value calculation step of calculating an average value of pixel values in a pixel block including a plurality of pixels including the target pixel, and using the calculated average value as a pixel value of the target pixel;
For each color component, density information regarding density is calculated in a pixel block including a plurality of pixels including the target pixel, and whether the target pixel is an edge pixel by comparing the calculated density information with a predetermined density threshold value. And a pixel determination step for counting the number of pixels determined to be edge pixels,
Based on the average value for each color component calculated in the average value calculation step, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation step of creating each histogram with the number of pixels for the classification as a frequency value;
Density classification in which the number of pixels determined as edge pixels in the pixel determination step is equal to or less than a pixel number threshold, and the histogram of the maximum value and the histogram of maximum difference created in the histogram creation step are equal to or greater than a predetermined frequency value The image processing method includes a determination step of determining the image data obtained by reading a plain original when both the number of density categories are equal to or less than the threshold value.

また本発明は、複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理方法において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出工程と、
平均値算出工程で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成工程と、
ヒストグラム作成工程で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下であり、前記所定の度数値以上となる区分数全体を表す最大差ヒストグラム原稿濃度幅の数が、所定の値を満たすとき、無地原稿を読み取った画像データであると判定する判定工程を備えていることを特徴とする画像処理方法である。
According to another aspect of the present invention, there is provided an image processing method for determining whether image data is image data obtained by reading a plain original composed only of pixels having a single color density, based on image data composed of a plurality of pixels.
For each color component, an average value calculation step of calculating an average value of pixel values in a pixel block including a plurality of pixels including the target pixel, and using the calculated average value as a pixel value of the target pixel;
Based on the average value for each color component calculated in the average value calculation step, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation step of creating each histogram with the number of pixels for the classification as a frequency value;
In the histogram creation step, the maximum value histogram and the maximum difference histogram are used to determine the number of density categories that are equal to or greater than a predetermined frequency value, and both the number of density categories are equal to or less than the threshold value, A determination step of determining that the image data is obtained by reading a plain original when the number of maximum difference histogram document density widths representing the entire number of sections equal to or greater than a predetermined power value satisfies a predetermined value. This is an image processing method.

また本発明は、コンピュータに、前記画像処理方法を実行させるための画像処理プログラムである。   The present invention is also an image processing program for causing a computer to execute the image processing method.

また本発明は、コンピュータに、前記画像処理方法を実行させるための画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体である。   The present invention is also a computer-readable recording medium that records an image processing program for causing a computer to execute the image processing method.

本発明によれば、平均値算出部が、色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする。ヒストグラム作成部において、平均値算出部で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成する。   According to the present invention, the average value calculation unit calculates, for each color component, an average value of pixel values in a pixel block including a plurality of pixels including the target pixel, and the calculated average value is used as the pixel value of the target pixel. To do. In the histogram creation unit, based on the average value for each color component calculated by the average value calculation unit, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and the maximum value and Each histogram is created with the number of pixels for each density category having the maximum difference as a frequency value.

画素判定部が、色成分毎に、注目画素を含む複数の画素からなる画素ブロックで濃度(画素値)に関する濃度情報を算出し、算出された濃度情報と予め定められる濃度閾値とを比較して注目画素がエッジ画素であるか否かの判定を行うとともに、エッジ画素と判定された画素数の計数を行う。   The pixel determination unit calculates density information related to density (pixel value) in a pixel block including a plurality of pixels including the target pixel for each color component, and compares the calculated density information with a predetermined density threshold value. It is determined whether or not the target pixel is an edge pixel, and the number of pixels determined to be an edge pixel is counted.

判定部は、画素判定部でエッジ画素と判定された画素数が画素数閾値以下であり、ヒストグラム作成部で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下のとき、無地原稿を読み取った画像データであると判定する。   The determination unit is such that the number of pixels determined to be edge pixels by the pixel determination unit is equal to or less than a pixel number threshold, and the maximum value histogram and the maximum difference histogram created by the histogram creation unit are equal to or greater than a predetermined frequency value. The number of density classifications to be obtained is obtained, and when both of these density classifications are equal to or less than the classification threshold value, it is determined that the image data is obtained by reading a plain original.

これにより、孤立点、読み取り時のノイズの影響、さらには、原稿の地肌部の汚れ、原稿の地肌部に付着しているダストの影響を抑制することができ、モノクロとカラーにかかわらず無地画像を高精度で判別することができる。   As a result, it is possible to suppress the effects of isolated points, noise during scanning, dirt on the background of the document, and dust attached to the background of the document. Can be determined with high accuracy.

また本発明によれば、平均値算出部が、色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする。ヒストグラム作成部において、平均値算出部で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成する。   According to the present invention, the average value calculation unit calculates an average value of pixel values in a pixel block including a plurality of pixels including the target pixel for each color component, and calculates the calculated average value as a pixel value of the target pixel. And In the histogram creation unit, based on the average value for each color component calculated by the average value calculation unit, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and the maximum value and Each histogram is created with the number of pixels for each density category having the maximum difference as a frequency value.

判定部は、ヒストグラム作成部で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下であり、前記所定の度数値以上となる区分数全体を表す最大差ヒストグラム原稿濃度幅の数が、所定の値を満たすとき、無地原稿を読み取った画像データであると判定する。   The determination unit obtains the number of density categories that are equal to or greater than a predetermined frequency value from the maximum value histogram and the maximum difference histogram created by the histogram creation unit, and both the number of density categories are equal to or less than the threshold value. When the maximum difference histogram document density width number representing the entire number of sections equal to or greater than the predetermined power value satisfies a predetermined value, it is determined that the image data is obtained by reading a plain document.

これにより、孤立点、読み取り時のノイズの影響、さらには、原稿の地肌部の汚れ、原稿の地肌部に付着しているダストの影響を抑制することができ、モノクロとカラーにかかわらず無地画像を高精度で判別することができる。   As a result, it is possible to suppress the effects of isolated points, noise during scanning, dirt on the background of the document, and dust attached to the background of the document. Can be determined with high accuracy.

また本発明によれば、上記の画像処理装置を備えた画像形成装置であるので、高精度で無地原稿の判別を行うことができ、トナーおよびインクなどの色材の使用量を抑え、ユーザの手間を省いた使いやすい画像形成装置を提供することができる。   Further, according to the present invention, since the image forming apparatus includes the above-described image processing apparatus, it is possible to determine a plain original with high accuracy, and to suppress the use amount of color materials such as toner and ink. An easy-to-use image forming apparatus that saves labor can be provided.

また本発明によれば、平均値算出工程で、色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする。ヒストグラム作成工程において、平均値算出工程で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成する。   According to the present invention, in the average value calculating step, an average value of pixel values is calculated for each color component in a pixel block including a plurality of pixels including the target pixel, and the calculated average value is used as the pixel value of the target pixel. And In the histogram creation step, based on the average value for each color component calculated in the average value calculation step, the maximum value of the average value between each color component and the maximum difference between the average values are obtained for each pixel of interest, and the maximum value and Each histogram is created with the number of pixels for each density category having the maximum difference as a frequency value.

画素判定工程では、色成分毎に、注目画素を含む複数の画素からなる画素ブロックで濃度に関する濃度情報を算出し、算出された濃度情報と予め定められる濃度閾値とを比較して注目画素がエッジ画素であるか否かの判定を行うとともに、エッジ画素と判定された画素数の計数を行う。   In the pixel determination step, for each color component, density information related to density is calculated in a pixel block including a plurality of pixels including the target pixel, and the calculated density information is compared with a predetermined density threshold to determine whether the target pixel is an edge. It is determined whether or not the pixel is a pixel, and the number of pixels determined to be an edge pixel is counted.

判定工程では、画素判定工程でエッジ画素と判定された画素数が画素数閾値以下であり、ヒストグラム作成工程で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下のとき、無地原稿を読み取った画像データであると判定する。   In the determination step, the number of pixels determined as the edge pixel in the pixel determination step is equal to or less than a pixel number threshold value, and the maximum value histogram and the maximum difference histogram created in the histogram creation step are equal to or greater than a predetermined frequency value. The number of density classifications to be obtained is obtained, and when both of these density classifications are equal to or less than the classification threshold value, it is determined that the image data is obtained by reading a plain original.

これにより、孤立点、読み取り時のノイズの影響、さらには、原稿の地肌部の汚れ、原稿の地肌部に付着しているダストの影響を抑制することができ、モノクロとカラーにかかわらず無地画像を高精度で判別することができる。   As a result, it is possible to suppress the effects of isolated points, noise during scanning, dirt on the background of the document, and dust attached to the background of the document. Can be determined with high accuracy.

また本発明によれば、平均値算出工程で、色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする。ヒストグラム作成工程において、平均値算出工程で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成する。   According to the present invention, in the average value calculating step, an average value of pixel values is calculated for each color component in a pixel block including a plurality of pixels including the target pixel, and the calculated average value is used as the pixel value of the target pixel. And In the histogram creation step, based on the average value for each color component calculated in the average value calculation step, the maximum value of the average value between each color component and the maximum difference between the average values are obtained for each pixel of interest, and the maximum value and Each histogram is created with the number of pixels for each density category having the maximum difference as a frequency value.

判定工程では、ヒストグラム作成工程で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下であり、前記所定の度数値以上となる区分数全体を表す最大差ヒストグラム原稿濃度幅の数が、所定の値を満たすとき、無地原稿を読み取った画像データであると判定する。   In the determination step, the number of density divisions that are equal to or greater than a predetermined frequency value is obtained from the maximum value histogram and the maximum difference histogram created in the histogram creation step, and both of these density division numbers are less than or equal to the division threshold value. When the maximum difference histogram document density width number representing the entire number of sections equal to or greater than the predetermined power value satisfies a predetermined value, it is determined that the image data is obtained by reading a plain document.

これにより、孤立点、読み取り時のノイズの影響、さらには、原稿の地肌部の汚れ、原稿の地肌部に付着しているダストの影響を抑制することができ、モノクロとカラーにかかわらず無地画像を高精度で判別することができる。   As a result, it is possible to suppress the effects of isolated points, noise during scanning, dirt on the background of the document, and dust attached to the background of the document. Can be determined with high accuracy.

また本発明によれば、コンピュータに、上記の画像処理方法を実行させるための画像処理プログラム、および画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体を提供することができる。   In addition, according to the present invention, it is possible to provide an image processing program for causing a computer to execute the above-described image processing method, and a computer-readable recording medium on which the image processing program is recorded.

本発明の実施の一形態である画像形成装置1の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus 1 according to an embodiment of the present invention. 原稿種別自動判別部13の構成を示すブロック図である。3 is a block diagram illustrating a configuration of an original document type automatic determination unit 13. FIG. 原稿種別自動判別部13による判別処理を示すフローチャートである。5 is a flowchart illustrating a determination process performed by an automatic document type determination unit 13; 最大値ヒストグラムの例を示す図である。It is a figure which shows the example of a maximum value histogram. 最大差ヒストグラムの例を示す図である。It is a figure which shows the example of a maximum difference histogram. 無地原稿と他の原稿種別との判別を行う原稿種別自動判別部13aの構成を示すブロック図である。It is a block diagram showing a configuration of a document type automatic determination unit 13a that determines a plain document and another document type. 原稿種別自動判別部13aの判別処理を示すフローチャートである。It is a flowchart which shows the discrimination | determination process of the original classification automatic discrimination | determination part 13a. 原稿判定処理を示すフローチャートである。6 is a flowchart illustrating document determination processing. 判定処理のフローチャートである。It is a flowchart of a determination process. 本発明の他の実施形態である画像読取装置6の構成を示すブロック図である。It is a block diagram which shows the structure of the image reading apparatus 6 which is other embodiment of this invention.

図1は、本発明の実施の一形態である画像形成装置1の構成を示すブロック図である。本実施の形態では、画像形成装置1を電子写真方式のデジタルカラー複写機に適用している。   FIG. 1 is a block diagram showing a configuration of an image forming apparatus 1 according to an embodiment of the present invention. In the present embodiment, the image forming apparatus 1 is applied to an electrophotographic digital color copying machine.

画像形成装置1は、カラー画像入力装置2、カラー画像処理装置3、カラー画像出力装置4および操作パネル5を備えている。カラー画像処理装置3は、A/D(アナログ/デジタル)変換部11、シェーディング補正部12、原稿種別自動判別部13、入力階調補正部14、領域分離処理部15、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、出力階調補正部19、階調再現処理部20を含んで構成される。   The image forming apparatus 1 includes a color image input device 2, a color image processing device 3, a color image output device 4, and an operation panel 5. The color image processing apparatus 3 includes an A / D (analog / digital) conversion unit 11, a shading correction unit 12, a document type automatic discrimination unit 13, an input tone correction unit 14, a region separation processing unit 15, a color correction unit 16, and a black color. The generated under color removal unit 17, the spatial filter processing unit 18, the output tone correction unit 19, and the tone reproduction processing unit 20 are configured.

画像読取手段であるカラー画像入力装置2は、たとえばCCD(Charge Coupled Device)を備えたスキャナ部(図示せず)を含んで構成され、原稿からの反射光像を、RGB(R:赤、G:緑、B:青)にそれぞれ対応し、原稿画像が記録された紙などの記録媒体からの反射光の反射率を表すアナログ信号から成る画像データとしてCCDによって読み取って、前記画像データをカラー画像処理装置3に入力する。カラー画像入力装置2からカラー画像処理装置3に与えられるアナログ信号の画像データは、ラスタライズされている。   The color image input device 2 serving as an image reading unit includes a scanner unit (not shown) having a CCD (Charge Coupled Device), for example, and converts a reflected light image from a document into RGB (R: red, G : Green, B: blue), and the image data is read by a CCD as image data composed of analog signals representing the reflectance of reflected light from a recording medium such as paper on which an original image is recorded. Input to the processing device 3. Image data of analog signals given from the color image input device 2 to the color image processing device 3 is rasterized.

カラー画像入力装置2によって読み取られた画像データは、カラー画像処理装置3に含まれるA/D変換部11、シェーディング補正部12、原稿種別自動判別部13、入力階調補正部14、領域分離処理部15、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、出力階調補正部19および階調再現処理部20を、この順に送られ、CMYK(C:シアン、M:マゼンタ、Y:イエロ、K:ブラック)のそれぞれに対応するデジタルカラー信号で表される画像データとしてカラー画像出力装置4へ出力される。   The image data read by the color image input device 2 includes an A / D conversion unit 11, a shading correction unit 12, a document type automatic discrimination unit 13, an input tone correction unit 14, an area separation process included in the color image processing device 3. 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 CMYK (C: cyan, M: Magenta, Y: yellow, K: black) are output to the color image output device 4 as image data represented by digital color signals.

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

原稿種別自動判別部13では、シェーディング補正部にて各種の歪みが取り除かれカラーバランスの調整がなされたRGB信号(RGBの反射率信号)を濃度信号などカラー画像処理装置に採用されている画像処理システムの扱い易い信号に変換するとともに、ブランク原稿(無画像原稿、無地原稿)であるか否かの判断を行う。ブランク原稿であると判断された場合は、後段の処理をキャンセルする。ブランク原稿でないと判断された場合は、後段の処理を継続する。   The automatic document type discrimination unit 13 uses an RGB signal (RGB reflectance signal) whose color balance has been adjusted by removing various distortions by the shading correction unit, such as a density signal, and is used in a color image processing apparatus. The signal is converted into a signal that can be easily handled by the system, and a determination is made as to whether or not the document is a blank document (non-image document or plain document). If it is determined that the document is a blank document, the subsequent processing is canceled. If it is determined that the document is not a blank document, the subsequent processing is continued.

原稿種別自動判別部13において、ブランク原稿の判別だけでなく、文字原稿であるか、印刷写真原稿であるか、あるいは、文字と印刷写真が混在した文字印刷写真原稿であるか等の原稿種別の判別を行ように構成しても良い。   The automatic document type discrimination unit 13 determines not only the blank document but also the document type such as a character document, a printed photo document, or a character printed photo document in which characters and a printed photo are mixed. You may comprise so that discrimination may be performed.

この原稿種別自動判別部13で生成された原稿種別を表わす原稿種別判定信号は、入力階調補正部14、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、階調再現処理部20に出力される。なお、原稿種別自動判別部13の詳細については後述する。   The document type determination signal representing the document type generated by the automatic document type determination unit 13 is input gradation correction unit 14, color correction unit 16, black generation and under color removal unit 17, spatial filter processing unit 18, gradation reproduction. It is output to the processing unit 20. Details of the automatic document type discrimination unit 13 will be described later.

入力階調補正部14は、下地濃度の除去、およびコントラストなどの画質調整処理を行う。原稿の下地(文字などが印刷された用紙)の色はさまざまであり、わら半紙のように黄色っぽいものなどは下地の色を白として扱わないと、プリント出力時に白地部分(下地の部分)にも余分に記録剤が使われてしまう。このため、入力階調補正部14によって、下地濃度の除去を行い、すなわち下地の濃度を白色の濃度にするとともに、同時にコントラストの調整を行う。入力階調補正部14は、RGBのそれぞれに対応する濃度信号から成る画像データを領域分離処理部15に与える。   The input tone correction unit 14 performs image quality adjustment processing such as removal of background density and contrast. The background color of the document (paper on which characters are printed) varies, and yellowish items such as straw paper do not treat the background color as white. Extra recording agent is used. Therefore, the input tone correction unit 14 removes the background density, that is, sets the background density to a white density and simultaneously adjusts the contrast. The input tone correction unit 14 gives image data composed of density signals corresponding to RGB to the region separation processing unit 15.

領域分離処理部15は、RGBのそれぞれに対応する濃度信号によって、カラー画像処理装置3に入力された画像データにおける各画素を、下地領域、写真(印画紙写真)領域、文字領域および網点領域のいずれに属するのか、またこれらがカラーなのかモノクロなのかを判定する。本実施の形態において、領域分離とは、1枚の画像の中で文字領域であるのか写真領域(連続階調領域)であるのか網点領域であるのか、またそれらがカラーなのかモノクロなのか、などを切り分けることをさす。文字領域は、文字および記号を含むキャラクタを表す。下地領域は、原稿の地肌部分(背景)を表す。領域分離処理部15は、分離結果に基づき、各画素がどの領域に属しているかを示す領域識別信号を、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、および階調再現処理部20へと出力するとともに、入力階調補正部14から出力されたRGBのそれぞれに対応する濃度信号をそのまま後段の色補正部16に出力する。   The region separation processing unit 15 converts each pixel in the image data input to the color image processing device 3 into a background region, a photo (photographic paper photo) region, a character region, and a halftone dot region by using density signals corresponding to RGB. And whether these are color or monochrome. In this embodiment, region separation refers to whether a region is a character region, a photographic region (continuous tone region) or a halftone dot region, and whether they are color or monochrome. , Etc. The character area represents a character including characters and symbols. The background area represents the background portion (background) of the document. Based on the separation result, the region separation processing unit 15 outputs a region identification signal indicating which region each pixel belongs to, a color correction unit 16, a black generation and under color removal unit 17, a spatial filter processing unit 18, and a gradation. In addition to outputting to the reproduction processing unit 20, the density signal corresponding to each of RGB output from the input tone correction unit 14 is output to the subsequent color correction unit 16 as it is.

色補正部16は、領域分離処理部15から与えられる領域識別信号に応じて、領域分離処理部15から与えられるRGBにそれぞれ対応する濃度信号(入力信号)を、CMYにそれぞれ対応する濃度信号(以下、CMY信号という)に変換する。RGBにそれぞれ対応する濃度信号から、CMYにそれぞれ対応する信号への変換は、色補正部16によって行われる。色補正部16では、色再現の忠実化実現のために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。また色補正部16は、原稿種別自動判別部13から与えられる原稿種別判定信号に基づいて、色変換を行う。   In response to the region identification signal provided from the region separation processing unit 15, the color correction unit 16 converts density signals (input signals) corresponding to RGB supplied from the region separation processing unit 15 and density signals (input signals) corresponding to CMY respectively. (Hereinafter referred to as CMY signal). The color correction unit 16 performs conversion from density signals corresponding to RGB to signals corresponding to CMY. The color correction unit 16 performs a process of removing color turbidity based on the spectral characteristics of the CMY color material including unnecessary absorption components in order to realize faithful color reproduction. The color correction unit 16 performs color conversion based on a document type determination signal provided from the document type automatic determination unit 13.

黒生成下色除去部17は、色補正部16による色補正後のCMYに対応するCMY信号から黒(K)に対応する黒信号を生成する黒生成と、元のCMY信号から黒生成で得たK信号を差し引いて新たなCMY信号を生成する処理を行う。これによって、CMY信号はCMYKの4色の信号(以下、CMYK信号という)に変換される。   The black generation / under color removal unit 17 obtains black generation for generating a black signal corresponding to black (K) from the CMY signal corresponding to CMY after color correction by the color correction unit 16 and black generation from the original CMY signal. A process of generating a new CMY signal by subtracting the K signal is performed. As a result, the CMY signals are converted into CMYK four-color signals (hereinafter referred to as CMYK signals).

黒生成下色除去部17では、黒生成処理の一例として、スケルトンブラックによる黒生成を行う。このスケルトンブラックによる黒生成では、スケルトンカーブの入出力特性をy=f(x)、入力されるC,M,Yのそれぞれに対応する濃度をそれぞれC,M,Yとし、出力されるC,M,Y,Kのそれぞれに対応する濃度をそれぞれC',M',Y',K'とし、UCR(Under Color Removal)率をα(0<α<1)とすると、黒生成下色除去処理では、以下の式(1)によって、CMYの3色の濃度信号がCMYKの4色の濃度信号に変換される。   The black generation and under color removal unit 17 performs black generation using skeleton black as an example of black generation processing. In the black generation by the skeleton black, the input / output characteristics of the skeleton curve are y = f (x), the densities corresponding to the input C, M, and Y are respectively C, M, and Y, and the output C, If the densities corresponding to M, Y, and K are C ′, M ′, Y ′, and K ′, respectively, and the UCR (Under Color Removal) rate is α (0 <α <1), black generation and undercolor removal is performed. In the processing, the CMY three-color density signals are converted into CMYK four-color density signals by the following equation (1).

Figure 0004808282
Figure 0004808282

空間フィルタ処理部18は、領域分離処理部15から与えられる領域識別信号に応じて、黒生成下色除去部17から与えられるCMYK信号の画像データに、予め領域ごとに設定されるデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけ、および粒状性劣化を防ぐように処理する。   The spatial filter processing unit 18 uses a digital filter that is set in advance for each region in the image data of the CMYK signal provided from the black generation and under color removal unit 17 in accordance with the region identification signal provided from the region separation processing unit 15. Filter processing is performed to correct the spatial frequency characteristics so as to prevent blurring of the output image and deterioration of graininess.

階調再現処理部20は、空間フィルタ処理部18と同様に、領域分離処理部15から与えられる領域識別信号に応じて、出力階調補正部19から与えられるCMYK信号の画像データに予め定める処理を施す。たとえば、領域分離処理部15によって文字領域に分離された領域に関しては、特に黒文字あるいは色文字の再現性を高めるために、空間フィルタ処理部18による空間フィルタ処理における鮮鋭強調処理で高周波数の強調量が大きくされ、階調再現処理部20においては、高域周波数の再現に適した高解像度のスクリーンでの二値化または多値化処理が行われる。また、領域分離処理部15によって網点領域に分離された領域に関しては、空間フィルタ処理部18において、入力網点成分を除去するためのローパス・フィルタ処理が施される。そして、出力階調補正部19では、濃度信号などの信号をカラー画像出力装置4の特性値である網点面積率に変換する出力階調補正処理を行った後、階調再現処理部20で、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理(中間調生成)が施される。領域分離処理部15によって写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化または多値化処理が行われる。   Similar to the spatial filter processing unit 18, the gradation reproduction processing unit 20 performs predetermined processing on the image data of the CMYK signal provided from the output gradation correction unit 19 in accordance with the region identification signal provided from the region separation processing unit 15. Apply. For example, with respect to the region separated into the character region by the region separation processing unit 15, in order to improve the reproducibility of black characters or color characters in particular, the sharpness enhancement processing in the spatial filter processing by the spatial filter processing unit 18 increases the high frequency enhancement amount. In the gradation reproduction processing unit 20, binarization or multi-value processing is performed on a high-resolution screen suitable for high-frequency reproduction. Further, for 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 an output tone correction process 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 4. 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.

操作パネル5は、たとえば、液晶ディスプレイなどの表示部と操作キーを含んで構成される。操作パネル5から、入力される情報は、図示しない制御部に与えられる。制御部は、操作パネル5から入力される情報に応じて、カラー画像入力装置2、カラー画像処理装置3、カラー画像出力装置4の動作を制御する。   The operation panel 5 includes, for example, a display unit such as a liquid crystal display and operation keys. Information input from the operation panel 5 is given to a control unit (not shown). The control unit controls operations of the color image input device 2, the color image processing device 3, and the color image output device 4 in accordance with information input from the operation panel 5.

階調再現処理部20から出力される画像データ、すなわち前述した各処理が施された画像データは、一旦記憶部に記憶され、所定のタイミングで読み出されてカラー画像出力装置4に入力される。   The image data output from the gradation reproduction processing unit 20, that is, the image data on which the above-described processes are performed, is temporarily stored in the storage unit, read at a predetermined timing, and input to the color image output device 4. .

カラー画像出力装置4は、画像形成手段であって、画像データを記録媒体(たとえば紙などシート体)に画像として出力する。カラー画像出力装置4は、2色以上の記録剤を用いて記録媒体に画像を形成可能であり、本実施の形態では、C,M,Y,Kのそれぞれの色の記録剤を用いて、記録媒体に画像を形成することができる。カラー画像出力装置4は、Cに対応する画像データについては、Cの記録剤を用いて画像を形成し、Mに対応する画像データについては、Mの記録剤を用いて画像を形成し、Yに対応する画像データについては、Yの記録剤を用いて画像を形成し、Kに対応する画像データについては、Kの記録剤を用いて画像を形成する。カラー画像出力装置4は、本実施の形態では電子写真方式のプリンタ装置によって実現されるが、本発明の他の実施の形態では、カラー画像出力装置4は、インクジェット方式のプリンタ装置によって実現されてもよい。カラー画像処理装置3の各部は、図示しない制御部によって制御される。制御部は、CPU(Central Processing Unit)と、このCPUで実行処理される制御プログラムが記憶されている記憶媒体とを含んで構成される。CPUが前記制御プログラムを実行することによって、カラー画像入力装置2、カラー画像処理装置3およびカラー画像出力装置4を制御する。   The color image output device 4 is image forming means and outputs image data as an image on a recording medium (for example, a sheet body such as paper). The color image output device 4 can form an image on a recording medium using recording agents of two or more colors. In the present embodiment, the recording agents of each color of C, M, Y, and K are used. An image can be formed on a recording medium. The color image output device 4 forms an image using the C recording agent for the image data corresponding to C, forms an image using the M recording agent for the image data corresponding to M, and Y For image data corresponding to, an image is formed using a Y recording agent, and for image data corresponding to K, an image is formed using a K recording agent. The color image output device 4 is realized by an electrophotographic printer device in the present embodiment. However, in another embodiment of the present invention, the color image output device 4 is realized by an ink jet printer device. Also good. Each unit of the color image processing apparatus 3 is controlled by a control unit (not shown). The control unit includes a CPU (Central Processing Unit) and a storage medium in which a control program executed by the CPU is stored. The CPU controls the color image input device 2, the color image processing device 3, and the color image output device 4 by executing the control program.

図2は、原稿種別自動判別部13の構成を示すブロック図である。図3は、原稿種別自動判別部13による判別処理を示すフローチャートである。   FIG. 2 is a block diagram showing a configuration of the document type automatic discrimination unit 13. FIG. 3 is a flowchart showing the determination processing by the document type automatic determination unit 13.

原稿種別自動判別部13は、図2に示すように、平均値算出部21、画素判定部22、演算部23、ヒストグラム作成部24、エッジ画素カウント部25、判定部26、エッジ判定閾値設定部27、第1判定閾値設定部28、第2判定閾値設定部29、第3判定閾値設定部30を備えている。   As shown in FIG. 2, the document type automatic discrimination unit 13 includes an average value calculation unit 21, a pixel determination unit 22, a calculation unit 23, a histogram creation unit 24, an edge pixel count unit 25, a determination unit 26, and an edge determination threshold setting unit. 27, a first determination threshold setting unit 28, a second determination threshold setting unit 29, and a third determination threshold setting unit 30.

平均値算出部21は、RGBのプレーン毎(色成分毎)に、注目画素を含む複数の画素よりなるブロック(たとえば7×7画素)の濃度値の平均値を算出し、注目画素の画素値とする(ステップS1)。画素判定部22は、RGBのプレーン毎(色成分毎)に、複数の画素からなり注目画素を含むブロック(たとえば7×7画素)内における最大濃度差を算出し(ステップS2)、エッジ判定閾値設定部27から与えられるエッジ判定閾値(たとえば、30)と比較し、上記ブロックの注目画素がエッジ画素に属するかを判定する(ステップS3)。すなわち、複数の色成分のうち、何れかの最大濃度差が閾値以上である場合、注目画素はエッジ画素であると判定する(ステップS8)。エッジを判定する方法は、このような最大濃度差の他に、分散値を求め、分散値が閾値以上のときエッジ画素であると判定するようにしても良い。   The average value calculation unit 21 calculates an average value of density values of blocks (for example, 7 × 7 pixels) including a plurality of pixels including the target pixel for each RGB plane (for each color component), and calculates the pixel value of the target pixel. (Step S1). The pixel determination unit 22 calculates a maximum density difference in a block (for example, 7 × 7 pixels) that includes a plurality of pixels and includes the target pixel for each RGB plane (each color component) (step S2), and determines an edge determination threshold value. It is compared with an edge determination threshold value (for example, 30) given from the setting unit 27, and it is determined whether the target pixel of the block belongs to the edge pixel (step S3). That is, when any one of the plurality of color components has a maximum density difference equal to or greater than the threshold, it is determined that the target pixel is an edge pixel (step S8). As a method for determining an edge, in addition to such a maximum density difference, a dispersion value may be obtained, and when the dispersion value is equal to or greater than a threshold value, it may be determined that the pixel is an edge pixel.

画素判定部22において、エッジ画素と判定された画素については、エッジ画素カウント部25によりカウントされる。   The pixel determined by the pixel determination unit 22 as an edge pixel is counted by the edge pixel counting unit 25.

次に、演算部23では平均値算出部21で算出された、注目画素のプレーン毎(色成分毎)の平均値の比較を行い、注目画素毎に、各色成分間で平均値の最大値と最大差とを算出し(ステップS4、ステップS6)、ヒストグラム作成部24で、最大値および最大差それぞれのヒストグラムを生成する(ステップS5、ステップS7)。濃度区分数はたとえば、16区分とする。   Next, the calculation unit 23 compares the average value calculated for each plane (for each color component) of the target pixel calculated by the average value calculation unit 21, and determines the maximum average value between the color components for each target pixel. The maximum difference is calculated (steps S4 and S6), and the histogram creation unit 24 generates a histogram of each of the maximum value and the maximum difference (steps S5 and S7). The number of density categories is, for example, 16 categories.

すべての画素の処理が終了したかどうかを判断する(ステップS9)。終了していなければ次の画素ブロックに移り、上記の処理を繰り返す。終了していれば判定部26で、エッジ画素カウント部25でカウントされたエッジ画素数と第1判定閾値設定部28とから与えられる第1判定閾値(たとえば、5000)と比較し(ステップS10)、エッジ画素数が第1判定閾値よりも大きければ、文字領域か網点領域が存在することになり、無地原稿ではないと判定される(ステップS15)。さらに、エッジ画素カウント部25でカウントされたエッジ画素数と第1判定閾値設定部から与えられる第1判定閾値(たとえば、5000)と比較し、エッジ画素数が第1判定閾値以下であれば、無地原稿か印画紙写真原稿であると判定される。無地原稿か印画紙写真原稿であると判定された場合、ヒストグラム作成部24で作成された最大値と最大差のそれぞれのヒストグラムと、第2判定閾値設定部29から与えられる第2判定閾値(たとえば、500)とを比較し、度数値が第2判定閾値よりも大きい区分数の合計値を算出し、それぞれを最大値ヒストグラム原稿濃度幅と最大差ヒストグラム原稿濃度幅とする(ステップS11、ステップS12)。   It is determined whether or not the processing of all pixels has been completed (step S9). If not completed, the process proceeds to the next pixel block and the above process is repeated. If completed, the determination unit 26 compares the number of edge pixels counted by the edge pixel count unit 25 with a first determination threshold value (for example, 5000) given from the first determination threshold value setting unit 28 (step S10). If the number of edge pixels is larger than the first determination threshold value, a character area or a dot area exists, and it is determined that the document is not a plain original (step S15). Further, when the number of edge pixels counted by the edge pixel counting unit 25 is compared with a first determination threshold value (for example, 5000) given from the first determination threshold value setting unit, and the number of edge pixels is equal to or less than the first determination threshold value, It is determined that the document is a plain document or a photographic paper photograph document. When it is determined that the document is a plain document or a photographic paper photograph document, each histogram of the maximum value and the maximum difference created by the histogram creation unit 24 and the second determination threshold value (for example, the second determination threshold value setting unit 29) , 500) to calculate the total value of the number of divisions whose power value is larger than the second determination threshold value, and set each as the maximum value histogram document density width and the maximum difference histogram document density width (step S11, step S12). ).

算出された最大値ヒストグラム原稿濃度幅と最大差ヒストグラム原稿濃度幅のそれぞれと、第3判定閾値設定部30から与えられる第3判定閾値(たとえば、3)とを比較し(ステップS13)、第3判定閾値よりも小さければ、無地原稿と判定する(ステップS14)。   Each of the calculated maximum value histogram document density width and maximum difference histogram document density width is compared with a third determination threshold value (for example, 3) given from the third determination threshold value setting unit 30 (step S13). If it is smaller than the determination threshold, it is determined as a plain original (step S14).

以上では、画素判定部22を設ける構成を示しているが、画素判定部22を設けずに、平均値算出部21で算出された平均値を用いて色成分毎の平均値の最大値と最大差を算出し、最大値と最大差のそれぞれのヒストグラムを生成して、無地原稿であるか否かの判定を行うようにしても良い。この場合、最大値ヒストグラム原稿濃度幅と最大差ヒストグラム原稿濃度幅の判定以外に、最大差ヒストグラム原稿濃度幅の数を検知し、最大値ヒストグラム原稿濃度幅と最大差ヒストグラム原稿濃度幅のそれぞれが、第3判定閾値(たとえば、3)よりも小さく、最大差ヒストグラム原稿濃度幅の数が1の場合、無地原稿であると判定すれば良い。   Although the configuration in which the pixel determination unit 22 is provided has been described above, the maximum value and the maximum value of the average value for each color component using the average value calculated by the average value calculation unit 21 without the pixel determination unit 22 being provided. The difference may be calculated, and histograms of the maximum value and the maximum difference may be generated to determine whether the document is a plain document. In this case, in addition to the determination of the maximum histogram original density width and the maximum difference histogram original density width, the number of maximum difference histogram original density widths is detected, and each of the maximum histogram original density width and the maximum difference histogram original density width is If it is smaller than the third determination threshold (for example, 3) and the number of maximum difference histogram document density widths is 1, it may be determined that the document is a plain document.

以下では、ヒストグラム作成部24で生成されるヒストグラムについて詳細に説明する。   Hereinafter, the histogram generated by the histogram creation unit 24 will be described in detail.

図4は、最大値ヒストグラムの例を示す図であり、図5は、最大差ヒストグラムの例を示す図である。   FIG. 4 is a diagram illustrating an example of the maximum value histogram, and FIG. 5 is a diagram illustrating an example of the maximum difference histogram.

無地原稿の場合のヒストグラムの例を図4(a)および図5(a)に示す。
無地原稿は、単色濃度の画素しか存在しないため、図に示すように最大値ヒストグラム、最大差ヒストグラムともに、限られた濃度区分(たとえば1〜2区分)にのみ度数が存在する形状になる。また、最大値ヒストグラムの度数が存在する濃度値(画素値)が大きなものほど明るい原稿であり、小さなものほど暗い原稿であると見なすことができる。また、最大差ヒストグラムについては、度数が存在する濃度値が大きなものほど有彩色な原稿であり、小さなものほど無彩色な原稿であると見なすことができる。たとえば、最大値ヒストグラムが濃度値255の一箇所に度数が存在し、最大差ヒストグラムが濃度値0の一箇所で度数が存在する場合は、白紙の原稿であると判断される。
Examples of histograms for plain originals are shown in FIGS. 4 (a) and 5 (a).
Since a plain document has only pixels of a single color density, both the maximum value histogram and the maximum difference histogram have a shape in which the frequency exists only in a limited density section (for example, 1-2 sections) as shown in the figure. Further, it can be considered that a document having a higher density value (pixel value) where the frequency of the maximum value histogram is larger is a bright document, and a document having a smaller value is a dark document. Further, regarding the maximum difference histogram, it can be considered that the larger the density value where the frequency is, the more chromatic original, and the smaller the density value, the achromatic original. For example, if the maximum value histogram has a frequency at one density value 255 and the maximum difference histogram has a frequency at one density value 0, it is determined that the document is a blank document.

印画紙写真原稿の場合のヒストグラムの例を図4(b)および図5(b)に示す。
印画紙写真原稿は、さまざまな濃度で表現されているため、最大値ヒストグラム、最大差ヒストグラムともに、幅広い濃度区分で度数が存在する形状になる。また、最大差ヒストグラムについては、幅広い濃度区分で度数が存在するものほど有彩色な原稿であり、限られた濃度区分で度数が存在するものは単色な印画紙写真原稿であると見なすことが可能であり、特に低濃度区分で度数が存在するものは無彩色な印画紙写真原稿であると見なすことが可能である。たとえば、最大値ヒストグラムと最大差ヒストグラムともに幅広い濃度域で度数が存在する場合は、カラーの印画紙写真原稿であると判断される。
Examples of histograms for a photographic paper photo original are shown in FIGS. 4B and 5B.
Since the photographic paper photographic document is expressed in various densities, both the maximum value histogram and the maximum difference histogram have shapes having frequencies in a wide range of density categories. In addition, regarding the maximum difference histogram, it is possible to consider a chromatic color document with a frequency in a wide range of density categories, and a monochromatic photographic paper photo document with a frequency in a limited density category. In particular, those having a frequency in a low density section can be regarded as an achromatic photographic paper photographic original. For example, if the maximum value histogram and the maximum difference histogram have frequencies in a wide density range, it is determined that the document is a color photographic paper photographic document.

文字原稿の場合のヒストグラムの例を図4(c)および図5(c)に示す。
文字原稿は、下地濃度が大きく存在するため、最大値ヒストグラム、最大差ヒストグラムともに、無地原稿とよく似た形状になる。しかしながら、最大差ヒストグラムにおいては、文字部分の濃度区分で度数が存在することになり、何よりも文字によるエッジ画素数が存在するため、無地原稿との区別が明確に判断することが可能である。
Examples of histograms for character originals are shown in FIGS. 4 (c) and 5 (c).
Since the text document has a large background density, both the maximum value histogram and the maximum difference histogram have a shape similar to that of the plain document. However, in the maximum difference histogram, the frequency exists in the density division of the character part, and above all, the number of edge pixels due to the character exists, so that the distinction from the plain original can be clearly determined.

網点原稿においても、さまざまな濃度区分に度数が存在するため、最大値ヒストグラム、最大差ヒストグラムともに、幅広い濃度域で度数が存在する形状になる。ただし、網点原稿においては、網点がエッジとしてカウントされるため、印画紙写真原稿とは区別することが可能である。   Since halftone originals also have frequencies in various density categories, the maximum value histogram and the maximum difference histogram both have frequencies in a wide density range. However, since a halftone dot is counted as an edge in a halftone original, it can be distinguished from a photographic paper photo original.

原稿種別自動判別部13が、無地原稿と他の原稿種別との判別を行う場合について説明する。   A case where the document type automatic determination unit 13 determines a plain document from another document type will be described.

図6は、無地原稿と他の原稿種別との判別を行う原稿種別自動判別部13aの構成を示すブロック図である。図7は原稿種別自動判別部13aの判別処理を示すフローチャートである。図8は、原稿判定処理を示すフローチャートである。   FIG. 6 is a block diagram showing the configuration of the document type automatic discrimination unit 13a that discriminates between a plain document and other document types. FIG. 7 is a flowchart showing the discrimination processing of the document type automatic discrimination unit 13a. FIG. 8 is a flowchart showing the document determination process.

図2に示した原稿種別自動判別部13を構成する部位と同じ動作を行う部位については、同じ参照符号を付して説明を省略する。   Parts that perform the same operations as those constituting the document type automatic discrimination unit 13 shown in FIG.

まず、後述の判定処理において使用するフラグFを初期化し、F=0とする(ステップS20)。   First, a flag F used in the determination process described later is initialized, and F = 0 is set (step S20).

ステップS21〜ステップS34までは、図3で示したフローチャートのステップS1〜ステップS14と同じ動作であるので説明は省略する。   Steps S21 to S34 are the same as steps S1 to S14 in the flowchart shown in FIG.

原稿種別自動判別部13aに入力されたRGB信号は、上記した平均値算出部21、画素判定部22、演算部23、ヒストグラム作成部24での処理と並列して、最大濃度算出部31、最小濃度算出部32および総和濃度繁雑度算出部33に入力される。   The RGB signals input to the document type automatic determination unit 13a are processed in parallel with the processing in the average value calculation unit 21, pixel determination unit 22, calculation unit 23, and histogram creation unit 24, and the maximum density calculation unit 31 and the minimum The data is input to the density calculator 32 and the total density busyness calculator 33.

上記画素判定部22において、エッジ画素と判定された画素については、エッジ画素カウント部25でカウントされ、カウント値が判定部26へ出力される。文字・網点画素判定部35において、文字画素であるか網点画素であるかの判定を行う文字・網点画素判定処理が行われる(ステップS35)。   The pixels determined by the pixel determination unit 22 as edge pixels are counted by the edge pixel counting unit 25, and the count value is output to the determination unit 26. The character / halftone pixel determination unit 35 performs a character / halftone pixel determination process for determining whether the pixel is a character pixel or a halftone pixel (step S35).

図8を参照して、文字・網点画素判定処理では、まず最大濃度算出部31および最小濃度算出部32においては、注目画素を含む、たとえば7×7の画素ブロック内における最大濃度値および、最小濃度値を算出する(ステップS39、ステップS40)。最大濃度差算出部34は、算出された最小濃度値および最大濃度値を用いて最大濃度差を算出する(ステップS41)。   Referring to FIG. 8, in the character / halftone pixel determination process, first, in the maximum density calculation unit 31 and the minimum density calculation unit 32, for example, the maximum density value in the 7 × 7 pixel block including the target pixel, and A minimum density value is calculated (steps S39 and S40). The maximum density difference calculator 34 calculates the maximum density difference using the calculated minimum density value and maximum density value (step S41).

総和濃度繁雑度算出部33は、上記7×7画素ブロックにおいて、隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度を算出する(ステップS42)。総和濃度繁雑度は、たとえば、主走査方向、副走査方向について求め、これらの和を用いる。さらに算出された総和濃度繁雑度と、文字・網点画素判定閾値設定部36から与えられる文字・網点判定閾値と算出された最大濃度差との積との比較を行い、文字領域と網点領域とを判定する(ステップS43)なお、文字・網点画素判定については、たとえば、特開2002−232708号公報などに記載された手順で実行できる。   The total density busyness calculation unit 33 calculates a total density busyness that is the sum of absolute values of density differences between adjacent pixels in the 7 × 7 pixel block (step S42). The total density busyness is obtained, for example, in the main scanning direction and the sub-scanning direction, and these sums are used. Further, the calculated total density busyness is compared with the product of the character / halftone dot determination threshold given from the character / halftone pixel determination threshold setting unit 36 and the calculated maximum density difference, and the character area and the halftone dot are compared. The region / region is determined (step S43). Note that the character / halftone pixel determination can be executed, for example, according to the procedure described in Japanese Patent Application Laid-Open No. 2002-232708.

文字画素と判定された画素は、文字画素カウント部37でカウントされ(ステップS44)、また網点画素と判定された画素は、網点画素カウント部38でカウントされる(ステップS45)。   Pixels determined to be character pixels are counted by the character pixel counting unit 37 (step S44), and pixels determined to be halftone pixels are counted by the halftone pixel counting unit 38 (step S45).

図7に戻って、上記判定部26において、ブランク原稿ではないと判定された(ステップS36)場合、印画紙写真原稿であると判定された結果(フラグF=a、ステップS37)および上記文字カウント数および網点カウント数を用いて総合的に原稿判定処理が行われる(ステップS38)。   Returning to FIG. 7, when the determination unit 26 determines that the document is not a blank document (step S36), the determination result that the document is a photographic paper photograph document (flag F = a, step S37) and the character count The document determination process is comprehensively performed using the number and the halftone dot count (step S38).

図9は、判定処理を示すフローチャートである。
まず、判定部26は網点カウント数と、印刷写真原稿判定閾値設定部40で設定されている印刷写真原稿判定閾値(たとえば全画素数の20%)との比較を行う(ステップS51)。網点カウント数が印刷写真原稿判定閾値より小さい場合は、フラグF=aであるかどうかを判断する(ステップS52)。
FIG. 9 is a flowchart showing the determination process.
First, the determination unit 26 compares the halftone dot count with the print photo original determination threshold (for example, 20% of the total number of pixels) set by the print photo original determination threshold setting unit 40 (step S51). If the halftone dot count is smaller than the print photo original determination threshold value, it is determined whether or not flag F = a (step S52).

F=aであれば、判定部26は文字カウント数と、文字原稿判定閾値設定部39で設定
されている文字原稿判定閾値(たとえば全画素数の10%)との比較を行い(ステップS53)、文字カウント数が文字原稿判定閾値より小さい場合、印画紙写真原稿であると判定し(ステップS55)、文字カウント数が文字原稿判定閾値以上である場合、文字印画紙写真原稿であると判定する(ステップS56)。また、F=aでなければ、文字原稿であると判定する(ステップS57)。
If F = a, the determination unit 26 compares the character count number with the character document determination threshold value set by the character document determination threshold value setting unit 39 (for example, 10% of the total number of pixels) (step S53). If the character count is smaller than the character document determination threshold, it is determined that the document is a photographic paper photographic document (step S55). If the character count is greater than or equal to the character document determination threshold, it is determined that the document is a character photographic paper photographic document. (Step S56). If F = a, it is determined that the document is a character document (step S57).

さらに、網点カウント数が印刷写真原稿判定閾値以上である場合も、文字カウント数と、文字原稿判定閾値設定部39で設定されている文字原稿判定閾値(たとえば全画素数の10%)との比較を行い(ステップS54)、文字カウント数が文字原稿判定閾値より小さい場合、印刷写真原稿であると判定し(ステップS58)、文字カウント数が文字原稿判定閾値以上である場合、文字印刷写真原稿であると判定する(ステップS59)。   Further, even when the halftone dot count is equal to or greater than the print photo original determination threshold, the character count and the character original determination threshold set by the character original determination threshold setting unit 39 (for example, 10% of the total number of pixels) are set. A comparison is made (step S54). If the character count is smaller than the character document determination threshold, it is determined that the document is a printed photo document (step S58). If the character count is greater than or equal to the character document determination threshold, the character print photo document is determined. (Step S59).

図10は、本発明の他の実施形態である画像読取装置6の構成を示すブロック図である。   FIG. 10 is a block diagram showing a configuration of an image reading apparatus 6 according to another embodiment of the present invention.

画像読取装置6は、カラー画像入力装置2およびカラー画像処理装置3aで構成される。カラー画像処理装置3aは、A/D変換部11、シェーディング補正部12、原稿種別自動判別部13とから構成される。   The image reading device 6 includes a color image input device 2 and a color image processing device 3a. The color image processing apparatus 3 a includes an A / D conversion unit 11, a shading correction unit 12, and a document type automatic determination unit 13.

カラー画像入力装置(画像読取手段)2は、たとえばCCDを備えたスキャナ部より構成され、原稿からの反射光像を、RGBのアナログ信号としてCCDにて読み取って、カラー画像処理装置3aに入力するものである。   The color image input device (image reading means) 2 is composed of, for example, a scanner unit provided with a CCD, reads a reflected light image from an original as an RGB analog signal with the CCD, and inputs it to the color image processing device 3a. Is.

カラー画像入力装置2にて読み取られたアナログ信号は、カラー画像処理装置3a内を、A/D変換部11、シェーディング補正部12、原稿種別自動判別部13の順で送られる。   The analog signal read by the color image input device 2 is sent through the color image processing device 3a in the order of the A / D conversion unit 11, the shading correction unit 12, and the document type automatic discrimination unit 13.

A/D変換部11は、RGBのアナログ信号をデジタル信号に変換するもので、シェーディング補正部12は、A/D変換部11より送られてきたデジタルのRGB信号に対して、カラー画像入力装置2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すものである。また、シェーディング補正部12ではカラーバランスの調整を行う。   The A / D converter 11 converts RGB analog signals into digital signals, and the shading correction unit 12 applies a color image input device to the digital RGB signals sent from the A / D converter 11. 2 performs 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の反射率信号)を濃度信号などカラー画像処理装置3aに採用されている画像処理システムの扱い易い信号に変換するとともに、無地原稿であるか否の判断を行う。原稿種別自動判別部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 3 a such as a density signal. The signal is converted into a signal that can be easily handled by the image processing system, and it is determined whether the document is a plain original. The automatic document type discrimination unit 13 determines not only the plain original, but also the original type such as a character original, a printed photo original, or a character printed photo original in which characters and a printed photo are mixed. You may comprise so that discrimination may be performed.

画像読取装置6から出力された画像データおよび原稿種別判別信号は、ネットワークを介してプリンタや複合機に、あるいは、コンピュータに送信される。   The image data and the document type determination signal output from the image reading device 6 are transmitted to a printer, a multifunction device, or a computer via a network.

本発明の他の実施形態として、コンピュータに実行させるためのプログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録したコンピュータ読み取り可能な記録媒体に、上記した無地画像の判別処理を行う画像処理方法を記録するものとすることもできる。   As another embodiment of the present invention, the above-described plain image discrimination processing is performed on a computer-readable recording medium in which program code (execution format program, intermediate code program, source program) of a program to be executed by a computer is recorded. It is also possible to record an image processing method to be performed.

この結果、上記無地画像の判別処理を行う画像処理方法を行うプログラムコードを記録した記録媒体を持ち運び自在に提供することができる。   As a result, a recording medium on which a program code for performing the image processing method for determining the plain image is recorded can be provided in a portable manner.

なお、本実施の形態では、この記録媒体としては、マイクロコンピュータで処理が行われるために図示していないメモリ、たとえばROMのようなものそのものがプログラムメディアであっても良いし、また、図示していないが外部記憶装置としてプログラムコード読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであっても良い。   In the present embodiment, the recording medium may be a program medium such as a memory (not shown) such as a ROM itself because processing is performed by a microcomputer. However, it may be a program medium provided with a program code reading device as an external storage device and readable by inserting a recording medium therein.

いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であっても良いし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムコードが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program may be configured to be accessed and executed by the microprocessor, or in any case, the program code is read and the read program code is stored in the microcomputer. The program code may be downloaded to a program storage area (not shown) and the program code is executed. It is assumed that this download program is stored in the main device in advance.

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する媒体であっても良い。   Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, a CD-ROM / MO / MD / DVD, or the like. Semiconductors such as optical discs, IC cards (including memory cards) / optical cards, etc., or mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. It may be a medium that carries a fixed program including a memory.

また、本実施の形態においては、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムを担持する媒体であっても良い。なお、このように通信ネットワークからプログラムコードをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであっても良い。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   In the present embodiment, since the system configuration is such that a communication network including the Internet can be connected, it may be a medium that fluidly carries a program so as to download a program code from the communication network. When the program code is downloaded from the communication network in this way, the download program may be stored in the main device in advance, or may be installed from another recording medium. 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.

上記記録媒体は、デジタルカラー画像形成装置やコンピュータシステムに備えられるプログラム読み取り装置により読み取られることで上述した画像処理方法が実行される。   The recording medium is read by a program reading device provided in a digital color image forming apparatus or a computer system, whereby the above-described image processing method is executed.

コンピュータシステムは、フラットベッドスキャナ・フィルムスキャナ・デジタルカメラなどの画像入力装置、所定のプログラムがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ・液晶ディスプレイなどの画像表示装置およびコンピュータの処理結果を紙などに出力するプリンタより構成される。さらには、ネットワークを介してサーバーなどに接続するための通信手段としてのネットワークカードやモデムなどが備えられる。   The computer system includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs various processes such as the above image processing method by loading a predetermined program, and a CRT display that displays the processing results of the computer. An image display device such as a liquid crystal display and a printer that outputs the processing results of the computer to paper or the like. Furthermore, a network card, a modem, and the like are provided as communication means for connecting to a server or the like via a network.

1 画像形成装置
2 カラー画像入力装置
3 カラー画像処理装置
4 カラー画像出力装置
5 操作パネル
11 A/D変換部
12 シェーディング補正部
13 原稿種別自動判別部
14 入力階調補正部
15 領域分離処理部
16 色補正部
17 黒生成下色除去部
18 空間フィルタ処理部
19 出力階調補正部
20 階調再現処理部
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 Color image input device 3 Color image processing device 4 Color image output device 5 Operation panel 11 A / D conversion part 12 Shading correction part 13 Document type automatic discrimination part 14 Input gradation correction part 15 Area separation processing part 16 Color correction unit 17 Black generation and under color removal unit 18 Spatial filter processing unit 19 Output tone correction unit 20 Tone reproduction processing unit

Claims (7)

複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理装置において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出部と、
平均値算出部で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成部と、
色成分毎に、注目画素を含む複数の画素からなる画素ブロックで濃度に関する濃度情報を算出し、算出された濃度情報と予め定められる濃度閾値とを比較して注目画素がエッジ画素であるか否かの判定を行うとともに、エッジ画素と判定された画素数の計数を行う画素判定部と、
画素判定部でエッジ画素と判定された画素数が画素数閾値以下であり、ヒストグラム作成部で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下のとき、無地原稿を読み取った画像データであると判定する判定部とを備えていることを特徴とする画像処理装置。
In an image processing apparatus for determining whether image data is image data obtained by reading a plain original composed only of pixels having a single color density based on image data composed of a plurality of pixels,
An average value calculation unit that calculates an average value of pixel values in a pixel block including a plurality of pixels including a target pixel for each color component, and uses the calculated average value as a pixel value of the target pixel;
Based on the average value of each color component calculated by the average value calculation unit, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation unit that creates each histogram with the number of pixels for the classification as a frequency value;
For each color component, density information regarding density is calculated in a pixel block including a plurality of pixels including the target pixel, and whether the target pixel is an edge pixel by comparing the calculated density information with a predetermined density threshold value. A pixel determination unit that counts the number of pixels determined as edge pixels, and
Density classification in which the number of pixels determined as edge pixels by the pixel determination unit is equal to or less than a pixel number threshold, and the histogram of the maximum value and the histogram of maximum difference created by the histogram creation unit are equal to or greater than a predetermined frequency value And a determination unit that determines that the image data is obtained by reading a plain original when both of the density division numbers are equal to or less than the division threshold value.
複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理装置において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出部と、
平均値算出部で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成部と、
ヒストグラム作成部で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下であり、前記所定の度数値以上となる区分数全体を表す最大差ヒストグラム原稿濃度幅の数が、所定の値を満たすとき、無地原稿を読み取った画像データであると判定する判定部とを備えていることを特徴とする画像処理装置。
In an image processing apparatus for determining whether image data is image data obtained by reading a plain original composed only of pixels having a single color density based on image data composed of a plurality of pixels,
An average value calculation unit that calculates an average value of pixel values in a pixel block including a plurality of pixels including a target pixel for each color component, and uses the calculated average value as a pixel value of the target pixel;
Based on the average value of each color component calculated by the average value calculation unit, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation unit that creates each histogram with the number of pixels for the classification as a frequency value;
In the histogram of the maximum value and the histogram of the maximum difference created by the histogram creation unit, the number of density categories that are equal to or greater than a predetermined frequency value is obtained, both of these density categories are equal to or less than the threshold value, A determination unit that determines that the image data is obtained by reading a plain original when the number of maximum difference histogram original density widths representing the entire number of sections equal to or greater than a predetermined frequency value satisfies a predetermined value. A featured image processing apparatus.
請求項1または2記載の画像処理装置を備えることを特徴とする画像形成装置。   An image forming apparatus comprising the image processing apparatus according to claim 1. 複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理方法において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出工程と、
色成分毎に、注目画素を含む複数の画素からなる画素ブロックで濃度に関する濃度情報を算出し、算出された濃度情報と予め定められる濃度閾値とを比較して注目画素がエッジ画素であるか否かの判定を行うとともに、エッジ画素と判定された画素数の計数を行う画素判定工程と、
平均値算出工程で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成工程と、
画素判定工程でエッジ画素と判定された画素数が画素数閾値以下であり、ヒストグラム作成工程で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下のとき、無地原稿を読み取った画像データであると判定する判定工程を備えていることを特徴とする画像処理方法。
In an image processing method for determining whether image data is image data obtained by reading a plain original composed only of pixels of a single color density based on image data composed of a plurality of pixels,
For each color component, an average value calculation step of calculating an average value of pixel values in a pixel block including a plurality of pixels including the target pixel, and using the calculated average value as a pixel value of the target pixel;
For each color component, density information regarding density is calculated in a pixel block including a plurality of pixels including the target pixel, and whether the target pixel is an edge pixel by comparing the calculated density information with a predetermined density threshold value. And a pixel determination step for counting the number of pixels determined to be edge pixels,
Based on the average value for each color component calculated in the average value calculation step, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation step of creating each histogram with the number of pixels for the classification as a frequency value;
Density classification in which the number of pixels determined as edge pixels in the pixel determination step is equal to or less than a pixel number threshold, and the histogram of the maximum value and the histogram of maximum difference created in the histogram creation step are equal to or greater than a predetermined frequency value An image processing method, comprising: a determination step of determining the image data obtained by reading a plain original when both of the number of density categories are equal to or less than a threshold value.
複数の画素で構成される画像データに基づいて、画像データが単色濃度の画素のみで構成された無地原稿を読み取って得られた画像データかどうかを判定する画像処理方法において、
色成分毎に、注目画素を含む複数の画素からなる画素ブロック内で画素値の平均値を算出し、算出した平均値を注目画素の画素値とする平均値算出工程と、
平均値算出工程で算出された色成分毎の平均値に基づいて、注目画素ごとに各色成分間の平均値の最大値と、平均値の最大差とを求め、最大値および最大差の各濃度区分に対する画素数を度数値とするそれぞれのヒストグラムを作成するヒストグラム作成工程と、
ヒストグラム作成工程で作成された、前記最大値のヒストグラムおよび前記最大差のヒストグラムで、所定の度数値以上となる濃度区分の区分数を求め、これらの濃度区分数がともに区分閾値以下であり、前記所定の度数値以上となる区分数全体を表す最大差ヒストグラム原稿濃度幅の数が、所定の値を満たすとき、無地原稿を読み取った画像データであると判定する判定工程を備えていることを特徴とする画像処理方法。
In an image processing method for determining whether image data is image data obtained by reading a plain original composed only of pixels of a single color density based on image data composed of a plurality of pixels,
For each color component, an average value calculation step of calculating an average value of pixel values in a pixel block including a plurality of pixels including the target pixel, and using the calculated average value as a pixel value of the target pixel;
Based on the average value for each color component calculated in the average value calculation step, the maximum value of the average value between each color component and the maximum difference of the average value are obtained for each pixel of interest, and each density of the maximum value and the maximum difference is obtained. A histogram creation step of creating each histogram with the number of pixels for the classification as a frequency value;
In the histogram creation step, the maximum value histogram and the maximum difference histogram are used to determine the number of density categories that are equal to or greater than a predetermined frequency value, and both the number of density categories are equal to or less than the threshold value, A determination step of determining that the image data is obtained by reading a plain original when the number of maximum difference histogram document density widths representing the entire number of sections equal to or greater than a predetermined power value satisfies a predetermined value. An image processing method.
コンピュータに、請求項4または5に記載の画像処理方法を実行させるための画像処理プログラム。   An image processing program for causing a computer to execute the image processing method according to claim 4 or 5. コンピュータに、請求項4または5に記載の画像処理方法を実行させるための画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which an image processing program for causing a computer to execute the image processing method according to claim 4 or 5 is recorded.
JP2010089919A 2010-04-08 2010-04-08 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program Active JP4808282B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010089919A JP4808282B2 (en) 2010-04-08 2010-04-08 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010089919A JP4808282B2 (en) 2010-04-08 2010-04-08 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007200193A Division JP4495197B2 (en) 2007-07-31 2007-07-31 Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program

Publications (2)

Publication Number Publication Date
JP2010154579A JP2010154579A (en) 2010-07-08
JP4808282B2 true JP4808282B2 (en) 2011-11-02

Family

ID=42573020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010089919A Active JP4808282B2 (en) 2010-04-08 2010-04-08 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program

Country Status (1)

Country Link
JP (1) JP4808282B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6016844B2 (en) * 2014-04-24 2016-10-26 京セラドキュメントソリューションズ株式会社 Image reading device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10341341A (en) * 1997-06-06 1998-12-22 Minolta Co Ltd Image processor
JP4713715B2 (en) * 2000-08-25 2011-06-29 キヤノン電子株式会社 Document imaging apparatus, control method thereof, and storage medium
JP2005229261A (en) * 2004-02-12 2005-08-25 Seiko Epson Corp Surface/rear surface judgment of document surface to be read out
JP2005286571A (en) * 2004-03-29 2005-10-13 Sharp Corp Image processing apparatus, image forming apparatus provided with image processing apparatus, image processing method, image processing program, and recording medium with image processing program recorded thereon

Also Published As

Publication number Publication date
JP2010154579A (en) 2010-07-08

Similar Documents

Publication Publication Date Title
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4495201B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4166744B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4170353B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, program, and recording medium
JP4855458B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
US20070047805A1 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, computer-readable storage medium for storing the image processing program
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
US8073251B2 (en) Image processing apparatus and method including page-background process capability, and non-transitory computer readable storage medium for causing computer to function as the same
JP2008271488A (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP4105539B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, image processing program, and recording medium
JP4808281B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4545766B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing program, and recording medium
JP2009017208A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP2006304015A (en) Image processing apparatus, image forming apparatus, method of processing image, computer program and recording medium
JP7123752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4080252B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
JP2011015172A (en) Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP4086537B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4498316B2 (en) Image processing apparatus, image processing method, image forming apparatus, and computer program
JP2010278924A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP2004104248A (en) Image processing apparatus, image reader, image forming apparatus, and image processing method
JP2003125198A (en) Image processing apparatus and image processing method, and image forming device provided with the same, 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: 20100408

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

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

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

Free format text: PAYMENT UNTIL: 20140826

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4808282

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150