JPWO2015029856A1 - Processing apparatus and endoscope system - Google Patents

Processing apparatus and endoscope system Download PDF

Info

Publication number
JPWO2015029856A1
JPWO2015029856A1 JP2015512824A JP2015512824A JPWO2015029856A1 JP WO2015029856 A1 JPWO2015029856 A1 JP WO2015029856A1 JP 2015512824 A JP2015512824 A JP 2015512824A JP 2015512824 A JP2015512824 A JP 2015512824A JP WO2015029856 A1 JPWO2015029856 A1 JP WO2015029856A1
Authority
JP
Japan
Prior art keywords
unit
pixel
error
processing
signal
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.)
Pending
Application number
JP2015512824A
Other languages
Japanese (ja)
Inventor
貴博 田邊
貴博 田邊
川田 晋
晋 川田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp filed Critical Olympus Corp
Publication of JPWO2015029856A1 publication Critical patent/JPWO2015029856A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
    • A61B1/00002Operational features of endoscopes
    • A61B1/00004Operational features of endoscopes characterised by electronic signal processing
    • A61B1/00009Operational features of endoscopes characterised by electronic signal processing of image signals during a use of endoscope
    • A61B1/000095Operational features of endoscopes characterised by electronic signal processing of image signals during a use of endoscope for image enhancement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/555Constructional details for picking-up images in sites, inaccessible due to their dimensions or hazardous conditions, e.g. endoscopes or borescopes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/68Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects

Abstract

本発明にかかる処理装置は、複数の画素を有する撮像素子を備えた内視鏡が撮像した撮像信号を取得する処理装置であって、撮像信号をもとに、画素ごとにエラーを検出するエラー検出部と、内視鏡近傍の外部状態を検知する状態検知部と、エラー検出部によりエラーが検出された画素であるエラー画素の輝度値を状態検知部の検知結果に応じて補正する補正処理を含む画像処理を撮像信号に施す画像処理部と、状態検知部の検知結果に応じて、画像処理部による画像処理の条件を設定する条件設定部と、を備えた。A processing device according to the present invention is a processing device that acquires an imaging signal captured by an endoscope including an imaging device having a plurality of pixels, and that detects an error for each pixel based on the imaging signal. A detection unit, a state detection unit that detects an external state in the vicinity of the endoscope, and a correction process that corrects the luminance value of an error pixel that is a pixel in which an error is detected by the error detection unit according to the detection result of the state detection unit An image processing unit that performs image processing including image processing on a captured image signal, and a condition setting unit that sets conditions for image processing by the image processing unit according to the detection result of the state detection unit.

Description

本発明は、例えば、複数の画素を有する撮像素子を備えた内視鏡が撮像した撮像信号を取得する処理装置および内視鏡システムに関する。   The present invention relates to, for example, a processing apparatus and an endoscope system that acquire an imaging signal captured by an endoscope including an imaging element having a plurality of pixels.

従来、医療分野においては、患者等の被検体の臓器を観察する際に内視鏡システムが用いられている。内視鏡システムは、例えば先端に撮像素子が設けられ、可撓性を有する細長形状をなし、被検体の体腔内に挿入される挿入部を有する内視鏡と、挿入部の基端側にケーブルを介して接続され、撮像素子が撮像した撮像信号に応じた体内画像の画像処理を行って、体内画像を表示部等に表示させる処理装置とを備える。   Conventionally, in the medical field, an endoscope system is used when observing an organ of a subject such as a patient. An endoscope system includes, for example, an endoscope having an imaging element provided at the distal end and having an elongated shape having flexibility and being inserted into a body cavity of a subject, and a proximal end side of the insertion portion. And a processing device that is connected via a cable and performs image processing of an in-vivo image in accordance with an imaging signal imaged by an imaging element, and displays the in-vivo image on a display unit or the like.

内視鏡では、挿入部の先端の撮像素子が取得した撮像信号を、挿入部の基端まで伝送して処理装置に出力する。このとき、挿入部近傍の外部環境などにより撮像信号にエラーが発生し、例えば、発生したエラーが体内画像において点ノイズとして表示される。ノイズの表示により、表示された体内画像が見にくくなるという問題があった。   In the endoscope, an imaging signal acquired by the imaging device at the distal end of the insertion portion is transmitted to the proximal end of the insertion portion and output to the processing device. At this time, an error occurs in the imaging signal due to an external environment in the vicinity of the insertion portion, and the generated error is displayed as point noise in the in-vivo image, for example. There is a problem that the displayed in-vivo image becomes difficult to see due to the display of noise.

この問題に対し、マトリックス状に配置された画素を有する撮像素子において、各ラインの出力順序を変更して画素の読み出しを行うことによって、データ(撮像信号)の一部でエラーが発生した場合であっても、画像におけるノイズ部分を視覚的に目立たなくする技術が開示されている(例えば、特許文献1を参照)。具体的には、特許文献1では、画素の読み出し方向を主走査方向、画素の受光面上であって、この主走査方向と直交する方向を副走査方向としたときに、読み出し時に副走査方向を所定ライン飛び越して読み出し、画像における欠損を散らすことによって、ノイズ部分を視覚的に目立たなくしている。   To solve this problem, when an error occurs in a part of the data (imaging signal) by changing the output order of each line and reading out the pixels in an imaging device having pixels arranged in a matrix. Even if it exists, the technique of making the noise part in an image inconspicuous visually is disclosed (for example, refer patent document 1). Specifically, in Patent Document 1, when the readout direction of a pixel is the main scanning direction, and the direction perpendicular to the main scanning direction is the sub-scanning direction on the light receiving surface of the pixel, the sub-scanning direction at the time of readout Is skipped by a predetermined line, and the noise portion is visually inconspicuous by scattering the defects in the image.

特開2011−254900号公報JP 2011-254900 A

しかしながら、上述した特許文献1では、発生したエラーに対して対応する画素に応じた輝度値などの値を補正するものではない。特許文献1は、発生したエラーが、画像内でノイズとして一塊となって表示されるのを回避するだけである。エラーの規模が大きければ大きいほどノイズが多く散在する画像となるため、結果として、観察には適さない体内画像が表示されることとなる。   However, in Patent Document 1 described above, a value such as a luminance value corresponding to a pixel corresponding to an error that has occurred is not corrected. Patent document 1 only avoids that the generated error is displayed in a lump as noise in the image. The larger the error scale is, the more scattered the image is, and as a result, an in-vivo image unsuitable for observation is displayed.

本発明は、上記に鑑みてなされたものであって、外部の環境によらず、適切な画像を得ることができる処理装置および内視鏡システムを提供することを目的とする。   The present invention has been made in view of the above, and an object thereof is to provide a processing device and an endoscope system that can obtain an appropriate image regardless of an external environment.

上述した課題を解決し、目的を達成するために、本発明にかかる処理装置は、複数の画素を有する撮像素子を備えた内視鏡が撮像した撮像信号を取得する処理装置であって、前記撮像信号をもとに、前記画素ごとにエラーを検出するエラー検出部と、前記内視鏡近傍の外部状態を検知する状態検知部と、前記エラー検出部によりエラーが検出された画素であるエラー画素の輝度値を前記状態検知部の検知結果に応じて補正する補正処理を含む画像処理を前記撮像信号に施す画像処理部と、前記状態検知部の検知結果に応じて、前記画像処理部による前記画像処理の条件を設定する条件設定部と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, a processing apparatus according to the present invention is a processing apparatus that acquires an imaging signal captured by an endoscope including an imaging element having a plurality of pixels, An error detection unit that detects an error for each pixel based on an imaging signal, a state detection unit that detects an external state in the vicinity of the endoscope, and an error that is a pixel in which an error is detected by the error detection unit An image processing unit that performs image processing including a correction process for correcting a luminance value of a pixel according to a detection result of the state detection unit on the imaging signal, and according to a detection result of the state detection unit, by the image processing unit And a condition setting unit for setting the image processing conditions.

また、本発明にかかる処理装置は、上記発明において、前記補正処理は、補間処理であり、前記条件設定部は、前記状態検知部の検知結果に応じて、前記画像処理部が前記エラー画素を補正する際に参照する画素の設定を行うことを特徴とする。   In the processing device according to the present invention, in the above invention, the correction process is an interpolation process, and the condition setting unit determines that the image processing unit detects the error pixel according to a detection result of the state detection unit. It is characterized by setting a pixel to be referred to when correcting.

また、本発明にかかる処理装置は、上記発明において、前記条件設定部は、前記参照する画素の参照数を前記条件として設定することを特徴とする。   In the processing apparatus according to the present invention as set forth in the invention described above, the condition setting unit sets the reference number of the referenced pixel as the condition.

また、本発明にかかる処理装置は、上記発明において、前記画像処理部は、当該エラー画素の周囲の画素、または当該エラー画素を含むフレームの前後のフレームにおける当該エラー画素に対応する画素を前記参照する画素とし、該参照する画素の輝度値における統計的な代表値を用いて前記補間処理を施すことを特徴とする。   In the processing device according to the present invention as set forth in the invention described above, the image processing unit refers to a pixel corresponding to the error pixel in a frame around the error pixel or a frame before and after the frame including the error pixel. The interpolation processing is performed using a statistical representative value of the luminance value of the reference pixel.

また、本発明にかかる処理装置は、上記発明において、前記画像処理は、エンハンス処理をさらに含み、前記条件設定部は、前記状態検知部の検知結果に応じて、前記エンハンス処理のレベルを設定することを特徴とする。   In the processing device according to the present invention, in the above invention, the image processing further includes an enhancement process, and the condition setting unit sets the level of the enhancement process according to a detection result of the state detection unit. It is characterized by that.

また、本発明にかかる処理装置は、上記発明において、前記エラー検出部は、検出対象の画素の輝度値と、該検出対象の画素の周囲の画素の輝度値、または該検出対象の画素を含むフレームの前後のフレームにおける該検出対象の画素に対応する画素の輝度値における統計的な代表値とを比較することを特徴とする。   In the processing device according to the present invention, in the above invention, the error detection unit includes a luminance value of a pixel to be detected, a luminance value of pixels around the pixel to be detected, or a pixel to be detected. It is characterized in that a statistical representative value in a luminance value of a pixel corresponding to the pixel to be detected in a frame before and after the frame is compared.

また、本発明にかかる処理装置は、上記発明において、前記統計的な代表値は、平均値、最大値または最小値であることを特徴とする。   In the processing apparatus according to the present invention as set forth in the invention described above, the statistical representative value is an average value, a maximum value, or a minimum value.

また、本発明にかかる処理装置は、上記発明において、前記内視鏡から取得する撮像信号は、誤り訂正符号が付与され、かつNビット/Mビット(N<M)符号化の処理が施されることによって符号化された信号であって、Mビット/Nビット復号および誤り訂正復号の処理を施すことによって前記符号化された信号を復号する復号部を有し、前記エラー検出部は、前記復号部によりMビット/Nビット復号の処理が施された信号、および前記誤り訂正復号の処理が施された信号に対し、エラーの検出処理をそれぞれ行うことを特徴とする。   In the processing device according to the present invention, in the above invention, the imaging signal acquired from the endoscope is given an error correction code and subjected to N-bit / M-bit (N <M) encoding processing. A decoding unit that decodes the encoded signal by performing M-bit / N-bit decoding and error correction decoding, and the error detection unit includes: An error detection process is performed on the signal that has been subjected to the M-bit / N-bit decoding process by the decoding unit and the signal that has been subjected to the error correction decoding process.

また、本発明にかかる処理装置は、上記発明において、前記状態検知部は、前記内視鏡と併用される外部装置からの信号の入力により、該外部装置の動作状態を前記内視鏡近傍の外部状態にかかる情報として検知することを特徴とする。   In the processing device according to the present invention, in the above invention, the state detection unit may change the operation state of the external device in the vicinity of the endoscope by inputting a signal from the external device used in combination with the endoscope. It is detected as information related to an external state.

また、本発明にかかる内視鏡システムは、被検体の体腔内に先端部を挿入することによって被検体の体内画像を撮像する内視鏡と、上記発明にかかる処理装置と、を備えたことを特徴とする。   In addition, an endoscope system according to the present invention includes an endoscope that captures an in-vivo image of a subject by inserting a tip portion into the body cavity of the subject, and the processing device according to the invention. It is characterized by.

本発明によれば、外部の環境によらず、適切な画像を得ることができるという効果を奏する。   According to the present invention, it is possible to obtain an appropriate image regardless of the external environment.

図1は、本発明の実施の形態1にかかる内視鏡システムの概略構成を示す図である。FIG. 1 is a diagram illustrating a schematic configuration of an endoscope system according to the first embodiment of the present invention. 図2は、本発明の実施の形態1にかかる内視鏡システムの概略構成を示すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of the endoscope system according to the first embodiment of the present invention. 図3は、本発明の実施の形態1にかかる処理装置が行う信号処理を示すフローチャートである。FIG. 3 is a flowchart showing signal processing performed by the processing apparatus according to the first embodiment of the present invention. 図4は、本発明の実施の形態1の変形例1にかかる処理装置が行う信号処理を示すフローチャートである。FIG. 4 is a flowchart illustrating signal processing performed by the processing device according to the first modification of the first embodiment of the present invention. 図5は、本発明の実施の形態1の変形例2にかかる内視鏡システムの概略構成を示すブロック図である。FIG. 5 is a block diagram illustrating a schematic configuration of the endoscope system according to the second modification of the first embodiment of the present invention. 図6は、本発明の実施の形態1の変形例2にかかる処理装置が行う信号処理を示すフローチャートである。FIG. 6 is a flowchart illustrating signal processing performed by the processing device according to the second modification of the first embodiment of the present invention. 図7は、本発明の実施の形態1の変形例3にかかる処理装置が行う信号処理を示すフローチャートである。FIG. 7 is a flowchart illustrating signal processing performed by the processing device according to the third modification of the first embodiment of the present invention. 図8は、本発明の実施の形態2にかかる内視鏡システムの概略構成を示すブロック図である。FIG. 8 is a block diagram illustrating a schematic configuration of the endoscope system according to the second embodiment of the present invention. 図9は、本発明の実施の形態2にかかる内視鏡が行う撮像信号取得処理を示すフローチャートである。FIG. 9 is a flowchart illustrating an imaging signal acquisition process performed by the endoscope according to the second embodiment of the present invention. 図10は、本発明の実施の形態2にかかる処理装置が行う信号処理を示すフローチャートである。FIG. 10 is a flowchart showing signal processing performed by the processing apparatus according to the second embodiment of the present invention. 図11は、本発明の実施の形態3にかかる内視鏡システムの概略構成を示すブロック図である。FIG. 11 is a block diagram illustrating a schematic configuration of the endoscope system according to the third embodiment of the present invention. 図12は、本発明の実施の形態3にかかる内視鏡システムの符号化部の構成を説明する図である。FIG. 12 is a diagram illustrating the configuration of the encoding unit of the endoscope system according to the third embodiment of the present invention. 図13は、本発明の実施の形態3にかかる処理装置が行う信号処理を説明する図である。FIG. 13 is a diagram for explaining signal processing performed by the processing apparatus according to the third embodiment of the present invention. 図14は、本発明の実施の形態3にかかる処理装置が行う信号処理を説明する図である。FIG. 14 is a diagram for explaining signal processing performed by the processing device according to the third embodiment of the present invention. 図15は、本発明の実施の形態3にかかる処理装置が行う信号処理を説明する図である。FIG. 15 is a diagram for explaining signal processing performed by the processing device according to the third embodiment of the present invention. 図16は、本発明の実施の形態3にかかる処理装置が行う信号処理を説明する図である。FIG. 16 is a diagram for explaining signal processing performed by the processing device according to the third embodiment of the present invention.

以下、本発明を実施するための形態(以下、「実施の形態」という)を説明する。実施の形態では、患者等の被検体の体腔内の画像を撮像して表示する医療用の内視鏡システムについて説明する。また、この実施の形態により、この発明が限定されるものではない。さらに、図面の記載において、同一部分には同一の符号を付して説明する。   Hereinafter, modes for carrying out the present invention (hereinafter referred to as “embodiments”) will be described. In the embodiment, a medical endoscope system that captures and displays an image of a body cavity of a subject such as a patient will be described. Moreover, this invention is not limited by this embodiment. Furthermore, in the description of the drawings, the same portions will be described with the same reference numerals.

(実施の形態1)
図1は、本発明の実施の形態1にかかる内視鏡システムの概略構成を示す図である。図2は、本実施の形態1にかかる内視鏡システムの概略構成を示すブロック図である。
(Embodiment 1)
FIG. 1 is a diagram illustrating a schematic configuration of an endoscope system according to the first embodiment of the present invention. FIG. 2 is a block diagram illustrating a schematic configuration of the endoscope system according to the first embodiment.

図1および図2に示す内視鏡システム1は、被検体の体腔内に先端部を挿入することによって被検体の体内画像を取得する内視鏡2と、内視鏡2の先端から出射する照明光を発生する光源装置3と、内視鏡2が取得した体内画像に所定の画像処理を施すとともに、内視鏡システム1全体の動作を統括的に制御する処理装置4と、処理装置4が画像処理を施した体内画像を表示する表示装置5と、内視鏡2に挿通され、先端で被検体に対して処置を施すことが可能な処置具6と、処置具6への高周波電流の供給を制御する制御装置7と、を備える。   An endoscope system 1 shown in FIG. 1 and FIG. 2 is emitted from an endoscope 2 that acquires an in-vivo image of a subject by inserting a tip portion into the body cavity of the subject, and from the tip of the endoscope 2. A light source device 3 that generates illumination light, a processing device 4 that performs predetermined image processing on the in-vivo image acquired by the endoscope 2, and comprehensively controls the operation of the entire endoscope system 1, and the processing device 4 Displays the in-vivo image subjected to the image processing, the treatment tool 6 inserted through the endoscope 2 and capable of treating the subject at the tip, and the high-frequency current to the treatment tool 6 And a control device 7 for controlling the supply of.

内視鏡2は、可撓性を有する細長形状をなす挿入部21と、挿入部21の基端側に接続され、各種の操作信号の入力を受け付ける操作部22と、操作部22から挿入部21が延びる方向と異なる方向に延び、光源装置3および処理装置4に接続する各種ケーブルを内蔵するユニバーサルコード23と、ユニバーサルコード23の操作部22に連なる側と異なる側の端部に設けられ、光源装置3および処理装置4にそれぞれ着脱自在なコネクタ部24と、を備える。   The endoscope 2 includes an insertion portion 21 having an elongated shape having flexibility, an operation portion 22 that is connected to a proximal end side of the insertion portion 21 and receives input of various operation signals, and an insertion portion from the operation portion 22. 21 extends in a direction different from the direction in which 21 extends, and is provided at a universal cord 23 containing various cables connected to the light source device 3 and the processing device 4 and an end portion of the universal cord 23 on the side different from the side connected to the operation unit 22. The light source device 3 and the processing device 4 are each provided with a detachable connector portion 24.

挿入部21は、光を受光して光電変換を行うことにより電気信号(撮像信号)を生成する画素が2次元状に配列された撮像素子を内蔵した先端部25と、複数の湾曲駒によって構成された湾曲自在な湾曲部26と、湾曲部26の基端側に接続され、可撓性を有する長尺状の可撓管部27と、を有する。先端部25に設けられる撮像素子として、例えばCCDイメージセンサやCMOSイメージセンサが挙げられる。   The insertion unit 21 includes a distal end portion 25 including an image pickup element in which pixels that generate an electric signal (image pickup signal) by receiving light and performing photoelectric conversion are two-dimensionally arranged, and a plurality of bending pieces. The bendable bendable portion 26 is connected to the base end side of the bendable portion 26 and has a long flexible tube portion 27 having flexibility. Examples of the image sensor provided at the distal end portion 25 include a CCD image sensor and a CMOS image sensor.

先端部25は、ライトガイド251と、照明レンズ252と、センサ部253と、アナログフロントエンド部254(以下、「AFE部254」という)と、P/S変換部255と、制御部256と、処置具挿通孔257と、を有する。本実施の形態1において、撮像素子は、センサ部253、AFE部254、P/S変換部255および制御部256により構成される。   The distal end portion 25 includes a light guide 251, an illumination lens 252, a sensor portion 253, an analog front end portion 254 (hereinafter referred to as “AFE portion 254”), a P / S conversion portion 255, a control portion 256, And a treatment instrument insertion hole 257. In the first embodiment, the imaging element includes a sensor unit 253, an AFE unit 254, a P / S conversion unit 255, and a control unit 256.

ライトガイド251は、グラスファイバ等を用いて構成されて光源装置3が発光した光の導光路をなす。   The light guide 251 is configured using glass fiber or the like, and forms a light guide path for light emitted from the light source device 3.

照明レンズ252は、ライトガイド251の先端に設けられ、ライドガイド251からの光を外部に出射する。   The illumination lens 252 is provided at the tip of the light guide 251 and emits light from the ride guide 251 to the outside.

センサ部253は、光を光電変換して撮像信号を生成する。センサ部253は、光量に応じた電荷を蓄積するフォトダイオードおよびフォトダイオードが蓄積した電荷を増幅する増幅器をそれぞれ有する複数の画素がマトリックス状に配列され、光学系からの光を光電変換して撮像信号を生成する受光部253aと、受光部253aの複数の画素が生成した撮像信号を画像情報として読み出す読み出し部253bと、を有する。   The sensor unit 253 generates an imaging signal by photoelectrically converting light. In the sensor unit 253, a plurality of pixels each having a photodiode that accumulates electric charge according to the amount of light and an amplifier that amplifies the electric charge accumulated by the photodiode are arranged in a matrix, and photoelectrically converts light from the optical system to capture an image. A light receiving unit 253a that generates a signal and a reading unit 253b that reads out an imaging signal generated by a plurality of pixels of the light receiving unit 253a as image information.

AFE部254は、センサ部253が出力した撮像信号に対してノイズ除去やA/D変換などを行う。具体的には、AFE部254は、撮像信号(アナログ)に含まれるノイズ成分の低減や、出力レベルの維持のための信号の増幅率(ゲイン)の調整、アナログの撮像信号のA/D変換を行う。   The AFE unit 254 performs noise removal, A / D conversion, and the like on the imaging signal output from the sensor unit 253. Specifically, the AFE unit 254 reduces the noise component included in the imaging signal (analog), adjusts the amplification factor (gain) of the signal for maintaining the output level, and performs A / D conversion of the analog imaging signal. I do.

P/S変換部255(出力部)は、AFE部254が出力したデジタルの撮像信号をパラレル/シリアル変換する。P/S変換部255は、制御部256の制御のもと、画素情報としての撮像信号を処理装置4に出力する。   The P / S conversion unit 255 (output unit) performs parallel / serial conversion on the digital imaging signal output from the AFE unit 254. The P / S conversion unit 255 outputs an imaging signal as pixel information to the processing device 4 under the control of the control unit 256.

制御部256は、処理装置4から受信した設定データに従って先端部25の各種動作を制御する。制御部256は、CPU(Central Processing Unit)等を用いて構成される。   The control unit 256 controls various operations of the distal end portion 25 according to the setting data received from the processing device 4. The control unit 256 is configured using a CPU (Central Processing Unit) or the like.

処置具挿通孔257は、処置具6の挿通部を挿通可能な中空空間を形成している。   The treatment instrument insertion hole 257 forms a hollow space through which the insertion portion of the treatment instrument 6 can be inserted.

操作部22は、湾曲部26を上下方向および左右方向に湾曲させる湾曲ノブ221と、被検体の体腔内に生体鉗子、電気メスおよび検査プローブ等の処置具を挿入する処置具挿入部222と、処理装置4、光源装置3に加えて、送気手段、送水手段、画面表示制御等の周辺機器の操作指示信号を入力する操作入力部である複数のスイッチ223と、を有する。処置具挿入部222から挿入される処置具は、先端部25の処置具チャンネル(図示せず)を経由して開口部(図示せず)から表出する。   The operation section 22 includes a bending knob 221 that bends the bending section 26 in the vertical direction and the left-right direction, a treatment instrument insertion section 222 that inserts a treatment instrument such as a biological forceps, an electric knife, and an inspection probe into the body cavity of the subject. In addition to the processing device 4 and the light source device 3, it has a plurality of switches 223 which are operation input units for inputting operation instruction signals of peripheral devices such as air supply means, water supply means, and screen display control. The treatment tool inserted from the treatment tool insertion portion 222 is exposed from the opening (not shown) via the treatment tool channel (not shown) of the distal end portion 25.

ユニバーサルコード23は、ライトガイド251と、一または複数の信号線をまとめた集合ケーブルと、を少なくとも内蔵している。   The universal cord 23 includes at least a light guide 251 and a collective cable in which one or a plurality of signal lines are collected.

つぎに、光源装置3の構成について説明する。光源装置3は、照明部31と、照明制御部32と、を備える。   Next, the configuration of the light source device 3 will be described. The light source device 3 includes an illumination unit 31 and an illumination control unit 32.

照明部31は、被写体を照明する照明光を出射する。照明部31は、光源33と、光源ドライバ34と、を有する。
光源33は、白色LEDを用いて構成され、照明制御部32の制御のもと、白色光を発生する。光源33が発生した光は、集光レンズ(図示せず)およびライトガイド251を経由して先端部25から被写体に向けて照射される。
光源ドライバ34は、光源33に対して照明制御部32の制御のもとで電流を供給することにより、光源33に白色光を発生させる。
The illumination unit 31 emits illumination light that illuminates the subject. The illumination unit 31 includes a light source 33 and a light source driver 34.
The light source 33 is configured using a white LED, and generates white light under the control of the illumination control unit 32. Light generated by the light source 33 is emitted from the distal end portion 25 toward the subject via a condenser lens (not shown) and a light guide 251.
The light source driver 34 causes the light source 33 to generate white light by supplying current to the light source 33 under the control of the illumination control unit 32.

照明制御部32は、照明部31による照明光の出射および消灯の制御を行なう。また、照明制御部32は、照明部31が出射する照明光の強度を一定に保つなど、照明部31が出射する照明光の強度を制御する。   The illumination control unit 32 controls the emission and extinguishing of illumination light by the illumination unit 31. Further, the illumination control unit 32 controls the intensity of the illumination light emitted from the illumination unit 31, such as keeping the intensity of the illumination light emitted from the illumination unit 31 constant.

次に、処理装置4の構成について説明する。処理装置4は、S/P変換部401と、画像処理部402と、エラー検出部403と、入力部404と、記録部405と、制御部406と、を備える。   Next, the configuration of the processing device 4 will be described. The processing device 4 includes an S / P conversion unit 401, an image processing unit 402, an error detection unit 403, an input unit 404, a recording unit 405, and a control unit 406.

S/P変換部401は、先端部25から出力されたシリアル形態の撮像信号をシリアル/パラレル変換して画像処理部402およびエラー検出部403に出力する。   The S / P conversion unit 401 performs serial / parallel conversion on the serial imaging signal output from the distal end portion 25 and outputs it to the image processing unit 402 and the error detection unit 403.

画像処理部402は、S/P変換部401から出力された画像情報としての撮像信号をもとに、表示装置5が表示する画像信号(体内画像情報)を生成する。画像処理部402は、画像情報に対して、所定の画像処理を実行して体内画像情報を生成する。ここで、画像処理としては、オプティカルブラック低減処理、ホワイトバランス調整処理、カラーマトリクス演算処理、ガンマ補正処理、色再現処理や、エッジ強調を含むエンハンス処理等が挙げられる。また、画像処理部402は、S/P変換部401から入力された画像情報を制御部406へ出力する。   The image processing unit 402 generates an image signal (in-vivo image information) to be displayed by the display device 5 based on an imaging signal as image information output from the S / P conversion unit 401. The image processing unit 402 performs predetermined image processing on the image information to generate in-vivo image information. Here, the image processing includes optical black reduction processing, white balance adjustment processing, color matrix calculation processing, gamma correction processing, color reproduction processing, enhancement processing including edge enhancement, and the like. Further, the image processing unit 402 outputs the image information input from the S / P conversion unit 401 to the control unit 406.

エラー検出部403は、S/P変換部401から出力された撮像信号を受信し、各画素からの輝度値にエラーが生じている場合、このエラーを検出する。具体的には、エラー検出部403は、エラー検出対象の画素に対して、エラー検出対象の画素を含むフレームの前後のフレームにおける当該画素の輝度値を参照してエラーの検出を行ったり、エラー検出対象の画素の周囲の画素の輝度値を参照してエラーの検出を行ったりする。なお、参照する画素は、設定される条件により異なる。   The error detection unit 403 receives the imaging signal output from the S / P conversion unit 401, and detects an error when an error occurs in the luminance value from each pixel. Specifically, the error detection unit 403 performs error detection on the error detection target pixel by referring to the luminance value of the pixel before and after the frame including the error detection target pixel, An error is detected by referring to luminance values of pixels around the detection target pixel. Note that the pixel to be referenced varies depending on the set condition.

入力部404は、内視鏡システム1の動作を指示する動作指示信号等の各種信号の入力を受け付ける。入力部404は、受け付けた信号を制御部406に出力する。   The input unit 404 receives input of various signals such as an operation instruction signal that instructs the operation of the endoscope system 1. The input unit 404 outputs the received signal to the control unit 406.

記録部405は、内視鏡システム1を動作させるための各種プログラム、および内視鏡システム1の動作に必要な各種パラメータ等を含むデータを記録する。記録部405は、フラッシュメモリやDRAM(Dynamic Random Access Memory)等の半導体メモリを用いて実現される。   The recording unit 405 records various programs for operating the endoscope system 1 and data including various parameters necessary for the operation of the endoscope system 1. The recording unit 405 is realized using a semiconductor memory such as a flash memory or a DRAM (Dynamic Random Access Memory).

制御部406は、CPU等を用いて構成され、内視鏡2、光源装置3および制御装置7を含む各構成部の駆動制御、および各構成部に対する情報の入出力制御などを行う。制御部406は、撮像制御のための設定データを、集合ケーブルに含まれる所定の信号線を介して先端部25へ送信する。また、制御部406は、先端部25による撮像処理の露光タイミングと読み出しタイミングを含む同期信号を先端部25に出力するとともに、この同期信号を光源装置3に出力する。   The control unit 406 is configured using a CPU or the like, and performs drive control of each component including the endoscope 2, the light source device 3, and the control device 7, and input / output control of information with respect to each component. The control unit 406 transmits setting data for imaging control to the distal end portion 25 via a predetermined signal line included in the aggregate cable. In addition, the control unit 406 outputs a synchronization signal including the exposure timing and readout timing of the imaging process by the distal end portion 25 to the distal end portion 25 and outputs this synchronization signal to the light source device 3.

また、画像処理部402は、エラー検出部403によって検出されたエラー画素の輝度値の補正を行う補正部402aを有する。具体的には、補正部402aは、例えばエラー画素の輝度値に対し、エラー検出対象の画素の周囲の画素の輝度値、またはエラー検出対象の画素を含むフレームの前後のフレームの対応画素の輝度値における統計的な代表値をもとに、当該エラー画素に応じた輝度値を置き換えて補間する処理を施す。   Further, the image processing unit 402 includes a correction unit 402 a that corrects the luminance value of the error pixel detected by the error detection unit 403. Specifically, the correction unit 402a, for example, with respect to the luminance value of the error pixel, the luminance value of the pixels around the error detection target pixel, or the luminance of the corresponding pixel in the frames before and after the frame including the error detection target pixel Based on the statistical representative value in the value, the luminance value corresponding to the error pixel is replaced and interpolation processing is performed.

制御部406は、制御装置7(処置具6)との接続によって処置具6による挿入部21における外部の状態の検知を行う状態検知部406aと、状態検知部406aの検知結果に応じて、補正部402aが補正するための条件を設定する条件設定部406bと、を有する。   The control unit 406 includes a state detection unit 406a that detects an external state of the insertion unit 21 by the treatment tool 6 by connection with the control device 7 (treatment tool 6), and correction according to the detection result of the state detection unit 406a. And a condition setting unit 406b that sets conditions for correction by the unit 402a.

状態検知部406aは、制御部72から出力される情報をもとに処置具6(電気メス)の動作状態を検知することにより、外部状態の検知結果を出力する。例えば、状態検知部406aは、処置具6が動作中、すなわち処置具6に高周波電流が通電中である場合、内視鏡2近傍の外部状態として高周波電流により磁場が形成された状態であり、ノイズ発生率が高い旨の検知結果を出力し、処置具6に高周波電流が通電中でない場合、ノイズ発生率が低い旨の検知結果を出力する。   The state detection unit 406a outputs the detection result of the external state by detecting the operation state of the treatment instrument 6 (electric knife) based on the information output from the control unit 72. For example, the state detection unit 406a is a state in which a magnetic field is formed by the high-frequency current as an external state in the vicinity of the endoscope 2 when the treatment tool 6 is operating, that is, when a high-frequency current is being applied to the treatment tool 6. A detection result indicating that the noise occurrence rate is high is output, and when a high-frequency current is not being applied to the treatment instrument 6, a detection result indicating that the noise occurrence rate is low is output.

条件設定部406bは、例えば、補正部402aがエラー画素の輝度値を補正する際、状態検知部406aの検知結果に応じて、配列方向に沿って隣接する4画素の輝度値を参照してエラー画素の輝度値を補間する条件と、エラー検出対象の画素の周囲の8画素の輝度値を参照してエラー画素の輝度値を補間する条件とのいずれかの条件設定を行う。   For example, when the correction unit 402a corrects the luminance value of the error pixel, the condition setting unit 406b refers to the luminance value of four pixels adjacent in the arrangement direction according to the detection result of the state detection unit 406a. Either a condition for interpolating the luminance value of the pixel or a condition for interpolating the luminance value of the error pixel with reference to the luminance values of the eight pixels around the error detection target pixel is set.

表示装置5は、映像ケーブルを介して処理装置4が生成した体内画像情報に対応する体内画像を受信して表示する。表示装置5は、液晶ディスプレイまたは有機EL(Electro Luminescence)ディスプレイを用いて構成される。   The display device 5 receives and displays the in-vivo image corresponding to the in-vivo image information generated by the processing device 4 via the video cable. The display device 5 is configured using a liquid crystal display or an organic EL (Electro Luminescence) display.

処置具6は、内視鏡2と併用され、例えば電気メスを用いて実現される。処置具6は、基端で制御装置7に接続し、内視鏡2に挿通可能な細長形状をなす挿通部61を有する。挿通部61の内部には、先端から表出可能な機能部61aが進退自在に挿通されている。処置具6では、制御装置7から高周波電流が供給されると、機能部61aが高周波電流による負荷または抵抗によって発熱し、該発熱により接触部位を焼灼する。   The treatment tool 6 is used in combination with the endoscope 2 and is realized using, for example, an electric knife. The treatment tool 6 has an insertion portion 61 that is connected to the control device 7 at the proximal end and has an elongated shape that can be inserted into the endoscope 2. A functional part 61a that can be exposed from the tip is inserted into the insertion part 61 so as to be able to advance and retreat. In the treatment instrument 6, when a high frequency current is supplied from the control device 7, the functional unit 61 a generates heat due to a load or resistance caused by the high frequency current, and the contact site is cauterized by the generated heat.

制御装置7は、入力部71と、制御部72と、を備える。制御部72は、入力部71に入力された指示信号に応じて、処置具6に対して高周波電流を供給する。また、制御部72は、処置具6に対する高周波電流の供給状態に関する情報を、内視鏡2近傍の外部状態にかかる情報として出力する。なお、制御部72は、制御部406の制御のもとで高周波電流を処置具6に供給するものであってもよい。なお、処置具6および制御装置7により、外部装置を構成する。   The control device 7 includes an input unit 71 and a control unit 72. The control unit 72 supplies a high-frequency current to the treatment instrument 6 according to the instruction signal input to the input unit 71. In addition, the control unit 72 outputs information regarding the supply state of the high-frequency current to the treatment instrument 6 as information regarding the external state in the vicinity of the endoscope 2. Note that the control unit 72 may supply a high-frequency current to the treatment instrument 6 under the control of the control unit 406. The treatment tool 6 and the control device 7 constitute an external device.

次に、処理装置4が行う補正処理について説明する。図3は、本実施の形態1にかかる内視鏡システムの処理装置が行う信号処理を示すフローチャートである。制御部406は、状態検知部406aが検知した検知結果を取得する(ステップS101)。状態検知部406aは、制御部72を介して処置具6への通電の有無を判断し、該判断した結果を検知結果として出力する。   Next, the correction process performed by the processing device 4 will be described. FIG. 3 is a flowchart illustrating signal processing performed by the processing apparatus of the endoscope system according to the first embodiment. The control unit 406 acquires the detection result detected by the state detection unit 406a (step S101). The state detection unit 406a determines whether or not the treatment instrument 6 is energized via the control unit 72, and outputs the determined result as a detection result.

制御部406は、取得した検知結果をもとに、処置具6が動作中であるか否かを判断する(ステップS102)。制御部406は、取得した検知結果をもとに、処置具6が動作中である、すなわち処置具6に高周波電流が流れていると判断した場合(ステップS102;Yes)、条件設定部406bに条件設定処理を行わせる(ステップS103)。   The control unit 406 determines whether or not the treatment tool 6 is operating based on the acquired detection result (step S102). When the control unit 406 determines that the treatment tool 6 is operating based on the acquired detection result, that is, a high-frequency current is flowing through the treatment tool 6 (step S102; Yes), the control unit 406 causes the condition setting unit 406b to Condition setting processing is performed (step S103).

条件設定部406bは、例えば、通常の補正処理として配列方向に沿って隣接する4画素の輝度値を参照してエラー画素の輝度値を補間する条件に設定されている場合、エラー検出対象の画素の周囲の8画素の輝度値を参照してエラー画素の輝度値を補間する条件に変更する。制御部406は、条件設定部406bによる条件設定処理が終了すると、ステップS106に移行する。   For example, when the condition setting unit 406b is set as a condition for interpolating the luminance value of the error pixel with reference to the luminance value of the four pixels adjacent in the arrangement direction as normal correction processing, the error detection target pixel Is changed to a condition for interpolating the luminance value of the error pixel with reference to the luminance value of the surrounding eight pixels. When the condition setting process by the condition setting unit 406b ends, the control unit 406 proceeds to step S106.

一方、制御部406は、取得した検知結果をもとに、処置具6が動作中でない、すなわち処置具6に高周波電流が流れていないと判断した場合(ステップS102;No)、ステップS104に移行する。   On the other hand, when the control unit 406 determines that the treatment tool 6 is not operating based on the acquired detection result, that is, no high-frequency current is flowing through the treatment tool 6 (step S102; No), the process proceeds to step S104. To do.

ステップS104では、制御部406は、設定されている補間条件が通常の補間条件、例えば配列方向に沿って隣接する4画素の輝度値を参照してエラー画素の輝度値を補間する条件であるか否かを判断する(ステップS104)。制御部406は、設定されている補間条件が通常の補間条件であると判断した場合(ステップS104;Yes)、ステップS106に移行する。   In step S104, the control unit 406 determines whether the set interpolation condition is a normal interpolation condition, for example, a condition for interpolating the luminance value of the error pixel with reference to the luminance values of four pixels adjacent in the arrangement direction. It is determined whether or not (step S104). When the control unit 406 determines that the set interpolation condition is a normal interpolation condition (step S104; Yes), the control unit 406 proceeds to step S106.

一方、制御部406は、設定されている補間条件が通常の補間条件でないと判断した場合(ステップS104;No)、ステップS105に移行する。ステップS105では、制御部406は、条件設定部406bによって補間条件を通常の補間条件に戻す処理を行う(ステップS105)。制御部406は、補間条件を通常に戻した後、ステップS106に移行する。   On the other hand, when the control unit 406 determines that the set interpolation condition is not a normal interpolation condition (step S104; No), the control unit 406 proceeds to step S105. In step S105, the control unit 406 performs processing for returning the interpolation condition to the normal interpolation condition by the condition setting unit 406b (step S105). After returning the interpolation condition to normal, the control unit 406 proceeds to step S106.

ステップS106では、制御部406は、内視鏡2のP/S変換部255から撮像信号を取得する(ステップS106)。取得されたシリアル形態の撮像信号は、S/P変換部401によってシリアル/パラレル変換され、画像処理部402およびエラー検出部403に出力される。   In step S106, the control unit 406 acquires an imaging signal from the P / S conversion unit 255 of the endoscope 2 (step S106). The acquired serial imaging signal is serial / parallel converted by the S / P converter 401 and output to the image processor 402 and the error detector 403.

その後、制御部406は、エラー検出部403によるエラー検出にかかる検出結果を取得する(ステップS107)。このとき、エラー検出部403は、予め設定されている閾値を用いて、エラー検出対象の画素の輝度値と周囲の画素の輝度値との差、およびこの閾値を比較することにより、エラー検出対象の画素がエラー画素であるか否かを判断する。このとき、エラー検出部403は、周囲の画素の輝度値として、例えば、複数の輝度値の平均値を用いる。エラー検出部403は、上述した差が閾値より大きければ、当該画素の輝度値が他の画素の輝度値に対して孤立しているため、エラー検出対象の画素がエラー画素であると判断する。エラー検出部403は、すべてのエラー検出対象の画素に対して上述した判断処理を行い、検出結果として制御部406に出力する。   Thereafter, the control unit 406 acquires a detection result related to error detection by the error detection unit 403 (step S107). At this time, the error detection unit 403 compares the difference between the luminance value of the pixel that is the error detection target and the luminance value of the surrounding pixels using a preset threshold value, and the threshold value, thereby detecting the error detection target. It is determined whether or not these pixels are error pixels. At this time, the error detection unit 403 uses, for example, an average value of a plurality of luminance values as the luminance value of surrounding pixels. If the above-described difference is greater than the threshold value, the error detection unit 403 determines that the error detection target pixel is an error pixel because the luminance value of the pixel is isolated from the luminance values of other pixels. The error detection unit 403 performs the above-described determination processing on all error detection target pixels and outputs the detection result to the control unit 406.

エラー検出にかかる検出結果を取得すると、補正部402aは、エラー画素と判断された画素の輝度値の補正を行う(ステップS108)。具体的には、補正部402aは、設定されている条件に基づき、周囲の画素の輝度値を参照して、当該エラー画素の輝度値に代えて周囲の画素の輝度値の統計的な代表値を補正値として補う補間処理を行う。このとき、補正部402aは、周囲の画素の輝度値の統計的な代表値として、例えば、複数の輝度値の平均値を参照する。   When the detection result related to the error detection is acquired, the correction unit 402a corrects the luminance value of the pixel determined to be an error pixel (step S108). Specifically, the correction unit 402a refers to the luminance value of the surrounding pixel based on the set condition, and replaces the luminance value of the error pixel with the statistical representative value of the luminance value of the surrounding pixel. Interpolation processing is performed to compensate for the correction value. At this time, the correction unit 402a refers to, for example, an average value of a plurality of luminance values as a statistical representative value of the luminance values of surrounding pixels.

画像処理部402は、上述した補間処理が施された撮像信号に対して、画像処理を施して画像信号(体内画像情報)の生成を行う。   The image processing unit 402 performs image processing on the imaging signal subjected to the above-described interpolation processing to generate an image signal (in-vivo image information).

上述した補正処理により、外乱によりノイズの発生確率が高い場合、画質は低下するものの、画像内のノイズを抑制し、見やすい画像を得ることができる。また、外乱によるノイズの発生確率が低い場合は、高画質の画像を取得することができる。   With the correction process described above, when the probability of occurrence of noise due to disturbance is high, the image quality is reduced, but noise in the image can be suppressed and an easy-to-view image can be obtained. In addition, when the probability of occurrence of noise due to disturbance is low, a high-quality image can be acquired.

上述した本実施の形態1によれば、状態検知部406aによる検知結果をもとに、処置具6に高周波電流が流れていない場合と、処置具6に高周波電流が流れている場合とでエラー画素の補間処理にかかる条件を変更するようにしたので、処置具6(電気メス)による外乱に起因するノイズを考慮した輝度値の補正を行うことができる。これにより、外部の環境によらず、適切な画像を得ることができる。   According to the first embodiment described above, based on the detection result of the state detection unit 406a, an error occurs when no high-frequency current flows through the treatment instrument 6 and when high-frequency current flows through the treatment instrument 6. Since the conditions related to the pixel interpolation processing are changed, it is possible to correct the luminance value in consideration of noise caused by disturbance caused by the treatment tool 6 (electric knife). Thereby, an appropriate image can be obtained regardless of the external environment.

なお、上述した実施の形態1では、状態検知部406aが、制御部72を介して処置具6への通電の有無を判断し、該判断した結果を検知結果として出力するものとして説明したが、処置具6への通電がある場合、条件設定部406bは、被検体を介して電気的に接続されているグランドを流れる電流の値を参照して条件の変更を行ってもよい。   In the first embodiment described above, the state detection unit 406a has been described as determining whether or not the treatment instrument 6 is energized via the control unit 72, and outputting the determined result as a detection result. When the treatment tool 6 is energized, the condition setting unit 406b may change the condition with reference to the value of the current flowing through the ground electrically connected through the subject.

なお、上述した実施の形態1では、条件設定部406bが、エラー画素の輝度値に対し、エラー検出対象の画素の周囲の画素の参照数を変更するものとして説明したが、補正部402aが前後のフレームの対応画素の輝度値をもとに、当該エラー画素に応じた輝度値を置き換えて補間する場合は、フレームの参照数を変更するものであってもよい。具体的には、条件設定部406bは、フレームの参照数を通常の処理と比して多くする。ここで、参照数が二以上である場合、輝度値として用いる値は、統計的な代表値であれば適用可能である。統計的な代表値としては、上述したように複数の輝度値の平均値であってもよいし、複数の輝度値のうちの最大値、最小値のいずれかであってもよい。   In Embodiment 1 described above, the condition setting unit 406b has been described as changing the reference number of pixels around the error detection target pixel with respect to the luminance value of the error pixel. When interpolation is performed by replacing the luminance value corresponding to the error pixel based on the luminance value of the corresponding pixel in the frame, the reference number of the frame may be changed. Specifically, the condition setting unit 406b increases the number of frame references as compared to normal processing. Here, when the reference number is two or more, the value used as the luminance value is applicable as long as it is a statistical representative value. As described above, the statistical representative value may be an average value of a plurality of luminance values, or may be either a maximum value or a minimum value among the plurality of luminance values.

また、上述した実施の形態1では、エラー検出部403が、周囲の画素の輝度値として平均値を用いるものとして説明したが、統計的な代表値として、複数の輝度値のうちの最大値、最小値のいずれかを用いるものであってもよい。   In Embodiment 1 described above, the error detection unit 403 has been described as using an average value as the luminance value of surrounding pixels. However, as a statistical representative value, the maximum value among a plurality of luminance values, Any one of the minimum values may be used.

また、上述した実施の形態1では、エラー検出部403が、エラー検出対象の画素の輝度値と周囲の画素の輝度値との差、および閾値を比較するものとして説明したが、周囲の画素の輝度値に代えて、エラー検出対象の画素を含むフレームの前後のフレームにおける対応画素の輝度値を用いるものであってもよい。   In the first embodiment described above, the error detection unit 403 has been described as comparing the difference between the luminance value of the error detection target pixel and the luminance value of the surrounding pixels, and the threshold value. Instead of the luminance value, the luminance value of the corresponding pixel in the frame before and after the frame including the error detection target pixel may be used.

(実施の形態1の変形例1)
図4は、本発明の実施の形態1の変形例1にかかる処理装置が行う信号処理を示すフローチャートである。上述した実施の形態1では、条件設定部406bが補間処理にかかる条件を変更するものとして説明したが、本変形例1では、条件設定部406bが設定する条件としてエンハンスのレベルを変更する。
(Modification 1 of Embodiment 1)
FIG. 4 is a flowchart illustrating signal processing performed by the processing device according to the first modification of the first embodiment of the present invention. In the first embodiment described above, the condition setting unit 406b has been described as changing the conditions for the interpolation process. However, in the first modification, the enhancement level is changed as a condition set by the condition setting unit 406b.

制御部406は、上述したステップS101およびS102のように、状態検知部406aが検知した検知結果を取得し(ステップS201)、処置具6が動作中であるか否かを判断する(ステップS202)。制御部406は、取得した検知結果をもとに、処置具6が動作中である、すなわち処置具6に高周波電流が流れていると判断した場合(ステップS202;Yes)、条件設定部406bに条件設定処理を行わせる(ステップS203)。   As in steps S101 and S102 described above, the control unit 406 acquires the detection result detected by the state detection unit 406a (step S201), and determines whether or not the treatment instrument 6 is operating (step S202). . When the control unit 406 determines that the treatment tool 6 is operating based on the acquired detection result, that is, a high-frequency current is flowing through the treatment tool 6 (step S202; Yes), the control unit 406 causes the condition setting unit 406b to Condition setting processing is performed (step S203).

条件設定部406bは、例えば、画像処理部402が通常の補正処理として行うエンハンスのレベルと比して、低いレベルに変更する。これにより、低いレベルに変更された後に画像処理部402によってエンハンス処理が施された画像は、通常のエンハンス処理が施された画像と比して、コントラストの低い(エッジの強調度が小さい)画像となる。制御部406は、条件設定部406bによる条件設定処理が終了すると、ステップS206に移行する。   For example, the condition setting unit 406b changes the level to a lower level than the enhancement level that the image processing unit 402 performs as a normal correction process. As a result, an image that has been subjected to enhancement processing by the image processing unit 402 after being changed to a low level has a lower contrast (an edge enhancement degree is smaller) than an image that has undergone normal enhancement processing. It becomes. When the condition setting process by the condition setting unit 406b is completed, the control unit 406 proceeds to step S206.

一方、制御部406は、取得した検知結果をもとに、処置具6が動作中でない、すなわち処置具6に高周波電流が流れていないと判断した場合(ステップS202;No)、ステップS204に移行する。   On the other hand, when the control unit 406 determines that the treatment tool 6 is not operating based on the acquired detection result, that is, the high-frequency current does not flow through the treatment tool 6 (step S202; No), the process proceeds to step S204. To do.

ステップS204では、制御部406は、設定されているエンハンスのレベルが通常設定されるレベルであるか否かを判断する(ステップS204)。制御部406は、設定されているレベルが通常のレベルであると判断した場合(ステップS204;Yes)、ステップS206に移行する。   In step S204, the control unit 406 determines whether or not the set enhancement level is a normally set level (step S204). When the control unit 406 determines that the set level is a normal level (step S204; Yes), the control unit 406 proceeds to step S206.

一方、制御部406は、設定されているエンハンスのレベルが通常のレベルでないと判断した場合(ステップS204;No)、ステップS205に移行する。ステップS205では、制御部406は、条件設定部406bによってエンハンスのレベルを通常のレベルに戻す処理を行う(ステップS205)。制御部406は、エンハンスのレベルを通常に戻した後、ステップS206に移行する。   On the other hand, when the control unit 406 determines that the set enhancement level is not a normal level (step S204; No), the control unit 406 proceeds to step S205. In step S205, the control unit 406 performs processing for returning the enhancement level to a normal level by the condition setting unit 406b (step S205). After returning the enhancement level to normal, the control unit 406 proceeds to step S206.

その後、上述したステップS106〜S108のように、制御部406は、内視鏡2のP/S変換部255から撮像信号を取得し(ステップS206)、エラー検出部403によるエラー検出にかかる検出結果を取得して(ステップS207)、補正部402aに、エラー画素と判断された画素の輝度値の補正を行わせる(ステップS208)。   Thereafter, as in steps S106 to S108 described above, the control unit 406 acquires an imaging signal from the P / S conversion unit 255 of the endoscope 2 (step S206), and a detection result related to error detection by the error detection unit 403. (Step S207), the correction unit 402a is caused to correct the luminance value of the pixel determined to be an error pixel (step S208).

上述した補正処理により、外乱によりノイズの発生確率が高い場合、画質は低下するものの、エンハンス処理により画像内のノイズが強調されることを抑制し、見やすい画像を得ることができる。   With the above-described correction processing, when the probability of occurrence of noise due to disturbance is high, the image quality is reduced, but enhancement of noise in the image due to enhancement processing can be suppressed, and an easy-to-view image can be obtained.

上述した本変形例1によれば、状態検知部406aによる検知結果をもとに、処置具6に高周波電流が流れていない場合と、処置具6に高周波電流が流れている場合とで画像処理部402によるエンハンスのレベルを変更するようにしたので、処置具6(電気メス)による外乱に起因するノイズを考慮した輝度値の補正を行うことができる。これにより、外部の環境によらず、適切な画像を得ることができる。   According to the first modification described above, based on the detection result by the state detection unit 406a, image processing is performed when no high-frequency current flows through the treatment instrument 6 and when high-frequency current flows through the treatment instrument 6. Since the level of enhancement by the unit 402 is changed, the luminance value can be corrected in consideration of noise caused by disturbance caused by the treatment tool 6 (electric knife). Thereby, an appropriate image can be obtained regardless of the external environment.

(実施の形態1の変形例2)
図5は、本発明の実施の形態1の変形例2にかかる内視鏡システムの概略構成を示すブロック図である。変形例2にかかる内視鏡システム1aは、上述した実施の形態1の構成に対し、処置具6および制御装置7に代えて、X線透視装置8と、通知部9とを備える。なお、X線透視装置8および通知部9により、外部装置を構成する。
(Modification 2 of Embodiment 1)
FIG. 5 is a block diagram illustrating a schematic configuration of the endoscope system according to the second modification of the first embodiment of the present invention. The endoscope system 1a according to the modification 2 includes an X-ray fluoroscopic device 8 and a notification unit 9 instead of the treatment tool 6 and the control device 7 with respect to the configuration of the first embodiment described above. The X-ray fluoroscopic device 8 and the notification unit 9 constitute an external device.

X線透視装置8は、内視鏡2と併用され、内視鏡2の先端部25の近傍に配設され、X線を出力するX線出力部81と、X線出力部81の出力動作を制御する制御装置82とを備える。X線透視装置8は、X線出力部81から出力させるX線を被検体に照射し、その透過度から被検体内部の透視画像を取得するものである。なお、X線透視装置8は、処理装置4とは独立して動作する。   The X-ray fluoroscopic device 8 is used in combination with the endoscope 2 and is disposed near the distal end portion 25 of the endoscope 2, and an X-ray output unit 81 that outputs X-rays and an output operation of the X-ray output unit 81 And a control device 82 for controlling. The X-ray fluoroscope 8 irradiates the subject with X-rays output from the X-ray output unit 81, and acquires a fluoroscopic image inside the subject from the transmittance. Note that the X-ray fluoroscopic device 8 operates independently of the processing device 4.

通知部9は、処理装置4と電気的に接続され、操作者からの入力に応じて処理装置4に信号を入力する。通知部9は、例えばフットスイッチを用いて実現され、操作者からの入力(スイッチの押下)により、押下されている間、処理装置4に対してスイッチが押下されている旨の信号(情報)を、内視鏡2近傍の外部状態にかかる情報として出力する。   The notification unit 9 is electrically connected to the processing device 4 and inputs a signal to the processing device 4 in accordance with an input from the operator. The notification unit 9 is realized by using, for example, a foot switch, and a signal (information) indicating that the switch is being pressed to the processing device 4 while being pressed by an input from the operator (pressing the switch). Is output as information relating to the external state in the vicinity of the endoscope 2.

図6は、本発明の実施の形態1の変形例2にかかる処理装置が行う信号処理を示すフローチャートである。制御部406は、通知部9から信号が入力されているか否かを判断する(ステップS301)。制御部406は、状態検知部406aへの信号の入力の有無を判断し、信号が入力されている、すなわちX線出力部81からX線が出力されている場合(ステップS301;Yes)、内視鏡2近傍の外部状態としてX線(電磁波)の影響を受けうる状態であると判断し、条件設定部406bに条件設定処理を行わせる(ステップS302)。条件設定部406bは、例えば上述したステップS103のような条件設定処理を行う。制御部406は、条件設定部406bによる条件設定処理が終了すると、ステップS305に移行する。   FIG. 6 is a flowchart illustrating signal processing performed by the processing device according to the second modification of the first embodiment of the present invention. The control unit 406 determines whether a signal is input from the notification unit 9 (step S301). The control unit 406 determines whether or not a signal is input to the state detection unit 406a. When a signal is input, that is, when an X-ray is output from the X-ray output unit 81 (step S301; Yes), It is determined that the external state in the vicinity of the endoscope 2 can be affected by X-rays (electromagnetic waves), and the condition setting unit 406b performs condition setting processing (step S302). The condition setting unit 406b performs the condition setting process as in step S103 described above, for example. When the condition setting process by the condition setting unit 406b ends, the control unit 406 proceeds to step S305.

一方、制御部406は、信号が入力されていない、すなわちX線出力部81からX線が出力されていない場合(ステップS301;No)、ステップS303に移行する。   On the other hand, when no signal is input, that is, when no X-ray is output from the X-ray output unit 81 (step S301; No), the control unit 406 proceeds to step S303.

ステップS303では、制御部406は、設定されている補間条件が通常の補間条件、例えば配列方向に沿って隣接する4画素の輝度値を参照してエラー画素の輝度値を補間する条件であるか否かを判断する(ステップS303)。制御部406は、設定されている補間条件が通常の補間条件であると判断した場合(ステップS303;Yes)、ステップS305に移行する。   In step S303, the control unit 406 determines whether the set interpolation condition is a normal interpolation condition, for example, a condition for interpolating the luminance value of the error pixel with reference to the luminance values of four pixels adjacent in the arrangement direction. It is determined whether or not (step S303). When the control unit 406 determines that the set interpolation condition is a normal interpolation condition (step S303; Yes), the control unit 406 proceeds to step S305.

一方、制御部406は、設定されている補間条件が通常の補間条件でないと判断した場合(ステップS303;No)、ステップS304に移行する。ステップS304では、制御部406は、条件設定部406bによって補間条件を通常の補間条件に戻す処理を行う(ステップS304)。制御部406は、補間条件を通常に戻した後、ステップS305に移行する。   On the other hand, when the control unit 406 determines that the set interpolation condition is not a normal interpolation condition (step S303; No), the control unit 406 proceeds to step S304. In step S304, the control unit 406 performs processing for returning the interpolation condition to the normal interpolation condition by the condition setting unit 406b (step S304). After returning the interpolation condition to normal, the control unit 406 proceeds to step S305.

その後、上述したステップS106〜S108のように、制御部406は、内視鏡2のP/S変換部255から撮像信号を取得し(ステップS305)、エラー検出部403によるエラー検出にかかる検出結果を取得して(ステップS306)、補正部402aに、エラー画素と判断された画素の輝度値の補正を行わせる(ステップS307)。   Thereafter, as in steps S106 to S108 described above, the control unit 406 acquires an imaging signal from the P / S conversion unit 255 of the endoscope 2 (step S305), and a detection result related to error detection by the error detection unit 403. Is acquired (step S306), and the correction unit 402a is caused to correct the luminance value of the pixel determined to be an error pixel (step S307).

上述した補正処理により、処理装置4とX線透視装置8とが電気的に接続されておらず、直接的に動作状態を判断できない場合であっても、通知部9を介して信号を入力することによって、外乱によりノイズの発生確率が高い場合、画質は低下するものの、画像内のノイズを抑制し、見やすい画像を得ることができる。   Even when the processing device 4 and the X-ray fluoroscopic device 8 are not electrically connected and the operation state cannot be directly determined by the correction processing described above, a signal is input via the notification unit 9. Thus, when the probability of occurrence of noise due to disturbance is high, the image quality is reduced, but noise in the image can be suppressed and an easy-to-view image can be obtained.

上述した本変形例2によれば、状態検知部406aに入力された信号をもとに、X線出力部81からX線が出力されている場合と、X線出力部81からX線が出力されていない場合とでエラー画素の補間処理にかかる条件を変更するようにしたので、X線出力部81による外乱に起因するノイズを考慮した輝度値の補正を行うことができる。これにより、外部の環境によらず、適切な画像を得ることができる。   According to the second modification described above, the X-ray is output from the X-ray output unit 81 and the X-ray is output from the X-ray output unit 81 based on the signal input to the state detection unit 406a. Since the conditions related to the error pixel interpolation process are changed depending on the case where the error is not performed, the X-ray output unit 81 can correct the luminance value in consideration of noise caused by the disturbance. Thereby, an appropriate image can be obtained regardless of the external environment.

なお、上述した変形例2において、通知部9は、信号の入力によってX線透視装置8が動作中である旨を通知できればよく、処理装置4に設けられていてもよいし、内視鏡2の操作部22に設けられていてもよい。また、通知部9は、処理装置4と電気的に接続されていれば、制御装置82に設けられていてもよい。   In the second modification described above, the notification unit 9 may be provided in the processing device 4 or the endoscope 2 as long as it can notify that the X-ray fluoroscopic device 8 is operating by inputting a signal. The operation unit 22 may be provided. The notification unit 9 may be provided in the control device 82 as long as it is electrically connected to the processing device 4.

また、上述した変形例2にかかる内視鏡システム1aにおいて、処置具6および制御装置7を組み合わせて使用してもよい。この際、処置具6への高周波電流の導通および通知部9からの信号の出力が同時にあった場合は、条件設定処理において、例えば、エラー検出対象の画素の周囲の画素の参照数を9以上に設定し、画像処理部402がエラー画素の輝度値を補間する。   Moreover, in the endoscope system 1a according to the second modification described above, the treatment tool 6 and the control device 7 may be used in combination. At this time, if high-frequency current conduction to the treatment instrument 6 and signal output from the notification unit 9 occur simultaneously, in the condition setting process, for example, the reference number of pixels around the error detection target pixel is 9 or more. The image processing unit 402 interpolates the luminance value of the error pixel.

(実施の形態1の変形例3)
図7は、本発明の実施の形態1の変形例3にかかる処理装置が行う信号処理を示すフローチャートである。上述した実施の形態1では、制御部72,406間の信号の入出力により条件設定部406bが補間処理にかかる条件を変更するものとして説明したが、本変形例3では、フレームごとの補正処理の回数に応じて、条件設定部406bが補間処理にかかる条件を変更する。
(Modification 3 of Embodiment 1)
FIG. 7 is a flowchart illustrating signal processing performed by the processing device according to the third modification of the first embodiment of the present invention. In the first embodiment described above, the condition setting unit 406b has been described as changing the conditions for the interpolation process by inputting and outputting signals between the control units 72 and 406. However, in the third modification, correction processing for each frame is performed. Depending on the number of times, the condition setting unit 406b changes the condition for the interpolation process.

制御部406は、内視鏡2のP/S変換部255から撮像信号を取得し(ステップS401)、エラー検出部403によるエラー検出にかかる検出結果を取得する(ステップS402)。ここでいう撮像信号は、1フレームの画像を構成する情報を含む信号を指す。制御部406は、検出結果をもとに、補正部402aによる補正処理が必要であるか否かを判断する(ステップS403)。ここで、制御部406は、補正部402aによる補正処理が必要であると判断した場合(ステップS403;Yes)、エラー画素と判断された画素の輝度値の補正を行わせる(ステップS404)。一方、制御部406は、補正部402aによる補正処理が必要でないと判断した場合(ステップS403;No)、ステップS412に移行する。   The control unit 406 acquires an imaging signal from the P / S conversion unit 255 of the endoscope 2 (step S401), and acquires a detection result related to error detection by the error detection unit 403 (step S402). The imaging signal here refers to a signal including information constituting an image of one frame. Based on the detection result, the control unit 406 determines whether correction processing by the correction unit 402a is necessary (step S403). If the control unit 406 determines that correction processing by the correction unit 402a is necessary (step S403; Yes), the control unit 406 corrects the luminance value of the pixel determined to be an error pixel (step S404). On the other hand, when the control unit 406 determines that the correction process by the correction unit 402a is not necessary (step S403; No), the control unit 406 proceeds to step S412.

制御部406は、補正部402aによる補正処理後、累積されている補正処理の回数を示す補正処理頻度を参照して、この補正処理頻度が閾値を超えているか否かを判断する(ステップS405)。ここで、制御部406は、補正処理頻度が閾値を超えていないと判断した場合(ステップS405;No)、ステップS406に移行する。   After the correction process by the correction unit 402a, the control unit 406 refers to the correction process frequency indicating the accumulated number of correction processes, and determines whether or not the correction process frequency exceeds the threshold (step S405). . Here, when the control unit 406 determines that the correction processing frequency does not exceed the threshold value (step S405; No), the control unit 406 proceeds to step S406.

ステップS406では、制御部406は、条件設定部406bによって補間条件が変更済みか否かを判断する(ステップS406)。ここで、制御部406は、条件設定部406bによって補間条件が変更済みでないと判断した場合(ステップS406;No)、ステップS409に移行する。一方、制御部406は、条件設定部406bによって補間条件が変更済みであると判断した場合(ステップS406;Yes)、ステップS407に移行する。なお、制御部406は、補間条件の変更の有無を、処理装置4の立ち上げ後、内視鏡2が接続されてから現在に至るまでに条件が変更されたか否かにより判断する。例えば、内視鏡2が交換された場合など異なる固有番号の内視鏡2が接続された際には、その都度条件変更の履歴はリセットされる。   In step S406, the control unit 406 determines whether or not the interpolation condition has been changed by the condition setting unit 406b (step S406). If the condition setting unit 406b determines that the interpolation condition has not been changed (step S406; No), the control unit 406 proceeds to step S409. On the other hand, when the condition setting unit 406b determines that the interpolation condition has been changed (step S406; Yes), the control unit 406 proceeds to step S407. Note that the control unit 406 determines whether or not the interpolation condition has been changed based on whether or not the condition has been changed after the processing apparatus 4 is started up to the present after the endoscope 2 is connected. For example, when an endoscope 2 having a different unique number is connected, such as when the endoscope 2 is replaced, the condition change history is reset each time.

ステップS407では、制御部406は、設定されている補間条件が通常の補間条件、例えば配列方向に沿って隣接する4画素の輝度値を参照してエラー画素の輝度値を補間する条件であるか否かを判断する(ステップS407)。制御部406は、設定されている補間条件が通常の補間条件であると判断した場合(ステップS407;Yes)、ステップS409に移行する。   In step S407, the control unit 406 determines whether the set interpolation condition is a normal interpolation condition, for example, a condition for interpolating the luminance value of the error pixel with reference to the luminance values of four pixels adjacent in the arrangement direction. It is determined whether or not (step S407). If the controller 406 determines that the set interpolation condition is a normal interpolation condition (step S407; Yes), the control unit 406 proceeds to step S409.

一方、制御部406は、設定されている補間条件が通常の補間条件でないと判断した場合(ステップS407;No)、ステップS408に移行する。ステップS408では、制御部406は、条件設定部406bによって補間条件を通常の補間条件に戻す処理を行う(ステップS408)。制御部406は、補間条件を通常に戻した後、ステップS409に移行する。   On the other hand, when the control unit 406 determines that the set interpolation condition is not a normal interpolation condition (step S407; No), the control unit 406 proceeds to step S408. In step S408, the control unit 406 performs processing for returning the interpolation condition to the normal interpolation condition by the condition setting unit 406b (step S408). After returning the interpolation condition to normal, the control unit 406 proceeds to step S409.

ステップS409では、補正処理頻度をカウントアップする(ステップS409)。カウントアップされた補正処理頻度は、記録部405に記録される。なお、既に補正処理頻度が記録されている場合は、今回カウントアップされた補正処理頻度への更新処理を行う。制御部406は、補正処理頻度をカウントアップ後、ステップS412に移行する。   In step S409, the correction processing frequency is counted up (step S409). The counted correction processing frequency is recorded in the recording unit 405. If the correction processing frequency has already been recorded, the update processing to the correction processing frequency counted up this time is performed. After counting up the correction processing frequency, the control unit 406 proceeds to step S412.

一方、制御部406は、補正処理頻度が閾値を超えていると判断した場合(ステップS405;Yes)、ステップS410に移行して、条件設定部406bによって補間条件が変更済みか否かを判断する(ステップS410)。ここで、制御部406は、条件設定部406bによって補間条件が変更済みでないと判断した場合(ステップS410;No)、補間条件を変更する(ステップS411)。一方、制御部406は、条件設定部406bによって補間条件が変更済みであると判断した場合(ステップSS410;Yes)、ステップS412に移行する。   On the other hand, when the control unit 406 determines that the correction processing frequency exceeds the threshold (step S405; Yes), the control unit 406 proceeds to step S410 and determines whether the interpolation condition has been changed by the condition setting unit 406b. (Step S410). If the condition setting unit 406b determines that the interpolation condition has not been changed (step S410; No), the control unit 406 changes the interpolation condition (step S411). On the other hand, if the condition setting unit 406b determines that the interpolation condition has been changed (step SS410; Yes), the control unit 406 proceeds to step S412.

その後、制御部406は、次のステップS412に移行して、次の撮像信号が入力されたか否かを判断する(ステップS412)。制御部406は、次の撮像信号が入力されたと判断した場合(ステップS412;Yes)、ステップS402に移行して、上述した処理を繰り返す。一方、制御部406は、次の撮像信号が入力されていないと判断した場合(ステップS412;No)、処理を終了する。   Thereafter, the control unit 406 proceeds to the next step S412 and determines whether or not the next imaging signal is input (step S412). If the control unit 406 determines that the next imaging signal has been input (step S412; Yes), the control unit 406 proceeds to step S402 and repeats the above-described processing. On the other hand, when the control unit 406 determines that the next imaging signal is not input (step S412; No), the process ends.

上述した本変形例3によれば、補正処理を行った回数に応じて、エラー画素の補間処理にかかる条件を変更するようにしたので、連続して入力される撮像信号に対し、X線出力部81による外乱に起因するノイズを考慮した輝度値の補正を行うことができる。これにより、外部の環境によらず、適切な画像を得ることができる。   According to the third modification described above, the conditions for the error pixel interpolation process are changed according to the number of times the correction process is performed. The luminance value can be corrected in consideration of noise caused by disturbance by the unit 81. Thereby, an appropriate image can be obtained regardless of the external environment.

なお、上述した変形例2,3では、条件設定部406bが補間処理にかかる条件を変更するものとして説明したが、本変形例1−1のように、条件設定部406bが設定する条件としてエンハンスのレベルを変更するものであってもよい。   In the second and third modification examples described above, the condition setting unit 406b has been described as changing the conditions for the interpolation process. However, as in the case of the first modification example, the condition setting unit 406b is set as a condition to be enhanced. The level may be changed.

(実施の形態2)
次に、本発明の実施の形態2について説明する。図8は、本発明の実施の形態2にかかる内視鏡システムの概略構成を示すブロック図である。なお、上述した構成と同一の構成には同一の符号を付して説明する。本実施の形態2にかかる内視鏡システム1bは、上述した実施の形態1の構成に加え、符号化部258と、記憶部259と、復号部407と、を備える。
(Embodiment 2)
Next, a second embodiment of the present invention will be described. FIG. 8 is a block diagram illustrating a schematic configuration of the endoscope system according to the second embodiment of the present invention. In addition, the same code | symbol is attached | subjected and demonstrated to the structure same as the structure mentioned above. The endoscope system 1b according to the second embodiment includes an encoding unit 258, a storage unit 259, and a decoding unit 407 in addition to the configuration of the first embodiment described above.

本実施の形態2にかかる内視鏡2aの先端部25aは、上述した先端部25の構成に対し、撮像信号を符号化する符号化部258と、符号化部258が符号化処理を施す際に用いる変換テーブル2591を記憶する記憶部259と、をさらに備える。また、本実施の形態2にかかる処理装置4aは、上述した処理装置4の構成に対し、復号部407をさらに備える。本実施の形態2において、撮像素子は、センサ部253、AFE部254、P/S変換部255、制御部256、符号化部258および記憶部259により構成される。   The distal end portion 25a of the endoscope 2a according to the second embodiment includes an encoding unit 258 that encodes an imaging signal and an encoding unit 258 that performs encoding processing on the configuration of the distal end portion 25 described above. And a storage unit 259 for storing a conversion table 2591 used in the above. The processing device 4a according to the second embodiment further includes a decoding unit 407 in addition to the configuration of the processing device 4 described above. In the second embodiment, the imaging element includes a sensor unit 253, an AFE unit 254, a P / S conversion unit 255, a control unit 256, an encoding unit 258, and a storage unit 259.

符号化部258は、AFE部254とP/S変換部255との間に設けられ、AEF部254から出力された撮像信号に対し、誤り訂正符号化およびNビット/Mビット符号化(N<M、以下、ビットを「b」と表記する)の処理を施して、P/S変換部255に出力する。符号化部258は、撮像信号に対し、例えば、記憶部259に記憶されている変換テーブル2591をもとに、8b/10b符号化の処理を施して、8bの撮像信号を10bの撮像信号に変換する。   The encoding unit 258 is provided between the AFE unit 254 and the P / S conversion unit 255, and performs error correction encoding and N-bit / M-bit encoding (N <) on the imaging signal output from the AEF unit 254. M, hereinafter, the bit is expressed as “b”), and outputs the result to the P / S converter 255. The encoding unit 258 performs 8b / 10b encoding processing on the imaging signal based on, for example, the conversion table 2591 stored in the storage unit 259, and converts the 8b imaging signal into a 10b imaging signal. Convert.

復号部407は、S/P変換部401と画像処理部402との間に設けられ、S/P変換部401から出力された撮像信号に対し、誤り訂正復号およびMb/Nb復号の処理を施して、画像処理部402およびエラー検出部403に出力する。   The decoding unit 407 is provided between the S / P conversion unit 401 and the image processing unit 402, and performs error correction decoding and Mb / Nb decoding processing on the imaging signal output from the S / P conversion unit 401. Are output to the image processing unit 402 and the error detection unit 403.

次に、内視鏡2aが行う撮像信号取得処理について説明する。図9は、本実施の形態2にかかる内視鏡が行う撮像信号取得処理を示すフローチャートである。以下、制御部256の制御のもと、各部が動作しているものとして説明する。センサ部253は、読み出し部253bを介して受光部253aが光電変換した電気信号(撮像信号)を取得する(ステップS501)。   Next, an imaging signal acquisition process performed by the endoscope 2a will be described. FIG. 9 is a flowchart illustrating an imaging signal acquisition process performed by the endoscope according to the second embodiment. In the following description, it is assumed that each unit is operating under the control of the control unit 256. The sensor unit 253 acquires an electrical signal (imaging signal) photoelectrically converted by the light receiving unit 253a via the reading unit 253b (step S501).

その後、AFE部254が、センサ部253から出力された撮像信号に対して信号処理を施す(ステップS502)。AFE部254から信号処理が施された撮像信号が出力されると、符号化部258が、この撮像信号に対して符号化の処理を施す(ステップS503)。具体的には、符号化部258は、AFE部254から出力された撮像信号に対して、まず誤り訂正符号化の処理を施し、その後Nビット/Mビット符号化(本実施の形態2では、8b/10b符号化)の処理を施す。   Thereafter, the AFE unit 254 performs signal processing on the imaging signal output from the sensor unit 253 (step S502). When the imaging signal subjected to signal processing is output from the AFE unit 254, the encoding unit 258 performs encoding processing on the imaging signal (step S503). Specifically, the coding unit 258 first performs error correction coding processing on the imaging signal output from the AFE unit 254, and then performs N-bit / M-bit coding (in the second embodiment, 8b / 10b encoding) is performed.

符号化部258により符号化処理が施された撮像信号は、P/S変換部255によりパラレル/シリアル変換され、処理装置4aに出力される(ステップS504)。   The imaging signal subjected to the encoding process by the encoding unit 258 is parallel / serial converted by the P / S conversion unit 255 and output to the processing device 4a (step S504).

つづいて、処理装置4aが行う補正処理について説明する。図10は、本実施の形態2にかかる処理装置が行う信号処理を示すフローチャートである。制御部406は、状態検知部406aが検知した検知結果を取得する(ステップS601)。   Next, correction processing performed by the processing device 4a will be described. FIG. 10 is a flowchart illustrating signal processing performed by the processing apparatus according to the second embodiment. The control unit 406 acquires the detection result detected by the state detection unit 406a (step S601).

制御部406は、取得した検知結果をもとに、処置具6が動作中であるか否かを判断する(ステップS602)。制御部406は、取得した検知結果をもとに、処置具6が動作中であると判断した場合(ステップS602;Yes)、条件設定部406bに条件設定処理を行わせる(ステップS603)。制御部406は、条件設定部406bによる条件設定処理が終了すると、ステップS606に移行する。   The control unit 406 determines whether or not the treatment tool 6 is operating based on the acquired detection result (step S602). If the control unit 406 determines that the treatment instrument 6 is operating based on the acquired detection result (step S602; Yes), the control unit 406 causes the condition setting unit 406b to perform condition setting processing (step S603). When the condition setting process by the condition setting unit 406b ends, the control unit 406 proceeds to step S606.

一方、制御部406は、取得した検知結果をもとに、処置具6が動作中でないと判断した場合(ステップS602;No)、ステップS604に移行する。   On the other hand, when the control unit 406 determines that the treatment tool 6 is not operating based on the acquired detection result (step S602; No), the control unit 406 proceeds to step S604.

ステップS604では、制御部406は、設定されている補間条件が通常の補間条件、例えば配列方向に沿って隣接する4画素の輝度値を参照してエラー画素の輝度値を補間する条件であるか否かを判断する(ステップS604)。制御部406は、設定されている補間条件が通常の補間条件であると判断した場合(ステップS604;Yes)、ステップS606に移行する。   In step S604, the control unit 406 determines whether the set interpolation condition is a normal interpolation condition, for example, a condition for interpolating the luminance value of the error pixel with reference to the luminance values of four pixels adjacent in the arrangement direction. It is determined whether or not (step S604). If the control unit 406 determines that the set interpolation condition is a normal interpolation condition (step S604; Yes), the control unit 406 proceeds to step S606.

一方、制御部406は、設定されている補間条件が通常の補間条件でないと判断した場合(ステップS604;No)、ステップS605に移行する。ステップS605では、制御部406は、条件設定部406bによって補間条件を通常の補間条件に戻す処理を行う(ステップS605)。制御部406は、補間条件を通常に戻した後、ステップS606に移行する。   On the other hand, when the control unit 406 determines that the set interpolation condition is not a normal interpolation condition (step S604; No), the control unit 406 proceeds to step S605. In step S605, the control unit 406 performs processing for returning the interpolation condition to the normal interpolation condition by the condition setting unit 406b (step S605). After returning the interpolation condition to normal, the control unit 406 proceeds to step S606.

ステップS606では、制御部406は、内視鏡2aのP/S変換部255から撮像信号を取得する(ステップS606)。取得されたシリアル形態の撮像信号は、S/P変換部401によってシリアル/パラレル変換され、復号部407に出力される。復号部407は、入力された撮像信号に対して、Mb/Nb(10b/8b)復号の処理を施す(ステップS607)。   In step S606, the control unit 406 acquires an imaging signal from the P / S conversion unit 255 of the endoscope 2a (step S606). The acquired serial imaging signal is serial / parallel converted by the S / P converter 401 and output to the decoder 407. The decoding unit 407 performs Mb / Nb (10b / 8b) decoding processing on the input imaging signal (step S607).

ここで、制御部406は、復号部407による復号化は可能であるか否かを判断する(ステップS608)。具体的には、制御部406は、復号部407が処理を施した信号のデータ列が、記録部405に予め記憶されている複数のデータ列のいずれかと一致するか否かを判断する。制御部406は、判断の結果、復号部407が処理を施した信号のデータ列が、複数のデータ列のいずれかと一致する場合は復号化が可能であると判断し、複数のデータ列と一致しない場合は復号化が不可能であると判断する。   Here, the control unit 406 determines whether or not the decoding by the decoding unit 407 is possible (step S608). Specifically, the control unit 406 determines whether the data string of the signal processed by the decoding unit 407 matches any of a plurality of data strings stored in advance in the recording unit 405. As a result of the determination, the control unit 406 determines that decoding is possible when the data string of the signal processed by the decoding unit 407 matches any of the plurality of data strings, and matches the plurality of data strings. If not, it is determined that decoding is impossible.

制御部406は、復号部407による復号化は不可能であると判断した場合(ステップS608;No)、前後のフレームの画素の輝度値を参照して、画素の補正処理を施す(ステップS609)。ステップS609による画素補正処理後、制御部406はステップS610に移行する。一方、制御部406は、復号部407による復号化は可能であると判断した場合(ステップS608;Yes)、ステップS610に移行する。   If the control unit 406 determines that the decoding by the decoding unit 407 is impossible (step S608; No), the control unit 406 refers to the luminance values of the pixels in the previous and subsequent frames and performs pixel correction processing (step S609). . After the pixel correction process in step S609, the control unit 406 proceeds to step S610. On the other hand, when the control unit 406 determines that the decoding by the decoding unit 407 is possible (step S608; Yes), the control unit 406 proceeds to step S610.

ステップS610では、復号部407が、入力された撮像信号に対して、誤り訂正復号の処理を施す(ステップS610)。その後、制御部406は、誤り訂正復号の処理が施された撮像信号に対して、エラー検出部403によるエラー検出を行う(ステップS611)。   In step S610, the decoding unit 407 performs error correction decoding processing on the input imaging signal (step S610). After that, the control unit 406 performs error detection by the error detection unit 403 on the imaging signal that has been subjected to the error correction decoding process (step S611).

エラー検出部403は、上述した差が閾値より大きければ(ステップS611;No)、当該画素の輝度値が他の画素の輝度値に対して孤立しているため、エラー検出対象の画素がエラー画素であると判断する。一方、エラー検出部403は、上述した差が閾値より小さければ(ステップS611;Yes)、エラー検出対象の画素がエラー画素ではないと判断する。エラー検出部403は、すべてのエラー検出対象の画素に対して上述した判断処理を行い、検出結果として制御部406に出力する。   If the above-described difference is larger than the threshold value (No in step S611), the error detection unit 403 determines that the error detection target pixel is an error pixel because the luminance value of the pixel is isolated from the luminance values of other pixels. It is judged that. On the other hand, if the above-described difference is smaller than the threshold value (step S611; Yes), the error detection unit 403 determines that the error detection target pixel is not an error pixel. The error detection unit 403 performs the above-described determination processing on all error detection target pixels and outputs the detection result to the control unit 406.

制御部406は、エラー検出部403による検出結果を取得し、エラー画素があると判断した場合は、ステップS612に移行して、画素補正処理を行う(ステップS612)。具体的には、補正部402aは、設定されている条件に基づき、周囲の画素の輝度値を参照して、当該エラー画素の輝度値を補正して、エラー画素に応じてこの補正値を補う補間処理を行う。制御部406は、画素補正処理が完了すると、補正処理を終了する。これに対し、制御部406は、ステップS611においてエラー画素がないと判断した場合は、補正処理を終了する。   If the control unit 406 acquires the detection result from the error detection unit 403 and determines that there is an error pixel, the control unit 406 proceeds to step S612 and performs pixel correction processing (step S612). Specifically, the correction unit 402a corrects the luminance value of the error pixel with reference to the luminance value of the surrounding pixels based on the set condition, and compensates the correction value according to the error pixel. Perform interpolation processing. When the pixel correction process is completed, the control unit 406 ends the correction process. In contrast, if the control unit 406 determines in step S611 that there is no error pixel, the control unit 406 ends the correction process.

その後、画像処理部402は、補正処理により得られた撮像信号に対して、上述した画像処理を施して画像信号(体内画像情報)の生成を行う。   Thereafter, the image processing unit 402 performs the above-described image processing on the imaging signal obtained by the correction process, and generates an image signal (in-vivo image information).

上述した補正処理により、外乱によりノイズの発生確率が高い場合、画質は低下するものの、画像内のノイズを抑制し、見やすい画像を得ることができる。   With the correction process described above, when the probability of occurrence of noise due to disturbance is high, the image quality is reduced, but noise in the image can be suppressed and an easy-to-view image can be obtained.

上述した本実施の形態2によれば、実施の形態1と同様、状態検知部406aによる検知結果をもとに、処置具6に高周波電流が流れていない場合と、処置具6に高周波電流が流れている場合とでエラー画素の補間処理にかかる条件を変更するようにしたので、処置具6(電気メス)による外乱に起因するノイズを考慮した輝度値の補正を行うことができる。これにより、外部の環境によらず、適切な画像を得ることができる。   According to the second embodiment described above, as in the first embodiment, based on the detection result by the state detection unit 406a, when the high-frequency current does not flow through the treatment instrument 6, and when the high-frequency current flows through the treatment instrument 6. Since the conditions related to the interpolation processing of the error pixel are changed depending on whether the current is flowing, the luminance value can be corrected in consideration of noise caused by disturbance caused by the treatment tool 6 (electric knife). Thereby, an appropriate image can be obtained regardless of the external environment.

また、上述した本実施の形態2によれば、内視鏡2a側で撮像信号に符号化処理を施し、処理装置4a側で復号して信号のエラー等に対する画素補正処理を施すようにしたので、誤り訂正能力(ビット誤り訂正)を超えた通信エラーが発生した場合であっても、画像の観察性能を確保することができる。これにより、信号における各種エラーに対して対応することができるため、装置の物理設計の最適化により、設計および製造にかかるコストの低減を可能とする。   Further, according to the second embodiment described above, the imaging signal is encoded on the endoscope 2a side, decoded on the processing device 4a side, and subjected to pixel correction processing for signal errors and the like. Even when a communication error exceeding the error correction capability (bit error correction) occurs, the image observation performance can be ensured. As a result, various errors in the signal can be dealt with, and the cost for design and manufacturing can be reduced by optimizing the physical design of the apparatus.

(実施の形態3)
次に、本発明の実施の形態3について説明する。図11は、本発明の実施の形態3にかかる内視鏡システムの概略構成を示すブロック図である。なお、上述した構成と同一の構成には同一の符号を付して説明する。本実施の形態3にかかる内視鏡システム1cの内視鏡2bは、上述した実施の形態2の構成に対し、符号化部258に代えて符号化部258aを先端部25bに備える。
(Embodiment 3)
Next, a third embodiment of the present invention will be described. FIG. 11 is a block diagram illustrating a schematic configuration of the endoscope system according to the third embodiment of the present invention. In addition, the same code | symbol is attached | subjected and demonstrated to the structure same as the structure mentioned above. The endoscope 2b of the endoscope system 1c according to the third embodiment includes an encoding unit 258a in the distal end portion 25b in place of the encoding unit 258 with respect to the configuration of the second embodiment described above.

従来、例えばデジタル化した撮像信号の送受信が行われる内視鏡システムにおいて、0および1からなる8ビットのバイナリデータとしての撮像信号を、10ビットのバイナリデータに符号化して送信する際、十個の文字列のうち、0と比して1が多いバイナリデータと、1と比して0が多いバイナリデータとを交互に送信することによって、経時的にみたときのDCバランスを安定化させている(例えば、特許第1754314号明細書を参照)。   Conventionally, for example, in an endoscope system in which digitized imaging signals are transmitted and received, when an imaging signal as binary data of 0 and 1 is encoded into 10-bit binary data and transmitted, By alternately transmitting binary data having more 1 than 0 and binary data having more 0 than 1, the DC balance over time can be stabilized. (See, for example, Japanese Patent No. 1754314).

ところで、撮像信号の通信にかかるマージンの検査を行う際、時間にかかるマージンは、送信回路にジッタ(揺らぎ)を付与したり、受信クロック位相を変化させたりしてデータを比較することによって検査を行うことができる。   By the way, when performing a margin inspection for imaging signal communication, the time-consuming margin is checked by comparing data by adding jitter (fluctuation) to the transmission circuit or changing the reception clock phase. It can be carried out.

しかしながら、振幅にかかるマージンの検査は、受信端側で波形を取得して該波形を用いて検査を行う必要があり、検査に時間を要していた。また、送受信の経路において、中継器が用いられる場合は、中継器における受信端での波形を取得して検査を行う必要があった。このため、振幅のマージンを容易に検査することが求められていた。   However, the inspection of the margin related to the amplitude needs to acquire the waveform on the receiving end side and perform the inspection using the waveform, and the inspection takes time. In addition, when a repeater is used in the transmission / reception path, it is necessary to perform an inspection by acquiring a waveform at the receiving end of the repeater. For this reason, it has been required to easily inspect the amplitude margin.

符号化部258aは、AFE部254とP/S変換部255との間に設けられ、AEF部254から出力された撮像信号に対し、誤り訂正符号化およびNビット/Mビット符号化(N<M、以下、ビットを「b」と表記する)の処理を施して、P/S変換部255に出力する。符号化部258aは、変換テーブルを二つ有し、撮像信号に対し、例えば、記憶部259に記憶されている変換テーブル(RD+変換テーブル259a、RD−変換テーブル259b)をもとに、8b/10b符号化の処理を施して、8bの撮像信号(バイナリデータ)を10bの撮像信号(バイナリデータ)に変換する。   The encoding unit 258a is provided between the AFE unit 254 and the P / S conversion unit 255, and performs error correction encoding and N-bit / M-bit encoding (N <) on the imaging signal output from the AEF unit 254. M, hereinafter, the bit is expressed as “b”), and outputs the result to the P / S converter 255. The encoding unit 258a has two conversion tables. Based on the conversion tables (RD + conversion table 259a, RD-conversion table 259b) stored in the storage unit 259, for example, 8b / 10b encoding processing is performed to convert the 8b imaging signal (binary data) into a 10b imaging signal (binary data).

図12は、本発明の実施の形態3にかかる内視鏡システムの符号化部の構成を説明する図である。符号化部258aは、AFE部254が生成した電気信号に対応する8ビットのバイナリデータ(撮像信号)を、誤り訂正符号を含み、0と比して1が多い10ビットのバイナリデータに変換して8ビット/10ビット符号化の処理を施すRD+変換部2581(第1変換部)と、AFE部254が生成した電気信号に対応する8ビットのバイナリデータ(撮像信号)を、誤り訂正符号を含み、1と比して0が多い10ビットのバイナリデータに変換して8ビット/10ビット符号化の処理を施すRD−変換部2582(第2変換部)と、RD+変換部2581およびRD−変換部2582によってそれぞれ変換され、入力された撮像信号に対し、いずれか一方の変換部を選択し、選択した変換部により変換された撮像信号を出力するセレクタ2583と、外部からの信号の入力をトリガーとしてハイ(H)またはロー(L)レベルにパルスを切り替えつつ、切り替えたパルスをセレクタ2583に出力して、セレクタ2583による選択態様を制御する選択制御部2584と、を有する。選択制御部2584は、例えばフリップフロップを用いて実現される。   FIG. 12 is a diagram illustrating the configuration of the encoding unit of the endoscope system according to the third embodiment of the present invention. The encoding unit 258a converts the 8-bit binary data (imaging signal) corresponding to the electrical signal generated by the AFE unit 254 into 10-bit binary data that includes an error correction code and has 1 more than 0. RD + conversion unit 2581 (first conversion unit) that performs 8-bit / 10-bit encoding processing and 8-bit binary data (imaging signal) corresponding to the electrical signal generated by the AFE unit 254, and error correction code Including an RD-conversion unit 2582 (second conversion unit) that converts the data into 10-bit binary data, which has more 0 than 1 and performs an 8-bit / 10-bit encoding process, an RD + conversion unit 2581, and an RD- A selector that selects either one of the conversion signals converted and input by the conversion unit 2582 and outputs the image signal converted by the selected conversion unit. 2583 and a selection control unit that controls the selection mode by the selector 2583 by switching the pulse to a high (H) or low (L) level using an external signal input as a trigger and outputting the switched pulse to the selector 2583 2584. The selection control unit 2584 is realized using, for example, a flip-flop.

図13は、本実施の形態3にかかる処理装置が行う信号処理を説明する図であって、各部の信号の出力パターンを示す図である。図14は、本実施の形態3にかかる処理装置が行う信号処理を説明する図であって、DCバランスが確保されている場合の波形を示す図である。各部は、処理装置4aから送られるクロックにしたがって動作する。ここで、通常の処理、例えば内視鏡2bの撮像動作を行う際、選択制御部2584には、Hレベルのテストモード信号が入力されている。これにより、選択制御部2584は、クロックにしたがってHレベルのパルスとLレベルのパルスとを交互に出力する。   FIG. 13 is a diagram for explaining signal processing performed by the processing apparatus according to the third embodiment, and is a diagram illustrating output patterns of signals of the respective units. FIG. 14 is a diagram for explaining signal processing performed by the processing apparatus according to the third embodiment, and is a diagram illustrating a waveform when DC balance is ensured. Each unit operates in accordance with a clock sent from the processing device 4a. Here, when performing normal processing, for example, an imaging operation of the endoscope 2b, an H level test mode signal is input to the selection control unit 2584. Accordingly, the selection control unit 2584 alternately outputs H level pulses and L level pulses in accordance with the clock.

セレクタ2583は、例えば選択制御部2584からLレベルのパルスが入力された場合に、RD+変換部2581により変換された撮像信号を出力し、Hレベルのパルスが入力された場合に、RD−変換部2582により変換された撮像信号を出力する。通常の処理において、セレクタ2583は、選択制御部2584からHレベルのパルスとLレベルのパルスとが交互に入力されるため、クロックにしたがって、RD+変換部2581およびRD−変換部2582によってそれぞれ変換された撮像信号を交互に出力する。これにより、通常、内視鏡2bにより、撮像信号を送受信する場合は、図14に示すように、0VからみたHレベルとLレベルとが均等になり、経時的にみたときのDCバランスが安定化された状態となっている。   For example, when an L level pulse is input from the selection control unit 2584, the selector 2583 outputs an imaging signal converted by the RD + conversion unit 2581, and when an H level pulse is input, the selector RD 8383 The imaging signal converted by 2582 is output. In normal processing, the selector 2583 receives H level pulses and L level pulses alternately from the selection control unit 2584, and therefore is converted by the RD + conversion unit 2581 and the RD− conversion unit 2582 according to the clock. The captured image signal is output alternately. Thus, normally, when an imaging signal is transmitted / received by the endoscope 2b, as shown in FIG. 14, the H level and the L level viewed from 0V are equalized, and the DC balance when viewed with time is stable. It has become a state.

これに対し、振幅にかかるマージンの検査を行う場合、先端部25bが検査モードに切り替わると、選択制御部2584にはLレベルのテストモード信号が入力される。なお、上述したように、通常の処理におけるテストモード信号は、Hレベルで入力されている。選択制御部2584では、Lレベルのテストモード信号が入力されると、パルスの切り替え動作が停止する。例えば、図13では、Hレベルのテストモード信号の入力により、出力(OUT)のパルスがLレベルに固定される。   On the other hand, when performing a margin inspection concerning amplitude, when the tip 25b is switched to the inspection mode, an L-level test mode signal is input to the selection control unit 2584. As described above, the test mode signal in the normal process is input at the H level. In the selection control unit 2584, when an L-level test mode signal is input, the pulse switching operation stops. For example, in FIG. 13, the output (OUT) pulse is fixed at the L level by the input of the test mode signal at the H level.

この場合、選択制御部2584からセレクタ2583に入力される信号は、Lレベルに固定される。このため、セレクタ2583は、選択する変換部も固定される。例えば、図13では、RD+変換部2581によって変換された信号を連続的に出力する。   In this case, the signal input from selection control unit 2584 to selector 2583 is fixed at the L level. For this reason, the selector 2583 also fixes the conversion unit to be selected. For example, in FIG. 13, the signals converted by the RD + conversion unit 2581 are continuously output.

セレクタ2583から出力される信号が、一方の変換部に固定されると、DCバランスが崩れる。図15は、本実施の形態3にかかる処理装置が行う信号処理を説明する図であって、RD+変換部2581によって変換された信号が、RD−変換部2582によって変換された信号と比して多く出力された場合の波形を示す図である。   When the signal output from the selector 2583 is fixed to one conversion unit, the DC balance is lost. FIG. 15 is a diagram for explaining signal processing performed by the processing apparatus according to the third embodiment, in which the signal converted by the RD + conversion unit 2581 is compared with the signal converted by the RD− conversion unit 2582. It is a figure which shows the waveform at the time of outputting many.

RD+変換部2581によって変換された信号が、RD−変換部2582によって変換された信号と比して多く出力された場合、時間積分値が0Vになるように調整されると、0Vに対して波形が低下し、DCバランスが崩れる。   When the signal converted by the RD + conversion unit 2581 is output more than the signal converted by the RD− conversion unit 2582, when the time integration value is adjusted to be 0V, the waveform with respect to 0V Decreases and the DC balance is lost.

この際、先端部25bと処理装置4aとの間の信号の送受信が可能であれば、図15の状態のようなDCバランスが崩れた状態であっても信号の送受信が可能であることが確認できる。すなわち、図15に示す状態での送受信によって、バランスが崩れた際の送受信におけるLレベルのマージンを確認することができる。なお、送受信の確認は、表示装置5などに受信したデータを表示させて使用者が確認したり、受信した信号が、要求した信号と一致するか否かを制御部406が判断したりすることにより行われる。   At this time, if signals can be transmitted and received between the tip 25b and the processing device 4a, it is confirmed that signals can be transmitted and received even when the DC balance is lost as in the state of FIG. it can. That is, the transmission / reception in the state shown in FIG. 15 can confirm the L level margin in transmission / reception when the balance is lost. For confirmation of transmission / reception, the received data is displayed on the display device 5 or the like to be confirmed by the user, or the control unit 406 determines whether or not the received signal matches the requested signal. Is done.

図16は、本実施の形態3にかかる処理装置が行う信号処理を説明する図であって、RD−変換部2582によって変換された信号が、RD+変換部2581によって変換された信号と比して多く出力された場合の波形を示す図である。   FIG. 16 is a diagram for explaining signal processing performed by the processing apparatus according to the third embodiment, in which the signal converted by the RD− conversion unit 2582 is compared with the signal converted by the RD + conversion unit 2581. It is a figure which shows the waveform at the time of outputting many.

テストモード信号がHレベルで入力され、選択制御部2584の出力がHレベルに切り替わった後、テストモード信号がLレベルになると、選択制御部2584からセレクタ2583に入力される信号は、Hレベルに固定される(図13参照)。これにより、セレクタ2583は、RD−変換部2582によって変換された信号を連続的に出力する。   After the test mode signal is inputted at the H level and the output of the selection control unit 2584 is switched to the H level, when the test mode signal becomes the L level, the signal inputted from the selection control unit 2584 to the selector 2583 becomes the H level. It is fixed (see FIG. 13). Thereby, the selector 2583 continuously outputs the signal converted by the RD-converter 2582.

RD−変換部2582によって変換された信号が、RD+変換部2581によって変換された信号と比して多く出力された場合、時間積分値が0Vになるように調整されると、0Vに対して波形が上昇し、DCバランスが崩れる。   When the signal converted by the RD-conversion unit 2582 is output more than the signal converted by the RD + conversion unit 2581, when the time integration value is adjusted to be 0V, the waveform with respect to 0V Rises and the DC balance is lost.

この際、先端部25bと処理装置4aとの間の信号の送受信が可能であれば、図16の状態のようなDCバランスが崩れた状態であっても信号の送受信が可能であることが確認できる。すなわち、図16に示す状態での送受信によって、バランスが崩れた際の送受信におけるHレベルのマージンを確認することができる。   At this time, if it is possible to transmit and receive signals between the tip portion 25b and the processing device 4a, it is confirmed that signals can be transmitted and received even when the DC balance is lost as in the state of FIG. it can. That is, the transmission / reception in the state shown in FIG. 16 makes it possible to confirm an H level margin in transmission / reception when the balance is lost.

上述した実施の形態3によれば、一方の変換部を固定して、この変換部から出力される信号を連続して送信することでDCバランスを崩し、該信号の受信状態を確認することによって、通信における振幅のマージンを確認することができる。これにより、一方の変換部を固定して信号を出力するのみで振幅のマージンを容易に検査することができる。   According to the third embodiment described above, by fixing one conversion unit and continuously transmitting the signal output from this conversion unit, the DC balance is broken and the reception state of the signal is confirmed. The margin of amplitude in communication can be confirmed. As a result, the amplitude margin can be easily inspected simply by fixing one of the conversion units and outputting a signal.

なお、上述したマージンの検査は、例えば製品出荷前に行われる検査に含まれる。また、上述したマージンの検査は、製品使用前のキャリブレーション処理として行われるものであってもよいし、使用する内視鏡が変わる際に、新規に用いる内視鏡に対して行われるものであってもよい。   The margin inspection described above is included in, for example, an inspection performed before product shipment. Further, the above-described margin inspection may be performed as a calibration process before using the product, or may be performed on a newly used endoscope when the endoscope to be used is changed. There may be.

また、上述したマージンの検査では、検査用の信号を正確に受信できているかを確認する手段として、既知の文字列を用いるものであってもよいし、既知の画像を用いるものであってもよい。DCバランスを崩した状態で受信した既知の文字列または画像を確認することによってマージンの検査を行うことができる。なお、文字列または画像の確認は、使用者が行うものであってもよいし、制御部406などに設けられた判別部より自動で行うものであってもよい。また、上述した実施の形態3では、0と1とを用いたバイナリデータであるものとして説明したが、これに限らず、二つの値を用いるものであれば適用可能である。   Further, in the above-described margin inspection, a known character string or a known image may be used as a means for confirming whether or not the inspection signal is correctly received. Good. The margin can be inspected by confirming a known character string or image received with the DC balance lost. The confirmation of the character string or the image may be performed by the user, or may be automatically performed by a determination unit provided in the control unit 406 or the like. In the third embodiment described above, the binary data using 0 and 1 is described. However, the present invention is not limited to this, and any data using two values can be applied.

また、本実施の形態3における符号化部258aの構成は、上述した実施の形態2の符号化部258に適用することが可能である。この場合、実施の形態2では、DCバランスが確保された状態で先端部25aから撮像信号が出力される。   Further, the configuration of encoding section 258a in the third embodiment can be applied to encoding section 258 in the second embodiment described above. In this case, in the second embodiment, the imaging signal is output from the distal end portion 25a in a state where the DC balance is ensured.

(付記項1)
被検体の体腔内に挿入されて該被検体の体内画像を撮像し、該撮像した前記体内画像に所定の画像処理を施す処理装置と通信可能に接続される内視鏡であって、
外部からの光を光電変換して電気信号を生成するセンサ部と、
前記電気信号を前記処理装置に出力する出力部と、
前記センサ部と前記出力部との間に設けられ、前記センサ部が生成した電気信号に対し、誤り訂正符号化の処理を施すとともに、Nビット/Mビット(N<M)符号化の処理を施す符号化部と、
を備え、
前記符号化部は、
前記センサ部が生成した電気信号に対応するNビットのバイナリデータを、誤り訂正符号を含み、0と比して1が多いMビットのバイナリデータに変換してNビット/Mビット符号化の処理を施す第1変換部と、
前記センサ部が生成した電気信号に対応するNビットのバイナリデータを、誤り訂正符号を含み、1と比して0が多いMビットのバイナリデータに変換してNビット/Mビット符号化の処理を施す第2変換部と、
前記第1および第2変換部によって処理が施されたMビットのバイナリデータのいずれか一方を選択して出力する選択出力部と、
前記選択出力部による選択態様を制御する選択制御部と、
を有し、
前記選択制御部は、当該内視鏡と前記処理装置との間の通信にかかる検査を行う際、テストモード信号の入力により、前記選択出力部による前記第1および第2変換部の選択を、いずれか一方の変換部に固定して選択させる制御を行うことを特徴とする内視鏡。
(Additional item 1)
An endoscope that is inserted into a body cavity of a subject, captures an in-vivo image of the subject, and is communicably connected to a processing device that performs predetermined image processing on the captured in-vivo image,
A sensor unit that photoelectrically converts light from the outside to generate an electrical signal;
An output unit for outputting the electrical signal to the processing device;
Provided between the sensor unit and the output unit, the electrical signal generated by the sensor unit is subjected to error correction coding processing and N bit / M bit (N <M) coding processing. An encoding unit to be applied;
With
The encoding unit includes:
Processing of N-bit / M-bit encoding by converting N-bit binary data corresponding to the electrical signal generated by the sensor unit into M-bit binary data including an error correction code and having 1 more than 0 A first conversion unit for applying
Processing of N-bit / M-bit encoding by converting N-bit binary data corresponding to the electrical signal generated by the sensor unit into M-bit binary data including an error correction code and having more 0 than 1 A second conversion unit for applying
A selection output unit that selects and outputs any one of the M-bit binary data processed by the first and second conversion units;
A selection control unit for controlling a selection mode by the selection output unit;
Have
The selection control unit, when performing an inspection related to communication between the endoscope and the processing device, selects the first and second conversion units by the selection output unit by inputting a test mode signal. An endoscope characterized in that control is performed such that either one of the converters is fixed and selected.

(付記項2)
付記項1に記載の内視鏡と、
前記内視鏡が撮像した画像に基づく撮像信号を取得する処理装置と、
を備えたことを特徴とする内視鏡システム。
(Appendix 2)
The endoscope according to appendix 1,
A processing device for obtaining an imaging signal based on an image captured by the endoscope;
An endoscope system comprising:

以上のように、本発明にかかる処理装置および内視鏡システムは、外部の環境によらず、適切な画像を得るのに有用である。   As described above, the processing device and the endoscope system according to the present invention are useful for obtaining an appropriate image regardless of the external environment.

1,1a,1b,1c 内視鏡システム
2,2a,2b 内視鏡
3 光源装置
4,4a 処理装置
5 表示装置
6 処置具
7 制御装置
8 X線透視装置
9 通知部
21 挿入部
22 操作部
23 ユニバーサルコード
24 コネクタ部
25,25a,25b 先端部
26 湾曲部
27 可撓管部
31 照明部
32 照明制御部
33 光源
34 光源ドライバ
251 ライトガイド
252 照明レンズ
253 センサ部
253a 受光部
253b 読み出し部
254 アナログフロントエンド部(AFE部)
255 P/S変換部
256,406 制御部
257 処置具挿通孔
258,258a 符号化部
259 記憶部
401 S/P変換部
402 画像処理部
402a 補正部
403 エラー検出部
404 入力部
405 記録部
406a 状態検知部
406b 条件設定部
2581 RD+変換部
2582 RD−変換部
2583 セレクタ
2584 選択制御部
1, 1a, 1b, 1c Endoscope system 2, 2a, 2b Endoscope 3 Light source device 4, 4a Processing device 5 Display device 6 Treatment tool 7 Control device 8 X-ray fluoroscopy device 9 Notification unit 21 Insertion unit 22 Operation unit DESCRIPTION OF SYMBOLS 23 Universal cord 24 Connector part 25,25a, 25b Tip part 26 Bending part 27 Flexible tube part 31 Illumination part 32 Illumination control part 33 Light source 34 Light source driver 251 Light guide 252 Illumination lens 253 Sensor part 253a Light reception part 253b Reading part 254 Analog Front end part (AFE part)
255 P / S conversion unit 256,406 Control unit 257 Treatment instrument insertion hole 258,258a Coding unit 259 Storage unit 401 S / P conversion unit 402 Image processing unit 402a Correction unit 403 Error detection unit 404 Input unit 405 Recording unit 406a Status Detection unit 406b Condition setting unit 2581 RD + conversion unit 2582 RD− conversion unit 2583 selector 2584 selection control unit

Claims (10)

複数の画素を有する撮像素子を備えた内視鏡が撮像した撮像信号を取得する処理装置であって、
前記撮像信号をもとに、前記画素ごとにエラーを検出するエラー検出部と、
前記内視鏡近傍の外部状態を検知する状態検知部と、
前記エラー検出部によりエラーが検出された画素であるエラー画素の輝度値を前記状態検知部の検知結果に応じて補正する補正処理を含む画像処理を前記撮像信号に施す画像処理部と、
前記状態検知部の検知結果に応じて、前記画像処理部による前記画像処理の条件を設定する条件設定部と、
を備えたことを特徴とする処理装置。
A processing device that acquires an imaging signal captured by an endoscope including an imaging element having a plurality of pixels,
Based on the imaging signal, an error detection unit that detects an error for each pixel;
A state detector for detecting an external state in the vicinity of the endoscope;
An image processing unit that performs image processing including a correction process for correcting a luminance value of an error pixel, which is a pixel in which an error is detected by the error detection unit, according to a detection result of the state detection unit;
A condition setting unit for setting a condition for the image processing by the image processing unit according to a detection result of the state detection unit;
A processing apparatus comprising:
前記補正処理は、補間処理であり、
前記条件設定部は、前記状態検知部の検知結果に応じて、前記画像処理部が前記エラー画素を補正する際に参照する画素の設定を行うことを特徴とする請求項1に記載の処理装置。
The correction process is an interpolation process,
The processing apparatus according to claim 1, wherein the condition setting unit sets a pixel to be referred to when the image processing unit corrects the error pixel according to a detection result of the state detection unit. .
前記条件設定部は、前記参照する画素の参照数を前記条件として設定することを特徴とする請求項2に記載の処理装置。   The processing apparatus according to claim 2, wherein the condition setting unit sets the reference number of the reference pixel as the condition. 前記画像処理部は、当該エラー画素の周囲の画素、または当該エラー画素を含むフレームの前後のフレームにおける当該エラー画素に対応する画素を前記参照する画素とし、該参照する画素の輝度値における統計的な代表値を用いて前記補間処理を施すことを特徴とする請求項2に記載の処理装置。   The image processing unit uses a pixel corresponding to the error pixel in a frame around the error pixel or a frame before and after the frame including the error pixel as the reference pixel, and statistically calculates a luminance value of the reference pixel. The processing apparatus according to claim 2, wherein the interpolation process is performed using a representative value. 前記画像処理は、エンハンス処理をさらに含み、
前記条件設定部は、前記状態検知部の検知結果に応じて、前記エンハンス処理のレベルを設定することを特徴とする請求項1に記載の処理装置。
The image processing further includes enhancement processing,
The processing apparatus according to claim 1, wherein the condition setting unit sets a level of the enhancement processing according to a detection result of the state detection unit.
前記エラー検出部は、検出対象の画素の輝度値と、該検出対象の画素の周囲の画素の輝度値、または該検出対象の画素を含むフレームの前後のフレームにおける該検出対象の画素に対応する画素の輝度値における統計的な代表値とを比較することを特徴とする請求項1に記載の処理装置。   The error detection unit corresponds to the luminance value of the pixel to be detected, the luminance value of the pixels around the pixel to be detected, or the pixel to be detected in frames before and after the frame including the pixel to be detected. The processing apparatus according to claim 1, wherein a statistical representative value in the luminance value of the pixel is compared. 前記統計的な代表値は、平均値、最大値または最小値であることを特徴とする請求項4に記載の処理装置。   The processing apparatus according to claim 4, wherein the statistical representative value is an average value, a maximum value, or a minimum value. 前記内視鏡から取得する撮像信号は、誤り訂正符号が付与され、かつNビット/Mビット(N<M)符号化の処理が施されることによって符号化された信号であって、
Mビット/Nビット復号および誤り訂正復号の処理を施すことによって前記符号化された信号を復号する復号部を有し、
前記エラー検出部は、前記復号部によりMビット/Nビット復号の処理が施された信号、および前記誤り訂正復号の処理が施された信号に対し、エラーの検出処理をそれぞれ行うことを特徴とする請求項1に記載の処理装置。
The imaging signal acquired from the endoscope is a signal encoded by an error correction code and an N-bit / M-bit (N <M) encoding process,
A decoding unit that decodes the encoded signal by performing M-bit / N-bit decoding and error correction decoding;
The error detection unit performs an error detection process on the signal that has been subjected to the M-bit / N-bit decoding process by the decoding unit and the signal that has been subjected to the error correction decoding process, respectively. The processing apparatus according to claim 1.
前記状態検知部は、前記内視鏡と併用される外部装置からの信号の入力により、該外部装置の動作状態を前記内視鏡近傍の外部状態にかかる情報として検知することを特徴とする請求項1に記載の処理装置。   The state detection unit detects an operation state of the external device as information on an external state in the vicinity of the endoscope by inputting a signal from an external device used in combination with the endoscope. Item 2. The processing apparatus according to Item 1. 被検体の体腔内に先端部を挿入することによって被検体の体内画像を撮像する内視鏡と、
請求項1に記載の処理装置と、
を備えたことを特徴とする内視鏡システム。
An endoscope that captures an in-vivo image of the subject by inserting a tip into the body cavity of the subject;
A processing apparatus according to claim 1;
An endoscope system comprising:
JP2015512824A 2013-08-27 2014-08-20 Processing apparatus and endoscope system Pending JPWO2015029856A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013175876 2013-08-27
JP2013175876 2013-08-27
PCT/JP2014/071789 WO2015029856A1 (en) 2013-08-27 2014-08-20 Processing device and endoscope system

Publications (1)

Publication Number Publication Date
JPWO2015029856A1 true JPWO2015029856A1 (en) 2017-03-02

Family

ID=52586418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015512824A Pending JPWO2015029856A1 (en) 2013-08-27 2014-08-20 Processing apparatus and endoscope system

Country Status (2)

Country Link
JP (1) JPWO2015029856A1 (en)
WO (1) WO2015029856A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6602713B2 (en) * 2016-03-29 2019-11-06 オリンパス株式会社 Endoscope device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5869527A (en) * 1981-10-20 1983-04-25 富士写真フイルム株式会社 High frequency knife and endoscope using same
JPS639420A (en) * 1986-07-01 1988-01-16 富士写真光機株式会社 Endoscope
JPH05285098A (en) * 1992-04-14 1993-11-02 Olympus Optical Co Ltd Observer for endoscope and x rays
JPH09313434A (en) * 1996-05-28 1997-12-09 Olympus Optical Co Ltd Erectronic endoscope device
JP2006026234A (en) * 2004-07-20 2006-02-02 Olympus Corp Apparatus and system for imaging inside of living body
JP2008148835A (en) * 2006-12-15 2008-07-03 Hoya Corp Image signal transmission system, electronic endoscope and endoscope processor
JP2009195461A (en) * 2008-02-21 2009-09-03 Hoya Corp Endoscope system and image signal processor
JP2010142464A (en) * 2008-12-19 2010-07-01 Panasonic Corp Image processor and image input device
JP2011254900A (en) * 2010-06-07 2011-12-22 Fujifilm Corp Endoscope system
JP2012011123A (en) * 2010-07-05 2012-01-19 Olympus Corp Electronic endoscope apparatus
JP2012134875A (en) * 2010-12-22 2012-07-12 Olympus Corp Endoscope device
JP2012147857A (en) * 2011-01-17 2012-08-09 Olympus Medical Systems Corp Image processing apparatus
JP2013017752A (en) * 2011-07-13 2013-01-31 Olympus Medical Systems Corp Noise removal device, display device including the same, camera control unit, and endoscope system
JP2013078378A (en) * 2011-09-30 2013-05-02 Fujifilm Corp Endoscope system and external control device of endoscope

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5869527A (en) * 1981-10-20 1983-04-25 富士写真フイルム株式会社 High frequency knife and endoscope using same
JPS639420A (en) * 1986-07-01 1988-01-16 富士写真光機株式会社 Endoscope
JPH05285098A (en) * 1992-04-14 1993-11-02 Olympus Optical Co Ltd Observer for endoscope and x rays
JPH09313434A (en) * 1996-05-28 1997-12-09 Olympus Optical Co Ltd Erectronic endoscope device
JP2006026234A (en) * 2004-07-20 2006-02-02 Olympus Corp Apparatus and system for imaging inside of living body
JP2008148835A (en) * 2006-12-15 2008-07-03 Hoya Corp Image signal transmission system, electronic endoscope and endoscope processor
JP2009195461A (en) * 2008-02-21 2009-09-03 Hoya Corp Endoscope system and image signal processor
JP2010142464A (en) * 2008-12-19 2010-07-01 Panasonic Corp Image processor and image input device
JP2011254900A (en) * 2010-06-07 2011-12-22 Fujifilm Corp Endoscope system
JP2012011123A (en) * 2010-07-05 2012-01-19 Olympus Corp Electronic endoscope apparatus
JP2012134875A (en) * 2010-12-22 2012-07-12 Olympus Corp Endoscope device
JP2012147857A (en) * 2011-01-17 2012-08-09 Olympus Medical Systems Corp Image processing apparatus
JP2013017752A (en) * 2011-07-13 2013-01-31 Olympus Medical Systems Corp Noise removal device, display device including the same, camera control unit, and endoscope system
JP2013078378A (en) * 2011-09-30 2013-05-02 Fujifilm Corp Endoscope system and external control device of endoscope

Also Published As

Publication number Publication date
WO2015029856A1 (en) 2015-03-05

Similar Documents

Publication Publication Date Title
JP5372269B2 (en) Imaging device
US9538108B2 (en) Endoscope system and pixel correction method
US10523911B2 (en) Image pickup system
JP5769892B2 (en) Endoscope
JPWO2014002732A1 (en) Imaging apparatus and imaging system
WO2013128764A1 (en) Medical system
WO2016104386A1 (en) Dimmer, imaging system, method for operating dimmer, and operating program for dimmer
JP5244164B2 (en) Endoscope device
JPWO2013132725A1 (en) Endoscope system
US20160323539A1 (en) Medical observation device
JPWO2015114906A1 (en) Imaging system and imaging apparatus
JP5926980B2 (en) Imaging apparatus and imaging system
WO2015029856A1 (en) Processing device and endoscope system
JP2010088656A (en) Processor apparatus for endoscope, supply voltage feed method of the processor apparatus for endoscope, and endoscope system
EP2589329B1 (en) Endoscope and endoscopic system
JP6489644B2 (en) Imaging system
JP4787032B2 (en) Endoscope image signal processing apparatus and electronic endoscope system
JP5889483B2 (en) Endoscope system
JP5932191B1 (en) Transmission system and processing device
JP6602713B2 (en) Endoscope device
JP6503524B1 (en) Processing device, endoscope, endoscope system, image processing method and program
WO2016079851A1 (en) Endoscope system and endoscope
JP4836591B2 (en) Endoscope image signal processing apparatus and electronic endoscope system
JP2015104616A (en) Endoscope system
JPWO2017122511A1 (en) Endoscope apparatus and endoscope system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160126