JPH08170947A - Image defect discriminating processor - Google Patents

Image defect discriminating processor

Info

Publication number
JPH08170947A
JPH08170947A JP6314631A JP31463194A JPH08170947A JP H08170947 A JPH08170947 A JP H08170947A JP 6314631 A JP6314631 A JP 6314631A JP 31463194 A JP31463194 A JP 31463194A JP H08170947 A JPH08170947 A JP H08170947A
Authority
JP
Japan
Prior art keywords
image
image data
inspected
inspection
reference image
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
JP6314631A
Other languages
Japanese (ja)
Inventor
Keisuke Matsunami
敬祐 松波
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP6314631A priority Critical patent/JPH08170947A/en
Publication of JPH08170947A publication Critical patent/JPH08170947A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To perform the inspection due to full color printing with high accuracy and to inspect image defects of all of kinds by forming a plurality of comparison images on the basis of the reference image of an object free from an image defect obtained by an imaging means. CONSTITUTION: The reference image data taken by a CCD camera and image data to be inspected are stored in an image memory 402. The reference image data and image data to be inspected from an image input part 3 are supplied to an Lab (L*a*b* color system of CIE) image forming part 403 and a differential processing part 405 and an inspection range image forming part 404 forms inspection range data from the reference image data stored in the memory 402. An image comparative operation part 408 performs comparison processing using the reference image data and image data to be inspected stored in the memory 402. The inspection range image data obtained in the image forming part 404 is supplied to a defective pixel extraction part 410 and an inspection discriminating part 411 discriminates whether the printing state of a CD (compact disk) to be inspected is normal on the basis of the number of defective pixels and the number of defects.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、印刷物の生産工程で発
生する印刷の汚れや傷等の欠陥や、工業製品の製造にお
ける表面の汚れやむら等を画像処理技術を用いて自動検
査する画像欠陥判別処理装置に係わるものであり、特
に、カラー印刷された印刷物の検査に用いて好適な画像
欠陥判別処理装置に係わるものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image which is automatically inspected by using image processing technology for defects such as stains and scratches on prints generated in the production process of printed matter and stains and unevenness on the surface in manufacturing industrial products. The present invention relates to a defect discrimination processing device, and particularly to an image defect discrimination processing device suitable for inspecting a color printed matter.

【0002】[0002]

