JPH0795400A - Picture processing unit - Google Patents

Picture processing unit

Info

Publication number
JPH0795400A
JPH0795400A JP5234981A JP23498193A JPH0795400A JP H0795400 A JPH0795400 A JP H0795400A JP 5234981 A JP5234981 A JP 5234981A JP 23498193 A JP23498193 A JP 23498193A JP H0795400 A JPH0795400 A JP H0795400A
Authority
JP
Japan
Prior art keywords
value
area
calculated
threshold
threshold value
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
JP5234981A
Other languages
Japanese (ja)
Other versions
JP3225138B2 (en
Inventor
Naomi Nakane
奈穂美 中根
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP23498193A priority Critical patent/JP3225138B2/en
Publication of JPH0795400A publication Critical patent/JPH0795400A/en
Application granted granted Critical
Publication of JP3225138B2 publication Critical patent/JP3225138B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a picture in which a mis-discriminated area is not remarkable even when a character and a photograph are discriminated in error in an intermediate area between the character and the photograph in the case of applying image area separation to a picture in mixture of the character and the photograph so as to attain processing suitable for each area. CONSTITUTION:a character/photograph/intermediate area discrimination circuit 3 discriminates whether picture information of a local area indicates a property specific to a character part, or indicates a characteristic as a photograph part or indicates a property as an intermediate area, identifies and discriminates the type of the picture, a threshold level selection circuit 7 is selected according to the identification discrimination result, a threshold level given from a character area threshold level calculation circuit 4, or a threshold level given from a photograph area threshold level calculation circuit (memory) 6, or a threshold level given from an intermediate area threshold level calculation circuit 5 is selectively extracted as a threshold level used to apply N-value processing to the picture information and a comparator circuit 9 implements the N-value processing based on the extracted threshold level.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字画像と写真画像が
混在した文書画像を対象として、文字部の解像性と写真
部の階調性を同時に満足した多値化処理を行なう画像処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document image in which a character image and a photographic image are mixed, and an image processing for performing a multi-valued process which simultaneously satisfies the resolution of the character portion and the gradation of the photograph portion. Regarding the device.

【0002】[0002]

【従来の技術】文字画像と写真画像が混在した1枚の画
像を、文字部の解像性と写真部の階調性を同時に満足す
る方式として、処理対象画像の局所領域内での画像濃度
の最大濃度差(△Dmax )を求め、その値と判定閾値
(Th)とを比較することにより、文字領域と写真領域と
に分離する方式が提案されている。
2. Description of the Related Art As a method of simultaneously satisfying the resolution of a character portion and the gradation of a photograph portion, a single image in which a character image and a photographic image are mixed is used as an image density in a local area of an image to be processed. A method has been proposed in which the maximum density difference (ΔDmax) is calculated and the value is compared with the determination threshold value (Th) to separate the character area from the photograph area.

【0003】例えば、特願昭58−3374号公報に
は、画面を複数画素によるブロックに分割し、各ブロッ
ク内の最も濃度レベルの高い画素と、最も濃度レベルの
低い画素との間の濃度レベルの差が一定値より小さい場
合は、濃淡画像領域と判定し、中間調再現に重点をおい
た2値化処理を行い、一定値より大きい場合は、2値画
像領域と判定して分解能に重点をおいた2値化を行う方
式が開示されている。
For example, in Japanese Patent Application No. 58-3374, a screen is divided into blocks each having a plurality of pixels, and a density level between a pixel having the highest density level and a pixel having the lowest density level in each block. If the difference is smaller than a fixed value, it is determined to be a grayscale image area, and binarization processing with emphasis on halftone reproduction is performed. If it is larger than a fixed value, it is determined to be a binary image area and emphasis is placed on resolution. A method of performing binarization with the above is disclosed.

【0004】すなわち、このような方式では、このよう
にして分離した文字や線図のコントラストの高い画像部
分については動的閾値処理を用いてN値化処理(N≧
2)し、写真等の階調を有する画像部分については誤差
拡散法や組織的ディザ法等の疑似階調の手法を用いてN
値化(N≧2)するため、文字画像の解像性と写真画像
の階調性を同時に満たすことができる。
That is, in such a system, the image portion having high contrast of the character or the diagram separated in this way is subjected to the N-value conversion processing (N ≧) by using the dynamic threshold processing.
2) Then, for an image portion having gradation such as a photograph, N is obtained by using a pseudo gradation method such as an error diffusion method or a systematic dither method.
Since the value is set (N ≧ 2), the resolution of a character image and the gradation of a photographic image can be simultaneously satisfied.

【0005】例えば、写真画像は一般に、図12に示す
ような濃度プロフィールを持ち、局所領域(3×3)画
素内での最大濃度差が小さいため、写真と判定されて階
調性を重視した処理が施される。一方文字画像は図13
にその濃度プロフィールを示すように、局所領域(3×
3)画素内の最大濃度差が大きいため文字と判定されて
コントラストを強調するような処理が施される。
For example, a photographic image generally has a density profile as shown in FIG. 12, and since the maximum density difference within a local area (3 × 3) pixel is small, it is determined that the image is a photographic image and gradation is emphasized. Processing is performed. On the other hand, the character image is shown in FIG.
As shown in the concentration profile in Fig.
3) Since the maximum density difference within a pixel is large, it is determined that the character is a character and a process for emphasizing the contrast is performed.

【0006】このような特徴を利用して、局所領域内で
の最大濃度差(△Dmax )が判定閾値Thよりも大きい時
は文字領域、小さいときは写真領域と判定することがで
きる。
By utilizing such characteristics, it is possible to determine that the maximum density difference (ΔDmax) in the local area is a character area when the difference is larger than the determination threshold Th, and the photographic area when the difference is small.

【0007】ところが、このような方法を用いて文字領
域と写真領域を分離した場合、本来写真画像でも背景領
域から対象物に変わる部分等のようにエッジを有する部
分があるため、このような領域を文字と誤って判定して
しまったり、逆に文字画像でもコントラストの低い画像
等があるため、このような領域を写真と判定してしまう
ことが考えられる。このように、画像によっては文字と
写真両方の特徴を持つ中間領域が存在するため、このよ
うな領域を従来の方法で判定すると文字か写真かのいず
れかに誤判定されてしまい非常に目障りな画像となって
しまう。
However, when the character area and the photographic area are separated by using such a method, there is an edge portion such as a portion where the background area is changed to the object even in a photographic image, and thus such an area is formed. It is conceivable that the area may be mistakenly determined to be a character, or conversely, there is an image with a low contrast even in a character image, and such an area may be determined to be a photograph. In this way, since there is an intermediate area that has both character and photo characteristics depending on the image, if such an area is judged by the conventional method, it is misjudged as either a character or a photograph, which is very annoying. It becomes an image.

【0008】例えば、図14の(a)に示すような写真
画像の背景部から対象物に変化する領域の点線で示す濃
度プロフィールをとると図14の(b)のようになり、
最大濃度差が大きくなる。その結果この領域すなわち対
象物の輪郭だけを文字領域と誤判定するため、コントラ
ストが強調されて非常に目障りな画像になってしまう。
For example, when the density profile shown by the dotted line of the area where the background portion of the photographic image changes to the object as shown in FIG. 14A, it becomes as shown in FIG.
The maximum density difference increases. As a result, this area, that is, only the contour of the object is erroneously determined as a character area, so that the contrast is emphasized and the image becomes very unpleasant.

【0009】また、図15の(a)に示すような鉛筆書
きなどの低コントラスト画像の場合、点線で示す濃度プ
ロフィールは、図15の(b)のようになるため最大濃
度差の値は小さく、その結果写真と判定されてコントラ
ストの低いぼやけた画像になってしまう。
In the case of a low-contrast image such as a pencil drawing as shown in FIG. 15A, the density profile shown by the dotted line is as shown in FIG. 15B, and the maximum density difference is small. As a result, the image is determined to be a photograph, resulting in a blurred image with low contrast.

【0010】このように、文字と写真が混在した画像を
像域分離すると、画像中に文字と写真の両方の特徴を有
する領域、つまり中間領域が存在するため、文字領域と
写真領域の2つの領域に分離することは不可能であっ
た。このような中間領域、例えば本来写真領域と思われ
る領域でも最大濃度差が比較的大きい領域や、複雑な形
状を持つ図形領域を誤って文字あるいは写真と判定して
しまうと、文字領域と写真領域の処理方式のギャップが
大きいため、誤判定領域がノイズのようになり非常に目
障りであるという問題点があった。
As described above, when the image area separation of an image in which characters and photographs are mixed is present, an area having both the characteristics of characters and photographs, that is, an intermediate area exists in the image. It was impossible to separate into areas. If such an intermediate area, for example, an area originally thought to be a photographic area, where the maximum density difference is relatively large, or a graphic area having a complicated shape is mistakenly determined to be a character or a photograph, the character area and the photograph area Since there is a large gap in the processing method of (1), there is a problem that the erroneous determination area becomes noise and is very annoying.

【0011】[0011]

【発明が解決しようとする課題】上記したように、文字
と写真が混在した画像を像域分離する際の中間領域、例
えば本来写真領域と思われる領域でも最大濃度差が比較
的大きい領域や、複雑な形状を持つ図形領域を誤って文
字あるいは写真と判定してしまうと、文字領域と写真領
域の処理方式のギャップが大きいため、誤判定領域がノ
イズのようになり非常に目障りであるという問題があっ
た。
As described above, in the intermediate area when separating an image area of an image in which characters and photographs are mixed, for example, even in an area that is supposed to be a photograph area, an area having a relatively large maximum density difference, If a graphic area with a complicated shape is mistakenly determined to be a character or a photo, there is a large gap between the processing methods of the text area and the photo area, and the false determination area becomes noise, which is very annoying. was there.

【0012】そこで、この発明は、文字と写真が混在す
る画像を像域分離して各領域に適した処理を行う際に、
文字と写真の中間領域で文字と写真を誤って判定した場
合でも誤判定領域が目立ちにくい画像を得ることのでき
る画像処理装置を提供することを目的とする。
Therefore, according to the present invention, when an image in which characters and photographs are mixed is separated into image areas and processing suitable for each area is performed,
An object of the present invention is to provide an image processing apparatus capable of obtaining an image in which an erroneous determination area is less noticeable even when a character and a photograph are erroneously determined in the intermediate area between the character and the photograph.

【0013】[0013]

【課題を解決するための手段】この発明の画像処理装置
は、処理対象画像における注目画素を含む所定範囲内の
画像情報から、前記注目画素と周辺画素との最大濃度差
を算出する最大濃度差算出手段と、この最大濃度差算出
手段で算出された最大濃度差の値を所定の閾値を用いて
上記注目画素が文字領域、写真領域、または中間領域か
を判定する判定手段と、上記注目画素を含む所定範囲内
の画像情報から、文字領域の動的閾値を算出する動的閾
値算出手段と、この動的閾値算出手段で算出された動的
閾値と予め定められた固定閾値とから、上記最大濃度差
算出手段で算出された最大濃度差の値に応じて中間領域
の閾値を算出する中間領域閾値算出手段と、写真領域の
画像情報を多値化するための閾値を設定する写真領域の
閾値設定手段と、上記判定手段により上記注目画素が、
文字領域に対応していると判定された場合は上記動的閾
値算出手段からの動的閾値を選択し、中間領域に対応し
ていると判定された場合は上記中間領域閾値算出手段か
らの閾値を選択し、写真領域に対応していると判定され
た場合は上記閾値設定手段からの閾値を選択する閾値選
択手段と、この閾値選択手段で選択された閾値を用いて
上記注目画素の画像情報を多値化する多値化手段とから
構成されている。
An image processing apparatus according to the present invention calculates a maximum density difference between a target pixel and a peripheral pixel from image information within a predetermined range including a target pixel in an image to be processed. Calculating means, determining means for determining the value of the maximum density difference calculated by the maximum density difference calculating means using a predetermined threshold value to determine whether the pixel of interest is a character area, a photograph area, or an intermediate area; From the image information within a predetermined range including the, from the dynamic threshold value calculating means for calculating the dynamic threshold value of the character area, the dynamic threshold value calculated by this dynamic threshold value calculating means and a predetermined fixed threshold value, The intermediate area threshold value calculating means for calculating the threshold value of the intermediate area according to the value of the maximum density difference calculated by the maximum density difference calculating means, and the photographic area for setting the threshold value for multi-valued image information of the photographic area. Threshold setting means, The target pixel by serial determination means,
If it is determined to correspond to the character area, the dynamic threshold from the dynamic threshold calculation means is selected, and if it is determined to correspond to the intermediate area, the threshold from the intermediate area threshold calculation means. Image information of the pixel of interest by using the threshold value selecting means for selecting the threshold value from the threshold value setting means and the threshold value selected by the threshold value selecting means when it is determined that the image area corresponds to the photograph area. Is made up of multi-values.

【0014】この発明の画像処理装置は、処理対象画像
における注目画素を含む所定範囲内の画像情報から、前
記注目画素と周辺画素との最大濃度差を算出する最大濃
度差算出手段と、上記注目画素を含む所定範囲内の画像
情報から、所定の参照領域内の最大値と最小値を算出す
る最大最小値算出手段と、上記注目画素を含む所定範囲
内の画像情報から、所定の参照領域内の平均値を算出す
る平均値算出手段と、この平均値算出手段で算出された
平均値を補正する補正平均値変換手段と、この補正平均
値変換手段からの補正平均値と、上記最大最小値算出手
段からの最大値と最小値とから動的閾値を算出する動的
閾値算出手段と、この動的閾値算出手段で算出された動
的閾値と予め定められた固定閾値とから、上記最大濃度
差算出手段で算出された最大濃度差の値に応じて中間領
域の閾値を算出する中間領域閾値算出手段とから構成さ
れている。
The image processing apparatus of the present invention comprises maximum density difference calculating means for calculating the maximum density difference between the target pixel and peripheral pixels from image information within a predetermined range including the target pixel in the image to be processed, and the above-mentioned target A maximum and minimum value calculating means for calculating maximum and minimum values in a predetermined reference area from image information in a predetermined range including pixels, and image information in a predetermined range including the target pixel in the predetermined reference area Average value calculation means for calculating the average value, corrected average value conversion means for correcting the average value calculated by the average value calculation means, corrected average value from the corrected average value conversion means, and the maximum and minimum values From the dynamic threshold value calculating means for calculating the dynamic threshold value from the maximum value and the minimum value from the calculating means, and the dynamic threshold value calculated by the dynamic threshold value calculating means and a predetermined fixed threshold value, the maximum concentration Calculated by the difference calculation means And an intermediate region threshold calculating means for calculating a threshold value of the intermediate region according to the value of the maximum density difference is.

【0015】この発明の画像処理装置は、処理対象画像
における注目画素を含む所定範囲内の画像情報から、前
記注目画素と周辺画素との最大濃度差を算出する最大濃
度差算出手段と、この最大濃度差算出手段で算出された
最大濃度差の値を所定の閾値を用いて上記注目画素が文
字領域、写真領域、または中間領域かを判定する判定手
段と、上記注目画素を含む所定範囲内の画像情報から、
所定の参照領域内の最大値、最小値を算出する最大最小
値算出手段と、上記注目画素を含む所定範囲内の画像情
報から、所定の参照領域内の平均値を算出する平均値算
出手段と、この平均値算出手段で算出された平均値を補
正する補正平均値変換手段と、この補正平均値変換手段
からの補正平均値と、上記最大最小値算出手段からの最
大値と最小値とから文字領域の動的閾値を算出する動的
閾値算出手段と、この動的閾値算出手段で算出された動
的閾値と予め定められた固定閾値とから、上記最大濃度
差算出手段で算出された最大濃度差の値に応じて中間領
域の閾値を算出する中間領域閾値算出手段と、写真領域
の画像情報を多値化するための閾値を設定する写真領域
の閾値設定手段と、上記判定手段により上記注目画素
が、文字領域に対応していると判定された場合は上記動
的閾値算出手段からの動的閾値を選択し、中間領域に対
応していると判定された場合は上記中間領域閾値算出手
段からの閾値を選択し、写真領域に対応していると判定
された場合は上記閾値設定手段からの閾値を選択する閾
値選択手段とから構成されている。
The image processing apparatus of the present invention comprises maximum density difference calculating means for calculating the maximum density difference between the target pixel and peripheral pixels from image information within a predetermined range including the target pixel in the image to be processed, and the maximum density difference calculating means. The value of the maximum density difference calculated by the density difference calculating means is used to determine whether the pixel of interest is a character area, a photographic area, or an intermediate area using a predetermined threshold value, and a predetermined range including the pixel of interest. From the image information,
Maximum and minimum value calculating means for calculating maximum and minimum values within a predetermined reference area; and average value calculating means for calculating an average value within a predetermined reference area from image information within a predetermined range including the pixel of interest. A corrected average value conversion means for correcting the average value calculated by the average value calculation means, a corrected average value from the corrected average value conversion means, and a maximum value and a minimum value from the maximum / minimum value calculation means. From the dynamic threshold calculation means for calculating the dynamic threshold of the character area, the dynamic threshold calculated by the dynamic threshold calculation means and the predetermined fixed threshold, the maximum calculated by the maximum density difference calculation means is calculated. The intermediate area threshold value calculating means for calculating the threshold value of the intermediate area according to the value of the density difference, the threshold value setting means for the photographic area for setting the threshold value for multi-valued image information of the photographic area, and the determining means The pixel of interest corresponds to the character area If it is determined that the dynamic threshold from the dynamic threshold calculation means is selected, if it is determined to correspond to the intermediate area, the threshold from the intermediate area threshold calculation means is selected, and the photograph When it is determined that the area corresponds to the area, the threshold value selecting means selects the threshold value from the threshold value setting means.

【0016】この発明の画像処理の方法は、処理対象画
像における注目画素を含む所定範囲内の画像情報から、
前記注目画素と周辺画素との最大濃度差を算出し、この
算出された最大濃度差の値を所定の閾値を用いて上記注
目画素が文字領域、写真領域、または中間領域かを判定
し、上記注目画素を含む所定範囲内の画像情報から、文
字領域の動的閾値を算出し、この算出された動的閾値と
予め定められた固定閾値とから、上記算出された最大濃
度差の値に応じて中間領域の閾値を算出し、写真領域の
画像情報を多値化するための閾値を設定し、上記判定に
より上記注目画素が、文字領域に対応していると判定さ
れた場合は上記文字領域の動的閾値を選択し、中間領域
に対応していると判定された場合は上記中間領域の閾値
を選択し、写真領域に対応していると判定された場合は
上記写真領域の閾値を選択し、この選択された閾値を用
いて上記注目画素の画像情報を多値化するステップとか
らなる。
According to the image processing method of the present invention, from the image information within the predetermined range including the pixel of interest in the image to be processed,
The maximum density difference between the pixel of interest and the peripheral pixels is calculated, and the value of the calculated maximum density difference is used to determine whether the pixel of interest is a character area, a photographic area, or an intermediate area. The dynamic threshold of the character area is calculated from the image information within the predetermined range including the pixel of interest, and the calculated dynamic threshold and the predetermined fixed threshold are used to determine the value of the maximum density difference calculated above. Calculate the threshold value of the intermediate area, set the threshold value for multi-valued image information of the photograph area, and if the above-mentioned pixel of interest is determined to correspond to the character area by the above determination, the character area Dynamic threshold, select the threshold value for the intermediate area if it is determined to correspond to the intermediate area, and select the threshold value for the photograph area if determined to correspond to the photo area. Then, using the selected threshold value, Image information comprising a step of multi-valued.

【0017】この発明の画像処理の方法は、処理対象画
像における注目画素を含む所定範囲内の画像情報から、
前記注目画素と周辺画素との最大濃度差を算出し、上記
注目画素を含む所定範囲内の画像情報から、所定の参照
領域内の最大値と最小値を算出し、上記注目画素を含む
所定範囲内の画像情報から、所定の参照領域内の平均値
を算出し、この算出された平均値を補正し、この補正さ
れた補正平均値と上記算出された最大値と最小値とから
動的閾値を算出し、この算出された動的閾値と予め定め
られた固定閾値とから、上記算出された最大濃度差の値
に応じて中間領域の閾値を算出するステップとからな
る。
According to the image processing method of the present invention, from the image information in the predetermined range including the pixel of interest in the image to be processed,
A maximum density difference between the target pixel and peripheral pixels is calculated, and a maximum value and a minimum value within a predetermined reference area are calculated from image information within a predetermined range including the target pixel, and a predetermined range including the target pixel is calculated. An average value within a predetermined reference area is calculated from the image information in the image, the calculated average value is corrected, and a dynamic threshold is calculated from the corrected average value and the calculated maximum value and minimum value. From the calculated dynamic threshold value and a predetermined fixed threshold value, and calculating the threshold value of the intermediate region according to the value of the calculated maximum density difference.

【0018】この発明の画像処理の方法は、処理対象画
像における注目画素を含む所定範囲内の画像情報から、
前記注目画素と周辺画素との最大濃度差を算出し、この
算出された最大濃度差の値を所定の閾値を用いて上記注
目画素が文字領域、写真領域、または中間領域かを判定
し、上記注目画素を含む所定範囲内の画像情報から、所
定の参照領域内の最大値、最小値を算出し、上記注目画
素を含む所定範囲内の画像情報から、所定の参照領域内
の平均値を算出し、この算出された平均値を補正し、こ
の補正された補正平均値と上記算出された最大値と最小
値とから文字領域の動的閾値を算出し、この算出された
動的閾値と予め定められた固定閾値とから、上記算出さ
れた最大濃度差の値に応じて中間領域の閾値を算出し、
写真領域の画像情報を多値化するための閾値を設定し、
上記判定により上記注目画素が、文字領域に対応してい
ると判定された場合は文字領域の動的閾値を選択し、中
間領域に対応していると判定された場合は上記中間領域
の閾値を選択し、写真領域に対応していると判定された
場合は上記写真領域の閾値を選択するステップとからな
る。
According to the image processing method of the present invention, from the image information within the predetermined range including the pixel of interest in the image to be processed,
The maximum density difference between the pixel of interest and the peripheral pixels is calculated, and the value of the calculated maximum density difference is used to determine whether the pixel of interest is a character area, a photographic area, or an intermediate area. The maximum value and the minimum value in the predetermined reference area are calculated from the image information in the predetermined range including the target pixel, and the average value in the predetermined reference area is calculated from the image information in the predetermined range including the target pixel. Then, the calculated average value is corrected, and the dynamic threshold of the character area is calculated from the corrected average value thus corrected and the calculated maximum value and minimum value. From the fixed threshold determined, calculate the threshold of the intermediate region according to the value of the calculated maximum density difference,
Set the threshold for multi-valued image information in the photo area,
If the pixel of interest is determined to correspond to the character region by the determination, the dynamic threshold value of the character region is selected, and if it is determined to correspond to the intermediate region, the threshold value of the intermediate region is set. If the selection is made and it is determined that it corresponds to the photo area, the step of selecting the threshold value of the photo area is performed.

【0019】[0019]

【作用】この発明は、処理対象画像における注目画素を
含む所定範囲内の画像情報から、前記注目画素と周辺画
素との最大濃度差を最大濃度差算出手段で算出し、算出
された最大濃度差の値を所定の閾値を用いて上記注目画
素が文字領域、写真領域、または中間領域かを判定手段
で判定し、上記注目画素を含む所定範囲内の画像情報か
ら、文字領域の動的閾値を算出し、算出された動的閾値
と予め定められた固定閾値とから、上記最大濃度差算出
手段で算出された最大濃度差の値に応じて中間領域の閾
値を算出し、写真領域の画像情報を多値化するための閾
値を設定し、上記判定手段により上記注目画素が、文字
領域に対応していると判定された場合は上記文字領域の
動的閾値を選択し、中間領域に対応していると判定され
た場合は上記中間領域の閾値を選択し、写真領域に対応
していると判定された場合は上記写真領域の閾値を選択
し、選択された閾値を用いて上記注目画素の画像情報を
多値化するようにしたものである。
According to the present invention, the maximum density difference between the target pixel and the peripheral pixels is calculated by the maximum density difference calculating means from the image information within the predetermined range including the target pixel in the image to be processed, and the calculated maximum density difference is calculated. The determination means determines whether the pixel of interest is a character region, a photo region, or an intermediate region by using a predetermined threshold value, and the dynamic threshold of the character region is determined from image information in a predetermined range including the pixel of interest. From the calculated dynamic threshold and the predetermined fixed threshold, the threshold of the intermediate area is calculated according to the value of the maximum density difference calculated by the maximum density difference calculating means, and the image information of the photograph area is calculated. Is set to a multi-valued threshold value, and if the determination unit determines that the pixel of interest corresponds to a character area, it selects a dynamic threshold value of the character area and corresponds to the intermediate area. If it is determined that The threshold of the area is selected, and when it is determined that the area corresponds to the photograph area, the threshold of the photograph area is selected, and the image information of the pixel of interest is multi-valued using the selected threshold. It is a thing.

【0020】この発明は、処理対象画像における注目画
素を含む所定範囲内の画像情報から、前記注目画素と周
辺画素との最大濃度差を最大濃度差算出手段で算出し、
上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の最大値と最小値を最大最小値算出手段で算
出し、上記注目画素を含む所定範囲内の画像情報から、
所定の参照領域内の平均値を算出し、算出された平均値
を補正し、補正された補正平均値と上記最大最小値算出
手段からの最大値と最小値とから動的閾値を算出し、算
出された動的閾値と予め定められた固定閾値とから、上
記最大濃度差算出手段で算出された最大濃度差の値に応
じて中間領域の閾値を算出するようにしたものである。
According to the present invention, the maximum density difference between the target pixel and the peripheral pixels is calculated by the maximum density difference calculating means from the image information in the predetermined range including the target pixel in the image to be processed,
From the image information in the predetermined range including the target pixel, the maximum value and the minimum value in the predetermined reference area are calculated by the maximum and minimum value calculating means, and from the image information in the predetermined range including the target pixel,
Calculate an average value in a predetermined reference region, correct the calculated average value, calculate a dynamic threshold from the corrected corrected average value and the maximum and minimum values from the maximum and minimum value calculating means, From the calculated dynamic threshold value and a predetermined fixed threshold value, the threshold value of the intermediate area is calculated according to the value of the maximum density difference calculated by the maximum density difference calculation means.

【0021】この発明は、処理対象画像における注目画
素を含む所定範囲内の画像情報から、前記注目画素と周
辺画素との最大濃度差を最大濃度差算出手段で算出し、
算出された最大濃度差の値を所定の閾値を用いて上記注
目画素が文字領域、写真領域、または中間領域かを判定
手段で判定し、上記注目画素を含む所定範囲内の画像情
報から、所定の参照領域内の最大値、最小値を最大最小
値算出手段で算出し、上記注目画素を含む所定範囲内の
画像情報から、所定の参照領域内の平均値を算出し、算
出された平均値を補正し、補正された補正平均値と、上
記最大最小値算出手段からの最大値と最小値とから文字
領域の動的閾値を算出し、算出された動的閾値と予め定
められた固定閾値とから、上記最大濃度差算出手段で算
出された最大濃度差の値に応じて中間領域の閾値を算出
し、写真領域の画像情報を多値化するための閾値を設定
し、上記判定手段により上記注目画素が、文字領域に対
応していると判定された場合は上記文字領域の動的閾値
を選択し、中間領域に対応していると判定された場合は
上記中間領域の閾値を選択し、写真領域に対応している
と判定された場合は上記写真領域の閾値を選択するよう
にしたものである。
According to the present invention, the maximum density difference between the target pixel and the peripheral pixels is calculated by the maximum density difference calculating means from the image information within the predetermined range including the target pixel in the image to be processed.
The value of the calculated maximum density difference is determined by a determination means using a predetermined threshold value to determine whether the pixel of interest is a character region, a photographic region, or an intermediate region, and a predetermined value is determined from image information within a predetermined range including the pixel of interest. The maximum value and the minimum value in the reference area are calculated by the maximum / minimum value calculating means, the average value in the predetermined reference area is calculated from the image information in the predetermined range including the target pixel, and the calculated average value Is calculated, and the dynamic threshold value of the character area is calculated from the corrected average value corrected and the maximum value and the minimum value from the maximum / minimum value calculating means, and the calculated dynamic threshold value and a predetermined fixed threshold value. From the above, the threshold value of the intermediate area is calculated according to the value of the maximum density difference calculated by the maximum density difference calculating means, and the threshold value for multivalued image information of the photographic area is set, and by the judging means. Judge that the pixel of interest above corresponds to the character area If it is determined that the dynamic threshold of the character area is selected, if it is determined to correspond to the intermediate area, the threshold of the intermediate area is selected, if it is determined to correspond to the photo area, The threshold value of the photograph area is selected.

【0022】[0022]

【実施例】以下、この発明の一実施例について図面を参
照して説明する。図1は、この発明の実施例に係る画像
処理装置の概略構成を示すものである。この画像処理装
置は図示しないイメージスキャナ等の読取装置にて読取
入力された画像情報を、例えば1画素当たり8ビットの
デジタル・データとして入力し、これをN値化処理(N
≧2)するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a schematic configuration of an image processing apparatus according to an embodiment of the present invention. This image processing device inputs image information read and input by a reading device such as an image scanner (not shown) as, for example, 8-bit digital data per pixel, and performs N-value conversion processing (N
≧ 2).

【0023】図1において、ラインバッファ1はこのよ
うな画像情報を一時的に格納して以下に示す画像処理
(N値化処理)に供する。最大濃度差算出回路2は、上
記ラインバッファ1から所定のクロックに同期して出力
される画像情報を入力し、その画像情報から注目画素を
含む局所領域における特徴情報をそれぞれ求めるもので
ある。次に文字/写真/中間領域判定回路3では、この
特徴情報を判定して前記局所領域の画像情報が文字部特
有の性質を示すか、写真部としての特徴を示すか、ある
いは中間領域としての性質を示すかを判定して、その画
像の種別を識別判定するものである。この識別判定結果
に従って閾値選択回路7が切替えられ、文字領域の閾値
算出回路4から与えられる閾値、または写真領域の閾値
算出回路(メモリ)6から与えられる閾値、または中間
領域の閾値算出回路5から与えられる閾値が、前記画像
情報をN値化処理するための閾値として選択的に抽出さ
れる。そして上記ラインバッファ1から読出され、遅延
回路8を介して所定タイミング遅延されて比較回路(N
値化回路)9に導かれる画像情報が、上記閾値選択回路
7を介して抽出された閾値にてN値化処理されて出力さ
れる。
In FIG. 1, the line buffer 1 temporarily stores such image information and provides it to the following image processing (N-value conversion processing). The maximum density difference calculation circuit 2 inputs the image information output from the line buffer 1 in synchronization with a predetermined clock, and obtains the characteristic information in the local area including the pixel of interest from the image information. Next, the character / photograph / intermediate area determination circuit 3 determines this characteristic information and determines whether the image information of the local area shows the characteristic peculiar to the character portion, the characteristic as the photograph portion, or the image information of the intermediate area. The image type is discriminated and determined by determining whether or not the property is exhibited. The threshold value selection circuit 7 is switched according to the result of this discrimination, and the threshold value given from the threshold value calculation circuit 4 for the character area, the threshold value given from the threshold value calculation circuit (memory) 6 for the photo area, or the threshold value calculation circuit 5 for the intermediate area is given. The given threshold value is selectively extracted as a threshold value for performing the N-value conversion process on the image information. Then, it is read from the line buffer 1 and delayed by a predetermined timing via a delay circuit 8 and then compared with a comparison circuit (N
The image information guided to the binarization circuit 9 is N-valued by the threshold value extracted through the threshold value selection circuit 7 and output.

【0024】文字領域の閾値発生回路4は、上記ライン
バッファ1から読み出される画像情報から、所定の大き
さの参照領域、例えば(3×3)画素の局所領域におけ
る最大値と最小値を算出する最大・最小値算出回路41
と、同じ領域の平均値を算出する平均値算出回路42
と、この平均値(Da)を下記式を用いて補正するため
の補正平均値変換回路43と、最大値、最小値、補正平
均値の3つ値から動的N値化のためのN−1個の動的閾
値を算出する動的閾値算出回路44とからなる。
The character area threshold value generating circuit 4 calculates the maximum value and the minimum value in a reference area having a predetermined size, for example, a local area of (3 × 3) pixels, from the image information read from the line buffer 1. Maximum / minimum value calculation circuit 41
And an average value calculation circuit 42 that calculates the average value of the same area.
And a corrected average value conversion circuit 43 for correcting this average value (Da) using the following formula, and N- for dynamic N-value conversion from three values of a maximum value, a minimum value and a corrected average value. And a dynamic threshold value calculation circuit 44 for calculating one dynamic threshold value.

【0025】 Da′=γ+(1−2×γ/255)Da 次に個々の回路について説明する。図2は、最大濃度差
算出回路2の構成を示すもので、最大・最小値検出回路
21と減算器22とからなる。最大・最小値検出回路2
1は、処理対象画像中の注目画素に対して、図3の
(a)に示すようにその注目画素(斜線で示す画素)を
含む(5×5)画素の領域内における濃度の最大値と最
小値とをそれぞれ求めるものである。
Da ′ = γ + (1-2 × γ / 255) Da Next, individual circuits will be described. FIG. 2 shows the configuration of the maximum density difference calculation circuit 2, which includes a maximum / minimum value detection circuit 21 and a subtractor 22. Maximum / minimum value detection circuit 2
1 is the maximum value of the density in the area of (5 × 5) pixels including the target pixel (pixels indicated by diagonal lines) with respect to the target pixel in the processing target image as shown in FIG. The minimum value and the minimum value are obtained respectively.

【0026】最大・最小値検出回路21は、セレクタ2
1a、比較器21b〜21h、およびカウンタ21iと
から構成されている。最大・最小値検出回路21は、ま
ず、前記ラインバッファ1からクロックCLKに同期し
て列方向に5画素単位で順次入力される(8bit/画
素)画像情報をセレクタ21aを介して比較器21b、
21c、21d、21e、21fに順次分配している。
なお、この列単位に入力される画像情報の上記セレクタ
21aによる比較器21b、21c、21d、21e、
21fへの分配は、クロックCLKを受けて動作する2
bitカウンタ21iの選択信号SEI、SE2により
動作制御して行う。
The maximum / minimum value detection circuit 21 includes a selector 2
1a, comparators 21b to 21h, and a counter 21i. The maximum / minimum value detection circuit 21 first receives the image information sequentially input from the line buffer 1 in units of 5 pixels in the column direction in synchronization with the clock CLK (8 bits / pixel) via a selector 21 a to a comparator 21 b,
21c, 21d, 21e and 21f are sequentially distributed.
The comparators 21b, 21c, 21d, 21e of the selector 21a for the image information input in units of columns,
The distribution to 21f operates by receiving the clock CLK 2
The operation is controlled by the selection signals SEI and SE2 of the bit counter 21i.

【0027】これらの比較器21b、21c、21d、
21e、21fによって画像情報を5画素単位でそれぞ
れ列方向に比較し、その列における最大濃度と最小濃度
とをそれぞれ求める。
These comparators 21b, 21c, 21d,
21e and 21f, the image information is compared in the column direction in units of 5 pixels, and the maximum and minimum densities in the column are obtained.

【0028】次段の比較器21g、21hは、上記比較
器21b、21c、21d、21e、21fからの信号
を入力し、列方向にそれぞれ求めた最大値と最小値とを
行方向に比較し、その中の最大値と最小値をそれぞれ求
めるものである。以上の処理によって図3の(a)に示
す(5×5)画素の領域内における最大濃度値Dmaxと
最小濃度値Dmin がそれぞれ求められ出力される。
The comparators 21g, 21h in the next stage receive the signals from the comparators 21b, 21c, 21d, 21e, 21f and compare the maximum and minimum values respectively obtained in the column direction in the row direction. , And the maximum value and the minimum value among them are obtained respectively. Through the above processing, the maximum density value Dmax and the minimum density value Dmin in the area of (5 × 5) pixels shown in FIG. 3A are obtained and output.

【0029】減算器22は、このようにして求めた最大
濃度値Dmax と最小濃度値Dmin から、下記式を用いて
最大濃度差ΔDmax を求めるものである。 ΔDmax =Dmax −Dmin 文字/写真/中間領域判定回路3は、このようにして算
出した最大濃度差ΔDmax を所定の閾値Thh 、Thl と比
較し、以下の判定条件の下で識別信号14を出力する。
The subtractor 22 obtains the maximum density difference ΔDmax from the maximum density value Dmax and the minimum density value Dmin thus obtained using the following formula. ΔDmax = Dmax−Dmin The character / photograph / intermediate area determination circuit 3 compares the thus calculated maximum density difference ΔDmax with predetermined thresholds Thh and Thl, and outputs an identification signal 14 under the following determination conditions. .

【0030】 次に、各領域のN値化手段について説明する。[0030] Next, the N-value conversion means of each area will be described.

【0031】文字領域の閾値発生回路4は、最大・最小
値算出回路41、平均値算出回路42、補正平均値変換
回路43、動的閾値算出回路44からなる。ここでは文
字領域の出力レベル数を4、すなわち4値化するものと
する。
The character area threshold value generating circuit 4 comprises a maximum / minimum value calculating circuit 41, an average value calculating circuit 42, a corrected average value converting circuit 43, and a dynamic threshold value calculating circuit 44. Here, it is assumed that the number of output levels of the character area is four, that is, four-valued.

【0032】図4は、最大・最小値算出回路41を示す
もので、セレクタ41a、比較器41b,41c,41
d,41e,41f,およびカウンタ41gとから構成
されている。最大・最小値算出回路41は、処理対象画
像中の注目画素に対して、(3×3)画素の参照領域内
における濃度の最大値(Dmax )と最小値(Dmin )と
をそれぞれ求める。最大値(Dmax )および最小値(D
min )は、それぞれ動的閾値算出回路44へ出力され
る。
FIG. 4 shows a maximum / minimum value calculation circuit 41, which includes a selector 41a and comparators 41b, 41c, 41.
It is composed of d, 41e, 41f, and a counter 41g. The maximum / minimum value calculation circuit 41 obtains the maximum value (Dmax) and the minimum value (Dmin) of the density in the reference area of (3 × 3) pixels for the target pixel in the image to be processed. Maximum value (Dmax) and minimum value (D
min) are output to the dynamic threshold calculation circuit 44, respectively.

【0033】図5は、平均値算出回路42を示すもの
で、セレクタ42a、加算器42b,42c,42d,
42e、除算器42f、およびカウンタ42gとから構
成されている。平均値算出回路42は、最大・最小値算
出回路41と同様の(3×3)画素の参照領域内で平均
濃度値(Da)を求める。平均濃度値(Da)は補正平
均値変換回路43へ出力される。そして、平均濃度値
(Da)を補正平均値変換回路43で補正する。
FIG. 5 shows an average value calculation circuit 42, which includes a selector 42a, adders 42b, 42c, 42d,
42e, a divider 42f, and a counter 42g. The average value calculation circuit 42 obtains the average density value (Da) within the reference region of (3 × 3) pixels similar to the maximum / minimum value calculation circuit 41. The average density value (Da) is output to the corrected average value conversion circuit 43. Then, the average density value (Da) is corrected by the corrected average value conversion circuit 43.

【0034】図6は、補正平均値変換回路43を示すも
ので、乗算器43aと加算器43bとから構成されてい
る。補正平均値変換回路43は、平均値算出回路42か
ら入力される平均濃度値(Da)を下記式の補正平均値
(Da′)に変換するものである。ただし、e=1−2
×γ3/255とf=γ3とは、予め図示しないCPU
にセットされている。
FIG. 6 shows a corrected average value conversion circuit 43, which is composed of a multiplier 43a and an adder 43b. The corrected average value conversion circuit 43 converts the average density value (Da) input from the average value calculation circuit 42 into the corrected average value (Da ′) of the following formula. However, e = 1-2
Xγ3 / 255 and f = γ3 are CPUs not shown in advance.
Is set to.

【0035】 Da′=γ3+(1−2×γ3/255)×Da 動的閾値算出回路44は、上記最大・最小値算出回路4
1で算出した濃度の最大値(Dmax )と最小値(Dmin
)、および補正平均値変換回路43で算出した補正平
均値(Da′)とから動的閾値を算出するものである。
Da ′ = γ3 + (1-2 × γ3 / 255) × Da The dynamic threshold calculation circuit 44 includes the maximum / minimum value calculation circuit 4 described above.
Maximum value (Dmax) and minimum value (Dmin) of density calculated in 1
), And the corrected average value (Da ′) calculated by the corrected average value conversion circuit 43, the dynamic threshold value is calculated.

【0036】図7に動的閾値算出回路44を示す。ま
ず、加算器44a、44bにて、それぞれ濃度の最大値
(Dmax )と補正平均値(Da′)の和、濃度の最小値
(Dmin )と補正平均値(Da′)の和とを算出する。
除算器44c、44dはそれぞれこのようにして求めた
値の平均値を求めるものである。
FIG. 7 shows the dynamic threshold calculation circuit 44. First, the adders 44a and 44b calculate the sum of the maximum density value (Dmax) and the corrected average value (Da ') and the sum of the minimum density value (Dmin) and the corrected average value (Da'), respectively. .
The dividers 44c and 44d each calculate the average value of the values thus obtained.

【0037】 Th[1] =(DmAX +Da)/2 Th[2] =Da Th[3] =(Dmin +Da)/2 このようにして文字領域の4値化のための3つの閾値が
与えられる。
Th [1] = (DmAX + Da) / 2 Th [2] = Da Th [3] = (Dmin + Da) / 2 In this way, three threshold values for quaternization of the character area are given. .

【0038】なお、本実施例では動的4値化について説
明したが、4値に限定されるものではない。N値の場合
(N≧2)は、例えば下記式のように閾値を算出するこ
とができる。
Although the dynamic quaternarization has been described in the present embodiment, it is not limited to quaternary. When the value is N (N ≧ 2), the threshold value can be calculated, for example, by the following formula.

【0039】(a)i<(N/2)のとき Th[i] =(Dmax −Da)×i/(N/2)+Da (b)i=(N+1)/2のとき Th[i] =Da (c)i>(N+1)/2のとき Th[i] =(Da−Dmin )×(i−N/2)/(N/2)+Dmin ただし、i=1、…、(N−1) 図8に中間領域の閾値算出回路5を示す。中間領域の閾
値算出回路5は、減算器5a〜5c、除算器5d、乗算
器5e、減算器5f、および遅延回路5gとから構成さ
れている。この中間領域の閾値算出回路5は、最大濃度
差ΔDmax が所定の閾値Thl とThh の間にあるときに、
ΔDmax の値に応じて閾値を制御するもので、その原理
を図9に示す。この図は縦軸に最大濃度差、横軸に閾値
をとったものである。文字/写真/中間領域判定回路3
の判定に従って、ΔDmax がThl以下の場合は単純4値
化とし閾値Th′[1] 〜Th′[3] は下記式で求められる。
When (a) i <(N / 2) Th [i] = (Dmax-Da) × i / (N / 2) + Da (b) When i = (N + 1) / 2 Th [i] = Da (c) i> (N + 1) / 2 Th [i] = (Da−Dmin) × (i−N / 2) / (N / 2) + Dmin where i = 1, ..., (N− 1) FIG. 8 shows the threshold calculation circuit 5 for the intermediate area. The threshold value calculation circuit 5 in the intermediate region includes subtractors 5a to 5c, a divider 5d, a multiplier 5e, a subtractor 5f, and a delay circuit 5g. The threshold value calculation circuit 5 for the intermediate area is configured so that when the maximum density difference ΔDmax is between the predetermined threshold values Thl and Thh,
The threshold is controlled according to the value of ΔDmax, and its principle is shown in FIG. In this figure, the vertical axis represents the maximum density difference and the horizontal axis represents the threshold value. Character / photograph / intermediate area determination circuit 3
If ΔDmax is less than or equal to Thl, the threshold value Th ′ [1] to Th ′ [3] is determined by the following formula, assuming that the threshold value is Th4 [1] to Th ′ [3].

【0040】Th′[i] =(255/4)×i i
=1、2、3、… また、ΔDmax がThh より大きい場合は動的閾値処理を
行い、閾値は動的閾値算出回路44で求めたTh[1] 〜Th
[3] とする。そして、ΔDmax が図8の一点鎖線の位置
にあるとき、すなわちThh とThl の間にあるときは、算
出する中間領域の閾値Th″[1] は、Th[1] とTh′[1] を
結んだ線とこの一点鎖線の交差したときの横軸の値にな
る(図9における×印)。以下Th″[2] 、Th″[3] も同
様に算出できる。
Th ′ [i] = (255/4) × i i
= 1, 2, 3, ... Further, when ΔDmax is larger than Thh, dynamic threshold processing is performed, and the thresholds are Th [1] to Th obtained by the dynamic threshold calculation circuit 44.
[3] Then, when ΔDmax is at the position indicated by the alternate long and short dash line in FIG. 8, that is, when it is between Thh and Thl, the threshold value Th ″ [1] for the intermediate region to be calculated is Th [1] and Th ′ [1] It becomes the value on the horizontal axis when the connecting line and this one-dot chain line intersect (marked by X in Fig. 9.) Th ″ [2] and Th ″ [3] can be similarly calculated.

【0041】この算出方法を式で表すと下記のようにな
る。 Th″[1] =Th[1]-(Th[1]-Th′[1] )/(Thh-Thl )×(Thh-ΔDmax ) Th″[2] =Th[2]-(Th[2]-Th′[2] )/(Thh-Thl )×(Thh-ΔDmax ) Th″[3] =Th[3]-(Th[3]-Th′[3] )/(Thh-Thl )×(Thh-ΔDmax ) これに対して、写真領域の閾値発生回路6では、例え
ば、図3の(b)に示すようなディザパターン情報(デ
ィザマトリクス)が与えられる。
This calculation method is expressed by the following equation. Th ″ [1] = Th [1]-(Th [1] -Th ′ [1]) / (Thh-Thl) × (Thh-ΔDmax) Th ″ [2] = Th [2]-(Th [2 ] -Th ′ [2]) / (Thh-Thl) × (Thh-ΔDmax) Th ″ [3] = Th [3]-(Th [3] -Th ′ [3]) / (Thh-Thl) × (Thh-ΔDmax) On the other hand, in the threshold value generation circuit 6 for the photograph area, for example, dither pattern information (dither matrix) as shown in FIG.

【0042】このようにして、前述した文字/写真/中
間領域判定回路3の識別判定結果に従って閾値選択回路
7が切替えられ、文字領域の閾値算出回路4より与えら
れた閾値、または写真領域の閾値算出回路6のディザパ
ターンによって示される閾値、または中間領域の閾値算
出回路5より与えられた閾値が、前記画像情報をN値化
処理するための閾値として選択的に抽出される。そして
上記ラインバッファ1から読出され、遅延回路8を介し
て所定タイミング遅延されて比較回路9に導かれる画像
情報が、上記閾値選択回路7を介して抽出された閾値に
てN値化処理されて出力される。
In this way, the threshold value selection circuit 7 is switched according to the discrimination judgment result of the character / photograph / intermediate region judgment circuit 3 described above, and the threshold value given by the character region threshold value calculation circuit 4 or the photoregion threshold value is selected. The threshold value indicated by the dither pattern of the calculation circuit 6 or the threshold value given by the threshold value calculation circuit 5 for the intermediate region is selectively extracted as the threshold value for performing the N-value conversion process on the image information. Then, the image information read from the line buffer 1, delayed by a predetermined timing via the delay circuit 8 and guided to the comparison circuit 9 is N-valued by the threshold value extracted via the threshold value selection circuit 7. Is output.

【0043】例えば、図10の(a)に示すような写真
画像を処理した場合について説明する。このような画像
の背景から対象物に変わる領域は図10の(b)にその
濃度プロフィールを示すように比較的最大濃度差(ΔD
max )が大きい。このため、図10の(c)に示す従来
の方法で判別すると文字領域と判定され、図10の
(d)に示すように背景と対象物の境界のみが強調され
てしまう目障りな画像になってしまう。これに対して、
同じ画像を本実施例の方式で領域を判別すると「中間領
域」として判定されるため、図10の(e)に示すよう
に従来の方法よりも閾値が少し高くなる。その結果、図
10の(f)に示すように出力画像は、入力画像に近い
形で再現され、従来法のようにエッジのみが強調される
ことがない。
For example, a case where a photographic image as shown in FIG. 10A is processed will be described. As shown in the density profile of FIG. 10B, the area in which the background of the image changes to the target object has a relatively maximum density difference (ΔD).
max) is large. For this reason, if the conventional method shown in FIG. 10C is used, it is determined as a character area, and as shown in FIG. 10D, only the boundary between the background and the object is emphasized, resulting in an unpleasant image. Will end up. On the contrary,
When a region of the same image is discriminated by the method of this embodiment, the region is discriminated as an "intermediate region", so that the threshold value is slightly higher than that of the conventional method as shown in FIG. As a result, the output image is reproduced in a form close to the input image as shown in FIG. 10 (f), and only the edges are not emphasized unlike the conventional method.

【0044】また、図11の(a)に示すようなコント
ラストの低い文字画像においては、図11の(b)に示
すように最大濃度差が比較的小さいため、図11の
(c)に示すように従来の方法では写真と判定され、出
力画像は図11の(d)に示す濃度が低いぼやけた画像
になってしまう。これに対して同じ画像を本方式で領域
を判別すると、図11の(e)に示すようにこのような
領域も中間領域と判定されて閾値が多少低くなるので、
出力画像は図11の(f)に示すようにコントラストが
強調されて従来よりもシャープな画像となる。
Further, in a character image having a low contrast as shown in FIG. 11A, the maximum density difference is relatively small as shown in FIG. 11B, so that it is shown in FIG. 11C. As described above, according to the conventional method, the image is determined to be a photograph, and the output image is a blurred image with low density as shown in FIG. On the other hand, if the same image is used to discriminate an area by this method, such an area is also determined to be an intermediate area and the threshold value becomes slightly lower, as shown in (e) of FIG.
As shown in FIG. 11 (f), the output image has a sharper contrast and becomes a sharper image than before.

【0045】以上説明したように上記実施例によれば、
文字と写真の中間領域と思われる領域は、コントラスト
を重視した文字処理の閾値と階調性を重視した写真処理
の閾値の中間の閾値となるように設定されるため、文字
と写真を誤って判定した場合でも誤判定領域が目立ちに
くい画像を得ることができる。
As described above, according to the above embodiment,
The area that seems to be the intermediate area between the text and the photo is set so as to be an intermediate threshold between the threshold for the character processing that emphasizes contrast and the threshold for the photo processing that emphasizes gradation. Even when the judgment is made, it is possible to obtain an image in which the erroneous judgment area is not noticeable.

【0046】なお、本発明は上述した実施例に限定され
るものではない。例えば特徴量を算出するための局所領
域の大きさは実施例に示した(5×5)画素の領域に限
られるものではなく、また動的閾値を算出するための局
所領域の大きさも、ここでは(3×3)画素としたが、
処理対象画像の解像度等に応じて可変可能である。ま
た、閾値の適応的な発生手段も可変可能であり、写真部
のN値化に用いるディザパターンも特に限定されない。
またそのディザマトリクスの大きさも限定されるもので
はなく、ディザパターンもドット分散型に閾値配置する
ことのみならず、ドット集中形式で閾値配置することも
可能である。
The present invention is not limited to the above embodiment. For example, the size of the local area for calculating the feature amount is not limited to the area of (5 × 5) pixels shown in the embodiment, and the size of the local area for calculating the dynamic threshold is Then, (3 × 3) pixels were used, but
It can be changed according to the resolution of the image to be processed. Further, the adaptive generation means of the threshold value can be changed, and the dither pattern used for N-value conversion of the photograph part is not particularly limited.
Further, the size of the dither matrix is not limited, and the dither pattern can be threshold-distributed as well as threshold-distributed.

【0047】さらには、上記実施例では読取り入力され
た画像情報からそのまま濃度情報を求めたが、この量を
画像濃度(反射率の逆数の対数)に変換した値を用いて
その特徴量を求めることも可能である。またここでは、
文字領域と写真領域とを分離する際の画像特徴情報とし
て最大濃度差を用いたが、その他の特徴情報を用いるこ
とももちろん可能である。その他本発明はその主旨を逸
脱しない範囲で種々変形して実施することが可能であ
る。
Furthermore, in the above embodiment, the density information is obtained as it is from the image information read and input, but the characteristic amount is obtained by using a value obtained by converting this amount into the image density (logarithm of the reciprocal of the reflectance). It is also possible. Also here
Although the maximum density difference is used as the image feature information when the character region and the photo region are separated, it is of course possible to use other feature information. Others The present invention can be variously modified and implemented without departing from the spirit of the invention.

【0048】[0048]

【発明の効果】以上詳述したようにこの発明によれば、
文字と写真が混在する画像を像域分離して各領域に適し
た処理を行う際に、文字と写真の中間領域で文字と写真
を誤って判定した場合でも誤判定領域が目立ちにくい画
像を得ることのできる画像処理装置を提供することがで
きる。
As described above in detail, according to the present invention,
When an image with mixed characters and photographs is separated into image areas and processed to suit each area, an image in which the erroneous judgment area is not noticeable is obtained even if the characters and pictures are erroneously judged in the intermediate area between the characters and pictures. It is possible to provide an image processing device that can do this.

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

【図1】本発明の一実施例に係わる画像処理装置の概略
構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】最大濃度差算出回路の構成例を示す図。FIG. 2 is a diagram showing a configuration example of a maximum density difference calculation circuit.

【図3】(5×5)画素の参照領域とディザパターンの
一例を示す図。
FIG. 3 is a diagram showing an example of a reference region of (5 × 5) pixels and a dither pattern.

【図4】(3×3)画素内の最大・最小値算出回路の構
成例を示す図。
FIG. 4 is a diagram showing a configuration example of a maximum / minimum value calculation circuit in a (3 × 3) pixel.

【図5】平均値算出回路の構成例を示す図。FIG. 5 is a diagram showing a configuration example of an average value calculation circuit.

【図6】補正平均値変換回路の構成例を示す図。FIG. 6 is a diagram showing a configuration example of a corrected average value conversion circuit.

【図7】動的閾値算出回路の構成例を示す図。FIG. 7 is a diagram showing a configuration example of a dynamic threshold calculation circuit.

【図8】中間領域の閾値算出回路の構成例を示す図。FIG. 8 is a diagram showing a configuration example of a threshold value calculation circuit in an intermediate area.

【図9】中間領域の閾値算出原理を説明するための図。FIG. 9 is a diagram for explaining a threshold calculation principle of an intermediate region.

【図10】写真画像の処理方法を説明するための図。FIG. 10 is a diagram for explaining a method of processing a photographic image.

【図11】文字画像の処理方法を説明するための図。FIG. 11 is a diagram for explaining a character image processing method.

【図12】写真画像の濃度プロフィールの例を示す図。FIG. 12 is a diagram showing an example of a density profile of a photographic image.

【図13】文字画像の濃度プロフィールの例を示す図。FIG. 13 is a diagram showing an example of a density profile of a character image.

【図14】エッジを含む写真画像の例と濃度プロフィー
ルを示す図。
FIG. 14 is a diagram showing an example of a photographic image including edges and a density profile.

【図15】コントラストの低い文字画像の例と濃度プロ
フィールを示す図。
FIG. 15 is a diagram showing an example of a character image having a low contrast and a density profile.

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

1…ラインバッファ 2…最大濃度差算出回路 3…文字/写真/中間領域判定回路 4…文字領域の閾値算出回路 5…中間領域の閾値算出回路 6…写真領域の閾値算出回路 7…閾値選択回路 8…遅延回路 9…比較回路 41…最大・最小値算出回路 42…平均値算出回路 43…補正平均値変換回路 44…動的閾値算出回路 DESCRIPTION OF SYMBOLS 1 ... Line buffer 2 ... Maximum density difference calculation circuit 3 ... Character / photo / intermediate area determination circuit 4 ... Character area threshold calculation circuit 5 ... Intermediate area threshold calculation circuit 6 ... Photo area threshold calculation circuit 7 ... Threshold selection circuit 8 ... Delay circuit 9 ... Comparison circuit 41 ... Maximum / minimum value calculation circuit 42 ... Average value calculation circuit 43 ... Corrected average value conversion circuit 44 ... Dynamic threshold value calculation circuit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 処理対象画像における注目画素を含む所
定範囲内の画像情報から、前記注目画素と周辺画素との
最大濃度差を算出する最大濃度差算出手段と、 この最大濃度差算出手段で算出された最大濃度差の値を
所定の閾値を用いて上記注目画素が文字領域、写真領
域、または中間領域かを判定する判定手段と、 上記注目画素を含む所定範囲内の画像情報から、文字領
域の動的閾値を算出する動的閾値算出手段と、 この動的閾値算出手段で算出された動的閾値と予め定め
られた固定閾値とから、上記最大濃度差算出手段で算出
された最大濃度差の値に応じて中間領域の閾値を算出す
る中間領域閾値算出手段と、 写真領域の画像情報を多値化するための閾値を設定する
写真領域の閾値設定手段と、 上記判定手段により上記注目画素が、文字領域に対応し
ていると判定された場合は上記動的閾値算出手段からの
動的閾値を選択し、中間領域に対応していると判定され
た場合は上記中間領域閾値算出手段からの閾値を選択
し、写真領域に対応していると判定された場合は上記閾
値設定手段からの閾値を選択する閾値選択手段と、 この閾値選択手段で選択された閾値を用いて上記注目画
素の画像情報を多値化する多値化手段と、 を具備したことを特徴とする画像処理装置。
1. A maximum density difference calculating means for calculating a maximum density difference between the target pixel and a peripheral pixel from image information within a predetermined range including a target pixel in an image to be processed, and the maximum density difference calculating means. The determined maximum density difference value is determined using a predetermined threshold value to determine whether the pixel of interest is a character region, a photo region, or an intermediate region, and image information within a predetermined range including the pixel of interest is used to determine the character region. Of the maximum density difference calculated by the maximum density difference calculation means from the dynamic threshold calculation means for calculating the dynamic threshold value and the dynamic threshold value calculated by the dynamic threshold value calculation means and the predetermined fixed threshold value. Intermediate area threshold value calculating means for calculating the threshold value of the intermediate area according to the value of, the threshold value setting means for the photo area for setting the threshold value for multi-valued image information of the photo area, and the pixel of interest by the determination means But the character If it is determined to correspond to the area, select the dynamic threshold from the dynamic threshold calculation means, if it is determined to correspond to the intermediate area, the threshold from the intermediate area threshold calculation means If the image information of the pixel of interest is selected using the threshold value selecting means for selecting the threshold value from the threshold value setting means and the threshold value selected by the threshold value selecting means when it is determined to correspond to the photographic area. An image processing apparatus comprising: a multi-value conversion unit for converting the signal into multi-value.
【請求項2】 処理対象画像における注目画素を含む所
定範囲内の画像情報から、前記注目画素と周辺画素との
最大濃度差を算出する最大濃度差算出手段と、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の最大値と最小値を算出する最大最小値算出
手段と、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の平均値を算出する平均値算出手段と、 この平均値算出手段で算出された平均値を補正する補正
平均値変換手段と、 この補正平均値変換手段からの補正平均値と、上記最大
最小値算出手段からの最大値と最小値とから動的閾値を
算出する動的閾値算出手段と、 この動的閾値算出手段で算出された動的閾値と予め定め
られた固定閾値とから、上記最大濃度差算出手段で算出
された最大濃度差の値に応じて中間領域の閾値を算出す
る中間領域閾値算出手段と、 を具備したことを特徴とする画像処理装置。
2. A maximum density difference calculating means for calculating a maximum density difference between the target pixel and peripheral pixels from image information within a predetermined range including the target pixel in the processing target image, and within a predetermined range including the target pixel. The maximum and minimum value calculating means for calculating the maximum value and the minimum value in the predetermined reference area from the image information of 1., and the average value in the predetermined reference area from the image information in the predetermined range including the pixel of interest. Average value calculating means, corrected average value converting means for correcting the average value calculated by the average value calculating means, corrected average value from the corrected average value converting means, and maximum value from the maximum / minimum value calculating means And a minimum value, a dynamic threshold value calculating means for calculating a dynamic threshold value, and a dynamic threshold value calculated by the dynamic threshold value calculating means and a predetermined fixed threshold value are calculated by the maximum density difference calculating means. The maximum density difference Flip the image processing apparatus characterized by comprising an intermediate region threshold calculating means for calculating a threshold value of the intermediate region.
【請求項3】 処理対象画像における注目画素を含む所
定範囲内の画像情報から、前記注目画素と周辺画素との
最大濃度差を算出する最大濃度差算出手段と、 この最大濃度差算出手段で算出された最大濃度差の値を
所定の閾値を用いて上記注目画素が文字領域、写真領
域、または中間領域かを判定する判定手段と、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の最大値、最小値を算出する最大最小値算出
手段と、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の平均値を算出する平均値算出手段と、 この平均値算出手段で算出された平均値を補正する補正
平均値変換手段と、 この補正平均値変換手段からの補正平均値と、上記最大
最小値算出手段からの最大値と最小値とから文字領域の
動的閾値を算出する動的閾値算出手段と、 この動的閾値算出手段で算出された動的閾値と予め定め
られた固定閾値とから、上記最大濃度差算出手段で算出
された最大濃度差の値に応じて中間領域の閾値を算出す
る中間領域閾値算出手段と、 写真領域の画像情報を多値化するための閾値を設定する
写真領域の閾値設定手段と、 上記判定手段により上記注目画素が、文字領域に対応し
ていると判定された場合は上記動的閾値算出手段からの
動的閾値を選択し、中間領域に対応していると判定され
た場合は上記中間領域閾値算出手段からの閾値を選択
し、写真領域に対応していると判定された場合は上記閾
値設定手段からの閾値を選択する閾値選択手段と、 を具備したことを特徴とする画像処理装置。
3. A maximum density difference calculating means for calculating the maximum density difference between the target pixel and peripheral pixels from image information within a predetermined range including the target pixel in the image to be processed, and the maximum density difference calculating means. Based on the determined maximum density difference value using a predetermined threshold value, a determination unit that determines whether the pixel of interest is a character region, a photographic region, or an intermediate region, and a predetermined range from image information within a predetermined range including the pixel of interest. A maximum / minimum value calculating means for calculating a maximum value and a minimum value in the reference area; and an average value calculating means for calculating an average value in the predetermined reference area from image information in a predetermined range including the pixel of interest. A corrected average value conversion means for correcting the average value calculated by the average value calculation means, a corrected average value from this corrected average value conversion means, and a maximum value and a minimum value from the maximum / minimum value calculation means. The dynamic threshold of Depending on the value of the maximum density difference calculated by the maximum density difference calculation means, from the dynamic threshold calculation means to be output, and the dynamic threshold calculated by this dynamic threshold calculation means and a predetermined fixed threshold value. An intermediate area threshold value calculation means for calculating a threshold value of the intermediate area, a photograph area threshold value setting means for setting a threshold value for converting the image information of the photograph area into a multi-valued value, and the pixel of interest by the determination means to be a character area. If it is determined that they correspond, select the dynamic threshold from the dynamic threshold calculation means, and if it is determined that they correspond to the intermediate area, select the threshold from the intermediate area threshold calculation means. An image processing apparatus comprising: a threshold selecting unit that selects a threshold from the threshold setting unit when it is determined that the region corresponds to a photographic region.
【請求項4】 処理対象画像における注目画素を含む所
定範囲内の画像情報から、前記注目画素と周辺画素との
最大濃度差を算出し、 この算出された最大濃度差の値を所定の閾値を用いて上
記注目画素が文字領域、写真領域、または中間領域かを
判定し、 上記注目画素を含む所定範囲内の画像情報から、文字領
域の動的閾値を算出し、 この算出された動的閾値と予め定められた固定閾値とか
ら、上記算出された最大濃度差の値に応じて中間領域の
閾値を算出し、 写真領域の画像情報を多値化するための閾値を設定し、 上記判定により上記注目画素が、文字領域に対応してい
ると判定された場合は上記文字領域の動的閾値を選択
し、中間領域に対応していると判定された場合は上記中
間領域の閾値を選択し、写真領域に対応していると判定
された場合は上記写真領域の閾値を選択し、 この選択された閾値を用いて上記注目画素の画像情報を
多値化するステップを有する方法。
4. A maximum density difference between the target pixel and peripheral pixels is calculated from image information in a predetermined range including the target pixel in the processing target image, and the calculated maximum density difference is set to a predetermined threshold value. It is used to determine whether the pixel of interest is a character region, a photo region, or an intermediate region, and a dynamic threshold of the character region is calculated from image information within a predetermined range including the pixel of interest, and the calculated dynamic threshold is calculated. And a preset fixed threshold value, the threshold value of the intermediate area is calculated according to the value of the calculated maximum density difference, and the threshold value for multivalued image information of the photographic area is set. If the pixel of interest is determined to correspond to the character area, the dynamic threshold of the character area is selected, and if it is determined to correspond to the intermediate area, the threshold of the intermediate area is selected. , Determined to be compatible with the photo area Comprising the step of selecting the threshold value of the photograph area, and multi-value image information of the target pixel using the selected threshold if.
【請求項5】 処理対象画像における注目画素を含む所
定範囲内の画像情報から、前記注目画素と周辺画素との
最大濃度差を算出し、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の最大値と最小値を算出し、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の平均値を算出し、 この算出された平均値を補正し、 この補正された補正平均値と上記算出された最大値と最
小値とから動的閾値を算出し、 この算出された動的閾値と予め定められた固定閾値とか
ら、上記算出された最大濃度差の値に応じて中間領域の
閾値を算出するステップを有する方法。
5. A maximum density difference between the target pixel and peripheral pixels is calculated from image information within a predetermined range including a target pixel in the processing target image, and a predetermined density is determined from image information within a predetermined range including the target pixel. The maximum value and the minimum value in the reference area are calculated, the average value in the predetermined reference area is calculated from the image information in the predetermined range including the target pixel, and the calculated average value is corrected. A dynamic threshold value is calculated from the corrected average value and the calculated maximum value and minimum value, and the calculated maximum density difference is calculated from the calculated dynamic threshold value and a predetermined fixed threshold value. A method comprising the step of calculating a threshold value of the intermediate region according to the value.
【請求項6】 処理対象画像における注目画素を含む所
定範囲内の画像情報から、前記注目画素と周辺画素との
最大濃度差を算出し、 この算出された最大濃度差の値を所定の閾値を用いて上
記注目画素が文字領域、写真領域、または中間領域かを
判定し、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の最大値、最小値を算出し、 上記注目画素を含む所定範囲内の画像情報から、所定の
参照領域内の平均値を算出し、 この算出された平均値を補正し、 この補正された補正平均値と上記算出された最大値と最
小値とから文字領域の動的閾値を算出し、 この算出された動的閾値と予め定められた固定閾値とか
ら、上記算出された最大濃度差の値に応じて中間領域の
閾値を算出し、 写真領域の画像情報を多値化するための閾値を設定し、 上記判定により上記注目画素が、文字領域に対応してい
ると判定された場合は文字領域の動的閾値を選択し、中
間領域に対応していると判定された場合は上記中間領域
の閾値を選択し、写真領域に対応していると判定された
場合は上記写真領域の閾値を選択するステップを有する
方法。
6. A maximum density difference between the target pixel and peripheral pixels is calculated from image information within a predetermined range including the target pixel in the image to be processed, and the calculated maximum density difference is set to a predetermined threshold value. It is used to determine whether the pixel of interest is a character region, a photo region, or an intermediate region, and the maximum value and the minimum value in a predetermined reference region are calculated from image information in a predetermined range including the pixel of interest, An average value in a predetermined reference area is calculated from image information in a predetermined range including pixels, the calculated average value is corrected, and the corrected average value thus corrected and the calculated maximum value and minimum value are calculated. Then, the dynamic threshold of the character area is calculated from, and the threshold of the intermediate area is calculated from the calculated dynamic threshold and the fixed threshold determined in advance according to the value of the calculated maximum density difference. Threshold for multi-valued image information of area If the pixel of interest is determined to correspond to the character area by the above determination, the dynamic threshold of the character area is selected, and if it is determined to correspond to the intermediate area, the intermediate value is set. A method comprising the step of selecting a threshold for a region and selecting the threshold for the photo region if determined to correspond to a photo region.
JP23498193A 1993-09-21 1993-09-21 Image processing apparatus and image processing method Expired - Fee Related JP3225138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23498193A JP3225138B2 (en) 1993-09-21 1993-09-21 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23498193A JP3225138B2 (en) 1993-09-21 1993-09-21 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JPH0795400A true JPH0795400A (en) 1995-04-07
JP3225138B2 JP3225138B2 (en) 2001-11-05

Family

ID=16979279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23498193A Expired - Fee Related JP3225138B2 (en) 1993-09-21 1993-09-21 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3225138B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007087190A (en) * 2005-09-22 2007-04-05 Fuji Xerox Co Ltd Image processing device and program
US7224843B2 (en) 2002-06-05 2007-05-29 Samsung Electronics Co., Ltd. Apparatus for binary-coding image and method using the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7224843B2 (en) 2002-06-05 2007-05-29 Samsung Electronics Co., Ltd. Apparatus for binary-coding image and method using the same
JP2007087190A (en) * 2005-09-22 2007-04-05 Fuji Xerox Co Ltd Image processing device and program

Also Published As

Publication number Publication date
JP3225138B2 (en) 2001-11-05

Similar Documents

Publication Publication Date Title
JP3392798B2 (en) Image attribute determination method and apparatus
US5327262A (en) Automatic image segmentation with smoothing
JPH05227425A (en) Improvement in automatic image segmentation
JPH02253765A (en) Picture processor
JP3100383B2 (en) Character region separation method and apparatus
JP3142279B2 (en) Halftone dot area separation device
JP2784278B2 (en) Image scaling processor
JP3225138B2 (en) Image processing apparatus and image processing method
JPH04248766A (en) Image area separation system
JP2851724B2 (en) Image processing device
JPH0775395B2 (en) Image processing device
JP3253140B2 (en) Image processing device
JPH06152947A (en) Image processor
JP2962742B2 (en) Image processing device
JPH05176168A (en) Adaptive halftone processing system
JP3115065B2 (en) Image information edge enhancement device
JPH05292312A (en) Dot area separator
JPH08116454A (en) Image processing unit
JP2757868B2 (en) Image information binarization processing circuit
JP2778669B2 (en) Halftone area detection method
JPH05197838A (en) Image processor
JPH03219774A (en) Picture processor
JP3691175B2 (en) Image processing method
JPH08191387A (en) Image processor
JPH01137378A (en) Picture processing system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees