JP2016208104A - Image processing apparatus, image processing method and program for image processing - Google Patents

Image processing apparatus, image processing method and program for image processing Download PDF

Info

Publication number
JP2016208104A
JP2016208104A JP2015083836A JP2015083836A JP2016208104A JP 2016208104 A JP2016208104 A JP 2016208104A JP 2015083836 A JP2015083836 A JP 2015083836A JP 2015083836 A JP2015083836 A JP 2015083836A JP 2016208104 A JP2016208104 A JP 2016208104A
Authority
JP
Japan
Prior art keywords
image
imaging
sampling
light field
refocus
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
JP2015083836A
Other languages
Japanese (ja)
Inventor
智昭 新井
Tomoaki Arai
智昭 新井
真樹 赤松
Masaki Akamatsu
真樹 赤松
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2015083836A priority Critical patent/JP2016208104A/en
Publication of JP2016208104A publication Critical patent/JP2016208104A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily retrieve a light field (LF) image that is focused to a desired browsing position.SOLUTION: An image processing apparatus 100 comprises: an image acquisition part 152 for acquiring the LF image capable of changing a focus position that is a focused position in a depth direction, after imaging, and imaging information including a focus range that is a range of an imaging position of the LF image and a changeable focus position; a position selection part 153 for selecting one or more sampling positions from among a plurality of positions in an imaging space in which an imaging apparatus that captures the LF image can perform imaging; an image selection part 154 for selecting one or more images which can be focused and or which the focus position can be set to a sampling position, from the LF image based on the sampling position and the imaging information; an image generation part 155 for generating a refocus image for which the focus position is set to one or more sampling positions; and a display control part 156 for displaying the refocus image on a display part 130.SELECTED DRAWING: Figure 9

Description

本発明は、フォーカスが合った位置を撮像後に変更な画像データを処理するための画像処理装置、画像処理方法及び画像処理用プログラムに関するものである。   The present invention relates to an image processing apparatus, an image processing method, and an image processing program for processing changed image data after imaging a focused position.

近年、ライトフィールド(以下、「LF」と略記する)カメラと呼ばれる撮像装置が実用化されている。この撮像装置は、イメージセンサ上にマイクロレンズアレイが配置され、マイクロレンズによって撮像装置に入射した光を分割することにより、複数の方向から到来する光線の強度を示す光線情報及び入射方向を示す方向情報を含むLF画像データを生成する。   In recent years, an imaging device called a light field (hereinafter abbreviated as “LF”) camera has been put into practical use. In this imaging apparatus, a microlens array is arranged on an image sensor, and light incident on the imaging apparatus is divided by the microlens, whereby light information indicating the intensity of light coming from a plurality of directions and a direction indicating the incident direction LF image data including information is generated.

特許文献1には、光線情報及び方向情報に基づく演算処理をすることにより、フォーカスが合った奥行き方向の位置(以下、「フォーカス位置」という)が異なる複数のリフォーカス画像を順次表示することにより、ユーザが所望の画像を検索しやすくする画像処理装置が開示されている。   In Patent Document 1, by performing arithmetic processing based on light ray information and direction information, a plurality of refocus images having different in-depth positions (hereinafter referred to as “focus positions”) are sequentially displayed. An image processing apparatus that makes it easy for a user to search for a desired image is disclosed.

特開2014−220598号公報JP 2014-220598 A

しかしながら、ユーザが、従来の画像処理装置を用いて画像を検索する場合、順次表示される大量のリフォーカス画像を確認しなければならず、所望のリフォーカス画像を見つけるまでに長時間を要する。特に、観察箇所を様々な位置や方向から観察するために多数の画像が撮像された場合には、リフォーカス画像も更に増えるため、所望のリフォーカス画像を検索することが一層困難となる。   However, when a user searches for an image using a conventional image processing apparatus, it is necessary to check a large number of sequentially displayed refocus images, and it takes a long time to find a desired refocus image. In particular, when a large number of images are captured in order to observe the observation site from various positions and directions, the number of refocus images further increases, making it more difficult to search for a desired refocus image.

例えば、撮像装置が器官等を観察するためのカプセル内視鏡である場合には、カプセル内視鏡を被検者に投与してから排出される迄に、通常多数の撮像画像(数万枚の画像)が撮像される。このため、従来の画像処理装置を用いた検索の場合には、医師が、所望の患部にフォーカスが合った画像を検索するまでに長時間を要することになる。   For example, when the imaging device is a capsule endoscope for observing an organ or the like, a large number of captured images (tens of thousands of images) are usually taken from the administration of the capsule endoscope to the subject until it is discharged. Image). For this reason, in the case of a search using a conventional image processing apparatus, it takes a long time for a doctor to search for an image focused on a desired affected part.

そこで、本発明は上述した点に鑑みてなされたものであり、撮像後にフォーカス位置を変更可能な多数の撮像画像の中から、所望の閲覧箇所にフォーカスが合う撮像画像を検索しやすくすることを目的とする。   Accordingly, the present invention has been made in view of the above-described points, and it is easy to search for a captured image that is focused on a desired viewing location from among a large number of captured images whose focus position can be changed after imaging. Objective.

上記の課題を解決するために、本発明の画像処理装置は、フォーカスが合った奥行き方向の位置であるフォーカス位置を撮像後に変更可能な複数のライトフィールド画像と、前記複数のライトフィールド画像の撮像位置及び変更可能なフォーカス位置の範囲であるフォーカス範囲を含む撮像情報とを取得する画像取得手段と、前記複数のライトフィールド画像を撮像する撮像装置が撮像可能な撮像空間における複数の位置から一以上のサンプリング位置を選択する位置選択手段と、前記サンプリング位置と前記撮像情報とに基づいて、前記複数のライトフィールド画像の中から前記サンプリング位置にフォーカス位置を設定可能な一以上のフォーカス可能画像を選択する画像選択手段と、選択した前記一以上のフォーカス可能画像に対して、前記一以上のサンプリング位置に前記フォーカス位置が設定されたリフォーカス画像を生成する画像生成手段と、生成した前記リフォーカス画像を表示手段に表示させる表示制御手段と、を有することを特徴とする。   In order to solve the above-described problems, an image processing apparatus according to an embodiment of the present invention captures a plurality of light field images that can be changed after capturing a focus position that is a position in the depth direction in focus, and captures the plurality of light field images. Image acquisition means for acquiring imaging information including a focus range that is a position and a range of focus positions that can be changed, and one or more from a plurality of positions in an imaging space that can be imaged by the imaging device that captures the plurality of light field images And selecting one or more focusable images capable of setting a focus position at the sampling position from the plurality of light field images based on the sampling position and the imaging information. Image selection means for selecting the one or more focusable images selected, Image generating means for generating a refocusing image the focus position is set to the serial one or more sampling positions, and a display control means for displaying the generated the refocused image on the display means, characterized by having a.

本発明によれば、撮像後にフォーカス位置を変更可能な多数の撮像画像の中から、所望の閲覧箇所にフォーカスが合う撮像画像を検索しやすくすることができるという効果を奏する。   Advantageous Effects of Invention According to the present invention, it is possible to easily search for a captured image that is focused on a desired viewing location from among a large number of captured images whose focus position can be changed after imaging.

LFカメラとしての撮像装置10の構成の模式図である。It is a schematic diagram of a structure of the imaging device 10 as LF camera. マイクロレンズアレイ12とイメージセンサ13の各画素との位置関係を示す模式図である。3 is a schematic diagram showing a positional relationship between a microlens array 12 and each pixel of an image sensor 13. FIG. マイクロレンズアレイ12のマイクロレンズへの入射光線の進行方向と、イメージセンサ13の記録領域との関係を説明するための模式図である。FIG. 6 is a schematic diagram for explaining a relationship between a traveling direction of incident light rays to a microlens of the microlens array 12 and a recording area of the image sensor 13. イメージセンサ13に入射する光線の情報について説明するための模式図である。It is a schematic diagram for demonstrating the information of the light ray which injects into the image sensor. リフォーカス演算処理を説明するための模式図である。It is a schematic diagram for demonstrating a refocus calculation process. マイクロレンズへの入射角の違いと、イメージセンサ13の記録領域との関係を説明する模式図である。FIG. 6 is a schematic diagram illustrating a relationship between a difference in incident angle to a microlens and a recording area of the image sensor 13. 被写界深度の調整処理を説明するための模式図である。It is a schematic diagram for demonstrating the adjustment process of a depth of field. 第1の実施形態に係る画像処理システムSの構成を示す図である。1 is a diagram illustrating a configuration of an image processing system S according to a first embodiment. 画像処理装置100の構成を示す図である。1 is a diagram illustrating a configuration of an image processing apparatus 100. FIG. サンプリング位置テーブルの一例を示す図である。It is a figure which shows an example of a sampling position table. 表示部130に表示される表示画面の一例を示す図である。6 is a diagram showing an example of a display screen displayed on the display unit 130. FIG. レイアウト画像を表示するまでの手順を示すフローチャートである。It is a flowchart which shows the procedure until it displays a layout image. LF画像データを選択する処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process which selects LF image data. 選択処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a selection process. 第2の実施形態に係るサンプリング位置テーブルの一例を示す図である。It is a figure which shows an example of the sampling position table which concerns on 2nd Embodiment. 第2の実施形態に係るレイアウト画像の一例を示す図である。It is a figure which shows an example of the layout image which concerns on 2nd Embodiment. 第2の実施形態に係るLF画像データを選択する処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process which selects LF image data which concerns on 2nd Embodiment. 第2の実施形態に係る選択処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the selection process which concerns on 2nd Embodiment.

[LFカメラの概要]
本実施形態に係る画像処理装置の説明に先立ち、LFカメラの概要について説明する。
図1は、LFカメラとしての撮像装置10の構成の模式図である。撮像装置10は、撮像レンズ11と、マイクロレンズアレイ12と、イメージセンサ13とを有する。被写体からの光は、撮像光学系を構成する撮像レンズ11及びマイクロレンズアレイ12を通過した後に、イメージセンサ13に入射する。イメージセンサ13は、入射した光を電気信号に変換して、変換後の電気信号を出力する。撮像装置10は、イメージセンサ13が出力する電気信号に基づいて、フォーカスが合った位置であるフォーカス位置を変更可能なLF画像データを生成する。
[Outline of LF camera]
Prior to the description of the image processing apparatus according to the present embodiment, an outline of the LF camera will be described.
FIG. 1 is a schematic diagram of a configuration of an imaging device 10 as an LF camera. The imaging device 10 includes an imaging lens 11, a microlens array 12, and an image sensor 13. The light from the subject enters the image sensor 13 after passing through the imaging lens 11 and the microlens array 12 constituting the imaging optical system. The image sensor 13 converts the incident light into an electric signal and outputs the converted electric signal. The imaging device 10 generates LF image data that can change the focus position, which is the focused position, based on the electrical signal output from the image sensor 13.

撮像レンズ11は、被写体からの光をマイクロレンズアレイ12に投射する。撮像レンズ11は、撮像装置10の本体部に装着して使用される、交換可能なレンズである。撮像装置10のユーザは、撮像レンズ11のズーム操作により撮像倍率を変更することができる。   The imaging lens 11 projects light from the subject onto the microlens array 12. The imaging lens 11 is a replaceable lens that is used by being attached to the main body of the imaging device 10. The user of the imaging device 10 can change the imaging magnification by a zoom operation of the imaging lens 11.

マイクロレンズアレイ12は、格子状に配列された複数の微小レンズ(マイクロレンズ)を有しており、撮像レンズ11とイメージセンサ13の間に位置する。マイクロレンズアレイ12が有する各マイクロレンズは、撮像レンズ11からの入射光を分割し、分割後の複数の光をイメージセンサ13の複数の画素に入射する。   The microlens array 12 has a plurality of minute lenses (microlenses) arranged in a lattice pattern, and is located between the imaging lens 11 and the image sensor 13. Each microlens included in the microlens array 12 divides the incident light from the imaging lens 11 and makes the plurality of divided light incident on the plurality of pixels of the image sensor 13.

イメージセンサ13は、複数の画素を有する撮像素子であり、各画素において光の強度を検出する。被写体からの光を受光するイメージセンサ13の各画素には、各画素に対応するマイクロレンズによって分割された、夫々異なる方向の光が入射する。   The image sensor 13 is an image sensor having a plurality of pixels, and detects the intensity of light at each pixel. Light in different directions divided by the microlens corresponding to each pixel is incident on each pixel of the image sensor 13 that receives light from the subject.

図2は、マイクロレンズアレイ12とイメージセンサ13の各画素との位置関係を示す模式図である。マイクロレンズアレイ12の各マイクロレンズは、イメージセンサ13における複数の画素に対応するように配置される。イメージセンサ13の各画素には、各画素に対応するマイクロレンズが分割した光が入射し、イメージセンサ13は、画素ごとに異なる方向からの光の強度を検出する。撮像装置10は、イメージセンサ13の各画素において検出された光の強度を示す光線情報を生成する。   FIG. 2 is a schematic diagram showing the positional relationship between the microlens array 12 and each pixel of the image sensor 13. Each microlens of the microlens array 12 is arranged so as to correspond to a plurality of pixels in the image sensor 13. Light divided by the microlens corresponding to each pixel is incident on each pixel of the image sensor 13, and the image sensor 13 detects the intensity of light from a different direction for each pixel. The imaging device 10 generates light ray information indicating the intensity of light detected at each pixel of the image sensor 13.

マイクロレンズを介してイメージセンサ13の各画素に入射した光線の入射方向は、各マイクロレンズに対応する複数の画素の配置によって決まる。したがって、入射方向は、各マイクロレンズとイメージセンサ13の各画素との位置関係に応じて特定され、撮像装置10は、特定した入射方向を示す方向情報として、例えば、画素を特定するための座標情報を生成する。   The incident direction of the light beam incident on each pixel of the image sensor 13 through the microlens is determined by the arrangement of a plurality of pixels corresponding to each microlens. Therefore, the incident direction is specified according to the positional relationship between each microlens and each pixel of the image sensor 13, and the imaging apparatus 10 uses, for example, coordinates for specifying the pixel as direction information indicating the specified incident direction. Generate information.

被写体からの光は、被写体と撮像レンズ11との間の距離に応じて定まる方向でマイクロレンズアレイ12に入射する。そして、被写体からの光は、被写体と撮像レンズ11との間の距離に応じて定まる複数のマイクロレンズを通過して、イメージセンサ13に入射する。その結果、マイクロレンズアレイ12のレンズ頂点面からの距離が異なる面にフォーカスが合った像は、各マイクロレンズの光軸からの偏心量に対応した位置にあるイメージセンサ13の複数の画素の各出力を合成することで得られる。したがって、撮像装置10は、光線情報と方向情報に基づいて光線の並べ替えと計算処理(以下、再構築という)を行うことにより、任意のフォーカス位置に対応する画像データを生成できる。ここで、フォーカス位置は、フォーカスが合った位置であり、ユーザは、撮影後に、LF画像データに基づいて、所望のフォーカス位置に対応するリフォーカス画像データを得ることができる。   Light from the subject enters the microlens array 12 in a direction determined according to the distance between the subject and the imaging lens 11. The light from the subject passes through a plurality of microlenses determined according to the distance between the subject and the imaging lens 11 and enters the image sensor 13. As a result, the image focused on the surfaces having different distances from the lens apex surface of the microlens array 12 is each of the plurality of pixels of the image sensor 13 at the position corresponding to the amount of eccentricity from the optical axis of each microlens. It is obtained by combining the output. Therefore, the imaging apparatus 10 can generate image data corresponding to an arbitrary focus position by performing light beam rearrangement and calculation processing (hereinafter referred to as reconstruction) based on the light beam information and the direction information. Here, the focus position is an in-focus position, and the user can obtain refocus image data corresponding to a desired focus position based on the LF image data after shooting.

図3は、マイクロレンズアレイ12のマイクロレンズへの入射光線の進行方向と、イメージセンサ13の記録領域との関係を説明するための模式図である。
撮像レンズ11による被写体の像は、マイクロレンズアレイ12上に結像し、マイクロレンズアレイ12への入射光線はマイクロレンズアレイ12を介してイメージセンサ13で受光される。このとき、図3に示すように、マイクロレンズアレイ12への入射光線は、フォーカス位置ごとに定まる進行方向に応じてイメージセンサ13上の異なる位置で受光され、被写体の像がマイクロレンズごとに結像する。
FIG. 3 is a schematic diagram for explaining the relationship between the traveling direction of incident light to the microlenses of the microlens array 12 and the recording area of the image sensor 13.
An image of the subject by the imaging lens 11 is formed on the microlens array 12, and incident light on the microlens array 12 is received by the image sensor 13 via the microlens array 12. At this time, as shown in FIG. 3, the incident light beam to the microlens array 12 is received at different positions on the image sensor 13 according to the traveling direction determined for each focus position, and the image of the subject is formed for each microlens. Image.

図4は、イメージセンサ13に入射する光線の情報について説明するための模式図である。
イメージセンサ13で受光される光線について図4を用いて説明する。ここで、撮像レンズ11のレンズ面上における直交座標系を(u,v)とし、イメージセンサ13の撮像面上における直交座標系(x,y)とする。さらに、撮像レンズ11のレンズ面とイメージセンサ13の撮像面との距離をFとする。この場合、撮像レンズ11およびイメージセンサ13を通る光線の強度は、図中で示す4次元関数L(u,v,x,y)で表すことができる。各マイクロレンズに入射する光線は、進行方向に応じて異なる画素に入射されることから、イメージセンサ13では、光線の位置情報に加えて、光線の進行方向を保持する上記の4次元関数L(u,v,x,y)で表される光線の強度に対応する情報が記録される。
FIG. 4 is a schematic diagram for explaining information on light rays incident on the image sensor 13.
The light rays received by the image sensor 13 will be described with reference to FIG. Here, an orthogonal coordinate system on the lens surface of the imaging lens 11 is (u, v), and an orthogonal coordinate system (x, y) on the imaging surface of the image sensor 13 is used. Further, let F be the distance between the lens surface of the imaging lens 11 and the imaging surface of the image sensor 13. In this case, the intensity of the light beam passing through the imaging lens 11 and the image sensor 13 can be expressed by a four-dimensional function L (u, v, x, y) shown in the drawing. Since the light beam incident on each microlens is incident on a different pixel according to the traveling direction, the image sensor 13 uses the above four-dimensional function L (which holds the traveling direction of the light beam in addition to the positional information of the light beam). Information corresponding to the light intensity represented by u, v, x, y) is recorded.

次に、撮像後のリフォーカス演算処理について説明する。リフォーカス演算処理は、異なるフォーカス位置に対応する画素で受光した光の強度に基づいて、画像を再構築することによりリフォーカス画像データを生成する処理である。本明細書において、リフォーカス画像においてフォーカスが合っている位置の面を、リフォーカス面という。   Next, refocus calculation processing after imaging will be described. The refocus calculation process is a process for generating refocus image data by reconstructing an image based on the intensity of light received by pixels corresponding to different focus positions. In this specification, a surface at a position in focus in a refocus image is referred to as a refocus surface.

図5は、リフォーカス演算処理を説明するための模式図である。
図5に示すように、撮像レンズ面、撮像面、リフォーカス面の位置関係を設定した場合、リフォーカス面上の直交座標系(s,t)における光線の強度L’(u,v,s,t)は、以下の(1)式のように表される。
また、リフォーカス面で得られるイメージE’(s,t)は、上記強度L’(u,v,s,t)をレンズ口径に関して積分したものとなるので、以下の(2)式のように表される。
したがって、この(2)式に基づいてリフォーカス演算処理を行うことで、任意のフォーカス位置におけるリフォーカス面に対応する画像データを再構築することができる。
FIG. 5 is a schematic diagram for explaining the refocus calculation process.
As shown in FIG. 5, when the positional relationship between the imaging lens surface, the imaging surface, and the refocus plane is set, the light intensity L ′ (u, v, s) in the orthogonal coordinate system (s, t) on the refocus plane. , T) is expressed as the following equation (1).
Further, the image E ′ (s, t) obtained on the refocus plane is obtained by integrating the intensity L ′ (u, v, s, t) with respect to the lens diameter, and is expressed by the following equation (2). It is expressed in
Therefore, image data corresponding to the refocus plane at an arbitrary focus position can be reconstructed by performing the refocus calculation process based on the equation (2).

続いて、撮像後の被写界深度の調整処理、すなわち奥行き方向のフォーカス位置の調整処理について説明する。被写界深度を調整する場合、上記のリフォーカス演算処理の前に、各マイクロレンズに割り当てられた画像領域を形成する画像データごとに重み係数を乗じて重み付けを行う。例えば、被写界深度の深い画像を生成する場合には、イメージセンサ13の受光面に対して相対的に小さな角度で入射する光線の情報のみを用いて積分処理を行う。言い換えると、イメージセンサ13への入射角が相対的に大きい光線に関しては、重み係数0(ゼロ)を乗じることにより積分処理に含めない。   Next, the adjustment process of the depth of field after imaging, that is, the adjustment process of the focus position in the depth direction will be described. When adjusting the depth of field, weighting is performed by multiplying each image data forming the image area assigned to each microlens by a weighting factor before the above refocusing calculation processing. For example, when generating an image having a deep depth of field, the integration process is performed using only information on light rays incident at a relatively small angle with respect to the light receiving surface of the image sensor 13. In other words, light rays having a relatively large incident angle to the image sensor 13 are not included in the integration process by multiplying by a weighting factor of 0 (zero).

図6は、マイクロレンズへの入射角の違いと、イメージセンサ13の記録領域との関係を説明する模式図であり、図7は、被写界深度の調整処理を説明するための模式図である。
図6に示すように、イメージセンサ13への入射角が相対的に小さい光線は、より中央の領域に位置することになる。したがって、被写界深度の深い画像を生成する場合には、図7に示すように、領域の中央部(図中の斜線部)で取得された画素データのみを用いて積分処理が行われる。
FIG. 6 is a schematic diagram for explaining the relationship between the difference in the incident angle to the microlens and the recording area of the image sensor 13, and FIG. 7 is a schematic diagram for explaining the depth-of-field adjustment process. is there.
As shown in FIG. 6, the light beam having a relatively small incident angle to the image sensor 13 is located in a more central region. Therefore, when generating an image with a deep depth of field, as shown in FIG. 7, integration processing is performed using only pixel data acquired at the center of the region (shaded portion in the figure).

