JP2003250761A - Automatic light regulator for endoscope and electronic endoscope unit - Google Patents

Automatic light regulator for endoscope and electronic endoscope unit

Info

Publication number
JP2003250761A
JP2003250761A JP2002057135A JP2002057135A JP2003250761A JP 2003250761 A JP2003250761 A JP 2003250761A JP 2002057135 A JP2002057135 A JP 2002057135A JP 2002057135 A JP2002057135 A JP 2002057135A JP 2003250761 A JP2003250761 A JP 2003250761A
Authority
JP
Japan
Prior art keywords
halation
light
ratio
brightness
light amount
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.)
Granted
Application number
JP2002057135A
Other languages
Japanese (ja)
Other versions
JP4131007B2 (en
Inventor
Tadashi Takahashi
正 高橋
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.)
Pentax Corp
Original Assignee
Pentax 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 Pentax Corp filed Critical Pentax Corp
Priority to JP2002057135A priority Critical patent/JP4131007B2/en
Publication of JP2003250761A publication Critical patent/JP2003250761A/en
Application granted granted Critical
Publication of JP4131007B2 publication Critical patent/JP4131007B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To regulate the quantity of light for maintaining images of objects at proper brightness while controlling the generation of halation. <P>SOLUTION: In the electronic endoscope unit equipped with a video scope 50 having a CCD 54 and a processor 10, a stop 34 is provided between a histogram circuit 23, a light source lamp 12 and the emission end 51A of an optical fiber bundle 51. The histogram circuit 23 generates histogram data pertaining to the brightness of images of the object from image signals corresponding to the images of the object. The ratio of the generation of halation is calculated based on the histogram data to detect possible halation from the ratio of the generation of halation. When the halation is generated, the stop 34 is closed to reduce the quantity of light to the object while, when no halation is generated, the stop 34 is opened according to the brightness of the images of the object to increase the quantity of light. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、内視鏡(スコー
プ)を胃など器官内に挿入し、所定の部位の像を観察す
ることができる内視鏡装置に関し、特に、被写体像の明
るさが一定となるように観察部位に照射される照明光の
光量を調整する自動調光に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an endoscope apparatus capable of observing an image of a predetermined portion by inserting an endoscope (scope) into an organ such as a stomach, and more particularly to the brightness of a subject image. The present invention relates to automatic light control for adjusting the amount of illumination light applied to an observation site so that the light intensity is constant.

【0002】[0002]

【従来の技術】従来の内視鏡装置では、被写体像に応じ
た画像信号に基づいて被写体の明るさ(被写体の輝度)
を検出し、被写体の適切な明るさを示す参照値と比較し
て照明光の光量調整が行われる。参照値より輝度値の方
が大きければ絞りを閉じて光量を減少させ、逆に、参照
値より輝度値の方が小さければ絞りを開いて光量を増加
させる。参照値と比較される被写体像の明るさを表す値
としては、被写体全体の明るさ平均を示す平均輝度値、
あるいは最高輝度を表すピーク輝度値が適用されてお
り、オペレータは、プロセッサに備えられたスイッチを
操作することによって参照値のレベルを設定変更するこ
とができる。
2. Description of the Related Art In a conventional endoscope apparatus, the brightness of a subject (luminance of the subject) is determined based on an image signal corresponding to a subject image.
Is detected, and the light amount of the illumination light is adjusted by comparing with a reference value indicating appropriate brightness of the subject. If the brightness value is larger than the reference value, the diaphragm is closed to reduce the light amount, and conversely, if the brightness value is smaller than the reference value, the diaphragm is opened to increase the light amount. As a value representing the brightness of the subject image to be compared with the reference value, an average luminance value indicating the average brightness of the entire subject,
Alternatively, the peak brightness value representing the maximum brightness is applied, and the operator can change the level of the reference value by operating the switch provided in the processor.

【0003】[0003]

【発明が解決しようとする課題】平均輝度値を参照値と
比較して光量調整を行った場合、ハレーション(被写体
像の一部が白く映し出される状態)が発生し易くなり、
検査、処置等に支障を来たす。一方、ピーク輝度値を参
照値と比較して光量調整を行った場合、ハレーションの
発生を抑えることはできるが、観察される被写体像が全
体的に暗くなる傾向にある。参照値のレベルを設定変更
することによってある程度明るさの問題を解決すること
はできるが、オペレータにとっては、内視鏡操作をして
いる間に参照値のレベルを設定変更することが難しい。
そのため、処置等を行っている間、被写体の明るさを常
に適正な明るさに維持することが困難となる。
When the light amount is adjusted by comparing the average luminance value with the reference value, halation (a state in which a part of the subject image appears in white) easily occurs,
It interferes with inspection and treatment. On the other hand, when the light intensity is adjusted by comparing the peak brightness value with the reference value, halation can be suppressed, but the observed subject image tends to be dark as a whole. Although the brightness problem can be solved to some extent by changing the setting of the reference value level, it is difficult for the operator to change the setting of the reference value level while operating the endoscope.
For this reason, it becomes difficult to always maintain the brightness of the subject at an appropriate brightness while performing a treatment or the like.

【0004】そこで本発明では、ハレーション発生を抑
えながら被写体像を適切な明るさに維持する光量調整を
行うことが出来る電子内視鏡装置、内視鏡用自動調光装
置を得ることを目的とする。
Therefore, an object of the present invention is to obtain an electronic endoscope apparatus and an automatic light control apparatus for an endoscope, which can adjust the light quantity for keeping the subject image at an appropriate brightness while suppressing the occurrence of halation. To do.

【0005】[0005]

【課題を解決するための手段】本発明の電子内視鏡装置
は、撮像素子を有するビデオスコープとビデオスコープ
が接続されるプロセッサとを備えた電子内視鏡装置であ
って、プロセッサでは撮像素子から読み出される画像信
号が処理されて、モニタなどへビデオ信号が出力され
る。本発明の電子内視鏡装置は、被写体像の明るさに関
するヒストグラムデータを得るため、撮像素子から読み
出される画像信号に基づいて所定のヒストグラム処理を
施すヒストグラム処理手段と、ヒストグラムデータに基
づいて、ハレーションが発生しているか否かを検出する
ハレーション検出手段とを備える。例えば、ヒストグラ
ムデータに基づいて、被写体像を構成する全画素の数に
対する高輝度画素の数の割合を示すハレーション割合を
算出し、ハレーション割合が0以外の値であるか否かを
判別することによってハレーションを検出すればよい。
被写体像の明るさを示す輝度値は、例えば輝度レベルと
して0〜255の範囲のいずれかの値に定められる。高
輝度画素はハレーション境界輝度値以上の輝度値を有す
る画素であり、ハレーション境界輝度値はハレーション
発生の閾値(境界値)となる輝度値である。例えば、輝
度値が0〜255の範囲である場合、220〜230の
いずれかの値に定められる。電子内視鏡装置は、モニタ
などに映し出される被写体像が参照値の輝度レベルに対
応した明るさとなるように被写体を照明する光の光量を
調整する光量調整手段を備えており、光量調整手段は、
ハレーションの有無に基づいて所定の時間間隔ごとに光
量調整を行う。光量調整に関しては、例えば、1フレー
ム分の画像信号の読み出し期間毎に行えばよい。
An electronic endoscope apparatus according to the present invention is an electronic endoscope apparatus including a videoscope having an image pickup device and a processor to which the videoscope is connected. The image signal read from is processed and a video signal is output to a monitor or the like. The electronic endoscope apparatus of the present invention, in order to obtain histogram data regarding the brightness of a subject image, a histogram processing unit that performs a predetermined histogram process based on an image signal read from an image sensor, and a halation based on the histogram data. And a halation detecting means for detecting whether or not For example, based on the histogram data, a halation ratio indicating the ratio of the number of high-luminance pixels to the total number of pixels forming the subject image is calculated, and it is determined whether the halation ratio is a value other than 0. Halation should be detected.
The brightness value indicating the brightness of the subject image is set to any value in the range of 0 to 255 as the brightness level, for example. The high-brightness pixel is a pixel having a brightness value equal to or higher than the halation boundary brightness value, and the halation boundary brightness value is a brightness value serving as a threshold value (boundary value) for halation occurrence. For example, when the brightness value is in the range of 0 to 255, it is set to any value of 220 to 230. The electronic endoscope apparatus includes a light amount adjusting unit that adjusts the light amount of the light that illuminates the subject such that the subject image displayed on the monitor or the like has a brightness corresponding to the brightness level of the reference value. ,
The light amount is adjusted at predetermined time intervals based on the presence or absence of halation. The adjustment of the light amount may be performed, for example, in each reading period of the image signal for one frame.

【0006】本発明に係わる光量調整手段は、ハレーシ
ョンが発生している場合には光量を減少させるととも
に、ハレーションが発生していない場合、ハレーション
が発生する直前まで一定時間間隔で光量を増加させてい
く。例えば、光源部が、ハロゲンランプなどの光源と、
ビデオスコープ内に設けられる光ファイバー束の入射端
との間に絞りを設けた構成の場合、絞りを開閉させるこ
とによって光量を増加させ、あるいは光量を減少させ
る。また、発光ダイオードをビデオスコープ先端に設け
た構成の場合、発光ダイオードへ送る電流量を調整する
ことによって光量の増減を行う。光量増加の一定時間間
隔は、光量調整を行う所定の時間間隔と一致させるのが
よい。
The light quantity adjusting means according to the present invention reduces the light quantity when the halation is occurring and increases the light quantity at a constant time interval until just before the halation is occurring when the halation is not occurring. Go. For example, the light source unit is a light source such as a halogen lamp,
In the case of a configuration in which a diaphragm is provided between the entrance end of an optical fiber bundle provided in the videoscope, the light quantity is increased or decreased by opening and closing the diaphragm. Further, in the case where the light emitting diode is provided at the tip of the videoscope, the amount of light is increased or decreased by adjusting the amount of current sent to the light emitting diode. It is preferable that the constant time interval for increasing the light amount is matched with a predetermined time interval for adjusting the light amount.

【0007】平均輝度値を用いる代わりにハレーション
発生の有無を検出することによって光量調整を行うた
め、ハレーションのない被写体像をモニタなどに映し出
すことができる。また、ハレーションが発生する直前ま
では一定時間間隔で光量を増加させていくため、ピーク
輝度値を用いて光量調整を行った場合のように被写体像
が暗いままの状態で維持されることはなく、全体的に明
るくて見やすい被写体像を常にモニタに映し出すことが
できる。
Since the light amount is adjusted by detecting the presence or absence of halation instead of using the average luminance value, a subject image without halation can be displayed on a monitor or the like. In addition, the light intensity is increased at regular intervals until just before halation occurs, so the subject image is not kept dark as in the case of light intensity adjustment using the peak brightness value. , It is possible to always display a bright and easy-to-see subject image on the monitor.

【0008】被写体像が暗い場合、暗さの程度に応じて
光量を増減させるのが望ましい。そのため、電子内視鏡
装置は、好ましくは、被写体像を構成する全画素の数に
対する所定の輝度以下である画素の数の割合を示す暗部
割合を算出する暗部割合算出手段と、暗部割合の値が基
準となる暗部参照割合の値以上であるか否かを判別する
暗部割合判別手段とをさらに有する。暗部割合の値が暗
部参照割合の値以上である場合、光量調整手段は、暗部
参照割合以下となる場合に比べてより多く光量を増加さ
せる。これにより、被写体像が暗くなった場合でも、す
ぐに適正な明るさに戻すことができる。ただし、暗部参
照割合は、被写体像全体に対しより多く光量増加を実行
するための基準となる値を表す。
When the subject image is dark, it is desirable to increase or decrease the amount of light according to the degree of darkness. Therefore, the electronic endoscope apparatus is preferably a dark part ratio calculating means for calculating a dark part ratio indicating a ratio of the number of pixels having a predetermined luminance or less to the number of all pixels forming the subject image, and a value of the dark part ratio. And a dark area ratio determining means for determining whether or not is greater than or equal to a reference dark area reference value. When the value of the dark part ratio is equal to or more than the value of the dark part reference ratio, the light amount adjusting unit increases the light amount more than when it is equal to or less than the dark part reference ratio. As a result, even when the subject image becomes dark, it is possible to immediately restore the proper brightness. However, the dark portion reference ratio represents a reference value for increasing the amount of light with respect to the entire subject image.

【0009】本発明の内視鏡用自動調光装置は、被写体
像の明るさに関するヒストグラムデータを得るため、被
写体像に応じた画像信号に基づいて所定のヒストグラム
処理を施すヒストグラム処理手段と、ヒストグラムデー
タに基づいて、ハレーションが発生しているか否かを検
出するハレーション検出手段と、ハレーションの有無に
基づいて、被写体像の明るさが適切な明るさとなるよう
に被写体を照明する光の光量を所定の時間間隔ごとに調
整する光量調整手段とを備え、光量調整手段は、ハレー
ションが発生している場合には光量を減少させ、ハレー
ションが発生していない場合、ハレーションが発生する
直前まで一定時間間隔で光量を増加させていくことを特
徴とする。
The automatic light control apparatus for an endoscope of the present invention, in order to obtain histogram data relating to the brightness of a subject image, a histogram processing means for performing a predetermined histogram process based on an image signal corresponding to the subject image, and a histogram processing means. Based on the data, a halation detecting unit that detects whether or not halation has occurred, and based on the presence or absence of halation, a predetermined amount of light that illuminates the subject so that the brightness of the subject image becomes appropriate brightness. And a light amount adjusting means for adjusting each time interval, the light amount adjusting means reduces the light amount when halation is occurring, and when halation is not occurring, a constant time interval until just before the halation occurs The feature is that the amount of light is increased by.

【0010】[0010]

【発明の実施の形態】以下では、図面を参照して本発明
の実施形態である電子内視鏡装置について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An electronic endoscope apparatus according to an embodiment of the present invention will be described below with reference to the drawings.

【0011】図1は、本実施形態である電子内視鏡装置
のブロック図である。電子内視鏡装置は、胃など体内の
器官に対して検査、手術などを行うための装置であり、
検査等が開始されると、ビデオスコープが観察部位の撮
影のため体内へ挿入される。
FIG. 1 is a block diagram of an electronic endoscope apparatus according to this embodiment. The electronic endoscope device is a device for performing inspections, operations, and the like on internal organs such as the stomach,
When the examination or the like is started, the videoscope is inserted into the body for photographing the observation site.

【0012】電子内視鏡装置では、撮像素子としてCC
D54を有するビデオスコープ50と、ビデオスコープ
50から送られてくる画像信号を処理するプロセッサ1
0とが備えられ、被写体像を表示するモニタ32’がプ
ロセッサ10に接続される。ビデオスコープ50はプロ
セッサ10に着脱自在に接続されており、また、プロセ
ッサ10にはキーボード34が接続される。
In the electronic endoscope apparatus, CC is used as an image pickup element.
Videoscope 50 having D54, and processor 1 for processing image signals sent from the videoscope 50
0 and a monitor 32 ′ for displaying a subject image is connected to the processor 10. The video scope 50 is detachably connected to the processor 10, and the keyboard 34 is connected to the processor 10.

【0013】光源ランプ12から放射された光は、集光
レンズ(図示せず)を介してビデオスコープ50内に設
けられた光ファイバー束51の入射端51Aに入射す
る。光ファイバー束51は、ランプ12から放射される
光を観察部位のあるビデオスコープ50の先端側へ伝達
する光ファイバーであり、光ファイバー束51を通った
光は出射端51Bから出射する。これにより、観察部位
Sに光が照射される。
The light emitted from the light source lamp 12 is incident on an incident end 51A of an optical fiber bundle 51 provided in the videoscope 50 via a condenser lens (not shown). The optical fiber bundle 51 is an optical fiber that transmits the light emitted from the lamp 12 to the tip side of the videoscope 50 having the observation site, and the light that has passed through the optical fiber bundle 51 is emitted from the emission end 51B. As a result, the observation site S is irradiated with light.

【0014】観察部位Sにおいて反射した光は、対物レ
ンズ(図示せず)を通ってCCD54の受光面に到達
し、これにより観察部位Sの像がCCD54の受光面に
形成される。本実施形態では、カラー撮像方式として単
板同時式が適用されており、CCDの受光面上にはイエ
ロー(Ye)、シアン(Cy)、マゼンタ(Mg)、グ
リーン(G)の色要素が市松状に並べられた補色カラー
フィルタ(図示せず)が受光面の各画素に対応するよう
配置されている。CCD54では、補色カラーフィルタ
を通る色に応じた被写体像の画像信号が光電変換により
発生し、1フレームもしくは1フィールド分の画像信号
が、色差線順次方式に従って所定時間間隔ごとに順次読
み出される。カラーテレビジョン方式としては例えばN
TSC方式が適用されており、1/30(1/60)秒
間隔ごとに1フレーム(1フィールド)分の画像信号が
順次読み出され、プロセッサ10へ送られる。
The light reflected at the observation area S reaches the light receiving surface of the CCD 54 through an objective lens (not shown), and an image of the observation area S is formed on the light receiving surface of the CCD 54. In the present embodiment, the single-plate simultaneous type is applied as a color imaging method, and yellow (Ye), cyan (Cy), magenta (Mg), and green (G) color elements are in a checkered pattern on the light receiving surface of the CCD. Complementary color filters (not shown) arranged in a line are arranged so as to correspond to the respective pixels on the light receiving surface. In the CCD 54, an image signal of a subject image corresponding to a color passing through a complementary color filter is generated by photoelectric conversion, and an image signal for one frame or one field is sequentially read out at predetermined time intervals according to the color difference line sequential method. As a color television system, for example, N
The TSC system is applied, and image signals for one frame (one field) are sequentially read out at intervals of 1/30 (1/60) seconds and sent to the processor 10.

【0015】プロセッサ10の信号処理回路20には、
CCD54から出力される画像信号のゲインコントロー
ルを行うCCDゲイン制御回路、画像信号読み出しのタ
イミング(ディレイタイム)を調整するタイミング回
路、ホワイトバランス調整のためにR,G,Bのゲイン
コントロールを行うR、GおよびBゲイン制御回路、ガ
ンマ補正を行うためのガンマ補正回路、輝度信号、色差
信号を生成するためのカラーマトリクス回路などが含ま
れている(いずれも図示せず)。信号処理回路20に入
力された画像信号に対して様々な処理が各回路において
施され、その結果、映像信号が生成される。生成された
映像信号はNTSCコンポジット信号、Y/C分離信号
(Sビデオ信号)、RGB分離信号などのビデオ信号と
してモニタ32’へ出力され、これにより被写体像がモ
ニタ32’に映し出される。
The signal processing circuit 20 of the processor 10 includes:
A CCD gain control circuit for controlling the gain of the image signal output from the CCD 54, a timing circuit for adjusting the timing (delay time) of reading the image signal, an R for controlling the R, G, B gains for white balance adjustment, A G and B gain control circuit, a gamma correction circuit for performing gamma correction, a color matrix circuit for generating a luminance signal, a color difference signal, and the like are included (all not shown). Various processes are performed on the image signal input to the signal processing circuit 20 in each circuit, and as a result, a video signal is generated. The generated video signal is output to the monitor 32 'as a video signal such as an NTSC composite signal, a Y / C separated signal (S video signal), an RGB separated signal, etc., whereby a subject image is displayed on the monitor 32'.

【0016】CPU(Central Processing Unit)24
はプロセッサ10全体を制御しており、ICチップで構
成される信号処理回路20などの各回路に制御信号を出
力するとともに、光量調整等を実行するためのプログラ
ムを格納したROM(図示せず)を有する。ビデオスコ
ープ50内にはデータ書き換え可能なEEPROM57
が設けられており、ビデオスコープ50の特性に関する
データがEEPROM57にあらかじめ記憶されてい
る。ビデオスコープ50がプロセッサ10に接続される
と、EEPROM57内に格納されたデータがプロセッ
サ10へ送られ、メモリ26に格納される。
CPU (Central Processing Unit) 24
Controls the entire processor 10 and outputs a control signal to each circuit such as a signal processing circuit 20 including an IC chip, and a ROM (not shown) storing a program for performing light amount adjustment and the like. Have. The data rewritable EEPROM 57 is provided in the video scope 50.
Is provided, and data relating to the characteristics of the video scope 50 is stored in the EEPROM 57 in advance. When the video scope 50 is connected to the processor 10, the data stored in the EEPROM 57 is sent to the processor 10 and stored in the memory 26.

【0017】プロセッサ10のフロントパネルには一連
のパネルスイッチ30が設けられており、パネルスイッ
チ30に対する操作に応じた処理が実行される。また、
キーボード34において患者情報などの文字情報をモニ
タ32’に表示するためキー操作がなされると、キーボ
ード34の操作に応じた信号がCPU24へ入力され、
その信号に基いてCRTC(CRTコントローラ)22
へ制御信号が送られる。そして、キー操作に応じたキャ
ラクタ信号がCRTC22から出力され、ビデオ信号に
スーパーインポーズされる。また、RTC(Real Time
Clock)28から日時のデータがCPU24によって読
み出され、現在の日時に応じたキャラクタ信号がCRT
C22から出力される。
A series of panel switches 30 are provided on the front panel of the processor 10, and a process according to an operation on the panel switches 30 is executed. Also,
When a key operation is performed on the keyboard 34 to display character information such as patient information on the monitor 32 ', a signal corresponding to the operation of the keyboard 34 is input to the CPU 24,
CRTC (CRT controller) 22 based on the signal
A control signal is sent to. Then, a character signal corresponding to the key operation is output from the CRTC 22 and superimposed on the video signal. In addition, RTC (Real Time
Clock) 28, the date and time data is read by the CPU 24, and the character signal according to the current date and time is displayed on the CRT.
It is output from C22.

【0018】ライトガイド51の入射端51Aと光源1
2との間には被写体Sに照射される光の光量を調整する
ための絞り34が設けられており、絞り34はモータ3
3の駆動によって開閉する。モータ33はステッピング
モータであり、絞り制御回路32から送られてくるパル
ス信号に従って駆動(回転)する。よって、絞り34の
駆動量、すなわち絞り34の開度の変化量はパルス信号
に従う。本実施形態では、絞り34を全開から全閉まで
駆動させるに必要なパルス数は240である。信号処理
回路20では、送られてくる画像信号に基づいて1フレ
ーム分の輝度信号が生成され、ヒストグラム回路23へ
送られる。ヒストグラム回路23では、送られてくる輝
度信号に基づいて被写体像の明るさに関するヒストグラ
ムデータが生成され、CPU24へ出力される。そし
て、ヒストグラムデータに基づいて絞り制御回路32へ
制御信号が出力され、被写体像の明るさが適切な明るさ
となるように絞り34が開閉する。
The incident end 51A of the light guide 51 and the light source 1
2 is provided with a diaphragm 34 for adjusting the amount of light irradiated to the subject S, and the diaphragm 34 is a motor 3
It is opened and closed by the drive of 3. The motor 33 is a stepping motor and is driven (rotated) according to the pulse signal sent from the aperture control circuit 32. Therefore, the drive amount of the diaphragm 34, that is, the change amount of the opening degree of the diaphragm 34 follows the pulse signal. In the present embodiment, the number of pulses required to drive the diaphragm 34 from fully open to fully closed is 240. The signal processing circuit 20 generates a luminance signal for one frame based on the image signal sent, and sends it to the histogram circuit 23. The histogram circuit 23 generates histogram data regarding the brightness of the subject image based on the transmitted luminance signal, and outputs the histogram data to the CPU 24. Then, a control signal is output to the aperture control circuit 32 based on the histogram data, and the aperture 34 is opened and closed so that the brightness of the subject image becomes appropriate brightness.

【0019】図2は、プロセッサ10内のCPU24に
おいて実行されるメインルーチンを示した図である。
FIG. 2 is a diagram showing a main routine executed by the CPU 24 in the processor 10.

【0020】ステップS101では、CPU24の初期
設定、変数の初期設定が行われる。ステップS102で
はパネルスイッチ30に関する処理が行われ、所定のス
イッチが操作された場合にそのスイッチに対する処理が
実行される。ステップS103では、キーボード34に
関する処理が行われ、所定のキーが操作された場合、そ
のキー操作に対する処理が実行される。
In step S101, the CPU 24 and variables are initialized. In step S102, a process regarding the panel switch 30 is performed, and when a predetermined switch is operated, the process for the switch is performed. In step S103, the process relating to the keyboard 34 is performed, and when a predetermined key is operated, the process corresponding to the key operation is performed.

【0021】ステップS104ではクロック処理が行わ
れ、RTC28から日時、時刻に応じたデータが読み出
され、モニタ32’に日時、時刻が表示される。ステッ
プS105では、ビデオスコープ50に関する処理が施
される。そして、ステップS106では、その他の処理
が施される。プロセッサ10の主電源がOFFになるま
で、ステップS102〜S106が繰り返し実行され
る。
In step S104, clock processing is performed, data corresponding to the date and time is read from the RTC 28, and the date and time are displayed on the monitor 32 '. In step S105, processing relating to the video scope 50 is performed. Then, in step S106, other processing is performed. Steps S102 to S106 are repeatedly executed until the main power supply of the processor 10 is turned off.

【0022】図3は、自動調光処理を実行する割り込み
ルーチンを示した図である。本実施形態では、1/30
秒ごとにメインルーチンに割り込んで自動調光処理が行
われる。
FIG. 3 is a diagram showing an interrupt routine for executing automatic light control processing. In this embodiment, 1/30
The automatic dimming process is performed every second by interrupting the main routine.

【0023】ステップS201では、ヒストグラム回路
23において1画面分の被写体像の明るさに関するヒス
トグラム(図4参照)のデータが生成され、CPU24
によって読み出される。ヒストグラムは、モニタ32’
に表示される被写体像を構成する各画素の輝度値として
とりうる値を横軸とし、信号処理回路20(図1)から
ヒストグラム回路23(図1)に送られてきた1フレー
ム分の輝度信号を構成する全画素についてその横軸の各
輝度値に応じた画素の個数(度数)を縦軸にとったグラ
フを表す。本実施系では、被写体像の明るさが輝度値と
して0〜255の範囲のいずれかの値に定められる。ス
テップS201が実行されると、ステップS202へ進
む。
In step S201, the histogram circuit 23 generates data of a histogram (see FIG. 4) relating to the brightness of the subject image for one screen, and the CPU 24
Read by. Histogram monitor 32 '
The luminance signal of one frame sent from the signal processing circuit 20 (FIG. 1) to the histogram circuit 23 (FIG. 1) with the horizontal axis representing a possible luminance value of each pixel forming the subject image displayed in FIG. 4 is a graph in which the vertical axis represents the number (frequency) of pixels corresponding to each luminance value on the horizontal axis of all the pixels constituting the. In this embodiment, the brightness of the subject image is set to any value in the range of 0 to 255 as the brightness value. When step S201 is executed, the process proceeds to step S202.

【0024】ステップS202では、ヒストグラムデー
タに基づいてハレーション発生割合を表す変数vp1、
高輝度画素割合を表す変数vp2、暗部割合を表す変数
vdpがそれぞれ算出される。ハレーション発生割合v
p1は、被写体像を構成する全画素の中でハレーション
境界輝度値(変数CB1)以上の輝度を有する画素の割
合を示す。ハレーション境界輝度値CB1は、この値以
上であればモニタ32’の画面上においてハレーション
が発生するとみなされる輝度値であり、ここでは、例え
ば227に設定されている(図4参照)。高輝度画素割
合vp2は、被写体像を構成する全画素の中で高輝度境
界輝度値(変数CB2)以上の輝度を有する画素の割合
を示す。高輝度境界輝度値CB2は、この値以上であれ
ば高輝度とみなされる輝度値であり、ここでは、例えば
197に設定されている(図4参照)。暗部割合vdp
は、被写体像を構成する全画素の中で低輝度境界輝度値
(変数CD)以下の輝度を有する画素の割合を示す。低
輝度境界輝度値CDは、この値以下であれば観察に支障
を来たすとみなされる輝度値であり、ここでは、例えば
33に設定されている。ステップS202が実行される
と、ステップS203へ進む。
In step S202, a variable vp1 representing the halation occurrence rate is calculated based on the histogram data.
A variable vp2 representing the high-luminance pixel ratio and a variable vdp representing the dark part ratio are calculated. Halation rate v
p1 represents the ratio of pixels having a luminance equal to or higher than the halation boundary luminance value (variable CB1) among all the pixels forming the subject image. The halation boundary brightness value CB1 is a brightness value at which halation is considered to occur on the screen of the monitor 32 ′ if it is equal to or greater than this value, and is set to 227, for example, here (see FIG. 4). The high-brightness pixel ratio vp2 indicates the ratio of pixels having a brightness equal to or higher than the high-brightness boundary brightness value (variable CB2) among all the pixels forming the subject image. The high-brightness boundary brightness value CB2 is a brightness value that is considered to be high brightness if it is greater than or equal to this value, and is set here to 197, for example (see FIG. 4). Dark area ratio vdp
Indicates the ratio of pixels having a luminance equal to or lower than the low luminance boundary luminance value (variable CD) among all the pixels forming the subject image. The low-luminance boundary luminance value CD is a luminance value that is considered to hinder observation if it is less than this value, and is set to 33 here, for example. When step S202 is executed, the process proceeds to step S203.

【0025】ステップS203では、算出されたハレー
ション割合vp1が参照ハレーション割合(変数CP
1)より大きいか否かが判断される。参照ハレーション
割合CP1は、光量調整を実行するための基準となる割
合であり、ハレーション割合vp1が参照ハレーション
割合CP1よりも大きければ光量を減少させる。ここで
は、参照ハレーション割合CP1は、ハレーション発生
を最大限抑えることを考慮して、1%に定められてい
る。すなわち、ハレーションが被写体像のごく一部に発
生していてもハレーション発生が検知される。ステップ
S203において、算出されたハレーション割合vp1
が参照ハレーション割合CP1より大きいと判断された
場合、ステップS215へ進む。
In step S203, the calculated halation ratio vp1 is the reference halation ratio (variable CP
1) It is determined whether or not it is greater than. The reference halation ratio CP1 is a ratio that serves as a reference for executing the light amount adjustment. If the halation ratio vp1 is larger than the reference halation ratio CP1, the light amount is reduced. Here, the reference halation ratio CP1 is set to 1% in consideration of maximizing the occurrence of halation. That is, the occurrence of halation is detected even if halation occurs in a very small part of the subject image. In step S203, the calculated halation ratio vp1
When it is determined that is larger than the reference halation ratio CP1, the process proceeds to step S215.

【0026】ステップS215では、被写体像が適切な
明るさとなるように、絞り34を所定量だけ駆動させる
ための制御信号が絞り制御回路32へ出力される。本実
施形態では、絞り34の駆動量はステッピングモータの
回転数と比例関係にあり、ステッピングモータの回転量
は絞り制御回路32から出力されるパルス数に従う。図
5に示すように、本実施形態では、パルス数と高輝度画
素割合vp2との対応関係を示す表T1から光量減少時
のパルス数が定められる。したがって、ステップS20
2で算出された高輝度画素割合vp2の値に基づいてパ
ルス数、すなわち絞り34の駆動量が定められる。ステ
ップS215が実行されると、ステップS216へ進
み、割り込み処理カウンタ変数vcが0に設定される。
割り込み処理カウンタ変数vcは、割り込み処理の回数
を計数するための変数である。ステップS216が実行
されると、割り込みルーチンは終了する。
In step S215, a control signal for driving the diaphragm 34 by a predetermined amount is output to the diaphragm control circuit 32 so that the subject image has an appropriate brightness. In this embodiment, the driving amount of the diaphragm 34 is proportional to the rotation speed of the stepping motor, and the rotation amount of the stepping motor follows the number of pulses output from the diaphragm control circuit 32. As shown in FIG. 5, in the present embodiment, the number of pulses when the light amount is reduced is determined from the table T1 showing the correspondence relationship between the number of pulses and the high luminance pixel ratio vp2. Therefore, step S20
The number of pulses, that is, the driving amount of the diaphragm 34 is determined based on the value of the high-luminance pixel ratio vp2 calculated in 2. When step S215 is executed, the process proceeds to step S216, and the interrupt processing counter variable vc is set to 0.
The interrupt process counter variable vc is a variable for counting the number of interrupt processes. When step S216 is executed, the interrupt routine ends.

【0027】一方、ステップS203において、算出さ
れたハレーション割合vp1が参照ハレーション割合C
P1より大きくない、すなわちハレーションは発生して
いないと判断された場合、ステップS204へ進み、割
り込み処理カウンタ変数vcに1が加算される。そし
て、ステップS205では、算出された暗部割合vdp
が暗部参照割合(変数CD1)より大きいか否かが判断
される。暗部参照割合CD1は光量の増加量をどの程度
行うか定めるのに基準となる暗部割合を示す。ここで
は、暗部参照割合CD1は15%に定められている。暗
部割合vdpが暗部参照割合CD1以上である場合、被
写体像が極端に暗い状態であることから、光量を多く増
加させるための処理がステップS211〜ステップS2
14において実行される。逆に、暗部割合vdpが暗部
参照割合CD1より小さい場合、被写体像が極端に暗い
状態ではないことから、光量増加量の程度を抑えた光量
増加がステップS206〜S210において実行され
る。
On the other hand, in step S203, the calculated halation ratio vp1 is the reference halation ratio C.
If it is determined that it is not larger than P1, that is, if halation has not occurred, the process proceeds to step S204, and 1 is added to the interrupt processing counter variable vc. Then, in step S205, the calculated dark area ratio vdp.
Is greater than the dark area reference ratio (variable CD1). The dark portion reference ratio CD1 indicates a dark portion ratio which is a standard for determining how much the light amount is increased. Here, the dark portion reference ratio CD1 is set to 15%. When the dark part ratio vdp is equal to or more than the dark part reference ratio CD1, the subject image is in an extremely dark state, and therefore, the process for increasing the light amount is performed in steps S211 to S2.
14 is executed. On the contrary, when the dark portion ratio vdp is smaller than the dark portion reference ratio CD1, the subject image is not in an extremely dark state, and thus the light amount increase is suppressed in steps S206 to S210.

【0028】ステップS205において、暗部割合vd
pが暗部参照割合CD1より小さいと判断された場合、
ステップS206へ進み、割り込み処理カウンタ変数v
cが光量増加開始基準カウンタ定数C1より大きいか否
かが判断される。光量増加開始基準カウンタ定数C1
は、ステップS215における光量減少を実行してから
光量増加を開始するまでの期間に応じた定数であり、こ
こでは4に定められている。割り込み処理カウンタ変数
vcが光量増加開始基準カウンタ定数C1より大きくな
いと判断された場合、光量減少のため絞り34を作動さ
せてからそれほど時間が経過していないことに起因して
絞り34がハンチング状態となる恐れがあるため、光量
増加を実行せず、このまま割り込みルーチンが終了す
る。一方、ステップS206において、割り込み処理カ
ウンタ変数vcが光量増加開始基準カウンタ定数C1よ
り大きいと判断された場合、ステップS207へ進む。
In step S205, the dark area ratio vd
When it is determined that p is smaller than the dark part reference ratio CD1,
In step S206, the interrupt processing counter variable v
It is determined whether or not c is larger than the light amount increase start reference counter constant C1. Light amount increase start reference counter constant C1
Is a constant corresponding to the period from the execution of the light amount reduction in step S215 to the start of the light amount increase, and is set to 4 here. When it is determined that the interrupt process counter variable vc is not larger than the light amount increase start reference counter constant C1, the diaphragm 34 is in a hunting state because the diaphragm 34 has not been operated for a long time because the light amount has decreased. Therefore, the light intensity increase is not executed, and the interrupt routine ends as it is. On the other hand, when it is determined in step S206 that the interrupt process counter variable vc is larger than the light amount increase start reference counter constant C1, the process proceeds to step S207.

【0029】ステップS207では、高輝度画素割合
(変数vp2)が高輝度参照割合CP2より大きいか否
かが判断される。高輝度参照割合CP2は、光量増加に
対するパルス数を定めるための基準となる高輝度画素割
合を表す。ここでは、高輝度参照割合CP2は30%に
定められている。高輝度画素割合vp2が高輝度参照割
合CP2より大きいと判断された場合、ステップS20
8へ進む。ステップS208では、所定パルス数の分だ
け絞り34が開くように、絞り制御回路32へ制御信号
が送られる。パルス数は絞り34を過度に開けないよう
な数に設定され、ここでは1に設定されている。一方、
ステップS207において、高輝度画素割合vp2が高
輝度参照割合CP2より大きくないと判断された場合、
ステップS209へ進む。ステップS209では、パル
ス数がステップS208に比べて大きい値に設定されて
おり、そのパルス数分だけ絞り34が開くように絞り制
御回路32へ制御信号が送られる。ここでは、パルス数
は2に設定されている。ステップS208あるいはステ
ップS209が実行されるとステップS210へ進み、
割り込み処理カウンタ変数vcが光量増加提示定数C2
の値に設定される。光量増加提示定数C2は、光量増加
が行われたことを示すための定数であり、ここでは2の
値に設定されている。ステップS210が実行される
と、割り込みルーチンは終了する。
In step S207, it is determined whether the high-brightness pixel ratio (variable vp2) is larger than the high-brightness reference ratio CP2. The high-brightness reference ratio CP2 represents a high-brightness pixel ratio serving as a reference for determining the number of pulses with respect to the increase in the light amount. Here, the high luminance reference ratio CP2 is set to 30%. If it is determined that the high-brightness pixel ratio vp2 is higher than the high-brightness reference ratio CP2, step S20.
Go to 8. In step S208, a control signal is sent to the aperture control circuit 32 so that the aperture 34 is opened by a predetermined number of pulses. The number of pulses is set to a number that does not open the aperture 34 excessively, and is set to 1 here. on the other hand,
When it is determined in step S207 that the high-brightness pixel ratio vp2 is not larger than the high-brightness reference ratio CP2,
It proceeds to step S209. In step S209, the number of pulses is set to a value larger than that in step S208, and a control signal is sent to the aperture control circuit 32 so that the aperture 34 opens by the number of pulses. Here, the number of pulses is set to 2. When step S208 or step S209 is executed, the process proceeds to step S210,
The interrupt processing counter variable vc is the light amount increase presentation constant C2.
Is set to the value of. The light amount increase presentation constant C2 is a constant for indicating that the light amount has been increased, and is set to a value of 2 here. When step S210 is executed, the interrupt routine ends.

【0030】一方、ステップS205において、暗部割
合vdpが暗部参照割合CD1より小さいと判断された
場合、ステップS211へ進む。ステップS211で
は、割り込み処理カウンタ変数vcが1であるか否かが
判断される。割り込み処理カウンタ変数vcが1である
と判断された場合、ステップS215において光量減少
のため絞り34を駆動させてから時間があまり経過して
いないことから、ハンチング防止のため絞り34を駆動
させず、割り込みルーチンはこのまま終了する。一方、
ステップS211において割り込み処理カウンタ変数v
cが1ではないと判断された場合、ステップS212へ
進む。
On the other hand, if it is determined in step S205 that the dark part ratio vdp is smaller than the dark part reference ratio CD1, the process proceeds to step S211. In step S211, it is determined whether or not the interrupt processing counter variable vc is 1. If it is determined that the interrupt processing counter variable vc is 1, it is not time has passed since the diaphragm 34 was driven to reduce the light amount in step S215, and therefore the diaphragm 34 is not driven to prevent hunting. The interrupt routine ends as it is. on the other hand,
In step S211, the interrupt processing counter variable v
If it is determined that c is not 1, the process proceeds to step S212.

【0031】ステップS212では、暗部割合vdpが
光量増加参照割合(変数CD2)よりも小さいか否かが
判断される。光量増加参照割合CD2は、光量増加量を
定めるのに基準となる暗部割合を示す。ここでは、光量
増加参照割合CD2は30%に設定されている。暗部割
合vdpが光量増加参照割合CD2よりも小さいと判断
された場合、ステップS213へ進む。ステップS21
2では、所定パルス数の分だけ絞り34が開くように、
絞り制御回路32へ制御信号が送られる。被写体像が極
端に暗くないことから、パルス数は、ここでは8に設定
されている。一方、ステップS212において、暗部割
合vdpが光量増加参照割合CD2よりも小さくないと
判断された場合、ステップS214へ進む。ステップS
214では、所定パルス数の分だけ絞り34が開くよう
に絞り制御回路32へ制御信号が送られる。被写体像の
明るさレベルをある程度上げるため、パルス数はここで
は14に設定されている。ステップS213もしくはス
テップS214が実行されると、割り込みルーチンは終
了する。
In step S212, it is determined whether the dark portion ratio vdp is smaller than the light amount increasing reference ratio (variable CD2). The light amount increase reference ratio CD2 indicates a dark portion ratio that serves as a reference for determining the light amount increase amount. Here, the light amount increase reference ratio CD2 is set to 30%. When it is determined that the dark portion ratio vdp is smaller than the light amount increasing reference ratio CD2, the process proceeds to step S213. Step S21
In 2, the diaphragm 34 is opened by a predetermined number of pulses,
A control signal is sent to the aperture control circuit 32. The number of pulses is set to 8 here because the subject image is not extremely dark. On the other hand, when it is determined in step S212 that the dark portion ratio vdp is not smaller than the light amount increase reference ratio CD2, the process proceeds to step S214. Step S
At 214, a control signal is sent to the aperture control circuit 32 so that the aperture 34 is opened by a predetermined number of pulses. The number of pulses is set to 14 here in order to raise the brightness level of the subject image to some extent. When step S213 or step S214 is executed, the interrupt routine ends.

【0032】このように本実施形態によれば、ステップ
S201においてヒストグラムデータが生成され、ステ
ップS202では、ヒストグラムデータに基づいてハレ
ーション発生割合vp1、高輝度画素割合vp2、暗部
割合vdpがそれぞれ算出される。そして、ハレーショ
ンが発生しているか否かがハレーション発生割合vp1
に基づいて判断される(S203)。ハレーションが発
生している場合、光量を減少させる(S215)。一
方、ハレーションが発生していない場合、暗部割合vd
pが暗部参照割合CD1より小さいか否かが判断される
(ステップS205)。暗部割合vdpが暗部参照割合
CD1より小さい場合、わずかに光量を増加させるよう
なパルス数に基づいて絞り34が駆動される(ステップ
S208、209)。一方、暗部割合vdpが暗部参照
割合CD1より小さくない場合、ある程度光量が増加す
るように絞り34が駆動される(ステップS213、S
214)。
As described above, according to the present embodiment, the histogram data is generated in step S201, and in step S202, the halation occurrence rate vp1, the high-luminance pixel rate vp2, and the dark area rate vdp are calculated based on the histogram data. . Then, it is determined whether the halation is occurring or not by the halation occurrence rate vp1.
(S203). If halation occurs, the light amount is reduced (S215). On the other hand, when halation does not occur, the dark area ratio vd
It is determined whether p is smaller than the dark area reference ratio CD1 (step S205). When the dark portion ratio vdp is smaller than the dark portion reference ratio CD1, the diaphragm 34 is driven based on the pulse number that slightly increases the light amount (steps S208, 209). On the other hand, when the dark portion ratio vdp is not smaller than the dark portion reference ratio CD1, the diaphragm 34 is driven so that the light amount increases to some extent (steps S213 and S213).
214).

【0033】さらに、本実施形態では、あまり光量を増
加させない場合、高輝度画素割合vp2と高輝度参照割
合CP2とが比較され(ステップS207)、比較によ
ってパルス数の値が2段階に分かれて(1パルスと2パ
ルス)設定されるようになっている。また、ある程度光
量を増加させる場合、暗部割合vdpと光量増加参照割
合CD2とが比較され、(ステップS212)、比較に
よってパルス数の値が2段階に分かれて(8パルスと1
4パルス)設定されるようになっている。ただし、パル
ス数を設定する際には、2段階に限らずさらに細分化し
て設定するようにしてもよい。
Further, in the present embodiment, when the light amount is not increased so much, the high-brightness pixel ratio vp2 and the high-brightness reference ratio CP2 are compared (step S207), and the value of the pulse number is divided into two levels by the comparison ( 1 pulse and 2 pulses) are set. Further, when increasing the light amount to some extent, the dark portion ratio vdp and the light amount increasing reference ratio CD2 are compared (step S212), and the value of the pulse number is divided into two stages by comparison (8 pulses and 1 pulse).
4 pulses) are set. However, when the number of pulses is set, the number of pulses is not limited to two, and may be set by subdividing.

【0034】光量調整を行うための構成に関しては、光
ファイバー束に入射する光の光量を絞りの開閉によって
調整する代わりに、発光ダイオードをビデオスコープ先
端に設け、発光ダイオードへ供給する電流を制御するこ
とによって被写体へ照射される光の光量を調整してもよ
い。また、電子内視鏡装置の代わりに、内視鏡用光源装
置に対して上述した光量調整を行う構成を適用させても
よい。
Regarding the configuration for adjusting the light quantity, instead of adjusting the light quantity of the light incident on the optical fiber bundle by opening and closing the diaphragm, a light emitting diode is provided at the tip of the videoscope and the current supplied to the light emitting diode is controlled. You may adjust the light quantity of the light with which a to-be-photographed object is irradiated. Further, instead of the electronic endoscope device, the configuration for performing the above-described light amount adjustment may be applied to the endoscope light source device.

【0035】[0035]

【発明の効果】以上のように本発明によれば、ハレーシ
ョン発生を抑えながら被写体像を適切な明るさに維持す
る光量調整を行うことが出来る。
As described above, according to the present invention, it is possible to perform the light amount adjustment for keeping the subject image at an appropriate brightness while suppressing the occurrence of halation.

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

【図1】本実施形態である電子内視鏡装置のブロック図
である。
FIG. 1 is a block diagram of an electronic endoscope apparatus according to the present embodiment.

【図2】プロセッサ内のCPUにおいて実行されるメイ
ンルーチンを示した図である。
FIG. 2 is a diagram showing a main routine executed by a CPU in a processor.

【図3】自動調光処理を実行する割り込みルーチンを示
した図である。
FIG. 3 is a diagram showing an interrupt routine for executing automatic light control processing.

【図4】被写体像の明るさに関するヒストグラムを示し
た図である。
FIG. 4 is a diagram showing a histogram relating to the brightness of a subject image.

【図5】高輝度画素割合とパルス数との対応関係の表を
示した図である。
FIG. 5 is a diagram showing a table of a correspondence relationship between a high-luminance pixel ratio and the number of pulses.

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

10 プロセッサ 24 CPU 32 絞り制御回路 33 モータ 34 絞り 50 ビデオスコープ 54 CCD(撮像素子) vp1 ハレーション発生割合 vp2 高輝度画素割合 vdp 暗部割合 CD1 暗部参照割合 10 processors 24 CPU 32 Aperture control circuit 33 motor 34 Aperture 50 video scope 54 CCD (imaging device) vp1 halation rate vp2 High brightness pixel ratio vdp dark area ratio CD1 dark area reference ratio

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成14年11月29日(2002.11.
29)
[Submission date] November 29, 2002 (2002.11.
29)

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0012[Correction target item name] 0012

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0012】電子内視鏡装置では、撮像素子としてCC
D54を有するビデオスコープ50と、ビデオスコープ
50から送られてくる画像信号を処理するプロセッサ1
0とが備えられ、被写体像を表示するモニタ32’がプ
ロセッサ10に接続される。ビデオスコープ50はプロ
セッサ10に着脱自在に接続されており、また、プロセ
ッサ10にはキーボード34’が接続される。
In the electronic endoscope apparatus, CC is used as an image pickup element.
Videoscope 50 having D54, and processor 1 for processing image signals sent from the videoscope 50
0 and a monitor 32 ′ for displaying a subject image is connected to the processor 10. The video scope 50 is detachably connected to the processor 10, and a keyboard 34 'is connected to the processor 10.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0017[Correction target item name] 0017

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0017】プロセッサ10のフロントパネルには一連
のパネルスイッチ30が設けられており、パネルスイッ
チ30に対する操作に応じた処理が実行される。また、
キーボード34において患者情報などの文字情報をモニ
タ32’に表示するためキー操作がなされると、キーボ
ード34’の操作に応じた信号がCPU24へ入力さ
れ、その信号に基いてCRTC(CRTコントローラ)
22へ制御信号が送られる。そして、キー操作に応じた
キャラクタ信号がCRTC22から出力され、ビデオ信
号にスーパーインポーズされる。また、RTC(RealTi
meClock)28から日時のデータがCPU24によって
読み出され、現在の日時に応じたキャラクタ信号がCR
TC22から出力される。
A series of panel switches 30 are provided on the front panel of the processor 10, and a process according to an operation on the panel switches 30 is executed. Also,
When a key operation is performed on the keyboard 34 to display character information such as patient information on the monitor 32 ', a signal corresponding to the operation of the keyboard 34' is input to the CPU 24, and a CRTC (CRT controller) is based on the signal.
A control signal is sent to 22. Then, a character signal corresponding to the key operation is output from the CRTC 22 and superimposed on the video signal. In addition, RTC (RealTi
The date and time data is read from the meClock) 28 by the CPU 24, and the character signal according to the current date and time is CR.
It is output from TC22.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0020[Correction target item name] 0020

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0020】ステップS101では、CPU24の初期
設定、変数の初期設定が行われる。ステップS102で
はパネルスイッチ30に関する処理が行われ、所定のス
イッチが操作された場合にそのスイッチに対する処理が
実行される。ステップS103では、キーボード34’
に関する処理が行われ、所定のキーが操作された場合、
そのキー操作に対する処理が実行される。
In step S101, the CPU 24 and variables are initialized. In step S102, a process regarding the panel switch 30 is performed, and when a predetermined switch is operated, the process for the switch is performed. In step S103, the keyboard 34 '
Is performed and a predetermined key is operated,
The process corresponding to the key operation is executed.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0027[Name of item to be corrected] 0027

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0027】一方、ステップS203において、算出さ
れたハレーション割合vp1が参照ハレーション割合C
P1より大きくない、すなわちハレーションは発生して
いないと判断された場合、ステップS204へ進み、割
り込み処理カウンタ変数vcに1が加算される。そし
て、ステップS205では、算出された暗部割合vdp
が暗部参照割合(定数CD1)より大きいか否かが判断
される。暗部参照割合CD1は光量の増加量をどの程度
行うか定めるのに基準となる暗部割合を示す。ここで
は、暗部参照割合CD1は15%に定められている。暗
部割合vdpが暗部参照割合CD1以上である場合、被
写体像が極端に暗い状態であることから、光量を多く増
加させるための処理がステップS211〜ステップS2
14において実行される。逆に、暗部割合vdpが暗部
参照割合CD1より小さい場合、被写体像が極端に暗い
状態ではないことから、光量増加量の程度を抑えた光量
増加がステップS206〜S210において実行され
る。
On the other hand, in step S203, the calculated halation ratio vp1 is the reference halation ratio C.
If it is determined that it is not larger than P1, that is, if halation has not occurred, the process proceeds to step S204, and 1 is added to the interrupt processing counter variable vc. Then, in step S205, the calculated dark area ratio vdp.
Is larger than the dark area reference ratio (constant CD1). The dark portion reference ratio CD1 indicates a dark portion ratio which is a standard for determining how much the light amount is increased. Here, the dark portion reference ratio CD1 is set to 15%. When the dark part ratio vdp is equal to or more than the dark part reference ratio CD1, the subject image is in an extremely dark state, and therefore, the process for increasing the light amount is performed in steps S211 to S2.
14 is executed. On the contrary, when the dark portion ratio vdp is smaller than the dark portion reference ratio CD1, the subject image is not in an extremely dark state, and thus the light amount increase is suppressed in steps S206 to S210.

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0030[Name of item to be corrected] 0030

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0030】一方、ステップS205において、暗部割
合vdpが暗部参照割合CD1より大きいと判断された
場合、ステップS211へ進む。ステップS211で
は、割り込み処理カウンタ変数vcが1であるか否かが
判断される。割り込み処理カウンタ変数vcが1である
と判断された場合、ステップS215において光量減少
のため絞り34を駆動させてから時間があまり経過して
いないことから、ハンチング防止のため絞り34を駆動
させず、割り込みルーチンはこのまま終了する。一方、
ステップS211において割り込み処理カウンタ変数v
cが1ではないと判断された場合、ステップS212へ
進む。
On the other hand, if it is determined in step S205 that the dark portion ratio vdp is larger than the dark portion reference ratio CD1, the process proceeds to step S211. In step S211, it is determined whether or not the interrupt processing counter variable vc is 1. If it is determined that the interrupt processing counter variable vc is 1, it is not time has passed since the diaphragm 34 was driven to reduce the light amount in step S215, and therefore the diaphragm 34 is not driven to prevent hunting. The interrupt routine ends as it is. on the other hand,
In step S211, the interrupt processing counter variable v
If it is determined that c is not 1, the process proceeds to step S212.

【手続補正6】[Procedure correction 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0031[Correction target item name] 0031

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0031】ステップS212では、暗部割合vdpが
光量増加参照割合(定数CD2)よりも小さいか否かが
判断される。光量増加参照割合CD2は、光量増加量を
定めるのに基準となる暗部割合を示す。ここでは、光量
増加参照割合CD2は30%に設定されている。暗部割
合vdpが光量増加参照割合CD2よりも小さいと判断
された場合、ステップS213へ進む。ステップS21
3では、所定パルス数の分だけ絞り34が開くように、
絞り制御回路32へ制御信号が送られる。被写体像が極
端に暗くないことから、パルス数は、ここでは8に設定
されている。一方、ステップS212において、暗部割
合vdpが光量増加参照割合CD2よりも小さくないと
判断された場合、ステップS214へ進む。ステップS
214では、所定パルス数の分だけ絞り34が開くよう
に絞り制御回路32へ制御信号が送られる。被写体像の
明るさレベルをある程度上げるため、パルス数はここで
は14に設定されている。ステップS213もしくはス
テップS214が実行されると、割り込みルーチンは終
了する。
In step S212, it is determined whether the dark portion ratio vdp is smaller than the light amount increasing reference ratio (constant CD2). The light amount increase reference ratio CD2 indicates a dark portion ratio that serves as a reference for determining the light amount increase amount. Here, the light amount increase reference ratio CD2 is set to 30%. When it is determined that the dark portion ratio vdp is smaller than the light amount increasing reference ratio CD2, the process proceeds to step S213. Step S21
In 3, the diaphragm 34 is opened by a predetermined number of pulses,
A control signal is sent to the aperture control circuit 32. The number of pulses is set to 8 here because the subject image is not extremely dark. On the other hand, when it is determined in step S212 that the dark portion ratio vdp is not smaller than the light amount increase reference ratio CD2, the process proceeds to step S214. Step S
At 214, a control signal is sent to the aperture control circuit 32 so that the aperture 34 is opened by a predetermined number of pulses. The number of pulses is set to 14 here in order to raise the brightness level of the subject image to some extent. When step S213 or step S214 is executed, the interrupt routine ends.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 撮像素子を有するビデオスコープと前記
ビデオスコープが接続されるプロセッサとを備えた電子
内視鏡装置であって、 被写体像の明るさに関するヒストグラムデータを得るた
め、前記撮像素子から読み出される画像信号に基づいて
所定のヒストグラム処理を施すヒストグラム処理手段
と、 前記ヒストグラムデータに基づいて、ハレーションが発
生しているか否かを検出するハレーション検出手段と、 ハレーションの有無に基づいて、被写体像の明るさが適
切な明るさとなるように被写体を照明する光の光量を所
定の時間間隔ごとに調整する光量調整手段とを備え、 前記光量調整手段が、 ハレーションが発生している場合、光量を減少させ、 ハレーションが発生していない場合、ハレーションが発
生する直前まで一定時間間隔で光量を増加させていくこ
とを特徴とする電子内視鏡装置。
1. An electronic endoscope apparatus comprising a videoscope having an image pickup device and a processor to which the videoscope is connected, wherein the electronic endoscope device is read from the image pickup device in order to obtain histogram data relating to the brightness of a subject image. Histogram processing means for performing a predetermined histogram processing based on the image signal to be displayed, halation detection means for detecting whether or not halation is occurring based on the histogram data, and a subject image based on the presence or absence of halation. And a light amount adjusting means for adjusting the light amount of the light for illuminating the subject at predetermined time intervals so that the brightness becomes appropriate brightness, and the light amount adjusting means reduces the light amount when halation occurs. If there is no halation, a fixed time interval is applied until just before the halation occurs. An electronic endoscope device characterized by increasing the amount of light.
【請求項2】 被写体像全体の中で所定の輝度以下であ
る画素の割合を示す暗部割合を算出する暗部割合算出手
段と、 前記暗部割合の値が基準となる暗部参照割合の値以上で
あるか否かを判別する暗部割合判別手段とをさらに有
し、 前記暗部割合の値が基準となる暗部参照割合の値以上で
ある場合、前記光量調整手段が、前記暗部参照割合以下
となる場合に比べてより多く光量を増加させることを特
徴とする請求項1に記載の電子内視鏡装置。
2. A dark area ratio calculating means for calculating a dark area ratio indicating a ratio of pixels having a luminance equal to or lower than a predetermined brightness in the entire subject image, and a value of the dark area ratio is equal to or larger than a reference dark area reference ratio. Dark area ratio determining means for determining whether or not, when the value of the dark area ratio is greater than or equal to the reference dark area reference ratio, the light amount adjusting means, when the dark area reference ratio is less than The electronic endoscope device according to claim 1, wherein the amount of light is increased more than that of the electronic endoscope device.
【請求項3】 被写体像の明るさに関するヒストグラム
データを得るため、被写体像に応じた画像信号に基づい
て所定のヒストグラム処理を施すヒストグラム処理手段
と、 前記ヒストグラムデータに基づいて、ハレーションが発
生しているか否かを検出するハレーション検出手段と、 ハレーションの有無に基づいて、被写体像の明るさが適
切な明るさとなるように被写体を照明する光の光量を所
定の時間間隔ごとに調整する光量調整手段とを備え、 前記光量調整手段が、 ハレーションが発生している場合、光量を減少させ、 ハレーションが発生していない場合、ハレーションが発
生する直前まで一定時間間隔で光量を増加させていくこ
とを特徴とする内視鏡用自動調光装置。
3. Histogram processing means for performing predetermined histogram processing based on an image signal corresponding to the subject image to obtain histogram data relating to the brightness of the subject image, and halation is generated based on the histogram data. Halation detecting means for detecting whether or not there is light, and light quantity adjusting means for adjusting the light quantity of the light for illuminating the subject at predetermined time intervals so that the brightness of the subject image becomes appropriate brightness based on the presence or absence of halation. Wherein the light amount adjusting means decreases the light amount when halation is occurring, and increases the light amount at a constant time interval until just before halation occurs when halation is not occurring. An automatic light control device for endoscopes.
JP2002057135A 2002-03-04 2002-03-04 Automatic dimming device for endoscope and electronic endoscope device Expired - Fee Related JP4131007B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002057135A JP4131007B2 (en) 2002-03-04 2002-03-04 Automatic dimming device for endoscope and electronic endoscope device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002057135A JP4131007B2 (en) 2002-03-04 2002-03-04 Automatic dimming device for endoscope and electronic endoscope device

Publications (2)

Publication Number Publication Date
JP2003250761A true JP2003250761A (en) 2003-09-09
JP4131007B2 JP4131007B2 (en) 2008-08-13

Family

ID=28667477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002057135A Expired - Fee Related JP4131007B2 (en) 2002-03-04 2002-03-04 Automatic dimming device for endoscope and electronic endoscope device

Country Status (1)

Country Link
JP (1) JP4131007B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1649801A1 (en) * 2004-10-20 2006-04-26 Fujinon Corporation Electronic endoscope apparatus and method of controlling image luminance for electronic endoscope apparatus
JP2007097711A (en) * 2005-09-30 2007-04-19 Fujinon Corp Electronic endoscope apparatus
JP2009276545A (en) * 2008-05-14 2009-11-26 Olympus Corp Internal inspection device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1649801A1 (en) * 2004-10-20 2006-04-26 Fujinon Corporation Electronic endoscope apparatus and method of controlling image luminance for electronic endoscope apparatus
US7924308B2 (en) 2004-10-20 2011-04-12 Fujifilm Corporation Electronic endoscope apparatus and method of controlling image luminance for electronic endoscope apparatus
JP2007097711A (en) * 2005-09-30 2007-04-19 Fujinon Corp Electronic endoscope apparatus
JP4694336B2 (en) * 2005-09-30 2011-06-08 富士フイルム株式会社 Electronic endoscope device
US8350901B2 (en) 2005-09-30 2013-01-08 Fujinon Corporation Electronic endoscopic apparatus
JP2009276545A (en) * 2008-05-14 2009-11-26 Olympus Corp Internal inspection device

Also Published As

Publication number Publication date
JP4131007B2 (en) 2008-08-13

Similar Documents

Publication Publication Date Title
JP4390440B2 (en) Automatic dimming device for endoscope and electronic endoscope device
US6980227B2 (en) Electronic endoscope with light-amount adjustment apparatus
JP4223778B2 (en) Automatic dimming device for endoscope and electronic endoscope device
JP3590533B2 (en) Endoscope device
JP4349856B2 (en) Electronic endoscope device capable of automatic dimming
JP4459506B2 (en) Automatic dimming device for endoscope and electronic endoscope device
JP2003250760A (en) Automatic light regulator for endoscope and electronic endoscope unit
JP2012085790A (en) Endoscopic system
JP4131007B2 (en) Automatic dimming device for endoscope and electronic endoscope device
JP4694051B2 (en) Electronic endoscope
US20070269087A1 (en) Endoscope processor, computer program product, endoscope system, and endoscope image playback apparatus
JP2001154232A (en) Photometric device
JP2002263064A (en) Automatic dimmer for endoscope and processor of electronic endoscope apparatus containing the same
JP2003319905A (en) Electronic endoscope apparatus including video processor
JP4786875B2 (en) Videoscope of electronic endoscope device capable of brightness adjustment processing
JP4338406B2 (en) Video scope of electronic endoscope equipment
JP4311959B2 (en) Electronic endoscope device
JP3940016B2 (en) Electronic endoscope device capable of recording still images
JP4426220B2 (en) Electronic endoscope device capable of split photometry
JP4761651B2 (en) Electronic endoscope device with automatic dimming function to prevent halation
JP4554891B2 (en) Electronic endoscope device with adjustable white balance
JP4502666B2 (en) Videoscope of electronic endoscope device capable of brightness adjustment processing
JP2002325729A (en) Electronic endoscope provided with automatic lighting control function
JP4360852B2 (en) Electronic endoscope device
JP4555056B2 (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: 20050207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070629

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080128

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080430

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080509

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

Free format text: PAYMENT UNTIL: 20110606

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4131007

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120606

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130606

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130606

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140606

Year of fee payment: 6

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees