JPH0236836A - Electronic endoscope image processing device - Google Patents

Electronic endoscope image processing device

Info

Publication number
JPH0236836A
JPH0236836A JP63286383A JP28638388A JPH0236836A JP H0236836 A JPH0236836 A JP H0236836A JP 63286383 A JP63286383 A JP 63286383A JP 28638388 A JP28638388 A JP 28638388A JP H0236836 A JPH0236836 A JP H0236836A
Authority
JP
Japan
Prior art keywords
image
signal
histogram
image processing
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63286383A
Other languages
Japanese (ja)
Other versions
JP2746615B2 (en
Inventor
Masaru Konomura
優 此村
Tetsuo Nonami
徹緒 野波
Takeo Tsuruoka
建夫 鶴岡
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 Optical Co Ltd
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 Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP63286383A priority Critical patent/JP2746615B2/en
Publication of JPH0236836A publication Critical patent/JPH0236836A/en
Application granted granted Critical
Publication of JP2746615B2 publication Critical patent/JP2746615B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Instruments For Viewing The Inside Of Hollow Bodies (AREA)
  • Endoscopes (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

PURPOSE:To aim at increasing the amount of information suitable for processing an image, by separating an image into several color signals, and by providing a means of calculating a histogram for thus separated color signals and a characteristic converting means for performing a function conversion in accordance with thus calculated histogram. CONSTITUTION:In the case of image processing in an image processing device 30, required signal data are transmitted from memory sections 46G, 46R, 46B in response to control signals for controlling the timing of transmission delivered from a control signal generating section 47. The signal data transmitted to work memory 51 is subjected to a histogram creating process, a characteristic converting process for density distribution of thus obtained color signals, and the like by means of a computing and processing device 52, and resulted data are transmitted to the work memory 51. If a density gradation conversion is carried out as a histogram conversion, an amount of effective information may be obtained wavelength ranges R, B which have been effectively used conventionally.

Description

【発明の詳細な説明】 [産業上の利用分野1 本発明は画像を複数の色信号に分解し、分解した色信号
の出力レベルを独立に可変できる手段を設けた内視鏡画
像処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field 1] The present invention relates to an endoscopic image processing device equipped with means for decomposing an image into a plurality of color signals and independently varying the output level of the decomposed color signals. .

[従来の技術] 近年、細長の挿入部を体腔内に挿入することによって、
切開を必要とすることなく、体腔内の患部等を観察した
り、必要に応じ処置具を用いて治療処断のできる内視鏡
が広く用いられるJ、うに(2つ lこ 。
[Prior art] In recent years, by inserting an elongated insertion section into a body cavity,
Endoscopes are widely used to observe diseased areas within body cavities without requiring incisions, and to perform treatment using treatment tools if necessary.

上記゛内視鏡には、イメージガイドを像伝送手段に用い
た光学式の内視鏡(ファイバスコープ)の他に、最近C
OD等の固体撮像索子を用いた電子式の内視鏡(以下、
電子内視鏡又は電子スニ]−ブ)が実用化されるように
なった。
In addition to the optical endoscope (fiberscope) that uses an image guide as an image transmission means, there are also
Electronic endoscopes using solid-state imaging probes such as OD (hereinafter referred to as
Electronic endoscopes (electronic endoscopes) have come into practical use.

又、ファイバスコープの接眼部にCOD等の固体撮像索
子を用いIC1fffl像カメラを接続して−[ニタで
)Jラー表示できるようにしたちのちある。
Also, an IC1fffl image camera was connected to the eyepiece of the fiberscope using a solid-state imaging device such as a COD, so that it could be displayed on a monitor.

第19図は本出願人によって特願昭61−207432
号で提案された先行例ど殆んど同一の構成を示す。
Figure 19 is filed by the applicant in patent application No. 61-207432.
Most of the previous examples proposed in this issue have almost the same configuration.

撮FA手段を形成するC CD 1から出力される画像
15号はアンプ2に入力され、所定の範囲の電圧レベル
増幅される。その後、γ補正回路3に入りγ補正される
。RG B面順次方式の場合にtよ、γ補正された後の
信号は、)7ナログーデイジタル弯換器(Δ/D変換器
)1でディジタル品に変換されてから、切換スイッチ5
を粁てメ七り6R26G、6Bに記録される。これらメ
しり6R,6G。
Image No. 15 output from the CCD 1 forming the photographing FA means is input to the amplifier 2 and amplified to a voltage level within a predetermined range. Thereafter, the signal enters the γ correction circuit 3 and is subjected to γ correction. In the case of the RG B-side sequential method, the signal after γ correction is converted into a digital product by a)7 narrow-to-digital converter (Δ/D converter) 1, and then converted to a digital product by a selector switch 5.
It is recorded in 6R26G and 6B. These meals are 6R and 6G.

6Bに記録された画像データは、制御信号発生部7から
出力されるタイミング信号の印加によって同時に読み出
され、それぞれD/A変換器8でノノナログ量の色信号
R,G、Bに変換され、画像(」力端子9から出力され
る。しかして、この画像111力端子9から出力される
色信号R,G、B及び同期信号発生回路10から出力さ
れるシンクロ信号によって、モニタの表示画面上に被写
体の画像が表示される。
The image data recorded in 6B are simultaneously read out by applying a timing signal outputted from the control signal generator 7, and are converted into color signals R, G, and B in nonononalogram quantities by the D/A converter 8, respectively. The image 111 is output from the output terminal 9.The image 111 is displayed on the display screen of the monitor by the color signals R, G, B output from the output terminal 9 and the synchronization signal output from the synchronization signal generation circuit 10. The image of the subject is displayed.

一方、面順次方式の撮像を行う際の面順次式照明手段は
、白色ランプ11の白色光をモータ12で回転駆動され
る回転フィルタ13を通すことによって、この回転フィ
ルタ13のR,G、Bの各波長の光を透過する色透過フ
ィルタ14R,14G、14Bによって、R,G、[−
3の照明光にしてライトガイド15に照射する。しかし
工、このライトガイド15の他端から、被写体に向り−
IJR。
On the other hand, the frame-sequential illumination means when performing frame-sequential imaging uses the R, G, and B R, G, [-
3 and irradiates the light guide 15 with the illumination light. However, from the other end of this light guide 15, towards the subject -
I.J.R.

G、Bの波長の光で順次照明し、この照明のもとてCC
DIの撮像面に被写体像が結ばれる。
Sequentially illuminated with light of wavelengths G and B, and under this illumination CC
A subject image is formed on the imaging surface of the DI.

上記先行例では、入出力狛竹がR,G、B全ての信号に
対してlr、I−である。このような系が内視鏡画像の
再現性に対し、どのような影響を1)えるかを第20図
を参照して以下に説明覆る。
In the preceding example, the input and output pins are lr and I- for all R, G, and B signals. What kind of influence such a system has on the reproducibility of endoscopic images will be explained below with reference to FIG. 20.

第20図(八)は被97体の飾石レベルの分布を示す。Figure 20 (8) shows the distribution of the ornamental stone levels of the 97 subjects.

一般に、内視鏡におIジる被写体の輝度レベルは鼻成分
によるしのが多く、青成分によるものが少い。
In general, the brightness level of a subject viewed through an endoscope is mostly due to the nasal component and less due to the blue component.

第20図CB)は同図(八)に示した範囲の輝度レベル
に対するディジタル変換後の出力値のヒス1〜グラムを
R,G、B別に示づ−ものである。入力時の特性が被写
体の平均的輝度レベルに1jルづいC決められている為
、被写体の輝度レベルの偏りがそのまま出力される。
FIG. 20 CB) shows the histograms of output values after digital conversion for R, G, and B for the luminance level range shown in FIG. 20 (8). Since the characteristics at the time of input are determined by C based on the average brightness level of the subject, the bias in the brightness level of the subject is output as is.

これから明らかなように、G (g号は正規分イIJ的
に出力される。しかしながら、1又信号は高レベルに偏
り飽和しゃ導くなる。一方、B信号は低レベルに偏りノ
イズに埋れやすい。
As is clear from this, the G (g signal is outputted in a normal manner).However, the primary signal is biased towards a high level and leads to saturation.On the other hand, the B signal is biased towards a low level and is easily buried in noise.

[発明が解決しようとりる問題点] 第20図から明らか<r J:うに、先行例では入力時
の特性が被写体の平均的輝瓜レベルに適合させている。
[Problems to be Solved by the Invention] It is clear from FIG. 20 that <r J: In the prior example, the characteristics at the time of input are adapted to the average brightness level of the subject.

このため、R43号は高レベルに偏り、1]信号は低レ
ベルに偏るという欠点がある。この様な欠点は、画像が
持つ有効な情報量を減少させ−(しまう。また、R信号
が高レベルに偏るため微小レベルの信号をマスクし、そ
の識別を内勤にさせてしまう等の問題も生じる。
Therefore, there is a drawback that the R43 signal is biased toward a high level, and the 1] signal biased toward a low level. These drawbacks reduce the amount of effective information contained in the image.Also, since the R signal is biased towards high levels, there are problems such as masking minute level signals and making their identification an in-house job. arise.

本発明は上)ホした点にか/Vがみてなされたもの゛(
′、有効に利用しにくかった波長域からし有効な情報量
を得ることのできる内視鏡画像処理装置を提供づること
を目的と覆る。
The present invention was made in view of the points mentioned above.
The purpose of this invention is to provide an endoscopic image processing device that can obtain an effective amount of information from a wavelength range that has been difficult to utilize effectively.

[問題点を解決する手段及び作用] 本発明では内視鏡画像を複数の色信号に分解し、分解し
た各色信号に対し、そのヒストグラムをい出ザる手段と
、各色信号に対して算出されたヒストグラムに基づき、
関数変換りる特性変換手段とを設りることににす、画像
処理に適した情報量を容易に得たり、S/Nの良好な画
像処理を行うことがて゛きる。
[Means and effects for solving the problem] The present invention includes a means for decomposing an endoscopic image into a plurality of color signals, a means for extracting a histogram for each of the decomposed color signals, and a means for calculating a histogram for each color signal. Based on the histogram,
By providing a characteristic conversion means that performs function conversion, it is possible to easily obtain an amount of information suitable for image processing and to perform image processing with a good S/N ratio.

[実施例] 以下、図面を参照して本発明を具体的に説明Jる。[Example] Hereinafter, the present invention will be specifically explained with reference to the drawings.

第1図ないし第8図は本発明の第1実施例に係り、第1
図は第1実施例の内視鏡画像処理装置の構成図、第2図
は第1実施例の全体的構成図、第3図(,1ヒスドグシ
ム袷(出の〕1」−チャー1〜図、第4図は算出された
ヒストグラムの1例を示す特性図、第5図は線用された
ヒス1ヘゲラムから温度変換を行って得られる画像のヒ
ストグラムを示づ特性図、第6図は任意の2点の濃度レ
ベルに対し−(m度変換を行って得られる画像のヒスト
グラムを示t 特性図、第7図は平坦化の特性変換を行
う)1]−チャー1〜図、第8図は第7図の処理によつ
C得られる画像のヒストグラムを示す特性図である。
FIGS. 1 to 8 relate to the first embodiment of the present invention.
The figure is a block diagram of the endoscopic image processing device of the first embodiment, Figure 2 is the overall block diagram of the first embodiment, and Figure 3 is a block diagram of the endoscopic image processing device of the first embodiment. , Fig. 4 is a characteristic diagram showing an example of a calculated histogram, Fig. 5 is a characteristic diagram showing a histogram of an image obtained by temperature conversion from the linear His 1 Hegerum, and Fig. 6 is an arbitrary histogram. For the density levels of the two points -(t characteristic diagram, Figure 7 shows the histogram of the image obtained by performing m degree conversion, flattening characteristic conversion is performed) 1] - Char 1 to Figure 8, Figure 8 7 is a characteristic diagram showing a histogram of an image obtained by the processing of FIG. 7. FIG.

第2図に示すように第1実施例の(内視鏡)画像処理装
置821は、牛体22の体腔内に細長の挿入部23が挿
入される電子内視鏡24と、この電子内視鏡24の]−
ニバーザルコード25のコネクタ25Aが接続され、映
像信号処理する機能を有する観察装置26と、この観察
装置26と接続され、映像信号をカラー表示刀るカラー
モニタ27と、前記コネクタ25△から分岐されIc吸
引クりル28を介して電子内視鏡2/Iど接続される吸
引器29と、前記観察装置26と接続され、R9G、B
色信号からヒストグラムを生成すると共に、各色信号に
対し、111度のIIPi調特性の変換とか調整を行う
画像処理装fffi 30とから構成される。
As shown in FIG. 2, the (endoscope) image processing device 821 of the first embodiment includes an electronic endoscope 24 into which an elongated insertion section 23 is inserted into the body cavity of a cow body 22, and mirror 24]-
An observation device 26 to which the connector 25A of the universal cord 25 is connected has a function of processing video signals, a color monitor 27 connected to this observation device 26 and capable of displaying video signals in color, and a branch from the connector 25△. A suction device 29 is connected to the electronic endoscope 2/I via the Ic suction coil 28, and the observation device 26 is connected to the R9G, B
It is comprised of an image processing device fffi 30 that generates a histogram from the color signals and performs conversion and adjustment of 111 degree IIPi tone characteristics for each color signal.

上記電子内視@24は、第1図に示Jように組長の挿入
部23内に照明光を伝送Jるライトガイド31が挿通さ
れており、挿入部23内を挿通されたライトガイド31
の後端側はさらに第2図に示Jユニバーザルコード25
内を挿通される。しかして、コネクタ25Δを観察装■
26に接続りることによっ又光源部32から照明光が供
給される。
As shown in FIG. 1, in the electronic endoscopy @24, a light guide 31 that transmits illumination light is inserted into the insertion portion 23 of the set head, and the light guide 31 inserted through the insertion portion 23
The rear end side is further marked with J universal code 25 as shown in Figure 2.
It is penetrated inside. Therefore, the connector 25Δ is observed with an observation device.
26, illumination light is also supplied from the light source section 32.

つまり、光源部32は、白色ランプ33の白色照明光を
モータ34で回転駆動される回転−フィルタ35を経て
ライトガイド31の入射端に照射覆る。この回転フィル
タ35には赤1緑、青の各波長の光を透過するフィルタ
35R,35G、35Bが設(プであるので、この回転
フィルタ35を通りことによって、ライ1ヘガイト31
の入射端には赤、緑、青の各波長の光(即らR,G、B
の照明光が順次供給される。しかして、このライI・ガ
イド31にJ:つ℃他端側に伝送し、他端(出(ト)g
l)から生体22内の患部等の被写体に向りてR,G。
That is, the light source unit 32 irradiates the white illumination light from the white lamp 33 onto the incident end of the light guide 31 through the rotary filter 35 that is rotationally driven by the motor 34 . This rotary filter 35 is equipped with filters 35R, 35G, and 35B that transmit light of each wavelength of red, green, and blue.
At the input end of the
illumination light is sequentially supplied. Therefore, this lie I guide 31 is transmitted to the other end side, and the other end (output)
R and G toward a subject such as an affected area within the living body 22 from l).

Bの照明光を出1する。R,G、Bの光で照明された被
写体は挿入部23の先端部内に配設した対物レンズ37
によって、この対物レンズ37の焦点面に配設したCC
D38の1最像面に像が結ばれる。このC0D38はド
ライバ39の駆動信号の印加によって、光電変換した電
気信号を出ノJする。
Emit the illumination light B. The object illuminated with R, G, and B light is captured by an objective lens 37 disposed within the distal end of the insertion section 23.
Accordingly, the CC disposed on the focal plane of the objective lens 37
An image is formed on the first most image plane of D38. The C0D 38 outputs a photoelectrically converted electrical signal by applying a drive signal from the driver 39.

このCCD 38から出力される画像信号は、アンプ4
1に入ツノされ、所定の範囲の電気信号(例えば0〜1
ボルト)に増幅された後、信号ケーブル42を経(観察
装置2G内の信号処理部13を形成づるA/D変換器4
4に入)Jされる。このA/D変換器44ににっで、吊
子化されたディジタル信号に変換され、切換スイッチ4
5を経てメモリ部716に入力される。
The image signal output from this CCD 38 is transmitted to the amplifier 4
1, and an electrical signal in a predetermined range (for example, 0 to 1)
After being amplified to volts), the A/D converter 4, which forms the signal processing section 13 in the observation device 2G, passes through the signal cable 42.
4) J is received. This A/D converter 44 converts the signal into a hanged digital signal, which is then sent to the selector switch 4.
5 and is input to the memory unit 716.

上記切換スイッチ45は、回転フィルタ35の色透過フ
ィルタ35R,35G、35Bの数と等しい数の切換接
点(つまり3接点)を右し、制御信号発生部47の切換
信号にJ二つて順次接点が切換えられる。これら各接点
はメモリ部46を形成する3つのメモリ46R,46G
、46Bと順次接続され、オンされた接点を経(メモリ
46R146G、46Bにディジタル信号が記録される
The changeover switch 45 has a number of changeover contacts equal to the number of color transmission filters 35R, 35G, and 35B of the rotary filter 35 (that is, three contacts), and the two contacts are successively activated in response to a changeover signal from the control signal generator 47. Can be switched. Each of these contacts connects three memories 46R and 46G forming the memory section 46.
, 46B, and the digital signals are recorded in the memories 46R146G and 46B through the turned-on contacts.

上記メモリ4.6 R、4,6G 、  4.68 V
よ画像処理装置30と接続されている。この画像処理装
置30は、作業用メモリ51、演算処理装置52、補助
記憶装置53、外部出力装置54と、アナログスイッチ
50とから構成され、これらはメモリ46R,46G、
46Bと接続されている。
Above memory 4.6R, 4.6G, 4.68V
It is connected to the image processing device 30. This image processing device 30 is composed of a working memory 51, an arithmetic processing device 52, an auxiliary storage device 53, an external output device 54, and an analog switch 50, which are memories 46R, 46G,
46B.

上記作業用メモリ51は両像処理装置30にて画像処理
を行う場合には、制御信号発生部47からの転送タイミ
ングを制mする制御信号により、メモリ46R,46G
、46Bから必要とされる信号データが転送される。こ
の作業メモリ51に転送された信号データは演算処坤装
貿52により、ヒストグラムの生成の処理とか、得られ
た色信号データにおりる濃度分布の特性変換処理等を行
い、その結果を作業用メ−しり51に転送Jる。また、
特性変換処理がされた信号データは必要に応じ、補助記
憶装置53に保存することができるし、ヒス1〜グラム
等をブリンク等の外部出力装置5/Iにてプリントアウ
トすることもできる。
When performing image processing in both image processing devices 30, the working memory 51 is connected to the memories 46R and 46G by a control signal that controls the transfer timing from the control signal generator 47.
, 46B, the required signal data is transferred. The signal data transferred to the working memory 51 is processed by the processing unit 52 to generate a histogram, convert the characteristics of the density distribution in the obtained color signal data, etc., and use the results for working purposes. Forward to email address 51. Also,
The signal data subjected to characteristic conversion processing can be stored in the auxiliary storage device 53 as required, and the Hiss 1 to Grams etc. can also be printed out using an external output device 5/I such as Blink.

又、上記画像処理を行わない場合には、アナ[1グスイ
ツヂ50をオンして、メ七り46R,46G/1.6B
に記憶された信号データを1〕/Aコンバータ55a、
55b、55cに同時に出ノJする。
In addition, if you do not want to perform the above image processing, turn on Analyzer 46R, 46G/1.6B.
The signal data stored in 1]/A converter 55a,
Appear to 55b and 55c at the same time.

各D / A mlンバータ55a、55b、55cに
て変換されたアブログ色信号は、さらにガンマ補正回路
56a、56b、55cにてγ補正され、出力端57か
らモニタ27側に出力され、カラー表示される。
The ablog color signals converted by each D/A ml inverter 55a, 55b, 55c are further γ-corrected by gamma correction circuits 56a, 56b, 55c, and output from the output terminal 57 to the monitor 27 side, where they are displayed in color. Ru.

また、制御信号発生部47は、同期信号発生回路58に
タイミング信号を出ツノし、この同期信号発生回路58
からS Y N C信号を出力ざlる。
Further, the control signal generating section 47 outputs a timing signal to the synchronizing signal generating circuit 58.
The SYNC signal is output from the SYNC signal.

上記制御信号発生部47は、回転ノイルタ35を回転す
るモータ3/Iの回転を制御する信シ]も111力する
。また、この制御信号発生部47は、アブ1」グスイッ
チ50のオン、オフを制御Jるど共に、演算処理装置5
2にタイミング信号を送ると」(に、演算処理装置52
から11制御信号発生部47に信号を送ることができる
ようにしてあり、効率良クツ゛−タの転送零を行えるに
うにしている。
The control signal generator 47 also outputs a signal for controlling the rotation of the motor 3/I that rotates the rotary noiler 35. Further, this control signal generating section 47 controls the on/off of the ab-1'g switch 50, and also controls the arithmetic processing unit 5.
2, the arithmetic processing unit 52
11 to the control signal generating section 47, so that efficient data transfer and zero can be carried out.

このように構成された第1実施例の動作を以下に、31
明する。
The operation of the first embodiment configured in this way is described below in 31.
I will clarify.

第1図に示すように、CCl’) 38からの画像信号
は、アンプ/1.1にJ:り所定の範囲の電圧、例えば
Oボルトから1ポル1〜までの電圧に増幅される1゜こ
の画像信号はA/D変換器/l71Iににす、ある量子
化レベル(例えば8ビツト)でディジタル化される。こ
のディジタル信号は、切換えスイッチ45を経由して制
御信号発生部47からの制御信号に基づき、CCD38
で撮像された画像信号が赤(R)照明のもとである場合
にはR信号用メ[す46Rに、緑(G)照明のもとであ
る場合にはG信号用メモリ46Gに、青(B)照明のも
どであ1す る場合にはB信号用メモリ46Bに記憶される。
As shown in FIG. 1, the image signal from CCl') 38 is amplified by an amplifier/1.1 to a voltage in a predetermined range, e.g. This image signal is digitized by an A/D converter/171I at a certain quantization level (for example, 8 bits). This digital signal is transmitted to the CCD 38 based on the control signal from the control signal generator 47 via the changeover switch 45.
When the image signal imaged is under red (R) illumination, it is stored in the R signal memory 46R, and when it is under green (G) illumination, it is stored in the G signal memory 46G. (B) When the signal is 1 due to illumination, it is stored in the B signal memory 46B.

各メモリ=1.6R,/1.6G、46Bは人出力が独
立しており、大力と出力をそれぞれ独白のタイミングで
行うことができる。
Each memory = 1.6R, /1.6G, 46B has independent human output, and the power and output can be performed at the timing of each monologue.

上記各メモリ46R,46G、 46Bに記憶された画
像信号データは、画像処理装置30に入力される。この
場合、画像処理を行わないモードである場合(例えば、
選択スイッチぞの他で選択【″きる。)には、画像処理
装@30は制御仁弓発41部47に対し、画像処理を行
わない状態であることを表ねJ信号を送り、この信号に
基づきアナログスイッチ50はAンにされ、メモリ46
R,46に記憶された画像信号データは同1hにD/A
変換器55a、55b、55cに入力され、アノ1色信
号信月に変換される。その際、γ補正回路56a、56
b、56cにて所定のγ特性を右する色信号R,G、B
に変換され、同期信号光生回路58の5YNC信号と共
に用内端57からの[ニタ27に出力され、このモニタ
27にて)jラー表示される。
The image signal data stored in each of the memories 46R, 46G, and 46B is input to the image processing device 30. In this case, if the mode does not perform image processing (for example,
When the selection switch is selected (“turn off”), the image processing device @ 30 sends a J signal to the control unit 41 section 47 to indicate that it is not in a state where image processing is to be performed, and this signal Based on this, the analog switch 50 is turned to A, and the memory 46
The image signal data stored in R, 46 is D/A in the same 1h.
The signals are input to converters 55a, 55b, and 55c, and converted into a single color signal Shingetsu. At that time, the γ correction circuits 56a, 56
Color signals R, G, B that have a predetermined γ characteristic at b, 56c
and is outputted to the monitor 27 and displayed on the monitor 27 along with the 5YNC signal of the synchronization signal light generation circuit 58.

一方、上記画像処理装置30が画像処理し−ドに設定さ
れると、第3図に示Jヒストグラムの生成処理を行う。
On the other hand, when the image processing device 30 is set to the image processing mode, it performs the process of generating the J histogram shown in FIG.

この第3図を参照してヒストグラムの算出のプロセスを
説明する。
The process of calculating a histogram will be explained with reference to FIG.

第3図においてヒストグラムの算出を説明覆る。The calculation of the histogram will be explained in FIG.

いま、画像を2次元前列1mage(Xsize 、Y
  s′1e)で表わすと、X  5izeはX方向の
画像リーイズを、y  5izeはY方向の画像サイズ
を意味1−る。
Now, convert the image into a two-dimensional front row 1mage (Xsize, Y
s'1e), X5ize means the image size in the X direction, and y5ize means the image size in the Y direction.

また、ヒス1〜グラムを1次元前列11ist(Lev
el)で表わすとLevc l は濃度レベル数(例え
ば、1]子化レベルが8ビツトならばO〜255までの
256段階)を意味する。
In addition, Hiss 1 to Gram is one-dimensional front row 11ist (Lev
When expressed as el), Levcl means the number of density levels (for example, 1] If the childization level is 8 bits, 256 levels from O to 255).

まず、処理すべぎ画像1mage(×5ize、 Y 
 5ze)を作業用メモリ51に転送し、徐出した場合
のヒス1ヘゲラムを保存するためのメモリ内容(例えば
作業用メモリ51内に設けてあり、このメしり内容をt
l i st (Leve l )で表わす)を初期化
(Oを代入)する。また、X方向の位置を承り変数とし
て、Xを、Y方向の位置を示づ変数とし1yを、画像の
濃度レベルを表わづ変数としてρを用意し、各々を初期
化(Oを代入)する3゜ しかして、次に以下の処理を行う。
First, process the image 1mage (×5ize, Y
5ze) is transferred to the working memory 51, and the memory contents (for example, provided in the working memory 51, for storing His 1 hegerum when gradually released) are transferred to the working memory 51.
l i st (represented by Level )) is initialized (assigned to O). In addition, prepare X as a variable that indicates the position in the X direction, 1y as a variable that indicates the position in the Y direction, and ρ as a variable that indicates the density level of the image, and initialize each (substitute O). 3° Then, perform the following processing.

(1)yを1カウントアッ−プづる。(1) Increment y by 1 count.

(2)Xを初期化(Oを代入)′?I−る。(2) Initialize X (substitute O)'? I-ru.

(3)xを1カウントアツプづる。(3) Increase x by 1 count.

(4)、Qにxとyr示される位1べの画像1mage
(X 。
(4), 1 image of 1 page indicated by x and yr in Q
(X.

y)の淵庶レベルを代入りる。Substitute the fuchisho level of y).

(5) Mist (、Q )を1カウン]〜アツプす
る。
(5) Upload Mist (, Q) by 1 count].

(6) x < X  5izeならば(3)へ戻り、
他の場合には(7)に移る。
(6) If x < X 5ize, return to (3),
In other cases, proceed to (7).

(7) y<Y  5ileならば(1)へ戻り、仙の
場合には終了である。
(7) If y<Y 5ile, return to (1), and if it is Sen, the process ends.

上記(1)から(7)の過程を通して、1次元前列11
istにヒストグラムが作成される3、第4図は、この
様にして1uられたヒストグラムの1例を表ねタムので
ある。横軸は濃度レベル(本実施例ではO・〜255)
を、縦軸は頻度を表わMo 次に上記のプロセスで生成されたヒストグラム′14 から、ヒストグラム変換として、例えば1li11反階
謳変換の処理について第5図を参照して説明づ−る。
Through the processes (1) to (7) above, the one-dimensional front row 11
A histogram is created on ist. Figures 3 and 4 show an example of a histogram created in this way. The horizontal axis is the concentration level (O・~255 in this example)
, and the vertical axis represents the frequency. Next, referring to FIG. 5, we will explain the histogram conversion, for example, 1li11 anti-synthesis conversion processing from the histogram '14 generated in the above process.

上記(1)から(7)の過程を、メモリ46R,4(3
G、/16Bの信号データに対しく行うと、第5図(a
)、 (b)、 (c)のようなヒストグラムが得られ
る13これらのヒストダラムは、通常の内視鏡画像に対
するものであり、これら(a)、 (b)、 (c)か
ら分るように、王のヒストグラムは詐されたm度しベル
数(量子化レベルを8ピッ1−とするとO〜255)の
一部しか分イロしていない。口の様な画像は、−1ント
ラストが低く、判別が困難である。いま吊子化レベルを
8ビツト、ヒス1ヘゲラムにおIJる最大!li度レベ
ルをρmaXで、最小Wi度レベルを9m i nで、
イれぞれ表わすと共に、原画像をImage(x 。
The processes (1) to (7) above are carried out in the memories 46R, 4 (3).
When applied to the signal data of G and /16B, the result is as shown in Fig.
), (b), and (c).13 These histograms are for normal endoscopic images, and as can be seen from these (a), (b), and (c), , King's histogram is only a part of the falsified m degree bell number (O ~ 255 if the quantization level is 8 pi 1-). An image like a mouth has a low -1 contrast and is difficult to distinguish. The current level of hanging is 8 bits, and IJ is the maximum of Hiss 1 Hegelam! The li degree level is ρmaX, the minimum wi degree level is 9min,
At the same time, the original image is displayed as Image(x.

y)で表わづ。濃度階調変換Fを行った後の画像Ima
ge’ (x 、 y )は次式で11ノられる。
It is expressed as y). Image Ima after performing density gradation conversion F
ge' (x, y) is calculated by the following equation.

Image’ (x 、 y ) −255(Imag
e(x 、 y ) −、Om1n)/ (、Q ma
x −、Q m1n)・(1)ここで、   1≦X≦
X  s+ze1≦y≦Y  5IZe である。
Image' (x, y) -255(Imag
e(x,y)−,Om1n)/(,Qma
x −, Q m1n)・(1) Here, 1≦X≦
X s+ze1≦y≦Y 5IZe.

