JP2011015172A - Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image - Google Patents

Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image Download PDF

Info

Publication number
JP2011015172A
JP2011015172A JP2009157342A JP2009157342A JP2011015172A JP 2011015172 A JP2011015172 A JP 2011015172A JP 2009157342 A JP2009157342 A JP 2009157342A JP 2009157342 A JP2009157342 A JP 2009157342A JP 2011015172 A JP2011015172 A JP 2011015172A
Authority
JP
Japan
Prior art keywords
pixel
background
density value
output
chromatic
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.)
Pending
Application number
JP2009157342A
Other languages
Japanese (ja)
Inventor
Kazuhisa Kubota
和久 久保田
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 JP2009157342A priority Critical patent/JP2011015172A/en
Publication of JP2011015172A publication Critical patent/JP2011015172A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a device for processing an image capable of accurately deciding an original attribute even when omitting an input operation for the original attribute by a user, and to provide a device for forming the image, a method and a program for processing the image, and a recording medium recording the program for processing the image.SOLUTION: The device 3 for processing the image is configured to include a foundation decision 24, a pixel decision 21, a foundation remover 29, and an output decision 31. The foundation decision 24 decides a foundation pixel in a plurality of pixels in original image data based on an original. The pixel decision 21 decides chromatic pixels contained in the original image data. The foundation remover 29 removes a foundation on the basis of the result of a foundation decision in the foundation decision 24. The output decision 31 compares a minimum foundation-pixel density value obtained on the basis of the density value of the foundation pixel and the density value of the chromatic pixels, and decides a monochro output when the density value of the chromatic pixels is higher than the minimum foundation pixel density value.

Description

本発明は、原稿内における有彩色の有無を検知するとともに、さらに画像形成後に失われる有彩色を考慮し、原稿をカラー原稿として扱うべき原稿か、あるいはモノクロ原稿として扱うべき原稿かの判別処理を行う画像処理装置、画像形成装置、画像処理方法、画像処理プログラムおよび画像処理プログラムが記録される記録媒体に関する。   The present invention detects the presence or absence of a chromatic color in a document, and further considers the chromatic color lost after image formation, and determines whether the document should be handled as a color document or as a monochrome document. 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 on which the image processing program is recorded.

複写機、複合機などの画像形成装置、スキャナ等の画像読取装置において、最適な出力画像を得るためには、原稿属性に適した処理を行う必要がある。特に、カラー原稿においては、モノクロ原稿と比較して、必要とするトナーやインクといった経済性、画像形成に費やす時間といった効率性が約4倍必要となるため、ユーザが原稿によって、モードを判断し手動で切り替えて使用しているのが普通である。ところが、多量の原稿を自動給紙機構により供給して複写する場合は、給紙、複写が自動的に高速で行われるため、処理の切替も自動的に行う必要があり、原稿種別判定、カラーモノクロ判定、下地判定などのいわゆる原稿属性の判定を行い、最適な出力画像を得るための判定処理が必要となる。   In order to obtain an optimum output image in an image forming apparatus such as a copying machine or a multifunction peripheral, or an image reading apparatus such as a scanner, it is necessary to perform processing suitable for the document attribute. In particular, a color manuscript requires about four times as much efficiency as the required toner and ink and time required for image formation as compared to a monochrome manuscript, so the user determines the mode according to the manuscript. It is normal to switch manually. However, when copying a large amount of originals supplied by the automatic paper feeding mechanism, paper feeding and copying are performed automatically at high speed. Therefore, it is necessary to automatically switch processing. Determination processing for obtaining an optimum output image by performing so-called document attribute determination such as monochrome determination and background determination is required.

たとえば、特許文献1記載の画像処理装置では、カラー画像読みとり手段により読み込まれた画素の色を彩度情報に変換し、さらに、前記彩度情報を平均化し、平均化された彩度情報に対して走査線毎に最大値を求めてヒストグラムを作成し、最大彩度のヒストグラムの形状から画像内に存在する色数を判定し、判定された色数に基づいてカラー原稿またはモノクロ原稿の判定を行っている。   For example, in the image processing apparatus described in Patent Document 1, the color of a pixel read by a color image reading unit is converted into saturation information, and the saturation information is averaged, and the averaged saturation information is calculated. The maximum value is obtained for each scanning line, a histogram is created, the number of colors present in the image is determined from the shape of the histogram of maximum saturation, and a color document or monochrome document is determined based on the determined number of colors. Is going.

特開平5−284372号公報Japanese Patent Laid-Open No. 5-284372

しかしながら、カラー原稿において、彩度が同じでも色相が異なるものは無数に存在し、人間の目による色知覚が容易であるにも関らず、彩度のみによる判定では同様の判定が不可能であり、また、色数とその色が原稿の出力画像において必要である有彩画素であるか、不必要な有彩画素であるかの判定は、走査線毎の彩度の最大値ヒストグラムの形状から推測するのは精度として不十分である。   However, there are innumerable color manuscripts with the same saturation but different hues, and although it is easy for human eyes to perceive color, it is impossible to make the same determination using only saturation. Yes, the number of colors and whether the colors are necessary or unnecessary chromatic pixels in the output image of the document are determined by the shape of the maximum value histogram of saturation for each scanning line. It is insufficient as an accuracy to guess from the above.

本発明の目的は、精度良く原稿属性の判定を行うことができる画像処理装置、画像形成装置、画像処理方法、画像処理プログラムおよび画像処理プログラムが記録される記録媒体を提供することである。   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 on which an image processing program is recorded, capable of accurately determining document attributes.

本発明は、原稿に基づく原稿画像データに含まれる複数の画素のうち下地画素を判定する下地判定部と、
前記原稿画像データに含まれる有彩画素を判定する画素判定部と、
前記下地判定部における下地判定結果に基づいて下地除去を行う下地除去部と、
前記原稿画像データに基づく出力画像データを出力するにあたって、カラー出力するかモノクロ出力するかを判定する出力判定部であって、前記下地画素の濃度値に基づいて得られる最小の下地画素濃度値と、前記有彩画素の濃度値とを比較し、前記有彩画素の濃度値が前記最小の下地画素濃度値以上である場合には、モノクロ出力すべきと判定する出力判定部とを含むことを特徴とする画像処理装置である。
The present invention provides a background determination unit that determines a background pixel among a plurality of pixels included in document image data based on a document;
A pixel determination unit for determining chromatic pixels included in the document image data;
A background removal unit that performs background removal based on the background determination result in the background determination unit;
An output determination unit that determines whether to output color or monochrome when outputting output image data based on the document image data, and a minimum background pixel density value obtained based on the density value of the background pixel An output determination unit that compares the density value of the chromatic pixel and determines that monochrome output should be performed when the density value of the chromatic pixel is equal to or greater than the minimum background pixel density value. An image processing apparatus is characterized.

また本発明は、前記出力判定部が、モノクロ出力すべきと判定した場合に、前記原稿画像データに基づいて、無彩化された出力画像データを生成する色補正部をさらに含むことを特徴とする。   The present invention further includes a color correction unit that generates achromatic output image data based on the original image data when the output determination unit determines that monochrome output should be performed. To do.

また本発明は、前記出力判定部は、前記有彩画素の濃度値に基づいて得られる最小の有彩画素濃度値を、前記最小の下地画素濃度値と比較し、前記最小の有彩画素濃度値が前記最小の下地画素濃度値以上である場合に、モノクロ出力すべきと判定することを特徴とする。   According to the present invention, the output determination unit compares a minimum chromatic pixel density value obtained based on the density value of the chromatic pixel with the minimum background pixel density value, and the minimum chromatic pixel density When the value is equal to or greater than the minimum background pixel density value, it is determined that monochrome output should be performed.

また本発明は、前記原稿画像データにおける前記下地画素の濃度値についてヒストグラムを作成する下地画素ヒストグラム生成部と、
前記原稿画像データにおける前記有彩画素の濃度値についてヒストグラムを作成する有彩画素ヒストグラム生成部とをさらに含み、
前記出力判定部は、前記下地画素のヒストグラムのうち最小の下地画素濃度値と、前記有彩画素のヒストグラムのうち最小の有彩画素濃度値とを比較し、最小の有彩画素濃度値が最小の下地画素濃度値以上である場合には、モノクロ出力すべきと判定することを特徴とする。
The present invention also provides a background pixel histogram generation unit that generates a histogram for the density value of the background pixel in the document image data;
A chromatic pixel histogram generation unit that creates a histogram for the density values of the chromatic pixels in the document image data;
The output determination unit compares the minimum background pixel density value in the background pixel histogram with the minimum chromatic pixel density value in the chromatic pixel histogram, and the minimum chromatic pixel density value is the minimum. When the density is equal to or higher than the background pixel density value, it is determined that monochrome output should be performed.

また本発明は、前記下地画素ヒストグラム生成部は、前記各下地画素について、前記原稿画像データの信号別の下地画素の最小の濃度値を、前記各下地画素の濃度値としてヒストグラムを作成し、
前記有彩画素ヒストグラム生成部は、前記各有彩画素について、前記原稿画像データの信号別の有彩画素の最小の濃度値を、前記各有彩画素の濃度値としてヒストグラムを作成することを特徴とする。
Further, according to the present invention, the background pixel histogram generation unit creates a histogram for each background pixel, using the minimum density value of each background pixel for each signal of the document image data as the density value of each background pixel,
The chromatic pixel histogram generation unit creates a histogram for each chromatic pixel using the minimum density value of each chromatic pixel for each signal of the original image data as the density value of each chromatic pixel. And

また本発明は、前記画像処理装置を備え、前記出力判定部の判定結果に応じてカラー出力またはモノクロ出力することを特徴とする画像形成装置である。   According to another aspect of the present invention, there is provided an image forming apparatus including the image processing apparatus and performing color output or monochrome output according to a determination result of the output determination unit.

また本発明は、原稿に基づく原稿画像データに含まれる複数の画素のうち下地画素を判定する下地判定工程と、
前記原稿画像データに含まれる有彩画素を判定するカラー画素判定工程と、
前記下地判定工程における下地判定結果に基づいて下地除去を行う下地除去工程と、
前記下地画素の濃度値と、前記有彩画素の濃度値とを比較し、前記有彩画素の濃度値が前記下地画素の濃度値以上である場合には、モノクロ出力すべきと判定する濃度値比較工程とを含むことを特徴とする画像処理方法である。
According to another aspect of the present invention, there is provided a background determination step for determining a background pixel among a plurality of pixels included in document image data based on a document;
A color pixel determination step of determining chromatic pixels included in the document image data;
A ground removal step of performing ground removal based on the ground determination result in the ground determination step;
A density value that compares the density value of the background pixel with the density value of the chromatic pixel and determines that monochrome output should be performed when the density value of the chromatic pixel is equal to or higher than the density value of the background pixel And a comparison process.

また本発明は、コンピュータを、前記画像処理装置として機能させる画像処理プログラムである。   The present invention is also an image processing program that causes a computer to function as the image processing apparatus.

また本発明は、コンピュータを、前記画像処理装置として機能させる画像処理プログラムが、コンピュータ読取り可能に記録される記録媒体である。   Further, the present invention is a recording medium on which an image processing program that causes a computer to function as the image processing apparatus is recorded in a computer-readable manner.

