JP2013098920A - Defect correction device, defect correction method, and imaging device - Google Patents
Defect correction device, defect correction method, and imaging device Download PDFInfo
- Publication number
- JP2013098920A JP2013098920A JP2011242517A JP2011242517A JP2013098920A JP 2013098920 A JP2013098920 A JP 2013098920A JP 2011242517 A JP2011242517 A JP 2011242517A JP 2011242517 A JP2011242517 A JP 2011242517A JP 2013098920 A JP2013098920 A JP 2013098920A
- Authority
- JP
- Japan
- Prior art keywords
- defect
- image
- correction
- defective
- detection unit
- 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
Links
Images
Abstract
Description
本技術は、欠陥補正装置、欠陥補正方法および撮像装置に関し、詳しくは、3D画像を構成する2つの画像に対する欠陥補正を行う欠陥補正装置、欠陥補正方法および撮像装置に関する。 The present technology relates to a defect correction apparatus, a defect correction method, and an imaging apparatus, and more particularly, to a defect correction apparatus, a defect correction method, and an imaging apparatus that perform defect correction on two images constituting a 3D image.
従来から、撮像素子などにおける欠陥検出および欠陥補正は2Dカメラにおいて広く行われている(特許文献1)。そして、3Dカメラにおいては、2Dカメラと同様の方法をL画像、R画像にそれぞれ適用しているのが現状である。 Conventionally, defect detection and defect correction in an image sensor and the like have been widely performed in 2D cameras (Patent Document 1). In the 3D camera, the same method as the 2D camera is applied to the L image and the R image, respectively.
しかし、3Dカメラの場合、L画像、R画像それぞれに独立して欠陥補正を施すと画像が本来のL画像、R画像とは異なるものとなり、自然な立体感が損なわれることとなる。 However, in the case of a 3D camera, if defect correction is performed independently for each of the L image and the R image, the image differs from the original L image and R image, and the natural stereoscopic effect is impaired.
本技術は、このような見解決の問題に鑑みてなされたものであり、3Dの立体感を損なうことなく欠陥補正を行うことができる欠陥補正装置、欠陥補正方法および撮像装置を提供することを目的とする。 The present technology has been made in view of such a problem of view resolution, and provides a defect correction device, a defect correction method, and an imaging device that can perform defect correction without impairing the 3D stereoscopic effect. Objective.
上述した課題を解決するために、第1の技術は、第1の画像における欠陥画素を検出する第1の欠陥検出部と、第2の画像における欠陥画素を検出する第2の欠陥検出部と、第1の画像において、第1の欠陥検出部により検出された欠陥画素により構成される欠陥領域を検出するとともに、第2の画像において、第2の欠陥検出部により検出された欠陥画素により構成される欠陥領域を検出する欠陥領域検出部と、第1の欠陥検出部による検出結果および欠陥領域検出部による検出結果に基づいて第1の画像において欠陥補正を行う範囲を設定する第1の補正範囲設定部と、第2の欠陥検出部による検出結果および欠陥領域検出部による検出結果に基づいて第2の画像において欠陥補正を行う範囲を設定する第2の補正範囲設定部と、第1の補正範囲設定部により設定された補正範囲に基づいて第1の画像の欠陥補正処理を行う第1の欠陥補正部と、第2の補正範囲設定部により設定された補正範囲に基づいて第2の画像の欠陥補正処理を行う第2の欠陥補正部とを備える欠陥補正装置である。 In order to solve the above-described problem, the first technique includes a first defect detection unit that detects a defective pixel in the first image, and a second defect detection unit that detects a defective pixel in the second image. In the first image, a defect area composed of defective pixels detected by the first defect detector is detected, and in the second image, the defect pixels detected by the second defect detector are configured. A defect area detection unit for detecting a defect area to be performed, and a first correction for setting a range for performing defect correction in the first image based on a detection result by the first defect detection unit and a detection result by the defect area detection unit A range setting unit; a second correction range setting unit that sets a range for performing defect correction in the second image based on a detection result by the second defect detection unit and a detection result by the defect region detection unit; A first defect correction unit that performs defect correction processing on the first image based on the correction range set by the positive range setting unit, and a second correction based on the correction range set by the second correction range setting unit. It is a defect correction apparatus provided with the 2nd defect correction part which performs the defect correction process of an image.
また、第2の技術は、第1の画像における欠陥画素を検出し、第2の画像における欠陥画素を検出し、第1の画像において検出された欠陥画素により構成される欠陥領域を検出するとともに、第2の画像において検出された欠陥画素により構成される欠陥領域を検出し、第1の画像において検出された欠陥画素および検出された欠陥領域に基づいて第1の画像において欠陥補正を行う範囲を設定し、第2の画像において検出された欠陥画素および検出された欠陥領域に基づいて前記第2の画像において欠陥補正を行う範囲を設定し、設定された補正範囲に基づいて前記第1の画像について欠陥補正処理を行い、設定された補正範囲に基づいて第2の画像について欠陥補正処理を行う欠陥補正方法である。 The second technique detects a defective pixel in the first image, detects a defective pixel in the second image, and detects a defective area constituted by the defective pixels detected in the first image. A range in which a defective area composed of defective pixels detected in the second image is detected and defect correction is performed in the first image based on the defective pixels detected in the first image and the detected defective areas Is set, a range for performing defect correction in the second image based on the defective pixel detected in the second image and the detected defective area, and the first range based on the set correction range is set. This is a defect correction method in which defect correction processing is performed on an image and defect correction processing is performed on a second image based on a set correction range.
さらに、第3の技術は、光学系を介した光を受光して第1の画像を生成する第1の撮像部と、光学系を介した光を受光して第2の画像を生成する第2の撮像部と、第1の画像における欠陥画素を検出する第1の欠陥検出部と、第2の画像における欠陥画素を検出する第2の欠陥検出部と、第1の画像において、第1の欠陥検出部により検出された欠陥画素により構成される欠陥領域を検出するとともに、第2の画像において、第2の欠陥検出部により検出された欠陥画素により構成される欠陥領域を検出する欠陥領域検出部と、第1の欠陥検出部による検出結果および欠陥領域検出部による検出結果に基づいて第1の画像において欠陥補正を行う範囲を設定する第1の補正範囲設定部と、第2の欠陥検出部による検出結果および欠陥領域検出部による検出結果に基づいて第2の画像において欠陥補正を行う範囲を設定する第2の補正範囲設定部と、第1の補正範囲設定部により設定された補正範囲に基づいて第1の画像の欠陥補正処理を行う第1の欠陥補正部と、第2の補正範囲設定部により設定された補正範囲に基づいて第2の画像の欠陥補正処理を行う第2の欠陥補正部とを備える撮像装置である。 Furthermore, the third technique receives a light through the optical system and generates a first image, and a first technique receives the light through the optical system and generates a second image. Two imaging units, a first defect detection unit that detects defective pixels in the first image, a second defect detection unit that detects defective pixels in the second image, and the first image, Detecting a defect area composed of defective pixels detected by the defect detection section of the defect and detecting a defect area composed of defect pixels detected by the second defect detection section in the second image A detection unit; a first correction range setting unit that sets a range for performing defect correction in the first image based on a detection result by the first defect detection unit and a detection result by the defect region detection unit; and a second defect Detection results and defect area detection by the detector A second correction range setting unit that sets a range in which defect correction is performed in the second image based on the detection result of the first image, and a defect in the first image based on the correction range set by the first correction range setting unit An imaging apparatus comprising: a first defect correction unit that performs correction processing; and a second defect correction unit that performs defect correction processing of a second image based on the correction range set by the second correction range setting unit. is there.
本技術によれば、3Dの立体感を損なうことなく画像の欠陥の補正を行うことができる。 According to the present technology, it is possible to correct an image defect without impairing the 3D stereoscopic effect.
以下、本技術の実施の形態について図面を参照しながら説明する。ただし、本技術は以下の実施の形態のみに限定されるものではない。なお、説明は以下の順序で行う。
<1.実施の形態>
[1−1.欠陥補正処理の概要]
[1−2.欠陥補正装置の構成]
[1−3.欠陥補正装置を備える撮像装置の構成]
[1−4.欠陥補正処理の第1の手法]
[1−5.欠陥補正処理の第2の手法]
[1−6.欠陥補正処理の第3の手法]
<2.変形例>
Hereinafter, embodiments of the present technology will be described with reference to the drawings. However, the present technology is not limited to the following embodiments. The description will be given in the following order.
<1. Embodiment>
[1-1. Overview of defect correction processing]
[1-2. Configuration of defect correction apparatus]
[1-3. Configuration of imaging apparatus including defect correction apparatus]
[1-4. First Method of Defect Correction Processing]
[1-5. Second Method of Defect Correction Processing]
[1-6. Third Method of Defect Correction Processing]
<2. Modification>
<1.実施の形態>
[1−1.欠陥補正処理の概要]
まず、本技術に係る欠陥補正装置によって行われる欠陥補正の概要について図1および図2を参照して説明する。欠陥補正装置は、例えば、イメージャなどの光学撮像系、画像エンジンなどを左目用と右目用とで2つ備え、3次元画像(3D画像)の撮影機能を持つ2眼の撮像装置などに搭載されて用いられる。
<1. Embodiment>
[1-1. Overview of defect correction processing]
First, an outline of defect correction performed by the defect correction apparatus according to the present technology will be described with reference to FIGS. 1 and 2. The defect correction apparatus is mounted on, for example, a two-lens imaging apparatus that has an optical imaging system such as an imager, two image engines for the left eye and one for the right eye, and has a three-dimensional image (3D image) imaging function. Used.
図1は、本技術を用いずに、左目用画像(以下、L画像10と称する。)と右目用画像(以下、R画像20と称する。)それぞれに独立して欠陥画素に対して補正処理を施した場合の画像を示す図である。 FIG. 1 illustrates a correction process for a defective pixel independently for each of a left-eye image (hereinafter referred to as an L image 10) and a right-eye image (hereinafter referred to as an R image 20) without using the present technology. It is a figure which shows the image at the time of giving.
ここで、欠陥画素とは、何らかの原因により本来の画像信号ではなく異常な画像信号を出力し、出力画像において画像の断続や不鮮明さなどの画像欠陥を生じさせる欠陥を有する画素のことをいう。欠陥画素は製造時に生じる場合もあれば、撮像装置の使用に伴う経年劣化により生じる場合もある。 Here, the defective pixel means a pixel having a defect that outputs an abnormal image signal instead of an original image signal for some reason and causes an image defect such as intermittent or unclear image in the output image. Defective pixels may occur at the time of manufacture, or may occur due to deterioration over time associated with the use of the imaging device.
また、欠陥補正処理は例えば、欠陥画素である補正対象の画素と、その補正対象画素の周囲8方向の正常な画素の平均値とを置き換えることにより行われる。 In addition, the defect correction process is performed, for example, by replacing a pixel to be corrected, which is a defective pixel, with an average value of normal pixels in the eight directions around the pixel to be corrected.
図1上段の2つの画像は欠陥補正処理を施す前のL画像10およびR画像20である。また、図1下段は欠陥補正後のL画像10およびR画像20である。各画像のマス目は画素を表している。また、図1上段において黒色の画素は欠陥画素を表している。さらに、図1下段において、斜線が描かれた画素は補正処理がなされた画素を表している。
The two images in the upper part of FIG. 1 are the
図1に示されるようにL画像10には複数の小さな欠陥11、11、11と、隣接する複数の欠陥画素からなる大きな欠陥(以下、隣接する複数の欠陥画素からなり、所定サイズ以上のサイズを有する領域を欠陥領域と称する。)である欠陥領域12があり、R画像20には複数の小さな欠陥21、21、21がある。
As shown in FIG. 1, the
通常の2次元画像(2D)用の欠陥補正処理を3D撮影用の2眼の撮像装置により撮影されたL画像10、R画像20に適用する場合、L画像10、R画像20それぞれに独立して欠陥補正処理が施される。図1上段に示されたL画像10、R画像20のそれぞれに独立して欠陥補正処理を施すと、図1下段の画像に示されるようになる。
When applying a normal two-dimensional image (2D) defect correction process to the
図1下段からわかるように、L画像10の小さな欠陥11が補正されており、R画像20においても小さな欠陥21が補正されている。また、L画像10には大きな欠陥である欠陥領域12があったため、その欠陥領域12も補正されている。R画像20には欠陥領域は存在しないため、R画像20におけるL画像10の大きな欠陥に対応する範囲22において欠陥補正は行われていない。
As can be seen from the lower part of FIG. 1, the
そうすると、L画像10とR画像20とでは、L画像10の欠陥領域12と、R画像におけるL画像の欠陥領域に対応する範囲22とで大きな相違が生じることとなる。3D画像においてはL画像とR画像の僅かな違いが3Dの立体感に大きな影響を与えるため、図1下段に示されるように、L画像10とR画像20とで大きな相違があると3Dの立体感が損なわれてしまうこととなる。なお、小さな欠陥はL画像とR画像とで個別に欠陥補正を施しても、そのサイズから3Dの立体感を損なうおそれが少ないと考えられる。
As a result, the
そこで、本技術に係る欠陥補正装置では、図2に示されるように欠陥補正を行う。図2上段には欠陥補正処理を施す前のL画像10およびR画像20が示されている。図2下段には下段に欠陥補正後のL画像10およびR画像20を示されている。
Therefore, the defect correction apparatus according to the present technology performs defect correction as shown in FIG. The upper part of FIG. 2 shows the
本技術係る欠陥補正装置においても、3Dの立体感を損なうおそれが少ないと考えられる小さな欠陥についてはL画像10とR画像20とで独立して欠陥補正が行われる。一方、L画像10に存在する、隣接する複数の欠陥画素により構成される欠陥領域12は、面積が大きいため、L画像のみについて欠陥補正を行うと、L画像10とR画像20とで大きな違いが生じて、3Dの立体感を損なわれるおそれがある。
Also in the defect correction apparatus according to the present technology, defect correction is performed independently for the
そこで、L画像10の欠陥領域12について欠陥補正を行うと共に、図2下段に示されるように、R画像20中のL画像の欠陥領域に対応する範囲23も欠陥領域とみなして同様に欠陥補正を行う。これは、R画像20中のL画像10の欠陥領域12に対応する位置に欠陥画素がない場合でも行うようにする。これにより、L画像とR画像とでは同じ位置で欠陥補正が行われるため、L画像10とR画像20に大きな相違点が存在して3Dの立体感が損なわれる、ということを防止することが可能となる。なお、このように、欠陥はないが、欠陥領域とみなされて欠陥補正の対象となる範囲を「みなし欠陥領域」と称する。
Accordingly, defect correction is performed on the
上記説明はL画像10の欠陥領域12に対応する範囲をR画像中のみなし欠陥領域とする、と説明したが、逆も同様であり、R画像20に欠陥領域がある場合にはそれに対応する範囲がL画像中でみなし欠陥領域となる。
In the above description, the range corresponding to the
[1−2.欠陥補正装置の構成]
図3は、本技術に係る欠陥補正装置100の構成を示すブロック図である。欠陥補正装置100は、例えば、イメージャなどの光学撮像系、画像エンジンなどをL側用とR側用とで2つずつ備える3D画像の撮影機能を持つ2眼の撮像装置などに搭載されて用いられる。
[1-2. Configuration of defect correction apparatus]
FIG. 3 is a block diagram illustrating a configuration of the
欠陥補正装置100は、L側欠陥検出部111、L側欠陥補正部112、L側補正範囲設定部113、R側欠陥検出部121、R側欠陥補正部122、R側補正範囲設定部123、欠陥領域検出部130とから構成されている。これらは、その機能を備える例えば、回路、IC(Integrated Circuit)、マイコンなどにより実現される。また、CPU(Central Processing Unit)、RAM(Random Access Memory)およびROM(Read Only Memory)などからなり、CPUがROMに記憶されたプログラムに従い様々な処理を実行することによって、各部の機能を実現するようにしてもよい。
The
L側欠陥検出部111およびL側欠陥補正部112には左目用画像であるL画像が入力される。R側欠陥検出部121およびR側欠陥補正部122には右目用画像であるR画像が入力される。L画像は例えば、L画像撮影用の光学撮像系および撮像素子によって生成された画像であり、R画像は例えば、R画像撮影用の光学撮像系および撮像素子によって生成された画像である。
An L image that is an image for the left eye is input to the L-side
光学撮像系は、被写体からの光を撮像素子に集光するためのレンズ、レンズを移動させてフォーカス合わせやズーミングを行うための駆動機構、シャッタ機構、アイリス機構などから構成されている。光学撮像系を介して得られた被写体の光画像は、撮像素子上に結像される。 The optical imaging system includes a lens for condensing light from a subject on an imaging device, a driving mechanism for moving a lens to perform focusing and zooming, a shutter mechanism, an iris mechanism, and the like. The optical image of the subject obtained through the optical imaging system is formed on the imaging element.
撮像素子は、被写体からの入射光を光電変換して電荷量に変換し、画像信号として出力する。撮像素子12から出力された撮像信号はL側欠陥検出部111およびL側欠陥補正部112に出力される。撮像素子としては、CCD(Charge Coupled Device)、CMOS(Complementary Metal Oxide Semiconductor)などが用いられる。
The image sensor photoelectrically converts incident light from the subject, converts it into a charge amount, and outputs it as an image signal. The imaging signal output from the
L側欠陥検出部111は、L画像を生成する撮像素子において発生する欠陥を検出するものである。欠陥の検出方法としては、種々の公知の検出方法を採用することができる。例えば、検出対象である画素と、その画素の周囲8方向の画素の平均値との比較を行い、その平均値から所定量離間している場合に検出対象の画素は欠陥画素として判定する、という方法がある。
The L-side
また、工場等からの出荷前に撮像素子に対してテストを行い、テストの結果得られた全ての欠陥画素のアドレスを不揮発性メモリ(図示せず。)に格納し、そのアドレスに基づいて欠陥画素を検出するという方法もある。R側欠陥検出部121も同様にして、R画像を生成する撮像素子において発生する欠陥を検出するものである。
Further, a test is performed on the image sensor before shipment from a factory or the like, and addresses of all defective pixels obtained as a result of the test are stored in a non-volatile memory (not shown), and defects are determined based on the addresses. There is also a method of detecting pixels. Similarly, the R-side
L側欠陥検出部111により検出された欠陥画素を示すL側欠陥画素情報はL側補正範囲設定部113および欠陥領域検出部130に供給される。R側欠陥検出部121により検出されたR側欠陥画素情報はR側補正範囲設定部123および欠陥領域検出部130に供給される。
L-side defect pixel information indicating a defective pixel detected by the L-side
欠陥領域検出部130は、L側欠陥検出部111から供給された欠陥画素情報に基づいて、L画像において隣接する複数の欠陥画素によって構成される領域を検出する。L画像において隣接する複数の欠陥画素によって構成される領域をL側欠陥領域と称する。また、R側欠陥検出部121から供給された欠陥画素情報に基づいてR画像において隣接する複数の欠陥画素によって構成される領域を検出する。R画像において隣接する複数の欠陥画素によって構成される領域をR側欠陥領域と称する。欠陥領域の検出の詳細については後述する。
The defective
欠陥領域検出部130は、L画像およびR画像における欠陥領域の位置を示す欠陥領域情報をL側補正範囲設定部113とR側補正範囲設定部123に供給する。
The defect
L側補正範囲設定部113は、L側欠陥検出部111からの欠陥画素情報および欠陥領域検出部130からの欠陥領域情報に基づいて、L画像における欠陥補正を行う範囲を設定するものである。L画像における補正範囲を示すL側補正範囲情報はL側欠陥補正部112に供給される。
The L-side correction
R側補正範囲設定部123は、R側欠陥検出部121からの欠陥画素情報および欠陥領域検出部130からの欠陥領域情報に基づいて、R画像における欠陥補正を行う範囲を設定するものである。R画像における補正範囲を示すR側補正範囲情報はR側欠陥補正部122に供給される。なお、欠陥補正を行う範囲決定の詳細については後述する。
The R-side correction
L側欠陥補正部112は、L側補正範囲設定部113から供給された補正範囲情報に基づいてL画像に対して補正処理を行うものである。補正処理としては種々の公知の補正方法を用いることができる。例えば、欠陥画素である補正対象画素と、その補正対象画素の周囲8方向の正常な画素の平均値とを置き換えることにより行われる。L側欠陥補正部112により欠陥補正処理が施された画像信号、例えば、撮像装置200のカメラ処理部などに供給される。
The L-side
R側欠陥補正部122は、R側補正範囲設定部123から供給された補正範囲情報に基づいてR画像に対して補正処理を行うものである。欠陥補正が施されたL画像およびR画像は欠陥補正装置が適用された撮像装置のカメラ処理部などに供給される。以上のようにして欠陥補正装置が構成されている。
The R-side
[1−3.欠陥補正装置を備える撮像装置の構成]
上述のように構成された欠陥補正装置100は、イメージャなどの光学撮像系、画像エンジンなどを左目用と右目用とで2つずつ備える3D画像の撮影機能を持つ2眼の撮像装置200に搭載されて用いられる。図4は欠陥補正装置の機能を備え、3D撮影機能を持つ撮像装置200の構成を示すブロック図である。
[1-3. Configuration of imaging apparatus including defect correction apparatus]
The
撮像装置200は、L画像を撮影するための、L側光学撮像系211、L側撮像素子212、L側タイミングジェネレータ213、L側前処理回路214、L側カメラ処理回路215を備える。また、R画像を撮影するためのR側光学撮像系221、R側撮像素子222、R側タイミングジェネレータ223、R側前処理回路224、R側カメラ処理回路225を備える。さらに、制御部231、3D画像圧縮部232、記憶部233、表示部234、入力部235を備える。
The
また、欠陥補正装置を構成する、L側欠陥検出部111、L側欠陥補正部112、L側補正範囲設定部113、R側欠陥検出部121、R側欠陥補正部122、R側補正範囲設定部123、欠陥領域検出部130も備える。
Further, the L-side
L側光学撮像系211は、被写体からの光を撮像素子に集光するためのレンズ、レンズを移動させてフォーカス合わせやズーミングを行うための駆動機構、シャッタ機構、アイリス機構などから構成されている。これらは制御部231からの制御信号に基づいて駆動される。L側光学撮像系211を介して得られた被写体の光画像は、撮像デバイスとしてのL側撮像素子212上に結像される。
The L-side
L側撮像素子212は、L側タイミングジェネレータ213から出力されるタイミング信号に基づいて駆動され、被写体からの入射光を光電変換して電荷量に変換し、画像信号として出力する。L側撮像素子212から出力される画像信号はL側欠陥補正部112およびL側欠陥検出部111に供給される。L側撮像素子212としては、CCD、CMOSなどが用いられる。L側タイミングジェネレータ213は、制御部231の制御に従いL側撮像素子212に対してタイミング信号を出力する。
The L-
L側欠陥補正部112により欠陥補正処理が施された画像信号はL側前処理回路214に供給される。L側前処理回路214は、画像信号に対して、CDS(Correlated Double Sampling)処理によりS/N(Signal/Noise)比を良好に保つようにサンプルホールドなどを行う。さらに、AGC(Auto Gain Control)処理により利得を制御し、A/D(Analog/Digital)変換を行ってデジタル画像データを出力する。
The image signal that has been subjected to the defect correction processing by the L-side
L側カメラ処理回路215は、前処理回路からの画像データに対して、ホワイトバランス調整処理や色補正処理、ガンマ補正処理、Y/C変換処理、AE(Auto Exposure)処理などの信号処理を施す。L側カメラ処理回路215により所定の処理が施された画像データは3D画像圧縮部232に供給される。
The L-side
R画像を撮影するためのR側光学撮像系221、R側撮像素子222、R側タイミングジェネレータ223、R側前処理回路224、R側カメラ処理回路225は上述したL画像を撮影するための構成と同様のものであるためその説明を省略する。
An R-side
制御部231は、例えばCPU、RAMおよびROMなどから構成されている。ROMには、CPUにより読み込まれ動作されるプログラムなどが記憶されている。RAMは、CPUのワークメモリとして用いられる。CPUは、ROMに記憶されたプログラムに従い様々な処理を実行してコマンドの発行を行うことによって撮像装置200全体の制御を行う。また、制御部231は所定のプログラムを実行することにより、L側補正範囲設定部113、R側補正範囲設定部123および欠陥領域検出部130として機能する。
The
3D画像圧縮部232に供給されたL画像データおよびR画像データは、3D画像圧縮部232においてそれぞれ圧縮され、1つの3D画像ファイルに格納されて最終的に記憶部233に保存される。3D画像ファイルには、3D圧縮画像データとともに、被写体距離情報、視差情報および輻輳角に関する情報などが含まれるようにしてもよい。記憶部233は、例えば、ハードディスク、不揮発性メモリなどの大容量記憶媒体である。
The L image data and the R image data supplied to the 3D
表示部234は、例えば、LCD(Liquid Crystal Display)、PDP(Plasma Display Panel)、有機EL(Electro Luminescence)パネルなどにより構成された表示手段である。表示部234には、撮像中のスルー画、記憶部233に記録された画像などが表示される。
The
入力部235は、例えば、電源オン/オフ切り替えのための電源ボタン、撮像画像の記録の開始を指示するためのレリーズボタン、ズーム調整用の操作子、表示部234と一体に構成されたタッチスクリーンなどからなる入力手段である。入力部235に対して入力がなされると、その入力に応じた制御信号が生成されて制御部231に出力される。そして、制御部231はその制御信号に対応した演算処理や制御を行う。
The
なお、図4においては、L画像はL側欠陥補正部112により欠陥補正処理が施された後にL側前処理回路214およびL側カメラ処理回路215で所定の処理が行われるように構成されている。しかし、構成はそれに限られるものではなく、L側前処理回路214およびL側カメラ処理回路215による処理の後にL画像に対してL側欠陥補正部112による欠陥補正が行われるようにしてもよい。R側欠陥補正部122について同様である。
In FIG. 4, the L image is configured such that a predetermined process is performed by the L
[1−4.欠陥補正処理の第1の手法]
次に欠陥補正装置により行われる欠陥補正処理について説明する。図5および図6は欠陥補正処理の第1の手法を示すフローチャートである。
[1-4. First Method of Defect Correction Processing]
Next, the defect correction process performed by the defect correction apparatus will be described. 5 and 6 are flowcharts showing a first method of defect correction processing.
まずステップS101で、欠陥補正装置が適用される撮像装置のシャッタを閉じて、L画像、R画像がともに黒画像となるようにする。これにより、欠陥のない画素では画素レベルの値として0レベルが得られ、欠陥画素では画素レベルの値として0レベルより大きな値が得られることとなる。これにより、欠陥画素を検出することができる。 First, in step S101, the shutter of the imaging apparatus to which the defect correction apparatus is applied is closed so that both the L image and the R image become black images. As a result, a pixel level value of 0 is obtained for a pixel without a defect, and a pixel level value greater than 0 level is obtained for a defective pixel. Thereby, a defective pixel can be detected.
次にステップS102で、L側欠陥検出部111は、画素レベルに対する閾値である第1閾値でL画像全体をスキャンし、L画像を構成する全ての画素のうち、第1閾値を超えるレベルを有する画素を検出する。そして、その結果から第1L側マップを作成する。第1L側マップはL画像において第1閾値を超える欠陥画素の位置を示すL側欠陥画素情報に相当するものである。
Next, in step S102, the L-side
また、ステップS103で、R側欠陥検出部121は、画素レベルに対する閾値である第1閾値でR画像全体をスキャンし、R画像を構成する全ての画素のうち、第1閾値を超えるレベルを有する画素を検出する。そして、その結果から第1R側マップを作成する。第1R側マップはR画像において第1閾値を超える欠陥画素の位置を示すR側欠陥画素情報に相当するものである。なお、L画像をスキャンする際に用いる第1閾値とR画像をスキャンする際に用いられる第1閾値とは同じ値である。
In step S103, the R-side
次にステップS104で、L側欠陥検出部111は、画素レベルに対する閾値である第2閾値でL画像全体をスキャンし、L画像を構成する全ての画素のうち、第2閾値を超えるレベルを有する画素を検出する。そして、その結果から第2L側マップを作成する。第2L側マップもL画像において第2閾値を超える欠陥画素の位置を示すL側欠陥画素情報に相当するものである。なお、第2閾値は上述した第1閾値よりも小さい値に設定されている。
Next, in step S104, the L-side
またステップS105で、R側欠陥検出部121は、画素レベルに対する閾値である第2閾値でR画像を全体をスキャンし、R画像を構成する全ての画素のうち、第2閾値を超えるレベルを有する画素を検出する。そして、その結果から第2R側マップを作成する。第2R側マップもR画像において第2閾値を超える欠陥画素の位置を示すR側欠陥画素情報に相当するものである。なお、L画像をスキャンする際に用いる第2閾値とR画像をスキャンする際に用いられる第2閾値とは同じ値である。
In step S105, the R-side
L側欠陥画素情報である第1L側マップ、第2L側マップは欠陥領域検出部130およびL側補正範囲設定部113に供給される。また、R側欠陥画素情報である第1R側マップ、第2R側マップは欠陥領域検出部130およびR側補正範囲設定部123に供給される。
The first L-side map and the second L-side map, which are L-side defective pixel information, are supplied to the defective
なお、L側欠陥検出部111とR側欠陥検出部121による処理は並列的に行われる。
また、ステップS102乃至ステップS105を行う順序は上述した順序に限られるものではなく順不同である。第2閾値によるスキャンを第1閾値によるスキャンよりも先に行ってもよい。
In addition, the process by the L side
In addition, the order in which Steps S102 to S105 are performed is not limited to the order described above, and the order is not limited. The scan based on the second threshold may be performed before the scan based on the first threshold.
次にステップS106で、欠陥領域検出部130は、第1L側マップに表された第1閾値を越えたレベルを有する画素(第1欠陥画素と称する。)から一つを抽出する。次にステップS107で、第2L側マップを参照して、第2閾値を越えた画素(第2欠陥画素と称する。)の中に第1欠陥画素に隣接する画素が存在するか否かを判定することにより、隣接する複数の欠陥画素からなる「欠陥領域」を検出する。隣接する欠陥画素が存在する場合には処理はステップS108に進む(ステップS107のYes)。検出結果を示すL側欠陥領域情報はL側補正範囲設定部113に供給される。
Next, in step S106, the defective
そしてステップS108で、L側補正範囲設定部113は、L側欠陥領域情報に基づいて、第1閾値超え画素に隣接すると判定された第2閾値超え画素の位置を第1L側マップに追加する。このステップS108は、第2閾値超え画素のうち第1閾値超え画素に隣接するものと、第1閾値超え画素とを一つのマップにまとめようとする処理である。これにより、第1画素と、第1画素に隣接する第2画素とにより構成される欠陥領域が補正範囲として設定される。
In step S108, the L-side correction
そして、処理はステップS109に進む。なお、ステップS107で、隣接する画素が存在しないと判定された場合も処理もステップS109に進む(ステップS107のNo)。 Then, the process proceeds to step S109. If it is determined in step S107 that there is no adjacent pixel, the process also proceeds to step S109 (No in step S107).
次にステップS109で、欠陥補正装置は、第1L側マップの全ての第1欠陥画素について上記ステップS106乃至ステップS108の処理が行われたか否かを判定する。全ての第1欠陥画素について処理が行われていない場合には処理はステップS106に進む(ステップS109のNo)。そして、第1L側マップの全ての第1欠陥画素について処理が行われるまでステップS106乃至ステップS109が繰り返される。第1L側マップの全ての第1欠陥画素について上記ステップS106乃至ステップS108の処理が行われた場合、処理はステップS110に進む(ステップS109のYes)。 Next, in step S109, the defect correction apparatus determines whether or not the processing in steps S106 to S108 has been performed for all the first defective pixels in the first L-side map. If all the first defective pixels have not been processed, the process proceeds to step S106 (No in step S109). Then, Steps S106 to S109 are repeated until processing is performed for all the first defective pixels in the first L-side map. When the processes in steps S106 to S108 have been performed for all the first defective pixels in the first L-side map, the process proceeds to step S110 (Yes in step S109).
次にステップS110で、欠陥領域検出部130は、第1R側マップに表された第1閾値を越えたレベルを有する画素(第1欠陥画素と称する。)から一つを抽出する。次にステップS111で、第2R側マップを参照して、第2閾値を越えた画素(第2欠陥画素と称する。)の中に第1欠陥画素に隣接する画素が存在するか否かを判定することにより、隣接する複数の欠陥画素からなる「欠陥領域」を検出する。隣接する欠陥画素が存在する場合には処理はステップS112に進む(ステップS110のYes)。検出結果を示す欠陥領域情報はR側補正範囲設定部123に供給される。
Next, in step S110, the defective
そして、ステップS110で、R側補正範囲設定部123は、R側欠陥領域情報に基づいて、第1閾値超え画素に隣接すると判定された第2閾値超え画素の位置を第1R側マップに追加する。このステップS110は、第2閾値超え画素のうち第1閾値超え画素に隣接するものと、第1閾値超え画素とを一つのマップにまとめようとする処理である。これにより、第1画素と、第1画素に隣接する第2画素とにより構成される欠陥領域が補正範囲として設定される。
In step S110, the R-side correction
そして、処理はステップS113に進む。なお、ステップS111で、隣接する画素が存在しないと判定された場合も処理もステップS113に進む(ステップS111のNo)。 Then, the process proceeds to step S113. In addition, also when it determines with the adjacent pixel not existing by step S111, a process also progresses to step S113 (No of step S111).
次にステップS113で、欠陥補正装置100は、第1R側マップの全ての第1欠陥画素について上記ステップS110乃至ステップS112の処理が行われたか否かを判定する。全ての第1欠陥画素について処理が行われていない場合には処理はステップS110に進む(ステップS113のNo)。そして、第1R側マップの全ての第1欠陥画素について処理が行われるまでステップS110乃至ステップS113が繰り返される。
Next, in step S113, the
ステップS113で、第1R側マップの全ての第1欠陥画素について上記ステップS110乃至ステップS112の処理が行われたと判定された場合、処理はステップS114に進む。 If it is determined in step S113 that the processes in steps S110 to S112 have been performed for all the first defective pixels in the first R-side map, the process proceeds to step S114.
次にステップS114で、L側補正範囲設定部113は、欠陥領域検出部130から供給された欠陥領域情報に示されるR画像の欠陥領域を第1L側マップに追加する。次にステップS115で、R側補正範囲設定部123は、欠陥領域検出部130から供給された欠陥領域情報に示されるL画像の欠陥領域を第1R側マップに追加する。これにより、第1L側マップおよび第1R側マップにそれぞれみなし欠陥領域が追加されることとなる。なお、欠陥領域がない場合にはこの処理は行われない。
In step S114, the L-side correction
以上の処理により作成された第1L側マップがL画像において欠陥補正が行われる範囲を示したL側補正範囲情報となる。第1L側マップはL側補正範囲設定部113からL側欠陥補正部112に供給される。また、以上の処理により作成された第1R側マップがRが像において欠陥補正が行われる範囲を示したR側補正範囲情報となる。第1R側マップはR側補正範囲設定部123からR側欠陥補正部122に供給される。
The first L-side map created by the above processing becomes L-side correction range information indicating a range in which defect correction is performed on the L image. The first L-side map is supplied from the L-side correction
そしてステップS116で、L側欠陥補正部112は第1L側マップに基づいてL画像の欠陥補正を行う。また、ステップS117で、R側欠陥補正部122は第1R側マップに基づいてR画像の欠陥補正を行う。
In step S116, the L-side
第1L側マップには、L画像の欠陥画素、欠陥領域、さらにR画像における欠陥領域に対応するみなし欠陥領域が表されている。また、第1R側マップにはR画像の欠陥画素、欠陥領域、さらにL画像における欠陥領域に対応するみなし欠陥領域が表されている。よって、L側欠陥補正部112が第1L側マップに基づいて欠陥補正を行うことにより、L画像ではL画像の欠陥画素と、L画像の欠陥領域と、R画像の欠陥領域に対応するみなし欠陥領域について補正が行われる。同様に、R側欠陥補正部122が第1R側マップに基づいて補正を行うことにより、R画像ではR画像の欠陥画素とR画像の欠陥領域とL画像の欠陥領域に対応するみなし欠陥領域について補正が行われる。これにより、上述した図2に示されるような欠陥補正が行うことができる。
In the first L-side map, a defective pixel and a defective area in the L image, and further, a deemed defective area corresponding to the defective area in the R image are represented. Further, the first R-side map shows a defective pixel and a defective area of the R image, and an assumed defective area corresponding to the defective area of the L image. Therefore, when the L-side
このように、欠陥補正の第1の手法では、第1閾値と、第1閾値より小さな値である第2閾値とを用いる。これにより、第1閾値のみでは孤立した欠陥画素であっても、第2閾値以上の画素レベルの欠陥画素を組み合わせることにより、複数の欠陥画素からなる大きな面積を有する欠陥領域を検出することが可能となる。 Thus, in the first method of defect correction, the first threshold value and the second threshold value that is smaller than the first threshold value are used. Thereby, even if the defective pixel is isolated only by the first threshold, it is possible to detect a defective area having a large area composed of a plurality of defective pixels by combining defective pixels having a pixel level equal to or higher than the second threshold. It becomes.
[1−5.欠陥補正処理の第2の手法]
次に、欠陥補正処理の第2の手法について説明する。図7および図8は、欠陥補正処理の第2の手法を示すフローチャートである。なお、ステップS101乃至ステップS117については第1の手法と同様であるため、説明を省略する。第2の手法は、ステップS201とステップS202を行う点で第1の手法と相違する。
[1-5. Second Method of Defect Correction Processing]
Next, a second method of defect correction processing will be described. 7 and 8 are flowcharts showing a second method of defect correction processing. Steps S101 to S117 are the same as those in the first method, and thus description thereof is omitted. The second method is different from the first method in that step S201 and step S202 are performed.
ステップS201で、L側補正範囲設定部113は、L画像とR画像の視差量を算出し、その視差量に応じて、第1L側マップのみなし欠陥領域に水平値を加算し、みなし欠陥領域の位置を視差量分ずらす。なお、視差とは、L画像とR画像の各々に含まれる近景被写体の水平方向の位置の差として定義される。視差が大きくなるほど、3D表示される被写体の奥行きが深くなる、すなわち、凹凸の度合いが強くなる。また、視差は、近景のL画像上での画像左端からの距離から、近景のR画像上での画像左端からの距離を引いた差として定義することも可能である。
In step S201, the L-side correction
同様に、ステップS202で、R側補正範囲設定部123は、L画像とR画像の視差量を算出し、その視差量に応じて、第1R側マップのみなし欠陥領域に水平値を加算し、みなし欠陥領域の位置を視差量分ずらす。
Similarly, in step S202, the R-side correction
ここで、上述した第2の手法における上述の処理による効果について図9を参照して説明する。図9上段は第2の手法を適用していないL画像10およびR画像20を示すものである。図9下段は第2の手法の適用したL画像10およびR画像20を示すものである。
Here, the effect of the above-described processing in the above-described second method will be described with reference to FIG. The upper part of FIG. 9 shows the
3D映像を構成するL画像10とR画像20とでは視差が生じる。近景撮影など、ピントが合っている被写体が近い場合には視差は大きくなる。視差が大きくなると、図9に示されるように、被写体(図9においては星)30の画像中における位置はL画像10とR画像20とで視差の分ずれている。
There is a parallax between the
この状態において、図9のL画像10に示されるように、被写体(星)30に重なるように欠陥領域40が存在する場合、その欠陥領域40の位置をそのままR画像に対応させてR画像20におけるみなし欠陥領域50とすると、R画像20においてはみなし欠陥領域50が星には重ならないこととなる。
In this state, as shown in the
この状態で、L画像10およびR画像20に欠陥補正処理を施すと、L画像10の被写体(星)30に重なった欠陥領域40の補正が行われる。しかし、R画像20においては、みなし欠陥領域50は被写体(星)30に重なっていないため、被写体(星)30上の領域は欠陥補正されない。そうすると、被写体(星)30にL画像10とR画像20とで差異が生じて、3Dの立体感が損なわれることとなる。
When defect correction processing is performed on the
そこで、図9下段に示されるように、視差量の分、みなし欠陥領域50をずらすことにより、視差のズレが解消されて、L画像10、R画像20共に、被写体(星)30上で欠陥補正が行われることになる。これにより、L画像10とR画像20とで差異が生じることを防ぐことができる。なお、欠陥画素がピントがあっていない背景などに重なっている場合にはこの第2の手法は用いる必要はない。
Therefore, as shown in the lower part of FIG. 9, the disparity shift is eliminated by shifting the deemed
[1−6.欠陥補正処理の第3の手法]
次に、欠陥補正処理の第3の手法について説明する。まずステップS301で、欠陥補正装置を備える撮像装置のシャッタを閉じて、L、Rともに黒画面とする。これにより、L画像、R画像ともに黒画像となり、欠陥のない画素では画素レベルの値として0レベルが得られ、欠陥画素では画素レベル値として0レベルより大きな値が得られることとなる。これにより、欠陥画素を検出することができる。
[1-6. Third Method of Defect Correction Processing]
Next, a third method of defect correction processing will be described. First, in step S301, the shutter of the image pickup apparatus provided with the defect correction apparatus is closed to make both L and R black screens. As a result, both the L image and the R image are black images, and a pixel level value of 0 is obtained for a pixel having no defect, and a pixel level value greater than 0 level is obtained for a defective pixel. Thereby, a defective pixel can be detected.
次にステップS302で、L側欠陥検出部111は、L画像全体をスキャンし、L画像を構成する全ての画素のうち、画素レベルが0以上である画素を検出する。そして、その結果から第3L側マップを作成する。画素レベルが0以上である画素を欠陥画素とする。第3L側マップはL画像における欠陥画素の位置を示すL側欠陥画素情報に相当するものである。
Next, in step S302, the L-side
次にステップS303で、R側欠陥検出部121は、R画像全体をスキャンし、R画像を構成する全ての画素のうち、画素レベルが0以上である画素を検出する。そして、その結果から第1R側マップを作成する。画素レベルが0以上である画素が欠陥画素である。第3R側マップはR画像における欠陥画素の位置を示すR側欠陥画素情報に相当するものである。
Next, in step S303, the R-side
次にステップS304で、欠陥領域検出部130は、第1L側マップに基づいてL画像において欠陥画素が所定数以上隣接している領域(以下、欠陥領域と称する。)を検出する。所定数とは例えば、「2×2(4個)」、「3×3(9個)」、「4×4(16個)」などである。検出されたL側欠陥領域を示すL側欠陥領域情報は、欠陥領域検出部130からL側補正範囲設定部113およびR側補正範囲設定部123に供給される。
Next, in step S304, the defective
この所定数は、例えば、視差に応じて設定されるようにするとよい。例えば、撮像装置200のズーム倍率、フォーカス位置などに応じて設定されるようにしてもよい。例えば、フォーカス位置、ズーム倍率などに基づいて総合的に近景撮影か、遠景撮影かを判断し、近景の場合には視差が大きいとして「4×4(16個)」以上にする。一方、遠景場合には視差が小さいとして「2×2(4個)」にする、などである。
For example, the predetermined number may be set according to the parallax. For example, it may be set according to the zoom magnification, the focus position, and the like of the
これは、遠景に比べて近景は視差が大きくなるため、L画像、R画像でわずかにでも相違点がある、その相違点により3Dの立体感を損なわせてしまうおそれがあるからである。よって、近景の場合には遠景の場合に比べて欠陥領域として検出する画素の個数(言い換えると欠陥領域の面積)を少なくして、少量の欠陥画素が隣接している領域も欠陥領域としてL画像、R画像で補正する必要がある。 This is because the near view has a larger parallax than the distant view, and therefore there is a slight difference between the L image and the R image, and the difference may impair the 3D stereoscopic effect. Therefore, in the case of a foreground, the number of pixels detected as a defect area (in other words, the area of the defect area) is reduced compared to the case of a distant view, and an area adjacent to a small number of defective pixels is also regarded as an L image. It is necessary to correct with the R image.
次にステップS305で、欠陥領域検出部130は、同様に第1R側マップに基づいてR画像における欠陥領域の検出を行う。検出されたR側欠陥領域を示すR側欠陥領域情報は、欠陥領域検出部130からR側補正範囲設定部123およびL側補正範囲設定部113に供給される。
Next, in step S305, the defective
次にステップS306で、L側補正範囲設定部113は、R画像の欠陥領域をみなし欠陥領域として第3L側マップに追加する。補正範囲情報である第3L側マップはL側補正範囲設定部113からL側欠陥補正部112に供給される。
In step S306, the L-side correction
また、ステップS307で、R側補正範囲設定部123は、L画像の欠陥領域を第3R側マップに追加する。補正範囲情報である第3R側マップはR側補正範囲設定部123からR側欠陥補正部122に供給される。
In step S307, the R-side correction
そして、ステップS308で、L側欠陥補正部112は第3L側マップに基づいてL画像の欠陥補正を行う。また、ステップS309で、R側欠陥補正部122は第3R側マップに基づいてR画像の欠陥補正を行う。
In step S308, the L-side
第3L側マップには、L画像の欠陥画素、欠陥領域、さらにR画像における欠陥領域に対応したみなし欠陥領域が表されている。また、第3R側マップにはR画像の欠陥画素、欠陥領域、さらにL画像における欠陥領域に対応したみなし欠陥領域が表されている。よって、L側欠陥補正部112が第3L側マップに基づいて補正を行うことにより、L画像ではL画像の欠陥画素と欠陥領域、さらにR画像の欠陥領域に対応するみなし欠陥領域について補正が行われる。同様に、R側欠陥補正部122が第3R側マップに基づいて補正を行うことにより、R画像ではR画像の欠陥画素と欠陥領域、さらにL画像の欠陥領域に対応するみなし欠陥領域について補正が行われる。これにより、上述した図2に示されるような欠陥補正が行われることとなる。
In the third L-side map, a defective pixel in the L image, a defective region, and an assumed defective region corresponding to the defective region in the R image are represented. In addition, the third R-side map shows a defective pixel in the R image, a defective region, and an assumed defective region corresponding to the defective region in the L image. Therefore, when the L-side
<2.変形例>
以上、本技術の一実施の形態について具体的に説明したが、本技術は上述の実施形態に限定されるものではなく、本技術の技術的思想に基づく各種の変形が可能である。
<2. Modification>
Although one embodiment of the present technology has been specifically described above, the present technology is not limited to the above-described embodiment, and various modifications based on the technical idea of the present technology are possible.
本技術は3D画像の撮影機能を持つ2眼のデジタルスチルカメラ、3Dの動画撮影が可能な2眼おデジタルビデオカメラにも適用することが可能である。 The present technology can also be applied to a two-lens digital still camera having a 3D image shooting function and a two-lens digital video camera capable of shooting a 3D moving image.
なお、本技術は以下のような構成も取ることができる。 In addition, this technique can also take the following structures.
(1)第1の画像における欠陥画素を検出する第1の欠陥検出部と、
第2の画像における欠陥画素を検出する第2の欠陥検出部と、
前記第1の画像において、前記第1の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出するとともに、前記第2の画像において、前記第2の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出する欠陥領域検出部と、
前記第1の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第1の画像において欠陥補正を行う範囲を設定する第1の補正範囲設定部と、
前記第2の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第2の画像において欠陥補正を行う範囲を設定する第2の補正範囲設定部と、
前記第1の補正範囲設定部により設定された補正範囲に基づいて前記第1の画像の欠陥補正処理を行う第1の欠陥補正部と、
前記第2の補正範囲設定部により設定された補正範囲に基づいて前記第2の画像の欠陥補正処理を行う第2の欠陥補正部と
を備える
欠陥補正装置。
(1) a first defect detection unit that detects defective pixels in the first image;
A second defect detector for detecting defective pixels in the second image;
In the first image, a defect area constituted by the defective pixels detected by the first defect detection unit is detected, and in the second image, detected by the second defect detection unit. A defect area detector for detecting a defect area constituted by the defective pixels;
A first correction range setting unit that sets a range for performing defect correction in the first image based on a detection result by the first defect detection unit and a detection result by the defect region detection unit;
A second correction range setting unit that sets a range for performing defect correction in the second image based on a detection result by the second defect detection unit and a detection result by the defect region detection unit;
A first defect correction unit that performs a defect correction process on the first image based on the correction range set by the first correction range setting unit;
A defect correction apparatus comprising: a second defect correction unit that performs defect correction processing on the second image based on the correction range set by the second correction range setting unit.
(2)前記欠陥領域検出部は、隣接する複数の欠陥画素からなる領域を前記欠陥領域として検出する
前記(1)に記載の欠陥補正装置。
(2) The defect correction apparatus according to (1), wherein the defect area detection unit detects an area including a plurality of adjacent defective pixels as the defect area.
(3)前記第1の補正範囲設定部は、さらに、前記欠陥領域検出部により検出された前記第2の画像における前記欠陥領域に基づいて欠陥補正を行う範囲を設定する
前記(1)または(2)に記載の欠陥補正装置。
(3) The first correction range setting unit further sets a range in which defect correction is performed based on the defect region in the second image detected by the defect region detection unit. The defect correction apparatus as described in 2).
(4)前記第1の補正範囲設定部は、前記第1の画像における欠陥画素と、前記欠陥領域検出部により検出された前記第1の画像における前記欠陥領域と、前記欠陥領域検出部により検出された前記第2の画像の前記欠陥領域に対応する範囲を前記第1の画像において欠陥補正を行う範囲として設定する
前記(1)から(3)のいずれかに記載の欠陥補正装置。
(4) The first correction range setting unit is detected by the defective pixel in the first image, the defective region in the first image detected by the defective region detection unit, and the defective region detection unit. The defect correction apparatus according to any one of (1) to (3), wherein a range corresponding to the defect area of the second image is set as a range for performing defect correction in the first image.
(5)前記第1の欠陥画素検出部は、第1の閾値と前記第1の画像の画素レベルとを比較し、さらに、前記第1の閾値より小さい値に設定された第2の閾値と前記第1の画像の画素レベルとを比較し、前記第1の閾値または前記第2の閾値以上画素レベルを有する画素を欠陥画素として検出し、
前記欠陥領域検出部は、前記第1の閾値以上の画素レベルを有する欠陥画素と、該第1の閾値以上の画素レベルを有する欠陥画素に隣接する前記第2の閾値以上の画素レベルを有する欠陥画素からなる領域を前記欠陥領域として検出する
前記(1)から(4)のいずれかに記載の欠陥補正装置。
(5) The first defective pixel detection unit compares a first threshold value with a pixel level of the first image, and further sets a second threshold value set to a value smaller than the first threshold value. Comparing the pixel level of the first image, detecting a pixel having a pixel level equal to or higher than the first threshold or the second threshold as a defective pixel;
The defective area detection unit includes a defective pixel having a pixel level equal to or higher than the first threshold and a defect having a pixel level equal to or higher than the second threshold adjacent to the defective pixel having a pixel level equal to or higher than the first threshold. The defect correction apparatus according to any one of (1) to (4), wherein an area including pixels is detected as the defect area.
(6)前記第1の補正範囲設定部は、前記第1の画像における、前記欠陥領域検出部により検出された前記第2の画像の前記欠陥領域に対応する範囲を、前記第1の画像と前記第2の画像の視差の分ずらして欠陥補正を行う範囲を設定する
前記(1)から(5)のいずれかに記載の欠陥補正装置。
(6) The first correction range setting unit defines a range corresponding to the defect area of the second image detected by the defect area detection unit in the first image as the first image. The defect correction apparatus according to any one of (1) to (5), wherein a range in which defect correction is performed by shifting the parallax of the second image is set.
(7)前記第2の補正範囲設定部は、さらに、前記欠陥領域検出部により検出された前記第1の画像における前記欠陥領域に基づいて欠陥補正を行う範囲を設定する
前記(1)から(6)のいずれかに記載の欠陥補正装置。
(7) The second correction range setting unit further sets a range for performing defect correction based on the defect region in the first image detected by the defect region detection unit. 6) The defect correction apparatus in any one of.
(8)前記第2の補正範囲設定部は、前記第2の画像における欠陥画素と、前記欠陥領域検出部により検出された前記第2の画像における前記欠陥領域と、前記欠陥領域検出部により検出された前記第1の画像の前記欠陥領域に対応する範囲を前記第2の画像において欠陥補正を行う範囲として設定する
前記(1)から(7)のいずれかに記載の欠陥補正装置。
(8) The second correction range setting unit is detected by the defective pixel in the second image, the defective region in the second image detected by the defective region detection unit, and the defective region detection unit. The defect correction apparatus according to any one of (1) to (7), wherein a range corresponding to the defect area of the first image is set as a range for performing defect correction in the second image.
(9)前記第2の欠陥画素検出部は、第1の閾値と前記第2の画像の画素レベルとを比較し、さらに、前記第1の閾値より小さい値に設定された第2の閾値と前記第2の画像の画素レベルとを比較し、前記第1の閾値または前記第2の閾値以上画素レベルを有する画素を欠陥画素として検出し、
前記欠陥領域検出部は、前記第1の閾値以上の画素レベルを有する欠陥画素と、該第1の閾値以上の画素レベルを有する欠陥画素に隣接する前記第2の閾値以上の画素レベルを有する欠陥画素からなる領域を前記欠陥領域として検出する
前記(1)から(8)のいずれかに記載の欠陥補正装置。
(9) The second defective pixel detection unit compares a first threshold value with a pixel level of the second image, and further, a second threshold value set to a value smaller than the first threshold value, A pixel level of the second image is compared, and a pixel having a pixel level equal to or higher than the first threshold value or the second threshold value is detected as a defective pixel;
The defective area detection unit includes a defective pixel having a pixel level equal to or higher than the first threshold and a defect having a pixel level equal to or higher than the second threshold adjacent to the defective pixel having a pixel level equal to or higher than the first threshold. The defect correction apparatus according to any one of (1) to (8), wherein an area including pixels is detected as the defect area.
(10)前記第2の補正範囲設定部は、前記第2の画像における、前記欠陥領域検出部により検出された前記第1の画像の前記欠陥領域に対応する範囲を、前記第1の画像と前記第2の画像の視差の分ずらして欠陥補正を行う範囲を設定する
前記(1)から(9)のいずれかに記載の欠陥補正装置。
(10) The second correction range setting unit defines a range corresponding to the defect area of the first image detected by the defect area detection unit in the second image as the first image. The defect correction apparatus according to any one of (1) to (9), wherein a range in which defect correction is performed by shifting the parallax of the second image is set.
(11)第1の画像における欠陥画素を検出し、
第2の画像における欠陥画素を検出し、
前記第1の画像において検出された前記欠陥画素により構成される欠陥領域を検出するとともに、前記第2の画像において検出された前記欠陥画素により構成される欠陥領域を検出し、
前記第1の画像において検出された前記欠陥画素および検出された前記欠陥領域に基づいて前記第1の画像において欠陥補正を行う範囲を設定し、
前記第2の画像において検出された前記欠陥画素および検出された前記欠陥領域に基づいて前記第2の画像において欠陥補正を行う範囲を設定し、
設定された補正範囲に基づいて前記第1の画像について欠陥補正処理を行い、
設定された補正範囲に基づいて前記第2の画像について欠陥補正処理を行う
欠陥補正方法。
(11) detecting defective pixels in the first image;
Detecting defective pixels in the second image;
Detecting a defective area constituted by the defective pixels detected in the first image, and detecting a defective area constituted by the defective pixels detected in the second image;
Setting a range for performing defect correction in the first image based on the defective pixel detected in the first image and the detected defect area;
Setting a range for performing defect correction in the second image based on the defective pixel detected in the second image and the detected defect area;
Perform defect correction processing on the first image based on the set correction range,
A defect correction method for performing defect correction processing on the second image based on a set correction range.
(12)光学系を介した光を受光して第1の画像を生成する第1の撮像部と、
光学系を介した光を受光して第2の画像を生成する第2の撮像部と、
前記第1の画像における欠陥画素を検出する第1の欠陥検出部と、
前記第2の画像における欠陥画素を検出する第2の欠陥検出部と、
前記第1の画像において、前記第1の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出するとともに、前記第2の画像において、前記第2の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出する欠陥領域検出部と、
前記第1の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第1の画像において欠陥補正を行う範囲を設定する第1の補正範囲設定部と、
前記第2の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第2の画像において欠陥補正を行う範囲を設定する第2の補正範囲設定部と、
前記第1の補正範囲設定部により設定された補正範囲に基づいて前記第1の画像の欠陥補正処理を行う第1の欠陥補正部と、
前記第2の補正範囲設定部により設定された補正範囲に基づいて前記第2の画像の欠陥補正処理を行う第2の欠陥補正部と
を備える
を備える撮像装置。
(12) a first imaging unit that receives light through the optical system and generates a first image;
A second imaging unit that receives light via the optical system and generates a second image;
A first defect detection unit for detecting defective pixels in the first image;
A second defect detector for detecting defective pixels in the second image;
In the first image, a defect area constituted by the defective pixels detected by the first defect detection unit is detected, and in the second image, detected by the second defect detection unit. A defect area detector for detecting a defect area constituted by the defective pixels;
A first correction range setting unit that sets a range for performing defect correction in the first image based on a detection result by the first defect detection unit and a detection result by the defect region detection unit;
A second correction range setting unit that sets a range for performing defect correction in the second image based on a detection result by the second defect detection unit and a detection result by the defect region detection unit;
A first defect correction unit that performs a defect correction process on the first image based on the correction range set by the first correction range setting unit;
An imaging apparatus comprising: a second defect correction unit that performs defect correction processing of the second image based on the correction range set by the second correction range setting unit.
100・・・・欠陥補正装置
111・・・・L側欠陥検出部
112・・・・L側欠陥補正部
113・・・・L側補正範囲設定部
121・・・・R側欠陥検出部
122・・・・R側欠陥補正部
123・・・・R側補正範囲設定部
130・・・・欠陥領域検出部
200・・・・撮像装置
212・・・・L側撮像素子
222・・・・R側撮像素子
100...
Claims (12)
第2の画像における欠陥画素を検出する第2の欠陥検出部と、
前記第1の画像において、前記第1の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出するとともに、前記第2の画像において、前記第2の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出する欠陥領域検出部と、
前記第1の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第1の画像において欠陥補正を行う範囲を設定する第1の補正範囲設定部と、
前記第2の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第2の画像において欠陥補正を行う範囲を設定する第2の補正範囲設定部と、
前記第1の補正範囲設定部により設定された補正範囲に基づいて前記第1の画像の欠陥補正処理を行う第1の欠陥補正部と、
前記第2の補正範囲設定部により設定された補正範囲に基づいて前記第2の画像の欠陥補正処理を行う第2の欠陥補正部と
を備える
欠陥補正装置。 A first defect detector for detecting defective pixels in the first image;
A second defect detector for detecting defective pixels in the second image;
In the first image, a defect area constituted by the defective pixels detected by the first defect detection unit is detected, and in the second image, detected by the second defect detection unit. A defect area detector for detecting a defect area constituted by the defective pixels;
A first correction range setting unit that sets a range for performing defect correction in the first image based on a detection result by the first defect detection unit and a detection result by the defect region detection unit;
A second correction range setting unit that sets a range for performing defect correction in the second image based on a detection result by the second defect detection unit and a detection result by the defect region detection unit;
A first defect correction unit that performs a defect correction process on the first image based on the correction range set by the first correction range setting unit;
A defect correction apparatus comprising: a second defect correction unit that performs defect correction processing on the second image based on the correction range set by the second correction range setting unit.
請求項1に記載の欠陥補正装置。 The defect correction apparatus according to claim 1, wherein the defect area detection unit detects an area including a plurality of adjacent defective pixels as the defect area.
請求項1に記載の欠陥補正装置。 The defect correction apparatus according to claim 1, wherein the first correction range setting unit further sets a range in which defect correction is performed based on the defect region in the second image detected by the defect region detection unit. .
請求項3に記載の欠陥補正装置。 The first correction range setting unit includes a defective pixel in the first image, the defective region in the first image detected by the defective region detection unit, and the defect region detected by the defective region detection unit. The defect correction apparatus according to claim 3, wherein a range corresponding to the defect area of the second image is set as a range in which defect correction is performed in the first image.
前記欠陥領域検出部は、前記第1の閾値以上の画素レベルを有する欠陥画素と、該第1の閾値以上の画素レベルを有する欠陥画素に隣接する前記第2の閾値以上の画素レベルを有する欠陥画素からなる領域を前記欠陥領域として検出する
請求項2に記載の欠陥補正装置。 The first defective pixel detection unit compares a first threshold value with a pixel level of the first image, and further, a second threshold value set to a value smaller than the first threshold value and the first threshold value. A pixel level of the first image or the second threshold value is detected as a defective pixel.
The defective area detection unit includes a defective pixel having a pixel level equal to or higher than the first threshold and a defect having a pixel level equal to or higher than the second threshold adjacent to the defective pixel having a pixel level equal to or higher than the first threshold. The defect correction apparatus according to claim 2, wherein an area composed of pixels is detected as the defect area.
請求項1に記載の欠陥補正装置。 The first correction range setting unit sets a range corresponding to the defect area of the second image detected by the defect area detection unit in the first image, as the first image and the second image. The defect correction apparatus according to claim 1, wherein a range in which defect correction is performed by shifting the amount of parallax of the image is set.
請求項1に記載の欠陥補正装置。 The defect correction apparatus according to claim 1, wherein the second correction range setting unit further sets a range in which defect correction is performed based on the defect region in the first image detected by the defect region detection unit. .
請求項7に記載の欠陥補正装置。 The second correction range setting unit includes a defective pixel in the second image, the defective region in the second image detected by the defective region detection unit, and the defect region detected by the defective region detection unit. The defect correction apparatus according to claim 7, wherein a range corresponding to the defect area of the first image is set as a range in which defect correction is performed in the second image.
前記欠陥領域検出部は、前記第1の閾値以上の画素レベルを有する欠陥画素と、該第1の閾値以上の画素レベルを有する欠陥画素に隣接する前記第2の閾値以上の画素レベルを有する欠陥画素からなる領域を前記欠陥領域として検出する
請求項2に記載の欠陥補正装置。 The second defective pixel detection unit compares the first threshold value with the pixel level of the second image, and further compares the second threshold value set to a value smaller than the first threshold value and the second threshold value. A pixel level of the first image or the second threshold value is detected as a defective pixel.
The defective area detection unit includes a defective pixel having a pixel level equal to or higher than the first threshold and a defect having a pixel level equal to or higher than the second threshold adjacent to the defective pixel having a pixel level equal to or higher than the first threshold. The defect correction apparatus according to claim 2, wherein an area composed of pixels is detected as the defect area.
請求項1に記載の欠陥補正装置。 The second correction range setting unit sets a range corresponding to the defect area of the first image detected by the defect area detection unit in the second image, as the first image and the second image. The defect correction apparatus according to claim 1, wherein a range in which defect correction is performed by shifting the amount of parallax of the image is set.
第2の画像における欠陥画素を検出し、
前記第1の画像において検出された前記欠陥画素により構成される欠陥領域を検出するとともに、前記第2の画像において検出された前記欠陥画素により構成される欠陥領域を検出し、
前記第1の画像において検出された前記欠陥画素および検出された前記欠陥領域に基づいて前記第1の画像において欠陥補正を行う範囲を設定し、
前記第2の画像において検出された前記欠陥画素および検出された前記欠陥領域に基づいて前記第2の画像において欠陥補正を行う範囲を設定し、
設定された補正範囲に基づいて前記第1の画像について欠陥補正処理を行い、
設定された補正範囲に基づいて前記第2の画像について欠陥補正処理を行う
欠陥補正方法。 Detecting defective pixels in the first image;
Detecting defective pixels in the second image;
Detecting a defective area constituted by the defective pixels detected in the first image, and detecting a defective area constituted by the defective pixels detected in the second image;
Setting a range for performing defect correction in the first image based on the defective pixel detected in the first image and the detected defect area;
Setting a range for performing defect correction in the second image based on the defective pixel detected in the second image and the detected defect area;
Perform defect correction processing on the first image based on the set correction range,
A defect correction method for performing defect correction processing on the second image based on a set correction range.
光学系を介した光を受光して第2の画像を生成する第2の撮像部と、
前記第1の画像における欠陥画素を検出する第1の欠陥検出部と、
前記第2の画像における欠陥画素を検出する第2の欠陥検出部と、
前記第1の画像において、前記第1の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出するとともに、前記第2の画像において、前記第2の欠陥検出部により検出された前記欠陥画素により構成される欠陥領域を検出する欠陥領域検出部と、
前記第1の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第1の画像において欠陥補正を行う範囲を設定する第1の補正範囲設定部と、
前記第2の欠陥検出部による検出結果および前記欠陥領域検出部による検出結果に基づいて前記第2の画像において欠陥補正を行う範囲を設定する第2の補正範囲設定部と、
前記第1の補正範囲設定部により設定された補正範囲に基づいて前記第1の画像の欠陥補正処理を行う第1の欠陥補正部と、
前記第2の補正範囲設定部により設定された補正範囲に基づいて前記第2の画像の欠陥補正処理を行う第2の欠陥補正部と
を備える
を備える撮像装置。 A first imaging unit that receives light via the optical system and generates a first image;
A second imaging unit that receives light via the optical system and generates a second image;
A first defect detection unit for detecting defective pixels in the first image;
A second defect detector for detecting defective pixels in the second image;
In the first image, a defect area constituted by the defective pixels detected by the first defect detection unit is detected, and in the second image, detected by the second defect detection unit. A defect area detector for detecting a defect area constituted by the defective pixels;
A first correction range setting unit that sets a range for performing defect correction in the first image based on a detection result by the first defect detection unit and a detection result by the defect region detection unit;
A second correction range setting unit that sets a range for performing defect correction in the second image based on a detection result by the second defect detection unit and a detection result by the defect region detection unit;
A first defect correction unit that performs a defect correction process on the first image based on the correction range set by the first correction range setting unit;
An imaging apparatus comprising: a second defect correction unit that performs defect correction processing of the second image based on the correction range set by the second correction range setting unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011242517A JP2013098920A (en) | 2011-11-04 | 2011-11-04 | Defect correction device, defect correction method, and imaging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011242517A JP2013098920A (en) | 2011-11-04 | 2011-11-04 | Defect correction device, defect correction method, and imaging device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013098920A true JP2013098920A (en) | 2013-05-20 |
Family
ID=48620378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011242517A Pending JP2013098920A (en) | 2011-11-04 | 2011-11-04 | Defect correction device, defect correction method, and imaging device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013098920A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20240004756A (en) | 2021-06-17 | 2024-01-11 | 니뽄 다바코 산교 가부시키가이샤 | Flavor molded body and method for producing the same, method for producing tobacco materials, and method for producing tobacco products |
-
2011
- 2011-11-04 JP JP2011242517A patent/JP2013098920A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20240004756A (en) | 2021-06-17 | 2024-01-11 | 니뽄 다바코 산교 가부시키가이샤 | Flavor molded body and method for producing the same, method for producing tobacco materials, and method for producing tobacco products |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5502205B2 (en) | Stereo imaging device and stereo imaging method | |
JP5284306B2 (en) | Stereoscopic imaging device, ghost image processing device, and ghost image processing method | |
JP6351231B2 (en) | IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM | |
JP5871989B2 (en) | Imaging apparatus, imaging method, and program | |
US20150181106A1 (en) | Imaging apparatus and focus control method | |
US10484612B2 (en) | Image pickup apparatus, image pickup method, and Storage medium for picking up a plurality of images different in in-focus positions | |
JP5572700B2 (en) | Imaging apparatus and imaging method | |
JP2012058464A (en) | Imaging system and pixel signal reading method | |
JP5657184B2 (en) | Imaging apparatus and signal processing method | |
KR20090081345A (en) | Dust detection system and digital camera | |
JP6415140B2 (en) | Imaging apparatus and control method thereof | |
WO2013069445A1 (en) | Three-dimensional imaging device and image processing method | |
JP6230760B1 (en) | Imaging apparatus, image processing apparatus, image processing method, and image processing program | |
JP2009044637A (en) | Imaging apparatus | |
JP2012133185A (en) | Imaging apparatus | |
JP2010206521A (en) | Image capturing apparatus, method of correcting image, and program | |
JP2010135984A (en) | Compound-eye imaging apparatus and imaging method | |
JP5595505B2 (en) | Stereo imaging device and stereo imaging method | |
JP2010154311A (en) | Compound-eye imaging device and method of obtaining stereoscopic image | |
JP5387341B2 (en) | Imaging device | |
JP2013098920A (en) | Defect correction device, defect correction method, and imaging device | |
JP5904886B2 (en) | Imaging apparatus, defect processing method, defect processing program, and electronic information device | |
JP2014003417A (en) | Image pickup device | |
WO2015182021A1 (en) | Image pickup control apparatus, image pickup apparatus, and image pickup control method | |
WO2012165087A1 (en) | Image capture device and ghosting correction method |