これにより通常の狭い濃度レベル範囲[ρmin、fl
 maxlにある第5図(a)、 (b)、 (c)の
画像1ma(le(x、y)は、それぞれ同図(a’ 
)、 (b’ )、 (C“)のようにぞの淵瓜レベル
範囲[、G min、j maxlは拡張と平行移動が
なされ、全濃度レベル[0,255]に分布するように
なり、コントラストの強調が行われる。また、従来有効
に利用されていなかった波長域(R,B)から、有効な
情報量を得る事が出来る。
This allows the normal narrow concentration level range [ρmin, fl
The images 1ma (le (x, y) in Fig. 5 (a), (b), and (c) in maxl are respectively (a'
), (b'), (C"), the level range [, G min, j maxl is expanded and translated, so that it is distributed over the entire concentration level [0, 255], Contrast is emphasized.Furthermore, an effective amount of information can be obtained from wavelength ranges (R, B) that have not been effectively utilized in the past.

第6図は上記淵磨レベル範囲[ρmin、、fl ma
xlの代りに、任意の2点β1.ρ2を指定しで、その
指定された濃度レベル範囲[、G+、j21内に対しで
(1)式の濃度階調変換を行ったもの″(″ある。
Figure 6 shows the Fuchima level range [ρmin,, fl ma
Instead of xl, any two points β1. ρ2 is specified, and the density gradation conversion of equation (1) is performed within the specified density level range [, G+, j21''('').

次に、上記第1実施例の装置を用いてヒストグラムの平
坦化の処理を行うことを説明り−る。これは、全ての濶
庶においてヒストグラムの高さが同一となるように変換
するものである。いま吊子化レベルを8ピツトずとると
、一つの濃度値が持つべぎ画素数Dotは次式で得られ
る。
Next, a description will be given of how the histogram flattening process is performed using the apparatus of the first embodiment. This conversion is performed so that the height of the histogram becomes the same in all peaks. Now, if we subtract 8 pixels from the hanging level, the number of pixels Dot that one density value has can be obtained by the following equation.

Dot −(X  5izex y  5ize) /
 256 =−(2)またヒス(−グラムにおける累積
密度関数CD(i) 。
Dot - (X 5ize x y 5ize) /
256 =-(2) Also the cumulative density function CD(i) in His(-grams.

O≦i≦255は次式′C得られる。For O≦i≦255, the following formula 'C is obtained.

上記平坦化の処理を行うために第7図のフローチャート
に示すプロセスを行う。
In order to perform the above flattening process, the process shown in the flowchart of FIG. 7 is performed.

処理すべき画像1mege(X  5ize、 Y  
5ize)を作業用メモリに転送し、弯換処]!I!後
の画像1 m a jJ (i(X  5ize、 Y
  5ize)を保存するメモリを初期化する。また、
第5図(a)、 (b)、 (c)に示した様に、画像
のヒストグラムtよl1iSt(1−evel)に存在
づるものとする。さらに、×力面の位置を承り一変数と
してXを、Y方向の位置を示す変数としてyを、作業用
の変数どじてi 1.i2.j 1.j2を用意じ、各
々を初期化づ−る。
Image to be processed 1meg (X 5ize, Y
5ize) to the working memory and convert it]! I! Later image 1 m a jJ (i(X 5ize, Y
5ize). Also,
As shown in FIGS. 5(a), 5(b), and 5(c), it is assumed that the histogram t of the image exists in l1iSt(1-evel). Furthermore, X is a variable representing the position of the force plane, y is a variable indicating the position in the Y direction, and a working variable is i 1. i2. j 1. Prepare j2 and initialize each.

次に、以下の(1)〜(7)のスブツブの処理を行う。Next, the following sub-processes (1) to (7) are performed.

(1)i2を1カウントアンプ覆る。(1) Cover i2 with 1 count amplifier.

2>255ならば(7)l\、12≦255なら(3)
へ移る。
If 2>255 then (7)l\, if 12≦255 then (3)
Move to.

(3)新しいm匪しベルを幹出し、j21\代入する。(3) Take out a new m-pricing bell and substitute j21\.

(4) 、j2− j 1 <1ならば(1)l\戻り
、その他の場合には(5)に移る。
(4) If , j2- j 1 <1, return to (1) l\; otherwise, proceed to (5).

1≦Ima(le(X 、 V ) < i 2なるず
べてのXとyについでImage’ (x 、 y >
にj2−1を代入する。
1≦Ima(le(X, V) < i 2 For all X and y, Image' (x, y >
Substitute j2-1 into .

1に12を、jlにj2を代入し、(1)へ戻る。Substitute 12 for 1 and j2 for jl, and return to (1).

1≦+maOc(x 、 V ) < l 2なるJ゛
べてのXとyについてl1lla(le’ (X 、 
V )にJ2−1を代入する。
1≦+maOc(x, V) < l2 for all X and y, l1lla(le' (X,
Substitute J2-1 for V).

上記の(1)から(7)の過程を通して、Image(
X  5ize、 Y  5ize)にヒストダラムの
平坦化がなされた画像が作成される。これしこより、第
8図に示すJ:うに、(a)、 (b)’、 (c)に
示勺ヒストグラムの各画像1mage(x 、 y)は
、同図(a’)、(b’)(C′)に示すように平坦化
された画像Image’ (x 。
Through the steps (1) to (7) above, Image (
An image is created in which the histodarum is flattened (X 5ize, Y 5ize). From this, each image (x, y) of the histogram shown in Figure 8, (a), (b)', and (c), is shown in Figure 8 (a'), (b'). ) (C'), the flattened image Image' (x.

y)に変換される。y).

1ε) 即ち、8m分布が蜜な部分(ヒス1−グラム中の山部)
は拡張され、濃痕分布が疎な部分(ヒストグラム中の谷
部)は圧縮される。蜜な部分は疎な部分に比較して画素
数が多いため、画像全体どしては拡張される画素数が多
くなり、コントラス1への強調が行われる。
1ε) In other words, the part where the 8m distribution is dense (the mountain part in His 1-gram)
is expanded, and areas where the density distribution is sparse (troughs in the histogram) are compressed. Since the dense portion has a larger number of pixels than the sparse portion, the number of pixels expanded for the entire image increases, and the contrast is emphasized to 1.

なお本願実施例では、出力信号レベルを色信号毎に変化
させている為、ノJラーバランスが随1れる事になる。
In the embodiment of the present application, since the output signal level is changed for each color signal, the color balance is the best.

画像処理を行うには最適であるが、そのままモニタに出
力し゛(し自然色となら<’にい。このため、画像処理
装置30は通常外auす゛、必要時のみ制御信号発生部
47からの制御のもとに作動する。これにより、通常は
従来例と同様にモニタ上に自然色として表示Jる事ら可
能である。
Although it is optimal for performing image processing, it is difficult to output it to the monitor as it is (but it is difficult to output it in natural colors. Therefore, the image processing device 30 normally uses AU, and only when necessary does it output the control signal from the control signal generator 47. As a result, it is normally possible to display natural colors on the monitor as in the conventional example.

また、変換処理をした画像は補助記憶装置53に保存す
る事も出来るし、ヒストグラムをプリンター等の外部出
力装置54に出力することも可能である。
Further, the converted image can be stored in the auxiliary storage device 53, and the histogram can be output to an external output device 54 such as a printer.

本願実施例では、RGB信号を用いた面順次式電子内視
鏡に関して述べたが、」ンボジットビデオ信号をアコー
ドする単板式電子内視鏡についても同様に適用すること
が出来る。
In the embodiment of the present application, a frame-sequential electronic endoscope using RGB signals has been described, but the present invention can be similarly applied to a single-panel electronic endoscope that encodes a digital video signal.

第9図は本発明の第2実施例における主要部を小ず。FIG. 9 shows the main parts of the second embodiment of the present invention.

この第2実施例では、上記第1図に示寸第1実施例にお
いて、新たに設りたスイッチ71の操作により、このス
イッチ71のオン信号を例えば制御信号発生部47は検
出し、光源部32の照明光量を変化する制御を行うよう
にしている。
In this second embodiment, when a newly installed switch 71 is operated in the first embodiment shown in FIG. Control is performed to change the amount of illumination light of 32.

即ら、通常の照明光量での照明を行った後、制御信号発
生部47は、照明光量を小さくする制御命令を絞り制御
回路72に出力し、絞り羽根73及びこの絞り羽根73
を回動させる絞りモータ71とからなる絞り装置75の
絞り量を大ぎくする。
That is, after performing illumination with the normal amount of illumination light, the control signal generation unit 47 outputs a control command to reduce the amount of illumination light to the aperture control circuit 72, and the aperture blades 73 and the aperture blades 73
The aperture amount of the aperture device 75 consisting of the aperture motor 71 that rotates the aperture motor 71 is increased.

この状態で、1フレ一ム分の撮像を行うと、次に制御信
号発生部47は照明光量を大ぎく覆る制御命令を絞り制
御回路72に出力し、絞り羽根73の遮光量を小さ゛く
して、大きな照明光量のもとて撮像を行う。尚、照明光
量が異る状態で撮像した信号は、作業用メモリ51に転
送され、画像処理が行われる。
When one frame worth of image is captured in this state, the control signal generating section 47 then outputs a control command to the diaphragm control circuit 72 to greatly overshadow the amount of illumination light, thereby reducing the amount of light shielded by the diaphragm blades 73. Then, images are taken under a large amount of illumination light. Note that signals captured under different amounts of illumination light are transferred to the working memory 51 and subjected to image processing.

上記通常の照明光量での@像は第1実施例と同様になる
。つまり、R,G、B色信号の分布は第10図(a)の
ようになる。
The @ image under the normal illumination light amount is the same as in the first embodiment. In other words, the distribution of R, G, and B color signals is as shown in FIG. 10(a).

一方、照明光量を小さくした場合には、赤の照明光のも
とで撮像した画像のヒストグラムは、正規分イ5に近い
特性になり、第10図(b)のようになる。
On the other hand, when the amount of illumination light is reduced, the histogram of an image captured under red illumination light has a characteristic close to that of normal A5, as shown in FIG. 10(b).

さらに照明光量を大きくした場合には、第10図(C)
のにうに青のヒストグラムが正規分布に近いものに’e
cる。従って、通常の画像の場合では欠如していた部分
の情報量を得ることができる。
When the amount of illumination light is further increased, Fig. 10 (C)
The blue histogram is close to a normal distribution.
Cru. Therefore, the amount of information that is missing in a normal image can be obtained.

次に、内視鏡による今までの色調を維持しつつ、ヒスト
グラム変換による効果を右する第3実施例を以下に説明
する。
Next, a third embodiment will be described in which the effect of histogram conversion is improved while maintaining the color tone obtained by the endoscope.

この第3実施例の構成は、第1図及び第2図に示す第1
実施例と同様である。この実施例は画像処理装置30の
画像処理モードでの画像処理の方法が箕り、第11図に
示1ノl:1−により第12図(a) 、 (b)を経
て同図(C)の処理画像を得る。
The configuration of this third embodiment is based on the first embodiment shown in FIGS. 1 and 2.
This is similar to the example. In this embodiment, the image processing method in the image processing mode of the image processing device 30 is completed, and the image processing method shown in FIG. ) to obtain the processed image.

すなわち、第1図に示す画像処理装置30が画像処理モ
ードに設定されると、メ七り46R,/16G、/!1
.6Bのデータが順次作業用メモリ51に転送される。
That is, when the image processing device 30 shown in FIG. 1 is set to the image processing mode, the menus 46R, /16G, /! 1
.. 6B of data are sequentially transferred to the working memory 51.

この作業用メ亡り51に転送された例えばRデータに対
し、演算処理装置52は2つの画素データを取込み、こ
れらを比較して大ぎい値(小さい値)を残すようにして
、この比較演算をRデータ全体に行うことにより最大値
(最小値)を検出する。他のGデータ、Bデータに対し
ても同様の比較演算を行うことにより第12図に示JR
,G、Bそれぞれの最大値ITI a X 、最小値m
nを検出Jる。
For example, the R data transferred to the working memory 51, the arithmetic processing unit 52 takes in two pixel data, compares them, leaves the larger value (smaller value), and performs a comparison operation. The maximum value (minimum value) is detected by performing this on the entire R data. By performing similar comparison operations on other G data and B data, the JR
, G, B, respectively, maximum value ITI a X and minimum value m
Detect n.

、L記最大値max、最小値m i n間を適麿のレベ
ル数に設定し、作業用メモリ51から順次読出したデー
タがどのレベルに相当づ゛るかを判断覆ると共に、その
レベルにス・1応させたヒストグラム算出用カウンタの
計数値を1つインクリメントする。
, set an appropriate number of levels between the maximum value max and the minimum value min in L, determine which level corresponds to the data sequentially read out from the working memory 51, and change the level to that level. - Increment the count value of the histogram calculation counter by one.

この処理をRデータ全体に対して行うことによりR信号
にり4するヒストグラムを算出できる。同様に、他のG
−5’−タ、Bデータに対して行うことにより、第11
図の第2の処理、又は第12図((a)に対して同図)
(b)のようなヒストグラムが得られることになる。
By performing this processing on the entire R data, it is possible to calculate a histogram based on the R signal. Similarly, other G
-5'- data, by performing this on the B data, the 11th
The second process in Figure 12 or Figure 12 (same figure for (a))
A histogram like that shown in (b) will be obtained.

次に上記Rデータにお(プる最大値max及び最小値m
 i nの範囲に対して前述したよ・う<家平坦化の処
理を行う。他のGデータ及びBデータに対しても同様に
平坦化の処理を行い、第12図(C)に示すようにR,
G、B信号に対し、平坦化されたヒストグラムを得る。
Next, apply the maximum value max and minimum value m to the above R data.
The above-described flattening process is performed on the range of in. The other G data and B data are also flattened in the same way, and as shown in FIG. 12(C), R,
Obtain flattened histograms for the G and B signals.

しかして、アナ1]グスイツチ50をオンして平坦化さ
れたR、G、Bデータが作業用メモリ51からD/A=
1ンバータ55a。
Then, the R, G, and B data flattened by turning on the analog switch 50 are transferred from the working memory 51 to D/A=
1 inverter 55a.

55b、55cを経てモニタ27(第2図参照)に出力
される。
The signal is output to the monitor 27 (see FIG. 2) via 55b and 55c.

上記平坦化の処理を行うことにより、第12図(a)に
示づ色信号R,G、Bの平均値Mに対し、同図(C)に
示ず平坦化処理で求められIC処理画像の平均値M′も
あまり変化しないものとなる。
By performing the above-mentioned flattening process, the average value M of the color signals R, G, and B shown in FIG. The average value M' also does not change much.

従って、R,G、Bのヒストグラム変換後のレベルをほ
ぼ同一にしていた上記第1実施例では、画像全体が白(
又は白っぽく)なってしまい、処埋前の内視鏡の画像と
はかけ1illlれた色調になってしまうのに対し、こ
の実施例では今までの色調を組積しつつ、口つ、ヒスト
グラム変換の利点も右することにイf6.. 又、上記
”+3実施例は簡lljな処理ににリーニ」ン1ヘラス
トの強′tJI11jうことができる。
Therefore, in the first embodiment, in which the levels after histogram conversion of R, G, and B are almost the same, the entire image is white (
In contrast, in this example, the existing color tones are integrated and the histogram conversion is performed. The advantages of f6. .. In addition, the above-mentioned "+3" embodiment can be used to perform simple processing with the strength of the lean-in 1 herast.

上記3実流例において、ヒス1−グラムの算出前の画像
の平均(自Mと平坦化処理後の平均(0M′が殆/υど
変化しないように1!坦化処理を行うJ、うにしτし良
い。
In the above three actual flow examples, the average of the image before the calculation of the hiss 1-gram (self M and the average after the flattening process (0M') are J, which performs the 1! flattening process so that there is almost no change in /υ, It's good to do it.

第13図は本発明の第4実施例にお(プる画像処理の]
Ll−を示づ。
Figure 13 shows the fourth embodiment of the present invention (image processing).
Indicates Ll-.

この第3実施例の構成は上記第′1実施例と同様であり
その画像処理が異る。
The configuration of this third embodiment is similar to that of the '1st embodiment, but the image processing is different.

第13図に示ずようにR,G、BiiEii(mのそれ
ぞれの平均値を算出覆る。このCツ1出は、メモリ部4
6のR,G、Bデータを作業用メ−[す51に転送しく
、演X+処理装置tこ、」、り各1犬、G、Bデータの
Iil庶レベルの総和を求め、最大及び最小レベルの区
間数で割れば平均値Mが求められる。
As shown in FIG. 13, the average values of R, G, BiiEii(m) are calculated.
To transfer the R, G, and B data of 6 to the working mailbox 51, calculate the sum of the general levels of each 1 dog, G, and B data, and calculate the maximum and minimum. The average value M can be obtained by dividing by the number of level sections.

次に、次式 %式%) により、平均値Mを変極点に持つ変換デーヅルを作成J
−る。この場合、平均値Mを信号範囲がO・−1に9=
I 11る平均値mにしている。
Next, create a conversion data with the average value M at the inflection point using the following formula (% formula %)
-ru. In this case, the average value M is set to a signal range of O・-1 by 9=
The average value m is set to 11.

つまり、信号範囲はO〜1、平均値をr丁+であり、入
力をX、出力をyで表わし、pは実数で・、例えばp=
4にすることができる。この場合の弯換デブルの特性は
第1’1図に示Jようイ【特性のグラフとなる。
In other words, the signal range is O~1, the average value is r+, the input is represented by X, the output is represented by y, p is a real number, for example, p=
It can be set to 4. The characteristics of the deflection curve in this case are as shown in Fig. 1'1.

上記変換テーブルを用いて温度変換を行うことにより、
第15図(a)のR,G、Bデータは同図(C)に示J
ように画像処理されたものが1qられる。
By performing temperature conversion using the above conversion table,
The R, G, and B data in Figure 15 (a) are shown in Figure 15 (C).
The image processed as follows is displayed as 1q.

この第4実施例にJ3いてす、R,G、Bそれぞれの平
均値が概略変化しないようにa瓜変換が行われる。
In this fourth embodiment, in J3, A-melon conversion is performed so that the average values of R, G, and B do not substantially change.

第16図は本発明の第5実施例の内視鏡画像処押装置8
1を丞J0 この装置81は、第19図に示す先行例においで、D/
A変換器8と画像出力端子9どの間に、変換処理部82
を設(プた構成になっχいる。その他は、上記第19図
に示J先行例と同一の構成である。
FIG. 16 shows an endoscopic image processing device 8 according to a fifth embodiment of the present invention.
1 to J0 This device 81 is different from D/J0 in the prior example shown in FIG.
A conversion processing unit 82 is connected between the A converter 8 and the image output terminal 9.
The configuration is such that the configuration is similar to that of the preceding example shown in FIG. 19 above.

上記変換処理部82の構成を第17図に示す。The configuration of the conversion processing section 82 is shown in FIG. 17.

D/A変換器8によってアナログ化され/、: R。It is converted into an analog by the D/A converter 8.

G、B信号が入力信号としてウィンド回路91及び第1
アンプ92に人力される。このウィンド回路91は、有
効な画像信号部分、例えば10〜254の値のみを通づ
一回路であって、このウィンド回路91の出力は平均値
算出回路93に入)Jされ、この回路93から平均値信
号が第1アンプ92及び第2アンプ94のゲイン制御端
に印加される。
The G and B signals are input to the window circuit 91 and the first
Powered by amplifier 92. This window circuit 91 is a circuit that passes only a valid image signal portion, for example, values from 10 to 254, and the output of this window circuit 91 is input to an average value calculation circuit 93, and from this circuit 93. The average value signal is applied to the gain control terminals of the first amplifier 92 and the second amplifier 94.

しかして、上記平均値信号により第1アンプ92は、平
均値が信号レベルの中央となる様にゲインコントロール
を行う。一方、第2アンプ94は、第1アンプ92のゲ
インコントロールを元に戻すゲインコント[」−ルを行
う。
Accordingly, the first amplifier 92 performs gain control based on the average value signal so that the average value becomes the center of the signal level. On the other hand, the second amplifier 94 performs gain control to return the gain control of the first amplifier 92 to its original state.

上記第1アンプ92の出ノjはA/D変1り器95に入
力され、ディジタル信号に変換された後、ROMで構成
したテーブル96のアドレス端に印加され、そのアドレ
スに書込まれたメモリ内容を読出J0このテーブル96
から読出されたデータはD/A変換器97に入力され、
アナログ信号に変換された後、第2アンプ94により増
幅されて出力端子9から出力される。
The output signal from the first amplifier 92 is input to an A/D converter 95, converted into a digital signal, and then applied to the address end of a table 96 made up of ROM and written to that address. Read memory contents J0 This table 96
The data read from is input to the D/A converter 97,
After being converted into an analog signal, it is amplified by the second amplifier 94 and output from the output terminal 9.

上記デープル9Gには、第18図(C)に示IJ、うな
1111度変換特性のデータが書込まれている。
In the daple 9G, data of the IJ and U-1111 degree conversion characteristics shown in FIG. 18(C) are written.

上記A/D変換器95、テーブル96、D/A変換器9
7はクロック発生部98からのクロックによりA/D変
換、デープル96の読出し、D/△変換のタイミングが
制卸される。
The above A/D converter 95, table 96, D/A converter 9
7, the timing of A/D conversion, readout of the daple 96, and D/Δ conversion is controlled by a clock from a clock generator 98.

この第5実施例の動作を以下に説明する。The operation of this fifth embodiment will be explained below.

D/A変換器8までの動作は第19図と同様でありその
説明を省略する。
The operation up to the D/A converter 8 is the same as that shown in FIG. 19, and its explanation will be omitted.

しかして、それぞれD/A変換器8を経た入力信号、つ
まりR,G、B信号は変換処理部82にそれぞれ入力さ
れる。入ツノされた信号はウィンド回路91により、入
力信号レベルがO〜255とした場合、10−・245
のみ通J−0つまり、特に明るい部分と特に暗い画像部
分が除去される。
Thus, the input signals that have passed through the D/A converter 8, that is, the R, G, and B signals, are each input to the conversion processing section 82. The input signal is processed by the window circuit 91, and when the input signal level is O~255, the input signal is 10-245.
Only through J-0, that is, particularly bright parts and particularly dark image parts are removed.

このウィンド回路91の出力は、平均値算出回路93に
入力され、この回路93て゛信号が積分されて、画像の
平均の明るさが筒用される。つまり、画像の有効な部分
に対する明るさの平均が算出される。この平均値算出回
路93の出力は第1アンプ92のゲイン制胛端に印1」
[1され、このアンプ92は平均値が信号レベルの中央
に来るようにゲイン調整される。この結果第18図(a
)に示す入力信号のレベル分布に夕・]シ、同図(b)
に示づようイ【出力信号のレベル分布にゲイン調整され
る。
The output of this window circuit 91 is input to an average value calculation circuit 93, and the signal is integrated by this circuit 93 to calculate the average brightness of the image. That is, the average brightness of the effective portion of the image is calculated. The output of this average value calculation circuit 93 is marked 1 at the gain control end of the first amplifier 92.
[1], and the gain of this amplifier 92 is adjusted so that the average value is at the center of the signal level. As a result, Figure 18 (a
), the level distribution of the input signal shown in (b)
As shown in A, the gain is adjusted according to the level distribution of the output signal.

上記第1アンプ92の出力は、A/D変換器95でディ
ジタル化される。この変換はクロック発生部98のクロ
ックに同期して行われる。しかしで、A/D変換器95
の出力は、テーブル96のアドレス端に印加され、第1
8図(C)に示す変換特性で?!l11度変換が行変換
る。
The output of the first amplifier 92 is digitized by an A/D converter 95. This conversion is performed in synchronization with the clock of the clock generator 98. However, the A/D converter 95
is applied to the address end of the table 96, and the output of the first
With the conversion characteristics shown in Figure 8 (C)? ! l11 degree conversion converts rows.

上記デープル96により濃度変換が行われた信号は、次
段のD/A変換器97によって、再びアナログ信号に戻
され、この場合の信号のレベル分布は第18図(d)に
示Jようになる。
The signal whose density has been converted by the daple 96 is returned to an analog signal by the D/A converter 97 at the next stage, and the level distribution of the signal in this case is as shown in FIG. 18(d). Become.

このD/A変換器97の出力は、第2アンプ94に入力
され、この第2アンプ94では第1アンプ92でゲイン
調整したゲインを逆に調整する。
The output of this D/A converter 97 is input to a second amplifier 94, and the second amplifier 94 reversely adjusts the gain adjusted by the first amplifier 92.

しかして、第18図(e)に示り信号にする。Thus, the signal shown in FIG. 18(e) is obtained.

以上の変換処理が行われた信号R,G、Bが変換処理部
82から出力される。
The signals R, G, and B that have been subjected to the above conversion processing are output from the conversion processing section 82.

この第5実施例によっても変換処理前後rRG、Bそれ
ぞれの濃度の平均値が概略等しくなる。
Also in this fifth embodiment, the average values of the densities of rRG and B before and after the conversion process are approximately equal.

上述した各実施例は電子内視鏡による画像に限定される
ものでなく、ファイパス−1−ブ(又は硬性内視鏡)に
よる画像に対して行っても良い。
The above-described embodiments are not limited to images obtained by an electronic endoscope, and may be applied to images obtained by a fibre-pass-1-wave (or rigid endoscope).

又、第3実施例では温度分布から最大値・最小値を算出
しているがその際に、全画素数の所定の数例えば5%の
ところの値を最大値、最小値どしてもよい。
Further, in the third embodiment, the maximum value and minimum value are calculated from the temperature distribution, but at that time, the value at a predetermined number, for example, 5% of the total number of pixels, may be returned to the maximum value and minimum value. .

また濃度レベルで5ステツプ(0〜255の場合〉、中
央よりの1fi1度値を最大値、最小値どしてもよい。
Further, in 5 steps of density level (for 0 to 255), the 1fi1 degree value from the center may be returned to the maximum value and minimum value.

尚、第4.5実施例では滑らかな曲線により変換デープ
ルを構成しCいるが2本あるいはそれ以上の直線で近似
してもよい。
In the 4.5th embodiment, the conversion daple is composed of smooth curves, but it may be approximated by two or more straight lines.

尚、第5実施例ではガンマ回路3の後に変換処理部82
を配しているが、逆にガンマ回路3を後にしてもJ、い
In the fifth embodiment, a conversion processing section 82 is provided after the gamma circuit 3.
However, even if the gamma circuit 3 is left behind, it is still not possible.

尚、第5実施例では、変換処理部82の一部にアナログ
信号を用いているが、全てディジタル信号てあつがって
もよい。
In the fifth embodiment, analog signals are used in a part of the conversion processing section 82, but all may be digital signals.

本願実施例ではRG 13信号を用いているが、色差信
号でも明磨・彩度・色相信号でもよい。
In the embodiment of the present application, an RG13 signal is used, but a color difference signal or brightness/saturation/hue signal may be used.

第4,5実施例にお(〕る変変換テープの特性を決める
pの値はRGB各々の信号に対しC異る値であってbに
い。
The value of p, which determines the characteristics of the conversion tape in the fourth and fifth embodiments, is a value that differs by C for each of the RGB signals.

上記第3ないし第5実施例では元の信号に対してイの平
均値を概略変えないで内視鏡本来の色調を変えることな
く、色彩等を強調した画像を得ることができる。
In the third to fifth embodiments described above, it is possible to obtain an image with enhanced colors and the like without changing the average value of A with respect to the original signal and without changing the original color tone of the endoscope.

[発明の効果] 以上述べたように本発明にJ:れば、画像を構成する複
数の色信号に対し、信号毎にヒス1〜グラムを生成りる
手段を設りるど共に、このヒストグラムデータに基づき
各々の色信号を独)jに1、′j竹変]条する手段を設
りであるのC1これまで利用しにくかった波長域からも
有効な情報量を得ることが(゛さる。
[Effects of the Invention] As described above, according to the present invention, a means for generating histograms for each signal is provided for a plurality of color signals constituting an image. C1 It is possible to obtain an effective amount of information even from wavelength ranges that have been difficult to use until now. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図ないし第8図は本発明の第1実施例に係り、第1
図は第1実施例の内視鏡画像処理装置の構成図、第2図
は第1実施例の全体的構成図、第3図はヒストグラム幹
出のフローチャート図、第4図は算出されたヒスlへグ
ラムの1例を示す特性図、第5図は算出されたヒス1ヘ
ゲラムからll1度変換を行って得られる画像のヒスト
グラムを示J特性図、第6図は任意の2点の濃度レベル
に対して濃度変換を行っ−C得られる画像のヒス1−グ
ラムを示す特性図、第7図は平坦化の特性変換を行うフ
ローチャート図、第8図は第7図の処理によっC1qら
れる画像のヒストグラムを承り特性図、第9図は本発明
の第2実施例の主要部を示す構成図、第10図は第2実
施例により得られるヒストグラムの特性図、第11図及
び第12図は本発明の第3実施例に係り、第11図は第
3実施例にお(プる画像処理の流れ図、第12図は画像
処理によって得られるR、G、8画像を示1説明図、第
13図ないし第15図は本発明の第4実施例に係り、第
13図は第4実施例におりる画像処理の流れ図、第14
図はS度特性を行う関数を示す特性図、第15図は第4
実施例の画像処理によって得られるR、G、B11Ti
1像を示J説明図、第1(3図ないし第18図は本発明
の第5実施例に係り、第16図は第5実施例の構成を示
すブ1コック図、第17図は第5実論例にお(プる画像
処理部の構成を示づブロック図、第18図は第5実施例
の動作説明用特性図、第19図は先行例の構成図、第2
0図は先行例における輝度分布及び色信号のレベルの分
布を示J特性図である。 21・・・内視鏡画像処理装置 22・・・電子内視鏡 27・・・モニタ 32・・・光源部 52・・・演算処理装置 54・・・外部出力装置 26・・・観察装置 30・・・画像処理装置 51・・・作業用メ七り 53・・・補助記憶装圓
FIGS. 1 to 8 relate to the first embodiment of the present invention.
The figure is a block diagram of the endoscopic image processing device of the first embodiment, FIG. 2 is the overall block diagram of the first embodiment, FIG. 3 is a flowchart of histogram extraction, and FIG. Figure 5 shows the histogram of an image obtained by performing ll1 degree conversion from the calculated His 1 Hegerum. Figure 6 shows the density level of two arbitrary points. FIG. 7 is a flowchart for flattening characteristic conversion, and FIG. 8 is an image C1q obtained by the processing in FIG. 7. FIG. 9 is a block diagram showing the main parts of the second embodiment of the present invention, FIG. 10 is a characteristic diagram of the histogram obtained by the second embodiment, and FIGS. 11 and 12 are Regarding the third embodiment of the present invention, FIG. 11 is a flowchart of image processing according to the third embodiment, and FIG. 12 shows R, G, and 8 images obtained by image processing. 13 to 15 relate to the fourth embodiment of the present invention, FIG. 13 is a flow chart of image processing in the fourth embodiment, and FIG. 14 is a flowchart of image processing in the fourth embodiment.
The figure is a characteristic diagram showing the function that performs the S degree characteristic, and Figure 15 is the 4th characteristic diagram.
R, G, B11Ti obtained by image processing in Example
1 (Fig. 3 to 18 are related to the fifth embodiment of the present invention, Fig. 16 is a block diagram showing the configuration of the fifth embodiment, and Fig. 17 is a diagram showing the configuration of the fifth embodiment). Figure 18 is a characteristic diagram for explaining the operation of the fifth embodiment, Figure 19 is a configuration diagram of the preceding example,
Figure 0 is a J characteristic diagram showing the luminance distribution and color signal level distribution in the prior example. 21... Endoscope image processing device 22... Electronic endoscope 27... Monitor 32... Light source section 52... Arithmetic processing device 54... External output device 26... Observation device 30 ...Image processing device 51...Working mechanism 53...Auxiliary storage device

Claims (1)

【特許請求の範囲】[Claims] 内視鏡による画像を複数の色信号に分解する信号処理手
段と、前記複数の色信号に対し、それぞれのヒストグラ
ムの算出手段と、該算出手段によつて算出されたヒスト
グラムに基づいて、前記色信号の各出力レベルを独立に
設定可能とする手段とを設けたことを特徴とする内視鏡
画像処理装置。
a signal processing means for decomposing an image from an endoscope into a plurality of color signals; a means for calculating a histogram for each of the plurality of color signals; and a means for calculating a histogram for each of the plurality of color signals; 1. An endoscopic image processing device, comprising means for independently setting each output level of a signal.
JP63286383A 1988-04-22 1988-11-10 Endoscope image processing device Expired - Fee Related JP2746615B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63286383A JP2746615B2 (en) 1988-04-22 1988-11-10 Endoscope image processing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP10153688 1988-04-22
JP63-101536 1988-04-22
JP63286383A JP2746615B2 (en) 1988-04-22 1988-11-10 Endoscope image processing device

Publications (2)

Publication Number Publication Date
JPH0236836A true JPH0236836A (en) 1990-02-06
JP2746615B2 JP2746615B2 (en) 1998-05-06

Family

ID=26442399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63286383A Expired - Fee Related JP2746615B2 (en) 1988-04-22 1988-11-10 Endoscope image processing device

Country Status (1)

Country Link
JP (1) JP2746615B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002369795A (en) * 2001-06-15 2002-12-24 Pentax Corp Electronic endoscopic equipment
JP2003000535A (en) * 2001-06-26 2003-01-07 Pentax Corp Electronic endoscope
JP2003061908A (en) * 2001-08-29 2003-03-04 Pentax Corp Processor for electronic endoscope system
JP2007097710A (en) * 2005-09-30 2007-04-19 Fujinon Corp Electronic endoscope apparatus
JP2008284005A (en) * 2007-05-15 2008-11-27 Takashi Sone Image processor, image processing system, and image processing method
JP2010521272A (en) * 2007-03-16 2010-06-24 エスティーアイ・メディカル・システムズ・エルエルシー A method for providing automatic quality feedback to an imaging device to achieve standardized imaging data
JP2011004907A (en) * 2009-06-25 2011-01-13 Hoya Corp Electronic endoscope system, electronic endoscope, and processor
JP2011139733A (en) * 2010-01-05 2011-07-21 Hoya Corp Endoscope apparatus
JP2011139732A (en) * 2010-01-05 2011-07-21 Hoya Corp Endoscope apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6354144A (en) * 1986-08-25 1988-03-08 株式会社東芝 Electronic endoscope apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6354144A (en) * 1986-08-25 1988-03-08 株式会社東芝 Electronic endoscope apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002369795A (en) * 2001-06-15 2002-12-24 Pentax Corp Electronic endoscopic equipment
JP2003000535A (en) * 2001-06-26 2003-01-07 Pentax Corp Electronic endoscope
JP2003061908A (en) * 2001-08-29 2003-03-04 Pentax Corp Processor for electronic endoscope system
JP2007097710A (en) * 2005-09-30 2007-04-19 Fujinon Corp Electronic endoscope apparatus
JP2010521272A (en) * 2007-03-16 2010-06-24 エスティーアイ・メディカル・システムズ・エルエルシー A method for providing automatic quality feedback to an imaging device to achieve standardized imaging data
JP2008284005A (en) * 2007-05-15 2008-11-27 Takashi Sone Image processor, image processing system, and image processing method
JP2011004907A (en) * 2009-06-25 2011-01-13 Hoya Corp Electronic endoscope system, electronic endoscope, and processor
JP2011139733A (en) * 2010-01-05 2011-07-21 Hoya Corp Endoscope apparatus
JP2011139732A (en) * 2010-01-05 2011-07-21 Hoya Corp Endoscope apparatus

Also Published As

Publication number Publication date
JP2746615B2 (en) 1998-05-06

Similar Documents

Publication Publication Date Title
US8704885B2 (en) Electronic endoscope signal-processing device and electronic endoscope system
EP2926718B1 (en) Endoscope system
JP2003126028A (en) Electronic endoscope
JP2003000536A (en) Electronic endoscope
US10163196B2 (en) Image processing device and imaging system
JPH04176435A (en) Endoscope apparatus
JP5124102B2 (en) Endoscope processor, image processing program, and endoscope system
JPH0236836A (en) Electronic endoscope image processing device
JP7374600B2 (en) Medical image processing device and medical observation system
JP4606838B2 (en) Electronic endoscope device
JPH03105483A (en) Endoscope device
US7822247B2 (en) Endoscope processor, computer program product, endoscope system, and endoscope image playback apparatus
CN110381806B (en) Electronic endoscope system
JP2547195B2 (en) Image signal processing circuit for endoscope
JPH01138876A (en) Color picture processing unit
KR20200056709A (en) Method for rendering 3d image, image processing apparatus using said method, camera apparatus interlocking with said image processing apparatus, photographing method of said camera, and 3d image rendering system
JP3179166B2 (en) Electronic endoscope device
JP6946468B2 (en) Image processing device and operation method of image processing device
WO2022210508A1 (en) Processor device, medical image processing device, medical image processing system, and endoscopic system
JP7089943B2 (en) Endoscope system
JP2005073708A (en) Electronic endoscope
JPH04183430A (en) Image processing device for endoscope
JP2014094175A (en) Image processing system for electronic endoscope
JPH01223929A (en) Endoscopic image input apparatus
JPH10262924A (en) Electronic endoscope equipment

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees