JPH0730757A - Image data processor - Google Patents

Image data processor

Info

Publication number
JPH0730757A
JPH0730757A JP5167048A JP16704893A JPH0730757A JP H0730757 A JPH0730757 A JP H0730757A JP 5167048 A JP5167048 A JP 5167048A JP 16704893 A JP16704893 A JP 16704893A JP H0730757 A JPH0730757 A JP H0730757A
Authority
JP
Japan
Prior art keywords
density
image data
image
value
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5167048A
Other languages
Japanese (ja)
Other versions
JP3117331B2 (en
Inventor
Hiroshi Maeda
博 前田
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 JP05167048A priority Critical patent/JP3117331B2/en
Publication of JPH0730757A publication Critical patent/JPH0730757A/en
Application granted granted Critical
Publication of JP3117331B2 publication Critical patent/JP3117331B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To remove unrequired data such as background or reversed printed characters by setting a threshold value corresponding to the deviation of image density. CONSTITUTION:A CCD part 3a performs the A/D conversion of an analog electric signal inputted from a CCD corresponding to each value of pixel density, performs MTF correction, white-and-black correction of gamma correction and outputs an 8-bit digital signal to a means value processing part 3b. Then, a density means value A of a low density gradation area, mean value C of high density area and mean value B of entire density are calculated. The mean value A shows the stain density of a picture and the means value C shows line drawing density. When a half tone such as a photograph or a picture is contained, however, the image is expressed by the entire gradation, and the values A, B and C are concentrated near the intermediate gradation. Therefore, it can be discriminated whether or not the original is written in line drawing, further, the threshold value is calculated corresponding to the result, a part smaller than this value is removed, and stain caused by the peak of deep background or reversed print, etc., can be removed.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、デジタル複写機,フ
ァクシミリ等において、読み取った画像データの濃度変
換処理等を行う画像データ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data processing device for carrying out density conversion processing of read image data in a digital copying machine, a facsimile or the like.

【0002】[0002]

【従来の技術】画像データを2値化処理する画像データ
処理装置では、画像の量子化においてしきい値を決定
し、該しきい値以下の値を除去し、2値化を行ってい
る。そのための従来の方法は、例えば特開昭61−21
4867号に示すように、濃度の頻度の大きさからしき
い値の算出を行うものであった。例えば、各ライン毎に
濃度(階調)の MAX値、 MIN値を求め、この処理を原稿
全体について処理を行った後、 MAX値のカウント数の一
番多い濃度をTMAX とし、 MIN値のカウント数の一番多
い濃度をTMIN とする。このTMAX 、TMIN の値から量
子化のためのしきい値を決定していた。
2. Description of the Related Art In an image data processing device for binarizing image data, a threshold is determined in image quantization, and a value equal to or less than the threshold is removed to perform binarization. A conventional method therefor is disclosed in, for example, JP-A-61-21.
As shown in No. 4867, the threshold value was calculated from the magnitude of the density frequency. For example, after obtaining the MAX and MIN values of the density (gradation) for each line and performing this processing for the entire document, the density with the largest number of MAX values is set as T MAX , and the MIN value The density with the highest count is T MIN . The threshold value for quantization was determined from the values of T MAX and T MIN .

【0003】図8,図9は従来例を示す図であり、例え
ば、図8(A)に示す原稿からは、各ラインの MAX値の
頻度グラフとして図8(B)に示すものが得られ、各ラ
インの MIN値の頻度グラフとして図8(C)に示すもの
が得られる。そして、TMAX、TMIN の値から量子化の
ためのしきい値を決定する。図9はその手順を示すフロ
ーチャートである。
FIG. 8 and FIG. 9 are diagrams showing a conventional example. For example, from the document shown in FIG. 8A, the frequency graph of the MAX value of each line is obtained as shown in FIG. 8B. , A frequency graph of the MIN value of each line is obtained as shown in FIG. 8 (C). Then, the threshold value for quantization is determined from the values of T MAX and T MIN . FIG. 9 is a flowchart showing the procedure.

【0004】[0004]

【発明が解決しようとする課題】ところが従来の方法
は、濃度の頻度の大きさから量子化するためのしきい値
およびバックグランドの除去レベルを決定していたた
め、原稿自体が濃いめのときや、濃度ピークが多いとき
に、原稿に合ったしきい値の算出が困難になり、不必要
なデータが除去されずに残ってしまうことがあった。例
えば図8,図9に示す例の場合、原稿の画像の実際のピ
ークはTMAX ′であるにもかからわず、原稿のバックグ
ランドや裏写りが混在してピークTMAX を生じさせ、こ
のTMAX に基づいてしきい値が求められてしまう。この
ため、しきい値が実際に必要な値よりも低濃度側にシフ
トしてしまい、不必要なデータ(バックグランドや裏写
り)が除去されずに残ってしまっていた。
However, in the conventional method, the threshold value for quantization and the background removal level are determined from the magnitude of the density frequency, so that when the original document is dark, When there are many density peaks, it becomes difficult to calculate a threshold value suitable for a document, and unnecessary data may remain without being removed. For example, in the case of the examples shown in FIGS. 8 and 9, the background of the document and the show-through are mixed to generate the peak T MAX even though the actual peak of the image of the document is T MAX ′. The threshold value is obtained based on this T MAX . For this reason, the threshold value shifts to a lower density side than the actually required value, and unnecessary data (background and show-through) remains without being removed.

【0005】このような現象は特に、新聞等のバックグ
ランドが濃いめでありしかも両面に印刷がされているよ
うな原稿を読み取った場合に多く発生し、バックグラン
ドと裏写りの文字と本来の文字とが混在して読み取られ
るために、ヒストグラムを形成したときに多くのピーク
が生じて適切なしきい値が求められずに、バックグラン
ドや裏写りの文字等の不必要なデータが除去されすに残
ってしまっていた。
Such a phenomenon often occurs especially when a document such as a newspaper, which has a dark background and is printed on both sides, is read, and the background, the show-through character and the original character are read. Since a mixture of and is read, many peaks are generated when a histogram is formed, an appropriate threshold value is not required, and unnecessary data such as background and show-through characters are removed. It was left.

【0006】この発明の目的は、例えば新聞等のバック
グランドが濃いめでありしかも両面に印刷がされている
ような原稿を読み取った場合であっても、バックグラン
ドや裏写り写りの文字等の不必要なデータを除去するこ
とのできる画像データ処理装置を提供することにある。
An object of the present invention is, for example, when a document such as a newspaper, which has a dark background and is printed on both sides, is read, the background and the characters on the show-through are not printed. An object of the present invention is to provide an image data processing device capable of removing necessary data.

【0007】[0007]

【課題を解決するための手段】請求項1に示す発明は、
画像読み取り部から入力した画像データをしきい値に基
づいてバックグランド除去等を行った後、プリント部等
へ出力する画像データ処理装置において、入力した画像
データの高濃度階調域の濃度平均値、低濃度階調域の濃
度平均値、および、全体の濃度平均値に基づいて画像濃
度の偏り状態を求める手段と、前記画像濃度の偏り状態
に基づいて、バックグランド除去等を行うためのしきい
値を設定する手段と、を備えたことを特徴とする。
The invention described in claim 1 is
In the image data processing device that outputs the image data input from the image reading unit to the print unit after performing background removal, etc. based on the threshold value, the average density value of the input image data in the high density gradation range. A means for obtaining a biased state of the image density based on the average density value of the low-density gradation range and the overall average density value, and a means for performing background removal or the like based on the biased state of the image density. And a means for setting a threshold value.

【0008】請求項2に示す発明は、請求項1に記載の
画像データ処理装置において、前記画像濃度の偏り状態
を求める手段によって求められた画像濃度の偏り状態
が、高濃度階調域および/または低濃度階調域への偏り
が大きいときに入力した画像データが線画原稿であると
判断して、前記画像濃度の偏り状態に基づいてしきい値
を設定し、それ以外のときには入力した画像データが線
画原稿以外の原稿であると判断して、予め決められたし
きい値を設定する手段を設けたことを特徴とする。
According to a second aspect of the present invention, in the image data processing apparatus according to the first aspect, the bias state of the image density obtained by the means for obtaining the bias state of the image density is high density gradation range and / or Or, when the deviation to the low density gradation area is large, it is judged that the input image data is a line drawing original document, and the threshold value is set based on the deviation state of the image density. It is characterized in that means for determining a data as an original other than the line drawing original and setting a predetermined threshold value is provided.

【0009】請求項3に示す発明は、請求項2に記載の
画像データ処理装置において、前記線画原稿または線画
原稿以外の原稿の判断に応じて、入力画像データから出
力画像データへの画像処理係数を切り換える手段を設け
たことを特徴とする。
According to a third aspect of the present invention, in the image data processing apparatus according to the second aspect, the image processing coefficient from the input image data to the output image data is determined according to the judgment of the line drawing original or an original other than the line drawing original. Is provided.

【0010】[0010]

【作用】請求項1に示す発明においては、各階調域の画
像データの濃度平均値に基づいて求められた画像濃度の
偏り状態に基づいてしきい値が求められる。通常、低濃
度階調域の濃度平均値が高い場合には、バックグランド
が濃い画像か中間調の多い画像であり、逆に低い場合に
はバックグランドが淡い画像か中間調の少ない画像であ
る。また、高濃度階調域の濃度平均値が高い場合には白
黒のはっきりした画像であり、逆に低い場合には白黒の
はっきりしない中間調的な画像である。これを画像全体
の濃度平均値と対応させると、低濃度階調域,高濃度階
調域が占める画像全体の割合が分かり、画像全体として
の濃度の偏り状態が分かる。従ってこれに基づいてしき
い値を設定すれば、バックグランドの濃い画像、白黒画
像、中間調画像等のそれぞれの画像に対応したしきい値
を得ることができる。
According to the first aspect of the present invention, the threshold value is obtained based on the biased state of the image density obtained based on the average density value of the image data in each gradation region. Usually, when the density average value in the low density gradation range is high, the image has a dark background or an image with many halftones, and when it is low, the image has a light background or an image with few halftones. . When the density average value in the high density gradation range is high, the image is a clear black and white image, and when the density average value is low, the image is a black and white halftone image that is not clear. If this is made to correspond to the density average value of the entire image, the proportion of the entire image occupied by the low-density gradation region and the high-density gradation region can be found, and the biased state of the density of the entire image can be found. Therefore, if the threshold value is set based on this, it is possible to obtain the threshold value corresponding to each image such as an image with a dark background, a black and white image, and a halftone image.

【0011】請求項2に示す発明においては、高濃度階
調および/または低濃度階調への偏りが大きいときに線
画原稿であると判断される。通常、線画原稿の場合の画
像濃度は、高濃度階調域側(黒側)、低濃度階調域側
(白側)にはっきりと分かれた明確な白黒原稿である
か、高濃度階調域側に偏っているほぼ真っ黒な原稿であ
るか、低濃度階調域側に偏っているほぼ真っ白な原稿で
あるか、のいずれかであり、中間濃度階調は少ない。こ
のため上記したように、高濃度階調および/または低濃
度階調への偏りが大きいときに線画原稿であると判断し
ても差し支えがない。このように線画原稿であると判断
した場合に、濃度の偏り状態に応じてバックグランド除
去等を行うためのしきい値を設定する。
According to the second aspect of the invention, it is determined that the original is a line drawing original when the deviation toward the high density gradation and / or the low density gradation is large. Usually, the image density of a line drawing original is a clear black and white original that is clearly divided into a high density gradation area side (black side) and a low density gradation area side (white side), or a high density gradation area. It is either a substantially black original that is biased to the side or a substantially white original that is biased to the low density gradation region side, and the intermediate density gradation is small. Therefore, as described above, there is no problem even if it is determined that the original is a line drawing original when the deviation toward the high density gradation and / or the low density gradation is large. In this way, when it is determined that the original is a line drawing original, a threshold value for background removal or the like is set according to the uneven density state.

【0012】一方、線画原稿以外の原稿の場合、例えば
写真や絵等の原稿の場合には、多くの中間調を有してお
り、画像の濃度が中間階調域に偏って不確定な状態とな
り、しきい値の設定が困難になる。この場合には、予め
決められたしきい値が設定されるため、不確定な濃度に
基づいてしきい値を設定してしまうことがない。
On the other hand, in the case of an original other than the line drawing original, for example, an original such as a photograph or a picture, it has many halftones, and the image density is uncertain due to being biased to the intermediate gradation range. Therefore, it becomes difficult to set the threshold value. In this case, since the predetermined threshold value is set, the threshold value will not be set based on the uncertain density.

【0013】請求項3に示す発明においては、線画原稿
であるか、線画原稿以外の原稿であるかによって画像処
理係数が切り換えられる。一般に、線画原稿の場合には
線画を強調するような画像処理を行うことが望ましく、
それ以外の原稿の場合に、入力した画像データを忠実に
再現することが望ましい。線画原稿か,それ以外の原稿
かの原稿の種類によって画像処理係数を切り換えること
により、上記した線画を強調する画像、または、入力画
像データの忠実再現が可能になる。
According to the third aspect of the invention, the image processing coefficient is switched depending on whether the original is a line drawing original or an original other than the line drawing original. Generally, in the case of a line drawing original, it is desirable to perform image processing that emphasizes the line drawing.
For other documents, it is desirable to faithfully reproduce the input image data. By switching the image processing coefficient depending on the type of document, that is, the line drawing document or the other document, it is possible to faithfully reproduce the image in which the line image is emphasized or the input image data.

【0014】[0014]

【実施例】図1はデジタル複写機の画像データ処理部の
構成を示す図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 is a diagram showing the configuration of an image data processing unit of a digital copying machine.

【0015】操作パネル部1は複写機本体の上面に備え
られ、希望する画像濃度の設定が入力可能である。
The operation panel unit 1 is provided on the upper surface of the main body of the copying machine, and can input desired image density settings.

【0016】複写機本体内の画像データ処理部は、画像
データ入力部3、画像処理部4、画像データ出力部5、
RAM等から構成されるメモリ6および画像処理の中央
処理演算装置(画像処理CPU)7を備えている。
The image data processing unit in the main body of the copying machine includes an image data input unit 3, an image processing unit 4, an image data output unit 5,
A memory 6 including a RAM and the like and a central processing unit (image processing CPU) 7 for image processing are provided.

【0017】画像データ入力部3はCCD部3a、平均
値処理部3b、および誤差拡散処理部3cを含んでい
る。画像データ入力部3は複写機本体内のCCDから読
み込まれた原稿の画像データを8ビット(256階調)
に変換して、8ビットのデジタル量としてヒストグラム
をとり、濃度の偏りを求める。そして、誤差拡散法によ
り画像データを処理して2ビットに変換し、メモリ6に
一旦記憶する。
The image data input section 3 includes a CCD section 3a, an average value processing section 3b, and an error diffusion processing section 3c. The image data input unit 3 is an 8-bit (256 gradation) image data of an original read from the CCD in the main body of the copying machine.
Then, the histogram is obtained as an 8-bit digital amount, and the density bias is obtained. Then, the image data is processed by the error diffusion method, converted into 2 bits, and temporarily stored in the memory 6.

【0018】すなわち、CCD部3aは、CCDから入
力した各画素濃度に応じたアナログ電気信号をA/D変
換した後、MTF補正、白黒補正またはガンマ補正を行
い、256階調(8ビット)のデジタル信号として平均
値処理部3bへ出力する。
That is, the CCD unit 3a performs MTF correction, black-and-white correction, or gamma correction after A / D conversion of the analog electric signal corresponding to each pixel density input from the CCD, and 256 gradations (8 bits). It is output to the average value processing unit 3b as a digital signal.

【0019】平均値処理部3bは、低濃度階調域、高濃
度階調域、および全体の濃度平均値を求める部分であ
る。平均値処理部3bの処理の詳細は後に説明するが、
CCD部3a部から出力されたデジタル信号を256階
調の画素濃度別に加算するとともに、濃度段階ごとに濃
度の平均値を求め、画像データの濃度の偏り状態を求め
る。そして必要に応じて、得られたデータを画像処理C
PU74、誤差拡散処理部3cへ送る。
The average value processing section 3b is a section for obtaining an average density value of the low density gradation area, the high density gradation area and the entire density. The details of the processing of the average value processing unit 3b will be described later,
The digital signal output from the CCD unit 3a is added for each pixel density of 256 gradations, and the average value of the densities is calculated for each density step to find the biased density of the image data. Then, if necessary, the obtained data is subjected to image processing C
It is sent to the PU 74 and the error diffusion processing unit 3c.

【0020】なおこの実施例では平均値処理部3bで平
均値を求めているが、この段階(平均値処理部の段階)
では各濃度のカウントのみを行って、画像データ全体が
入力された時点で画像処理CPU7によって平均値を計
算するようにしてもよい。
In this embodiment, the average value processing unit 3b calculates the average value, but at this stage (stage of the average value processing unit)
Then, only each density may be counted, and the average value may be calculated by the image processing CPU 7 when the entire image data is input.

【0021】誤差拡散処理部3cは、疑似中心処理部の
一種である誤差拡散法、すなわち4値化の誤差を隣接画
素の4値化判定に反映させる方法により、CCD部3a
から出力された8ビット/画素のデジタル信号を2ビッ
ト(4値)に変換し、原稿における局所領域濃度を忠実
に再現するための再配分演算を行う。
The error diffusion processing unit 3c uses the error diffusion method, which is a kind of the pseudo center processing unit, that is, the method of reflecting the quaternization error in the quaternization judgment of the adjacent pixels, and the CCD unit 3a.
The digital signal of 8 bits / pixel output from is converted into 2 bits (4 values), and the redistribution operation for faithfully reproducing the local area density in the original is performed.

【0022】画像処理部4は多値化処理部4aおよび4
b、合成処理部4c、濃度変換処理部4d、変倍処理部
4e、画像プロセス部4f、誤差拡散処理部4g、なら
びに圧縮処理部4hを含んでいる。
The image processing unit 4 includes multi-valued processing units 4a and 4a.
b, a combination processing unit 4c, a density conversion processing unit 4d, a scaling processing unit 4e, an image processing unit 4f, an error diffusion processing unit 4g, and a compression processing unit 4h.

【0023】画像処理部4は、画像データをオペレータ
が希望する画像データ(操作パネル1から入力された状
態の画像データ)に最終的に変換する処理部であり、メ
モリ6に変換した出力画像データとして記憶されるまで
この処理部にて処理するように構成されている。ただ
し、画像処理部4に含まれている上述の各処理部は必要
に応じて機能するものであり、機能しない場合もある。
例えば、多値化処理部4aおよび4bでは、誤差拡散処
理部3cで4値化したデータを再度256階調に変換す
る。合成処理部4cでは、画素ごとの論理演算、すなわ
ち論理和、論理積または排他的論理和の演算を選択的に
行う。この演算の対象となるデータは、メモリ6に記憶
されている画素データおよびパターンジェネレータ(P
G)からのビットデータである。
The image processing unit 4 is a processing unit for finally converting the image data into image data desired by the operator (image data in a state input from the operation panel 1), and output image data converted into the memory 6 It is configured to be processed by this processing unit until it is stored as. However, the above-mentioned processing units included in the image processing unit 4 function as necessary and may not function.
For example, in the multi-value quantization processing units 4a and 4b, the data quaternized by the error diffusion processing unit 3c is converted into 256 gradations again. The combination processing unit 4c selectively performs a logical operation for each pixel, that is, a logical sum, a logical product, or an exclusive logical sum. The data that is the object of this calculation is the pixel data and pattern generator (P
It is the bit data from G).

【0024】濃度変換処理部4dは、256階調のデジ
タル信号に対して、所定の階調変換テーブルに基づいて
入力濃度に対する出力濃度の関係を任意に設定する。前
記所定の階調変換テーブルは後述するように、平均値処
理部3Cで求めたしきい値、および変換係数に基づいて
作成される。また、必要に応じて、操作パネル部1から
入力される濃度設定の値が加味されて作成される。
The density conversion processing unit 4d arbitrarily sets the relationship between the input density and the output density for the 256 gradation digital signal based on a predetermined gradation conversion table. As described later, the predetermined gradation conversion table is created based on the threshold value and the conversion coefficient obtained by the average value processing unit 3C. In addition, the value of the density setting input from the operation panel unit 1 is taken into consideration when necessary.

【0025】変倍処理部4eは、指示された変倍率に応
じて、入力される既知データにより補間処理を行うこと
によって、変倍後の対象画素に対する画素データ(濃度
値)を求める。副走査を変倍した後に主走査を変倍処理
する。画像プロセス部4fは、入力された画素データに
対して様々な画像処理を行い、また、特徴抽出等データ
列に対する情報収集を行う。誤差拡散処理部4gは、画
像データ入力部3の誤差拡散処理部3cと同様な処理を
行う。圧縮処理部4hは、ランレングスという符号化に
よりデータを圧縮するものであり、また、画像データの
圧縮に関しては、最終的な出力画像データが完成した時
点で最後の処理ループにおいて圧縮が機能する。
The scaling processing unit 4e obtains pixel data (density value) for the scaled target pixel by performing interpolation processing based on the input known data according to the designated scaling ratio. After the sub-scan is scaled, the main-scan is scaled. The image processing unit 4f performs various image processes on the input pixel data, and also collects information on a data string such as feature extraction. The error diffusion processing unit 4g performs the same processing as the error diffusion processing unit 3c of the image data input unit 3. The compression processing unit 4h compresses the data by encoding the run length, and regarding the compression of the image data, the compression functions in the final processing loop when the final output image data is completed.

【0026】画像データ出力部5は復元部5a、多値化
処理部5b、誤差拡散処理部5cおよびレーザ出力部5
dを含んでいる。
The image data output section 5 includes a restoration section 5a, a multilevel halftoning processing section 5b, an error diffusion processing section 5c and a laser output section 5.
d is included.

【0027】画像データ出力部5は、圧縮状態でメモリ
73に記憶されている画像データを復元し、もとの25
6階調に再度変換し、滑らかな中間調表現となる4値の
データの誤差拡散を行い、レーザ出力部5dへデータを
転送するように構成されている。すなわち、復元部5a
では、圧縮処理部4hによって圧縮された画像データが
復元される。多値化処理部5bでは、画像処理部4の多
値化処理部4aおよび4bと同様な処理が行われる。誤
差拡散処理部5cでは、画像データ入力部3の誤差拡散
処理部3cと同様な処理が行われる。レーザ出力部5d
は、図外のプリンタ部制御用CPUからの制御信号に基
づき、デジタル画素データをレーザの出力信号に変換す
る。
The image data output unit 5 restores the image data stored in the memory 73 in a compressed state to the original 25
It is configured to convert the data into 6 gradations again, perform error diffusion of 4-valued data that provides a smooth halftone expression, and transfer the data to the laser output unit 5d. That is, the restoration unit 5a
Then, the image data compressed by the compression processing unit 4h is restored. The multilevel halftoning processing unit 5b performs the same processing as the multilevel halftoning processing units 4a and 4b of the image processing unit 4. The error diffusion processing unit 5c performs the same processing as the error diffusion processing unit 3c of the image data input unit 3. Laser output unit 5d
Converts the digital pixel data into a laser output signal based on a control signal from the printer control CPU (not shown).

【0028】なお、画像データ入力部3および画像デー
タ出力部5において扱われるデータは、画像データの劣
化を考慮して4値のデータの形で処理され、メモリ6に
記憶されているが、メモリ6の容量の削減のため2値デ
ータの形で処理することも可能である。
The data handled by the image data input unit 3 and the image data output unit 5 is processed in the form of four-valued data in consideration of the deterioration of the image data and stored in the memory 6. It is also possible to process in the form of binary data in order to reduce the capacity of 6.

【0029】次に平均値処理部3bの処理を詳細に説明
する。
Next, the processing of the average value processing unit 3b will be described in detail.

【0030】CCDで読み取った画像データはA/D変
換されてデジタルデータとして取り込まれる。この実施
例では上記したように、画像データは256階調(0〜
255:0H〜FFH)で表現される。取り込んだ画像
データは各画素ごとに256階調で示されるから、各画
素の濃度と頻度との関係をグラフにすると、例えば図図
2に示す原稿の場合には図3に示すようなヒストグラム
が形成される。この画像データの濃度の偏りは次のよう
にして求める。
The image data read by the CCD is A / D converted and taken in as digital data. In this embodiment, as described above, the image data has 256 gradations (0 to
255: 0H to FFH). Since the captured image data is represented by 256 gradations for each pixel, if the relationship between the density of each pixel and the frequency is plotted, for example, in the case of the document shown in FIG. 2, a histogram as shown in FIG. 3 is obtained. It is formed. The density deviation of the image data is obtained as follows.

【0031】まず低濃度階調域(0〜127:0H〜7
FH)の濃度平均値A、高濃度階調域(128〜25
5:80H〜FFH)の濃度平均値C、および全体(0
〜255:0H〜FFH)の濃度平均値Bを求める。
First, a low density gradation range (0 to 127: 0H to 7)
FH) density average value A, high density gradation range (128 to 25
5: 80H to FFH), the density average value C, and the whole (0
.About.255: 0H to FFH).

【0032】次に、A,B,Cの値に基づいて、次式 (C−B)/(B−A)≧T・・・ (Tは固定) によって線画原稿か、線画原稿以外の原稿かを求める。
線画原稿の場合、低濃度階調域(0H〜7FH)の平均
濃度Aは画像の汚れの濃度を示すため低濃度値となり、
高濃度階調域(80H〜FFH)の平均濃度Cは線画の
濃度を示すため高濃度値となる。そのため上記式が成
立する。なおTの値としては、例えば『3』程度を設定
することができる。一方、写真や絵等の中間調を含む原
稿の場合には階調全体で画像が表現されるため、A,
B,Cの値が中間階調付近集まり、式が成立しなくな
る。したがって、上記式により線画原稿か、線画原稿
以外の原稿かの判別が行える。
Next, based on the values of A, B, and C, a line drawing original or an original other than the line drawing original is obtained by the following expression (CB) / (BA) ≧ T (T is fixed). Ask.
In the case of a line drawing original, the average density A in the low density gradation range (0H to 7FH) is a low density value because it indicates the density of stains on the image.
The average density C in the high density gradation range (80H to FFH) indicates the density of the line drawing, and is a high density value. Therefore, the above formula is established. The value of T can be set to, for example, "3". On the other hand, in the case of a manuscript including a halftone such as a photograph or a picture, the image is expressed in the whole gradation, so that A,
The values of B and C are gathered around the middle gradation, and the formula is not established. Therefore, it is possible to determine whether the original is a line drawing original or an original other than the line drawing original by the above formula.

【0033】そして上記式を満たしていれば(線画原
稿の場合には)、次式 TH=(C+B)/2・・・ によってしきい値THを求める。
If the above expression is satisfied (in the case of a line drawing original), the threshold value TH is calculated by the following expression TH = (C + B) / 2.

【0034】例えば、図2に示すようなバックグランド
が濃いめの原稿を読み取った場合、画像データのヒスト
グラムは図3に示すように、実際の画像のピークの他に
バックグランドによるピークが生じる。このデータにつ
いて上記したように、A,B,Cの値を求め、これを
式に当てはめ、式を満たしていれば式によってしき
い値THを算出する。通常、図2,3に示すような文字
等からなる線画原稿の場合には、白黒がはっきりしてい
るために上記式を満たし、しきい値THが式によっ
て求められ、例えば、A,B,Cの値およびしきい値T
Hは図3に示すようになり、しきい値THより小さい部
分を除去することによって、濃いバックグランドのピー
クや裏写り等によって生じた汚れを除去することができ
る。
For example, when a document with a dark background as shown in FIG. 2 is read, the histogram of the image data has a peak due to the background in addition to the peak of the actual image, as shown in FIG. As described above with respect to this data, the values of A, B, and C are obtained, and these values are applied to the formula. If the formula is satisfied, the threshold value TH is calculated by the formula. Usually, in the case of a line drawing original consisting of characters as shown in FIGS. 2 and 3, since the black and white are clear, the above expression is satisfied, and the threshold value TH is obtained by the expression, for example, A, B, Value of C and threshold T
H becomes as shown in FIG. 3, and by removing a portion smaller than the threshold value TH, it is possible to remove stains caused by a deep background peak, show-through, and the like.

【0035】なお平均値A,B,Cの算出後、画像デー
タは一時的にメモリ6内のページメモリに記憶される。
After the calculation of the average values A, B and C, the image data is temporarily stored in the page memory in the memory 6.

【0036】一方、中間階調の濃度の画素を多く含むよ
うな原稿、例えば写真や絵等の原稿の場合には式を満
たさなくなる。この場合には、しきい値として予め決め
られている固定のしきい値Sが設定される。なお固定し
きい値Sは、中間調を含む原稿の場合に、中間調を除去
してしまうことなく、汚れやバックグランド等を除去す
るために設定されたしきい値である。
On the other hand, in the case of a manuscript containing a large number of pixels with the density of the intermediate gradation, for example, a manuscript such as a photograph or a picture, the formula cannot be satisfied. In this case, a fixed fixed threshold value S is set as the threshold value. It should be noted that the fixed threshold value S is a threshold value set for removing stains and background without removing halftones in the case of a document including halftones.

【0037】図4(A)〜(C)は原稿の状態とA,
B,Cの値との関係例を示す図である。
FIGS. 4A to 4C show the state of the document and A,
It is a figure which shows the example of a relationship with the value of B and C.

【0038】図4(A)に示すようなバックグランドが
淡く,しかも白黒のはっきりした文字等の原稿の場合に
は、中間階調の画素が少なくなるため、A,Bの値は上
記図3の例よりもさらに0H側へ近づく。この場合に
は、THの値が図3の例よりも0H側へ近くなる。ま
た、図4(B)に示すようにバックグランドが濃いめで
裏写り等の汚れがある場合であっても、原稿自体が文字
原稿であるため高濃度階調域(80H〜FFH)の濃度
平均値Cが大きく、式が設立する。したがって式に
よりしきい値THが求められる。この場合には、図4
(A)の場合に比べて、しきい値THが大きな値にな
り、バックグランドや画像汚れがより多く除去される。
また、図4(C)のように、中間調を多く含む写真や絵
等の原稿の場合には、画素の濃度が中間階調域に集まる
ため式が成立しなくなり、固定しきい値Sが設定され
る。この場合には、汚れやバックグランドは除去される
が、中間調の絵柄が損なわれてしまうことはない。
In the case of a manuscript with a light background and a clear black and white character as shown in FIG. 4A, the number of pixels in the intermediate gradation is small, so the values of A and B are the same as those in FIG. It approaches the 0H side further than the example of. In this case, the TH value is closer to the 0H side than the example of FIG. Further, as shown in FIG. 4 (B), even when the background is dark and there is stain such as show-through, since the document itself is a character document, the density average of the high density gradation range (80H to FFH) is high. The value C is large and the formula is established. Therefore, the threshold value TH is obtained by the equation. In this case,
As compared with the case of (A), the threshold value TH becomes a large value, and more background and image stains are removed.
Further, as shown in FIG. 4C, in the case of a document such as a photograph or a picture containing a lot of halftones, the formula is not established because the pixel densities are concentrated in the middle gradation range, and the fixed threshold S is Is set. In this case, the dirt and the background are removed, but the halftone pattern is not damaged.

【0039】図5はしきい値の設定手順を示すフローチ
ャートである。
FIG. 5 is a flow chart showing the procedure for setting the threshold value.

【0040】まず、A,B,Cの値を求め、式に挿入
して文字原稿か、それ以外の原稿かの判別を行う(n1
→n2→n3)。そして、文字原稿の場合には式に基
づいてしきい値THを求め、しきい値TH以下のデータ
(バックグランド)を除去する(n3→n4→n5)。
一方、式が成立しない場合には文字原稿以外の原稿で
あると判断して、予め決められているしきい値Sを設定
し、しきい値以下の値を除去する。
First, the values of A, B and C are obtained and inserted into the formula to determine whether the original is a character original or other original (n1).
→ n2 → n3). Then, in the case of a character original, the threshold value TH is obtained based on the formula, and the data (background) equal to or lower than the threshold value TH is removed (n3 → n4 → n5).
On the other hand, when the expression is not satisfied, it is determined that the original is a document other than the character original, a predetermined threshold value S is set, and a value equal to or less than the threshold value is removed.

【0041】ところで、読み取った画像データをプリン
トデータ等として出力する場合、文字を中心とする原稿
の場合には、文字を強調してコントラストのはっきりし
たものにすることが望ましく、写真や絵等のように中間
調を含む原稿の場合には中間調を損なわないようにする
ことが望ましい。そのためこの実施例では、式が成立
するときにその原稿は文字原稿であるとして、図6に示
すように、しきい値THを濃度0(00H)に設定し、
勾配を大きく設定した出力を行う。これによって出力画
像のコントラストがはっきりする。また、中間調を含む
原稿の場合には図7に示すように入力データの濃度と出
力データの濃度との比率を1対1にしたまましきい値S
以下の画像データのみを除去する。これによって中間調
を損なうことなく、バックグランドや汚れを除去でき
る。
By the way, when the read image data is output as print data or the like, in the case of a manuscript centered on characters, it is desirable to emphasize the characters so that the contrast becomes clear. As described above, in the case of a document including halftone, it is desirable not to lose halftone. Therefore, in this embodiment, assuming that the original is a character original when the expression is satisfied, the threshold TH is set to the density 0 (00H) as shown in FIG.
Output with a large gradient setting. This makes the contrast of the output image clear. Further, in the case of an original including halftone, as shown in FIG. 7, the threshold value S is maintained with the ratio of the density of the input data and the density of the output data being 1: 1.
Only the following image data is removed. This makes it possible to remove background and dirt without impairing the halftone.

【0042】なおこの実施例では画像濃度を256階調
で示しているが、濃度を示す階調数はこれに限られるも
のではない。また、濃度の偏り状態を表すために、低濃
度階調域,高濃度階調域の2段階に分けてそれぞれの平
均濃度値を求めているが、分割する階調段階はこの実施
例のように2段階に限られるものではなく、中間階調域
等を設けて3段階,4段階・・等に分割してもよい。
In this embodiment, the image density is shown with 256 gradations, but the number of gradations showing the density is not limited to this. Further, in order to represent the biased state of the density, the average density value of each of the low density gradation area and the high density gradation area is calculated, and the gradation level to be divided is as in this embodiment. The number of steps is not limited to two, and an intermediate gradation range or the like may be provided to divide into three steps, four steps, and so on.

【0043】[0043]

【発明の効果】請求項1に示す発明によれば、画像濃度
の偏りに応じてしきい値の設定を行うことができる。
According to the first aspect of the present invention, the threshold value can be set according to the deviation of the image density.

【0044】請求項2に示す発明によれば、線画原稿の
場合には画像濃度の偏り(黒側への偏り,白側への偏
り)に応じてバックグランド除去等を行うためのしきい
値が設定されるため、例えばバックグランドが濃い画像
の場合には、低濃度側がやや高めの濃度となるのでこの
場合にはバックグランドを除去するようにしきい値を高
く設定し、バックグランドが淡い画像の場合には低濃度
側が非常に低い濃度となるのでこの場合には、しきい値
を低く設定することができる。また、線画以外の原稿
(写真や絵等)の場合には、予め決められたしきい値が
設定されるので、不確定な濃度に基づいてしきい値を設
定してしまうことがない。
According to the second aspect of the present invention, in the case of a line drawing original, a threshold value for performing background removal or the like according to the image density bias (black side bias, white side bias). For example, in the case of an image with a dark background, the low density side has a slightly higher density, so in this case the threshold is set high to remove the background, and an image with a light background is set. In this case, the low density side has a very low density, and in this case, the threshold value can be set low. Further, in the case of documents other than line drawings (photographs, pictures, etc.), a predetermined threshold value is set, so that the threshold value will not be set based on the uncertain density.

【0045】請求項3に示す発明においては、線画原稿
であるか、線画原稿以外の原稿であるかによって画像処
理係数が切り換えられるため、例えば、線画原稿の場合
には線画を強調するような画像処理を行うことができ、
それ以外の原稿の場合には、入力した画像データを忠実
に再現することができるようになる。
According to the third aspect of the present invention, the image processing coefficient is switched depending on whether it is a line drawing original or an original other than the line drawing original. Therefore, for example, in the case of a line drawing original, an image in which the line drawing is emphasized is selected. Can do the processing,
For other documents, the input image data can be faithfully reproduced.

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

【図1】デジタル複写機に備えられる画像データ処理装
置のブロック図である。
FIG. 1 is a block diagram of an image data processing device provided in a digital copying machine.

【図2】この発明の実施例で処理される原稿の状態例を
示す図である。
FIG. 2 is a diagram showing an example of a state of a document processed in the embodiment of the present invention.

【図3】同原稿の濃度分布の状態例を示す図である。FIG. 3 is a diagram showing an example of a state of density distribution of the original document.

【図4】種々の原稿の濃度分布の状態例を示す図であ
る。
FIG. 4 is a diagram showing a state example of density distributions of various originals.

【図5】しきい値設定手順例を示すフローチャートであ
る。
FIG. 5 is a flowchart showing an example of a threshold setting procedure.

【図6】線画原稿の出力データ変換状態を示す図であ
る。
FIG. 6 is a diagram showing an output data conversion state of a line drawing original.

【図7】線画原稿以外の原稿の出力データ変換状態を示
す図である。
FIG. 7 is a diagram showing an output data conversion state of a document other than a line drawing document.

【図8】従来の画像処理例を説明する図であり、(A)
は原稿例、(B),(C)は同原稿の画素濃度の頻度状
態を示す図である。
FIG. 8 is a diagram illustrating a conventional image processing example, (A)
6A and 6B are examples of originals, and FIGS. 9B and 9C are diagrams showing frequency states of pixel densities of the originals.

【図9】従来のしきい値を求める手順を示すフローチャ
ートである。
FIG. 9 is a flowchart showing a conventional procedure for obtaining a threshold value.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】画像読み取り部から入力した画像データを
しきい値に基づいてバックグランド除去等を行った後、
プリント部等へ出力する画像データ処理装置において、 入力した画像データの高濃度階調域の濃度平均値、低濃
度階調域の濃度平均値、および、全体の濃度平均値に基
づいて画像濃度の偏り状態を求める手段と、 前記画像濃度の偏り状態に基づいて、バックグランド除
去等を行うためのしきい値を設定する手段と、 を備えたことを特徴とする画像データ処理装置。
1. After background removal of image data input from an image reading unit based on a threshold value,
In the image data processing device that outputs to the print unit, the image density of the input image data is calculated based on the density average value in the high density gradation area, the density average value in the low density gradation area, and the overall density average value. An image data processing apparatus comprising: a means for obtaining a biased state; and a means for setting a threshold value for performing background removal or the like based on the biased state of the image density.
【請求項2】請求項1に記載の画像データ処理装置にお
いて、 前記画像濃度の偏り状態を求める手段によって求められ
た画像濃度の偏り状態が、高濃度階調域および/または
低濃度階調域への偏りが大きいときに入力した画像デー
タが線画原稿であると判断して、前記画像濃度の偏り状
態に基づいてしきい値を設定し、それ以外のときには入
力した画像データが線画原稿以外の原稿であると判断し
て、予め決められたしきい値を設定する手段を設けたこ
とを特徴とする画像データ処理装置。
2. The image data processing device according to claim 1, wherein the biased state of the image density obtained by the means for obtaining the biased state of the image density is a high density gradation region and / or a low density gradation region. When the deviation is large, it is determined that the input image data is a line drawing original, and a threshold value is set based on the deviation state of the image density. In other cases, the input image data is not a line drawing original. An image data processing apparatus, characterized in that it is provided with means for setting a predetermined threshold value when judging that it is an original.
【請求項3】請求項2に記載の画像データ処理装置にお
いて、 前記線画原稿または線画原稿以外の原稿の判断に応じ
て、入力画像データから出力画像データへの画像処理係
数を切り換える手段を設けたことを特徴とする画像デー
タ処理装置。
3. The image data processing apparatus according to claim 2, further comprising means for switching the image processing coefficient from the input image data to the output image data in accordance with the determination of the line drawing original or an original other than the line drawing original. An image data processing device characterized by the above.
JP05167048A 1993-07-06 1993-07-06 Image data processing device Expired - Fee Related JP3117331B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05167048A JP3117331B2 (en) 1993-07-06 1993-07-06 Image data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05167048A JP3117331B2 (en) 1993-07-06 1993-07-06 Image data processing device

Publications (2)

Publication Number Publication Date
JPH0730757A true JPH0730757A (en) 1995-01-31
JP3117331B2 JP3117331B2 (en) 2000-12-11

Family

ID=15842432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05167048A Expired - Fee Related JP3117331B2 (en) 1993-07-06 1993-07-06 Image data processing device

Country Status (1)

Country Link
JP (1) JP3117331B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004080057A1 (en) * 1997-12-19 2004-09-16 Hiroki Kanno Image processor
US7247363B2 (en) 2003-06-30 2007-07-24 International Business Machines Corporation Supported greensheet structure and method in MLC processing
JP2007318228A (en) * 2006-05-23 2007-12-06 Nec Access Technica Ltd Image reader, image reading control program, and image reading method
CN112447152A (en) * 2019-09-04 2021-03-05 财团法人工业技术研究院 Information display method and information display system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004080057A1 (en) * 1997-12-19 2004-09-16 Hiroki Kanno Image processor
US7247363B2 (en) 2003-06-30 2007-07-24 International Business Machines Corporation Supported greensheet structure and method in MLC processing
JP2007318228A (en) * 2006-05-23 2007-12-06 Nec Access Technica Ltd Image reader, image reading control program, and image reading method
CN112447152A (en) * 2019-09-04 2021-03-05 财团法人工业技术研究院 Information display method and information display system

Also Published As

Publication number Publication date
JP3117331B2 (en) 2000-12-11

Similar Documents

Publication Publication Date Title
JP4568748B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JPH03248674A (en) Half-tone picture processor
JP3929030B2 (en) Image processing device
JP2005101765A (en) Method and apparatus for processing image, and image forming apparatus
JP3117331B2 (en) Image data processing device
JP2756371B2 (en) Image processing device
JP2010278933A (en) Image processing device, image forming device, image processing method, program and recording medium
JP4148443B2 (en) Image forming apparatus
JP3942080B2 (en) Image forming apparatus
JP2008306400A (en) Image processing method, image processing device, image forming apparatus, computer program, and record medium
JP3361355B2 (en) Image processing device
JP3468966B2 (en) Image processing device
JP3093235B2 (en) Image processing method and apparatus
JP4027300B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2851662B2 (en) Image processing device
JP3780664B2 (en) Image processing apparatus and image processing method
JP2702133B2 (en) Image processing method
JPH11355575A (en) Image processor
JP2003219178A (en) Image processing method, device thereof and image forming device
JPH05176168A (en) Adaptive halftone processing system
JP2836992B2 (en) Image scaling processor
JP2004242102A (en) Image processing apparatus
JP3146516B2 (en) Image processing device
JPH01137378A (en) Picture processing system
JP3136650B2 (en) Image processing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071006

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081006

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081006

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091006

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091006

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101006

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees