JP2013098920A - Defect correction device, defect correction method, and imaging device - Google Patents

Defect correction device, defect correction method, and imaging device Download PDF

Info

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
Application number
JP2011242517A
Other languages
Japanese (ja)
Inventor
Takashi Kitagawa
剛史 北川
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2011242517A priority Critical patent/JP2013098920A/en
Publication of JP2013098920A publication Critical patent/JP2013098920A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a defect correction device, a defect correction method, and an imaging device with which defect correction is performed on two images composing a 3D image without impairing a stereoscopic effect.SOLUTION: A defect correction device detects each defective pixel in a first image, detects each defective pixel in a second image, detects a defective area composed of the defective pixel detected in the first image, detects a defective area composed of the defective pixel detected in the second image, sets a range, in which defect correction is to be performed in the first image, based on the defective pixel detected in the first image and the detected defective area, sets a range, in which defect correction is to be performed in the second image, based on the defective pixel detected in the second image and the detected defective area, performs defect correction processing on the first image, based on the set correction range, and performs defect correction processing on the second image, based on the set correction range.

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.

特開2009−290653号公報JP 2009-290653 A

しかし、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は、従来技術を欠陥補正に適用した場合の問題点を説明するための図である。FIG. 1 is a diagram for explaining a problem when the conventional technique is applied to defect correction. 図2は、本技術に係る欠陥補正装置によって行われる欠陥補正の概要を示す説明図である。FIG. 2 is an explanatory diagram illustrating an outline of defect correction performed by the defect correction apparatus according to the present technology. 図3は、欠陥補正装置の構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of the defect correction apparatus. 図4は、本技術の係る欠陥補正装置を備える撮像装置の構成を示すブロック図である。FIG. 4 is a block diagram illustrating a configuration of an imaging apparatus including the defect correction apparatus according to the present technology. 図5は、欠陥補正装置により行われる欠陥補正処理の第1の手法を示すフローチャートである。FIG. 5 is a flowchart showing a first method of defect correction processing performed by the defect correction apparatus. 図6は、欠陥補正処理の第1の手法を示すフローチャートである。FIG. 6 is a flowchart showing a first method of defect correction processing. 図7は、欠陥補正装置により行われる欠陥補正処理の第2の手法を示すフローチャートである。FIG. 7 is a flowchart showing a second method of defect correction processing performed by the defect correction apparatus. 図8は、欠陥補正処理の第2の手法を示すフローチャートである。FIG. 8 is a flowchart showing a second method of defect correction processing. 図9は、欠陥補正処理の第2の手法による効果を説明するための図である。FIG. 9 is a diagram for explaining the effect of the second method of the defect correction process. 図10は、欠陥補正装置により行われる欠陥補正処理の第3の手法を示すフローチャートである。FIG. 10 is a flowchart showing a third method of defect correction processing performed by the defect correction apparatus.

以下、本技術の実施の形態について図面を参照しながら説明する。ただし、本技術は以下の実施の形態のみに限定されるものではない。なお、説明は以下の順序で行う。
<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 L image 10 and the R image 20 before the defect correction process is performed. 1 shows the L image 10 and the R image 20 after defect correction. The squares in each image represent pixels. In the upper part of FIG. 1, black pixels represent defective pixels. Furthermore, in the lower part of FIG. 1, pixels with diagonal lines represent pixels that have been subjected to correction processing.

図1に示されるようにL画像10には複数の小さな欠陥11、11、11と、隣接する複数の欠陥画素からなる大きな欠陥(以下、隣接する複数の欠陥画素からなり、所定サイズ以上のサイズを有する領域を欠陥領域と称する。)である欠陥領域12があり、R画像20には複数の小さな欠陥21、21、21がある。   As shown in FIG. 1, the L image 10 includes a plurality of small defects 11, 11, 11 and a large defect composed of a plurality of adjacent defective pixels (hereinafter, composed of a plurality of adjacent defective pixels and having a size equal to or larger than a predetermined size). The defect area 12 is called a defect area.) The R image 20 has a plurality of small defects 21, 21, 21.

通常の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 L image 10 and the R image 20 photographed by a two-lens imaging device for 3D photographing, the L image 10 and the R image 20 are independent of each other. The defect correction process is performed. When defect correction processing is performed independently on each of the L image 10 and the R image 20 shown in the upper part of FIG. 1, the image is shown in the lower part of FIG.

図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 small defect 11 in the L image 10 is corrected, and the small defect 21 in the R image 20 is also corrected. Further, since the L image 10 has a defect area 12 which is a large defect, the defect area 12 is also corrected. Since there is no defect area in the R image 20, defect correction is not performed in a range 22 corresponding to a large defect in the L image 10 in the R image 20.

そうすると、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 L image 10 and the R image 20 have a large difference between the defect area 12 of the L image 10 and the range 22 corresponding to the defect area of the L image in the R image. In the 3D image, a slight difference between the L image and the R image greatly affects the 3D stereoscopic effect. Therefore, as shown in the lower part of FIG. 1, if there is a large difference between the L image 10 and the R image 20, The three-dimensional effect will be impaired. Note that even if small defects are individually corrected for the L image and the R image, there is little risk of impairing the 3D stereoscopic effect due to the size.

そこで、本技術に係る欠陥補正装置では、図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 L image 10 and the R image 20 before the defect correction process is performed. In the lower part of FIG. 2, the L image 10 and the R image 20 after defect correction are shown in the lower part.

本技術係る欠陥補正装置においても、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 image 10 and the R image 20 for small defects that are considered to be less likely to impair the 3D stereoscopic effect. On the other hand, the defect area 12 composed of a plurality of adjacent defective pixels existing in the L image 10 has a large area. Therefore, when defect correction is performed only on the L image, there is a large difference between the L image 10 and the R image 20. May occur and the 3D stereoscopic effect may be impaired.

そこで、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 defect area 12 of the L image 10 and, as shown in the lower part of FIG. 2, the area 23 corresponding to the defect area of the L image in the R image 20 is also regarded as a defect area and is similarly corrected. I do. This is performed even when there is no defective pixel at a position corresponding to the defective area 12 of the L image 10 in the R image 20. As a result, since the defect correction is performed at the same position in the L image and the R image, it is possible to prevent the 3D stereoscopic effect from being impaired due to a large difference between the L image 10 and the R image 20. It becomes possible. In addition, although there is no defect in this way, a range that is regarded as a defect region and is subject to defect correction is referred to as a “deemed defect region”.

上記説明はL画像10の欠陥領域12に対応する範囲をR画像中のみなし欠陥領域とする、と説明したが、逆も同様であり、R画像20に欠陥領域がある場合にはそれに対応する範囲がL画像中でみなし欠陥領域となる。   In the above description, the range corresponding to the defect area 12 of the L image 10 is defined as a defect area only in the R image, but the reverse is also true, and if the R image 20 has a defect area, it corresponds to that. The range becomes a deemed defect area in the L image.

[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 defect correction apparatus 100 according to the present technology. The defect correction apparatus 100 is mounted and used, for example, in an optical imaging system such as an imager, a two-lens imaging apparatus having a 3D image shooting function that includes two image engines for the L side and for the R side. It is done.

欠陥補正装置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 defect correction apparatus 100 includes an L-side defect detection unit 111, an L-side defect correction unit 112, an L-side correction range setting unit 113, an R-side defect detection unit 121, an R-side defect correction unit 122, an R-side correction range setting unit 123, The defect area detection unit 130 is configured. These are realized by, for example, a circuit, an IC (Integrated Circuit), a microcomputer or the like having the function. Further, it comprises a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), etc., and the CPU executes various processes according to programs stored in the ROM, thereby realizing the functions of the respective units. You may do it.

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 defect detection unit 111 and the L-side defect correction unit 112. An R image, which is a right-eye image, is input to the R-side defect detection unit 121 and the R-side defect correction unit 122. For example, the L image is an image generated by an optical imaging system and an image sensor for taking an L image, and the R image is an image generated by an optical imaging system and an image sensor for taking an R image, for example.

光学撮像系は、被写体からの光を撮像素子に集光するためのレンズ、レンズを移動させてフォーカス合わせやズーミングを行うための駆動機構、シャッタ機構、アイリス機構などから構成されている。光学撮像系を介して得られた被写体の光画像は、撮像素子上に結像される。   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 imaging element 12 is output to the L-side defect detection unit 111 and the L-side defect correction unit 112. As the image sensor, a charge coupled device (CCD), a complementary metal oxide semiconductor (CMOS), or the like is used.

L側欠陥検出部111は、L画像を生成する撮像素子において発生する欠陥を検出するものである。欠陥の検出方法としては、種々の公知の検出方法を採用することができる。例えば、検出対象である画素と、その画素の周囲8方向の画素の平均値との比較を行い、その平均値から所定量離間している場合に検出対象の画素は欠陥画素として判定する、という方法がある。   The L-side defect detection unit 111 detects a defect that occurs in an image sensor that generates an L image. Various known detection methods can be employed as the defect detection method. For example, the pixel to be detected is compared with the average value of the pixels in the eight directions around the pixel, and the pixel to be detected is determined as a defective pixel when it is separated from the average value by a predetermined amount. There is a way.

また、工場等からの出荷前に撮像素子に対してテストを行い、テストの結果得られた全ての欠陥画素のアドレスを不揮発性メモリ(図示せず。)に格納し、そのアドレスに基づいて欠陥画素を検出するという方法もある。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 defect detection unit 121 detects a defect that occurs in an image sensor that generates an R image.

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 defect detection unit 111 is supplied to the L-side correction range setting unit 113 and the defect area detection unit 130. The R-side defect pixel information detected by the R-side defect detection unit 121 is supplied to the R-side correction range setting unit 123 and the defect area detection unit 130.

欠陥領域検出部130は、L側欠陥検出部111から供給された欠陥画素情報に基づいて、L画像において隣接する複数の欠陥画素によって構成される領域を検出する。L画像において隣接する複数の欠陥画素によって構成される領域をL側欠陥領域と称する。また、R側欠陥検出部121から供給された欠陥画素情報に基づいてR画像において隣接する複数の欠陥画素によって構成される領域を検出する。R画像において隣接する複数の欠陥画素によって構成される領域をR側欠陥領域と称する。欠陥領域の検出の詳細については後述する。   The defective area detection unit 130 detects an area constituted by a plurality of adjacent defective pixels in the L image based on the defective pixel information supplied from the L-side defect detection unit 111. A region constituted by a plurality of adjacent defective pixels in the L image is referred to as an L-side defective region. Further, based on the defective pixel information supplied from the R-side defect detection unit 121, a region constituted by a plurality of adjacent defective pixels in the R image is detected. A region constituted by a plurality of adjacent defective pixels in the R image is referred to as an R-side defective region. Details of the defect area detection will be described later.

欠陥領域検出部130は、L画像およびR画像における欠陥領域の位置を示す欠陥領域情報をL側補正範囲設定部113とR側補正範囲設定部123に供給する。   The defect area detection unit 130 supplies defect area information indicating the position of the defect area in the L image and the R image to the L side correction range setting unit 113 and the R side correction range setting unit 123.

L側補正範囲設定部113は、L側欠陥検出部111からの欠陥画素情報および欠陥領域検出部130からの欠陥領域情報に基づいて、L画像における欠陥補正を行う範囲を設定するものである。L画像における補正範囲を示すL側補正範囲情報はL側欠陥補正部112に供給される。   The L-side correction range setting unit 113 sets a range for performing defect correction in the L image based on the defective pixel information from the L-side defect detection unit 111 and the defect region information from the defect region detection unit 130. L-side correction range information indicating a correction range in the L image is supplied to the L-side defect correction unit 112.

R側補正範囲設定部123は、R側欠陥検出部121からの欠陥画素情報および欠陥領域検出部130からの欠陥領域情報に基づいて、R画像における欠陥補正を行う範囲を設定するものである。R画像における補正範囲を示すR側補正範囲情報はR側欠陥補正部122に供給される。なお、欠陥補正を行う範囲決定の詳細については後述する。   The R-side correction range setting unit 123 sets a range for performing defect correction in the R image based on the defective pixel information from the R-side defect detection unit 121 and the defect region information from the defect region detection unit 130. R-side correction range information indicating the correction range in the R image is supplied to the R-side defect correction unit 122. The details of determining the range for defect correction will be described later.

L側欠陥補正部112は、L側補正範囲設定部113から供給された補正範囲情報に基づいてL画像に対して補正処理を行うものである。補正処理としては種々の公知の補正方法を用いることができる。例えば、欠陥画素である補正対象画素と、その補正対象画素の周囲8方向の正常な画素の平均値とを置き換えることにより行われる。L側欠陥補正部112により欠陥補正処理が施された画像信号、例えば、撮像装置200のカメラ処理部などに供給される。   The L-side defect correction unit 112 performs correction processing on the L image based on the correction range information supplied from the L-side correction range setting unit 113. As the correction process, various known correction methods can be used. For example, the correction is performed by replacing a correction target pixel that is a defective pixel with an average value of normal pixels in eight directions around the correction target pixel. An image signal that has been subjected to defect correction processing by the L-side defect correction unit 112, for example, a camera processing unit of the imaging apparatus 200 is supplied.

R側欠陥補正部122は、R側補正範囲設定部123から供給された補正範囲情報に基づいてR画像に対して補正処理を行うものである。欠陥補正が施されたL画像およびR画像は欠陥補正装置が適用された撮像装置のカメラ処理部などに供給される。以上のようにして欠陥補正装置が構成されている。   The R-side defect correction unit 122 performs correction processing on the R image based on the correction range information supplied from the R-side correction range setting unit 123. The L image and the R image that have been subjected to defect correction are supplied to a camera processing unit or the like of an imaging apparatus to which the defect correction apparatus is applied. The defect correcting apparatus is configured as described above.

[1−3.欠陥補正装置を備える撮像装置の構成]
上述のように構成された欠陥補正装置100は、イメージャなどの光学撮像系、画像エンジンなどを左目用と右目用とで2つずつ備える3D画像の撮影機能を持つ2眼の撮像装置200に搭載されて用いられる。図4は欠陥補正装置の機能を備え、3D撮影機能を持つ撮像装置200の構成を示すブロック図である。
[1-3. Configuration of imaging apparatus including defect correction apparatus]
The defect correction apparatus 100 configured as described above is mounted on a two-lens imaging apparatus 200 having a 3D image capturing function including two optical imaging systems, such as an imager, and two image engines for the left eye and the right eye. To be used. FIG. 4 is a block diagram illustrating a configuration of an imaging apparatus 200 having a defect correction apparatus function and a 3D imaging function.

撮像装置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 imaging apparatus 200 includes an L-side optical imaging system 211, an L-side imaging element 212, an L-side timing generator 213, an L-side preprocessing circuit 214, and an L-side camera processing circuit 215 for taking an L image. In addition, an R-side optical imaging system 221 for capturing an R image, an R-side imaging element 222, an R-side timing generator 223, an R-side preprocessing circuit 224, and an R-side camera processing circuit 225 are provided. Furthermore, a control unit 231, a 3D image compression unit 232, a storage unit 233, a display unit 234, and an input unit 235 are provided.

また、欠陥補正装置を構成する、L側欠陥検出部111、L側欠陥補正部112、L側補正範囲設定部113、R側欠陥検出部121、R側欠陥補正部122、R側補正範囲設定部123、欠陥領域検出部130も備える。   Further, the L-side defect detection unit 111, the L-side defect correction unit 112, the L-side correction range setting unit 113, the R-side defect detection unit 121, the R-side defect correction unit 122, and the R-side correction range setting that constitute the defect correction apparatus. Part 123 and defective area detection part 130 are also provided.

L側光学撮像系211は、被写体からの光を撮像素子に集光するためのレンズ、レンズを移動させてフォーカス合わせやズーミングを行うための駆動機構、シャッタ機構、アイリス機構などから構成されている。これらは制御部231からの制御信号に基づいて駆動される。L側光学撮像系211を介して得られた被写体の光画像は、撮像デバイスとしてのL側撮像素子212上に結像される。   The L-side optical imaging system 211 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. . These are driven based on a control signal from the control unit 231. The optical image of the subject obtained through the L-side optical imaging system 211 is formed on the L-side imaging element 212 as an imaging device.

L側撮像素子212は、L側タイミングジェネレータ213から出力されるタイミング信号に基づいて駆動され、被写体からの入射光を光電変換して電荷量に変換し、画像信号として出力する。L側撮像素子212から出力される画像信号はL側欠陥補正部112およびL側欠陥検出部111に供給される。L側撮像素子212としては、CCD、CMOSなどが用いられる。L側タイミングジェネレータ213は、制御部231の制御に従いL側撮像素子212に対してタイミング信号を出力する。   The L-side image sensor 212 is driven based on the timing signal output from the L-side timing generator 213, photoelectrically converts incident light from the subject, converts it into a charge amount, and outputs it as an image signal. The image signal output from the L-side image sensor 212 is supplied to the L-side defect correction unit 112 and the L-side defect detection unit 111. As the L-side image sensor 212, a CCD, a CMOS, or the like is used. The L-side timing generator 213 outputs a timing signal to the L-side image sensor 212 under the control of the control unit 231.

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 defect correction unit 112 is supplied to the L-side preprocessing circuit 214. The L-side preprocessing circuit 214 performs sample holding on the image signal so as to maintain a good S / N (Signal / Noise) ratio by CDS (Correlated Double Sampling) processing. Furthermore, the gain is controlled by AGC (Auto Gain Control) processing, A / D (Analog / Digital) conversion is performed, and digital image data is output.

L側カメラ処理回路215は、前処理回路からの画像データに対して、ホワイトバランス調整処理や色補正処理、ガンマ補正処理、Y/C変換処理、AE(Auto Exposure)処理などの信号処理を施す。L側カメラ処理回路215により所定の処理が施された画像データは3D画像圧縮部232に供給される。   The L-side camera processing circuit 215 performs signal processing such as white balance adjustment processing, color correction processing, gamma correction processing, Y / C conversion processing, and AE (Auto Exposure) processing on the image data from the preprocessing circuit. . Image data that has undergone predetermined processing by the L-side camera processing circuit 215 is supplied to the 3D image compression unit 232.

R画像を撮影するためのR側光学撮像系221、R側撮像素子222、R側タイミングジェネレータ223、R側前処理回路224、R側カメラ処理回路225は上述したL画像を撮影するための構成と同様のものであるためその説明を省略する。   An R-side optical imaging system 221, an R-side imaging element 222, an R-side timing generator 223, an R-side preprocessing circuit 224, and an R-side camera processing circuit 225 for capturing an R image are configured to capture the above-described L image. The explanation is omitted because it is the same as.

制御部231は、例えばCPU、RAMおよびROMなどから構成されている。ROMには、CPUにより読み込まれ動作されるプログラムなどが記憶されている。RAMは、CPUのワークメモリとして用いられる。CPUは、ROMに記憶されたプログラムに従い様々な処理を実行してコマンドの発行を行うことによって撮像装置200全体の制御を行う。また、制御部231は所定のプログラムを実行することにより、L側補正範囲設定部113、R側補正範囲設定部123および欠陥領域検出部130として機能する。   The control unit 231 includes, for example, a CPU, a RAM, and a ROM. The ROM stores a program that is read and operated by the CPU. The RAM is used as a work memory for the CPU. The CPU controls the entire imaging apparatus 200 by executing various processes in accordance with programs stored in the ROM and issuing commands. The control unit 231 also functions as an L-side correction range setting unit 113, an R-side correction range setting unit 123, and a defective area detection unit 130 by executing a predetermined program.

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 image compression unit 232 are respectively compressed by the 3D image compression unit 232, stored in one 3D image file, and finally stored in the storage unit 233. The 3D image file may include object distance information, parallax information, and information related to the convergence angle, etc., together with the 3D compressed image data. The storage unit 233 is a mass storage medium such as a hard disk or a nonvolatile memory.

表示部234は、例えば、LCD(Liquid Crystal Display)、PDP(Plasma Display Panel)、有機EL(Electro Luminescence)パネルなどにより構成された表示手段である。表示部234には、撮像中のスルー画、記憶部233に記録された画像などが表示される。   The display unit 234 is a display unit configured by, for example, an LCD (Liquid Crystal Display), a PDP (Plasma Display Panel), an organic EL (Electro Luminescence) panel, or the like. The display unit 234 displays a through image being captured, an image recorded in the storage unit 233, and the like.

入力部235は、例えば、電源オン/オフ切り替えのための電源ボタン、撮像画像の記録の開始を指示するためのレリーズボタン、ズーム調整用の操作子、表示部234と一体に構成されたタッチスクリーンなどからなる入力手段である。入力部235に対して入力がなされると、その入力に応じた制御信号が生成されて制御部231に出力される。そして、制御部231はその制御信号に対応した演算処理や制御を行う。   The input unit 235 includes, for example, a power button for switching power on / off, a release button for instructing start of recording of a captured image, an operator for zoom adjustment, and a touch screen configured integrally with the display unit 234. It is an input means consisting of. When an input is made to the input unit 235, a control signal corresponding to the input is generated and output to the control unit 231. Then, the control unit 231 performs arithmetic processing and control corresponding to the control signal.

なお、図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 side pre-processing circuit 214 and the L side camera processing circuit 215 after the defect correction process is performed by the L side defect correction unit 112. Yes. However, the configuration is not limited thereto, and defect correction by the L-side defect correction unit 112 may be performed on the L image after processing by the L-side preprocessing circuit 214 and the L-side camera processing circuit 215. . The same applies to the R-side defect correction unit 122.

[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 defect detection unit 111 scans the entire L image with a first threshold that is a threshold for the pixel level, and has a level that exceeds the first threshold among all the pixels constituting the L image. Detect a pixel. And the 1st L side map is created from the result. The first L-side map corresponds to L-side defective pixel information indicating the position of the defective pixel exceeding the first threshold in the L image.

また、ステップS103で、R側欠陥検出部121は、画素レベルに対する閾値である第1閾値でR画像全体をスキャンし、R画像を構成する全ての画素のうち、第1閾値を超えるレベルを有する画素を検出する。そして、その結果から第1R側マップを作成する。第1R側マップはR画像において第1閾値を超える欠陥画素の位置を示すR側欠陥画素情報に相当するものである。なお、L画像をスキャンする際に用いる第1閾値とR画像をスキャンする際に用いられる第1閾値とは同じ値である。   In step S103, the R-side defect detection unit 121 scans the entire R image with a first threshold that is a threshold with respect to the pixel level, and has a level exceeding the first threshold among all the pixels constituting the R image. Detect a pixel. And the 1st R side map is created from the result. The first R-side map corresponds to R-side defective pixel information indicating the position of the defective pixel exceeding the first threshold in the R image. The first threshold used when scanning the L image and the first threshold used when scanning the R image are the same value.

次にステップS104で、L側欠陥検出部111は、画素レベルに対する閾値である第2閾値でL画像全体をスキャンし、L画像を構成する全ての画素のうち、第2閾値を超えるレベルを有する画素を検出する。そして、その結果から第2L側マップを作成する。第2L側マップもL画像において第2閾値を超える欠陥画素の位置を示すL側欠陥画素情報に相当するものである。なお、第2閾値は上述した第1閾値よりも小さい値に設定されている。   Next, in step S104, the L-side defect detection unit 111 scans the entire L image with a second threshold that is a threshold with respect to the pixel level, and has a level exceeding the second threshold among all the pixels constituting the L image. Detect a pixel. And the 2nd L side map is created from the result. The second L-side map also corresponds to L-side defective pixel information indicating the position of the defective pixel exceeding the second threshold in the L image. Note that the second threshold is set to a value smaller than the first threshold described above.

またステップS105で、R側欠陥検出部121は、画素レベルに対する閾値である第2閾値でR画像を全体をスキャンし、R画像を構成する全ての画素のうち、第2閾値を超えるレベルを有する画素を検出する。そして、その結果から第2R側マップを作成する。第2R側マップもR画像において第2閾値を超える欠陥画素の位置を示すR側欠陥画素情報に相当するものである。なお、L画像をスキャンする際に用いる第2閾値とR画像をスキャンする際に用いられる第2閾値とは同じ値である。   In step S105, the R-side defect detection unit 121 scans the entire R image with a second threshold that is a threshold with respect to the pixel level, and has a level exceeding the second threshold among all the pixels constituting the R image. Detect a pixel. Then, a second R side map is created from the result. The second R-side map also corresponds to R-side defective pixel information indicating the position of the defective pixel exceeding the second threshold in the R image. Note that the second threshold value used when scanning the L image and the second threshold value used when scanning the R image are the same value.

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 area detection unit 130 and the L-side correction range setting unit 113. The first R-side map and the second R-side map, which are R-side defective pixel information, are supplied to the defective area detection unit 130 and the R-side correction range setting unit 123.

なお、L側欠陥検出部111とR側欠陥検出部121による処理は並列的に行われる。
また、ステップS102乃至ステップS105を行う順序は上述した順序に限られるものではなく順不同である。第2閾値によるスキャンを第1閾値によるスキャンよりも先に行ってもよい。
In addition, the process by the L side defect detection part 111 and the R side defect detection part 121 is performed in parallel.
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 area detection unit 130 extracts one pixel from a pixel (referred to as a first defective pixel) having a level exceeding the first threshold value represented in the first L-side map. Next, in step S107, it is determined whether or not there is a pixel adjacent to the first defective pixel among the pixels exceeding the second threshold (referred to as a second defective pixel) with reference to the second L-side map. As a result, a “defect region” composed of a plurality of adjacent defective pixels is detected. If there is an adjacent defective pixel, the process proceeds to step S108 (Yes in step S107). The L-side defect area information indicating the detection result is supplied to the L-side correction range setting unit 113.

そしてステップS108で、L側補正範囲設定部113は、L側欠陥領域情報に基づいて、第1閾値超え画素に隣接すると判定された第2閾値超え画素の位置を第1L側マップに追加する。このステップS108は、第2閾値超え画素のうち第1閾値超え画素に隣接するものと、第1閾値超え画素とを一つのマップにまとめようとする処理である。これにより、第1画素と、第1画素に隣接する第2画素とにより構成される欠陥領域が補正範囲として設定される。   In step S108, the L-side correction range setting unit 113 adds, to the first L-side map, the position of the pixel exceeding the second threshold determined to be adjacent to the pixel exceeding the first threshold based on the L-side defect area information. This step S108 is a process in which pixels adjacent to the first threshold-exceeded pixel among the pixels exceeding the second threshold and the first threshold-exceeded pixel are combined into one map. As a result, a defect area constituted by the first pixel and the second pixel adjacent to the first pixel is set as the correction range.

そして、処理はステップ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 area detection unit 130 extracts one pixel from a pixel (referred to as a first defective pixel) having a level exceeding the first threshold value represented in the first R-side map. Next, in step S111, it is determined whether or not a pixel adjacent to the first defective pixel exists among pixels exceeding the second threshold (referred to as a second defective pixel) with reference to the second R-side map. As a result, a “defect region” composed of a plurality of adjacent defective pixels is detected. If there is an adjacent defective pixel, the process proceeds to step S112 (Yes in step S110). The defective area information indicating the detection result is supplied to the R-side correction range setting unit 123.

そして、ステップS110で、R側補正範囲設定部123は、R側欠陥領域情報に基づいて、第1閾値超え画素に隣接すると判定された第2閾値超え画素の位置を第1R側マップに追加する。このステップS110は、第2閾値超え画素のうち第1閾値超え画素に隣接するものと、第1閾値超え画素とを一つのマップにまとめようとする処理である。これにより、第1画素と、第1画素に隣接する第2画素とにより構成される欠陥領域が補正範囲として設定される。   In step S110, the R-side correction range setting unit 123 adds, to the first R-side map, the position of the pixel exceeding the second threshold determined to be adjacent to the pixel exceeding the first threshold based on the R-side defect area information. . This step S110 is processing that attempts to combine the pixels that are adjacent to the pixel exceeding the first threshold among the pixels exceeding the second threshold and the pixels exceeding the first threshold into one map. As a result, a defect area constituted by the first pixel and the second pixel adjacent to the first pixel is set as the correction range.

そして、処理はステップ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 defect correction apparatus 100 determines whether or not the processing in steps S110 to S112 has been performed on all the first defective pixels in the first R-side map. If all the first defective pixels have not been processed, the process proceeds to step S110 (No in step S113). Then, Steps S110 to S113 are repeated until processing is performed for all the first defective pixels in the first R-side map.

ステップ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 range setting unit 113 adds the defect area of the R image indicated in the defect area information supplied from the defect area detection unit 130 to the first L-side map. In step S115, the R-side correction range setting unit 123 adds the defect area of the L image indicated by the defect area information supplied from the defect area detection unit 130 to the first R-side map. Thereby, a deemed defect area is added to each of the first L-side map and the first R-side map. Note that this process is not performed when there is no defective area.

以上の処理により作成された第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 range setting unit 113 to the L-side defect correction unit 112. Further, the first R-side map created by the above processing becomes R-side correction range information indicating a range in which R is subjected to defect correction in the image. The first R-side map is supplied from the R-side correction range setting unit 123 to the R-side defect correction unit 122.

そしてステップS116で、L側欠陥補正部112は第1L側マップに基づいてL画像の欠陥補正を行う。また、ステップS117で、R側欠陥補正部122は第1R側マップに基づいてR画像の欠陥補正を行う。   In step S116, the L-side defect correction unit 112 corrects the defect of the L image based on the first L-side map. In step S117, the R-side defect correction unit 122 corrects the defect of the R image based on the first R-side map.

第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 defect correction unit 112 performs defect correction based on the first L-side map, in the L image, the defect pixel of the L image, the defect region of the L image, and the deemed defect corresponding to the defect region of the R image. Correction is performed for the region. Similarly, when the R-side defect correction unit 122 performs correction based on the first R-side map, in the R image, regarding the defective pixel of the R image, the defective region of the R image, and the assumed defective region corresponding to the defective region of the L image. Correction is performed. Thereby, the defect correction as shown in FIG. 2 can be performed.

このように、欠陥補正の第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 range setting unit 113 calculates the amount of parallax between the L image and the R image, adds a horizontal value to the non-defect area only in the first L-side map according to the amount of parallax, and regards the assumed defect area. Is shifted by the amount of parallax. Note that the parallax is defined as the difference in the horizontal position of the foreground subject included in each of the L image and the R image. As the parallax increases, the depth of the subject displayed in 3D increases, that is, the degree of unevenness increases. The parallax can also be defined as a difference obtained by subtracting the distance from the left end of the image on the R image in the foreground from the distance from the left end of the image on the L image in the foreground.

同様に、ステップS202で、R側補正範囲設定部123は、L画像とR画像の視差量を算出し、その視差量に応じて、第1R側マップのみなし欠陥領域に水平値を加算し、みなし欠陥領域の位置を視差量分ずらす。   Similarly, in step S202, the R-side correction range setting unit 123 calculates the amount of parallax between the L image and the R image, and adds a horizontal value to the non-existent defective area only in the first R-side map according to the amount of parallax, The position of the deemed defect area is shifted by the amount of parallax.

ここで、上述した第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 L image 10 and the R image 20 to which the second method is not applied. The lower part of FIG. 9 shows the L image 10 and the R image 20 to which the second method is applied.

3D映像を構成するL画像10とR画像20とでは視差が生じる。近景撮影など、ピントが合っている被写体が近い場合には視差は大きくなる。視差が大きくなると、図9に示されるように、被写体(図9においては星)30の画像中における位置はL画像10とR画像20とで視差の分ずれている。   There is a parallax between the L image 10 and the R image 20 constituting the 3D video. The parallax increases when the subject in focus is close, such as foreground photography. When the parallax increases, as shown in FIG. 9, the position of the subject (star in FIG. 9) in the image is shifted by the amount of parallax between the L image 10 and the R image 20.

この状態において、図9のL画像10に示されるように、被写体(星)30に重なるように欠陥領域40が存在する場合、その欠陥領域40の位置をそのままR画像に対応させてR画像20におけるみなし欠陥領域50とすると、R画像20においてはみなし欠陥領域50が星には重ならないこととなる。   In this state, as shown in the L image 10 of FIG. 9, when the defective region 40 exists so as to overlap the subject (star) 30, the position of the defective region 40 is directly associated with the R image and the R image 20. In the R image 20, the deemed defect area 50 does not overlap the star.

この状態で、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 L image 10 and the R image 20 in this state, the defect area 40 that overlaps the subject (star) 30 of the L image 10 is corrected. However, in the R image 20, since the deemed defect area 50 does not overlap the subject (star) 30, the area on the subject (star) 30 is not corrected for defects. Then, a difference occurs between the L image 10 and the R image 20 on the subject (star) 30, and the 3D stereoscopic effect is impaired.

そこで、図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 defect area 50 by the amount of parallax, and both the L image 10 and the R image 20 are defective on the subject (star) 30. Correction will be performed. Thereby, it is possible to prevent a difference between the L image 10 and the R image 20. Note that this second method need not be used when a defective pixel overlaps an unfocused background or the like.

[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 defect detection unit 111 scans the entire L image and detects a pixel having a pixel level of 0 or more among all the pixels constituting the L image. Then, a third L side map is created from the result. A pixel having a pixel level of 0 or more is defined as a defective pixel. The third L-side map corresponds to L-side defective pixel information indicating the position of the defective pixel in the L image.

次にステップS303で、R側欠陥検出部121は、R画像全体をスキャンし、R画像を構成する全ての画素のうち、画素レベルが0以上である画素を検出する。そして、その結果から第1R側マップを作成する。画素レベルが0以上である画素が欠陥画素である。第3R側マップはR画像における欠陥画素の位置を示すR側欠陥画素情報に相当するものである。   Next, in step S303, the R-side defect detection unit 121 scans the entire R image and detects pixels having a pixel level of 0 or more among all the pixels constituting the R image. And the 1st R side map is created from the result. A pixel having a pixel level of 0 or more is a defective pixel. The third R-side map corresponds to R-side defective pixel information indicating the position of the defective pixel in the R image.

次にステップ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 area detection unit 130 detects an area (hereinafter referred to as a defective area) in which a predetermined number or more of defective pixels are adjacent in the L image based on the first L-side map. The predetermined number is, for example, “2 × 2 (4)”, “3 × 3 (9)”, “4 × 4 (16)”, and the like. The L-side defect area information indicating the detected L-side defect area is supplied from the defect area detection unit 130 to the L-side correction range setting unit 113 and the R-side correction range setting unit 123.

この所定数は、例えば、視差に応じて設定されるようにするとよい。例えば、撮像装置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 imaging apparatus 200. For example, based on the focus position, zoom magnification, etc., it is comprehensively determined whether the near-field shooting or the far-field shooting is performed, and in the case of a foreground, the parallax is large and is set to “4 × 4 (16)” or more. On the other hand, in the case of a distant view, the parallax is small and “2 × 2 (four)” is set.

これは、遠景に比べて近景は視差が大きくなるため、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 area detection unit 130 similarly detects a defective area in the R image based on the first R-side map. The R-side defect area information indicating the detected R-side defect area is supplied from the defect area detection unit 130 to the R-side correction range setting unit 123 and the L-side correction range setting unit 113.

次にステップS306で、L側補正範囲設定部113は、R画像の欠陥領域をみなし欠陥領域として第3L側マップに追加する。補正範囲情報である第3L側マップはL側補正範囲設定部113からL側欠陥補正部112に供給される。   In step S306, the L-side correction range setting unit 113 regards the defective area of the R image as a defective area and adds it to the third L-side map. The third L-side map that is correction range information is supplied from the L-side correction range setting unit 113 to the L-side defect correction unit 112.

また、ステップS307で、R側補正範囲設定部123は、L画像の欠陥領域を第3R側マップに追加する。補正範囲情報である第3R側マップはR側補正範囲設定部123からR側欠陥補正部122に供給される。   In step S307, the R-side correction range setting unit 123 adds the defect area of the L image to the third R-side map. The third R-side map that is correction range information is supplied from the R-side correction range setting unit 123 to the R-side defect correction unit 122.

そして、ステップS308で、L側欠陥補正部112は第3L側マップに基づいてL画像の欠陥補正を行う。また、ステップS309で、R側欠陥補正部122は第3R側マップに基づいてR画像の欠陥補正を行う。   In step S308, the L-side defect correction unit 112 corrects the defect of the L image based on the third L-side map. In step S309, the R-side defect correction unit 122 corrects the defect of the R image based on the third R-side map.

第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 defect correction unit 112 performs correction based on the third L-side map, in the L image, correction is performed for the defective pixel and the defect region of the L image, and further, the assumed defect region corresponding to the defect region of the R image. Is called. Similarly, when the R-side defect correction unit 122 performs correction based on the third R-side map, in the R image, the defect pixel and the defect region of the R image, and further, the assumed defect region corresponding to the defect region of the L image are corrected. Done. Thereby, the defect correction as shown in FIG. 2 is performed.

<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... Defect correction device 111... L-side defect detection unit 112... L-side defect correction unit 113. ... R-side defect correction unit 123... R-side correction range setting unit 130... Defect region detection unit 200. R side image sensor

Claims (12)

第1の画像における欠陥画素を検出する第1の欠陥検出部と、
第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の補正範囲設定部は、さらに、前記欠陥領域検出部により検出された前記第2の画像における前記欠陥領域に基づいて欠陥補正を行う範囲を設定する
請求項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. .
前記第1の補正範囲設定部は、前記第1の画像における欠陥画素と、前記欠陥領域検出部により検出された前記第1の画像における前記欠陥領域と、前記欠陥領域検出部により検出された前記第2の画像の前記欠陥領域に対応する範囲を前記第1の画像において欠陥補正を行う範囲として設定する
請求項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の閾値と前記第1の画像の画素レベルとを比較し、さらに、前記第1の閾値より小さい値に設定された第2の閾値と前記第1の画像の画素レベルとを比較し、前記第1の閾値または前記第2の閾値以上画素レベルを有する画素を欠陥画素として検出し、
前記欠陥領域検出部は、前記第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の補正範囲設定部は、前記第1の画像における、前記欠陥領域検出部により検出された前記第2の画像の前記欠陥領域に対応する範囲を、前記第1の画像と前記第2の画像の視差の分ずらして欠陥補正を行う範囲を設定する
請求項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.
前記第2の補正範囲設定部は、さらに、前記欠陥領域検出部により検出された前記第1の画像における前記欠陥領域に基づいて欠陥補正を行う範囲を設定する
請求項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. .
前記第2の補正範囲設定部は、前記第2の画像における欠陥画素と、前記欠陥領域検出部により検出された前記第2の画像における前記欠陥領域と、前記欠陥領域検出部により検出された前記第1の画像の前記欠陥領域に対応する範囲を前記第2の画像において欠陥補正を行う範囲として設定する
請求項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.
前記第2の欠陥画素検出部は、第1の閾値と前記第2の画像の画素レベルとを比較し、さらに、前記第1の閾値より小さい値に設定された第2の閾値と前記第2の画像の画素レベルとを比較し、前記第1の閾値または前記第2の閾値以上画素レベルを有する画素を欠陥画素として検出し、
前記欠陥領域検出部は、前記第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.
前記第2の補正範囲設定部は、前記第2の画像における、前記欠陥領域検出部により検出された前記第1の画像の前記欠陥領域に対応する範囲を、前記第1の画像と前記第2の画像の視差の分ずらして欠陥補正を行う範囲を設定する
請求項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.
第1の画像における欠陥画素を検出し、
第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.
光学系を介した光を受光して第1の画像を生成する第1の撮像部と、
光学系を介した光を受光して第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.
JP2011242517A 2011-11-04 2011-11-04 Defect correction device, defect correction method, and imaging device Pending JP2013098920A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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