【従来の技術】例えば、コンパクトディスク(以下、C
Dと言う。)の表面は、通常、アルミ蒸着と表面コーデ
ィングから鏡のようになるため、全反射すると共に薄い
膜厚から照明に対してモアレが発生する。このようなC
Dの表面には、CDの生産時に、信号が書き込まれると
共に、所定の位置にメーカ名やタイトル等のレーベルが
印刷される。そして、CDの表面に印刷された文字、絵
柄等のずれ、欠け、汚れ、しみ、ポックマーク等の検査
が行われる。
2. Description of the Related Art For example, a compact disc (hereinafter referred to as C
Say D. Since the surface of () is usually mirror-like due to aluminum vapor deposition and surface coating, it is totally reflected and a thin film thickness causes moiré with respect to illumination. C like this
A signal is written on the surface of D at the time of production of a CD, and a label such as a manufacturer name and a title is printed at a predetermined position. Then, the characters, patterns, etc. printed on the surface of the CD are inspected for deviations, chips, stains, stains, pock marks, and the like.

【0003】一般に、CD等の表面に印刷された状態を
検査する画像欠陥判別処理装置では、画像処理技術が用
いられおり、予めメモリに記憶されている基準画像と検
査すべき対象物の被検査画像とを比較する画像比較法に
より画像欠陥を判別して印刷状態の検査が行われる。
Generally, in an image defect discrimination processing apparatus for inspecting a state printed on the surface of a CD or the like, an image processing technique is used, and a reference image stored in a memory in advance and an object to be inspected are inspected. An image defect is discriminated by an image comparison method for comparing with an image, and a print state is inspected.

【0004】しかし、このような検査を行う際に、CD
表面の撮影は長方形画面のテレビジョン(以下、TVと
言う。)カメラによって行われていた。このため、CD
等のような円盤状で中心部が開口した対象物の場合、画
面の四隅及び中央部分が無効となり、画面の有効使用面
積が低下してしまっていた。その結果、1画素が大きく
なって画質が粗くなり、従って、解像力が低下してしま
うという問題があった。また、白黒のカメラで画像をと
らえた場合、例えば、黄色、空色、ピンク等の色は、モ
ノクロでのグレーレベルがほぼ同じとなり、多色印刷の
検査ができないという問題があった。
However, when performing such an inspection, the CD
The surface was photographed by a television (hereinafter referred to as TV) camera having a rectangular screen. Therefore, the CD
In the case of a disk-shaped object such as a disk whose central portion is open, the four corners and the central portion of the screen become ineffective, and the effective use area of the screen is reduced. As a result, there is a problem that one pixel becomes large and the image quality becomes rough, and thus the resolution is lowered. Further, when an image is captured by a monochrome camera, for example, colors such as yellow, sky blue, and pink have almost the same gray level in monochrome, and there is a problem that multicolor printing cannot be inspected.

【0005】そこで、特願平2−332089号に開示
されているように、例えば、ラインセンサカメラを用い
た画像欠陥判別処理装置が提案されている。
Therefore, as disclosed in Japanese Patent Application No. 2-332089, for example, an image defect discrimination processing device using a line sensor camera has been proposed.

【0006】即ち、上記画像欠陥判別処理装置は、例え
ば、CD等の円形体を固定し1回転だけ連続的に回転す
る回転体と、円形体上位に円形体の半径線に沿った部分
を撮影すべく設けられたラインセンサカメラを有する検
出部と、撮影された円形体の画像を予め同じラインセン
サカメラで撮影したリファレンスと比較照合して円形体
表面上の印刷の良否を判定する画像処理部と、円形体及
びリファレンスの画像を表示するモニタ部とを備えてお
り、ラインセンサカメラをカラーのラインセンサカメラ
としたものである。
That is, the image defect discrimination processing device photographs, for example, a rotating body that fixes a circular body such as a CD and continuously rotates by one rotation, and a portion above the circular body along a radius line of the circular body. And a detection unit having a line sensor camera provided to do so, and an image processing unit that determines the quality of printing on the surface of the circular body by comparing and collating the captured image of the circular body with a reference previously captured by the same line sensor camera. And a monitor unit for displaying images of a circular body and a reference, and the line sensor camera is a color line sensor camera.

【0007】このように、円形体を回転させ、ラインセ
ンサカメラにより半径線部分を撮影することにより、解
像度の高い画質を得ることができ、正確な検査を行うこ
とができる。また、ラインセンサカメラをカラーのライ
ンセンサカメラとすることにより、カラー印刷における
色の検査を正確に行うことができる。
As described above, by rotating the circular body and photographing the radial line portion with the line sensor camera, it is possible to obtain a high-resolution image quality and perform an accurate inspection. Further, by using a color line sensor camera as the line sensor camera, it is possible to accurately perform color inspection in color printing.

【0008】しかし、上述のようなラインセンサカメラ
使用した場合は、円形体を回転させる回転体等を設けな
ければならず、直接印刷装置に画像欠陥判別処理装置を
組み込むことが大がかりになってしまうという問題、ま
た、印刷装置における高速な印刷サイクルに対応するこ
とができないという問題がある。
However, when the line sensor camera as described above is used, it is necessary to provide a rotating body or the like for rotating a circular body, and it becomes a large scale to directly incorporate the image defect discrimination processing apparatus into the printing apparatus. There is also a problem that it is not possible to cope with a high-speed printing cycle in the printing apparatus.

【0009】一方、特願平3−264442号に開示さ
れているように、画像欠陥の種類別の検出を可能とする
ことを目的とした画像欠陥判別処理装置が提案されてい
る。即ち、上記画像欠陥判別処理装置は、例えば、基準
画像と被検査画像との画素毎の相違度データをアドレス
対応に記憶する相違度画像データ記憶部と、記憶した相
違度データ対応アドレスを予め定められた小領域に分割
する小領域アドレス発生部と、この小領域毎に相違度デ
ータと第1のしきい値との比較を行い第1のしきい値を
超えた相違度データ数が予め任意に定めた第2のしきい
値を超えた場合に小領域の第1のしきい値を超えた相違
度データを画素欠陥として判定する相違度画素算出判定
部とを備えている。
On the other hand, as disclosed in Japanese Patent Application No. 3-264442, an image defect discrimination processing device has been proposed for the purpose of making it possible to detect the type of image defect. That is, for example, the image defect determination processing device predetermines a difference degree image data storage unit that stores difference degree data for each pixel between a reference image and an image to be inspected in correspondence with an address, and a stored difference degree data corresponding address. The small area address generation unit that divides the divided small area and the difference data and the first threshold value for each small area are compared, and the number of difference data that exceeds the first threshold value is set in advance. And a dissimilarity pixel calculation determination unit that determines dissimilarity data that exceeds the first threshold value of the small area as a pixel defect when the second threshold value set in step 1 is exceeded.

【0010】[0010]

【発明が解決しようとする課題】しかし、上述したよう
な画像欠陥判別処理装置では、全ての種類の画像欠陥を
検査することができず、特に、CDの特徴的欠陥である
ポックマークを検査することができなかった。
However, the image defect discrimination processing device as described above cannot inspect all kinds of image defects, and in particular, inspects pockmarks, which are characteristic defects of CDs. I couldn't.

【0011】そこで、本発明は、上述の如き従来の実情
に鑑みてなされたものであり、次のような目的を有する
ものである。
Therefore, the present invention has been made in view of the above-mentioned conventional circumstances, and has the following objects.

【0012】即ち、本発明の目的は、フルカラー印刷に
よる検査を高精度に行い、全ての種類の画像欠陥を検査
する画像欠陥判別処理装置を提供することにある。
That is, an object of the present invention is to provide an image defect discrimination processing apparatus for inspecting all kinds of image defects by performing inspection by full color printing with high accuracy.

【0013】[0013]

【課題を解決するための手段】上述の課題を解決するた
めに、本発明に係る画像欠陥判別処理装置は、カラー画
像を取り込む撮像手段により得られた画像欠陥の無い対
象の基準画像を基に複数の比較画像を生成する比較画像
生成手段と、上記撮像手段により得られた判別対象の被
検査画像と上記基準画像から検査範囲の画像を各々抽出
する画像抽出手段と、上記画像抽出手段により得られた
検査範囲の基準画像の全画素を1画素毎に所定の特性に
対応した情報に置換した情報画像を生成する情報画像生
成手段と、上記比較画像生成手段により生成された複数
の比較画像から上記情報画像生成手段により生成された
情報画像に基いて比較画像を決定する決定手段と、上記
決定手段により決定された比較画像と上記画像抽出手段
により得られた検査範囲の被検査画像とを比較して画素
毎の相違度を求め、上記相違度と任意に設定されたしき
い値とを比較することにより被検査画像の画像欠陥を判
別する判別手段とを備えることを特徴とする。
In order to solve the above-mentioned problems, an image defect discrimination processing device according to the present invention is based on a reference image of an object having no image defect obtained by an image pickup means for capturing a color image. The comparison image generating means for generating a plurality of comparison images, the image extracting means for extracting the image of the inspection range from the inspected image to be discriminated and the reference image obtained by the image capturing means, and the image extracting means An information image generating unit that generates an information image in which all the pixels of the reference image in the inspection range are replaced with information corresponding to a predetermined characteristic for each pixel, and a plurality of comparison images generated by the comparison image generating unit. A determination unit that determines a comparison image based on the information image generated by the information image generation unit, a comparison image determined by the determination unit, and an inspection obtained by the image extraction unit. A discriminating unit for discriminating an image defect of the image to be inspected by comparing the image to be inspected in a range to obtain the degree of difference for each pixel, and comparing the degree of dissimilarity with an arbitrarily set threshold value. It is characterized by

【0014】[0014]

【作用】本発明に係る画像欠陥判別処理装置では、比較
画像生成手段は、カラー画像を取り込む撮像手段により
得られた画像欠陥の無い対象の基準画像を基に複数の比
較画像を生成する。画像抽出手段は、上記撮像手段によ
り得られた判別対象の被検査画像と上記基準画像から検
査範囲の画像を各々抽出する。情報画像生成手段は、上
記画像抽出手段により得られた検査範囲の基準画像の全
画素を1画素毎に所定の特性に対応した情報に置換した
情報画像を生成する。決定手段は、上記比較画像生成手
段により生成された複数の比較画像から上記情報画像生
成手段により生成された情報画像に基いて比較画像を決
定する。判別手段は、上記決定手段により決定された比
較画像と上記画像抽出手段により得られた検査範囲の被
検査画像とを比較して画素毎の相違度を求め、上記相違
度と任意に設定されたしきい値とを比較することにより
被検査画像の画像欠陥を判別する。
In the image defect discrimination processing apparatus according to the present invention, the comparison image generating means generates a plurality of comparison images based on the reference image having no image defect obtained by the image capturing means for capturing the color image. The image extracting means extracts an image of the inspection range from the inspected image to be discriminated and the reference image obtained by the imaging means. The information image generating means generates an information image in which all the pixels of the reference image in the inspection range obtained by the image extracting means are replaced with information corresponding to a predetermined characteristic for each pixel. The determining means determines a comparative image from the plurality of comparative images generated by the comparative image generating means based on the information image generated by the information image generating means. The discriminating means compares the comparison image determined by the determining means with the inspected image in the inspection range obtained by the image extracting means to obtain the degree of difference for each pixel, and the degree of difference is arbitrarily set. The image defect of the image to be inspected is discriminated by comparing with the threshold value.

【0015】[0015]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0016】本発明に係る画像欠陥判別処理装置は、例
えば、全自動検査システムでコンパクトディスク(以
下、CDと言う。)の表面のカラー印刷状態を検査する
ものであり、図1に示すように、CD搭載台11と、C
D搭載台11に設置された基準画像作成用CD或は被検
査CDの表面のカラー画像を取り込む撮像部12と、撮
像部12で得られたカラー画像データが供給される画像
入力部3と、画像入力部3で得られたRGB基準画像デ
ータ或はRGB被検査画像データが供給される画像処理
部4と、画像処理部4から検査結果が供給される画像出
力部5とを備えている。
The image defect discrimination processing apparatus according to the present invention is an apparatus for inspecting the color printing state of the surface of a compact disc (hereinafter referred to as a CD) by a fully automatic inspection system, for example, as shown in FIG. , CD mount 11 and C
An image pickup section 12 for taking in a color image of the surface of a reference image creation CD or an inspected CD installed on the D mounting table 11, and an image input section 3 to which color image data obtained by the image pickup section 12 is supplied. The image processing unit 4 is provided with the RGB reference image data or the RGB inspected image data obtained by the image input unit 3, and the image output unit 5 to which the inspection result is supplied from the image processing unit 4.

【0017】CD搭載台11と撮像部12は、照明装置
1に設置されている。照明装置1は、例えば、CDのア
ルミ蒸着面によって他のノイズ的な映像が写り込まない
ようにした専用照明装置であり、図示していないが、カ
ラー印刷面の検査に適した斜め照明と垂直落射照明とを
有している。CD搭載台11には、図示していないCD
固定用トレイが搭載されており、CD固定用トレイの真
上に1台の撮像部12が設置されている。
The CD mounting table 11 and the image pickup section 12 are installed in the lighting device 1. The illumination device 1 is, for example, a dedicated illumination device in which other noise-like images are not reflected by the aluminum vapor deposition surface of the CD, and although not shown, it is perpendicular to the oblique illumination suitable for the inspection of the color printing surface. It has an epi-illumination. A CD (not shown) is mounted on the CD mounting base 11.
A fixing tray is mounted, and one image pickup unit 12 is installed directly above the CD fixing tray.

【0018】撮像部12は、カメラレンズ121と、C
CD(Charge coupled device)
カラーカメラ122とから構成されている。ここで、単
板式のCCDカラーカメラでは映像の分解能が半減する
ため、本実施例では、CCDカラーカメラ122に3板
式のCCDカラーカメラを用いている。従って、CCD
カラーカメラ122は、RGB(赤緑青)分解のカラー
カメラとして、画像をRGBの3色に分けて処理するこ
とにより、カラー印刷の色の検査を行うことができる。
このようなCCDカラーカメラ122の下には、カメラ
レンズ121が取り付けられている。ここで、カメラレ
ンズ121の焦点距離は25mmとしている。
The image pickup section 12 includes a camera lens 121 and a C lens.
CD (Charge coupled device)
It is composed of a color camera 122. Here, since the image resolution of the single-plate CCD color camera is reduced by half, a three-plate CCD color camera is used as the CCD color camera 122 in this embodiment. Therefore, CCD
The color camera 122 is an RGB (red-green-blue) separation color camera and can inspect the color of color printing by processing an image by dividing it into three colors of RGB.
A camera lens 121 is attached below the CCD color camera 122. Here, the focal length of the camera lens 121 is 25 mm.

【0019】CD搭載台11には、画像欠陥の無いC
D、或は、被検査CDが設置されるものであり、検査時
には、CD搭載台11が回転することにより設置された
CDが順次自動的にCCDカラーカメラ122の真下に
搬送されるようになっている。また、検査完了後には、
自動的に送り出されるようになっている。
The CD mounting table 11 has a C having no image defect.
D, or a CD to be inspected is installed, and during inspection, the installed CDs are sequentially and automatically conveyed directly below the CCD color camera 122 by rotating the CD mounting table 11. ing. Also, after the inspection is completed,
It is designed to be sent out automatically.

【0020】画像処理部4は、図2に示すように、画像
メモリ402と、Lab画像生成部403と、微分処理
部405と、検査範囲画像生成部404と、特性フラグ
画像生成部406と、補正処理部407と、画像比較演
算部408と、色度一致度計算部409と、欠陥画素抽
出部410と、検査判別部411とを備えている。画像
メモリ402には、画像入力部3から出力されるRGB
基準画像データ及びRGB被検査画像データが記憶され
る。また、画像メモリ402は、例えば、図示していな
い、システム全体を制御するメインCPU(centr
al processing unit)として機能す
るDSP(デジタルシグナルプロセッサ)、及び、画像
処理用大規模集積回路(LSI:Large Scal
e Integration)からアクセスすることが
できるものである。また、512画素×512画素×8
ビットの画像データを28画面分記憶する容量を有する
メモリである。従って、多くの基準画像データを画像メ
モリ402内に常設することができる。これにより、高
速高精度に検査することを可能にしている。28画面の
画像メモリの割り振りを、表1に示す。
As shown in FIG. 2, the image processing unit 4 includes an image memory 402, a Lab image generating unit 403, a differential processing unit 405, an inspection range image generating unit 404, a characteristic flag image generating unit 406, and A correction processing unit 407, an image comparison calculation unit 408, a chromaticity matching degree calculation unit 409, a defective pixel extraction unit 410, and an inspection determination unit 411 are provided. The RGB output from the image input unit 3 is stored in the image memory 402.
Reference image data and RGB inspected image data are stored. The image memory 402 is, for example, a main CPU (centr, not shown) that controls the entire system.
DSP (digital signal processor) that functions as an al processing unit, and large-scale integrated circuit (LSI: Large Scale) for image processing
e Integration). Also, 512 pixels x 512 pixels x 8
It is a memory having a capacity to store 28-bit image data for 28 screens. Therefore, a large amount of reference image data can be permanently installed in the image memory 402. This enables high-speed and high-precision inspection. Table 1 shows the allocation of the image memory of 28 screens.

【0021】[0021]

【表1】 [Table 1]

【0022】Lab画像生成部403と微分処理部40
5には、画像入力部3から出力されるRGB基準画像デ
ータ及びRGB被検査画像データが供給される。検査範
囲画像生成部404は、画像メモリ402に記憶された
RGB基準画像データから検査範囲画像データを生成す
る。特性フラグ画像生成部406には、微分処理部40
5で得られたエッジ強調基準画像1データ或はエッジ強
調基準画像1データが供給される。
Lab image generation section 403 and differentiation processing section 40
The RGB reference image data and the RGB inspected image data output from the image input unit 3 are supplied to 5. The inspection range image generation unit 404 generates inspection range image data from the RGB reference image data stored in the image memory 402. The characteristic flag image generation unit 406 includes a differentiation processing unit 40.
The edge emphasis reference image 1 data or the edge emphasis reference image 1 data obtained in 5 is supplied.

【0023】補正処理部407には、検査範囲画像生成
部404で得られた検査範囲画像データが供給される。
また、補正処理部407は、画像メモリ402に記憶さ
れたRGB基準画像データとRGB被検査画像データを
基に位置ずれ補正を行う。
The inspection range image data obtained by the inspection range image generation section 404 is supplied to the correction processing section 407.
Further, the correction processing unit 407 performs positional deviation correction based on the RGB reference image data and the RGB inspected image data stored in the image memory 402.

【0024】画像比較演算部408には、検査範囲画像
生成部404で得られた検査範囲画像データ、微分処理
部405で得られたエッジ強調基準画像データとエッジ
強調被検査画像データ、及び、特性フラグ画像生成部4
06で得られた特性フラグ画像データが各々供給され
る。また、画像比較演算部408は、特性フラグ画像デ
ータに応じて、画像メモリ402に記憶されたRGB基
準画像データとRGB被検査画像データ、或は、エッジ
強調基準画像データとエッジ強調被検査画像データを使
用して比較処理を行う。
The image comparison / calculation unit 408 has inspection range image data obtained by the inspection range image generation unit 404, edge emphasis reference image data and edge emphasis inspected image data obtained by the differentiation processing unit 405, and characteristics. Flag image generator 4
The characteristic flag image data obtained in 06 is supplied. Further, the image comparison calculation unit 408, in accordance with the characteristic flag image data, the RGB reference image data and the RGB inspection image data stored in the image memory 402, or the edge emphasis reference image data and the edge emphasis inspection image data. To perform the comparison process.

【0025】色度一致度計算部409には、Lab画像
生成部403で得られた後述するLab基準画像データ
とLab被検査画像データ、検査範囲画像生成部404
で得られた検査範囲画像データ、及び、画像比較演算部
408での比較結果が各々供給される。
The chromaticity matching degree calculation unit 409 has a Lab reference image data and a Lab inspected image data, which will be described later, obtained by the Lab image generation unit 403, and an inspection range image generation unit 404.
The inspection range image data obtained in step S4 and the comparison result in the image comparison calculation unit 408 are supplied.

【0026】欠陥画素抽出部410には、検査範囲画像
生成部404で得られた検査範囲画像データ、色度一致
度計算部409での計算結果が各々供給される。検査判
別部411には、欠陥画素抽出部410で得られた欠陥
画素情報が供給される。
To the defective pixel extracting section 410, the inspection range image data obtained by the inspection range image generating section 404 and the calculation result of the chromaticity matching degree calculating section 409 are respectively supplied. The defective pixel information obtained by the defective pixel extraction unit 410 is supplied to the inspection determination unit 411.

【0027】ここで、図3は、上記図1、及び、上記図
2で示した画像欠陥判別処理装置における検査処理を示
す処理ブロック図である。尚、上記図3に示した各処理
ブロックに付した符号は、上記図1、図2に示した各構
成要素に付した符号に対応するものである。以下、上記
図1〜図3を用いて説明する。
Here, FIG. 3 is a processing block diagram showing the inspection processing in the image defect discrimination processing apparatus shown in FIG. 1 and FIG. The reference numerals given to the processing blocks shown in FIG. 3 correspond to the reference numerals given to the constituent elements shown in FIGS. 1 and 2. Hereinafter, description will be made with reference to FIGS.

【0028】以下、基準画像生成処理S1について説明
する。
The reference image generation process S1 will be described below.

【0029】画像欠陥の無いCDから生成する基準画像
は、CCDカラーカメラ122のRGB出力をそのまま
デジタル化した濃淡画像と、エッジ部分を微分強調した
微分画像と、RGB画像をルックアップテーブルで色度
座標に変換したLab(CIEのL***表色系)画
像から構成する。
The reference image generated from the CD having no image defect is a grayscale image in which the RGB output of the CCD color camera 122 is digitized as it is, a differential image in which the edge portion is differentially emphasized, and the RGB image is chromaticity by a look-up table. It is composed of a Lab (CIE L * a * b * color system) image converted into coordinates.

【0030】具体的に言うと、基準画像は、カメラのR
信号のデジタル画像(512画素×512画素×8ビッ
ト)、カメラのG信号のデジタル画像(512画素×5
12画素×8ビット)、カメラのB信号のデジタル画像
(512画素×512画素×8ビット)、CIEのL*
**表色系のL*デジタル画像(512画素×512
画素×8ビット)、CIEのL***表色系のa*デジ
タル画像(512画素×512画素×8ビット)、CI
EのL***表色系のb*デジタル画像(512画素×
512画素×8ビット)、検査範囲画像(512画素×
512画素×1ビット)、特性フラグ画像(512画素
×512画素×3ビット)、エッジ強調画像1(512
画素×512画素×8ビット)、エッジ強調画像2(5
12画素×512画素×8ビット)から構成され、画像
の画素アドレス、即ち、座標は、全ての画面上において
同じ位置とする。
Specifically, the reference image is the R of the camera.
Signal digital image (512 pixels x 512 pixels x 8 bits), camera G signal digital image (512 pixels x 5 bits)
12 pixels x 8 bits), camera B signal digital image (512 pixels x 512 pixels x 8 bits), CIE L *
a * b * color system L * digital image (512 pixels × 512
Pixel x 8 bits), CIE L * a * b * color system a * digital image (512 pixels x 512 pixels x 8 bits), CI
L * a * b * color system b * digital image of E (512 pixels x
512 pixels x 8 bits, inspection range image (512 pixels x
512 pixels × 1 bit), characteristic flag image (512 pixels × 512 pixels × 3 bits), edge enhanced image 1 (512
Pixel x 512 pixels x 8 bits), edge enhanced image 2 (5
12 pixels × 512 pixels × 8 bits), and the pixel address of the image, that is, the coordinate, is at the same position on all screens.

【0031】上述のような基準画像を生成する場合、C
D搭載台11に、基準画像作成用のCDを載せる。そし
て、基準画像作成用CD、即ち、画像欠陥の無いCDを
CCDカラーカメラ122の真下に設置する。カメラレ
ンズ121により、CDの表面に印刷されたカラー画像
がCCDカラーカメラ122に撮像される。CCDカラ
ーカメラ122により得られたカラー画像は、画像入力
部3に供給される。この時、基準画像生成用CDを撮影
する場合のカメラレンズ121の絞りは、被検査CDを
撮影する場合と異なり、少し開いて撮影する。これによ
り、デジタル化する画像を少し飽和させるようにする。
When generating the reference image as described above, C
A CD for creating a reference image is placed on the D mounting table 11. Then, the reference image creating CD, that is, the CD having no image defect is installed directly under the CCD color camera 122. A color image printed on the surface of the CD is captured by the CCD color camera 122 by the camera lens 121. The color image obtained by the CCD color camera 122 is supplied to the image input unit 3. At this time, the aperture of the camera lens 121 when photographing the reference image generating CD is slightly opened unlike when photographing the inspected CD. This causes the image to be digitized to be slightly saturated.

【0032】画像入力部3は、CCDカラーカメラ12
2により得られたカラー画像を、R信号のデジタル画
像、G信号のデジタル画像、及び、カメラのB信号のデ
ジタル画像(以下、RGB基準画像と言う。)に変換し
て、RGB基準画像データをLab画像生成部403と
微分処理部405に各々供給すると共に、画像メモリ4
02に出力する。画像メモリ402の基準画像用メモリ
402aは、画像入力部3から出力されたRGB基準画
像データを記憶する。
The image input section 3 includes a CCD color camera 12
The color image obtained in 2 is converted into an R signal digital image, a G signal digital image, and a camera B signal digital image (hereinafter referred to as RGB reference image), and RGB reference image data is converted. The image memory 4 is supplied to the Lab image generation unit 403 and the differential processing unit 405, respectively.
Output to 02. The reference image memory 402a of the image memory 402 stores the RGB reference image data output from the image input unit 3.

【0033】Lab画像生成部403は、L***
のルックアップテーブル(LUT)403aと、演算処
理部403bとで構成されており、画像入力部3からの
RGB基準画像データをCIEのL***表色系に変
換する。このL***表色系に変換する際に使用する
変換色は、一般的に使用されるCIE変換式ではなく、
NTSC変換式を使用する。
The Lab image generation unit 403 is composed of a look-up table (LUT) 403a for L * a * b * and an arithmetic processing unit 403b, and the RGB reference image data from the image input unit 3 is transferred to the CIE. L * a * b * color system. The conversion color used when converting to this L * a * b * color system is not the CIE conversion formula generally used,
Use the NTSC conversion formula.

【0034】即ち、RGB基準画像データを、 X=0.6067R+0.1736G+0.2001B Y=0.2988R+0.5868G+0.1144B Z= 0.0661G+1.1150B なる演算式で測色する。That is, the RGB reference image data is color-measured by the arithmetic expression of X = 0.6067R + 0.1736G + 0.2001B Y = 0.988R + 0.5868G + 0.1144B Z = 0.0661G + 1.1150B.

【0035】従って、X,Y,Zで測色した値を、完全
拡散反射面の三刺激値Xo,Yo,Zoを持って、 L*=116(Y/Yo)1/3−16 a*=500((X/Xo)1/3−(Y/Yo)1/3) b*=200((X/Xo)1/3−(Z/Zo)1/3) なる演算式によりCIEのL***表色系、即ち、L*
デジタル画像、a*デジタル画像、及び、b*デジタル画
像(以下、Lab基準画像と言う。)に変換する。 こ
こで、例えば、Y/Yo≦0.008856の場合は、 L*=903.25(Y/Yo)1/3 とする。
[0035] Thus, X, Y, a value obtained by measuring with Z, with perfect reflecting diffuser tristimulus values Xo, Yo, and Zo, L * = 116 (Y / Yo) 1/3 -16 a * = 500 ((X / Xo) 1 / 3- (Y / Yo) 1/3 ) b * = 200 ((X / Xo) 1 / 3- (Z / Zo) 1/3 ) L * a * b * color system, that is, L *
It is converted into a digital image, an a * digital image, and a b * digital image (hereinafter referred to as Lab reference image). Here, for example, when Y / Yo ≦ 0.008856, L * = 903.25 (Y / Yo) 1/3 .

【0036】上述のような演算は、演算処理部403b
で行われる。また、各変換式の値は予めLUT402a
に代入され、基準画像作成時にリアルタイムでLab画
像を作成する。そして、このようにして生成したLab
画像データを、色度画像一致度計算部409に供給す
る。
The calculation as described above is performed by the calculation processing unit 403b.
Done in. In addition, the value of each conversion formula is set in advance in the LUT 402a.
And a Lab image is created in real time when the reference image is created. And the Lab generated in this way
The image data is supplied to the chromaticity image coincidence calculation unit 409.

【0037】検査範囲画像生成部304は、画像メモリ
402に記憶されたRGB基準画像データから検査範囲
の画像を抽出する。ここで、撮像部12は、上述したよ
うに、CD搭載台11上に載せられたCDを撮像する。
即ち、画像メモリ402に記憶されているRGB基準画
像データは、CDとCD搭載台11を一緒に映像化した
ものであり、CD部分以外の検査は行う必要がない。そ
こで、CDとCD搭載台11のコントラストは異なって
いることから、RGB基準画像データからCD部分を抽
出し、その重心位置を計算する。そして、計算して得ら
れた重心位置から、カラー印刷されている同心円状の範
囲を求める。このようにして求められた同心円状の範囲
は検査範囲画像データとして、補正処理部407、画像
比較演算部408、色度一致度計算部409、及び、欠
陥画素抽出部410に供給する。微分処理部405は、
図示していない積和演算器を有している。この積和演算
器で、画像入力部3からのRGB画像データのエッジ部
分を取り出すために微分強調処理を行って微分画像1
(以下、エッジ強調基準画像1と言う。)を生成し、エ
ッジ強調基準画像1を、画像比較演算部408と特性フ
ラグ画像生成部406に各々供給する。このエッジ強調
基準画像1は、細い線の印刷が密集している部分を度合
が高いと判断し、同じ色インクで大きな範囲で印刷され
ている部分を低いと判断する印刷状態の混雑度として使
用される。
The inspection range image generator 304 extracts an image of the inspection range from the RGB reference image data stored in the image memory 402. Here, the image capturing unit 12 captures an image of the CD mounted on the CD mounting base 11, as described above.
That is, the RGB reference image data stored in the image memory 402 is an image of the CD and the CD mounting table 11 together, and it is not necessary to inspect other than the CD portion. Therefore, since the contrast between the CD and the CD mounting table 11 is different, the CD portion is extracted from the RGB reference image data and the center of gravity position thereof is calculated. Then, the color-printed concentric circle range is obtained from the calculated barycentric position. The concentric range thus obtained is supplied to the correction processing section 407, the image comparison calculation section 408, the chromaticity matching degree calculation section 409, and the defective pixel extraction section 410 as inspection range image data. The differential processing unit 405
It has a product-sum calculator (not shown). This product-sum calculator performs differential emphasizing processing to extract the edge portion of the RGB image data from the image input unit 3, and the differential image 1
(Hereinafter, referred to as edge enhancement reference image 1) is generated, and the edge enhancement reference image 1 is supplied to the image comparison calculation unit 408 and the characteristic flag image generation unit 406, respectively. The edge emphasis reference image 1 is used as a congestion degree of a printing state in which it is determined that a portion where thin lines are densely printed has a high degree of density and a portion where a large range of the same color ink is printed is low. To be done.

【0038】ここで、例えば、CDのアルミ蒸着面の上
に細かい線が密集して印刷される場合、例えば、タイト
ル等の小さく細かい文字が印刷される場合がある。この
ように線が密集している部分の色検査は、線が密集して
いない場合と比較して、検査誤差が発生しやすくなる。
そこで、このような場合には、微分処理部405は、エ
ッジ強調基準画像1に対してしきい値を変化させたエッ
ジ強調基準画像2を生成し、エッジ強調基準画像2をエ
ッジ強調基準画像1として特性フラグ画像生成部406
に供給する。このように、密集度を使用して誤差の少な
い検査を行うようにするため、検査精度を向上させるこ
とができる。
Here, for example, when fine lines are densely printed on the aluminum vapor deposition surface of a CD, for example, small fine characters such as a title may be printed. In the color inspection of the portion where the lines are dense as described above, an inspection error is more likely to occur than in the case where the lines are not dense.
Therefore, in such a case, the differentiation processing unit 405 generates the edge emphasis reference image 2 in which the threshold value is changed with respect to the edge emphasis reference image 1, and the edge emphasis reference image 2 is used as the edge emphasis reference image 1. As a characteristic flag image generation unit 406
Supply to. As described above, since the inspection with a small error is performed using the density, the inspection accuracy can be improved.

【0039】特性フラグ画像生成部406は、微分処理
部405により得られたエッジ強調基準画像データ1に
対して、1画素毎に3種類の特性に分類する。
The characteristic flag image generation unit 406 classifies the edge-enhanced reference image data 1 obtained by the differential processing unit 405 into three types of characteristics for each pixel.

【0040】具体的に説明すると、まず、CD表面は、
通常アルミ蒸着と表面コーティングから鏡のようになり
全反射し、且つ、薄い膜厚から照明に対してモアレが発
生する。このようなモアレが発生する部分は、アルミ蒸
着面、即ち、カラー印刷されていない部分である。ここ
で、アルミ蒸着面に印刷インクのニジミ等が発生した場
合には、基準画像作成用CDと被検査CDとから得られ
たエッジ強調画像データの差にて簡単に欠陥が検出され
る。従って、アルミ蒸着された部分の検査処理は簡素化
されてもよい。そこで、アルミ蒸着された部分を撮影し
た画素を第1の特性とする。
More specifically, first, the CD surface is
Usually, aluminum vapor deposition and surface coating make it mirror-like and totally reflected, and due to its thin film thickness, moiré occurs for illumination. A portion where such moire occurs is an aluminum vapor deposition surface, that is, a portion where color printing is not performed. Here, when a blur of printing ink or the like occurs on the aluminum vapor deposition surface, a defect is easily detected by the difference between the edge-enhanced image data obtained from the reference image creation CD and the inspected CD. Therefore, the inspection process for the aluminum-deposited portion may be simplified. Therefore, a pixel obtained by photographing the portion where aluminum is vapor-deposited is set as the first characteristic.

【0041】また、アルミ蒸着面にモアレが発生する場
合と同様に、空間周期パターン、即ち、CCD画素のパ
ターンピッチによって、境界部には高次数の周波数が発
生するため、境界部での画像は、はっきりとした色が現
れない。即ち、境界部では、色印刷の検査はできない。
そこで、アルミ蒸着された部分と色インクで印刷された
部分の境界を撮影した画素を第2の特性とする。
Further, as in the case where moire is generated on the aluminum vapor deposition surface, a high-order frequency is generated at the boundary portion due to the spatial periodic pattern, that is, the pattern pitch of the CCD pixels, so the image at the boundary portion is , No clear color appears. That is, the color printing cannot be inspected at the boundary.
Therefore, a pixel obtained by photographing the boundary between the portion vapor-deposited with aluminum and the portion printed with color ink is used as the second characteristic.

【0042】さらに、色インクで印刷された部分を撮影
した画素を第3の特性とし、これら3種類の特性をフラ
グ情報で示す。
Further, a pixel obtained by photographing a portion printed with color ink is set as a third characteristic, and these three types of characteristics are indicated by flag information.

【0043】従って、エッジ強調基準画像の全画素につ
いて、1画素毎に対応する特性に分類してフラグ情報に
置換する。このようにして生成した特性フラグ画像デー
タを、画像比較演算部408に供給する。
Therefore, all the pixels of the edge emphasis reference image are classified into corresponding characteristics for each pixel and replaced with flag information. The characteristic flag image data generated in this way is supplied to the image comparison calculation unit 408.

【0044】上述のようにして、基準画像生成用CDに
ついての、R,G,B信号のデジタル画像データ(RG
B基準画像データ)、CIEのL***表色系のL*
*,b*デジタル画像データ(Lab基準画像データ)
と、検査範囲画像データ、特性フラグ画像データ、及
び、エッジ強調基準画像データ1が生成される。
As described above, the digital image data (RG) of R, G, B signals for the reference image generation CD is recorded.
B reference image data), CIE L * a * b * color system L * ,
a * , b * digital image data (Lab reference image data)
Then, the inspection range image data, the characteristic flag image data, and the edge emphasis reference image data 1 are generated.

【0045】次に、被検査画像生成処理S2について説
明する。
Next, the inspection image generation processing S2 will be described.

【0046】被検査CDから生成する被検査画像は、カ
メラのR信号のデジタル画像(512画素×512画素
×8ビット)、カメラのG信号のデジタル画像(512
画素×512画素×8ビット)、カメラのB信号のデジ
タル画像(512画素×512画素×8ビット)、CI
EのL***表色系のL*デジタル画像(512画素×
512画素×8ビット)、CIEのL***表色系の
*デジタル画像(512画素×512画素×8ビッ
ト)、CIEのL***表色系のb*デジタル画像(5
12画素×512画素×8ビット)、エッジ強調画像1
(512画素×512画素×8ビット)から構成され、
画像の画素アドレス、即ち、座標は、全ての画面上にお
いて同じ位置とする。
The inspected image generated from the inspected CD is a digital image of the R signal of the camera (512 pixels × 512 pixels × 8 bits) and a digital image of the G signal of the camera (512 pixels).
Pixel x 512 pixels x 8 bits), digital image of camera B signal (512 pixels x 512 pixels x 8 bits), CI
E L * a * b * color system L * digital image (512 pixels x
512 pixels × 8 bits), CIE L * a * b * color system a * digital image (512 pixels × 512 pixels × 8 bits), CIE L * a * b * color system b * digital image (5
12 pixels x 512 pixels x 8 bits), edge enhanced image 1
(512 pixels x 512 pixels x 8 bits),
The pixel address of the image, that is, the coordinate is the same position on all screens.

【0047】上述のような被検査画像を生成する場合、
CD搭載台11に、被検査CDを載せる。このCD搭載
台11は回転し、CD搭載台11に載せられた被検査C
Dは、順次自動的にCCDカラーカメラ122の真下に
搬送される。
When the inspection image as described above is generated,
The CD to be inspected is placed on the CD mounting table 11. The CD mounting base 11 rotates, and the inspection target C mounted on the CD mounting base 11 is rotated.
D is sequentially and automatically conveyed right below the CCD color camera 122.

【0048】基準画像作成処理1の場合と同様に、CC
Dカラーカメラ122により得られたカラー画像は、画
像入力部3に供給される。
As in the case of the reference image creating process 1, CC
The color image obtained by the D color camera 122 is supplied to the image input unit 3.

【0049】画像入力部3は、CCDカラーカメラ12
2により得られたカラー画像を、R信号のデジタル画
像、G信号のデジタル画像、及び、カメラのB信号のデ
ジタル画像(以下、RGB被検査画像と言う。)に変換
して、RGB被検査画像データをLab画像生成部40
3と微分処理部405に各々供給すると共に、画像メモ
リ402に出力する。画像メモリ402の被検査画像用
メモリ402bは、画像入力部3から出力されたRGB
被検査画像データを記憶する。
The image input section 3 includes a CCD color camera 12
The color image obtained in 2 is converted into a digital image of the R signal, a digital image of the G signal, and a digital image of the B signal of the camera (hereinafter, referred to as RGB inspected image), and the RGB inspected image is converted. The data is converted into the Lab image generation unit 40.
3 and the differential processing unit 405, and outputs them to the image memory 402. The inspected image memory 402b of the image memory 402 includes the RGB output from the image input unit 3.
The inspection image data is stored.

【0050】Lab画像生成部403は、基準画像作成
処理1の場合と同様にして、画像入力部3からのRGB
被検査画像データをL*d,a*d,b*dデジタル画像デー
タ(以下、Lab被検査画像データと言う。)に変換
し、Lab画像データを色度画像一致度計算部409に
供給する。
The Lab image generating unit 403 performs the same processing as in the case of the reference image creating process 1 with RGB from the image input unit 3.
The inspected image data is converted into L * d , a * d , b * d digital image data (hereinafter referred to as Lab inspected image data), and the Lab image data is supplied to the chromaticity image coincidence calculation unit 409. .

【0051】微分処理部405は、基準画像作成処理1
の場合と同様にして、画像入力部3からのRGB被検査
画像データのエッジ部分を取り出すために微分処理を行
ってエッジ強調被検査画像1を生成し、エッジ強調被検
査画像1を画像比較演算部408に供給する。
The differential processing section 405 uses the reference image creation processing 1
In the same manner as in the above case, differential processing is performed to extract the edge portion of the RGB inspected image data from the image input unit 3 to generate the edge enhanced inspected image 1, and the edge enhanced inspected image 1 is subjected to image comparison calculation. Supply to the unit 408.

【0052】上述のようにして、被検査CDについて
の、R,G,B信号のデジタル画像データ(RGB被検
査画像データ)、CIEのL***表色系のL*d,a
*d,b*dデジタル画像データ(Lab被検査画像デー
タ)、及び、エッジ強調被検査画像1データが生成され
る。
As described above, digital image data of R, G, and B signals (RGB inspected image data) and L * a * b * color system L * d , a of the CIE for the inspected CD.
* d , b * d digital image data (Lab inspected image data) and edge-enhanced inspected image 1 data are generated.

【0053】次に、上述のようにして得られた基準画像
と被検査画像により印刷状態を検査する処理について説
明する。
Next, the process of inspecting the printing state with the reference image and the image to be inspected obtained as described above will be described.

【0054】まず、機械で自動搬送されるCDは、検査
時におけるCCDカラーカメラ122下の位置が縦軸、
横軸、回転方向共にずれてしまう。このように位置ずれ
を含んだ状態で基準画像と被検査画像とを比較すると、
位置ずれにより生じる画像の違いを誤って欠陥であると
判別してしまう問題が発生する。そこで、補正処理部4
07は、被検査CDがCCDカラーカメラ122下に搬
送され、被検査CDのRGB被検査画像データが画像メ
モリ402に取り込まれた時に、相互の位置ずれ量を算
出して補正を行う。
First, for a CD automatically conveyed by a machine, the vertical position is the position under the CCD color camera 122 at the time of inspection.
Both the horizontal axis and the rotation direction are misaligned. When the reference image and the image to be inspected are compared in such a state that the positional deviation is included,
There arises a problem that a difference in images caused by the positional deviation is erroneously determined as a defect. Therefore, the correction processing unit 4
In 07, when the inspected CD is conveyed under the CCD color camera 122 and the RGB inspected image data of the inspected CD is taken into the image memory 402, the mutual positional deviation amount is calculated and corrected.

【0055】即ち、補正処理部407には、検査範囲画
像生成部404から検査範囲画像データが供給される。
補正処理部407は、画像メモリ402に記憶されたR
GB基準画像データとRGB被検査画像データを正規化
相互相関し、検査範囲画像データで示された検査範囲内
で一致度が一番高い場所を検出する。その検出場所とR
GB基準画像データとを比較して、相互の位置ずれ量を
算出する。算出された位置ずれ量は、例えば、図示して
いない画像移動処理部に供給され、画像移動処理部は、
補正処理部407からの位置ずれ量に基いて画像を移動
させる。
That is, the correction processing unit 407 is supplied with the inspection range image data from the inspection range image generation unit 404.
The correction processing unit 407 stores the R stored in the image memory 402.
The GB reference image data and the RGB inspected image data are normalized and cross-correlated to detect a position having the highest degree of coincidence within the inspection range indicated by the inspection range image data. Its detection location and R
The amount of positional deviation between them is calculated by comparing with the GB reference image data. The calculated positional deviation amount is supplied to, for example, an image movement processing unit (not shown), and the image movement processing unit
The image is moved based on the amount of positional deviation from the correction processing unit 407.

【0056】画像比較演算部408は、検査範囲画像生
成部404からの検査範囲画像データで示された検査範
囲内で、基準画像と被検査画像の相互の画素を比較し、
全画素について、正常であると判断される画素、疑わし
き画素、及び、欠陥であると判断される画素に分類す
る。
The image comparison / calculation unit 408 compares the mutual pixels of the reference image and the inspection image within the inspection range indicated by the inspection range image data from the inspection range image generation unit 404,
All the pixels are classified into pixels that are determined to be normal, pixels that are suspicious, and pixels that are determined to be defective.

【0057】まず、特性フラグ画像生成部406からの
特性フラグ画像データを基に、各画素に振り分けられた
フラグ情報により基準画像のどの画像データを使用して
比較するかを決定する。
First, based on the characteristic flag image data from the characteristic flag image generation unit 406, it is determined which image data of the reference image is to be used for comparison based on the flag information distributed to each pixel.

【0058】例えば、対象画素のフラグ情報が、アルミ
蒸着された部分を撮影した画素であることを示している
場合、微分処理部405からのエッジ強調基準画像1デ
ータとエッジ強調被検査画像1データを使用する。この
エッジ強調基準画像1データとエッジ強調被検査画像1
データとを比較する際に、比較ゲインを画像データの濃
度で変化させるようにし、エッジ強調基準画像1データ
M、エッジ強調被検査画像1データTとすると、比較演
算式は、 Z=|M−T|−(M−T)/k−γ となる。この比較演算式において、第1項はエッジ強調
基準画像1データMとエッジ強調被検査画像1データT
との差異を示しており、第2項及び第3項はゲインを変
化させる関数を示している。この比較演算式により求め
られた比較結果Zとエッジ強調基準画像1データMの相
関度から個々の画素を正常であるか否かを判断する。
For example, when the flag information of the target pixel indicates that the pixel where the aluminum vapor-deposited portion is photographed is taken, the edge emphasis reference image 1 data and the edge emphasis inspected image 1 data from the differential processing section 405. To use. This edge emphasis reference image 1 data and edge emphasis inspected image 1
When comparing the data with the data, the comparison gain is changed according to the density of the image data, and if the edge emphasis reference image 1 data M and the edge emphasis inspected image 1 data T are used, the comparison arithmetic expression is Z = | M− T | − (MT) / k−γ. In this comparison arithmetic expression, the first term is the edge emphasis reference image 1 data M and the edge emphasis inspected image 1 data T.
, And the second and third terms represent the function that changes the gain. Whether or not each pixel is normal is determined from the correlation degree between the comparison result Z obtained by this comparison arithmetic expression and the edge emphasis reference image 1 data M.

【0059】対象画素のフラグ情報が、色インクで印刷
された部分を撮影した画素であることを示している場
合、画像メモリ402に記憶されたRGB基準画像デー
タとRGB被検査画像データを使用する。そして、個々
の画素毎に、RGB基準画像データとRGB被検査画像
データの差を計算し、その差のレベルに応じて正常な画
素であるか否かを判断する。ここで、色と色の境界は、
全て疑わしき画素と判断する。また、印刷むら、順次濃
淡階調が下がる印刷にも対応することができるように、
一致度が相当高くない限り正常な画素とは判断しないも
のとする。
When the flag information of the target pixel indicates that the pixel printed by the color ink is a pixel, the RGB reference image data and the RGB inspected image data stored in the image memory 402 are used. . Then, the difference between the RGB reference image data and the RGB inspected image data is calculated for each pixel, and it is determined whether the pixel is a normal pixel or not according to the level of the difference. Here, the boundary between colors is
All pixels are judged to be suspicious. In addition, it is possible to deal with uneven printing and printing in which the gradation is gradually reduced.
Unless the degree of coincidence is considerably high, it is not judged as a normal pixel.

【0060】対象画素のフラグ情報が、アルミ蒸着され
た部分と色インクで印刷された部分の境界を撮影した画
素であることを示している場合、エッジ強調基準画像1
データとエッジ強調被検査画像1データを使用する。こ
の場合の比較演算式は、上述したアルミ蒸着された部分
を撮影した画素であることを示している場合と同様であ
るが、総合的な判断を行う際に使用する個々の画素の正
常度の重みずけ係数をアルミ蒸着された部分を撮影した
画素であることを示している場合よりも低くする。これ
により、境界部の検査の影響を少なくする。
If the flag information of the target pixel indicates that the pixel is a picture of the boundary between the aluminum vapor-deposited portion and the portion printed with color ink, the edge emphasis reference image 1
Data and edge-enhanced inspected image 1 data are used. The comparison arithmetic expression in this case is similar to the case where it is shown that the pixel is a photographed portion of the aluminum vapor deposition described above, but the normality of each pixel used in making a comprehensive judgment is The weighting coefficient is set to be lower than that in the case where it is shown that the pixel is an image of a portion where aluminum is vapor-deposited. This reduces the influence of the inspection of the boundary portion.

【0061】上述のようにして、1画素毎にフラグ情報
に基いた画像データを使用して比較し、正常な画素であ
るか否か判断した結果を、色度一致度計算部409に供
給する。
As described above, the comparison is performed for each pixel using the image data based on the flag information, and the result of determining whether the pixel is a normal pixel or not is supplied to the chromaticity coincidence calculation unit 409. .

【0062】色度一致度計算部409は、検査範囲画像
生成部404からの検査範囲画像データで示される検査
範囲内で、画像比較演算部408からの比較結果に応じ
て、対象画素が、色インクで印刷された部分を撮影した
画素であり、且つ、比較結果が疑わしき画素であると判
断された全画素について、色情報の比較を行う。
The chromaticity matching degree calculation unit 409 determines that the target pixel is a color within the inspection range indicated by the inspection range image data from the inspection range image generation unit 404 according to the comparison result from the image comparison operation unit 408. The color information is compared with respect to all the pixels which are the pixels obtained by photographing the portion printed with the ink and whose comparison result is determined to be the suspicious pixel.

【0063】即ち、Lab画像生成部403からのLa
b基準画像データ(=L*,a*,b*)とLab被検査
画像データ(=L*d,a*d,b*d)を持って、基準画像
と被検査画像の空間距離差ΔEの差を、 ΔEab*=((ΔL*2+(Δa*2+(Δb*21/2 ΔL*=L*d−L* Δa*=a*d−a* Δb*=b*d−b* なる演算式で求める。
That is, La from the Lab image generator 403
b With the reference image data (= L * , a * , b * ) and the Lab inspection image data (= L * d , a * d , b * d ), the spatial distance difference ΔE between the reference image and the inspection image. ΔEab * = ((ΔL * ) 2 + (Δa * ) 2 + (Δb * ) 2 ) 1/2 ΔL * = L * d− L * Δa * = a * d− a * Δb * = It is obtained by the arithmetic expression b * d− b * .

【0064】また、色のにじみ等を考慮した検査を行う
ために、対象画素の周辺8連結方向の色差に各々任意の
係数を掛け合わせ、それらの合計値を対象画素の色差情
報とする。このようにして求めた色差情報の大小によ
り、対象画素を、正常であると判別される画素と欠陥で
あると判別される画素に分類する。
Further, in order to carry out an inspection in consideration of color bleeding and the like, the color difference in the peripheral 8 connection direction of the target pixel is multiplied by each arbitrary coefficient, and the total value thereof is used as the color difference information of the target pixel. The target pixel is classified into a pixel determined to be normal and a pixel determined to be defective according to the magnitude of the color difference information thus obtained.

【0065】上述のようにして、疑わしき画素であると
判断された対象画素の周辺画素にも多くの疑わしき画素
が存在するか否かを判別し、疑わしき画素が多く存在す
る場合には欠陥画素とする。このようにして比較した結
果を、欠陥画素抽出部410に供給する。
As described above, it is determined whether or not many suspicious pixels are present also in the peripheral pixels of the target pixel which is determined to be the suspicious pixel, and when many suspicious pixels are present, it is determined as a defective pixel. To do. The result of such comparison is supplied to the defective pixel extraction unit 410.

【0066】欠陥画素抽出部410は、検査範囲画像生
成部404からの検査範囲画像データで示された検査範
囲内で、色度一致度計算部409からの比較結果に基い
て、欠陥であると判断された画素のみを2値化画像のハ
イレベルに置き換える。そして、その画像をラベリング
して欠陥画像を小領域に分別し、ラベリングした小領域
毎に、欠陥画素数、即ち、欠陥面積と、欠陥係数を求め
る。
The defective pixel extraction unit 410 determines that there is a defect within the inspection range indicated by the inspection range image data from the inspection range image generation unit 404 based on the comparison result from the chromaticity matching degree calculation unit 409. Only the determined pixels are replaced with the high level of the binarized image. Then, the image is labeled to classify the defective image into small regions, and the number of defective pixels, that is, the defect area and the defect coefficient are obtained for each labeled small region.

【0067】ここで、画像データは、フラグ情報により
3種類の特性に分類されており、欠陥であると判断され
た画素には、各々異なった係数が与えられている。その
係数を小領域内で加算し、加算した結果を欠陥係数とす
る。このようにして求めた欠陥画素数と欠陥係数を、検
査判別部411に供給する。
Here, the image data is classified into three types of characteristics by the flag information, and different coefficients are given to the pixels judged to be defective. The coefficients are added in the small area, and the added result is taken as the defect coefficient. The number of defective pixels and the defect coefficient thus obtained are supplied to the inspection determination unit 411.

【0068】検査判別部411は、欠陥画素抽出部41
0からの欠陥画素数と欠陥係数に基いて、被検査CDの
印刷状態が正常であるか否かを判断する。そして、この
判断結果を、上記図1に示した画像出力部5に供給す
る。
The inspection discriminating section 411 has a defective pixel extracting section 41.
Based on the number of defective pixels and the defect coefficient from 0, it is determined whether the print state of the inspected CD is normal. Then, the result of this determination is supplied to the image output unit 5 shown in FIG.

【0069】上述のように、本実施例では、1画素毎の
特性に応じて比較する画像データを決定し、決定した画
像データを使用して印刷状態の検査を行うため、印刷の
しみ、汚れ、かすれ、ポックマーク等の全ての種類の欠
陥を検査することができる。尚、上述した画像欠陥判別
処理装置は、例えば、LSIの製造におけるマスクパタ
ーンの不良等を画像処理技術を用いて自動検査する装置
にも適用することができる。
As described above, in the present embodiment, the image data to be compared is determined according to the characteristics of each pixel, and the printing state is inspected using the determined image data. It is possible to inspect all kinds of defects such as blemishes, fading and pock marks. The image defect discrimination processing device described above can be applied to, for example, a device for automatically inspecting a defect of a mask pattern in the manufacture of an LSI by using an image processing technique.

【0070】[0070]

【発明の効果】本発明に係る画像欠陥判別処理装置で
は、比較画像生成手段は、カラー画像を取り込む撮像手
段により得られた画像欠陥の無い対象の基準画像を基に
複数の比較画像を生成する。画像抽出手段は、上記撮像
手段により得られた判別対象の被検査画像と上記基準画
像から検査範囲の画像を各々抽出する。情報画像生成手
段は、上記画像抽出手段により得られた検査範囲の基準
画像の全画素を1画素毎に所定の特性に対応した情報に
置換した情報画像を生成する。決定手段は、上記比較画
像生成手段により生成された複数の比較画像から上記情
報画像生成手段により生成された情報画像に基いて比較
画像を決定する。判別手段は、上記決定手段により決定
された比較画像と上記画像抽出手段により得られた検査
範囲の被検査画像とを比較して画素毎の相違度を求め、
上記相違度と任意に設定されたしきい値とを比較するこ
とにより被検査画像の画像欠陥を判別する。これによ
り、フルカラー印刷による検査を高精度に行うことがで
き、印刷のしみ、汚れ、かすれ、ポックマーク等、全て
の種類の画像欠陥を検査することができる。
In the image defect discrimination processing apparatus according to the present invention, the comparison image generating means generates a plurality of comparison images based on the reference image of the object having no image defect obtained by the image capturing means for capturing the color image. . The image extracting means extracts an image of the inspection range from the inspected image to be discriminated and the reference image obtained by the imaging means. The information image generating means generates an information image in which all the pixels of the reference image in the inspection range obtained by the image extracting means are replaced with information corresponding to a predetermined characteristic for each pixel. The determining means determines a comparative image from the plurality of comparative images generated by the comparative image generating means based on the information image generated by the information image generating means. The determining means compares the comparison image determined by the determining means with the inspected image of the inspection range obtained by the image extracting means to obtain the degree of difference for each pixel,
The image defect of the image to be inspected is discriminated by comparing the above-mentioned difference degree with a threshold value set arbitrarily. As a result, the inspection by full-color printing can be performed with high precision, and it is possible to inspect all kinds of image defects such as print stains, stains, blurs, and pock marks.

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

【図1】本発明に係る画像欠陥判別処理装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image defect discrimination processing device according to the present invention.

【図2】上記画像欠陥判別処理装置の画像処理部の構成
を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an image processing unit of the image defect determination processing device.

【図3】上記画像欠陥判別処理装置の処理を説明するた
めの処理ブロック図である。
FIG. 3 is a processing block diagram for explaining processing of the image defect determination processing device.

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

1 照明装置 3 画像入力部 4 画像処理部 5 画像出力部 11 CD搭載台 12 撮像部 402 画像メモリ 403 Lab画像生成部 404 検査範囲画像生成部 405 微分処理部 406 特性フラグ画像生成部 407 補正処理部 408 画像比較演算部 409 色度一致度計算部 410 欠陥画素抽出部 411 検査判別部 DESCRIPTION OF SYMBOLS 1 Lighting device 3 Image input unit 4 Image processing unit 5 Image output unit 11 CD mounting base 12 Imaging unit 402 Image memory 403 Lab image generation unit 404 Inspection range image generation unit 405 Differentiation processing unit 406 Characteristic flag image generation unit 407 Correction processing unit 408 Image comparison calculation unit 409 Chromaticity coincidence calculation unit 410 Defective pixel extraction unit 411 Inspection determination unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像を取り込む撮像手段により得
られた画像欠陥の無い対象の基準画像を基に複数の比較
画像を生成する比較画像生成手段と、 上記撮像手段により得られた判別対象の被検査画像と上
記基準画像から検査範囲の画像を各々抽出する画像抽出
手段と、 上記画像抽出手段により得られた検査範囲の基準画像の
全画素を1画素毎に所定の特性に対応した情報に置換し
た情報画像を生成する情報画像生成手段と、 上記比較画像生成手段により生成された複数の比較画像
から上記情報画像生成手段により生成された情報画像に
基いて比較画像を決定する決定手段と、 上記決定手段により決定された比較画像と上記画像抽出
手段により得られた検査範囲の被検査画像とを比較して
画素毎の相違度を求め、上記相違度と任意に設定された
しきい値とを比較することにより被検査画像の画像欠陥
を判別する判別手段とを備えることを特徴とする画像欠
陥判別処理装置。
1. A comparison image generating means for generating a plurality of comparison images based on a reference image of a target having no image defect obtained by the image capturing means for capturing a color image, and an object of discrimination target obtained by the image capturing means. Image extracting means for extracting an image in the inspection range from the inspection image and the reference image, and all pixels of the reference image in the inspection range obtained by the image extracting means are replaced with information corresponding to a predetermined characteristic for each pixel. An information image generating means for generating the information image, a determining means for determining a comparative image based on the information image generated by the information image generating means from the plurality of comparative images generated by the comparative image generating means, The degree of difference for each pixel is obtained by comparing the comparison image determined by the determining means with the image to be inspected in the inspection range obtained by the image extracting means, and the degree of difference is arbitrarily set. Image defect determination processing device characterized by comprising a discrimination means for discriminating an image defect inspection image by comparing the threshold was.
JP6314631A 1994-12-19 1994-12-19 Image defect discriminating processor Withdrawn JPH08170947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6314631A JPH08170947A (en) 1994-12-19 1994-12-19 Image defect discriminating processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6314631A JPH08170947A (en) 1994-12-19 1994-12-19 Image defect discriminating processor

Publications (1)

Publication Number Publication Date
JPH08170947A true JPH08170947A (en) 1996-07-02

Family

ID=18055647

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6314631A Withdrawn JPH08170947A (en) 1994-12-19 1994-12-19 Image defect discriminating processor

Country Status (1)

Country Link
JP (1) JPH08170947A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007074770A1 (en) * 2005-12-26 2007-07-05 Nikon Corporation Defect inspection device for inspecting defect by image analysis

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007074770A1 (en) * 2005-12-26 2007-07-05 Nikon Corporation Defect inspection device for inspecting defect by image analysis
JP5228490B2 (en) * 2005-12-26 2013-07-03 株式会社ニコン Defect inspection equipment that performs defect inspection by image analysis

Similar Documents

Publication Publication Date Title
US20060018534A1 (en) Technique for detecting a defect of an object by area segmentation of a color image of the object
US20040208395A1 (en) Image processing method, image processing apparatus, and image processing program
CN102138068B (en) Visual examination apparatus
KR20060048146A (en) Segmentation technique of a color image according to colors
WO2007066628A1 (en) Appearance inspecting device
JPH10253544A (en) Method and apparatus for visual examination
JP5294445B2 (en) Disc-shaped substrate inspection apparatus and inspection method
KR100827906B1 (en) Substrate inspection device
JP4244046B2 (en) Image processing method and image processing apparatus
JP4093426B2 (en) Inspection device, inspection method
JPH08170947A (en) Image defect discriminating processor
JP4190243B2 (en) Electronic circuit component visual inspection method, visual inspection apparatus, and electronic circuit component manufacturing method.
JP4354173B2 (en) Appearance inspection equipment for electronic circuit components
JPH04256844A (en) Pattern inspecting method for printed board
JP4354174B2 (en) Manufacturing method for electronic circuit components
JPS59206705A (en) Inspection of pattern
JP4084257B2 (en) Printed circuit board inspection equipment
JP4653340B2 (en) Can appearance inspection device using a three-plate CCD camera
JP2876999B2 (en) Printing defect inspection equipment
JPH0760135B2 (en) Image processing method for wafer defect inspection
JP4275582B2 (en) Board inspection equipment
JP2737418B2 (en) Pass / fail inspection device
JPH0721372A (en) Picture detector
JPH0727711A (en) Detecting method for defect in mark part in image
JPH0436643A (en) Tablet 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: 20020305