JP4356604B2 - VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, VIDEO SIGNAL PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO SIGNAL PROCESSING PROGRAM - Google Patents
VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, VIDEO SIGNAL PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO SIGNAL PROCESSING PROGRAM Download PDFInfo
- Publication number
- JP4356604B2 JP4356604B2 JP2004366993A JP2004366993A JP4356604B2 JP 4356604 B2 JP4356604 B2 JP 4356604B2 JP 2004366993 A JP2004366993 A JP 2004366993A JP 2004366993 A JP2004366993 A JP 2004366993A JP 4356604 B2 JP4356604 B2 JP 4356604B2
- Authority
- JP
- Japan
- Prior art keywords
- video signal
- flicker
- integration
- result
- value
- 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.)
- Expired - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims description 91
- 238000003672 processing method Methods 0.000 title description 6
- PWPJGUXAGUPAHP-UHFFFAOYSA-N lufenuron Chemical compound C1=C(Cl)C(OC(F)(F)C(C(F)(F)F)F)=CC(Cl)=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F PWPJGUXAGUPAHP-UHFFFAOYSA-N 0.000 title 2
- 230000010354 integration Effects 0.000 claims description 94
- 238000012937 correction Methods 0.000 claims description 74
- 230000008859 change Effects 0.000 claims description 65
- 238000003384 imaging method Methods 0.000 claims description 42
- 238000001228 spectrum Methods 0.000 claims description 34
- 238000001514 detection method Methods 0.000 claims description 33
- 238000004458 analytical method Methods 0.000 claims description 31
- 238000000034 method Methods 0.000 claims description 31
- 238000004364 calculation method Methods 0.000 claims description 28
- 238000010606 normalization Methods 0.000 claims description 22
- 230000007423 decrease Effects 0.000 claims description 12
- 238000012935 Averaging Methods 0.000 claims description 5
- 238000009499 grossing Methods 0.000 claims description 3
- 230000000875 corresponding effect Effects 0.000 description 21
- 230000009467 reduction Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 15
- 238000003775 Density Functional Theory Methods 0.000 description 13
- 238000006243 chemical reaction Methods 0.000 description 12
- 230000014509 gene expression Effects 0.000 description 11
- 230000004397 blinking Effects 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000004044 response Effects 0.000 description 4
- 230000000295 complement effect Effects 0.000 description 3
- 101150063051 hom gene Proteins 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 101150014006 thrA gene Proteins 0.000 description 3
- 101150072448 thrB gene Proteins 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Picture Signal Circuits (AREA)
- Studio Devices (AREA)
Description
本発明は、映像信号処理装置、映像信号の処理方法、映像信号の処理プログラム及び映像信号の処理プログラムを記録した記録媒体に関し、例えばXYアドレス走査型の撮像素子を用いたビデオカメラに適用することができる。本発明は、信号レベルの変化を周波数解析してフリッカ周波数のスペクトルを検出し、連続するフィールド又はフレームにおけるこのスペクトルの初期位相の変化を判定して映像信号のフリッカ成分を抑圧することにより、従来に比して一段と簡易な処理により確実にフリッカを低減することができるようにする。 The present invention relates to a video signal processing device, a video signal processing method, a video signal processing program, and a recording medium on which a video signal processing program is recorded, and is applied to, for example, a video camera using an XY address scanning type imaging device. Can do. The present invention detects a flicker frequency spectrum by frequency analysis of a change in signal level, determines a change in the initial phase of this spectrum in a continuous field or frame, and suppresses a flicker component of a video signal. Compared to the above, flicker can be surely reduced by a simpler process.
従来、CMOS撮像素子等のXYアドレス走査型の撮像素子を用いた映像信号処理装置に関して、フリッカを低減する方法が種々に提案されている。 Conventionally, various methods for reducing flicker have been proposed for a video signal processing apparatus using an XY address scanning type image sensor such as a CMOS image sensor.
ここでフリッカは、蛍光灯等の点滅する光源の照明により撮影した場合に発生し、XYアドレス走査型の撮像素子を用いた映像信号処理装置では、図6に示すように、垂直方向の周期的な輝度レベル、色相の変動として観察される。ここで周波数50〔Hz〕の商用電源による蛍光灯では、点滅周波数が100〔Hz〕であることから、フィールド周波数60〔Hz〕によるNTSC方式のビデオ信号では、1フィールド当たりのライン数をMとおいて、このような変動の1周期Lは、L=M×60/100ラインとなる。また1フィールドで、このような周期的な変動は、100/60=1.66周期発生する。 Here, flicker occurs when shooting is performed with illumination of a blinking light source such as a fluorescent lamp. In the video signal processing apparatus using an XY address scanning type image sensor, as shown in FIG. It is observed as a change in brightness level and hue. Here, in a fluorescent lamp with a commercial power source having a frequency of 50 [Hz], the blinking frequency is 100 [Hz]. Therefore, in an NTSC video signal with a field frequency of 60 [Hz], the number of lines per field is M. One cycle L of such fluctuation is L = M × 60/100 lines. Further, in one field, such a periodic variation occurs 100/60 = 1.66 period.
このため特開2004−222228号公報には、映像信号の信号レベルの変化を周波数解析してフリッカ周波数のスペクトルを検出し、このスペクトルの振幅値に基づいて映像信号の信号レベルを補正することにより、フリッカを低減する方法が提案されている。この方法によれば、別途、フリッカ検出用の光学系等を設けなくても、XYアドレス走査型の撮像素子に固有の、フリッカによる垂直方向の周期的な輝度レベル、色相の変動を確実に防止することができる。なおここでフリッカ周波数は、光源の点滅周波数を意味する。 For this reason, Japanese Patent Laid-Open No. 2004-222228 discloses a technique for detecting a flicker frequency spectrum by frequency analysis of a change in the signal level of the video signal and correcting the signal level of the video signal based on the amplitude value of the spectrum. A method for reducing flicker has been proposed. According to this method, it is possible to reliably prevent vertical luminance level and hue fluctuations in the vertical direction due to flicker, which are inherent to an XY address scanning type imaging device, without separately providing an optical system or the like for detecting flicker. can do. Here, the flicker frequency means the blinking frequency of the light source.
しかしてこの方法の場合、フリッカ周波数によるスペクトルの振幅値が所定のしきい値以下の場合には、屋外等で自然光の照明により撮影する場合であると判定し、撮像結果を何ら補正することなく出力している。 In the case of this method, when the amplitude value of the spectrum by the flicker frequency is equal to or less than a predetermined threshold value, it is determined that the image is taken with natural light illumination outdoors or the like, and the imaging result is not corrected. Output.
しかしながら実際上、屋外の撮影においては、移動する物体を撮影する場合もあり、この移動する物体によりフリッカ周波数によるスペクトルが検出される場合がある。またこのようにして検出されるフリッカ周波数によるスペクトルは、露光時間、電子シャッターの速度等によって振幅値が変化する。 However, in practice, in outdoor shooting, a moving object may be shot, and a spectrum based on a flicker frequency may be detected by the moving object. The amplitude value of the spectrum based on the flicker frequency detected in this way varies depending on the exposure time, the speed of the electronic shutter, and the like.
これらにより特開2004−222228号公報に開示の手法では、撮影の条件によってフリッカ周波数のスペクトルを判定するしきい値を種々に変更する必要があり、その分、処理が煩雑になる問題があった。なおこのしきい値の設定が不適切な場合、誤って撮像結果を補正することになり、却って画質が劣化することになる。
本発明は以上の点を考慮してなされたもので、従来に比して一段と簡易な処理により確実にフリッカを低減することができる映像信号処理装置、映像信号の処理方法、映像信号の処理プログラム及び映像信号の処理プログラムを記録した記録媒体を提案しようとするものである。 The present invention has been made in consideration of the above points, and a video signal processing apparatus, a video signal processing method, and a video signal processing program capable of reliably reducing flicker by simpler processing than in the prior art. And a recording medium on which a video signal processing program is recorded.
かかる課題を解決するため請求項1の発明においては、映像信号処理装置に適用して、映像信号を取得する映像信号取得手段と、前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分手段と、隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化手段と、前記正規化手段の処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析手段と、前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出手段と、前記位相変化検出手段による検出結果と、前記フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算手段と、前記補正係数に基づいて映像信号の信号レベルを補正する映像信号補正手段とを備えるようにする。
In order to solve such a problem, in the invention of
また請求項6の発明においては、映像信号の処理方法に適用して、映像信号を取得する映像信号取得のステップと、前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分のステップと、隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化のステップと、前記正規化のステップの処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析のステップと、前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出のステップと、前記位相変化検出のステップによる検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算のステップと、前記補正係数に基づいて映像信号の信号レベルを補正する映像信号補正のステップとを備えるようにする。 According to a sixth aspect of the present invention, the video signal is applied to a video signal processing method, and the video signal is acquired in units of an integration period of one or more lines of the video signal. An integration step of integrating and outputting an integration result; a difference value of the integration result from the corresponding integration period in an adjacent field or frame; or a normalization step of normalizing the integration result; and the normalization Frequency analysis of the processing result of the step, and for each integration period, between the frequency analysis step of detecting the amplitude value and initial phase of the spectrum at the flicker frequency and the corresponding integration period of the adjacent field or frame A phase change detection step for detecting a change in the initial phase, a detection result by the phase change detection step, and a flicker. Based on a difference value from the logical value of the change in the initial phase, a correction coefficient calculation step for generating a correction coefficient whose value decreases as the detection result moves away from the logical value, and an image based on the correction coefficient And a video signal correcting step for correcting the signal level of the signal.
また請求項7の発明においては、演算処理手段に所定の処理手順を実行させることにより映像信号のフリッカを低減する映像信号の処理プログラムに適用して、前記処理手順は、映像信号を取得する映像信号取得のステップと、前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分のステップと、隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化のステップと、前記正規化のステップの処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析のステップと、前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出のステップと、前記位相変化検出のステップによる検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算のステップと、前記補正係数に基づいて映像信号の信号レベルを補正する映像信号補正のステップとを有するようにする。 According to a seventh aspect of the present invention, the processing procedure is applied to a video signal processing program for reducing the flicker of the video signal by causing the arithmetic processing means to execute a predetermined processing procedure. A signal acquisition step, an integration step of integrating the video signal and outputting an integration result in units of integration periods of one or more lines of the video signal, and a corresponding integration period in an adjacent field or frame; The normalization step of normalizing the integration result and the processing result of the normalization step are frequency-analyzed, and the amplitude value of the spectrum at the flicker frequency and the initial value for each integration period. Between the step of frequency analysis detecting the phase and the corresponding integration period of the adjacent field or frame. Based on a difference value between a phase change detection step of detecting a phase change, a detection result of the phase change detection step, and a logical value of the initial phase change due to flicker, the detection result is calculated from the logical value. A correction coefficient calculation step for generating a correction coefficient whose value decreases as the distance increases, and a video signal correction step for correcting the signal level of the video signal based on the correction coefficient are provided.
また請求項8の発明においては、演算処理手段に所定の処理手順を実行させることにより映像信号のフリッカを低減する映像信号の処理プログラムを記録した記録媒体に適用して、前記処理手順は、映像信号を取得する映像信号取得のステップと、前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分のステップと、隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化のステップと、前記正規化のステップの処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析のステップと、前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出のステップと、前記位相変化検出のステップによる検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算のステップと、前記補正係数に基づいて映像信号の信号レベルを補正する映像信号補正のステップとを有するようにする。 According to an eighth aspect of the present invention, the processing procedure is applied to a recording medium recorded with a video signal processing program for reducing video signal flicker by causing the arithmetic processing means to execute a predetermined processing procedure. Video signal acquisition step of acquiring a signal, integration step of integrating the video signal and outputting an integration result in units of integration periods of one or more lines of the video signal, and correspondence in adjacent fields or frames A difference value of the integration result with respect to the integration period, or a normalization step for normalizing the integration result, and a frequency analysis of the processing result of the normalization step, and a spectrum at a flicker frequency for each integration period. A step of frequency analysis to detect an amplitude value and an initial phase of the signal, and a corresponding integration period of the adjacent field or frame Based on the difference value between the phase change detection step for detecting the change of the initial phase, the detection result of the phase change detection step, and the logical value of the change of the initial phase due to flicker, A correction coefficient calculation step for generating a correction coefficient whose value decreases as the detection result moves away from the logical value; and a video signal correction step for correcting the signal level of the video signal based on the correction coefficient. .
請求項1の構成により、映像信号処理装置に適用して、映像信号を取得する映像信号取得手段と、前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分手段と、隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化手段と、前記正規化手段の処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析手段と、前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出手段とを備えるようにすれば、この位相変化検出手段で検出される初期位相の変化にあっては、映像信号における輝度レベル等の変化がフリッカによるものの場合、光源の点滅周波数で決まる論理値による値となるのに対し、被写体の動き等による場合には、その程度により論理値より相違する値となる。これにより前記位相変化検出手段による検出結果と、前記フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算手段と、前記補正係数に基づいて映像信号の信号レベルを補正する映像信号補正手段とを備えるようにすれば、いちいち露光時間、電子シャッターの速度等により判定基準を変更しなくても、また移動する物体を撮影した場合でも、確実にフリッカ成分を抑圧することができ、これにより従来に比して一段と簡易な処理により確実にフリッカを低減することができる。 According to the configuration of the first aspect, the present invention is applied to a video signal processing apparatus, and a video signal acquisition unit that acquires a video signal, and integrates and integrates the video signal in units of integration periods of one or more lines of the video signal. The integration means for outputting the result, the difference value of the integration result between the corresponding integration periods in adjacent fields or frames, or the normalizing means for normalizing the integration result, and the processing result of the normalization means as the frequency Analyzing and detecting, for each integration period, the change in the initial phase between the frequency analysis means for detecting the amplitude value and initial phase of the spectrum at the flicker frequency, and the corresponding integration period in the adjacent field or frame. And a phase change detecting means for detecting the luminance of the video signal when the initial phase change detected by the phase change detecting means is detected. If changes such bell is by flicker, whereas a value according to the logical value determined by the blinking frequency of the light source, in the case of movement of the subject or the like, a value different from the logical value by the degree. As a result, based on the difference value between the detection result by the phase change detection means and the logical value of the initial phase change by the flicker, a correction coefficient whose value decreases as the detection result moves away from the logical value is generated. If the correction coefficient calculation means and the video signal correction means for correcting the signal level of the video signal based on the correction coefficient are provided, it is not necessary to change the determination criteria depending on the exposure time, the speed of the electronic shutter, etc. In addition, even when a moving object is photographed, the flicker component can be surely suppressed, and thus flicker can be reliably reduced by a simpler process than in the prior art.
これにより請求項6、請求項7、請求項8の構成によれば、従来に比して一段と簡易な処理により確実にフリッカを低減することができる映像信号の処理方法、映像信号の処理プログラム及び映像信号の処理プログラムを記録した記録媒体を提供することができる。
Thus, according to the configurations of
本発明によれば、従来に比して一段と簡易な処理により確実にフリッカを低減することができる。 According to the present invention, flicker can be surely reduced by a simpler process than in the prior art.
以下、適宜図面を参照しながら本発明の実施例を詳述する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(1)実施例の構成
図2は、本発明の実施例1に係る撮像装置を示すブロック図である。この撮像装置1において、レンズ2は、レンズドライバ3の駆動による絞り、倍率により入射光を集光し、続く撮像素子4の撮像面に光学像を形成する。ここでレンズドライバ3は、システムコントローラ5の制御によりレンズ2を駆動し、これによりレンズ2の倍率、絞りを可変する。
(1) Configuration of Embodiment FIG. 2 is a block diagram illustrating an imaging apparatus according to
撮像素子4は、XYアドレス走査型の撮像素子であるCMOS固体撮像素子であり、タイミングジェネレータ(TG)6から出力されるタイミング信号により動作して、撮像面に形成された光学像の撮像結果を撮像信号S1により出力する。すなわち撮像素子4は、半導体基板上に、フォトダイオード(フォトゲート)、転送ゲート(シャッタートランジスタ)、スイッチングトランジスタ(アドレストランジスタ)、増幅トランジスタ、リセットトランジスタ(リセットゲート)などを有する画素がマトリックス状に配列されると共に、これら画素を駆動する垂直走査回路、水平走査回路、映像信号出力回路が形成され、各画素により光電気変換結果をラスタ走査の順序により順次出力する。撮像素子4は、各画素に補色系又は原色系のカラーフィルタが設けられ、これにより補色又は原色による色信号により撮像信号を出力する。なおタイミングジェネレータ6は、システムコントローラ5の制御により撮像素子4に各種のタイミング信号を出力し、これによりこの撮像素子1では、システムコントローラ5の制御により電子シャッター速度を設定する。
The
アナログ信号処理回路7は、撮像素子4から出力される撮像信号S1を相関二重サンプリングした後、自動利得制御により信号レベルを補正して出力する。続くアナログディジタル変換回路(A/D)は、このアナログディジタル信号処理回路7の出力信号をアナログディジタル変換処理し、これにより画像データD1を出力する。
The analog
ディジタル信号処理回路9は、例えばディジタルシグナルプロセッサにより形成され、アナログディジタル変換回路8から出力される画像データD1をホワイトバランス調整、ガンマ調整等した後、フィールド周波数60〔Hz〕のNTSC方式のビデオ信号SVにより出力する。この一連の処理において、ディジタル信号処理回路9は、機能ブロックの1つであるフリッカ低減回路10により、フリッカを低減する。しかしてこの撮像装置1では、このディジタル信号処理回路9から出力されるビデオ信号SVが、光ディスク、磁気ディスク、メモリカード等の記録媒体に記録される。
The digital
これらによりこの実施例において、撮像素子4、アナログ信号処理回路7、アナログディジタル変換回路8、ディジタル信号処理回路9は、所望の被写体を撮像して撮像結果による映像信号SVを出力する、XYアドレス走査型の撮像素子を用いた撮像手段を構成するようになされている。
Accordingly, in this embodiment, the
システムコントローラ5は、この撮像装置1の動作を制御する制御手段であり、ユーザーによる操作子の操作に応動して所定の処理プログラムを実行することにより、全体の動作を制御する。具体的に、システムコントローラ5は、ユーザーによる操作子の操作に応動して、また撮像結果の輝度レベルに応じて、レンズドライバ3、タイミングジェネレータ6の動作を制御し、これによりレンズ2の倍率を可変し、さらには絞り制御の処理を実行する。また各色信号の信号レベルに応じてディジタル信号処理回路9におけるホワイトバランス調整を制御し、これによりオートホワイトバランス調整の処理を実行する。
The
この処理プログラムを実行する際に、システムコントローラ5は、ユーザーによる指示により、この処理プログラムに設けられたフリッカ低減プログラムを実行してフリッカ低減回路10の動作を制御し、これによりフリッカ低減回路10によりフリッカを低減する。なおこのフリッカ低減処理に係るシステムコントローラ5の一連のプログラム、ディジタル信号処理回路9における処理プログラムは、この撮像装置1に事前にインストールされて提供されるものの、これに代えてインターネット等のネットワークを介したインストールによりこれらのプログラムを提供するようにしてもよく、また各種の記録媒体により提供するようにしてもよい。なおこのような記録媒体としては、光ディスク、磁気ディスク、メモリカード等、種々の記録媒体を広く適用することができる。
When executing this processing program, the
図3は、フリッカ低減回路10を関連する構成と共に示す機能ブロック図である。この実施例に係る撮像装置1では、映像信号SVを構成する輝度信号、色差信号毎に、この図3に示す構成による処理が実行される。なおこのフリッカ低減回路10に係る処理においては、少なくとも輝度信号について実行し、必要に応じて色差信号、各色信号について実行するようにしてもよい。また輝度信号については、輝度信号に合成する前の色信号の段階で実行してもよく、またこの色信号の段階における処理においては、原色による色信号、補色による色信号の何れの段階で実行してもよい。因みにこれら色信号について実行する場合には、各色信号毎に、この図3に示す構成による処理が実行される。なお以下において、周波数50〔Hz〕の商用電源による蛍光灯のフリッカについて説明する。
FIG. 3 is a functional block diagram showing the
フリッカ低減回路10は、順次入力される画像データD1を積分回路21に入力し、ここで積分期間を1水平走査期間に設定してライン単位で積分処理することにより、絵柄の影響を低減する。
The
すなわちフリッカによる撮像結果においては、絵柄による画素値にフリッカによる画素値が重畳されて各画素値が得られ、これにより任意の画素(x,y)における画素値In' (x,y)は、次式により表される。なおここでIn(x,y)は、絵柄による画素値である信号成分であり、Γn(y)×In(x,y)は、フリッカ成分であり、Γn(y)は、映像信号の信号成分に対するフリッカ成分の割合を示すフリッカ係数である。 That is, in the imaging result by flicker, the pixel value by flicker is superimposed on the pixel value by the pattern to obtain each pixel value, and thereby the pixel value In ′ (x, y) at an arbitrary pixel (x, y) is It is expressed by the following formula. Here, In (x, y) is a signal component that is a pixel value according to a pattern, Γn (y) × In (x, y) is a flicker component, and Γn (y) is a signal of a video signal. It is a flicker coefficient which shows the ratio of the flicker component with respect to a component.
ここで光源の点滅周波数は、水平走査周波数に比して十分に長いことにより、同一フィールドの同一ラインではフリッカ係数は一定と見なすことができ、これにより以下において、フリッカ係数は、Γn(y)で表す。またフリッカ係数Γn(y)は、次式により示すように、以下において、適宜、フーリエ級数に展開した形式で記述し、これにより蛍光灯の種類によって異なる発光特性、残光特性を網羅し、一般化した形式で記述する。 Here, since the blinking frequency of the light source is sufficiently longer than the horizontal scanning frequency, the flicker coefficient can be regarded as being constant in the same line of the same field. Accordingly, in the following, the flicker coefficient is Γn (y). Represented by In addition, the flicker coefficient Γn (y) is described in the following form in a form expanded to a Fourier series as appropriate, as shown by the following equation, thereby covering emission characteristics and afterglow characteristics that differ depending on the type of fluorescent lamp. Describe in a simplified format.
なおλoは、図6について上述した表示画面上におけるフリッカの波長であり、ωoは、波長λoで正規化された規格化角周波数である。γmは、フリッカ成分の各次(m=1,2,3‥)の振幅値である。Φm,nは、フリッカ成分における各次の初期位相を示し、光源の点滅周期と各画素の露光タイミングによって決まる。なお周波数50〔Hz〕の商用電源による蛍光灯の場合、初期位相Φm,nは3フィールドごとに同じ値になり、これにより直前のフィールドとの間のΦm,nの差は、次式により表される。 Note that λo is the flicker wavelength on the display screen described above with reference to FIG. 6, and ωo is the normalized angular frequency normalized by the wavelength λo. γm is the amplitude value of each order (m = 1, 2, 3...) of the flicker component. Φm, n indicates each initial phase in the flicker component and is determined by the blinking cycle of the light source and the exposure timing of each pixel. In the case of a fluorescent lamp with a commercial power supply having a frequency of 50 [Hz], the initial phase Φm, n has the same value every three fields, and the difference in Φm, n from the immediately preceding field is expressed by the following equation. Is done.
これらにより積分回路21は、次式の演算処理を実行し、積分値Fn(y)を計算する。
Thus, the
なおここでαn(y)は、次式に示すように、信号成分In(x,y)の1ライン分の積分値である。 Note that αn (y) is an integral value for one line of the signal component In (x, y) as shown in the following equation.
メモリ22は、積分回路21による積分値Fn(y)を記録して保持する。またメモリ22は、積分回路21による積分値Fn(y)の出力に対応して、前フィールド、前々フィールドの対応するラインによる積分値Fn_1(y)、Fn_2(y)を出力する。
The
しかして被写体に動きが無い場合、これら連続するフィールドの対応するラインに係る積分値Fn(y)、Fn_1(y)、Fn_2(y)は、フリッカ成分αn(y)×Γn(y)だけが変化していることになり、これによりこれら積分値Fn(y)、Fn_1(y)、Fn_2(y)の差分値を計算することにより、簡易に、フリッカ成分αn(y)×Γn(y)だけを検出することができる。しかしながら一般的な被写体では、各フィールドで信号成分αn(y)が変化し、これにより単なる差分値の計算では、フリッカ成分だけを抽出することが困難になる。またフリッカ成分は、信号成分に比して信号レベルが小さいことによっても、単なる差分値の計算では、フリッカ成分だけを抽出することが困難になる。 Therefore, when the subject does not move, the integral values Fn (y), Fn_1 (y), and Fn_2 (y) related to the corresponding lines in these continuous fields are only flicker components αn (y) × Γn (y). Thus, by calculating the difference value between these integrated values Fn (y), Fn_1 (y), and Fn_2 (y), the flicker component αn (y) × Γn (y) can be easily obtained. Can only detect. However, in a general subject, the signal component αn (y) changes in each field, which makes it difficult to extract only the flicker component by simply calculating the difference value. Further, even if the signal level of the flicker component is smaller than that of the signal component, it is difficult to extract only the flicker component by simply calculating the difference value.
このためフリッカ低減回路10において、平均値計算回路23は、積分回路21から出力される積分値Fn(y)、メモリ22から出力される前フィールド、前々フィールドの対応するラインによる積分値Fn_1(y)、Fn_2(y)を入力し、次式の演算処理により、これら連続する3フィールドの対応するラインに係る積分値Fn(y)、Fn_1(y)、Fn_2(y)の平均値AVE[Fn(y)]を算出する。
Therefore, in the
ここで周波数50〔Hz〕の商用電源による蛍光灯の場合、初期位相Φm,nは3フィールドごとに同じ値になることにより、このように連続する3フィールドで平均値を計算すれば、フリッカ成分については、打ち消し合うようにすることができ、これにより単に信号成分のみの平均値を計算することができる。これにより連続する3フィールドで被写体に動きが無い場合、すなわち次式の関係式が成立する場合、(6)式により表されるように、信号成分αn(y)のみを検出することができる。 Here, in the case of a fluorescent lamp with a commercial power source having a frequency of 50 [Hz], the initial phase Φm, n has the same value every three fields, and thus the flicker component can be calculated by calculating the average value over three consecutive fields. Can be canceled out, so that the average value of only the signal components can be calculated. As a result, when the subject does not move in three consecutive fields, that is, when the following relational expression is established, only the signal component αn (y) can be detected as represented by the expression (6).
なお被写体の動きが大きい場合には、(7)式の関係式が成立しなくなり、これにより(6)式の演算処理によっては、信号成分αn(y)のみを検出することが困難になる。しかしながらこのような場合には、平均値化の処理に係る連続するフィールドを3フィールドの倍数に設定することにより、時間軸方向のローパスフィルタ作用により、動きの影響を低減して近似的に信号成分αn(y)のみを検出することができる。 When the movement of the subject is large, the relational expression (7) is not established, and it becomes difficult to detect only the signal component αn (y) by the calculation process of the expression (6). However, in such a case, by setting the continuous field related to the averaging process to a multiple of 3 fields, the effect of the motion is reduced by the low-pass filter action in the time axis direction to approximately approximate the signal component. Only αn (y) can be detected.
差分計算回路24は、積分回路21から出力される積分値Fn(y)から、メモリ22より出力される前フィールドの対応するラインによる積分値Fn_1(y)を減算し、次式により表される減算結果Fn(y)−Fn_1(y)を出力する。
The
正規化回路25は、次式により示すように、差分計算回路24で計算された減算結果Fn(y)−Fn_1(y)を、平均値計算回路23で計算された平均値AVE[Fn(y)]により割り算し、これにより減算結果Fn(y)−Fn_1(y)を平均値AVE[Fn(y)]により正規化する。これにより正規化回路25は、減算結果Fn(y)−Fn_1(y)から信号成分による影響を除去し、フリッカ係数Γn(y)−Γn(y)の差分値gn(y)を計算する。
The
DFT回路26は、この正規化回路25で計算される差分値gn(y)を離散フーリエ変換により周波数解析する。ここで(9)式の関係式に(3)式の関係式を適用すると、次式の関係式を得ることができる。
The
但し、|Am|及びθmは、正規化した差分値gn(y)において、フリッカ周波数に係る各次のスペクトルの振幅値及び初期位相であり、それぞれ次式により表される。 However, | Am | and θm are the amplitude value and the initial phase of each order spectrum related to the flicker frequency in the normalized difference value gn (y), and are expressed by the following equations, respectively.
またこれら(11)式及び(12)式により表される振幅値|Am|及び初期位相θmを用いて、それぞれ次式により(2)式で用いたフリッカ周波数における各次の振幅値γm及び初期位相Φm,nを表すことができる。 Further, by using the amplitude value | Am | and the initial phase θm expressed by the equations (11) and (12), the following amplitude values γm and the initial values at the flicker frequency used in the equation (2) by the following equations, respectively: The phase Φm, n can be represented.
ここで次数mの離散フーリエ変換結果をGn(m)とおいて、離散フーリエ変換[gn(y)]を次式により表す。但し、Wは、(16)式により表され、Lは、DFT演算のデータ長であり、この実施例ではフリッカの1波長のライン数に相当するデータ長である。このようにDFT演算のデータ長を、フリッカの1波長分(Lライン分)に設定すれば、規格化角周波数ωoの整数倍の離散スペクトル群を直接求めることができ、その分、演算処理を簡略化することができる。 Here, the discrete Fourier transform result of the order m is Gn (m), and the discrete Fourier transform [gn (y)] is expressed by the following equation. However, W is expressed by the equation (16), and L is the data length of the DFT operation. In this embodiment, W is the data length corresponding to the number of lines of one wavelength of flicker. In this way, if the data length of the DFT calculation is set to one wavelength of flicker (for L line), a discrete spectrum group that is an integral multiple of the normalized angular frequency ωo can be directly obtained. It can be simplified.
この(15)式の関係式を用いて、(11)式及び(12)式により表される、正規化した差分値gn(y)におけるフリッカ周波数の各次の振幅値γm及び初期位相θm,nは、それぞれ次式により表すことができる。 Using the relational expression of the expression (15), each amplitude value γm and initial phase θm of the flicker frequency in the normalized difference value gn (y) represented by the expressions (11) and (12), Each n can be expressed by the following formula.
これによりこの(17)式及び(18)式と(13)式及び(14)式より、それぞれ次式により、フリッカ周波数における各次の振幅値γm及び初期位相Φm,nを求めることができる。 Thereby, from the equations (17), (18), (13), and (14), the next amplitude value γm and the initial phase Φm, n at the flicker frequency can be obtained by the following equations, respectively.
これらによりDFT回路26は、連続するLラインによる正規化回路25の出力値により(15)式により示す離散フーリエ変換処理を各ライン毎に実行し、これによりフリッカ周波数の各次におけるスペクトルを抽出する。またこの処理結果を用いて(19)式及び(20)式の演算処理を実行することにより、フリッカ周波数における各次の振幅値γm及び初期位相Φm,nをライン毎に計算する。
As a result, the
なおディジタル信号処理における周波数解析においては、一般に、高速フーリエ変換(FFT)が用いられる。しかしながら高速フーリエ変換では、データ長が2のべき乗であることが必要なことにより、この実施例では離散フーリエ変換処理により周波数解析し、その分、データ処理を簡略化する。なおこの場合、処理対象のデータ、処理結果のデータを加工するようにして、高速フーリエ変換により周波数解析するようにしてもよい。 In frequency analysis in digital signal processing, generally, fast Fourier transform (FFT) is used. However, since the fast Fourier transform requires that the data length be a power of 2, in this embodiment, frequency analysis is performed by discrete Fourier transform processing, and the data processing is simplified accordingly. In this case, the data to be processed and the data of the processing result may be processed, and the frequency analysis may be performed by fast Fourier transform.
またこの実施例では、実用上十分にフリッカ成分を近似できる範囲で、離散フーリエ変換における高次の処理を省略し、これにより処理を簡略化する。 In this embodiment, high-order processing in the discrete Fourier transform is omitted as long as the flicker component can be approximated sufficiently in practice, thereby simplifying the processing.
ところでこのようにして求められる振幅値γm及び初期位相Φm,nは、被写体の動きをも反映していることになる。また露光時間、電子シャッターの速度によっても変化する。これによりこの実施例では、これらDFT回路26で検出される振幅値γm及び初期位相Φm,nをシステムコントローラ5に出力し、このシステムコントローラ5により構成されるパラメータ制御回路30により処理する。これによりこの実施例では、フリッカを正しく反映している振幅値γm' 及び初期位相Φm,n' を計算し、この計算結果による振幅値γm' 及び初期位相Φm,n' をフリッカ生成回路28に入力する。
Incidentally, the amplitude value γm and the initial phase Φm, n obtained in this way also reflect the movement of the subject. It also varies depending on the exposure time and the speed of the electronic shutter. Thus, in this embodiment, the amplitude value γm and the initial phase Φm, n detected by the
フリッカ生成回路28は、この振幅値γm' 及び初期位相Φm,n' を用いて(2)式の演算処理を実行することにより、フリッカを正しく反映しているフリッカ係数Γn(y)を出力する。なおここでこの(2)式の演算処理においても、実際の蛍光灯照明下では、高次の処理を省略して実用上十分にフリッカ成分を近似することができる。これによりこの実施例では、例えば2次までの範囲でこの(2)式の演算処理を実行し、これにより処理を簡略化する。
The
ここで(1)式は、次式のように変形することができる。これにより演算回路29は、フリッカ生成回路28から出力されるフリッカ係数Γn(y)に値1を加算して1+Γn(y)を計算した後、この計算値により画像データを割り算し、これによりフリッカ成分を抑圧する。
Here, the equation (1) can be modified as the following equation. As a result, the
なおフリッカ成分にあっては、光源の点滅周波数に応じて、例えば周波数50〔Hz〕の商用電源による蛍光灯下では、3フィールド周期で繰り返されることにより、フリッカ生成回路28は、この場合、始めの3フィールド分についてのみフリッカ係数Γn(y)を計算して出力し、3フィールドより以降のフィールドについては、始めに計算したフリッカ係数Γn(y)をメモリに保持して繰り返し出力するようにしてもよい。このようにすれば、ディジタル信号処理回路9の処理を簡略化することができる。
In the flicker component, the
図1は、システムコントローラ5により構成されるパラメータ制御回路30の構成を示す機能ブロック図である。このパラメータ制御回路30は、DFT回路26から出力される初期位相Φm,nにより振幅値γmを補正する補正係数gを計算し、この補正係数gにより振幅値を補正して入力された初期位相Φm,nと共に、フリッカを正しく反映した振幅値γm' 及び初期位相Φm,n' として出力する。このためこのパラメータ制御回路30において、補正係数計算回路31は、DFT回路26から出力される初期位相Φm,nにより振幅値γmを補正する補正係数gを計算する。
FIG. 1 is a functional block diagram showing a configuration of a
すなわち補正係数計算回路31において、遅延回路32は、DFT回路26から出力される初期位相Φm,nを1フィールドの期間だけ遅延させて出力し、減算回路33は、DFT回路26から出力される初期位相Φm,nから、遅延回路32より出力される初期位相Φm,nを減算し、これにより対応するライン間で、初期位相Φm,nのフィールド間差分ΔΦm,nを計算する。
That is, in the correction
ローパスフィルタ(LPF)34は、この減算回路33から出力される初期位相Φm,nのフィールド間差分ΔΦm,nを平滑化して出力し、これにより外乱によるフィールド間差分ΔΦm,nの過剰な変動を低減する。
The low-pass filter (LPF) 34 smoothes and outputs the inter-field difference ΔΦm, n of the initial phase Φm, n output from the subtracting
減算回路35は、ローパスフィルタ(LPF)34から出力される初期位相Φm,nのフィールド間差分ΔΦm,nから、このフィールド間差分ΔΦm,nの理論値Δφm,nを減算し、これにより初期位相Φm,nのフィールド間差分ΔΦm,nについて、論理値Δφm,nからの位相ΔΦm,n−Δφm,nを出力する。なおこの理論値Δφm,nは、(3)式により求められる。 The subtracting circuit 35 subtracts the theoretical value Δφm, n of the inter-field difference ΔΦm, n from the inter-field difference ΔΦm, n of the initial phase Φm, n output from the low-pass filter (LPF) 34, thereby the initial phase. For the inter-field difference ΔΦm, n of Φm, n, the phase ΔΦm, n−Δφm, n from the logical value Δφm, n is output. The theoretical value Δφm, n is obtained by the equation (3).
絶対値化回路(ABS)37は、この減算回路35から出力される論理値Δφm,nからの位相ΔΦm,n−Δφm,nを絶対値化して出力する。しかしてこれら一連の処理により検出される絶対値化回路37の出力値ψm,nは、DFT回路26で求められるフリッカ成分の振幅値γm及び初期位相Φm,nが、正しくフリッカを表していればいる程、小さな値となり、これらフリッカ成分の振幅値γm及び初期位相Φm,nが外乱、被写体の移動等によるものの場合、大きな値となる。
The absolute value conversion circuit (ABS) 37 converts the phase value ΔΦm, n−Δφm, n from the logical value Δφm, n output from the subtraction circuit 35 into an absolute value and outputs it. Therefore, the output value ψm, n of the
これによりゲイン演算回路38は、この絶対値化回路37からの出力値ψm,nに基づいて、フリッカ周波数におけるフィールド間の初期位相が、論理値φm,nから遠ざかるに従って値の減少する補正係数gを生成する。より具体的に、ゲイン演算回路38は、図4に示すように、第1のしきい値thrAより絶対値化回路37からの出力値ψm,nが小さい場合、値1による補正係数gを出力し、この第1のしきい値thrAより値の大きな第2のしきい値thrBより絶対値化回路37からの出力値ψm,nが大きい場合、値0による補正係数gを出力する。またこれら第1のしきい値thrAから第2のしきい値thrBの間では、絶対値化回路37からの出力値ψm,nに対応して直線的に値が変化するように補正係数gを出力する。
Accordingly, the
乗算回路39は、DFT回路26による周波数解析で検出されるフリッカ周波数におけるスペクトラムの振幅値γmに、この補正係数gを乗算することにより、このスペクトラムの振幅値γmを補正係数gにより補正して出力する。
The
なお周波数解析して得られるフリッカ周波数の高次の成分(m≧2)をもフリッカの抑圧処理に使用する場合、パラメータ制御回路5、フリッカ生成回路28、演算回路29は、各次の成分毎に、補正係数gを計算し、この各次の補正係数gの合成により最終的に演算回路29で画像データD1の画素値を補正する。この場合、結局、正規化回路25からの出力値に占める各次成分の割合により、各次の補正係数gによる補正量を重み付け加算して補正すればよく、このような処理にあっては、パラメータ制御回路5のゲイン演算回路38からフリッカ低減回路10の演算回路29までの各回路ブロックにおいて、補正係数g、振幅値γm又はフリッカ係数Γn(y)の何れかで実行すればよい。
When the higher-order component (m ≧ 2) of the flicker frequency obtained by frequency analysis is also used for the flicker suppression processing, the
しかしてこれらによりシステムコントローラ5は、各ライン毎に、図5に示す処理手順を実行して補正係数gを計算する。すなわちシステムコントローラ5は、1ライン分の周波数解析結果がディジタル信号処理回路10から入力されると、ステップSP1からステップSP2に移り、ここで初期位相Φm,nのフィールド間差分ΔΦm,nを計算し、続くステップSP3において、このフィールド間差分ΔΦm,nの高域成分を抑圧する。また続くステップSP4において、フィールド間差分ΔΦm,nの論理値φm,nからの差分値を絶対値化した後、続くステップSP5において、補正係数gの値を演算し、ステップSP6によりこの処理手順を終了する。
Thus, the
(2)実施例の動作
以上の構成において、この撮像装置1では(図2)、レンズ2により所望の被写体の光学像が撮像素子4の撮像面に形成され、この光学像が撮像素子4により光電変換処理されて撮像信号S1が出力される。撮像装置1では、この撮像信号S1がアナログ信号処理回路7により信号処理された後、アナログディジタル変換回路8により画像データD1に変換され、この画像データD1がディジタル信号処理回路9により信号処理され、これにより所望の被写体の撮像結果による映像信号SVが生成される。この撮像装置1では、このディジタル信号処理回路9における画像データD1の処理において、映像信号SVのフリッカ成分が抑圧される。
(2) Operation of Example In the above-described configuration, in this imaging apparatus 1 (FIG. 2), an optical image of a desired subject is formed on the imaging surface of the
すなわち画像データD1は、ディジタル信号処理回路9のフリッカ低減回路10において(図3)、積分回路21によりライン単位で順次積分され、差分計算回路24において、隣接するフィールドの対応する積分期間との間でこの積分値が減算され、これによりライン単位で、連続するフィールド間における信号レベルの変化が検出される。また正規化回路25において、この信号レベルの変化が積分値により割り算され、これにより連続するフィールド間における信号レベルの変化が正規化処理されて、連続するフィールド間における信号レベルの変化が映像信号に対応する割合によりライン単位で検出される。
That is, the image data D1 is sequentially integrated line by line by the
しかしてこのようにして検出される信号レベルの変化にあっては、フリッカによる信号レベルの変化に被写体の動きによる信号レベルの変化等が含まれて検出されるものの、フリッカによる信号レベルの変化にあっては、フリッカ周波数により周期的に変化することになる。 Thus, the change in the signal level detected in this manner is detected by including the change in the signal level due to the movement of the subject in the change in the signal level due to the flicker, but the change in the signal level due to the flicker is detected. In such a case, it periodically changes depending on the flicker frequency.
これにより画像データD1は、このようにして検出されるライン単位による連続するフィールド間における信号レベルの変化が、DFT回路26により周波数解析され、各ライン毎に、フリッカ周波数におけるスペクトルが検出される。しかしてこのようにして検出されるフリッカ周波数におけるスペクトルの振幅値にあっては、連続するフィールド間における信号レベルの変化が正規化されていることにより、連続するフィールド間における信号レベルの変化のうちの、フリッカ成分の割合を示すことになる。これによりこの振幅値により元の映像信号SVの信号レベルを補正してフリッカを抑圧することができると考えられる。またフリッカ成分にあっては、フリッカ周波数の高次の周波数スペクトルも発生することにより、実用上十分な範囲で、高次の周波数スペクトルに係る振幅値を映像信号の補正に加味することにより、一段と高い精度によりフリッカを抑圧することができると考えられる。
As a result, in the image data D1, the change in signal level between successive fields in units of lines detected in this way is subjected to frequency analysis by the
しかしながらこのような実際の被写体の撮影にあっては、被写体の動きにより、このようなフリッカ周波数によりスペクトラムが検出される場合もあり、これにより撮影の条件によっては、映像信号を誤補正する場合が発生する。 However, in such actual shooting of a subject, the spectrum may be detected by such a flicker frequency due to the movement of the subject, and thus the video signal may be erroneously corrected depending on the shooting conditions. appear.
これによりこの撮像装置1では(図1)、このようにして検出されるフリッカ周波数のスペクトラムについて、各ラインにおける振幅値及び初期位相がシステムコントローラ5に通知され、ここで遅延回路32及び減算回路33により、連続するフィールド間で初期位相の変化が検出される。ここでこのようにして検出される初期位相の変化にあっては、映像信号における信号レベルの変化がフリッカによるものの場合、光源の点滅周波数で決まる論理値による値となるのに対し、被写体の動き等による場合には、その程度により論理値より相違する値となる。
As a result, in the imaging apparatus 1 (FIG. 1), the amplitude value and the initial phase in each line are notified to the
これにより撮像装置1では、システムコントローラ5において、フィールド間における初期位相の変化が論理値から遠ざかるに従って値の減少する補正係数が生成され、この補正係数により画像データD1の信号レベルが補正されてフリッカが低減される。
As a result, in the
これによりこの撮像装置1では、種々に撮影の条件が変化する場合であっても、簡易な処理により正しくフリッカを低減することができる。
As a result, the
これによりこの撮像装置1では、ローパスフィルタ34によりフィールド間における初期位相の変化が平滑化された後、減算回路35において、論理値からの差分値が計算され、この差分値が絶対値化回路37により絶対値化される。またゲイン演算回路38でこの絶対値により、フィールド間における初期位相の変化が論理値から遠ざかるに従って値の減少する補正係数が生成される。撮像装置1では、この補正係数により対応するスペクトルの振幅値が補正されて、対応する初期位相と共にフリッカ低減回路10に出力され、フリッカ低減回路10において、これら補正された振幅値及び対応する初期位相によりフリッカ成分を正しく反映したフリッカ係数が生成され、このフリッカ係数により画像データD1の信号レベルが補正されてフリッカが低減される。
As a result, in the
これら補正係数に係る処理において、この撮像装置1では、乗算回路39において、周波数解析手段で検出されるフリッカ周波数におけるスペクトルの振幅値を補正係数により補正した後、フリッカ生成回路28において、この補正された振幅値により映像信号に対するフリッカ成分の割合を示すフリッカ係数が計算され、このフリッカ係数により映像信号の信号レベルを補正することにより、周波数解析結果を有効に利用して正しく映像信号の信号レベルを補正してフリッカを低減することができる。
In the processing relating to these correction coefficients, in the
またフリッカ周波数における初期位相の変化を平滑化して補正係数が生成され、これにより外乱による補正係数の誤生成を有効に回避することができる。 In addition, the correction coefficient is generated by smoothing the change of the initial phase at the flicker frequency, so that erroneous generation of the correction coefficient due to disturbance can be effectively avoided.
これに対して正規化の処理においては、ライン単位の積分結果を連続するフィールド間で平均値化し、その結果得られる平均値を用いて正規化の処理が実行され、これによっても動きによるフリッカの誤補正が有効に回避される。 On the other hand, in the normalization process, the integration results in units of lines are averaged between consecutive fields, and the normalization process is executed using the average value obtained as a result. False correction is effectively avoided.
(3)実施例の効果
以上の構成によれば、信号レベルの変化を周波数解析してフリッカ周波数のスペクトルを検出し、連続するフィールド又はフレームにおけるこのスペクトルの初期位相の変化を判定して映像信号のフリッカ成分を抑圧することにより、従来に比して一段と簡易な処理により確実にフリッカを低減することができる。
(3) Advantages of the embodiment According to the above configuration, the change in the signal level is subjected to frequency analysis to detect the spectrum of the flicker frequency, and the change in the initial phase of this spectrum in the continuous field or frame is determined to determine the video signal. By suppressing the flicker component, flicker can be reliably reduced by a simpler process than in the prior art.
またこの一連の処理において、フリッカ周波数におけるスペクトルの振幅値を補正係数により補正した後、この補正された振幅値により映像信号に対するフリッカ成分の割合を示すフリッカ係数を計算し、このフリッカ係数により映像信号の信号レベルを補正することにより、周波数解析結果を有効に利用して正しく映像信号の信号レベルを補正してフリッカを低減することができる。 In this series of processing, after correcting the amplitude value of the spectrum at the flicker frequency with the correction coefficient, the flicker coefficient indicating the ratio of the flicker component to the video signal is calculated based on the corrected amplitude value. By correcting the signal level, it is possible to reduce the flicker by correcting the signal level of the video signal correctly using the frequency analysis result effectively.
またフリッカ周波数における初期位相の変化を平滑化して補正係数を生成することにより、外乱による補正係数の誤生成を有効に回避することができる。 Further, by generating the correction coefficient by smoothing the change of the initial phase at the flicker frequency, it is possible to effectively avoid the erroneous generation of the correction coefficient due to disturbance.
またライン単位の積分結果を連続するフィールド間で平均値化し、その結果得られる平均値を用いて正規化の処理を実行することにより、動きによるフリッカの誤補正を有効に回避することができる。 Further, by averaging the integration results in line units between consecutive fields and performing normalization processing using the average value obtained as a result, it is possible to effectively avoid flicker error correction due to motion.
なお上述の実施例においては、ライン単位の積分結果よりフィールド間で差分値を計算し、この差分値を正規化して周波数解析する場合について述べたが、本発明はこれに限らず、実用上十分な特性を確保できる場合には、ライン単位の積分結果を正規化して周波数解析するようにしてもよい。 In the above-described embodiment, a case has been described in which a difference value is calculated between fields from the integration result in units of lines, and the difference value is normalized to perform frequency analysis. However, the present invention is not limited to this, and is practically sufficient. If a sufficient characteristic can be ensured, the line-by-line integration result may be normalized to perform frequency analysis.
また上述の実施例においては、1ライン単位で映像信号を積分して処理する場合について述べたが、本発明はこれに限らず、1水平走査期間より長く積分期間を設定して、例えば2ライン単位で映像信号を積分して処理するようにしてもよい。 In the above embodiment, the case where the video signal is integrated and processed in units of one line has been described. However, the present invention is not limited to this, and an integration period is set longer than one horizontal scanning period. The video signal may be integrated and processed in units.
また上述の実施例においては、フィールド間で各種差分値を計算する場合について述べたが、本発明はこれに限らず、フレーム間でこれらの差分値を計算するようにしてもよい。 In the above-described embodiment, the case where various difference values are calculated between fields has been described. However, the present invention is not limited to this, and these difference values may be calculated between frames.
また上述の実施例においては、フィールド周波数60〔Hz〕により撮像結果を取得する場合について述べたが、本発明はこれに限らず、フレーム周波数50〔Hz〕により撮像結果を取得する場合等にも広く適用することができる。 In the above-described embodiment, the case where the imaging result is acquired at the field frequency of 60 [Hz] has been described. However, the present invention is not limited to this, and the imaging result is acquired at the frame frequency of 50 [Hz]. Can be widely applied.
また上述の実施例においては、CMOS撮像素子により撮像結果を取得して処理する場合について述べたが、本発明はこれに限らず、CMOS撮像素子以外のXYアドレス走査型の撮像素子を用いる場合にも広く適用することができる。 In the above-described embodiment, the case where the imaging result is acquired and processed by the CMOS image sensor has been described. However, the present invention is not limited to this, and when an XY address scanning type image sensor other than the CMOS image sensor is used. Can also be widely applied.
また上述の実施例においては、本発明を撮像装置に適用して撮像結果をリアルタイムにより処理する場合について述べたが、本発明はこれに限らず、このような撮像結果をコンピュータ、編集装置等で処理する場合にも広く適用することができる。なおこれらの場合、上述した実施例に係るディジタル信号処理回路のフリッカ低減回路とシステムコントローラのパラメータ制御回路との構成も、演算処理手段の処理により一体に構成するようにしてもよい。 In the above-described embodiments, the case where the present invention is applied to the imaging apparatus and the imaging result is processed in real time has been described. However, the present invention is not limited thereto, and such an imaging result is processed by a computer, an editing apparatus, or the like. It can be widely applied to processing. In these cases, the configuration of the flicker reduction circuit of the digital signal processing circuit according to the above-described embodiment and the parameter control circuit of the system controller may be integrally configured by the processing of the arithmetic processing means.
本発明は、映像信号処理装置、映像信号の処理方法、映像信号の処理プログラム及び映像信号の処理プログラムを記録した記録媒体に関し、例えばXYアドレス走査型の撮像素子を用いたビデオカメラに適用することができる。 The present invention relates to a video signal processing device, a video signal processing method, a video signal processing program, and a recording medium on which a video signal processing program is recorded, and is applied to, for example, a video camera using an XY address scanning type imaging device. Can do.
1……撮像装置、4……撮像素子、5……システムコントローラ、9……ディジタル信号処理回路、10……フリッカ低減回路、21……積分回路、22……メモリ、23……平均値計算回路、24……差分計算回路、25……正規化回路、26……DFT回路、28……フリッカ生成回路、29……演算回路、30……パラメータ制御回路、32……遅延回路、33、35……減算回路、34……ローパスフィルタ、37……絶対値化回路、38……ゲイン演算回路、39……乗算回路
DESCRIPTION OF
Claims (8)
前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分手段と、
隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化手段と、
前記正規化手段の処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析手段と、
前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出手段と、
前記位相変化検出手段による検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算手段と
前記補正係数に基づいて前記映像信号の信号レベルを補正する映像信号補正手段と
を備えることを特徴とする映像信号処理装置。 Video signal acquisition means for acquiring a video signal;
Integration means for integrating the video signal and outputting an integration result in units of integration periods of one or more lines of the video signal;
A difference value of the integration result with the corresponding integration period in an adjacent field or frame, or normalizing means for normalizing the integration result;
Frequency analysis means for analyzing the processing result of the normalization means, and detecting the amplitude value and initial phase of the spectrum at the flicker frequency for each integration period;
Phase change detecting means for detecting a change in the initial phase between the corresponding integration periods of the adjacent fields or frames;
Correction coefficient calculation for generating a correction coefficient whose value decreases as the detection result moves away from the logical value, based on a difference value between the detection result by the phase change detection means and the logical value of the initial phase change by flicker And a video signal correcting means for correcting the signal level of the video signal based on the correction coefficient.
前記補正係数により、前記周波数解析手段で検出される前記フリッカ周波数におけるスペクトルの振幅値を補正する振幅補正手段と、
前記振幅補正手段で補正された振幅値及び前記初期位相により前記映像信号に対するフリッカ成分の割合を示すフリッカ係数を計算するフリッカ生成手段と、
前記フリッカ生成手段で計算されたフリッカ係数により前記映像信号の信号レベルを補正する演算手段とを有する
ことを特徴とする請求項1に記載の映像信号処理装置。 The video signal correcting means includes
Amplitude correction means for correcting the amplitude value of the spectrum at the flicker frequency detected by the frequency analysis means by the correction coefficient;
Flicker generation means for calculating a flicker coefficient indicating a ratio of a flicker component to the video signal based on the amplitude value corrected by the amplitude correction means and the initial phase;
The video signal processing apparatus according to claim 1, further comprising an arithmetic unit that corrects a signal level of the video signal based on a flicker coefficient calculated by the flicker generation unit.
前記連続するフィールド又はフレーム間で、前記積分結果を平均値化する平均化手段と、
隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を、前記平均化手段により計算される平均値により割り算することにより、正規化処理結果を出力する割り算手段とを有する
ことを特徴とする請求項1に記載の映像信号処理装置。 The normalizing means includes
Averaging means for averaging the integration results between the successive fields or frames;
A division value for outputting a normalization processing result by dividing the difference value of the integration result from the corresponding integration period in an adjacent field or frame, or by dividing the integration result by the average value calculated by the averaging means The video signal processing apparatus according to claim 1, further comprising: means.
前記位相変化検出手段で検出される前記フリッカ周波数における初期位相の変化を平滑化して前記補正係数を生成する
ことを特徴とする請求項1に記載の映像信号処理装置。 The correction coefficient calculation means includes
The video signal processing apparatus according to claim 1, wherein the correction coefficient is generated by smoothing a change in an initial phase at the flicker frequency detected by the phase change detection unit.
所望の被写体を撮像して撮像結果による前記映像信号を出力する、XYアドレス走査型の撮像素子を用いた撮像手段である
ことを特徴とする請求項1に記載の映像信号処理装置。 The video signal acquisition means includes
The video signal processing apparatus according to claim 1, wherein the video signal processing apparatus is an imaging unit that uses an XY address scanning type imaging device that images a desired subject and outputs the video signal based on the imaging result.
前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分のステップと、
隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化のステップと、
前記正規化のステップの処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析のステップと、
前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出のステップと、
前記位相変化検出のステップによる検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算のステップと、
前記補正係数に基づいて前記映像信号の信号レベルを補正する映像信号補正のステップと
を備えることを特徴とする映像信号処理方法。 A video signal acquisition step of acquiring a video signal;
An integration step of integrating the video signal and outputting an integration result in units of integration periods of one or more lines of the video signal;
A difference value of the integration result with the corresponding integration period in an adjacent field or frame, or a normalizing step of normalizing the integration result;
Frequency analysis of the processing result of the normalization step, and for each integration period, a frequency analysis step of detecting an amplitude value and an initial phase of a spectrum at a flicker frequency;
A phase change detection step of detecting a change in the initial phase between the corresponding integration periods of the adjacent fields or frames;
A correction coefficient that generates a correction coefficient whose value decreases as the detection result moves away from the logical value, based on a difference value between the detection result of the phase change detection step and the logical value of the initial phase change due to flicker Calculation steps,
And a video signal correction step of correcting a signal level of the video signal based on the correction coefficient.
前記処理手順は、
前記映像信号を取得する映像信号取得のステップと、
前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分のステップと、
隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化のステップと、
前記正規化のステップの処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析のステップと、
前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出のステップと、
前記位相変化検出のステップによる検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算のステップと、
前記補正係数に基づいて前記映像信号の信号レベルを補正する映像信号補正のステップとを有する
ことを特徴とする映像信号の処理プログラム。 In a video signal processing program for reducing flicker of a video signal by causing an arithmetic processing means to execute a predetermined processing procedure,
The processing procedure is as follows:
A video signal acquisition step of acquiring the video signal;
An integration step of integrating the video signal and outputting an integration result in units of integration periods of one or more lines of the video signal;
A difference value of the integration result with the corresponding integration period in an adjacent field or frame, or a normalizing step of normalizing the integration result;
Frequency analysis of the processing result of the normalization step, and for each integration period, a frequency analysis step of detecting an amplitude value and an initial phase of a spectrum at a flicker frequency;
A phase change detection step of detecting a change in the initial phase between the corresponding integration periods of the adjacent fields or frames;
A correction coefficient that generates a correction coefficient whose value decreases as the detection result moves away from the logical value, based on a difference value between the detection result of the phase change detection step and the logical value of the initial phase change due to flicker Calculation steps,
And a video signal correction step of correcting a signal level of the video signal based on the correction coefficient.
前記処理手順は、
前記映像信号を取得する映像信号取得のステップと、
前記映像信号の1ライン以上の積分期間を単位にして、前記映像信号を積分して積分結果を出力する積分のステップと、
隣接するフィールド又はフレームにおける対応する前記積分期間との前記積分結果の差分値、又は前記積分結果を正規化する正規化のステップと、
前記正規化のステップの処理結果を周波数解析し、前記積分期間毎に、フリッカ周波数におけるスペクトルの振幅値及び初期位相を検出する周波数解析のステップと、
前記隣接するフィールド又はフレームの対応する前記積分期間との間で、前記初期位相の変化を検出する位相変化検出のステップと、
前記位相変化検出のステップによる検出結果と、フリッカによる前記初期位相の変化の論理値との差分値に基づいて、前記検出結果が前記論理値から遠ざかるに従って値の減少する補正係数を生成する補正係数計算のステップと、
前記補正係数に基づいて前記映像信号の信号レベルを補正する映像信号補正のステップとを有する
ことを特徴とする映像信号の処理プログラムを記録した記録媒体。
In a recording medium recorded with a video signal processing program for reducing flicker of a video signal by causing an arithmetic processing means to execute a predetermined processing procedure,
The processing procedure is as follows:
A video signal acquisition step of acquiring the video signal;
An integration step of integrating the video signal and outputting an integration result in units of integration periods of one or more lines of the video signal;
A difference value of the integration result with the corresponding integration period in an adjacent field or frame, or a normalizing step of normalizing the integration result;
Frequency analysis of the processing result of the normalization step, and for each integration period, a frequency analysis step of detecting an amplitude value and an initial phase of a spectrum at a flicker frequency;
A phase change detection step of detecting a change in the initial phase between the corresponding integration periods of the adjacent fields or frames;
A correction coefficient that generates a correction coefficient whose value decreases as the detection result moves away from the logical value, based on a difference value between the detection result of the phase change detection step and the logical value of the initial phase change due to flicker Calculation steps,
And a video signal correction step of correcting a signal level of the video signal based on the correction coefficient. A recording medium recording a video signal processing program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004366993A JP4356604B2 (en) | 2004-12-20 | 2004-12-20 | VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, VIDEO SIGNAL PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO SIGNAL PROCESSING PROGRAM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004366993A JP4356604B2 (en) | 2004-12-20 | 2004-12-20 | VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, VIDEO SIGNAL PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO SIGNAL PROCESSING PROGRAM |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2006174315A JP2006174315A (en) | 2006-06-29 |
JP2006174315A5 JP2006174315A5 (en) | 2007-08-09 |
JP4356604B2 true JP4356604B2 (en) | 2009-11-04 |
Family
ID=36674551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004366993A Expired - Fee Related JP4356604B2 (en) | 2004-12-20 | 2004-12-20 | VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, VIDEO SIGNAL PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO SIGNAL PROCESSING PROGRAM |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4356604B2 (en) |
-
2004
- 2004-12-20 JP JP2004366993A patent/JP4356604B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2006174315A (en) | 2006-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5367640B2 (en) | Imaging apparatus and imaging method | |
US9055228B2 (en) | Imaging device and signal processing method for flicker reduction | |
KR101604068B1 (en) | High dynamic range imaging apparatus and method | |
US7583297B2 (en) | Image processing method, image processing apparatus, and computer program used therewith | |
JP5898466B2 (en) | Imaging device, control method thereof, and program | |
KR101391432B1 (en) | Apparatus and method for obtaining images and apparatus and method for processing images | |
JP2007074555A (en) | Flicker reduction method, flicker reduction circuit and imaging apparatus | |
JP6312487B2 (en) | Image processing apparatus, control method therefor, and program | |
WO2017090300A1 (en) | Image processing apparatus and image processing method, and program | |
WO2014027511A1 (en) | Image processing device, image processing method, and program | |
JP4539449B2 (en) | Image processing apparatus and imaging apparatus | |
KR20030097687A (en) | Image processing apparatus, camera apparatus, and automatic exposure control method | |
JP2007228200A (en) | Brightness correcting device for motion picture, control method thereof and control program thereof | |
JP4539432B2 (en) | Image processing apparatus and imaging apparatus | |
KR100934730B1 (en) | Adaptive noise reduction device and image sensor using the device | |
JP4356604B2 (en) | VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, VIDEO SIGNAL PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING VIDEO SIGNAL PROCESSING PROGRAM | |
JP2000092377A (en) | Solid-state image pickup device | |
JP2007306422A (en) | Imaging apparatus and imaging method | |
JP6827838B2 (en) | Imaging equipment and image processing equipment, their control methods, and programs | |
US11012630B1 (en) | Image processor and image processing method | |
JP2007158964A (en) | Image processing apparatus and imaging device | |
JP5721552B2 (en) | Imaging apparatus and image composition method | |
JP5094454B2 (en) | Imaging apparatus and control method thereof | |
JP2010171811A (en) | Image capturing apparatus | |
JP2006100913A (en) | Image processor and processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070620 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070620 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20090331 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20090402 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090616 |
|
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: 20090714 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090727 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120814 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120814 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120814 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130814 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |