JP2015177244A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP2015177244A
JP2015177244A JP2014050422A JP2014050422A JP2015177244A JP 2015177244 A JP2015177244 A JP 2015177244A JP 2014050422 A JP2014050422 A JP 2014050422A JP 2014050422 A JP2014050422 A JP 2014050422A JP 2015177244 A JP2015177244 A JP 2015177244A
Authority
JP
Japan
Prior art keywords
image
pixel
row
unit
dimensional data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014050422A
Other languages
Japanese (ja)
Inventor
正樹 沖田
Masaki Okita
正樹 沖田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014050422A priority Critical patent/JP2015177244A/en
Publication of JP2015177244A publication Critical patent/JP2015177244A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To make image corrections through which sufficient correction effect on random offset noise is obtained for each row even when the random noise is large.SOLUTION: An image processing apparatus makes pixel corrections on random offset noise for each row by: selecting pixel outputs of a flat part of a subject image among pixel outputs of effective pixels of an imaging element included in image data obtained by the imaging element; calculating first linear data based upon the selected pixel outputs; calculating second linear data by extracting a component of random offset noise for each row from the calculated first linear data; and subtracting the calculated second linear data from the image data for each row.

Description

本発明は、画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method.

2次元状に配列された画素を有する撮像センサからの画像の読み出しにおいて、画素出力に大きなゲインを乗じる場合、外乱や読み出し回路等の影響により行毎にランダムなオフセットノイズが画像に生じ、画像上のパターンノイズとして視認されることがあった。このような横縞状のパターンノイズに対して、撮像センサに配置された遮光画素の出力を使った補正技術が提案されている(例えば、特許文献1参照)。また、撮像センサに配置された有効画素出力又は画像に対してフィルタ処理を施すことによって横縞状の固定パターンノイズを軽減する技術が提案されている(例えば、特許文献2参照)。   When a pixel output is multiplied by a large gain when reading an image from an image sensor having two-dimensionally arranged pixels, random offset noise is generated in the image for each row due to disturbances or the influence of the readout circuit. It was sometimes visually recognized as pattern noise. For such horizontal stripe pattern noise, a correction technique using an output of a light-shielding pixel arranged in an image sensor has been proposed (for example, see Patent Document 1). In addition, a technique for reducing horizontal stripe-like fixed pattern noise by performing filter processing on an effective pixel output or an image arranged in an image sensor has been proposed (see, for example, Patent Document 2).

特開平7−67038号公報JP 7-67038 A 特開2011−76467号公報JP 2011-76467 A

しかしながら、特許文献1に記載の技術では、画素出力に大きなゲインを乗じた場合、遮光画素の数が少ないためにランダムノイズから精度よくパターンノイズの成分を抽出することが困難であり、十分な補正効果を得られないことがある。また、特許文献2に記載のような技術では、行毎にランダムなオフセットノイズといった行毎に特徴を有するノイズ成分であっても、近傍画素の情報だけでフィルタ処理を行う。そのため、特許文献2に記載のような技術では、被写体像のエッジ部分では解像感を犠牲にしてしまうか、十分な補正が行えない可能性がある。   However, in the technique described in Patent Document 1, when the pixel output is multiplied by a large gain, it is difficult to accurately extract pattern noise components from random noise because the number of light-shielding pixels is small. The effect may not be obtained. In the technique described in Patent Document 2, even with a noise component having a characteristic for each row such as a random offset noise for each row, a filtering process is performed only with information on neighboring pixels. For this reason, in the technique described in Patent Document 2, there is a possibility that a sense of resolution is sacrificed at the edge portion of the subject image or sufficient correction cannot be performed.

本発明の目的は、ランダムノイズが大きい場合であっても、行毎にランダムなオフセットノイズに対する十分な補正効果が得られる画像補正を行うことができる画像処理装置及び画像処理方法を提供することにある。   An object of the present invention is to provide an image processing apparatus and an image processing method capable of performing image correction that can provide a sufficient correction effect for random offset noise for each row even when the random noise is large. is there.

本発明に係る画像処理装置は、2次元状に配列された複数の画素を有する撮像素子で得られた画像データを入力画像とし、前記画像データに含まれる前記撮像素子における有効画素の画素出力のうち被写体像の平坦部の画素出力を選択する画素選択部と、前記画素選択部により選択された画素出力を基に第1の1次元データを算出する第1の算出部と、前記第1の算出部により算出された前記第1の1次元データから、行毎にランダムなオフセットノイズの成分を抽出して第2の1次元データを算出する第2の算出部と、前記第2の算出部により算出された前記第2の1次元データを、前記入力画像から行毎に減算する減算部とを有する。   An image processing apparatus according to the present invention uses, as an input image, image data obtained by an image sensor having a plurality of pixels arranged in a two-dimensional shape, and outputs a pixel output of effective pixels in the image sensor included in the image data. Among them, a pixel selection unit that selects a pixel output of a flat portion of the subject image, a first calculation unit that calculates first one-dimensional data based on the pixel output selected by the pixel selection unit, and the first A second calculation unit for calculating second one-dimensional data by extracting a random offset noise component for each row from the first one-dimensional data calculated by the calculation unit; and the second calculation unit A subtracting unit that subtracts the second one-dimensional data calculated by the above-mentioned input image for each row.

本発明によれば、ランダムノイズが大きい場合であっても、行毎にランダムなオフセットノイズに対する画像補正において十分な補正効果を得ることができる。   According to the present invention, even when random noise is large, a sufficient correction effect can be obtained in image correction for random offset noise for each row.

本発明の実施形態に係る撮像装置の構成例を示す図である。It is a figure which shows the structural example of the imaging device which concerns on embodiment of this invention. 本実施形態に係る撮像素子の構成例の概略を示す図である。It is a figure showing the outline of the example of composition of the image sensor concerning this embodiment. 本実施形態に係る撮像素子の単位画素及び読み出し回路の構成例を示す図である。It is a figure which shows the structural example of the unit pixel and readout circuit of the image pick-up element which concerns on this embodiment. 本実施形態に係る撮像素子の駆動例を示すタイミングチャートである。6 is a timing chart illustrating an example of driving of an image sensor according to the present embodiment. 本実施形態に係る撮像素子の画素レイアウトの例を示す図である。It is a figure which shows the example of the pixel layout of the image pick-up element which concerns on this embodiment. 第1の実施形態に係る画像処理部の構成例を示す図である。It is a figure which shows the structural example of the image process part which concerns on 1st Embodiment. 画像データの被写体像の平坦部を説明するための図である。It is a figure for demonstrating the flat part of the to-be-photographed image of image data. 画像における行毎の画素出力値の分布例を説明するための図である。It is a figure for demonstrating the example of distribution of the pixel output value for every line in an image. 水平方向に長く細い被写体が写っていた場合の行毎の最頻値を示す図である。It is a figure which shows the mode value for every line | wire when the long and thin subject is reflected in the horizontal direction. 第1の1次元データの特徴を説明するための図である。It is a figure for demonstrating the characteristic of 1st one-dimensional data. 画像処理部が有する第2の算出部の構成例を示す図である。It is a figure which shows the structural example of the 2nd calculation part which an image process part has. ウェーブレット変換について説明するための図である。It is a figure for demonstrating wavelet transformation. ウェーブレット係数に対する被写体エッジ除去を示す図である。It is a figure which shows the to-be-photographed object edge removal with respect to a wavelet coefficient. 第2の実施形態に係る画像処理部の構成例を示す図である。It is a figure which shows the structural example of the image process part which concerns on 2nd Embodiment. 本実施形態に係る画像処理装置を実現可能なコンピュータ機能を示す図である。It is a figure which shows the computer function which can implement | achieve the image processing apparatus which concerns on this embodiment.

以下、本発明の実施形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1の実施形態)
本発明の第1の実施形態について説明する。
図1は、本発明の実施形態に係る撮像装置の構成例を示すブロック図である。本実施形態に係る撮像装置は、撮像素子10、アナログデジタル(AD)変換部20、タイミングジェネレータ(TG)30、システム制御部40、画像処理部50、メモリ60、表示器70、及び記録媒体80を有する。
(First embodiment)
A first embodiment of the present invention will be described.
FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus according to an embodiment of the present invention. The imaging apparatus according to the present embodiment includes an imaging element 10, an analog-digital (AD) conversion unit 20, a timing generator (TG) 30, a system control unit 40, an image processing unit 50, a memory 60, a display 70, and a recording medium 80. Have

撮像素子10は、入射した光信号を電気的なアナログ信号に変換する。撮像素子10から出力されるアナログ信号は、アナログデジタル変換部20でデジタル信号に変換され、出力される。撮像素子10及びアナログデジタル変換部20は、タイミングジェネレータ30からのタイミング信号により同期して動作する。   The image sensor 10 converts an incident optical signal into an electrical analog signal. The analog signal output from the image sensor 10 is converted into a digital signal by the analog / digital converter 20 and output. The image sensor 10 and the analog-digital converter 20 operate in synchronization with a timing signal from the timing generator 30.

画像処理部50は、システム制御部40による制御に従って、アナログデジタル変換部20から出力されたデジタル信号に対してデジタル信号処理を行う。このデジタル信号処理には、ノイズ低減、ゲイン調整、欠陥画素補間、及び行毎にランダムなオフセットノイズに対する画像補正等を含む。メモリ60には、画像処理部50の処理結果が記録される。また、メモリ60は、信号処理の一時作業領域として用いることが可能となっている。   The image processing unit 50 performs digital signal processing on the digital signal output from the analog-digital conversion unit 20 in accordance with control by the system control unit 40. This digital signal processing includes noise reduction, gain adjustment, defective pixel interpolation, image correction for random offset noise for each row, and the like. In the memory 60, the processing result of the image processing unit 50 is recorded. The memory 60 can be used as a temporary work area for signal processing.

システム制御部40は、タイミングジェネレータ30に制御信号を送り、画像データの取得に係る撮像制御を行うとともに、画像処理部50に対して信号処理に必要なデータを転送する。また、システム制御部40は、メモリ60に記録された画像データを表示器70で表示したり、コンパクトフラッシュ(登録商標)やSDカード等の記録媒体80に画像データを記録したりする。   The system control unit 40 sends a control signal to the timing generator 30 to perform imaging control related to acquisition of image data, and transfers data necessary for signal processing to the image processing unit 50. Further, the system control unit 40 displays the image data recorded in the memory 60 on the display device 70, and records the image data on a recording medium 80 such as a compact flash (registered trademark) or an SD card.

図2は、本実施形態に係る撮像素子10の構成例の概略を示す図である。撮像素子10は、複数の単位画素101が2次元状(行方向及び列方向)に配列された画素部100と、任意の画素出力を読み出すための垂直走査回路102、読み出し回路103、及び水平走査回路104とを有する。   FIG. 2 is a diagram schematically illustrating a configuration example of the image sensor 10 according to the present embodiment. The image sensor 10 includes a pixel unit 100 in which a plurality of unit pixels 101 are arranged in a two-dimensional manner (row direction and column direction), a vertical scanning circuit 102 for reading out an arbitrary pixel output, a reading circuit 103, and horizontal scanning. Circuit 104.

図3(a)は、単位画素101の構成例を示す図である。図3(a)には、画素部100が有する複数の単位画素101のうちj行目に配置された1つの単位画素101を一例として示している。単位画素101は、フォトダイオード(光電変換素子)120、転送スイッチ121、フローティングディフュージョン122、リセットスイッチ123、行選択スイッチ124、及びソースフォロアアンプ125を有する。ソースフォロアアンプ125は、配置された列の垂直信号線126に接続されている。   FIG. 3A is a diagram illustrating a configuration example of the unit pixel 101. In FIG. 3A, one unit pixel 101 arranged in the j-th row among the plurality of unit pixels 101 included in the pixel unit 100 is shown as an example. The unit pixel 101 includes a photodiode (photoelectric conversion element) 120, a transfer switch 121, a floating diffusion 122, a reset switch 123, a row selection switch 124, and a source follower amplifier 125. The source follower amplifier 125 is connected to the vertical signal line 126 of the arranged column.

転送スイッチ121は、制御信号φTXによりオン/オフ制御され、リセットスイッチ127は、制御信号φRによりオン/オフ制御され、行選択スイッチ124は、制御信号φSELによりオン/オフ制御される。制御信号φTX、φR、φSELは、画素外部(垂直走査回路102)から供給される。   The transfer switch 121 is on / off controlled by a control signal φTX, the reset switch 127 is on / off controlled by a control signal φR, and the row selection switch 124 is on / off controlled by a control signal φSEL. Control signals φTX, φR, and φSEL are supplied from the outside of the pixel (vertical scanning circuit 102).

図3(b)は、読み出し回路103の構成例を示す図である。読み出し回路103は、列毎に設けられた列回路130と出力アンプ135とを有する。列回路130は、ノイズ信号(N)読みスイッチ131a、撮像信号(S)読みスイッチ131b、N読み容量132a、S読み容量132b、N読み転送スイッチ133a、及びS読み転送スイッチ133bを有する。各々の列回路130には、対応する列の垂直信号線126が接続されている。また、各々の列回路130のN読み転送スイッチ133aとS読み転送スイッチ133bは、それぞれ水平出力線134a、134bにより出力アンプ135に接続されている。   FIG. 3B is a diagram illustrating a configuration example of the reading circuit 103. The read circuit 103 includes a column circuit 130 and an output amplifier 135 provided for each column. The column circuit 130 includes a noise signal (N) reading switch 131a, an imaging signal (S) reading switch 131b, an N reading capacity 132a, an S reading capacity 132b, an N reading transfer switch 133a, and an S reading transfer switch 133b. Each column circuit 130 is connected to the vertical signal line 126 of the corresponding column. The N read transfer switch 133a and the S read transfer switch 133b of each column circuit 130 are connected to the output amplifier 135 by horizontal output lines 134a and 134b, respectively.

N読みスイッチ131aは、制御信号φTNによりオン/オフ制御され、S読みスイッチ131bは、制御信号φTSによりオン/オフ制御される。また、N読み転送スイッチ133a及びS読み転送スイッチ133bは、画素外部(水平走査回路104)からの制御信号φPHによりオン/オフ制御される。   The N reading switch 131a is ON / OFF controlled by a control signal φTN, and the S reading switch 131b is ON / OFF controlled by a control signal φTS. The N reading transfer switch 133a and the S reading transfer switch 133b are ON / OFF controlled by a control signal φPH from the outside of the pixel (horizontal scanning circuit 104).

図4は、本実施形態における画素信号の読み出し動作例を示すタイミングチャートである。図4では、撮像素子10の第i列、第j行に配置された画素からの読み出しを一例として示している。第j行目の画素に共通の信号を、φSEL(j)、φR(j)、φTX(j)と表している。   FIG. 4 is a timing chart showing an example of a pixel signal readout operation in the present embodiment. In FIG. 4, readout from the pixels arranged in the i-th column and the j-th row of the image sensor 10 is shown as an example. Signals common to the pixels in the j-th row are represented as φSEL (j), φR (j), and φTX (j).

まず、時刻T1〜時刻T2の期間において、リセット信号φR(j)がアサートされる。また、時刻T1〜時刻T2の期間中に制御信号φTX(j)がアサートされることで、フォトダイオード120の信号電荷はリセットされる。この動作は、すべての行で行われ、画素部100内のすべての画素が同時にリセットされる。リセット完了後、制御信号φTX(j)、φR(j)はネゲートされる。   First, in the period from time T1 to time T2, the reset signal φR (j) is asserted. Further, the signal charge of the photodiode 120 is reset by asserting the control signal φTX (j) during the period from the time T1 to the time T2. This operation is performed in all rows, and all the pixels in the pixel unit 100 are reset at the same time. After the reset is completed, the control signals φTX (j) and φR (j) are negated.

この後、時刻T3において、被写体像を導光する不図示のメカシャッターが開いて、すべての画素が同時に信号電荷の蓄積を開始する。メカシャッターは、時刻T4で閉じられる。時刻T3〜時刻T4の期間が、フォトダイオード120の信号電荷の蓄積期間となる。時刻T5において、行選択信号φSEL(j)がアサートされ、第j行目の画素の行選択スイッチ124がオンとなり、ソースフォロアアンプ125が動作状態になる。ここで、時刻T6〜時刻T7の期間において、リセット信号φR(j)がアサートされることで、ソースフォロアアンプ125のゲートの電位がリセットされる。   Thereafter, at time T3, a mechanical shutter (not shown) that guides the subject image is opened, and all pixels start to accumulate signal charges simultaneously. The mechanical shutter is closed at time T4. A period from time T3 to time T4 is a signal charge accumulation period of the photodiode 120. At time T5, the row selection signal φSEL (j) is asserted, the row selection switch 124 of the pixel in the jth row is turned on, and the source follower amplifier 125 is in an operating state. Here, in the period from time T6 to time T7, the potential of the gate of the source follower amplifier 125 is reset by asserting the reset signal φR (j).

時刻T8において、制御信号φTNがアサートされることで、リセット直後のダークレベル信号が、垂直出力線126及びN読みスイッチ131aを介して、読み出し回路103内の第i列目の列回路130のN読み容量132aに保持される。N読み容量132aにダークレベル信号の転送が完了した時刻T9で制御信号φTNはネゲートされる。N読み容量132aに保持されたダークレベル信号を、ここではN読み信号と称する。   At time T8, the control signal φTN is asserted, so that the dark level signal immediately after the reset becomes N in the column circuit 130 in the i-th column in the readout circuit 103 via the vertical output line 126 and the N readout switch 131a. It is held in the reading capacity 132a. At time T9 when the transfer of the dark level signal to the N reading capacitor 132a is completed, the control signal φTN is negated. The dark level signal held in the N reading capacity 132a is referred to herein as an N reading signal.

時刻T10において、制御信号φTX(j)がアサートされ、フォトダイオード120に蓄積された信号電荷が、転送スイッチ121を介してフローティングディフュージョン122に転送される。転送された電荷はフローティングディフュージョン122の容量で電圧に変換され、信号レベルが確定する。信号電荷の転送が十分に行われた時刻T11で制御信号φTX(j)をネゲートし、時刻T12で制御信号φTSがアサートされる。これにより信号レベルが、垂直出力線126及びS読みスイッチ131bを介して、読み出し回路130内の第i列目の列回路130のS読み容量132bに保持される。S読み容量132bに信号レベルの転送が完了した時刻T13で制御信号φTSはネゲートされる。S読み容量132bに保持された信号レベルを、ここではS読み信号と称する。   At time T10, the control signal φTX (j) is asserted, and the signal charge accumulated in the photodiode 120 is transferred to the floating diffusion 122 via the transfer switch 121. The transferred charge is converted into a voltage by the capacitance of the floating diffusion 122, and the signal level is determined. The control signal φTX (j) is negated at time T11 when the signal charge is sufficiently transferred, and the control signal φTS is asserted at time T12. As a result, the signal level is held in the S reading capacitor 132b of the i-th column circuit 130 in the reading circuit 130 via the vertical output line 126 and the S reading switch 131b. The control signal φTS is negated at time T13 when the transfer of the signal level to the S reading capacitor 132b is completed. The signal level held in the S reading capacity 132b is referred to herein as an S reading signal.

時刻T14において、行選択信号φSEL(j)がネゲートされ、第j行の画素からの画素信号の読み出しが完了する。このようにして保持されたS読み信号からN読み信号を、水平走査回路104からの制御信号φPHにより第i列目の列回路から順に水平出力線134a、134bを介して出力アンプ135に出力する。出力アンプ135では、S読み信号からN読み信号を減算することでSN比の良い画素信号が出力される。このような読み出し回路103の働きにより、CMOSイメージセンサは良好なSN比を得ることができるようになっている。   At time T14, the row selection signal φSEL (j) is negated, and reading of the pixel signal from the pixel in the jth row is completed. The N reading signal from the S reading signal held in this way is output to the output amplifier 135 via the horizontal output lines 134a and 134b in order from the column circuit of the i-th column by the control signal φPH from the horizontal scanning circuit 104. . The output amplifier 135 outputs a pixel signal having a good S / N ratio by subtracting the N reading signal from the S reading signal. The CMOS image sensor can obtain a good S / N ratio by the function of the readout circuit 103.

しかし、選択行の読み出し中に電源やグランド(GND)の電圧レベルが変動した場合、その電圧変動が選択行全体に水平方向のパターンノイズとして現れてしまう。これは、ノイズ信号の読み出し(N読み)と撮像信号の読み出し(S読み)の時刻差があることで、その間に生じた電圧変動が減算後の信号に行毎にランダムなオフセットノイズとして現れることが原因として考えられる。   However, when the voltage level of the power supply or the ground (GND) varies during reading of the selected row, the voltage variation appears as horizontal pattern noise in the entire selected row. This is because there is a time difference between the readout of the noise signal (N reading) and the readout of the imaging signal (S reading), and voltage fluctuations generated during that time appear as random offset noise for each row in the signal after subtraction. Is considered as the cause.

図5は、本実施形態に係る撮像素子10の画素レイアウトの例を示す図である。撮像素子10には、遮光された画素が配置された垂直オプティカルブラック(VOB)部140、水平オプティカルブラック(HOB)部141、及び非遮光画素が配置された有効画素部142が存在する。遮光画素は、例えば撮像素子を製造する半導体プロセスでフォトダイオード前面の配線層により遮光される。   FIG. 5 is a diagram illustrating an example of a pixel layout of the image sensor 10 according to the present embodiment. The imaging device 10 includes a vertical optical black (VOB) unit 140 in which light-shielded pixels are arranged, a horizontal optical black (HOB) unit 141, and an effective pixel unit 142 in which non-light-shielded pixels are arranged. The light shielding pixel is shielded from light by the wiring layer on the front surface of the photodiode in a semiconductor process for manufacturing an image sensor, for example.

前述した行毎にランダムなオフセットノイズは、有効画素部142の画素出力に限らず、遮光されたHOB部141の画素出力にも同様に現れる。そのため、画像処理部50でHOB部141の画素信号を用いて有効画素部142の画素信号をデジタル的に補正することが可能である。この画像補正処理について、以下に説明する。   The random offset noise for each row described above appears not only in the pixel output of the effective pixel unit 142 but also in the pixel output of the HOB unit 141 that is shielded from light. Therefore, it is possible for the image processing unit 50 to digitally correct the pixel signal of the effective pixel unit 142 using the pixel signal of the HOB unit 141. This image correction process will be described below.

ある行においてHOB部141の画素出力の水平方向の平均値を求めることで、ランダムノイズを抑制し、当該行におけるオフセットノイズ量を推定することができる。この推定されたオフセットノイズ量を減算することで有効画素部142の画素出力におけるオフセットノイズを補正する。また、当該行を含む複数行分のHOB部141の画素出力から平均値を求め、当該行のオフセットノイズ量を推定してもよい。後者の場合、増やした行数分だけ異なる行のオフセットノイズが計算に加わるため、当該行の正確なノイズ量を推定できなくなるが、平均母数が増えることでランダムノイズの抑制効果は大きく、大きな誤りとはなりにくいと考えられている。オフセットノイズ量を推定する際に使用する行数は、HOB部141の1行分の画素数を考慮して適宜調整することが望ましい。この処理をHOB横縞補正と称する。   By obtaining the horizontal average value of the pixel output of the HOB unit 141 in a certain row, it is possible to suppress random noise and estimate the offset noise amount in that row. The offset noise in the pixel output of the effective pixel unit 142 is corrected by subtracting the estimated offset noise amount. Alternatively, an average value may be obtained from the pixel outputs of the HOB units 141 for a plurality of rows including the row, and the offset noise amount of the row may be estimated. In the latter case, since the offset noise of different rows by the increased number of rows is added to the calculation, it is impossible to estimate the exact noise amount of the row, but the effect of suppressing random noise is large by increasing the average parameter. It is considered unlikely to be an error. It is desirable that the number of rows used when estimating the amount of offset noise is appropriately adjusted in consideration of the number of pixels for one row of the HOB unit 141. This process is referred to as HOB horizontal stripe correction.

前述したHOB横縞補正によって、十分な補正効果を得るためには、HOB部141の1行分の画素は十分な数が必要である。特に、ランダムノイズの影響が大きくなる高撮影感度(高ISO感度)設定時においては、HOB部141の画素出力からオフセットノイズ量を推定することが困難になる。   In order to obtain a sufficient correction effect by the above-described HOB horizontal stripe correction, a sufficient number of pixels for one row of the HOB portion 141 are necessary. In particular, at the time of setting a high photographing sensitivity (high ISO sensitivity) in which the influence of random noise is large, it is difficult to estimate the offset noise amount from the pixel output of the HOB unit 141.

そこで、本実施形態では、ランダムノイズが大きい場合であっても、行毎にランダムなオフセットノイズを軽減し、十分な補正効果が得られる画像補正を行えるようにする。図6は、第1の実施形態に係る画像処理部50の構成例を示すブロック図である。図6には、第1の実施形態に係る画像処理部50が有する構成のうち、前述の撮像素子の読み出しに起因して発生する行毎にランダムなオフセットノイズを補正する部分のみを示している。   Therefore, in the present embodiment, even when the random noise is large, random offset noise is reduced for each row so that image correction with sufficient correction effect can be performed. FIG. 6 is a block diagram illustrating a configuration example of the image processing unit 50 according to the first embodiment. FIG. 6 illustrates only a portion of the configuration of the image processing unit 50 according to the first embodiment that corrects random offset noise for each row generated due to the above-described reading of the image sensor. .

図6に示すように、画像処理部50は、画素選択部502、第1の算出部503、第2の算出部504、及び行オフセット減算部505を有する。画素選択部502は、画像処理部50に入力された画像データ(入力画像)に対して、有効画素部の画素出力の内から画素値の類似した被写体像の平坦部の画素出力を選択する。   As illustrated in FIG. 6, the image processing unit 50 includes a pixel selection unit 502, a first calculation unit 503, a second calculation unit 504, and a row offset subtraction unit 505. The pixel selection unit 502 selects, for the image data (input image) input to the image processing unit 50, the pixel output of the flat portion of the subject image having a similar pixel value from the pixel outputs of the effective pixel unit.

ここで、被写体像の平坦部について図7を参照して説明する。図7は、画像データの被写体像の平坦部を説明するための図である。図7(a)に示す画像データに対して、図7(b)においてハッチングを施した領域510は、人物等の主被写体ではない空や平坦な壁等が撮影された領域を示す。特に夜間の撮影では、主被写体に対して背景部分は露光不足で平坦な暗部として写りやすい。画素選択部502は、図7(b)の領域510に示すような被写体像の平坦部の画素出力を選択する。   Here, the flat portion of the subject image will be described with reference to FIG. FIG. 7 is a diagram for explaining a flat portion of a subject image of image data. A hatched area 510 in FIG. 7B with respect to the image data shown in FIG. 7A indicates an area where a sky or a flat wall that is not a main subject such as a person is photographed. Particularly in night photography, the background portion of the main subject is easily exposed as a flat dark portion due to insufficient exposure. The pixel selection unit 502 selects the pixel output of the flat part of the subject image as shown in the area 510 of FIG.

第1の算出部503は、画素選択部502が選択した画素出力から、行毎に水平方向の画素出力の平均値を求めて、画像垂直方向に関する1次元データである第1の1次元データDTAを算出する。つまり、第1の算出部503では、行毎に平坦部として選択した画素出力の水平方向の平均値を算出することで、その行における画像水平方向の低周波成分を抽出している。第1の1次元データDTAからは、画像水平方向の低周波成分の画像垂直方向に対する変化を知ることができる。   The first calculation unit 503 obtains an average value of the pixel output in the horizontal direction for each row from the pixel output selected by the pixel selection unit 502, and the first one-dimensional data DTA that is one-dimensional data in the vertical direction of the image. Is calculated. That is, the first calculation unit 503 extracts the low-frequency component in the horizontal direction of the image in the row by calculating the average value in the horizontal direction of the pixel output selected as the flat portion for each row. From the first one-dimensional data DTA, it is possible to know the change of the low frequency component in the horizontal direction of the image with respect to the vertical direction of the image.

第1の算出部503により算出された第1の1次元データDTAには、行毎にランダムなオフセットノイズ成分と被写体像の成分とが含まれる。第2の算出部504は、第1の1次元データDTAに対してフィルタ処理を施すことにより、行毎にランダムなオフセットノイズ成分だけが抽出された第2の1次元データDTBを算出する。前述した画素選択部502による処理で、第1の1次元データDTAには低周波側に被写体像の成分を持ち、高周波側に行毎にランダムなオフセットノイズの成分が多く含まれ、被写体像の高周波成分は除去されている。したがって、第1の1次元データDTAに対して低周波成分を小さくするフィルタ処理を行うだけで、被写体像の高周波成分の影響を受けることなく、行毎にランダムなオフセットノイズの成分のみが抽出された第2の1次元データDTBを抽出することができる。   The first one-dimensional data DTA calculated by the first calculation unit 503 includes a random offset noise component and a subject image component for each row. The second calculation unit 504 performs the filtering process on the first one-dimensional data DTA, thereby calculating the second one-dimensional data DTB in which only random offset noise components are extracted for each row. By the processing by the pixel selection unit 502 described above, the first one-dimensional data DTA has a subject image component on the low frequency side and a lot of random offset noise components for each row on the high frequency side. High frequency components are removed. Therefore, only a random offset noise component is extracted for each row without being affected by the high-frequency component of the subject image only by performing a filtering process for reducing the low-frequency component on the first one-dimensional data DTA. The second one-dimensional data DTB can be extracted.

行オフセット減算部で505は、画像処理部50に入力された画像データ(入力画像)から、第2の算出部504により算出された第2の1次元データDTBを、行毎に減算する。これにより、前述したHOB横縞補正だけよりも、行毎にランダムなオフセットノイズが少ない画像データを得ることが可能となる。本実施形態では、画素選択部502により被写体像の平坦部の画素出力だけを取り出すことにより、フィルタ処理時にノイズ成分として取り出せる周波数帯域を広くでき、被写体のエッジ部の周波数帯域と重複するノイズ成分も抽出することが可能になる。   A row offset subtraction unit 505 subtracts the second one-dimensional data DTB calculated by the second calculation unit 504 from the image data (input image) input to the image processing unit 50 for each row. As a result, it is possible to obtain image data with less random offset noise for each row than just the HOB horizontal stripe correction described above. In the present embodiment, by extracting only the pixel output of the flat part of the subject image by the pixel selection unit 502, the frequency band that can be extracted as a noise component at the time of filter processing can be widened, and the noise component that overlaps the frequency band of the edge part of the subject is also included. It becomes possible to extract.

以下に、前述した第1の実施形態に係る画像処理部50での処理について詳細を説明する。まず、画素選択部502の具体的な処理内容について説明する。図8は、画像における行毎の画素出力値の分布例を説明するための図である。図8(a)、(b)に示すように、画像中の行CA及び行CBから行毎の画像出力値のヒストグラムを作成した場合、ピントの合っている主被写体は高周波成分が多く、背景部等は低周波成分が多いため、画素出力の最頻値は背景部分を示している可能性が高い。背景部が空や平坦な壁等であった場合には、その傾向が強くなる。   Details of the processing in the image processing unit 50 according to the first embodiment will be described below. First, specific processing contents of the pixel selection unit 502 will be described. FIG. 8 is a diagram for explaining a distribution example of pixel output values for each row in an image. As shown in FIGS. 8A and 8B, when a histogram of image output values for each row is created from the rows CA and CB in the image, the focused main subject has many high-frequency components and the background. Since there are many low frequency components, the mode value of the pixel output is highly likely to indicate the background portion. When the background part is the sky or a flat wall, the tendency becomes strong.

そこで、画素選択部502は、行毎の画像出力値のヒストグラムを作成し、第1の閾値と第2の閾値との範囲内の画素出力を示す画素を、その行における平坦部画素とする。図8を参照して、第1の閾値及び第2の閾値の決定方法の一例を説明する。最頻値κとし、(κ−λ1)≦κ≦(κ+λ2)の関係がある値λ1、λ2により、第1の閾値を(κ−λ1)、第2の閾値を(κ+λ2)とする。値λ1、λ2の決定方法としては、撮影画像と同じ撮影感度(ISO感度)設定で得られたダーク画像の画素値の標準偏差σを基準に決定してもよい。本発明者が実験的に行った結果では、それぞれ(κ−2σ)≦(κ−λ1)≦(κ−σ)、(κ+σ)≦(κ+λ2)≦(κ+2σ)の範囲で定めたときに良好な結果が得られた。ここで、一つ上の行の最頻値κ’により、第1の閾値を(κ’−λ1)、第2の閾値を(κ’+λ2)としても差し支えない。   Therefore, the pixel selection unit 502 creates a histogram of image output values for each row, and sets a pixel indicating a pixel output within the range between the first threshold value and the second threshold value as a flat portion pixel in the row. An example of a method for determining the first threshold value and the second threshold value will be described with reference to FIG. With the mode value κ, values λ1 and λ2 having a relationship of (κ−λ1) ≦ κ ≦ (κ + λ2) are used, and the first threshold value is (κ−λ1) and the second threshold value is (κ + λ2). As a method of determining the values λ1 and λ2, the standard deviation σ of the pixel value of the dark image obtained with the same shooting sensitivity (ISO sensitivity) setting as that of the captured image may be used as a reference. As a result of experiments conducted by the present inventors, ranges of (κ−2σ) ≦ (κ−λ1) ≦ (κ−σ) and (κ + σ) ≦ (κ + λ2) ≦ (κ + 2σ), respectively. Good results were obtained when determined in. Here, the first threshold value may be (κ′−λ1) and the second threshold value may be (κ ′ + λ2) depending on the mode value κ ′ in the upper row.

前述した処理において、電線等の水平方向に長く細い被写体が写っていた場合、行毎の画素出力の最頻値が短い周期で大きく変化することがある。図9は、水平方向に長く細い被写体が写っていた場合の行毎の画素出力の最頻値の例を示す図である。図9(a)に示すように行毎の画素出力の最頻値に高周波成分が含まれると、これを基に算出される第1の1次元データにも不要な高周波成分が含まれてしまい、フィルタ処理で行毎にランダムなオフセットノイズだけを抽出することが困難となってしまう。図9(b)は、図9(a)に示したデータに対して移動平均フィルタをかけたデータを示している。このように、各行での最頻値κに対して移動平均フィルタ等のローパスフィルタ処理を施すことで、被写体平坦部の画素の選択において誤った判断をしにくくすることができる。   In the processing described above, when a long and thin subject such as an electric wire is captured in the horizontal direction, the mode value of the pixel output for each row may change greatly in a short cycle. FIG. 9 is a diagram illustrating an example of the mode value of the pixel output for each row when a long and thin subject is captured in the horizontal direction. As shown in FIG. 9A, if the mode value of the pixel output for each row includes a high frequency component, the first one-dimensional data calculated based on this mode also includes an unnecessary high frequency component. Therefore, it becomes difficult to extract only random offset noise for each row by the filter processing. FIG. 9B shows data obtained by applying a moving average filter to the data shown in FIG. In this way, by performing low-pass filter processing such as a moving average filter on the mode value κ in each row, it is possible to make it difficult to make an erroneous determination in selecting a pixel in the subject flat portion.

前述した第1の閾値及び第2の閾値の決定方法は一例であり、これに限定されるものではない。また、複数の画素出力を平坦部の画素選択の判定に使うことも可能である。例えば、画素選択部502は、注目している画素を中心に画像の水平方向に移動平均値を算出し、その平均値が第1の閾値と第2の閾値との範囲内であるときに、その注目している画素を平坦部画素と判断する。このようにした場合には、水平方向に移動平均を求めることでランダムノイズを抑制できるため、単一の画素だけで判断するよりも平坦部を正しく捉えることができる。また、複数の画素を使うことに関し、水平方向の複数の画素に限定するものではなく、2次元的に近傍に存在する画素を使っても良いし、移動平均以外のメディアンフィルタ等を使用しても良い。   The method for determining the first threshold value and the second threshold value described above is an example, and the present invention is not limited to this. It is also possible to use a plurality of pixel outputs for determination of pixel selection in the flat portion. For example, the pixel selection unit 502 calculates a moving average value in the horizontal direction of the image around the pixel of interest, and when the average value is within the range between the first threshold value and the second threshold value, The pixel of interest is determined as a flat pixel. In this case, since the random noise can be suppressed by obtaining the moving average in the horizontal direction, it is possible to correctly capture the flat portion rather than judging only with a single pixel. In addition, regarding the use of a plurality of pixels, the pixel is not limited to a plurality of pixels in the horizontal direction, and pixels that are two-dimensionally adjacent may be used, or a median filter other than a moving average may be used. Also good.

次に、第1の算出部503の具体的な処理について説明する。第1の算出部503は、画素選択部502で被写体像の平坦部の画素と判断された画素の画素出力値を一行間に渡り、積分するとともに、その画素数をカウントする。そして、第1の算出部503は、行末の画素まで処理が終了すると、積分値を画素数で除算する。すべての行について処理が終了すると、第1の1次元データDTAが得られる。   Next, specific processing of the first calculation unit 503 will be described. The first calculation unit 503 integrates the pixel output values of the pixels determined by the pixel selection unit 502 as the pixels of the flat portion of the subject image over one line, and counts the number of pixels. The first calculation unit 503 divides the integral value by the number of pixels when the processing is completed up to the pixel at the end of the row. When processing is completed for all rows, first one-dimensional data DTA is obtained.

図10は、第1の1次元データDTAの特徴を説明するための図である。図10(a)、(b)に示すように、第1の1次元データは、横軸を画素部100の行とし、縦軸を画素選択部502で選択された画素の水平方向の平均値としたデータである。図10(a)は、入力画像に行毎のランダムノイズが存在する場合に第1の算出部503で得られる第1の1次元データを示している。図10(b)は、前述の行毎にランダムなオフセットノイズがなかった場合に同様の処理をして得られる第1の1次元データを示している。行毎にランダムなオフセットノイズがない場合、第1の1次元データは、画像垂直方向に対して大きく変化することが少ないため、図10(b)に示すような低周波成分が支配的なデータとなることが予想できる。したがって、図10(a)に見られる高周波成分は、行毎にランダムなオフセットノイズの影響が主であると判断できる。   FIG. 10 is a diagram for explaining the characteristics of the first one-dimensional data DTA. As shown in FIGS. 10A and 10B, the first one-dimensional data is the horizontal average value of the pixels selected by the pixel selection unit 502 with the horizontal axis as the row of the pixel unit 100. This is the data. FIG. 10A shows the first one-dimensional data obtained by the first calculation unit 503 when random noise for each row exists in the input image. FIG. 10B shows the first one-dimensional data obtained by performing the same processing when there is no random offset noise for each row described above. When there is no random offset noise for each row, the first one-dimensional data is less likely to change greatly in the vertical direction of the image, and therefore data with a dominant low frequency component as shown in FIG. Can be expected. Therefore, it can be determined that the high-frequency component seen in FIG. 10A is mainly affected by random offset noise for each row.

次に、第2の算出部504の具体的な処理について説明する。第2の算出部504は、第1の算出部503により算出された第1の1次元データに対して、特定の周波数帯域を抽出する処理を行うことにより、行毎にランダムなオフセットノイズを抽出する。周波数帯域毎に分解する方法としては、例えば離散ウェーブレット変換(Discrete Wavelet Transform)による多重解像度分解等がある。   Next, specific processing of the second calculation unit 504 will be described. The second calculation unit 504 extracts random offset noise for each row by performing a process of extracting a specific frequency band on the first one-dimensional data calculated by the first calculation unit 503. To do. As a method of decomposing for each frequency band, for example, there is multi-resolution decomposition by discrete wavelet transform.

図11は、第2の算出部504の構成例を示すブロック図である。第2の算出部504は、周波数変換部520、帯域抽出部521、被写体エッジ除去部522、及び逆変換部523を有する。周波数変換部520は、離散ウェーブレット変換を第1の1次元データDTAに適用し、周波数帯域毎のウェーブレット係数に分解する。また、離散ウェーブレット変換には高速アルゴリズムが知られている。ウェーブレット変換の概要を、図12を参照して説明する。   FIG. 11 is a block diagram illustrating a configuration example of the second calculation unit 504. The second calculation unit 504 includes a frequency conversion unit 520, a band extraction unit 521, a subject edge removal unit 522, and an inverse conversion unit 523. The frequency conversion unit 520 applies discrete wavelet transform to the first one-dimensional data DTA and decomposes it into wavelet coefficients for each frequency band. A fast algorithm is known for discrete wavelet transform. An outline of the wavelet transform will be described with reference to FIG.

図12(a)は、ウェーブレット変換の概要を示す図である。離散ウェーブレット変換は、利得特性が対称な一組のローパスフィルタとハイパスフィルタとを利用して複数の周波数帯域に分解する。ローパスフィルタの出力として得られた信号はスケーリング係数と呼ばれ、ハイパスフィルタの出力として得られた信号はウェーブレット係数と呼ばれる。高速アルゴリズムを用いるにはデータ長が2のべき乗でなければならないので、ダミーデータ等で数を合わせる。   FIG. 12A is a diagram showing an outline of wavelet transform. The discrete wavelet transform is decomposed into a plurality of frequency bands using a pair of low-pass filters and high-pass filters having symmetrical gain characteristics. The signal obtained as the output of the low-pass filter is called a scaling coefficient, and the signal obtained as the output of the high-pass filter is called a wavelet coefficient. Since the data length must be a power of 2 in order to use the high-speed algorithm, the numbers are matched with dummy data or the like.

図12(a)において、スケール0は原信号であり、便宜上、スケーリング係数S0として表している。スケーリング係数S0に対し、ローパスフィルタを通したスケーリング係数S1とハイパスフィルタを通したウェーブレット係数T1を得る。ここで、スケーリング係数S1及びウェーブレット係数T1のデータ長は、それぞれスケーリング係数S0の半分となる。同様にして、スケーリング係数S1に対し、ローパスフィルタを通したスケーリング係数S2とハイパスフィルタを通したウェーブレット係数T2を得る。スケーリング係数S2及びウェーブレット係数T2のデータ長は、スケーリング係数S1の半分である。また、ウェーブレット係数T1についてはフィルタ処理を行わない。このようにスケーリング係数にだけ一連のフィルタ処理を繰り返し行うことで、図12(a)に示したように、繰り返した分だけ周波数帯域の異なるウェーブレット係数を得ることができる。   In FIG. 12A, scale 0 is an original signal and is represented as a scaling coefficient S0 for convenience. For the scaling coefficient S0, a scaling coefficient S1 that has passed through a low-pass filter and a wavelet coefficient T1 that has passed through a high-pass filter are obtained. Here, the data lengths of the scaling coefficient S1 and the wavelet coefficient T1 are each half of the scaling coefficient S0. Similarly, a scaling coefficient S2 that has passed through a low-pass filter and a wavelet coefficient T2 that has passed through a high-pass filter are obtained for the scaling coefficient S1. The data lengths of the scaling coefficient S2 and the wavelet coefficient T2 are half of the scaling coefficient S1. Further, no filter processing is performed on the wavelet coefficient T1. By repeatedly performing a series of filtering processes only on the scaling coefficients in this way, wavelet coefficients having different frequency bands can be obtained by the amount of repetition as shown in FIG.

図12(b)は、各スケールでのウェーブレット係数がもつ周波数帯域を表した図である。帯域抽出部521は、前述のようにして周波数変換部520により得られたウェーブレット係数に対して、特定の周波数帯域成分以外に1.0以下のゲインを乗じて、行毎のオフセットノイズを抽出する。本実施形態では、第2の算出部504に入力された第1の1次元データDTAには被写体像の成分が低周波成分として含まれているので、予め設定したスケール以下のウェーブレット係数にはゼロを乗じる。言い換えると、帯域抽出部521は、事前に決めた周波数帯域以下の成分をカットする。カットする周波数帯域は、行毎にランダムなオフセットノイズが撮像素子における垂直方向にどのような周波数帯域で出現しているかで判断する。   FIG. 12B is a diagram showing the frequency bands of the wavelet coefficients at each scale. The band extracting unit 521 extracts the offset noise for each row by multiplying the wavelet coefficient obtained by the frequency converting unit 520 as described above by a gain of 1.0 or less in addition to the specific frequency band component. . In the present embodiment, the first one-dimensional data DTA input to the second calculation unit 504 includes a subject image component as a low-frequency component, so that the wavelet coefficient below a preset scale has zero. Multiply In other words, the band extracting unit 521 cuts components that are equal to or lower than a predetermined frequency band. The frequency band to be cut is determined by what frequency band random offset noise appears in the vertical direction of the image sensor for each row.

次に、被写体エッジ除去部522は、帯域抽出部521でカットしなかったウェーブレット係数に対しても、ウェーブレット係数の大きさに応じてゲイン調整を行う。図13は、スケールmのウェーブレット係数に対する被写体エッジ除去を示す図である。被写体エッジ除去部522は、スケールmのウェーブレット係数のうち、負の閾値a1以下の係数及び正の閾値a2以上の係数に対して1.0以下のゲインを乗じる。この処理は、行毎にランダムなオフセットノイズは、被写体像のエッジ部分に比べ、画素値の変動が小さいという特徴を利用して、画素選択部502で混入してしまった被写体像のエッジ部の情報を縮小するために行う。これにより、画像補正後の画像において、被写体のエッジ情報が失われるのを抑制することができる。   Next, the subject edge removing unit 522 performs gain adjustment on the wavelet coefficients not cut by the band extracting unit 521 according to the magnitude of the wavelet coefficients. FIG. 13 is a diagram showing subject edge removal for wavelet coefficients of scale m. The subject edge removal unit 522 multiplies the coefficient of the scale m wavelet coefficient by a gain of 1.0 or less to the coefficient of the negative threshold a1 or less and the coefficient of the positive threshold a2 or more. This processing uses the feature that random offset noise for each row has a smaller variation in pixel value than the edge portion of the subject image, and the edge portion of the subject image mixed in by the pixel selection unit 502 is used. This is done to reduce the information. Thereby, it is possible to suppress the loss of the edge information of the subject in the image after the image correction.

逆変換部523は、被写体エッジ部522で処理したウェーブレット係数データを、逆離散ウェーブレット変換(Inverse Discrete Wavelet Transform)を施し、第2の1次元データDTBを得る。ここで求められた第2の1次元データDTBは、行毎にランダムなオフセットノイズが抽出されたものである。   The inverse transform unit 523 performs inverse discrete wavelet transform on the wavelet coefficient data processed by the subject edge unit 522 to obtain second one-dimensional data DTB. The second one-dimensional data DTB obtained here is obtained by extracting random offset noise for each row.

なお、ここでは離散ウェーブレット変換を用いる例を説明したが、周波数帯域で成分の分離を行うことができれば、フーリエ変換やその他の多重解像度分解手段、又はデジタルフィルタを用いてもよい。   Although an example using the discrete wavelet transform has been described here, a Fourier transform, other multi-resolution decomposition means, or a digital filter may be used as long as the components can be separated in the frequency band.

次に、行オフセット減算部505の具体的な処理について説明する。行オフセット減算部505は、画像処理部50に入力された元の画像データから、第2の1次元データDTBの中で元画像の行に対応する数値に後述する信頼性係数を乗じて行毎に一律の値を減算する。信頼性係数とは、第2の1次元データDTBがどの程度正確に行毎にランダムなオフセットノイズを抽出できたかによって乗じるものである。例えば、画素選択部502で選択された画素のカウント数に応じて、1.0以下のゲインを信頼性係数として乗じる。例えば、画素選択部502で選択された画素のカウント数が大きい場合にはゲインを大きくし、カウント数が小さい場合にはゲインを小さくする。   Next, specific processing of the row offset subtraction unit 505 will be described. The row offset subtraction unit 505 multiplies the numerical value corresponding to the row of the original image in the second one-dimensional data DTB from the original image data input to the image processing unit 50 by a reliability coefficient described later. Subtract a uniform value. The reliability coefficient is multiplied by how accurately the second one-dimensional data DTB can extract random offset noise for each row. For example, the gain of 1.0 or less is multiplied as the reliability coefficient according to the count number of the pixel selected by the pixel selection unit 502. For example, the gain is increased when the count number of the pixel selected by the pixel selection unit 502 is large, and the gain is decreased when the count number is small.

第1の実施形態によれば、前述した画像処理部50での処理により、有効画素の画素出力から画像に含まれる行毎にランダムなオフセットノイズの成分を除くことができる。したがって、画像に含まれる行毎にランダムなオフセットノイズに対する画像補正を有効画素の画素出力に適切に施すことができ、ランダムノイズが大きい場合であっても十分な補正効果を得ることができる。   According to the first embodiment, by the processing in the image processing unit 50 described above, it is possible to remove random offset noise components for each row included in the image from the pixel output of the effective pixels. Therefore, image correction for random offset noise can be appropriately performed on the pixel output of effective pixels for each row included in the image, and a sufficient correction effect can be obtained even when the random noise is large.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。第2の実施形態は、第1の実施形態における画像補正と前述したHOB横縞補正と併用するものである。以下では、第1の実施形態と異なる点についてのみ説明する。図14は、第2の実施形態に係る画像処理部50の構成例を示すブロック図である。なお、図14においても、第2の実施形態に係る画像処理部50が有する構成のうち、前述の撮像素子の読み出しに起因して発生する行毎にランダムなオフセットノイズを補正する部分のみを示している。図14において、図6に示した構成要素と同一の機能を有する構成要素には同一の符号を付し、重複する説明は省略する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In the second embodiment, the image correction in the first embodiment and the HOB horizontal stripe correction described above are used in combination. Hereinafter, only differences from the first embodiment will be described. FIG. 14 is a block diagram illustrating a configuration example of the image processing unit 50 according to the second embodiment. FIG. 14 also shows only a portion that corrects random offset noise for each row generated due to reading of the above-described imaging element in the configuration of the image processing unit 50 according to the second embodiment. ing. 14, components having the same functions as those shown in FIG. 6 are given the same reference numerals, and redundant descriptions are omitted.

図14に示すように、画像処理部50は、HOB横縞補正部500、ISO感度判定部501、画素選択部502、第1の算出部503、第2の算出部504、及び行オフセット減算部505を有する。画像処理部50に入力された画像データ(入力画像)は、まずHOB横縞補正部500に入力される。HOB横縞補正部500は、前述の第1の実施形態で説明したHOB横縞補正処理を行う。HOB横縞補正処理に用いるHOB画素の行数は、撮影感度(ISO感度)の設定に応じて予め決めておく。ここで、撮影感度(ISO感度)の設定が高いほどランダムノイズが大きくなることから、撮影時の撮影感度(ISO感度)が高いほど補正に用いるHOB画素の行数を十分に大きくする。これにより、行毎にランダムなオフセットノイズの低周波成分が除去された第1の横縞補正画像が得られる。   As illustrated in FIG. 14, the image processing unit 50 includes a HOB horizontal stripe correction unit 500, an ISO sensitivity determination unit 501, a pixel selection unit 502, a first calculation unit 503, a second calculation unit 504, and a row offset subtraction unit 505. Have Image data (input image) input to the image processing unit 50 is first input to the HOB horizontal stripe correction unit 500. The HOB horizontal stripe correction unit 500 performs the HOB horizontal stripe correction process described in the first embodiment. The number of rows of HOB pixels used for the HOB horizontal stripe correction process is determined in advance according to the setting of photographing sensitivity (ISO sensitivity). Here, the higher the setting of the shooting sensitivity (ISO sensitivity), the larger the random noise. Therefore, the higher the shooting sensitivity (ISO sensitivity) during shooting, the larger the number of rows of HOB pixels used for correction. Thereby, the 1st horizontal stripe correction image from which the low frequency component of the random offset noise was removed for every line is obtained.

HOB横縞補正処理に用いるHOB画素の行数の決定方法としては、例えば撮像素子10に光が入り込まないように遮光して撮影した画像(以下、ダーク画像と称する)の有効画素部の画素値のばらつきから決定する方法がある。有効画素部の画素出力値が平均μ、標準偏差σの分布を持っているとき、中心極限定理に基づき、画素n個の平均値は平均μ、標準偏差σ/√nの分布に含まれる。平均値の標準偏差σ/√nが十分に小さくなるように値nを決定する。なお、値nが2のべき乗となるようにすると除算がシフト演算で実現できるので、実装上好ましい。   As a method for determining the number of rows of HOB pixels used for the HOB horizontal stripe correction process, for example, the pixel value of the effective pixel portion of an image (hereinafter referred to as a dark image) captured while being shielded so that light does not enter the image sensor 10 is used. There is a method of determining from the variation. When the pixel output value of the effective pixel portion has a distribution of average μ and standard deviation σ, the average value of n pixels is included in the distribution of average μ and standard deviation σ / √n based on the central limit theorem. The value n is determined so that the standard deviation σ / √n of the average value becomes sufficiently small. In addition, when the value n is set to a power of 2, division can be realized by a shift operation, which is preferable in terms of implementation.

ISO感度判定部501は、画像データの撮影感度(ISO感度)に応じたスイッチから成る。ISO感度判定部501は、画像処理装置50に入力された画像データの撮影時の撮影感度(ISO感度)を基に、第1の横縞補正画像を画素選択部502に出力するか否かを判定する。画像処理装置50に入力された画像データの撮影時の撮影感度(ISO感度)が予め設定された撮影感度である場合、第1の横縞補正画像を画素選択部502に出力し、第1の実施形態と同様の処理を行う。このように第2の実施形態によれば、第1の実施形態における画像補正とHOB横縞補正部500によるHOB横縞補正処理とを併用することで、行毎にランダムなオフセットノイズの低周波成分と高周波成分を合わせて軽減することができる。   The ISO sensitivity determination unit 501 includes a switch corresponding to the imaging sensitivity (ISO sensitivity) of image data. The ISO sensitivity determination unit 501 determines whether to output the first horizontal stripe correction image to the pixel selection unit 502 based on the imaging sensitivity (ISO sensitivity) at the time of imaging of the image data input to the image processing device 50. To do. When the shooting sensitivity (ISO sensitivity) at the time of shooting of the image data input to the image processing device 50 is a preset shooting sensitivity, the first horizontal stripe correction image is output to the pixel selection unit 502, and the first implementation is performed. Processing similar to that of the form is performed. Thus, according to the second embodiment, by using the image correction in the first embodiment and the HOB horizontal stripe correction processing by the HOB horizontal stripe correction unit 500 in combination, High frequency components can be reduced together.

(本発明の他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、前述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments of the present invention)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

例えば、第1及び第2の実施形態に示した画像処理装置は、図15に示すようなコンピュータ機能1000を有し、そのCPU1001により第1及び第2の実施形態での動作が実施される。コンピュータ機能1000は、図15に示すように、CPU1001と、ROM1002と、RAM1003とを備える。また、操作部(CONS)1009のコントローラ(CONSC)1005と、CRTやLCD等の表示部としてのディスプレイ(DISP)1010のディスプレイコントローラ(DISPC)1006とを備える。さらに、ハードディスク(HD)1011、及びフレキシブルディスク等の記憶デバイス(STD)1012のコントローラ(DCONT)1007と、ネットワークインタフェースカード(NIC)1008とを備える。それら機能部1001、1002、1003、1005、1006、1007、1008は、システムバス1004を介して互いに通信可能に接続された構成としている。   For example, the image processing apparatus shown in the first and second embodiments has a computer function 1000 as shown in FIG. 15, and the CPU 1001 performs the operations in the first and second embodiments. As shown in FIG. 15, the computer function 1000 includes a CPU 1001, a ROM 1002, and a RAM 1003. Further, a controller (CONSC) 1005 of the operation unit (CONS) 1009 and a display controller (DISPC) 1006 of a display (DISP) 1010 as a display unit such as a CRT or LCD are provided. Furthermore, a hard disk (HD) 1011, a controller (DCONT) 1007 of a storage device (STD) 1012 such as a flexible disk, and a network interface card (NIC) 1008 are provided. These functional units 1001, 1002, 1003, 1005, 1006, 1007, and 1008 are configured to be communicably connected to each other via a system bus 1004.

CPU1001は、ROM1002又はHD1011に記憶されたソフトウェア、又はSTD1012より供給されるソフトウェアを実行することで、システムバス1004に接続された各構成部を総括的に制御する。すなわち、CPU1001は、前述したような動作を行うための処理プログラムを、ROM1002、HD1011、又はSTD1012から読み出して実行することで、第1及び第2の実施形態での動作を実現するための制御を行う。RAM1003は、CPU1001の主メモリ又はワークエリア等として機能する。CONSC1005は、CONS1009からの指示入力を制御する。DISPC1006は、DISP1010の表示を制御する。DCONT1007は、ブートプログラム、種々のアプリケーション、ユーザファイル、ネットワーク管理プログラム、及び第1及び第2の実施形態における前記処理プログラム等を記憶するHD1011及びSTD1012とのアクセスを制御する。NIC1008はネットワーク1013上の他の装置と双方向にデータをやりとりする。   The CPU 1001 performs overall control of each component connected to the system bus 1004 by executing software stored in the ROM 1002 or the HD 1011 or software supplied from the STD 1012. That is, the CPU 1001 reads out the processing program for performing the operation as described above from the ROM 1002, the HD 1011 or the STD 1012 and executes it, thereby performing control for realizing the operation in the first and second embodiments. Do. The RAM 1003 functions as a main memory or work area for the CPU 1001. The CONSC 1005 controls an instruction input from the CONS 1009. The DISPC 1006 controls the display of the DISP 1010. The DCONT 1007 controls access to the HD 1011 and the STD 1012 that store a boot program, various applications, user files, a network management program, the processing program in the first and second embodiments, and the like. The NIC 1008 exchanges data with other devices on the network 1013 in both directions.

なお、前記実施形態は、何れも本発明を実施するにあたっての具体化のほんの一例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

10:撮像素子 50:画像処理部 500:HOB横縞補正部 501:ISO感度判定部 502:画素選択部 503:第1の算出部 504:第2の算出部 505:行オフセット減算部 DESCRIPTION OF SYMBOLS 10: Image pick-up element 50: Image processing part 500: HOB horizontal stripe correction | amendment part 501: ISO sensitivity determination part 502: Pixel selection part 503: 1st calculation part 504: 2nd calculation part 505: Row offset subtraction part

Claims (11)

2次元状に配列された複数の画素を有する撮像素子で得られた画像データを入力画像とし、
前記画像データに含まれる前記撮像素子における有効画素の画素出力のうち被写体像の平坦部の画素出力を選択する画素選択部と、
前記画素選択部により選択された画素出力を基に第1の1次元データを算出する第1の算出部と、
前記第1の算出部により算出された前記第1の1次元データから、行毎にランダムなオフセットノイズの成分を抽出して第2の1次元データを算出する第2の算出部と、
前記第2の算出部により算出された前記第2の1次元データを、前記入力画像から行毎に減算する減算部とを有することを特徴とする画像処理装置。
Image data obtained by an image sensor having a plurality of pixels arranged two-dimensionally is used as an input image,
A pixel selection unit that selects a pixel output of a flat portion of a subject image among pixel outputs of effective pixels in the image sensor included in the image data;
A first calculation unit that calculates first one-dimensional data based on a pixel output selected by the pixel selection unit;
A second calculation unit that extracts random offset noise components for each row from the first one-dimensional data calculated by the first calculation unit to calculate second one-dimensional data;
An image processing apparatus comprising: a subtraction unit that subtracts the second one-dimensional data calculated by the second calculation unit for each row from the input image.
前記画素選択部は、前記入力画像の行毎の画素出力の最頻値を基に第1の閾値及び第2の閾値を算出し、前記第1の閾値と前記第2の閾値との範囲内の画素出力を示す画素を前記被写体像の平坦部として選択することを特徴とする請求項1記載の画像処理装置。   The pixel selection unit calculates a first threshold value and a second threshold value based on a mode value of a pixel output for each row of the input image, and is within a range between the first threshold value and the second threshold value. The image processing apparatus according to claim 1, wherein a pixel indicating the pixel output is selected as a flat portion of the subject image. 前記画素選択部は、前記入力画像の行毎の画素出力の最頻値にローパスフィルタ処理を施し、前記ローパスフィルタ処理されたデータから前記第1の閾値及び前記第2の閾値を算出することを特徴とする請求項2記載の画像処理装置。   The pixel selection unit performs low pass filter processing on the mode value of pixel output for each row of the input image, and calculates the first threshold value and the second threshold value from the low pass filter processed data. The image processing apparatus according to claim 2, wherein: 前記第1の算出部は、前記画素選択部により選択された画素出力を基に行毎に画素出力の平均値を算出し、行毎に算出した平均値を前記第1の1次元データとすることを特徴とする請求項1〜3の何れか1項に記載の画像処理装置。   The first calculation unit calculates an average value of pixel outputs for each row based on the pixel output selected by the pixel selection unit, and uses the average value calculated for each row as the first one-dimensional data. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus. 前記第2の算出部は、前記第1の算出部により算出された前記第1の1次元データに対して低周波成分を抑制するフィルタ処理を施し、前記第2の1次元データを算出することを特徴とする請求項1〜4の何れか1項に記載の画像処理装置。   The second calculation unit performs a filtering process for suppressing low frequency components on the first one-dimensional data calculated by the first calculation unit, and calculates the second one-dimensional data. The image processing apparatus according to claim 1, wherein: 前記第2の算出部は、
前記第1の算出部により算出された前記第1の1次元データを複数の周波数帯域のデータに変換する周波数変換部と、
前記周波数変換部により得られた複数の周波数帯域のデータから特定の周波数帯域成分を抽出する帯域抽出部と、
前記帯域抽出部により抽出された周波数帯域のデータから被写体のエッジ情報を取り除く被写体エッジ除去部と、
前記被写体エッジ除去部からの出力を逆変換し、前記第2の1次元データを算出する逆変換部とを有することを特徴とする請求項1〜5の何れか1項に記載の画像処理装置。
The second calculation unit includes:
A frequency converter that converts the first one-dimensional data calculated by the first calculator into data of a plurality of frequency bands;
A band extractor for extracting specific frequency band components from data of a plurality of frequency bands obtained by the frequency converter;
A subject edge removing unit that removes subject edge information from the frequency band data extracted by the band extracting unit;
The image processing apparatus according to claim 1, further comprising: an inverse conversion unit that performs inverse conversion on an output from the subject edge removal unit and calculates the second one-dimensional data. .
前記減算部は、前記第2の1次元データの各数値に対して1.0以下のゲインを乗じた後、前記入力画像から行毎に減算することを特徴とする請求項1〜6の何れか1項に記載の画像処理装置。   7. The subtraction unit according to claim 1, wherein the subtraction unit multiplies each numerical value of the second one-dimensional data by a gain of 1.0 or less and then subtracts the input image for each row. The image processing apparatus according to claim 1. 前記減算部は、前記第2の1次元データに乗ずるゲインを、前記画素選択部で前記被写体像の平坦部として選択された画素数を基に決定することを特徴とする請求項7記載の画像処理装置。   8. The image according to claim 7, wherein the subtraction unit determines a gain to be multiplied by the second one-dimensional data based on the number of pixels selected as the flat portion of the subject image by the pixel selection unit. Processing equipment. 前記画像データに含まれる遮光画素の画素出力を基に、前記有効画素の画素出力から行毎にランダムなオフセットノイズを補正した第1の横縞補正画像を得る補正部と、
前記画像データの撮影時の撮影感度を基に、前記第1の横縞補正画像を前記画素選択部に出力するか否かを判定する判定部とを有することを特徴とする請求項1〜8の何れか1項に記載の画像処理装置。
Based on the pixel output of the light-shielded pixel included in the image data, a correction unit that obtains a first horizontal stripe correction image in which random offset noise is corrected for each row from the pixel output of the effective pixel;
The determination unit according to claim 1, further comprising: a determination unit configured to determine whether to output the first horizontal stripe correction image to the pixel selection unit based on a photographing sensitivity at the time of photographing the image data. The image processing apparatus according to any one of the above.
2次元状に配列された複数の画素を有する撮像素子で得られた画像データを入力画像とし、
前記画像データに含まれる前記撮像素子における有効画素の画素出力のうち被写体像の平坦部の画素出力を選択する画素選択工程と、
前記画素選択工程で選択された画素出力を基に第1の1次元データを算出する第1の算出工程と、
算出された前記第1の1次元データから、行毎にランダムなオフセットノイズの成分を抽出して第2の1次元データを算出する第2の算出工程と、
算出された前記第2の1次元データを、前記入力画像から行毎に減算する減算工程とを有することを特徴とする画像処理方法。
Image data obtained by an image sensor having a plurality of pixels arranged two-dimensionally is used as an input image,
A pixel selection step of selecting a pixel output of a flat portion of a subject image among pixel outputs of effective pixels in the image sensor included in the image data;
A first calculation step of calculating first one-dimensional data based on the pixel output selected in the pixel selection step;
A second calculation step of calculating a second one-dimensional data by extracting a random offset noise component for each row from the calculated first one-dimensional data;
And a subtracting step of subtracting the calculated second one-dimensional data for each row from the input image.
2次元状に配列された複数の画素を有する撮像素子で得られた画像データを入力画像とし、
前記画像データに含まれる前記撮像素子における有効画素の画素出力のうち被写体像の平坦部の画素出力を選択する画素選択ステップと、
前記画素選択ステップで選択された画素出力を基に第1の1次元データを算出する第1の算出ステップと、
算出された前記第1の1次元データから、行毎にランダムなオフセットノイズの成分を抽出して第2の1次元データを算出する第2の算出ステップと、
算出された前記第2の1次元データを、前記入力画像から行毎に減算する減算ステップとをコンピュータに実行させるためのプログラム。
Image data obtained by an image sensor having a plurality of pixels arranged two-dimensionally is used as an input image,
A pixel selection step of selecting a pixel output of a flat portion of the subject image among pixel outputs of effective pixels in the image sensor included in the image data;
A first calculation step of calculating first one-dimensional data based on the pixel output selected in the pixel selection step;
A second calculation step of calculating a second one-dimensional data by extracting a random offset noise component for each row from the calculated first one-dimensional data;
A program for causing a computer to execute a subtraction step of subtracting the calculated second one-dimensional data from the input image for each row.
JP2014050422A 2014-03-13 2014-03-13 Image processing apparatus and image processing method Pending JP2015177244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014050422A JP2015177244A (en) 2014-03-13 2014-03-13 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014050422A JP2015177244A (en) 2014-03-13 2014-03-13 Image processing apparatus and image processing method

Publications (1)

Publication Number Publication Date
JP2015177244A true JP2015177244A (en) 2015-10-05

Family

ID=54256054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014050422A Pending JP2015177244A (en) 2014-03-13 2014-03-13 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP2015177244A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017216629A (en) * 2016-06-01 2017-12-07 キヤノン株式会社 Encoding device, imaging apparatus, encoding method, and program
WO2018087806A1 (en) * 2016-11-08 2018-05-17 日本電気株式会社 Image processing method, image processing apparatus and image processing program
WO2018211985A1 (en) * 2017-05-17 2018-11-22 ソニーセミコンダクタソリューションズ株式会社 Imaging element, method for controlling imaging element, imaging device, and electronic apparatus
JP2020182057A (en) * 2019-04-24 2020-11-05 キヤノン株式会社 Imaging device, imaging method, computer program, and storage medium
WO2022254845A1 (en) * 2021-06-01 2022-12-08 ソニーセミコンダクタソリューションズ株式会社 Signal processing method, signal processing device, and imaging apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017216629A (en) * 2016-06-01 2017-12-07 キヤノン株式会社 Encoding device, imaging apparatus, encoding method, and program
WO2018087806A1 (en) * 2016-11-08 2018-05-17 日本電気株式会社 Image processing method, image processing apparatus and image processing program
JPWO2018087806A1 (en) * 2016-11-08 2019-09-26 日本電気株式会社 Image processing method, image processing apparatus, and image processing program
US10964002B2 (en) 2016-11-08 2021-03-30 Nec Corporation Image processing method, image processing apparatus and image processing program
WO2018211985A1 (en) * 2017-05-17 2018-11-22 ソニーセミコンダクタソリューションズ株式会社 Imaging element, method for controlling imaging element, imaging device, and electronic apparatus
JP2020182057A (en) * 2019-04-24 2020-11-05 キヤノン株式会社 Imaging device, imaging method, computer program, and storage medium
WO2022254845A1 (en) * 2021-06-01 2022-12-08 ソニーセミコンダクタソリューションズ株式会社 Signal processing method, signal processing device, and imaging apparatus

Similar Documents

Publication Publication Date Title
RU2415473C1 (en) Image processing apparatus, image recording apparatus and image processing method
US8537239B2 (en) Image processing method, image processing apparatus and image processing program
TWI507999B (en) Method and camera for providing an estimation of a mean signal to noise ratio value for an image
JP2015177244A (en) Image processing apparatus and image processing method
JP2011041089A5 (en)
WO2007091369A1 (en) Fixed-pattern noise eliminating device, solid-state image pickup device, electronic apparatus, and fixed-pattern noise eliminating program
JP2016009043A (en) Image sensor, arithmetic method, and electronic device
CN109636731B (en) Image smear elimination method, electronic device and storage medium
JP2015023511A (en) Imaging apparatus, image processing method and image processing program
US20120189225A1 (en) Systems and methods for calculating image sharpness measurements
JP2012235443A (en) Technique for reducing noise for machine vision system
US10217193B2 (en) Image processing apparatus, image capturing apparatus, and storage medium that stores image processing program
JP2009021756A (en) Noise rejection circuit, noise rejection method, imaging apparatus, and program
JP6362070B2 (en) Image processing apparatus, imaging apparatus, image processing method, program, and storage medium
JP5950679B2 (en) FOCUS DETECTION DEVICE, IMAGING DEVICE, AND FOCUS DETECTION METHOD
JP6099973B2 (en) Subject area tracking device, control method thereof, and program
JP5115297B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP5632703B2 (en) Image processing apparatus, control method, and program
JP5955466B2 (en) Imaging device
JP6705054B2 (en) Imaging device
JP2017130167A (en) Image processing device, imaging device, and image processing program
JP4322258B2 (en) Noise processing apparatus and imaging apparatus
JP5761979B2 (en) Noise removal system and imaging apparatus
JP5631153B2 (en) Image processing apparatus, control method, and program
WO2016051911A1 (en) Image processing device, imaging device, image processing method, and program