[go: up one dir, main page]

JP2002044444A - Image processor - Google Patents

Image processor

Info

Publication number
JP2002044444A
JP2002044444A JP2000220177A JP2000220177A JP2002044444A JP 2002044444 A JP2002044444 A JP 2002044444A JP 2000220177 A JP2000220177 A JP 2000220177A JP 2000220177 A JP2000220177 A JP 2000220177A JP 2002044444 A JP2002044444 A JP 2002044444A
Authority
JP
Japan
Prior art keywords
value
pixel
processing
character
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000220177A
Other languages
Japanese (ja)
Inventor
Kenji Furuyama
健司 古山
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2000220177A priority Critical patent/JP2002044444A/en
Publication of JP2002044444A publication Critical patent/JP2002044444A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image processor in which character/pattern separation of binarized image data can be carried out well, even when it is performed by varying the degree of adjustment of the threshold at the time of binarization. SOLUTION: Mean value of respective pixels in a first region is calculated (S102) from the first region including the objective pixel being binarized by a binarization means 17, the mean value of respective pixels in a second region is calculated (S103) from a second region which is larger than the first region including the objective pixel, and then the means values and compared (S104). Based on the comparison results, the binarization means 17 the degree of adjustment for threshold is varied at the time of binarizing the objective pixel (S109-S111).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像データに対す
る二値化処理を行う画像処理装置に関し、特に文字/絵
柄分離処理等の前処理として二値化処理を行う画像処理
装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for performing binarization processing on image data, and more particularly to an image processing apparatus for performing binarization processing as preprocessing such as character / picture separation processing.

【0002】[0002]

【従来の技術】複写機やプリンタ装置等に用いられる画
像処理装置の中には、出力画像の高画質化を図るべく、
出力すべき画像データに対して文字/絵柄分離処理を行
う機能を有したものがある。文字/絵柄分離処理を行う
画像処理装置としては、例えば特開平2−294885
号公報に開示されているように、入力された画像データ
に対して二値化処理を行った後に、小領域抽出処理(い
わゆる細らせ太らせ処理)および論理演算を行うこと
で、文字領域と絵柄領域の分離を行うものが知られてい
る。すなわち、通常、文字/絵柄分離処理を行うために
は、それに先立って画像データに対する二値化処理が行
われる。
2. Description of the Related Art Some image processing apparatuses used in copiers, printers, and the like are designed to improve the quality of output images.
Some have a function of performing character / picture separation processing on image data to be output. As an image processing apparatus for performing character / picture separation processing, for example, Japanese Patent Application Laid-Open No. 2-294885
As disclosed in Japanese Unexamined Patent Application Publication No. H10-260, after performing binarization processing on input image data, a small area extraction processing (so-called thinning / thickening processing) and a logical operation are performed to obtain a character area. And a device for separating a picture region. That is, normally, in order to perform the character / picture separation processing, the binarization processing is performed on the image data prior to the processing.

【0003】二値化処理としては、一般に、固定二値化
や浮動二値化等が知られている。固定二値化は、予め固
定的に設定された閾値を基準にして、画像データを構成
する画素毎に二値化処理を行う手法である。また、浮動
二値化は、二値化処理の対象となる注目画素に応じて閾
値を調整しつつ二値化処理を行う手法である。なお、浮
動二値化における閾値の調整は、例えば注目画素の周辺
領域の濃度値に応じて行われる。すなわち、浮動二値化
における閾値は、周辺領域の濃度値とその濃度値から一
義的に定まるオフセット値との和によって定まるが、そ
のオフセット値を周辺領域の濃度値に応じて可変させる
ことで、閾値の調整が行われる。
As the binarization processing, fixed binarization, floating binarization and the like are generally known. The fixed binarization is a method of performing a binarization process for each pixel constituting the image data based on a fixed threshold set in advance. Floating binarization is a method of performing binarization processing while adjusting a threshold value according to a target pixel to be binarized. The adjustment of the threshold value in the floating binarization is performed according to, for example, the density value of the peripheral region of the target pixel. That is, the threshold value in the floating binarization is determined by the sum of the density value of the peripheral area and the offset value uniquely determined from the density value, but by changing the offset value according to the density value of the peripheral area, Adjustment of the threshold is performed.

【0004】ところで、文字/絵柄分離処理のために二
値化処理を行う場合、文字等については精細性を保つた
めに閾値を高く設定する必要がある。これに対して、中
間調画像や網点画像等については連続化を行って小領域
抽出処理で絵柄と判定するために閾値を低く設定する必
要がある。そのため、閾値が固定的である固定二値化で
は文字/絵柄分離処理を良好に行えないおそれがあるこ
とから、従来、文字/絵柄分離処理のための二値化処理
には、主に浮動二値化が用いられている。浮動二値化で
は、オフセット値の可変により閾値を調整し得るので、
文字/絵柄分離処理を行う場合であっても、固定二値化
の場合に比べてその分離を良好に行えるようになる。
When performing binarization processing for character / picture separation processing, it is necessary to set a high threshold value for characters and the like in order to maintain fineness. On the other hand, it is necessary to set a low threshold value for a halftone image, a halftone image, and the like in order to perform continuity and determine a pattern in the small area extraction processing. For this reason, there is a possibility that the character / pattern separation processing cannot be performed favorably with fixed binarization in which the threshold value is fixed. Valuation is used. In the floating binarization, the threshold can be adjusted by changing the offset value.
Even when the character / pattern separation processing is performed, the separation can be performed better than in the case of fixed binarization.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来の
画像処理装置では、文字/絵柄分離処理のための二値化
処理として浮動二値化を行っても、その閾値調整の基と
なるオフセット値が注目画素の周辺領域の濃度値によっ
て一義的に定められるので、結果として文字/絵柄分離
処理を良好に行えない場合もあり得る。
However, in the conventional image processing apparatus, even if floating binarization is performed as binarization processing for character / pattern separation processing, the offset value serving as a basis for adjusting the threshold value is not changed. Since it is uniquely determined by the density value of the peripheral area of the target pixel, the character / picture separation processing may not be performed well as a result.

【0006】例えば、グレー背景中の白抜き文字に係る
画像データについて文字/絵柄分離処理を行う場合に
は、その白抜き文字が込み入った漢字(画数の多い漢
字)等であると、周辺領域の濃度値を基にして浮動二値
化を行っても、その漢字内部が白抜き文字であるか白背
景中の黒文字であるか区別できない。そのため、白抜き
文字については、絵柄として処理したほうが出力時に階
調性を十分に表現できることから高画質化を図る上で好
ましいにもかかわらず、白背景中の黒文字と判定されて
しまうことがある。このような事態を回避するために、
閾値の調整範囲を全体的に低く設定して、白抜き文字が
連続化により絵柄と判定されるようにすることも考えら
れるが、その場合には、例えば6ポイントゴシック文字
の「書」のような、文字内部の白い部分が比較的少ない
漢字やラダーの一部等も連続化されてしまうため、白背
景中の黒文字であっても絵柄と判定される可能性があ
る。
For example, in the case of performing character / pattern separation processing on image data relating to outline characters in a gray background, if the outline character is a complicated kanji (a kanji with many strokes) or the like, the surrounding region Even if floating binarization is performed based on the density value, it cannot be distinguished whether the kanji is a white character or a black character on a white background. For this reason, white characters may be determined as black characters on a white background, although it is preferable to process white characters as a pattern, since it is preferable to achieve high image quality because gradation can be sufficiently expressed at the time of output. . To avoid this situation,
It is conceivable to set the adjustment range of the threshold value as a whole low so that white characters are determined to be patterns by continuity, but in this case, for example, such as a six-point Gothic character "" Note that, since kanji and a part of a ladder having a relatively small white portion inside the character are also continuous, even a black character on a white background may be determined as a picture.

【0007】これに対して、例えば特開平10−155
081号公報には、原稿の下地レベルを調べて二値化処
理の際の閾値を一義的に可変設定することで、白黒反転
処理された文字部分についての判定を確実化させる装置
が開示されている。ところが、かかる装置では、例えば
カバレッジ量の高い網点画像等については黒背景中に白
抜き部分が存在する場合との違いを識別することができ
ないので、その網点画像等を文字として判定してしまう
可能性がある。
On the other hand, for example, Japanese Patent Application Laid-Open No. 10-155
Japanese Patent Application Publication No. 081 discloses an apparatus that checks the background level of a document and variably sets a threshold value in a binarization process to uniquely determine a character portion subjected to black-and-white inversion processing. I have. However, in such a device, for example, a halftone image having a high coverage amount cannot be distinguished from a case where a white portion exists in a black background, so that the halftone image or the like is determined as a character. May be lost.

【0008】そこで、本発明は、二値化処理の際の閾値
を一義的に調整するのではなく、その調整度合いを可変
させることによって、その二値化処理後の画像データに
対して文字/絵柄分離処理等の後処理を行う場合であっ
ても、その後処理を良好に行うことを可能にする画像処
理装置の提供を目的とする。
Accordingly, the present invention does not univocally adjust the threshold value in the binarization processing, but varies the degree of the adjustment so that the image data after the binarization processing can have a character / character value. It is an object of the present invention to provide an image processing apparatus capable of performing a subsequent process satisfactorily even when performing a post-process such as a pattern separation process.

【0009】[0009]

【課題を解決するための手段】本発明は上記目的を達成
するために案出された画像処理装置で、入力された画像
データに対してその画像データを構成する画素毎に二値
化処理を行う二値化手段と、その二値化手段での二値化
処理の対象となる注目画素を含む所定の大きさの第1領
域についてその第1領域を構成する各画素から求まる第
1の値を算出する第1の算出手段と、前記注目画素を含
む前記第1領域よりも大きい第2領域についてその第2
領域を構成する各画素から求まる第2の値を算出する第
2の算出手段と、前記第1の算出手段が算出した第1の
値と前記第2の算出手段が算出した第2の値とを互いに
比較する比較手段と、前記比較手段での比較の結果に基
づいて前記二値化手段が前記注目画素について二値化処
理を行う際の閾値調整の度合いを可変させるオフセット
決定手段とを備えることを特徴とするものである。
SUMMARY OF THE INVENTION The present invention is directed to an image processing apparatus devised to achieve the above object, and performs a binarization process on input image data for each pixel constituting the image data. Binarization means to be performed, and a first value obtained from each pixel constituting the first area for a first area of a predetermined size including a target pixel to be binarized by the binarization means And a second calculating means for calculating a second area larger than the first area including the target pixel.
A second calculating means for calculating a second value obtained from each pixel constituting the area, a first value calculated by the first calculating means, and a second value calculated by the second calculating means. , And offset determining means for varying the degree of threshold adjustment when the binarizing means performs the binarizing process on the pixel of interest based on the result of the comparison by the comparing means. It is characterized by the following.

【0010】上記構成の画像処理装置によれば、第1の
算出手段は、注目画素を含む所定の大きさの第1領域に
ついて、例えば各画素の濃度値の平均または和を、第1
の値として算出する。また、第2の算出手段は、注目画
素を含む第1領域よりも大きい第2領域について、例え
ば各画素の濃度値の平均または和を、第2の値として算
出する。そして、比較手段による第1の値と第2の値と
の比較結果に基づいて、オフセット決定手段は、二値化
処理を行う際の閾値調整の度合いを可変させる。例え
ば、注目画素が所定色背景の白抜き文字領域に属するも
のであれば、第1の値よりも第2の値が大きくなるの
で、閾値の調整範囲を全体的に低くし、注目画素が白背
景の黒文字領域に属するものであれば、第1の値よりも
第2の値が小さくなるので、閾値の調整範囲を全体的に
高くする、閾値調整の度合いを可変させる。したがっ
て、その調整後の閾値を基準にして二値化手段が注目画
素についての二値化処理を行えば、その二値化処理後の
画像データに対して文字/絵柄分離処理等の後処理を行
う場合であっても、その後処理を良好に行い得るように
なる。
According to the image processing apparatus having the above configuration, the first calculating means calculates, for the first region of a predetermined size including the pixel of interest, for example, the average or sum of the density values of each pixel.
Is calculated. The second calculating means calculates, for the second region larger than the first region including the pixel of interest, for example, the average or the sum of the density values of each pixel as the second value. Then, based on the result of comparison between the first value and the second value by the comparing means, the offset determining means varies the degree of threshold adjustment when performing the binarization processing. For example, if the pixel of interest belongs to an outlined character area with a predetermined color background, the second value is larger than the first value. If the pixel belongs to the background black character area, the second value is smaller than the first value. Therefore, the adjustment range of the threshold value is increased as a whole, and the degree of threshold adjustment is varied. Therefore, if the binarizing means performs the binarizing process on the pixel of interest based on the adjusted threshold value, post-processing such as character / pattern separation processing is performed on the image data after the binarizing process. Even if it is performed, the processing can be performed well thereafter.

【0011】[0011]

【発明の実施の形態】以下、図面に基づき本発明に係る
画像処理装置について説明する。ただし、本実施形態で
は、文字/絵柄分離処理の前処理として二値化処理を行
う画像処理装置を例に挙げて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing apparatus according to the present invention will be described below with reference to the drawings. However, in the present embodiment, an image processing apparatus that performs a binarization process as a pre-process of a character / picture separation process will be described as an example.

【0012】〔画像処理装置の概要の説明〕図1は、本
実施形態で説明する画像処理装置の概略構成を示すブロ
ック図である。図例のように、本実施形態の画像処理装
置は、平均値算出部11と、平均値比較部12と、オフ
セット値関数決定部13と、オフセット値決定部14
と、加算部15と、リミット部16と、二値化処理部1
7と、図示しない像域分離処理部と、から構成されてい
る。
[Outline of Image Processing Apparatus] FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus described in this embodiment. As shown in the figure, the image processing apparatus according to the present embodiment includes an average value calculation unit 11, an average value comparison unit 12, an offset value function determination unit 13, and an offset value determination unit 14.
, An adder 15, a limiter 16, and a binarization processor 1.
7 and an image area separation processing unit (not shown).

【0013】このような構成によって、画像処理装置
は、以下に述べるような処理動作を行うようになってい
る。先ず、画像処理装置では、図示しないスキャナ装置
から、またはネットワークを通じて、画像データの入力
があると、平均値算出部11が、その画像データを構成
する画素データを順次FIFO(First In−First Ou
t)メモリに格納する(ステップ101、以下ステップ
を「S」と略す)。
With such a configuration, the image processing apparatus performs the following processing operation. First, in the image processing apparatus, when image data is input from a scanner device (not shown) or via a network, the average value calculation unit 11 sequentially converts pixel data constituting the image data into a FIFO (First In-First Ou).
t) Store the data in a memory (Step 101; hereinafter, steps are abbreviated as “S”).

【0014】そして、平均値算出部11は、二値化処理
の対象となる注目画素を含む3画素×3画素の大きさの
第1領域について、その第1領域を構成する各画素デー
タの濃度値の平均を第1の値として算出するとともに
(S102)、その注目画素を含む5画素×5画素の大
きさの第2領域について、その第2領域を構成する各画
素データの濃度値の平均を第2の値として算出する(S
103)。このとき、第1領域および第2領域は、第1
領域よりも第2領域が大きければ、それぞれ3画素×3
画素、5画素×5画素の大きさには限られず、任意に決
定してもよい。また、第1の値および第2の値について
も、各画素データの濃度値の平均ではなく、各画素デー
タの濃度値の和を算出するようにしてもよい。
The average value calculating section 11 calculates the density of each pixel data constituting the first area for the first area of 3 × 3 pixels including the target pixel to be binarized. The average of the values is calculated as the first value (S102), and the average of the density values of the pixel data constituting the second area of the second area of 5 × 5 pixels including the target pixel is calculated. Is calculated as a second value (S
103). At this time, the first area and the second area correspond to the first area.
If the second area is larger than the area, 3 pixels × 3
The size of the pixel is not limited to 5 pixels × 5 pixels, and may be arbitrarily determined. As for the first value and the second value, the sum of the density values of the respective pixel data may be calculated instead of the average of the density values of the respective pixel data.

【0015】平均値算出部11が第1の値(以下「3×
3平均値」という)および第2の値(以下「5×5平均
値」という)を算出すると、続いて、画像処理装置で
は、平均値比較部12が、それぞれの算出結果を互いに
比較して、どちらの値が大きいかを判断する(S10
4)。
The average value calculator 11 calculates the first value (hereinafter referred to as “3 ×
After calculating the “3 average value” and the second value (hereinafter referred to as “5 × 5 average value”), in the image processing apparatus, the average value comparison unit 12 compares the respective calculation results with each other. , Which value is larger (S10
4).

【0016】また、オフセット値関数決定部13は、平
均値算出部11による3×3平均値または5×5平均値
を、それぞれ2ライン分のFIFOメモリに順次格納し
ておき(S105,S106)、その格納されたそれぞ
れの内容に基づいて、二値化処理に必要なオフセット値
を決定するためのオフセット関数を決定する(S10
7,S108)。このとき、オフセット値関数決定部1
3では、詳細を後述するように、文字用オフセット値決
定関数および絵柄用オフセット値決定関数といった、異
なる二つのオフセット関数を決定する。そして、これら
のうちのいずれか一方を、平均値比較部12による3×
3平均値と5×5平均値との比較結果を基にして選択す
る(S109)。
Further, the offset value function determining section 13 sequentially stores the 3 × 3 average value or the 5 × 5 average value by the average value calculating section 11 in the FIFO memory for two lines, respectively (S105, S106). , An offset function for determining an offset value required for the binarization processing is determined based on the stored contents (S10).
7, S108). At this time, the offset value function determining unit 1
In step 3, two different offset functions such as a character offset value determination function and a picture offset value determination function are determined, as will be described in detail later. Then, any one of them is determined by 3 ×
The selection is made based on the comparison result between the 3 average value and the 5 × 5 average value (S109).

【0017】オフセット値関数決定部13がいずれか一
方のオフセット関数を選択すると、続いて、画像処理装
置では、そのオフセット関数を用いてオフセット値決定
部14が注目画素についてのオフセット値の算出処理を
行うとともに(S110)、加算部15が算出されたオ
フセット値を3×3平均値または5×5平均値に加算し
て(S111)、その加算結果を注目画素に対する二値
化処理を行う際の閾値とする。そして、リミット部16
によるリミット処理(S112)を経た後の閾値を基準
にしつつ、二値化処理部17が比較器を用いて注目画素
ついての二値化処理を行う(S113)。
When the offset value function determining unit 13 selects one of the offset functions, the offset value determining unit 14 in the image processing apparatus uses the offset function to calculate the offset value for the pixel of interest. At the same time (S110), the addition unit 15 adds the calculated offset value to the 3 × 3 average value or the 5 × 5 average value (S111), and performs the binarization process on the pixel of interest based on the addition result. The threshold is used. And the limit unit 16
The binarization processing unit 17 performs a binarization process on the pixel of interest using a comparator while referring to the threshold value after the limit process (S112) by (S113).

【0018】このようにして二値化処理が終了すると、
その後、画像処理装置では、像域分離処理部が、その二
値化処理の後処理として、二値化処理後の画像データに
対する文字/絵柄分離処理を行う。
When the binarization process is completed as described above,
Thereafter, in the image processing apparatus, the image area separation processing unit performs a character / picture separation processing on the image data after the binarization processing as a post-processing of the binarization processing.

【0019】〔オフセット関数の決定の説明〕次に、以
上に述べた画像処理装置での処理動作のうち、オフセッ
ト値関数決定部13によるオフセット関数の決定につい
て、さらに詳しく説明する。図2はオフセット関数決定
時に用いるウィンドウの一例を示す説明図であり、図3
はそのウィンドウ内の各差分の一例を示す説明図であ
り、図4は文字用オフセット値決定関数の基になる切片
決定関数および傾き決定関数の一例を示す説明図であ
り、図5は文字用オフセット値決定関数および絵柄用オ
フセット値決定関数の一例を示す説明図であり、図6は
絵柄用オフセット値決定関数の基になる切片決定関数お
よび傾き決定関数の一例を示す説明図である。
[Explanation of Determination of Offset Function] Next, among the processing operations of the image processing apparatus described above, determination of the offset function by the offset value function determination unit 13 will be described in further detail. FIG. 2 is an explanatory diagram showing an example of a window used when the offset function is determined.
FIG. 4 is an explanatory diagram showing an example of each difference in the window, FIG. 4 is an explanatory diagram showing an example of an intercept determining function and an inclination determining function on which a character offset value determining function is based, and FIG. FIG. 6 is an explanatory diagram showing an example of an offset value determining function and a picture offset value determining function, and FIG. 6 is an explanatory diagram showing an example of an intercept determining function and an inclination determining function that are the basis of the picture offset value determining function.

【0020】先ず、オフセット値関数決定部13では、
図2に示すようなウィンドウを作成すべく、2ライン分
のFIFOメモリに、2ライン前の3×3平均値または
5×5平均値(図中A〜E参照)、1ライン前の3×3
平均値または5×5平均値(図中F〜J参照)、2画素
前の3×3平均値または5×5平均値(図中K参照)、
1画素前の3×3平均値または5×5平均値(図中L参
照)および注目画素の画素値(図中※印参照)をそれぞ
れ格納する。
First, in the offset value function determining unit 13,
In order to create a window as shown in FIG. 2, a 3 × 3 average value or a 5 × 5 average value two lines before (see A to E in the figure) is stored in the FIFO memory for two lines. 3
Average value or 5 × 5 average value (see F to J in the figure), 3 × 3 average value or 5 × 5 average value two pixels before (see K in the figure),
The 3 × 3 average value or the 5 × 5 average value (see L in the figure) and the pixel value of the pixel of interest (see the * mark in the figure) are stored, respectively.

【0021】そして、オフセット値関数決定部13は、
上述したウィンドウを作成した後、図3(a)および
(b)に示すように、そのウィンドウ内の縦方向および
横方向の各差分dr1,dr2,dc1,dc2,dc3,dc4を
求める。オフセット値関数決定部13は、これらの各差
分dr1,dr2,dc1,dc2,dc3,dc4と、2ライン分
のFIFOメモリに格納された3×3平均値または5×
5平均値の最大値(MAX.)および最小値(MIN.)とを使
用して、上述した二つの異なるオフセット関数(文字用
オフセット値決定関数および絵柄用オフセット値決定関
数)を決定する。
Then, the offset value function determination unit 13
After the above-described window is created, the vertical and horizontal differences dr1, dr2, dc1, dc2, dc3, and dc4 in the window are obtained as shown in FIGS. 3 (a) and 3 (b). The offset value function determination unit 13 calculates the difference dr1, dr2, dc1, dc2, dc3, dc4 and the 3 × 3 average value or 5 × 3 average value stored in the FIFO memory for two lines.
5. Using the maximum value (MAX.) And the minimum value (MIN.) Of the average value, the two different offset functions (the character offset value determining function and the picture offset value determining function) are determined.

【0022】文字用オフセット値決定関数については、
次に述べるようにして決定する。通常、白背景中に描か
れた文字画像は、特に精細度が高い領域において、濃度
変動が大きいが、濃度値の最小値は小さい傾向にある。
したがって、d=〔{dr1,dr2},{dc1,dc2,dc
3,dc4}〕とした場合に、th1≧dまたはth2≦d、
th3≧平均値のMIN.をそれぞれ満たせば(ただし、th1
〜th3は予め設定された所定の基準値)、オフセット値
関数決定部13は、文字用オフセット値決定関数の決定
処理を行う。
For the character offset value determination function,
It is determined as described below. Normally, a character image drawn on a white background has a large density fluctuation particularly in a region with high definition, but the minimum value of the density value tends to be small.
Therefore, d = [{dr1, dr2}, {dc1, dc2, dc
3, dc4}], th1 ≧ d or th2 ≦ d,
If th3 ≥ the average value of MIN. (th1
Thth3 is a predetermined reference value set in advance), and the offset value function determination unit 13 performs a process of determining a character offset value determination function.

【0023】このとき、文字用オフセット値決定関数の
y切片は文字精細度を増すために大きいほうがよいの
で、オフセット値関数決定部13は、図4(a)に示す
ような所定の切片決定関数により、文字用オフセット値
決定関数のy切片を決定する。また、SP〜α間、β〜
EP間の傾きa1,a2については、図4(b)に示す
ような所定の傾き決定関数により決定する。なお、傾き
切り替えポイントであるα,βは、予めパラメータとし
て与えられているものとする。
At this time, it is preferable that the y-intercept of the character offset value determining function is large in order to increase the character definition, so that the offset value function determining unit 13 uses a predetermined intercept determining function as shown in FIG. Determines the y-intercept of the character offset value determination function. Also, between SP and α, β and
The slopes a1 and a2 between EPs are determined by a predetermined slope determination function as shown in FIG. It is assumed that α and β that are the inclination switching points are given as parameters in advance.

【0024】以上の処理によって、オフセット値関数決
定部13は、図5の上段側に示すように、例えば、y=
a1文*x+SP文(0≦x<α)、y=c文(α≦x
<β、ただしc文=a1文*α+SP文)、y=a2文
*x+b文(β≦x、ただしb文=c文−a2文*β)
といった、文字用オフセット値決定関数を決定する。
By the above-described processing, the offset value function determining unit 13 determines, for example, that y =
a1 sentence * x + SP sentence (0 ≦ x <α), y = c sentence (α ≦ x
<Β, where c sentence = a1 sentence * α + SP sentence, y = a2 sentence * x + b sentence (β ≤ x, where b sentence = c sentence-a2 sentence * β)
Is determined.

【0025】具体的には、例えば、差分平均dav2時
に、切片Spav2=k文dav2+l文(ただし、傾
き:k文,切片l文は予め設定)、a1傾きa1av2
=m1文*dav2+n1文(ただし、傾き:m1文,
切片n1文は予め設定)、a2傾きa2av2=m2文
*dav2+n2文(ただし、傾き:m2文,切片n2
文は予め設定)となるので、文字用オフセット値決定関
数は、以下のようになる。
More specifically, for example, at the time of the difference average dav2, the intercept Spav2 = k sentences dav2 + 1 sentences (however, the slope: k sentences and the intercept l sentences are preset), a1 slope a1av2
= M1 sentence * dav2 + n1 sentence (however, inclination: m1 sentence,
A2 slope a2av2 = m2 sentence * dav2 + n2 sentence (however, slope: m2 sentence, intercept n2)
Since the sentence is set in advance), the character offset value determination function is as follows.

【0026】y=a1av2*x+Spav2(0<
α) y=c文(α≦x<β) ここでc文=a1av2*α+Spav2 y=a2av2*x+b ここでb文=c文a2文*β したがって y=a2av2*x+a1av2*γ+Spav2−a
2文*β(β≦x)
Y = a1av2 * x + Spav2 (0 <
α) y = c sentence (α ≦ x <β) where c sentence = a1av2 * α + Spav2 y = a2av2 * x + b where b sentence = c sentence a2 sentence * β Therefore y = a2av2 * x + a1av2 * γ + Sav2-a
2 sentences * β (β ≦ x)

【0027】また、絵柄用オフセット値決定関数につい
ては、次に述べるようにして決定する。通常、グレー等
の色背景中に描かれた白抜き文字画像は、濃度変動が小
さいが、濃度値の最小値は中〜大きい傾向にある。した
がって、th1<d<th2、th3<平均値のMIN.をそれぞ
れ満たせば、オフセット値関数決定部13は、絵柄用オ
フセット値決定関数の決定処理を行う。
The picture offset value determining function is determined as described below. Normally, an outline character image drawn on a color background such as gray has a small density fluctuation, but the minimum density value tends to be medium to large. Therefore, if th1 <d <th2 and th3 <the average value of MIN. Are satisfied, the offset value function determination unit 13 performs a process of determining a picture offset value determination function.

【0028】このとき、絵柄が存在する領域については
つぶす処理(すべて二値化ON)をしたいので、オフセッ
ト値関数決定部13は、絵柄用オフセット値決定関数の
y切片を、図6(a)に示すような所定の切片決定関数
により決定する。この場合の傾きk絵および切片l絵
は、文字用オフセット値決定関数の場合と異なる。ま
た、傾きa1絵,a2絵については、図6(b)に示す
ような所定の傾き決定関数により決定する。なお、傾き
切り替えポイントであるγ,δは、予めパラメータとし
て与えられているものとする。
At this time, since it is desired to perform a crushing process (all binarization ON) for the area where the picture exists, the offset value function determination unit 13 determines the y-intercept of the picture offset value determination function as shown in FIG. Is determined by a predetermined intercept determination function as shown in FIG. In this case, the inclination k picture and the intercept l picture are different from the case of the character offset value determination function. The pictures a1 and a2 are determined by a predetermined slope determination function as shown in FIG. 6B. Note that γ and δ, which are the inclination switching points, are given as parameters in advance.

【0029】以上の処理によって、オフセット値関数決
定部13は、図5の下段側に示すように、例えば、y=
a1絵*x+SP絵(0≦γ)、y=c絵(γ≦x<
δ、ただしc絵=a1絵*β+SP絵)、y=a2絵*
x+b絵(δ≦x、ただしb絵=c絵−a2絵*δ)と
いった、絵柄用オフセット値決定関数を決定する。
By the above processing, the offset value function determining unit 13 can, for example, set y =
a1 picture * x + SP picture (0 ≦ γ), y = c picture (γ ≦ x <
δ, where c picture = a1 picture * β + SP picture), y = a2 picture *
A picture offset value determination function such as x + b picture (δ ≦ x, where b picture = c picture−a2 picture * δ) is determined.

【0030】具体的には、例えば、差分平均dav1時
に、切片Spav1=k絵dav1+l絵(ただし、傾
き:k絵,切片l絵は予め設定)、a1傾きa1av1
=m1絵*dav1+n1絵(ただし、傾き:m1絵,
切片n1絵は予め設定)、a2傾きa2av1=m2絵
*dav1+n2絵(ただし、傾き:m2絵,切片n2
絵は予め設定)となるので、絵柄用オフセット値決定関
数は、以下のようになる。
More specifically, for example, at the time of the difference average dav1, the intercept Spav1 = k pictures dav1 + l pictures (however, the inclination: k pictures, and the intercept l pictures are preset), a1 slope a1av1
= M1 picture * dav1 + n1 picture (however, inclination: m1 picture,
Picture n1 of section is set in advance), a2 slope a2av1 = m2 picture * dav1 + n2 picture (however, slope: m2 picture, section n2
Since the picture is set in advance), the picture offset value determination function is as follows.

【0031】y=a1av1*x+Spav1(0<
γ) y=c絵 =a1av1*γ+Spav1(γ≦x<δ) y=a2av1*x+b絵 b絵=c絵a2絵*δ =a2av1*x+a1av1*γ+Spav1−a2
文*δ(δ≦x)
Y = a1av1 * x + Spav1 (0 <
γ) y = c picture = a1av1 * γ + Spav1 (γ ≦ x <δ) y = a2av1 * x + b picture b picture = c picture a2 picture * δ = a2av1 * x + a1av1 * γ + Sav1-a2
Sentence * δ (δ ≦ x)

【0032】つまり、オフセット値関数決定部13は、
オフセット値を高いレベルで可変させるための文字用オ
フセット値決定関数と、オフセット値を低いレベルで可
変させるための絵柄用オフセット値決定関数とを、それ
ぞれ異なる二つのオフセット関数として決定する。
That is, the offset value function determining section 13
A character offset value determining function for varying the offset value at a high level and a picture offset value determining function for varying the offset value at a low level are determined as two different offset functions.

【0033】なお、オフセット値関数決定部13では、
文字用オフセット値決定関数または絵柄用オフセット値
決定関数の決定にあたって、3×3平均値または5×5
平均値の推移を考慮するようにしてもよい。すなわち、
各平均値を保持するレジスタを備えておき、そのレジス
タを用いて各平均値の推移(傾き)を把握し、その把握
結果に応じて、α、β、γ、δといったそれぞれの傾き
切り替えポイントを移動させるようにしてもよい。この
ようにすれば、白抜き文字や絵柄等のオブジェクト(画
像要素)に対しては、濃度平均が高い画素が連続するの
で、傾き切り替えポイントを左シフトさせることが可能
となり、二値化処理の際の連続化が容易になる。
The offset value function determining section 13
In determining the character offset value determining function or picture offset value determining function, 3 × 3 average value or 5 × 5
The transition of the average value may be considered. That is,
A register for holding each average value is provided, and the transition (slope) of each average value is grasped using the register. According to the grasp result, each slope switching point such as α, β, γ, δ is determined. You may make it move. In this way, for objects (image elements) such as outline characters and pictures, pixels having a high density average continue, so that the inclination switching point can be shifted to the left, and the binarization processing can be performed. Continuity is facilitated.

【0034】〔オフセット関数の選択の説明〕次に、先
に述べた画像処理装置での処理動作のうち、オフセット
値関数決定部13によるオフセット関数の選択につい
て、すなわち上述したように決定された二つのオフセッ
ト関数からいずれか一方を選択する場合の処理動作につ
いて、さらに詳しく説明する。
[Explanation of Selection of Offset Function] Next, among the processing operations of the image processing apparatus described above, the selection of the offset function by the offset value function determination unit 13, that is, the two functions determined as described above. The processing operation for selecting one of the two offset functions will be described in more detail.

【0035】オフセット値関数決定部13では、文字用
オフセット値決定関数および絵柄用オフセット値決定関
数を決定すると、これらのうちのいずれか一方を、平均
値比較部12による3×3平均値と5×5平均値との比
較結果を基にして選択する。
When the offset value function deciding unit 13 determines the character offset value deciding function and the picture offset value deciding function, one of them is compared with the 3 × 3 average value by the average value comparing unit 12 and 5 Selection is made based on the result of comparison with the × 5 average value.

【0036】このとき、注目画素が色背景中の白抜き文
字を構成するものであり、しかもその白抜き文字が
「国」や「間」等といった画数の多い込み入った漢字で
あれば、3×3平均値(局所的な平均値)は白背景中の
黒文字の場合と大差がないが、5×5平均値(大局的な
平均値)については色背景が含まれてくるため白背景中
の黒文字の場合よりも大きくなる。したがって、この場
合、平均値比較部12による比較結果は、3×3平均値
よりも5×5平均値が大きいと判断される。
At this time, if the pixel of interest constitutes an outline character in a color background, and the outline character is a complicated Chinese character such as "country" or "ma", which has a large number of strokes, 3 × 3 The average value (local average value) is not much different from the case of a black character in a white background, but the 5 × 5 average value (global average value) includes a color background, so It is larger than black characters. Therefore, in this case, it is determined that the comparison result by the average value comparison unit 12 has a 5 × 5 average value larger than the 3 × 3 average value.

【0037】また、注目画素が中間調画像や網点画像等
の絵柄を構成するものであれば、平均値比較部12によ
る比較結果は、3×3平均値と5×5平均値とが略同等
となる。
If the pixel of interest constitutes a pattern such as a halftone image or a halftone image, the comparison result by the average value comparing section 12 is approximately 3 × 3 average value and 5 × 5 average value. Be equivalent.

【0038】一方、注目画素が白背景中の黒文字を構成
するものであれば、その黒文字がどのような漢字であっ
ても、大局的にみれば白背景が含まれてくるため、平均
値比較部12による比較結果は、平均値3×3平均値よ
りも5×5平均値が小さいと判断される。
On the other hand, if the pixel of interest constitutes a black character in a white background, no matter what kind of kanji that black character is, a white background is included from a global perspective. As a result of the comparison by the unit 12, it is determined that the average value of 5 × 5 is smaller than the average value of 3 × 3.

【0039】これらのことから、オフセット値関数決定
部13は、平均値比較部12によって3×3平均値より
も5×5平均値が大きいか略同等と判断された場合に
は、注目画素が絵柄を構成すると考えられるため、二つ
のオフセット関数の中からオフセット値を低いレベルで
可変させる絵柄用オフセット値決定関数を選択する。ま
た、平均値比較部12によって3×3平均値よりも5×
5平均値が小さいと判断された場合には、注目画素が白
背景中の黒文字を構成すると考えられるため、二つのオ
フセット関数の中からオフセット値を高いレベルで可変
させる文字用オフセット値決定関数を選択する。
From these facts, when the average value comparing unit 12 determines that the 5 × 5 average value is larger than or approximately equal to the 3 × 3 average value, the offset value function determining unit 13 determines that the pixel of interest is Since it is considered that the picture constitutes a picture, a picture offset value determining function for changing the offset value at a low level is selected from the two offset functions. Also, the average value comparison unit 12 sets the average value to 5 × higher than the 3 × 3 average value.
5. If it is determined that the average value is small, the pixel of interest is considered to constitute a black character on a white background. Therefore, a character offset value determination function that varies the offset value at a high level from the two offset functions is used. select.

【0040】そして、オフセット値関数決定部13は、
注目画素毎に選択したいずれかのオフセット関数によっ
て、その注目画素についてのオフセット値をオフセット
値決定部14に算出させる。なお、オフセット値決定部
14によるオフセット値の算出以降、二値化処理部17
での二値化処理までは、従来の場合と大きな相違がない
ため、ここではその説明を省略する。
Then, the offset value function determining unit 13
The offset value for the pixel of interest is calculated by the offset value determination unit 14 using one of the offset functions selected for each pixel of interest. After the calculation of the offset value by the offset value determination unit 14, the binarization processing unit 17
Since there is no significant difference from the conventional case up to the binarization processing in, the description is omitted here.

【0041】〔文字/絵柄分離処理の説明〕次に、先に
述べた画像処理装置での処理動作のうち、像域分離処理
部による文字/絵柄分離処理について、すなわち上述し
たように算出されたオフセット値を用いて行った二値化
処理の後処理となる文字/絵柄分離処理について、さら
に詳しく説明する。図7は文字/絵柄分離のための小領
域抽出処理の一例を示す説明図であり、図8は文字/絵
柄分離処理の一例を示す説明図である。
[Explanation of Character / Picture Separation Processing] Next, of the processing operations in the image processing apparatus described above, the character / picture separation processing by the image area separation processing unit, that is, as described above, was calculated. The character / picture separation processing, which is a post-processing of the binarization processing performed using the offset value, will be described in further detail. FIG. 7 is an explanatory diagram showing an example of a small area extraction process for character / picture separation, and FIG. 8 is an explanatory diagram showing an example of a character / picture separation process.

【0042】像域分離処理部は、二値化処理部17によ
る二値化処理後の画像データに対して、小領域抽出処理
(いわゆる細らせ太らせ処理)および論理演算を行うこ
とで、文字領域と絵柄領域の分離を行う。例えば、図7
(a)に示すような中間調画像や網点画像等の絵柄画像
についての画像データと、図7(b)に示すような白背
景中の黒文字画像についての画像データが入力された場
合を考える。像域分離処理部は、絵柄画像および文字画
像いずれの画像データについても、その画素領域を収縮
させるとともに(いわゆる細らせ処理)、収縮後の画素
領域を再び膨張させる(いわゆる太らせ処理)。そし
て、論理演算を行うことで、膨張後の画素領域を白黒反
転させて、入力された画像データとのAND処理を行
う。
The image area separation processing section performs a small area extraction processing (so-called thinning and thickening processing) and a logical operation on the image data after the binarization processing by the binarization processing section 17, The character area and the picture area are separated. For example, FIG.
Consider a case where image data of a pattern image such as a halftone image or a halftone image as shown in FIG. 7A and image data of a black character image in a white background as shown in FIG. 7B are input. . The image area separation processing section shrinks the pixel area of each of the image data of the picture image and the character image (so-called thinning processing) and expands the contracted pixel area again (so-called thickening processing). Then, by performing a logical operation, the pixel area after expansion is inverted between black and white, and an AND process is performed with the input image data.

【0043】このAND処理によって、黒文字画像を表
す画像データについてはその黒文字を構成する文字部分
が抽出されるが、絵柄画像を表す画像データについては
何も抽出されなくなる。したがって、像域分離処理部
は、AND処理による抽出部分の有無を基にすること
で、入力された画像データに対して文字領域と絵柄領域
の分離を行い得るようになる。
As a result of the AND processing, the character portion constituting the black character is extracted from the image data representing the black character image, but nothing is extracted from the image data representing the picture image. Therefore, the image area separation processing section can separate the character area and the picture area from the input image data based on the presence or absence of the extracted portion by the AND processing.

【0044】このような文字/絵柄分離処理を行うため
には、画像データの二値化処理が必要となる。ただし、
像域分離処理部に入力される画像データは、上述したよ
うに、オフセット値関数決定部13が選択したオフセッ
ト関数によってオフセット値が算出され、そのオフセッ
ト値を基にした閾値を用いて二値化処理が行われてい
る。したがって、像域分離処理部による文字/絵柄分離
処理に際しては、以下に述べるような特徴が生じる。
In order to perform such a character / picture separation process, a binarization process of image data is required. However,
As described above, the offset value of the image data input to the image area separation processing unit is calculated by the offset function selected by the offset value function determination unit 13, and the image data is binarized using a threshold based on the offset value. Processing is taking place. Therefore, in the character / picture separation processing performed by the image area separation processing unit, the following characteristics occur.

【0045】例えば、図8(a)に示すように、二値化
処理後における色背景中の白抜き文字画像領域(特に白
抜き文字精細部)と、白背景中の黒文字画像領域(特に
黒文字精細部)とについて、文字/絵柄分離処理を行う
場合を考える。この場合、それぞれの文字精細部を横切
る仮想線(図中の一点鎖線参照)上での濃度レベルは、
図8(b)に示すようになる。
For example, as shown in FIG. 8 (a), a white character image area (particularly white character detail) in a color background after binarization processing and a black character image area (particularly black character image) in a white background Consider the case where character / picture separation processing is performed for (details). In this case, the density level on an imaginary line (see the dashed line in the figure) that crosses each character detail is
The result is as shown in FIG.

【0046】このような濃度レベルの各画像領域に対し
て、従来のような浮動二値化(または固定二値化)を行
うと、二値化処理のための閾値が一義的に例えば図8
(b)中ののレベルに定まるので、二値化処理の結果
が図8(c)に示すようになってしまい、文字精細部が
白抜き文字であるか黒文字であるか区別できない。その
ため、白抜き文字画像領域については、二値化処理後の
文字/絵柄分離処理において、絵柄領域として処理した
ほうが階調性の観点から好ましいにもかかわらず、黒文
字画像領域と判定されてしまう可能性がある。これを避
けるために、閾値の調整範囲を全体的に低く設定して例
えば図8(b)中ののレベルにすることも考えられる
が、その場合には図8(d)に示すように黒文字画像領
域も連続化されてしまうため、黒文字画像領域が絵柄領
域と判定されてしまう。
When the conventional floating binarization (or fixed binarization) is performed on each image area having such a density level, the threshold value for the binarization processing is uniquely determined, for example, as shown in FIG.
8B, the result of the binarization processing is as shown in FIG. 8C, and it is not possible to distinguish whether the character detail is a white character or a black character. Therefore, in the character / picture separation processing after the binarization processing, the white character image area may be determined to be a black character image area even though it is preferable from the viewpoint of gradation to process it as a picture area. There is. In order to avoid this, it is conceivable to set the adjustment range of the threshold value as a whole low, for example, to the level shown in FIG. 8B, but in this case, as shown in FIG. Since the image area is also continuous, the black character image area is determined as a picture area.

【0047】ところが、本実施形態の画像処理装置で
は、オフセット値関数決定部13が選択したオフセット
関数によってオフセット値を算出し、そのオフセット値
を基にした閾値を用いて二値化処理を行っている。
However, in the image processing apparatus according to the present embodiment, the offset value is calculated by the offset function selected by the offset value function determining unit 13, and the binarization process is performed by using a threshold based on the offset value. I have.

【0048】つまり、例えば白抜き文字画像領域につい
てであれば、3×3平均値よりも5×5平均値が大きい
ので、オフセット値を低いレベルで可変させる絵柄用オ
フセット値決定関数を選択する。そして、その絵柄用オ
フセット値決定関数によりオフセット値を算出して二値
化処理のための閾値を決定するので、その閾値も図8
(b)中ののような低いレベルとなる。そのため、二
値化処理の結果は、図8(e)に示すように、連続化さ
れたものとなる。
That is, for an outline character image area, for example, since the 5 × 5 average value is larger than the 3 × 3 average value, a pattern offset value determination function for varying the offset value at a low level is selected. Then, the offset value is calculated by the picture offset value determination function and the threshold value for the binarization process is determined.
(B) It is a low level as shown in the middle. Therefore, the result of the binarization processing is continuous as shown in FIG.

【0049】したがって、白抜き文字画像領域について
は、図8(f)に示すように、つぶされた(すべて二値
化ONされた)画像データに対して像域分離処理部が文字
/絵柄分離処理を行うことになるので、その文字/絵柄
分離処理によって絵柄領域と判定される。
Therefore, as shown in FIG. 8 (f), the image area separation processing unit performs the character / picture separation on the crushed (all binarized ON) image data in the outline character image area. Since the processing is performed, the character / picture separation processing is determined as a picture area.

【0050】一方、例えば黒文字画像領域についてであ
れば、3×3平均値よりも5×5平均値が小さいので、
オフセット値を高いレベルで可変させる文字用オフセッ
ト値決定関数を選択する。そして、その文字用オフセッ
ト値決定関数によりオフセット値を算出して二値化処理
のための閾値を決定するので、その閾値も図8(b)中
の′のような高いレベルとなる。そのため、二値化処
理の結果は、図8(e)に示すように、連続化されるこ
とのないものとなる。
On the other hand, for a black character image area, for example, the 5 × 5 average value is smaller than the 3 × 3 average value.
Select a character offset value determination function that changes the offset value at a high level. Then, the threshold value for the binarization process is determined by calculating the offset value using the character offset value determination function, and the threshold value also becomes a high level as indicated by 'in FIG. 8B. Therefore, as shown in FIG. 8E, the result of the binarization processing is not continuous.

【0051】したがって、黒文字画像領域については、
図8(f)に示すように、精細度が保たれた画像データ
に対して像域分離処理部が文字/絵柄分離処理を行うこ
とになるので、その文字/絵柄分離処理によって文字領
域と判定されることになる。
Therefore, for the black character image area,
As shown in FIG. 8 (f), the image area separation processing unit performs the character / picture separation processing on the image data of which the definition is maintained. Will be done.

【0052】以上のように、本実施形態の画像処理装置
では、平均値比較部12による3×3平均値と5×5平
均値との比較結果に基づいて、オフセット値関数決定部
13が文字用オフセット値決定関数と絵柄用オフセット
値決定関数とのいずれかを選択することで、二値化処理
部17が二値化処理を行う際の閾値調整の度合いを可変
させるようになっている。したがって、その調整後の閾
値を基準にして二値化処理部17が注目画素についての
二値化処理を行うことで、その二値化処理後の画像デー
タに対して像域分離処理部が文字/絵柄分離処理を行う
場合であっても、その文字/絵柄分離処理を良好に行う
ことができる。
As described above, in the image processing apparatus according to the present embodiment, the offset value function determining unit 13 determines the character based on the comparison result of the 3 × 3 average value and the 5 × 5 average value by the average value comparing unit 12. By selecting one of the image offset value determination function and the picture offset value determination function, the degree of threshold adjustment when the binarization processing unit 17 performs the binarization process is made variable. Therefore, the binarization processing unit 17 performs the binarization process on the target pixel based on the adjusted threshold value, so that the image area separation processing unit performs the text processing on the image data after the binarization process. Even in the case where the character / pattern separation processing is performed, the character / pattern separation processing can be favorably performed.

【0053】例えば、3×3平均値よりも5×5平均値
が大きいか略同等であれば、絵柄用オフセット値決定関
数の選択によって二値化処理のための閾値が低いレベル
に設定されるので、白抜き文字画像領域や絵柄画像領域
に属している注目画素に対し、二値化処理後の文字/絵
柄分離処理において正しい判定がなされるようになる。
そのため、白抜き文字画像領域や絵柄画像領域について
は、階調性を重視した画像処理を行えるようになり、結
果として画像データを出力する際の高画質化が図れるよ
うになる。
For example, if the 5 × 5 average value is larger than or approximately equal to the 3 × 3 average value, the threshold value for binarization processing is set to a low level by selecting the picture offset value determination function. Therefore, a correct determination is made in the character / picture separation processing after the binarization processing for the pixel of interest belonging to the outline character image area or the picture image area.
For this reason, it is possible to perform image processing with an emphasis on gradation in the outline character image area and the picture image area, and as a result, it is possible to achieve high image quality when outputting image data.

【0054】また、例えば、3×3平均値よりも5×5
平均値が小さければ、文字用オフセット値決定関数の選
択によって二値化処理のための閾値が高いレベルに設定
されるので、黒文字画像領域に属している注目画素に対
し、二値化処理後の文字/絵柄分離処理において正しい
判定がなされるようになる。そのため、黒文字画像領域
については、精細性や解像度等を重視した画像処理を行
えるようになり、結果として画像データを出力する際の
高画質化が図れるようになる。
For example, 5 × 5 than the 3 × 3 average value
If the average value is small, the threshold value for the binarization process is set to a high level by selecting the character offset value determination function, so that the pixel of interest belonging to the black character image region is subjected to the binarization process. Correct determination is made in the character / pattern separation process. Therefore, for the black character image area, image processing can be performed with emphasis on definition, resolution, and the like, and as a result, high image quality can be achieved when outputting image data.

【0055】つまり、本実施形態の画像処理装置によれ
ば、文字/絵柄分離処理を行うのにあたって、網点等の
絵柄に影響を与えることなく、白背景中の黒文字の精細
性を保ったまま、白抜き文字や背景に濃度を持った画像
等については連続化された二値化画像が得られるので、
文字/絵柄分離処理でのトレードオフ(誤判定)を解消
することができ、結果として画像出力時の高画質化を実
現できるようになる。
That is, according to the image processing apparatus of the present embodiment, in performing the character / pattern separation processing, the fineness of the black characters in the white background is maintained without affecting the patterns such as the halftone dots. For images with white characters or background density, a continuous binary image can be obtained.
A trade-off (erroneous determination) in the character / picture separation processing can be eliminated, and as a result, high image quality at the time of image output can be realized.

【0056】なお、本実施形態では、二値化処理後の後
処理として文字/絵柄分離処理を行う場合を例に挙げて
説明したが、本発明はこれに限定されるものではなく、
二値化処理を前提とするものであれば他の後処理(例え
ばスクリーン生成処理)であっても適用可能である。
In the present embodiment, the case where the character / picture separation processing is performed as the post-processing after the binarization processing has been described as an example. However, the present invention is not limited to this.
Other post-processing (for example, screen generation processing) can be applied as long as binarization processing is assumed.

【0057】また、本実施形態で説明したオフセット関
数は、一具体例に過ぎず、これに限定されるものではな
い。さらに、本実施形態では、オフセット関数を用いて
オフセット値を可変させることで、二値化処理のための
閾値調整を行う場合を例に挙げたが、他の手法により閾
値調整を行ってもよいことは勿論である。
The offset function described in the present embodiment is only a specific example, and the present invention is not limited to this. Further, in the present embodiment, the case where the threshold value adjustment for the binarization process is performed by varying the offset value using the offset function has been described as an example, but the threshold value adjustment may be performed by another method. Of course.

【0058】[0058]

【発明の効果】以上に説明したように、本発明の画像処
理装置は、平均手段による第1の値と第2の値との比較
結果に基づいて、オフセット決定手段が二値化処理を行
う際の閾値調整の度合いを可変させるようになってい
る。したがって、その調整後の閾値を基準にして二値化
処理を行うことで、その二値化処理後の画像データに対
して文字/絵柄分離処理等の後処理を行う場合であって
も、例えば網点等の絵柄に影響を与えることなく、白背
景中の黒文字の精細性を保ったまま、白抜き文字や背景
に濃度を持った画像等については連続化された二値化画
像が得られるので、後処理時のトレードオフ(誤判定)
を解消することができ、その後処理を良好に行うことが
できる。
As described above, in the image processing apparatus according to the present invention, the offset determination means performs the binarization processing based on the comparison result between the first value and the second value by the averaging means. In this case, the degree of threshold adjustment is variable. Therefore, by performing the binarization processing based on the adjusted threshold value, even when performing post-processing such as character / pattern separation processing on the image data after the binarization processing, for example, A continuous binarized image can be obtained for white characters or images having a density in the background while maintaining the definition of black characters in the white background without affecting the pattern such as halftone dots. Therefore, trade-off during post-processing (misjudgment)
Can be eliminated, and the processing can be performed favorably thereafter.

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

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

【図2】 オフセット関数決定時に用いるウィンドウの
一例を示す説明図である。
FIG. 2 is an explanatory diagram illustrating an example of a window used when an offset function is determined.

【図3】 図2に示すウィンドウ内の各差分の一例を示
す説明図であり、(a)は横方向の差分を示す図、
(b)は縦方向の差分を示す図である。
3A and 3B are explanatory diagrams illustrating an example of each difference in a window illustrated in FIG. 2; FIG. 3A illustrates a difference in a horizontal direction;
(B) is a figure which shows the difference of a vertical direction.

【図4】 文字用オフセット値決定関数の基になる切片
決定関数および傾き決定関数の一例を示す説明図であ
り、(a)は切片決定関数を示す図、(b)は傾き決定
関数を示す図である。
FIGS. 4A and 4B are explanatory diagrams illustrating an example of an intercept determination function and a gradient determination function serving as a basis of a character offset value determination function. FIG. 4A illustrates an intercept determination function, and FIG. 4B illustrates a gradient determination function. FIG.

【図5】 文字用オフセット値決定関数および絵柄用オ
フセット値決定関数の一例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a character offset value determination function and a picture offset value determination function.

【図6】 絵柄用オフセット値決定関数の基になる切片
決定関数および傾き決定関数の一例を示す説明図であ
り、(a)は切片決定関数を示す図、(b)は傾き決定
関数を示す図である。
FIGS. 6A and 6B are explanatory diagrams illustrating an example of an intercept determination function and a gradient determination function that are the basis of a picture offset value determination function, where FIG. 6A illustrates an intercept determination function and FIG. 6B illustrates a gradient determination function; FIG.

【図7】 文字/絵柄分離のための小領域抽出処理の一
例を示す説明図であり、(a)は絵柄画像についての処
理を示す図、(b)は黒文字画像についての処理を示す
図である。
FIGS. 7A and 7B are explanatory diagrams showing an example of a small area extraction process for character / pattern separation, wherein FIG. 7A is a diagram showing a process for a pattern image, and FIG. 7B is a diagram showing a process for a black character image; is there.

【図8】 文字/絵柄分離処理の一例を示す説明図であ
り、(a)は入力画像の例を示す図、(b)はその濃度
レベルを示す図、(c)および(d)は従来の二値化処
理の結果を示す図、(e)は本発明に係る二値化処理の
結果を示す図、(f)は本発明に係る二値化処理によっ
て得られる文字/絵柄分離処理の対象画像を示す図であ
る。
8A and 8B are explanatory diagrams illustrating an example of a character / pattern separation process, in which FIG. 8A illustrates an example of an input image, FIG. 8B illustrates a density level thereof, and FIGS. (E) shows the result of the binarization processing according to the present invention, and (f) shows the result of the character / picture separation processing obtained by the binarization processing according to the present invention. It is a figure showing a target picture.

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

11…平均値算出部、12…平均値比較部、13…オフ
セット値関数決定部、14…オフセット値決定部、15
…加算部、16…リミット部、17…二値化処理部
11: Average value calculation unit, 12: Average value comparison unit, 13: Offset value function determination unit, 14: Offset value determination unit, 15
... Addition unit, 16 Limit unit, 17 Binarization processing unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/40 H04N 1/40 F Fターム(参考) 5B047 AA01 AB02 CB11 DB06 5B057 AA11 BA02 CA06 CA08 CA12 CB06 CB08 CB12 CC02 CD08 CE12 CH18 DA08 DB02 DB08 DB09 DC31 5C077 MP05 MP06 PP12 PP14 PP27 PP28 PP46 PP47 PQ08 PQ20 RR02 RR15 RR16 5L096 BA07 BA17 BA18 EA43 FA44 FA45 GA10 GA51 JA03 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 1/40 H04N 1/40 FF term (Reference) 5B047 AA01 AB02 CB11 DB06 5B057 AA11 BA02 CA06 CA08 CA12 CB06 CB08 CB12 CC02 CD08 CE12 CH18 DA08 DB02 DB08 DB09 DC31 5C077 MP05 MP06 PP12 PP14 PP27 PP28 PP46 PP47 PQ08 PQ20 RR02 RR15 RR16 5L096 BA07 BA17 BA18 EA43 FA44 FA45 GA10 GA51 JA03

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像データに対して当該画像
データを構成する画素毎に二値化処理を行う二値化手段
と、 前記二値化手段での二値化処理の対象となる注目画素を
含む所定の大きさの第1領域について当該第1領域を構
成する各画素から求まる第1の値を算出する第1の算出
手段と、 前記注目画素を含む前記第1領域よりも大きい第2領域
について当該第2領域を構成する各画素から求まる第2
の値を算出する第2の算出手段と、 前記第1の算出手段が算出した第1の値と前記第2の算
出手段が算出した第2の値とを互いに比較する比較手段
と、 前記比較手段での比較の結果に基づいて前記二値化手段
が前記注目画素について二値化処理を行う際の閾値調整
の度合いを可変させるオフセット決定手段とを備えるこ
とを特徴とする画像処理装置。
1. A binarizing unit for performing a binarizing process on input image data for each pixel constituting the image data, and a target to be binarized by the binarizing unit. A first calculation unit configured to calculate a first value obtained from each of the pixels forming the first region for a first region having a predetermined size including a pixel; and a first calculation unit that is larger than the first region including the target pixel. The second region obtained from each pixel constituting the second region for the two regions
A second calculating means for calculating a value of the first calculating means; a comparing means for comparing the first value calculated by the first calculating means with the second value calculated by the second calculating means; An image processing apparatus comprising: an offset determining unit that varies a degree of threshold adjustment when the binarizing unit performs a binarizing process on the pixel of interest based on a result of the comparison by the unit.
【請求項2】 前記オフセット決定手段は、前記比較手
段での比較の結果、前記第1の算出手段が算出した第1
の値よりも前記第2の算出手段が算出した第2の値が大
きければ、前記注目画素が所定色背景の白抜き文字領域
を構成すると判定して閾値調整を行うことを特徴とする
請求項1記載の画像処理装置。
2. The method according to claim 1, wherein the offset determining unit calculates the first value calculated by the first calculating unit as a result of the comparison by the comparing unit.
If the second value calculated by the second calculation means is larger than the value of (i), it is determined that the pixel of interest forms a white-colored character area with a predetermined color background, and threshold adjustment is performed. 2. The image processing device according to 1.
【請求項3】 前記二値化手段での二値化処理後の画像
データに対して当該画像データを構成する画素毎に所定
の後処理を行う後処理手段を備えるとともに、当該後処
理手段は、前記オフセット決定手段によって所定色背景
の白抜き文字領域を構成すると判定されて閾値調整され
た画素については、文字領域ではなく絵柄領域を構成す
る画素として前記後処理を行うことを特徴とする請求項
3記載の画像処理装置。
3. The image processing apparatus according to claim 1, further comprising: a post-processing unit configured to perform predetermined post-processing on the image data after the binarization processing performed by the binarization unit for each pixel included in the image data. The pixel which is determined by the offset determination means to form a white-colored character area of a predetermined color background and whose threshold is adjusted is subjected to the post-processing not as a character area but as a pixel which forms a picture area. Item 3. The image processing device according to Item 3.
【請求項4】 前記二値化手段での二値化処理後の画像
データに対して当該画像データを構成する画素毎に所定
の後処理を行う場合に、前記オフセット決定手段は、前
記比較手段での比較の結果、前記第1の算出手段が算出
した第1の値よりも前記第2の算出手段が算出した第2
の値が大きいか略同等であれば、前記注目画素について
前記後処理を行う際に当該注目画素が絵柄領域を構成す
る画素とされ得るように閾値調整を行い、前記第1の算
出手段が算出した第1の値よりも前記第2の算出手段が
算出した第2の値が小さければ、前記注目画素について
前記後処理を行う際に当該注目画素が文字領域を構成す
る画素とされ得るように閾値調整を行うことを特徴とす
る請求項1記載の画像処理装置。
4. When performing a predetermined post-processing for each pixel constituting the image data on the image data after the binarization processing by the binarization means, the offset determining means includes the comparing means. As a result of the comparison, the second value calculated by the second calculating means is larger than the first value calculated by the first calculating means.
Is larger or substantially equal to each other, when performing the post-processing on the target pixel, a threshold value adjustment is performed so that the target pixel can be set as a pixel constituting a picture region, and the first calculating unit calculates the target pixel. If the second value calculated by the second calculating means is smaller than the first value, the target pixel can be set as a pixel constituting a character area when performing the post-processing on the target pixel. The image processing apparatus according to claim 1, wherein a threshold value is adjusted.
JP2000220177A 2000-07-21 2000-07-21 Image processor Pending JP2002044444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000220177A JP2002044444A (en) 2000-07-21 2000-07-21 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000220177A JP2002044444A (en) 2000-07-21 2000-07-21 Image processor

Publications (1)

Publication Number Publication Date
JP2002044444A true JP2002044444A (en) 2002-02-08

Family

ID=18714829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000220177A Pending JP2002044444A (en) 2000-07-21 2000-07-21 Image processor

Country Status (1)

Country Link
JP (1) JP2002044444A (en)

Cited By (3)

* 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
JP2011205708A (en) * 2011-07-13 2011-10-13 Canon Electronics Inc Device and method for processing image
CN118071610A (en) * 2022-11-21 2024-05-24 荣耀终端有限公司 Image processing method and device

Cited By (3)

* 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
JP2011205708A (en) * 2011-07-13 2011-10-13 Canon Electronics Inc Device and method for processing image
CN118071610A (en) * 2022-11-21 2024-05-24 荣耀终端有限公司 Image processing method and device

Similar Documents

Publication Publication Date Title
CN100369066C (en) Feature region extraction device and feature region extraction method
JP3768052B2 (en) Color image processing method, color image processing apparatus, and recording medium therefor
US20080193020A1 (en) Method for Facial Features Detection
US8331670B2 (en) Method of detection document alteration by comparing characters using shape features of characters
US6377711B1 (en) Methods and systems for detecting the edges of objects in raster images using diagonal edge detection
JP2007504719A (en) System and method for detecting and correcting red eyes in an image suitable for embedded applications
JPH03260787A (en) Discrimination method of line figure in picture
JP2004086891A (en) Object detection method in digital image
JP2000132690A (en) Image processing method and image processor using image division by making token
US20080075381A1 (en) Image processing apparatus, image processing method, and computer product
JP6794858B2 (en) Image processing device and image processing method
JP2001274990A (en) Image processing method and apparatus
US6064773A (en) Image processing system for processing a multi-tone-level image
JP2004192307A (en) Similar image extraction device, similar image extraction method, and similar image extraction program
JP2002044444A (en) Image processor
US7508987B2 (en) Method, apparatus, system, and program for image processing capable of recognizing, reproducing, and enhancing an image, and a medium storing the program
JP2003303346A (en) Target tracking method, target tracking device, target tracking program, and recording medium recording this program
KR20040069865A (en) Device and method for extending character region-of-content of image
JPH05114045A (en) Area separating method and image processor
JP2001222683A (en) Image processing method, image processing device, character recognition method, character recognition device, and storage medium
JP4409713B2 (en) Document image recognition apparatus and recording medium
JP3830350B2 (en) Color image processing method, color image processing apparatus, program, and recording medium
JPH0818785A (en) Image output device
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JP2000333022A (en) Image binarization method and apparatus, and storage medium