JP2003051946A - 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 - Google Patents

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

Info

Publication number
JP2003051946A
JP2003051946A JP2001318565A JP2001318565A JP2003051946A JP 2003051946 A JP2003051946 A JP 2003051946A JP 2001318565 A JP2001318565 A JP 2001318565A JP 2001318565 A JP2001318565 A JP 2001318565A JP 2003051946 A JP2003051946 A JP 2003051946A
Authority
JP
Japan
Prior art keywords
level
background
image processing
frequency
density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001318565A
Other languages
Japanese (ja)
Inventor
Mihoko Tanimura
美保子 谷村
Shoji Nakamura
昌次 中村
Mitsuru Tokuyama
満 徳山
Masaaki Otsuki
正明 大槻
Eiji Nishimitsu
英二 西光
Norihide Yasuoka
紀英 安岡
Shinji Imagawa
眞司 今川
Tatsuya Tanaka
達哉 田中
Hiroshi Kono
浩史 河野
Tomoe Matsuoka
朋枝 松岡
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 JP2001318565A priority Critical patent/JP2003051946A/en
Publication of JP2003051946A publication Critical patent/JP2003051946A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing method that can prevent deterioration of image quality, regardless of a type of an original image through accurate detection of a background level, and to provide an image processing apparatus, an imaging device provided with the image processing apparatus, an image processing program, and a computer-readable recording medium for recording the program. SOLUTION: The image processing method using a digital color copying machine generates histograms from input image data (input signal) obtained by preliminary scanning by a CCD from a read original, detects a background level, and performs the image processing according to the background level, and starts searching from a dark side of the histogram, detects a level first which exceeds a prescribed threshold as a background object level, compares a frequency of occurrence of the background object levels with the frequency of occurrence of levels adjacent to the level toward the bright side, and decides a level having higher frequency of occurrence to be the background level.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カラーおよびモノ
クロディジタルカラー複写機等における画像処理方法に
関するものであり、特に、下地レベルを正確に検出し
て、原稿画像の種類によらず画質の低下を防止できる画
像処理方法、画像処理装置、画像処理装置を備えた画像
形成装置、画像処理プログラム、およびこれを記録した
コンピュータ読み取り可能な記録媒体に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method in a color or monochrome digital color copying machine or the like, and in particular, it accurately detects the background level to reduce the image quality regardless of the type of the original image. The present invention relates to an image processing method that can be prevented, an image processing apparatus, an image forming apparatus including the image processing apparatus, an image processing program, and a computer-readable recording medium that records the same.

【0002】[0002]

【従来の技術】電子写真プロセスを用いた複写機などの
画像形成装置は、従来のアナログ式のほかにディジタル
式のものが普及している。このような状況の中で、アナ
ログ複写機では一般的な機能である自動露光機能、すな
わち原稿濃度センサで検知して露光ランプの明るさを変
化させ最適画質を得る方法が知られている。
2. Description of the Related Art As an image forming apparatus such as a copying machine using an electrophotographic process, a digital type is widely used in addition to the conventional analog type. Under such circumstances, there is known an automatic exposure function which is a general function in analog copying machines, that is, a method of obtaining the optimum image quality by detecting the original density sensor and changing the brightness of the exposure lamp.

【0003】ディジタル複写機においては、自動露光機
能を実現する方法として、特許第2984280号公報
には、カラー画像の画像種類を判定し、文字画像が含ま
れると判定された場合下地除去を行う方式の画像処理方
法が記載されている。また、画像種類判定としては、最
大原稿反射輝度から所定範囲に存在するデータ数が所定
%か否かにより判定する方式が挙げられている。
As a method of realizing an automatic exposure function in a digital copying machine, Japanese Patent No. 2948280 discloses a method of determining the image type of a color image and removing the background when it is determined that a character image is included. Image processing method is described. Further, as the image type determination, there is a method of determining whether the number of data existing in a predetermined range from the maximum document reflection brightness is a predetermined% or not.

【0004】また、カラー複写機等に用いられている画
像処理装置では、下地が着色されている原稿、例えば新
聞紙等を読み取って画像処理を行うことも考えられる。
Further, in an image processing apparatus used in a color copying machine or the like, it may be considered to read a document whose background is colored, such as newspaper, for image processing.

【0005】しかし、従来の画像処理装置においては、
この下地の色を読み取ってしまうことで、画質の低下を
招くという問題があった。
However, in the conventional image processing apparatus,
There is a problem in that the image quality is deteriorated by reading the background color.

【0006】このような問題を解決するために、例え
ば、特開平4−313774号公報には、読み取り原稿
の入力データを基にしてヒストグラムを作成し、高濃度
側から順次度数をチェックしていき、最初に閾値を超え
た濃度を下地とする画像処理装置が提案されている。
In order to solve such a problem, for example, in Japanese Unexamined Patent Publication No. 4-313774, a histogram is created based on input data of a read original and the frequencies are sequentially checked from the high density side. First, an image processing apparatus has been proposed which uses a density exceeding a threshold as a base.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記公
報のような従来の画像処理装置による画像処理方法で
は、以下のような問題を有している。
However, the image processing method by the conventional image processing apparatus as described in the above publication has the following problems.

【0008】上記特許第2984280号公報に記載の
構成では、最大反射濃度を下地とすることから、例え
ば、下地や裏写りを持つ原稿に白縁や白抜き部分が存在
する場合、白縁や白抜き部分が下地濃度であると判定さ
れ、印刷するべきでない下地や裏写りが残ってしまう。
In the configuration described in the above-mentioned Japanese Patent No. 2948280, since the maximum reflection density is used as the background, for example, when a document having a background or show-through has a white edge or a white portion, a white edge or white is present. It is determined that the removed portion has the background density, and the background or show-through that should not be printed remains.

【0009】また、最大反射濃度を下地とすることか
ら、原稿最大反射濃度より高濃度を有する裏うつりを除
去することができない。
Further, since the maximum reflection density is used as the base, it is not possible to remove the back slip having a density higher than the maximum reflection density of the original.

【0010】さらに、白紙へ新聞原稿等の切り貼り原稿
の場合に新聞下地濃度を下地として検出できない。
Further, in the case of a cut and pasted original such as a newspaper original on a blank sheet, the newspaper background density cannot be detected as the background.

【0011】また、特開平4−313774号公報に記
載の画像処理装置は、下地かぶりあるいは裏うつりのあ
る原稿の判読性を上げ、最適な再生画像を得ることを目
的とした処理であるが、適正な下地レベルが検出されな
ければ、画質劣化を防止することはできない。
The image processing apparatus disclosed in Japanese Patent Laid-Open No. 4-313774 is intended to improve the legibility of an original document having a background fog or backslip and to obtain an optimum reproduced image. If a proper background level is not detected, it is impossible to prevent image quality deterioration.

【0012】特に、文字と階調を持つ濃淡画像とが混在
するような原稿においては、ハイライト部の再現が困難
であり、また、切り貼り原稿あるいは複数の下地らしい
ピーク濃度を持つ原稿においては、下地レベルの正確な
検出は困難となる。さらに、カラー画像を含む原稿にお
いては、色かぶりが存在し、処理によっては再生画像に
色目の変化が発生してしまう。
In particular, it is difficult to reproduce the highlight portion in a document in which characters and a grayscale image having gradation are mixed, and in the case of a cut and pasted document or a document having a plurality of peak-like peak density, Accurate detection of the background level becomes difficult. Further, in a document containing a color image, there is a color cast, and depending on the processing, a color tone change occurs in the reproduced image.

【0013】このように、上記公報の画像処理装置によ
る画像処理方法では、種々の原稿画像に対して、正確な
下地レベルを検出し、画質劣化を防止することは難し
い。
As described above, with the image processing method by the image processing apparatus of the above publication, it is difficult to detect an accurate background level for various original images and prevent image quality deterioration.

【0014】本発明は、上記の問題点に鑑みてなされた
ものであり、その目的は、下地レベルのより正確な検出
により、原稿画像の種類を問わず、画質低下の防止を実
現できる画像処理方法、画像処理装置、画像処理装置を
備えた画像形成装置、画像処理プログラム、およびこれ
を記録したコンピュータ読み取り可能な記録媒体を提供
することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to perform image processing capable of preventing deterioration of image quality regardless of types of original images by more accurate detection of a background level. A method, an image processing apparatus, an image forming apparatus including the image processing apparatus, an image processing program, and a computer-readable recording medium recording the program.

【0015】[0015]

【課題を解決するための手段】本発明の画像処理方法
は、上記の課題を解決するために、原稿を読み取って得
られた入力信号から、ヒストグラムを作成して下地レベ
ルを検出し、該下地レベルに応じた画像処理を行う画像
処理方法において、上記ヒストグラムの暗側からサーチ
を開始し、所定の閾値を最初に超えるレベルを下地候補
レベルとして検出するとともに、該下地候補レベルの度
数と明側に隣接するレベルの度数とを比較して、度数が
大きい方のレベルを下地レベルとして決定することを特
徴としている。
In order to solve the above-mentioned problems, an image processing method of the present invention is to create a histogram from an input signal obtained by reading an original to detect a background level, and to detect the background level. In an image processing method for performing image processing according to a level, a search is started from the dark side of the histogram, a level that first exceeds a predetermined threshold is detected as a background candidate level, and the frequency and the bright side of the background candidate level are detected. It is characterized in that the level having a higher frequency is determined as the base level by comparing the frequency with the level adjacent to the.

【0016】上記の構成によれば、より正確な下地レベ
ルの検出が可能となり、良好な画像形成を行うことがで
きる。
According to the above arrangement, it is possible to detect the background level more accurately, and it is possible to form an excellent image.

【0017】すなわち、所定の閾値を最初に超えるレベ
ルを下地候補レベルとし、さらに、下地候補レベルの度
数とその明側に隣接するレベルの度数とを比較して、度
数が大きい方のレベルを下地レベルとして検出すること
で、より正確な下地レベルの検出が可能となる。これに
より、ピークサーチを行わない簡易な画像処理方法であ
っても、よりピークに近いレベルを検出することができ
る。
That is, the level that first exceeds the predetermined threshold is set as the background candidate level, and the frequency of the background candidate level is compared with the frequencies of the levels adjacent to the bright side thereof, and the level with the higher frequency is used as the background. By detecting the level, it is possible to detect the background level more accurately. Thus, even with a simple image processing method that does not perform peak search, it is possible to detect a level closer to the peak.

【0018】よって、下地かぶりあるいは裏うつりのあ
る原稿の読み取り性が向上し、白紙に新聞等の切り抜き
をスクラップした切り貼り原稿等にも対応した下地レベ
ルの検出を行うことができる。
Accordingly, the readability of an original document with a background fog or back-slip is improved, and the background level can be detected even for a cut and pasted original document obtained by scrapping a blank of a newspaper or the like.

【0019】さらに、所定の閾値等の制御を行うことに
より、切り貼り原稿のみでなく、複数の下地らしいピー
ク濃度を持つ原稿等の様々な原稿画像に対応した正確な
下地レベルの検出が可能となる。
Further, by controlling the predetermined threshold value and the like, it is possible to accurately detect the background level not only for cut and pasted originals but also for various original images such as originals having a plurality of peak-like peak densities. .

【0020】本発明の画像処理方法は、上記の課題を解
決するために、原稿を読み取って得られた入力信号か
ら、ヒストグラムを作成して下地レベルを検出し、該下
地レベルに応じた画像処理を行う画像処理方法におい
て、上記ヒストグラムの暗側からサーチを開始し、所定
の閾値を最初に超えるレベルを下地候補レベルとして検
出するとともに、該下地候補レベルの度数に対する、そ
の明側に隣接するレベルの度数の度数比を求め、該度数
比が予め定められた所定値未満の場合には、該下地候補
レベルを下地レベルとして決定し、上記度数比が上記所
定値以上の場合には、明側に隣接するレベルを下地レベ
ルとして決定することを特徴としている。
In order to solve the above-mentioned problems, the image processing method of the present invention creates a histogram from an input signal obtained by reading a document, detects a background level, and performs image processing according to the background level. In the image processing method, the search is started from the dark side of the histogram, a level that first exceeds a predetermined threshold is detected as a background candidate level, and a level adjacent to the bright side with respect to the frequency of the background candidate level is detected. If the frequency ratio is less than a predetermined value set in advance, the base candidate level is determined as the base level, and if the frequency ratio is the predetermined value or more, the bright side The feature is that the level adjacent to is determined as the base level.

【0021】上記の構成によれば、より正確な下地レベ
ルの検出が可能となり、良好な画像形成を行うことがで
きる。
According to the above arrangement, it is possible to detect the background level more accurately, and it is possible to form an excellent image.

【0022】すなわち、検出レベルの度数およびその明
側に隣接するレベルの度数の度数比に応じた下地レベル
の検出を行うことで、ヒストグラム度数のバラつきや誤
差に対応した、より正確な下地レベルの検出が可能とな
る。
That is, by detecting the background level in accordance with the frequency of the detection level and the frequency ratio of the frequencies of the levels adjacent to the light side thereof, a more accurate background level of the histogram frequency corresponding to variations and errors in the histogram frequency is detected. It becomes possible to detect.

【0023】これにより、ピークサーチを行わない簡易
な構成でありながら、よりピークに近い下地レベルを検
出できる。
With this arrangement, the background level closer to the peak can be detected with a simple structure in which the peak search is not performed.

【0024】本発明の画像処理方法は、上記の課題を解
決するために、原稿を読み取って得られた入力信号から
ヒストグラムを作成して下地レベルを検出し、該下地レ
ベルに応じた画像処理を行う画像処理方法において、上
記ヒストグラムの明側からサーチを開始し、所定の閾値
を最初に超えるレベルを下地候補レベルとして検出する
とともに、該下地候補レベルの度数と暗側に隣接するレ
ベルの度数とを比較して、度数の大きい方のレベルを下
地レベルとして決定することを特徴としている。
In order to solve the above problems, the image processing method of the present invention creates a histogram from an input signal obtained by reading an original to detect a background level, and performs image processing according to the background level. In the image processing method to be performed, the search is started from the bright side of the histogram, a level that first exceeds a predetermined threshold is detected as a background candidate level, and the frequency of the background candidate level and the frequency of a level adjacent to the dark side are detected. Are compared with each other, and the level having the higher frequency is determined as the background level.

【0025】上記の構成によれば、より正確な下地レベ
ルの検出が可能となり、良好な画像形成を行うことがで
きる。
According to the above arrangement, it is possible to detect the background level more accurately, and it is possible to form an excellent image.

【0026】すなわち、ヒストグラムの明側の区分から
サーチを開始し、所定の閾値により検出した下地候補レ
ベルの度数とその暗側に隣接するレベルの度数とを比較
して、度数の大きい方のレベルを下地レベルとして決定
することで、複数の下地らしいピーク濃度を持つ原稿に
対しても、より正確な下地レベルの検出が可能になる。
That is, the search is started from the bright side of the histogram, and the frequency of the background candidate level detected by the predetermined threshold is compared with the frequency of the level adjacent to the dark side, and the level with the higher frequency is compared. By determining as the background level, it becomes possible to detect the background level more accurately even for a document having a plurality of peak density values that seem to be the background.

【0027】これにより、ピークサーチを行わない簡易
な構成でありながら、よりピークに近い下地レベルを検
出できる。
With this arrangement, it is possible to detect the background level closer to the peak, even though the peak search is not performed.

【0028】また、上記ヒストグラムにおける最明側レ
ベルの度数が、上記所定の閾値より大きい場合には、該
レベルを下地候補レベルから除外するとともに、上記所
定の閾値を該下地候補レベルの度数に応じて変化させる
ことがより好ましい。
When the frequency of the brightest level in the histogram is larger than the predetermined threshold value, the level is excluded from the background candidate level and the predetermined threshold value is set according to the frequency of the background candidate level. It is more preferable to change it.

【0029】これにより、上記ヒストグラムの最明側の
レベルの度数が所定の閾値より大きい場合には、該レベ
ルを下地候補レベルから除外することで、白レベルデー
タ量の影響を考慮した下地レベルの検出が可能になる。
よって、複数の下地らしいピーク濃度を持つ原稿に加え
て、白紙に新聞等の切り抜きをスクラップした切り貼り
原稿等であっても、白レベルデータの影響を受けずに、
正確な下地レベルを検出できる。
As a result, when the frequency of the level on the brightest side of the histogram is larger than the predetermined threshold value, the level is excluded from the background candidate levels, and the background level considering the influence of the white level data amount is taken into consideration. It becomes possible to detect.
Therefore, in addition to a manuscript having peak density like multiple backgrounds, even a cut and pasted manuscript with scraps of newspapers cut out on a white paper, etc., without being affected by the white level data,
An accurate background level can be detected.

【0030】また、上記決定された下地レベルに応じ
て、各色の入力信号のそれぞれに対して同一の濃度変換
処理を行うことがより好ましい。
Further, it is more preferable to perform the same density conversion processing on each of the input signals of the respective colors according to the background level determined above.

【0031】これにより、各色の入力信号を基にして行
う下地除去において、色かぶりあるいは色みのある下地
を有する原稿に対して、特定色のみの下地除去を行った
場合には、色目の変化が生じるという問題があるが、R
GBもしくはCMY各色のそれぞれに対して、同一の濃
度変換処理を行うことにより、色目の変化のない再生画
像を得ることができる。
As a result, in the background removal performed based on the input signals of the respective colors, when the background removal of only a specific color is performed on an original having a color cast or a tinted background, the change of the color is performed. There is a problem that
By performing the same density conversion processing on each of the GB and CMY colors, it is possible to obtain a reproduced image with no change in color.

【0032】また、上記所定の閾値は、上記ヒストグラ
ムの総度数に対する割合で決定されることがより好まし
い。
Further, it is more preferable that the predetermined threshold value is determined by a ratio to the total frequency of the histogram.

【0033】これにより、下地レベル検出に用いられる
所定の閾値は、ヒストグラム総度数に対する割合として
決定されることで、原稿サイズに応じた複数の閾値を設
定する必要がなく、簡易な構成にて各種の原稿に対して
適切な閾値を設定できる。
As a result, the predetermined threshold value used for detecting the background level is determined as a ratio to the total histogram frequency, so that it is not necessary to set a plurality of threshold values according to the document size, and various types can be used with a simple structure. An appropriate threshold value can be set for the original document.

【0034】また、上記ヒストグラムの区分毎の濃度レ
ベルに応じて上記所定の閾値を変更し、該区分毎の閾値
を決定して下地レベルを検出することがより好ましい。
It is more preferable that the predetermined threshold value is changed according to the density level of each section of the histogram and the threshold value of each section is determined to detect the background level.

【0035】これにより、例えば、上記ヒストグラムに
おける最明側の区分1に対応する閾値1を、他の区分に
対応する閾値2よりも大きく設定することにより、区分
1が下地候補レベルとして誤って検出されるのを防止で
きる。よって、複数の下地らしいピーク濃度を持つ原稿
のみでなく、切り貼り原稿にも対応した、より正確な下
地レベルの検出が可能となる。
Thus, for example, by setting the threshold value 1 corresponding to the brightest side section 1 in the histogram to be larger than the threshold value 2 corresponding to other sections, the section 1 is erroneously detected as the background candidate level. Can be prevented. Therefore, it is possible to detect the background level more accurately, not only for a document having a plurality of peak densities like a background but also for a cut and pasted document.

【0036】本発明の画像処理方法は、上記の課題を解
決するために、原稿を読み取って得られた入力信号か
ら、ヒストグラムを作成して下地レベルを検出し、該下
地レベルに応じた画像処理を行う画像処理方法におい
て、上記ヒストグラムを予め定められる方向にサーチ
し、サーチ開始側の濃度区分の度数と第1の閾値とを比
較することにより上記原稿を下地なしとするのか後に下
地候補を検出する工程を行うのかを判定する第1の工程
と、上記第1の工程において下地候補を検出する工程を
行うと判定した場合、濃度区分の度数を第2の閾値と比
較することにより下地の候補があるか否かを判定する第
2の工程と、上記第2の工程において、下地の候補があ
ると判定された場合、度数が上記第2の閾値以上となる
濃度区分の度数と、該濃度区分とサーチする方向に隣接
する濃度区分の度数とを加算し、該加算値と第3の閾値
とを比較することにより下地の有無を判定する第3の工
程とを有し、上記第1から第3の工程の結果に基づいて
下地除去処理を行うことを特徴としている。
In order to solve the above problems, the image processing method of the present invention creates a histogram from an input signal obtained by reading an original to detect a background level, and performs image processing according to the background level. In the image processing method, the histogram is searched in a predetermined direction, and the frequency of the density section on the search start side is compared with the first threshold to detect whether the document is backgroundless or to detect a background candidate later. If it is determined that the first step of determining whether to perform the step and the step of detecting the background candidate in the first step are performed, the frequency of the density classification is compared with the second threshold to determine the background candidate. In the second step of determining whether or not there is a background candidate, and in the second step, when it is determined that there is a candidate for the background, the frequency of the density classification in which the frequency is equal to or higher than the second threshold, and the density A third step of determining the presence or absence of a background by adding the division and the frequencies of adjacent density divisions in the search direction, and comparing the added value with a third threshold value. The feature is that base removal processing is performed based on the result of the third step.

【0037】具体的には、上記の画像処理方法は、サー
チをヒストグラムの低濃度側から高濃度側に向けて行う
ことが好ましい。
Specifically, in the above image processing method, it is preferable that the search is performed from the low density side to the high density side of the histogram.

【0038】上記の構成によれば、第1の工程によって
下地なしの場合を判定し、第1の工程において下地なし
と確定しない場合は第2の工程によって下地レベルを判
定することにより下地候補を検出する。ここで下地候補
を検出できない場合は下地なしとし、下地候補を検出で
きた場合は第3の工程によってさらに下地の有無を判定
する。
According to the above configuration, the case where there is no background is determined in the first step, and when it is not determined that there is no background in the first step, the background level is determined in the second step to select the background candidate. To detect. If the background candidate cannot be detected, it is determined that there is no background, and if the background candidate can be detected, the presence or absence of the background is further determined in the third step.

【0039】これにより、原稿の種類を判定する処理を
不要とする簡単な構成であっても、印画紙、印刷写真系
原稿、下地かぶりまたは裏うつりのある原稿の判読性を
上げることができ、最適な再生画像を得ることができ
る。すなわち、複数の下地らしいピーク濃度を持つ原
稿、すなわち、白データの存在する場合にも、より的確
な下地レベルの検出が可能となる。
As a result, the readability of a photographic printing paper, a print photographic original, an original with a background fog or a backslip can be improved even with a simple structure that does not require the processing for determining the type of the original. An optimum reproduced image can be obtained. That is, it is possible to detect the background level more accurately even in the case where there are a plurality of originals having peak density that is similar to the background, that is, white data exists.

【0040】また、複数の色成分に対して、同一の下地
除去方法を用いることにより、カラー画像に対して色目
の変化の発生しない、再生画像を得ることができる。
Further, by using the same background removal method for a plurality of color components, it is possible to obtain a reproduced image in which no color change occurs in the color image.

【0041】上記の画像処理方法は、ヒストグラムが、
入力信号からの比率計算により得られる輝度情報を基に
して作成されることが好ましい。
In the above image processing method, the histogram is
It is preferably created based on the luminance information obtained by the ratio calculation from the input signal.

【0042】これにより、CMY信号あるいはRGB信
号等の入力信号を基にして算出した輝度情報(Gray
データ、輝度データ)から、ヒストグラムを作成して下
地レベル検出を行うことにより、CMYあるいはRGB
の全色についてヒストグラムを作成して参照する必要は
なく、より簡易な構成で正確な下地レベルの検出を行う
ことができる。
As a result, the luminance information (Gray) calculated based on the input signal such as the CMY signal or the RGB signal is obtained.
CMY or RGB by creating a histogram from the
It is not necessary to create and refer to the histograms for all the colors, and the base level can be accurately detected with a simpler configuration.

【0043】上記の画像処理方法は、輝度情報が、入力
信号における複数の色成分の比率を同等にして変換され
ていることが好ましい。
In the above image processing method, it is preferable that the luminance information is converted such that the ratios of a plurality of color components in the input signal are equal.

【0044】上記の構成によれば、赤っぽいなどの原稿
の特性を把握することができ、より、色味のある下地を
検出することができる。従って、下地の色味によって検
出精度が異なるといった不具合のない、より適切な下地
の検出が可能となる。
According to the above configuration, it is possible to grasp the characteristics of the original such as reddish and to detect a more colored background. Therefore, it is possible to detect the background more appropriately without the problem that the detection accuracy varies depending on the tint of the background.

【0045】上記の画像処理方法は、第3の工程で、加
算値が第3の閾値以上の場合、度数が第2の閾値以上と
なる濃度区分の濃度、または、該濃度区分とサーチする
方向に隣接する濃度区分の濃度を下地レベルとして決定
することが好ましい。
In the above image processing method, in the third step, when the added value is equal to or more than the third threshold value, the density of the density section whose frequency is equal to or more than the second threshold value, or the direction of searching with the density section. It is preferable to determine the density of the density section adjacent to as the background level.

【0046】上記の構成によれば、ヒストグラム度数の
バラつきや誤差に対応した、より適正な下地レベルの検
出が可能となる。隣接する濃度区分との度数関係に応じ
て下地レベルを決定することで、ピークサーチを行わな
い簡易な構成でありながら、ピークに近いレベルを検出
することができる。
According to the above arrangement, it is possible to detect a more proper background level in response to variations in histogram frequency and errors. By determining the background level according to the frequency relationship with the adjacent density section, it is possible to detect the level close to the peak while having a simple configuration in which the peak search is not performed.

【0047】上記の画像処理方法は、第1の工程で、サ
ーチ開始側の濃度区分の度数が第1の閾値以上の場合
に、原稿は下地なしと判定することが好ましい。
In the above image processing method, in the first step, it is preferable to determine that the document has no background when the frequency of the density section on the search start side is equal to or higher than the first threshold value.

【0048】上記の構成によれば、簡単な構成で、例え
ば、縁の白紙部分及び/またはハイライト部の存在する
写真原稿、すなわち、白データの存在する場合にも、的
確な下地レベルを検出することができる。
According to the above-mentioned structure, an accurate background level can be detected with a simple structure even when, for example, a photographic document having a white paper portion and / or a highlight portion at the edge, that is, white data exists. can do.

【0049】上記の画像処理方法は、第1の閾値、第2
の閾値、第3の閾値はそれぞれ独立しており、それぞれ
が任意に変更可能に構成されていることが好ましい。
The image processing method described above uses the first threshold value and the second threshold value.
It is preferable that the threshold value and the third threshold value are independent of each other, and each of them can be arbitrarily changed.

【0050】上記の構成によれば、第1の閾値、第2の
閾値、第3の閾値のうち、目的に応じたものについて変
更することが可能となる。
According to the above configuration, it is possible to change one of the first threshold value, the second threshold value, and the third threshold value depending on the purpose.

【0051】例えば、第1の閾値により、切り貼り原稿
に対する白データ量を所望の設定とすることが可能とな
る。
For example, the first threshold makes it possible to set the amount of white data for the cut and pasted original to a desired setting.

【0052】また、第2の閾値により、下地レベル候補
の選択を任意に設定することが可能となる。これによ
り、裏写りの除去などをすることができる。
The second threshold makes it possible to arbitrarily set the selection of the background level candidates. This makes it possible to remove show-through.

【0053】第3の閾値により、印画紙及び印刷写真系
原稿に対する下地検出の有無を、所望の状態に設定する
ことが可能となる。
By the third threshold value, it is possible to set the presence or absence of the background detection for the photographic paper and the print photographic original to a desired state.

【0054】従って、このように下地を判定する閾値の
制御を行うことにより、切り貼り原稿のみでなく、複数
の下地らしいピーク濃度を持つ原稿であっても的確に下
地レベルを検出することができる。
Therefore, by controlling the threshold value for determining the background as described above, the background level can be accurately detected not only for the cut and pasted original, but also for an original having a plurality of peak densities like the background.

【0055】本発明の画像処理装置は、上記の課題を解
決するために、上記記載の画像処理方法を用いて、読み
取り原稿の下地レベルを決定し、下地除去処理を行うこ
とを特徴としている。
In order to solve the above-mentioned problems, the image processing apparatus of the present invention is characterized by using the above-described image processing method to determine the background level of the read original and perform background removal processing.

【0056】上記の構成によれば、網点写真、すなわち
印刷写真や印画紙写真を含む原稿における白データを下
地として検出しない。従って、必要な画像情報が欠落す
るのを防ぐことができる。また、色目の変化を生じるこ
となく所望の下地除去処理を施すことができる。
According to the above arrangement, the halftone data, that is, the white data in the original including the print photograph and the photographic paper photograph is not detected as the background. Therefore, it is possible to prevent necessary image information from being lost. Further, it is possible to perform a desired background removal process without causing a change in color.

【0057】本発明の画像形成装置は、上記の課題を解
決するために、上記記載の画像処理装置と、原稿を読み
取り、画像データとして上記画像処理装置に入力する画
像入力装置と、上記画像処理装置により出力された出力
画像データに基づいて、記録媒体上に画像を形成する画
像出力装置とを備えたことを特徴としている。
In order to solve the above-mentioned problems, an image forming apparatus of the present invention includes the above-mentioned image processing apparatus, an image input apparatus for reading a document and inputting it as image data to the image processing apparatus, and the above image processing. An image output device for forming an image on a recording medium based on output image data output by the device.

【0058】上記の構成によれば、例えば、網点写真や
印画紙写真を含む原稿に対して下地の検出を行わないこ
とにより、必要な画像情報が欠落するのを防ぐことがで
きると共に色目の変化を生じることなく所望の下地除去
処理を施すことができる。
According to the above arrangement, it is possible to prevent the necessary image information from being lost and to prevent the color image from being lost by not detecting the background of the original including the halftone dot photograph and the photographic paper photograph. A desired underlayer removal process can be performed without causing a change.

【0059】従って、原稿の種類を判定することなく、
画質低下の防止を図ることができる。この結果、画像形
成装置において品質の良い画像を出力することができ
る。
Therefore, without judging the type of the original,
It is possible to prevent deterioration of image quality. As a result, a high quality image can be output in the image forming apparatus.

【0060】本発明の画像処理プログラムは、上記の課
題を解決するために、コンピュータに、上記記載の画像
処理方法を実行させることを特徴としている。
An image processing program of the present invention is characterized by causing a computer to execute the above-described image processing method in order to solve the above problems.

【0061】上記の構成によれば、画像処理プログラム
をコンピュータに読み取り実行させることによって、上
記記載の画像処理方法と同じ作用効果を奏することがで
きる。また、上記記載の画像処理方法を汎用的なものと
することができる。
According to the above arrangement, the computer can read and execute the image processing program, so that the same operation and effect as those of the image processing method described above can be obtained. Further, the image processing method described above can be general-purpose.

【0062】本発明のコンピュータ読み取り可能な記録
媒体は、上記の課題を解決するために、上記記載の画像
処理プログラムを記録したことを特徴としている。
The computer-readable recording medium of the present invention is characterized by recording the above-mentioned image processing program in order to solve the above problems.

【0063】上記の構成によれば、上記記載の画像処理
方法と同じ作用効果を奏することができる。また、上記
記載の画像処理方法を汎用的なものとすることができ
る。
According to the above arrangement, the same operation and effect as those of the image processing method described above can be obtained. Further, the image processing method described above can be general-purpose.

【0064】[0064]

【発明の実施の形態】〔実施形態1〕本発明の画像処理
方法に関する実施の一形態について図1〜図9に基づい
て説明すれば以下のとおりである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] The following will describe one embodiment of the image processing method of the present invention with reference to FIGS.

【0065】本実施形態の画像処理装置は、図2に示す
ように、近年の内部装置の小型化、組装置化に伴って主
流となりつつあるタンデム型のディジタルカラー複写機
10に備えられる。このディジタルカラー複写機10
は、4色の画像形成ステーション200Bk(ブラッ
ク)・210C(シアン)・220M(マゼンタ)・2
30Y(イエロー)を備えている。
As shown in FIG. 2, the image processing apparatus according to the present embodiment is provided in a tandem type digital color copying machine 10 which is becoming the mainstream with the recent downsizing of internal devices and assembly of devices. This digital color copying machine 10
4 color image forming stations 200Bk (black), 210C (cyan), 220M (magenta), 2
It is equipped with 30Y (yellow).

【0066】上記4色の画像形成ステーション200B
k・210C・220M・230Yは、装置内部のトナ
ー色が異なるだけで、その他の構成は全て同様となって
いる。
Image forming station 200B for the above four colors
The k, 210C, 220M, and 230Y differ only in the toner color inside the apparatus, and the other configurations are all the same.

【0067】以下では、Bk(ブラック)の画像形成ス
テーション200Bkを例に挙げて説明するが、その他
の画像形成ステーション210C・220M・230Y
についても同様である。例えば、現像装置204Bk・
214C・224M・234Yの回転数についても、そ
れぞれ同一回転数に設定されている。
In the following, the Bk (black) image forming station 200Bk will be described as an example, but the other image forming stations 210C, 220M and 230Y.
Is also the same. For example, the developing device 204Bk
The rotational speeds of 214C, 224M, and 234Y are also set to the same rotational speed.

【0068】画像形成ステーション200Bkのドラム
状の感光体201Bkは、図2に示す矢印D方向に回転
し、その周りには少なくとも回転順に帯電器202B
k、書き込み光学系203Bk、現像装置204Bk、
クリーニング装置205Bkが配置されている。
The drum-shaped photosensitive member 201Bk of the image forming station 200Bk rotates in the direction of arrow D shown in FIG.
k, the writing optical system 203Bk, the developing device 204Bk,
A cleaning device 205Bk is arranged.

【0069】ディジタルカラー複写機10においては、
帯電器202Bkと現像装置204Bkとの間の感光体
201Bk表面に書き込み光学系203Bkからレーザ
光が照射され、感光体201BkにBk(ブラック)の
静電潜像が形成される。このような画像形成ステーショ
ン200Bkと同様の構成の画像形成ステーション21
0C・220M・230Yが、用紙搬送手段である用紙
搬送ベルト250に沿って設けられている。
In the digital color copying machine 10,
Laser light is emitted from the writing optical system 203Bk to the surface of the photoconductor 201Bk between the charger 202Bk and the developing device 204Bk, and a Bk (black) electrostatic latent image is formed on the photoconductor 201Bk. The image forming station 21 having the same structure as the image forming station 200Bk.
0C, 220M, and 230Y are provided along the sheet transport belt 250 that is a sheet transport unit.

【0070】用紙搬送ベルト250は、画像形成ステー
ション200Bkの現像装置204Bkとクリーニング
装置205Bkとの間で感光体201Bkに当接してい
る。さらに、用紙搬送ベルト250の各感光体201B
k側の裏面には、転写バイアスを印加するための転写ロ
ーラ206Bkが配置されている。
The sheet conveying belt 250 is in contact with the photoconductor 201Bk between the developing device 204Bk and the cleaning device 205Bk of the image forming station 200Bk. Further, each photoconductor 201B of the paper transport belt 250
A transfer roller 206Bk for applying a transfer bias is arranged on the back surface on the k side.

【0071】以上のような構成のディジタルカラー複写
機10においては、画像形成動作は以下のようにして行
われる。
In the digital color copying machine 10 having the above structure, the image forming operation is performed as follows.

【0072】まず、画像形成ステーション200Bkに
おいて、感光体201Bkが、帯電器202Bkにより
帯電される。そして、書き込み光学系203Bkから発
せられるレーザ光により、ブラック(Bk)の画像に対
応した静電潜像が形成される。
First, in the image forming station 200Bk, the photoconductor 201Bk is charged by the charger 202Bk. Then, an electrostatic latent image corresponding to a black (Bk) image is formed by the laser light emitted from the writing optical system 203Bk.

【0073】次に、現像装置204Bkにより、静電潜
像を現像してトナー像が形成される。現像装置204B
kは、ブラック(Bk)のトナーで現像を行い、感光体
201Bk上で作られたトナー像が、用紙(記録媒体)
に転写されて画像が形成される。
Next, the developing device 204Bk develops the electrostatic latent image to form a toner image. Developing device 204B
k is developed with black (Bk) toner, and the toner image formed on the photoconductor 201Bk is a sheet (recording medium).
And the image is formed.

【0074】カラー画像が形成される際には、上記と同
様に形成された他の3色のトナー像が用紙上に重なるよ
うに転写されてカラー画像となる。
When a color image is formed, the toner images of the other three colors formed in the same manner as described above are transferred so as to be superimposed on the paper to form a color image.

【0075】また、この画像形成される用紙は、用紙搬
送ベルト250により給紙部240から、上記感光体2
01Bk上へのトナー像形成のタイミングに合わせて、
図2に示す矢印E方向へ搬送される。
The sheet on which the image is formed is transferred from the sheet feeding section 240 by the sheet conveying belt 250 to the photosensitive member 2 described above.
At the timing of toner image formation on 01Bk,
It is conveyed in the direction of arrow E shown in FIG.

【0076】用紙搬送ベルト250上に保持された用紙
は搬送されて、感光体201Bkとの当接位置(以下、
転写部と示す)で、上記で説明した各色トナー像の転写
が行われる。感光体201Bk上のトナー像は、転写ロ
ーラ206Bkに印加された転写バイアスと感光体20
1Bkとの電位差から生じる電界によって、用紙上に転
写される。そして、転写部を通過してトナー像が重なる
ように転写された用紙は、定着装置260に搬送され、
トナー像が定着されて、図示しない排紙部に排出され
る。
The paper held on the paper carrying belt 250 is carried and is brought into contact with the photosensitive member 201Bk (hereinafter, referred to as a contact position).
(Referred to as a transfer unit), the toner images of the respective colors described above are transferred. The toner image on the photoconductor 201Bk is transferred onto the photoconductor 20 with the transfer bias applied to the transfer roller 206Bk.
It is transferred onto the paper by the electric field generated from the potential difference from 1 Bk. Then, the sheet on which the toner images have been transferred so as to overlap each other through the transfer unit is conveyed to the fixing device 260,
The toner image is fixed and discharged to a paper discharge unit (not shown).

【0077】また、転写部で転写されずに感光体201
Bkに残った残留トナーは、クリーニング装置205B
kで回収される。
Further, the photosensitive member 201 is not transferred at the transfer portion.
The residual toner remaining in Bk is cleaned by the cleaning device 205B.
Recovered at k.

【0078】なお、本実施形態の4色の画像形成ステー
ション200Bk・210C・220M・230Yは、
用紙搬送方向上流側から下流側に向けて、Bk・C・M
・Yの順で並んでいるが、この順番に限定されるもので
はなく、色順は任意に設定することができる。
The four color image forming stations 200Bk, 210C, 220M and 230Y of this embodiment are
Bk / C / M from the upstream side to the downstream side in the paper transport direction
Although they are arranged in the order of Y, they are not limited to this order, and the color order can be set arbitrarily.

【0079】ここで、本実施形態の画像処理装置が適用
されるディジタルカラー複写機10におけるカラー画像
処理について、図3を用いて説明すれば、以下の通りで
ある。
The color image processing in the digital color copying machine 10 to which the image processing apparatus of this embodiment is applied will be described below with reference to FIG.

【0080】ディジタルカラー複写機10は、図2に示
す構成以外に、原稿読み取り手段としての光電変換素子
(CCD;Charge Coupled Device )等を含む図示しな
い画像処理装置を備えている。
In addition to the configuration shown in FIG. 2, the digital color copying machine 10 is provided with an image processing device (not shown) including a photoelectric conversion element (CCD; Charge Coupled Device) as a document reading means.

【0081】この画像処理装置においては、図3に示す
ように、先ず、原稿の画像を読み取ったCCD11が、
RGB各色に対応する8bitのデータを濃度変換部1
2へ送信する。そして、濃度変換部12では、CCD1
1のバラつき補正及び人間の目の特性に応じた補正及び
CMYデータ(RGBを補色反転したデータ)ヘの変換
が行われる。
In this image processing apparatus, as shown in FIG. 3, first, the CCD 11 that has read the image of the original document
The 8-bit data corresponding to each color of RGB is converted into the density conversion unit 1.
Send to 2. Then, in the density conversion unit 12, the CCD 1
The variation correction of 1 and the correction according to the characteristics of human eyes and the conversion to CMY data (data obtained by inverting RGB as complementary colors) are performed.

【0082】変換されたCMY各色に対応する8bit
のデータは、領域分離部13にて1画素毎に領域の判別
がなされる。
8 bits corresponding to the converted CMY colors
The area separation unit 13 discriminates the area of the data of 1) for each pixel.

【0083】次いで、ガンマ補正部14にて濃度の補正
が行われる。さらに、色補正・黒生成部15にてデータ
の補正を行い、新たに黒データKが生成され、CMYK
4色に対応する各8bitのデータとなる。
Then, the gamma correction unit 14 corrects the density. Further, the color correction / black generation unit 15 corrects the data to newly generate black data K, and CMYK
It is data of 8 bits each corresponding to 4 colors.

【0084】続いて、変倍部16により所望の変倍率に
画像変倍を行い、フィルタ処理部17にて各色フィルタ
処理がなされる。
Subsequently, the scaling unit 16 scales the image to a desired scaling ratio, and the filter processing unit 17 performs filter processing for each color.

【0085】フィルタ処理部17において処理されたC
MYK4色の各データは、レーザユニット18へ送信さ
れ、上述した画像形成が行われる。
C processed by the filter processing unit 17
Each of the MYK four-color data is transmitted to the laser unit 18, and the above-described image formation is performed.

【0086】上記各部材のうち、濃度変換部12、領域
分離部13、ガンマ補正部14、色補正・黒生成部1
5、変倍部16、およびフィルタ処理部17が画像処理
装置を構成している。
Among the above-mentioned members, the density conversion unit 12, the region separation unit 13, the gamma correction unit 14, the color correction / black generation unit 1
5, the variable power unit 16, and the filter processing unit 17 constitute an image processing apparatus.

【0087】本発明は、図3に示した画像処理工程のう
ち、ガンマ補正部14による濃度変換処理に関するもの
である。ここで、ガンマ補正部14による濃度変換処理
について、図1を用いて説明する。
The present invention relates to the density conversion processing by the gamma correction unit 14 among the image processing steps shown in FIG. Here, the density conversion processing by the gamma correction unit 14 will be described with reference to FIG.

【0088】上記濃度変換部12は、図1に示すよう
に、原稿に対して、原稿読み取り用の本スキャンに先立
って、下地レベル検出用のプレスキャンを行い(S1
1)、得られた入力画像データ(入力信号)を基にヒス
トグラムを作成する(S12)。
As shown in FIG. 1, the density converting section 12 performs a pre-scan for detecting a background level on a document before a main scan for reading the document (S1).
1) A histogram is created based on the obtained input image data (input signal) (S12).

【0089】このヒストグラムに対して、暗側つまり高
濃度側からサーチし、ヒストグラムの度数と所定の閾値
とを比較して、最初に所定の閾値を越える度数を持つレ
ベルを下地候補レベルとする(S13)。
This histogram is searched from the dark side, that is, the high density side, and the frequency of the histogram is compared with a predetermined threshold, and the level having the frequency that exceeds the predetermined threshold first is set as the background candidate level ( S13).

【0090】この所定の閾値は、ヒストグラム総度数に
対する割合から設定されているため、閾値を原稿画像サ
イズに対して個々に設定する必要がなくなる。
Since this predetermined threshold value is set from the ratio to the total histogram frequency, it is not necessary to set the threshold value individually for the document image size.

【0091】これにより、この閾値を画素数で設定した
場合には、画像サイズに応じてそれぞれ設定された閾値
を用意する必要があるが、上記の閾値設定方法によれ
ば、簡易な構成で各原稿に対して適切な閾値を設定する
ことができる。
As a result, when this threshold value is set by the number of pixels, it is necessary to prepare the threshold value set according to the image size. However, according to the above threshold setting method, each threshold value can be set with a simple structure. An appropriate threshold can be set for the original.

【0092】なお、プレスキャンは必ずしも必要ではな
く、読み込まれた画像データを画像メモリなどの記憶手
段に格納しておき、このデータを用いて濃度変換処理や
一連の画像処理を行うようにしてもよい。
The prescan is not always necessary, and the read image data may be stored in a storage means such as an image memory and the density conversion process or a series of image processes may be performed using this data. Good.

【0093】また、下地候補レベル検出は、図4に示す
ように、先ずiをリミッタ値に初期化し(S21)、区
分iの度数と所定の閾値との比較を行う(S22)。そ
して、区分iの度数が所定の閾値より大きければ、区分
iを下地候補レベルとする(S23)。一方、所定の閾
値を超えない場合は、iから1を減算し(S24)、さ
らに区分iの度数と所定の閾値との比較を行い、区分i
の度数が所定の閾値を超えるか、あるいはiが0になる
まで繰り返し行われる(S25)。なお、iが0になる
まで所定の閾値を超える度数の区分が存在しない場合に
は、下地なしと判定される(S26)。
Further, in the background candidate level detection, as shown in FIG. 4, first, i is initialized to a limiter value (S21), and the frequency of the section i is compared with a predetermined threshold value (S22). If the frequency of the section i is larger than the predetermined threshold value, the section i is set as the background candidate level (S23). On the other hand, if it does not exceed the predetermined threshold value, 1 is subtracted from i (S24), and the frequency of the section i is compared with the predetermined threshold value.
Is repeated until the frequency exceeds a predetermined threshold value or i becomes 0 (S25). It should be noted that if there is no division with a frequency exceeding the predetermined threshold value until i becomes 0, it is determined that there is no background (S26).

【0094】そして、検出された下地候補レベル度数と
明側隣接レベルの度数との関係に応じて、最終下地レベ
ルを決定する(S14〜S16)。
Then, the final background level is determined according to the relationship between the detected background candidate level frequency and the light side adjacent level frequency (S14 to S16).

【0095】また、濃度変換処理に用いられる下地除去
濃度変換テーブルは、図5に示すように、8bitのデ
ータにて複数設定され、検出された下地レベルに対応し
たテーブルが選択され、濃度変換処理が行われる。
Further, as shown in FIG. 5, a plurality of background removal density conversion tables used for the density conversion processing are set with 8-bit data, and a table corresponding to the detected background level is selected, and the density conversion processing is performed. Is done.

【0096】図5に示すように検出下地レベルが、例え
ば、区分1,2の場合は◆のテーブル、区分3,4の場
合は■のテーブル、区分5,6の場合は▲のテーブル、
区分7,8の場合は×のテーブルと設定し、ガンマ処理
を行う。
As shown in FIG. 5, when the detected background level is, for example, divisions 1 and 2, a table of ◆, divisions 3 and 4 of a table, and divisions 5 and 6 of a table:
In the case of divisions 7 and 8, the table is set to x and gamma processing is performed.

【0097】以上のように、本実施形態のディジタルカ
ラー複写機10に適用された画像処理方法では、所定の
閾値を最初に超えた下地候補レベルを直ちに下地レベル
とするのではなく、明側に隣接する区分のレベルとの関
係に応じて最終下地レベルを決定するため、より正確な
下地レベルの検出が可能となる。
As described above, in the image processing method applied to the digital color copying machine 10 of this embodiment, the background candidate level that first exceeds the predetermined threshold value is not immediately set as the background level, but is set to the bright side. Since the final background level is determined according to the relationship with the levels of the adjacent sections, it is possible to detect the background level more accurately.

【0098】なお、この最終下地レベルを決定する工程
については、後段にて詳述する。
The step of determining the final background level will be described later in detail.

【0099】この後、本スキャンを開始し(S17)、
決定された最終下地レベルに応じた濃度変換処理を行い
(S18)、図3の領域分離部13による領域分離処理
工程へと移行していく。
Thereafter, the main scan is started (S17),
A density conversion process is performed according to the determined final background level (S18), and the process proceeds to the area separation processing step by the area separation unit 13 in FIG.

【0100】なお、下地候補レベルの検出では、リミッ
タを設けておき、下地となるべき濃度の限度を設定す
る。本実施形態の画像処理方法では、高濃度側からサー
チする方式を採用しているため、サーチ開始レベルがリ
ミッタとなる。
A limiter is provided in the detection of the background candidate level, and the limit of the density to be the background is set. In the image processing method of this embodiment, since the method of searching from the high density side is adopted, the search start level becomes the limiter.

【0101】さらに、図1に示すプレスキャンの結果、
得られた入力画像データを基に作成されたヒストグラム
は、CCDからの入力画像データの比率計算によって得
られる輝度情報から作成され、該比率は可変となるよう
に構成されている。
Further, as a result of the prescan shown in FIG.
The histogram created based on the obtained input image data is created from the luminance information obtained by calculating the ratio of the input image data from the CCD, and the ratio is variable.

【0102】具体的には、本実施形態の画像処理方法に
おいては、入力画像データとしてCMYデータを扱って
おり、入力CMYデータを基に、以下の式(1)にてG
rayデータ(輝度情報)を算出し、ヒストグラムを作
成する。
Specifically, in the image processing method of this embodiment, CMY data is handled as input image data, and G is calculated by the following equation (1) based on the input CMY data.
The ray data (luminance information) is calculated and a histogram is created.

【0103】 Gray=a/255*C+b/255*M+c/255*Y …(1) なお、a,b,cは係数であり、算出値が255を超え
る場合は255に飽和させる。
Gray = a / 255 * C + b / 255 * M + c / 255 * Y (1) Note that a, b, and c are coefficients, and when the calculated value exceeds 255, it is saturated to 255.

【0104】このようなヒストグラムは、図6に示すよ
うに、濃度値を複数の区分に分割し、その度数を計数し
て作成される。例えば、31の閾値にて32の区分に分
割した場合には、入力されたデータがどの区分の濃度値
であるかに応じて、該当する区分のヒストグラム度数h
ist(i)を1ずつ加算していく。
As shown in FIG. 6, such a histogram is created by dividing the density value into a plurality of sections and counting the frequency. For example, when divided into 32 sections with a threshold value of 31, the histogram frequency h of the corresponding section is determined according to which section the input data has a density value.
The ist (i) is incremented by one.

【0105】以上のように、算出したGrayデータか
らヒストグラムを作成して下地レベル検出を行うことに
より、CMYあるいはRGB全色のヒストグラムを作成
参照して下地レベルを検出することなく、より簡易な構
成にて下地レベル検出処理を行うことができる。
As described above, the histogram is created from the calculated Gray data and the background level is detected, so that the background level is not detected by referring to the histogram of CMY or all RGB colors, and a simpler structure is obtained. The background level detection process can be performed at.

【0106】本発明では、このように、ヒストグラムを
複数の区分(濃度区分)に対する度数で表している。よ
って、閾値は、上述したようにヒストグラムの総度数に
予め定められる割合を乗じた値(度数)で表してもよい
が、これに限定されるものではなく、例えば、ヒストグ
ラムを総度数に対する割合(百分率)で表し、閾値も同
様に割合で表してもかまわない。
In the present invention, the histogram is thus represented by the frequency for a plurality of sections (density sections). Therefore, the threshold may be represented by a value (frequency) obtained by multiplying the total frequency of the histogram by a predetermined ratio as described above, but is not limited to this. It may be expressed as a percentage, and the threshold value may be similarly expressed as a ratio.

【0107】ここで、本実施形態の特徴部分である最終
下地レベルを決定する工程について、図1を用いて以下
に説明する。
Here, the step of determining the final background level, which is a characteristic part of this embodiment, will be described below with reference to FIG.

【0108】本実施形態のディジタルカラー複写機10
に適用される画像処理方法では、図1に示すように、上
述した検出レベルの度数とその明側隣接レベル度数との
比較結果による下地レベル決定方式に関して、下地候補
レベルの度数とその明側に隣接するレベルの度数との比
較結果に応じて最終下地レベルを決定している。
Digital color copying machine 10 of this embodiment
In the image processing method applied to, as shown in FIG. 1, regarding the background level determination method based on the result of the comparison between the detection level frequency and its bright side adjacent level frequency, the background candidate level frequency and its bright side The final background level is determined according to the result of comparison with the frequencies of adjacent levels.

【0109】すなわち、図7に示すように、下地候補レ
ベル度数とその明側隣接レベル度数とを比較し(S3
1)、下地候補レベル度数が明側隣接レベル度数以上の
場合には、下地候補レベルを最終下地レベルとして決定
する(S32)一方、明側隣接レベルの度数の方が下地
候補レベル度数よりも大きい場合には、明側隣接レベル
を最終下地レベルとして決定している(S33)。
That is, as shown in FIG. 7, the background candidate level frequency is compared with its bright side adjacent level frequency (S3
1) If the background candidate level frequency is equal to or higher than the light side adjacent level frequency, the background candidate level is determined as the final background level (S32), while the light side adjacent level frequency is higher than the background candidate level frequency. In this case, the bright side adjacent level is determined as the final background level (S33).

【0110】例えば、新聞のような下地のある文字原稿
をプレスキャンにより読み取ったヒストグラムは、図8
(a)に示すように、下地候補レベルとして区分8が検
出される。区分8の度数と区分7の度数とが比較され、
区分7の度数の方が大きいことから区分7が最終下地レ
ベルとして決定される。また、新聞のような下地のある
文字原稿を白紙に貼った切り貼り原稿をプレスキャンに
より読み取ったヒストグラムは、図8(b)に示すよう
に、同じく下地候補レベルとして区分8が検出される。
区分8の度数と区分7の度数との比較がなされ、区分7
の度数の方が大きいことから区分7が最終下地レベルと
して決定される。
For example, a histogram obtained by reading a character original document having a background such as a newspaper by a prescan is shown in FIG.
As shown in (a), category 8 is detected as the background candidate level. The frequency of division 8 and the frequency of division 7 are compared,
Since the frequency of category 7 is higher, category 7 is determined as the final background level. Further, as shown in FIG. 8B, in a histogram obtained by reading a cut and pasted document obtained by pasting a character document with a background such as a newspaper on a blank sheet, as shown in FIG. 8B, category 8 is similarly detected as the background candidate level.
The frequency of Category 8 and the frequency of Category 7 were compared, and Category 7
Since the frequency is higher, category 7 is determined as the final background level.

【0111】このように高濃度側からサーチする方式を
採用することで、切り貼りの白紙部分が存在する場合で
も、下地レベルの正確な検出が可能となる。さらに、下
地候補レベルの度数と、明側に隣接するレベルの度数と
の関係に応じて下地レベルを決定することにより、簡単
な構成であっても正確な下地レベルを検出することが可
能となる。
By adopting the method of searching from the high-density side in this way, it is possible to accurately detect the background level even when there is a blank paper portion that is cut and pasted. Further, by determining the background level according to the relationship between the frequencies of the background candidate levels and the frequencies of the levels adjacent to the bright side, it is possible to detect the accurate background level even with a simple configuration. .

【0112】さらに、縁の白紙部分及び/またはハイラ
イト部の存在する写真原稿のヒストグラムでは、図8
(c)に示すように、下地候補レベルとして区分2が検
出される。区分2の度数と区分1の度数とが比較され、
区分1の度数の方が大きいことから区分1が最終下地レ
ベルとして決定される。区分1はハイライト部及び白紙
部分に該当する。これにより、下地レベルが、その部分
より高い濃度に決定されることなく、より正確な下地レ
ベルの検出が可能となる。さらに、高い濃度が下地レベ
ルとして検出された場合に起こるハイライト部の再生画
像の劣化を防止できる。
Furthermore, in the histogram of the photographic original having a blank sheet portion and / or a highlight portion at the edge, FIG.
As shown in (c), Category 2 is detected as the background candidate level. The frequency of Category 2 and the frequency of Category 1 are compared,
Since the frequency of category 1 is higher, category 1 is determined as the final background level. Category 1 corresponds to the highlight part and the blank part. As a result, the background level can be detected more accurately without the background level being determined to have a higher density than that portion. Furthermore, it is possible to prevent deterioration of the reproduced image in the highlight portion that occurs when a high density is detected as the background level.

【0113】以上のように、下地候補レベル度数と明側
に隣接する下地レベル度数とを比較して、度数の高いレ
ベルを下地レベルとすることで、ピークサーチを行わな
い簡易な構成でありながら、ピークに近いレベルを検出
することが可能となり、より正確な下地レベルの検出を
行うことができる。
As described above, by comparing the background candidate level frequency and the background level frequency adjacent to the bright side and setting the level with the higher frequency as the background level, the peak search is not performed, but the simple structure is not performed. , It becomes possible to detect a level close to the peak, and more accurate detection of the background level can be performed.

【0114】また、本スキャン時の各色の入力画像デー
タに対する濃度変換処理は、以上のような工程により決
定された下地レベルに応じて、RGBもしくはCMY全
色同一の濃度変換処理を行うことで下地除去されるよう
に構成される。
The density conversion processing for the input image data of each color during the main scan is performed by performing density conversion processing for all RGB or CMY colors in accordance with the background level determined by the above steps. Configured to be removed.

【0115】Grayデータから、ヒストグラム情報に
より決定した最終下地レベルに応じて、図5に示す濃度
変換テーブルのうちの1つが選択され、本スキャンにて
得られた入力画像データに対して、濃度変換処理を行
う。カラー原稿に対して下地除去を行う際、色かぶり、
あるいは色みのある下地を持つ原稿を読み取った場合
に、特定色のみの除去を行うような処理を行うと、再生
画像にて色目の変化を引き起こしてしまう。そこで、カ
ラー画像データから得られるGrayデータを基に、C
MY全色について同一のテーブルにて濃度変換処理を行
い、下地レベルを決定することにより、色かぶり、ある
いは色みのある下地を持つ原稿の場合であっても、色目
の変化の発生しない再生画像が得られる。
From the Gray data, one of the density conversion tables shown in FIG. 5 is selected according to the final background level determined by the histogram information, and the density conversion is performed on the input image data obtained by the main scan. Perform processing. When performing background removal on color originals, color cast,
Alternatively, when a document having a colored background is read, if a process of removing only a specific color is performed, a change in color is caused in a reproduced image. Therefore, based on the Gray data obtained from the color image data, C
By performing density conversion processing on all the MY colors in the same table and determining the background level, even in the case of a document having a color cast or a background with a tint, a reproduced image in which the color tone does not change Is obtained.

【0116】なお、本実施形態の画像処理方法では、下
地候補レベルとその明側隣接レベルとの大きさを比較す
ることにより、最終下地レベルを決定する例について説
明したが、これに限定されるものではない。
In the image processing method of this embodiment, an example in which the final background level is determined by comparing the sizes of the background candidate level and its bright side adjacent level has been described, but the present invention is not limited to this. Not a thing.

【0117】例えば、図9に示すように、下地候補レベ
ル度数に対する、その明側隣接レベル度数の比(度数
比)を算出し(S41)、その度数比が予め定められた
所定値、例えば0.9未満の場合には下地候補レベルを
最終下地レベルとして決定し(S42)、度数比が上記
所定値、例えば0.9以上の場合には、明側隣接レベル
を最終下地レベルとして決定する(S43)方法を採用
してもよい。
For example, as shown in FIG. 9, the ratio (frequency ratio) of the light side adjacent level frequency to the background candidate level frequency is calculated (S41), and the frequency ratio is set to a predetermined value, for example, 0. If it is less than 0.9, the background candidate level is determined as the final background level (S42). If the frequency ratio is equal to or more than the predetermined value, for example, 0.9 or more, the bright side adjacent level is determined as the final background level (S42). The S43) method may be adopted.

【0118】なお、上記所定値としては、事前に、多く
の画像をもとに適切な値を設定しておけばよい。
As the predetermined value, an appropriate value may be set in advance based on many images.

【0119】これにより、単純に両レベルの度数の大小
比較ではなく、下地候補レベル度数に対する、その明側
隣接レベル度数の比を用いることにより、ヒストグラム
度数のバラつきや誤差が大きい場合にも、正確な下地レ
ベルの検出が可能となる。
Accordingly, the ratio of the light side adjacent level frequency to the background candidate level frequency is used instead of simply comparing the frequencies of the two levels, so that even if the histogram frequency varies or the error is large, It is possible to detect various background levels.

【0120】さらに、本発明は上記の方法以外にも、上
記下地候補レベル度数とその明側隣接レベル度数との比
に応じて、より細かい制御を行ったり、下地レベルとし
て下地候補レベルと明側隣接レベルとの間のレベルを設
けたりするような構成にしてもよい。このような構成で
あっても、より正確な下地レベルの検出が可能となり、
上記下地候補レベルと明側隣接レベルとの度数比に応じ
て下地レベルを決定することで、ピークサーチを行わな
い簡易な構成でありなから、ピークに近いレベルを検出
できる。
Further, in addition to the above method, the present invention performs finer control in accordance with the ratio between the background candidate level frequency and the bright side adjacent level frequency, or the background candidate level and the bright side as the background level. The configuration may be such that a level between adjacent levels is provided. Even with such a configuration, it is possible to detect the background level more accurately,
By determining the background level in accordance with the frequency ratio between the background candidate level and the bright side adjacent level, it is possible to detect a level close to the peak because of a simple configuration that does not perform peak search.

【0121】また、画像処理工程の処理順については、
図3に示すような工程順に限定されるものではなく、各
処理の順序を入れ替えてもよい。
Regarding the processing order of the image processing steps,
The process order is not limited to that shown in FIG. 3, and the order of each process may be changed.

【0122】さらに、本実施形態の濃度変換処理に用い
た下地除去濃度変換テーブルは、図5に示す方式に限定
されるものではなく、基本の下地除去濃度変換テーブル
に対して、検出された下地レベルに応じて傾き及びシフ
ト量を演算する構成としてもよい。高濃度側から下地レ
ベルをサーチする方式は、白紙に新聞等の切り抜きをス
クラップした切り貼り原稿の下地レベルの検出に有効で
ある。
Further, the background removal density conversion table used in the density conversion processing of the present embodiment is not limited to the method shown in FIG. 5, and the detected background can be compared with the basic background removal density conversion table. The configuration may be such that the tilt and the shift amount are calculated according to the level. The method of searching the background level from the high-density side is effective for detecting the background level of a cut and pasted original obtained by scrapping a blank such as a newspaper from a scrap.

【0123】〔実施形態2〕本発明の画像処理方法に関
する他の実施形態について、図10〜図13に基づいて
説明すれば、以下のとおりである。
[Embodiment 2] Another embodiment of the image processing method of the present invention will be described below with reference to FIGS.

【0124】本実施形態における画像処理方法は、上記
実施形態1とは反対に、明側からサーチを開始し、最初
に所定の閾値を超えるレベルの検出を行い、該レベルの
度数とその暗側隣接レベル度数との関係に応じて下地レ
ベルを決定することを特徴としている。
Contrary to the first embodiment, the image processing method according to the present embodiment starts the search from the bright side, first detects a level exceeding a predetermined threshold, and then detects the frequency of the level and its dark side. The feature is that the background level is determined according to the relationship with the adjacent level frequency.

【0125】本実施形態における画像処理工程は、図1
0に示すように、原稿を読み取る本スキャンに先立っ
て、下地レベルを検出するプレスキャンを行い(S5
1)、得られた入力画像データに対しヒストグラムを作
成する(S52)。
The image processing process in this embodiment is as shown in FIG.
As shown in 0, prior to the main scan for reading the document, a pre-scan for detecting the background level is performed (S5
1) A histogram is created for the obtained input image data (S52).

【0126】このヒストグラムに対して、明側つまり低
濃度側からサーチし、度数と所定の閾値とを比較して、
最初に所定の閾値を越える度数を持つレベルを下地候補
レベルとする(S53)。
This histogram is searched from the light side, that is, the low density side, and the frequency is compared with a predetermined threshold value,
First, a level having a frequency exceeding a predetermined threshold is set as a background candidate level (S53).

【0127】この下地候補レベル検出には、実施形態1
と同様に、リミッタを設けておき、下地となるべき濃度
の限度を設定する。明側(低濃度側)からサーチする方
式であるから、下地となるべき濃度区分までサーチを行
う。
The background candidate level detection is performed in the first embodiment.
Similarly, a limiter is provided to set the limit of the density to be the base. Since the method is to search from the bright side (low density side), the search is performed up to the density classification that should be the base.

【0128】すなわち、図10における下地候補レベル
の検出は、以下に示すような処理によって行われる。
That is, the background candidate level in FIG. 10 is detected by the following processing.

【0129】先ず、図11に示すように、iを1に初期
化し(S61)、区分iの度数と所定の閾値とを比較し
(S62)、所定の閾値より大きければ、区分iが下地
候補レベルとされる(S63)。所定の閾値を超えない
場合は、iに1を加算し(S64)、iがリミッタ値で
なければ(S65でNO)、さらに区分iの度数と所定
の閾値との比較を行う。iがリミッタ値になるまで閾値
を超える区分が存在しなければ(S65でYES)、下
地なしと判定される(S66)。
First, as shown in FIG. 11, i is initialized to 1 (S61), the frequency of the section i is compared with a predetermined threshold value (S62), and if it is larger than the predetermined threshold value, the section i is the background candidate. The level is set (S63). If it does not exceed the predetermined threshold value, 1 is added to i (S64), and if i is not the limiter value (NO in S65), the frequency of the section i is compared with the predetermined threshold value. If there is no division that exceeds the threshold value until i reaches the limiter value (YES in S65), it is determined that there is no background (S66).

【0130】なお、このような明側(低濃度側)から下
地レベルをサーチする方式は、複数の下地らしいピーク
濃度を持つ原稿に適した検出方法である。そして、検出
された下地候補レベル度数と、暗側隣接レベルの度数と
の関係に応じて、最終下地レベルを決定する(S54〜
S56)。
The method of searching the background level from the light side (low density side) is a detection method suitable for a document having a plurality of peak density that seems to be the background. Then, the final background level is determined according to the relationship between the detected background candidate level frequency and the frequency of the dark side adjacent level (S54-).
S56).

【0131】その後、本スキャンを開始し(S57)、
決定された最終下地レベルに応じた濃度変換処理を行い
(S58)、濃度変換部12による濃度変換処理が終了
する。
Then, the main scan is started (S57),
A density conversion process according to the determined final background level is performed (S58), and the density conversion process by the density conversion unit 12 ends.

【0132】この場合も、実施形態1と同様、プレスキ
ャンは必ずしも行う必要はない。
Also in this case, as in the first embodiment, the prescan need not necessarily be performed.

【0133】本実施形態の画像処理方法では、実施形態
1と同様に、検出された下地候補レベルを直ちに下地レ
ベルと決定するのではなく、さらに隣接する暗側のレベ
ルとの関係に応じて下地レベルを最終決定する。これに
より、より適正な下地レベルの検出が可能となる。
In the image processing method of this embodiment, as in the first embodiment, the detected background candidate level is not immediately determined as the background level, but the background level is further determined according to the relationship with the adjacent dark side level. Finalize the level. This makes it possible to detect the background level more appropriately.

【0134】例えば、複数の下地らしいピーク濃度を持
つ原稿を読み取った場合には、図12(a)に示すよう
なヒストグラムとなる。
For example, when reading a document having a plurality of peak density values that seem to be the background, the histogram will be as shown in FIG.

【0135】上記の下地候補レベルの検出方法によれ
ば、下地候補レベルとして区分4が検出される。そし
て、区分4の度数と区分5の度数とを比較すると、区分
5の度数の方が大きいことから、区分5が最終下地レベ
ルとして決定される。
According to the above-described background candidate level detection method, section 4 is detected as the background candidate level. Then, when the frequency of the section 4 is compared with the frequency of the section 5, the frequency of the section 5 is larger, and thus the section 5 is determined as the final base level.

【0136】反対に、高濃度方向からサーチを行った場
合には、下地候補レベルとして区分10が検出される。
区分10の度数と区分9の度数との比較がなされ、度数
の区分10の度数の方が大きいことから区分10が最終
下地レベルとして決定される。
On the contrary, when the search is performed from the high density direction, the section 10 is detected as the background candidate level.
The frequency of the section 10 is compared with the frequency of the section 9, and since the frequency of the section 10 of the frequency is larger, the section 10 is determined as the final base level.

【0137】しかし、図12(a)に示すような複数の
下地らしいピーク濃度を持つ原稿の場合、より高濃度の
区分10を下地レベルと決定し、下地除去濃度変換処理
を行うと、それより低い濃度の下地候補レベルを含む部
分、すなわちハイライト部の再現劣化を招くという問題
がある。
However, in the case of a manuscript having a plurality of peak density like a background as shown in FIG. 12A, if the higher density category 10 is determined as the background level and the background removal density conversion processing is performed, There is a problem that the reproduction deterioration of the portion including the background candidate level of low density, that is, the highlight portion is caused.

【0138】そこで、本実施形態の画像処理方法におい
ては、明側(低濃度側)からサーチを行うため、区分5
が下地レベルとして決定され、適切な下地除去濃度変換
処理が可能となる。このように、明側(低濃度側)から
下地レベルをサーチする方式によると、図12(a)に
示すような複数の下地らしいピーク濃度を持つ原稿に対
応して、正確な下地レベルの検出を行うことができる。
Therefore, in the image processing method of this embodiment, since the search is performed from the bright side (low density side), the classification 5
Is determined as the background level, and appropriate background removal density conversion processing can be performed. As described above, according to the method of searching the background level from the light side (low density side), the accurate detection of the background level is performed corresponding to a document having a plurality of peak density like the background shown in FIG. It can be performed.

【0139】さらに、上述のように、下地候補レベルの
度数と隣接する暗側のレベルの度数との関係に応じて下
地レベルを決定することにより、簡単な構成にて、より
正確な下地レベルの検出が可能となる。
Further, as described above, by determining the background level according to the relationship between the frequency of the background candidate level and the frequency of the adjacent dark side level, a more accurate background level can be obtained with a simple structure. It becomes possible to detect.

【0140】また、上記所定の閾値は、上記入力画像デ
ータを基にして作成されたヒストグラムにおける最明側
のレベルの度数が最も大きい場合には、全度数から該最
明側のレベル度数を差し引いた値を総画素数とし、該総
画素数に対する割合を閾値として決定される。
If the frequency of the brightest level in the histogram created based on the input image data is the largest, the predetermined threshold value is the total frequency minus the level frequency of the brightest side. The determined value is set as the total number of pixels, and the ratio to the total number of pixels is set as a threshold.

【0141】このような閾値の決定方法は、複数の下地
らしいピーク濃度を持つ原稿のみでなく、白紙に新聞等
の切り抜きをスクラップした切り貼り原稿にも対応し
て、正確な下地レベルの検出が可能となる。
Such a threshold value determination method can detect not only an original having a plurality of peak-like peak densities, but also a cut-and-pasted original made by scraping a cutout such as a newspaper on a blank sheet and accurately detecting the background level. Becomes

【0142】さらに、図10の下地候補レベルの検出方
法については、図13に示すような構成としてもよい。
Further, the background candidate level detection method of FIG. 10 may be configured as shown in FIG.

【0143】すなわち、最明側のレベルである区分1の
度数と、上記の工程により決定された所定の閾値とを比
較する(S71)。所定の閾値より小さければ、検出閾
値(閾値)1にて区分1から順に下地候補レベル検出を
行う(S72)。所定の閾値以上であれば、区分1を下
地候補レベルから除外し、区分2から順に検出閾値(閾
値)2にて下地候補レベル検出を行う(S73)。
That is, the frequency of the division 1 which is the level on the brightest side is compared with the predetermined threshold value determined in the above step (S71). If it is smaller than the predetermined threshold value, the background candidate level is detected in order from the section 1 with the detection threshold value (threshold value) 1 (S72). If it is equal to or more than the predetermined threshold value, the category 1 is excluded from the background candidate level, and the background candidate level is detected by the detection threshold value (threshold) 2 in order from the section 2 (S73).

【0144】この工程における所定の閾値は、原稿が切
り貼り原稿であると想定される程度の値を設定してお
く。上記検出閾値1は通常の検出閾値とし、ヒストグラ
ム総度数に対する割合で設定され、上記検出閾値2は、
区分1の度数に応じて設定される。
The predetermined threshold value in this step is set to a value at which the original is assumed to be a cut and pasted original. The detection threshold 1 is a normal detection threshold, and is set as a ratio to the total histogram count. The detection threshold 2 is
It is set according to the frequency of category 1.

【0145】例えば、ヒストグラム総度数から区分1の
度数を差し引いた画素数を総画素数とし、これに対する
割合で上記閾値を設定する。複数の下地らしいピーク濃
度を持った画像を白紙に貼った切り貼り原稿を読み取っ
た場合には、図12(b)に示すようなヒストグラムが
形成される。
For example, the number of pixels obtained by subtracting the frequency of category 1 from the total frequency of the histogram is set as the total number of pixels, and the threshold value is set in proportion to this. When a cut and pasted document obtained by pasting images having a plurality of peak density like a background on a blank sheet is read, a histogram as shown in FIG. 12B is formed.

【0146】本実施形態の画像処理方法によれば、最明
側のレベルである区分1の度数が所定の閾値よりも高い
ことから、区分1は下地候補から除外される。そして、
区分2からサーチし、区分1の度数をヒストグラム総度
数から差し引いた数に対する割合から、検出閾値が設定
され、下地候補レベルとして区分4が検出される。続い
て、区分4の度数と暗側に隣接する区分5の度数との比
較がなされ、区分5の度数の方が大きいことから区分5
が最終下地レベルとして決定される。
According to the image processing method of this embodiment, since the frequency of the section 1 which is the brightest side is higher than the predetermined threshold value, the section 1 is excluded from the background candidates. And
The detection threshold is set based on the ratio of the number of histograms obtained by subtracting the frequency of category 1 from the histogram total frequency, and category 4 is detected as the background candidate level. Then, the frequency of the section 4 and the frequency of the section 5 adjacent to the dark side are compared, and the frequency of the section 5 is larger, so
Is determined as the final background level.

【0147】このように、白レベルデータの影響を差し
引くように構成されることから、複数の下地らしいピー
ク濃度を持つ原稿だけでなく、白紙に新聞等の切り抜き
をスクラップした切り貼り原稿にも対応した、より正確
な下地レベルの検出が可能となる。
As described above, since it is constructed so as to subtract the influence of the white level data, it is applicable not only to a manuscript having a plurality of peak density like a background but also to a cut-and-pasted manuscript obtained by scraping a cutout such as a newspaper on a blank paper. It is possible to detect the background level more accurately.

【0148】また、本実施形態の下地レベル検出用の所
定の閾値は、上記の検出閾値1および検出閾値2のよう
に、ヒストグラムの区分毎の濃度レベルに応じて変更さ
れ、該区分毎の閾値を設けて下地レベルを検出する構成
であってもよい。
Further, the predetermined threshold value for detecting the background level according to the present embodiment is changed according to the density level for each section of the histogram like the detection threshold value 1 and the detection threshold value 2 described above, and the threshold value for each section is changed. May be provided to detect the background level.

【0149】例えば、ヒストグラムの各区分に応じた閾
値を個々に設定する場合には、最明側のレベルである区
分1に対応する検出閾値1に関しては、切り貼り原稿対
応を想定し、他の区分に対応する検出閾値2よりも下地
検出閾値を高く設定すればよい。
For example, in the case of individually setting the threshold values corresponding to the respective sections of the histogram, the detection threshold value 1 corresponding to the section 1 which is the brightest side is assumed to correspond to the cut and pasted original, and the other sections. The background detection threshold value may be set higher than the detection threshold value 2 corresponding to.

【0150】これにより、切り貼り原稿等の白データが
ある場合にも、区分1が下地候補レベルとして誤って検
出されるのを防止できる。よって、複数の下地らしいピ
ーク濃度を持つ原稿のみでなく、切り貼り原稿にも対応
したより正確な下地レベルの検出が可能となる。
This makes it possible to prevent category 1 from being erroneously detected as the background candidate level even when there is white data such as a cut and pasted original. Therefore, it is possible to detect the background level more accurately not only for a document having a plurality of peak density values like a background but also for a cut and pasted document.

【0151】また、本発明の画像処理方法は、画像処理
装置として、読み取られた入力信号から下地レベルを検
出し、検出された下地レベルに応じた処理を行う画像処
理装置において、該入力信号からヒストグラムを作成
し、暗側からサーチし、最初に所定閾値を超えるレベル
の検出を行い、該レベルの度数と、その明側に隣接する
レベルの度数との関係に応じて下地レベルを決定するこ
とを特徴とする画像処理装置であってもよい。
In the image processing method of the present invention, an image processing apparatus that detects a background level from a read input signal and performs processing according to the detected background level from the input signal Creating a histogram, searching from the dark side, first detecting the level exceeding a predetermined threshold, and determining the base level according to the relationship between the frequency of the level and the frequency of the level adjacent to the bright side. The image processing apparatus may be characterized by:

【0152】〔実施形態3〕本発明の画像処理方法に関
するさらに他の実施形態について、図14〜図17に基
づいて説明すれば、以下のとおりである。
[Embodiment 3] Still another embodiment of the image processing method of the present invention will be described below with reference to FIGS. 14 to 17.

【0153】図14は、本発明の画像処理装置を備えた
画像形成装置としてのディジタルカラー複写機の構成を
示すブロック図である。
FIG. 14 is a block diagram showing the arrangement of a digital color copying machine as an image forming apparatus equipped with the image processing apparatus of the present invention.

【0154】図14に示すように、画像処理装置41
は、濃度変換部51、領域分離処理部52、γ補正部5
3、色補正部54、黒生成下色除去部55、変倍部5
6、空間フィルタ処理部57、出力階調補正部58、及
び階調再現処理部59を備えている。
As shown in FIG. 14, the image processing device 41
Is a density conversion unit 51, a region separation processing unit 52, a γ correction unit 5
3, color correction unit 54, black generation undercolor removal unit 55, scaling unit 5
6, a spatial filter processing unit 57, an output gradation correction unit 58, and a gradation reproduction processing unit 59.

【0155】また、画像処理装置41には、さらに画像
入力装置(画像入力手段)42と画像出力装置(画像出
力手段)43とが接続されている。
An image input device (image input means) 42 and an image output device (image output means) 43 are further connected to the image processing device 41.

【0156】画像入力装置(画像読取手段)42は、例
えばCCD(Charge Coupled Device )を備えたスキャ
ナ部より構成され、原稿からの反射光像を、RGB
(R:赤・G:緑・B:青)のアナログ信号(画像デー
タ)としてCCDにて読み取って、画像処理装置41に
入力するものである。
The image input device (image reading means) 42 is composed of, for example, a scanner section having a CCD (Charge Coupled Device), and an image of reflected light from a document is converted into RGB.
The analog signals (image data) of (R: red, G: green, B: blue) are read by the CCD and input to the image processing device 41.

【0157】画像入力装置42にて読み取られたアナロ
グ信号は、画像処理装置41内を、濃度変換部51、領
域分離処理部52、γ(ガンマ)補正部53、色補正部
54、黒生成下色除去部55、変倍部56、空間フィル
タ処理部57、出力階調補正部58、及び階調再現処理
部59の順で送られ、CMYKのディジタルカラー信号
(出力画像データ)として、画像出力装置43へ出力さ
れる。
The analog signal read by the image input device 42 is transmitted in the image processing device 41 by the density conversion portion 51, the area separation processing portion 52, the γ (gamma) correction portion 53, the color correction portion 54, and the black generation background. The color removal unit 55, the scaling unit 56, the spatial filter processing unit 57, the output gradation correction unit 58, and the gradation reproduction processing unit 59 are sent in this order, and an image is output as a CMYK digital color signal (output image data). It is output to the device 43.

【0158】画像入力装置42にて読み取られたRGB
のアナログ信号は、A/D(アナログ/デジタル)変換
処理されデジタル信号に変換される。濃度変換部51
は、デジタルのRGB信号に対して、画像入力装置42
の照明系、結像系、撮像系で生じる各種の歪みを取り除
く処理、および、RGBの反射率信号に対して、カラー
バランスを整えると同時に、濃度信号など画像処理装置
41に採用されている画像処理システムの扱い易い信号
に変換する処理を施すものである。
RGB read by the image input device 42
The analog signal of is subjected to A / D (analog / digital) conversion processing and converted into a digital signal. Density converter 51
Is the image input device 42 for digital RGB signals.
Image used in the image processing device 41, such as processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system, and adjusting the color balance with respect to the reflectance signals of RGB. The processing system converts the signal into a signal that can be easily handled by the processing system.

【0159】領域分離処理部52は、RGB信号より、
入力画像中の各画素を文字領域、網点領域、写真領域の
何れかに分離するものである。領域分離処理部52は、
分離結果に基づき、画素がどの領域に属しているかを示
す領域識別信号を、黒生成下色除去部55、空間フィル
タ処理部57、及び階調再現処理部59へと出力すると
共に、濃度変換部51より出力された入力信号をそのま
ま後段のγ補正部53に出力する。
The area separation processing section 52 determines from the RGB signals that
Each pixel in the input image is divided into a character area, a halftone dot area, and a photographic area. The area separation processing unit 52
Based on the separation result, an area identification signal indicating which area the pixel belongs to is output to the black generation undercolor removal unit 55, the spatial filter processing unit 57, and the gradation reproduction processing unit 59, and the density conversion unit. The input signal output from 51 is output as it is to the γ correction unit 53 in the subsequent stage.

【0160】γ補正部53は、下地判定処理を行うもの
である。γ補正部53の構成および下地判定処理につい
ては、後に詳述する。
The γ correction unit 53 is for performing the background determination process. The configuration of the γ correction unit 53 and the background determination process will be described in detail later.

【0161】色補正部54は、色再現の忠実化実現のた
めに、不要吸収成分を含むCMY(C:シアン・M:マ
ゼンタ・Y:イエロー)色材の分光特性に基づいた色濁
りを取り除く処理を行うものである。
The color correction section 54 removes color turbidity based on the spectral characteristics of the CMY (C: cyan, M: magenta, Y: yellow) color material containing unnecessary absorption components in order to realize faithful color reproduction. The processing is performed.

【0162】黒生成下色除去部55は、色補正後のCM
Yの3色信号から黒(K)信号を生成する黒生成、元の
CMY信号から黒生成で得たK信号を差し引いて新たな
CMY信号を生成する処理を行うものであって、CMY
の3色信号はCMYKの4色信号に変換される。
The black generation and undercolor removal unit 55 uses the CM after the color correction.
CMY is a process for generating a black (K) signal from Y three-color signals and a process for generating a new CMY signal by subtracting the K signal obtained by black generation from the original CMY signal.
3 color signals are converted into CMYK 4 color signals.

【0163】黒生成処理の一例として、スケルトンブラ
ックによる黒生成を行う方法(一般的方法)がある。こ
の方法では、スケルトンカーブの入出力特性をy=f
(x)、入力されるデータをC,M,Y、出力されるデ
ータをC'、M'、Y'、K'、UCR(Under Color Remo
val)率をα(0<α<1)とすると、黒生成下色除去
処理は以下の式(2)〜(5) K'=f{min(C,M,Y)} …(2) C'=C−αK' …(3) M'=M−αK' …(4) Y'=Y−αK' …(5) で表される。
As an example of black generation processing, there is a method (general method) for generating black by skeleton black. In this method, the input / output characteristics of the skeleton curve are y = f
(X), input data is C, M, Y, output data is C ', M', Y ', K', UCR (Under Color Remo
If the val) ratio is α (0 <α <1), the black generation undercolor removal processing is performed by the following equations (2) to (5) K ′ = f {min (C, M, Y)} (2) C ′ = C−αK ′ (3) M ′ = M−αK ′ (4) Y ′ = Y−αK ′ (5)

【0164】変倍部56は、画像形成装置に備えられる
操作パネルより入力される信号に基づいて画像の拡大や
縮小処理がなされる。
The magnification changing unit 56 enlarges or reduces the image based on a signal input from the operation panel provided in the image forming apparatus.

【0165】空間フィルタ処理部57は、変倍部56よ
り入力されるCMYK信号の画像データに対して、領域
識別信号を基にデジタルフィルタによる空間フィルタ処
理を行い、空間周波数特性を補正することによって出力
画像のぼやけや粒状性劣化を防ぐように処理するもので
ある。
The spatial filter processing unit 57 performs a spatial filter process by a digital filter on the image data of the CMYK signals input from the scaling unit 56 based on the region identification signal to correct the spatial frequency characteristic. The processing is performed so as to prevent blurring of the output image and deterioration of graininess.

【0166】また、階調再現処理部59も空間フィルタ
処理部57と同様に、CMYK信号の画像データに対し
て、領域識別信号を基に所定の処理を施するものであ
る。
The tone reproduction processing unit 59, like the spatial filter processing unit 57, also performs a predetermined process on the image data of the CMYK signals based on the area identification signal.

【0167】例えば、領域分離処理部52にて文字に分
離された領域は、特に黒文字或いは色文字の再現性を高
めるために、空間フィルタ処理部57による空間フィル
タ処理における鮮鋭強調処理で高周波数の強調量が大き
くされる。同時に、階調再現処理部59においては、高
域周波数の再現に適した高解像度のスクリーンでの二値
化または多値化処理が選択される。
For example, in order to improve the reproducibility of black characters or color characters, the areas separated into characters by the area separation processing unit 52 are processed by the spatial filter processing unit 57 in the sharpness enhancement process in the spatial filtering process to have a high frequency. The amount of emphasis is increased. At the same time, in the gradation reproduction processing unit 59, binarization or multi-value conversion processing on a high resolution screen suitable for reproduction of high frequency is selected.

【0168】また、領域分離処理部52にて網点に分離
された領域に関しては、空間フィルタ処理部57におい
て、入力網点成分を除去するためのローパス・フィルタ
処理が施される。そして、出力階調補正部58では、濃
度信号などの信号を画像出力装置43の特性値である網
点面積率に変換する出力階調補正処理を行った後、階調
再現処理部59で、最終的に画像を画素に分離してそれ
ぞれの階調を再現できるように処理する階調再現処理
(中間調生成)が施される。
The area separated into halftone dots by the area separation processing unit 52 is subjected to low-pass filter processing for removing the input halftone dot component in the spatial filter processing unit 57. Then, the output gradation correction unit 58 performs an output gradation correction process for converting a signal such as a density signal into a halftone dot area ratio which is a characteristic value of the image output device 43, and then a gradation reproduction processing unit 59. Finally, gradation reproduction processing (halftone generation) is performed to separate the image into pixels and process so that each gradation can be reproduced.

【0169】領域分離処理部52にて写真に分離された
領域に関しては、階調再現性を重視したスクリーンでの
二値化または多値化処理が行われる。
The areas separated into photographs by the area separation processing section 52 are subjected to binarization or multi-value processing on the screen with emphasis on gradation reproducibility.

【0170】上述した各処理が施された画像データは、
一旦記憶手段に記憶され、所定のタイミングで読み出さ
れて画像出力装置43に入力される。
The image data that has been subjected to the above-mentioned processing is
The image is once stored in the storage means, read at a predetermined timing, and input to the image output device 43.

【0171】この画像出力装置43は、画像データを記
録媒体(例えば紙等)上に出力するもので、例えば、電
子写真方式やインクジェット方式を用いたカラー画像形
成装置等を挙げることができるが特に限定されるもので
はない。以上の処理は、図示しないCPU(Central Pr
ocessing Unit)により制御される。
The image output device 43 outputs the image data onto a recording medium (for example, paper). For example, a color image forming device using an electrophotographic method or an ink jet method can be used. It is not limited. The above processing is performed by a CPU (Central Pr
Ocessing Unit).

【0172】次に、γ補正部53の構成について、図1
5に基づいて説明する。
Next, the configuration of the γ correction section 53 will be described with reference to FIG.
It will be described based on 5.

【0173】γ補正部53では、下地が有るか否かの判
定を行う(下地レベル検出用の)プレスキャンを行い、
得られた入力画像データ(入力信号)を基にヒストグラ
ムを作成する。
The γ correction section 53 performs pre-scan (for background level detection) for determining whether or not there is a background,
A histogram is created based on the obtained input image data (input signal).

【0174】γ補正部53は、信号変換部61、ヒスト
グラム作成部62、濃度区分抽出部64、閾値設定部6
3、濃度補正部65、CPU66、および、ROM(Re
ad Only Memory)67により構成されている。
The γ correction section 53 includes a signal conversion section 61, a histogram creation section 62, a density classification extraction section 64, and a threshold setting section 6.
3, density correction unit 65, CPU 66, and ROM (Re
Ad Only Memory) 67.

【0175】信号変換部61は、RGB信号(入力信
号)を輝度データ(輝度情報)Lに変換するものであ
る。輝度データL(Grayデータ)は、RGBデータ
を用いて、例えば次式(6) L=a・R+b・G+c・B …(6) で表される。
The signal conversion section 61 converts the RGB signal (input signal) into luminance data (luminance information) L. The luminance data L (Gray data) is represented by the following equation (6) L = a · R + b · G + c · B (6) using RGB data.

【0176】一般的に、a・b・cは、RGBデータか
ら輝度データに変換するための同比率でない値(例えば
a:b:c=1.000:4.5907:0.0601)が用いられる
が、ここではa=b=c(=1/3)とする。a=b=
cとすることにより、原稿の特性(赤っぽいなど)を把
握することができ、より、色味のある下地を検出するこ
とができる。
Generally, a, b, and c are values that are not the same ratio for converting RGB data to luminance data (for example, a: b: c = 1.000: 4.5907: 0.0601), but here a = B = c (= 1/3). a = b =
By setting c, it is possible to grasp the characteristic of the document (reddish or the like), and it is possible to detect a more colored background.

【0177】また、ヒストグラムを作成する際には、輝
度データLを補色反転した輝度データとしての値L’
(L’=255−L)を用いる。
Further, when the histogram is created, the value L'as the brightness data which is the complementary color inversion of the brightness data L.
(L '= 255-L) is used.

【0178】ヒストグラム作成部では、上記輝度データ
(輝度情報)L’を元にヒストグラムを作成する。濃度
区分は例えば32分割(図16(a)〜(c)参照)と
する。
The histogram creating section creates a histogram based on the brightness data (brightness information) L '. The density division is, for example, 32 divisions (see FIGS. 16A to 16C).

【0179】濃度区分抽出部64は、ヒストグラムを低
濃度側、すなわち高輝度(明)側から、高濃度側、すな
わち低輝度(暗)側に探索(サーチ)し、ヒストグラムの
度数を予め定められた閾値と比較し下地を抽出する。低
濃度側から下地レベルをサーチする方式は、複数の下地
らしいピーク濃度をもつ原稿に対応した検出方式であ
る。ここでの下地抽出処理方法は後述する。
The density classification extraction unit 64 searches the histogram from the low density side, that is, the high brightness (bright) side to the high density side, that is, the low brightness (dark) side, and the frequency of the histogram is predetermined. The threshold value is compared with the threshold value and the background is extracted. The method of searching for the background level from the low density side is a detection method corresponding to a document having a plurality of peak density that seems to be the background. The background extraction processing method here will be described later.

【0180】閾値設定部63は、予め定められた閾値A
・B・Cを格納している。これらの閾値A・B・Cは、
互いに独立しており、個々に設定することができる。こ
の閾値A〜Cは、ヒストグラムの総度数に予め定められ
る割合(例えば、15%や20%などといった割合)を
乗じたい値や、割合で表される。
The threshold setting unit 63 uses the predetermined threshold A
・ B and C are stored. These thresholds A, B, C are
They are independent of each other and can be set individually. The thresholds A to C are represented by values or ratios that the total frequency of the histogram should be multiplied by a predetermined ratio (for example, a ratio such as 15% or 20%).

【0181】閾値A(第1の閾値)は、下地として白
(色味がついていない白)が多いか否かを判断するため
の値であり、これにより、どの程度の白データの存在に
より下地除去を行うか否かを制御する。
The threshold value A (first threshold value) is a value for judging whether or not there is a lot of white (white without tint) as a background. Controls whether to remove.

【0182】閾値B(第2の閾値)は、下地の候補の有
無を判断するための値である。
The threshold value B (second threshold value) is a value for determining the presence / absence of a background candidate.

【0183】ここで、下地の候補有り(度数≧閾値B)
の場合、濃度区分抽出部64において、閾値B以上の濃
度区分の度数とその高濃度側の濃度区分の度数とが加算
される。
Here, there is a candidate for the background (frequency ≧ threshold value B).
In this case, the density classification extraction unit 64 adds the frequency of the density classification equal to or higher than the threshold value B and the frequency of the density classification on the high density side.

【0184】例えば、区分6において度数≧閾値Bとな
った場合、区分6の度数と、区分7の度数とが加算され
る。
For example, when the frequency in the section 6 is greater than or equal to the threshold value B, the frequency in the section 6 and the frequency in the section 7 are added.

【0185】閾値C(第3の閾値)は、下地の有無を判
断する(下地として判定する)ための値である。
The threshold value C (third threshold value) is a value for judging the presence or absence of a background (judging as a background).

【0186】上記加算された度数≧閾値Cの場合は、閾
値B以上の濃度区分あるいはその高濃度側の濃度区分を
下地とする。
If the added frequency ≧ threshold value C, the density category equal to or higher than the threshold value B or the density category on the high density side is used as the base.

【0187】例えば、区分6の度数と区分7の度数との
和(加算された度数)≧閾値Cの場合、区分6か、区分
7か、あるいは、区分6と区分7との間の濃度の領域を
下地とするのかなどを判定する。
For example, in the case of the sum of the frequencies of the categories 6 and 7 (the added frequencies) ≧ the threshold value C, it is either the category 6, the category 7, or the concentration between the categories 6 and 7. It is determined whether the area is used as a base.

【0188】一方、上記加算された度数<閾値Cの場合
は、下地無しとする。
On the other hand, when the added frequency is less than the threshold value C, there is no background.

【0189】閾値A・B・Cは、事前に多くの画像を元
に最適な値が設定されている。
The thresholds A, B and C are set in advance to optimum values based on many images.

【0190】なお、閾値A・B・Cは任意に変更するこ
とが可能であり、例えば、画像形成装置においては、操
作パネル(例えば、液晶ディスプレイよりなる表示部・
設定ボタンなどより構成)により、設定ボタンを押す、
あるいは、インジケータを動かすことにより、閾値A〜
Cを変更し、この結果を表示部に表示し、どのレベルに
設定するかをユーザに促すようにすればよい。
The threshold values A, B, and C can be arbitrarily changed. For example, in an image forming apparatus, an operation panel (for example, a display unit including a liquid crystal display,
Configuration button), press the setting button,
Alternatively, by moving the indicator, the threshold value A ~
It suffices to change C, display the result on the display unit, and prompt the user as to which level to set.

【0191】また、コンピュータシステムにおいては、
キーボードやマウスを用いて直接数値を入力したり、閾
値を表すシンボルをドラッグしたりすることにより閾値
A〜Cを設定し、ユーザは液晶ディスプレイなどの画像
表示装置に表示された画像を見て好ましい閾値A〜Cを
設定すれば良い。
Also, in the computer system,
The thresholds A to C are set by directly inputting a numerical value using a keyboard or a mouse, or by dragging a symbol indicating the threshold, and the user is preferable to see the image displayed on the image display device such as a liquid crystal display. The thresholds A to C may be set.

【0192】この場合、閾値A〜Cとしては、度数を入
力、あるいは、総度数に対する割合を入力してもよい
が、後者の方が客観的にとらえやすいという点では好ま
しい。
In this case, as the threshold values A to C, a frequency or a ratio with respect to the total frequency may be input, but the latter is preferable in that it can be objectively grasped.

【0193】濃度補正部65は、例えば、実施形態1に
記載の図5に示すように、濃度変換テーブルを複数設定
し、検出された下地レベル(濃度区分)に対応したテー
ブルを選択する。
For example, as shown in FIG. 5 described in the first embodiment, the density correction section 65 sets a plurality of density conversion tables and selects a table corresponding to the detected background level (density classification).

【0194】例えば、下地レベルなしの場合は補正を行
わないスルーのテーブル(*印)を選択する。また、下
地レベルが濃度区分1,2の場合は◆、下地レベルが濃
度区分3,4の場合は■、下地レベルが濃度区分5,6
の場合は▲、下地レベルが区分7,8の場合は×のよう
に設定し、入力に対して下地レベルにあわせた補正が行
われた値を出力する。
For example, when there is no background level, a through table (* mark) for which no correction is made is selected. Further, when the background level is the density categories 1 and 2, ◆, when the background level is the density categories 3 and 4, ■, and the background level is the density categories 5 and 6
In the case of, the value is set as ▲, and when the background level is classified into categories 7 and 8, it is set as ×, and a value obtained by correcting the input according to the background level is output.

【0195】なお、濃度の補正は、図5に示すように初
めから濃度変換テーブルを複数設定しておくのではな
く、基本の下地除去濃度変換テーブル(スルーのテーブ
ル)に対して、検出下地レベルに応じて傾き及びシフト
量を演算する構成としてもよい。
For density correction, a plurality of density conversion tables are not set from the beginning as shown in FIG. 5, but the basic background removal density conversion table (through table) is used to detect the detected background level. Alternatively, the inclination and shift amount may be calculated according to

【0196】また、本スキャン時は、信号変換部61・
ヒストグラム作成部62・濃度区分抽出部64の処理は
スルーとなり濃度補正部65での処理のみがなされる。
During the main scan, the signal conversion unit 61.
The processes of the histogram creation unit 62 and the density classification extraction unit 64 are skipped, and only the process of the density correction unit 65 is performed.

【0197】ROM(Read Only Memory)67は、γ補
正部53の各部の処理を行うためのプログラムを格納す
る。また、CPU66はそのプログラムを実行する。
A ROM (Read Only Memory) 67 stores a program for performing processing of each unit of the γ correction unit 53. Further, the CPU 66 executes the program.

【0198】以下、下地の判定方法について、図16
(a)〜(c)に基づいて、具体的に説明する。ここ
で、閾値Cは総度数に対する割合より、例えばC=10
×104画素(以下、閾値A〜Cは、104で正規化した
値として示す)と設定しているとする。
The background judgment method will be described below with reference to FIG.
A specific description will be given based on (a) to (c). Here, the threshold value C is, for example, C = 10 from the ratio to the total frequency.
It is assumed that x10 4 pixels (hereinafter, threshold values A to C are shown as values normalized by 10 4 ).

【0199】図16(a)は、新聞等の下地を有する文
字原稿のヒストグラムである。まず、閾値Aにより低濃
度区分の判定がなされる。
FIG. 16A is a histogram of a text original having a background such as a newspaper. First, the threshold value A is used to determine the low density section.

【0200】同図においては、区分1で閾値Aを超えな
いので、続いて閾値Bにて下地レベル判定がなされ、区
分6が下地候補として検出される。そして、下地候補区
分6の度数と高濃度側に隣接する区分7の度数とを加算
する。この場合、その加算された値は17(=8+9)
となり、閾値C(=10)以上であるため、区分6を下
地レベルとして決定する。
In the figure, since the threshold value A does not exceed the threshold value A in the category 1, the background level determination is subsequently made in the threshold value B, and the category 6 is detected as the background candidate. Then, the frequency of the background candidate section 6 and the frequency of the section 7 adjacent to the high density side are added. In this case, the added value is 17 (= 8 + 9)
Since the threshold value is equal to or higher than the threshold value C (= 10), the category 6 is determined as the background level.

【0201】ここでは、閾値Aを越えるか否かを区分
(サーチ開始側の濃度区分)1で判定しているが、サー
チ開始側(低濃度側)の濃度区分を用いていればこれに
限定されることはなく、区分1と区分2とで行ってもよ
い。例えば、閾値Aと、区分1の度数と区分2の度数と
を加算した値とを比較することにより、低濃度区分の下
地判定を行ってもかまわない。
Here, whether or not the threshold value A is exceeded is determined by the division (density division on the search start side) 1, but this is limited to this if the density division on the search start side (low density side) is used. However, it may be performed in the division 1 and the division 2. For example, the background determination of the low density section may be performed by comparing the threshold value A with a value obtained by adding the frequency of the section 1 and the frequency of the section 2.

【0202】図16(b)は、例えば新聞等の下地を有
する文字原稿を白紙に貼ったような切り貼り原稿のヒス
トグラムである。
FIG. 16B is a histogram of a cut-and-pasted document obtained by pasting a text document having a base such as a newspaper on a blank sheet.

【0203】まず閾値Aにより低濃度区分の判定がなさ
れるが、この場合、区分1の度数が閾値Aを超えるの
で、下地の検出は行わない。すなわち、下地なしと判定
する。
First, the threshold A is used to determine the low-density category. In this case, however, the frequency of category 1 exceeds the threshold A, so the background is not detected. That is, it is determined that there is no background.

【0204】なお、閾値Aの設定値の変更により、どの
程度の白データ量によって下地の判定を行うか否か設定
することが可能となる。
By changing the set value of the threshold value A, it is possible to set how much white data amount should be used to determine the background.

【0205】図16(c)は、縁の白紙部分及び/また
はハイライト部の存在する写真原稿のヒストグラムであ
る。
FIG. 16 (c) is a histogram of a photographic original having a white paper portion and / or a highlight portion at the edge.

【0206】まず閾値Aにより低濃度区分の判定がなさ
れるが、この場合、区分1の度数が閾値Aを超えないの
で、続いて閾値Bにて下地レベル判定がなされる。図1
6(c)の場合、区分2が下地候補として検出される。
次に、下地候補区分2の度数と区分2とは高濃度側に隣
接する区分3の度数とを加算する。この場合、その加算
された値は5(=3+2)となり、閾値C(=10)よ
り小さいため、下地なしと判定する。
First, the threshold value A is used to determine the low-density category. In this case, however, the frequency of category 1 does not exceed the threshold value A, so the threshold value B is subsequently used to determine the background level. Figure 1
In the case of 6 (c), Category 2 is detected as a background candidate.
Next, the frequency of the background candidate section 2 and the frequency of the section 2 which is adjacent to the high density side of the section 2 are added. In this case, the added value is 5 (= 3 + 2), which is smaller than the threshold value C (= 10), so it is determined that there is no background.

【0207】上述した下地の判定方法(画像処理方法)
について、図17に示すフローチャートの基づいて説明
する。
[0207] The background determination method (image processing method) described above
Will be described based on the flowchart shown in FIG.

【0208】まず、プレスキャンを行い(S81)、そ
の後、ヒストグラムを作成する(S82)。そして、ヒ
ストグラムに基づき低濃度区分の下地判定を行う。
First, a prescan is performed (S81), and then a histogram is created (S82). Then, the background determination of the low density section is performed based on the histogram.

【0209】このとき、低濃度区分の度数が所定値以上
ならば、下地なしと判定する。
At this time, if the frequency of the low density section is equal to or higher than the predetermined value, it is determined that there is no background.

【0210】すなわち、濃度区分iのヒストグラム度数
をhist(i)、所定値を閾値Aとすると、hist
(i)<閾値A(S83でYES)の場合は下地候補あ
りと判定し、下地候補検出処理へ進む。一方、hist
(i)≧閾値A(S83でNO)の場合は下地なしと判
定し(S84)処理を終了する。
That is, assuming that the histogram frequency of the density category i is hist (i) and the predetermined value is the threshold value A, hist
If (i) <threshold value A (YES in S83), it is determined that there is a background candidate, and the process proceeds to the background candidate detection process. On the other hand, hist
If (i) ≧ threshold value A (NO in S83), it is determined that there is no background (S84), and the process ends.

【0211】次に、高濃度側へサーチし、最初に所定
値、すなわち閾値B以上となる度数を持つ区分を下地候
補として検出する(下地レベルの判定を行う)。このと
き、所定区分までに下地候補が検出されない場合は、下
地なしと判定する。
Next, the high density side is searched, and first, a segment having a frequency equal to or higher than a predetermined value, that is, the threshold value B is detected as a background candidate (a background level is determined). At this time, if no background candidate is detected by the predetermined section, it is determined that there is no background.

【0212】例えば、hist(i)≧閾値Bの場合
(S85でYES)は、最初に左記条件を満たす濃度区
分iを下地候補とし、下地レベル決定処理(S86)へ
進む。iが所定濃度区分まで上記条件が満たされない場
合(S85でNO)、下地なしと判定し(S84)処理
を終了する。
For example, if hist (i) ≧ threshold value B (YES in S85), the density division i satisfying the left condition is first set as the background candidate, and the process proceeds to the background level determination process (S86). If the above condition is not satisfied until i reaches the predetermined density category (NO in S85), it is determined that there is no background (S84), and the process is ended.

【0213】その後、検出された下地候補から、下地レ
ベルを決定する。ここでは、検出した下地候補濃度区分
の度数と高濃度隣接濃度区分の度数との和により、下地
レベルを決定する。ここで、下地候補濃度区分を区分
i'、区分i'のヒストグラム度数をhist(i')、
所定値を閾値Cとすると、hist(i')+hist
(i'+1)≧閾値C(S86でYES)の場合、区分
i'の濃度を下地レベルとして決定する(S87)。一
方、hist(i')+hist(i'+1)<閾値C
(S86でNO)の場合、下地なしと判定する(S8
4)。
After that, the background level is determined from the detected background candidates. Here, the background level is determined by the sum of the frequencies of the detected background candidate density categories and the frequencies of the high-density adjacent density categories. Here, the background candidate density segment is segment i ′, the histogram frequency of segment i ′ is hist (i ′),
If the predetermined value is the threshold value C, hist (i ′) + hist
If (i ′ + 1) ≧ threshold value C (YES in S86), the density of the section i ′ is determined as the background level (S87). On the other hand, hist (i ′) + hist (i ′ + 1) <threshold value C
If (NO in S86), it is determined that there is no background (S8).
4).

【0214】本実施形態の場合も、上述した実施形態1
・2と同様、プレスキャンは必ずしも必要ではない。こ
の場合、領域分離処理部52より出力された画像データ
を画像メモリなどの記憶手段に格納しておき、この画像
データを用いて下地判定処理を行った後、一連の画像処
理を行えばよい。
Also in the case of the present embodiment, the above-mentioned first embodiment
-Similar to 2, prescan is not always necessary. In this case, the image data output from the area separation processing unit 52 may be stored in a storage unit such as an image memory, a background determination process may be performed using this image data, and then a series of image processes may be performed.

【0215】なお、本実施の形態はコンピュータに実行
させるためのプログラムを記録したコンピュータ読み取
り可能な記録媒体に、画像処理方法を記録するものとす
ることもできる。
The image processing method of this embodiment may be recorded in a computer-readable recording medium in which a program to be executed by a computer is recorded.

【0216】この結果、画像処理方法を行うプログラム
を記録した記録媒体を持ち運び自在に提供することがで
きる。
As a result, it is possible to freely provide a recording medium on which a program for performing the image processing method is recorded.

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

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

【0219】ここで、上記プログラムメディアは、本体
と分離可能に構成される記録媒体であり、磁気テープや
カセットテープ等のテープ系、フロッピー(登録商標)
ディスクやハードディスク等の磁気ディスクやCD−R
OM/MO/MD/DVD等の光ディスクのディスク
系、ICカード(メモリカードを含む)/光カード等の
カード系、あるいはマスクROM、EPROM(Erasab
le Programmable Read Only Memory)、EEPROM
(Electrically Erasable Programmable Read Only Mem
ory)、フラッシュROM等による半導体メモリを含め
た固定的にプログラムを担持する媒体であっても良い。
Here, the program medium is a recording medium which can be separated from the main body, and is a tape system such as a magnetic tape or a cassette tape, or a floppy (registered trademark).
Magnetic disks such as disks and hard disks, and CD-Rs
Disk systems for optical disks such as OM / MO / MD / DVD, card systems such as IC cards (including memory cards) / optical cards, mask ROM, EPROM (Erasab
le Programmable Read Only Memory), EEPROM
(Electrically Erasable Programmable Read Only Mem
ory), a flash ROM, or a semiconductor memory including a semiconductor memory that holds the program in a fixed manner.

【0220】また、本実施の形態においては、インター
ネットを含む通信ネットワークを接続可能なシステム構
成であることから、通信ネットワークからプログラムを
ダウンロードするように流動的にプログラムを担持する
媒体であっても良い。なお、このように通信ネットワー
クからプログラムをダウンロードする場合には、そのダ
ウンロード用のプログラムは予め本体装置に格納してお
くか、あるいは別な記録媒体からインストールされるも
のであっても良い。
Further, in the present embodiment, since the system configuration is such that a communication network including the Internet can be connected, it may be a medium that carries the program fluidly so as to download the program from the communication network. . When the program is downloaded from the communication network in this way, the program for downloading may be stored in the main body device in advance, or may be installed from another recording medium.

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

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

【0223】以上のように、本実施の形態の画像処理方
法は、ヒストグラムを低濃度側から高濃度側に向けてサ
ーチし、サーチ開始側、すなわち低濃度側の濃度区分の
度数と閾値Aとを比較することにより原稿を下地なしと
するのか後に下地候補を検出する工程を行うのかを判定
する第1の工程と、第1の工程において下地候補を検出
する工程を行うと判定した場合、濃度区分の度数を閾値
Bと比較することにより下地の候補があるか否かを判定
する第2の工程と、第2の工程において、下地の候補が
あると判定された場合、度数が閾値B以上となる濃度区
分の度数と、その濃度区分と高濃度側に隣接する濃度区
分の度数とを加算し、該加算値と閾値Cとを比較するこ
とにより下地の有無を判定する第3の工程とを有し、第
1から第3の工程の結果に基づいて下地除去処理を行
う。
As described above, according to the image processing method of the present embodiment, the histogram is searched from the low density side to the high density side, and the frequency of the density division on the search start side, that is, the low density side and the threshold value A are set. If it is determined to perform the step of detecting the background candidate in the first step and the first step of determining whether the original is made to have no background or the step of detecting the background candidate after that, The second step of determining whether there is a background candidate by comparing the frequency of the division with the threshold B, and the frequency is equal to or more than the threshold B when it is determined that there is a background candidate in the second step. A third step of determining the presence / absence of a background by adding the frequency of the density section and the frequency of the density section adjacent to the high density side and comparing the added value with the threshold value C. Having the first to third steps Performing under color removal process based on the results.

【0224】具体的には、第1の工程では、低濃度側の
濃度区分(濃度区分1)の度数が閾値A以上の場合、原
稿は下地なしと判定する。一方、低濃度側の濃度区分
(濃度区分1)の度数が閾値Aより小さい場合に、第2
の工程に移る。
Specifically, in the first step, when the frequency of the density section on the low density side (density section 1) is equal to or higher than the threshold value A, it is determined that the original has no background. On the other hand, if the frequency of the density section on the low density side (density section 1) is smaller than the threshold value A, the second
Move to the process.

【0225】第2の工程では、濃度区分の度数を閾値B
と比較することにより下地レベルの判定が行なわれる。
具体的には、低濃度側からサーチして、所定の濃度区分
までに閾値B以上の度数を有する濃度区分があれば、そ
の濃度区分における濃度を下地候補として検出する。一
方、所定の濃度区分までに閾値B以上の度数を有する濃
度区分がなければ、下地なしと判定する。
In the second step, the frequency of the density classification is set to the threshold value B.
The background level is determined by comparing with.
Specifically, if a density section having a frequency equal to or higher than the threshold value B is found by the search from the low density side up to a predetermined density section, the density in the density section is detected as a background candidate. On the other hand, if there is no density category having a frequency equal to or higher than the threshold value B up to the predetermined density category, it is determined that there is no background.

【0226】第3の工程では、第2の工程で下地候補と
された濃度区分における度数(低濃度側からサーチして
初めて度数が閾値B以上となる濃度区分の度数)と、そ
の濃度区分とは高濃度側に隣接する濃度区分の度数とを
加算して閾値Cと比較することにより下地の有無を判定
する。具体的には、その加算値が閾値C以上の場合、第
2の工程で下地候補とされた濃度区分の濃度、または、
該濃度区分とは高濃度側に隣接する濃度区分の濃度を下
地レベルとして決定する。一方、その加算値が閾値Cよ
り小さい場合、下地なしと判定する。
In the third step, the frequency in the density category selected as the background candidate in the second step (the frequency of the density category in which the frequency becomes equal to or higher than the threshold value B after searching from the low density side) and the density category Determines the presence / absence of the background by adding the frequency of the density section adjacent to the high density side and comparing with the threshold value C. Specifically, when the added value is equal to or more than the threshold value C, the density of the density segment selected as the background candidate in the second step, or
With this density section, the density of the density section adjacent to the high density side is determined as the background level. On the other hand, when the added value is smaller than the threshold value C, it is determined that there is no background.

【0227】これにより、原稿の種類を判定する処理を
不要とする簡単な構成であっても、印画紙、印刷写真系
原稿、下地かぶりまたは裏うつりのある原稿の判読性を
上げることができ、最適な再生画像を得ることができ
る。また、例えば、縁の白紙部分及び/またはハイライ
ト部の存在する写真原稿の場合にも、的確な下地レベル
を検出することができる。
As a result, the readability of a photographic printing paper, a printed photographic original, an original with a background fog or a backslip can be improved even with a simple structure that does not require the process of determining the type of the original. An optimum reproduced image can be obtained. Further, for example, even in the case of a photographic document having a blank sheet portion and / or a highlight portion on the edge, it is possible to detect an accurate background level.

【0228】すなわち、複数の下地らしいピーク濃度を
持つ原稿、すなわち、白データの存在する場合にも、よ
り的確な下地レベルの検出が可能となる。
That is, even in the case of a document having a plurality of peak densities, which is the peak density, that is, white data, it is possible to detect the background level more accurately.

【0229】また、複数の色成分に対して、同一の下地
除去方法を用いることにより、カラー画像に対して色目
の変化の発生しない、再生画像を得ることができる。
Also, by using the same background removal method for a plurality of color components, it is possible to obtain a reproduced image in which no color change occurs in the color image.

【0230】さらに、上記第1〜第3の工程を行うこと
により、ヒストグラム度数のバラつきや誤差に対応し
た、より適正な下地レベルの検出が可能となる。隣接す
る濃度区分との度数関係に応じて下地レベルを決定する
ことで、ピークサーチを行わない簡易な構成でありなが
ら、ピークに近いレベルを検出することができる。
Further, by carrying out the above-mentioned first to third steps, it becomes possible to detect a more appropriate background level corresponding to variations in histogram frequency and errors. By determining the background level according to the frequency relationship with the adjacent density section, it is possible to detect the level close to the peak while having a simple configuration in which the peak search is not performed.

【0231】[0231]

【発明の効果】本発明の画像処理方法は、以上のよう
に、ヒストグラムの暗側からサーチを開始し、所定の閾
値を最初に超えるレベルを下地候補レベルとして検出す
るとともに、該下地候補レベルの度数と明側に隣接する
レベルの度数とを比較して、度数が大きい方のレベルを
下地レベルとして決定する構成である。
As described above, the image processing method of the present invention starts the search from the dark side of the histogram, detects the level that first exceeds the predetermined threshold as the background candidate level, and detects the background candidate level. The frequency is compared with the frequency of the level adjacent to the bright side, and the level with the higher frequency is determined as the base level.

【0232】それゆえ、より正確な下地レベルの検出が
可能となり、良好な画像形成を行うことができるという
効果を奏する。
Therefore, it is possible to more accurately detect the background level, and it is possible to form an excellent image.

【0233】すなわち、所定の閾値を最初に超えるレベ
ルを下地候補レベルとし、さらに、下地候補レベルの度
数とその明側に隣接するレベルの度数とを比較して、度
数が大きいレベルを下地レベルとして検出することで、
より正確な下地レベルの検出が可能となる。これによ
り、ピークサーチを行わない簡易な画像処理方法であっ
ても、よりピークに近いレベルを検出することができ
る。
That is, the level that first exceeds the predetermined threshold value is set as the background candidate level, and the frequency of the background candidate level is compared with the frequencies of the levels adjacent to the bright side thereof, and the level having the larger frequency is set as the background level. By detecting
It is possible to detect the background level more accurately. Thus, even with a simple image processing method that does not perform peak search, it is possible to detect a level closer to the peak.

【0234】よって、下地かぶりあるいは裏うつりのあ
る原稿の読み取り性が向上し、白紙に新聞等の切り抜き
をスクラップした切り貼り原稿等にも対応した下地レベ
ルの検出を行うことができる。
Therefore, the readability of an original document with a background fog or back-slip is improved, and the background level can be detected even for a cut and pasted document in which a blank such as a newspaper is cut out and scrapped.

【0235】さらに、所定の閾値等の制御を行うことに
より、切り貼り原稿のみでなく、複数の下地らしいピー
ク濃度を持つ原稿等の様々な原稿画像に対応した正確な
下地レベルの検出が可能となる。
Further, by controlling the predetermined threshold value and the like, it is possible to accurately detect the background level corresponding to not only the cut and pasted original but also various original images such as an original having a plurality of peak-like peak densities. .

【0236】本発明の画像処理方法は、以上のように、
ヒストグラムの暗側からサーチを開始し、所定の閾値を
最初に超えるレベルを下地候補レベルとして検出すると
ともに、該下地候補レベルの度数に対する、その明側に
隣接するレベルの度数の度数比を求め、該度数比が予め
定められた所定値未満の場合には、該下地候補レベルを
下地レベルとして決定し、上記度数比が上記所定値以上
の場合には、明側に隣接するレベルを下地レベルとして
決定する構成である。
The image processing method of the present invention is as described above.
The search is started from the dark side of the histogram, and the level that first exceeds a predetermined threshold is detected as the background candidate level, and the frequency ratio of the frequency of the level adjacent to the bright side with respect to the frequency of the background candidate level is obtained. When the frequency ratio is less than a predetermined value, the background candidate level is determined as the background level, and when the frequency ratio is the predetermined value or more, the level adjacent to the bright side is set as the background level. This is the configuration to be decided.

【0237】それゆえ、より正確な下地レベルの検出が
可能となり、良好な画像形成を行うことができるという
効果を奏する。
Therefore, it is possible to detect the background level more accurately and to form an excellent image.

【0238】すなわち、検出レベルの度数およびその明
側に隣接するレベルの度数の度数比に応じた下地レベル
の検出を行うことで、ヒストグラム度数のバラつきや誤
差に対応した、より正確な下地レベルの検出が可能とな
る。
That is, by detecting the background level in accordance with the frequency of the detection level and the frequency ratio of the frequencies of the levels adjacent to the light side, a more accurate background level corresponding to the variation in the histogram frequency and the error is obtained. It becomes possible to detect.

【0239】これにより、ピークサーチを行わない簡易
な構成でありながら、よりピークに近い下地レベルを検
出できる。
As a result, the background level closer to the peak can be detected with a simple structure in which the peak search is not performed.

【0240】本発明の画像処理方法は、以上のように、
ヒストグラムの明側からサーチを開始し、所定の閾値を
最初に超えるレベルを下地候補レベルとして検出すると
ともに、該下地候補レベルの度数と暗側に隣接するレベ
ルの度数とを比較して、度数の大きい方のレベルを下地
レベルとして決定する構成である。
The image processing method of the present invention is as described above.
The search is started from the bright side of the histogram, and the level that first exceeds the predetermined threshold is detected as the background candidate level, and the frequency of the background candidate level and the frequency of the level adjacent to the dark side are compared to determine the frequency In this configuration, the larger level is determined as the base level.

【0241】それゆえ、より正確な下地レベルの検出が
可能となり、良好な画像形成を行うことができるという
効果を奏する。
Therefore, it is possible to detect the background level more accurately and to form an excellent image.

【0242】すなわち、ヒストグラムの明側の区分から
サーチを開始し、所定の閾値により検出した下地候補レ
ベルの度数とその暗側に隣接するレベルの度数とを比較
して、度数の大きいレベルを下地レベルとして決定する
ことで、複数の下地らしいピーク濃度を持つ原稿に対し
ても、より正確な下地レベルの検出が可能になる。
That is, the search is started from the bright side of the histogram, the frequencies of the background candidate levels detected by the predetermined threshold are compared with the frequencies of the levels adjacent to the dark side, and the level with the higher frequency is the background. By determining the level, it is possible to more accurately detect the background level even for a document having a plurality of peak density values that seem to be the background.

【0243】これにより、ピークサーチを行わない簡易
な構成でありながら、よりピークに近い下地レベルを検
出できる。
As a result, the background level closer to the peak can be detected with a simple structure in which the peak search is not performed.

【0244】また、本発明の画像処理方法は、ヒストグ
ラムにおける最明側レベルの度数が、上記所定の閾値よ
り大きい場合には、該レベルを下地候補レベルから除外
するとともに、上記所定の閾値を該下地候補レベルの度
数に応じて変化させる構成である。
Further, according to the image processing method of the present invention, when the frequency of the brightest side level in the histogram is larger than the predetermined threshold value, the level is excluded from the background candidate level and the predetermined threshold value is set to the predetermined threshold value. This is a configuration that is changed according to the frequency of the background candidate level.

【0245】それゆえ、上記ヒストグラムの最明側のレ
ベルの度数が所定の閾値より大きい場合には、該レベル
を下地候補レベルから除外することで、白レベルデータ
量の影響を考慮した下地レベルの検出が可能になる。よ
って、複数の下地らしいピーク濃度を持つ原稿に加え
て、白紙に新聞等の切り抜きをスクラップした切り貼り
原稿等であっても、白レベルデータの影響を受けずに、
正確な下地レベルを検出できるという効果を奏する。
Therefore, when the frequency of the level on the brightest side of the histogram is larger than the predetermined threshold value, the level is excluded from the background candidate levels, and the background level considering the influence of the white level data amount is taken into consideration. It becomes possible to detect. Therefore, in addition to a manuscript having peak density like multiple backgrounds, even a cut and pasted manuscript with scraps of newspapers cut out on a white paper, etc., without being affected by the white level data,
The effect is that an accurate background level can be detected.

【0246】また、本発明の画像処理方法は、上記決定
された下地レベルに応じて、各色の入力信号のそれぞれ
に対して同一の濃度変換処理を行う構成である。
Further, the image processing method of the present invention is so constructed as to perform the same density conversion processing on each of the input signals of the respective colors in accordance with the background level determined above.

【0247】それゆえ、各色の入力信号を基にして行う
下地除去において、色かぶりあるいは色みのある下地を
有する原稿に対して、特定色のみの下地除去を行った場
合には、色目の変化が生じるという問題があるが、RG
BもしくはCMY各色のそれぞれに対して、同一の濃度
変換処理を行うことにより、色目の変化のない再生画像
を得ることができるという効果を奏する。
Therefore, in the background removal performed based on the input signals of the respective colors, when the background removal of only a specific color is performed on an original having a background with color cast or tint, the change of the color tone is caused. There is a problem that
By performing the same density conversion processing for each of B and CMY colors, it is possible to obtain a reproduced image with no change in color.

【0248】また、本発明の画像処理方法は、上記所定
の閾値は、上記ヒストグラムの総度数に対する割合で決
定される構成である。
In the image processing method of the present invention, the predetermined threshold value is determined by the ratio to the total frequency of the histogram.

【0249】それゆえ、下地レベル検出に用いられる所
定の閾値は、ヒストグラム総度数に対する割合として決
定されることで、原稿サイズに応じた複数の閾値を設定
する必要がなく、簡易な構成にて各種の原稿に対して適
切な閾値を設定できるという効果を奏する。
Therefore, since the predetermined threshold value used for the background level detection is determined as a ratio to the total histogram frequency, it is not necessary to set a plurality of threshold values according to the document size, and various types can be used with a simple structure. The effect is that an appropriate threshold can be set for the original document.

【0250】また、本発明の画像処理方法は、上記ヒス
トグラムの区分毎の濃度レベルに応じて上記所定の閾値
を変更し、該区分毎の閾値を決定して下地レベルを検出
する構成である。
Further, the image processing method of the present invention has a structure in which the predetermined threshold value is changed according to the density level for each section of the histogram, and the threshold value for each section is determined to detect the background level.

【0251】それゆえ、例えば、上記ヒストグラムにお
ける最明側の区分1に対応する閾値1を、他の区分に対
応する閾値2よりも大きく設定することにより、区分1
が下地候補レベルとして誤って検出されるのを防止でき
る。よって、複数の下地らしいピーク濃度を持つ原稿の
みでなく、切り貼り原稿にも対応した、より正確な下地
レベルの検出が可能となるという効果を奏する。
Therefore, for example, by setting the threshold value 1 corresponding to the brightest section 1 in the above histogram to be larger than the threshold value 2 corresponding to the other sections,
Can be prevented from being erroneously detected as the background candidate level. Therefore, there is an effect that more accurate detection of the background level is possible, which corresponds not only to a document having a plurality of peak-like peak densities but also to a cut and pasted document.

【0252】本発明の画像処理方法は、以上のように、
ヒストグラムを予め定められる方向にサーチし、サーチ
開始側の濃度区分の度数と第1の閾値とを比較すること
により原稿を下地なしとするのか後に下地候補を検出す
る工程を行うのかを判定する第1の工程と、第1の工程
において下地候補を検出する工程を行うと判定した場
合、濃度区分の度数を第2の閾値と比較することにより
下地の候補があるか否かを判定する第2の工程と、第2
の工程において、下地の候補があると判定された場合、
度数が第2の閾値以上となる濃度区分の度数と、該濃度
区分とサーチする方向に隣接する濃度区分の度数とを加
算し、該加算値と第3の閾値とを比較することにより下
地の有無を判定する第3の工程とを有し、第1から第3
の工程の結果に基づいて下地除去処理を行う構成であ
る。
The image processing method of the present invention is as described above.
By searching the histogram in a predetermined direction and comparing the frequency of the density classification on the search start side with the first threshold value, it is determined whether the original is set to have no background or the step of detecting the background candidate is performed. If it is determined that the step 1 and the step of detecting the background candidate in the first step are performed, it is determined whether there is a background candidate by comparing the frequency of the density classification with a second threshold. Process and the second
In the step of, if it is determined that there is a candidate for the background,
By adding the frequency of the density section having the frequency equal to or higher than the second threshold and the frequency of the density section adjacent to the density section in the search direction, and comparing the added value with the third threshold, A third step of determining the presence or absence, and the first to third
The background removal process is performed based on the result of the process.

【0253】具体的には、サーチをヒストグラムの低濃
度側から高濃度側に向けて行う構成である。
Specifically, the search is performed from the low density side to the high density side of the histogram.

【0254】これにより、原稿の種類を判定する処理を
不要とする簡単な構成であっても、印画紙、印刷写真系
原稿、下地かぶりまたは裏うつりのある原稿の判読性を
上げることができ、最適な再生画像を得ることができ
る。すなわち、複数の下地らしいピーク濃度を持つ原
稿、すなわち、白データの存在する場合にも、より的確
な下地レベルの検出が可能となる。
As a result, the readability of a photographic printing paper, a print photographic original, an original with a background fog or a backslip can be improved, even with a simple structure that does not require the processing for determining the type of the original. An optimum reproduced image can be obtained. That is, it is possible to detect the background level more accurately even in the case where there are a plurality of originals having peak density that is similar to the background, that is, white data exists.

【0255】また、複数の色成分に対して、同一の下地
除去方法を用いることにより、カラー画像に対して色目
の変化の発生しない、再生画像を得ることができるとい
う効果を奏する。
Further, by using the same background removal method for a plurality of color components, it is possible to obtain a reproduced image in which no color change occurs in the color image.

【0256】本発明の画像処理方法は、ヒストグラム
が、入力信号からの比率計算により得られる輝度情報を
基にして作成される構成である。
The image processing method of the present invention has a structure in which the histogram is created based on the luminance information obtained from the ratio calculation from the input signal.

【0257】これにより、CMY信号あるいはRGB信
号等の入力信号を基にして算出した輝度情報(Gray
データ、輝度データ)から、ヒストグラムを作成して下
地レベル検出を行うことにより、CMYあるいはRGB
の全色についてヒストグラムを作成して参照する必要は
なく、より簡易な構成で正確な下地レベルの検出を行う
ことができるという効果を奏する。
Thus, the brightness information (Gray) calculated based on the input signal such as the CMY signal or the RGB signal is obtained.
CMY or RGB by creating a histogram from the
It is not necessary to create and refer to histograms for all the colors, and there is an effect that the base level can be accurately detected with a simpler configuration.

【0258】本発明の画像処理方法は、輝度情報が、入
力信号における複数の色成分の比率を同等にして変換さ
れている構成である。
The image processing method of the present invention has a structure in which the luminance information is converted with the same ratio of the plurality of color components in the input signal.

【0259】これにより、赤っぽいなどの原稿の特性を
把握することができ、より、色味のある下地を検出する
ことができる。従って、下地の色味によって検出精度が
異なるといった不具合のない、より適切な下地の検出が
可能となるという効果を奏する。
As a result, the characteristics of the document such as reddish can be grasped, and the more colored background can be detected. Therefore, there is an effect that it is possible to detect a more appropriate background without the problem that the detection accuracy varies depending on the tint of the background.

【0260】本発明の画像処理方法は、第3の工程で、
加算値が第3の閾値以上の場合、度数が第2の閾値以上
となる濃度区分の濃度、または、該濃度区分とサーチす
る方向に隣接する濃度区分の濃度を下地レベルとして決
定する構成である。
In the image processing method of the present invention, in the third step,
When the added value is equal to or greater than the third threshold value, the density of the density segment whose frequency is equal to or greater than the second threshold value, or the density of the density segment adjacent to the density segment in the search direction is determined as the background level. .

【0261】これにより、ヒストグラム度数のバラつき
や誤差に対応した、より適正な下地レベルの検出が可能
となる。隣接する濃度区分との度数関係に応じて下地レ
ベルを決定することで、ピークサーチを行わない簡易な
構成でありながら、ピークに近いレベルを検出すること
ができるという効果を奏する。
As a result, it becomes possible to detect the background level more appropriately in accordance with the variation in the histogram frequency and the error. By determining the background level according to the frequency relationship with the adjacent density section, it is possible to detect the level close to the peak while having a simple configuration in which the peak search is not performed.

【0262】本発明の画像処理方法は、第1の工程で、
サーチ開始側の濃度区分の度数が第1の閾値以上の場合
に、原稿は下地なしと判定する構成である。
The image processing method of the present invention comprises, in the first step,
When the frequency of the density classification on the search start side is equal to or higher than the first threshold value, the original is determined to have no background.

【0263】これにより、簡単な構成で、例えば、縁の
白紙部分及び/またはハイライト部の存在する写真原
稿、すなわち、白データの存在する場合にも、的確な下
地レベルを検出することができる。
With this arrangement, an accurate background level can be detected with a simple structure even when, for example, a photographic document having a blank sheet portion and / or a highlight portion at the edge, that is, white data exists. .

【0264】本発明の画像処理方法は、第1の閾値、第
2の閾値、第3の閾値はそれぞれ独立しており、それぞ
れが任意に変更可能に構成されている構成である。
In the image processing method of the present invention, the first threshold value, the second threshold value, and the third threshold value are independent of each other, and each of them can be arbitrarily changed.

【0265】上記の構成によれば、第1の閾値、第2の
閾値、第3の閾値のうち、目的に応じたものについて変
更することが可能となる。
According to the above configuration, it is possible to change the first threshold value, the second threshold value, and the third threshold value that are suitable for the purpose.

【0266】従って、このように下地を判定する閾値の
制御を行うことにより、切り貼り原稿のみでなく、複数
の下地らしいピーク濃度を持つ原稿であっても的確に下
地レベルを検出することができるという効果を奏する。
Therefore, by controlling the threshold value for determining the background in this way, it is possible to accurately detect the background level not only for the cut and pasted original but also for an original having a plurality of peak-like peak densities. Produce an effect.

【0267】本発明の画像処理装置は、以上のように、
上記記載の画像処理方法を用いて、読み取り原稿の下地
レベルを決定し、下地除去処理を行う構成である。
The image processing apparatus of the present invention, as described above,
Using the image processing method described above, the background level of the read original is determined and the background removal processing is performed.

【0268】これにより、網点写真、すなわち印刷写真
や印画紙写真を含む原稿における白データを下地として
検出しない。従って、必要な画像情報が欠落するのを防
ぐことができる。また、色目の変化を生じることなく所
望の下地除去処理を施すことができるという効果を奏す
る。
As a result, white data in a document including a halftone picture, that is, a print picture or a photographic paper picture is not detected as a background. Therefore, it is possible to prevent necessary image information from being lost. Further, there is an effect that a desired background removal process can be performed without causing a change in color.

【0269】本発明の画像形成装置は、以上のように、
上記記載の画像処理装置と、原稿を読み取り、画像デー
タとして上記画像処理装置に入力する画像入力装置と、
上記画像処理装置により出力された出力画像データに基
づいて、記録媒体上に画像を形成する画像出力装置とを
備えた構成である。
The image forming apparatus of the present invention, as described above,
An image processing device described above; an image input device that reads a document and inputs image data to the image processing device;
An image output device that forms an image on a recording medium based on output image data output by the image processing device.

【0270】これにより、例えば、網点写真や印画紙写
真を含む原稿に対して下地の検出を行わないことによ
り、必要な画像情報が欠落するのを防ぐことができると
共に色目の変化を生じることなく所望の下地除去処理を
施すことができる。
As a result, it is possible to prevent the necessary image information from being lost and to change the color tone by not detecting the background of the original including the halftone dot photograph and the photographic paper photograph, for example. It is possible to carry out a desired underlayer removal process without the need.

【0271】従って、原稿の種類を判定することなく、
画質低下の防止を図ることができる。この結果、画像形
成装置において品質の良い画像を出力することができる
という効果を奏する。
Therefore, without judging the type of the original,
It is possible to prevent deterioration of image quality. As a result, there is an effect that a high quality image can be output in the image forming apparatus.

【0272】本発明の画像処理プログラムは、コンピュ
ータに、上記記載の画像処理方法を実行させる構成であ
る。
The image processing program of the present invention has a configuration for causing a computer to execute the above-described image processing method.

【0273】これにより、上記記載の画像処理方法と同
じ作用効果を奏することができる。また、上記記載の画
像処理方法を汎用的なものとすることができる。
As a result, the same operational effects as the above-described image processing method can be obtained. Further, the image processing method described above can be general-purpose.

【0274】本発明のコンピュータ読み取り可能な記録
媒体は、上記記載の画像処理プログラムを記録した構成
である。
The computer-readable recording medium of the present invention has a structure in which the above-mentioned image processing program is recorded.

【0275】これにより、上記記載の画像処理方法と同
じ作用効果を奏することができる。また、上記記載の画
像処理方法を汎用的なものとすることができる。
As a result, the same operational effects as the above-described image processing method can be obtained. Further, the image processing method described above can be general-purpose.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の画像処理方法にかかる一実施形態を示
すフローチャートである。
FIG. 1 is a flowchart showing an embodiment of an image processing method of the present invention.

【図2】本発明の一実施形態に係るディジタルカラー複
写機の内部の構成を示す概略図である。
FIG. 2 is a schematic diagram showing an internal configuration of a digital color copying machine according to an embodiment of the present invention.

【図3】図1のディジタルカラー複写機による画像処理
工程を示すブロック図である。
3 is a block diagram showing an image processing step by the digital color copying machine of FIG.

【図4】図1のフローチャートにおける下地候補レベル
の決定方法を示すフローチャートである。
4 is a flowchart showing a method of determining a background candidate level in the flowchart of FIG.

【図5】図1のフローチャートにおける濃度変換処理工
程に用いられる濃度変換テーブルである。
5 is a density conversion table used in a density conversion processing step in the flowchart of FIG.

【図6】プレスキャンにより原稿を読み取った一例を示
すヒストグラムである。
FIG. 6 is a histogram showing an example of reading a document by prescanning.

【図7】図1のフローチャートにおける下地レベルの決
定方法の一例について示すフローチャートである。
FIG. 7 is a flowchart showing an example of a method of determining a background level in the flowchart of FIG.

【図8】(a)〜(c)は、プレスキャンにより原稿を
読み取った他の例を示すヒストグラムである。
FIGS. 8A to 8C are histograms showing another example in which a document is read by prescanning.

【図9】図1のフローチャートにおける下地レベルの決
定方法の他の例について示すフローチャートである。
9 is a flowchart showing another example of the method of determining the background level in the flowchart of FIG.

【図10】本発明の画像処理方法の他の実施形態を示す
フローチャートである。
FIG. 10 is a flowchart showing another embodiment of the image processing method of the present invention.

【図11】図10のフローチャートにおける下地候補レ
ベルの決定方法の一例を示すフローチャートである。
11 is a flowchart showing an example of a method of determining a background candidate level in the flowchart of FIG.

【図12】(a)・(b)は、図10のフローチャート
におけるプレスキャンにより原稿を読み取った一例を示
すヒストグラムである。
12A and 12B are histograms showing an example in which a document is read by prescanning in the flowchart of FIG.

【図13】図10のフローチャートにおける下地候補レ
ベルの決定方法の他の例について示すフローチャートで
ある。
13 is a flowchart showing another example of the method for determining the background candidate level in the flowchart of FIG.

【図14】図2に示すディジタルカラー複写機における
画像処理装置の構成を示す説明図である。
FIG. 14 is an explanatory diagram showing a configuration of an image processing apparatus in the digital color copying machine shown in FIG.

【図15】図14に示すγ補正部の構成を示す説明図で
ある。
15 is an explanatory diagram showing a configuration of a γ correction unit shown in FIG.

【図16】(a)〜(c)は、プレスキャンにより原稿
を読み取ったさらに他の一例を示すヒストグラムであ
る。
16A to 16C are histograms showing still another example of reading an original by prescanning.

【図17】本発明の画像処理方法のさらに他の実施形態
において下地レベルの決定方法の一例について示すフロ
ーチャートである。
FIG. 17 is a flowchart showing an example of a background level determination method in still another embodiment of the image processing method of the present invention.

【符号の説明】[Explanation of symbols]

11 CCD 12 濃度変換部 13 領域分離部 14 ガンマ補正部 15 色補正・黒生成部 16 変倍部 17 フィルタ処理部 18 レーザユニット 41 画像処理装置 42 画像入力装置 53 γ補正部 62 ヒストグラム作成部 63 閾値設定部 65 濃度補正部 11 CCD 12 Density converter 13 Area separation unit 14 Gamma correction section 15 color correction / black generation part 16 Variable magnification section 17 Filter processing unit 18 Laser unit 41 Image processing device 42 Image input device 53 γ correction unit 62 Histogram creation section 63 Threshold setting section 65 Density correction unit

フロントページの続き (72)発明者 徳山 満 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 大槻 正明 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 西光 英二 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 安岡 紀英 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 今川 眞司 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 田中 達哉 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 河野 浩史 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 (72)発明者 松岡 朋枝 大阪府大阪市阿倍野区長池町22番22号 シ ャープ株式会社内 Fターム(参考) 2H027 DA44 DB01 DE07 EC06 EC07 EC09 EC10 EC11 EC18 FA28 FC02 5B057 AA11 BA02 CA02 CA08 CA12 CA16 CB02 CB08 CB12 CB16 CC01 CE02 CH08 5C077 LL02 MP01 PP10 PP25 PQ12 PQ19 PQ20 SS01 TT06 Continued front page    (72) Inventor Mitsuru Tokuyama             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Masaaki Otsuki             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Eiji Nishimitsu             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Norioka Yasuoka             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Shinji Imagawa             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Tatsuya Tanaka             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Hiroshi Kono             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company (72) Inventor Tomoe Matsuoka             22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka             Inside the company F term (reference) 2H027 DA44 DB01 DE07 EC06 EC07                       EC09 EC10 EC11 EC18 FA28                       FC02                 5B057 AA11 BA02 CA02 CA08 CA12                       CA16 CB02 CB08 CB12 CB16                       CC01 CE02 CH08                 5C077 LL02 MP01 PP10 PP25 PQ12                       PQ19 PQ20 SS01 TT06

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】原稿を読み取って得られた入力信号から、
ヒストグラムを作成して下地レベルを検出し、該下地レ
ベルに応じた画像処理を行う画像処理方法において、 上記ヒストグラムの暗側からサーチを開始し、所定の閾
値を最初に超えるレベルを下地候補レベルとして検出す
るとともに、 該下地候補レベルの度数と明側に隣接するレベルの度数
とを比較して、度数が大きい方のレベルを下地レベルと
して決定することを特徴とする画像処理方法。
1. An input signal obtained by scanning an original,
In the image processing method of creating a histogram, detecting a background level, and performing image processing according to the background level, a search is started from the dark side of the histogram, and a level that first exceeds a predetermined threshold is set as a background candidate level. An image processing method, characterized by detecting and comparing the frequency of the background candidate level with the frequency of a level adjacent to the bright side, and determining the level with the higher frequency as the background level.
【請求項2】原稿を読み取って得られた入力信号から、
ヒストグラムを作成して下地レベルを検出し、該下地レ
ベルに応じた画像処理を行う画像処理方法において、 上記ヒストグラムの暗側からサーチを開始し、所定の閾
値を最初に超えるレベルを下地候補レベルとして検出す
るとともに、 該下地候補レベルの度数に対する、その明側に隣接する
レベルの度数の度数比を求め、該度数比が予め定められ
た所定値未満の場合には、該下地候補レベルを下地レベ
ルとして決定し、上記度数比が上記所定値以上の場合に
は、明側に隣接するレベルを下地レベルとして決定する
ことを特徴とする画像処理方法。
2. An input signal obtained by scanning an original,
In the image processing method of creating a histogram, detecting a background level, and performing image processing according to the background level, a search is started from the dark side of the histogram, and a level that first exceeds a predetermined threshold is set as a background candidate level. Upon detection, the frequency ratio of the frequency of the level adjacent to the bright side to the frequency of the background candidate level is obtained, and when the frequency ratio is less than a predetermined value, the background candidate level is set to the background level. And the level adjacent to the bright side is determined as the background level when the frequency ratio is equal to or higher than the predetermined value.
【請求項3】原稿を読み取って得られた入力信号から、
ヒストグラムを作成して下地レベルを検出し、該下地レ
ベルに応じた画像処理を行う画像処理方法において、 上記ヒストグラムの明側からサーチを開始し、所定の閾
値を最初に超えるレベルを下地候補レベルとして検出す
るとともに、 該下地候補レベルの度数と暗側に隣接するレベルの度数
とを比較して、度数の大きい方のレベルを下地レベルと
して決定することを特徴とする画像処理方法。
3. An input signal obtained by scanning a document,
In the image processing method of creating a histogram, detecting a background level, and performing image processing according to the background level, a search is started from the light side of the histogram, and a level that first exceeds a predetermined threshold is set as a background candidate level. An image processing method which detects and compares the frequency of the background candidate level with the frequency of a level adjacent to the dark side, and determines the level with the higher frequency as the background level.
【請求項4】上記ヒストグラムにおける最明側レベルの
度数が、上記所定の閾値より大きい場合には、該レベル
を下地候補レベルから除外するとともに、上記所定の閾
値を該下地候補レベルの度数に応じて変化させることを
特徴とする請求項3に記載の画像処理方法。
4. When the frequency of the brightest level in the histogram is larger than the predetermined threshold value, the level is excluded from the background candidate level and the predetermined threshold value is set according to the frequency of the background candidate level. The image processing method according to claim 3, wherein the image processing method is changed.
【請求項5】上記決定された下地レベルに応じて、各色
の入力信号のそれぞれに対して同一の濃度変換処理を行
うことを特徴とする請求項1〜4の何れか1項に記載の
画像処理方法。
5. The image according to claim 1, wherein the same density conversion processing is performed on each of the input signals of each color according to the determined background level. Processing method.
【請求項6】上記所定の閾値は、上記ヒストグラムの総
度数に対する割合で決定されることを特徴とする請求項
1〜5の何れか1項に記載の画像処理方法。
6. The image processing method according to claim 1, wherein the predetermined threshold value is determined by a ratio to the total frequency of the histogram.
【請求項7】上記ヒストグラムの区分毎の濃度レベルに
応じて上記所定の閾値を変更し、該区分毎の閾値を決定
して下地レベルを検出することを特徴とする請求項1〜
5の何れか1項に記載の画像処理方法。
7. The background level is detected by changing the predetermined threshold value according to the density level of each section of the histogram and determining the threshold value of each section.
5. The image processing method according to any one of 5 above.
【請求項8】原稿を読み取って得られた入力信号から、
ヒストグラムを作成して下地レベルを検出し、該下地レ
ベルに応じた画像処理を行う画像処理方法において、 上記ヒストグラムを予め定められる方向にサーチし、サ
ーチ開始側の濃度区分の度数と第1の閾値とを比較する
ことにより上記原稿を下地なしとするのか後に下地候補
を検出する工程を行うのかを判定する第1の工程と、 上記第1の工程において、下地候補を検出する工程を行
うと判定された場合、濃度区分の度数を第2の閾値と比
較することにより下地の候補があるか否かを判定する第
2の工程と、 上記第2の工程において、下地の候補があると判定され
た場合、度数が上記第2の閾値以上となる濃度区分の度
数と、該濃度区分とサーチする方向に隣接する濃度区分
の度数とを加算し、該加算値と第3の閾値とを比較する
ことにより下地の有無を判定する第3の工程とを有し、 上記第1から第3の工程の結果に基づいて下地除去処理
を行うことを特徴とする画像処理方法。
8. From an input signal obtained by reading a document,
In an image processing method for creating a histogram, detecting a background level, and performing image processing according to the background level, the histogram is searched in a predetermined direction, the frequency of the density division on the search start side and the first threshold value. And a first step of determining whether the original is to have no background or a step of detecting a background candidate after that, and a step of detecting a background candidate in the first step. In the second step, it is determined that there is a background candidate in the second step of determining whether there is a background candidate by comparing the frequency of the density classification with a second threshold value. In this case, the frequency of the density section having the frequency equal to or higher than the second threshold value and the frequency of the density section adjacent to the density section in the search direction are added, and the added value is compared with the third threshold value. Especially Ri and a third step of determining the presence or absence of base, an image processing method and performing background removal process based on the results of the third step from the first.
【請求項9】上記サーチは、ヒストグラムの低濃度側か
ら高濃度側に向けて行われることを特徴とする請求項8
に記載の画像処理方法。
9. The search is performed from the low density side to the high density side of the histogram.
The image processing method described in.
【請求項10】上記ヒストグラムは、上記入力信号から
の比率計算により得られる輝度情報を基にして作成され
ることを特徴とする請求項1〜9の何れか1項に記載の
画像処理方法。
10. The image processing method according to claim 1, wherein the histogram is created based on luminance information obtained by calculating a ratio from the input signal.
【請求項11】上記輝度情報は、入力信号における複数
の色成分の比率を同等にして変換されていることを特徴
とする請求項10に記載の画像処理方法。
11. The image processing method according to claim 10, wherein the luminance information is converted such that the ratios of a plurality of color components in the input signal are equalized.
【請求項12】上記第3の工程では、上記加算値が第3
の閾値以上の場合、上記度数が第2の閾値以上となる濃
度区分の濃度、または、該濃度区分とサーチする方向に
隣接する濃度区分の濃度を下地レベルとして決定するこ
とを特徴とする請求項8または9に記載の画像処理方
法。
12. In the third step, the added value is a third value.
When the density is equal to or more than the threshold value of, the density of the density section having the frequency equal to or higher than the second threshold value, or the density of the density section adjacent to the density section in the search direction is determined as the background level. 8. The image processing method according to 8 or 9.
【請求項13】上記第1の工程では、サーチ開始側の濃
度区分の度数が第1の閾値以上の場合に、上記原稿は下
地なしと判定することを特徴とする請求項8または9に
記載の画像処理方法。
13. The method according to claim 8, wherein in the first step, it is determined that the original has no background when the frequency of the density division on the search start side is equal to or higher than a first threshold value. Image processing method.
【請求項14】上記第1の閾値、第2の閾値、第3の閾
値はそれぞれ独立しており、それぞれが任意に変更可能
に構成されていることを特徴とする請求項8、9、1
2、13の何れか1項に記載の画像処理方法。
14. The first threshold value, the second threshold value, and the third threshold value are independent of each other, and each of them is configured to be arbitrarily changeable.
The image processing method according to any one of 2 and 13.
【請求項15】請求項1〜14の何れか1項に記載の画
像処理方法を用いて、読み取り原稿の下地レベルを決定
し、下地除去処理を行うことを特徴とする画像処理装
置。
15. An image processing apparatus, wherein the image processing method according to claim 1 is used to determine a background level of a read document and perform background removal processing.
【請求項16】請求項15に記載の画像処理装置と、原
稿を読み取り、画像データとして上記画像処理装置に入
力する画像入力装置と、 上記画像処理装置により出力された出力画像データに基
づいて、記録媒体上に画像を形成する画像出力装置とを
備えたことを特徴とする画像形成装置。
16. An image processing apparatus according to claim 15, an image input apparatus for reading a document and inputting it as image data to the image processing apparatus, and output image data output by the image processing apparatus, An image forming apparatus, comprising: an image output device that forms an image on a recording medium.
【請求項17】コンピュータに、 請求項1〜14のいずれか1項に記載の画像処理方法を
実行させることを特徴とする画像処理プログラム。
17. An image processing program that causes a computer to execute the image processing method according to claim 1. Description:
【請求項18】請求項17に記載の画像処理プログラム
を記録したことを特徴とするコンピュータ読み取り可能
な記録媒体。
18. A computer-readable recording medium on which the image processing program according to claim 17 is recorded.
JP2001318565A 2001-05-28 2001-10-16 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 Pending JP2003051946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001318565A JP2003051946A (en) 2001-05-28 2001-10-16 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

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001159451 2001-05-28
JP2001-159451 2001-05-28
JP2001318565A JP2003051946A (en) 2001-05-28 2001-10-16 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

Publications (1)

Publication Number Publication Date
JP2003051946A true JP2003051946A (en) 2003-02-21

Family

ID=26615811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001318565A Pending JP2003051946A (en) 2001-05-28 2001-10-16 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

Country Status (1)

Country Link
JP (1) JP2003051946A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005328349A (en) * 2004-05-14 2005-11-24 Fuji Xerox Co Ltd Image processing apparatus and method
JP2008219500A (en) * 2007-03-05 2008-09-18 Ricoh Co Ltd Image processor, image processing method, and digital multi-functional machine
JP2009094919A (en) * 2007-10-11 2009-04-30 Sharp Corp Image processor, image forming apparatus equipped with image processor, image processing method, image processing program, and computer-readable recording medium where same program is recorded
JP2010081569A (en) * 2008-08-27 2010-04-08 Sharp Corp Image processing apparatus, image forming apparatus, method and program of processing images, and recording media for recording program of processing images
JP2010219857A (en) * 2009-03-17 2010-09-30 Seiko Epson Corp Noise component removing device, and medium having noise component removing program recorded thereon
US8009902B2 (en) 2007-03-26 2011-08-30 Murata Machinery, Ltd. Image processing apparatus and method for detecting a background color based on data chrominance distribution
JP2012029167A (en) * 2010-07-26 2012-02-09 Seiko I Infotech Inc Image reading device, and image forming apparatus
US8472708B2 (en) 2007-02-28 2013-06-25 Fuji Xerox Co., Ltd. Image processor, method for processing image and computer readable medium
US8564863B2 (en) 2006-07-15 2013-10-22 Fuji Xerox Co., Ltd. Image processing device that reduces a non-target image to prevent the non-target image from being read
JP2016220107A (en) * 2015-05-22 2016-12-22 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and storage medium of the same

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005328349A (en) * 2004-05-14 2005-11-24 Fuji Xerox Co Ltd Image processing apparatus and method
US8564863B2 (en) 2006-07-15 2013-10-22 Fuji Xerox Co., Ltd. Image processing device that reduces a non-target image to prevent the non-target image from being read
US8472708B2 (en) 2007-02-28 2013-06-25 Fuji Xerox Co., Ltd. Image processor, method for processing image and computer readable medium
JP2008219500A (en) * 2007-03-05 2008-09-18 Ricoh Co Ltd Image processor, image processing method, and digital multi-functional machine
US8009902B2 (en) 2007-03-26 2011-08-30 Murata Machinery, Ltd. Image processing apparatus and method for detecting a background color based on data chrominance distribution
JP2009094919A (en) * 2007-10-11 2009-04-30 Sharp Corp Image processor, image forming apparatus equipped with image processor, image processing method, image processing program, and computer-readable recording medium where same program is recorded
JP2010081569A (en) * 2008-08-27 2010-04-08 Sharp Corp Image processing apparatus, image forming apparatus, method and program of processing images, and recording media for recording program of processing images
CN101662569B (en) * 2008-08-27 2012-09-19 夏普株式会社 Image processing apparatus, image forming apparatus and image processing method
US8411322B2 (en) 2008-08-27 2013-04-02 Sharp Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method and recording medium on which image processing program is recorded
JP2010219857A (en) * 2009-03-17 2010-09-30 Seiko Epson Corp Noise component removing device, and medium having noise component removing program recorded thereon
JP2012029167A (en) * 2010-07-26 2012-02-09 Seiko I Infotech Inc Image reading device, and image forming apparatus
JP2016220107A (en) * 2015-05-22 2016-12-22 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and storage medium of the same

Similar Documents

Publication Publication Date Title
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
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
JP4496239B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
US8305645B2 (en) Image processing and/or forming apparatus for performing black generation and under color removal processes on selected pixels, image processing and/or forming method for the same, and computer-readable storage medium for storing program for causing computer to function as image processing and/or forming apparatus for the same
JPH04219067A (en) Image forming device
JP4465377B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP2003051946A (en) 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
JP5073773B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP2003338930A (en) Image processing method, image processing apparatus, and image forming apparatus
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP5023035B2 (en) Image processing apparatus, image forming apparatus including the image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the image processing program
JP4549227B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP7123752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4188039B2 (en) Image processing apparatus, image processing method, and image reading apparatus, image forming apparatus, program, and recording medium including the same
JP4064289B2 (en) Image processing apparatus, image processing method, and image forming apparatus, program, and recording medium including the same
JP4170247B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, program, and recording medium recording the program
JP4043982B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JPH10304200A (en) Image processor
JPH0541796A (en) Copying machine
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP3320093B2 (en) Image processing apparatus and image processing method
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4958626B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2009055121A (en) Image processing device, image processing method, image forming apparatus and program, recording medium
JP2007171783A (en) Image forming apparatus