JP2009005068A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP2009005068A
JP2009005068A JP2007163884A JP2007163884A JP2009005068A JP 2009005068 A JP2009005068 A JP 2009005068A JP 2007163884 A JP2007163884 A JP 2007163884A JP 2007163884 A JP2007163884 A JP 2007163884A JP 2009005068 A JP2009005068 A JP 2009005068A
Authority
JP
Japan
Prior art keywords
color
background
image
data
detected
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.)
Granted
Application number
JP2007163884A
Other languages
Japanese (ja)
Other versions
JP4814162B2 (en
Inventor
Kazunari Tonami
一成 戸波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007163884A priority Critical patent/JP4814162B2/en
Publication of JP2009005068A publication Critical patent/JP2009005068A/en
Application granted granted Critical
Publication of JP4814162B2 publication Critical patent/JP4814162B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color, Gradation (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and an image processing method for automatically performing optimal base removal in accordance with color information of the base of a document. <P>SOLUTION: The present invention relates to an image processing apparatus 1 characterized in including: a base detecting means 35 for detecting base color data from color image data; a color information detecting means 46 for detecting color information of the base color data detected by the base detecting means 35; and a base removing means 42 for removing the base from the color image data on the basis of the base color data detected by the base detecting means 35 and the color information detected by the color information detecting means 46. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method.

一般に、MFP(Multi Function Printer)などの画像処理装置には下地除去の機能が搭載されており、スキャナで読み取った原稿をコピーしたりネットワークを通じて外部のPCなどに配信したりする際に、原稿の下地を自動的に除去して出力することが可能である。これは、新聞や再生紙のように用紙自体の濃度(下地濃度)が濃い原稿を出力する場合に、下地を除去することによって出力画像の可読性を良くするためである。さらに、下地を除去することでコピーの場合には色材(トナーやインク)の使用量を減らすことができ、ネットワークを通じて配信する場合には画像の圧縮率を高くすることが可能になる。   In general, an image processing apparatus such as an MFP (Multi Function Printer) has a background removal function. When copying a document read by a scanner or distributing it to an external PC or the like via a network, It is possible to automatically remove the background and output. This is to improve the readability of the output image by removing the background when outputting a document having a high density (background density) of the paper itself, such as a newspaper or recycled paper. Further, by removing the background, the amount of color material (toner or ink) used can be reduced in the case of copying, and the image compression rate can be increased when distributed over a network.

また、近年のMFPには、原稿をコピーしたりネットワークを通じて外部のPCなどに配信したりするだけでなく、読み取った画像データをハードディスク装置のような大容量の蓄積手段に蓄積し、蓄積した画像データを再プリントしたり再配信したりする機能が搭載されているものがある。この場合には、蓄積した画像データに対しても下地を除去して出力することが求められる。   Also, recent MFPs not only copy originals or distribute them to external PCs via a network, but also store scanned image data in a large-capacity storage unit such as a hard disk device, and store the stored image data. Some have the ability to reprint and redistribute data. In this case, it is required to output the accumulated image data with the background removed.

下地除去処理の従来技術としては、以下のような技術がある。   The following technologies are available as conventional technologies for the background removal processing.

特許文献1に開示された発明では、スキャナで読み込まれたRGBデータが第1色空間変換部でLaBデータに変換され、カラー/白黒の判別と下地レベルの検出が行われる。この検出結果に基づいて、第2色空間変換部や枠消し下地除去部などのパラメータが設定され、画像出力される。   In the invention disclosed in Patent Document 1, RGB data read by a scanner is converted to LaB data by a first color space conversion unit, and color / monochrome discrimination and background level detection are performed. Based on the detection result, parameters such as a second color space conversion unit and a frame removal background removal unit are set and an image is output.

特許文献2に開示された発明では、入力画像データから下地除去レベルを検出し、それを保持する。入力画像データは縮小処理され、蓄積メモリに記憶される。蓄積メモリに記憶された画像データは、拡大処理や像域分離などの処理をされた後、保持された下地除去レベルに従って下地除去処理される。   In the invention disclosed in Patent Document 2, the background removal level is detected from the input image data and held. The input image data is reduced and stored in the storage memory. The image data stored in the storage memory is subjected to processing such as enlargement processing and image area separation, and then subjected to background removal processing according to the held background removal level.

特許文献3に開示された発明では、ユーザが指定した下地除去設定量から出力画像をシミュレートし、元画像と並べて表示することで、ユーザは所望の画像が得られるように下地除去設定量の調整が可能となる。
特開2005―91901号公報 特許第3852219号 特開2006―270650号公報
In the invention disclosed in Patent Document 3, the output image is simulated from the background removal setting amount designated by the user and displayed side by side with the original image, so that the user can obtain the desired background removal amount so that a desired image can be obtained. Adjustment is possible.
Japanese Patent Laid-Open No. 2005-91901 Japanese Patent No. 3852219 JP 2006-270650 A

特許文献1や特許文献2のような従来技術では、原稿の下地レベルを検出して、その下地レベルに応じて下地除去するが、新聞や再生紙のように無彩色(グレー)の下地のみを検出するのが一般的であり、色紙のように下地が有彩色である原稿に対しては下地を除去しない。これは、有彩色の下地を除去してカラー出力すると、絵柄部分(特に下地の色に近い色の絵柄部分)の色味が崩れやすいからである。   In conventional techniques such as Patent Document 1 and Patent Document 2, the background level of a document is detected and the background is removed according to the background level. However, only an achromatic background (gray) is used for newspapers and recycled paper. In general, the detection is performed, and the background is not removed from an original having a chromatic background such as colored paper. This is because if the chromatic background is removed and the color is output, the color of the pattern portion (especially, the pattern portion having a color close to the background color) is likely to be lost.

しかし、色紙のような有彩色の下地に文字が書かれている原稿のような場合には、色味の崩れを気にすることはないので、有彩色の下地であっても下地を除去して文字部分だけを再現したいという要望がある。また、原稿をモノクロ出力する場合には、有彩色の下地の原稿でも下地を除去して可読性を高めたい、色材の使用量を減らしたいという要望もある。あるいは、ネットワークを通じてモノクロ画像で配信する場合にも、画像の圧縮率を高めるために、有彩色の下地の原稿でも下地を除去したいという要望がある。   However, in the case of a manuscript with characters on a chromatic background such as colored paper, there is no concern about color loss, so even if it is a chromatic background, the background is removed. There is a desire to reproduce only the character part. In addition, when a document is output in monochrome, there is a desire to improve the readability by removing the background even if the document has a chromatic background, and to reduce the amount of color material used. Alternatively, even when a monochrome image is distributed through a network, there is a demand for removing the background even in a chromatic background document in order to increase the compression ratio of the image.

しかしながら、特許文献1や特許文献2などに開示された発明では、有彩色の下地を有する原稿から下地を除去する点については考慮されていないという問題があった。   However, the inventions disclosed in Patent Document 1, Patent Document 2, and the like have a problem in that no consideration is given to the removal of a background from a document having a chromatic background.

また、特許文献3では、ユーザが所望の画像が得られるようにシミュレートされた画像を見ながら下地除去量を調整できるが、手動で調整することによりユーザに負担がかかり、高速に画像出力することもできない。つまり、下地除去に対してのユーザの様々な要望に対して、ユーザに煩雑な設定をさせることなく所望の画像を提供する必要があるが、係る点については特許文献3では考慮されていなかった。   In Patent Document 3, the amount of background removal can be adjusted while viewing a simulated image so that the user can obtain a desired image. However, manual adjustment places a burden on the user, and the image is output at high speed. I can't do that either. In other words, it is necessary to provide a desired image without making complicated settings to the user in response to various requests of the user for the background removal, but this point has not been taken into consideration in Patent Document 3 .

本発明は、上記の点に鑑みて、この問題を解決するために発明されたものであり、原稿の下地の色情報に応じて最適な下地除去を自動で行う画像処理装置及び画像処理方法を提供することを目的とする。   The present invention has been invented to solve this problem in view of the above points, and provides an image processing apparatus and an image processing method for automatically performing optimum background removal according to color information of the background of a document. The purpose is to provide.

上記の目的を達成するために、本発明の画像処理装置は、カラー画像データから下地色データを検出する下地検出手段と、前記下地検出手段により検出された下地色データの色情報を検出する色情報検出手段と、前記下地検出手段により検出された下地色データと前記色情報検出手段により検出された色情報に基づき、前記カラー画像データから下地を除去する下地除去手段とを有するように構成することができる。   In order to achieve the above object, an image processing apparatus of the present invention includes a background detection unit that detects background color data from color image data, and a color that detects color information of the background color data detected by the background detection unit. An information detection unit; and a background removal unit that removes the background from the color image data based on the background color data detected by the background detection unit and the color information detected by the color information detection unit. be able to.

これにより、原稿の下地の色情報に応じて最適な下地除去を自動で行うことができる。   Thereby, the optimum background removal can be automatically performed according to the color information of the background of the document.

また、上記の目的を達成するために、本発明の前記色情報検出手段により検出される色情報は、下地色データの彩度情報であるように構成することができる。   In order to achieve the above object, the color information detected by the color information detecting means of the present invention can be configured to be saturation information of the background color data.

これにより、原稿の下地の色情報のうち、特に下地の彩度に応じて最適な下地除去を自動で行うことができる。   As a result, the optimum background removal can be automatically performed according to the saturation of the background in the color information of the background of the document.

また、上記の目的を達成するために、本発明の画像処理装置は、前記下地除去手段により下地を除去するか否かの選択を促す下地除去選択手段を有し、前記色情報検出手段により検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、前記色情報検出手段により検出された彩度が所定の閾値以上の場合、前記下地除去選択手段は、前記下地除去手段により下地を除去するか否かの選択を促すように構成することができる。   In order to achieve the above object, the image processing apparatus of the present invention has background removal selection means for prompting selection of whether or not the background is removed by the background removal means, and is detected by the color information detection means. When the saturation is less than a predetermined threshold, the background removal means removes the background, and when the saturation detected by the color information detection means is equal to or greater than a predetermined threshold, the background removal selection means It can be configured to prompt selection of whether or not the background is removed by the removing means.

これにより、原稿が有彩色の下地の場合に、ユーザに煩雑な操作をさせることなく、所望の画像を提供することができる。   Thus, when the document is a chromatic background, a desired image can be provided without requiring the user to perform complicated operations.

また、上記の目的を達成するために、本発明の画像処理装置は、出力カラーモードの選択を促すカラーモード選択手段と、前記カラーモード選択手段により選択されたカラーモードに応じて、前記下地除去手段により下地を除去するか否かを制御する下地除去制御手段とを有するように構成することができる。   In order to achieve the above object, the image processing apparatus of the present invention includes a color mode selection unit that prompts selection of an output color mode, and the background removal according to the color mode selected by the color mode selection unit. It is possible to have a ground removal control means for controlling whether or not the ground is removed by the means.

これにより、原稿と出力カラーモードの組み合わせで最適な下地除去を自動で行うことができる。   Thereby, the optimum background removal can be automatically performed by a combination of the original and the output color mode.

また、上記の目的を達成するために、本発明の画像処理装置は、前記色情報検出手段により検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、前記色情報検出手段により検出された彩度が所定の閾値以上、且つ、前記カラーモード選択手段により選択された出力カラーモードがカラー出力の場合、前記下地除去制御手段は、前記下地除去手段により下地を除去しないように制御し、前記色情報検出手段により検出された彩度が所定の閾値以上、且つ、前記カラーモード選択手段により選択された出力カラーモードがモノクロ出力の場合、前記下地除去制御手段は、前記下地除去手段により下地を除去するように制御するように構成することができる。   In order to achieve the above object, in the image processing apparatus of the present invention, when the saturation detected by the color information detection unit is less than a predetermined threshold, the background removal unit removes the background, and the color When the saturation detected by the information detection means is equal to or greater than a predetermined threshold and the output color mode selected by the color mode selection means is color output, the background removal control means removes the background by the background removal means. If the saturation detected by the color information detection means is a predetermined threshold or more and the output color mode selected by the color mode selection means is monochrome output, the background removal control means It can be configured to control the background removal means to remove the background.

これにより、カラー出力するかモノクロ出力するかによって、それぞれに最適な下地除去を自動で行うことができる。   Accordingly, the optimum background removal can be automatically performed depending on whether color output or monochrome output is performed.

また、上記の目的を達成するために、本発明の画像処理装置は、画質モードの選択を促す画質モード選択手段と、前記画質モード選択手段により選択された画質モードに応じて、前記下地除去手段により下地を除去するか否かを制御する下地除去制御手段とを有するように構成することができる。   In order to achieve the above object, the image processing apparatus of the present invention includes an image quality mode selection unit that prompts selection of an image quality mode, and the background removal unit according to the image quality mode selected by the image quality mode selection unit. The substrate removal control means for controlling whether or not to remove the substrate can be configured.

これにより、原稿と画質モードの組み合わせで最適な下地除去を自動で行うことができる。   Thereby, the optimum background removal can be automatically performed by a combination of the document and the image quality mode.

また、上記の目的を達成するために、本発明の画像処理装置は、前記色情報検出手段において検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、前記色情報検出手段において検出された彩度が所定の閾値以上の場合、前記下地除去制御手段は、前記画質モード選択手段により選択された画質モードが文字を重視する画質モードの場合にのみ下地を除去するように構成することができる。   In order to achieve the above object, in the image processing apparatus of the present invention, when the saturation detected by the color information detection unit is less than a predetermined threshold, the background removal unit removes the background, and the color When the saturation detected by the information detection means is equal to or greater than a predetermined threshold, the background removal control means removes the background only when the image quality mode selected by the image quality mode selection means is an image quality mode that places importance on characters. It can be constituted as follows.

これにより、画質モードが文字モードの場合には、原稿の下地が有彩色か無彩色にかかわらず、文字の可読性を重視した画像を提供することができる。   As a result, when the image quality mode is the character mode, it is possible to provide an image that emphasizes the readability of the character regardless of whether the background of the document is chromatic or achromatic.

また、上記の目的を達成するために、本発明の画像処理装置は、カラー画像の色数を検出する色数検出手段を有し、前記色情報検出手段において検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、前記色情報検出手段において検出された彩度が所定の閾値以上の場合、前記色数検出手段により検出された色数が所定数以下の場合にのみ、前記下地除去手段により下地を除去するように制御するように構成することができる。   In order to achieve the above object, the image processing apparatus of the present invention has color number detection means for detecting the number of colors of a color image, and the saturation detected by the color information detection means is a predetermined threshold value. If the number of colors is less than the predetermined number, the background removal means removes the background, and the saturation detected by the color information detection means is greater than or equal to a predetermined threshold, and the number of colors detected by the color number detection means is less than or equal to a predetermined number Only, it can be configured to control to remove the ground by the ground removal means.

これにより、原稿の色数に応じて最適な下地除去を自動で行うことができる。   As a result, the optimum background removal can be automatically performed according to the number of colors of the document.

また、上記の目的を達成するために、本発明の画像処理装置は、カラー画像データを所定の特性の色空間のカラー画像データに変換する色変換手段を有し、前記下地検出手段は、前記色変換手段により所定の特性の色空間に変換されたカラー画像データから下地色データを検出するように構成することができる。   In order to achieve the above object, the image processing apparatus of the present invention includes color conversion means for converting color image data into color image data in a color space having a predetermined characteristic, and the background detection means includes The background color data can be detected from the color image data converted into the color space having a predetermined characteristic by the color conversion means.

これにより、下地除去量の設定を容易に行うことができる。   Thereby, it is possible to easily set the background removal amount.

また、上記の目的を達成するために、本発明の画像処理装置は、下地除去される前のカラー画像データと、前記下地検出手段において検出された下地色データとを蓄積する蓄積手段をさらに有するように構成することができる。   In order to achieve the above object, the image processing apparatus of the present invention further includes storage means for storing the color image data before the background removal and the background color data detected by the background detection means. It can be constituted as follows.

これにより、蓄積された画像を再出力する場合に、適切な下地除去を自動で行うことができる。   Thereby, when the accumulated image is output again, appropriate background removal can be automatically performed.

また、上記の目的を達成するために、本発明の画像処理方法は、カラー画像データから下地色データを検出する下地検出工程と、前記下地検出工程において検出された下地色データの色情報を検出する色情報検出工程と、前記下地検出工程において検出された下地色データと前記色情報検出工程において検出された色情報に基づき、前記カラー画像データから下地を除去する下地除去工程とを有するように構成することができる。   In order to achieve the above object, the image processing method of the present invention detects a background color data from color image data, and detects color information of the background color data detected in the background detection process. A color information detecting step, and a background removing step of removing the background from the color image data based on the background color data detected in the background detecting step and the color information detected in the color information detecting step. Can be configured.

これにより、原稿の下地の色情報に応じて最適な下地除去を自動で行うことができる。   Thereby, the optimum background removal can be automatically performed according to the color information of the background of the document.

また、上記の目的を達成するために、本発明の画像処理方法において、前記色情報検出工程において検出される色情報は、下地色データの彩度情報であるように構成することができる。   In order to achieve the above object, in the image processing method of the present invention, the color information detected in the color information detection step can be configured to be saturation information of the background color data.

これにより、原稿の下地の色情報のうち、特に下地の彩度に応じて最適な下地除去を自動で行うことができる。   As a result, the optimum background removal can be automatically performed according to the saturation of the background in the color information of the background of the document.

本発明によれば、原稿の下地の色情報に応じて最適な下地除去を自動で行う画像処理装置及び画像処理方法を提供することができる。   According to the present invention, it is possible to provide an image processing apparatus and an image processing method that automatically perform optimum background removal according to color information of the background of a document.

以下、本発明を実施するための最良の形態について以下の各実施形態において図面を参照して説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings in the following embodiments.

[第1の実施形態]
以下、本発明に係る第1の実施形態について図1〜5を参照して説明する。
(装置の構成)
図1は、本発明に係る画像処理装置の全体構成例を示す図である。図1において、画像処理装置1は、読取り装置11、第1の画像データ処理装置12、バス制御装置13、第2の画像データ処理装置14、HDD(Hard Disk Drive)15、CPU(Central Processing Unit)16、メモリ17、プロッタI/F装置18、プロッタ装置19、操作表示装置20、回線I/F装置21、外部I/F装置22、S.B.(South Bridge)23、ROM(Read Only Memory)24などにより構成される。
[First Embodiment]
Hereinafter, a first embodiment according to the present invention will be described with reference to FIGS.
(Device configuration)
FIG. 1 is a diagram showing an example of the overall configuration of an image processing apparatus according to the present invention. In FIG. 1, an image processing device 1 includes a reading device 11, a first image data processing device 12, a bus control device 13, a second image data processing device 14, an HDD (Hard Disk Drive) 15, a CPU (Central Processing Unit). ) 16, memory 17, plotter I / F device 18, plotter device 19, operation display device 20, line I / F device 21, external I / F device 22, S. B. (South Bridge) 23, ROM (Read Only Memory) 24, and the like.

読取り装置11は、原稿をスキャンすることで得る原稿の濃淡情報から、RGB各8ビットのデジタル画像データを生成し出力するスキャナなどの装置である。第1の画像データ処理装置12は、読取り装置11により読み取られたデジタル画像データに対して、後述する画像処理を施して出力する。   The reading device 11 is a device such as a scanner that generates and outputs digital image data of 8 bits for each of RGB from the density information of the document obtained by scanning the document. The first image data processing device 12 performs image processing described later on the digital image data read by the reading device 11 and outputs the result.

バス制御装置13は、当該画像処理装置1内で必要な画像データや制御コマンド等の各種データのやり取りを行う。第2の画像データ処理装置14は、第1の画像データ処理装置12で処理されたデジタル画像データに対して、後述する画像処理を施して出力する。HDD15は、デジタル画像データ、及びデジタル画像データの付帯情報を蓄積するための記憶装置である。   The bus control device 13 exchanges various data such as image data and control commands necessary in the image processing device 1. The second image data processing device 14 performs image processing described later on the digital image data processed by the first image data processing device 12 and outputs the result. The HDD 15 is a storage device for storing digital image data and accompanying information of the digital image data.

CPU16は、当該画像処理装置1の制御全体を司るマイクロプロセッサである。メモリ17は、CPU16が当該画像処理装置1の制御を行う際に、プログラムや中間処理データを一時的に記憶するためのなどに使用される揮発性メモリである。   The CPU 16 is a microprocessor that controls the entire control of the image processing apparatus 1. The memory 17 is a volatile memory used for temporarily storing programs and intermediate processing data when the CPU 16 controls the image processing apparatus 1.

プロッタI/F装置18は、CPU16から送信されるCMYK(C:シアン、M:マゼンタ、Y:イエロー、K:ブラック)のデジタル画像データを受け取り、プロッタ装置19の専用I/Fに出力する。プロッタ装置19は、CMYKのデジタル画像データを受け取ると、レーザービームを用いた電子写真プロセスなどにより、転写紙に画像出力する。   The plotter I / F device 18 receives digital image data of CMYK (C: cyan, M: magenta, Y: yellow, K: black) transmitted from the CPU 16 and outputs it to the dedicated I / F of the plotter device 19. When the plotter device 19 receives the CMYK digital image data, the plotter device 19 outputs the image onto a transfer sheet by an electrophotographic process using a laser beam.

操作表示装置20は、当該画像処理装置1とユーザのインターフェースを行う部分で、LCD(Liquid Crystal Display)、キースイッチ等から構成され、装置の各種状態や操作方法をLCDに表示し、ユーザからのキースイッチ入力を検知する。   The operation display device 20 is a part that performs an interface between the image processing device 1 and the user, and is configured by an LCD (Liquid Crystal Display), a key switch, and the like, and displays various states and operation methods of the device on the LCD. Detects key switch input.

回線I/F装置21は、当該画像処理装置1の装置外にあるFAX25と、電話回線などを介して、画像データの授受を行う。外部I/F装置22は、当該画像処理装置1の装置外にあるPC26などの一般的なコンピュータ装置と、ネットワーク(イーサネット(登録商標))を介して、各種制御や画像データの入出力を行う。   The line I / F device 21 exchanges image data with a FAX 25 outside the image processing apparatus 1 via a telephone line or the like. The external I / F device 22 performs various controls and input / output of image data via a network (Ethernet (registered trademark)) with a general computer device such as the PC 26 outside the image processing device 1. .

S.B.23は、South Bridgeと呼ばれるバスのブリッジ機能を汎用回路化したものである。ROM24は、CPU16が当該画像処理装置1の制御を行う際のプログラムが格納されるメモリである。   S. B. 23 is a general-purpose circuit of a bridge function of a bus called South Bridge. The ROM 24 is a memory that stores a program used when the CPU 16 controls the image processing apparatus 1.

(機能構成の概要)
図2は、本発明に係る画像処理装置の機能構成の概要を示す図である。図2において、画像処理装置1は、スキャナγ変換部31、色変換部32、フィルタ処理部33、圧縮処理部34、下地検出部35、伸張処理部41、下地除去部42、色変換部43、プリンタγ変換部44、中間調処理部45、彩度検出部46などを有する。
(Overview of functional configuration)
FIG. 2 is a diagram showing an outline of a functional configuration of the image processing apparatus according to the present invention. In FIG. 2, the image processing apparatus 1 includes a scanner γ conversion unit 31, a color conversion unit 32, a filter processing unit 33, a compression processing unit 34, a background detection unit 35, a decompression processing unit 41, a background removal unit 42, and a color conversion unit 43. A printer gamma conversion unit 44, a halftone processing unit 45, a saturation detection unit 46, and the like.

ここでは、第1の画像データ処理装置12は、スキャナγ変換部31、色変換部32、フィルタ処理部33、圧縮処理部34を有する。また、第2の画像データ処理装置14は、伸張処理部41、下地除去部42、色変換部43、プリンタγ変換部44、中間調処理部45を有する。   Here, the first image data processing apparatus 12 includes a scanner γ conversion unit 31, a color conversion unit 32, a filter processing unit 33, and a compression processing unit 34. The second image data processing apparatus 14 includes an expansion processing unit 41, a background removal unit 42, a color conversion unit 43, a printer γ conversion unit 44, and a halftone processing unit 45.

図2における各部の機能については、図3などを用いて後述する。なお、画像処理装置の機能構成は上記の図2で示される構成に限らない。即ち、各部は第1の画像データ処理装置12が有するものであっても、第2の画像データ処理装置14が有するものであってもよいものとする。   The function of each part in FIG. 2 will be described later with reference to FIG. The functional configuration of the image processing apparatus is not limited to the configuration shown in FIG. That is, each unit may be included in the first image data processing device 12 or may be included in the second image data processing device 14.

(第1の画像データ処理装置の機能構成例)
図3は、本発明に係る第1の画像データ処理装置12の機能の構成例を示す図である。図3において、第1の画像データ処理装置12は、スキャナγ変換部31、色変換部32、フィルタ処理部33、圧縮処理部34、下地検出部35を有する構成である。
(Functional configuration example of first image data processing apparatus)
FIG. 3 is a diagram showing a functional configuration example of the first image data processing apparatus 12 according to the present invention. In FIG. 3, the first image data processing apparatus 12 includes a scanner γ conversion unit 31, a color conversion unit 32, a filter processing unit 33, a compression processing unit 34, and a background detection unit 35.

スキャナγ変換部31は、RGB各8ビット読取り画像データに対してγ変換を行い、グレーバランスを合わせたり、階調特性を変換したりする。色変換部32は、決められた特性の色空間のRGBデータに変換する。この色空間は、例えば、Adobe社が定義したAdobe−RGB空間のようなものである。   The scanner γ conversion unit 31 performs γ conversion on 8-bit read RGB image data, and adjusts the gray balance and converts the gradation characteristics. The color conversion unit 32 converts the data into RGB data in a color space having a predetermined characteristic. This color space is, for example, an Adobe-RGB space defined by Adobe.

下地検出部35は、色変換部22により決められた特性のRGBデータに変換された画像データから、画像の下地色を検出する。検出方法は公知の技術を用いることができる。例えば、画像のヒストグラムをとり、そのヒストグラムのピークを下地色データとすることにより画像の下地色を検出する。検出された下地色はRGB値の下地色データとして出力される。   The background detection unit 35 detects the background color of the image from the image data converted into the RGB data having the characteristics determined by the color conversion unit 22. A known technique can be used for the detection method. For example, a background color of an image is detected by taking a histogram of the image and using the peak of the histogram as background color data. The detected background color is output as background color data of RGB values.

フィルタ処理部33は、文字部を強調する処理、絵柄部を平滑化する処理などのフィルタ処理を行う。圧縮処理部35は、RGBデータを圧縮処理する。ここで用いられる圧縮方法は、JPEG圧縮のように非可逆圧縮の方式が用いることができる。   The filter processing unit 33 performs filter processing such as processing for emphasizing the character portion and processing for smoothing the pattern portion. The compression processing unit 35 compresses RGB data. As the compression method used here, a lossy compression method such as JPEG compression can be used.

以上の機能の構成により、第1の画像データ処理装置12では、入力されたカラー画像データに基づいてRGB画像データ及び下地色データを生成する。なお、生成されたRGB画像データ及び下地色データは、前述したようにHDD15内に蓄積される。   With the above function configuration, the first image data processing device 12 generates RGB image data and background color data based on the input color image data. The generated RGB image data and background color data are stored in the HDD 15 as described above.

(第2の画像データ処理装置の機能構成例)
図4は、本発明に係る第2の画像データ処理装置14の機能の構成例を示す図である。図4において、第2の画像データ処理装置14は、伸張処理部41、下地除去部42、色変換部43、プリンタγ変換部44、階調処理部(中間調処理部)45、彩度検出部46を有する。
(Functional configuration example of second image data processing apparatus)
FIG. 4 is a diagram showing a functional configuration example of the second image data processing device 14 according to the present invention. In FIG. 4, the second image data processing device 14 includes an expansion processing unit 41, a background removal unit 42, a color conversion unit 43, a printer γ conversion unit 44, a gradation processing unit (halftone processing unit) 45, and saturation detection. Part 46.

伸張処理部41は、第1の画像データ処理装置12で生成された圧縮後のRGB画像データに対して伸張処理を行う。彩度検出部46は、第1の画像データ処理装置12で生成された下地色データの彩度(色情報)を検出する色情報検出手段である。下地色データはRGB値であるので、Max(R,G,B)―Min(R,G,B)を彩度データとして算出する。下地色データと算出された彩度データは下地除去部42に送られる。   The decompression processing unit 41 performs decompression processing on the compressed RGB image data generated by the first image data processing device 12. The saturation detection unit 46 is color information detection means for detecting the saturation (color information) of the background color data generated by the first image data processing device 12. Since the background color data is an RGB value, Max (R, G, B) −Min (R, G, B) is calculated as saturation data. The background color data and the calculated saturation data are sent to the background removal unit 42.

下地除去部42は、下地色データと彩度検出部46からの彩度データに基づき、原稿の下地除去を行う。詳細は図5を用いて後述する。色変換部43は、RGB各8ビットのデータをプロッタ装置19の色空間であるCMYK各8ビットに変換する(モノクロ出力する場合にはK信号のみを出力する)。   The background removal unit 42 removes the background of the document based on the background color data and the saturation data from the saturation detection unit 46. Details will be described later with reference to FIG. The color conversion unit 43 converts RGB 8-bit data into CMYK 8-bit data that is the color space of the plotter device 19 (outputs only the K signal when monochrome output is performed).

プリンタγ変換部44は、プロッタ装置19の階調特性を補正するためにCMYKデータに対してγ変換を行う。階調処理部(中間調処理部)45は、CMYK各8ビットのデータをプロッタ装置19の階調数(例えばCMYK各2ビット)に変換するために、ディザ処理や誤差拡散処理といった疑似中間調処理を行う。   The printer γ conversion unit 44 performs γ conversion on the CMYK data in order to correct the gradation characteristics of the plotter device 19. The gradation processing unit (halftone processing unit) 45 converts pseudo 8-bit data such as dither processing and error diffusion processing in order to convert CMYK 8-bit data into the number of gradations of the plotter device 19 (for example, 2 bits for CMYK). Process.

以上の機能の構成により、第2の画像データ処理装置14では、入力されたRGB画像データ及び下地色データに基づいてCMYKデータを生成する。なお、生成されたCMYKデータは、前述したようにプロッタ装置19によって転写紙に画像出力される。   With the above function configuration, the second image data processing device 14 generates CMYK data based on the input RGB image data and background color data. The generated CMYK data is output as an image on a transfer sheet by the plotter device 19 as described above.

なお、ネットワークを通じて外部のPCなどにカラー画像として配信する場合には、プリンタγ変換部44と階調処理部45では処理を行わずに、色変換部43においてsRGB空間のRGBデータに変換し、そのRGBデータを配信する。また、モノクロ画像として配信する場合には、色変換部43でK信号のみを出力し、階調処理部45で二値化処理をして、そのモノクロ二値画像を配信する。   When the image is distributed as a color image to an external PC or the like through the network, the color conversion unit 43 converts the data into RGB data in the sRGB space without performing processing in the printer γ conversion unit 44 and the gradation processing unit 45, The RGB data is distributed. When the image is distributed as a monochrome image, only the K signal is output by the color conversion unit 43, the binarization processing is performed by the gradation processing unit 45, and the monochrome binary image is distributed.

(下地除去部による下地除去の詳細)
図5は、下地除去部42による下地除去を説明するための図である。下地除去の方法は、図5に示すように、入力されるRGBデータが閾値th以下のときには0を出力する(0が白、255が黒を表す)。また、閾値th'以上では入力と出力が同じになるようにする。このような変換は、閾値thと閾値th'をパラメータとして、変換式で実行可能であり、R,G,Bの版毎に行う。あるいは、閾値th以下のときには0を出力し、それ以上のときには任意の形状の曲線にしても良い。その場合には、テーブル変換で実行することになる。なお、閾値thを0に設定すれば、下地除去は行われないことになる。
(Details of ground removal by ground removal unit)
FIG. 5 is a diagram for explaining the background removal by the background removal unit 42. As shown in FIG. 5, the background removal method outputs 0 when the input RGB data is equal to or less than the threshold th (0 represents white and 255 represents black). In addition, the input and the output are made the same above the threshold th ′. Such conversion can be executed by a conversion formula using the threshold th and the threshold th ′ as parameters, and is performed for each of R, G, and B versions. Alternatively, 0 may be output when the threshold value is equal to or less than the threshold th, and a curve having an arbitrary shape may be generated when the threshold value is greater than the threshold value th. In that case, it is executed by table conversion. If the threshold th is set to 0, the background removal is not performed.

ユーザがデジタル画像処理装置の操作表示装置から下地除去の実行を指示した場合に、下地色データと彩度検出部46からの彩度データに基づき、以下の様に下地除去を制御する。   When the user instructs execution of background removal from the operation display device of the digital image processing apparatus, background removal is controlled as follows based on the background color data and the saturation data from the saturation detection unit 46.

(1)彩度データが所定の閾値Sth未満のとき、
下地色は無彩色(グレー)と見なせる。この場合には、常に下地除去を行う。閾値thは以下の様に設定される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(1) When the saturation data is less than the predetermined threshold value Sth,
The ground color can be considered an achromatic color (gray). In this case, the background is always removed. The threshold th is set as follows.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value th = B value of background color data

(2)彩度データが所定の閾値Sth以上のとき
下地色は有彩色と見なせる。この場合には、操作表示装置のLCD(液晶表示装置)に下地を除去するかしないかを選択させるメッセージを表示し、ユーザにいずれかを選択させる。
(2−1)ユーザが下地を除去することを選択した場合には、閾値thは以下の様に設定され、下地が除去される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(2−2)ユーザが下地を除去しないことを選択した場合には、閾値thは以下の様に設定され、下地は除去されない。
R版の閾値th=0
G版の閾値th=0
B版の閾値th=0
(2) When the saturation data is equal to or greater than the predetermined threshold value Sth The background color can be regarded as a chromatic color. In this case, a message for selecting whether or not to remove the background is displayed on the LCD (liquid crystal display device) of the operation display device, and the user is allowed to select one.
(2-1) When the user selects to remove the background, the threshold th is set as follows, and the background is removed.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value of B plate th = B value of background color data (2-2) The user selects not to remove the background In this case, the threshold th is set as follows, and the background is not removed.
R version threshold th = 0
G version threshold th = 0
B version threshold th = 0

なお、閾値th'はいずれの場合もそれぞれの色版の閾値thに10を加算した値とするが、この場合に限らないことは言うまでもない。原稿の下地が無彩色の場合には、下地除去を行っても絵柄の色味は崩れないので、下地除去を行う。また、原稿の下地が有彩色の場合には、色味が崩れる場合があるため、ユーザに下地を除去するか否かを選択させる。以上の構成により、ユーザに煩雑な操作をさせることなく所望の画像を提供することができる。   Note that the threshold value th ′ is a value obtained by adding 10 to the threshold value th of each color plate in any case, but it goes without saying that this is not the only case. When the background of the original is an achromatic color, the background color is removed because the color of the pattern does not change even if the background is removed. Further, when the background of the document is a chromatic color, the color may be lost, so the user is asked to select whether or not to remove the background. With the above configuration, a desired image can be provided without causing the user to perform complicated operations.

なお、下地検出部32では、色変換によって決められた特性のRGBデータに変換された画像データから下地検出を行うので、検出される下地色データもその特性のRGBデータである。よって、上述の閾値Sthはその特性のRGBデータにおいて、無彩色と見なせる彩度の許容値に設定すれば良い。特定の特性のRGBデータに対して下地検出や下地除去を行うことで、読取り装置の特性には影響されず、閾値Sthを容易に設定できるという利点がある。   Since the background detection unit 32 performs background detection from image data converted into RGB data having characteristics determined by color conversion, the detected background color data is also RGB data having the characteristics. Therefore, the threshold value Sth described above may be set to an allowable value of saturation that can be regarded as an achromatic color in the RGB data of the characteristic. By performing background detection and background removal on RGB data having specific characteristics, there is an advantage that the threshold value Sth can be easily set without being influenced by the characteristics of the reading apparatus.

[第2の実施形態]
以下、本発明に係る第2の実施形態について説明する。
[Second Embodiment]
Hereinafter, a second embodiment according to the present invention will be described.

第2の実施形態においては、下地除去部42の制御の別の実施の形態を示す。ユーザは出力時にデジタル画像処理装置の操作表示装置から出力カラーモードを選択可能である。ユーザが操作表示装置から下地除去の実行を指示した場合に、選択された出力カラーモード、下地色データ、彩度検出36からの彩度データに基づき、以下の様に下地除去を制御する。   In the second embodiment, another embodiment of the control of the background removal unit 42 is shown. The user can select an output color mode from the operation display device of the digital image processing apparatus at the time of output. When the user instructs execution of background removal from the operation display device, background removal is controlled as follows based on the selected output color mode, background color data, and saturation data from the saturation detection 36.

第2の実施形態に係る画像処理装置の装置構成、第1の画像データ処理装置12、第2の画像データ処理装置14の各々の機能の構成は、第1の実施形態に係るそれらと同様であるとしてここでは説明を省略する。   The apparatus configuration of the image processing apparatus according to the second embodiment, the configuration of each function of the first image data processing apparatus 12 and the second image data processing apparatus 14 are the same as those according to the first embodiment. The description is omitted here as it is.

(1)彩度データが所定の閾値Sth未満のとき
下地色は無彩色(グレー)と見なせる。この場合には、出力カラーモードにかかわらず常に下地除去を行う。閾値thは以下の様に設定される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(1) When the saturation data is less than the predetermined threshold Sth The background color can be regarded as an achromatic color (gray). In this case, the background removal is always performed regardless of the output color mode. The threshold th is set as follows.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value th = B value of background color data

(2)彩度データが所定の閾値Sth以上のとき
下地色は有彩色と見なせる。この場合には、
(2−1)ユーザがカラー出力を選択している場合、閾値thは以下の様に設定され、下地が除去される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(2−2)ユーザがモノクロ出力を選択している場合、閾値thは以下の様に設定され、下地は除去されない。
R版の閾値th=0
G版の閾値th=0
B版の閾値th=0
(2) When the saturation data is equal to or greater than the predetermined threshold value Sth The background color can be regarded as a chromatic color. In this case,
(2-1) When the user selects color output, the threshold th is set as follows, and the background is removed.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value of B plate th = B value of background color data (2-2) The user selects monochrome output In this case, the threshold th is set as follows, and the background is not removed.
R version threshold th = 0
G version threshold th = 0
B version threshold th = 0

なお、閾値th'はいずれの場合もそれぞれの色版の閾値thに10を加算した値とするが、この場合に限らないことは言うまでもない。カラー出力する場合には、原稿の下地が無彩色の場合にのみ下地除去を行い、下地が有彩色の場合には、絵柄部分の色味が崩れるのを防ぐために下地除去を行わない。一方、モノクロ出力する場合には、色味の崩れを気にする必要はないので、下地の彩度にかかわらず下地を除去する。     Note that the threshold value th ′ is a value obtained by adding 10 to the threshold value th of each color plate in any case, but it goes without saying that this is not the only case. In the case of color output, the background removal is performed only when the background of the document is an achromatic color, and when the background is a chromatic color, the background removal is not performed to prevent the color of the pattern portion from being lost. On the other hand, in the case of monochrome output, since it is not necessary to worry about color loss, the background is removed regardless of the background saturation.

以上の構成により、原稿の下地色に応じて下地除去を自動で最適に行うことができる。   With the above configuration, the background removal can be automatically and optimally performed according to the background color of the document.

なお、上記実施形態ではカラー出力とモノクロ出力の2通りについて説明したが、特定の二色で出力する二色モードというカラーモードが存在するMFPもある。これは原稿の色文字などは有彩色の領域は(原稿の色に関係なく)赤で出力し、原稿の黒文字など無彩色の領域は黒で出力するというモードである。この二色モードにおいては、モノクロ出力と同様に色味の崩れを気にする必要がないので、モノクロ出力と同様の制御をすれば良い。   In the above embodiment, two types of color output and monochrome output have been described. However, some MFPs have a color mode called a two-color mode for outputting in a specific two colors. This is a mode in which chromatic areas such as color characters are output in red (regardless of the color of the original) and achromatic areas such as black characters are output in black. In this two-color mode, it is not necessary to worry about color loss as in the case of monochrome output, and therefore, the same control as that for monochrome output may be performed.

[第3の実施形態]
以下、本発明に係る第3の実施形態について説明する。
[Third Embodiment]
The third embodiment according to the present invention will be described below.

第3の実施形態においては、下地除去部42の制御の別の実施の形態を示す。ユーザは出力時にデジタル画像処理装置の操作表示装置から画質モードを選択可能である。画質モードは、文字を重視して出力する「文字モード」、写真を重視して出力する「写真モード」、文字と写真のバランスをとって出力する「文字写真モード」がある。   In the third embodiment, another embodiment of the control of the background removal unit 42 is shown. The user can select an image quality mode from the operation display device of the digital image processing apparatus at the time of output. The image quality mode includes a “character mode” for outputting with emphasis on characters, a “photo mode” for outputting with emphasis on photos, and a “character photo mode” for outputting with a balance between characters and photos.

第3の実施形態に係る画像処理装置の装置構成、第1の画像データ処理装置12、第2の画像データ処理装置14の各々の機能の構成は、第1の実施形態に係るそれらと同様であるとしてここでは説明を省略する。   The apparatus configuration of the image processing apparatus according to the third embodiment, the configuration of each function of the first image data processing apparatus 12 and the second image data processing apparatus 14 are the same as those according to the first embodiment. The description is omitted here as it is.

ユーザが操作表示装置から下地除去の実行を指示した場合に、選択された画質モード、下地色データ、彩度検出36からの彩度データに基づき、以下の様に下地除去を制御する。   When the user instructs execution of background removal from the operation display device, background removal is controlled as follows based on the selected image quality mode, background color data, and saturation data from the saturation detection 36.

(1)彩度データが所定の閾値Sth未満のとき
下地色は無彩色(グレー)と見なせる。この場合には、画質モードにかかわらず常に下地除去を行う。閾値thは以下の様に設定される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(1) When the saturation data is less than the predetermined threshold Sth The background color can be regarded as an achromatic color (gray). In this case, the background removal is always performed regardless of the image quality mode. The threshold th is set as follows.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value th = B value of background color data

(2)彩度データが所定の閾値Sth以上のとき
下地色は有彩色と見なせる。この場合には、ユーザが「文字モード」を選択している場合には、閾値thは以下の様に設定され、下地が除去される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(2) When the saturation data is equal to or greater than the predetermined threshold value Sth, the background color can be regarded as a chromatic color. In this case, when the user selects the “character mode”, the threshold th is set as follows, and the background is removed.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value th = B value of background color data

(3)ユーザが「写真モード」「文字写真モード」を選択している場合には、閾値thは以下の様に設定され、下地は除去されない。
R版の閾値th=0
G版の閾値th=0
B版の閾値th=0。
(3) When the user selects “photo mode” or “text photo mode”, the threshold th is set as follows, and the background is not removed.
R version threshold th = 0
G version threshold th = 0
B-threshold th = 0.

なお、閾値th'はいずれの場合もそれぞれの色版の閾値thに10を加算した値とするが、この場合に限らないことは言うまでもない。「写真モード」や「文字写真モード」では、原稿の下地が無彩色の場合にのみ下地除去を行い、下地が有彩色の場合には、絵柄部分の色味が崩れるのを防ぐために下地除去を行わない。一方、「文字モード」では、色味の崩れを気にする必要はないので、下地の彩度にかかわらず下地を除去する。   In any case, the threshold value th ′ is a value obtained by adding 10 to the threshold value th of each color plate, but it goes without saying that this is not the only case. In “Photo mode” and “Text photo mode”, the background is removed only when the background of the original is achromatic, and when the background is chromatic, the background is removed to prevent the color of the pattern from being lost. Not performed. On the other hand, in the “character mode”, since it is not necessary to worry about color loss, the background is removed regardless of the saturation of the background.

以上の構成により、原稿の下地色に応じて下地除去を自動で最適に行うことができる。   With the above configuration, the background removal can be automatically and optimally performed according to the background color of the document.

[第4の実施形態]
以下、本発明に係る第4の実施形態について図6及び図7を参照して説明する。
[Fourth Embodiment]
Hereinafter, a fourth embodiment according to the present invention will be described with reference to FIGS.

第4の実施形態に係る画像処理装置の装置構成は、第1の実施形態に係るそれらと同様であるとしてここでは説明を省略する。   The apparatus configuration of the image processing apparatus according to the fourth embodiment is the same as that according to the first embodiment, and a description thereof is omitted here.

(第1の画像データ処理装置の機能構成例)
図6は、本発明に係る第1の画像データ処理装置12の機能の構成の別の例を示す図である。図6において、色数検知部51が加えられている点が前述の実施形態1乃至3と異なり、それ以外の各処理部は前述の実施形態1乃至3と同様であるとしてここでは説明を省略する。
(Functional configuration example of first image data processing apparatus)
FIG. 6 is a diagram showing another example of the functional configuration of the first image data processing apparatus 12 according to the present invention. In FIG. 6, the point that a color number detection unit 51 is added is different from the above-described first to third embodiments, and the other processing units are the same as those of the first to third embodiments, and the description thereof is omitted here. To do.

色数検知51は、色変換によって決められた特性のRGBデータに変換された画像データから、画像の色数を算出する。色数の算出方法は公知の技術を用いることができる。以下に一例を示す。まず、画像データの各画素のRGB値のヒストグラムを算出する。ヒストグラムの算出は、RGBをそれぞれ0〜10、10〜20、・・・、240〜255というように15分割した15×15×15の領域毎に分布を計測する。   The number-of-colors detection 51 calculates the number of colors of an image from image data converted into RGB data having characteristics determined by color conversion. A known technique can be used for the method of calculating the number of colors. An example is shown below. First, a histogram of RGB values of each pixel of image data is calculated. In the calculation of the histogram, the distribution is measured for each 15 × 15 × 15 region obtained by dividing the RGB into 15 such as 0 to 10, 10 to 20,..., 240 to 255.

このように分割するのは、読取り装置のノイズの影響などにより、原稿の同じ色でも画素単位ではRGB値が若干ずれるからであり、その影響を低減するためである。15×15×15の領域のうち、度数が所定の値以上である領域をカウントし、それを画像の色数とする。なお、度数が所定の値以上の領域のみをカウントするのは、度数が低い領域はノイズと見なせるからであり、「所定の値」は画像の解像度や読取り装置のノイズの大きさによって適切な値に設定される。算出された画像の色数は、色数データとして出力される。   The reason for this division is to reduce the influence of the RGB values in units of pixels even for the same color of the document due to the influence of the noise of the reading device. Of the 15 × 15 × 15 area, the area whose frequency is equal to or greater than a predetermined value is counted, and this is used as the number of colors of the image. The reason why only the area where the frequency is equal to or larger than the predetermined value is counted is that the area where the frequency is low can be regarded as noise. Set to The calculated number of colors of the image is output as color number data.

(第2の画像データ処理装置の機能構成例)
図7に、本発明に係る第2の画像データ処理装置14の機能の構成の別の例を示す図である。図7において、下地除去部42には、色数データ、下地色データ、彩度検出部46からの彩度データが入力される。それ以外の各処理部は前述の実施形態1乃至3と同様であるとしてここでは説明を省略する。
(Functional configuration example of second image data processing apparatus)
FIG. 7 is a diagram showing another example of the functional configuration of the second image data processing apparatus 14 according to the present invention. In FIG. 7, color number data, background color data, and saturation data from the saturation detection unit 46 are input to the background removal unit 42. Since the other processing units are the same as those in the first to third embodiments, description thereof is omitted here.

下地除去部42の詳細を説明する。ユーザがデジタル画像処理装置の操作表示装置から下地除去の実行を指示した場合に、色数データ、下地色データ、彩度検出36からの彩度データに基づき、以下の様に下地除去を制御する。   Details of the background removal unit 42 will be described. When the user instructs execution of background removal from the operation display device of the digital image processing apparatus, background removal is controlled as follows based on the color number data, background color data, and saturation data from the saturation detection 36. .

(1)彩度データが所定の閾値Sth未満のとき
下地色は無彩色(グレー)と見なせる。この場合には、色数データの値にかかわらず常に下地除去を行う。閾値thは以下の様に設定される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(1) When the saturation data is less than the predetermined threshold Sth The background color can be regarded as an achromatic color (gray). In this case, the background removal is always performed regardless of the value of the color number data. The threshold th is set as follows.
Threshold value th of R plate = R value of background color data G threshold value th = G value of background color data B threshold value th = B value of background color data

(2)彩度データが所定の閾値Sth以上のとき
下地色は有彩色と見なせる。この場合には、
(2−1)色数データの値が所定の閾値以上の場合、閾値thは以下の様に設定され、下地が除去される。
R版の閾値th=下地色データのR値
G版の閾値th=下地色データのG値
B版の閾値th=下地色データのB値
(2−2)色数データの値が所定の閾値未満の場合には、閾値thは以下の様に設定され、下地は除去されない。
R版の閾値th=0
G版の閾値th=0
B版の閾値th=0
(2) When the saturation data is equal to or greater than the predetermined threshold value Sth, the background color can be regarded as a chromatic color. In this case,
(2-1) When the value of the color number data is equal to or greater than a predetermined threshold, the threshold th is set as follows, and the background is removed.
R threshold value th = R value of background color data G threshold value th = G value of background color data B threshold value of B plate th = B value of background color data (2-2) Color number data value is a predetermined threshold value If it is less than the threshold value, the threshold th is set as follows, and the background is not removed.
R version threshold th = 0
G version threshold th = 0
B version threshold th = 0

なお、閾値th'はいずれの場合もそれぞれの色版の閾値thに10を加算した値とするが、この場合に限らないことは言うまでもない。原稿の下地が無彩色の場合には、下地除去を行っても絵柄の色味は崩れないので、下地除去を行う。原稿の下地が有彩色であり、かつ、画像の色数が多い場合には、絵柄部分の色味が崩れるのを防ぐために下地除去を行わない。一方、原稿の下地が有彩色であり、かつ、画像の色数が少ない場合には、色紙のような有彩色の下地に文字が書かれている原稿など、色味の崩れを気にする必要がない原稿であると考えて、下地除去を行う。   In any case, the threshold value th ′ is a value obtained by adding 10 to the threshold value th of each color plate, but it goes without saying that this is not the only case. When the background of the original is an achromatic color, the background color is removed because the color of the pattern does not change even if the background is removed. When the background of the original is a chromatic color and the number of colors of the image is large, the background removal is not performed to prevent the color of the pattern portion from being lost. On the other hand, if the background of the document is chromatic color and the number of colors in the image is small, it is necessary to worry about color loss such as a document with characters written on a chromatic background such as colored paper. The background is removed considering that the original has no image.

以上の構成により、原稿の下地色と色数に応じて下地除去を自動で最適に行うことができる。   With the above configuration, the background removal can be automatically and optimally performed according to the background color and the number of colors of the document.

以上、実施形態に基づき本発明の説明を行ってきたが、上記実施形態にあげたその他の要素との組み合わせなど、ここで示した要件に本発明が限定されるものではない。これらの点に関しては、本発明の主旨をそこなわない範囲で変更することが可能であり、その応用形態に応じて適切に定めることができる。   As described above, the present invention has been described based on the embodiments, but the present invention is not limited to the requirements shown here, such as combinations with other elements listed in the above embodiments. With respect to these points, the present invention can be changed within a range that does not detract from the gist of the present invention, and can be appropriately determined according to the application form.

本発明に係る画像処理装置の全体構成例を示す図である。It is a figure which shows the example of whole structure of the image processing apparatus which concerns on this invention. 本発明に係る画像処理装置の機能構成の概要を示す図である。It is a figure which shows the outline | summary of the function structure of the image processing apparatus which concerns on this invention. 本発明に係る第1の画像データ処理装置12の機能の構成例を示す図である。It is a figure which shows the structural example of the function of the 1st image data processing apparatus 12 which concerns on this invention. 本発明に係る第2の画像データ処理装置14の機能の構成例を示す図である。It is a figure which shows the structural example of the function of the 2nd image data processing apparatus 14 which concerns on this invention. 下地除去部42による下地除去を説明するための図である。FIG. 6 is a diagram for explaining background removal by the background removal unit. 本発明に係る第1の画像データ処理装置12の機能の構成の別の例を示す図である。It is a figure which shows another example of a function structure of the 1st image data processing apparatus 12 which concerns on this invention. 本発明に係る第2の画像データ処理装置14の機能の構成の別の例を示す図である。It is a figure which shows another example of a function structure of the 2nd image data processing apparatus 14 which concerns on this invention.

符号の説明Explanation of symbols

1 画像処理装置
12 第1の画像データ処理装置
14 第2の画像データ処理装置
31 スキャナγ変換部
32 色変換部
33 フィルタ処理部
34 圧縮処理部
35 下地検出部
41 伸張処理部
42 下地除去部
43 色変換部
44 プリンタγ変換部
45 階調処理部(中間調処理部)
46 彩度検出部
51 色数検知部
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 12 1st image data processing apparatus 14 2nd image data processing apparatus 31 Scanner gamma conversion part 32 Color conversion part 33 Filter processing part 34 Compression processing part 35 Background detection part 41 Decompression processing part 42 Background removal part 43 Color conversion unit 44 Printer γ conversion unit 45 Gradation processing unit (halftone processing unit)
46 Saturation Detection Unit 51 Color Number Detection Unit

Claims (12)

カラー画像データから下地色データを検出する下地検出手段と、
前記下地検出手段により検出された下地色データの色情報を検出する色情報検出手段と、
前記下地検出手段により検出された下地色データと前記色情報検出手段により検出された色情報に基づき、前記カラー画像データから下地を除去する下地除去手段と、
を有することを特徴とする画像処理装置。
Background detection means for detecting background color data from color image data;
Color information detection means for detecting color information of the background color data detected by the background detection means;
Ground removal means for removing the ground from the color image data based on the ground color data detected by the ground detection means and the color information detected by the color information detection means;
An image processing apparatus comprising:
前記色情報検出手段により検出される色情報は、下地色データの彩度情報であることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the color information detected by the color information detection unit is saturation information of background color data. 前記下地除去手段により下地を除去するか否かの選択を促す下地除去選択手段を有し、
前記色情報検出手段により検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、
前記色情報検出手段により検出された彩度が所定の閾値以上の場合、前記下地除去選択手段は、前記下地除去手段により下地を除去するか否かの選択を促すことを特徴とする請求項2に記載の画像処理装置。
A background removal selection means for prompting selection of whether to remove the background by the background removal means;
If the saturation detected by the color information detection means is less than a predetermined threshold, the background removal means removes the background,
3. The background removal selection unit prompts the user to select whether or not to remove the background when the saturation detected by the color information detection unit is equal to or greater than a predetermined threshold. An image processing apparatus according to 1.
出力カラーモードの選択を促すカラーモード選択手段と、
前記カラーモード選択手段により選択されたカラーモードに応じて、前記下地除去手段により下地を除去するか否かを制御する下地除去制御手段と、
を有することを特徴とする請求項2に記載の画像処理装置。
Color mode selection means for prompting selection of an output color mode;
A background removal control means for controlling whether or not the background is removed by the background removal means according to the color mode selected by the color mode selection means;
The image processing apparatus according to claim 2, further comprising:
前記色情報検出手段により検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、
前記色情報検出手段により検出された彩度が所定の閾値以上、且つ、前記カラーモード選択手段により選択された出力カラーモードがカラー出力の場合、前記下地除去制御手段は、前記下地除去手段により下地を除去しないように制御し、
前記色情報検出手段により検出された彩度が所定の閾値以上、且つ、前記カラーモード選択手段により選択された出力カラーモードがモノクロ出力の場合、前記下地除去制御手段は、前記下地除去手段により下地を除去するように制御することを特徴とする請求項4に記載の画像処理装置。
If the saturation detected by the color information detection means is less than a predetermined threshold, the background removal means removes the background,
When the saturation detected by the color information detection means is equal to or greater than a predetermined threshold and the output color mode selected by the color mode selection means is color output, the background removal control means Control not to remove,
When the saturation detected by the color information detection means is equal to or greater than a predetermined threshold and the output color mode selected by the color mode selection means is monochrome output, the background removal control means uses the background removal means to The image processing apparatus according to claim 4, wherein the image processing apparatus is controlled to remove the image.
画質モードの選択を促す画質モード選択手段と、
前記画質モード選択手段により選択された画質モードに応じて、前記下地除去手段により下地を除去するか否かを制御する下地除去制御手段と、
を有することを特徴とする請求項2に記載の画像処理装置。
An image quality mode selection means for prompting selection of an image quality mode;
Background removal control means for controlling whether or not the background removal means removes the background according to the image quality mode selected by the image quality mode selection means;
The image processing apparatus according to claim 2, further comprising:
前記色情報検出手段において検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、
前記色情報検出手段において検出された彩度が所定の閾値以上の場合、前記下地除去制御手段は、前記画質モード選択手段により選択された画質モードが文字を重視する画質モードの場合にのみ下地を除去するように制御することを特徴とする請求項6に記載の画像処理装置。
If the saturation detected by the color information detection means is less than a predetermined threshold, the background removal means removes the background,
When the saturation detected by the color information detection unit is equal to or greater than a predetermined threshold, the background removal control unit applies the background only when the image quality mode selected by the image quality mode selection unit is an image quality mode that emphasizes characters. The image processing apparatus according to claim 6, wherein the image processing apparatus is controlled to be removed.
カラー画像の色数を検出する色数検出手段を有し、
前記色情報検出手段において検出された彩度が所定の閾値未満の場合、前記下地除去手段は下地を除去し、
前記色情報検出手段において検出された彩度が所定の閾値以上の場合、前記色数検出手段により検出された色数が所定数以下の場合にのみ、前記下地除去手段により下地を除去するように制御することを特徴とする請求項2に記載の画像処理装置。
Having color number detection means for detecting the number of colors in the color image;
If the saturation detected by the color information detection means is less than a predetermined threshold, the background removal means removes the background,
When the saturation detected by the color information detection means is greater than or equal to a predetermined threshold, the background removal means removes the background only when the number of colors detected by the color number detection means is less than or equal to the predetermined number. The image processing apparatus according to claim 2, wherein the image processing apparatus is controlled.
カラー画像データを所定の特性の色空間のカラー画像データに変換する色変換手段を有し、
前記下地検出手段は、前記色変換手段により所定の特性の色空間に変換されたカラー画像データから下地色データを検出することを特徴とする請求項1乃至8のいずれか一項に記載の画像処理装置。
Color conversion means for converting color image data into color image data of a color space having a predetermined characteristic;
9. The image according to claim 1, wherein the background detection unit detects background color data from color image data converted into a color space having a predetermined characteristic by the color conversion unit. Processing equipment.
下地除去される前のカラー画像データと、前記下地検出手段において検出された下地色データとを蓄積する蓄積手段をさらに有することを特徴とする請求項1乃至9のいずれか一項に記載の画像処理装置。   The image according to any one of claims 1 to 9, further comprising storage means for storing color image data before background removal and background color data detected by the background detection means. Processing equipment. カラー画像データから下地色データを検出する下地検出工程と、
前記下地検出工程において検出された下地色データの色情報を検出する色情報検出工程と、
前記下地検出工程において検出された下地色データと前記色情報検出工程において検出された色情報に基づき、前記カラー画像データから下地を除去する下地除去工程と、
を有することを特徴とする画像処理方法。
A background detection step for detecting background color data from color image data;
A color information detection step of detecting color information of the background color data detected in the background detection step;
A background removal step of removing the background from the color image data based on the background color data detected in the background detection step and the color information detected in the color information detection step;
An image processing method comprising:
前記色情報検出工程において検出される色情報は、下地色データの彩度情報であることを特徴とする請求項11に記載の画像処理方法。   The image processing method according to claim 11, wherein the color information detected in the color information detection step is saturation information of background color data.
JP2007163884A 2007-06-21 2007-06-21 Image processing apparatus and image processing method Expired - Fee Related JP4814162B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007163884A JP4814162B2 (en) 2007-06-21 2007-06-21 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007163884A JP4814162B2 (en) 2007-06-21 2007-06-21 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2009005068A true JP2009005068A (en) 2009-01-08
JP4814162B2 JP4814162B2 (en) 2011-11-16

Family

ID=40320972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007163884A Expired - Fee Related JP4814162B2 (en) 2007-06-21 2007-06-21 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4814162B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010283464A (en) * 2009-06-02 2010-12-16 Ricoh Co Ltd Image processor, and image processing method
JP2011188489A (en) * 2010-03-04 2011-09-22 Toshiba Corp Image processing apparatus and image processing method
JP2015025976A (en) * 2013-07-26 2015-02-05 京セラドキュメントソリューションズ株式会社 Image forming apparatus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02276366A (en) * 1989-01-21 1990-11-13 Ricoh Co Ltd Image processor
JPH0937093A (en) * 1995-07-20 1997-02-07 Canon Inc Device and method for processing image
JP2001053938A (en) * 1999-05-31 2001-02-23 Ricoh Co Ltd Image reader and image forming device
JP2003338930A (en) * 2002-05-21 2003-11-28 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2005192153A (en) * 2003-12-26 2005-07-14 Canon Inc Image processing apparatus, image processing method, and computer program
JP2005217984A (en) * 2004-01-30 2005-08-11 Fuji Xerox Co Ltd Image processing device
JP2005260530A (en) * 2004-03-11 2005-09-22 Fuji Xerox Co Ltd Image reader, image forming device, image processor and program
JP2006115348A (en) * 2004-10-15 2006-04-27 Ricoh Co Ltd Image information device and image printing method
JP2007043569A (en) * 2005-08-04 2007-02-15 Ricoh Co Ltd Image processing apparatus, program, and image processing method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02276366A (en) * 1989-01-21 1990-11-13 Ricoh Co Ltd Image processor
JPH0937093A (en) * 1995-07-20 1997-02-07 Canon Inc Device and method for processing image
JP2001053938A (en) * 1999-05-31 2001-02-23 Ricoh Co Ltd Image reader and image forming device
JP2003338930A (en) * 2002-05-21 2003-11-28 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2005192153A (en) * 2003-12-26 2005-07-14 Canon Inc Image processing apparatus, image processing method, and computer program
JP2005217984A (en) * 2004-01-30 2005-08-11 Fuji Xerox Co Ltd Image processing device
JP2005260530A (en) * 2004-03-11 2005-09-22 Fuji Xerox Co Ltd Image reader, image forming device, image processor and program
JP2006115348A (en) * 2004-10-15 2006-04-27 Ricoh Co Ltd Image information device and image printing method
JP2007043569A (en) * 2005-08-04 2007-02-15 Ricoh Co Ltd Image processing apparatus, program, and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010283464A (en) * 2009-06-02 2010-12-16 Ricoh Co Ltd Image processor, and image processing method
JP2011188489A (en) * 2010-03-04 2011-09-22 Toshiba Corp Image processing apparatus and image processing method
JP2015025976A (en) * 2013-07-26 2015-02-05 京セラドキュメントソリューションズ株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JP4814162B2 (en) 2011-11-16

Similar Documents

Publication Publication Date Title
JP4067532B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, computer program, and recording medium
US7706022B2 (en) Image forming apparatus and image forming method
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP4700721B2 (en) Image processing device
JP3989738B2 (en) Image forming method, image forming apparatus, program, and recording medium
JP2010035139A (en) Image processor, image forming apparatus, image processing method, and image processing program
KR20190013657A (en) Image processing apparatus, image processing method, and storage medium
JP2010166506A (en) Image output device, image output method, image output program and recording medium
US20080043291A1 (en) Image forming apparatus
JP5095667B2 (en) Output instruction apparatus, image forming system, output instruction method, control program, and recording medium therefor
JP4903851B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2011059445A (en) Image forming apparatus, method of forming preview image, and program
JP4814162B2 (en) Image processing apparatus and image processing method
JP2007194810A (en) Image processing device
JP2004363795A (en) Apparatus, method, and program for image processing
JP2006011754A (en) Image processing device and image processing method
JP4990340B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2013038523A (en) Image processor, image formation apparatus, image processing method, and image processing program
JP7495660B2 (en) Image processing device and computer program
JP2009260923A (en) Image processing device, image processing method, and image processing program
JP2010283464A (en) Image processor, and image processing method
JP2010087550A (en) Image processor, image forming apparatus, image processing method, computer program, and recording medium recorded with the computer program
JP4101741B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2005057598A (en) Color image forming device and color image processor
JP4118823B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110524

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110701

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110825

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140902

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees