JP6651741B2 - Imaging device - Google Patents
Imaging device Download PDFInfo
- Publication number
- JP6651741B2 JP6651741B2 JP2015169640A JP2015169640A JP6651741B2 JP 6651741 B2 JP6651741 B2 JP 6651741B2 JP 2015169640 A JP2015169640 A JP 2015169640A JP 2015169640 A JP2015169640 A JP 2015169640A JP 6651741 B2 JP6651741 B2 JP 6651741B2
- Authority
- JP
- Japan
- Prior art keywords
- luminance
- correction
- image
- variation
- peripheral
- 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
Links
Landscapes
- Exposure Control For Cameras (AREA)
- Studio Devices (AREA)
Description
本発明は、カメラなどの撮像装置に関し、特に、レンズ特性によって生じる画像周辺の光量低下を補正する処理に関する。 The present invention relates to an imaging device such as a camera, and more particularly, to a process for correcting a decrease in light amount around an image caused by lens characteristics.
デジタルカメラなどでは、撮影レンズの特性によって撮影画像の周辺部で光量が低下する。そのため、得られる画像信号に対してシェーディング補正(以下では、周辺光量低下補正ともいう)を施し、光量低下部分の画素に対してゲイン補正する。 In a digital camera or the like, the amount of light decreases in the peripheral portion of a captured image due to the characteristics of a shooting lens. Therefore, shading correction (hereinafter also referred to as “peripheral light amount reduction correction”) is performed on the obtained image signal, and gain correction is performed on pixels in the light amount reduction portion.
周辺光量の低下具合は、使用する撮影レンズの光学特性だけでなく、撮影条件によっても相違する。そこで、画像を複数のブロックに分割し、絞り値、ズーム倍率によって異なる一連の補正係数をブロック毎にメモリに格納する。そして、撮影時の絞り値、ズーム倍率等に応じた補正係数を選択し、シェーディング補正を行う(特許文献1参照)。 The degree of reduction in the peripheral light amount differs depending not only on the optical characteristics of the photographic lens used but also on the photographic conditions. Therefore, the image is divided into a plurality of blocks, and a series of correction coefficients different depending on the aperture value and the zoom magnification are stored in the memory for each block. Then, a shading correction is performed by selecting a correction coefficient according to an aperture value at the time of shooting, a zoom magnification, and the like (see Patent Document 1).
また、撮影シーンによっては、シェーディング補正を行うことで輝度レベルが必要以上に上がってノイズが増加する場合がある。これを防ぐため、周辺光量の低下が目立たない撮影シーンであるか否かを判断し、その場合にはゲインを抑える。例えば、撮影画像を複数のブロックに分割して輝度値、色情報をブロック毎に検出し、青色の領域を周辺光量低下が目立つ空に応じて青色の領域については、空が被写体となっていると判断してシェーディング補正を行う。周辺光量低下が目立たない木々など緑色の領域を検出すると、シェーディング補正を行わない(特許文献2、3参照)。 In some shooting scenes, performing shading correction may increase the luminance level more than necessary and increase noise. In order to prevent this, it is determined whether or not the shooting scene is such that the decrease in the peripheral light amount is not noticeable, and in that case, the gain is suppressed. For example, the captured image is divided into a plurality of blocks, and the luminance value and color information are detected for each block, and the blue region is the subject in the blue region according to the sky where the peripheral light amount is conspicuously reduced. And shading correction is performed. When a green area such as a tree in which the decrease in peripheral light amount is inconspicuous is detected, no shading correction is performed (see Patent Documents 2 and 3).
撮影時の被写体構図は様々であり、露出条件や色情報だけでは、撮影シーンを適切に判断できない場合がある。撮影シーンに不適切な周辺光量低下補正を行うと、撮影画像周辺部の画質低下が生じてしまう。 The composition of the subject at the time of shooting is various, and there are cases where the shooting scene cannot be properly determined only by the exposure conditions and color information. If the peripheral light amount reduction correction that is inappropriate for the shooting scene is performed, the image quality of the peripheral portion of the shooting image is deteriorated.
したがって、様々な撮影シーンに対して適切な周辺光量低下補正を行うことが求められる。 Therefore, it is required to perform appropriate peripheral light amount reduction correction for various shooting scenes.
本発明の撮像装置は、撮影画像の複数の画像領域に対し、画像中心側から周縁方向への輝度差および輝度のバラツキを検出する検出部と、撮影光学系の特性に従って定められる補正係数に基づき、撮影画像の周辺光量低下補正を行う補正部とを備える。複数の画像領域については、周辺光量低下の情報が得られやすいように、それぞれ撮影画像の周辺部を含む複数の画像領域を設定すればよい。例えば、撮影画像の対角方向に沿って複数の画像領域を定めることが可能である。また、撮影画像の中で複数の画像領域を設定する領域設定部を備えてもよい。 An imaging apparatus according to an aspect of the invention includes a detection unit that detects a luminance difference and a variation in luminance from a center side of an image to a peripheral direction with respect to a plurality of image regions of a captured image, based on a correction coefficient determined according to characteristics of an imaging optical system. And a correction unit that corrects a reduction in the amount of peripheral light in a captured image. Regarding a plurality of image regions, a plurality of image regions including the peripheral portion of the captured image may be set so that information on a decrease in the amount of peripheral light is easily obtained. For example, it is possible to define a plurality of image areas along a diagonal direction of a captured image. Further, an area setting unit for setting a plurality of image areas in the captured image may be provided.
そして、補正部が、検出された輝度のバラツキおよび輝度差の少なくともいずれか一方に応じて、補正を実行するか実行しないかということ(以下、実行/非実行とする)を決定し、補正係数の一律調整を行う。あるいは、補正の実行/非実行の決定のみ行い、もしくは、補正係数の調整のみを行うようにしてもよい。例えば、補正部が、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい場合、補正係数を調整する。 Then, the correction unit determines whether or not to execute the correction (hereinafter, referred to as “execution / non-execution”) according to at least one of the detected luminance variation and the luminance difference, and determines a correction coefficient. Make a uniform adjustment. Alternatively, only the execution / non-execution of the correction may be determined, or only the adjustment of the correction coefficient may be performed. For example, the correction unit adjusts the correction coefficient when the degree of luminance variation is smaller than the first threshold and the luminance difference is larger than the second threshold.
輝度特性検出部は、複数の画像領域に対し、輝度差および輝度のバラツキを検出することが可能である。例えば、画像四隅に応じて規定される4つの画像領域、4隅以外の撮影画像周辺領域、あるいは周辺部よりも中心側の領域に対して検出することができる。補正部は、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい画像領域の数に応じて、補正係数を調整すればよい。 The luminance characteristic detecting unit can detect a luminance difference and a luminance variation for a plurality of image areas. For example, it is possible to detect four image areas defined according to the four corners of the image, a peripheral area of the captured image other than the four corners, or an area closer to the center than the peripheral part. The correction unit may adjust the correction coefficient according to the number of image areas in which the degree of luminance variation is smaller than the first threshold and the luminance difference is larger than the second threshold.
例えば、補正部が、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい画像領域の数が複数ある場合、補正係数を調整することが可能である。また、補正部は、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい画像領域の数が複数あって、それらが互いに隣り合う画像領域である場合、補正係数を調整してもよい。この場合、検出部は、互いに隣り合う画像領域を合わせた統合領域に対して輝度のバラツキを検出することが可能である。補正部は、統合領域の輝度のバラツキ程度に応じて、補正係数を調整すればよい。 For example, when the correction unit has a plurality of image areas in which the degree of luminance variation is smaller than the first threshold value and the luminance difference is larger than the second threshold value, the correction unit can adjust the correction coefficient. Further, the correction unit sets the correction coefficient when the number of image areas in which the degree of luminance variation is smaller than the first threshold value and the luminance difference is larger than the second threshold value is plural and the image areas are adjacent to each other. It may be adjusted. In this case, the detection unit can detect a variation in luminance for an integrated area obtained by combining adjacent image areas. The correction unit may adjust the correction coefficient according to the degree of variation in the brightness of the integrated area.
一方、補正部は、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい画像領域の数が所定数(例えば1)以下である場合、あるいは、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい画像領域の数が複数であっても互いに隣り合う画像領域ではない場合、周辺光量低下補正を行わないようにすることも可能である。 On the other hand, the correction unit determines whether the number of image areas in which the luminance variation is smaller than the first threshold and the luminance difference is larger than the second threshold is equal to or less than a predetermined number (for example, 1), or in which the luminance variation is smaller. Even when the number of image areas smaller than the first threshold value and the luminance difference is larger than the second threshold value is plural and the image areas are not adjacent to each other, it is possible not to perform the peripheral light amount reduction correction. .
本発明の他の態様であるプログラムは、撮像装置を、撮影画像の画像領域に対し、画像中心側から周縁方向への輝度差および輝度のバラツキを検出する検出手段と、撮影光学系の特性に従って定められる補正係数に基づき、撮影画像の周辺光量低下補正を行う補正手段として機能させ、検出された輝度のバラツキおよび輝度差の少なくともいずれか一方に応じて、補正の実行/非実行の決定および/または補正係数の一律調整を行うように、補正手段として機能させる。 According to another aspect of the present invention, there is provided a program that causes an imaging device to detect a luminance difference and a luminance variation from an image center side to a peripheral direction with respect to an image area of a captured image, and a characteristic according to characteristics of the imaging optical system. Based on the determined correction coefficient, the correction unit is made to function as a correction unit that corrects a decrease in peripheral light amount of a captured image, and determination of execution / non-execution of correction and / or execution of correction is performed in accordance with at least one of the detected luminance variation and luminance difference. Alternatively, it is made to function as correction means so as to perform uniform adjustment of the correction coefficient.
また、本発明の他の態様である画像処理方法は、撮影画像の複数の画像領域に対し、画像中心側から周縁方向への輝度差および輝度のバラツキを検出し、撮影光学系の特性に従って定められる補正係数に基づき、撮影画像の周辺光量低下補正を行う方法であって、検出された輝度のバラツキおよび輝度差の少なくともいずれか一方に応じて、補正の実行/非実行の決定および/または補正係数の一律調整を行う。 Further, an image processing method according to another aspect of the present invention detects a luminance difference and a luminance variation from the image center side to a peripheral direction with respect to a plurality of image areas of a captured image, and determines the luminance difference according to characteristics of the imaging optical system. A method of performing a peripheral light amount reduction correction of a captured image based on a correction coefficient to be performed, and determining and / or performing correction execution / non-execution in accordance with at least one of a detected luminance variation and a luminance difference. Performs uniform adjustment of coefficients.
本発明によれば、撮影シーンに適した周辺光量低下補正を行うことができる。 According to the present invention, it is possible to perform peripheral light amount reduction correction suitable for a shooting scene.
以下では、図面を参照して本実施形態であるデジタルカメラについて説明する。 Hereinafter, a digital camera according to the present embodiment will be described with reference to the drawings.
図1は、本実施形態であるデジタルカメラのブロック図である。 FIG. 1 is a block diagram of a digital camera according to the present embodiment.
デジタルカメラ100は、ここではミラーレス型のデジタルカメラとして構成されており、モードダイヤル、レリーズボタン、十字ボタン、実行ボタンなどからなる操作部材104に対するユーザの入力操作に従い、撮影、記録画像の再生、モード設定などが行われる。カメラ正面側には撮影レンズ107を収納する鏡筒102が着脱自在に取り付けられており、カメラ背面には、LCD106が設けられている。 Here, the digital camera 100 is configured as a mirrorless digital camera, and shoots, reproduces a recorded image, reproduces a recorded image according to a user's input operation on an operation member 104 including a mode dial, a release button, a cross button, an execution button, and the like. Mode setting and the like are performed. A lens barrel 102 for accommodating a photographing lens 107 is detachably mounted on the front side of the camera, and an LCD 106 is provided on the rear side of the camera.
CPU、RAMなどを含む信号処理部101は、レリーズボタンなどの操作部材104に対するボタン操作に応じて、露出制御、記録動作、再生表示動作などカメラ全体の動作制御を行う。また、画像信号処理などを実行する画像処理部132および補正部134を備える。カメラ動作制御のプログラムは、図示しないROMなどの記録媒体に記憶されている。 A signal processing unit 101 including a CPU, a RAM, and the like performs operation control of the entire camera, such as exposure control, recording operation, and reproduction display operation, in response to a button operation on an operation member 104 such as a release button. The image processing apparatus further includes an image processing unit 132 and a correction unit 134 that execute image signal processing and the like. The camera operation control program is stored in a recording medium such as a ROM (not shown).
撮影レンズ107は、被写体からの光が入射するとCCD、CMOSセンサなどのイメージセンサ111に光を結像し、これによって被写体像がイメージセンサ111に形成される。イメージセンサ111の受光面上には、R,G,Bなどのカラーフィルタアレイ(図示せず)が配置されている。 When light from a subject enters the imaging lens 107, the image is formed on an image sensor 111 such as a CCD or a CMOS sensor, whereby a subject image is formed on the image sensor 111. On the light receiving surface of the image sensor 111, a color filter array (not shown) of R, G, B, etc. is arranged.
スルー画像表示の場合、タイミングジェネレータ(TG)120からの駆動信号に従い、1フィールド又は1フレーム分の画素信号が所定の時間間隔(例えば、1/60秒あるいは1/30秒)でイメージセンサ111から読み出される。読み出された画素信号は、AFE回路130において増幅処理、デジタル化など施された後、信号処理部101の画像処理部132に送られる。 In the case of a through image display, pixel signals for one field or one frame are output from the image sensor 111 at predetermined time intervals (for example, 1/60 seconds or 1/30 seconds) in accordance with a drive signal from a timing generator (TG) 120. Is read. The read pixel signal is subjected to amplification processing, digitization, and the like in the AFE circuit 130, and then sent to the image processing unit 132 of the signal processing unit 101.
画像信号処理部132では、色補間処理、色変換処理、ホワイトバランス調整処理などが画素信号に対して施される。これにより、R,G,Bの画素値が画素毎に求められ、カラー画像信号が生成される。生成されたカラー画像信号は、画像メモリ103に一時的に格納される。信号処理部101は、カラー画像信号に基づいてLCD106を駆動し、これによってリアルタイムの動画像が表示される。 In the image signal processing unit 132, color interpolation processing, color conversion processing, white balance adjustment processing, and the like are performed on the pixel signals. Thus, the pixel values of R, G, and B are obtained for each pixel, and a color image signal is generated. The generated color image signal is temporarily stored in the image memory 103. The signal processing unit 101 drives the LCD 106 based on the color image signal, whereby a real-time moving image is displayed.
レリーズボタンが半押しされると、イメージセンサ111から読み出される画素信号に基づいて、コントラスト式AF処理が実行される。信号処理部101は、レンズ駆動部136を制御して撮影レンズ107を駆動し、コントラスト値がピークとなる合焦位置を検出する。また、コントラスト式AF処理とともに、イメージセンサ111から読み出される画素信号に基づいて被写体像の明るさが検出され、露出値が演算される。 When the release button is half-pressed, a contrast AF process is executed based on a pixel signal read from the image sensor 111. The signal processing unit 101 controls the lens driving unit 136 to drive the photographing lens 107, and detects an in-focus position where the contrast value reaches a peak. In addition to the contrast AF processing, the brightness of the subject image is detected based on the pixel signal read from the image sensor 111, and the exposure value is calculated.
レリーズボタンが全押しされると、露出制御部138は、露出値に基づいて図示しないシャッタ、絞り等を駆動し、露出制御する。これにより、1フレーム分の画素信号がイメージセンサ111から読み出される。 When the release button is fully pressed, the exposure control unit 138 drives a shutter (not shown) and a diaphragm (not shown) based on the exposure value to control the exposure. As a result, pixel signals for one frame are read from the image sensor 111.
画像信号処理部132では、読み出された1フレーム分の画素信号に基づいて静止画像データを生成する。静止画像データは、圧縮状態、あるいは非圧縮のままでメモリカードなどの記録媒体105に記録する。再生モードが設定されると、選択された記録画像がLCD106に表示される。 The image signal processing unit 132 generates still image data based on the read pixel signals for one frame. The still image data is recorded on the recording medium 105 such as a memory card in a compressed state or uncompressed. When the reproduction mode is set, the selected recorded image is displayed on the LCD 106.
補正部134は、生成されたR,G,Bカラー画像信号に対してシェーディング補正処理を実行する。すなわち、装着された撮影レンズ107のレンズ特性等に起因する撮影画像の周辺部光量低下を補償するように、ゲイン補正する。ただし、シェーディング補正した後にR,G,Bカラー画像信号を生成してもよい。鏡筒102のレンズメモリ108には、レンズ設計値(あるいは測定値、調整値などでもよい)に関するデータが格納されており、そのデータおよび露出条件などに基づいてゲイン値相応の補正係数が算出されると、画素値に対して補正係数を乗じる。 The correction unit 134 performs a shading correction process on the generated R, G, B color image signals. That is, the gain is corrected so as to compensate for a decrease in the amount of light in the peripheral portion of the captured image due to the lens characteristics and the like of the mounted imaging lens 107. However, the R, G, and B color image signals may be generated after the shading correction. The lens memory 108 of the lens barrel 102 stores data relating to lens design values (or measurement values, adjustment values, etc.), and a correction coefficient corresponding to a gain value is calculated based on the data and exposure conditions. Then, the pixel value is multiplied by the correction coefficient.
本実施形態では、撮影画像周辺部の輝度特性に基づいて撮影シーンに応じたシェーディング補正を行う。具体的には、撮影画像周辺部の輝度のバラツキおよび輝度低下量の程度に応じて、シェーディング補正の実行/非実行を決定するとともに、撮影シーンに合わせて補正係数を調整/修正する。以下、図2〜6を用いて詳述する。 In the present embodiment, shading correction is performed according to the shooting scene based on the luminance characteristics of the peripheral portion of the shot image. Specifically, execution / non-execution of shading correction is determined according to the variation in luminance and the degree of luminance reduction in the peripheral portion of the captured image, and the correction coefficient is adjusted / corrected according to the captured scene. Hereinafter, this will be described in detail with reference to FIGS.
図2は、撮影画像に対し、輝度特性解析のため規定される画像領域を示した図である。図3は、撮影画像の対角方向に沿った画像領域を示した図である。 FIG. 2 is a diagram illustrating an image area defined for a luminance characteristic analysis with respect to a captured image. FIG. 3 is a diagram illustrating an image area along a diagonal direction of a captured image.
図2では、マトリクス状にM×N個並んだ画素Pによって構成される撮影画像PIを示している。撮影画像PIには、中心Cから対角方向に沿った対角領域S1、S2に沿ってそれぞれ4つの領域(以下では、コーナー方向領域という)C1〜C4が規定される。図3には、その一例が示されている。 FIG. 2 shows a captured image PI including M × N pixels P arranged in a matrix. In the captured image PI, four areas (hereinafter, referred to as corner direction areas) C1 to C4 are defined along diagonal areas S1 and S2 along the diagonal direction from the center C. FIG. 3 shows an example.
撮影画像右上隅を含むコーナー方向領域C1を構成する画素は、撮影画像PIの中心Cから右上端E1の方向に沿った対角領域S2の中で中心領域C0を除いた領域に相当する。そして、コーナー方向領域C1内には、撮影画像右上隅付近の周辺領域c1が規定されており、さらに周辺領域c1には、画像中心C側に近い領域(以下、中心側領域という)CA1と、右上端E1に近い領域(以下、端側領域という)CB1とが規定される。中心側領域CA1と端側領域CB1を構成する画素の数は、ここではほぼ等しい。 The pixels constituting the corner direction area C1 including the upper right corner of the captured image correspond to an area excluding the center area C0 in the diagonal area S2 along the direction of the upper right end E1 from the center C of the captured image PI. A peripheral area c1 near the upper right corner of the captured image is defined in the corner direction area C1, and an area near the image center C side (hereinafter, referred to as a center side area) CA1 is further included in the peripheral area c1. An area near the upper right end E1 (hereinafter, referred to as an end area) CB1 is defined. Here, the number of pixels forming the center side area CA1 and the end side area CB1 is substantially equal.
他のコーナー方向領域C2〜C4についても、コーナー方向領域C1と同様、周辺領域c2〜c4が規定され、周辺領域c2〜c4は、中心側領域CA2、CA3、CA4と端側領域CB2、CB3、CB4とによって構成される。そして、4隅に応じた周辺領域c1〜c4を、輝度解析対象エリアとして定める。 Similarly to the corner direction area C1, the peripheral areas c2 to c4 are defined for the other corner direction areas C2 to C4, and the peripheral areas c2 to c4 are the center side areas CA2, CA3, CA4 and the end side areas CB2, CB3, CB4. Then, peripheral areas c1 to c4 corresponding to the four corners are determined as luminance analysis target areas.
レンズ特性等に起因する画像周辺領域、特に画像4隅付近における光量低下は、撮影シーンによって目立つ場合と目立たない場合がある。例えば、人物や建造物などの被写体が視野(フレーム)周辺に存在する場合、光量低下は目立たない。一方、青空などを撮影する場合、画像周辺の光量低下が目立つ。 The decrease in the amount of light around the image, particularly around the four corners of the image, due to lens characteristics or the like may be noticeable or inconspicuous depending on the shooting scene. For example, when a subject such as a person or a building exists around the field of view (frame), the decrease in light amount is inconspicuous. On the other hand, when photographing a blue sky or the like, a decrease in the amount of light around the image is conspicuous.
さらに、構図によっては、周辺光量低下の度合いが、画像周辺4隅において一様にならない。例えば、撮影画像下半分がビルなどの建物で上半分青空のような構図の場合、画像周辺でも光量低下の目立つ部分と目立たない部分が混在する。 Further, depending on the composition, the degree of decrease in the peripheral light amount is not uniform at the four corners around the image. For example, in a case where the lower half of the captured image is a building such as a building and the upper half is a blue sky, a portion where the amount of light decreases is conspicuous and a portion where the light amount is not conspicuous are also mixed around the image.
そこで、周辺領域c1〜c4それぞれの輝度特性を解析することによって、周辺光量低下の目立ち具合を検出する。具体的には、周辺領域c1〜c4において輝度のバラツキが大きい場合、あるいは、画像中心側から画像端部(周縁)側に向けての輝度低下量の程度が小さい場合、光量低下が目立たなくなることを踏まえ、輝度のバラツキの程度および輝度差を周辺領域ごとに検出する。 Therefore, by analyzing the luminance characteristics of each of the peripheral regions c1 to c4, the degree of the decrease in the peripheral light amount is detected. Specifically, when the variation in the luminance is large in the peripheral regions c1 to c4, or when the degree of the luminance decrease from the image center side to the image end (peripheral) side is small, the decrease in the light amount becomes inconspicuous. Based on the above, the degree of luminance variation and the luminance difference are detected for each peripheral area.
そして、周辺領域c1〜c4それぞれにおける輝度のバラツキおよび輝度差の程度に応じて、シェーディング補正を実行するか否かを判断する。また、シェーディング補正を実行する場合、周辺領域c1〜c4全体におけるバラツキおよび輝度低下の程度を鑑みて、補正係数の調整を行う。 Then, it is determined whether or not to perform the shading correction according to the luminance variation and the degree of the luminance difference in each of the peripheral areas c1 to c4. When the shading correction is performed, the correction coefficient is adjusted in consideration of the variation in the entire peripheral areas c1 to c4 and the degree of luminance reduction.
図4は、シェーディング補正処理のフローチャートである。 FIG. 4 is a flowchart of the shading correction process.
ステップS1では、対角領域S1、S2に属する各画素の輝度値Lvが算出される。輝度値の算出方法は様々であり、例えば、R,G,Bの画像信号に基づいて輝度、色差信号を算出し、各画素の輝度値を求めることが可能である。また、輝度レベルに相応するGの画素値を輝度値として求めることも可能である。 In step S1, the luminance value Lv of each pixel belonging to the diagonal areas S1 and S2 is calculated. There are various methods of calculating the luminance value. For example, it is possible to calculate the luminance and color difference signals based on the R, G, and B image signals and obtain the luminance value of each pixel. Further, it is also possible to obtain a pixel value of G corresponding to the luminance level as a luminance value.
ステップS2では、周辺領域c1〜c4それぞれに対し、その領域内の輝度値Lvに基づいて標準偏差sdが求められる。ステップS3では、4隅の位置関係で隣り合う周辺領域(c1、c2)、(c2、c3)、(c3、c4)、(c4、c1)を統合した標準偏差(以下、統合標準偏差という)tsdが算出される。これは、後述する補正係数の修正具合を決定するときに使用される。 In step S2, a standard deviation sd is obtained for each of the peripheral regions c1 to c4 based on the luminance value Lv in that region. In step S3, the standard deviation obtained by integrating the peripheral regions (c1, c2), (c2, c3), (c3, c4), and (c4, c1) adjacent to each other in the positional relationship of the four corners (hereinafter, referred to as an integrated standard deviation) tsd is calculated. This is used when determining the degree of correction of a correction coefficient described later.
ステップS4では、周辺領域c1〜c4に対し、中心側領域CA1と端部側領域CB1との輝度差ΔLが求められる。ここでは、中心側領域CA1、端部側領域CB1それぞれの輝度平均値を求め、その差(絶対値)を中心側〜周縁側の輝度減少量として算出する。ただし、それ以外の方法で中心側領域CA1と端部側領域CB1との輝度差(任意の画素同士の輝度差など)を求めてもよい。 In step S4, a luminance difference ΔL between the center side area CA1 and the end side area CB1 with respect to the peripheral areas c1 to c4 is obtained. Here, the luminance average value of each of the center side area CA1 and the end side area CB1 is obtained, and the difference (absolute value) is calculated as the luminance decrease amount from the center side to the peripheral side. However, a luminance difference between the center side area CA1 and the end side area CB1 (such as a luminance difference between arbitrary pixels) may be obtained by other methods.
ステップS5では、周辺領域c1〜c4に対して算出された標準偏差sdおよび輝度差ΔLに対し、標準偏差sdが閾値(第1の閾値)TAより低く、かつ、輝度差ΔLが周縁方向に向けて低下し、その大きさが閾値(第2の閾値)TBより大きいか否かが判断される。標準偏差sdが閾値TAより低く、輝度差ΔLが閾値TBより大きい場合、輝度バラツキがあまりなく、輝度低下が生じていることから、その周辺領域では周辺光量低下が目立つと判断する。なお、閾値TA、閾値TBは、あらかじめメモリなどに記憶されており、様々な条件に応じてその値を設定することが可能である。 In step S5, the standard deviation sd is lower than a threshold value (first threshold value) TA, and the luminance difference ΔL is directed to the peripheral direction with respect to the standard deviation sd and the luminance difference ΔL calculated for the peripheral regions c1 to c4. It is determined whether the magnitude is larger than a threshold (second threshold) TB. When the standard deviation sd is lower than the threshold value TA and the luminance difference ΔL is higher than the threshold value TB, there is little variation in luminance and a decrease in luminance occurs. The threshold value TA and the threshold value TB are stored in a memory or the like in advance, and the values can be set according to various conditions.
標準偏差sdが閾値TAより低くて輝度差ΔLが閾値TBより大きい周辺領域が3つ、あるいは4つ存在する場合、ステップS6において、各標準偏差と輝度差に応じて補正係数を調整することが決定される(以下では、この場合行われる処理を「処理1」という)。ただし、後述するように補正割合適用率が100%になる場合、補正係数がそのまま使用されて修正されない。一方、標準偏差sdが閾値TAより低くて輝度差ΔLが閾値TBより大きい周辺領域が2つの場合、互いに隣接する周辺領域であるか否かが判断される(S7)。 When there are three or four peripheral areas where the standard deviation sd is lower than the threshold TA and the luminance difference ΔL is larger than the threshold TB, in step S6, the correction coefficient may be adjusted according to each standard deviation and the luminance difference. It is determined (hereinafter, the process performed in this case is referred to as “process 1”). However, when the correction ratio application rate becomes 100% as described later, the correction coefficient is used as it is and is not corrected. On the other hand, when there are two peripheral regions where the standard deviation sd is lower than the threshold value TA and the luminance difference ΔL is larger than the threshold value TB, it is determined whether or not the peripheral regions are adjacent to each other (S7).
互いに隣接する周辺領域である、すなわち、2つの周辺領域が(c1、c2)、(c2、c3)、(c3、c4)、(c4、c1)のいずれかの組み合わせである場合、ステップS8において、各標準偏差と輝度差に応じて補正係数を調整することが決定される(以下では、この場合行われる処理を「処理2」という)。 If the peripheral regions are adjacent to each other, that is, if the two peripheral regions are any combination of (c1, c2), (c2, c3), (c3, c4), and (c4, c1), in step S8, It is determined that the correction coefficient is adjusted according to each standard deviation and the luminance difference (hereinafter, the processing performed in this case is referred to as “processing 2”).
一方、4つの周辺領域c1〜c4の中で標準偏差sdが閾値TAより低くて輝度差ΔLが閾値TBより大きい周辺領域が存在しない、あるいは1つである場合、撮影画像全体的に見て周辺光量低下が目立たない撮影シーンとみなせることから、シェーディング補正を行わないことが決定される(S9)。また、互いに隣接するコーナー方向領域ではない場合においても、シェーディング補正を行わないことが決定される(S9)。 On the other hand, if the standard deviation sd is lower than the threshold value TA and the peripheral difference ΔL is larger than the threshold value TB, or if there is only one peripheral region among the four peripheral regions c1 to c4, the peripheral region is viewed as a whole of the captured image. Since it can be regarded as a photographing scene in which the decrease in light amount is inconspicuous, it is determined not to perform the shading correction (S9). Also, it is determined not to perform the shading correction even in the case where the areas are not adjacent to each other in the corner direction (S9).
図5は、補正係数を調整する処理1のフローチャートである。ここでは、輝度のバラツキおよび輝度差が生じている周辺領域が、3つもしくは4つある場合の補正係数の修正処理を示す。 FIG. 5 is a flowchart of processing 1 for adjusting the correction coefficient. Here, correction processing of a correction coefficient in a case where there are three or four peripheral areas in which a luminance variation and a luminance difference have occurred is shown.
ステップS11において標準偏差の平均値Asdが算出されると、ステップS12においてシェーディング補正の補正係数を修正する暫定値(ここでは、暫定補正割合適用率という)が算出される。暫定補正割合適用率は、以下の式によって求められる。ただし、Sqrtmaxは標準偏差最大値、Sqrtminは標準偏差最小値、Ratiorefは暫定補正割合適用率を示す。
Ratioref=(Sqrtmax−Asd)÷(Sqrtmax−Sqrtmin)
・・・(1)
When the average value Asd of the standard deviation is calculated in Step S11, a provisional value (here, referred to as a provisional correction ratio application rate) for correcting the correction coefficient of the shading correction is calculated in Step S12. The provisional correction ratio application rate is obtained by the following equation. Here, Sqrtmax indicates the maximum standard deviation, Sqrtmin indicates the minimum standard deviation, and Ratioref indicates the provisional correction ratio application rate.
Ratioref = (Sqrtmax-Asd) ÷ (Sqrtmax-Sqrtmin)
... (1)
ステップS13では、隣り合うコーナー方向領域に関して輝度値の標準偏差(以下では、統合標準偏差という)の平均値Atsdが算出される。対象となるコーナー方向領域が4つ存在する場合、4つの統合標準偏差平均値Atsdが算出される。3つの場合、2つの統合標準偏差平均値Atsdが算出される。 In step S13, the average value Atsd of the standard deviation (hereinafter, referred to as an integrated standard deviation) of the luminance values for the adjacent corner direction areas is calculated. If there are four target corner direction regions, four integrated standard deviation average values Atsd are calculated. In the case of three, two integrated standard deviation average values Atsd are calculated.
ステップS14では、ステップS13で算出された統合標準偏差平均値Atsdに基づき、ステップS12において算出された暫定補正割合適用率Ratiorefが修正され、以下の式によって補正割合適用率Raitorefpairが求められる。
Ratiorefpair=
Ratioref×(Sqrtmax−Atsd)÷(Sqrtmax−Sqrtmin)
・・・(2)
In step S14, the provisional correction ratio application rate Ratioref calculated in step S12 is corrected based on the integrated standard deviation average value Atsd calculated in step S13.
Ratiofair =
Ratioref × (Sqrtmax−Atsd) ÷ (Sqrtmax−Sqrtmin)
... (2)
(2)式による暫定補正割合適用率から実際に使用される補正割合適用率の算出は、撮影シーンに適した補正係数の修正量を算出するためのものであり、例えば、撮影画像の半分が空、残り半分がビルなどの建物が写し出されている場合、4つの周辺領域のうち空が写し出される領域にとってはシェーディング補正を強くかけることが適正であっても、建物が写し出される領域では光量低下が目立たない。 The calculation of the correction rate application rate that is actually used from the provisional correction rate application rate by equation (2) is for calculating the correction amount of the correction coefficient suitable for the shooting scene. If the sky and the other half show buildings, etc., the shading correction is appropriate for the four surrounding areas where the sky is projected, but the amount of light decreases in the areas where the buildings are projected Is not noticeable.
本実施形態では、補正係数の修正程度(補正割合適用率Ratiorefpair)を、周辺領域の位置に関係なく一律に適用する。そのため、光量低下の目立たない周辺領域にシェーディング補正を強くかけてしまう恐れがある。そこで、隣り合うコーナー方向領域に関して算出した統合標準偏差平均値に基づいて暫定補正割合適用率を修正し、実際に使用する補正割合適用率を得る(S14)。 In the present embodiment, the degree of correction of the correction coefficient (correction rate application rate Ratiorefair) is applied uniformly regardless of the position of the peripheral area. For this reason, there is a possibility that the shading correction may be strongly applied to a peripheral area where the light quantity decrease is not conspicuous. Therefore, the provisional correction ratio application ratio is corrected based on the integrated standard deviation average value calculated for the adjacent corner direction regions, and the correction ratio application ratio actually used is obtained (S14).
例えば、隣り合うコーナー方向領域の標準偏差についてその度合いが相違する場合、すなわち、輝度のバラツキ程度が相違する場合、(2)式によって暫定補正割合適用率よりも小さい値に修正された補正割合適用率が得られる。これによって、光量低下が目立たない撮影画像周辺部分において過度なシェーディング補正がかからない。 For example, when the degrees of the standard deviation of the adjacent corner direction areas are different, that is, when the degree of the variation of the luminance is different, the correction ratio application corrected to a value smaller than the provisional correction ratio application ratio by the equation (2). Rate is obtained. As a result, excessive shading correction is not applied to a peripheral portion of a captured image in which the light amount is not conspicuous.
ステップS15では、レンズ特性に応じた補正係数の値が調整される。具体的には、補正係数に対して補正割合を乗じるとともに、その補正割合に対して補正割合適用率を乗じる。ここで、補正割合とは、補正係数を画素値に反映さる程度を調整する値であり、画素値に対してゲインを過度にかけてオーバーゲイン(1以上)とならないように光軸中心からの距離に応じて定められている。撮影条件などに応じて任意に設定される。補正割合100%のときには補正係数値をそのまま使用し、補正割合の値が小さくなるほど補正係数の値が減少する。補正割合0%の場合には、補正係数が1倍の値と算出され、画素値に乗じられる。すなわち、シェーディング補正がかからない。 In step S15, the value of the correction coefficient according to the lens characteristics is adjusted. Specifically, the correction coefficient is multiplied by the correction ratio, and the correction ratio is multiplied by the correction ratio application ratio. Here, the correction ratio is a value for adjusting the degree to which the correction coefficient is reflected in the pixel value. The correction ratio is set to a distance from the optical axis center so that the gain is excessively applied to the pixel value so as not to be an overgain (1 or more). It is determined accordingly. It is set arbitrarily according to the shooting conditions. When the correction ratio is 100%, the correction coefficient value is used as it is, and as the correction ratio value decreases, the correction coefficient value decreases. When the correction ratio is 0%, the correction coefficient is calculated as a value of 1 and multiplied by the pixel value. That is, no shading correction is applied.
一方、(2)式で算出された補正割合適用率Raitorefpairは、この補正割合の値を調整する補正値であり、補正割合適用率Raitorefpairを補正割合に乗じることによって、結果的に補正係数の値が修正される(S14)。そして、修正された補正係数に基づいてシェーディング補正が行われる。 On the other hand, the correction ratio application rate Raitorefpair calculated by the equation (2) is a correction value for adjusting the value of the correction ratio. By multiplying the correction ratio by the correction ratio application ratio Raitorefpair, the correction coefficient value is consequently obtained. Is corrected (S14). Then, shading correction is performed based on the corrected correction coefficient.
シェーディング補正に関しては、様々な方法が適用可能である。ここでは、コーナー方向領域C1、C2に沿って中心Cから一定間隔ずつ離れた画素に対する補正係数のデータをレンズデータから算出し、径方向および撮影画像中心C周りの同心円状ラインに沿って線形補間を施すことで、レンズデータ対象外の画素について補正係数を演算する。そして、各画素の補正係数の値に対して補正割合適用率を乗じた補正割合を掛け、修正された補正係数の値によってシェーディング補正が施される。ただし、線形補間以外の補間演算など他の方法で求めてもよい。また、補正割合適用率が画面一律の場合、中心からの距離に応じて補正値が定まることから、対象画素を挟む2つの画素位置のレンズデータから算出した補正値に基づいて補間すればよい。 Various methods can be applied to the shading correction. Here, the correction coefficient data for the pixels spaced at a fixed interval from the center C along the corner direction areas C1 and C2 is calculated from the lens data, and is linearly interpolated along the radial direction and the concentric line around the center C of the captured image. , A correction coefficient is calculated for pixels that are not targeted for lens data. Then, the value of the correction coefficient of each pixel is multiplied by a correction ratio obtained by multiplying the correction ratio application rate, and shading correction is performed by the corrected correction coefficient value. However, it may be obtained by another method such as an interpolation operation other than the linear interpolation. Further, when the correction ratio application rate is uniform on the screen, the correction value is determined according to the distance from the center, so interpolation may be performed based on the correction values calculated from lens data at two pixel positions sandwiching the target pixel.
図6は、補正係数を調整する処理2のフローチャートである。ここでは、輝度のバラツキおよび輝度差が生じているコーナー方向領域が隣り合う2つの場合の補正係数の修正処理を示す。 FIG. 6 is a flowchart of processing 2 for adjusting the correction coefficient. Here, correction processing of a correction coefficient in a case where two corner-direction areas in which a luminance variation and a luminance difference occur are adjacent to each other is shown.
ステップS21では、対象となるコーナー方向領域2つのうち標準偏差sdの大きい方が選択される。そしてステップS22では、選択された標準偏差sdに基づいて暫定補正割合適用率が以下の式によって求められる。ただし、Sqrtmaxは標準偏差最大値、Sqrtminは標準偏差最小値、Ratiorefは暫定補正割合適用率を示す。
Ratioref=(Sqrtmax−sd)÷(Sqrtmax−Sqrtmin)
・・・(3)
In step S21, the one having the larger standard deviation sd is selected from two target corner direction areas. In step S22, the provisional correction ratio application rate is calculated by the following equation based on the selected standard deviation sd. Here, Sqrtmax indicates the maximum standard deviation, Sqrtmin indicates the minimum standard deviation, and Ratioref indicates the provisional correction ratio application rate.
Ratioref = (Sqrtmax-sd) ÷ (Sqrtmax-Sqrtmin)
... (3)
そして、隣り合う2つのコーナー方向領域に関して求められた輝度値の統合標準偏差tsdに基づき、暫定補正割合適用率Ratiorefから補正割合適用率Ratiorefpairが求められる(S23、S24)。
Ratiorefpair
=Ratioref×(Sqrtmax−tsd)÷(Sqrtmax−Sqrtmin)
・・・(4)
Then, based on the integrated standard deviation tsd of the luminance values obtained for the two adjacent corner direction regions, the correction ratio application ratio Ratioorpair is obtained from the provisional correction ratio application ratio Ratioorref (S23, S24).
Ratiofair
= Ratiooref × (Sqrtmax−tsd) ÷ (Sqrtmax−Sqrtmin)
... (4)
ステップS25の実行は、図5のステップS15の実行と同じであり、補正係数に対し補正割合適用率が乗じられた補正割合が乗じられる。これにより、算出された補正割合適用率Ratiorefpairに基づいたシェーディング補正処理が実行される。 The execution of step S25 is the same as the execution of step S15 in FIG. 5, in which the correction coefficient is multiplied by the correction rate obtained by multiplying the correction coefficient by the correction rate application rate. As a result, the shading correction process is performed based on the calculated correction ratio application rate Ratiorefair.
なお、本実施形態では、補正係数に補正割合および補正割合適用率を乗じることで周辺光量低下の補正を行っているが、補正割合を乗じずにレンズデータから算出される補正係数値に対して補正割合適用率だけを乗じる構成としてもよい。また、(4)式によって求められる補正割合適用率が1、すなわち100%の場合、補正係数に乗じられるのは補正割合だけとなり、輝度差および輝度のバラツキに応じた補正係数の修正は、結果的に行われない。 In the present embodiment, the correction of the peripheral light amount is performed by multiplying the correction coefficient by the correction ratio and the correction ratio application ratio. However, the correction coefficient value calculated from the lens data without multiplying the correction ratio is used. A configuration in which only the correction ratio application rate is multiplied may be adopted. Further, when the correction ratio application rate obtained by the equation (4) is 1, that is, 100%, only the correction ratio is multiplied by the correction coefficient, and correction of the correction coefficient according to the luminance difference and the variation in the luminance results in Not done.
このように本実施形態によれば、撮影画像の4隅に応じた周辺領域c1〜c4を規定し、周辺領域c1〜c4における標準偏差および中心から周縁方向への輝度差(輝度減少量)を検出する。標準偏差の値が閾値TA以下で輝度差が閾値TB以上である場合、撮影画像周辺部において輝度差がなく光量低下がある、すなわち周辺部光量低下が目立つシーンであると判断し、周辺光量低下補正を実行する。そして、補正する場合、検出された輝度差および輝度のバラツキ程度に応じて、レンズ特性に従って定められる補正係数を周辺領域c1〜c4に対して一律に調整する。 As described above, according to the present embodiment, the peripheral regions c1 to c4 corresponding to the four corners of the captured image are defined, and the standard deviation and the luminance difference (luminance reduction amount) from the center to the peripheral direction in the peripheral regions c1 to c4 are determined. To detect. If the value of the standard deviation is equal to or less than the threshold value TA and the luminance difference is equal to or more than the threshold value TB, it is determined that there is no luminance difference and there is a light amount decrease in the peripheral portion of the captured image, that is, it is a scene where the peripheral portion light amount decrease is conspicuous. Perform the correction. Then, in the case of correction, the correction coefficients determined according to the lens characteristics are uniformly adjusted for the peripheral regions c1 to c4 according to the detected luminance difference and the degree of the luminance variation.
周辺光量低下補正を行う場合、記憶されるレンズデータのデータ容量の制限などから、離散的な像高に対する補正係数を算出し、それを補間して各画素に対し算出した補正係数を、連続的な輝度分布をもつ撮影画像の画素にかけ合わせる。そのため、周辺光量低下が目立たない画像領域において補正を行うと、画素間での輝度変化が目立つ現象によって画質低下が生じやすい。 When performing the peripheral light amount reduction correction, a correction coefficient for a discrete image height is calculated due to a limitation of the data capacity of the stored lens data, and the correction coefficient calculated for each pixel by interpolating the correction coefficient is continuously calculated. Multiplied by the pixel of the photographed image having a high luminance distribution. Therefore, when correction is performed in an image region where the decrease in peripheral light amount is not conspicuous, the image quality is likely to deteriorate due to a phenomenon in which the luminance change between pixels is conspicuous.
しかしながら、本実施形態では、撮影画像周辺部の輝度のバラツキおよび輝度差の程度を、その情報が得られやすい対角方向に沿った周辺領域において解析することにより、補正が必要な撮影シーンのみ補正し、また、輝度解析に基づいて補正(ゲイン)の程度を抑えることにより、撮影シーンに合わせた適切な補正を実行することができる。 However, in the present embodiment, only the photographing scene that needs to be corrected is analyzed by analyzing the variation in luminance and the degree of the luminance difference in the peripheral part of the photographed image in the peripheral area along the diagonal direction where the information is easily obtained. In addition, by suppressing the degree of the correction (gain) based on the luminance analysis, it is possible to execute an appropriate correction according to the shooting scene.
特に、4隅の画像領域c1〜c4に対してそれぞれ輝度解析し、上記条件を満たす画像領域の数に応じて補正の実行/非実行を決定することにより、様々な被写体が構図に含まれる撮影シーンに対しても、適切な周辺光量低下補正を行うことができる。 In particular, by performing luminance analysis on the image areas c1 to c4 at the four corners and determining whether or not to perform correction in accordance with the number of image areas that satisfy the above conditions, various types of subjects are included in the composition. Appropriate peripheral light amount reduction correction can be performed on a scene.
また、隣り合う画像領域を統合した標準偏差を求めることにより、撮影画像の一部周辺部のみ光量低下が目立つ一方、他の周辺部では光量低下が目立たないような撮影シーンにおいて、補正の程度を抑えることができる。 In addition, by obtaining a standard deviation obtained by integrating adjacent image areas, the degree of correction can be reduced in a shooting scene in which a decrease in light amount is conspicuous only in a part of the periphery of a captured image, while a decrease in light amount is not conspicuous in other peripheral parts. Can be suppressed.
なお、周辺領域c1〜c4の規定の仕方は、図2、3に示すようなエリア位置、サイズに限定されるものではない。また、周辺領域c1〜c4における標準偏差算出のエリア、輝度差算出のエリアも図2、3の示すようなエリアに限定されない。例えば、図2に示すような4隅以外の周辺付近の領域D1〜D4を輝度解析対象エリアに設定してもよく、標準偏差算出エリア、輝度差算出エリアを別々、あるいは一部重複するように定めてもよい。また、輝度差については、画像中心領域D0などの中心側エリアまで含め輝度低下の程度を検出してもよい。特に、周辺部分以外にも輝度のバラツキ、輝度差が生じるような撮影シーンに対応させるため、周辺部分を含まない複数の輝度解析対象エリアを設定してもよい。 The manner of defining the peripheral areas c1 to c4 is not limited to the area position and the size as shown in FIGS. Further, the area for calculating the standard deviation and the area for calculating the luminance difference in the peripheral areas c1 to c4 are not limited to the areas as shown in FIGS. For example, areas D1 to D4 around the periphery other than the four corners as shown in FIG. 2 may be set as the luminance analysis target area, and the standard deviation calculation area and the luminance difference calculation area may be separately or partially overlapped. May be determined. As for the luminance difference, the degree of luminance decrease may be detected including the central area such as the image central area D0. In particular, a plurality of luminance analysis target areas that do not include the peripheral portion may be set in order to cope with a shooting scene in which a variation in luminance and a luminance difference occur in other than the peripheral portion.
補正の実行/非実行の決定については、周辺領域c1〜c4にうち上記条件を満たす領域の数を、3つ以上、2つで隣接領域の場合に補正実行とし、2つで非隣接領域、1つ以下である場合に補正非実行としているが、このような数の場合分けに限定されず、複数の画像領域の中で適宜数を設定して場合分けすればよい。また、複数の画像領域についても、周辺部分を含めるように4隅以外の領域を任意に設定することが可能である。 Regarding the determination of the execution / non-execution of the correction, the number of the regions satisfying the above condition among the peripheral regions c1 to c4 is three or more, the correction is executed when two are the adjacent regions, and the two are the non-adjacent regions, Correction is not executed when the number is one or less. However, the number of cases is not limited to this, and the number may be appropriately set in a plurality of image areas to divide the cases. Also, for a plurality of image regions, it is possible to arbitrarily set regions other than the four corners so as to include the peripheral portion.
輝度のバラツキについては、標準偏差以外のバラツキ程度を示す値で検出してもよい。例えば、輝度差の絶対値の総和が閾値以上である画素の個数で判断することも可能である。また、輝度差についても、中心から周辺へ向けた輝度低下の程度が明らかになるような値を求めればよい。また、輝度のバラツキ、輝度差を判定するための閾値の設定なども状況に応じ適宜設定すればよい。さらに、輝度のバラツキもしくは輝度差いずれか一方を検出し、それに基づいて補正の実行/非実行の決定、補正係数の調整をおこなってもよい。 The variation in luminance may be detected by a value indicating a degree of variation other than the standard deviation. For example, it is also possible to make a determination based on the number of pixels for which the sum of the absolute values of the luminance differences is equal to or greater than a threshold. As for the luminance difference, a value that clarifies the degree of luminance decrease from the center to the periphery may be obtained. In addition, the setting of a threshold value for determining a variation in luminance and a luminance difference may be appropriately set according to the situation. Further, it is also possible to detect either a variation in luminance or a luminance difference, and determine whether to execute correction or not, and adjust the correction coefficient based on the detection.
本実施形態では、最初に補正の実行/非実行を決定し、それから補正の程度を決めているが、周辺光量低下補正の実行/非実行のみを決定し、補正を実行する場合には補正係数を調整せずにそのまま使用することも可能である。逆に、補正が必要のない撮影シーンに対し、周辺光量低下補正の実行/非実行を判断せずにゲイン補正しないような補正割合適用率を定めるなど、補正係数調整のみで対処することが可能である。 In the present embodiment, the execution / non-execution of the correction is determined first, and then the degree of the correction is determined. However, when only the execution / non-execution of the peripheral light amount reduction correction is determined and the correction is executed, the correction coefficient is used. Can be used as is without adjusting. Conversely, for a shooting scene that does not require correction, it is possible to deal with only correction coefficient adjustment, such as setting a correction ratio application rate that does not determine gain execution without determining whether to execute peripheral light reduction correction. It is.
次に、図7〜図10を用いて、第2の実施形態であるデジタルカメラについて説明する。第2の実施形態では、撮影画像を複数のブロックに分割し、ブロック単位で輝度解析の対象領域を定めるとともに、ブロック単位でそれぞれ構成される複数の部分領域(ここでは具体例として撮影画像4隅の領域)に対し、それぞれ独自に補正係数を調整する。また、光量低下補正によって飽和状態、周辺部分の輝度レベル向上が目立つ状況になるか否かを判断する。 Next, a digital camera according to a second embodiment will be described with reference to FIGS. In the second embodiment, a captured image is divided into a plurality of blocks, a target region for luminance analysis is determined in block units, and a plurality of partial regions each configured in block units (here, as an example, four corners of the captured image are used). ), The correction coefficient is adjusted independently. Also, it is determined whether or not the correction of the light amount reduction results in a situation where the saturation state and the improvement of the brightness level in the peripheral portion are conspicuous.
図7は、第2の実施形態における撮影画像の輝度解析対象領域を示した図である。 FIG. 7 is a diagram illustrating a luminance analysis target area of a captured image according to the second embodiment.
撮影画像PIは、複数の画素から構成されるM×Nのブロックによって分割され、各ブロックの輝度値(平均輝度値など)が算出される。そして、輝度解析の対象領域として、撮影画像の4隅に応じた周辺領域c1〜c4が定められる。周辺領域c1〜c4は、それぞれ3×3のブロックによって構成されている。 The captured image PI is divided into M × N blocks composed of a plurality of pixels, and a luminance value (such as an average luminance value) of each block is calculated. Then, peripheral regions c1 to c4 corresponding to the four corners of the captured image are determined as target regions for luminance analysis. Each of the peripheral areas c1 to c4 is configured by 3 × 3 blocks.
第1の実施形態と同様、周辺領域c1に対し、標準偏差および撮影画像中心から周縁方向に沿った輝度差が算出される。標準偏差は周辺領域c1全体を対象にしてブロックごとに算出された輝度値から求められる。一方、輝度差は、それぞれ2×2のブロックから成っていて、互いに1ブロック重複した画像領域CA1、CB2を解析対象として定める。他の周辺領域c2〜c4も同様である。 As in the first embodiment, the standard deviation and the luminance difference along the peripheral direction from the center of the captured image are calculated for the peripheral area c1. The standard deviation is obtained from the luminance value calculated for each block with respect to the entire peripheral area c1. On the other hand, the luminance difference is defined as image areas CA1 and CB2, each of which is composed of 2 × 2 blocks and overlapped by one block. The same applies to the other peripheral areas c2 to c4.
その一方で、撮影画像PIには、周辺領域c1〜c4の間に位置する周辺領域D1〜D4が定められている。周辺領域D1〜D4は、周辺光量低下に対する補正によって飽和が生じるか否か、あるいは周辺部分の輝度レベル向上が目立ってしまうか否かを判断するために設けられている。 On the other hand, in the captured image PI, peripheral areas D1 to D4 located between the peripheral areas c1 to c4 are defined. The peripheral regions D1 to D4 are provided to determine whether saturation occurs due to correction for a decrease in peripheral light amount, or whether improvement in the luminance level of the peripheral portion is conspicuous.
例えば、カラー画像データを生成する画像信号処理においては、R,G,B画素値に対してWB調整処理、色変換処理が施され、WBゲイン、カラーマトリクス係数など画像信号処理に関連する係数を画素値に乗じる演算処理が行われる。撮影画像周辺部分において明るさレベルが比較的大きいエリアが存在すると、一連の補正係数に加えてシェーディング補正用の補正係数を乗じることによって、ビット数を超えて画素飽和が生じてしまう。 For example, in image signal processing for generating color image data, WB adjustment processing and color conversion processing are performed on R, G, and B pixel values, and coefficients related to image signal processing such as WB gain and color matrix coefficients are calculated. An arithmetic process for multiplying the pixel value is performed. If there is an area having a relatively large brightness level in a peripheral portion of a captured image, multiplying a correction coefficient for shading correction in addition to a series of correction coefficients causes pixel saturation beyond the number of bits.
一方、撮影シーンが暗い場合、R,G,B画素値にシェーディング補正係数を乗じることで、画像周辺部分でノイズが増幅され、また、周辺部分の輝度レベル向上が目立ってしまう。そこで、周辺領域D1〜D4において輝度最大値を抽出し、輝度最大値に基づいて画素飽和が生じる、あるいは周辺部分の輝度レベル向上が目立ってしまうかを判断する。なお、4隅部分c1〜c4の方が画素飽和も生じやすいことから、4隅部分の周辺領域c1〜c4において輝度最大値を抽出してもよい。 On the other hand, when the shooting scene is dark, multiplying the R, G, and B pixel values by the shading correction coefficient amplifies noise in the peripheral portion of the image, and further improves the brightness level in the peripheral portion. Therefore, the maximum luminance value is extracted in the peripheral regions D1 to D4, and it is determined based on the maximum luminance value whether the pixel saturation occurs or the improvement in the luminance level of the peripheral portion is conspicuous. Since pixel saturation is more likely to occur in the four corners c1 to c4, the maximum luminance value may be extracted in the peripheral areas c1 to c4 in the four corners.
図8は、第2の実施形態における補正処理を示したフローチャートである。 FIG. 8 is a flowchart illustrating a correction process according to the second embodiment.
撮影画像を分割(ここではM×N個)した後、周辺光量低下の解析対象となる周辺領域c1〜c4、D1〜D4が定められる(ステップS31、S32)。そして、標準偏差が算出されると、標準偏差が閾値TAより小さいか否かが判断される(ステップS33、S34)。標準偏差が閾値TAより小さい(輝度のバラツキ程度が小さい)場合、ステップS35へ進む。一方、標準偏差が閾値TA以上(輝度のバラツキ程度が大きい)の場合、シェーディング補正を実行しない。 After dividing the photographed image (here, M × N), peripheral areas c1 to c4 and D1 to D4 to be analyzed for a decrease in peripheral light amount are determined (steps S31 and S32). When the standard deviation is calculated, it is determined whether the standard deviation is smaller than the threshold value TA (Steps S33, S34). If the standard deviation is smaller than the threshold value TA (the degree of luminance variation is small), the process proceeds to step S35. On the other hand, if the standard deviation is equal to or larger than the threshold value TA (the degree of luminance variation is large), no shading correction is performed.
ステップS35では、周辺領域c1〜c4において、画像中心側と画像周縁側の輝度差(輝度低下量)が算出される。そして、輝度差が閾値TBより大きいか否かが判断される。輝度差が閾値TBより大きい場合、ステップS37へ進む。一方。輝度差が閾値TB以下である場合、シェーディング補正は行われない。 In step S35, a brightness difference (brightness reduction amount) between the image center side and the image peripheral side in the peripheral areas c1 to c4 is calculated. Then, it is determined whether or not the luminance difference is larger than the threshold value TB. If the luminance difference is larger than the threshold value TB, the process proceeds to step S37. on the other hand. If the luminance difference is equal to or smaller than the threshold value TB, no shading correction is performed.
周辺光量低下の場合(S36)、ステップS37では、周辺領域D1〜D4に対して輝度最大値が抽出される。そしてステップS38では、周辺領域D1〜D4において算出された輝度最大値に対し、WBゲイン係数、色変換マトリクス係数などの一連の画像信号処理に関する係数とシェーディング補正係数を乗じた場合に画素値がビット数を超えた値になるか、すなわち画素飽和が生じるか否かが判断される。画素飽和が生じない場合、ステップS39に進む。一方、画素飽和が生じる場合、シェーディング補正は行われない。ただし、飽和が生じないように補正係数を調整してもよい。 In the case of a decrease in peripheral light quantity (S36), in step S37, a maximum luminance value is extracted for the peripheral areas D1 to D4. Then, in step S38, when the maximum luminance value calculated in the peripheral areas D1 to D4 is multiplied by a coefficient relating to a series of image signal processing such as a WB gain coefficient and a color conversion matrix coefficient and a shading correction coefficient, the pixel value becomes It is determined whether the value exceeds the number, that is, whether or not pixel saturation occurs. If pixel saturation does not occur, the process proceeds to step S39. On the other hand, when pixel saturation occurs, no shading correction is performed. However, the correction coefficient may be adjusted so that saturation does not occur.
ステップS39では、最大輝度値に対して一連の画像信号処理に関する係数を乗じた場合、その値が所定の閾値TCよりも大きいか、すなわち、暗い撮影シーンなどのために補正によって周辺部分の輝度レベル向上が目立つようになるか否かが判断される。演算された値(補正係数を乗じる前の値)が閾値TCよりも大きい場合、ステップS40へ進む。一方、演算値が閾値TC以下である場合、シェーディング補正は行われない。 In step S39, when the maximum luminance value is multiplied by a coefficient relating to a series of image signal processing, whether the value is larger than a predetermined threshold value TC, that is, the luminance level of a peripheral portion is corrected by a correction for a dark shooting scene or the like. It is determined whether the improvement becomes noticeable. If the calculated value (the value before being multiplied by the correction coefficient) is larger than the threshold value TC, the process proceeds to step S40. On the other hand, if the calculated value is equal to or smaller than the threshold value TC, no shading correction is performed.
ステップS40では、レンズデータに基づいて算出された補正係数を調整/修正する処理が行われる。以下、図9を用いて補正係数の調整処理を詳述する。 In step S40, a process of adjusting / correcting the correction coefficient calculated based on the lens data is performed. Hereinafter, the adjustment process of the correction coefficient will be described in detail with reference to FIG.
図9は、第2の実施形態における補正係数調整処理のフローチャートである。 FIG. 9 is a flowchart of a correction coefficient adjustment process according to the second embodiment.
ステップS41では、以下の式により、標準偏差に基づく補正割合適用率が求められる。ただし、sdは標準偏差、Sqrtmaxはあらかじめ定められた標準偏差最大値、Sqrtminはあらかじめ定められた標準偏差最小値、RatiorefSは標準偏差の補正割合適用率を示す。画像領域C1〜C4それぞれに対し、標準偏差の補正割合適用率RatiorefSが求められる。
RatiorefS=(Sqrtmax−sd)÷(Sqrtmax−Sqrtmin)
・・・・(5)
In step S41, the correction ratio application rate based on the standard deviation is calculated by the following equation. Here, sd indicates a standard deviation, Sqrtmax indicates a predetermined standard deviation maximum value, Sqrtmin indicates a predetermined standard deviation minimum value, and RatiorefS indicates a correction ratio application rate of the standard deviation. For each of the image regions C1 to C4, the correction ratio application rate RatiorefS of the standard deviation is obtained.
RatiorefS = (Sqrtmax-sd) ÷ (Sqrtmax-Sqrtmin)
... (5)
ステップS42では、以下の式により、輝度差に基づく補正割合適用率が求められる。ただし、DYは輝度差。Ymaxはあらかじめ定められた輝度差の最大閾値、Yminはあらかじめ定められた輝度差の最小閾値、RatiorefYは輝度差の補正割合適用率を示す。ステップS41と同様、画像領域C1〜C4それぞれに対して輝度差の補正割合適用率RatiorefYが求められる。
RatiorefY=(DY−Ymin)÷(Ymax−Ymin)
・・・・(6)
In step S42, the correction ratio application rate based on the luminance difference is calculated by the following equation. Here, DY is a luminance difference. Ymax indicates a predetermined maximum threshold of the luminance difference, Ymin indicates a predetermined minimum threshold of the luminance difference, and RatiorefY indicates a correction rate application rate of the luminance difference. As in step S41, the correction ratio application rate RatiorefY of the luminance difference is calculated for each of the image areas C1 to C4.
RatiorefY = (DY−Ymin) ÷ (Ymax−Ymin)
... (6)
ステップS43では、レンズ特性データに基づいて算出された補正係数に対し、各領域に対し定められた補正割合を乗じるとともに(5)、(6)式により算出された補正割合適用率をそれぞれ乗じる。このとき、画像領域ごとに(5)、(6)式によって算出された補正割合適用率を、対応する補正係数に乗じる。 In step S43, the correction coefficient calculated based on the lens characteristic data is multiplied by the correction ratio determined for each region, and also multiplied by the correction ratio application ratio calculated by the equations (5) and (6). At this time, the correction rate application rate calculated by the equations (5) and (6) for each image area is multiplied by the corresponding correction coefficient.
ステップS44では、補正値を算出したライン間の領域にある画素に対する補正係数の調整を同心円状ラインに沿って行う。具体的には、撮影画像中心(光軸)からの距離が等しい同心円状のラインにある画素に対し、同じライン上にあって隣り合う周辺領域にある画素の修正補正係数を基にして線形補間する。 In step S44, the adjustment of the correction coefficient for the pixels in the area between the lines for which the correction values have been calculated is performed along the concentric lines. Specifically, pixels on concentric lines having the same distance from the center of the captured image (optical axis) are linearly interpolated based on the correction correction coefficients of pixels on the same line and adjacent peripheral regions. I do.
図10は、補正値を算出したライン間の領域にある画素の補正係数を調整するときの処理を示した図である。ここでは周辺領域c1〜c4などを図示していない。 FIG. 10 is a diagram illustrating a process when adjusting the correction coefficient of a pixel in a region between lines for which a correction value has been calculated. Here, the peripheral regions c1 to c4 and the like are not shown.
上述したように、周辺領域c1〜c4それぞれに対して求められた補正割合適用率を反映した修正補正係数は、光軸(画像中心C)から4隅に向かう対角線方向に沿って所定距離間隔ごとに算出される補正係数を対象として求められるものであり、補正係数を与えられていない対角方向に沿った画素間の修正補正係数は、像高(中心からの距離)に基づいて線形補間により求められる。なお、周辺領域c1〜c4ではなく、例えば周辺領域D1〜D4を設定した場合、光軸から輝度判定領域となる周辺領域D1〜D4に向かうラインに沿った補正値が修正される。 As described above, the correction correction coefficient reflecting the correction ratio application rate obtained for each of the peripheral areas c1 to c4 is provided at predetermined distance intervals along the diagonal direction from the optical axis (image center C) to the four corners. The correction coefficient between pixels along the diagonal direction to which no correction coefficient is given is obtained by linear interpolation based on the image height (distance from the center). Desired. When, for example, the peripheral areas D1 to D4 are set instead of the peripheral areas c1 to c4, the correction values along the line from the optical axis to the peripheral areas D1 to D4 serving as the luminance determination area are corrected.
そして、対象画素に対し、同心円状のライン上にある画素に対して求められた修正補正係数を用いて線形補間により求める。例えば、左上方向、右上方向に沿って中心から同じ像高である画素PK1、PK2の修正補正係数が算出されると、同心円状ラインに沿った同じ像高にある画素PJに対し、画素PK1、PK2の修正補正係数を用いて線形補間により求める。 Then, the target pixel is obtained by linear interpolation using the correction coefficient obtained for the pixels on the concentric line. For example, when the correction correction coefficients of the pixels PK1 and PK2 having the same image height from the center along the upper left direction and the upper right direction are calculated, the pixels PK1 and PK1 having the same image height along the concentric line are displayed. It is obtained by linear interpolation using the correction correction coefficient of PK2.
画像領域によって補正割合適用率の値が異なる場合、画素PKと画素PJの修正補正係数の値は一致しない。そのため、線形補間によって求められる周辺領域c1〜c4以外の各画素の修正補正係数を反映させると、シェーディング補正が必要な画像領域ではシェーディング補正によって大きなゲインがかかる一方、周辺光量低下が目立たない画像領域では、ゲインが抑えられる。 When the value of the correction ratio application rate differs depending on the image area, the values of the correction correction coefficients of the pixel PK and the pixel PJ do not match. Therefore, when the correction correction coefficient of each pixel other than the peripheral regions c1 to c4 obtained by the linear interpolation is reflected, a large gain is applied by the shading correction in the image region requiring the shading correction, and the image region in which the decrease in the peripheral light amount is not noticeable. Then, the gain is suppressed.
このように第2の実施形態によれば、M×N個のブロックに分割された撮影画像においてブロック単位で規定された周辺領域c1〜c4に対し、標準偏差および中心側〜周縁側に向けた輝度差(輝度減少量)が検出される。それとともに、周辺領域D1〜D4において輝度最大値が検出される。そして、輝度のバラツキ、輝度差に応じて補正の実行/非実行を決定するとともに、補正係数を調整する。また、輝度最大値に基づいて画素の飽和を判断するとともに、輝度最大値の画素に一連の画素信号処理に関する係数を乗じた演算値が閾値を下回るか否かによって周辺部分の輝度レベル向上が目立ってしまうか否かを判断し、補正の実行/非実行を決定し、あるいは飽和しないように補正係数を調整する。 As described above, according to the second embodiment, the standard deviation and the center side to the peripheral side are set for the peripheral areas c1 to c4 defined in block units in the captured image divided into M × N blocks. A luminance difference (a luminance reduction amount) is detected. At the same time, the maximum luminance value is detected in the peripheral areas D1 to D4. Then, the execution / non-execution of the correction is determined according to the luminance variation and the luminance difference, and the correction coefficient is adjusted. In addition, the saturation of the pixel is determined based on the maximum luminance value, and the luminance level of the peripheral portion is conspicuously improved depending on whether a calculated value obtained by multiplying the pixel having the maximum luminance value by a coefficient relating to a series of pixel signal processing is below a threshold value. Then, whether or not correction is to be performed is determined, or the correction coefficient is adjusted so as not to saturate.
画像領域ごとに補正の実行/非実行、および補正係数の調整をすることにより、より撮影シーンに適した周辺光量低下補正を行うことができる。特に、一律に補正係数を調整した場合には調整不要な領域にまで調整することも生じることになるが、画像領域ごとに調整することによって、調整の必要な領域にのみ調整することができる。また、画素飽和/輝度向上の目立ちが画像周辺部分に生じると判断すると、優先して補正を実行しないと判断する。これにより、画像周辺部分に飽和が生じたり、過度な輝度レベル向上による補正ムラによって無駄なノイズ増加などいった画質低下の目立つエリアが生じる事態を防ぐことができる。 By performing / non-performing the correction and adjusting the correction coefficient for each image region, it is possible to perform the peripheral light amount reduction correction more suitable for the shooting scene. In particular, when the correction coefficient is uniformly adjusted, the adjustment may be performed to an area that does not need to be adjusted. However, by adjusting each image area, the adjustment can be performed only to the area that requires the adjustment. Further, when it is determined that the conspicuousness of the pixel saturation / brightness improvement occurs in the peripheral portion of the image, it is determined that the correction is not performed with priority. As a result, it is possible to prevent a situation in which the image quality is conspicuous, such as saturation at the peripheral portion of the image, and unnecessary noise increase due to excessive unevenness in luminance level, resulting in unnecessary noise increase.
ブロック単位で輝度バラツキ、輝度差、および飽和/周辺部分の輝度向上解析対象エリアを定めることにより、輝度バラツキ、輝度差、および飽和/周辺部分の輝度向上について解析しやすいエリアを別々、かつ適切に設定することが可能となる。特に、輝度バラツキ解析領域と輝度差解析領域を相違させることにより、輝度解析を効果的に行うことが可能となり、また、飽和/周辺部分輝度向上領域を輝度差および輝度バラツキとは異なる領域に規定することにより、輝度低下が相対的に大きくない周辺領域について補正の判断を行うこととなり、画質低下を確実に防ぐことができる。 By determining the luminance variation, luminance difference, and the luminance improvement analysis area of the saturation / peripheral portion for each block, areas that are easy to analyze for the luminance variation, luminance difference, and luminance improvement of the saturation / periphery portion are separately and appropriately. It can be set. In particular, by making the luminance variation analysis area different from the luminance difference analysis area, the luminance analysis can be performed effectively, and the saturation / peripheral partial luminance improvement area is defined as an area different from the luminance difference and the luminance variation. By doing so, the determination of correction is made for the peripheral area where the luminance decrease is not relatively large, and the image quality can be reliably prevented from lowering.
なお、第1の実施形態のようにブロック単位ではなく輝度差、輝度のバラツキ検出領域を定めることも可能である。また、周辺領域c1〜c4については、矩形状以外のエリア形状に定めてもよい。画素の飽和/ノイズ解析対象のエリアは、輝度のバラツキ、輝度差対象領域と同じエリアに設定してもよい。 Note that it is also possible to determine a luminance difference and a luminance variation detection area instead of a block unit as in the first embodiment. Further, the peripheral regions c1 to c4 may be determined to have an area shape other than the rectangular shape. The area subject to pixel saturation / noise analysis may be set to the same area as the luminance variation and luminance difference target area.
本実施形態では、輝度バラツキ、輝度差、および飽和/周辺部分の輝度向上について補正を行うか否かをそれぞれ判断し、いずれの場合にも補正が必要な場合にのみ補正を実行し、補正係数を調整している。しかしながら、これらの1つずつについて補正/非補正の実行を画像領域ごとに判断し、および/あるいは補正係数を調整してもよい。あるいは、これらのうちいずれか2つ以上の組合せによって判断してもよい。また、補正係数の調整については、第1の実施形態のように標準偏差のみに基づいて補正割合適用率を演算してもよい。 In the present embodiment, it is determined whether or not correction is to be performed for the luminance variation, the luminance difference, and the luminance improvement of the saturation / peripheral portion. In each case, the correction is performed only when the correction is necessary, and the correction coefficient is determined. Has been adjusted. However, execution of correction / non-correction for each of these may be determined for each image region, and / or the correction coefficient may be adjusted. Alternatively, the determination may be made based on a combination of any two or more of these. As for the adjustment of the correction coefficient, the correction ratio application rate may be calculated based on only the standard deviation as in the first embodiment.
撮影シーンの解析については、輝度信号に基づいて標準偏差、輝度差等を求めているが、R,G,B信号そのものの値、色差信号などの画素値を使用することも可能である。また、本実施形態ではデジタルカメラにおいて補正処理を適用しているが、それ以外の撮像装置あるいは画像処理装置などに適用することも可能である。また、画像周辺部分の輝度のバラツキ、輝度差の解析によって撮影シーンを解析し、シェーディング補正以外の画像処理あるいは撮影動作を制御してもよい。すなわち、補正部の構成を用いない発明を撮像装置などに適用することが可能である。 In the analysis of the photographed scene, the standard deviation, the luminance difference, and the like are obtained based on the luminance signal. However, it is also possible to use the values of the R, G, and B signals themselves, and the pixel values of the color difference signal. In this embodiment, the correction processing is applied to the digital camera. However, the correction processing can be applied to other imaging devices or image processing devices. Further, the photographing scene may be analyzed by analyzing the luminance variation and the luminance difference in the peripheral portion of the image, and the image processing or the photographing operation other than the shading correction may be controlled. That is, an invention that does not use the configuration of the correction unit can be applied to an imaging device or the like.
100 デジタルカメラ(撮影装置)
101 信号処理部
132 画像信号処理部
134 補正部
100 Digital camera (photographing device)
101 signal processing unit 132 image signal processing unit 134 correction unit
Claims (10)
撮影光学系の特性に従って定められる補正係数に基づき、撮影画像の周辺光量低下補正を行う補正部とを備え、
前記補正部が、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい場合、補正係数を一律調整することを特徴とする撮像装置。 For a plurality of image areas in the captured image, a detection unit that detects a luminance difference and a luminance variation from the image center side to the peripheral direction,
Based on a correction coefficient determined according to the characteristics of the imaging optical system, a correction unit that performs peripheral light intensity reduction correction of the captured image,
The imaging apparatus according to claim 1 , wherein the correction unit uniformly adjusts a correction coefficient when a degree of variation in luminance is smaller than a first threshold and a luminance difference is larger than a second threshold .
前記補正部が、輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい画像領域の数に応じて、補正係数を調整することを特徴とする請求項1に記載の撮像装置。 The detection unit detects, for a plurality of image areas, a luminance difference and a variation in luminance,
2. The correction unit according to claim 1, wherein the correction unit adjusts a correction coefficient according to the number of image areas in which a degree of luminance variation is smaller than a first threshold and a luminance difference is larger than a second threshold. 3. Imaging device.
前記補正部が、統合領域の輝度のバラツキ程度に応じて、補正係数を調整することを特徴とする請求項3乃至5のいずれかに記載の撮像装置。 The detection unit detects a variation in luminance with respect to an integrated region in which image regions adjacent to each other are combined,
The imaging device according to claim 3, wherein the correction unit adjusts a correction coefficient according to a degree of variation in luminance of the integrated area.
撮影画像の複数の画像領域に対し、画像中心側から周縁方向への輝度差および輝度のバラツキを検出する検出手段と、
撮影光学系の特性に従って定められる補正係数に基づき、撮影画像の周辺光量低下補正を行う補正手段として機能させ、
輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい場合、補正係数を一律調整するように、前記補正手段として機能させることを特徴とするプログラム。 Imaging device,
Detecting means for detecting a luminance difference and a luminance variation from the image center side to the peripheral direction with respect to a plurality of image regions of the captured image;
Based on a correction coefficient determined according to the characteristics of the photographic optical system, function as a correction unit that performs peripheral light amount reduction correction of the captured image,
When the degree of variation in luminance is smaller than a first threshold value and the luminance difference is larger than a second threshold value , the program functions as the correction means so as to uniformly adjust the correction coefficient .
撮影光学系の特性に従って定められる補正係数に基づき、撮影画像の周辺光量低下補正を行う方法であって、
輝度のバラツキ程度が第1の閾値より小さく、輝度差が第2の閾値より大きい場合、補正係数を一律調整することを特徴とする画像処理方法。
For a plurality of image regions of the captured image, a luminance difference and a luminance variation from the image center side to the peripheral direction are detected,
A method for performing peripheral light amount reduction correction of a captured image based on a correction coefficient determined according to characteristics of an imaging optical system,
An image processing method , wherein a correction coefficient is uniformly adjusted when a degree of luminance variation is smaller than a first threshold and a luminance difference is larger than a second threshold .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015169640A JP6651741B2 (en) | 2015-08-28 | 2015-08-28 | Imaging device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015169640A JP6651741B2 (en) | 2015-08-28 | 2015-08-28 | Imaging device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017046316A JP2017046316A (en) | 2017-03-02 |
| JP6651741B2 true JP6651741B2 (en) | 2020-02-19 |
Family
ID=58210472
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015169640A Active JP6651741B2 (en) | 2015-08-28 | 2015-08-28 | Imaging device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6651741B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115348439B (en) * | 2022-07-01 | 2025-12-02 | 重庆市天实精工科技有限公司 | A method for testing the exposure value of a camera module |
-
2015
- 2015-08-28 JP JP2015169640A patent/JP6651741B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017046316A (en) | 2017-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10630920B2 (en) | Image processing apparatus | |
| CN101494797B (en) | Image picking-up device and method | |
| US20090109310A1 (en) | Imaging device, imaging method, display control device, display control method, and program | |
| JP6027242B2 (en) | Imaging device | |
| CN105323474A (en) | Image capturing apparatus and control method therefor | |
| US10762600B2 (en) | Image processing apparatus, image processing method, and non-transitory computer-readable recording medium | |
| JP2017022610A (en) | Image processing apparatus and image processing method | |
| US9892497B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
| JP2009094997A (en) | Imaging apparatus and imaging method | |
| CN106878624A (en) | Camera and camera method | |
| JP5223686B2 (en) | Imaging apparatus and imaging method | |
| JP6047686B2 (en) | Imaging device | |
| JP6631099B2 (en) | Imaging device | |
| JP2008153768A (en) | Imaging apparatus, and white balance processor | |
| CN101287131B (en) | Imaging apparatus and imaging method | |
| JP4077161B2 (en) | Imaging apparatus, luminance correction method, and program for executing the method on a computer | |
| JP2017102393A (en) | Imaging apparatus | |
| JP6651741B2 (en) | Imaging device | |
| JP3498553B2 (en) | Video camera | |
| JP5310331B2 (en) | Imaging apparatus and imaging method | |
| JP2008219230A (en) | Imaging apparatus, and image processing method | |
| JP6536000B2 (en) | Shooting device | |
| JP2020036162A (en) | Image processing device, imaging device, image processing method, and program | |
| JP2008124653A (en) | Image signal processing apparatus, image signal processing program, and image signal processing method | |
| JP5091734B2 (en) | Imaging apparatus and imaging method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180710 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190507 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190820 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20191018 |
|
| 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: 20191224 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200106 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6651741 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 |