JP2005124755A - Image processor for endoscope - Google Patents

Image processor for endoscope Download PDF

Info

Publication number
JP2005124755A
JP2005124755A JP2003362521A JP2003362521A JP2005124755A JP 2005124755 A JP2005124755 A JP 2005124755A JP 2003362521 A JP2003362521 A JP 2003362521A JP 2003362521 A JP2003362521 A JP 2003362521A JP 2005124755 A JP2005124755 A JP 2005124755A
Authority
JP
Japan
Prior art keywords
image
image processing
region
signal
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2003362521A
Other languages
Japanese (ja)
Inventor
Kazumasa Kaneko
和真 金子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp filed Critical Olympus Corp
Priority to JP2003362521A priority Critical patent/JP2005124755A/en
Publication of JP2005124755A publication Critical patent/JP2005124755A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor for an endoscope which can appropriately set the diaphragm means of illumination light and improve the precision of an image processing at the time of performing the image processing. <P>SOLUTION: Signals image-picked up by the CCD 30 of an electronic endoscope 2 are processed in a video signal processing block 4 inside a video processor 6 and then IHb calculation or the like is executed in an image processing block 5 when the image processing is ON. A CPU 56 judges whether or not the image processing is ON, and when it is ON, a diaphragm 25 is maintained fully open, appropriate brightness is attained by an electronic shutter, and the image processing is executed. Thus, the fluctuation of an illumination light quantity is suppressed and an accurate image processing result is obtained. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、内視鏡の画像信号に対して画像処理する内視鏡用画像処理装置に関する。   The present invention relates to an endoscope image processing apparatus that performs image processing on an image signal of an endoscope.

近年、内視鏡より得られた内視鏡画像に対して画像処理を行うことにより、被検体内の正常部位と病変部などとの識別を容易に行えるようにする画像処理装置が用いられるようになった。   In recent years, an image processing apparatus has been used that makes it easy to distinguish between a normal site and a lesioned part in a subject by performing image processing on an endoscopic image obtained from an endoscope. Became.

例えば特開平6−319695号公報の従来例は、内視鏡画像の画像信号から血液情報量を算出して疑似カラーで表示できるものを開示している。
特開平6−319695号公報
For example, the conventional example of Japanese Patent Laid-Open No. 6-319695 discloses a device that can calculate the blood information amount from an image signal of an endoscopic image and display it in a pseudo color.
Japanese Patent Laid-Open No. 6-319695

しかしながら、上記従来例は、観察画像の色調と明るさは良いにも係わらず、血液情報量の算出精度が不足する場合があった。   However, in the above conventional example, although the color tone and brightness of the observation image are good, the calculation accuracy of the blood information amount may be insufficient.

このため、血液情報量の算出精度等、画像処理結果をより向上できる画像処理装置が要望される。   For this reason, there is a demand for an image processing apparatus that can further improve the results of image processing, such as the accuracy of blood information calculation.

(発明の目的)
本発明は上述した点に鑑みてなされたもので、画像処理を行う際に、照明光の絞り手段を適正に設定し、画像処理の精度を向上することができる内視鏡用画像処理装置を提供することを目的とする。
(Object of invention)
The present invention has been made in view of the above-described points. An endoscope image processing apparatus capable of appropriately setting illumination light aperture means and improving the accuracy of image processing when performing image processing. The purpose is to provide.

本発明は、内視鏡により被検体の体腔内を撮像して得られる画像信号を処理する内視鏡用画像処理装置において、
前記内視鏡により得られた画像信号の信号レベルに基づき、この画像信号に所定の処理を施して、その処理結果を表示可能な処理画像又は処理結果値の少なくとも1つを得る為の画像処理手段と、
前記画像信号を得る為の可視光領域を含む照明光を供給する照明光供給手段と、
照明光量を調整する絞り手段と、
を具備し、
前記画像処理手段が動作状態の時に、前記絞り手段を介しての照明光量を前記画像処理手段による画像処理後の画像信号が適正となるように制御することを特徴とする。
The present invention relates to an endoscope image processing apparatus for processing an image signal obtained by imaging an inside of a body cavity of a subject with an endoscope.
Image processing based on the signal level of the image signal obtained by the endoscope to perform predetermined processing on the image signal and obtain at least one of a processed image or a processing result value capable of displaying the processing result Means,
Illumination light supply means for supplying illumination light including a visible light region for obtaining the image signal;
A diaphragm means for adjusting the amount of illumination light,
Comprising
When the image processing means is in an operating state, the amount of illumination light through the aperture means is controlled so that an image signal after image processing by the image processing means is appropriate.

上記構成により、前記画像信号を適正とするように絞り手段による照明光量を制御して、画像処理の精度を向上できるようにしている。   With the above configuration, the amount of illumination light by the diaphragm means is controlled so that the image signal is appropriate, so that the accuracy of image processing can be improved.

本発明によれば、絞り手段を介しての照明光量を前記画像信号が適正となるように制御するので、前記画像信号を適正とするように照明光量が設定され、画像処理の精度を向上できる。   According to the present invention, since the amount of illumination light through the aperture means is controlled so that the image signal is appropriate, the amount of illumination light is set so that the image signal is appropriate, and the accuracy of image processing can be improved. .

以下、図面を参照して本発明の実施例を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1ないし図14は本発明の実施例1に係り、図1は実施例1を備えた内視鏡装置の全体構成を示し、図2は図1における内部構成を示し、図3は回転フィルタ及び回転フィルタに設けられたRGBフィルタ等の透過特性等を示し、図4はメニュー画面の表示例を示し、図5はモニタ画面に表示される内視鏡画像表示領域と表示位置及びサイズを変更して可能な関心領域を示し、図6は内視鏡画像表示領域に設定した関心領域に処理画像を擬似カラーで表示する表示例を示し、図7は図6とは異なる表示例を示し、図8はCCDのタイプを検出して対応するマスク信号を生成する動作を示し、図9は図8におけるタイプ1用マスク信号生成の処理動作を示し、図10は画像処理を行った場合に関心領域のサイズに応じて関心領域内での画像処理を行うか否かの閾値を変更する動作を示し、図11は擬似カラー処理と原画像表示の処理動作を示し、図12は図11における擬似カラー処理の表示の処理動作を示し、図13は内視鏡検査時における照明光量制御の処理動作を示し、図14はさらに電子シャッタを用いた撮像制御(画像信号の明るさ制御)の処理動作を示す。   1 to 14 relate to a first embodiment of the present invention, FIG. 1 shows an overall configuration of an endoscope apparatus including the first embodiment, FIG. 2 shows an internal configuration in FIG. 1, and FIG. 3 shows a rotary filter. 4 shows the transmission characteristics of the RGB filter and the like provided in the rotation filter, FIG. 4 shows a display example of the menu screen, and FIG. 5 changes the endoscope image display area displayed on the monitor screen, and the display position and size. 6 shows a possible region of interest, FIG. 6 shows a display example in which the processed image is displayed in a pseudo color in the region of interest set in the endoscope image display region, FIG. 7 shows a display example different from FIG. FIG. 8 shows the operation of detecting the CCD type and generating the corresponding mask signal, FIG. 9 shows the processing operation of generating the type 1 mask signal in FIG. 8, and FIG. 10 is of interest when image processing is performed. Image processing within the region of interest according to the size of the region FIG. 11 shows the pseudo color processing and the original image display processing operation, FIG. 12 shows the pseudo color processing display processing operation in FIG. 11, and FIG. FIG. 14 shows the processing operation of the imaging control (brightness control of the image signal) using the electronic shutter.

図1に示すように、本実施例を備えた内視鏡装置1は、撮像手段を備えた電子内視鏡2と、この電子内視鏡2に照明光を供給する光源部3と、撮像手段に対して映像信号処理(画像信号処理)する映像信号処理ブロック4及びこの映像信号処理ブロック4からの出力信号に対して画像処理する画像処理ブロック5とを内蔵したビデオプロセッサ6と、このビデオプロセッサ6から出力される画像信号を表示するモニタ7と、モニタ7に表示されるモニタ画像(内視鏡画像)を写真撮影するモニタ画像撮影装置8Aと、このビデオプロセッサ6に接続され、画像情報等の記録を行う画像ファイリング装置8Bと、画像処理のON/OFFの指示信号を送ったり、患者データの入力等を行うキーボード9と、を有する。   As shown in FIG. 1, an endoscope apparatus 1 including the present embodiment includes an electronic endoscope 2 including an imaging unit, a light source unit 3 that supplies illumination light to the electronic endoscope 2, and imaging. A video processor 6 including a video signal processing block 4 that performs video signal processing (image signal processing) on the means and an image processing block 5 that performs image processing on an output signal from the video signal processing block 4; A monitor 7 for displaying an image signal output from the processor 6, a monitor image photographing device 8A for photographing a monitor image (endoscopic image) displayed on the monitor 7, and the video processor 6 are connected to the image information. And an image filing device 8B that performs recording and the like, and a keyboard 9 that transmits an image processing ON / OFF instruction signal and inputs patient data.

電子内視鏡2は、細長で例えば可動性の挿入部11を有し、この挿入部11の後端に太幅の操作部12が連設されており、この操作部12の後端側の側部から可撓性のユニバーサルコード13が延設され、このユニバーサルコード13の端部のコネクタ14は、ビデオプロセッサ6のコネクタ受け部15に着脱自在で接続される。   The electronic endoscope 2 has an elongated and movable insertion portion 11, for example, and a thick operation portion 12 is connected to the rear end of the insertion portion 11. A flexible universal cord 13 is extended from the side, and a connector 14 at the end of the universal cord 13 is detachably connected to a connector receiving portion 15 of the video processor 6.

電子内視鏡2の挿入部11には、先端側から硬性の先端部16、この先端部16に隣接する湾曲自在の湾曲部17、可撓性を有する長尺の可撓部18が順次設けられている。 また、ユーザは、電子内視鏡2の操作部12に設けられた湾曲操作ノブ19を回動操作する事によって、湾曲部17を左右方向あるいは上下方向に湾曲できるようになっている。また、この電子内視鏡2の操作部12には、挿入部11内に設けられた処置具チャンネルに連通する挿入口20が設けられている。   The insertion portion 11 of the electronic endoscope 2 is provided with a rigid distal end portion 16 from the distal end side, a bendable bending portion 17 adjacent to the distal end portion 16, and a long flexible portion 18 having flexibility. It has been. Further, the user can bend the bending portion 17 in the left-right direction or the up-down direction by rotating the bending operation knob 19 provided in the operation portion 12 of the electronic endoscope 2. Further, the operation section 12 of the electronic endoscope 2 is provided with an insertion port 20 that communicates with a treatment instrument channel provided in the insertion section 11.

また、電子内視鏡2の操作部12の頂部には、フリーズ指示を行うフリーズスイッチ、レリーズ指示を行うレリーズスイッチ、観察モード切替スイッチ等のスコープスイッチ10が設けてある。そして、ユーザは、スコープスイッチ10を操作して例えばフリーズ指示を行うと、その指示信号は、ビデオプロセッサ6内部の制御回路40(図2参照)を介してCPU56(図2参照)に入力され、CPU56は、制御回路40を介してフリーズ画像が表示されるようにメモリ部39(のR、G、B用メモリ39r、39g、39b)を制御する。   Further, a scope switch 10 such as a freeze switch for giving a freeze instruction, a release switch for giving a release instruction, an observation mode changeover switch or the like is provided on the top of the operation unit 12 of the electronic endoscope 2. When the user operates the scope switch 10 to give a freeze instruction, for example, the instruction signal is input to the CPU 56 (see FIG. 2) via the control circuit 40 (see FIG. 2) inside the video processor 6. The CPU 56 controls the memory unit 39 (the R, G, and B memories 39r, 39g, and 39b) so that the freeze image is displayed via the control circuit 40.

また、ユーザは、キーボード9やビデオプロセッサ6のフロントパネル55(図2参照)からフリーズ指示操作を行うことにより、その指示信号は、CPU56(図2参照)を介して制御回路40に送られ、CPU56は、制御回路40を介して対応する制御を行う。   Further, when the user performs a freeze instruction operation from the keyboard 9 or the front panel 55 (see FIG. 2) of the video processor 6, the instruction signal is sent to the control circuit 40 via the CPU 56 (see FIG. 2). The CPU 56 performs corresponding control via the control circuit 40.

また、ユーザがレリーズ指示操作を行うと、CPU56は、まずフリーズ画像の表示状態でなければ、制御回路40を介してフリーズ画像を表示する状態に制御い、モニタ画像撮影装置8Aにレリーズの制御信号を送り、モニタ画像撮影装置8Aは、その制御信号により写真撮影を行う。   When the user performs a release instruction operation, the CPU 56 first controls the display of the freeze image via the control circuit 40 unless the freeze image is displayed, and sends a release control signal to the monitor image photographing device 8A. The monitor image photographing device 8A takes a picture according to the control signal.

また、ユーザが、キーボード9やビデオプロセッサ6のフロントパネル55を操作して、画像処理を行うON及び画像処理を停止するOFFの指示入力を行うこともでき、この指示信号が入力されると、CPU56は、IHb処理ブロック44のIHb算出回路61、IHb平均値算出回路62、輝度検出回路67、無効領域検出回路68等を制御して対応する画像処理を行うように制御する。   The user can also operate the keyboard 9 or the front panel 55 of the video processor 6 to input an instruction to turn on image processing and to turn off image processing. When this instruction signal is input, The CPU 56 controls the IHb calculation circuit 61, the IHb average value calculation circuit 62, the luminance detection circuit 67, the invalid area detection circuit 68, and the like of the IHb processing block 44 to perform corresponding image processing.

また、ユーザが、観察モード切替スイッチを操作して観察モード切替指示を行うと、その指示信号は、ビデオプロセッサ6内部の制御回路40に入力され、制御回路40は、後述する移動用モータ31により、回転フィルタ27を移動して通常観察から蛍光観察に観察モードを切り替える等の制御を行う。   When the user operates the observation mode changeover switch to give an observation mode switching instruction, the instruction signal is input to the control circuit 40 inside the video processor 6, and the control circuit 40 is operated by a moving motor 31 described later. Then, the rotation filter 27 is moved to perform control such as switching the observation mode from normal observation to fluorescence observation.

図2に示すように、先端部16における照明窓及び観察窓には、照明レンズ21と対物光学系22とがそれぞれ取り付けてある。対物光学系22の結像位置には、固体撮像素子として、例えば電荷結合素子(CCDと略記)30が配置されている。   As shown in FIG. 2, an illumination lens 21 and an objective optical system 22 are attached to the illumination window and the observation window at the distal end portion 16, respectively. For example, a charge coupled device (abbreviated as CCD) 30 is disposed at the imaging position of the objective optical system 22 as a solid-state imaging device.

照明レンズ21の後端側には、ファイババンドルからなるライトガイド23が配置され、このライトガイド23は、挿入部11、操作部12、ユニバーサルコード13内を挿通され、コネクタ14に接続されている。   A light guide 23 made of a fiber bundle is disposed on the rear end side of the illumination lens 21. The light guide 23 is inserted through the insertion portion 11, the operation portion 12, and the universal cord 13 and is connected to the connector 14. .

そして、ユーザは、このコネクタ14をビデオプロセッサ6に接続する事により、このビデオプロセッサ6内の光源部3から出射される照明光が、前記ライトガイド23の入射端に入射されるようになっている。   Then, the user connects the connector 14 to the video processor 6 so that the illumination light emitted from the light source unit 3 in the video processor 6 enters the incident end of the light guide 23. Yes.

光源部3は、照明光を発生するランプ24を有する。このランプ24の照明光は、その光路中に配設された絞り25を経て、モータ26によって回転される回転フィルタ27に入射され、この回転フィルタ27を透過した光は、集光レンズにより集光されてライトガイド23の入射端に入射される。   The light source unit 3 includes a lamp 24 that generates illumination light. The illumination light of the lamp 24 is incident on a rotary filter 27 rotated by a motor 26 through a diaphragm 25 disposed in the optical path, and the light transmitted through the rotary filter 27 is condensed by a condenser lens. Then, the light is incident on the incident end of the light guide 23.

ランプ24は、可視光を含む照明光を出射する。また、絞り25は、制御回路40により制御される絞りモータ25aにより駆動される。   The lamp 24 emits illumination light including visible light. The diaphragm 25 is driven by a diaphragm motor 25 a controlled by the control circuit 40.

回転フィルタ27は、内周側に通常観察用のRGBフィルタ28が配置され、外周側に蛍光観察用フィルタ29が配置されている。この回転フィルタ27は、この回転フィルタ27を回転するモータ26と共に、移動用モータ31により、光路と直交する方向(図1の符号P参照)に移動される。   In the rotary filter 27, a normal observation RGB filter 28 is disposed on the inner peripheral side, and a fluorescence observation filter 29 is disposed on the outer peripheral side. The rotary filter 27 is moved together with the motor 26 that rotates the rotary filter 27 by a moving motor 31 in a direction perpendicular to the optical path (see reference symbol P in FIG. 1).

例えばモータ26には、ラックが取り付けてあり、ピニオンギヤを設けた移動用モータ31により、回転フィルタ27及びモータ26は、光路と直交する方向(図1の符号A参照)に移動される。つまり、観察モード切替の指示が行われると、移動用モータ31は、回転フィルタ27等を移動し、光路中に配置されるフィルタを切り替える。   For example, a rack is attached to the motor 26, and the rotary filter 27 and the motor 26 are moved in a direction orthogonal to the optical path (see reference A in FIG. 1) by a moving motor 31 provided with a pinion gear. That is, when the observation mode switching instruction is given, the moving motor 31 moves the rotary filter 27 and the like, and switches the filter arranged in the optical path.

図3(A)に示すようにこの回転フィルタ27には、通常観察のためのRGBフィルタ28が同心円状の内周側に、蛍光観察用フィルタ29が同心円状の外周側に配置されている。そして、通常モード、蛍光モードの切替に応じ、内周側のRGBフィルタ28と外周側の蛍光観察用フィルタ29とが選択される。   As shown in FIG. 3A, in this rotary filter 27, the RGB filter 28 for normal observation is arranged on the concentric inner peripheral side, and the fluorescence observation filter 29 is arranged on the concentric outer peripheral side. Then, according to switching between the normal mode and the fluorescence mode, the inner-side RGB filter 28 and the outer-side fluorescence observation filter 29 are selected.

内周側の通常観察用のRGBフィルタ28は、その透過特性は図3(B)に示すような特性である。つまり、Rフィルタ28aは、600−700nmの赤の波長帯域、Gフィルタ28bは500−600nmの緑の波長帯域、Bフィルタ28cは400−500nmの青の波長帯域をそれぞれ透過するように設定されている。   The RGB filter 28 for normal observation on the inner peripheral side has a transmission characteristic as shown in FIG. That is, the R filter 28a is set to transmit the red wavelength band of 600 to 700 nm, the G filter 28b is set to transmit the green wavelength band of 500 to 600 nm, and the B filter 28c is set to transmit the blue wavelength band of 400 to 500 nm. Yes.

また、外周側に設けた蛍光観察用フィルタ29は、R2、G2、Eフィルタ29a、29b、29cからなり、その透過特性は図3(C)に示すような特性に設定されている。つまり、R2フィルタ29aは、600−660nnnm、G2フィルタ29bは、540−560nm、Eフィルタ29cは、400−470nmの各波長帯を透過するように設定されている。なお、R2フィルタ29aとG2フィルタ29bとの透過特性は、低いレベルに設定されており、これらの狭帯域の照明光のもとで撮像された赤及び緑の色信号(簡単化のため、それぞれR2,G2信号と略記)と蛍光信号とで合成して蛍光観察用に擬似カラー表示できるようにしている。   The fluorescence observation filter 29 provided on the outer peripheral side includes R2, G2, and E filters 29a, 29b, and 29c, and the transmission characteristics thereof are set to the characteristics shown in FIG. That is, the R2 filter 29a is set to transmit 600 to 660 nm, the G2 filter 29b is set to transmit 540 to 560 nm, and the E filter 29c is set to transmit 400 to 470 nm. Note that the transmission characteristics of the R2 filter 29a and the G2 filter 29b are set to low levels, and red and green color signals captured under these narrow-band illumination lights (for simplicity, respectively) R2 and G2 signals are abbreviated) and the fluorescence signal so as to enable pseudo color display for fluorescence observation.

また、図2に示すようにCCD30の前には、励起光をカットする励起光カットフィルタ32が配置されており、この励起光カットフィルタ32は図3(D)に示すような透過特性に設定されている。具体的にはこの励起光カットフィルタ32は、励起光を透過するEフィルタ29cの透過帯域となる400−470nmの波長帯域をカットし、490−700nmの波長帯域の光、つまり、青色帯域の短波長側の一部を除いた可視光を透過する。   As shown in FIG. 2, an excitation light cut filter 32 for cutting the excitation light is disposed in front of the CCD 30, and the excitation light cut filter 32 is set to have transmission characteristics as shown in FIG. Has been. Specifically, the excitation light cut filter 32 cuts the wavelength band of 400 to 470 nm, which is the transmission band of the E filter 29c that transmits the excitation light, and shortens the light of the wavelength band of 490 to 700 nm, that is, the short wavelength of the blue band. Transmits visible light excluding a part on the wavelength side.

ランプ24から出射された光は、回転フィルタ27により、各波長領域に時系列的に分離されて、ライトガイド23の入射端に入射されるようになっている。   The light emitted from the lamp 24 is separated into each wavelength region in time series by the rotary filter 27 and is incident on the incident end of the light guide 23.

この照明光は、ライトガイド23によって先端部16に導かれて先端面の照明窓に取り付けた照明レンズ21を通って被検査部位等の被写体に面順次の照明光が照射される。この場合、通常観察モードでは、R、G、Bの通常観察用の面順次の照明光となる。また、蛍光観察モードでは、R2、G2、Eの面順次の照明光となる。   This illumination light is guided to the distal end portion 16 by the light guide 23 and passes through the illumination lens 21 attached to the illumination window on the distal end surface to irradiate the subject such as the site to be inspected in a surface sequential manner. In this case, in the normal observation mode, R, G, B normal observation surface-sequential illumination light is used. In the fluorescence observation mode, the illumination light is R2, G2, and E in the order of frames.

前記対物光学系22の結像位置に配置されたCCD30には、面順次の照明光によって照明された被写体像が、対物光学系22によってその光電変換面に結像され、このCCD30により電気信号に変換される。このCCD30は、CCDドライバ33によりCCDドライブ信号が印加されることにより、CCD30により光電変換されて蓄積された信号電荷が読み出されて出力される。なお、制御回路40(或いはCPU56)は、CCDドライバ33を制御して、CCD30による電荷蓄積時間を可変制御する電子シャッタの動作をさせることができるようにしている。   An object image illuminated by plane-sequential illumination light is imaged on the photoelectric conversion surface by the objective optical system 22 on the CCD 30 disposed at the imaging position of the objective optical system 22, and is converted into an electrical signal by the CCD 30. Converted. When a CCD drive signal is applied by the CCD driver 33, the CCD 30 reads and outputs the signal charge photoelectrically converted and accumulated by the CCD 30. The control circuit 40 (or the CPU 56) controls the CCD driver 33 so that the electronic shutter can be operated to variably control the charge accumulation time of the CCD 30.

このCCD30から光電変換されて出力される時系列の画像信号(撮像信号)は、映像信号処理ブロック4内に入力され、所定の範囲の電気信号(例えば、0〜1ボルト)に増幅するためのアンプ34に入力される。   A time-series image signal (imaging signal) that is photoelectrically converted and output from the CCD 30 is input into the video signal processing block 4 and is amplified to a predetermined range of an electrical signal (for example, 0 to 1 volt). Input to the amplifier 34.

この場合、時系列の画像信号は、通常観察モードでは、R、G、Bの色信号となり、蛍光観察モードではR2、G2の照明の下で撮像された信号(R2、G2と記す)と、Eの励起光のもとで撮像した蛍光信号となる。   In this case, the time-series image signals are R, G, and B color signals in the normal observation mode, and signals captured under R2 and G2 illumination in the fluorescence observation mode (denoted as R2 and G2), It becomes a fluorescence signal imaged under the excitation light of E.

このアンプ34の出力信号は、A/Dコンバータ35でディジタル信号に変換され、さらにオートゲインコントロール回路(AGC回路と略記)36に入力され、このAGC回路36により適正なレベルになるようにゲインが自動制御される。このAGC回路36を経た信号は、1入力3出力のセレクタ37に入力される。   The output signal of the amplifier 34 is converted into a digital signal by an A / D converter 35 and further input to an auto gain control circuit (abbreviated as AGC circuit) 36, and the gain is adjusted by the AGC circuit 36 so as to obtain an appropriate level. It is automatically controlled. The signal passed through the AGC circuit 36 is input to a 1-input 3-output selector 37.

そして、時系列的に送られてくる撮像信号は、このセレクタ37によって、R,G,Bの各色信号或いはR2、G2、蛍光信号に切り換えられて、ホワイトバランス調整回路38に入力される。このホワイトバランス調整回路38は、基準となる白の被写体を撮像した場合、R,G,Bの各色信号のレベルが等しくなるように各色信号に対するゲインが調整、つまりホワイトバランス調整される。このホワイトバランス調整回路38の出力信号は、メモリ部39に入力される。   The imaging signals sent in time series are switched to R, G, B color signals or R2, G2, and fluorescence signals by the selector 37 and input to the white balance adjustment circuit 38. The white balance adjustment circuit 38 adjusts the gain for each color signal, that is, adjusts the white balance so that the levels of the R, G, and B color signals are equal when a white subject as a reference is imaged. The output signal of the white balance adjustment circuit 38 is input to the memory unit 39.

そして、R,G,Bの各色信号等の時系例に入力される信号は、メモリ部39を構成するR,G,B用メモリ39r,39g,39bに格納されるようになっている。   Signals input to time-series examples such as R, G, and B color signals are stored in R, G, and B memories 39r, 39g, and 39b constituting the memory unit 39.

つまり、通常観察のモードでは、R,G,Bの各色信号は、メモリ部39を構成するR,G,B用メモリ39r,39g,39bにそれぞれ格納される。また、蛍光観察モードの場合には、R2、G2、蛍光信号がR,G,B用メモリ39r,39g,39bにそれぞれ格納される。   That is, in the normal observation mode, the R, G, and B color signals are stored in the R, G, and B memories 39r, 39g, and 39b constituting the memory unit 39, respectively. In the fluorescence observation mode, R2, G2, and fluorescence signals are stored in the R, G, and B memories 39r, 39g, and 39b, respectively.

なお、A/Dコンバータ35によるA/D変換、セレクタ37の切り換え、ホワイトバランス調整の際の制御およびメモリ部39のR,G,B用メモリ39r,39g,39bへの色信号の記憶(書き込み)及び読み出しは、制御回路40により制御される。   A / D conversion by the A / D converter 35, switching of the selector 37, control at the time of white balance adjustment, and storage (writing) of color signals to the R, G, B memories 39r, 39g, 39b of the memory unit 39 ) And reading are controlled by the control circuit 40.

また、制御回路40は、同期信号発生回路(図2ではSSGと略記)41に基準信号を送り、同期信号発生回路41は、その基準信号に同期した同期信号を発生する。   The control circuit 40 sends a reference signal to a synchronization signal generation circuit (abbreviated as SSG in FIG. 2) 41, and the synchronization signal generation circuit 41 generates a synchronization signal synchronized with the reference signal.

なお、R、G、B用メモリ39r,39g,39bに書き込みを禁止する状態にすることにより、静止画を表示する状態にすることができる(後述の同時化回路53での内部のメモリでも可能となる)。   It should be noted that a still image can be displayed by prohibiting writing to the R, G, B memories 39r, 39g, and 39b (also possible with an internal memory in the synchronization circuit 53 described later). Becomes).

また、上記A/Dコンバータ35の出力信号は、測光を行う測光回路42に入力され、測光された信号は制御回路40に入力される。そして、制御回路40は、測光された信号を積分した平均値を(適切な明るさの場合の)基準の値と比較することにより、その差を小さくするように調光信号として絞りモータ25aを駆動し、この絞りモータ25aで駆動される絞り25における(照明光路上の)開口量を可変して適切な照明光量に調整する。   The output signal of the A / D converter 35 is input to a photometric circuit 42 that performs photometry, and the photometric signal is input to the control circuit 40. Then, the control circuit 40 compares the average value obtained by integrating the photometric signal with a reference value (in the case of appropriate brightness), and controls the aperture motor 25a as a dimming signal so as to reduce the difference. The aperture amount (on the illumination optical path) of the diaphragm 25 driven by the diaphragm motor 25a is varied and adjusted to an appropriate illumination light amount.

なお、絞りモータ25aには、絞り25の(開口量に対応する)絞り位置を検出する位置検出手段としての図示しないロータリエンコーダ等が取り付けてあり、このロータリエンコーダの検出信号は、制御回路40に入力される。この検出信号により、制御回路40は、絞り25の位置を検出できる。また、この制御回路40は、CPU56と双方向に信号を送る信号線で接続されており、CPU56も、絞り25の位置を確認することができるようになっている。   The diaphragm motor 25a is provided with a rotary encoder (not shown) as position detecting means for detecting the diaphragm position (corresponding to the opening amount) of the diaphragm 25, and the detection signal of this rotary encoder is sent to the control circuit 40. Entered. Based on this detection signal, the control circuit 40 can detect the position of the diaphragm 25. The control circuit 40 is connected to the CPU 56 through a signal line that sends signals in both directions, and the CPU 56 can also check the position of the diaphragm 25.

上記通常観察モードの場合には、R、G、B用メモリ39r,39g,39bから読み出されたR,G,B信号は、画像処理ブロック5を構成する血液情報量となる色素量としてのヘモグロビン量に相関する値(以下、IHbと略記)の算出等の処理を行うIHb処理ブロック44に入力される。   In the case of the normal observation mode, the R, G, B signals read from the R, G, B memories 39r, 39g, 39b are used as the amount of dye serving as the amount of blood information constituting the image processing block 5. The value is input to an IHb processing block 44 that performs processing such as calculation of a value correlated with the amount of hemoglobin (hereinafter abbreviated as IHb).

本実施例では、このIHb処理ブロック44は、設定された関心領域内で、各画素でのIHbの量(値)の算出及びその平均値算出や各画素でのIHbの値を元に擬似カラー画像として表示する擬似画像生成処理を行うIHb処理回路部45と、設定された関心領域に対して画像処理に適しない無効領域を検出する無効領域検出部46とを備えた構成となっている。   In the present embodiment, this IHb processing block 44 calculates pseudo color based on the calculation of the amount (value) of IHb at each pixel and the average value thereof and the value of IHb at each pixel within the set region of interest. The configuration includes an IHb processing circuit unit 45 that performs a pseudo image generation process to be displayed as an image, and an invalid region detection unit 46 that detects an invalid region that is not suitable for image processing for the set region of interest.

また、本実施例では、IHbの擬似カラー画像をフリーズ画像で表示する場合、色ズレの少ない状態で表示できるように色ズレ検出を行う色ズレ検出回路47も備えている。 上記IHb処理ブロック44から出力される面順次の信号は、γ補正回路50でγ補正され、さらに後段画像処理回路51において、構造強調が行われる。その後、文字重畳回路52において、患者データや算出されたIHbの平均値が重畳された後、同時化回路53において、面順次信号から同時化された信号に変換される。   In addition, in this embodiment, when an IHb pseudo color image is displayed as a freeze image, a color misregistration detection circuit 47 that performs color misregistration detection is also provided so that it can be displayed with little color misregistration. The frame sequential signal output from the IHb processing block 44 is subjected to γ correction by the γ correction circuit 50 and further subjected to structure enhancement in the subsequent image processing circuit 51. After that, the patient superimposing circuit 52 superimposes the patient data and the calculated average value of IHb, and then the synchronizing circuit 53 converts the frame sequential signal into a synchronized signal.

同時化回路53は、内部に3つのフレームメモリを有し、面順次の信号データを一時3つのフレームメモリに順次書き込み、同時に読み出すことにより、同時化されたRGB信号等の同時化された信号を出力する。   The synchronization circuit 53 has three frame memories inside, and sequentially writes frame-sequential signal data to the temporary three frame memories, and simultaneously reads out the synchronized signals such as synchronized RGB signals. Output.

同時化された信号は、D/A変換部54の3つのD/Aコンバータにそれぞれ入力され、アナログのRGB信号等に変換された後、モニタ7、モニタ画像撮影装置8A及び画像ファイリング装置8Bに入力される。なお、同時化回路53内部のフレームメモリの書き込み及び読み出しやD/A変換部54のD/A変換は、制御回路40により制御される。 また、CPU56は、γ補正回路50、後段画像処理回路51、文字重畳回路52の動作を制御する。   The synchronized signals are respectively input to the three D / A converters of the D / A converter 54, converted into analog RGB signals, etc., and then sent to the monitor 7, the monitor image photographing device 8A, and the image filing device 8B. Entered. Note that writing and reading of the frame memory in the synchronization circuit 53 and D / A conversion of the D / A conversion unit 54 are controlled by the control circuit 40. The CPU 56 controls the operations of the γ correction circuit 50, the subsequent image processing circuit 51, and the character superimposing circuit 52.

なお、モニタ画像撮影装置8Aは、モニタ7と同様に画像等を表示する図示しないモニタとそのモニタに表示される画像等を写真撮影で画像記録を行う写真撮影装置(具体的にはカメラ)とから構成される。   The monitor image photographing device 8A is a monitor (not shown) that displays an image or the like as with the monitor 7, and a photograph photographing device (specifically a camera) that records an image or the like displayed on the monitor by photographing. Consists of

そして、ユーザは、通常の可視光で照明及び撮像した通常画像(原画像ともいう)をモニタ7に表示させたり、ビデオプロセッサ6のフロントパネル55に設けたスイッチやキーボード9の指示操作を行うことにより、IHb画像の表示の指示等を行うと、その指示信号はCPU56に入力され、CPU56は、指示信号に対応してIHb処理ブロック44等の制御を行う。   Then, the user causes the monitor 7 to display a normal image (also referred to as an original image) that is illuminated and picked up with normal visible light, or performs an instruction operation on the switch or the keyboard 9 provided on the front panel 55 of the video processor 6. Thus, when an instruction to display an IHb image is issued, the instruction signal is input to the CPU 56, and the CPU 56 controls the IHb processing block 44 and the like in response to the instruction signal.

なお、蛍光観察モードに設定された場合には、R,G,B用メモリ39r,39g,39bから読み出されたR2、G2、蛍光信号は、画像合成回路65,面順次回路66等を経て後段側の処理回路に送られ、例えばR2,G2による赤及び緑の色信号と、青色の色信号に着色された蛍光信号とで擬似カラー表示される。   When the fluorescence observation mode is set, the R2, G2, and fluorescence signals read from the R, G, and B memories 39r, 39g, and 39b pass through the image synthesis circuit 65, the frame sequential circuit 66, and the like. For example, pseudo color display is performed by using red and green color signals by R2 and G2 and fluorescent signals colored by blue color signals.

また、本実施例では、内視鏡固有の識別情報(図2において符号43で示す)が異なる電子内視鏡2が装着された場合でも、これら異なる種別の電子内視鏡2に対して的確な信号処理を行えるようになっている。   Further, in the present embodiment, even when the electronic endoscope 2 having different identification information (denoted by reference numeral 43 in FIG. 2) that is unique to the endoscope is mounted, the electronic endoscope 2 is accurately identified for these different types. Signal processing can be performed.

ここで内視鏡固有の情報とは、例えば、画角及び光学ズーム等の光学的種別情報、用途情報(上部消化管用あるいは下部消化管用等の用途情報)の他、内設されるCCD30の画素数等の情報である。   Here, the information unique to the endoscope includes, for example, optical type information such as angle of view and optical zoom, application information (use information for the upper digestive tract or the lower digestive tract, etc.), and the pixels of the CCD 30 installed therein. Information such as numbers.

そして本実施例においては、識別情報43を、コネクタ14、コネクタ受け部15及び検出回路57等により検出するようになっている。   In this embodiment, the identification information 43 is detected by the connector 14, the connector receiving portion 15, the detection circuit 57, and the like.

なお、内視鏡固有識別情報43の格納手段としての最適な例としては、RAM、ROM等の記憶手段を用いた例、あるいは抵抗素子等の抵抗値の違い等に拠り固有情報を区別する例等が考えられる。   Note that, as an optimal example of the storage means for the endoscope unique identification information 43, examples using storage means such as RAM and ROM, or examples of distinguishing unique information based on differences in resistance values of resistance elements and the like. Etc. are considered.

また、本実施例では、識別情報のうち電子内視鏡2に設けられた撮像素子(CCD30)の画素数等の種別情報を、CCD30に係る信号経路から直接検出する機能も有する。 例えば、検出回路57は、CCD30からの信号をその後の増幅部へと導く信号経路上において、例えばコネクタ14のピン数等の違いをコネクタ受け部15を介して検出することで、ビデオプロセッサ6に実際に接続された電子内視鏡2に内蔵されている当該CCD30の画素数等の種別タイプを検出することを可能としている。すなわち、検出回路57は、コネクタ14のピン数等の違いによりCCD30の画素数等の種別を判定するようになっている。   In addition, the present embodiment also has a function of directly detecting type information such as the number of pixels of the image sensor (CCD 30) provided in the electronic endoscope 2 from the signal path related to the CCD 30 among the identification information. For example, the detection circuit 57 detects, for example, a difference in the number of pins of the connector 14 through the connector receiving unit 15 on the signal path that guides the signal from the CCD 30 to the subsequent amplification unit, thereby allowing the video processor 6 to The type type such as the number of pixels of the CCD 30 incorporated in the actually connected electronic endoscope 2 can be detected. That is, the detection circuit 57 determines the type such as the number of pixels of the CCD 30 based on the difference in the number of pins of the connector 14.

なお、CCD30の画素数等の種別を検出する手段は、CCD30の画素数等の種別に対応するコネクタ14のピン数等により検出するものに限定されるものでなく、CCD駆動信号を印加して、その出力信号の波形数から画素数(水平画像数、垂直画像数)を検出するものでも良い。   The means for detecting the type such as the number of pixels of the CCD 30 is not limited to that detected by the number of pins of the connector 14 corresponding to the type of the number of pixels of the CCD 30 and the like. The number of pixels (the number of horizontal images and the number of vertical images) may be detected from the number of waveforms of the output signals.

次にIHb処理ブロック44の構成を説明する。図2に示すようにR用メモリ39rからのR信号とG用メモリ39gからのG信号とは、IHb処理ブロック44内のIHb算出回路61に入力され、IHbの値の算出が行われる。そして、IHb算出回路61の出力信号は、IHb平均値を算出するIHb平均値算出回路62に入力される。   Next, the configuration of the IHb processing block 44 will be described. As shown in FIG. 2, the R signal from the R memory 39r and the G signal from the G memory 39g are input to the IHb calculation circuit 61 in the IHb processing block 44, and the value of IHb is calculated. The output signal of the IHb calculation circuit 61 is input to the IHb average value calculation circuit 62 that calculates the IHb average value.

また、検出回路57により検出されたCCDタイプの情報は、関心領域を設定する関心領域設定回路63に入力され、この関心領域設定回路63は、CCDタイプの情報に応じて、擬似画像を表示する場合、適切なサイズで表示するように擬似画像の表示領域を設定する。   The CCD type information detected by the detection circuit 57 is input to a region of interest setting circuit 63 for setting a region of interest, and the region of interest setting circuit 63 displays a pseudo image according to the information of the CCD type. In this case, the display area of the pseudo image is set so as to display with an appropriate size.

また、関心領域設定回路63により設定された関心領域の情報は、IHb算出回路61とIHb平均値算出回路62に送られ、その関心領域において無効領域を除く領域における画素でIHbを算出する。   Also, the information on the region of interest set by the region of interest setting circuit 63 is sent to the IHb calculation circuit 61 and the IHb average value calculation circuit 62, and IHb is calculated from pixels in the region of interest other than the invalid region.

IHb算出回路61は、具体的には以下の(1)式の演算を行って、各画素におけるIHbの値を算出する。   Specifically, the IHb calculation circuit 61 calculates the value of IHb in each pixel by performing the calculation of the following equation (1).

IHb=32×log(R/G)・・・(1)
R:関心領域内における無効領域を除くR画像のデータ
G:関心領域内における無効領域を除くG画像のデータ
この式(1)を回路によって実現することは容易であり、例えば、入力されるR画像のデータとG画像のデータを図示しない除算器を用いて演算し、その出力結果をROMなどで構成した図示しないLog変換テーブルで変換することで実現できる。また、CPUなどを用いて上記(1)式の演算を行っても良い。
IHb = 32 × log 2 (R / G) (1)
R: R image data excluding the invalid region in the region of interest G: G image data excluding the invalid region in the region of interest This expression (1) can be easily realized by a circuit, for example, input R This can be realized by calculating image data and G image data using a divider (not shown) and converting the output result using a log conversion table (not shown) configured by a ROM or the like. Further, the above equation (1) may be calculated using a CPU or the like.

IHb算出回路61により算出されたIHbは、IHb平均値算出回路62に出力され、IHb平均値算出回路62は、入力されるIHbに対して、関心領域設定回路63で設定された関心領域における無効領域を除いた領域で平均化してIHb平均値を算出する。なお、後段画像処理回路51は、色調調整や色彩強調であってもよい。   The IHb calculated by the IHb calculation circuit 61 is output to the IHb average value calculation circuit 62, and the IHb average value calculation circuit 62 is invalid in the region of interest set by the region of interest setting circuit 63 with respect to the input IHb. The IHb average value is calculated by averaging in the area excluding the area. Note that the post-stage image processing circuit 51 may be color tone adjustment or color enhancement.

また、このIHb算出回路61により算出されたIHbは、擬似画像生成回路64に入力される。擬似画像生成回路64は、IHbの値から擬似カラーで表示する擬似画像を生成し、画像合成を行う画像合成回路65に出力する。また、この擬似画像生成回路64には、無効領域表示回路69からの無効領域に対応する信号も入力される。   The IHb calculated by the IHb calculation circuit 61 is input to the pseudo image generation circuit 64. The pseudo image generation circuit 64 generates a pseudo image to be displayed in pseudo color from the value of IHb, and outputs the pseudo image to the image synthesis circuit 65 that performs image synthesis. The pseudo image generation circuit 64 also receives a signal corresponding to the invalid area from the invalid area display circuit 69.

画像合成回路65には、擬似画像生成回路64で生成された擬似画像データと、R,G,B用メモリ39r,39g,39bからのR,G,B画像データとが入力され、画像合成回路65は関心領域設定回路63からのマスク信号に基づいて両画像データを合成する処理を行い、合成した画像データを面順次の信号に変換する面順次回路66に出力する。 具体的には画像合成回路65は、マスク信号が“0”の期間では、原画像に相当するR,G,B画像データを出力し、マスク信号が“1”の期間では、擬似画像データと無効領域を示す画像データを出力するようにして合成した画像データを後段の面順次回路66に出力する。この場合の無効領域を示す画像データは、無彩色で表示されるものとなる。 面順次回路66は、合成された画像データのR、G、B成分をそれぞれ面順次で出力する処理を行う。つまり、γ補正回路50側には、R,G,B成分の画像データが面順次で出力される。   The image composition circuit 65 receives the pseudo image data generated by the pseudo image generation circuit 64 and the R, G, B image data from the R, G, B memories 39r, 39g, 39b. 65 performs a process of combining both image data based on the mask signal from the region-of-interest setting circuit 63, and outputs the combined image data to the frame sequential circuit 66 that converts the combined image data into a frame sequential signal. Specifically, the image composition circuit 65 outputs R, G, B image data corresponding to the original image when the mask signal is “0”, and outputs pseudo image data when the mask signal is “1”. The image data synthesized so as to output the image data indicating the invalid area is output to the subsequent frame sequential circuit 66. In this case, the image data indicating the invalid area is displayed in an achromatic color. The frame sequential circuit 66 performs a process of outputting the R, G, and B components of the combined image data in a frame sequential manner. That is, image data of R, G, and B components is output in frame sequential order to the γ correction circuit 50 side.

なお、本実施例では、関心領域設定回路63による関心領域の情報(具体的にはマスク信号)はγ補正回路50と後段画像処理回路51に送られ、ユーザの選択により、関心領域の周囲の原画像部分に対してはγ補正や構造強調を行うこともできるようにしている。 また、IHb平均値算出回路62で算出されたIHb平均値は、文字重畳回路52に送られ、モニタ画面上に算出されたIHb平均値を表示することができるようにしている。この場合にも、ユーザの選択により、CPU56を介して表示/非表示を選択できるようにしている。   In the present embodiment, the region-of-interest information (specifically, mask signal) by the region-of-interest setting circuit 63 is sent to the γ correction circuit 50 and the subsequent image processing circuit 51, and the region around the region of interest is selected by the user. Γ correction and structure enhancement can also be performed on the original image portion. In addition, the IHb average value calculated by the IHb average value calculation circuit 62 is sent to the character superimposing circuit 52 so that the calculated IHb average value can be displayed on the monitor screen. Also in this case, display / non-display can be selected via the CPU 56 by the user's selection.

また、上記R,G,B用メモリ39r,39g,39bからのR,G,Bの画像データは、無効領域検出部46を構成する輝度検出回路67に入力される。この輝度検出回路67は、関心領域内のR,G,Bの画像データに対して、その輝度レベルを検出し、その検出結果を無効領域検出回路68に出力する。   The R, G, B image data from the R, G, B memories 39r, 39g, 39b is input to the luminance detection circuit 67 that constitutes the invalid area detector 46. The luminance detection circuit 67 detects the luminance level of the R, G, and B image data in the region of interest and outputs the detection result to the invalid region detection circuit 68.

この無効領域検出回路68は、予め設定された閾値と比較することにより、無効領域か否かを検出(判断)する。   The invalid area detection circuit 68 detects (determines) whether or not it is an invalid area by comparing with a preset threshold value.

この無効領域検出回路68は、輝度検出回路67により検出された輝度レベルを2つの閾値と比較する。この2つの閾値は、ハレーション検出用の閾値と、暗部検出用の閾値とであり、ハレーション検出用の閾値は、200/255に設定されており、暗部検出用の閾値は、20/255に設定されている。ここで、255は8ビットで量子化した場合の飽和レベルを示す。   The invalid area detection circuit 68 compares the luminance level detected by the luminance detection circuit 67 with two threshold values. The two threshold values are a halation detection threshold value and a dark portion detection threshold value. The halation detection threshold value is set to 200/255, and the dark portion detection threshold value is set to 20/255. Has been. Here, 255 indicates a saturation level when quantized with 8 bits.

そして、輝度レベルが、暗部検出用の閾値以下である場合と、ハレーション検出用の閾値以上である場合には、無効領域と判断される。   When the luminance level is equal to or lower than the dark portion detection threshold and when the luminance level is equal to or higher than the halation detection threshold, it is determined as an invalid area.

この無効領域検出回路68は、無効領域の検出結果を無効領域表示回路69に出力すると共に、IHb算出回路61、IHb平均値算出回路62及びCPU56に出力する。そして無効領域表示回路69は、無効領域部分であることを示す0あるいは1の信号を擬似画像生成回路64に出力し、擬似画像生成回路64は、無効領域では例えば無彩色(グレイ)等で表示されるようにする。   The invalid area detection circuit 68 outputs the invalid area detection result to the invalid area display circuit 69 and also outputs it to the IHb calculation circuit 61, the IHb average value calculation circuit 62, and the CPU 56. Then, the invalid area display circuit 69 outputs a 0 or 1 signal indicating the invalid area portion to the pseudo image generation circuit 64, and the pseudo image generation circuit 64 displays, for example, an achromatic color (gray) in the invalid area. To be.

また、IHb算出回路61は、無効領域検出回路68から無効領域の検出情報が入力されることにより、関心領域におけるIHbの算出を行わないようにし、IHb平均値算出回路62は、関心領域における無効領域を除いた領域でIHb平均値を算出する。   Also, the IHb calculation circuit 61 does not calculate IHb in the region of interest when the invalid region detection information is input from the invalid region detection circuit 68, and the IHb average value calculation circuit 62 is invalid in the region of interest. The IHb average value is calculated in the area excluding the area.

また、CPU56は、無効領域の検出情報により、このCPU56は無効領域の大きさ(サイズ)を計数(カウント)し、画像処理を行うか否かを(閾値と比較して)判断すると共に、このCPU56に接続されたスピーカ70による音声やモニタ7での表示などで、ユーザに報知を行うことができるようにしている。   Further, the CPU 56 counts (counts) the size (size) of the invalid area based on the invalid area detection information, and determines whether or not to perform image processing (compared to a threshold value). The user can be notified by voice from the speaker 70 connected to the CPU 56 or display on the monitor 7.

本実施例では、CPU56は、画像処理が実行されているか否かにより、画像処理が実行されている状態では、絞り25による照明光量を画像処理に適した状態に制御する照明光量制御機能56aを備えていることが特徴となっている。   In this embodiment, the CPU 56 has an illumination light quantity control function 56a for controlling the illumination light quantity by the diaphragm 25 to a state suitable for image processing in a state where the image process is being executed depending on whether or not the image process is being executed. It is characterized by having.

この場合、CPU56は必要に応じて、制御回路40を介してCCDドライバ33を制御し、CCD30による電子シャッタの動作を制御する電子シャッタ制御機能56bも備えている。   In this case, the CPU 56 also includes an electronic shutter control function 56b for controlling the CCD driver 33 via the control circuit 40 and controlling the operation of the electronic shutter by the CCD 30 as necessary.

また、CPU56は、例えばその内部にこのような画像処理方法を行う制御プログラムが書き込まれた記録手段として、例えばROM56cを内蔵しており、CPU56は、起動時にこのROM56cの制御プログラムを読み込んで上記のような画像処理を行う。具体的には、図9から図14に示すフローチャートの画像処理の動作を行うように制御する。   The CPU 56 includes, for example, a ROM 56c as a recording means in which a control program for performing such an image processing method is written, for example, and the CPU 56 reads the control program in the ROM 56c at the time of start-up and reads the above-described control program. Such image processing is performed. Specifically, control is performed so as to perform the image processing operations of the flowcharts shown in FIGS.

ユーザは、ビデオプロセッサ6のフロントパネル55に設けた指示スイッチやキーボード9からの指示操作により、通常の可視光で照明及び撮像した通常画像(原画像ともいう)をモニタ7に表示させる指示や、IHb画像の表示の指示等を行うと、その指示信号はCPU56に入力され、CPU56は指示信号に対応してIHb処理ブロック44での画像処理のON/OFF等の制御を行う。   The user can instruct the monitor 7 to display a normal image (also referred to as an original image) illuminated and imaged with normal visible light by an instruction switch provided on the front panel 55 of the video processor 6 or an instruction operation from the keyboard 9. When an instruction to display an IHb image is given, the instruction signal is input to the CPU 56, and the CPU 56 performs control such as ON / OFF of image processing in the IHb processing block 44 in response to the instruction signal.

この場合、ユーザは、フロントパネル55に設けたスイッチやキーボード9からIHb画像(擬似画像)の表示のON/OFFや色彩強調のON/OFFの指示を行うと、CPU56は、その指示に対応してON/OFFの制御を行う。   In this case, when the user gives an instruction to turn on / off the display of the IHb image (pseudo image) or ON / OFF of the color enhancement from the switch or keyboard 9 provided on the front panel 55, the CPU 56 responds to the instruction. ON / OFF control.

また、R,G,B用メモリ39r,39g,39bからのR,G,Bの画像データは、色ズレ検出回路47に入力され、R,G,Bの画像データの相関量等の検出により色ズレ量を検出する。   The R, G, B image data from the R, G, B memories 39r, 39g, 39b is input to the color misregistration detection circuit 47, and the correlation amount of the R, G, B image data is detected. Detects the amount of color misregistration.

そして、画像のフリーズ指示がされた場合、設定された時間内等で色ズレ最小の画像を検出してその色ズレ最小の画像を検出したフィールドの画像を表示するように制御回路40に信号を送り、制御回路40は、メモリ部39のR,G,B用メモリ39r,39g,39bへの書き込みを禁止状態にして表示手段としてのモニタ7に表示される画像及びモニタ画像撮影装置8Aのモニタに表示される画像を静止画状態にする。   When an image freeze instruction is given, a signal is sent to the control circuit 40 so that an image with the smallest color misregistration is detected within a set time or the like, and an image of the field in which the image with the smallest color misregistration is detected is displayed. The sending and control circuit 40 prohibits writing to the R, G, B memories 39r, 39g, and 39b of the memory unit 39 and displays the image displayed on the monitor 7 as the display means and the monitor of the monitor image photographing device 8A. Set the image displayed in to a still image state.

図4はフロントパネル55やキーボード9から各種の設定を行うメニュー画面を示す。メニュー画面を表示させることにより、図4(A)に示すように内視鏡画像の表示サイズ、関心領域の表示サイズ、処理画像としてのIHbレンジにおけるNormal/Wideの選択、IHb平均値の表示のON/OFFや、図4(B)に示すように例えば1〜7から選択するフリーズレベル、プリフリーズ/色ズレ防止フリーズによる色ズレ検出、フル/ライトの文字表示、平均/オート/ピークによる測光方式等を選択設定できるようにしている。   FIG. 4 shows a menu screen for performing various settings from the front panel 55 and the keyboard 9. By displaying the menu screen, as shown in FIG. 4A, the display size of the endoscopic image, the display size of the region of interest, the selection of Normal / Wide in the IHb range as the processed image, and the display of the average value of IHb ON / OFF, freeze level selected from 1 to 7 as shown in FIG. 4B, color shift detection by pre-freeze / color shift prevention freeze, full / light character display, average / auto / peak photometry The system can be selected and set.

ここで、内視鏡画像の表示サイズは、例えば大、中、小から選択でき、また関心領域の表示サイズも、大、中、小から選択設定できる。また、IHbレンジがNormalの場合には、IHbの値が30から70までのものを16段階の擬似カラーで表示し、Wideの場合には、IHbの値が10から90までのものを16段階の擬似カラーで表示する。   Here, the display size of the endoscopic image can be selected from, for example, large, medium, and small, and the display size of the region of interest can be selected and set from large, medium, and small. Also, when the IHb range is Normal, those with IHb values from 30 to 70 are displayed in 16 levels of pseudo-color, and when Wide, those with IHb values from 10 to 90 are displayed in 16 levels. Display in pseudo color.

また、フリーズレベルは、色ズレ検出の検出対象の画像枚数を可変する。その枚数は、フリーズスイッチが押される前か、後のいずれかであり、所定の時間分、メモリに取り込まれる画像によって決まる。そのレベルの値は、例えば1〜7から設定でき、レベル1では、約50msec、レベル7では、約1secになる。   The freeze level varies the number of images to be detected for color misregistration detection. The number of images is either before or after the freeze switch is pressed, and is determined by the image captured in the memory for a predetermined time. The value of the level can be set from 1 to 7, for example, about 50 msec at level 1 and about 1 sec at level 7.

また、色ズレ検出は、色ズレ検出の対象画像について、フリーズスイッチが押される前とするのがプリフリーズで、後とするのが色ズレ防止フリーズである。また、文字表示におけるフルは、必要な項目を全て表示し、ライトは、一部の情報に限定して表示する。さらに測光は、内視鏡画像の明るさを好みの状態になるように光源の光量を調整するもので、測光における平均は、画像全体が明るくなるように調整し、測光におけるオートは、処置具等が画像に現れても、それによるハレーションを無視して暗くならないように調整し、測光におけるピークは、ハレーションが起こらないように調整する。   In the color misregistration detection, pre-freezing is performed before the freeze switch is pressed and a color misregistration prevention freeze is performed after the freeze switch is pressed. In addition, the full character display displays all necessary items, and the light is displayed limited to some information. Furthermore, photometry is to adjust the light quantity of the light source so that the brightness of the endoscopic image is in a desired state. The average in photometry is adjusted so that the entire image becomes bright. Even if the image appears in the image, it is adjusted so that the resulting halation does not darken and the peak in photometry is adjusted so that halation does not occur.

図5は、内視鏡画像表示領域7aのみ(図5(A))の場合から関心領域7cを例えば5つの異なる位置に設定した様子(図5(B)の中央位置から図5(F)の右側の位置まで)と、例えば図5(E)に示す関心領域7cを大の状態から中の状態(図5(G))及び小(図5(H))に設定した様子を示す。   FIG. 5 shows a state in which the region of interest 7c is set at, for example, five different positions from the case of only the endoscope image display region 7a (FIG. 5A) (from the center position in FIG. 5B to FIG. 5F). And the region of interest 7c shown in FIG. 5E, for example, is set from a large state to a middle state (FIG. 5G) and small (FIG. 5H).

本実施例では、内視鏡画像に対してIHb処理等の画像処理を行う関心領域7cを設定できるようにすると共に、その関心領域7c内での画像処理を行う場合に輝度レベルにより輝度が画像処理に不適切な無効領域か否かの無効領域の検出(判定)を行うようにしている。また、無効領域を表示すると共に、前記無効領域の大きさに応じて画像処理を禁止したり、報知する等して画像処理の適正化を行う。   In this embodiment, it is possible to set the region of interest 7c for performing image processing such as IHb processing on the endoscopic image, and when the image processing in the region of interest 7c is performed, the luminance is determined by the luminance level. An invalid area is detected (determined) as to whether or not the invalid area is inappropriate for processing. In addition, an invalid area is displayed and image processing is optimized by prohibiting or notifying image processing according to the size of the invalid area.

図5により、関心領域7cの位置やサイズを選択設定できることを説明したが、図6は、内視鏡画像表示領域7aに内視鏡画像を表示した状態から関心領域7cに画像処理した処理画像としてのIHbの値に応じて擬似カラー化して表示する擬似カラー画像を表示する場合の説明図を示す。   Although it has been described with reference to FIG. 5 that the position and size of the region of interest 7c can be selected and set, FIG. 6 illustrates a processed image obtained by performing image processing on the region of interest 7c from a state in which the endoscope image is displayed in the endoscope image display region 7a. FIG. 6 is an explanatory diagram in the case of displaying a pseudo color image to be displayed in a pseudo color according to the value of IHb.

例えば通常の動作状態では、モニタ7の表示面には図6(A)に示すように八角形の内視鏡画像表示領域7aに、内視鏡画像が動画で表示される。また、この内視鏡画像表示領域7aの左側には、患者データ等の他に、IHb平均値表示準備の表示がされる。   For example, in a normal operation state, the endoscope image is displayed as a moving image in the octagonal endoscope image display area 7a on the display surface of the monitor 7 as shown in FIG. In addition to patient data and the like, an IHb average value display preparation display is displayed on the left side of the endoscope image display area 7a.

具体的にはIHb=−−−(7bで示す)と表示され、IHb平均値を表示する準備がされている。なお、このIHb平均値表示準備の表示は、選択により非表示にすることもできる。なお、IHb平均値の値により、病変部分か健常部分(正常部分)かを診断する目安となる情報を得ることができる。   Specifically, IHb = --- (indicated by 7b) is displayed, and preparations for displaying the IHb average value are made. The display of the IHb average value display preparation can be hidden by selection. It should be noted that information serving as a standard for diagnosing whether a lesion part or a healthy part (normal part) can be obtained based on the average value of IHb.

そして、ユーザは、擬似カラー画像の表示をONする指示操作を行うと、例えば図6(B)に示すように内視鏡画像表示領域7aにおける設定された関心領域7cに画像処理画像としての擬似カラー画像を表示する。この場合、関心領域7cに画像処理画像を表示する場合、その輝度レベルが検出されて、無効領域検出回路68により無効領域か否かの判定が行われる。   When the user performs an instruction operation to turn on the display of the pseudo color image, for example, as shown in FIG. 6B, a pseudo image as an image processing image is displayed in the set region of interest 7c in the endoscope image display region 7a. Display a color image. In this case, when an image processed image is displayed in the region of interest 7c, the luminance level is detected, and the invalid region detection circuit 68 determines whether or not the region is an invalid region.

そして、無効領域7dの大きさが画像処理を行うのに適する大きさの場合には、モニタ7は、無効領域7dを除く部分で擬似カラー画像7eを表示する状態になると共に、無効領域7dを無彩色で表示する。また、図6(A)におけるIHb平均値表示準備の表示からIHb平均値の表示(7fで示す)も行えるようにしている。なお、図6(B)及び図6(C)は、関心領域7cを大のサイズに設定した状態で示している。なお、図10を参照して後述するように関心領域7cを大のサイズに設定した場合には、無効領域7dが関心領域7cの40%以下であるかにより画像処理を実行するか否かを判断する。   If the size of the invalid area 7d is a size suitable for image processing, the monitor 7 enters a state in which the pseudo color image 7e is displayed in a portion excluding the invalid area 7d, and the invalid area 7d is displayed. Display in achromatic color. Also, the display of the IHb average value (indicated by 7f) can be performed from the display of the IHb average value display preparation in FIG. FIGS. 6B and 6C show a state in which the region of interest 7c is set to a large size. Note that, when the region of interest 7c is set to a large size as will be described later with reference to FIG. 10, it is determined whether or not to execute image processing depending on whether the invalid region 7d is 40% or less of the region of interest 7c. to decide.

図6(B)の場合には無効領域7dが関心領域7cの40%以下であるので、画像処理が実行され、画像処理結果として、関心領域7cには擬似カラー画像7eの表示が行われると共に、IHbの平均値の表示7fが行われる。   In the case of FIG. 6B, since the invalid area 7d is 40% or less of the region of interest 7c, image processing is executed, and as a result of the image processing, a pseudo color image 7e is displayed in the region of interest 7c. The display 7f of the average value of IHb is performed.

一方、無効領域7dの大きさが画像処理を行うのに適さない大きさ以上の場合、具体的に図6(C)に示す場合には、無効領域7dが関心領域7cの40%を越える場合には、画像処理は実行されないことになり、擬似カラー画像7eは表示されないし、IHbの平均値の表示7fも行われない。図6(C)の場合には、無効領域7dが暗部の場合であり、この場合には、(無効領域7dは、主に)暗部です。光量を上げて下さいの報知をして、ユーザは、この報知に従った操作を行うことにより、無効領域7dを減らして画像処理を行えるようにする画像処理の適正化をすることができるようにする。この場合、内視鏡画像表示領域7aと関心領域7cと無効領域7dが表示されなくても良い。   On the other hand, in the case where the size of the invalid area 7d is greater than or equal to the size unsuitable for image processing, specifically in the case shown in FIG. 6C, the invalid area 7d exceeds 40% of the region of interest 7c. In this case, the image processing is not executed, the pseudo color image 7e is not displayed, and the display 7f of the average value of IHb is not performed. In the case of FIG. 6C, the invalid area 7d is a dark part. In this case, the invalid area 7d is mainly a dark part. The user is informed that the amount of light should be increased, and the user can optimize the image processing so that the invalid area 7d can be reduced and image processing can be performed by performing an operation in accordance with this notification. To do. In this case, the endoscope image display region 7a, the region of interest 7c, and the invalid region 7d may not be displayed.

また、内視鏡画像表示領域7aの右側には擬似カラー画像で表示した場合のレンジを示すカラーバー7gが表示される。この場合には、標準(Normal)のレンジの場合で示している(但し、図5中では簡略化してNormで示している)。   In addition, a color bar 7g indicating a range when displayed as a pseudo color image is displayed on the right side of the endoscope image display area 7a. In this case, it is shown in the case of a standard range (however, in FIG. 5, it is simplified and shown as Norm).

また、図7(A)は関心領域7cを中のサイズに設定した場合の表示例を示し、図7(B)は関心領域7cを小のサイズに設定した場合で、暗い場合の表示例を示す。図10で説明するように関心領域7cを中、小の各サイズに設定した場合には、無効領域7dが関心領域7cの30%、20%以下であると、それぞれ画像処理を実行し、30%、20%を越えると画像処理は実行されない。図7(A)では無効領域7dが関心領域7cの30%以下であり、画像処理が実行された場合の表示例となり、図7(B)は無効領域7dが関心領域7cの20%を越え、画像処理が実行されない場合の表示例である。また、報知を行い、ユーザは、この報知に従った操作を行うことにより画像処理を適正化することができるようにする。   FIG. 7A shows a display example when the region of interest 7c is set to a medium size, and FIG. 7B shows a display example when the region of interest 7c is set to a small size and dark. Show. As illustrated in FIG. 10, when the region of interest 7c is set to a medium size and a small size, if the invalid region 7d is 30% or 20% or less of the region of interest 7c, image processing is performed. % And 20%, image processing is not executed. In FIG. 7A, the invalid region 7d is 30% or less of the region of interest 7c, which is a display example when image processing is executed. FIG. 7B shows the invalid region 7d exceeding 20% of the region of interest 7c. This is a display example when image processing is not executed. Also, notification is performed, and the user can optimize the image processing by performing an operation according to the notification.

また、図7(C)は、関心領域7cが大のサイズの場合であり、無効領域7dの割合が小さい場合(図6(B)の場合とほぼ同様)であり、これに対して、図7(D)は、擬似カラー表示のレンジをNormalからWideに変更した例を示す。   FIG. 7C shows a case where the region of interest 7c has a large size and a ratio of the invalid region 7d is small (substantially the same as the case of FIG. 6B). 7 (D) shows an example in which the pseudo color display range is changed from Normal to Wide.

本実施例では、図6(B)等に示すように内視鏡画像表示領域7a内に設定した関心領域7c部分のみに擬似カラー画像や無効領域7dを表示する場合、関心領域設定回路63は、図8に示すような作用によってマスク信号を発生して、画素数等が異なるCCD30の場合にも、擬似カラー画像等の処理画像を適切なサイズで表示できるようにしている。 例えば、処理画像として擬似カラー画像の表示を行う場合、関心領域設定回路63は、検出回路57からの検出信号により、図8のステップS1に示すように実際に使用されているCCD30がタイプ1の種類か否かを判断し、これに該当すると判断した場合には、ステップS2に示すようにタイプ1用のマスク信号を発生し、このマスク信号を画像合成回路65に出力する。   In the present embodiment, as shown in FIG. 6B and the like, when the pseudo color image or the invalid region 7d is displayed only in the region of interest 7c set in the endoscope image display region 7a, the region of interest setting circuit 63 A mask signal is generated by the action as shown in FIG. 8 so that a processed image such as a pseudo color image can be displayed in an appropriate size even in the case of the CCD 30 having a different number of pixels. For example, when a pseudo color image is displayed as a processed image, the region-of-interest setting circuit 63 uses the detection signal from the detection circuit 57 and the CCD 30 actually used is of type 1 as shown in step S1 of FIG. If it is determined whether or not it is a type, a mask signal for type 1 is generated as shown in step S 2, and this mask signal is output to the image composition circuit 65.

タイプ1用のマスク信号は擬似カラー画像等の処理画像の表示を行うタイミングで“1”となり、それ以外の期間では“0”となる2値のマスク信号を出力し、画像合成回路65は、このマスク信号により原画像に擬似カラー画像等の処理画像を部分的にはめ込むような画像合成を行って後段側に出力する。そして、モニタ7の表示面には図6(B)に示すように擬似カラー画像が部分表示される。   The mask signal for type 1 is “1” at the timing of displaying a processed image such as a pseudo color image, and outputs a binary mask signal that is “0” in other periods. By this mask signal, image synthesis is performed such that a processed image such as a pseudo color image is partially inserted into the original image and output to the subsequent stage. Then, a pseudo color image is partially displayed on the display surface of the monitor 7 as shown in FIG.

一方、図8のステップS1に該当しない場合には、ステップS3に進み、CCD30がタイプ2のものか否かを判断する。このタイプ2の種類に該当すると判断した場合には、関心領域設定回路63は、ステップS4に示すようにタイプ2用のマスク信号を発生し、このマスク信号を画像合成回路65に出力する。そして、この場合にも、図6(B)とほぼ同じように擬似カラー画像が表示される。   On the other hand, if it does not correspond to step S1 in FIG. 8, the process proceeds to step S3 to determine whether or not the CCD 30 is of type 2. When it is determined that the type 2 type is applicable, the region-of-interest setting circuit 63 generates a type 2 mask signal and outputs the mask signal to the image composition circuit 65 as shown in step S4. Also in this case, a pseudo color image is displayed in substantially the same manner as in FIG.

一方、ステップS3の条件にも該当しない場合には、ステップS5に進み、その他のタイプに応じたマスク信号を発生する。このようにして、複数種類のCCD30の場合にも、そのCCD30の画素数等に適切なサイズで擬似カラー画像の部分表示を行えるようにしている。   On the other hand, if the condition in step S3 is not satisfied, the process proceeds to step S5, and a mask signal corresponding to another type is generated. In this manner, even in the case of a plurality of types of CCD 30, partial display of a pseudo color image can be performed with a size appropriate for the number of pixels of the CCD 30 and the like.

具体的な例を挙げて説明すると、例えばタイプ1のCCD30では、その画素数が400×400であり、関心領域の大きさが大で位置が中央部であれば、中央部で200×200の画素領域(つまり1/4のサイズ)で“1”となり、それ以外の期間では“0”となる2値のマスク信号を発生する。また、タイプ2のCCD30では、その画素数が800×600であり、この場合にはその中央部で400×300の画素領域(やはり1/4のサイズ)で“1”となり、それ以外の期間では“0”となる2値のマスク信号を発生する。   For example, in the type 1 CCD 30, if the number of pixels is 400 × 400, the size of the region of interest is large, and the position is the central portion, the central portion is 200 × 200. A binary mask signal is generated that is “1” in the pixel region (that is, ¼ size) and “0” in other periods. In the type 2 CCD 30, the number of pixels is 800 × 600, and in this case, “1” is obtained in a 400 × 300 pixel region (again a size of ¼) at the center, and the other periods. Then, a binary mask signal which is “0” is generated.

従って、タイプ1或いはタイプ2のいずれの場合にも、原画像の中央部等でその1/4の表示サイズで擬似カラー画像の表示が行われるようになる。   Accordingly, in either case of type 1 or type 2, the pseudo color image is displayed at the 1/4 display size at the center of the original image or the like.

また、タイプ1或いはタイプ2のいずれの場合にも、関心領域7cの大きさに対応したマスク信号を生成する。図9は、例えばタイプ1用マスク信号生成の処理内容を示す。 この処理がスタートすると、ステップS6で、関心領域設定回路63は、設定あるいは選択される関心領域7cが大かの判断を行う。そして、これに該当する場合には、ステップS8aに進み、大用の関心領域7cに相当するマスク信号を生成し、さらに次のステップS9aで、無効領域7dの閾値の設定を行う。   In either case of type 1 or type 2, a mask signal corresponding to the size of the region of interest 7c is generated. FIG. 9 shows the processing content of, for example, type 1 mask signal generation. When this process starts, in step S6, the region of interest setting circuit 63 determines whether the region of interest 7c to be set or selected is large. If this is the case, the process proceeds to step S8a to generate a mask signal corresponding to the large area of interest 7c, and in the next step S9a, the threshold value of the invalid area 7d is set.

ステップS6の判断において、関心領域7cが大でない場合には、次のステップS7に移り、関心領域設定回路63は、関心領域7cが中かの判断を行う。そして、これに該当する場合には、ステップS8bに進み、中用の関心領域7cに相当するマスク信号を生成し、さらに次のステップS9bで、無効領域7dの閾値の設定を行う。   If it is determined in step S6 that the region of interest 7c is not large, the process proceeds to the next step S7, and the region of interest setting circuit 63 determines whether the region of interest 7c is inside. If this is the case, the process proceeds to step S8b to generate a mask signal corresponding to the intermediate region of interest 7c, and in the next step S9b, the threshold value of the invalid region 7d is set.

ステップS7の判断において、関心領域7cが中でない場合には、ステップS8cに進み、小用の関心領域7cに相当するマスク信号を生成し、さらに次のステップS9cで、無効領域7dの閾値の設定を行う。   If it is determined in step S7 that the region of interest 7c is not inside, the process proceeds to step S8c to generate a mask signal corresponding to the small region of interest 7c, and in the next step S9c, the threshold value of the invalid region 7d is set. I do.

このように本実施例では、関心領域7cの大きさに応じて閾値を設定して、より適切に、つまり所定の精度を保持できるように画像処理を行うようにしている。   As described above, in this embodiment, the threshold value is set according to the size of the region of interest 7c, and image processing is performed more appropriately, that is, so as to maintain a predetermined accuracy.

このように関心領域7cの大きさに応じて閾値を設定する動作を図10を参照して説明する。なお、以下に説明するように関心領域7cの大きさに応じて閾値を可変設定しているのは、関心領域7cが大きく設定されている場合には、無効領域7dの(関心領域7cに占める)相対的な割合が大きくても、残りの領域の画素数が十分に大きくなる。従って、その場合には十分に精度を保って解析結果が得られることになるので、関心領域7cが大きい程、閾値を大きく設定している。   The operation of setting the threshold value according to the size of the region of interest 7c in this way will be described with reference to FIG. As described below, the threshold value is variably set according to the size of the region of interest 7c when the region of interest 7c is set large. ) Even if the relative ratio is large, the number of pixels in the remaining area is sufficiently large. Therefore, in this case, the analysis result can be obtained with sufficiently high accuracy. Therefore, the larger the region of interest 7c is, the larger the threshold is set.

図10に示すように画像処理がスタートすると、ステップS11に示すように関心領域7cの位置とサイズの設定を行う処理となる。この場合ユーザは、キーボード9等から関心領域7cの位置とサイズの設定を行う入力操作を行う。   When the image processing starts as shown in FIG. 10, the position and size of the region of interest 7c are set as shown in step S11. In this case, the user performs an input operation for setting the position and size of the region of interest 7c from the keyboard 9 or the like.

次のステップS12において、CPU56は、このように設定された関心領域7cのサイズが大であるか否かの判断を行う。そして、大であると判断した場合には、ステップS14aに示すように閾値を40%として、ステップS15に移る。   In the next step S12, the CPU 56 determines whether or not the size of the region of interest 7c set in this way is large. If it is determined that the threshold value is large, the threshold value is set to 40% as shown in step S14a, and the process proceeds to step S15.

一方、ステップS12において、CPU56は、関心領域7cのサイズが大でないと判断すると、次のステップS13に進み、関心領域7cのサイズが中であるか否かの判断を行う。そして、中であると判断した場合には、ステップS14bに示すように閾値を30%として、ステップS15に移る。   On the other hand, when the CPU 56 determines in step S12 that the size of the region of interest 7c is not large, the process proceeds to the next step S13, and determines whether or not the size of the region of interest 7c is medium. And when it is judged that it is inside, as shown to step S14b, a threshold value is set to 30% and it moves to step S15.

また、ステップS13において、CPU56は、関心領域7cのサイズが中でないと判断すると、ステップS14cに進み、関心領域7cのサイズが小であると判断し、閾値を20%として、ステップS15に移る。   In step S13, if the CPU 56 determines that the size of the region of interest 7c is not medium, the process proceeds to step S14c, determines that the size of the region of interest 7c is small, sets the threshold to 20%, and proceeds to step S15.

ステップS15において、輝度検出回路67は、関心領域7c内の各画素毎の輝度計算を行い、その計算結果をCPU56に送る。   In step S15, the luminance detection circuit 67 performs luminance calculation for each pixel in the region of interest 7c, and sends the calculation result to the CPU 56.

CPU56は、次のステップS16において、輝度計算結果からハレーションと暗部を判別する閾値を用いてその画素数を計算する。   In the next step S <b> 16, the CPU 56 calculates the number of pixels using a threshold value for discriminating halation and dark portions from the luminance calculation result.

そして、次のステップS17において、CPU56は、ステップS14a、14b、14cにより設定した閾値を用いて、無効領域7dの画素数が閾値以下か否かの判断を行う。そして、その判断において、無効領域7dの画素数が閾値以下の場合には、ステップS18に示すようにCPU56は、関心領域7c内の画像処理をONにして、画像処理を行わせる。   In the next step S17, the CPU 56 determines whether or not the number of pixels in the invalid area 7d is equal to or smaller than the threshold value using the threshold values set in steps S14a, 14b, and 14c. In the determination, if the number of pixels in the invalid area 7d is equal to or smaller than the threshold, the CPU 56 turns on the image processing in the region of interest 7c and causes the image processing to be performed as shown in step S18.

一方、ステップS17の判断において、無効領域7dの画素数が閾値を超える場合には、ステップS19に示すようにCPU56は、関心領域7c内の画像処理をOFFにする。   On the other hand, if it is determined in step S17 that the number of pixels in the invalid area 7d exceeds the threshold, the CPU 56 turns off image processing in the region of interest 7c as shown in step S19.

つまり、無効領域7dが多い場合には、画像処理を禁止することになる。このため、無効領域7dが多い場合には不適当な処理結果が得られないこととなり、処理結果が所定の精度を有するか否かの確認等を行わなくても済むように画像処理の適正化をしている。 また、この禁止の他に、CPU56は、さらにステップS20に示すように、画像処理を行うことが適当でないことの報知を行う。例えば、「明るさが適切でありません」との報知メッセージや報知音をモニタ7やスピーカ70で行う。このため、ユーザは、明るさが適切でないために、画像処理が行われないことを容易に知ることができる。そして、明るさを調整することにより、画像処理が行えるように適正化することもできる。   That is, when there are many invalid areas 7d, image processing is prohibited. For this reason, when there are many invalid areas 7d, an inappropriate processing result cannot be obtained, and optimization of image processing is performed so that it is not necessary to check whether the processing result has a predetermined accuracy. I am doing. In addition to this prohibition, the CPU 56 notifies that the image processing is not appropriate as shown in step S20. For example, a notification message or notification sound that “brightness is not appropriate” is performed on the monitor 7 or the speaker 70. For this reason, the user can easily know that the image processing is not performed because the brightness is not appropriate. And it can also optimize so that image processing can be performed by adjusting a brightness.

以上では、ビデオプロセッサ6に装着される電子内視鏡2に搭載されているCCD30の画素数が異なる例について説明したが、本実施例はこれに限らず、上述したように他の要素により装着される内視鏡の種別を判定し、この装着された電子内視鏡に適した画像処理を行うよう各条件を設定することも可能である。   In the above, an example in which the number of pixels of the CCD 30 mounted on the electronic endoscope 2 mounted on the video processor 6 is different has been described. However, the present embodiment is not limited to this and is mounted by other elements as described above. It is also possible to determine the type of endoscope to be set, and to set each condition so as to perform image processing suitable for the mounted electronic endoscope.

すなわち、識別情報43(図2参照)に基づいて、画角や光学ズーム等の光学的な要素が異なる電子内視鏡が装着されたことが検出された場合、適切なサイズでの表示を行うよう各条件を設定する。例えば、光学ズーム機能を有する電子内視鏡が装着された場合、CCD30から得られる画像は全体的に重要な意味を持つので、関心領域のサイズを大きくするよう設定し、一方で光学ズーム機能を備えない電子内視鏡が装着された場合には、当該サイズを小さく設定しても良い。   That is, based on the identification information 43 (see FIG. 2), when it is detected that an electronic endoscope having a different optical element such as an angle of view or an optical zoom is mounted, a display with an appropriate size is performed. Set each condition as follows. For example, when an electronic endoscope having an optical zoom function is attached, the image obtained from the CCD 30 has an overall important meaning, so that the size of the region of interest is set to be large, while the optical zoom function is set. When an electronic endoscope that is not provided is mounted, the size may be set small.

また、主に胃の観察等に用いる上部消化管用内視鏡と異なり、大腸観察等に用いる下部消化管用内視鏡が装着された場合、管腔が多く比較的暗い部位を観察するため、的確な画像処理を行い易いように関心領域を大きく設定しても良い。   In addition, unlike the upper gastrointestinal endoscope mainly used for gastric observation, etc., when the lower gastrointestinal endoscope used for large intestine observation, etc. is attached, it is possible to observe a relatively dark part with many lumens. The region of interest may be set large to facilitate easy image processing.

次にこの内視鏡装置1を動作状態に設定して、IHb分布の擬似カラー表示等を行う作用を図11を参照して説明する。   Next, the operation of setting the endoscope apparatus 1 to the operating state and performing pseudo color display of the IHb distribution will be described with reference to FIG.

内視鏡装置1の電源を投入して動作状態に設定すると、ビデオプロセッサ6内のCPU56はキーボード9等からの指示入力を監視しており、ステップS21に示すように擬似カラーがONの指示入力がされたか否かを判断する。   When the endoscope apparatus 1 is turned on and set in the operating state, the CPU 56 in the video processor 6 monitors the instruction input from the keyboard 9 and the like, and the pseudo color ON instruction input as shown in step S21. It is determined whether or not

そして、擬似カラーがONにされていないと、ステップS22の原画像表示を行う。例えば、図6(A)に示すような状態で、モニタ7の表示面に内視鏡画像を動画で表示する。   If the pseudo color is not turned on, the original image is displayed in step S22. For example, the endoscope image is displayed as a moving image on the display surface of the monitor 7 in the state shown in FIG.

なお、本実施例では、原画像表示の場合には、後段画像処理回路51の構造強調をONにして構造強調された画像を表示するようにしている。また、擬似カラー表示する場合には、自動的に構造強調をOFFに設定して、擬似カラー表示の色調等が変化してしまわないようにしている。   In this embodiment, in the case of displaying the original image, the structure-enhanced image of the rear-stage image processing circuit 51 is turned on to display the structure-enhanced image. Further, in the case of pseudo color display, the structure emphasis is automatically set to OFF so that the tone of the pseudo color display does not change.

このため、一旦、擬似カラー表示にされた後に、擬似カラーOFFにされた場合にはステップS22では擬似カラー画像時の構造強調OFF処理を解除し、構造強調ONの状態で原画像を表示するようになる。   For this reason, if the pseudo color display is once made and then the pseudo color is turned off, the structure enhancement OFF processing at the time of the pseudo color image is canceled in step S22, and the original image is displayed in the state of the structure enhancement ON. become.

一方、ステップS21で擬似カラーONと判断された場合には、CPU56は、ステップS23のレンジチェックを行う。つまり、擬似カラーで表示する場合の色割り当てをノーマル(Normal)とワイド(Wide)かの判断を行う。   On the other hand, if it is determined in step S21 that the pseudo color is ON, the CPU 56 performs a range check in step S23. That is, it is determined whether the color assignment for displaying in pseudo color is normal (normal) or wide (wide).

そして、ノーマル或いはワイドに該当する色割り当てのカラーバーの表示の指示制御を行う。そして、ステップS24でマスク信号が1か否かの判断を行う。   Then, the display control of the color bar with the color assignment corresponding to normal or wide is performed. In step S24, it is determined whether the mask signal is 1.

マスク信号が1の場合には、CPU56は、関心領域設定回路63に対して関心領域設定の信号を画像合成回路65に出力するように制御する。そして、擬似画像生成回路64による擬似画像は画像合成回路65により原画像と合成してステップS25に示すように擬似カラー処理の表示の処理を行い、ステップS27に進む。例えば図6(B)に示すように内視鏡画像表示領域7aの原画像における関心領域7cに擬似カラー画像を表示する。なお、無効領域7dの部分に対しては無彩色で表示する。この内視鏡画像表示領域7aの右側にはカラーバーが表示される。   When the mask signal is 1, the CPU 56 controls the region-of-interest setting circuit 63 to output a region-of-interest setting signal to the image composition circuit 65. Then, the pseudo image generated by the pseudo image generation circuit 64 is synthesized with the original image by the image synthesizing circuit 65 and the pseudo color process is displayed as shown in step S25, and the process proceeds to step S27. For example, as shown in FIG. 6B, a pseudo color image is displayed in the region of interest 7c in the original image of the endoscope image display region 7a. The invalid area 7d is displayed in an achromatic color. A color bar is displayed on the right side of the endoscopic image display area 7a.

一方、マスク信号が1でない場合には、ステップS26に示すように原画像を表示する処理を行い、ステップS27に進む。   On the other hand, when the mask signal is not 1, processing for displaying the original image is performed as shown in step S26, and the process proceeds to step S27.

擬似カラー画像表示の処理の後、CPU56は、ステップS27において後段画像処理回路51での構造強調がONか否かの判断を行う。そして、ONにされている場合には、構造強調をOFFにしてステップS21に戻る。   After the pseudo color image display process, the CPU 56 determines whether or not the structure enhancement in the subsequent image processing circuit 51 is ON in step S27. If ON, the structure emphasis is turned OFF and the process returns to step S21.

一方、構造強調がONにされていない場合には、構造強調をOFFのままにしてステップS21に戻る。   On the other hand, if the structure enhancement is not turned on, the structure enhancement remains off and the process returns to step S21.

このように(擬似カラー画像を表示する場合には)、構造強調を自動的にOFFにする処理をして、擬似カラー画像の表示を行うようにしているので、IHbによる擬似カラー表示を行った場合、構造強調によりその擬似カラー表示が変化してしまうことを有効に防止できる。   In this way (when displaying the pseudo color image), the process of automatically turning off the structure enhancement is performed to display the pseudo color image, so that the pseudo color display by IHb was performed. In this case, it is possible to effectively prevent the pseudo color display from changing due to structure enhancement.

上記ステップS25の擬似カラー処理の表示の処理の詳細を図12に示す。   Details of the pseudo color process display process in step S25 are shown in FIG.

擬似カラー処理の表示の処理が開始すると、ステップS30に示すようにCPU56は、関心領域7c内かの判断を行う。そして、これに該当しない場合には、ステップS31に示すように通常画像を表示することになる。   When the display process of the pseudo color process is started, as shown in step S30, the CPU 56 determines whether it is within the region of interest 7c. If this is not the case, a normal image is displayed as shown in step S31.

一方、ステップS30の判断において、関心領域7c内であると判断されると、ステップS32に示すように輝度検出回路67により輝度計算が行われる。   On the other hand, if it is determined in step S30 that the region is within the region of interest 7c, luminance calculation is performed by the luminance detection circuit 67 as shown in step S32.

この輝度計算の結果は無効領域検出回路68に送られ、この無効領域検出回路68は、ステップS33に示すように無効領域7dか否かの判断を行う。この判断結果はIHb算出回路61と無効領域表示回路69とCPU56とに送られる。   The result of the luminance calculation is sent to the invalid area detection circuit 68, and the invalid area detection circuit 68 determines whether or not the area is the invalid area 7d as shown in step S33. The determination result is sent to the IHb calculation circuit 61, the invalid area display circuit 69, and the CPU 56.

そして、無効領域7dでないと判断された場合には、ステップS34に示すようにIHb算出回路61は、IHb算出を行う。そして、IHb算出結果により、ステップS35に示すように、関心領域7cにおいて、擬似カラー表示される。   If it is determined that the area is not the invalid area 7d, the IHb calculation circuit 61 performs IHb calculation as shown in step S34. Then, as shown in step S35, pseudo color display is performed in the region of interest 7c based on the IHb calculation result.

一方、ステップS33において、無効領域7dと判断された場合には、ステップS36に示すように無効領域表示回路69により無効領域表示の処理が行われる。さらにステップS37により、無効領域7dの大きさ算出の処理が行われる。   On the other hand, if it is determined in step S33 that the area is invalid, the invalid area display circuit 69 performs invalid area display processing as shown in step S36. Further, in step S37, the size of the invalid area 7d is calculated.

例えばCPU56は、無効領域検出回路68から無効領域7dと判断された画素をカウントし、その大きさを算出する。そして、CPU56は、ステップS38において、算出された無効領域7dの大きさが閾値以下か否かの判断を行う。この判断において、算出された無効領域7dの大きさが閾値以下の場合には、ステップS39に示すように画像処理を継続する。これに対して、算出された無効領域7dの大きさが閾値を超える場合には、ステップS40に示すようにCPU56は、画像処理を中止する。   For example, the CPU 56 counts the pixels determined to be the invalid area 7d from the invalid area detection circuit 68 and calculates the size thereof. In step S38, the CPU 56 determines whether or not the calculated size of the invalid area 7d is equal to or smaller than a threshold value. In this determination, if the calculated size of the invalid area 7d is equal to or smaller than the threshold value, the image processing is continued as shown in step S39. On the other hand, when the calculated size of the invalid area 7d exceeds the threshold, the CPU 56 stops the image processing as shown in step S40.

また、上述したように本実施例では、CPU56は、内視鏡検査時において、画像処理を行う場合には、画像処理が適正に行われるように照明光量を適正となるように制御するようにしている。   Further, as described above, in this embodiment, when performing image processing at the time of endoscopy, the CPU 56 controls the illumination light amount to be appropriate so that the image processing is appropriately performed. ing.

つまり、上述の説明では、測光回路42により検出された明るさに応じて、適正な明るさとなるように照明光量を自動調整するが、画像処理を行っている場合には、照明光量を適正な画像処理結果、つまり精度の良い画像処理結果が得られるように照明光量を固定、(より具体的には絞り25を解放側に固定)する制御を行うようにしていることが特徴となっている。   That is, in the above description, the illumination light amount is automatically adjusted so as to obtain an appropriate brightness according to the brightness detected by the photometry circuit 42. However, when image processing is being performed, the illumination light amount is set appropriately. It is characterized in that control is performed to fix the amount of illumination light (more specifically, to fix the diaphragm 25 to the open side) so that an image processing result, that is, an accurate image processing result can be obtained. .

次に本実施例における内視鏡検査時における照明光量制御の動作を図13を参照して以下に説明する。図13に示すように内視鏡検査が開始し、ビデオプロセッサ6による信号処理がスタートすると、CPU56は、ステップS91に示すように画像処理を実行(画像処理をONに)しているか否かの判断を行う。   Next, the operation of the illumination light quantity control at the time of endoscopy in the present embodiment will be described below with reference to FIG. As shown in FIG. 13, when endoscopy is started and signal processing by the video processor 6 is started, the CPU 56 determines whether or not image processing is being executed (image processing is turned ON) as shown in step S91. Make a decision.

そして、画像処理を実行していない判断すると、ステップS92の処理に進み、逆に画像処理を実行していると判断すると、ステップS93の処理に移る。ステップS93においては、CPU56は、制御回路40を介して、光源部3の絞り25を全開の位置に固定するように絞りモータ25aの駆動動作を制御する。なお、絞り25を全開の位置に固定する処理動作の変形例として、絞り位置を全開側に近い所定の位置に設定(固定)しても良い。   If it is determined that image processing is not being performed, the process proceeds to step S92. If it is determined that image processing is being performed, the process proceeds to step S93. In step S93, the CPU 56 controls the driving operation of the aperture motor 25a via the control circuit 40 so as to fix the aperture 25 of the light source unit 3 at the fully open position. As a modification of the processing operation for fixing the diaphragm 25 at the fully open position, the diaphragm position may be set (fixed) at a predetermined position close to the fully open side.

一方、ステップS92においてはCPU56は、測光回路42の測光結果を制御回路40を介して取り込み、画像信号の明るさは適正か否かを判断する。   On the other hand, in step S92, the CPU 56 captures the photometric result of the photometric circuit 42 via the control circuit 40, and determines whether the brightness of the image signal is appropriate.

このステップS92での判断結果が適正でない場合には、ステップS94に進み、逆に適正な場合には、ステップS95に移る。ステップS95では、適正な明るさであるので、CPU56は、その絞り位置の状態を保持し、絞り位置を変更しないように制御回路40を介して絞り25を駆動する絞りモータ25aの動作を制御する。   If the determination result in step S92 is not appropriate, the process proceeds to step S94. If it is appropriate, the process proceeds to step S95. In step S95, since the brightness is appropriate, the CPU 56 maintains the state of the aperture position and controls the operation of the aperture motor 25a that drives the aperture 25 via the control circuit 40 so as not to change the aperture position. .

一方、ステップS94においてはCPU56は、さらに画像信号が明るすぎるかの判断を行う。そして、CPU56は、画像信号が明るすぎないと判断した場合には、ステップS96に進み、絞り25を所定量だけ開いて照明光量を増加するように制御する。その後、ステップS91に戻る。一方、ステップS94の判断において、CPU56は、画像信号が明る過ぎると判断した場合には、ズテップS97に移り、絞り25を所定量だけ閉じて照明光量を減少するように制御する。その後、ステップS91に戻る。   On the other hand, in step S94, the CPU 56 further determines whether the image signal is too bright. If the CPU 56 determines that the image signal is not too bright, the CPU 56 proceeds to step S96 and controls the aperture 25 to open by a predetermined amount to increase the amount of illumination light. Thereafter, the process returns to step S91. On the other hand, if it is determined in step S94 that the image signal is too bright, the CPU 56 proceeds to step S97 and controls the aperture 25 to be closed by a predetermined amount to reduce the amount of illumination light. Thereafter, the process returns to step S91.

このようにして画像処理を実行していない場合には、画像信号の明るさを適切な値になるように絞り25による開口量を調整にすることにより、適切な明るさの照明光量の状態に設定できる。   When the image processing is not executed in this way, the aperture amount by the diaphragm 25 is adjusted so that the brightness of the image signal becomes an appropriate value, so that the illumination light quantity with the appropriate brightness is obtained. Can be set.

また、本実施例では、画像処理を実行している場合には、絞り25を全開か、全開付近の値に固定するようにして、絞り25が画像処理中に変動して照明光量状態が変動することを防止し、精度の良い画像処理結果が得られるようにする。つまり、観察では支障がない、或いは識別しにくい程度の微妙な色調の変化を減少させ、画像処理結果ではより精度を向上できる。   Also, in this embodiment, when image processing is being executed, the aperture 25 is fully opened and is fixed at a value near the fully open position so that the aperture 25 varies during image processing and the illumination light quantity state varies. It is possible to obtain an accurate image processing result. In other words, it is possible to reduce a subtle change in color tone that is not hindered by observation or difficult to identify, and to improve the accuracy of the image processing result.

このように本実施例によれば、より精度の高い画像処理結果が得られるようになる。   Thus, according to the present embodiment, a more accurate image processing result can be obtained.

なお、上述のように照明光量を固定する場合、電子内視鏡2の挿入部11は、体腔内に挿入されているため、明る過ぎる場合よりも、暗過ぎる場合に設定されてしまう場合がある。このため、本実施例では、絞り25は全開か、これに近い値に固定するようにして、多くの場合、精度の良い画像処理結果が得られるようにしている。   In addition, when fixing illumination light quantity as mentioned above, since the insertion part 11 of the electronic endoscope 2 is inserted in the body cavity, it may be set when it is too dark rather than when it is too bright. . For this reason, in this embodiment, the aperture 25 is fully opened and is fixed to a value close to this, so that an accurate image processing result is obtained in many cases.

しかし上記のように明る過ぎるような場合も発生する可能性があるため、本実施例の変形例として、図13におけるステップS91の判断処理により、ステップS93に示す絞り25を全開がこれに近い値に固定し、さらに図14に示すように電子シャッタによる撮像制御(明るさ制御)の動作を行うようにしても良い。   However, there is a possibility that it may be too bright as described above. Therefore, as a modification of the present embodiment, a value close to this is obtained when the aperture 25 shown in step S93 is fully opened by the determination process in step S91 in FIG. Further, as shown in FIG. 14, an image pickup control (brightness control) operation using an electronic shutter may be performed.

次にこの電子シャッタを動作させた場合の処理を図14を参照して説明する。   Next, processing when the electronic shutter is operated will be described with reference to FIG.

上記のようにCPU56は、画像処理を実行していると判断すると、絞り25を全開がこれに近い値に固定する。そして、CPU56は、制御回路40を介してCCDドライバ33を制御し、CCDドライバ33及びCCD30による電子シャッタの動作を開始させる。   As described above, when the CPU 56 determines that image processing is being performed, the aperture 25 is fixed to a value close to the fully open aperture 25. Then, the CPU 56 controls the CCD driver 33 via the control circuit 40 and starts the operation of the electronic shutter by the CCD driver 33 and the CCD 30.

電子シャッタの動作がスタートすると、ステップS101に示すようにCPU56は、制御回路40を介して測光回路42により測光された明るさから画像信号は適正なレベルかの判断を行う。   When the operation of the electronic shutter starts, the CPU 56 determines whether the image signal is at an appropriate level from the brightness measured by the photometry circuit 42 via the control circuit 40 as shown in step S101.

そして、CPU56は、適正な明るさと判断した場合には、ステップS102に進み、その状態を維持するように制御回路40を介してCCDドライバ33を制御する。つまり、CCDドライバ33は、ステップS101で適正と判断された状態での電子シャッタの状態を維持するようにCCDドライブ信号をCCD30に出力することになる。   If the CPU 56 determines that the brightness is appropriate, the CPU 56 proceeds to step S102 and controls the CCD driver 33 via the control circuit 40 so as to maintain the state. That is, the CCD driver 33 outputs the CCD drive signal to the CCD 30 so as to maintain the electronic shutter state in the state determined to be appropriate in step S101.

一方、ステップS101の判断において、CPU56は、画像信号は適正なレベルでないと判断すると、ステップS103において画像信号が明る過ぎるかの判断を行う。そして、画像信号が明るすぎると判断した場合には、CPU56は、ステップS104において電子シャッタの撮像時間(電荷蓄積時間)を短くして画像信号のレベルを所定量だけ、暗くなるように制御した後、ステップS106の処理に移る。   On the other hand, when determining in step S101 that the image signal is not at an appropriate level, the CPU 56 determines whether the image signal is too bright in step S103. If the CPU 56 determines that the image signal is too bright, the CPU 56 controls the image signal level to be dark by a predetermined amount by shortening the imaging time (charge accumulation time) of the electronic shutter in step S104. Then, the process proceeds to step S106.

一方、ステップS103の判断において、CPU56は、画像信号が明る過ぎないと判断した場合には、ステップS105において電子シャッタの撮像時間を長くして画像信号のレベルを所定量だけ、明るくなるように制御した後、ステップS106の処理に移る。 そして、ステップS106においては、CPU56は、電子シャッタによる撮像時間が可変できる範囲内かの判断を行い、可変できる範囲内と判断した場合にはステップS101に戻り、同様の動作を繰り返す。一方、CPU56は、可変できる範囲内には無いと判断した場合には、ステップS107に進み、その状態を維持するように制御する。   On the other hand, if it is determined in step S103 that the image signal is not too bright, the CPU 56 increases the image pickup time of the electronic shutter in step S105 so that the level of the image signal is increased by a predetermined amount. Then, the process proceeds to step S106. In step S106, the CPU 56 determines whether the imaging time by the electronic shutter is within a variable range. If it is determined that the imaging time is within the variable range, the CPU 56 returns to step S101 and repeats the same operation. On the other hand, if the CPU 56 determines that it is not within the variable range, the CPU 56 proceeds to step S107 and controls to maintain that state.

なお、図14の処理においても、ステップS101で画像信号のレベルが一度適正であると判断されると、ステップS102に進み、その状態に固定(維持)されることになる。   Also in the processing of FIG. 14, if it is determined in step S101 that the level of the image signal is once appropriate, the process proceeds to step S102 and is fixed (maintained) in that state.

このように動作する変形例によれば、画像処理を行う場合、照明光量を固定し、その固定した状態でも適正な明るさでない場合には電子シャッタの機能を動作させて、適正な明るさとなるように画像信号による撮像時間を固定して、精度の良い画像処理を行えるようになる。   According to the modified example that operates as described above, when performing image processing, the illumination light quantity is fixed, and if the brightness is not appropriate even in the fixed state, the electronic shutter function is operated to obtain the appropriate brightness. As described above, it is possible to perform image processing with high accuracy by fixing the imaging time based on the image signal.

画像処理として、具体的に上述した血液情報量としてのIHbの算出を行う場合においては、算出されるIHbの平均値に対しては高精度のIHbの平均値が得られ、また各画素におけるIHbの算出量を擬似カラーで表示する場合には、より精度が高い擬似カラー表示を行うことができる。   In the case of calculating the IHb as the blood information amount specifically described above as the image processing, a highly accurate average value of the IHb is obtained with respect to the calculated average value of the IHb, and the IHb in each pixel is obtained. When the calculated amount is displayed in pseudo color, pseudo color display with higher accuracy can be performed.

また、画像処理として、蛍光観察を行う場合に適用すると、より高精度の蛍光情報が得られる。   Further, when the image processing is applied to fluorescence observation, more accurate fluorescence information can be obtained.

次に本発明の実施例2を図15ないし図19を参照して説明する。本実施例の構成は、実施例1と殆ど同様であるが、ホワイトバランス調整する手段及び方法が異なっている。 図2に示した絞り25の位置とこの絞り25の開口を経てライトガイド23に供給される照明光量の関係は、例えば図15に示すようになっている。   Next, a second embodiment of the present invention will be described with reference to FIGS. The configuration of this embodiment is almost the same as that of Embodiment 1, but the means and method for white balance adjustment are different. The relationship between the position of the diaphragm 25 shown in FIG. 2 and the amount of illumination light supplied to the light guide 23 through the opening of the diaphragm 25 is, for example, as shown in FIG.

通常観察用のホワイトバランスの調整を行う時には、白い被写体を用いて行うが、この白い被写体は明るいため、図15における例えば半開Aに示すように絞り25をかなり閉めた状態でホワイトバランスを行ってしまう状態になる。   When adjusting the white balance for normal observation, a white object is used. Since this white object is bright, white balance is performed with the aperture 25 considerably closed as shown in FIG. It will be in a state to end.

これに対して、体腔内、例えば挿入部11を胃内部などで撮像する場合には、絞り25の位置は、図15におけるより全開側となる範囲R1や範囲R2に含まれる半開Bや半開Cの位置となる。つまり、体腔内では、絞り25の位置は、多くの場合、全開に至る中央付近となる半開Bの位置付近や、中央付近からより開いた半開Cの位置となる。   On the other hand, when imaging the inside of the body cavity, for example, the insertion portion 11 in the stomach, the position of the diaphragm 25 is the half-opened B or the half-opened C included in the range R1 or the range R2 on the full open side in FIG. It becomes the position. That is, in the body cavity, the position of the diaphragm 25 is often near the position of the half-open B near the center reaching the full opening, or the position of the half-open C opened more from the vicinity of the center.

このため、本実施例では、体腔内での実際の絞り25の位置の状態により近い条件に絞り25を設定して、その条件でホワイトバランス調整を行うようにすると共に、そのホワイトバラス調整状態に維持して画像処理を行うようにする。   For this reason, in the present embodiment, the iris 25 is set to a condition closer to the actual position of the iris 25 in the body cavity, and the white balance adjustment is performed under the condition, and the white ballast adjustment state is set. Maintain image processing.

この場合におけるホワイトバラス調整によりホワイトバランス調整値(図面上ではホワイトバランス値と略記)を得る動作を図16を参照して説明する。図16に示すようにホワイトバランス調整の動作がスタートすると、ステップS111に示すようにユーザは、電子内視鏡2により基準となる白い被写体を撮像する。   An operation for obtaining a white balance adjustment value (abbreviated as white balance value in the drawing) by white balance adjustment in this case will be described with reference to FIG. When the white balance adjustment operation starts as shown in FIG. 16, the user images a white subject as a reference with the electronic endoscope 2 as shown in step S <b> 111.

そして、次のステップS112において、CPU56は、制御回路40を制御し、制御回路40は、CCD30により撮像された信号を測光する測光回路42の出力を用いて絞りモータ25aにより絞り25の開口量を調整し、照明光量を適正な値にする。この状態での絞り25の位置は、通常は図15における半開A付近の状態となる。   In the next step S112, the CPU 56 controls the control circuit 40, and the control circuit 40 uses the output of the photometry circuit 42 that measures the image picked up by the CCD 30 to set the aperture of the aperture 25 by the aperture motor 25a. Adjust the light intensity to an appropriate value. The position of the diaphragm 25 in this state is normally in the vicinity of the half-open A in FIG.

そして、この状態でステップS113に示すようにCPU56は、制御回路40を介して通常観察用のホワイトバランス調整値を取得する。つまり、この状態でのCCD30により撮像され、ホワイトバランス調整回路38出力されるR,G,Bの信号レベルに対してこれらの信号レベルが等しくするなるようにR,G,Bの入力信号の際のR、G、B信号用のゲイン値をホワイトバランス調整値として取得する。そして、CPU56は、例えばその内部のレジスタ等に取得したホワイトバランス調整値を格納(記憶)する。   In this state, as shown in step S <b> 113, the CPU 56 acquires the white balance adjustment value for normal observation via the control circuit 40. In other words, when the R, G, B input signals are set so that these signal levels are equal to the R, G, B signal levels output by the CCD 30 in this state and output from the white balance adjustment circuit 38. The gain values for the R, G, and B signals are acquired as white balance adjustment values. The CPU 56 stores (stores) the acquired white balance adjustment value in, for example, an internal register.

また、次のステップS114において、CPU56は、制御回路40を介してCCDドライバ33を制御して、電子シャッタの動作を行わせ、CCD30からの出力信号が60%になるように制御する。つまり、電子シャッタの動作を行わせない状態でのCCD30による信号電荷を蓄積する撮像時間よりも60%短い時間で、CCDドライバ33からCCDドライブ信号をCCD30に印加して読み出し、この信号を用いるようにする。そして、残りの信号電荷を掃き捨てる。   In the next step S114, the CPU 56 controls the CCD driver 33 via the control circuit 40 to operate the electronic shutter so that the output signal from the CCD 30 is 60%. That is, the CCD driver 33 applies the CCD drive signal to the CCD 30 and reads it out in a time 60% shorter than the imaging time for accumulating the signal charge by the CCD 30 when the electronic shutter is not operated, and this signal is used. To. Then, the remaining signal charges are swept away.

次のステップS115において、CPU56は、制御回路40を介して絞りモータ25aを駆動し、絞り25の絞り位置を図15における半開Bの位置に設定する。   In the next step S115, the CPU 56 drives the aperture motor 25a via the control circuit 40, and sets the aperture position of the aperture 25 to the half-open position B in FIG.

そして、この状態において、CPU56は、制御回路40を介して画像処理用(1)のホワイトバランス調整値を取得する。つまり、ステップS114による電子シャッタにより、CCD30の出力信号のレベルを下げた状態にできるので、絞り25の位置を半開Aから半開Bに照明光量を増大しても、ホワイトバランス調整回路38に入力されるR,G,Bの信号レベルは、ステップS113の場合とほぼ同様のレベルとなる。   In this state, the CPU 56 acquires the white balance adjustment value for image processing (1) via the control circuit 40. That is, since the level of the output signal of the CCD 30 can be lowered by the electronic shutter in step S114, even if the illumination light quantity is increased from the half-open A to the half-open B, it is input to the white balance adjustment circuit 38. The R, G, and B signal levels are substantially the same as those in step S113.

このため、この状態で画像処理用(1)のホワイトバランス調整値を取得すると、精度良く画像処理用(1)のホワイトバランス調整値を取得することができる。そして、CPU56は、その内部のレジスタ等に取得したホワイトバランス調整値を格納(記憶)する。   For this reason, if the white balance adjustment value for image processing (1) is acquired in this state, the white balance adjustment value for image processing (1) can be acquired with high accuracy. The CPU 56 stores (stores) the acquired white balance adjustment value in an internal register or the like.

次のステップS117において、CPU56は、制御回路40を介してCCDドライバ33を制御して、電子シャッタの動作を行わせ、CCD30からの出力信号が30%になるように制御する。その後、ステップS118に示すようにCPU56は、制御回路40を介して絞りモータ25aを駆動し、絞り25の位置を図15における半開Cの位置に設定する。   In the next step S117, the CPU 56 controls the CCD driver 33 via the control circuit 40 to operate the electronic shutter so that the output signal from the CCD 30 is 30%. Thereafter, as shown in step S118, the CPU 56 drives the aperture motor 25a via the control circuit 40, and sets the position of the aperture 25 to the half-open C position in FIG.

そして、この状態において、CPU56は、制御回路40を介して画像処理用(2)のホワイトバランス調整値を取得する。つまり、ステップS117による電子シャッタにより、CCD30の出力信号のレベルを下げた状態にできるので、絞り位置を半開Aから半開Cに照明光量を増大しても、ホワイトバランス調整回路38に入力されるR,G,Bの信号レベルは、ステップS113の場合とほぼ同様のレベルとなる。   In this state, the CPU 56 acquires the white balance adjustment value for image processing (2) via the control circuit 40. That is, since the level of the output signal of the CCD 30 can be lowered by the electronic shutter in step S117, even if the illumination light quantity is increased from the half-open A to the half-open C, the R input to the white balance adjustment circuit 38 is achieved. , G, B signal levels are substantially the same as in step S113.

このため、この状態で画像処理用(2)のホワイトバランス調整値を取得すると、精度良く画像処理用(2)のホワイトバランス調整値を取得することができる。そして、CPU56は、その内部のレジスタ等に取得したホワイトバランス値を格納(記憶)する。 このようにして、本実施例では通常観察用と画像処理用(1)及び画像処理用(2)のホワイトバランス調整値を得た後、次の図17で説明するように通常観察或いは画像処理の状態に応じてホワイトバランス調整回路38で用いるホワイトバランス調整値を適正なものにする。   Therefore, when the image processing (2) white balance adjustment value is acquired in this state, the image processing (2) white balance adjustment value can be acquired with high accuracy. The CPU 56 stores (stores) the acquired white balance value in an internal register or the like. In this way, in this embodiment, after obtaining white balance adjustment values for normal observation, image processing (1), and image processing (2), normal observation or image processing is performed as described in FIG. The white balance adjustment value used in the white balance adjustment circuit 38 is made appropriate in accordance with the state of.

ホワイトバランス調整が終了して、電子内視鏡2の挿入部11を体腔内に挿入してCCD30による撮像を行い、モニタ7に内視鏡画像を表示する内視鏡検査の動作を開始する。   After the white balance adjustment is completed, the insertion portion 11 of the electronic endoscope 2 is inserted into the body cavity, imaging by the CCD 30 is performed, and an endoscopic examination operation for displaying an endoscopic image on the monitor 7 is started.

そして、図17における最初のステップS121において、CPU56は、画像処理を実行しているかの判断を行う。そして、画像処理を行っていないと判断すると、CPU56は、ステップS122において通常観察用のホワイトバランス調整値を採用するように制御回路40を介してホワイトバランス調整回路38を制御する。つまり、CPU56は、そののレジスタ等に格納した通常観察用のホワイトバランス調整値の情報を制御回路40を介してホワイトバランス調整回路38に送り、ホワイトバランス調整回路38におけるR、G、B信号に対するゲインを設定する。   Then, in the first step S121 in FIG. 17, the CPU 56 determines whether image processing is being executed. If it is determined that image processing is not being performed, the CPU 56 controls the white balance adjustment circuit 38 via the control circuit 40 so as to adopt the white balance adjustment value for normal observation in step S122. That is, the CPU 56 sends information on the white balance adjustment value for normal observation stored in the register or the like to the white balance adjustment circuit 38 via the control circuit 40, and the R, G, B signals in the white balance adjustment circuit 38 are transmitted. Set the gain.

一方、ステップS121の判断において、画像処理を行っていると判断すると、CPU56は、ステップS123において絞り25の位置が範囲R1の範囲内かの判断を行う。 この場合の絞り25の位置は、ロータリエンコーダ等により検出され、制御回路40を介してCPU56は、絞り25の位置を検出する。   On the other hand, if it is determined in step S121 that image processing is being performed, the CPU 56 determines in step S123 whether the position of the diaphragm 25 is within the range R1. The position of the diaphragm 25 in this case is detected by a rotary encoder or the like, and the CPU 56 detects the position of the diaphragm 25 via the control circuit 40.

そして、CPU56は、絞り25の位置が範囲R1の範囲内であると判断した場合には、ステップS124に進み、CPU56は、ホワイトバランス調整回路38が画像処理用(1)のホワイトバランス調整値を採用するように制御する。   If the CPU 56 determines that the position of the diaphragm 25 is within the range R1, the CPU 56 proceeds to step S124, and the CPU 56 determines the white balance adjustment value for image processing (1) by the white balance adjustment circuit 38. Control to adopt.

一方、ステップS123の判断において、CPU56は、絞り25の位置が範囲R1の範囲内でないと判断した場合には、ステップS125に進み、CPU56は、絞り25の位置が範囲R2の範囲内かの判断を行う。   On the other hand, if the CPU 56 determines in step S123 that the position of the diaphragm 25 is not within the range R1, the process proceeds to step S125, and the CPU 56 determines whether the position of the diaphragm 25 is within the range R2. I do.

そして、絞り25の位置が範囲R2の範囲内であると判断した場合には、ステップS126に進み、CPU56は、ホワイトバランス調整回路38が画像処理用(2)のホワイトバランス調整値を採用するように制御する。   If it is determined that the position of the diaphragm 25 is within the range R2, the process proceeds to step S126, and the CPU 56 causes the white balance adjustment circuit 38 to adopt the white balance adjustment value for image processing (2). To control.

一方、ステップS125の判断において、絞り25の位置が範囲R2の範囲内でないと判断した場合には、ステップS127に進み、CPU56は、ホワイトバランス調整回路38が通常観察理用のホワイトバランス調整値を採用するように制御する。   On the other hand, if it is determined in step S125 that the position of the diaphragm 25 is not within the range R2, the process proceeds to step S127, and the CPU 56 determines that the white balance adjustment circuit 38 sets the white balance adjustment value for normal observation. Control to adopt.

本実施例では、このように画像処理を行っている場合には、その画像処理を行っている状態での実際の絞り位置に近い状態でのホワイトバランス調整値を用いたホワイトバランス調整状態に設定するので、精度の良い画像処理結果が得られるようになる。   In this embodiment, when image processing is performed in this way, the white balance adjustment state using the white balance adjustment value in a state close to the actual aperture position in the state where the image processing is being performed is set. Therefore, an accurate image processing result can be obtained.

本実施例においても観察では、殆ど識別しにくいが、微妙は色調の変化を減少させ、画像処理の精度を向上することができる。   Even in this embodiment, although it is almost difficult to identify by observation, subtle changes in color tone can be reduced, and the accuracy of image processing can be improved.

なお、絞り25の位置に応じて、画像処理用(1)のホワイトバランス調整値や画像処理用(2)のホワイトバランス調整値を採用する場合、実施例1で説明したようにその絞り25をその位置に変動しないよう固定するように制御すると良い。この場合には、実施例1で説明したように、画像処理中における照明光量の変動が抑制され、精度の高い画像処理結果が得られる。   When the white balance adjustment value for image processing (1) or the white balance adjustment value for image processing (2) is adopted according to the position of the diaphragm 25, the diaphragm 25 is set as described in the first embodiment. It is good to control so that it may not change to the position. In this case, as described in the first embodiment, fluctuations in the amount of illumination light during image processing are suppressed, and a highly accurate image processing result is obtained.

次に第1変形例を説明する。本変形例では、例えば図18に示すように5つの絞り位置P1〜P5において、ホワイトバランス調整値をそれぞれ取得してCPU56のレジスタやEEPROMなどの記憶手段に記憶する(勿論、図15における半開BやC等を細分化したものでも良い)。そして、これらの値を補間することにより、任意の絞り位置でのホワイトバランス調整値を算出できるようにする。   Next, a first modification will be described. In this modification, for example, as shown in FIG. 18, white balance adjustment values are respectively acquired at five aperture positions P1 to P5 and stored in a storage unit such as a register of the CPU 56 or an EEPROM (of course, half-open B in FIG. 15). Or subdivided C or the like). Then, by interpolating these values, the white balance adjustment value at an arbitrary aperture position can be calculated.

このようにすると、より精度の良い状態でのホワイトバランス状態に設定でき、より精度の良い画像処理結果の値や処理画像の表示ができる。また、本変形例によれば、簡単な処理でより精度が高い画像処理結果を得ることができる。   In this way, it is possible to set the white balance state in a more accurate state, and it is possible to display the value of the image processing result and the processed image with higher accuracy. Further, according to the present modification, it is possible to obtain an image processing result with higher accuracy by simple processing.

次に第2変形例を説明する。本変形例では、通常観察時にはAGCをONにして明るい画像で観察している場合にでも、画像処理時には関心領域7c内だけAGCをOFFにして、AGCをONしたことによるノイズ増加を防ぎ、画像処理の精度を向上するものである。   Next, a second modification will be described. In this modification, even when AGC is turned on during normal observation and a bright image is observed, during image processing, AGC is turned off only in the region of interest 7c to prevent an increase in noise caused by turning on the AGC. The accuracy of processing is improved.

この場合の動作を図19を参照して説明する。図19に示すように画像処理がスタートした場合、最初のステップS131において、CPU56は、関心領域設定回路63の設定情報により、入力される画像信号の画像が関心領域7c内のものか否かの判断を行う。 そして、画像信号の画像が関心領域7c内でないと判断した場合には、ステップS132に示すように、CPU56は、そのままの通常画像表示の状態となるように制御する(表示を変更しない)。   The operation in this case will be described with reference to FIG. When image processing is started as shown in FIG. 19, in the first step S131, the CPU 56 determines whether the image of the input image signal is within the region of interest 7c according to the setting information of the region of interest setting circuit 63. Make a decision. If it is determined that the image of the image signal is not within the region of interest 7c, as shown in step S132, the CPU 56 performs control so that the normal image display state remains unchanged (the display is not changed).

一方、ステップS131において、画像信号が関心領域7c内と判断した場合には、ステップS133に示すようにCPU56は、制御回路40を介してAGC回路36によるAGCがONにされているかの判断を行う。   On the other hand, if it is determined in step S131 that the image signal is within the region of interest 7c, the CPU 56 determines whether AGC by the AGC circuit 36 is turned on via the control circuit 40 as shown in step S133. .

そして、AGCがONにされている判断した場合には、CPU56は、ステップS134に示すように関心領域7c内の画像として画像処理されることになる画像信号に対しては、AGCをOFFに設定してステップS135の処理に進むようにする。   If it is determined that AGC is ON, the CPU 56 sets AGC OFF for the image signal to be image-processed as an image in the region of interest 7c as shown in step S134. Then, the process proceeds to step S135.

一方、ステップS133の判断において、AGCがOFFの場合には、ステップS135に進み、このステップS135においてIHb処理ブロック44において処理画像を生成することになる。そして、次のステップS136において、モニタ7には処理画像が表示されるようになる。   On the other hand, if it is determined in step S133 that AGC is OFF, the process proceeds to step S135, and a processed image is generated in the IHb processing block 44 in step S135. In the next step S136, the processed image is displayed on the monitor 7.

このように動作する本変形例によれば、関心領域7c内で画像処理する場合における画像信号に対してはAGCがOFFにされるので、ONにされている場合におけるノイズの増加を低減する或いは目立たなくすることができる。   According to this modified example that operates in this manner, AGC is turned off for an image signal when image processing is performed in the region of interest 7c, so that an increase in noise when turned on is reduced or It can be inconspicuous.

なお、図19の処理では、画像処理がONの場合には、関心領域7cにおいてAGCをOFFにするように説明したが、関心領域7cのみを含む画像全体でAGCをOFFにしてもよい。   In the process of FIG. 19, when image processing is ON, AGC is turned off in the region of interest 7c. However, AGC may be turned off for the entire image including only the region of interest 7c.

また、蛍光観察する場合、蛍光信号の信号レベルを数値化して表示するようにしても良い。   In the case of fluorescence observation, the signal level of the fluorescence signal may be digitized and displayed.

なお、上述した各実施例等を部分的に組み合わせる等して構成される実施例や制御方法等も本発明に属する。   Note that embodiments, control methods, and the like configured by partially combining the above-described embodiments and the like also belong to the present invention.

体腔内に挿入し、内視鏡観察すると共に、必要に応じて内視鏡画像領域における一部の関心領域を設定して、その関心領域内でのIHbの値を算出したり、算出レベルに応じて擬似カラー表示する等して画像処理を行う場合、照明光量が変動しないように絞り量を固定する等して、精度の高い画像処理結果が得られ、診断により有効利用できるようにした。   Insert into the body cavity and perform endoscopy, and if necessary, set a part of the region of interest in the endoscopic image region, calculate the value of IHb in the region of interest, Accordingly, when image processing is performed with pseudo color display or the like, the aperture amount is fixed so that the amount of illumination light does not fluctuate, so that a highly accurate image processing result is obtained and can be used effectively by diagnosis.

[付記]
1.前記絞り手段によって得られる画像処理用の複数のホワイトバランス調整値から、補間によって略任意の絞り位置に対するホワイトバランス調整値を得ることを特徴とする請求項3記載の内視鏡用画像処理装置。
[Appendix]
1. 4. The endoscope image processing apparatus according to claim 3, wherein a white balance adjustment value for a substantially arbitrary diaphragm position is obtained by interpolation from a plurality of white balance adjustment values for image processing obtained by the diaphragm means.

付記1の効果:簡単な処理で精度の高いホワイトバランス調整ができる。 Supplementary note 1: The white balance can be adjusted with high accuracy by simple processing.

2.前記画像処理手段は、血液情報量を算出して画像化又は数値化の少なくとも1つを行う血液情報量算出手段であることを特徴とする請求項1〜3、又は付記1記載の内視鏡装置。 2. The endoscope according to claim 1, wherein the image processing unit is a blood information amount calculating unit that calculates at least one of imaging and quantification by calculating a blood information amount. apparatus.

付記2の効果:疑似カラーの画像化において血液情報が正確に把握でき、平均値を得るような数値化では高精度の数値が得られる。 Supplementary note 2 effect: Blood information can be accurately grasped in pseudo-color imaging, and high-precision numerical values can be obtained in numerical values that obtain an average value.

3.内視鏡により被検体の体腔内を撮像して得られる画像信号を処理する内視鏡用画像処理装置において、
前記内視鏡により得られた画像信号の信号レベルに基づきこの画像信号に所定の処理を施す画像処理手段と、前記画像信号を増幅するオートゲインコントロール回路(以下AGC回路という)とを備え、前記画像処理手段による画像処理時に前記AGC回路の動作を禁止することを特徴とする内視鏡用画像処理装置。
3. In an endoscope image processing apparatus for processing an image signal obtained by imaging an inside of a body cavity of a subject with an endoscope,
Image processing means for performing predetermined processing on the image signal based on the signal level of the image signal obtained by the endoscope, and an auto gain control circuit (hereinafter referred to as AGC circuit) for amplifying the image signal, An image processing apparatus for an endoscope, wherein operation of the AGC circuit is prohibited during image processing by an image processing means.

付記3の効果:ノイズ増加を防ぎ画像処理の精度を向上できる。 Supplementary note 3 effect: Noise increase can be prevented and image processing accuracy can be improved.

4.前記内視鏡により得られた画像信号により形成される画像領域に対して前記画像処理手段が処理する関心領域を設定する関心領域設定手段を有することを特徴とする付記3記載の内視鏡用画像処理装置。 4). 4. The endoscope for an appendix according to claim 3, further comprising region of interest setting means for setting a region of interest to be processed by the image processing means for an image region formed by an image signal obtained by the endoscope. Image processing device.

付記4の効果:画像処理部以外の観察画像を適正な輝度としながら、ノイズ増加を防ぎ画像処理の精度を向上する。 Supplementary note 4 effect: While the observation image other than the image processing unit is set to an appropriate luminance, an increase in noise is prevented and image processing accuracy is improved.

5.照明光供給手段は蛍光観察するための励起光を帯域制限して供給する帯域制限手段により蛍光観察可能として、蛍光の信号量を数値化又は画像化する請求項1〜3、又は付記1記載の内視鏡装置。 5). The illumination light supply means enables the fluorescence observation by the band limiting means that supplies the excitation light for fluorescence observation with band limitation, and digitizes or images the fluorescence signal amount. Endoscopic device.

付記5の効果:高精度の蛍光情報を得られる。 Additional effect 5: high-precision fluorescence information can be obtained.

6.内視鏡により被検体の体腔内を撮像して得られる画像信号を処理する内視鏡用画像処理装置において、
前記内視鏡により得られた画像信号の信号レベルに基づき、この画像信号に所定の処理を施して、その処理結果を表示可能な処理画像又は処理結果値の少なくとも1つを得る為の画像処理手段と、
前記画像信号を得る為の可視光領域を含む照明光を供給する照明光供給手段と、
照明光量を調整する絞り手段と、
を具備し、
前記画像信号が適正となるように、前記絞り手段を介しての照明光量及び画像信号の出力レベルの少なくとも一方を制御することを特徴とする内視鏡用画像処理装置。
6). In an endoscope image processing apparatus for processing an image signal obtained by imaging an inside of a body cavity of a subject with an endoscope,
Image processing based on the signal level of the image signal obtained by the endoscope to perform predetermined processing on the image signal and obtain at least one of a processed image or a processing result value capable of displaying the processing result Means,
Illumination light supply means for supplying illumination light including a visible light region for obtaining the image signal;
A diaphragm means for adjusting the amount of illumination light,
Comprising
An endoscope image processing apparatus, wherein at least one of an illumination light amount and an output level of an image signal through the aperture means is controlled so that the image signal is appropriate.

付記6の効果:精度の高い画像処理結果が得られる。 Additional effect 6: A highly accurate image processing result can be obtained.

7.内視鏡により被検体の体腔内を撮像して得られる画像信号を処理する内視鏡用画像処理装置において、
前記内視鏡により得られた画像信号の信号レベルに基づき、この画像信号に所定の処理を施して、その処理結果を表示可能な処理画像又は処理結果値の少なくとも1つを得る為の画像処理手段と、
前記画像信号を得る為の可視光領域を含む照明光を供給する照明光供給手段と、
照明光量を調整する絞り手段と、
を具備し、
前記画像信号が適正となるように、前記絞り手段を介しての照明光量及び画像信号の出力レベルの少なくとも一方を制御すると共に、ホワイトバランス調整を行うホワイトバランス調整手段によるホワイトバランス調整状態を前記絞り手段の絞り位置に略対応する状態に設定する制御を行うことを特徴とする内視鏡用画像処理装置。
7). In an endoscope image processing apparatus for processing an image signal obtained by imaging an inside of a body cavity of a subject with an endoscope,
Image processing based on the signal level of the image signal obtained by the endoscope to perform predetermined processing on the image signal and obtain at least one of a processed image or a processing result value capable of displaying the processing result Means,
Illumination light supply means for supplying illumination light including a visible light region for obtaining the image signal;
A diaphragm means for adjusting the amount of illumination light,
Comprising
The aperture control unit controls at least one of the amount of illumination light and the output level of the image signal through the aperture unit so that the image signal is appropriate, and sets the white balance adjustment state by the white balance adjustment unit that performs white balance adjustment. An endoscope image processing apparatus that performs control to set a state substantially corresponding to a diaphragm position of the means.

付記7の効果:精度の高い画像処理結果が得られる。 Additional effect 7: A highly accurate image processing result can be obtained.

本発明の第1の実施例を備えた内視鏡装置の全体構成図。1 is an overall configuration diagram of an endoscope apparatus provided with a first embodiment of the present invention. FIG. 図1における内部構成を示すブロック図。The block diagram which shows the internal structure in FIG. 図3は回転フィルタ及び回転フィルタに設けられたRGBフィルタ等の透過特性等を示す図。FIG. 3 is a diagram showing transmission characteristics and the like of a rotation filter and an RGB filter provided in the rotation filter. メニュー画面の表示例を示す図。The figure which shows the example of a display of a menu screen. モニタ画面に表示される内視鏡画像表示領域と表示位置及びサイズを変更して可能な関心領域を示す図。The figure which shows the endoscopic image display area displayed on a monitor screen, and the region of interest possible by changing a display position and size. 内視鏡画像表示領域に設定した関心領域に処理画像を擬似カラーで表示する表示例を示す図。The figure which shows the example of a display which displays a process image in a pseudo color in the region of interest set to the endoscopic image display area. 図6とは異なる表示例を示す図。The figure which shows the example of a display different from FIG. CCDのタイプを検出して対応するマスク信号を生成する処理動作を示すフローチャ−ト図。FIG. 5 is a flowchart showing a processing operation for detecting a CCD type and generating a corresponding mask signal. 図8におけるタイプ1用マスク信号生成の処理動作を示すフローチャート図。FIG. 9 is a flowchart showing a processing operation for generating a type 1 mask signal in FIG. 8. 画像処理を行った場合に関心領域のサイズに応じて関心領域内での画像処理を行うか否かの閾値を変更する動作を示すフローチャート図。The flowchart figure which shows the operation | movement which changes the threshold value of whether to perform the image processing in a region of interest according to the size of a region of interest when image processing is performed. 原画像と画像処理した処理画像との表示を行う処理動作を示すフローチャート図。The flowchart figure which shows the processing operation which displays the original image and the processed image which image-processed. 図11における擬似カラー処理の表示の処理動作を示すフローチャート図。FIG. 12 is a flowchart showing processing operations for displaying pseudo color processing in FIG. 11. 内視鏡検査時における照明光量制御の処理動作を示すフローチャート図。The flowchart figure which shows the processing operation of the illumination light quantity control at the time of an endoscopy. 図13において、絞りによる照明光量の固定状態の下で行われる電子シャッタを用いた撮像(明るさ)制御の処理動作を示すフローチャート図。The flowchart figure which shows the processing operation of the imaging (brightness) control using the electronic shutter performed under the fixed state of the illumination light quantity by a diaphragm in FIG. 本発明の実施例2におけるホワイトバランス調整を行う絞り位置等の説明図。Explanatory drawing of the aperture position etc. which perform white balance adjustment in Example 2 of this invention. ホワイトバランス調整の処理動作を示すフローチャート図。The flowchart figure which shows the processing operation of white balance adjustment. 内視鏡検査時におけるホワイトバランス調整回路に対する制御動作を示すフローチャート図。The flowchart figure which shows the control operation | movement with respect to the white balance adjustment circuit at the time of an endoscopy. 複数の絞り位置でのホワイトバランス調整値を取得して、任意の絞り位置でのホワイトバランス調整値を補間で算出する説明図。Explanatory drawing which acquires the white balance adjustment value in a some aperture position, and calculates the white balance adjustment value in arbitrary aperture positions by interpolation. 画像処理を行っている画像領域ではAGCをOFFにする制御動作を示すフローチャート図。The flowchart figure which shows the control action which turns off AGC in the image area | region which is performing image processing.

符号の説明Explanation of symbols

1…内視鏡装置
2…電子内視鏡
3…光源部
4…映像信号処理ブロック
5…画像処理ブロック
6…ビデオプロセッサ
7…モニタ
7a…内視鏡画像表示領域
7c…関心領域
7d…無効領域
8A…モニタ画像撮影装置
8B…画像ファイリング装置
9…キーボード
10…スコープスイッチ
11…挿入部
12…操作部
13…ユニバ−サルコード
14…コネクタ
15…コネクタ受け部
16…先端部
17…湾曲部
18…可撓部
21…照明レンズ
22…対物光学系
23…ライトガイド
24…ランプ
25…絞り
25a…絞りモータ
26…モータ
27…回転フィルタ
28…RGBフィルタ
29…蛍光観察用フィルタ
30…CCD
31…移動用モータ
32…励起光カットフィルタ
39…メモリ部
40…制御回路
44…IHb処理ブロック
45…IHb処理回路部
46…無効領域検出部
47…色ズレ検出回路
51…後段画像処理回路
56…CPU
56a…照明光量制御機能
56b…電子シャッタ制御機能
57…検出回路
61…IHb算出回路
62…IHb平均値算出回路
63…関心領域設定回路
64…擬似画像生成回路
65…画像合成回路
66…面順次回路
67…輝度検出回路
68…無効領域検出回路
69…無効領域表示回路
代理人 弁理士 伊藤 進
DESCRIPTION OF SYMBOLS 1 ... Endoscope apparatus 2 ... Electronic endoscope 3 ... Light source part 4 ... Video signal processing block 5 ... Image processing block 6 ... Video processor 7 ... Monitor 7a ... Endoscopic image display area 7c ... Area of interest 7d ... Invalid area 8A ... Monitor image photographing device 8B ... Image filing device 9 ... Keyboard 10 ... Scope switch 11 ... Insertion part 12 ... Operation part 13 ... Universal cord 14 ... Connector 15 ... Connector receiving part 16 ... Tip part 17 ... Bending part 18 ... Flexible portion 21 ... illumination lens 22 ... objective optical system 23 ... light guide 24 ... lamp 25 ... stop 25a ... stop motor 26 ... motor 27 ... rotation filter 28 ... RGB filter 29 ... fluorescence observation filter 30 ... CCD
DESCRIPTION OF SYMBOLS 31 ... Motor for movement 32 ... Excitation light cut filter 39 ... Memory part 40 ... Control circuit 44 ... IHb processing block 45 ... IHb processing circuit part 46 ... Invalid area detection part 47 ... Color shift detection circuit 51 ... Later stage image processing circuit 56 ... CPU
56a ... Illumination light quantity control function 56b ... Electronic shutter control function 57 ... Detection circuit 61 ... IHb calculation circuit 62 ... IHb average value calculation circuit 63 ... Region of interest setting circuit 64 ... Pseudo image generation circuit 65 ... Image composition circuit 66 ... Frame sequential circuit 67 ... Luminance detection circuit 68 ... Invalid area detection circuit 69 ... Invalid area display circuit Agent Attorney Susumu Ito

Claims (3)

内視鏡により被検体の体腔内を撮像して得られる画像信号を処理する内視鏡用画像処理装置において、
前記内視鏡により得られた画像信号の信号レベルに基づき、この画像信号に所定の処理を施して、その処理結果を表示可能な処理画像又は処理結果値の少なくとも1つを得る為の画像処理手段と、
前記画像信号を得る為の可視光領域を含む照明光を供給する照明光供給手段と、
照明光量を調整する絞り手段と、
を具備し、
前記画像処理手段が動作状態の時に、前記絞り手段を介しての照明光量を前記画像処理手段による画像処理後の画像信号が適正となるように制御することを特徴とする内視鏡用画像処理装置。
In an endoscope image processing apparatus for processing an image signal obtained by imaging an inside of a body cavity of a subject with an endoscope,
Image processing based on the signal level of the image signal obtained by the endoscope to perform predetermined processing on the image signal and obtain at least one of a processed image or a processing result value capable of displaying the processing result Means,
Illumination light supply means for supplying illumination light including a visible light region for obtaining the image signal;
A diaphragm means for adjusting the amount of illumination light,
Comprising
Endoscopic image processing characterized in that when the image processing means is in an operating state, the amount of illumination light through the aperture means is controlled so that an image signal after image processing by the image processing means is appropriate. apparatus.
前記絞り手段は、画像処理手段が動作状態の時に、所定の位置を保ち照明光の光路に対する開口を一定にする制御を行うことを特徴とし、
前記画像信号の信号レベルを適正とする為の電子シャッタを備えることを特徴とする請求項1記載の内視鏡用画像処理装置。
The diaphragm means is characterized in that when the image processing means is in an operating state, the diaphragm means performs control to maintain a predetermined position and make the opening with respect to the optical path of the illumination light constant,
The endoscope image processing apparatus according to claim 1, further comprising an electronic shutter for making the signal level of the image signal appropriate.
ホワイトバランスの調整を行うホワイトバランス調整手段を有し、通常観察用と画像処理用のそれぞれのホワイトバランス調整値を得る為に、前記絞り手段を制御することを特徴とする請求項1又は請求項2記載の内視鏡用画像処理装置。   The white balance adjustment means for adjusting white balance is provided, and the diaphragm means is controlled to obtain respective white balance adjustment values for normal observation and image processing. The endoscope image processing apparatus according to 2.
JP2003362521A 2003-10-22 2003-10-22 Image processor for endoscope Withdrawn JP2005124755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003362521A JP2005124755A (en) 2003-10-22 2003-10-22 Image processor for endoscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003362521A JP2005124755A (en) 2003-10-22 2003-10-22 Image processor for endoscope

Publications (1)

Publication Number Publication Date
JP2005124755A true JP2005124755A (en) 2005-05-19

Family

ID=34642154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003362521A Withdrawn JP2005124755A (en) 2003-10-22 2003-10-22 Image processor for endoscope

Country Status (1)

Country Link
JP (1) JP2005124755A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007195850A (en) * 2006-01-30 2007-08-09 Fujinon Corp Electronic endoscopic apparatus
WO2010134413A1 (en) 2009-05-18 2010-11-25 オリンパスメディカルシステムズ株式会社 Endoscope device
WO2013027455A1 (en) * 2011-08-25 2013-02-28 オリンパス株式会社 Automatic exposure control device, control device, endoscope device and automatic exposure control method
JP2019191323A (en) * 2018-04-23 2019-10-31 オリンパス株式会社 Endoscope device, method for operating endoscope device, program, and recording medium
WO2020116115A1 (en) * 2018-12-04 2020-06-11 Hoya株式会社 Information processing device and model generation method
JP2020089710A (en) * 2018-12-04 2020-06-11 Hoya株式会社 Information processing device, processor for endoscope, information processing method, and program

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007195850A (en) * 2006-01-30 2007-08-09 Fujinon Corp Electronic endoscopic apparatus
WO2010134413A1 (en) 2009-05-18 2010-11-25 オリンパスメディカルシステムズ株式会社 Endoscope device
US8149274B2 (en) 2009-05-18 2012-04-03 Olympus Medical Systems Corp. Endoscope apparatus
US9462192B2 (en) 2011-08-25 2016-10-04 Olympus Corporation Automatic exposure control device, control device, endoscope device and automatic exposure control method
JP2013042998A (en) * 2011-08-25 2013-03-04 Olympus Corp Automatic exposure controller, controller, endoscope and automatic exposure control method
CN103764013A (en) * 2011-08-25 2014-04-30 奥林巴斯株式会社 Automatic exposure control device, control device, endoscope device and automatic exposure control method
WO2013027455A1 (en) * 2011-08-25 2013-02-28 オリンパス株式会社 Automatic exposure control device, control device, endoscope device and automatic exposure control method
JP2019191323A (en) * 2018-04-23 2019-10-31 オリンパス株式会社 Endoscope device, method for operating endoscope device, program, and recording medium
JP7176855B2 (en) 2018-04-23 2022-11-22 株式会社エビデント Endoscope device, method of operating endoscope device, program, and recording medium
WO2020116115A1 (en) * 2018-12-04 2020-06-11 Hoya株式会社 Information processing device and model generation method
JP2020089710A (en) * 2018-12-04 2020-06-11 Hoya株式会社 Information processing device, processor for endoscope, information processing method, and program
CN112399816A (en) * 2018-12-04 2021-02-23 Hoya株式会社 Information processing apparatus and model generation method
CN112399816B (en) * 2018-12-04 2024-01-05 Hoya株式会社 Information processing apparatus and model generation method

Similar Documents

Publication Publication Date Title
KR100707896B1 (en) Endoscope image processing apparatus
JP5326065B2 (en) Endoscope device
JP4643481B2 (en) Image processing device
JP4728450B2 (en) Imaging device
EP2926718B1 (en) Endoscope system
US8107158B2 (en) Fluorescent imaging device and fluorescent image acquiring method
JP2006271871A (en) Image processor for endoscope
KR20040069332A (en) Endoscope image processing apparatus
JP2007075198A (en) Electronic endoscope system
JP2005124756A (en) Image processor for endoscope
JP2015195845A (en) Endoscope system, operation method of endoscope system, processor device, and operation method of processor device
JP2006034415A (en) Electronic endoscope system
JP2006271870A (en) Image processor for endoscope
KR20080102317A (en) Biological observation system
JP5467971B2 (en) Electronic endoscope system, processor device for electronic endoscope system, and method for operating electronic endoscope system
JP2008086605A (en) Endoscope processor, self-fluorescence image display program, and endoscope system
JPH0690900A (en) Electronic endoscope apparatus
JP5271364B2 (en) Endoscope system
JP2005124823A (en) Endoscope system
JP4846917B2 (en) Endoscope device for fluorescence observation
JP2005124755A (en) Image processor for endoscope
JP2006346196A (en) Endoscope imaging system
JP5467970B2 (en) Electronic endoscope system
JP2006116153A (en) Image processing apparatus for endoscope and endoscope apparatus
JP2006223481A (en) Image processing apparatus for endoscope, and endoscopic apparatus

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070109