[go: up one dir, main page]

JP5970871B2 - Electronic camera - Google Patents

Electronic camera Download PDF

Info

Publication number
JP5970871B2
JP5970871B2 JP2012049987A JP2012049987A JP5970871B2 JP 5970871 B2 JP5970871 B2 JP 5970871B2 JP 2012049987 A JP2012049987 A JP 2012049987A JP 2012049987 A JP2012049987 A JP 2012049987A JP 5970871 B2 JP5970871 B2 JP 5970871B2
Authority
JP
Japan
Prior art keywords
image
correction
unit
processing unit
subject
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
JP2012049987A
Other languages
Japanese (ja)
Other versions
JP2013187660A (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 JP2012049987A priority Critical patent/JP5970871B2/en
Publication of JP2013187660A publication Critical patent/JP2013187660A/en
Application granted granted Critical
Publication of JP5970871B2 publication Critical patent/JP5970871B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stroboscope Apparatuses (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)

Description

本発明は、電子カメラに関する。   The present invention relates to an electronic camera.

従来、電子カメラにおいて、被写体の明るさに応じて適正な露出量を決定すると共に、プログラム線図に基づいてシャッタ速度を調整して、撮影を行なう技術が一般的に知られている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, in an electronic camera, a technique is generally known in which shooting is performed by determining an appropriate exposure amount according to the brightness of a subject and adjusting a shutter speed based on a program diagram (for example, Patent Document 1).

特許第4586463号Japanese Patent No. 4586463

しかしながら、上記の従来技術では、夜間等の低輝度下の撮影において、露出不足分を撮像素子の感度を示す撮像感度を増加させる露出調整を行なった場合、撮像感度のレベルが上がるに従ってノイズ成分(以下「ノイズ」という。)が増加する問題が生じる。そのため、撮影された画像に対してノイズを除去する画像処理を施す技術が従来から公知である。ただし、上記のノイズを除去する技術では、画面全体の荒れやむら等の画質劣化が生じやすくなるという新たな問題が生じ、鑑賞上好ましい画像が得られなくなるおそれが生じる。また、撮影後の画像に対しては、撮像感度のレベルを変更するような画像処理を行なうことが困難であるため、撮像感度のレベルについては、慎重に選択することが望ましい。   However, in the above-described conventional technique, when exposure adjustment is performed to increase the imaging sensitivity indicating the sensitivity of the image sensor in the case of shooting at low brightness such as at night, noise components ( (Hereinafter referred to as “noise”). Therefore, a technique for performing image processing for removing noise on a photographed image is conventionally known. However, the above-described technology for removing noise causes a new problem that image quality deterioration such as roughness and unevenness of the entire screen is likely to occur, and there is a possibility that an image preferable for viewing cannot be obtained. Further, since it is difficult to perform image processing for changing the imaging sensitivity level on the image after shooting, it is desirable to carefully select the imaging sensitivity level.

そこで、本発明は、上記事情に鑑み、低輝度下の撮影であっても、鑑賞上好ましい画像を取得する電子カメラを提供することを目的とする。   SUMMARY OF THE INVENTION In view of the above circumstances, an object of the present invention is to provide an electronic camera that obtains a favorable image for viewing even when shooting under low luminance.

本発明の一態様では、電子カメラは、被写体からの光を撮像して画像データを生成する撮像素子と、被写体を照明する光を発する発光部と、撮像素子で生成された画像データのノイズを第一の処理で除去するノイズ除去処理部と、ノイズ除去処理部でノイズ除去された画像データを第二の処理で補正する補正処理部と、被写体の明るさと発光部の発光の有無とに基づいて、第一の処理と第二の処理とを設定する設定部とを備え、補正処理部は、ノイズ除去処理部でノイズ除去された画像データのノイズ除去に基づく画質劣化を補正するIn one embodiment of the present invention, an electronic camera captures noise from an image sensor that captures light from a subject and generates image data, a light emitting unit that emits light that illuminates the subject, and image data generated by the image sensor. Based on the noise removal processing unit to be removed in the first processing, the correction processing unit to correct the image data from which noise has been removed in the noise removal processing unit in the second processing, the brightness of the subject and the presence or absence of light emission from the light emitting unit And a setting unit that sets the first process and the second process, and the correction processing unit corrects image quality degradation based on noise removal of the image data from which noise has been removed by the noise removal processing unit .

また、本発明の別態様として、以下のものがある。
第1の技術に係る電子カメラは、撮像素子と、被写体輝度検出部と、第1設定部と、第2設定部と、ノイズ除去処理部と、補正処理部とを備える。撮像素子は、被写体の像を撮像して画像を生成する。被写体輝度検出部は、被写体輝度を検出する。第1設定部は、被写体輝度が予め設定した基準値よりも低輝度である場合、その低輝度下での撮影を補う設定モードを設定する。第2設定部は、設定モードの設定値に応じて発生する画像データのノイズを除去するための第1パラメータと、ノイズの除去に起因して発生する画質劣化を補正するための第2パラメータとを設定する。ノイズ除去処理部は、設定モード下で撮像素子が生成した記録用画像の画像データのノイズを第1パラメータに基づいて除去する。補正処理部は、記録用画像の画像データの画質劣化を第2パラメータに基づいて補正する。
第2の技術に係る電子カメラは、撮像素子と、第1設定部と、第2設定部と、ノイズ除去処理部と、補正処理部とを備える。撮像素子は、被写体の像を撮像して画像を生成する。第1設定部は、被写体輝度が予め設定した基準値よりも低輝度下での撮影を補うための設定モードをユーザ入力により設定する。第2設定部は、設定モードの設定値に応じて発生する画像データのノイズを除去するための第1パラメータと、ノイズの除去に起因して発生する画質劣化を補正するための第2パラメータとを設定する。ノイズ除去処理部は、設定モード下で撮像素子が生成した記録用画像の画像データのノイズを第1パラメータに基づいて除去する。補正処理部は、記録用画像の画像データの画質劣化を第2パラメータに基づいて補正する。
As another aspect of the present invention, there are the following.
An electronic camera according to a first technique includes an imaging device, a subject luminance detection unit, a first setting unit, a second setting unit, a noise removal processing unit, and a correction processing unit. The imaging element captures an image of a subject and generates an image. The subject brightness detection unit detects the subject brightness. When the subject brightness is lower than a preset reference value, the first setting unit sets a setting mode that supplements shooting under the low brightness. The second setting unit includes a first parameter for removing noise of the image data generated according to the setting value of the setting mode, and a second parameter for correcting image quality degradation caused by noise removal. Set. The noise removal processing unit removes noise in the image data of the recording image generated by the image sensor under the setting mode based on the first parameter. The correction processing unit corrects the image quality deterioration of the image data of the recording image based on the second parameter.
The electronic camera according to the second technique includes an imaging device, a first setting unit, a second setting unit, a noise removal processing unit, and a correction processing unit. The imaging element captures an image of a subject and generates an image. The first setting unit sets, by user input, a setting mode for supplementing shooting under a luminance lower than the reference value set in advance. The second setting unit includes a first parameter for removing noise of the image data generated according to the setting value of the setting mode, and a second parameter for correcting image quality degradation caused by noise removal. Set. The noise removal processing unit removes noise in the image data of the recording image generated by the image sensor under the setting mode based on the first parameter. The correction processing unit corrects the image quality deterioration of the image data of the recording image based on the second parameter.

第3の技術は、第1又は第2の技術において、設定モードは、撮像素子の感度を示す撮像感度の設定を優先する撮像感度優先モードである。設定値は、撮像感度のレベルを示す値である。 The third technique is an imaging sensitivity priority mode in which the setting mode in the first or second technique prioritizes setting of the imaging sensitivity indicating the sensitivity of the imaging element. The set value is a value indicating the level of imaging sensitivity.

第4の技術は、第1又は第2の技術において、設定モードは、画像データの画素値を階調圧縮してダイナミックレンジを広げる処理を優先する階調圧縮優先モードである。設定値は、階調圧縮のレベルを示す値である。 In a fourth technique , in the first or second technique , the setting mode is a gradation compression priority mode that prioritizes a process of expanding the dynamic range by compressing the pixel value of the image data. Setting value is a value indicating the level of gradation compression.

第5の技術は、第1から第4の何れか1の技術において、第1パラメータは、暗電流補正に関するパラメータである。第2パラメータは、コントラスト補正、輪郭補正、彩度補正、階調圧縮補正のうち、少なくとも1つの補正に関するパラメータを含む。 In the fifth technique , in any one of the first to fourth techniques , the first parameter is a parameter related to dark current correction. The second parameter includes a parameter related to at least one correction among contrast correction, contour correction, saturation correction, and gradation compression correction.

第6の技術は、第1から第5の何れか1の技術において、閃光発光部をさらに備える。閃光発光部は、被写体に向けて閃光を発光する。第2設定部は、閃光の発光量に応じて、第1パラメータと、第2パラメータとを設定する。 A sixth technique is the one of the first to fifth techniques , further comprising a flash light emitting unit. The flash light emitting unit emits flash light toward the subject. The second setting unit sets the first parameter and the second parameter according to the flash emission amount.

本発明の電子カメラは、低輝度下の撮影であっても、鑑賞上好ましい画像を取得できる。   The electronic camera of the present invention can obtain a favorable image for viewing even when shooting under low luminance.

電子カメラ1の要部の構成例を示す側面図Side view showing a configuration example of a main part of the electronic camera 1 図1に示す電子カメラ1及び閃光装置150の内部構成例を示す図The figure which shows the internal structural example of the electronic camera 1 and the flash apparatus 150 which are shown in FIG. 撮像感度優先モードにおいて使用されるテーブルの一例を示す図The figure which shows an example of the table used in imaging sensitivity priority mode 階調圧縮優先モードにおいて使用されるテーブルの一例を示す図The figure which shows an example of the table used in gradation compression priority mode 設定モードの選択処理を説明する図The figure explaining setting mode selection processing 電子カメラ1の撮影動作の一例を示すフローチャートThe flowchart which shows an example of imaging | photography operation | movement of the electronic camera 1 第2実施形態で使用されるテーブルの一例を示す図The figure which shows an example of the table used by 2nd Embodiment. 第2実施形態の電子カメラ1の撮影動作の一例を示すフローチャートThe flowchart which shows an example of imaging | photography operation | movement of the electronic camera 1 of 2nd Embodiment.

(第1実施形態)
以下、図面に基づいて本発明の実施の形態を詳細に説明する。図1は、電子カメラ1の要部の構成例を示す側面図である。電子カメラ1は、例えば一眼レフレックスタイプの電子カメラであり、カメラ本体100と撮影レンズユニット50とを備える。撮影レンズユニット50は、被写体光をカメラ本体100に導くために、カメラ本体100の前面に形成されたレンズマウント100aに着脱自在に取り付けられる。なお、カメラ本体100と撮影レンズユニット50とは、撮影レンズユニット50の装着時にレンズマウント100aの接点を介して電気的に接続される。
(First embodiment)
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a side view illustrating a configuration example of a main part of the electronic camera 1. The electronic camera 1 is, for example, a single-lens reflex type electronic camera, and includes a camera body 100 and a photographing lens unit 50. The taking lens unit 50 is detachably attached to a lens mount 100 a formed on the front surface of the camera body 100 in order to guide subject light to the camera body 100. The camera body 100 and the photographic lens unit 50 are electrically connected via a contact point of the lens mount 100a when the photographic lens unit 50 is mounted.

さらに、被写体に照射光を照射するための閃光装置150が、カメラ本体100の上面に形成されたホットシュー(接続用端子)150aに着脱自在に取り付けられる。なお、カメラ本体100と閃光装置150とは、閃光装置150の装着時にホットシュー(接続用端子)150aの接点を介して電気的に接続される。   Further, a flash device 150 for irradiating the subject with irradiation light is detachably attached to a hot shoe (connection terminal) 150 a formed on the upper surface of the camera body 100. The camera body 100 and the flash device 150 are electrically connected via a contact of a hot shoe (connecting terminal) 150a when the flash device 150 is mounted.

撮影レンズユニット50は、レンズ系51及び絞り52を備える。レンズ系51は、被写体に焦点を合わせるフォーカスレンズや被写体の像をズームするためのズームレンズを含む複数枚のレンズにより構成される。ここでは、説明の便宜上1枚のレンズで図示する。絞り52は、入射光量を絞り羽根の開閉で調整する。   The taking lens unit 50 includes a lens system 51 and a diaphragm 52. The lens system 51 includes a plurality of lenses including a focus lens for focusing on a subject and a zoom lens for zooming the subject image. Here, for convenience of explanation, it is illustrated with one lens. The diaphragm 52 adjusts the amount of incident light by opening and closing the diaphragm blades.

カメラ本体100は、クイックリターンミラー101、サブミラー101a、拡散スクリーン102、コンデンサレンズ103、ペンタダハプリズム104、測光用プリズム105、測光用レンズ106、測光センサ107、接眼レンズ108、焦点検出部110、機械式シャッタ111及び撮像素子10を備える。   The camera body 100 includes a quick return mirror 101, a sub mirror 101a, a diffusion screen 102, a condenser lens 103, a penta roof prism 104, a photometric prism 105, a photometric lens 106, a photometric sensor 107, an eyepiece lens 108, a focus detection unit 110, and a mechanical type. A shutter 111 and an image sensor 10 are provided.

クイックリターンミラー101は、図中一点鎖線で示す光軸OA(Optical Axis)上に回動自在に設けられる。被写体の撮影を行なう場合には、クイックリターンミラー101は、回動により図中点線で示す位置に退避する。この際、サブミラー101aは、折り畳まれる。これにより、被写体からカメラ本体100に入射された被写体光は、撮像素子10に導かれる。   The quick return mirror 101 is rotatably provided on an optical axis OA (Optical Axis) indicated by a one-dot chain line in the drawing. When photographing a subject, the quick return mirror 101 is retracted to a position indicated by a dotted line in the figure by rotation. At this time, the sub mirror 101a is folded. Thereby, the subject light incident on the camera body 100 from the subject is guided to the image sensor 10.

一方、被写体の撮影を行なわない場合、クイックリターンミラー101は、光軸OAに対して斜めの位置に配置される。この場合、クイックリターンミラー101は、レンズ系51を介してカメラ本体100に入射された被写体光を反射させて拡散スクリーン102に導くと共に、サブミラー101aにも導く。   On the other hand, when the subject is not photographed, the quick return mirror 101 is disposed at an oblique position with respect to the optical axis OA. In this case, the quick return mirror 101 reflects the subject light incident on the camera body 100 via the lens system 51 and guides it to the diffusion screen 102 and also guides it to the sub mirror 101a.

拡散スクリーン102は、クイックリターンミラー101により導かれた被写体光を拡散し、拡散させた被写体光をコンデンサレンズ103を介してペンタダハプリズム104に導く。ペンタダハプリズム104は、被写体光を反射させて測光用プリズム105へ導くと共に接眼レンズ108へ導く。また、測光用プリズム105は、測光用レンズ106を介して被写体光を測光センサ107に導く。   The diffusion screen 102 diffuses the subject light guided by the quick return mirror 101 and guides the diffused subject light to the penta roof prism 104 via the condenser lens 103. The penta roof prism 104 reflects subject light and guides it to the photometric prism 105 and guides it to the eyepiece 108. The photometric prism 105 guides subject light to the photometric sensor 107 via the photometric lens 106.

接眼レンズ108は、ペンタダハプリズム104により導かれた被写体光を被写体の像として結像する。撮影者(ユーザ)は、光学式ファインダ(不図示)を介して、接眼レンズ108により結像される被写体の像を見ることで、被写体の構図等を判断できる。   The eyepiece 108 forms the subject light guided by the penta roof prism 104 as a subject image. A photographer (user) can determine the composition of the subject by looking at the image of the subject formed by the eyepiece 108 via an optical viewfinder (not shown).

測光センサ107は、被写体輝度(被写体の明るさ)と被写体の色情報とを検出する。具体的には、測光センサ107は、2次元に配列された画素の画像信号(出力信号)を選択的に読み出す撮像領域を有し、被写体光を撮像領域で測光する。   The photometric sensor 107 detects subject luminance (subject brightness) and subject color information. Specifically, the photometric sensor 107 has an imaging region that selectively reads out image signals (output signals) of pixels arranged in two dimensions, and measures subject light in the imaging region.

或いは、測光センサ107は、閃光(フラッシュ)撮影の予備発光時の被写体からの反射光を撮像領域で測光する。ここで、測光センサ107は、例えば、XYアドレス指定により任意のラインを読み出し可能なCMOS(Complementary Metal Oxide Semiconductor)型の撮像素子を有する。この撮像素子の撮像領域には、被写体の像をカラー検出するために、赤色(R)、緑色(G)、青色(B)の3種類のカラーフィルタが、一例としてベイヤー配列で配置されている。   Alternatively, the photometric sensor 107 measures the reflected light from the subject at the time of preliminary light emission for flash photography in the imaging region. Here, the photometric sensor 107 has, for example, a complementary metal oxide semiconductor (CMOS) type image sensor that can read an arbitrary line by XY addressing. In the image pickup area of the image pickup element, three types of color filters of red (R), green (G), and blue (B) are arranged in a Bayer array as an example in order to detect the color of the subject image. .

なお、本実施形態では、測光センサ107の撮像素子の撮像領域のサイズと、撮像素子10の撮像領域のサイズは同じとする。ただし、撮像素子10の方が測光センサ107の撮像素子よりも高解像度とする。   In the present embodiment, the size of the imaging area of the image sensor of the photometric sensor 107 and the size of the imaging area of the image sensor 10 are the same. However, the image sensor 10 has a higher resolution than the image sensor of the photometric sensor 107.

測光センサ107の撮像素子が出力する画像信号は、測光センサ107内部でゲイン調整やA/D変換等が施されて、後述するRAM(Random Access Memory)13又はCPU(Central Processing Unit)18内のメモリ(不図示)に一時的に記録される。   The image signal output from the image sensor of the photometric sensor 107 is subjected to gain adjustment, A / D conversion, and the like in the photometric sensor 107, and is stored in a RAM (Random Access Memory) 13 or a CPU (Central Processing Unit) 18 to be described later. It is temporarily recorded in a memory (not shown).

レリーズ釦109は、半押し操作(自動露出(AE)やオートフォーカス(AF)等の撮影準備の動作開始)と全押し操作(撮影動作開始)との指示入力とを受け付ける。   The release button 109 accepts instruction inputs for a half-press operation (start of shooting preparation operation such as automatic exposure (AE) and autofocus (AF)) and a full-press operation (start of shooting operation).

焦点検出部110は、例えば、位相差方式の焦点検出を行ない、レンズ系51の焦点状態を検出する。なお、電子カメラ1は、撮像素子10または測光センサ107により検出される被写体の輝度と色情報に基づいて、コントラスト方式の焦点検出を行ない、レンズ系51の焦点状態を検出しても良い。或いは、撮像素子10に配置されたAF用センサを用いて位相差方式の焦点検出を行っても良い。   The focus detection unit 110 detects the focus state of the lens system 51 by performing, for example, phase difference focus detection. The electronic camera 1 may detect the focus state of the lens system 51 by performing contrast-type focus detection based on the luminance and color information of the subject detected by the image sensor 10 or the photometric sensor 107. Alternatively, focus detection by a phase difference method may be performed using an AF sensor arranged in the image sensor 10.

機械式シャッタ111は、開閉式のシャッタ幕を備え、撮像素子10への入射光を遮光する遮光状態と、撮像素子10に入射光を到達させる非遮光状態とをシャッタ幕の開閉により切り替える。   The mechanical shutter 111 includes an openable / closable shutter curtain, and switches between a light-blocking state in which incident light to the image sensor 10 is blocked and a non-light-blocking state in which the incident light reaches the image sensor 10 by opening and closing the shutter curtain.

撮像素子10は、被写体の像を撮像して画像を生成する。撮像素子10は、例えばCMOS型のカラーイメージセンサである。なお、測光センサ107の撮像素子や撮像素子10は、CCD(Charge Coupled Device)型のカラーイメージセンサであっても良い。   The image sensor 10 captures an image of a subject and generates an image. The image sensor 10 is, for example, a CMOS type color image sensor. The image sensor and the image sensor 10 of the photometric sensor 107 may be a CCD (Charge Coupled Device) type color image sensor.

また、この撮像素子10の受光面は、画像を撮像する撮像領域と、オプティカルブラック領域(以下、「OB領域」という。)とで構成される。このOB領域は、受光素子がアルミなどの遮光部材で覆われるとともに暗電流成分の信号(以下「暗黒信号」という)を出力する。   The light receiving surface of the image sensor 10 includes an imaging region for capturing an image and an optical black region (hereinafter referred to as “OB region”). In the OB region, the light receiving element is covered with a light shielding member such as aluminum and a dark current component signal (hereinafter referred to as “dark signal”) is output.

図2は、図1に示す電子カメラ1及び閃光装置150の内部構成例を示す図である。電子カメラ1は、上述した通り、カメラ本体100と撮影レンズユニット50とを備える。   FIG. 2 is a diagram illustrating an internal configuration example of the electronic camera 1 and the flash device 150 illustrated in FIG. As described above, the electronic camera 1 includes the camera body 100 and the taking lens unit 50.

なお、図2では、説明の便宜上、図1に示した拡散スクリーン102、コンデンサレンズ103、ペンタダハプリズム104、接眼レンズ108及び機械式シャッタ111の図示を省略する。   2, illustration of the diffusing screen 102, the condenser lens 103, the penta roof prism 104, the eyepiece lens 108, and the mechanical shutter 111 shown in FIG. 1 is omitted for convenience of explanation.

カメラ本体100は、クイックリターンミラー101と、サブミラー101aと、測光用プリズム105と、測光用レンズ106と、測光センサ107と、焦点検出部110と、撮像素子10と、信号処理部11と、画像処理部12と、RAM13と、フラッシュメモリ14と、記録インターフェース部(以下、「記録I/F部」という。)15と、表示モニタ16と、操作部17と、レリーズ釦109と、CPU18と、バス19と、レンズマウント100aと、ホットシュー150aとを備える。   The camera body 100 includes a quick return mirror 101, a sub mirror 101a, a photometric prism 105, a photometric lens 106, a photometric sensor 107, a focus detection unit 110, an image sensor 10, a signal processing unit 11, and an image. A processing unit 12, a RAM 13, a flash memory 14, a recording interface unit (hereinafter referred to as "recording I / F unit") 15, a display monitor 16, an operation unit 17, a release button 109, a CPU 18, The bus 19 includes a lens mount 100a and a hot shoe 150a.

このうち、信号処理部11、画像処理部12、RAM13、フラッシュメモリ14、記録I/F部15、表示モニタ16及びCPU18は、バス19を介して互いに接続されている。また、撮像素子10と、測光センサ107と、操作部17と、レリーズ釦109、焦点検出部110及びホットシュー150aは、CPU18と接続されている。   Among these, the signal processing unit 11, the image processing unit 12, the RAM 13, the flash memory 14, the recording I / F unit 15, the display monitor 16, and the CPU 18 are connected to each other via a bus 19. In addition, the image sensor 10, the photometric sensor 107, the operation unit 17, the release button 109, the focus detection unit 110, and the hot shoe 150 a are connected to the CPU 18.

信号処理部11は、撮像素子10が生成する画像信号に対して信号処理を施す回路である。なお、タイミングジェネレータ(不図示)は、CPU18からの指示に従い撮像素子10及び信号処理部11の各々へ向けて駆動信号を送出し、両者の駆動タイミングを制御する。   The signal processing unit 11 is a circuit that performs signal processing on an image signal generated by the image sensor 10. A timing generator (not shown) sends a drive signal to each of the image sensor 10 and the signal processing unit 11 according to an instruction from the CPU 18 and controls the drive timing of both.

信号処理部11は、画像信号のゲイン調整やA/D変換などを行なう。信号処理部11が出力する画像信号は、画像データとしてRAM13に一時的に記録される。画像データの種類としては、記録用画像(以下「本画像」という。)、構図確認用のスルー画像、又は後述する暗黒画像等の画像データである。   The signal processing unit 11 performs gain adjustment and A / D conversion of the image signal. The image signal output from the signal processing unit 11 is temporarily recorded in the RAM 13 as image data. The type of image data is image data such as a recording image (hereinafter referred to as “main image”), a composition confirmation through image, or a dark image described later.

画像処理部12は、RAM13に記録されている画像データを読み出し、例えば、本画像の画像データに対して各種の画像処理(例えば、ホワイトバランス処理等)を施す。RAM13は、揮発性のメモリである。フラッシュメモリ14は、電子カメラ1の制御を行なうプログラム等を予め記憶している不揮発性のメモリである。   The image processing unit 12 reads the image data recorded in the RAM 13 and performs various image processing (for example, white balance processing) on the image data of the main image, for example. The RAM 13 is a volatile memory. The flash memory 14 is a non-volatile memory that stores a program for controlling the electronic camera 1 in advance.

記録I/F部15には、着脱自在の記録媒体30を接続するためのコネクタ(不図示)が形成されている。そして、記録I/F部15は、CPU18からの指示により、そのコネクタに接続された記録媒体30にアクセスして本画像の記録処理等を行なう。この記録媒体30は、例えば、不揮発性のメモリカードである。図2では、コネクタに接続された後の記録媒体30を示している。   The recording I / F unit 15 is formed with a connector (not shown) for connecting a detachable recording medium 30. In response to an instruction from the CPU 18, the recording I / F unit 15 accesses the recording medium 30 connected to the connector and performs recording processing of the main image. The recording medium 30 is, for example, a non-volatile memory card. FIG. 2 shows the recording medium 30 after being connected to the connector.

表示モニタ16は、例えば液晶表示媒体により構成される。表示モニタ16は、CPU18の指示に応じて各種画像や電子カメラ1の操作メニュー等を表示する。   The display monitor 16 is composed of, for example, a liquid crystal display medium. The display monitor 16 displays various images, an operation menu of the electronic camera 1 and the like according to instructions from the CPU 18.

操作部17は、コマンド選択用のコマンドダイヤル、電源ボタン等(不図示)を有している。また、操作部17は、電子カメラ1を操作するための指示入力を受け付ける。   The operation unit 17 includes a command dial for command selection, a power button, and the like (not shown). In addition, the operation unit 17 accepts an instruction input for operating the electronic camera 1.

CPU18は、電子カメラ1の統括的な制御を行なうプロセッサである。CPU18は、フラッシュメモリ14に予め格納されたプログラムを実行することにより電子カメラ1の各部を制御する。CPU18は、測光センサ107の出力信号に基づいて、撮像範囲の被写体輝度が、例えば、夜間時、薄暗時、夕暮時または室内等の低輝度(低照度)であるか否かを判定する。   The CPU 18 is a processor that performs overall control of the electronic camera 1. The CPU 18 controls each unit of the electronic camera 1 by executing a program stored in advance in the flash memory 14. Based on the output signal of the photometric sensor 107, the CPU 18 determines whether or not the subject brightness in the imaging range is low brightness (low illuminance) such as nighttime, dim light, sunset, or indoors.

なお、CPU18は、被写体輝度が低輝度であるか否かの判定を、測光センサ107が出力する画像信号の輝度(又は明度)が基準値を下回るか否かにより行なう。この基準値は、予め実験等に基づく実測値であっても良い。或いは、CPU18は、被写体輝度が低輝度であるか否かの判定を、撮像素子10が生成するスルー画像の輝度が基準値を下回るか否かにより行なっても良い。   The CPU 18 determines whether or not the subject brightness is low depending on whether or not the brightness (or lightness) of the image signal output from the photometric sensor 107 is below a reference value. This reference value may be an actually measured value based on an experiment or the like in advance. Alternatively, the CPU 18 may determine whether or not the subject brightness is low based on whether or not the brightness of the through image generated by the image sensor 10 is lower than the reference value.

より詳細には、CPU18は、一例として、測光センサ107(又は撮像素子10)の出力する画像信号の輝度が基準値を下回るか否かの判定を、画像の全領域の各画素の輝度の平均値が基準値を下回るか否かにより判定する。或いは、CPU18は、後述する多分割測光により、被写体輝度が低輝度であるか否かの判定を行なっても良い。   More specifically, as an example, the CPU 18 determines whether or not the luminance of the image signal output from the photometric sensor 107 (or the image sensor 10) is lower than a reference value, and determines the average luminance of each pixel in the entire area of the image. Judgment is made based on whether the value falls below the reference value. Alternatively, the CPU 18 may determine whether or not the subject brightness is low by multi-division metering described later.

また、CPU18は、第1設定部18aと、第2設定部18bと、撮影シーン推定部18cと、ノイズ除去処理部18dと、補正処理部18eとしても機能する。   The CPU 18 also functions as a first setting unit 18a, a second setting unit 18b, a shooting scene estimation unit 18c, a noise removal processing unit 18d, and a correction processing unit 18e.

第1設定部18aは、被写体輝度が予め設定した基準値よりも低輝度である場合、その低輝度下での撮影を補う設定モードを設定する。或いは、第1設定部18aは、操作部17を介して、低輝度下での撮影を補うための設定モードをユーザ入力により、設定しても良い。本実施形態の電子カメラ1は、低輝度下での撮影を補うための設定モードとして、撮像感度優先モードと、階調圧縮優先モードとの2種類の設定モードを備えている。   When the subject luminance is lower than a preset reference value, the first setting unit 18a sets a setting mode that supplements shooting under the low luminance. Or the 1st setting part 18a may set the setting mode for supplementing imaging | photography under low luminance via the operation part 17 by a user input. The electronic camera 1 of the present embodiment includes two types of setting modes, an imaging sensitivity priority mode and a gradation compression priority mode, as setting modes for supplementing shooting under low luminance.

撮像感度優先モードは、撮像感度(以下「ISO感度」ということがある。)の設定を優先するモードである。この撮像感度優先モードでは、低輝度下での撮影において撮像感度の設定を優先することにより、鑑賞上好ましい画像を取得することができる。   The imaging sensitivity priority mode is a mode that prioritizes setting of imaging sensitivity (hereinafter also referred to as “ISO sensitivity”). In this imaging sensitivity priority mode, it is possible to obtain a favorable image for viewing by giving priority to the setting of imaging sensitivity in shooting under low luminance.

例えば、撮像感度優先モードの適用例としては、夜間における撮影時に、人物や動物、その他の被写体を適正な明るさで再現しようとする場合が挙げられる。この場合、撮像感度優先モードでは、露出の調整だけでは限界があるような時に、撮像素子10の撮像感度を優先的に決め、適正な画像を得るために第1及び第2パラメータを決定する。   For example, as an application example of the imaging sensitivity priority mode, there is a case where a person, an animal, or another subject is to be reproduced with appropriate brightness at the time of shooting at night. In this case, in the imaging sensitivity priority mode, when there is a limit only by adjusting the exposure, the imaging sensitivity of the image sensor 10 is preferentially determined, and the first and second parameters are determined in order to obtain an appropriate image.

階調圧縮優先モードは、画像データの画素値を階調圧縮してダイナミックレンジを広げる処理を優先するモードである。この階調圧縮優先モードでは、低輝度下での撮影において、階調圧縮してダイナミックレンジを広げる処理を優先することにより、鑑賞上好ましい画像を取得することができる。また、階調圧縮優先モードでは、ISO感度を現在の設定値(例えば、ISO感度:1600)で撮影するべきところ、1段下げて(例えば、ISO感度:800)撮影を行ない、後述する補正処理で画質の劣化を抑制しても良い。これにより、階調圧縮優先モードでは、ISO感度を下げる分、ノイズの発生を抑制することができる。   The gradation compression priority mode is a mode in which priority is given to processing for expanding the dynamic range by performing gradation compression on pixel values of image data. In this gradation compression priority mode, an image preferable for viewing can be acquired by giving priority to the process of compressing the gradation and expanding the dynamic range in photographing under low luminance. In the gradation compression priority mode, the ISO sensitivity should be taken at the current set value (for example, ISO sensitivity: 1600), but the image is taken one step lower (for example, ISO sensitivity: 800), and correction processing described later is performed. In this case, deterioration of image quality may be suppressed. Thereby, in the gradation compression priority mode, generation of noise can be suppressed as much as the ISO sensitivity is lowered.

例えば、階調圧縮優先モードの適用例としては、逆光の人物がいる場合が挙げられる。この場合、階調圧縮優先モードでは、光源が太陽等であって所定以上の輝度差のある階調を補正するため、優先的に階調補正値を決め、さらに適正な画像を得るために第1及び第2パラメータを決定する。   For example, as an application example of the gradation compression priority mode, there is a case where there is a backlit person. In this case, in the gradation compression priority mode, since the light source is the sun or the like and the gradation having a luminance difference of a predetermined level or more is corrected, the gradation correction value is preferentially determined, and a more appropriate image is obtained. Determine the first and second parameters.

第2設定部18bは、上記の設定モードの設定値に応じて発生する画像データのノイズを除去するための第1パラメータと、ノイズの除去に起因して発生する画質劣化を補正するための第2パラメータとを設定する。   The second setting unit 18b includes a first parameter for removing noise of the image data generated according to the setting value of the setting mode, and a first parameter for correcting image quality degradation caused by noise removal. Set two parameters.

具体的には、第1パラメータは、暗電流補正に関するパラメータである。また、第2パラメータは、コントラスト補正、輪郭補正、彩度補正、階調圧縮補正のうち、少なくとも1つの補正に関するパラメータを含む。したがって、例えば、階調圧縮優先モードにおいて、第2パラメータは、階調圧縮補正に関するパラメータだけでも良い。   Specifically, the first parameter is a parameter related to dark current correction. The second parameter includes a parameter related to at least one correction among contrast correction, contour correction, saturation correction, and gradation compression correction. Therefore, for example, in the gradation compression priority mode, the second parameter may be only a parameter related to gradation compression correction.

撮影シーン推定部18cは、画像を解析して撮影シーンを推定する。例えば、撮影シーン推定部18cは、被写体の像に含まれる空や海等の輝度分布やRGB信号の分布や色温度に基づいて撮影シーンを風景と推定する。また、撮影シーン推定部18cは、公知の顔検出処理により画像を解析して人物等の顔を検出し、撮影シーンの種別を人物と推定する。なお、撮影シーン推定部18cは、追加の機能として、ユーザ入力により撮影シーンの種別を受け付けても良い。   The shooting scene estimation unit 18c analyzes the image and estimates the shooting scene. For example, the shooting scene estimation unit 18c estimates a shooting scene as a landscape based on the luminance distribution of the sky, the sea, etc. included in the subject image, the RGB signal distribution, and the color temperature. The shooting scene estimation unit 18c analyzes the image by a known face detection process to detect a face such as a person, and estimates the type of shooting scene as a person. Note that, as an additional function, the shooting scene estimation unit 18c may accept the type of shooting scene by user input.

ノイズ除去処理部18dは、撮像感度優先モード又は階調圧縮優先モード下で撮像素子10が生成した本画像の画像データのノイズを第1パラメータに基づいて除去する。第1パラメータは、暗電流補正に関するパラメータであるので、ノイズ除去処理部18dは、暗電流に起因する画像データのノイズを除去することができる。ここで、本実施形態の電子カメラ1は、画像データのノイズを除去するため、上記の設定モードとは別に複数のノイズリダクション(以下「NR」という。)モードを備えている。   The noise removal processing unit 18d removes noise in the image data of the main image generated by the image sensor 10 in the imaging sensitivity priority mode or the gradation compression priority mode based on the first parameter. Since the first parameter is a parameter related to dark current correction, the noise removal processing unit 18d can remove noise of image data caused by dark current. Here, the electronic camera 1 of the present embodiment includes a plurality of noise reduction (hereinafter referred to as “NR”) modes in addition to the setting mode in order to remove noise of image data.

第1のNRモードでは、通常、本画像が撮影された直後に、電子カメラ1が撮像素子10を遮光した状態で本画像の露光時間と同じ露光時間で暗黒画像の撮影を行なう。そして、第1のNRモードでは、ノイズ除去処理部18dが本画像の画像データから暗黒画像の画像データを減算する補正処理を行なう。この補正処理により、撮像素子10において発生する暗電流ノイズや撮像素子固有の画素欠陥による微少な傷(例えば、点傷)等のノイズが除去(抑制)される。   In the first NR mode, normally, immediately after the main image is captured, the electronic camera 1 captures a dark image with the same exposure time as the main image while the image sensor 10 is shielded from light. In the first NR mode, the noise removal processing unit 18d performs correction processing for subtracting the image data of the dark image from the image data of the main image. This correction process removes (suppresses) noise such as dark current noise generated in the image sensor 10 and minute scratches (for example, scratches) due to pixel defects inherent to the image sensor.

第2のNRモードでは、ノイズ除去処理部18dが、ローパスフィルタをかけて入射した光を光学的に分離することにより、センサの画素ピッチよりも細かい空間周波数を持つ成分の像をぼかすようにする。これにより、センサに光を効率よくRGBの各画素に導いて偽色の発生を抑えることができる。また、第2のNRモードでは、さらに、ノイズ除去処理部18dが隣接画素間での平均化処理、平滑化処理等の補正処理を行なう設定を追加することができる。この補正処理により、撮像素子10において発生する暗電流ノイズ等のノイズがさらに抑制される。   In the second NR mode, the noise removal processing unit 18d optically separates the incident light by applying a low-pass filter, thereby blurring an image of a component having a spatial frequency smaller than the pixel pitch of the sensor. . Thereby, light can be efficiently guided to each pixel of RGB by the sensor, and generation of false colors can be suppressed. Further, in the second NR mode, it is possible to add a setting for the noise removal processing unit 18d to perform correction processing such as averaging processing and smoothing processing between adjacent pixels. By this correction processing, noise such as dark current noise generated in the image sensor 10 is further suppressed.

補正処理部18eは、本画像の画像データの画質劣化を第2パラメータに基づいて補正する。ここで、第2パラメータは、コントラスト補正、輪郭補正、彩度補正、階調圧縮補正のうち、少なくとも1つの補正に関するパラメータであるので、補正処理部18eは、ノイズの除去で新たに発生する画面全体の荒れやむら等の画質劣化を上記の補正処理により抑制することができる。なお、画像処理部12が、ノイズ除去処理部18dと補正処理部18eとの機能を有しても良い。   The correction processing unit 18e corrects the image quality deterioration of the image data of the main image based on the second parameter. Here, since the second parameter is a parameter related to at least one correction among contrast correction, contour correction, saturation correction, and gradation compression correction, the correction processing unit 18e is a screen newly generated by noise removal. Image quality deterioration such as overall roughness and unevenness can be suppressed by the above correction processing. Note that the image processing unit 12 may have the functions of the noise removal processing unit 18d and the correction processing unit 18e.

図3は、撮像感度優先モードにおいて使用されるテーブルの一例を示す図である。図4は、階調圧縮優先モードにおいて使用されるテーブルの一例を示す図である。これらのテーブルは、ルックアップテーブル(以下「LUT」という。)として予めフラッシュメモリ14に記録されている。   FIG. 3 is a diagram illustrating an example of a table used in the imaging sensitivity priority mode. FIG. 4 is a diagram illustrating an example of a table used in the gradation compression priority mode. These tables are recorded in the flash memory 14 in advance as look-up tables (hereinafter referred to as “LUT”).

図3に示すLUT1は、撮像感度優先モードにおける設定値に対して、第1パラメータ及び第2パラメータがそれぞれ対応付けられている。また、図4に示すLUT2は、階調圧縮優先モードにおける設定値に対して、第1パラメータ及び第2パラメータがそれぞれ対応付けられている。   In the LUT 1 illustrated in FIG. 3, the first parameter and the second parameter are associated with the setting value in the imaging sensitivity priority mode. In the LUT 2 shown in FIG. 4, the first parameter and the second parameter are associated with the set value in the gradation compression priority mode.

図3において、各々のISO感度の設定値には、ノイズ除去を示す第1パラメータと、コントラスト補正、輪郭補正、彩度補正等を示す複数の第2パラメータとが対応付けられている。また、同様にして、図4において、各々の階調圧縮の設定値には、ノイズ除去を示す第1パラメータと、コントラスト補正、輪郭補正、彩度補正等を示す複数の第2パラメータとが対応付けられている。   In FIG. 3, each ISO sensitivity setting value is associated with a first parameter indicating noise removal and a plurality of second parameters indicating contrast correction, contour correction, saturation correction, and the like. Similarly, in FIG. 4, each tone compression setting value corresponds to a first parameter indicating noise removal and a plurality of second parameters indicating contrast correction, contour correction, saturation correction, and the like. It is attached.

なお、図3及び図4において、強、やや強、中、やや弱、弱の記載は、それぞれの設定値(ISO感度又は階調圧縮)に応じて、5段階のレベルの範囲で補正処理やノイズ除去処理を行なうことを表している。なお、本実施形態では、5段階のレベルに分類するのは一例であって、例えば、3段階に分類しても良い。   In FIGS. 3 and 4, the descriptions of strong, slightly strong, medium, slightly weak, and weak are correction processing within a range of five levels according to each setting value (ISO sensitivity or gradation compression). This indicates that noise removal processing is performed. In the present embodiment, classification into five levels is an example, and for example, classification into three levels may be performed.

ここで、図3において、補正処理部18eは、ISO感度の設定値が低くなるほど、コントラストを強くする。ここで、コントラストを強くするとは、例えば、画像内において明るい部分と暗い部分の輝度の差を大きくすることをいう。   Here, in FIG. 3, the correction processing unit 18e increases the contrast as the ISO sensitivity setting value decreases. Here, increasing the contrast means, for example, increasing a difference in luminance between a bright part and a dark part in the image.

また、補正処理部18eは、ISO感度の設定値が低くなるほど、彩度を強くする処理を行なう。ここで、彩度を強くするとは、例えば、撮影シーンが「夕景」と推定された場合、本画像の橙色の色味が鮮やかになるように画像内の色信号を調整することをいう。つまり、本実施形態では、色信号の調整の度合いを、彩度の強弱で表している。   Further, the correction processing unit 18e performs a process of increasing the saturation as the ISO sensitivity setting value decreases. Here, to increase the saturation means, for example, that the color signal in the image is adjusted so that the orange color of the main image becomes bright when the shooting scene is estimated to be “evening scene”. That is, in the present embodiment, the degree of color signal adjustment is expressed by the intensity of saturation.

また、補正処理部18eは、ISO感度の設定値が低くなるほど、輪郭を強調する処理を行なう。ここで、輪郭を強調する処理とは、輪郭強調処理の一種であるアンシャープマスク処理を行なう。アンシャープマスク処理では、先ず画像をぼかし、そのぼかした画像と元画像との差分をとる。そして、アンシャープマスク処理では、この差分を調整して元画像に加えることにより、輪郭強調処理を行なう。具体的には、補正処理部18eは、アンシャープマスク処理により、輪郭部分のコントラストを上げて、その輪郭部分を鮮明にする画像処理を行なう。   Further, the correction processing unit 18e performs a process of enhancing the contour as the ISO sensitivity setting value is lowered. Here, the process of emphasizing the outline performs an unsharp mask process which is a kind of the outline emphasis process. In the unsharp mask process, the image is first blurred, and the difference between the blurred image and the original image is obtained. In the unsharp mask process, the edge enhancement process is performed by adjusting this difference and adding it to the original image. Specifically, the correction processing unit 18e performs image processing that increases the contrast of the contour portion by unsharp mask processing to make the contour portion clear.

ここで、従来、ISO感度を上げた撮影ではノイズが出やすく、輪郭強調をかけるとさらにノイズが目立ちやすくなる。このため、従来の電子カメラでは、輪郭強調をあまりかけられず、解像度の欠けた画像となってしまうという問題がある。しかしながら、本実施形態では、ISO感度に応じて輪郭強調をかけるので、上記の問題を改善することができる。   Conventionally, noise is likely to occur in shooting with increased ISO sensitivity, and noise is more noticeable when contour enhancement is applied. For this reason, the conventional electronic camera has a problem that the image cannot be emphasized so much that the image lacks resolution. However, in the present embodiment, the contour emphasis is applied according to the ISO sensitivity, so that the above problem can be improved.

また、ノイズ除去処理部18dは、ISO感度の設定値が低くなるほど、ノイズ除去の程度を弱くする。ここで、ISO感度が高感度になるほど暗電流によるレベル上昇分(暗電流オフセット)が高くなる。そのため、本実施形態では、説明の便宜上、各々のISO感度毎の暗電流によるレベル上昇分を5段階に分けている。したがって、図3及び図4におけるノイズ除去の項目は、レベル上昇分の除去の程度を強、やや強、中、やや弱、弱の5段階で表している。   Further, the noise removal processing unit 18d weakens the degree of noise removal as the ISO sensitivity setting value decreases. Here, the higher the ISO sensitivity, the higher the level increase (dark current offset) due to dark current. Therefore, in this embodiment, for the convenience of explanation, the level increase due to the dark current for each ISO sensitivity is divided into five stages. Therefore, the item of noise removal in FIGS. 3 and 4 represents the degree of removal of the level increase in five levels: strong, slightly strong, medium, slightly weak, and weak.

より詳細には、第1のNRモードにおいて、ノイズ除去処理部18dは、暗電流の平均値と所定の閾値とを比較し、暗電流の平均値が所定の閾値よりも大きければ、本画像の画像データから暗黒画像の画像データを減算する補正処理を行なう。つまり、第1のNRモードでは、所定の閾値を、強、やや強、中、やや弱、弱の5段階で対応付けている。したがって、ノイズ除去処理部18dは、ノイズ除去を示す第1パラメータが「強」の場合、ノイズ除去の強度を最も強くするため、上記の5段階の中で最も低い値を閾値に設定して補正処理を行なう。   More specifically, in the first NR mode, the noise removal processing unit 18d compares the average value of the dark current with a predetermined threshold value, and if the average value of the dark current is larger than the predetermined threshold value, Correction processing for subtracting the image data of the dark image from the image data is performed. That is, in the first NR mode, the predetermined threshold is associated with five levels of strong, slightly strong, medium, slightly weak, and weak. Therefore, when the first parameter indicating noise removal is “strong”, the noise removal processing unit 18d performs correction by setting the lowest value among the above five levels as a threshold value in order to make the noise removal strength the strongest. Perform processing.

また、第2のNRモードでは、隣接画素間での平均化処理、平滑化処理等の補正処理を5段階(強、やや強、中、やや弱、弱)に分ける。ここで、例えば、「強」選択した場合、ノイズ除去処理部18dは、5段階の中で補正処理の強度を最も強くする。また、「弱」と選択した場合、ノイズ除去処理部18dは、5段階の中で補正処理の強度を最も弱くする。また、本実施形態では、第1のNRモードと第2のNRモードとの何れか一方を行なっても良いし、或いは、併用しても良い。   In the second NR mode, correction processing such as averaging processing and smoothing processing between adjacent pixels is divided into five levels (strong, slightly strong, medium, slightly weak, and weak). Here, for example, when “strong” is selected, the noise removal processing unit 18d maximizes the strength of the correction processing among the five levels. On the other hand, when “weak” is selected, the noise removal processing unit 18d makes the strength of the correction processing the weakest among the five levels. In the present embodiment, one of the first NR mode and the second NR mode may be performed, or may be used in combination.

また、図4において、補正処理部18eは、階調圧縮の設定値が低くなるほど、コントラストを強くする。また、補正処理部18eは、階調圧縮の設定値が低くなるほど、彩度を強くする処理を行なう。また、補正処理部18eは、階調圧縮の設定値が低くなるほど、輪郭を強調する処理を行なう。また、ノイズ除去処理部18dは、階調圧縮の設定値が低くなるほど、ノイズ除去の程度を弱くする。   In FIG. 4, the correction processing unit 18e increases the contrast as the gradation compression setting value decreases. Further, the correction processing unit 18e performs a process of increasing the saturation as the gradation compression setting value decreases. In addition, the correction processing unit 18e performs a process of enhancing the outline as the gradation compression setting value decreases. Further, the noise removal processing unit 18d weakens the degree of noise removal as the gradation compression setting value decreases.

ここで、図3及び図4では、ノイズ除去の程度を5段階に分けているが、本実施形態では、例えば、「強」のレベルについて、補正処理をする分、仮に、補正処理を行なわないとした場合と比較して、ノイズ除去の程度をより低く設定できる点に特徴を有している。より低く設定できるということは、その分、ノイズ除去による画質の劣化を抑制できるからである。   Here, in FIG. 3 and FIG. 4, the degree of noise removal is divided into five stages. However, in this embodiment, for example, correction processing is not performed for the “strong” level as much as correction processing is performed. Compared to the case of the above, the feature is that the degree of noise removal can be set lower. The reason why it can be set lower is that image quality deterioration due to noise removal can be suppressed accordingly.

図2の説明に再び戻り、閃光装置150は、発光部150bと発光制御回路150cとを備える。発光部150bは、コンデンサに充電された電気エネルギーを光エネルギーに変換する回路である。発光部150bには、例えばキセノン管が備えられており、このキセノン管の放電により発光を行なう。   Returning to the description of FIG. 2, the flash device 150 includes a light emitting unit 150b and a light emission control circuit 150c. The light emitting unit 150b is a circuit that converts electrical energy charged in the capacitor into light energy. The light emitting unit 150b is provided with, for example, a xenon tube, and emits light by discharging the xenon tube.

なお、発光部150bは、例えばLED(発光ダイオード)を光源としても良い。発光制御回路150cは、発光部150bの発光量等を示す発光情報をCPU18から受信し、受信した発光情報に基づいて発光部150bに対して予備発光や本発光を行なわせる。   Note that the light emitting unit 150b may use, for example, an LED (light emitting diode) as a light source. The light emission control circuit 150c receives light emission information indicating the light emission amount and the like of the light emission unit 150b from the CPU 18, and causes the light emission unit 150b to perform preliminary light emission and main light emission based on the received light emission information.

次に、電子カメラ1の撮影動作の一例について説明する。ここで、ユーザは、操作部17を介して、本実施形態の撮像感度優先モード、階調圧縮優先モード等の設定モードを選択入力することができる。なお、以下のフローチャートの処理(以下「フローの処理」という。)では、夜間時、薄暗時、夕暮時、逆光または室内等で被写体が暗い等といった撮影シーンを前提とする。   Next, an example of the photographing operation of the electronic camera 1 will be described. Here, the user can select and input setting modes such as the imaging sensitivity priority mode and the gradation compression priority mode of the present embodiment via the operation unit 17. Note that the processing of the following flowchart (hereinafter referred to as “flow processing”) assumes a shooting scene such as night, dim, sunset, backlit, or dark subject in a room.

図5は、設定モードの選択処理を説明する図である。図5(a)は、表示モニタ16に表示された設定モードの初期画面を表している。図5(b)は、撮像感度優先モードの設定値を選択入力するための画面を表している。図5(c)は、階調圧縮優先モードの設定値を選択入力するための画面を表している。   FIG. 5 is a diagram for explaining setting mode selection processing. FIG. 5A shows an initial screen of the setting mode displayed on the display monitor 16. FIG. 5B shows a screen for selectively inputting the setting value of the imaging sensitivity priority mode. FIG. 5C shows a screen for selectively inputting the setting value of the gradation compression priority mode.

ここで、図5(a)に示す通り、CPU18は、操作部17を介して、撮像感度優先モードと、階調圧縮優先モードと、AUTOモードとの何れかをユーザからの選択入力を受け付ける。なお、AUTOモードは、電子カメラ1側の内部処理により、撮像感度優先モードと階調圧縮優先モードとの何れかを選択するモードである。   Here, as illustrated in FIG. 5A, the CPU 18 receives a selection input from the user via the operation unit 17 for any one of the imaging sensitivity priority mode, the gradation compression priority mode, and the AUTO mode. The AUTO mode is a mode for selecting either the imaging sensitivity priority mode or the gradation compression priority mode by internal processing on the electronic camera 1 side.

例えば、撮像感度優先モードが選択入力された場合、CPU18は、表示モニタ16に撮像感度優先モードの設定値を選択入力するための画面を表示させる(図5(b)参照)。CPU18は、操作部17を介して、ISO感度の設定値を受け付ける。また、階調圧縮優先モードが選択入力された場合、CPU18は、表示モニタ16に階調圧縮優先モードの設定値を選択入力するための画面を表示させる(図5(c)参照)。CPU18は、操作部17を介して、階調圧縮処理の設定値を受け付ける。   For example, when the imaging sensitivity priority mode is selected and input, the CPU 18 displays a screen for selecting and inputting the setting value of the imaging sensitivity priority mode on the display monitor 16 (see FIG. 5B). The CPU 18 receives a set value of ISO sensitivity via the operation unit 17. When the gradation compression priority mode is selected and input, the CPU 18 displays a screen for selecting and inputting the setting value of the gradation compression priority mode on the display monitor 16 (see FIG. 5C). The CPU 18 receives a setting value for gradation compression processing via the operation unit 17.

ここで、輝度差の大きな被写体を撮影することにより、画像データの暗部階調が暗く潰れるという現象が知られている。そこで、階調圧縮処理では、暗部階調のゲインを上げることで階調を圧縮し、暗部階調の黒つぶれを改善する。なお、図5(c)中、階調圧縮処理のレベルが5段階に分けられているのは、暗部階調のゲインのレベルに相当する。このようにして、設定モードの選択処理が終了すると、CPU18は、実際の撮影動作を開始する。   Here, a phenomenon is known in which a dark portion gradation of image data is darkened by photographing a subject having a large luminance difference. Therefore, in the gradation compression process, the gradation is compressed by increasing the gain of the dark portion gradation, and the blackening of the dark portion gradation is improved. In FIG. 5C, the gradation compression processing level is divided into five levels, which corresponds to the dark portion gradation gain level. In this way, when the setting mode selection process ends, the CPU 18 starts an actual photographing operation.

図6は、電子カメラ1の撮影動作の一例を示すフローチャートである。ここで、説明をわかりやすくするため、先ず、AUTOモードが選択入力され、閃光撮影を考慮しない場合について例示する。設定モードの選択処理が終了すると、CPU18は、図6に示すフローの処理を開始させる。ここで、CPU18は、表示モニタ16にスルー画像を表示させる。   FIG. 6 is a flowchart illustrating an example of the photographing operation of the electronic camera 1. Here, in order to make the explanation easy to understand, first, an example in which the AUTO mode is selected and input and flash photography is not considered will be exemplified. When the setting mode selection processing ends, the CPU 18 starts the processing of the flow shown in FIG. Here, the CPU 18 displays a through image on the display monitor 16.

ステップS101:CPU18は、半押し操作の指示入力の有無を判定する。具体的には、レリーズ釦109が半押し操作の指示入力を受け付けない場合(ステップS101:No)、CPU18は、ステップS101を繰り返す。一方、レリーズ釦109が半押し操作の指示入力を受け付けた場合(ステップS101:Yes)、CPU18は、ステップS102の処理に移行する。   Step S101: The CPU 18 determines whether or not there is an instruction input for a half-press operation. Specifically, when release button 109 does not accept an instruction input for a half-press operation (step S101: No), CPU 18 repeats step S101. On the other hand, when the release button 109 receives an instruction input for a half-press operation (step S101: Yes), the CPU 18 proceeds to the process of step S102.

ステップS102:CPU18は、測光処理及び測距処理を行なう。具体的には、CPU18は、測光処理として被写体輝度の検出処理を行なう。すなわち、CPU18は、測光センサ107に被写体輝度の検出処理の指示を出すことにより、測光センサ107の出力信号は、RAM13に一時的に記録される。ここで、画像処理部12は、撮影画面を複数の領域(ブロック)に分割してその領域毎に測光値を検出する多分割測光を行なう。例えば、画像処理部12は、分割した領域毎にRGB信号の画像データを輝度信号(Y信号)と、色差信号(Cr、Cb信号)の画像データに変換(YC変換)することで多分割測光を行なう。または、出力したRGB信号を用いて最適な露出値を算出するようにしても良い。更には、カメラから被写体までの距離情報をレンズから受信して演算に加味しても良い。   Step S102: The CPU 18 performs photometry processing and distance measurement processing. Specifically, the CPU 18 performs subject luminance detection processing as photometry processing. That is, the CPU 18 instructs the photometric sensor 107 to perform subject luminance detection processing, whereby the output signal of the photometric sensor 107 is temporarily recorded in the RAM 13. Here, the image processing unit 12 performs multi-division photometry that divides the photographing screen into a plurality of areas (blocks) and detects photometric values for each area. For example, the image processing unit 12 performs multi-division photometry by converting image data of RGB signals into image data of luminance signals (Y signals) and color difference signals (Cr, Cb signals) (YC conversion) for each divided area. To do. Alternatively, an optimal exposure value may be calculated using the output RGB signal. Furthermore, distance information from the camera to the subject may be received from the lens and added to the calculation.

また、CPU18は、測距処理として、焦点検出部110に指示を出すことにより、位相差方式の焦点検出を行ない、レンズ系51の焦点状態を検出する。   In addition, as a distance measurement process, the CPU 18 instructs the focus detection unit 110 to perform phase difference type focus detection and detect the focus state of the lens system 51.

ステップS103:CPU18の撮影シーン推定部18cは、撮影シーンの推定処理を行なう。具体的には、撮影シーン推定部18cは、多分割測光の結果に基づいて、被写体輝度が予め設定した基準値よりも低輝度であるか否かを判定する。撮影シーン推定部18cは、例えば、光源を除く画面内のほぼ全体が、基準値よりも低輝度であれば、撮影シーンを夜景であると推定することができる。   Step S103: The shooting scene estimation unit 18c of the CPU 18 performs shooting scene estimation processing. Specifically, the shooting scene estimation unit 18c determines whether or not the subject brightness is lower than a preset reference value based on the result of multi-segment photometry. For example, the shooting scene estimation unit 18c can estimate that the shooting scene is a night scene if almost the entire screen excluding the light source has a luminance lower than the reference value.

また、撮影シーン推定部18cは、多分割測光の結果に基づいて、複数の領域(ブロック)毎に輝度値(測光値)を積算する。さらに、撮影シーン推定部18cは、ブロック間で輝度差を算出する。また、撮影シーン推定部18cは、画面内の色情報を解析する。撮影シーン推定部18cは、輝度差と色情報とに基づいて、撮影シーンを推定する。例えば、撮影画面内において、階調が滑らかに変化するグラデーションを示し、橙色が支配的である場合、撮影シーン推定部18cは、撮影シーンを夕景であると推定する。   In addition, the shooting scene estimation unit 18c integrates luminance values (photometric values) for each of a plurality of regions (blocks) based on the result of multi-segment photometry. Further, the shooting scene estimation unit 18c calculates a luminance difference between the blocks. The shooting scene estimation unit 18c analyzes the color information in the screen. The shooting scene estimation unit 18c estimates a shooting scene based on the luminance difference and the color information. For example, in the shooting screen, when the gradation is smoothly changed and the orange color is dominant, the shooting scene estimation unit 18c estimates that the shooting scene is a sunset scene.

また、撮影シーン推定部18cは、撮影画面全体の被写体輝度だけではなく、顔検出処理により、顔を検出して、撮影画面内の顔の被写体輝度が暗い状態(低輝度)であるか否かを判定しても良い。なお、撮影シーン推定部18cは、スルー画像を解析して撮影シーンを推定しても良い。そして、CPU18は、ステップS104の処理に移行する。   Further, the shooting scene estimation unit 18c detects not only the subject brightness of the entire shooting screen but also the face by face detection processing, and determines whether or not the subject brightness of the face in the shooting screen is dark (low brightness). May be determined. The shooting scene estimation unit 18c may estimate a shooting scene by analyzing a through image. And CPU18 transfers to the process of step S104.

ステップS104:CPU18の第1設定部18aは、設定モード及び設定値の設定処理を行なう。具体的には、第1設定部18aは、例えば、撮影シーンが夜景である場合、撮像感度優先モードを設定する。また、第1設定部18aは、図3に示すLUT1を参照する。そして、現在の被写体輝度に基づいて、例えばISO感度を6400に設定する。さらに、CPU18の第2設定部18bは、LUT1を参照して、ISO感度に対応するノイズ除去を示す第1パラメータの設定値と、コントラスト補正、輪郭補正、彩度補正を示す第2パラメータの設定値とを設定する。そして、CPU18は、ステップS105の処理に移行する。   Step S104: The first setting unit 18a of the CPU 18 performs setting mode and setting value setting processing. Specifically, for example, when the shooting scene is a night view, the first setting unit 18a sets the imaging sensitivity priority mode. The first setting unit 18a refers to the LUT 1 illustrated in FIG. Then, for example, the ISO sensitivity is set to 6400 based on the current subject brightness. Furthermore, the second setting unit 18b of the CPU 18 refers to the LUT 1 and sets the first parameter setting value indicating noise removal corresponding to the ISO sensitivity and the second parameter setting indicating contrast correction, contour correction, and saturation correction. Set the value. And CPU18 transfers to the process of step S105.

ステップS105:CPU18は、撮影条件の設定処理を行なう。例えば、撮像感度優先モードの場合、ISO感度に基づいて、絞り値、シャッタ速度等の撮影条件を設定する。そして、CPU18は、ステップS106の処理に移行する。   Step S105: The CPU 18 performs shooting condition setting processing. For example, in the case of the imaging sensitivity priority mode, shooting conditions such as an aperture value and a shutter speed are set based on the ISO sensitivity. And CPU18 transfers to the process of step S106.

ステップS106:CPU18は、全押し操作の指示入力の有無を判定する。具体的には、レリーズ釦109が全押し操作の指示入力を所定時間経過しても受け付けない場合(ステップS106:No)、CPU18は、半押し操作後の処理を一旦解除して、ステップS101の処理に戻る。これにより、CPU18は、再度、ステップS101〜ステップS105の処理を繰り返す。一方、レリーズ釦109が全押し操作の指示入力を受け付けた場合(ステップS106:Yes)、CPU18は、ステップS107の処理に移行する。   Step S106: The CPU 18 determines whether or not a full-press operation instruction is input. Specifically, if the release button 109 does not accept an instruction input for full-press operation even after a predetermined time has elapsed (step S106: No), the CPU 18 once cancels the processing after the half-press operation, and in step S101. Return to processing. Thereby, CPU18 repeats the process of step S101-step S105 again. On the other hand, when the release button 109 receives an instruction input for a full-press operation (step S106: Yes), the CPU 18 proceeds to the process of step S107.

ステップS107:CPU18は、本画像の撮影処理を行なう。具体的には、CPU18は、クイックリターンミラー101を上に跳ね上げさせ、機械式シャッタ111のシャッタ幕を開けさせる。続いて、CPU18は、ステップS105の処理で設定された撮影条件に基づいて、撮像素子10を駆動する。信号処理部11は、画像信号のゲイン調整やA/D変換等を行なう。この際、信号処理部11は、ステップS104の処理で設定されたISO感度に基づいて、画像信号のゲイン調整を行なう。この信号処理部11が出力する画像信号は、RAM13に画像データとして一旦記録される。   Step S107: The CPU 18 performs a photographing process for the main image. Specifically, the CPU 18 causes the quick return mirror 101 to jump up and open the shutter curtain of the mechanical shutter 111. Subsequently, the CPU 18 drives the image sensor 10 based on the shooting conditions set in the process of step S105. The signal processing unit 11 performs gain adjustment, A / D conversion, and the like of the image signal. At this time, the signal processing unit 11 adjusts the gain of the image signal based on the ISO sensitivity set in the process of step S104. The image signal output from the signal processing unit 11 is temporarily recorded as image data in the RAM 13.

次に、CPU18は、暗黒画像の撮影処理を行なう。具体的には、CPU18は、暗黒画像を取得するため、機械式シャッタ111のシャッタ幕を閉じた後、本画像の撮影条件に基づいて、撮像素子10を駆動する。この信号処理部11が出力する暗黒信号は、RAM13に暗黒画像の画像データとして一旦記録される。なお、CPU18は、暗黒画像の取得を本画像の撮影処理より先に行なっても良い。CPU18は、本画像と暗黒画像とを取得すると、ステップS108の処理に移行する。   Next, the CPU 18 performs a dark image photographing process. Specifically, in order to acquire a dark image, the CPU 18 closes the shutter curtain of the mechanical shutter 111 and then drives the image sensor 10 based on the shooting conditions for the main image. The dark signal output from the signal processing unit 11 is temporarily recorded as image data of a dark image in the RAM 13. Note that the CPU 18 may acquire the dark image prior to the actual image capturing process. When acquiring the main image and the dark image, the CPU 18 proceeds to the process of step S108.

ステップS108:CPU18のノイズ除去処理部18dは、ノイズの除去処理を行なう。具体的には、ノイズ除去処理部18dは、第1のNRモードにより、RAM13から本画像の画像データと暗黒画像の画像データを読み出して減算処理を行なう。つまり、ノイズ除去処理部18dは、LUT1を参照してISO感度が6400の場合、ノイズ除去のパラメータの設定値(強)に相当する補正処理を行なう。   Step S108: The noise removal processing unit 18d of the CPU 18 performs noise removal processing. Specifically, the noise removal processing unit 18d reads out the image data of the main image and the image data of the dark image from the RAM 13 and performs subtraction processing in the first NR mode. That is, when the ISO sensitivity is 6400 with reference to LUT1, the noise removal processing unit 18d performs a correction process corresponding to the setting value (strong) of the noise removal parameter.

さらに、ノイズ除去処理部18dは、5段階の中で強度を最も強くして、隣接画素間での平均化処理、平滑化処理等の補正処理を行なう。   Furthermore, the noise removal processing unit 18d performs the correction process such as the averaging process and the smoothing process between adjacent pixels, with the highest intensity among the five stages.

続いて、ノイズ除去処理部18dは、ノイズ除去後の本画像の画像データをRAM13に記録する。そして、CPU18は、ステップS109の処理に移行する。   Subsequently, the noise removal processing unit 18 d records the image data of the main image after the noise removal in the RAM 13. And CPU18 transfers to the process of step S109.

ステップS109:CPU18の補正処理部18eは、本画像の画像データの画質劣化を補正するための補正処理を行なう。具体的には、補正処理部18eは、先ず、ノイズ除去後の本画像の画像データをRAM13から読み出す。そして、補正処理部18eは、ステップS104の処理で設定した第2パラメータの設定値に基づいて、本画像の画像データに対して、コントラスト補正、輪郭補正及び彩度補正を行なう。   Step S109: The correction processing unit 18e of the CPU 18 performs a correction process for correcting the image quality deterioration of the image data of the main image. Specifically, the correction processing unit 18e first reads out the image data of the main image after noise removal from the RAM 13. Then, the correction processing unit 18e performs contrast correction, contour correction, and saturation correction on the image data of the main image based on the setting value of the second parameter set in the process of step S104.

続いて、CPU18は、記録処理を行なう。具体的には、CPU18は、補正処理後の画像データを、記録I/F部15を介して記録媒体30に記録する。そして、CPU18は、図6に示すフローの処理を終了させる。   Subsequently, the CPU 18 performs a recording process. Specifically, the CPU 18 records the corrected image data on the recording medium 30 via the recording I / F unit 15. Then, the CPU 18 ends the processing of the flow shown in FIG.

なお、図6に示すフローの処理において、ユーザ入力により、撮像感度優先モード、又は、階調圧縮優先モードが選択された場合、CPU18は、撮影シーンを推定する必要がないため、ステップS103の処理をスキップしてステップS104の処理を行なう。   In the processing of the flow shown in FIG. 6, when the imaging sensitivity priority mode or the gradation compression priority mode is selected by the user input, the CPU 18 does not need to estimate the shooting scene. Is skipped and the process of step S104 is performed.

以上より、第1実施形態の電子カメラ1は、低輝度下の撮影で取得された画像に対して、上記のノイズの除去だけでなく、ノイズの除去で新たに発生する画面全体の荒れやむら等の画質劣化を上記の補正処理で抑制する。例えば、撮像感度優先モードにおいて、ISO感度のレベルを鑑賞上好ましい限界まで上げた場合、電子カメラ1は、その分、コントラスト、輪郭、彩度の調整を弱める等の処理を行なうことにより、画質劣化を抑制できる。   As described above, the electronic camera 1 according to the first embodiment not only removes the noise described above, but also causes rough or unevenness of the entire screen, which is newly generated by removing the noise, with respect to an image acquired by shooting under low luminance. Such image quality deterioration is suppressed by the above correction processing. For example, in the imaging sensitivity priority mode, when the ISO sensitivity level is raised to a desirable limit for viewing, the electronic camera 1 performs image processing such as reducing the adjustment of contrast, contour, and saturation accordingly. Can be suppressed.

或いは、階調圧縮優先モードにおいて、ISO感度のレベルを限界値までに上げないようにするには、電子カメラ1は、階調圧縮の処理を強める等の処理を行なう。これにより、暗部階調の黒つぶれが改善し、被写体が適正な明るさになるので、電子カメラ1は、画質劣化を抑制できる。   Alternatively, in the gradation compression priority mode, in order not to raise the ISO sensitivity level to the limit value, the electronic camera 1 performs processing such as strengthening gradation compression processing. As a result, blackout in the dark portion gradation is improved and the subject has appropriate brightness, so that the electronic camera 1 can suppress image quality deterioration.

したがって、本実施形態の電子カメラ1は、低輝度下の撮影であっても、鑑賞上好ましい画像を取得できる。   Therefore, the electronic camera 1 of the present embodiment can obtain a favorable image for viewing even when shooting under low luminance.

(第2実施形態)
次に、本発明の第2実施形態について説明する。なお、本発明の第1実施形態と本発明の第2実施形態とでは、同じ要素については同じ符号を付して説明を省略する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In the first embodiment of the present invention and the second embodiment of the present invention, the same elements are denoted by the same reference numerals and description thereof is omitted.

すなわち、第2実施形態の電子カメラ1の構成は、図1及び図2に示す第1実施形態の電子カメラ1と共通であって、閃光撮影を考慮する点が相違する。そのため、第2実施形態では、閃光撮影を考慮したテーブルを新たに追加して説明する。   That is, the configuration of the electronic camera 1 according to the second embodiment is the same as that of the electronic camera 1 according to the first embodiment shown in FIGS. 1 and 2 and is different in that flash photography is taken into consideration. For this reason, in the second embodiment, a new table considering flash photography will be described.

図7は、第2実施形態で使用されるテーブルの一例を示す図である。第2実施形態では、低輝度下の撮影において、主要被写体が人物の場合と、風景の場合とで、閃光発光を使い分ける点を特徴とする。つまり、風景が主要被写体の場合は、閃光が主要被写体に届かないからである。   FIG. 7 is a diagram illustrating an example of a table used in the second embodiment. The second embodiment is characterized in that flash light emission is properly used for a case where a main subject is a person and a landscape in photographing under low luminance. That is, when the landscape is the main subject, the flash does not reach the main subject.

図7に示すテーブルは、LUT3、LUT4として予めフラッシュメモリ14に記録されている。実際には、第2実施形態の電子カメラ1は、LUT3、LUT4に限られず、ISO感度毎のLUTを予めフラッシュメモリ14に記録している。   The table shown in FIG. 7 is recorded in advance in the flash memory 14 as LUT3 and LUT4. Actually, the electronic camera 1 of the second embodiment is not limited to the LUT 3 and the LUT 4, and the LUT for each ISO sensitivity is recorded in the flash memory 14 in advance.

LUT3、LUT4は、撮像感度優先モードにおける設定値に対して、第1パラメータ及び第2パラメータがそれぞれ対応付けられている。さらに、LUT3、LUT4には、閃光発光の設定値が追加されている。   In LUT3 and LUT4, the first parameter and the second parameter are associated with the set value in the imaging sensitivity priority mode, respectively. Further, a set value for flash emission is added to LUT3 and LUT4.

一例として、図7(a)に示すLUT3は、撮像感度優先モード(ISO感度:6400)において、主要被写体が風景の場合について例示している。また、図7(b)に示すLUT4は、撮像感度優先モード(ISO感度:6400)において、主要被写体が人物の場合について例示している。LUT3とLUT4とでは、コントラスト補正、輪郭補正、彩度補正、ノイズ除去の設定値は共通である。また、LUT3では、閃光発光がオフの設定であるため、階調圧縮の設定値を「強」にしている。一方、LUT4では、閃光発光がオンの設定であるため、階調圧縮の設定値を「弱」にしている。   As an example, the LUT 3 illustrated in FIG. 7A illustrates a case where the main subject is a landscape in the imaging sensitivity priority mode (ISO sensitivity: 6400). In addition, the LUT 4 illustrated in FIG. 7B illustrates the case where the main subject is a person in the imaging sensitivity priority mode (ISO sensitivity: 6400). LUT3 and LUT4 have the same setting values for contrast correction, contour correction, saturation correction, and noise removal. In LUT3, since the flash emission is set to OFF, the setting value for gradation compression is set to “strong”. On the other hand, in the LUT 4, since the flash emission is set to ON, the gradation compression setting value is set to “weak”.

つまり、低輝度下での撮影時において、主要被写体が風景の場合、第1設定部18aは、撮像素子10の撮像感度の設定値を好ましい画像が得られる上限に優先して設定する。そして、第2設定部18bは、コントラスト補正、輪郭補正、彩度補正のパラメータを「弱」に設定し、階調圧縮は「強」に設定する。さらに、第2設定部18bは、閃光の発光をオフにする。この設定により、電子カメラ1は、鑑賞上好ましい画像を取得できる。   That is, when the main subject is landscape at the time of shooting under low luminance, the first setting unit 18a sets the setting value of the imaging sensitivity of the imaging device 10 with priority over the upper limit for obtaining a preferable image. Then, the second setting unit 18b sets the parameters for contrast correction, contour correction, and saturation correction to “weak”, and sets gradation compression to “strong”. Further, the second setting unit 18b turns off flash emission. With this setting, the electronic camera 1 can acquire a preferable image for viewing.

また、低輝度下での撮影時において、主要被写体が人物(又は動物)の場合、第1設定部18aは、撮像素子10の撮像感度の設定値を好ましい画像が得られる上限に優先して設定する。そして、第2設定部18bは、コントラスト補正、輪郭補正、彩度補正のパラメータを「弱」に設定し、階調圧縮も「弱」に設定する。さらに、第2設定部18bは、閃光の発光をオンにする。すなわち、第2設定部18bは、閃光発光を併用することで、階調圧縮の程度を風景の場合に比較して弱くして画像への影響を少なくする。これにより、電子カメラ1は、鑑賞上好ましい画像を取得できる。   In addition, when the main subject is a person (or animal) at the time of shooting under low luminance, the first setting unit 18a sets the imaging sensitivity setting value of the imaging element 10 in preference to the upper limit for obtaining a preferable image. To do. Then, the second setting unit 18b sets parameters for contrast correction, contour correction, and saturation correction to “weak”, and also sets gradation compression to “weak”. Further, the second setting unit 18b turns on flash emission. In other words, the second setting unit 18b uses the flash emission together to make the degree of gradation compression weaker than in the case of landscape, thereby reducing the influence on the image. Thereby, the electronic camera 1 can acquire a preferable image for viewing.

次に、第2実施形態における電子カメラ1の撮影動作の一例について説明する。   Next, an example of the photographing operation of the electronic camera 1 in the second embodiment will be described.

図8は、第2実施形態の電子カメラ1の撮影動作の一例を示すフローチャートである。なお、第2実施形態の電子カメラ1の動作は、ステップS203、S204、S209及びS210に対応する動作がない点を除いて、第1実施形態の電子カメラ1の動作と共通する。そのため、第1実施形態の電子カメラ1の動作と共通する内容は、簡略化して説明する。   FIG. 8 is a flowchart illustrating an example of the photographing operation of the electronic camera 1 according to the second embodiment. Note that the operation of the electronic camera 1 of the second embodiment is common to the operation of the electronic camera 1 of the first embodiment, except that there is no operation corresponding to steps S203, S204, S209, and S210. Therefore, the contents common to the operation of the electronic camera 1 of the first embodiment will be described in a simplified manner.

ステップS201:CPU18は、半押し操作の指示入力の有無を判定する。レリーズ釦109が半押し操作の指示入力を受け付けない場合(ステップS201:No)、CPU18は、ステップS201を繰り返す。一方、レリーズ釦109が半押し操作の指示入力を受け付けた場合(ステップS201:Yes)、CPU18は、ステップS202の処理に移行する。   Step S201: The CPU 18 determines whether or not a half-press operation instruction is input. When the release button 109 does not accept an instruction input for a half-press operation (step S201: No), the CPU 18 repeats step S201. On the other hand, when the release button 109 receives an instruction input for a half-press operation (step S201: Yes), the CPU 18 proceeds to the process of step S202.

ステップS202:CPU18は、測光処理及び測距処理を行なう。   Step S202: The CPU 18 performs photometry processing and distance measurement processing.

ステップS203:CPU18は、被写体輝度に基づいて、閃光発光の有無を判定する。閃光発光を必要とする場合(ステップS203:Yes)、CPU18は、ステップS204の処理に移行する。一方、閃光発光を必要としない場合(ステップS203:No)、CPU18は、ステップS205の処理に移行する。なお、ユーザ入力により閃光発光の指示入力がなされている場合、CPU18は、ステップS203の処理をスキップして、ステップS204の処理に移行する。   Step S203: The CPU 18 determines the presence or absence of flash emission based on the subject brightness. When flash emission is required (step S203: Yes), the CPU 18 proceeds to the process of step S204. On the other hand, when flash emission is not required (step S203: No), the CPU 18 proceeds to the process of step S205. Note that if a flash light emission instruction is input by a user input, the CPU 18 skips the process of step S203 and proceeds to the process of step S204.

ステップS204:CPU18は、予備発光により発光量の算出処理を行なう。具体的には、CPU18は、閃光装置150の発光制御回路150cに対して予備発光の発光情報を送信する。発光制御回路150cは、発光情報に基づいて発光部150bに対して予備発光を行なわせる。ここで、発光部150bから照射された予備発光の閃光は、被写体を照明する。そして、被写体からの反射光は測光センサ107で画像信号として出力される。CPU18は、その画像信号に基づいて、本発光量の算出を行なう。そして、CPU18は、ステップS205の処理に移行する。   Step S204: The CPU 18 performs a light emission amount calculation process by preliminary light emission. Specifically, the CPU 18 transmits preliminary light emission information to the light emission control circuit 150 c of the flash device 150. The light emission control circuit 150c causes the light emitting unit 150b to perform preliminary light emission based on the light emission information. Here, the flash of preliminary light emitted from the light emitting unit 150b illuminates the subject. The reflected light from the subject is output as an image signal by the photometric sensor 107. The CPU 18 calculates the main light emission amount based on the image signal. And CPU18 transfers to the process of step S205.

ステップS205:撮影シーン推定部18cは、撮影シーンの推定処理を行なう。例えば、撮影シーン推定部18cは、一例として、夜間における人物撮影の撮影シーンを推定したとする。   Step S205: The shooting scene estimation unit 18c performs shooting scene estimation processing. For example, it is assumed that the shooting scene estimation unit 18c estimates a shooting scene of a person shooting at night as an example.

ステップS206:第1設定部18aは、設定モード及び設定値の設定処理を行なう。具体的には、第1設定部18aは、例えば、撮影シーンが夜間における人物撮影である場合、撮像感度優先モードを設定する。そして、第1設定部18aは、図7(b)に示すLUT4を参照する。そして、第1設定部18aは、現在の被写体輝度に基づいて、例えばISO感度を6400に設定する。   Step S206: The first setting unit 18a performs setting mode and setting value setting processing. Specifically, the first setting unit 18a sets the imaging sensitivity priority mode when, for example, the shooting scene is a person shooting at night. Then, the first setting unit 18a refers to the LUT 4 illustrated in FIG. Then, the first setting unit 18a sets the ISO sensitivity to 6400, for example, based on the current subject brightness.

また、第2設定部18bは、LUT4を参照して、ISO感度に対応するノイズ除去を示す第1パラメータの設定値と、コントラスト補正、輪郭補正、彩度補正、階調圧縮補正を示す第2パラメータの設定値とを設定する。   The second setting unit 18b refers to the LUT 4 and sets the first parameter setting value indicating noise removal corresponding to the ISO sensitivity and the second value indicating contrast correction, contour correction, saturation correction, and gradation compression correction. Set the parameter value.

さらに、第2設定部18bは、閃光発光をオンに設定する。この場合、閃光の発光量に応じて、第1設定部18aは、第1パラメータを設定すると共に、第2設定部18bは、第2パラメータとを設定することになる。これにより、第2実施形態の電子カメラ1は、閃光を発光する撮影にもノイズ除去や上記の補正処理を適用することができる。   Further, the second setting unit 18b sets the flash emission to ON. In this case, the first setting unit 18a sets the first parameter and the second setting unit 18b sets the second parameter according to the amount of flash emission. As a result, the electronic camera 1 of the second embodiment can apply the noise removal and the above correction process to shooting with flashing light.

ステップS207:CPU18は、撮影条件の設定処理を行なう。例えば、撮像感度優先モードの場合、ISO感度に基づいて、絞り値、シャッタ速度等の撮影条件を設定する。   Step S207: The CPU 18 performs shooting condition setting processing. For example, in the case of the imaging sensitivity priority mode, shooting conditions such as an aperture value and a shutter speed are set based on the ISO sensitivity.

ステップS208:全押し操作の指示入力の有無を判定する。具体的には、レリーズ釦109が全押し操作の指示入力を所定時間経過しても受け付けない場合(ステップS208:No)、CPU18は、半押し操作後の処理を一旦解除して、ステップS201の処理に戻る。一方、レリーズ釦109が全押し操作の指示入力を受け付けた場合(ステップS208:Yes)、CPU18は、ステップS209の処理に移行する。   Step S208: It is determined whether or not an instruction for full-press operation has been input. Specifically, when the release button 109 does not accept an instruction input for full-press operation even after a predetermined time has elapsed (step S208: No), the CPU 18 once cancels the processing after the half-press operation, and in step S201. Return to processing. On the other hand, when the release button 109 receives an instruction input for a full press operation (step S208: Yes), the CPU 18 proceeds to the process of step S209.

ステップS209:CPU18は、閃光発光の指示の有無を判定する。閃光発光の指示が有りの場合(ステップS209:Yes)、CPU18は、ステップS210の処理に移行する。一方、閃光発光の指示が無しの場合(ステップS209:No)、CPU18は、ステップS211の処理に移行する。   Step S209: The CPU 18 determines whether or not there is a flash emission instruction. When there is an instruction for flashing (step S209: Yes), the CPU 18 proceeds to the process of step S210. On the other hand, when there is no instruction for flash emission (step S209: No), the CPU 18 proceeds to the process of step S211.

ステップS210:CPU18は、閃光発光の処理を行なう。具体的には、CPU18は、閃光装置150の発光制御回路150cに対して本発光の発光情報を送信する。発光制御回路150cは、発光情報に基づいて発光部150bに対して本発光を行なわせる。ここで、発光部150bから照射された本発光の閃光は、被写体を照明する。   Step S210: The CPU 18 performs a flash emission process. Specifically, the CPU 18 transmits light emission information of main light emission to the light emission control circuit 150 c of the flash device 150. The light emission control circuit 150c causes the light emitting unit 150b to perform main light emission based on the light emission information. Here, the main flash emitted from the light emitting unit 150b illuminates the subject.

ステップS211:CPU18は、本発光に同期して本画像及び暗黒画像の撮影処理を行なう。   Step S211: The CPU 18 performs photographing processing of the main image and the dark image in synchronization with the main light emission.

ステップS212:ノイズ除去処理部18dは、ノイズの除去処理を行なう。   Step S212: The noise removal processing unit 18d performs noise removal processing.

ステップS213:補正処理部18eは、本画像の画像データの画質劣化を補正するための補正処理を行なう。続いて、CPU18は、記録処理を行なう。そして、CPU18は、図8に示すフローの処理を終了させる。   Step S213: The correction processing unit 18e performs a correction process for correcting the image quality deterioration of the image data of the main image. Subsequently, the CPU 18 performs a recording process. Then, the CPU 18 ends the process of the flow shown in FIG.

以上より、第2実施形態の電子カメラ1は、必要に応じて閃光を発光して低輝度下の撮影を行なう。そして、第2実施形態の電子カメラ1は、取得された画像に対して、上記のノイズの除去だけでなく、ノイズの除去で新たに発生する画面全体の荒れやむら等の画質劣化を上記の補正処理で抑制する。ここで、電子カメラ1では、ISO感度の上限値(例えば、ISO感度:6400)に対して、1段下げ(例えば、ISO感度:3200)、閃光撮影でISO感度の差分を補っても良い。或いは、電子カメラ1では、ISO感度の上限値(例えば、6400)に対して、1段上の設定値(例えば、ISO感度:12800)で撮影できない場合、閃光撮影でISO感度の差分を補っても良い。何れの場合も、電子カメラ1では、上記のノイズの除去及び補正処理を適用することにより、画質劣化を抑制できる。   As described above, the electronic camera 1 according to the second embodiment emits a flash as necessary to perform shooting at low luminance. The electronic camera 1 according to the second embodiment not only removes the noise described above, but also improves the image quality such as roughness and unevenness of the entire screen newly generated by the noise removal. Suppress with correction processing. Here, in the electronic camera 1, the difference in ISO sensitivity may be compensated for by one step lowering (for example, ISO sensitivity: 3200) with respect to the upper limit value of ISO sensitivity (for example, ISO sensitivity: 6400) and flash photography. Alternatively, if the electronic camera 1 cannot shoot with a set value (for example, ISO sensitivity: 12800) that is one step higher than the upper limit value (for example, 6400) of the ISO sensitivity, flash photography can compensate for the difference in ISO sensitivity. Also good. In any case, in the electronic camera 1, image quality degradation can be suppressed by applying the noise removal and correction processing described above.

したがって、第2実施形態の電子カメラ1は、低輝度下の撮影であっても、鑑賞上好ましい画像を取得できる。   Therefore, the electronic camera 1 according to the second embodiment can obtain a favorable image for viewing even when shooting under low luminance.

(補足事項)
(1)上記の実施形態では、一眼レフレックスタイプの電子カメラを例に挙げたが、レンズ交換を必要としないコンパクトタイプの電子カメラであっても良い。この場合、コンパクトタイプの電子カメラに用いられる撮像素子を上記の測光センサ107として兼用する構成にしても良い。
(Supplementary information)
(1) In the above embodiment, a single-lens reflex type electronic camera is taken as an example, but a compact type electronic camera that does not require lens replacement may be used. In this case, an image sensor used in a compact electronic camera may be used as the photometric sensor 107 described above.

(2)上記の実施形態では、第2パラメータとして、コントラスト補正、輪郭補正、彩度補正、階調圧縮補正のパラメータを用いたが、これらのパラメータに限定されない。例えば、第2パラメータは、明度補正、色相補正、露出補正等のパラメータであっても良い。なお、全てのパラメータを用いる必要はなく、状況に応じて選択的に用いても良い。また、階調圧縮補正を行う際には、露出補正と連動させて行っても良い。   (2) In the above embodiment, parameters for contrast correction, contour correction, saturation correction, and gradation compression correction are used as the second parameter. However, the present invention is not limited to these parameters. For example, the second parameter may be a parameter such as brightness correction, hue correction, and exposure correction. Note that it is not necessary to use all the parameters, and they may be selectively used according to the situation. Further, when performing gradation compression correction, it may be performed in conjunction with exposure correction.

(3)上記の実施形態では、画像処理部12において多分割測光を行うことを例に挙げたが、別に露出制御部を設けて行うようにしても良い。   (3) In the above embodiment, the multi-division photometry is performed in the image processing unit 12 as an example, but an exposure control unit may be provided separately.

なお、被写体からの反射光を測光して出力するのは、測光センサ107ではなく撮像素子10であっても良い。   Note that the image sensor 10 may be used instead of the photometric sensor 107 to measure and output the reflected light from the subject.

1・・・電子カメラ、107・・・測光センサ、18a・・・第1設定部、18b・・・第2設定部、18d・・・ノイズ除去処理部、18e・・・補正処理部
DESCRIPTION OF SYMBOLS 1 ... Electronic camera, 107 ... Photometric sensor, 18a ... 1st setting part, 18b ... 2nd setting part, 18d ... Noise removal process part, 18e ... Correction process part

Claims (3)

被写体からの光を撮像して画像データを生成する撮像素子と、
前記被写体を照明する光を発する発光部と、
前記撮像素子で生成された前記画像データのノイズを第一の処理で除去するノイズ除去処理部と、
前記ノイズ除去処理部でノイズ除去された前記画像データを第二の処理で補正する補正処理部と、
前記被写体の明るさと前記発光部の発光の有無とに基づいて、前記第一の処理と前記第二の処理とを設定する設定部と、
を備え
前記補正処理部は、前記ノイズ除去処理部でノイズ除去された前記画像データの前記ノイズ除去に基づく画質劣化を補正する電子カメラ。
An image sensor that captures light from a subject to generate image data;
A light emitting unit for emitting light for illuminating the subject;
A noise removal processing unit for removing noise of the image data generated by the image sensor in a first process;
A correction processing unit that corrects the image data from which noise has been removed by the noise removal processing unit in a second process;
A setting unit that sets the first process and the second process based on the brightness of the subject and whether or not the light emitting unit emits light;
Equipped with a,
The correction processing unit is an electronic camera that corrects image quality degradation based on the noise removal of the image data from which noise has been removed by the noise removal processing unit .
前記補正処理部は、コントラスト補正、輪郭補正、彩度補正、階調圧縮補正のうちの少なくとも1つにより前記ノイズ除去処理部でノイズ除去された前記画像データの画質劣化を補正する請求項1に記載の電子カメラ。 The correction processing unit, contrast correction, contour correction, color saturation correction, to claim 1 for correcting image degradation of the image data from which noise is removed by the noise removal processing unit by at least one of the gradation compression correction The electronic camera described. 前記被写体の明るさを検出する検出部を備える請求項1又は請求項2に記載の電子カメラ。 The electronic camera according to claim 1, further comprising a detection unit that detects the brightness of the subject.
JP2012049987A 2012-03-07 2012-03-07 Electronic camera Active JP5970871B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012049987A JP5970871B2 (en) 2012-03-07 2012-03-07 Electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012049987A JP5970871B2 (en) 2012-03-07 2012-03-07 Electronic camera

Publications (2)

Publication Number Publication Date
JP2013187660A JP2013187660A (en) 2013-09-19
JP5970871B2 true JP5970871B2 (en) 2016-08-17

Family

ID=49388755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012049987A Active JP5970871B2 (en) 2012-03-07 2012-03-07 Electronic camera

Country Status (1)

Country Link
JP (1) JP5970871B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6483351B2 (en) * 2014-04-28 2019-03-13 オリンパス株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
JP6375806B2 (en) * 2014-09-11 2018-08-22 株式会社ソシオネクスト Image processing apparatus, method, and imaging apparatus
JP2017139646A (en) * 2016-02-04 2017-08-10 リコーイメージング株式会社 Imaging apparatus
KR20210055849A (en) 2019-11-07 2021-05-18 삼성전자주식회사 Electronic device and method for controlling the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7804532B2 (en) * 2005-04-27 2010-09-28 Nikon Corporation Noise reducing device, electronic camera, and image processing program for reducing image noise by using blackout image
JP4949766B2 (en) * 2006-08-09 2012-06-13 オンセミコンダクター・トレーディング・リミテッド Image signal processing device
JP4547465B2 (en) * 2010-04-08 2010-09-22 富士フイルム株式会社 Imaging apparatus and exposure control method

Also Published As

Publication number Publication date
JP2013187660A (en) 2013-09-19

Similar Documents

Publication Publication Date Title
US8106965B2 (en) Image capturing device which corrects a target luminance, based on which an exposure condition is determined
US6853806B2 (en) Camera with an exposure control function
JP4542058B2 (en) Imaging apparatus and imaging method
JP4615458B2 (en) Exposure control method and imaging apparatus
TWI423664B (en) Imaging apparatus and exposure control method
US20130057724A1 (en) Imaging element and imaging apparatus
KR20090098197A (en) Digital photographing apparatus with adjustable flash output, control method thereof and recording medium recording program for executing the method
JP6741881B2 (en) Image processing device, imaging device, image processing method, and program
JP4999871B2 (en) Imaging apparatus and control method thereof
JP5970871B2 (en) Electronic camera
JP2008236032A (en) Photographing device
US20040212703A1 (en) Image sensing apparatus
KR20090095920A (en) Apparatus for Photographing Digital Images, Method of Controlling Exposure, Method of Photographing Digital Images, and Computer Readable Recording Medium Storing Program for the Same Method of Photographing
JP2010011153A (en) Imaging apparatus, imaging method and program
JP5316923B2 (en) Imaging apparatus and program thereof
JP5772064B2 (en) Imaging apparatus and image generation program
JP4869801B2 (en) Imaging device
JP2009200924A (en) Imaging apparatus
JP2003302570A (en) Digital camera
JP5423140B2 (en) Photometric device and imaging device
US12170842B2 (en) Illumination control device, imaging device, and storage medium
JP2013186369A (en) Image display device and image display method
JP5292829B2 (en) Imaging device
JP2006166320A (en) Digital camera with gradation distribution correcting function
JP2006261928A (en) Imaging apparatus and digital camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160105

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160526

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160627

R150 Certificate of patent or registration of utility model

Ref document number: 5970871

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250