Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4531176B2 - Endoscope device - Google Patents
[go: Go Back, main page]

JP4531176B2 - Endoscope device - Google Patents

Endoscope device Download PDF

Info

Publication number
JP4531176B2
JP4531176B2 JP36538199A JP36538199A JP4531176B2 JP 4531176 B2 JP4531176 B2 JP 4531176B2 JP 36538199 A JP36538199 A JP 36538199A JP 36538199 A JP36538199 A JP 36538199A JP 4531176 B2 JP4531176 B2 JP 4531176B2
Authority
JP
Japan
Prior art keywords
image
display
character information
display position
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP36538199A
Other languages
Japanese (ja)
Other versions
JP2000237130A (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.)
Hoya Corp
Original Assignee
Hoya 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 Hoya Corp filed Critical Hoya Corp
Priority to JP36538199A priority Critical patent/JP4531176B2/en
Publication of JP2000237130A publication Critical patent/JP2000237130A/en
Application granted granted Critical
Publication of JP4531176B2 publication Critical patent/JP4531176B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Endoscopes (AREA)
  • Instruments For Viewing The Inside Of Hollow Bodies (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、胃など体腔内に内視鏡を挿入し、体腔の映像をモニタに映し出して患部の状態を検査する内視鏡装置に関し、特にモニタ画面に体腔の映像とともに表示される文字情報の表示位置の調整に関する。
【0002】
【従来の技術】
従来、体腔映像が映し出される画面に、患者名やID番号などの文字情報や、患部を指す指示マーク(例えば、矢印)を表示することができる内視鏡装置が知られている。このような内視鏡装置では、撮像素子の特性に基づく内視鏡の種類や、体腔映像の通常/拡大表示の切替操作に基づき、画面に映し出される体腔映像の画像範囲(表示範囲)が変更され、それとともに、文字情報や指示マークの表示位置も変更される。このとき、各項目の文字情報および指示マークの表示位置は、内視鏡の種類および体腔映像の表示状態ごとに場合分けすることにより、それぞれ求められる。
【0003】
【発明が解決しようとする課題】
ところが、文字情報や指示マークの表示位置を場合分けにより求める場合、文字情報や指示マークを表示させるためのアルゴリズム(プログラム)は、内視鏡の種類の増加などにより場合分けの数が増加することに伴って、煩雑化する。そのため、内視鏡装置全体の動作に対するプログラムコードが増大し、プログラムの保守点検が困難となる。また、プログラムコードが増大することにより、プログラムを格納するメモリの容量を小さくすることができない。
【0004】
本発明は、体腔映像に対する画像範囲の変更などに応じて文字情報や指示マークの表示位置を変更する場合、簡素なプログラムによる迅速な表示処理を実行することができる内視鏡装置を得ることを目的とする。
【0005】
【課題を解決するための手段】
本発明の内視鏡装置は、被写体像を撮像するためのスコープと、撮像によって得られる被写体像に応じた画像信号を処理するプロセッサからなる内視鏡装置であって、被写体像とともに文字情報および指示マークをプロセッサに接続されるモニタの画面に表示する表示手段と、画面において、被写体像が映し出される画像範囲を変更する画像範囲変更手段とを備え、表示手段が、画像範囲と文字情報および指示マークの表示位置との対応関係を示す表示位置参照表に基づいて、画面において映し出される被写体像の画像範囲に応じた文字情報および指示マークの表示位置を定めることにより、文字情報および指示マークを、画像範囲の変更に応じて画面に表示する表示位置調整手段を有することを特徴とする。このように表示位置参照表に基づいて文字情報の表示位置を定めることにより、画像範囲が変更された場合、変更された画像範囲に応じた文字情報の位置が表示位置参照表から定められ、また、指示マークの位置が表示位置参照表に基づいて定められるため、迅速な表示処理を実行することができる。また、表示位置参照表を用いれば良いので、プログラムが簡素化される。
【0006】
画像範囲変更手段は、スコープの取り替えと、スコープに設けられた撮像素子の画素数に対応する通常表示と通常表示より画像範囲が大きい拡大表示の切り替えに基づき、画像範囲を変更することが望ましい。この場合、表示位置参照表は、スコープの種類と通常および拡大表示に応じた文字情報の各項目の表示位置と、スコープの種類と通常および拡大表示に応じた指示マークが表示できる限界位置とを示す表であることが望ましい。例えば、表示位置参照表は、文字情報の各項目における先頭の文字が表示される位置座標を示している。
【0007】
表示位置調整手段は、表示位置参照表から、画面において映し出される被写体像の画像範囲に応じた文字情報の表示位置を求めることにより、画像範囲の変更に応じて、文字情報を画面に表示することが望ましい。また、表示位置調整手段は、表示位置参照表に示されている指示マークの限界位置を参照することにより、画像範囲の変更に応じて、指示マークを画像範囲内に表示することが望ましい。
【0008】
表示位置参照表を格納するための不揮発性メモリと、表示位置参照表に示された文字情報の各項目の表示位置および指示マークの限界位置の中の一部を一時的に記憶する揮発性メモリをさらに有し、揮発性メモリには、スコープのいずれかの種類の通常表示もしくは拡大表示に応じた文字情報の表示位置および指示マークの限界位置が記憶されることが望ましい。このような揮発性メモリ、不揮発性メモリを有する場合、表示位置調整手段は、画像範囲変更手段により画像範囲変更された場合、変更された画像範囲に応じた文字情報の表示位置および指示マークの限界位置を不揮発性メモリから読み出して揮発性メモリに一時的に記憶し、揮発性メモリに記憶された文字情報の表示位置に基づいて文字情報を表示し、指示マークの限界位置を参照することにより指示マークを変更された画像範囲内に表示することが望ましい。不揮発性メモリから変更された画像範囲に応じた文字情報のすべての項目の表示位置が読み出されることにより、変更された画像範囲に対する表示位置を各項目毎に順次定めることなく、文字情報が画面に表示される。
【0009】
さらに、プロセッサに接続されるキーボードの操作により実行される画面上でのカーソルの移動、文字の入力、および指示マークの移動が、揮発性メモリに記憶された文字情報の表示位置および指示マークの限界位置に基づいて実行されることが望ましい。揮発性メモリに記憶された表示位置および限界位置に基づいて文字入力等が行われるため、文字入力、カーソルの移動を実行する度に、今現在の画像範囲を判別することなく、所望の表示位置に文字が入力され、あるいは、カーソル、指示マークが移動する。
【0010】
表示位置調整手段は、画像範囲の変更に応じて、指示マークを画像範囲内に表示することが望ましい。また、表示位置調整手段は、画像範囲の変更に応じて、画像範囲外に文字情報を表示するように、文字情報の表示位置を調整することが望ましい。
【0011】
文字情報が、被写体像に関連する文字情報であることが望ましい。また、指示マークは、被写体像に対し、特定部分を画面上において指すためのマークであることが望ましい。
【0012】
本発明の内視鏡装置は、被写体像を撮像するためのスコープと、撮像によって得られる被写体像に応じた画像信号を処理するプロセッサからなる内視鏡装置であって、被写体像とともに文字情報をプロセッサに接続されるモニタの画面に表示する表示手段と、画面において、被写体像が映し出される画像範囲を変更する画像範囲変更手段とを備え、表示手段は、画像範囲と文字情報の表示位置との対応関係を示す表示位置参照表に基づいて、画面において映し出される被写体像の画像範囲に応じた文字情報の表示位置を求めることにより、文字情報を画像範囲の変更に応じて画面に表示する表示位置調整手段を有することを特徴とする。あるいは、本発明の内視鏡装置のプロセッサは、被写体像を撮像するためのスコープが接続されるとともに、スコープの撮像によって得られる前記被写体像に応じた画像信号を処理する内視鏡装置のプロセッサであって、被写体像とともに文字情報をプロセッサに接続されるモニタの画面に表示する表示手段と、画面において、被写体像が映し出される画像範囲を変更する画像範囲変更手段とを備え、表示手段は、画像範囲と文字情報の表示位置との対応関係を示す表示位置参照表に基づいて、画面において映し出される被写体像の画像範囲に応じた文字情報の表示位置を求めることにより、文字情報を画像範囲の変更に応じて画面に表示する表示位置調整手段を有することを特徴とする。
【0013】
【発明の実施の形態】
図を参照して本発明の実施形態を説明する。
【0014】
図1は、本実施形態である内視鏡装置の電気回路を示したブロック図である。
【0015】
図1に示すように、この内視鏡装置では、胃などの体腔S内にスコープ(内視鏡)10が挿入され、プロセッサ20を介してモニタ49に体腔Sの映像が映し出される。スコープ10は、接続部18を介してプロセッサ20に接続されており、スコープ10がプロセッサ20に接続されると、読み出し専用ROM19からスコープ10の種類に関する情報が読み出される。
【0016】
スコープ10内には、光源となるランプ22からの光を通すライトガイド14が設けられており、ランプ22から導かれた光は、光を収束させる集光レンズ24により、ライトガイド14の入射端14aに入射される。そしてライトガイド14を通った光は、光の配光角を広げる配光レンズ15を介して体腔Sに照射される。このとき体腔Sに照射される光量は、ランプ22と集光レンズ24との間に設けられた絞り25により調整され、絞り25は絞り制御回路28から送られてくる信号に基づいて開閉し、これにより光量が増減する。
【0017】
体腔Sの画像はレンズ12を介してCCD(固体撮像素子)である撮像素子13に結像され、光電変換により画像信号が発生する。画像信号は、撮像素子13からコネクタ16を介してプロセッサ20に送られる。なお、本実施形態では、カラーテレビジョン標準方式としてNTSC方式が適用されており、1/30秒間隔毎に1フレーム分の画像信号がプロセッサ20へ送られる。
【0018】
スコープ10から送られてきた画像信号は、画像信号処理部21に送られる。画像信号処理部21では、画像信号がR,G,B各色に応じた信号毎に分離され、分離された各信号に対してガンマ補正などの処理が施される。また輝度信号への変換なども行われ、輝度信号は、絞り25の開閉による光量制御のためにマイコン制御部(CPU)30に送られる。
【0019】
画像信号処理部21から出力された画像信号には、CRTC(CRT Controller) 32から送られてくる、患者名などの文字情報が加えられ、モニタ49に送られる。そしてモニタ49では、体腔Sの映像とともに文字情報が画面に表示される。
【0020】
CPU30には、パネルスイッチ27およびキーボード26の操作によって生じる信号が入力される。キーボード26の操作により体腔Sの映像の拡大表示に関する信号がCPU30に入力されると、拡大表示に関する信号が画像信号処理部21に送られ、これにより拡大表示状態に応じた画像信号がモニタ49に送られる。このとき、従来公知である補間処理によって、拡大表示に応じた画像信号が得られる。また、拡大表示に応じた文字情報などの表示位置に関する信号がCPU30からCRTC32に送られる。なお、プロセッサ20には、画像信号処理部21、CCD13などの回路に対する信号の入出力タイミングを調整するタイミングジェネレータ(図示せず)が設けられており、クロックパルスがタイミングジェネレータから各回路に出力される。これにより、体腔画像とともに文字情報が所定の位置にモニタ49に表示される。また、NTSC方式に従って同期信号が画像信号処理部21へ送られる。
【0021】
CPU30内のROM33(不揮発性メモリ)には、スコープ10の種類や体腔Sの映像の通常/拡大表示と文字情報などの表示位置との関係が、あらかじめデータとして記憶されている。また、内視鏡装置全体の動作を実行するためのプログラムも記憶されている。RAM(揮発性メモリ)34には、現在接続されているスコープ10の種類および現在の画面の表示状態に対応した、文字情報などの表示位置に関するデータが、ROM33から読み出されて一時的に記憶されている。
【0022】
パネルスイッチ27には、アップスイッチ27A、ダウンスイッチ27B、オート/マニュアル切替スイッチ27Cなどが設けられており、アップスイッチ27A,ダウンスイッチ27Bの操作によりモニタ49に映し出される映像の明るさが調整される。また、オート/マニュアル切替スイッチ27Cの操作により、絞り25が所定の位置に定められて一定の光量が体腔Sに照射し続けられるマニュアル式か、もしくはモニタ49における映像の明るさが一定になるように絞り25が自動的に調整される自動調光式どちらかが選択される。
【0023】
ランプ制御回路23には、ランプ22を点灯させる信号が入力され、これによりランプ22が点灯する。また、RTC(Real Time Clock )31では、現在の年月日・時刻が読み出される。
【0024】
図2では、モニタ49に表示される画面を示している。ここでは、スコープ10のタイプA、Bに応じた画面と、さらにスコープ10の種類ごとに体腔Sの映像に対して通常/拡大表示されている画面が示されている。なお、本実施形態では、スコープ10は、撮像素子13の特性(画素数)に基づいて分類される。
【0025】
モニタ49における画面には、体腔Sの映像がある画像範囲内で映し出される。そして、検査されている患者名と、患者のID番号、年齢、性別と、検査している医師(術者)の名前と、接続されているスコープ10の名称と、現在の年月日・時刻といった文字情報が、体腔Sの映像とともに画面に表示される。
【0026】
タイプAのスコープ10が接続され、体腔Sの映像が通常表示で映し出される場合、モニタ49には画面(イ)が表示される。このとき、体腔Sの映像は画像範囲IAにおいて映し出される。そして、文字情報の各項目(患者名〜時刻)が、定められた位置に表示される。なお、x,y座標は、画面上において設定された座標であり、画面左上隅が原点である。右方向に沿ってxが増加し、下方向に沿ってyが増加する。
【0027】
さらに、体腔Sの映像から発見される患部を示すために、その患部を指すポインタ(矢印)Yが、画像範囲IA内において表示される。
【0028】
キーボード26(図1)の操作により文字情報が入力される場合、後述するように、カーソルCの位置にある文字(ここでは、医師名での「D」)が更新される。文字が入力されると、カーソルCは右隣に移動する。
【0029】
キーボード26の操作により体腔Sの映像が拡大表示で映し出される場合、モニタ49には画面(ロ)が表示される。画面(ロ)で表されるように、体腔Sの映像は、画面の中央付近にある画像範囲IA’において映し出される。そして、文字情報は、移動された画像範囲IA’に応じて画面上の各隅に表示される。この拡大表示は、タイプAのスコープ10を使用した時の拡大表示である。
【0030】
このように、通常表示から拡大表示に切り替えられた場合、文字情報の各項目がなるべく画像範囲IA’の外に表示されるように、文字情報の表示位置が画像範囲IA’の枠周辺に変更される。また、後述するように、ポインタYは常に画像範囲内に表示されるように表示位置が調整される。すなわち、表示状態が切り替えられたときにポインタYの位置が画像範囲外に出てしまう場合、画像範囲内に表示されるように表示位置が調整される。
【0031】
プロセッサ20にタイプBのスコープ10が接続され、体腔Sの映像が通常状態で表示されている場合、モニタ49には画面(ハ)が表示される。画面(イ)および画面 (ハ)で示すように、体腔Sの映像が映し出される画像範囲IA、IBは、スコープ10の種類により異なる。この画像範囲の違いは、スコープ10のタイプに応じて撮像素子13の画素数に違いがあるためである。なお、スコープ10に用いられる撮像素子13の画素数は、デジタルビデオカメラなどに用いられる撮像素子の画素数より少ない。したがって、通常表示において、体腔画像は画面全体の一部に映し出される。
【0032】
キーボード26の操作により体腔Sの映像が拡大表示で映し出される場合、モニタ49には画面(ニ)が表示される。このとき、体腔Sの映像は画像範囲IB’において映し出される。この拡大表示はタイプBのスコープ10を使用した時の拡大表示である。
【0033】
図3には、スコープ10の種類と体腔Sの通常/拡大表示に応じた、文字情報およびポインタYの表示位置を示す表T(表示位置参照表)が示されている。本実施形態では、タイプAおよびタイプBの2つのスコープ10を使用することが可能である。この表Tは、ROM33にデータとして記憶されている。
【0034】
表Tには、スコープ10の種類と体腔Sの映像に対する通常/拡大表示に応じて、文字情報の表示位置が各項目毎に(x、y)座標で表されている。すなわち、4つの画像範囲IA、IA’、IB、IB’に対応した文字情報の各項目の表示位置が設定されている。この4つの画像範囲は、表Tにおいて(イ)〜(ニ)に対応している。ただし、各座標(x、y)は、各文字情報の先頭にある文字の位置を示している。
【0035】
このとき、表示位置の座標(x、y)は、次の10行8列の配列hで表される。ただし、項目変数cpは文字情報の各項目およびポインタYに対応する変数である。また、表示変数vsは、スコープ10の種類と通常/拡大表示にそれぞれ従った表示位置のx、y座標に対応した変数である。例えば、タイプAのスコープ10が接続されてる場合、通常表示における各項目のx、y座標は、vs=1、2に対応し、拡大表示における各項目のx、y座標は、vs=3、4に対応する。同じようにタイプBのスコープ10が接続されている場合、通常表示においてはvs=5、6、拡大表示においてはvs=7,8が対応している。
(x、y)=(h〔cp、vs〕、h〔cp、vs〕) ・・・(1)
【0036】
また、例えば、タイプBのスコープ10が接続され、体腔Sの映像が通常表示で映し出されている場合、項目変数cp=5に応じた項目である医師名が表示される位置(先頭の文字であるDの位置)は、vs=5、6であることから、座標(x、y)=(h〔5、5〕、h〔5、6〕)=(24、13)である(図2の画面 (ハ)参照)。
【0037】
配列hは、ROM33におけるアドレスに対応しており、配列hには、対応するx、y座標の値がデータとして記憶されている。また、RAM34のアドレスに応じた10行2列の配列Hには、後述するように、表Tの(イ)〜(ニ)のいずれかの(x、y)座標のデータが、同じように格納される。ここで、配列H〔cp、1〕は、表示項目cpのx座標を表し、配列H〔cp、2〕は、y座標を表す。これは、現在接続されているスコープ10の種類および画面の表示状態に対応した(x、y)座標のデータが、配列hから読み出され、一時的に格納されることを示している。
【0038】
ポインタYが表示される範囲は、画像範囲IA、IA’、IB、IB’内であるため、画像範囲の変更に応じてポインタYの移動範囲が変更する。表Tには、ポインタYを表示することができる範囲におけるx、y方向の最小・最大限界位置が、画像範囲毎に示されている。例えば、タイプAのスコープ10が接続され、体腔Sの映像が拡大表示で映し出される場合、ポインタYが移動できるx方向の範囲は、6〜35である(図2の画面 (ロ)参照)。
【0039】
このような表Tを用いることにより、現在選択されている画像範囲および接続されているスコープのタイプに応じた文字情報の表示位置が求められ、またポインタの表示範囲が設定される。なお、拡大表示の場合、タイプBのスコープ10における拡大表示とタイプAのスコープ10とでは、1行当たり(x方向に沿って)表示できる文字数が異なる。図2に示すように、画面(ロ)では42文字であり、画面(ニ)では38文字である。このような表示文字数の違いは、従来知られているように、撮像素子13の画素数の違いにより生じる。したがって、画面上における表示位置がほぼ同じであっても、スコープ10のタイプA、Bの違いによって、文字情報の表示位置のx、y座標が異なる(図3の年月日、時刻の項目を参照)。
【0040】
図4は、内視鏡装置全体の動作に関し、全体的な流れを示すフローチャートである。ステップ101では、電源がON状態に定められることにより、配列Hや各変数および絞り25がそれぞれ初期値に設定される。なお、スコープ10はデフォルトとしてタイプAが設定され、体腔Sの映像は通常表示になるように設定されている。したがって、表Tの(イ)に関する(x、y)座標のデータが配列Hに設定(格納)される。
【0041】
ステップ102では、CPU30内のRTC31から現在の年月日・時刻が読み出され、モニタ49に年月日・時刻が表示される。ステップ103では、スコープ10が接続された時の処理が実行される。
【0042】
ステップ104では、例えばパネルスイッチ27の操作に対する体腔Sの映像に対する明るさ調整が施される。
【0043】
このような内視鏡装置全体の動作は電源がOFF状態になるまで繰り返し行われ、ステップ102〜ステップ104においてはそれぞれサブルーチンが実行される。
【0044】
図5は、キーボード26の操作に対する割り込みルーチンである。この割り込みルーチンは、ステップ102〜ステップ104の処理中にキーボード26が操作されることにより実行される。割り込みルーチンの処理については、図8を参照して後述する。
【0045】
以下では、図4の時計処理(ステップ102)および内視鏡関連処理(ステップ103)について説明し、その後図5のキーボード操作に対する割り込みルーチンについて説明する。
【0046】
図6は、図4におけるステップ102のサブルーチンである。
【0047】
ステップ201では、RTC31から読み出される年月日・時刻に基づき、年月日・時刻が前回の値から変化しているか否かが判定される。年月日・時刻が変化していると判断されると、ステップ202に移る。年月日・時刻が変化していないと判断された場合、サブルーチンは終了する。
【0048】
ステップ202では、RAM34における配列Hに格納されている(x、y)座標のデータに基づいて、年月日(項目変数cp=7)がモニタ49における画面に表示される。例えば、タイプAのスコープ10が接続され、体腔Sの映像が通常表示で映し出される場合、座標(24、9)が文字の先頭位置になるように、年月日が画面に表示される(図2の画面 (イ)参照)。
【0049】
ステップ203では、年月日と同様に、時分秒(項目変数cp=8)が配列Hにある(x、y)座標のデータに基づいて画面に表示される。例えば、通常状態でタイプAのスコープ10が接続されている場合、時分秒は図2の画面(イ)で示す位置に表示される。このとき、拡大表示であれば、配列Hには表Tの(ロ)に関する(x、y)座標のデータが設定されているので、時分秒は図2の画面(ロ)で示す位置に表示される。このように配列Hを用いることにより、表Tの(イ)〜(ニ)の画像範囲について場合分けをすることなく、同一の処理で年月日および時分秒を表示することができる。時分秒が画面の所定の位置に表示されると、ステップ201〜203の時計処理は終了する。
【0050】
図7は、図4におけるステップ103のサブルーチンである。図7を用いて、スコープ10が接続された時の処理について説明する。
【0051】
ステップ301では、新たなスコープ10がプロセッサ20に接続されたか否かが判定される。そして、新たなスコープ10が接続されていると判断されると、ステップ302に移る。ステップ302では、接続されているスコープ10がタイプAのスコープ10であるか否かが判定される。
【0052】
ステップ302において、タイプAのスコープ10が接続されていると判断された場合、ステップ303に移る。ステップ303では、体腔Sの映像が拡大表示で映し出されているか否かが判定される。ここでは表示変数vr=1が拡大表示を示し、表示変数vr=0が通常表示を示す。
【0053】
ステップ303において、表示変数vr=0、すなわち通常表示であると判断されると、ステップ304に移り、タイプAの通常表示の画像範囲で被写体像が表示される。さらに、ステップ304では、文字情報の各項目の表示位置が表Tにより求められる。ここでは、各項目の表示位置は、表Tの(イ)に応じた(x、y)座標となる。これら(x、y)座標データの値は、配列Hに設定される。このとき、各項目の座標(x、y)データは、新たにスコープ10が接続されるか、もしくは拡大表示に切り替えられるまで、RAM34の配列Hに一時的に記憶される。なお、通常画面での文字情報の表示位置は、本実施形態ではスコープ10の種類(タイプAとタイプB)によらず一定の位置である。各項目の表示位置であるx、y座標データが配列Hに設定されると、ステップ305に移る。なお、ステップ304では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、1〕、h〔cp、2〕に格納された(x、y)座標))も、配列Hに設定される。
【0054】
ステップ305では、ステップ304で求められた表示位置にしたがって、文字情報の各項目が画面に表示される。このとき、新たに接続されたスコープ10の名称が画面に表示される。文字情報の各項目が画面に表示されると、サブルーチンは終了する。
【0055】
ステップ303において、表示変数vr=1、すなわち拡大表示であると判断された場合、ステップ306に移る。スップ306では、タイプAの拡大表示の画像範囲で被写体像が映し出されるとともに、各項目の表示位置が、ステップ304と同じように表Tにより求められる。このとき、表Tの(ロ)の(x、y)座標データが、RAM34における配列Hに一時的に設定される。各項目の表示位置が配列Hに設定されると、ステップ307に移る。なお、ステップ306では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、3〕、h〔cp、4〕に格納された(x、y)座標))も、配列Hに設定される。
【0056】
ステップ307では、ステップ306で求められた表示位置にしたがって、文字情報が画面に表示される。このとき、新たに接続されたスコープ10の名称が画面に表示される。
【0057】
ステップ302において、タイプAではなくタイプBのスコープ10が接続されたと判断された場合、ステップ308に移る。ステップ308では、表示変数vr=0であるか否かが判定される。
【0058】
ステップ308において、表示変数vr=0、すなわち体腔Sの映像が通常表示で映し出されると判断されると、ステップ309に移る。ステップ309では、タイプBの通常表示の画像範囲で被写体像が映し出されるとともに、各項目の表示位置が、表Tにより求められる。このとき、表Tの(ハ)の(x、y)座標データが、RAM34における配列Hに設定される。各項目の表示位置が配列Hに設定されると、ステップ310に移る。なお、ステップ309では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、5〕、h〔cp、6〕に格納された(x、y)座標))も、配列Hに設定される。
【0059】
ステップ310では、ステップ309で求められた表示位置にしたがって、文字情報が画面に表示される。このとき、新たに接続されたスコープ10の名称が画面に表示される。文字情報が画面に表示されると、サブルーチンは終了する。
【0060】
ステップ308において、表示変数vr=1、すなわち体腔Sの映像が拡大表示で映し出されていると判断されると、ステップ311に移る。ステップ311では、タイプBの拡大表示の画像範囲で被写体像が映し出されるとともに、各項目cpの文字情報の表示位置が、表Tにより求められる。このとき、表Tの(ニ)の(x、y)座標データが、RAM34における配列Hに設定される。各項目cpの文字情報の表示位置が配列Hに設定されると、ステップ312に移る。なお、ステップ311では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、7〕、h〔cp、8〕に格納された(x、y)座標))も、配列Hに設定される。
【0061】
ステップ312では、ステップ311で求められた表示位置にしたがって、文字情報が画面に表示される。このとき、新たに接続されたスコープ10の名称が画面に表示される。文字情報が画面に表示されると、サブルーチンは終了する。
【0062】
ステップ301において、新たにスコープ10が接続されていないと判断された場合、ステップ313に移る。ステップ313では、スコープ10がこの度プロセッサ20から外されたか否かが判定される。スコープ10がこの度外されていないと判断されると、このサブルーチンは終了する。スコープ10がこの度外されていたと判断されると、ステップ314に移る。
【0063】
ステップ314では、体腔Sの映像とともにスコープ10の名称が画面から消去される。スコープ10の名称が消去されると、このサブルーチンは終了する。
【0064】
このように、新たにスコープ10がプロセッサ20に接続されると、接続されたスコープ10のタイプ(AもしくはB)と表示状態(通常もしくは拡大表示)に応じて、体腔画像が画像範囲IA、IA’、IB、IB’のいずれかの画像範囲で映し出される。さらに、接続されたスコープ10のタイプ(AもしくはB)と表示状態(通常もしくは拡大表示)に応じて(x、y)座標データが表Tから読み出されて配列Hに再設定され、各項目の表示位置が調整される。
【0065】
図8は、図5の割り込みルーチンである。図8を用いて、キーボート26の操作に対する処理を説明する。この割り込みルーチンは、キーボード26においてどれか1つキーが操作されることにより、開始される。
【0066】
ステップ401では、モニタ49における画面にポインタYが表示されていないか否かが判定される。ここでは、ポインタ表示変数vm=1の時、画面にポインタYが表示され、ポインタ表示変数vm=0の時、画面にポインタYが表示されていないとする。画面にポインタYが表示されている場合、ポインタYに対する操作などが実行され、画面にポインタYが表示されていない場合、文字情報の入力などが実行される。
【0067】
ステップ401において、ポインタ表示変数vm=0、すなわちポインタYが画面に表示されていないと判断されると、ステップ402に移る。ステップ402では、キーボード26において文字キー(キャラクタキー)が操作されたか否かが判定される。文字キーが操作されたと判断されると、ステップ403に移り、操作された文字キーに対応する文字がカーソルCの位置に入力される。文字がカーソルCの位置に入力され、カーソルCが1つ右に移動すると、この割り込みルーチンは終了する。ステップ402において、文字キーが操作されていないと判断された場合、ステップ404に移る。
【0068】
ステップ404では、キーボード26においてエンターキー(実行キー) が操作されたか否かが判定される。エンターキーが操作されたと判断されると、ステップ405に移り、カーソルCの位置が次の文字情報の項目に移動される。このとき、文字情報の項目変数cpの値は1つ増加する。カーソルCの位置が次の文字情報の項目に移動されると、割り込みルーチンは終了する。ステップ404において、エンターキーが操作されていないと判断された場合、ステップ406に移る。
【0069】
ステップ406では、キーボード26において上向き移動キー↑が操作されたか否かが判定される。上向き移動キー↑が操作されたと判断されると、ステップ407に移る。ステップ407では、ステップ405においてカーソルCが移動する方向とは逆の方向に、カーソルCが次の文字情報の項目に移動される。カーソルCが次の文字情報の項目に移動されると項目変数cpの値は1つ減少し、割り込みルーチンは終了する。ステップ406において、上向き移動キー↑が操作されていないと判断された場合、ステップ408に移る。
【0070】
ステップ408では、キーボード26において下向き移動キー↓が操作されたか否かが判定される。下向き移動キー↓が操作されたと判断されると、ステップ409に移る。ステップ409では、ステップ405と同じ処理が実行され、カーソルCが次の文字情報の項目に移動され、項目変数cpの値が1つ増加する。カーソルCが次の文字情報の項目に移動されると、割り込みルーチンは終了する。ステップ408において、下向き移動キー↓が操作されていないと判断された場合、ステップ410に移る。
【0071】
ステップ410では、キーボード26におけるファンクションキーの中で、f4キーが操作されたか否かが判定される。このf4キーが操作されることにより、ポインタYが画面に表示される。f4キーが操作されたと判断されると、ステップ411に移る。ステップ411では、体腔Sの映像が映し出される画像範囲内に収まるように、ポインタYは、表Tから読み出されて配列Hに格納された(x、y)座標データに基づいて画面に表示される。そして、ポインタ表示変数vmがvm=1と設定され、ポインタYが画面に表示されると、割り込みルーチンは終了する。ステップ410において、f4キーが操作されていないと判断された場合、ステップ412に移る。
【0072】
ステップ412では、キーボード26におけるファンクションキーの中で、f8キーが操作されたか否かが判定される。このf8キーが操作されることにより、体腔Sの映像が拡大/通常表示どちらかに切り替えられる。すなわち、通常表示で体腔Sの映像が映し出されている場合は拡大表示に、拡大表示で体腔Sの映像が映し出されている場合は通常表示に切り替えられる。f8キーが操作されたと判断されると、ステップ413に移り、体腔Sの映像が通常/拡大表示どちらかで画面に映し出される。そして、画像範囲の変更とともに各項目の表示位置、すなわち項目変数cp(1〜10)のx、y座標データが、図3の表Tに基づき、配列Hに再設定される。体腔Sの映像が画面に表示されると、割り込みルーチンは終了する。ステップ412において、f8キーが操作されていないと判断された場合、ステップ414に移る。
【0073】
ステップ414では、その他の押されたキー(例えば、ESCキー)に対する処理が施される。他のキーに対する処理が実行されると、この割り込みルーチンは終了する。
【0074】
ステップ401において、ポインタ表示変数vm=1、すなわちポインタYが画面に表示されていると判断されると、ステップ415に移る。
【0075】
ステップ415では、キーボード26において上向き移動キー↑が操作されたが否かが判定される。上向き移動キー↑が操作されたと判断されると、ステップ416に移る。ステップ416では、ポインタYが次の条件式を満たす場合に限り、ポインタYの位置(座標)が1つ上に移動する。
vy>H〔9、2〕 ・・・・・(2)
(2)式は、ポインタYが画像範囲を超えて画面の上隅に表示されないようにするための条件式であり、vyは、ポインタYのy座標で、H〔9、2〕はポインタYのy座標の最小値を表す。このとき、配列H〔9、2〕におけるデータに基づいて判別が行われる。ポインタYの位置が1つ上に移動すると、vyの値は1つ減少し、割り込みルーチンは終了する。なお、ポインタYが画像範囲を超える場合には、ポインタYは移動されない。ステップ415において、上向き移動キー↑が操作されていないと判断された場合、ステップ417に移る。
【0076】
ステップ417では、キーボード26において下向き移動キー↓が操作されたか否かが判定される。下向き移動キー↓が操作されたと判断されると、ステップ418に移る。ステップ418では、ポインタYが次の条件式を満たす場合に限り、ポインタYの位置(座標)が1つ下に移動する。
vy<H〔10、2〕 ・・・・・(3)
(3)式は、ポインタYが画像範囲を超えて画面の下隅に表示されないようにするための条件式である。ポインタYの位置が1つ下に移動すると、vyの値は1つ増加し、割り込みルーチンは終了する。ステップ417において、下向き移動キー↓が操作されていないと判断された場合、ステップ419に移る。
【0077】
ステップ419では、キーボード26において左向き移動キー←が操作されたか否かが判定される。左向き移動キー←が操作されたと判断されると、ステップ420に移る。ステップ420では、ポインタYが次の条件式を満たす場合に限り、ポインタYの位置がx方向に1つ左に移動する。
vx>H〔9、1〕 ・・・・・(4)
(4)式は、ポインタYが画像範囲を超えて画面の左隅に表示されないようにするための条件式であり、vxはポインタYのx座表を表す。H〔9、1〕は、ポインタYのx座標の最小値を表す。ポインタYの位置が1つ左に移動すると、vxの値は1つ減少し、割り込みルーチンは終了する。ステップ419において、左向き移動キー←が操作されていないと判断された場合、ステップ421に移る。
【0078】
ステップ421では、キーボード26において右向き移動キー→が操作されたか否かが判定される。右向き移動キー→が操作されたと判断されると、ステップ422に移る。ステップ422では、ポインタYが次の条件式を満たす場合に限り、ポインタYの位置がx方向に1つ右に移動する。
vx<H〔10、1〕 ・・・・・(5)
(5)式は、ポインタYが画像範囲を超えて画面の右隅に表示されないようにするための条件式である。ポインタYの位置が1つ右に移動すると、vxの値は1つ増加し、割り込みルーチンは終了する。ステップ421において、右向き移動キー→が操作されていないと判断された場合、ステップ423に移る。
【0079】
ステップ423では、キーボード26におけるファンクションキーの中で、f4キーが操作されたか否かが判定される。f4キーが操作されたと判断されると、ステップ424に移る。ステップ424では、ポインタYが画面から消去され、ポインタ表示変数vmが0に設定される。ポインタYが画面から消去されると、割り込みルーチンは終了する。ステップ423において、f4キーが操作されていないと判断された場合、ステップ425に移る。
【0080】
ステップ425では、キーボード26におけるファンクションキーの中で、f8キーが操作されたか否かが判定される。f8キーが操作されたと判断されると、ステップ426に移る。ステップ426では、体腔Sの映像が通常表示であれば拡大表示に、拡大表示であれば通常表示に切り替えられる。そして、画像範囲の変更とともに各項目の文字情報の表示位置が、図3の表Tに基づき、配列Hに再設定される。文字情報およびポインタYの表示位置が変更されると、割り込みルーチンは終了する。ステップ425において、f8キーが操作されていないと判断されると、ステップ427に移る。なお、後述するように、f8キーが操作されることによって画像範囲が変更されると、ポインタYの位置が変更された画像範囲内に収まるように調整される。
【0081】
ステップ427では、その他の押されたキー(例えば、ESCキー)に対する処理が施される。他の押されたキーに対する処理が実行されると、この割り込みルーチンは終了する。
【0082】
このように、キーボード26の操作に対する処理がステップ401〜427において実行され、特にステップ403、405、407、409、411、413、426ではサブルーチンがそれぞれ実行される。以下では、各サブルーチンについて説明する。
【0083】
図9は、図8のステップ403において実行される、文字情報の入力に関するサブルーチンである。項目変数cp=1〜6に応じた文字情報に対しては、文字情報の入力、更新を行うことができ、その場合、カーソルCが画面に表示される。
【0084】
ステップ501では、文字情報の項目変数cpが0であるか否かが判定される。すなわち、カーソルCが画面に表示されているか否かが判定される。文字情報の項目変数cpが0(カーソルが画面に表示されていない)であると判断されると、文字は入力されず、サブルーチンは終了する。文字情報の項目変数cpが0ではない、すなわちカーソルCが画面に表示されていると判断された場合、ステップ502に移る。
【0085】
ステップ502では、操作された文字キーに対応する文字が、カーソルCが表示されていた位置に入力される。そして、ステップ503では、カーソルCの横方向の位置を示すカーソル位置変数cuに1が加算され、カーソルCが1つ右隣に移動する。ただし、カーソル位置変数cuが0のとき、先頭の文字にカーソルCは位置する。文字が入力され、カーソルCが右隣に移動されると、ステップ501〜503における文字入力に関する処理は終了する。
【0086】
図10は、図8におけるステップ405およびステップ409のサブルーチンである。図10を用いて、エンターキーおよび下向き移動キー↓の操作に対する処理について説明する。
【0087】
ステップ601では、文字情報の項目変数cpが6であるか否かが判定される。すなわち、スコープ10の名称である項目にカーソルCが表示されているか否かが判定される。
【0088】
ステップ601において、項目変数cp(=6)に応じた項目(スコープの名称)にカーソルCが表示されていると判断されると、ステップ602に移り、文字情報の項目変数cpは0に設定される。文字情報の項目変数cpが0に設定されると、ステップ604に移る。
【0089】
ステップ601において、項目変数cp=6に応じた項目(スコープの名称)にカーソルCが表示されていないと判断されると、ステップ603に移り、文字情報の項目変数cpに1が加算される。例えば、項目変数cpが医師名である項目に応じた値(cp=5)である場合、項目変数cpに1が加算されて6となり、スコープ10の名称である項目変数cp(=6)に設定される。文字情報の項目変数cpに1が加算されると、ステップ604に移る。
【0090】
ステップ604では、ステップ602あるいは603の実行により設定された文字情報の項目にカーソルCが移動され、カーソル位置変数cuが0に設定される。すなわち、エンターキーおよび下向き移動キー↓の操作により、次の項目の先頭位置にカーソルCが移動され、表示される。
【0091】
図11は、ステップ604のサブルーチンである。
【0092】
ステップ701では、図10のステップ602あるいは603で設定された文字情報の項目変数cpが0、すなわちカーソルCが画面に表示されないか否かが判定される。文字情報の項目変数cpが0であると判断されると、ステップ702に移り、カーソルCが画面から消去される。カーソルCが画面から消去されると、サブルーチンは終了する。ステップ701において、文字情報の項目変数cpが0ではないと判断された場合、ステップ703に移る。
【0093】
ステップ703では、図10のステップ602あるいは603で設定された文字情報の項目変数cpが1、すなわち患者名である項目か否かが判定される。文字情報の項目変数cpが1であると判断されると、ステップ704に移る。ステップ704では、カーソルCが表示される項目が移動するとカーソルCは移動する項目の先頭位置に表示されることを考慮し、カーソルCが、(6)式で示す位置に表示される。このとき、RAM34における配列Hに基づいて表示位置が求められる。
(x、y)=(H〔1、1〕、H〔1、2〕) ・・・・・(6)
【0094】
例えば、タイプBのスコープ10がプロセッサ20に接続され、体腔Sの映像が通常表示で画面に映し出されている場合(vs=5、6)、配列Hには表Tのvs=5、6の場合の値が設定されているので、(6)式より座標(x、y)=(1、1)の位置にカーソルCが表示される(図2の画面 (ハ)参照)。
【0095】
ステップ704において、カーソルCが表示されると、サブルーチンは終了する。ステップ703において、設定された文字情報の項目変数cpが1ではないと判断された場合、ステップ705に移る。
【0096】
以下、ステップ705、707、709、711、713では、ステップ703と同じように、設定された文字情報の項目変数cpが2〜6であるか否かがステップ番号の順に判定される。そして、ステップ706、708、710、712、714では、ステップ704と同じように、カーソルCが、(7)式で示すように、配列Hにある(x、y)座標のデータに基づいて表示される。
(x、y)=(H〔cp、1〕、H〔cp、2〕) ・・・・・(7)
このように、どれかの項目cpにカーソルCを表示する場合でも、その座標をスコープのタイプA/Bおよび通常/拡大表示に従って場合分けにより求めることなく、配列Hの示す座標位置に表示すればよい。
【0097】
例えば、配列Hに表Tの表示変数vs=3,4の値が設定されていると、ステップ707において設定された文字情報の項目変数cpが3、すなわち年齢の項目であると判断さると、ステップ708に移り、カーソルCは(7)式により座標(x、y)=(0、2)に表示される(画面 (ロ)参照)。
【0098】
カーソルCが項目変数cp(1〜6)に応じたいずれかの項目の先頭位置に表示されると、このサブルーチンは終了し、図10のステップ604に戻り、ステップ601〜604において実行されるエンターキーおよび下向き移動キー↓の操作に対する処理は終了する。
【0099】
図12は、図8におけるステップ407のサブルーチンである。図12を用いて、上向き移動キー↑の操作に対する処理を説明する。
【0100】
ステップ801では、文字情報の項目変数cpが0であるか否かが判定される。すなわち、カーソルCが画面に表示されていないか否かが判定される。
【0101】
ステップ801において、カーソルCが画面に表示されていない(cp=0)と判断されると、ステップ802に移り、文字情報の項目変数cpは6に設定される。文字情報の項目変数cpが6に設定されると、ステップ804に移る。
【0102】
ステップ801において、カーソルCが項目cp(1〜6)のどれかに表示されていると判断されると、ステップ803に移り、項目変数cpから1が引かれる。例えば、項目が項目変数cp=5に応じた医師名である場合、1が引かれて項目変数cpは性別に応じた項目変数cp=4となる。文字情報の項目変数cpから1が引かれると、ステップ804に移る。
【0103】
ステップ804では、ステップ802あるいは803の実行により設定された文字情報の項目にカーソルCが移動され、カーソルCの横の位置変数cuが0に設定される。すなわち、カーソルCが移動された項目において、その項目の先頭位置にカーソルCが表示される。なお、ステップ804では、図11のサブルーチンが実行される。
【0104】
ステップ804において、カーソルCが設定された項目に移動されると、サブルーチンは終了する。
【0105】
図13は、図8におけるステップ413、ステップ426のサブルーチンである。図13を用いて、f8キーの操作に対する処理について説明する。
【0106】
ステップ901では、表示変数vr=0であるか否かが判定される。すなわち、体腔Sの映像が、f8キーを操作する前の段階では通常表示で映し出されているか否かが判定される。
【0107】
ステップ901において、表示変数vrが0(通常表示)であると判断されると、ステップ902に移る。ステップ902では表示変数vrが1に設定され、体腔Sの映像が拡大表示で画面に映し出されることが決定される。表示変数vrが1に設定されると、ステップ903に移る。ステップ903では、タイプAのスコープ10がプロセッサ20に接続されているか否かが判定される。
【0108】
ステップ903において、タイプAのスコープ10がプロセッサ20に接続されていると判断されると、ステップ904に移る。ステップ904では、体腔Sの映像が、タイプAのスコープ10に応じた拡大表示で画面に表示される。すなわち、画像範囲IA’において体腔Sの映像が映し出される(図2の画面 (ロ)参照)。そして、項目変数cp(1〜8)に応じた各項目の表示位置が、表Tにより求められ(vs=3、4)、一時的にRAM34における配列Hに設定される。体腔Sの映像が拡大表示で映し出され、項目変数cp(1〜10)に応じた各項目の表示位置が表Tに基づいて配列Hに設定されると、ステップ910に移る。なお、ステップ904では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、3〕、h〔cp、4〕に格納された(x、y)座標))も、配列Hに設定される。
【0109】
ステップ903において、タイプAではなく、タイプBのスコープ10がプロセッサ20に接続されていると判断されると、ステップ905に移る。ステップ905では、体腔Sの映像が、タイプBのスコープ10に応じた拡大表示で画面に表示される。すなわち、画像範囲IB’において体腔Sの映像が映し出される(図2の画面 (ニ)参照)。そして、項目変数cp(1〜8)に応じた文字情報の各項目の表示位置が、表Tに基づいて求められ(vs=7、8)、配列Hに(x、y)座標のデータが設定される。体腔Sの映像が拡大表示で映し出され、各項目の表示位置が表Tに基づいて配列Hに設定されると、ステップ910に移る。なお、ステップ905では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、7〕、h〔cp、8〕に格納された(x、y)座標))も、配列Hに設定される。
【0110】
ステップ901において、表示変数vrが1、すなわちf8キーが操作される前では拡大表示であると判断されると、ステップ906に移る。ステップ906では、表示変数vrが0に設定され、体腔Sの映像が通常表示で画面に映し出されることが決定される。表示変数vrが0に設定されると、ステップ907に移る。ステップ907では、タイプAのスコープ10がプロセッサ20に接続されているか否かが判定される。
【0111】
ステップ907において、タイプAのスコープ10がプロセッサ20に接続されていると判断されると、ステップ908に移る。ステップ908では、体腔Sの映像が、タイプAのスコープ10に応じた通常表示で画面に表示される。すなわち、画像範囲IAにおいて体腔Sの映像が映し出される(図2の画面 (イ)参照)。そして、項目変数cp(1〜8)に応じた文字情報の各項目の表示位置が、表Tに基づいて求められ(vs=1、2)、配列Hに(x、y)座標データが設定される。体腔Sの映像が通常表示で画面に映し出され、各項目の表示位置が表Tに基づいて配列Hに設定されると、ステップ910に移る。なお、ステップ908では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、1〕、h〔cp、2〕に格納された(x、y)座標))も、配列Hに設定される。
【0112】
ステップ907において、タイプAではなく、タイプBのスコープ10がプロセッサ20に接続されていると判断されると、ステップ909に移る。ステップ909では、体腔Sの映像が、タイプBのスコープ10に応じた通常表示で画面に表示される。すなわち、画像範囲IBにおいて体腔Sの映像が映し出される(図2の画面 (ハ)参照)。そして、項目変数cp(1〜8)に応じた各項目の表示位置が、表Tに基づいて求められ(vs=5、6)、配列Hに(x、y)座標データが設定される。体腔Sの映像が通常表示で画面に映し出され、各項目の表示位置が表Tに基づいて配列Hに設定されると、ステップ910に移る。なお、ステップ909では、項目変数cp(=9、10)に応じたポインタYの表示位置に関する最大、最小限界位置の(x、y)座標(配列h〔cp、5〕、h〔cp、6〕に格納された(x、y)座標))も、配列Hに設定される。
【0113】
ステップ910では、現在表示されている文字情報の各項目が画面から消去される。そして、ステップ911では、ステップ904〜905、ステップ908〜909において配列Hに設定された表示位置に基づいて、文字情報が画面に表示される。新しい位置で各項目が画面に表示されると、サブルーチンは終了する。
【0114】
図14は、図8におけるステップ411のサブルーチンである。図14を用いて、f4キーの操作に対する処理について説明する。なお、図14のサブルーチンは、図13のステップ426および図4のステップ103が実行されるときにおいても、サブルーチンとして実行される。
【0115】
ステップ951では、体腔Sの映像が映し出される画像範囲内に、ポインタYが表示されるか否かが判定される。すなわち、前回表示されていたポインタYの表示位置が、現在の画像範囲内に収まるか否かが判定される。また、図8のステップ426においてf8キーが操作されると、画像範囲の変更に伴って配列Hに(x、y)座標が書き込まれた後、ポインタYが変更された画像範囲内に表示されるか否かが判定される。このとき、RAM34における配列Hに記憶されている(x、y)座標のデータ(H〔9、1〕、H〔9、2〕)と(H〔10、1〕、〔10、2〕)に基づいて、判別が行われる。
【0116】
ステップ951において、ポインタYが画像範囲内に表示されると判断されると、ステップ952に移り、ポインタYが所定の座標(vx、vy)の位置に表示される。ポインタYが画像範囲内に表示されると、ステップ954に移る。
【0117】
ステップ951において、ポインタYが画像範囲内に表示されないと判断されると、ステップ953に移る。ステップ953では、ポインタYの表示位置が、画像範囲内に収まるように変更される。例えば、画像範囲(イ)から(ロ)へ変更された時に図2の画面(ロ)においてポインタYの位置が画像範囲外の(vx、vy)=(2、15)である場合、ポインタYは、配列H〔9、1〕に基づき、(6、15)に表示される。このとき、ポインタの座標vxは、vx=6と設定される。ポインタYが、表示位置の変更を伴って表示されると、ステップ954に移る。
【0118】
ステップ954では、ポインタ表示変数vmが、ポインタYが表示されていることを示す1に設定される。ポインタ表示変数vmが1に設定されると、このサブルーチンは終了する。
【0119】
以上のように本実施形態によれば、体腔Sの映像が映し出される画像範囲に変更がある場合、表Tに基づいて文字情報およびポインタYの表示位置を定め、画面に文字情報およびポインタYを定められた位置にそれぞれ表示する。従来では、画像範囲の変更があると、各項目毎に表示位置を定めていた。すなわち、各項目毎に、スコープ10のタイプおよび表示状態(通常/拡大)を判別(場合分け)して、表示位置を定めていた。一方、本実施形態では、画像範囲の変更があると、その表示状態でのすべての項目の表示位置を表Tから求めて配列Hに設定し、各項目の文字情報を表示する。各項目ごとに表示状態を判別しながら文字情報を表示することなく文字情報を表示できるため、文字情報の表示処理が迅速に行われ、また、プログラム構造が簡素化される。
【0120】
本実施形態では、画像範囲の変更に応じて、文字情報の表示位置およびポインタYの表示可能な範囲を示す座標が、配列Hに設定される。そして、配列Hに設定された(x、y)座標データに基づいて、文字の入力、カーソルCの移動およびポインタYの移動が実行される。従来では、文字の入力、カーソルCの移動およびポインタYの移動が実行される場合、その都度スコープ10のタイプおよび表示状態の判別が行われていた。特に、拡大表示の場合、先に述べたようにスコープ10のタイプによってx、y座標データが異なるため(図2参照)、このような判別処理が必要である。しかしながら、本実施形態では、配列Hに設定された(x、y)座標データに基づいて、文字の入力、カーソルCの移動およびポインタYの移動が実行される。すなわち、スコープ10の種類、画像の通常/拡大表示などによる判別(場合分け)を行うことなく文字入力などの処理が実行される。そのため、アルゴリズム(プログラム)が煩雑にならず、プログラムコードが簡素化される。その結果、プログラムの保守点検が容易となり、内視鏡装置全体の動作に対し信頼性が向上する。
【0121】
また、プログラムコードが簡素化されることから、プログラムコードを格納するメモリの容量が小さくて済む。
【0122】
なお、スコープ10の種類は、本実施形態で示したタイプA、タイプBに限定されない。また、RAM34における配列Hを再設定するのではなく、配列h〔10、8〕と変数vs(1≦vs≦8)を用いて使用する配列の列を画面の切り替えに応じて求め、そのx、y座標を用いてもよい。カラーテレビジョン方式に関しては、NTSC方式に限定されず、例えば、PAL方式を適用させてもよい。
【0123】
なお、文字情報のみを表Tに基づいて定め、画像範囲の変更に応じて、画面に表示するようにしてもよい。
【0124】
【発明の効果】
以上のように本発明によれば、体腔映像に対する画像範囲の変更などに応じて文字情報や指示マークの表示位置を変更する場合、簡素なプログラムによる表示処理を実行することができる。
【図面の簡単な説明】
【図1】本実施形態である内視鏡装置の電気回路を示したブロック図である。
【図2】モニタに表示される画面を示した図である。
【図3】スコープの種類および表示状態に対応する文字情報とポインタの表示位置を示す表である。
【図4】内視鏡装置全体の動作を示すフローチャートである。
【図5】キーボードの操作に対する割り込み処理である。
【図6】図4におけるステップ102のサブルーチンである。
【図7】図4におけるステップ103のサブルーチンである。
【図8】図5における割り込みルーチンである。
【図9】図8におけるステップ403のサブルーチンである。
【図10】図8におけるステップ405、409のサブルーチンである。
【図11】図10におけるステップ604のサブルーチンである。
【図12】図8におけるステップ407のサブルーチンである。
【図13】図8におけるステップ413、426のサブルーチンである。
【図14】図8におけるステップ411のサブルーチンである。
【符号の説明】
10 スコープ
20 プロセッサ
26 キーボード
33 ROM(不揮発性メモリ)
34 RAM(揮発性メモリ)
49 モニタ
T 表(表示位置参照表)
Y ポインタ(指示マーク)
IA 画像範囲
IA’画像範囲
IB 画像範囲
IB’画像範囲
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an endoscope apparatus that inserts an endoscope into a body cavity such as the stomach and displays an image of the body cavity on a monitor to inspect the state of an affected part, and more particularly, to display character information displayed together with the image of the body cavity on a monitor screen. It relates to the adjustment of the display position.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, an endoscope apparatus that can display character information such as a patient name and an ID number and an instruction mark (for example, an arrow) indicating an affected part on a screen on which a body cavity image is displayed is known. In such an endoscope apparatus, the image range (display range) of the body cavity image displayed on the screen is changed based on the type of endoscope based on the characteristics of the image sensor and the switching operation of normal / enlarged display of the body cavity image. At the same time, the display position of the character information and the instruction mark is also changed. At this time, the character information of each item and the display position of the instruction mark are obtained by dividing each case according to the type of endoscope and the display state of the body cavity image.
[0003]
[Problems to be solved by the invention]
However, when determining the display position of character information and instruction marks by case, the number of cases of the algorithm (program) for displaying character information and instruction marks increases due to an increase in the types of endoscopes, etc. Along with this, it becomes complicated. For this reason, the program code for the operation of the entire endoscope apparatus increases, making it difficult to maintain and inspect the program. Further, since the program code increases, the capacity of the memory for storing the program cannot be reduced.
[0004]
It is an object of the present invention to obtain an endoscope apparatus capable of executing a quick display process with a simple program when changing the display position of character information and instruction marks according to a change in the image range with respect to a body cavity image. Objective.
[0005]
[Means for Solving the Problems]
An endoscope apparatus according to the present invention is an endoscope apparatus that includes a scope for capturing a subject image and a processor that processes an image signal corresponding to the subject image obtained by the imaging. Display means for displaying an instruction mark on a screen of a monitor connected to the processor, and image range changing means for changing an image range in which a subject image is projected on the screen, wherein the display means includes the image range, character information, and instructions. Based on the display position reference table showing the correspondence with the display position of the mark, by determining the display position of the character information and the instruction mark according to the image range of the subject image displayed on the screen, the character information and the instruction mark It has a display position adjusting means for displaying on the screen according to the change of the image range. By determining the display position of the character information based on the display position reference table in this manner, when the image range is changed, the position of the character information corresponding to the changed image range is determined from the display position reference table, and Since the position of the instruction mark is determined based on the display position reference table, a quick display process can be executed. In addition, since the display position reference table may be used, the program is simplified.
[0006]
It is desirable that the image range changing means change the image range based on the replacement of the scope and switching between normal display corresponding to the number of pixels of the image sensor provided in the scope and enlarged display having a larger image range than the normal display. In this case, the display position reference table shows the display position of each item of character information according to the scope type and normal and enlarged display, and the limit position where the instruction mark according to the scope type and normal and enlarged display can be displayed. The table shown is desirable. For example, the display position reference table indicates position coordinates at which the first character in each item of character information is displayed.
[0007]
The display position adjustment means displays the character information on the screen according to the change of the image range by obtaining the display position of the character information according to the image range of the subject image projected on the screen from the display position reference table. Is desirable. Further, it is desirable that the display position adjusting means displays the instruction mark within the image range in accordance with the change of the image range by referring to the limit position of the instruction mark shown in the display position reference table.
[0008]
Nonvolatile memory for storing display position reference table, and volatile memory for temporarily storing a part of display position of each item of character information shown in display position reference table and limit position of indication mark Preferably, the volatile memory stores the display position of the character information and the limit position of the instruction mark according to normal display or enlarged display of any kind of scope. In the case of having such a volatile memory and a non-volatile memory, the display position adjusting means, when the image range is changed by the image range changing means, the display position of the character information corresponding to the changed image range and the limit of the indication mark Reads the position from the non-volatile memory, temporarily stores it in the volatile memory, displays the character information based on the display position of the character information stored in the volatile memory, and indicates by referring to the limit position of the indication mark It is desirable to display the mark within the changed image range. By reading the display positions of all items of character information corresponding to the changed image range from the nonvolatile memory, the character information is displayed on the screen without sequentially determining the display position for the changed image range for each item. Is displayed.
[0009]
Furthermore, the movement of the cursor, the input of characters, and the movement of instruction marks on the screen executed by the operation of a keyboard connected to the processor are the limits of the display position of the character information stored in the volatile memory and the instruction marks. It is desirable to be performed based on location. Since character input is performed based on the display position and limit position stored in the volatile memory, the desired display position can be obtained without determining the current image range each time character input or cursor movement is performed. A character is input to or the cursor or instruction mark moves.
[0010]
The display position adjusting means desirably displays the instruction mark within the image range in accordance with the change of the image range. The display position adjusting means desirably adjusts the display position of the character information so that the character information is displayed outside the image range in accordance with the change of the image range.
[0011]
It is desirable that the character information is character information related to the subject image. The instruction mark is preferably a mark for pointing a specific portion on the screen with respect to the subject image.
[0012]
An endoscope apparatus according to the present invention is an endoscope apparatus that includes a scope for capturing a subject image and a processor that processes an image signal corresponding to the subject image obtained by the imaging, and includes character information together with the subject image. Display means for displaying on the screen of a monitor connected to the processor, and image range changing means for changing the image range on which the subject image is projected on the screen, wherein the display means includes the image range and the display position of the character information. Display position for displaying character information on the screen according to the change of the image range by obtaining the display position of the character information according to the image range of the subject image projected on the screen based on the display position reference table indicating the correspondence It has an adjustment means. Alternatively, the processor of the endoscope apparatus according to the present invention is connected to a scope for capturing a subject image and processes the image signal corresponding to the subject image obtained by imaging the scope. A display unit for displaying character information together with the subject image on a monitor screen connected to the processor, and an image range changing unit for changing an image range in which the subject image is displayed on the screen. Based on the display position reference table showing the correspondence between the image range and the display position of the character information, the character information is converted into the image range by obtaining the display position of the character information corresponding to the image range of the subject image displayed on the screen. It has a display position adjusting means for displaying on the screen according to the change.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described with reference to the drawings.
[0014]
FIG. 1 is a block diagram showing an electric circuit of the endoscope apparatus according to the present embodiment.
[0015]
As shown in FIG. 1, in this endoscope apparatus, a scope (endoscope) 10 is inserted into a body cavity S such as a stomach, and an image of the body cavity S is displayed on a monitor 49 via a processor 20. The scope 10 is connected to the processor 20 via the connection unit 18. When the scope 10 is connected to the processor 20, information related to the type of the scope 10 is read from the read-only ROM 19.
[0016]
A light guide 14 that passes light from a lamp 22 that serves as a light source is provided in the scope 10, and the light guided from the lamp 22 is incident on the light guide 14 by a condenser lens 24 that converges the light. 14a. The light passing through the light guide 14 is irradiated to the body cavity S through the light distribution lens 15 that widens the light distribution angle. The amount of light applied to the body cavity S at this time is adjusted by a diaphragm 25 provided between the lamp 22 and the condenser lens 24, and the diaphragm 25 opens and closes based on a signal sent from the diaphragm control circuit 28. This increases or decreases the amount of light.
[0017]
An image of the body cavity S is imaged on an image sensor 13 which is a CCD (solid state image sensor) through a lens 12, and an image signal is generated by photoelectric conversion. The image signal is sent from the image sensor 13 to the processor 20 via the connector 16. In the present embodiment, the NTSC system is applied as the color television standard system, and an image signal for one frame is sent to the processor 20 every 1/30 second interval.
[0018]
The image signal sent from the scope 10 is sent to the image signal processing unit 21. In the image signal processing unit 21, the image signal is separated for each signal corresponding to each color of R, G, and B, and processing such as gamma correction is performed on each separated signal. Also, conversion into a luminance signal is performed, and the luminance signal is sent to a microcomputer control unit (CPU) 30 for light amount control by opening and closing the diaphragm 25.
[0019]
Character information such as a patient name sent from a CRTC (CRT Controller) 32 is added to the image signal output from the image signal processing unit 21 and sent to the monitor 49. On the monitor 49, character information is displayed on the screen together with the image of the body cavity S.
[0020]
A signal generated by the operation of the panel switch 27 and the keyboard 26 is input to the CPU 30. When a signal related to the enlarged display of the image of the body cavity S is input to the CPU 30 by operating the keyboard 26, a signal related to the enlarged display is sent to the image signal processing unit 21, whereby an image signal corresponding to the enlarged display state is sent to the monitor 49. Sent. At this time, an image signal corresponding to the enlarged display is obtained by a conventionally known interpolation process. Further, a signal relating to the display position such as character information corresponding to the enlarged display is sent from the CPU 30 to the CRTC 32. The processor 20 is provided with a timing generator (not shown) for adjusting the input / output timing of signals to / from circuits such as the image signal processing unit 21 and the CCD 13, and a clock pulse is output from the timing generator to each circuit. The Thereby, the character information is displayed on the monitor 49 at a predetermined position together with the body cavity image. A synchronization signal is sent to the image signal processing unit 21 in accordance with the NTSC system.
[0021]
In the ROM 33 (nonvolatile memory) in the CPU 30, the relationship between the type of the scope 10 and the normal / enlarged display of the image of the body cavity S and the display position of character information and the like is stored in advance as data. A program for executing the operation of the entire endoscope apparatus is also stored. In a RAM (volatile memory) 34, data related to the display position such as character information corresponding to the type of the currently connected scope 10 and the current screen display state is read from the ROM 33 and temporarily stored. Has been.
[0022]
The panel switch 27 is provided with an up switch 27A, a down switch 27B, an auto / manual switch 27C, etc., and the brightness of the image displayed on the monitor 49 is adjusted by the operation of the up switch 27A and the down switch 27B. . Further, by operating the auto / manual changeover switch 27C, the diaphragm 25 is set at a predetermined position, and the brightness of the image on the monitor 49 is made constant, or the brightness of the image on the monitor 49 becomes constant. One of the automatic dimming types in which the aperture 25 is automatically adjusted is selected.
[0023]
A signal for turning on the lamp 22 is input to the lamp control circuit 23, whereby the lamp 22 is turned on. An RTC (Real Time Clock) 31 reads the current date / time.
[0024]
FIG. 2 shows a screen displayed on the monitor 49. Here, a screen corresponding to the types A and B of the scope 10 and a screen that is normally / enlargedly displayed with respect to the image of the body cavity S for each type of the scope 10 are shown. In the present embodiment, the scope 10 is classified based on the characteristics (number of pixels) of the image sensor 13.
[0025]
On the screen of the monitor 49, an image of the body cavity S is displayed within a certain image range. Then, the name of the patient being examined, the ID number, age, and sex of the patient, the name of the doctor (operator) being examined, the name of the connected scope 10, and the current date / time Such character information is displayed on the screen together with the image of the body cavity S.
[0026]
When the type A scope 10 is connected and the image of the body cavity S is displayed in the normal display, the screen 49 is displayed on the monitor 49. At this time, the image of the body cavity S is displayed in the image range IA. And each item (patient name-time) of character information is displayed in the defined position. The x and y coordinates are coordinates set on the screen, and the upper left corner of the screen is the origin. X increases along the right direction and y increases along the downward direction.
[0027]
Furthermore, in order to show the affected part discovered from the image of the body cavity S, a pointer (arrow) Y pointing to the affected part is displayed in the image range IA.
[0028]
When character information is input by operating the keyboard 26 (FIG. 1), as will be described later, the character at the position of the cursor C (here, “D” in the doctor name) is updated. When a character is input, the cursor C moves to the right.
[0029]
When the image of the body cavity S is displayed in an enlarged display by operating the keyboard 26, a screen (B) is displayed on the monitor 49. As represented by the screen (b), the image of the body cavity S is displayed in the image range IA ′ near the center of the screen. The character information is displayed at each corner on the screen according to the moved image range IA ′. This enlarged display is an enlarged display when the type A scope 10 is used.
[0030]
As described above, when the display is switched from the normal display to the enlarged display, the display position of the character information is changed around the frame of the image range IA ′ so that each item of the character information is displayed as much as possible outside the image range IA ′. Is done. As will be described later, the display position is adjusted so that the pointer Y is always displayed within the image range. That is, when the position of the pointer Y goes out of the image range when the display state is switched, the display position is adjusted so that it is displayed within the image range.
[0031]
When the type B scope 10 is connected to the processor 20 and the image of the body cavity S is displayed in a normal state, a screen (C) is displayed on the monitor 49. As shown in the screen (A) and the screen (C), the image ranges IA and IB in which the image of the body cavity S is displayed differ depending on the type of the scope 10. This difference in the image range is because there is a difference in the number of pixels of the image sensor 13 depending on the type of the scope 10. Note that the number of pixels of the image sensor 13 used in the scope 10 is smaller than the number of pixels of the image sensor used in a digital video camera or the like. Therefore, in the normal display, the body cavity image is displayed on a part of the entire screen.
[0032]
When the image of the body cavity S is displayed in an enlarged display by the operation of the keyboard 26, the screen (d) is displayed on the monitor 49. At this time, the image of the body cavity S is displayed in the image range IB ′. This enlarged display is an enlarged display when the type B scope 10 is used.
[0033]
FIG. 3 shows a table T (display position reference table) indicating the character information and the display position of the pointer Y according to the type of the scope 10 and the normal / enlarged display of the body cavity S. In the present embodiment, two scopes 10 of type A and type B can be used. This table T is stored in the ROM 33 as data.
[0034]
In the table T, the display position of the character information is represented by (x, y) coordinates for each item according to the type of the scope 10 and the normal / enlarged display for the image of the body cavity S. That is, the display position of each item of character information corresponding to the four image ranges IA, IA ′, IB, and IB ′ is set. These four image ranges correspond to (A) to (D) in Table T. However, each coordinate (x, y) indicates the position of the character at the head of each character information.
[0035]
At this time, the coordinates (x, y) of the display position are represented by the following array h of 10 rows and 8 columns. The item variable cp is a variable corresponding to each item of character information and the pointer Y. The display variable vs is a variable corresponding to the x and y coordinates of the display position according to the type of the scope 10 and the normal / enlarged display. For example, when the type A scope 10 is connected, the x and y coordinates of each item in the normal display correspond to vs = 1, 2, and the x and y coordinates of each item in the enlarged display correspond to vs = 3, Corresponding to 4. Similarly, when the type B scope 10 is connected, vs = 5, 6 in the normal display and vs = 7, 8 in the enlarged display.
(X, y) = (h [cp, vs], h [cp, vs]) (1)
[0036]
Also, for example, when a type B scope 10 is connected and an image of the body cavity S is displayed in a normal display, the position (in the first character) where the doctor name as an item corresponding to the item variable cp = 5 is displayed. Since the position of a certain D) is vs = 5, 6, coordinates (x, y) = (h [5, 5], h [5, 6]) = (24, 13) (FIG. 2). Screen (c)).
[0037]
The array h corresponds to an address in the ROM 33, and the corresponding x and y coordinate values are stored as data in the array h. Further, in the array H of 10 rows and 2 columns according to the addresses of the RAM 34, as described later, the data of the (x, y) coordinates in any of (i) to (d) of Table T is the same. Stored. Here, the array H [cp, 1] represents the x coordinate of the display item cp, and the array H [cp, 2] represents the y coordinate. This indicates that (x, y) coordinate data corresponding to the type of the currently connected scope 10 and the display state of the screen is read from the array h and temporarily stored.
[0038]
Since the range in which the pointer Y is displayed is within the image ranges IA, IA ′, IB, and IB ′, the moving range of the pointer Y changes according to the change in the image range. Table T shows the minimum and maximum limit positions in the x and y directions in the range in which the pointer Y can be displayed for each image range. For example, when the type A scope 10 is connected and the image of the body cavity S is displayed in an enlarged display, the range in the x direction in which the pointer Y can move is 6 to 35 (see the screen (b) in FIG. 2).
[0039]
By using such a table T, the display position of the character information corresponding to the currently selected image range and the type of the connected scope is obtained, and the display range of the pointer is set. In the case of enlarged display, the number of characters that can be displayed per line (along the x direction) differs between the enlarged display in the type B scope 10 and the type A scope 10. As shown in FIG. 2, the screen (b) has 42 characters and the screen (d) has 38 characters. Such a difference in the number of display characters is caused by a difference in the number of pixels of the image sensor 13 as is conventionally known. Therefore, even if the display position on the screen is almost the same, the x and y coordinates of the display position of the character information differ depending on the type A and B of the scope 10 (the date and time items in FIG. reference).
[0040]
FIG. 4 is a flowchart showing an overall flow regarding the operation of the entire endoscope apparatus. In step 101, the array H, each variable, and the diaphragm 25 are set to initial values by setting the power supply to the ON state. Note that the scope 10 is set as type A as a default, and the image of the body cavity S is set to be normally displayed. Therefore, (x, y) coordinate data relating to (A) in Table T is set (stored) in the array H.
[0041]
In step 102, the current date / time is read from the RTC 31 in the CPU 30, and the date / time is displayed on the monitor 49. In step 103, processing when the scope 10 is connected is executed.
[0042]
In step 104, for example, the brightness of the image of the body cavity S in response to the operation of the panel switch 27 is adjusted.
[0043]
Such an operation of the entire endoscope apparatus is repeatedly performed until the power is turned off, and subroutines are executed in steps 102 to 104, respectively.
[0044]
FIG. 5 is an interrupt routine for the operation of the keyboard 26. This interruption routine is executed by operating the keyboard 26 during the processing of step 102 to step 104. The interrupt routine process will be described later with reference to FIG.
[0045]
In the following, the clock process (step 102) and the endoscope related process (step 103) in FIG. 4 will be described, and then the interrupt routine for the keyboard operation in FIG. 5 will be described.
[0046]
FIG. 6 is a subroutine of step 102 in FIG.
[0047]
In step 201, based on the date / time read from the RTC 31, it is determined whether the date / time has changed from the previous value. If it is determined that the date / time has changed, the process proceeds to step 202. If it is determined that the date / time has not changed, the subroutine ends.
[0048]
In step 202, the date (item variable cp = 7) is displayed on the screen of the monitor 49 based on the (x, y) coordinate data stored in the array H in the RAM 34. For example, when the type A scope 10 is connected and the image of the body cavity S is displayed in the normal display, the date is displayed on the screen so that the coordinates (24, 9) are at the head position of the character (see FIG. Screen 2 (b)).
[0049]
In step 203, the hour, minute, second (item variable cp = 8) is displayed on the screen based on the data of the (x, y) coordinates in the array H, as with the date. For example, when the type A scope 10 is connected in the normal state, the hour, minute and second are displayed at the position shown in the screen (A) in FIG. At this time, if the display is enlarged, the data of the (x, y) coordinates relating to (b) of Table T is set in the array H, so the hour, minute and second are at the positions shown in the screen (b) of FIG. Is displayed. By using the array H in this manner, the date and time and the hour, minute, and second can be displayed by the same processing without dividing the image ranges of (A) to (D) in Table T. When the hour, minute, and second are displayed at a predetermined position on the screen, the clock processing in steps 201 to 203 ends.
[0050]
FIG. 7 is a subroutine of step 103 in FIG. Processing when the scope 10 is connected will be described with reference to FIG.
[0051]
In step 301, it is determined whether or not a new scope 10 is connected to the processor 20. If it is determined that a new scope 10 is connected, the process proceeds to step 302. In step 302, it is determined whether or not the connected scope 10 is a type A scope 10.
[0052]
If it is determined in step 302 that the type A scope 10 is connected, the process proceeds to step 303. In step 303, it is determined whether or not the image of the body cavity S is displayed in an enlarged display. Here, the display variable vr = 1 indicates an enlarged display, and the display variable vr = 0 indicates a normal display.
[0053]
If it is determined in step 303 that the display variable vr = 0, that is, normal display, the process proceeds to step 304, where the subject image is displayed in the type A normal display image range. Further, in step 304, the display position of each item of character information is obtained from the table T. Here, the display position of each item is an (x, y) coordinate according to (A) of Table T. The values of these (x, y) coordinate data are set in the array H. At this time, the coordinate (x, y) data of each item is temporarily stored in the array H of the RAM 34 until the scope 10 is newly connected or switched to enlarged display. In this embodiment, the display position of the character information on the normal screen is a fixed position regardless of the type (type A and type B) of the scope 10. When the x and y coordinate data, which is the display position of each item, is set in the array H, the process proceeds to step 305. In step 304, the (x, y) coordinates (arrays h [cp, 1], h [cp, 2) of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0054]
In step 305, each item of character information is displayed on the screen according to the display position obtained in step 304. At this time, the name of the newly connected scope 10 is displayed on the screen. When each item of character information is displayed on the screen, the subroutine ends.
[0055]
If it is determined in step 303 that the display variable vr = 1, that is, the display is enlarged, the process proceeds to step 306. In step 306, the subject image is displayed in the type A enlarged display image range, and the display position of each item is obtained from the table T as in step 304. At this time, (x, y) coordinate data in (b) of Table T is temporarily set in the array H in the RAM 34. When the display position of each item is set in the array H, the process proceeds to step 307. In step 306, the (x, y) coordinates (arrays h [cp, 3], h [cp, 4] of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0056]
In step 307, character information is displayed on the screen according to the display position obtained in step 306. At this time, the name of the newly connected scope 10 is displayed on the screen.
[0057]
If it is determined in step 302 that the type B scope 10 is connected instead of type A, the process proceeds to step 308. In step 308, it is determined whether or not the display variable vr = 0.
[0058]
If it is determined in step 308 that the display variable vr = 0, that is, the image of the body cavity S is displayed in the normal display, the process proceeds to step 309. In step 309, the subject image is displayed in the image range of the normal display of type B, and the display position of each item is obtained from the table T. At this time, the (x, y) coordinate data of (c) in Table T is set in the array H in the RAM 34. When the display position of each item is set in the array H, the process proceeds to step 310. In step 309, the (x, y) coordinates (arrays h [cp, 5], h [cp, 6) of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0059]
In step 310, character information is displayed on the screen according to the display position obtained in step 309. At this time, the name of the newly connected scope 10 is displayed on the screen. When the character information is displayed on the screen, the subroutine ends.
[0060]
If it is determined in step 308 that the display variable vr = 1, that is, the image of the body cavity S is displayed in an enlarged display, the process proceeds to step 311. In step 311, the subject image is displayed in the type B enlarged display image range, and the display position of the character information of each item cp is obtained from the table T. At this time, (d) (x, y) coordinate data of (T) in Table T is set in the array H in the RAM 34. When the display position of the character information of each item cp is set in the array H, the process proceeds to step 312. In step 311, the (x, y) coordinates (arrays h [cp, 7], h [cp, 8) of the maximum and minimum limit positions related to the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0061]
In step 312, the character information is displayed on the screen according to the display position obtained in step 311. At this time, the name of the newly connected scope 10 is displayed on the screen. When the character information is displayed on the screen, the subroutine ends.
[0062]
If it is determined in step 301 that the scope 10 is not newly connected, the process proceeds to step 313. In step 313, it is determined whether or not the scope 10 has been removed from the processor 20 this time. If it is determined that the scope 10 has not been removed this time, this subroutine ends. If it is determined that the scope 10 has been removed, the process proceeds to step 314.
[0063]
In step 314, the name of the scope 10 together with the image of the body cavity S is deleted from the screen. When the name of the scope 10 is deleted, this subroutine ends.
[0064]
As described above, when the scope 10 is newly connected to the processor 20, the body cavity image is displayed in the image ranges IA and IA according to the type (A or B) of the connected scope 10 and the display state (normal or enlarged display). It is displayed in the image range of ', IB, IB'. Further, according to the type (A or B) of the connected scope 10 and the display state (normal or enlarged display), (x, y) coordinate data is read from the table T and reset to the array H, and each item is set. The display position of is adjusted.
[0065]
FIG. 8 is the interrupt routine of FIG. Processing for the operation of the keyboard 26 will be described with reference to FIG. This interruption routine is started by operating any one key on the keyboard 26.
[0066]
In step 401, it is determined whether or not the pointer Y is displayed on the screen of the monitor 49. Here, it is assumed that the pointer Y is displayed on the screen when the pointer display variable vm = 1, and the pointer Y is not displayed on the screen when the pointer display variable vm = 0. When the pointer Y is displayed on the screen, an operation on the pointer Y is executed, and when the pointer Y is not displayed on the screen, input of character information is executed.
[0067]
If it is determined in step 401 that the pointer display variable vm = 0, that is, the pointer Y is not displayed on the screen, the process proceeds to step 402. In step 402, it is determined whether or not a character key (character key) has been operated on the keyboard 26. If it is determined that the character key has been operated, the process proceeds to step 403, and the character corresponding to the operated character key is input at the position of the cursor C. When a character is input at the position of the cursor C and the cursor C moves to the right by one, this interrupt routine ends. If it is determined in step 402 that the character key has not been operated, the process proceeds to step 404.
[0068]
In step 404, it is determined whether the enter key (execution key) has been operated on the keyboard 26 or not. If it is determined that the enter key has been operated, the process proceeds to step 405 where the position of the cursor C is moved to the next character information item. At this time, the value of the item variable cp of the character information increases by one. When the position of the cursor C is moved to the next character information item, the interrupt routine ends. If it is determined in step 404 that the enter key has not been operated, the process proceeds to step 406.
[0069]
In step 406, it is determined whether or not the upward movement key ↑ has been operated on the keyboard 26. If it is determined that the upward movement key ↑ has been operated, the process proceeds to step 407. In step 407, the cursor C is moved to the next character information item in the direction opposite to the direction in which the cursor C moves in step 405. When the cursor C is moved to the next character information item, the value of the item variable cp is decremented by 1, and the interrupt routine ends. If it is determined in step 406 that the upward movement key ↑ has not been operated, the process proceeds to step 408.
[0070]
In step 408, it is determined whether or not the downward movement key ↓ is operated on the keyboard 26. If it is determined that the downward movement key ↓ has been operated, the process proceeds to step 409. In step 409, the same processing as in step 405 is executed, the cursor C is moved to the next character information item, and the value of the item variable cp is incremented by one. When the cursor C is moved to the next character information item, the interrupt routine ends. If it is determined in step 408 that the downward movement key ↓ has not been operated, the process proceeds to step 410.
[0071]
In step 410, it is determined whether or not the f4 key among the function keys on the keyboard 26 has been operated. By operating the f4 key, the pointer Y is displayed on the screen. If it is determined that the f4 key has been operated, the process proceeds to step 411. In step 411, the pointer Y is displayed on the screen based on the (x, y) coordinate data read from the table T and stored in the array H so as to be within the image range in which the image of the body cavity S is projected. The When the pointer display variable vm is set to vm = 1 and the pointer Y is displayed on the screen, the interrupt routine ends. If it is determined in step 410 that the f4 key has not been operated, the process proceeds to step 412.
[0072]
In step 412, it is determined whether or not the f8 key among the function keys on the keyboard 26 has been operated. By operating the f8 key, the image of the body cavity S is switched to either enlargement / normal display. That is, when the image of the body cavity S is displayed in the normal display, the display is switched to the enlarged display, and when the image of the body cavity S is displayed in the enlarged display, the display is switched to the normal display. If it is determined that the f8 key has been operated, the process proceeds to step 413, and the image of the body cavity S is displayed on the screen in either normal / enlarged display. Then, the display position of each item, that is, the x and y coordinate data of the item variable cp (1 to 10) is reset to the array H based on the table T in FIG. When the image of the body cavity S is displayed on the screen, the interruption routine ends. If it is determined in step 412 that the f8 key has not been operated, the process proceeds to step 414.
[0073]
In step 414, processing for other pressed keys (eg, ESC key) is performed. When processing for another key is executed, this interrupt routine ends.
[0074]
If it is determined in step 401 that the pointer display variable vm = 1, that is, the pointer Y is displayed on the screen, the process proceeds to step 415.
[0075]
In step 415, it is determined whether or not the upward movement key ↑ has been operated on the keyboard 26. If it is determined that the upward movement key ↑ has been operated, the process proceeds to step 416. In step 416, the position (coordinates) of the pointer Y moves up by one only when the pointer Y satisfies the following conditional expression.
vy> H [9, 2] (2)
Expression (2) is a conditional expression for preventing the pointer Y from being displayed at the upper corner of the screen beyond the image range, vy is the y coordinate of the pointer Y, and H [9,2] is the pointer Y. Represents the minimum value of the y coordinate. At this time, the determination is performed based on the data in the array H [9, 2]. When the position of the pointer Y moves up by one, the value of vy decreases by one and the interrupt routine ends. If the pointer Y exceeds the image range, the pointer Y is not moved. If it is determined in step 415 that the upward movement key ↑ has not been operated, the process proceeds to step 417.
[0076]
In step 417, it is determined whether or not the downward movement key ↓ has been operated on the keyboard 26. If it is determined that the downward movement key ↓ has been operated, the process proceeds to step 418. In step 418, the position (coordinates) of the pointer Y moves down by one only when the pointer Y satisfies the following conditional expression.
vy <H [10, 2] (3)
Expression (3) is a conditional expression for preventing the pointer Y from being displayed at the lower corner of the screen beyond the image range. When the position of the pointer Y moves down by one, the value of vy increases by one and the interrupt routine ends. If it is determined in step 417 that the downward movement key ↓ has not been operated, the process proceeds to step 419.
[0077]
In step 419, it is determined whether or not the leftward movement key ← has been operated on the keyboard 26. If it is determined that the leftward movement key ← has been operated, the routine proceeds to step 420. In step 420, the pointer Y moves one position to the left in the x direction only when the pointer Y satisfies the following conditional expression.
vx> H [9, 1] (4)
Expression (4) is a conditional expression for preventing the pointer Y from being displayed at the left corner of the screen beyond the image range, and vx represents the x coordinate of the pointer Y. H [9,1] represents the minimum value of the x coordinate of the pointer Y. When the position of the pointer Y moves to the left by one, the value of vx decreases by one and the interrupt routine ends. If it is determined in step 419 that the leftward movement key ← is not operated, the process proceeds to step 421.
[0078]
In step 421, it is determined whether or not the rightward movement key → has been operated on the keyboard 26. If it is determined that the rightward movement key → has been operated, the routine proceeds to step 422. In step 422, only when the pointer Y satisfies the following conditional expression, the position of the pointer Y moves to the right by one in the x direction.
vx <H [10, 1] (5)
Expression (5) is a conditional expression for preventing the pointer Y from being displayed at the right corner of the screen beyond the image range. When the position of the pointer Y moves to the right by one, the value of vx increases by one and the interrupt routine ends. If it is determined in step 421 that the rightward movement key → has not been operated, the process proceeds to step 423.
[0079]
In step 423, it is determined whether or not the f4 key among the function keys on the keyboard 26 has been operated. If it is determined that the f4 key has been operated, the process proceeds to step 424. In step 424, the pointer Y is erased from the screen, and the pointer display variable vm is set to zero. When the pointer Y is erased from the screen, the interrupt routine ends. If it is determined in step 423 that the f4 key has not been operated, the process proceeds to step 425.
[0080]
In step 425, it is determined whether or not the f8 key among the function keys on the keyboard 26 has been operated. If it is determined that the f8 key has been operated, the process proceeds to step 426. In step 426, if the image of the body cavity S is a normal display, the display is switched to an enlarged display, and if it is an enlarged display, the display is switched to a normal display. Then, the display position of the character information of each item is reset to the array H based on the table T in FIG. When the character information and the display position of the pointer Y are changed, the interrupt routine ends. If it is determined in step 425 that the f8 key has not been operated, the process proceeds to step 427. As will be described later, when the image range is changed by operating the f8 key, the position of the pointer Y is adjusted to fall within the changed image range.
[0081]
In step 427, other pressed keys (for example, ESC key) are processed. When processing for another pressed key is executed, the interrupt routine ends.
[0082]
In this way, the processing for the operation of the keyboard 26 is executed in steps 401 to 427, and in particular, the subroutines are executed in steps 403, 405, 407, 409, 411, 413, and 426, respectively. Below, each subroutine is demonstrated.
[0083]
FIG. 9 is a subroutine relating to input of character information, which is executed in step 403 of FIG. For character information corresponding to the item variable cp = 1 to 6, character information can be input and updated. In this case, a cursor C is displayed on the screen.
[0084]
In step 501, it is determined whether or not the item variable cp of the character information is zero. That is, it is determined whether or not the cursor C is displayed on the screen. If it is determined that the item variable cp of the character information is 0 (the cursor is not displayed on the screen), no character is input and the subroutine ends. If it is determined that the item variable cp of the character information is not 0, that is, the cursor C is displayed on the screen, the process proceeds to step 502.
[0085]
In step 502, the character corresponding to the operated character key is input at the position where the cursor C was displayed. In step 503, 1 is added to the cursor position variable cu indicating the horizontal position of the cursor C, and the cursor C is moved to the right by one. However, when the cursor position variable cu is 0, the cursor C is positioned at the first character. When a character is input and the cursor C is moved to the right, the processing related to character input in steps 501 to 503 ends.
[0086]
FIG. 10 is a subroutine of steps 405 and 409 in FIG. A process for the operation of the enter key and the downward movement key ↓ will be described with reference to FIG.
[0087]
In step 601, it is determined whether the item variable cp of the character information is 6. That is, it is determined whether or not the cursor C is displayed on the item that is the name of the scope 10.
[0088]
If it is determined in step 601 that the cursor C is displayed on the item (scope name) corresponding to the item variable cp (= 6), the process moves to step 602, and the item variable cp of character information is set to 0. The When the item variable cp of the character information is set to 0, the process proceeds to step 604.
[0089]
If it is determined in step 601 that the cursor C is not displayed in the item (scope name) corresponding to the item variable cp = 6, the process moves to step 603 and 1 is added to the item variable cp of the character information. For example, when the item variable cp is a value (cp = 5) corresponding to the item that is the doctor name, 1 is added to the item variable cp to become 6, and the item variable cp (= 6) that is the name of the scope 10 is added. Is set. When 1 is added to the item variable cp of the character information, the process proceeds to step 604.
[0090]
In step 604, the cursor C is moved to the character information item set by executing step 602 or 603, and the cursor position variable cu is set to zero. That is, by the operation of the enter key and the downward movement key ↓, the cursor C is moved to the top position of the next item and displayed.
[0091]
FIG. 11 is a subroutine of step 604.
[0092]
In step 701, it is determined whether the item variable cp of the character information set in step 602 or 603 in FIG. 10 is 0, that is, whether or not the cursor C is displayed on the screen. If it is determined that the item variable cp of the character information is 0, the process proceeds to step 702 and the cursor C is deleted from the screen. When the cursor C is erased from the screen, the subroutine ends. If it is determined in step 701 that the item variable cp of the character information is not 0, the process proceeds to step 703.
[0093]
In step 703, it is determined whether or not the item variable cp of the character information set in step 602 or 603 in FIG. 10 is 1, that is, an item that is a patient name. If it is determined that the item variable cp of the character information is 1, the process proceeds to step 704. In step 704, considering that the item on which the cursor C is displayed moves and the cursor C is displayed at the head position of the item to be moved, the cursor C is displayed at the position indicated by equation (6). At this time, the display position is obtained based on the array H in the RAM 34.
(X, y) = (H [1,1], H [1,2]) (6)
[0094]
For example, when the type B scope 10 is connected to the processor 20 and the image of the body cavity S is displayed on the screen in the normal display (vs = 5, 6), the array H has the values of v = 5, 6 in Table T. Since the case value is set, the cursor C is displayed at the position of coordinates (x, y) = (1, 1) from the equation (6) (see screen (c) in FIG. 2).
[0095]
In step 704, when the cursor C is displayed, the subroutine ends. If it is determined in step 703 that the item variable cp of the set character information is not 1, the process proceeds to step 705.
[0096]
Thereafter, in steps 705, 707, 709, 711, and 713, as in step 703, whether or not the set character information item variable cp is 2 to 6 is determined in the order of the step numbers. Then, in steps 706, 708, 710, 712, and 714, as in step 704, the cursor C is displayed based on the data of the (x, y) coordinates in the array H as shown in equation (7). Is done.
(X, y) = (H [cp, 1], H [cp, 2]) (7)
In this way, even when the cursor C is displayed on any item cp, if the coordinates are displayed at the coordinate position indicated by the array H without being determined according to the case according to the scope type A / B and normal / enlarged display. Good.
[0097]
For example, if the value of the display variable vs = 3, 4 in the table T is set in the array H, it is determined that the item variable cp of the character information set in step 707 is 3, that is, the item of age. Moving to step 708, the cursor C is displayed at coordinates (x, y) = (0, 2) according to equation (7) (see screen (b)).
[0098]
When the cursor C is displayed at the head position of any item corresponding to the item variable cp (1 to 6), this subroutine ends, the process returns to step 604 in FIG. 10, and the enter is executed in steps 601 to 604. The processing for the operation of the key and the downward movement key ↓ ends.
[0099]
FIG. 12 is a subroutine of step 407 in FIG. Processing for the operation of the upward movement key ↑ will be described with reference to FIG.
[0100]
In step 801, it is determined whether or not the item variable cp of the character information is zero. That is, it is determined whether or not the cursor C is displayed on the screen.
[0101]
If it is determined in step 801 that the cursor C is not displayed on the screen (cp = 0), the process proceeds to step 802, where the item variable cp of character information is set to 6. When the item variable cp of the character information is set to 6, the process proceeds to step 804.
[0102]
If it is determined in step 801 that the cursor C is displayed in any of the items cp (1 to 6), the process proceeds to step 803 and 1 is subtracted from the item variable cp. For example, when the item is a doctor name corresponding to the item variable cp = 5, 1 is subtracted and the item variable cp becomes the item variable cp = 4 corresponding to the sex. When 1 is subtracted from the item variable cp of the character information, the process proceeds to step 804.
[0103]
In step 804, the cursor C is moved to the item of character information set by the execution of step 802 or 803, and the position variable cu next to the cursor C is set to zero. That is, in the item to which the cursor C is moved, the cursor C is displayed at the head position of the item. In step 804, the subroutine of FIG. 11 is executed.
[0104]
In step 804, when the cursor C is moved to the set item, the subroutine ends.
[0105]
FIG. 13 is a subroutine of steps 413 and 426 in FIG. Processing for the operation of the f8 key will be described with reference to FIG.
[0106]
In step 901, it is determined whether or not the display variable vr = 0. That is, it is determined whether or not the image of the body cavity S is being displayed in the normal display before the f8 key is operated.
[0107]
If it is determined in step 901 that the display variable vr is 0 (normal display), the process proceeds to step 902. In step 902, the display variable vr is set to 1, and it is determined that the image of the body cavity S is displayed on the screen in an enlarged display. When the display variable vr is set to 1, the process proceeds to step 903. In step 903, it is determined whether or not the type A scope 10 is connected to the processor 20.
[0108]
If it is determined in step 903 that the type A scope 10 is connected to the processor 20, the process proceeds to step 904. In step 904, the image of the body cavity S is displayed on the screen in an enlarged display corresponding to the type A scope 10. That is, the image of the body cavity S is displayed in the image range IA ′ (see the screen (b) in FIG. 2). Then, the display position of each item according to the item variable cp (1 to 8) is obtained from the table T (vs = 3, 4) and temporarily set in the array H in the RAM 34. When the image of the body cavity S is displayed in an enlarged display, and the display position of each item according to the item variable cp (1 to 10) is set in the array H based on the table T, the process proceeds to step 910. In step 904, the (x, y) coordinates (arrays h [cp, 3], h [cp, 4] of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0109]
If it is determined in step 903 that the type 10 scope 10 rather than the type A is connected to the processor 20, the process proceeds to step 905. In step 905, the image of the body cavity S is displayed on the screen in an enlarged display corresponding to the type B scope 10. That is, an image of the body cavity S is displayed in the image range IB ′ (see screen (D) in FIG. 2). Then, the display position of each item of the character information according to the item variable cp (1 to 8) is obtained based on the table T (vs = 7, 8), and the data of the (x, y) coordinate is stored in the array H. Is set. When the image of the body cavity S is displayed in an enlarged display and the display position of each item is set to the array H based on the table T, the process proceeds to step 910. In step 905, the (x, y) coordinates (arrays h [cp, 7], h [cp, 8) of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0110]
If it is determined in step 901 that the display variable vr is 1, that is, the display is enlarged before the f8 key is operated, the process proceeds to step 906. In step 906, it is determined that the display variable vr is set to 0 and the image of the body cavity S is displayed on the screen in the normal display. When the display variable vr is set to 0, the process proceeds to step 907. In step 907, it is determined whether or not the type A scope 10 is connected to the processor 20.
[0111]
If it is determined in step 907 that the type A scope 10 is connected to the processor 20, the process proceeds to step 908. In step 908, the image of the body cavity S is displayed on the screen in a normal display according to the type A scope 10. That is, an image of the body cavity S is displayed in the image range IA (see screen (A) in FIG. 2). Then, the display position of each item of the character information according to the item variable cp (1 to 8) is obtained based on the table T (vs = 1, 2), and (x, y) coordinate data is set in the array H. Is done. When the image of the body cavity S is displayed on the screen in the normal display and the display position of each item is set to the array H based on the table T, the process proceeds to Step 910. In step 908, the (x, y) coordinates (arrays h [cp, 1], h [cp, 2) of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0112]
If it is determined in step 907 that the type 10 scope 10 instead of the type A is connected to the processor 20, the process proceeds to step 909. In step 909, the image of the body cavity S is displayed on the screen in a normal display according to the type B scope 10. That is, an image of the body cavity S is displayed in the image range IB (see screen (c) in FIG. 2). Then, the display position of each item according to the item variable cp (1 to 8) is obtained based on the table T (vs = 5, 6), and (x, y) coordinate data is set in the array H. When the image of the body cavity S is displayed on the screen in the normal display and the display position of each item is set to the array H based on the table T, the process proceeds to Step 910. In step 909, the (x, y) coordinates (arrays h [cp, 5], h [cp, 6) of the maximum and minimum limit positions regarding the display position of the pointer Y according to the item variable cp (= 9, 10). ] (X, y) coordinates)) stored in [] is also set in the array H.
[0113]
In step 910, each item of character information currently displayed is erased from the screen. In step 911, character information is displayed on the screen based on the display position set in the array H in steps 904 to 905 and steps 908 to 909. When each item is displayed on the screen at the new position, the subroutine ends.
[0114]
FIG. 14 is a subroutine of step 411 in FIG. Processing for the operation of the f4 key will be described with reference to FIG. The subroutine of FIG. 14 is executed as a subroutine even when step 426 of FIG. 13 and step 103 of FIG. 4 are executed.
[0115]
In step 951, it is determined whether or not the pointer Y is displayed within the image range in which the image of the body cavity S is displayed. That is, it is determined whether or not the display position of the pointer Y that was displayed last time is within the current image range. When the f8 key is operated in step 426 of FIG. 8, after the (x, y) coordinates are written in the array H in accordance with the change of the image range, the pointer Y is displayed within the changed image range. It is determined whether or not. At this time, (x, y) coordinate data (H [9,1], H [9,2]) and (H [10,1], [10,2]) stored in the array H in the RAM 34. Based on the above, a determination is made.
[0116]
If it is determined in step 951 that the pointer Y is displayed within the image range, the process moves to step 952 where the pointer Y is displayed at a predetermined coordinate (vx, vy). When the pointer Y is displayed within the image range, the process proceeds to step 954.
[0117]
If it is determined in step 951 that the pointer Y is not displayed within the image range, the process proceeds to step 953. In step 953, the display position of the pointer Y is changed so as to be within the image range. For example, when the position of the pointer Y is (vx, vy) = (2, 15) outside the image range on the screen (b) in FIG. 2 when the image range (b) is changed to (b), the pointer Y Is displayed at (6, 15) based on the array H [9, 1]. At this time, the coordinate vx of the pointer is set as vx = 6. When the pointer Y is displayed with the change of the display position, the process proceeds to step 954.
[0118]
In step 954, the pointer display variable vm is set to 1 indicating that the pointer Y is displayed. When the pointer display variable vm is set to 1, this subroutine ends.
[0119]
As described above, according to the present embodiment, when there is a change in the image range in which the image of the body cavity S is projected, the display position of the character information and the pointer Y is determined based on the table T, and the character information and the pointer Y are displayed on the screen. Each is displayed at a predetermined position. Conventionally, when the image range is changed, the display position is determined for each item. That is, for each item, the type and display state (normal / enlarged) of the scope 10 are determined (case division), and the display position is determined. On the other hand, in this embodiment, when the image range is changed, the display positions of all items in the display state are obtained from the table T, set in the array H, and the character information of each item is displayed. Since the character information can be displayed without displaying the character information while determining the display state for each item, the display process of the character information is quickly performed, and the program structure is simplified.
[0120]
In the present embodiment, coordinates indicating the display position of the character information and the displayable range of the pointer Y are set in the array H in accordance with the change of the image range. Then, based on the (x, y) coordinate data set in the array H, input of characters, movement of the cursor C, and movement of the pointer Y are executed. Conventionally, when inputting characters, moving the cursor C, and moving the pointer Y are executed, the type and display state of the scope 10 are determined each time. In particular, in the case of enlarged display, since the x and y coordinate data differ depending on the type of the scope 10 as described above (see FIG. 2), such discrimination processing is necessary. However, in this embodiment, based on the (x, y) coordinate data set in the array H, character input, cursor C movement, and pointer Y movement are executed. That is, processing such as character input is executed without performing discrimination (case division) based on the type of the scope 10 and normal / enlarged display of the image. Therefore, the algorithm (program) is not complicated and the program code is simplified. As a result, the maintenance and inspection of the program is facilitated, and the reliability of the operation of the entire endoscope apparatus is improved.
[0121]
Further, since the program code is simplified, the memory capacity for storing the program code can be reduced.
[0122]
Note that the type of the scope 10 is not limited to the types A and B shown in the present embodiment. Further, instead of resetting the array H in the RAM 34, the array column to be used is determined according to the screen switching by using the array h [10, 8] and the variable vs (1 ≦ vs ≦ 8), and the x , Y coordinates may be used. The color television system is not limited to the NTSC system, and for example, a PAL system may be applied.
[0123]
Only the character information may be determined based on the table T and displayed on the screen according to the change of the image range.
[0124]
【The invention's effect】
As described above, according to the present invention, when the display position of the character information or the instruction mark is changed according to the change of the image range with respect to the body cavity image, the display process by a simple program can be executed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an electric circuit of an endoscope apparatus according to the present embodiment.
FIG. 2 is a diagram showing a screen displayed on a monitor.
FIG. 3 is a table showing character information and pointer display positions corresponding to scope types and display states;
FIG. 4 is a flowchart showing the operation of the entire endoscope apparatus.
FIG. 5 is an interrupt process for a keyboard operation.
FIG. 6 is a subroutine of step 102 in FIG.
FIG. 7 is a subroutine of step 103 in FIG.
FIG. 8 is an interrupt routine in FIG. 5;
FIG. 9 is a subroutine of step 403 in FIG.
FIG. 10 is a subroutine of steps 405 and 409 in FIG.
FIG. 11 is a subroutine of Step 604 in FIG.
12 is a subroutine of step 407 in FIG.
13 is a subroutine of steps 413 and 426 in FIG.
FIG. 14 is a subroutine of step 411 in FIG.
[Explanation of symbols]
10 Scope
20 processors
26 keyboard
33 ROM (nonvolatile memory)
34 RAM (volatile memory)
49 Monitor
T table (display position reference table)
Y pointer (instruction mark)
IA image range
IA 'image range
IB image range
IB 'image range

Claims (15)

被写体像を撮像するためのスコープと、撮像によって得られる前記被写体像に応じた画像信号を処理するプロセッサからなる内視鏡装置であって、
前記被写体像とともに文字情報および指示マークを前記プロセッサに接続されるモニタの画面に表示する表示手段と、
前記画面において、前記被写体像が映し出される画像範囲を変更する画像範囲変更手段とを備え、
前記表示手段が、前記画像範囲と前記文字情報および前記指示マークの表示位置との対応関係を示す表示位置参照表に基づいて、前記画面において映し出される前記被写体像の画像範囲に応じた前記文字情報および前記指示マークの表示位置を定めることにより、前記文字情報および前記指示マークを、前記画像範囲の変更に応じて前記画面に表示する表示位置調整手段を有することを特徴とする内視鏡装置。
An endoscope apparatus comprising a scope for capturing a subject image and a processor for processing an image signal corresponding to the subject image obtained by imaging,
Display means for displaying text information and instruction marks together with the subject image on a monitor screen connected to the processor;
An image range changing means for changing an image range in which the subject image is projected on the screen;
The character information corresponding to the image range of the subject image displayed on the screen based on a display position reference table indicating a correspondence relationship between the image range, the character information, and the display position of the instruction mark. An endoscope apparatus comprising: a display position adjusting unit configured to display the character information and the instruction mark on the screen according to a change in the image range by determining a display position of the instruction mark.
前記画像範囲変更手段が、前記スコープの取り替えと、前記スコープに設けられた撮像素子の画素数に対応する通常表示と前記通常表示より前記画像範囲が大きい拡大表示の切り替えに基づき、前記画像範囲を変更することを特徴とする請求項1に記載の内視鏡装置。The image range changing unit is configured to change the image range based on replacement of the scope and switching between normal display corresponding to the number of pixels of an image sensor provided in the scope and enlarged display having the image range larger than the normal display. The endoscope apparatus according to claim 1, wherein the endoscope apparatus is changed. 前記表示位置参照表が、前記スコープの種類と前記通常および拡大表示に応じた前記文字情報の各項目の表示位置と、前記スコープの種類と前記通常および拡大表示に応じた前記指示マークが表示できる限界位置とを示す表であることを特徴とする請求項2に記載の内視鏡装置。The display position reference table can display the display position of each item of the character information according to the scope type and the normal and enlarged display, and the instruction mark according to the scope type and the normal and enlarged display. The endoscope apparatus according to claim 2, wherein the endoscope apparatus is a table indicating limit positions. 前記表示位置参照表が、前記文字情報の各項目における先頭の文字が表示される位置座標を示していることを特徴とする請求項3に記載の内視鏡装置。The endoscope apparatus according to claim 3, wherein the display position reference table indicates position coordinates at which a first character in each item of the character information is displayed. 前記表示位置調整手段が、前記表示位置参照表から、前記画面において映し出される前記被写体像の画像範囲に応じた前記文字情報の表示位置を求めることにより、前記画像範囲の変更に応じて、前記文字情報を前記画面に表示することを特徴とする請求項3に記載の内視鏡装置。The display position adjusting means obtains the display position of the character information according to the image range of the subject image displayed on the screen from the display position reference table, and thereby the character according to the change of the image range. The endoscope apparatus according to claim 3, wherein information is displayed on the screen. 前記表示位置調整手段が、前記表示位置参照表に示されている前記指示マークの限界位置を参照することにより、前記画像範囲の変更に応じて、前記指示マークを前記画像範囲内に表示することを特徴とする請求項3に記載の内視鏡装置。The display position adjusting means displays the instruction mark in the image range in accordance with the change of the image range by referring to the limit position of the instruction mark shown in the display position reference table. The endoscope apparatus according to claim 3. 前記表示位置参照表を格納するための不揮発性メモリと、前記表示位置参照表に示された前記文字情報の各項目の表示位置および前記指示マークの限界位置の中の一部を一時的に記憶する揮発性メモリを有し、前記揮発性メモリには、前記スコープのいずれかの種類の通常表示もしくは拡大表示に応じた前記文字情報の表示位置および前記指示マークの限界位置が記憶されることを特徴とする請求項3に記載の内視鏡装置。Non-volatile memory for storing the display position reference table, and temporarily storing a display position of each item of the character information shown in the display position reference table and a part of the limit position of the indication mark A volatile memory that stores a display position of the character information and a limit position of the indication mark according to a normal display or an enlarged display of any kind of the scope. The endoscope apparatus according to claim 3, wherein the endoscope apparatus is characterized. 前記表示位置調整手段が、前記画像範囲変更手段により前記画像範囲変更された場合、変更された前記画像範囲に応じた前記文字情報の表示位置および前記指示マークの限界位置を前記不揮発性メモリから読み出して前記揮発性メモリに一時的に記憶し、前記揮発性メモリに記憶された前記文字情報の各項目の表示位置に基づいて文字情報を表示し、前記揮発性メモリに記憶された前記指示マークの限界位置を参照することにより前記指示マークを前記変更された画像範囲内に表示することを特徴とする請求項7に記載の内視鏡装置。When the display position adjusting unit changes the image range by the image range changing unit, the display position of the character information and the limit position of the instruction mark corresponding to the changed image range are read from the nonvolatile memory. The character information is temporarily stored in the volatile memory, the character information is displayed based on the display position of each item of the character information stored in the volatile memory, and the indication mark stored in the volatile memory is displayed. The endoscope apparatus according to claim 7, wherein the indication mark is displayed in the changed image range by referring to a limit position. 前記プロセッサに接続されるキーボードの操作によって実行される前記画面上でのカーソルの移動、文字の入力、および前記指示マークの移動が、前記揮発性メモリに記憶された前記文字情報の表示位置および前記指示マークの限界位置に基づいて実行されることを特徴とする請求項7に記載の内視鏡装置。The movement of the cursor on the screen, the input of characters, and the movement of the instruction mark executed by operating a keyboard connected to the processor are the display position of the character information stored in the volatile memory and the The endoscope apparatus according to claim 7, wherein the endoscope apparatus is executed based on a limit position of the instruction mark. 前記表示位置調整手段が、前記画像範囲の変更に応じて、前記指示マークを前記画像範囲内に表示することを特徴とする請求項1に記載の内視鏡装置。The endoscope apparatus according to claim 1, wherein the display position adjusting unit displays the instruction mark in the image range in accordance with the change in the image range. 前記表示位置調整手段が、前記画像範囲の変更に応じて前記画像範囲外に前記文字情報を前記画面に表示するように、前記文字情報の表示位置を調整することを特徴とする請求項1に記載の内視鏡装置。The display position adjustment unit adjusts a display position of the character information so that the character information is displayed on the screen outside the image range in accordance with the change of the image range. The endoscope apparatus described. 前記文字情報が、前記被写体像に関連する文字情報であることを特徴とする請求項1に記載の内視鏡装置。The endoscope apparatus according to claim 1, wherein the character information is character information related to the subject image. 前記指示マークが、前記被写体像に対し、特定部分を前記画面上において指すためのマークであることを特徴とする請求項1に記載の内視鏡装置。The endoscope apparatus according to claim 1, wherein the instruction mark is a mark for pointing a specific portion on the screen with respect to the subject image. 被写体像を撮像するためのスコープと、撮像によって得られる前記被写体像に応じた画像信号を処理するプロセッサからなる内視鏡装置であって、
前記被写体像とともに文字情報を前記プロセッサに接続されるモニタの画面に表示する表示手段と、
前記画面において、前記被写体像が映し出される画像範囲を変更する画像範囲変更手段とを備え、
前記表示手段が、前記画像範囲と前記文字情報の表示位置との対応関係を示す表示位置参照表に基づいて、前記画面において映し出される前記被写体像の画像範囲に応じた前記文字情報の表示位置を求めることにより、前記文字情報を前記画像範囲の変更に応じて前記画面に表示する表示位置調整手段を有することを特徴とする内視鏡装置。
An endoscope apparatus comprising a scope for capturing a subject image and a processor for processing an image signal corresponding to the subject image obtained by imaging,
Display means for displaying character information together with the subject image on a screen of a monitor connected to the processor;
An image range changing means for changing an image range in which the subject image is projected on the screen;
The display means determines the display position of the character information according to the image range of the subject image displayed on the screen, based on a display position reference table indicating a correspondence relationship between the image range and the display position of the character information. An endoscope apparatus, comprising: a display position adjusting unit configured to display the character information on the screen in response to the change of the image range.
被写体像を撮像するためのスコープが接続されるとともに、前記スコープの撮像によって得られる前記被写体像に応じた画像信号を処理する内視鏡装置のプロセッサであって、
前記被写体像とともに文字情報を前記プロセッサに接続されるモニタの画面に表示する表示手段と、
前記画面において、前記被写体像が映し出される画像範囲を変更する画像範囲変更手段とを備え、
前記表示手段が、前記画像範囲と前記文字情報の表示位置との対応関係を示す表示位置参照表に基づいて、前記画面において映し出される前記被写体像の画像範囲に応じた前記文字情報の表示位置を求めることにより、前記文字情報を前記画像範囲の変更に応じて前記画面に表示する表示位置調整手段を有することを特徴とする内視鏡装置のプロセッサ。
A processor of an endoscope apparatus that is connected to a scope for capturing a subject image and processes an image signal corresponding to the subject image obtained by imaging the scope,
Display means for displaying character information together with the subject image on a screen of a monitor connected to the processor;
An image range changing means for changing an image range in which the subject image is projected on the screen;
The display means determines the display position of the character information according to the image range of the subject image displayed on the screen, based on a display position reference table indicating a correspondence relationship between the image range and the display position of the character information. A processor for an endoscope apparatus, comprising: a display position adjusting unit that displays the character information on the screen according to a change in the image range.
JP36538199A 1998-12-25 1999-12-22 Endoscope device Expired - Lifetime JP4531176B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36538199A JP4531176B2 (en) 1998-12-25 1999-12-22 Endoscope device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP37017298 1998-12-25
JP10-370172 1998-12-25
JP36538199A JP4531176B2 (en) 1998-12-25 1999-12-22 Endoscope device

Publications (2)

Publication Number Publication Date
JP2000237130A JP2000237130A (en) 2000-09-05
JP4531176B2 true JP4531176B2 (en) 2010-08-25

Family

ID=26581659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36538199A Expired - Lifetime JP4531176B2 (en) 1998-12-25 1999-12-22 Endoscope device

Country Status (1)

Country Link
JP (1) JP4531176B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4931189B2 (en) * 2006-05-26 2012-05-16 Hoya株式会社 Processor for electronic endoscope
CN112330741B (en) * 2020-11-02 2024-10-18 重庆金山医疗技术研究院有限公司 Image display method, device, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03207161A (en) * 1990-01-10 1991-09-10 Canon Inc Image processor
JPH03286749A (en) * 1990-04-02 1991-12-17 Toshiba Corp Ultrasonic diagnostic device
JPH09154810A (en) * 1995-12-07 1997-06-17 Asahi Optical Co Ltd Electronic endoscope device
JPH10155737A (en) * 1996-11-29 1998-06-16 Olympus Optical Co Ltd Electronic endoscope apparatus

Also Published As

Publication number Publication date
JP2000237130A (en) 2000-09-05

Similar Documents

Publication Publication Date Title
JP4223609B2 (en) Endoscope device
KR100593113B1 (en) Image Processing System, Projector, and Image Processing Method
US6512507B1 (en) Pointing position detection device, presentation system, and method, and computer-readable medium
US6977670B2 (en) Method and apparatus for selective registration of endoscopes with database
US7889246B2 (en) Photographing apparatus
US20110019066A1 (en) Af frame auto-tracking system
US20050243073A1 (en) Presentation device and display method
US6322497B1 (en) Electronic endoscope
JP6177478B1 (en) First signal processing apparatus and endoscope system
JP2000134610A (en) Endoscope device
CN106782344B (en) Brightness adjusting method, device and display equipment
US7136098B1 (en) Image illumination optimizing
JP5152317B2 (en) Presentation control apparatus and program
JP4770197B2 (en) Presentation control apparatus and program
JP4531176B2 (en) Endoscope device
JP5141259B2 (en) projector
JP4694051B2 (en) Electronic endoscope
US20070229679A1 (en) Image pickup device, projector including the image pickup device, and image pickup method
JPH11341485A (en) Electronic endoscope system
JPS6354378B2 (en)
KR20030084198A (en) display apparatus and method for adjusting the brightness thereof
JP3964507B2 (en) Aperture control device for electronic endoscope system
JP4231147B2 (en) Endoscope light source device and dimming method thereof
JP4043559B2 (en) Automatic dimming device for electronic endoscope system
JPH09154810A (en) Electronic endoscope device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061124

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080428

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: 20100518

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: 20100609

R150 Certificate of patent or registration of utility model

Ref document number: 4531176

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130618

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130618

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140618

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term