JP2009089910A - Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded - Google Patents

Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded Download PDF

Info

Publication number
JP2009089910A
JP2009089910A JP2007263765A JP2007263765A JP2009089910A JP 2009089910 A JP2009089910 A JP 2009089910A JP 2007263765 A JP2007263765 A JP 2007263765A JP 2007263765 A JP2007263765 A JP 2007263765A JP 2009089910 A JP2009089910 A JP 2009089910A
Authority
JP
Japan
Prior art keywords
image
capsule endoscope
imaging direction
imaging
motion vector
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
JP2007263765A
Other languages
Japanese (ja)
Inventor
Koichi Nishimura
晃一 西村
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2007263765A priority Critical patent/JP2009089910A/en
Publication of JP2009089910A publication Critical patent/JP2009089910A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Endoscopes (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a photographing direction discriminating apparatus, a photographing direction discriminating method, and a photographing direction discriminating program by which the photographing direction of an image by a capsule endoscope can easily be discriminated by sensing whether the advancing direction of the capsule endoscope and the photographing direction of the image are the same or not, and to provide a computer-readable recording medium on which the photographing direction discriminating program is recorded. <P>SOLUTION: This photographing direction discriminating apparatus 250 includes a movement vector calculating apparatus 223, and a photographing direction sensing apparatus 224. In this case, the movement vector calculating apparatus 223 is used for discriminating the photographing direction of the capsule endoscope 101 which photographs the inside of a living body, and calculates a movement vector of the image photographed by the capsule endoscope 101 which is received from the capsule endoscope 101 by time series. The photographing direction sensing apparatus 224 senses whether the advancing direction of the capsule endoscope 101 and the photographing direction of the image are the same or opposite from the movement vector being calculated by the movement vector calculating apparatus 223. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、被検体内部の撮像対象の画像を取得し、表示するのに好適な撮像方向判別装置、撮像方向判別方法、撮像方向判別プログラム、及び撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体に関するものである。   The present invention relates to an image capturing direction discriminating apparatus, an image capturing direction discriminating method, an image capturing direction discriminating program, and a computer readable record recording an image capturing direction discriminating program suitable for acquiring and displaying an image of an imaging target inside a subject. It relates to the medium.

近年内視鏡の分野において、飲込み型のカプセル内視鏡を利用した診断装置が提案され、実用化されている。カプセル内視鏡は、観察(検査)のために被験者の口から飲込まれた後、自然排出するまでの間、生体内、例えば胃、小腸等の臓器の内部をその蠕動運動に従って移動し、移動に伴い生体内画像の撮像を行う機能を有する。このようなカプセル内視鏡として、イスラエルのギブンイメージング社のPillcam・SB(登録商標)がある。   In recent years, in the field of endoscopes, diagnostic devices using swallowable capsule endoscopes have been proposed and put into practical use. After being swallowed from the subject's mouth for observation (examination), the capsule endoscope moves inside the living body, for example, the inside of an organ such as the stomach and the small intestine according to its peristaltic movement, It has a function of capturing an in-vivo image as it moves. As such a capsule endoscope, there is Pilcam · SB (registered trademark) of Given Imaging Inc., Israel.

診断装置は、生体内に飲み込まれるカプセル内視鏡、及び体外に配置される画像処理装置によって構成されている。   The diagnostic device is composed of a capsule endoscope swallowed into a living body and an image processing device arranged outside the body.

カプセル内視鏡は、CCD・CMOSセンサなどの撮像装置と、LED等の照明装置と、無線送信装置と、送信アンテナと、各装置に電力を供給する電池等の電源装置と、を有する。撮像装置による撮像は2枚/秒もしくは15枚/秒などのスピードにより行われ、撮像装置は動画像を撮像する。撮像装置により撮像された画像データは無線送信装置により変調され、送信アンテナから無線により体外へ送られる。撮像および無線送信は、電池残量がある間、一般的に8〜10時間程度連続して行われる。   The capsule endoscope includes an imaging device such as a CCD / CMOS sensor, an illumination device such as an LED, a wireless transmission device, a transmission antenna, and a power supply device such as a battery that supplies power to each device. Imaging by the imaging device is performed at a speed of 2 frames / second or 15 frames / second, and the imaging device captures a moving image. Image data picked up by the image pickup device is modulated by the wireless transmission device, and transmitted from the transmission antenna to the outside of the body wirelessly. Imaging and wireless transmission are generally performed continuously for about 8 to 10 hours while the remaining battery capacity is present.

図14は一般的なカプセル内視鏡の外形図である。カプセル内視鏡101は、中央が円筒形、両端が半球状となっており、細長い形状を有している。図15は、図14の円筒形の先端部の断面図(a−a’断面)である。断面中心部に撮像装置201が、撮像装置201の周辺に複数の照明装置202が配置されている。カプセル内視鏡101の撮像装置201、及び生体内に光を照射する照明装置202は以上のように配置されているため、カプセル内視鏡101の進行方向前方、もしくは後方を撮像することができる。なお、カプセル内視鏡101は、長軸方向のもう一方の端部にも撮像装置201と照明装置202を配置し、カプセル内視鏡101の進行方向、及び後方を同時に撮像することも可能である。   FIG. 14 is an external view of a general capsule endoscope. The capsule endoscope 101 has a cylindrical shape at the center and a hemispherical shape at both ends, and has an elongated shape. FIG. 15 is a cross-sectional view (a-a ′ cross-section) of the cylindrical tip portion of FIG. 14. An imaging device 201 is disposed at the center of the cross section, and a plurality of illumination devices 202 are disposed around the imaging device 201. Since the imaging device 201 of the capsule endoscope 101 and the illuminating device 202 that irradiates light inside the living body are arranged as described above, it is possible to image the front or rear of the capsule endoscope 101 in the traveling direction. . Note that the capsule endoscope 101 can also image the traveling direction and the rear of the capsule endoscope 101 at the same time by arranging the imaging device 201 and the illumination device 202 at the other end in the long axis direction. is there.

そして、生体外には、図示しないが、受信アンテナ、無線受信装置、表示装置を有する画像処理装置がある。画像処理装置は、受信アンテナがカプセル内視鏡101の内部の送信アンテナから送信された電波を受信し、無線受信装置において受信データを復調し、復調された画像データを表示装置に表示する役割を有する。   Outside the living body, although not shown, there is an image processing apparatus having a receiving antenna, a wireless receiving device, and a display device. In the image processing apparatus, the reception antenna receives a radio wave transmitted from the transmission antenna inside the capsule endoscope 101, demodulates the reception data in the wireless reception apparatus, and displays the demodulated image data on the display apparatus. Have.

カプセル内視鏡により撮像された動画像を表示する従来の装置として、特許文献1、2に示す方法が知られている。   As a conventional apparatus for displaying a moving image picked up by a capsule endoscope, methods disclosed in Patent Documents 1 and 2 are known.

特許文献1は、生体内の複数の動画像を表示する装置であって、生体内の画像ストリームを効果的に表示するための方法およびシステムを開示している。より具体的に説明すると以下の通りである。画像ストリームから1つまたはいくつかの画像が欠如していることがあり得る。これは、例えばカプセルの角度、或いは動きによりある瞬間に作動していないおそれがあるか、または撮像器の誤作動に起因する。加えて、誤動作は、たとえば記録装置が画像の記録を行えないこと、または不明瞭な画像がデータの選別および選択中に除外されることに起因する。画像の欠損により、ある時間量にわたって記録による裏付けが得られない空きが生じるおそれがあり、結果的に得られる画像ストリームは、整合性、或いは一貫性のないものになる。そこで、特許文献1は、好ましくは2つ以上の撮像機を含むカプセルを用い、カプセル内部の撮像装置が画像ストリームを作成し、生体外のワークステーションが各撮像機から画像を受取り、画像ストリームとしてこれらの画像を表示する。各画像ストリームは、複数の画像ウインドウを含み得るモニタ上に、各画像ストリームにつき1ウィンドウの割合で実質的に同時に画像を表示する。それにより、異なる撮像機からの画像ストリームを実質的に同時に観察することができるシステムを開示している。   Patent Document 1 discloses an apparatus for displaying a plurality of moving images in a living body, and discloses a method and system for effectively displaying an in-vivo image stream. More specifically, it is as follows. It is possible that one or several images are missing from the image stream. This may be due to the capsule not being actuated at a certain moment, for example due to the angle or movement of the capsule, or due to malfunction of the imager. In addition, malfunctions are caused, for example, by the recording device not being able to record images or by obscuring images being excluded during data selection and selection. Missing images can create gaps that cannot be backed up by recording for a certain amount of time, resulting in a consistent or inconsistent image stream. Therefore, Patent Document 1 preferably uses a capsule including two or more imaging devices, an imaging device inside the capsule creates an image stream, and an in vitro workstation receives an image from each imaging device as an image stream. These images are displayed. Each image stream displays images substantially simultaneously at a rate of one window for each image stream on a monitor that may include multiple image windows. Thereby, a system is disclosed in which image streams from different imagers can be observed substantially simultaneously.

特許文献2は、カプセル内視鏡等の被検体内導入装置によって時系列に撮像・取得された画像を動画として上映する際に、動画の進行方向を供覧者に判りやすくすることができる画像表示装置を提供している。より具体的に説明すると以下の通りである。ディスプレイ画面上での診断に際しては、膨大な枚数の画像を扱うため、多数枚の画像を時系列的に連続する動画として上映するようにしている。この場合、動画の上映方法として、操作者によるスクローリングホイール等のポインティングデバイス操作によって、時系列的に前進方向となる上映と、逆に、時系列的に後退方向となる上映とが設定自在とされている。これにより、体腔内を口腔側から肛門側に向かう順に動画を観察することもでき、逆に、再度注視したい部分などを肛門側から口腔側に戻る形で動画を観察することもできる。しかし、操作者は、動画上映に関して自分が操作しているため、動画の時系列的な上映方向が前進方向であるか後退方向であるかは当然理解できるが、ディスプレイ画面を見ているだけの供覧者は、上映中の動画の上映方向が前進方向であるのか後退方向であるのかを理解できない場合もあり、不便であった。そこで、特許文献2は、動画の上映方法に係る設定状態を表示部上に動画と同時に表示させるようにし、供覧者は、動画と同時に表示されている上映方法の設定状態を見ることによりその設定状態を容易に確認することができるようになった。例えば、パラメータを動画の時系列的な上映方向を規定するパラメータとする場合、上映方向の設定状態を見ることによって、供覧者は、動画が前進しているのか後退しているのかを容易に確認することが可能な被検体内導入装置を開示している。   Patent Document 2 discloses an image display that makes it easy for a viewer to understand the moving direction of a moving image when the image captured and acquired in time series by an in-subject introducing device such as a capsule endoscope is displayed as a moving image. The device is provided. More specifically, it is as follows. In diagnosis on the display screen, a large number of images are handled, so that a large number of images are screened as time-sequential moving images. In this case, as a method of showing a moving image, it is possible to freely set a time-sequential forward direction and a time-sequential reverse direction by an operator operating a pointing device such as a scrolling wheel. Has been. Thereby, a moving image can be observed in the order from the oral cavity side to the anus side in the body cavity, and conversely, the moving image can be observed in such a manner that a part to be gazed again returns from the anal side to the oral cavity side. However, since the operator is operating with regard to the video screening, he can understand whether the video chronological screening direction is the forward direction or the backward direction, but only looking at the display screen It was inconvenient for the viewers to be unable to understand whether the direction of the movie being shown was forward or backward. Therefore, in Patent Document 2, the setting state related to the moving image display method is displayed on the display unit at the same time as the moving image, and the viewer can check the setting method by viewing the setting state of the screening method displayed simultaneously with the moving image. The state can be easily checked. For example, if the parameter is a parameter that defines the time-series presentation direction of the video, the viewer can easily check whether the video is moving forward or backward by looking at the setting state of the video direction. An in-subject introduction device that can be used is disclosed.

以上のように、特許文献1は複数の動画像を表示する装置であり、特許文献2は、動画像が時系列的に順送りに表示されているか、後戻りに表示されているかの設定状態を動画像とあわせてディスプレイ画面に表示する装置である。
特開2006−142017(平成18年6月8日(2006.6.8)公開) 特開2006−296882(平成18年11月2日(2006.11.2)公開)
As described above, Patent Document 1 is a device that displays a plurality of moving images, and Patent Document 2 describes a setting state as to whether moving images are displayed in time-sequential order or in reverse. It is a device that displays on the display screen together with the image.
JP 2006-142017 (published June 8, 2006 (2006.6.8)) JP 2006-296882 (published on November 2, 2006 (2006.11.2))

しかしながら、上記従来の構成では、カプセル内視鏡が生体内の消化管、例えば腸において動作している場合などにおいて、カプセル内視鏡がどの方向を向いているのか分からないという問題があった。図16を用いて、以下説明する。   However, the conventional configuration has a problem that it is not possible to know which direction the capsule endoscope is facing when the capsule endoscope is operating in a digestive tract in a living body, for example, the intestine. This will be described below with reference to FIG.

図16は、カプセル内視鏡101の進行方向と撮像装置201の撮像方向の関係について示す図である。図16(a)は、カプセル内視鏡101の進行方向と撮像装置の撮像方向とが同一となる状態(状態301)を、図16(b)は、カプセル内視鏡101の進行方向と撮像装置の撮像方向が反対となる状態(状態302)を示す。状態301と状態302では、撮像された動画像中のある1フレーム(静止画像)は鏡像の関係(上下・左右が対称となった状態)となり、撮像画像内に存在する物体、例えば、血管、ポリープ、びらん等の撮像画像中での互いの位置関係が変化する。   FIG. 16 is a diagram illustrating a relationship between the traveling direction of the capsule endoscope 101 and the imaging direction of the imaging device 201. 16A shows a state (state 301) in which the traveling direction of the capsule endoscope 101 is the same as the imaging direction of the imaging apparatus, and FIG. 16B shows the traveling direction and the imaging of the capsule endoscope 101. A state (state 302) in which the imaging direction of the apparatus is opposite is shown. In the state 301 and the state 302, one frame (still image) in the captured moving image has a mirror image relationship (a state in which the vertical and horizontal directions are symmetrical), and an object existing in the captured image, for example, a blood vessel, The positional relationship in the captured image such as a polyp or erosion changes.

医師など画像の観察者は、カプセル内視鏡101の進行方向と画像の撮像方向とが同一であるか否かを認識した上で画像を見る必要があり、これが負担となっていた。特に、動画像中のある1フレームを静止画像として取り出して観察する場合、単一の静止画像からカプセル内視鏡101の進行方向と画像の撮像方向とが同一か否かを認識するのが難しく、カプセル内視鏡による画像の撮像方向を判断するのが困難であった。   An image observer such as a doctor needs to see the image after recognizing whether or not the traveling direction of the capsule endoscope 101 is the same as the imaging direction of the image, which is a burden. In particular, when one frame in a moving image is taken out and observed as a still image, it is difficult to recognize whether the traveling direction of the capsule endoscope 101 is the same as the image capturing direction from a single still image. It has been difficult to determine the direction in which an image is captured by a capsule endoscope.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか否かを検知し、カプセル内視鏡による画像の撮像方向を容易に判断することができる、撮像方向判別装置、撮像方向判別方法、撮像方向判別プログラム、及び撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体を提供することにある。   The present invention has been made in view of the above-described problems, and an object of the present invention is to detect whether the traveling direction of the capsule endoscope is the same as the imaging direction of the image, and the capsule endoscope An imaging direction discriminating apparatus, an imaging direction discriminating method, an imaging direction discriminating program, and a computer-readable recording medium on which an imaging direction discriminating program is recorded can be provided.

本発明に係る撮像方向判別装置は、前記課題を解決するために、生体内を撮像するカプセル内視鏡の撮像方向を判別するための撮像方向判別装置であって、前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する動きベクトル計算装置と、該動きベクトル計算装置によって計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する撮像方向検知装置と、を備えることを特徴としている。   An imaging direction determination apparatus according to the present invention is an imaging direction determination apparatus for determining an imaging direction of a capsule endoscope that images an inside of a living body, in order to solve the above-described problem, from the capsule endoscope. A motion vector calculation device for calculating a motion vector of an image captured by the capsule endoscope received in series, and a traveling direction of the capsule endoscope based on the motion vector calculated by the motion vector calculation device And an imaging direction detecting device that detects whether the imaging direction of the image is the same or opposite.

前記の構成によれば、動きベクトル計算装置が撮像画像中の物体の動作方向を計算し、撮像方向検知装置がカプセル内視鏡の進行方向と撮像装置の撮像方向とが同一であるか、反対であるかを検知する。このように、撮像方向判別装置によってカプセル内視鏡の進行方向と画像の撮像方向とが同一であるか、反対であるかを検知することができるため、画像観察者は、カプセル内視鏡による画像の撮像方向を容易に認識することができる。   According to the above configuration, the motion vector calculation device calculates the motion direction of the object in the captured image, and the imaging direction detection device has the same traveling direction of the capsule endoscope as the imaging direction of the imaging device, or the opposite Is detected. As described above, since the imaging direction discriminating device can detect whether the traveling direction of the capsule endoscope and the imaging direction of the image are the same or opposite, the image observer can use the capsule endoscope. The image capturing direction can be easily recognized.

本発明に係る撮像方向判別装置では、前記動きベクトル計算装置は、受信した画像を一定のブロックに分割し、該ブロックに対しブロックマッチング法により動きベクトルを計算することが好ましい。   In the imaging direction discrimination device according to the present invention, it is preferable that the motion vector calculation device divides the received image into fixed blocks and calculates a motion vector for the block by a block matching method.

前記の構成によれば、動きベクトル計算装置は、画像中のブロックごとに動きベクトルを計算することができる。   According to the above configuration, the motion vector calculation device can calculate a motion vector for each block in the image.

本発明に係る撮像方向判別装置では、前記撮像方向検知装置は、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルを基に、画像端部に向かう動きベクトルの本数が画像中心に向かう動きベクトルの本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、画像中心に向かう動きベクトルの本数が画像端部に向かう動きベクトルの本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することが好ましい。   In the imaging direction discriminating device according to the present invention, the imaging direction detecting device is configured such that the number of motion vectors toward the image edge is based on the motion vector of each block in the image calculated by the motion vector calculation device. When the number of motion vectors toward the image center is greater than the number of motion vectors toward the image, it is detected that the traveling direction of the capsule endoscope and the image capturing direction are the same, and the number of motion vectors toward the image center is the motion vector toward the image edge. When the number is larger than the number, it is preferable to detect that the traveling direction of the capsule endoscope is opposite to the image capturing direction.

前記の構成によれば、画像端部に向かう動きベクトルの本数、及び画像中心に向かう動きベクトルの本数を比較することにより、撮像方向検知装置は、カプセル内視鏡の進行方向と画像の撮像方向の関係を正しく検知することができる。   According to the above configuration, by comparing the number of motion vectors toward the edge of the image and the number of motion vectors toward the image center, the imaging direction detection device can detect the traveling direction of the capsule endoscope and the imaging direction of the image. Can be detected correctly.

本発明に係る撮像方向判別装置では、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルと画像中心から該動きベクトルの始点を結ぶ位置ベクトルとのなす角が、鋭角となる本数が鈍角となる本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、鈍角となる本数が鋭角となる本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することが好ましい。   In the imaging direction discriminating device according to the present invention, the number that the angle formed by the motion vector of each block in the image calculated by the motion vector calculation device and the position vector connecting the start point of the motion vector from the image center is an acute angle. When the number of obscure angles is larger than the number of obscure angles, it is detected that the traveling direction of the capsule endoscope and the imaging direction of the image are the same, and when the number of obtuse angles is greater than the number of acute angles, It is preferable to detect that the traveling direction of the endoscope is opposite to the image capturing direction.

前記の構成によれば、位置ベクトルとのなす角が鋭角となる動きベクトルの本数が、位置ベクトルとのなす角が鈍角となる動きベクトルの本数より多いと、撮像画像中の物体は総じて画像端に向かっていると判断できる。逆に、位置ベクトルとのなす角が鈍角となる動きベクトルの本数が、位置ベクトルとのなす角が鋭角となる動きベクトルの本数より多いと、撮像画像中の物体は総じて画像中心に向かっていると判断できる。このように、動きベクトルと位置ベクトルとのなす角から撮像画像中の物体の移動方向を判別することができ、カプセル内視鏡の進行方向と画像の撮像方向の関係を正しく検知することができる。   According to the above configuration, if the number of motion vectors whose angle with the position vector is an acute angle is greater than the number of motion vectors whose angle with the position vector is an obtuse angle, the objects in the captured image are generally image edges. It can be judged that it is heading. Conversely, if the number of motion vectors that form an obtuse angle with the position vector is greater than the number of motion vectors that form an acute angle with the position vector, the object in the captured image generally moves toward the center of the image. It can be judged. As described above, the moving direction of the object in the captured image can be determined from the angle formed by the motion vector and the position vector, and the relationship between the traveling direction of the capsule endoscope and the image capturing direction can be correctly detected. .

本発明に係る撮像方向判別装置では、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルと画像中心から該動きベクトルの始点を結ぶ位置ベクトルとのなす角の余弦を演算し、余弦の和が、正であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、負であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することが好ましい。   In the imaging direction determination device according to the present invention, the cosine of the angle formed by the motion vector of each block in the image calculated by the motion vector calculation device and the position vector connecting the start point of the motion vector from the image center is calculated, If the sum of the cosines is positive, it is detected that the traveling direction of the capsule endoscope is the same as the imaging direction of the image, and if it is negative, the traveling direction of the capsule endoscope and the imaging direction of the image are It is preferable to detect the opposite.

前記の構成によれば、撮像方向検知装置は、動きベクトルの向きを評価することによりカプセル内視鏡の進行方向と画像の撮像方向との関係を検知することができる。つまり、画像中心もしくはその画像端の方向を向いている動きベクトルの重み付けを大きくすることにより、撮像方向検知装置は、カプセル内視鏡の進行方向と画像の撮像方向との関係を検知することができる。   According to the above configuration, the imaging direction detection device can detect the relationship between the traveling direction of the capsule endoscope and the imaging direction of the image by evaluating the direction of the motion vector. In other words, by increasing the weighting of the motion vector facing the image center or the direction of the image edge, the imaging direction detection device can detect the relationship between the traveling direction of the capsule endoscope and the imaging direction of the image. it can.

本発明に係る撮像方向判別装置では、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルと画像中心から該動きベクトルの始点を結ぶ位置ベクトルとの内積を演算し、内積の和が、正であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、負であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することが好ましい。   In the imaging direction discrimination device according to the present invention, the inner product of the motion vector of each block in the image calculated by the motion vector calculation device and the position vector connecting the start point of the motion vector from the image center is calculated, and the sum of the inner products is calculated. However, if it is positive, it is detected that the traveling direction of the capsule endoscope is the same as the image capturing direction, and if it is negative, the traveling direction of the capsule endoscope is opposite to the image capturing direction. It is preferable to detect.

前記の構成によれば、動きベクトルと位置ベクトルの内積は、両ベクトルの大きさと両ベクトルのなす角の余弦との積であるため、両ベクトルの大きさが大きい、即ち画像端に位置している動きベクトルの向き、及び大きく移動した動きベクトルの向きの重み付けを大きくすることにより、カプセル内視鏡の進行方向と画像の撮像方向との関係を検知することができる。   According to the above configuration, since the inner product of the motion vector and the position vector is the product of the magnitude of both vectors and the cosine of the angle formed by both vectors, the magnitude of both vectors is large, that is, located at the image end. By increasing the weighting of the direction of the motion vector being moved and the direction of the greatly moved motion vector, the relationship between the traveling direction of the capsule endoscope and the image capturing direction can be detected.

本発明に係る撮像方向判別装置では、カプセル内視鏡は、生体内部を撮像する少なくとも一つの撮像装置と、該撮像装置により撮像された画像を表わす画像データを前記撮像方向判別装置に送信する無線送信装置と、を有することが好ましい。   In the imaging direction determination device according to the present invention, the capsule endoscope wirelessly transmits at least one imaging device that images the inside of the living body and image data representing an image captured by the imaging device to the imaging direction determination device. And a transmission device.

前記の構成によれば、カプセル内視鏡が撮像装置と、該撮像装置により撮像された画像を体外に送信するための処理を行う無線送信装置と、を有しているため、該撮像装置が撮像した画像を前記無線送信装置からカプセル内視鏡の外部に送信することができ、その画像をもとに、前記撮像方向判別装置が、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか、反対であるかを検知することができる。   According to the above configuration, since the capsule endoscope includes the imaging device and the wireless transmission device that performs processing for transmitting the image captured by the imaging device to the outside of the body, the imaging device The captured image can be transmitted from the wireless transmission device to the outside of the capsule endoscope. On the basis of the image, the imaging direction determination device determines the traveling direction of the capsule endoscope and the imaging direction of the image. Whether they are the same or opposite can be detected.

本発明に係る撮像方向判別装置では、カプセル内視鏡は、前記撮像装置がカプセル内視鏡の長軸方向を撮像方向とすることが好ましい。   In the imaging direction discriminating apparatus according to the present invention, it is preferable that in the capsule endoscope, the imaging apparatus sets the major axis direction of the capsule endoscope as the imaging direction.

前記の構成によれば、カプセル内視鏡の進行方向と画像の撮像方向との関係は、両方向が同一となるか、もしくは反対となるかに限定することができる。   According to the above configuration, the relationship between the traveling direction of the capsule endoscope and the image capturing direction can be limited to whether both directions are the same or opposite.

本発明に係る撮像方向判別装置では、表示装置は、撮像方向検知装置による検知結果を表示することが好ましい。   In the imaging direction discriminating device according to the present invention, it is preferable that the display device displays a detection result by the imaging direction detection device.

前記の構成によれば、表示装置が撮像方向判別装置による検知結果を表示することにより、画像観察者が、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか、反対であるかを容易に認識することができる。   According to the above configuration, the display device displays the detection result by the imaging direction determination device, so that the image observer has the same or opposite direction of the capsule endoscope and the imaging direction of the image. Can be easily recognized.

本発明に係る撮像方向判別装置では、表示装置は、カプセル内視鏡が撮像した画像をさらに表示することが好ましい。   In the imaging direction determination device according to the present invention, it is preferable that the display device further displays an image captured by the capsule endoscope.

前記の構成によれば、画像観察者は、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか否かを確認すると共に、さらに画像も観察することができる。これにより、画像観察者は、撮像画像中の物体の位置関係をより正確に把握することができる。   According to the above configuration, the image observer can confirm whether the traveling direction of the capsule endoscope is the same as the imaging direction of the image and can also observe the image. Thereby, the image observer can grasp | ascertain the positional relationship of the object in a captured image more correctly.

本発明に係る撮像方向判別装置では、表示装置は、前記カプセル内視鏡の進行方向と撮像方向とが同一であると判断した場合に、該カプセル内視鏡が撮像した画像をそのまま表示し、該カプセル内視鏡の進行方向と撮像方向とが反対であると判断した場合に、該カプセル内視鏡が撮像した画像を鏡像処理して表示することが好ましい。   In the imaging direction discriminating device according to the present invention, when the display device determines that the traveling direction of the capsule endoscope and the imaging direction are the same, the image captured by the capsule endoscope is displayed as it is, When it is determined that the traveling direction of the capsule endoscope and the imaging direction are opposite, it is preferable to display the image captured by the capsule endoscope by performing a mirror image process.

前記の構成によれば、カプセル内視鏡の進行方向と画像の撮像方向とが反対のときに、動画像中の各フレーム(静止画像)に対し、X軸もしくはY軸に対し対称な画像を生成する鏡像処理を行ったうえで画面に表示するため、表示される画像は、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるときと、上下・左右の位置関係が同一になる。また、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるときはそのまま表示するため、撮像画像中の物体の位置関係は、カプセル内視鏡の進行方向と画像の撮像方向とに係らず、常に同一となる。このようにして、画像観察者は、表示される画像の位置関係を気にすることなく観察することができる。   According to the above-described configuration, when the traveling direction of the capsule endoscope is opposite to the image capturing direction, an image that is symmetric with respect to the X axis or the Y axis is displayed for each frame (still image) in the moving image. Since the generated mirror image processing is performed and displayed on the screen, the displayed image has the same vertical and horizontal positional relationship when the capsule endoscope traveling direction and the image capturing direction are the same. Become. In addition, when the capsule endoscope traveling direction and the image capturing direction are the same, they are displayed as they are, so the positional relationship of the object in the captured image is the same as the capsule endoscope traveling direction and the image capturing direction. Regardless, it will always be the same. In this way, the image observer can observe without worrying about the positional relationship of the displayed images.

本発明に係る撮像方向判別方法は、生体内を撮像するカプセル内視鏡の撮像方向を判別するための撮像方向判別方法であって、前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する工程と、前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する工程と、を備える。   An imaging direction discriminating method according to the present invention is an imaging direction discriminating method for discriminating an imaging direction of a capsule endoscope that images a living body, the capsule being received in time series from the capsule endoscope The step of calculating the motion vector of the image captured by the endoscope and whether the traveling direction of the capsule endoscope and the image capturing direction are the same or opposite based on the calculated motion vector Detecting.

前記の構成によれば、本発明に係る撮像方向判別方法は、カプセル内視鏡が撮像した画像の動きベクトルを計算する工程と、前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する工程と、を備えており、それにより、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか、反対であるかを検知することができる。   According to the above configuration, the imaging direction determination method according to the present invention includes a step of calculating a motion vector of an image captured by a capsule endoscope, and the capsule endoscope based on the calculated motion vector. Detecting whether the traveling direction and the image capturing direction are the same or opposite, so that the capsule endoscope traveling direction and the image capturing direction are the same. , The opposite can be detected.

本発明に係る撮像方向判別プログラムは、生体内を撮像するカプセル内視鏡の撮像方向を判別させるための撮像方向判別プログラムであって、コンピュータに、前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する手順と、前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する手順と、を実行させる。   An imaging direction discrimination program according to the present invention is an imaging direction discrimination program for discriminating an imaging direction of a capsule endoscope that images a living body, and is received by a computer in time series from the capsule endoscope. The procedure for calculating the motion vector of the image captured by the capsule endoscope and the traveling direction of the capsule endoscope and the imaging direction of the image are the same or opposite based on the calculated motion vector And a procedure for detecting whether or not.

前記の構成によれば、本発明に係る撮像方向判別プログラムは、カプセル内視鏡が撮像した画像の動きベクトルを計算する手順と、前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する手順と、を実行させることができ、それらの手順を実行することにより、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか、反対であるかを検知することができる。   According to the above-described configuration, the imaging direction determination program according to the present invention calculates a motion vector of an image captured by a capsule endoscope and the capsule endoscope based on the calculated motion vector. A procedure for detecting whether the traveling direction and the image capturing direction are the same or opposite, and by executing these procedures, the traveling direction of the capsule endoscope and the image Whether the imaging direction is the same or opposite can be detected.

本発明に係る撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体は、生体内を撮像するカプセル内視鏡の撮像方向を判別させるための撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体であって、コンピュータに、前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する手順と、前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する手順と、を実行させるための撮像方向判別プログラムを記録している。   The computer-readable recording medium on which the imaging direction determination program according to the present invention is recorded is a computer-readable recording medium on which an imaging direction determination program for determining the imaging direction of the capsule endoscope that images the inside of a living body is recorded. A computer calculates a motion vector of an image captured by the capsule endoscope received in time series from the capsule endoscope, and based on the calculated motion vector, An imaging direction discriminating program for executing a procedure for detecting whether the traveling direction of the endoscope and the imaging direction of the image are the same or opposite is recorded.

前記の構成によれば、本発明に係る撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体は、カプセル内視鏡が撮像した画像の動きベクトルを計算する手順と、前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する手順と、を実行するプログラムを記録しており、プログラムを実行することにより、カプセル内視鏡の進行方向と画像の撮像方向とが同一であるか、反対であるかを検知することができる。   According to the above configuration, the computer-readable recording medium recording the imaging direction determination program according to the present invention includes a procedure for calculating a motion vector of an image captured by a capsule endoscope, and the calculated motion vector. Based on the above, a procedure for detecting whether the traveling direction of the capsule endoscope and the imaging direction of the image are the same or opposite is recorded, and by executing the program, It is possible to detect whether the traveling direction of the capsule endoscope is the same as or opposite to the image capturing direction.

本発明に係る撮像方向判別装置、撮像方向判別方法、撮像方向判別プログラム、及び撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体によって、カプセルの進行方向と撮像装置の撮像方向の関係を自動的に判別することができる。これにより、医師など撮像画像の観察者は、カプセル内視鏡による画像の撮像方向を容易に判断することができ、より診断の精度が増すという効果を奏する。   The relationship between the capsule traveling direction and the imaging direction of the imaging device is automatically determined by the imaging direction determination device, the imaging direction determination method, the imaging direction determination program, and the computer-readable recording medium storing the imaging direction determination program according to the present invention. Can be determined. Thereby, an observer of a captured image such as a doctor can easily determine the imaging direction of the image by the capsule endoscope, and there is an effect that the accuracy of diagnosis is further increased.

(実施の形態1)
本実施の形態1について、図1〜図9に基づいて説明すると以下の通りである。
(Embodiment 1)
The following describes the first embodiment with reference to FIGS.

まずは、図1に基づいて、本実施の形態に係る撮像方向判別装置250を備える診断装置260Aの構成を説明する。   First, based on FIG. 1, the structure of the diagnostic apparatus 260A provided with the imaging direction discrimination apparatus 250 which concerns on this Embodiment is demonstrated.

図1は、診断装置260Aのブロック図である。診断装置260Aは、カプセル内視鏡101、及び画像処理装置220によって構成されている。   FIG. 1 is a block diagram of the diagnostic apparatus 260A. The diagnostic device 260A includes the capsule endoscope 101 and the image processing device 220.

カプセル内視鏡101は、外壁203によって形作られている。カプセル内視鏡101の内部は、レンズ204と、撮像装置201と、照明装置202と、無線送信装置205と、送信アンテナ207と、電池206と、電源線208と、によって構成されている。   The capsule endoscope 101 is formed by an outer wall 203. The inside of the capsule endoscope 101 includes a lens 204, an imaging device 201, an illumination device 202, a wireless transmission device 205, a transmission antenna 207, a battery 206, and a power line 208.

レンズ204は、照明装置202より照射され生体内の臓器にて反射した光を撮像装置201の表面に集める役割を果たしている。撮像装置201は、生体内の臓器の撮像を行うものであり、CCDやCMOSセンサが用いられる。照明装置202は、生体内に光を照射するものであり、LEDが用いられる。   The lens 204 plays a role of collecting, on the surface of the imaging device 201, the light irradiated from the illumination device 202 and reflected by the organ in the living body. The imaging device 201 performs imaging of an organ in a living body, and a CCD or a CMOS sensor is used. The illumination device 202 irradiates light in the living body, and an LED is used.

無線送信装置205は、撮像装置201により撮像された画像データを体外に送信するための処理を行うために用いられる。送信アンテナ207は、無線送信装置205により処理された画像データをカプセル内視鏡101の外部に送信するために用いる。電池206は、カプセル内視鏡101の内部の各装置に電力を供給するものであり、酸化銀電池などの小型ボタン電池が用いられる。電源線208は、電池206から各装置に電力を供給するために用いられる。   The wireless transmission device 205 is used for performing processing for transmitting image data captured by the imaging device 201 to the outside of the body. The transmission antenna 207 is used to transmit the image data processed by the wireless transmission device 205 to the outside of the capsule endoscope 101. The battery 206 supplies power to each device inside the capsule endoscope 101, and a small button battery such as a silver oxide battery is used. The power line 208 is used to supply power from the battery 206 to each device.

画像処理装置220は、受信アンテナ221と、無線受信装置222と、動きベクトル計算装置223と撮像方向検知装置224とによって構成された撮像方向判別装置250と、表示装置225と、によって構成されている。受信アンテナ221は、カプセル内視鏡101の送信アンテナ207が送信した電波を受信するために用いられる。無線受信装置222は、受信アンテナ221が受信した信号を復調する処理を行うために用いられる。動きベクトル計算装置223は、画像内に存在する物体のフレーム間の移動量を計算するために用いられる。撮像方向検知装置224は、動きベクトル計算装置223により計算された動きベクトルを基に、カプセル内視鏡101の撮像方向と移動方向が同一であるか、或いは反対であるか、を検知するために用いられる。表示装置225は、カプセル内視鏡101により撮像された画像、および撮像方向検知装置224により検知されたカプセル内視鏡101の撮像方向と移動方向の関係に関する情報を表示する。表示装置225は、CRTディスプレイ、液晶ディスプレイ、プラズマディスプレイ、或いは有機ELなどが用いられる。なお、撮像方向検知装置224の詳細な構成は、その動作とともに後ほど詳細に説明する。   The image processing apparatus 220 includes a reception antenna 221, a wireless reception apparatus 222, an imaging direction determination apparatus 250 configured by a motion vector calculation apparatus 223 and an imaging direction detection apparatus 224, and a display apparatus 225. . The reception antenna 221 is used for receiving radio waves transmitted by the transmission antenna 207 of the capsule endoscope 101. The wireless reception device 222 is used for performing a process of demodulating a signal received by the reception antenna 221. The motion vector calculation device 223 is used to calculate the amount of movement between frames of an object present in the image. The imaging direction detection device 224 detects whether the imaging direction and the movement direction of the capsule endoscope 101 are the same or opposite based on the motion vector calculated by the motion vector calculation device 223. Used. The display device 225 displays an image captured by the capsule endoscope 101 and information regarding the relationship between the imaging direction and the movement direction of the capsule endoscope 101 detected by the imaging direction detection device 224. As the display device 225, a CRT display, a liquid crystal display, a plasma display, an organic EL, or the like is used. The detailed configuration of the imaging direction detection device 224 will be described in detail later along with the operation thereof.

上記構成において、診断装置260Aの動作を説明すると、以下の通りである。   In the above configuration, the operation of the diagnostic device 260A will be described as follows.

まずは、図1に基づいて説明すると、撮像装置201によって撮像された画像データは出力端子211から出力され、入力端子212から無線送信装置205に入力される。無線送信装置205は、無線送信に適した形式に送信データを変調(例えばFM変調)し、変調された画像データは出力端子213から送信アンテナ207に送られる。その後、送信アンテナ207から無線によりカプセル内視鏡101の外部に送られる。   First, with reference to FIG. 1, image data captured by the imaging device 201 is output from the output terminal 211 and input to the wireless transmission device 205 from the input terminal 212. The wireless transmission device 205 modulates transmission data (for example, FM modulation) into a format suitable for wireless transmission, and the modulated image data is sent from the output terminal 213 to the transmission antenna 207. Thereafter, the signal is transmitted from the transmission antenna 207 to the outside of the capsule endoscope 101 by radio.

送信アンテナ207から送信された画像データは、受信アンテナ221により受信され、入力端子230から無線受信装置222に入力される。無線受信装置222は、入力されたデータに対し、無線送信装置205で行われた変調処理に対応する復調処理を行う。復調処理が行われた受信データ、即ち撮像装置201で撮像された画像は、出力端子231から画像データ入力端子236を通して表示装置225に、および入力端子232を通して動きベクトル計算装置223に入力される。動きベクトル計算装置223は、画像中に存在する物体のフレーム間での移動量を計算する。計算された動きベクトルは出力端子233を通して撮像方向検知装置224の入力端子234に入力される。撮像方向検知装置224は、動きベクトルを基に、カプセル内視鏡101の撮像方向と進行方向が同一であるか、反対であるか、を検知する。検知結果は出力端子235から出力され、撮像方向データ入力端子237を通して表示装置225に入力される。表示装置225は、画像データ入力端子236から入力された画像、即ち撮像装置201により撮像された画像と、撮像方向データ入力端子237から入力されたカプセル内視鏡101の撮像方向と進行方向の関係を表すデータを併せて表示する。   The image data transmitted from the transmission antenna 207 is received by the reception antenna 221 and input to the wireless reception device 222 from the input terminal 230. The wireless reception device 222 performs demodulation processing corresponding to the modulation processing performed by the wireless transmission device 205 on the input data. The demodulated received data, that is, the image captured by the image capturing apparatus 201 is input from the output terminal 231 to the display apparatus 225 through the image data input terminal 236 and to the motion vector calculation apparatus 223 through the input terminal 232. The motion vector calculation device 223 calculates a movement amount between frames of an object present in the image. The calculated motion vector is input to the input terminal 234 of the imaging direction detection device 224 through the output terminal 233. The imaging direction detection device 224 detects whether the imaging direction and the traveling direction of the capsule endoscope 101 are the same or opposite based on the motion vector. The detection result is output from the output terminal 235 and input to the display device 225 through the imaging direction data input terminal 237. The display device 225 includes an image input from the image data input terminal 236, that is, an image captured by the imaging device 201, and a relationship between the imaging direction and the traveling direction of the capsule endoscope 101 input from the imaging direction data input terminal 237. In addition, the data representing is displayed.

ここで、図2を用いて、動きベクトル計算装置223の動作を説明する。   Here, the operation of the motion vector calculation device 223 will be described with reference to FIG.

動きベクトルとは、動画像のあるフレーム中に存在する図形の位置と、それより後の時点における同一フレーム中の該図形の位置の変化を表したものである。図2を例にして説明する。図2は動きベクトルについて説明する図である。   A motion vector represents a position of a figure existing in a frame of a moving image and a change in the position of the figure in the same frame at a later time point. This will be described with reference to FIG. FIG. 2 is a diagram for explaining a motion vector.

図2左側は、撮像時刻tがt=tにおけるフレームを、図2右側は、t=t+τにおける同一フレームを表す。撮像時刻t=tのフレーム中の座標(x、y)に存在していた図形が、撮像時刻t=t+τのフレーム中の座標(x、y)に移動したとする。このとき、t=tでの座標(x、y)における動きベクトルは(x−x、y−y)となる。なお、本願明細書において画像の座標系を考えるとき、画像中心を原点とし、水平方向、垂直方向の直交する2軸による座標系を考える。水平方向の軸をX軸、垂直方向の軸をY軸と記す。 The left side of FIG. 2 represents a frame when the imaging time t is t = t 0 , and the right side of FIG. 2 represents the same frame at t = t 0 + τ. Figure that existed in the imaging time t = t 0 of the coordinate in the frame (x 0, y 0) is assumed to move to the imaging time t = t 0 + τ coordinates in the frame (x 1, y 1) . At this time, the motion vector at the coordinates (x 0 , y 0 ) at t = t 0 is (x 1 −x 0 , y 1 −y 0 ). In the specification of the present application, when a coordinate system of an image is considered, a coordinate system with two axes orthogonal to each other in the horizontal direction and the vertical direction with the image center as the origin is considered. The horizontal axis is referred to as the X axis, and the vertical axis is referred to as the Y axis.

この動きベクトルを計算する方法として、ブロックマッチング法が知られている。ブロックマッチング法では、フレームをある一定の大きさ、例えば4×4、8×8などの大きさブロックに分割し、ブロック毎に動きベクトルを計算する。これらの方法により、画像中の全ブロックに対して動きベクトルが計算され、計算された動きベクトルが撮像方向検知装置224に入力される。   A block matching method is known as a method for calculating this motion vector. In the block matching method, a frame is divided into blocks of a certain size, for example, 4 × 4, 8 × 8, etc., and a motion vector is calculated for each block. With these methods, motion vectors are calculated for all blocks in the image, and the calculated motion vectors are input to the imaging direction detection device 224.

次に、図3・図4を用いて、撮像方向検知装置224の動作を説明する。   Next, the operation of the imaging direction detection device 224 will be described with reference to FIGS.

撮像方向検知装置224では、動きベクトル計算装置223において計算された画像の動きベクトルを基に、カプセル内視鏡101の撮像方向と進行方向が同一である(状態301)か、反対であるか(状態302)を検知する。   In the imaging direction detection device 224, based on the motion vector of the image calculated by the motion vector calculation device 223, the imaging direction and the traveling direction of the capsule endoscope 101 are the same (state 301) or opposite ( State 302) is detected.

状態301における撮像画像データの変化を、図3を基に説明する。図3は、状態301における撮像画像の変化を説明した図である。   A change in captured image data in the state 301 will be described with reference to FIG. FIG. 3 is a diagram illustrating changes in the captured image in the state 301.

カプセル内視鏡101の前方に物体601が存在しているとする。カプセル内視鏡101の撮像装置201は進行方向を撮像しており、撮像範囲は602で示される範囲である。物体601が撮像範囲602内に入ってきた当初は、物体601が撮像範囲602の中心付近に位置している(図3(a))。即ち、当初の撮像画像の中心付近には物体601が映っている。時間の経過に伴い、カプセル内視鏡101は腸内を進行していき(図3の左側が進行方向)、物体601とカプセル内視鏡101は互いに接近していく(図3(b))。接近に伴い、物体601は撮像範囲602の境界に近づいていく。即ち、物体601は時間の経過に伴い、撮像画像の端部に移動していく(図3(c))。   Assume that an object 601 is present in front of the capsule endoscope 101. The imaging device 201 of the capsule endoscope 101 images the traveling direction, and the imaging range is a range indicated by 602. When the object 601 enters the imaging range 602, the object 601 is located near the center of the imaging range 602 (FIG. 3A). That is, the object 601 is shown near the center of the initial captured image. As time passes, the capsule endoscope 101 advances in the intestine (the left side in FIG. 3 is the direction of movement), and the object 601 and the capsule endoscope 101 approach each other (FIG. 3B). . As the object approaches, the object 601 approaches the boundary of the imaging range 602. That is, the object 601 moves to the end of the captured image as time passes (FIG. 3C).

次に、状態302における撮像画像データの変化を、図4を基に説明する。図4は、状態302における撮像画像の変化を説明した図である。   Next, a change in captured image data in the state 302 will be described with reference to FIG. FIG. 4 is a diagram illustrating changes in the captured image in the state 302.

カプセル内視鏡101の後方に物体601が存在しているとする。カプセル内視鏡101の撮像装置201は、進行方向とは反対方向を撮像しており、撮像範囲は602で示される範囲である。物体601が撮像範囲602内に入ってきた当初は、物体601はカプセル内視鏡101の近傍に位置しているので、物体601が撮像範囲602の境界付近に位置している(図4(a))。つまり、物体601は、撮像画像の画像端付近に映っている。時間の経過に伴い、カプセル内視鏡101は腸内を進行し、物体601とカプセル内視鏡101は互いに離れていく(図4(b))。離れるに従い、物体601は撮像範囲602の中心に近づいていく。即ち、物体601は、時間の経過に伴い撮像画像の中心に向け移動していく(図4(c))。   Assume that an object 601 is present behind the capsule endoscope 101. The imaging device 201 of the capsule endoscope 101 images in the direction opposite to the traveling direction, and the imaging range is a range indicated by 602. Since the object 601 is located near the capsule endoscope 101 when the object 601 enters the imaging range 602, the object 601 is located near the boundary of the imaging range 602 (FIG. 4A )). That is, the object 601 is reflected near the image end of the captured image. As time passes, the capsule endoscope 101 advances in the intestine, and the object 601 and the capsule endoscope 101 are separated from each other (FIG. 4B). The object 601 approaches the center of the imaging range 602 as the distance increases. That is, the object 601 moves toward the center of the captured image as time passes (FIG. 4C).

以上より、状態301の場合、即ちカプセル内視鏡101の撮像方向と進行方向が同一の場合は、撮像画像中の物体は時間の経過に伴い画像端に向かって移動していく。つまり、画像の動きベクトルは画像の端を向いている。逆に、状態302の場合、即ちカプセル内視鏡101の撮像方向と進行方向が反対の場合は、撮像画像中の物体は時間の経過に伴い画像中心に向かって移動していく。つまり、画像の動きベクトルは画像の中心を向いている。   As described above, in the case of the state 301, that is, when the imaging direction of the capsule endoscope 101 is the same as the traveling direction, the object in the captured image moves toward the image end as time passes. That is, the motion vector of the image faces the edge of the image. On the other hand, in the case of the state 302, that is, when the imaging direction of the capsule endoscope 101 is opposite to the traveling direction, the object in the captured image moves toward the center of the image with time. That is, the motion vector of the image is directed to the center of the image.

次に、動きベクトルの向きを判定する方法を、図5・図6を基に説明する。   Next, a method for determining the direction of the motion vector will be described with reference to FIGS.

画像中のあるブロックに対応する動きベクトル802、及び、画像中心(座標系原点)と動きベクトル802の始点を結んだ位置ベクトル801を考える。この二つのベクトルのなす角θが鋭角か鈍角かによって、ベクトルの向きを判定することができる。図5は、位置ベクトル801と動きベクトル802とのなす角θが鋭角となっている場合である。座標系原点を中心とする円803を考えると、二つのベクトルのなす角θが鋭角であれば、動きベクトル802は円803の内側から外側に向いている、即ち、動きベクトル802は画像端を向いていることを表す。図6は、ベクトルのなす角θが鈍角である場合である。このとき、動きベクトル802は円803の外側から内側に向いている、即ち、動きベクトル802は画像中心を向いている。   Consider a motion vector 802 corresponding to a block in the image, and a position vector 801 connecting the image center (coordinate system origin) and the start point of the motion vector 802. The direction of the vector can be determined based on whether the angle θ formed by these two vectors is an acute angle or an obtuse angle. FIG. 5 shows a case where the angle θ formed by the position vector 801 and the motion vector 802 is an acute angle. Considering a circle 803 centered at the origin of the coordinate system, if the angle θ formed by the two vectors is an acute angle, the motion vector 802 is directed from the inside to the outside of the circle 803, that is, the motion vector 802 is positioned at the image end. Indicates that you are facing. FIG. 6 shows a case where the angle θ formed by the vector is an obtuse angle. At this time, the motion vector 802 is directed from the outside to the inside of the circle 803, that is, the motion vector 802 is directed to the center of the image.

1個のフレーム中に動きベクトル802は複数あるが、動きベクトル802とその動きベクトル802に対応する位置ベクトル801のなす角θが鋭角となっているベクトルの本数が鈍角となっている本数より多ければ、画像中の物体は画像端に移動していると判断することができる。また、動きベクトル802とその動きベクトル802に対応する位置ベクトル801のなす角θが鈍角となっているベクトルの本数が鋭角となっている本数より多ければ、画像中の物体は画像中心に移動していると判断できる。   Although there are a plurality of motion vectors 802 in one frame, the number of vectors in which the angle θ formed by the motion vector 802 and the position vector 801 corresponding to the motion vector 802 is an acute angle is greater than the number of obtuse angles. For example, it can be determined that the object in the image has moved to the edge of the image. In addition, if the number of vectors having an obtuse angle θ between the motion vector 802 and the position vector 801 corresponding to the motion vector 802 is greater than the number of acute vectors, the object in the image moves to the center of the image. Can be judged.

続いて、撮像方向検知装置224の構成と動作を、図7を基に説明する。   Next, the configuration and operation of the imaging direction detection device 224 will be described with reference to FIG.

撮像方向検知装置224は、位置ベクトル生成回路1001と、ベクトル内積演算回路1002と、符号判定回路1003と、Notゲート1005と、カウンタ1004・1006と、比較器1007と、で構成されている。   The imaging direction detection device 224 includes a position vector generation circuit 1001, a vector inner product calculation circuit 1002, a sign determination circuit 1003, a Not gate 1005, counters 1004 and 1006, and a comparator 1007.

入力端子234には、動きベクトル計算装置223が出力する動きベクトル802の出力が入力される。以下、動きベクトル802の始点の座標を(x、y)、終点の座標を(xe、ye)とする。位置ベクトル生成回路1001は、入力された動きベクトル802に対応する位置ベクトル801を生成する。つまり、位置ベクトル801は座標原点と動きベクトル802の始点とを結ぶベクトルであるので、位置ベクトル生成回路1001は、成分が(x、y)となるベクトルを出力する。 The output of the motion vector 802 output from the motion vector calculation device 223 is input to the input terminal 234. Hereinafter, the coordinates of the start point of the motion vector 802 are (x S , y S ), and the coordinates of the end point are (x e , y e ). The position vector generation circuit 1001 generates a position vector 801 corresponding to the input motion vector 802. That is, since the position vector 801 is a vector connecting the coordinate origin and the start point of the motion vector 802, the position vector generation circuit 1001 outputs a vector whose components are (x S , y S ).

ベクトル内積演算回路1002は、入力された2つのベクトルの内積を演算する。符号判定回路1003は、入力された値が正であればHレベルの信号を、負であればLレベルの信号を出力する。カウンタ1004・1006は、入力されたHレベルの信号の個数を数える。比較器1007は、(+入力端子の値)≧(−入力端子の値)であればHレベルの信号を、(−入力端子の値)>(+入力端子の値)であればLレベルの信号を出力する。なお、撮像方向検知装置224の内部の各回路は、あるフレームの最初のブロックの動きベクトル802が入力された時にリセットされるものとする。   A vector dot product calculation circuit 1002 calculates a dot product of two input vectors. The sign determination circuit 1003 outputs an H level signal if the input value is positive, and outputs an L level signal if the input value is negative. The counters 1004 and 1006 count the number of input H level signals. The comparator 1007 outputs an H level signal if (+ input terminal value) ≧ (−input terminal value), and an L level signal if (−input terminal value)> (+ input terminal value). Output a signal. Note that each circuit in the imaging direction detection device 224 is reset when the motion vector 802 of the first block of a certain frame is input.

ここで、動きベクトルmと位置ベクトルpの内積は以下の式で表される。   Here, the inner product of the motion vector m and the position vector p is expressed by the following equation.

m・p=|m||p|cosθ(θ:ベクトルmとベクトルpのなす角)
|m|≧0、|p|≧0であるので、内積が正のときはcosθが正、即ちθが鋭角であり、内積が負のときはcosθが負、即ちθが鈍角である。
m · p = | m || p | cos θ (θ: angle formed by vector m and vector p)
Since | m | ≧ 0 and | p | ≧ 0, when the inner product is positive, cos θ is positive, that is, θ is an acute angle, and when the inner product is negative, cos θ is negative, that is, θ is an obtuse angle.

そして、符号判定回路1003がHレベルを出力するときは、入力された動きベクトル802と位置ベクトル801とのなす角θは鋭角であり、Lレベルを出力するときは動きベクトル802と位置ベクトル801とのなす角θは鈍角である。   When the sign determination circuit 1003 outputs an H level, the angle θ formed by the input motion vector 802 and the position vector 801 is an acute angle. When the sign determination circuit 1003 outputs an L level, the motion vector 802 and the position vector 801 Is an obtuse angle.

カウンタ1004は、符号判定回路1003がHレベルを出した回数、つまり動きベクトル802と位置ベクトル801とのなす角θが鋭角である動きベクトル802の本数を数えている。より具体的には、あるフレームに属し画像端を向いている動きベクトル802の本数をカウントしている。カウンタ1006には符号判定回路1003の出力にNotゲート1005を通した信号が入力されており、あるフレームに属する動きベクトル802と位置ベクトル801とのなす角θが鈍角である動きベクトル802の本数、つまり画像中心を向いている動きベクトル802の本数を数えている。より具体的には、あるフレームに属し画像中心を向いている動きベクトル802の本数をカウントしている。   The counter 1004 counts the number of times that the code determination circuit 1003 outputs an H level, that is, the number of motion vectors 802 having an acute angle θ between the motion vector 802 and the position vector 801. More specifically, the number of motion vectors 802 belonging to a certain frame and facing the image end is counted. The counter 1006 receives a signal that has passed through a Not gate 1005 as an output of the sign determination circuit 1003, and the number of motion vectors 802 in which an angle θ formed by a motion vector 802 and a position vector 801 belonging to a certain frame is an obtuse angle, That is, the number of motion vectors 802 facing the image center is counted. More specifically, the number of motion vectors 802 belonging to a certain frame and facing the center of the image is counted.

比較器1007にはカウンタ1004とカウンタ1006の出力が入力される。画像中心に向かっている動きベクトルの本数と、画像端に向かっている動きベクトルの本数の大小を比較し、その結果を出力している。つまり、比較器1007は、撮像画像中の物体が画像中心・画像端のいずれに向かっているかを示す信号を出力しており、カプセル内視鏡101の撮像方向と進行方向が同一であるか、反対であるかを示す信号を出力している。比較器1007がHレベルを出力するときは、カウンタ1004の値がカウンタ1006の値より大きく、画像端を向いている動きベクトル802の本数が画像中心を向いている動きベクトル802の本数より多いことを示している。比較器1007がLレベルを出力するときは、カウンタ1006の値がカウンタ1004の値より大きく、画像中心を向いている動きベクトル802の本数が、画像端を向いている動きベクトル802の本数より多いことを示している。   The outputs of the counter 1004 and the counter 1006 are input to the comparator 1007. The number of motion vectors toward the center of the image is compared with the number of motion vectors toward the end of the image, and the result is output. That is, the comparator 1007 outputs a signal indicating whether the object in the captured image is directed toward the image center or the image end, and the imaging direction of the capsule endoscope 101 is the same as the traveling direction. A signal indicating whether the opposite is true is output. When the comparator 1007 outputs H level, the value of the counter 1004 is larger than the value of the counter 1006, and the number of motion vectors 802 facing the image edge is larger than the number of motion vectors 802 facing the image center. Is shown. When the comparator 1007 outputs L level, the value of the counter 1006 is larger than the value of the counter 1004, and the number of motion vectors 802 facing the image center is larger than the number of motion vectors 802 facing the image end. It is shown that.

上記説明したように、撮像方向検知装置224がHレベルを出力しているときは、カプセル内視鏡101の撮像方向と進行方向が同一である。撮像方向検知装置224がLレベルを出力しているときは、カプセル内視鏡101の撮像方向と進行方向が反対である。このようにして、撮像方向検知装置224はカプセル内視鏡101の撮像方向と進行方向の関係を検知している。   As described above, when the imaging direction detection device 224 outputs the H level, the imaging direction and the traveling direction of the capsule endoscope 101 are the same. When the imaging direction detection device 224 outputs L level, the imaging direction of the capsule endoscope 101 and the traveling direction are opposite. In this way, the imaging direction detection device 224 detects the relationship between the imaging direction of the capsule endoscope 101 and the traveling direction.

次に、表示装置225の動作について、図1に基づいて説明する。   Next, the operation of the display device 225 will be described with reference to FIG.

撮像装置201により撮像された動画像が表示装置225の画像データ入力端子236から入力され、カプセル内視鏡101の撮像方向と進行方向が同一であるか否かを示すデータが撮像方向データ入力端子237から入力される。撮像方向検知装置224がHレベルを出力しているときは、撮像方向と進行方向が同一であり、表示装置225は動画像と共に、“カプセル前方の画像”と表示する。撮像方向検知装置224がLレベルを出力しているときは、撮像方向と進行方向が反対なため、表示装置225は動画像と共に、“カプセル後方の画像”と表示する。画像観察者は、これらの表示によりカプセル内視鏡101の撮像方向を認識できる。なお、上記のような文字ではなく、例えば矢印などの図形を用いて撮像方向を表示してもよい。   A moving image captured by the imaging device 201 is input from the image data input terminal 236 of the display device 225, and data indicating whether the imaging direction and the traveling direction of the capsule endoscope 101 are the same is the imaging direction data input terminal. 237 is input. When the imaging direction detection device 224 outputs the H level, the imaging direction and the traveling direction are the same, and the display device 225 displays “image in front of the capsule” together with the moving image. When the imaging direction detection device 224 outputs L level, the imaging direction and the traveling direction are opposite, and therefore the display device 225 displays “image behind the capsule” together with the moving image. The image observer can recognize the imaging direction of the capsule endoscope 101 by these displays. In addition, you may display an imaging direction using figures, such as an arrow, instead of the above characters.

上記構成において、本実施の形態に係る撮像方向判別装置250を備える診断装置260Aの効果を説明すると、以下の通りである。   In the above configuration, the effect of the diagnostic device 260A including the imaging direction determination device 250 according to the present embodiment will be described as follows.

撮像装置201が撮像した動画像の各フレームに対し、上記の方法(ブロックマッチング法)により動きベクトル802を計算する。撮像方向検知装置224は、画像端を向いている動きベクトルの本数と、画像中心を向いている動きベクトルの本数を比較する。これにより、カプセル内視鏡101の撮像方向と進行方向が同一であるか否かを検知できる。表示装置225は、動画像と共に撮像方向検知装置224の検知結果を合わせて表示するため、画像観察者は、カプセル内視鏡101の撮像方向を認識することができる。   A motion vector 802 is calculated by the above method (block matching method) for each frame of a moving image captured by the imaging apparatus 201. The imaging direction detection device 224 compares the number of motion vectors facing the image edge with the number of motion vectors facing the image center. Thereby, it can be detected whether the imaging direction and the traveling direction of the capsule endoscope 101 are the same. Since the display device 225 displays the moving image together with the detection result of the imaging direction detection device 224, the image observer can recognize the imaging direction of the capsule endoscope 101.

なお、撮像方向検知装置224は、画像端を向いている動きベクトルの本数、画像中心を向いている動きベクトルの本数の大小を評価し、カプセル内視鏡101の撮像方向を検知するが、動きベクトル802の本数とは異なる値を用いることにより、撮像方向を検知することも可能である。以下、他の検知方法を説明する。   Note that the imaging direction detection device 224 detects the imaging direction of the capsule endoscope 101 by evaluating the number of motion vectors facing the image edge and the number of motion vectors facing the image center. By using a value different from the number of vectors 802, it is possible to detect the imaging direction. Hereinafter, other detection methods will be described.

動きベクトル802と位置ベクトル801とのなす角θが180度に近いほど動きベクトル802はより画像中心に、0度に近いほど動きベクトル802はより画像端を向いている。画像中の動きベクトル802が総じてどちらを向いているかを判定する際に、画像中心、及び画像端を向いている動きベクトル802を重く評価すると、より精度よく判定できる。ここで、動きベクトル802と位置ベクトル801とのなす角θの余弦cosθを考えると、θが90度に近いほどcosθの絶対値は小さくなり、0度および180度に近いほど絶対値は大きくなる。よって、フレーム内の動きベクトル802に対し位置ベクトル801とのなす角θの余弦を求め、その和を評価することにより、より画像中心・画像端を向いている動きベクトル802の方向に重みをおいて評価することができる。   The closer the angle θ between the motion vector 802 and the position vector 801 is to 180 degrees, the closer the motion vector 802 is to the center of the image, and the closer to 0 degrees, the more the motion vector 802 is directed to the image end. In determining which direction the motion vector 802 in the image is facing generally, if the motion vector 802 facing the image center and the image end is heavily evaluated, the determination can be made with higher accuracy. Here, considering the cosine cos θ of the angle θ formed by the motion vector 802 and the position vector 801, the absolute value of cos θ decreases as θ approaches 90 degrees, and the absolute value increases as it approaches 0 degrees and 180 degrees. . Therefore, the cosine of the angle θ formed by the position vector 801 with respect to the motion vector 802 in the frame is obtained, and the sum thereof is evaluated, thereby giving a weight in the direction of the motion vector 802 facing the image center and the image end. And can be evaluated.

上記のように、重みをつけて動きベクトル802を評価する撮像方向検知装置224Aの構成を図8に示す。なお、図7において用いたのと同じ構成要素には同一の符号を付しており、これらの詳細な説明は省略する。   As described above, FIG. 8 shows the configuration of the imaging direction detection device 224A that evaluates the motion vector 802 with weights. In addition, the same code | symbol is attached | subjected to the same component used in FIG. 7, and these detailed description is abbreviate | omitted.

撮像方向検知装置224Aは、位置ベクトル生成回路1001と、ベクトル内積演算回路1002と、ベクトルの大きさ演算回路1101・1102と、除算器1103・1104と、加算器1105と、符号判定回路1106と、によって構成されている。   The imaging direction detection device 224A includes a position vector generation circuit 1001, a vector inner product calculation circuit 1002, vector magnitude calculation circuits 1101 and 1102, dividers 1103 and 1104, an adder 1105, a sign determination circuit 1106, It is constituted by.

除算器1103・1104は2つの入力を有し、(入力1の値)/(入力2の値)を出力する。加算器1105は入力値の和を出力する。ベクトルの大きさ演算回路1101・1102は、ベクトルを入力とし、そのベクトルの大きさを出力する。入力されたベクトルの成分を(x、y)とすると、“√(x+y)”を出力する。 Dividers 1103 and 1104 have two inputs and output (value of input 1) / (value of input 2). The adder 1105 outputs the sum of the input values. Vector magnitude calculation circuits 1101 and 1102 take a vector as an input and output the magnitude of the vector. If the input vector component is (x, y), “√ (x 2 + y 2 )” is output.

除算器1103は、ベクトル内積演算回路1002の出力と、ベクトルの大きさ演算回路1101の出力、即ち位置ベクトルpの大きさが入力されるため、除算器1103はm・p/|p|を出力する。同様に、除算器1104は、ベクトルの大きさ演算回路1102から動きベクトルmの大きさが入力されているため、下記の式の値を出力する。   The divider 1103 receives the output of the vector dot product calculation circuit 1002 and the output of the vector magnitude calculation circuit 1101, that is, the size of the position vector p, so that the divider 1103 outputs m · p / | p |. To do. Similarly, since the magnitude of the motion vector m is input from the vector magnitude calculation circuit 1102, the divider 1104 outputs a value of the following equation.

m・p/(|m||p|)
ベクトルの内積は、m・p=|m||p|cosθで与えられるので、除算器1104は動きベクトル802と位置ベクトル801とのなす角θの余弦cosθを出力している。
m · p / (| m || p |)
Since the inner product of the vectors is given by m · p = | m || p | cos θ, the divider 1104 outputs the cosine cos θ of the angle θ formed by the motion vector 802 and the position vector 801.

加算器1105は、自身の出力と除算器1104の和を出力しており、フレーム内の動きベクトル802とその動きベクトル802に対応する位置ベクトル801のなす角θの余弦の和を出力している。加算器1105の出力が符号判定回路1106に入力されており、なす角θの余弦の和が正であれば符号判定回路1106はHレベルを、負であればLレベルを出力する。   The adder 1105 outputs the output of itself and the sum of the divider 1104, and outputs the sum of cosines of the angle θ formed by the motion vector 802 in the frame and the position vector 801 corresponding to the motion vector 802. . The output of the adder 1105 is input to the sign determination circuit 1106. If the sum of the cosines of the angle θ formed is positive, the sign determination circuit 1106 outputs an H level, and if it is negative, the sign determination circuit 1106 outputs an L level.

以上より、撮像方向検知装置224Aは、より画像中心・画像端を向いている動きベクトル802に重みを付けた上で、総じてフレーム内の動きベクトル802が画像中心を向いているか、画像端を向いているかを評価することができる。   As described above, the imaging direction detection device 224A weights the motion vector 802 that is more toward the image center / image end, and then the motion vector 802 in the frame is generally directed toward the image center or the image end. Can be evaluated.

さらに、他の撮像方向の評価手法を説明する。   Furthermore, other evaluation methods for the imaging direction will be described.

カプセル内視鏡101の動きのぶれにより、撮像画像内の物体が移動することがある。ぶれにより物体が動く場合は物体の移動量は少ないため、動きベクトル802の大きさは小さくなる。よって、このようなぶれによる影響を除くために、移動量が大きい動きベクトル802ほど重みをつけて評価するとよい。また、画像中心に位置する物体は撮像装置201から遠方に存在している。焦点距離などの関係により撮像装置201の近傍に存在する物体のほうがより正確に撮像できる。よって、撮像装置201の近傍に位置する物体に係る動きベクトル802をより重みをつけて評価すると、よりよい精度で評価できる。撮像装置201の近傍に存在する物体は撮像画像の端に位置するため、位置ベクトル801が大きい動きベクトル802ほど重みをつけて評価するとよい。   An object in the captured image may move due to the movement of the capsule endoscope 101. When the object moves due to shaking, the amount of movement of the object is small, and the magnitude of the motion vector 802 becomes small. Therefore, in order to eliminate the influence of such blurring, it is preferable to weight and evaluate the motion vector 802 having a larger movement amount. In addition, the object located at the center of the image exists far from the imaging device 201. An object existing near the imaging apparatus 201 can be imaged more accurately due to a relationship such as a focal length. Therefore, if the motion vector 802 related to the object located in the vicinity of the imaging device 201 is evaluated with a higher weight, it can be evaluated with better accuracy. Since an object existing in the vicinity of the imaging apparatus 201 is located at the end of the captured image, it is preferable to evaluate the motion vector 802 having a larger position vector 801 with a higher weight.

図9は、上記のような重み付けをして動きベクトル802を評価する撮像方向検知装置224Bの構成図である。撮像方向検知装置224Bは、位置ベクトル生成回路1001と、ベクトル内積演算回路1002と、加算器1201と、符号判定回路1202と、によって構成されている。なお、図7・図8において示したのと同じ構成要素には同一の符号を付しており、これらの詳細な説明は省略する。   FIG. 9 is a configuration diagram of the imaging direction detection device 224B that evaluates the motion vector 802 by weighting as described above. The imaging direction detection device 224B includes a position vector generation circuit 1001, a vector inner product calculation circuit 1002, an adder 1201, and a sign determination circuit 1202. The same components as those shown in FIGS. 7 and 8 are given the same reference numerals, and detailed descriptions thereof are omitted.

加算器1201は、ベクトル内積演算回路1002と、自身の出力と、を入力としている。m・p=|m||p|cosθであるから、撮像方向検知装置224Aと同様に、動きベクトル802と位置ベクトル801とのなす角θの重み付けにより評価している。さらに、動きベクトル802と位置ベクトル801のベクトルの大きさ(|m|、|p|)を重み付けに加味して評価している。   The adder 1201 has the vector dot product operation circuit 1002 and its own output as inputs. Since m · p = | m || p | cos θ, evaluation is performed by weighting the angle θ formed by the motion vector 802 and the position vector 801 as in the case of the imaging direction detection device 224A. Further, evaluation is performed by adding the magnitudes (| m |, | p |) of the motion vector 802 and the position vector 801 to the weight.

このように、撮像方向検知装置224の代替として、224A、或いは224Bを用いることもできる。
(実施の形態2)
図10は、本実施の形態に係る撮像方向判別装置250を備える診断装置260Bのブロック図である。実施の形態1において説明した構成要素と同一の構成要素には同一の参照符号を付している。従って、これらの構成要素の詳細な説明は省略する。
In this manner, 224A or 224B can be used as an alternative to the imaging direction detection device 224.
(Embodiment 2)
FIG. 10 is a block diagram of a diagnostic apparatus 260B including the imaging direction determination apparatus 250 according to the present embodiment. The same reference numerals are given to the same components as those described in the first embodiment. Therefore, detailed description of these components is omitted.

診断装置260Bは、カプセル内視鏡101と、画像処理装置220Aと、によって構成されている。画像処理装置220Aは、受信アンテナ221と、無線受信装置222と、動きベクトル計算装置223と撮像方向検知装置224とによって構成された撮像方向判別装置250と、表示装置225Aと、鏡像処理装置226と、MUX227と、によって構成されている。   The diagnostic device 260B includes the capsule endoscope 101 and the image processing device 220A. The image processing apparatus 220A includes a reception antenna 221, a wireless reception apparatus 222, a motion vector calculation apparatus 223, and an imaging direction detection apparatus 224, an imaging direction determination apparatus 250, a display apparatus 225A, a mirror image processing apparatus 226, and the like. , MUX227.

表示装置225Aは、画像データ入力端子236を有し、ここから入力された画像データを画面に表示する。鏡像処理装置226は、入力端子243から入力された画像に対し鏡像処理を行う。なお、鏡像処理とは、動画像中の各フレーム(静止画像)に対し、X軸もしくはY軸に対し対称な画像を生成する処理のことをいう。   The display device 225A has an image data input terminal 236, and displays the image data input from this on the screen. The mirror image processing device 226 performs mirror image processing on the image input from the input terminal 243. Note that mirror image processing refers to processing for generating an image symmetric with respect to the X axis or the Y axis for each frame (still image) in a moving image.

MUX227は、入力端子239・240と、制御端子241と、出力端子242と、を有している。制御端子241にHレベルが入力されると、入力端子239の信号が出力端子242から出力され、制御端子241にLレベルが入力されると、入力2端子240の信号が出力端子242から出力される。   The MUX 227 has input terminals 239 and 240, a control terminal 241, and an output terminal 242. When the H level is input to the control terminal 241, the signal of the input terminal 239 is output from the output terminal 242. When the L level is input to the control terminal 241, the signal of the input 2 terminal 240 is output from the output terminal 242. The

撮像方向検知装置224がHレベルを出力しているとき、即ちカプセル内視鏡101の進行方向と撮像方向が同一であるとき、MUX227は入力1端子239から入力されている信号、即ち撮像装置201が撮像した画像を出力する。表示装置225Aは、撮像装置201が撮像した画像をそのまま表示する。一方、撮像方向検知装置224がLレベルを出力しているとき、即ちカプセル内視鏡101の進行方向と撮像方向が反対であるとき、MUX227は入力2端子240から入力されている信号、即ち撮像装置201が撮像した画像に対し鏡像処理を行った画像を出力する。従って、表示装置225Aは、撮像装置201が撮像した画像に対し鏡像処理を施した画像を表示する。   When the imaging direction detection device 224 outputs an H level, that is, when the traveling direction of the capsule endoscope 101 is the same as the imaging direction, the MUX 227 receives a signal input from the input 1 terminal 239, that is, the imaging device 201. Outputs the captured image. The display device 225A displays the image captured by the imaging device 201 as it is. On the other hand, when the imaging direction detection device 224 outputs the L level, that is, when the traveling direction of the capsule endoscope 101 is opposite to the imaging direction, the MUX 227 receives a signal input from the input 2 terminal 240, that is, imaging. An image obtained by performing mirror image processing on the image captured by the apparatus 201 is output. Accordingly, the display device 225A displays an image obtained by performing a mirror image process on the image captured by the imaging device 201.

カプセル内視鏡101の撮像方向と進行方向が同一であるときと反対方向であるときでは、撮像された画像は鏡像関係になる。そこで、進行方向と撮像方向が反対のときに鏡像処理を行うと、進行方向と撮像方向が同一のときに撮像した場合と、画像内に存在する物体の互いの上下・左右の位置関係が同一になる。このため、画像観察者はカプセル内視鏡の撮像方向を意識することなく観察できる。
(実施の形態3)
図11は、実施の形態3に係るカプセル内視鏡101Aの外形図である。
When the imaging direction and the traveling direction of the capsule endoscope 101 are the same as the opposite direction, the captured image has a mirror image relationship. Therefore, if mirror image processing is performed when the traveling direction is opposite to the imaging direction, the vertical and horizontal positional relationships of the objects present in the image are the same as when the imaging is performed when the traveling direction and the imaging direction are the same. become. For this reason, the image observer can observe without being aware of the imaging direction of the capsule endoscope.
(Embodiment 3)
FIG. 11 is an external view of a capsule endoscope 101A according to the third embodiment.

カプセル内視鏡101とは異なり、カプセル内視鏡101Aは2つの撮像装置1502・1505を搭載しており、それぞれカプセル内視鏡101Aの前方・後方に位置している。なお、撮像装置1502・1505の撮像方向は互いに反対方向である。   Unlike the capsule endoscope 101, the capsule endoscope 101A is equipped with two imaging devices 1502 and 1505, which are positioned in front of and behind the capsule endoscope 101A, respectively. Note that the imaging directions of the imaging devices 1502 and 1505 are opposite to each other.

図12は、カプセル内視鏡101Aのブロック図であり、図13は、実施の形態3に係る画像処理装置220Bのブロック図である。   FIG. 12 is a block diagram of the capsule endoscope 101A, and FIG. 13 is a block diagram of the image processing device 220B according to the third embodiment.

図12が示すように、カプセル内視鏡101Aは、外壁203と、第1の撮像装置1502と、撮像装置1502に対応するレンズ1501と、照明装置1503と、第2の撮像装置1505と、撮像装置1505に対応するレンズ1504と、照明装置1506と、バッファメモリ1507と、無線送信装置205と、電池206と、送信アンテナ207と、電源線208と、によって構成されている。撮像装置1502・1505の撮像速度は同じである。バッファメモリ1507は入力端子1512を通して画像データを保存するためのメモリであり、出力端子1513を通してデータを出力する時には、入力された順番にデータを取り出すFIFO構成となっている。他の構成要素は、図1に基づいて同じ構成要素について説明したのと同一の役割を有するため、これらの詳細な説明は省略する。   As shown in FIG. 12, the capsule endoscope 101A includes an outer wall 203, a first imaging device 1502, a lens 1501 corresponding to the imaging device 1502, an illumination device 1503, a second imaging device 1505, and imaging. A lens 1504 corresponding to the device 1505, an illumination device 1506, a buffer memory 1507, a wireless transmission device 205, a battery 206, a transmission antenna 207, and a power line 208 are configured. The imaging speeds of the imaging devices 1502 and 1505 are the same. The buffer memory 1507 is a memory for storing image data through the input terminal 1512. When outputting data through the output terminal 1513, the buffer memory 1507 has a FIFO configuration in which data is extracted in the input order. The other components have the same role as that described for the same components based on FIG. 1, and thus detailed description thereof is omitted.

図13が示すように、画像処理装置220Bは、受信アンテナ221と、無線受信装置222と、動きベクトル計算装置223と撮像方向検知装置224とによって構成された撮像方向判別装置250と、表示装置225Aと、鏡像処理装置226と、データ分配装置1601と、スイッチ1602と、画像合成装置1603と、によって構成されている。   As illustrated in FIG. 13, the image processing device 220B includes a reception antenna 221, a wireless reception device 222, an imaging direction determination device 250 configured by a motion vector calculation device 223, and an imaging direction detection device 224, and a display device 225A. A mirror image processing device 226, a data distribution device 1601, a switch 1602, and an image composition device 1603.

データ分配装置1601は、動画像データを入力とし、入力端子1610と、出力1端子1611と、出力2端子1612と、を有する。入力端子1610から入力された動画像のフレームを認識し、フレームを出力1端子1611と出力2端子1612とに交互に出力する。つまり、あるフレームデータが出力1端子1611から出力されると、次のフレームデータは出力2端子1612から出力され、さらに次のフレームデータは出力1端子1611から出力される。   The data distribution device 1601 receives moving image data and has an input terminal 1610, an output 1 terminal 1611, and an output 2 terminal 1612. A frame of a moving image input from the input terminal 1610 is recognized, and the frame is alternately output to the output 1 terminal 1611 and the output 2 terminal 1612. That is, when certain frame data is output from the output 1 terminal 1611, the next frame data is output from the output 2 terminal 1612, and further next frame data is output from the output 1 terminal 1611.

スイッチ1602は、入力1端子1613と、入力2端子1614と、出力1端子1615と、出力2端子1616と、制御端子1617と、を有する。制御端子1617にHレベルが入力されると、入力1端子1613のデータが出力1端子1615に、入力2端子1614のデータが出力2端子1616に出力される。制御端子1617にLレベルが入力されると、入力1端子1613のデータが出力2端子1616に、入力2端子1614のデータが出力1端子1615に出力される。   The switch 1602 includes an input 1 terminal 1613, an input 2 terminal 1614, an output 1 terminal 1615, an output 2 terminal 1616, and a control terminal 1617. When the H level is input to the control terminal 1617, the data of the input 1 terminal 1613 is output to the output 1 terminal 1615, and the data of the input 2 terminal 1614 is output to the output 2 terminal 1616. When the L level is input to the control terminal 1617, the data of the input 1 terminal 1613 is output to the output 2 terminal 1616 and the data of the input 2 terminal 1614 is output to the output 1 terminal 1615.

画像合成装置1603は、入力1端子1618と、入力2端子1619と、出力端子1620と、を有する。動画像は入力1端子1618と入力2端子1619から入力される。画像合成装置1603は、入力された2つの画像を並べて表示する画像を作成し、出力する。   The image composition device 1603 has an input 1 terminal 1618, an input 2 terminal 1619, and an output terminal 1620. A moving image is input from an input 1 terminal 1618 and an input 2 terminal 1619. The image composition device 1603 creates and outputs an image that displays two input images side by side.

なお、前述の構成要素には同一の符号を付しており、これらの詳細な説明は省略する。   In addition, the same code | symbol is attached | subjected to the above-mentioned component, and detailed description thereof is omitted.

図12が示すように、カプセル内視鏡101Aの撮像装置1502・1505はそれぞれ生体内の撮像を行う。撮像した画像は、出力端子1510・1511を通してバッファメモリ1507に保存される。撮像装置1502・1505の撮像レートは同一であるので、バッファメモリ1507には、撮像装置1502・1505のフレームが交互に入力される。バッファメモリ1507は入力されたフレームを順番に出力端子1513から出力する。このとき出力される動画像は、撮像装置1502・1505が撮像したフレームが交互に組み合わさった動画像となる。つまり、撮像装置1502のn番目のフレームの次フレームは、撮像装置1505のn番目のフレーム、さらに撮像装置1502のn+1番目のフレームの次のフレームは、撮像装置1505のn+1番目のフレーム、という順序で構成されている動画像となる。この動画像が、入力端子212を通して無線送信装置205に入力され、送信アンテナ207からカプセル内視鏡101Aの外部に無線で送信される。   As shown in FIG. 12, the imaging devices 1502 and 1505 of the capsule endoscope 101A each perform in-vivo imaging. The captured image is stored in the buffer memory 1507 through the output terminals 1510 and 1511. Since the imaging rates of the imaging devices 1502 and 1505 are the same, the frames of the imaging devices 1502 and 1505 are alternately input to the buffer memory 1507. The buffer memory 1507 outputs the input frames in order from the output terminal 1513. The moving image output at this time is a moving image in which frames captured by the imaging devices 1502 and 1505 are alternately combined. That is, the next frame of the nth frame of the imaging device 1502 is the nth frame of the imaging device 1505, and the next frame of the n + 1th frame of the imaging device 1502 is the n + 1th frame of the imaging device 1505. This is a moving image composed of This moving image is input to the wireless transmission device 205 through the input terminal 212, and transmitted wirelessly from the transmission antenna 207 to the outside of the capsule endoscope 101A.

画像処理装置220Bは、受信アンテナ221によりカプセル内視鏡101Aから送信された電波を受信する。受信した電波は入力端子230から無線受信装置222に入力され復調される。復調された信号は入力端子1610からデータ分配装置1601に入力される。データ分配装置1601に入力されるのは、撮像装置1502・1505が撮像したフレームが交互に組み合わさった動画像である。データ分配装置1601は、入力された動画像のフレームを認識し、フレームを2つの出力端子に交互に出力する。よって、出力1端子1611からは撮像装置1502、もしくは1505のどちらか一方で撮像された動画像が出力され、出力2端子1612からは他方の撮像装置で撮像された動画像が出力される。即ち、出力1端子1611が撮像装置1502によって撮像された動画像を出力した場合、出力2端子1612は撮像装置1505によって撮像された動画像を出力する。逆に、出力1端子1611が撮像装置1505によって撮像された動画像を出力した場合、出力2端子1612は撮像装置1502によって撮像された動画像を出力する。   The image processing device 220B receives the radio wave transmitted from the capsule endoscope 101A by the receiving antenna 221. The received radio wave is input from the input terminal 230 to the wireless receiver 222 and demodulated. The demodulated signal is input from the input terminal 1610 to the data distribution device 1601. The input to the data distribution device 1601 is a moving image in which frames captured by the imaging devices 1502 and 1505 are alternately combined. The data distribution device 1601 recognizes the frame of the input moving image and outputs the frame alternately to the two output terminals. Therefore, a moving image captured by either the imaging device 1502 or 1505 is output from the output 1 terminal 1611, and a moving image captured by the other imaging device is output from the output 2 terminal 1612. That is, when the output 1 terminal 1611 outputs a moving image captured by the imaging device 1502, the output 2 terminal 1612 outputs a moving image captured by the imaging device 1505. Conversely, when the output 1 terminal 1611 outputs a moving image captured by the imaging device 1505, the output 2 terminal 1612 outputs a moving image captured by the imaging device 1502.

以下、撮像装置1502によって撮像された動画像が出力1端子1611から出力される場合を仮定的に説明していく。   Hereinafter, a case where a moving image captured by the imaging device 1502 is output from the output 1 terminal 1611 will be described.

撮像装置1502によって撮像された動画像はスイッチ1602の入力1端子1613より入力される。撮像装置1505によって撮像された動画像はスイッチ1602の入力2端子1614より入力され、同時に動きベクトル計算装置223の入力端子232に入力される。撮像方向検知装置224は、撮像装置1505の撮像方向がカプセル内視鏡101Aの進行方向と同一であるか反対であるかを検知し、結果を出力端子235から出力する。撮像装置1505の撮像方向がカプセル内視鏡101Aの進行方向と同一であるとき、出力端子235はHレベルを出力する。撮像装置1505の撮像方向がカプセル内視鏡101Aの進行方向と反対であるとき、出力端子235はLレベルを出力する。   A moving image captured by the imaging device 1502 is input from an input 1 terminal 1613 of the switch 1602. A moving image captured by the imaging device 1505 is input from the input 2 terminal 1614 of the switch 1602 and simultaneously input to the input terminal 232 of the motion vector calculation device 223. The imaging direction detection device 224 detects whether the imaging direction of the imaging device 1505 is the same as or opposite to the traveling direction of the capsule endoscope 101A, and outputs the result from the output terminal 235. When the imaging direction of the imaging device 1505 is the same as the traveling direction of the capsule endoscope 101A, the output terminal 235 outputs an H level. When the imaging direction of the imaging device 1505 is opposite to the traveling direction of the capsule endoscope 101A, the output terminal 235 outputs L level.

撮像方向検知装置224の出力端子235は、スイッチ1602の制御端子1617と接続されている。よって、出力端子235がHレベルを出力したとき、即ち撮像装置1505の撮像方向が進行方向と同一であるとき、出力1端子1615には撮像装置1502によって撮像された動画像が出力され、出力2端子1616には撮像装置1505によって撮像された動画像が出力される。また、出力端子235がLレベルを出力したとき、即ち撮像装置1505の撮像方向が進行方向と反対であるとき、出力1端子1615には撮像装置1505によって撮像された動画像が出力され、出力2端子1616には撮像装置1502によって撮像された動画像が出力される。即ち、出力1端子1615には、撮像方向がカプセル内視鏡101Aの進行方向と反対である動画像が出力され、出力2端子1616には撮像方向がカプセル内視鏡101Aの進行方向と同一である動画像が出力される。   The output terminal 235 of the imaging direction detection device 224 is connected to the control terminal 1617 of the switch 1602. Therefore, when the output terminal 235 outputs H level, that is, when the imaging direction of the imaging device 1505 is the same as the traveling direction, the moving image captured by the imaging device 1502 is output to the output 1 terminal 1615 and output 2 A moving image captured by the imaging device 1505 is output to the terminal 1616. When the output terminal 235 outputs an L level, that is, when the imaging direction of the imaging device 1505 is opposite to the traveling direction, a moving image captured by the imaging device 1505 is output to the output 1 terminal 1615 and output 2 A moving image captured by the imaging device 1502 is output to the terminal 1616. That is, a moving image whose imaging direction is opposite to the traveling direction of the capsule endoscope 101A is output to the output 1 terminal 1615, and the imaging direction is the same as the traveling direction of the capsule endoscope 101A to the output 2 terminal 1616. A certain moving image is output.

出力1端子1615は、鏡像処理装置226の入力端子243と接続されている。よって、鏡像処理装置226にはカプセル内視鏡101Aの進行方向と反対方向を撮像した動画像が入力される。   The output 1 terminal 1615 is connected to the input terminal 243 of the mirror image processing apparatus 226. Therefore, the mirror image processing device 226 receives a moving image obtained by imaging the direction opposite to the traveling direction of the capsule endoscope 101A.

画像合成装置1603の入力1端子1618には、鏡像処理装置226の出力端子244が接続されており、入力2端子1619には、スイッチ1602の出力2端子1616が接続されている。よって、カプセル内視鏡101Aの進行方向と反対方向を撮像した動画像に鏡像処理をした動画像と、カプセル内視鏡101Aの進行方向を撮像した動画像が入力される。   The output terminal 244 of the mirror image processing device 226 is connected to the input 1 terminal 1618 of the image composition device 1603, and the output 2 terminal 1616 of the switch 1602 is connected to the input 2 terminal 1619. Therefore, a moving image obtained by performing mirror image processing on a moving image obtained by capturing the direction opposite to the moving direction of the capsule endoscope 101A and a moving image obtained by capturing the moving direction of the capsule endoscope 101A are input.

これら2映像を表示した動画像が画像合成装置1603から出力される。つまり、表示装置225Aは、カプセル内視鏡101Aの進行方向と反対方向を撮像した動画像に鏡像処理をした動画像と、カプセル内視鏡101Aの進行方向を撮像した動画像を併せて表示する。   A moving image displaying these two videos is output from the image composition device 1603. That is, the display device 225A displays a moving image obtained by performing mirror image processing on a moving image obtained by capturing the direction opposite to the traveling direction of the capsule endoscope 101A and a moving image obtained by capturing the moving direction of the capsule endoscope 101A. .

以上より、カプセル内視鏡101Aの進行方向と反対方向を撮像した動画像を常に鏡像処理した後に表示するため、画像観察者は、カプセル内視鏡101Aの撮像方向を意識することなく観察できる。   As described above, since a moving image obtained by imaging the direction opposite to the traveling direction of the capsule endoscope 101A is always displayed after being subjected to mirror image processing, the image observer can observe without being aware of the imaging direction of the capsule endoscope 101A.

なお、上記実施形態の撮像方向判別装置の各部や各処理ステップは、CPUなどの演算手段が、ROM(Read Only Memory)やRAMなどの記憶手段に記憶されたプログラムを実行し、キーボードなどの入力手段、ディスプレイなどの出力手段、あるいは、インターフェース回路などの通信手段を制御することにより実現することができる。したがって、これらの手段を有するコンピュータが、上記プログラムを記録した記録媒体を読み取り、当該プログラムを実行するだけで、本実施形態の撮像方向判別装置の各種機能および各種処理を実現することができる。また、上記プログラムをリムーバブルな記録媒体に記録することにより、任意のコンピュータ上で上記の各種機能および各種処理を実現することができる。   Note that in each part and each processing step of the imaging direction determination device of the above embodiment, a calculation unit such as a CPU executes a program stored in a storage unit such as a ROM (Read Only Memory) or a RAM, and an input such as a keyboard is performed. It can be realized by controlling a means, an output means such as a display, or a communication means such as an interface circuit. Therefore, various functions and various processes of the imaging direction determination apparatus of the present embodiment can be realized simply by a computer having these means reading the recording medium storing the program and executing the program. In addition, by recording the program on a removable recording medium, the various functions and various processes described above can be realized on an arbitrary computer.

この記録媒体としては、マイクロコンピュータで処理を行うために図示しないメモリ、例えばROMのようなものがプログラムメディアであっても良いし、また、図示していないが外部記憶装置としてプログラム読取り装置が設けられ、そこに記録媒体を挿入することにより読取り可能なプログラムメディアであっても良い。   As this recording medium, a program medium such as a memory (not shown) such as a ROM may be used for processing by the microcomputer, or a program reader is provided as an external storage device (not shown). It may be a program medium that can be read by inserting a recording medium therein.

また、何れの場合でも、格納されているプログラムは、マイクロプロセッサがアクセスして実行される構成であることが好ましい。さらに、プログラムを読み出し、読み出されたプログラムは、マイクロコンピュータのプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であることが好ましい。なお、このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program is preferably configured to be accessed and executed by the microprocessor. Furthermore, it is preferable that the program is read out, and the read program is downloaded to a program storage area of the microcomputer and the program is executed. It is assumed that this download program is stored in advance in the main unit.

また、上記プログラムメディアとしては、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD/MO/MD/DVD等のディスクのディスク系、ICカード(メモリカードを含む)等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する記録媒体等がある。   The program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, or a disk such as a CD / MO / MD / DVD. Fixed disk, IC card (including memory card), etc., or semiconductor ROM such as mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. In particular, there are recording media that carry programs.

また、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する記録媒体であることが好ましい。   In addition, if the system configuration is capable of connecting to a communication network including the Internet, the recording medium is preferably a recording medium that fluidly carries the program so as to download the program from the communication network.

さらに、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであることが好ましい。   Further, when the program is downloaded from the communication network as described above, it is preferable that the download program is stored in the main device in advance or installed from another recording medium.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention.

本発明は、被検体内部の撮像対象の画像を取得し、表示するのに好適な撮像方向判別装置、撮像方向判別方法、撮像方向判別プログラム、及び撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体に適用することができる。   The present invention relates to an image capturing direction discriminating apparatus, an image capturing direction discriminating method, an image capturing direction discriminating program, and a computer readable record recording an image capturing direction discriminating program suitable for acquiring and displaying an image of an imaging target inside a subject. It can be applied to media.

本実施の形態に係る撮像方向判別装置を備える診断装置のブロック図である。It is a block diagram of a diagnostic device provided with an imaging direction discriminating device concerning this embodiment. 動きベクトルについて説明する図である。It is a figure explaining a motion vector. カプセル内視鏡の撮像方向と進行方向が同一の状態における撮像画像の変化を説明した図であり、(a)は、物体が撮像範囲の中心付近に位置している状態を示す図であり、(b)は、物体とカプセル内視鏡が互いに接近していく状態を示す図であり、(c)は、物体が撮像画像の端部に移動していく状態を示す図である。It is a figure explaining the change of the picked-up image in the state where the imaging direction and the traveling direction of the capsule endoscope are the same, (a) is a diagram showing a state where the object is located near the center of the imaging range, (B) is a figure which shows the state which an object and a capsule endoscope approach mutually, (c) is a figure which shows the state which an object moves to the edge part of a captured image. カプセル内視鏡の撮像方向と進行方向が反対の状態における撮像画像の変化を説明した図であり、(a)は、物体が撮像範囲の境界付近に位置している状態を示す図であり、(b)は、物体とカプセル内視鏡が互いに離れていく状態を示す図であり、(c)は、物体が撮像画像の中心に向けて移動していく状態を示す図である。It is a figure explaining the change of the picked-up image in the state where the imaging direction of the capsule endoscope and the traveling direction are opposite, (a) is a diagram showing a state where the object is located near the boundary of the imaging range, (B) is a figure which shows the state which an object and a capsule endoscope leave | separate mutually, (c) is a figure which shows the state which an object moves toward the center of a captured image. 動きベクトルと位置ベクトルとのなす角が鋭角の場合の図である。It is a figure in case the angle | corner which a motion vector and a position vector make is an acute angle. 動きベクトルと位置ベクトルとのなす角が鈍角の場合の図である。It is a figure in case the angle which a motion vector and a position vector make is an obtuse angle. 撮像方向検知装置の構成図である。It is a block diagram of an imaging direction detection apparatus. 撮像方向検知装置の他の構成図である。It is another block diagram of an imaging direction detection apparatus. 撮像方向検知装置の他の構成図である。It is another block diagram of an imaging direction detection apparatus. 本実施の形態に係る撮像方向判別装置を備える他の診断装置のブロック図である。It is a block diagram of the other diagnostic apparatus provided with the imaging direction discrimination | determination apparatus which concerns on this Embodiment. 本実施の形態に係るカプセル内視鏡の外形図である。It is an external view of the capsule endoscope which concerns on this Embodiment. 本実施の形態に係るカプセル内視鏡のブロック図である。It is a block diagram of the capsule endoscope which concerns on this Embodiment. 本実施の形態に係る撮像方向判別装置を備える画像処理装置のブロック図である。It is a block diagram of an image processing device provided with an imaging direction discriminating device concerning this embodiment. 一般的なカプセル内視鏡の外形図である。It is an external view of a general capsule endoscope. 一般的なカプセル内視鏡の断面図である。It is sectional drawing of a common capsule endoscope. カプセル内視鏡の進行方向と撮像装置の撮像方向との関係を示した図であり、(a)は、カプセル内視鏡の進行方向と撮像装置の撮像方向とが同一である状態を、(b)は、カプセル内視鏡の進行方向と撮像装置の撮像方向が反対である状態を示す図である。It is the figure which showed the relationship between the advancing direction of a capsule endoscope, and the imaging direction of an imaging device, (a) is the state where the advancing direction of a capsule endoscope and the imaging direction of an imaging device are the same ( b) is a diagram showing a state in which the traveling direction of the capsule endoscope and the imaging direction of the imaging apparatus are opposite to each other.

符号の説明Explanation of symbols

101、101A カプセル内視鏡
201、1502、1505 撮像装置
202、1503、1506 照明装置
203 外壁
204、1501、1504 レンズ
205 無線送信装置
206 電池
207 送信アンテナ
208 電源線
211、213、231、233、235、242、244、1510、1511、1513、1620 出力端子
212、230、232、234、243、1512、1610 入力端子
220、220A、220B 画像処理装置
221 受信アンテナ
222 無線受信装置
223 動きベクトル計算装置
224 撮像方向検知装置
224A、224B 撮像方向検知装置
225、225A 表示装置
226 鏡像処理装置
227 MUX
236 画像データ入力端子
237 撮像方向データ入力端子
239、1613、1618 入力1端子
240、1614、1619 入力2端子
241、1617 制御端子
250 撮像方向判別装置
260A、260B 診断装置
601 物体
602 撮像範囲
801 位置ベクトル
802 動きベクトル
803 円
1001 位置ベクトル生成回路
1002 ベクトル内積演算回路
1003、1106、1202 符号判定回路
1004、1006 カウンタ
1005 Notゲート
1007 比較器
1101、1102 ベクトルの大きさ演算回路
1103、1104 除算器
1105、1201 加算器
1507 バッファメモリ
1601 データ分配装置
1602 スイッチ
1603 画像合成装置
1611、1615 出力1端子
1612、1616 出力2端子
m 動きベクトル
p 位置ベクトル
t 撮像時刻
101, 101A Capsule endoscope 201, 1502, 1505 Imaging device 202, 1503, 1506 Illuminating device 203 Outer wall 204, 1501, 1504 Lens 205 Wireless transmission device 206 Battery 207 Transmitting antenna 208 Power line 211, 213, 231, 233, 235 242, 244, 1510, 1511, 1513, 1620 Output terminal 212, 230, 232, 234, 243, 1512, 1610 Input terminal 220, 220 A, 220 B Image processing device 221 Reception antenna 222 Wireless reception device 223 Motion vector calculation device 224 Imaging direction detection device 224A, 224B Imaging direction detection device 225, 225A Display device 226 Mirror image processing device 227 MUX
236 Image data input terminal 237 Imaging direction data input terminal 239, 1613, 1618 Input 1 terminal 240, 1614, 1619 Input 2 terminal 241, 1617 Control terminal 250 Imaging direction discrimination device 260A, 260B Diagnosis device 601 Object 602 Imaging range 801 Position vector 802 motion vector 803 circle 1001 position vector generation circuit 1002 vector dot product calculation circuit 1003, 1106, 1202 sign determination circuit 1004, 1006 counter 1005 Not gate 1007 comparator 1101, 1102 vector size calculation circuit 1103, 1104 divider 1105, 1201 Adder 1507 Buffer memory 1601 Data distribution device 1602 Switch 1603 Image composition device 1611, 1615 Output 1 terminal 1612, 16 16 output 2 terminals m motion vector p position vector t imaging time

Claims (14)

生体内を撮像するカプセル内視鏡の撮像方向を判別するための撮像方向判別装置であって、
前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する動きベクトル計算装置と、
該動きベクトル計算装置によって計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する撮像方向検知装置と、を備えることを特徴とする撮像方向判別装置。
An imaging direction discriminating device for discriminating an imaging direction of a capsule endoscope that images a living body,
A motion vector calculation device for calculating a motion vector of an image captured by the capsule endoscope, received in time series from the capsule endoscope;
An imaging direction detection device that detects whether the traveling direction of the capsule endoscope and the imaging direction of the image are the same or opposite based on the motion vector calculated by the motion vector calculation device. An imaging direction discrimination device characterized by the above.
前記動きベクトル計算装置は、受信した画像を一定のブロックに分割し、該ブロックに対しブロックマッチング法により動きベクトルを計算することを特徴とする請求項1に記載の撮像方向判別装置。   The imaging direction determination device according to claim 1, wherein the motion vector calculation device divides the received image into fixed blocks and calculates a motion vector for the block by a block matching method. 前記撮像方向検知装置は、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルを基に、画像端部に向かう動きベクトルの本数が画像中心に向かう動きベクトルの本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、画像中心に向かう動きベクトルの本数が画像端部に向かう動きベクトルの本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することを特徴とする請求項1に記載の撮像方向判別装置。   When the number of motion vectors toward the image edge is greater than the number of motion vectors toward the image center based on the motion vector of each block in the image calculated by the motion vector calculation device When the capsule endoscope detects that the traveling direction of the capsule endoscope is the same as the imaging direction of the image, and the number of motion vectors toward the image center is greater than the number of motion vectors toward the image edge, The imaging direction determination device according to claim 1, wherein the imaging direction determination device detects that the traveling direction of the endoscope is opposite to the imaging direction of the image. 前記撮像方向検知装置は、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルと画像中心から該動きベクトルの始点を結ぶ位置ベクトルとのなす角が、鋭角となる本数が鈍角となる本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、鈍角となる本数が鋭角となる本数よりも多い場合に、前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することを特徴とする請求項1に記載の撮像方向判別装置。   In the imaging direction detection device, the angle formed by the motion vector of each block in the image calculated by the motion vector calculation device and the position vector connecting the start point of the motion vector from the image center is an acute angle and the number of obtuse angles is When the number of the capsule endoscope is larger than the number of the capsule endoscope, it is detected that the traveling direction of the capsule endoscope and the imaging direction of the image are the same, and when the number of obtuse angles is larger than the number of the acute angle, the capsule endoscope The imaging direction determination apparatus according to claim 1, wherein the imaging direction determination unit detects that the traveling direction of the image is opposite to the imaging direction of the image. 前記撮像方向検知装置は、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルと画像中心から該動きベクトルの始点を結ぶ位置ベクトルとのなす角の余弦を演算し、余弦の和が、正であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、負であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することを特徴とする請求項1に記載の撮像方向判別装置。   The imaging direction detection device calculates a cosine of an angle formed by a motion vector of each block in the image calculated by the motion vector calculation device and a position vector connecting the start point of the motion vector from the image center, and calculates a sum of cosines. However, if it is positive, it is detected that the traveling direction of the capsule endoscope is the same as the image capturing direction, and if it is negative, the traveling direction of the capsule endoscope is opposite to the image capturing direction. The imaging direction determination device according to claim 1, wherein the imaging direction determination device is detected. 前記撮像方向検知装置は、前記動きベクトル計算装置により計算された画像中の各ブロックの動きベクトルと画像中心から該動きベクトルの始点を結ぶ位置ベクトルとの内積を演算し、内積の和が、正であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると検知し、負であれば前記カプセル内視鏡の進行方向と画像の撮像方向とが反対であると検知することを特徴とする請求項1に記載の撮像方向判別装置。   The imaging direction detection device calculates an inner product of a motion vector of each block in the image calculated by the motion vector calculation device and a position vector connecting the start point of the motion vector from the image center, and the sum of the inner products is a positive value. If it is, it is detected that the traveling direction of the capsule endoscope is the same as the image capturing direction, and if it is negative, it is detected that the traveling direction of the capsule endoscope is opposite to the image capturing direction. The imaging direction discriminating device according to claim 1. 前記カプセル内視鏡は、生体内部を撮像する少なくとも一つの撮像装置と、該撮像装置により撮像された画像を表わす画像データを前記撮像方向判別装置に送信する無線送信装置と、を有することを特徴とする請求項1に記載の撮像方向判別装置。   The capsule endoscope includes at least one imaging device that images the inside of a living body, and a wireless transmission device that transmits image data representing an image captured by the imaging device to the imaging direction determination device. The imaging direction discrimination device according to claim 1. 前記撮像装置は、前記カプセル内視鏡の長軸方向を撮像方向とすることを特徴する請求項7に記載の撮像方向判別装置。   The imaging direction determination device according to claim 7, wherein the imaging device sets the major axis direction of the capsule endoscope as an imaging direction. 前記撮像方向検知装置による検知結果を表示する表示装置をさらに備えることを特徴とする請求項1に記載の撮像方向判別装置。   The imaging direction determination device according to claim 1, further comprising a display device that displays a detection result of the imaging direction detection device. 前記表示装置は、前記カプセル内視鏡が撮像した画像をさらに表示することを特徴とする請求項9に記載の撮像方向判別装置。   The imaging direction determination device according to claim 9, wherein the display device further displays an image captured by the capsule endoscope. 前記表示装置は、前記撮像方向検知装置が、前記カプセル内視鏡の進行方向と画像の撮像方向とが同一であると判断した場合に、該カプセル内視鏡が撮像した画像をそのまま表示し、該カプセル内視鏡の進行方向と画像の撮像方向とが反対であると判断した場合に、該カプセル内視鏡が撮像した画像を鏡像処理して表示することを特徴とする請求項9に記載の撮像方向判別装置。   The display device displays the image captured by the capsule endoscope as it is when the imaging direction detection device determines that the traveling direction of the capsule endoscope and the imaging direction of the image are the same, The image captured by the capsule endoscope is displayed after being subjected to mirror image processing when it is determined that the traveling direction of the capsule endoscope and the image capturing direction are opposite to each other. Imaging direction discriminating apparatus. 生体内を撮像するカプセル内視鏡の撮像方向を判別するための撮像方向判別方法であって、
前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する工程と、
前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する工程と、を備えることを特徴とする撮像方向判別方法。
An imaging direction determination method for determining an imaging direction of a capsule endoscope that images a living body,
Calculating a motion vector of an image captured by the capsule endoscope, received in time series from the capsule endoscope;
A step of detecting whether the traveling direction of the capsule endoscope is the same as or opposite to the imaging direction of the image based on the calculated motion vector. Method.
生体内を撮像するカプセル内視鏡の撮像方向を判別させるための撮像方向判別プログラムであって、
コンピュータに、前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する手順と、
前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する手順と、を実行させるための撮像方向判別プログラム。
An imaging direction determination program for determining the imaging direction of a capsule endoscope that images a living body,
A procedure for calculating a motion vector of an image captured by the capsule endoscope, received in time series from the capsule endoscope, on a computer;
An imaging direction discriminating program for executing, based on the calculated motion vector, a procedure for detecting whether the traveling direction of the capsule endoscope is the same as or opposite to the imaging direction of the image.
生体内を撮像するカプセル内視鏡の撮像方向を判別させるための撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体であって、
コンピュータに、前記カプセル内視鏡から時系列に受信される、該カプセル内視鏡が撮像した画像の動きベクトルを計算する手順と、
前記計算された動きベクトルを基に、該カプセル内視鏡の進行方向と画像の撮像方向とが同じであるか、反対であるかを検知する手順と、を実行させるための撮像方向判別プログラムを記録したコンピュータ読み取り可能な記録媒体。
A computer-readable recording medium that records an imaging direction discrimination program for discriminating the imaging direction of a capsule endoscope that images a living body,
A procedure for calculating a motion vector of an image captured by the capsule endoscope, received in time series from the capsule endoscope, on a computer;
An imaging direction determination program for executing, based on the calculated motion vector, a procedure for detecting whether the traveling direction of the capsule endoscope and the imaging direction of the image are the same or opposite. A recorded computer-readable recording medium.
JP2007263765A 2007-10-09 2007-10-09 Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded Pending JP2009089910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007263765A JP2009089910A (en) 2007-10-09 2007-10-09 Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007263765A JP2009089910A (en) 2007-10-09 2007-10-09 Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded

Publications (1)

Publication Number Publication Date
JP2009089910A true JP2009089910A (en) 2009-04-30

Family

ID=40662493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007263765A Pending JP2009089910A (en) 2007-10-09 2007-10-09 Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded

Country Status (1)

Country Link
JP (1) JP2009089910A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013015104A1 (en) 2011-07-22 2013-01-31 オリンパスメディカルシステムズ株式会社 Capsule-type endoscope system, image display method, and image display program
WO2016047190A1 (en) * 2014-09-22 2016-03-31 オリンパス株式会社 Image display device, image display method, and image display program
JP2017216496A (en) * 2016-05-30 2017-12-07 カシオ計算機株式会社 Image processing apparatus, image processing method, and program

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013015104A1 (en) 2011-07-22 2013-01-31 オリンパスメディカルシステムズ株式会社 Capsule-type endoscope system, image display method, and image display program
US20130217962A1 (en) * 2011-07-22 2013-08-22 Olympus Medical Systems Corp. Capsule endoscope system, operating method of image display, and computer-readable recording medium
JP5335162B2 (en) * 2011-07-22 2013-11-06 オリンパスメディカルシステムズ株式会社 Capsule endoscope system, operation method of image display device, and image display program
CN103458763A (en) * 2011-07-22 2013-12-18 奥林巴斯医疗株式会社 Capsule-type endoscope system, image display method, and image display program
JP2014000421A (en) * 2011-07-22 2014-01-09 Olympus Medical Systems Corp Capsule type endoscope system, operation method for image display device and image display program
US9661995B2 (en) 2011-07-22 2017-05-30 Olympus Corporation Capsule endoscope system, operating method of image display, and computer-readable recording medium
WO2016047190A1 (en) * 2014-09-22 2016-03-31 オリンパス株式会社 Image display device, image display method, and image display program
JP5945648B1 (en) * 2014-09-22 2016-07-05 オリンパス株式会社 Image processing apparatus, image processing method, and image processing program
CN106455947A (en) * 2014-09-22 2017-02-22 奥林巴斯株式会社 Image display device, image display method, and image display program
US9877635B2 (en) 2014-09-22 2018-01-30 Olympus Corporation Image processing device, image processing method, and computer-readable recording medium
JP2017216496A (en) * 2016-05-30 2017-12-07 カシオ計算機株式会社 Image processing apparatus, image processing method, and program
US10609306B2 (en) 2016-05-30 2020-03-31 Casio Computer Co., Ltd. Image processing apparatus, image processing method and storage medium

Similar Documents

Publication Publication Date Title
EP1769729B1 (en) System and method for in-vivo feature detection
US7684599B2 (en) System and method to detect a transition in an image stream
US7577283B2 (en) System and method for detecting content in-vivo
US7567692B2 (en) System and method for detecting content in-vivo
US8830307B2 (en) Image display apparatus
US7634305B2 (en) Method and apparatus for size analysis in an in vivo imaging system
US20130002842A1 (en) Systems and Methods for Motion and Distance Measurement in Gastrointestinal Endoscopy
WO2003053241A2 (en) Device, system and method for image based size analysis
US9031387B2 (en) Image processing apparatus
CN111035351B (en) Method and apparatus for travel distance measurement of capsule camera in gastrointestinal tract
JP2010035756A (en) Diagnosis support apparatus and diagnosis support method
US8854444B2 (en) Information processing apparatus and capsule endoscope system
US20020107444A1 (en) Image based size analysis
US20140163357A1 (en) Position detection apparatus, capsule endoscope system, and computer-readable recording medium
US20130217962A1 (en) Capsule endoscope system, operating method of image display, and computer-readable recording medium
JP2009195271A (en) Capsule endoscope system
JPWO2014148184A1 (en) Endoscope system
US10932648B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
US20100034436A1 (en) Image processing apparatus, computer program product and image processing method
US20080292150A1 (en) Image Display Apparatus
JP5057651B2 (en) Lumen image processing apparatus, lumen image processing method, and program therefor
JP2009089910A (en) Photographing direction discriminating apparatus, photographing direction discriminating method, photographing direction discriminating program, and computer-readable recording medium on which photographing direction discriminating program is recorded
JP4868965B2 (en) Image display device
KR20180128216A (en) Intelligent capsule endoscope and method for shooting thereof
KR101640930B1 (en) Image processing apparatus for capsule endoscope