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

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

Info

Publication number
JP6474315B2
JP6474315B2 JP2015104765A JP2015104765A JP6474315B2 JP 6474315 B2 JP6474315 B2 JP 6474315B2 JP 2015104765 A JP2015104765 A JP 2015104765A JP 2015104765 A JP2015104765 A JP 2015104765A JP 6474315 B2 JP6474315 B2 JP 6474315B2
Authority
JP
Japan
Prior art keywords
density
histogram
background
density section
predetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015104765A
Other languages
Japanese (ja)
Other versions
JP2016220107A (en
Inventor
村上 義則
義則 村上
真一 尾関
真一 尾関
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2015104765A priority Critical patent/JP6474315B2/en
Publication of JP2016220107A publication Critical patent/JP2016220107A/en
Application granted granted Critical
Publication of JP6474315B2 publication Critical patent/JP6474315B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、原稿画像データに基づいて原稿の下地の信号レベルを検出する画像処理装置および画像処理方法に関するものである。   The present invention relates to an image processing apparatus and an image processing method for detecting a signal level of a background of a document based on document image data.

従来、デジタル複写機や複合機において、スキャナで読み込まれた画像信号のヒストグラムを作成し、作成したヒストグラムに基づいて読み取り原稿の下地(背景)の信号レベルを検出し、検出した下地の信号レベルに応じて画像から下地を除去する技術が知られている。   Conventionally, in a digital copying machine or a multifunction peripheral, a histogram of an image signal read by a scanner is created, and based on the created histogram, the background level of a scanned document is detected, and the detected background signal level is set. Accordingly, a technique for removing the background from the image is known.

例えば、特許文献1には、濃度ヒストグラムの最大度数値を第1最大度数値とし、第1最大度数値を示す濃度区分に隣接する濃度区分以外の最大度数値を第2最大度数値として、第1最大度数値と第1閾値の比較結果、および(第1最大度数値+第2最大度数値)と第2閾値の比較結果に基づいて下地の有無を判定する技術が開示されている。   For example, in Patent Document 1, a maximum frequency value of a density histogram is set as a first maximum frequency value, and a maximum frequency value other than a density category adjacent to the density category indicating the first maximum frequency value is set as a second maximum frequency value. A technique is disclosed in which the presence / absence of a background is determined based on a comparison result between a first maximum power value and a first threshold value, and a comparison result between (first maximum power value + second maximum power value) and a second threshold value.

特開2004−64532号公報(2004年2月26日公開)JP 2004-64532 A (published February 26, 2004) 特開2002−232708号公報(2002年8月16日公開)Japanese Patent Laid-Open No. 2002-232708 (released on August 16, 2002) 特開2000−354167号公報(2000年12月19日公開)JP 2000-354167 A (published on December 19, 2000)

しかしながら、上記特許文献1の技術では、プリンタで出力された、色付けされた背景画像を含む原稿の場合に、背景画像部分が下地として誤判定される場合がある。特に、背景画像が淡い濃度(薄い濃度)で印刷されている原稿の場合にそのような誤判定が生じやすい。そして、そのような誤判定が生じると、本来は下地ではない背景画像が除去されてしまうといった問題が生じる。   However, in the technique disclosed in Patent Document 1, in the case of a document including a colored background image output by a printer, the background image portion may be erroneously determined as a background. In particular, such an erroneous determination is likely to occur when the background image is a document printed with a light density (light density). When such an erroneous determination occurs, there arises a problem that a background image that is not originally a background is removed.

本発明は、上記の問題点に鑑みて成されたものであり、その目的は、原稿の下地とプリンタで印刷された背景画像とを適切に識別することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to appropriately identify the background of an original and a background image printed by a printer.

本発明の一態様にかかる画像処理装置は、原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成部と、前記ヒストグラムに基づいて下地除去の要否を判定する下地判定部とを備え、前記下地判定部は、前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上であり、かつ前記第1濃度区分が所定の濃度区分閾値よりも濃度が濃い側に存在する場合に下地除去が必要であると判定することを特徴としている。   An image processing apparatus according to an aspect of the present invention includes a histogram generation unit that generates a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in document image data, and whether or not background removal is necessary based on the histogram. A background determination unit that determines a maximum value that is equal to or greater than a predetermined first threshold value among the maximum values of the histogram and that has the lowest density, and the maximum value The ratio of the frequency of the second density section, which is the density section located on the side where the density is lighter than the first density section, which is the corresponding density section, is equal to or higher than a predetermined second threshold, and It is characterized in that it is determined that the background removal is necessary when the first density category is present on the darker side than the predetermined density category threshold value.

上記の構成によれば、原稿の下地とプリンタで印刷された背景画像とを適切に識別することができる。すなわち、新聞などの真っ白ではない紙にインクで印刷されている原稿に対しては下地除去(紙色の除去)を適正に行い、背景部分が紙全体にハイライト濃度で印字した画像であるプリンタ出力原稿等に対してはハイライト濃度部分を下地と誤判定して除去してしまうことを防止できる。   According to the above configuration, it is possible to appropriately identify the background of the original and the background image printed by the printer. In other words, for a document printed with ink on paper that is not white, such as a newspaper, the background is appropriately removed (paper color removal), and the background portion is an image printed on the entire paper with a highlight density. For an output document or the like, it is possible to prevent the highlight density portion from being erroneously determined as the background and removed.

本発明の実施形態1にかかる画像形成装置の概略構成を示すブロック図である1 is a block diagram illustrating a schematic configuration of an image forming apparatus according to a first embodiment of the present invention. 図1に示した画像形成装置に備えられる原稿特徴判別部の構成を示すブロック図であり、FIG. 2 is a block diagram illustrating a configuration of a document feature determination unit provided in the image forming apparatus illustrated in FIG. 図2に示した原稿特徴判別部における処理の流れを示すフローチャートである。FIG. 3 is a flowchart showing a flow of processing in a document feature determination unit shown in FIG. 2. FIG. 図2に示した原稿特徴判別部で行われるヒストグラム生成処理においてヒストグラム生成の対象から除外する除外領域の設定方法を示す説明図である。FIG. 4 is an explanatory diagram illustrating a method for setting an exclusion area to be excluded from a histogram generation target in the histogram generation processing performed by the document feature determination unit illustrated in FIG. 2. 図2に示した原稿特徴判別部に備えられる下地判定部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a background determination unit provided in the document feature determination unit illustrated in FIG. 2. 図5に示した下地判定部で行われる下地除去を行うか否かの判定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the determination process whether the background removal performed by the background determination part shown in FIG. 5 is performed. (a)は図5に示した下地判定部において下地除去を行うべきであると判定されるヒストグラムの一例を示すグラフであり、(b)は図5に示した下地判定部において下地除去を行うべきではないと判定されるヒストグラムの一例を示すグラフである。(A) is a graph showing an example of a histogram that is determined to be subjected to background removal in the background determination unit shown in FIG. 5, and (b) is a background removal in the background determination unit shown in FIG. It is a graph which shows an example of the histogram determined not to be. 図5に示した下地判定部において下地除去を行うべきではないと判定されるヒストグラムの一例を示すグラフである。6 is a graph illustrating an example of a histogram that is determined not to perform background removal in the background determination unit illustrated in FIG. 5. 本発明の実施形態2にかかる画像読取装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image reading apparatus concerning Embodiment 2 of this invention.

〔実施形態1〕
本発明の一実施形態について説明する。
Embodiment 1
An embodiment of the present invention will be described.

(1−1.画像形成装置1の全体構成)
図1は、本実施形態にかかる画像形成装置1の概略構成を示すブロック図である。なお、本実施形態では、画像形成装置1が電子写真方式のデジタルカラー複写機である場合について説明するが、画像形成装置1の構成はこれに限るものではなく、原稿の画像データに対して画像処理を施す機能を有する装置であればよい。
(1-1. Overall Configuration of Image Forming Apparatus 1)
FIG. 1 is a block diagram illustrating a schematic configuration of an image forming apparatus 1 according to the present embodiment. In this embodiment, the case where the image forming apparatus 1 is an electrophotographic digital color copying machine will be described. However, the configuration of the image forming apparatus 1 is not limited to this, and an image with respect to image data of a document is not limited. Any device having a function of performing processing may be used.

画像形成装置1は、図1に示すように、カラー画像入力装置2、カラー画像処理装置3、カラー画像出力装置4、操作パネル5、および制御部6を備えている。また、カラー画像処理装置3は、A/D(アナログ/デジタル)変換部11、シェーディング補正部12、原稿特徴判別部13、入力階調補正部14、領域分離処理部15、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、出力階調補正部19、階調再現処理部20を備えている。   As shown in FIG. 1, the image forming apparatus 1 includes a color image input device 2, a color image processing device 3, a color image output device 4, an operation panel 5, and a control unit 6. The color image processing apparatus 3 includes an A / D (analog / digital) conversion unit 11, a shading correction unit 12, a document feature determination unit 13, an input tone correction unit 14, a region separation processing unit 15, a color correction unit 16, A black generation and under color removal unit 17, a spatial filter processing unit 18, an output tone correction unit 19, and a tone reproduction processing unit 20 are provided.

カラー画像入力装置2は、原稿を読み取って原稿の画像データを生成し、生成した画像データをカラー画像処理装置3に出力する。なお、カラー画像入力装置2の構成は、原稿の画像データを生成することができる構成であれば特に限定されるものではなく、従来から公知の種々の画像入力装置を用いることができる。例えば、CCD(Charge Coupled Device )を備えたスキャナ部(図示せず)を有し、原稿からの反射光像をCCDで読み取ってRGB(R:赤、G:緑、B:青)のアナログ信号から成る画像データを生成する構成のものを用いてもよい。   The color image input device 2 reads a document to generate image data of the document, and outputs the generated image data to the color image processing device 3. The configuration of the color image input device 2 is not particularly limited as long as it can generate image data of a document, and various conventionally known image input devices can be used. For example, a scanner unit (not shown) having a CCD (Charge Coupled Device) is provided, and an RGB (R: red, G: green, B: blue) analog signal is obtained by reading a reflected light image from an original with the CCD. It is also possible to use a configuration that generates image data consisting of:

カラー画像処理装置3は、カラー画像入力装置2から入力される画像データを、A/D変換部11、シェーディング補正部12、原稿特徴判別部13、入力階調補正部14、領域分離処理部15、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、出力階調補正部19、および階調再現処理部20の順に送り、最終的にCMYK(C:シアン、M:マゼンタ、Y:イエロ、K:ブラック)のそれぞれに対応するデジタルカラー信号で表される画像データをカラー画像出力装置4へ出力する。   The color image processing device 3 converts the image data input from the color image input device 2 into an A / D conversion unit 11, a shading correction unit 12, a document feature determination unit 13, an input tone correction unit 14, and a region separation processing unit 15. , Color correction unit 16, black generation and under color removal unit 17, spatial filter processing unit 18, output gradation correction unit 19, and gradation reproduction processing unit 20, and finally CMYK (C: cyan, M: magenta) , Y: yellow, K: black), the image data represented by the digital color signal is output to the color image output device 4.

A/D変換部11は、RGBのそれぞれに対応するアナログ信号の画像データをデジタル信号の画像データに変換する。   The A / D conversion unit 11 converts image data of analog signals corresponding to each of RGB into image data of digital signals.

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

原稿特徴判別部13は、シェーディング補正部12にて各種の歪みが取り除かれ、カラーバランスの調整がなされたRGB信号(RGBの反射率信号)を濃度信号に変換する。また、原稿特徴判別部13は、(i)原稿が文字原稿、印刷写真原稿、あるいは文字と印刷写真が混在した文字印刷写真原稿のいずれであるかを判別する原稿種別判定処理、および(ii)下地除去処理を行うべき原稿である否かを判別する下地判定処理を行う。また、原稿特徴判別部13は、原稿種別判定処理の結果を示す原稿特徴判定信号を生成し、入力階調補正部14、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、および階調再現処理部20に出力する。なお、原稿特徴判別部13の詳細については後述する。   The document feature determination unit 13 converts 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, into a density signal. Further, the document feature determination unit 13 (i) a document type determination process for determining whether the document is a character document, a printed photograph document, or a character printed photograph document in which characters and a printed photograph are mixed, and (ii) Background determination processing is performed to determine whether the document is to be subjected to background removal processing. Further, the document feature determination unit 13 generates a document feature determination signal indicating the result of the document type determination process, and the input tone correction unit 14, the color correction unit 16, the black generation and under color removal unit 17, and the spatial filter processing unit 18. , And the gradation reproduction processing unit 20. The details of the document feature determination unit 13 will be described later.

入力階調補正部14は、下地濃度の除去、およびコントラストなどの画質調整処理を行う。   The input tone correction unit 14 performs image quality adjustment processing such as removal of background density and contrast.

すなわち、原稿の下地(文字などが印刷された用紙)の色はさまざまであり、下地の色によっては白地部分(下地部分)を白(あるいは無色)として扱わないと、記録材(トナーあるいはインク)が余分に使用されてしまう場合がある。例えば、わら半紙のように黄色っぽいものや、下地に色がついている原稿をモノクロモードで画像形成する場合、下地の色を白として扱わないと、画像出力時に白地部分(下地部分)にも記録材が使われてしまう。このため、余分な記録材が使用されることを抑制するために、入力階調補正部14は、下地濃度の除去処理(すなわち下地の濃度を白色の濃度にする処理)を行うとともに、コントラストの調整処理を行う。   In other words, the color of the background of the document (paper on which characters are printed) varies, and depending on the color of the background, if the white background (background) is not treated as white (or colorless), the recording material (toner or ink) May be used excessively. For example, when forming an image in monochrome mode on a yellowish paper like straw half paper or a document with a colored background, if the background color is not treated as white, the recording material will also be printed on the white background (background part) when the image is output. Will be used. For this reason, in order to suppress the use of an excess recording material, the input tone correction unit 14 performs a background density removal process (that is, a process for changing the density of the background to a white density) and performs contrast adjustment. Perform the adjustment process.

また、入力階調補正部14は、RGBの濃度信号(以下、特に断らない限り、RGB信号は濃度信号(画素値を表す信号)を表すものとする。)から成る画像データを領域分離処理部15に出力する。   Further, the input tone correction unit 14 converts image data consisting of RGB density signals (hereinafter, unless otherwise specified, the RGB signal represents a density signal (a signal representing a pixel value)) to an area separation processing unit. 15 is output.

領域分離処理部15は、入力画像データにおける各画素を、RGB濃度信号に基づいて、下地領域、写真領域(連続階調領域)、文字領域、および網点領域のいずれに属するのか判定する領域分離処理を行う。また、領域分離処理部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 photographic region (continuous tone region), a character region, or a halftone region based on the RGB density signal. Process. The region separation processing unit 15 generates a region identification signal indicating which region each pixel belongs to based on the result of the region separation processing, and the color correction unit 16, the black generation lower color removal unit 17, the space While outputting to the filter process part 18 and the gradation reproduction process part 20, the RGB signal input from the input gradation correction part 14 is output to the subsequent color correction part 16 as it is.

色補正部16は、領域分離処理部15から入力されるRGB信号(入力信号)を、領域分離処理部15から入力される領域識別信号に応じて、CMY信号に変換する。また、色補正部16では、色再現の忠実化実現のために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。また、色補正部16は、原稿特徴判別部13から入力される原稿特徴判定信号に基づいて色変換処理を行う。   The color correction unit 16 converts the RGB signal (input signal) input from the region separation processing unit 15 into a CMY signal according to the region identification signal input from the region separation processing unit 15. In addition, 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 processing based on the document feature determination signal input from the document feature determination unit 13.

黒生成下色除去部17は、色補正部16による色補正後のCMY信号から黒(K)信号を生成する黒生成処理と、元のCMY信号から黒生成処理で得たK信号を差し引いて新たなCMY信号を生成する下色除去処理とを行う。これによって、CMY信号はCMYKの4色の信号(以下、CMYK信号という)に変換される。   The black generation / under color removal unit 17 subtracts the black generation process for generating a black (K) signal from the CMY signal after color correction by the color correction unit 16 and the K signal obtained by the black generation process from the original CMY signal. Under color removal processing for generating a new CMY 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)とすると、
K´=f{min(C,M,Y)}
C´=C−αK´
M´=M−αK´
Y´=Y−αY´
によってCMYの3色の濃度信号をCMYKの4色の濃度信号に変換する。
For example, the black generation and under color removal unit 17 performs black generation using skeleton black as the black generation processing. In this black generation process using 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 C, M, and Y, respectively, and the output C is output. , M, Y, K, respectively, C ′, M ′, Y ′, K ′ and UCR (Under Color Removal) rate α (0 <α <1)
K ′ = f {min (C, M, Y)}
C ′ = C−αK ′
M ′ = M−αK ′
Y ′ = Y−αY ′
Thus, the CMY three-color density signals are converted into CMYK four-color density signals.

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

出力階調補正部19は、空間フィルタ処理部18から入力されるCMYK信号の画像データに対して、カラー画像出力装置4の出力特性に基づく出力階調補正処理を行う。   The output tone correction unit 19 performs output tone correction processing based on the output characteristics of the color image output device 4 on the image data of the CMYK signal input from the spatial filter processing unit 18.

階調再現処理部20は、出力階調補正部から入力されるCMYK信号の画像データに対して、領域分離処理部15から入力される領域識別信号に応じて、領域の種別毎に予め定められた処理を施す。   The gradation reproduction processing unit 20 is predetermined for each type of region in accordance with the region identification signal input from the region separation processing unit 15 with respect to the image data of the CMYK signal input from the output gradation correction unit. Process.

例えば、領域分離処理部15によって文字領域に分離された領域に関しては、特に黒文字あるいは色文字の再現性を高めるために、空間フィルタ処理部18は鮮鋭強調処理により高周波数の強調量を大きくし、階調再現処理部20は高域周波数の再現に適した高解像度のスクリーンでの二値化または多値化処理を行う。   For example, with respect to the region separated into character regions by the region separation processing unit 15, in order to improve the reproducibility of black characters or color characters in particular, the spatial filter processing unit 18 increases the high frequency enhancement amount by sharp enhancement processing, The gradation reproduction processing unit 20 performs binarization or multilevel conversion on a high-resolution screen suitable for high frequency reproduction.

また、領域分離処理部15によって網点領域に分離された領域に関しては、空間フィルタ処理部18は入力網点成分を除去するためのローパス・フィルタ処理を施し、階調再現処理部20はそれぞれの画素の階調を再現できるように処理する階調再現処理(中間調生成)を施す。   In addition, with respect to the regions 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 gradation reproduction processing unit 20 A gradation reproduction process (halftone generation) is performed so that the gradation of the pixel can be reproduced.

また、領域分離処理部15によって写真領域に分離された領域に関しては、階調再現処理部20は階調再現性を重視したスクリーンでの二値化または多値化処理を行う。   Further, with respect to the region separated into the photographic regions by the region separation processing unit 15, the gradation reproduction processing unit 20 performs binarization or multi-value processing on the screen with an emphasis on gradation reproducibility.

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

カラー画像出力装置4は、画像データに応じた画像を記録媒体(例えば紙などのシート体)に出力する。カラー画像出力装置4は、2色以上(本実施形態ではC,M,Y,Kの4色)の記録材を用いて記録媒体に画像を形成する。なお、本実施形態では、カラー画像出力装置4として、電子写真方式のプリンタ装置を用いている。ただし、カラー画像出力装置4の構成はこれに限るものではなく、例えばインクジェット方式などの他の方式のプリンタ装置を用いてもよい。   The color image output device 4 outputs an image corresponding to the image data to a recording medium (for example, a sheet body such as paper). The color image output device 4 forms an image on a recording medium using recording materials of two or more colors (four colors of C, M, Y, and K in this embodiment). In this embodiment, an electrophotographic printer device is used as the color image output device 4. However, the configuration of the color image output device 4 is not limited to this, and a printer device of another method such as an ink jet method may be used.

操作パネル5は、ユーザからの指示入力を受け付けて制御部6に伝達する。操作パネル5は、例えば、液晶ディスプレイなどの表示部とユーザの操作入力を受け付ける操作キーとを含んで構成される。あるいは、操作パネル5はタッチパネルであってもよい。   The operation panel 5 receives an instruction input from the user and transmits it to the control unit 6. The operation panel 5 includes, for example, a display unit such as a liquid crystal display and operation keys that receive user operation inputs. Alternatively, the operation panel 5 may be a touch panel.

制御部6は、CPUや専用プロセッサなどの演算処理部、および、RAM、ROM、HDDなどの記憶部(いずれも図示せず)などにより構成されるコンピュータ装置である。制御部6は、上記記憶部に記憶されている各種情報および各種制御を実施するためのプログラム、操作パネル5を介して入力されるユーザからの指示入力、および画像形成装置1に備えられる各種センサの検知結果などに応じて、カラー画像入力装置2、カラー画像処理装置3、カラー画像出力装置4、および操作パネル5の動作を制御する。   The control unit 6 is a computer device that includes an arithmetic processing unit such as a CPU and a dedicated processor, and a storage unit (not shown) such as a RAM, a ROM, and an HDD. The control unit 6 includes various information stored in the storage unit, a program for performing various controls, an instruction input from a user input through the operation panel 5, and various sensors provided in the image forming apparatus 1. The operation of the color image input device 2, the color image processing device 3, the color image output device 4, and the operation panel 5 is controlled in accordance with the detection result.

(1−2.原稿特徴判別部13の構成)
図2は原稿特徴判別部13の構成を示すブロック図であり、図3は原稿特徴判別部13における処理の流れを示すフローチャートである。
(1-2. Configuration of Document Feature Determination Unit 13)
FIG. 2 is a block diagram illustrating the configuration of the document feature determination unit 13, and FIG. 3 is a flowchart illustrating the flow of processing in the document feature determination unit 13.

図2に示すように、原稿特徴判別部13は、画素判定部31、領域画素カウント部32、データ選択部33、ヒストグラム生成部34、下地判定部35、原稿種別判定部36、および下地除去部37を備えている。   As shown in FIG. 2, the document feature determination unit 13 includes a pixel determination unit 31, a region pixel count unit 32, a data selection unit 33, a histogram generation unit 34, a background determination unit 35, a document type determination unit 36, and a background removal unit. 37.

原稿特徴判別部13では、図3に示すように、まず、画素判定部31が、シェーディング補正部12から入力されるRGB信号(画像データ)の各画素を下地画素、写真画素、文字画素、網点画素の何れかに分類する領域画素判定処理を行う(S1)。なお、以降の説明では、下地画素、写真画素、文字画素、および網点画素に分類された画素を領域画素と称する。   In the document feature discriminating unit 13, as shown in FIG. 3, the pixel determining unit 31 first converts each pixel of the RGB signal (image data) input from the shading correction unit 12 into a background pixel, a photographic pixel, a character pixel, and a network. A region pixel determination process for classifying the pixel into any of the point pixels is performed (S1). In the following description, pixels classified as background pixels, photographic pixels, character pixels, and halftone pixels are referred to as region pixels.

領域画素に分類するためのアルゴリズムは、特に限定されるものではなく、既存の領域分離方法を用いることができる。例えば、特許文献2に記載の方法を用いてもよい。特許文献2の方法では、以下の(1)〜(8)の処理により領域画素判定処理を行う。
(1)注目画素を含むn×m(たとえば、7画素×15画素)の画素ブロックにおける最小濃度値および、最大濃度値を算出する。
(2)算出された最小濃度値及び最大濃度値を用いて最大濃度差を算出する。
(3)注目画素に隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度(たとえば、主走査方向と副走査方向について算出した値の和)を算出する。
(4)算出された最大濃度差と最大濃度差閾値との比較及び算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行う。
(5)最大濃度差<最大濃度差閾値および総和濃度繁雑度<総和濃度繁雑度閾値のとき、注目画素は下地・写真領域に属すると判定する。
(6)上記条件を満たさないときは、注目画素は文字・網点領域に属すると判定する。
The algorithm for classifying the pixels into region pixels is not particularly limited, and an existing region separation method can be used. For example, the method described in Patent Document 2 may be used. In the method of Patent Document 2, the region pixel determination process is performed by the following processes (1) to (8).
(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 / photo area.
(6) When the above condition is not satisfied, it is determined that the target pixel belongs to the character / halftone dot region.

(7)下地・写真領域に属すると判定された画素について、注目画素が、最大濃度差<下地・印画紙判定閾値を充たすとき、下地画素であると判定し、この条件を充たさないときは、写真画素であると判定する。
(8)文字・網点領域に属すると判定された画素について、注目画素が、総和濃度繁雑度<(最大濃度差に文字・網点判定閾値を掛けた値)の条件を満たすとき、文字画素であると判定し、この条件を満たさないときは、網点画素であると判定する。
(7) For a pixel determined to belong to the background / photo area, the target pixel is determined to be a background pixel when the maximum density difference <the background / photographic paper determination threshold value is satisfied, and when this condition is not satisfied, It is determined to be a photographic pixel.
(8) For a pixel determined to belong to the character / halftone dot region, when the target pixel satisfies the condition of total density busyness <(value obtained by multiplying the maximum density difference by the character / halftone determination threshold), the character pixel When this condition is not satisfied, it is determined that the pixel is a halftone pixel.

なお、領域画素判定処理は、例えば、プレスキャンされた画像データを用いて行ってもよく、ハードディスク等の記憶手段に一旦格納された画像データを用いて行ってもよい。   Note that the region pixel determination processing may be performed using, for example, pre-scanned image data, or may be performed using image data temporarily stored in a storage unit such as a hard disk.

次に、領域画素カウント部32が、画素判定部31での領域画素判定処理の結果に基づいて、領域種別毎に(下地画素、写真画素、文字画素、および網点画素の各領域毎に)、分類された画素(領域画素)の数をカウントする領域画素カウント処理を行う(S2)。   Next, based on the result of the region pixel determination process in the pixel determination unit 31, the region pixel count unit 32 performs each region type (for each region of the background pixel, the photographic pixel, the character pixel, and the halftone pixel). Then, a region pixel counting process for counting the number of classified pixels (region pixels) is performed (S2).

次に、データ選択部33が、シェーディング補正部12から入力されたRGB信号における原稿画像領域を、後述するヒストグラム生成処理の対象とする対象領域とヒストグラム生成処理の対象から除外する除外領域とに分離する領域選択処理を行う(S3)。すなわち、本実施形態では、ヒストグラム生成を入力画像の全画素を対象として行うのではなく、一部の画素を除外して行う。   Next, the data selection unit 33 separates the document image region in the RGB signal input from the shading correction unit 12 into a target region to be described later and an exclusion region to be excluded from the target of the histogram generation processing. A region selection process is performed (S3). That is, in the present embodiment, histogram generation is not performed for all pixels of the input image, but is performed by excluding some pixels.

図4は、原稿の画像データのうちヒストグラム生成の対象から除外する除外領域の設定方法を示す説明図である。   FIG. 4 is an explanatory diagram showing a method of setting an exclusion area to be excluded from the histogram generation target in the image data of the document.

カラー画像入力装置2によって読み取られた画像データは、シェーディング補正部12においてカラー画像入力装置2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すが、必ずしも画像データの全領域に対して適切な補正が行われるわけではない。例えば、カラー画像入力装置2での原稿読取時に、原稿における原稿台の端部に配置された領域(原稿の端部領域)は比較的暗めの信号となってしまう場合がある。   The image data read by the color image input device 2 is subjected to processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system of the color image input device 2 in the shading correction unit 12. Appropriate correction is not performed on the area. For example, when the color image input apparatus 2 reads a document, a region (end region of the document) arranged at the end of the document table in the document may be a relatively dark signal.

そこで、本実施形態では、図4に示したように、データ選択部33が、原稿の画像データのうち、画像読取時にカラー画像入力装置2における原稿台のガラス面の端部に位置していた所定範囲の領域の画像データをヒストグラム生成の対象領域から除外し、その他の領域をヒストグラム生成の対象領域とする。   Therefore, in the present embodiment, as shown in FIG. 4, the data selection unit 33 is located at the end of the glass surface of the document table in the color image input device 2 at the time of image reading out of the image data of the document. Image data in a predetermined range is excluded from the histogram generation target area, and the other areas are set as histogram generation target areas.

上記所定範囲は特に限定されるものではなく、適宜設定すればよいが、例えば、原稿のボイド領域のうち、原稿読取時に原稿台のガラス面の端部に隣接していた箇所をヒストグラム生成の対象から除外するようにしてもよい。ボイド領域とは、プリンタで印刷あるいはコピーされた原稿における端部(周縁部)から数mm程度(例えば4mm程度)の幅で存在する、何も印刷されない領域である。   The predetermined range is not particularly limited, and may be set as appropriate. For example, in the void area of the document, a portion adjacent to the edge of the glass surface of the document table at the time of document reading is subject to histogram generation. You may make it exclude from. The void area is an area in which nothing is printed and exists with a width of about several mm (for example, about 4 mm) from the end (peripheral edge) of the document printed or copied by the printer.

次に、ヒストグラム生成部34が、シェーディング補正部12から入力されたRGB信号のうち、領域画素判定処理において下地画素と判定され、かつ領域選択処理においてヒストグラム生成の対象領域と判定された領域に属する画素を注目画素として抽出し、ヒストグラム生成処理(最小値ヒストグラム生成処理)を行う(S4)。   Next, the histogram generation unit 34 belongs to the region of the RGB signals input from the shading correction unit 12 that is determined as a background pixel in the region pixel determination process and that is determined as a histogram generation target region in the region selection process. A pixel is extracted as a target pixel, and a histogram generation process (minimum value histogram generation process) is performed (S4).

具体的には、ヒストグラム生成部34は、注目画素についてプレーン毎(色成分毎)の比較を行い、当該注目画素の各色成分間での最小値を算出し、予め設定した複数の濃度区分のうち、算出した上記最小値が属する濃度区分の度数に1を加算する。なお、本実施形態では、ヒストグラムの濃度区分の数を、画素値(濃度値)の小さい方から順に第1濃度区分、第2濃度区分とし、画素値の最も大きい区分を第32濃度区分として32区分に設定している。本実施形態では、RGB信号を用いているので、画素値(濃度値)が「0」に近い方が(濃度値が小さい方が)実際の濃度は濃くなり、画素値(濃度値)が「255」に近い方が(濃度値が大きい方が)濃度は薄く(淡く)なる。   Specifically, the histogram generation unit 34 compares the target pixel for each plane (for each color component), calculates the minimum value between the color components of the target pixel, and selects a plurality of preset density categories. Then, 1 is added to the frequency of the density category to which the calculated minimum value belongs. In the present embodiment, the number of density sections of the histogram is set to the first density section and the second density section in order from the smallest pixel value (density value), and the section having the largest pixel value is the 32nd density section. Set to category. In this embodiment, since RGB signals are used, when the pixel value (density value) is closer to “0” (the smaller the density value), the actual density becomes higher, and the pixel value (density value) becomes “ The closer to “255” (the higher the density value), the lower the density (lighter).

なお、色成分間の最小値を用いてヒストグラムを作成するのは、下地の最も濃い色成分(濃度値が最小値である色成分)の濃度値を下地濃度とし、その濃度値に対応する補正量テーブルを全色成分に対して適用して下地除去処理を行うことにより、最も濃い色成分以外の色成分についても下地除去を行うことができるからである。   In order to create a histogram using the minimum value between color components, the density value of the darkest color component of the background (the color component having the minimum density value) is set as the background density, and correction corresponding to the density value is performed. This is because by applying the amount table to all the color components and performing the background removal processing, the background removal can be performed for the color components other than the darkest color component.

その後、原稿特徴判別部13は、S1〜S4の処理を全ての画素について行ったか否かを判断し(S5)、未処理の画素が残っている場合にはS1の処理に戻って未処理の画素に対してS1〜S4の処理を行う。   Thereafter, the document feature determination unit 13 determines whether or not the processing of S1 to S4 has been performed for all the pixels (S5), and when there is an unprocessed pixel, the process returns to the processing of S1 and is unprocessed. Processes S1 to S4 are performed on the pixels.

一方、S5において全ての画素に対してS1〜S4の処理が完了したと判断した場合、下地判定部35が下地除去を行うべきか否かを判定する下地判定処理を行う(S6)。下地判定処理の詳細については後述する。   On the other hand, if it is determined in S5 that the processing of S1 to S4 has been completed for all the pixels, the background determination unit 35 performs a background determination process for determining whether or not the background removal should be performed (S6). Details of the background determination processing will be described later.

S6で下地判定処理を行った後、原稿種別判定部36は、原稿種別判定処理を行う(S7)。   After performing the background determination process in S6, the document type determination unit 36 performs the document type determination process (S7).

具体的には、原稿種別判定部36は、領域画素カウント部32でカウントされた領域画素数と、予め定められている下地領域、写真領域、網点領域および文字領域にそれぞれ対応する閾値とを比較することにより、原稿全体の種別を判定する。   Specifically, the document type determination unit 36 determines the number of area pixels counted by the area pixel counting unit 32 and thresholds respectively corresponding to a predetermined background area, photo area, halftone area, and character area. By comparing, the type of the entire document is determined.

例えば、文字、網点、印画紙写真の順に検出精度が高い場合、文字領域の画素の比率が全画素数の30%以上の場合には文字原稿であると判定し、網点領域の画素の比率が全画素数の20%以上の場合には網点原稿(印刷写真原稿)であると判定し、印画紙写真領域の画素の比率が全画素数の10%以上の場合には印画紙写真原稿であると判定する。また、文字領域の比率と網点領域の比率とが、それぞれ閾値以上であるときは、文字/網点原稿(文字印刷写真原稿)であると判定する。   For example, when 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 that the document is a character document. When the ratio is 20% or more of the total number of pixels, it is determined as a half-tone original (printed photo original). When the ratio of the pixels in the photographic paper photo area is 10% or more of the total number of pixels, the photographic paper photograph is used. It is determined that the document is a 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.

なお、原稿種別判定部36は、原稿種別の判定結果を示す原稿特徴判定信号を、下地除去部37、入力階調補正部14、色補正部16、黒生成下色除去部17、空間フィルタ処理部18、および階調再現処理部20に出力する。   The document type determination unit 36 outputs a document feature determination signal indicating the determination result of the document type to the background removal unit 37, the input tone correction unit 14, the color correction unit 16, the black generation and under color removal unit 17, and the spatial filter process. To the unit 18 and the gradation reproduction processing unit 20.

次に、下地除去部37は、原稿種別判定部36による原稿種別の判定結果に基づいて、下地除去を行うべき原稿であるか否かを判定する(S8)。すなわち、下地除去部37は、原稿種別判定部36によって判定された原稿種別が、下地除去を行うべき原稿種別として予め設定された種別であるか否かを判断する。   Next, the background removal unit 37 determines whether the document is to be subjected to background removal based on the document type determination result by the document type determination unit 36 (S8). That is, the background removal unit 37 determines whether or not the document type determined by the document type determination unit 36 is a type set in advance as a document type to be subjected to background removal.

例えば、下地除去を行う原稿として、文字原稿、写真領域を含まない原稿、文字/網点原稿(文字印刷写真原稿)で網点領域の比率が小さい原稿(例えば網点領域の比率が原稿全体に対して40%以下の原稿)などを設定してもよい。   For example, as a manuscript for background removal, a character manuscript, a manuscript that does not include a photographic area, a manuscript / half-tone manuscript (a character-printed photo manuscript), and a manuscript with a small halftone dot area ratio (for example, a halftone dot area ratio over the whole manuscript For example, a document of 40% or less) may be set.

S8において下地除去すべき原稿ではないと判断した場合、原稿特徴判別部13は、下地除去を行わずに処理を終了する。   If it is determined in step S8 that the document is not to be removed, the document feature determination unit 13 ends the process without removing the background.

一方、S8において下地除去すべき原稿であると判断した場合、下地除去部37は、下地除去処理を行い(S9)、処理を終了する。   On the other hand, if it is determined in S8 that the document is to be subjected to background removal, the background removal unit 37 performs background removal processing (S9) and ends the processing.

下地除去処理の方法は特に限定されるものではなく、既存の下地除去方法を用いることができる。   The method for ground removal processing is not particularly limited, and an existing ground removal method can be used.

例えば、特許文献3に記載されている方法を用いて下地除去を行ってもよい。この方法では、下地であると判定された場合、下地濃度値に対応する補正量テーブルを選択し、下地除去処理を行う。下地画素のプレーン毎(色成分毎)の最小値を用いてヒストグラムを作成した場合、全色成分について上記最小値に対応する補正量テーブルを選択して下地除去処理を行えばよい。   For example, the background removal may be performed using the method described in Patent Document 3. In this method, when it is determined that the background is the background, a correction amount table corresponding to the background density value is selected, and the background removal processing is performed. When the histogram is created using the minimum value of each background pixel plane (each color component), the background removal process may be performed by selecting the correction amount table corresponding to the minimum value for all color components.

(1−3.下地判定部35の構成)
図5は下地判定部35の構成を示すブロック図である。図5に示したように、下地判定部35は、ピーク値算出部41、総和算出部42、および判定部43を備えている。
(1-3. Configuration of Background Determination Unit 35)
FIG. 5 is a block diagram illustrating a configuration of the background determination unit 35. As illustrated in FIG. 5, the background determination unit 35 includes a peak value calculation unit 41, a total calculation unit 42, and a determination unit 43.

ピーク値算出部41は、ヒストグラム度数を薄い方(濃度値が大きい方)から調べていき、最初にヒストグラム度数が予め設定される下地判定閾値(第1閾値)T1(本実施形態ではT1=70万画素)を超え、かつ、ピーク値(極大値)となっている濃度区分を求める。なお、上述したように、RGB信号を用いた場合、画素値(濃度値)が「0」に近い方が(濃度値が小さい方が)実際の濃度は高く、画素値(濃度値)が「255」に近い方が(濃度値が大きい方が)濃度は低くなる。   The peak value calculation unit 41 examines the histogram frequency from the thinner one (the one with the larger density value), and firstly a background determination threshold (first threshold) T1 (T1 = 70 in the present embodiment) in which the histogram frequency is preset. The density classification that exceeds 10,000 pixels and has a peak value (maximum value) is obtained. As described above, when RGB signals are used, the actual density is higher when the pixel value (density value) is closer to “0” (the smaller the density value), and the pixel value (density value) is “ The closer to “255” (the higher the density value), the lower the density.

具体的には、ピーク値算出部41は、各濃度区分の度数を濃度が薄い方(濃度値が大きい方)から順に見ていったときに、度数値が順次増加していき、その後に度数値が低下したことが検出された場合、度数が低下し始めた濃度区分の直前の濃度区分をピーク値とする。   Specifically, the peak value calculation unit 41 sequentially increases the frequency value when the frequency of each density category is viewed in order from the lower density (the higher density value). When it is detected that the numerical value has decreased, the peak value is the concentration segment immediately before the concentration segment where the frequency has started to decrease.

なお、下地判定閾値T1の値は、下地濃度成分を適切に検出することができ、かつ下地濃度成分ではないノイズ成分を除外できるように適宜設定すればよく、特に限定されるものではないが、原稿画像データにおけるヒストグラムの生成対象とする領域のうち、ボイド領域の画素数をP1としたときに、P2=P1×1/2の60%以上80%以下の範囲内に設定することが好ましい。ボイド領域の大きさは印刷を行うプリンタによって変動する。また、原稿の読み取り位置はスキャナによって変動し、原稿画像データにおいてヒストグラムの生成対象から除外される領域も変動する。また、ボイド領域から下地(紙色)を精度よく検出するためには、下地判定閾値T1は小さい値の方が好ましい。これらの点を考慮し、本実施形態においては、閾値T1をP2の60%以上80%以下の範囲に設定している。ただし、閾値T1の範囲はこれに限るものではない。閾値T1の最適な範囲は、上記したようにプリンタやスキャナにより変動するので、多くのプリンタやスキャナを用いて事前に測定試験を行うなどして適切な値に設定すればよい。   The value of the background determination threshold T1 may be set as appropriate so that the background density component can be appropriately detected and a noise component that is not the background density component can be excluded, and is not particularly limited. It is preferable to set P2 = P1 × 1/2 within a range of 60% to 80%, where P1 is the number of pixels in the void image generation area in the original image data. The size of the void area varies depending on the printer that performs printing. Further, the reading position of the original varies depending on the scanner, and the area excluded from the histogram generation target in the original image data also varies. Further, in order to accurately detect the background (paper color) from the void region, the background determination threshold T1 is preferably a small value. Considering these points, in the present embodiment, the threshold T1 is set in a range of 60% to 80% of P2. However, the range of the threshold T1 is not limited to this. Since the optimum range of the threshold value T1 varies depending on the printer or scanner as described above, an appropriate value may be set by performing a measurement test in advance using many printers and scanners.

例えば、原稿サイズ:A4、解像度:600dpi、原稿画像データにおけるヒストグラムの生成対象から除外される領域(例えば原稿の左辺および上辺)のサイズが主走査方向、副走査方向とも3mmであり、ボイド領域のサイズが主走査方向、副走査方向とも(原稿の4辺とも)2mmである場合、原稿画像データのうちヒストグラムの生成対象のうちボイド領域に含まれる画素数P1はP1=553989画素になる。このボイド領域の各画素の濃度値は、全て同じではなく分布を有しているため、上記ボイド領域の各画素が隣接する2つの濃度区分に均等に振り分けられたと仮定した場合、それら各濃度区分の画素数P2はP2=276994.5画素になる。この場合、下地判定閾値T1を20万画素程度に設定しておくことにより、下地を適切に検出することができる。   For example, the document size: A4, the resolution: 600 dpi, the size of the area excluded from the generation target of the histogram in the document image data (for example, the left side and the top side of the document) is 3 mm in both the main scanning direction and the sub-scanning direction. When the size is 2 mm in both the main scanning direction and the sub-scanning direction (both four sides of the document), the number of pixels P1 included in the void area in the histogram generation target in the document image data is P1 = 553899 pixels. Since the density values of the pixels in the void area are not all the same but have a distribution, assuming that the pixels in the void area are equally distributed to two adjacent density sections, the density sections The pixel number P2 of P2 is 276994.5 pixels. In this case, the background can be properly detected by setting the background determination threshold T1 to about 200,000 pixels.

また、原稿サイズ:A4、解像度:600dpi、原稿画像データにおけるヒストグラムの生成対象から除外される領域のサイズが主走査方向、副走査方向とも3mmであり、ボイド領域のサイズが主走査方向、副走査方向とも3mmである場合にはP1=823410画素、P2=411705画素になる。この場合、下地判定閾値T1を30万画素程度に設定しておくことにより、下地を適切に検出することができる。   Also, the document size is A4, the resolution is 600 dpi, the size of the area excluded from the histogram generation target in the document image data is 3 mm in both the main scanning direction and the sub-scanning direction, and the size of the void area is the main scanning direction and the sub-scanning. When both directions are 3 mm, P1 = 823410 pixels and P2 = 411705 pixels. In this case, the background can be appropriately detected by setting the background determination threshold T1 to about 300,000 pixels.

また、原稿サイズ:A4、解像度:600dpi、原稿画像データにおけるヒストグラムの生成対象から除外される領域のサイズが主走査方向、副走査方向とも3mmであり、ボイド領域のサイズが主走査方向、副走査方向とも4mmである場合にはP1=1103560画素、P2=551780画素になる。この場合、下地判定閾値T1を40万画素程度に設定しておくことにより、下地を適切に検出することができる。   Also, the document size is A4, the resolution is 600 dpi, the size of the area excluded from the histogram generation target in the document image data is 3 mm in both the main scanning direction and the sub-scanning direction, and the size of the void area is the main scanning direction and the sub-scanning. If both directions are 4 mm, P1 = 1103560 pixels and P2 = 551780 pixels. In this case, by setting the background determination threshold T1 to about 400,000 pixels, the background can be detected appropriately.

総和算出部42は、ピーク値算出部41によって特定されたピーク値の濃度区分がXである場合、濃度区分(X+i+1)から濃度区分32までのヒストグラム度数の総和値を算出する。なお、上記iは1以上の整数であり、本実施形態ではi=2としている。したがって、本実施形態では、総和算出部42は、濃度区分(X+3)から濃度区分32までのヒストグラム度数の総和値を算出する。   When the density category of the peak value specified by the peak value computing unit 41 is X, the total calculating unit 42 calculates the total value of histogram frequencies from the density category (X + i + 1) to the density category 32. Note that i is an integer equal to or greater than 1, and i = 2 in this embodiment. Therefore, in the present embodiment, the total sum calculation unit 42 calculates the total value of the histogram frequencies from the density section (X + 3) to the density section 32.

判定部43は、ピーク値算出部41によって特定されたピーク値および総和算出部42によって算出された総和値に基づいて、下地除去処理を行うべきか否かを判定する。   The determination unit 43 determines whether the background removal process should be performed based on the peak value specified by the peak value calculation unit 41 and the total value calculated by the total calculation unit 42.

図6は下地判定部35における下地除去を行うか否かの判定処理の流れを示すフローチャートである。また、図7の(a)は下地判定部35において下地除去を行うべきであると判定されるヒストグラムの一例を示すグラフであり、(b)は下地判定部35において下地除去を行うべきではないと判定されるヒストグラムの一例を示すグラフである。なお、図7に示したヒストグラムは、横軸が濃度区分を示す濃度値(数字の小さい方が濃度が高い)、縦軸が各濃度区分に属する最小値の頻度である度数値を示す。また、濃度区分Xに対するヒストグラム度数をH(X)としている。   FIG. 6 is a flowchart showing a flow of determination processing for determining whether or not to perform background removal in the background determination unit 35. FIG. 7A is a graph illustrating an example of a histogram that is determined to be subjected to background removal in the background determination unit 35, and FIG. 7B is a graph that illustrates that background removal should not be performed in the background determination unit 35. It is a graph which shows an example of the histogram determined as. In the histogram shown in FIG. 7, the horizontal axis indicates the density value indicating the density category (the smaller the number, the higher the density), and the vertical axis indicates the frequency value indicating the frequency of the minimum value belonging to each density category. Further, the histogram frequency for the density category X is H (X).

まず、ピーク値算出部41は、ピーク値であるか否かを判定する注目濃度区分をX=32(濃度値が最大である濃度区分。すなわち、実際の濃度が一番薄い濃度区分。)に設定する(S11)。   First, the peak value calculation unit 41 sets the attention density category for determining whether or not the peak value is X = 32 (the density category having the highest density value, that is, the density category having the lowest actual density). Set (S11).

そして、ピーク値算出部41は、注目濃度区分Xのヒストグラム度数H(X)が下地判定閾値T1以上であるか否かを判断する(S12)。   Then, the peak value calculation unit 41 determines whether or not the histogram frequency H (X) of the target density category X is equal to or greater than the background determination threshold value T1 (S12).

S12においてH(X)が下地判定閾値T1未満であると判断した場合、ピーク値算出部41は、注目濃度区分をX=X−1(前回の注目濃度区分の次に濃度値が小さい濃度区分)に設定し(S13)、S12の処理に戻る。   When it is determined in S12 that H (X) is less than the background determination threshold value T1, the peak value calculation unit 41 sets the attention density section to X = X−1 (the density section having the next lowest density value after the previous attention density section). ) (S13), and the process returns to S12.

S12においてヒストグラム度数H(X)が下地判定閾値T1以上であると判断した場合、ピーク値算出部41は、H(X)>H(X−1)であるか否かを判断する(S14)。すなわち、ピーク値算出部41は、現在の注目濃度区分Xのヒストグラム度数H(X)が、現在の注目濃度区分の次に濃度値が小さい濃度区分(X−1)のヒストグラム度数H(X−1)よりも大きいか否かを判断する。   When it is determined in S12 that the histogram frequency H (X) is greater than or equal to the background determination threshold T1, the peak value calculation unit 41 determines whether or not H (X)> H (X-1) (S14). . That is, the peak value calculation unit 41 has the histogram frequency H (X−) of the density section (X−1) having the density value next to the current target density section, which is the histogram frequency H (X) of the current target density section X. It is determined whether it is larger than 1).

S14においてH(X)>H(X−1)ではないと判断した場合、ピーク値算出部41は、S13の処理を行うとともに、S12の処理に戻る。   When it is determined in S14 that H (X)> H (X-1) is not true, the peak value calculation unit 41 performs the process of S13 and returns to the process of S12.

一方、S14においてピーク値算出部41がH(X)>H(X−1)であると判断した場合、判定部43は、H(X)/H(X+i)≧T2(iは1以上の整数。本実施形態ではi=2。)であるか否かを判断する(S15)。すなわち、判定部43は、H(X)を現在の注目濃度区分よりも濃度値がi段階大きい濃度区分(i濃度区分だけ薄い側の濃度区分)のヒストグラム度数で除算した比(H(X)/H(X+i))が、予め設定される下地有無判定閾値(第2閾値)T2以上であるか否かを判断する。   On the other hand, when the peak value calculation unit 41 determines in S14 that H (X)> H (X−1), the determination unit 43 determines that H (X) / H (X + i) ≧ T2 (i is 1 or more). It is determined whether or not an integer (i = 2 in this embodiment) (S15). In other words, the determination unit 43 divides H (X) by the histogram frequency of the density segment whose density value is i steps larger than the current target density category (the density segment that is thinner than the i density category) (H (X) It is determined whether or not (/ H (X + i)) is greater than or equal to a preset background presence / absence determination threshold (second threshold) T2.

なお、下地有無判定閾値T2は、画像サンプルに基づいて予め設定しておく。例えば、新聞原稿の場合にはH(X)/H(X+2)の値は最小で500程度であり、プリント原稿の場合にはH(X)/H(X+2)の値は最大で13程度である。このため、下地有無判定閾値T2は、50以上300以下の範囲内に設定することが好ましい。本実施形態では下地有無判定閾値T2を100に設定している。下地有無判定行閾値T2は、新聞原稿や雑誌原稿と、背景となる部分がハイライト濃度で紙の全体に印字されているようなプリンタ出力原稿(プリント原稿)とを用いて予め測定試験を行い、両者を判別することができるように適切な値に設定すればよい。   The background presence / absence determination threshold T2 is set in advance based on the image sample. For example, in the case of a newspaper manuscript, the value of H (X) / H (X + 2) is about 500 at minimum, and in the case of a print manuscript, the value of H (X) / H (X + 2) is about 13 at maximum. is there. For this reason, it is preferable to set the background presence / absence determination threshold T2 within a range of 50 to 300. In this embodiment, the background presence / absence determination threshold T2 is set to 100. The background presence / absence determination line threshold T2 is obtained by performing a measurement test in advance using a newspaper document or a magazine document and a printer output document (print document) in which a background portion is printed on the entire paper with a highlight density. It is only necessary to set an appropriate value so that both can be discriminated.

また、本実施形態では、上記iの値を2に設定している。これは、下地濃度が本来は濃度区分Xに対応する濃度である場合であっても、画像読取時の誤差等により下地濃度が濃度区分X+1にも反映される可能性があるため、その影響を除外するためである。ただし、iの値は2に限るものではなく、濃度区分数等に応じて適宜設定すればよい。例えば、濃度区分数が32よりも多い場合、iを3以上の整数に設定してもよい。また、濃度区分数が32より少ない場合、iを1に設定してもよい。   In the present embodiment, the value of i is set to 2. This is because even if the background density is originally a density corresponding to the density section X, the background density may be reflected in the density section X + 1 due to an error at the time of image reading. This is because it is excluded. However, the value of i is not limited to 2, and may be appropriately set according to the number of density categories. For example, when the number of density categories is greater than 32, i may be set to an integer of 3 or more. If the number of density categories is less than 32, i may be set to 1.

S15においてH(X)/H(X+i)≧T2であると判断した場合、判定部43は、総和算出部42が算出した濃度区分(X+i+1)から濃度区分32までのヒストグラム度数の総和値{H(32)+・・・+H(X+i+1)}が予め設定された閾値(第3閾値)T3未満であるか否かを判断する(S16)。   If it is determined in S15 that H (X) / H (X + i) ≧ T2, the determination unit 43 calculates the sum of histogram frequencies from the density section (X + i + 1) to the density section 32 calculated by the sum calculation section 42 {H It is determined whether (32) +... + H (X + i + 1)} is less than a preset threshold (third threshold) T3 (S16).

閾値T3は、原稿画像が台紙に貼り付けた原稿の画像である場合に台紙の影響をどの程度考慮するかに応じて適宜設定すればよく、特に限定されるものではないが、原稿画像データにおけるヒストグラムの生成対象とする領域のうち、台紙に貼りつけた原稿から読み取られる台紙の領域の画素数をP3としたときに、P3の60%〜80%程度に設定することが好ましい。例えば、原稿サイズ:A4、解像度600dpi、ヒストグラムの生成から除外される領域:主走査方向=副走査方向=3mm、台紙と貼り付けた原稿との間隔:2mmである場合、ヒストグラムの生成対象領域のうち読み取られる台紙の領域の画素数P3はP3=553989画素になる。このため、本実施形態では、閾値T3を40万画素に設定している。   The threshold T3 may be set as appropriate depending on how much the influence of the mount is considered when the document image is an image of a document pasted on the mount, and is not particularly limited. Of the areas to be generated by the histogram, when the number of pixels in the area of the mount read from the document pasted on the mount is P3, it is preferably set to about 60% to 80% of P3. For example, when the document size is A4, the resolution is 600 dpi, the area excluded from the generation of the histogram: main scanning direction = sub-scanning direction = 3 mm, and the interval between the mount and the pasted document: 2 mm, the histogram generation target area Of these, the number P3 of pixels of the mount area to be read is P3 = 553899 pixels. For this reason, in this embodiment, the threshold value T3 is set to 400,000 pixels.

台紙に貼り付けた原稿の場合、どの程度台紙の領域が読み取られるのか、および、原稿の読み取り位置の変動などを考慮して上記閾値T3を設定すればよい。上記閾値T3の値を小さくすると、貼り付けた原稿の背景が下地として判定されるのを抑制することができる。このため、本実施形態においては、上記閾値T3を上記P3の60%〜80%程度の値に設定している。ただし、閾値T3の範囲はこれに限るものではなく、台紙と貼り付けられる原稿との間隔を変えるとともに台紙の色や濃度を変更した種々の画像サンプルを用いて予め測定試験を行うなどして適宜設定すればよい。   In the case of a document pasted on a mount, the threshold value T3 may be set in consideration of how much the mount area is read and fluctuations in the reading position of the document. Decreasing the threshold value T3 can suppress the background of the pasted document from being determined as the background. For this reason, in the present embodiment, the threshold T3 is set to a value of about 60% to 80% of the P3. However, the range of the threshold value T3 is not limited to this, and it is appropriately determined by performing a measurement test in advance using various image samples in which the distance between the mount and the original to be pasted is changed and the color and density of the mount are changed. You only have to set it.

なお、上記閾値T1に乗算する係数として100%以上の値を設定するようにしてもよい。例えば、サイズがB5とA4の間である不定形の新聞の切り抜き原稿の読み取りを行う場合、マニュアル操作で出力する原稿サイズをA4に指定することができる。この場合、不定形の原稿サイズ以外の領域は原稿台の色が読み取られる。上記したように、上記閾値T1がP1×1/2の60%以上80%以下の範囲に設定されていると、不定形の原稿サイズ以外の領域が下地と判断され、新聞の下地が除去できなくなるおそれがある。このような場合、上記閾値T1をP1×1/2の100%以上に設定すればよい。例えば、操作パネルを用いて原稿サイズとして不定形が選択されたとき、上記閾値T1をP1×1/2の100%以上の値に切り換えるようにすればよい。この場合も、様々な不定形サイズの原稿を用いて測定試験を行うなどして、不定形原稿サイズ以外の領域が下地として検出されないように、上記P1×1/2に乗算する値を設定すればよい。   Note that a value of 100% or more may be set as a coefficient for multiplying the threshold value T1. For example, when reading a cut-out original of an irregular newspaper whose size is between B5 and A4, the original size to be output by manual operation can be designated as A4. In this case, the color of the document table is read in an area other than the irregular document size. As described above, when the threshold value T1 is set in the range of 60% to 80% of P1 × 1/2, the area other than the irregular document size is determined as the background, and the background of the newspaper can be removed. There is a risk of disappearing. In such a case, the threshold value T1 may be set to 100% or more of P1 × 1/2. For example, when an irregular size is selected as the document size using the operation panel, the threshold value T1 may be switched to a value of 100% or more of P1 × 1/2. In this case as well, by performing a measurement test using various irregular-size originals, a value to be multiplied by P1 × 1/2 is set so that an area other than the irregular-size original size is not detected as a background. That's fine.

また、閾値T1をP1×1/2の100%以上に設定する場合、上記閾値T3も上記P3の100%以上の値に設定し、図6のS16において、YESと判定されるようにしておくのが好ましい。このように閾値T3を上記P3の100%以上の値に設定することにより、不定形原稿サイズ以外の領域の度数が加算されて、S16の判定において下地無しとして誤判定されるのを防ぐことができる。この場合も、様々な不定形サイズの原稿を用いて測定試験を行うなどして、不定形の切り抜き原稿が下地無しとして誤判定されないように、上記P3に乗算する値を設定すればよい。   Further, when the threshold T1 is set to 100% or more of P1 × 1/2, the threshold T3 is also set to a value of 100% or more of P3, and it is determined as YES in S16 of FIG. Is preferred. Thus, by setting the threshold value T3 to a value of 100% or more of the above P3, the frequency of the area other than the irregular document size is added to prevent erroneous determination as no background in the determination of S16. it can. In this case as well, a value to be multiplied by P3 may be set so that an irregular cut-out original is not erroneously determined as having no background by performing a measurement test using originals of various irregular sizes.

そして、S16において上記総和値がT3未満であると判断した場合、判定部43は、下地除去を行うべきであると判断し、下地濃度区分をXとする(S17)。   If it is determined in S16 that the total value is less than T3, the determination unit 43 determines that background removal should be performed, and sets the background density classification to X (S17).

一方、S15においてH(X)/H(X+i)≧T2ではないと判断した場合、およびS16において上記総和値がT3以上であると判断した場合、判定部43は、下地除去を行うべきではないと判断し、下地濃度区分を32とする(S18)。すなわち、判定部43は、例えば図8のように下地部分の濃度と思われる濃度区分(X+i)よりも淡い濃度区分(X+i+1〜32)の度数の総和がT3より多い場合は、下地除去を行うべきでない(下地無し)と判定する。   On the other hand, if it is determined in S15 that H (X) / H (X + i) ≧ T2, and if it is determined in S16 that the total value is equal to or greater than T3, the determination unit 43 should not perform background removal. Therefore, the background density classification is set to 32 (S18). That is, for example, as shown in FIG. 8, the determination unit 43 performs background removal when the sum of the frequencies of the density sections (X + i + 1 to 32) that are lighter than the density sections (X + i) considered to be the density of the background portion is greater than T3. It is determined that it should not be (no background).

なお、S15において、現在の注目濃度区分が所定の濃度区分閾値T4(本実施形態ではT4=31)未満であるか否かの判定を行うようにしてもよい。   In S15, it may be determined whether or not the current target density category is less than a predetermined density category threshold T4 (T4 = 31 in the present embodiment).

以上のように、本実施形態では、ヒストグラム生成部34が原稿画像データにおける各画素の濃度値の所定の濃度区分毎の度数を示すヒストグラムを生成し、下地判定部35がヒストグラムに基づいて下地除去の要否を判定する。具体的には、下地判定部35は、ヒストグラムにおける度数の極大値のうち、所定の下地判定閾値T1以上であり、かつ最も濃度値が低い側(濃度が薄い側)に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分(X)に対して所定区分(本実施形態では2区分)だけ濃度値が低い側に位置する濃度区分である第2濃度区分(本実施形態ではX+2)の度数との比H(X)/H(X+2)が所定の下地有無判定閾値T2以上である場合に下地除去が必要であると判定し、下地有無判定閾値T2未満である場合に下地除去は不要であると判定する。   As described above, in the present embodiment, the histogram generation unit 34 generates a histogram indicating the frequency for each predetermined density section of the density value of each pixel in the document image data, and the background determination unit 35 removes the background based on the histogram. Whether or not is necessary is determined. Specifically, the background determination unit 35 has a maximum value that is equal to or higher than a predetermined background determination threshold value T1 and is located on the lowest density value side (thin density side) among the frequency maximum values in the histogram, A second concentration category (this implementation) that is a concentration category that is located on the lower concentration side by a predetermined division (2 divisions in the present embodiment) with respect to the first concentration division (X) that is a concentration division corresponding to the maximum value. In the embodiment, when the ratio H (X) / H (X + 2) to the frequency of X + 2) is equal to or higher than a predetermined background presence / absence determination threshold T2, it is determined that background removal is necessary, and is less than the background presence / absence determination threshold T2. It is determined that the background removal is unnecessary.

また、本実施形態では、下地判定部35が、第2濃度区分(X+2)よりも濃度値が低い各濃度区分(X+3〜32)についての度数の総和を算出する総和算出部42と、前記総和が所定の第3閾値T3よりも大きい場合には、前記比H(X)/H(X+2)と前記下地有無判定閾値T2との比較結果にかかわらず下地除去を行わないと判定する。   In the present embodiment, the background determination unit 35 calculates the sum of the frequencies for each density section (X + 3 to 32) having a density value lower than that of the second density section (X + 2), and the sum total. Is larger than a predetermined third threshold value T3, it is determined that the background removal is not performed regardless of the comparison result between the ratio H (X) / H (X + 2) and the background presence / absence determination threshold value T2.

これにより、例えば新聞のように真っ白ではない紙にインクで印刷されている原稿の場合、下地(紙における印字されていない部分)の濃度分布が狭いので、図7の(a)に示したように、ヒストグラムの山が急峻になり、濃度区分Xの度数H(X)が下地判定閾値T1以上になり、H(X)/H(X+2)が下地有無判定閾値T2以上になり、上記総和値がT3未満になって下地除去を行うべきである(下地濃度区分=X)と判定される。また、ヒストグラムのピークとなる濃度区分(あるいはヒストグラムのピークとなる濃度区分とそれに隣接する濃度区分)を下地部分の濃度として下地除去処理が行われる。   Thus, for example, in the case of a document printed with ink on a non-white paper such as a newspaper, the density distribution of the base (the unprinted portion of the paper) is narrow, so as shown in FIG. In addition, the peak of the histogram becomes steep, the frequency H (X) of the density section X is equal to or higher than the background determination threshold T1, H (X) / H (X + 2) is equal to or higher than the background presence / absence determination threshold T2, and the above sum value Is less than T3 and it is determined that the background should be removed (background density division = X). Further, the background removal processing is performed with the density section that is the peak of the histogram (or the density section that is the peak of the histogram and the density section adjacent thereto) as the density of the background portion.

また、背景となる部分がハイライト濃度で紙の全体に印字されているようなプリンタ出力原稿の場合、ハイライト濃度部分は下地画素に判別されることが多く、ハイライト濃度の背景部分の濃度分布は広いため、図7の(b)のようにヒストグラムの山が急峻ではなくなる。このため、H(X)/H(X+2)が下地有無判定閾値T2未満となり、下地無し、すなわち下地除去を行うべきでない(下地濃度区分=32)と判定される。このように、本実施形態では、濃度区分(X+2)の度数H(X+2)に対する度数H(X)を、下地候補を判断される領域のヒストグラムの広がり(分散)を示す指標として使用している。上記H(X)/H(X+2)により、真っ白ではない紙に印刷された原稿(下地除去を行う原稿)と下地(背景)が印刷されているプリンタ出力原稿(下地除去を行わない原稿)とを区別することが可能となる。上記閾値T2は、下地候補の領域の極大値と、下地候補領域のヒストグラムの広がりを表す濃度区分における度数とにより設定される値であるということができる。これにより、ハイライト濃度の背景部分は原稿を作る際に意図的に色付けされたものであるにもかかわらず、背景部分の色が誤判定により除去されてしまうという不具合を防止することができる。   Also, in the case of a printer output document in which the background part is printed on the entire paper with the highlight density, the highlight density part is often identified as the background pixel, and the density of the background part of the highlight density Since the distribution is wide, the peak of the histogram is not steep as shown in FIG. For this reason, H (X) / H (X + 2) is less than the background presence / absence determination threshold value T2, and it is determined that there is no background, that is, background removal should not be performed (background density classification = 32). As described above, in the present embodiment, the frequency H (X) with respect to the frequency H (X + 2) of the density classification (X + 2) is used as an index indicating the spread (variance) of the histogram of the area where the background candidate is determined. . By using the above H (X) / H (X + 2), a document printed on paper that is not white (a document for which background removal is performed) and a printer output document on which a background (background) is printed (a document for which background removal is not performed) Can be distinguished. It can be said that the threshold value T2 is a value set by the maximum value of the background candidate region and the frequency in the density section representing the spread of the histogram of the background candidate region. As a result, it is possible to prevent a problem that the color of the background portion is removed by erroneous determination even though the background portion of the highlight density is intentionally colored when the document is made.

また、例えば、淡い色の台紙に雑誌などから切り取った画像を貼りつけた原稿などの場合、貼りつけた画像のヒストグラムのピークよりも低濃度側に台紙の色に対応する度数が現れる。これに対して、上記の構成では、下地判定部35が、第2濃度区分(X+2)よりも濃度値が低い各濃度区分(X+3〜32)についての度数の総和を算出する総和算出部42と、前記総和が所定の第3閾値T3よりも大きい場合には、前記比H(X)/H(X+2)と下地有無判定閾値T2との比較結果にかかわらず下地除去を行わないと判定する。これにより、台紙の色が誤って除去されることを防止できる。   Further, for example, in the case of an original or the like in which an image cut from a magazine or the like is pasted on a light color mount, the frequency corresponding to the color of the mount appears on the lower density side than the peak of the histogram of the pasted image. On the other hand, in the configuration described above, the background determination unit 35 includes a sum total calculation unit 42 that calculates the sum of the frequencies for each density category (X + 3 to 32) having a density value lower than that of the second density category (X + 2). If the sum is larger than the predetermined third threshold value T3, it is determined that the background removal is not performed regardless of the comparison result between the ratio H (X) / H (X + 2) and the background presence / absence determination threshold value T2. Thereby, it can prevent that the color of a mount is removed accidentally.

また、本実施形態では、領域画素中の下地画素と判定された画素についてヒストグラムを生成している。この場合、下地画素について生成したヒストグラムに基づいて、下地の判定(下地除去の要否の判定)を行うとともに、原稿種別の判別を行うことができる。例えば、ヒストグラムの濃度区分が32である場合、1/2以上の濃度区分において度数が所定値以上あれば、写真(連続階調写真)原稿であると判定することができる。ただし、下地画素についてのヒストグラムを生成する構成に限らず、他の領域画素も含めたヒストグラムを生成し、当該ヒストグラムに基づいて下地の判定を行うようにしてもよい。   Further, in the present embodiment, a histogram is generated for pixels determined as background pixels in the region pixels. In this case, based on the histogram generated for the background pixel, it is possible to determine the background (determination of necessity of background removal) and to determine the document type. For example, when the density category of the histogram is 32, it can be determined that the document is a photo (continuous tone photo) document if the frequency is equal to or greater than a predetermined value in a density category of 1/2 or more. However, the present invention is not limited to a configuration for generating a histogram for a background pixel, and a histogram including other region pixels may be generated and the background may be determined based on the histogram.

〔実施形態2〕
本発明の他の実施形態について説明する。なお、説明の便宜上、上述した実施形態と同様の機能を有する部材には同じ符号を付し、その説明を省略する。
[Embodiment 2]
Another embodiment of the present invention will be described. For convenience of explanation, members having the same functions as those in the above-described embodiment are denoted by the same reference numerals, and description thereof is omitted.

実施形態1では、ヒストグラム生成部34が、領域画素中の下地画素と判定された画素について、各画素の色成分のうちの最小値の度数を示す最小値ヒストグラムを生成する構成について説明した。   In the first embodiment, the configuration has been described in which the histogram generation unit 34 generates a minimum value histogram indicating the frequency of the minimum value of the color components of each pixel for the pixel determined as the background pixel in the region pixel.

これに対して、本実施形態では、ヒストグラム生成部34が、最小値ヒストグラムに代えて、L値ヒストグラム(輝度値ヒストグラム)を生成する。 On the other hand, in the present embodiment, the histogram generation unit 34 generates an L * value histogram (luminance value histogram) instead of the minimum value histogram.

具体的には、ヒストグラム生成部34は、シェーディング補正部12から入力されたRGB信号をL信号に色変換し、領域画素中の下地画素と判定された注目画素について、L値ヒストグラム生成処理を行う。RGB信号からL信号への色変換処理は、特に限定されるものではなく、従来から公知の方法を用いることができる。 Specifically, the histogram generation unit 34 color-converts the RGB signal input from the shading correction unit 12 into an L * a * b * signal, and for the target pixel determined as the background pixel in the region pixel, L * A value histogram generation process is performed. The color conversion process from the RGB signal to the L * a * b * signal is not particularly limited, and a conventionally known method can be used.

ヒストグラムの濃度区分数は、例えば、L値(信号値)が小さい方から第1濃度区分、第2濃度区分とし、L値が最も大きい区分を第32濃度区分とする32区分を設ける。 The number of density sections of the histogram includes, for example, 32 sections in which the L * value (signal value) is the first density section and the second density section from the smallest, and the section having the largest L * value is the 32nd density section.

値ヒストグラムを用いる場合、下地濃度値をL値で求めることができ、L値を用いて下地除去処理を行うことができる。すなわち、L値ヒストグラムを作成した場合、下地除去部37は、L値による下地濃度値に対応する補正量テーブルを選択し下地除去処理を行うことができる。 When using the L * value histogram, it is possible to determine the background density value in the L * value, it is possible to perform the under color removal process using L * value. That is, when the L * value histogram is created, the background removal unit 37 can select the correction amount table corresponding to the background density value based on the L * value and perform the background removal process.

〔実施形態3〕
本発明のさらに他の実施形態について説明する。なお、説明の便宜上、上述した実施形態と同様の機能を有する部材には同じ符号を付し、その説明を省略する。
[Embodiment 3]
Still another embodiment of the present invention will be described. For convenience of explanation, members having the same functions as those in the above-described embodiment are denoted by the same reference numerals, and description thereof is omitted.

上述した各実施形態では、本発明を、カラー画像入力装置2、カラー画像処理装置3、およびカラー画像出力装置4を備えた画像形成装置1に適用する場合について説明した。これに対して、本実施形態では、本発明をフラットベッドスキャナなどの画像読取装置に適用する場合の例について説明する。   In each of the above-described embodiments, the case where the present invention is applied to the image forming apparatus 1 including the color image input device 2, the color image processing device 3, and the color image output device 4 has been described. In contrast, in the present embodiment, an example in which the present invention is applied to an image reading apparatus such as a flat bed scanner will be described.

図9は、本実施形態にかかる画像読取装置1bの構成を示すブロック図である。   FIG. 9 is a block diagram illustrating a configuration of the image reading apparatus 1b according to the present embodiment.

図9に示すように、画像読取装置1bは、カラー画像入力装置2とカラー画像処理装置3bとで構成される。カラー画像処理装置3bは、A/D変換部11、シェーディング補正部12、および原稿特徴判別部13を備えている。   As shown in FIG. 9, the image reading device 1b includes a color image input device 2 and a color image processing device 3b. The color image processing device 3 b includes an A / D conversion unit 11, a shading correction unit 12, and a document feature determination unit 13.

カラー画像入力装置2は、原稿を読み取って原稿の画像データを生成し、生成した画像データをカラー画像処理装置3に出力する。なお、カラー画像入力装置2の構成は、原稿の画像データを生成することができる構成であれば特に限定されるものではなく、従来から公知の種々の画像入力装置を用いることができる。例えば、CCD(Charge Coupled Device )を備えたスキャナ部(図示せず)を有し、原稿からの反射光像をCCDで読み取ってRGB(R:赤、G:緑、B:青)のアナログ信号から成る画像データを生成する構成のものを用いてもよい。   The color image input device 2 reads a document to generate image data of the document, and outputs the generated image data to the color image processing device 3. The configuration of the color image input device 2 is not particularly limited as long as it can generate image data of a document, and various conventionally known image input devices can be used. For example, a scanner unit (not shown) having a CCD (Charge Coupled Device) is provided, and an RGB (R: red, G: green, B: blue) analog signal is obtained by reading a reflected light image from an original with the CCD. It is also possible to use a configuration that generates image data consisting of:

カラー画像処理装置3bは、カラー画像入力装置2から入力される画像データを、A/D変換部11、シェーディング補正部12、原稿特徴判別部13の順に送る。   The color image processing device 3b sends the image data input from the color image input device 2 in the order of the A / D conversion unit 11, the shading correction unit 12, and the document feature determination unit 13.

A/D変換部11は、RGBのそれぞれに対応するアナログ信号の画像データをデジタル信号の画像データに変換する。   The A / D conversion unit 11 converts image data of analog signals corresponding to each of RGB into image data of digital signals.

シェーディング補正部12は、A/D変換部11から送られてきたRGBに対応するデジタル信号の画像データに対して、カラー画像入力装置2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施す。また、シェーディング補正部12は、カラーバランスの調整を行う。
画像読取装置40から出力された画像データおよび原稿特徴判別信号は、ネットワークを介してプリンタや複合機に、あるいは、コンピュータに送信される。
The shading correction unit 12 performs various distortions generated in the illumination system, the imaging system, and the imaging system of the color image input device 2 with respect to image data of digital signals corresponding to RGB sent from the A / D conversion unit 11. Apply a process to remove. Further, the shading correction unit 12 adjusts the color balance.
The image data and document feature determination signal output from the image reading device 40 are transmitted to a printer, a multifunction peripheral, or a computer via a network.

原稿特徴判別部13は、シェーディング補正部12にて各種の歪みが取り除かれ、カラーバランスの調整がなされたRGB信号(RGBの反射率信号)を濃度信号に変換する。また、原稿特徴判別部13は、(i)原稿が文字原稿、印刷写真原稿、あるいは文字と印刷写真が混在した文字印刷写真原稿のいずれであるかを判別する原稿種別判定処理、および(ii)下地除去処理を行うべき原稿である否かを判別する下地判定処理を行う。また、原稿特徴判別部13は、原稿種別判定処理の結果を示す原稿特徴判定信号を生成し、通信ネットワークを介して他の装置(例えばプリンタ、複合機、コンピュータ等)に送信する。なお、原稿特徴判別部13の構成は実施形態1と略同様なので、ここではその説明を省略する。   The document feature determination unit 13 converts 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, into a density signal. Further, the document feature determination unit 13 (i) a document type determination process for determining whether the document is a character document, a printed photograph document, or a character printed photograph document in which characters and a printed photograph are mixed, and (ii) Background determination processing is performed to determine whether the document is to be subjected to background removal processing. The document feature determination unit 13 also generates a document feature determination signal indicating the result of the document type determination process, and transmits the document feature determination signal to another device (for example, a printer, a multifunction peripheral, a computer, etc.) via the communication network. Note that the configuration of the document feature determination unit 13 is substantially the same as that of the first embodiment, and thus the description thereof is omitted here.

〔実施形態4〕
本発明のさらに他の実施形態について説明する。なお、説明の便宜上、上述した実施形態と同様の機能を有する部材には同じ符号を付し、その説明を省略する。
[Embodiment 4]
Still another embodiment of the present invention will be described. For convenience of explanation, members having the same functions as those in the above-described embodiment are denoted by the same reference numerals, and description thereof is omitted.

カラー画像処理装置3,3bの制御ブロック(特に原稿特徴判別部13)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェアによって実現してもよい。   The control blocks (particularly the document feature determination unit 13) of the color image processing apparatuses 3 and 3b may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or a CPU (Central Processing Unit). ) May be implemented by software.

後者の場合、カラー画像処理装置3,3bは、各機能を実現するソフトウェアであるプログラムの命令を実行するCPU、上記プログラムおよび各種データがコンピュータ(またはCPU)で読み取り可能に記録されたROM(Read Only Memory)または記憶装置(これらを「記録媒体」と称する)、上記プログラムを展開するRAM(Random Access Memory)などを備えている。そして、コンピュータ(またはCPU)が上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記記録媒体としては、「一時的でない有形の媒体」、例えば、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。   In the latter case, the color image processing apparatuses 3 and 3b include a CPU that executes instructions of a program that is software that realizes each function, and a ROM (Read that records the above-described program and various data so that the computer (or CPU) can read them. Only Memory) or a storage device (these are referred to as “recording media”), a RAM (Random Access Memory) for expanding the program, and the like. And the objective of this invention is achieved when a computer (or CPU) reads the said program from the said recording medium and runs it. As the recording medium, a “non-temporary tangible medium” such as a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. The program may be supplied to the computer via an arbitrary transmission medium (such as a communication network or a broadcast wave) that can transmit the program. The present invention can also be realized in the form of a data signal embedded in a carrier wave in which the program is embodied by electronic transmission.

これにより、原稿特徴判別部13の処理を実行するプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録した記録媒体を持ち運び自在に提供することができる。また、記録媒体に記録させたプログラムを画像形成装置1、画像読取装置1b、あるいはコンピュータシステムに備えられるプログラム読取装置に読み取られせることにより、上記の原稿特徴判別処理を実行させることができる。   As a result, it is possible to provide a portable recording medium on which the program code (execution format program, intermediate code program, source program) for executing the processing of the document feature determination unit 13 is recorded. Further, the above-described document feature determination process can be executed by causing the image forming apparatus 1, the image reading apparatus 1 b, or the program reading apparatus included in the computer system to read the program recorded on the recording medium.

コンピュータシステムは、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラなどの画像入力装置、所定のプログラムコードがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ、液晶ディスプレイなどの画像表示装置およびコンピュータの処理結果を紙などに出力するプリンタにより構成されていてもよい。また、ネットワークを介してサーバーなどに接続するための通信手段としてのネットワークカードやモデムなどを備えていてもよい。   The computer system includes an image input device such as a flatbed scanner, a film scanner, 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 may be used. Further, a network card, a modem, or the like as a communication means for connecting to a server or the like via a network may be provided.

〔まとめ〕
本発明の態様1にかかる画像処理装置(カラー画像処理装置3,3b)は、原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成部34と、前記ヒストグラムに基づいて下地除去の要否を判定する下地判定部35とを備え、前記下地判定部35は、前記ヒストグラムの極大値のうち、所定の第1閾値(下地判定閾値T1)以上であり、かつ最も濃度が薄い側に位置する極大値H(X)と、当該極大値H(X)に対応する濃度区分である第1濃度区分Xに対して所定濃度区分数iだけ濃度が薄い側に位置する濃度区分である第2濃度区分X+iの度数との比H(X)/H(X+i)が所定の第2閾値(下地有無判定閾値T2)以上である場合に下地除去が必要であると判定することを特徴としている。
[Summary]
The image processing apparatus (color image processing apparatuses 3 and 3b) according to the first aspect of the present invention includes a histogram generation unit 34 that generates a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data; A background determination unit 35 that determines whether or not background removal is necessary based on the histogram, and the background determination unit 35 is equal to or greater than a predetermined first threshold (background determination threshold T1) among the maximum values of the histogram. Further, the maximum density H (X) located on the side where the density is the thinnest and the side where the density is lower than the first density section X corresponding to the maximum value H (X) by a predetermined density section number i. The background removal is necessary when the ratio H (X) / H (X + i) with the frequency of the second density section X + i, which is the density section located at, is equal to or higher than a predetermined second threshold (background presence / absence determination threshold T2). Judging It is characterized.

上記の構成によれば、原稿の下地とプリンタで印刷された背景画像とを適切に識別することができる。すなわち、新聞などの真っ白ではない紙にインクで印刷されている原稿に対しては下地除去(紙色の除去)を適正に行い、背景部分が紙全体にハイライト濃度で印字した画像であるプリンタ出力原稿等に対してはハイライト濃度部分を下地と誤判定して除去してしまうことを防止できる。   According to the above configuration, it is possible to appropriately identify the background of the original and the background image printed by the printer. In other words, for a document printed with ink on paper that is not white, such as a newspaper, the background is appropriately removed (paper color removal), and the background portion is an image printed on the entire paper with a highlight density. For an output document or the like, it is possible to prevent the highlight density portion from being erroneously determined as the background and removed.

本発明の態様2にかかる画像処理装置(カラー画像処理装置3,3b)は、上記態様1において、前記第2濃度区分X+iよりも濃度が薄い各濃度区分についての前記度数の総和を算出する総和算出部42を備え、前記下地判定部35は、前記総和が所定の第3閾値T3よりも大きい場合には下地除去を行わない構成である。   The image processing apparatus (color image processing apparatuses 3 and 3b) according to aspect 2 of the present invention is the sum for calculating the sum of the frequencies for each density section whose density is lower than that of the second density section X + i in aspect 1. The calculation unit 42 is provided, and the background determination unit 35 is configured not to perform background removal when the sum is larger than a predetermined third threshold T3.

上記の構成によれば、例えば、原稿が台紙の一部に画像(雑誌等から切り取った画像など)を貼り付けた原稿の場合などに、台紙の色が誤って除去されることを防止できる。   According to the above configuration, for example, when the original is an original in which an image (an image cut from a magazine or the like) is pasted on a part of the mount, the color of the mount can be prevented from being erroneously removed.

本発明の態様3にかかる画像処理装置(カラー画像処理装置3,3b)は、上記態様1または2において、前記原稿画像データは、原稿台に載置された原稿を読み取る画像読取装置(カラー画像入力装置2)で原稿を読み取って生成された画像データであり、前記ヒストグラム生成部34は、前記原稿画像データのうち、前記原稿における前記画像読取装置(カラー画像入力装置2)で読み取るときに前記原稿台の端部に配置されていた領域の原稿画像データをヒストグラムの生成処理の対象から除外する構成である。   The image processing apparatus (color image processing apparatuses 3 and 3b) according to the third aspect of the present invention is the image reading apparatus (color image) that reads the original placed on the original table in the first or second aspect. Image data generated by reading an original with the input device 2), and the histogram generator 34 reads the original image data with the image reading device (color image input device 2) in the original. In this configuration, the document image data in the area arranged at the end of the document table is excluded from the histogram generation processing target.

一般に、原稿台に載置された原稿を読み取る形式の画像読取装置では、原稿台の縁に近い部分では、原稿台との間で原稿を挟み込む原稿カバーが原稿の上に載らず、その部分が原稿カバーが載っている部分よりも暗めに読み込まれてしまうことがある。このため、本来は下地の濃度域が狭いはずなのに濃度域が広がってしまい、下地無しとして誤判定されてしまう場合がある。これに対して、上記の構成によれば、原稿画像データのうち、画像読取装置で読み取るときに原稿台の端部に配置されていた領域の原稿画像データをヒストグラムの生成処理の対象から除外する。これにより、原稿読取時に生じる誤差に起因して下地有無の誤判定が生じることを防止できる。   In general, in an image reading apparatus that reads a document placed on a document table, a document cover that sandwiches the document between the document table and the document table is not placed on the document at a portion near the edge of the document table. The document may be read darker than the part on which the document cover is placed. For this reason, although the density range of the background should originally be narrow, the density range is widened, and it may be erroneously determined that there is no background. On the other hand, according to the above configuration, the original image data in the area arranged at the end of the original table when the image reading apparatus reads the original image data is excluded from the histogram generation processing targets. . As a result, it is possible to prevent erroneous determination of the presence / absence of the background due to an error that occurs during document reading.

本発明の態様4にかかる画像処理装置(カラー画像処理装置3,3b)は、上記態様1から3のいずれかにおいて、前記ヒストグラム生成部34は、前記ヒストグラムとして、原稿画像データにおける各画素の色成分毎の濃度値のうち最も濃度が濃い濃度値のヒストグラムを生成する構成である。   In the image processing apparatus (color image processing apparatuses 3 and 3b) according to aspect 4 of the present invention, in any one of the above aspects 1 to 3, the histogram generation unit 34 uses the color of each pixel in the document image data as the histogram. In this configuration, a histogram of density values having the highest density among density values for each component is generated.

上記の構成によれば、原稿の下地とプリンタで印刷された背景画像とを適切に識別することができる。   According to the above configuration, it is possible to appropriately identify the background of the original and the background image printed by the printer.

本発明の態様5にかかる画像処理装置(カラー画像処理装置3,3b)は、上記態様1から3のいずれかにおいて、前記ヒストグラム生成部34は、原稿画像データをL信号に色変換し、前記ヒストグラムとして、各画素についてのLのヒストグラムを生成する構成である。 In the image processing apparatus (color image processing apparatuses 3 and 3b) according to the fifth aspect of the present invention, in any one of the first to third aspects, the histogram generation unit 34 converts the document image data into an L * a * b * signal. Color conversion is performed, and an L * histogram for each pixel is generated as the histogram.

上記の構成によれば、原稿の下地とプリンタで印刷された背景画像とを適切に識別することができる。   According to the above configuration, it is possible to appropriately identify the background of the original and the background image printed by the printer.

本発明の態様6にかかる画像形成装置1は、上記態様1から5のいずれかに記載の画像処理装置(カラー画像処理装置)3を備えている構成である。   An image forming apparatus 1 according to an aspect 6 of the present invention includes the image processing apparatus (color image processing apparatus) 3 according to any one of the above aspects 1 to 5.

上記の構成によれば、原稿の下地とプリンタで印刷された背景画像とを適切に識別し、その識別結果に応じた適切な画像形成を行うことができる。   According to the above configuration, it is possible to appropriately identify the background of the document and the background image printed by the printer, and perform appropriate image formation according to the identification result.

本発明の態様7にかかる画像処理方法は、原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成工程と、前記ヒストグラムに基づいて下地除去の要否を判定する下地判定工程とを含み、前記下地判定工程では、前記ヒストグラムの極大値のうち、所定の第1閾値(下地判定閾値T1)以上であり、かつ最も濃度が薄い側に位置する極大値H(X)と、当該極大値H(X)に対応する濃度区分である第1濃度区分Xに対して所定濃度区分数iだけ濃度が薄い側に位置する濃度区分である第2濃度区分X+iの度数との比H(X)/H(X+i)が所定の第2閾値(下地有無判定閾値T2)以上である場合に下地除去が必要であると判定することを特徴としている。   An image processing method according to an aspect 7 of the present invention includes a histogram generation step of generating a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data, and whether or not background removal is necessary based on the histogram. In the background determination step, a maximum value that is equal to or greater than a predetermined first threshold value (background determination threshold value T1) among the maximum values of the histogram and is located on the side with the lowest density. H (X) and a second density section X + i which is a density section located on the side where the density is thinner by a predetermined density section number i than the first density section X which is a density section corresponding to the maximum value H (X). When the ratio H (X) / H (X + i) to the frequency is equal to or higher than a predetermined second threshold (background presence / absence determination threshold T2), it is determined that background removal is necessary.

上記の方法によれば、原稿の下地とプリンタで印刷された背景画像とを適切に識別することができる。すなわち、新聞などの真っ白ではない紙にインクで印刷されている原稿に対しては下地除去(紙色の除去)を適正に行い、背景部分が紙全体にハイライト濃度で印字した画像であるプリンタ出力原稿等に対してはハイライト濃度部分を下地と誤判定して除去してしまうことを防止できる。   According to the above method, it is possible to appropriately identify the background of the original and the background image printed by the printer. In other words, for a document printed with ink on paper that is not white, such as a newspaper, the background is appropriately removed (paper color removal), and the background portion is an image printed on the entire paper with a highlight density. For an output document or the like, it is possible to prevent the highlight density portion from being erroneously determined as the background and removed.

本発明の各態様に係る画像処理装置は、コンピュータによって実現してもよく、この場合には、コンピュータを前記ヒストグラム生成部および前記下地判定部として動作させることにより前記画像処理装置をコンピュータにて実現させる画像処理プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も本発明の範疇に含まれる。   The image processing apparatus according to each aspect of the present invention may be realized by a computer. In this case, the image processing apparatus is realized by a computer by causing the computer to operate as the histogram generation unit and the background determination unit. An image processing program to be executed and a computer-readable recording medium on which the image processing program is recorded are also included in the scope of the present invention.

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

本発明は、原稿画像データに基づいて原稿の下地の信号レベルを検出する画像処理装置および画像処理方法に適用できる。   The present invention can be applied to an image processing apparatus and an image processing method for detecting a signal level of a background of a document based on document image data.

1 画像形成装置
1b 画像読取装置
2 カラー画像入力装置
3,3b カラー画像処理装置(画像処理装置)
4 カラー画像出力装置
5 操作パネル
6 制御部
11 A/D変換部
12 シェーディング補正部
13 原稿特徴判別部
14 入力階調補正部
15 領域分離処理部
16 色補正部
17 黒生成下色除去部
18 空間フィルタ処理部
19 出力階調補正部
20 階調再現処理部
31 画素判定部
32 領域画素カウント部
33 データ選択部
34 ヒストグラム生成部
35 下地判定部
36 原稿種別判定部
37 下地除去部
40 画像読取装置
41 ピーク値算出部
42 総和算出部
43 判定部
T1 下地判定閾値(第1閾値)
T2 下地有無判定閾値(第2閾値)
T3 閾値(第3閾値)
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 1b Image reading apparatus 2 Color image input apparatus 3, 3b Color image processing apparatus (image processing apparatus)
4 Color image output device 5 Operation panel 6 Control unit 11 A / D conversion unit 12 Shading correction unit 13 Document feature determination unit 14 Input gradation correction unit 15 Area separation processing unit 16 Color correction unit 17 Black generation and under color removal unit 18 Space Filter processing unit 19 Output tone correction unit 20 Tone reproduction processing unit 31 Pixel determination unit 32 Region pixel count unit 33 Data selection unit 34 Histogram generation unit 35 Background determination unit 36 Document type determination unit 37 Background removal unit 40 Image reading device 41 Peak value calculation unit 42 Total calculation unit 43 Determination unit T1 Background determination threshold (first threshold)
T2 Background determination threshold (second threshold)
T3 threshold (third threshold)

Claims (12)

原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成部と、
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定部とを備え、
前記下地判定部は、
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、
さらに、前記第2濃度区分よりも濃度が濃い各濃度区分についての前記度数の総和を算出する総和算出部を備え、
前記下地判定部は、前記総和が所定の第3閾値よりも大きい場合には下地除去を行わないことを特徴とする画像処理装置。
A histogram generation unit that generates a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
A background determination unit that determines whether or not background removal is necessary based on the histogram,
The background determination unit
Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value ,
Furthermore, a sum total calculation unit that calculates the sum of the frequencies for each density section having a density higher than that of the second density section,
The image processing apparatus according to claim 1, wherein the background determination unit does not perform background removal when the sum is larger than a predetermined third threshold value .
原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成部と、
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定部とを備え、
前記下地判定部は、
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、
前記原稿画像データは、原稿台に載置された原稿を読み取る画像読取装置で原稿を読み取って生成された画像データであり、
前記ヒストグラム生成部は、前記原稿画像データのうち、前記画像読取装置で読み取るときに前記原稿台の端部に配置されていた領域の原稿画像データをヒストグラムの生成処理の対象から除外することを特徴とする画像処理装置。
A histogram generation unit that generates a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
A background determination unit that determines whether or not background removal is necessary based on the histogram,
The background determination unit
Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value,
The document image data is image data generated by reading a document with an image reading device that reads a document placed on a document table,
The histogram generation unit excludes, from the original image data, original image data of an area arranged at an end portion of the original table when being read by the image reading apparatus from a target for generating a histogram. and images processing apparatus you.
原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成部と、
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定部とを備え、
前記下地判定部は、
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、
前記ヒストグラム生成部は、前記ヒストグラムとして、原稿画像データにおける各画素の色成分毎の濃度値のうち最も濃度が濃い濃度値のヒストグラムを生成することを特徴とする画像処理装置。
A histogram generation unit that generates a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
A background determination unit that determines whether or not background removal is necessary based on the histogram,
The background determination unit
Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value,
The histogram generation unit, as the histogram, most-enriched density value images processor you and generating a histogram of the density values of each color component of each pixel in the original image data.
原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成部と、
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定部とを備え、
前記下地判定部は、
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、
前記ヒストグラム生成部は、原稿画像データをL信号に色変換し、前記ヒストグラムとして、各画素についてのLのヒストグラムを生成することを特徴とする画像処理装置。
A histogram generation unit that generates a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
A background determination unit that determines whether or not background removal is necessary based on the histogram,
The background determination unit
Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value,
The histogram generation unit, the original image data to color conversion to L * a * b * signal, as the histogram, images processor you and generates the histogram of L * for each pixel.
請求項1からのいずれか1項に記載の画像処理装置を備えていることを特徴とする画像形成装置。 An image forming apparatus characterized by comprising an image processing apparatus according to any one of claims 1 to 4. 原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成工程と、
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定工程とを含み、
前記下地判定工程では、
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、
さらに、前記第2濃度区分よりも濃度が濃い各濃度区分についての前記度数の総和を算出する総和算出工程を含み、
前記下地判定工程では、前記総和が所定の第3閾値よりも大きい場合には下地除去を行わないことを特徴とする画像処理方法。
A histogram generating step for generating a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
A background determination step of determining whether or not background removal is necessary based on the histogram,
In the ground determination step,
Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value ,
And a sum total calculating step of calculating the sum of the frequencies for each density section having a density higher than that of the second density section,
In the background determination step, the background removal is not performed when the sum is larger than a predetermined third threshold value .
原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成工程と、  A histogram generating step for generating a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定工程とを含み、  A background determination step of determining whether or not background removal is necessary based on the histogram,
前記下地判定工程では、  In the ground determination step,
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、  Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value,
前記原稿画像データは、原稿台に載置された原稿を読み取る画像読取装置で原稿を読み取って生成された画像データであり、  The document image data is image data generated by reading a document with an image reading device that reads a document placed on a document table,
前記ヒストグラム生成工程では、前記原稿画像データのうち、前記画像読取装置で読み取るときに前記原稿台の端部に配置されていた領域の原稿画像データをヒストグラムの生成処理の対象から除外することを特徴とする画像処理方法。  In the histogram generating step, the document image data in an area arranged at the end of the document table when the image reading device reads the document image data is excluded from a histogram generation process target. An image processing method.
原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成工程と、  A histogram generating step for generating a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定工程とを含み、  A background determination step of determining whether or not background removal is necessary based on the histogram,
前記下地判定工程では、  In the ground determination step,
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、  Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value,
前記ヒストグラム生成工程では、前記ヒストグラムとして、原稿画像データにおける各画素の色成分毎の濃度値のうち最も濃度が濃い濃度値のヒストグラムを生成することを特徴とする画像処理方法。  In the histogram generation step, an image processing method is characterized in that a histogram having a darkest density value among density values for each color component of each pixel in the document image data is generated as the histogram.
原稿画像データにおける各画素の信号値の所定の濃度区分毎の度数を示すヒストグラムを生成するヒストグラム生成工程と、  A histogram generating step for generating a histogram indicating the frequency for each predetermined density section of the signal value of each pixel in the document image data;
前記ヒストグラムに基づいて下地除去の要否を判定する下地判定工程とを含み、  A background determination step of determining whether or not background removal is necessary based on the histogram,
前記下地判定工程では、  In the ground determination step,
前記ヒストグラムの極大値のうち、所定の第1閾値以上であり、かつ最も濃度が薄い側に位置する極大値と、当該極大値に対応する濃度区分である第1濃度区分に対して所定濃度区分数だけ濃度が薄い側に位置する濃度区分である第2濃度区分の度数との比が所定の第2閾値以上である場合に下地除去が必要であると判定し、  Among the local maximum values of the histogram, a predetermined density section with respect to a local maximum value that is equal to or greater than a predetermined first threshold and is located on the side with the lowest density, and a first density section that is a density section corresponding to the local maximum value It is determined that the background removal is necessary when the ratio with the frequency of the second density section, which is the density section located on the side where the density is lighter than the number, is equal to or greater than a predetermined second threshold value,
前記ヒストグラム生成工程では、原稿画像データをL  In the histogram generation step, the document image data is converted to L * a * b * 信号に色変換し、前記ヒストグラムとして、各画素についてのLThe signal is color-converted, and as the histogram, L for each pixel * のヒストグラムを生成することを特徴とする画像処理方法。An image processing method characterized by generating a histogram.
コンピュータを請求項1に記載の画像処理装置として機能させるための画像処理プログラムであって、コンピュータを前記ヒストグラム生成部、前記下地判定部、および前記総和算出部として機能させるための画像処理プログラム。 An image processing program for causing an image processing apparatus according to computer to claim 1, wherein the histogram generation unit computer, before Symbol background determination unit, and an image processing program for functioning as the total sum calculation unit. コンピュータを請求項2から4のいずれか1項に記載の画像処理装置として機能させるための画像処理プログラムであって、コンピュータを前記ヒストグラム生成部および前記下地判定部として機能させるための画像処理プログラム。 An image processing program for causing a computer to function as the image processing apparatus according to claim 2 , wherein the computer causes the computer to function as the histogram generation unit and the background determination unit. 請求項10または11に記載の画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体。
The computer-readable recording medium which recorded the image processing program of Claim 10 or 11 .
JP2015104765A 2015-05-22 2015-05-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor Active JP6474315B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015104765A JP6474315B2 (en) 2015-05-22 2015-05-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015104765A JP6474315B2 (en) 2015-05-22 2015-05-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor

Publications (2)

Publication Number Publication Date
JP2016220107A JP2016220107A (en) 2016-12-22
JP6474315B2 true JP6474315B2 (en) 2019-02-27

Family

ID=57578695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015104765A Active JP6474315B2 (en) 2015-05-22 2015-05-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor

Country Status (1)

Country Link
JP (1) JP6474315B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6797716B2 (en) * 2017-02-28 2020-12-09 キヤノン株式会社 Image processing device and image processing method
CN117036364B (en) * 2023-10-09 2024-01-02 全芯智造技术有限公司 Image processing method and device, storage medium and computing equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003051946A (en) * 2001-05-28 2003-02-21 Sharp Corp Image processing method, image processing apparatus, imaging device provided with the image processing apparatus, image processing program, and computer- readable recording medium with the program recorded
JP4101188B2 (en) * 2004-01-30 2008-06-18 キヤノン株式会社 Image processing apparatus, image processing method, and computer program
JP4073877B2 (en) * 2004-02-23 2008-04-09 シャープ株式会社 Image processing method, image processing apparatus, image forming apparatus, and computer program
JP2011015172A (en) * 2009-07-01 2011-01-20 Sharp Corp Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image

Also Published As

Publication number Publication date
JP2016220107A (en) 2016-12-22

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
JP4166744B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
US8041112B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, computer-readable storage medium for storing the image processing program with segmentation and density correction optimization
JP4170353B2 (en) Image processing method, image processing apparatus, image reading apparatus, image forming apparatus, program, and recording medium
US7742194B2 (en) Image processing device, image processing method, image forming apparatus, image processing program, and storage medium
JP4531606B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP2002232708A (en) Image processing device, image forming device using the same, and image processing method
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP2008305099A (en) Image processing method, image processor, image forming device, computer program and recording medium
JP4596964B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
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
JP7123752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4545766B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing program, and recording medium
JP4522978B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
JP4080252B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4043982B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP4498316B2 (en) Image processing apparatus, image processing method, image forming apparatus, and computer program
JP2011015172A (en) Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP2003224718A (en) Image processing method and image processor
JP2003219178A (en) Image processing method, device thereof and image forming device
JP2003324604A (en) Image processing equipment, image forming equipment, image processing method, program and recording medium
JP2005012668A (en) Image processing method, image processing device, image scanner, image forming apparatus, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180323

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180807

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180925

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190129

R150 Certificate of patent or registration of utility model

Ref document number: 6474315

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150