本発明によれば、画像処理装置は、下地判定部と、画素判定部と、下地除去部と、出力判定部とを含んで構成される。下地判定部は、原稿に基づく原稿画像データに含まれる複数の画素のうち、下地画素を判定する。画素判定部は、原稿画像データに含まれる有彩画素を判定する。下地除去部は、前記下地判定部における下地判定結果に基づいて下地除去を行う。出力判定部は、下地画素の濃度値に基づいて得られる最小の下地画素濃度値と有彩画素の濃度値とを比較し、有彩画素の濃度値が最小の下地画素濃度値以上である場合には、モノクロ出力すべきと判定する。   According to the present invention, the image processing apparatus includes a background determination unit, a pixel determination unit, a background removal unit, and an output determination unit. The background determination unit determines a background pixel from among a plurality of pixels included in the document image data based on the document. The pixel determination unit determines a chromatic pixel included in the document image data. The background removal unit performs background removal based on the background determination result in the background determination unit. The output determination unit compares the minimum background pixel density value obtained based on the density value of the background pixel with the density value of the chromatic pixel, and the density value of the chromatic pixel is equal to or greater than the minimum background pixel density value. Is determined to be monochrome output.

これによって、ユーザによる原稿属性の入力作業を省略しても、カラー出力すべきか、モノクロ出力すべきかを高い精度で自動的に判定することのできる画像処理装置を提供することができる。また上記判定を行う際の計算を単純化することができる。   Thus, it is possible to provide an image processing apparatus capable of automatically determining with high accuracy whether color output or monochrome output is to be performed even if the user does not need to input document attributes. In addition, the calculation for making the above determination can be simplified.

本発明によれば、画像処理装置は、色補正部をさらに含んで構成される。色補正部は、出力判定部がモノクロ出力すべきと判定した場合に、原稿画像データに基づいて無彩化された出力画像データを生成する。これによって、カラー出力する必要性がない場合にモノクロ出力することができる。したがって、カラー出力に伴うインクおよび時間などを省略することができる。   According to the present invention, the image processing apparatus further includes a color correction unit. The color correction unit generates achromatic output image data based on the document image data when the output determination unit determines that monochrome output should be performed. Thus, monochrome output can be performed when there is no need for color output. Therefore, ink and time associated with color output can be omitted.

また本発明によれば、出力判定部は、有彩画素の濃度値のうち、最小の有彩画素濃度値を、最小の下地画素濃度値と比較し、最小の有彩画素濃度値が最小の下地画素濃度値以上である場合に、モノクロ出力すべきと判定する。これによって、原稿画像データが、下地除去される場合においても、下地除去によって色味が除去されることのない有彩画素があるのか否かを、簡単な処理によって高い精度で判定することができる。   According to the invention, the output determination unit compares the minimum chromatic pixel density value of the chromatic pixel density values with the minimum background pixel density value, and the minimum chromatic pixel density value is the minimum. If it is equal to or higher than the background pixel density value, it is determined that monochrome output should be performed. As a result, even when the background of the document image data is removed, it is possible to determine with high accuracy by simple processing whether there is a chromatic pixel whose color is not removed by the background removal. .

また本発明によれば、画像処理装置は、下地画素ヒストグラム生成部と、有彩画素ヒストグラム生成部とをさらに含んで構成される。下地画素ヒストグラム生成部は、原稿画像データにおける下地画素の濃度値についてヒストグラムを作成する。有彩画素ヒストグラム生成部は、原稿画像データにおける有彩画素の濃度値についてヒストグラムを作成する。出力判定部は、下地画素のヒストグラムのうち最小の下地画素濃度値と、有彩画素のヒストグラムのうち最小の有彩画素濃度値とを比較し、最小の有彩画素濃度値が最小の下地画素濃度値以上である場合には、モノクロ出力すべきと判定する。   According to the invention, the image processing apparatus further includes a background pixel histogram generation unit and a chromatic pixel histogram generation unit. The background pixel histogram generation unit creates a histogram for the density value of the background pixel in the document image data. The chromatic pixel histogram generation unit creates a histogram for the density values of the chromatic pixels in the document image data. The output determination unit compares the minimum background pixel density value in the background pixel histogram with the minimum chromatic pixel density value in the chromatic pixel histogram, and the minimum background pixel density value is the minimum. When the density value is greater than or equal to, it is determined that monochrome output should be performed.

これによって、出力判定部は、下地画素のヒストグラムの単一の値である最小の下地画素濃度値と有彩画素のヒストグラムの単一の値である最小の有彩画素濃度値との比較によってカラー出力すべきか、モノクロ出力すべきか判定することができるので、簡単な処理によって高い精度で判定することができる。   As a result, the output determination unit compares the minimum background pixel density value, which is a single value in the background pixel histogram, with the minimum chromatic pixel density value, which is the single value in the chromatic pixel histogram. Since it is possible to determine whether to output or monochrome output, it is possible to determine with high accuracy by simple processing.

また本発明によれば、下地画素ヒストグラム生成部は、各下地画素について、原稿画像データの信号別の下地画素の最小の濃度値を、各下地画素の濃度値としてヒストグラムを作成する。有彩画素ヒストグラム生成部は、各有彩画素について、原稿画像データの信号別の有彩画素の最小の濃度値を、各有彩画素の濃度値としてヒストグラムを作成する。   According to the present invention, the background pixel histogram generation unit generates a histogram for each background pixel, using the minimum density value of each background pixel for each signal of the document image data as the density value of each background pixel. The chromatic pixel histogram generation unit creates a histogram for each chromatic pixel using the minimum density value of the chromatic pixel for each signal of the document image data as the density value of each chromatic pixel.

これによって、彩度が同じであるか否かに関わらず、下地画素および有彩画素の濃度値について、色味が異なれば異なる濃度値として表すヒストグラムを作成することができる。従って、彩度の情報に変換された後の情報に基づいてヒストグラムを作成する場合に比べて、高い精度でカラー出力すべきかモノクロ出力すべきかを判定することができる。   Thereby, regardless of whether the saturation is the same, it is possible to create histograms representing the density values of the background pixel and the chromatic pixel as different density values if the color is different. Therefore, it is possible to determine whether color output or monochrome output should be performed with higher accuracy than in the case of creating a histogram based on information after being converted into saturation information.

また本発明によれば、画像形成装置は、前記画像処理装置を備える。これによって、ユーザによる原稿属性の入力作業を省略しても、カラー出力すべきか、モノクロ出力すべきかを高い精度で自動的に判定し、画像形成を行うことのできる画像形成装置を実現することができる。また上記判定を行う際の計算を単純化することができ、この判定を行う部分の回路規模を小さくすることができる。   According to the invention, an image forming apparatus includes the image processing apparatus. Accordingly, it is possible to realize an image forming apparatus capable of automatically determining with high accuracy whether to output in color or monochrome and to perform image formation even if the user does not input the original attribute. it can. Further, the calculation for making the above determination can be simplified, and the circuit scale of the portion for making this determination can be reduced.

また本発明によれば、画像処理方法は、下地判定工程と、下地除去工程と、カラー画素判定工程と、濃度値比較工程とを含んで構成される。下地判定工程では、原稿に基づく原稿画像データに含まれる複数の画素のうち、下地画素を判定する。カラー画素判定工程では、原稿画像データに含まれる有彩画素を判定する。下地除去工程では、下地判定工程における下地判定結果に基づいて下地除去を行う。濃度値比較工程では、下地画素の濃度値と、有彩画素の濃度値とを比較し、有彩画素の濃度値が下地画素の濃度値以上である場合には、モノクロ出力すべきと判定する。   According to the invention, the image processing method includes a background determination step, a background removal step, a color pixel determination step, and a density value comparison step. In the background determination step, a background pixel is determined among a plurality of pixels included in the document image data based on the document. In the color pixel determination step, chromatic pixels included in the document image data are determined. In the background removal process, the background removal is performed based on the background determination result in the background determination process. In the density value comparison step, the density value of the background pixel and the density value of the chromatic pixel are compared, and if the density value of the chromatic pixel is equal to or higher than the density value of the background pixel, it is determined that monochrome output should be performed. .

これによって、ユーザによる原稿属性の入力作業を省略しても、カラー出力すべきか、モノクロ出力すべきかを高い精度で自動的に判定することのできる画像処理方法を提供することができる。また上記判定を行う際の計算を単純化することができる。   As a result, it is possible to provide an image processing method that can automatically determine with high accuracy whether color output or monochrome output should be performed even if the user does not need to input document attributes. In addition, the calculation for making the above determination can be simplified.

また本発明によれば、画像処理プログラムは、コンピュータを、前記画像処理装置として機能させる。これによって、画像処理装置を、コンピュータによって実現することができる。   According to the invention, the image processing program causes a computer to function as the image processing apparatus. As a result, the image processing apparatus can be realized by a computer.

また本発明によれば、記録媒体は、画像処理プログラムが、コンピュータ読取り可能に記録される。画像処理プログラムは、コンピュータを、前記画像処理装置として機能させる。これによって、画像処理プログラムを、コンピュータ読取り可能な記録媒体によって提供することができる。   According to the invention, the image processing program is recorded on the recording medium so as to be readable by a computer. The image processing program causes a computer to function as the image processing apparatus. Thus, the image processing program can be provided by a computer-readable recording medium.

本発明の第1実施形態に係る画像形成装置1の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus 1 according to a first embodiment of the present invention. 本発明の第1実施形態における原稿属性自動判別部13の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a document attribute automatic determination unit 13 according to the first embodiment of the present invention. 本発明の第1実施形態に係る画像処理方法において、原稿属性自動判別部13によって行われる判別処理を示すフローチャートである。4 is a flowchart illustrating a determination process performed by an automatic document attribute determination unit 13 in the image processing method according to the first embodiment of the present invention. 本発明の第1実施形態に係る画像処理方法において、原稿属性自動判別部13によって行われる判別処理を示すフローチャートである。4 is a flowchart illustrating a determination process performed by an automatic document attribute determination unit 13 in the image processing method according to the first embodiment of the present invention. 本発明の第1実施形態において下地画素ヒストグラム生成部22によって生成されるヒストグラムの一例を示す図である。It is a figure which shows an example of the histogram produced | generated by the base pixel histogram production | generation part 22 in 1st Embodiment of this invention. 本発明の第1実施形態におけるカラー原稿判定の工程における各段階を表すフローチャートである。4 is a flowchart showing each stage in a color document determination process in the first embodiment of the present invention. 本発明の第1実施形態の下地除去処理において、変換に用いる入力濃度値と出力濃度値との対応関係を表す図である。It is a figure showing the correspondence of the input density value used for conversion, and an output density value in the ground | background removal process of 1st Embodiment of this invention. 本発明の第2実施形態である画像読取装置50の構成を示すブロック図である。It is a block diagram which shows the structure of the image reading apparatus 50 which is 2nd Embodiment of this invention.

(第1実施形態)
図1は、本発明の第1実施形態に係る画像形成装置1の構成を示すブロック図である。本実施の形態では、画像形成装置1を電子写真方式のデジタルカラー複写機に適用している。
(First embodiment)
FIG. 1 is a block diagram showing a configuration of an image forming apparatus 1 according to the first 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, an image processing device 3, a color image output device 4, and an operation panel 5. The image processing apparatus 3 includes an A / D (analog / digital) conversion unit 11, a shading correction unit 12, a document attribute automatic discrimination unit 13, an input tone correction unit 14, a region separation processing unit 15, a color correction unit 16, and a black generation. The 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に入力する。
For example, a color image input device 2 serving as an image reading means is a CCD (Charge Coupled
A scanner unit (not shown) having a (Device) is included, and the reflected light image from the original corresponds to RGB (R: red, G: green, B: blue), respectively, and the original image is recorded. The image data is read by the CCD as image data composed of analog signals representing the reflectance of reflected light from a recording medium such as paper, and the image data is input to the image processing device 3.

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

A/D変換部11は、RGBにそれぞれ対応するアナログ信号の画像データをデジタル信号の画像データにそれぞれ変換する。シェーディング補正部12は、A/D変換部11から送られてきたRGBにそれぞれ対応するデジタル信号の画像データに対して、カラー画像入力装置2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施す。また、シェーディング補正部12ではカラーバランスの調整を行う。   The A / D converter 11 converts the image data of analog signals corresponding to RGB to image data of digital signals, respectively. 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では、シェーディング補正部12にて各種の歪みが取り除かれ、カラーバランスの調整がなされたRGB信号(RGBの反射率信号)を濃度値信号など画像処理装置3に採用されている画像処理システムの扱い易い信号に変換するとともに、原稿がカラー原稿であるかモノクロ原稿であるか(カラー原稿判定)、原稿がカラー複写するべき原稿であるか、すべきでない原稿であるかの判別(出力判定)、文字原稿であるか、印刷写真原稿であるか、あるいは、文字と印刷写真が混在した文字印刷写真原稿であるか等の原稿種別の判別(原稿種別判定)、下地除去処理を行うべき原稿であるか、すべきでない原稿であるかの判別(下地判定)が行われる。画像処理装置3におけるRGBの各信号を、「色信号」と称することがある。   In the document attribute automatic 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 image processing apparatus 3 such as a density value signal. Whether the document is a color document or a monochrome document (color document determination), whether the document is a document to be color-copied or not Discrimination (output judgment), discrimination of a document type such as whether it is a text document, a printed photo document, or a text printing photo document in which characters and a printed photo are mixed (document type determination), background removal processing It is determined (background determination) whether the document is to be performed or not. The RGB signals in the image processing apparatus 3 may be referred to as “color signals”.

この原稿属性自動判別部13で生成された出力判定信号、原稿種別判定信号、下地判定信号は、入力階調補正部14、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、階調再現処理部20に出力される。なお、原稿属性自動判別部13の詳細については後述する。   The output determination signal, document type determination signal, and background determination signal generated by the document attribute automatic determination unit 13 are input gradation correction unit 14, color correction unit 16, black generation and under color removal unit 17, and spatial filter processing unit 18. Are output to the gradation reproduction processing unit 20. Details of the document attribute automatic determination 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 for documents that are yellowish, such as straw half paper, or a document with a colored background, the monochrome mode is sufficient as the copy mode. If the background color is not treated as white, extra toner will be used for the white background (background) during image output. 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 including density value signals corresponding to RGB to the region separation processing unit 15.

領域分離処理部15は、RGBのそれぞれの色信号における濃度値信号によって、入力画像データにおける各画素を、下地領域、写真(印画紙写真)領域、文字領域および網点領域のいずれに属するのか、またこれらがカラーなのかモノクロなのかを判定する。本実施の形態において、領域分離処理とは、1枚の画像の中で文字領域であるのか写真領域(連続階調領域)であるのか網点領域であるのか、またそれらがカラーなのかモノクロなのか、などを切り分けることを指す。文字領域は、文字および記号を含むキャラクタを表す。下地領域は、原稿の地肌部分(背景)を表す。領域分離処理部15は、分離結果に基づき、各画素がどの領域に属しているかを示す領域識別信号を、色補正部16、黒生成下色除去部17、空間フィルタ処理部18および階調再現処理部20へと出力するとともに、入力階調補正部14から出力されたRGBのそれぞれに対応する濃度値信号をそのまま後段の色補正部16に出力する。   The region separation processing unit 15 determines whether each pixel in the input image data belongs to a background region, a photograph (photographic paper photograph) region, a character region, or a halftone dot region based on the density value signal in each color signal of RGB. It is also determined whether these are color or monochrome. In the present embodiment, the region separation process is a character region, a photographic region (continuous gradation region) or a halftone dot region in one image, and whether these are color or monochrome. It refers to carving out or the like. 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 generates a region identification signal indicating which region each 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. In addition to outputting to the processing unit 20, the density value 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から与えられる原稿属性判定信号Sg13に基づいて、色変換を行う。   In response to the region identification signal provided from the region separation processing unit 15, the color correction unit 16 outputs density value signals (color signals) corresponding to RGB supplied from the region separation processing unit 15 and density signals corresponding to CMY, respectively. (Hereinafter referred to as CMY signal). The color correction unit 16 performs conversion from density value signals corresponding to RGB to density 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 the document attribute determination signal Sg13 given from the document attribute 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 2011015172
Figure 2011015172

空間フィルタ処理部18は、領域分離処理部15から与えられる領域識別信号Sg15に応じて、黒生成下色除去部17から与えられるCMYK信号の画像データに、予め領域ごとに設定されるデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけ、および粒状性劣化を防ぐように処理する。出力階調補正部19は、カラー画像出力装置4の出力特性に基づく出力階調補正処理を行う。   The spatial filter processing unit 18 uses a digital filter 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 Sg15 provided from the region separation processing unit 15. Spatial filter processing is performed to correct the spatial frequency characteristics so as to prevent blurring of the output image and deterioration of graininess. The output tone correction unit 19 performs output tone correction processing based on the output characteristics of the color image output device 4.

階調再現処理部20は、空間フィルタ処理部18と同様に、領域分離処理部15から与えられる領域識別信号Sg15に応じて、出力階調補正部19から与えられるCMYK信号の画像データに予め定める処理を施す。たとえば、領域分離処理部15によって文字領域に分離された領域に関しては、特に黒文字あるいは色文字の再現性を高めるために、空間フィルタ処理部18による鮮鋭強調処理で高周波数の強調量が大きくされ、階調再現処理部20においては、高域周波数の再現に適した高解像度のスクリーンでの二値化または多値化処理が行われる。また、領域分離処理部15によって網点領域に分離された領域に関しては、空間フィルタ処理部18において、入力網点成分を除去するためのローパス・フィルタ処理が施され、階調再現処理部20で、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理(中間調生成)が施される。領域分離処理部15によって印画紙写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化または多値化処理が行われる。   Similar to the spatial filter processing unit 18, the gradation reproduction processing unit 20 predetermines image data of the CMYK signal provided from the output gradation correction unit 19 in accordance with the region identification signal Sg 15 provided from the region separation processing unit 15. Apply processing. For example, with respect to the region separated into character regions by the region separation processing unit 15, in particular, in order to improve the reproducibility of black characters or color characters, the high frequency enhancement amount is increased by the sharp enhancement processing by the spatial filter processing unit 18. The gradation reproduction processing unit 20 performs binarization or multi-value processing 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, and 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. With respect to the region separated into the photographic paper photograph 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 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 materials of two or more colors, and in this embodiment, recording materials 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 material for the image data corresponding to C, forms an image using the M recording material for the image data corresponding to M, and Y For image data corresponding to, an image is formed using a Y recording material, and for image data corresponding to K, an image is formed using a K recording material. The color image output device 4 is realized by an electrophotographic printer device in the present embodiment, but 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 image processing apparatus 3 is controlled by a control unit (not shown). The control unit is a CPU (Central
Processing Unit) and a storage medium in which a control program executed and processed by the CPU is stored. The CPU controls the color image input device 2, the image processing device 3, and the color image output device 4 by executing the control program.

図2は、本発明の第1実施形態における原稿属性自動判別部13の構成を示すブロック図である。図3Aおよび図3Bは、本発明の第1実施形態に係る画像処理方法において、原稿属性自動判別部13によって行われる判別処理を示すフローチャートである。原稿属性自動判別部13は、図2に示すように、画素判定部21、下地画素ヒストグラム生成部22、有彩画素ヒストグラム生成部23、下地判定部24、下地除去判定部25、領域画素カウント部26、原稿種別判定部27、カラー画素カウント部28、下地除去部29、カラー判定部(カラー原稿判定部)30、出力判定部31、および図示外の原稿属性判別制御部を備えている。   FIG. 2 is a block diagram showing the configuration of the document attribute automatic discrimination unit 13 in the first embodiment of the present invention. 3A and 3B are flowcharts showing the determination process performed by the document attribute automatic determination unit 13 in the image processing method according to the first embodiment of the present invention. As shown in FIG. 2, the automatic document attribute determination unit 13 includes a pixel determination unit 21, a background pixel histogram generation unit 22, a chromatic pixel histogram generation unit 23, a background determination unit 24, a background removal determination unit 25, and a region pixel count unit. 26, a document type determination unit 27, a color pixel count unit 28, a background removal unit 29, a color determination unit (color document determination unit) 30, an output determination unit 31, and a document attribute determination control unit (not shown).

第1実施形態において、これら画素判定部21、下地画素ヒストグラム生成部22、有彩画素ヒストグラム生成部23、下地判定部24、下地除去判定部25、領域画素カウント部26、原稿種別判定部27、カラー画素カウント部28、下地除去部29、カラー判定部(カラー原稿判定部)30、出力判定部31、および原稿属性判別制御部は、コンピュータによって実現される。また図3に示すフローチャートは、コンピュータに読み込まれた画像処理プログラムが、コンピュータによって実行されることで、実行される工程を表すフローチャートでもある。   In the first embodiment, these pixel determination unit 21, background pixel histogram generation unit 22, chromatic pixel histogram generation unit 23, background determination unit 24, background removal determination unit 25, area pixel count unit 26, document type determination unit 27, The color pixel count unit 28, the background removal unit 29, the color determination unit (color document determination unit) 30, the output determination unit 31, and the document attribute determination control unit are realized by a computer. Further, the flowchart shown in FIG. 3 is also a flowchart showing a process executed when the image processing program read into the computer is executed by the computer.

第1実施形態では、まずコンピュータを含む画像処理装置3のスイッチの態様がオン状態となり、画像処理プログラムがたとえばROM(Read Only Memory)などの記録媒体からコンピュータに読み込まれ、その後原稿画像データが入力されると、本処理が開始される。本処理開始後、画素判定部21は、ステップS1の領域画素判定の工程において、各画素の判別を行う。各画素の判別は、画像データを下地候補画素、印画紙画素(写真画素)、文字画素、網点画素の何れかに分離して判別する。以降、下地候補画素、印画紙画素、文字画素、網点画素を領域画素という。下地候補画素とは、領域画素判定の工程において、下地画素である可能性の高い画素として、画素判定部21によって抽出される画素である。   In the first embodiment, first, the switch mode of the image processing apparatus 3 including the computer is turned on, the image processing program is read into the computer from a recording medium such as a ROM (Read Only Memory), and then the original image data is input. Then, this process is started. After the start of this process, the pixel determination unit 21 determines each pixel in the region pixel determination step of step S1. The determination of each pixel is performed by separating the image data into any one of background candidate pixels, photographic paper pixels (photo pixels), character pixels, and halftone pixels. Hereinafter, background candidate pixels, photographic paper pixels, character pixels, and halftone pixels are referred to as region pixels. The background candidate pixel is a pixel extracted by the pixel determination unit 21 as a pixel having a high possibility of being a background pixel in the region pixel determination step.

領域画素に分離するアルゴリズムは、既存の領域分離方法を用いることができ、たとえば、以下に示すような、特開2002−232708号公報に記載の方法などを用いることができる。
(1)注目画素を含むn×m(たとえば、7画素×15画素)の画素ブロックにおける最小濃度値および、最大濃度値を算出する。
(2)算出された最小濃度値及び最大濃度値を用いて最大濃度差を算出する。
(3)注目画素に隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度(たとえば、主走査方向と副走査方向について算出した値の和)を算出する。
(4)算出された最大濃度差と最大濃度差閾値との比較及び算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行う。
(5)最大濃度差<最大濃度差閾値および総和濃度繁雑度<総和濃度繁雑度閾値のとき、注目画素は下地・印画紙領域に属すると判定する。
(6)上記条件を満たさないときは、注目画素は文字・網点領域に属すると判定する。
(7)下地・印画紙領域に属すると判定された画素について、注目画素が、最大濃度差<下地・印画紙判定閾値を充たすとき、下地候補画素であると判定し、この条件を充たさないときは、印画紙画素であると判定する。
(8)文字・網点領域に属すると判定された画素について、注目画素が、総和濃度繁雑度<(最大濃度差に文字・網点判定閾値を掛けた値)の条件を充たすとき、文字画素であると判定し、この条件を充たさないときは、網点画素であると判定する。
An existing region separation method can be used as the algorithm for separating the region pixels, and for example, a method described in Japanese Patent Application Laid-Open No. 2002-232232 can be used.
(1) The minimum density value and the maximum density value in an n × m (for example, 7 pixels × 15 pixels) pixel block including the target pixel are calculated.
(2) The maximum density difference is calculated using the calculated minimum density value and maximum density value.
(3) Calculate the total density busyness (for example, the sum of values calculated in the main scanning direction and the sub-scanning direction), which is the sum of absolute values of density differences between pixels adjacent to the target pixel.
(4) A comparison between the calculated maximum density difference and the maximum density difference threshold and a comparison between the calculated total density busyness and the total density busyness threshold are performed.
(5) When the maximum density difference <the maximum density difference threshold and the total density busyness <the total density busyness threshold, it is determined that the target pixel belongs to the background / printing paper region.
(6) When the above condition is not satisfied, it is determined that the target pixel belongs to the character / halftone dot region.
(7) For a pixel determined to belong to the background / printing paper area, when the target pixel satisfies the maximum density difference <background / printing paper determination threshold, it is determined to be a background candidate pixel, and this condition is not satisfied Is determined to be a photographic paper pixel.
(8) For a pixel determined to belong to the character / halftone dot region, when the pixel of interest satisfies the condition of the total density busyness <(the value obtained by multiplying the maximum density difference by the character / halftone determination threshold), the character pixel If this condition is not satisfied, it is determined that the pixel is a halftone dot pixel.

画素判定部21は、ステップS2のカラー画素判定工程において、画素が有彩であるか無彩であるかの判定を行う。   The pixel determination unit 21 determines whether the pixel is chromatic or achromatic in the color pixel determination step of step S2.

カラー画素判定のアルゴリズムは、既存のカラー画素判定方法(有彩無彩判定方法)を用いることができ、たとえば、以下に示すような、特開2005−286571号公報に記載の方法などを用いることができる。なお、以下の説明では、RGB信号を用いた際の処理例について説明するが、RGB信号を補色反転したCMY信号やRGB信号をCIE1976L信号(CIE: Commission International de l’Eclairage :国際照明委員会。L: 明度、a,b: 色度)に色空間変換して判定処理を行っても構わない。補色反転したCMY信号やCIE1976L信号を用いる際は、信号変換処理が行われる。そして、カラー画素判定された結果に基づいて、カラー複写処理を行うか、モノクロ複写を行うかの切り替えが行われる。 As the color pixel determination algorithm, an existing color pixel determination method (chromatic / achromatic determination method) can be used. For example, the method described in Japanese Patent Application Laid-Open No. 2005-286571 is used as shown below. Can do. In the following description, an example of processing when RGB signals are used will be described, but CMY signals and RGB signals obtained by performing complementary color inversion of RGB signals are converted into CIE1976L * a * b * signals (CIE: Commission International de l'Eclairage The International Lighting Commission.L * : Lightness, a * , b * : Chromaticity) may be converted into a color space and the judgment process may be performed. Signal conversion processing is performed when a CMY signal or a CIE 1976 L * a * b * signal with complementary colors inverted is used. Based on the result of the color pixel determination, switching between color copying processing and monochrome copying is performed.

(1)RGB信号に対して、注目画素を中心とするn×mの画素ブロック(たとえば3画素×3画素)において、R,G,Bの各色信号別に平均値を算出し、算出された各色信号の平均値の最大値と最小値より最大濃度値差分を求める。すなわちこの最大濃度値差分は、{MAX(R,G,B)−MIN(R,G,B)}と表すこともできる。   (1) For an RGB signal, an average value is calculated for each color signal of R, G, B in an n × m pixel block (for example, 3 pixels × 3 pixels) centered on the pixel of interest, and each calculated color The maximum density value difference is obtained from the maximum value and the minimum value of the average value of the signal. That is, this maximum density value difference can also be expressed as {MAX (R, G, B) −MIN (R, G, B)}.

(2)算出した最大濃度差分値と予め設定されている有彩画素判定閾値(たとえば、10)との比較を行い、最大濃度差分値が有彩画素判定閾値よりも大きければ、注目画素が有彩画素であると判定し、最大濃度差分値が有彩画素判定閾値よりも小さければ無彩画素であると判定する。   (2) The calculated maximum density difference value is compared with a preset chromatic pixel determination threshold value (for example, 10). If the maximum density difference value is larger than the chromatic pixel determination threshold value, the target pixel is present. It is determined that the pixel is a chromatic pixel, and if the maximum density difference value is smaller than the chromatic pixel determination threshold value, the pixel is determined to be an achromatic pixel.

上記の画素判定部21で判定される各画素については、プレスキャンを行ってもよく、ハードディスク等の記憶手段に一旦格納された画像データを用いて行っても良い。   Each pixel determined by the pixel determination unit 21 may be pre-scanned or may be performed using image data once stored in a storage unit such as a hard disk.

画素判定部21で判定された各画素(領域画素、有彩画素)については、ステップS3、ステップS4において、それぞれ、領域画素カウント部26、カラー画素カウント部28により当該画素として判定された画素の画素数がそれぞれカウントされる。当然ながら、ステップS3の領域画素カウントの工程は、ステップS1の領域画素判定の工程よりも後に行われ、ステップS4のカラー画素カウントの工程は、ステップS2のカラー画素判定工程の後に行われるけれども、ステップS1,S3の領域画素判定の工程および領域画素カウントの工程と、ステップS2,S4のカラー画素判定工程およびカラー画素カウントの工程とは、並行して行われる。   For each pixel (region pixel, chromatic pixel) determined by the pixel determination unit 21, the pixel determined as the pixel by the region pixel count unit 26 and the color pixel count unit 28 in step S3 and step S4, respectively. The number of pixels is counted. Of course, the area pixel counting process in step S3 is performed after the area pixel determination process in step S1, and the color pixel counting process in step S4 is performed after the color pixel determination process in step S2. The area pixel determination process and area pixel count process in steps S1 and S3 and the color pixel determination process and color pixel count process in steps S2 and S4 are performed in parallel.

ステップS3の領域画素カウントの工程およびステップS4のカラー画素カウントの工程の次には、ステップS5で全ての画素の判定処理が終了したかどうかを判断し、終了していなければ次の注目画素に移り、上記のステップS1〜S4の判定処理を繰り返す。   Next to the area pixel counting process in step S3 and the color pixel counting process in step S4, it is determined in step S5 whether or not all pixels have been determined. If not, the next pixel of interest is determined. Then, the determination process in steps S1 to S4 is repeated.

終了していれば、ステップS6で領域画素中の下地候補画素判定の工程に移行する。下地候補画素判定の工程では、各注目画素が下地候補画素であるか否かの判定を行う。注目画素が下地候補画素である場合には次のステップS7の下地画素ヒストグラム生成の工程に移行し、注目画素が下地候補画素でない場合には、ステップS8の下地判定工程に移行する。   If completed, the process proceeds to a background candidate pixel determination step in the region pixel in step S6. In the background candidate pixel determination step, it is determined whether each target pixel is a background candidate pixel. If the target pixel is a background candidate pixel, the process proceeds to the next background pixel histogram generation process in step S7. If the target pixel is not a background candidate pixel, the process proceeds to a background determination process in step S8.

ステップS7の下地画素ヒストグラム生成の工程では、下地候補画素と判定された注目画素について、下地候補画素のプレーン毎(信号毎)の平均値の濃度値の比較を行い、注目画素毎に、各色信号間で平均値の最小値を算出し、下地画素ヒストグラム生成部22で下地画素ヒストグラムを生成する。このときヒストグラム生成について対象となる範囲は、下地候補画素全体である。したがって、各下地候補画素における色信号毎の濃度値を(R,G,B)とすれば、この下地画素ヒストグラムは、全ての下地候補画素におけるMIN(R,G,B)の値の度数値を表すものである。このヒストグラムの濃度区分数はたとえば、濃度値の小さい方から第1濃度区分、第2濃度区分とし、濃度値の最も大きい区分を第16濃度区分とする16区分を設ける。ステップS7の下地画素ヒストグラム生成の工程の後には、ステップS8の下地判定工程に移行する。 In the background pixel histogram generation step of step S7, the density value of the average value for each plane (each signal) of the background candidate pixels is compared for the target pixel determined as the background candidate pixel, and each color signal is determined for each target pixel. The minimum value of the average value is calculated, and the background pixel histogram generation unit 22 generates the background pixel histogram. At this time, the target range for the histogram generation is the entire background candidate pixel. Accordingly, if the density value for each color signal in each background candidate pixel is (R 1 , G 1 , B 1 ), this background pixel histogram is MIN (R 1 , G 1 , B 1 ) in all the background candidate pixels. ) Represents a frequency value. The number of density sections of this histogram is, for example, 16 sections in which the first density section and the second density section are set in ascending order of the density value, and the section having the largest density value is the 16th density section. After the background pixel histogram generation process in step S7, the process proceeds to the background determination process in step S8.

図4は、本発明の第1実施形態において下地画素ヒストグラム生成部22によって生成されるヒストグラムの一例を示す図である。図4(a)には、下地が存在する場合のヒストグラムを示しており、図4(b)には、下地が存在しない場合のヒストグラムを示している。ステップS8の下地判定工程では、下地判定部24が下地の判定を行う。図4に示すヒストグラムにおいて、横軸は濃度区分を示す濃度値、縦軸が各濃度区分に属する最小値の頻度である度数値を示す。下地判定工程では、基本的に単色の画素からなる領域を下地であると判定する。   FIG. 4 is a diagram illustrating an example of a histogram generated by the base pixel histogram generation unit 22 in the first embodiment of the present invention. FIG. 4A shows a histogram when a background exists, and FIG. 4B shows a histogram when no background exists. In the background determination step in step S8, the background determination unit 24 determines the background. In the histogram shown in FIG. 4, the horizontal axis indicates the density value indicating the density category, and the vertical axis indicates the frequency value that is the frequency of the minimum value belonging to each density category. In the background determination step, it is basically determined that a region composed of monochrome pixels is the background.

下地は単色濃度の画素しか存在しないため、下地が存在する場合は、図4(a)に示すようにある限られた濃度区分群(たとえば1または2区分からなる濃度区分の集合)にのみ度数値が存在する。たとえば原稿画像データ全体が写真領域で構成される場合など、下地が存在しない場合は、下地候補画素として抽出された画素全体を対象にヒストグラムを生成しても、図4(b)に示すように、区分幅が拡がった濃度区分群が存在したり、または度数値が大きい濃度区分群が存在しない(図示しない)。   Since the background has only pixels of a single color density, when the background exists, it is only necessary for a limited density classification group (for example, a set of density classifications consisting of 1 or 2 classifications) as shown in FIG. There are numbers. For example, when the background is not present, such as when the entire document image data is composed of a photo area, as shown in FIG. 4B, even if a histogram is generated for all the pixels extracted as background candidate pixels. There are density category groups with a broader category width, or there are no density category groups with a large power value (not shown).

下地判定部24は、下地判定閾値Sg24よりも度数値が大きく、且つ、その濃度区分幅が下地判定区分幅閾値(たとえば3)よりも小さな濃度区分群が存在すれば下地と判定する。下地判定閾値Sg24は、出力用紙サイズをA4サイズと想定し、解像度を600dpi(dot per inch)とした場合、たとえば10000個に設定する。解像度が600dpiである場合には、A4サイズの出力用紙全体の画素数は、約3.5×10個となる。 The background determination unit 24 determines a background if there is a density classification group having a power value larger than the background determination threshold Sg24 and a density classification width smaller than the background determination classification width threshold (for example, 3). Assuming that the output paper size is A4 size and the resolution is 600 dpi (dot per inch), the background determination threshold Sg24 is set to, for example, 10,000. When the resolution is 600 dpi, the number of pixels of the entire A4 size output sheet is about 3.5 × 10 7 .

下地候補画素についてのヒストグラムを対象にステップS8の下地判定工程で下地画素であると判定された濃度区分群のうち、最も小さい濃度区分値を最小の下地画素濃度値Aとする。また下地の濃度区分群に属する度数値の合計を下地度数値とする。   Of the density classification groups determined to be background pixels in the background determination step in step S8 for the histogram of background candidate pixels, the smallest density section value is set as the minimum background pixel density value A. Further, the total of the numerical values belonging to the background density classification group is set as the background degree value.

なお、RGB信号を用いた場合、画素値が「0」に近い方が実際の濃度は高く(本実施の形態においては、「濃度値は小さくなる」と表現)、画素値が「255」に近い方が実際の濃度は低くなる(本実施の形態においては、「濃度値は大きくなる」と表現)。   When the RGB signal is used, the actual density is higher when the pixel value is closer to “0” (in this embodiment, expressed as “the density value is smaller”), and the pixel value is “255”. The closer the density is, the lower the actual density (in this embodiment, the expression “the density value becomes large”).

ステップS8の下地判定工程の次には、ステップS9の原稿種別判定の工程に移行し、原稿種別判定部27で、原稿種別の判定を行う。原稿種別の判別方法は、領域画素カウント部26でカウントされた領域画素数を、予め定められている下地領域、印画紙領域、網点領域および文字領域にそれぞれ対応する閾値と比較して原稿全体の種別を判定する。   After the background determination process in step S8, the process proceeds to a document type determination process in step S9, and the document type determination unit 27 determines the document type. The document type determination method is performed by comparing the number of area pixels counted by the area pixel counting unit 26 with predetermined threshold values corresponding to a background area, a photographic paper area, a halftone dot area, and a character area, respectively. The type of is determined.

たとえば、文字、網点、印画紙写真の順に検出精度が高いとすると、文字領域の画素の比率が全画素数の30%以上の場合には文字原稿であると判定し、網点領域の画素の比率が全画素数の20%以上の場合には網点原稿(印刷写真原稿)であると判定し、印画紙写真領域の画素の比率が全画素数の10%以上の場合には印画紙写真原稿であると判定する。また、文字領域の比率と網点領域の比率とが、それぞれ閾値以上であるときは、文字/網点原稿(文字印刷写真原稿)であると判定する。さらに文字領域の比率と印画紙写真領域の比率とが、それぞれ閾値以上であるときには、文字/写真原稿(文字印画紙写真原稿)であると判定する。   For example, assuming that the detection accuracy is higher in the order of characters, halftone dots, and photographic paper photographs, if the ratio of the pixels in the character area is 30% or more of the total number of pixels, it is determined as a character document, and the pixels in the halftone area If the ratio is 20% or more of the total number of pixels, it is determined to be a halftone original (printed photo original). If the ratio of pixels in the photographic paper photographic area is 10% or more of the total number of pixels, the photographic paper Judged to be a photo manuscript. If the ratio of the character area and the ratio of the halftone dot area are equal to or greater than the threshold value, respectively, it is determined that the character / halftone original (character-printed photo original) is present. Further, when the ratio of the character area and the ratio of the photographic paper photograph area are each equal to or greater than the threshold value, it is determined that the character / photo original (character photographic paper photo original).

ステップS9の原稿種別判定の工程の後には、ステップS10の下地除去に関する原稿判定の工程〜ステップS12の下地除去工程の各工程と、ステップS13のカラー原稿判定の工程とを並行して行う。   After the document type determination process in step S9, the document determination process related to background removal in step S10 to the background removal process in step S12 and the color document determination process in step S13 are performed in parallel.

ステップS10では、下地除去に関する原稿判定を行い、原稿種別判定部27で判定された原稿の種別が下地除去を行うべき原稿であるか否かの判定を行う。下地除去を行うべき原稿とは、文字原稿、印画紙領域を含まない原稿、文字/網点原稿(文字印刷写真原稿)で網点領域の比率が小さい原稿(例えば、網点領域の比率が原稿全体に対して40%以下の原稿)などである。この下地除去に関する原稿判定の工程で、下地除去を行うべき原稿であると判定された場合には、ステップS11の下地除去に関する下地判定の工程に移行し、下地除去を行うべき原稿でないと判定された場合には、後述するステップS14の有彩無彩に関する原稿判定の工程に移行する。   In step S10, document determination relating to background removal is performed, and it is determined whether or not the document type determined by the document type determination unit 27 is a document to be subjected to background removal. The original to be subjected to background removal is a text original, an original not including a photographic paper area, a text / halftone original (character-printed photo original), and an original having a small halftone dot ratio (for example, a halftone dot ratio is an original) 40% or less of the original). If it is determined in the document determination process regarding the background removal that the document is to be subjected to background removal, the process proceeds to the background determination process regarding the background removal in step S11, and it is determined that the document is not to be subjected to the background removal. If YES in step S14, the flow advances to a document determination step relating to chromatic and achromatic in step S14 described later.

