JP6229363B2 - Imaging apparatus, processing unit, and program - Google Patents

Imaging apparatus, processing unit, and program Download PDF

Info

Publication number
JP6229363B2
JP6229363B2 JP2013163034A JP2013163034A JP6229363B2 JP 6229363 B2 JP6229363 B2 JP 6229363B2 JP 2013163034 A JP2013163034 A JP 2013163034A JP 2013163034 A JP2013163034 A JP 2013163034A JP 6229363 B2 JP6229363 B2 JP 6229363B2
Authority
JP
Japan
Prior art keywords
line
row
correction value
pixel
read
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.)
Active
Application number
JP2013163034A
Other languages
Japanese (ja)
Other versions
JP2015033067A (en
Inventor
慎矢 藤原
慎矢 藤原
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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2013163034A priority Critical patent/JP6229363B2/en
Publication of JP2015033067A publication Critical patent/JP2015033067A/en
Application granted granted Critical
Publication of JP6229363B2 publication Critical patent/JP6229363B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)

Description

本発明は、撮像装置、処理ユニットおよびプログラムに関する。   The present invention relates to an imaging device, a processing unit, and a program.

撮像素子に含まれる画素の画素値を順次読み出すローリング読み出し方式においては、グローバルリセットされて画素値が読み出されるまでの時間が画素毎に変動するので、発生する暗電流量が画素毎に変動することが知られている(例えば、特許文献1参照)。また、画素自体の特性のばらつきによっても暗電流量は画素毎に変動する。
[先行技術文献]
[特許文献]
[特許文献1]特開2012−120076号公報
In the rolling readout method that sequentially reads the pixel values of the pixels included in the image sensor, the time from the global reset until the pixel values are read varies from pixel to pixel, so that the amount of generated dark current varies from pixel to pixel. Is known (see, for example, Patent Document 1). Also, the dark current amount varies from pixel to pixel due to variations in the characteristics of the pixels themselves.
[Prior art documents]
[Patent Literature]
[Patent Document 1] JP 2012-120076 A

このため、画素値の読出タイミングの差により生じる暗電流の変動、および、画素自体のばらつきによる暗電流の変動の両方を考慮した補正値を生成することが好ましい。また、撮像素子を遮光して補正用画像を取得する場合、補正用画像の画素値を読み出している間は本画像を取得することができないので、補正用画像の画素値の読み出しを短期間で行うことが好ましい。   For this reason, it is preferable to generate a correction value that takes into account both fluctuations in dark current caused by differences in readout timing of pixel values and fluctuations in dark current due to variations in the pixels themselves. In addition, when acquiring a correction image while shielding the image sensor, the main image cannot be acquired while the pixel value of the correction image is being read. Preferably it is done.

本発明の第1の態様においては、撮像装置は、複数の行ラインに配列された画素を有する撮像素子と、画素の画素値に対する補正値を算出する場合に、複数の行ラインを間引いた一部の行ラインの画素値を行ライン毎に順次読み出す読出制御部と、一部の行ラインに含まれる各行ラインの読出タイミングと各行ラインの画素値との関係を近似した第1近似直線と、一部の行ラインよりも多い行を読み出した場合の各行ラインの読出タイミングと各行ラインの画素値との関係を近似した、第1近似直線と異なる第2近似直線と、に基づいて複数の行ラインの各行ラインに対する補正値を算出する補正値算出部とを備える。
In the first aspect of the present invention, an imaging device includes an imaging device having pixels arranged in a plurality of row lines and a thinned-out plurality of row lines when calculating correction values for the pixel values of the pixels. A read controller that sequentially reads out the pixel values of the row lines for each row line, a first approximate line that approximates the relationship between the readout timing of each row line included in some row lines and the pixel value of each row line; A plurality of rows based on a second approximate line different from the first approximate line, which approximates the relationship between the readout timing of each row line and the pixel value of each row line when more rows than some of the row lines are read. A correction value calculation unit that calculates a correction value for each line of the line.

本発明の第2の態様においては、処理ユニットは、第1の態様における補正値算出部を備える。本発明の第3の態様においては、プログラムは、コンピュータを、第1の態様における補正値算出部として機能させる。   In the second aspect of the present invention, the processing unit includes the correction value calculation unit in the first aspect. In the third aspect of the present invention, the program causes the computer to function as the correction value calculation unit in the first aspect.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   It should be noted that the above summary of the invention does not enumerate all the necessary features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

撮像装置の要部の模式断面を示す。The schematic cross section of the principal part of an imaging device is shown. 撮像装置のシステム構成を概略的に示すブロック図である。1 is a block diagram schematically illustrating a system configuration of an imaging apparatus. 補正用画像を取得する場合に画素値が読み出される行ラインの配列の一例を示す。An example of an array of row lines from which pixel values are read out when acquiring a correction image is shown. 読出タイミングの差により生じる暗電流の変動を算出する処理例を示す。An example of processing for calculating a change in dark current caused by a difference in readout timing will be described. 画素のばらつきにより生じる暗電流の変動を算出する処理例を示す。An example of processing for calculating a change in dark current caused by pixel variation will be described. 各行ラインに対する補正値を算出する処理例を示す。The process example which calculates the correction value with respect to each row line is shown. 画像処理部の動作例を示すフローチャートである。It is a flowchart which shows the operation example of an image process part. 複数の画素を列ライン単位で複数の領域に分割した分割領域の例を示す。An example of a divided region obtained by dividing a plurality of pixels into a plurality of regions in units of column lines is shown. 補正用画像を取得する場合に画素値が読み出される行ラインの配列の他の例を示す。Another example of an array of row lines from which pixel values are read out when acquiring a correction image is shown. カメラメモリに記録された画素値データの一例を示す。An example of pixel value data recorded in camera memory is shown.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the invention according to the claims. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

図1は、撮像装置10の要部の模式断面を示す。まず、撮像装置10の構成の概要について説明する。なお、本例では撮像装置10として一眼レフカメラを示すが、撮像装置10は一眼レフカメラに限定されない。撮像装置10は、撮像素子36の各画素の電荷を一斉にリセットして、画素値を順次読み出すグローバルリセットローリング読み出し方式のカメラであればよい。   FIG. 1 shows a schematic cross section of the main part of the imaging apparatus 10. First, an outline of the configuration of the imaging device 10 will be described. In this example, a single-lens reflex camera is shown as the imaging device 10, but the imaging device 10 is not limited to a single-lens reflex camera. The imaging apparatus 10 may be a global reset rolling readout type camera that resets the charges of the pixels of the imaging element 36 all at once and sequentially reads out the pixel values.

本例の撮像装置10は、レンズユニット20がカメラユニット30に装着されて、カメラとして機能する。レンズユニット20は、光軸11に沿って配列され鏡筒26に支持されたレンズ系21を備える。撮像レンズの一例としてのレンズ系21は、入射される被写体光束をカメラユニット30へ導く。レンズ系21は、前玉22およびレンズ群23と、絞り28とを含む。レンズ群23は、フォーカスおよびズームを担う。   In the imaging apparatus 10 of this example, the lens unit 20 is attached to the camera unit 30 and functions as a camera. The lens unit 20 includes a lens system 21 arranged along the optical axis 11 and supported by the lens barrel 26. The lens system 21 as an example of the imaging lens guides the incident subject light flux to the camera unit 30. The lens system 21 includes a front lens 22, a lens group 23, and a diaphragm 28. The lens group 23 is responsible for focus and zoom.

鏡筒26は、レンズ回路基板27を支持する。レンズ回路基板27は、レンズユニット20を制御する各種回路、電子素子等を搭載している。レンズユニット20は、カメラユニット30との接続部にレンズマウント29を備え、カメラユニット30が備えるカメラマウント31と係合して、カメラユニット30と一体化する。レンズマウント29とカメラマウント31とはそれぞれ通信端子を備えており、マウント同士が係合したときに互いの通信端子が接続される。これにより、レンズ回路基板27に搭載された各種回路、電子素子等は、カメラユニット30側と電気的に接続される。   The lens barrel 26 supports the lens circuit board 27. The lens circuit board 27 is mounted with various circuits, electronic elements and the like for controlling the lens unit 20. The lens unit 20 includes a lens mount 29 at a connection portion with the camera unit 30, and engages with a camera mount 31 included in the camera unit 30 to be integrated with the camera unit 30. The lens mount 29 and the camera mount 31 are each provided with a communication terminal, and the communication terminals are connected to each other when the mounts are engaged with each other. Thereby, various circuits, electronic elements, and the like mounted on the lens circuit board 27 are electrically connected to the camera unit 30 side.

カメラユニット30は、レンズユニット20から入射される被写体光束を反射するメインミラー32と、メインミラー32で反射された被写体光束が結像するピント板33を備える。メインミラー32は、ミラーボックス内で、ミラーボックスの側壁に支持されたメインミラー回転軸40周りに揺動する。メインミラー32は、光軸11を中心とする被写体光束中に斜設される斜設状態と、被写体光束から退避した退避状態とを取り得る。サブミラー34は、メインミラー32が被写体光束から退避する場合に、メインミラー32に連動して被写体光束から退避する。   The camera unit 30 includes a main mirror 32 that reflects the subject light beam incident from the lens unit 20 and a focus plate 33 on which the subject light beam reflected by the main mirror 32 forms an image. The main mirror 32 swings around the main mirror rotation axis 40 supported on the side wall of the mirror box within the mirror box. The main mirror 32 can take an oblique state where the main mirror 32 is obliquely provided in the subject light flux centered on the optical axis 11 and a retracted state where the main mirror 32 is retracted from the subject light flux. The sub mirror 34 retracts from the subject light beam in conjunction with the main mirror 32 when the main mirror 32 retracts from the subject light beam.

メインミラー32は、ライブビュースイッチが押し下げられた場合、または、レリーズボタンが最下部まで押し下げられた場合、破線で示した退避状態を取る。例えば、メインミラー32が被写体光束中に斜設された状態で、ライブビュースイッチが押し下げられた場合またはレリーズボタンが最下部まで押し下げられた場合、メインミラー32は破線で示した退避位置に移動する。   The main mirror 32 takes a retracted state indicated by a broken line when the live view switch is pushed down or when the release button is pushed down to the lowest position. For example, when the live view switch is pushed down or the release button is pushed down to the lowest position while the main mirror 32 is inclined in the subject luminous flux, the main mirror 32 moves to the retracted position indicated by the broken line. .

ライブビュースイッチが押し下げられた場合、メインミラー32は再度ライブビューボタンが押し下げられるまで退避位置に留まる。一方、レリーズボタンが押し下げられた場合は、所定の撮像動作を終えると、メインミラー32はダウンされ元の斜設状態の位置に戻される。   When the live view switch is depressed, the main mirror 32 remains in the retracted position until the live view button is depressed again. On the other hand, when the release button is pressed down, the main mirror 32 is lowered and returned to the original oblique position when the predetermined imaging operation is finished.

フォーカルプレーンシャッタ41および撮像素子36は、光軸11に沿って配列されている。撮像素子36は、撮像素子基板42に形成される。メインミラー32およびサブミラー34が退避状態である場合に、被写体光束は、レンズ系21を透過してカメラユニット30へ入射し、ミラーボックス内部と開放状態のフォーカルプレーンシャッタ41を通過して、撮像素子36の受光面で結像する。   The focal plane shutter 41 and the image sensor 36 are arranged along the optical axis 11. The image sensor 36 is formed on the image sensor substrate 42. When the main mirror 32 and the sub mirror 34 are in the retracted state, the subject light flux passes through the lens system 21 and enters the camera unit 30, passes through the inside of the mirror box and the open focal plane shutter 41, and then the image sensor. An image is formed on 36 light receiving surfaces.

撮像素子36は、受光面で結像した被写体像を電気信号として出力する複数の画素を有する。撮像素子36は、複数の行ラインおよび列ラインを有しており、各ラインには複数の画素が配列される。各画素は、光電変換素子を含む。撮像素子36としては、CMOSセンサ、CCDセンサ等を例示することができる。メイン基板43には、撮像素子36で光電変換された電気信号を処理する画像処理部55、カメラユニット30の全体を制御するカメラシステム制御部50等を実装する電気素子が搭載されている。   The image sensor 36 has a plurality of pixels that output the subject image formed on the light receiving surface as an electrical signal. The image sensor 36 has a plurality of row lines and column lines, and a plurality of pixels are arranged in each line. Each pixel includes a photoelectric conversion element. Examples of the image sensor 36 include a CMOS sensor and a CCD sensor. On the main board 43, an electric element for mounting an image processing unit 55 for processing an electric signal photoelectrically converted by the image pickup device 36, a camera system control unit 50 for controlling the entire camera unit 30, and the like are mounted.

遮光部の一例としてのフォーカルプレーンシャッタ41は、撮像素子36への入射光を遮光するか否かを切り替える。本例における撮像装置10は、被写体の本画像を取得する直前に、暗電流を補正するための補正用画像を取得する。補正用画像を取得する場合、フォーカルプレーンシャッタ41は閉状態に制御され、撮像素子36への光束を遮光する。撮像素子36は、フォーカルプレーンシャッタ41が閉状態に制御された状態で生じた電荷を蓄積する。画像処理部55は、撮像素子36の各画素が蓄積した電荷に応じた電気信号を画素値として読み出して、暗電流を補正する補正値を生成する。   A focal plane shutter 41 as an example of a light blocking unit switches whether to block incident light on the image sensor 36. The imaging device 10 in this example acquires a correction image for correcting dark current immediately before acquiring a main image of a subject. When acquiring a correction image, the focal plane shutter 41 is controlled to be in a closed state and shields the light flux to the image sensor 36. The image sensor 36 accumulates charges generated in a state where the focal plane shutter 41 is controlled to be closed. The image processing unit 55 reads out an electrical signal corresponding to the charge accumulated in each pixel of the image sensor 36 as a pixel value, and generates a correction value for correcting the dark current.

カメラユニット30の背面には液晶モニタ等による表示ユニット53が配設されている。表示ユニット53は、被写体を撮像した撮像素子36の各画素が出力した画素値から生成された画像を表示する。表示ユニット53は、撮像した画像に限らず、各種メニュー情報、撮像情報、告知情報等を表示する。ライブビュー時には、被写体に対して焦点調節をしながら、撮像素子36の受光面に結像した被写体像の画素値から画像処理部55によって表示用画像データが生成され、生成された表示用画像データを用いて表示ユニット53が被写体像を表示する。   A display unit 53 such as a liquid crystal monitor is disposed on the back of the camera unit 30. The display unit 53 displays an image generated from the pixel value output by each pixel of the image sensor 36 that images the subject. The display unit 53 displays not only captured images but also various menu information, imaging information, notification information, and the like. During live view, display image data is generated by the image processing unit 55 from the pixel value of the subject image formed on the light receiving surface of the image sensor 36 while adjusting the focus on the subject, and the generated display image data is generated. Using this, the display unit 53 displays the subject image.

ピント板33は、撮像素子36の受光面と共役の位置に配置されている。メインミラー32が斜設状態にある場合、ピント板33で結像した被写体像は、ペンタプリズム37で正立像に変換され、接眼光学系38を介してユーザに観察される。ペンタプリズム37の射出面上方には、測光素子39が配置される。測光素子39は、測光光学系35を介して、被写体を撮像する光電変換素子である。また、測光素子39が備える光電変換素子により検出された被写体像の輝度分布は、シャッタスピード、絞り値等を決定するためにカメラシステム制御部50において使用される。   The focus plate 33 is disposed at a position conjugate with the light receiving surface of the image sensor 36. When the main mirror 32 is in an oblique state, the subject image formed by the focusing plate 33 is converted to an erect image by the pentaprism 37 and is observed by the user via the eyepiece optical system 38. A photometric element 39 is disposed above the exit surface of the pentaprism 37. The photometric element 39 is a photoelectric conversion element that images the subject via the photometric optical system 35. The luminance distribution of the subject image detected by the photoelectric conversion element provided in the photometric element 39 is used in the camera system control unit 50 to determine the shutter speed, the aperture value, and the like.

斜設状態におけるメインミラー32の光軸11の近傍領域は、ハーフミラーとして形成されており、入射される被写体光束の一部が透過する。透過した被写体光束は、メインミラー32と連動して揺動するサブミラー34で反射されて、合焦ユニット52へ導かれる。合焦ユニット52に導かれた被写体光束は、合焦ユニット52内の合焦光学系を通じて合焦センサへ入射される。   A region near the optical axis 11 of the main mirror 32 in the oblique state is formed as a half mirror, and a part of the incident subject light flux is transmitted therethrough. The transmitted subject luminous flux is reflected by the sub mirror 34 that swings in conjunction with the main mirror 32, and is guided to the focusing unit 52. The subject light flux guided to the focusing unit 52 is incident on the focusing sensor through the focusing optical system in the focusing unit 52.

合焦センサは、複数の焦点調整領域のそれぞれにおいて合焦状態、前ピン状態、後ピン状態を示す位相差検出信号を出力する。前ピン状態、後ピン状態の場合には、位相差検出信号は合焦状態からのずれ量も示す。カメラシステム制御部50は、位相差検出方式による位相差AF(オートフォーカス)によって、レンズユニット20の焦点調節を行う。   The focus sensor outputs a phase difference detection signal indicating the focus state, the front pin state, and the rear pin state in each of the plurality of focus adjustment regions. In the case of the front pin state and the rear pin state, the phase difference detection signal also indicates the amount of deviation from the focused state. The camera system control unit 50 adjusts the focus of the lens unit 20 by phase difference AF (autofocus) using a phase difference detection method.

カメラユニット30には着脱可能な二次電池48が収容される。二次電池48は、カメラユニット30に限らず、レンズユニット20にも電力を供給する。電源がONされた場合に、二次電池48から撮像装置10の各部に電力が供給される。閃光部60は、被写体を照明する照明光としての閃光を発光する。閃光部60は、二次電池48からの電力を受けてキセノンランプ等から閃光を発光させる。   The camera unit 30 houses a detachable secondary battery 48. The secondary battery 48 supplies power not only to the camera unit 30 but also to the lens unit 20. When the power is turned on, power is supplied from the secondary battery 48 to each unit of the imaging device 10. The flash unit 60 emits flash as illumination light for illuminating the subject. The flash unit 60 receives power from the secondary battery 48 and emits flash light from a xenon lamp or the like.

図2は、撮像装置10のシステム構成を概略的に示すブロック図である。撮像装置10のシステムは、レンズユニット20とカメラユニット30のそれぞれに対応して、レンズシステム制御部25を中心とするレンズ制御系と、カメラシステム制御部50を中心とするカメラ制御系により構成される。そして、レンズ制御系とカメラ制御系は、レンズマウント29とカメラマウント31とによって接続される通信端子を介して、相互に各種データ、制御信号の授受を行う。   FIG. 2 is a block diagram schematically showing the system configuration of the imaging apparatus 10. The system of the imaging apparatus 10 includes a lens control system centered on the lens system control unit 25 and a camera control system centered on the camera system control unit 50 corresponding to each of the lens unit 20 and the camera unit 30. The The lens control system and the camera control system exchange various data and control signals with each other via a communication terminal connected by the lens mount 29 and the camera mount 31.

読出制御部の一例としてのカメラシステム制御部50は、撮像素子36の画素の画素値を、行ライン毎に順次読み出す。カメラ制御系に含まれる画像処理部55は、カメラシステム制御部50からの指示に従って、読み出された本画像の画素値を処理して画像データを生成する。生成された画像データは、表示制御部59へ送られて、例えば撮影後の一定時間の間、表示ユニット53に表示される。これに並行して、本画像の画像データは、予め定められた画像フォーマットに加工され、外部接続IF56を介して外部メモリに記録される。   A camera system control unit 50 as an example of a reading control unit sequentially reads out pixel values of pixels of the image sensor 36 for each row line. The image processing unit 55 included in the camera control system processes the pixel values of the read main image according to an instruction from the camera system control unit 50 to generate image data. The generated image data is sent to the display control unit 59 and displayed on the display unit 53 for a certain time after shooting, for example. In parallel with this, the image data of the main image is processed into a predetermined image format and recorded in the external memory via the external connection IF 56.

また、画像処理部55は、測光素子39の出力を受けて被写体環境の明るさを算出する。算出された明るさ情報は、カメラシステム制御部50において適正露出の演算に用いられる。自動露出(AE)で制御される場合、カメラシステム制御部50は適正露出に従って露光時間、絞り28等を制御して、撮像素子36で露出する。   In addition, the image processing unit 55 receives the output of the photometric element 39 and calculates the brightness of the subject environment. The calculated brightness information is used by the camera system control unit 50 for calculating proper exposure. When controlled by automatic exposure (AE), the camera system control unit 50 controls the exposure time, the aperture 28 and the like according to the appropriate exposure, and exposes the image sensor 36.

また、カメラシステム制御部50は、被写体の本画像を取得する直前に、暗電流を補正するための補正用画像を取得して、画像処理部55に伝送する。カメラシステム制御部50は、補正用画像を取得する場合に、撮像素子36に含まれる複数の行ラインを間引いた一部の行ラインの画素値を行ライン毎に順次読み出す。   Further, the camera system control unit 50 acquires a correction image for correcting the dark current immediately before acquiring the main image of the subject, and transmits it to the image processing unit 55. When acquiring a correction image, the camera system control unit 50 sequentially reads out pixel values of some row lines obtained by thinning a plurality of row lines included in the image sensor 36 for each row line.

処理ユニットの一例としての画像処理部55は、当該一部の行ラインの画素値から暗電流を補正する補正値を算出する補正値算出部67と、当該補正値に基づいて本画像の画像データを補正する補正部68とを有する。本例の補正値算出部67は、行ライン毎に平均した画素値に応じた値を、各行ラインの補正値とする。本例の補正部68は、本画像の各画素値から、対応する補正値を減算する。   The image processing unit 55 as an example of a processing unit includes a correction value calculation unit 67 that calculates a correction value for correcting dark current from the pixel values of the partial row lines, and image data of the main image based on the correction value. And a correction unit 68 for correcting. The correction value calculation unit 67 of this example sets a value corresponding to the pixel value averaged for each row line as a correction value for each row line. The correction unit 68 of this example subtracts the corresponding correction value from each pixel value of the main image.

カメラメモリ57は、例えばフラッシュメモリ等の不揮発性メモリであり、撮像装置10を制御するプログラム、各種変数、パラメータ等を記憶する役割を担う。ワークメモリ58は、例えばRAM等の高速アクセスできるメモリであり、処理中の画像データを一時的に保管する役割などを担う。   The camera memory 57 is a non-volatile memory such as a flash memory, for example, and plays a role of storing a program for controlling the imaging apparatus 10, various variables, parameters, and the like. The work memory 58 is a memory that can be accessed at high speed, such as a RAM, and has a role of temporarily storing image data being processed.

駆動部51は、カメラシステム制御部50からの指令に従ってメインミラー32およびサブミラー34、フォーカルプレーンシャッタ41、閃光部60等を駆動する。操作入力部54は、レリーズボタン、撮像モードダイヤル等の操作部材がユーザに操作されたことを検出して、カメラシステム制御部50へ出力する。   The drive unit 51 drives the main mirror 32 and the sub mirror 34, the focal plane shutter 41, the flash unit 60, and the like according to a command from the camera system control unit 50. The operation input unit 54 detects that an operation member such as a release button or an imaging mode dial has been operated by the user, and outputs it to the camera system control unit 50.

電源制御部49は、二次電池48と通信して残電力を検出する。また電源制御部49は、撮像装置10の各部への電力供給を制御する。電源制御部49は、二次電池48の他、家庭用AC電源等からの電力供給を制御してよい。   The power controller 49 communicates with the secondary battery 48 to detect remaining power. The power control unit 49 controls power supply to each unit of the imaging device 10. The power control unit 49 may control power supply from a home AC power supply or the like in addition to the secondary battery 48.

レンズシステム制御部25は、カメラシステム制御部50からの制御信号を受けて各種動作を制御する。レンズメモリ24は、レンズ固有の情報およびレンズシステム制御部25が実行するプログラム等を記憶している。レンズ固有の情報は、通信端子を介してカメラシステム制御部50に送信され、カメラユニット30において、カメラシステム制御部50および画像処理部55等で利用される。   The lens system control unit 25 receives various control signals from the camera system control unit 50 and controls various operations. The lens memory 24 stores lens-specific information, a program executed by the lens system control unit 25, and the like. Information unique to the lens is transmitted to the camera system control unit 50 via the communication terminal, and is used in the camera unit 30 by the camera system control unit 50, the image processing unit 55, and the like.

図3は、補正用画像を取得する場合に画素値が読み出される行ライン70の配列の一例を示す。上述したように、撮像素子36は、複数の行ライン70を有する。カメラシステム制御部50は、補正用画像を取得する場合に、撮像素子36に含まれる複数の行ライン70を間引いた一部の行ライン70の画素値を行ライン毎に順次読み出す。つまり、カメラシステム制御部50は、複数の行ライン70のうち、互いに離間する一部の行ライン70の画素値を読み出し、他の行ライン70の画素値を読み出さない。図3においては、画素値が読み出される行ライン70を斜線で示す。   FIG. 3 shows an example of an array of row lines 70 from which pixel values are read when a correction image is acquired. As described above, the image sensor 36 has a plurality of row lines 70. When acquiring the correction image, the camera system control unit 50 sequentially reads out the pixel values of some row lines 70 obtained by thinning out the plurality of row lines 70 included in the image sensor 36 for each row line. That is, the camera system control unit 50 reads pixel values of some row lines 70 that are separated from each other among the plurality of row lines 70, and does not read pixel values of other row lines 70. In FIG. 3, the row line 70 from which the pixel value is read is indicated by hatching.

また、カメラシステム制御部50は、1/nに間引いた行ライン70の画素値を連続して読み出す。これにより、行ラインの数を1/nに間引いた補正用画像の画素値を読み出す期間は、本画像の画素値を読み出す期間の1/nとなる。これにより、補正用画像の画素値を短期間に取得することができる。本例のカメラシステム制御部50は、複数の行ライン70を等間隔に間引いた一部の行ライン(70−1、70−(n+1)、70−(2n+1)、・・・、70−(kn+1))の画素値を読み出す。補正値算出部67は、行ライン70毎に平均した画素値を算出する。なお、nは2以上の整数、kは1以上の整数である。図3の例では、n=3である。   Further, the camera system control unit 50 continuously reads out the pixel values of the row line 70 thinned to 1 / n. Thus, the period for reading out the pixel values of the correction image obtained by thinning the number of row lines to 1 / n is 1 / n of the period for reading out the pixel values of the main image. Thereby, the pixel value of the image for correction | amendment can be acquired in a short time. The camera system control unit 50 according to the present example includes some row lines (70-1, 70- (n + 1), 70- (2n + 1),..., 70- () obtained by thinning a plurality of row lines 70 at equal intervals. The pixel value of kn + 1)) is read out. The correction value calculation unit 67 calculates a pixel value averaged for each row line 70. Note that n is an integer of 2 or more, and k is an integer of 1 or more. In the example of FIG. 3, n = 3.

図4は、読出タイミングの差により生じる暗電流の変動を算出する処理例を示す。図4の横軸は各行ライン70の読出タイミングを示し、縦軸は各行ライン70の画素値を示す。図4においては、間引きされた各行ライン70−1〜70−(kn+1)の画素値をプロットしている。   FIG. 4 shows an example of processing for calculating fluctuations in dark current caused by differences in readout timing. The horizontal axis in FIG. 4 indicates the read timing of each row line 70, and the vertical axis indicates the pixel value of each row line 70. In FIG. 4, the pixel values of the thinned row lines 70-1 to 70- (kn + 1) are plotted.

補正値算出部67は、読出タイミングに対する画素値の変動を近似した第1近似直線80−1を算出する。本例の補正値算出部67は、最小二乗法等の方法で第1近似直線80−1を算出する。補正値算出部67は、複数の行ライン70を間引かずに読み出した場合の最終行ラインの読出タイミングまで第1近似直線80−1を外挿する。間引き率がnであり、間引かれた行ライン70の画素値の読み出しが終了するタイミングをTとすると、行ライン70を間引かずに読み出した場合の最終行ラインの読出タイミングはnTで表される。   The correction value calculation unit 67 calculates a first approximate line 80-1 that approximates the variation of the pixel value with respect to the readout timing. The correction value calculation unit 67 of this example calculates the first approximate line 80-1 by a method such as a least square method. The correction value calculation unit 67 extrapolates the first approximate line 80-1 until the read timing of the last row line when the plurality of row lines 70 are read without being thinned out. When the thinning rate is n and the timing at which reading of the pixel values of the thinned row line 70 is completed is T, the read timing of the last row line when the row line 70 is read without thinning is represented by nT. Is done.

各画素の暗電流量は、リセットタイミングから読出タイミングまでの期間に比例して増大する。このため、読出タイミング0〜Tまでの期間におけるデータから算出した第1近似直線80を、読出タイミングnTまでの期間で外挿することで、本画像を取得する場合における全ての行ライン70に対して、読出タイミングの差により生じる暗電流の変動を推測することができる。   The dark current amount of each pixel increases in proportion to the period from the reset timing to the read timing. Therefore, by extrapolating the first approximate line 80 calculated from the data in the period from the read timing 0 to T in the period up to the read timing nT, all the row lines 70 in the case of acquiring the main image are obtained. Thus, it is possible to estimate the fluctuation of the dark current caused by the difference in reading timing.

図5は、各行ライン70に含まれる画素のばらつきにより生じる暗電流の変動を算出する処理例を示す。補正値算出部67は、間引いて読み出された各行ライン70の読出タイミングを、間引かずに読み出された場合に当該行ライン70が読み出されるべき読出タイミングに変換する。本例では、行ライン70は間引き率nで等間隔に間引かれるので、間引いて読み出された各行ライン70の読出タイミングをn倍することで、間引かずに読み出された場合の読出タイミングに変換できる。   FIG. 5 shows an example of processing for calculating fluctuations in dark current caused by variations in pixels included in each row line 70. The correction value calculation unit 67 converts the read timing of each row line 70 read out by thinning out into the read timing at which the row line 70 should be read out when read out without thinning out. In this example, the row lines 70 are thinned out at equal intervals at a thinning rate n. Therefore, the readout timing of each row line 70 read out by thinning out is multiplied by n, so that reading is performed without being thinned out. Can be converted to timing.

補正値算出部67は、変換後の読出タイミングに対する画素値の変動を近似した第2近似直線80−2を算出する。このとき、画素値(図5の縦軸)の大きさは、読出タイミングの変換前後で変化しない。補正値算出部67は、第1近似直線80−1と同一の最小二乗法等の方法で第2近似直線80−2を算出する。なお、補正値算出部67は、第1近似直線80−1の傾きを1/n倍することで第2近似直線80−2を算出してもよい。補正値算出部67は、各画素値の第2近似直線80−2に対する差分D1、Dn+1、・・・、Dkn+1を算出する。当該差分が、画素のばらつきにより生じる暗電流の変動に対応する。 The correction value calculation unit 67 calculates a second approximate line 80-2 that approximates the variation of the pixel value with respect to the read timing after conversion. At this time, the size of the pixel value (vertical axis in FIG. 5) does not change before and after conversion of the readout timing. The correction value calculation unit 67 calculates the second approximate line 80-2 by a method such as the least square method that is the same as the first approximate line 80-1. The correction value calculation unit 67 may calculate the second approximate line 80-2 by multiplying the slope of the first approximate line 80-1 by 1 / n. The correction value calculation unit 67 calculates differences D1, D n + 1 ,..., D kn + 1 of the pixel values with respect to the second approximate line 80-2. This difference corresponds to a change in dark current caused by pixel variation.

また、補正値算出部67は、画素値が既知の行ライン70の間の行ライン70の画素値を、補間法により算出する。例えば補正値算出部67は、線形補間により各行ライン70の画素値を算出する。補正値算出部67は、補間された各行ライン70に対しても、差分Dを算出する。例えば、行ライン70−1と行ライン70−(n+1)との間にある行ライン70−2、・・・、70−nの画素値を、行ライン70−1の画素値および行ライン70−(n+1)の画素値を用いて線形補間することで算出する。   Further, the correction value calculation unit 67 calculates the pixel value of the row line 70 between the row lines 70 with known pixel values by an interpolation method. For example, the correction value calculation unit 67 calculates the pixel value of each row line 70 by linear interpolation. The correction value calculation unit 67 also calculates the difference D for each interpolated row line 70. For example, the pixel value of the row line 70-2,..., 70-n between the row line 70-1 and the row line 70- (n + 1) is changed to the pixel value of the row line 70-1 and the row line 70. Calculation is performed by linear interpolation using a pixel value of − (n + 1).

図6は、各行ライン70に対する補正値を算出する処理例を示す。なお図6において、白抜きの矩形で示されるプロットは、上述した線形補間により画素値を算出した行ライン70を示す。補正値算出部67は、第1近似直線80−1と、差分D1、D2、・・・、Dkn+1に基づいて、全ての行ライン70に対する補正値を算出する。具体的には、補正値算出部67は、第1近似直線80−1に、差分D1、D2、・・・、Dkn+1を重畳する。これにより、補正値算出部67は、間引きされた行ライン70の画素値の第2近似直線80−2に対する差分を、間引かずに読み出した場合の当該各行ライン70の読出タイミングにおける第1近似直線80−1に重畳することができる。 FIG. 6 shows an example of processing for calculating a correction value for each row line 70. In FIG. 6, a plot indicated by a white rectangle indicates a row line 70 in which a pixel value is calculated by the linear interpolation described above. The correction value calculation unit 67 calculates correction values for all the row lines 70 based on the first approximate straight line 80-1 and the differences D1, D2, ..., Dkn + 1 . Specifically, the correction value calculation unit 67 superimposes the differences D1, D2,..., Dkn + 1 on the first approximate straight line 80-1. Thereby, the correction value calculation unit 67 performs the first approximation at the reading timing of each row line 70 when the difference between the pixel values of the thinned row line 70 and the second approximate line 80-2 is read without being thinned. It can be superimposed on the straight line 80-1.

これにより、読出タイミングの差により生じる暗電流の変動と、画素のばらつきにより生じる暗電流の変動の両方を含んだ、各行ライン70の暗電流を算出することができる。補正値算出部67は、当該暗電流の値を補正値として用いる。なお、間引き読み出しされた行ライン70のうち、最終の行ライン70−(kn+1)以降に行ライン70−(kn+2)等が存在する場合、当該行ライン70に対応する差分としてDkn+1を用いてよい。 As a result, the dark current of each row line 70 can be calculated, including both dark current fluctuations caused by differences in readout timing and dark current fluctuations caused by pixel variations. The correction value calculation unit 67 uses the dark current value as a correction value. In addition, when row line 70- (kn + 2) etc. exists after the last row line 70- (kn + 1) among the row lines 70 read out by thinning, D kn + 1 is used as a difference corresponding to the row line 70. Good.

また、補正値算出部67は、第2近似直線80−1と画素値との差分を算出する処理に代えて、図4に示した読出タイミングを変換する前の各画素値と、第1近似直線80−1との差分D1、Dn+1、・・・、Dkn+1を算出してもよい。この場合、補正値算出部67は、当該差分D1、Dn+1、・・・、Dkn+1に対応する読出タイミングを、図5に示したようにn倍して変換する。補正値算出部67は、読出タイミングを変換した各差分D1、Dn+1、・・・、Dkn+1の間を補間して、差分D1、D2、・・・、Dkn+1を算出する。そして、補正値算出部67は、当該差分D1、D2、・・・、Dkn+1を、第1近似直線80−1に重畳する。この場合、補正値算出部67は、第2近似直線80−2を算出しなくともよい。 In addition, the correction value calculation unit 67 replaces the process of calculating the difference between the second approximate line 80-1 and the pixel value with each pixel value before the conversion of the readout timing shown in FIG. Differences D1, D n + 1 ,..., D kn + 1 from the straight line 80-1 may be calculated. In this case, the correction value calculation unit 67 converts the readout timing corresponding to the differences D1, D n + 1 ,..., D kn + 1 by multiplying by n as shown in FIG. The correction value calculation unit 67 interpolates between the differences D1, D n + 1 ,..., D kn + 1 obtained by converting the read timing, and calculates the differences D1, D2 ,. And the correction value calculation part 67 superimposes the said difference D1, D2, ..., Dkn + 1 on the 1st approximate straight line 80-1. In this case, the correction value calculation unit 67 does not have to calculate the second approximate straight line 80-2.

また、補正値算出部67は、画素値を線形補間して全ての行ライン70の画素値を算出する処理に代えて、差分Dを線形補間することで、全ての行ライン70に対応する差分Dを算出してもよい。このように、補正値算出部67は、第1近似直線80−1と、いずれかの近似直線80および画素値との差分とに基づいて、多様な方法で補正値を算出することができる。   In addition, the correction value calculation unit 67 performs linear interpolation on the difference D instead of the process of linearly interpolating the pixel value to calculate the pixel value of all the row lines 70, so that the difference corresponding to all the row lines 70 is obtained. D may be calculated. As described above, the correction value calculation unit 67 can calculate the correction value by various methods based on the first approximate line 80-1 and the difference between any one of the approximate lines 80 and the pixel value.

図7は、画像処理部55の動作例を示すフローチャートである。まず、画像処理部55には、図3に示したように補正用画像の画素値を間引き読み出ししたデータが入力される(S102)。補正用画像の撮像および画素値の取得は、本画像を取得するための準備を行っている間に実行することが好ましい。例えば、画像処理部55は、被写体を撮像するためにメインミラー32等の構造物を可動している間に、補正用画像の画素値を取得する。また、画像処理部55は、本画像のシャッタ秒時の長さに関わらず、補正用画像の画素値を取得してよい。   FIG. 7 is a flowchart illustrating an operation example of the image processing unit 55. First, data obtained by thinning out and reading out pixel values of the correction image as shown in FIG. 3 is input to the image processing unit 55 (S102). It is preferable that the correction image is captured and the pixel value is acquired while the preparation for acquiring the main image is being performed. For example, the image processing unit 55 acquires the pixel value of the correction image while moving a structure such as the main mirror 32 in order to image the subject. Further, the image processing unit 55 may acquire the pixel value of the correction image regardless of the length of the shutter time of the main image.

次に、画像処理部55は、読み出した画素値のうち、予め欠陥であることがわかっている画素の画素値を補正する(S104)。例えば、画像処理部55は、欠陥画素に隣接する画素の画素値を用いて補間することで、欠陥画素の画素値を算出する。画像処理部55には、いずれの画素が欠陥画素であるかを示すマップが予め記録される。   Next, the image processing unit 55 corrects pixel values of pixels that are known to be defective in advance among the read pixel values (S104). For example, the image processing unit 55 calculates the pixel value of the defective pixel by performing interpolation using the pixel value of the pixel adjacent to the defective pixel. In the image processing unit 55, a map indicating which pixel is a defective pixel is recorded in advance.

次に、補正値算出部67は、補正用画像の列ライン毎の平均画素値を算出する(S106)。補正値算出部67は、当該平均画素値を、列ラインの位置と対応付けてワークメモリ58に記録する。次に、補正値算出部67は、補正用画像の行ライン毎の平均画素値を算出する(S108)。補正値算出部67は、当該平均画素値を、読出タイミングを示す情報と対応付けてワークメモリ58に記録する。当該情報は、行ラインの位置情報であってよい。   Next, the correction value calculation unit 67 calculates an average pixel value for each column line of the correction image (S106). The correction value calculation unit 67 records the average pixel value in the work memory 58 in association with the position of the column line. Next, the correction value calculation unit 67 calculates an average pixel value for each row line of the correction image (S108). The correction value calculation unit 67 records the average pixel value in the work memory 58 in association with information indicating the read timing. The information may be row line position information.

次に、補正値算出部67は、図4に示した第1近似直線80−1を算出する(S110)。次に、補正値算出部67は、図5に示したように、各画素値に対応する読出タイミングの値をn倍して、間引き読み出しした行ライン70の画素値の横軸上の位置を、本画像において対応する行ライン70の位置に変換する(S112)。次に、補正値算出部67は、図5に示した第2近似直線80−2を算出する(S114)。次に、補正値算出部67は、画素値が未知の行ライン70について、補間法により画素値を算出する(S116)。そして、補正値算出部67は、図6に示すように、第2近似直線80−2と各画素値との差分を、第1近似直線80−1に重畳する(S118)。これにより、行ライン毎の補正値を算出することができる。補正値算出部67は、当該補正値を、ワークメモリ58に記録する。   Next, the correction value calculation unit 67 calculates the first approximate straight line 80-1 shown in FIG. 4 (S110). Next, as shown in FIG. 5, the correction value calculation unit 67 multiplies the readout timing value corresponding to each pixel value by n, and determines the position on the horizontal axis of the pixel value of the row line 70 that has been thinned and read out. Then, it is converted to the position of the corresponding row line 70 in the main image (S112). Next, the correction value calculation unit 67 calculates the second approximate straight line 80-2 shown in FIG. 5 (S114). Next, the correction value calculation unit 67 calculates a pixel value by an interpolation method for the row line 70 whose pixel value is unknown (S116). Then, as shown in FIG. 6, the correction value calculation unit 67 superimposes the difference between the second approximate line 80-2 and each pixel value on the first approximate line 80-1 (S118). Thereby, the correction value for each row line can be calculated. The correction value calculation unit 67 records the correction value in the work memory 58.

次に、画像処理部55は、本画像の画像データを取得する(S120)。そして、補正部68は、S106で算出した列ライン毎の平均画素値と、S118で算出した行ライン毎の補正値とに基づいて、本画像の画像データを補正する(S122)。例えば補正部68は、行ライン毎の補正値と、列ライン毎の平均画素値とを組み合わせて、画素毎の補正値を算出する。より具体的には、補正部68は、行ライン毎の補正値と、列ライン毎の平均画素値とを乗算した結果に基づいて、当該行ラインおよび列ラインが交差する画素に対する補正値を算出してよい。画像処理部55は、補正後の本画像の画像データを、カメラメモリ57、外部メモリ等に記録する。   Next, the image processing unit 55 acquires image data of the main image (S120). Then, the correction unit 68 corrects the image data of the main image based on the average pixel value for each column line calculated in S106 and the correction value for each row line calculated in S118 (S122). For example, the correction unit 68 calculates a correction value for each pixel by combining the correction value for each row line and the average pixel value for each column line. More specifically, the correction unit 68 calculates a correction value for a pixel at which the row line and the column line intersect based on the result of multiplying the correction value for each row line by the average pixel value for each column line. You can do it. The image processing unit 55 records the image data of the corrected main image in the camera memory 57, an external memory, or the like.

なお、補正値算出部67は、S110およびS114において第1近似直線80−1および第2近似直線80−2を算出する場合に、間引き読み出しした行ライン70のうち、最初に読み出された行ライン70および最後に読み出された行ライン70の少なくとも一方の画素値を用いなくともよい。補正値算出部67は、近似直線80を算出する場合に、間引き読み出しした行ライン70のうち、最初の数行および最後の数行の画素値を用いなくともよい。端部よりの画素は、中央よりの画素に比べて、周辺回路の発熱等の外部の影響を受けやすいので、端部よりの画素を除外することでより精度よく近似直線80を算出することができる。これに対し、第1近似直線80−1に差分Dを重畳する場合には、間引き読み出しした全ての行ライン70に関する差分Dを用いることが好ましい。   The correction value calculation unit 67, when calculating the first approximate straight line 80-1 and the second approximate straight line 80-2 in S110 and S114, among the row lines 70 read out thinned out, It is not necessary to use the pixel value of at least one of the line 70 and the last read row line 70. When calculating the approximate straight line 80, the correction value calculation unit 67 does not need to use the pixel values of the first several lines and the last several lines of the thinned and read line lines 70. Since the pixels from the end are more susceptible to external influences such as heat generation in the peripheral circuit than the pixels from the center, the approximate straight line 80 can be calculated more accurately by excluding the pixels from the end. it can. On the other hand, when the difference D is superimposed on the first approximate straight line 80-1, it is preferable to use the differences D regarding all the row lines 70 that have been read out.

また、カメラシステム制御部50は、補正用画像を取得する場合、および、本画像を取得する場合のいずれにおいても、相関2重サンプリングを行ってよい。相関2重サンプリングとは、各画素の電荷をリセットした直後に読み出した画素値と、所定の読出タイミングで読み出した画素値との差分を算出することで、トランジスタ、アンプ等の回路に起因する雑音等を低減する方法である。   In addition, the camera system control unit 50 may perform correlated double sampling when acquiring a correction image and when acquiring a main image. Correlated double sampling refers to noise caused by circuits such as transistors and amplifiers by calculating a difference between a pixel value read immediately after resetting the charge of each pixel and a pixel value read at a predetermined read timing. And the like.

図8は、複数の画素を列ライン単位で複数の領域に分割した分割領域74の例を示す。本例の補正値算出部67は、各行ライン70における分割領域74毎に、図4から図7に関連して説明した補正値を算出する。例えば補正値算出部67は、図7に示したS108の処理において、各行ライン70における分割領域74毎に、平均画素値を算出する。   FIG. 8 shows an example of a divided region 74 obtained by dividing a plurality of pixels into a plurality of regions in units of column lines. The correction value calculation unit 67 of this example calculates the correction value described with reference to FIGS. 4 to 7 for each divided region 74 in each row line 70. For example, the correction value calculation unit 67 calculates an average pixel value for each divided region 74 in each row line 70 in the process of S108 shown in FIG.

それぞれの分割領域74に含まれる列ラインの数は同一であってよく、異なっていてもよい。一例として、中央の分割領域74に含まれる列ラインの数を、他の分割領域74に含まれる数より多くしてよい。また、より読出タイミングが遅い分割領域74ほど、列ラインの数を少なくしてもよい。   The number of column lines included in each divided region 74 may be the same or different. As an example, the number of column lines included in the central divided region 74 may be larger than the number included in other divided regions 74. Further, the number of column lines may be reduced in the divided region 74 having a later reading timing.

図9は、補正用画像を取得する場合に画素値が読み出される行ライン70の配列の他の例を示す。カメラシステム制御部50は、補正値を複数回算出する場合に、複数の行ライン70のうち、前回とは異なる一部の行ライン70の画素値を読み出す。例えばカメラシステム制御部50は、1回目の補正値算出時には、図3に示したように、行ライン70−1、70−(n+1)、70−(2n+1)、・・・の画素値を読み出し、2回目の補正値算出時には、図9に示したように、行ライン70−2、70−(n+2)、・・・の画素値を読み出す。   FIG. 9 shows another example of an array of row lines 70 from which pixel values are read out when a correction image is acquired. When the correction value is calculated a plurality of times, the camera system control unit 50 reads out pixel values of some row lines 70 different from the previous one among the plurality of row lines 70. For example, when calculating the first correction value, the camera system control unit 50 reads out the pixel values of the row lines 70-1, 70- (n + 1), 70- (2n + 1),... As shown in FIG. When calculating the correction value for the second time, the pixel values of the row lines 70-2, 70- (n + 2),... Are read as shown in FIG.

また、カメラシステム制御部50は、補正値を所定の回数算出したときに、全ての行ライン70が一度は読み出しされるように、間引き読み出しする行ライン70を選択してよい。例えばn=3の場合において、1回目の補正値算出時には行ライン70−1、70−(n+1)、70−(2n+1)、・・・の画素値を読み出し、2回目の補正値算出時には行ライン70−2、70−(n+2)、・・・の画素値を読み出し、3回目の補正値算出時には行ライン70−3、70−(n+3)、・・・の画素値を読み出す。これにより、補正値を3回算出したときに、全ての行ライン70の画素値が読み出される。   Further, the camera system control unit 50 may select the row lines 70 to be thinned and read so that all the row lines 70 are read once when the correction value is calculated a predetermined number of times. For example, when n = 3, the pixel values of the row lines 70-1, 70- (n + 1), 70- (2n + 1),... Are read when the first correction value is calculated, and the rows are calculated when the second correction value is calculated. The pixel values of the lines 70-2, 70- (n + 2),... Are read, and the pixel values of the row lines 70-3, 70- (n + 3),. Thereby, when the correction value is calculated three times, the pixel values of all the row lines 70 are read out.

この場合、補正値算出部67は、図5および図6に関連して説明した補間された画素値に代えて、前回以前の補正値算出時に取得した画素値を用いて補正値を算出することができる。補正値算出部67は、予め定められた期間内に取得された画素値を用いて補正値を算出してよい。カメラシステム制御部50は、間引き読み出しした行ライン70の画素値を、取得した時期に関する情報と対応付けて、カメラメモリ57に記録する。   In this case, the correction value calculation unit 67 calculates the correction value using the pixel value acquired at the time of previous correction value calculation instead of the interpolated pixel value described with reference to FIGS. 5 and 6. Can do. The correction value calculation unit 67 may calculate a correction value using a pixel value acquired within a predetermined period. The camera system control unit 50 records the thinned-out pixel values of the row line 70 in the camera memory 57 in association with information about the acquired time.

図10は、カメラメモリ57に記録された画素値データの一例を示す。カメラシステム制御部50は、補正用画像から取得した画素値データを、その取得時期を示す情報と共に、カメラメモリ57に記録する。また、カメラメモリ57は、それぞれの画素値データが、いずれの行ライン70についてのデータであるかを示す情報を更に記録する。補正値算出部67は、カメラメモリ57に記録された画素値データのうち、予め定められた期間内に取得されたデータを用いて補正値を算出してよい。   FIG. 10 shows an example of pixel value data recorded in the camera memory 57. The camera system control unit 50 records the pixel value data acquired from the correction image in the camera memory 57 together with information indicating the acquisition time. The camera memory 57 further records information indicating which row line 70 each pixel value data is. The correction value calculation unit 67 may calculate a correction value using data acquired within a predetermined period among the pixel value data recorded in the camera memory 57.

また、カメラメモリ57は、それぞれの画素値を取得したときの撮像素子36の温度に関する情報を、それぞれの画素値データと対応付けて更に記録する。この場合、撮像素子36には温度センサが設けられる。補正値算出部67は、カメラメモリ57から、現在の撮像素子36の温度に対して所定の範囲内の温度に対応付けられた画素値データを読み出し、読み出した画素値データに基づいて補正値を算出する。補正値算出部67は、現在の撮像素子36の温度と同一の温度に対応付けられた画素値データを読み出してよい。これにより、それぞれの行ライン70の画素値として、補間データではなく実測したデータを用いて補正値を算出することができる。   Further, the camera memory 57 further records information on the temperature of the image sensor 36 when each pixel value is acquired in association with each pixel value data. In this case, the image sensor 36 is provided with a temperature sensor. The correction value calculation unit 67 reads pixel value data associated with a temperature within a predetermined range with respect to the current temperature of the image sensor 36 from the camera memory 57, and calculates a correction value based on the read pixel value data. calculate. The correction value calculation unit 67 may read pixel value data associated with the same temperature as the current temperature of the image sensor 36. As a result, the correction value can be calculated using the actually measured data instead of the interpolation data as the pixel value of each row line 70.

上記の説明において、カメラシステム制御部50の動作として説明した処理は、カメラシステム制御部50がプログラムに従って撮像装置10が有する各ハードウェアを制御することにより実現される。また、上記の説明において画像処理部55により実現される処理は、プロセッサによって実現することができる。例えば、画像処理部55の動作として説明した処理は、プロセッサがプログラムに従って撮像装置10が有する各ハードウェアを制御することにより実現される。   In the above description, the processing described as the operation of the camera system control unit 50 is realized by the camera system control unit 50 controlling each hardware included in the imaging apparatus 10 according to a program. In the above description, the processing realized by the image processing unit 55 can be realized by a processor. For example, the processing described as the operation of the image processing unit 55 is realized by the processor controlling each hardware included in the imaging device 10 according to a program.

すなわち、本実施形態の撮像装置10に関連して説明した処理は、プロセッサがプログラムに従って動作して各ハードウェアを制御することにより、プロセッサ、メモリ等を含む各ハードウェアとプログラムとが協働して動作することにより実現することができる。すなわち、コンピュータ装置を、カメラシステム制御部50および画像処理部55として機能させることができる。コンピュータ装置は、コンピュータ装置に上述した処理を実行させるプログラムをロードして、読み込んだプログラムに従って動作して、当該処理を実行してよい。コンピュータ装置は、当該プログラムを記憶しているコンピュータ読取可能な記録媒体から当該プログラムをロードすることができる。   That is, the processing described in relation to the imaging device 10 of the present embodiment is performed by the processor operating according to the program to control each hardware, so that each hardware including the processor, the memory, and the like cooperates with the program. It can be realized by operating. That is, the computer device can function as the camera system control unit 50 and the image processing unit 55. The computer device may load the program for causing the computer device to execute the above-described processing, operate according to the read program, and execute the processing. The computer device can load the program from a computer-readable recording medium storing the program.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、および図面中において示した装置、システム、プログラム、および方法における動作、手順、ステップ、および段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、および図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The order of execution of each process such as operations, procedures, steps, and stages in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that the output can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the description, and the drawings, even if it is described using “first”, “next”, etc. for convenience, it means that it is essential to carry out in this order. It is not a thing.

10 撮像装置、11 光軸、20 レンズユニット、21 レンズ系、22 前玉、23 レンズ群、24 レンズメモリ、25 レンズシステム制御部、26 鏡筒、27 レンズ回路基板、29 レンズマウント、30 カメラユニット、31 カメラマウント、32 メインミラー、33 ピント板、34 サブミラー、35 測光光学系、36 撮像素子、37 ペンタプリズム、38 接眼光学系、39 測光素子、40 メインミラー回転軸、41 フォーカルプレーンシャッタ、42 撮像素子基板、43 メイン基板、48 二次電池、49 電源制御部、50 カメラシステム制御部、51 駆動部、52 合焦ユニット、53 表示ユニット、54 操作入力部、55 画像処理部、56 外部接続IF、57 カメラメモリ、58 ワークメモリ、59 表示制御部、60 閃光部、67 補正値算出部、68 補正部、70 行ライン、74 分割領域、80 近似直線 DESCRIPTION OF SYMBOLS 10 Imaging device, 11 Optical axis, 20 Lens unit, 21 Lens system, 22 Front lens, 23 Lens group, 24 Lens memory, 25 Lens system control part, 26 Lens tube, 27 Lens circuit board, 29 Lens mount, 30 Camera unit , 31 Camera mount, 32 Main mirror, 33 Focus plate, 34 Sub mirror, 35 Photometric optical system, 36 Image sensor, 37 Pentaprism, 38 Eyepiece optical system, 39 Photometric element, 40 Main mirror rotation axis, 41 Focal plane shutter, 42 Image sensor board, 43 Main board, 48 Secondary battery, 49 Power supply control unit, 50 Camera system control unit, 51 Drive unit, 52 Focus unit, 53 Display unit, 54 Operation input unit, 55 Image processing unit, 56 External connection IF, 57 camera memory, 58 work memory Li, 59 display control unit, 60 flash unit 67 correction value calculation unit, 68 correcting unit, 70 line line, 74 divided regions 80 approximate line

Claims (14)

複数の行ラインに配列された画素を有する撮像素子と、
前記画素の画素値に対する補正値を算出する場合に、前記複数の行ラインを間引いた一部の行ラインの画素値を行ライン毎に順次読み出す読出制御部と、
前記一部の行ラインに含まれる各行ラインの読出タイミングと前記各行ラインの画素値との関係を近似した第1近似直線と、前記一部の行ラインよりも多い行を読み出した場合の前記各行ラインの読出タイミングと前記各行ラインの画素値との関係を近似した、前記第1近似直線と異なる第2近似直線と、に基づいて前記複数の行ラインの各行ラインに対する前記補正値を算出する補正値算出部と
を備える撮像装置。
An imaging device having pixels arranged in a plurality of row lines;
When calculating a correction value for the pixel value of the pixel, a readout control unit that sequentially reads out the pixel values of some row lines obtained by thinning the plurality of row lines for each row line;
The first approximate line that approximates the relationship between the readout timing of each row line included in the some row lines and the pixel value of each row line, and each row when more rows are read than the some row lines. Correction for calculating the correction value for each row line of the plurality of row lines based on a second approximate line different from the first approximate line, which approximates the relationship between the line readout timing and the pixel value of each row line An imaging device comprising: a value calculation unit.
前記補正値算出部は、前記第2近似直線と前記画素値との差分と、前記第1近似直線と、に基づいて、前記補正値を算出する請求項1に記載の撮像装置。  The imaging apparatus according to claim 1, wherein the correction value calculation unit calculates the correction value based on a difference between the second approximate line and the pixel value and the first approximate line. 前記補正値算出部は、前記各行ラインの読み出しタイミングに対する各行ラインの画素値の変動を近似した前記第1近似直線と、前記第2近似直線と、に基づいて前記補正値を算出する請求項1に記載の撮像装置。2. The correction value calculation unit calculates the correction value based on the first approximate line and the second approximate line that approximate the variation of the pixel value of each row line with respect to the readout timing of each row line. The imaging device described in 1. 前記補正値算出部は、前記一部の行ラインに含まれる各行ラインの読出タイミングに対する各行ラインの画素値の変動を近似した直線を、前記複数の行ラインを間引かずに読み出した場合の最終行ラインの読出タイミングまで外挿することで前記第1近似直線を算出する
請求項1から3のいずれか一項に記載の撮像装置。
The correction value calculation unit is configured to read a straight line approximating a change in pixel value of each row line with respect to a reading timing of each row line included in the partial row line, when the plurality of row lines are read out without being thinned out. the imaging apparatus according to any one of claims 1 to calculate the first approximate straight line by extrapolating to read out timing of the row lines 3.
前記補正値算出部は、前記一部の行ラインに含まれる各行ラインの前記画素値の前記第2近似直線に対する差分を、前記複数の行ラインを間引かずに読み出した場合の当該各行ラインの読出タイミングにおける前記第1近似直線の値に重畳する
請求項に記載の撮像装置。
The correction value calculation unit is configured to read a difference between the pixel values of the row lines included in the partial row lines with respect to the second approximate line without reading out the plurality of row lines. The imaging device according to claim 4 , wherein the imaging device is superimposed on a value of the first approximate straight line at a readout timing.
前記補正値算出部は、
前記第1近似直線および第2近似直線の少なくとも一方を算出する場合には、前記一部の行ラインに含まれる行ラインのうち、最初に読み出された行ラインおよび最後に読み出された行ラインの少なくとも一方の画素値を用いず、
前記第1近似直線に前記差分を重畳する場合には、前記一部の行ラインに含まれる全ての行ラインに関する前記差分を用いる
請求項に記載の撮像装置。
The correction value calculation unit
When calculating at least one of the first approximate line and the second approximate line, of the row lines included in the partial row line, the first read row line and the last read row Do not use the pixel value of at least one of the lines
The imaging device according to claim 5 , wherein when the difference is superimposed on the first approximate straight line, the difference regarding all row lines included in the partial row line is used.
前記補正値算出部は、前記一部の行ラインの各行ラインの画素値として、各行ラインに含まれる複数の前記画素の平均画素値を用いる
請求項1からのいずれか一項に記載の撮像装置。
The imaging according to any one of claims 1 to 6 , wherein the correction value calculation unit uses an average pixel value of the plurality of pixels included in each row line as a pixel value of each row line of the partial row line. apparatus.
前記読出制御部は、前記補正値を算出する場合に、前記複数の行ラインを等間隔に間引いた前記一部の行ラインの画素値を読み出す
請求項1からのいずれか一項に記載の撮像装置。
The reading control unit, when calculating the correction value, according to any one of claims 1 to 7 for reading a pixel value of said plurality of said portion of the row lines of the row line is thinned out at regular intervals Imaging device.
前記画素を遮光状態にする遮光部を更に備え、
前記読出制御部は、前記補正値を算出する場合に、前記遮光部が前記画素を遮光状態にしている間に、前記一部の行ラインの画素値を読み出す
請求項1からのいずれか一項に記載の撮像装置。
Further comprising a light-shielding portion for making the pixels light-shielded;
The reading control unit, when calculating the correction value, while the light-shielding portion is the pixel in the light blocking state, any one of claims 1 to 8 for reading the pixel value of the portion of the row line The imaging device according to item.
前記読出制御部は、前記補正値を複数回算出する場合に、前記複数の行ラインのうち、前回とは異なる一部の行ラインの画素値を読み出す
請求項1からのいずれか一項に記載の撮像装置。
The reading control unit, when calculating a plurality of times the correction value, among the plurality of row lines, to any one of claims 1 to read the pixel values of the different portion of the row line 9 from the previous The imaging device described.
前記読出制御部が読み出した前記一部の行ラインの画素値を、前記読出制御部が前記画素値を読み出したときの前記撮像素子の温度と対応付けて記録するメモリを更に備え、
前記補正値算出部は、前記メモリから、現在の前記撮像素子の温度に対して予め定められた範囲内の温度に対応付けられた前記画素値を読み出し、読み出した前記画素値に基づいて前記補正値を算出する
請求項10に記載の撮像装置。
A memory that records the pixel values of the part of the row lines read by the read control unit in association with the temperature of the image sensor when the read control unit reads the pixel values;
The correction value calculation unit reads out the pixel value associated with a temperature within a predetermined range with respect to the current temperature of the image sensor from the memory, and performs the correction based on the read pixel value. The imaging device according to claim 10 , wherein a value is calculated.
前記補正値算出部は、前記画素を列ライン単位で複数の領域に分割した分割領域毎に前記補正値を算出する
請求項1から11のいずれか一項に記載の撮像装置。
The imaging device according to any one of claims 1 to 11 , wherein the correction value calculation unit calculates the correction value for each divided region obtained by dividing the pixel into a plurality of regions in units of column lines.
請求項1から12のいずれか一項に記載の補正値算出部を備える処理ユニット。 A processing unit comprising the correction value calculation unit according to any one of claims 1 to 12 . コンピュータを、請求項1から12のいずれか一項に記載の補正値算出部として機能させるプログラム。   The program which makes a computer function as a correction value calculation part as described in any one of Claim 1 to 12.
JP2013163034A 2013-08-06 2013-08-06 Imaging apparatus, processing unit, and program Active JP6229363B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013163034A JP6229363B2 (en) 2013-08-06 2013-08-06 Imaging apparatus, processing unit, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013163034A JP6229363B2 (en) 2013-08-06 2013-08-06 Imaging apparatus, processing unit, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017202964A Division JP2018011364A (en) 2017-10-19 2017-10-19 Imaging apparatus, processing unit, and program

Publications (2)

Publication Number Publication Date
JP2015033067A JP2015033067A (en) 2015-02-16
JP6229363B2 true JP6229363B2 (en) 2017-11-15

Family

ID=52518033

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013163034A Active JP6229363B2 (en) 2013-08-06 2013-08-06 Imaging apparatus, processing unit, and program

Country Status (1)

Country Link
JP (1) JP6229363B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020061605A (en) 2018-10-05 2020-04-16 ソニーセミコンダクタソリューションズ株式会社 Solid-state imaging device, drive method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4161660B2 (en) * 2002-09-25 2008-10-08 日本ビクター株式会社 Imaging device and dark current data updating method for imaging device
JP5219778B2 (en) * 2008-12-18 2013-06-26 キヤノン株式会社 Imaging apparatus and control method thereof
JP2013118563A (en) * 2011-12-05 2013-06-13 Nikon Corp Imaging apparatus

Also Published As

Publication number Publication date
JP2015033067A (en) 2015-02-16

Similar Documents

Publication Publication Date Title
JP6263035B2 (en) Imaging device
US8730374B2 (en) Focus detection apparatus
US20130314564A1 (en) Image capturing apparatus and image processing method
JP2010271670A (en) Imaging apparatus
US11290648B2 (en) Image capture apparatus and control method thereof
JP6175748B2 (en) Imaging device
JP2015111252A (en) Imaging device, imaging device control method, program, and storage medium
JP6960755B2 (en) Imaging device and its control method, program, storage medium
JP6229363B2 (en) Imaging apparatus, processing unit, and program
JP5436139B2 (en) Imaging device
US9113098B2 (en) Image pickup apparatus and control method thereof, image pickup system, and non-transitory computer-readable storage medium
WO2017010027A1 (en) Imaging device, signal processing method, and signal processing program
JP2018011364A (en) Imaging apparatus, processing unit, and program
JP5961058B2 (en) Imaging apparatus and control method thereof, image processing apparatus and control method thereof
JP2012063664A (en) Photometric device and electronic camera
JP5423140B2 (en) Photometric device and imaging device
JP6395790B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND FOCUS CONTROL PROGRAM
JP6573382B2 (en) Imaging apparatus and photometric method
JP6566800B2 (en) Imaging apparatus and imaging method
JP2016010008A (en) Imaging device and noise correction method
JP5836673B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP7079161B2 (en) Imaging device and its control method
JP5375471B2 (en) Imaging device
JP2015080114A (en) Image-capturing device, control method therefor, program, and recording medium
JP2015128226A (en) Imaging device, method of controlling the same, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160715

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170321

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170411

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20170612

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170810

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: 20170919

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171002

R150 Certificate of patent or registration of utility model

Ref document number: 6229363

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250