JPH1173503A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH1173503A
JPH1173503A JP9231361A JP23136197A JPH1173503A JP H1173503 A JPH1173503 A JP H1173503A JP 9231361 A JP9231361 A JP 9231361A JP 23136197 A JP23136197 A JP 23136197A JP H1173503 A JPH1173503 A JP H1173503A
Authority
JP
Japan
Prior art keywords
pixel
peak
unit
score
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
JP9231361A
Other languages
Japanese (ja)
Other versions
JP3726439B2 (en
Inventor
Toshiya Koyama
俊哉 小山
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 JP23136197A priority Critical patent/JP3726439B2/en
Publication of JPH1173503A publication Critical patent/JPH1173503A/en
Application granted granted Critical
Publication of JP3726439B2 publication Critical patent/JP3726439B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To abandon an error extraction of a character for inputted picture data and to more precisely judge and extract a net-point area. SOLUTION: A black peak extraction part 21 extracts a black peak from an L* lightness signal. A white peak extraction part 22 extracts a white peak from the L* lightness signal. In accordance with the above-mentioned black signal, a black peak scoring part 23 compares a picture element under consideration and a black peak pixel existing near it as objects with plural patterns and performs a scoring to the picture element under consideration according to a comparison result. Also, like the black peak scoring part 22, a white peak storing part 24 compares the picture element under consideration and a white peak element existing near it as objects with plural patterns and performs the scoring to the picture element under consideration in accordance with a comparison result. A net-point decision part 25 judges whether or not a pixel unit is a net-point area on the basis of a result (score) from scoring to the pixel unit in the black peak scoring part 23 and the white peak scoring part 24.

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 separating a character area such as a character or a line drawing and a picture area such as a photograph or a picture from input image data.

【0002】[0002]

【従来の技術】従来、複写機やファクシミリなどにおい
て、入力された画像に文字や線画などの文字領域と、写
真や絵柄などの絵柄領域とが混在していた場合、その画
像を再生する時には、文字領域と絵柄領域を分離し、文
字領域には解像度を重視した処理を施し、絵柄領域には
階調性を重視した処理を施すことが画像品質の面から望
ましい。また、上記画像データを伝送する場合にも、文
字領域と絵柄領域を分離し、それぞれを異なった手法で
圧縮処理を行ったほうが、画像品質および圧縮率の面か
ら望ましい。
2. Description of the Related Art Conventionally, in a copying machine, a facsimile, or the like, when a character area such as a character or a line drawing and a picture area such as a photograph or a pattern are mixed in an input image, when the image is reproduced, It is desirable from the viewpoint of image quality to separate the character area from the picture area, perform processing with emphasis on resolution in the character area, and perform processing with emphasis on gradation in the picture area. Also, when transmitting the image data, it is preferable to separate the character area and the picture area and perform compression processing on each of them by different methods from the viewpoint of image quality and compression ratio.

【0003】解像度重視、階調性重視の処理を画像の各
領域によって適応的に処理するためには、画像に含まれ
る文字領域、絵柄領域を精度よく分離する必要があり
(以下、文字領域・絵柄領域の分離のことを像域分離と
いう)、この像域分離に関しては種々の提案がなされて
いる。例えば、画像をある一定の大きさのブロックに分
割し、各ブロック毎にそのブロックに含まれる画素の最
大濃度と最小濃度とを求め、最大濃度と最小濃度との差
を予め定められたしきい値と比較し、しきい値より大き
いブロックは文字領域、小さいブロックは絵柄領域と判
定する方法がある。また、網点領域を抽出する例とし
て、周囲画素との濃度関係から濃度変化の山または谷を
示す極点を求め、ある一定サイズのブロック内の極点数
から網点領域か否かを判定する方法がある。
[0003] In order to adaptively process a process that emphasizes resolution and gradation by using each region of an image, it is necessary to accurately separate a character region and a picture region included in the image (hereinafter, a character region and a pattern region). The separation of a picture area is called image area separation), and various proposals have been made for this image area separation. For example, an image is divided into blocks of a certain size, the maximum density and the minimum density of the pixels included in each block are obtained, and the difference between the maximum density and the minimum density is determined by a predetermined threshold. There is a method in which a block larger than a threshold value is determined as a character area and a block smaller than the threshold value is determined as a picture area. Further, as an example of extracting a halftone dot region, a method of determining an extreme point indicating a peak or a valley of a density change from a density relationship with surrounding pixels and determining whether or not the halftone dot region is based on the number of extreme points in a certain size block. There is.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前述し
た第1の従来技術では、写真などの中間調を含む絵柄領
域にも濃度差の大きい領域が存在するため、誤認が生
じ、画質を劣化させるという問題があった。また、前述
した第2の従来技術では、複雑に入り組んだ線画、例え
ばCAD等により作成された線画や文字においては、そ
の領域中に極点が多数存在するため、網点領域と誤判定
してしまうという問題がある。
However, in the above-mentioned first prior art, since there is a region having a large density difference also in a picture region including a halftone such as a photograph, an erroneous recognition occurs and the image quality is deteriorated. There was a problem. Further, in the above-described second conventional technique, in a complicated and complicated line drawing, for example, a line drawing or a character created by CAD or the like, since there are many poles in the region, it is erroneously determined to be a halftone dot region. There is a problem.

【0005】この発明は上述した事情に鑑みてなされた
もので、入力された画像データに対する文字の誤抽出を
なくし、網点領域を精度よく判定して抽出することがで
きる画像処理装置を提供することを目的としている。
The present invention has been made in view of the above circumstances, and provides an image processing apparatus capable of eliminating erroneous extraction of characters from input image data and accurately determining and extracting a halftone dot region. It is intended to be.

【0006】[0006]

【課題を解決するための手段】上述した問題点を解決す
るために、この発明では、入力される画像データの文字
領域と絵柄領域とを分離し、領域種類に応じて画像デー
タに対する画像処理を施す画像処理装置において、前記
画像データの画素値情報に基づいて所定の条件に合致す
る画素を抽出する抽出手段と、前記抽出手段によって抽
出された画素と該画素の近傍画素との位置関係を、予め
定められた複数のパターンと比較する比較手段と、前記
比較手段によって比較された比較結果に基づいて、前記
複数のパターンに対する一致度に応じた点数を算出する
点数算出手段と、前記点数算出手段によって算出された
点数に基づいて、前記画像データの対象画素が網点領域
か否かを判定する判定手段とを具備することを特徴とす
る。
In order to solve the above-mentioned problems, according to the present invention, a character area and a picture area of input image data are separated, and image processing for the image data is performed according to the area type. In the image processing device to be applied, extracting means for extracting a pixel that meets a predetermined condition based on the pixel value information of the image data, and a positional relationship between the pixel extracted by the extracting means and a neighboring pixel of the pixel, Comparing means for comparing with a plurality of predetermined patterns; score calculating means for calculating a score according to the degree of coincidence with the plurality of patterns based on a comparison result compared by the comparing means; Determining means for determining whether or not the target pixel of the image data is a halftone dot region based on the score calculated by the above.

【0007】この発明によれば、抽出手段は、前記画像
データの画素値情報に基づいて所定の条件に合致する画
素を抽出し、比較手段は、該抽出された画素と該画素の
近傍画素との位置関係を、予め定められた複数のパター
ンと比較する。次に、点数算出手段は、該比較結果に基
づいて、前記複数のパターンに対する一致度に応じた点
数を算出する。そして、判定手段は、点数に基づいて、
前記画像データの対象画素が網点領域か否かを判定す
る。この結果、正確に文字領域と網点領域とが分離でき
るので、入力された画像データから文字の誤抽出をなく
し、網点領域のみを精度よく判定して抽出することがで
きる。
According to the present invention, the extracting means extracts a pixel which satisfies a predetermined condition based on the pixel value information of the image data, and the comparing means compares the extracted pixel with a neighboring pixel of the pixel. Is compared with a plurality of predetermined patterns. Next, the score calculation means calculates a score corresponding to the degree of coincidence with the plurality of patterns based on the comparison result. And the judging means, based on the score,
It is determined whether or not the target pixel of the image data is a halftone area. As a result, the character area and the halftone area can be accurately separated, so that erroneous extraction of characters from the input image data can be eliminated, and only the halftone area can be accurately determined and extracted.

【0008】[0008]

【発明の実施の形態】次に図面を参照してこの発明の実
施形態について説明する。 A.第1実施形態 A−1.第1実施形態の構成 図1は本発明の第1実施形態による画像処理装置の構成
を示すブロック図である。図において、画像入力部1
は、CCDカメラ等の光電変換素子により原稿のカラー
画像情報を色別に読み取り、電気的なディジタル画像信
号に変換するイメージスキャナなどである。入力階調補
正部2は、画像入力部1によって入力された画像信号
(例えばRGB、各色8ビット)の階調を補正する。色
信号変換部3は、階調補正のなされたRGB画像信号を
他の色信号(例えば、L*、a*、b*)に変換する。
色信号変換部4は、上記色信号L*、a*、b*の画像
信号を他の色信号(例えば、YMC)に変換し、墨版生
成部5に供給する。
Embodiments of the present invention will now be described with reference to the drawings. A. First embodiment A-1. Configuration of First Embodiment FIG. 1 is a block diagram showing a configuration of an image processing device according to a first embodiment of the present invention. In the figure, an image input unit 1
Is an image scanner or the like that reads color image information of an original for each color by a photoelectric conversion element such as a CCD camera and converts the color image information into an electric digital image signal. The input gradation correction unit 2 corrects the gradation of the image signal (for example, RGB, 8 bits for each color) input by the image input unit 1. The color signal conversion unit 3 converts the RGB image signal subjected to the gradation correction into another color signal (for example, L *, a *, b *).
The color signal conversion unit 4 converts the image signals of the color signals L *, a *, and b * into another color signal (for example, YMC) and supplies the color signal to the black plate generation unit 5.

【0009】墨版生成部5は、YMC画像信号から墨版
(K)を生成し、画像信号をYMCK画像信号に変換
し、空間フィルタ部6に供給する。空間フィルタ部6
は、YMCK画像信号の各色毎に空間フィルタリング処
理を施す。また、空間フィルタ部6は、後述する像域分
離部9からの領域判定結果に応じて、例えばフィルタリ
ング係数などを切り替えて空間フィルタリング処理を施
す。出力階調補正部7は、空間フィルタリング処理が施
された、YMCK画像信号の各色毎に画像出力階調特性
に合うように出力階調補正を施し、画像出力部8に供給
する。なお、出力階調補正部7においても、後述する像
域分離部9からの領域判定結果に応じて、出力階調補正
を施す。
[0009] The black plate generation unit 5 generates a black plate (K) from the YMC image signal, converts the image signal into a YMCK image signal, and supplies it to the spatial filter unit 6. Spatial filter unit 6
Performs a spatial filtering process for each color of the YMCK image signal. Further, the spatial filter unit 6 performs a spatial filtering process by, for example, switching a filtering coefficient or the like in accordance with an area determination result from an image area separating unit 9 described later. The output gradation correction unit 7 performs output gradation correction for each color of the YMCK image signal, which has been subjected to the spatial filtering processing, so as to match the image output gradation characteristic, and supplies the output gradation correction to the image output unit 8. Note that the output tone correction unit 7 also performs output tone correction according to the area determination result from the image area separation unit 9 described later.

【0010】画像出力部8は、後述する像域分離部9か
らの領域判定結果に応じて、例えばスクリーンなどを切
り替えて、出力階調補正されたYMCK画像信号を例え
ば用紙等に画像として出力する。また、像域分離部9
は、上記色信号変換部3から出力されるL*a*b*画
像信号に従って、各画素毎に文字部あるいは絵柄部の領
域判定を行う。この領域判定結果は、上述したように、
空間フィルタ部6、出力階調補正部7、および画像出力
部8に供給され、領域判定結果に応じた処理が施され
る。
The image output unit 8 switches the screen, for example, in accordance with the area determination result from the image area separation unit 9 described later, and outputs the output tone-corrected YMCK image signal as an image on, for example, paper. . Further, the image area separating unit 9
Performs an area determination of a character portion or a picture portion for each pixel according to the L * a * b * image signal output from the color signal conversion section 3. This area determination result is, as described above,
The image data is supplied to the spatial filter unit 6, the output gradation correction unit 7, and the image output unit 8, and is subjected to processing according to the region determination result.

【0011】次に、図2は、像域分離部9の構成を示す
ブロック図である。図において、画像信号は、文字抽出
部11と網点抽出部12とに入力される。文字抽出部1
1は、入力された画像信号から文字や線画などの文字領
域を抽出する。この文字領域の抽出方法としては、微分
値を求め、所定のしきい値と比較して抽出する方法や、
注目画素値とその周辺画素値との平均を比較して抽出す
る方法などがある。なお、これら文字抽出方法について
は、本発明の主旨ではないので、その詳細については説
明を省略する。網点抽出部12では、入力された画像信
号から注目画素が網点領域であるか否かを判定し、その
結果を出力する。この網点抽出部12の詳細については
後述する。
Next, FIG. 2 is a block diagram showing the configuration of the image area separating section 9. As shown in FIG. In the figure, an image signal is input to a character extraction unit 11 and a halftone dot extraction unit 12. Character extraction unit 1
1 extracts a character area such as a character or a line drawing from an input image signal. As a method for extracting the character area, a differential value is obtained and compared with a predetermined threshold value,
There is a method of comparing and extracting the average of the pixel value of interest and its surrounding pixel values. It should be noted that these character extraction methods are not the gist of the present invention, and therefore, detailed description thereof will be omitted. The halftone dot extracting unit 12 determines whether or not the pixel of interest is a halftone area from the input image signal, and outputs the result. The details of the dot extracting unit 12 will be described later.

【0012】文字再抽出部13は、文字抽出部11の出
力結果と、網点抽出部12の出力結果とを用いて、再
度、文字領域を抽出する。文字再抽出部13は、文字抽
出部11の出力結果に含まれる誤判定(誤抽出)を除去
する。すなわち、文字抽出部11において文字抽出精度
を高めると、網点領域などに含まれるエッジ領域(画素
値変化の大きい領域)をも誤抽出してしまう。したがっ
て、文字再抽出部13は、文字抽出部11の出力結果に
含まれる文字抽出誤判定領域を、網点抽出部12の網点
抽出結果を用いて除去し、誤判定のない文字抽出結果を
得る。図3は、文字再抽出部13の一構成例を示す回路
図である。すなわち、網点抽出部12の出力結果の信号
の否定(NOT)と、文字抽出部11の出力結果の信号
との論理積(AND)をとり、その結果を文字再抽出部
13の出力結果とする。
The character re-extracting unit 13 extracts a character region again using the output result of the character extracting unit 11 and the output result of the halftone dot extracting unit 12. The character re-extraction unit 13 removes an erroneous determination (erroneous extraction) included in the output result of the character extraction unit 11. That is, when the character extraction accuracy is increased in the character extraction unit 11, an edge region (a region having a large change in pixel value) included in a halftone dot region or the like is erroneously extracted. Therefore, the character re-extraction unit 13 removes the character extraction misjudgment area included in the output result of the character extraction unit 11 by using the halftone dot extraction result of the halftone dot extraction unit 12 and removes the character extraction result without erroneous judgment. obtain. FIG. 3 is a circuit diagram illustrating a configuration example of the character re-extraction unit 13. That is, the logical product (AND) of the NOT (NOT) of the signal of the output result of the dot extraction unit 12 and the signal of the output result of the character extraction unit 11 is calculated, and the result is compared with the output result of the character re-extraction unit 13. I do.

【0013】次に、図4は、上述した網点抽出部12の
構成を示すブロック図である。なお、以下では、網点抽
出部12に入力される画像信号として、各成分8ビット
に量子化された、L*a*b*画像信号のうち、L*信
号(明度信号)を例にとって説明するが、これに限定さ
れることなく、例えばRGB信号のG信号や(α1R+
α2G+α3B)/3 (α1、α2、α3は乗数値)など
を用いてもよい。また、1成分だけでなく、複数の成分
を入力することも可能である。なお、本発明の実施形態
で説明する8ビットに量子化されたL*信号値は、00
h(16進数で「0」、10進数で「0」)の場合に
白、FFh(16進数で「FF」、10進数で「25
5」)の場合に黒を表すものとする。
FIG. 4 is a block diagram showing a configuration of the above-mentioned halftone dot extracting section 12. As shown in FIG. Hereinafter, an L * signal (brightness signal) among L * a * b * image signals quantized into 8 bits for each component will be described as an example of an image signal input to the halftone dot extraction unit 12. However, without being limited to this, for example, a G signal of an RGB signal or (α1R +
α2G + α3B) / 3 (where α1, α2, and α3 are multipliers) may be used. It is also possible to input not only one component but also a plurality of components. Note that the L * signal value quantized to 8 bits described in the embodiment of the present invention is 00
h (“0” in hexadecimal, “0” in decimal), FFh (“FF in hexadecimal”, “25 in decimal”
5)) represents black.

【0014】図において、黒ピーク抽出部21は、L*
明度信号から黒ピークを抽出する。ここで言う黒ピーク
とは、概念的には、その画素値が近傍画素値よりも大き
い画素のことをいう。なお、黒ピーク抽出部21の詳細
については後述する。次に、白ピーク抽出部22は、L
*明度信号から白ピークを抽出する。ここで言う白ピー
クとは、概念的には、上述した黒ピークとは反対に、そ
の画素値が近傍画素値よりも小さい画素のことをいう。
なお、白ピーク抽出部22の詳細については後述する。
In the figure, a black peak extracting unit 21
The black peak is extracted from the brightness signal. The black peak here is conceptually a pixel whose pixel value is larger than the neighboring pixel value. The details of the black peak extracting unit 21 will be described later. Next, the white peak extraction unit 22 calculates L
* Extract the white peak from the brightness signal. The white peak referred to here conceptually refers to a pixel whose pixel value is smaller than the neighboring pixel value, contrary to the above-described black peak.
The details of the white peak extracting unit 22 will be described later.

【0015】黒ピークスコアリング部23は、上記黒ピ
ーク信号に従って、注目画素およびその近傍に存在する
黒ピーク画素を対象として、複数のパターンと比較し、
該比較結果に応じて注目画素に点数付けを行う。また、
白ピークスコアリング部24は、黒ピークスコアリング
部22と同様に、注目画素およびその近傍に存在する白
ピーク画素を対象として複数のパターンと比較し、該比
較結果に応じて注目画素に点数付けを行う。次に、網点
判定部25は、黒ピークスコアリング部23と白ピーク
スコアリング部24で画素単位に点数付けがされた結果
(スコア)に基づいて、画素単位に網点領域か否かを判
定する。なお、網点判定部25の詳細については後述す
る。
The black peak scoring unit 23 compares a target pixel and a black peak pixel existing in the vicinity thereof with a plurality of patterns in accordance with the black peak signal.
A point is assigned to the target pixel according to the comparison result. Also,
Similar to the black peak scoring unit 22, the white peak scoring unit 24 compares the target pixel and the white peak pixel present in the vicinity thereof with a plurality of patterns, and scores the target pixel according to the comparison result. I do. Next, the halftone dot determination unit 25 determines whether or not the pixel area is a halftone dot area based on the result (score) scored in pixel units by the black peak scoring unit 23 and the white peak scoring unit 24. judge. The details of the halftone dot determination unit 25 will be described later.

【0016】次に、図5は、上述した黒ピーク抽出部2
1の構成を示すブロック図である。図において、近傍画
素平均値算出部31は、入力されるL*明度信号に従っ
て、注目画素の近傍画素の平均値を算出する。この近傍
画素の例として、注目画素の4近傍(図6(a)の斜線
の入った画素)、8近傍(図6(b)のハッチングが施
された画素)、24近傍(図6(c)のハッチングが施
された画素)などがある。なお、図6(a)〜(c)に
おいて、黒く塗りつぶした画素は注目画素である。
Next, FIG. 5 shows the above-mentioned black peak extraction unit 2.
1 is a block diagram showing a configuration of FIG. In the figure, a neighboring pixel average value calculation unit 31 calculates an average value of neighboring pixels of a target pixel according to an input L * lightness signal. As examples of the neighboring pixels, there are 4 neighborhoods (hatched pixels in FIG. 6A), 8 neighborhoods (hatched pixels in FIG. 6B), and 24 neighborhoods (FIG. 6C ))). In FIGS. 6A to 6C, the pixels painted black are the target pixels.

【0017】加算器32は、近傍画素平均値算出部31
で算出された注目画素近傍画素の平均値と所定の加算値
aとを加算し、加算結果を比較器33に供給する。な
お、平均値に所定の加算値aを加算するのは、注目画素
がピーク画素であるか否かを判断する際に、単純に注目
画素近傍画素の平均値と注目画素とを比較すると、平均
値より小さいということで注目画素がピークではないと
誤判断されるのを防ぐためある。したがって、加算値a
は負の値であってもよい。比較器33は、上記加算結果
と注目画素値とを比較し、その比較結果をAND回路3
7の一方の入力端に供給する。すなわち、比較器33
は、注目画素値が加算器32の出力結果よりも大きい場
合には「ON」の信号を出力し、注目画素値が加算器3
2の出力結果よりも小さいか、または等しい場合には
「OFF」の信号が出力される。
The adder 32 includes a neighborhood pixel average value calculation unit 31
The average value of the pixels in the vicinity of the pixel of interest calculated by the above is added to a predetermined addition value a, and the addition result is supplied to the comparator 33. It should be noted that the addition of the predetermined addition value a to the average value is performed by simply comparing the average value of the pixel in the vicinity of the pixel of interest with the pixel of interest when determining whether the pixel of interest is the peak pixel. This is to prevent erroneous determination that the target pixel is not the peak because the value is smaller than the value. Therefore, the sum a
May be a negative value. The comparator 33 compares the addition result with the pixel value of interest, and compares the comparison result with the AND circuit 3.
7 to one input terminal. That is, the comparator 33
Outputs an “ON” signal when the target pixel value is larger than the output result of the adder 32, and outputs
If it is smaller than or equal to the output result of No. 2, an "OFF" signal is output.

【0018】また、近傍画素最大値算出部34は、入力
されるL*明度信号に従って、注目画素の近傍画素の最
大値を算出する。この近傍画素の例としては、前述した
ように、4近傍や8近傍などがある。加算器35は、近
傍画素最大値算出部34で算出された注目画素近傍画素
の最大値と所定の加算値bとを加算し、加算結果を比較
器36に供給する。最大値に所定の加算値bを加算する
のは、上述した平均値に所定の加算値aを加算する理由
と同じである。比較器36は、上記加算結果と注目画素
値とを比較し、その比較結果をAND回路37の他方の
入力端に供給する。すなわち、比較器36は、注目画素
値が加算器35の出力結果よりも大きい場合には「O
N」の信号を出力し、注目画素値が加算器35の出力結
果よりも小さいか、または等しい場合には「OFF」の
信号が出力される。AND回路37では、上記比較器3
3の出力結果と上記比較器36の出力結果との論理積を
とり、OR回路42に供給する。
Further, the maximum value of the neighboring pixel calculating section 34 calculates the maximum value of the neighboring pixels of the target pixel according to the input L * lightness signal. Examples of the neighboring pixels include four neighborhoods and eight neighborhoods as described above. The adder 35 adds the maximum value of the pixel of interest in the vicinity of the pixel of interest calculated by the maximum neighboring pixel calculation unit 34 and a predetermined addition value b, and supplies the addition result to the comparator 36. The reason for adding the predetermined addition value b to the maximum value is the same as the reason for adding the predetermined addition value a to the average value described above. The comparator 36 compares the addition result with the pixel value of interest, and supplies the comparison result to the other input terminal of the AND circuit 37. That is, when the target pixel value is larger than the output result of the adder 35, the comparator 36 sets “O
N "is output, and if the pixel value of interest is smaller than or equal to the output result of the adder 35, an" OFF "signal is output. In the AND circuit 37, the comparator 3
The logical product of the output result of No. 3 and the output result of the comparator 36 is calculated and supplied to the OR circuit 42.

【0019】また、0−180度方向黒線ピーク検出部
38は、L*明度信号に従って、水平方向に伸びる黒の
線分(画像中の尾根)を検出し、OR回路42に供給す
る。90−270度方向黒線ピーク検出部39は、垂直
方向に伸びる黒の線分、45−225度方向黒線ピーク
検出部40は、右上←→左下方向に伸びる黒の線分、1
35−315度方向黒線ピーク検出部41は、左上←→
右下方向に伸びる黒の線分を検出する。なお、0−18
0度方向黒線ピーク検出部38、90−270度方向黒
線ピーク検出部39、45−225度方向黒線ピーク検
出部40、および135−315度方向黒線ピーク検出
部41の詳細については後述する。
The 0-180 degree black line peak detector 38 detects a black line segment (ridge in the image) extending in the horizontal direction in accordance with the L * lightness signal and supplies it to the OR circuit 42. The 90-270 degree direction black line peak detection unit 39 has a black line segment extending in the vertical direction, and the 45-225 degree direction black line peak detection unit 40 has a black line segment extending in the upper right direction and lower left direction.
35-315 degree direction black line peak detection unit 41, upper left ← →
Detects black line segments extending in the lower right direction. In addition, 0-18
For details of the 0-degree black line peak detector 38, the 90-270 degree black line peak detector 39, the 45-225 degree black line peak detector 40, and the 135-315 degree black line peak detector 41, It will be described later.

【0020】上述した0−180度方向黒線ピーク検出
部38、90−270度方向黒線ピーク検出部39、4
5−225度方向黒線ピーク検出部40、および135
−315度方向黒線ピーク検出部41は、注目画素が線
分を構成する画素であった場合、上記近傍画素平均値算
出部31および近傍画素最大値算出部34では、注目画
素がピーク画素と判別されないか、線分が断続するピー
ク画素として判別されてしまうのを防止するために設け
ている。
The above-mentioned black line peak detectors 38 in the 0-180 degree direction, the black line peak detectors 39 in the 90-270 degree direction,
5-225 degree direction black line peak detectors 40 and 135
When the pixel of interest is a pixel constituting a line segment, the neighborhood pixel average value calculation unit 31 and the neighborhood pixel maximum value calculation unit 34 determine that the pixel of interest is a peak pixel. This is provided to prevent the pixel from being discriminated or from being discriminated as an intermittent peak pixel.

【0021】OR回路42は、AND回路37の論理積
結果、0−180度方向黒線ピーク検出部38、90−
270度方向黒線ピーク検出部39、45−225度方
向黒線ピーク検出部40、および135−315度方向
黒線ピーク検出部41のそれぞれの黒線ピーク検出結果
の論理和を演算し、前述した黒ピーク抽出部21の出力
となる。
The OR circuit 42 outputs the logical product of the AND circuit 37 and the 0-180 degree direction black line peak detectors 38, 90-
The logical sum of the respective black line peak detection results of the 270-degree black line peak detection unit 39, the 45-225-degree black line peak detection unit 40, and the 135-315-degree black line peak detection unit 41 is calculated. The output of the black peak extraction unit 21 is as follows.

【0022】次に、図7は、上述した0−180度方向
黒線ピーク検出部38の構成を示すブロック図である。
図において、1ラインメモリ(ラインバッファ)51−
1は、L*明度信号を1ライン周期遅延する。また、1
ラインメモリ(ラインバッファ)51−2は、上記1ラ
イン周期遅延されたL*明度信号を、さらに1ライン周
期遅延する。ラッチ回路52−1〜52−6は、それぞ
れL*明度信号、1ライン周期遅延されたL*明度信
号、2ライン周期遅延されたL*明度信号をラッチす
る。すなわち、上記1ラインメモリ51−1,51−
2、ラッチ回路52−1〜52−6は、入力データを図
8(a)に示すような注目画素Peを中心とする3×3
ウィンドウを構成する画素Pa〜Piからなる画素群に
マトリクス化される。ここで、画素Pa〜Piの画素値
は、図8(b)に示すように、Va〜Viとする。
FIG. 7 is a block diagram showing the configuration of the above-described black line peak detector 38 in the 0-180 degree direction.
In the figure, one line memory (line buffer) 51-
1 delays the L * brightness signal by one line period. Also, 1
The line memory (line buffer) 51-2 further delays the L * brightness signal delayed by one line cycle by one line cycle. The latch circuits 52-1 to 52-6 latch the L * brightness signal, the L * brightness signal delayed by one line cycle, and the L * brightness signal delayed by two line cycles, respectively. That is, the one-line memories 51-1 and 51-
2. The latch circuits 52-1 to 52-6 convert the input data into a 3 × 3 pixel data centered on the target pixel Pe as shown in FIG.
The matrix is formed into a pixel group including pixels Pa to Pi constituting a window. Here, the pixel values of the pixels Pa to Pi are Va to Vi, as shown in FIG.

【0023】上記3×3にマトリクス化された画素のう
ち、その画素値Va〜Vcは、加算器53−3に供給さ
れ、画素値Vd〜Vfは加算器53−2に供給され、画
素値Vg〜Viは加算器53−1に供給される。加算器
53−1〜53−3は、それぞれ入力される3つの画素
値を加算する。すなわち、加算器53−1は、図8
(b)に示す3×3のマトリクスにおける最下段の画素
値Vg〜Viの合計値を演算する。また、加算器53−
2は、図8(b)に示す3×3のマトリクスにおける中
段の画素値Vd〜Vfの合計値を演算する。そして、加
算器53−3は、図8(b)に示す3×3のマトリクス
における最上段の画素値Va〜Vcの合計値を演算す
る。
Of the 3 × 3 pixels, the pixel values Va to Vc are supplied to an adder 53-3, and the pixel values Vd to Vf are supplied to an adder 53-2. Vg to Vi are supplied to the adder 53-1. The adders 53-1 to 53-3 add the three input pixel values. That is, the adder 53-1 is configured as shown in FIG.
The total value of the lowermost pixel values Vg to Vi in the 3 × 3 matrix shown in FIG. The adder 53-
2 calculates the total value of the pixel values Vd to Vf at the middle stage in the 3 × 3 matrix shown in FIG. Then, the adder 53-3 calculates the total value of the uppermost pixel values Va to Vc in the 3 × 3 matrix shown in FIG. 8B.

【0024】減算器54−1は、加算器53−2の演算
結果から加算器53−1の演算結果を減算し、その減算
結果を絶対値演算器55−1および比較器56−1に供
給する。すなわち、中段の画素値合計と下段の画素値合
計との差分を算出する。絶対値演算器55−1は、上記
減算結果の絶対値を算出し、比較器57−1に供給す
る。また、減算器54−2は、加算器53−2の演算結
果から加算器53−3の演算結果を減算し、その減算結
果を絶対値演算器55−2および比較器56−2に供給
する。すなわち、中段の画素値合計と上段の画素値合計
との差分を演算する。絶対値演算器55−2は、上記減
算結果の絶対値を算出し、比較器57−2に供給する。
The subtractor 54-1 subtracts the operation result of the adder 53-1 from the operation result of the adder 53-2, and supplies the subtraction result to the absolute value operation unit 55-1 and the comparator 56-1. I do. That is, the difference between the pixel value sum in the middle stage and the pixel value sum in the lower stage is calculated. The absolute value calculator 55-1 calculates the absolute value of the result of the subtraction, and supplies the result to the comparator 57-1. Further, the subtractor 54-2 subtracts the operation result of the adder 53-3 from the operation result of the adder 53-2, and supplies the subtraction result to the absolute value operation unit 55-2 and the comparator 56-2. . That is, the difference between the total pixel value in the middle stage and the total pixel value in the upper stage is calculated. The absolute value calculator 55-2 calculates the absolute value of the result of the subtraction and supplies the calculated value to the comparator 57-2.

【0025】すなわち、減算器54−1は、数式1の結
果を出力する。また、絶対値演算器55−1は、数式2
の結果を出力する。減算器54−2は、数式3の結果を
出力する。また、絶対値演算器55−2は、数式4の結
果を出力する。
That is, the subtractor 54-1 outputs the result of Expression 1. Further, the absolute value calculator 55-1 is given by the following equation (2).
Outputs the result. The subtractor 54-2 outputs the result of Expression 3. Further, the absolute value calculator 55-2 outputs the result of Expression 4.

【0026】[0026]

【数1】 (Equation 1)

【0027】[0027]

【数2】 (Equation 2)

【0028】[0028]

【数3】 (Equation 3)

【0029】[0029]

【数4】 (Equation 4)

【0030】比較器56−1は、減算器54−1の減算
結果と所定のしきい値TH2とを比較し、減算器54−
1の減算結果が所定のしきい値TH2よりも大きいとき
には「ON」信号を出力し、小さいか、もしくは等しい
ときには「OFF」信号を出力する。また、比較器57
−1は、絶対値演算器55−1の演算結果と所定のしき
い値TH3とを比較し、絶対値演算器55−1の演算結
果が所定のしきい値TH3よりも小さいときには「O
N」信号を出力し、大きいか、もしくは等しいときには
「OFF」信号を出力する。
The comparator 56-1 compares the subtraction result of the subtractor 54-1 with a predetermined threshold value TH2.
When the subtraction result of 1 is larger than a predetermined threshold value TH2, an "ON" signal is output, and when the result is smaller or equal, an "OFF" signal is output. Further, the comparator 57
-1 compares the operation result of the absolute value operation unit 55-1 with a predetermined threshold value TH3. If the operation result of the absolute value operation unit 55-1 is smaller than the predetermined threshold value TH3, "O"
An "N" signal is output, and when it is larger or equal, an "OFF" signal is output.

【0031】また、比較器56−2は、減算器54−2
の減算結果と所定のしきい値TH2とを比較し、減算器
54−2の減算結果が所定のしきい値TH2よりも大き
いときには「ON」信号を出力し、小さいか、もしくは
等しいときには「OFF」信号を出力する。また、比較
器57−2は、絶対値演算器55−2の演算結果と所定
のしきい値TH3とを比較し、絶対値演算器55−2の
演算結果が所定のしきい値TH3よりも小さいときには
「ON」信号を出力し、大きいか、もしくは等しいとき
には「OFF」信号を出力する。
The comparator 56-2 includes a subtractor 54-2.
Is compared with a predetermined threshold value TH2. If the subtraction result of the subtractor 54-2 is larger than the predetermined threshold value TH2, an "ON" signal is output. Output signal. Further, the comparator 57-2 compares the operation result of the absolute value operation unit 55-2 with a predetermined threshold value TH3, and the operation result of the absolute value operation unit 55-2 is higher than the predetermined threshold value TH3. When it is smaller, it outputs an "ON" signal, and when it is larger or equal, it outputs an "OFF" signal.

【0032】次に、AND回路59−1は、比較器56
−1の比較結果と比較器56−2の比較結果との論理積
を演算し、OR回路60に供給する。AND回路59−
2は、比較器57−1の比較結果と比較器56−2の比
較結果との論理積を演算し、OR回路60に供給する。
さらに、AND回路59−3は、比較器56−1の比較
結果と比較器57−2の比較結果との論理積を演算し、
OR回路60に供給する。OR回路60は、上記各論理
積の演算結果の倫理和を演算し、AND回路59−4に
供給する。
Next, the AND circuit 59-1 is connected to the comparator 56.
The logical product of the comparison result of −1 and the comparison result of the comparator 56-2 is calculated and supplied to the OR circuit 60. AND circuit 59-
2 calculates the logical product of the comparison result of the comparator 57-1 and the comparison result of the comparator 56-2, and supplies the result to the OR circuit 60.
Further, the AND circuit 59-3 calculates the logical product of the comparison result of the comparator 56-1 and the comparison result of the comparator 57-2,
It is supplied to the OR circuit 60. The OR circuit 60 calculates the ethical sum of the operation results of the respective logical products, and supplies the result to the AND circuit 59-4.

【0033】また、減算器54−3は、画素値Vfから
画素値Veを減算し、その減算結果(Vf−Ve)を絶
対値演算器55−3に供給する。すなわち、注目画素値
Veと、その右横方向(0度方向)の画素値Vfとの差
分を算出する。絶対値演算器55−3は、上記減算結果
の絶対値を演算し、演算結果(|Vf−Ve|)を最大
値検出器58に供給する。また、減算器54−4は、画
素値Veから画素値Vdを減算し、その減算結果(Ve
−Vd)を絶対値演算器55−4に供給する。すなわ
ち、注目画素Veと、その左横方向(180度方向)の
画素値Vdとの差分を算出する。
The subtractor 54-3 subtracts the pixel value Ve from the pixel value Vf, and supplies the result of the subtraction (Vf-Ve) to the absolute value calculator 55-3. That is, the difference between the target pixel value Ve and the pixel value Vf in the right lateral direction (0 degree direction) is calculated. The absolute value calculator 55-3 calculates the absolute value of the subtraction result, and supplies the calculation result (| Vf-Ve |) to the maximum value detector 58. Further, the subtractor 54-4 subtracts the pixel value Vd from the pixel value Ve, and the subtraction result (Ve
-Vd) is supplied to the absolute value calculator 55-4. That is, the difference between the target pixel Ve and the pixel value Vd in the left horizontal direction (180-degree direction) is calculated.

【0034】絶対値演算器55−4は、上記減算結果の
絶対値を演算し、演算結果(|Ve−Vd|)を最大値
検出器58に供給する。最大値検出器58は、上記演算
結果(|Vf−Ve|)と上記演算結果(|Ve−Vd
|)のどちらか大きい方を検出し、比較器57−3に供
給する。比較器57−3は、最大値検出器58の出力値
と所定のしきい値TH1とを比較し、最大値検出器58
の出力値がしきい値TH1よりも小さいときには「O
N」信号を出力し、大きいか、もしくは等しいときには
「OFF」信号を出力する。すなわち、注目画素値Ve
と、横方向(0−180度方向)の画素値との差分がし
きい値TH1より小さい場合には、注目画素は、横方向
に伸びる線分の一部である可能性があると判別できる。
AND回路59−4は、上述したOR回路60の演算結
果と比較器57−3の比較結果との論理積を演算し、0
−180度方向黒線ピーク検出部38の演算結果として
出力する。したがって、上述したように、注目画素が線
分である場合には比較器57−3の出力は「ON」とな
るので、OR回路60の演算結果を出力し、それ以外で
は、比較器57−3の出力は「OFF」となるので、O
R回路60の演算結果は出力されない。
The absolute value calculator 55-4 calculates the absolute value of the subtraction result, and supplies the calculation result (| Ve-Vd |) to the maximum value detector 58. The maximum value detector 58 calculates the above calculation result (| Vf-Ve |) and the above calculation result (| Ve-Vd).
) Is detected and supplied to the comparator 57-3. The comparator 57-3 compares the output value of the maximum value detector 58 with a predetermined threshold value TH1.
Is smaller than the threshold value TH1, "O
An "N" signal is output, and when it is larger or equal, an "OFF" signal is output. That is, the target pixel value Ve
If the difference between the pixel value in the horizontal direction (0-180 degrees direction) and the pixel value in the horizontal direction (0-180 degrees direction) is smaller than the threshold value TH1, it can be determined that the pixel of interest may be a part of a line extending in the horizontal direction. .
The AND circuit 59-4 calculates the logical product of the operation result of the above-described OR circuit 60 and the comparison result of the comparator 57-3.
It is output as a calculation result of the black line peak detector 38 in the -180 degree direction. Therefore, as described above, when the pixel of interest is a line segment, the output of the comparator 57-3 is "ON", so that the operation result of the OR circuit 60 is output. Since the output of No. 3 is "OFF",
The operation result of the R circuit 60 is not output.

【0035】上述した0−180度方向黒線ピーク検出
部38の処理を式を用いて説明する。AND回路59−
4は、数式10を満たす時に、「ON」信号を出力し、
満たさないときに、「OFF」信号を出力する。
The processing of the above-described black line peak detecting section 38 in the 0-180 degree direction will be described using equations. AND circuit 59-
4 outputs an “ON” signal when Expression 10 is satisfied,
If not, an "OFF" signal is output.

【0036】[0036]

【数5】 (Equation 5)

【0037】[0037]

【数6】 (Equation 6)

【0038】[0038]

【数7】 (Equation 7)

【0039】[0039]

【数8】 (Equation 8)

【0040】[0040]

【数9】 (Equation 9)

【0041】[0041]

【数10】 (Equation 10)

【0042】次に、図9は、90−270度方向黒線ピ
ーク検出部39、図10は、45−225度方向黒線ピ
ーク検出部40、図11は、135−315度方向黒線
ピーク検出部41の構成を示すブロック図である。な
お、それぞれの構成において、処理内容は画素が異なる
だけで、0−180度方向黒線ピーク検出部38と同様
であるので、説明を省略する。
Next, FIG. 9 shows a 90-270 degree black line peak detector 39, FIG. 10 shows a 45-225 degree black line peak detector 40, and FIG. 11 shows a 135-315 degree black line peak. FIG. 3 is a block diagram illustrating a configuration of a detection unit 41. Note that, in each configuration, the processing content is the same as that of the black line peak detection unit in the 0-180 degree direction, except for the pixels, and a description thereof will be omitted.

【0043】次に、図12は、白ピーク抽出部22の構
成を示すブロック図である。なお、図5に対応する部分
には同一の符号を付けて説明を省略する。図において、
比較器91は、上記加算結果と注目画素値とを比較し、
その比較結果をAND回路37の一方の入力端に供給す
る。すなわち、比較器91は、注目画素値が加算器32
の出力結果よりも小さい場合には「ON」の信号を出力
し、注目画素値が加算器32の出力結果よりも大きい
か、または等しい場合には「OFF」の信号を出力す
る。
FIG. 12 is a block diagram showing the structure of the white peak extracting section 22. Parts corresponding to those in FIG. 5 are denoted by the same reference numerals, and description thereof is omitted. In the figure,
The comparator 91 compares the addition result with the pixel value of interest,
The comparison result is supplied to one input terminal of the AND circuit 37. That is, the comparator 91 determines that the pixel value of interest is
If the output result of the adder 32 is larger than or equal to the output result of the adder 32, an "ON" signal is outputted.

【0044】また、近傍画素最小値算出部92は、入力
されるL*明度信号に従って、注目画素の近傍画素の最
小値を算出する。この近傍画素の例としては、前述した
ように、4近傍や8近傍などがある。比較器93は、加
算器35の加算結果と注目画素値とを比較し、その比較
結果をAND回路37の他方の入力端に供給する。すな
わち、比較器93は、注目画素値が加算器35の出力結
果よりも小さい場合には「ON」の信号を出力し、注目
画素値が加算器35の出力結果よりも大きいか、または
等しい場合には「OFF」の信号を出力する。AND回
路37では、上記比較器91の出力結果と上記比較器9
3の出力結果との論理積をとり、OR回路42に供給す
る。
The minimum neighboring pixel calculating section 92 calculates the minimum value of the neighboring pixels of the target pixel according to the input L * lightness signal. Examples of the neighboring pixels include four neighborhoods and eight neighborhoods as described above. The comparator 93 compares the addition result of the adder 35 with the target pixel value, and supplies the comparison result to the other input terminal of the AND circuit 37. That is, the comparator 93 outputs an “ON” signal when the target pixel value is smaller than the output result of the adder 35, and outputs a “ON” signal when the target pixel value is larger than or equal to the output result of the adder 35. Outputs an "OFF" signal. In the AND circuit 37, the output result of the comparator 91 and the comparator 9
The logical product with the output result of No. 3 is taken and supplied to the OR circuit 42.

【0045】また、0−180度方向白線ピーク検出部
94は、L*明度信号に従って、水平方向に伸びる白の
線分(画像中の谷)を検出し、OR回路42に供給す
る。90−270度方向白線ピーク検出部95は、垂直
方向に伸びる白の線分、45−225度方向白線ピーク
検出部96は、右上←→左下方向に伸びる白の線分、1
35−315度方向白線ピーク検出部97は、左上←→
右下方向に伸びる白の線分を検出する。なお、0−18
0度方向白線ピーク検出部94、90−270度方向白
線ピーク検出部95、45−225度方向白線ピーク検
出部96、および135−315度方向白線ピーク検出
部97の詳細については後述する。
The 0-180 degree direction white line peak detecting section 94 detects a white line segment (valley in the image) extending in the horizontal direction in accordance with the L * lightness signal and supplies it to the OR circuit 42. The 90-270 degree direction white line peak detection unit 95 has a white line segment extending in the vertical direction, and the 45-225 degree direction white line peak detection unit 96 has a white line segment extending in the upper right direction and lower left direction.
35-315 degree direction white line peak detection unit 97, upper left ← →
Detects white line segments extending in the lower right direction. In addition, 0-18
Details of the 0-degree white line peak detection unit 94, the 90-270-degree white line peak detection unit 95, the 45-225-degree white line peak detection unit 96, and the 135-315-degree white line peak detection unit 97 will be described later.

【0046】OR回路42は、AND回路37の論理積
結果、0−180度方向白線ピーク検出部94、90−
270度方向白線ピーク検出部95、45−225度方
向白線ピーク検出部96、および135−315度方向
白線ピーク検出部97のそれぞれの白線ピーク検出結果
の論理和を演算し、前述した白ピーク抽出部22の出力
となる。
The OR circuit 42 outputs the logical product of the AND circuit 37 and the 0-180 degree white line peak detectors 94, 90-
The logical sum of the white line peak detection results of the 270 degree direction white line peak detection unit 95, the 45-225 degree direction white line peak detection unit 96, and the 135-315 degree direction white line peak detection unit 97 is calculated, and the above-described white peak extraction is performed. The output of the unit 22.

【0047】次に、図13は、0−180度方向白線ピ
ーク検出部94の構成を示すブロック図である。なお、
図7に示す0−180度方向黒線ピーク検出部に対応す
る部分には同一の符号を付け説明を省略する。0−18
0度方向白線ピーク検出部と異なる点は、減算器54−
1では、加算器53−1の加算結果から加算器53−2
の加算結果を減算しており、減算器54−2では、加算
器53−3の加算結果から加算器53−2の加算結果を
減算しているところである。
FIG. 13 is a block diagram showing the configuration of the white line peak detector 94 in the 0-180 degree direction. In addition,
Portions corresponding to the black line peak detector in the 0-180 degree direction shown in FIG. 7 are denoted by the same reference numerals, and description thereof is omitted. 0-18
The difference from the 0-degree direction white line peak detector is that the subtractor 54-
At 1, the adder 53-2 is calculated based on the addition result of the adder 53-1.
Is subtracted, and the subtractor 54-2 is subtracting the addition result of the adder 53-2 from the addition result of the adder 53-3.

【0048】すなわち、減算器54−1からは数式11
に示す結果が出力され、絶対値演算器5−1からは数式
12に示す結果が出力される。また、減算器54−2か
らは数式13に示す結果が出力され、絶対値演算器55
−2からは数式14に示す結果が出力される。
That is, the following equation (11) is obtained from the subtractor 54-1.
Is output, and the result shown in Expression 12 is output from the absolute value calculator 5-1. Further, the result shown in Expression 13 is output from the subtractor 54-2, and the absolute value calculator 55
From -2, the result shown in Expression 14 is output.

【数11】 [Equation 11]

【0049】[0049]

【数12】 (Equation 12)

【0050】[0050]

【数13】 (Equation 13)

【0051】[0051]

【数14】 上述した0−180度方向白線ピーク検出部94の処理
を式を用いて説明する。AND回路59−4は、数式2
0を満たす時に、「ON」信号を出力し、満たさないと
きに、「OFF」信号を出力する。
[Equation 14] The above-described processing of the white line peak detection unit 94 in the 0-180 degree direction will be described using equations. The AND circuit 59-4 is given by the following equation (2).
When “0” is satisfied, an “ON” signal is output. When “0” is not satisfied, an “OFF” signal is output.

【0052】[0052]

【数15】 (Equation 15)

【0053】[0053]

【数16】 (Equation 16)

【0054】[0054]

【数17】 [Equation 17]

【0055】[0055]

【数18】 (Equation 18)

【0056】[0056]

【数19】 [Equation 19]

【0057】[0057]

【数20】 次に、図14は、90−270度方向白線ピーク検出部
95、図15は、45−225度方向白線ピーク検出部
96、図16は、135−315度方向白線ピーク検出
部97の構成を示すブロック図である。なお、それぞれ
の構成において、処理内容は画素が異なるだけで、0−
180度方向白線ピーク検出部94と同様であるので、
説明を省略する。
(Equation 20) Next, FIG. 14 shows a configuration of a 90-270 degree direction white line peak detection unit 95, FIG. 15 shows a configuration of a 45-225 degree direction white line peak detection unit 96, and FIG. FIG. Note that, in each configuration, the processing content is different only for the pixels.
Since it is the same as the 180-degree direction white line peak detection unit 94,
Description is omitted.

【0058】次に、図17は、黒ピークスコアリング部
23の構成を示すブロック図である。なお、図18は、
白ピークスコアリング部24の構成を示すブロック図で
あり、図17に示す黒ピークスコアリング部23の構成
と同じである。したがって、図18に関しては、下記の
説明に出てくる「黒」を「白」に置き換えればよいので
説明を省略する。黒ピークスコアリング部23は、黒ピ
ーク抽出部21で抽出された黒ピーク画素の位置関係よ
り、注目画素に対するスコアを算出する。図において、
マトリクス生成部100は、例えば1ラインメモリ(F
IFO)とラッチ回路とで構成されており、黒ピーク抽
出部21から供給されるピーク抽出信号を、注目画素を
中心としたM×Nのウィンドウサイズにマトリクス化す
る。本実施形態では、M=N=13とする。
Next, FIG. 17 is a block diagram showing the configuration of the black peak scoring section 23. In addition, FIG.
FIG. 18 is a block diagram illustrating a configuration of a white peak scoring unit 24, which is the same as the configuration of the black peak scoring unit 23 illustrated in FIG. Therefore, with regard to FIG. 18, since “black” in the following description may be replaced with “white”, the description is omitted. The black peak scoring unit 23 calculates a score for the target pixel from the positional relationship of the black peak pixels extracted by the black peak extraction unit 21. In the figure,
The matrix generation unit 100 includes, for example, a one-line memory (F
IFO) and a latch circuit. The peak extraction signal supplied from the black peak extraction unit 21 is matrixed into an M × N window size centering on the pixel of interest. In the present embodiment, M = N = 13.

【0059】次に、パターン比較部101は、上記13
×13にマトリクス化されたピーク抽出信号が予め設定
された複数のパターンのどれに一致するか、あるいは類
似するかを判定する。具体的には、パターンに一致また
は類似していた場合には、そのパターンを識別するパタ
ーン識別信号を出力する。なお、該パターン識別信号
は、1つとは限らず、どのパターンにも一致も類似もし
なければ出力されず、複数のパターンに一致または類似
した場合には、複数個出力される。該パターン比較部1
01の詳細については後述する。
Next, the pattern comparing section 101
It is determined which of a plurality of preset patterns the peak extraction signal matrixed into × 13 matches or is similar to. Specifically, if the pattern matches or is similar to the pattern, the pattern identification signal for identifying the pattern is output. Note that the pattern identification signal is not limited to one, and is not output unless there is a match or similarity with any pattern. If the pattern identification signal matches or is similar with a plurality of patterns, a plurality of the pattern identification signals are output. The pattern comparison unit 1
01 will be described later.

【0060】スコアリング部102は、上記パターン識
別信号に対応するスコア(点数)を全て最大スコア検出
部103に供給する。なお、スコアリング部102の詳
細についても後述する。最大スコア検出部103は、上
記全てのスコアの中から最も大きいスコアを検出し、セ
レクタ105に供給する。なお、該最大スコア検出部1
03は、スコアが何も供給されなかった場合には、
「0」を出力する。
The scoring unit 102 supplies all the scores (points) corresponding to the pattern identification signal to the maximum score detecting unit 103. The details of the scoring unit 102 will also be described later. The maximum score detection unit 103 detects the largest score among all the scores, and supplies the largest score to the selector 105. The maximum score detection unit 1
03 indicates that no score was provided,
Outputs "0".

【0061】連続ピーク判定部104は、13×13に
マトリクス化されたピーク抽出信号に従って、注目画素
を含み、かつピーク画素がK個以上(K>1)連続して
いるか否かを判定し、連続している場合には「ON」信
号をセレクタ105に供給し、連続していない場合には
「OFF」信号をセレクタ105に供給する。なお、連
続ピーク判定部104の詳細については後述する。
The continuous peak determining section 104 determines whether or not the target pixel is included and the number of peak pixels is K or more (K> 1) continuous according to the peak extraction signal formed into a matrix of 13 × 13. If they are continuous, an “ON” signal is supplied to the selector 105. If they are not continuous, an “OFF” signal is supplied to the selector 105. The details of the continuous peak determination unit 104 will be described later.

【0062】セレクタ105は、上記連続ピーク判定部
104の出力信号をセレクタ信号として、連続ピーク判
定部104の出力信号が「OFF」の場合には最大スコ
ア検出部103の出力を選択し、逆に連続ピーク判定部
104の出力信号が「ON」の場合には「0」を選択
し、黒ピークスコアリング部23での処理結果として出
力する。すなわち、ピークがK個以上連続していた場合
(連続ピーク判定部104の出力信号が「ON」の場
合)には、注目画素は網点領域らしくないと判定し、黒
ピークスコアリング部23からは「0」を出力する。逆
に、ピークがK個以上連続していない場合(連続ピーク
判定部104の出力信号が「OFF」の場合)には、注
目画素は網点領域の可能性ありと判定し、黒ピークスコ
アリング部23からの出力として最大スコア検出部10
3の出力値を採用する。
The selector 105 selects the output of the maximum score detection unit 103 when the output signal of the continuous peak determination unit 104 is "OFF", using the output signal of the continuous peak determination unit 104 as a selector signal. When the output signal of the continuous peak determination unit 104 is “ON”, “0” is selected and output as a processing result in the black peak scoring unit 23. That is, when K or more peaks are continuous (when the output signal of the continuous peak determination unit 104 is “ON”), it is determined that the pixel of interest is not likely to be a halftone dot region, and the black peak scoring unit 23 determines Outputs “0”. Conversely, when K or more peaks are not continuous (when the output signal of the continuous peak determination unit 104 is “OFF”), it is determined that the pixel of interest may be a halftone dot area, and black peak scoring is performed. The maximum score detecting unit 10 as an output from the unit 23
An output value of 3 is adopted.

【0063】次に、図19は、上述したパターン比較部
101の動作を説明するための概念図である。図19
(a)には、マトリクス生成部100で13×13にマ
トリクス化された各画素をアルファベットと数字で表し
ており、注目画素を「A」としている。パターン比較部
101では、注目画素「A」がON画素(ピーク画素)
であり、かつCi〜EEi(i=1,2,3,4)の同
一アルファベットの4画素が全て「ON」のときにパタ
ーンに一致したと判定し、そのパターン(アルファベッ
ト)の識別信号を出力する。
Next, FIG. 19 is a conceptual diagram for explaining the operation of the pattern comparing section 101 described above. FIG.
In (a), each pixel that is formed into a matrix of 13 × 13 by the matrix generation unit 100 is represented by an alphabet and a numeral, and the pixel of interest is set to “A”. In the pattern comparison unit 101, the target pixel “A” is an ON pixel (peak pixel)
, And when all four pixels of the same alphabet from Ci to EEi (i = 1, 2, 3, 4) are "ON", it is determined that the pattern matches the pattern, and an identification signal of the pattern (alphabet) is output. I do.

【0064】ここで、上述したパターン比較部101の
動作について図20を参照して説明する。まず、ステッ
プS101で、注目画素「A」が「ON」であるか、
「OFF」であるかを調べる。注目画素「A」が「O
N」である場合には、ステップS102以降で、パター
ンとの比較処理を行い、「OFF」の場合には、当該注
目画素に対するパターン比較処理を終了する。
Here, the operation of the above-described pattern comparing section 101 will be described with reference to FIG. First, in step S101, whether the target pixel “A” is “ON”
Check if it is "OFF". The target pixel “A” is “O”
If "N", the comparison process with the pattern is performed in step S102 and thereafter, and if "OFF", the pattern comparison process for the pixel of interest is terminated.

【0065】注目画素「A」が「ON」であった場合、
まず、ステップS102で、判定対象パターンである画
素(□で表す)を「C」に初期化する。次に、ステップ
S103で、□i(i=1,2,3,4)が全て「O
N」であるか否かを判定する。全て「ON」であった場
合には、ステップS104で、□に対応するパターン一
致識別信号を出力する。
When the target pixel “A” is “ON”,
First, in step S102, pixels (represented by squares) that are patterns to be determined are initialized to “C”. Next, in step S103, □ i (i = 1, 2, 3, 4) are all “O
N ”is determined. If all are "ON", a pattern match identification signal corresponding to □ is output in step S104.

【0066】次に、ステップS105で、他の判定対象
パターンがあるか否かを判断し、他の判定パターンがあ
る場合には、ステップS106で、判定対象をそのパタ
ーンに変更し、ステップS103に戻る。以下、ステッ
プS103以降を実行し、全てのパターンとを比較し、
一致する度にパターン一致識別信号を出力する。他の判
定対象パターンがない場合には、該注目画素に対するパ
ターン比較処理を終了する。
Next, in step S105, it is determined whether or not there is another pattern to be determined. If there is another pattern to be determined, the target is changed to that pattern in step S106, and the process proceeds to step S103. Return. Hereinafter, step S103 and subsequent steps are executed, all patterns are compared, and
Each time a match is made, a pattern match identification signal is output. If there is no other pattern to be determined, the pattern comparison process for the pixel of interest ends.

【0067】例えば、図19(b)では、注目画素
「A」が「ON」であり、K1〜K4の4画素が全て「O
N」であるので、パターンKに一致したことを示すパタ
ーン一致識別信号を出力する。また、図19(c)で
は、注目画素「A」が「ON」であり、注目画素に比較
的近い上記K1〜K4の4画素が全て「ON」であるとと
もに、注目画素から比較的遠いDD1〜DD4の4画素が
「ON」であるので、パターンKおよびパターンDDに
一致したことを示すパターン一致識別信号を出力する。
For example, in FIG. 19B, the target pixel "A" is "ON", and all four pixels K1 to K4 are "O".
N ”, a pattern match identification signal indicating that the pattern matches the pattern K is output. In FIG. 19C, the target pixel “A” is “ON”, all the four pixels K1 to K4 that are relatively close to the target pixel are “ON”, and DD1 is relatively far from the target pixel. Since four pixels .about.DD4 are "ON", a pattern matching identification signal indicating that the pattern K matches the pattern K is output.

【0068】また、パターン比較部101の第2の処理
例について図21を参照して説明する。まず、ステップ
S201で、注目画素「A」が「ON」であるか、「O
FF」であるかを判断する。そして、注目画素「A」が
「ON」の場合には、ステップS202以降でパターン
との比較処理を行い、「OFF」の場合には、該注目画
素に対するパターン比較処理を終了する。
A second processing example of the pattern comparing section 101 will be described with reference to FIG. First, in step S201, whether the target pixel “A” is “ON” or “O”
FF ”is determined. When the target pixel “A” is “ON”, the comparison process with the pattern is performed in step S202 and thereafter, and when the target pixel “A” is “OFF”, the pattern comparison process for the target pixel is ended.

【0069】注目画素「A」が「ON」であった場合に
は、ステップS202で、判定対象パターンである画素
(□で表す)を「C」に初期化する。次に、ステップS
203で、□i(i=1,2,3,4)のうち、「O
N」画素の個数を調べる。そして、4個とも「ON」で
あった場合には、ステップS204で、□に対応するパ
ターン一致識別信号を出力し、「ON」画素数が3個の
場合には、ステップS205で、□に対するパターン類
似識別信号を出力する。
If the target pixel "A" is "ON", in step S202, a pixel (indicated by a square) which is a pattern to be determined is initialized to "C". Next, step S
In 203, among □ i (i = 1, 2, 3, 4), “O
Check the number of "N" pixels. If all four pixels are “ON”, a pattern matching identification signal corresponding to □ is output in step S204. If the number of “ON” pixels is three, in step S205, A pattern similarity identification signal is output.

【0070】次に、ステップS206で、他の判定対象
パターンがあるか否かを判断し、他の判定パターンがあ
る場合には、ステップS207で、判定対象をそのパタ
ーンに変更し、ステップS203に戻る。以下、ステッ
プS203以降を実行し、全てのパターンとの比較し、
一致する度にパターン一致識別信号を出力し、類似する
度にパターン類似識別信号を出力する。他の判定対象パ
ターンがない場合には、該注目画素に対するパターン比
較処理を終了する。
Next, in step S206, it is determined whether or not there is another pattern to be determined. If there is another pattern to be determined, the determination target is changed to that pattern in step S207, and the process proceeds to step S203. Return. Hereinafter, step S203 and subsequent steps are executed, and all patterns are compared.
A pattern matching identification signal is output each time they match, and a pattern similar identification signal is output each time they match. If there is no other pattern to be determined, the pattern comparison process for the pixel of interest ends.

【0071】例えば、図19(d)では、注目画素
「A」が「ON」であり、K1〜K4のうち、K1、K3、
K4の3画素が「ON」であるので、パターンKに類似
したことを表すパターン類似識別信号を出力する。
For example, in FIG. 19D, the target pixel "A" is "ON", and among K1 to K4, K1, K3,
Since the three pixels K4 are "ON", a pattern similarity identification signal indicating that the pattern K is similar to the pattern K is output.

【0072】さらに、パターン比較部101の第3の処
理例について図22を参照して説明する。まず、ステッ
プS301で、注目画素「A」が「ON」であるか、
「OFF」であるかを判断する。そして、注目画素
「A」が「ON」の場合には、ステップS302以降で
パターンとの比較処理を行い、「OFF」の場合には、
該注目画素に対するパターン比較処理を終了する。
Further, a third processing example of the pattern comparing section 101 will be described with reference to FIG. First, in step S301, whether the target pixel “A” is “ON”
It is determined whether it is "OFF". Then, when the target pixel “A” is “ON”, a comparison process with the pattern is performed in step S302 and thereafter, and when the target pixel “A” is “OFF”,
The pattern comparison processing for the pixel of interest ends.

【0073】注目画素「A」が「ON」であった場合に
は、ステップS302で、判定対象パターンである画素
(□で表す)を「C」に初期化する。次に、ステップS
303で、□i(i=1,2,3,4)のうち、「O
N」画素の個数を調べる。そして、4個とも「ON」で
あった場合には、ステップS305で、□に対応するパ
ターン一致識別信号を出力する。また、「ON」画素数
が1〜3個であった場合には、ステップS304で、
「OFF」である全ての□i画素の近傍にそれぞれ1つ
でも「ON」画素が存在するか否かを判断し、存在する
場合には、ステップS306で、□に対応するパターン
類似識別信号を出力する。なお、この近傍は、例えば4
近傍や8近傍を用いることができる。
If the target pixel "A" is "ON", in step S302, a pixel (represented by a square) which is a pattern to be determined is initialized to "C". Next, step S
In 303, among □ i (i = 1, 2, 3, 4), “O
Check the number of "N" pixels. If all four are "ON", a pattern matching identification signal corresponding to □ is output in step S305. If the number of “ON” pixels is 1 to 3, in step S304,
It is determined whether at least one “ON” pixel exists in the vicinity of all the “i” pixels that are “OFF”, and if so, in step S306, a pattern similarity identification signal corresponding to Output. This neighborhood is, for example, 4
A neighborhood or eight neighborhoods can be used.

【0074】次に、ステップS307で、他の判定対象
パターンがあるか否かを判断し、他の判定パターンがあ
る場合には、ステップS308で、判定対象をそのパタ
ーンに変更し、ステップS303に戻る。以下、ステッ
プS303以降を実行し、全てのパターンとの比較し、
一致する度にパターン一致識別信号を出力し、類似する
度にパターン類似識別信号を出力する。他の判定対象パ
ターンがない場合には、該注目画素に対するパターン比
較処理を終了する。
Next, in step S307, it is determined whether or not there is another pattern to be determined. If there is another pattern to be determined, the pattern to be determined is changed to that pattern in step S308, and the process proceeds to step S303. Return. Hereinafter, step S303 and subsequent steps are executed, and all the patterns are compared.
A pattern matching identification signal is output each time they match, and a pattern similar identification signal is output each time they match. If there is no other pattern to be determined, the pattern comparison process for the pixel of interest ends.

【0075】例えば、図19(e)では、注目画素
「A」が「ON」であり、かつDD1〜DD4において、
DD1が「ON」、DD2の4近傍のZ2、DD3の4近傍
のZ3、DD4の4近傍のPP4が「ON」であるので、
パターンDDに類似したことを表すパターン類似識別信
号を出力する。
For example, in FIG. 19 (e), the target pixel “A” is “ON”, and in DD1 to DD4,
Since DD1 is “ON”, Z2 near DD2 at four, Z3 near DD3 at four, and PP4 near DD4 at four are “ON”,
A pattern similarity identification signal indicating that the pattern is similar to the pattern DD is output.

【0076】なお、パターン比較部101の処理例とし
て上述した3例を挙げたが、それぞれを組み合わせても
よい。すなわち、判定対象パターンがC〜Gの場合に
は、第2の例に挙げたような処理を行い、H〜EEの場
合には、第3の例に挙げたような処理を行ってもよい。
Although the above-described three examples have been given as examples of processing of the pattern comparing section 101, they may be combined. That is, when the determination target patterns are C to G, the processing described in the second example may be performed, and when the determination target patterns are H to EE, the processing described in the third example may be performed. .

【0077】次に、上述したスコアリング部102につ
いて説明する。スコアリング部102は、例えばRAM
やROMで構成されており、パターン比較部101から
供給されるパターン一致識別信号あるいはパターン類似
識別信号に基づいて、記憶されているデータ(スコア)
を検索し、そのデータを出力する。ここで、図23は、
スコアリング部102に記憶されているスコアデータの
一例を示す概念図である。例えば、パターン比較部10
1からの「K」のパターン一致識別信号が供給された場
合には「13」を出力し、「DD」のパターン類似識別
信号が供給された場合には「21」を出力する。
Next, the scoring unit 102 will be described. The scoring unit 102 is, for example, a RAM
Data (score) based on the pattern matching identification signal or the pattern similarity identification signal supplied from the pattern comparing unit 101.
And outputs the data. Here, FIG.
FIG. 3 is a conceptual diagram illustrating an example of score data stored in a scoring unit. For example, the pattern comparing unit 10
When the pattern matching identification signal of “K” from 1 is supplied, “13” is output, and when the pattern similar identification signal of “DD” is supplied, “21” is output.

【0078】なお、スコアリング部102に記憶させる
スコアデータは、任意の値でもよいが、注目画素からの
距離の2乗に比例あるいはほぼ比例するような値が望ま
しい。図23に示すスコアデータの例は、パターン一致
識別信号に関しては、注目画素とパターンとのユークリ
ッド距離の2乗を、パターン類似識別信号に関しては、
注目画素とパターンとのユークリッド距離の2乗の半分
を切り上げた値をスコアデータとしている。また、スコ
アリング部102に関しては、上述した例では、RAM
やROMで構成した例を示したが、入力されたパターン
一致識別信号あるいはパターン類似識別信号から、乗算
器や加算器を用いて直接距離計算を行い、スコアデータ
を出力するような構成であってもよい。
The score data stored in the scoring unit 102 may be an arbitrary value, but is desirably a value proportional to or approximately proportional to the square of the distance from the pixel of interest. In the example of the score data shown in FIG. 23, the square of the Euclidean distance between the target pixel and the pattern is used for the pattern matching identification signal, and
The value obtained by rounding up half of the square of the Euclidean distance between the target pixel and the pattern is used as score data. Further, regarding the scoring unit 102, in the above-described example, the RAM
Or ROM, the distance is calculated directly from the input pattern match identification signal or pattern similar identification signal using a multiplier or an adder, and score data is output. Is also good.

【0079】次に、図24は、上述した連続ピーク判定
部104の構成を示す回路図である。連続ピーク判定部
104では、マトリクス生成部100から供給される1
3×13にマトリクス化されたピーク抽出信号を用い
て、注目画素を含んでピーク画素がK個以上(K>1)
連続しているか否かを判定し、連続している場合には
「ON」信号を、連続していない場合には「OFF」信
号をセレクタ105に供給する。なお、図24では、K
=4(ピーク画素が4画素以上連続)のときを例として
示している。また、図中のアルファベットは、図19
(a)に示している「A」を注目画素としたときの周辺
画素の位置を表す記号である。
FIG. 24 is a circuit diagram showing a configuration of the above-mentioned continuous peak judging section 104. In the continuous peak determination unit 104, the 1 supplied from the matrix generation unit 100
K or more peak pixels including the pixel of interest are used (K> 1) by using the peak extraction signal matrixed into 3 × 13.
It is determined whether or not they are continuous, and if they are continuous, an “ON” signal is supplied to the selector 105 if they are not continuous. In FIG. 24, K
= 4 (4 or more consecutive peak pixels) are shown as an example. The alphabet in the figure is
This is a symbol indicating the position of a peripheral pixel when “A” shown in FIG.

【0080】図において、AND回路111−1は、入
力されるH3、D3、B3、Aの4画素の信号の論理積を
演算し、OR回路115に供給する。同様に、AND回
路111−2は、D3、B3、A、B1の信号の論理積、
AND回路111−3は、B3、A、B1、D1の信号の
論理積、AND回路111−4は、A、B1、D1、H1
の信号の論理積を演算し、OR回路115に供給する。
OR回路115は、入力された上記4信号の論理和を演
算し、OR回路119に供給する。すなわち、AND回
路111−1〜111−4では、それぞれ1画素ずつず
らしながら、注目画素Aを含む水平方向の連続する4画
素が「ON」であるか否か、言い換えると、注目画素A
を含んで、「ON」信号が4画素連続するか否かが判定
され、それぞれの判定結果がOR回路115で論理和が
演算される。したがって、OR回路115の出力が「O
N」の場合には、注目画素Aを含んで水平方向に「O
N」信号が4画素連続していることを表し、「OFF」
の場合には、連続していないことを表す。
In the figure, an AND circuit 111-1 calculates a logical product of inputted signals of four pixels H 3, D 3, B 3, and A, and supplies the result to an OR circuit 115. Similarly, the AND circuit 111-2 calculates the logical product of the signals of D3, B3, A, and B1,
The AND circuit 111-3 is a logical product of the signals of B3, A, B1, and D1, and the AND circuit 111-4 is a logical product of A, B1, D1, and H1.
And outputs the result to the OR circuit 115.
The OR circuit 115 calculates the logical sum of the input four signals and supplies the result to the OR circuit 119. That is, in the AND circuits 111-1 to 111-4, while shifting one pixel at a time, it is determined whether four consecutive pixels in the horizontal direction including the target pixel A are "ON", in other words, the target pixel A
, It is determined whether or not the “ON” signal is continuous for four pixels, and the OR result of each determination result is calculated by the OR circuit 115. Therefore, the output of the OR circuit 115 becomes "O
N ”,“ O ”in the horizontal direction including the pixel of interest A
"N" signal indicates that four pixels are continuous, and "OFF"
In the case of, it indicates that they are not continuous.

【0081】同様に、AND回路112−1〜112−
4およびOR回路116は、注目画素Aを含んで垂直方
向に「ON」信号が4画素連続しているか否かを判定
し、また、AND回路113−1〜113−4およびO
R回路117は、注目画素Aを含んで左下←→右上方向
に「ON」信号が4画素連続しているか否かを判定す
る。さらに、AND回路114−1〜114−4および
OR回路118は、注目画素Aを含んで左上←→右下方
向に「ON」信号が4画素連続しているか否かを判定す
る。
Similarly, AND circuits 112-1 to 112-
4 and the OR circuit 116 determine whether or not the “ON” signal is continuous for four pixels in the vertical direction including the pixel of interest A. The AND circuits 113-1 to 113-4 and O
The R circuit 117 determines whether or not the “ON” signal is continuous for four pixels in the lower left to right upper direction including the target pixel A. Further, the AND circuits 114-1 to 114-4 and the OR circuit 118 determine whether or not the "ON" signal is continuous for four pixels in the upper left direction to the lower right direction including the target pixel A.

【0082】OR回路119は、上記OR回路115〜
118の出力の論理和を演算する。すなわち、OR回路
119は、注目画素Aを含んで「ON」信号が縦横斜め
のいずれかの方向に4画素連続している場合には、「O
N」信号を出力し、4画素連続していない場合には、
「OFF」信号を出力する。
The OR circuit 119 comprises the OR circuits 115 to 115
The logical sum of the output of 118 is calculated. That is, when the “ON” signal including the target pixel A is continuous for four pixels in any of the vertical and horizontal directions, the OR circuit 119 outputs “O”.
N "signal, and when four pixels are not consecutive,
An "OFF" signal is output.

【0083】なお、本実施形態では、連続ピーク判定部
104において、水平・垂直・左下←→右上・左上←→
右下の4方向の4画素連続判定を行ったが、これ以外に
も、例えば「A」、「B1」、「E1」、「I1」の4画
素連続ピーク判定などを行ってもよい。
In the present embodiment, the horizontal / vertical / lower left ← → upper right / upper left ← →
Although the four-pixel continuous determination in the four lower right directions is performed, a four-pixel continuous peak determination of, for example, “A”, “B1”, “E1”, and “I1” may be performed.

【0084】次に、図25は、上述した網点判定部25
の構成を示すブロック図である。図において、最大スコ
ア判定部121は、黒ピークスコアリング部23から供
給される黒ピークに対するスコアリング結果と、白ピー
クスコアリング部24から供給される白ピークに対する
スコアリング結果のうち、大きい方を判定し、大きい方
のスコア信号をマトリクス生成部122に供給する。マ
トリクス生成部122は、例えば1ラインメモリ(FI
FO)とラッチ回路とで構成されており、上記スコア信
号を、注目画素を中心としたK×Lのウィンドウサイズ
にマトリクス化する。本実施形態では、K=L=25と
して以下の説明を行う。
Next, FIG. 25 shows the above-described halftone dot determination section 25.
FIG. 3 is a block diagram showing the configuration of FIG. In the figure, the maximum score determination unit 121 determines the larger one of the scoring result for the black peak supplied from the black peak scoring unit 23 and the scoring result for the white peak supplied from the white peak scoring unit 24. The judgment is made and the larger score signal is supplied to the matrix generator 122. The matrix generation unit 122 includes, for example, a one-line memory (FI
FO) and a latch circuit, and converts the score signal into a matrix of K × L window size centering on the pixel of interest. In the present embodiment, the following description is made on the assumption that K = L = 25.

【0085】スコア加算部123は、上記25×25の
ウィンドウサイズにマトリクス化されたスコア信号(6
25画素)を全て加算し、その加算結果をスコア比較部
124に供給する。スコア比較部124は、上記加算結
果と所定のしきい値TH25と比較し、その比較結果
(網点判定結果)を出力する。すなわち、スコア加算部
123からの出力値が所定のしきい値TH25よりも大
きい場合には、注目画素は網点領域と判定され、スコア
比較部124からは「ON」信号が出力され、所定のし
きい値TH25よりも小さいか、または等しい場合に
は、注目画素は網点領域ではないと判定され、スコア比
較部124からは「OFF」信号が出力される。
The score adding section 123 converts the score signals (6
(25 pixels), and the result of the addition is supplied to the score comparison unit 124. The score comparing section 124 compares the result of the addition with a predetermined threshold value TH25, and outputs the result of the comparison (halftone dot determination result). That is, when the output value from the score adding unit 123 is larger than the predetermined threshold value TH25, the target pixel is determined to be a halftone dot region, and an “ON” signal is output from the score comparing unit 124, If it is smaller than or equal to the threshold value TH25, it is determined that the pixel of interest is not a halftone dot area, and the “OFF” signal is output from the score comparison unit 124.

【0086】次に、図26は、上述した網点判定部25
の他の構成例を示すブロック図である。なお、図25に
対応する部分には同一の符号を付けて説明を省略する。
図において、加算器125は、黒ピークスコアリング部
23から供給される黒ピークに対するスコアリング結果
と、白ピークスコアリング部24から供給される白ピー
クに対するスコアリング結果とを加算し、すなわち同一
の注目画素に対するスコア同士を加算し、その加算結果
をマトリクス生成部122に供給する。これ以降の処理
は、上述した構成と同様であるため、簡単に説明する。
加算器125の出力は、マトリクス生成部122で25
×25のウィンドウサイズにマトリクス化され、マトリ
クス化されたスコア信号は、スコア加算部123に供給
される。スコア加算部123では、25×25=625
画素に対するスコア信号が全て加算され、スコア比較部
124で、その加算結果と所定のしきい値TH26とが
比較されて、比較結果(網点判定結果)が出力される。
Next, FIG. 26 shows the above-described halftone dot determination section 25.
FIG. 13 is a block diagram showing another example of the configuration. Parts corresponding to those in FIG. 25 are denoted by the same reference numerals, and description thereof is omitted.
In the figure, an adder 125 adds the scoring result for the black peak supplied from the black peak scoring unit 23 and the scoring result for the white peak supplied from the white peak scoring unit 24, that is, the same result. The scores for the target pixel are added together, and the addition result is supplied to the matrix generation unit 122. Subsequent processing is the same as the above-described configuration, and thus will be briefly described.
The output of the adder 125 is output by the matrix generation unit 122 to 25
The score signal that is matrixed into a window size of × 25 and is matrixed is supplied to the score adding unit 123. In the score adding unit 123, 25 × 25 = 625
All the score signals for the pixels are added, and the score comparison unit 124 compares the addition result with a predetermined threshold value TH26, and outputs a comparison result (halftone dot determination result).

【0087】さらに、図27は、上述した網点判定部2
5の他の構成例を示すブロック図である。図において、
マトリクス生成部122−1は、黒ピークスコアリング
部23から供給される黒ピークに対するスコアリング結
果を、25×25のウィンドウサイズにマトリクス化す
る。スコア加算部123−1は、上記25×25=62
5画素に対するスコア信号を全て加算し、この加算結果
をスコア比較部124−1に供給する。スコア比較部1
24−1は、上記スコア加算値と所定のしきい値TH2
7とを比較し、スコア加算値の方が所定のしきい値TH
27よりも大きい場合には「ON」信号を出力し、所定
のしきい値TH27よりも小さいか、あるいは等しい場
合には「OFF」信号を出力する。
FIG. 27 is a block diagram showing the halftone judgment unit 2 described above.
It is a block diagram which shows the other example of a structure of FIG. In the figure,
The matrix generation unit 122-1 converts the scoring result for the black peak supplied from the black peak scoring unit 23 into a matrix having a window size of 25 × 25. The score adding unit 123-1 calculates the above 25 × 25 = 62.
All the score signals for the five pixels are added, and the result of the addition is supplied to the score comparison unit 124-1. Score comparison unit 1
24-1 is the score added value and a predetermined threshold value TH2
7 is compared with the threshold value TH.
If it is larger than 27, it outputs an "ON" signal, and if it is smaller than or equal to a predetermined threshold value TH27, it outputs an "OFF" signal.

【0088】一方、マトリクス生成部122−2は、白
ピークスコアリング部24から供給される白ピークに対
するスコアリング結果を、25×25のウィンドウサイ
ズにマトリクス化する。スコア加算部123−2は、上
記25×25=625画素に対するスコア信号を全て加
算し、この加算結果をスコア比較部124−2に供給す
る。スコア比較部124−2は、上記スコア加算値と所
定のしきい値TH28とを比較し、スコア加算値の方が
所定のしきい値TH28よりも大きい場合には「ON」
信号を出力し、所定のしきい値TH28よりも小さい
か、あるいは等しい場合には「OFF」信号を出力す
る。
On the other hand, the matrix generation section 122-2 converts the scoring result for the white peak supplied from the white peak scoring section 24 into a matrix of a window size of 25 × 25. The score addition unit 123-2 adds all the score signals for the above 25 × 25 = 625 pixels, and supplies the addition result to the score comparison unit 124-2. The score comparing unit 124-2 compares the above-mentioned score addition value with a predetermined threshold value TH28, and when the score addition value is larger than the predetermined threshold value TH28, “ON”
It outputs a signal, and outputs an "OFF" signal when it is smaller than or equal to a predetermined threshold value TH28.

【0089】OR回路126は、上記スコア比較部12
4−1の比較結果と上記スコア比較部124−2の比較
結果との論理和を演算し、その演算結果を網点判定結果
として出力する。以上のようにして、入力された画像信
号から黒ピークと白ピークとを抽出し、黒および白のピ
ーク信号からそれぞれスコアを求め、求められた2つの
スコア値を用いることにより、網点判定が可能となる。
The OR circuit 126 is connected to the score comparing section 12
The logical sum of the comparison result of 4-1 and the comparison result of the score comparison unit 124-2 is calculated, and the calculation result is output as the halftone dot determination result. As described above, the black and white peaks are extracted from the input image signal, the scores are obtained from the black and white peak signals, and the obtained two score values are used. It becomes possible.

【0090】A−2.第1実施形態の動作 次に、上述した像域分離部9の動作について説明する。
まず、文字抽出部11では、周知の手法、例えば、微分
値を求め、所定のしきい値と比較して抽出する方法や、
注目画素値とその周辺画素値との平均を比較して抽出す
る方法などにより、入力された画像信号から文字や線画
などの文字領域が抽出される。
A-2. Operation of First Embodiment Next, the operation of the above-described image area separation unit 9 will be described.
First, the character extracting unit 11 obtains a differential value by a known method, for example, a method of extracting the differential value by comparing it with a predetermined threshold value,
A character area such as a character or a line drawing is extracted from the input image signal by a method of comparing and extracting the average of the pixel value of interest and its neighboring pixel values.

【0091】次に、網点抽出部12では、入力された画
像信号から注目画素が網点領域であるか否かを判定し、
その結果を出力する。具体的には、網点抽出部12にお
ける黒ピーク抽出部21では、L*明度信号から黒ピー
クが抽出される。該黒ピークは、黒ピークスコアリング
部23に供給される。該黒ピークスコアリング部23で
は、まず、注目画素を中心とした13×13にマトリク
ス化されたピーク抽出信号が予め設定された複数のパタ
ーンのどれに一致するか、あるいは類似するかが判定さ
れ、一致度および類似度に応じたスコアが点数付けされ
るとともに、黒ピークがK個以上連続するか否かが判別
される。そして、黒ピークがK個以上連続していた場合
には、注目画素は網点領域らしくないと判定して「0」
を出力する一方、黒ピークがK個以上連続していない場
合には、注目画素は網点領域の可能性ありと判定して、
上記一致度および類似度に応じたスコアのうち、最大値
が網点判定部25に供給される。
Next, the dot extracting unit 12 determines whether or not the pixel of interest is a dot area from the input image signal.
Output the result. Specifically, the black peak extracting unit 21 in the halftone dot extracting unit 12 extracts a black peak from the L * lightness signal. The black peak is supplied to the black peak scoring unit 23. The black peak scoring unit 23 first determines to which of a plurality of preset patterns the peak extraction signal matrixed into 13 × 13 around the pixel of interest matches or is similar. The score corresponding to the degree of coincidence and the degree of similarity is scored, and it is determined whether or not K or more black peaks are continuous. When K or more black peaks are continuous, it is determined that the pixel of interest is unlikely to be a halftone dot area, and “0” is determined.
On the other hand, if K or more black peaks are not continuous, it is determined that the pixel of interest may be a halftone dot area,
The maximum value among the scores according to the degree of coincidence and the degree of similarity is supplied to the dot determining unit 25.

【0092】また、網点抽出部12における白ピーク抽
出部22では、L*明度信号から白ピークが抽出され
る。該白ピークは、白ピークスコアリング部24に供給
される。該白ピークスコアリング部24では、上述した
黒ピークスコアリング部23と同様に、注目画素および
その近傍に存在する白ピーク画素を対象として、複数の
パターンと比較することにより、該比較結果に応じて注
目画素に点数付け(スコアリング)が行われるととも
に、白ピークがK個以上連続するか否かが判別される。
そして、白ピークがK個以上連続していた場合には、注
目画素は網点領域らしくないと判定して「0」を出力す
る一方、白ピークがK個以上連続していない場合には、
注目画素は網点領域の可能性ありと判定して、上記一致
度および類似度に応じたスコアのうち、最大値が網点判
定部25に供給される。
In the white peak extracting section 22 in the halftone dot extracting section 12, a white peak is extracted from the L * lightness signal. The white peak is supplied to the white peak scoring unit 24. The white peak scoring unit 24 compares the target pixel and the white peak pixel existing in the vicinity thereof with a plurality of patterns in the same manner as the above-described black peak scoring unit 23, and responds to the comparison result. In addition, scoring is performed on the target pixel, and it is determined whether or not K or more white peaks continue.
When K or more white peaks are continuous, it is determined that the pixel of interest is unlikely to be a halftone dot area, and “0” is output.
The pixel of interest is determined to be a halftone dot area, and the maximum value among the scores according to the coincidence and similarity is supplied to the halftone dot determination unit 25.

【0093】網点判定部25では、黒ピークに対する最
大値と白ピークに対する最大値のうち、大きい方が判定
された後、25×25のウィンドウサイズにマトリクス
化され、該マトリクス化された画素のスコアの合計が算
出され、所定のしきい値より大きい場合には、注目画素
は網点領域と判定され、所定のしきい値より小さいか、
または等しい場合には、注目画素は網点領域ではないと
判定される。
The halftone determination section 25 determines which of the maximum value for the black peak and the maximum value for the white peak is larger, and then forms a matrix into a window size of 25 × 25. The sum of the scores is calculated, and if the score is larger than a predetermined threshold value, the pixel of interest is determined to be a halftone dot region,
If they are equal, it is determined that the target pixel is not a halftone dot area.

【0094】そして、文字再抽出部13では、文字抽出
部1の出力結果に含まれる誤判定(誤抽出)を除去する
ために、文字抽出部11の出力結果と、網点抽出部12
の出力結果とを用いて、再度、文字領域が抽出される。
すなわち、文字抽出部11において文字抽出精度を高め
ると、網点領域などに含まれるエッジ領域(画素値変化
の大きい領域)をも誤抽出してしまう。したがって、文
字再抽出部13では、文字抽出部11の出力結果に含ま
れる文字抽出誤判定領域を、網点抽出部12の網点抽出
結果を用いて除去することにより、誤判定のない文字抽
出結果が得られる。
The character re-extraction unit 13 removes the output result of the character extraction unit 11 and the halftone dot extraction unit 12 in order to remove erroneous judgments (erroneous extraction) included in the output result of the character extraction unit 1.
The character area is extracted again by using the output result of.
That is, when the character extraction accuracy is increased in the character extraction unit 11, an edge region (a region having a large change in pixel value) included in a halftone dot region or the like is erroneously extracted. Therefore, the character re-extraction unit 13 removes the character extraction misjudgment area included in the output result of the character extraction unit 11 by using the halftone extraction result of the halftone extraction unit 12, so that character extraction without erroneous judgment is performed. The result is obtained.

【0095】B.第2実施形態 次に、本発明の第2実施形態について説明する。本第2
実施形態は、上述した第1実施形態で説明した、図4に
示す黒ピークスコアリング部23に関するものである。
ここで、図28は、黒ピークスコアリング部23の他の
構成例を示すブロック図である。なお、第1実施形態に
対応する部分には同一の符号を付けて説明を省略する。
B. Second Embodiment Next, a second embodiment of the present invention will be described. Book second
The embodiment relates to the black peak scoring unit 23 illustrated in FIG. 4 described in the first embodiment.
Here, FIG. 28 is a block diagram illustrating another configuration example of the black peak scoring unit 23. Note that parts corresponding to those in the first embodiment are given the same reference numerals and description thereof is omitted.

【0096】図において、マトリクス生成部100は、
黒ピーク抽出部21からの供給されるピーク抽出信号
を、注目画素を中心とした、例えば13×13のウィン
ドウサイズにマトリクス化する。パターン比較部101
−1は、上記13×13にマトリクス化されたピーク抽
出信号を、予め定められた複数のパターンに一致または
類似しているかの比較を行う。そして、パターンに一致
または類似している場合には、そのパターンを識別する
パターン識別信号を出力する。なお、該パターン識別信
号は、1つとは限らず、どのパターンにも一致または類
似しなければ出力されず、また、複数のパターンに一致
または類似した場合には対応する個数(複数)だけ出力
される。
In the figure, the matrix generation unit 100
The peak extraction signal supplied from the black peak extraction unit 21 is formed into a matrix with a window size of, for example, 13 × 13 centered on the pixel of interest. Pattern comparison unit 101
A value of -1 compares whether the peak extraction signal matrixed into 13 × 13 matches or is similar to a plurality of predetermined patterns. If the pattern matches or is similar to the pattern, a pattern identification signal for identifying the pattern is output. Note that the pattern identification signal is not limited to one, and is not output unless it matches or is similar to any pattern, and if it matches or is similar to a plurality of patterns, the corresponding number (plural) is output. You.

【0097】スコアリング部102−1は、上記パター
ン識別信号の全てに該当するスコアを全て最大スコア検
出部103−1に供給する。最大スコア検出部103−
1は、全てのスコアの中から最も大きいスコアを検出
し、セレクタ105−1に供給する。なお、最大スコア
検出部103−1は、何も入力されなかった場合には
「0」を出力する。
The scoring section 102-1 supplies all the scores corresponding to all of the pattern identification signals to the maximum score detecting section 103-1. Maximum score detection unit 103-
1 detects the largest score from all scores and supplies it to the selector 105-1. Note that the maximum score detection unit 103-1 outputs “0” when nothing is input.

【0098】一方、連続ピーク判定部104−1は、上
述したマトリクス生成部100で13×13にマトリク
ス化されたピーク抽出信号に従って、注目画素を含み、
ピーク画素がK個以上(K>1)連続しているか否かを
判定し、連続している場合には「ON」信号を、連続し
ていない場合には「OFF」信号をセレクタ105−1
に供給する。
On the other hand, the continuous peak judging section 104-1 includes the pixel of interest in accordance with the peak extraction signal formed into a matrix of 13 × 13 by the above-described matrix generating section 100,
It is determined whether or not K or more (K> 1) consecutive peak pixels are present. If the peak pixels are consecutive, an “ON” signal is output. If not, an “OFF” signal is output to the selector 105-1.
To supply.

【0099】セレクタ105−1は、連続ピーク判定部
104−1の出力信号をセレクタ信号として、連続ピー
ク判定部104−1の出力信号が「OFF」の場合には
最大スコア検出部103−1の出力を選択し、逆に連続
ピーク判定部104−1の出力信号が「ON」の場合に
は「0」を選択し、セレクタ134に供給する。
The selector 105-1 uses the output signal of the continuous peak determination section 104-1 as a selector signal, and when the output signal of the continuous peak determination section 104-1 is "OFF", the maximum score detection section 103-1 The output is selected. Conversely, when the output signal of the continuous peak determination unit 104-1 is “ON”, “0” is selected and supplied to the selector 134.

【0100】また、画素反転部130は、上述したマト
リクス生成部100で13×13にマトリクス化された
ピーク抽出信号の全ての「ON」、「OFF」を反転
し、連続ピーク判定部104−2とパターン比較部10
1−2に供給する。
The pixel inverting section 130 inverts all “ON” and “OFF” of the 13 × 13 matrix of the peak extracted signals in the matrix generating section 100, and outputs the continuous peak determining section 104-2. And pattern comparison unit 10
1-2.

【0101】パターン比較部101−2、スコアリング
部102−2、最大スコア検出部103−2、連続ピー
ク判定部104−2、セレクタ105−2は、それぞれ
パターン比較部101−1、スコアリング部102−
1、最大スコア検出部103−1、連続ピーク判定部1
04−1、セレクタ105−1と同じであるので、説明
を省略する。
The pattern comparing section 101-2, the scoring section 102-2, the maximum score detecting section 103-2, the continuous peak judging section 104-2, and the selector 105-2 are respectively composed of a pattern comparing section 101-1 and a scoring section. 102-
1, maximum score detection unit 103-1, continuous peak determination unit 1
04-1 and the selector 105-1, and the description is omitted.

【0102】また、マトリクス生成部100で13×1
3にマトリクス化されたピーク抽出信号は、画素数カウ
ント部131にも供給される。但し、画素数カウント部
131に供給されるピーク抽出信号は、13×13の全
ての画素である必要はなく、中心部の一部の画素(例え
ば、注目画素を中心とする9×9マトリクスを構成する
画素群)に対するピーク抽出信号で構わない。以下、画
素数カウント部131に供給されるピーク抽出信号は、
9×9マトリクスを構成する画素の信号であるとする。
画素数カウント部131は、上記9×9画素からなるピ
ーク抽出信号の中で、「ON」である画素の数を算出し
て、その結果を比較器132に供給する。
Also, the matrix generation unit 100 calculates 13 × 1
The peak extraction signal matrixed into 3 is also supplied to the pixel count section 131. However, the peak extraction signal supplied to the pixel number counting unit 131 does not need to be all 13 × 13 pixels, and some pixels at the center (for example, a 9 × 9 matrix centered on the pixel of interest is A peak extraction signal for the constituent pixel group) may be used. Hereinafter, the peak extraction signal supplied to the pixel number counting unit 131 is
Assume that the signals are pixels of a 9 × 9 matrix.
The pixel count unit 131 calculates the number of pixels that are “ON” in the peak extraction signal composed of 9 × 9 pixels, and supplies the result to the comparator 132.

【0103】比較器132は、画素数カウント部131
から供給される「ON」画素数と所定のしきい値TH2
9とを比較し、その比較結果をセレクタ134に供給す
る。なお、この所定のしきい値は、画素数カウント部1
31に供給される画素数の約半分であることが望まし
い。すなわち、本実施形態では、画素数カウント部13
1に供給される画素数は9×9=81であるので、上記
所定のしきい値は「40」程度にするとよい。
The comparator 132 includes a pixel number counting unit 131
Number of “ON” pixels supplied from the memory and a predetermined threshold value TH2
9 and supplies the result of the comparison to the selector 134. Note that this predetermined threshold value is determined by the pixel number counting unit 1.
It is desirable that the number of pixels supplied to the pixel 31 is about half. That is, in the present embodiment, the pixel number counting unit 13
Since the number of pixels supplied to 1 is 9 × 9 = 81, the above-mentioned predetermined threshold value is preferably set to about “40”.

【0104】セレクタ134は、比較器132から供給
される信号によって、セレクタ105−1の出力結果
か、セレクタ105−2の出力結果のいずれかを選択
し、出力する。すなわち、注目画素周辺のピーク画素数
が少なければ(画素数カウント部131の出力が上記所
定のしきい値TH29よりも小さい場合)、黒ピーク抽
出部21からのピーク抽出信号を用いてスコアを算出
し、逆に注目画素周辺のピーク画素数が多ければ(画素
数カウント部131の出力が上記所定のしきい値TH2
9よりも大きいか、あるいは等しい場合)、黒ピーク抽
出部21からのピーク抽出信号のON、OFFを反転さ
せた信号を用いてスコアを算出する。
The selector 134 selects and outputs either the output result of the selector 105-1 or the output result of the selector 105-2 according to the signal supplied from the comparator 132. That is, when the number of peak pixels around the target pixel is small (when the output of the pixel number counting unit 131 is smaller than the predetermined threshold TH29), the score is calculated using the peak extraction signal from the black peak extraction unit 21. On the contrary, if the number of peak pixels around the target pixel is large (the output of the pixel number
If it is greater than or equal to 9), a score is calculated using a signal obtained by inverting ON and OFF of the peak extraction signal from the black peak extraction unit 21.

【0105】また、説明を省略するが、白ピークスコア
リング部24も、上述した黒ピークスコアリング部23
の構成と同様に、上述した構成にすることも可能であ
る。
Although the description is omitted, the white peak scoring unit 24 also performs the above-described black peak scoring unit 23.
Similarly to the configuration described above, the configuration described above can be adopted.

【0106】以上のようにして、入力された画像信号か
ら黒ピークと白ピークとを抽出し、黒および白のピーク
信号およびそれぞれの反転信号からスコアを求め、ピー
ク画素数の割合によって求められたスコアを切り替え
て、網点の判定を行うことにより、第1実施形態に比
べ、処理の規模は大きくなるものの、より正確な網点判
定が可能となる。
As described above, the black peak and the white peak are extracted from the input image signal, the score is obtained from the black and white peak signals and the inverted signals thereof, and the score is obtained from the ratio of the number of peak pixels. By switching the score and determining the halftone dot, the scale of the process is larger than in the first embodiment, but more accurate halftone dot determination is possible.

【0107】[0107]

【発明の効果】以上説明したように本発明では、抽出手
段によって、前記画像データの画素値情報に基づいて所
定の条件に合致する画素を抽出し、比較手段によって、
該抽出された画素と該画素の近傍画素との位置関係を、
予め定められた複数のパターンと比較し、点数算出手段
によって、該比較結果に基づいて、前記複数のパターン
に対する一致度に応じた点数を算出した後、判定手段に
よって、点数に基づいて、前記画像データの対象画素が
網点領域か否かを判定するようにしたので、正確に文字
領域と網点領域とが分離できるので、入力された画像デ
ータから文字の誤抽出をなくし、網点領域のみを精度よ
く判定して抽出することができるという利点が得られ
る。
As described above, according to the present invention, the extraction means extracts a pixel which satisfies a predetermined condition based on the pixel value information of the image data.
The positional relationship between the extracted pixel and a neighboring pixel of the pixel is
After comparing with a plurality of predetermined patterns, the score calculation unit calculates a score corresponding to the degree of coincidence with the plurality of patterns based on the comparison result, and then determines the image based on the score by the determination unit. Since it is determined whether the target pixel of the data is a halftone area or not, the character area and the halftone area can be accurately separated, so that erroneous extraction of characters from input image data is eliminated and only the halftone area is used. Can be determined and extracted with high accuracy.

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

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

【図2】 像域分離部9の構成を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a configuration of an image area separation unit 9.

【図3】 文字再抽出部13の構成を示す回路図であ
る。
FIG. 3 is a circuit diagram showing a configuration of a character re-extraction unit 13;

【図4】 網点抽出部12の構成を示すブロック図であ
る。
FIG. 4 is a block diagram illustrating a configuration of a halftone dot extracting unit 12.

【図5】 黒ピーク抽出部21の構成を示すブロック図
である。
FIG. 5 is a block diagram illustrating a configuration of a black peak extraction unit 21.

【図6】 注目画素とその近傍画素との関係を説明する
ための概念図である。
FIG. 6 is a conceptual diagram for explaining the relationship between a target pixel and its neighboring pixels.

【図7】 0−180度方向黒線ピーク検出部38の構
成を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of a 0-180 degree direction black line peak detection unit 38;

【図8】 注目画素を中心とする3×3マトリクスの画
素およびその画素値を説明するための概念図である。
FIG. 8 is a conceptual diagram illustrating pixels of a 3 × 3 matrix centered on a target pixel and pixel values thereof.

【図9】 90−270度方向黒線ピーク検出部39の
構成を示すブロック図である。
9 is a block diagram illustrating a configuration of a 90-270 degree direction black line peak detection unit 39. FIG.

【図10】 45−225度方向黒線ピーク検出部40
の構成を示すブロック図である。
FIG. 10: 45-225 degree direction black line peak detector 40
FIG. 3 is a block diagram showing the configuration of FIG.

【図11】 135−315度方向黒線ピーク検出部4
1の構成を示すブロック図である。
FIG. 11: 135-315 degree direction black line peak detector 4
1 is a block diagram showing a configuration of FIG.

【図12】 白ピーク抽出部22の構成を示すブロック
図である。
FIG. 12 is a block diagram illustrating a configuration of a white peak extracting unit 22.

【図13】 0−180度方向白線ピーク検出部94の
構成を示すブロック図である。
FIG. 13 is a block diagram illustrating a configuration of a white line peak detection unit 94 in the 0-180 degree direction.

【図14】 90−270度方向白線ピーク検出部95
の構成を示すブロック図である。
14 shows a 90-270 degree direction white line peak detector 95. FIG.
FIG. 3 is a block diagram showing the configuration of FIG.

【図15】 45−225度方向白線ピーク検出部96
の構成を示すブロック図である。
FIG. 15: 45-225 degree direction white line peak detector 96
FIG. 3 is a block diagram showing the configuration of FIG.

【図16】 135−315度方向白線ピーク検出部9
7の構成を示すブロック図である。
FIG. 16: White line peak detector 9 in the direction of 135 to 315 degrees
7 is a block diagram showing a configuration of FIG.

【図17】 黒ピークスコアリング部23の一構成例を
示すブロック図である。
FIG. 17 is a block diagram illustrating a configuration example of a black peak scoring unit 23.

【図18】 白ピークスコアリング部24の一構成例を
示すブロック図である。
FIG. 18 is a block diagram illustrating a configuration example of a white peak scoring unit 24.

【図19】 マトリクス生成部100における、注目画
素を中心とする13×13にマトリクス化された画素お
よびピーク抽出結果の一例を示す概念図である。
FIG. 19 is a conceptual diagram showing an example of a 13 × 13 matrix of pixels centered on a pixel of interest and a peak extraction result in the matrix generation unit 100.

【図20】 パターン比較部101の第1の処理例を説
明するためのフローチャートである。
FIG. 20 is a flowchart illustrating a first processing example of the pattern comparison unit 101;

【図21】 パターン比較部101の第2の処理例を説
明するためのフローチャートである。
FIG. 21 is a flowchart illustrating a second processing example of the pattern comparison unit 101.

【図22】 パターン比較部101の第3の処理例を説
明するためのフローチャートである。
FIG. 22 is a flowchart for explaining a third processing example of the pattern comparing unit 101;

【図23】 スコアリング部102に記憶されているデ
ータ(スコア)の一例を示す概念図である。
FIG. 23 is a conceptual diagram showing an example of data (score) stored in the scoring unit 102.

【図24】 連続ピーク判定部104の構成を示す回路
図である。
FIG. 24 is a circuit diagram showing a configuration of a continuous peak determination unit 104.

【図25】 網点判定部25の第1の構成例を示すブロ
ック図である。
FIG. 25 is a block diagram illustrating a first configuration example of a halftone dot determining unit 25.

【図26】 網点判定部25の第2の構成例を示すブロ
ック図である。
FIG. 26 is a block diagram illustrating a second configuration example of the halftone dot determination unit 25.

【図27】 網点判定部25の第3の構成例を示すブロ
ック図である。
FIG. 27 is a block diagram illustrating a third configuration example of the halftone dot determination unit 25.

【図28】 本発明の第2実施形態による黒ピークスコ
アリング部23の構成を示すブロック図である。
FIG. 28 is a block diagram illustrating a configuration of a black peak scoring unit 23 according to the second embodiment of the present invention.

【符号の説明】 21 黒ピーク抽出部(抽出手段、黒ピーク抽出手段) 22 白ピーク抽出部(抽出手段、白ピーク抽出手段) 23 黒ピークスコアリング部(比較手段、点数算出手
段) 24 白ピークスコアリング部(比較手段、点数算出手
段) 25 網判定部(判定手段) 100 マトリクス生成部 101 パターン比較部(比較手段) 102 スコアリング部(点数算出手段) 103 最大スコア検出部(点数算出手段) 104 連続ピーク判定部 105 セレクタ 101−1 パターン比較部(第1の比較手段) 102−1 スコアリング部(第1の点数算出手段) 103−1 最大スコア検出部(第1の点数算出手段) 101−2 パターン比較部(第2の比較手段) 102−2 スコアリング部(第2の点数算出手段) 103−2 最大スコア検出部(第2の点数算出手段)
[Description of Signs] 21 Black peak extracting unit (extracting means, black peak extracting means) 22 White peak extracting unit (extracting means, white peak extracting means) 23 Black peak scoring unit (comparing means, score calculating means) 24 white peak Scoring section (comparing means, score calculating means) 25 halftone determining section (determining means) 100 matrix generating section 101 pattern comparing section (comparing means) 102 scoring section (point calculating means) 103 maximum score detecting section (point calculating means) 104 continuous peak determination unit 105 selector 101-1 pattern comparison unit (first comparison unit) 102-1 scoring unit (first score calculation unit) 103-1 maximum score detection unit (first score calculation unit) 101 -2 Pattern comparing section (second comparing means) 102-2 Scoring section (second score calculating means) 103-2 Maximum score A Detection unit (second score calculation means)

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 入力される画像データの文字領域と絵柄
領域とを分離し、領域種類に応じて画像データに対する
画像処理を施す画像処理装置において、 前記画像データの画素値情報に基づいて所定の条件に合
致する画素を抽出する抽出手段と、 前記抽出手段によって抽出された画素と該画素の近傍画
素との位置関係を、予め定められた複数のパターンと比
較する比較手段と、 前記比較手段によって比較された比較結果に基づいて、
前記複数のパターンに対する一致度に応じた点数を算出
する点数算出手段と、 前記点数算出手段によって算出された点数に基づいて、
前記画像データの対象画素が網点領域か否かを判定する
判定手段とを具備することを特徴とする画像処理装置。
An image processing apparatus that separates a character area and a picture area of input image data and performs image processing on the image data according to an area type, wherein a predetermined area is determined based on pixel value information of the image data. Extracting means for extracting a pixel that satisfies the condition; comparing means for comparing the positional relationship between the pixel extracted by the extracting means and a pixel adjacent to the pixel with a plurality of predetermined patterns; Based on the comparison result,
A score calculation unit that calculates a score according to the degree of coincidence with the plurality of patterns, based on the score calculated by the score calculation unit,
An image processing apparatus comprising: a determination unit configured to determine whether a target pixel of the image data is a halftone area.
【請求項2】 前記抽出手段は、注目画素値と、該注目
画素の近傍画素値の平均値とを比較することによって、
前記所定の条件に合致する画素を抽出することを特徴と
する請求項1記載の画像処理装置。
2. The extracting means compares the pixel value of interest with an average value of neighboring pixel values of the pixel of interest,
2. The image processing apparatus according to claim 1, wherein pixels that meet the predetermined condition are extracted.
【請求項3】 前記抽出手段は、注目画素値と、該注目
画素の近傍画素値の最大値または最小値とを比較するこ
とによって、前記所定の条件に合致する画素を抽出する
ことを特徴とする請求項1記載の画像処理装置。
3. The method according to claim 1, wherein the extracting unit extracts a pixel that satisfies the predetermined condition by comparing a pixel value of interest with a maximum value or a minimum value of neighboring pixel values of the pixel of interest. The image processing device according to claim 1.
【請求項4】 前記抽出手段は、 注目画素値と、該注目画素の近傍画素値の平均値または
最大値とを比較することによって、前記所定の条件に合
致する画素を抽出する黒ピーク抽出手段と、 注目画素値と、該注目画素の近傍画素値の平均値または
最小値とを比較することによって、前記所定の条件に合
致する画素を抽出する白ピーク抽出手段とを具備するこ
とを特徴とする請求項1記載の画像処理装置。
4. The black peak extracting means for extracting a pixel meeting the predetermined condition by comparing a pixel value of interest with an average value or a maximum value of neighboring pixel values of the pixel of interest. And a white peak extracting means for extracting a pixel that meets the predetermined condition by comparing the target pixel value with an average value or a minimum value of neighboring pixel values of the target pixel. The image processing device according to claim 1.
【請求項5】 前記抽出手段は、注目画素値と該注目画
素の近傍画素値とを比較することによって、画像中の線
分を構成する画素を、前記所定の条件に合致する画素と
して抽出することを特徴とする請求項1記載の画像処理
装置。
5. The extracting unit extracts a pixel constituting a line segment in an image as a pixel that meets the predetermined condition by comparing a pixel value of interest with a pixel value near the pixel of interest. The image processing apparatus according to claim 1, wherein:
【請求項6】 前記比較手段は、注目画素および該注目
画素近傍の少なくとも4画素の合計5画素の位置関係を
前記複数のパターンと比較することを特徴とする請求項
1記載の画像処理装置。
6. The image processing apparatus according to claim 1, wherein the comparing unit compares a positional relationship of a target pixel and a total of five pixels including at least four pixels near the target pixel with the plurality of patterns.
【請求項7】 前記比較手段は、注目画素および該注目
画素近傍の少なくとも3画素の合計4画素の位置関係を
前記複数のパターンと比較することを特徴とする請求項
1記載の画像処理装置。
7. The image processing apparatus according to claim 1, wherein the comparing unit compares a positional relationship of a pixel of interest and at least three pixels in the vicinity of the pixel of interest with a total of four pixels with the plurality of patterns.
【請求項8】 前記比較手段は、注目画素および該注目
画素近傍の少なくとも4画素のそれぞれの近傍画素の位
置関係を前記複数のパターンと比較することを特徴とす
る請求項1記載の画像処理装置。
8. The image processing apparatus according to claim 1, wherein the comparing unit compares the positional relationship between the pixel of interest and at least four neighboring pixels near the pixel of interest with the plurality of patterns. .
【請求項9】 前記点数算出手段は、前記比較手段によ
って比較された比較結果に基づいて、前記複数のパター
ンに対する一致度に応じた点数を算出する際、該点数
を、前記比較手段によって比較される注目画素と該注目
画素近傍の画素とのユークリッド距離の2乗に比例する
値とすることを特徴とする請求項1記載の画像処理装
置。
9. The score calculation means, when calculating a score corresponding to the degree of coincidence with the plurality of patterns based on a comparison result compared by the comparison means, compares the score with the comparison means. 2. The image processing apparatus according to claim 1, wherein the value is proportional to the square of the Euclidean distance between the target pixel and a pixel near the target pixel.
【請求項10】 前記点数算出手段は、前記抽出手段に
よって抽出された画素が注目画素を含み、かつ所定数以
上連続する場合、前記点数を変更することを特徴とする
請求項1または9記載の画像処理装置。
10. The score calculation unit according to claim 1, wherein the score calculation unit changes the score when the pixel extracted by the extraction unit includes a target pixel and continues for a predetermined number or more. Image processing device.
【請求項11】 前記比較手段は、 前記抽出手段によって抽出された画素と該画素の近傍画
素との位置関係を、予め定められた複数のパターンと比
較する第1の比較手段と、 前記抽出手段によって抽出された画素を反転し、該反転
した画素と該画素の近傍画素との位置関係を、予め定め
られた複数のパターンと比較する第2の比較手段とを備
え、 前記点数算出手段は、 前記第1の比較手段によって比較された比較結果に基づ
いて、前記複数のパターンに対する一致度に応じた点数
を算出する第1の点数算出手段と、 前記第1の比較手段によって比較された比較結果に基づ
いて、前記複数のパターンに対する一致度に応じた点数
を算出する第2の点数算出手段とを備え、 前記判定手段は、 前記抽出手段によって抽出された画素数に応じて、前記
第1の点数算出手段によって算出された点数、または前
記第2の点数算出手段によって算出された点数のどちら
か一方に基づいて、前記画像データの対象画素が網点領
域か否かを判定することを特徴とする請求項1記載の画
像処理装置。
11. The comparing means comprises: first comparing means for comparing a positional relationship between a pixel extracted by the extracting means and a pixel adjacent to the pixel with a plurality of predetermined patterns; Inverting the pixel extracted by the above, and a second comparison means for comparing the positional relationship between the inverted pixel and a neighboring pixel of the pixel with a plurality of predetermined patterns, the score calculation means, First score calculation means for calculating a score corresponding to the degree of coincidence with the plurality of patterns based on a comparison result compared by the first comparison means; and a comparison result compared by the first comparison means. And a second score calculation means for calculating a score according to the degree of coincidence with the plurality of patterns, based on the number of pixels, the determination means according to the number of pixels extracted by the extraction means, It is determined whether or not the target pixel of the image data is a halftone dot area based on either the score calculated by the first score calculation means or the score calculated by the second score calculation means. The image processing apparatus according to claim 1, wherein:
JP23136197A 1997-08-27 1997-08-27 Image processing apparatus and image processing method Expired - Lifetime JP3726439B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23136197A JP3726439B2 (en) 1997-08-27 1997-08-27 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23136197A JP3726439B2 (en) 1997-08-27 1997-08-27 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JPH1173503A true JPH1173503A (en) 1999-03-16
JP3726439B2 JP3726439B2 (en) 2005-12-14

Family

ID=16922424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23136197A Expired - Lifetime JP3726439B2 (en) 1997-08-27 1997-08-27 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3726439B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002709B1 (en) 1998-12-07 2006-02-21 Fuji Xerox Co., Ltd. Image processing system, image processing method, and image input system
US7016552B2 (en) 2000-09-07 2006-03-21 Fuji Xerox Co., Ltd. Image processing device, image processing method, and recording medium storing image processing program
US7826098B2 (en) 2000-12-25 2010-11-02 Minolta Co., Ltd. Image processing apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5312111B2 (en) 2009-03-12 2013-10-09 キヤノン株式会社 Image reading method and image reading apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002709B1 (en) 1998-12-07 2006-02-21 Fuji Xerox Co., Ltd. Image processing system, image processing method, and image input system
US7016552B2 (en) 2000-09-07 2006-03-21 Fuji Xerox Co., Ltd. Image processing device, image processing method, and recording medium storing image processing program
US7826098B2 (en) 2000-12-25 2010-11-02 Minolta Co., Ltd. Image processing apparatus

Also Published As

Publication number Publication date
JP3726439B2 (en) 2005-12-14

Similar Documents

Publication Publication Date Title
US7359568B2 (en) Image processing apparatus and image processing method
JP3114668B2 (en) Object detection / background removal method, apparatus, and recording medium recording program
CN103841295B (en) Image processing apparatus
WO2014119060A1 (en) Image processing device, image processing method, program, and recording medium
JPH0435167A (en) Line picture separation system
JP2007189319A (en) Line segment detector and line segment detection method
CN112215781B (en) Improved local binarization method
JP3726439B2 (en) Image processing apparatus and image processing method
JPH09200554A (en) Image processor
JP4057662B2 (en) Image processing apparatus and image processing method
JP3754736B2 (en) Image processing apparatus and method
JP4047356B2 (en) Image processing device
EP1148711A1 (en) Adaptive mode-switching method for scanning color and grayscale data
JP2007243330A (en) Image processing apparatus, and information output method of dot character
JP3974988B2 (en) Image restoration device
JP3153221B2 (en) Color image processing equipment
JP2851060B2 (en) Color identification device
JP2002262074A (en) Image processing unit, image processing method, program for executing the method and recording medium for recording the program
JPH03153167A (en) Character area separation system
JP3217534B2 (en) Image binarization processing device
US6163624A (en) Image processing circuit
KR100908326B1 (en) Image Binarization Apparatus and Method
CN114359065A (en) Mosaic removing method and circuit for edge detection based on raw data
JP2647455B2 (en) Halftone dot area separation device
JPH05197804A (en) Method and device for separation of image signal

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041102

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050516

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050906

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050919

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091007

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101007

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111007

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121007

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121007

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131007

Year of fee payment: 8

EXPY Cancellation because of completion of term