ステップS11の下地除去に関する下地判定の工程では、下地除去判定部25によって、下地除去を行うべき下地領域があるか否かを判定する。下地画素ヒストグラム生成部22のヒストグラムにおいて求められた最小の下地画素濃度値Aが、予め定める下地濃度値以上である場合には、下地除去すべき下地領域があると判定し、最小の下地画素濃度値Aが、予め定める下地濃度値未満である場合には、下地領域が下地除去すべきでない領域であると判定する。この工程で下地除去すべき下地領域があると判定されたときには、ステップS12の下地除去工程に移行し、下地領域が下地除去すべきでないと判定されたときには、後述するステップS14の有彩無彩に関する原稿判定の工程に移行する。   In the background determination step regarding the background removal in step S11, the background removal determination unit 25 determines whether or not there is a background area to be subjected to background removal. When the minimum background pixel density value A obtained in the histogram of the background pixel histogram generation unit 22 is equal to or higher than a predetermined background density value, it is determined that there is a background area to be removed, and the minimum background pixel density is determined. When the value A is less than a predetermined background density value, it is determined that the background area is an area that should not be removed. If it is determined in this step that there is a background area to be removed, the process proceeds to a background removal process in step S12. If it is determined that the background area is not to be removed, a chromatic achromatic color in step S14 to be described later. The process proceeds to the original determination process.

ステップS12における下地の除去処理としては、既存の除去処理を用いることができ、たとえば、特開2000−354167号公報に記載の方法を用いることができる。たとえば、下地であると判定された場合、下地濃度値に対応する補正量テーブルを選択し、下地除去部29によって下地除去処理を行う。下地除去工程の後には、ステップ14の有彩無彩に関する原稿判定の工程に移行する。   As the background removal process in step S12, an existing removal process can be used. For example, a method described in JP 2000-354167 A can be used. For example, when it is determined that the background is a background, a correction amount table corresponding to the background density value is selected, and the background removal unit 29 performs background removal processing. After the background removal process, the process proceeds to a document determination process for chromatic and achromatic in step 14.

図5は、本発明の第1実施形態におけるカラー原稿判定の工程における各段階を表すフローチャートである。ステップS13のカラー原稿判定の工程では、カラー判定部30がカラー画素カウント部28にてカウントされたカウント数を用いてカラー原稿であるか、カラーでない原稿であるかの判定を行う。この判定結果は、カラー判定信号として、出力判定部31に対して出力される。   FIG. 5 is a flowchart showing each stage in the color original determination process in the first embodiment of the present invention. In the color document determination process in step S13, the color determination unit 30 determines whether the document is a color document or a non-color document using the count number counted by the color pixel count unit 28. This determination result is output to the output determination unit 31 as a color determination signal.

まずステップS101の注目画素判定の段階において、注目画素が有彩画素であるか否かを判定する。この注目画素判定の段階において、注目画素がステップS2において有彩画素と判定された画素であるのか否かを判定し、注目画素が有彩画素である場合には、ステップS102の有彩画素ヒストグラム生成の段階に移行し、注目画素が無彩画素である場合には、ステップS103の画素に対する処理終了判断の段階に移行する。   First, in the target pixel determination stage in step S101, it is determined whether or not the target pixel is a chromatic pixel. In this target pixel determination stage, it is determined whether or not the target pixel is a pixel determined to be a chromatic pixel in step S2. If the target pixel is a chromatic pixel, the chromatic pixel histogram in step S102 is determined. When the process proceeds to the generation stage and the target pixel is an achromatic pixel, the process proceeds to the process end determination stage for the pixel in step S103.

ステップS102の有彩画素ヒストグラム生成の段階では、有彩画素と判定された注目画素について、画素判定部21にて算出された各色信号別の平均値の最小値を用いて、有彩画素ヒストグラムを生成する。このヒストグラム生成は、有彩画素ヒストグラム生成部23によって行われ、このときのヒストグラム生成の対象となる範囲は、有彩画素全体である。   At the stage of generating the chromatic pixel histogram in step S102, for the target pixel determined to be a chromatic pixel, the chromatic pixel histogram is calculated using the minimum average value for each color signal calculated by the pixel determination unit 21. Generate. This histogram generation is performed by the chromatic pixel histogram generation unit 23, and the range to be subjected to histogram generation at this time is the entire chromatic pixel.

したがって、各有彩画素における色信号毎の濃度値を(R,G,B)とすれば、この有彩画素ヒストグラムは、全ての有彩画素におけるMIN(R,G,B)の値の度数値を表すものである。ヒストグラム濃度区分数は、たとえば濃度値の小さい方から第1濃度区分、第2濃度区分とし、濃度値の最も大きい区分を第16濃度区分とする16区分を設ける。第1実施形態では、有彩画素についてのヒストグラムにおける濃度区分群のうち、最も小さい濃度区分値を最小の有彩画素濃度値Bとする。ステップS102の有彩画素ヒストグラム生成の段階の後には、ステップS103の画素に対する処理終了判断の段階に移行する。 Therefore, if the density value for each color signal in each chromatic pixel is (R 2 , G 2 , B 2 ), this chromatic pixel histogram is MIN (R 2 , G 2 , B in all chromatic pixels). 2 ) represents a frequency value. As the number of histogram density categories, for example, there are 16 categories in which the first density category and the second density category are set in ascending order of density value, and the highest density value category is the 16th density category. In the first embodiment, the smallest density section value among the density section groups in the histogram for chromatic pixels is set as the minimum chromatic pixel density value B. After the stage of generating the chromatic pixel histogram in step S102, the process proceeds to the process end determination stage for the pixel in step S103.

ステップS103では、原稿画像データに含まれる全ての画素に対して処理が終了したか否かの判断を行い、終了していない場合には、ステップS101からの処理を繰返し、終了している場合には、ステップ104のカラー画素数判定の段階に移行する。ステップS104のカラー画素数判定の段階では、カラー画素カウント部28でカウントされたカラー画素カウント数が予め定められているカラー判定カウント閾値以上であるか否かの比較を行う。この比較は、カラー原稿判定部30によって行う。   In step S103, it is determined whether or not the processing has been completed for all the pixels included in the document image data. If not, the processing from step S101 is repeated. Shifts to the step of determining the number of color pixels in step 104. In the step of determining the number of color pixels in step S104, a comparison is made as to whether or not the color pixel count number counted by the color pixel count unit 28 is greater than or equal to a predetermined color determination count threshold value. This comparison is performed by the color document determination unit 30.

この比較においてカラー判定カウント閾値以上であるときには、原稿がカラー原稿であると判定され、ステップS105においてカラー原稿であるとのフラグを付す。カラー画素カウント数がカラー判定カウント閾値未満であるときには、原稿がモノクロ原稿であると判定され、ステップS106においてモノクロ原稿であるとのフラグを付す。   In this comparison, when it is equal to or greater than the color determination count threshold, it is determined that the document is a color document, and a flag indicating that it is a color document is attached in step S105. If the color pixel count is less than the color determination count threshold, it is determined that the document is a monochrome document, and a flag indicating that the document is a monochrome document is attached in step S106.

ステップS104のカラー画素数判定に用いられる閾値については、予め原稿サイズごとに閾値を用意しておいてもよいし、基準となる原稿サイズを予め設定しておき、実際の原稿サイズに対する割合から、基準となる原稿サイズに依存する閾値(再設定閾値)を再計算して用いてもよい。ステップS105またはステップS106においてカラー原稿またはモノクロ原稿としてのフラグが付された後、カラー原稿判定の工程は終了し、ステップS14の有彩無彩に関する原稿判定の工程に移行する。   As for the threshold value used for the determination of the number of color pixels in step S104, a threshold value may be prepared for each document size in advance, or a reference document size is set in advance, and the ratio to the actual document size is A threshold value (reset threshold value) depending on the reference document size may be recalculated and used. After flagging as a color document or a monochrome document in step S105 or step S106, the color document determination process ends, and the process proceeds to a document determination process for chromatic and achromatic in step S14.

ステップS14では、出力判定部31によって有彩無彩に関して原稿判定を行い、カラー原稿でない場合には、ステップS18に移行し、モノクロ出力すべき原稿であるとのフラグを付す。ステップS14における原稿判定で、カラー原稿であると判定された場合には、ステップS15の下地除去の必要性判定の工程に移行する。   In step S14, the output determination unit 31 performs document determination regarding chromatic and achromatic colors, and if the document is not a color document, the process proceeds to step S18 to add a flag indicating that the document is to be output in monochrome. If it is determined in step S14 that the document is a color document, the process proceeds to step S15 where the background removal necessity is determined.

ステップS15では、下地除去判定部25の判定結果に基づいて、下地除去されるべきと判定された原稿であるか否かの判定を出力判定部31が行う。下地除去判定部25において下地除去すべきでないと判断された原稿(印刷写真原稿、印画紙写真原稿、文字が含まれているが写真がメインの原稿)については、ステップS17においてカラー出力すべき原稿とのフラグを付す。下地除去判定部25において下地除去すべきと判断された原稿(文字原稿、写真が含まれるが文字がメインの原稿)については、ステップS16の濃度値比較工程に移行する。   In step S15, the output determination unit 31 determines whether the document is determined to be background-removed based on the determination result of the background removal determination unit 25. For the original (printed photographic original, photographic paper photographic original, or original that includes characters but includes a photograph) that is determined not to be background-removed by the background removal determining unit 25, the original to be color-outputted in step S17 With the flag. For the document (character document, photo is included but the document is main in the character) determined to be background removal by the background removal determination unit 25, the process proceeds to the density value comparison process in step S16.

ステップS16の濃度値比較工程では、下地画素ヒストグラム生成部22が生成したヒストグラムに基づく最小の下地画素濃度値Aと、有彩画素ヒストグラム生成部23が生成したヒストグラムに基づく最小の有彩画素濃度値Bとの比較を行う。この比較は、出力判定部31によって行う。この比較において、最小の有彩画素濃度値Bが最小の下地画素濃度値A以上の値である場合には、ステップS18においてモノクロ出力すべき原稿としてのフラグを付し、最小の有彩画素濃度値Bが最小の下地画素濃度値A未満の値であれば、カラー出力すべき原稿としてのフラグを付す。   In the density value comparison step in step S16, the minimum background pixel density value A based on the histogram generated by the background pixel histogram generation unit 22 and the minimum chromatic pixel density value based on the histogram generated by the chromatic pixel histogram generation unit 23 are displayed. Comparison with B is performed. This comparison is performed by the output determination unit 31. In this comparison, if the minimum chromatic pixel density value B is equal to or greater than the minimum background pixel density value A, a flag as a document to be monochrome output is attached in step S18, and the minimum chromatic pixel density is set. If the value B is less than the minimum background pixel density value A, a flag as a document to be color output is attached.

最小の有彩画素濃度値Bが最小の下地画素濃度値A以上の値であれば、最小の下地画素濃度値Aよりも濃度値が小さい有彩画素が存在しないことになるので、最小の下地画素濃度値A以上の画素について下地除去を行えば、下地除去処理によってカラー領域も除去されることになる。したがって、下地除去処理の後にカラー出力しても、有彩画素に基づく色味は除去されるので、カラー出力することの必要性がない。したがって最小の下地画素濃度値Aよりも濃度値が小さい有彩画素が存在しない場合には、モノクロ出力する。   If the minimum chromatic pixel density value B is greater than or equal to the minimum background pixel density value A, there is no chromatic pixel having a density value lower than the minimum background pixel density value A. If background removal is performed for pixels having a pixel density value A or higher, the color area is also removed by the background removal processing. Therefore, even if the color is output after the background removal process, the color based on the chromatic pixels is removed, so there is no need to output the color. Therefore, when there is no chromatic pixel whose density value is smaller than the minimum background pixel density value A, monochrome output is performed.

これに対し、最小の有彩画素濃度値Bが最小の下地画素濃度値A未満の値であれば、下地除去処理が施されてもカラー領域が残るので、カラー出力するべき原稿と判定する。ステップS17,S18では、カラー出力すべき原稿、またはモノクロ出力すべき原稿としてフラグを付すとともに、それぞれのフラグに応じた出力判定信号を出力する。   On the other hand, if the minimum chromatic pixel density value B is less than the minimum background pixel density value A, the color area remains even if the background removal process is performed, so that the document is determined to be color output. In steps S17 and S18, a flag is attached as a document to be output in color or a document to be output in monochrome, and an output determination signal corresponding to each flag is output.

図2に示す原稿属性自動判別部13のうち、原稿属性判別制御部を除く各構成部分は、原稿属性判別制御部によって制御され、図3に示した原稿属性自動判別部13による判別処理、および図5に示したカラー原稿判定の工程の各段階は、原稿属性判別制御部の制御によって実行される。   In the automatic document attribute determination unit 13 shown in FIG. 2, each component except the original attribute determination control unit is controlled by the original attribute determination control unit, and the determination process by the automatic document attribute determination unit 13 shown in FIG. Each stage of the color document determination process shown in FIG. 5 is executed under the control of the document attribute determination control unit.

また、下地画素の判定は、たとえば、特開2000−354167号公報に記載の方法を用いることができる。この方法では、まず入力画像データより、G信号を抽出し、たとえば256段階の濃度を16分割してヒストグラムを作成する。下地と判断される濃度値の最小値(第1の閾値)以上であり、下地と判断される画素数の最小値(第2の閾値)以上の領域、すなわち下地と考えられる領域において、濃度値の小さい方から探索し、第1の閾値以上の濃度区分(階級値)を下地として抽出する。   Further, for example, the method described in Japanese Patent Application Laid-Open No. 2000-354167 can be used to determine the background pixel. In this method, first, a G signal is extracted from input image data, and, for example, a 256-stage density is divided into 16 to create a histogram. The density value in an area that is equal to or greater than the minimum value (first threshold) of the density value determined as the background and is equal to or greater than the minimum value (second threshold) of the number of pixels determined as the background, that is, an area that is considered to be the background. The density division (class value) equal to or higher than the first threshold is extracted as the background.

なお、G信号ではなく、以下のような変換式に基づいてRGB成分から輝度成分を算出し、算出した輝度信号を用いてもよい。
=0.30R+0.59G+0.11B
ここで、Yは輝度成分であり、R,G,Bは、各色成分を示す。
Note that, instead of the G signal, the luminance component may be calculated from the RGB components based on the following conversion formula, and the calculated luminance signal may be used.
Y j = 0.30R j + 0.59G j + 0.11B j
Here, Y j is a luminance component, and R j , G j , and B j indicate each color component.

図6は、本発明の第1実施形態の下地除去処理において、変換に用いる入力濃度値と出力濃度値との対応関係を表す図である。図6において横軸は、入力画像データの濃度値を表し、縦軸は、出力画像データの濃度値を表す。入力画像データから出力画像データを得るときに、仮に変換を行わない場合には、入力される濃度値と出力される濃度値とは同じ値となり、入力値と出力値との関係は、図6に二点鎖線で表す直線となる。   FIG. 6 is a diagram illustrating a correspondence relationship between an input density value and an output density value used for conversion in the background removal processing according to the first embodiment of the present invention. In FIG. 6, the horizontal axis represents the density value of the input image data, and the vertical axis represents the density value of the output image data. When the output image data is obtained from the input image data, if conversion is not performed, the input density value and the output density value are the same, and the relationship between the input value and the output value is shown in FIG. Is a straight line represented by a two-dot chain line.

下地除去を行うときには、最小の下地画素濃度値A以上の有彩画素に対して出力の濃度値をRGB全ての色信号において最大値の255に設定する。最小の下地画素濃度値A未満の有彩画素に対しては、最小の下地画素濃度値Aに応じて複数の曲線を用意しておき、この曲線に応じた変換を行う。最小の下地画素濃度値Aに応じた複数の曲線は、最小の下地画素濃度値Aに依存する関数として定めてもよいし、また最小の下地画素濃度値Aに応じて予め定める表を用意し、その表に従う変換とすることも可能である。   When performing background removal, the output density value is set to the maximum value of 255 for all RGB color signals for chromatic pixels having a minimum background pixel density value A or higher. For a chromatic pixel having a minimum background pixel density value A less than that, a plurality of curves are prepared according to the minimum background pixel density value A, and conversion is performed according to the curve. A plurality of curves corresponding to the minimum background pixel density value A may be determined as a function depending on the minimum background pixel density value A, or a table determined in advance according to the minimum background pixel density value A is prepared. The conversion according to the table is also possible.

出力判定部31によってモノクロ出力すべきとの出力判定信号が出力された場合には、色補正部16によって無彩化処理、すなわちモノクロ化が行われる。無彩化が行われる場合には、色補正部16は、画像データを明度のみの情報に変換するか、またはCMYKの出力信号をすべてKとして出力する。これは、CMYKのうちCMYをそれぞれ零として出力し、Kのみによって画像データを表すことで実現してもよい。いずれの場合においても、カラー画像ではなくK(黒)のみのトナーを用いる画像データとして出力する。これによって、記録紙などの記録媒体に画像を形成する場合に、CMYを重ねることで黒を実現したり、CMYに対応して空回りさせKのみを定着させたりする処理を避ける。したがって、トナーおよび時間などを省略し、高効率な画像形成を実現することができる。   When the output determination unit 31 outputs an output determination signal indicating that monochrome output is to be performed, the color correction unit 16 performs achromatic processing, that is, monochrome processing. When achromatization is performed, the color correction unit 16 converts the image data into information of brightness only, or outputs all CMYK output signals as K. This may be realized by outputting CMY of CMYK as zero and representing the image data only by K. In either case, the image data is output as image data using only K (black) toner instead of a color image. As a result, when forming an image on a recording medium such as recording paper, a process of realizing black by superimposing CMY or idling corresponding to CMY and fixing only K is avoided. Therefore, toner and time can be omitted, and highly efficient image formation can be realized.

第1実施形態によれば、出力判定部31は、下地画素の濃度値に基づいて得られる最小の下地画素濃度値Aと有彩画素の濃度値とを比較し、有彩画素の濃度値が最小の下地画素濃度値A以上である場合には、モノクロ出力すべきと判定する。また出力判定部31は、最小の下地画素濃度値A未満の有彩画素の濃度値が存在する場合には、カラー出力すべきと判定する。これによって、下地除去部29によって有彩画素の全てが下地除去される場合に、カラー出力されることを防止することができる。   According to the first embodiment, the output determination unit 31 compares the minimum background pixel density value A obtained based on the background pixel density value with the density value of the chromatic pixel, and the density value of the chromatic pixel is determined. When the density is equal to or higher than the minimum background pixel density value A, it is determined that monochrome output should be performed. The output determination unit 31 determines that color output should be performed when there is a density value of a chromatic pixel less than the minimum background pixel density value A. As a result, when all of the chromatic pixels are subjected to background removal by the background removal unit 29, color output can be prevented.

有彩画素の全てが下地除去される場合には、カラー出力しても、有彩画素に基づく色味は除去されるので、カラー出力することの必要性がない。したがって、カラー出力する必要性がない場合にモノクロ出力することによって、原稿が持つ文字情報を維持したまま、カラー出力に伴うトナーおよび時間などを省略することができる。   When all of the chromatic pixels are removed, even if the color is output, the color based on the chromatic pixels is removed, so there is no need for color output. Therefore, when there is no need for color output, monochrome output can be used, and toner and time associated with color output can be omitted while maintaining character information of the original.

また最小の下地画素濃度値Aと有彩画素の濃度値とを比較するので、彩度の情報に変換された情報に基づいてカラー出力すべきかモノクロ出力すべきかを判定する場合に比べて、高い精度で判定することができる。これによってユーザによる原稿属性の入力作業を省略しても、カラー出力すべきかモノクロ出力すべきかを高い精度で自動的に判定することができる。また有彩画素の濃度値を、最小の下地画素濃度値Aを基準に判定するので、カラー出力すべきかモノクロ出力すべきかを判定する計算を単純化することができ、この判定を行う部分の回路規模を小さくすることができる。   Further, since the minimum background pixel density value A and the density value of the chromatic pixel are compared, it is higher than when determining whether to perform color output or monochrome output based on the information converted into the saturation information. It can be determined with accuracy. As a result, even if the user does not need to input document attributes, it can be automatically determined with high accuracy whether color output or monochrome output is to be performed. Further, since the density value of the chromatic pixel is determined based on the minimum background pixel density value A, the calculation for determining whether to perform color output or monochrome output can be simplified. The scale can be reduced.

また第1実施形態によれば、画像処理装置3は、色補正部16をさらに含んで構成される。色補正部16は、出力判定部31がモノクロ出力すべきと判定した場合に、無彩化された出力画像データを原稿画像データに基づいて生成する。これによって、カラー出力する必要性がない場合にモノクロ出力することができる。したがって、カラー出力に伴うトナーおよび時間などを省略することができる。   Further, according to the first embodiment, the image processing device 3 is configured to further include the color correction unit 16. When the output determination unit 31 determines that monochrome output should be performed, the color correction unit 16 generates achromatic output image data based on the document image data. Thus, monochrome output can be performed when there is no need for color output. Therefore, the toner and time associated with color output can be omitted.

また第1実施形態によれば、出力判定部31は、有彩画素の濃度値に基づいて得られる最小の有彩画素濃度値Bを、最小の下地画素濃度値Aと比較し、最小の有彩画素濃度値Bが最小の下地画素濃度値A以上である場合に、モノクロ出力すべきと判定する。これによって、原稿画像データが、下地除去される場合においても、下地除去によって色味が除去されることのない有彩画素があるのか否かを、簡単な処理によって高い精度で判定することができる。   In addition, according to the first embodiment, the output determination unit 31 compares the minimum chromatic pixel density value B obtained based on the chromatic pixel density value with the minimum background pixel density value A, and determines the minimum When the chromatic pixel density value B is equal to or higher than the minimum background pixel density value A, it is determined that monochrome output should be performed. As a result, even when the background of the document image data is removed, it is possible to determine with high accuracy by simple processing whether there is a chromatic pixel whose color is not removed by the background removal. .

また第1実施形態によれば、画像処理装置3は、下地画素ヒストグラム生成部22と、有彩画素ヒストグラム生成部23とをさらに含んで構成される。下地画素ヒストグラム生成部22は、原稿画像データにおける下地画素の濃度値についてヒストグラムを作成する。有彩画素ヒストグラム生成部23は、原稿画像データにおける有彩画素の濃度値についてヒストグラムを作成する。出力判定部31は、下地画素のヒストグラムのうち最小の下地画素濃度値Aと、有彩画素のヒストグラムのうち最小の有彩画素濃度値Bとを比較し、最小の有彩画素濃度値Bが最小の下地画素濃度値A以上である場合には、モノクロ出力すべきと判定する。また出力判定部31は、最小の有彩画素濃度値Bが、下地画素濃度値A未満である場合には、カラー出力すべきと判定する。これによって、出力判定部31は、単一の値と単一の値との比較によって判定することができるので、簡単な処理によって高い精度で判定することができる。   Further, according to the first embodiment, the image processing device 3 is configured to further include the background pixel histogram generation unit 22 and the chromatic pixel histogram generation unit 23. The background pixel histogram generation unit 22 creates a histogram for the density values of the background pixels in the document image data. The chromatic pixel histogram generator 23 creates a histogram for the density values of chromatic pixels in the document image data. The output determination unit 31 compares the minimum background pixel density value A in the background pixel histogram with the minimum chromatic pixel density value B in the chromatic pixel histogram, and the minimum chromatic pixel density value B is determined. When the density is equal to or higher than the minimum background pixel density value A, it is determined that monochrome output should be performed. Further, when the minimum chromatic pixel density value B is less than the background pixel density value A, the output determination unit 31 determines that color output should be performed. As a result, the output determination unit 31 can determine by comparing a single value with a single value, and therefore can determine with high accuracy by simple processing.

また第1実施形態によれば、画像形成装置1は、画像処理装置3を備え、出力判定部31の判定結果に応じてカラー出力またはモノクロ出力する。これによって、ユーザによる原稿属性の入力作業を省略しても、カラー出力すべきかを高い精度で自動的に判定し、画像形成を行うことのできる画像形成装置1を実現することができる。またカラー出力すべきかモノクロ出力すべきかを判定する計算を単純化することができ、この判定を行う部分の回路規模を小さくすることができる。   Further, according to the first embodiment, the image forming apparatus 1 includes the image processing device 3 and performs color output or monochrome output according to the determination result of the output determination unit 31. Thus, it is possible to realize the image forming apparatus 1 that can automatically determine whether color output should be performed with high accuracy and perform image formation even if the user does not need to input document attributes. In addition, the calculation for determining whether to perform color output or monochrome output can be simplified, and the circuit scale of the portion for performing this determination can be reduced.

また第1実施形態によれば、画像処理方法における濃度値比較工程では、下地画素の濃度値と、有彩画素の濃度値とを比較し、有彩画素の濃度値が下地画素の濃度値以上である場合には、モノクロ出力すべきと判定する。また濃度値比較工程では、下地画素の濃度値未満の有彩画素の濃度が存在する場合に、カラー出力すべきと判定する。これによって、ユーザによる原稿属性の入力作業を省略しても、カラー出力すべきかを高い精度で自動的に判定することのできる画像処理方法を提供することができる。またカラー出力すべきかモノクロ出力すべきかを判定する計算を単純化することができる。   According to the first embodiment, in the density value comparison step in the image processing method, the density value of the background pixel is compared with the density value of the chromatic pixel, and the density value of the chromatic pixel is equal to or higher than the density value of the background pixel. Is determined to be monochrome output. Further, in the density value comparison step, when there is a density of a chromatic pixel less than the density value of the background pixel, it is determined that color output should be performed. Thus, it is possible to provide an image processing method that can automatically determine whether or not to output a color with high accuracy even if the user does not input an original attribute. Further, the calculation for determining whether to output in color or monochrome can be simplified.

また第1実施形態によれば、画像処理プログラムは、コンピュータを、前記画像処理装置3として機能させる。これによって、画像処理装置3を、コンピュータによって実現することができる。   According to the first embodiment, the image processing program causes a computer to function as the image processing device 3. As a result, the image processing apparatus 3 can be realized by a computer.

また第1実施形態によれば、記録媒体は、画像処理プログラムが、コンピュータ読取り可能に記録される。画像処理プログラムは、コンピュータを、画像処理装置3として機能させる。これによって、画像処理プログラムを、コンピュータ読取り可能な、たとえばROMなどの記録媒体によって提供することができる。   According to the first embodiment, the image processing program is recorded on the recording medium so as to be readable by a computer. The image processing program causes the computer to function as the image processing device 3. Thus, the image processing program can be provided by a computer-readable recording medium such as a ROM.

(第2実施形態)
図7は、本発明の第2実施形態である画像読取装置50の構成を示すブロック図である。画像読取装置50は、たとえばフラットベッドスキャナなどで実現される。
(Second Embodiment)
FIG. 7 is a block diagram showing a configuration of an image reading apparatus 50 according to the second embodiment of the present invention. The image reading device 50 is realized by, for example, a flat bed scanner.

図7に示すように、画像読取装置50は、カラー画像入力装置2と画像処理装置51とで構成される。画像処理装置51は、A/D変換部11、シェーディング補正部12、原稿属性自動判別部13とから構成されている。図1に示した第1実施形態と同じ動作を行う部位については、同じ参照符号を付している。   As shown in FIG. 7, the image reading device 50 includes a color image input device 2 and an image processing device 51. The image processing apparatus 51 includes an A / D conversion unit 11, a shading correction unit 12, and a document attribute automatic determination unit 13. Parts that perform the same operations as those in the first embodiment shown in FIG.

カラー画像入力装置2は、たとえばCCDを備えたスキャナ部より構成され、原稿からの反射光像を、RGB(R:赤・G:緑・B:青)のアナログ信号としてCCDにて読み取って、画像処理装置51に入力するものである。カラー画像入力装置2にて読み取られたアナログ信号は、画像処理装置51内を、A/D変換部11、シェーディング補正部12、原稿属性自動判別部13の順で送られる。   The color image input device 2 is composed of, for example, a scanner unit provided with a CCD, and reads a reflected light image from an original as an analog signal of RGB (R: red, G: green, B: blue) by the CCD. This is input to the image processing apparatus 51. The analog signal read by the color image input device 2 is sent through the image processing device 51 in the order of the A / D conversion unit 11, the shading correction unit 12, and the document attribute automatic determination unit 13.

A/D変換部11は、RGBのアナログ信号をデジタル信号に変換するもので、シェーディング補正部12は、A/D変換部11より送られてきたデジタルのRGB信号に対して、カラー画像入力装置2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すものである。また、シェーディング補正部12ではカラーバランスの調整を行う。また、シェーディング補正部12では、RGBの反射率信号を濃度値信号に変換する。   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. Further, the shading correction unit 12 converts the RGB reflectance signal into a density value signal.

原稿属性自動判別部13では、シェーディング補正部12にて各種の歪みが取り除かれカラーバランスの調整がなされたRGB信号(RGBの反射率信号)を濃度値信号など画像処理装置51に採用されている画像処理システムの扱い易い信号に変換され、文字原稿であるか、印刷写真原稿であるか、あるいは、文字と印刷写真が混在した文字印刷写真原稿であるか等の原稿種別の判別(原稿種別判定) 、下地除去処理を行うべき原稿であるか、するべきでない原稿であるかの判別(下地判定)、原稿がカラー複写するべき原稿であるか、するべきでない原稿であるかの判別(カラー判定)が行われる。画像読取装置50から出力された画像データおよび原稿属性判別信号は、ネットワークを介してプリンタや複合機に、あるいは、コンピュータに送信される。   In the document attribute automatic 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 image processing device 51 such as a density value signal. It is converted into a signal that can be easily handled by the image processing system, and it is determined whether the document type is a character document, a printed photo document, or a character printed photo document in which characters and a printed photo are mixed (document type determination). ) Determining whether the document should be subjected to background removal processing or not (background determination), and determining whether the document is a document to be color-copied or not (color determination) ) Is performed. The image data and document attribute determination signal output from the image reading device 50 are transmitted to a printer, a multifunction peripheral, or a computer via a network.

(第3実施形態)
また本発明は、第3実施形態として、コンピュータに実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体に、上記した原稿属性の判別を行う画像処理プログラムを記録するものとすることもできる。
(Third embodiment)
In the third embodiment, the image processing program for determining the document attribute described above may be recorded on a computer-readable recording medium in which a program to be executed by a computer is recorded.

この結果、原稿属性の判別を行う画像処理を実行するプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録した記録媒体を持ち運び自在に提供することができる。   As a result, a recording medium on which program codes (execution format program, intermediate code program, source program) for executing image processing for determining document attributes are recorded can be provided in a portable manner.

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

いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であっても良いし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   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 may be downloaded to a program storage area (not shown) and 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. Optical discs, card systems such as IC cards (including memory cards) / optical cards, mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable)
Programmable Read Only Memory) or a medium that carries a fixed program code including a semiconductor memory such as a flash ROM may be used.

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

コンピュータシステムは、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラなどの画像入力装置、所定のプログラムコードがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示する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 code, and a CRT that displays the processing results of the computer. An image display device such as a display and 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 階調再現処理部
21 画素判定部
22 下地画素ヒストグラム生成部
23 有彩画素ヒストグラム生成部
24 下地判定部
25 下地除去判定部
26 領域画素カウント部
27 原稿種別判定部
28 カラー画素カウント部
29 下地除去部
30 カラー判定部
31 出力判定部
40,51 画像処理装置
50 画像読取装置
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 Color image input device 3 Image processing apparatus 4 Color image output device 5 Operation panel 11 A / D (analog / digital) conversion part 12 Shading correction part 13 Document attribute automatic discrimination part 14 Input gradation correction part 15 Area | region Separation processing unit 16 Color correction unit 17 Black generation under color removal unit 18 Spatial filter processing unit 19 Output tone correction unit 20 Tone reproduction processing unit 21 Pixel determination unit 22 Base pixel histogram generation unit 23 Chromatic pixel histogram generation unit 24 Background Determination unit 25 Background removal determination unit 26 Area pixel count unit 27 Document type determination unit 28 Color pixel count unit 29 Background removal unit 30 Color determination unit 31 Output determination unit 40, 51 Image processing device 50 Image reading device

Claims (9)

原稿に基づく原稿画像データに含まれる複数の画素のうち下地画素を判定する下地判定部と、
前記原稿画像データに含まれる有彩画素を判定する画素判定部と、
前記下地判定部における下地判定結果に基づいて下地除去を行う下地除去部と、
前記原稿画像データに基づく出力画像データを出力するにあたって、カラー出力するかモノクロ出力するかを判定する出力判定部であって、前記下地画素の濃度値に基づいて得られる最小の下地画素濃度値と、前記有彩画素の濃度値とを比較し、前記有彩画素の濃度値が前記最小の下地画素濃度値以上である場合には、モノクロ出力すべきと判定する出力判定部とを含むことを特徴とする画像処理装置。
A background determination unit that determines a background pixel among a plurality of pixels included in document image data based on an original;
A pixel determination unit for determining chromatic pixels included in the document image data;
A background removal unit that performs background removal based on the background determination result in the background determination unit;
An output determination unit that determines whether to output color or monochrome when outputting output image data based on the document image data, and a minimum background pixel density value obtained based on the density value of the background pixel An output determination unit that compares the density value of the chromatic pixel and determines that monochrome output should be performed when the density value of the chromatic pixel is equal to or greater than the minimum background pixel density value. A featured image processing apparatus.
前記出力判定部が、モノクロ出力すべきと判定した場合に、前記原稿画像データに基づいて、無彩化された出力画像データを生成する色補正部をさらに含むことを特徴とする請求項1に記載の画像処理装置。   2. The color correction unit according to claim 1, further comprising a color correction unit that generates achromatic output image data based on the document image data when the output determination unit determines that monochrome output should be performed. The image processing apparatus described. 前記出力判定部は、前記有彩画素の濃度値に基づいて得られる最小の有彩画素濃度値を、前記最小の下地画素濃度値と比較し、前記最小の有彩画素濃度値が前記最小の下地画素濃度値以上である場合に、モノクロ出力すべきと判定することを特徴とする請求項1または2に記載の画像処理装置。   The output determination unit compares the minimum chromatic pixel density value obtained based on the density value of the chromatic pixel with the minimum background pixel density value, and the minimum chromatic pixel density value is the minimum value. The image processing apparatus according to claim 1, wherein when the density is equal to or higher than the background pixel density value, it is determined that monochrome output should be performed. 前記原稿画像データにおける前記下地画素の濃度値についてヒストグラムを作成する下地画素ヒストグラム生成部と、
前記原稿画像データにおける前記有彩画素の濃度値についてヒストグラムを作成する有彩画素ヒストグラム生成部とをさらに含み、
前記出力判定部は、前記下地画素のヒストグラムのうち最小の下地画素濃度値と、前記有彩画素のヒストグラムのうち最小の有彩画素濃度値とを比較し、最小の有彩画素濃度値が最小の下地画素濃度値以上である場合には、モノクロ出力すべきと判定することを特徴とする請求項1〜3のいずれか1つに記載の画像処理装置。
A background pixel histogram generation unit that creates a histogram of the density values of the background pixels in the document image data;
A chromatic pixel histogram generation unit that creates a histogram for the density values of the chromatic pixels in the document image data;
The output determination unit compares the minimum background pixel density value in the background pixel histogram with the minimum chromatic pixel density value in the chromatic pixel histogram, and the minimum chromatic pixel density value is the minimum. 4. The image processing apparatus according to claim 1, wherein the image processing apparatus determines that monochrome output is to be performed when the density is equal to or higher than the background pixel density value.
前記下地画素ヒストグラム生成部は、前記各下地画素について、前記原稿画像データの信号別の下地画素の最小の濃度値を、前記各下地画素の濃度値としてヒストグラムを作成し、
前記有彩画素ヒストグラム生成部は、前記各有彩画素について、前記原稿画像データの信号別の有彩画素の最小の濃度値を、前記各有彩画素の濃度値としてヒストグラムを作成することを特徴とする請求項4に記載の画像処理装置。
The background pixel histogram generation unit creates a histogram for each background pixel, using the minimum density value of each background pixel for each signal of the document image data as the density value of each background pixel,
The chromatic pixel histogram generation unit creates a histogram for each chromatic pixel using the minimum density value of each chromatic pixel for each signal of the original image data as the density value of each chromatic pixel. The image processing apparatus according to claim 4.
請求項1〜5のいずれか1つに記載の画像処理装置を備え、前記出力判定部の判定結果に応じてカラー出力またはモノクロ出力することを特徴とする画像形成装置。   An image forming apparatus comprising the image processing apparatus according to claim 1, wherein color output or monochrome output is performed according to a determination result of the output determination unit. 原稿に基づく原稿画像データに含まれる複数の画素のうち下地画素を判定する下地判定工程と、
前記原稿画像データに含まれる有彩画素を判定するカラー画素判定工程と、
前記下地判定工程における下地判定結果に基づいて下地除去を行う下地除去工程と、
前記下地画素の濃度値と、前記有彩画素の濃度値とを比較し、前記有彩画素の濃度値が前記下地画素の濃度値以上である場合には、モノクロ出力すべきと判定する濃度値比較工程とを含むことを特徴とする画像処理方法。
A background determination step of determining a background pixel among a plurality of pixels included in document image data based on an original;
A color pixel determination step of determining chromatic pixels included in the document image data;
A ground removal step of performing ground removal based on the ground determination result in the ground determination step;
A density value that compares the density value of the background pixel with the density value of the chromatic pixel and determines that monochrome output should be performed when the density value of the chromatic pixel is equal to or higher than the density value of the background pixel And a comparison step.
コンピュータを、請求項1〜5のいずれか1つに記載の画像処理装置として機能させる画像処理プログラム。   An image processing program for causing a computer to function as the image processing apparatus according to claim 1. コンピュータを、請求項1〜5のいずれか1つに記載の画像処理装置として機能させる画像処理プログラムが、コンピュータ読取り可能に記録される記録媒体。   A recording medium on which an image processing program for causing a computer to function as the image processing apparatus according to claim 1 is recorded in a computer-readable manner.
JP2009157342A 2009-07-01 2009-07-01 Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image Pending JP2011015172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009157342A JP2011015172A (en) 2009-07-01 2009-07-01 Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009157342A JP2011015172A (en) 2009-07-01 2009-07-01 Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image

Publications (1)

Publication Number Publication Date
JP2011015172A true JP2011015172A (en) 2011-01-20

Family

ID=43593617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009157342A Pending JP2011015172A (en) 2009-07-01 2009-07-01 Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image

Country Status (1)

Country Link
JP (1) JP2011015172A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014072667A (en) * 2012-09-28 2014-04-21 Brother Ind Ltd Image processing device and program
JP2016220107A (en) * 2015-05-22 2016-12-22 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and storage medium of the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014072667A (en) * 2012-09-28 2014-04-21 Brother Ind Ltd Image processing device and program
US9582744B2 (en) 2012-09-28 2017-02-28 Brother Kogyo Kabushiki Kaisha Image processing device and computer-readable medium using photographic and non-photographic correspondence data
JP2016220107A (en) * 2015-05-22 2016-12-22 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and storage medium of the same

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
JP4855458B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4139834B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium recording image processing program
JP4331159B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4170353B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, program, and recording medium
JP4531606B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP2008072352A (en) Method and device for processing image, device for reading original, device for forming image and computer program
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP4465377B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP2008205652A (en) Image processing method, image processing apparatus, image forming apparatus, program, and recording medium
JP2004023401A (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and record medium with the program recorded thereon
JP2005286571A (en) 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
JP2009017208A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP2011015172A (en) Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP7266462B2 (en) IMAGE PROCESSING APPARATUS, IMAGE FORMING APPARATUS, IMAGE PROCESSING METHOD AND PROGRAM
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
JP4149368B2 (en) Image processing method, image processing apparatus and image forming apparatus, computer program, and computer-readable recording medium
JP4545167B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4958626B2 (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
JP2005072635A (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium stored with the image processing program
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JP2003219178A (en) Image processing method, device thereof and image forming device