JP2012256964A - Imaging apparatus - Google Patents

Imaging apparatus Download PDF

Info

Publication number
JP2012256964A
JP2012256964A JP2011127324A JP2011127324A JP2012256964A JP 2012256964 A JP2012256964 A JP 2012256964A JP 2011127324 A JP2011127324 A JP 2011127324A JP 2011127324 A JP2011127324 A JP 2011127324A JP 2012256964 A JP2012256964 A JP 2012256964A
Authority
JP
Japan
Prior art keywords
pixel
unit
light
pixels
shielded
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.)
Withdrawn
Application number
JP2011127324A
Other languages
Japanese (ja)
Inventor
Yohei Ooka
要平 大岡
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 JP2011127324A priority Critical patent/JP2012256964A/en
Publication of JP2012256964A publication Critical patent/JP2012256964A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of accurately identifying a light shielding image so as to correct its output even when the light shielding image where subject light is shielded by the pattern of a display part is different depending on the brightness of a field, etc.SOLUTION: A camera 100 includes: a display part 109 arranged in the optical path of an imaging optical system for forming the image of subject light so as to display a predetermined AF frame 201; an imaging part 112 having multiple pixels and outputting pixel signals corresponding to the subject light via the display part 109, whose images are formed; an identification part 123a for detecting the pixel signals output from the multiple pixels and identifying the pixels whose light is shielded by the AF frame 201; and a correction part 123b for correcting the pixel signals output from the pixels identified by the identification part 123a.

Description

本発明は、撮像装置に関するものである。   The present invention relates to an imaging apparatus.

従来、ファインダ画面に重ねて表示されるAFポイントマーク(AF枠)等の情報を、測光値演算やシーン解析を行うために、補間処理によって消去するカメラがあった(例えば特許文献1)。
しかし、実際には、撮影シーンに応じて被写界の明るさ等が異なるため、AFポイントマーク等で遮光された画素、つまり、補間すべき画素は、撮影毎に異なり、また、その出力も変化する。
この場合、補間すべき画素よりも広い範囲で補正すると、有効な画像データまで消去してしまうので、補間処理の精度が悪くなるおそれがある。逆に、補間すべき画素よりも狭い範囲で補正すると、AFポイントマーク等によって遮光された画素データを基に補間演算を行ってしまうので、やはり補間処理の精度が悪くなるおそれがある。
このように、従来のカメラは、AFポイントマーク等の情報を、適切に補間できなかった。
Conventionally, there has been a camera that erases information such as AF point marks (AF frames) displayed on the viewfinder screen by interpolation processing in order to perform photometric value calculation and scene analysis (for example, Patent Document 1).
However, in reality, the brightness of the object scene varies depending on the shooting scene, so the pixels that are shielded by the AF point mark, etc., that is, the pixels to be interpolated differ for each shooting, and the output is also Change.
In this case, if the correction is performed in a wider range than the pixel to be interpolated, even effective image data is deleted, so that the accuracy of the interpolation processing may be deteriorated. Conversely, if correction is made in a narrower range than the pixel to be interpolated, interpolation calculation is performed based on pixel data shielded by an AF point mark or the like, so that the accuracy of the interpolation processing may also deteriorate.
As described above, the conventional camera cannot appropriately interpolate information such as the AF point mark.

特開平11−215409号公報JP 11-215409 A

本発明の課題は、被写界の明るさ等に応じて、被写体光が表示部のパターンによって遮られる遮光画像が異なっても、遮光画像を精度よく特定して、その出力を補正できる撮像装置を提供することである。   An object of the present invention is to provide an imaging apparatus capable of accurately identifying a light-shielded image and correcting its output even if the light-shielded image in which subject light is shielded by the pattern of the display unit differs according to the brightness of the object scene or the like Is to provide.

本発明は、以下のような解決手段により、課題を解決する。なお、理解を容易にするために、本発明の実施形態に対応する符号を付して説明するが、これに限定されるものではない。また、符号を付して説明した構成は、適宜改良してもよく、また、少なくとも一部を他の構成物に代替してもよい。   The present invention solves the problems by the following means. In addition, in order to make an understanding easy, although the code | symbol corresponding to embodiment of this invention is attached | subjected and demonstrated, it is not limited to this. In addition, the configuration described with reference numerals may be improved as appropriate, or at least a part thereof may be replaced with another configuration.

請求項1の発明は、被写体光を結像させる撮影光学系の光路中に配置され、所定のパターン(201)を表示する表示部(109)と、複数の画素を有し、前記表示部を介して結像された前記被写体光に応じた画素信号を出力する撮像部(112)と、前記複数の画素から出力された前記画素信号を検出して、前記パターンにより遮光された画素を特定する特定部(123a)と、前記特定部により特定された画素から出力された画素信号を補正する補正部(123b)と、を備えることを特徴とする撮像装置である。
請求項2の発明は、請求項1に記載の撮像装置において、前記複数の画素は、行列状に配置されていることを特徴とする撮像装置である。
請求項2に記載の撮像装置において、前記特定部(123a)は、前記複数の画素のうち、少なくとも1列または1行から出力された画素信号を検出して、前記パターン(201)により遮光された画素を特定することを特徴とする撮像装置である。
請求項3の発明は、請求項1から請求項3のいずれか1項に記載の撮像装置において、前記パターン(201)により遮光された画素を含むように予め定められた画素領域(301,601)を記憶する記憶部(115)を備え、前記特定部(123a)は、前記画素領域の端部の画素から隣接する画素を順次検出して、前記パターンにより遮光された画素を特定することを特徴とする撮像装置である。
請求項4の発明は、請求項1から請求項4のいずれか1項に記載の撮像装置において、前記特定部(123a)は、検出された画素信号が所定閾値(Yth)未満のときに、前記パターンにより遮光された画素であると特定することを特徴とする撮像装置である。
請求項5の発明は、請求項5に記載の撮像装置において、前記補正部(123b)は、前記特定部(123a)により特定された画素に隣接する前記所定閾値(Yth)以上の画素信号を出力する画素に基づいて、補正することを特徴とする撮像装置である。
請求項6の発明は、請求項6に記載の撮像装置において、前記補正部(123b)は、前記特定部(123a)により特定された画素を線形補間により補正することを特徴とする撮像装置である。
請求項7の発明は、請求項1から請求項7のいずれか1項に記載の撮像装置において、前記パターン(201)は、測距範囲を表示するパターンであることを特徴とする撮像装置である。
The invention of claim 1 is arranged in an optical path of a photographing optical system that forms an image of subject light, and has a display unit (109) for displaying a predetermined pattern (201), a plurality of pixels, and the display unit An image pickup unit (112) that outputs a pixel signal corresponding to the subject light imaged via the image, and the pixel signal output from the plurality of pixels is detected to identify a pixel that is shielded from light by the pattern An imaging apparatus comprising: a specifying unit (123a); and a correcting unit (123b) that corrects a pixel signal output from a pixel specified by the specifying unit.
A second aspect of the present invention is the imaging apparatus according to the first aspect, wherein the plurality of pixels are arranged in a matrix.
3. The imaging device according to claim 2, wherein the specifying unit (123 a) detects a pixel signal output from at least one column or one row among the plurality of pixels and is shielded from light by the pattern (201). An image pickup apparatus is characterized in that a specified pixel is specified.
According to a third aspect of the present invention, in the imaging device according to any one of the first to third aspects, the pixel region (301, 601) determined in advance to include pixels shielded from light by the pattern (201). ), And the specifying unit (123a) sequentially detects adjacent pixels from the pixels at the end of the pixel region, and specifies the light-shielded pixels by the pattern. It is the imaging device characterized.
According to a fourth aspect of the present invention, in the imaging device according to any one of the first to fourth aspects, the specifying unit (123a) is configured such that when the detected pixel signal is less than a predetermined threshold (Yth), The imaging apparatus is characterized by being identified as a pixel shielded from light by the pattern.
According to a fifth aspect of the present invention, in the imaging device according to the fifth aspect, the correction unit (123b) outputs a pixel signal equal to or greater than the predetermined threshold (Yth) adjacent to the pixel specified by the specifying unit (123a). An imaging apparatus is characterized in that correction is performed based on a pixel to be output.
The invention according to claim 6 is the imaging apparatus according to claim 6, wherein the correction unit (123b) corrects the pixel specified by the specifying unit (123a) by linear interpolation. is there.
A seventh aspect of the present invention is the imaging apparatus according to any one of the first to seventh aspects, wherein the pattern (201) is a pattern for displaying a distance measurement range. is there.

本発明によれば、被写体光が表示部のパターンによって遮られる遮光画像が異なっても、遮光画像を精度よく特定して、その出力を補正できる撮像装置を提供できる。   According to the present invention, it is possible to provide an imaging apparatus capable of accurately identifying a light-shielded image and correcting its output even if the light-shielded image where the subject light is blocked by the pattern of the display unit is different.

第1実施形態のカメラ100のブロック図である。It is a block diagram of the camera 100 of 1st Embodiment. 第1実施形態の表示部109の表示画面を示す図である。It is a figure which shows the display screen of the display part 109 of 1st Embodiment. 第1実施形態のカメラ100の使用時の動作を示すフローチャートである。It is a flowchart which shows the operation | movement at the time of use of the camera 100 of 1st Embodiment. 第1実施形態の遮光画素特定処理(縦方向)を示すフローチャートである。It is a flowchart which shows the light-shielding pixel specific process (vertical direction) of 1st Embodiment. 第1実施形態の補間処理(縦方向)を示すフローチャートである。It is a flowchart which shows the interpolation process (vertical direction) of 1st Embodiment. 第1実施形態の検討枠301を拡大して遮光画素特定処理(縦方向)を説明する図である。It is a figure which expands the examination frame 301 of 1st Embodiment, and illustrates a shading pixel specific process (vertical direction). 第1実施形態の検討枠301の画素出力Yを縦軸、画素の縦方向Vの座標を横軸に示すグラフである。It is a graph which shows the pixel output Y of the examination frame 301 of 1st Embodiment on a vertical axis | shaft, and the coordinate of the vertical direction V of a pixel on a horizontal axis. 第1実施形態の検討枠301を拡大して遮光画素特定処理(横方向)を説明する図である。It is a figure which expands the examination frame 301 of 1st Embodiment, and illustrates a shading pixel specific process (horizontal direction). 第1実施形態の検討枠301を拡大して遮光画素特定処理(コーナ部)を説明する図である。It is a figure which expands the examination frame 301 of 1st Embodiment, and illustrates a shading pixel specific process (corner part). 第2実施形態のカメラの遮光画素特定処理及び補間処理を説明する図である。It is a figure explaining the shading pixel specific process and interpolation process of the camera of 2nd Embodiment.

(第1実施形態)
以下、図面等を参照して、本発明の実施形態について説明する。
図1は、第1実施形態のカメラ100の構成を説明する図である。
図2は、第1実施形態の表示部109の表示画面を示す図である。
カメラ100は、一眼レフレックスタイプのカメラである。
カメラ100は、操作部101と、レンズ102と、ミラー103と、シャッター104と、第1撮像部105と、メモリカードスロット106と、モニタ107と、表示部109と、プリズム110と、第2撮像部112と、接眼部113と、記憶部115と、制御部120とを備えている。
操作部101は、撮影者によって操作される。操作部101は、例えば、電源スイッチ、レリーズボタン、ズームボタン、十字キー、決定ボタン、再生ボタン、削除ボタン等を備えている。
(First embodiment)
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram illustrating the configuration of the camera 100 according to the first embodiment.
FIG. 2 is a diagram illustrating a display screen of the display unit 109 according to the first embodiment.
The camera 100 is a single-lens reflex type camera.
The camera 100 includes an operation unit 101, a lens 102, a mirror 103, a shutter 104, a first imaging unit 105, a memory card slot 106, a monitor 107, a display unit 109, a prism 110, and a second imaging. Unit 112, eyepiece unit 113, storage unit 115, and control unit 120.
The operation unit 101 is operated by a photographer. The operation unit 101 includes, for example, a power switch, a release button, a zoom button, a cross key, an enter button, a play button, a delete button, and the like.

レンズ102は、撮影光学系を構成する。レンズ102は、カメラボディに着脱可能なレンズ鏡筒内に収容される。なお、レンズ102は、複数の光学レンズから構成されるが、図1では、1枚のレンズで簡略して表す。レンズ102を通った被写体からの光線は、観察時には、ミラー103によってプリズム110の方向に導かれ、撮影時には、ミラー103が退避することにより、第1撮像部105の方向に導かれる。   The lens 102 constitutes a photographing optical system. The lens 102 is housed in a lens barrel that is detachable from the camera body. Note that the lens 102 includes a plurality of optical lenses, but in FIG. The light beam from the subject passing through the lens 102 is guided in the direction of the prism 110 by the mirror 103 during observation, and is guided in the direction of the first imaging unit 105 by retracting the mirror 103 during imaging.

第1撮像部105は、例えば、CMOS、CCD等のイメージセンサーである。撮像時に、ミラー103が退避し、シャッター104が走行すると、レンズ102によって第1撮像部105に結像した被写体像が、制御部120により決定された露出で撮像される。第1撮像部105は、撮像により得られた撮像情報を制御部120へ出力する。   The first imaging unit 105 is an image sensor such as a CMOS or a CCD, for example. When the mirror 103 is retracted and the shutter 104 travels during imaging, a subject image formed on the first imaging unit 105 by the lens 102 is captured with the exposure determined by the control unit 120. The first imaging unit 105 outputs imaging information obtained by imaging to the control unit 120.

メモリカードスロット106は、記憶媒体としてのメモリカードを挿入するためのスロットである。メモリカードスロット106は、制御部120からの指示に基づいて、第1撮像部105が取得した画像をメモリカードに書き込んで記録したり、メモリカード内に記憶されている画像を読み出したりする。
モニタ107は、カメラ100の背面等に搭載された液晶表示装置等である。モニタ107には、メモリカードに記憶されている画像や、カメラ100を設定するための設定メニュー等が表示される。
ファインダスクリーン108は、ミラー103によってプリズム110の方向に導かれた被写体光が結像される部材である。
The memory card slot 106 is a slot for inserting a memory card as a storage medium. Based on an instruction from the control unit 120, the memory card slot 106 writes and records an image acquired by the first imaging unit 105 on a memory card, and reads an image stored in the memory card.
The monitor 107 is a liquid crystal display device or the like mounted on the back surface of the camera 100 or the like. The monitor 107 displays an image stored in the memory card, a setting menu for setting the camera 100, and the like.
The finder screen 108 is a member on which subject light guided by the mirror 103 in the direction of the prism 110 is imaged.

表示部109は、例えば、透過型の高分子分散型液晶表示装置である。
図2に示すように、表示部109は、AF(オートフォーカス)の測距範囲を示す3つのAF枠201(パターン)を表示する。AF枠201は、外形がほぼ長方形である。
図1に示すように、表示部109は、被写体光を結像させる撮影光学系の光路中に配置されている。ファインダスクリーン108に結像した被写体光は、さらに、プリズム110に導かれる途中で、表示部109を通過する。このため、AF枠201は、ファインダスクリーン108に結像した被写体光に、重ね合わせられて重畳される。AF枠201が重畳された被写体光は、プリズム110を通り、接眼部113及び測光レンズ111の両方に導かれる。
The display unit 109 is, for example, a transmissive polymer dispersed liquid crystal display device.
As shown in FIG. 2, the display unit 109 displays three AF frames 201 (patterns) indicating the AF (autofocus) distance measurement range. The AF frame 201 has a substantially rectangular outer shape.
As shown in FIG. 1, the display unit 109 is disposed in the optical path of a photographing optical system that forms an image of subject light. The subject light imaged on the finder screen 108 further passes through the display unit 109 while being guided to the prism 110. For this reason, the AF frame 201 is superimposed and superimposed on the subject light imaged on the finder screen 108. The subject light on which the AF frame 201 is superimposed passes through the prism 110 and is guided to both the eyepiece 113 and the photometric lens 111.

第2撮像部112は、例えば、CMOSやCCD等のイメージセンサーである。第2撮像部112は、複数の画素が行列状に配置されている(図6参照)。測光レンズ111を通った被写体光は、第2撮像部112に結像する。第2撮像部112は、撮像情報を取得し、その画素出力を制御部120に出力する。この画素出力には、表示部109を介して結像された被写体光に応じた画素信号が含まれる。   The second imaging unit 112 is an image sensor such as a CMOS or a CCD, for example. The second imaging unit 112 has a plurality of pixels arranged in a matrix (see FIG. 6). The subject light that has passed through the photometric lens 111 forms an image on the second imaging unit 112. The second imaging unit 112 acquires imaging information and outputs the pixel output to the control unit 120. This pixel output includes a pixel signal corresponding to subject light imaged through the display unit 109.

記憶部115は、SDRAM、フラッシュメモリ等の記憶装置である。
SDRAMは、揮発性のメモリであって、CPU(中央処理装置)がプログラム実行時にプログラムを展開するためのワークメモリとして使用されたり、データを一時的に記録するためのバッファメモリとして使用される。フラッシュメモリは、不揮発性のメモリであって、制御部120が実行するプログラムのデータや、プログラム実行時に読み込まれる種々のパラメータ等が記録されている。
記憶部115は、第2撮像部112の画素出力を記憶したり、後述するように、補間後の画素出力に更新したりする。
The storage unit 115 is a storage device such as an SDRAM or a flash memory.
The SDRAM is a volatile memory, and is used as a work memory for developing a program when a CPU (central processing unit) executes a program, or as a buffer memory for temporarily recording data. The flash memory is a non-volatile memory in which data of a program executed by the control unit 120, various parameters read at the time of program execution, and the like are recorded.
The storage unit 115 stores the pixel output of the second imaging unit 112 or updates the pixel output after interpolation as will be described later.

記憶部115は、検討枠記憶部115aを備える。
検討枠記憶部115aは、AF枠201に対応した大きさの検討枠301(画素領域)を予め記憶する記憶領域である(図6参照)。検討枠301は、第2撮像部112のうち被写体光がAF枠201によって遮光され、AF枠201が撮像に影響に与える範囲に対応して設定されている。つまり、検討枠301は、AF枠201により遮光された画素を含むように予め定められた画素領域に対応している。このため、検討枠301は、長方形の枠形状である。検討枠301の詳細は、後述する。
The storage unit 115 includes an examination frame storage unit 115a.
The study frame storage unit 115a is a storage region that stores in advance a study frame 301 (pixel region) having a size corresponding to the AF frame 201 (see FIG. 6). The examination frame 301 is set so as to correspond to a range in which the subject light in the second imaging unit 112 is shielded by the AF frame 201 and the AF frame 201 affects imaging. That is, the examination frame 301 corresponds to a pixel region that is predetermined so as to include pixels that are shielded from light by the AF frame 201. For this reason, the examination frame 301 has a rectangular frame shape. Details of the examination frame 301 will be described later.

制御部120は、CPU、その他の周辺回路により構成され、カメラ100を統括的に制御する制御装置である。
制御部120は、第1撮像制御部121と、第2撮像制御部122と、補間処理部123(補正部)、画素出力抽出部124と、撮影条件設定部125とを備える。
第1撮像制御部121は、第1撮像部105が取得した撮像情報に基づいて所定の画像形式、例えばJPEG形式の画像データを生成する。第1撮像制御部121は、生成した画像データに基づいて、表示用画像データ、例えばサムネイル画像データを作成する。制御部120は、生成した本画像データとサムネイル画像データとを含み、さらにヘッダ情報を付加した画像ファイルを生成し、メモリカードスロット106へ出力する。
本実施形態では、本画像データとサムネイル画像データは、いずれもRGB表色系で表された画像データである。
The control unit 120 is configured by a CPU and other peripheral circuits, and is a control device that comprehensively controls the camera 100.
The control unit 120 includes a first imaging control unit 121, a second imaging control unit 122, an interpolation processing unit 123 (correction unit), a pixel output extraction unit 124, and an imaging condition setting unit 125.
The first imaging control unit 121 generates image data in a predetermined image format, for example, JPEG format, based on the imaging information acquired by the first imaging unit 105. The first imaging control unit 121 creates display image data, for example, thumbnail image data, based on the generated image data. The control unit 120 generates an image file that includes the generated main image data and thumbnail image data, and further includes header information, and outputs the image file to the memory card slot 106.
In the present embodiment, the main image data and the thumbnail image data are both image data represented in the RGB color system.

第2撮像制御部122は、第2撮像部112を制御する制御部である。第2撮像制御部122は、第2撮像部112の画素出力を取得する。
補間処理部123は、第2撮像部112が取得した画素出力を補正する制御部である。補間処理部123は、特定部123aと、補正部123bとを備える。
特定部123aは、第2撮像部112の複数の画素から出力された画素信号を検出して、AF枠201により遮光された遮光画素を特定する制御部である。
補正部123bは、特定部123aにより特定された遮光画素から出力された画素信号を補間して補正する制御部である。
The second imaging control unit 122 is a control unit that controls the second imaging unit 112. The second imaging control unit 122 acquires the pixel output of the second imaging unit 112.
The interpolation processing unit 123 is a control unit that corrects the pixel output acquired by the second imaging unit 112. The interpolation processing unit 123 includes a specifying unit 123a and a correction unit 123b.
The specifying unit 123 a is a control unit that detects pixel signals output from a plurality of pixels of the second imaging unit 112 and specifies a light-shielded pixel shielded by the AF frame 201.
The correcting unit 123b is a control unit that interpolates and corrects the pixel signal output from the light-shielded pixel specified by the specifying unit 123a.

画素出力抽出部124は、補正部123bによって補正された画素出力に基づいて、被写体の撮影条件を設定するための情報を抽出する制御部である。
撮影条件設定部125は、画素出力抽出部124が抽出した画素出力に基づいて、シーン設定や、露出決定等をする制御部である。
各制御部の処理の詳細は、後述する。
The pixel output extraction unit 124 is a control unit that extracts information for setting shooting conditions of the subject based on the pixel output corrected by the correction unit 123b.
The imaging condition setting unit 125 is a control unit that performs scene setting, exposure determination, and the like based on the pixel output extracted by the pixel output extraction unit 124.
Details of processing of each control unit will be described later.

次に、カメラ100の動作を説明する。
図3は、第1実施形態のカメラ100の使用時の動作を示すフローチャートである。
図4は、第1実施形態の遮光画素特定処理(縦方向)を示すフローチャートである。
図5は、第1実施形態の補間処理(縦方向)を示すフローチャートである。
図6は、第1実施形態の検討枠301を拡大して遮光画素特定処理(縦方向)を説明する図である。
図7は、第1実施形態の検討枠301の画素出力Yを縦軸、画素の縦方向Vの座標を横軸に示すグラフである。
図8は、第1実施形態の検討枠301を拡大して遮光画素特定処理(横方向)を説明する図である。
図9は、第1実施形態の検討枠301を拡大して遮光画素特定処理(コーナ部)を説明する図である。
Next, the operation of the camera 100 will be described.
FIG. 3 is a flowchart showing an operation when the camera 100 of the first embodiment is used.
FIG. 4 is a flowchart showing the shading pixel specifying process (vertical direction) of the first embodiment.
FIG. 5 is a flowchart showing the interpolation processing (vertical direction) of the first embodiment.
FIG. 6 is a diagram for explaining the shading pixel specifying process (vertical direction) by enlarging the examination frame 301 of the first embodiment.
FIG. 7 is a graph showing the pixel output Y of the examination frame 301 of the first embodiment on the vertical axis and the coordinates of the vertical direction V of the pixel on the horizontal axis.
FIG. 8 is a diagram for explaining the shading pixel specifying process (horizontal direction) by enlarging the examination frame 301 of the first embodiment.
FIG. 9 is a diagram for explaining the shading pixel specifying process (corner portion) by enlarging the examination frame 301 of the first embodiment.

なお、以下、AF枠201の1つに対応する1つの検討枠301の補間について説明するが、他の2つに対応するAF枠201についても、同様である。
ステップS(以下「S」という)1では、第2撮像制御部122は、第2撮像部112を制御して、取得した画像出力を記憶部115に記憶させる。
第2撮像部112に導かれる光は、表示部109を通ったものである。このため、第2撮像部112が取得した画素出力には、既に、AF枠201によって被写体光が遮られた遮光画素の画素出力(遮光画素出力)が重畳されている。遮光画素の画素出力は、周辺の出力よりも低くなっている(図7(a)に示す補間範囲A参照)。
S2では、図6に示すように、特定部123aは、S1で取得した画素出力のうち、検討枠301内の平均出力値を計算し、これを補間閾値Ythに設定する。
Hereinafter, the interpolation of one examination frame 301 corresponding to one of the AF frames 201 will be described, but the same applies to the AF frames 201 corresponding to the other two.
In step S (hereinafter referred to as “S”) 1, the second imaging control unit 122 controls the second imaging unit 112 to store the acquired image output in the storage unit 115.
The light guided to the second imaging unit 112 passes through the display unit 109. For this reason, the pixel output of the light-shielded pixel in which the subject light is blocked by the AF frame 201 (light-shielded pixel output) is already superimposed on the pixel output acquired by the second imaging unit 112. The pixel output of the light-shielding pixel is lower than the peripheral output (see the interpolation range A shown in FIG. 7A).
In S2, as shown in FIG. 6, the specifying unit 123a calculates an average output value in the examination frame 301 among the pixel outputs acquired in S1, and sets this as the interpolation threshold Yth.

[縦方向スキャン]
S3では、特定部123aは、遮光画素特定処理(縦方向)を行う。
特定部123aは、検討枠301のうち、縦方向(列方向)に配列された画素の画素出力を縦方向にスキャンする。
図6に太線で示す範囲304のように、この例では、縦方向に配列された画素は、上側及び下側に各9列、合計18列である。
[Vertical scan]
In S3, the specifying unit 123a performs a light-shielded pixel specifying process (vertical direction).
The specifying unit 123a scans the pixel outputs of the pixels arranged in the vertical direction (column direction) in the vertical direction in the examination frame 301.
In this example, as shown in a range 304 indicated by a thick line in FIG. 6, the pixels arranged in the vertical direction are 9 columns each on the upper side and the lower side, for a total of 18 columns.

(S3:遮光画素特定処理(縦方向))
図4、図6を参照して、遮光画素特定処理(縦方向)について説明する。
遮光画素特定処理(縦方向)は、第2撮像部112の画素のうち、AF枠201によって被写体光を遮られた遮光画素を特定する処理である。
S301では、特定部123aは、範囲304内の内側の遮光画素を特定する処理を開始する。
S302では、特定部123aは、検討枠301よりも内側の画素303aの1つ外側の画素、つまり検討枠301の最も内側の画素X11を選択する。
(S3: shading pixel specifying process (vertical direction))
With reference to FIGS. 4 and 6, the shading pixel specifying process (vertical direction) will be described.
The light-shielded pixel specifying process (vertical direction) is a process for specifying a light-shielded pixel whose subject light is blocked by the AF frame 201 among the pixels of the second imaging unit 112.
In S301, the specifying unit 123a starts a process of specifying the inner light-shielding pixel in the range 304.
In S <b> 302, the specifying unit 123 a selects one pixel outside the pixel 303 a inside the examination frame 301, that is, the innermost pixel X <b> 11 of the examination frame 301.

S303では、特定部123aは、選択した画素X11の画素出力を補間閾値Ythと比較して補間閾値Ythよりも小さいか否かを判定する。特定部123aは、選択した画素出力が補間閾値Ythよりも小さいと判定した場合には(S303:YES)、S304に進み、一方、補間閾値Ythよりも小さくない判定した場合には(S303:NO)、つまり、補間閾値Yth以上であると判定した場合には、S303aに進む。
S303aでは、特定部123aは、選択した画素よりもさらに1つ下側の画素を選択して、S303の処理を繰り返す。
In S303, the specifying unit 123a compares the pixel output of the selected pixel X11 with the interpolation threshold Yth and determines whether it is smaller than the interpolation threshold Yth. When determining that the selected pixel output is smaller than the interpolation threshold Yth (S303: YES), the specifying unit 123a proceeds to S304. On the other hand, when determining that the selected pixel output is not smaller than the interpolation threshold Yth (S303: NO) ), That is, if it is determined that the value is greater than or equal to the interpolation threshold Yth, the process proceeds to S303a.
In S303a, the specifying unit 123a selects a pixel that is one lower than the selected pixel, and repeats the process of S303.

S304では、特定部123aは、画素出力が補間閾値Ythよりも小さいと判定した画素を、内側の遮光画素に設定する。
上記S301〜S304の処理によって、図6に示すように、特定部123aは、検討枠301の内側の画素303aから1つずつ外側の画素を順次選択して、その画素出力と補間閾値Ythとを比較し、その判定結果に基づいて遮光画素を特定することになる。これにより、検討枠301内において、AF枠201が撮像された画素のうち最も内側の遮光画素(図6の例では遮光画素B1)を設定できる。
In S304, the specifying unit 123a sets a pixel determined to have a pixel output smaller than the interpolation threshold Yth as an inner light-shielding pixel.
Through the processing of S301 to S304, as illustrated in FIG. 6, the specifying unit 123a sequentially selects the outer pixels one by one from the inner pixels 303a of the examination frame 301, and outputs the pixel output and the interpolation threshold Yth. The light-shielding pixels are specified based on the comparison result. Thereby, in the examination frame 301, the innermost light-shielded pixel (light-shielded pixel B1 in the example of FIG. 6) among the pixels in which the AF frame 201 is imaged can be set.

遮光画素が配置された遮光画素領域302は、AF枠201の周囲の明るさ等に応じて異なる。つまり、遮光画素領域302は、撮影毎に異なる。遮光画素領域302は、例えば、被写界が明るければ幅が狭くなり、逆に、被写界が暗ければ幅が広くなる。また、図6に示すように、AF枠201が長方形であっても、遮光画素領域302は、通常は、長方形の枠形状にならない。さらに、AF枠201の数が多い場合には(例えば数十個)、AF枠201が撮影条件に与える影響が大きくなる。このため、適切に撮影条件を設定したり、顔認証機能等のシーン解析の精度を向上する場合には、遮光画素を精度よく特定してその出力を補間する必要がある。
実施形態では、検討枠301の範囲を予め実験等で求め、遮光画素領域302よりも十分に広い領域を検討枠301として、カメラ製造時等に検討枠記憶部115aに記録しておく。そして、特定部123aは、遮光画素を特定するために、検討枠301内の画素が実際に被写界を撮像した画素出力を利用し、かつ、補間閾値Ythを検討枠301内の画素出力に基づいて算出する。このため、遮光画素領域302が撮影毎に異なっても特定部123aは、遮光画素を精度よく特定できる。
The light-shielded pixel region 302 in which the light-shielded pixels are arranged varies depending on the brightness around the AF frame 201 and the like. That is, the light-shielding pixel region 302 is different for each shooting. For example, the light-shielding pixel region 302 becomes narrower when the object scene is bright, and conversely, the width becomes wider when the object scene is dark. As shown in FIG. 6, even if the AF frame 201 is rectangular, the light-shielding pixel region 302 does not normally have a rectangular frame shape. Further, when the number of AF frames 201 is large (for example, several tens), the influence of the AF frame 201 on the shooting conditions becomes large. For this reason, in order to appropriately set shooting conditions or improve the accuracy of scene analysis such as a face authentication function, it is necessary to accurately identify light-shielded pixels and interpolate the output.
In the embodiment, the range of the examination frame 301 is obtained in advance through experiments or the like, and an area sufficiently wider than the light-shielding pixel area 302 is recorded as the examination frame 301 in the examination frame storage unit 115a when the camera is manufactured. Then, the specifying unit 123a uses the pixel output in which the pixels in the examination frame 301 actually capture the object scene to specify the light-shielded pixels, and sets the interpolation threshold Yth as the pixel output in the examination frame 301. Calculate based on For this reason, even if the light-shielded pixel region 302 is different for each shooting, the specifying unit 123a can accurately specify the light-shielded pixel.

S305〜S308では、特定部123aは、S301〜S304と同様に、同列の画素のうち、検討枠301内の最も外側の遮光画素を判定する。
すなわち、特定部123aは、検討枠301よりも外側の画素303bの1つ内側の画素、つまり検討枠301の最も外側の画素X13を選択する(S305)。
そして、特定部123aは、内側の画素を順次選択して、画素出力を補間閾値Ythと比較して補間閾値Ythよりも小さいか否かを判定し(S307)、画素出力が補間閾値Ythよりも小さいと判定した遮光画素B4を、外側の遮光画素に特定する(S308)。
In S305 to S308, the specifying unit 123a determines the outermost light-shielded pixel in the examination frame 301 among the pixels in the same row, similarly to S301 to S304.
That is, the specifying unit 123a selects a pixel inside one pixel 303b outside the examination frame 301, that is, the outermost pixel X13 of the examination frame 301 (S305).
Then, the specifying unit 123a sequentially selects the inner pixels, compares the pixel output with the interpolation threshold Yth, determines whether or not it is smaller than the interpolation threshold Yth (S307), and the pixel output is smaller than the interpolation threshold Yth. The light-shielding pixel B4 determined to be small is specified as the outer light-shielding pixel (S308).

S309では、特定部123aは、縦方向のスキャンが18列について全て終了したか否かを判定する。特定部123aは、縦方向のスキャンが18列について全て終了したと判定した場合には(S309:YES)、S310に進んでメイン処理のS4に戻り、一方、縦方向のスキャンが全て終了していないと判定した場合には(S309:NO)、S309aに進む。
S309aでは、特定部123aは、他の列を選択して、S309の処理を繰り返す。なお、特定部123aが列を選択する順序は、限定されない。特定部123aは、例えば、時計回りに列を選択してもよいし、検討枠301の上下に同列に配列された2列を順に選択し、左側から右側に順に選択してもよい。
In S309, the specifying unit 123a determines whether or not the vertical scanning has been completed for all 18 columns. If the specifying unit 123a determines that all vertical scans have been completed for 18 columns (S309: YES), the process proceeds to S310 and returns to S4 of the main process, while all vertical scans have been completed. If it is determined that there is not (S309: NO), the process proceeds to S309a.
In S309a, the specifying unit 123a selects another column and repeats the process in S309. Note that the order in which the specifying unit 123a selects a column is not limited. For example, the specifying unit 123a may select the columns clockwise, select two columns arranged in the same column above and below the examination frame 301 in order, and select them sequentially from the left side to the right side.

図3に戻り、S4では、特定部123aは、S3で特定した遮光画素B1及び遮光画素B4を利用して、遮光画素領域302内の縦方向に配列された遮光画素の補間処理を行う。
(S4:補間処理(縦方向))
図5〜図7を参照して、補正部123bの補間処理(縦方向)について説明する。
S401では、補正部123bは、遮光画素B1の1つ内側の画素X11(座標H11,V11)を選択して、記憶部115からその画素出力Y11(図7参照)を読み出す。
S402では、補正部123bは、遮光画素B4の1つ外側の画素X12(座標H12,V12)を選択して、記憶部115からその画素出力Y12(図7参照)を読み出す。
Returning to FIG. 3, in S <b> 4, the specifying unit 123 a performs interpolation processing of light-shielded pixels arranged in the vertical direction in the light-shielded pixel region 302 using the light-shielded pixels B <b> 1 and B <b> 4 identified in S <b> 3.
(S4: Interpolation process (vertical direction))
The interpolation processing (vertical direction) of the correction unit 123b will be described with reference to FIGS.
In S401, the correction unit 123b selects the pixel X11 (coordinates H11 and V11) inside the light-shielding pixel B1, and reads out the pixel output Y11 (see FIG. 7) from the storage unit 115.
In S402, the correction unit 123b selects a pixel X12 (coordinates H12, V12) that is one outside of the light-shielding pixel B4, and reads out the pixel output Y12 (see FIG. 7) from the storage unit 115.

S403では、補正部123bは、図7に示すように、V11の出力Y11とV12の出力Y12の間を結ぶ線分Cによって、遮光画素B1〜B4の出力を線形補間する。
遮光画素B1〜B4の出力をそれぞれ出力Y1〜Y4とすれば、補間後の遮光画素B1〜B4の出力Y(Y=Y1〜Y4)は、以下の式1で表すことができる。
Y={(Y11−Y12)×V+(Y12×V11−Y11×V12)}/(V11−V12)・・・式1
In S403, the correction unit 123b linearly interpolates the outputs of the light shielding pixels B1 to B4 with a line segment C connecting the output Y11 of V11 and the output Y12 of V12, as shown in FIG.
If the outputs of the light-shielding pixels B1 to B4 are outputs Y1 to Y4, respectively, the output Y (Y = Y1 to Y4) of the light-shielded pixels B1 to B4 after interpolation can be expressed by the following Expression 1.
Y = {(Y11−Y12) × V + (Y12 × V11−Y11 × V12)} / (V11−V12) Equation 1

例えば、遮光画素B1の出力Y1は、以下のようになる。
Y1={(Y11−Y12)×V1+(Y12×V11−Y11×V12)}/(V11−V12)
遮光画素B1の補間後の画素出力を、図7(a)に破線で示す。
図7(b)に示すように、補正部123bは、式1に基づいて、遮光画素B2〜B4についても同様に補間処理を行い、補間後の画素出力Y2〜Y4を求める。補正部123bは、記憶部115の画素出力を、補間後の出力に置き換えて、S404に進む。
For example, the output Y1 of the light shielding pixel B1 is as follows.
Y1 = {(Y11−Y12) × V1 + (Y12 × V11−Y11 × V12)} / (V11−V12)
The pixel output after interpolation of the light-shielding pixel B1 is shown by a broken line in FIG.
As shown in FIG. 7B, the correction unit 123b similarly performs the interpolation process on the light-shielded pixels B2 to B4 based on Equation 1, and obtains pixel outputs Y2 to Y4 after interpolation. The correcting unit 123b replaces the pixel output of the storage unit 115 with the output after interpolation, and proceeds to S404.

S404では、補正部123bは、縦方向18列全ての補間処理が終了したか否かを判定する。補正部123bは、18列全てが終了したと判定した場合には(S404:YES)、S405に進んでメイン処理のS5に戻り、一方、全て終了していないと判定した場合には(S404:NO)、S404aに進む。
S404aでは、補正部123bは、他の列に移動して、S401からの補間処理を繰り返す。
In S404, the correction unit 123b determines whether or not the interpolation processing has been completed for all 18 columns in the vertical direction. When it is determined that all 18 columns have been completed (S404: YES), the correction unit 123b proceeds to S405 and returns to S5 of the main process, whereas when it is determined that all have not been completed (S404: NO), the process proceeds to S404a.
In S404a, the correction unit 123b moves to another column and repeats the interpolation processing from S401.

[横方向スキャン]
図3に戻り、S5では、補正部123bは、遮光画素特定処理(横方向)を行う。補正部123bは、検討枠301のうち、横方向(行方向)に配列された画素の画素出力を横方向にスキャンする。
図8に太線で示す範囲404のように、この例では、横方向に配列された画素は、左側及び右側に各3行、合計6行である。
補正部123bは、遮光画素特定処理(横方向)を、S3の遮光画素特定処理(縦方向)と同様に行う。つまり、補正部123bは、画素403aから順次外側の画素を選択し、その画素出力と補間閾値Ythとを比較して、内側の遮光画素B5を特定する。また、補正部123bは、画素403bから順次内側の画素を選択し、その画素出力と補間閾値Ythとを比較して、外側の遮光画素B8を特定する。
補正部123bは、横方向のスキャンが6行について全て終了すると、S6に進む。
[Horizontal scan]
Returning to FIG. 3, in S <b> 5, the correction unit 123 b performs a light-shielded pixel specifying process (horizontal direction). The correction unit 123b scans the pixel outputs of the pixels arranged in the horizontal direction (row direction) in the horizontal direction (row direction) in the examination frame 301.
In this example, as shown in a thick line 404 in FIG. 8, the pixels arranged in the horizontal direction are 3 rows each on the left side and the right side, for a total of 6 rows.
The correcting unit 123b performs the light-shielded pixel specifying process (horizontal direction) in the same manner as the light-shielded pixel specifying process (vertical direction) in S3. In other words, the correction unit 123b sequentially selects the outer pixels from the pixel 403a, compares the pixel output with the interpolation threshold Yth, and specifies the inner light-shielding pixel B5. The correcting unit 123b sequentially selects inner pixels from the pixel 403b, compares the pixel output with the interpolation threshold Yth, and specifies the outer light-shielding pixel B8.
The correction unit 123b proceeds to S6 when the horizontal scanning is completed for all the six rows.

S6では、補正部123bは、補間処理(横方向)を行う。
補正部123bは、補間処理(横方向)を、S4の補間処理(縦方向)と同様に行う。
図8の例では、遮光画素B5の1つ内側の画素X21(座標H21,V21)、遮光画素B8の1つ外側の画素X22(座標H22,V22)の画素出力を記憶部115から読み出す。これらの画素出力がそれぞれ出力Y21,Y21である場合、遮光画素B(B=B5〜B8)の補間後の出力Y(Y=Y5〜Y8)は、式1と同様にして、以下の式2で表すことができる。
Y={(Y21−Y22)×H+(Y22×H21−Y21×H22)}/(H21−H22)・・・式2
例えば、遮光画素B5の補間後の出力Y5は、以下のようになる。
Y5={(Y21−Y22)×H5+(Y22×H21−Y21×H22)}/(H21−H22)
補正部123bは、記憶部115の画素出力を、補間後の画素出力に置き換える。
補正部123bは、上記補間処理を左右方向の6行全てについて終了すると、S7に進む。
In S6, the correction unit 123b performs an interpolation process (horizontal direction).
The correcting unit 123b performs the interpolation process (horizontal direction) in the same manner as the interpolation process (vertical direction) in S4.
In the example of FIG. 8, the pixel output of the pixel X21 (coordinates H21, V21) one inner side of the light shielding pixel B5 and the pixel X22 (coordinates H22, V22) one outer side of the light shielding pixel B8 is read from the storage unit 115. When these pixel outputs are outputs Y21 and Y21, respectively, the output Y (Y = Y5 to Y8) after interpolation of the light-shielded pixels B (B = B5 to B8) is the same as Expression 1 below. Can be expressed as
Y = {(Y21−Y22) × H + (Y22 × H21−Y21 × H22)} / (H21−H22) Equation 2
For example, the output Y5 after interpolation of the light shielding pixel B5 is as follows.
Y5 = {(Y21−Y22) × H5 + (Y22 × H21−Y21 × H22)} / (H21−H22)
The correction unit 123b replaces the pixel output of the storage unit 115 with the pixel output after interpolation.
When the correction unit 123b finishes the interpolation processing for all six rows in the left-right direction, the correction unit 123b proceeds to S7.

[コーナ部スキャン]
S7では、図9に示すように、補間処理部123は、検討枠301のコーナ部504の画素の補間を行う。
図9には、S4,S6で縦方向及び左右方向の補間が終わっている画素を空白で表す。
図9に太線で示すように、コーナ部504に配列された画素とは、検討枠301内の画素のうち4つのコーナ部504に配置され、前述した縦方向及び横方向の画素に含まれないものをいう。
[Corner scan]
In S <b> 7, as illustrated in FIG. 9, the interpolation processing unit 123 performs pixel interpolation of the corner portion 504 of the examination frame 301.
In FIG. 9, pixels for which vertical and horizontal interpolations have been completed in S4 and S6 are represented by blanks.
As shown by a thick line in FIG. 9, the pixels arranged in the corner portion 504 are arranged in the four corner portions 504 among the pixels in the examination frame 301 and are not included in the above-described vertical and horizontal pixels. Say things.

特定部123aは、コーナ部504よりも1つ右側に配置された補間済みの画素X31を選択する。そして、特定部123aは、画素X31よりも1つ外側の画素、つまりコーナ部504の最も内側の画素B9を選択する。
そして、特定部123aは、S3の遮光画素特定処理(縦方向)と同様に、画素401aから順次外側の画素の画素出力と、補間閾値Ythとを比較して遮光画素を特定し、また、画素401bから順次内側の画素の画素出力と、補間閾値Ythとを比較し遮光画素を特定する。
図9の例では、特定部123aは、内側の遮光画素を遮光画素B9と特定し、外側の遮光画素を遮光画素B13と特定する。
The specifying unit 123a selects the interpolated pixel X31 arranged on the right side of the corner unit 504. Then, the specifying unit 123a selects the pixel one outer side than the pixel X31, that is, the innermost pixel B9 of the corner unit 504.
Then, the specifying unit 123a specifies the light-shielded pixel by comparing the pixel output of the pixels sequentially from the pixel 401a with the interpolation threshold Yth in the same manner as the light-shielded pixel specifying process (vertical direction) in S3. The pixel output of the inner pixel sequentially from 401b is compared with the interpolation threshold Yth to identify the light-shielded pixel.
In the example of FIG. 9, the specifying unit 123a specifies the inner light-shielding pixel as the light-shielding pixel B9 and the outer light-shielding pixel as the light-shielding pixel B13.

S8では、補正部123bは、補間処理(コーナ部)を行う。
補正部123bは、補間処理(コーナ部)を、S4の補間処理(縦方向)と同様に、線形補間によって行う。
補正部123bは、記憶部115の画素出力を、補間後の出力に置き換える。
なお、実施形態では、コーナ部504の補間処理を横方向のスキャンによって行うが、縦方向スキャンによって行ってもよい。
補正部123bは、上記補間処理をコーナ部504全てについて終了すると、S9に進む。
In S8, the correction unit 123b performs an interpolation process (corner unit).
The correction unit 123b performs the interpolation process (corner unit) by linear interpolation in the same manner as the interpolation process (vertical direction) in S4.
The correction unit 123b replaces the pixel output of the storage unit 115 with the output after interpolation.
In the embodiment, the interpolation processing of the corner unit 504 is performed by horizontal scanning, but may be performed by vertical scanning.
When the correction unit 123b completes the interpolation processing for all the corner units 504, the correction unit 123b proceeds to S9.

S9では、画素出力抽出部124は、補間処理によって置き換えられた画素出力を、記憶部115から抽出する。そして、撮影条件設定部125は、抽出した画素出力に基づいて、シーン解析を行う。抽出した画素出力は、既にAF枠201が補間されている画像なので、撮影条件設定部125は、精度よくシーン解析を行うことができる。   In S <b> 9, the pixel output extraction unit 124 extracts the pixel output replaced by the interpolation process from the storage unit 115. Then, the shooting condition setting unit 125 performs scene analysis based on the extracted pixel output. Since the extracted pixel output is an image in which the AF frame 201 has already been interpolated, the imaging condition setting unit 125 can perform scene analysis with high accuracy.

S10では、撮影条件設定部125は、シーン解析結果を用いて、公知の自動露出及びオートフォーカス処理を行う。
S11では、制御部120は、レリーズボタンの出力に基づいて、レリーズ操作されたか否かを判定する。制御部120は、レリーズ操作されたと判定した場合には(S11:YES)、S12に進み、一方、レリーズ操作されていないと判定した場合には(S11:NO)、S1からの処理を繰り返す。
S12では、制御部120は、第1撮像部105により撮像を行う。
S13では、制御部120は、電源スイッチ等が操作されることにより、撮影終了か否かを判断する。制御部120は、撮影終了と判断した場合には(S13:YES)、S14に進んで一連の処理を終了し、一方、撮影終了ではないと判定した場合には(S13:NO)、S1からの処理を繰り返す。
In S10, the photographing condition setting unit 125 performs known automatic exposure and autofocus processing using the scene analysis result.
In S11, the control unit 120 determines whether or not a release operation has been performed based on the output of the release button. When it is determined that the release operation has been performed (S11: YES), the control unit 120 proceeds to S12. On the other hand, when it is determined that the release operation has not been performed (S11: NO), the processing from S1 is repeated.
In S <b> 12, the control unit 120 performs imaging with the first imaging unit 105.
In S <b> 13, the control unit 120 determines whether or not shooting is finished by operating a power switch or the like. If the control unit 120 determines that the shooting has been completed (S13: YES), the process proceeds to S14 to end the series of processes. On the other hand, if it is determined that the shooting has not ended (S13: NO), the control unit 120 starts from S1. Repeat the process.

以上説明したように、本実施形態のカメラ100は、以下の効果を奏する。
(1)第2撮像部112の出力に基づいて遮光画素を特定してその出力を補正するので、被写界の明るさ等に応じて遮光画素領域302が変化しても、遮光画素を精度よく特定し、露出条件、シーン設定等の撮影条件を精度よく設定できる。
(2)第2撮像部112の画素が行列状に配置されているので、AF枠201のような二次元のパターン形状を配置できる。
(3)そして、行列状に配置された配置された画素信号を検出して、AF枠201により遮光された遮光画素を特定するので、二次元のパターン形状であっても、遮光画素を特定できる。また、パターンが複雑な形状であっても特定できる。
As described above, the camera 100 of the present embodiment has the following effects.
(1) Since the light-shielded pixel is specified based on the output of the second imaging unit 112 and the output is corrected, the light-shielded pixel is accurate even if the light-shielded pixel region 302 changes according to the brightness of the object scene or the like. It can be specified well and shooting conditions such as exposure conditions and scene settings can be set accurately.
(2) Since the pixels of the second imaging unit 112 are arranged in a matrix, a two-dimensional pattern shape such as the AF frame 201 can be arranged.
(3) Since the pixel signals arranged in a matrix are detected and the light-shielded pixels shielded by the AF frame 201 are identified, the light-shielded pixels can be identified even in a two-dimensional pattern shape. . Moreover, even if a pattern is a complicated shape, it can identify.

(4)検討枠301の端部の画素から隣接する画素を順次検出して、AF枠201により遮光された画素を特定するので、第2撮像部112全体をスキャンする必要がないので、処理が簡単である。
(5)検出された画素信号が補間閾値Yth未満のときに、AF枠201により遮光された遮光画素であると特定するので、遮光画素の特定が容易である。また、補間閾値Ythを検討枠301近傍の画素の画素出力に基づいて決定するので、実際の被写界の輝度等に応じて、適切な補間閾値Ythに設定できる。
(6)遮光画素に隣接し補間閾値Yth以上と判定された画素の画素出力に基づいて補間するので、遮光画素の画素出力を、実際の被写体情報に近い出力に補正できる。
(7)遮光画素の画素出力を線形補間するので、処理が簡単である。
(4) Since adjacent pixels are sequentially detected from the pixels at the end of the examination frame 301 and the pixels shielded from light by the AF frame 201 are specified, it is not necessary to scan the entire second imaging unit 112. Simple.
(5) When the detected pixel signal is less than the interpolation threshold Yth, the pixel is identified as a light-shielded pixel shielded by the AF frame 201, so that the light-shielded pixel can be easily identified. Further, since the interpolation threshold Yth is determined based on the pixel output of the pixels in the vicinity of the examination frame 301, it can be set to an appropriate interpolation threshold Yth according to the actual luminance of the object scene.
(6) Since interpolation is performed based on the pixel output of the pixel adjacent to the light-shielded pixel and determined to be equal to or greater than the interpolation threshold Yth, the pixel output of the light-shielded pixel can be corrected to an output close to actual subject information.
(7) Since the pixel output of the light-shielded pixel is linearly interpolated, the processing is simple.

(8)コーナ部504は、縦方向(又は横方向)の補間処理を行った後、横方向(又は縦方向)にスキャンして補間処理を行うので、コーナ部504を有するAF枠201に対しても、精度よく補間できる。 (8) The corner unit 504 performs the interpolation process in the horizontal direction (or the vertical direction) after performing the interpolation process in the vertical direction (or the horizontal direction), and therefore performs the interpolation process on the AF frame 201 having the corner unit 504. However, it can be interpolated with high accuracy.

(第2実施形態)
次に、本発明を適用した第2実施形態について説明する。
なお、以下の説明及び図面において、前述した第1実施形態と同様の機能を果たす部分には、同一の符号又は末尾に同一の符号を付して、重複する説明を適宜省略する。
図10は、第2実施形態のカメラの遮光画素特定処理及び補間処理を説明する図である。
第2実施形態では、補間処理部(図1に示す補間処理部123参照)は、遮光画素領域602の幅Dが一定であるとして、以下の手順で遮光画素特定処理及び補間処理を行う。
(Second Embodiment)
Next, a second embodiment to which the present invention is applied will be described.
Note that, in the following description and drawings, the same reference numerals or the same reference numerals are given to the portions that perform the same functions as those in the first embodiment described above, and overlapping descriptions will be omitted as appropriate.
FIG. 10 is a diagram for explaining the shading pixel specifying process and the interpolation process of the camera of the second embodiment.
In the second embodiment, the interpolation processing unit (see the interpolation processing unit 123 shown in FIG. 1) performs the light-shielded pixel specifying process and the interpolation process according to the following procedure, assuming that the width D of the light-shielded pixel region 602 is constant.

(1)補間処理部は、画素603a及び画素603b間で1度だけ遮光画素特定処理を行い、遮光画素B61,B64を決定する。
(2)補間処理部は、遮光画素B61の内側の画素X61を含む周領域605、遮光画素B64の外側の画素X62を含む周領域606を求める。
(3)補間処理部は、その他の列及び行について遮光画素特定処理することなく、周領域605及び周領域606間の領域を、遮光画素領域602に設定する。
(4)補間処理部は、周領域605内の画素出力及び周領域606内の画素出力を記憶部115から読み出して、第1実施形態と同様に、補間処理を行う。
(5)その後の処理は、第1実施形態と同様である(図3のS7以降参照)。
(1) The interpolation processing unit performs the light shielding pixel specifying process only once between the pixel 603a and the pixel 603b, and determines the light shielding pixels B61 and B64.
(2) The interpolation processing unit obtains a peripheral region 605 including the pixel X61 inside the light-shielded pixel B61 and a peripheral region 606 including the pixel X62 outside the light-shielded pixel B64.
(3) The interpolation processing unit sets the area between the peripheral area 605 and the peripheral area 606 as the light-shielded pixel area 602 without performing the light-shielded pixel specifying process for the other columns and rows.
(4) The interpolation processing unit reads out the pixel output in the peripheral region 605 and the pixel output in the peripheral region 606 from the storage unit 115, and performs the interpolation processing as in the first embodiment.
(5) Subsequent processing is the same as that of the first embodiment (see S7 and thereafter in FIG. 3).

以上説明したように、本実施形態のカメラは、遮光画素特定処理を簡単に処理できる。AF枠は、明るさに応じて影響を受ける領域が変化するが、その変化する度合いは、ほぼ一定であると考えられる。このため、本実施形態のように遮光画素特定処理を行っても、精度よい特定処理を期待できる。   As described above, the camera of the present embodiment can easily perform the shading pixel specifying process. In the AF frame, the affected area changes according to the brightness, but the degree of change is considered to be substantially constant. For this reason, even if the shading pixel specifying process is performed as in the present embodiment, it is possible to expect an accurate specifying process.

なお、補間処理部は、遮光画素特定処理を上下左右の4カ所についてそれぞれ行い、その結果に基づいて、補間処理を左右上下のそれぞれの領域に対して行ってもよい。これにより、補間処理部は、遮光画素特定処理及び補間処理を、より精度よく行うことができる。   Note that the interpolation processing unit may perform the shading pixel specifying process at each of the upper, lower, left, and right four locations, and may perform the interpolation process on each of the left, right, upper, and lower regions based on the result. Thereby, the interpolation process part can perform a shading pixel specific process and an interpolation process more accurately.

以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限定されるものではなく、後述する変形形態のように種々の変形や変更が可能であって、それらも本発明の技術的範囲内である。また、実施形態に記載した効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、実施形態に記載したものに限定されない。なお、前述した実施形態及び後述する変形形態は、適宜組み合わせて用いることもできるが、詳細な説明は省略する。   Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications and changes can be made as in the modifications described later, and these are also included in the present invention. Within the technical scope. In addition, the effects described in the embodiments are merely a list of the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the embodiments. It should be noted that the above-described embodiment and modifications described later can be used in appropriate combination, but detailed description thereof is omitted.

(変形形態)
(1)実施形態において、表示部は、AF枠を表示する例を示したが、これに限定されない。例えば、表示部は、電池残量を示すマーク等、他のパターンを表示してもよい。
(Deformation)
(1) In the embodiment, the example in which the display unit displays the AF frame has been described, but the present invention is not limited to this. For example, the display unit may display other patterns such as a mark indicating the remaining battery level.

(2)実施形態において、AF枠は、表示部に表示される例を示したが、これに限定されない。例えば、ファインダスクリーンに設けられた刻印等でもよい。 (2) In the embodiment, the example in which the AF frame is displayed on the display unit has been shown, but the present invention is not limited to this. For example, a stamp provided on the finder screen may be used.

(3)実施形態において、カメラは、一眼レフレックスである例を示したが、これに限定されない。例えば、撮像素子部として、第1撮像素子のみを有するコンパクトカメラであってもよい。この場合には、第1撮像素子の画素出力を利用して、遮光画素特定処理及び補間処理をすればよい。 (3) In the embodiment, an example in which the camera is a single-lens reflex is shown, but the present invention is not limited to this. For example, the image sensor unit may be a compact camera having only the first image sensor. In this case, the shading pixel specifying process and the interpolation process may be performed using the pixel output of the first image sensor.

(4)実施形態において、第2撮像部の撮像情報は、主に、撮影条件を設定するために利用する例を説明したが、これに限定されない。例えば、ライブビューモード時には、第2撮像部が取得した撮像情報を、被写体の観察用にモニタ表示してもよい。 (4) In the embodiment, the example in which the imaging information of the second imaging unit is mainly used for setting the imaging condition has been described, but the embodiment is not limited thereto. For example, in the live view mode, the imaging information acquired by the second imaging unit may be displayed on a monitor for observation of the subject.

(5)実施形態において、複数の画素を縦方向(列方向)及び横方向(行方向)にスキャンする例を示したが、これに限定されない。複数の画素の出力の少なくとも1列または1行から出力された画素信号を検出して、遮光画素を特定してもよい。 (5) In the embodiment, an example in which a plurality of pixels are scanned in the vertical direction (column direction) and the horizontal direction (row direction) has been described, but the present invention is not limited to this. A light-shielded pixel may be specified by detecting a pixel signal output from at least one column or one row of outputs of a plurality of pixels.

100…カメラ 109…表示部 112…第2撮像部 115…記憶部 115a…検討枠記憶部 120…制御部 122…第2撮像制御部 123…補間処理部 123a…特定部 123b…補正部 124…画素出力抽出部 125…撮影条件設定部 201…AF枠 301…検討枠 302,602…遮光画素領域   DESCRIPTION OF SYMBOLS 100 ... Camera 109 ... Display part 112 ... 2nd imaging part 115 ... Memory | storage part 115a ... Examination frame memory | storage part 120 ... Control part 122 ... 2nd imaging control part 123 ... Interpolation process part 123a ... Specific | specification part 123b ... Correction | amendment part 124 ... Pixel Output extraction unit 125 ... shooting condition setting unit 201 ... AF frame 301 ... examination frame 302, 602 ... shaded pixel region

Claims (8)

被写体光を結像させる撮影光学系の光路中に配置され、所定のパターンを表示する表示部と、
複数の画素を有し、前記表示部を介して結像された前記被写体光に応じた画素信号を出力する撮像部と、
前記複数の画素から出力された前記画素信号を検出して、前記パターンにより遮光された画素を特定する特定部と、
前記特定部により特定された画素から出力された画素信号を補正する補正部と、
を備えることを特徴とする撮像装置。
A display unit arranged in an optical path of a photographing optical system for forming an image of subject light, and displaying a predetermined pattern;
An imaging unit having a plurality of pixels and outputting a pixel signal corresponding to the subject light imaged through the display unit;
A specific unit that detects the pixel signals output from the plurality of pixels and identifies pixels that are shielded from light by the pattern;
A correction unit that corrects a pixel signal output from the pixel specified by the specifying unit;
An imaging apparatus comprising:
請求項1に記載の撮像装置において、
前記複数の画素は、行列状に配置されていること
を特徴とする撮像装置。
The imaging device according to claim 1,
The plurality of pixels are arranged in a matrix form.
請求項2に記載の撮像装置において、
前記特定部は、前記複数の画素のうち、少なくとも1列または1行から出力された画素信号を検出して、前記パターンにより遮光された画素を特定すること
を特徴とする撮像装置。
The imaging device according to claim 2,
The specifying unit detects a pixel signal output from at least one column or row among the plurality of pixels, and specifies a pixel shielded from light by the pattern.
請求項1から請求項3のいずれか1項に記載の撮像装置において、
前記パターンにより遮光された画素を含むように予め定められた画素領域を記憶する記憶部を備え、
前記特定部は、前記画素領域の端部の画素から隣接する画素を順次検出して、前記パターンにより遮光された画素を特定すること
を特徴とする撮像装置。
In the imaging device according to any one of claims 1 to 3,
A storage unit for storing a predetermined pixel region so as to include pixels shielded from light by the pattern;
The specifying unit sequentially detects adjacent pixels from pixels at an end of the pixel region, and specifies pixels shielded from light by the pattern.
請求項1から請求項4のいずれか1項に記載の撮像装置において、
前記特定部は、検出された画素信号が所定閾値未満のときに、前記パターンにより遮光された画素であると特定すること
を特徴とする撮像装置。
In the imaging device according to any one of claims 1 to 4,
The specifying unit specifies that the pixel is shielded by the pattern when the detected pixel signal is less than a predetermined threshold.
請求項5に記載の撮像装置において、
前記補正部は、前記特定部により特定された画素に隣接する前記所定閾値以上の画素信号を出力する画素に基づいて、補正すること
を特徴とする撮像装置。
The imaging apparatus according to claim 5,
The imaging device, wherein the correction unit performs correction based on a pixel that outputs a pixel signal equal to or greater than the predetermined threshold adjacent to the pixel specified by the specifying unit.
請求項6に記載の撮像装置において、
前記補正部は、前記特定部により特定された画素を線形補間により補正すること
を特徴とする撮像装置。
The imaging device according to claim 6,
The correction unit corrects the pixel specified by the specifying unit by linear interpolation.
請求項1から請求項7のいずれか1項に記載の撮像装置において、
前記パターンは、測距範囲を表示するパターンであること
を特徴とする撮像装置。
In the imaging device according to any one of claims 1 to 7,
The image pickup apparatus, wherein the pattern is a pattern for displaying a distance measurement range.
JP2011127324A 2011-06-07 2011-06-07 Imaging apparatus Withdrawn JP2012256964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011127324A JP2012256964A (en) 2011-06-07 2011-06-07 Imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011127324A JP2012256964A (en) 2011-06-07 2011-06-07 Imaging apparatus

Publications (1)

Publication Number Publication Date
JP2012256964A true JP2012256964A (en) 2012-12-27

Family

ID=47528132

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011127324A Withdrawn JP2012256964A (en) 2011-06-07 2011-06-07 Imaging apparatus

Country Status (1)

Country Link
JP (1) JP2012256964A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017057294A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Imaging device and focus detection device
WO2017057293A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Subject detection device and imaging device
WO2017057295A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Control device and imaging device
WO2017057292A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Imaging device and image processing device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017057294A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Imaging device and focus detection device
WO2017057293A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Subject detection device and imaging device
WO2017057295A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Control device and imaging device
WO2017057292A1 (en) * 2015-09-30 2017-04-06 株式会社ニコン Imaging device and image processing device
JPWO2017057292A1 (en) * 2015-09-30 2018-07-12 株式会社ニコン Imaging apparatus and image processing apparatus
JPWO2017057293A1 (en) * 2015-09-30 2018-07-12 株式会社ニコン Subject detection device and imaging device
JPWO2017057295A1 (en) * 2015-09-30 2018-07-19 株式会社ニコン Control device and imaging device
JPWO2017057294A1 (en) * 2015-09-30 2018-09-06 株式会社ニコン Imaging device and focus detection device

Similar Documents

Publication Publication Date Title
EP2401860B1 (en) Imaging apparatus, image display apparatus, imaging method, method of displaying image and method of correcting position of focusing-area frame
US9538085B2 (en) Method of providing panoramic image and imaging device thereof
US8937662B2 (en) Image processing device, image processing method, and program
JP6752681B2 (en) Display control device, control method and program of display control device, and storage medium
KR20110105345A (en) Camera
US9088710B2 (en) Image processing apparatus, and method, and recording medium recording image processing program for processing output pixels utilized as phase difference detecting elements
US20120327259A1 (en) Image processing device, image processing method, image capturing device, and program
JP2018107526A (en) Image processing device, imaging apparatus, image processing method and computer program
JP2008252522A (en) Camera
US20150319358A1 (en) Imaging apparatus and image correction method, and image processing apparatus and image processing method
US20130083169A1 (en) Image capturing apparatus, image processing apparatus, image processing method and program
JP2012256964A (en) Imaging apparatus
JP5701942B2 (en) Imaging apparatus, camera system, and image processing method
JP6066866B2 (en) Image processing apparatus, control method thereof, and control program
CN103460702B (en) Color image capturing element and image capturing device
JP5363872B2 (en) Image correction apparatus and program thereof
JP6012396B2 (en) Image processing apparatus, image processing method, and program.
JP6576114B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP5444928B2 (en) Photometric device and imaging device
JP6641485B2 (en) Position specifying device and position specifying method
JP6547742B2 (en) Imaging control apparatus, imaging apparatus and imaging control method
JP2008235958A (en) Imaging apparatus
JP6016567B2 (en) Correlation calculation device, imaging device, correlation calculation method, program, and storage medium
JP7458769B2 (en) Image processing device, imaging device, image processing method, program and recording medium
US20220232166A1 (en) Range measurement apparatus, storage medium and range measurement method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140902