JP3260891B2 - Edge extraction method - Google Patents

Edge extraction method

Info

Publication number
JP3260891B2
JP3260891B2 JP04709793A JP4709793A JP3260891B2 JP 3260891 B2 JP3260891 B2 JP 3260891B2 JP 04709793 A JP04709793 A JP 04709793A JP 4709793 A JP4709793 A JP 4709793A JP 3260891 B2 JP3260891 B2 JP 3260891B2
Authority
JP
Japan
Prior art keywords
saturation
valley
point
edge
valley point
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.)
Expired - Fee Related
Application number
JP04709793A
Other languages
Japanese (ja)
Other versions
JPH06259550A (en
Inventor
秀明 山形
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP04709793A priority Critical patent/JP3260891B2/en
Publication of JPH06259550A publication Critical patent/JPH06259550A/en
Application granted granted Critical
Publication of JP3260891B2 publication Critical patent/JP3260891B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、カラースキャナ、カラ
ーコピー機等によって読み取られたカラー画像データよ
り、その原稿である紙片のエッジを検出する方法及び装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for detecting an edge of a sheet of a document from color image data read by a color scanner, a color copier or the like.

【0002】[0002]

【従来の技術】カラーコピー機で厚手の紙片(原稿)を
コピーした場合に、紙片のエッジの部分に光学系特有の
ノイズ(影)が残り、これがコピー原稿の品質を低下さ
せている。独立したカラースキャナあるいはファクシミ
リ内蔵のカラースキャナで厚手の紙片を読み取った場合
にも、読み取った画像に同様のノイズが生じる。
2. Description of the Related Art When a thick paper piece (document) is copied by a color copier, noise (shadow) peculiar to an optical system remains at an edge portion of the paper piece, which deteriorates the quality of the copy document. When a thick paper piece is read by an independent color scanner or a color scanner with a built-in facsimile, similar noise occurs in the read image.

【0003】また、カラーコピー機で紙片をコピーする
場合、カバーを掛ける際の紙片のずれ、あるいはオート
シートフィーダーの不具合等によって、紙片のスキュー
が生じることがある。このスキューは画像の劣化を招く
が、この劣化は画素単位の処理を行なうデジタルコピー
機で特に顕著である。
Further, when copying a paper piece with a color copier, the paper sheet may be skewed due to a displacement of the paper piece when the cover is hung or a malfunction of the automatic sheet feeder. This skew causes image deterioration, and this deterioration is particularly remarkable in a digital copier that performs pixel-by-pixel processing.

【0004】カラー画像データより紙片(原稿)のエッ
ジを検出しエッジ部分について適当な処理を施すなら
ば、また、エッジを検出してスキューを求め、スキュー
に応じた適当な処理を施すならば、エッジの影やスキュ
ーによる画像劣化を改善することが可能である。
If the edge of a sheet of paper (original document) is detected from the color image data and appropriate processing is performed on the edge portion, or if the edge is detected and the skew is obtained and appropriate processing is performed in accordance with the skew, It is possible to improve image deterioration due to edge shadows and skew.

【0005】しかし、このような紙片のエッジ検出に関
し、カラー画像を対象とした適当な公知技術は見当たら
ない。
However, with respect to such edge detection of a piece of paper, there is no suitable known technique for color images.

【0006】[0006]

【発明が解決しようとする課題】よって、本発明の目的
は、カラースキャナ等で紙片を読み取ったカラー画像デ
ータより、紙片のエッジを検出するための手段を提供す
るにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a means for detecting the edge of a sheet from color image data obtained by reading the sheet with a color scanner or the like.

【0007】より詳しくは、本発明の一つの目的は、紙
片の読取りの際の背景色が紙片の地色と同一またはほぼ
同一の場合に、カラー画像データより紙片のエッジを検
出するための方法を提供することである。本発明のもう
一つの目的は、紙片の読取りの際の背景色が紙片の地色
と異なる場合に、カラー画像データより紙片のエッジを
検出するための方法を提供することにある。
More specifically, an object of the present invention is to provide a method for detecting the edge of a sheet from color image data when the background color of the sheet during reading is the same or almost the same as the background color of the sheet. It is to provide. Another object of the present invention is to provide a method for detecting the edge of a sheet from color image data when the background color of the sheet during reading is different from the background color of the sheet.

【0008】[0008]

【課題を解決するための手段】本発明の第1の態様によ
れば、紙片を読み取って得られたカラー画像データより
輝度を求め、ある特定の条件を満たした輝度の谷点を、
紙片のエッジ候補点として抽出する。エッジ候補点とし
ての条件には、輝度の谷点に関する谷の深さや谷の幅を
含め、さらにはカラー画像データより求めた彩度または
色度が、輝度の谷点の場所でほぼ平坦であることを含め
According to a first aspect of the present invention, a luminance is obtained from color image data obtained by reading a sheet of paper, and a valley point of luminance satisfying a specific condition is determined .
It is extracted as an edge candidate point of a sheet of paper. The conditions as edge candidate points include the valley depth and valley width for the luminance valley point.
Including further including the chroma or chromaticity determined from the color image data is substantially flat at the location of the valley points of the luminance
You .

【0009】本発明の第2の態様によれば、紙片を読み
取って得られたカラー画像データ、またはその平滑化後
のデータより彩度を求め、特定の条件を満たす彩度の谷
点、それらの谷点を移動した点を、エッジ候補点として
抽出する。カラー画像データの平滑化を、異なったマス
クサイズで行ない、それぞれのマスクサイズによる平滑
化後のデータより彩度を求めることができる。エッジ候
補点としての条件には、彩度の谷点に関する谷の深さを
含めることができ、また、各マスクサイズによる平滑化
後の彩度の谷点の相互関係を含めることができる。
According to the second aspect of the present invention, the saturation is determined from the color image data obtained by reading the paper piece or the data after smoothing the color image data, and the saturation valley satisfying a specific condition is obtained.
Points and points that have moved their valley points are extracted as edge candidate points. The color image data is smoothed with different mask sizes, and the saturation can be obtained from the data after smoothing with each mask size. The condition as an edge candidate point can include a valley depth related to a saturation valley point, and can include a mutual relationship between the saturation valley points after smoothing by each mask size.

【0010】[0010]

【作用】本発明の第1の態様によれば、後記実施例1に
よって詳細に説明するように、読み取り時の背景色と同
一または近い地色の紙片のエッジを確実に検出すること
ができるようになり、また、彩度または色度を抽出条件
に含めることによって、紙片のエッジと紙片上の色絵柄
等のエッジとの識別性能が上がる。
According to the first aspect of the present invention, as will be described in detail later with reference to a first embodiment, it is possible to reliably detect the edge of a paper piece having the same or close to the background color at the time of reading. By including the saturation or chromaticity in the extraction condition, the discrimination performance between the edge of the paper piece and the edge of the color picture or the like on the paper piece is improved.

【0011】本発明の第2の態様によれば、後記実施例
2によって詳細に説明するように、読み取り時の背景色
と地色とが異なる紙片のエッジを確実に検出することが
できるようになる。
According to the second aspect of the present invention, as will be described in detail later with reference to a second embodiment, it is possible to reliably detect an edge of a paper piece having a background color different from a ground color at the time of reading. Become.

【0012】[0012]

【実施例】実施例1 図1は本実施例の構成を示すブロック図である。図1に
おいて、カラー画像入力装置100は、カラー原稿を光
学的に走査して読み取り、カラー画像データをエッジ検
出装置200及びカラー画像処理装置300に入力する
もので、例えば一般的なカラースキャナである。本実施
例では、カラー画像データはRGBデータである。エッ
ジ検出装置200は、RGBデータより紙片のエッジの
候補点を検出し、その座標データをカラー画像処理装置
300へ入力する。
Embodiment 1 FIG. 1 is a block diagram showing the configuration of this embodiment. In FIG. 1, a color image input device 100 is a device that optically scans and reads a color original and inputs color image data to an edge detection device 200 and a color image processing device 300, and is, for example, a general color scanner. . In this embodiment, the color image data is RGB data. The edge detection device 200 detects a candidate point of the edge of the paper piece from the RGB data, and inputs the coordinate data to the color image processing device 300.

【0013】なお、カラー画像入力装置100の読み取
り範囲はカラー原稿より広いため、カラー原稿の外側の
背景も同時に読み取られる。本実施例のエッジ検出装置
200は、カラー画像入力装置100において読み取ら
れる原稿の地色と背景色とが同一、あるいはほぼ同一の
地色の場合(例えば、背景が白で、カラー原稿の地色が
白の場合)に好適な構成となっている。
Since the reading range of the color image input device 100 is wider than that of the color document, the background outside the color document is also read at the same time. The edge detection device 200 according to the present embodiment is configured such that the background color and the background color of the document read by the color image input device 100 are the same or substantially the same (for example, the background is white and the background color of the color document is Is white).

【0014】カラー画像処理装置300においては、エ
ッジ検出装置200から入力したエッジ候補点の座標デ
ータに基づいて紙片のエッジを直線として抽出する処
理、抽出したエッジの部分の影を入力カラー画像から除
去する処理や、エッジからスキューを求めて、入力カラ
ー画像にスキュー補正を施す処理等を行なう。
The color image processing device 300 extracts the edge of the paper piece as a straight line based on the coordinate data of the candidate edge point input from the edge detection device 200, and removes the shadow of the extracted edge portion from the input color image. Skew is obtained from the edge, and skew correction is performed on the input color image.

【0015】エッジ検出装置200において、輝度算出
部201はRGBデータから各画素の輝度Lを(1)式
によって算出し、R色度算出部203はRGBデータか
ら各画素のR(赤)の色度rを(2)式によって算出
し、G色度算出部204はRGBデータから各画素のG
(緑)の色度gを(3)式によって算出し、B色度算出
部205はRGBデータから各画素のB(青)の色度b
を(4)式によって算出する。また、彩度算出部202
はRGBデータから(5)式によって各画素の彩度Sを
算出する。
In the edge detecting device 200, the luminance calculating section 201 calculates the luminance L of each pixel from the RGB data according to the equation (1), and the R chromaticity calculating section 203 calculates the R (red) color of each pixel from the RGB data. The degree r is calculated by the equation (2), and the G chromaticity calculating unit 204 calculates the G of each pixel from the RGB data.
The chromaticity g of (green) is calculated by equation (3), and the B chromaticity calculating unit 205 calculates the chromaticity b of B (blue) of each pixel from the RGB data.
Is calculated by equation (4). Also, the saturation calculation unit 202
Calculates the saturation S of each pixel from the RGB data by the equation (5).

【0016】 L=(R+G+B)/3 (1) r=255R/(R+G+B) (2) g=255G/(R+G+B) (3) b=255B/(R+G+B) (4) S=255−3min(r,g,b) =255 max(G+B−2R,B+R−2G,R+G−2B)/(R+B+G) (5) 輝度谷点抽出用しきい値算出部206は、輝度の谷の深
さの分布から、輝度の谷の深さのしきい値を算出する。
彩度しきい値算出部208は、彩度の谷の深さの分布ま
たは彩度の傾きの分布から、彩度の谷の深さのしきい値
または彩度の傾きのしきい値を算出する。R色度しきい
値算出部209、G色度しきい値算出部210及びB色
度しきい値算出部211は、それぞれR色度、G色度及
びB色度の谷の深さまたは傾きの分布より、それぞれの
色度の谷の深さのしきい値または彩度の傾きのしきい値
を算出する。各しきい値の算出方法については後述す
る。
L = (R + G + B) / 3 (1) r = 255 R / (R + G + B) (2) g = 255 G / (R + G + B) (3) b = 255 B / (R + G + B) (4) S = 255-3 min (r) , G, b) = 255 max (G + B−2R, B + R−2G, R + G−2B) / (R + B + G) (5) The luminance valley point extraction threshold value calculation unit 206 calculates the luminance valley depth. A threshold value of the depth of the luminance valley is calculated from the distribution of the height.
The saturation threshold calculating unit 208 calculates a saturation valley depth threshold or a saturation gradient threshold from the saturation valley depth distribution or the saturation gradient distribution. I do. The R chromaticity threshold value calculation unit 209, the G chromaticity threshold value calculation unit 210, and the B chromaticity threshold value calculation unit 211 respectively determine the depth or inclination of the valley of R chromaticity, G chromaticity, and B chromaticity. , The threshold of the depth of each chromaticity valley or the threshold of the gradient of saturation is calculated. A method of calculating each threshold will be described later.

【0017】輝度谷点抽出部207は、下記のいずれか
一つの条件、またはその複数の組み合わせ条件を満足す
る輝度谷点、あるいは全ての谷点(無条件)を抽出す
る。この抽出条件に関して、エッジ検出装置200は多
様なモードを選択することができる。
The luminance valley point extracting unit 207 extracts a luminance valley point that satisfies one of the following conditions, or a combination thereof, or all valley points (unconditional). Regarding the extraction condition, the edge detection device 200 can select various modes.

【0018】1.谷底から左右いずかの山までの高さ
(谷の深さ)が、しきい値算出部206により算出され
たしきい値より大きい。 2.左右両側の山の高さの差が、所定のしきい値以下で
ある。 3.左右両側の山の間隔(谷の幅)が、所定のしきい値
以下である。 4.谷の深さが所定のしきい値以上である。
1. The height (the depth of the valley) from the bottom of the valley to one of the left and right peaks is larger than the threshold calculated by the threshold calculator 206. 2. The difference between the heights of the left and right peaks is equal to or less than a predetermined threshold. 3. The distance between the peaks (valley width) on both the left and right sides is equal to or less than a predetermined threshold. 4. The valley depth is greater than or equal to a predetermined threshold.

【0019】エッジ抽出部212は、輝度谷点抽出部2
07により抽出された輝度谷点の中から、彩度、R色
度、G色度、B色度の一つあるいは複数に関する以下の
条件を満たすものをエッジ候補点として抽出し、あるい
は輝度谷点の全てを(つまり無条件に)エッジ候補点と
して抽出し、その座標データを出力する。この抽出条件
(無条件も含む)に関し、エッジ検出装置200は多様
なモードを選択できる。
The edge extracting unit 212 includes a luminance valley point extracting unit 2
07, a candidate that satisfies the following conditions relating to one or more of saturation, R chromaticity, G chromaticity, and B chromaticity is extracted as an edge candidate point. Are extracted as edge candidate points (that is, unconditionally), and their coordinate data is output. Regarding the extraction conditions (including unconditional conditions), the edge detection device 200 can select various modes.

【0020】 1.輝度谷点に、彩度または色度の谷点が存在しない。 2.輝度谷点に、所定しきい値以上の深さの彩度または
色度の谷点が存在しない。 3.輝度谷点に、しきい値算出部206で算出されたし
きい値以上の深さの彩度または色度の谷が存在しない。 4.輝度谷点に、彩度または色度の山点が存在しない。 5.輝度谷点に、所定しきい値以上の高さの彩度または
色度の山点が存在しない。 6.輝度谷点に、しきい値算出部(208〜211)に
より算出されたしきい値以上の高さの彩度または色度の
山点が存在しない。 7.輝度谷点において、彩度または色度の傾きが所定し
きい値より小さい。
1. There is no saturation or chromaticity valley point in the luminance valley point. 2. There is no saturation or chromaticity valley point having a depth equal to or greater than the predetermined threshold value in the luminance valley point. 3. At the luminance valley point, there is no saturation or chromaticity valley having a depth equal to or greater than the threshold calculated by the threshold calculator 206. 4. There are no saturation or chromaticity peaks at the luminance valley points. 5. There are no peaks of saturation or chromaticity at a height equal to or higher than a predetermined threshold value at the luminance valley point. 6. There are no peaks of chroma or chromaticity having a height equal to or higher than the threshold calculated by the threshold calculator (208 to 211) at the luminance valley. 7. At the luminance valley point, the slope of the saturation or chromaticity is smaller than a predetermined threshold.

【0021】なお、上記条件判定には、彩度、RGB各
色度の中から任意に指定したものが用いられる。複数の
ものが指定された場合、例えば彩度とR色度を用いる場
合には、その両方が上記条件を満足しなければならな
い。
In the above-mentioned condition judgment, a color arbitrarily specified from the chroma and the RGB chromaticities is used. When a plurality of items are designated, for example, when saturation and R chromaticity are used, both of them must satisfy the above conditions.

【0022】次に、エッジ検出装置200の動作例を説
明する。以下の説明では、図2の上段に示すカラー画像
1の走査ライン2を例に用いる。このカラー画像1は、
紙片(原稿)を、その地色と同色の背景にてカラー画像
入力装置100で読み取ったもので、4は紙片(原稿)
のエッジを示し、5は背景部分を示す。図2の中段は走
査ライン2における輝度を示し、下段は走査ライン2に
おける彩度を示す。なお、輝度または彩度の谷点または
山点の輝度または彩度と座標(x座標)が、その近傍に
括弧でくくられて付記されている。
Next, an operation example of the edge detection device 200 will be described. In the following description, the scanning line 2 of the color image 1 shown in the upper part of FIG. 2 will be used as an example. This color image 1
A sheet of paper (original) is read by the color image input device 100 with a background of the same color as the ground color.
5 indicates a background portion. The middle part of FIG. 2 shows the luminance on the scanning line 2, and the lower part shows the saturation on the scanning line 2. The luminance or saturation of the valley point or the peak of the luminance or saturation and the coordinates (x-coordinate) are added in parentheses in the vicinity thereof.

【0023】[動作例1]この動作例では、輝度算出部
201、輝度谷点抽出部207及びエッジ抽出部212
だけが関与する。
[Operation Example 1] In this operation example, the luminance calculation section 201, the luminance valley point extraction section 207, and the edge extraction section 212
Only involved.

【0024】カラー画像入力装置100より入力する走
査ライン2のRGBデータから、輝度算出部201は図
2の中段に示す輝度データを算出する。輝度谷点抽出部
207は、この輝度データより全ての谷点を抽出する。
すなわち、図2に示すa,b,c,d,e,f,g,
h,iの9点を抽出する。エッジ抽出部212は、この
9個の輝度谷点を無条件にエッジ候補点とし、それぞれ
の座標データ(表1)をカラー画像処理装置300へ入
力する。
The luminance calculator 201 calculates the luminance data shown in the middle part of FIG. 2 from the RGB data of the scanning line 2 input from the color image input device 100. The luminance valley point extracting unit 207 extracts all valley points from the luminance data.
That is, a, b, c, d, e, f, g,
9 points of h and i are extracted. The edge extracting unit 212 unconditionally sets the nine luminance valley points as edge candidate points, and inputs the respective coordinate data (Table 1) to the color image processing apparatus 300.

【0025】[0025]

【表1】 [Table 1]

【0026】この動作例の場合、真のエッジ点であるa
点とh点の他に7点がエッジ候補点として検出されてし
まうので、エッジ点の検出精度は悪い。しかし、真のエ
ッジ点は間違いなく検出されるため、このようなエッジ
候補点からカラー画像処理装置300でエッジを直線と
して正しく抽出することができるならば、格別支障はな
い。すなわち、カラー画像処理装置300でのエッジ抽
出アルゴリズムによっては、この動作例のようなエッジ
検出精度で十分目的を達成できる。
In the case of this operation example, a true edge point a
Since seven points other than the point and the h point are detected as edge candidate points, the detection accuracy of the edge points is poor. However, since true edge points are definitely detected, there is no particular problem if the color image processing device 300 can correctly extract edges as straight lines from such edge candidate points. That is, depending on the edge extraction algorithm in the color image processing device 300, the object can be sufficiently achieved with the edge detection accuracy as in this operation example.

【0027】[動作例2]この動作例では、輝度算出部
201、輝度谷点抽出部207及びエッジ抽出部212
だけが関与する。輝度谷点抽出部207は、図2中段に
示す輝度データのa〜iの谷点の中で、左側の山の高さ
と右の山の高さとの差が所定のしきい値(ここでは5)
以下の谷点のみを、有効な輝度谷点として抽出する。
[Operation Example 2] In this operation example, the luminance calculation unit 201, the luminance valley point extraction unit 207, and the edge extraction unit 212
Only involved. The luminance valley point extraction unit 207 determines that the difference between the height of the left mountain and the height of the right mountain among the valley points a to i of the luminance data shown in the middle part of FIG. )
Only the following valley points are extracted as effective luminance valley points.

【0028】a点は、その底から左の山までの高さが4
8(=48−0)、右の山までの高さが52(=52−
0)であり、その差は4で5以下である。よって、a点
は有効な谷点として抽出される。d点の場合には、左右
の山の高さの差は|(26−0)−(1−0)|=25
で5より大きいので、有効な谷点としては抽出されな
い。このようにして、走査ライン2においては、a,
b,f,h,iの5点が谷点としてエッジ抽出部212
へ送られる。エッジ抽出部212は、これらの谷点を無
条件にエッジ候補点として、その座標データをカラー画
像処理装置300へ送る。
Point a has a height from the bottom to the left mountain of 4 points.
8 (= 48-0), and the height to the right mountain is 52 (= 52−
0), and the difference is 4 or less and 5 or less. Therefore, the point a is extracted as a valid valley point. In the case of point d, the difference between the heights of the right and left mountains is | (26-0)-(1-0) | = 25
Is larger than 5, and is not extracted as a valid valley point. Thus, in scan line 2, a,
The five points b, f, h, and i are regarded as valley points, and
Sent to The edge extracting unit 212 unconditionally sets these valley points as edge candidate points and sends the coordinate data to the color image processing apparatus 300.

【0029】この動作例でも、真のエッジ点であるa,
h点以外にb,f,iの3点が抽出される(前記動作例
1よりは検出精度は高い)。しかし、前記実施例1で説
明したように、カラー画像処理装置300側のエッジ抽
出処理アルゴリズムによっては、この動作例でも格別支
障はない。
Also in this operation example, true edge points a and a
Three points b, f, and i are extracted in addition to the point h (the detection accuracy is higher than in the operation example 1). However, as described in the first embodiment, there is no particular problem in this operation example depending on the edge extraction processing algorithm on the color image processing apparatus 300 side.

【0030】[動作例3]この動作例では、輝度算出部
201、輝度谷点抽出部207及びエッジ抽出部212
だけが関与する。輝度谷点抽出部207は、第1段階と
して、図2中段に示す輝度データのa〜iの谷点の中
で、前記動作例2と同様に、左側の山の高さと右の山の
高さとの差が所定のしきい値(ここでは5)以下の谷点
のみを抽出する。第2段階として、第1段階で抽出した
谷点の中で、左右の山の間隔つまり谷の幅が所定のしき
い値(ここでは100)以下の谷点だけを、最終的に有
効な輝度谷点として抽出する。
[Operation Example 3] In this operation example, the luminance calculation unit 201, the luminance valley point extraction unit 207, and the edge extraction unit 212
Only involved. As a first step, the luminance valley point extracting unit 207 performs, as in the operation example 2, the height of the left mountain and the height of the right mountain among the valley points a to i of the luminance data shown in the middle part of FIG. Only the valley points whose difference is less than a predetermined threshold value (here, 5) are extracted. In the second step, only the valley points having the interval between the left and right peaks, that is, the valley width of which is equal to or less than a predetermined threshold (here, 100), among the valley points extracted in the first step, are finally set to the effective luminance. Extract as valley points.

【0031】走査ライン2の場合、第1段階でa,b,
f,h,iの5点が抽出される。a点の谷の幅は4(=
78−74)で100以下であるので有効な谷点とな
る。b点の谷の幅は165(=243−78)で100
より大きいので、b点は抽出されない。このようにし
て、a,f,h,iの4点が輝度谷点としてエッジ抽出
部212へ入力する。エッジ抽出部212は、これらの
谷点を無条件にエッジ候補点とし、その座標データを出
力する。
In the case of scan line 2, a, b,
Five points f, h, and i are extracted. The width of the valley at point a is 4 (=
Since 78-74) is 100 or less, it is an effective valley point. The width of the valley at point b is 165 (= 243-78) and 100
Because it is larger, point b is not extracted. In this way, the four points a, f, h, and i are input to the edge extraction unit 212 as luminance valley points. The edge extraction unit 212 unconditionally sets these valley points as edge candidate points and outputs coordinate data thereof.

【0032】この動作例でも、真のエッジ点であるa,
h点以外に,f,iの2点が抽出される(前記動作例2
よりは検出精度が高い)。しかし、前記実施例で説明し
たように、カラー画像処理装置300側のエッジ抽出処
理アルゴリズムによっては、この動作例でも格別支障は
ない。
Also in this operation example, true edge points a and a
In addition to the h point, two points f and i are extracted (the operation example 2 described above).
Detection accuracy is higher). However, as described in the above embodiment, there is no particular problem in this operation example depending on the edge extraction processing algorithm on the color image processing apparatus 300 side.

【0033】[動作例4]この動作例では、輝度算出部
201、輝度谷点抽出部207及びエッジ抽出部212
だけが関与する。
[Operation Example 4] In this operation example, the luminance calculation section 201, the luminance valley point extraction section 207, and the edge extraction section 212
Only involved.

【0034】輝度谷点抽出部207は、輝度の谷点の中
から、動作例3と同様に、左の山と右の山の高さの差が
所定のしきい値(ここでは5)以下で、かつ谷の幅が所
定のしきい値(ここでは100)以下の谷点を抽出す
る。走査ライン2の場合、a,f,h,iの4点が抽出
されることになる。
The luminance valley point extracting unit 207 determines, from the luminance valley points, that the difference between the heights of the left peak and the right peak is equal to or smaller than a predetermined threshold value (here, 5), as in the operation example 3. And a valley point whose valley width is equal to or less than a predetermined threshold value (here, 100) is extracted. In the case of the scanning line 2, four points a, f, h, and i are extracted.

【0035】輝度谷点抽出部207はさらに、a,f,
h,iの4点の中から、谷の深さ(ここでは左右の山ま
での高さの大きい方の値を谷の深さとする)が所定のし
きい値(ここでは20)以上の谷点を最終的に有効な輝
度谷点として抽出する。a点の場合、谷の深さmax
((48−0),(52−0))=52>20であるの
で、谷点として抽出する。i点の場合、谷の深さmax
((48−45),(46−45))=3<20である
ので、谷点として抽出しない。
The luminance valley point extracting unit 207 further includes a, f,
Among the four points h and i, a valley whose valley depth (here, the larger value of the height to the left and right peaks is the valley depth) is equal to or greater than a predetermined threshold value (here, 20). The point is finally extracted as a valid luminance valley point. For point a, the depth max of the valley
Since ((48-0), (52-0)) = 52> 20, it is extracted as a valley point. In the case of point i, the valley depth max
Since ((48-45), (46-45)) = 3 <20, it is not extracted as a valley point.

【0036】このようにして、最終的にa,f,hの3
点が抽出されてエッジ抽出部212に入力する。エッジ
抽出部212は、これら3点をそのままエッジ候補点と
し、その座標データを出力する。
Thus, finally, a, f, and h of 3
Points are extracted and input to the edge extraction unit 212. The edge extraction unit 212 outputs these three points as edge candidate points as they are, and outputs their coordinate data.

【0037】このように、この動作例は真のエッジ点で
あるa,h点以外にはf点のみが検出されるため、前記
動作例より検出精度が高い。
As described above, in this operation example, only the point f is detected other than the true edge points a and h, so that the detection accuracy is higher than that in the operation example.

【0038】[動作例5]この動作例では、輝度算出部
201、輝度谷点抽出部207、エッジ抽出部212の
他に輝度谷点抽出用しきい値算出部206が関与する。
[Operation Example 5] In this operation example, in addition to the luminance calculating section 201, the luminance valley point extracting section 207, and the edge extracting section 212, a luminance valley point extracting threshold value calculating section 206 is involved.

【0039】輝度谷点抽出用しきい値算出部206は、
輝度データより輝度の谷の深さ(左右の山までの高さの
大きいほうの値)のヒストグラムを作成し、このヒスト
グラムの谷に対応する谷の深さを、輝度谷点抽出のため
の谷の深さのしきい値として求める。ヒストグラムの谷
が複数ある場合には、その中の最も深い谷に対応した谷
の深さをしきい値とする。走査ライン2の場合、図3に
示すようなヒストグラムが得られる。このヒストグラム
の最も深い谷は谷深さが10〜19の範囲であるので、
その代表値15をしきい値とする。
The luminance valley point extraction threshold value calculation unit 206
A histogram of the depth of the valley of the luminance (the larger value of the height to the left and right peaks) is created from the luminance data, and the depth of the valley corresponding to the valley of the histogram is determined as the valley for extracting the luminance valley point. Is determined as the threshold value of the depth. When there are a plurality of valleys in the histogram, the depth of the valley corresponding to the deepest valley is set as the threshold. In the case of the scanning line 2, a histogram as shown in FIG. 3 is obtained. Since the deepest valley of this histogram has a valley depth of 10 to 19,
The representative value 15 is set as a threshold.

【0040】なお、谷の深さのヒストグラムから谷の深
さのしきい値を決定する別の方法として、論文「輝度分
布の形状を利用した図面の2値化方法」(外山・伊東,
電子情報通信学会誌D−II Vol.J74 No.
5,pp.648−654)に述べられている方法等を
採用することも可能である。
As another method for determining the threshold of the valley depth from the histogram of the valley depth, a dissertation “Binarization Method of Drawing Utilizing Shape of Luminance Distribution” (Toyama / Ito,
IEICE D-II Vol. J74 No.
5, pp. 648-654) can be employed.

【0041】輝度谷点抽出部207は、前記動作例3と
同様に、輝度谷点a〜iの中から、左右の山の高さの差
が所定のしきい値(ここでは5)以下で、かつ谷の幅が
所定のしきい値(ここでは100)以下の谷点だけを抽
出する。つまり、この段階でa,f,h,iの4点だけ
が残る。次に、この4点の中で、谷の深さが、しきい値
算出部206で算出された谷の深さのしきい値(ここで
は15)以上のものだけを最終的に有効な輝度谷点とし
て抽出する。
As in the operation example 3, the luminance valley point extracting unit 207 determines that the difference between the heights of the right and left peaks is less than or equal to a predetermined threshold value (here, 5) from among the luminance valley points a to i. , And only valley points whose valley width is less than or equal to a predetermined threshold value (here, 100) are extracted. That is, at this stage, only the four points a, f, h, and i remain. Next, among these four points, only those having a valley depth equal to or greater than the valley depth threshold (15 in this case) calculated by the threshold calculator 206 are finally set to the effective luminance. Extract as valley points.

【0042】a点の場合、max((48−0),(5
2−0))=52>15であるので有効な谷点となる。
i点の場合、max((48−45),(46−4
5))=3<15であるので、抽出されない。このよう
にして、a,f,hの3点だけが有効な輝度谷点として
抽出されエッジ抽出部212に入力する。
In the case of the point a, max ((48-0), (5
2-0)) = 52> 15, which is an effective valley point.
In the case of point i, max ((48-45), (46-4
5)) = 3 <15, so it is not extracted. In this way, only the three points a, f, and h are extracted as valid luminance valley points and input to the edge extraction unit 212.

【0043】エッジ抽出部212は、それらの輝度谷点
をそのままエッジ候補点とし、その座標データをカラー
画像処理装置300へ入力する。したがって、この動作
例によっても前記動作例4と同様の検出精度を達成でき
る。
The edge extracting section 212 uses those luminance valley points as edge candidate points as they are, and inputs the coordinate data to the color image processing apparatus 300. Therefore, according to this operation example, the same detection accuracy as that of the operation example 4 can be achieved.

【0044】[動作例6]この動作例では、輝度算出部
201、輝度谷点抽出部207、エッジ抽出部212、
輝度谷点抽出用しきい値算出部206と彩度算出部20
8が関与する。
[Operation Example 6] In this operation example, the luminance calculating section 201, the luminance valley point extracting section 207, the edge extracting section 212,
Luminance valley point extraction threshold value calculation unit 206 and saturation calculation unit 20
8 are involved.

【0045】輝度谷点抽出用しきい値算出部206は、
前記実施例5の場合と同様にして輝度谷点の深さのしき
い値を求める。このしきい値を用いて、輝度谷点抽出部
207において、前記動作例5と同様に、左右の山の高
さの差が所定のしきい値(ここでは5)以下、かつ谷の
幅が所定のしきい値(ここでは100)以下、かつ谷の
深さがしきい値算出部206で算出されたしきい値(こ
こでは15)以上の輝度谷点を抽出する。こうして、走
査ライン2の場合はa,f,hの3点が抽出される。ま
た、彩度算出部202で前記(5)式により彩度が求め
られ、彩度データがエッジ抽出部212に入力する。
The luminance valley point extraction threshold value calculation unit 206 calculates
The threshold value of the depth of the luminance valley point is obtained in the same manner as in the fifth embodiment. Using this threshold value, the difference between the heights of the right and left peaks is equal to or smaller than a predetermined threshold value (here, 5) and the width of the valley is smaller than the threshold value in the luminance valley point extraction unit 207 as in the operation example 5. A luminance valley point whose value is equal to or less than a predetermined threshold value (here, 100) and whose valley depth is equal to or more than the threshold value (here, 15) calculated by the threshold value calculation unit 206 is extracted. Thus, in the case of the scanning line 2, three points a, f, and h are extracted. Further, the saturation is calculated by the above-described equation (5) in the saturation calculation unit 202, and the saturation data is input to the edge extraction unit 212.

【0046】エッジ抽出部212において、彩度データ
より彩度の谷点を抽出する。走査ライン2は図2中段に
示すような彩度を持つので、彩度の谷点としてa,j,
d,e,fの5点が抽出される。そして、輝度谷点抽出
部207で抽出された輝度谷点の中で、彩度の谷点でな
いものだけをエッジ候補点と判断し、その座標データを
出力する。よって、走査ライン2ではh点だけが抽出さ
れる。
The edge extracting unit 212 extracts a valley point of saturation from the saturation data. Since the scanning line 2 has saturation as shown in the middle part of FIG. 2, a, j, and
Five points d, e, and f are extracted. Then, among the luminance valley points extracted by the luminance valley point extraction unit 207, only those which are not the valley points of the saturation are determined as the edge candidate points, and the coordinate data is output. Therefore, only the point h is extracted in the scanning line 2.

【0047】[動作例7]この動作例では、輝度算出部
201、輝度谷点抽出用しきい値算出部206、輝度谷
点抽出部207、エッジ抽出部212、彩度算出部20
8が関与する。
[Operation Example 7] In this operation example, in the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 20
8 are involved.

【0048】動作例5と同様にして輝度の谷点を抽出す
る。エッジ抽出部212で彩度の山点を抽出し、輝度谷
点の中で、彩度の山点でないものをエッジ候補点とす
る。これ以外は動作例6と同様である。走査ライン2で
はh点が彩度の山点であるので、輝度谷点a,j,hの
中でa点だけがエッジ候補点となる。
A luminance valley point is extracted in the same manner as in the operation example 5. The edge extraction unit 212 extracts the saturation peaks, and among the luminance valley points, those that are not the saturation peaks are set as edge candidate points. Except for this, the operation is the same as the operation example 6. Since the point h is the peak of the saturation in the scanning line 2, only the point a among the luminance valleys a, j, h is an edge candidate point.

【0049】[動作例8]この動作例では、輝度算出部
201、輝度谷点抽出用しきい値算出部206、輝度谷
点抽出部207、エッジ抽出部212、R,G,B色度
算出部203,204,205が関与する。
[Operation Example 8] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, the R, G, and B chromaticity calculations are performed. The units 203, 204, 205 are involved.

【0050】動作例5と同様にして輝度の谷点を抽出す
る。R,G,B色度算出部203,204,205で
R,G,Bの色度を算出し、この色度データからエッジ
抽出部212で色度の谷点または山点を抽出する。そし
て、エッジ抽出部212において、輝度谷点の中で、い
ずれの色度の谷点または山点でもないものだけをエッジ
候補点とする。なお、R,G,Bの一つまたは二つの色
度について、谷点または山点を抽出してもよい。
A luminance valley point is extracted in the same manner as in the operation example 5. The R, G, and B chromaticity calculation units 203, 204, and 205 calculate the chromaticity of R, G, and B, and the edge extraction unit 212 extracts a valley point or a peak point of the chromaticity from the chromaticity data. Then, in the edge extracting unit 212, only the valley points or the hill points of any chromaticity among the luminance valley points are set as edge candidate points. Note that valley points or peak points may be extracted for one or two chromaticities of R, G, and B.

【0051】[動作例9]この動作例では、輝度算出部
201、輝度谷点抽出用しきい値算出部206、輝度谷
点抽出部207、エッジ抽出部212、彩度算出部20
8が関与する。
[Operation Example 9] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 20
8 are involved.

【0052】実施例5と同様にして輝度谷点を抽出す
る。エッジ抽出部212において、輝度谷点での彩度の
傾きを算出し、彩度の傾きが所定のしきい値より小さい
輝度谷点をエッジ候補点とする。
A luminance valley point is extracted in the same manner as in the fifth embodiment. The edge extracting unit 212 calculates the gradient of the saturation at the luminance valley point, and sets the luminance valley point having the saturation gradient smaller than a predetermined threshold value as an edge candidate point.

【0053】[動作例10]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、R,G,B色
度算出部203,204,205が関与する。
[Operation Example 10] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, the R, G, and B chromaticity calculations are performed. The units 203, 204, 205 are involved.

【0054】実施例5と同様にして輝度谷点を抽出す
る。エッジ抽出部212において、輝度谷点でのR,
G,B色度の傾きを算出し、色度の傾きが所定のしきい
値より小さい輝度谷点をエッジ候補点とする。なお、
R,G,Bの一つまたは二つの色度についての傾きを抽
出し、その傾きが所定のしきい値以下の輝度谷点をエッ
ジ候補点としてもよい。
A luminance valley point is extracted in the same manner as in the fifth embodiment. In the edge extraction unit 212, R,
The gradients of the chromaticity of G and B are calculated, and a luminance valley point where the gradient of the chromaticity is smaller than a predetermined threshold value is set as an edge candidate point. In addition,
A gradient for one or two chromaticities of R, G, and B may be extracted, and a luminance valley point whose gradient is equal to or less than a predetermined threshold may be set as an edge candidate point.

【0055】[動作例11]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、彩度算出部2
08が関与する。
[Operation Example 11] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 2
08 are involved.

【0056】動作例5と同様にして輝度谷点を抽出す
る。エッジ抽出部212において、谷の深さが所定のし
きい値(ここでは20)以上の彩度の谷点を抽出する。
彩度の谷の深さは、谷点の左の山までの高さと右の山ま
での高さのうちの大きいほうの値とする。a点の場合、
max((50−49),(50−49)=1<20で
あるので、彩度の谷点として抽出されない。f点では谷
の深さは42であるので彩度の谷点として抽出される。
同様にして、d,e,fが彩度の谷点として抽出され
る。
A luminance valley point is extracted in the same manner as in the operation example 5. The edge extraction unit 212 extracts a valley point having a saturation whose valley depth is equal to or greater than a predetermined threshold value (here, 20).
The depth of the saturation valley is the greater of the height to the left mountain and the height to the right mountain of the valley point. For point a,
Since max ((50-49), (50-49) = 1 <20, it is not extracted as a saturation valley point, and at point f, the valley depth is 42, so it is extracted as a saturation valley point. You.
Similarly, d, e, and f are extracted as saturation valley points.

【0057】エッジ抽出部212は、輝度谷点の中で、
彩度の谷点でないものだけをエッジ候補点として抽出
し、その座標データを出力する。走査ライン2の場合、
輝度谷点a,f,hの中でa,hがエッジ候補点として
抽出される。すなわち、真のエッジ点が両方とも抽出さ
れる。
The edge extracting unit 212 calculates
Only the non-saturation valley points are extracted as edge candidate points, and their coordinate data is output. For scan line 2,
Among the luminance valley points a, f, h, a and h are extracted as edge candidate points. That is, both true edge points are extracted.

【0058】[動作例12]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、彩度算出部2
08が関与する。
[Operation Example 12] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 2
08 are involved.

【0059】この動作例では、輝度算出部201、輝度
谷点抽出部207、エッジ抽出部212、輝度谷点抽出
用しきい値算出部206と彩度算出部208が関与す
る。
In this operation example, the luminance calculating section 201, the luminance valley point extracting section 207, the edge extracting section 212, the luminance valley point extracting threshold value calculating section 206, and the saturation calculating section 208 are involved.

【0060】動作例5と同様にして輝度谷点を抽出す
る。エッジ抽出部212で、所定のしきい値より以上の
高さの彩度の山点を抽出する。山の高さは、その左の谷
点からの高さと右の谷点からの高さのうちの大きいほう
の値である。そして、輝度谷点の中で、彩度の山点でな
いものをエッジ候補点として抽出する。
A luminance valley point is extracted in the same manner as in the operation example 5. The edge extracting unit 212 extracts a mountain peak having a saturation higher than a predetermined threshold. The height of the mountain is the larger of the height from the left valley point and the height from the right valley point. Then, among the luminance valley points, those that are not the peak points of the saturation are extracted as edge candidate points.

【0061】[動作例13]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、R,G,B色
度算出部203,204,205が関与する。
[Operation Example 13] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, the R, G, and B chromaticity calculations are performed. The units 203, 204, 205 are involved.

【0062】動作例5と同様にして輝度谷点を抽出す
る。エッジ抽出部212で、谷の深さが所定のしきい値
以上のR,G,Bの色度の谷点、または山の高さが所定
のしきい値以上の高さのR,G,Bの色度の山点を抽出
する。そして、輝度谷点の中で色度の谷点または山点で
ないものをエッジ候補点として抽出する。なおR,G,
Bの一つまたは二つの色度について、谷点または山点を
抽出してもよい。
A luminance valley point is extracted in the same manner as in the operation example 5. In the edge extraction unit 212, the valley points of the chromaticity of R, G, and B whose valley depths are equal to or more than a predetermined threshold value, or the R, G, and C heights whose peak heights are equal to or more than a predetermined threshold value. The peak of the chromaticity of B is extracted. Then, a luminance valley point which is not a valley point or a peak point of chromaticity is extracted as an edge candidate point. Note that R, G,
For one or two chromaticities of B, valley points or peak points may be extracted.

【0063】[動作例14]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、彩度算出部2
08、彩度しきい値算出部208が関与する。
[Operation Example 14] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 2
08, the saturation threshold value calculation unit 208 is involved.

【0064】動作例5と同様にして輝度谷点を抽出す
る。彩度しきい値算出部208において、彩度算出部2
02で得られた彩度データより、彩度の谷の深さ(左右
の山までの高さの大きいほうの値)のヒストグラムを作
成し、このヒストグラムの谷に対応する谷の深さを、彩
度谷点抽出のための谷の深さのしきい値として求める。
ヒストグラムの谷が複数ある場合には、その中の最も深
い谷に対応した谷の深さをしきい値とする。走査ライン
2の場合、図4に示すようなヒストグラムが得られる。
このヒストグラムの最も深い谷は谷深さが10〜19の
範囲であるので、その代表値15を彩度の谷の深さのし
きい値とする。
A luminance valley point is extracted in the same manner as in the operation example 5. In the saturation threshold value calculation unit 208, the saturation calculation unit 2
From the saturation data obtained in step 02, a histogram of the depth of the saturation valley (the larger value of the height to the left and right peaks) is created, and the depth of the valley corresponding to the valley of this histogram is calculated as It is obtained as a threshold value of a valley depth for extracting a saturation valley point.
When there are a plurality of valleys in the histogram, the depth of the valley corresponding to the deepest valley is set as the threshold. In the case of the scanning line 2, a histogram as shown in FIG. 4 is obtained.
Since the deepest valley of this histogram has a valley depth in the range of 10 to 19, the representative value 15 is used as the threshold value of the valley depth of saturation.

【0065】なお、彩度の谷の深さのヒストグラムから
谷の深さのしきい値を決定する別の方法として、前記論
文「輝度分布の形状を利用した図面の2値化方法」に述
べられている方法等を採用することも可能である。
As another method for determining the threshold value of the valley depth from the histogram of the valley depth of the saturation, the above-mentioned paper "Binarization Method of Drawing Utilizing Shape of Luminance Distribution" is described. It is also possible to adopt a method or the like that has been used.

【0066】エッジ抽出部212において、彩度データ
より、谷の深さが彩度しきい値算出部208で求められ
たしきい値(ここでは15)以上の彩度の谷点を抽出す
る。彩度の谷点の深さは、その左右の山までの高さのう
ちの大きいほうの値とする。走査ライン2の場合、a点
は彩度の谷点であるが、その谷の深さmax((50−
49),(50−49))=1<15であるから、a点
は彩度の谷点としては抽出されない。f点はmax
((50−8),(49−8))=42>15であるの
で彩度の谷点として抽出される。同様にして、d,e,
jも彩度の谷点として抽出される。
The edge extraction unit 212 extracts a valley point having a saturation whose valley depth is greater than or equal to the threshold value (here, 15) obtained by the saturation threshold value calculation unit 208 from the saturation data. The depth of the saturation valley point is the larger value of the heights to the left and right peaks. In the case of the scanning line 2, the point a is a valley point of the saturation, and the depth max of the valley ((50−
49), (50-49)) = 1 <15, so that the point a is not extracted as a saturation valley point. f point is max
Since ((50-8), (49-8)) = 42> 15, it is extracted as a saturation valley point. Similarly, d, e,
j is also extracted as a saturation valley point.

【0067】エッジ抽出部212は、輝度谷点の中で、
以上のようにして抽出した彩度の谷点でないものをエッ
ジ候補点とし、その座標データを出力する。走査ライン
2の場合、a,hがエッジ候補点として正確に抽出され
る。
The edge extracting unit 212 calculates
Those that are not the valley points of the saturation extracted as described above are regarded as edge candidate points, and their coordinate data are output. In the case of the scanning line 2, a and h are accurately extracted as edge candidate points.

【0068】[動作例15]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、彩度算出部2
08、彩度しきい値算出部208が関与する。
[Operation Example 15] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 2
08, the saturation threshold value calculation unit 208 is involved.

【0069】動作例5と同様にして輝度谷点を抽出す
る。彩度しきい値算出部208において、彩度算出部2
02で得られた彩度データより、彩度の山の高さ(左右
の谷点までの高さの大きいほうの値)のヒストグラムを
作成し、このヒストグラムの谷に対応する山の高さ(代
表値)を彩度山点抽出のための山の高さのしきい値とし
て求める。ヒストグラムの谷が複数ある場合には、その
中の最も深い谷に対応した山の高さ(代表値)をしきい
値とする。
A luminance valley point is extracted in the same manner as in the operation example 5. In the saturation threshold value calculation unit 208, the saturation calculation unit 2
From the saturation data obtained in step S02, a histogram of the height of the saturation peak (the larger value of the height to the left and right valley points) is created, and the height of the peak corresponding to the valley of this histogram ( (Representative value) is obtained as a threshold value of a peak height for extracting a chroma peak. If there are a plurality of valleys in the histogram, the height (representative value) of the valley corresponding to the deepest valley is set as the threshold.

【0070】なお、彩度の山の高さのヒストグラムから
山の高さのしきい値を決定する別の方法として、前記論
文「輝度分布の形状を利用した図面の2値化方法」に述
べられている方法等を採用することも可能である。
As another method for determining the threshold value of the peak height from the histogram of the peak heights of the saturation, the above-mentioned paper, “Binarization Method of Drawing Utilizing Shape of Luminance Distribution”, is described. It is also possible to adopt a method or the like that has been used.

【0071】エッジ抽出部212において、彩度データ
より、山の高さが彩度しきい値算出部208で求められ
たしきい値以上の彩度の山点を抽出する。そして、輝度
谷点の中で、以上のようにして抽出した彩度の山点でな
いものをエッジ候補点とし、その座標データを出力す
る。
The edge extraction unit 212 extracts, from the saturation data, a mountain point having a saturation whose height is equal to or higher than the threshold value obtained by the saturation threshold value calculation unit 208. Then, among the luminance valley points, those which are not the peak points of the chroma extracted as described above are set as edge candidate points, and their coordinate data are output.

【0072】[動作例16]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、R,G,B色
度算出部203,204,205、R,G,B色度しき
い値算出部209,210,211が関与する。
[Operation Example 16] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, the R, G, and B chromaticity calculations are performed. The units 203, 204, 205 and the R, G, B chromaticity threshold value calculation units 209, 210, 211 are involved.

【0073】動作例5と同様にして輝度谷点を抽出す
る。R,G,B色度しきい値算出部209,210,2
11において、R,G,B色度算出部203,204,
205で得られたR,G,B色度データより、各色度の
谷の深さ(左右の山点までの高さの大きいほうの値)の
ヒストグラムを作成し、このヒストグラムの谷に対応す
る谷の深さ(代表値)を各色度の谷点抽出のための谷の
深さのしきい値として求める。ヒストグラムの谷が複数
ある場合には、その中の最も深い谷に対応した谷の深さ
(代表値)をしきい値とする。
A luminance valley point is extracted in the same manner as in the operation example 5. R, G, B chromaticity threshold value calculation units 209, 210, 2
11, the R, G, B chromaticity calculation units 203, 204,
From the R, G, and B chromaticity data obtained in 205, a histogram of the depth of the valley of each chromaticity (the larger value of the height to the left and right peaks) is created, and a histogram corresponding to the valley of the histogram is created. The valley depth (representative value) is obtained as a valley depth threshold value for valley point extraction for each chromaticity. When there are a plurality of valleys in the histogram, the depth (representative value) of the valley corresponding to the deepest valley is set as the threshold value.

【0074】なお、色度の谷の深さのヒストグラムから
谷の深さのしきい値を決定する別の方法として、前記論
文「輝度分布の形状を利用した図面の2値化方法」に述
べられている方法等を採用することも可能である。
As another method for determining the threshold value of the valley depth from the histogram of the chromaticity valley depth, the above-mentioned paper, “Binarization Method of Drawing Utilizing Shape of Luminance Distribution”, is described. It is also possible to adopt a method or the like that has been used.

【0075】エッジ抽出部212において、R,G,B
色度データより、谷の深さがR,G,B色度しきい値算
出部209,210,211で求められたしきい値以上
の色度の谷点を抽出する。そして、輝度谷点の中で、以
上のようにして抽出した色度の谷点でないものをエッジ
候補点とし、その座標データを出力する。
In the edge extracting unit 212, R, G, B
From the chromaticity data, valley points whose chromaticity is equal to or greater than the threshold value obtained by the R, G, B chromaticity threshold value calculation units 209, 210, 211 are extracted. Then, among the luminance valley points, those that are not valley points of the chromaticity extracted as described above are set as edge candidate points, and their coordinate data are output.

【0076】[動作例17]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、R,G,B色
度算出部203,204,205、R,G,B色度しき
い値算出部209,210,211が関与する。
[Operation Example 17] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, the R, G, B chromaticity calculation The units 203, 204, 205 and the R, G, B chromaticity threshold value calculation units 209, 210, 211 are involved.

【0077】動作例5と同様にして輝度谷点を抽出す
る。R,G,B色度しきい値算出部209,210,2
11において、R,G,B色度算出部203,204,
205で得られたR,G,B色度データより、各色度の
山の高さ(左右の谷点までの高さの大きいほうの値)の
ヒストグラムを作成し、このヒストグラムの谷に対応す
る山の高さ(代表値)を各色度の山点抽出のための山の
高さのしきい値として求める。ヒストグラムの谷が複数
ある場合には、その中の最も深い谷に対応した山の高さ
(代表値)をしきい値とする。
A luminance valley point is extracted in the same manner as in the operation example 5. R, G, B chromaticity threshold value calculation units 209, 210, 2
11, the R, G, B chromaticity calculation units 203, 204,
From the R, G, and B chromaticity data obtained in 205, a histogram of the peak height of each chromaticity (the larger value of the height to the left and right valley points) is created, and the histogram corresponds to the valley of the histogram. The peak height (representative value) is obtained as a peak height threshold value for peak point extraction of each chromaticity. If there are a plurality of valleys in the histogram, the height (representative value) of the valley corresponding to the deepest valley is set as the threshold.

【0078】なお、色度の山の高さのヒストグラムから
山の高さのしきい値を決定する別の方法として、前記論
文「輝度分布の形状を利用した図面の2値化方法」に述
べられている方法等を採用することも可能である。
As another method for determining the threshold value of the peak height from the histogram of the peak height of the chromaticity, the above-mentioned paper “Binarization method of drawing utilizing shape of luminance distribution” is described. It is also possible to adopt a method or the like that has been used.

【0079】エッジ抽出部212において、R,G,B
色度データより、山の高さがR,G,B色度しきい値算
出部209,210,211で求められたしきい値以上
の色度の山点を抽出する。そして、輝度谷点の中で、以
上のようにして抽出した色度の山点でないものをエッジ
候補点とし、その座標データを出力する。
In the edge extracting unit 212, R, G, B
From the chromaticity data, mountain points whose chromaticity is equal to or greater than the threshold value obtained by the R, G, B chromaticity threshold value calculation units 209, 210, 211 are extracted. Then, among the luminance valley points, those which are not the peak points of the chromaticity extracted as described above are set as edge candidate points, and their coordinate data are output.

【0080】[動作例18]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、彩度算出部2
08、彩度しきい値算出部208が関与する。
[Operation Example 18] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, and the saturation calculation section 2
08, the saturation threshold value calculation unit 208 is involved.

【0081】動作例5と同様にして輝度谷点を抽出す
る。彩度しきい値算出部208において、彩度算出部2
02で得られた彩度データより、彩度の傾きのヒストグ
ラムを作成し、このヒストグラムの谷に対応する傾き
(代表値)を、彩度の傾きのしきい値として求める。ヒ
ストグラムの谷が複数ある場合には、その中の最も深い
谷に対応した傾き(代表値)をしきい値とする。
A luminance valley point is extracted in the same manner as in the operation example 5. In the saturation threshold value calculation unit 208, the saturation calculation unit 2
A histogram of the saturation gradient is created from the saturation data obtained in step 02, and the gradient (representative value) corresponding to the valley of the histogram is obtained as a threshold value of the saturation gradient. When there are a plurality of valleys in the histogram, the slope (representative value) corresponding to the deepest valley is set as the threshold.

【0082】エッジ抽出部212において、彩度データ
より、輝度谷点での彩度の傾きを求め、輝度谷点の中
で、そこでの彩度の傾きがしきい値より小さいものをエ
ッジ候補点とし、その座標データを出力する。
The edge extracting unit 212 calculates the gradient of the saturation at the luminance valley from the chroma data, and among the luminance valleys, the one whose gradient of the saturation is smaller than the threshold value is determined as an edge candidate point. And outputs the coordinate data.

【0083】[動作例19]この動作例では、輝度算出
部201、輝度谷点抽出用しきい値算出部206、輝度
谷点抽出部207、エッジ抽出部212、R,G,B色
度算出部203,204,205、R,G,B色度しき
い値算出部209,210,211が関与する。
[Operation Example 19] In this operation example, the luminance calculation section 201, the luminance valley point extraction threshold value calculation section 206, the luminance valley point extraction section 207, the edge extraction section 212, the R, G, and B chromaticity calculations are performed. The units 203, 204, 205 and the R, G, B chromaticity threshold value calculation units 209, 210, 211 are involved.

【0084】動作例5と同様にして輝度谷点を抽出す
る。R,G,B色度しきい値算出部209,210,2
11において、R,G,B色度データより、各色度の傾
きのヒストグラムを作成し、このヒストグラムの谷に対
応する傾き(代表値)を、各色度の傾きのしきい値とし
て求める。ヒストグラムの谷が複数ある場合には、その
中の最も深い谷に対応した傾き(代表値)をしきい値と
する。
A luminance valley point is extracted in the same manner as in the operation example 5. R, G, B chromaticity threshold value calculation units 209, 210, 2
In step 11, a histogram of the slope of each chromaticity is created from the R, G, and B chromaticity data, and the slope (representative value) corresponding to the valley of the histogram is obtained as a threshold value of the slope of each chromaticity. When there are a plurality of valleys in the histogram, the slope (representative value) corresponding to the deepest valley is set as the threshold.

【0085】エッジ抽出部212において、R,G,B
色度データより、輝度谷点での各色度の傾きを求め、輝
度谷点の中で、そこでの色度の傾きがしきい値より小さ
いものをエッジ候補点とし、その座標データを出力す
る。
In the edge extracting unit 212, R, G, B
From the chromaticity data, the gradient of each chromaticity at the luminance valley point is determined, and among the luminance valley points, those whose chromaticity gradient is smaller than the threshold value are set as edge candidate points, and their coordinate data are output.

【0086】実施例2 図5は本実施例の構成を示すブロック図である。本実施
例のエッジ検出装置400は、カラー画像入力装置10
0において読み取られる原稿の地色と背景色とが異なる
場合に好適な構成となっている。
Embodiment 2 FIG. 5 is a block diagram showing the configuration of this embodiment. The edge detection device 400 according to the present embodiment includes the color image input device 10.
This configuration is suitable when the background color and background color of the document read at 0 are different.

【0087】エッジ検出装置200において、平滑化部
401はカラー画像データに対して平滑化処理を施すも
ので、R,G,B各データ用の3個のマスク処理部から
構成される。その各マスク処理部は、対応色の入力画素
値をf(x)、平滑化のマスクのサイズをWとした場合
に、(6)式により表わされる平滑化後の画素値g
(x)を出力する。
In the edge detecting device 200, the smoothing unit 401 performs a smoothing process on the color image data, and includes three mask processing units for R, G, and B data. Each of the mask processing units determines the pixel value g after the smoothing represented by the equation (6), where f (x) is the input pixel value of the corresponding color and W is the size of the mask for smoothing.
(X) is output.

【0088】[0088]

【数1】 (Equation 1)

【0089】もう一つの平滑化部402も、カラー画像
データに対して平滑化処理を施すもので、上記平滑化部
401と同様にR,G,B各データ用の3個のマスク処
理部からなる。その各マスク処理部の入力画素値と出力
画素値との関係は上記(6)で表わされるが、マスクの
サイズWが、平滑化部401内のマスク処理部のマスク
サイズよりも小さい。
The other smoothing unit 402 also performs a smoothing process on the color image data. Similarly to the above-mentioned smoothing unit 401, the three mask processing units for the R, G, and B data are used. Become. The relationship between the input pixel value and the output pixel value of each mask processing unit is represented by the above (6), but the size W of the mask is smaller than the mask size of the mask processing unit in the smoothing unit 401.

【0090】彩度0算出部403は、カラー画像入力装
置100から入力したRGBデータより、前記(5)式
によって彩度を算出するもので、これにより算出された
彩度を「彩度0」と呼ぶ。彩度1算出部404は、平滑
化部401によって平滑化後のRGBデータより、前記
(5)式によって彩度を算出するもので、算出された彩
度を「彩度1」と呼ぶ。また、彩度2算出部404は、
平滑化部402によって平滑化後のRGBデータより、
前記(5)式によって彩度を算出する。その彩度を「彩
度2」と呼ぶ。
The saturation 0 calculator 403 calculates the saturation from the RGB data input from the color image input device 100 by the above equation (5), and calculates the calculated saturation as “saturation 0”. Call. The saturation 1 calculation unit 404 calculates the saturation by the above equation (5) from the RGB data smoothed by the smoothing unit 401, and the calculated saturation is referred to as “saturation 1”. The saturation 2 calculation unit 404 calculates
From the RGB data smoothed by the smoothing unit 402,
The saturation is calculated by the above equation (5). The saturation is referred to as “saturation 2”.

【0091】彩度0しきい値算出部406は、彩度0の
谷の深さの分布から、彩度0の谷の深さのしきい値を算
出するものである。同様に、彩度1しきい値算出部40
7及び彩度2しきい値算出部408はそれぞれ、彩度1
及び彩度2の谷の深さの分布から、彩度1及び彩度2の
谷の深さのしきい値を算出する。このようなしきい値の
算出方法の具体例は後述する。エッジ抽出部409は紙
片のエッジの候補点を抽出するもので、その抽出の条件
あるいはアルゴリズムの具体例は後述する。
The saturation 0 threshold value calculation unit 406 calculates the threshold value of the saturation 0 valley depth from the distribution of the saturation 0 valley depth. Similarly, the saturation 1 threshold value calculation unit 40
7 and the saturation 2 threshold value calculation unit 408
From the distribution of the depths of the valleys with saturation 2, the threshold values of the depths of the valleys with saturation 1 and saturation 2 are calculated. A specific example of such a threshold value calculation method will be described later. The edge extraction unit 409 extracts a candidate point of an edge of a paper piece, and a specific example of the extraction condition or algorithm will be described later.

【0092】次に、エッジ検出装置400の動作例を説
明する。以下の説明では、図6の上段に示すカラー画像
11の走査ライン12を例に用いる。このカラー画像1
1は紙片(原稿)を、その地色と異色の背景にてカラー
画像入力装置100で読み取ったもので、14は紙片
(原稿)のエッジを示し、15は背景部分を示し、16
は紙片上の文字を示す。図6の2段目は走査ライン12
における彩度0を示し、3段目は走査ライン12におけ
る彩度2を示し、下段は彩度1を示す。また、各彩度の
谷点または山点の彩度と座標(x座標)が、その近傍に
括弧でくくられて付記されている。
Next, an operation example of the edge detection device 400 will be described. In the following description, the scanning line 12 of the color image 11 shown in the upper part of FIG. 6 will be used as an example. This color image 1
Reference numeral 1 denotes a paper sheet (original) read by the color image input device 100 with a background different from the ground color, 14 denotes an edge of the paper sheet (original), 15 denotes a background portion, and 16 denotes a background portion.
Indicates a character on a piece of paper. The second row in FIG.
, The third row shows the saturation 2 in the scanning line 12, and the lower row shows the saturation 1. The saturation and coordinates (x coordinate) of the valley point or peak point of each saturation are added in parentheses in the vicinity thereof.

【0093】[動作例20]この動作例では彩度0算出
部403とエッジ抽出部409だけが関与する。
[Operation Example 20] In this operation example, only the saturation 0 calculation section 403 and the edge extraction section 409 are involved.

【0094】カラー画像入力装置100から入力するR
GBデータより彩度0算出部403によって、図6の2
段目に示すような彩度0のデータが得られる。エッジ抽
出部409は、この彩度0データより彩度0の谷点を検
出し、各谷点をそのまま(無条件に)エッジ候補点とし
て、その座標データを出力する。
R input from the color image input device 100
From the GB data, the saturation 0 calculation unit 403 calculates
Data having a saturation of 0 as shown in the lower row is obtained. The edge extraction unit 409 detects a valley point of saturation 0 from the saturation 0 data, and outputs coordinate data of each valley point as it is (unconditionally) as an edge candidate point.

【0095】図6に示す走査ライン12の場合、h,
c,i,k,l,d,m,e,nの10点からエッジ候
補点として抽出される。
In the case of the scanning line 12 shown in FIG.
Edge candidate points are extracted from ten points of c, i, k, l, d, m, e, and n.

【0096】この動作例の場合、真のエッジ点であるc
点とe点の他に8点がエッジ候補点として検出されてし
まうので、エッジ点の検出精度は悪い。しかし、前記実
施例1の動作例1で触れたように、真のエッジ点は間違
いなく検出されるため、このようなエッジ候補点からカ
ラー画像処理装置300でエッジを直線として正しく抽
出することができるならば、格別支障はない。
In the case of this operation example, c which is a true edge point
Since eight points other than the point and the point e are detected as edge candidate points, the detection accuracy of the edge points is poor. However, as described in the operation example 1 of the first embodiment, since the true edge point is definitely detected, it is possible to correctly extract the edge as a straight line by the color image processing device 300 from such an edge candidate point. If possible, there is no particular problem.

【0097】[動作例21]この動作例では、彩度0算
出部403とエッジ抽出部409だけが関与する。
[Operation Example 21] In this operation example, only the saturation 0 calculation section 403 and the edge extraction section 409 are involved.

【0098】エッジ抽出部409は、彩度0の谷点のう
ち、谷の深さ(左の山までの高さと左の山までの高さ
の、いずれか大きい値)が所定のしきい値(ここでは2
0とする)以上の谷点を、エッジ候補点として抽出す
る。
The edge extraction unit 409 determines that the depth of the valley (the larger of the height to the left peak and the height to the left peak) among the valley points of saturation 0 is a predetermined threshold value. (Here 2
The above valley points are extracted as edge candidate points.

【0099】図6に示す走査ライン12の場合、h,
c,i,k,l,d,m,e,nの10個の谷点があ
る。a点の谷の深さmax(( 24−5) ,( 6−5))
=91は20より大きいので、a点はエッジ候補点とな
る。h点の谷の深さは2で20より小さいので、h点は
エッジ候補点とならない。このようにして、c,d,e
の3点だけがエッジ候補点となる。
In the case of the scanning line 12 shown in FIG.
There are ten valley points c, i, k, l, d, m, e, n. The depth max of the valley at point a ((24-5), (6-5))
Since = 91 is greater than 20, point a is an edge candidate point. Since the depth of the valley at the point h is 2 and smaller than 20, the point h is not an edge candidate point. Thus, c, d, e
Only three points are edge candidate points.

【0100】d点は文字のエッジであり、目的としてい
る紙片のエッジ点ではないが、c点とe点は真のエッジ
点である。このように、この動作例は、前記動作例20
に比べエッジ検出精度が高い。
Point d is the edge of the character and is not the edge point of the target piece of paper, but points c and e are true edge points. As described above, this operation example corresponds to the operation example 20 described above.
Edge detection accuracy is higher than.

【0101】[動作例22]この動作例では、彩度0算
出部403、彩度0しきい値算出部406、エッジ抽出
部409だけが関与する。
[Operation Example 22] In this operation example, only the saturation 0 calculation section 403, the saturation 0 threshold value calculation section 406, and the edge extraction section 409 are involved.

【0102】彩度0算出部403で得られた彩度0のデ
ータを基に、彩度0しきい値算出部406において、彩
度0の谷の深さのヒストグラムを作成し、その谷に対応
した谷の深さ(代表値)を、彩度0の谷の深さのしきい
値とする。ヒストグラムに複数の谷がある場合には、そ
の中の最も深い谷の谷の深さをしきい値とする。
Based on the chroma 0 data obtained by the chroma 0 calculator 403, a chroma 0 threshold calculator 406 creates a histogram of the depth of the chroma 0 valley. The corresponding valley depth (representative value) is set as the threshold value of the valley depth of saturation 0. When the histogram has a plurality of valleys, the depth of the deepest valley in the plurality of valleys is set as the threshold.

【0103】図6の走査ライン12の場合、図7に示す
ようなヒストグラムが得られる。谷の深さ30〜89が
しきい値に対応するので、その代表値60を彩度0の谷
の深さのしきい値とする。
In the case of the scanning line 12 in FIG. 6, a histogram as shown in FIG. 7 is obtained. Since the valley depths 30 to 89 correspond to the threshold value, the representative value 60 is set as the threshold value of the valley depth of 0 saturation.

【0104】なお、彩度0の谷の深さのヒストグラムか
ら谷の深さのしきい値を決定する別の方法として、前記
論文「輝度分布の形状を利用した図面の2値化方法」に
述べられている方法等を採用することも可能である。
As another method for determining the threshold value of the valley depth from the histogram of the valley depth of saturation 0, the above-mentioned paper, “Binarization Method of Drawing Utilizing Shape of Luminance Distribution”, is used. It is also possible to adopt the described method and the like.

【0105】エッジ抽出部409では、彩度0の谷点の
中で、彩度0しきい値算出部406によって求められた
しきい値以上の谷の深さをもつ谷点だけを、エッジ候補
点として抽出し、その座標データを出力する。図6の走
査ライン12の場合、彩度0の谷点は前述のように10
個存在するが、その中でc,d,eの3点だけがエッジ
候補点となる。なお、谷の深さは谷点の左の山までの高
さと、右の山までの高さの、いずれか大きいほうの値で
ある。
The edge extraction unit 409 selects only the valley points having a valley depth equal to or larger than the threshold value calculated by the saturation 0 threshold value calculation unit 406 among the valley points of the saturation 0 as edge candidate. It is extracted as a point and its coordinate data is output. In the case of the scanning line 12 in FIG.
Among them, only three points c, d, and e are the edge candidate points. The depth of the valley is the larger of the height to the left mountain and the height to the right mountain of the valley point.

【0106】[動作例23]この動作例では、平滑化部
401、彩度1算出部404、彩度1しきい値算出部4
07、エッジ抽出部409だけが関与する。
[Operation Example 23] In this operation example, the smoothing section 401, the saturation 1 calculation section 404, and the saturation 1 threshold value calculation section 4
07, only the edge extractor 409 is involved.

【0107】平滑化部401によって、カラー画像入力
装置100から入力するRGB各データに、個別にマス
ク処理を施して平滑化したRGBデータを出力する。こ
のマスク処理に用いるマスクのサイズは、紙片のエッジ
以外の彩度1の谷点が小さくなる程度に選ばれる。ここ
では、39ドット幅のマスクを用いることとする。
The smoothing unit 401 individually performs a mask process on each of the RGB data input from the color image input device 100 and outputs the smoothed RGB data. The size of the mask used for this mask processing is selected so that the valley points of saturation 1 other than the edge of the paper piece become small. Here, a mask having a width of 39 dots is used.

【0108】彩度1算出部404は、平滑化部401に
よって平滑化されたRGBデータを用いて、前記(6)
により彩度1を算出し、そのデータを出力する。図6の
走査ライン12の場合、彩度1は図6の下段に示すよう
になる。
The saturation 1 calculation unit 404 uses the RGB data smoothed by the smoothing unit 401 to calculate
To calculate the saturation 1 and output the data. In the case of the scanning line 12 in FIG. 6, the saturation 1 is as shown in the lower part of FIG.

【0109】彩度1しきい値算出部407では、彩度1
に関して、彩度0しきい値算出部406と同様に、谷の
深さのヒストグラムを作成して彩度1の谷の深さのしき
い値を求める。走査ライン12の場合、彩度1のヒスト
グラムは、谷の高さが10〜19の範囲に最も高い谷が
出現するので、その代表値15をしきい値とする。
In the saturation 1 threshold value calculation unit 407, the saturation 1
In the same manner as in the saturation 0 threshold value calculation unit 406, a histogram of the valley depth is created, and the threshold value of the valley depth of saturation 1 is obtained. In the case of the scanning line 12, since the highest valley appears in the range of 10 to 19 in the histogram of the saturation 1, the representative value 15 is set as the threshold value.

【0110】エッジ抽出部409は、彩度1の谷点の中
で、彩度1しきい値算出部407によって求められたし
きい値以上の谷の深さを持つ谷点だけを、エッジ候補点
として抽出し、その座標データを出力する。
The edge extraction unit 409 selects only the valley points having a valley depth equal to or larger than the threshold value calculated by the saturation 1 threshold value calculation unit 407 from among the valley points of the saturation 1 as edge candidates. It is extracted as a point and its coordinate data is output.

【0111】走査ライン12の場合、彩度1の谷点は
a,o,d,gの4点である。a点の谷の深さはmax
((22−0),(95−0))=95>15であるの
で、a点はエッジ候補点となる。同様にg点もエッジ候
補点となる。しかし、d点は、その谷の深さがmax
((95−89),(93−89))=6で15より小
さいので、エッジ候補点としては抽出されない。o点も
同様に抽出されない。a,g点は、真のエッジ点c,e
より僅かに外側へずれた点であるが(図6では、そのず
れが実際より強調されている)、スキューの検出・補正
等の目的にはエッジ点とみなしても、通常、格別の支障
はない。
In the case of the scanning line 12, the valley points of the saturation 1 are four points a, o, d, and g. The depth of the valley at point a is max
Since ((22-0), (95-0)) = 95> 15, point a is an edge candidate point. Similarly, point g is also an edge candidate point. However, at point d, the depth of the valley is max
Since ((95-89), (93-89)) = 6 and less than 15, it is not extracted as an edge candidate point. The point o is not similarly extracted. The points a and g are the true edge points c and e
Although it is a point shifted slightly outward (in FIG. 6, the shift is emphasized more than actually), even if it is regarded as an edge point for the purpose of skew detection / correction, etc., there is usually no particular problem. Absent.

【0112】[動作例24]この動作例では、平滑化部
401、彩度1算出部407、彩度1しきい値算出部4
07、エッジ抽出部409だけが関与する。
[Operation Example 24] In this operation example, the smoothing section 401, the saturation 1 calculation section 407, and the saturation 1 threshold value calculation section 4
07, only the edge extractor 409 is involved.

【0113】平滑化処理、彩度1の算出、彩度1の谷の
深さのしきい値の決定までの動作は前記実施例23と同
様である。
The operations up to the smoothing process, the calculation of the saturation 1 and the determination of the threshold value of the valley depth of the saturation 1 are the same as those of the twenty-third embodiment.

【0114】エッジ抽出部409は、第1段階として、
前記動作例23と同様に、彩度1の谷点の中で、彩度1
しきい値算出部407で求めたしきい値以上の谷の深さ
を持つ谷点をエッジ候補点として抽出する。すなわち、
図6の走査ライン12の場合にはa,gの2点が抽出さ
れる。
The edge extraction unit 409 performs the first step
As in the operation example 23, among the valley points of the saturation 1, the saturation 1
A valley point having a valley depth greater than or equal to the threshold value calculated by the threshold value calculation unit 407 is extracted as an edge candidate point. That is,
In the case of the scanning line 12 in FIG. 6, two points a and g are extracted.

【0115】エッジ抽出部409は、上記第1段階で抽
出したエッジ候補点の両側の山のうち、高いほうの山へ
向かって、所定の距離だけ移動させた点を最終的なエッ
ジ候点とし、その座標を出力する。上記所定の距離を、
ここでは平滑化部401のマスク処理で用いたマスクの
サイズの半分の値、つまり19ドットとする。
The edge extraction unit 409 sets a point shifted by a predetermined distance toward a higher one of the mountains on both sides of the edge candidate point extracted in the first stage as a final edge candidate point. And output its coordinates. The above predetermined distance,
Here, the value is set to a half value of the size of the mask used in the mask processing of the smoothing unit 401, that is, 19 dots.

【0116】したがって、図6の走査ライン12の場
合、第1段階でa,gの2点が抽出されるが、a点を右
へ(内側へ)19ドット移動させた点(89,83
9)、g点を左へ(内側へ)19ドット移動させた点
(674,839)が、それぞれ最終的なエッジ候補点
となる。このような座標補正によって、前記動作例23
に比べエッジ候補点と真のエッジ点c(100,83
9),e(655,839)との位置誤差を減らすこと
ができる。
Therefore, in the case of the scanning line 12 shown in FIG. 6, two points a and g are extracted in the first stage, but the point a is moved to the right (inward) by 19 dots (89, 83).
9) The point (674, 839) obtained by moving the point g to the left (inward) by 19 dots is the final edge candidate point. By such a coordinate correction, the operation example 23 is performed.
, The edge candidate point and the true edge point c (100, 83
9), position errors with respect to e (655, 839) can be reduced.

【0117】[動作例25]この動作例では、平滑化部
401、彩度1算出部404、彩度1しきい値算出部4
07、エッジ抽出部409だけが関与する。
[Operation Example 25] In this operation example, the smoothing section 401, the saturation 1 calculation section 404, and the saturation 1 threshold value calculation section 4
07, only the edge extractor 409 is involved.

【0118】この動作例は、エッジ抽出部409におい
て、前記動作例24と同様に、彩度1の谷点の中で、彩
度1しきい値算出部407により求められたしきい値以
上の谷の深さを持つ谷点を抽出し(第1段階)、抽出し
た谷点の座標を、その両側の高いほうの山の側へ移動し
補正する(第2段階)。しかし、前記動作例24の場合
と異なり、谷点座標の移動量(オフセット)を固定せ
ず、両側の山までの高さに応じて次の(7)式により適
応的に設定する。
In this operation example, in the edge extraction unit 409, as in the operation example 24, the valley points of the saturation 1 are equal to or larger than the threshold value calculated by the saturation 1 threshold value calculation unit 407. A valley point having a valley depth is extracted (first stage), and the coordinates of the extracted valley point are moved to the higher mountain side on both sides thereof and corrected (second stage). However, unlike the case of the operation example 24, the moving amount (offset) of the valley point coordinates is not fixed, but is adaptively set by the following equation (7) according to the height to the peaks on both sides.

【0119】 オフセット=min(LH,RH)・M/max(LH,RH) (7) ただし、LHは谷点の左側の山までの高さ、RHは谷点
の右側の山までの高さ、Mは平滑化部401のマスク処
理に用いられたマスクのサイズである。
Offset = min (LH, RH) · M / max (LH, RH) (7) where LH is the height to the mountain on the left side of the valley point, and RH is the height to the mountain on the right side of the valley point. , M are the sizes of the masks used for the mask processing of the smoothing unit 401.

【0120】図6の走査ライン12の場合、第1段階で
a,gの2点が抽出される。a点についてのオフセット
は9、g点のオフセットは10となる。よって、a点を
右へ9ドット移動した点(79,839)、g点を左へ
10ドット移動した点(683,839)が、エッジ候
補点となる。
In the case of the scanning line 12 in FIG. 6, two points a and g are extracted in the first stage. The offset for point a is 9 and the offset for point g is 10. Therefore, a point (79, 839) obtained by moving point a by 9 dots to the right and a point (683, 839) obtained by moving point g by 10 dots to the left become edge candidate points.

【0121】[動作例26]この動作例では、彩度0算
出部403、彩度0しきい値算出部406、平滑化部4
01、彩度1算出部404、彩度1しきい値算出部40
7、エッジ抽出部409が用いられる。
[Operation Example 26] In this operation example, the saturation 0 calculation section 403, the saturation 0 threshold value calculation section 406, and the smoothing section 4
01, saturation 1 calculator 404, saturation 1 threshold calculator 40
7. The edge extraction unit 409 is used.

【0122】前記実施例22と同様に、彩度0算出部4
03により彩度0を求め、彩度0しきい値算出部406
でしきい値を求める。また、前記実施例23と同様に、
平滑化部401で平滑化を行ない、彩度1算出部404
で彩度1を求め、彩度1しきい値算出部407でしきい
値を決定する。
As in the twenty-second embodiment, the saturation 0 calculating section 4
03 to obtain saturation 0, and a saturation 0 threshold value calculation unit 406
Find the threshold with. Further, similarly to the embodiment 23,
Smoothing is performed by the smoothing unit 401, and the saturation 1 calculation unit 404 is performed.
, And a saturation 1 threshold value calculation unit 407 determines a threshold value.

【0123】エッジ抽出部409において、彩度0の谷
点の中から、彩度0の谷の深さのしきい値以上の谷の深
さを持つ谷点(走査ライン12の場合、c,d,eの3
点)を検出し、また彩度1の谷点の中から、彩度1の谷
の深さのしきい値以上の谷の深さを持つ谷点(走査ライ
ン12の場合、a,gの2点)を検出する。つぎに、検
出した彩度1の谷点のそれぞれについて、検出された彩
度0の谷点の中から最も近い谷点を選び、それをエッジ
候補点として、その座標を出力する。
In the edge extracting unit 409, a valley point having a valley depth equal to or larger than the threshold value of the valley depth of the saturation 0 is selected from among the valley points of the saturation 0 (c, c, 3 of d and e
Points), and a valley point having a valley depth equal to or greater than the threshold value of the valley depth of the saturation 1 (a, g 2 points). Next, for each of the detected valley points of saturation 1, the closest valley point is selected from the detected valley points of saturation 0, and the coordinates are output as edge candidate points.

【0124】図6の走査ライン12の場合、彩度1のa
点に最も近い彩度0の谷点はc点であり、彩度1のg点
に最も近い彩度0の谷点はe点である。よって、c点と
e点(これらは真のエッジ点である)の座標がエッジ候
補点の座標として得られることになる。
In the case of the scanning line 12 in FIG.
The valley point of saturation 0 closest to the point is point c, and the valley point of saturation 0 closest to point g of saturation 1 is point e. Therefore, the coordinates of point c and point e (these are true edge points) are obtained as the coordinates of the edge candidate points.

【0125】[動作例27]この動作例では、彩度0算
出部403、彩度0しきい値算出部406、平滑化部4
01、彩度1算出部404、彩度1しきい値算出部40
7、エッジ抽出部409が用いられる。
[Operation Example 27] In this operation example, the saturation 0 calculation section 403, the saturation 0 threshold value calculation section 406, and the smoothing section 4
01, saturation 1 calculator 404, saturation 1 threshold calculator 40
7. The edge extraction unit 409 is used.

【0126】この動作例は、エッジ抽出部409の動作
の一部を除いて前記動作例26と同様である。この相違
点は以下のとおりである。
This operation example is the same as the operation example 26 except for a part of the operation of the edge extraction unit 409. This difference is as follows.

【0127】エッジ抽出部409においては、前記動作
例26と同様に、しきい値以上の谷の深さを持つ彩度1
の谷点(走査ライン12の場合、a,gの2点)と彩度
0の谷点(走査ライン12の場合、c,d,eの3点)
を検出する。次に、前記動作例26では彩度1の谷点に
最も近い彩度0の谷点をエッジ候補点としたが、この動
作例では、彩度1の谷点の左右の山のうち、高い方の山
の方向で最も近い彩度0の谷点をエッジ候補点として抽
出する。
In the edge extraction unit 409, as in the operation example 26, the saturation 1 having a valley depth equal to or greater than the threshold value is set.
(The two points a and g in the case of the scanning line 12) and the valley point of saturation 0 (the three points c, d and e in the case of the scanning line 12)
Is detected. Next, in the operation example 26, the valley point of saturation 0 closest to the valley point of saturation 1 is set as an edge candidate point. However, in this operation example, among the left and right peaks of the valley point of saturation 1, The valley point of saturation 0 closest in the direction of the peak is extracted as an edge candidate point.

【0128】図6の走査ライン12の場合、彩度1の谷
点aでは、右側の山のほうが高いので、右方向で最も近
い彩度0の谷点c(真のエッジ点)がエッジ候補点とな
る。また、彩度1の谷点gでは、左側の山のほうが高い
ので、左方向に最も近い彩度0の山点e(真のエッジ
点)がエッジ候補点となる。
In the case of the scanning line 12 in FIG. 6, since the right peak is higher at the valley point a of the saturation 1, the nearest valley c of the saturation 0 (true edge point) in the right direction is an edge candidate. Points. Also, at the valley point g of saturation 1, since the ridge on the left side is higher, the hill point e (true edge point) of saturation 0 closest to the left direction is an edge candidate point.

【0129】[動作例28]この動作例では、彩度0算
出部403、彩度0しきい値算出部406、平滑化部4
01、彩度1算出部404、彩度1しきい値算出部40
7、エッジ抽出部409が用いられる。
[Operation Example 28] In this operation example, the saturation 0 calculation section 403, the saturation 0 threshold value calculation section 406, and the smoothing section 4
01, saturation 1 calculator 404, saturation 1 threshold calculator 40
7. The edge extraction unit 409 is used.

【0130】前記動作例26と同様にして、彩度0と彩
度1、彩度0と彩度1の谷の深さのしきい値を求める。
In the same manner as in the operation example 26, the threshold values of the valley depths of saturation 0 and saturation 1 and saturation 0 and saturation 1 are obtained.

【0131】エッジ抽出部409は、第1段階として、
彩度0の谷の深さのしきい値以上の谷の深さを持つ彩度
0の谷点と、彩度1の谷の深さのしきい値以上の谷の深
さを持つ彩度1の谷点を検出する。図6の走査ライン1
2の場合、彩度0の谷の深さのしきい値は60、彩度1
の谷の深さのしきい値は15になるので、彩度0の谷点
としてc,d,eの3点が検出され、彩度1の谷点とし
てa,gの2点が検出される。
[0131] The edge extraction unit 409 performs the following steps:
A saturation 0 valley point with a valley depth greater than or equal to the saturation 0 valley depth threshold, and a saturation with a valley depth greater than or equal to the saturation 1 valley depth threshold The valley point of 1 is detected. Scan line 1 in FIG.
In the case of 2, the threshold value of the depth of the valley having a saturation of 0 is 60, and the saturation is 1
Since the threshold value of the depth of the valley becomes 15, three points c, d, and e are detected as the valley points of saturation 0, and two points a and g are detected as the valley points of saturation 1. You.

【0132】エッジ抽出部409は、第2段階として、
第1段階で検出した谷点よりエッジ候補点としての谷点
を抽出し、その座標を出力する。すなわち、彩度1の谷
点から、その両側の山点の中で高い側の方向について、
当該彩度1の谷点より高い最も近い彩度0の谷点を選
び、この彩度0の谷点をエッジ候補点とする。なお、彩
度1の谷点の高さをB1、彩度0の谷点の高さをB0と
した場合、 B1−B0<判定しきい値(ここでは5) (8) の条件を満たすときに、当該彩度0の谷点が当該彩度1
の谷点よりも高いと判断する。
The edge extraction unit 409 performs the following steps:
A valley point as an edge candidate point is extracted from the valley points detected in the first stage, and its coordinates are output. In other words, from the valley point of saturation 1 to the higher side of the peak points on both sides,
The nearest valley point of saturation 0 higher than the valley point of saturation 1 is selected, and this valley point of saturation 0 is set as an edge candidate point. When the height of the valley point of saturation 1 is B1 and the height of the valley point of saturation 0 is B0, when the condition of B1-B0 <judgment threshold (here, 5) (8) is satisfied The valley point of the saturation 0 is the saturation 1
Is determined to be higher than the valley point.

【0133】図6の走査ライン12の場合、彩度1の谷
点aは右側の山のほうが高いので、右方向にある最も近
い彩度0の谷点cに注目すると、B1−B0=0−5=
−5<5であるので、a点に対応するエッジ候補点とし
てc点が抽出される。彩度1の谷点gは左側の山のほう
が高いので、左方向にある最も近い彩度0の谷点eに注
目すると、B1−B0=0−1=−1<5であるので、
谷点eがエッジ候補点として抽出される。
In the case of the scanning line 12 in FIG. 6, the valley point a of the saturation 1 is higher in the right-hand mountain, so that attention is paid to the nearest valley point c of the saturation 0 in the right direction. -5 =
Since -5 <5, point c is extracted as an edge candidate point corresponding to point a. Since the valley point g of the saturation 1 is higher on the left mountain, the valley point e of the nearest saturation 0 in the left direction is B1-B0 = 0-1 = -1 <5.
The valley point e is extracted as an edge candidate point.

【0134】[動作例29]この動作例では、彩度0算
出部403、彩度0しきい値算出部406、平滑化部4
01、彩度1算出部404、彩度1しきい値算出部40
7、エッジ抽出部409が用いられる。
[Operation Example 29] In this operation example, the saturation 0 calculation section 403, the saturation 0 threshold value calculation section 406, and the smoothing section 4
01, saturation 1 calculator 404, saturation 1 threshold calculator 40
7. The edge extraction unit 409 is used.

【0135】前記動作例26と同様にして、彩度0と彩
度1、彩度0と彩度1の谷の深さのしきい値を求める。
In the same manner as in the operation example 26, the threshold values of the valley depths of saturation 0 and saturation 1 and saturation 0 and saturation 1 are obtained.

【0136】エッジ抽出部409は、第1段階として、
彩度0の谷の深さのしきい値以上の谷の深さを持つ彩度
0の谷点と、彩度1の谷の深さのしきい値以上の谷の深
さを持つ彩度1の谷点を検出する。図6の走査ライン1
2の場合、彩度0の谷の深さのしきい値は60、彩度1
の谷の深さのしきい値は15になるので、彩度0の谷点
としてc,d,eの3点が検出され、彩度1の谷点とし
てa,gの2点が検出される。
The edge extraction unit 409 performs the following steps:
A saturation 0 valley point with a valley depth greater than or equal to the saturation 0 valley depth threshold, and a saturation with a valley depth greater than or equal to the saturation 1 valley depth threshold The valley point of 1 is detected. Scan line 1 in FIG.
In the case of 2, the threshold value of the depth of the valley having a saturation of 0 is 60, and the saturation is 1
Since the threshold value of the depth of the valley becomes 15, three points c, d, and e are detected as the valley points of saturation 0, and two points a and g are detected as the valley points of saturation 1. You.

【0137】エッジ抽出部409は、第2段階として、
第1段階で検出した谷点よりエッジ候補点としての谷点
を抽出し、その座標を出力する。すなわち、彩度1の谷
点から、その両側の山の中で高い側の方向について、当
該彩度1の谷点より高いと判断される彩度0の谷点で、
注目している彩度1の谷点からの距離が所定のしきい値
(ここでは50)より小さいものを、エッジ候補点とす
る。彩度1の谷点より彩度0の谷点が高いとの判断は前
記(8)式による。
The edge extraction unit 409 performs the following steps:
A valley point as an edge candidate point is extracted from the valley points detected in the first stage, and its coordinates are output. That is, from the valley point of saturation 1 to the valley point of saturation 0 determined to be higher than the valley point of saturation 1,
An edge candidate point whose distance from the focused valley point of saturation 1 is smaller than a predetermined threshold value (here, 50) is determined. The determination that the valley point of saturation 0 is higher than the valley point of saturation 1 is based on the above equation (8).

【0138】図6の走査ライン12の場合、a点の右方
向にある、それより高いと判断される彩度0の谷点は
c,eの2点である。c点はa点からの距離が30で、
しきい値の50より小さいが、e点はa点からの距離が
585でしきい値50より大きい。よって、a点に対応
するエッジ候補点としてc点だけが抽出される。同様に
して、g点に対応したエッジ候補点として、左側のe点
が抽出される。
In the case of the scanning line 12 in FIG. 6, there are two c and e valley points to the right of point a, which are judged to be higher than the point a. Point c is 30 distance from point a,
Although smaller than the threshold value of 50, the point e is at a distance of 585 from the point a and is larger than the threshold value of 50. Therefore, only point c is extracted as an edge candidate point corresponding to point a. Similarly, point e on the left side is extracted as an edge candidate point corresponding to point g.

【0139】[動作例30]この動作例では、エッジ検
出装置400の全ての機能部が用いられる。
[Operation Example 30] In this operation example, all the functional units of the edge detection device 400 are used.

【0140】前記動作例26と同様にして、彩度0及び
彩度1の谷の深さのしきい値を求める。
In the same manner as in the operation example 26, the threshold value of the valley depth of the saturation 0 and the saturation 1 is obtained.

【0141】平滑化部402で入力RGBデータを平滑
化する。この平滑化のためのR,G,Bマスク処理で
は、平滑化部401で用いられるマスクサイズより小さ
いマスクを用いる。ここでは、19ドット幅のマスクを
用いるものとする。彩度2算出部405は、平滑化後の
RGBデータから彩度2を求める。図6の走査ライン1
2の彩度2は、図6の3段目に示すようになる。彩度2
しきい値算出部408は、彩度0しきい値算出部406
または彩度1しきい値算出部407と同様の方法によっ
て、彩度2データを基に彩度2の谷の深さのしきい値を
算出する。走査ライン6の場合には、このしきい値は1
5になる。
The smoothing section 402 smoothes the input RGB data. In this R, G, B mask processing for smoothing, a mask smaller than the mask size used in the smoothing unit 401 is used. Here, it is assumed that a mask having a width of 19 dots is used. The saturation 2 calculator 405 calculates the saturation 2 from the smoothed RGB data. Scan line 1 in FIG.
The saturation 2 of 2 is as shown in the third row of FIG. Saturation 2
The threshold value calculation unit 408 includes a saturation 0 threshold value calculation unit 406
Alternatively, a threshold value of the depth of the valley of saturation 2 is calculated based on the saturation 2 data by a method similar to that of the saturation 1 threshold value calculation unit 407. For scan line 6, this threshold is 1
It becomes 5.

【0142】エッジ抽出部409は、第1段階として、
彩度0の谷の深さのしきい値以上の谷の深さを持つ彩度
0の谷点、彩度1の谷の深さのしきい値以上の谷の深さ
を持つ彩度1の谷点、彩度2の谷の深さのしきい値以上
の谷の深さを持つ彩度2の谷点を検出する。図6の走査
ライン12の場合、彩度0の谷点としてc,d,eの3
点、彩度1の谷点としてa,gの2点、彩度2の谷点と
してb,d,fが検出される。
The edge extraction unit 409 performs a first step
A saturation 0 valley point with a valley depth greater than or equal to the saturation 0 valley depth threshold, and a saturation 1 with a valley depth greater than or equal to the saturation 1 valley depth threshold. And a valley point of saturation 2 having a valley depth greater than or equal to the threshold value of the valley depth of saturation 2 is detected. In the case of the scanning line 12 in FIG.
Points, two points a and g are detected as valley points of saturation 1, and b, d, and f are detected as valley points of saturation 2.

【0143】エッジ抽出部409は、第2段階として、
彩度1の各谷点について、その左右50ドットの範囲内
に、当該谷点より高いと判断される彩度2の谷点が存在
する場合、対応するエッジが存在すると判断する。な
お、注目する彩度1の谷点の彩度をB1、彩度2の谷点
の彩度をB2とし、 B1−B2<所定しきい値(ここでは5) (9) の条件を満たすときに、当該彩度2の谷点は当該彩度1
の谷点より高いと判断する。
The edge extraction unit 409 performs the following steps:
For each valley point of saturation 1, if there is a valley point of saturation 2 that is determined to be higher than the valley point within a range of 50 dots on the left and right sides, it is determined that a corresponding edge exists. When the saturation of the valley point of saturation 1 of interest is B1, the saturation of the valley point of saturation 2 is B2, and the condition of B1-B2 <predetermined threshold value (here, 5) (9) is satisfied. The valley point of the saturation 2 is the saturation 1
Is determined to be higher than the valley point.

【0144】彩度1の谷点aは、18ドット離れた彩度
2の谷点bがあり、(9)式の条件は0−0=0<5で
あって満足される。したがって、谷点a,bに対応エッ
ジが存在すると判断される。同様にして、谷点g,fに
ついても対応エッジが存在すると判断される。
The valley point a of saturation 1 has a valley point b of saturation 2 which is 18 dots away, and the condition of equation (9) is satisfied because 0-0 = 0 <5. Therefore, it is determined that a corresponding edge exists at the valley points a and b. Similarly, it is determined that the corresponding edge exists also in the valley points g and f.

【0145】エッジ抽出部409は、第3段階として、
第2段階によって対応エッジ有りと判断された彩度2の
谷点に注目し、その左右の山の高い方向にある彩度0の
谷点のうち、当該彩度2の谷点よりも高いと判断される
最も近いものをエッジ候補点として抽出し、その座標を
出力する。注目する彩度2の谷点の高さをB2、彩度0
の谷点の高さをB1とした場合、 B2−B0<所定しきい値(ここでは5) (10) の条件を満たすときに、当該彩度0の谷点を当該彩度2
の谷点より高いと判断する。
The edge extraction unit 409 performs the third step
Attention is paid to the valley point of saturation 2 determined to have a corresponding edge in the second stage, and if the valley point of saturation 0 is higher than the valley point of saturation 2 among the valley points of saturation 0 in the high direction of the left and right mountains. The closest one determined is extracted as an edge candidate point, and its coordinates are output. The height of the focused valley point of saturation 2 is B2, and the saturation is 0
When the height of the valley point of B is defined as B1, when the following condition is satisfied: B2−B0 <predetermined threshold value (here, 5) (10)
Is determined to be higher than the valley point.

【0146】対応エッジが存在すると判断された彩度2
の谷点bの場合、その右側の山のほうが高いので、右方
向にある彩度0の谷点について調べる。そうすると、c
点とe点がb点より高いので、最も近いc点がエッジ候
補点として抽出されることになる。同様に、彩度2の谷
点fについて行なうことにより、e点がエッジ候補点と
して抽出される。
Saturation 2 determined to have a corresponding edge
In the case of the valley point b, since the mountain on the right side is higher, the valley point of the saturation 0 in the right direction is examined. Then, c
Since the point and the point e are higher than the point b, the closest point c is extracted as an edge candidate point. Similarly, a point e is extracted as a candidate edge point by performing the processing on the valley point f of the saturation 2.

【0147】[動作例31]この動作例では、エッジ検
出装置400の全ての機能部が用いられる。
[Operation Example 31] In this operation example, all the functional units of the edge detection device 400 are used.

【0148】前記動作例30と同様にして、彩度0、彩
度1及び彩度2の谷の深さのしきい値を求める。
In the same manner as in the operation example 30, threshold values of the valley depths of saturation 0, saturation 1, and saturation 2 are obtained.

【0149】エッジ抽出部409において、第1段階
で、前記動作例30の第1段階と同様の方法で谷の深さ
がしきい値以上の彩度0、彩度1、彩度2の谷点を検出
する。図6の走査ライン12の場合、彩度0の谷点とし
てc,d,eの3点、彩度1の谷点としてa,gの2
点、彩度2の谷点としてb,d,fが検出される。
In the edge extraction unit 409, in the first stage, the valley points of the saturation 0, the saturation 1, and the saturation 2 where the depth of the valley is equal to or larger than the threshold value are determined in the same manner as in the first stage of the operation example 30. To detect. In the case of the scanning line 12 in FIG. 6, three valley points of saturation 0 are c, d, and e, and two valley points of saturation 1 are a and g.
B, d, and f are detected as the valley points of the point and the saturation 2.

【0150】第2段階で、彩度1の谷点から左右50ド
ットの範囲内に、当該彩度1の谷点より高いと判断され
る(この判断方法は前記動作例30と同じ)、彩度2の
谷点が存在した場合に、対応するエッジが存在すると判
断する。走査ライン12の場合、a,b点とg,f点に
対応するエッジがあると判断される。
In the second stage, it is determined that the valley point of saturation 1 is higher than the valley point of saturation 1 within a range of 50 dots on the left and right (this determination method is the same as in the operation example 30). If a valley point of degree 2 exists, it is determined that a corresponding edge exists. In the case of the scanning line 12, it is determined that there are edges corresponding to points a and b and points g and f.

【0151】第3段階で、対応するエッジがあると判断
された彩度2の谷点について、対応した彩度1の谷点と
反対の方向にある彩度0の谷点のうち、当該彩度2の谷
点より高いと判断される(この判断方法は前記実施例3
0と同じ)最も近いものを、エッジ候補点として抽出
し、その座標を出力する。図6の走査ライン12にあっ
ては、b点に対応する彩度1の谷点は左側のa点である
ので、b点の右方向にある彩度0の谷点c,d,eにつ
いて調べると、c,e点がb点より高いと判断される。
結果として、最も近いc点がエッジ候補点となる。f点
についても同様の処理を行なうことにより、e点がエッ
ジ候補点として抽出される。
In the third stage, among the valley points of saturation 2 for which it is determined that there is a corresponding edge, among the valley points of saturation 0 in the opposite direction to the corresponding valley point of saturation 1, It is determined that the valley point is higher than the valley point of degree 2.
The closest one (same as 0) is extracted as an edge candidate point, and its coordinates are output. In the scanning line 12 in FIG. 6, the valley point of saturation 1 corresponding to the point b is the point a on the left side. Upon examination, it is determined that points c and e are higher than point b.
As a result, the closest point c is an edge candidate point. By performing the same processing for point f, point e is extracted as an edge candidate point.

【0152】[0152]

【発明の効果】以上、詳細に説明した如く、本発明によ
れば、カラー画像データより、読み取り時の背景色と同
色または異色の地色を持つ紙片のエッジを検出すること
が可能となり、したがって、例えばカラーコピー機にお
いて、原稿のエッジ部の影やスキューを補正して複写原
稿の品質を改善することができる等の効果を達成できる
ものである。
As described above in detail, according to the present invention, it is possible to detect the edge of a paper piece having the same or different background color as the background color at the time of reading from color image data. For example, in a color copying machine, it is possible to achieve effects such as improving the quality of a copied document by correcting the shadow and skew at the edge of the document.

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

【図1】本発明の実施例1のブロック構成を示す。FIG. 1 shows a block configuration of a first embodiment of the present invention.

【図2】実施例1の説明のためのカラー画像の例と、そ
の一つの走査ラインにおける輝度及び彩度を示す。
FIG. 2 shows an example of a color image for explaining Embodiment 1 and luminance and chroma in one scanning line thereof.

【図3】輝度の谷の深さのヒストグラムの例を示す。FIG. 3 shows an example of a histogram of luminance valley depths.

【図4】彩度の谷の深さのヒストグラムの例を示す。FIG. 4 shows an example of a histogram of saturation valley depths.

【図5】本発明の実施例2のブロック構成を示す。FIG. 5 shows a block configuration of a second embodiment of the present invention.

【図6】実施例2の説明のためのカラー画像の例と、そ
の一つの走査ラインにおける彩度0,1,2を示す。
FIG. 6 shows an example of a color image for explaining Embodiment 2 and saturations 0, 1, and 2 in one scanning line thereof.

【図7】彩度0の谷の深さのヒストグラムの例を示す。FIG. 7 shows an example of a histogram of the depth of a valley having a saturation of 0;

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

100 カラー画像入力装置 200 エッジ検出装置 201 輝度算出部 202 彩度算出部 203 R色度算出部 204 G色度算出部 205 B色度算出部 206 輝度谷点抽出用しきい値算出部 207 輝度谷点抽出部 208 彩度しきい値算出部 209 R色度しきい値算出部 210 G色度しきい値算出部 211 B色度しきい値算出部 212 エッジ抽出部 300 カラー画像処理装置 400 エッジ検出装置 401 平滑化部(1) 402 平滑化部(2) 403 彩度0算出部 404 彩度1算出部 405 彩度2算出部 406 彩度0しきい値算出部 407 彩度1しきい値算出部 408 彩度2しきい値算出部 409 エッジ抽出部 REFERENCE SIGNS LIST 100 color image input device 200 edge detection device 201 luminance calculation unit 202 saturation calculation unit 203 R chromaticity calculation unit 204 G chromaticity calculation unit 205 B chromaticity calculation unit 206 threshold calculation unit for luminance valley point extraction 207 luminance valley Point extraction unit 208 Saturation threshold value calculation unit 209 R chromaticity threshold value calculation unit 210 G chromaticity threshold value calculation unit 211 B chromaticity threshold value calculation unit 212 Edge extraction unit 300 Color image processing device 400 Edge detection Apparatus 401 Smoothing unit (1) 402 Smoothing unit (2) 403 Saturation 0 calculation unit 404 Saturation 1 calculation unit 405 Saturation 2 calculation unit 406 Saturation 0 threshold value calculation unit 407 Saturation 1 threshold value calculation Section 408 saturation 2 threshold value calculation section 409 edge extraction section

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 7/00 - 7/60 G06T 1/00 H04N 1/04 H04N 1/46 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06T 7 /00-7/60 G06T 1/00 H04N 1/04 H04N 1/46

Claims (21)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 紙片の読み取りによって得られたカラー
画像データより輝度を求め、輝度の谷点の中でエッジ候
補点抽出条件を満足するものを紙片のエッジ候補点とし
て抽出するエッジ抽出方法であって、 カラー画像データより彩度または色度を求め、エッジ候
補点抽出条件に、輝度の谷点が彩度もしくは色度の山点
または谷点でないこと、を含むことを特徴とするエッジ
抽出方法。
1. A color obtained by reading a piece of paper
Calculate the brightness from the image data, and find the edge
Those satisfying the supplementary point extraction conditions are considered as edge candidate points of the paper chip.
Edge extraction method, which calculates saturation or chromaticity from color image data and
The valley point of luminance is the peak of saturation or chromaticity in the complement point extraction condition.
Or not a valley point.
Extraction method.
【請求項2】 紙片の読み取りによって得られたカラー
画像データより輝度を求め、輝度の谷点の中でエッジ候
補点抽出条件を満足するものを紙片のエッジ候補点とし
て抽出するエッジ抽出方法であって、 カラー画像データより彩度または色度を求め、エッジ候
補点抽出条件に、輝度の谷点が、あるしきい値より高い
彩度もしくは色度の山点でないこと、または、あるしき
い値より深い彩度もしくは色度の谷点でないこと、を含
むことを特徴とするエッジ抽出方法。
2. A color obtained by reading a piece of paper.
Calculate the brightness from the image data, and find the edge
Those satisfying the supplementary point extraction conditions are considered as edge candidate points of the paper chip.
Edge extraction method, which calculates saturation or chromaticity from color image data and
The valley point of luminance is higher than a certain threshold
Not a peak of saturation or chromaticity, or
Values that are not deeper than the saturation or chromaticity valley
An edge extraction method characterized in that
【請求項3】 請求項2記載のエッジ抽出方法におい
て、彩度もしくは色度の山点の高さまたは谷の深さのし
きい値を、彩度もしくは色度の山の高さまたは谷の深さ
の分布より決定することを特徴するエッジ抽出方法。
3. An edge extracting method according to claim 2, wherein
The height of the peaks or valleys of saturation or chromaticity
Set the threshold to the peak height or valley depth of saturation or chromaticity
Edge extraction method characterized in that it is determined from the distribution of the edge.
【請求項4】 紙片の読み取りによって得られたカラー
画像データより輝度を求め、輝度の谷点の中でエッジ候
補点抽出条件を満足するものを紙片のエッジ候補点とし
て抽出するエッジ抽出方法であって、 カラー画像データより彩度または色度を求め、エッジ候
補点抽出条件に、輝度の谷点での彩度または色度の傾き
が、あるしきい値より小さい、ことを含むことを特徴と
するエッジ抽出方法。
4. A color obtained by reading a sheet of paper.
Calculate the brightness from the image data, and find the edge
Those satisfying the supplementary point extraction conditions are considered as edge candidate points of the paper chip.
Edge extraction method, which calculates saturation or chromaticity from color image data and
Complement point extraction conditions include the saturation or chromaticity slope at the luminance valley point.
Is smaller than a certain threshold value.
Edge extraction method.
【請求項5】 請求項4記載のエッジ抽出方法におい
て、彩度または色度の傾きのしきい値を、彩度または色
度の傾きの分布より決定することを特徴とするエッジ抽
出方法。
5. An edge extracting method according to claim 4, wherein
The saturation or chromaticity slope threshold to
Edge extraction characterized by being determined from the gradient distribution of degrees
How to get out.
【請求項6】 請求項1乃至5のいずれか1項に記載の
エッジ抽出方法において、エッジ候補点抽出条件に、輝
度の谷点の両側の山の高さの差が、あるしきい値より小
さいこと、を含むことを特徴とするエッジ抽出方法。
6. The method according to claim 1, wherein
In the edge extraction method, the edge candidate
The difference between the peak heights on both sides of the degree valley point is smaller than a certain threshold
An edge extraction method characterized by including:
【請求項7】 請求項1乃至6のいずれか1項記載のエ
ッジ抽出方法において、エッジ候補点抽出条件に、輝度
の谷の幅が、あるしきい値より狭いこと、を含むことを
特徴とするエッジ抽出方法。
7. The method according to claim 1, wherein
In the edge extraction method, the edge candidate point extraction conditions include luminance
That the width of the valley is less than a certain threshold
Edge extraction method to be featured.
【請求項8】 請求項1乃至7のいずれか1項記載のエ
ッジ抽出方法において、エッジ候補点抽出条件に、輝度
の谷の深さが、あるしきい値より大きいこと、を含むこ
とを特徴とするエッジ抽出方法。
8. The method according to claim 1, wherein
In the edge extraction method, the edge candidate point extraction conditions include luminance
Valley depth greater than a certain threshold
And an edge extracting method.
【請求項9】 請求項8記載のエッジ抽出方法におい
て、輝度の谷の深さのしきい値を輝度の谷の深さの分布
より決定すること特徴とするエッジ抽出方法。
9. An edge extracting method according to claim 8, wherein
The threshold value of the luminance valley depth
An edge extraction method characterized by being further determined.
【請求項10】 紙片の読み取りによって得られたカラ
ー画像データより彩度を求め、彩度の谷点を紙片のエッ
ジ候補点として抽出するエッジ抽出方法であって、 エッジ候補点として抽出された彩度の谷点より、その両
側の彩度の山の高いほうの山の方向へ、あるオフセット
分だけ移動した点をエッジ候補点として抽出することを
特徴とするエッジ抽出方法。
10. A color obtained by reading a sheet of paper.
-Calculate the saturation from the image data.
An edge extraction method for extracting as a candidate edge point, wherein both of the saturation valley points extracted as the edge candidate point are determined.
A certain offset towards the higher peak of the side saturation peak
Extract points that have moved by minutes as edge candidate points.
Edge extraction method to be featured.
【請求項11】 請求項10記載のエッジ抽出方法にお
いて、彩度の谷点の深さが、あるしきい値より大きい彩
度の谷点を、エッジ候補点として抽出する彩度の谷点と
することを特徴するエッジ抽出方法。
11. The edge extracting method according to claim 10, wherein
And the depth of the saturation valley point is greater than a certain threshold
A valley point of saturation is extracted as a candidate point for an edge.
An edge extraction method characterized by:
【請求項12】 請求項11記載のエッジ抽出方法にお
いて、彩度の谷点の深さのしきい値を、彩度の谷点の深
さの分布より決定することを特徴とするエッジ抽出方
法。
12. An edge extracting method according to claim 11, wherein
And the threshold value of the saturation valley point depth is
Edge extraction method characterized by determining from distribution of height
Law.
【請求項13】 請求項10乃至12のいずれか1項記
載のエッジ抽出方法において、カラー画像データに平滑
化処理を施し、平滑化処理後のカラー画像データより彩
度を求めることを特徴とするエッジ抽出方法。
13. The method according to claim 10, wherein:
In the edge extraction method described above, color image data is smoothed
After the smoothing process, the color image data
An edge extraction method characterized by determining a degree.
【請求項14】 請求項13記載のエッジ抽出方法によ
ってエッジ候補点として抽出された彩度の谷点より、そ
の両側の彩度の山の高いほうの山の方向へ、該両側の彩
度の山の高さと平滑化処理に用いられるマスクのサイズ
とから決定したオフセット分だけ移動した点をエッジ候
補点として抽出することを特徴とするエッジ抽出方法。
14. A saturation valley point extracted as an edge candidate point by the edge extraction method according to claim 13 in the direction of a higher peak of the saturation peaks on both sides thereof. An edge extraction method characterized in that a point moved by an offset determined from a mountain height and a size of a mask used for smoothing processing is extracted as an edge candidate point.
【請求項15】 紙片の読み取りによって得られたカラ
ー画像データより、平滑化処理を施す前の彩度及び平滑
化処理を施した後の彩度(区別のために前者の彩度を彩
度0、後者の彩度を彩度1と呼ぶ)を求め、 あるしきい値以上の谷の深さを持つ彩度0の谷点、及
び、あるしきい値以上の谷の深さを持つ彩度1の谷点に
関して、彩度1の谷点に最も近い彩度0の谷点を紙片の
エッジ候補点として抽出することを特徴とするエッジ抽
出方法。
15. Saturation before performing smoothing processing and saturation after performing smoothing processing (for the distinction, the former saturation is defined as 0 saturation from the color image data obtained by reading the paper piece). , The latter saturation is referred to as saturation 1), and a saturation 0 valley point having a valley depth greater than or equal to a certain threshold, and a saturation having a valley depth greater than or equal to a certain threshold. An edge extraction method characterized by extracting a valley point having a saturation of 0 closest to a valley point of a saturation of 1 as a candidate point of an edge of a sheet of paper.
【請求項16】 紙片の読み取りによって得られたカラ
ー画像データより、平滑化処理を施す前の彩度及び平滑
化処理を施した後の彩度(区別のために前者の彩度を彩
度0、後者の彩度を彩度1と呼ぶ)を求め、 あるしきい値以上の谷の深さを持つ彩度0の谷点、及
び、あるしきい値以上の谷の深さを持つ彩度1の谷点に
関して、彩度1の谷点の両側の山の高いほうの山の方向
で、該彩度1の谷点に最も近い彩度0の谷点を紙片のエ
ッジ候補点として抽出することを特徴とするエッジ抽出
方法。
16. Saturation before smoothing processing and saturation after smoothing processing are performed based on color image data obtained by reading a sheet of paper. , The latter saturation is referred to as saturation 1), and a saturation 0 valley point having a valley depth greater than or equal to a certain threshold, and a saturation having a valley depth greater than or equal to a certain threshold. Regarding the valley point of 1, the valley point of saturation 0 closest to the valley point of saturation 1 is extracted as an edge candidate point of the sheet of paper in the direction of the highest ridge on both sides of the valley point of saturation 1. An edge extraction method characterized in that :
【請求項17】 紙片の読み取りによって得られたカラ
ー画像データより、平滑化処理を施す前の彩度及び平滑
化処理を施した後の彩度(区別のために前者の彩度を彩
度0、後者の彩度を彩度1と呼ぶ)を求め、 あるしきい値以上の谷の深さを持つ彩度0の谷点、及
び、あるしきい値以上の谷の深さを持つ彩度1の谷点に
関して、彩度1の谷点の両側の山の高いほうの山の方向
で、該彩度1の谷点に最も近い、該彩度1の谷点より高
い彩度0の谷点を紙片のエッジ候補点として抽出する
とを特徴とするエッジ抽出方法。
17. Saturation before smoothing processing and saturation after smoothing processing (for the sake of distinction, the former saturation is defined as 0 saturation from color image data obtained by reading a piece of paper). , The latter saturation is referred to as saturation 1), and a saturation 0 valley point having a valley depth greater than or equal to a certain threshold, and a saturation having a valley depth greater than or equal to a certain threshold. With respect to the valley point of 1, the valley of the saturation 0 that is higher than the valley point of the saturation 1 and is closest to the valley point of the saturation 1 in the direction of the higher ridge on both sides of the valley point of the saturation 1 this to extract a point as the edge candidate points of a piece of paper
And an edge extracting method.
【請求項18】 紙片の読み取りによって得られたカラ
ー画像データより、平滑化処理を施す前の彩度及び平滑
化処理を施した後の彩度(区別のために前者の彩度を彩
度0、後者の彩度を彩度1と呼ぶ)を求め、 あるしきい値以上の谷の深さを持つ彩度0の谷点、及
び、あるしきい値以上の谷の深さを持つ彩度1の谷点に
関して、彩度1の谷点の両側の山の高いほうの山の方向
で、該彩度1の谷点よりある距離範囲内にある、該彩度
1の谷点より高い彩度0の谷点を紙片のエッジ候補点と
して抽出することを特徴とするエッジ抽出方法。
18. Saturation before performing smoothing processing and saturation after performing smoothing processing (for the sake of distinction, the former saturation is defined as 0 saturation from color image data obtained by reading a sheet of paper). , The latter saturation is referred to as saturation 1), and a saturation 0 valley point having a valley depth greater than or equal to a certain threshold, and a saturation having a valley depth greater than or equal to a certain threshold. With respect to the valley point of 1, a color higher than the valley point of the saturation 1 within a certain distance range from the valley point of the saturation 1 in the direction of the highest peak on both sides of the valley point of the saturation 1 An edge extraction method characterized by extracting a valley point having a degree of 0 as an edge candidate point of a paper piece.
【請求項19】 紙片の読み取りによって得られたカラ
ー画像データより、平滑化処理を施す前の彩度、第1の
サイズのマスクを用いて平滑化処理を施した後の彩度、
及び該第1のマスクサイズより小さい第2のサイズのマ
スクを用いて平滑化した後の彩度(区別のため1番目の
彩度を彩度0、2番目の彩度を彩度1、3番目の彩度を
彩度2と呼ぶ)を求め、 あるしきい値以上の谷の深さを持つ彩度0の谷点、ある
しきい値以上の谷の深さを持つ彩度1の谷点、及び、あ
るしきい値以上の谷の深さを持つ彩度2の谷点に関し
て、彩度1の谷点のある距離範囲内に、該彩度1の谷点
より高いと判断される彩度2の谷点が存在するときに該
彩度1の谷点及び該彩度2の谷点に対応したエッジが存
在する谷点と判断し、 エッジが存在すると判断した彩度2の谷点の両側の山の
うち高い山の方向で、該彩度2の谷点より高いと判断さ
れる彩度0の谷点のうち、該彩度2の谷点に最も近いも
のを紙片のエッジ候補点として抽出することを特徴とす
エッジ抽出方法。
19. Saturation before performing a smoothing process, saturation after performing a smoothing process using a first size mask, based on color image data obtained by reading a sheet of paper,
And the saturation after smoothing using a mask of a second size smaller than the first mask size (the first saturation is saturation 0, and the second saturation is saturation 1, 3 The second saturation is referred to as saturation 2), and a saturation 0 valley point having a valley depth greater than or equal to a certain threshold, and a saturation 1 valley having a valley depth greater than or equal to a certain threshold value. A point and a valley point of saturation 2 having a valley depth greater than or equal to a certain threshold value are determined to be higher than the valley point of saturation 1 within a certain distance range of the valley point of saturation 1. When a valley point of saturation 2 exists, the valley point of saturation 2 is determined to be a valley point having an edge corresponding to the valley point of saturation 1 and the valley point of saturation 2, and it is determined that an edge exists. Among the peaks on both sides of the point, in the direction of the higher peak, the valley point of saturation 0 determined to be higher than the valley point of saturation 2, the one closest to the valley point of saturation 2 is defined as the edge of the sheet of paper. Candidate points and Be characterized in that the extraction Te
Edge extraction method that.
【請求項20】 紙片の読み取りによって得られたカラ
ー画像データより、平滑化処理を施す前の彩度、第1の
サイズのマスクを用いて平滑化処理を施した後の彩度、
及び該第1のマスクサイズより小さい第2のサイズのマ
スクを用いて平滑化した後の彩度(区別のため1番目の
彩度を彩度0、2番目の彩度を彩度1、3番目の彩度を
彩度2と呼ぶ)を求め、 あるしきい値以上の谷の深さを持つ彩度0の谷点、ある
しきい値以上の谷の深さを持つ彩度1の谷点、及び、あ
るしきい値以上の谷の深さを持つ彩度2の谷点に関し
て、彩度1の谷点のある距離範囲内に、該彩度1の谷点
より高いと判断される彩度2の谷点が存在するときに該
彩度1の谷点及び該彩度2の谷点に対応したエッジが存
在すると判断し、 エッジが存在すると判断した彩度2の谷点より、それに
対応した彩度1の谷点と反対の方向で、該彩度2の谷点
より高いと判断される最も近い彩度0の谷点を紙片のエ
ッジ候補点として抽出することを特徴とするエッジ抽出
方法。
20. Saturation before performing a smoothing process, saturation after performing a smoothing process using a first size mask, based on color image data obtained by reading a piece of paper,
And the saturation after smoothing using a mask of a second size smaller than the first mask size (the first saturation is saturation 0, and the second saturation is saturation 1, 3 The second saturation is referred to as saturation 2), and a saturation 0 valley point having a valley depth greater than or equal to a certain threshold, and a saturation 1 valley having a valley depth greater than or equal to a certain threshold value. A point and a valley point of saturation 2 having a valley depth greater than or equal to a certain threshold value are determined to be higher than the valley point of saturation 1 within a certain distance range of the valley point of saturation 1. When a valley point of saturation 2 exists, it is determined that there is an edge corresponding to the valley point of saturation 1 and the valley point of saturation 2, and from the valley point of saturation 2 that is determined to have an edge, in the opposite direction to the trough point of saturation 1 corresponding thereto, extracting the valley point of closest saturation 0 is judged to be higher than the valley point of該彩degree 2 as the edge candidate points paper Edge extraction method characterized.
【請求項21】 請求項15乃至20のいずれか1項に
記載のエッジ抽出方法において、彩度の谷点の深さのし
きい値を彩度の谷点の深さの分布より決定することを特
徴とするエッジ抽出方法。
21. The edge extraction method according to claim 15, wherein the threshold value of the depth of the saturation valley point is determined from the distribution of the saturation valley point depth. An edge extraction method characterized by the following.
JP04709793A 1993-03-09 1993-03-09 Edge extraction method Expired - Fee Related JP3260891B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04709793A JP3260891B2 (en) 1993-03-09 1993-03-09 Edge extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04709793A JP3260891B2 (en) 1993-03-09 1993-03-09 Edge extraction method

Publications (2)

Publication Number Publication Date
JPH06259550A JPH06259550A (en) 1994-09-16
JP3260891B2 true JP3260891B2 (en) 2002-02-25

Family

ID=12765687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04709793A Expired - Fee Related JP3260891B2 (en) 1993-03-09 1993-03-09 Edge extraction method

Country Status (1)

Country Link
JP (1) JP3260891B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001016447A (en) 1999-06-30 2001-01-19 Minolta Co Ltd Picture processor, picture processing method and recording medium with picture processing program stored therein
JP6354298B2 (en) * 2014-04-30 2018-07-11 株式会社リコー Image processing apparatus, image reading apparatus, image processing method, and image processing program

Also Published As

Publication number Publication date
JPH06259550A (en) 1994-09-16

Similar Documents

Publication Publication Date Title
US6570612B1 (en) System and method for color normalization of board images
JP4358193B2 (en) Automatic image cropping method
JP3768052B2 (en) Color image processing method, color image processing apparatus, and recording medium therefor
US6985631B2 (en) Systems and methods for automatically detecting a corner in a digitally captured image
US6956587B1 (en) Method of automatically cropping and adjusting scanned images
JP3618056B2 (en) Image processing device
KR20070008652A (en) Method for extracting raw data of a photographed image
US7680339B2 (en) Image processing method and apparatus for edge detection in an image
JP3862374B2 (en) Image processing apparatus and method
US7149349B2 (en) Scanning and detecting a number of images
JP3659426B2 (en) Edge detection method and edge detection apparatus
JP3260891B2 (en) Edge extraction method
JP2007189577A (en) Computer program, image input apparatus, image input system and image input method
JP2009152901A (en) Image processing device, and image processing method
JP3378439B2 (en) Form image creation device
KR20120042988A (en) Image processing method, image processing device, and program
JP4771087B2 (en) Image processing apparatus and image processing program
US20020154121A1 (en) Line segment detector
JP3830350B2 (en) Color image processing method, color image processing apparatus, program, and recording medium
WO2002056252A2 (en) Apparatus and method for boundary detection in vector sequences and edge detection in color image signals
JP2689893B2 (en) Method and apparatus for removing printed background
JP3146882B2 (en) Picture inspection method
AU2002301153B2 (en) Scanning and Detecting a Number of Images
JP2006507582A (en) Method for determining regions of interest in skin-pattern images
JP4428895B2 (en) Image processing apparatus, method, program, and recording medium

Legal Events

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