JP4373037B2 - Measuring endoscope device - Google Patents

Measuring endoscope device Download PDF

Info

Publication number
JP4373037B2
JP4373037B2 JP2001264847A JP2001264847A JP4373037B2 JP 4373037 B2 JP4373037 B2 JP 4373037B2 JP 2001264847 A JP2001264847 A JP 2001264847A JP 2001264847 A JP2001264847 A JP 2001264847A JP 4373037 B2 JP4373037 B2 JP 4373037B2
Authority
JP
Japan
Prior art keywords
measurement
image
calibration data
data
stereo
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 - Fee Related
Application number
JP2001264847A
Other languages
Japanese (ja)
Other versions
JP2003075136A5 (en
JP2003075136A (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.)
Olympus Corp
Original Assignee
Olympus 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 Olympus Corp filed Critical Olympus Corp
Priority to JP2001264847A priority Critical patent/JP4373037B2/en
Priority to US10/232,422 priority patent/US6945930B2/en
Publication of JP2003075136A publication Critical patent/JP2003075136A/en
Publication of JP2003075136A5 publication Critical patent/JP2003075136A5/ja
Application granted granted Critical
Publication of JP4373037B2 publication Critical patent/JP4373037B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Instruments For Viewing The Inside Of Hollow Bodies (AREA)
  • Endoscopes (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Studio Devices (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、被検物(対象物)を撮影して計測を行なうのに必要な複数のステレオ計測用光学アダプタが内視鏡本体に着脱可能な計測内視鏡装置に関わり、本装置で計測を行なった画像を記録しておく場合には、光学アダプタと内視鏡本体の間の位置ずれ誤差および光学アダプタそのものの光学特性の補正を行なうための計測環境設定処理に必要な情報(校正データ)も画像と関連付けて記録しておき、後でこのような画像で再び計測を行う場合には、画像に関連付けられているキャリブレーション用の校正データを読み出して本被写体像に適用することにより、簡便に再計測を行う事のできる計測内視鏡装置に関する。
【0002】
【従来の技術】
一般に、内視鏡によって被検物をさらに詳細に調べるためには、その被検物を計測することが必要であり、このような要求を満足するために、従来から内視鏡を用いて被検物の計測が可能な計測手段が様々な提案によって開示されている。
【0003】
例えば、特開平10−248806号公報に記載の提案では、ステレオ計測による計測内視鏡装置が示されている。また、本出願人が先に出願した特願2000−101122号に記載の提案では、光学アダプタの種類によって異なる計測手法を、光学アダプタの種類に応じて自動的に選択して実行する計測内視鏡装置が示されている。
【0004】
前者の特開平10−248806号公報に記載の計測内視鏡装置では、内視鏡本体に、被検物を撮像して計測を行うのに必要な2つの光学系を有する光学アダプタを着脱自在に設け、光学アダプタ内の2つのレンズ系の画像を1つの撮像素子上に結像し、少なくともこの得られた内視鏡画像を用いた画像処理により計測を行うもので、光学アダプタの光学データを記録した記録媒体から情報を読み込む処理と、内視鏡本体の撮像系の位置誤差を基に光学データを補正する処理と、補正した光学データを基に計測する画像を座標変換する処理と、座標変換された2つの画像を基に2画像のマッチングにより任意の点の3次元座標を求める処理と、を行う計測処理手段を有して構成されている
上記構成の計測内視鏡装置においては、前記光学アダプタを介して撮像素子により取り込まれた被検物(被写体)の2つの画像を座標変換して求めた2つの画像情報を基に、2画像のマッチングにより被検物上の任意の点の3次元座標を求める。これにより、安価でしかも計測精度の優れた計測内視鏡装置の実現を可能にしている。
【0005】
一方、後者の特願2000−101122号に記載の計測内視鏡装置は、内視鏡先端部に設けられた接続部と、前記接続部に着脱可能な被写体像を撮像素子に結像させる複数種の光学アダプタと、前記光学アダプタの1つを接続し、前記撮像素子の画像信号を画像処理により計測を行う計測内視鏡装置において、前記複数の光学アダプタに予め関係付けられた表示データにて、選択操作するメニュー表示処理と、前記メニュー表示処理による選択結果に基づいて、計測処理を行う計測処理手段とを有して構成されている。
【0006】
上記構成の計測内視鏡装置においては、前記メニュー上で光学アダプタを選択すると、その光学アダプタに対応した計測方法が自動的に選択され、計測を実行する場合は内視鏡操作部に設けた計測実行スイッチを押下するのみで、前記選択された計測方法に対応した計測処理を実行させることが可能となる。
【0007】
また、上記公報にある実施例の中で複数の光学アダプタそれぞれについてキャリブレーション処理を行なった結果を外部記憶媒体であるコンパクトフラッシュ(R)メモリカードに計測環境データとして保存しておき、前記メニュー上で適切な光学アダプタを選択することで該当する光学アダプタに合った前記計測環境データが使用される構成が開示されている。
【0008】
【発明が解決しようとする課題】
通常、計測画像は、ビデオ内視鏡本体、対物レンズを有する計測用光学アダプタ、ビデオ内視鏡から出力される信号をTV信号に変換するためのカメラコントロールユニット(CCU)、TV信号をデジタル信号に変換して記録するための記録装置の種類あるいは個体の違いによって画像の写り具合の特性が変化する。このために、計測内視鏡装置の設定を、計測画像を撮影したときのそれぞの装置の組み合わせに適した状態になるようにさまざまな補正を行なわなければ、正しく計測を行うことができない。すなわち、計測環境の設定が必ず必要である。
【0009】
また、最近では、さまざまな計測の用途に合うように、内視鏡本体、光学アダプタやCCUなどの種類も増えてきたのに伴って、さまざまな装置の組み合わせ(計測環境)で記録された計測画像で再計測を行なう機会が増えてきている。
【0010】
しかしながら、従来の装置では、各々の計測画像の中にどういう計測環境で撮影したものであるのかを記録しておく手段がなかったために、しばらく経ってから同じ画像で再計測を行おうとした場合、撮影したときの計測環境を操作者が忘れてしまったために計測環境の再設定を行うことができなかったり、誤った装置を接続して計測環境設定を行ない再計測を行ってしまうというような恐れがあった。
【0011】
また、従来の装置で設定されている計測環境データは、ある計測環境に限定されたものであるので、計測内視鏡装置の中に存在する計測環境データには適さない画像、例えば光学アダプタの種類が異なる計測画像、で再計測を行なおうとすると、実際に再計測を行う前に、まず、この装置に全ての装置を接続し、再たび手動で計測環境の設定を行なわなければならなかった。このため、再計測の作業が非常に煩雑であり、面倒なものであった。
【0012】
さらに、特願2000−101122号に示す装置の中に、撮影した画像をフロッピー(R)ディスクなどの脱着自在な記録媒体に記録する機能や、記録媒体に記録された画像を別の個体の計測内視鏡装置に取り込むことができる機能が設けられていたとしても、画像を実際に撮影した計測内視鏡装置とは異なる別の個体の装置上で再計測しようとする場合においても、その計測画像を撮影したときに実際に使用した内視鏡、光学アダプタやCCUを、使用したい計測内視鏡装置にこれらを実際に接続して、計測ができるように設定を行う必要があった。
【0013】
本発明は、上記事情に鑑みてなされたものであり、記録されている計測画像で再計測を行なう場合に、誤った計測環境で計測を行なってしまうことを防止することができるとともに、簡単な操作で正しい計測環境で再計測ができるようにすることによって、計測環境を意識しなくてもすぐに再計測が行え、その時の操作性を向上させることのできる計測内視鏡装置を提供することを目的としている。
【0014】
【課題を解決するための手段】
本発明の計測内視鏡装置は、視差を有する二枚の画像を備えたステレオ画像データと、前記ステレオ画像データが撮像されたときに介されたステレオ計測アダプタの光学特性を示す校正データとを有する画像ファイルを取得可能な画像取得手段と、前記ステレオ画像データを表示する表示手段と、操作指示を入力する入力手段と、前記画像ファイルから、前記ステレオ画像データ及び前記校正データを参照する制御手段とを備え、前記制御手段は、前記画像取得手段によって取得された画像ファイルに校正データが付加されているか否かを判別する判別手段を備え、前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていると判別したとき、前記判別手段によって校正データが付加されていると判別された画像ファイルに付加されている校正データを、前記画像取得手段によって取得された画像ファイルから読み出し、前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていないと判別したとき、前記入力手段により、少なくとも1つの任意の校正データが記録されている記憶手段に記録されている校正データを前記記憶手段から選択させて読み出し、読み出した校正データに基づいて、前記画像取得手段によって取得された画像ファイルが有するステレオ画像データに含まれる幾何学的歪みを補正して補正ステレオ画像データを生成し、前記補正ステレオ画像データが備えた前記二枚の画像間におけるマッチング処理を行い、前記マッチング処理の結果と前記読み出した校正データとに基づいて前記補正ステレオ画像データの任意の計測点における三次元座標を求め、前記三次元座標を用いて被写体を計測する。
また、本発明の計測内視鏡装置は、視差を有する二枚の画像を備えたステレオ画像データと、前記ステレオ画像データが撮像されたときに介されたステレオ計測アダプタの光学特性を示す校正データと、前記校正データの種類を示す計測環境情報と、を有する画像ファイルを取得可能な画像取得手段と、前記ステレオ画像データを表示する表示手段と、操作指示を入力する入力手段と、前記画像ファイルから、前記ステレオ画像データ及び前記校正データを参照する制御手段とを備え、前記制御手段は、前記画像取得手段によって取得された画像ファイルに校正データが付加されているか否かを判別する判別手段を備え、前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていると判別したとき、前記判別手段によって校正データが付加されていると判別された画像ファイルに付加されている校正データを、前記画像取得手段によって取得された画像ファイルから読み出し、前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていないと判別したとき、前記計測環境情報を参照して、少なくとも1つの任意の校正データが記録されている記憶手段に、前記計測環境情報に対応した校正データが記録されているか否かを判断し、前記計測環境情報に対応した校正データが前記記憶手段に記録されていると判断した場合、前記計測環境情報に対応した校正データを前記記憶手段から読み出し、読み出した校正データに基づいて、前記画像取得手段によって取得された画像ファイルが有する前記ステレオ画像データに含まれる幾何学的歪みを補正して補正ステレオ画像データを生成し、前記補正ステレオ画像データが備えた前記二枚の画像間におけるマッチング処理を行い、前記マッチング処理の結果と前記読み出した校正データとに基づいて前記補正ステレオ画像データの任意の計測点における三次元座標を求め、前記三次元座標を用いて被写体を計測する。
【0015】
【発明の実施の形態】
以下、図面を参照しながら本発明の実施の形態について述べる。
【0016】
第1の実施の形態:
図1ないし図14は本発明の第1の実施の形態に係わり、図1は計測内視鏡装置のシステム構成を示す斜視図、図2は図1の計測内視鏡装置の電気的回路構成を示すブロック図、図3は図1のリモートコントローラの構成を示す斜視図、図4はステレオ計測アダプタを付けた図1の内視鏡挿入部の内視鏡先端部の構成を示す斜視図、図5は図4のA−A線断面図、図6は図4のステレオ計測アダプタを付けた内視鏡画像を示す図、図7は図4のステレオ計測アダプタのマスク形状の画像を示す図、図8は図1の計測内視鏡装置での計測環境の設定を説明するための元画像と補正画像の関係を示す図、図9は図1のLCDに表示された光学アダプタの選択画面の一例を示す図、図10は通常光学アダプタを付けた図1の内視鏡挿入部の内視鏡先端部の構成を示す斜視図、図11は図10のA−A線断面図、図12は図10の通常光学アダプタを付けた内視鏡画像を示す図、図13は図2のCPUによる特徴となる制御動作例を示す第1のフローチャート、図14は図2のCPUによる特徴となる制御動作例を示す第2のフローチャートである。
【0017】
(構成)
本実施の形態の計測内視鏡装置10のシステム構成を説明すると、該計測内視鏡装置10は、図1に示すように、撮像素子を内蔵し複数のステレオ計測用光学アダプタと通常計測用光学アダプタを着脱自在に構成された内視鏡挿入部11と、該内視鏡挿入部11を収納するコントロールユニット12と、該計測内視鏡装置10のシステム全体の各種動作制御を実行するのに必要な操作を行うリモートコントローラ13と、内視鏡画像、あるいは操作制御内容(例えば処理メニュー)等の表示を行う液晶モニタ(以下、LCDと記載)14と、通常の内視鏡画像、あるいはその内視鏡画像を擬似的にステレオ画像として立体視可能なフェイスマウントディスプレイ(以下、FMDと記載)17及び該FMD17に画像データを供給するFMDアダプタ18とを含んで構成されている。
【0018】
さらに図2を参照しながら該装置のシステム構成を詳細に説明する。図2に示すように、前記内視鏡挿入部11は、内視鏡ユニット24に接続され、この内視鏡ユニット24は、例えば図1に示すようにコントロールユニット12内に搭載される。この内視鏡ユニット24は、図示はしないが撮像時に必要な照明光を得るための光源装置と、前記内視鏡挿入部11を電気的に自在に湾曲させるための電動湾曲装置とを含んで構成されている。
【0019】
内視鏡挿入部先端の固体撮像素子43(図5参照)からの撮像信号は、カメラコントロールユニット(以下、CCUと記載)25に入力される。該CCU25は、供給された撮像信号をNTSC信号等の映像信号に変換し、前記コントロールユニット12内の主要処理回路群へと供給する。
【0020】
前記コントロールユニット12内に搭載された主要回路群は、例えば図2に示すように、主要プログラムに基づき各種機能を実行し動作させるように制御を行うCPU26,ROM27,RAM28,PCカードインターフェイス(以下、PCカードI/Fと記載)30,USBインターフェイス(以下、USBI/Fと記載)31,RS−232Cインターフェイス(以下、RS−232CI/Fと記載)29,音声信号処理回路32及び映像信号処理回路33とを含んで構成されている。
【0021】
前記RS−232CI/F29は、CCU25,内視鏡ユニット24及びリモートコントローラ13にそれぞれ接続され、CCU25,内視鏡ユニット24の制御及び、動作指示を行うリモートコントローラ13による操作に基づく動作制御するのに必要な通信をそれぞれ行うためのものである。
【0022】
前記USBI/F21は、該コントロールユニット12とパーソナルコンピュータ21とを電気的に接続するためのインターフェイスであり、該USBI/F21を介して接続した場合には、パーソナルコンピュータ21側でもコントロールユニット12における内視鏡画像の表示指示や計測時における画像処理等の各種の指示制御を行うことが可能であり、またコントロールユニット12,パーソナルコンピュータ21間とで各種の処理に必要な制御情報やデータ等の入出力を行うことが可能である。
【0023】
また、前記PCカードI/F30は、PCMCIAメモリカード22及びコンパクトフラッシュ(R)メモリカード23が着脱自由に接続されるようになっている。つまり、上記いずれかのメモリカードが装着された場合には、CPU26による制御によって、記録媒体としてのメモリーカードに記憶された制御処理情報や画像情報等のデータを再生し、該PCカードI/F30を介してコントロールユニット内に取り込むことができ、あるいは制御処理情報や画像情報等のデータを該PCカードI/F30を介してメモリカードに供給して記録することができる。
【0024】
前記映像信号処理回路33は、CCU25から供給された内視鏡画像とグラフィックによる操作メニューとを合成した合成画像を表示するように、CCU25からの映像信号とCPU26の制御により生成される操作メニューに基づく表示信号とを合成処理し、さらにLCD14の画面上に表示するのに必要な処理を施してLCD14に供給することにより、内視鏡画像と操作メニューとの合成画像がLCD14に表示される。なお、映像信号処理回路33では、単に内視鏡画像、あるいは操作メニュー等の画像を単独で表示するための処理を行うことも可能である。
【0025】
前記音声信号処理回路32は、マイク20により集音されて生成され、メモリカード等の記録媒体に記録する音声信号、あるいはメモリカード等の記録媒体の再生によって得られた音声信号が供給され、供給された音声信号に再生するのに必要な処理(増幅処理等)を施し、スピーカ19に出力する。これにより、スピーカ19によって音声信号が再生される。
【0026】
前記CPU26は、ROM27に格納されているプログラムを実行し、目的に応じた処理を行うように各種の回路部を制御してシステム全体の動作制御を行う。
【0027】
次に、図3を参照しながらリモートコントローラ13の構成とその操作に基づくCPU26のプログラム動作制御例を説明する。
【0028】
本実施の形態の計測内視鏡装置10に用いられるリモートコントローラ13は、計測時等の使用時における操作性をより向上させるための改良がなされている。
【0029】
リモートコントローラ13は、図3に示すようにジョイスティック47,レバースイッチ48,フリーズスイッチ49,ストアースイッチ50及び計測実行スイッチ51を少なくとも上面に併設して構成され、つまり、使用者にとって操作し易い配置形態が採用されている。
上記構成のリモートコントローラ13において、ジョイスティック47は内視鏡先端部の湾曲動作を行うスイッチであり、360度のいずれの方向に自在に操作指示を与えることが可能である。また、レバースイッチ48は、グラフィック表示される各種メニュー操作や計測を行う場合のポインター操作を行うためのスイッチであり、前記ジョイスティックスイッチ47と略同形状に構成されたものである。フリーズスイッチ49は、LCD14に表示された内視鏡動画画像を静止画像として表示する際に用いられるスイッチである。ストアースイッチ50は、前記フリーズスイッチ49の押下によって静止画像を表示した場合に、該静止画像をPCMCIAメモリカード22(図2参照)に記録する場合に用いられるスイッチである。また、計測実行スイッチ51は、計測ソフトを実行する際に用いられるスイッチである。
【0030】
なお、前記フリーズスイッチ49,ストアースイッチ50及び計測実行スイッチ51は、例えばオン/オフの押下式を採用して構成されている。また、前記レバースイッチ48には、上記以外の機能を割り当てることも可能である。
【0031】
例えば、レバースイッチ48を右に倒すと画像のズームUP機能、レバーを左に倒すとズームDOWN機能を実行することができるようにこれらの機能を該レバースイッチ48に割り当てて構成しても良い。また、通常、ズーム画像で計測を行った場合は画像の倍率が変化しているため正しく計測できない。このような場合は、前記計測実行スイッチ51を押下すると、CPU26はこの操作信号を受け、瞬時ズーム機能を解除して、画像をフリーズしてから計測を実行するように制御する。なお、これ以外の方法としては、ズーム倍率を考慮して画像のまま計測できるように制御するようにしても良い。
【0032】
次に、本実施の形態の計測内視鏡装置10に用いられるステレオ計測アダプタの構成を図4ないし図6を参照しながら説明する。
【0033】
図4及び図5はステレオ計測アダプタ37を内視鏡先端部39に取り付けた状態を示しており、該ステレオ計測アダプタ37は、固定リング38の雌ねじ53により内視鏡先端部39の雄ねじ54と螺合することによって固定されるようになっている。
【0034】
また、ステレオ計測アダプタ37の先端には、一対の照明レンズ36と2つの対物レンズ34,対物レンズ35が設けられている。2つの対物レンズ34,35は、内視鏡先端部39内に配設された撮像素子43上に2つの画像を結像する。この得られた撮像信号は、電気的に接続された信号線43a,内視鏡ユニット24を介してCCU25に供給され、該CCU25により映像信号に変換された後に映像信号処理回路33に供給されることにより、その結果、例えば図6に示すような画像がLCD14に表示される。
【0035】
本実施の形態の計測内視鏡10は、ステレオ計測を行う場合、図7に示すような白い被写体を撮影した内視鏡画像を用い、さらに例えばステレオ計測アダプタ37の光学データを記録した記録媒体(例えばコンパクトフラッシュ(R)メモリカード)から取り込まれた光学データに基づいて被計測物のステレオ計測処理を行う。
【0036】
ここで、本計測内視鏡装置10では、実際にステレオ計測を行う前に計測環境の設定を行い、計測ができる準備を行っておく必要があるので、実際に計測を行う動作の説明の前に、計測環境の設定について説明する。
【0037】
ステレオ計測アダプタは、特開平10−248806号公報で示されているように、種類が同じでもその個体によって光学特性が異なっているので、その生産工程で光学データが測定される。この光学データには、以下の情報が含まれている。
【0038】
a)2つの光学系の幾何学的歪み補正式
b)2つのレンズ系の焦点距離
c)2つのレンズの光軸間の距離およびこれらの光軸の位置座標
d)データ測定で使用した内視鏡とこの光学アダプタとの組み合わせにおける取り付け具合の位置情報
上記d)の位置情報とは、データ測定で使用した内視鏡とこの光学アダプタとの組み合わせで図7のような白い被写体(白い紙など)を撮影した内視鏡画像から、2つの視野領域の位置座標や傾き角の情報のことである。
【0039】
上記の光学データ採りを行った後のステレオ計測アダプタは、内視鏡挿入部に取付けられ、内視鏡装置10において、次に示す処理を行って計測環境の設定を行う。
【0040】
1)ステレオ計測アダプタの光学データが記録された記録媒体を計測内視鏡装置に装着し、このデータを読み込む。
【0041】
2)光学アダプタを実際に使用する内視鏡挿入部11に取り付けて、図7に示すような白い被写体を撮影し、その取り付け具合の位置情報を求める。ここで求める位置情報は、光学データの中に含まれる位置情報と同様の内容である。
【0042】
3)この光学データの中にある位置情報と、上記2)で求めた位置情報を比較して、記録媒体に記録されている光学データのうちのa)とc)の情報を、実際に使用する内視鏡に適したデータに補正する。具体的には、各座標に関する回転補正を行う。
【0043】
4)生産工程のデータ測定時に使用したCCUやビデオキャプチャー回路の特性が、実際に計測で使用する計測内視鏡装置の特性と異なり、画像の拡大率が装置の種類によって異なる場合もある。この場合には、それらの特性の違いをあらかじめ検証しておき、その拡大率に合うように記録媒体に記録されている光学データを補正する。
【0044】
5)上記までの処理で求まった補正後の光学データを、計測環境の設定で用いる校正データとする。
【0045】
6)上記校正データを用いて、本内視鏡装置に対する幾何学的歪み補正を行うための変換テーブルを作成する。
【0046】
7)補正画像上の座標に対する補正前の元画像上の座標を求めるための逆変換テーブルを作成する。
【0047】
8)上記5)で示す校正データと上記6)で求めた変換テーブルと上記7)で求めた逆変換テーブル、および機器の種類を示す計測環境情報とを合わせて計測環境データとして、装置内に保存しておくために例えばコンパクトフラツシュカード23に記録する。
【0048】
以上が、計測環境の設定に関する処理である。
【0049】
次に、上記3)で示した回転補正について、式で説明する。
【0050】
回転補正前の幾何学的歪み補正式が、以下の関係式であったとする。
【0051】
x’=fx(x,y), y’=fy(x,y)・・・(1)
(x’,y’):幾何学的歪み補正後の座標
(x,y):幾何学的歪み補正前の画像上における任意の座標(元画像上の座標)
fx(x,y):補正前の元画像上の座標(x,y)を補正後のx座標に変換する関数
fy(x,y):補正前の元画像上の座標(x,y)を補正後のy座標に変換する関数
補正前の光学データの中にある位置情報と、実際に使用する内視鏡とに関する位置情報を比較した時、その差を示す回転マトリックスがAであらわされたとすると、補正後の幾何学的歪み補正式は以下のようになる。
【0052】
(x”,y”)=A・(x’,y’)十(a,b)・・・(2)
(x”,y”):回転補正を含んだ幾何学的歪み補正後の座標(補正画像上の座標)
(x’,y’):幾何学的歪み補正後の座標
(a,b):x方向およびy方向の位置ずれ量
また、式(1)を式(2)に代入して行列式を展開すると、以下のように表すことができる。この関係を図8に示す。
【0053】
x”=fx’(x,y), y”=fy’(x,y)・・・(3)
(x”,y”):回転補正を含んだ幾何学的歪み補正後の座標(補正画像上の座標)
(x,y):幾何学的歪み補正や回転補正前の画像上における任意の座標(元画像上の座標)
fx’(x,y):元画像上の座標(x,y)を幾何学的歪み補正と回転補正を行って補正画像上のx座標を求める関数
fy’(x,y):元画像上の座標(x,y)を幾何学的歪み補正と回転補正を行って補正画像上のy座標を求める関数
光軸の位置座標においても、回転マトリックスAと位置ずれ量(a,b)を使って、上記と同様な関係式で示すことができる。
【0054】
上記7)で求める逆変換テーブルを求めるには、変換テーブルを作成するときに同時に作成する。
【0055】
つまり、式(3)を使用して元画像上の座標を補正画像上の座標に変換したとき、補正画像上の座標に1対1で対応した逆変換テーブルの中の(x”,y”)の座標に対応した場所に、元画像上の座標(x,y)を保存する。
【0056】
ここで、式(3)で変換した座標は、通常は実数で求められるので、この値が逆変換テーブルに合うように整数化する必要がある。
【0057】
また、元画像上の座標を変換式にて補正画像上の座標に変換しているので、逆変換テープルの中に元画像上の値が直接入らない個所が出てくるが、このような場合は、隣り合う近傍点で補間することで、逆変換テーブル内の全ての場所に適当な元画像上の座標が入るようにする。
【0058】
なお、変換式(1)に対する逆変換式があらかじめ定められていたり、または、変換式(1)から式変換によって逆変換式を求められるときは、この逆変換式を用いて直接逆変換テーブルを求めてもよい。
【0059】
式(2)で用いられている回転マトリックスの逆マトリックスをA-1とすると、補正画像上の座標を位置ずれ補正を行う前の座標に戻す式は、
(x’,y’)=A-1・(x”,y”)・(a,b)・・・(4)
(x’,y’):幾何学的歪みのみ補正された位置ずれ補正前の座標
(x”,y”):回転補正を含んだ幾何学的歪み補正後の座標(補正画像上の座標)
(a,b):x方向およびy方向の位置ずれ量
となるので、光学特性を測定したときの幾何学的歪み補正における逆変換式が関数gx,gyとして定義されていれば以下の関係式が成り立つ。
【0060】
x=gx(x’,y’), y=gy(x’,y゛)・・・(5)
(x,y):幾何学的歪み補正前の座標(元画像上の座標)
(x’,y’):幾何学的歪みのみ補正された位置ずれ補正前の座標
gx(x’,y’):幾何学的歪み補正において補正前のx座標を求める逆変換関数
gy(x’,y’):幾何学的歪み補正において補正前のy座標を求める逆変換関数
式(4)の行列式を展開して、式(5)に代入すると、補正画像上の座標を元画像に変換式は、以下のように表すことができる。この関係を図8に示す。
【0061】
x=gx’(x”,y”), y=gy’(x”,y”)・・・(6)
(x,y):幾何学的歪み補正や回転補正前の画像上における任意の座標(元画像上の座標)
(x”,y”):回転補正を含んだ幾何学的歪み補正後の座標(補正画像上の座標)
gx’(x,y):補正画像上の座標(x”,y”)を幾何学的歪み補正と回転補正前の元画像上のx座標を求める関数
gy’(x,y):補正画像上の座標(x”,y”)を幾何学的歪み補正と回転補正前の元画像上のy座標を求める関数
上記8)で示す計測環境情報は、計測環境データ(つまり、校正データと変換テーブル)の種類を示す情報であるため、例えば以下のような情報が含まれている。
【0062】
・ステレオ計測アダプタの種類および個体識別番号
・内視鏡挿入部の種類および個体識別番号
・NTSCなどのTVタイプ
・CCUの種類
・ビデオキャプチャー回路の種類
CCUの種類、ビデオキャプチャー回路の種類は、計測内視鏡装置の一モジュールとして装備されていることが多いので、この場合はこれらを計測内視鏡装置の種類と読み替えてもよい。
【0063】
上記のようにして計測環境の設定を行ったら、被計測物を撮影して計測を実行することができる。
【0064】
したがって、本計測内視鏡装置10によるステレオ計測は、ステレオ計測アダプタ37の光学データを記録した記録媒体(例えばコンパクトフラッシュ(R)メモリカード)から光学情報を読み込む第1の処理と、内視鏡先端部39の撮像素子43とステレオ計測アダプタ37との位置情報を求める第2の処理と、前記位置情報と生産時に求めた主となる内視鏡と本ステレオ計測アダプタ37の位置情報から位置誤差を求める第3の処理と、前記位置誤差から光学データを補正する第4の処理と、撮影した画像に含まれる幾何学的歪みを補正するための変換テーブルを作成する第5の処理と、計測用に撮影した画像を変換テーブルを用いて座標変換をおこない補正画像を作成する第6の処理と、補正画像を基にして任意の点で左右2画像のマッチングを行う第7の処理と、マッチングによって求まった左右2つの座標と光軸の位置座標と焦点距離から三次元座標を求める第8の処理と、任意の複数点の三次元座標からあるニ点間距離や面積などの計測値を求める第9の処理を実行することにより行われる。
【0065】
CPU26は、例えば前記第1〜5の処理をステレオ計測アダプタ37に対して一度実行し、この結果をコンパクトフラッシュ(R)メモリカード23上に計測環境データとして記録しておくように制御する。これ以降に続けて、ステレオ計測を実行するときは、CPU26は、先にコンパクトフラッシュ(R)メモリカード23上に記録した前記計測環境データをRAM上にロードして前記第6〜9の処理を実行するように制御する。脱着自在なメモリカードに画像が記録されているので、他の個体の計測内視鏡装置を用いて画像が記録されている同種のメモリカードを本装置に装着することで、他の装置で記録した画像を別の装置上で容易に閲覧することができる効果がある。
【0066】
前記第2の処理を行うときに撮影する図7に示す白色画像の明るさは、CCU25のゲインとシャッター速度によって決まる。通常は、CCU25のダインおよび撮像素子43のシャッター速度が自動的に最適になるように制御されているが、前記白色画像を取り込む場合はCCU25のゲインは低く、撮像素子43のシャッター速度が速く設定されてしまう傾向にあり、これにより画像が暗くなってしまって光学アダプタのマスク形状(言い換えると、視野領域)がはっきりと撮れなくなり、計測精度に悪影響を与えることになる。
【0067】
よって、本実施の形態では、CCU25のゲインとシャッター速度を固定させるようにCPU26の制御によって実施するようにしている。これにより、確実にはっきりと映ったマスク形状を裸りこむことができ、計測精度が低下しない。
【0068】
また、前記計測環境データは、位置補正後の校正データと、変換テーブルと逆変換テーブルおよび計測環境情報からなる。この計測環境データは、脱着自在なコンパクトフラッシュ(R)メモリカード23上に記録するように制御する。
【0069】
さらに、本実施の形態では、画像の記録は、CPU26の制御によってPCMCIAメモリカード22上に行い、前記計測環境データを記録するコンパクトフラッシュ(R)メモリカード23とは別のメモリカードに記録するように制御する。なお、画像を記録する際には、同時に計測環境データのうち計測環境情報を画像ファイルの一部として、あるいは画像ファイルと関連付けられた別のファイルとして記録する。また、校正データも画像ファイルの一部として、あるいは画像ファイルと関連付けられた別のファイルとして記録する。
【0070】
記録されている画像をリストから選択して、ステレオ計測を実行する際は、既に登録されている計測環境データの中に選択した画像と同じ計測環境のものが存在するかどうかを検索する。
【0071】
もし、同じものが登録されているとその計測環境データを読み込んで、計測内視鏡装置の設定を変更し、前記第6の処理を行って計測できる状態にする。もし、同じものが登録されていないならば、画像に付いている校正データを使用して計測環境データを作成して、前記第6の処理を行って計測できる状態にする。作成した計測環境データは計測内視鏡装置内に登録しておいた方が便利なときもあるし、登録しない方が図9に示す光学アダプタの選択画面で誤った光学アダプタを選択するのを防止する効果があるので、計測内視鏡システムの構成に合わせてどちらかを選択すればよい。
【0072】
以上により、計測内視鏡装置に搭載されているソフトウェアで対応している計測環境ならば、どんな画像でも自動的に計測環境の設定を自動的に行われるので簡単に再計測を行えるようになる。
【0073】
また、画像に記録されている情報が、校正データや計測環境情報だけでなく、変換テーブルなども含んだ計測環境データでもよく、この場合には画像を選択して計測を実行するときに画像についている計測環境データを直接読み込んで前記第6の処理を行うと計測の準備が完了する。しかし、計測環境データを画像とともに記録すると、大きな容量になってしまうのであまり好ましくない。これに対して、計測環境情報と校正データは数十Kbyteであることが多いので、画像に記録するのは計測環境情報と校正データだけである方が画像の容量的に大変有効である。
【0074】
計測の準備が整うと、例えば図6上のクラック44の長さを測る場合には、左画像上でクラック44の上を折れ線でなぞるように計測点を指定する。CPU26は、新たな計測点が指定されるごとに右画像上でそれぞれの対応点を探索し、計測点と対応点の座標から各点での3次元座標を求め、それらの3次元座標から隣り合う二点間の距離を計算し、それらの合計を算出することでクラック44の全長としてその長さをLCD14上に表示する。
【0075】
次に、本実施の形態の計測内視鏡装置10に用いられる通常光学アダプタの構成を図10ないし図12を参照しながら説明する。
【0076】
図10及び図11は通常光学アダプタ42を内視鏡先端部39に取り付けた状態を示しており、該通常光学アダプタ42は、固定リング38の雌ねじ53により内視鏡先端部39の雄ねじ54と螺合することによって固定されるようになっている。
【0077】
また、通常光学アダプタ42の先端には、一対の照明レンズ41と対物レンズ40が設けられている。対物レンズ40は、内視鏡先端部39内に配設された撮像素子43上に画像を結像する。この得られた撮像信号は、前記ステレオ計測アダプタ37と同様に電気的に接続された信号線43a,内視鏡ユニット24を介してCCU25に供給され、該CCU25により映像信号に変換された後に映像信号処理回路33に供給されることにより、その結果、例えば図12に示すような画像がLCD14に表示される。
【0078】
本実施の形態の計測内視鏡装置10は、通常光学アダプタを用いた計測を行う場合、比較計測による方法を用いることによって行う。つまり、比較計測は、画面の中にある解っている寸法を基準にして計測する方法である。
【0079】
例えば、図12に示す円の直径がわかっている場合には、円の直径の両端にポインターを置き2点間の長さL1 45を入力する。知りたい寸法L2 46は、L1の画面上の大きさからCPU26による演算処理によって比率で求める。また、このときにレンズのディストーション特性の情報を基に、ディストーション補正を行い、より正確に寸法を求めるように調整される。レンズのディストーション特性は、予めROM27上に記録しておき、CPU26は、選択された通常光学アダプタ42に対応したデータをRAM2上にロードするようにして比較計測が実行される。
【0080】
(作用)
次に、本実施の形態の計測内視鏡装置10のCPU26による特徴となる制御動作例を図13、図14を参照しながら詳細に説明する。
【0081】
いま、図1に示す計測内視鏡装置10の電源を投入し、使用するものとする。すると、CPU26は主となるプログラム(図13参照)を実行し、ステップS100,S101,S102,S103,S109の判断処理により構成されたループによって、待機状態になっている。また、ステップS100,S101,S102の機能が指示されると、各機能の処理に移行し、S103の機能が指示されると、ステップS104に移行する。
【0082】
このステップS103の判断処理では、内視鏡先端部39に装着する光学アダプタの設定、及び光学アダプタの装着の有無を判断し、光学アダプタの設定がなされていない場合には続くステップS108の処理で処理を終了したか否かが判断され、終了したと判断した場合には処理を完了し、そうでない場合には処理をステップS100に戻す。
【0083】
一方、前記ステップS103の判断処理で、内視鏡先端部39に光学アダプタが装着され、また装着された光学アダプタの設定がなされている場合には、処理をステップS104に移行する。つまり、このステップS104の判断処理に処理が移行されることによって、光学アダプタの設定機能の入力待ち状態となる。
【0084】
例えば、内視鏡先端部39にいずれかの光学アダプタを取り付けた場合、CPU26は、光学アダプタの設定機能を呼び出すとともに、処理をステップS104に移行し、該処理によって該光学アダプタの設定機能に基づく、光学アダプタの選択画面の表示信号を生成し、映像信号処理回路33(図2参照)に供給することにより、LCD14上に図9に示すような光学アダプタの選択画面を表示させる。つまり、この光学アダプタの選択画面は、例えばステレオ計測アダプタであるAT60D/60D、AT60S/60S及び通常光学アダプタであるAT120D、AT60Dが表示された画面であり、ユーザはこの選択画面をみながら現在使用している光学アダプタを、例えば図示はしないが画面上に表示がなされているカーソルをレバースイッチ48により上下させることにより、選択する。
【0085】
その後、CPU26は、続くステップS105による判断処理で、前記ユーザにより選択された光学アダプタが通常光学アダプタであるか否かを判別し、通常光学アダプタで有る場合には、続くステップS106の処理で比較計測フラグを1(TRUE)として処理をステップS107に移行し、逆に、通常光学アダプタでない場合には、処理をステップS107に移行する。
【0086】
CPU26は、ステップS107の処理で、前記ユーザにより選択された光学アダプタがステレオ計測アダプタであるか否かを判別し、ステレオ計測アダプタで有る場合には、続くステップS108の処理でステレオ計測フラグを1(TRUE)として、ユーザによりリモートコントローラ13の計測実行スイッチ51の押下がなされるまで該計測内視鏡装置10を使用待機状態とし、またステレオ計測アダプタでない場合にも同様に使用待機状態とするように制御する。
【0087】
計測内視鏡装置10は、通常、被写体を撮影している状態(ライブビデオ画像表示状態)にあるので、ここでユーザによってリモートコントローラ13の計測実行スイッチ51が押されると、CPU26は静止画像を表示するように映像信号処理装置33を制御し、この静止画像に対して図14に示すルーチンのプログラムを実行させる。
【0088】
また、計測内祝鏡装置は、図示はしないがPCMCIAメモリカード22に記録されている複数の画像一覧の中からレバースイッチ48を上下させることにより、画像を選択することができる。この後でリモートコントローラ13の計測実行スイッチ51が押されると、CPU26は選択した画像に対して図14に示すルーチンのプログラムを実行させる。
【0089】
CPUが計測実行スイッチが押されたことを検知したら、図14のステップS111の判断処理でPCMCIAメモリ力ード22に記録されている画像であるか否かの判断を行い、記録されている画像である場合にはステップS112判断処理でその画像がステレオ計測画像か否かの判断を行う。
【0090】
ここでステレオ計測画像である場合は、ステップS113の判断処理でこの画像ファイルのヘッダに計測環境情報が付いているか否かの判断を行い、これが記録されている場合には、ステップS114の判断処理でコンパクトフラッシュ(R)メモリカード23に記録されている計測環境データの中に同じ計測環境のものがあるか否かを判断して、同じものがある場合にはステップS115の処理でその計測環境データを読み込んでステレオ計測処理を行うように制御し、ステレオ計測が完了すると、その計測結果の表示、あるいは再度の計測に備えて装置10を待機状態にする。
【0091】
また、ステップS114の判断処理で同じ計測環境のものがない場合には、ステップS117の判断処理でこの画像ファイルのヘッダに校正データが付いているか否かの判断を行う。ステップS117の判断処理で画像に校正データが付いている場合は、ステップS118の判断処理で画像に付いている校正データが本装置10に搭載されている本計測に関するソフトウェアで対応しているか否かを判断し、対応している場合にはステッブS119の処理でこの校正データを使用して計測環境データを作成してステレオ計測処理を行うように制御する。
【0092】
一方、ステッブS117の判断処理で校正データが画像に付いていない場合や、ステップS118の判断処理で画像に付いている校正データが本ソフトウェアで対応していない場合や、ステップS113の判断処理でこの画像ファイルのヘッダに計測環境情報が付いていない場合は、ステレオ計測を行うことができないことを表示して、別の画像を選択するように装置10を待機状態にする。
【0093】
また、ステップS112判断処理で選択した画像がステレオ計測画像でない場合には、ステップS122の判断処理で比較計測用の画像か否かを判断し、比較計測用の画像の場合には画像に付いている光学アダプタの歪み補正情報を読み込んで比較計測を実行する。ステップS122の判断処理で比較計測用の画像でない場合には、ステレオ計測や比較計測を行うことができないことを表示して、別の画像を選択するように装置10を待機状態にする。
【0094】
さらに、ステップS111の判断処理で計測する画像がライブビデオ表示を静止させた画像である場合には、ステップS126の判断処理でステレオ計測フラッグが1(TRUE)である場合には図12のステップS104で示す画面で選択したステレオ計測アダプタの計測環境データを読み込んでステレオ計測を実行させる。
【0095】
ステップS126の判断処理でステレオ計測フラッグが1(TRUE)でなく、ステップS128の判断処理で比較計測フラッグが1である場合には先と同様に、図12のステップS104で示す画面で選択した通常光学アダプタの歪み情報を読み込んで比較計測を実行させる。
【0096】
ステップS128の判断処理で比較計測フラッグが1(TRUE)でない場合には、図12のステップS103に戻して、再度、計測実行に必要な設定の確認を行うように制御する。
【0097】
(効果)
本実施の形態では、ライブビデオ表示の場合にリモートコントローラの計測実行スイッチ51を押すだけで適切な計測プログラムが実行するだけでなく、既に記録されている画像で再計測を行う場合においても画像を選択してリモートコントローラの計測実行スイッチ51を押すだけで正しい計測に必要な情報を読み込んで適切な計測プログラムが実行することができる。つまり、記録された画像で再計測を行う場合に不整合な計測環境データや歪み補正情報で計測を行うことがなくなり、これによる計測ミスを防止することができる。
【0098】
第2の実施形態:
図15は本発明の第2の実施の形態に係るCPUによる特徴となる制御動作例を示すフローチャートである。
【0099】
第2の実施の形態は、第1の実施の形態とほとんど同じであるので、異なる点のみ説明し、同一の構成には同じ符号をつけ説明は省略する。
【0100】
(構成)
本実施の形態では、記録媒体に記録されている画像の中に計測環境情報や校正データが記録されていない場合でも、迅速に最適な計測を実行させるために、第一の実施の形態で実行されるプログラムに改良を施し、追加機能をもたせる。
【0101】
具体的には、記録されているステレオ計測画像を選択し、計測実行スイッチを押したとき、この画像ファイルのヘッダあるいは、画像ファイルとは別のファイルに計測環境情報が記録されていない場合や、この画像ファイルのヘッダあるいは、画像ファイルとは別のファイルに計測環境情報は記録されているが校正データは記録されていない場合において、既にコンパクトフラッシュ(R)メモリカードの中に記録されている計測環境データの中から適当なものをユーザが選択すると、その計測環境データを読み込んでステレオ計測が実行されるように制御する。
【0102】
さらに、既に登録されている計測環境データの中に適当なものがないとユーザが判断したときには、PCMCIAメモリカードの中の別の画像に記録されている校正データの中から適当なものをユーザが選択すると、この校正データを使用して計測環境データを作成してからステレオ計測が実行される。
【0103】
この校正データの選択操作においては、ステレオ計測の機能の中に、既に登録されている計測環境データの一部である校正データと計測環境情報だけを、画像や計測環境データを記録する記録媒体とは別のメモリカードに複製できる機能を設けてあるならば、このメモリカードを本装置10に装着し、このメモリカードの中に記録されている複数の校正データの中から適当なデータを選択するというようにさせてもよい。
【0104】
また、本機能はステレオ計測だけでなく、比較計測を行う場合でも容易に応用させることができる。
【0105】
(作用)
本実施の形態では、第1の実施の形態で示した図14のステップS113あるいはステップS117の判断処理でNGになった場合に図15で示す処理を動作させる。つまり、ステップS113の判断処理で画像ファイルにヘッダに計測環境情報が付いていない場合や、ステップS117の判断処理で画像ファイルにヘッダに校正データが付いていない場合に、ステップS201へ進む。
【0106】
ステップS201では、既に登録されている計測環境データを用いて計測を行うか、あるいは別の校正データを用いて計測環境の設定を行って計測を行うか、またはこの処理を終了させて別の画像で計測を行うかをユーザに判断させ、それに応じた処理を行う。
【0107】
ステップS201で計測環境データから選択するとした場合は、ステップS203に示すように既に登録されている計測環境データのリストを表示し、ユーザがこの中から適当なものを選択する。
【0108】
そして、ステップS205の判断処理で画像に計測環境情報が付いているか否かを判断し、ついている場合は、ステップS206の判断処理で画像に付いている計測環境情報の内容と選択した計測環境データの内容が一致しているか否かを比較する。一致していればステップS209に進み、一致していなければS207に示すようにエラーメッセージを表示してS201で再度正しい計測環境データまたは校正データを選択させるように待機状態にする。
【0109】
一方、S205の判断処理で画像に計測環境情報が付いていない場合には、選択したデータの内容を表示してユーザに再確認させた後でS209に進む。
【0110】
そして、ステップS209で選択した計測環境データを読み込んだ後、ステレオ計測を実行する。
【0111】
一方、ステップS201で別の校正データから選択するとした場合は、適当な校正データが記録されているメモリカードを装置10に装着させた後、ステップS212に示すようにその中にある校正データのリストを表示する。そして、ユーザがこの中から適当なものを選択した後、ステップS214の判断処理で選択した校正データが本ソフトウェアに対応しているか否かを判断し、対応している場合はS215へ進む。対応していなければ、S216に示すようにエラーメッセージを表示してS201で再度正しい計測環境データまたは校正データを選択させるように待機状態にする。
【0112】
そして、S215の判断処理で画像に計測環境情報が付いているか否かを判断し、画像に計測環境情報が付いている場合には、S217でその内容と選択した校正データの内容を比較し、これが一致していればステップ219へ進む。もし一致していなければ、S220に示すようにエラーメッセージを表示してS201で再度正しい計測環境データまたは校正データを選択させるように待機状態にする。
【0113】
また、S215で画像に計測環境情報が付いていない場合には、選択したデータの内容を表示してユーザに再確認させた後でS219に進む。
【0114】
そして、ステップS219で選択した選択した校正データから計測環境データを作成した後で、ステレオ計測を実行する。
【0115】
また、ステップS209またはS219が完了すると、ステレオ計測を実行する前に、ユーザの希望に応じてその画像ファイルのヘッダに計測環境情報および校正データを記録するようにしてもよい。
【0116】
(効果)
校正データの容量は数十Kbyte、計測環境情報は数Kbyteであることが多いので、一つの画像ファイルを小さくするために、計測環境情報だけを画像に記録するようにしておきたいこともある。
【0117】
また、画像ファイルとは別のファイルに計測環境情報や校正データが記録されていると、何らかの原因で画像に関連付けられて記録されていた計測環境情報や校正データのファイルが紛失したり削除されてしまったりすることも考えられる。
【0118】
従来ならこのような画像では再計測を行うことができないか、または実際に再計測を行うまでの計測環境の設定作業が煩雑であった。
【0119】
これに対して、本実施例では、既に登録されている計測環境データのリストや、別のメモリカードに記録されている校正データのリストからそれらを選択するだけで簡単に計測環境の設定が行え、迅速に再計測を行うことができる。
【0120】
さらに、リストから選択したデータが計測したい画像に適合しているかどうかの確認がおこなわれるので、不整合な状態で計測を行ってしまうケースを少なくする効果もある。
【0121】
第3の実施の形態:
図16は本発明の第3の実施の形態に係るCPUによる特徴となる制御動作例を示すフローチャートである。
【0122】
第3の実施の形態は、第1の実施の形態とほとんど同じであるので、異なる点のみ説明し、同一の構成には同じ符号をつけ説明は省略する。
【0123】
(構成)
本実施の形態は、画像に付いている校正データの中に含まれている光学アダプタの取付け具合における位置関係情報の内容と、既に登録されている計測環境データの中に含まれている位置関係情報の内容を比較して、その差があらかじめ定めた閏値よりも大きい場合は、画像に付いている校正データを使用して計測を行うにする処理を、第2の実施の形態で示した機能を含む第1の実施の形態の中に追加した構成である。
【0124】
(作用)
計測内視鏡装置10は、図示はしないがPCMCIAメモリカード22に記録されている複数の画像一覧の中から計測したいステレオ計測画像を選択し、リモートコントローラ13の計測実行スイッチ51が押されると、CPU26は選択した画像に対して図16に示すルーチンのプログラムを実行させる。
【0125】
図16の中のステップS111からS114は第1の実施の形態と同じである。
【0126】
ステップS114の判断処理でコンパクトフラッシュ(R)メモリカード23に記録されている計測環境データの中に画像に付いている計測環境情報と同じものがあるか否かを判断して、同じものがある場合にはステップS305の判断処理で、画像に付いている校正データの中に含まれている視野領域の位置情報と、登録されている計測環境データに含まれる視野領域の位置情報の差があらかじめ定めた閾値よりも小さいかどうかを判断する。
【0127】
ステップS305で閾値よりも小さい場合は、画像と一致する計測環境データを読み込んでステレオ計測処理を行うように制御し、ステレオ計測が完了すると、その計測結果の表示、あるいは再度の計測に備えて計測内視鏡装置10を待機状態にする。
【0128】
また、ステップS305の判断処理で閾値よりも大きい場合には、ステップS308の判断処理で画像に付いている校正データが本計測内視鏡装置10に搭載されている本計測に関するソフトウェアで対応しているか否かを判断し、対応している場合にはステップS309の処理でこの校正データを使用して計測環境データを作成してステレオ計測処理を行うように制御する。
【0129】
一方、ステップS308の判断処理で画像に付いている校正データが本ソフトウェアで対応していない場合は、ステレオ計測を行うことができないことを表示して、別の画像を選択するように計測内視鏡装置10を待機状態にする。
【0130】
(効果)
これにより、画像を撮影するときに使用した機器の種類を示した計測環境情報が一致していても、視野領域の位置を検査するために撮影する白い画像の写り具合が何らかの原因で変化し、これに伴って位置関係の情報も変化したのが原因で計測精度が低下する可能性のあるケースを低減するだけでなく、画像にあらかじめ付いている校正データを使用して自動的に計測環境の設定を行って計測できるようにしているので、安全性が高く、しかも迅速、簡便に計測を行う準備を整えることができる。
【0131】
ところで、ステレオ計測の計測環境の設定が完了し、静止画像または記録媒体に記録されているステレオ計測画像を前記計測環境データを使用して補正画像の作成を行うと、図17に示すようなステレオ計測用の画面が表示され、ユーザが計測点を指定するように待機状態になる。
【0132】
図17は、各種計測機能を実行するための各種メニューボタン55や、操作に関するメッセージなどを表示するメッセージ表示欄57、さらに計測を行った結果(数値)を表示する各種数値表示欄56が左右2つの視野領域をさけて元画像上に表示されている例を示している。
【0133】
また、光学アダプタの設計値によって2つの視野領域の中で計測可能な大きさとその位置があらかじめ定められているので、生産時に作成された光学データを実際に使用する内視鏡との取付け具合に応じてそれを補正することで、実際に計測できる大きさとその位置を定めることができる。
【0134】
ステレオ計測では、左右の視野領域に同時に被計測物が写っていないとそれを計測することができないので、計測可能な視野領域内で点を指定して計測を行うことが必要になる。
【0135】
したがって以下の機能をつけることで計測できる範囲か否かを簡単にユーザに認識させることができるとともに、範囲外に点を指定することによる計測ミスを防ぐ効果が得られる。
【0136】
・前記で定まった計測可能な視野領域58の枠を、図17に示すように計測画像上に表示する。
【0137】
・図示はしないが計測エリア内に点を指定するときは、リモートコントロールのレバースイッチによって画面上のカーソルを上下左右に移動させるので、このカーソルの位置が視野領域58内か外かでカーソル形状を変更する。
【0138】
例えば、視野領域58内のときは十字形状にし、視野領域58外のときは矢印形状にする。
【0139】
・点を指定するときは、視野領域58内でのみ動作できるように制御する。
【0140】
・視野領域58外で点を指定しようとした場合には、注意メッセージを表示させるようにしてもよい。
【0141】
・図18に示すように、画像上から計測可能な視野領域58を切り取り、計測専用の画面にこれを貼り付けて表示する。
【0142】
計測可能な視野領域58の大きさとその位置は、計測環境の設定を行うと求めることができるので、図9で光学アダプタの設定でステレオ計測アダプタを選択した後でライブビデオ画像を表示するときは、この枠を表示させるように制御すると、ステレオ計測画像を撮影するときに被計測物が左右同時に正しく撮影できているかを確認するための指標とすることができるようにもなる。
【0143】
以上の各実施の形態で説明した本発明では、既に記録されている画像に対して再計測を行う場合において、計測用の画像ではない画像で計測を実行することを防止することができるとともに、装置内の現在の設定状態に関係なく、また、ユーザは光学アダプタの機器の種類などを気にすることなく、簡単な操作で正しい光学アダプタに対応した計測を実行させることが可能となり、再計測時における操作性を向上させ、検査効率を向上させることが可能となる。
【0144】
また、上記の効果を得るために必要な記録媒体の容量は大きなものを必要としないので、安価な記録媒体を使用して実現することができる。
【0145】
さらに、画像を実際に撮影した装置上で再計測を行う必然性がないので、画像が記録されている記録媒体を別の装置に装着して同様の簡単な操作によって、別の装置上でも再計測を行うことが可能となる。
【0146】
これにより、とても使い勝手が向上し、しかも高性能な計測を実行できる計測内視鏡を比較的安価なシステムで提供することができる。
【0147】
すなわち、本発明によれば、計測環境情報と校正データを計測画像と共に記録する手段と、既に記録されている計測画像を選択して計測処理を実行させることができる手段と、計測画像に記録されている校正データを使用して自動的に計測環境の設定を行う手段を設けたことによって、既に記録されている計測画像を選択して計測実行スイッチを押すだけで、計測画像に付いている計測環境情報や校正データから自動的に計測環境の設定が行われ、直ちに計測処理を実行することが可能となる。
【0148】
また、計測画像に記録されている計測環境情報を参照して装置の中に既に管理されているデータ群の中から同じものを検索する手段と、前記検索結果のデータを使用して自動的に計測環境の設定を変更する手段を設けたことによって、既に記録されている計測画像を選択して計測実行スイッチを押した場合、選択した計測画像と同じ計測情報である計測環境データが装置の中に存在していれば、あらためて計測環境データの作成を行なうことなく既に存在する計測環境データを使用して計測処理を実行することができ、 計測の準備を行なう時間を短縮させることが可能となる。
【0149】
さらに、装置の中に記録されている計測画像を計測環境情報および校正データと共に脱着可能な記録媒体に複製する手段と、前記記録媒体に複製された画像を計測環境情報および校正データと共に装置の中に取り込む手段を設けたことによって、計測したい画像を別の個体の計測内視鏡装置上でも再計測を行なうことができるだけでなく、上記と同様の作用も得ることが可能となる。
【0150】
また、画像を記録する媒体の容量などに理由により、校正データが計測画像と共に記録媒体に記録されていなかったとしても、この画像を選択して再計測を行なう場合には、画像ともに記録されている計測環境情報を参照することによってこれと同じ計測環境データが装置の中に存在するかどうかを検索することができ、もし存在していればそれを使用して再計測を直ちに行なうことが可能となる。
【0151】
さらに、なんらかの理由で計測画像に計測環境情報や校正データが記録されていなかったとしても、それを告知する手段を設けているので、計測者は選択した画像の計測環境が記録されているかどうかを意識することなく計測作業を行なうことができ、またこの場合には既に装置の中に存在している計測環境データを表示させて、この中から適当なものを選択すると計測を行なうことが可能となる。
【0152】
【発明の効果】
以上説明したように本発明によれば、記録されている計測画像で再計測を行なう場合に、誤った計測環境で計測を行なってしまうことを防止することができるとともに、簡単な操作で正しい計測環境で再計測ができるようにすることによって、計測環境を意識しなくてもすぐに再計測が行え、その時の操作性を向上させることができるという効果がある。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係る計測内視鏡装置のシステム構成を示す斜視図
【図2】図1の計測内視鏡装置の電気的回路構成を示すブロック図
【図3】図1のリモートコントローラの構成を示す斜視図
【図4】ステレオ計測アダプタを付けた図1の内視鏡挿入部の内視鏡先端部の構成を示す斜視図
【図5】図4のA−A線断面図
【図6】図4のステレオ計測アダプタを付けた内視鏡画像を示す図
【図7】図4のステレオ計測アダプタのマスク形状の画像を示す図
【図8】図1の計測内視鏡装置での計測環境の設定を説明するための元画像と補正画像の関係を示す図
【図9】図1のLCDに表示された光学アダプタの選択画面の一例を示す図
【図10】通常光学アダプタを付けた図1の内視鏡挿入部の内視鏡先端部の構成を示す斜視図
【図11】図10のA−A線断面図
【図12】図10の通常光学アダプタを付けた内視鏡画像を示す図
【図13】図2のCPUによる特徴となる制御動作例を示す第1のフローチャート
【図14】図2のCPUによる特徴となる制御動作例を示す第2のフローチャート
【図15】本発明の第2の実施の形態に係るCPUによる特徴となる制御動作例を示すフローチャート
【図16】本発明の第3の実施の形態に係るCPUによる特徴となる制御動作例を示すフローチャート
【図17】計測可能な視野領域の枠が被写体像に重ねて表示されている計測画面の一例を示す図
【図18】計測可能な左右の視野領域が切り出されて表示されている計測画面の一例を示す図
【符号の説明】
10…計測内視鏡装置
11…内視鏡挿入部
12…コントロールユニット
13…リモートコントローラ
14…液晶モニタ(LCD)
17…フェイスマントデイスプレイ(FMD)
18…FMDアダプタ
19…スピーカ
20…マイク
21…パーソナルコンピュータ
22…PCMCIAメモリーカード
23…コンパクトフラッシュ(R)メモリーカード
24…内視鏡ユニット
25…カメラコントロールユニット(CCU)
26…CPU(制御部)
27…ROM
28…RAM
29…RS−232CI/F
30…PCカードI/F
31…USBI/F
32…音声信号処理回路
33…映像信号処理回路
34,35,40…対物レンズ系
36,41…照明レンズ
37…ステレオ光学アダプタ
38…固定リング
39…内視鏡先端部
42…通常光学アダプタ
43…撮像素子
44…クラック
45…L1(既知の寸法)
46…L2(未知の寸法)
47…ジョイスティック
48…レバースイッチ
49…フリーズスイッチ
50…ストアースイッチ
51…計測実行スイッチ
53…雌ねじ
54…雄ねじ
55…各種メニューボタン
56…各種数値表示欄
57…メッセージ表示欄
58…計測可能な視野領域
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a measurement endoscope apparatus in which a plurality of stereo measurement optical adapters necessary for imaging and measuring a test object (object) can be attached to and detached from the endoscope body. When recording an image that has been subjected to measurement, information necessary for measurement environment setting processing (calibration data) for correcting misalignment errors between the optical adapter and the endoscope body and optical characteristics of the optical adapter itself. ) Is also recorded in association with the image, and when performing measurement again with such an image later, by reading out calibration data for calibration associated with the image and applying it to the subject image, The present invention relates to a measurement endoscope apparatus that can easily perform re-measurement.
[0002]
[Prior art]
In general, in order to examine a test object in more detail with an endoscope, it is necessary to measure the test object, and in order to satisfy such a requirement, a conventional test using an endoscope is required. Various proposals for measuring means capable of measuring a specimen are disclosed.
[0003]
For example, in the proposal described in Japanese Patent Laid-Open No. 10-248806, a measurement endoscope apparatus using stereo measurement is shown. In addition, in the proposal described in Japanese Patent Application No. 2000-101122 filed earlier by the present applicant, a measurement endoscope that automatically selects and executes a different measurement method depending on the type of the optical adapter. A mirror device is shown.
[0004]
In the measurement endoscope apparatus described in the former Japanese Patent Laid-Open No. 10-248806, an optical adapter having two optical systems necessary for imaging and measuring a test object can be attached to and detached from the endoscope body. The image data of the two lens systems in the optical adapter is formed on one image sensor, and measurement is performed by image processing using at least the obtained endoscopic image. Optical data of the optical adapter Processing for reading information from a recording medium on which recording is performed, processing for correcting optical data based on the position error of the imaging system of the endoscope main body, processing for converting the coordinates of an image measured based on the corrected optical data, And a measurement processing means for performing processing for obtaining three-dimensional coordinates of an arbitrary point by matching two images based on the two images that have undergone coordinate conversion.
In the measurement endoscope apparatus having the above configuration, two images are obtained on the basis of two pieces of image information obtained by coordinate conversion of two images of a test object (subject) captured by the image sensor via the optical adapter. The three-dimensional coordinates of an arbitrary point on the test object are obtained by the matching of This makes it possible to realize a measurement endoscope apparatus that is inexpensive and has excellent measurement accuracy.
[0005]
On the other hand, the measurement endoscope apparatus described in the latter Japanese Patent Application No. 2000-101122 has a plurality of connecting portions provided at the distal end portion of the endoscope and a plurality of subject images that can be attached to and detached from the connecting portions. In a measurement endoscope apparatus that connects one type of optical adapter and one of the optical adapters and measures an image signal of the image sensor by image processing, display data associated with the plurality of optical adapters in advance The menu display process for performing the selection operation and the measurement processing means for performing the measurement process based on the selection result of the menu display process are provided.
[0006]
In the measurement endoscope apparatus configured as described above, when an optical adapter is selected on the menu, a measurement method corresponding to the optical adapter is automatically selected. It is possible to execute measurement processing corresponding to the selected measurement method only by pressing the measurement execution switch.
[0007]
In addition, the result of performing the calibration process for each of the plurality of optical adapters in the embodiment described in the above publication is stored as measurement environment data in a compact flash (R) memory card, which is an external storage medium. A configuration in which the measurement environment data suitable for the corresponding optical adapter is used by selecting an appropriate optical adapter is disclosed.
[0008]
[Problems to be solved by the invention]
Usually, a measurement image is a video endoscope body, a measurement optical adapter having an objective lens, a camera control unit (CCU) for converting a signal output from the video endoscope into a TV signal, and a TV signal as a digital signal. Depending on the type of recording device or the individual used for converting to and recording, the characteristics of the image appearance change. Therefore, the measurement endoscope apparatus cannot be measured correctly unless various corrections are made so that the setting of the measurement endoscope apparatus is suitable for the combination of the apparatuses when the measurement image is taken. That is, the measurement environment must be set.
[0009]
In addition, recently, as the types of endoscope main bodies, optical adapters, and CCUs have increased to suit various measurement applications, measurements recorded with various device combinations (measurement environments). Opportunities to re-measure with images are increasing.
[0010]
However, in the conventional apparatus, since there was no means to record in what measurement environment each measurement image was taken in what kind of measurement environment, when trying to remeasure with the same image after a while, The operator may have forgotten the measurement environment at the time of shooting, and may not be able to reset the measurement environment, or may be connected to the wrong device and set the measurement environment for remeasurement. was there.
[0011]
Moreover, since the measurement environment data set in the conventional apparatus is limited to a certain measurement environment, an image that is not suitable for the measurement environment data existing in the measurement endoscope apparatus, for example, an optical adapter If you try to remeasure with different types of measurement images, you must first connect all the devices to this device and set the measurement environment manually again before actually remeasurement. It was. For this reason, the re-measurement work is very complicated and troublesome.
[0012]
Further, in the apparatus shown in Japanese Patent Application No. 2000-101122, a function of recording a photographed image on a removable recording medium such as a floppy (R) disk, or an image recorded on the recording medium is measured by another individual. Even if there is a function that can be taken into the endoscope device, even if it is intended to re-measure on a different individual device than the measurement endoscope device that actually captured the image, the measurement It was necessary to set the endoscope, optical adapter, and CCU that were actually used when the image was taken so that they can be actually connected to the measurement endoscope apparatus to be used for measurement.
[0013]
The present invention has been made in view of the above circumstances, and when performing remeasurement with a recorded measurement image, it is possible to prevent measurement from being performed in an incorrect measurement environment, and to be simple. To provide a measurement endoscope device that can perform re-measurement immediately without being aware of the measurement environment and improve the operability at that time by enabling re-measurement in the correct measurement environment by operation It is an object.
[0014]
[Means for Solving the Problems]
  The measurement endoscope apparatus according to the present invention includes stereo image data including two images having parallax, and calibration data indicating optical characteristics of a stereo measurement adapter that is interposed when the stereo image data is captured. Get the image file you havePossible image acquisitionMeans, display means for displaying the stereo image data, and input means for inputting operation instructions;From the image file, the stereo image data and the calibration data areControl means to refer to, the control means,A determination unit configured to determine whether or not calibration data is added to the image file acquired by the image acquisition unit, wherein the determination unit adds the calibration data to the image file acquired by the image acquisition unit; When it is determined that the calibration data is added to the image file determined to be added by the determination unit from the image file acquired by the image acquisition unit, the determination unit, When it is determined that no calibration data is added to the image file acquired by the image acquisition unit, the input unit stores the calibration data recorded in the storage unit in which at least one arbitrary calibration data is recorded. Read by reading from the storage meansBased on the calibration data,The image file acquired by the image acquisition means hasCorrecting geometric distortion included in the stereo image data to generate corrected stereo image data, performing a matching process between the two images included in the corrected stereo image data, and the result of the matching process and theRead outBased on the calibration data, three-dimensional coordinates at an arbitrary measurement point of the corrected stereo image data are obtained, and the subject is measured using the three-dimensional coordinates.
  In addition, the measurement endoscope apparatus of the present invention includes stereo image data including two images having parallax, and calibration data indicating optical characteristics of the stereo measurement adapter that is interposed when the stereo image data is captured. Image acquisition means capable of acquiring an image file having measurement environment information indicating the type of calibration data, display means for displaying the stereo image data, input means for inputting operation instructions, and the image file Control means for referring to the stereo image data and the calibration data, and the control means comprises determination means for determining whether or not calibration data is added to the image file acquired by the image acquisition means. And when the determination means determines that the calibration data is added to the image file acquired by the image acquisition means, The calibration data added to the image file determined to have the calibration data added by the determination unit is read from the image file acquired by the image acquisition unit, and the determination unit is acquired by the image acquisition unit. When it is determined that calibration data is not added to the image file, the calibration data corresponding to the measurement environment information is stored in the storage means in which at least one arbitrary calibration data is recorded with reference to the measurement environment information. Is read, when it is determined that calibration data corresponding to the measurement environment information is recorded in the storage means, the calibration data corresponding to the measurement environment information is read from the storage means, The stereo included in the image file acquired by the image acquisition unit based on the read calibration data Corrected geometric distortion included in the image data is generated to generate corrected stereo image data, matching processing between the two images included in the corrected stereo image data is performed, and the result of the matching processing and the read-out Based on the calibration data, three-dimensional coordinates at an arbitrary measurement point of the corrected stereo image data are obtained, and the subject is measured using the three-dimensional coordinates.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
[0016]
First embodiment:
1 to 14 relate to a first embodiment of the present invention, FIG. 1 is a perspective view showing a system configuration of a measurement endoscope apparatus, and FIG. 2 is an electric circuit configuration of the measurement endoscope apparatus of FIG. FIG. 3 is a perspective view showing the configuration of the remote controller in FIG. 1, FIG. 4 is a perspective view showing the configuration of the endoscope tip portion of the endoscope insertion portion in FIG. 5 is a cross-sectional view taken along line AA in FIG. 4, FIG. 6 is a diagram showing an endoscopic image with the stereo measurement adapter shown in FIG. 4, and FIG. 7 is a diagram showing an image of the mask shape of the stereo measurement adapter in FIG. 8 is a diagram showing the relationship between the original image and the corrected image for explaining the setting of the measurement environment in the measurement endoscope apparatus of FIG. 1, and FIG. 9 is an optical adapter selection screen displayed on the LCD of FIG. FIG. 10 shows an example of the endoscope, and FIG. 10 shows an endoscope tip of the endoscope insertion portion of FIG. 11 is a cross-sectional view taken along line AA in FIG. 10, FIG. 12 is a diagram showing an endoscopic image with the normal optical adapter in FIG. 10, and FIG. 13 is a feature of the CPU in FIG. FIG. 14 is a second flowchart showing an example of the control operation performed by the CPU of FIG.
[0017]
(Constitution)
The system configuration of the measurement endoscope apparatus 10 according to the present embodiment will be described. As shown in FIG. 1, the measurement endoscope apparatus 10 incorporates an imaging element and a plurality of stereo measurement optical adapters and a normal measurement use. An endoscope insertion unit 11 configured to be detachably mountable with an optical adapter, a control unit 12 that houses the endoscope insertion unit 11, and various operation controls of the entire system of the measurement endoscope apparatus 10 are executed. A remote controller 13 for performing necessary operations, a liquid crystal monitor (hereinafter referred to as LCD) 14 for displaying an endoscopic image or operation control content (for example, a processing menu), and a normal endoscopic image, or A face mount display (hereinafter referred to as FMD) 17 capable of stereoscopically viewing the endoscopic image as a pseudo stereo image, and an FMD display for supplying image data to the FMD 17. It is configured to include a descriptor 18.
[0018]
Further, the system configuration of the apparatus will be described in detail with reference to FIG. As shown in FIG. 2, the endoscope insertion portion 11 is connected to an endoscope unit 24, and this endoscope unit 24 is mounted in the control unit 12, for example, as shown in FIG. Although not shown, the endoscope unit 24 includes a light source device for obtaining illumination light necessary for imaging, and an electric bending device for bending the endoscope insertion portion 11 electrically freely. It is configured.
[0019]
An imaging signal from the solid-state imaging device 43 (see FIG. 5) at the distal end of the endoscope insertion portion is input to a camera control unit (hereinafter referred to as CCU) 25. The CCU 25 converts the supplied imaging signal into a video signal such as an NTSC signal and supplies it to a main processing circuit group in the control unit 12.
[0020]
The main circuit group mounted in the control unit 12 includes, for example, as shown in FIG. 2, a CPU 26, a ROM 27, a RAM 28, a PC card interface (hereinafter, referred to as a CPU card) that controls various functions based on the main program. PC card I / F) 30, USB interface (hereinafter referred to as USB I / F) 31, RS-232C interface (hereinafter referred to as RS-232CI / F) 29, audio signal processing circuit 32 and video signal processing circuit 33.
[0021]
The RS-232CI / F 29 is connected to the CCU 25, the endoscope unit 24, and the remote controller 13, respectively, and controls the operation of the CCU 25, the endoscope unit 24 and the operation based on the operation by the remote controller 13 that gives an operation instruction. It is for performing communication necessary for each.
[0022]
The USB I / F 21 is an interface for electrically connecting the control unit 12 and the personal computer 21. When the USB I / F 21 is connected via the USB I / F 21, the personal computer 21 side also includes an internal unit in the control unit 12. It is possible to perform various instruction control such as an instruction to display an endoscopic image and image processing at the time of measurement, and input of control information and data necessary for various processes between the control unit 12 and the personal computer 21. Output can be performed.
[0023]
The PC card I / F 30 is configured such that a PCMCIA memory card 22 and a compact flash (R) memory card 23 are detachably connected. That is, when any one of the above memory cards is inserted, the control processing by the CPU 26 reproduces data such as control processing information and image information stored in the memory card as a recording medium, and the PC card I / F 30 Or data such as control processing information or image information can be supplied to the memory card via the PC card I / F 30 and recorded.
[0024]
The video signal processing circuit 33 displays the video signal from the CCU 25 and the operation menu generated by the control of the CPU 26 so as to display a composite image obtained by synthesizing the endoscopic image supplied from the CCU 25 and the graphic operation menu. By combining the display signal based on the display signal and performing processing necessary for display on the screen of the LCD 14 and supplying it to the LCD 14, a composite image of the endoscopic image and the operation menu is displayed on the LCD 14. In the video signal processing circuit 33, it is also possible to simply perform processing for displaying an endoscopic image or an image such as an operation menu alone.
[0025]
The audio signal processing circuit 32 is supplied with an audio signal that is generated by being collected by the microphone 20 and recorded on a recording medium such as a memory card, or an audio signal obtained by reproducing the recording medium such as a memory card. Processing (amplification processing or the like) necessary for reproducing the audio signal is performed and output to the speaker 19. Thereby, an audio signal is reproduced by the speaker 19.
[0026]
The CPU 26 executes a program stored in the ROM 27 and controls various circuit units so as to perform processing according to the purpose, thereby controlling the operation of the entire system.
[0027]
Next, the configuration of the remote controller 13 and an example of the program operation control of the CPU 26 based on the operation will be described with reference to FIG.
[0028]
The remote controller 13 used in the measurement endoscope apparatus 10 of the present embodiment has been improved to further improve operability during use such as measurement.
[0029]
As shown in FIG. 3, the remote controller 13 includes a joystick 47, a lever switch 48, a freeze switch 49, a store switch 50, and a measurement execution switch 51 on at least the upper surface. In other words, the remote controller 13 is easy to operate for the user. Is adopted.
In the remote controller 13 having the above-described configuration, the joystick 47 is a switch for performing a bending operation of the endoscope distal end portion, and can give an operation instruction freely in any direction of 360 degrees. The lever switch 48 is a switch for performing a pointer operation when performing various menu operations for graphic display and measurement, and is configured in substantially the same shape as the joystick switch 47. The freeze switch 49 is a switch used when displaying the endoscope moving image displayed on the LCD 14 as a still image. The store switch 50 is a switch used to record the still image on the PCMCIA memory card 22 (see FIG. 2) when the still image is displayed by pressing the freeze switch 49. The measurement execution switch 51 is a switch used when executing measurement software.
[0030]
The freeze switch 49, the store switch 50, and the measurement execution switch 51 are configured to employ, for example, an on / off pressing type. Further, functions other than those described above can be assigned to the lever switch 48.
[0031]
For example, these functions may be assigned to the lever switch 48 so that the zoom up function of the image can be executed when the lever switch 48 is tilted to the right and the zoom DOWN function can be executed when the lever is tilted to the left. Also, normally, when measurement is performed with a zoom image, measurement cannot be performed correctly because the magnification of the image changes. In such a case, when the measurement execution switch 51 is pressed, the CPU 26 receives this operation signal, cancels the instantaneous zoom function, and controls to execute the measurement after the image is frozen. As another method, control may be performed so that the image can be measured as it is in consideration of the zoom magnification.
[0032]
Next, the configuration of the stereo measurement adapter used in the measurement endoscope apparatus 10 of the present embodiment will be described with reference to FIGS.
[0033]
4 and 5 show a state in which the stereo measurement adapter 37 is attached to the endoscope front end 39. The stereo measurement adapter 37 is connected to the male screw 54 of the endoscope front end 39 by the female screw 53 of the fixing ring 38. It is fixed by screwing.
[0034]
In addition, a pair of illumination lenses 36, two objective lenses 34, and an objective lens 35 are provided at the tip of the stereo measurement adapter 37. The two objective lenses 34 and 35 form two images on the image sensor 43 provided in the endoscope distal end portion 39. The obtained imaging signal is supplied to the CCU 25 through the electrically connected signal line 43a and the endoscope unit 24, converted into a video signal by the CCU 25, and then supplied to the video signal processing circuit 33. As a result, for example, an image as shown in FIG. 6 is displayed on the LCD 14.
[0035]
The measurement endoscope 10 according to the present embodiment, when performing stereo measurement, uses an endoscope image obtained by photographing a white subject as shown in FIG. 7, and further records, for example, optical data of the stereo measurement adapter 37. A stereo measurement process is performed on an object to be measured based on optical data fetched from (for example, a compact flash (R) memory card).
[0036]
Here, in the present measurement endoscope apparatus 10, it is necessary to set the measurement environment and prepare for measurement before actually performing stereo measurement. Next, the setting of the measurement environment will be described.
[0037]
As shown in Japanese Patent Laid-Open No. 10-248806, the stereo measurement adapter has the same type but different optical characteristics depending on the individual, so that optical data is measured in the production process. This optical data includes the following information.
[0038]
a) Geometric distortion correction formula for two optical systems
b) Focal length of the two lens systems
c) The distance between the optical axes of the two lenses and the position coordinates of these optical axes
d) Position information on the degree of attachment in the combination of the endoscope used for data measurement and this optical adapter
The positional information of d) above refers to two visual field regions from an endoscopic image obtained by photographing a white subject (white paper or the like) as shown in FIG. 7 by a combination of the endoscope used for data measurement and this optical adapter. It is the information of the position coordinate and the tilt angle.
[0039]
The stereo measurement adapter after taking the optical data is attached to the endoscope insertion portion, and the endoscope apparatus 10 performs the following processing to set the measurement environment.
[0040]
1) A recording medium on which optical data of the stereo measurement adapter is recorded is mounted on the measurement endoscope apparatus, and this data is read.
[0041]
2) Attach the optical adapter to the endoscope insertion section 11 that is actually used, take a picture of a white subject as shown in FIG. 7, and obtain position information on the degree of attachment. The position information obtained here has the same contents as the position information included in the optical data.
[0042]
3) Compare the position information in the optical data with the position information obtained in 2) above, and actually use the information a) and c) of the optical data recorded on the recording medium. Correct the data suitable for the endoscope. Specifically, rotation correction relating to each coordinate is performed.
[0043]
4) The characteristics of the CCU and the video capture circuit used at the time of data measurement in the production process are different from the characteristics of the measurement endoscope apparatus actually used in the measurement, and the image enlargement ratio may vary depending on the type of the apparatus. In this case, the difference between these characteristics is verified in advance, and the optical data recorded on the recording medium is corrected so as to match the enlargement ratio.
[0044]
5) The corrected optical data obtained by the above processing is used as calibration data used for setting the measurement environment.
[0045]
6) A conversion table for performing geometric distortion correction for the endoscope apparatus is created using the calibration data.
[0046]
7) Create an inverse conversion table for obtaining coordinates on the original image before correction relative to coordinates on the corrected image.
[0047]
8) The calibration data shown in 5) above, the conversion table obtained in 6) above, the inverse conversion table obtained in 7) above, and the measurement environment information indicating the type of equipment are combined into measurement environment data as measurement environment data. For storage, for example, it is recorded on the compact flash card 23.
[0048]
The above is the process related to the setting of the measurement environment.
[0049]
Next, the rotation correction shown in the above 3) will be described using equations.
[0050]
Assume that the geometric distortion correction formula before rotation correction is the following relational formula.
[0051]
x '= fx (x, y), y' = fy (x, y) (1)
(X ′, y ′): coordinates after geometric distortion correction
(X, y): Arbitrary coordinates on the image before geometric distortion correction (coordinates on the original image)
fx (x, y): a function for converting coordinates (x, y) on the original image before correction into x coordinates after correction
fy (x, y): a function for converting coordinates (x, y) on the original image before correction into y coordinates after correction
When the positional information in the optical data before correction and the positional information regarding the endoscope actually used are compared, if a rotation matrix indicating the difference is represented by A, the geometric distortion after correction The correction formula is as follows.
[0052]
(X ″, y ″) = A · (x ′, y ′) plus (a, b) (2)
(X ″, y ″): coordinates after geometric distortion correction including rotation correction (coordinates on the corrected image)
(X ′, y ′): coordinates after geometric distortion correction
(A, b): Amount of displacement in the x and y directions
Further, when formula (1) is substituted into formula (2) and the determinant is expanded, it can be expressed as follows. This relationship is shown in FIG.
[0053]
x ″ = fx ′ (x, y), y ″ = fy ′ (x, y) (3)
(X ″, y ″): coordinates after geometric distortion correction including rotation correction (coordinates on the corrected image)
(X, y): Arbitrary coordinates on the image before geometric distortion correction and rotation correction (coordinates on the original image)
fx '(x, y): a function for obtaining the x coordinate on the corrected image by performing geometric distortion correction and rotation correction on the coordinate (x, y) on the original image
fy '(x, y): a function for obtaining the y coordinate on the corrected image by performing geometric distortion correction and rotation correction on the coordinate (x, y) on the original image
The positional coordinates of the optical axis can also be expressed by the same relational expression as described above using the rotation matrix A and the positional deviation amount (a, b).
[0054]
In order to obtain the reverse conversion table obtained in the above 7), the reverse conversion table is created simultaneously with the creation of the conversion table.
[0055]
That is, when the coordinates on the original image are converted into the coordinates on the corrected image using the expression (3), (x ″, y ″ in the inverse conversion table corresponding one-to-one to the coordinates on the corrected image. ) The coordinates (x, y) on the original image are stored in a location corresponding to the coordinates of).
[0056]
Here, since the coordinates converted by the equation (3) are usually obtained as real numbers, it is necessary to convert them into integers so that these values match the inverse conversion table.
[0057]
In addition, since the coordinates on the original image are converted to the coordinates on the corrected image using the conversion formula, there are places where the values on the original image do not directly enter the inverse conversion table. Are interpolated at neighboring points so that appropriate coordinates on the original image can be entered at all locations in the inverse conversion table.
[0058]
In addition, when the inverse transformation formula with respect to the transformation formula (1) is determined in advance, or when the inverse transformation formula is obtained from the transformation formula (1) by the formula transformation, the direct transformation table is directly converted using the inverse transformation formula. You may ask for it.
[0059]
The inverse matrix of the rotation matrix used in equation (2) is A-1Then, the equation to return the coordinates on the corrected image to the coordinates before the position deviation correction is
(X ', y') = A-1(X ", y") (a, b) (4)
(X ′, y ′): coordinates before misregistration correction in which only geometric distortion is corrected
(X ″, y ″): coordinates after geometric distortion correction including rotation correction (coordinates on the corrected image)
(A, b): Amount of displacement in the x and y directions
Therefore, if the inverse transformation formula in the geometric distortion correction when the optical characteristic is measured is defined as the functions gx and gy, the following relational expression is established.
[0060]
x = gx (x ′, y ′), y = gy (x ′, y ′) (5)
(X, y): coordinates before geometric distortion correction (coordinates on the original image)
(X ′, y ′): coordinates before misregistration correction in which only geometric distortion is corrected
gx (x ′, y ′): Inverse transformation function for obtaining x-coordinate before correction in geometric distortion correction
gy (x ', y'): Inverse transformation function for obtaining y-coordinate before correction in geometric distortion correction
When the determinant of Expression (4) is expanded and substituted into Expression (5), the conversion expression from the coordinates on the corrected image to the original image can be expressed as follows. This relationship is shown in FIG.
[0061]
x = gx ′ (x ″, y ″), y = gy ′ (x ″, y ″) (6)
(X, y): Arbitrary coordinates on the image before geometric distortion correction and rotation correction (coordinates on the original image)
(X ″, y ″): coordinates after geometric distortion correction including rotation correction (coordinates on the corrected image)
gx ′ (x, y): a function for obtaining the coordinate (x ″, y ″) on the corrected image to obtain the x coordinate on the original image before geometric distortion correction and rotation correction
gy '(x, y): a function for obtaining coordinates (x ", y") on the corrected image to obtain y coordinates on the original image before geometric distortion correction and rotation correction
The measurement environment information shown in 8) is information indicating the type of measurement environment data (that is, calibration data and conversion table), and therefore includes the following information, for example.
[0062]
・ Stereo measurement adapter type and individual identification number
・ Type of endoscope insertion part and individual identification number
・ TV type such as NTSC
・ CCU type
・ Video capture circuit types
Since the type of CCU and the type of video capture circuit are often equipped as one module of the measurement endoscope apparatus, in this case, these may be read as the type of measurement endoscope apparatus.
[0063]
Once the measurement environment is set as described above, the measurement object can be photographed and measured.
[0064]
Therefore, the stereo measurement by the measurement endoscope apparatus 10 includes the first process of reading optical information from a recording medium (for example, a compact flash (R) memory card) in which the optical data of the stereo measurement adapter 37 is recorded, and the endoscope. Position error from the second process for obtaining the position information of the image sensor 43 and the stereo measurement adapter 37 at the distal end portion 39, and the position information and the position information of the main endoscope and the stereo measurement adapter 37 obtained at the time of production. A third process for correcting optical data from the positional error, a fifth process for creating a conversion table for correcting geometric distortion included in the captured image, and measurement A sixth process for generating a corrected image by performing coordinate conversion on the image taken for conversion using a conversion table, and a map of two left and right images at an arbitrary point based on the corrected image. A seventh process for performing the chinching, an eighth process for obtaining the three-dimensional coordinates from the two left and right coordinates obtained by matching, the position coordinates of the optical axis and the focal length, and two points from the arbitrary three-dimensional coordinates This is performed by executing a ninth process for obtaining a measured value such as an inter-distance or area.
[0065]
For example, the CPU 26 executes the first to fifth processes on the stereo measurement adapter 37 once, and controls the result to be recorded on the compact flash (R) memory card 23 as measurement environment data. Subsequent to this, when performing stereo measurement, the CPU 26 loads the measurement environment data previously recorded on the compact flash (R) memory card 23 onto the RAM and performs the processes of the sixth to ninth. Control to run. Since an image is recorded on a removable memory card, the same type of memory card on which an image is recorded using another individual's measurement endoscope device is attached to this device, so that it can be recorded on the other device. There is an effect that the obtained image can be easily browsed on another apparatus.
[0066]
The brightness of the white image shown in FIG. 7 taken when performing the second process is determined by the gain of the CCU 25 and the shutter speed. Normally, control is performed so that the dyne of the CCU 25 and the shutter speed of the image sensor 43 are automatically optimized. However, when capturing the white image, the gain of the CCU 25 is low and the shutter speed of the image sensor 43 is set high. As a result, the image becomes dark and the mask shape of the optical adapter (in other words, the field of view) cannot be clearly captured, which adversely affects measurement accuracy.
[0067]
Therefore, in the present embodiment, the control is performed by the CPU 26 so that the gain of the CCU 25 and the shutter speed are fixed. As a result, the mask shape that is clearly and clearly reflected can be bare, and the measurement accuracy does not deteriorate.
[0068]
The measurement environment data includes calibration data after position correction, a conversion table, an inverse conversion table, and measurement environment information. This measurement environment data is controlled so as to be recorded on a removable compact flash (R) memory card 23.
[0069]
Further, in the present embodiment, the image is recorded on the PCMCIA memory card 22 under the control of the CPU 26 and is recorded on a memory card different from the compact flash (R) memory card 23 that records the measurement environment data. To control. Note that when recording an image, the measurement environment information of the measurement environment data is simultaneously recorded as a part of the image file or as another file associated with the image file. The calibration data is also recorded as part of the image file or as another file associated with the image file.
[0070]
When performing a stereo measurement by selecting a recorded image from the list, it is searched whether there is an existing measurement environment data having the same measurement environment as the selected image.
[0071]
If the same item is registered, the measurement environment data is read, the setting of the measurement endoscope apparatus is changed, and the sixth process is performed to make the measurement possible. If the same data is not registered, measurement environment data is created using the calibration data attached to the image, and the sixth process is performed to enable measurement. In some cases, it is convenient to register the created measurement environment data in the measurement endoscope device. If you do not register, the wrong optical adapter can be selected on the optical adapter selection screen shown in FIG. Since there is an effect to prevent it, either one may be selected according to the configuration of the measurement endoscope system.
[0072]
As described above, the measurement environment can be automatically set for any image in any measurement environment that is supported by the software installed in the measurement endoscope device. .
[0073]
The information recorded in the image may be not only calibration data and measurement environment information but also measurement environment data including a conversion table. In this case, the image is selected when the image is selected and measurement is performed. When the measurement environment data is directly read and the sixth process is performed, preparation for measurement is completed. However, if the measurement environment data is recorded together with the image, the capacity becomes large, which is not preferable. On the other hand, since measurement environment information and calibration data are often several tens of Kbytes, it is very effective in terms of image capacity to record only measurement environment information and calibration data in an image.
[0074]
When preparation for measurement is completed, for example, when measuring the length of the crack 44 in FIG. 6, the measurement point is designated so that the crack 44 is traced by a broken line on the left image. Each time a new measurement point is designated, the CPU 26 searches for the corresponding point on the right image, obtains a three-dimensional coordinate at each point from the coordinates of the measurement point and the corresponding point, and is adjacent to the three-dimensional coordinate. The distance between two matching points is calculated, and the total of them is calculated to display the length of the crack 44 on the LCD 14 as the total length.
[0075]
Next, the configuration of the normal optical adapter used in the measurement endoscope apparatus 10 of the present embodiment will be described with reference to FIGS.
[0076]
10 and 11 show a state in which the normal optical adapter 42 is attached to the endoscope distal end portion 39. The normal optical adapter 42 is connected to the male screw 54 of the endoscope distal end portion 39 by the female screw 53 of the fixing ring 38. It is fixed by screwing.
[0077]
In addition, a pair of illumination lens 41 and objective lens 40 are provided at the tip of the normal optical adapter 42. The objective lens 40 forms an image on the image sensor 43 provided in the endoscope front end 39. The obtained image pickup signal is supplied to the CCU 25 through the signal line 43a and the endoscope unit 24 that are electrically connected in the same manner as the stereo measurement adapter 37, and is converted into a video signal by the CCU 25 before the video. By being supplied to the signal processing circuit 33, as a result, for example, an image as shown in FIG.
[0078]
The measurement endoscope apparatus 10 according to the present embodiment normally performs a measurement using an optical adapter by using a method based on comparative measurement. In other words, the comparative measurement is a method of measuring with reference to the understood dimensions in the screen.
[0079]
For example, when the diameter of the circle shown in FIG. 12 is known, a pointer is placed at both ends of the diameter of the circle and a length L1 45 between the two points is input. The dimension L2 46 to be obtained is obtained as a ratio by the arithmetic processing by the CPU 26 from the size of the L1 screen. At this time, the distortion correction is performed based on the information of the distortion characteristic of the lens, and adjustment is performed so as to obtain the dimension more accurately. The distortion characteristics of the lens are recorded in advance on the ROM 27, and the CPU 26 performs comparative measurement by loading data corresponding to the selected normal optical adapter 42 onto the RAM 2.
[0080]
(Function)
Next, an example of a control operation that is a feature of the CPU 26 of the measurement endoscope apparatus 10 of the present embodiment will be described in detail with reference to FIGS. 13 and 14.
[0081]
Assume that the measurement endoscope apparatus 10 shown in FIG. 1 is turned on and used. Then, the CPU 26 executes the main program (see FIG. 13), and is in a standby state by a loop configured by the determination processing in steps S100, S101, S102, S103, and S109. Further, when the functions of steps S100, S101, and S102 are instructed, the process proceeds to each function, and when the function of S103 is instructed, the process proceeds to step S104.
[0082]
In the determination process in step S103, the setting of the optical adapter to be attached to the endoscope distal end 39 and the presence / absence of the optical adapter are determined. If the optical adapter is not set, the subsequent process in step S108 is performed. It is determined whether or not the process has ended. If it is determined that the process has ended, the process is completed. If not, the process returns to step S100.
[0083]
On the other hand, if it is determined in step S103 that an optical adapter is attached to the endoscope distal end 39 and the attached optical adapter is set, the process proceeds to step S104. In other words, the process shifts to the determination process in step S104, thereby waiting for an input of the setting function of the optical adapter.
[0084]
For example, when one of the optical adapters is attached to the endoscope distal end portion 39, the CPU 26 calls the setting function of the optical adapter and shifts the processing to step S104, and based on the setting function of the optical adapter by the processing. Then, a display signal of the optical adapter selection screen is generated and supplied to the video signal processing circuit 33 (see FIG. 2), whereby the optical adapter selection screen as shown in FIG. In other words, this optical adapter selection screen is a screen on which, for example, AT60D / 60D and AT60S / 60S, which are stereo measurement adapters, and AT120D and AT60D, which are normal optical adapters, are displayed. The optical adapter is selected by, for example, moving a cursor displayed on the screen (not shown) up and down with the lever switch 48.
[0085]
Thereafter, the CPU 26 determines whether or not the optical adapter selected by the user is a normal optical adapter in the determination process in the subsequent step S105. If the optical adapter is a normal optical adapter, the CPU 26 compares the optical adapter selected in the subsequent step S106. The process proceeds to step S107 with the measurement flag set to 1 (TRUE). Conversely, if the measurement flag is not a normal optical adapter, the process proceeds to step S107.
[0086]
In step S107, the CPU 26 determines whether the optical adapter selected by the user is a stereo measurement adapter. If the optical adapter is a stereo measurement adapter, the CPU 26 sets the stereo measurement flag to 1 in the subsequent step S108. (TRUE) The measurement endoscope apparatus 10 is set in a use standby state until the user depresses the measurement execution switch 51 of the remote controller 13, and is also set in a use standby state when the user is not a stereo measurement adapter. To control.
[0087]
Since the measurement endoscope apparatus 10 is normally in a state of photographing a subject (live video image display state), when the measurement execution switch 51 of the remote controller 13 is pressed by the user, the CPU 26 displays a still image. The video signal processing device 33 is controlled so as to display, and the routine program shown in FIG. 14 is executed on the still image.
[0088]
Further, although not shown, the in-measurement celebratory apparatus can select an image by moving the lever switch 48 up and down from a plurality of image lists recorded on the PCMCIA memory card 22. Thereafter, when the measurement execution switch 51 of the remote controller 13 is pressed, the CPU 26 causes the routine program shown in FIG. 14 to be executed on the selected image.
[0089]
When the CPU detects that the measurement execution switch has been pressed, it is determined whether or not the image is recorded in the PCMCIA memory mode 22 in the determination process of step S111 in FIG. If YES in step S112, it is determined in step S112 whether the image is a stereo measurement image.
[0090]
If it is a stereo measurement image, it is determined whether or not measurement environment information is attached to the header of the image file in the determination process of step S113. If this is recorded, the determination process of step S114 is performed. In step S115, it is determined whether or not the measurement environment data recorded in the compact flash (R) memory card 23 has the same measurement environment. Control is performed to read the data and perform the stereo measurement process. When the stereo measurement is completed, the apparatus 10 is set in a standby state in preparation for displaying the measurement result or for another measurement.
[0091]
If there is no same measurement environment in the determination process in step S114, it is determined in the determination process in step S117 whether or not calibration data is attached to the header of the image file. If calibration data is attached to the image in the determination process of step S117, whether or not the calibration data attached to the image in the determination process of step S118 is supported by software related to the main measurement installed in the apparatus 10. If this is the case, control is performed so that measurement environment data is created using the calibration data in step S119 and stereo measurement processing is performed.
[0092]
On the other hand, if the calibration data is not attached to the image in the determination process of step S117, or if the calibration data attached to the image is not supported by this software in the determination process of step S118, or this determination process in step S113. When the measurement environment information is not attached to the header of the image file, it is displayed that the stereo measurement cannot be performed, and the apparatus 10 is set in a standby state so as to select another image.
[0093]
If the image selected in the determination process in step S112 is not a stereo measurement image, it is determined in the determination process in step S122 whether or not the image is for comparison measurement. If the image is for comparison measurement, the image is attached. The distortion correction information of the optical adapter is read and comparative measurement is performed. If the image is not an image for comparison measurement in the determination process in step S122, it is displayed that stereo measurement or comparison measurement cannot be performed, and the apparatus 10 is set in a standby state to select another image.
[0094]
Further, when the image measured in the determination process of step S111 is an image obtained by stopping the live video display, when the stereo measurement flag is 1 (TRUE) in the determination process of step S126, step S104 of FIG. The measurement environment data of the stereo measurement adapter selected on the screen shown in is read and stereo measurement is executed.
[0095]
If the stereo measurement flag is not 1 (TRUE) in the determination process in step S126 and the comparison measurement flag is 1 in the determination process in step S128, the normal selected on the screen shown in step S104 in FIG. Read distortion information of optical adapter and execute comparative measurement.
[0096]
If the comparison measurement flag is not 1 (TRUE) in the determination process in step S128, the process returns to step S103 in FIG. 12, and control is performed again to confirm the settings necessary for performing the measurement.
[0097]
(effect)
In the present embodiment, in the case of live video display, not only an appropriate measurement program is executed by simply pressing the measurement execution switch 51 of the remote controller, but also when re-measurement is performed on an already recorded image. By selecting and pressing the measurement execution switch 51 of the remote controller, information necessary for correct measurement can be read and an appropriate measurement program can be executed. That is, when re-measurement is performed on a recorded image, measurement is not performed with inconsistent measurement environment data or distortion correction information, and measurement errors due to this can be prevented.
[0098]
Second embodiment:
FIG. 15 is a flowchart showing an example of a control operation which is a feature of the CPU according to the second embodiment of the present invention.
[0099]
Since the second embodiment is almost the same as the first embodiment, only different points will be described, and the same components are denoted by the same reference numerals and description thereof will be omitted.
[0100]
(Constitution)
In the present embodiment, even if measurement environment information and calibration data are not recorded in the image recorded on the recording medium, the execution is performed in the first embodiment in order to quickly perform the optimum measurement. The program will be improved to provide additional functions.
[0101]
Specifically, when the recorded stereo measurement image is selected and the measurement execution switch is pressed, the measurement environment information is not recorded in the header of this image file or a file different from the image file, When the measurement environment information is recorded in the header of the image file or in a file different from the image file but the calibration data is not recorded, the measurement is already recorded in the compact flash (R) memory card. When the user selects an appropriate piece of environment data, the measurement environment data is read and control is performed so that stereo measurement is executed.
[0102]
Further, when the user determines that there is no appropriate measurement environment data already registered, the user selects an appropriate calibration data recorded in another image in the PCMCIA memory card. When selected, stereo measurement is performed after creating measurement environment data using the calibration data.
[0103]
In this calibration data selection operation, in the stereo measurement function, only calibration data and measurement environment information, which are a part of already registered measurement environment data, are recorded on a recording medium for recording images and measurement environment data. If a function capable of copying to another memory card is provided, the memory card is mounted on the apparatus 10 and appropriate data is selected from a plurality of calibration data recorded in the memory card. It may be made like this.
[0104]
This function can be easily applied not only to stereo measurement but also to comparative measurement.
[0105]
(Function)
In the present embodiment, the processing shown in FIG. 15 is operated when the result of determination in step S113 or step S117 in FIG. 14 in the first embodiment is NG. That is, if the measurement environment information is not attached to the header of the image file in the determination process of step S113, or if the calibration data is not attached to the header of the image file in the determination process of step S117, the process proceeds to step S201.
[0106]
In step S201, measurement is performed using already registered measurement environment data, measurement environment is set using another calibration data, or measurement is performed, or this process is terminated and another image is obtained. The user decides whether or not to perform measurement, and performs a process corresponding to that.
[0107]
If it is selected from the measurement environment data in step S201, a list of already registered measurement environment data is displayed as shown in step S203, and the user selects an appropriate one from the list.
[0108]
In step S205, it is determined whether or not measurement environment information is attached to the image. If so, the content of the measurement environment information attached to the image and the selected measurement environment data are determined in step S206. Compare whether or not the contents match. If they match, the process proceeds to step S209. If they do not match, an error message is displayed as shown in S207, and a standby state is entered so that correct measurement environment data or calibration data is selected again in S201.
[0109]
On the other hand, when the measurement environment information is not attached to the image in the determination process of S205, the content of the selected data is displayed and the user is reconfirmed, and the process proceeds to S209.
[0110]
Then, after reading the measurement environment data selected in step S209, stereo measurement is executed.
[0111]
On the other hand, if another calibration data is selected in step S201, a memory card in which appropriate calibration data is recorded is attached to the apparatus 10, and then a list of calibration data in the memory card as shown in step S212. Is displayed. Then, after the user selects an appropriate one from these, it is determined whether or not the calibration data selected in the determination process in step S214 is compatible with this software, and if it is compatible, the process proceeds to S215. If not, an error message is displayed as shown in S216, and a standby state is entered so that the correct measurement environment data or calibration data is selected again in S201.
[0112]
In step S215, it is determined whether or not measurement environment information is attached to the image. If measurement environment information is attached to the image, the contents are compared with the contents of the selected calibration data in step S217. If they match, the process proceeds to step 219. If they do not match, an error message is displayed as shown in S220, and a standby state is entered so that correct measurement environment data or calibration data is selected again in S201.
[0113]
If the measurement environment information is not attached to the image in S215, the content of the selected data is displayed and the user is reconfirmed, and the process proceeds to S219.
[0114]
Then, after creating measurement environment data from the selected calibration data selected in step S219, stereo measurement is executed.
[0115]
Further, when step S209 or S219 is completed, measurement environment information and calibration data may be recorded in the header of the image file as desired by the user before performing stereo measurement.
[0116]
(effect)
Since the calibration data has a capacity of several tens of Kbytes and the measurement environment information is often several Kbytes, it may be desired to record only the measurement environment information in the image in order to reduce one image file.
[0117]
Also, if measurement environment information or calibration data is recorded in a file other than the image file, the measurement environment information or calibration data file recorded in association with the image for some reason is lost or deleted. It is also possible to be trapped.
[0118]
Conventionally, re-measurement cannot be performed with such an image, or the measurement environment setting operation until actual re-measurement is complicated.
[0119]
On the other hand, in this embodiment, the measurement environment can be easily set simply by selecting them from the list of measurement environment data already registered or the list of calibration data recorded on another memory card. Remeasurement can be performed quickly.
[0120]
Furthermore, since it is confirmed whether or not the data selected from the list is compatible with the image to be measured, there is an effect of reducing the case where measurement is performed in an inconsistent state.
[0121]
Third embodiment:
FIG. 16 is a flowchart showing an example of a control operation which is a feature of the CPU according to the third embodiment of the present invention.
[0122]
Since the third embodiment is almost the same as the first embodiment, only different points will be described, and the same components are denoted by the same reference numerals and description thereof will be omitted.
[0123]
(Constitution)
In this embodiment, the positional relationship information included in the calibration data attached to the image and the positional relationship information included in the measurement environment data already registered are included. In the second embodiment, the contents of the information are compared and if the difference is larger than a predetermined threshold value, the measurement is performed using the calibration data attached to the image. This is a configuration added to the first embodiment including the function.
[0124]
(Function)
The measurement endoscope apparatus 10 selects a stereo measurement image to be measured from a plurality of image lists recorded in the PCMCIA memory card 22 (not shown), and when the measurement execution switch 51 of the remote controller 13 is pressed, The CPU 26 causes the routine program shown in FIG. 16 to be executed on the selected image.
[0125]
Steps S111 to S114 in FIG. 16 are the same as those in the first embodiment.
[0126]
In the determination process of step S114, it is determined whether or not the measurement environment data recorded on the compact flash (R) memory card 23 has the same measurement environment information attached to the image. In this case, in the determination process in step S305, the difference between the position information of the visual field area included in the calibration data attached to the image and the positional information of the visual field area included in the registered measurement environment data is determined in advance. It is determined whether it is smaller than a predetermined threshold value.
[0127]
If it is smaller than the threshold value in step S305, control is performed so that measurement environment data matching the image is read and stereo measurement processing is performed, and when the stereo measurement is completed, the measurement result is displayed or measured in preparation for another measurement. The endoscope apparatus 10 is set in a standby state.
[0128]
When the determination process in step S305 is larger than the threshold value, the calibration data attached to the image in the determination process in step S308 is handled by software related to the main measurement installed in the main measurement endoscope apparatus 10. If it corresponds, in the process of step S309, the calibration data is used to create measurement environment data and control to perform stereo measurement processing.
[0129]
On the other hand, if the calibration data attached to the image in the determination process in step S308 is not supported by this software, it is displayed that the stereo measurement cannot be performed, and the measurement endoscope is selected to select another image. The mirror device 10 is put into a standby state.
[0130]
(effect)
As a result, even if the measurement environment information indicating the type of device used when taking the image matches, the appearance of the white image taken to inspect the position of the visual field area changes for some reason, In addition to reducing the number of cases in which measurement accuracy may be reduced due to changes in positional information associated with this, calibration data already attached to the image is used to automatically adjust the measurement environment. Since measurement is performed by setting, it is possible to prepare for measurement with high safety and quick and simple measurement.
[0131]
By the way, when setting of the measurement environment for stereo measurement is completed and a corrected image is created using the measurement environment data for a stereo measurement image recorded on a still image or a recording medium, a stereo as shown in FIG. A measurement screen is displayed, and the user enters a standby state so that the user can specify a measurement point.
[0132]
FIG. 17 shows various menu buttons 55 for executing various measurement functions, a message display field 57 for displaying messages related to operations, and various numerical value display fields 56 for displaying measurement results (numerical values). An example is shown in which an image is displayed on the original image while avoiding two visual field regions.
[0133]
In addition, the size and position that can be measured in the two visual field areas are determined in advance according to the design value of the optical adapter, so that the optical data created during production can be attached to an endoscope that actually uses it. By correcting it accordingly, the size that can be actually measured and its position can be determined.
[0134]
In stereo measurement, since it is impossible to measure an object to be measured in the left and right visual field regions at the same time, it is necessary to perform measurement by designating a point within the measurable visual field region.
[0135]
Therefore,By adding the following functions, the user can easily recognize whether or not the measurement is within the range, and an effect of preventing a measurement error caused by designating a point outside the range can be obtained.
[0136]
The frame of the visual field area 58 that can be measured as defined above is displayed on the measurement image as shown in FIG.
[0137]
・ Although not shown, when specifying a point in the measurement area, the cursor on the screen is moved up, down, left and right by the remote control lever switch. change.
[0138]
For example, when it is inside the visual field area 58, it has a cross shape, and when it is outside the visual field area 58, it has an arrow shape.
[0139]
When specifying a point, control is performed so that it can operate only within the field of view area 58.
[0140]
When a point is to be designated outside the visual field area 58, a caution message may be displayed.
[0141]
As shown in FIG. 18, a viewable field area 58 is cut out from the image, and this is pasted and displayed on a measurement-dedicated screen.
[0142]
Since the size and position of the field of view 58 that can be measured can be obtained by setting the measurement environment, when a live video image is displayed after the stereo measurement adapter is selected in the optical adapter setting in FIG. If the frame is controlled to be displayed, it can be used as an index for confirming whether the object to be measured has been correctly photographed simultaneously on the left and right when photographing a stereo measurement image.
[0143]
In the present invention described in each of the above embodiments, when re-measurement is performed on an already recorded image, it is possible to prevent measurement from being performed on an image that is not a measurement image, Regardless of the current setting status in the device, and without worrying about the type of equipment of the optical adapter, the user can perform measurement corresponding to the correct optical adapter with a simple operation. The operability at the time can be improved, and the inspection efficiency can be improved.
[0144]
In addition, since a large recording medium capacity is not required to obtain the above effect, it can be realized using an inexpensive recording medium.
[0145]
In addition, there is no need to perform re-measurement on the device that actually captured the image, so re-measurement can be performed on another device by attaching the recording medium on which the image is recorded to another device and performing the same simple operation. Can be performed.
[0146]
Accordingly, it is possible to provide a measurement endoscope that is very easy to use and capable of performing high-performance measurement with a relatively inexpensive system.
[0147]
That is, according to the present invention, means for recording measurement environment information and calibration data together with a measurement image, means for selecting a measurement image that has already been recorded, and executing measurement processing, and recorded in the measurement image By providing a means to automatically set the measurement environment using the calibration data that has been recorded, simply select the measurement image that has already been recorded and press the measurement execution switch, the measurement attached to the measurement image The measurement environment is automatically set from the environment information and calibration data, and the measurement process can be executed immediately.
[0148]
Further, means for searching for the same data group already managed in the apparatus with reference to the measurement environment information recorded in the measurement image, and automatically using the data of the search result By providing a means to change the measurement environment settings, when a measurement image that has already been recorded is selected and the measurement execution switch is pressed, measurement environment data that is the same measurement information as the selected measurement image is stored in the device. If it exists, measurement processing can be executed using existing measurement environment data without creating measurement environment data again, and the time required for measurement preparation can be reduced. .
[0149]
Furthermore, means for copying the measurement image recorded in the apparatus together with the measurement environment information and calibration data to a removable recording medium, and the image copied on the recording medium together with the measurement environment information and calibration data in the apparatus By providing the means for capturing the image, it is possible not only to remeasure the image to be measured on the measurement endoscope apparatus of another individual, but also to obtain the same operation as described above.
[0150]
Even if the calibration data is not recorded on the recording medium together with the measurement image due to the capacity of the medium on which the image is recorded, when the image is selected and remeasured, the image is recorded together. It is possible to search whether the same measurement environment data exists in the device by referring to the existing measurement environment information, and if it exists, it can be used for immediate remeasurement. It becomes.
[0151]
Furthermore, even if measurement environment information and calibration data are not recorded in the measurement image for some reason, a measure is provided so that the measurer can check whether the measurement environment of the selected image is recorded. Measurement work can be performed without consciousness. In this case, measurement environment data already existing in the device can be displayed and measurement can be performed by selecting an appropriate one from these. Become.
[0152]
【The invention's effect】
As described above, according to the present invention, when re-measurement is performed with a recorded measurement image, it is possible to prevent measurement from being performed in an incorrect measurement environment, and to perform correct measurement with a simple operation. By enabling remeasurement in the environment, there is an effect that remeasurement can be performed immediately without being aware of the measurement environment, and the operability at that time can be improved.
[Brief description of the drawings]
FIG. 1 is a perspective view showing a system configuration of a measurement endoscope apparatus according to a first embodiment of the present invention.
2 is a block diagram showing an electrical circuit configuration of the measurement endoscope apparatus of FIG. 1. FIG.
3 is a perspective view showing the configuration of the remote controller of FIG. 1. FIG.
4 is a perspective view showing a configuration of an endoscope distal end portion of the endoscope insertion portion of FIG. 1 with a stereo measurement adapter attached. FIG.
5 is a cross-sectional view taken along line AA in FIG.
6 is a view showing an endoscopic image with the stereo measurement adapter of FIG. 4 attached. FIG.
7 is a diagram showing an image of a mask shape of the stereo measurement adapter of FIG. 4;
FIG. 8 is a diagram showing a relationship between an original image and a correction image for explaining setting of a measurement environment in the measurement endoscope apparatus of FIG. 1;
9 is a diagram showing an example of an optical adapter selection screen displayed on the LCD of FIG. 1;
10 is a perspective view showing a configuration of an endoscope distal end portion of the endoscope insertion portion of FIG. 1 with a normal optical adapter attached thereto.
11 is a cross-sectional view taken along line AA in FIG.
12 is a view showing an endoscopic image to which the normal optical adapter of FIG. 10 is attached.
13 is a first flowchart showing an example of a control operation that is a feature of the CPU of FIG. 2;
14 is a second flowchart showing an example of a control operation that is a feature of the CPU of FIG. 2;
FIG. 15 is a flowchart showing an example of a control operation performed by the CPU according to the second embodiment of the present invention.
FIG. 16 is a flowchart showing a control operation example which is a feature of the CPU according to the third embodiment of the present invention;
FIG. 17 is a diagram illustrating an example of a measurement screen in which a frame of a viewable field of view is displayed so as to be superimposed on a subject image.
FIG. 18 is a diagram showing an example of a measurement screen in which left and right visual field areas that can be measured are cut out and displayed;
[Explanation of symbols]
10. Measurement endoscope device
11 ... Endoscope insertion part
12 ... Control unit
13 ... Remote controller
14 ... Liquid crystal monitor (LCD)
17 ... Face cloak display (FMD)
18 ... FMD adapter
19 ... Speaker
20 ... Microphone
21 ... Personal computer
22 ... PCMCIA memory card
23 ... Compact Flash (R) memory card
24 ... Endoscope unit
25 ... Camera Control Unit (CCU)
26 ... CPU (control unit)
27 ... ROM
28 ... RAM
29 ... RS-232CI / F
30 ... PC card I / F
31 ... USB I / F
32. Audio signal processing circuit
33 ... Video signal processing circuit
34, 35, 40 ... Objective lens system
36, 41 ... Illumination lens
37 ... Stereo optical adapter
38 ... Fixing ring
39 ... End of endoscope
42 ... Normal optical adapter
43 ... Image sensor
44 ... crack
45 ... L1 (known dimensions)
46 ... L2 (unknown dimension)
47 ... Joystick
48 ... Lever switch
49 ... Freeze switch
50 ... Store switch
51 ... Measurement execution switch
53 ... Female thread
54 ... Male thread
55 ... Various menu buttons
56 ... Various numerical value display fields
57 ... Message display field
58 ... Measurable field of view

Claims (9)

視差を有する二枚の画像を備えたステレオ画像データと、前記ステレオ画像データが撮像されたときに介されたステレオ計測アダプタの光学特性を示す校正データとを有する画像ファイルを取得可能な画像取得手段と、
前記ステレオ画像データを表示する表示手段と、
操作指示を入力する入力手段と
前記画像ファイルから、前記ステレオ画像データ及び前記校正データを参照する制御手段とを備え、
前記制御手段は、
前記画像取得手段によって取得された画像ファイルに校正データが付加されているか否かを判別する判別手段を備え、
前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていると判別したとき、前記判別手段によって校正データが付加されていると判別された画像ファイルに付加されている校正データを、前記画像取得手段によって取得された画像ファイルから読み出し、
前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていないと判別したとき、前記入力手段により、少なくとも1つの任意の校正データが記録されている記憶手段に記録されている校正データを前記記憶手段から選択させて読み出し、
読み出した校正データに基づいて、前記画像取得手段によって取得された画像ファイルが有するステレオ画像データに含まれる幾何学的歪みを補正して補正ステレオ画像データを生成し、
前記補正ステレオ画像データが備えた前記二枚の画像間におけるマッチング処理を行い、
前記マッチング処理の結果と前記読み出した校正データとに基づいて前記補正ステレオ画像データの任意の計測点における三次元座標を求め、
前記三次元座標を用いて被写体を計測することを特徴とする計測内視鏡装置。
Image acquisition means capable of acquiring an image file having stereo image data including two images having parallax and calibration data indicating optical characteristics of a stereo measurement adapter through which the stereo image data is captured When,
Display means for displaying the stereo image data;
An input means for inputting operation instructions ;
Control means for referring to the stereo image data and the calibration data from the image file ,
The control means includes
A determination means for determining whether or not calibration data is added to the image file acquired by the image acquisition means;
When the determination means determines that calibration data is added to the image file acquired by the image acquisition means, the determination means adds the calibration data to the image file determined to have been added. Read calibration data from the image file acquired by the image acquisition means,
When the determination unit determines that no calibration data is added to the image file acquired by the image acquisition unit, the input unit records at least one arbitrary calibration data in the storage unit. Reading out the calibration data being selected from the storage means,
Based on the read calibration data, correct the geometric distortion included in the stereo image data included in the image file acquired by the image acquisition means to generate corrected stereo image data,
Performing a matching process between the two images included in the corrected stereo image data;
Based on the result of the matching process and the read calibration data, obtain three-dimensional coordinates at any measurement point of the corrected stereo image data,
A measuring endoscope apparatus that measures a subject using the three-dimensional coordinates.
視差を有する二枚の画像を備えたステレオ画像データと、前記ステレオ画像データが撮像されたときに介されたステレオ計測アダプタの光学特性を示す校正データと、前記校正データの種類を示す計測環境情報と、を有する画像ファイルを取得可能な画像取得手段と、Stereo image data including two images having parallax, calibration data indicating the optical characteristics of the stereo measurement adapter through which the stereo image data was captured, and measurement environment information indicating the type of the calibration data And an image acquisition means capable of acquiring an image file,
前記ステレオ画像データを表示する表示手段と、Display means for displaying the stereo image data;
操作指示を入力する入力手段と、An input means for inputting operation instructions;
前記画像ファイルから、前記ステレオ画像データ及び前記校正データを参照する制御手段とを備え、Control means for referring to the stereo image data and the calibration data from the image file,
前記制御手段は、The control means includes
前記画像取得手段によって取得された画像ファイルに校正データが付加されているか否かを判別する判別手段を備え、A determination means for determining whether or not calibration data is added to the image file acquired by the image acquisition means;
前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていると判別したとき、前記判別手段によって校正データが付加されていると判別された画像ファイルに付加されている校正データを、前記画像取得手段によって取得された画像ファイルから読み出し、When the determination means determines that calibration data is added to the image file acquired by the image acquisition means, the determination means adds the calibration data to the image file determined to have been added. Read calibration data from the image file acquired by the image acquisition means,
前記判別手段が、前記画像取得手段によって取得された画像ファイルに校正データが付加されていないと判別したとき、前記計測環境情報を参照して、少なくとも1つの任意の校正データが記録されている記憶手段に、前記計測環境情報に対応した校正データが記録されているか否かを判断し、When the determination unit determines that calibration data is not added to the image file acquired by the image acquisition unit, the storage stores at least one arbitrary calibration data with reference to the measurement environment information In the means, it is determined whether calibration data corresponding to the measurement environment information is recorded,
前記計測環境情報に対応した校正データが前記記憶手段に記録されていると判断した場合、前記計測環境情報に対応した校正データを前記記憶手段から読み出し、If it is determined that the calibration data corresponding to the measurement environment information is recorded in the storage means, the calibration data corresponding to the measurement environment information is read from the storage means,
読み出した校正データに基づいて、前記画像取得手段によって取得された画像ファイルが有する前記ステレオ画像データに含まれる幾何学的歪みを補正して補正ステレオ画像データを生成し、Based on the read calibration data, correct the geometric distortion included in the stereo image data included in the image file acquired by the image acquisition means to generate corrected stereo image data,
前記補正ステレオ画像データが備えた前記二枚の画像間におけるマッチング処理を行い、Performing a matching process between the two images included in the corrected stereo image data;
前記マッチング処理の結果と前記読み出した校正データとに基づいて前記補正ステレオ画像データの任意の計測点における三次元座標を求め、Based on the result of the matching process and the read calibration data, obtain three-dimensional coordinates at any measurement point of the corrected stereo image data,
前記三次元座標を用いて被写体を計測することを特徴とする計測内視鏡装置。A measuring endoscope apparatus that measures a subject using the three-dimensional coordinates.
前記制御手段は、前記読み出した校正データから、前記ステレオ画像データの座標変換に用いられる変換テーブルを作成し、前記変換テーブルに基づいて、前記ステレオ画像データから幾何学的歪みを除くように前記ステレオ画像データを座標変換することを特徴とする請求項1又は請求項2に記載の計測内視鏡装置。The control means creates a conversion table used for coordinate conversion of the stereo image data from the read calibration data, and based on the conversion table, removes the geometric distortion from the stereo image data. The measurement endoscope apparatus according to claim 1, wherein the image data is coordinate-transformed. 前記判別手段によって校正データが付加されていると判別された画像ファイルに付加されている校正データは、前記ステレオ計測アダプタの生産工程で測定された光学特性が、前記ステレオ計測アダプタが接続される内視鏡挿入部に適した光学特性として補正されたものであることを特徴とする請求項1〜請求項3の何れか1項に記載の計測内視鏡装置。The calibration data added to the image file that has been determined that the calibration data has been added by the discriminating means has the optical characteristics measured in the production process of the stereo measurement adapter within the connection of the stereo measurement adapter. The measurement endoscope apparatus according to any one of claims 1 to 3, wherein the measurement endoscope apparatus is corrected as an optical characteristic suitable for an endoscope insertion portion. 前記制御手段は、前記ステレオ画像データに対して実行可能な計測処理の種類を判別し、判別した前記種類に応じた計測処理を前記補正ステレオ画像データに対して実行することを特徴とする請求項1〜請求項4の何れか1項に記載の計測内視鏡装置。The control means determines a type of measurement process that can be performed on the stereo image data, and executes a measurement process corresponding to the determined type on the corrected stereo image data. The measurement endoscope apparatus according to any one of claims 1 to 4. 前記制御手段は、前記画像取得手段によって取得された画像ファイルに校正データが付加されていないと前記判別手段が判別したとき、前記記憶手段から読み出した校正データを、前記画像取得手段によって取得された画像ファイルに記録することを特徴とする請求項1又は請求項2に記載の計測内視鏡装置。The control means acquires the calibration data read from the storage means by the image acquisition means when the determination means determines that the calibration data is not added to the image file acquired by the image acquisition means. The measurement endoscope apparatus according to claim 1, wherein the measurement endoscope apparatus is recorded in an image file. 前記表示手段は、前記ステレオ計測アダプタ毎に定められた、前記ステレオ画像データの計測可能な領域を示す枠を表示することを特徴とする請求項1〜請求項6の何れか1項に記載の計測内視鏡装置。The said display means displays the frame which shows the area | region which can measure the said stereo image data defined for every said stereo measurement adapter, The one of Claims 1-6 characterized by the above-mentioned. Measuring endoscope device. 前記表示手段は、前記入力手段による操作指示に対応する位置にカーソルを表示し、The display means displays a cursor at a position corresponding to an operation instruction by the input means,
前記制御手段は、前記カーソルが前記ステレオ画像データの計測可能な位置に位置していないとき、前記カーソルの形状を変更することを特徴とする請求項1〜請求項7の何れか1項に記載の計測内視鏡装置。The said control means changes the shape of the said cursor, when the said cursor is not located in the position which can measure the said stereo image data, The any one of Claims 1-7 characterized by the above-mentioned. Measuring endoscope device.
前記表示手段は、前記入力手段による操作指示に対応する位置にカーソルを表示し、The display means displays a cursor at a position corresponding to an operation instruction by the input means,
前記制御手段は、前記カーソルが前記ステレオ画像データの計測可能な位置に位置している場合にのみ、前記カーソルを動作させることを特徴とする請求項1〜請求項7の何れか1項に記載の計測内視鏡装置。The said control means operates the said cursor only when the said cursor is located in the position which can measure the said stereo image data, The any one of Claims 1-7 characterized by the above-mentioned. Measuring endoscope device.
JP2001264847A 2001-08-31 2001-08-31 Measuring endoscope device Expired - Fee Related JP4373037B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2001264847A JP4373037B2 (en) 2001-08-31 2001-08-31 Measuring endoscope device
US10/232,422 US6945930B2 (en) 2001-08-31 2002-08-27 Environment adaptable measurement endoscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001264847A JP4373037B2 (en) 2001-08-31 2001-08-31 Measuring endoscope device

Publications (3)

Publication Number Publication Date
JP2003075136A JP2003075136A (en) 2003-03-12
JP2003075136A5 JP2003075136A5 (en) 2008-10-16
JP4373037B2 true JP4373037B2 (en) 2009-11-25

Family

ID=19091387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001264847A Expired - Fee Related JP4373037B2 (en) 2001-08-31 2001-08-31 Measuring endoscope device

Country Status (1)

Country Link
JP (1) JP4373037B2 (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005181356A (en) 2003-12-15 2005-07-07 Canon Inc Camera system, camera, accessary, and photographing lens
JP4663246B2 (en) * 2004-02-16 2011-04-06 キヤノン株式会社 Camera, camera system and lens apparatus
JP2005334462A (en) * 2004-05-28 2005-12-08 Olympus Corp Stereoscopic vision endoscope system
JP4595410B2 (en) * 2004-07-08 2010-12-08 カシオ計算機株式会社 Projection system, projection condition setting method and program
JP4885479B2 (en) * 2004-10-12 2012-02-29 オリンパス株式会社 Endoscope device for measurement and program for endoscope
JP5113990B2 (en) * 2005-05-24 2013-01-09 オリンパス株式会社 Endoscope device for measurement
JP5101089B2 (en) * 2005-11-22 2012-12-19 オリンパス株式会社 Endoscope apparatus and method for operating endoscope apparatus
JP5199594B2 (en) 2006-03-24 2013-05-15 オリンパス株式会社 Image measuring apparatus and method
JP2008049149A (en) * 2006-07-27 2008-03-06 Olympus Corp Endoscope system
US8979743B2 (en) 2008-07-07 2015-03-17 Olympus Corporation Endoscope device and endoscopic image distortion correction method
JP5384957B2 (en) * 2009-01-21 2014-01-08 オリンパス株式会社 Endoscope apparatus and program
JP2010286765A (en) * 2009-06-15 2010-12-24 Olympus Corp Endoscopic device and program
JP2013123123A (en) * 2011-12-09 2013-06-20 Fujitsu Ltd Stereo image generation device, stereo image generation method and computer program for stereo image generation
JP5980611B2 (en) * 2012-07-25 2016-08-31 オリンパス株式会社 Measurement endoscope apparatus and program
JP5976436B2 (en) * 2012-07-30 2016-08-23 オリンパス株式会社 Endoscope apparatus and program
JP6120537B2 (en) * 2012-11-22 2017-04-26 オリンパス株式会社 Measuring endoscope device
JP6136248B2 (en) * 2012-12-25 2017-05-31 株式会社リコー Image processing apparatus, image processing method, and program
JP6635680B2 (en) * 2015-05-29 2020-01-29 オリンパス株式会社 Endoscope apparatus and setting method of endoscope apparatus
JP2016186662A (en) * 2016-07-20 2016-10-27 オリンパス株式会社 Endoscope apparatus and program
JP6400767B2 (en) * 2017-03-28 2018-10-03 オリンパス株式会社 Measuring endoscope device
WO2023084706A1 (en) * 2021-11-11 2023-05-19 オリンパスメディカルシステムズ株式会社 Endoscope processor, program, and method for controlling focus lens

Also Published As

Publication number Publication date
JP2003075136A (en) 2003-03-12

Similar Documents

Publication Publication Date Title
JP4373037B2 (en) Measuring endoscope device
US6945930B2 (en) Environment adaptable measurement endoscope
JP4468544B2 (en) Endoscope device
US6914623B2 (en) Image processing measuring apparatus and measuring endoscope apparatus
JP4632577B2 (en) Measuring endoscope device
US7443488B2 (en) Endoscope apparatus, method of operating the endoscope apparatus, and program to be executed to implement the method
JP2005050035A (en) Image photographing device and image processing method
JP4885479B2 (en) Endoscope device for measurement and program for endoscope
US11321861B2 (en) Method of operating measurement device, measurement device, measurement system, three-dimensional shape restoration device, and recording medium
JP5113990B2 (en) Endoscope device for measurement
JP4759184B2 (en) Measuring endoscope device
US9113806B2 (en) Endoscope apparatus for measuring a spatial characteristic
JP5307407B2 (en) Endoscope apparatus and program
JP5079973B2 (en) Endoscope device for measurement and program for endoscope device for measurement
JP4373038B2 (en) Measurement program
CN110873717B (en) Image acquisition device and method for operating image acquisition device
JP2011170276A (en) Endoscope device and program
JPH09305796A (en) Image information processor
JP3271813B2 (en) Calibration method and calibration device for image measurement device
JP4011888B2 (en) Measuring endoscope device
JP4262013B2 (en) Image processing method and image generation apparatus
JP6400767B2 (en) Measuring endoscope device
JP2005050034A (en) Image processing method and device
JP2007171941A (en) Endoscope and method for correcting image distortion of endoscope
JP4266737B2 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080829

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080829

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20080829

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20081014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081021

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090511

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090811

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090903

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

Free format text: PAYMENT UNTIL: 20120911

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120911

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130911

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees