JP2019153866A - Imaging apparatus and imaging method - Google Patents
Imaging apparatus and imaging method Download PDFInfo
- Publication number
- JP2019153866A JP2019153866A JP2018036303A JP2018036303A JP2019153866A JP 2019153866 A JP2019153866 A JP 2019153866A JP 2018036303 A JP2018036303 A JP 2018036303A JP 2018036303 A JP2018036303 A JP 2018036303A JP 2019153866 A JP2019153866 A JP 2019153866A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- image
- unit
- defect
- frequency
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、撮像素子中の欠陥画素を検出し、この欠陥画素を記録することのできる撮像装置および撮像方法に関する。 The present invention relates to an imaging apparatus and an imaging method capable of detecting a defective pixel in an imaging element and recording the defective pixel.
撮像素子には二次元的に多数の画素が配置されている。多数の画素の中には、点滅欠陥画素が存在する。この点滅欠陥画素が存在すると、画素出力が正常値の場合と異常値となる場合がある。点滅欠陥画素が異常値を出力すると、画像中に点滅欠陥画素位置に輝点が写ってしまう。この点滅欠陥はRTS(Random Telegraph Signal)ノイズとも言われ、画像処理後でも目立つ輝点となってしまう。そこで、画像信号を生成する際の蓄積時間を短くし、また検出に用いる撮影回数を多くして、欠陥画素を検出することが提案されている(例えば、特許文献1参照)。また、複数枚の画像から、各画素のσ値を算出し、σ値から狙いとする点滅欠陥を抽出する技術がある。 A large number of pixels are two-dimensionally arranged on the image sensor. Among many pixels, there are blinking defective pixels. If this blinking defective pixel exists, the pixel output may be a normal value or an abnormal value. When the blinking defective pixel outputs an abnormal value, a bright spot appears in the blinking defective pixel position in the image. This blinking defect is also called RTS (Random Telegraph Signal) noise, and becomes a noticeable bright spot even after image processing. Therefore, it has been proposed to detect defective pixels by shortening the accumulation time when generating an image signal and increasing the number of times of photographing used for detection (see, for example, Patent Document 1). Further, there is a technique for calculating a σ value of each pixel from a plurality of images and extracting a target blinking defect from the σ value.
特許文献1に提案されている技術では、点滅欠陥の発生頻度について考慮されていない。このため、発生頻度に応じた欠陥画素を検出することが困難である。また、σ値から欠陥画素を検出する方法では、σ値の算出に時間がかかるため、処理時間が長くなってしまう。
In the technique proposed in
本発明は、このような事情を鑑みてなされたものであり、点滅欠陥の発生頻度を考慮し、また短時間で欠陥画素を検出できる撮像装置および撮像方法を提供することを目的とする。 The present invention has been made in view of such circumstances, and an object thereof is to provide an imaging apparatus and an imaging method capable of detecting defective pixels in a short time in consideration of the occurrence frequency of blinking defects.
上記目的を達成するため第1の発明に係る撮像装置は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子と、上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算する加算部と、上記加算された画像信号を画素毎に比較明合成する比較明合成部と、上記比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部と、上記検出された画素信号の位置を記憶する記憶部と、を具備する。 In order to achieve the above object, an imaging apparatus according to a first invention has a plurality of pixels, photoelectrically converts incident light to generate an image signal, and the image signal from the imaging element at different times. Each of the acquired image signals is added to each pixel, an addition unit for adding the acquired image signals for each pixel, a comparatively bright combining unit for comparing and brightening the added image signals for each pixel, and the comparatively bright combined image signal. A detection unit that detects a pixel signal that exceeds a predetermined threshold among the included pixel signals, and a storage unit that stores the position of the detected pixel signal are provided.
第2の発明に係る撮像装置は、上記第1の発明において、上記複数の画像信号の特性、または、上記撮像素子の特性に基づいて、加算する画像信号の加算数を決定する加算数決定部を有する。
第3の発明に係る撮像装置は、上記第2の発明において、上記記憶部は、上記加算数を記憶する。
An imaging apparatus according to a second invention is the addition number determination unit that determines the addition number of the image signals to be added based on the characteristics of the plurality of image signals or the characteristics of the imaging element in the first invention. Have
In the imaging device according to a third aspect, in the second aspect, the storage unit stores the addition number.
第4の発明に係る撮像装置は、上記第3の発明において、上記撮像部により生成される画像信号のうちで、上記記憶部に記憶された位置の画素信号を補正する補正部を有し、上記補正部は、上記記憶された加算数に基づいて画素信号を補正する。
第5の発明に係る撮像装置は、上記第2の発明において、上記加算数に基づいて、比較明合成する画像信号の合成数を決定する比較明合成数決定部を有する。
An imaging apparatus according to a fourth invention includes a correction unit that corrects a pixel signal at a position stored in the storage unit among the image signals generated by the imaging unit in the third invention, The correction unit corrects the pixel signal based on the stored addition number.
According to a fifth aspect of the present invention, there is provided an imaging apparatus according to the second aspect, further comprising a comparatively bright composite number determining unit that determines the composite number of image signals to be comparatively brightly combined based on the addition number.
第6の発明に係る撮像装置は、上記第5の発明において、上記記憶部は、上記合成数を記憶する。
第7の発明に係る撮像装置は、上記第6の発明において、上記撮像部により生成される画像信号のうちで、上記記憶部に記憶された位置の画素信号を補正する補正部を有し、上記補正部は、上記記憶された合成数に基づいて画素信号を補正する。
In the imaging device according to a sixth aspect of the present invention based on the fifth aspect, the storage unit stores the composite number.
An image pickup apparatus according to a seventh invention includes a correction unit that corrects a pixel signal at a position stored in the storage unit among the image signals generated by the image pickup unit in the sixth invention, The correction unit corrects the pixel signal based on the stored composite number.
第8の発明に係る撮像装置は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子と、上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に比較明合成する比較明合成部と、上記比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部と、上記検出された画素信号の位置を記憶する記憶部と、を具備する。 An image pickup apparatus according to an eighth aspect of the present invention includes a plurality of pixels, photoelectrically converts incident light to generate an image signal, and obtains the image signal from the image sensor at different times, respectively. A comparatively bright combining unit that compares and synthesizes the plurality of image signals for each pixel, a detection unit that detects a pixel signal that exceeds a predetermined threshold among pixel signals included in the comparatively brightly combined image signal, A storage unit for storing the position of the detected pixel signal.
第9の発明に係る撮像装置は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子と、上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算する加算部と、上記加算された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部と、上記検出された画素信号の位置を記憶する記憶部と、を具備する。 An image pickup apparatus according to a ninth invention has a plurality of pixels, photoelectrically converts incident light to generate an image signal, and obtains the image signal from the image sensor at different times, respectively. An addition unit that adds the plurality of image signals for each pixel; a detection unit that detects a pixel signal that exceeds a predetermined threshold among the pixel signals included in the added image signal; and the detected pixel signal And a storage unit for storing the positions of these.
第10の発明に係る撮像装置は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子と、上記複数の画素の中で、点滅欠陥であると検出された画素信号の位置を記憶する記憶部と、上記画像信号のうちで、上記記憶部に記憶された位置の画素信号を補正する補正部と、を有する。 An image pickup apparatus according to a tenth aspect of the present invention includes a plurality of pixels, an image sensor that photoelectrically converts incident light to generate an image signal, and a pixel that is detected as a blinking defect among the plurality of pixels. A storage unit that stores a signal position; and a correction unit that corrects a pixel signal at a position stored in the storage unit among the image signals.
第11の発明に係る撮像装置は、上記第10の発明において、上記記憶部は、上記点滅欠陥の頻度を上記画素信号の位置と共に記憶し、上記補正部は、上記頻度に応じて、補正する画素を選択する。
第12の発明に係る撮像装置は、上記第11の発明において、上記補正部は、上記頻度に加えて、ISO感度または撮影モードに応じて、補正する画素を選択する。
第13の発明に係る撮像装置は、上記第10の発明において、上記記憶部は、上記頻度として、上記点滅欠陥の検出の際に行った比較明合成回数、または加算回数を記憶する。
In the imaging device according to an eleventh aspect according to the tenth aspect, the storage unit stores the frequency of the blinking defect together with the position of the pixel signal, and the correction unit corrects the frequency according to the frequency. Select a pixel.
In the imaging device according to a twelfth aspect based on the eleventh aspect, the correction unit selects a pixel to be corrected in accordance with the ISO sensitivity or the shooting mode in addition to the frequency.
In the imaging device according to a thirteenth aspect based on the tenth aspect, the storage unit stores, as the frequency, the number of times of comparatively bright combination performed at the time of detecting the blinking defect or the number of times of addition.
第14の発明に係る撮像方法は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子を有する撮像装置における撮像方法において、上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算し、上記加算された画像信号を画素毎に比較明合成し、上記比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出し、上記検出された画素信号の位置を記憶する。 An image pickup method according to a fourteenth aspect of the present invention is the image pickup method in an image pickup apparatus having a plurality of pixels, photoelectrically converting incident light, and generating an image signal. The obtained plurality of image signals are added for each pixel, the added image signal is subjected to comparatively bright synthesis for each pixel, and among the pixel signals included in the comparatively brightly synthesized image signal, The pixel signal exceeding a predetermined threshold is detected, and the position of the detected pixel signal is stored.
本発明によれば、点滅欠陥の発生頻度を考慮し、また短時間で欠陥画素を検出できる撮像装置および撮像方法を提供することができる。 According to the present invention, it is possible to provide an imaging apparatus and an imaging method capable of detecting defective pixels in a short time in consideration of the occurrence frequency of blinking defects.
以下、本発明の一実施形態としてデジタルカメラ(以下、「カメラ」と称す)に本発明を適用した例について説明する。このカメラは、撮像部を有し、この撮像部によって被写体像を画像データに変換し、この変換された画像データに基づいて、被写体像を本体の背面に配置した表示部にライブビュー表示する。撮影者はライブビュー表示を観察することにより、構図やシャッタタイミングを決定する。レリーズ操作時には、画像データが記録媒体に記録される。記録媒体に記録された画像データは、再生モードを選択すると、表示部に再生表示することができる。 Hereinafter, as an embodiment of the present invention, an example in which the present invention is applied to a digital camera (hereinafter referred to as “camera”) will be described. This camera has an imaging unit, and the imaging unit converts the subject image into image data, and displays the subject image on a display unit arranged on the back of the main body based on the converted image data. The photographer determines the composition and shutter timing by observing the live view display. During the release operation, image data is recorded on the recording medium. The image data recorded on the recording medium can be reproduced and displayed on the display unit when the reproduction mode is selected.
このカメラは、工場出荷時に点滅欠陥を画素毎に測定し、点滅欠陥のある画素の位置(アドレス情報)と、点滅欠陥の発生する頻度情報が、内部メモリに登録される。ユーザがカメラを使用する際に、撮像部から画像データが出力されると、登録されたアドレス情報と頻度情報を用いて、欠陥画素補正がなされる。なお、工場出荷後であっても、点滅欠陥画素位置および頻度情報を再測定し、内部メモリに再登録するようにしてもよい。 This camera measures the blinking defect for each pixel at the time of shipment from the factory, and the position (address information) of the pixel having the blinking defect and the frequency information on which the blinking defect occurs are registered in the internal memory. When the user uses the camera, if image data is output from the imaging unit, defective pixel correction is performed using the registered address information and frequency information. Even after shipment from the factory, the blinking defective pixel position and frequency information may be measured again and re-registered in the internal memory.
図1は、本発明の一実施形態に係るカメラの主として電気的構成を示すブロック図である。本実施形態におけるカメラは、撮像部1、画像処理部10、システム制御部20、バス31とこれに接続された各部を有する。
FIG. 1 is a block diagram mainly showing an electrical configuration of a camera according to an embodiment of the present invention. The camera in the present embodiment includes an
撮像部1は、レンズ2と、メカニカルシャッタ3と、イメージセンサ4と、温度センサ5を有している。なお、本実施形態においては、レンズがカメラ本体と一体に構成されていることを想定して説明する。しかし、レンズが交換レンズとしてカメラ本体に対して着脱自在に構成されていても勿論構わない。
The
レンズ2は、イメージセンサ4上に被写体光像(被写体の光学像)を結像する光学系である。レンズ2は、システム制御部20からの制御信号に基づいて、レンズ2の光軸方向に移動し、焦点調節が行われる。レンズ2は、内部に光学絞りを備えている。光学絞りは、絞り値に応じて開口の大きさが変化し、イメージセンサ4上への光量を調節する。絞り値は、露出量を調節するための制御パラメータである。
The
メカニカルシャッタ3は、レンズ2の光軸上であって、イメージセンサ4の前側に配置される。メカニカルシャッタ3は、レンズ2からの撮影光束をイメージセンサ4上に導く時間(シャッタ速度)を制御する。メカニカルシャッタ3として、例えばフォーカルプレーンシャッタを採用すると、シャッタ先幕及び後幕を開閉することにより、レンズ2からの撮影光束をイメージセンサ4へ到達させることができ、あるいは撮影光束がイメージセンサ4に到達しないように遮光することができる。このとき、シャッタ先幕が走行開始してからシャッタ後幕が走行開始するまでの時間がシャッタ速度である。メカニカルシャッタ3は、システム制御部20によって算出されたシャッタ速度に基づいて、シャッタの開口時間が制御される。
The
イメージセンサ4は、CMOSイメージセンサやCCDイメージセンサ等の撮像素子を有する。撮像素子は、2次元上に複数の画素が配列されており、画素毎に電気信号に変換する。レンズ2により結像された被写体光像は、撮像素子の各画素によって電気信号に変換され、画像データが生成される。生成された画像データは画像処理部10およびバス31に出力される。イメージセンサ4は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子として機能する。
The image sensor 4 includes an image sensor such as a CMOS image sensor or a CCD image sensor. The image sensor has a plurality of pixels arranged two-dimensionally and converts each pixel into an electrical signal. The subject light image formed by the
温度センサ5は、温度に応じた電気信号をシステム制御部20に出力する。イメージセンサ4の暗電流等は、温度に応じて変化するので、システム制御部20は温度センサ5の出力に応じて、イメージセンサ4からの画像データを補正する。
The
バス31は、カメラ内の各部の間で信号の送受信を行うための信号線である。図1に示す例においては、バス31には、撮像部1、画像処理部10、システム制御部20、内部メモリ33、外部メモリ36、表示部37、入力IF38、条件設定部39が接続されている。なお、図1には外部メモリ36も記載されているが、この外部メモリ31は、例えばカメラに着脱自在のメモリカード等により構成するようにしてもよく、カメラに固有の構成でなくても構わない。
The
画像処理部10は、画像処理回路を有し、イメージセンサ4から出力された画像データに種々の画像処理を施す。画像処理部10は、画像合成部11、欠陥判定部14、加算枚数判定部15、比較明合成枚数判定部16、欠陥補正部17、および現像処理部18を有する。
The
画像合成部11は、画像合成回路を有し、複数枚の画像データを合成して少なくとも1枚の合成画像データを生成する。この画像合成部11は、比較明合成部12と画像加算部13を有する。
The
比較明合成部12は、比較明合成回路を有し、比較明合成処理を行う。比較明合成処理は、概略、2つの画像の対応する画素の画素データを比較し、明るい方の画素データに置き換えて比較明合成画像を生成する処理である。具体的には、以下のような処理を行う。比較明合成部12は、イメージセンサ4から読み出した画像データや、内部メモリ33に記憶されている複数枚の画像データについて、イメージセンサ4の同位置に配置される画素の画素データ同士を比較する。そして、比較明合成部12は、画素データを比較した結果の何れか大きい方、すなわち明るい方の画素データを用いて比較明合成画像を生成する。このような処理を、全ての画素位置について行うことによって、比較明合成画像の各画素データが、最も明るい画素データのみで構成される。
The comparatively bright combining unit 12 includes a comparatively bright combining circuit and performs comparatively bright combining processing. The comparatively bright combination process is a process for generating the comparatively bright combined image by roughly comparing pixel data of corresponding pixels of two images and replacing them with the brighter pixel data. Specifically, the following processing is performed. The comparative bright combination unit 12 compares pixel data of pixels arranged at the same position of the image sensor 4 with respect to the image data read from the image sensor 4 and a plurality of pieces of image data stored in the
比較明合成部12は、加算された画像信号を画素毎に比較明合成する比較明合成部として機能する(例えば、図5のST13参照)。また、比較明合成部12は、撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に比較明合成する比較明合成部として機能する(例えば、図5のST13参照)。 The comparatively bright combining unit 12 functions as a comparatively bright combining unit that performs comparatively bright combining of the added image signals for each pixel (for example, see ST13 in FIG. 5). Further, the comparatively bright combining unit 12 functions as a comparatively bright combining unit that acquires the image signals from the image sensor at different times, and performs comparatively bright combining of the acquired image signals for each pixel (for example, FIG. 5). ST13).
画像加算部13は、画像加算回路を有し、加算合成処理を行い、加算合成画像を生成する。具体的には、画像加算部13は、内部メモリ33に記憶されている複数枚の画像データについて、イメージセンサ4の同位置に配置される画素データ同士を加算し、加算合成画像を生成する。画像加算部13は、撮像素子から画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算する加算部として機能する(例えば、図5のST5参照)。また、画像加算部13は、撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算する加算部として機能する(例えば、図5のST5参照)。
The image addition unit 13 includes an image addition circuit, performs addition synthesis processing, and generates an addition synthesis image. Specifically, the image addition unit 13 adds pixel data arranged at the same position of the image sensor 4 to a plurality of pieces of image data stored in the
加算枚数判定部15は、欠陥検出用画像生成時に、画像加算部13において合成処理を行う画像データの枚数を判定する(図5のST9参照)。この合成処理の判定対象の枚数は、イメージセンサ4から読み出した画像データや、内部メモリ33に記憶されている画像データの枚数である。例えば、点滅発生頻度の高い画素を検出する場合は加算枚数を少なく、点滅発生頻度の低い画素を検出する場合には加算枚数を多く設定する。設定枚数に達すると、画像の加算を完了させる。加算枚数の設定の際の考慮事項については、図5のステップST9において、後述する。加算枚数判定部15は、複数の画像信号の特性、または、撮像素子の特性に基づいて、加算する画像信号の加算数を決定する加算数決定部として機能する。
The addition
比較明合成枚数判定部16は、欠陥検出用画像生成時に、比較明合成部12において比較明合成する枚数を判定する(図5のST17参照)。予め設定した比較明合成枚数に達した場合に比較明合成を完了させる。ここで生成した比較明合成画像データを内部メモリ33に欠陥検出用画像データとして記憶する(図3、4の欠陥検出用画像DI、図5のST19参照)。
The comparatively bright composite
比較明合成枚数判定部16は、比較明合成する画像信号の合成数を決定する比較明合成数決定部として機能する(例えば、図5のST17参照)。この合成数は、加算数に基づいて決定してもよい。
The comparatively bright composite
欠陥判定部14は、内部メモリ33に記憶された欠陥検出用画像データについて、欠陥画素を判定する。例えば、画素データが大きい方から上位数万個を欠陥として、内部メモリ33にその画素位置を記録する。また、他の判定方法としては、所定のスレッシュ以上の画素データを欠陥画素として、内部メモリ33にその画素位置を記録する。欠陥判定部14における動作については、図6を用いて後述する。欠陥判定部14は、比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部として機能する(例えば、図5のST19、図6参照)。欠陥判定部14は、加算された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部として機能する(例えば、図5のST19、図6参照)。
The
欠陥補正部17は、内部メモリ33に記録された欠陥画素位置の画素データを補正する。すなわち、工場出荷時等における調整の結果、欠陥判定部14によって欠陥画素と判定されると、その画素の位置が内部メモリ33に記憶される。ユーザの撮影時には、欠陥補正部17は、内部メモリ33に記憶された欠陥画素の位置を読み出し、この位置に対応する画素データを補正する。
The defect correction unit 17 corrects the pixel data at the defective pixel position recorded in the
欠陥補正部17による欠陥画素の画素値の補正する方法としては、例えば同色周囲4画素の平均値に置き換える方法がある。しかし、補正方法についてはこの限りではない。欠陥補正部17で画素補正した画像を最終合成画像として内部メモリ33に記憶する。欠陥画素の登録時には、加算枚数や比較明合成枚数の情報も合わせて記録することによって、撮影条件に応じた補正方法や補正個数を最適な値を選択する事が可能となる。欠陥補正部17における動作については、図7ないし図12を用いて後述する。
As a method of correcting the pixel value of the defective pixel by the defect correcting unit 17, for example, there is a method of replacing with an average value of four pixels around the same color. However, the correction method is not limited to this. The image corrected by the defect correcting unit 17 is stored in the
欠陥補正部17は、撮像部により生成される画像信号のうちで、記憶部に記憶された位置の画素信号を補正する補正部として機能する(例えば、図7〜図12参照)。この補正部は、記憶された加算数に基づいて画素信号を補正する(例えば、図9参照)。また、補正部は、記憶された合成数に基づいて画素信号を補正する。補正部は、頻度に応じて、補正する画素を選択する。補正部は、頻度に加えて、ISO感度または撮影モードに応じて、補正する画素を選択する(例えば、図7〜図12参照)。 The defect correction unit 17 functions as a correction unit that corrects the pixel signal at the position stored in the storage unit among the image signals generated by the imaging unit (see, for example, FIGS. 7 to 12). The correction unit corrects the pixel signal based on the stored addition number (for example, see FIG. 9). The correction unit corrects the pixel signal based on the stored composite number. The correction unit selects a pixel to be corrected according to the frequency. The correction unit selects a pixel to be corrected according to the ISO sensitivity or the shooting mode in addition to the frequency (see, for example, FIGS. 7 to 12).
現像処理部18は、現像処理回路を有し、生成されたRAW画像データに対して種々の現像処理を施す。現像処理としては、デモザイキング処理、ホワイトバランス調整処理、ノイズリダクション処理、YC信号生成処理、ガンマ補正処理、リサイズ処理、画像圧縮処理などがある。リサイズ処理は、イメージセンサ4から読み出された画像データの画素数を他の画素数に変換する処理であり、この処理によって、例えば、表示部37の表示画素数に合わせることができる。
The development processing unit 18 has a development processing circuit, and performs various development processes on the generated RAW image data. Examples of development processing include demosaicing processing, white balance adjustment processing, noise reduction processing, YC signal generation processing, gamma correction processing, resizing processing, and image compression processing. The resizing process is a process of converting the number of pixels of the image data read from the image sensor 4 into another number of pixels, and this process can be adjusted to the number of display pixels of the
表示部37は、TFT(Thin Film Transistor)液晶や有機EL(Electro Luminescence)などの表示パネルを有する。表示部37は、カメラ本体の背面に設けられた背面表示部、あるいは接眼部を通して表示を観察するEVF(電子ビューファインダ:Electronic View Finder)等として配置される。表示部37は、現像処理部18によって現像された画像を表示する。
The
入力IFは、撮影者の操作を受けてカメラに対する各種の設定や指示を行うための操作部である。入力IF38は、例えば、カメラの電源をオン/オフするための電源釦、あるいは撮影開始および終了を操作するためのレリーズ釦等の操作部材を備え、さらに、背面表示部等の前面に設けられたタッチパネル等を備えている。タッチパネルが備えられると、タッチ操作によって設定や指示を入力することができる。 The input IF is an operation unit for performing various settings and instructions for the camera in response to an operation of the photographer. The input IF 38 includes, for example, operation members such as a power button for turning on / off the power of the camera or a release button for operating shooting start and end, and is provided on the front surface of the rear display unit or the like. A touch panel is provided. When a touch panel is provided, settings and instructions can be input by a touch operation.
条件設定部39は、表示部37に表示されるメニュー画面において、カメラの撮影条件や撮影した画像の処理に関する条件を設定する。
The
内部メモリ33は、イメージセンサ4から読み出された画像データ、あるいは画像処理部10が画像処理を行っている途中の画像データを記憶する。また、内部メモリ33は、カメラの動作に必要な各種の処理プログラムや設定値なども記憶する記憶部である。システム制御部20内のCPUは、内部メモリ33に記憶された処理プログラムに従って、カメラ内の各部の制御を行う。内部メモリ3は、例えば、フラッシュメモリ、SDRAM等の不揮発性メモリあるいは揮発性メモリによって、あるいはこれらを組合せることによって構成されている。
The
内部メモリ33は、画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号として、検出された画素信号の位置を記憶する記憶部として機能する。この記憶部は、加算数を記憶する。なお、加算処理の加算枚数は、内部メモリ33に記憶する以外にも加算枚数判定部15内にメモリを設け、このメモリに記憶するようにしてもよい。また、記憶部は、比較明合成用の合成数を記憶する。なお、比較明合成用の合成数は、内部メモリ33に記憶する以外にも比較明合成枚数判定部16内にメモリを設け、このメモリに記憶するようにしてもよい。内部メモリ33は、複数の画素の中で、点滅欠陥であると検出された画素信号の位置を記憶する記憶部として機能する。記憶部は、点滅欠陥の頻度を画素信号の位置と共に記憶する(図6のST23、ST27、ST31、ST35、ST39等参照)。記憶部は、頻度として、点滅欠陥の検出の際に行った比較明合成回数、または加算回数を記憶する(例えば、図9〜図12参照)。
The
外部メモリ36は、カメラ本体に装填自在のメモリカード等、あるいはカメラ本体の内部に固定された不揮発性の記憶媒体である。外部メモリ36は、現像処理部18において現像処理された画像データを記録し、また再生時には、記録された画像データが読み出される。外部メモリ36から読み出された画像データは、カメラの外部に出力可能である。
The
システム制御部20は、コントローラであり、CPU(Central Processing Unit)と、周辺回路等を有する。システム制御部20は、内部メモリ33に記憶されている処理プログラムに従って、カメラ内の各部を制御する。
The
次に、図2を用いて、点滅欠陥の発生頻度と画素レベルについて説明する。図2において、各点滅欠陥画素の画素レベルが均一とし、10枚の画像を加算したときの画素レベルを、発生頻度毎に示したグラフである。10枚の画像を取得した場合、発生頻度10%の画素では1枚の画像に点滅欠陥が生じ(その画素が輝点となってしまう)、発生頻度50%の欠陥画素では5枚の画像に点滅欠陥が発生する。画像を加算していくと発生頻度が高い画素の方が、画素レベルが高くなる。図2に示す例では、発生頻度が10%の場合には、画素レベルはO1となり、発生頻度が50%の場合には画素レベルはO5となる。 Next, the occurrence frequency of blinking defects and the pixel level will be described with reference to FIG. In FIG. 2, the pixel level of each blinking defective pixel is uniform, and the pixel level when 10 images are added is shown for each occurrence frequency. When 10 images are acquired, a blinking defect occurs in one image with a pixel with an occurrence frequency of 10% (the pixel becomes a bright spot), and a defective pixel with an occurrence frequency of 50% results in 5 images. A flashing defect occurs. As the images are added, the pixel level of a pixel having a higher occurrence frequency becomes higher. In the example shown in FIG. 2, when the occurrence frequency is 10%, the pixel level is O 1 , and when the occurrence frequency is 50%, the pixel level is O 5 .
上述の性質を利用して、点滅欠陥発生頻度に応じて、画素を柔軟に分けることが出来る。発生頻度の高い画素のみ検出したい場合には少ない加算枚数で検出し、発生頻度の低い画素を検出したい場合は加算枚数を増やして検出すればよい。また、同じ加算枚数であれば、画素レベルが高ければ発生頻度が高く、また画素レベルが低ければ発生頻度が低いことになる。後述する図6に示すフローチャートにおいては、点滅欠陥画素の発生頻度を、5段階に分類している。 Using the above-described properties, the pixels can be flexibly divided according to the frequency of occurrence of blinking defects. If it is desired to detect only pixels with a high occurrence frequency, detection is performed with a small number of additions. If a pixel with low occurrence frequency is to be detected, detection may be performed with an increase in the number of additions. For the same added number of sheets, if the pixel level is high, the occurrence frequency is high, and if the pixel level is low, the occurrence frequency is low. In the flowchart shown in FIG. 6 to be described later, the occurrence frequency of the blinking defective pixel is classified into five stages.
次に、図3を用いて、比較明合成部12および画像加算部13における処理シーケンスを説明する。図3に示す例は、画像加算部13における加算枚数を2枚に設定した場合である。後述する図5に示すフローチャートにおいて、ステップST9における判定用の加算枚数として「2枚」が設定されると、図3に示す処理シーケンスがなされる。図面の横軸方向は、時間の経過を示す。 Next, a processing sequence in the comparative bright combination unit 12 and the image addition unit 13 will be described with reference to FIG. The example shown in FIG. 3 is a case where the number of added sheets in the image adding unit 13 is set to two. In the flowchart shown in FIG. 5 to be described later, when “2” is set as the addition number for determination in step ST9, the processing sequence shown in FIG. 3 is performed. The horizontal axis direction of the drawing shows the passage of time.
最初にイメージセンサ4から画像データが読み出されると、暗画像_1として内部メモリ33に記憶される。以後、1フレーム相当の時間が経過するたびに、イメージセンサ4から暗画像_2、暗画像_3、暗画像_4、・・・暗画像_Nが読み出され、内部メモリ33に一時的に記憶される。なお、暗画像はメカシャッタ3が閉じている際にイメージセンサ4によって取得された画像、もしくは、メカシャッタ3が開いているが、周囲の環境に光が無い遮光状態において取得された画像をいう。
When image data is first read from the image sensor 4, it is stored in the
時刻T1において、暗画像_2が読み出されると、画像加算部13は暗画像_1と暗画像_2を画素レベル毎にレベル加算し、1枚の加算合成画像S1を生成する。次に、暗画像_3が読み出され、時刻T2において暗画像_4が読み出されると、画像加算部13は暗画像_3と暗画像_4を画素レベル毎にレベル加算し、1枚の加算合成画像S2を生成する。以後、2枚の暗画像が読み出される毎に、画像加算部13は2枚の暗画像を画素レベル毎にレベル加算し1枚の加算合成画像を生成する。 When the dark image_2 is read at time T1, the image adding unit 13 adds the levels of the dark image_1 and the dark image_2 for each pixel level to generate one added composite image S1. Next, when the dark image_3 is read out and the dark image_4 is read out at time T2, the image adding unit 13 adds the levels of the dark image_3 and the dark image_4 for each pixel level. An addition composite image S2 is generated. Thereafter, every time two dark images are read out, the image adding unit 13 adds two dark images for each pixel level to generate one added composite image.
また、画像加算部13によって加算合成画像が生成されると、比較明合成部12は比較明合成処理を行う。時刻T2において、比較明合成部12は、加算合成画像S1と加算合成画像S2の比較明合成を行い、比較明合成画像S10を生成する。この生成された比較明合成画像S10は内部メモリ33に一時的に記憶される。続いて、時刻T3において、比較明合成部12は、画像加算部13によって生成された加算合成画像S3と、内部メモリ33に一時記憶された比較明合成画像S10の比較明合成を行い、比較明合成画像S11を生成する。以後、加算合成画像が生成される毎に、比較明合成部12は、加算合成画像と、直前に生成された比較明合成画像との比較明合成処理を行う。
In addition, when an addition composite image is generated by the image addition unit 13, the comparatively bright combination unit 12 performs comparatively bright combination processing. At time T2, the comparatively bright composite unit 12 performs comparatively bright composite of the additive composite image S1 and the additive composite image S2, and generates a comparatively bright composite image S10. The generated comparatively bright composite image S10 is temporarily stored in the
最後の暗画像_Nが読み出され、比較明合成画像が生成されると、この生成された比較明合成画像が欠陥検出用画像DIとなる。この欠陥検出用画像DIは、内部メモリ33に一時記憶される。この欠陥検出用画像DIを用いて、欠陥画素の画素位置(アドレス情報)と、頻度情報が検出され、内部メモリ33に登録される(図5のST19、図6参照)。
When the last dark image_N is read and a comparatively bright composite image is generated, the generated comparatively bright composite image becomes the defect detection image DI. The defect detection image DI is temporarily stored in the
なお、図2に示す例では、加算合成部13は2枚の暗画像を加算している。しかし、加算枚数はその限りではなく、1枚〜無制限枚数でもよい。加算枚数が1枚の場合には、画像加算部13による加算処理を行わず、イメージセンサ4から画像が読み出される毎に、比較明合成部12によって比較明合成処理が行われる。 In the example shown in FIG. 2, the addition / synthesis unit 13 adds two dark images. However, the number of added sheets is not limited to this, and may be 1 to an unlimited number. When the number of added sheets is 1, the addition process by the image addition unit 13 is not performed, and the comparatively bright combination unit 12 performs the comparatively bright combination process every time an image is read from the image sensor 4.
次に、図4を用いて、比較明合成部12および画像加算部13における処理シーケンスの他の例を説明する。この例では、画像加算部13において、5枚の画像を加算する点が、図3に示した例と異なる。図5に示すフローチャートのステップST9において、判定用加算枚数として「5枚」が設定されると、図4に示す処理シーケンスがなされる。 Next, another example of the processing sequence in the comparative bright combination unit 12 and the image addition unit 13 will be described with reference to FIG. This example is different from the example shown in FIG. 3 in that the image adding unit 13 adds five images. In step ST9 of the flowchart shown in FIG. 5, when “5 sheets” is set as the additional number for determination, the processing sequence shown in FIG. 4 is performed.
図4に示す例においても、図面の横軸方向は、時間の経過を示す。最初にイメージセンサ4から画像データが読み出されると、暗画像_1として内部メモリ33に一時的に記憶される。以後、1フレーム相当の時間が経過するたびに、イメージセンサ4から暗画像_2、暗画像_3、暗画像_4、・・・暗画像_Nが読み出され、内部メモリ33に一時的に記憶される。
Also in the example shown in FIG. 4, the horizontal axis direction of the drawing indicates the passage of time. When image data is first read from the image sensor 4, it is temporarily stored in the
時刻T11において、暗画像_2が読み出されると、画像加算部13は暗画像_1と暗画像_2を画素レベル毎にレベル加算し、1枚の加算合成画像S1aを生成する。続いて、時刻T12において、暗画像_3が読み出されると、暗画像_3と加算合成画像S1aを画素レベル毎にレベル加算し、1枚の加算合成画像S2aを生成する。以後、イメージセンサ4から暗画像が読み出される毎に、この暗画像と、直前に合成された加算合成画像を画素レベル毎にレベル加算し、1枚の加算合成画像を順次生成する。 When the dark image_2 is read at time T11, the image adding unit 13 adds the levels of the dark image_1 and the dark image_2 for each pixel level, and generates one added composite image S1a. Subsequently, when the dark image_3 is read at time T12, the dark image_3 and the added composite image S1a are level-added for each pixel level to generate one added composite image S2a. Thereafter, every time a dark image is read out from the image sensor 4, the dark image and the added composite image synthesized immediately before are level-added for each pixel level to sequentially generate one added composite image.
時刻T13において、画像加算部13は加算合成画像S4aを生成する。この加算合成画像S4aは、暗画像_1〜暗画像_5の5枚の画像の加算合成画像である。また、時刻T14において、画像加算部13は加算合成画像S4bを生成する。この加算合成画像S4bは、暗画像_6〜暗画像_10の5枚の画像の加算合成画像である。以後、暗画像を5枚読み出す毎に、比較明合成用の加算合成が生成される。 At time T13, the image addition unit 13 generates an addition composite image S4a. This addition composite image S4a is an addition composite image of five images of dark image_1 to dark image_5. At time T14, the image adding unit 13 generates an added composite image S4b. This addition composite image S4b is an addition composite image of five images of dark image_6 to dark image_10. Thereafter, every time five dark images are read out, an addition composition for comparatively bright composition is generated.
また、画像加算部13によって、実質的に5枚の暗画像を用いた加算合成画像が生成されると、比較明合成部12は比較明合成処理を行う。時刻T14において、比較明合成部12は、加算合成画像S4aと加算合成画像4bの比較明合成を行い、比較明合成画像S10aを生成する。この生成された比較明合成画像S10aは内部メモリ33に一時的に記憶される。続いて、時刻T16において、比較明合成部12は、画像加算部13によって生成された加算合成画像S4cと、内部メモリ33に一時記憶された比較明合成画像S10aの比較明合成を行い、比較明合成画像S10bを生成する。以後、予め設定された枚数に対応する加算合成画像が生成される毎に、比較明合成部12は、加算合成画像と、直前に生成された比較明合成画像との比較明合成処理を行う。
Further, when the image adding unit 13 generates an addition combined image using substantially five dark images, the comparatively bright combining unit 12 performs comparatively bright combining processing. At time T14, the comparatively bright composite unit 12 performs comparatively bright composite of the additive composite image S4a and the additive composite image 4b to generate a comparatively bright composite image S10a. The generated comparatively bright composite image S10a is temporarily stored in the
最後の暗画像_Nが読み出され、比較明合成画像が生成されると、図4に示す例においても、生成された比較明合成画像が欠陥検出用画像DIとなる。この欠陥検出用画像DIは、内部メモリ33に一時記憶される。この欠陥検出用画像DIを用いて、欠陥画素の画素位置(アドレス情報)と、頻度情報が検出され、内部メモリ33に登録される(図5のST19、図6参照)。
When the last dark image_N is read and a comparatively bright composite image is generated, the generated comparatively bright composite image becomes the defect detection image DI also in the example shown in FIG. The defect detection image DI is temporarily stored in the
次に、図5に示すフローチャートを用いて、本実施形態に係る欠陥検出用画像の生成動作について説明する。このフローは、システム制御部20内のCPUが内部メモリ33に記憶されたプログラムに従って、カメラ内の各部を制御することにより実現する。なお、このフローは、工場出荷前に実行し、点滅欠陥画素を検出する際に実行される。但し、工場出荷後であっても、ユーザはメニュー画面等により、このフローを実行し、点滅欠陥画素を検出し、内部メモリ33に登録された欠陥画素のアドレス情報および頻度情報を更新することができる。
Next, the defect detection image generation operation according to the present embodiment will be described with reference to the flowchart shown in FIG. This flow is realized by the CPU in the
図5に示すフローを開始すると、まず、撮影を行う(ST1)。このステップでは、メカシャッタ3を閉じたままの遮光状態で、所定の露光時間の間、イメージセンサ4が撮像する。所定の露光時間が経過すると、イメージセンサ4から画像データを読み出し、この画像データを内部メモリ33に記憶する。
When the flow shown in FIG. 5 is started, first, photographing is performed (ST1). In this step, the image sensor 4 captures an image for a predetermined exposure time in a light shielding state with the
ステップST1において撮影を行うと、次に、撮影枚数が1枚目か否かを判定する(ST3)。加算処理は、図3、図4において説明したように、撮影枚数が2枚目以降に行う。この判定の結果、1枚目の撮影の場合には、加算処理を行わないので、ステップST5をスキップする。 Once shooting is performed in step ST1, it is next determined whether or not the number of shots is the first (ST3). As described with reference to FIGS. 3 and 4, the addition process is performed after the second and subsequent shots. As a result of this determination, in the case of shooting the first picture, the addition process is not performed, so step ST5 is skipped.
ステップST3における判定の結果、撮影枚数が1枚目でない場合には、加算用画像に加算処理を行う(ST5)。このステップでは、画像加算部13が、図3、図4において説明したように、イメージセンサ4から画像データが読み出される毎に、加算処理を行う。 If the result of determination in step ST3 is that the number of shots is not the first, addition processing is performed on the image for addition (ST5). In this step, as described with reference to FIGS. 3 and 4, the image addition unit 13 performs an addition process every time image data is read from the image sensor 4.
ステップST5において加算処理を行うと、またはステップST3における判定の結果、1枚の撮影であった場合には、次に、ST1の撮影画像またはST5の加算画像を、加算用画像として保持する(ST7)。ここでは、ステップST5において加算処理がなされた場合には、生成された加算合成画像を内部メモリ33に一時的に記憶する。また、ステップST3において、1枚目と判定された場合には、ステップST1において取得された画像データを内部メモリ33に一時的に記憶する。
If addition processing is performed in step ST5, or if the result of determination in step ST3 is that one image has been shot, then the shot image of ST1 or the added image of ST5 is held as an addition image (ST7). ). Here, when the addition process is performed in step ST <b> 5, the generated addition composite image is temporarily stored in the
ステップST7において、画像を保持すると、次に、加算枚数が所定数に達したか否かについて判定する(ST9)。このステップでは、加算枚数判定部15が、加算処理を行った画像の数が、所定数に達したか否かについて判定する。例えば、図3に示す例では、時刻T1において加算合成画像S1を取得したタイミング、時刻T2において加算合成画像S2を生成したタイミングが、所定数に達したと判定される。また図4に示す例では、時刻T13において加算合成画像S4aを取得したタイミング、時刻T14において加算合成画像S4bを生成したタイミングが、所定数に達したと判定される。
If the image is held in step ST7, it is next determined whether or not the added number has reached a predetermined number (ST9). In this step, the addition
ステップST9における所定数は、点滅欠陥画素の検出にあたって、狙いとする点滅発生頻度に応じて、適宜設定すればよい。ここでの所定数は、加算枚数判定部15に設定しておいてもよく、条件に応じて、適宜変更するようにしてもよい。
The predetermined number in step ST9 may be set as appropriate in accordance with the target blink occurrence frequency in detecting the blink defective pixel. The predetermined number here may be set in the addition
加算枚数の判定用の所定数としては、下記のような要素を考慮して決めるとよい。
(a1)点滅頻度:補正したい点滅頻度に応じて加算枚数を変更する。2回連続して発生する点滅欠陥に対して、補正するようにしたい場合には、加算枚数は少なくする方がよい。
(a2)画素サイズ:画素サイズに応じて発生レベルや頻度が変わる。イメージセンサ4の撮像特性に応じて、加算枚数を可変にする。
(a3)画素加算条件:画素加算数が多い駆動の場合は、加算平均することにより点滅レベルが低くなる。このような場合には、加算枚数を増加することによって、抽出しやすくするとよい。
The predetermined number for determining the number of added sheets may be determined in consideration of the following factors.
(A1) Flashing frequency: The added number is changed according to the flashing frequency to be corrected. When it is desired to correct a blinking defect that occurs twice in succession, it is better to reduce the number of additions.
(A2) Pixel size: The generation level and frequency change according to the pixel size. Depending on the imaging characteristics of the image sensor 4, the added number is made variable.
(A3) Pixel addition condition: In the case of driving with a large number of pixel additions, the blinking level is lowered by averaging. In such a case, it is preferable to increase the number of added sheets to facilitate extraction.
(a4)画素加算方法:イメージセンサ4からの画素信号を混合する際に、デジタル混合かアナログ混合かによって、点滅レベルが変わる。そこで、レベルに応じた加算枚数を設定する。
(a5)使用時間(経年劣化):イメージセンサ4は、紫外線、放射線を浴びる等の後発的理由により、点滅欠陥を発生する画素が変わっていく。後発の点滅欠陥を生ずる理由に応じて、適宜、加算枚数を変更してもよい。
(a6)使用方法:静止画、動画、スルー画等の用途(撮影モード)に応じて、補正が必要となる点滅頻度が異なる。カメラの仕様に応じて、加算枚数を変更するようにしてもよい。
(A4) Pixel addition method: When pixel signals from the image sensor 4 are mixed, the flashing level changes depending on whether digital mixing or analog mixing is performed. Therefore, the number of added sheets is set according to the level.
(A5) Usage time (deterioration over time): In the image sensor 4, pixels that generate blinking defects change due to subsequent reasons such as exposure to ultraviolet rays and radiation. Depending on the reason for the occurrence of the subsequent flashing defect, the number of additions may be changed as appropriate.
(A6) Usage method: The blinking frequency that requires correction differs depending on the application (photographing mode) of a still image, a moving image, a through image, or the like. You may make it change the number of additions according to the specification of a camera.
上述の条件(a5)(a6)は、工場出荷後に、ユーザが点滅欠陥補正用情報(欠陥画素の画素位置(アドレス情報)と頻度情報)を更新したい場合に、考慮するとよい。ステップST9における判定の結果、加算枚数が所定数に達していない場合には、ステップST1に戻り、加算用の画像を取得し、加算処理を繰り返す。 The above conditions (a5) and (a6) may be considered when the user wants to update the blinking defect correction information (pixel position (address information) and frequency information of defective pixels) after shipment from the factory. If the result of determination in step ST9 is that the added number has not reached the predetermined number, processing returns to step ST1, an image for addition is acquired, and the addition process is repeated.
ステップST9における判定の結果、加算枚数が所定値に達すると、加算後の枚数が1枚目か否かを判定する(ST11)。ステップST3〜S9において所定数の加算処理を行うと、次に比較明合成処理を行う。比較明合成処理は、図3、図4において説明したように、加算合成画像が2枚目以降に行う。この判定の結果、加算後の枚数が、1枚目の場合には、比較明合成処理を行わないので、ステップST13をスキップする。 As a result of the determination in step ST9, when the number of added sheets reaches a predetermined value, it is determined whether or not the number of added sheets is the first sheet (ST11). When a predetermined number of addition processes are performed in steps ST3 to S9, a comparatively bright combination process is performed next. As described with reference to FIGS. 3 and 4, the comparatively bright combination process is performed after the second combined image. If the result of this determination is that the number after addition is the first, the comparatively bright combination process is not performed, so step ST13 is skipped.
ステップST11における判定の結果、加算後の枚数が1枚目でない場合には、次に、比較明合成画像処理を行う(ST13)。このステップでは、比較明合成部12が、図3、図4において説明したように、画像加算部13によって所定枚数の加算処理が行われる毎に、比較明合成処理を行う。 If the result of determination in step ST11 is that the number after addition is not the first, comparatively bright composite image processing is performed (ST13). In this step, as described with reference to FIGS. 3 and 4, the comparatively bright combination unit 12 performs the comparatively bright combination process every time a predetermined number of addition processes are performed by the image addition unit 13.
ステップST13において比較明合成処理を行うと、またはステップST11における判定の結果、加算後の枚数が1枚目であった場合には、次に、比較明合成用画像として保持する(ST15)。ここでは、ステップST11において、1枚目と判定された場合には、ステップST7において生成された加算画像を内部メモリ33に一時的に記憶する。例えば、図3に示す例では、時刻T1において加算合成画像S1が生成された場合には、この加算画像S1を内部メモリ33に一時記憶する。また、ステップST13において比較明合成処理がなされた場合には、生成された比較明合成画像を内部メモリ33に一時的に記憶する。例えば、図3に示す例では、時刻T2において、比較明合成画像S10が生成された場合には、この生成された比較明合成画像S10を内部メモリ33に一時的に記憶する。
If comparatively bright combining processing is performed in step ST13 or if the result of determination in step ST11 is the first number after addition, the image is then stored as a comparatively bright combining image (ST15). Here, if it is determined in step ST11 that it is the first image, the added image generated in step ST7 is temporarily stored in the
ステップST15において、比較明合成用画像として保持すると、次に、比較明合成枚数が所定数に達したか否かについて判定する(ST17)。このステップでは、比較明合成枚数判定部16が、比較明合成処理を行った画像の数が、所定数に達したか否かについて判定する。ここでの所定数は、比較明合成枚数判定部16に設定しておいてもよく、条件に応じて、適宜変更するようにしてもよい。
If the image is stored as a comparatively bright composite image in step ST15, it is next determined whether or not the comparatively bright composite number has reached a predetermined number (ST17). In this step, the comparatively bright composite
比較明合成枚数の判定用の所定数としては、下記のような要素を考慮して決めるとよい。
(b1)点滅頻度:点滅頻度が低い場合には、比較明合成枚数を増加させる。
(b2)処理時間:製造工程で実施する調整工程であるか、ユーザが実施するカメラ内調整であるかによって変更する。
(b3)加算枚数:比較明合成前の加算枚数処理に応じて、比較明合成する枚数が変化する。
The predetermined number for determining the comparatively bright composite number may be determined in consideration of the following factors.
(B1) Flashing frequency: When the flashing frequency is low, the comparatively bright composite number is increased.
(B2) Processing time: It changes depending on whether it is an adjustment process performed in the manufacturing process or an in-camera adjustment performed by the user.
(B3) Additional number of sheets: The number of comparatively brightly combined images changes according to the added number of sheets processing before comparatively bright combination.
ステップST17における判定の結果、比較明合成枚数が所定数に達していない場合には、ステップST1に戻り、画像を取得し、加算処理および比較明合成処理を繰り返す。 If the result of determination in step ST17 is that the number of comparatively bright composites has not reached the predetermined number, processing returns to step ST1, an image is acquired, and the addition processing and comparatively bright composite processing are repeated.
ステップST17における判定の結果、比較明合成処理を行った画像の枚数が所定数に達すると、次に閾値判定を行う(ST19)。ステップST17において、所定数の比較明合成が終わると、欠陥検出用画像DI(図3、図4参照)が、生成される。図2を用いて説明したように、発生頻度に応じて、画素レベルが異なる。すなわち、画素レベルから発生頻度を推測できる。撮影時に発生頻度に応じた補正を行うために、欠陥検出用画像DIを用いて画素位置毎に頻度を判定し、この判定結果を内部メモリ33に記憶する。この閾値判定の詳しい動作については、図6を用いて説明する。
As a result of the determination in step ST17, when the number of images that have undergone comparatively bright combination processing reaches a predetermined number, a threshold determination is performed (ST19). In step ST17, when a predetermined number of comparative bright combinations are completed, a defect detection image DI (see FIGS. 3 and 4) is generated. As described with reference to FIG. 2, the pixel level varies depending on the occurrence frequency. That is, the occurrence frequency can be estimated from the pixel level. In order to perform correction according to the occurrence frequency at the time of shooting, the frequency is determined for each pixel position using the defect detection image DI, and the determination result is stored in the
次に、図6に示すフローチャートを用いて、ステップST19の閾値判定の動作について説明する。ステップST17において、比較明合成画像が所定枚数に達したと判定されると、欠陥検出用画像DIが生成される。この閾値判定のフローでは、欠陥検出用画像DIを用いて、画素毎に画素レベルの判定を行う。このフローを実行するにあたって、頻度判定用に設定値を決めておく。この設定値は、点滅欠陥とみなせる程度のレベルであればよい。 Next, the threshold determination operation in step ST19 will be described using the flowchart shown in FIG. If it is determined in step ST17 that the number of comparatively bright composite images has reached a predetermined number, a defect detection image DI is generated. In the threshold determination flow, the pixel level determination is performed for each pixel using the defect detection image DI. In executing this flow, a set value is determined for frequency determination. This set value may be a level that can be regarded as a blinking defect.
このフローでは、欠陥検出用画像DIの画像データの中から、順次、画素データを読出み出すと、ステップST21から、処理を実行する。そして、ステップST23、ST27、ST31、ST35、ST39において、画素のアドレスに頻度を関連付けて登録を行う。この一連の処理が終わると、次の画素データを読出し、ST21から繰り返す。全ての欠陥検出用画像DIの全ての画素データについて、閾値判定のフローを実行すると、元のフローに戻る。 In this flow, when pixel data is sequentially read out from the image data of the defect detection image DI, the process is executed from step ST21. In steps ST23, ST27, ST31, ST35, and ST39, registration is performed in association with the frequency of the pixel address. When this series of processing is completed, the next pixel data is read out and repeated from ST21. When the threshold determination flow is executed for all the pixel data of all the defect detection images DI, the flow returns to the original flow.
図6に示す閾値判定のフローが開始すると、まず、画素レベルが設定値の5倍よりも大きいか否かについて判定する(ST21)。このステップでは、欠陥検出用画像DIから読出した画素データの画素レベルと、設定値の5倍の値を比較する。この判定の結果、画素レベルが設定値の5倍よりも大きければ、頻度5として、画素のアドレスと共にメモリに登録する(ST23)。ここでは、ステップST21において判定の対象とした画素のアドレスに、頻度5をセットにして内部メモリ33に登録する。
When the threshold determination flow shown in FIG. 6 starts, first, it is determined whether or not the pixel level is higher than five times the set value (ST21). In this step, the pixel level of the pixel data read from the defect detection image DI is compared with a value five times the set value. As a result of this determination, if the pixel level is larger than 5 times the set value, it is registered in the memory together with the pixel address as frequency 5 (ST23). Here, the
ステップST21における判定の結果、画素レベルが設定値の5倍よりも大きくなかった場合には、次に、画素レベルが設定値の4倍よりも大きいか否かについて判定する(ST25)。このステップでは、欠陥検出用画像DIから読出した画素データの画素レベルと、設定値の4倍の値を比較する。この判定の結果、画素レベルが設定値の4倍よりも大きければ、頻度4として、画素のアドレスと共にメモリに登録する(ST27)。ここでは、ステップST25において判定の対象とした画素のアドレスに、頻度4をセットにして内部メモリ33に登録する。
If the result of determination in step ST21 is that the pixel level is not greater than 5 times the set value, it is next determined whether or not the pixel level is greater than 4 times the set value (ST25). In this step, the pixel level of the pixel data read from the defect detection image DI is compared with a value four times the set value. As a result of this determination, if the pixel level is greater than four times the set value, it is registered in the memory together with the pixel address as frequency 4 (ST27). Here, the frequency 4 is set as the set address of the pixel to be determined in step ST25 and registered in the
ステップST25における判定の結果、画素レベルが設定値の4倍よりも大きくなかった場合には、次に、画素レベルが設定値の3倍よりも大きいか否かについて判定する(ST29)。このステップでは、欠陥検出用画像DIから読出した画素データの画素レベルと、設定値の3倍の値を比較する。この判定の結果、画素レベルが設定値の3倍よりも大きければ、頻度3として、画素のアドレスと共にメモリに登録する(ST31)。ここでは、ステップST29において判定の対象とした画素のアドレスに、頻度3をセットにして内部メモリ33に登録する。
If the result of determination in step ST25 is that the pixel level is not greater than 4 times the set value, it is next determined whether or not the pixel level is greater than 3 times the set value (ST29). In this step, the pixel level of the pixel data read from the defect detection image DI is compared with a value three times the set value. As a result of this determination, if the pixel level is greater than three times the set value, it is registered in the memory together with the pixel address as frequency 3 (ST31). Here, the
ステップST29における判定の結果、画素レベルが設定値の3倍よりも大きくなかった場合には、次に、画素レベルが設定値2倍よりも大きいか否かについて判定する(ST33)。このステップでは、欠陥検出用画像DIから読出した画素データの画素レベルと、設定値の2倍の値を比較する。この判定の結果、画素レベルが設定値の2倍よりも大きければ、頻度2として、画素のアドレスと共にメモリに登録する(ST35)。ここでは、ステップST33において判定の対象とした画素のアドレスに、頻度2をセットにして内部メモリ33に登録する。
If the result of determination in step ST29 is that the pixel level is not greater than three times the set value, it is next determined whether or not the pixel level is greater than twice the set value (ST33). In this step, the pixel level of the pixel data read from the defect detection image DI is compared with a value twice the set value. If the pixel level is greater than twice the set value as a result of this determination, it is registered in the memory together with the pixel address as frequency 2 (ST35). Here, in step ST33, the
ステップST33における判定の結果、画素レベルが設定値の2倍よりも大きくなかった場合には、次に、画素レベルが設定値よりも大きいか否かについて判定する(ST37)。このステップでは、欠陥検出用画像DIから読出した画素データの画素レベルと、設定値を比較する。この判定の結果、画素レベルが設定値よりも大きければ、頻度1として、画素のアドレスと共にメモリに登録する(ST39)。ここでは、ステップST37において判定の対象とした画素のアドレスに、頻度1をセットにして内部メモリ33に登録する。
If the result of determination in step ST33 is that the pixel level is not greater than twice the set value, it is next determined whether or not the pixel level is greater than the set value (ST37). In this step, the pixel level of the pixel data read from the defect detection image DI is compared with the set value. If the result of this determination is that the pixel level is greater than the set value, it is registered in the memory together with the pixel address as frequency 1 (ST39). Here, in step ST37, the
ステップST37における判定の結果、画素レベルが設定値よりも大きくなかった場合には、画素欠陥を登録しない(ST41)。画素レベルが設定値よりも小さい場合には、点滅欠陥といえるレベルでないことから、画素欠陥の登録を行わない。 If the result of determination in step ST37 is that the pixel level is not greater than the set value, no pixel defect is registered (ST41). When the pixel level is smaller than the set value, the pixel defect is not registered because the level is not a blinking defect.
ステップST21〜ST41の処理を実行すると、内部メモリ33から次の画素の画素データを読出し、再び、ステップST21〜ST41の処理を実行する。全ての画素の画素データについて、処理を実行すると、閾値判定のフローを終了し、元のフローに戻る。
When the processes of steps ST21 to ST41 are executed, the pixel data of the next pixel is read from the
このように、工場出荷前の調整時、またはユーザによる調整時において、図5および図6に示したフローを実行することにより、内部メモリ33には、点滅欠陥のある画素の位置(欠陥アドレス情報)と、その画素が点滅欠陥を発生する頻度(頻度情報)が記録される。頻度は、点滅欠陥が発生する確率を示し、頻度5の方が頻度1よりも、点滅欠陥が発生する可能性が高い。
As described above, by performing the flow shown in FIGS. 5 and 6 at the time of adjustment before shipment from the factory or at the time of adjustment by the user, the
なお、図6に示したフローチャートでは、内部メモリ33に登録する際、画素毎に、欠陥アドレス情報と共に頻度情報を合わせて登録する方法としている。しかし、この方法に限らず、例えば、予め頻度毎のメモリ領域を振り分けて、欠陥アドレスを登録するようにしてもよい。また、図6に示したフローチャートの例では、5枚の画像を加算した場合を想定して、5つの頻度に分けている。しかし、頻度は加算枚数と同じである必要はなく、また加算枚数も5枚でなくてもよい。
In the flowchart shown in FIG. 6, when registering in the
次に、図7および図8を用いて、撮影時に行う点滅欠陥補正について説明する。前述したように、内部メモリ33には、欠陥画素の欠陥アドレス情報と頻度情報が登録されている。図7は、この登録された情報を用いて、画素データの欠陥補正を実施する条件を示す。登録されている全ての点滅欠陥について補正するようにしてもよい。しかし、補正する画素数が多いと、補正する処理時間や解像度への影響が発生してしまう。このため、補正数は少ない方が、メリットがある。
Next, blinking defect correction performed at the time of shooting will be described with reference to FIGS. As described above, in the
図7に示す例は、単純加算を繰り返す処理を実施する場合における欠陥画素の補正例である。複数の画像を加算処理する場合、同じサイズの画像の同じ画素アドレスの値を加算する。この加算処理によって、長秒時撮影と同じ効果を得ることができる。しかし、画素に点滅欠陥があると、加算処理を行うことによって、点滅頻度の高い画素ほど欠陥レベルが高くなる。また、画素欠陥は設定されたISO感度が高いほど、欠陥レベルが高くなる。そこで、ISO感度や処理の内容によって、補正の有無を決める方法が良い。 The example shown in FIG. 7 is a correction example of a defective pixel in the case where the process of repeating simple addition is performed. When adding a plurality of images, the values of the same pixel address of the images of the same size are added. By this addition processing, the same effect as that of long-time shooting can be obtained. However, if the pixel has a blinking defect, the defect level increases as the blinking frequency increases by performing addition processing. Further, the higher the set ISO sensitivity, the higher the defect level of the pixel defect. Therefore, a method of determining the presence or absence of correction depending on the ISO sensitivity and the content of processing is preferable.
例えば、図7に示すような、点滅頻度とISO感度の条件(補正条件)によって、欠陥補正の有無を決めるようにしてもよい。図7に示す表中で、○は補正する条件を示し、×は補正しない条件を示す。なお、頻度1〜頻度5は、図6の閾値判定で設定された頻度を示す。図7の例では、設定ISO感度が100の場合には、頻度1〜頻度5のいずれの頻度の画素に対しても補正を行わない。設定ISO感度が200になると、頻度5の画素に対してのみ補正を行う。設定ISO感度が大きくなるにつれ、頻度が少ない画素に対しても補正を行う。設定ISO感度が3200以上になると頻度1〜頻度5の全ての画素に対して補正を行う。なお、前述したように、頻度5の画素が、最も点滅欠陥が発生する可能性が高い。
For example, the presence / absence of defect correction may be determined according to the blinking frequency and ISO sensitivity conditions (correction conditions) as shown in FIG. In the table shown in FIG. 7, ◯ indicates a condition for correction, and x indicates a condition for no correction. Note that
また、処理の内容のみで振り分けるようにしても良い。例えば、単純な1枚撮影時は、頻度の高い頻度5のみを常に補正対象とし、比較明合成処理や加算処理時は頻度1から頻度5までを補正対象とするようにしてもよい。
Further, the distribution may be made only by the processing contents. For example, when shooting a simple single image, only
図8に示すフローチャートは、図7に示した補正条件に従って、補正を行う場合の処理手順を示す。このフローチャートは、撮影時に実行される。撮影時には、イメージセンサ4から画像データを読出し、内部メモリ33に一時的に記憶される。欠陥補正部17は、内部メモリ33に一時記憶された画像データに対して、設定ISO感度に応じて、内部メモリ33内に登録されている欠陥画素の欠陥アドレス情報と頻度情報を用いて、補正を行う。
The flowchart shown in FIG. 8 shows a processing procedure when correction is performed in accordance with the correction conditions shown in FIG. This flowchart is executed at the time of photographing. At the time of shooting, image data is read from the image sensor 4 and temporarily stored in the
このフローでは、内部メモリ33に一時記憶された画像データを読出み出すと、ステップST51から、処理を実行する。そして、ステップST51、ST55、ST59、ST63、ST67において、設定ISO感度の判定を行い、判定されたISO感度と頻度に応じた補正を行う(但し、ST67の条件を満たさない場合は補正を行わない)。この一連の処理が終わると、元のフローに戻る。
In this flow, when image data temporarily stored in the
ISO感度画素欠陥補正処理のフローが開始すると、まず、ISO感度が3200以上か否かを判定する(ST51)。ここでは、現在、カメラが手動または自動によって設定されているISO感度に基づいて判定する(後述するST55、ST59、ST63、ST67も同様)。この判定の結果、ISO感度が3200以上の場合には、頻度1〜5の欠陥について補正する(ST53)。前述したように、内部メモリ33には、欠陥画素の欠陥アドレス情報と頻度情報が登録されている。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度1〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。図7の図表を用いて説明したように、ISO感度が3200以上の場合には、画素レベルが比較的に小さい点滅欠陥画素でも画素レベルが増幅されて顕在化しやすくなることから、頻度1〜5の全ての画素に対して補正を行う。
When the ISO sensitivity pixel defect correction processing flow starts, it is first determined whether or not the ISO sensitivity is 3200 or higher (ST51). Here, the determination is made based on the ISO sensitivity that is currently set manually or automatically by the camera (the same applies to ST55, ST59, ST63, and ST67 described later). As a result of this determination, if the ISO sensitivity is 3200 or higher, defects with
欠陥画素補正としては、種々の方法があるが、例えば、登録されている欠陥画素の画素データを、欠陥画素の同色周辺4画素の平均値との置換える方法がある。これ以外にも、最近傍補間等、他の画素補間法を用いてもよい。 There are various methods for correcting defective pixels. For example, there is a method of replacing pixel data of registered defective pixels with an average value of four pixels around the same color of defective pixels. In addition to this, other pixel interpolation methods such as nearest neighbor interpolation may be used.
ステップST51における判定の結果、ISO感度が3200以上でなかった場合には、次にISO感度が1600以上か否かについて判定する(ST55)。この判定の結果、ISO感度が1600以上の場合には、頻度2〜5の欠陥について補正する(ST57)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度2〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。
If the result of determination in step ST51 is that ISO sensitivity is not 3200 or higher, it is next determined whether or not ISO sensitivity is 1600 or higher (ST55). If the ISO sensitivity is 1600 or higher as a result of this determination, defects having a frequency of 2 to 5 are corrected (ST57). The defect correction unit 17 reads the temporarily stored image data, and performs defect pixel correction on the pixel data for each pixel in which defect address information is registered with frequency information of
ステップST55における判定の結果、ISO感度が1600以上でなかった場合には、次にISO感度が800以上か否かについて判定する(ST59)。この判定の結果、ISO感度が800以上の場合には、頻度3〜5の欠陥について補正する(ST61)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度3〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。
If the result of determination in step ST55 is that the ISO sensitivity is not 1600 or higher, it is next determined whether or not the ISO sensitivity is 800 or higher (ST59). As a result of this determination, if the ISO sensitivity is 800 or more, defects having a frequency of 3 to 5 are corrected (ST61). The defect correction unit 17 reads the temporarily stored image data, and performs defect pixel correction on the pixel data for each pixel in which defect address information is registered with frequency information of
ステップST59における判定の結果、ISO感度が800以上でなかった場合には、次にISO感度が400以上か否かについて判定する(ST63)。この判定の結果、ISO感度が400以上の場合には、頻度4〜5の欠陥について補正する(ST65)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度4〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。 If the result of determination in step ST59 is that the ISO sensitivity is not 800 or higher, it is next determined whether or not the ISO sensitivity is 400 or higher (ST63). As a result of the determination, if the ISO sensitivity is 400 or more, defects with a frequency of 4 to 5 are corrected (ST65). The defect correction unit 17 reads the temporarily stored image data, and performs defect pixel correction on the pixel data for each pixel in which defect address information is registered with frequency information of frequencies 4 to 5.
ステップST63における判定の結果、ISO感度が400以上でなかった場合には、次にISO感度が200以上か否かについて判定する(ST67)。この判定の結果、ISO感度が200以上の場合には、頻度5の欠陥について補正する(ST69)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。
If the result of determination in step ST63 is that the ISO sensitivity is not 400 or higher, it is next determined whether or not the ISO sensitivity is 200 or higher (ST67). If the ISO sensitivity is 200 or more as a result of this determination, the defect with
ステップST67における判定の結果、ISO感度が200以上でなかった場合には、欠陥画素補正を行わない(ST71)。図7の図表を用いて説明したように、ISO感度が200未満の場合には、点滅欠陥の画素レベルが小さい場合には欠陥画素として顕在化し難いことから、頻度5の画素であっても補正を行わない。 If the result of determination in step ST67 is that the ISO sensitivity is not 200 or higher, defective pixel correction is not performed (ST71). As described with reference to the chart of FIG. 7, when the ISO sensitivity is less than 200, it is difficult to manifest as a defective pixel when the pixel level of the blinking defect is small. Do not do.
ステップST71において補正を行わないと、またはステップST53、ST57、ST61、ST65、ST69において補正を行うと、ISO感度画素欠陥の補正処理を終了する。 If correction is not performed in step ST71, or correction is performed in steps ST53, ST57, ST61, ST65, and ST69, the ISO sensitivity pixel defect correction process is terminated.
このように、ISO感度画素欠陥補正処理のフローにおいては、ISO感度と頻度に応じて、欠陥画素補正の対象を変えている。すなわち、ISO感度が高いと、点滅欠陥の影響が顕在化しやすいことから、頻度が低い画素に対しても補正を行い、一方ISO感度が低いと、点滅欠陥の影響が顕在化し難いことから、頻度が高い画素に対してのみ補正を行うようにしている。補正対象の画素が多いと処理時間が長くなり、補正対象の画素を絞ると補正されない点滅欠陥が目立ってしまう。その点、本フローにおいては、補正対象の画素の数を最適にすることが可能となる。 As described above, in the ISO sensitivity pixel defect correction processing flow, the target of defective pixel correction is changed according to the ISO sensitivity and frequency. That is, if the ISO sensitivity is high, the influence of the blinking defect is likely to be manifested. Therefore, correction is performed even for a pixel having a low frequency. On the other hand, if the ISO sensitivity is low, the influence of the blinking defect is difficult to be manifested. Correction is performed only for pixels with a high. When there are many pixels to be corrected, the processing time becomes long, and when the pixels to be corrected are narrowed down, a blinking defect that is not corrected becomes conspicuous. In this regard, in this flow, the number of pixels to be corrected can be optimized.
次に、図9および図10を用いて、撮影時に行う、点滅欠陥の補正の他の例について説明する。図7および図8に示した例では、ISO感度情報および頻度に応じて、欠陥画素補正を行っていた。図9および図10に示す例では、撮影モード及び頻度に応じて、欠陥画素補正を行う。 Next, another example of correction of the blinking defect performed at the time of shooting will be described with reference to FIGS. 9 and 10. In the example shown in FIGS. 7 and 8, defective pixel correction is performed according to ISO sensitivity information and frequency. In the example shown in FIGS. 9 and 10, defective pixel correction is performed according to the shooting mode and frequency.
図9は、撮影モードと頻度の条件による欠陥補正の有無を示す図表である。図9において、縦欄に撮影モードを示し、横欄に頻度を示す。撮影モードとしては、静止画モード、動画/スルー画モード、複数枚加算処理、比較明合成処理を示す。 FIG. 9 is a chart showing the presence / absence of defect correction depending on the shooting mode and frequency conditions. In FIG. 9, the shooting mode is shown in the vertical column, and the frequency is shown in the horizontal column. As the shooting mode, a still image mode, a moving image / through image mode, a multiple image addition process, and a comparatively bright combination process are shown.
図9において、静止画モードの場合には、使用する画像が1枚であり、この1枚を撮影する際に、点滅欠陥が発生する可能性は全体的に極めて低い。そこで、発生頻度の高い画素のみを欠陥画素補正の対象とする。複数枚加算処理は、画像の対応する画素同士を加算していく処理である。この処理の際に、数枚〜数十枚の画像加算を行うため、静止画よりも発生頻度の低い画素も補正対象とする。 In FIG. 9, in the case of the still image mode, only one image is used, and the possibility that a blinking defect will occur when this one image is taken is extremely low overall. Therefore, only pixels with a high occurrence frequency are targeted for defective pixel correction. The multiple sheet addition process is a process of adding corresponding pixels of an image. Since several to several tens of images are added during this process, pixels that are less frequently generated than still images are also subject to correction.
また、動画は複数の画像を順次撮影して記録する。またルー画では、複数の画像を順次撮影して表示する。動画/スルー画は1秒間に数十〜数百フレームの撮影を行うため、点滅欠陥があると、チラつきの原因となる。このため、動画/スルー画では、1枚撮影の動作となっているが、静止画よりも発生頻度の低い画素も補正対象とする。 In addition, a moving image is recorded by sequentially capturing a plurality of images. In the case of a roux image, a plurality of images are sequentially captured and displayed. Since moving images / through images are shot at several tens to several hundreds of frames per second, flickering is a cause of flickering. For this reason, in the moving image / through image, a single-image shooting operation is performed, but pixels that occur less frequently than still images are also subject to correction.
比較明合成処理は、画像の対応する画素同士を比較し、明るい画素の画素データに置き換える処理である。この処理の際に、数百〜数万の画像合成を行うことから、画像合成処理の間に点滅欠陥が生じる可能性が高い。そこで、発生頻度の相当低い画素も欠陥画素補正の対象とする。 The comparatively bright combination process is a process in which corresponding pixels of an image are compared and replaced with pixel data of bright pixels. In this process, hundreds to tens of thousands of image synthesis are performed, so that there is a high possibility that a blinking defect will occur during the image synthesis process. Therefore, pixels with a low occurrence frequency are also subjected to defective pixel correction.
欠陥画素補正は、図7および図8における欠陥画素補正の場合と同様、種々の補正方法の中から選択すればよい。対象画素が正常画素だった場合に、欠陥画素補正を行うと、過補正となってしまうため、図9に示されるような条件に応じて補正することが好ましい。 The defective pixel correction may be selected from various correction methods as in the case of the defective pixel correction in FIGS. If the target pixel is a normal pixel and defective pixel correction is performed, overcorrection occurs. Therefore, it is preferable to perform correction according to the conditions shown in FIG.
図10に示すフローチャートは、図9に示した補正条件に従って、補正を行う場合の処理手順を示す。この処理においても、図7および図8の場合と同様、撮影時には、イメージセンサ4から画像データを読出し、内部メモリ33に一時的に記憶される。欠陥補正部17は、内部メモリ33に一時記憶された画像データに対して、撮影モードに応じて、内部メモリ33内に登録されている欠陥画素の欠陥アドレス情報と頻度情報を用いて、補正を行う。
The flowchart shown in FIG. 10 shows a processing procedure when correction is performed in accordance with the correction conditions shown in FIG. Also in this process, as in the case of FIG. 7 and FIG. 8, image data is read from the image sensor 4 and temporarily stored in the
このフローでは、内部メモリ33に一時記憶された画像データを読出み出すと、ステップST81から、処理を実行する。そして、ステップST81、ST85、ST89、ST93において、撮影モードの判定を行い、判定された撮影モードと頻度に応じた補正を行う(但し、ST93の条件を満たさない場合は補正を行わない)。この一連の処理が終わると、元のフローに戻る。
In this flow, when the image data temporarily stored in the
撮影モード画素欠陥補正処理のフローが開始すると、まず、比較明合成処理か否かを判定する(ST81)。ユーザが比較明合成処理によって画像を生成したい場合には、入力IF38によって、この合成モードを選択する。このステップでは、比較明合成処理モードが設定されているか否かについて判定する。この判定の結果、比較明合成処理モードが設定されていた場合には、頻度1〜5の欠陥について補正する(ST83)。前述したように、内部メモリ33には、欠陥画素の欠陥アドレス情報と頻度情報が登録されている。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度1〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。図9の図表を用いて説明したように、比較明合成処理を行う場合には、画像合成の枚数が多いことから、この間、点滅欠陥が発生することが多い。そこで、頻度の低い画素も含め、頻度1〜5の全ての画素に対して補正を行う。
When the flow of the shooting mode pixel defect correction process is started, it is first determined whether or not it is a comparatively bright combination process (ST81). When the user wants to generate an image by comparatively bright combination processing, this combination mode is selected by the input IF 38. In this step, it is determined whether or not a comparatively bright combination processing mode is set. If the result of this determination is that a comparatively bright combination processing mode has been set, defects with
ステップST81における判定の結果、撮影モードが比較明合成処理でなかった場合には、次に撮影モードが複数枚加算処理か否かについて判定する(ST85)。この判定の結果、撮影モードが複数枚加算処理の場合には、頻度3〜5の欠陥について補正する(ST87)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度3〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。
If the result of determination in step ST81 is that the shooting mode is not comparatively bright combining processing, it is next determined whether or not the shooting mode is processing for adding a plurality of images (ST85). If the result of this determination is that the shooting mode is multiple-sheet addition processing, defects with a frequency of 3 to 5 are corrected (ST87). The defect correction unit 17 reads the temporarily stored image data, and performs defect pixel correction on the pixel data for each pixel in which defect address information is registered with frequency information of
ステップST85における判定の結果、撮影モードが複数枚加算処理でなかった場合には、次に撮影モードが動画か否かについて判定する(ST89)。この判定の結果、動画モードの場合には、頻度4〜5の欠陥について補正する(ST91)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度4〜5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。 If the result of determination in step ST85 is that the shooting mode is not multiple-sheet addition processing, it is next determined whether or not the shooting mode is moving image (ST89). As a result of the determination, in the case of the moving image mode, the defect having the frequency of 4 to 5 is corrected (ST91). The defect correction unit 17 reads the temporarily stored image data, and performs defect pixel correction on the pixel data for each pixel in which defect address information is registered with frequency information of frequencies 4 to 5.
ステップST89における判定の結果、撮影モードが動画モードでなかった場合には、次に撮影モードが静止画モードか否かについて判定する(ST93)。この判定の結果、撮影モードが静止画モードの場合には、頻度5の欠陥について補正する(ST95)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報が頻度5として欠陥アドレス情報が登録されている画素毎に、その画素データに対して欠陥画素補正を行う。
If the result of determination in step ST89 is that the shooting mode is not moving image mode, it is next determined whether or not the shooting mode is still image mode (ST93). If the result of this determination is that the shooting mode is still image mode, defects with
ステップST93における判定の結果、撮影モードが静止画でなかった場合には、欠陥画素補正を行わない。ステップST93における判定の結果が、静止画モードでない場合、またはステップST83、ST87、ST91、ST95において補正を行うと、撮影モード画素欠陥の補正処理を終了する。 If the result of determination in step ST93 is that the shooting mode is not a still image, defective pixel correction is not performed. If the result of determination in step ST93 is not the still image mode, or if correction is performed in steps ST83, ST87, ST91, and ST95, the shooting mode pixel defect correction processing ends.
このように、撮影モード画素欠陥処理のフローにおいては、撮影モードと頻度に応じて、欠陥画素補正の対象を変えている。すなわち、比較明合成処理のように、処理対象となる画像の数が多く、処理の特性上、点滅欠陥が発生した場合の欠陥が消えないことから、頻度が低い画素に対しても補正を行う。一方静止画モードのように、処理対象となる画像の数が少ない(静止画モードでは1枚)場合には、点滅欠陥が発生し難いことから、頻度が高い画素に対してのみ補正を行うようにしている。 As described above, in the shooting mode pixel defect processing flow, the target of defective pixel correction is changed according to the shooting mode and frequency. That is, as in the comparatively bright combination process, the number of images to be processed is large, and the defect when the blinking defect occurs due to the characteristics of the process does not disappear. . On the other hand, when the number of images to be processed is small (one in the still image mode) as in the still image mode, the blinking defect is unlikely to occur, so that correction is performed only for pixels with high frequency. I have to.
なお、図9および図10に示す例では、撮影モードとして、比較明合成処理、複数枚加算処理、動画、静止画の4つのみについて説明した。しかし、これに限らず、例えば、深度合成処理、パノラマ合成、HDR処理、加算平均、多重露光等の、他の合成処理についても同様に、頻度に応じて、画素欠陥補正処理を行うようにしてもよい。また、頻度の分類数についても、5分類に限られない。 In the example illustrated in FIGS. 9 and 10, only four of the comparatively bright combination processing, the multiple image addition processing, the moving image, and the still image have been described as the shooting modes. However, the present invention is not limited to this. For example, pixel defect correction processing is performed according to the frequency for other combining processing such as depth combining processing, panoramic combining, HDR processing, addition averaging, and multiple exposure. Also good. Further, the number of frequency classifications is not limited to five.
次に、図11および図12を用いて、撮影時に行う、点滅欠陥の補正の他の例について説明する。図7ないし図11に示した例では、頻度の検出を行うための比較明合成の枚数の判定用の所定数は固定値であった(図5のST17参照)。図11および図12に示す例においては、頻度測定時(調整時)の判定用の所定数を複数用意し、画素毎の頻度を登録しておく。撮影時には、撮影モードに応じて、調整時に使用した比較明合成の数に応じた頻度としている。 Next, another example of correction of the blinking defect performed at the time of shooting will be described with reference to FIGS. 11 and 12. In the examples shown in FIGS. 7 to 11, the predetermined number for determining the number of comparatively bright composites for detecting the frequency is a fixed value (see ST17 in FIG. 5). In the example shown in FIGS. 11 and 12, a plurality of predetermined numbers for determination at the time of frequency measurement (adjustment) are prepared, and the frequency for each pixel is registered. At the time of shooting, the frequency is set according to the number of comparatively bright composites used at the time of adjustment according to the shooting mode.
頻度測定時(調整時)に比較明合成の数を変えて頻度を登録しておくことについて説明する。欠陥画素の補正は、補間処理等で置き換えることが多いため、補正対象は最小限にするのが好ましい。調整時(図5のフローの実行時)に画像加算枚数が同じである場合(図5のST9参照)、比較明合成枚数が多いほど(図5のST17参照)、検出精度が高くなり、撮影時に補正したい画素を精度良く補正することができる。特に発生頻度の低い点滅欠陥においては、調整時の比較明合成回数を多くすることによって、撮影時に点滅欠陥を検出することが可能になる場合がある。 A description will be given of registering the frequency by changing the number of comparatively bright composites during frequency measurement (during adjustment). Since correction of defective pixels is often replaced by interpolation processing or the like, it is preferable to minimize the correction target. When the number of added images is the same at the time of adjustment (when the flow of FIG. 5 is executed) (see ST9 of FIG. 5), the higher the number of comparatively bright composites (see ST17 of FIG. 5), the higher the detection accuracy and the shooting. It is possible to correct a pixel to be corrected sometimes with high accuracy. In particular, in the case of a flashing defect with a low occurrence frequency, it may be possible to detect the flashing defect at the time of shooting by increasing the number of times of comparatively bright combination at the time of adjustment.
例えば、調整時の加算枚数を10枚に設定すると、点滅欠陥が10%の頻度のものしか抽出できない。しかし、10枚の画像を加算して1枚の加算画像を生成し、10枚の加算画像を用いて、10回比較明合成を行うことにより、発生頻度が1%の点滅欠陥を抽出することができる。単純に100枚の画像を加算する場合は、ノイズ成分も加算されてしまい、発生頻度が1%の点滅欠陥を抽出することができない。したがって、点滅欠陥の頻度の測定にあたっては、単に加算処理だけではなく、比較明合成処理を行うことが好ましい。
For example, if the number of additions at the time of adjustment is set to 10, only those having a frequency of blinking defects of 10% can be extracted. However, 10 images are added to generate one added image, and 10 additional images are used to perform comparatively
頻度測定時の比較明合成回数と発生頻度を関連付けておき、図9と同じように、撮影モードの違いにより、補正対象とする画素を選択することが可能となり、精度の良い補正を実施することができる。一例を図11に示す。 Associating the number of comparatively bright composites at the time of frequency measurement with the occurrence frequency, and as in FIG. 9, it becomes possible to select a pixel to be corrected depending on the shooting mode, and to perform accurate correction. Can do. An example is shown in FIG.
図11は、撮影モードと頻度の条件による欠陥補正の有無を示す図表である。図11の縦欄に撮影モードを示し、横欄に点滅欠陥抽出時(頻度測定時)の比較明合成回数を示す。静止画は、発生頻度の高い画素のみを補正対象とするために、少ない比較明合成回数でも発生する画素を対象とする。動画やスルー画では、欠陥はチラつきの原因となるため、静止画よりも発生頻度の低い(比較明合成回数を増やして抽出した)画素を補正対象とする。複数枚加算処理は、数枚〜数十枚の画像加算を行うため、静止画や動画よりも発生頻度の低い(比較明合成回数を増やして抽出した)画素を補正対象とする。比較明合成処理では、数百〜数万の画像を合成処理するため、比較明合成した枚数の多い画像から抽出した画素を補正対象とする。 FIG. 11 is a chart showing the presence or absence of defect correction depending on the shooting mode and frequency conditions. The shooting mode is shown in the vertical column of FIG. 11, and the number of times of comparatively bright combination at the time of extracting the blinking defect (during frequency measurement) is shown in the horizontal column. Since only a pixel with a high occurrence frequency is to be corrected, the still image is for a pixel that is generated even with a small number of comparatively bright combinations. In a moving image or a through image, a defect causes flickering. Therefore, a pixel whose occurrence frequency is lower than that of a still image (extracted by increasing the number of times of comparison light combination) is set as a correction target. In the multiple image addition process, several to several tens of images are added, and therefore pixels whose occurrence frequency is lower than that of a still image or a moving image (extracted by increasing the number of times of comparison light combination) are to be corrected. In the comparatively bright combination process, since hundreds to tens of thousands of images are combined, pixels extracted from a comparatively brightly combined number of images are set as correction targets.
図12に示すフローチャートは、図11に示した補正条件に従って、補正を行う場合の処理手順を示す。この例では、頻度測定時に図5のST17における判定用の比較明合成回数を、複数用意しておき、比較明合成回数毎に閾値を超えた画素のアドレス情報を、内部メモリ33に登録しておく。また、撮影時には、イメージセンサ4から画像データを読出し、内部メモリ33に一時的に記憶される。欠陥補正部17は、内部メモリ33に一時記憶された画像データに対して、撮影モードに応じて、内部メモリ33内に登録されている欠陥画素の欠陥アドレス情報と頻度情報(比較明合成回数)を用いて、補正を行う。
The flowchart shown in FIG. 12 shows a processing procedure when correction is performed in accordance with the correction conditions shown in FIG. In this example, a plurality of comparative bright combination counts for determination in ST17 of FIG. 5 are prepared at the time of frequency measurement, and the address information of pixels exceeding the threshold is registered in the
このフローでは、内部メモリ33に一時記憶された画像データを読出み出すと、ステップST101から、処理を実行する。そして、ステップST101、ST105、ST109、ST113において、撮影モードの判定を行い、判定された撮影モードと比較明合成回数(頻度)に応じた補正を行う(但し、ST113の条件を満たさない場合は補正を行わない)。この一連の処理が終わると、元のフローに戻る。
In this flow, when image data temporarily stored in the
撮影モード画素欠陥補正処理のフローが開始すると、まず、比較明合成処理か否かを判定する(ST101)。ユーザが比較明合成処理によって画像を生成したい場合には、入力IF38によって、この合成モードを選択する。このステップでは、比較明合成処理モードが設定されているか否かについて判定する。この判定の結果、比較明合成処理モードが設定されていた場合には、比較明合成1000回以下で抽出した画素欠陥を補正する(ST103)。前述したように、内部メモリ33には、欠陥画素の欠陥アドレス情報と頻度情報(比較明合成回数情報)が登録されている。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報として比較明合成回数が1000回以下で画素欠陥があると抽出した画素毎に、その画素データに対して欠陥画素補正を行う。
When the flow of the shooting mode pixel defect correction process starts, it is first determined whether or not it is a comparatively bright combination process (ST101). When the user wants to generate an image by comparatively bright combination processing, this combination mode is selected by the input IF 38. In this step, it is determined whether or not a comparatively bright combination processing mode is set. If the result of this determination is that a comparatively bright combination processing mode has been set, pixel defects extracted at a comparatively bright combination 1000 times or less are corrected (ST103). As described above, in the
ステップST101における判定の結果、撮影モードが比較明合成処理でなかった場合には、次に撮影モードが複数枚加算処理か否かについて判定する(ST105)。この判定の結果、撮影モードが複数枚加算処理の場合には、比較明合成100回以下で抽出した画素欠陥を補正する(ST107)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報として比較明合成回数が100回以下で画素欠陥があると抽出した画素毎に、その画素データに対して欠陥画素補正を行う。 If the result of determination in step ST <b> 101 is that the shooting mode is not comparatively bright combining processing, it is next determined whether or not the shooting mode is processing for adding multiple images (ST <b> 105). If the result of this determination is that the shooting mode is a multiple image addition process, pixel defects extracted in 100 or less comparatively bright combinations are corrected (ST107). The defect correction unit 17 reads out the temporarily stored image data, and performs defective pixel correction on the pixel data for each pixel extracted as having frequency information of which the number of comparatively bright combination is 100 or less and there is a pixel defect.
ステップST105における判定の結果、撮影モードが複数枚加算処理でなかった場合には、次に撮影モードが動画か否かについて判定する(ST109)。この判定の結果、撮影モードが動画の場合には、比較明合成10回以下で抽出した画素欠陥を補正する(ST111)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報として比較明合成回数が10回以下で画素欠陥があると抽出した画素毎に、その画素データに対して欠陥画素補正を行う。 If the result of determination in step ST105 is that the shooting mode is not multiple-sheet addition processing, it is next determined whether or not the shooting mode is moving image (ST109). If the result of this determination is that the shooting mode is moving image, pixel defects extracted in 10 or less comparatively bright composites are corrected (ST111). The defect correction unit 17 reads the temporarily stored image data, and performs defective pixel correction on the pixel data for each pixel extracted as having frequency information of which the number of times of comparative bright combination is 10 or less and there is a pixel defect.
ステップST109における判定の結果、撮影モードが動画でなかった場合には、次に撮影モードが静止画か否かについて判定する(ST113)。この判定の結果、撮影モードが静止画の場合には、比較明合成5回以下で抽出した画素欠陥を補正する(ST115)。欠陥補正部17は、一時記憶された画像データを読出し、頻度情報として比較明合成回数が5回以下で画素欠陥があると抽出した画素毎に、その画素データに対して欠陥画素補正を行う。 If the result of determination in step ST109 is that the shooting mode is not video, it is next determined whether or not the shooting mode is a still image (ST113). If the result of this determination is that the shooting mode is still image, pixel defects extracted in 5 or less comparatively bright composites are corrected (ST115). The defect correction unit 17 reads the temporarily stored image data, and performs defective pixel correction on the pixel data for each pixel that is extracted as a frequency information when the number of comparatively bright combination is 5 or less and there is a pixel defect.
ステップST113における判定の結果、撮影モードが静止画でなかった場合には、欠陥画素補正を行わない。ステップST113における判定の結果が、静止画モードでない場合、またはステップST103、ST107、ST111、ST115において補正を行うと、撮影モード画素欠陥の補正処理を終了する。 If the result of determination in step ST113 is that the shooting mode is not a still image, defective pixel correction is not performed. If the result of determination in step ST113 is not the still image mode, or if correction is performed in steps ST103, ST107, ST111, and ST115, the shooting mode pixel defect correction processing is terminated.
このように、図12に示す撮影モード画素欠陥処理のフローにおいては、撮影モードと頻度(比較明合成回数)に応じて、欠陥画素補正の対象を変えている。すなわち、撮影モードの特性に応じて、点滅欠陥の発生頻度を検出するにあたって、比較明合成回数を利用している。出力画像に対する点滅欠陥の影響が大きくない撮影モードの場合には、少ない比較明合成回数で抽出した画素に対して、一方出力画像に対する点滅欠陥の影響が大きい撮影モードの場合には、多数の比較明合成回数で抽出した画素に対して、画素欠陥補正を行っている。 In this way, in the shooting mode pixel defect processing flow shown in FIG. 12, the target of defective pixel correction is changed according to the shooting mode and the frequency (number of times of comparatively bright combination). That is, the number of times of comparatively bright combination is used in detecting the occurrence frequency of the blinking defect according to the characteristics of the shooting mode. In the case of a shooting mode in which the influence of the blinking defect on the output image is not large, a number of comparisons are performed in the case of the shooting mode in which the influence of the blinking defect on the output image is large on the pixel extracted with a small number of comparatively bright combination Pixel defect correction is performed on the pixels extracted by the number of times of bright synthesis.
なお、図11および図12に示す例では、撮影モードとして、比較明合成処理、複数枚加算処理、動画、静止画の4つのみについて説明した。しかし、これに限らず、例えば、深度合成処理、パノラマ合成、HDR処理、加算平均、多重露光等、他の合成処理についても同様に、頻度に応じて、画素欠陥補正処理を行うようにしてもよい。また、頻度の分類数についても、5分類に限られない。 In the example shown in FIG. 11 and FIG. 12, only four of the comparative bright combination processing, the multiple image addition processing, the moving image, and the still image have been described as the shooting modes. However, the present invention is not limited to this. For example, the pixel defect correction processing may be performed according to the frequency in the same manner for other combining processing such as depth combining processing, panoramic combining, HDR processing, addition averaging, and multiple exposure. Good. Further, the number of frequency classifications is not limited to five.
以上説明したように、本発明の一実施形態における撮像装置は、複数の画素を有し、入射光を光電変換し、画像信号を生成する撮像素子(イメージセンサ4参照)を有している。そして、撮像素子から画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算し(例えば、図5のST1〜ST9参照)、加算された画像信号を画素毎に比較明合成している(例えば、図5のST11〜ST17参照)。この比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出し、検出された画素信号の位置を記憶している(例えば、図5のST19、図6参照)。このため、点滅欠陥の発生頻度を考慮し、また短時間で欠陥画素を検出できる。 As described above, the imaging device according to an embodiment of the present invention has a plurality of pixels, and has an imaging element (see image sensor 4) that photoelectrically converts incident light and generates an image signal. Then, image signals are acquired from the image sensors at different times, the acquired image signals are added for each pixel (for example, see ST1 to ST9 in FIG. 5), and the added image signals are compared for each pixel. Bright synthesis is performed (for example, see ST11 to ST17 in FIG. 5). Among the pixel signals included in the comparatively brightly synthesized image signal, a pixel signal exceeding a predetermined threshold is detected, and the position of the detected pixel signal is stored (for example, ST19 in FIG. 5, FIG. 6). reference). For this reason, the defective pixel can be detected in a short time in consideration of the occurrence frequency of the blinking defect.
また、本発明の一実施形態においては、欠陥検出時に比較明合成を実施し(図5のST13参照)、合成結果の画像に対して任意のレベル以上を点滅欠陥と判定する(図5のST19、図6参照)。このとき、比較明合成前の複数画像に対して加算処理を施す(図5のST5参照)ことによって、点滅頻度の画素のレベルを高くして、欠陥画素を抽出しやすくしている。特に、加算処理を行うことにより、点滅頻度の高いものの画素値(レベル)が上がる為、簡易的な処理のみで点滅欠陥を抽出しやすくなる。 Further, in one embodiment of the present invention, comparatively bright combination is performed at the time of defect detection (see ST13 in FIG. 5), and an arbitrary level or higher is determined as a blinking defect with respect to the combined image (ST19 in FIG. 5). FIG. 6). At this time, by performing addition processing on a plurality of images before comparatively bright combination (see ST5 in FIG. 5), the level of the blinking pixel is increased to facilitate extraction of defective pixels. In particular, by performing the addition process, the pixel value (level) increases although the blinking frequency is high, so that it is easy to extract the blinking defect only by simple processing.
また、本発明の一実施形態においては、用途(撮影モード)と点滅頻度に応じて補正対象画素を変えることが可能となる。例えば、比較明合成時は点滅頻度が低くても補正対象とし(例えば、図12のST103参照)、一方、動画に使用する場合は、1/10回以上の頻度の点滅を補正対象としている(例えば、図12のST111参照)。用途(撮影モード)以外にも、撮像素子や駆動方法の条件によっても点滅頻度が異なるため、点滅頻度に応じた、補正処理が可能となる。 In one embodiment of the present invention, it is possible to change the correction target pixel according to the application (shooting mode) and the blinking frequency. For example, during comparatively bright combination, even if the blinking frequency is low, it is a correction target (see, for example, ST103 in FIG. 12). For example, see ST111 in FIG. 12). In addition to the purpose (photographing mode), the blinking frequency varies depending on the conditions of the image sensor and the driving method, so that correction processing according to the blinking frequency is possible.
また、本発明の一実施形態においては、頻度測定時に、加算合成処理や比較明合成処理を行う際に、それぞれの条件で抽出した画素を、その条件に応じて内部メモリにアドレス情報を登録している(例えば、図6参照)。そして、撮影の際に、撮影条件に応じて、補正するかどうかを判断している(例えば、図8、図10、図12参照)。このため、撮影条件および点滅頻度に応じた補正を行うことができる。 In one embodiment of the present invention, when performing addition synthesis processing or comparatively bright synthesis processing at the time of frequency measurement, the pixel information extracted under each condition is registered in the internal memory according to the condition. (See, for example, FIG. 6). Then, at the time of shooting, it is determined whether or not to correct according to shooting conditions (see, for example, FIGS. 8, 10, and 12). For this reason, it is possible to perform correction according to shooting conditions and blinking frequency.
なお、本発明の一実施形態においては、複数の画像データについて、加算処理および比較明合成処理を施して、検出用の画像データを生成していた。しかし、比較明合成処理を省略し、加算画像を検出用の画像データとしてもよく、また加算処理を省略して比較明合成画像を検出用の画像データとしてもよい。 In one embodiment of the present invention, detection image data is generated by performing addition processing and comparatively bright combination processing on a plurality of image data. However, the comparatively bright combination process may be omitted and the added image may be used as detection image data, or the addition process may be omitted and the comparatively bright combined image may be used as detection image data.
また、本発明の一実施形態においては、製造工程等の調整作業で実施する場合は、時間をとって比較明合成等の回数(図5のST9、ST17参照)を多くし、ユーザ操作としてカメラで実施する場合は比較明合成等の回数を減らして、処理時間を短くするようにしてもよい。調整時に比較明合成等を行う回数は多い方が、抽出精度を高くすることができる。しかし、調整時間も考慮して、適宜、比較明合成等の処理回数を設定すればよい。 Further, in one embodiment of the present invention, when adjustment is performed in a manufacturing process or the like, the number of times of comparatively bright synthesis is increased by taking time (see ST9 and ST17 in FIG. 5), and the camera is operated as a user operation. In the case of carrying out the above, the number of times of comparatively bright synthesis or the like may be reduced to shorten the processing time. The extraction accuracy can be increased as the number of times of performing comparatively bright combination or the like during the adjustment is larger. However, considering the adjustment time, the number of times of processing such as comparatively bright composition may be set as appropriate.
また、本発明の一実施形態においては、欠陥判定部14、加算枚数判定部15、比較明合成枚数判定部16等を、システム制御部20とは別体の構成とした。しかし、各部の全部または一部をソフトウエアで構成し、制御部20内のCPUによって実行するようにしても勿論かまわない。また、画像処理部10内の各部は、ハードウエア回路で構成する以外にも、ヴェリログ(Verilog)によって記述されたプログラム言語に基づいて生成されたゲート回路等のハードウエア構成でもよく、またDSP(Digital Signal Processor)等のソフトを利用したハードウエア構成を利用してもよい。これらは適宜組み合わせてもよいことは勿論である。
In one embodiment of the present invention, the
また、本実施形態においては、撮影のための撮像装置として、デジタルカメラを用いて説明したが、カメラとしては、デジタル一眼レフカメラでもミラーレスカメラでもコンパクトデジタルカメラでもよく、ビデオカメラ、ムービーカメラのような動画用のカメラでもよく、さらに、携帯電話、スマートフォン、携帯情報端末、パーソナルコンピュータ(PC)、タブレット型コンピュータ、ゲーム機器等に内蔵されるカメラ、医療用カメラ、顕微鏡等の科学機器用のカメラ、自動車搭載用カメラ、監視用カメラでも構わない。いずれにしても、点滅欠陥が生ずるような撮像素子を搭載した機器であれば、本発明を適用することができる。 In this embodiment, a digital camera is used as the imaging device for shooting. However, the camera may be a digital single lens reflex camera, a mirrorless camera, or a compact digital camera. It may be a camera for moving images such as a mobile phone, a smartphone, a personal digital assistant (PC), a personal computer (PC), a tablet computer, a camera built in a game machine, a medical camera, a scientific camera such as a microscope. A camera, an on-vehicle camera, or a surveillance camera may be used. In any case, the present invention can be applied to any device equipped with an image sensor that causes a blinking defect.
また、本明細書において説明した技術のうち、主にフローチャートで説明した制御に関しては、プログラムで設定可能であることが多く、記録媒体や記録部に収められる場合もある。この記録媒体、記録部への記録の仕方は、製品出荷時に記録してもよく、配布された記録媒体を利用してもよく、インターネットを介してダウンロードしたものでもよい。 Of the techniques described in this specification, the control mainly described in the flowchart is often settable by a program and may be stored in a recording medium or a recording unit. The recording method for the recording medium and the recording unit may be recorded at the time of product shipment, may be a distributed recording medium, or may be downloaded via the Internet.
また、本発明の一実施形態においては、フローチャートを用いて、本実施形態における動作を説明したが、処理手順は、順番を変えてもよく、また、いずれかのステップを省略してもよく、ステップを追加してもよく、さらに各ステップ内における具体的な処理内容を変更してもよい。 Further, in one embodiment of the present invention, the operation in the present embodiment has been described using a flowchart. However, the processing procedure may be changed in order, or any step may be omitted. Steps may be added, and specific processing contents in each step may be changed.
また、特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず」、「次に」等の順番を表現する言葉を用いて説明したとしても、特に説明していない箇所では、この順で実施することが必須であることを意味するものではない。 In addition, regarding the operation flow in the claims, the specification, and the drawings, even if it is described using words expressing the order such as “first”, “next”, etc. It does not mean that it is essential to implement in this order.
本発明は、上記実施形態にそのまま限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素の幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。 The present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, you may delete some components of all the components shown by embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.
1・・・撮像部、2・・・レンズ(絞り)、3・・・メカシャッタ、4・・・イメージセンサ、5・・・温度センサ、10・・・画像処理部、11・・・画像合成部、12・・・比較明合成部、13・・・画像加算部、14・・・欠陥判定部、15・・・加算枚数判定部、16・・・比較明合成判定部、17・・・欠陥補正部、18・・・現像処理部、20・・・システム制御部、31・・・バス、33・・・内部メモリ、36・・・外部メモリ、37・・・表示部、38・・・入力IF、39・・・条件設定部
DESCRIPTION OF
Claims (14)
上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算する加算部と、
上記加算された画像信号を画素毎に比較明合成する比較明合成部と、
上記比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部と、
上記検出された画素信号の位置を記憶する記憶部と、
を具備することを特徴とする撮像装置。 An imaging device having a plurality of pixels, photoelectrically converting incident light, and generating an image signal;
An adder that obtains the image signals from the image sensor at different times and adds the obtained image signals for each pixel;
A comparatively bright combining unit that performs comparatively bright combining of the added image signal for each pixel;
A detection unit for detecting a pixel signal exceeding a predetermined threshold among the pixel signals included in the comparatively brightly synthesized image signal;
A storage unit for storing the position of the detected pixel signal;
An imaging apparatus comprising:
上記補正部は、上記記憶された加算数に基づいて画素信号を補正することを特徴とする請求項3に記載の撮像装置。 Among image signals generated by the imaging unit, a correction unit that corrects a pixel signal at a position stored in the storage unit,
The imaging apparatus according to claim 3, wherein the correction unit corrects a pixel signal based on the stored number of additions.
上記補正部は、上記記憶された合成数に基づいて画素信号を補正することを特徴とする請求項6に記載の撮像装置。 Among image signals generated by the imaging unit, a correction unit that corrects a pixel signal at a position stored in the storage unit,
The imaging apparatus according to claim 6, wherein the correction unit corrects a pixel signal based on the stored composite number.
上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に比較明合成する比較明合成部と、
上記比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部と、
上記検出された画素信号の位置を記憶する記憶部と、
を具備することを特徴とする撮像装置。 An imaging device having a plurality of pixels, photoelectrically converting incident light, and generating an image signal;
A comparatively bright combining unit that acquires the image signals from the image sensor at different times, and performs comparatively bright combining of the acquired plurality of image signals for each pixel;
A detection unit for detecting a pixel signal exceeding a predetermined threshold among the pixel signals included in the comparatively brightly synthesized image signal;
A storage unit for storing the position of the detected pixel signal;
An imaging apparatus comprising:
上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算する加算部と、
上記加算された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出する検出部と、
上記検出された画素信号の位置を記憶する記憶部と、
を具備することを特徴とする撮像装置。 An imaging device having a plurality of pixels, photoelectrically converting incident light, and generating an image signal;
An adder that obtains the image signals from the image sensor at different times and adds the obtained image signals for each pixel;
A detection unit for detecting a pixel signal exceeding a predetermined threshold among the pixel signals included in the added image signal;
A storage unit for storing the position of the detected pixel signal;
An imaging apparatus comprising:
上記複数の画素の中で、点滅欠陥であると検出された画素信号の位置を記憶する記憶部と、
上記画像信号のうちで、上記記憶部に記憶された位置の画素信号を補正する補正部と、
を有することを特徴とする撮像装置。 An imaging device having a plurality of pixels, photoelectrically converting incident light, and generating an image signal;
A storage unit that stores a position of a pixel signal detected as a blinking defect among the plurality of pixels,
Among the image signals, a correction unit that corrects a pixel signal at a position stored in the storage unit;
An imaging device comprising:
上記補正部は、上記頻度に応じて、補正する画素を選択する、
ことを特徴とする請求項10に記載の撮像装置。 The storage unit stores the frequency of the blinking defect together with the position of the pixel signal;
The correction unit selects a pixel to be corrected according to the frequency.
The imaging apparatus according to claim 10.
上記撮像素子から上記画像信号を異なる時刻にそれぞれ取得し、この取得した複数の画像信号を画素毎に加算し、
上記加算された画像信号を画素毎に比較明合成し、
上記比較明合成された画像信号に含まれる画素信号のうちで、所定の閾値を越える画素信号を検出し、
上記検出された画素信号の位置を記憶する、
ことを特徴とする撮像方法。 In an imaging method in an imaging apparatus having a plurality of pixels, having an imaging element that photoelectrically converts incident light and generates an image signal,
The image signals are acquired from the image sensor at different times, and the acquired image signals are added for each pixel.
The above-mentioned added image signal is relatively brightly synthesized for each pixel,
Among pixel signals included in the comparatively brightly synthesized image signal, a pixel signal exceeding a predetermined threshold is detected,
Storing the position of the detected pixel signal;
An imaging method characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018036303A JP7064351B2 (en) | 2018-03-01 | 2018-03-01 | Imaging device and imaging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018036303A JP7064351B2 (en) | 2018-03-01 | 2018-03-01 | Imaging device and imaging method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019153866A true JP2019153866A (en) | 2019-09-12 |
JP7064351B2 JP7064351B2 (en) | 2022-05-10 |
Family
ID=67948972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018036303A Active JP7064351B2 (en) | 2018-03-01 | 2018-03-01 | Imaging device and imaging method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7064351B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006319602A (en) * | 2005-05-12 | 2006-11-24 | Mitsubishi Electric Corp | Solid-state image pickup apparatus and method for detecting flicker defect |
JP2013148873A (en) * | 2011-12-19 | 2013-08-01 | Canon Inc | Imaging device and control method of the same |
-
2018
- 2018-03-01 JP JP2018036303A patent/JP7064351B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006319602A (en) * | 2005-05-12 | 2006-11-24 | Mitsubishi Electric Corp | Solid-state image pickup apparatus and method for detecting flicker defect |
JP2013148873A (en) * | 2011-12-19 | 2013-08-01 | Canon Inc | Imaging device and control method of the same |
Also Published As
Publication number | Publication date |
---|---|
JP7064351B2 (en) | 2022-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6278713B2 (en) | Imaging apparatus and imaging method | |
JP6370207B2 (en) | Imaging apparatus, image processing apparatus, imaging method, and program | |
JP2008131273A (en) | Image processor, image processing method and program | |
JP6351271B2 (en) | Image composition apparatus, image composition method, and program | |
JP5523065B2 (en) | Imaging apparatus and control method thereof | |
JP5889324B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
US9892497B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
US10136087B2 (en) | Imaging apparatus and imaging method | |
US10270991B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium | |
JP2013031010A (en) | Imaging apparatus, imaging method, and program | |
JP6305290B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
US10182188B2 (en) | Image pickup apparatus that automatically adjusts black balance, control method therefor, and storage medium | |
JP6478703B2 (en) | Imaging apparatus and imaging system | |
US10425602B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium | |
JP2020129753A (en) | Imaging apparatus and imaging method | |
JP5299159B2 (en) | Imaging apparatus and program | |
JP7064351B2 (en) | Imaging device and imaging method | |
KR101429512B1 (en) | Apparatus and method for reducing banding noise | |
JP2007306436A (en) | Imaging apparatus | |
JP2013118563A (en) | Imaging apparatus | |
JP6294607B2 (en) | IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM | |
JP2017038174A (en) | Imaging device, control method and program | |
JP2016225757A (en) | Imaging apparatus and imaging method | |
JP2017028568A (en) | Imaging device and imaging method | |
JP5301690B2 (en) | Imaging apparatus, method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210222 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20211115 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20211206 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220128 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220214 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220401 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220418 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220422 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 7064351 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |