JP5633248B2 - Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program - Google Patents

Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program Download PDF

Info

Publication number
JP5633248B2
JP5633248B2 JP2010186600A JP2010186600A JP5633248B2 JP 5633248 B2 JP5633248 B2 JP 5633248B2 JP 2010186600 A JP2010186600 A JP 2010186600A JP 2010186600 A JP2010186600 A JP 2010186600A JP 5633248 B2 JP5633248 B2 JP 5633248B2
Authority
JP
Japan
Prior art keywords
signal
value
boundary
input
input signal
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.)
Active
Application number
JP2010186600A
Other languages
Japanese (ja)
Other versions
JP2012043379A (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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2010186600A priority Critical patent/JP5633248B2/en
Publication of JP2012043379A publication Critical patent/JP2012043379A/en
Application granted granted Critical
Publication of JP5633248B2 publication Critical patent/JP5633248B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、信号処理装置、欠陥検出装置、信号処理方法、欠陥検出方法およびプログラムに関する。   The present invention relates to a signal processing device, a defect detection device, a signal processing method, a defect detection method, and a program.

境界を有する信号をフィルタリングする場合がある。この場合、境界の近傍部分において適切にフィルタリングすることが困難である。そこで、従来、境界の近傍部分において、フィルタ係数を変形して境界の内側の値のみを用いてフィルタリングしたり、境界の外側を境界値と同一値の信号で埋めてフィルタリングしたりしている。   Signals with boundaries may be filtered. In this case, it is difficult to appropriately filter in the vicinity of the boundary. Therefore, conventionally, in the vicinity of the boundary, filtering is performed using only the value inside the boundary by modifying the filter coefficient, or filtering is performed by filling the outside of the boundary with a signal having the same value as the boundary value.

非特許文献1 サンマイクロシステムズ、"Programming in Java Advanced Imaging"(Chapter 7 Image Enhancement)、[online]、1999年11月、[平成22年8月20日検索]、インターネット〈URL:http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Image-enhance.doc.html〉
非特許文献2 WIKIPEDIA、"Extrapolation"、[online]、[平成22年8月20日検索]、インターネット〈URL:http://en.wikipedia.org/wiki/Extrapolation〉
Non-Patent Document 1 Sun Microsystems, "Programming in Java Advanced Imaging" (Chapter 7 Image Enhancement), [online], November 1999, [searched on August 20, 2010], Internet <URL: http: // java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Image-enhance.doc.html>
Non-Patent Document 2 WIKIPEDIA, "Extrapolation", [online], [searched on August 20, 2010], Internet <URL: http://en.wikipedia.org/wiki/Extrapolation>

しかし、境界部分に勾配をもった信号を上述の方法によりフィルタリングした場合、フィルタリングした後の信号が本来の値から大きく外れてしまい適切な結果を得ることができなかった。例えば、被検査物の撮像画像と当該撮像画像をローパスフィルタリングした画像との差分画像から被検査物の表面の欠陥を検出する処理が知られている。このような処理において、上述のフィルタリングをした場合、被検査物の周縁部分が適切にフィルタリングできずに、被検査物の周縁部分を欠陥であると判断してしまっていた。   However, when a signal having a gradient at the boundary portion is filtered by the above-described method, the filtered signal is greatly deviated from the original value, and an appropriate result cannot be obtained. For example, a process for detecting a defect on the surface of an inspection object from a difference image between a captured image of the inspection object and an image obtained by low-pass filtering the captured image is known. In such processing, when the above-described filtering is performed, the peripheral portion of the inspection object cannot be appropriately filtered, and the peripheral portion of the inspection object is determined to be a defect.

上記課題を解決するために、本発明の第1の態様においては、境界を有する2次元の入力信号をフィルタリングする信号処理装置であって、前記入力信号の領域外を補完する2次元の外挿信号を前記入力信号に基づき生成する外挿信号生成部と、前記外挿信号を前記入力信号の領域外に付加した補正信号を生成する信号付加部と、前記補正信号をフィルタリングするフィルタ部と、フィルタリングされた前記補正信号における前記入力信号に対応する領域を切り出した出力信号を生成して出力する出力部と、を備える信号処理装置、信号処理方法およびプログラムを提供する。   In order to solve the above-mentioned problem, in a first aspect of the present invention, a signal processing apparatus for filtering a two-dimensional input signal having a boundary, the two-dimensional extrapolation complementing outside the region of the input signal An extrapolation signal generation unit that generates a signal based on the input signal, a signal addition unit that generates a correction signal obtained by adding the extrapolation signal outside the region of the input signal, a filter unit that filters the correction signal, There is provided a signal processing device, a signal processing method, and a program including an output unit that generates and outputs an output signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal.

本発明の第2の態様においては、境界を有する1次元の入力信号をフィルタリングする信号処理装置であって、前記入力信号の領域外を補完する1次元の信号であって、各位置の値が、境界位置に対して対称の位置における入力信号の値を境界値を中心に反転した値である外挿信号を生成する外挿信号生成部と、前記外挿信号を前記入力信号の領域外に付加した補正信号を生成する信号付加部と、前記補正信号をフィルタリングするフィルタ部と、フィルタリングされた前記補正信号における前記入力信号に対応する領域を切り出した信号を生成して、生成した信号を出力信号として出力する出力部と、を備える信号処理装置、信号処理方法およびプログラムを提供する。   According to a second aspect of the present invention, there is provided a signal processing device for filtering a one-dimensional input signal having a boundary, wherein the signal is a one-dimensional signal that complements outside the region of the input signal, and the value of each position is An extrapolation signal generation unit that generates an extrapolation signal that is a value obtained by inverting the value of the input signal at a position symmetric with respect to the boundary position around the boundary value; and the extrapolation signal outside the area of the input signal. A signal adding unit for generating the added correction signal, a filter unit for filtering the correction signal, a signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal, and generating the generated signal A signal processing device, a signal processing method, and a program are provided.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   It should be noted that the above summary of the invention does not enumerate all the necessary features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

本実施形態に係る信号処理装置10の構成を示す。The structure of the signal processing apparatus 10 which concerns on this embodiment is shown. 本実施形態に係る信号処理装置10の処理フローを示す。The processing flow of the signal processing apparatus 10 which concerns on this embodiment is shown. 1次元の入力信号の一例を示す。An example of a one-dimensional input signal is shown. 外挿信号を入力信号の領域外に付加した補正信号の一例を示す。An example of the correction signal in which the extrapolation signal is added outside the area of the input signal is shown. 補正信号および補正信号をローパスフィルタリングした信号の一例を示す。2 shows an example of a correction signal and a signal obtained by low-pass filtering the correction signal. 本実施形態に係る欠陥検出装置30の構成を示す。The structure of the defect detection apparatus 30 which concerns on this embodiment is shown. 本実施形態に係る欠陥検出装置30の処理フローを示す。The processing flow of the defect detection apparatus 30 which concerns on this embodiment is shown. 撮像画像の一例、および、被検査物の境界位置を示す。An example of the captured image and the boundary position of the inspection object are shown. 外挿画像を撮像画像の領域外に付加した補正画像の一例を示す。An example of a corrected image in which an extrapolated image is added outside the region of the captured image is shown. ローパスフィルタリングされた補正画像の一例を示す。An example of a low-pass filtered corrected image is shown. 撮像画像からローパスフィルタリングされた補正画像を減じた差分画像の一例を示す。An example of a difference image obtained by subtracting a low-pass filtered correction image from a captured image is shown. 欠陥の検出結果の一例を示す。An example of the detection result of a defect is shown. 本実施形態に係るコンピュータ1900のハードウェア構成の一例を示す。2 shows an exemplary hardware configuration of a computer 1900 according to the present embodiment.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

図1は、本実施形態に係る信号処理装置10の構成を示す。信号処理装置10は、境界を有する入力信号をフィルタリングする。入力信号は、1次元の信号であってもよいし、画像等の2次元の信号であってもよいし、2次元以上の多次元の信号であってもよい。   FIG. 1 shows a configuration of a signal processing apparatus 10 according to the present embodiment. The signal processing device 10 filters an input signal having a boundary. The input signal may be a one-dimensional signal, a two-dimensional signal such as an image, or a two-dimensional or more multidimensional signal.

ここで、境界を有する入力信号とは、信号の一部分が連続せずに途切れた信号である。1次元の信号であれば、境界を有する入力信号は、一例として、マイナス方向またはプラス方向の少なくとも一方の端部が途切れた信号である。また、2次元の信号であれば、境界を有する入力信号は、一例として、円、三角形および四角形等の環状の境界を有する信号である。   Here, the input signal having a boundary is a signal in which a part of the signal is interrupted without being continuous. In the case of a one-dimensional signal, an input signal having a boundary is, for example, a signal in which at least one end in the minus direction or the plus direction is interrupted. In the case of a two-dimensional signal, an input signal having a boundary is, for example, a signal having a circular boundary such as a circle, a triangle, and a quadrangle.

信号処理装置10は、境界位置設定部12と、境界値設定部14と、外挿信号生成部16と、信号付加部18と、フィルタ部20と、出力部22とを備える。境界位置設定部12は、入力信号の境界位置を設定する。境界値設定部14は、入力信号の境界値を設定する。   The signal processing device 10 includes a boundary position setting unit 12, a boundary value setting unit 14, an extrapolation signal generation unit 16, a signal addition unit 18, a filter unit 20, and an output unit 22. The boundary position setting unit 12 sets the boundary position of the input signal. The boundary value setting unit 14 sets the boundary value of the input signal.

外挿信号生成部16は、入力信号の領域外を補完する外挿信号を入力信号に基づき生成する。外挿信号生成部16は、一例として、境界位置設定部12により設定された境界位置および境界値設定部14により設定された境界値に基づき外挿信号を生成する。   The extrapolation signal generation unit 16 generates an extrapolation signal that complements the area outside the input signal based on the input signal. As an example, the extrapolation signal generation unit 16 generates an extrapolation signal based on the boundary position set by the boundary position setting unit 12 and the boundary value set by the boundary value setting unit 14.

信号付加部18は、外挿信号生成部16により生成された外挿信号を入力信号の領域外に付加した補正信号を生成する。フィルタ部20は、信号付加部18により生成された補正信号をフィルタリングする。   The signal adding unit 18 generates a correction signal obtained by adding the extrapolation signal generated by the extrapolation signal generation unit 16 outside the area of the input signal. The filter unit 20 filters the correction signal generated by the signal adding unit 18.

出力部22は、フィルタ部20によりフィルタリングされた補正信号における入力信号に対応する領域を切り出して、信号を生成する。そして、出力部22は、切り出した信号を出力信号として出力する。   The output unit 22 cuts out a region corresponding to the input signal in the correction signal filtered by the filter unit 20 and generates a signal. And the output part 22 outputs the cut-out signal as an output signal.

図2は、本実施形態に係る信号処理装置10の処理フローを示す。図3は、1次元の入力信号の一例を示す。図4は、外挿信号を入力信号の領域外に付加した補正信号の一例を示す。図5は、補正信号および補正信号をローパスフィルタリングした信号の一例を示す。なお、図3から図5に示された各信号波形は、横軸(x軸)が1次元の信号の位置xを表し、縦軸(y軸)が信号の値(I(x))を表す。   FIG. 2 shows a processing flow of the signal processing apparatus 10 according to the present embodiment. FIG. 3 shows an example of a one-dimensional input signal. FIG. 4 shows an example of the correction signal obtained by adding the extrapolation signal outside the area of the input signal. FIG. 5 shows an example of a correction signal and a signal obtained by low-pass filtering the correction signal. In each signal waveform shown in FIGS. 3 to 5, the horizontal axis (x axis) represents the position x of the one-dimensional signal, and the vertical axis (y axis) represents the signal value (I (x)). Represent.

まず、ステップS11において、信号処理装置10は、フィルタリングの対象となる入力信号を入力する。図3の例においては、信号処理装置10は、1次元の信号であって、波形の左側(マイナス方向側)に境界を有する信号を入力する。なお、信号処理装置10は、波形の右側(プラス方向側)に境界を有する1次元の信号を入力してもよいし、波形の右側および左側の両方に境界を有する1次元の信号を入力してもよい。   First, in step S11, the signal processing apparatus 10 inputs an input signal to be filtered. In the example of FIG. 3, the signal processing apparatus 10 inputs a one-dimensional signal having a boundary on the left side (minus direction side) of the waveform. The signal processing apparatus 10 may input a one-dimensional signal having a boundary on the right side (plus direction side) of the waveform, or input a one-dimensional signal having a boundary on both the right side and the left side of the waveform. May be.

続いて、ステップS12において、境界位置設定部12は、入力信号における境界位置を設定する。境界位置設定部12は、一例として、入力信号の値の存在する領域(領域内)における末端の位置を検出し、検出した位置を境界位置として設定する。図3の例においては、境界位置設定部12は、1次元の信号の波形の左端の位置(x)を境界位置として設定する。なお、境界位置設定部12は、ユーザから指定された位置を境界位置として設定してもよい。 Subsequently, in step S12, the boundary position setting unit 12 sets a boundary position in the input signal. As an example, the boundary position setting unit 12 detects the position of the end in the region (in the region) where the value of the input signal exists, and sets the detected position as the boundary position. In the example of FIG. 3, the boundary position setting unit 12 sets the left end position (x 0 ) of the waveform of the one-dimensional signal as the boundary position. The boundary position setting unit 12 may set a position designated by the user as the boundary position.

続いて、ステップS13において、境界値設定部14は、入力信号の境界値を設定する。境界値設定部14は、一例として、入力信号の値の存在する領域(領域内)における末端の値を検出し、検出した値を境界値として設定する。図3の例においては、境界値設定部14は、1次元の信号の波形の左端の値(I)を境界値として設定する。 Subsequently, in step S13, the boundary value setting unit 14 sets a boundary value of the input signal. For example, the boundary value setting unit 14 detects a terminal value in a region (in the region) where the value of the input signal exists, and sets the detected value as a boundary value. In the example of FIG. 3, the boundary value setting unit 14 sets the value (I b ) at the left end of the one-dimensional signal waveform as the boundary value.

なお、境界値設定部14は、推定した境界値を設定してもよいし、検出した値を補正した値を境界値として設定してもよい。また、境界値設定部14は、ユーザから指定された値を境界値として設定してもよい。   The boundary value setting unit 14 may set the estimated boundary value, or may set a value obtained by correcting the detected value as the boundary value. The boundary value setting unit 14 may set a value designated by the user as the boundary value.

続いて、ステップS14において、外挿信号生成部16は、入力信号の領域外を補完する外挿信号を入力信号に基づき生成する。より具体的には、外挿信号生成部16は、入力信号の領域外を補完する信号であって、各位置の値が、境界位置に対して対称の位置における入力信号の値を境界値を中心に反転した値である外挿信号を生成する。即ち、外挿信号生成部16は、入力信号に対して境界位置を中心に位置の正負を反転し且つ境界値を中心に値の正負を反転した信号を、外挿信号として生成する。   Subsequently, in step S14, the extrapolation signal generation unit 16 generates an extrapolation signal that complements the area outside the input signal based on the input signal. More specifically, the extrapolation signal generation unit 16 is a signal that complements the area outside the input signal, and the value of each position is obtained by converting the value of the input signal at a position symmetrical to the boundary position to the boundary value. An extrapolated signal having a value inverted to the center is generated. That is, the extrapolation signal generation unit 16 generates a signal obtained by inverting the sign of the position around the boundary position with respect to the input signal and inverting the sign of the value around the boundary value as an extrapolation signal.

図4の例においては、外挿信号生成部16は、入力信号の左側(マイナス方向側)の領域外を補完するための、下記の式(1)により表される外挿信号(I(x))を生成する。 In the example of FIG. 4, the extrapolation signal generation unit 16 supplements the outside of the left side (minus direction side) region of the input signal with an extrapolation signal (I m ( x)).

(x)=2×I−I(2×x−x) …(1) I m (x) = 2 × I b −I (2 × x 0 −x) (1)

なお、式(1)において、Iは、境界値を表す。xは、境界位置を表す。I(x)は、境界位置xよりも左側(マイナス側)の各位置xにおける外挿信号の値を表す。I(x)は、位置xにおける入力信号の値を表す。 In the equation (1), I b represents a boundary value. x 0 represents the boundary position. I m (x) represents the value of No. outer挿信at each position x of the left side of the boundary position x 0 (minus side). I (x) represents the value of the input signal at position x.

即ち、図4の例において、外挿信号生成部16は、境界値(I)の2倍(2×I)から、境界位置(X)の2倍(2×X)から外挿信号の位置(x)を減じた位置(2×X−x)における入力信号の値(I(2×X−x))を減じた信号[2×I−I(2×x−x)]を、外挿信号[I(x)]として算出する。これにより、外挿信号生成部16は、入力信号の領域外に入力信号の境界から連続して自然に接続される外挿信号を生成することができる。 That is, in the example of FIG. 4, the extrapolation signal generation unit 16 performs an extrapolation from twice the boundary value (I b ) (2 × I b ) to twice the boundary position (X 0 ) (2 × X 0 ). The signal [2 × I b −I (2 × x) obtained by subtracting the value (I (2 × X 0 −x)) of the input signal at the position (2 × X 0 −x) obtained by subtracting the position (x) of the insertion signal. 0− x)] is calculated as an extrapolated signal [I m (x)]. Thereby, the extrapolation signal production | generation part 16 can produce | generate the extrapolation signal connected naturally from the boundary of an input signal outside the area | region of an input signal continuously.

続いて、ステップS15において、信号付加部18は、外挿信号生成部16により生成された外挿信号を入力信号の領域外に付加した補正信号を生成する。即ち、信号付加部18は、入力信号と外挿信号とを接続した信号を生成する。図4の例においては、信号付加部18は、境界位置(X)から右側(プラス方向側)の各位置においては、値がI(x)となり、境界位置(X)より左側(マイナス方向側)の各位置においては、値がI(x)となる補正信号を生成する。 Subsequently, in step S15, the signal adding unit 18 generates a correction signal in which the extrapolation signal generated by the extrapolation signal generation unit 16 is added outside the area of the input signal. That is, the signal adding unit 18 generates a signal obtained by connecting the input signal and the extrapolation signal. In the example of FIG. 4, the signal adding unit 18, in each position of the right side from the boundary position (X 0) (positive direction), the value I (x), and the boundary position (X 0) from the left side (minus At each position (direction side), a correction signal having a value of I m (x) is generated.

続いて、ステップS16において、フィルタ部20は、信号付加部18により生成された補正信号をフィルタリングする。図5の例においては、フィルタ部20は、補正信号をローパスフィルタリングする。なお、フィルタ部20は、ローパスフィルタリングに限らず、他のフィルタリング処理を行ってもよい。   Subsequently, in step S <b> 16, the filter unit 20 filters the correction signal generated by the signal adding unit 18. In the example of FIG. 5, the filter unit 20 performs low-pass filtering on the correction signal. The filter unit 20 is not limited to low-pass filtering, and may perform other filtering processing.

続いて、ステップS17において、出力部22は、フィルタリングされた補正信号における入力信号に対応する領域を切り出した出力信号を生成して出力する。図5の例においては、フィルタリングされた補正信号における、境界位置(X)から右側(プラス方向側)の各位置の値を表わす信号を出力信号として出力する。これにより、出力部22は、境界を有する入力信号を直接フィルタリングした場合と同一の範囲の信号を出力することができる。 Subsequently, in step S17, the output unit 22 generates and outputs an output signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal. In the example of FIG. 5, a signal representing the value of each position on the right side (plus direction side) from the boundary position (X 0 ) in the filtered correction signal is output as an output signal. Thereby, the output part 22 can output the signal of the same range as the case where the input signal which has a boundary is directly filtered.

以上のような信号処理装置10によれば、例えば境界部分に勾配をもった入力信号をフィルタリングした場合であっても、境界部分において適切なフィルタリングがされた信号を出力することができる。   According to the signal processing apparatus 10 as described above, even when an input signal having a gradient at the boundary portion is filtered, for example, a signal appropriately filtered at the boundary portion can be output.

なお、ステップS14では、外挿信号生成部16は、入力信号の領域外の全部を補完する外挿信号を生成するのではなく、領域外の一部を補完する外挿信号を生成してもよい。外挿信号生成部16は、一例として、境界位置(X)に対応する値をフィルタリング処理により算出するために必要な領域を補完する外挿信号を生成する。即ち、外挿信号生成部16は、一例として、フィルタ部20の係数長(フィルタの窓サイズ))に対応する信号長よりも少なくとも長い外挿信号を生成する。これにより、外挿信号生成部16は、外挿信号を生成するための演算量およびメモリ量等を少なくすることができる。 In step S14, the extrapolation signal generation unit 16 does not generate an extrapolation signal that complements the entire outside of the area of the input signal, but generates an extrapolation signal that complements a part of the outside of the area. Good. As an example, the extrapolation signal generation unit 16 generates an extrapolation signal that complements an area necessary for calculating a value corresponding to the boundary position (X 0 ) by filtering processing. In other words, as an example, the extrapolation signal generation unit 16 generates an extrapolation signal that is at least longer than the signal length corresponding to the coefficient length (filter window size) of the filter unit 20. Thereby, extrapolation signal generation part 16 can reduce the amount of operations, the amount of memory, etc. for generating an extrapolation signal.

図6は、本実施形態に係る欠陥検出装置30の構成を示す。欠陥検出装置30は、本実施形態に係る信号処理装置10の変形例であって、信号処理装置10と略同一の構成および機能を採る。従って、信号処理装置10が備える部材と略同一の構成および機能の部材に同一の符号を付け、以下相違点を除き説明を省略する。   FIG. 6 shows a configuration of the defect detection apparatus 30 according to the present embodiment. The defect detection device 30 is a modification of the signal processing device 10 according to the present embodiment, and has substantially the same configuration and function as the signal processing device 10. Accordingly, members having substantially the same configuration and function as members included in the signal processing device 10 are denoted by the same reference numerals, and description thereof will be omitted except for differences.

欠陥検出装置30は、入力画像として被検査物の表面を撮像した撮像画像を入力して、入力した撮像画像から被検査物の表面の欠陥を検出する。欠陥検出装置30は、入力部32と、境界位置設定部12と、境界値設定部14と、外挿信号生成部16と、信号付加部18と、フィルタ部20と、差分画像生成部34と、検出部36とを備える。   The defect detection device 30 inputs a captured image obtained by capturing the surface of the inspection object as an input image, and detects a defect on the surface of the inspection object from the input captured image. The defect detection device 30 includes an input unit 32, a boundary position setting unit 12, a boundary value setting unit 14, an extrapolation signal generation unit 16, a signal addition unit 18, a filter unit 20, and a difference image generation unit 34. And a detection unit 36.

入力部32は、被検査物を撮像した撮像画像を入力する。境界位置設定部12は、撮像画像における被検査物の境界位置を設定する。境界値設定部14は、撮像画像における被検査物の境界値を設定する。   The input unit 32 inputs a captured image obtained by capturing the inspection object. The boundary position setting unit 12 sets the boundary position of the inspection object in the captured image. The boundary value setting unit 14 sets the boundary value of the inspection object in the captured image.

外挿信号生成部16は、撮像画像の領域外を補完する外挿画像を、外挿画像の境界位置および境界値に基づき生成する。信号付加部18は、外挿画像を撮像画像の領域外に付加した補正画像を生成する。フィルタ部20は、補正画像をローパスフィルタリングする。   The extrapolation signal generation unit 16 generates an extrapolated image that complements the outside of the region of the captured image based on the boundary position and boundary value of the extrapolated image. The signal adding unit 18 generates a corrected image in which the extrapolated image is added outside the captured image area. The filter unit 20 performs low-pass filtering on the corrected image.

差分画像生成部34は、入力部32が入力した撮像画像とローパスフィルタリングされた補正画像との差分を表す差分画像を生成する。検出部36は、差分画像を解析して被検査物の欠陥を検出する。   The difference image generation unit 34 generates a difference image representing the difference between the captured image input by the input unit 32 and the corrected image subjected to low-pass filtering. The detection unit 36 analyzes the difference image and detects a defect of the inspection object.

図7は、本実施形態に係る欠陥検出装置30の処理フローを示す。図8は、撮像画像の一例、および、被検査物の境界位置を示す。図9は、外挿画像を撮像画像の領域外に付加した補正画像の一例を示す。図10は、ローパスフィルタリングされた補正画像の一例を示す。図11は、撮像画像からローパスフィルタリングされた補正画像を減じた差分画像の一例を示す。図12は、欠陥の検出結果の一例を示す。   FIG. 7 shows a processing flow of the defect detection apparatus 30 according to the present embodiment. FIG. 8 shows an example of a captured image and the boundary position of the inspection object. FIG. 9 shows an example of a corrected image in which an extrapolated image is added outside the region of the captured image. FIG. 10 shows an example of a low-pass filtered corrected image. FIG. 11 shows an example of a difference image obtained by subtracting a low-pass filtered correction image from a captured image. FIG. 12 shows an example of a defect detection result.

まず、ステップS21において、入力部32は、被検査物の表面を撮像した撮像画像を入力する。図8の例においては、入力部32は、観察用の台に載置された円形の被検査物の表面を撮像した撮像画像を入力する。   First, in step S21, the input unit 32 inputs a captured image obtained by imaging the surface of the inspection object. In the example of FIG. 8, the input unit 32 inputs a captured image obtained by capturing an image of the surface of a circular inspection object placed on an observation platform.

続いて、ステップS22において、境界位置設定部12は、撮像画像における境界位置を設定する。図8の例においては、境界位置設定部12は、撮像画像に映っている被検査物の周縁部分を境界位置として設定する。境界位置設定部12は、一例として、図8の点線で示されるように、撮像画像における輝度が大きく変化する箇所を結んだ円形の境界線を境界位置として設定する。   Subsequently, in step S22, the boundary position setting unit 12 sets the boundary position in the captured image. In the example of FIG. 8, the boundary position setting unit 12 sets the peripheral portion of the inspection object shown in the captured image as the boundary position. As an example, the boundary position setting unit 12 sets, as the boundary position, a circular boundary line connecting portions where the luminance in the captured image changes greatly, as indicated by a dotted line in FIG.

続いて、ステップS23において、境界値設定部14は、撮像画像における境界値を設定する。図8の例においては、境界値設定部14は、撮像画像に映っている被検査物の周縁部分の画素値を境界値として設定する。境界値設定部14は、一例として、図8の点線で示される円形の境界線上の画素値を境界値として設定する。   Subsequently, in step S23, the boundary value setting unit 14 sets a boundary value in the captured image. In the example of FIG. 8, the boundary value setting unit 14 sets the pixel value of the peripheral portion of the inspection object shown in the captured image as the boundary value. As an example, the boundary value setting unit 14 sets a pixel value on a circular boundary indicated by a dotted line in FIG. 8 as a boundary value.

なお、境界値設定部14は、撮像画像の境界の接線方向に沿って値を平均化することにより境界値を算出してもよい。例えば、図8の例においては、被検査物の周縁部分の位置を表す円状の境界線に沿って、画素値を平均化して境界値を算出する。   The boundary value setting unit 14 may calculate the boundary value by averaging the values along the tangential direction of the boundary of the captured image. For example, in the example of FIG. 8, the boundary value is calculated by averaging the pixel values along a circular boundary line representing the position of the peripheral portion of the inspection object.

続いて、ステップS24において、外挿信号生成部16は、撮像画像の領域外を補完する外挿画像を撮像画像に基づき生成する。より具体的には、外挿信号生成部16は、各ピクセル位置の値が、境界位置に対して対称のピクセル位置における撮像画像の値を境界値を中心に反転した値である外挿画像を生成する。   Subsequently, in step S24, the extrapolation signal generation unit 16 generates an extrapolated image that complements the outside of the region of the captured image based on the captured image. More specifically, the extrapolation signal generation unit 16 calculates an extrapolated image in which the value of each pixel position is a value obtained by inverting the value of the captured image at a pixel position symmetric with respect to the boundary position around the boundary value. Generate.

この場合において、外挿信号生成部16は、外挿画像の各ピクセル位置の値を、境界位置を結ぶ境界線を挟んで対称のピクセル位置における撮像画像の値に基づき生成する。即ち、外挿信号生成部16は、外挿画像の各ピクセル位置の値を、当該ピクセル位置から境界線に下ろした法線の延長線上であって、当該ピクセル位置から境界線までの距離と同一距離のピクセル位置における撮像画像の値に基づき生成する。   In this case, the extrapolation signal generation unit 16 generates the value of each pixel position of the extrapolated image based on the value of the captured image at the symmetric pixel position across the boundary line connecting the boundary positions. That is, the extrapolation signal generation unit 16 is an extension of the normal line obtained by dropping the value of each pixel position of the extrapolated image from the pixel position to the boundary line, and is the same as the distance from the pixel position to the boundary line. It generates based on the value of the captured image at the pixel position of the distance.

さらに、この場合において、外挿信号生成部16は、一例として、外挿画像における各ピクセル位置の値を、当該ピクセル位置に対して境界位置を挟んで対称のピクセル位置の周囲のピクセルの撮像画像の値に基づき算出する。例えば、外挿信号生成部16は、対応するピクセル位置に画素が存在しない場合には、そのピクセル位置の周囲の画素の値から補完して、そのピクセル位置の値を生成する。これにより、外挿信号生成部16は、精度良く外挿画像の各ピクセルの値を生成することができる。   Furthermore, in this case, the extrapolation signal generation unit 16 takes, as an example, a captured image of pixels around a symmetric pixel position with a boundary position with respect to the pixel position as a value of each pixel position in the extrapolated image. Calculate based on the value of. For example, when there is no pixel at the corresponding pixel position, the extrapolation signal generation unit 16 complements the values of the pixels around the pixel position and generates the value of the pixel position. Thereby, the extrapolation signal production | generation part 16 can produce | generate the value of each pixel of an extrapolation image with sufficient precision.

続いて、ステップS25において、信号付加部18は、外挿信号生成部16により生成された外挿画像を撮像画像の領域外に付加した補正画像を生成する。図9の例においては、信号付加部18は、撮像画像における被検査物の領域外の画像を、外挿画像に置き換えた補正画像を生成する。   Subsequently, in step S25, the signal adding unit 18 generates a corrected image in which the extrapolated image generated by the extrapolated signal generating unit 16 is added outside the region of the captured image. In the example of FIG. 9, the signal adding unit 18 generates a corrected image in which an image outside the region of the inspection object in the captured image is replaced with an extrapolated image.

続いて、ステップS26において、フィルタ部20は、信号付加部18により生成された補正画像をローパスフィルタリングする。図10の例においては、フィルタ部20は、補正画像に対してガウシアンフィルタをかける。ガウシアンフィルタは、下記の式(2)により定義される。   Subsequently, in step S26, the filter unit 20 performs low-pass filtering on the corrected image generated by the signal adding unit 18. In the example of FIG. 10, the filter unit 20 applies a Gaussian filter to the corrected image. The Gaussian filter is defined by the following equation (2).

フィルタ部20は、式(2)に表されるガウシアンフィルタと補正画像とのコンボリューションを演算することにより、補正画像をローパスフィルタリングする。なお、式(2)において、μは、フィルタの中心であり、x=μの場合においてf(x)が最大となる。また、σはフィルタの広がりを表す。   The filter unit 20 performs low-pass filtering on the corrected image by calculating the convolution of the Gaussian filter expressed in Equation (2) and the corrected image. In Expression (2), μ is the center of the filter, and f (x) is maximum when x = μ. Σ represents the spread of the filter.

続いて、ステップS27において、差分画像生成部34は、入力部32が入力した撮像画像と、フィルタ部20によりローパスフィルタリングされた補正画像との差分を表す差分画像を生成する。図11の差分画像は、図8に示された撮像画像から、図10に示されるローパスフィルタリングされた補正画像を減算した画像である。   Subsequently, in step S <b> 27, the difference image generation unit 34 generates a difference image representing a difference between the captured image input by the input unit 32 and the corrected image subjected to low-pass filtering by the filter unit 20. The difference image of FIG. 11 is an image obtained by subtracting the low-pass filtered corrected image shown in FIG. 10 from the captured image shown in FIG.

続いて、ステップS28において、検出部36は、差分画像生成部34により生成された差分画像を解析して被検査物の欠陥を検出する。図12の例においては、検出部36は、図11に示された差分画像を予め定められたしきい値により2値化して、値が1(図中の白の点)の部分を欠陥として特定する。   Subsequently, in step S <b> 28, the detection unit 36 analyzes the difference image generated by the difference image generation unit 34 and detects a defect of the inspection object. In the example of FIG. 12, the detection unit 36 binarizes the difference image shown in FIG. 11 with a predetermined threshold value, and sets a portion having a value of 1 (white point in the figure) as a defect. Identify.

以上のような欠陥検出装置30によれば、被検査物の境界部分において適切にローパスフィルタリングをかけることができる。従って、欠陥検出装置30によれば、被検査物の表面の欠陥を正確に検出することができる。   According to the defect detection apparatus 30 as described above, low-pass filtering can be appropriately applied at the boundary portion of the inspection object. Therefore, according to the defect detection device 30, it is possible to accurately detect defects on the surface of the inspection object.

図13は、本実施形態に係るコンピュータ1900のハードウェア構成の一例を示す。本実施形態に係るコンピュータ1900は、ホスト・コントローラ2082により相互に接続されるCPU2000、RAM2020、グラフィック・コントローラ2075、及び表示装置2080を有するCPU周辺部と、入出力コントローラ2084によりホスト・コントローラ2082に接続される通信インターフェイス2030、ハードディスクドライブ2040、及びCD−ROMドライブ2060を有する入出力部と、入出力コントローラ2084に接続されるROM2010、フレキシブルディスク・ドライブ2050、及び入出力チップ2070を有するレガシー入出力部とを備える。   FIG. 13 shows an example of a hardware configuration of a computer 1900 according to the present embodiment. A computer 1900 according to this embodiment is connected to a CPU peripheral unit having a CPU 2000, a RAM 2020, a graphic controller 2075, and a display device 2080 that are connected to each other by a host controller 2082, and to the host controller 2082 by an input / output controller 2084. Input / output unit having communication interface 2030, hard disk drive 2040, and CD-ROM drive 2060, and legacy input / output unit having ROM 2010, flexible disk drive 2050, and input / output chip 2070 connected to input / output controller 2084 With.

ホスト・コントローラ2082は、RAM2020と、高い転送レートでRAM2020をアクセスするCPU2000及びグラフィック・コントローラ2075とを接続する。CPU2000は、ROM2010及びRAM2020に格納されたプログラムに基づいて動作し、各部の制御を行う。グラフィック・コントローラ2075は、CPU2000等がRAM2020内に設けたフレーム・バッファ上に生成する画像データを取得し、表示装置2080上に表示させる。これに代えて、グラフィック・コントローラ2075は、CPU2000等が生成する画像データを格納するフレーム・バッファを、内部に含んでもよい。   The host controller 2082 connects the RAM 2020 to the CPU 2000 and the graphic controller 2075 that access the RAM 2020 at a high transfer rate. The CPU 2000 operates based on programs stored in the ROM 2010 and the RAM 2020 and controls each unit. The graphic controller 2075 acquires image data generated by the CPU 2000 or the like on a frame buffer provided in the RAM 2020 and displays it on the display device 2080. Instead of this, the graphic controller 2075 may include a frame buffer for storing image data generated by the CPU 2000 or the like.

入出力コントローラ2084は、ホスト・コントローラ2082と、比較的高速な入出力装置である通信インターフェイス2030、ハードディスクドライブ2040、CD−ROMドライブ2060を接続する。通信インターフェイス2030は、ネットワークを介して他の装置と通信する。ハードディスクドライブ2040は、コンピュータ1900内のCPU2000が使用するプログラム及びデータを格納する。CD−ROMドライブ2060は、CD−ROM2095からプログラム又はデータを読み取り、RAM2020を介してハードディスクドライブ2040に提供する。   The input / output controller 2084 connects the host controller 2082 to the communication interface 2030, the hard disk drive 2040, and the CD-ROM drive 2060, which are relatively high-speed input / output devices. The communication interface 2030 communicates with other devices via a network. The hard disk drive 2040 stores programs and data used by the CPU 2000 in the computer 1900. The CD-ROM drive 2060 reads a program or data from the CD-ROM 2095 and provides it to the hard disk drive 2040 via the RAM 2020.

また、入出力コントローラ2084には、ROM2010と、フレキシブルディスク・ドライブ2050、及び入出力チップ2070の比較的低速な入出力装置とが接続される。ROM2010は、コンピュータ1900が起動時に実行するブート・プログラム、及び/又は、コンピュータ1900のハードウェアに依存するプログラム等を格納する。フレキシブルディスク・ドライブ2050は、フレキシブルディスク2090からプログラム又はデータを読み取り、RAM2020を介してハードディスクドライブ2040に提供する。入出力チップ2070は、フレキシブルディスク・ドライブ2050を入出力コントローラ2084へと接続すると共に、例えばパラレル・ポート、シリアル・ポート、キーボード・ポート、マウス・ポート等を介して各種の入出力装置を入出力コントローラ2084へと接続する。   The input / output controller 2084 is connected to the ROM 2010, the flexible disk drive 2050, and the relatively low-speed input / output device of the input / output chip 2070. The ROM 2010 stores a boot program that the computer 1900 executes at startup and / or a program that depends on the hardware of the computer 1900. The flexible disk drive 2050 reads a program or data from the flexible disk 2090 and provides it to the hard disk drive 2040 via the RAM 2020. The input / output chip 2070 connects the flexible disk drive 2050 to the input / output controller 2084 and inputs / outputs various input / output devices via, for example, a parallel port, a serial port, a keyboard port, a mouse port, and the like. Connect to controller 2084.

RAM2020を介してハードディスクドライブ2040に提供されるプログラムは、フレキシブルディスク2090、CD−ROM2095、又はICカード等の記録媒体に格納されて利用者によって提供される。プログラムは、記録媒体から読み出され、RAM2020を介してコンピュータ1900内のハードディスクドライブ2040にインストールされ、CPU2000において実行される。   A program provided to the hard disk drive 2040 via the RAM 2020 is stored in a recording medium such as the flexible disk 2090, the CD-ROM 2095, or an IC card and provided by the user. The program is read from the recording medium, installed in the hard disk drive 2040 in the computer 1900 via the RAM 2020, and executed by the CPU 2000.

コンピュータ1900にインストールされ、コンピュータ1900を信号処理装置10として機能させるプログラムは、境界位置設定モジュールと、境界値設定モジュールと、外挿信号生成モジュールと、信号付加モジュールと、フィルタモジュールと、出力モジュールとを備える。これらのプログラム又はモジュールは、CPU2000等に働きかけて、コンピュータ1900を、境界位置設定部12、境界値設定部14、外挿信号生成部16、信号付加部18、フィルタ部20および出力部22としてそれぞれ機能させる。   A program that is installed in the computer 1900 and causes the computer 1900 to function as the signal processing device 10 includes a boundary position setting module, a boundary value setting module, an extrapolation signal generation module, a signal addition module, a filter module, and an output module. Is provided. These programs or modules work with the CPU 2000 or the like to make the computer 1900 into the boundary position setting unit 12, the boundary value setting unit 14, the extrapolation signal generation unit 16, the signal addition unit 18, the filter unit 20, and the output unit 22, respectively. Make it work.

これらのプログラムに記述された情報処理は、コンピュータ1900に読込まれることにより、ソフトウェアと上述した各種のハードウェア資源とが協働した具体的手段である境界位置設定部12、境界値設定部14、外挿信号生成部16、信号付加部18、フィルタ部20および出力部22として機能する。そして、これらの具体的手段によって、本実施形態におけるコンピュータ1900の使用目的に応じた情報の演算又は加工を実現することにより、使用目的に応じた特有の信号処理装置10が構築される。   The information processing described in these programs is read by the computer 1900, whereby the boundary position setting unit 12 and the boundary value setting unit 14 are specific means in which the software and the various hardware resources described above cooperate. , Function as extrapolation signal generation unit 16, signal addition unit 18, filter unit 20 and output unit 22. And the specific signal processing apparatus 10 according to the intended purpose is constructed | assembled by implement | achieving the calculation or processing of the information according to the intended purpose of the computer 1900 in this embodiment by these specific means.

また、コンピュータ1900にインストールされ、コンピュータ1900を欠陥検出装置30として機能させるプログラムは、入力モジュールと、境界位置設定モジュールと、境界値設定モジュールと、外挿信号生成モジュールと、信号付加モジュールと、フィルタモジュールと、差分画像生成モジュールと、検出モジュールとを備える。これらのプログラム又はモジュールは、CPU2000等に働きかけて、コンピュータ1900を、入力部32、境界位置設定部12、境界値設定部14、外挿信号生成部16、信号付加部18、フィルタ部20、差分画像生成部34および検出部36としてそれぞれ機能させる。   A program that is installed in the computer 1900 and causes the computer 1900 to function as the defect detection apparatus 30 includes an input module, a boundary position setting module, a boundary value setting module, an extrapolation signal generation module, a signal addition module, and a filter. A module, a difference image generation module, and a detection module; These programs or modules work on the CPU 2000 or the like to change the computer 1900 into the input unit 32, the boundary position setting unit 12, the boundary value setting unit 14, the extrapolation signal generation unit 16, the signal addition unit 18, the filter unit 20, and the difference. It functions as the image generation unit 34 and the detection unit 36, respectively.

これらのプログラムに記述された情報処理は、コンピュータ1900に読込まれることにより、ソフトウェアと上述した各種のハードウェア資源とが協働した具体的手段である入力部32、境界位置設定部12、境界値設定部14、外挿信号生成部16、信号付加部18、フィルタ部20、差分画像生成部34および検出部36として機能する。そして、これらの具体的手段によって、本実施形態におけるコンピュータ1900の使用目的に応じた情報の演算又は加工を実現することにより、使用目的に応じた特有の欠陥検出装置30が構築される。   The information processing described in these programs is read into the computer 1900, whereby the input unit 32, the boundary position setting unit 12, the boundary, which are specific means in which the software and the various hardware resources described above cooperate. It functions as the value setting unit 14, extrapolation signal generation unit 16, signal addition unit 18, filter unit 20, difference image generation unit 34, and detection unit 36. And the specific defect detection apparatus 30 according to the use purpose is constructed | assembled by implement | achieving the calculation or processing of the information according to the use purpose of the computer 1900 in this embodiment by these specific means.

一例として、コンピュータ1900と外部の装置等との間で通信を行う場合には、CPU2000は、RAM2020上にロードされた通信プログラムを実行し、通信プログラムに記述された処理内容に基づいて、通信インターフェイス2030に対して通信処理を指示する。通信インターフェイス2030は、CPU2000の制御を受けて、RAM2020、ハードディスクドライブ2040、フレキシブルディスク2090、又はCD−ROM2095等の記憶装置上に設けた送信バッファ領域等に記憶された送信データを読み出してネットワークへと送信し、もしくは、ネットワークから受信した受信データを記憶装置上に設けた受信バッファ領域等へと書き込む。このように、通信インターフェイス2030は、DMA(ダイレクト・メモリ・アクセス)方式により記憶装置との間で送受信データを転送してもよく、これに代えて、CPU2000が転送元の記憶装置又は通信インターフェイス2030からデータを読み出し、転送先の通信インターフェイス2030又は記憶装置へとデータを書き込むことにより送受信データを転送してもよい。   As an example, when communication is performed between the computer 1900 and an external device or the like, the CPU 2000 executes a communication program loaded on the RAM 2020 and executes a communication interface based on the processing content described in the communication program. A communication process is instructed to 2030. Under the control of the CPU 2000, the communication interface 2030 reads transmission data stored in a transmission buffer area or the like provided on a storage device such as the RAM 2020, the hard disk drive 2040, the flexible disk 2090, or the CD-ROM 2095, and sends it to the network. The reception data transmitted or received from the network is written into a reception buffer area or the like provided on the storage device. As described above, the communication interface 2030 may transfer transmission / reception data to / from the storage device by a DMA (direct memory access) method. Instead, the CPU 2000 transfers the storage device or the communication interface 2030 as a transfer source. The transmission / reception data may be transferred by reading the data from the data and writing the data to the communication interface 2030 or the storage device of the transfer destination.

また、CPU2000は、ハードディスクドライブ2040、CD−ROMドライブ2060(CD−ROM2095)、フレキシブルディスク・ドライブ2050(フレキシブルディスク2090)等の外部記憶装置に格納されたファイルまたはデータベース等の中から、全部または必要な部分をDMA転送等によりRAM2020へと読み込ませ、RAM2020上のデータに対して各種の処理を行う。そして、CPU2000は、処理を終えたデータを、DMA転送等により外部記憶装置へと書き戻す。このような処理において、RAM2020は、外部記憶装置の内容を一時的に保持するものとみなせるから、本実施形態においてはRAM2020および外部記憶装置等をメモリ、記憶部、または記憶装置等と総称する。本実施形態における各種のプログラム、データ、テーブル、データベース等の各種の情報は、このような記憶装置上に格納されて、情報処理の対象となる。なお、CPU2000は、RAM2020の一部をキャッシュメモリに保持し、キャッシュメモリ上で読み書きを行うこともできる。このような形態においても、キャッシュメモリはRAM2020の機能の一部を担うから、本実施形態においては、区別して示す場合を除き、キャッシュメモリもRAM2020、メモリ、及び/又は記憶装置に含まれるものとする。   The CPU 2000 is all or necessary from among files or databases stored in an external storage device such as a hard disk drive 2040, a CD-ROM drive 2060 (CD-ROM 2095), and a flexible disk drive 2050 (flexible disk 2090). This portion is read into the RAM 2020 by DMA transfer or the like, and various processes are performed on the data on the RAM 2020. Then, CPU 2000 writes the processed data back to the external storage device by DMA transfer or the like. In such processing, since the RAM 2020 can be regarded as temporarily holding the contents of the external storage device, in the present embodiment, the RAM 2020 and the external storage device are collectively referred to as a memory, a storage unit, or a storage device. Various types of information such as various programs, data, tables, and databases in the present embodiment are stored on such a storage device and are subjected to information processing. Note that the CPU 2000 can also store a part of the RAM 2020 in the cache memory and perform reading and writing on the cache memory. Even in such a form, the cache memory bears a part of the function of the RAM 2020. Therefore, in the present embodiment, the cache memory is also included in the RAM 2020, the memory, and / or the storage device unless otherwise indicated. To do.

また、CPU2000は、RAM2020から読み出したデータに対して、プログラムの命令列により指定された、本実施形態中に記載した各種の演算、情報の加工、条件判断、情報の検索・置換等を含む各種の処理を行い、RAM2020へと書き戻す。例えば、CPU2000は、条件判断を行う場合においては、本実施形態において示した各種の変数が、他の変数または定数と比較して、大きい、小さい、以上、以下、等しい等の条件を満たすかどうかを判断し、条件が成立した場合(又は不成立であった場合)に、異なる命令列へと分岐し、またはサブルーチンを呼び出す。   In addition, the CPU 2000 performs various operations, such as various operations, information processing, condition determination, information search / replacement, etc., described in the present embodiment, specified for the data read from the RAM 2020 by the instruction sequence of the program. Is written back to the RAM 2020. For example, when performing the condition determination, the CPU 2000 determines whether the various variables shown in the present embodiment satisfy the conditions such as large, small, above, below, equal, etc., compared to other variables or constants. When the condition is satisfied (or not satisfied), the program branches to a different instruction sequence or calls a subroutine.

また、CPU2000は、記憶装置内のファイルまたはデータベース等に格納された情報を検索することができる。例えば、第1属性の属性値に対し第2属性の属性値がそれぞれ対応付けられた複数のエントリが記憶装置に格納されている場合において、CPU2000は、記憶装置に格納されている複数のエントリの中から第1属性の属性値が指定された条件と一致するエントリを検索し、そのエントリに格納されている第2属性の属性値を読み出すことにより、所定の条件を満たす第1属性に対応付けられた第2属性の属性値を得ることができる。   Further, the CPU 2000 can search for information stored in a file or database in the storage device. For example, in the case where a plurality of entries in which the attribute value of the second attribute is associated with the attribute value of the first attribute are stored in the storage device, the CPU 2000 displays the plurality of entries stored in the storage device. The entry that matches the condition in which the attribute value of the first attribute is specified is retrieved, and the attribute value of the second attribute that is stored in the entry is read, thereby associating with the first attribute that satisfies the predetermined condition The attribute value of the specified second attribute can be obtained.

以上に示したプログラム又はモジュールは、外部の記録媒体に格納されてもよい。記録媒体としては、フレキシブルディスク2090、CD−ROM2095の他に、DVD又はCD等の光学記録媒体、MO等の光磁気記録媒体、テープ媒体、ICカード等の半導体メモリ等を用いることができる。また、専用通信ネットワーク又はインターネットに接続されたサーバシステムに設けたハードディスク又はRAM等の記憶装置を記録媒体として使用し、ネットワークを介してプログラムをコンピュータ1900に提供してもよい。   The program or module shown above may be stored in an external recording medium. As the recording medium, in addition to the flexible disk 2090 and the CD-ROM 2095, an optical recording medium such as DVD or CD, a magneto-optical recording medium such as MO, a tape medium, a semiconductor memory such as an IC card, and the like can be used. Further, a storage device such as a hard disk or RAM provided in a server system connected to a dedicated communication network or the Internet may be used as a recording medium, and the program may be provided to the computer 1900 via the network.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The order of execution of each process such as operations, procedures, steps, and stages in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that the output can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the description, and the drawings, even if it is described using “first”, “next”, etc. for convenience, it means that it is essential to carry out in this order. It is not a thing.

10 信号処理装置、12 境界位置設定部、14 境界値設定部、16 外挿信号生成部、18 信号付加部、20 フィルタ部、22 出力部、30 欠陥検出装置、32 入力部、34 差分画像生成部、36 検出部、1900 コンピュータ、2000 CPU、2010 ROM、2020 RAM、2030 通信インターフェイス、2040 ハードディスクドライブ、2050 フレキシブルディスク・ドライブ、2060 CD−ROMドライブ、2070 入出力チップ、2075 グラフィック・コントローラ、2080 表示装置、2082 ホスト・コントローラ、2084 入出力コントローラ、2090 フレキシブルディスク、2095 CD−ROM DESCRIPTION OF SYMBOLS 10 Signal processing apparatus, 12 Boundary position setting part, 14 Boundary value setting part, 16 Extrapolation signal generation part, 18 Signal addition part, 20 Filter part, 22 Output part, 30 Defect detection apparatus, 32 Input part, 34 Difference image generation Part, 36 detection part, 1900 computer, 2000 CPU, 2010 ROM, 2020 RAM, 2030 communication interface, 2040 hard disk drive, 2050 flexible disk drive, 2060 CD-ROM drive, 2070 input / output chip, 2075 graphic controller, 2080 display Device, 2082 Host controller, 2084 I / O controller, 2090 Flexible disk, 2095 CD-ROM

Claims (11)

境界を有する被検査物の画像を表す2次元の入力信号をフィルタリングする信号処理装置であって、
前記入力信号前記被検査物の領域の領域外を補完する2次元の外挿信号を前記入力信号に基づき生成する外挿信号生成部と、
前記外挿信号を前記入力信号の領域外に付加した補正信号を生成する信号付加部と、
前記補正信号をフィルタリングするフィルタ部と、
フィルタリングされた前記補正信号における前記入力信号に対応する領域を切り出した出力信号を生成して出力する出力部と、
を備え、
前記外挿信号生成部は、前記入力信号の領域外を補完する信号であって、各位置の値が、前記被検査物の周縁部分である境界位置に対して対称の位置における前記入力信号の値を境界値を中心に反転した値である外挿信号を生成する信号処理装置。
A signal processing device for filtering a two-dimensional input signal representing an image of an inspection object having a boundary,
An outer interpolation signal generating unit that generates based two-dimensional No. outer挿信to complement the region outside the region of the inspection object in the input signal to the input signal,
A signal adding unit that generates a correction signal by adding the extrapolation signal outside the region in the input signal;
A filter unit for filtering the correction signal;
An output unit that generates and outputs an output signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal;
With
The outer interpolation signal generating unit, said a signal that complements an area outside in the input signal, the value of each position, the input signal at the positions symmetrical with respect to the boundary position wherein a peripheral portion of the object A signal processing device that generates an extrapolated signal that is a value obtained by inverting the value of around the boundary value.
前記外挿信号生成部は、前記外挿信号の各位置の値を、前記入力信号の境界の接線方向に沿って平均化された境界値に基づき生成する
請求項1に記載の信号処理装置。
The signal processing apparatus according to claim 1, wherein the extrapolation signal generation unit generates a value at each position of the extrapolation signal based on a boundary value averaged along a tangential direction of a boundary of the input signal.
前記信号処理装置は、前記外挿信号として外挿画像を生成し、
前記外挿信号生成部は、前記外挿画像における各ピクセル位置の値を、入力画像の境界を結ぶ境界線を挟んで対称の位置における前記入力画像の値に基づき生成する
請求項1または2に記載の信号処理装置。
The signal processing device generates an extrapolated image as the extrapolated signal;
The extrapolation signal generation unit generates a value of each pixel position in the extrapolated image based on the value of the input image at a symmetrical position across a boundary line connecting the boundaries of the input image. The signal processing apparatus as described.
前記外挿信号生成部は、前記外挿画像における各ピクセル位置の値を、当該ピクセル位置に対して境界位置を挟んで対称の位置の周囲のピクセルの画素値に基づき算出する
請求項3に記載の信号処理装置。
The extrapolation signal generation unit calculates a value of each pixel position in the extrapolated image based on pixel values of pixels around a symmetric position with a boundary position sandwiched with respect to the pixel position. Signal processing equipment.
前記外挿信号生成部は、前記フィルタ部の係数長に対応する信号長よりも少なくとも長い外挿信号を生成する
請求項1から4の何れか1項に記載の信号処理装置。
5. The signal processing device according to claim 1, wherein the extrapolation signal generation unit generates an extrapolation signal that is at least longer than a signal length corresponding to a coefficient length of the filter unit.
信号の一部分が連続せずに端部が途切れた境界を有する1次元の入力信号をフィルタリングする信号処理装置であって、
前記入力信号の領域外を補完する1次元の信号であって、各位置の値が、境界位置に対して対称の位置における前記入力信号の値を境界値を中心に反転した値である外挿信号を生成する外挿信号生成部と、
前記外挿信号を前記入力信号の領域外に付加した補正信号を生成する信号付加部と、
前記補正信号をフィルタリングするフィルタ部と、
フィルタリングされた前記補正信号における前記入力信号に対応する領域を切り出した信号を生成して、生成した信号を出力信号として出力する出力部と、
を備える信号処理装置。
A signal processing apparatus for filtering a one-dimensional input signal having a boundary where a part of the signal is not continuous and the end is interrupted ,
A one-dimensional signal that complements an area outside in the input signal, outside the value of each position, a value obtained by inverting the value of the input signal around a boundary value at the position symmetrical with respect to the boundary position An extrapolation signal generator for generating an interpolation signal;
A signal adding unit that generates a correction signal by adding the extrapolation signal outside the region in the input signal;
A filter unit for filtering the correction signal;
An output unit that generates a signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal, and outputs the generated signal as an output signal;
A signal processing apparatus comprising:
被検査物を撮像した撮像画像を入力する入力部と、
前記被検査物の領域の領域外に前記外挿信号を付加された補正信号をローパスフィルタリングする請求項1から5の何れか1項に記載の信号処理装置と、
前記撮像画像とローパスフィルタリングされた画像との差分画像を生成する差分画像生成部と、
前記差分画像を解析して前記被検査物の欠陥を検出する検出部と、
を備える欠陥検出装置。
An input unit for inputting a captured image obtained by imaging the inspection object;
The signal processing device according to any one of claims 1 to 5, wherein the correction signal to which the extrapolation signal is added outside the region of the inspection object is low-pass filtered.
A difference image generation unit that generates a difference image between the captured image and the low-pass filtered image;
A detection unit for analyzing the difference image and detecting a defect of the inspection object;
A defect detection apparatus comprising:
境界を有する被検査物の画像を表す2次元の入力信号をフィルタリングする信号処理方法であって、
前記入力信号前記被検査物の領域の領域外を補完する2次元の外挿信号を前記入力信号に基づき生成する段階と、
前記外挿信号を前記入力信号の領域外に付加した補正信号を生成する段階と、
前記補正信号をフィルタリングする段階と、
フィルタリングされた前記補正信号における前記入力信号に対応する領域を切り出した出力信号を生成して出力する段階と
を備え、
前記外挿信号は、前記入力信号の領域外を補完する信号であって、各位置の値が、前記被検査物の周縁部分である境界位置に対して対称の位置における前記入力信号の値を境界値を中心に反転した値である信号処理方法。
A signal processing method for filtering a two-dimensional input signal representing an image of an inspection object having a boundary,
And generating, based the two-dimensional No. outer挿信to complement the region outside the region of the inspection object in the input signal to the input signal,
Generating a correction signal by adding the extrapolation signal outside the region in the input signal;
Filtering the correction signal;
Generating and outputting an output signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal, and
The outer interpolation signal is a signal for complementing the area outside in the input signal, the value of each position, the value of the input signal at the positions symmetrical with respect to the boundary position is peripheral portion of the object A signal processing method that is a value obtained by inverting the centering on the boundary value.
信号の一部分が連続せずに端部が途切れた境界を有する1次元の入力信号をフィルタリングする信号処理方法であって、
前記入力信号の領域外を補完する1次元の信号であって、各位置の値が、境界位置に対して対称の位置における前記入力信号の値を境界値を中心に反転した値である外挿信号を生成し、
前記外挿信号を前記入力信号の領域外に付加した補正信号を生成し、
前記補正信号をフィルタリングし、
フィルタリングされた前記補正信号における前記入力信号に対応する領域を切り出した信号を生成して、生成した信号を出力信号として出力する信号処理方法。
A signal processing method for filtering a one-dimensional input signal having a boundary where a part of the signal is not continuous and the end is interrupted ,
A one-dimensional signal that complements an area outside in the input signal, outside the value of each position, a value obtained by inverting the value of the input signal around a boundary value at the position symmetrical with respect to the boundary position Generate the interpolated signal,
Generate a correction signal by adding the extrapolation signal outside the region in the input signal,
Filtering the correction signal;
A signal processing method for generating a signal obtained by cutting out a region corresponding to the input signal in the filtered correction signal, and outputting the generated signal as an output signal.
被検査物を撮像した撮像画像を入力し、
請求項8に記載の信号処理方法により、前記撮像画像における前記被検査物を含む領域を前記入力信号としてローパスフィルタリングし、
前記撮像画像とローパスフィルタリングされた画像との差分画像を生成し、
前記差分画像を解析して前記被検査物の欠陥を検出する
欠陥検出方法。
Input a captured image of the inspected object,
According to the signal processing method of claim 8, low-pass filtering a region including the inspection object in the captured image as the input signal,
Generating a difference image between the captured image and the low-pass filtered image;
A defect detection method for detecting a defect of the inspection object by analyzing the difference image.
コンピュータを請求項1から7の何れか1項に記載の装置として機能させるプログラム。   A program that causes a computer to function as the apparatus according to any one of claims 1 to 7.
JP2010186600A 2010-08-23 2010-08-23 Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program Active JP5633248B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010186600A JP5633248B2 (en) 2010-08-23 2010-08-23 Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010186600A JP5633248B2 (en) 2010-08-23 2010-08-23 Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program

Publications (2)

Publication Number Publication Date
JP2012043379A JP2012043379A (en) 2012-03-01
JP5633248B2 true JP5633248B2 (en) 2014-12-03

Family

ID=45899562

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010186600A Active JP5633248B2 (en) 2010-08-23 2010-08-23 Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program

Country Status (1)

Country Link
JP (1) JP5633248B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6390746B2 (en) * 2016-09-01 2018-09-19 カシオ計算機株式会社 Diagnosis support apparatus, image processing method and program in diagnosis support apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3695120B2 (en) * 1998-03-10 2005-09-14 セイコーエプソン株式会社 Defect inspection method
JP2002150281A (en) * 2000-11-16 2002-05-24 Sony Corp Image compression processing device and method
JP4244046B2 (en) * 2004-11-02 2009-03-25 パナソニック株式会社 Image processing method and image processing apparatus

Also Published As

Publication number Publication date
JP2012043379A (en) 2012-03-01

Similar Documents

Publication Publication Date Title
CN110163786B (en) Method, device and equipment for removing watermark
CN104424482A (en) Image processing apparatus and image processing method
JP2011259314A (en) Imaging device, image processing device, and program
US20120054724A1 (en) Incremental static analysis
US20150255024A1 (en) Liquid crystal display method and liquid crystal display device
JP5633248B2 (en) Signal processing apparatus, defect detection apparatus, signal processing method, defect detection method, and program
CN100353381C (en) Image inspecting apparatus, image inspecting method, control program and computer-readable storage medium
US20210319583A1 (en) Eye information estimate apparatus, eye information estimate method, and program
US8867837B2 (en) Detecting separator lines in a web page
CN110880023A (en) Method and device for detecting certificate picture
JP2013205320A (en) Inspection condition determination method, inspection method, and inspection device
JP6137464B2 (en) Image processing apparatus and image processing program
JP2016045929A (en) Method and apparatus for scanning files
JP2007199865A (en) Image processing algorithm evaluation apparatus, image processing algorithm creation apparatus, image inspection apparatus, method for evaluating image processing algorithm, method for creating image processing algorithm, and method for inspecting image
CN114241036A (en) Method and device for determining transparent band boundary, electronic equipment and storage medium
JP2010281754A (en) Generating apparatus, inspection apparatus, program, and generation method
JP2011141664A (en) Device, method and program for comparing document
CN111898641A (en) Target model detection device, electronic equipment and computer readable storage medium
US20190087931A1 (en) Image processing apparatus and image processing method
US8495033B2 (en) Data processing
CN116485350B (en) Intelligent production system of medium borosilicate glass based on image recognition
JP6430086B1 (en) Image providing apparatus, image providing method, and image providing program
JP2009250809A (en) Flaw extraction device, method and program
JPWO2018123065A1 (en) Program analysis apparatus, program analysis system, program analysis method, and analysis program
JP4925711B2 (en) Batch registration information generation apparatus, batch registration information generation method, and batch registration information generation program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130704

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140212

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140402

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140520

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140702

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140916

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140929

R150 Certificate of patent or registration of utility model

Ref document number: 5633248

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250