JP2006266752A - Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program - Google Patents

Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program Download PDF

Info

Publication number
JP2006266752A
JP2006266752A JP2005082418A JP2005082418A JP2006266752A JP 2006266752 A JP2006266752 A JP 2006266752A JP 2005082418 A JP2005082418 A JP 2005082418A JP 2005082418 A JP2005082418 A JP 2005082418A JP 2006266752 A JP2006266752 A JP 2006266752A
Authority
JP
Japan
Prior art keywords
defect
pixel
evaluation target
defect type
image data
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.)
Withdrawn
Application number
JP2005082418A
Other languages
Japanese (ja)
Inventor
Takushi Murakami
拓史 村上
Koichi Kojima
広一 小島
Hironari Ichikawa
裕也 市川
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005082418A priority Critical patent/JP2006266752A/en
Publication of JP2006266752A publication Critical patent/JP2006266752A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Testing Of Optical Devices Or Fibers (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an optical panel inspection method capable of performing properly rank determination based on only display defects having a prescribed area or more. <P>SOLUTION: An image by a liquid crystal panel is imaged, to thereby acquire image data (inspection image acquisition process). Brightness data of each pixel of a point defect or a strain defect having a smaller area than an irregular defect in the image data acquired in the inspection image acquisition process is replaced with an interpolation value based on brightness data of a peripheral pixel, to thereby repair the non-evaluation object defect species (point/strain defect repair process ST200). An irregular defect is detected in image data wherein the point/strain defect is repaired in the point/strain defect repair process ST200 (irregular defect detection process ST300). Rank determination of the liquid crystal panel is performed based on a defect area of the irregular defect and average brightness detected in the irregular defect detection process (ST300) (rank determination process ST400). <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、欠陥検出方法、欠陥検査方法、欠陥検出装置、欠陥検査装置、欠陥検出プログラムおよびこのプログラムを記録した記録媒体に関する。例えば、液晶パネル等の光学パネルを検査するにあたって、所定面積以上の表示欠陥であるムラ欠陥を検出する方法等に関する。   The present invention relates to a defect detection method, a defect inspection method, a defect detection apparatus, a defect inspection apparatus, a defect detection program, and a recording medium on which the program is recorded. For example, when inspecting an optical panel such as a liquid crystal panel, the present invention relates to a method for detecting a mura defect which is a display defect having a predetermined area or more.

画像を表示する光学パネルとして、表示面上の各画素に配置された液晶セルを有し、液晶セルへの印加電圧が制御されることによって表示制御が行われる液晶パネルが知られている。
このような液晶パネルにあっては、液晶セルの厚みのばらつきなどにより輝度ムラ等の表示欠陥が生じることがあるので、製造過程において液晶パネルに表示欠陥が生じていないか等を検査する画像表示検査が行われる。
従来、液晶パネルの画像表示検査にあっては、実際に人間が目視して欠陥の有無を判断していたが、近年では、生産量の増大や検査効率の向上のために人間の目によらない自動検査が行われるようになってきている(特許文献1)。
As an optical panel for displaying an image, a liquid crystal panel having a liquid crystal cell disposed in each pixel on a display surface and performing display control by controlling a voltage applied to the liquid crystal cell is known.
In such a liquid crystal panel, display defects such as luminance unevenness may occur due to variations in the thickness of the liquid crystal cell, etc., so an image display for inspecting the liquid crystal panel for display defects during the manufacturing process, etc. Inspection is performed.
Conventionally, in an image display inspection of a liquid crystal panel, humans have actually visually checked the presence or absence of defects. However, in recent years, in order to increase the production amount and improve the inspection efficiency, the human eyes No automatic inspection has been performed (Patent Document 1).

自動検査にあたっては、例えば、液晶パネルの表示画像をCCDカメラで撮像し、この撮像データに基づいて画素ごとの輝度を算出する。さらに、表示画像全体に所定の欠陥強調フィルタをかけて、周囲の画素との輝度差を強調した強調輝度値を画素ごとに算出する。そして、画素ごとの強調輝度値に基づいて、周囲に対して所定閾値以上の輝度差を有する画素が所定数以上に存在する領域を、表示欠陥として検出する。   In the automatic inspection, for example, a display image on the liquid crystal panel is picked up by a CCD camera, and the luminance for each pixel is calculated based on the picked-up data. Further, a predetermined defect emphasis filter is applied to the entire display image, and an emphasis luminance value that emphasizes a luminance difference from surrounding pixels is calculated for each pixel. Then, based on the emphasized luminance value for each pixel, an area where a predetermined number or more of pixels having a luminance difference equal to or greater than a predetermined threshold with respect to the surroundings is detected as a display defect.

ここで、検出の対象となる表示欠陥としては、点欠陥710、シミ欠陥720、ムラ欠陥730などが知られている。図25は、点欠陥710、シミ欠陥720、ムラ欠陥730の例を示す図である。
点欠陥710とは、点状であってその面積は極めて小さいが(1画素〜5画素程度)、コントラストが非常に高い欠陥である。点欠陥710としては、周囲よりも輝度が高い輝点欠陥711と、周囲よりも輝度が低い黒点欠陥がある。
シミ欠陥とは、点欠陥710に比べて面積が大きい欠陥であって(直径が48画素程度まで)、コントラストの高いシミ欠陥からコントラストの低いシミ欠陥まで多様である。シミ欠陥としては、周囲よりも輝度が高い白シミ欠陥と、周囲よりも輝度が低い黒シミ欠陥と、がある。
ムラ欠陥730とは、面積が比較的大きく、コントラストの高いムラ欠陥からコントラストの低いムラ欠陥まで多様である。ムラ欠陥730としては、周囲よりも輝度の高い白ムラ欠陥と、周囲よりも輝度が低い黒ムラ欠陥と、がある。
Here, point defects 710, spot defects 720, unevenness defects 730, and the like are known as display defects to be detected. FIG. 25 is a diagram illustrating an example of a point defect 710, a spot defect 720, and a mura defect 730.
A point defect 710 is a defect having a very high contrast although it has a dot shape and an extremely small area (about 1 to 5 pixels). As the point defect 710, there are a bright spot defect 711 having higher luminance than the surroundings and a black point defect having lower luminance than the surroundings.
The spot defect is a defect having a larger area than that of the point defect 710 (up to about 48 pixels in diameter), and varies from a high-contrast stain defect to a low-contrast stain defect. As the spot defect, there are a white spot defect having a higher brightness than the surroundings and a black spot defect having a lower brightness than the surroundings.
The mura defect 730 has a relatively large area and varies from a mura defect having a high contrast to a mura defect having a low contrast. As the mura defect 730, there are a white mura defect having higher luminance than the surroundings and a black mura defect having lower luminance than the surroundings.

このように各欠陥が検出されると、欠陥の面積、コントラスト等の要素が総合的に判断されて、その液晶パネルの良/不良の判定、さらには良品のなかでもA〜Dのランク付けなどの判定が行われる。   When each defect is detected in this way, factors such as the area of the defect and contrast are comprehensively determined to determine whether the liquid crystal panel is good or bad, and rank A to D among non-defective products. Is determined.

このような良/不良判定およびランク付けは実際のユーザーが表示画面を見たときの印象に近似した判断となることが必要であって、例えば、欠陥のコントラストが低くても欠陥の面積が大きければ、ユーザーの見た目には大きな欠陥が目立つので、このような液晶パネルは不良品である。その一方、欠陥のコントラストが多少高くても欠陥の面積が小さければ欠陥が目立たないので良品と判断される。   Such good / bad judgment and ranking need to be a judgment that approximates an impression when an actual user looks at the display screen. For example, even if the defect contrast is low, the defect area is large. For example, since a large defect is conspicuous in the appearance of the user, such a liquid crystal panel is a defective product. On the other hand, even if the defect contrast is somewhat high, if the defect area is small, the defect is not conspicuous, and is judged as a non-defective product.

例えば、図26は、このような判定閾値として欠陥の面積とコントラストとの関係から設定された閾値曲線610の一例である。
検出された欠陥の面積およびコントラストはグラフ610(図26)上にプロットされ、検査対象である液晶パネルが良品範囲であるか、さらには、良品範囲である場合にAランクからDランクのどの領域に該当するかが判定される。
For example, FIG. 26 shows an example of a threshold curve 610 set as the determination threshold based on the relationship between the defect area and contrast.
The area and contrast of the detected defects are plotted on a graph 610 (FIG. 26), and whether the liquid crystal panel to be inspected is in the non-defective range or, in the case of the non-defective range, which region from A rank to D rank Is determined.

特開2004−212311号公報JP 2004-212311 A

液晶パネルの表示画面に生じる欠陥の態様としては、ムラ欠陥730と点欠陥710とが重なったり、あるいは、ムラ欠陥730とシミ欠陥720とが重なったりして、ムラ欠陥730の領域内に点欠陥710やシミ欠陥720が存在する場合ある。
例えば、白ムラ欠陥731内に白シミ欠陥721が入っていたり(図27中のA)、白ムラ欠陥731内に黒シミ欠陥722が入っていたり(図27中のB)、黒ムラ欠陥732に輝点欠陥711が入っていたりする場合がある(図27中のC)。
そして、このようにムラ欠陥730と点・シミ欠陥(710、720)とが重なっていても、欠陥強調フィルタにより欠陥検出を行うと、ムラ欠陥730の領域、シミ欠陥720の領域、点欠陥710の領域をそれぞれ検出することはできる。
As an aspect of the defect generated on the display screen of the liquid crystal panel, the mura defect 730 and the point defect 710 overlap each other, or the mura defect 730 and the spot defect 720 overlap each other, so that the point defect is within the mura defect 730 region. 710 and a spot defect 720 may exist.
For example, the white spot defect 721 is included in the white spot defect 731 (A in FIG. 27), the black spot defect 722 is included in the white spot defect 731 (B in FIG. 27), or the black spot defect 732 is present. May have a bright spot defect 711 (C in FIG. 27).
Even if the mura defect 730 and the spot / spot defect (710, 720) overlap as described above, if the defect is detected by the defect enhancement filter, the mura defect 730 area, the spot defect 720 area, and the point defect 710 are detected. Each of these areas can be detected.

ここで、例えば、白ムラ欠陥731に白シミ欠陥721が入っている場合(図27中のA)、ムラ欠陥730に基づくランク判定を行うにあたり、単純に、欠陥コントラストとしてムラ欠陥730の領域におけるコントラストの平均値を算出し、欠陥面積および欠陥コントラストを閾値曲線610に当てはめてランク判定を行うことが考えられる。しかしながら、ムラ欠陥730の領域内にシミ欠陥720が存在しているために平均のコントラスト値のなかには白シミ欠陥721のコントラストも含んでしまい、ムラ欠陥730に基づくランク判定としてはコントラストの評価値が高すぎることになる。   Here, for example, when the white spot defect 721 is included in the white spot defect 731 (A in FIG. 27), in performing rank determination based on the spot defect 730, the defect contrast 730 is simply determined as the defect contrast in the region of the spot defect 730. It is conceivable that an average value of contrast is calculated, and rank determination is performed by applying the defect area and defect contrast to the threshold curve 610. However, since the spot defect 720 is present in the region of the mura defect 730, the average contrast value includes the contrast of the white spot defect 721, and the rank evaluation based on the mura defect 730 has a contrast evaluation value. It will be too expensive.

すなわち、人の目によって表示欠陥(点欠陥710、シミ欠陥720、ムラ欠陥730)に基づくランク判定を行えば、欠陥同士が重なってはいても各欠陥は別個の欠陥として認識されるので、欠陥の種類(点欠陥710、シミ欠陥720、ムラ欠陥730)ごとにランク判定は行われ、ムラ欠陥730に基づくランク判定にあたっての欠陥コントラストとしては、ムラ欠陥730の部分のコントラストが基準となる。
すると、自動検査において、ムラ欠陥730の領域内で白シミ欠陥721を含めて単純に平均コントラストを算出すると、白シミ欠陥721を含んでしまう分、人の目の認識よりもムラ欠陥730のコントラストが高くなりすぎて、人の目によるランク判定と自動検査によるランク判定とではランク判定結果が異なってくることになる。
That is, if rank determination based on display defects (point defect 710, spot defect 720, unevenness defect 730) is performed by human eyes, each defect is recognized as a separate defect even if the defects overlap. Rank determination is performed for each type (point defect 710, spot defect 720, mura defect 730), and the contrast of the mura defect 730 is used as the reference for the defect contrast in the rank determination based on the mura defect 730.
Then, in the automatic inspection, when the average contrast is simply calculated including the white spot defect 721 in the region of the uneven defect 730, the contrast of the uneven defect 730 is more than the recognition of the human eye because the white spot defect 721 is included. As a result, the rank determination result differs between rank determination by human eyes and rank determination by automatic inspection.

また、白ムラ欠陥731に黒シミ欠陥722が入っている場合(図27中のB)、ムラ欠陥730の領域内で平均コントラストを算出すると、白ムラ欠陥731と黒シミ欠陥722とでコントラストが相殺されてしまって、ムラ欠陥730のコントラストを検出できなくなってしまうことになる。黒ムラ欠陥732に輝点欠陥711が入っている場合(図27中のC)も同様に、コントラストが相殺されてしまってムラ欠陥730のコントラストを検出できない。   Further, when the black spot defect 722 is included in the white spot defect 731 (B in FIG. 27), when the average contrast is calculated in the area of the spot defect 730, the contrast between the white spot defect 731 and the black spot defect 722 is obtained. This cancels out, and the contrast of the mura defect 730 cannot be detected. Similarly, when the black spot defect 732 includes the bright spot defect 711 (C in FIG. 27), the contrast is offset and the contrast of the spot defect 730 cannot be detected.

ここで、ランク判定にあたって、ムラ欠陥730の領域内に存在する点欠陥710・シミ欠陥720を取り除いてしまうことも考えられるが、ムラ欠陥730の領域から点欠陥710・シミ欠陥720の領域を単純に取り除いて点欠陥710・シミ欠陥720が無かったことにすると、ムラ欠陥の面積が小さくなってしまう。すると、欠陥面積の評価値が過小評価になって、やはりランク判定の結果が適切とはいえなくなる。ここで、図28は、ムラ欠陥730内に存在するシミ欠陥720を取り除いた様子を示す概念図である。
また、ムラ欠陥730内に存在する点欠陥710・シミ欠陥720の領域内について、そのコントラストを画像全体の平均コントラストで代用する補正を行うことも考えられるが(図29参照)、ムラ欠陥730の部分と被補正部分とでコントラストの格差が大きすぎるために適切なランク判定ができないことに変わりが無い。
Here, in the rank determination, the point defect 710 and the spot defect 720 existing in the area of the uneven defect 730 may be removed, but the area of the point defect 710 and the spot defect 720 is simply removed from the area of the uneven defect 730. If the point defect 710 and the spot defect 720 are not removed, the area of the mura defect becomes small. Then, the evaluation value of the defect area is underestimated, and the result of the rank determination is not appropriate. Here, FIG. 28 is a conceptual diagram showing a state where the spot defect 720 existing in the unevenness defect 730 is removed.
In addition, it is conceivable to correct the contrast of the point defect 710 and the spot defect 720 existing in the unevenness defect 730 by substituting the contrast with the average contrast of the entire image (see FIG. 29). Since the difference in contrast between the portion and the portion to be corrected is too large, it is still possible to make an appropriate rank determination.

本発明の目的は、検査対象中の欠陥を検出するにあたって、所定面積以上の欠陥を適切に検出できる欠陥検出方法、欠陥検査方法、欠陥検出装置、欠陥検査装置、欠陥検出プログラムおよびこのプログラムを記録した記録媒体を提供することにある。   An object of the present invention is to detect a defect in an inspection object, a defect detection method, a defect inspection method, a defect detection device, a defect inspection device, a defect detection program, and a program for recording the program that can appropriately detect a defect larger than a predetermined area. Is to provide a recording medium.

本発明の欠陥検出方法は、検査対象を撮像してその画像データを取得する検査画像取得工程と、前記検査画像取得工程にて取得された画像データ中で面積が所定サイズ未満の欠陥種である非評価対象欠陥種の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えてこの非評価対象欠陥種を修補する非評価対象欠陥種修補工程と、前記非評価対象欠陥種修補工程にて前記非評価対象欠陥種が修補された画像データにおいて面積が所定サイズ以上の欠陥種である評価対象欠陥種を検出する評価対象欠陥種検出工程と、を備えることを特徴とする。   The defect detection method of the present invention is a defect type having an area less than a predetermined size in the image data acquired in the inspection image acquisition step of imaging the inspection object and acquiring the image data. A non-evaluation target defect type repair process for repairing the non-evaluation target defect type by replacing the luminance data of each pixel of the non-evaluation target defect type with an interpolated value based on the luminance data of surrounding pixels, and repairing the non-evaluation target defect type And an evaluation target defect type detection step of detecting an evaluation target defect type whose area is a defect type having a predetermined size or more in the image data in which the non-evaluation target defect type is repaired in the process.

このような構成において、まず、検査対象を撮像してその画像データを取得する(画像データ取得工程)。
次に、取得された画像データ中に存在する非評価対象欠陥種の各画素を周囲の画素の輝度データに基づく補間値に置き換えることによって、非評価対象欠陥種を修補していく。これにより、非評価対象欠陥種の各画素の輝度データが周囲の画素の輝度データ変化に沿うように置き換えられて周囲の画素の輝度から突出あるいは凹んでいたものがなめらかに周囲の輝度変化になじむように修補される。
このように非評価欠陥種が修補された画像データから評価対象欠陥種を検出する(評価対象欠陥種検出工程)。
そして、例えば、検出された評価対象欠陥種に基づいて検査対象の評価が行われる。このような評価としては、例えば、欠陥面積や欠陥輝度(例えば欠陥部分の平均輝度)などの定量的評価値に基づく良/不良の判定評価が例として挙げられる。
In such a configuration, first, an inspection object is imaged and its image data is acquired (image data acquisition step).
Next, the non-evaluation target defect type is repaired by replacing each pixel of the non-evaluation target defect type present in the acquired image data with an interpolation value based on luminance data of surrounding pixels. As a result, the luminance data of each pixel of the non-evaluation target defect type is replaced so as to follow the luminance data change of the surrounding pixels, and what protrudes or is recessed from the luminance of the surrounding pixels smoothly adapts to the surrounding luminance change. As repaired.
In this way, the evaluation target defect type is detected from the image data in which the non-evaluation defect type is corrected (evaluation target defect type detection step).
Then, for example, the inspection object is evaluated based on the detected evaluation object defect type. Examples of such evaluation include good / bad determination evaluation based on quantitative evaluation values such as defect area and defect luminance (for example, average luminance of defective portions).

ここで、所定面積以上の表示欠陥(評価対象欠陥種)にのみ基づく評価をしたい場合に、評価対象欠陥種よりも面積が小さい表示欠陥(非評価対象表示欠陥種)が評価対象欠陥種と重なった状態で存在する場合がある。
このような場合に、検査画像取得工程で取得した画像データに対して単純に評価対象欠陥種検出工程を行って、検出された表示欠陥種に基づいた評価をしようとしても評価対象欠陥種にのみ基づく評価を行うことができない。例えば、検出された評価対象欠陥種の面積内での平均輝度を算出すると、評価対象欠陥種に重なった非評価対象欠陥種の輝度を含んだ平均輝度値を算出してしまうことになるため、評価対象欠陥種と非評価対象欠陥種とで輝度が異なっている場合には評価対象欠陥種のみに基づく平均輝度にならないためである。
Here, when an evaluation based only on display defects (evaluation target defect type) having a predetermined area or more is desired, a display defect (non-evaluation target display defect type) having an area smaller than the evaluation target defect type overlaps with the evaluation target defect type. It may exist in the state.
In such a case, the evaluation target defect type detection process is simply performed on the image data acquired in the inspection image acquisition process, and only the evaluation target defect type is evaluated based on the detected display defect type. Cannot make an evaluation based on. For example, when calculating the average luminance within the area of the detected evaluation target defect type, the average luminance value including the luminance of the non-evaluation target defect type that overlaps the evaluation target defect type will be calculated. This is because when the evaluation target defect type and the non-evaluation target defect type have different luminances, the average luminance based only on the evaluation target defect type is not obtained.

この点、本発明では非評価対象欠陥種を予め非評価対象欠陥種修補工程で修補しておき、非評価対象欠陥種が修補された画像データから評価対象欠陥種を検出することとしているので、画像データ中において当初は非評価対象欠陥種と評価対象欠陥種とが重なっていたとしても既に修補された非評価欠陥種が検出にかかることがなく、評価対象欠陥種のみが適切に検出される。   In this regard, in the present invention, the non-evaluation target defect type is repaired in advance in the non-evaluation target defect type repair process, and the evaluation target defect type is detected from the image data in which the non-evaluation target defect type is repaired. Even if the non-evaluation target defect type overlaps with the evaluation target defect type in the image data, the repaired non-evaluation defect type is not detected and only the evaluation target defect type is detected appropriately. .

そして、非評価対象欠陥種の修補にあたって非評価欠陥種の画素の輝度データを補間値に置き換えていくところ、非評価対象欠陥種修補工程における補間値は、各画素の周囲に位置する画素の輝度データに基づく値であり周囲の傾向を反映させるものである。
例えば、評価対象欠陥種に重なる非評価対象欠陥種の各画素の輝度データが補間値で置き換えられると、非評価対象欠陥種の領域は、評価対象欠陥種の輝度変化の傾向に沿った輝度データに置き換わる。
その結果、このように非評価対象欠陥種の画素の輝度データが補間値で置き換えられた後における評価対象欠陥種の全体の平均輝度としては、評価対象欠陥種のみに基づく平均輝度に近似し、さらには、非評価欠陥種ではなくその領域にも評価対象欠陥種が連続して続いていたと想定した場合の平均輝度となる。
Then, when repairing the non-evaluation target defect type, the luminance data of the pixel of the non-evaluation defect type is replaced with an interpolation value, and the interpolation value in the non-evaluation target defect type repair process is the luminance of the pixels located around each pixel. It is a value based on data and reflects surrounding trends.
For example, when the luminance data of each pixel of the non-evaluation target defect type that overlaps the evaluation target defect type is replaced with an interpolated value, the non-evaluation target defect type region becomes luminance data that follows the tendency of the luminance change of the evaluation target defect type. Is replaced.
As a result, the average luminance of the evaluation target defect type after the pixel luminance data of the non-evaluation target defect type is replaced with the interpolation value in this way approximates the average luminance based only on the evaluation target defect type, Furthermore, the average luminance is based on the assumption that the defect type to be evaluated continues in that region instead of the non-evaluated defect type.

ここで、例えば、非評価対象欠陥種の各画素の輝度データを単純に画像データ全体の平均値で置き換えると、周囲と極端に輝度値が異なってくるので非評価対象欠陥種の領域の輝度値が周囲とかけ離れてしまって評価対象欠陥種内の平均輝度値が大きく変動することとなる。   Here, for example, if the luminance data of each pixel of the non-evaluation target defect type is simply replaced with the average value of the entire image data, the luminance value becomes extremely different from the surroundings, so the luminance value of the non-evaluation target defect type region Is far away from the surroundings, and the average luminance value in the defect type to be evaluated varies greatly.

この点、本発明の非評価欠陥修補工程では、周囲の画素の輝度データを反映させた補間値とするので、評価対象欠陥種に重なった非評価欠陥種が修補された後の画像中で検出される評価対象欠陥種の領域内の平均輝度はまさに評価対象欠陥種に基づく平均輝度となる。   In this regard, in the non-evaluation defect repair process of the present invention, since the interpolation value reflects the luminance data of the surrounding pixels, it is detected in the image after repairing the non-evaluation defect type that overlaps the defect type to be evaluated. The average luminance in the region of the defect type to be evaluated is exactly the average luminance based on the defect type to be evaluated.

また、非評価欠陥種を修補するにあたっては、非評価欠陥種の領域がはじめから無かったこととしてその面積領域を画像データ中から削除してしまうのではなく、非評価対象欠陥種の各画素の輝度値を補間値に置き換えていく。
よって、修補の前後で面積が変化することはなく、評価対象欠陥種と非評価対象欠陥種とが重なる部分で非評価対象欠陥種の修補が行われても評価対象欠陥種の面積が変わることがない。
したがって、非評価欠陥種修補工程にて非評価対象欠陥種が修補された後の画像データから評価対象欠陥種を検出して(評価対象欠陥種検出工程)、この検出された評価対象欠陥種の定量的評価値として、例えば、欠陥面積や平均輝度を算出した場合、欠陥面積は非評価対象欠陥種の修補の前後で変化することがなく、かつ、平均輝度は評価対象欠陥種のみに基づく値となる。
In addition, in repairing the non-evaluation defect type, the area of the non-evaluation defect type is not deleted from the image data because the area of the non-evaluation defect type has not existed from the beginning. The luminance value is replaced with the interpolation value.
Therefore, the area does not change before and after the repair, and the area of the defect type to be evaluated changes even if the defect type of the non-evaluation target defect is repaired at the portion where the defect type to be evaluated and the non-evaluation target defect type overlap. There is no.
Therefore, the evaluation target defect type is detected from the image data after the non-evaluation defect type repair process is performed in the non-evaluation defect type repair process (evaluation target defect type detection process). As a quantitative evaluation value, for example, when a defect area or average luminance is calculated, the defect area does not change before and after repair of a non-evaluation target defect type, and the average luminance is a value based only on the evaluation target defect type. It becomes.

すなわち、非評価欠陥種を修補した後の画像データ中で評価対象欠陥種を検出して、この検出された評価対象欠陥種の面積および平均輝度を単純に計算すれば、人の目が認識する欠陥面積および平均輝度に相当する値を得ることができる。
その結果、例えば、評価対象欠陥種の欠陥面積や平均輝度に基づいた検査対象の適切な評価を行うことができ、人の見た目の印象に近似した評価を得ることができる。
That is, if the defect type to be evaluated is detected in the image data after repairing the non-evaluation defect type and the area and average brightness of the detected defect type is simply calculated, the human eye will recognize it. Values corresponding to the defect area and the average luminance can be obtained.
As a result, for example, it is possible to appropriately evaluate the inspection object based on the defect area and average luminance of the defect type to be evaluated, and to obtain an evaluation that approximates the impression of human appearance.

本発明では、前記非評価対象欠陥種修補工程は、前記非評価対象欠陥種の各画素の周囲において所定条件を満たす画素の輝度データが前記非評価対象欠陥種の各画素に向けて変化する傾向に基づいて前記補間値を算出することが好ましい。   In the present invention, in the non-evaluation target defect type repairing step, luminance data of pixels satisfying a predetermined condition around each pixel of the non-evaluation target defect type tends to change toward each pixel of the non-evaluation target defect type. It is preferable to calculate the interpolation value based on

このような構成において、非評価対象欠陥種修補工程で補間値を算出するにあたり、非評価対象欠陥種の各画素の周囲にある画素の輝度データ変化の傾向に基づく値を各画素の補間値として算出する。この補間値は、周囲の画素が非評価対象欠陥種の各画素に向けて変化する傾向(変化率)に基づく値とし、周囲の傾向に沿った値とする。
このような構成によれば、評価対象欠陥種のなかに非評価対象欠陥種が重なっていた場合に、非評価対象欠陥種の各画素の輝度を周囲の輝度変化を延長した補間値に置き換えているので、評価対象欠陥種のみに基づいて算出する平均輝度と、非評価対象欠陥種を修補したあとでこの修補された非評価対象欠陥種の領域を含む評価対象欠陥種の全領域の平均輝度とは近似した値であって、さらには、非評価欠陥種ではなくその領域にも評価対象欠陥種が連続して続いていたと想定した場合の平均輝度となる。
In such a configuration, when calculating the interpolation value in the non-evaluation target defect type repair process, a value based on the tendency of luminance data change of pixels around each pixel of the non-evaluation target defect type is used as the interpolation value of each pixel. calculate. This interpolated value is a value based on the tendency (change rate) of surrounding pixels to change toward each pixel of the non-evaluation target defect type, and is a value along the surrounding tendency.
According to such a configuration, when the non-evaluation target defect type overlaps the evaluation target defect type, the luminance of each pixel of the non-evaluation target defect type is replaced with an interpolated value obtained by extending the surrounding luminance change. Therefore, the average brightness calculated based only on the defect type to be evaluated and the average brightness of all areas of the defect type to be evaluated including the area of the non-evaluation target defect type repaired after repairing the non-evaluation target defect type Is an approximate value, and it is an average luminance when it is assumed that the defect type to be evaluated continues not continuously in the non-evaluated defect type but also in the region.

すなわち、非評価欠陥種を修補した後の画像データ中で評価対象欠陥種を検出して、この検出された評価対象欠陥種の面積および平均輝度を単純に計算すれば、人の目が認識する欠陥面積および平均輝度に相当する値を得ることができる。そして、このように算出された評価対象欠陥種の面積および平均輝度などの定量的評価値に基づいて所定閾値に比較する評価を行うことにより、人の目と同じ評価結果を得ることができる。   That is, if the defect type to be evaluated is detected in the image data after repairing the non-evaluation defect type and the area and average brightness of the detected defect type is simply calculated, the human eye will recognize it. Values corresponding to the defect area and the average luminance can be obtained. An evaluation result that is the same as that of the human eye can be obtained by performing an evaluation that is compared with a predetermined threshold value based on the quantitative evaluation values such as the area of the defect type to be evaluated and the average luminance calculated in this way.

本発明では、前記非評価欠陥種修補工程は、前記画像データ取得工程にて取得された画像データ中で前記非評価対象欠陥種を検出する非評価対象欠陥種検出工程と、前記補間値を前記非評価対象欠陥種の画素ごとに算出するとともにこれらの各画素の輝度データを前記補間値で置き換える補間工程と、を備え、前記補間工程は、検出された非評価対象欠陥種のうちの外縁に位置する画素から始めて順次内側寄りの画素の前記補間値を算出していき、前記外縁に位置する前記画素の補間値を求めるにあたってはその画素に隣接し輝度が正常である正常画素の輝度データに基づいて前記補間値を算出し、前記内側寄りの前記画素の前記補間値を算出するにあたっては前記正常画素の輝度データと外縁寄りの前記画素の補間値として既に算出された補間値とのうち前記補間値を算出する対象である画素に隣接するものに基づいて前記補間値を算出することが好ましい。   In the present invention, the non-evaluation defect type repair step includes a non-evaluation target defect type detection step of detecting the non-evaluation target defect type in the image data acquired in the image data acquisition step, and the interpolation value as the interpolation value. An interpolation step that calculates for each pixel of the non-evaluation target defect type and replaces the luminance data of each pixel with the interpolation value, and the interpolation step is performed on the outer edge of the detected non-evaluation target defect type. The interpolated values of the pixels closer to the inner side are calculated starting from the located pixels, and when obtaining the interpolated values of the pixels located on the outer edge, the luminance data of normal pixels adjacent to the pixel and having normal luminance are obtained. The interpolated value is calculated based on the inner pixel and the interpolated value of the pixel closer to the inner side is already calculated as the luminance data of the normal pixel and the interpolated value of the pixel closer to the outer edge. It is preferable to calculate the interpolated value based on those adjacent to the pixel which is the target for calculating the interpolated value of the between values.

このような構成において、非評価対象欠陥種を修補する非評価対象欠陥種修補工程を行うにあたり、まず、非評価対象欠陥種検出工程によって評価対象欠陥種よりも面積が小さい非評価対象欠陥種を検出する。そして、検出された非評価対象欠陥種の各画素の補間値を算出するとともにこの補間値で非評価対象欠陥種の各画素の輝度データを置き換えていく(補間工程)。
これにより、非評価対象欠陥種の各画素の輝度データが周囲の画素の輝度データ変化に沿うように置き換えられて周囲の画素の輝度から突出あるいは凹んでいたものがなめらかに周囲の輝度変化になじむように修補される。このとき、補間工程において非評価対象欠陥種の各画素の輝度データを補間値で置き換えていくにあたり、まず、非評価対象欠陥種の外縁に位置する各画素について補間値を算出していく。
非評価対象欠陥種の外縁の画素に隣接する位置には正常な輝度を有し非評価対象欠陥種に含まれない正常画素が存在しているので、非評価対象欠陥種の画素の外縁に隣接する正常画素の輝度データに基づいて算出された補間値は、これら正常画素の輝度データ変化に沿う値となる。
In such a configuration, in performing the non-evaluation target defect type repair process for repairing the non-evaluation target defect type, first, the non-evaluation target defect type having a smaller area than the evaluation target defect type is detected by the non-evaluation target defect type detection process. To detect. Then, an interpolation value of each pixel of the detected non-evaluation target defect type is calculated, and luminance data of each pixel of the non-evaluation target defect type is replaced with this interpolation value (interpolation process).
As a result, the luminance data of each pixel of the non-evaluation target defect type is replaced so as to follow the luminance data change of the surrounding pixels, and what protrudes or is recessed from the luminance of the surrounding pixels smoothly adapts to the surrounding luminance change. As repaired. At this time, when the luminance data of each pixel of the non-evaluation target defect type is replaced with the interpolation value in the interpolation process, first, an interpolation value is calculated for each pixel located at the outer edge of the non-evaluation target defect type.
Since there is a normal pixel that has normal brightness and is not included in the non-evaluation target defect type at a position adjacent to the outer edge pixel of the non-evaluation target defect type, it is adjacent to the outer edge of the non-evaluation target defect type pixel. The interpolated value calculated based on the luminance data of the normal pixels is a value along the luminance data change of these normal pixels.

すなわち、外縁の画素は非評価対象欠陥種のすぐ外側に位置する正常画素の輝度の変化傾向を反映した補間値で置き換えられることになる。
そして、外縁に位置する画素を補間値で修補した後、順次、非評価対象欠陥種の内側に位置する各画素について補間値を算出していく。
内側寄りの画素の補間値を算出するにあたっては、正常画素の輝度データとすでに修補された画素の補間値とのうちで補間値を算出する対象である画素に隣接するものに基づいて補間値を算出する。
隣接する正常画素に基づいて補間値を算出すれば、この補間値が非評価対象欠陥種に含まれない正常画素の輝度データ変化に沿った値となるのはもちろんである。
That is, the outer edge pixel is replaced with an interpolated value reflecting the luminance change tendency of the normal pixel located just outside the non-evaluation target defect type.
Then, after correcting the pixel located at the outer edge with the interpolation value, the interpolation value is sequentially calculated for each pixel located inside the non-evaluation target defect type.
When calculating the interpolated value of the inner pixel, the interpolated value is calculated based on the luminance data of the normal pixel and the interpolated value of the already corrected pixel adjacent to the pixel for which the interpolated value is to be calculated. calculate.
If an interpolation value is calculated based on adjacent normal pixels, it goes without saying that this interpolation value becomes a value along the luminance data change of normal pixels not included in the non-evaluation target defect type.

ここで、検出された非評価欠陥種の総ての画素について隣接した正常画素があるわけではなく、特に、非評価対象欠陥種の内側寄りの画素では周囲に欠陥画素のみが存在している場合もありうる。この場合、補間工程では、外縁寄りの画素から補間値の算出を行うので、内側寄りの画素について補間値を算出するときにはこの画素に隣接する外側寄りの画素には既に補間値が算出されていることになる。
したがって、内側寄りの画素について補間値を算出する場合には、外側寄りの画素の補間値として既に算出された値を用いて補間値を算出することができる。そして、外側寄りの画素の補間値はさらに外側の画素について算出された補間値であるところ最外縁の画素について算出された補間値は非評価対象欠陥種の外側に位置する正常画素に基づいて算出された値である。よって、外側から内側に向けて順番に補間値を算出していくことで、既に算出された補間値に基づいて算出される補間値も非評価対象欠陥種の外側にある正常画素の輝度データ変化をリレーして反映する値となる。
Here, there is not a normal pixel adjacent to all pixels of the detected non-evaluation defect type, and in particular, only a defective pixel exists in the vicinity of the pixel closer to the non-evaluation target defect type. There is also a possibility. In this case, since the interpolation value is calculated from the pixels closer to the outer edge in the interpolation step, when calculating the interpolation value for the inner pixel, the interpolation value is already calculated for the outer pixel adjacent to this pixel. It will be.
Therefore, when the interpolation value is calculated for the inner pixel, the interpolation value can be calculated using the value already calculated as the interpolation value for the outer pixel. The interpolation value of the outer pixel is an interpolation value calculated for the outer pixel, whereas the interpolation value calculated for the outermost pixel is calculated based on normal pixels located outside the non-evaluation target defect type. Value. Therefore, by calculating the interpolation value in order from the outside to the inside, the interpolation value calculated based on the already calculated interpolation value also changes the luminance data of normal pixels outside the non-evaluation target defect type. It becomes a value that reflects and relays.

このように補間値の算出にあたって、検出された非評価対象欠陥種の外側から内側に順番に補間値の算出を行うことにより、非評価対象欠陥種の外側の正常画素の輝度データ変化を反映した補間値を順に算出でき、このように算出される補間値で非評価対象欠陥種の各画素の輝度データを置き換えて非評価対象欠陥種の修補を行うことができる。そして、非評価対象欠陥種の内側寄りに存在する画素についても既に外側寄りの画素について算出された補間値を利用してこの内側寄りの画素の補間値を算出できるので、非評価対象欠陥種の総ての画素について補間値を算出して置き換えることができる。   Thus, in calculating the interpolation value, the interpolation value is calculated in order from the outside to the inside of the detected non-evaluation target defect type, thereby reflecting the luminance data change of the normal pixels outside the non-evaluation target defect type. Interpolation values can be calculated in order, and the non-evaluation target defect type can be repaired by replacing the luminance data of each pixel of the non-evaluation target defect type with the interpolation value thus calculated. Since the interpolation value of the inner pixel can be calculated using the interpolation value already calculated for the outer pixel even for the pixel existing on the inner side of the non-evaluation target defect type, Interpolation values can be calculated and replaced for all pixels.

本発明では、前記非評価対象欠陥種検出工程は、前記検査対象となる画像データを縮小する画像縮小工程と、着目画素と着目画素の周囲の画素とで輝度データの差を強調する欠陥強調フィルタを前記画像縮小工程にて縮小された画像データにかけて表示欠陥を検出するフィルタリング工程と、を備え、前記非評価対象欠陥種修補工程は、前記画像縮小工程で所定サイズに縮小された画像データに対するフィルタリング工程にて検出された前記非評価対象欠陥種の画素の補間値を前記補間工程で算出してこの非評価対象欠陥種を修補した後、さらに、修補された画像データに対して前記画像縮小工程、前記フィルタリング工程および前記補間工程を繰り返して修補対象である面積の非評価対象欠陥種を順次修補していくことが好ましい。   In the present invention, the non-evaluation target defect type detection step includes an image reduction step of reducing the image data to be inspected, and a defect enhancement filter that emphasizes a difference in luminance data between the pixel of interest and pixels around the pixel of interest. A filtering step of detecting display defects over the image data reduced in the image reduction step, the non-evaluation target defect type repairing step filtering the image data reduced to a predetermined size in the image reduction step After the interpolation value of the pixel of the non-evaluation target defect type detected in the process is calculated in the interpolation process and the non-evaluation target defect type is repaired, the image reduction process is further performed on the repaired image data. It is preferable that the non-evaluation target defect type of the area to be repaired is repaired sequentially by repeating the filtering process and the interpolation process.

このような構成において、非評価対象欠陥種検出工程は、画像縮小工程で所定サイズに画像データの縮小を行ったうえで、この縮小された画像データに欠陥検出のための欠陥強調フィルタをかけて非評価対象欠陥種を検出していく。画像データの縮小方法としては、例えば、画像データ中の4つあるいは6つの画素を一つの画素にまとめ、このまとめられた画素の輝度データとしてはもとの4つあるいは6つの画素の平均とすることが例として挙げられる。   In such a configuration, the non-evaluation target defect type detection step reduces the image data to a predetermined size in the image reduction step, and then applies a defect enhancement filter for defect detection to the reduced image data. The non-evaluation target defect type is detected. As a method for reducing the image data, for example, four or six pixels in the image data are combined into one pixel, and the luminance data of the combined pixels is an average of the original four or six pixels. As an example.

ここで、欠陥強調フィルタは所定のサイズを有するところ、このサイズの欠陥強調フィルタで検出される表示欠陥のサイズは欠陥強調フィルタにマッチする大きさとなる。
そこで、非評価対象欠陥種検出工程では、まず、画像縮小工程において画像データを縮小する。
すると、当初の画像サイズにおいて欠陥強調フィルタの検出サイズよりも大きい非評価対象欠陥種が小さく縮小されて欠陥強調フィルタにマッチするサイズとなる。
Here, the defect emphasis filter has a predetermined size, and the size of the display defect detected by the defect emphasis filter of this size matches the defect emphasis filter.
Therefore, in the non-evaluation target defect type detection step, first, the image data is reduced in the image reduction step.
Then, the non-evaluation target defect type that is larger than the detection size of the defect enhancement filter in the initial image size is reduced to a size that matches the defect enhancement filter.

このように縮小された画像データに欠陥強調フィルタをかけると、欠陥強調フィルタにマッチしたサイズの表示欠陥が検出される。
そして、画像縮小を数段階の縮小率で行うと、当初の画像データ中では様々のサイズであった非評価対象欠陥種のサイズがいずれかの縮小率で欠陥強調フィルタのサイズにマッチする。
よって、数段階で画像データの縮小を行いつつ縮小された画像データに欠陥強調フィルタをかけることで画像データ中の様々のサイズの非評価対象欠陥種を総て検出することができる。
When a defect enhancement filter is applied to the image data reduced in this way, a display defect having a size matching the defect enhancement filter is detected.
When image reduction is performed at several stages of reduction ratios, the sizes of non-evaluation target defect types that have various sizes in the initial image data match the size of the defect enhancement filter at any reduction ratio.
Therefore, by applying a defect emphasis filter to the reduced image data while reducing the image data in several stages, it is possible to detect all non-evaluation target defect types of various sizes in the image data.

さらに、所定サイズに縮小した画像データに対して欠陥強調フィルタをかけて所定サイズの表示欠陥を検出し、検出された表示欠陥を補間工程で修補する。この段階では、まだ、この縮小率で欠陥強調フィルタにかからない表示欠陥が修補されていないところ、所定の縮小率で表示欠陥が修補された画像データに対してさらに画像縮小を行う。
この縮小された画像データに欠陥強調フィルタをかけると、修補されていない表示欠陥が欠陥検出フィルタにかかるので、検出された表示欠陥を補間工程で修補していく。
このように画像縮小工程、フィルタリング工程、補間工程を繰り返し行い、画像データの縮小率を非評価対象欠陥種のサイズの総ての表示欠陥が欠陥検出フィルタにかかるまでとすると、非評価対象欠陥種の総てが修補される。
Further, a defect emphasis filter is applied to the image data reduced to a predetermined size to detect a display defect of a predetermined size, and the detected display defect is repaired by an interpolation process. At this stage, the display defect that does not apply to the defect emphasis filter at this reduction rate has not been repaired yet, and further image reduction is performed on the image data with the display defect repaired at a predetermined reduction rate.
When a defect emphasis filter is applied to the reduced image data, display defects that have not been repaired are applied to the defect detection filter, so that the detected display defects are repaired in an interpolation process.
In this way, the image reduction process, the filtering process, and the interpolation process are repeated, and the reduction rate of the image data is determined so that all display defects of the size of the non-evaluation target defect type are applied to the defect detection filter. All of these are repaired.

本発明では、前記評価対象欠陥種はムラ欠陥であり、前記非評価対象欠陥種は、前記ムラ欠陥よりも面積が小さいシミ欠陥および前記シミ欠陥よりも面積が小さい点欠陥であり、前記非評価対象欠陥種修補工程は、最初の画像縮小工程にて縮小された画像データに対する前記フィルタリング工程にて前記点欠陥を検出してこの点欠陥の補間値を前記補間工程にて算出したのち、さらに、点欠陥が修補された画像データを前記画像縮小工程にて画像縮小したうえで前記フィルタリング工程にて前記シミ欠陥を検出してこのシミ欠陥の補間値を前記補間工程にて算出してシミ欠陥を修補することが好ましい。   In the present invention, the defect type to be evaluated is a mura defect, the defect type to be non-evaluated is a spot defect having a smaller area than the mura defect and a point defect having a smaller area than the spot defect, and the non-evaluation In the target defect type repairing step, the point defect is detected in the filtering step for the image data reduced in the first image reduction step, and the interpolation value of the point defect is calculated in the interpolation step. The image data in which the point defect is repaired is reduced in the image reduction process, the spot defect is detected in the filtering process, and an interpolation value of the spot defect is calculated in the interpolation process. It is preferable to repair.

このような構成において、評価対象欠陥種をムラ欠陥とし、非評価対象欠陥種としてシミ欠陥および点欠陥とする。
従来は、ムラ欠陥(評価対象欠陥種)に基づく光学パネルの評価を行いたい場合に、ムラ欠陥よりも小さいシミ欠陥や点欠陥(非評価対象欠陥種)がムラ欠陥に重なって存在すると、ムラ欠陥のみに基づく定量的評価値として欠陥面積や平均輝度を算出できないために、ムラ欠陥のみに基づく適切な評価を行うことができなかった。
この点、本発明では、画像縮小工程、フィルタリング工程および補間工程を繰り返し、点欠陥およびシミ欠陥を修補していくことができる。
In such a configuration, the defect type to be evaluated is a mura defect, and the defect type to be evaluated is a spot defect and a point defect.
Conventionally, when it is desired to evaluate an optical panel based on a mura defect (defect type to be evaluated), if a spot defect or a point defect (non-evaluation type) that is smaller than the mura defect exists on the mura defect, Since the defect area and the average luminance cannot be calculated as a quantitative evaluation value based only on the defect, appropriate evaluation based only on the unevenness defect cannot be performed.
In this regard, in the present invention, it is possible to repair point defects and spot defects by repeating the image reduction process, the filtering process, and the interpolation process.

すなわち、最初の画像縮小工程による画像データの縮小により画像データ中の点欠陥が欠陥強調フィルタのサイズにマッチングして、欠陥強調フィルタによって検出される。
この検出された点欠陥の各画素の輝度データを補間工程で算出される補間値で置き換えて点欠陥を修補する(補間工程)。
そして、点欠陥が修補された画像データをさらに画像縮小工程で縮小し、この縮小された画像データに欠陥強調フィルタをかけてシミ欠陥を検出する。検出されたシミ欠陥の各画素の輝度データを補間工程で算出される補間値で置き換えて修補する。
すると、非評価対象欠陥である点欠陥、シミ欠陥が修補された画像データが得られる。
このように点欠陥、シミ欠陥が修補された画像データから評価対象欠陥種であるムラ欠陥を検出して、検出されたムラ欠陥に基づく光学パネルの評価を行うことにより、点欠陥およびシミ欠陥に影響されることなく評価対象欠陥種であるムラ欠陥のみに基づいて光学パネルを適切に評価することができる。
That is, the point defect in the image data is matched with the size of the defect enhancement filter by the reduction of the image data in the first image reduction process, and is detected by the defect enhancement filter.
The point defect is repaired by replacing the luminance data of each pixel of the detected point defect with the interpolation value calculated in the interpolation process (interpolation process).
Then, the image data with the point defects corrected is further reduced in an image reduction process, and a defect enhancement filter is applied to the reduced image data to detect a spot defect. The brightness data of each pixel of the detected spot defect is replaced with the interpolation value calculated in the interpolation process and repaired.
Then, image data in which point defects and spot defects, which are non-evaluation target defects, are repaired is obtained.
In this way, spot defects and spot defects are detected by detecting the mura defect, which is the defect type to be evaluated, from the image data corrected, and evaluating the optical panel based on the detected mura defect. The optical panel can be appropriately evaluated based only on the mura defect that is the evaluation target defect type without being affected.

本発明では、前記非評価対象欠陥種検出工程は、前記画像データの各画素の輝度データを所定閾値と比較して輝度データが閾値以上である欠陥画素と輝度データが閾値未満である正常画素とを検出するとともに欠陥画素を1とし正常画素を0として2値化した2値化配列空間を生成する2値化工程を備え、前補間工程は、前記非評価対象欠陥種検出工程にて検出された前記非評価対象欠陥種の欠陥画素のうちで修補対象となる画素を順次サーチする修補対象画素サーチ工程と、前記修補対象画素サーチ工程にてサーチされた修補対象となる画素の補間値を算出する補間値算出工程と、を備え、所定サイズのマトリクス配列で中央の着目セルに1を配しその周りの8方向のうちの少なくとも5つ以上の方向に連続して2つ以上の0を配置するパターンを網羅した複数のマッチングフィルタが用意され、前記修補対象画素サーチ工程は、前記2値化配列空間に前記マッチングフィルタを順にかけていずれかのマッチングフィルタに一致する1と0との配列箇所を前記2値化配列空間内でサーチするとともに、マッチングフィルタに一致する配列箇所でマッチングフィルタの着目セルに対応する画素を修補対象画素として画像データ中において認識し、前記補間値算出工程は、マッチングフィルタにおいて0が2以上連続する方向における画素の輝度データの変化率に基づいて前記修補対象画素の補間値を算出し、この補間値算出工程にて前記補間値が算出されて輝度データが補間値に置き換えられた画素については前記2値化配列空間において対応するセルを1から0に書き換えて前記2値化配列空間のセルが総て0になるまで修補対象画素サーチ工程および補間値算出工程を繰り返すことが好ましい。   In the present invention, the non-evaluation target defect type detection step compares the luminance data of each pixel of the image data with a predetermined threshold value, and a defective pixel whose luminance data is greater than or equal to the threshold value and a normal pixel whose luminance data is less than the threshold value, And a binarization step for generating a binarized array space in which the defective pixel is 1 and the normal pixel is 0, and the pre-interpolation step is detected in the non-evaluation target defect type detection step. Further, a repair target pixel search step for sequentially searching for a pixel to be repaired among defective pixels of the non-evaluation target defect type, and an interpolation value of the pixel to be repaired searched in the repair target pixel search step is calculated. An interpolated value calculating step, wherein a 1 is arranged in a central cell of interest in a matrix arrangement of a predetermined size, and two or more 0s are continuously arranged in at least 5 or more of the surrounding 8 directions To do A plurality of matching filters are prepared, and the repair target pixel search step sequentially applies the matching filter to the binarized array space to find an array portion of 1 and 0 that matches one of the matching filters. Searching in the binarized array space, recognizing in the image data a pixel corresponding to the target cell of the matching filter at the array location that matches the matching filter as a pixel to be repaired, and the interpolation value calculating step includes: The interpolation value of the pixel to be repaired is calculated based on the rate of change of the luminance data of the pixel in the direction in which 0 is continuous for 2 or more, and the interpolation value is calculated in this interpolation value calculating step so that the luminance data becomes the interpolation value. For the replaced pixel, the corresponding cell is rewritten from 1 to 0 in the binary array space, and the It is preferred that the cells of the binarized sequence space is repeated repairing target pixel search process and the interpolation value calculating step until all 0.

このような構成において、検査画像取得工程で取得した画像データから非評価対象欠陥種を検出するにあたって(非評価対象欠陥種検出工程)、輝度が異常であって表示欠陥種を生じさせる欠陥画素と輝度が正常である正常画素とを区分する所定閾値を用意しておいて、この閾値によって欠陥画素と正常画素とを検出する。
そして、画像データと対応するサイズの2値化配列空間を生成しておいて、この2値化配列空間において欠陥画素に対応する位置には“1”を、正常画素に対応する位置には“0”を配置していく(2値化工程)。
すると、2値化配列空間内で1が配置されているセルは欠陥画素にあたり、0が配置されているセルは正常画素にあたることになる。
In such a configuration, when detecting a non-evaluation target defect type from the image data acquired in the inspection image acquisition process (non-evaluation target defect type detection process), a defective pixel that has abnormal luminance and generates a display defect type A predetermined threshold value for distinguishing normal pixels having normal luminance is prepared, and defective pixels and normal pixels are detected based on this threshold value.
Then, a binarized array space having a size corresponding to the image data is generated. In this binarized array space, a position corresponding to the defective pixel is “1”, and a position corresponding to the normal pixel is “1”. 0 ″ is arranged (binarization process).
Then, a cell in which 1 is arranged in the binarized array space corresponds to a defective pixel, and a cell in which 0 is arranged corresponds to a normal pixel.

次に、補間工程で欠陥画素の補間値を算出するにあたっては、総ての欠陥画素について同時に補間値を算出するのではなく、非評価対象欠陥種のなかで外縁側から内側寄りに向けて順番に補間値を算出していくところ、修補対象画素サーチ工程において修補対象となる画素を順番にサーチしていく。
補間値を算出する対象となる修補対象画素をサーチする修補対象画素サーチ工程にあたっては、マッチングフィルタを2値化配列空間にかけていって1と0との所定配列を順番にサーチしていく。
Next, when calculating the interpolation value of the defective pixel in the interpolation process, the interpolation value is not calculated for all defective pixels at the same time, but in order from the outer edge side to the inner side among the non-evaluation target defect types. When the interpolation value is calculated, the pixels to be repaired are searched in order in the repair target pixel search step.
In a repair target pixel search process for searching for a repair target pixel for which an interpolation value is to be calculated, a predetermined array of 1 and 0 is searched in order by applying a matching filter to the binarized array space.

ここで、マッチングフィルタとしては、所定サイズのマトリクス配列で中央の着目セルに1が配され、その周りの8方向のうちで5つ以上の方向に連続して0が配置されたパターンを網羅して複数用意される。
ここで、“1”は欠陥画素に相当し、“0”は正常画素に相当するところ、マッチングフィルタの1、0配列に一致する配列箇所を2値化配列空間内でサーチすることは、周囲に正常画素が所定数以上並んでいる欠陥画素をサーチすることになる。
Here, the matching filter covers a pattern in which 1 is arranged in the center target cell in a matrix arrangement of a predetermined size, and 0 is continuously arranged in five or more directions among the eight directions around the matching filter. Are prepared.
Here, “1” corresponds to a defective pixel, and “0” corresponds to a normal pixel. However, searching in the binary array space for an array location that matches the 1 and 0 array of the matching filter A defective pixel having a predetermined number or more of normal pixels is searched.

そして、マッチングフィルタを2値化配列空間にかけていって、マッチングフィルタの配列に一致する配列箇所が2値化配列空間に見つかった場合、そのマッチングフィルタの中央である着目セルに対応するセルが修補対象となる。
そこで、2値化配列空間で見つかった修補対象に対応する位置を画像データから探して、その画素を修補対象画素として認識する。さらに、マッチングフィルタの配列から0が連続する方向が分かるので、この0が連続する方向の画素の輝度データに基づいて修補対象画素の補間値を算出する。
すると、修補対象画素としてサーチされた画素(欠陥画素)の補間値がこの修補対象画素に隣接し、かつ、輝度データが正常である画素の輝度データに基づいて求められる。
修補対象画素の輝度データを算出された補間値に置き換えることで修補対象画素が修補される。
When the matching filter is applied to the binarized array space and an array location matching the matching filter array is found in the binarized array space, the cell corresponding to the cell of interest at the center of the matching filter is the object to be repaired It becomes.
Therefore, a position corresponding to the repair target found in the binary array space is searched from the image data, and the pixel is recognized as the repair target pixel. Furthermore, since the direction in which 0 continues is known from the matching filter array, the interpolation value of the repair target pixel is calculated based on the luminance data of the pixel in the direction in which 0 continues.
Then, an interpolation value of a pixel (defective pixel) searched as a repair target pixel is obtained based on the brightness data of a pixel adjacent to the repair target pixel and having normal brightness data.
The pixel to be repaired is repaired by replacing the luminance data of the pixel to be repaired with the calculated interpolation value.

さらに、このように算出された補間値によって修補された画素については、その対応する2値化配列空間のセルを1から0に書き換える。
このように、補間値で輝度データが置き換えられて修補された画素については2値化配列空間で0に置き換えられるので、次にマッチングフィルタをかけた際には、補間値で修補された画素も補間値を算出する基礎として利用されることになる。
また、このように補間値で修補された画素について2値化配列空間で0に置き換えていくことで、当初には周囲が欠陥画素で囲まれて周囲に所定数以上の正常画素が存在しなかった欠陥画素についても、この欠陥画素の周囲の画素が補間値で修補されて2値化配列空間で0に置き換わることにより、次第に周りに0が配されていき、最終的には、マッチングフィルタでのサーチにかかるようになる。
よって、当初検出された欠陥画素についてはすべてマッチングフィルタで順番にサーチされていくことになる。
Further, for the pixel corrected by the interpolation value calculated in this way, the corresponding binary array space cell is rewritten from 1 to 0.
As described above, the pixel corrected by replacing the luminance data with the interpolated value is replaced with 0 in the binarized array space. Therefore, when the matching filter is applied next, the pixel corrected with the interpolated value is also replaced. This is used as a basis for calculating the interpolation value.
In addition, by replacing the pixels corrected with the interpolation value with 0 in the binarized array space, the periphery is initially surrounded by defective pixels, and there are no more than a predetermined number of normal pixels in the periphery. As for the defective pixels, the surrounding pixels of the defective pixels are corrected with the interpolation values and replaced with 0 in the binarized array space, so that the surrounding 0s are gradually arranged. It starts to search for.
Therefore, all the defective pixels initially detected are sequentially searched by the matching filter.

そして、マッチングフィルタを2値化配列空間にかけていって修補対象画素のサーチと補間値の算出との繰り返しを、2値化配列空間の総てのセルが0になって当初検出された欠陥画素が総て修補されるまで行う。
このような構成により、画像データ中の欠陥画素のうち周囲に正常画素の輝度データもしくは既に算出された補間値が所定数以上存在する欠陥画素を修補対象画素として順番にサーチしていくとともにサーチした修補対象画素の輝度データを適切な補間値に置き換えていき、検出された総ての欠陥画素を修補することができる。
Then, by applying a matching filter to the binarized array space and repeating the search for the pixel to be repaired and the calculation of the interpolation value, all the cells in the binarized array space become 0, and the defective pixel initially detected Repeat until all the repairs are made.
With such a configuration, the defective pixels in the image data are searched for in order as the repair target pixels for defective pixels having a predetermined number or more of luminance data of normal pixels or already calculated interpolation values. By replacing the luminance data of the repair target pixel with an appropriate interpolation value, it is possible to repair all detected defective pixels.

本発明では、前記修補対象画素サーチ工程は、着目セルの周りで0が2つ以上連続する方向が少ないマッチングフィルタから順番に前記2値化配列空間にかけていくことが好ましい。   In the present invention, it is preferable that in the repair target pixel search step, the binarized array space is sequentially applied from a matching filter having a small direction in which two or more zeros continue around the target cell.

このような構成において、2値化配列空間にマッチングフィルタをかけていくにあたっては、マッチングフィルタとして所定サイズのマトリクス配列で中央の着目セルに1が配され、その周りの8方向のうちで5つ以上の方向に連続して0が配置されたパターンが複数用意されているところ、着目セルの周りで0が2つ以上連続する方向が少ないマッチングフィルタから順に2値化配列空間にかけていく。   In such a configuration, when a matching filter is applied to the binarized array space, 1 is arranged in the center target cell in a matrix array of a predetermined size as a matching filter, and five of the surrounding eight directions are arranged. When a plurality of patterns in which 0s are continuously arranged in the above direction are prepared, the matching filter is sequentially applied to the binarized array space from the matching filter having few directions in which two or more 0s continue around the target cell.

ここで、修補の対象としての非評価対象欠陥種はある程度の面積に欠陥画素が集まって構成されるのが一般的であるので、2値化配列空間内で当初から着目セルの周囲で多くの方向に0が連続しているパターンは少ないと考えられる。
このような状況で、もし、着目セルの周囲で多くの方向に0が連続するマッチングフィルタから優先順位をつけてしまうと、はじめはマッチングフィルタにマッチする配列パターンが見つからず、修補対象画素を見つけられないままマッチング処理だけを無駄に行うことになる。また、マッチング処理は、複数のセル同士で一致/不一致を見なければならないので一回のマッチング処理に要する負担が非常に大きく、相当の時間も要する。
この点、本発明では、着目セルの周囲で0が連続する方向が少ないフィルタからかけていくので、当初からマッチングする可能性を高めることができ、処理効率を向上させることができる。
Here, since the defect type non-evaluation target defect type to be repaired is generally configured by collecting defective pixels in a certain area, there are many defects around the target cell from the beginning in the binary array space. It is considered that there are few patterns in which 0s continue in the direction.
In such a situation, if priority is given from a matching filter in which 0 continues in many directions around the target cell, an array pattern that matches the matching filter is not found at first, and a pixel to be repaired is found. Only the matching process is wasted without being performed. In addition, since the matching process has to see matching / mismatching between a plurality of cells, the burden required for one matching process is very large, and a considerable time is required.
In this respect, in the present invention, since the filter is applied from a filter with few directions of zeros around the cell of interest, it is possible to increase the possibility of matching from the beginning, and to improve the processing efficiency.

本発明では、前記補間値算出工程は、前記2値化配列空間内で修補対象画素に隣接して0が2つ以上連続する各方向において前記修補対象画素に隣接する画素の輝度データの二倍からその外側の画素の輝度データを減算して得られる補間基礎値を算出したうえで、各方向で算出された前記補間基礎値を平均した平均値を前記修補対象画素の補間値とすることが好ましい。   In the present invention, the interpolation value calculating step is twice the luminance data of the pixel adjacent to the repair target pixel in each direction in which two or more zeros are adjacent to the repair target pixel in the binarized array space. After calculating the basic interpolation value obtained by subtracting the luminance data of the outer pixels from the average value, the average value obtained by averaging the basic interpolation values calculated in each direction may be used as the interpolation value of the repair target pixel. preferable.

このような構成において、例えば、修補対象画素に隣接した画素の輝度データを、修補対象画素から近い順にLα、Lβとすると、これら2つの輝度データが修補対象画素に向けて変化する変化率は(Lα―Lβ)である。そして、この変化率(Lα―Lβ)を修補対象画素に隣接する画素の輝度データであるLαに加算することにより、修補対象画素の位置においてLα、Lβの変化率に基づく補間基礎値「Lα+(Lα―Lβ)」が求まる。
このようにして各方向で算出された補間基礎値を平均して修補対象画素の補間値とすることにより、修補対象画素の周囲に位置する画素の輝度変化を反映した適切な値の補間値を得ることができる。
In such a configuration, for example, assuming that the luminance data of the pixels adjacent to the repair target pixel are L α and L β in order from the repair target pixel, the rate of change at which these two luminance data change toward the repair target pixel. Is (L α -L β ). Then, this change rate (L α -L β ) is added to L α that is the luminance data of the pixel adjacent to the repair target pixel, thereby performing interpolation based on the change rates of L α and L β at the position of the repair target pixel. A basic value “L α + (L α −L β )” is obtained.
By averaging the interpolation basic values calculated in each direction in this way to obtain the interpolation value of the pixel to be repaired, an interpolation value having an appropriate value reflecting the luminance change of the pixels located around the pixel to be repaired is obtained. Obtainable.

本発明の欠陥検査方法は、前記欠陥検出方法にて検査対象中の評価対象欠陥種を検出する欠陥検出工程と、前記欠陥検出工程にて検出された前記評価対象欠陥種の定量的評価値に基づいて前記検査対象を評価する評価工程と、を備えることを特徴とする。   The defect inspection method of the present invention includes a defect detection step for detecting an evaluation target defect type in the inspection target by the defect detection method, and a quantitative evaluation value of the evaluation target defect type detected in the defect detection step. And an evaluation process for evaluating the inspection object based on the evaluation object.

このような構成によれば、まず、欠陥検出工程において、非評価欠陥種修補手段で非評価欠陥種が修補された後の画像データから評価対象欠陥種を検出できる。そして、この検出された評価対象欠陥種の定量的評価値として、例えば、欠陥面積や平均輝度を算出した場合、欠陥面積は非評価対象欠陥種の修補の前後で変化することがなく、かつ、平均輝度は評価対象欠陥種に基づく値となる。その結果、評価工程において検査対象の評価を行うにあたって、評価対象欠陥種に基づいた適切な評価を行うことができ、人の見た目の印象に近似した評価結果を得ることができる。   According to such a configuration, first, in the defect detection step, the defect type to be evaluated can be detected from the image data after the non-evaluated defect type repairing means has repaired the non-evaluated defect type. And as a quantitative evaluation value of the detected evaluation target defect type, for example, when calculating the defect area and average luminance, the defect area does not change before and after repair of the non-evaluation target defect type, and The average luminance is a value based on the defect type to be evaluated. As a result, in evaluating the inspection object in the evaluation process, it is possible to perform an appropriate evaluation based on the defect type of the evaluation object, and to obtain an evaluation result that approximates the impression of human appearance.

本発明の欠陥検出装置は、検査対象を撮像してその画像データを取得する検査画像取得手段と、前記検査画像取得工程にて取得された画像データ中で面積が所定サイズ未満の欠陥種である非評価対象欠陥種の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えてこの非評価対象欠陥種を修補する非評価対象欠陥種修補手段と、前記非評価対象欠陥種修補手段にて前記非評価対象欠陥種が修補された画像データにおいて面積が所定サイズ以上の欠陥種である評価対象欠陥種を検出する評価対象欠陥種検出手段と、を備えることを特徴とする。   The defect detection apparatus of the present invention is an inspection image acquisition unit that captures an image of an inspection object and acquires the image data, and is a defect type whose area is less than a predetermined size in the image data acquired in the inspection image acquisition step. Non-evaluation target defect type repair means for repairing the non-evaluation target defect type by replacing the luminance data of each pixel of the non-evaluation target defect type with an interpolation value based on the luminance data of surrounding pixels, and the non-evaluation target defect type repair And an evaluation target defect type detection means for detecting an evaluation target defect type whose area is a defect type having a predetermined size or more in the image data in which the non-evaluation target defect type is repaired by the means.

本発明の欠陥検出プログラムは、検査対象中の所定面積以上の欠陥種である評価対象欠陥種を検出する欠陥検出装置にコンピュータを組み込んで、このコンピュータを、検査対象を撮像してその画像データを取得する検査画像取得手段と、前記検査画像取得工程にて取得された画像データ中で面積が所定サイズ未満の欠陥種である非評価対象欠陥種の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えてこの非評価対象欠陥種を修補する非評価対象欠陥種修補手段と、前記非評価対象欠陥種修補手段にて前記非評価対象欠陥種が修補された画像データにおいて面積が所定サイズ以上の欠陥種である評価対象欠陥種を検出する評価対象欠陥種検出手段と、して機能させることを特徴とする。   The defect detection program of the present invention incorporates a computer into a defect detection apparatus that detects a defect type to be evaluated that is a defect type having a predetermined area or more in an inspection target, and the computer images the inspection target and captures the image data thereof. Luminance data of each pixel of the non-evaluation target defect type which is a defect type whose area is less than a predetermined size in the image data acquired in the inspection image acquisition step The non-evaluation target defect type repairing means for repairing the non-evaluation target defect type by replacing with the interpolation value based on the non-evaluation target defect type repairing means, and the area in the image data in which the non-evaluation target defect type repairing means is repaired It functions as an evaluation target defect type detection means for detecting an evaluation target defect type that is a defect type of a predetermined size or larger.

本発明の記録媒体は、前記欠陥検出プログラムをコンピュータ読取可能に記録したことを特徴とする。   The recording medium of the present invention is characterized in that the defect detection program is recorded in a computer-readable manner.

このような構成によれば、上記発明と同様の作用効果を奏することができる。
すなわち、非評価欠陥種修補手段で非評価欠陥種が修補された後の画像データから評価対象欠陥種を検出して(評価対象欠陥種検出手段)、この検出された評価対象欠陥種の定量的評価値として、例えば、欠陥面積や平均輝度を算出した場合、欠陥面積は非評価対象欠陥種の修補の前後で変化することがなく、かつ、平均輝度は評価対象欠陥種に基づく値となる。その結果、例えば、検査対象の評価を行うにあたって、評価対象欠陥種に基づいた適切な評価を行うことができ、人の見た目の印象に近似した評価結果を得ることができる。
According to such a configuration, the same effects as those of the above-described invention can be achieved.
In other words, the evaluation target defect type is detected from the image data after the non-evaluation defect type repairing means is repaired by the non-evaluation defect type repairing means (evaluation target defect type detection means), and the detected evaluation target defect type is quantitatively detected. For example, when the defect area and the average luminance are calculated as the evaluation value, the defect area does not change before and after the repair of the non-evaluation target defect type, and the average luminance is a value based on the evaluation target defect type. As a result, for example, when evaluating the inspection object, it is possible to perform an appropriate evaluation based on the defect type to be evaluated, and to obtain an evaluation result that approximates the impression of human appearance.

また、欠陥検出装置内にCPUやメモリを配置してコンピュータとして機能させ、このコンピュータに所定の光学パネル検査プログラムを組み込んで各機能手段として機能させてもよい。所定の光学パネル検査プログラムをインストールするには、メモリカードやCD−ROM等を直接差し込んで行ってもよいし、これらの記憶媒体を読み取る機器を外付けで接続してもよい。さらには、LANケーブル、電話線等を接続して通信によってプログラムを供給しインストールしてもよいし、無線によってプログラムを供給してインストールしてもよい。   Further, a CPU or a memory may be arranged in the defect detection apparatus so as to function as a computer, and a predetermined optical panel inspection program may be incorporated in the computer to function as each functional unit. In order to install a predetermined optical panel inspection program, a memory card, a CD-ROM or the like may be directly inserted, or a device for reading these storage media may be connected externally. Furthermore, the program may be supplied and installed by communication by connecting a LAN cable, a telephone line, or the like, or the program may be supplied and installed wirelessly.

このような記録媒体やインターネット等の通信手段で提供される本発明の欠陥検出プログラムを欠陥検出装置に組み込めば、所定パラメータの変更などが簡便である。   If the defect detection program of the present invention provided by such a recording medium or communication means such as the Internet is incorporated in the defect detection apparatus, it is easy to change predetermined parameters.

以下、本発明の実施の形態を図示するとともに図中の各要素に付した符号を参照して説明する。
(第1実施形態)
本発明の欠陥検査方法に係る第1実施形態としての光学パネル検査方法について説明する。
図1は、光学パネル検査方法を実施する光学パネル検査装置(欠陥検査装置)の全体構成を示す図である。
光学パネル検査装置100は、検査対象となる液晶ライトバルブ(光学パネル)112を内蔵して画像を投影する画像投影手段110と、液晶ライトバルブ112を駆動するパターンジェネレータ120と、画像投影手段110から投射される画像を映写するスクリーン134を有する映写部130と、スクリーン134に映写された画像を撮像するCCDカメラ(撮像手段)140と、CCDカメラ140で撮像された画像データに基づいてムラ欠陥(評価対象欠陥種)730を検出するとともに検出したムラ欠陥730に基づいてランク判定(評価)を行う演算処理部200と、を備えている。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments of the present invention will be illustrated and described with reference to reference numerals attached to respective elements in the drawings.
(First embodiment)
An optical panel inspection method as a first embodiment according to the defect inspection method of the present invention will be described.
FIG. 1 is a diagram illustrating an overall configuration of an optical panel inspection apparatus (defect inspection apparatus) that performs an optical panel inspection method.
The optical panel inspection apparatus 100 includes a liquid crystal light valve (optical panel) 112 to be inspected, an image projection unit 110 that projects an image, a pattern generator 120 that drives the liquid crystal light valve 112, and an image projection unit 110. A projection unit 130 having a screen 134 for projecting an image to be projected, a CCD camera (imaging means) 140 for imaging an image projected on the screen 134, and a mura defect (based on image data captured by the CCD camera 140) And an arithmetic processing unit 200 that performs rank determination (evaluation) on the basis of the detected nonuniformity defect 730.

画像投影手段110は、光源111と、パターンジェネレータ120により駆動され光源111からの光を変調する液晶ライトバルブ(光学パネル)112と、液晶ライトバルブ112からの光を集光して投射する投射レンズ113と、投射レンズ113からの光をスクリーン134に向けて反射するミラー114と、を備えている。
液晶ライトバルブ112は、画素ごとに液晶セルを備える液晶パネルであり、各液晶セルに偏光不良等があった場合、映写された画像に表示欠陥が生じることになる。表示欠陥としては、点欠陥(非評価対象欠陥種)710、シミ欠陥(非評価対象欠陥種)720、ムラ欠陥(評価対象欠陥種)730などがある。
なお、この画像投影手段110は、例えば、プロジェクタ等の投射型画像表示デバイスを模したものである。
The image projection unit 110 is a light source 111, a liquid crystal light valve (optical panel) 112 that is driven by the pattern generator 120 and modulates the light from the light source 111, and a projection lens that collects and projects the light from the liquid crystal light valve 112. 113 and a mirror 114 that reflects light from the projection lens 113 toward the screen 134.
The liquid crystal light valve 112 is a liquid crystal panel provided with a liquid crystal cell for each pixel. If each liquid crystal cell has a polarization failure or the like, a display defect occurs in a projected image. Examples of the display defect include a point defect (non-evaluation target defect type) 710, a spot defect (non-evaluation target defect type) 720, and a mura defect (evaluation target defect type) 730.
The image projecting unit 110 imitates a projection type image display device such as a projector, for example.

パターンジェネレータ120は、液晶ライトバルブ112の各液晶セルを駆動する各スイッチング素子に駆動信号を印加して液晶ライトバルブ112を所定パターンで駆動する。
ここで、画像表示検査を行うにあたっては、総ての表示画素が同じ入力レベルで同じ輝度を示すかを検査するところ、パターンジェネレータ120は、総ての液晶セルを同じ入力レベルで駆動する。
The pattern generator 120 applies a drive signal to each switching element that drives each liquid crystal cell of the liquid crystal light valve 112 to drive the liquid crystal light valve 112 in a predetermined pattern.
Here, in performing the image display inspection, it is inspected whether all the display pixels exhibit the same luminance at the same input level, and the pattern generator 120 drives all the liquid crystal cells at the same input level.

映写部130は、暗ボックス131と、この暗ボックス131内に設けられたスクリーン134と、を備える。そして、暗ボックス131は、画像投影手段110からの光が入射される開口部132と、CCDカメラ140でスクリーン134上の画像を撮像するための開口部133と、を有する。   The projection unit 130 includes a dark box 131 and a screen 134 provided in the dark box 131. The dark box 131 has an opening 132 into which light from the image projection unit 110 is incident, and an opening 133 for capturing an image on the screen 134 with the CCD camera 140.

CCDカメラ140は、スクリーン134上に映写された画像を撮像して、撮像した画像データを演算処理部200に出力する。
ここで、CCDカメラ140にて撮像された画像データに基づいて液晶ライトバルブ112の表示欠陥を検出するので、CCDカメラ140は液晶ライトバルブ112の階調数を超える階調数で画像を撮像する機能を有する必要がある。例えば、液晶ライトバルブ112で256階調が表現されるとき、CCDカメラ140の画像データは、黒を“0”、白を“4095”とする12ビットデータの階調数を有する。
The CCD camera 140 captures an image projected on the screen 134 and outputs the captured image data to the arithmetic processing unit 200.
Here, since the display defect of the liquid crystal light valve 112 is detected based on the image data captured by the CCD camera 140, the CCD camera 140 captures an image with the number of gradations exceeding the number of gradations of the liquid crystal light valve 112. It is necessary to have a function. For example, when 256 gradations are expressed by the liquid crystal light valve 112, the image data of the CCD camera 140 has the gradation number of 12-bit data in which “0” is black and “4095” is white.

演算処理部200は、CPU(中央処理装置)と所定のメモリ(記憶装置)とを有し、光学パネル検査プログラムが組み込まれることにより、図2に示されるように、前処理手段300と、点・シミ欠陥修補手段(非評価対象欠陥種修補手段)400と、ムラ欠陥検出手段(評価対象欠陥種検出手段)500と、ランク判定手段(評価手段)600と、しての機能を実現する。
ここで、前処理手段300は、検査画像取得手段310と、背景差分手段320と、エリア抽出手段330と、輝度値算出手段340と、を備え、点・シミ欠陥修補手段400は、点・シミ欠陥検出手段(非評価対象欠陥種検出手段)410と、補間手段450と、を備え、点・シミ欠陥検出手段410は、画像縮小手段420と、フィルタリング手段430と、2値化手段440と、補間手段450は、修補対象画素サーチ手段460と、補間値算出手段470と、を備える。
なお、これら各手段の動作については、図3、図4、図5のフローチャートを参照して説明する
The arithmetic processing unit 200 has a CPU (central processing unit) and a predetermined memory (storage device), and by incorporating an optical panel inspection program, as shown in FIG. The function as a spot defect repairing means (non-evaluation target defect type repairing means) 400, a mura defect detection means (evaluation target defect type detection means) 500, and a rank determination means (evaluation means) 600 is realized.
Here, the preprocessing unit 300 includes an inspection image acquisition unit 310, a background difference unit 320, an area extraction unit 330, and a luminance value calculation unit 340. The point / stain defect repair unit 400 includes a point / spot defect correction unit 400. A defect detection unit (non-evaluation target defect type detection unit) 410 and an interpolation unit 450; the point / stain defect detection unit 410 includes an image reduction unit 420, a filtering unit 430, and a binarization unit 440; The interpolation unit 450 includes a repair target pixel search unit 460 and an interpolation value calculation unit 470.
The operation of each means will be described with reference to the flowcharts of FIGS. 3, 4, and 5.

(光学パネル検査方法)
次に、光学パネル検査方法について、図3、図4、図5のフローチャートを参照して説明する。
図3は、光学パネル検査方法の処理手順を示すフローチャートである。
図3のフローチャートに示されるように、光学パネル検査方法は全体構成として、検査対象となる液晶ライトバルブ112による画像データを取得するとともに画像データを前処理する前処理工程(ST100)と、前処理工程(ST100)にて前処理された画像データ中の点欠陥710およびシミ欠陥720の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えて点欠陥710およびシミ欠陥720を修補する点・シミ欠陥修補工程(非評価対象欠陥種修補工程、ST200)と、点・シミ欠陥修補工程(ST200)によって点欠陥710およびシミ欠陥720が修補された画像データに基づいてこの画像データ内のムラ欠陥730を検出するムラ欠陥検出工程(評価対象欠陥種検出工程、ST300)と、ムラ欠陥検出工程(ST300)にて検出されたムラ欠陥730の領域の定量的評価値に基づいて液晶ライトバルブ112のランク判定(評価)を行うランク判定工程(評価工程、ST400)と、を備える。
(Optical panel inspection method)
Next, the optical panel inspection method will be described with reference to the flowcharts of FIGS.
FIG. 3 is a flowchart showing a processing procedure of the optical panel inspection method.
As shown in the flowchart of FIG. 3, the optical panel inspection method has, as a whole structure, a preprocessing step (ST100) for acquiring image data by the liquid crystal light valve 112 to be inspected and preprocessing the image data, and preprocessing. The point defect 710 and the spot defect 720 are repaired by replacing the luminance data of each pixel of the point defect 710 and the spot defect 720 in the image data preprocessed in the step (ST100) with an interpolated value based on the luminance data of the surrounding pixels. In this image data, based on the point / spot defect repairing process (non-evaluation target defect type repairing process, ST200), and the point defect 710 and spot defect 720 repaired by the point / stain defect repairing process (ST200). Mura defect detection step (evaluation target defect type detection step, ST300) for detecting mura defect 730, and mura Recessed detection step (ST 300) rank determination step (evaluation step, ST400) for performing rank determination of the liquid crystal light valve 112 (Evaluation) Based on the quantitative evaluation value of the detected regions of nonuniformity defects 730 in provided with a.

図4は、前処理工程(ST100)の処理手順を示すフローチャートである。
ST100の前処理工程について図4のフローチャートを参照して説明する。
前処理工程(ST100)では、まず、ST110において欠陥検出を行う対象となる検査画像を取得する(検査画像取得工程)。検査画像の取得にあたっては、液晶ライトバルブ112を画像投影手段110にセットしてスクリーン134に向けて画像を投射し、この画像をCCDカメラ140で撮像する。撮像された画像データは、検査画像取得手段310に出力されて記憶される。
FIG. 4 is a flowchart showing the processing procedure of the preprocessing step (ST100).
The pretreatment process of ST100 will be described with reference to the flowchart of FIG.
In the preprocessing step (ST100), first, an inspection image to be subjected to defect detection in ST110 is acquired (inspection image acquisition step). In obtaining the inspection image, the liquid crystal light valve 112 is set on the image projection unit 110 and an image is projected toward the screen 134, and this image is captured by the CCD camera 140. The captured image data is output to the inspection image acquisition unit 310 and stored.

次に、ST120において、検査対象となる画像データから背景画像を減算する背景差分工程が背景差分手段320により行われる。背景差分手段320には、予め欠陥がないと分かっている液晶ライトバルブ112を用いてスクリーン134に投射された画像のデータが背景画像として設定記憶されている。そして、背景差分工程(ST120)では、検査画像取得手段310に記憶された画像データから背景画像を減算する。すると、例えばスクリーン134の汚れなどによるノイズが画像データから除去されて、液晶ライトバルブ112による表示欠陥のみを反映した画像データが得られる。   Next, in ST120, the background difference unit 320 performs a background difference step of subtracting the background image from the image data to be inspected. In the background difference unit 320, data of an image projected on the screen 134 using the liquid crystal light valve 112 that is known not to be defective in advance is set and stored as a background image. In the background difference step (ST120), the background image is subtracted from the image data stored in the inspection image acquisition unit 310. Then, for example, noise due to dirt on the screen 134 is removed from the image data, and image data reflecting only display defects due to the liquid crystal light valve 112 is obtained.

次に、ST130において、画像データから検査対象となる画面部分のみを抽出するエリア抽出工程がエリア抽出手段330により行われる。すなわち、スクリーン134に映写される画像はスクリーン134の全面ではなく、例えば、縁部分を除いた中央領域に映写されるところ、エリア抽出工程(ST130)では、画像データから不要部分をトリミングして表示エリアの画像のみを抽出する。   Next, in ST130, the area extraction unit 330 performs an area extraction process for extracting only the screen portion to be inspected from the image data. That is, the image projected on the screen 134 is projected not on the entire surface of the screen 134 but on, for example, the central area excluding the edge portion. In the area extraction step (ST130), an unnecessary portion is trimmed from the image data and displayed. Extract only the image of the area.

このようにエリア抽出された画像に対し、ST140において、輝度値算出工程が輝度値算出手段340により行われる。CCDカメラ140で撮像された画像はCCDカメラ140の撮像素子単位での画像データであって、一つの表示画素は複数の撮像素子で撮像されている。そこで、表示画素ごとに撮像素子の輝度値を平均した値を各表示画素の輝度値として算出する。   In ST140, the luminance value calculation unit 340 performs the luminance value calculation process on the image extracted in this way. An image picked up by the CCD camera 140 is image data for each image pickup element of the CCD camera 140, and one display pixel is picked up by a plurality of image pickup elements. Therefore, a value obtained by averaging the luminance values of the image sensor for each display pixel is calculated as the luminance value of each display pixel.

前処理工程(ST100)の後、ST200において点・シミ欠陥修補工程が点・シミ欠陥修補手段400により行われる。
図5は、点・シミ欠陥修補工程の処理手順を示すフローチャートである。
点・シミ欠陥修補工程(ST200)にあたって、まず、ST210において、点・シミ欠陥検出工程(非評価対象欠陥種検出工程)が点・シミ欠陥検出手段410によって行われる。点・シミ欠陥検出工程(ST210)では、画像データに所定サイズの欠陥強調フィルタ431(図7参照)をかけて欠陥検出を行うところ、点・シミ欠陥修補工程(ST200)における修補対象となる点欠陥710・シミ欠陥720を欠陥強調フィルタ431によって検出できるように画像サイズを数段階で縮小しながら(ST211)、縮小した画像データに欠陥強調フィルタ431をかけて(ST212)、欠陥(点欠陥710、シミ欠陥720)を検出する。
After the pretreatment process (ST100), a point / stain defect repairing step 400 is performed by the point / stain defect repairing means 400 in ST200.
FIG. 5 is a flowchart showing the processing procedure of the spot / stain defect repairing step.
In the point / spot defect repairing step (ST200), first, in ST210, the point / stain defect detecting step (non-evaluation target defect type detecting step) is performed by the point / stain defect detecting means 410. In the point / stain defect detection step (ST210), defect detection is performed by applying a defect enhancement filter 431 (see FIG. 7) of a predetermined size to the image data, and the point to be repaired in the point / stain defect repair step (ST200). While reducing the image size in several stages so that the defect 710 and the spot defect 720 can be detected by the defect enhancement filter 431 (ST211), the reduced image data is subjected to the defect enhancement filter 431 (ST212), and the defect (point defect 710) is detected. , Spot defect 720) is detected.

例えば、画像サイズを1/2にした状態で欠陥強調フィルタ431をかけると点欠陥710のサイズが欠陥強調フィルタ431のサイズに適合して点欠陥710が検出され、画像サイズを1/4や1/8にした状態で欠陥強調フィルタ431をかけるとシミ欠陥720のサイズが欠陥強調フィルタ431のサイズに適合してシミ欠陥720が検出されることになる。
以下、点・シミ欠陥検出工程(ST210)の各工程(ST211〜ST213)を説明する。
For example, when the defect enhancement filter 431 is applied in a state where the image size is halved, the size of the point defect 710 matches the size of the defect enhancement filter 431, and the point defect 710 is detected. When the defect enhancement filter 431 is applied in the state of / 8, the size of the stain defect 720 matches the size of the defect enhancement filter 431, and the stain defect 720 is detected.
Hereinafter, each step (ST211 to ST213) of the point / stain defect detection step (ST210) will be described.

点・シミ欠陥検出工程(ST210)にあたって、まず、ST211において画像縮小工程が画像縮小手段420により行われる。画像縮小手段420には、予め数段階の画像縮小率が設定されており、例えば、縦横サイズで1/2、1/4、1/8などの画像縮小率が設定されている。例えば、図6(A)に示される元のサイズに画像に対して、4画素を一つの画素にまとめる縮小を行う。4つの画素をまとめる際、輝度値としては4画素の平均をとる。このようにして元のサイズから縦横が1/2で画素数が1/4に縮小された縮小画像(図6中のB)が得られる。   In the point / stain defect detection step (ST210), first, an image reduction step is performed by the image reduction means 420 in ST211. In the image reduction means 420, several stages of image reduction ratios are set in advance. For example, image reduction ratios of 1/2, 1/4, 1/8, etc. are set in the vertical and horizontal sizes. For example, the image is reduced to the original size shown in FIG. 6A by combining four pixels into one pixel. When combining four pixels, the average of the four pixels is taken as the luminance value. In this way, a reduced image (B in FIG. 6) obtained by reducing the original size to 1/2 in length and width and the number of pixels to 1/4 is obtained.

なお、このように縮小された画像データ(図6中のB)における各セルは、元の画像データの表示画素をまとめたものであって、元の画像データの表示画素とは異なるのであるが、以後の説明では縮小された画像データにおけるセルも画素と称する。   Each cell in the image data thus reduced (B in FIG. 6) is a collection of display pixels of the original image data, and is different from the display pixels of the original image data. In the following description, the cells in the reduced image data are also referred to as pixels.

次に、ST212において、縮小された画像データに欠陥強調フィルタ431(図7)をかけて欠陥検出を行うフィルタリング工程がフィルタリング手段430により行われる。フィルタリング手段430には、図7(A)に示される5×5の欠陥強調フィルタ431が設定記憶されている。この欠陥強調フィルタ431は、中央の着目画素Eの輝度値(輝度データ)から周囲にある4画素A、B、C、Dの輝度値(輝度データ)の平均輝度データを減算して、着目画素(E)の強調輝度値とするフィルタである(図7(B)参照)。この欠陥強調フィルタ431をかけることによって中央の着目画素(E)と周囲の画素(A〜D)との輝度差が強調され、点欠陥710・シミ欠陥720に含まれる輝度異常の欠陥画素では、フィルタ出力値としての強調輝度値が非常に大きな値となる。
画像データに欠陥強調フィルタ431をかけた結果の一例を図8に示す。
Next, in ST212, the filtering unit 430 performs a filtering step of performing defect detection by applying the defect enhancement filter 431 (FIG. 7) to the reduced image data. The filtering unit 430 stores and stores a 5 × 5 defect enhancement filter 431 shown in FIG. The defect enhancement filter 431 subtracts the average luminance data of the luminance values (luminance data) of the surrounding four pixels A, B, C, and D from the luminance value (luminance data) of the central pixel of interest E to obtain the pixel of interest. This is a filter for the enhanced luminance value of (E) (see FIG. 7B). By applying the defect enhancement filter 431, the luminance difference between the center pixel of interest (E) and the surrounding pixels (A to D) is emphasized, and in the defective pixels with abnormal luminance included in the point defect 710 and the spot defect 720, The enhanced luminance value as the filter output value is a very large value.
An example of the result of applying the defect enhancement filter 431 to the image data is shown in FIG.

次に、ST213において、欠陥強調フィルタ431によって輝度差が強調された画像データ(図8)の強調輝度値を所定閾値で2値化する2値化工程が2値化手段440にて行われる。
2値化手段440には、輝度が正常である正常画素と輝度が異常である欠陥画素とを強調輝度値に基づいて区分するための閾値(例えば250)が設定されている。
また、2値化手段440には、画像データと同サイズの2値化配列空間441(図9参照)が作成されて記憶されている。そして、2値化工程(ST213)では、画像データ(図8)における各画素の強調輝度値を閾値(250)と比較して、強調輝度値が閾値よりも小さければ2値化配列空間441(図9)の対応するセルに“0”を付与し、強調輝度値が閾値以上であれば2値化配列空間441の対応するセルに“1”を付与する。
このようにして2値化配列空間441において正常画素に対応するセルには“0”が配置され、欠陥画素に対応するセルには“1”が配置され、図9に示される2値化配列空間441が生成される。
Next, in ST213, the binarization unit 440 performs a binarization step of binarizing the enhanced luminance value of the image data (FIG. 8) whose luminance difference is enhanced by the defect enhancement filter 431 with a predetermined threshold.
In the binarizing means 440, a threshold value (for example, 250) is set for distinguishing normal pixels having normal luminance and defective pixels having abnormal luminance based on the emphasized luminance value.
In the binarizing means 440, a binarized array space 441 (see FIG. 9) having the same size as the image data is created and stored. In the binarization step (ST213), the emphasized luminance value of each pixel in the image data (FIG. 8) is compared with the threshold value (250). If the emphasized luminance value is smaller than the threshold value, the binarized array space 441 ( “0” is assigned to the corresponding cell in FIG. 9, and “1” is assigned to the corresponding cell in the binarized array space 441 if the emphasized luminance value is greater than or equal to the threshold value.
In this way, in the binarized array space 441, “0” is arranged in the cell corresponding to the normal pixel, “1” is arranged in the cell corresponding to the defective pixel, and the binarized array shown in FIG. A space 441 is generated.

点・シミ欠陥検出工程(ST210)にて点欠陥710あるいはシミ欠陥720内に位置する欠陥画素が検出されたところ、次に、検出された表示欠陥の各画素の強調輝度値を周囲の画素の強調輝度値に基づく補間値で置き換えて欠陥を修補する補間工程(ST220)が補間手段450により行われる。
以下、補間工程(ST220)の各工程について説明する。
When a defective pixel located in the point defect 710 or the spot defect 720 is detected in the point / stain defect detection step (ST210), next, the emphasized luminance value of each pixel of the detected display defect is determined for the surrounding pixels. An interpolation process (ST220) is performed by the interpolation means 450 to repair the defect by replacing it with an interpolation value based on the emphasized luminance value.
Hereinafter, each step of the interpolation step (ST220) will be described.

補間工程(ST220)にあたっては、まず、修補対象となる画素を順番にサーチする修補対象画素サーチ工程(ST221)が修補対象画素サーチ手段460にて行われる。
修補対象画素サーチ手段460には、図10、図11、図12、図13に示される1番から25番までのマッチングフィルタが予め設定記憶されている。
ここで、マッチングフィルタは5×5のサイズを有し、各セルに“0”または“1”が配置されたフィルタである。
そして、マッチングフィルタは、4つの群で構成され、図10に示される1番から8番までの第1群マッチングフィルタと、図11に示される9番から16番までの第2群マッチングフィルタと、図12に示される17番から24番の第3群マッチングフィルタと、図13に示される25番の第4群マッチングフィルタと、で構成されている。
In the interpolation step (ST220), first, a repair target pixel search unit (460) performs a repair target pixel search step (ST221) for sequentially searching for pixels to be repaired.
In the repair target pixel search means 460, matching filters Nos. 1 to 25 shown in FIGS. 10, 11, 12, and 13 are preset and stored.
Here, the matching filter has a size of 5 × 5 and is a filter in which “0” or “1” is arranged in each cell.
The matching filter is composed of four groups. The first group matching filter from No. 1 to No. 8 shown in FIG. 10 and the second group matching filter from No. 9 to No. 16 shown in FIG. The third group matching filter from No. 17 to No. 24 shown in FIG. 12 and the fourth group matching filter of No. 25 shown in FIG. 13 are configured.

第1群マッチングフィルタ(1番から8番、図10)は、中央の着目セルに配置された“1”の周囲に3つの“1”を配置するとともに着目セルからみて5つの方向(a、b、c、d、e)で“0”が2つ連続するパターンを網羅している。
第2群マッチングフィルタ(9番から16番、図11)は、中央の着目セルに配置された“1”の周囲に2つの“1”を配置するとともに着目セルからみて6つの方向(a〜f)で“0”が2つ連続するパターンを網羅している。
第3群マッチングフィルタ(17番から24番、図12)は、中央の着目セルに配置された“1”の周囲に1つの“1”を配置するとともに着目セルからみて7つの方向(a〜g)で“0”が2つ連続するパターンを網羅している。
そして、第4群のマッチングフィルタである25番のマッチングフィルタ(図13)では、中央の着目セルに“1”を配置し、着目セルからみて8つの方向(a〜h)総てで“0”が2つ連続している。
The first group matching filter (No. 1 to No. 8, FIG. 10) arranges three “1” s around “1” arranged in the center target cell and has five directions (a, b, c, d, and e) cover two consecutive “0” patterns.
The second group matching filter (No. 9 to No. 16, FIG. 11) arranges two “1” s around “1” arranged in the center target cell and has six directions (a˜) as viewed from the target cell. f) covers a pattern of two consecutive “0” s.
The third group matching filter (No. 17 to No. 24, FIG. 12) arranges one “1” around “1” arranged in the center target cell and has seven directions (a˜) as viewed from the target cell. g) covers the pattern of two consecutive “0” s.
In the 25th matching filter (FIG. 13), which is the fourth group of matching filters, “1” is arranged in the center target cell, and “0” in all eight directions (a to h) as viewed from the target cell. "Is two consecutive.

なお、図10〜図13において「*」が配置されているセルは、“0”でも“1”でも良いとの意である。   10 to 13, the cell in which “*” is arranged may be “0” or “1”.

修補対象画素サーチ工程(ST221)では、1番から25番のマッチングフィルタを2値化配列空間441(図9)の例えば左上から出発して右下まで総てのセルにかけていく。
このとき、第1群の1番目のマッチングフィルタから順に2値化配列空間441にかけていって、2値化配列空間441にマッチングフィルタと一致する“0”と“1”の配列が存在するかをみる。すると、着目セルの周囲で“0”が配置されているセルを順次見つけることになるので、表示欠陥のうちで外縁に位置する画素を順番に見つけることになる。
In the repair target pixel search step (ST221), the first through the 25th matching filters start from, for example, the upper left of the binarized array space 441 (FIG. 9) and go to all the cells to the lower right.
At this time, it is applied to the binarized array space 441 in order from the first matching filter of the first group, and it is determined whether or not “0” and “1” arrays that match the matching filter exist in the binarized array space 441. View. Then, since cells where “0” is arranged around the cell of interest are sequentially found, pixels located on the outer edge among the display defects are found in order.

例えば、図9に示される2値化配列空間441に対して1番のマッチングフィルタから順にかけてみると、図14に示されるように、1番のマッチングフィルタに一致する配列が2値化配列空間441に存在することがわかる。このようにマッチングフィルタに一致する配列が見つかったところで、中央の着目セルに対応する画素が修補対象画素となる。   For example, when the binarized array space 441 shown in FIG. 9 is applied in order from the first matching filter, as shown in FIG. 14, the array that matches the first matching filter is the binarized array space. As can be seen from FIG. When an array that matches the matching filter is found in this way, the pixel corresponding to the center target cell becomes the repair target pixel.

ST221の修補対象画素サーチ工程にてサーチされた修補対象画素に対し、ST222において、周囲に位置する画素の強調輝度値に基づいて修補対象画素の位置における輝度の補間値を算出する補間値算出工程が補間値算出手段470にて行われる。
補間値算出手段470には、マッチングフィルタの中央にある着目セルを修補対象画素として、周囲の画素の強調輝度値から修補対象画素の補間値を算出する補間値算出式が設定されている。
なお、1番から25番までのマッチングフィルタでそれぞれ“0”と“1”との配列パターンが異なるので、補間値算出式は、1番から25番のマッチングパターンごとにそれぞれ設定される。
Interpolation value calculation step of calculating the interpolation value of the luminance at the position of the repair target pixel in ST222 based on the emphasized luminance value of the surrounding pixels in ST222 for the repair target pixel searched in the repair target pixel search step of ST221 Is performed by the interpolation value calculation means 470.
In the interpolation value calculation means 470, an interpolation value calculation formula for calculating the interpolation value of the repair target pixel from the emphasized luminance value of the surrounding pixels is set with the target cell in the center of the matching filter as the repair target pixel.
In addition, since the arrangement patterns of “0” and “1” are different in the matching filters No. 1 to No. 25, the interpolation value calculation formula is set for each of the No. 1 to No. 25 matching patterns.

補間値算出式について簡単に説明する。
各マッチングフィルタは、中央の着目セルに対し複数の方向で“0”が2つ並ぶ配列であるところ、中央の着目セル(修補対象画素)の補間値は、“0”が配置されたセルに対応する画素の強調輝度値の変化率から算出される。
つまり、“0”が2つ並んだ方向において着目セルに遠い側から近い側への強調輝度値の変化度をもとめ、これに近い側の強調輝度値を加算することにより、修補対象画素の補間値を得ることができる。
例えば、図15の配列で、中央の着目セルMに対応する画素の強調輝度値Lが図16に示されるように閾値を超えてこの画素が欠陥画素となっている場合、着目セルに隣接して“0”が2つ並んだA、Gの方向(図15中のa方向)に基づく補間基礎値IM(AG)は次の式で求められる。
The interpolation value calculation formula will be briefly described.
Each matching filter is an array in which two “0” s are arranged in a plurality of directions with respect to the central target cell, and the interpolation value of the central target cell (the pixel to be repaired) is the cell in which “0” is arranged. It is calculated from the change rate of the emphasized luminance value of the corresponding pixel.
That is, in the direction in which two “0” s are arranged, the degree of change in the emphasized luminance value from the far side to the near side of the target cell is obtained, and the emphasized luminance value on the near side is added to interpolate the repair target pixel. A value can be obtained.
For example, in the arrangement of Figure 15, if the pixel exceeds the threshold value as emphasized luminance value L M of the pixel corresponding to the center of the target cell M shown in FIG. 16 is a defective pixel, adjacent to the target cell Then, an interpolation basic value IM (AG) based on the directions of A and G (two directions “a” in FIG. 15) in which two “0” s are arranged is obtained by the following equation.

補間基礎値IM(AG)=L+(L−LInterpolated baseline I M (AG) = L G + (L G -L A)

そして、例えば、1番のマッチングフィルタでは着目セルの周囲の5方向(a方向〜e方向)で“0”が2つ連続するので、着目セルに対応する画素(修補対象画素)の補間値としては、これら5方向(a方向〜e方向)のそれぞれに基づく補間基礎値の平均値をとる。   For example, in the first matching filter, since two “0” s are consecutive in five directions (a direction to e direction) around the target cell, the interpolation value of the pixel (repair target pixel) corresponding to the target cell is used. Takes an average value of the basic interpolation values based on each of these five directions (a direction to e direction).

Figure 2006266752
Figure 2006266752

具体的に、図17に示される数値例において修補対象画素の補間値を算出する例を示すと次のようになる。   Specifically, an example of calculating the interpolation value of the repair target pixel in the numerical example shown in FIG. 17 is as follows.

Figure 2006266752
Figure 2006266752

このように補間値算出手段470には、1番から25番までのマッチングフィルタに対し、“0”が2つ連続する方向で各補間基礎値を算出するとともに各方向での補間基礎値を平均して補間値を算出する補間値算出式が予め設定されている。各マッチングフィルタに対し、補間値を算出するための“0”が連続する方向を示すと、図18、図19、図20、図21のようになる。   In this way, the interpolation value calculation means 470 calculates each interpolation basic value in the direction in which “0” continues for the matching filters from No. 1 to No. 25, and averages the interpolation basic value in each direction. Thus, an interpolation value calculation formula for calculating the interpolation value is set in advance. For each matching filter, the direction in which “0” for calculating the interpolation value continues is shown in FIG. 18, FIG. 19, FIG. 20, and FIG.

ST221において2値化配列空間441(図9)にマッチングフィルタをかけていってマッチングする箇所を探し、マッチングしたマッチングフィルタの補間値算出式に従って着目セルに対応する画素(修補対象画素)の補間値を算出したのち(ST222)、算出した補間値を画像データにおける修補対象画素の強調輝度値と置き換える。
このように修補対象画素の強調輝度値を補間値で置き換えた場合、2値化配列空間441において修補対象画素に対応するセルを“1”から“0”に書き換えて補間値で置き換えたことの標しとする(ST223)。
In ST221, the binarized array space 441 (FIG. 9) is applied with a matching filter to find a matching portion, and the interpolation value of the pixel (repair target pixel) corresponding to the target cell according to the interpolation value calculation formula of the matched matching filter. After calculating (ST222), the calculated interpolation value is replaced with the enhanced luminance value of the pixel to be repaired in the image data.
In this way, when the emphasized luminance value of the repair target pixel is replaced with the interpolation value, the cell corresponding to the repair target pixel in the binarized array space 441 is rewritten from “1” to “0” and replaced with the interpolation value. A mark is used (ST223).

なお、修補対象画素の周囲で2つ連続する正常画素の強調輝度値に基づいて修補対象画素の補間値を算出しても、この補間値がなおも閾値を超えていることもありうるが、算出した補間値が閾値を超えていても有効として修補対象画素の強調輝度値を補間値で置き換え、かつ、2値化配列空間441の着目セルを“0”に書き換える。   In addition, even if the interpolation value of the repair target pixel is calculated based on the emphasized luminance value of two normal pixels around the repair target pixel, this interpolation value may still exceed the threshold value, Even if the calculated interpolation value exceeds the threshold value, the emphasized luminance value of the pixel to be repaired is replaced with the interpolation value, and the target cell in the binarized array space 441 is rewritten to “0”.

このようにマッチングフィルタをかけていって(ST221)、マッチングした場合には修補対象画素の強調輝度値を補間値に置き換えるとともに2値化配列空間441の着目セルを“0”にしていき(ST222、ST223)、この処理を2値化配列空間441の総てのセルが“0”にまで繰り返す。
すると、点欠陥710・シミ欠陥720の領域に存在する欠陥画素の強調輝度値が順次補間値に置き換えられていき、例えば、図22に示されるように、点・シミ欠陥検出工程(ST210)でシミ欠陥720が検出されていた場合、このシミ欠陥720に存在する欠陥画素の強調輝度値が周囲の強調輝度値に基づく補間値で順次置き換えられていき、修補前は周囲から飛び出していたシミ欠陥720の強調輝度値が周囲に合わせてなめらかに修補されていく。なお、図22では、ムラ欠陥730にシミ欠陥720が重なっている場合を示している。
In this manner, the matching filter is applied (ST221). When matching is performed, the emphasized luminance value of the pixel to be repaired is replaced with an interpolation value, and the cell of interest in the binarized array space 441 is set to “0” (ST222). , ST223), this process is repeated until all the cells in the binarized array space 441 reach “0”.
Then, the emphasized luminance value of the defective pixel existing in the area of the point defect 710 / stain defect 720 is sequentially replaced with the interpolated value. For example, as shown in FIG. 22, in the point / stain defect detection step (ST210). When the spot defect 720 has been detected, the highlight luminance value of the defective pixel existing in the spot defect 720 is sequentially replaced with an interpolated value based on the surrounding highlight brightness value, and the spot defect that has protruded from the surroundings before repairing. The enhanced luminance value 720 is smoothly corrected according to the surroundings. Note that FIG. 22 shows a case where the spot defect 720 overlaps the unevenness defect 730.

そして、2値化配列空間441で総てのセルが“0”になったところで(ST224:YES)、次に、点欠陥710・シミ欠陥720に相当する面積領域に存在する欠陥画素の修補が完了しているか判断する(ST230)。すなわち、
フィルタリング工程(ST212)の欠陥強調フィルタ431(図7)で強調(検出)される欠陥の面積が画像縮小工程(ST211)で縮小された画像データのサイズに応じて異なるところ、ランク判定の対象とするムラ欠陥730よりも小さい面積領域の欠陥(点欠陥710・シミ欠陥720)が修補されているか判断する。
Then, when all the cells in the binarized array space 441 become “0” (ST224: YES), repair of defective pixels existing in the area corresponding to the point defect 710 and the spot defect 720 is performed next. It is determined whether it is completed (ST230). That is,
The area of the defect emphasized (detected) by the defect enhancement filter 431 (FIG. 7) in the filtering step (ST212) varies depending on the size of the image data reduced in the image reduction step (ST211). It is determined whether or not defects (point defects 710 and spot defects 720) in an area smaller than the uneven defect 730 to be repaired are repaired.

具体的には、画像縮小工程ST211の画像縮小手段420に画像縮小率として1/2、1/4、1/8の段階が設定されている場合、1/2、1/4および1/8の段階の画像縮小が行われたか確認し、1/2、1/4、1/8の総ての段階の画像縮小が行われていなければ(ST230:NO)、ST211の画像縮小工程に戻ってST211〜ST230の処理が繰り返される。   Specifically, when the image reduction unit 420 in the image reduction process ST211 has 1/2, 1/4, and 1/8 stages as image reduction ratios, 1/2, 1/4, and 1/8. It is confirmed whether or not the image reduction at the stage has been performed. If the image reduction at all the stages 1/2, 1/4, and 1/8 has not been performed (ST230: NO), the process returns to the image reduction process at ST211. Then, the processing of ST211 to ST230 is repeated.

ここで、ST211に戻って処理を繰り返すにあたっては、すでに1/2の縮小率で点欠陥710を修補した画像データをさらに1/2に縮小して元サイズの1/4サイズの縮小画像を生成し(画像縮小工程ST211)、この1/4サイズの画像データにフィルタリング工程ST212以下の各工程(ST212〜ST260)を行う。すると、1/2サイズの縮小画像データにおいて点欠陥710が修補されたうえで、さらに、1/4サイズの縮小画像データでシミ欠陥720が修補されていく。このように、画像データを所定サイズに縮小しながら点欠陥710・シミ欠陥720を修補していくことによって、ランク判定の対象であるムラ欠陥730のみが残ることになる。   Here, when returning to ST211 and repeating the processing, the image data that has already repaired the point defect 710 at a reduction ratio of 1/2 is further reduced to 1/2 to generate a reduced image of 1/4 size of the original size. (Image reduction step ST211), and the steps subsequent to the filtering step ST212 (ST212 to ST260) are performed on the 1 / 4-size image data. Then, the point defect 710 is repaired in the 1/2 size reduced image data, and the spot defect 720 is repaired in the 1/4 size reduced image data. In this way, by repairing the point defect 710 and the spot defect 720 while reducing the image data to a predetermined size, only the unevenness defect 730 that is the target of rank determination remains.

点欠陥710・シミ欠陥720に相当する面積領域に存在する欠陥画素の修補が完了したところで(ST230:YES)、ST300においてムラ欠陥730を検出するムラ欠陥検出工程がムラ欠陥検出手段500にて行われる。
ムラ欠陥検出手段500には、ムラ欠陥検出フィルタ510として、図23に示される7×7の欠陥強調フィルタが設定記憶されている。
When the repair of the defective pixel existing in the area corresponding to the point defect 710 and the spot defect 720 is completed (ST230: YES), the mura defect detection step of detecting the mura defect 730 in ST300 is performed by the mura defect detection means 500. Is called.
In the mura defect detection means 500, a 7 × 7 defect enhancement filter shown in FIG. 23 is set and stored as the mura defect detection filter 510.

このムラ欠陥検出フィルタ510は、中央9画素の強調輝度値から周囲10画素の強調輝度値の平均を減算して、着目画素の強調輝度値とするフィルタである。
このムラ欠陥検出フィルタ510を、点・シミ欠陥修補工程ST200にて点欠陥710・シミ欠陥720の修補が行われた画像データにかけていくと、ムラ欠陥サイズの欠陥が強調される。
そして、ムラ欠陥強調フィルタによって得られた強調輝度値を所定の閾値と比較してムラ欠陥730となる欠陥画素を検出していく。このように検出された欠陥画素が所定の面積内に所定個数以上存在する場合、その領域はムラ欠陥730であるとして検出されることになる(ST300)。
The unevenness defect detection filter 510 is a filter that subtracts the average of the enhancement luminance values of the surrounding ten pixels from the enhancement luminance value of the central nine pixels to obtain the enhancement luminance value of the target pixel.
When this mura defect detection filter 510 is applied to the image data in which the point defect 710 / stain defect 720 has been repaired in the point / stain defect repair process ST200, the defect of the mura defect size is emphasized.
Then, the enhanced luminance value obtained by the mura defect enhancement filter is compared with a predetermined threshold value to detect defective pixels that become the mura defect 730. If there are a predetermined number or more of defective pixels detected in this way, the region is detected as a mura defect 730 (ST300).

ここで、ST100の前処理工程からST300のムラ欠陥検出により、欠陥検出方法が構成される。   Here, a defect detection method is constituted by the mura defect detection of ST300 from the pretreatment process of ST100.

ムラ欠陥検出工程(ST300)にてムラ欠陥730が検出されると、続いて、ST400においてムラ欠陥領域の定量的評価値に基づいてランク判定を行うランク判定工程がランク判定手段600にて行われる。
ランク判定手段600には、図26に示されるように判定閾値曲線が設定記憶されている。
そして、ランク判定工程(ST400)では、ムラ欠陥検出工程(ST300)にて検出されたムラ欠陥730の定量的評価値として欠陥面積および欠陥コントラストを算出して、算出された欠陥面積および欠陥コントラストを閾値曲線のグラフにプロットして、検査対象である液晶ライトバルブ112の良/不良の判定、さらには良品範囲である場合にAランクからDランクのどのランクに該当するか判定される。
When the mura defect 730 is detected in the mura defect detection step (ST300), a rank determination unit 600 performs a rank determination step based on a quantitative evaluation value of the mura defect region in ST400. .
In the rank determination means 600, a determination threshold curve is set and stored as shown in FIG.
In the rank determination step (ST400), the defect area and the defect contrast are calculated as a quantitative evaluation value of the mura defect 730 detected in the mura defect detection step (ST300), and the calculated defect area and defect contrast are calculated. Plotting on the graph of the threshold curve determines whether the liquid crystal light valve 112 to be inspected is good or bad, and further, if it is in the non-defective range, it is determined which rank from A rank to D rank corresponds.

このような構成を備える第1実施形態によれば、次の効果を奏することができる。
(1)ムラ欠陥730に基づく液晶ライトバルブ112の評価をしたい場合に、ムラ欠陥730よりも面積が小さい表示欠陥(点欠陥710・シミ欠陥720)がムラ欠陥730と重なった状態で存在する場合があるが、点欠陥710およびシミ欠陥720を予め点・シミ欠陥修補工程(ST200)で修補しておき、点欠陥710・シミ欠陥720が修補された画像データからムラ欠陥730を検出することとしているので、画像データ中において当初は点欠陥710・シミ欠陥720とムラ欠陥730とが重なっていたとしても既に修補された点欠陥710・シミ欠陥720が検出にかかることがなく、ムラ欠陥730のみが適切に検出される。その結果、ムラ欠陥730に基づいて液晶ライトバルブ112の評価を適切に行うことができる。
According to 1st Embodiment provided with such a structure, there can exist the following effects.
(1) When it is desired to evaluate the liquid crystal light valve 112 based on the mura defect 730, a display defect (point defect 710 / stain defect 720) having an area smaller than that of the mura defect 730 is present in a state where it overlaps with the mura defect 730. However, the point defect 710 and the spot defect 720 are repaired in advance in the point / stain defect repairing step (ST200), and the unevenness defect 730 is detected from the image data in which the point defect 710 / stain defect 720 is repaired. Therefore, even if the point defect 710 / stain defect 720 and the mura defect 730 initially overlap in the image data, the already repaired point defect 710 / stain defect 720 is not detected, and only the mura defect 730 is detected. Is properly detected. As a result, the liquid crystal light valve 112 can be appropriately evaluated based on the unevenness defect 730.

(2)点・シミ欠陥修補工程(ST200)において、点欠陥710・シミ欠陥720の各画素の輝度を周囲の輝度変化を延長した補間値に置き換えているので、ムラ欠陥730のなかに点欠陥710・シミ欠陥720が重なっていた場合に、ムラ欠陥730の部分のみに基づいて算出する平均輝度と、点欠陥710・シミ欠陥720を修補したあとでこの修補された点欠陥710・シミ欠陥720の領域を含むムラ欠陥730の全領域の平均輝度とは近似した値であって、さらには、点欠陥710・シミ欠陥720ではなくその領域にもムラ欠陥730が連続して続いていたと想定した場合の平均輝度を得ることができる。
よって、点欠陥710・シミ欠陥720が修補された後の画像データ中からムラ欠陥730を検出するとともにこのムラ欠陥730の定量的評価値としてムラ欠陥730の平均輝度を単純に算出すると、人の目が認識する平均輝度に相当する値を得ることができる。よって、ランク判定工程(ST400)においてはムラ欠陥730に基づいた適切な評価を行うことができ、人の見た目の印象に近似した評価を得ることができる。
(2) In the point / spot defect repairing step (ST200), the brightness of each pixel of the point defect 710 / stain defect 720 is replaced with an interpolated value obtained by extending the surrounding brightness change. When the 710 and spot defect 720 overlap, the average luminance calculated based only on the uneven defect 730 portion and the point defect 710 and spot defect 720 repaired after the point defect 710 and spot defect 720 are repaired. It is assumed that the average brightness of the entire area of the mura defect 730 including this area is an approximate value, and further, the mura defect 730 continues in that area instead of the point defect 710 and the spot defect 720. The average brightness can be obtained.
Therefore, when the uneven defect 730 is detected from the image data after the point defect 710 and the spot defect 720 are repaired and the average luminance of the uneven defect 730 is simply calculated as a quantitative evaluation value of the uneven defect 730, A value corresponding to the average luminance recognized by the eyes can be obtained. Therefore, in the rank determination step (ST400), an appropriate evaluation based on the mura defect 730 can be performed, and an evaluation that approximates the human impression can be obtained.

(3)点欠陥710・シミ欠陥720を修補するにあたっては、点欠陥710・シミ欠陥720の各画素の輝度データ(強調輝度値)を補間値に置き換えていくので、修補の前後で面積が変化することはなく、ムラ欠陥730と点欠陥710・シミ欠陥720とが重なる部分で点欠陥710・シミ欠陥720の修補を行ってもムラ欠陥730の面積が変わらない。したがって、点・シミ欠陥修補工程(ST200)にて点欠陥710・シミ欠陥720を修補した後の画像データからムラ欠陥730を検出して(ムラ欠陥検出工程ST300)、検出されたムラ欠陥730の定量的評価値として欠陥面積を算出した場合、欠陥面積は点欠陥710・シミ欠陥720の修補の前後で変化することがない。よって、点欠陥710・シミ欠陥720を修補した後の画像データ中でムラ欠陥730を検出して、検出されたムラ欠陥730の面積を単純に計算すれば、人の目が認識する欠陥面積に相当する値を得ることができる。その結果、ランク判定工程(ST400)においてはムラ欠陥730のみに基づいた適切な評価を行うことができ、人の見た目の印象に近似した評価を得ることができる。 (3) In repairing the point defect 710 and the spot defect 720, the luminance data (emphasized brightness value) of each pixel of the point defect 710 and the spot defect 720 is replaced with an interpolation value, so that the area changes before and after the repair. The area of the mura defect 730 does not change even if the point defect 710 and the spot defect 720 are repaired at the portion where the mura defect 730 and the point defect 710 and the spot defect 720 overlap. Therefore, the mura defect 730 is detected from the image data after repairing the point defect 710 / stain defect 720 in the point / stain defect repairing step (ST200) (unevenness defect detecting step ST300), and the detected mura defect 730 is detected. When the defect area is calculated as a quantitative evaluation value, the defect area does not change before and after the repair of the point defect 710 and the spot defect 720. Therefore, if the mura defect 730 is detected in the image data after repairing the point defect 710 and the spot defect 720 and the area of the detected mura defect 730 is simply calculated, the defect area recognized by the human eye can be obtained. The corresponding value can be obtained. As a result, in the rank determination step (ST400), an appropriate evaluation based only on the mura defect 730 can be performed, and an evaluation approximating the impression of human appearance can be obtained.

(4)補間工程(ST220)における補間値の算出にあたって、検出された点欠陥710・シミ欠陥720の外側から内側に順番に補間値の算出を行うことにより、点欠陥710・シミ欠陥720の外側の正常画素の輝度データ変化を反映した補間値を外側から内側に順に算出でき、このように算出される補間値で点欠陥710・シミ欠陥720の各画素の輝度データ(強調輝度値)を置き換えて点欠陥710・シミ欠陥720の修補を行うことができる。点欠陥710・シミ欠陥720の内側寄りに存在する画素についても既に外側寄りの画素について算出された補間値を利用してこの内側寄りの画素の補間値を算出できるので、点欠陥710・シミ欠陥720の総ての画素について補間値を算出して置き換えることができる。 (4) In calculating the interpolation value in the interpolation step (ST220), the interpolation value is calculated in order from the outside to the inside of the detected point defect 710 / stain defect 720, thereby the outside of the point defect 710 / stain defect 720. Interpolation values reflecting changes in luminance data of normal pixels can be calculated in order from the outside to the inside, and the luminance data (emphasized luminance value) of each pixel of the point defect 710 and the spot defect 720 is replaced with the interpolation value thus calculated. The point defect 710 and the spot defect 720 can be repaired. The interpolated value of the pixel located inside the point defect 710 / stain defect 720 can also be calculated using the interpolation value already calculated for the pixel located outside the point defect 710 / stain defect 720. Interpolation values can be calculated and replaced for all 720 pixels.

(5)点・シミ欠陥検出工程(ST210)において、画像縮小工程(ST211)で所定サイズに画像データの縮小を行ったうえで、この縮小された画像データに欠陥検出のための欠陥強調フィルタをかけて点欠陥710・シミ欠陥720を検出していき、数段階で画像データの縮小を行いつつ縮小された画像データに欠陥強調フィルタをかけることで画像データ中の様々のサイズの点欠陥710・シミ欠陥720を総て検出することができる。 (5) In the point / stain defect detection step (ST210), the image data is reduced to a predetermined size in the image reduction step (ST211), and then a defect enhancement filter for defect detection is applied to the reduced image data. The point defect 710 and spot defect 720 are detected over time, and the image data is reduced in several stages and a defect enhancement filter is applied to the reduced image data to thereby apply point defects 710 of various sizes in the image data. All the spot defects 720 can be detected.

(6)所定サイズに縮小した画像データに対して欠陥強調フィルタをかけて所定サイズの表示欠陥を検出し、検出された表示欠陥を補間工程(ST220)で修補したとき、この段階では、まだ、この縮小率で欠陥強調フィルタにかからない表示欠陥(点欠陥710・シミ欠陥720)が修補されていないところ、所定の縮小率で表示欠陥が修補された画像データに対してさらに画像縮小を行って、この縮小された画像データに欠陥強調フィルタをかけると、修補されていない表示欠陥が欠陥検出フィルタにかかるので、検出された表示欠陥を補間工程で修補していくことができる。このように画像縮小工程、フィルタリング工程、補間工程を繰り返し行い、画像データの縮小率を点欠陥710・シミ欠陥720のサイズの総ての表示欠陥が欠陥検出フィルタにかかるまでとして、点欠陥710・シミ欠陥720の総てを修補することができる。 (6) When a display defect of a predetermined size is detected by applying a defect enhancement filter to the image data reduced to a predetermined size, and the detected display defect is repaired in the interpolation step (ST220), at this stage, Where display defects (point defects 710 and spot defects 720) that do not apply to the defect enhancement filter at this reduction rate are not repaired, image reduction is further performed on the image data with the display defects repaired at a predetermined reduction rate. When a defect enhancement filter is applied to the reduced image data, display defects that have not been repaired are applied to the defect detection filter, so that the detected display defects can be repaired in an interpolation process. In this way, the image reduction process, the filtering process, and the interpolation process are repeated, and the reduction rate of the image data is set so that all display defects of the size of the point defect 710 and the spot defect 720 are applied to the defect detection filter. All of the spot defects 720 can be repaired.

(7)マッチングフィルタを2値化配列空間441にかけていって修補対象画素をサーチし、さらに、マッチングフィルタの配列から0が連続する方向が分かるので、この0が連続する方向の画素の輝度データに基づいて修補対象画素の補間値を算出することができる。1と0との配列が決まったマッチングフィルタを2値化配列空間441にかけていくので、マッチングした箇所での0の配列方向がすぐにまわり、補間値算出式によって簡便かつ即座に修補対象画素の補間値を算出することができる。そして、修補対象画素の輝度データを算出された補間値に置き換えることで修補対象画素を修補することができる。 (7) The matching filter is applied to the binarized array space 441 to search for the pixel to be repaired. Further, since the direction in which 0 continues is known from the array of the matching filter, the brightness data of the pixel in the direction in which 0 continues is obtained. Based on this, the interpolation value of the pixel to be repaired can be calculated. Since the matching filter in which the array of 1 and 0 is determined is applied to the binarized array space 441, the array direction of 0 immediately turns around at the matched location, and interpolation of the pixel to be repaired is easily and immediately performed by the interpolation value calculation formula A value can be calculated. Then, the pixel to be repaired can be repaired by replacing the luminance data of the pixel to be repaired with the calculated interpolation value.

(8)補間値で修補された画素については2値化配列空間441で“0”に置き換えていくので、当初には周囲が欠陥画素で囲まれて周囲に所定数以上の正常画素が存在しなかった欠陥画素についても、この欠陥画素の周囲の画素が補間値で修補されて2値化配列空間441で“0”に置き換わっていく。すると、次第に周りに0が配されていき、最終的には、マッチングフィルタでのサーチにかかるようになる。よって、当初検出された欠陥画素についてはすべてマッチングフィルタで順番にサーチされていくことになる。その結果、画像データ中の点欠陥710・シミ欠陥720の総ての画素を補間値で修補することができる。 (8) Since the pixel corrected by the interpolation value is replaced with “0” in the binarized array space 441, initially, the periphery is surrounded by defective pixels and there are a predetermined number or more of normal pixels. For the defective pixels that did not exist, the pixels around the defective pixels are corrected with the interpolated values and replaced with “0” in the binarized array space 441. Then, 0s are gradually arranged around, and finally, the search with the matching filter starts. Therefore, all the defective pixels initially detected are sequentially searched by the matching filter. As a result, all the pixels of the point defect 710 and the spot defect 720 in the image data can be repaired with the interpolation value.

なお、本発明は前述の実施形態に限定されず、本発明の目的を達成できる範囲での変形、改良等は本発明に含まれる。
検査対象としては、液晶ライトバルブ(液晶パネル)等の光学パネルによる表示画像のみならず、板金の塗装面や印刷紙面の塗りムラなどでもよい。また、光学パネルは、液晶パネルに限らず、有機ELパネルなどでもよいことはもちろんである。
It should be noted that the present invention is not limited to the above-described embodiment, and modifications, improvements, and the like within the scope that can achieve the object of the present invention are included in the present invention.
The inspection object may be not only a display image by an optical panel such as a liquid crystal light valve (liquid crystal panel), but also a coating unevenness of a sheet metal or a printing paper surface. Of course, the optical panel is not limited to the liquid crystal panel, and may be an organic EL panel or the like.

ランク判定工程(ST400)におけるランク判定の対象である評価対象欠陥種はムラ欠陥730であり、ランク判定の対象外であって本発明では修補の対象となる非評価対象欠陥種は点欠陥710およびシミ欠陥720とする場合について説明したが、例えば、シミ欠陥720をランク判定の対象とする場合には、評価対象欠陥種をシミ欠陥720とし、修補の対象である非評価対象欠陥種を点欠陥710としてもよい。すなわち、所定面積以上の欠陥種を評価対象欠陥種とし、所定面積未満の欠陥を非評価対象欠陥種とするにあたり、「所定面積」は目的に応じて変更可能である。   The evaluation target defect type that is the target of rank determination in the rank determination step (ST400) is the mura defect 730, and the non-evaluation target defect type that is not the target of rank determination and that is to be repaired in the present invention is the point defect 710 and Although the case where the spot defect 720 is used has been described, for example, when the spot defect 720 is the target of rank determination, the defect type to be evaluated is the spot defect 720, and the non-evaluation target defect type to be repaired is a point defect. It may be 710. That is, when a defect type having a predetermined area or more is set as the evaluation target defect type and a defect less than the predetermined area is set as the non-evaluation target defect type, the “predetermined area” can be changed according to the purpose.

点・シミ欠陥検出工程(ST210)で様々のサイズの点・シミ欠陥を検出するにあたり、欠陥強調フィルタ431のサイズは一種類とする一方で、画像縮小工程(ST211)にて画像データを縮小する縮小率を複数段階とすることで、様々のサイズの点・シミ欠陥を検出する例を説明したが、画像縮小を行わずに、欠陥強調フィルタのサイズを様々のサイズの点・シミ欠陥を検出できるように複数サイズで用意してもよい。つまり、はじめは小さいサイズの欠陥強調フィルタを画像データにかけて点欠陥を検出しておいて、この検出された点欠陥を補間工程で修補し、点欠陥が修補された画像データに次段の大きさの欠陥強調フィルタをかけてシミ欠陥を検出して、このシミ欠陥を補間工程で修補してもよい。   In detecting the dot / spot defect of various sizes in the point / stain defect detection step (ST210), the defect enhancement filter 431 has one size, while the image reduction process (ST211) reduces the image data. The example of detecting various size points and spot defects by using multiple reduction ratios has been explained. However, the defect enhancement filter size can be detected using various size points and spot defects without image reduction. You may prepare it in multiple sizes so that you can. That is, first, a point defect is detected by applying a defect enhancement filter of a small size to the image data, the detected point defect is repaired by an interpolation process, and the size of the next stage is added to the image data in which the point defect is repaired. The defect enhancement filter may be applied to detect a spot defect, and the spot defect may be repaired by an interpolation process.

点欠陥・シミ欠陥の画素を補間値で置き換えるにあたり、修補対象画素をサーチするのにマッチングフィルタ(図10〜図13)によるマッチングで修補対象画素をサーチしていく場合を例にして説明したが、点欠陥・シミ欠陥の外縁寄りの画素を順次見つけることができれば、修補対象画素をサーチする方法は特に限定されない。   In the case of replacing the point defect / stain defect pixel with the interpolated value, the case where the repair target pixel is searched by matching using the matching filter (FIGS. 10 to 13) has been described as an example. As long as the pixels near the outer edge of the point defect / stain defect can be found sequentially, the method of searching for the repair target pixel is not particularly limited.

補間値算出工程ST222では、修補対象画素の周囲で“0”が連続する方向の画素の輝度データ(強調輝度値)の変化率に基づいて各方向で補間基礎値を算出して、これら補間基礎値の平均を修補対象画素の補間値とする例について説明したが、補間値を算出する方法は目的に応じて種々変更されてもよい。
例えば、各方向で算出された補間基礎値のうちから最大値を選択して補間値としてもよく、最小値を選択して補間値としてもよく、あるいは、中間値を選択して補間値としてもよい。
In the interpolation value calculation step ST222, the basic interpolation value is calculated in each direction based on the change rate of the luminance data (emphasized luminance value) of the pixel in the direction where “0” continues around the pixel to be repaired. Although the example in which the average of the values is used as the interpolation value of the repair target pixel has been described, the method of calculating the interpolation value may be variously changed depending on the purpose.
For example, the maximum value may be selected from the interpolation basic values calculated in each direction to be an interpolation value, the minimum value may be selected to be an interpolation value, or an intermediate value may be selected to be an interpolation value. Good.

修補対象画素について補間値を算出した場合に、この補間値が閾値を超えている場合も有効であるとして、この補間値で修補対象画素の輝度データ(強調輝度値)を置き換えるとともに2値化配列空間では1から0に書き換える場合を例に説明したが、例えば、算出された補間値が閾値を超えていた場合には、この補間値で修補対象画素の強調輝度値を置き換える一方で、2値化配列空間では1のままにしておいてもよい。このように閾値以上の補間値の場合に2値化配列空間で1のままにしておけば、他の画素についての補間値算出では閾値以上の補間値は補間値算出の基礎として使用されず、また、マッチングフィルタによるサーチによって再び修補対象画素としてサーチされて再度補間値が算出されるからである。なお、この場合、2値化配列空間の総てのセルが0になるとは限らないが、2値化配列空間における1と0の配列がいずれのマッチングフィルタ(図10〜図13)にもマッチしなくなった時点で、画像縮小工程ST211に戻って処理(ST211〜ST230)を繰り返すとすればよい。   When the interpolation value is calculated for the pixel to be repaired, it is also effective if the interpolation value exceeds the threshold value, and the luminance data (emphasized luminance value) of the pixel to be repaired is replaced with this interpolation value and the binarized array The case of rewriting from 1 to 0 in the space has been described as an example. For example, when the calculated interpolation value exceeds the threshold value, the interpolation luminance value of the pixel to be repaired is replaced with this interpolation value while binary. It may be left as 1 in the chemical array space. In this way, if the interpolated value is equal to or greater than the threshold value, if it is left as 1 in the binarized array space, the interpolated value equal to or greater than the threshold value is not used as the basis for the interpolated value calculation in the interpolated value calculation for other pixels. This is also because the search is performed again as a pixel to be repaired by the search using the matching filter and the interpolation value is calculated again. In this case, all cells in the binarized array space are not necessarily 0, but the 1 and 0 arrays in the binarized array space match any of the matching filters (FIGS. 10 to 13). When no more, the process returns to the image reduction step ST211 and the processing (ST211 to ST230) may be repeated.

また、2値化配列空間で、強調輝度値が閾値以上である画素に1を配し、強調輝度値が閾値未満である画素に0を配するとしたが、逆にしてもよいことはもちろんである。   Also, in the binarized array space, 1 is assigned to a pixel with an emphasized luminance value greater than or equal to the threshold value, and 0 is assigned to a pixel with an emphasized luminance value less than the threshold value. is there.

画像縮小工程(ST211)では、4つの画素をまとめて一つの画素にする場合を例にして説明したが(図6)、例えば、図24に示されるように6つの画素を1つにまとめてもよいのであって、画像縮小工程における一回の画像の縮小率が特に限定されないのはもちろんである。   In the image reduction process (ST211), the case where four pixels are combined into one pixel has been described as an example (FIG. 6). For example, six pixels are combined into one as shown in FIG. Of course, the reduction ratio of one image in the image reduction process is not particularly limited.

評価工程においては、検出されたムラ欠陥の欠陥面積および平均輝度を算出して、これらの値に基づいて良/不良の判定およびAからDのランク付けを行う場合を例して説明したが、評価の仕方は特に限定されず、目的に応じて種々変更されてもよいことはもちろんである。   In the evaluation process, the defect area and the average luminance of the detected mura defect are calculated, and the case where the determination of good / bad and the ranking from A to D is performed based on these values is described as an example. The method of evaluation is not particularly limited, and may be changed variously according to the purpose.

本発明は、光学パネルに表示される画像中の表示欠陥を検出する欠陥検出方法に利用できる他、例えば、板金の塗装面や印刷紙面の塗りムラの検出にも適用できる。   The present invention can be applied to a defect detection method for detecting a display defect in an image displayed on an optical panel, and can also be applied to, for example, detection of uneven coating on a coated surface of a sheet metal or a printing paper surface.

第1実施形態において、光学パネル検査装置の全体構成を示す図。The figure which shows the whole structure of the optical panel inspection apparatus in 1st Embodiment. 第1実施形態において、演算処理部の構成を示す図。The figure which shows the structure of the arithmetic processing part in 1st Embodiment. 第1実施形態において、光学パネル検査方法の処理手順を示すフローチャート。5 is a flowchart illustrating a processing procedure of an optical panel inspection method in the first embodiment. 第1実施形態において、前処理工程の処理手順を示すフローチャート。The flowchart which shows the process sequence of a pre-processing process in 1st Embodiment. 第1実施形態において、点・シミ欠陥修補工程の処理手順を示すフローチャート。The flowchart which shows the process sequence of a point and a spot defect repair process in 1st Embodiment. 第1実施形態において、画像縮小前の元画像データ(A)と、縮小後の画像データ(B)を示す図。The figure which shows the original image data (A) before image reduction and the image data (B) after reduction in 1st Embodiment. 第1実施形態において、欠陥強調フィルタを示す図である。It is a figure which shows a defect emphasis filter in 1st Embodiment. 第1実施形態において、画像データに欠陥強調フィルタをかけた結果の一例を示す図。The figure which shows an example of the result of having applied the defect emphasis filter to image data in 1st Embodiment. 第1実施形態において、2値化配列空間の例を示す図。The figure which shows the example of the binarization arrangement | sequence space in 1st Embodiment. 第1実施形態において、第1群のマッチングフィルタを示す図。The figure which shows the 1st group of matching filters in 1st Embodiment. 第1実施形態において、第2群のマッチングフィルタを示す図。The figure which shows the 2nd group of matching filters in 1st Embodiment. 第1実施形態において、第3群のマッチングフィルタを示す図。The figure which shows the 3rd group of matching filters in 1st Embodiment. 第1実施形態において、第4群のマッチングフィルタを示す図。The figure which shows the 4th group matching filter in 1st Embodiment. 第1実施形態において、2値化配列空間で1番のマッチングフィルタにマッチした配列をサーチした様子を示す図。The figure which shows a mode that the arrangement | sequence matched with the 1st matching filter was searched in the binarization arrangement | sequence space in 1st Embodiment. 第1実施形態において、マッチングフィルタの配列を説明するための図。The figure for demonstrating the arrangement | sequence of a matching filter in 1st Embodiment. 第1実施形態において、輝度データの変化のグラフに補間基礎値をあわせて示す図。The figure which shows the interpolation basic value together with the graph of a change of luminance data in 1st Embodiment. 第1実施形態において、修補対象画素の補間値を算出する数値例を示す図。The figure which shows the numerical example which calculates the interpolation value of a repair object pixel in 1st Embodiment. 第1実施形態において、各マッチングフィルタで“0”が連続する方向を示す図。The figure which shows the direction where "0" continues in each matching filter in 1st Embodiment. 第1実施形態において、各マッチングフィルタで“0”が連続する方向を示す図。The figure which shows the direction where "0" continues in each matching filter in 1st Embodiment. 第1実施形態において、各マッチングフィルタで“0”が連続する方向を示す図。The figure which shows the direction where "0" continues in each matching filter in 1st Embodiment. 第1実施形態において、各マッチングフィルタで“0”が連続する方向を示す図。The figure which shows the direction where "0" continues in each matching filter in 1st Embodiment. 第1実施形態において、シミ欠陥が修補される様子を示す図。The figure which shows a mode that a spot defect is repaired in 1st Embodiment. 第1実施形態において、ムラ欠陥検出フィルタを示す図。The figure which shows the nonuniformity defect detection filter in 1st Embodiment. 画像縮小をする場合の変形例を示す図。The figure which shows the modification in the case of image reduction. 点欠陥、シミ欠陥、ムラ欠陥の例を示す図。The figure which shows the example of a point defect, a spot defect, and a nonuniformity defect. 欠陥の面積とコントラストとの関係から設定された閾値曲線の一例を示す図。The figure which shows an example of the threshold curve set from the relationship between the area of a defect, and contrast. ムラ欠陥に、シミ欠陥、点欠陥が重なる例を示す図。The figure which shows the example which a spot defect and a point defect overlap with a nonuniformity defect. ムラ欠陥内に存在するシミ欠陥を取り除いた様子を示す概念図。The conceptual diagram which shows a mode that the spot defect which exists in a nonuniformity defect was removed. ムラ欠陥内に存在するシミ欠陥のコントラストを全体の平均コントラストで代用した様子を示す概念図。The conceptual diagram which shows a mode that the contrast of the stain defect which exists in a nonuniformity defect was substituted with the whole average contrast.

符号の説明Explanation of symbols

100…光学パネル検査装置、110…画像投影手段、111…光源、112…液晶ライトバルブ、113…投射レンズ、114…ミラー、120…パターンジェネレータ、130…映写部、131…暗ボックス、132…開口部、133…開口部、134…スクリーン、140…CCDカメラ、200…演算処理部、300…前処理手段、310…検査画像取得手段、320…背景差分手段、330…エリア抽出手段、340…輝度値算出手段、400…点・シミ欠陥修補手段、410…点・シミ欠陥検出手段、420…画像縮小手段、430…フィルタリング手段、431…欠陥強調フィルタ、440…2値化手段、441…2値化配列空間、450…補間手段、460…修補対象画素サーチ手段、470…補間値算出手段、500…ムラ欠陥検出手段、510…ムラ欠陥検出フィルタ、600…ランク判定手段、610…閾値曲線のグラフ、710…点欠陥、711…輝点欠陥、720…シミ欠陥、721…白シミ欠陥、722…黒シミ欠陥、730…ムラ欠陥、731…白ムラ欠陥、732…黒ムラ欠陥。 DESCRIPTION OF SYMBOLS 100 ... Optical panel inspection apparatus, 110 ... Image projection means, 111 ... Light source, 112 ... Liquid crystal light valve, 113 ... Projection lens, 114 ... Mirror, 120 ... Pattern generator, 130 ... Projection part, 131 ... Dark box, 132 ... Opening , 133 ... opening, 134 ... screen, 140 ... CCD camera, 200 ... arithmetic processing part, 300 ... pre-processing means, 310 ... inspection image acquisition means, 320 ... background difference means, 330 ... area extraction means, 340 ... luminance Value calculation means, 400... Point / stain defect repair means, 410... Point / stain defect detection means, 420... Image reduction means, 430 ... filtering means, 431... Defect emphasis filter, 440 ... binarization means, 441. ,... Interpolation means, 460... Repair target pixel search means, 470... Interpolation value calculation means, 500. Defect detection means, 510... Mura defect detection filter, 600. Rank determination means, 610 ... threshold curve graph, 710 ... point defect, 711 ... bright spot defect, 720 ... spot defect, 721 ... white spot defect, 722 ... black spot Defect, 730 ... unevenness defect, 731 ... white unevenness defect, 732 ... black unevenness defect.

Claims (13)

検査対象を撮像してその画像データを取得する検査画像取得工程と、
前記検査画像取得工程にて取得された画像データ中で面積が所定サイズ未満の欠陥種である非評価対象欠陥種の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えてこの非評価対象欠陥種を修補する非評価対象欠陥種修補工程と、
前記非評価対象欠陥種修補工程にて前記非評価対象欠陥種が修補された画像データにおいて面積が所定サイズ以上の欠陥種である評価対象欠陥種を検出する評価対象欠陥種検出工程と、を備える
ことを特徴とする欠陥検出方法。
An inspection image acquisition step of imaging the inspection object and acquiring the image data;
In the image data acquired in the inspection image acquisition step, the luminance data of each pixel of the non-evaluation target defect type which is a defect type whose area is less than a predetermined size is replaced with an interpolation value based on the luminance data of surrounding pixels. Non-evaluation target defect type repair process to repair non-evaluation target defect type,
An evaluation target defect type detection step of detecting an evaluation target defect type that is a defect type having an area of a predetermined size or more in the image data in which the non-evaluation target defect type is repaired in the non-evaluation target defect type repair step. A defect detection method characterized by the above.
請求項1に記載の欠陥検出方法において、
前記非評価対象欠陥種修補工程は、
前記非評価対象欠陥種の各画素の周囲において所定条件を満たす画素の輝度データが前記非評価対象欠陥種の各画素に向けて変化する傾向に基づいて前記補間値を算出する
ことを特徴とする欠陥検出方法。
The defect detection method according to claim 1,
The non-evaluation target defect type repair process,
The interpolation value is calculated based on a tendency that luminance data of a pixel satisfying a predetermined condition around each pixel of the non-evaluation target defect type changes toward each pixel of the non-evaluation target defect type. Defect detection method.
請求項1または請求項2に記載の欠陥検出方法において、
前記非評価欠陥種修補工程は、
前記画像データ取得工程にて取得された画像データ中で前記非評価対象欠陥種を検出する非評価対象欠陥種検出工程と、
前記補間値を前記非評価対象欠陥種の画素ごとに算出するとともにこれらの各画素の輝度データを前記補間値で置き換える補間工程と、を備え、
前記補間工程は、
検出された非評価対象欠陥種のうちの外縁に位置する画素から始めて順次内側寄りの画素の前記補間値を算出していき、
前記外縁に位置する前記画素の補間値を求めるにあたってはその画素に隣接し輝度が正常である正常画素の輝度データに基づいて前記補間値を算出し、
前記内側寄りの前記画素の前記補間値を算出するにあたっては前記正常画素の輝度データと外縁寄りの前記画素の補間値として既に算出された補間値とのうち前記補間値を算出する対象である画素に隣接するものに基づいて前記補間値を算出する
ことを特徴とする欠陥検出方法。
In the defect detection method according to claim 1 or 2,
The non-evaluated defect type repair process is:
A non-evaluation target defect type detection step for detecting the non-evaluation target defect type in the image data acquired in the image data acquisition step;
An interpolation step of calculating the interpolation value for each pixel of the non-evaluation target defect type and replacing luminance data of each pixel with the interpolation value, and
The interpolation step includes
Starting from the pixel located at the outer edge of the detected non-evaluation target defect type, sequentially calculate the interpolation value of the pixels closer to the inside,
In determining the interpolation value of the pixel located at the outer edge, the interpolation value is calculated based on luminance data of a normal pixel adjacent to the pixel and having normal luminance,
In calculating the interpolation value of the pixel closer to the inner side, the pixel for which the interpolation value is to be calculated out of the luminance data of the normal pixel and the interpolation value already calculated as the interpolation value of the pixel closer to the outer edge A defect detection method characterized in that the interpolated value is calculated on the basis of what is adjacent to the object.
請求項3に記載の欠陥検出方法において、
前記非評価対象欠陥種検出工程は、
前記検査対象となる画像データを縮小する画像縮小工程と、
着目画素と着目画素の周囲の画素とで輝度データの差を強調する欠陥強調フィルタを前記画像縮小工程にて縮小された画像データにかけて表示欠陥を検出するフィルタリング工程と、を備え、
前記非評価対象欠陥種修補工程は、
前記画像縮小工程で所定サイズに縮小された画像データに対するフィルタリング工程にて検出された前記非評価対象欠陥種の画素の補間値を前記補間工程で算出してこの非評価対象欠陥種を修補した後、さらに、修補された画像データに対して前記画像縮小工程、前記フィルタリング工程および前記補間工程を繰り返して修補対象である面積の非評価対象欠陥種を順次修補していく
ことを特徴とする欠陥検出方法。
The defect detection method according to claim 3,
The non-evaluation target defect type detection step includes:
An image reduction process for reducing the image data to be inspected;
A filtering step of detecting a display defect by applying a defect enhancement filter that emphasizes a difference in luminance data between the pixel of interest and pixels around the pixel of interest to the image data reduced in the image reduction step, and
The non-evaluation target defect type repair process,
After correcting the non-evaluation target defect type by calculating the interpolation value of the pixel of the non-evaluation target defect type detected in the filtering step for the image data reduced to a predetermined size in the image reduction step Further, the defect detection is characterized in that the image reduction process, the filtering process and the interpolation process are repeated for the repaired image data to repair the non-evaluation target defect types of the repair target area sequentially. Method.
請求項4に記載の欠陥検出方法において、
前記評価対象欠陥種はムラ欠陥であり、
前記非評価対象欠陥種は、前記ムラ欠陥よりも面積が小さいシミ欠陥および前記シミ欠陥よりも面積が小さい点欠陥であり、
前記非評価対象欠陥種修補工程は、
最初の画像縮小工程にて縮小された画像データに対する前記フィルタリング工程にて前記点欠陥を検出してこの点欠陥の補間値を前記補間工程にて算出したのち、
さらに、点欠陥が修補された画像データを前記画像縮小工程にて画像縮小したうえで前記フィルタリング工程にて前記シミ欠陥を検出してこのシミ欠陥の補間値を前記補間工程にて算出してシミ欠陥を修補する
ことを特徴とする欠陥検出方法。
The defect detection method according to claim 4,
The defect type to be evaluated is a mura defect,
The non-evaluation target defect type is a spot defect having a smaller area than the uneven defect and a point defect having a smaller area than the spot defect,
The non-evaluation target defect type repair process,
After detecting the point defect in the filtering step for the image data reduced in the first image reduction step and calculating the interpolation value of the point defect in the interpolation step,
Further, after reducing the image data in which the point defect is corrected in the image reduction process, the spot defect is detected in the filtering process, and an interpolation value of the spot defect is calculated in the interpolation process. A defect detection method characterized by repairing a defect.
請求項3から請求項5のいずれかに記載の欠陥検出方法において、
前記非評価対象欠陥種検出工程は、前記画像データの各画素の輝度データを所定閾値と比較して輝度データが閾値以上である欠陥画素と輝度データが閾値未満である正常画素とを検出するとともに欠陥画素を1とし正常画素を0として2値化した2値化配列空間を生成する2値化工程を備え、
前補間工程は、
前記非評価対象欠陥種検出工程にて検出された前記非評価対象欠陥種の欠陥画素のうちで修補対象となる画素を順次サーチする修補対象画素サーチ工程と、
前記修補対象画素サーチ工程にてサーチされた修補対象となる画素の補間値を算出する補間値算出工程と、を備え、
所定サイズのマトリクス配列で中央の着目セルに1を配しその周りの8方向のうちの少なくとも5つ以上の方向に連続して2つ以上の0を配置するパターンを網羅した複数のマッチングフィルタが用意され、
前記修補対象画素サーチ工程は、前記2値化配列空間に前記マッチングフィルタを順にかけていずれかのマッチングフィルタに一致する1と0との配列箇所を前記2値化配列空間内でサーチするとともに、マッチングフィルタに一致する配列箇所でマッチングフィルタの着目セルに対応する画素を修補対象画素として画像データ中において認識し、
前記補間値算出工程は、マッチングフィルタにおいて0が2以上連続する方向における画素の輝度データの変化率に基づいて前記修補対象画素の補間値を算出し、
この補間値算出工程にて前記補間値が算出されて輝度データが補間値に置き換えられた画素については前記2値化配列空間において対応するセルを1から0に書き換えて前記2値化配列空間のセルが総て0になるまで修補対象画素サーチ工程および補間値算出工程を繰り返す
ことを特徴とする欠陥検出方法。
In the defect detection method according to any one of claims 3 to 5,
The non-evaluation target defect type detection step compares the luminance data of each pixel of the image data with a predetermined threshold value to detect defective pixels whose luminance data is equal to or higher than the threshold value and normal pixels whose luminance data is lower than the threshold value. Including a binarization step for generating a binarized array space in which a defective pixel is 1 and a normal pixel is 0 and binarized;
The pre-interpolation process is
A repair target pixel search step for sequentially searching for a pixel to be repaired among defective pixels of the non-evaluation target defect type detected in the non-evaluation target defect type detection step;
An interpolation value calculation step of calculating an interpolation value of a pixel to be repaired searched in the repair target pixel search step,
A plurality of matching filters covering a pattern in which 1 is arranged in a central cell of interest in a matrix arrangement of a predetermined size and two or more 0s are continuously arranged in at least 5 or more of the surrounding 8 directions. Prepared,
The repair target pixel search step applies the matching filter to the binarized array space in order and searches the binarized array space for an array location of 1 and 0 that matches one of the matching filters, and performs matching. Recognize in the image data the pixel corresponding to the target cell of the matching filter at the array location that matches the filter as the pixel to be repaired,
The interpolation value calculation step calculates an interpolation value of the repair target pixel based on a change rate of luminance data of the pixel in a direction in which 0 or more continues in the matching filter.
For the pixel in which the interpolation value is calculated in this interpolation value calculation step and the luminance data is replaced with the interpolation value, the corresponding cell is rewritten from 1 to 0 in the binarization array space, and the binarization array space A defect detection method comprising repeating the repair target pixel search step and the interpolation value calculation step until all the cells are zero.
請求項6に記載の欠陥検出方法において、
前記修補対象画素サーチ工程は、着目セルの周りで0が2つ以上連続する方向が少ないマッチングフィルタから順番に前記2値化配列空間にかけていく
ことを特徴とする欠陥検出方法。
The defect detection method according to claim 6,
The defect detection method characterized in that the repair target pixel search step sequentially goes to the binarized array space from a matching filter having a small direction in which two or more zeros continue around the target cell.
請求項6または請求項7に記載の欠陥検出方法において、
前記補間値算出工程は、
前記2値化配列空間内で修補対象画素に隣接して0が2つ以上連続する各方向において前記修補対象画素に隣接する画素の輝度データの二倍からその外側の画素の輝度データを減算して得られる補間基礎値を算出したうえで、各方向で算出された前記補間基礎値を平均した平均値を前記修補対象画素の補間値とする
ことを特徴とする欠陥検出方法。
In the defect detection method according to claim 6 or 7,
The interpolation value calculation step includes
The luminance data of the outer pixel is subtracted from twice the luminance data of the pixel adjacent to the pixel to be repaired in each direction in which two or more 0s are adjacent to the pixel to be repaired in the binarized array space. An average value obtained by averaging the basic interpolation values calculated in each direction after calculating the basic interpolation value obtained in this manner is used as the interpolation value of the repair target pixel.
請求項1から請求項8のいずれかに記載の欠陥検出方法にて検査対象中の評価対象欠陥種を検出する欠陥検出工程と、
前記欠陥検出工程にて検出された前記評価対象欠陥種の定量的評価値に基づいて前記検査対象を評価する評価工程と、を備える
ことを特徴とする欠陥検査方法。
A defect detection step of detecting a defect type to be evaluated in an inspection object by the defect detection method according to claim 1;
An evaluation step of evaluating the inspection object based on a quantitative evaluation value of the defect type to be evaluated detected in the defect detection step.
検査対象を撮像してその画像データを取得する検査画像取得手段と、
前記検査画像取得工程にて取得された画像データ中で面積が所定サイズ未満の欠陥種である非評価対象欠陥種の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えてこの非評価対象欠陥種を修補する非評価対象欠陥種修補手段と、
前記非評価対象欠陥種修補手段にて前記非評価対象欠陥種が修補された画像データにおいて面積が所定サイズ以上の欠陥種である評価対象欠陥種を検出する評価対象欠陥種検出手段と、を備える
ことを特徴とする欠陥検出装置。
Inspection image acquisition means for imaging the inspection object and acquiring the image data;
In the image data acquired in the inspection image acquisition step, the luminance data of each pixel of the non-evaluation target defect type which is a defect type whose area is less than a predetermined size is replaced with an interpolation value based on the luminance data of surrounding pixels. Non-evaluation target defect type repairing means for repairing non-evaluation target defect types,
Evaluation target defect type detection means for detecting an evaluation target defect type whose area is a defect type having a predetermined size or more in the image data in which the non-evaluation target defect type repairing means is repaired by the non-evaluation target defect type repairing means. The defect detection apparatus characterized by the above-mentioned.
請求項10に記載の欠陥検出装置と、
前記欠陥検出装置にて検出された前記評価対象欠陥種の定量的評価値に基づいて前記検査対象を評価する評価手段と、を備える
ことを特徴とする欠陥検査装置。
The defect detection apparatus according to claim 10;
An evaluation unit that evaluates the inspection object based on a quantitative evaluation value of the defect type to be evaluated detected by the defect detection apparatus.
検査対象中の所定面積以上の欠陥種である評価対象欠陥種を検出する欠陥検出装置にコンピュータを組み込んで、このコンピュータを、
検査対象を撮像してその画像データを取得する検査画像取得手段と、
前記検査画像取得工程にて取得された画像データ中で面積が所定サイズ未満の欠陥種である非評価対象欠陥種の各画素の輝度データを周囲の画素の輝度データに基づく補間値で置き換えてこの非評価対象欠陥種を修補する非評価対象欠陥種修補手段と、
前記非評価対象欠陥種修補手段にて前記非評価対象欠陥種が修補された画像データにおいて面積が所定サイズ以上の欠陥種である評価対象欠陥種を検出する評価対象欠陥種検出手段と、して機能させる
ことを特徴とするコンピュータ読取可能な欠陥検出プログラム。
Incorporating a computer into a defect detection apparatus for detecting a defect type to be evaluated, which is a defect type having a predetermined area or more in the inspection target,
Inspection image acquisition means for imaging the inspection object and acquiring the image data;
In the image data acquired in the inspection image acquisition step, the luminance data of each pixel of the non-evaluation target defect type which is a defect type whose area is less than a predetermined size is replaced with an interpolation value based on the luminance data of surrounding pixels. Non-evaluation target defect type repairing means for repairing non-evaluation target defect types,
As an evaluation target defect type detecting means for detecting an evaluation target defect type whose area is a defect type having a predetermined size or more in the image data in which the non-evaluation target defect type repairing means is repaired by the non-evaluation target defect type repairing means, A computer-readable defect detection program characterized by being made to function.
請求項12に記載の欠陥検出プログラムをコンピュータ読取可能に記録したことを特徴とする記録媒体。   A recording medium in which the defect detection program according to claim 12 is recorded so as to be readable by a computer.
JP2005082418A 2005-03-22 2005-03-22 Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program Withdrawn JP2006266752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005082418A JP2006266752A (en) 2005-03-22 2005-03-22 Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005082418A JP2006266752A (en) 2005-03-22 2005-03-22 Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program

Publications (1)

Publication Number Publication Date
JP2006266752A true JP2006266752A (en) 2006-10-05

Family

ID=37202903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005082418A Withdrawn JP2006266752A (en) 2005-03-22 2005-03-22 Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program

Country Status (1)

Country Link
JP (1) JP2006266752A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123208A (en) * 2006-11-10 2008-05-29 Seiko Precision Inc Image analyzer, image analysis method and computer program
JP2010220073A (en) * 2009-03-18 2010-09-30 Konica Minolta Business Technologies Inc Method and device for generating presentation image, and image forming apparatus
JP2012524310A (en) * 2009-04-15 2012-10-11 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィ Image area interpolation
US8428334B2 (en) 2010-03-26 2013-04-23 Cooper S.K. Kuo Inspection System
CN111768357A (en) * 2019-03-29 2020-10-13 银河水滴科技(北京)有限公司 Image detection method and device
CN113792771A (en) * 2021-08-31 2021-12-14 青岛信芯微电子科技股份有限公司 TCON chip for processing graphic card
CN113857652A (en) * 2021-09-30 2021-12-31 广东国玉科技有限公司 Pseudo-coaxial visual laser repair equipment
CN115861315A (en) * 2023-02-27 2023-03-28 常州微亿智造科技有限公司 Defect detection method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123208A (en) * 2006-11-10 2008-05-29 Seiko Precision Inc Image analyzer, image analysis method and computer program
JP4712676B2 (en) * 2006-11-10 2011-06-29 セイコープレシジョン株式会社 Image analysis apparatus, image analysis method, and computer program
JP2010220073A (en) * 2009-03-18 2010-09-30 Konica Minolta Business Technologies Inc Method and device for generating presentation image, and image forming apparatus
JP2012524310A (en) * 2009-04-15 2012-10-11 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィ Image area interpolation
US8428334B2 (en) 2010-03-26 2013-04-23 Cooper S.K. Kuo Inspection System
CN111768357A (en) * 2019-03-29 2020-10-13 银河水滴科技(北京)有限公司 Image detection method and device
CN111768357B (en) * 2019-03-29 2024-03-01 银河水滴科技(北京)有限公司 Image detection method and device
CN113792771A (en) * 2021-08-31 2021-12-14 青岛信芯微电子科技股份有限公司 TCON chip for processing graphic card
CN113792771B (en) * 2021-08-31 2024-03-08 青岛信芯微电子科技股份有限公司 TCON chip for processing graphics card
CN113857652A (en) * 2021-09-30 2021-12-31 广东国玉科技有限公司 Pseudo-coaxial visual laser repair equipment
CN115861315A (en) * 2023-02-27 2023-03-28 常州微亿智造科技有限公司 Defect detection method and device

Similar Documents

Publication Publication Date Title
JP2006266752A (en) Defect detection method, defect inspection method, defect detection device, defect inspection device, defect detection program and recording medium for recording program
US20210281748A1 (en) Information processing apparatus
JP2007285754A (en) Flaw detection method and flaw detector
CN1690678A (en) Image analysis method, image analysis program and pixel evaluation system having the sames
JP2007315967A (en) Defect detection apparatus, defect detection method, defect detection program, and computer-readable recording medium stored with the progtram
JP6303352B2 (en) Appearance inspection system
JP2009229197A (en) Linear defect detecting method and device
JP2008170256A (en) Flaw detection method, flaw detection program and inspection device
JP2009036582A (en) Inspection method, inspection device and inspection program of plane display panel
JP2006133196A (en) Detection method of pixel uneveness defection, detection device for pixel uneveness defection, detection program for pixel uneveness defection, and recording medium with the program stored
JP4244046B2 (en) Image processing method and image processing apparatus
JP5141259B2 (en) projector
JP5286331B2 (en) Passenger conveyor handrail inspection device and passenger conveyor maintenance method
KR101993654B1 (en) Inspecting apparatus mura of display panel and method thereof
JP6574402B2 (en) Image inspection apparatus, image inspection method, and image inspection program
JPH11166898A (en) Device and method for inspecting rod for flaw
JP2005140655A (en) Method of detecting stain flaw, and stain flaw detector
JP2006250876A (en) Method, device, and program for inspecting optical panel, and recording medium with program stored
KR100605226B1 (en) Apparatus and method for detecting foreign material in digital camera module
JP2014106141A (en) Defect inspection device and defect inspection method
JP2002230522A (en) Device and method for detecting defect of subject of inspection
JP2000206052A (en) Defect-inspecting device and method and storage medium
JP2008292398A (en) Method of inspecting floating defect of component electrode and substrate inspecting device
JP2012047485A (en) Workpiece contour shape detection method and image processing system
JP5595247B2 (en) Mahalanobis reference space generation method and inspection device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080603