JP2008032532A - Defect detection device, defect detection method, and program - Google Patents
Defect detection device, defect detection method, and program Download PDFInfo
- Publication number
- JP2008032532A JP2008032532A JP2006206273A JP2006206273A JP2008032532A JP 2008032532 A JP2008032532 A JP 2008032532A JP 2006206273 A JP2006206273 A JP 2006206273A JP 2006206273 A JP2006206273 A JP 2006206273A JP 2008032532 A JP2008032532 A JP 2008032532A
- Authority
- JP
- Japan
- Prior art keywords
- image
- defect detection
- difference
- defect
- coarse
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、印刷物の欠陥を検出する技術に関する。 The present invention relates to a technique for detecting defects in printed matter.
従来より、印刷物を撮像した画像(検査の対象となる対象画像)と、検査の基準となる基準画像との差分を求め、求めた差分に基づいて対象画像と基準画像との不一致の度合いを検出して、当該印刷物の欠陥を検出する技術が提案されている。このような技術が、例えば、特許文献1に記載されている。
Conventionally, a difference between an image obtained by capturing a printed matter (a target image to be inspected) and a reference image to be an inspection reference is obtained, and the degree of mismatch between the target image and the reference image is detected based on the obtained difference. Thus, techniques for detecting defects in the printed matter have been proposed. Such a technique is described in
一方、印刷物を作成する際に、印刷機のオペレータは、全体的な色のバランスを考慮して仕上げるのが一般的である。すなわち、印刷機のオペレータの経験、好み等によって、ある特定の色を全体的に濃くしたり、薄くしたりすることはよく行われる。 On the other hand, when creating a printed matter, the operator of the printing machine generally finishes in consideration of the overall color balance. That is, it is common to make a specific color darker or lighter overall depending on the experience and preferences of the operator of the printing press.
人の目は、比較的狭い範囲における色の不一致には敏感であり、このような現象が生じていれば欠陥として認識する。しかし、緩やかなインキムラ(濃淡)のように、比較的広い範囲における色の不一致には鈍感であり、これは欠陥として認識しにくいという特性がある。すなわち、通常オペレータが意識的に与えた色の濃淡は、人の目には欠陥として認識されることはない。 The human eye is sensitive to color mismatch in a relatively narrow range, and if such a phenomenon occurs, it is recognized as a defect. However, color inconsistency over a relatively wide range, such as gradual ink unevenness (light / dark), is insensitive and has a characteristic that it is difficult to recognize as a defect. In other words, the color shading normally given by the operator is not recognized as a defect by human eyes.
ところが、対象画像と基準画像との一致、不一致を所定の閾値に基づいて画素毎に単純に比較判定すると、オペレータによって意識的に与えた色の濃淡についても欠陥として判定されるという問題があった。本来、印刷物においては、人に欠陥として認識されるものだけを欠陥として検出すべきであるにもかかわらず、従来の技術では、オペレータが意識的に与えた色の濃淡であって、通常欠陥として認識されないものも、欠陥として検出してしまうという問題があった。 However, if the comparison between the target image and the reference image is simply compared for each pixel based on a predetermined threshold value, there is a problem that the shade of the color consciously given by the operator is also determined as a defect. . Originally, in printed matter, only what is recognized as a defect by humans should be detected as a defect. There is a problem that unrecognized ones are detected as defects.
このような問題を解決するために、例えば、所定の閾値を鈍化させる調整を行うことも可能である。しかし、この場合は、本来、欠陥として検出すべき差分(不一致)も検出されなくなり、検出精度が低下するという問題が発生する。 In order to solve such a problem, for example, it is possible to perform an adjustment for slowing a predetermined threshold value. However, in this case, the difference (mismatch) that should be detected as a defect is no longer detected, and the detection accuracy decreases.
本発明は、上記課題に鑑みなされたものであり、欠陥の検出精度を低下させることなく、印刷物を見る者に欠陥として認識されないような、比較的穏やかなインキムラに関する誤検出を防止することを目的とする。 The present invention has been made in view of the above problems, and an object thereof is to prevent erroneous detection related to relatively gentle ink unevenness that is not recognized as a defect by a viewer of a printed matter without deteriorating the detection accuracy of the defect. And
上記の課題を解決するため、請求項1の発明は、対象画像の欠陥を検出する欠陥検出装置であって、基準画像および対象画像を取得する取得手段と、前記取得手段により取得された基準画像および対象画像に基づいて、差分画像を生成する第1生成手段と、差分粗画像を生成する第2生成手段と、前記第2生成手段により生成された差分粗画像を、前記第1生成手段により生成された差分画像のサイズに拡大することによりマスク用画像を生成する拡大手段と、前記拡大手段により生成されたマスク用画像により、前記第2生成手段により生成された差分画像をマスクして欠陥を検出する欠陥検出手段とを備えることを特徴とする。
In order to solve the above problems, the invention of
また、請求項2の発明は、請求項1の発明に係る欠陥検出装置であって、前記取得手段により取得された基準画像に基づいて基準粗画像を生成するとともに、前記取得手段により取得された対象画像に基づいて対象粗画像を生成する粗画像生成手段をさらに備え、前記第2生成手段は、前記粗画像生成手段により生成された基準粗画像および対象粗画像に基づいて差分粗画像を生成することを特徴とする。
The invention according to
また、請求項3の発明は、請求項1の発明に係る欠陥検出装置であって、前記第2生成手段は、前記第1生成手段により生成された差分画像に基づいて、差分粗画像を生成することを特徴とする。
The invention according to
また、請求項4の発明は、請求項1ないし3のいずれかの発明に係る欠陥検出装置であって、前記マスク用画像は、太らせ処理がされていることを特徴とする。 According to a fourth aspect of the present invention, there is provided a defect detection apparatus according to any one of the first to third aspects, wherein the mask image is subjected to a fattening process.
また、請求項5の発明は、対象画像の欠陥を検出する欠陥検出方法であって、基準画像および対象画像を取得する取得工程と、前記取得工程において取得された基準画像および対象画像に基づいて、差分画像を生成する第1生成工程と、差分粗画像を生成する第2生成工程と、前記第2生成工程において生成された差分粗画像を、前記第1生成工程において生成された差分画像のサイズに拡大することによりマスク用画像を生成する拡大工程と、前記拡大工程において生成されたマスク用画像により、前記第2生成工程において生成された差分画像をマスクして欠陥を検出する欠陥検出工程とを備えることを特徴とする。 The invention of claim 5 is a defect detection method for detecting a defect in a target image, based on an acquisition step of acquiring a reference image and a target image, and the reference image and target image acquired in the acquisition step. The first generation step for generating the difference image, the second generation step for generating the difference coarse image, and the difference coarse image generated in the second generation step are the same as the difference image generated in the first generation step. An enlargement step for generating a mask image by enlarging the size, and a defect detection step for detecting a defect by masking the difference image generated in the second generation step by the mask image generated in the enlargement step It is characterized by providing.
また、請求項6の発明は、コンピュータ読み取り可能なプログラムであって、前記プログラムの前記コンピュータによる実行は、前記コンピュータを、基準画像および対象画像を取得する取得手段と、前記取得手段により取得された基準画像および対象画像に基づいて、差分画像を生成する第1生成手段と、差分粗画像を生成する第2生成手段と、前記第2生成手段により生成された差分粗画像を、前記第1生成手段により生成された差分画像のサイズに拡大することによりマスク用画像を生成する拡大手段と、前記拡大手段により生成されたマスク用画像により、前記第2生成手段により生成された差分画像をマスクして欠陥を検出する欠陥検出手段とを備え、対象画像の欠陥を検出する欠陥検出装置として機能させることを特徴とする。 The invention according to claim 6 is a computer-readable program, and the execution of the program by the computer is acquired by the acquisition means for acquiring a reference image and a target image, and the acquisition means. Based on the reference image and the target image, a first generation unit that generates a difference image, a second generation unit that generates a difference coarse image, and the difference coarse image generated by the second generation unit are generated in the first generation. Masking the difference image generated by the second generation means with an enlargement means for generating a mask image by enlarging the size of the difference image generated by the means, and a mask image generated by the enlargement means. And defect detection means for detecting defects, and functioning as a defect detection device for detecting defects in the target image.
請求項1ないし6に記載の発明では、差分粗画像を、生成された差分画像のサイズに拡大することによりマスク用画像を生成し、生成されたマスク用画像により、差分画像をマスクして欠陥を検出することにより、大局的なインキムラの影響を除去しつつ検査することができる。したがって、欠陥の検出精度を低下させることなく、見る者に欠陥として認識されないような、比較的穏やかなインキムラに関する誤検出を防止することができる。 According to the first to sixth aspects of the present invention, a difference rough image is enlarged to the size of the generated difference image, a mask image is generated, and the difference image is masked by the generated mask image to cause a defect. By detecting this, it is possible to inspect while removing the influence of global ink unevenness. Accordingly, it is possible to prevent erroneous detection related to relatively gentle ink unevenness that is not recognized as a defect by a viewer without reducing the detection accuracy of the defect.
請求項4に記載の発明では、マスク用画像は、太らせ処理がされていることにより、大局的なインキムラの影響をより効果的に除去できる。 According to the fourth aspect of the present invention, since the mask image is subjected to the thickening process, the influence of the global ink unevenness can be more effectively removed.
以下、本発明の好適な実施の形態について、添付の図面を参照しつつ、詳細に説明する。 DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the accompanying drawings.
<1. 第1の実施の形態>
図1は、本発明に係る欠陥検出装置1を示す図である。また、図2は、欠陥検出装置1の構成を示す図である。
<1. First Embodiment>
FIG. 1 is a diagram showing a
欠陥検出装置1は、CPU10、プログラム120等のデータを記憶する記憶部11、操作部15、表示部16、ネットワーク91に接続するための通信部17、メディア92を読み取るドライブ装置18および撮像部19を備える。欠陥検出装置1は、一般的なコンピュータとしての機能を有している。
The
図2に示すように、CPU10はバス配線によって欠陥検出装置1の各種構成と接続されている。CPU10は、プログラム120に従って動作することにより、制御信号を生成し、これら各種構成を制御する。また、CPU10は、各種情報の演算を行う機能を有している。
As shown in FIG. 2, the
記憶部11は、主にプログラム120を記憶するデータ読み取り専用のROM12、CPU10の一時的なワーキングエリアとして使用されるRAM13、および比較的大容量のデータを記憶するハードディスク14を備えている。欠陥検出装置1において使用、生成される各種情報は、適宜、記憶部11に記憶される。
The
操作部15は、図示しないキーボードやマウス等を備え、オペレータが欠陥検出装置1に情報を入力するために操作される。
The
表示部16は、一般的なディスプレイであって、各種情報を画像として画面に表示する。特に、表示部16は、欠陥検出装置1の検出結果を表示する。これにより、オペレータは、欠陥検出装置1の検出結果を確認することができる。
The
通信部17は、ネットワークインタフェースとしての機能を有しており、欠陥検出装置1をネットワーク91に接続する。通信部17を備えることにより、欠陥検出装置1は、ネットワーク91を介して、図示しない外部装置との間でデータ通信が可能とされている。なお、ネットワーク91としては、公衆回線網、インターネットあるいはLAN等が該当するが、もちろんこれに限られるものではない。
The
ドライブ装置18は、例えば、FDドライブ装置、CD−ROMドライブ装置、DVDドライブ装置等であって、可搬性の記録媒体であるメディア92に記憶されている情報を読み取る機能を有する。ドライブ装置18は、メディア92から読み取った情報を主にハードディスク14に転送する。
The
特に、本実施の形態における欠陥検出装置1では、ドライブ装置18によって、メディア92に記憶されている画像データ(図3:基準画像130)を読み取る。すなわち、ドライブ装置18は、本発明の取得手段に相当する機能を有している。なお、基準画像130は、ネットワーク91を介して通信部17が外部装置(基準画像130を作成する装置)から受信することにより取得されてもよい。
In particular, in the
撮像部19は、一般的なデジタルカメラであって、図示しない光電変換素子により、印刷物90を撮像して、画像データ(図3:対象画像131)を取得する。すなわち、撮像部19は、本発明の取得手段に相当する機能を有している。なお、印刷物から対象画像131を取得する構成としては、例えば、スキャナ等であってもよい。
The
図3は、欠陥検出装置1の機能ブロックをデータの流れとともに示す図である。図3に示す第1生成部100、粗画像生成部101、第2生成部102、拡大部103および欠陥検出部104は、CPU10がプログラム120に従って動作することにより実現される機能ブロックである。
FIG. 3 is a diagram illustrating functional blocks of the
第1生成部100は、基準画像130および対象画像131に基づいて、これらの差分である差分画像132を生成する。
The
粗画像生成部101は、基準画像130に基づいて、これを縮小した基準粗画像133を生成する。また、粗画像生成部101は、対象画像131に基づいて、これを縮小した対象粗画像134を生成する。なお、粗画像生成部101が基準画像130および対象画像131を縮小する手法は、単純間引きによる縮小法ではなく、いわゆるバイリニア法を用いる。
The coarse
第2生成部102は、基準粗画像133および対象粗画像134に基づいて、これらの差分である差分粗画像135を生成する。
Based on the reference
拡大部103は、差分粗画像135を、差分画像132のサイズに拡大して、マスク用画像136を生成する。なお、拡大部103が差分粗画像135を拡大する手法は、単純拡大による拡大法ではなく、バイリニア法を用いる。
The
欠陥検出部104は、差分画像132をマスク用画像136によってマスクしつつ、マスクされた差分画像132に基づいて欠陥の検出を行う。また、欠陥検出部104は、検出結果を表示部16に表示させる。
The
以上が、欠陥検出装置1の構成および機能の説明である。次に、欠陥検出装置1の動作について説明する。
The above is the description of the configuration and function of the
図4は、欠陥検出装置1の動作を示す流れ図である。欠陥検出装置1は、電源が投入されると、所定の初期設定を実行した後、オペレータの指示が入力されるまで待機状態となる(ステップS1)。
FIG. 4 is a flowchart showing the operation of the
オペレータが操作部15を操作して、印刷物90の欠陥の検出を開始するように欠陥検出装置1に指示を入力すると、CPU10は、ステップS1においてYesと判定し、取得工程を実行する(ステップS2)。
When the operator operates the
取得工程では、まず、ドライブ装置18に挿入されたメディア92から基準画像130が読み取られ、記憶部11のハードディスク14に転送され記憶される。さらに、ハードディスク14から基準画像130がRAM13に読み出されることにより、基準画像130が取得される。
In the acquisition process, first, the
また、取得工程では、撮像部19によって印刷物90の撮像が行われ、印刷物90を被写体とした対象画像131がRAM13に転送される。これにより、対象画像131が取得される。
Further, in the acquisition process, the printed
図5は、基準画像130を例示する図である。また、図6は、対象画像131を例示する図である。ここに示す例では、対象画像131における屋根の色は、基準画像130における屋根の色よりも濃い色で印刷されている。すなわち、基準画像130と対象画像131とにおいて、屋根の色に濃淡差を生じている。また、対象画像131には、基準画像130にない輪郭131aが描かれている。
FIG. 5 is a diagram illustrating the
基準画像130および対象画像131が取得されると、次に、第1生成工程が実行される(ステップS3)。
Once the
第1生成工程では、第1生成部100が、基準画像130と対象画像131とにおいてそれぞれ対応する画素(各画像内における位置が互いに等しい画素)を抽出し、抽出した2つの画素の画素値の差分を演算する。さらに、求めた画素値の差分を画素値とする差分画像132を生成する。
In the first generation step, the
図7は、差分画像132を例示する図である。なお、図7における点A,B,C,Dは以下の説明のために付したものである。差分画像132では、基準画像130と対象画像131とが一致する領域に相当する画素の画素値は「0」となる。
FIG. 7 is a diagram illustrating the
したがって、図7に示すように、ここに示す例における差分画像132には、輪郭131aの有無に起因する不一致領域132aと、屋根の色の濃淡差に起因する不一致領域132bとが表現される。
Therefore, as shown in FIG. 7, in the
図8は、図7に示した差分画像132の点Aから点Bまでの画素の画素値を示す図である。また、図9は、図7に示した差分画像132の点Cから点Dまでの画素の画素値を示す図である。なお、ここでは、不一致領域132aの画素の画素値と、不一致領域132bの画素の画素値が等しい例とする。
FIG. 8 is a diagram illustrating pixel values of pixels from the point A to the point B of the
図8から明らかなように、差分画像132では、対象画像131における輪郭131aに相当する画素のみ画素値が高くなっている。また、図9から明らかなように、差分画像132では、基準画像130(および対象画像131)における「屋根」に相当する画素のみ画素値が高くなっている。
As is apparent from FIG. 8, in the
差分画像132が生成されると、欠陥検出装置1は、粗画像生成工程を実行する(ステップS4)。
When the
粗画像生成工程では、まず、粗画像生成部101が、基準画像130に対してバイリニア法による縮小処理を行い、基準粗画像133を生成する。また、粗画像生成部101は、同様に対象画像131に対してバイリニア法による縮小処理を行い、対象粗画像134を生成する。なお、基準粗画像133および対象粗画像134を生成する際の縮小率は、どの程度の不一致領域を欠陥として検出したいかに応じて予め設定され、記憶されている。
In the coarse image generation process, first, the coarse
基準粗画像133および対象粗画像134が生成されると、次に、第2生成工程が実行される(ステップS5)。
Once the reference
第2生成工程では、第2生成部102が、基準粗画像133および対象粗画像134に基づいて、差分粗画像135を生成する。このとき、第2生成部102は、所定のサイズのぼかしマスクを用いて、いわゆる「ぼかし処理」を行いつつ、差分粗画像135を生成する。
In the second generation step, the
このように、第2生成部102が、差分粗画像135を生成する際に、ぼかし処理を行うことによって、基準粗画像133と対象粗画像134との不一致領域(すなわち、基準画像130と対象画像131との不一致領域)のうち比較的小さい領域の画素について、画素値をさらに低下させることができる。
As described above, the
図10は、差分粗画像135を例示する図である。バイリニア法による縮小処理と、ぼかし処理とによって、差分粗画像135では、基準画像130と対象画像131との不一致領域のうち比較的小さい領域に相当する画素の画素値(差分値)は低い値となる(「0」に近似する)。
FIG. 10 is a diagram illustrating the differential
差分粗画像135が生成されると、欠陥検出装置1は、拡大工程を実行する(ステップS6)。
When the difference
拡大工程では、拡大部103が、差分粗画像135をバイリニア法によって拡大処理し、マスク用画像136を生成する。この拡大工程により、差分粗画像135は、差分画像132と同じサイズとなる。
In the enlargement process, the
図11は、マスク用画像136を例示する図である。図12は、図11に示すマスク用画像136において、図7に示す点Aから点Bまでの画素の画素値を示す図である。また、図13は、図11に示すマスク用画像136において、図7に示す点Cから点Dまでの画素の画素値を示す図である。
FIG. 11 is a diagram illustrating a
図11では認識できないが、図12に示すように、対象画像131における輪郭131aに起因する不一致領域についても、マスク用画像136の画素値は「0」とはならない。ただし、図8と図12とを比較すると明らかなように、マスク用画像136では、対象画像131における輪郭131aに起因する不一致領域の画素値は大きく低下している。
Although not recognized in FIG. 11, as shown in FIG. 12, the pixel value of the
一方、図11から明らかなように、屋根の色の濃淡差に起因する不一致領域136aの周囲は多少ぼやけた状態(すなわち、差分値が低下した状態)となる。ただし、図9と図13とを比較すると明らかなように、不一致領域136aの内部領域については、不一致領域132bに比べて画素値は低下していない。
On the other hand, as apparent from FIG. 11, the area around the
マスク用画像136が生成されると、欠陥検出装置1は、欠陥検出工程を実行する(ステップS7)。
When the
欠陥検出工程では、まず、欠陥検出部104が、マスク用画像136を用いて、差分画像132をマスクする。すなわち、差分画像132の各画素の画素値から、対応するマスク用画像136の画素の画素値を減算(負値は「0」とする)して、検査用の画像を生成する。
In the defect detection step, first, the
図14は、検査用の画像を例示する図である。図15は、図14に示す検査用の画像において、図7に示す点Aから点Bまでの画素の画素値を示す図である。また、図16は、図14に示す検査用の画像において、図7に示す点Cから点Dまでの画素の画素値を示す図である。 FIG. 14 is a diagram illustrating an image for inspection. FIG. 15 is a diagram illustrating pixel values of pixels from point A to point B shown in FIG. 7 in the inspection image shown in FIG. FIG. 16 is a diagram showing pixel values of pixels from point C to point D shown in FIG. 7 in the inspection image shown in FIG.
検査用の画像が生成されると、欠陥検出部104は、当該画像の画素値と所定の閾値とを比較して、許容範囲以上の画素値(差分値)となっている領域を「欠陥」として検出する。
When the inspection image is generated, the
図8と図9とを比較すれば明らかなように、差分画像132においては、輪郭131aに起因する不一致領域132aと、屋根の色の濃淡差に起因する不一致領域132bとは、画素値が等しいために、どのように閾値を設定したとしても、不一致領域132aのみを欠陥として検出することはできなかった。
As apparent from a comparison between FIG. 8 and FIG. 9, in the
すなわち、前述のように、不一致領域132aのような領域を欠陥として検出しようと閾値を設定すれば、同時に不一致領域132bのような領域(例えばオペレータによって意識的に付与された濃淡差が生じている領域)も欠陥として誤検出することとなる。また、不一致領域132bを誤検出しないように閾値を設定すれば、不一致領域132aのような領域を見落とすこととなり、検出精度が低下する。
That is, as described above, if a threshold value is set to detect a region such as the
しかし、図15と図16とを比較すれば明らかなように、欠陥検出装置1において欠陥検出に用いる検査用の画像では、輪郭131aに起因する不一致領域137aの画素値が、屋根の色の濃淡差に起因する不一致領域の画素値に比べて高い値となっている。
However, as apparent from comparison between FIG. 15 and FIG. 16, in the inspection image used for defect detection in the
したがって、適当な閾値を設定することにより、欠陥検出部104は、不一致領域137aを欠陥として検出する一方で、屋根の色の濃淡差等の対局的なインキムラに起因する不一致領域を欠陥として誤検出することを抑制することができる。
Therefore, by setting an appropriate threshold value, the
さらに、欠陥検出部104は、検出結果を表示部16に表示する。検出結果としては、例えば、図14に示した検査用の画像を、所定の閾値で2値化した画像を表示部16に表示する。
Further, the
欠陥検出工程が終了すると、さらに検出処理を終了するか否かを判定する(ステップS8)。さらに検出処理を続ける場合は、ステップS1に戻って処理を継続し、検出処理を終了する場合は、処理を終了する。 When the defect detection process is finished, it is further determined whether or not the detection process is finished (step S8). If the detection process is to be continued, the process returns to step S1 to continue the process. If the detection process is to be terminated, the process is terminated.
以上のように、本実施の形態における欠陥検出装置1は、基準画像130および対象画像131に基づいて差分画像132を生成し、基準粗画像133および対象粗画像134に基づいて差分粗画像135を生成し、生成した差分粗画像135を差分画像132のサイズに拡大したマスク用画像136を生成し、生成したマスク用画像136により、差分画像132をマスクして欠陥を検出することにより、大局的なインキムラの影響を除去しつつ検査することができる。したがって、欠陥の検出精度を低下させることなく、見る者に欠陥として認識されないような、比較的穏やかなインキムラに関する誤検出を防止することができる。
As described above, the
<2. 第2の実施の形態>
第1の実施の形態では、差分粗画像を生成するために、基準画像を縮小した基準粗画像と、対象画像を縮小した対象粗画像とを生成した。しかし、差分粗画像を生成する手法はこれに限定されるものではない。
<2. Second Embodiment>
In the first embodiment, in order to generate a differential coarse image, a reference coarse image obtained by reducing the reference image and a target coarse image obtained by reducing the target image are generated. However, the method for generating the differential coarse image is not limited to this.
図17は、第2の実施の形態における欠陥検出装置1の機能ブロックをデータの流れとともに示す図である。
FIG. 17 is a diagram illustrating functional blocks of the
第2の実施の形態における欠陥検出装置1は、第1の実施の形態における欠陥検出装置1の粗画像生成部101に相当する機能ブロックを備えていない。また、第1の実施の形態における欠陥検出装置1の第2生成部102に類似する構成として、第2生成部102aを備えている。
The
なお、第2の実施の形態における欠陥検出装置1において、第1の実施の形態における欠陥検出装置1とほぼ同様の機能を有する構成については、同一の符号を付し、適宜説明を省略する。以下の実施の形態においても同様である。
Note that in the
第2の実施の形態における第2生成部102aは、第1生成部100によって生成された差分画像132を、バイリニア法によって縮小することにより、差分粗画像135を生成する点が、第1の実施の形態における第2生成部102と異なる。すなわち、第2の実施の形態における欠陥検出装置1では、基準粗画像133および対象粗画像134に相当するデータは生成されない。
The
第2の実施の形態における欠陥検出装置1の動作について説明すると、第2の実施の形態における欠陥検出装置1では、第1の実施の形態における粗画像生成工程(ステップS4)に相当する工程は実行されない。
The operation of the
すなわち、第1生成工程(ステップS3)が実行された後、第2生成工程(ステップS5)が実行される。ただし、第2の実施の形態における第2生成工程では、第2生成部102aが、差分画像132に基づいて、差分粗画像135を生成する。
That is, after the first generation process (step S3) is executed, the second generation process (step S5) is executed. However, in the second generation step in the second embodiment, the
他の工程については、第1の実施の形態における欠陥検出装置1の動作と同様であるので以下説明を省略する。
The other steps are the same as the operation of the
以上のように、第2の実施の形態における欠陥検出装置1は、差分画像132に基づいて差分粗画像135を生成することにより、第1の実施の形態における欠陥検出装置1と同様の効果を得ることができる。
As described above, the
<3. 第3の実施の形態>
上記実施の形態では、例えば、図16に示したように、大局的なインキムラであっても、検査用の画像において画素値の比較的高い画素が出現する。この場合であっても、前述のように、適切な閾値を決めれば、欠陥であるか否かの判定は可能である。しかし、欠陥として検出したくない現象に起因して、画素値の比較的高い画素が出現してしまうとすると、予め設定しておく閾値の適切な範囲が狭くなる。すなわち、適切な閾値の設定が困難になるという問題がある。本発明は、このような問題についても解決策を提供する。
<3. Third Embodiment>
In the above embodiment, for example, as shown in FIG. 16, pixels having a relatively high pixel value appear in the inspection image even if there is a general ink unevenness. Even in this case, as described above, if an appropriate threshold is determined, it is possible to determine whether or not the defect is present. However, if a pixel having a relatively high pixel value appears due to a phenomenon that is not desired to be detected as a defect, an appropriate range of a preset threshold value is narrowed. That is, there is a problem that it is difficult to set an appropriate threshold value. The present invention also provides a solution for such problems.
図18は、第3の実施の形態における欠陥検出装置1の機能ブロックをデータの流れとともに示す図である。
FIG. 18 is a diagram illustrating functional blocks of the
第3の実施の形態における欠陥検出装置1は、第2の実施の形態における欠陥検出装置1の拡大部103に類似する機能ブロックが太らせ処理部105を有する拡大部103aとなっている点が、第2の実施の形態における欠陥検出装置1と異なっている。
The
拡大部103aは、第2の実施の形態における拡大部103と同様に、差分粗画像135に基づいて、第2の実施の形態におけるマスク用画像136に相当する画像(図示せず)を生成する。さらに、このようにして生成した画像に対して太らせ処理部105により太らせ処理を実行してマスク用画像138を生成する。
The enlargement unit 103a generates an image (not shown) corresponding to the
なお、太らせ処理とは、隣接する所定個数の画素(例えば、3×3個の画素)の最大画素値を求め、これら所定個数の画素の画素値をすべて求めた最大画素値とする処理である。 The fattening process is a process for obtaining the maximum pixel value of a predetermined number of adjacent pixels (for example, 3 × 3 pixels) and setting all the pixel values of the predetermined number of pixels to the maximum pixel value obtained. is there.
図19は、マスク用画像138を例示する図である。なお、図19に示すマスク用画像138は、太らせ処理部105が、図11に例示したマスク用画像136と同じ画像に対して太らせ処理を実行することにより生成したものである。
FIG. 19 is a diagram illustrating a
また、図20は、図19に示すマスク用画像138において、図7に示す点Aから点Bまでの画素の画素値を示す図である。なお、図20に示す破線は、図12に示した画素値を示す。すなわち、図20に示す破線は、太らせ処理を行わない場合の画素値を示す。
20 is a diagram showing pixel values of pixels from point A to point B shown in FIG. 7 in the
さらに、図21は、図19に示すマスク用画像138において、図7に示す点Cから点Dまでの画素の画素値を示す図である。なお、図21に示す破線は、図13に示した画素値を示す。すなわち、図21に示す破線は、太らせ処理を行わない場合の画素値を示す。
Further, FIG. 21 is a diagram showing pixel values of pixels from point C to point D shown in FIG. 7 in the
図20および図21から明らかなように、太らせ処理を行うと、不一致領域における画素値の最大値は変化しないが、実際の不一致領域の周囲が広がった状態の画像となる。 As is apparent from FIGS. 20 and 21, when the fattening process is performed, the maximum value of the pixel value in the mismatch region does not change, but an image in which the periphery of the actual mismatch region is spread is obtained.
第2の実施の形態における欠陥検出部104は、ステップS6に相当する欠陥検出工程において、拡大部103aによって生成された太らせ処理済みマスク用画像138によって差分画像132をマスクしつつ、欠陥の検出を行う。
In the defect detection step corresponding to step S6, the
図22は、第3の実施の形態における検査用の画像において、図7に示す点Aから点Bまでの画素の画素値を示す図である。また、図23は、第3の実施の形態における検査用の画像において、図7に示す点Cから点Dまでの画素の画素値を示す図である。 FIG. 22 is a diagram illustrating pixel values of pixels from point A to point B illustrated in FIG. 7 in the inspection image according to the third embodiment. FIG. 23 is a diagram illustrating pixel values of pixels from point C to point D illustrated in FIG. 7 in the inspection image according to the third embodiment.
図22と図23とを比較すれば明らかなように、輪郭131aに起因する不一致領域の画素値は、屋根の色の濃淡差に起因する不一致領域の画素値に比べて充分に高い値となっている。言い換えれば、図16と図23とを比較すれば明らかなように、屋根の色の濃淡差に起因する不一致領域の画素値はほぼ「0」となっている。すなわち、大局的なインキムラに起因する不一致を効果的に排除できているので、欠陥検出部104において、容易に閾値を設定することができる。
As apparent from a comparison between FIG. 22 and FIG. 23, the pixel value of the mismatched region caused by the contour 131a is sufficiently higher than the pixel value of the mismatched region caused by the shade color difference. ing. In other words, as apparent from a comparison between FIG. 16 and FIG. 23, the pixel value of the non-matching region due to the difference in shade of the roof color is almost “0”. That is, since the mismatch due to the global ink unevenness can be effectively eliminated, the threshold value can be easily set in the
なお、本実施の形態では、第2の実施の形態における欠陥検出装置1に太らせ処理部105を設ける例で説明したが、第1の実施の形態における欠陥検出装置1に太らせ処理部105を設けてもよい。
In the present embodiment, the example in which the
また、本実施の形態では、拡大差分粗画像に対して太らせ処理を行うと説明したが、太らせ処理は、例えば、差分画像132や差分粗画像135に対して行ってもよい。
Further, in the present embodiment, it has been described that the thickening process is performed on the enlarged differential coarse image. However, the thickening process may be performed on the
<4. 変形例>
以上、本発明の実施の形態について説明してきたが、本発明は上記実施の形態に限定されるものではなく様々な変形が可能である。
<4. Modification>
Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various modifications can be made.
例えば、上記実施の形態では、画像を拡大・縮小する処理は、バイリニア法を用いると説明したが、これに限られるものではなく、バイキュービック法であってもよい。すなわち、単純間引きによる縮小、あるいは単純複製による拡大でなければ本発明における画像の拡大・縮小処理に適用可能である。 For example, in the above-described embodiment, the processing for enlarging / reducing an image has been described as using the bilinear method. However, the present invention is not limited to this, and a bicubic method may be used. In other words, the present invention can be applied to image enlargement / reduction processing according to the present invention unless it is reduced by simple decimation or enlargement by simple duplication.
また、上記実施の形態に示した各工程は例示であって、これに限定されるものではない。すなわち、同様の効果が得られるならば、動作順序および動作内容が適宜変更されてもよい。 Moreover, each process shown to the said embodiment is an illustration, Comprising: It is not limited to this. That is, as long as the same effect can be obtained, the operation order and the operation content may be changed as appropriate.
また、上記実施の形態において、各機能ブロックはプログラム120によってソフトウェア的に実現されると説明したが、これらの機能ブロックの一部または全部を専用の回路を用いてハードウェア的に実現してもよい。
In the above embodiment, each functional block has been described as being realized by software by the
1 欠陥検出装置
10 CPU
100 第1生成部
101 粗画像生成部
102,102a 第2生成部
103,103a 拡大部
104 欠陥検出部
105 太らせ処理部
11 記憶部
120 プログラム
130 基準画像
131 対象画像
132 差分画像
133 基準粗画像
134 対象粗画像
135 差分粗画像
136,138 マスク用画像
18 ドライブ装置(取得手段)
19 撮像部(取得手段)
90 印刷物
1
DESCRIPTION OF
19 Imaging unit (acquisition means)
90 printed matter
Claims (6)
基準画像および対象画像を取得する取得手段と、
前記取得手段により取得された基準画像および対象画像に基づいて、差分画像を生成する第1生成手段と、
差分粗画像を生成する第2生成手段と、
前記第2生成手段により生成された差分粗画像を、前記第1生成手段により生成された差分画像のサイズに拡大することによりマスク用画像を生成する拡大手段と、
前記拡大手段により生成されたマスク用画像により、前記第2生成手段により生成された差分画像をマスクして欠陥を検出する欠陥検出手段と、
を備えることを特徴とする欠陥検出装置。 A defect detection device for detecting defects in a target image,
An acquisition means for acquiring a reference image and a target image;
First generation means for generating a difference image based on the reference image and the target image acquired by the acquisition means;
A second generating means for generating a differential coarse image;
Enlargement means for generating a mask image by enlarging the difference coarse image generated by the second generation means to the size of the difference image generated by the first generation means;
A defect detection means for detecting a defect by masking the difference image generated by the second generation means with the mask image generated by the enlargement means;
A defect detection apparatus comprising:
前記取得手段により取得された基準画像に基づいて基準粗画像を生成するとともに、前記取得手段により取得された対象画像に基づいて対象粗画像を生成する粗画像生成手段をさらに備え、
前記第2生成手段は、
前記粗画像生成手段により生成された基準粗画像および対象粗画像に基づいて差分粗画像を生成することを特徴とする欠陥検出装置。 The defect detection apparatus according to claim 1,
A rough image generation unit that generates a reference coarse image based on the reference image acquired by the acquisition unit and that generates a target coarse image based on the target image acquired by the acquisition unit,
The second generation means includes
A defect detection apparatus, characterized in that a differential coarse image is generated based on a reference coarse image and a target coarse image generated by the coarse image generation means.
前記第2生成手段は、前記第1生成手段により生成された差分画像に基づいて、差分粗画像を生成することを特徴とする欠陥検出装置。 The defect detection apparatus according to claim 1,
The defect detection apparatus, wherein the second generation unit generates a differential coarse image based on the difference image generated by the first generation unit.
前記マスク用画像は、太らせ処理がされていることを特徴とする欠陥検出装置。 The defect detection apparatus according to any one of claims 1 to 3,
A defect detection apparatus, wherein the mask image is subjected to a fattening process.
基準画像および対象画像を取得する取得工程と、
前記取得工程において取得された基準画像および対象画像に基づいて、差分画像を生成する第1生成工程と、
差分粗画像を生成する第2生成工程と、
前記第2生成工程において生成された差分粗画像を、前記第1生成工程において生成された差分画像のサイズに拡大することによりマスク用画像を生成する拡大工程と、
前記拡大工程において生成されたマスク用画像により、前記第2生成工程において生成された差分画像をマスクして欠陥を検出する欠陥検出工程と、
を備えることを特徴とする欠陥検出方法。 A defect detection method for detecting defects in a target image,
An acquisition step of acquiring a reference image and a target image;
A first generation step of generating a difference image based on the reference image and the target image acquired in the acquisition step;
A second generation step of generating a differential coarse image;
An enlargement step of generating a mask image by enlarging the difference coarse image generated in the second generation step to the size of the difference image generated in the first generation step;
A defect detection step of detecting a defect by masking the difference image generated in the second generation step by the mask image generated in the enlargement step;
A defect detection method comprising:
基準画像および対象画像を取得する取得手段と、
前記取得手段により取得された基準画像および対象画像に基づいて、差分画像を生成する第1生成手段と、
差分粗画像を生成する第2生成手段と、
前記第2生成手段により生成された差分粗画像を、前記第1生成手段により生成された差分画像のサイズに拡大することによりマスク用画像を生成する拡大手段と、
前記拡大手段により生成されたマスク用画像により、前記第2生成手段により生成された差分画像をマスクして欠陥を検出する欠陥検出手段と、
を備え、
対象画像の欠陥を検出する欠陥検出装置として機能させることを特徴とするプログラム。
A computer-readable program, wherein execution of the program by the computer causes the computer to
An acquisition means for acquiring a reference image and a target image;
First generation means for generating a difference image based on the reference image and the target image acquired by the acquisition means;
A second generating means for generating a differential coarse image;
Enlargement means for generating a mask image by enlarging the difference coarse image generated by the second generation means to the size of the difference image generated by the first generation means;
A defect detection means for detecting a defect by masking the difference image generated by the second generation means with the mask image generated by the enlargement means;
With
A program that functions as a defect detection device that detects a defect in a target image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006206273A JP2008032532A (en) | 2006-07-28 | 2006-07-28 | Defect detection device, defect detection method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006206273A JP2008032532A (en) | 2006-07-28 | 2006-07-28 | Defect detection device, defect detection method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008032532A true JP2008032532A (en) | 2008-02-14 |
Family
ID=39122115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006206273A Pending JP2008032532A (en) | 2006-07-28 | 2006-07-28 | Defect detection device, defect detection method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008032532A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013187761A (en) * | 2012-03-08 | 2013-09-19 | Fuji Xerox Co Ltd | Printing system and image forming apparatus |
JP2015059855A (en) * | 2013-09-19 | 2015-03-30 | セントラル硝子株式会社 | Defect inspection method and defect inspection device |
-
2006
- 2006-07-28 JP JP2006206273A patent/JP2008032532A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013187761A (en) * | 2012-03-08 | 2013-09-19 | Fuji Xerox Co Ltd | Printing system and image forming apparatus |
JP2015059855A (en) * | 2013-09-19 | 2015-03-30 | セントラル硝子株式会社 | Defect inspection method and defect inspection device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Bennett et al. | Multispectral bilateral video fusion | |
US6377711B1 (en) | Methods and systems for detecting the edges of objects in raster images using diagonal edge detection | |
JP6693684B2 (en) | Abnormality inspection device and abnormality inspection method | |
JP2007285754A (en) | Flaw detection method and flaw detector | |
JP2010079780A (en) | Image processing apparatus, image processing method and computer program | |
JP2008198082A (en) | Image processing method, image processing apparatus, and digital camera | |
EP3422690B1 (en) | Information processing apparatus, control method thereof, and program | |
JP2007226616A (en) | Printed matter inspection device, printed matter inspection method, printer, method of printing, program, record medium | |
JP2004239733A (en) | Defect detection method and apparatus of screen | |
JP2007028604A (en) | Image processing apparatus, image processing method, and video camera | |
JP2006279442A (en) | Image processing method, apparatus, and program | |
JP2008032532A (en) | Defect detection device, defect detection method, and program | |
US20110187721A1 (en) | Line drawing processing apparatus, storage medium storing a computer-readable program, and line drawing processing method | |
JP2006050070A (en) | Image processing method, apparatus and program thereof | |
JP2009027223A (en) | Image display device, image display method, and program | |
JP4366634B2 (en) | Noise pixel map creation method, apparatus and program for implementing the method, and photo print apparatus | |
TW201314376A (en) | Image display apparatus for direct drawing apparatus and recording medium | |
TWI420418B (en) | Method for generating a non-graphical digital image from an original digital image | |
JP2008014831A (en) | Edge defect detection method and detection device | |
JP5190619B2 (en) | Inspection method for inspection object and inspection apparatus therefor | |
JP2006196937A (en) | Image processing apparatus and image processing method | |
JP3772845B2 (en) | Image processing program, image processing apparatus, and photographing apparatus | |
JP2004246110A (en) | Plate inspection apparatus, printing system, method for inspecting printed data on plate, and program | |
JP2001228050A (en) | Apparatus and method for detection of point defect | |
JP2003346165A (en) | Detection method of work boundary |