このような処理を行うことで、撮像装置10は、一般的な撮像装置等に具備される開口絞りをあたかも絞ったかのように、被写界深度の深い画像を表現することができる。撮像装置10は、使用する中央部の画素データを更に少なくすることで、被写界深度のより深いパンフォーカス画像データの生成も可能となる。また、撮像装置10は、LF画像データの領域ごとに、使用する画素データの位置を変えることにより、領域ごとに異なる被写界深度に調整することもできる。以上のように、撮像装置10は、LF画像データに含まれる各画素の重み係数を含むフォーカス情報、並びに光線情報及び方向情報に基づいて、撮影後に画像の被写界深度を調整し、所望のフォーカス位置に設定することができる。
以下、LF画像データをディスプレイに表示させる画像処理装置、画像処理方法及び画像処理用プログラムの実施形態について説明する。
By performing such processing, the imaging apparatus 10 can express an image having a deep depth of field as if the aperture stop provided in a general imaging apparatus or the like is limited. The imaging apparatus 10 can also generate pan-focus image data with a deeper depth of field by further reducing the pixel data in the central portion to be used. The imaging device 10 can also adjust the depth of field to be different for each region by changing the position of the pixel data to be used for each region of the LF image data. As described above, the imaging device 10 adjusts the depth of field of the image after shooting based on the focus information including the weighting coefficient of each pixel included in the LF image data, the light ray information, and the direction information, and performs a desired operation. The focus position can be set.
Hereinafter, embodiments of an image processing apparatus, an image processing method, and an image processing program for displaying LF image data on a display will be described.

<第1の実施形態>
[画像処理システムSの構成]
図8は、第1の実施形態に係る画像処理システムSの構成を示す図である。画像処理システムSは、撮像装置10と、受信機20と、画像処理装置100とを有する。撮像装置10は、小型のLFカメラ、照明及び通信部を有する錠剤程度の大きさのカプセル内視鏡である。撮像装置10は、診察を受ける被検者の体腔Tの中を移動しながら、体腔T内の各部を撮影して、LF画像データを生成する。
<First Embodiment>
[Configuration of Image Processing System S]
FIG. 8 is a diagram illustrating a configuration of the image processing system S according to the first embodiment. The image processing system S includes an imaging device 10, a receiver 20, and an image processing device 100. The imaging device 10 is a capsule endoscope having a size of a tablet having a small LF camera, illumination, and a communication unit. The imaging device 10 captures each part in the body cavity T while moving in the body cavity T of the subject to be examined, and generates LF image data.

受信機20は、Bluetooth(登録商標)又はWi−Fi(登録商標)等の無線通信回線Wを介して、撮像装置10が生成したLF画像データを受信する。また、受信機20は、撮像装置10から発信される無線信号を複数のアンテナで受信し、受信した複数の無線信号の受信強度に基づいて、例えばガウス・ニュートン法を用いて、撮像装置10がLF画像を撮像した時の撮像装置10の位置(以下、「撮像位置」という)、及びLF画像の撮像時に撮像装置10が向いている方向(以下、「撮像方向」という)を算出する。受信機20は、撮像装置10から受信したLF画像データと、撮像位置を示す撮像位置データ及び撮像方向を示す撮像方向データを含む撮像情報とを関連付けて記憶する。受信機20は、記憶したLF画像データ及び撮像情報を画像処理装置100に送信する。   The receiver 20 receives LF image data generated by the imaging apparatus 10 via a wireless communication line W such as Bluetooth (registered trademark) or Wi-Fi (registered trademark). In addition, the receiver 20 receives wireless signals transmitted from the imaging device 10 with a plurality of antennas, and the imaging device 10 uses the Gauss-Newton method, for example, based on the received intensities of the received plurality of wireless signals. The position of the imaging device 10 when the LF image is captured (hereinafter referred to as “imaging position”) and the direction in which the imaging device 10 faces when the LF image is captured (hereinafter referred to as “imaging direction”) are calculated. The receiver 20 stores the LF image data received from the imaging device 10 in association with imaging information including imaging position data indicating the imaging position and imaging direction data indicating the imaging direction. The receiver 20 transmits the stored LF image data and imaging information to the image processing apparatus 100.

画像処理装置100は、例えばコンピュータ又はスマートフォンである。画像処理装置100は、有線通信回線、無線通信回線又は記憶媒体を介して、LF画像データ及び撮像情報を受信機20から取得し、LF画像データに基づくリフォーカス画像を表示する。画像処理装置100は、多数のLF画像データのうち、検査結果を診断する医師等のユーザが、体腔T内の観察したい位置として選択した位置(以下、「サンプリング位置」という)にフォーカスが合ったリフォーカス画像を選択的に確認できるように、サンプリング位置を選択するための画面を表示する。そして、画像処理装置100は、ユーザにより選択されたサンプリング位置にフォーカスが合ったリフォーカス画像を表示する。   The image processing apparatus 100 is, for example, a computer or a smartphone. The image processing apparatus 100 acquires LF image data and imaging information from the receiver 20 via a wired communication line, a wireless communication line, or a storage medium, and displays a refocus image based on the LF image data. The image processing apparatus 100 is focused on a position (hereinafter referred to as “sampling position”) selected as a position to be observed in the body cavity T by a user such as a doctor who diagnoses a test result among many LF image data. A screen for selecting the sampling position is displayed so that the refocus image can be selectively confirmed. Then, the image processing apparatus 100 displays a refocused image that is focused on the sampling position selected by the user.

例えば、画像処理装置100は、ユーザが、サンプリング位置を指定するためのサンプリング位置指定画面を表示する。ユーザは、サンプリング位置指定画面において、例えば、図8に示す複数のサンプリング位置201〜204を指定する。画像処理装置100は、ユーザが、複数のサンプリング位置201〜204を指定すると、指定されたサンプリング位置にフォーカスを合わせることができるLF画像データを選択する。そして、画像処理装置100は、選択したLF画像データのフォーカス位置を、サンプリング位置にフォーカスが合うように設定してリフォーカス画像を生成し、生成したリフォーカス画像を表示する。   For example, the image processing apparatus 100 displays a sampling position designation screen for the user to designate a sampling position. The user specifies, for example, a plurality of sampling positions 201 to 204 shown in FIG. 8 on the sampling position specification screen. When the user designates a plurality of sampling positions 201 to 204, the image processing apparatus 100 selects LF image data that can be focused on the designated sampling positions. Then, the image processing apparatus 100 generates a refocus image by setting the focus position of the selected LF image data so that the sampling position is in focus, and displays the generated refocus image.

このようにすることで、画像処理装置100は、撮像装置10が生成した多数のLF画像データに基づいて生成可能な大量のリフォーカス画像のうち、体腔T内の病変箇所又は出血箇所等、ユーザが観察したい箇所の付近にフォーカスが合ったリフォーカス画像を選択的に表示できる。したがって、ユーザは、不要なリフォーカス画像を確認する必要がなくなるので、所望の箇所にフォーカスが合ったリフォーカス画像を検索し、閲覧しやすくなる。   By doing in this way, the image processing apparatus 100 allows the user, such as a lesion site or a bleeding site in the body cavity T, among a large number of refocus images that can be generated based on a large number of LF image data generated by the imaging device 10. Can selectively display a refocused image in the vicinity of a portion to be observed. Therefore, the user does not need to confirm an unnecessary refocus image, and it is easy to search for and browse a refocus image in which a desired portion is focused.

[画像処理装置100の構成]
図9は、画像処理装置100の構成を示す図である。画像処理装置100は、通信部110と、操作部120と、表示部130と、記憶部140と、制御部150とを有する。
[Configuration of Image Processing Apparatus 100]
FIG. 9 is a diagram illustrating a configuration of the image processing apparatus 100. The image processing apparatus 100 includes a communication unit 110, an operation unit 120, a display unit 130, a storage unit 140, and a control unit 150.

通信部110は、受信機20から、LF画像データ及び撮像情報を受信するための通信インターフェイスであり、例えばLANコントローラを含んでいる。
操作部120は、ユーザが指示を入力するためのデバイスであり、例えば表示部130に重ねて設けられたタッチパネルである。操作部120は、ユーザが指先又はペン先等でタッチした位置の2次元座標を示す座標情報を出力する。
The communication unit 110 is a communication interface for receiving LF image data and imaging information from the receiver 20, and includes, for example, a LAN controller.
The operation unit 120 is a device for a user to input an instruction. For example, the operation unit 120 is a touch panel provided on the display unit 130. The operation unit 120 outputs coordinate information indicating the two-dimensional coordinates of the position touched by the user with a fingertip or a pen tip.

表示部130は、例えば液晶ディスプレイであり、ユーザの操作を受け付けるための操作画面、及び撮像装置10が生成したLF画像データに基づくリフォーカス画像を表示する。
記憶部140は、ROM、RAM及びハードディスク等の記憶媒体である。記憶部140は、制御部150が実行する画像処理用プログラム、撮像装置10が生成したLF画像データ及び制御部150が生成する各種のデータを記憶する。例えば、記憶部140は、ユーザにより指定されたサンプリング位置を示す位置情報を含むサンプリング位置テーブルを記憶する。
The display unit 130 is, for example, a liquid crystal display, and displays an operation screen for receiving a user operation and a refocus image based on LF image data generated by the imaging device 10.
The storage unit 140 is a storage medium such as a ROM, a RAM, and a hard disk. The storage unit 140 stores an image processing program executed by the control unit 150, LF image data generated by the imaging apparatus 10, and various data generated by the control unit 150. For example, the storage unit 140 stores a sampling position table including position information indicating the sampling position designated by the user.

制御部150は、例えばCPUである。制御部150は、記憶部140に記憶された画像処理用プログラムを実行することにより、操作受付部151、画像取得部152、位置選択部153、画像選択部154、画像生成部155及び表示制御部156として機能する。   The control unit 150 is a CPU, for example. The control unit 150 executes the image processing program stored in the storage unit 140 to thereby perform an operation reception unit 151, an image acquisition unit 152, a position selection unit 153, an image selection unit 154, an image generation unit 155, and a display control unit. It functions as 156.

操作受付部151は、操作部120を構成するタッチパネルがタッチされた位置に対応する座標情報を取得する。操作受付部151は、座標情報に基づいて、ユーザの操作内容を特定し、特定した操作内容を制御部150の各部に通知する。操作受付部151は、例えば、座標情報に基づいて、ユーザが選択したサンプリング位置を特定し、特定したサンプリング位置を位置選択部153に通知する。   The operation reception unit 151 acquires coordinate information corresponding to a position where the touch panel included in the operation unit 120 is touched. Based on the coordinate information, the operation accepting unit 151 identifies the operation content of the user, and notifies the identified operation content to each unit of the control unit 150. For example, the operation reception unit 151 specifies the sampling position selected by the user based on the coordinate information, and notifies the position selection unit 153 of the specified sampling position.

画像取得部152は、通信部110を介して、LF画像データ及び撮像情報を取得し、取得したLF画像データ及び撮像情報を記憶部140に記憶させる。撮像情報は、撮像位置データ、撮像方向データ及びフォーカス範囲データを含む。撮像位置データは、例えば、体腔T内の所定の基準位置からの距離により表されるデータである。撮像方向データは、例えば、基準方向に対する角度により表されるデータである。   The image acquisition unit 152 acquires LF image data and imaging information via the communication unit 110 and causes the storage unit 140 to store the acquired LF image data and imaging information. The imaging information includes imaging position data, imaging direction data, and focus range data. The imaging position data is data represented by a distance from a predetermined reference position in the body cavity T, for example. The imaging direction data is data represented by an angle with respect to the reference direction, for example.

フォーカス範囲データは、LF画像データのフォーカス位置を変更可能な範囲を示すデータである。フォーカス範囲は、撮像装置10がフォーカスを合わせることができる光軸方向(すなわち、奥行き方向)における位置の範囲であり、撮像装置10のレンズからの距離により表される。フォーカス範囲は、撮像装置10のレンズ及びセンサの特性に基づいて定まり、受信機20において、撮像装置10から受信したLF画像データに基づいて特定される。   The focus range data is data indicating a range in which the focus position of the LF image data can be changed. The focus range is a range of positions in the optical axis direction (that is, the depth direction) in which the imaging apparatus 10 can focus, and is represented by a distance from the lens of the imaging apparatus 10. The focus range is determined based on the characteristics of the lens and sensor of the imaging device 10 and is specified by the receiver 20 based on the LF image data received from the imaging device 10.

位置選択部153は、撮像装置10が撮像可能な撮像空間における複数の位置から一以上のサンプリング位置を選択する。撮像装置10が撮像可能な撮像空間は、例えば、撮像装置10が移動することができる体腔T内の空間である。具体的には、位置選択部153は、表示制御部156を介して、ユーザがサンプリング位置を指定するためのサンプリング位置指定画面を表示部130に表示させ、操作部120を介してユーザが指定したサンプリング位置を選択する。   The position selection unit 153 selects one or more sampling positions from a plurality of positions in an imaging space that can be imaged by the imaging apparatus 10. The imaging space that can be imaged by the imaging device 10 is, for example, a space in the body cavity T in which the imaging device 10 can move. Specifically, the position selection unit 153 causes the display unit 130 to display a sampling position designation screen for designating the sampling position by the user via the display control unit 156 and designates the user via the operation unit 120. Select the sampling position.

位置選択部153は、例えば、ユーザが指定した間隔で設けられた複数のサンプリング位置の候補が含まれるサンプリング位置指定画面を表示部130に表示させる。位置選択部153は、図8に示すように等間隔に複数のサンプリング位置の候補を表示させてもよく、体腔T内の領域ごとに異なる間隔で複数のサンプリング位置の候補を表示させてもよい。位置選択部153は、ユーザの操作に応じて、サンプリング位置の表示位置を微調整してもよい。なお、図8においては、サンプリング位置201〜204が直線状に示されているが、サンプリング位置は点状又は面状に示されてもよい。   For example, the position selection unit 153 causes the display unit 130 to display a sampling position designation screen including a plurality of sampling position candidates provided at intervals designated by the user. The position selection unit 153 may display a plurality of sampling position candidates at equal intervals as shown in FIG. 8 or may display a plurality of sampling position candidates at different intervals for each region in the body cavity T. . The position selection unit 153 may finely adjust the display position of the sampling position in accordance with a user operation. In FIG. 8, the sampling positions 201 to 204 are shown in a straight line, but the sampling positions may be shown in a dotted or planar shape.

また、位置選択部153は、通信部110を介して、体腔T内の病変の位置を示す情報を外部装置(不図示)から取得し、病変の位置をサンプリング位置指定画面に表示させてもよい。このようにすることで、ユーザは、病変の位置を意識しながらサンプリング位置を指定することができる。   Further, the position selection unit 153 may acquire information indicating the position of the lesion in the body cavity T from an external device (not shown) via the communication unit 110 and display the position of the lesion on the sampling position designation screen. . In this way, the user can specify the sampling position while being aware of the position of the lesion.

位置選択部153は、病変の位置に基づいて、サンプリング位置指定画面に表示させるサンプリング位置の候補を決定してもよい。例えば、位置選択部153は、病変の位置から所定の範囲内の位置では、第1の間隔で複数のサンプリング位置の候補を表示させ、病変の位置から所定の範囲より遠い位置では、第1間隔よりも大きい第2の間隔で複数のサンプリング位置の候補を表示させてもよい。このようにすることで、ユーザは、病変の位置の付近で最適なサンプリング位置を選択することができる。   The position selection unit 153 may determine a sampling position candidate to be displayed on the sampling position designation screen based on the position of the lesion. For example, the position selection unit 153 displays a plurality of sampling position candidates at a first interval at a position within a predetermined range from the lesion position, and at the first interval at a position far from the lesion position from the predetermined range. A plurality of sampling position candidates may be displayed at a second interval larger than that. In this way, the user can select an optimum sampling position near the position of the lesion.

位置選択部153は、ユーザによるサンプリング位置の指定が完了すると、選択したサンプリング位置を示す位置情報を含むサンプリング位置テーブルを生成して、記憶部140に記憶させる。
図10は、サンプリング位置テーブルの一例を示す図である。サンプリング位置テーブルでは、図10に示すように、サンプリングIDと、位置情報と、現像IDとが関連付けられている。サンプリングIDは、サンプリング位置ごとに割り当てられる識別情報である。位置情報は、LF画像データに付帯される撮像情報に含まれる撮像位置データと同様に、体腔T内における所定の基準位置からの距離により示される情報である。現像IDは、各サンプリング位置にフォーカスを合わせることができるLF画像データに割り当てられる識別IDであり、画像選択部154が生成して、サンプリング位置テーブルに追加する。
When the designation of the sampling position by the user is completed, the position selection unit 153 generates a sampling position table including position information indicating the selected sampling position, and stores the sampling position table in the storage unit 140.
FIG. 10 is a diagram illustrating an example of the sampling position table. In the sampling position table, as shown in FIG. 10, the sampling ID, the position information, and the development ID are associated with each other. The sampling ID is identification information assigned for each sampling position. The position information is information indicated by a distance from a predetermined reference position in the body cavity T, similarly to the imaging position data included in the imaging information attached to the LF image data. The development ID is an identification ID assigned to LF image data that can be focused on each sampling position, and is generated by the image selection unit 154 and added to the sampling position table.

画像選択部154は、位置選択部153が選択したサンプリング位置と画像取得部152が取得した撮像情報とに基づいて、複数のLF画像の中から、選択されたサンプリング位置にフォーカス位置を設定可能な一以上のLF画像をフォーカス可能画像として選択する。具体的には、画像選択部154は、位置選択部153が生成したサンプリング位置テーブルに含まれる位置情報が示す各サンプリング位置に対してフォーカスが合ったリフォーカス画像を生成することが可能なLF画像データを選択する。位置選択部153が複数のサンプリング位置を選択した場合、画像選択部154は、各サンプリング位置に関連付けて、一以上のLF画像データを選択する。   The image selection unit 154 can set a focus position at a sampling position selected from among a plurality of LF images based on the sampling position selected by the position selection unit 153 and the imaging information acquired by the image acquisition unit 152. One or more LF images are selected as focusable images. Specifically, the image selection unit 154 can generate a refocus image in which each sampling position indicated by the position information included in the sampling position table generated by the position selection unit 153 is in focus. Select data. When the position selection unit 153 selects a plurality of sampling positions, the image selection unit 154 selects one or more LF image data in association with each sampling position.

画像選択部154は、撮像装置10がLF画像を撮像した位置と、位置選択部153が選択した一以上のサンプリング位置との間の距離が、LF画像データに対応するフォーカス範囲内に含まれるか否かに基づいてフォーカス可能画像を選択する。例えば、基準位置から5cmの位置において撮像されたLF画像に対応するLF画像データのフォーカス範囲が0以上10cm未満であるとする。このLF画像データからは、基準位置から5cm以上15cm未満の位置にフォーカスが合ったリフォーカス画像を生成することができる。そこで、画像選択部154は、サンプリング位置が基準位置から5cm以上15cm未満の位置であれば、このLF画像データを選択し、サンプリング位置が基準位置から5cm未満又は15cm以上の位置であれば、このLF画像データを選択しない。   Whether the image selection unit 154 includes the distance between the position where the imaging device 10 captured the LF image and one or more sampling positions selected by the position selection unit 153 within the focus range corresponding to the LF image data. A focusable image is selected based on whether or not. For example, it is assumed that the focus range of LF image data corresponding to an LF image captured at a position 5 cm from the reference position is 0 or more and less than 10 cm. From this LF image data, it is possible to generate a refocus image that is focused on a position that is not less than 5 cm and less than 15 cm from the reference position. Therefore, the image selection unit 154 selects the LF image data if the sampling position is a position that is 5 cm or more and less than 15 cm from the reference position, and if the sampling position is a position that is less than 5 cm or 15 cm or more from the reference position, LF image data is not selected.

また、画像選択部154は、撮像情報内の撮像方向データが示す撮像方向と、撮像位置に対するサンプリング位置の方向との関係に基づいて、フォーカス可能画像を選択してもよい。具体的には、画像選択部154は、撮像方向がサンプリング位置に向いているか否かに基づいてフォーカス可能画像を選択する。より具体的には、画像選択部154は、LF画像データに関連付けられた撮像方向が、当該LF画像が撮像された時の撮像装置10の位置とサンプリング位置とを結ぶ線分に対して、所定の範囲内に入っている場合に、当該LF画像データをフォーカス可能画像データとして選択する。すなわち、撮像方向と上記の線分との角度が所定の範囲内である場合に、当該LF画像データをフォーカス可能画像データとして選択する。   The image selection unit 154 may select a focusable image based on the relationship between the imaging direction indicated by the imaging direction data in the imaging information and the direction of the sampling position with respect to the imaging position. Specifically, the image selection unit 154 selects a focusable image based on whether or not the imaging direction is toward the sampling position. More specifically, the image selection unit 154 determines the image capturing direction associated with the LF image data with respect to a line segment connecting the position of the image capturing apparatus 10 and the sampling position when the LF image is captured. Is within the range, the LF image data is selected as focusable image data. That is, when the angle between the imaging direction and the line segment is within a predetermined range, the LF image data is selected as focusable image data.

画像選択部154は、上記のようにしてLF画像データを選択すると、選択したLF画像データに対して、現像IDを割り当てる。図10に示す例において、サンプリングIDが「1」のサンプリング位置にフォーカスを合わせることができるLF画像データが3つ存在し、それぞれのLF画像データに現像ID「0」、「1」、「2」が割り当てられている。   When selecting the LF image data as described above, the image selection unit 154 assigns a development ID to the selected LF image data. In the example shown in FIG. 10, there are three LF image data that can be focused on the sampling position with the sampling ID “1”, and the development IDs “0”, “1”, “2” are included in each LF image data. "Is assigned.

画像生成部155は、画像選択部154が選択した一以上のLF画像に対して、位置選択部153が選択した一以上のサンプリング位置にフォーカス位置を設定することにより、一以上のリフォーカス画像を生成する。具体的には、画像生成部155は、画像選択部154が選択したLF画像データに基づいて、LF画像が撮像された位置とサンプリング位置との間の距離に対応する位置にフォーカス位置が設定されたリフォーカス画像を生成する。例えば、画像生成部155は、LF画像が基準位置から5cmの位置で撮像され、サンプリング位置が基準位置から10cmである場合、LF画像のフォーカス位置を10cm−5cm=5cmに設定することによりリフォーカス画像を生成する。画像生成部155は、生成したリフォーカス画像を、サンプリング位置テーブルに含まれている現像IDに関連付けて、記憶部140に記憶させる。   The image generation unit 155 sets one or more refocused images by setting a focus position at one or more sampling positions selected by the position selection unit 153 with respect to one or more LF images selected by the image selection unit 154. Generate. Specifically, the image generation unit 155 sets the focus position at a position corresponding to the distance between the position where the LF image is captured and the sampling position based on the LF image data selected by the image selection unit 154. Generate a refocused image. For example, when the LF image is captured at a position 5 cm from the reference position and the sampling position is 10 cm from the reference position, the image generation unit 155 refocuses by setting the focus position of the LF image to 10 cm−5 cm = 5 cm. Generate an image. The image generation unit 155 stores the generated refocus image in the storage unit 140 in association with the development ID included in the sampling position table.

表示制御部156は、複数のリフォーカス画像を配置したレイアウト画像を生成し、生成したレイアウト画像を表示部130に表示させる。具体的には、表示制御部156は、サンプリング位置テーブルに含まれている現像IDに対応する一以上のリフォーカス画像を記憶部140から取得する。表示制御部156は、一以上のリフォーカス画像を所定の間隔で配置することによりレイアウト画像を生成する。   The display control unit 156 generates a layout image in which a plurality of refocus images are arranged, and causes the display unit 130 to display the generated layout image. Specifically, the display control unit 156 acquires one or more refocus images corresponding to the development IDs included in the sampling position table from the storage unit 140. The display control unit 156 generates a layout image by arranging one or more refocus images at a predetermined interval.

図11は、表示制御部156が表示部130に表示する表示画面131の一例を示す図である。表示画面131には、レイアウト画像表示領域132、操作ボタン表示領域133、サンプリング位置指定領域134が含まれている。表示制御部156は、レイアウト画像表示領域132に、サンプリング位置指定領域134において指定されたサンプリング位置に対応するリフォーカス画像を含むレイアウト画像を表示させる。図11(A)においては、サンプリング位置201に対応するリフォーカス画像を含むレイアウト画像が表示されている。表示制御部156は、1つのレイアウト画像に複数のリフォーカス画像が含まれる場合、例えば、リフォーカス画像に対応するLF画像が撮像された順番にリフォーカス画像を並べたレイアウト画像を表示する。   FIG. 11 is a diagram illustrating an example of the display screen 131 displayed on the display unit 130 by the display control unit 156. The display screen 131 includes a layout image display area 132, an operation button display area 133, and a sampling position designation area 134. The display control unit 156 causes the layout image display area 132 to display a layout image including a refocus image corresponding to the sampling position designated in the sampling position designation area 134. In FIG. 11A, a layout image including a refocus image corresponding to the sampling position 201 is displayed. When a plurality of refocus images are included in one layout image, for example, the display control unit 156 displays a layout image in which the refocus images are arranged in the order in which the LF images corresponding to the refocus images are captured.

操作ボタン表示領域133には、「再生」、「停止」、「一時停止」、「次の画像」、「前の画像」等の操作をするための操作画像が表示される。表示制御部156は、レイアウト画像表示領域132に表示されるレイアウト画像を、例えば一定の時間ごとに切り替える。表示制御部156は、操作ボタン表示領域133における操作画像がタッチされたことに応じてレイアウト画像を切り替えてもよい。例えば、表示制御部156は、操作ボタン表示領域133に表示された操作画像のうち、次のサンプリング位置202の画像を指定する操作画像がタッチされると、図11(B)に示すように、サンプリング位置202に対応する現像IDに関連付けて記憶部140に記憶されているリフォーカス画像を読み出して、レイアウト画像表示領域132に表示する。   In the operation button display area 133, operation images for operations such as “play”, “stop”, “pause”, “next image”, “previous image”, and the like are displayed. The display control unit 156 switches the layout image displayed in the layout image display area 132, for example, at regular intervals. The display control unit 156 may switch the layout image in response to the operation image in the operation button display area 133 being touched. For example, when the operation image for designating the image at the next sampling position 202 is touched among the operation images displayed in the operation button display area 133, the display control unit 156, as shown in FIG. The refocus image stored in the storage unit 140 in association with the development ID corresponding to the sampling position 202 is read and displayed in the layout image display area 132.

[画像処理装置100がレイアウト画像を表示させる処理]
図12は、画像処理装置100がレイアウト画像を表示するまでの手順を示すフローチャートである。以下、図12を参照して、画像処理装置100がLF画像データを取得してからレイアウト画像を表示するまでの手順について説明する。
[Process in which image processing apparatus 100 displays a layout image]
FIG. 12 is a flowchart illustrating a procedure until the image processing apparatus 100 displays a layout image. Hereinafter, a procedure from when the image processing apparatus 100 acquires LF image data to when a layout image is displayed will be described with reference to FIG.

まず、画像取得部152は、LF画像データ及び撮像情報を取得する(S11)。画像取得部152は、取得したLF画像データを記憶部140に格納すると共に、位置選択部153に対して撮像情報を通知する。   First, the image acquisition unit 152 acquires LF image data and imaging information (S11). The image acquisition unit 152 stores the acquired LF image data in the storage unit 140 and notifies the position selection unit 153 of imaging information.

続いて、位置選択部153は、操作受付部151から通知された操作情報に基づいて、複数のサンプリング位置から一以上のサンプリング位置を選択する(S12)。位置選択部153は、サンプリング位置を含むサンプリング位置テーブルを生成し、サンプリング位置テーブルを記憶部140に記憶させる。   Subsequently, the position selection unit 153 selects one or more sampling positions from a plurality of sampling positions based on the operation information notified from the operation reception unit 151 (S12). The position selection unit 153 generates a sampling position table including the sampling positions, and stores the sampling position table in the storage unit 140.

続いて、画像選択部154は、撮像情報及びサンプリング位置テーブル内の位置情報に基づいて、リフォーカス画像を生成する対象とするLF画像データを選択する(S13)。画像選択部154は、画像生成部155に対して、選択したLF画像データに対応する現像IDを決定し、LF画像データに現像IDを関連付けて記憶部140に記憶させる。その後、画像選択部154は、リフォーカス画像を生成する対象となるLF画像データに対応する現像IDを含む現像要求を画像生成部155に通知する。   Subsequently, the image selection unit 154 selects LF image data for which a refocus image is to be generated based on the imaging information and the position information in the sampling position table (S13). The image selection unit 154 causes the image generation unit 155 to determine a development ID corresponding to the selected LF image data, and causes the storage unit 140 to store the development ID in association with the LF image data. Thereafter, the image selection unit 154 notifies the image generation unit 155 of a development request including the development ID corresponding to the LF image data for which a refocus image is to be generated.

続いて、画像生成部155は、記憶部140が記憶している複数のLF画像データのうち、現像要求に含まれる現像IDに関連付けられているLF画像データを読み出し、読み出したLF画像データに基づいてリフォーカス画像を生成する(S14)。画像生成部155は、生成したリフォーカス画像を記憶部140に格納する。また、画像生成部155は、現像IDを含むリフォーカス画像の生成完了通知を表示制御部156に通知する。   Subsequently, the image generation unit 155 reads out the LF image data associated with the development ID included in the development request among the plurality of LF image data stored in the storage unit 140, and based on the read out LF image data. Then, a refocus image is generated (S14). The image generation unit 155 stores the generated refocus image in the storage unit 140. In addition, the image generation unit 155 notifies the display control unit 156 of a refocus image generation completion notification including the development ID.

表示制御部156は、画像生成部155から生成完了通知を受けると、生成完了通知に含まれる現像IDに対応するリフォーカス画像を記憶部140から取得する。表示制御部156は、取得したリフォーカス画像を含むレイアウト画像を生成し、生成したレイアウト画像を表示部130に表示させる(S15)。   When receiving the generation completion notification from the image generation unit 155, the display control unit 156 acquires a refocus image corresponding to the development ID included in the generation completion notification from the storage unit 140. The display control unit 156 generates a layout image including the acquired refocus image and causes the display unit 130 to display the generated layout image (S15).

続いて、図12におけるステップS13のLF画像データを選択する処理について詳説する。図13は、LF画像データを選択する処理の手順を示すフローチャートである。   Next, the process for selecting the LF image data in step S13 in FIG. 12 will be described in detail. FIG. 13 is a flowchart illustrating a processing procedure for selecting LF image data.

まず、画像選択部154は、位置選択部153が生成したサンプリング位置テーブルを記憶部140から取得する(S21)。続いて、画像選択部154は、変数Nを0に初期化する(S22)。ここで、変数Nは、サンプリング位置ごとに割り当てられたサンプリングIDに対応する。次いで、画像選択部154は、変数Nに1を加算する(S23)。ここで、加算後の変数Nは、LF画像データを選択する処理を実行する対象となるサンプリング位置のサンプリングIDに対応する。画像選択部154は、変数Nが、サンプリング位置テーブルに含まれているサンプリング位置の総数より小さいか否かを判定することにより、サンプリング位置に対応するLF画像データを選択する処理が終了していない未処理のサンプリング位置が残っているか否かを判定する(S24)。   First, the image selection unit 154 acquires the sampling position table generated by the position selection unit 153 from the storage unit 140 (S21). Subsequently, the image selection unit 154 initializes the variable N to 0 (S22). Here, the variable N corresponds to the sampling ID assigned for each sampling position. Next, the image selection unit 154 adds 1 to the variable N (S23). Here, the variable N after the addition corresponds to the sampling ID of the sampling position to be subjected to the process of selecting the LF image data. The image selection unit 154 determines whether or not the variable N is smaller than the total number of sampling positions included in the sampling position table, so that the process of selecting the LF image data corresponding to the sampling position has not ended. It is determined whether or not an unprocessed sampling position remains (S24).

画像選択部154は、変数Nが、決定されたサンプリング位置の総数より小さい場合(S24におけるYes)、未処理のサンプリング位置が残っていると判定し、変数Nに対応するサンプリング位置にフォーカスが合ったリフォーカス画像を生成可能なLF画像データを選択する処理を実行する(S25)。他方、変数Nが、決定されたサンプリング位置の総数に達している場合(S24におけるNo)、画像選択部154は、LF画像の選択処理が終了したことを画像生成部155に通知し、図12におけるS14に処理を移す(S26)。   When the variable N is smaller than the determined total number of sampling positions (Yes in S24), the image selection unit 154 determines that an unprocessed sampling position remains, and focuses on the sampling position corresponding to the variable N. A process of selecting LF image data that can generate a refocused image is executed (S25). On the other hand, when the variable N has reached the determined total number of sampling positions (No in S24), the image selection unit 154 notifies the image generation unit 155 that the LF image selection processing has ended, and FIG. The processing is shifted to S14 in (S26).

図14は、図13におけるステップS25の選択処理の手順、すなわち、変数Nに対応するサンプリング位置にフォーカスが合ったリフォーカス画像を生成する対象となるLF画像データを選択する処理の手順を示すフローチャートである。まず、画像選択部154は、変数Mの値を1に初期化する(S31)。変数Mは、画像取得部152が取得したLF画像データ群に含まれる複数のLF画像データそれぞれに割り当てられる変数であり、例えば、LF画像が撮像された順番に対応する値である。LF画像データ群は、例えば、1回の体腔内撮影で撮像される複数のLF画像データを含む画像セットである。   FIG. 14 is a flowchart showing the procedure of the selection process in step S25 in FIG. 13, that is, the procedure of the process of selecting the LF image data that is the target for generating the refocused image focused on the sampling position corresponding to the variable N. It is. First, the image selection unit 154 initializes the value of the variable M to 1 (S31). The variable M is a variable assigned to each of a plurality of LF image data included in the LF image data group acquired by the image acquisition unit 152, and is, for example, a value corresponding to the order in which the LF images are captured. The LF image data group is, for example, an image set including a plurality of LF image data captured by one intracorporeal imaging.

続いて、画像選択部154は、変数MがLF画像データの総数以下であるか否かを判定することにより、変数Nに対応するサンプリング位置にフォーカスが合ったリフォーカス画像を生成する対象となるLF画像データを選択する処理が、全てのLF画像データに対して行われたかを判定する(S32)。ここで、判定対象となるLF画像データに対応する変数Mの値が、取得されたLF画像データの総数より大きい値である場合(S32におけるNo)、画像選択部154は、図13のS23において加算された変数Nに対応するサンプリング位置にフォーカスを合ったリフォーカス画像を生成可能なLF画像データの選択処理が終了したと判定し、S23に処理を移す。   Subsequently, the image selection unit 154 determines whether or not the variable M is equal to or less than the total number of LF image data, thereby generating a refocus image in focus at the sampling position corresponding to the variable N. It is determined whether the process of selecting LF image data has been performed on all LF image data (S32). Here, when the value of the variable M corresponding to the determination target LF image data is larger than the total number of acquired LF image data (No in S32), the image selection unit 154 performs the process in S23 of FIG. It is determined that the selection processing of LF image data capable of generating a refocused image focused on the sampling position corresponding to the added variable N is completed, and the process proceeds to S23.

他方、変数Mの値が、取得されたLF画像データの総数以下である場合(S32におけるYes)、画像選択部154は、変数Mに対応するLF画像データ及び撮像情報を記憶部140から読み出す(S33)。続いて、画像選択部154は、読み出したLF画像データに対応する撮像情報に含まれる撮像方向データが示す撮像方向が、適切であるか否かを判定する(S34)。例えば、画像選択部154は、記憶部140から読み出したLF画像データに対応する撮像情報の撮像方向データに基づいて、撮像装置10の撮像方向と、撮像装置10とサンプリング位置とを結ぶ線分の方向との角度の差の大きさを算出する。画像選択部154は、差の大きさが所定値以下である場合に、撮像方向が適切であると判定する。   On the other hand, when the value of the variable M is equal to or less than the total number of acquired LF image data (Yes in S32), the image selection unit 154 reads the LF image data and imaging information corresponding to the variable M from the storage unit 140 ( S33). Subsequently, the image selection unit 154 determines whether or not the imaging direction indicated by the imaging direction data included in the imaging information corresponding to the read LF image data is appropriate (S34). For example, the image selection unit 154, based on the imaging direction data of the imaging information corresponding to the LF image data read from the storage unit 140, the line segment connecting the imaging direction of the imaging device 10 and the imaging device 10 and the sampling position. The magnitude of the difference in angle with the direction is calculated. The image selection unit 154 determines that the imaging direction is appropriate when the magnitude of the difference is equal to or less than a predetermined value.

画像選択部154は、撮像方向が適切でないと判定した場合(S34におけるNo)、S32へ戻る。他方、画像選択部154は、撮像方向が適切であると判定した場合(S34におけるYes)、撮像装置10がLF画像を撮像した時の位置とサンプリング位置との距離である撮像距離を算出する(S35)。撮像距離は、例えば、撮像装置10の撮像位置とサンプリング位置テーブルにおける位置情報の値との差分の絶対値により表される。   If the image selection unit 154 determines that the imaging direction is not appropriate (No in S34), the process returns to S32. On the other hand, when the image selection unit 154 determines that the imaging direction is appropriate (Yes in S34), the image selection unit 154 calculates an imaging distance that is a distance between the position when the imaging device 10 images the LF image and the sampling position ( S35). The imaging distance is represented, for example, by the absolute value of the difference between the imaging position of the imaging device 10 and the position information value in the sampling position table.

続いて、画像選択部154は、算出した撮像距離に基づいて、変数Mに対応するLF画像データから、変数Nに対応するサンプリング位置にフォーカスが合ったリフォーカス画像を生成可能であるか否かを判定する。具体的には、画像選択部154は、変数Nのサンプリング位置に対応する撮像距離が、変数Mに対応するLF画像データのフォーカス範囲内であるか否かを判定する(S36)。撮像距離がフォーカス範囲外である場合(S36におけるNo)、画像選択部154は、S32に処理を戻す。   Subsequently, based on the calculated imaging distance, the image selection unit 154 determines whether or not it is possible to generate a refocus image in focus at the sampling position corresponding to the variable N from the LF image data corresponding to the variable M. Determine. Specifically, the image selection unit 154 determines whether the imaging distance corresponding to the sampling position of the variable N is within the focus range of the LF image data corresponding to the variable M (S36). When the imaging distance is out of the focus range (No in S36), the image selection unit 154 returns the process to S32.

他方、撮像距離がフォーカス範囲内である場合(S36におけるYes)、画像選択部154は、現像IDを決定し、決定した現像IDを含む、リフォーカス画像の生成を要求するための現像要求を画像生成部155へ送信する(S37)。また、画像選択部154は、現像要求に含まれる現像IDをサンプリング位置テーブルに追記する(S38)。以上のS32からS38までの処理によって、変数Mに対応するLF画像データを選択するか否かを判定する処理が終了するので、画像選択部154は変数Mに対して1加算し(S39)、S32に処理を戻す。   On the other hand, when the imaging distance is within the focus range (Yes in S36), the image selection unit 154 determines the development ID and issues a development request for requesting generation of a refocus image including the determined development ID. It transmits to the production | generation part 155 (S37). In addition, the image selection unit 154 adds the development ID included in the development request to the sampling position table (S38). With the above processing from S32 to S38, the processing for determining whether or not to select LF image data corresponding to the variable M is completed. Therefore, the image selecting unit 154 adds 1 to the variable M (S39). The process returns to S32.

なお、本実施形態では、画像選択部154が、画像セットに含まれる全てのLF画像データに対して選択処理を実行する場合について説明したが、画像選択部154は、推定アルゴリズム等を用いて、選択処理を実行する対象となるLF画像データを限定してもよい。例えば、画像選択部154は、複数のサンプリング位置に対してLF画像データを選択する処理において、第1サンプリング位置がフォーカス範囲に入っており、第1サンプリング位置の次の第2サンプリング位置がフォーカス範囲に入っていないLF画像データは、さらに次の第3サンプリング位置もフォーカス範囲に入っていないと推定する。そして、画像選択部154は、第3サンプリング位置において選択するLF画像データとして、当該LF画像データを選択しないようにする。このようにすることで、画像選択部154は、選択処理に要する時間を短縮することができる。   In the present embodiment, the case where the image selection unit 154 performs selection processing on all LF image data included in the image set has been described. However, the image selection unit 154 uses an estimation algorithm or the like, You may limit LF image data used as the object which performs a selection process. For example, in the process of selecting LF image data for a plurality of sampling positions, the image selection unit 154 has the first sampling position within the focus range, and the second sampling position next to the first sampling position is the focus range. For LF image data not included, it is estimated that the next third sampling position is not within the focus range. Then, the image selection unit 154 does not select the LF image data as the LF image data to be selected at the third sampling position. In this way, the image selection unit 154 can reduce the time required for the selection process.

[第1の実施形態における効果]
以上説明したように、本実施形態に係る画像処理装置100においては、画像取得部152が、LF画像データ及び撮像情報を取得し、位置選択部153は、ユーザからの操作入力に基づいてサンプリング位置を決定する。そして、画像選択部154は、取得されたLF画像データから、サンプリング位置にフォーカス位置を設定可能なLF画像データを選択し、画像生成部155がリフォーカス画像を生成し、表示制御部156がリフォーカス画像を表示部130に表示させる。
[Effect in the first embodiment]
As described above, in the image processing apparatus 100 according to the present embodiment, the image acquisition unit 152 acquires LF image data and imaging information, and the position selection unit 153 determines the sampling position based on the operation input from the user. To decide. Then, the image selection unit 154 selects LF image data in which the focus position can be set to the sampling position from the acquired LF image data, the image generation unit 155 generates a refocus image, and the display control unit 156 selects the refocus image. The focus image is displayed on the display unit 130.

このようにすることで、画像処理装置100は、様々な位置や方向で撮像された多数のLF画像データから、体腔内のユーザが指定したサンプリング位置にフォーカスが合ったリフォーカス画像を表示することができる。このため、画像処理装置100は、例えば病変が生じている箇所にフォーカスが合った、複数の異なる視点から撮影された複数のリフォーカス画像を一画面上に表示することができるので、医師等のユーザが、診察に有効な画像を効率的に読影することが可能となる。   By doing in this way, the image processing apparatus 100 displays a refocus image in focus at the sampling position designated by the user in the body cavity from a large number of LF image data captured at various positions and directions. Can do. For this reason, the image processing apparatus 100 can display, for example, a plurality of refocus images taken from a plurality of different viewpoints focused on a site where a lesion has occurred, on one screen. The user can efficiently interpret an image effective for diagnosis.

<第2の実施形態>
第1の実施形態においては、レイアウト画像に含まれるリフォーカス画像が、単一の画像セットから選択されたLF画像データに基づいて生成されたのに対して、第2の実施形態においては、レイアウト画像に含まれるリフォーカス画像が、複数の画像セットから選択されたLF画像データに基づいて生成される点で、第1の実施形態と異なる。
<Second Embodiment>
In the first embodiment, the refocus image included in the layout image is generated based on the LF image data selected from the single image set, whereas in the second embodiment, the layout is displayed. The refocus image included in the image is different from the first embodiment in that the refocus image included in the image is generated based on LF image data selected from a plurality of image sets.

複数の画像セットは、撮像装置10によって、複数回の体腔内撮影で撮像される複数のLF画像データ群である。画像取得部152は、第1画像セットに含まれる複数のLF画像データと、第2画像セットに含まれる複数のLF画像データとを取得する。そして、表示制御部156は、第1画像セットのLF画像データに対応する第1リフォーカス画像と、第2画像セットのLF画像データに対応する第2リフォーカス画像とを配置したレイアウト画像を生成し、生成したレイアウト画像を表示部130に表示させる。各画像セットには、画像セットを識別するための画像セットIDが割り当てられている。画像セットIDは、患者ごとに割り当てられてもよい。   The plurality of image sets are a plurality of LF image data groups that are imaged by the imaging device 10 by a plurality of in-vivo imaging. The image acquisition unit 152 acquires a plurality of LF image data included in the first image set and a plurality of LF image data included in the second image set. Then, the display control unit 156 generates a layout image in which the first refocus image corresponding to the LF image data of the first image set and the second refocus image corresponding to the LF image data of the second image set are arranged. Then, the generated layout image is displayed on the display unit 130. Each image set is assigned an image set ID for identifying the image set. An image set ID may be assigned for each patient.

図15は、第2の実施形態に係る画像選択部154により作成されるサンプリング位置テーブルの一例を示す図である。画像選択部154は、位置選択部153が作成したサンプリング位置テーブルに対して、画像セットごとに、リフォーカス画像を生成する対象となるLF画像データに対応する現像IDを追加することにより、図15に示すサンプリング位置テーブルを作成する。   FIG. 15 is a diagram illustrating an example of a sampling position table created by the image selection unit 154 according to the second embodiment. The image selection unit 154 adds, to the sampling position table created by the position selection unit 153, a development ID corresponding to the LF image data for which a refocus image is to be generated for each image set. A sampling position table shown in FIG.

図16(A)〜(D)は、本実施形態に係る表示制御部156が表示部130に表示させるレイアウト画像の一例を示す図である。表示制御部156は、各画像セットに対応するレイアウト画像を並べて表示部130に表示させる。図16(A)のレイアウト画像は、サンプリング位置201にフォーカスが合った4つのリフォーカス画像を含む。このうち、上段に表示された3つのリフォーカス画像は、第1画像セットから選択されたLF画像データに基づき生成されたリフォーカス画像である。下段に表示された1つのリフォーカス画像は、第2画像セットから選択されたLF画像データに基づき生成されたリフォーカス画像である。図16(B)、図16(C)及び図16(D)のレイアウト画像には、それぞれサンプリング位置202、203及び204にフォーカスが合ったリフォーカス画像が含まれる。   FIGS. 16A to 16D are diagrams illustrating examples of layout images displayed on the display unit 130 by the display control unit 156 according to the present embodiment. The display control unit 156 causes the display unit 130 to display the layout images corresponding to each image set side by side. The layout image in FIG. 16A includes four refocus images that are in focus at the sampling position 201. Among these, the three refocus images displayed in the upper row are refocus images generated based on the LF image data selected from the first image set. One refocus image displayed in the lower row is a refocus image generated based on the LF image data selected from the second image set. The layout images in FIGS. 16B, 16C, and 16D include refocus images that are in focus at the sampling positions 202, 203, and 204, respectively.

図17は、LF画像データを選択する処理の手順を示すフローチャートである。図17に示すフローチャートにおけるS41〜S46は、図13に示した第1の実施形態のフローチャートにおけるS21〜S26に対応しており、S42において変数Lの値を0に初期化する点で図13のフローチャートと異なり、他の点で同じである。変数Lは、体腔内を撮影した画像セットごとに割り当てられた画像セットIDに対応している。画像選択部154は、変数Lの値を用いて、全ての画像セットに対してLF画像データを選択する処理が実行されたかを管理する。   FIG. 17 is a flowchart illustrating a processing procedure for selecting LF image data. S41 to S46 in the flowchart shown in FIG. 17 correspond to S21 to S26 in the flowchart of the first embodiment shown in FIG. 13, and the value of the variable L is initialized to 0 in S42 in FIG. Unlike the flowchart, it is the same in other respects. The variable L corresponds to the image set ID assigned to each image set obtained by imaging the body cavity. The image selection unit 154 uses the value of the variable L to manage whether processing for selecting LF image data has been executed for all image sets.

図18は、図17におけるステップS45の選択処理の手順を示すフローチャートである。図18に示すフローチャートにおけるS51は、図14に示すフローチャートにおけるS31に対応する。また、図18に示すフローチャートにおけるS54〜S61は、図14に示すフローチャートにおけるS32〜S39に対応する。図18に示すフローチャートにおいては、S51とS54との間に、S52及びS53が実行される点で図14に示すフローチャートと異なる。   FIG. 18 is a flowchart showing the procedure of the selection process in step S45 in FIG. S51 in the flowchart shown in FIG. 18 corresponds to S31 in the flowchart shown in FIG. Further, S54 to S61 in the flowchart shown in FIG. 18 correspond to S32 to S39 in the flowchart shown in FIG. The flowchart shown in FIG. 18 differs from the flowchart shown in FIG. 14 in that S52 and S53 are executed between S51 and S54.

画像選択部154は、S51において変数Mを1に初期化した後に、変数Lが、画像セット数より小さいか否かを判定することにより、全ての画像セットに対して、LF画像を選択する処理が行われたかを判定する(S52)。画像選択部154は、変数Lが画像セットの総数より少ないと判定した場合(S52におけるYes)、変数Lに1を加算してからS54以降の処理を実行する(S53)。他方、画像選択部154は、変数Lの値が画像セットの総数以上の値であると判定した場合(S52におけるNo)、図17におけるS46に移行してフォーカス可能画像の選択が終了したことを画像生成部155に通知し、図12におけるS14に移行する。   The image selection unit 154 selects LF images for all image sets by determining whether or not the variable L is smaller than the number of image sets after initializing the variable M to 1 in S51. Is determined (S52). If the image selection unit 154 determines that the variable L is less than the total number of image sets (Yes in S52), the image selection unit 154 adds 1 to the variable L, and then executes the processes after S54 (S53). On the other hand, if the image selection unit 154 determines that the value of the variable L is equal to or greater than the total number of image sets (No in S52), the process proceeds to S46 in FIG. 17 and the selection of the focusable image is completed. The image generation unit 155 is notified, and the process proceeds to S14 in FIG.

[第2の実施形態における効果]
以上説明したように、第2の実施形態に係る画像処理装置100は、異なる複数の画像セットを取得した場合に、それぞれの画像セットに含まれている複数のLF画像データから、サンプリング位置にフォーカスが合ったリフォーカス画像を表示させる。このようにすることで、例えば、ある被検者に対して、異なる時期に行われた体腔内撮影の画像セットがある場合に、体腔内の特定のサンプリング位置にフォーカスが合ったリフォーカス画像を、それぞれの画像セットに含まれるLF画像データから生成し、一画面上に表示することができる。このため、医師等のユーザが、患者の経過観察等を目的として、定期的に撮影された画像を比較することが容易となり、効率的な読影が可能となる。
[Effects of Second Embodiment]
As described above, when the image processing apparatus 100 according to the second embodiment acquires a plurality of different image sets, the image processing apparatus 100 focuses on the sampling position from the plurality of LF image data included in each image set. Display a refocused image that matches. In this way, for example, when there is a set of images taken in a body cavity taken at different times for a subject, a refocus image focused on a specific sampling position in the body cavity is obtained. Can be generated from LF image data included in each image set and displayed on one screen. For this reason, it becomes easy for a user such as a doctor to compare images taken periodically for the purpose of patient follow-up and the like, and efficient interpretation is possible.

<第3の実施形態>
第1の実施形態及び第2の実施形態においては、撮像装置10の撮像空間を体腔内とする例について説明したが、撮像空間は、これに限定されず、道路上又は建物内の空間であってもよい。この場合、画像処理装置100の位置選択部153は、ユーザにより指定されたエリアの地図を含むサンプリング位置選択用の画面を表示部130に表示させ、ユーザの指示に基づいてサンプリング位置を選択する。
<Third Embodiment>
In the first embodiment and the second embodiment, the example in which the imaging space of the imaging device 10 is a body cavity has been described. However, the imaging space is not limited to this, and is a space on a road or in a building. May be. In this case, the position selection unit 153 of the image processing apparatus 100 causes the display unit 130 to display a sampling position selection screen including a map of the area specified by the user, and selects the sampling position based on the user's instruction.

そして、画像選択部154は、ユーザが撮像装置10を用いて街中の空間を撮影することにより生成された多数のLF画像データのうち、選択されたサンプリング位置がフォーカス範囲に含まれるLF画像データを選択し、画像生成部155は、選択されたLF画像データに基づいてリフォーカス画像を生成する。このようにすることで、ユーザは、例えば旅行中に撮影した多数の画像から、閲覧したい場所にフォーカスが合っている画像のみを閲覧することができるので、特定の場所の画像を確認したいユーザにとって好適である。   Then, the image selection unit 154 selects LF image data in which the selected sampling position is included in the focus range from among a large number of LF image data generated when the user captures a space in the city using the imaging device 10. Then, the image generation unit 155 generates a refocus image based on the selected LF image data. In this way, the user can browse only the image that is focused on the location that he / she wants to browse, for example, from a large number of images taken during the trip. Is preferred.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、上記の実施形態において、画像処理装置100は、LF画像データ及び撮像情報を受信機20から取得する例について説明したが、これに限らない。撮像装置10が撮像情報を生成し、画像処理装置100は、無線により撮像装置10からLF画像データ及び撮像情報を取得してもよい。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment, A various deformation | transformation and change are possible within the range of the summary. is there. For example, in the above-described embodiment, the image processing apparatus 100 has been described with respect to an example in which the LF image data and the imaging information are acquired from the receiver 20, but the present invention is not limited thereto. The imaging apparatus 10 may generate imaging information, and the image processing apparatus 100 may acquire LF image data and imaging information from the imaging apparatus 10 wirelessly.

100・・・画像処理装置
152・・・画像取得部
153・・・位置選択部
154・・・画像選択部
155・・・画像生成部
156・・・表示制御部
DESCRIPTION OF SYMBOLS 100 ... Image processing apparatus 152 ... Image acquisition part 153 ... Position selection part 154 ... Image selection part 155 ... Image generation part 156 ... Display control part

Claims (15)

フォーカスが合った奥行き方向の位置であるフォーカス位置を撮像後に変更可能な複数のライトフィールド画像と、前記複数のライトフィールド画像の撮像位置及び変更可能なフォーカス位置の範囲であるフォーカス範囲を含む撮像情報と、を取得する画像取得手段と、
前記複数のライトフィールド画像を撮像する撮像装置が撮像可能な撮像空間における複数の位置から一以上のサンプリング位置を選択する位置選択手段と、
前記サンプリング位置と前記撮像情報とに基づいて、前記複数のライトフィールド画像の中から前記サンプリング位置にフォーカス位置を設定可能な一以上のフォーカス可能画像を選択する画像選択手段と、
選択した前記一以上のフォーカス可能画像に対して、前記一以上のサンプリング位置に前記フォーカス位置が設定されたリフォーカス画像を生成する画像生成手段と、
生成した前記リフォーカス画像を表示手段に表示させる表示制御手段と、
を有することを特徴とする画像処理装置。
Imaging information including a plurality of light field images that can be changed after imaging a focus position that is a focused position in the depth direction, and a focus range that is a range of imaging positions of the plurality of light field images and a focus position that can be changed And an image acquisition means for acquiring
Position selection means for selecting one or more sampling positions from a plurality of positions in an imaging space that can be imaged by an imaging device that captures the plurality of light field images;
Image selecting means for selecting one or more focusable images capable of setting a focus position at the sampling position from the plurality of light field images based on the sampling position and the imaging information;
Image generating means for generating a refocus image in which the focus position is set at the one or more sampling positions for the selected one or more focusable images;
Display control means for displaying the generated refocus image on a display means;
An image processing apparatus comprising:
前記画像選択手段は、前記ライトフィールド画像の前記撮像位置と前記一以上のサンプリング位置との間の距離が、前記フォーカス範囲内に含まれるか否かに基づいて、前記フォーカス可能画像を選択することを特徴とする、
請求項1に記載の画像処理装置。
The image selection means selects the focusable image based on whether a distance between the imaging position of the light field image and the one or more sampling positions is included in the focus range. Characterized by the
The image processing apparatus according to claim 1.
前記画像生成手段は、前記画像選択手段が選択した前記フォーカス可能画像の前記フォーカス位置が、前記撮像位置と前記一以上のサンプリング位置との間の距離に対応する位置に設定された前記リフォーカス画像を生成することを特徴とする、
請求項2に記載の画像処理装置。
The image generation unit is configured to set the focus position of the focusable image selected by the image selection unit to a position corresponding to a distance between the imaging position and the one or more sampling positions. Is characterized by generating
The image processing apparatus according to claim 2.
前記撮像情報は、対応する前記ライトフィールド画像の撮像方向を更に含み、
前記画像選択手段は、前記撮像方向と、前記撮像位置に対する前記一以上のサンプリング位置の方向との関係に基づいて、前記フォーカス可能画像を選択することを特徴とする、
請求項1から3のいずれか1項に記載の画像処理装置。
The imaging information further includes an imaging direction of the corresponding light field image,
The image selection unit selects the focusable image based on a relationship between the imaging direction and the direction of the one or more sampling positions with respect to the imaging position.
The image processing apparatus according to claim 1.
前記位置選択手段は、複数の前記サンプリング位置を選択し、
前記画像選択手段は、前記サンプリング位置ごとに前記フォーカス可能画像を選択することを特徴とする、
請求項1から4のいずれか1項に記載の画像処理装置。
The position selection means selects a plurality of the sampling positions,
The image selection means selects the focusable image for each sampling position,
The image processing apparatus according to claim 1.
前記表示制御手段は、複数の前記リフォーカス画像を配置したレイアウト画像を生成し、生成した前記レイアウト画像を前記表示手段に表示させることを特徴とする、
請求項1から5のいずれか1項に記載の画像処理装置。
The display control unit generates a layout image in which a plurality of the refocus images are arranged, and causes the display unit to display the generated layout image.
The image processing apparatus according to claim 1.
前記画像取得手段は、前記複数のライトフィールド画像として、第1画像群に含まれる複数のライトフィールド画像と、第2画像群に含まれる複数のライトフィールド画像とを取得し、
前記表示制御手段は、前記第1画像群のライトフィールド画像に対応する第1リフォーカス画像と、前記第2画像群のライトフィールド画像に対応する第2リフォーカス画像とを配置したレイアウト画像を生成し、生成した前記レイアウト画像を前記表示手段に表示させることを特徴とする、
請求項6に記載の画像処理装置。
The image acquisition means acquires a plurality of light field images included in a first image group and a plurality of light field images included in a second image group as the plurality of light field images,
The display control unit generates a layout image in which a first refocus image corresponding to the light field image of the first image group and a second refocus image corresponding to the light field image of the second image group are arranged. And displaying the generated layout image on the display means,
The image processing apparatus according to claim 6.
フォーカスが合った奥行き方向の位置であるフォーカス位置を撮像後に変更可能な複数のライトフィールド画像と、前記複数のライトフィールド画像の撮像位置及び変更可能なフォーカス位置の範囲であるフォーカス範囲を含む撮像情報と、を取得するステップと、
前記複数のライトフィールド画像を撮像する撮像装置が撮像可能な撮像空間における複数の位置から一以上のサンプリング位置を選択するステップと、
前記サンプリング位置と前記撮像情報とに基づいて、前記複数のライトフィールド画像の中から前記サンプリング位置にフォーカス位置を設定可能な一以上のフォーカス可能画像を選択するステップと、
選択した前記一以上のフォーカス可能画像に対して、前記一以上のサンプリング位置に前記フォーカス位置が設定されたリフォーカス画像を生成するステップと、
生成した前記リフォーカス画像を表示手段に表示させるステップと、
を有することを特徴とする画像処理方法。
Imaging information including a plurality of light field images that can be changed after imaging a focus position that is a focused position in the depth direction, and a focus range that is a range of imaging positions of the plurality of light field images and a focus position that can be changed And a step of obtaining
Selecting one or more sampling positions from a plurality of positions in an imaging space that can be imaged by an imaging device that captures the plurality of light field images;
Selecting one or more focusable images capable of setting a focus position at the sampling position from the plurality of light field images based on the sampling position and the imaging information;
Generating a refocus image in which the focus position is set at the one or more sampling positions for the selected one or more focusable images;
Displaying the generated refocus image on a display means;
An image processing method comprising:
前記フォーカス可能画像を選択するステップにおいて、前記ライトフィールド画像の前記撮像位置と前記サンプリング位置との間の距離が、前記フォーカス範囲内に含まれるか否かに基づいて、前記フォーカス可能画像を選択することを特徴とする、
請求項8に記載の画像処理方法。
In the step of selecting the focusable image, the focusable image is selected based on whether a distance between the imaging position of the light field image and the sampling position is included in the focus range. It is characterized by
The image processing method according to claim 8.
前記リフォーカス画像を生成するステップは、
前記撮像位置と前記一以上のサンプリング位置との間の距離を算出するステップと、
算出した前記距離に対応する位置に前記フォーカス位置が設定された前記リフォーカス画像を生成するステップと、
を有することを特徴とする、
請求項9に記載の画像処理方法。
The step of generating the refocus image includes:
Calculating a distance between the imaging position and the one or more sampling positions;
Generating the refocus image in which the focus position is set at a position corresponding to the calculated distance;
It is characterized by having
The image processing method according to claim 9.
前記撮像情報は、対応する前記ライトフィールド画像の撮像方向を更に含み、
前記フォーカス可能画像を選択するステップは、
前記撮像方向が前記撮像位置と前記サンプリング位置とを結ぶ線分の方向から所定の範囲内であるか否かを判定するステップと、
前記撮像方向が前記所定の範囲内であると判定した前記フォーカス可能画像を選択するステップと、
を有することを特徴とする、
請求項8から10のいずれか1項に記載の画像処理方法。
The imaging information further includes an imaging direction of the corresponding light field image,
The step of selecting the focusable image includes
Determining whether the imaging direction is within a predetermined range from the direction of a line segment connecting the imaging position and the sampling position;
Selecting the focusable image that has been determined that the imaging direction is within the predetermined range;
It is characterized by having
The image processing method according to claim 8.
前記サンプリング位置を選択するステップにおいて、複数の前記サンプリング位置を選択し、
前記フォーカス可能画像を選択するステップにおいて、前記サンプリング位置ごとに前記フォーカス可能画像を選択することを特徴とする、
請求項8から11のいずれか1項に記載の画像処理方法。
In the step of selecting the sampling position, a plurality of the sampling positions are selected,
In the step of selecting the focusable image, the focusable image is selected for each sampling position.
The image processing method according to claim 8.
前記表示手段に表示させるステップは、
複数の前記リフォーカス画像を配置したレイアウト画像を生成するステップと、
生成した前記レイアウト画像を前記表示手段に表示させるステップと、
を有することを特徴とする、
請求項8から12のいずれか1項に記載の画像処理方法。
The step of displaying on the display means includes:
Generating a layout image in which a plurality of the refocus images are arranged;
Displaying the generated layout image on the display means;
It is characterized by having
The image processing method according to claim 8.
前記ライトフィールド画像を取得するステップにおいて、前記複数のライトフィールド画像として、第1画像群に含まれる複数のライトフィールド画像と、第2画像群に含まれる複数のライトフィールド画像とを取得し、
前記表示手段に表示させるステップは、前記第1画像群のライトフィールド画像に対応する第1リフォーカス画像と、前記第2画像群のライトフィールド画像に対応する第2リフォーカス画像とを配置したレイアウト画像を生成するステップと、
生成した前記レイアウト画像を前記表示手段に表示させるステップと、
を有することを特徴とする、
請求項13に記載の画像処理方法。
In the step of acquiring the light field image, a plurality of light field images included in the first image group and a plurality of light field images included in the second image group are acquired as the plurality of light field images,
The step of displaying on the display means includes a layout in which a first refocus image corresponding to the light field image of the first image group and a second refocus image corresponding to the light field image of the second image group are arranged. Generating an image; and
Displaying the generated layout image on the display means;
It is characterized by having
The image processing method according to claim 13.
コンピュータに、
フォーカスが合った奥行き方向の位置であるフォーカス位置を撮像後に変更可能な複数のライトフィールド画像と、前記複数のライトフィールド画像の撮像位置及び変更可能なフォーカス位置の範囲であるフォーカス範囲を含む撮像情報と、を取得するステップと、
前記複数のライトフィールド画像を撮像する撮像装置が撮像可能な撮像空間における複数の位置から一以上のサンプリング位置を選択するステップと、
前記サンプリング位置と前記撮像情報とに基づいて、前記複数のライトフィールド画像の中から前記サンプリング位置にフォーカス位置を設定可能な一以上のフォーカス可能画像を選択するステップと、
選択した前記一以上のフォーカス可能画像に対して、前記一以上のサンプリング位置に前記フォーカス位置が設定されたリフォーカス画像を生成するステップと、
生成した前記リフォーカス画像を表示手段に表示させるステップと、
を実行させることを特徴とする画像処理用プログラム。

On the computer,
Imaging information including a plurality of light field images that can be changed after imaging a focus position that is a focused position in the depth direction, and a focus range that is a range of imaging positions of the plurality of light field images and a focus position that can be changed And a step of obtaining
Selecting one or more sampling positions from a plurality of positions in an imaging space that can be imaged by an imaging device that captures the plurality of light field images;
Selecting one or more focusable images capable of setting a focus position at the sampling position from the plurality of light field images based on the sampling position and the imaging information;
Generating a refocus image in which the focus position is set at the one or more sampling positions for the selected one or more focusable images;
Displaying the generated refocus image on a display means;
The program for image processing characterized by performing these.

JP2015083836A 2015-04-16 2015-04-16 Image processing apparatus, image processing method and program for image processing Pending JP2016208104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015083836A JP2016208104A (en) 2015-04-16 2015-04-16 Image processing apparatus, image processing method and program for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015083836A JP2016208104A (en) 2015-04-16 2015-04-16 Image processing apparatus, image processing method and program for image processing

Publications (1)

Publication Number Publication Date
JP2016208104A true JP2016208104A (en) 2016-12-08

Family

ID=57490385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015083836A Pending JP2016208104A (en) 2015-04-16 2015-04-16 Image processing apparatus, image processing method and program for image processing

Country Status (1)

Country Link
JP (1) JP2016208104A (en)

Similar Documents

Publication Publication Date Title
JP5875839B2 (en) Plenoptic camera
JP6159097B2 (en) Image processing apparatus, imaging apparatus, control method, and program
JP2014039125A5 (en)
JP2014150466A5 (en)
JP2014153890A5 (en)
EP2804145B1 (en) Microscope system and stitched area decision method
WO2015173676A2 (en) Colposcopy apparatus for performing a colposcopy procedure
JP6736670B2 (en) Endoscope system
JPWO2019065260A1 (en) Information processing equipment, information processing methods, programs, and interchangeable lenses
JP2017017537A (en) Electronic apparatus and display control method
JP5822545B2 (en) Image processing apparatus, image processing apparatus control method, and program
JPWO2017212909A1 (en) Imaging device, imaging device, electronic device
JP2016001853A (en) Image processing system, imaging device, control method, and program
US10429632B2 (en) Microscopy system, microscopy method, and computer-readable recording medium
JP5249799B2 (en) Image output system, image output method, and image output program
JP2014030181A (en) Image processor, control method thereof, and program
JP6563517B2 (en) Microscope observation system, microscope observation method, and microscope observation program
JP2016208104A (en) Image processing apparatus, image processing method and program for image processing
KR20170139798A (en) An electronic device and control method thereof
JP2020193820A (en) Measurement device, imaging device, control method, and program
JP6362433B2 (en) Image processing apparatus, control method therefor, and program
JP2015198340A (en) Image processing system and control method therefor, and program
JP2017217170A (en) Image display apparatus
JP2017022464A (en) Image processing device and image processing method
JP6584091B2 (en) Electronic device and display control method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20180227