JP3508368B2 - Image measuring machine - Google Patents

Image measuring machine

Info

Publication number
JP3508368B2
JP3508368B2 JP02999396A JP2999396A JP3508368B2 JP 3508368 B2 JP3508368 B2 JP 3508368B2 JP 02999396 A JP02999396 A JP 02999396A JP 2999396 A JP2999396 A JP 2999396A JP 3508368 B2 JP3508368 B2 JP 3508368B2
Authority
JP
Japan
Prior art keywords
measurement
edge
point
contour shape
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP02999396A
Other languages
Japanese (ja)
Other versions
JPH09196635A (en
Inventor
暢且 町井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP02999396A priority Critical patent/JP3508368B2/en
Publication of JPH09196635A publication Critical patent/JPH09196635A/en
Application granted granted Critical
Publication of JP3508368B2 publication Critical patent/JP3508368B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】この発明は、被検物の輪郭形
状の測定を行なう画像測定機に関する。 【0002】 【従来の技術】従来、この種の画像測定機としては、例
えば、ステージ上に載置された被検物の像を光学系を介
して上方から捉え、捉えた像の光強度分布に応じた電気
信号を出力するCCDカメラと、CCDカメラで捉えた
撮像範囲内に設定される指標内にある被検物の輪郭形状
のエッジを前記電気信号に基づく画像処理により検出
し、エッジ座標値を表す信号を出力する画像処理装置と
を備え、被検物の輪郭形状の測定を行なうものが知られ
ている。 【0003】この画像測定機では、被検物の輪郭形状の
測定を行なう際に、エッジが直前に検出された複数の測
定点のエッジ座標値に基づいて次の測定目標点を設定
し、この測定目標点に対して指標の位置と角度方向を設
定し、その指標内にある輪郭形状のエッジを検出するこ
とを、輪郭形状に沿って複数の点について繰り返し行な
う。 【0004】 【発明が解決しようとする課題】しかしながら、上記従
来技術では、エッジが直前に検出された複数の測定点の
エッジ座標値のみに基づいて、次の測定目標点での指標
の角度方向をその測定目標点での予想した輪郭形状に対
して垂直に設定するために、輪郭形状の曲率変化が大き
い場合には、設定された指標の角度方向が測定目標点で
の輪郭形状に垂直な方向になっているとは限らない。こ
れによって、測定目標点において指標が輪郭形状に対し
て垂直な方向から傾いた状態でエッジを検出することに
なり、エッジの検出位置にばらつきが生じ、エッジ検出
の画像処理の精度が劣化してしまうという問題があっ
た。 【0005】この発明はこのような事情に鑑みてなされ
たもので、その課題は、輪郭形状の測定精度を向上させ
た画像測定機を提供することである。 【0006】 【課題を解決するための手段】前述の課題を解決するた
め請求項1記載の発明に係る画像測定機は、ステージ上
に載置された被検物の像を光学系を介して捉え、捉えた
像の光強度分布に応じた電気信号を出力する撮像手段
と、前記撮像手段で捉えた撮像範囲内に設定されるエッ
ジ検出領域内にある被検物の輪郭形状のエッジを前記電
気信号に基づく画像処理により検出し、エッジ座標値を
表す信号を出力する画像処理手段とを備え、前記輪郭形
状の測定を行なう画像測定機において、前記輪郭形状に
沿った複数の点の各々の前記エッジ検出領域の位置及び
方向を設定しながら、前記エッジが検出された各測定点
で前記エッジ座標値を前記画像処理部から取り込む第1
の測定部と、前記第1の測定部で取り込んだ前記各測定
点のエッジ座標値に基づき、前記各測定点での前記エッ
ジ検出領域の位置及び方向を表すティーチングデータを
作成するデータ作成部と、前記ティーチングデータに従
って前記輪郭形状を測定する第2の測定部とを備え、前
記データ作成部は、前記各測定点での前記エッジ検出領
域の方向を前記各測定点での前記輪郭形状の法線方向と
したティーチングデータを作成することを特徴とする。 【0007】データ作成部が、第1の測定部で取り込ん
だ各測定点のエッジ座標値に基づき、各測定点でのエッ
ジ検出領域の位置及び方向を表すデータであって、各測
定点でのエッジ検出領域の方向をその点及びその前後の
点を含む複数の点から求めた輪郭形状の法線方向とした
ティーチングデータを作成し、第2の測定部がティーチ
ングデータに従って輪郭形状を測定する。そのため、輪
郭形状の曲率変化が大きい場合でも、指標の角度方向が
常に各測定点での輪郭形状に垂直な状態でエッジが検出
され、エッジの検出位置にばらつきが生じない。 【0008】 【発明の実施の形態】以下この発明の実施の形態を図面
に基づいて説明する。 【0009】図1はこの発明の一実施形態に係る画像測
定機を示すブロック図、図2は同画像測定機を示す概略
構成図である。 【0010】画像測定機は、図1及び図2に示すよう
に、測定機本体1と制御ユニット2とを備えている。測
定機本体1には支持体3が、制御ユニット2にはモニタ
4がそれぞれ設けられている。 【0011】測定機本体1は、支持体3のベース部3a
上に設けられたXYステージ5と、このステージ5の上
方に位置するように支持体3の支柱部3bに支持された
撮像部6とを備えている。 【0012】XYステージ5は、水平面内における直交
する2方向(X軸及びY軸方向)に移動可能である。こ
のステージ5の上面に、二次元的な輪郭形状を有しかつ
僅かな厚みを有する被検物(例えば図3に示すような被
検物)7が載置される。被検物7は、ベース部3aに設
けられた透過照明光学系8又は撮像部6に設けられた落
射照明光学系9によって照明される(図2参照)。 【0013】XYステージ5には、図1に示すように、
入力されるステージ移動指令に基づきXYステージ5を
2方向に電動で移動させるXYステージ駆動部10と、
XYステージ5の座標を検出し、ステージ座標値を表わ
す信号を出力するステージ位置検出部11とが設けられ
ている。XYステージ駆動部10は、XYステージ5を
X軸及びY軸方向にそれぞれ駆動するX軸用モータ及び
Y軸用モータ(図示略)を有する。ステージ位置検出部
11は、XYステージ5のX軸及びY軸方向の位置をそ
れぞれ検出するX軸用エンコーダ及びY軸用エンコーダ
(図示略)を有する。 【0014】撮像部6には、落射照明光学系9の他に、
被検物7からの光を結像する結像光学系12と、この光
学系12により結像された被検物7の像を捉え(受
け)、捉えた像の光強度分布に応じた電気信号を出力す
るCCDカメラ13とが設けられている。結像光学系1
2の拡大倍率は、固定であっても、可変であってもよ
い。 【0015】制御ユニット2は、図1に示すように、C
CDカメラ13から出力される電気信号が入力される画
像処理部21と、輪郭形状測定部22と、指標設定部2
3と、測定条件テーブル24と、測定データテーブル2
5と、データ出力部26とを備えている。制御ユニット
2は、それぞれ図示を省略したキーボードなどの入力装
置、入力回路、出力回路、中央演算処理回路などを有す
るコンピュータで構成されている。 【0016】画像処理部21は、CCDカメラ13の各
画素から出力される電気信号を画像処理し、捉えた被検
物7の像をモニタ4のモニタ画面4a(図4参照)上に
画像として表示させるための画像信号をモニタ4へ出力
するように構成されている。また、画像処理部21は、
指標設定部23から出力される指標位置のデータを受
け、エッジの検出領域を示す指標(エッジ検出領域)1
5をモニタ画面4a上の前記指標位置のデータに対応す
る位置及び角度方向に表示させるための信号をモニタ4
へ出力するように構成されている。さらに、画像処理部
21は、CCDカメラ13から出力される電気信号を画
像処理し、指標15内にある被検物7の輪郭形状7aの
エッジを検出し、検出したエッジ点16(図4参照)の
モニタ画面4a内での座標値(エッジ座標値)を輪郭形
状7aに沿った各測定点17(図3参照)について順次
検出し、各エッジ座標値のデータを輪郭形状測定部22
へ出力するように構成されている。 【0017】輪郭形状測定部22は、被検物7の輪郭形
状7aに沿ってある間隔で(例えば一定間隔で)各測定
点17のエッジ座標値を取り込む測定を行なう。輪郭形
状測定部22は、仮測定を行なうプレ測定部(第1の測
定部)51と、測定指示データ作成部(ティチングデー
タ作成部)52と、本測定を行なうリプレイ測定部53
とから構成されている。 【0018】プレ測定部51は、被検物7の輪郭形状7
aに沿って一定間隔で各測定点17のエッジ座標値を取
り込むプレ測定(図5参照)を実行するように構成され
ている。プレ測定部51は、プレ測定を行なうために、
指標15の移動先である次の測定目標点18(図7参
照)を設定し、この測定目標点18に対応する指標15
の位置及び測定目標方向30(図7参照)に対して直交
する角度方向を表す指標設定指令を指標設定部23に出
力すると共に、ステージ移動指令をXYステージ駆動部
10に出力するように構成されている。 【0019】また、プレ測定部51は、画像処理部21
から出力される各測定点のエッジ座標値と、ステージ位
置検出部11から出力される各測定でのステージ座標値
とに基づき各測定点の座標値(測定点座標値)を演算
し、その演算結果を測定指示データ作成部52へ順次出
力する演算部を備えている。この演算部は、下記の式で
表す演算を行なう。 【0020】(測定点座標値)=(ステージ座標値)+
(エッジ座標値×モニタ画面補正値) ここで、モニタ画面補正値は、XYステージ5上での寸
法とモニタ画面4a上での寸法との比である。 【0021】測定指示データ作成部(以下、単にデータ
作成部という)52は、プレ測定部51から出力される
各測定点の測定点座標値をデータテーブルに保存する。 【0022】データ作成部52は、プレ測定部51から
出力される各測定点の測定点座標値から(プレ測定部5
1で取り込んだ各測定点のエッジ座標値に基づき)、各
測定点での指標15の位置及び方向を表す測定指示デー
タ(ティーチングデータ)を作成し、リプレイ測定部5
3へ出力すると共に記憶装置に記憶するように構成され
ている。データ作成部52は、各測定点での指標15の
方向を各測定点でのその点及びその前後の点を含む複数
の点から求めた輪郭形状の法線方向とする。 【0023】各測定点での輪郭形状の法線方向を求める
方法として、エッジが検出された複数の測定点の各測定
点座標値から、直線補間、円弧補間、スプライン補間等
の形状補間を行なって求める方法がある。例えば、測定
点Pi での円弧補間による法線方向の算出は次のように
行なう。 【0024】(1)測定点Pi-1 、Pi 、Pi+1 の3点
を通る円弧の中心Oを算出する。 【0025】(2)測定点Pi と円弧の中心Oとを結ぶ
方向を法線方向とする。 【0026】リプレイ測定部53は、図6に示すリプレ
イ測定処理を実行するように構成されている。すなわ
ち、データ作成部52から出力される測定指示データに
従って、各測定点毎に指標15の位置と角度方向とを表
す指標設定指令を指標設定部23に出力し、画像処理部
21から各測定点のエッジ座標値を取り込み、各測定点
のエッジ座標値と各測定でのステージ座標値とに基づき
各測定点の測定点座標値を演算し、その演算結果を測定
データテーブル25へ順次出力するように構成されてい
る。測定点座標値の演算は、プレ測定部51の演算部で
の演算と同じである。 【0027】指標設定部23は、指標15をプレ測定部
51又はリプレイ測定部53から出力される指標設定指
令により指定されたモニタ画面4a上の位置及び角度方
向に設定させるための指標位置のデータを、画像処理部
21へ出力するようになっている。 【0028】測定条件テーブル24は、被検物7の輪郭
形状7aの測定開始位置(最初の測定点)及び測定終了
位置(最後の測定点)の座標、測定開始位置での測定目
標方向、各測定点17の間隔(例えば一定間隔で、図7
に示す測定ピッチP)をそれぞれ表すデータなどを含む
測定条件が予めキーボードなどにより入力されて記憶さ
れている。 【0029】測定データテーブル25は、リプレイ測定
部53から出力される各測定点の座標値(測定点座標
値)のデータを格納する。 【0030】データ出力部26は、測定終了後に測定デ
ータテーブル25に格納された測定データ(全測定点の
座標値)を表示又は印刷して出力するためのものであ
る。 【0031】次に、上記構成を有する一実施形態の動作
を、図5、図6のフローチャート及び図7〜図9に基づ
いて説明する。 【0032】まず、プレ測定部51により実行されるプ
レ測定処理を説明する。 【0033】図5に示す輪郭形状測定処理が開始される
と、ステップ101で、予め設定された測定開始位置と
測定終了位置の座標値をそれぞれ測定条件テーブル24
から取り込む。 【0034】次のステップ102では、ステップ101
で取り込んだ測定開始位置を、最初の測定目標点に設定
する。 【0035】次のステップ103では、モニタ画面4a
上の測定目標点(ここではステップ102で設定された
最初の測定目標点)に指標15がくるように指標15を
移動させる。このとき、モニタ画面4a上において指標
15が最初の測定目標点に表示される。 【0036】次のステップ104では、指標15内にあ
る輪郭形状7aのエッジ点座標(ここでは最初の測定目
標点のエッジ点座標)を取り込む。すなわち、画像処理
部21から出力される最初の測定目標点のエッジ座標値
を取り込む。 【0037】次のステップ105では、ステージ位置検
出部11から出力されるステージ座標値と、ステップ1
04で取り込んだエッジ座標値とに基づき指標15内に
ある測定点の座標値(測定点座標値:ここでは最初の測
定目標点の座標値)を演算する。すなわち、測定点座標
値演算部27で前記式の演算を行なう。 【0038】次のステップ106では、ステップ105
で演算した最初の測定点の測定点座標値をデータ作成部
52のデータテーブルへ出力して保存する。 【0039】次のステップ107では、次の測定目標点
を設定する。すなわち、直前にエッジが検出された直前
測定点(ここでは、最初の測定目標点)とその前にエッ
ジが検出された点を含む複数の点のエッジ座標値から次
の測定目標点18とこの点での指標15の角度方向とを
設定する。 【0040】ステップ107での測定目標点18の設定
方法としては、例えば次のような方法がある。図7に示
すように直前にエッジが検出された直前測定点17aの
前にエッジが検出された前々測定点17bから直前測定
点17aへ向かう方向を測定目標方向30とし、測定目
標点18を測定目標方向30に直前測定点17aから測
定ピッチPだけ離れた位置に設定する。指標15の角度
方向は、測定目標方向30に対して垂直となる向きに設
定する。 【0041】上記方法の他に測定目標点18を設定する
方法として、直前測定点とその前の複数個の測定点のエ
ッジ座標値に基づき、円弧補間やスプライン補間などを
用いて予想輪郭形状を作り、この予想輪郭形状上で直前
測定点17aから測定ピッチPだけ離れた位置に測定目
標点18を設定する方法を用いてもよい。この場合、指
標15の角度方向は測定目標点18における予想輪郭形
状の法線方向に設定する。 【0042】このような方法により、ステップ107に
おいて次の測定目標点18とこの点での指標15の角度
方向とを設定する。ここでは、直前測定点17aは最初
の測定目標点であり、前々測定点17bは存在しない。
そのため、ステップ107において次の測定目標点(2
番目の測定目標点)18とこの点での指標15の角度方
向とを設定するために、最初の測定目標点(測定開始位
置)での測定目標方向を示すデータが測定条件テーブル
24に予め記憶されている。このデータを使って2番目
の測定目標点18とこの点での指標15の角度方向とが
設定される。 【0043】この設定後ステップ108へ進む。 【0044】このステップ108では、終了条件を満た
したか否かを判定する。すなわち、ステップ107で設
定した次の測定目標点の座標がステップ101で取り込
んだ測定終了位置の座標値(最後の測定目標点の座標
値)を越えたか否かを判定する。ここでは、ステップ1
08で設定した次の測定目標点は2番目の測定目標点で
あるので、ステップ108の判定結果はNoになり、ス
テップ103に戻る。 【0045】ステップ103〜107を実行してステッ
プ108に進み、このステップ108の判定結果がNo
であれば、ステップ103に戻る。 【0046】このようにして、ステップ108の判定結
果がNoである間、ステップ103〜108を繰り返し
実行することにより、被検物7の輪郭形状7aに沿って
一定間隔で指標15を移動させながら測定を行ない、各
測定点の測定点座標値を演算し、その演算結果をデータ
作成部52のデータテーブルに順次格納する。 【0047】ステップ108の判定結果がYesになる
と、すなわち、ステップ107で設定した次の測定目標
点の座標値がステップ101で取り込んだ測定終了位置
の座標値(最後の測定目標点の座標値)を越えると、被
検物7の全ての輪郭形状7aの測定が終了したことにな
るので、図5のプレ測定処理を終了する。 【0048】データ作成部52は、プレ測定部51から
出力される各測定点の測定点座標値から、各測定点での
指標15の位置及び方向を表す測定指示データを作成
し、リプレイ測定部53へ出力する。データ作成部52
は、上述した法線方向の算出方法により、各測定点での
指標15の方向(図7に示す指標方向40)を各測定点
での輪郭形状の法線方向とする。 【0049】次に、リプレイ測定部53により実行され
るリプレイ測定処理(図6参照)を説明する。 【0050】図6に示すリプレイが開始されると、ステ
ップ201では、全測定指示データだけ繰り返したか否
かを判定する。すなわち、データ作成部52で作成され
た測定指示データを、先頭のデータ(測定開始位置のデ
ータ)から最後のデータ(測定終了位置のデータ)まで
測定順に使用して測定を繰り返すことにより、測定が終
了したか否かを判定する。使用していない測定指示デー
タが残っていて測定が終了していない場合には、ステッ
プ201の判定結果がNoになり、ステップ202に進
む。最後のデータを使った測定が終了して測定指示デー
タが残っていない場合には、処理を終了する。 【0051】ステップ201の判定結果がNoである
間、ステップ201〜205を繰り返し実行する。 【0052】ステップ202では、ある測定点での測定
指示データ(例えば最初の測定点である測定開始位置の
測定データ)が示す指標15の位置と角度方向に指標1
5を移動させる。 【0053】次のステップ203では、画像処理部21
から指標15内にある輪郭形状のエッジ点の座標(エッ
ジ座標値)を取り込む。 【0054】次のステップ204では、ステージ位置検
出部11から出力されるステージ座標値と、ステップ2
03で取り込んだエッジ座標値とに基づき指標15内に
ある測定点の座標値(測定点座標値)を演算する。 【0055】次のステップ205では、ステップ204
で演算した測定点座標値を測定データテーブル25に保
存する。 【0056】上記ステップ202〜205を繰り返すこ
とにより、最後のデータを使った測定が終了して測定指
示データがなくなると、ステップ201の判定結果がY
esとなって処理を終了する。 【0057】このように、上記一実施形態によれば、プ
レ測定部51のプレ測定(仮測定)により得られた各測
定点17の測定点座標値から、各測定点での指標15の
位置と、輪郭形状の法線方向に設定された各測定点での
指標15の方向(図7に示す指標方向40)とを表す測
定指示データを測定指示データ作成部52によって作成
し、リプレイ測定部53が測定指示データに従ってリプ
レイ測定(本測定)を行なう。そのため、輪郭形状7a
の曲率変化が大きい場合でも、図8に示すように各測定
点での指標の角度方向が輪郭形状7aに垂直な方向から
傾いたりせず、図9に示すように全ての測定点において
指標の角度方向が常に測定目標点での輪郭形状に垂直な
状態でエッジが検出され、エッジの検出位置にばらつき
が生じない。従って、精度のよい輪郭形状の測定を行な
うことができる。 【0058】また、上記一実施形態によれば、測定指示
データ作成部52で作成した測定指示データを記憶装置
から読み出して使い、リプレイ測定を繰返すことによ
り、同じ輪郭形状を有する被検物7の測定を効率的に行
なうことができる。 【0059】なお、上記一実施形態では、プレ測定部5
1によるプレ測定(仮測定)によって全ての測定点の座
標値を検出した後に、リプレイ測定部53によるリプレ
イ測定(本測定)を行なっているが、この発明はこのよ
うな構成に限定されるものではない。例えば、プレ測定
部51によるプレ測定によって複数の測定点の座標値を
検出した後に、リプレイ測定部53によるリプレイ測定
を行なうことを複数回繰り返すことにより、全輪郭形状
の測定を行なうように構成してもよい。 【0060】 【発明の効果】以上説明したように、請求項1記載の発
明に係る画像測定機によれば、データ作成部が、第1の
測定部で取り込んだ各測定点のエッジ座標値に基づき、
各測定点でのエッジ検出領域の位置及び方向を表すデー
タであって、各測定点でのエッジ検出領域の方向を輪郭
形状の法線方向としたティーチングデータを作成し、第
2の測定部がティーチングデータに従って輪郭形状を測
定する。そのため、輪郭形状の曲率変化が大きい場合で
も、指標の角度方向が常に各測定点での輪郭形状に垂直
な状態でエッジが検出され、エッジの検出位置にばらつ
きが生じない。したがって、輪郭形状の測定精度を向上
させることができる。
Description: BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to an image measuring device for measuring a contour shape of a test object. 2. Description of the Related Art Conventionally, as this type of image measuring device, for example, an image of a test object mounted on a stage is captured from above through an optical system, and the light intensity distribution of the captured image is measured. A CCD camera that outputs an electric signal corresponding to the image signal, and an edge of a contour shape of the test object within an index set in an imaging range captured by the CCD camera is detected by image processing based on the electric signal, and edge coordinates are detected. 2. Description of the Related Art There is known an image processing device that includes an image processing device that outputs a signal representing a value and that measures a contour shape of a test object. In this image measuring apparatus, when measuring the contour shape of a test object, the next measurement target point is set based on the edge coordinate values of a plurality of measurement points whose edges have been detected immediately before. The position and angle direction of the index are set with respect to the measurement target point, and the detection of the edge of the contour shape within the index is repeatedly performed on a plurality of points along the contour shape. However, in the above prior art, the angle direction of the index at the next measurement target point is determined based only on the edge coordinate values of a plurality of measurement points whose edges have been detected immediately before. Is set perpendicular to the contour shape expected at the measurement target point.When the curvature change of the contour shape is large, the angle direction of the set index is perpendicular to the contour shape at the measurement target point. It is not always the direction. As a result, the edge is detected in a state where the index is inclined from the direction perpendicular to the contour shape at the measurement target point, and the detection position of the edge varies, and the accuracy of the edge detection image processing deteriorates. There was a problem that it would. The present invention has been made in view of such circumstances, and an object of the present invention is to provide an image measuring machine with improved contour shape measurement accuracy. According to a first aspect of the present invention, there is provided an image measuring apparatus for solving the above-mentioned problems, wherein an image of a test object mounted on a stage is converted via an optical system. Capturing, capturing means for outputting an electric signal according to the light intensity distribution of the captured image, and the edge of the contour shape of the test object in an edge detection area set in the capturing range captured by the capturing means. Image processing means for detecting a signal representing an edge coordinate value by image processing based on an electric signal, and an image measuring device for measuring the contour shape, wherein each of a plurality of points along the contour shape is A first method of setting the position and direction of the edge detection area and capturing the edge coordinate values from the image processing unit at each measurement point at which the edge is detected.
A measurement unit and a data creation unit that creates teaching data representing the position and direction of the edge detection area at each measurement point based on the edge coordinate values of each measurement point captured by the first measurement unit. A second measuring unit for measuring the contour shape according to the teaching data, wherein the data creating unit determines a direction of the edge detection area at each of the measuring points by a method of the contour shape at each of the measuring points. It is characterized in that teaching data in a line direction is created. [0007] The data creation section is data representing the position and direction of the edge detection area at each measurement point based on the edge coordinate values of each measurement point taken in by the first measurement section. Teaching data in which the direction of the edge detection area is the normal direction of the contour shape obtained from a plurality of points including the point and points before and after the point is created, and the second measuring unit measures the contour shape according to the teaching data. Therefore, even when the change in the curvature of the contour shape is large, the edge is always detected in a state where the angle direction of the index is perpendicular to the contour shape at each measurement point, and the detected position of the edge does not vary. Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an image measuring device according to an embodiment of the present invention, and FIG. 2 is a schematic configuration diagram showing the image measuring device. As shown in FIGS. 1 and 2, the image measuring device comprises a measuring device main body 1 and a control unit 2. A support 3 is provided on the measuring instrument body 1, and a monitor 4 is provided on the control unit 2. The main body 1 of the measuring machine comprises a base 3a of a support 3
The XY stage 5 includes an XY stage 5 provided thereon, and an imaging unit 6 supported by a column 3 b of the support 3 so as to be located above the stage 5. The XY stage 5 is movable in two orthogonal directions (X-axis and Y-axis directions) in a horizontal plane. On the upper surface of the stage 5, a test object (for example, a test object as shown in FIG. 3) 7 having a two-dimensional contour shape and a small thickness is placed. The test object 7 is illuminated by the transmitted illumination optical system 8 provided on the base unit 3a or the incident illumination optical system 9 provided on the imaging unit 6 (see FIG. 2). On the XY stage 5, as shown in FIG.
An XY stage drive unit 10 for electrically moving the XY stage 5 in two directions based on an input stage movement command;
A stage position detector 11 is provided for detecting the coordinates of the XY stage 5 and outputting a signal representing the stage coordinate value. The XY stage drive unit 10 has an X-axis motor and a Y-axis motor (not shown) for driving the XY stage 5 in the X-axis and Y-axis directions, respectively. The stage position detector 11 has an X-axis encoder and a Y-axis encoder (not shown) for detecting the positions of the XY stage 5 in the X-axis and Y-axis directions, respectively. The imaging unit 6 includes, in addition to the epi-illumination optical system 9,
An imaging optical system 12 for imaging light from the test object 7, an image of the test object 7 formed by the optical system 12 (capture), and electricity corresponding to the light intensity distribution of the captured image. A CCD camera 13 for outputting a signal is provided. Imaging optical system 1
The magnification of 2 may be fixed or variable. The control unit 2, as shown in FIG.
An image processing unit 21 to which an electric signal output from the CD camera 13 is input, a contour shape measuring unit 22, and an index setting unit 2
3, measurement condition table 24, and measurement data table 2
5 and a data output unit 26. The control unit 2 is configured by a computer having an input device such as a keyboard (not shown), an input circuit, an output circuit, a central processing circuit, and the like. The image processing section 21 performs image processing on the electric signal output from each pixel of the CCD camera 13 and converts the captured image of the test object 7 into an image on a monitor screen 4a of the monitor 4 (see FIG. 4). The image signal for display is output to the monitor 4. Further, the image processing unit 21
An index (edge detection area) 1 indicating an edge detection area upon receiving index position data output from the index setting unit 23.
5 is displayed on the monitor screen 4a at a position and angle corresponding to the data of the index position.
It is configured to output to Further, the image processing section 21 performs image processing on the electric signal output from the CCD camera 13, detects the edge of the contour 7a of the test object 7 within the index 15, and detects the detected edge point 16 (see FIG. 4). ) In the monitor screen 4a are sequentially detected for each measurement point 17 (see FIG. 3) along the contour shape 7a, and the data of each edge coordinate value is detected by the contour shape measuring unit 22.
It is configured to output to The contour shape measuring section 22 performs a measurement for taking in the edge coordinate values of each measurement point 17 at a certain interval (for example, at a constant interval) along the contour shape 7a of the test object 7. The contour shape measurement unit 22 includes a pre-measurement unit (first measurement unit) 51 that performs provisional measurement, a measurement instruction data creation unit (tching data creation unit) 52, and a replay measurement unit 53 that performs actual measurement.
It is composed of The pre-measurement unit 51 is used to calculate the contour shape 7 of the test object 7.
It is configured to execute pre-measurement (see FIG. 5) in which edge coordinate values of each measurement point 17 are taken at regular intervals along a. The pre-measurement unit 51 performs pre-measurement,
A next measurement target point 18 (see FIG. 7) to which the index 15 is moved is set, and the index 15 corresponding to the measurement target point 18 is set.
Is output to the index setting unit 23, and a stage movement instruction is output to the XY stage drive unit 10, indicating an angle direction orthogonal to the position and the measurement target direction 30 (see FIG. 7). ing. Further, the pre-measurement section 51 includes the image processing section 21.
The coordinate values (measurement point coordinate values) of the respective measurement points are calculated based on the edge coordinate values of the respective measurement points output from the stage and the stage coordinate values of the respective measurements output from the stage position detector 11, and the calculation is performed. An operation unit for sequentially outputting the results to the measurement instruction data creation unit 52 is provided. This operation unit performs an operation represented by the following equation. (Measurement point coordinate value) = (Stage coordinate value) +
(Edge coordinate value × monitor screen correction value) Here, the monitor screen correction value is a ratio between the dimension on the XY stage 5 and the dimension on the monitor screen 4a. A measurement instruction data creation section (hereinafter simply referred to as a data creation section) 52 stores the measurement point coordinate values of each measurement point output from the pre-measurement section 51 in a data table. The data creation section 52 calculates the coordinates of the measurement points of each measurement point output from the pre-measurement section 51 (the pre-measurement section 5
Based on the edge coordinate value of each measurement point captured in step 1), measurement instruction data (teaching data) representing the position and direction of the index 15 at each measurement point is created, and the replay measurement unit 5
3 and stored in a storage device. The data creation unit 52 sets the direction of the index 15 at each measurement point as the normal direction of the contour shape obtained from a plurality of points including that point at each measurement point and points before and after that point. As a method of determining the normal direction of the contour shape at each measurement point, shape interpolation such as linear interpolation, circular interpolation, and spline interpolation is performed from the coordinates of each measurement point of a plurality of measurement points at which edges have been detected. There is a way to ask. For example, the calculation of the normal direction by circular interpolation at the measurement point Pi is performed as follows. (1) The center O of the arc passing through the three measurement points Pi-1, Pi and Pi + 1 is calculated. (2) The direction connecting the measurement point Pi and the center O of the arc is defined as the normal direction. The replay measuring section 53 is configured to execute a replay measuring process shown in FIG. That is, in accordance with the measurement instruction data output from the data creation unit 52, an index setting command indicating the position and the angle direction of the index 15 is output to the index setting unit 23 for each measurement point, and the image processing unit 21 outputs Is calculated based on the edge coordinate value of each measurement point and the stage coordinate value in each measurement, and the calculation results are sequentially output to the measurement data table 25. Is configured. The calculation of the measurement point coordinate value is the same as the calculation in the calculation unit of the pre-measurement unit 51. The index setting unit 23 sets index 15 for setting the index 15 at the position and angle direction on the monitor screen 4a designated by the index setting command output from the pre-measurement unit 51 or the replay measurement unit 53. Is output to the image processing unit 21. The measurement condition table 24 includes coordinates of a measurement start position (first measurement point) and a measurement end position (last measurement point) of the contour 7a of the test object 7, a measurement target direction at the measurement start position, The interval between the measurement points 17 (for example, at regular intervals,
The measurement conditions including the data respectively representing the measurement pitches P) shown in FIG. The measurement data table 25 stores data of coordinate values (measurement point coordinate values) of each measurement point output from the replay measurement unit 53. The data output section 26 is for displaying or printing and outputting the measurement data (coordinate values of all the measurement points) stored in the measurement data table 25 after the measurement is completed. Next, the operation of the embodiment having the above configuration will be described with reference to the flowcharts of FIGS. 5 and 6 and FIGS. First, a pre-measurement process executed by the pre-measurement section 51 will be described. When the contour shape measurement process shown in FIG. 5 is started, in step 101, the coordinate values of the preset measurement start position and measurement end position are respectively set in the measurement condition table 24.
Take in from. In the next step 102, step 101
Set the measurement start position captured in step 1 as the first measurement target point. In the next step 103, the monitor screen 4a
The index 15 is moved so that the index 15 comes to the upper measurement target point (here, the first measurement target point set in step 102). At this time, the index 15 is displayed at the first measurement target point on the monitor screen 4a. In the next step 104, the edge point coordinates of the contour 7a in the index 15 (here, the edge point coordinates of the first measurement target point) are fetched. That is, the edge coordinate value of the first measurement target point output from the image processing unit 21 is captured. In the next step 105, the stage coordinate values output from the stage position detecting section 11 and the step 1
Based on the edge coordinate values acquired in step 04, the coordinate value of the measurement point within the index 15 (measurement point coordinate value: here, the coordinate value of the first measurement target point) is calculated. That is, the measurement point coordinate value calculator 27 calculates the above equation. In the next step 106, step 105
The measurement point coordinate value of the first measurement point calculated in step is output to the data table of the data creation unit 52 and stored. In the next step 107, the next measurement target point is set. In other words, the next measurement target point 18 and the next measurement target point 18 are obtained from the edge coordinate values of the immediately preceding measurement point (the first measurement target point in this case) at which the edge was detected immediately before and a plurality of points including the point at which the edge was detected before. The angle direction of the index 15 at the point is set. As a method of setting the measurement target point 18 in step 107, for example, there is the following method. As shown in FIG. 7, the direction from the immediately preceding measurement point 17b where the edge is detected to the immediately preceding measurement point 17a before the immediately preceding measurement point 17a where the edge is detected immediately before is set as the measurement target direction 30, and the measurement target point 18 is set as the measurement target direction 18. The measurement target direction 30 is set at a position away from the immediately preceding measurement point 17a by the measurement pitch P. The angle direction of the index 15 is set to a direction perpendicular to the measurement target direction 30. In addition to the above-described method, as another method of setting the measurement target point 18, an expected contour shape is formed by circular interpolation, spline interpolation, or the like based on the edge coordinate values of the immediately preceding measurement point and a plurality of measurement points in front of it. Alternatively, a method of setting the measurement target point 18 at a position separated from the immediately preceding measurement point 17a by the measurement pitch P on the expected contour shape may be used. In this case, the angle direction of the index 15 is set to the normal direction of the expected contour shape at the measurement target point 18. According to such a method, in step 107, the next measurement target point 18 and the angular direction of the index 15 at this point are set. Here, the immediately preceding measurement point 17a is the first measurement target point, and the immediately preceding measurement point 17b does not exist.
Therefore, in step 107, the next measurement target point (2
In order to set the (second measurement target point) 18 and the angle direction of the index 15 at this point, data indicating the measurement target direction at the first measurement target point (measurement start position) is stored in the measurement condition table 24 in advance. Have been. Using this data, the second measurement target point 18 and the angular direction of the index 15 at this point are set. After this setting, the routine proceeds to step 108. In step 108, it is determined whether or not the termination condition has been satisfied. That is, it is determined whether or not the coordinates of the next measurement target point set in step 107 have exceeded the coordinates of the measurement end position (the coordinates of the last measurement target point) captured in step 101. Here, step 1
Since the next measurement target point set in 08 is the second measurement target point, the determination result in step 108 is No, and the process returns to step 103. Steps 103 to 107 are executed, and the process proceeds to step 108.
If so, the process returns to step 103. As described above, while the determination result of step 108 is No, steps 103 to 108 are repeatedly executed, thereby moving the index 15 at regular intervals along the contour 7a of the test object 7. The measurement is performed, the coordinate values of the measurement points of each measurement point are calculated, and the calculation results are sequentially stored in the data table of the data creation unit 52. If the result of the determination in step 108 is Yes, that is, the coordinate value of the next measurement target point set in step 107 is the coordinate value of the measurement end position taken in step 101 (the coordinate value of the last measurement target point). Is exceeded, it means that the measurement of all the contour shapes 7a of the test object 7 has been completed, and thus the pre-measurement processing of FIG. 5 ends. The data creation unit 52 creates measurement instruction data indicating the position and direction of the index 15 at each measurement point from the measurement point coordinate values of each measurement point output from the pre-measurement unit 51, Output to 53. Data creation unit 52
According to the above-described method of calculating the normal direction, the direction of the index 15 at each measurement point (the index direction 40 shown in FIG. 7) is set as the normal direction of the contour shape at each measurement point. Next, the replay measurement processing (see FIG. 6) executed by the replay measurement section 53 will be described. When the replay shown in FIG. 6 is started, it is determined in step 201 whether or not all the measurement instruction data has been repeated. In other words, the measurement is repeated by using the measurement instruction data created by the data creation unit 52 from the first data (data at the measurement start position) to the last data (data at the measurement end position) in the measurement order, whereby the measurement is performed. It is determined whether the process has been completed. If the measurement instruction data that is not used remains and the measurement has not been completed, the determination result of step 201 is No, and the process proceeds to step 202. If the measurement using the last data is completed and no measurement instruction data remains, the processing is terminated. Steps 201 to 205 are repeatedly executed while the judgment result of step 201 is No. In step 202, the position of the index 15 indicated by the measurement instruction data at a certain measurement point (for example, the measurement data at the measurement start position which is the first measurement point) and the index 1 in the angular direction
Move 5 In the next step 203, the image processing unit 21
, The coordinates (edge coordinate value) of the edge point of the contour shape within the index 15 are fetched. In the next step 204, the stage coordinate value output from the stage position detector 11 and the
A coordinate value (measurement point coordinate value) of the measurement point within the index 15 is calculated based on the edge coordinate value captured in step 03. In the next step 205, step 204
Is stored in the measurement data table 25. By repeating the above steps 202 to 205, when the measurement using the last data is completed and there is no measurement instruction data, the determination result in step 201 becomes Y.
It becomes es and ends the processing. As described above, according to the one embodiment, the position of the index 15 at each measurement point is determined from the coordinate values of the measurement points at each measurement point 17 obtained by the pre-measurement (provisional measurement) of the pre-measurement unit 51. The measurement instruction data creating unit 52 creates measurement instruction data representing the direction of the index 15 (index direction 40 shown in FIG. 7) at each measurement point set in the normal direction of the contour shape, and the replay measurement unit 53 performs replay measurement (main measurement) according to the measurement instruction data. Therefore, the contour shape 7a
8, the angle direction of the index at each measurement point does not incline from the direction perpendicular to the contour 7a as shown in FIG. 8, and the index of the index at all the measurement points as shown in FIG. Edges are detected in a state where the angle direction is always perpendicular to the contour shape at the measurement target point, and there is no variation in edge detection positions. Therefore, it is possible to accurately measure the contour shape. According to the above-described embodiment, the measurement instruction data created by the measurement instruction data creation unit 52 is read out from the storage device and is used, and the replay measurement is repeated, whereby the test object 7 having the same contour shape is obtained. The measurement can be performed efficiently. In the embodiment, the pre-measurement unit 5
After detecting the coordinate values of all the measurement points by the pre-measurement (temporary measurement) by 1, the replay measurement unit 53 performs the replay measurement (main measurement), but the present invention is not limited to such a configuration. is not. For example, after the coordinate values of a plurality of measurement points are detected by the pre-measurement unit 51 and the replay measurement by the replay measurement unit 53 is repeated a plurality of times, the entire contour shape is measured. You may. As described above, according to the image measuring device of the first aspect of the present invention, the data creating section converts the edge coordinate value of each measurement point captured by the first measuring section to the edge coordinate value. Based on
Data representing the position and direction of the edge detection area at each measurement point, teaching data is created with the direction of the edge detection area at each measurement point as the normal direction of the contour shape, and the second measurement unit The contour shape is measured according to the teaching data. Therefore, even when the change in the curvature of the contour shape is large, the edge is always detected in a state where the angle direction of the index is perpendicular to the contour shape at each measurement point, and the detected position of the edge does not vary. Therefore, the measurement accuracy of the contour shape can be improved.

【図面の簡単な説明】 【図1】図1はこの発明の一実施形態に係る画像測定機
の概略構成を示すブロック図である。 【図2】図2は一実施形態に係る画像測定機の概略構成
図である。 【図3】図3は一実施形態に係る画像測定機で使用され
る被検物を示す平面図である。 【図4】図4は一実施形態に係る画像測定機で使用され
るモニタのモニタ画面を示す平面図である。 【図5】図5は一実施形態に係る画像測定機の動作を示
すフローチャートである。 【図6】図6は一実施形態に係る画像測定機の動作を示
すフローチャートである。 【図7】図7は測定目標点及び指標方向の設定方法を説
明するための説明図である。 【図8】図8は指標が傾いた状態を示す説明図である。 【図9】図9は指標が垂直になった状態を示す説明図で
ある。 【符号の説明】 5 XYステージ(ステージ) 7 被検物 7a 輪郭形状 12 結像光学系(光学系) 13 CCDカメラ(撮像手段) 15 指標(エッジ検出領域) 18 測定目標点 21 画像処理部(画像処理手段) 22 輪郭形状測定部 51 プレ測定部(第1の測定部) 52 測定指示データ作成部(データ作成部) 53 リプレイ測定部(第2の測定部)
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a schematic configuration of an image measuring device according to an embodiment of the present invention. FIG. 2 is a schematic configuration diagram of an image measuring device according to one embodiment. FIG. 3 is a plan view showing a test object used in the image measuring device according to the embodiment. FIG. 4 is a plan view showing a monitor screen of a monitor used in the image measuring device according to the embodiment. FIG. 5 is a flowchart showing an operation of the image measuring device according to one embodiment. FIG. 6 is a flowchart showing an operation of the image measuring device according to one embodiment. FIG. 7 is an explanatory diagram for explaining a method of setting a measurement target point and an index direction. FIG. 8 is an explanatory diagram illustrating a state in which the index is inclined. FIG. 9 is an explanatory diagram showing a state in which the index is vertical. [Description of Symbols] 5 XY stage (stage) 7 Object 7a Contour shape 12 Imaging optical system (optical system) 13 CCD camera (imaging means) 15 Index (edge detection area) 18 Measurement target point 21 Image processing unit ( Image processing means) 22 contour shape measuring section 51 pre-measuring section (first measuring section) 52 measurement instruction data creating section (data creating section) 53 replay measuring section (second measuring section)

Claims (1)

(57)【特許請求の範囲】 【請求項1】 ステージ上に載置された被検物の像を光
学系を介して捉え、捉えた像の光強度分布に応じた電気
信号を出力する撮像手段と、前記撮像手段で捉えた撮像
範囲内に設定されるエッジ検出領域内にある被検物の輪
郭形状のエッジを前記電気信号に基づく画像処理により
検出し、エッジ座標値を表す信号を出力する画像処理手
段とを備え、前記輪郭形状の測定を行なう画像測定機に
おいて、 前記輪郭形状に沿った複数の点の各々の前記エッジ検出
領域の位置及び方向を設定しながら、前記エッジが検出
された各測定点で前記エッジ座標値を前記画像処理部か
ら取り込む第1の測定部と、 前記第1の測定部で取り込んだ前記各測定点のエッジ座
標値に基づき、前記各測定点での前記エッジ検出領域の
位置及び方向を表すティーチングデータを作成するデー
タ作成部と、 前記ティーチングデータに従って前記輪郭形状を測定す
る第2の測定部とを備え、 前記データ作成部は、前記各測定点での前記エッジ検出
領域の方向を前記各測定点での前記輪郭形状の法線方向
としたティーチングデータを作成することを特徴とする
画像測定機。
(57) [Claims] [Claim 1] Imaging which captures an image of a test object placed on a stage via an optical system and outputs an electric signal according to a light intensity distribution of the captured image. Means for detecting, by image processing based on the electric signal, an edge of a contour of the test object within an edge detection area set in an imaging range captured by the imaging means, and outputting a signal representing an edge coordinate value An image measuring device for measuring the contour shape, wherein the edge is detected while setting the position and direction of the edge detection region of each of a plurality of points along the contour shape. A first measuring unit that captures the edge coordinate value from the image processing unit at each of the measurement points, based on the edge coordinate value of each measurement point that is captured by the first measuring unit, Edge detection area position and direction And a second measurement unit that measures the contour shape in accordance with the teaching data, wherein the data creation unit determines the direction of the edge detection area at each of the measurement points. An image measuring apparatus, wherein teaching data is created with a normal direction of the contour shape at each of the measurement points.
JP02999396A 1996-01-23 1996-01-23 Image measuring machine Expired - Lifetime JP3508368B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02999396A JP3508368B2 (en) 1996-01-23 1996-01-23 Image measuring machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02999396A JP3508368B2 (en) 1996-01-23 1996-01-23 Image measuring machine

Publications (2)

Publication Number Publication Date
JPH09196635A JPH09196635A (en) 1997-07-31
JP3508368B2 true JP3508368B2 (en) 2004-03-22

Family

ID=12291473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02999396A Expired - Lifetime JP3508368B2 (en) 1996-01-23 1996-01-23 Image measuring machine

Country Status (1)

Country Link
JP (1) JP3508368B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3853500B2 (en) * 1998-01-08 2006-12-06 株式会社ミツトヨ Edge detection method and image measuring apparatus
EP1174681A3 (en) * 2000-06-23 2003-01-02 Ford Global Technologies, Inc. Method and apparatus for the determination of the contour of sheet metal blanks
JP4513062B2 (en) * 2004-11-15 2010-07-28 株式会社ニコン Image measuring machine
WO2012057283A1 (en) * 2010-10-27 2012-05-03 株式会社ニコン Shape measuring device, shape measuring method, structure manufacturing method, and program

Also Published As

Publication number Publication date
JPH09196635A (en) 1997-07-31

Similar Documents

Publication Publication Date Title
JP3508369B2 (en) Image measuring machine
JP2870142B2 (en) Coplanarity measuring method and apparatus
JP5385703B2 (en) Inspection device, inspection method, and inspection program
JP5222430B1 (en) Dimension measuring apparatus, dimension measuring method and program for dimension measuring apparatus
JP3924855B2 (en) Image measuring machine and method
JP3508368B2 (en) Image measuring machine
JP3887807B2 (en) Image measuring device
JP3602965B2 (en) Non-contact three-dimensional measurement method
JP5702634B2 (en) Camera resolution automatic measurement method, automatic adjustment method, and image inspection method and apparatus
JPH08285785A (en) Soldering inspection apparatus
JP3552381B2 (en) Image measuring machine
JP4401126B2 (en) Method for registering predetermined part of dimension measuring device
KR100229070B1 (en) Inspection method and device of cream solder of pcb
JPH10311705A (en) Image input apparatus
JP3904082B2 (en) Material testing machine
JP3697780B2 (en) Image measuring device
JP2678127B2 (en) Optical measuring device
JP4513062B2 (en) Image measuring machine
JP3013255B2 (en) Shape measurement method
JP4466281B2 (en) Image measuring device and data creation device
JPS61225605A (en) Optical automatic line width measuring device and method
JPS63241405A (en) Method and device for rectangular image processing
JP2005195443A (en) Image measurement apparatus
JPH10232117A (en) Image measuring device
JP2002039913A (en) Inspection chart of lens capacity inspection device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20031202

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20031215

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100109

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130109

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130109

Year of fee payment: 9

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130109

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140109

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term