JP2016143951A - Image processing apparatus, imaging device, image processing method and image processing program - Google Patents

Image processing apparatus, imaging device, image processing method and image processing program Download PDF

Info

Publication number
JP2016143951A
JP2016143951A JP2015016669A JP2015016669A JP2016143951A JP 2016143951 A JP2016143951 A JP 2016143951A JP 2015016669 A JP2015016669 A JP 2015016669A JP 2015016669 A JP2015016669 A JP 2015016669A JP 2016143951 A JP2016143951 A JP 2016143951A
Authority
JP
Japan
Prior art keywords
imaging
unit
subject
image
aperture value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2015016669A
Other languages
Japanese (ja)
Inventor
太郎 斎藤
Taro Saito
太郎 斎藤
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.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2015016669A priority Critical patent/JP2016143951A/en
Publication of JP2016143951A publication Critical patent/JP2016143951A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Exposure Control For Cameras (AREA)
  • Stroboscope Apparatuses (AREA)
  • Structure And Mechanism Of Cameras (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus which can detect the brightness of a subject well, even if the aperture of a lens at the imaging time cannot be acquired from an interchangeable lens, and performs highly accurate white balance correction according to the brightness of the subject, and to provide an imaging device, an image processing method and an image processing program.SOLUTION: The brightness of a subject is detected based on an image captured by an imaging device, the aperture at the time of imaging and the shutter speed, and white balance of the captured image is corrected based on the brightness of the subject thus detected. When the aperture of a lens at the time of imaging cannot be acquired from an interchangeable lens, the aperture at the time of imaging is estimated by an aperture estimation unit. The aperture estimation unit estimates the aperture at the time of imaging based on the shutter speeds when imaging a flash emission image and a flash non-emission image, the subject distance, the guide number of flash light when imaging the flash emission image, and the amount of reached flash light.SELECTED DRAWING: Figure 8

Description

本発明は画像処理装置、撮像装置、画像処理方法及び画像処理プログラムに係り、特にホワイトバランス補正に適用される技術に関する。   The present invention relates to an image processing apparatus, an imaging apparatus, an image processing method, and an image processing program, and more particularly to a technique applied to white balance correction.

交換レンズが着脱されるレンズ交換式のデジタルカメラには、大別して2種類の交換レンズを装着することができる。   An interchangeable lens digital camera to which an interchangeable lens is attached or detached can be roughly divided into two types of interchangeable lenses.

一方の交換レンズは、カメラ本体の通信規格に沿って製造され、カメラ本体との間で通信を行うことができる交換レンズである。この種の交換レンズがカメラ本体に装着された場合、カメラ本体は、装着された交換レンズとの間で通信を行い、交換レンズのレンズ情報(例えば、交換レンズ内の絞りの絞り値(F値)、フォーカスレンズのレンズ位置、交換レンズの焦点距離等)を完全に取得することができる。   One interchangeable lens is an interchangeable lens manufactured according to the communication standard of the camera body and capable of communicating with the camera body. When this type of interchangeable lens is mounted on the camera body, the camera body communicates with the mounted interchangeable lens, and the lens information of the interchangeable lens (for example, the aperture value (F value of the aperture in the interchangeable lens)) ), The lens position of the focus lens, the focal length of the interchangeable lens, etc.) can be completely acquired.

他方の交換レンズは、カメラ本体の通信規格に沿って製造されておらず、カメラ本体との間で完全な通信を行うことができない交換レンズであり、サードパーティ製の交換レンズ、又はオールドレンズが該当する。尚、交換レンズとカメラ本体との間の通信プロトコル等が異なり、カメラ本体により一部のレンズ情報を取得することができるが、少なくともF値を取得することができないレンズは、本例では他方の交換レンズに該当する。   The other interchangeable lens is an interchangeable lens that is not manufactured in accordance with the communication standard of the camera body and cannot perform complete communication with the camera body, and a third-party interchangeable lens or an old lens is not used. Applicable. The communication protocol between the interchangeable lens and the camera body is different, and some lens information can be acquired by the camera body. However, in this example, the lens that cannot acquire at least the F value is the other in this example. Applicable to interchangeable lenses.

後者の交換レンズがカメラ本体に装着された場合、カメラ本体は、自動露出(AE:Auto Exposure)制御、オートフォーカス(AF:Autofocus)制御、オートホワイトバランス(AWB:Auto White Balance)制御等の様々なオート制御を完全には実施することができない。   When the latter interchangeable lens is attached to the camera body, the camera body has various functions such as automatic exposure (AE) control, autofocus (AF) control, auto white balance (AWB) control, etc. Automatic control cannot be implemented completely.

例えば、AWB制御(自動的にホワイトバランスを補正)する場合は、被写体の明るさから光源を推定し、推定した光源に応じたAWB制御を行う場合が多いが、交換レンズのレンズ情報が分からない場合、レンズの絞り値が不明のため、被写体の明るさを求めることができない。   For example, in the case of AWB control (automatic white balance correction), the light source is estimated from the brightness of the subject and AWB control is often performed according to the estimated light source, but the lens information of the interchangeable lens is not known. In this case, since the aperture value of the lens is unknown, the brightness of the subject cannot be obtained.

特許文献1には、撮像された画像の輝度信号、絞りの開放状態(レンズの開放絞り値)、電子シャッタの制御状態(シャッタースピード)、及び、AGC(Automatic Gain Control)アンプのゲイン状態(撮像感度)に基づいて被写体の明るさを検出し、検出した被写体の明るさに基づいて被写体を照明した光源を推定し、推定した光源に応じてホワイトバランス補正を行うホワイトバランス補正装置が記載されている。   Patent Document 1 discloses a luminance signal of an imaged image, a diaphragm open state (lens open aperture value), an electronic shutter control state (shutter speed), and an AGC (Automatic Gain Control) amplifier gain state (image capture). A white balance correction device that detects the brightness of a subject based on sensitivity, estimates a light source that illuminates the subject based on the detected brightness of the subject, and performs white balance correction according to the estimated light source. Yes.

また、特許文献2には、着脱自在なレンズユニットの撮像時の絞り値に応じてホワイトバランス補正を行うデジタルカメラシステムが記載されている。   Patent Document 2 describes a digital camera system that performs white balance correction in accordance with an aperture value at the time of imaging with a detachable lens unit.

特開2008−301279号公報JP 2008-301279 A 特開2006−074076号公報JP 2006-074076 A

特許文献1には、レンズが交換レンズである旨の記載がなく、特許文献1に記載のホワイトバランス補正装置は、レンズの絞り値をレンズから取得することができ、被写体の明るさを検出することができることが前提になっている。   There is no description in Patent Document 1 that the lens is an interchangeable lens, and the white balance correction device described in Patent Document 1 can acquire the aperture value of the lens from the lens and detects the brightness of the subject. It is assumed that it can be done.

しかしながら、前述したように特許文献1に記載のレンズが、仮にサードパーティ製の交換レンズ又はオールドレンズであり、交換レンズからレンズの絞り値を取得することができない場合、被写体の明るさを求めることができない。   However, as described above, if the lens described in Patent Document 1 is a third-party interchangeable lens or an old lens, and the aperture value of the lens cannot be obtained from the interchangeable lens, the brightness of the subject is obtained. I can't.

交換レンズの絞り値が不明の場合、絞り値を代表値に固定して光源推定を行う場合があるが、絞り値が代表値と異なる場合には、ホワイトバランス補正を適正に行うことができず、カラーフェリアを起こし、ホワイトバランス補正後の画像の色味が悪くなるという問題がある。被写体の明るさの情報は、特に日中屋外の光源(太陽光)とそれ以外の光源(人工光源)とを判別するために用いられることが多いため、日中屋外で撮像された画像に対して、人工光源に対応するホワイトバランス補正が行われたときにカラーフェリアが増加しやすい。   If the aperture value of the interchangeable lens is unknown, light source estimation may be performed with the aperture value fixed to the representative value, but if the aperture value is different from the representative value, white balance correction cannot be performed properly. There is a problem that a color failure is caused and the color of the image after white balance correction is deteriorated. Information on the brightness of the subject is often used to distinguish between light sources that are outdoors during the day (sunlight) and other light sources (artificial light sources). Thus, when the white balance correction corresponding to the artificial light source is performed, the color feria tends to increase.

一方、特許文献2には、着脱自在なレンズユニットの撮像時の絞り値に応じてホワイトバランス補正を行うデジタルカメラシステムが記載されているが、レンズユニットの撮像時の絞り値を取得する理由は、絞り値に応じてレンズユニットの分光特性が変化し、分光特性に応じたホワイトバランス補正を行うためであり、被写体の明るさを検出するためにレンズユニットのF値を取得していない。また、交換レンズの絞り値が不明の場合、絞り値を求める技術に関する記載もない。   On the other hand, Patent Document 2 describes a digital camera system that performs white balance correction according to an aperture value at the time of imaging of a detachable lens unit. The reason for acquiring an aperture value at the time of imaging of a lens unit is described below. This is because the spectral characteristic of the lens unit changes according to the aperture value and white balance correction is performed according to the spectral characteristic, and the F value of the lens unit is not acquired in order to detect the brightness of the subject. Further, there is no description regarding a technique for obtaining the aperture value when the aperture value of the interchangeable lens is unknown.

本発明はこのような事情に鑑みてなされたもので、交換レンズがサードパーティ製の交換レンズ、オールドレンズ等のために交換レンズから撮像時のレンズの絞り値を取得することができない場合でも被写体の明るさを良好に検出することができ、被写体の明るさに応じた精度の高いホワイトバランス補正を行うことができる画像処理装置、撮像装置、画像処理方法及び画像処理プログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and even if the interchangeable lens cannot acquire the aperture value of the lens at the time of imaging from the interchangeable lens because of a third-party interchangeable lens, old lens, etc. It is possible to provide an image processing apparatus, an imaging apparatus, an image processing method, and an image processing program that can detect the brightness of the image and perform white balance correction with high accuracy according to the brightness of the subject. And

上記目的を達成するために本発明の一の態様に係る画像処理装置は、交換レンズが装着されたレンズ交換可能な撮像装置により撮像された被写体の画像の撮像時の絞り値であって、交換レンズから絞り値を取得する絞り値取得部と、絞り値取得部が交換レンズから撮像時の絞り値を取得不能な場合に絞り値を推定する絞り値推定部と、撮像装置により撮像された画像、絞り値取得部により取得した絞り値又は絞り値推定部により推定した絞り値、及び撮像時のシャッタースピードに基づいて被写体の明るさを検出する明るさ検出部と、明るさ検出部により検出された被写体の明るさに基づいて撮像された画像のホワイトバランスを補正するホワイトバランス補正部と、を備え、絞り値推定部は、撮像装置により撮像された画像であって、所定のガイドナンバーのフラッシュ光を発光して撮像されたフラッシュ発光画像と、フラッシュ光を発光せずに撮像されたフラッシュ非発光画像とをそれぞれ取得する画像取得部と、フラッシュ発光画像及びフラッシュ非発光画像の撮像時のシャッタースピード、被写体距離及びガイドナンバーをそれぞれ取得する撮像条件取得部と、画像取得部により取得したフラッシュ発光画像とフラッシュ非発光画像との差分からフラッシュ光の到達量を算出するフラッシュ光到達量算出部と、を含み、撮像条件取得部により取得したガイドナンバー及び被写体距離と、フラッシュ光到達量算出部により算出されたフラッシュ光の到達量とに基づいて画像の撮像時の絞り値を推定する。   In order to achieve the above object, an image processing apparatus according to an aspect of the present invention is an aperture value at the time of imaging of an image of a subject imaged by an interchangeable lens imaging device equipped with an interchangeable lens. An aperture value acquisition unit that acquires an aperture value from a lens, an aperture value estimation unit that estimates an aperture value when the aperture value acquisition unit cannot acquire an aperture value at the time of imaging from an interchangeable lens, and an image captured by an imaging device A brightness detection unit that detects the brightness of the subject based on the aperture value acquired by the aperture value acquisition unit or the aperture value estimated by the aperture value estimation unit, and the shutter speed at the time of imaging, and is detected by the brightness detection unit A white balance correction unit that corrects the white balance of the image captured based on the brightness of the subject, and the aperture value estimation unit is an image captured by the imaging device, An image acquisition unit for acquiring a flash emission image captured by emitting the guide number flash light and a flash non-emission image captured without emitting the flash light, and a flash emission image and a flash non-emission image, respectively. An imaging condition acquisition unit that acquires the shutter speed, subject distance, and guide number at the time of imaging, and flash light arrival that calculates the flash light arrival amount from the difference between the flash emission image and the flash non-emission image acquired by the image acquisition unit An aperture value at the time of image capture based on the guide number and subject distance acquired by the imaging condition acquisition unit and the flash light arrival amount calculated by the flash light arrival amount calculation unit. To do.

本発明の一の態様によれば、撮像装置により撮像された画像、撮像時の絞り値及びシャッタースピードに基づいて被写体の明るさを検出し、検出した被写体の明るさに基づいて撮像された画像のホワイトバランスを補正する。これにより、被写体の明るさに応じた精度の高いホワイトバランス補正を行うことができる。   According to one aspect of the present invention, the brightness of a subject is detected based on the image captured by the imaging device, the aperture value at the time of capturing, and the shutter speed, and the image captured based on the detected brightness of the subject. Correct the white balance. This makes it possible to perform white balance correction with high accuracy according to the brightness of the subject.

また、交換レンズがサードパーティ製の交換レンズ、オールドレンズ等のために交換レンズから撮像時のレンズの絞り値を取得することができない場合には、撮像時の絞り値を絞り値推定部により推定する。絞り値推定部は、フラッシュ発光画像とフラッシュ非発光画像の撮像時のシャッタースピード、被写体距離、フラッシュ発光画像の撮像時のフラッシュ光のガイドナンバー、及びフラッシュ光の到達量に基づいて撮像時の絞り値を推定する。   In addition, if the interchangeable lens cannot be obtained from the interchangeable lens due to a third-party interchangeable lens, old lens, etc., the aperture value at the time of imaging is estimated by the aperture value estimation unit. To do. The aperture value estimator is based on the shutter speed, subject distance, flash light guide number when the flash emission image is captured, and the amount of flash light reached based on the shutter speed when the flash emission image and flash non-emission image are captured. Estimate the value.

本発明の他の態様に係る画像処理装置において、ホワイトバランス補正部は、明るさ検出部により検出された被写体の明るさに基づいて日中屋外の被写体か否かを判別する判別部を含み、判別部による判別結果に応じて画像のホワイトバランス補正の補正内容を変更することが好ましい。検出された被写体の明るさにより、被写体を照明する光源が、日中屋外の光源(太陽光)か又はそれ以外の光源(人工光源)かを判別することが可能である。これにより、日中屋外で撮像された画像に対して、人工光源に対応するホワイトバランス補正が行われるという不具合(カラーフェリアの発生)を防止することができ、精度の高いホワイトバランス補正を行うことができる。   In the image processing device according to another aspect of the present invention, the white balance correction unit includes a determination unit that determines whether the subject is an outdoor subject during the day based on the brightness of the subject detected by the brightness detection unit, It is preferable to change the correction content of the white balance correction of the image according to the determination result by the determination unit. Based on the detected brightness of the subject, it is possible to determine whether the light source that illuminates the subject is a daylight outdoor light source (sunlight) or another light source (artificial light source). As a result, it is possible to prevent a malfunction (occurrence of color feria) in which white balance correction corresponding to an artificial light source is performed on an image captured outdoors in the daytime, and to perform highly accurate white balance correction. Can do.

本発明の更に他の態様に係る画像処理装置において、絞り値推定部は、フラッシュ光の到達量が適正露出量になる感度を取得する感度取得部を含み、取得した感度に対応する感度係数をK、撮像条件取得部により取得したガイドナンバー及び被写体距離をそれぞれGN及びDとすると、推定する絞り値Fを、次式、
F=GN×K÷D
により算出する。
In the image processing apparatus according to still another aspect of the present invention, the aperture value estimation unit includes a sensitivity acquisition unit that acquires sensitivity at which the amount of flash light reaches the appropriate exposure amount, and sets a sensitivity coefficient corresponding to the acquired sensitivity. K, where the guide number and subject distance acquired by the imaging condition acquisition unit are GN and D, respectively, the aperture value F to be estimated is given by
F = GN × K ÷ D
Calculated by

フラッシュ発光画像とフラッシュ非発光画像との差分からフラッシュ光の到達量を算出することができるが、この算出されたフラッシュ光の到達量が適正露出量に達しない場合又は適正露出を越える場合には、感度を調整することで適正露出にすることができる。したがって、フラッシュ光の到達量が適正露出量になる感度を取得することにより、取得した感度に対応する感度係数Kを求めることができる。   The flash light arrival amount can be calculated from the difference between the flash emission image and the flash non-light emission image. However, when the calculated flash light arrival amount does not reach the appropriate exposure amount or exceeds the appropriate exposure amount, By adjusting the sensitivity, proper exposure can be achieved. Therefore, the sensitivity coefficient K corresponding to the acquired sensitivity can be obtained by acquiring the sensitivity at which the flash light arrival amount is the appropriate exposure amount.

一方、ガイドナンバーGNは、フラッシュ撮像時の発光量を示す指標であり、感度調整を行わない場合(感度係数Kが1の場合)に、ガイドナンバーGNを被写体距離Dで割ると、被写体距離Dの被写体を適正露出で撮像するための絞り値Fを算出することができる。適正露出になるように感度を調整する場合(感度係数Kが1でない場合)には、上記のように算出される絞り値Fに更に感度係数Kを乗算することにより絞り値Fを算出することができる。このようにして算出された絞り値Fを、上記フラッシュ発光画像とフラッシュ非発光画像の撮像時のレンズの絞り値として推定することができる。   On the other hand, the guide number GN is an index indicating the light emission amount at the time of flash imaging, and when the sensitivity adjustment is not performed (when the sensitivity coefficient K is 1), the guide distance GN is divided by the subject distance D. It is possible to calculate an aperture value F for imaging the subject with appropriate exposure. When the sensitivity is adjusted so that the exposure is appropriate (when the sensitivity coefficient K is not 1), the aperture value F is calculated by further multiplying the aperture value F calculated as described above by the sensitivity coefficient K. Can do. The aperture value F calculated in this way can be estimated as the aperture value of the lens when the flash emission image and the flash non-emission image are captured.

本発明の更に他の態様に係る撮像装置は、交換レンズが着脱可能なレンズ装着部と、レンズ装着部に装着された交換レンズを介して被写体の画像を撮像する撮像部と、レンズ装着部に装着された交換レンズから撮像時の絞り値を取得する絞り値取得部と、絞り値取得部がレンズ装着部に装着された交換レンズから撮像時の絞り値を取得不能な場合に撮像時の絞り値を推定する絞り値推定部と、撮像部により撮像された画像、絞り値取得部により取得した絞り値又は絞り値推定部により推定した絞り値、及び撮像時のシャッタースピードに基づいて被写体の明るさを検出する明るさ検出部と、明るさ検出部により検出された被写体の明るさに基づいて撮像部により撮像された画像のホワイトバランスを補正するホワイトバランス補正部と、を備え、絞り値推定部は、撮像部により撮像された画像であって、所定のガイドナンバーのフラッシュ光を発光して撮像されたフラッシュ発光画像と、フラッシュ光を発光せずに撮像されたフラッシュ非発光画像とをそれぞれ取得する画像取得部と、フラッシュ発光画像及びフラッシュ非発光画像の撮像時のシャッタースピード、被写体距離及びガイドナンバーをそれぞれ取得する撮像条件取得部と、画像取得部により取得したフラッシュ発光画像とフラッシュ非発光画像との差分からフラッシュ光の到達量を算出するフラッシュ光到達量算出部と、を含み、撮像条件取得部により取得したガイドナンバー及び被写体距離と、フラッシュ光到達量算出部により算出されたフラッシュ光の到達量とに基づいて画像の撮像時の絞り値を推定する。   An imaging apparatus according to still another aspect of the present invention includes a lens mounting unit to which an interchangeable lens can be attached, an imaging unit that captures an image of a subject via an interchangeable lens mounted to the lens mounting unit, and a lens mounting unit. An aperture value acquisition unit that acquires an aperture value at the time of imaging from a mounted interchangeable lens, and an aperture at the time of imaging when the aperture value acquisition unit cannot acquire an aperture value at the time of imaging from an interchangeable lens mounted on the lens mounting unit The brightness of the subject based on the aperture value estimation unit that estimates the value, the image captured by the imaging unit, the aperture value acquired by the aperture value acquisition unit or the aperture value estimated by the aperture value estimation unit, and the shutter speed at the time of imaging A brightness detection unit that detects the brightness, and a white balance correction unit that corrects the white balance of the image captured by the imaging unit based on the brightness of the subject detected by the brightness detection unit. The aperture value estimation unit is an image captured by the imaging unit, which is a flash emission image captured by emitting flash light with a predetermined guide number, and a flash non-emission image captured without emitting flash light. An image acquisition unit for acquiring images, an imaging condition acquisition unit for acquiring a shutter speed, a subject distance, and a guide number when capturing a flash emission image and a flash non-emission image, and a flash emission image acquired by the image acquisition unit A flash light arrival amount calculation unit that calculates the flash light arrival amount from the difference between the image and the non-flash image, and the guide number and subject distance acquired by the imaging condition acquisition unit and the flash light arrival amount calculation unit The aperture value at the time of capturing an image is estimated based on the amount of flash light that has been reached.

本発明の更に他の態様に係る撮像装置において、レンズ装着部に装着された交換レンズとレンズ装着部を介して通信が可能な通信部を備え、絞り値取得部は、通信部が交換レンズと通信が可能な場合に通信部を介して交換レンズの絞り値を取得することが好ましい。   An imaging apparatus according to still another aspect of the present invention includes an interchangeable lens mounted on the lens mounting unit and a communication unit capable of communicating via the lens mounting unit, and the aperture value acquisition unit is configured such that the communication unit is an interchangeable lens. When communication is possible, it is preferable to obtain the aperture value of the interchangeable lens via the communication unit.

本発明の更に他の態様に係る撮像装置において、ホワイトバランス補正部は、明るさ検出部により検出された被写体の明るさに基づいて日中屋外の被写体か否かを判別する判別部を含み、判別部による判別結果に応じて画像のホワイトバランス補正の補正内容を変更することが好ましい。日中屋外の被写体か否かを判別し、判別結果に応じて画像のホワイトバランス補正の補正内容を変更するようにしたため、カラーフェリアが発生しない精度の高いホワイトバランス補正を行うことができる。   In the imaging device according to still another aspect of the present invention, the white balance correction unit includes a determination unit that determines whether the subject is an outdoor subject during the day based on the brightness of the subject detected by the brightness detection unit, It is preferable to change the correction content of the white balance correction of the image according to the determination result by the determination unit. Since it is determined whether the subject is an outdoor subject during the day and the correction content of the white balance correction of the image is changed according to the determination result, it is possible to perform highly accurate white balance correction that does not cause color failure.

本発明の更に他の態様に係る撮像装置において、絞り値推定部は、フラッシュ光の到達量が適正露出量になる感度を取得する感度取得部を含み、取得した感度に対応する感度係数をK、撮像条件取得部により取得したガイドナンバー及び被写体距離をそれぞれGN及びDとすると、推定する絞り値Fを、次式、
F=GN×K÷D
により算出する。
In the imaging apparatus according to still another aspect of the present invention, the aperture value estimation unit includes a sensitivity acquisition unit that acquires sensitivity at which the amount of flash light reaches the appropriate exposure amount, and sets a sensitivity coefficient corresponding to the acquired sensitivity to K. When the guide number and subject distance acquired by the imaging condition acquisition unit are GN and D, respectively, the estimated aperture value F is expressed by the following equation:
F = GN × K ÷ D
Calculated by

本発明の更に他の態様に係る撮像装置において、被写体に合焦したときの交換レンズのフォーカスレンズのレンズ位置を取得するレンズ位置取得部を備え、撮像条件取得部は、レンズ位置取得部により取得されたフォーカスレンズのレンズ位置に基づいて被写体距離を取得することが好ましい。例えば、交換レンズの装着時に手動又は自動で交換レンズのフォーカスレンズを至近端及び無限遠に移動させたときの各レンズ位置を取得しておき、取得した各レンズ位置と、被写体に合焦したときのフォーカスレンズのレンズ位置との関係から被写体距離を取得する。   An imaging apparatus according to still another aspect of the present invention includes a lens position acquisition unit that acquires a lens position of a focus lens of an interchangeable lens when focused on a subject, and the imaging condition acquisition unit is acquired by the lens position acquisition unit It is preferable to acquire the subject distance based on the lens position of the focus lens. For example, each lens position when the focus lens of the interchangeable lens is moved to the nearest end and infinity manually or automatically when the interchangeable lens is mounted is acquired, and each acquired lens position and the subject are focused. The subject distance is acquired from the relationship with the lens position of the focus lens.

本発明の更に他の態様に係る撮像装置において、交換レンズの焦点距離情報と、大きさが既知の所定の被写体に合焦したときの撮像された画像内の所定の被写体の大きさとに基づいて所定の被写体までの距離を推定する被写体距離推定部を備え、撮像条件取得部は、被写体距離推定部が推定した被写体距離を被写体距離推定部から取得することが好ましい。大きさが既知の所定の被写体としては、例えば、人物の顔が適している。   In the imaging apparatus according to still another aspect of the present invention, based on the focal length information of the interchangeable lens and the size of the predetermined subject in the captured image when focused on the predetermined subject having a known size. Preferably, a subject distance estimation unit that estimates a distance to a predetermined subject is provided, and the imaging condition acquisition unit acquires the subject distance estimated by the subject distance estimation unit from the subject distance estimation unit. For example, a human face is suitable as the predetermined subject of known size.

本発明の更に他の態様に係る撮像装置において、被写体が所持している携帯端末と無線通信する無線通信部を備え、撮像条件取得部は、無線通信部が携帯端末から受信する電波の強度に基づいて被写体距離を取得することが好ましい。   An imaging apparatus according to still another aspect of the present invention includes a wireless communication unit that wirelessly communicates with a mobile terminal carried by a subject, and the imaging condition acquisition unit is configured to control the intensity of radio waves received from the mobile terminal by the wireless communication unit. It is preferable to acquire the subject distance based on this.

本発明の更に他の態様に係る撮像装置において、GPS情報を取得するGPS情報取得部を備え、撮像条件取得部は、GPS情報取得部が取得した被写体の位置を示すGPS情報と撮像位置を示すGPS情報とに基づいて被写体距離を取得することが好ましい。   An imaging apparatus according to still another aspect of the present invention includes a GPS information acquisition unit that acquires GPS information, and the imaging condition acquisition unit indicates GPS information indicating the position of the subject acquired by the GPS information acquisition unit and the imaging position. It is preferable to acquire the subject distance based on the GPS information.

本発明の更に他の態様に係る撮像装置において、固定の被写体の位置を示す位置情報を送信する位置情報送信部から位置情報を受信する無線通信部を備え、撮像条件取得部は、無線通信部が取得した固定の被写体の位置を示す位置情報と撮像位置を示す位置情報とに基づいて被写体距離を取得することが好ましい。   An imaging apparatus according to still another aspect of the present invention includes a wireless communication unit that receives position information from a position information transmission unit that transmits position information indicating the position of a fixed subject, and the imaging condition acquisition unit includes a wireless communication unit It is preferable to acquire the subject distance based on the positional information indicating the position of the fixed subject acquired by and the positional information indicating the imaging position.

本発明の更に他の態様に係る画像処理方法は、交換レンズが装着されたレンズ交換可能な撮像装置により撮像された被写体の画像の撮像時の絞り値であって、交換レンズから絞り値を取得するステップと、絞り値を取得するステップにより交換レンズから撮像時の絞り値を取得不能な場合に絞り値を推定するステップと、撮像装置により撮像された画像、取得した絞り値又は推定した絞り値、及び撮像時のシャッタースピードに基づいて被写体の明るさを検出するステップと、検出された被写体の明るさに基づいて撮像された画像のホワイトバランスを補正するステップと、を含み、絞り値を推定するステップは、撮像装置により撮像された画像であって、所定のガイドナンバーのフラッシュ光を発光して撮像されたフラッシュ発光画像と、フラッシュ光を発光せずに撮像されたフラッシュ非発光画像とをそれぞれ取得するステップと、フラッシュ発光画像及びフラッシュ非発光画像の撮像時のシャッタースピード、被写体距離及びガイドナンバーをそれぞれ取得するステップと、取得したフラッシュ発光画像とフラッシュ非発光画像との差分からフラッシュ光の到達量を算出するステップと、を有し、取得したガイドナンバー及び被写体距離と、算出されたフラッシュ光の到達量とに基づいて画像の撮像時の絞り値を推定する。   An image processing method according to still another aspect of the present invention is an aperture value at the time of capturing an image of a subject imaged by an image-capable imaging device equipped with an interchangeable lens, and the aperture value is obtained from the interchangeable lens. The step of estimating the aperture value when the aperture value at the time of imaging cannot be acquired from the interchangeable lens by the step of acquiring the aperture value, the image captured by the imaging device, the acquired aperture value or the estimated aperture value And detecting the brightness of the subject based on the shutter speed at the time of imaging, and correcting the white balance of the captured image based on the detected brightness of the subject, and estimating the aperture value The step of performing is an image captured by an imaging device, and a flash emission image captured by emitting flash light of a predetermined guide number; A step of acquiring a flash non-flash image captured without emitting lash light, a step of acquiring a shutter speed, a subject distance, and a guide number at the time of capturing the flash flash image and the flash non-flash image, respectively; Calculating a flash light arrival amount from a difference between the flash emission image and the flash non-light emission image, and the image is based on the acquired guide number and subject distance and the calculated flash light arrival amount. The aperture value at the time of imaging is estimated.

本発明の更に他の態様に係る画像処理方法において、ホワイトバランスを補正するステップは、検出された被写体の明るさに基づいて日中屋外の被写体か否かを判別するステップを含み、判別した判別結果に応じて画像のホワイトバランス補正の補正内容を変更する。これにより、被写体の明るさに応じた精度の高いホワイトバランス補正を行うことができる。   In the image processing method according to still another aspect of the present invention, the step of correcting the white balance includes a step of determining whether the subject is an outdoor subject during the day based on the detected brightness of the subject. The correction content of the white balance correction of the image is changed according to the result. This makes it possible to perform white balance correction with high accuracy according to the brightness of the subject.

本発明の更に他の態様に係る画像処理方法において、絞り値を推定するステップは、フラッシュ光の到達量が適正露出量になる感度を取得するステップを含み、取得した感度に対応する感度係数をK、取得したガイドナンバー及び被写体距離をそれぞれGN及びDとすると、推定する絞り値Fを、次式、
F=GN×K÷D
により算出する。
In the image processing method according to still another aspect of the present invention, the step of estimating the aperture value includes the step of acquiring the sensitivity at which the amount of flash light reaches the appropriate exposure amount, and the sensitivity coefficient corresponding to the acquired sensitivity is obtained. K, where the acquired guide number and subject distance are GN and D, respectively, the estimated aperture value F is
F = GN × K ÷ D
Calculated by

本発明の更に他の態様に係る画像処理プログラムは、上記の画像処理方法をコンピュータに実行させる。   An image processing program according to still another aspect of the present invention causes a computer to execute the above image processing method.

本発明によれば、撮像装置により撮像された画像、撮像時の絞り値及びシャッタースピードに基づいて被写体の明るさを検出し、検出した被写体の明るさに基づいて撮像された画像のホワイトバランスを補正するため、被写体の明るさに応じた精度の高いホワイトバランス補正を行うことができる。特に、交換レンズがサードパーティ製の交換レンズ、オールドレンズ等のために交換レンズから撮像時のレンズの絞り値を取得することができない場合には、フラッシュ発光画像とフラッシュ非発光画像の撮像時のシャッタースピード、被写体距離、フラッシュ発光画像の撮像時のフラッシュ光のガイドナンバー、及びフラッシュ光の到達量に基づいて撮像時の絞り値を推定するようにしたため、交換レンズから撮像時のレンズの絞り値を取得することができない場合でも被写体の明るさを検出することができ、被写体の明るさに応じた精度の高いホワイトバランス補正を行うことができる。   According to the present invention, the brightness of the subject is detected based on the image captured by the imaging device, the aperture value at the time of capturing, and the shutter speed, and the white balance of the image captured based on the detected brightness of the subject is determined. In order to correct, white balance correction with high accuracy according to the brightness of the subject can be performed. Especially when the interchangeable lens cannot obtain the aperture value of the lens at the time of imaging from the interchangeable lens because it is a third-party interchangeable lens, old lens, etc. Since the aperture value at the time of imaging is estimated based on the shutter speed, the subject distance, the guide number of the flash light at the time of shooting the flash emission image, and the amount of flash light reached, the aperture value of the lens at the time of imaging from the interchangeable lens The brightness of the subject can be detected even when it is not possible to acquire the image, and the white balance correction can be performed with high accuracy according to the brightness of the subject.

本発明に係るカメラシステムを斜め前方から見た斜視図The perspective view which looked at the camera system which concerns on this invention from diagonally forward カメラ本体の背面図Rear view of camera body カメラシステムの内部構成の実施形態を示すブロック図The block diagram which shows embodiment of the internal structure of a camera system 画像処理装置の実施形態を示すブロック図Block diagram showing an embodiment of an image processing apparatus 色温度を横軸、被写体輝度(EV値)を縦軸とする座標における光源種の分布範囲を示すグラフA graph showing the distribution range of light source types at coordinates with the horizontal axis representing color temperature and the vertical axis representing subject luminance (EV value) 絞り値推定部の実施形態を示すブロック図The block diagram which shows embodiment of an aperture value estimation part ホワイトバランス補正方法のメインルーチンを示すフローチャートFlow chart showing main routine of white balance correction method ホワイトバランス補正方法のメインルーチンを示すフローチャートFlow chart showing main routine of white balance correction method

以下、添付図面に従って本発明に係る画像処理装置、撮像装置、画像処理方法及び画像処理プログラムの好ましい実施の形態について説明する。   Preferred embodiments of an image processing apparatus, an imaging apparatus, an image processing method, and an image processing program according to the present invention will be described below with reference to the accompanying drawings.

<カメラシステムの外観>
図1はカメラシステムを斜め前方から見た斜視図であり、図2はカメラ本体の背面図である。
<Appearance of camera system>
FIG. 1 is a perspective view of the camera system as viewed obliquely from the front, and FIG. 2 is a rear view of the camera body.

図1に示すようにカメラシステム10は、交換レンズ100と、交換レンズ100が着脱可能なカメラ本体(撮像装置)200とから構成されたミラーレスのデジタル一眼カメラ、又はデジタル一眼レフカメラである。   As shown in FIG. 1, the camera system 10 is a mirrorless digital single-lens camera or a digital single-lens reflex camera including an interchangeable lens 100 and a camera body (imaging device) 200 to which the interchangeable lens 100 can be attached and detached.

カメラ本体200の前面には、交換レンズ100が装着される本体マウント260と、光学ファインダのファインダ窓20等が設けられ、カメラ本体200の上面には、主としてシャッターレリーズボタン22、シャッタースピードダイヤル23、露出補正ダイヤル24、電源レバー25、及び内蔵フラッシュ30が設けられている。   A main body mount 260 to which the interchangeable lens 100 is attached, a finder window 20 of an optical finder, and the like are provided on the front surface of the camera main body 200. The shutter release button 22, the shutter speed dial 23, An exposure correction dial 24, a power supply lever 25, and a built-in flash 30 are provided.

また、図2に示すようにカメラ本体200の背面には、主としてモニタ216、光学ファインダの接眼部26、MENU及びOKキー27、十字キー28、再生ボタン29等が設けられている。   As shown in FIG. 2, a monitor 216, an optical viewfinder eyepiece 26, a MENU / OK key 27, a cross key 28, a playback button 29, and the like are mainly provided on the back of the camera body 200.

モニタ216は、撮像モード時にライブビュー画像を表示したり、再生モード時に撮像した画像を再生表示する他、各種のメニュー画面を表示する表示部として機能する。MENU及びOKキー27は、モニタ216の画面上にメニューを表示させる指令を行うためのメニューボタンとしての機能と、選択内容の確定及び実行などを指令するOKボタンとしての機能とを兼備した操作キーである。十字キー28は、上下左右の4方向の指示を入力する操作部であり、メニュー画面から項目を選択したり、各メニューから各種設定項目の選択を指示したりするボタンとして機能する。また、十字キー28の上キー及び下キーは撮像時のズームスイッチあるいは再生モード時の再生ズームスイッチとして機能し、左キー及び右キーは再生モード時のコマ送り(順方向及び逆方向送り)ボタンとして機能する。再生ボタン29は、撮像記録した静止画又は動画をモニタ216に表示させる再生モードに切り替えるためのボタンである。   The monitor 216 functions as a display unit that displays a live view image in the imaging mode, reproduces and displays an image captured in the playback mode, and displays various menu screens. The MENU and OK key 27 is an operation key having both a function as a menu button for instructing to display a menu on the screen of the monitor 216 and an OK button for instructing confirmation and execution of selection contents. It is. The cross key 28 is an operation unit for inputting instructions in four directions, up, down, left, and right, and functions as a button for selecting an item from the menu screen or instructing selection of various setting items from each menu. The up and down keys of the cross key 28 function as a zoom switch at the time of imaging or a playback zoom switch in the playback mode, and the left key and the right key are frame advance (forward and reverse) buttons in the playback mode. Function as. The playback button 29 is a button for switching to a playback mode in which a captured still image or moving image is displayed on the monitor 216.

<カメラシステムの内部構成>
図3はカメラシステム10の内部構成の実施形態を示すブロック図である。
<Internal configuration of camera system>
FIG. 3 is a block diagram showing an embodiment of the internal configuration of the camera system 10.

[交換レンズ]
カメラシステム10を構成する交換レンズ100は、カメラ本体200の通信規格に沿って製造されたものであり、後述するようにカメラ本体200との間で通信を行うことができる交換レンズである。この交換レンズ100は、撮像光学系102、ズームレンズ制御部114、フォーカスレンズ制御部116、絞り制御部118、レンズ側CPU(Central Processing Unit)120(レンズ側制御部)、フラッシュROM(Read Only Memory)126、レンズ側通信部150、及びレンズマウント160を備える。
[interchangeable lens]
The interchangeable lens 100 constituting the camera system 10 is manufactured in accordance with the communication standard of the camera body 200, and is an interchangeable lens that can communicate with the camera body 200 as described later. The interchangeable lens 100 includes an imaging optical system 102, a zoom lens control unit 114, a focus lens control unit 116, an aperture control unit 118, a lens side CPU (Central Processing Unit) 120 (lens side control unit), and a flash ROM (Read Only Memory). ) 126, a lens side communication unit 150, and a lens mount 160.

撮像光学系102は、ズームレンズ104、フォーカスレンズ106、及び絞り108を含む複数の光学部材を有する。ズームレンズ制御部114は、レンズ側CPU120からの指令に従って、ズームレンズ104のズーム位置を制御する。フォーカスレンズ制御部116は、レンズ側CPU120からの指令に従って、フォーカスレンズ106のフォーカス位置を制御する。絞り制御部118は、レンズ側CPU120からの指令に従って絞り108(開口面積)を制御する。   The imaging optical system 102 includes a plurality of optical members including a zoom lens 104, a focus lens 106, and a diaphragm 108. The zoom lens control unit 114 controls the zoom position of the zoom lens 104 in accordance with a command from the lens side CPU 120. The focus lens control unit 116 controls the focus position of the focus lens 106 in accordance with a command from the lens side CPU 120. The diaphragm control unit 118 controls the diaphragm 108 (aperture area) in accordance with a command from the lens side CPU 120.

レンズ側CPU120は、交換レンズ100を統括制御するもので、ROM124及びRAM122を内蔵している。   The lens-side CPU 120 controls the interchangeable lens 100 as a whole, and includes a ROM 124 and a RAM 122.

フラッシュROM126は、カメラ本体200からダウンロードされたプログラム等を格納する不揮発性のメモリである。   The flash ROM 126 is a nonvolatile memory that stores programs downloaded from the camera body 200.

レンズ側CPU120は、ROM124又はフラッシュROM126に格納された制御プログラムに従い、RAM(Random Access Memory)122を作業領域として、交換レンズ100の各部を統括制御する。   The lens side CPU 120 performs overall control of each part of the interchangeable lens 100 using a RAM (Random Access Memory) 122 as a work area in accordance with a control program stored in the ROM 124 or the flash ROM 126.

レンズ側通信部150は、レンズマウント160がカメラ本体200の本体マウント260に装着されている状態で、レンズマウント160に設けられた複数の信号端子(レンズ側信号端子)を介してカメラ本体200との通信を行う。即ち、レンズ側通信部150は、レンズ側CPU120の指令に従って、レンズマウント160及び本体マウント260を介して接続されたカメラ本体200の本体側通信部250との間で、リクエスト信号、回答信号の送受信(双方向通信)を行う。   The lens side communication unit 150 is connected to the camera body 200 via a plurality of signal terminals (lens side signal terminals) provided on the lens mount 160 in a state where the lens mount 160 is attached to the body mount 260 of the camera body 200. Communication. That is, the lens side communication unit 150 transmits and receives a request signal and a response signal to and from the main body side communication unit 250 of the camera main body 200 connected via the lens mount 160 and the main body mount 260 in accordance with a command from the lens side CPU 120. (Bidirectional communication).

また、交換レンズ100は、撮像光学系102の各光学部材のレンズ情報(ズームレンズ104のズーム情報、フォーカスレンズ106のフォーカス位置情報、及び絞り情報)を検出する検出部(図示せず)を備えている。ここで、ズーム情報とは、ズーム位置、ズーム倍率、焦点距離等を示す情報であり、絞り情報とは、絞り値(F値)、絞り108の開口径等を示す情報である。以下、本例では、絞り情報としてF値を使用する。   The interchangeable lens 100 also includes a detection unit (not shown) that detects lens information (zoom information of the zoom lens 104, focus position information of the focus lens 106, and aperture information) of each optical member of the imaging optical system 102. ing. Here, the zoom information is information indicating the zoom position, zoom magnification, focal length, and the like, and the aperture information is information indicating the aperture value (F value), the aperture diameter of the aperture 108, and the like. Hereinafter, in this example, an F value is used as aperture information.

レンズ側CPU120は、カメラ本体200からのレンズ情報のリクエストに応えるために、検出された各種のレンズ情報をRAM122に保持することが好ましい。また、各光学部材のレンズ情報は、カメラ本体200からのレンズ情報の要求があると検出され、又は光学部材が駆動されるときに検出され、又は一定の周期(動画のフレーム周期よりも十分に短い周期)で検出され、検出結果を保持することができる。   In order to respond to the lens information request from the camera body 200, the lens-side CPU 120 preferably stores various types of detected lens information in the RAM 122. In addition, the lens information of each optical member is detected when there is a request for lens information from the camera body 200, or is detected when the optical member is driven, or a certain period (much more than the frame period of a moving image). It is detected at a short cycle) and the detection result can be held.

[カメラ本体(撮像装置)]
カメラシステム10を構成するカメラ本体(撮像装置)200は、画像取得部として機能する撮像素子(撮像部)201、撮像素子制御部202、アナログ信号処理部203、A/D(Analog/Digital)変換器204、画像入力コントローラ205、デジタル信号処理部206、RAM207、圧縮伸張処理部208、メディア制御部210、メモリカード212、表示制御部214、モニタ216、本体側CPU220、操作部222、時計部224、フラッシュROM226、ROM228、AF検出部230、明るさ検出部232、ホワイトバランス補正部234、無線通信部236、GPS(Global Positioning System)受信部238、電源制御部240、バッテリ242、本体側通信部250、レンズ装着部として機能する本体マウント260、内蔵フラッシュ30(図1)を構成するフラッシュ発光部270及びフラッシュ制御部272を備える。
[Camera body (imaging device)]
A camera body (imaging device) 200 constituting the camera system 10 includes an imaging device (imaging unit) 201 that functions as an image acquisition unit, an imaging device control unit 202, an analog signal processing unit 203, and A / D (Analog / Digital) conversion. 204, image input controller 205, digital signal processing unit 206, RAM 207, compression / decompression processing unit 208, media control unit 210, memory card 212, display control unit 214, monitor 216, main body side CPU 220, operation unit 222, clock unit 224 , Flash ROM 226, ROM 228, AF detection unit 230, brightness detection unit 232, white balance correction unit 234, wireless communication unit 236, GPS (Global Positioning System) reception unit 238, power supply control unit 240, battery 242, main body side communication unit 250, a body mount 260 that functions as a lens mounting portion, Constituting the built-in flash 30 (FIG. 1) includes a flash light emitting portion 270 and a flash control unit 272.

撮像素子201は、CMOS(Complementary Metal-Oxide Semiconductor)型のカラーイメージセンサにより構成されている。尚、撮像素子201は、CMOS型に限らず、XYアドレス型、又はCCD(Charge Coupled Device)型のイメージセンサでもよい。   The image sensor 201 is constituted by a complementary metal-oxide semiconductor (CMOS) type color image sensor. The image sensor 201 is not limited to a CMOS type, but may be an XY address type or a CCD (Charge Coupled Device) type image sensor.

撮像素子201は、所定のパターン配列(ベイヤー配列、X−Trans(登録商標)配列、ハニカム配列等)でマトリクス状に配置された複数画素によって構成され、各画素はマイクロレンズと、赤(R)、緑(G)又は青(B)のカラーフィルタと、光電変換部(フォトダイオード等)とを含んで構成される。   The image sensor 201 is composed of a plurality of pixels arranged in a matrix with a predetermined pattern arrangement (Bayer arrangement, X-Trans (registered trademark) arrangement, honeycomb arrangement, etc.), and each pixel has a microlens, red (R) , Green (G) or blue (B) color filter, and a photoelectric conversion unit (photodiode or the like).

交換レンズ100の撮像光学系102によって撮像素子201の受光面に結像された被写体の光学像は、撮像素子201によって電気信号に変換される。   The optical image of the subject imaged on the light receiving surface of the image sensor 201 by the imaging optical system 102 of the interchangeable lens 100 is converted into an electrical signal by the image sensor 201.

撮像素子制御部202は、本体側CPU220の指令に従って、撮像素子201の撮像タイミング、露出時間等を制御する。アナログ信号処理部203は、撮像素子201で被写体を撮像して得られたアナログの画像信号に対して、各種のアナログ信号処理を施す。アナログ信号処理部203は、サンプリングホールド回路、色分離回路、AGC回路等を含んで構成されている。AGC回路は、撮像時の感度(ISO感度(ISO:International Organization for Standardization))を調整する感度調整部として機能し、入力する画像信号を増幅する増幅器のゲインを調整し、画像信号の信号レベルが適切な範囲に入るようにする。A/D変換器204は、アナログ信号処理部203から出力されたアナログの画像信号をデジタルの画像信号に変換する。   The image sensor control unit 202 controls the image capturing timing, exposure time, and the like of the image sensor 201 in accordance with instructions from the main body CPU 220. The analog signal processing unit 203 performs various types of analog signal processing on an analog image signal obtained by imaging a subject with the image sensor 201. The analog signal processing unit 203 includes a sampling hold circuit, a color separation circuit, an AGC circuit, and the like. The AGC circuit functions as a sensitivity adjustment unit that adjusts the sensitivity at the time of imaging (ISO: International Organization for Standardization), adjusts the gain of an amplifier that amplifies the input image signal, and the signal level of the image signal is Try to be in the proper range. The A / D converter 204 converts the analog image signal output from the analog signal processing unit 203 into a digital image signal.

静止画又は動画の撮像時に撮像素子201、アナログ信号処理部203、及びA/D変換器204を介して出力されるRGBの画素毎の画像データ(モザイク画像データ)は、画像入力コントローラ205からRAM207に入力され、一時的に記憶される。尚、撮像素子201がCMOS型撮像素子である場合、アナログ信号処理部203及びA/D変換器204は、撮像素子201内に内蔵されていることが多い。   Image data (mosaic image data) for each pixel of RGB output via the image sensor 201, the analog signal processing unit 203, and the A / D converter 204 when capturing a still image or a moving image is transferred from the image input controller 205 to the RAM 207. Is temporarily stored. When the image sensor 201 is a CMOS image sensor, the analog signal processor 203 and the A / D converter 204 are often built in the image sensor 201.

デジタル信号処理部206は、RAM207に格納されている画像データに対して、各種のデジタル信号処理を施す。本例のデジタル信号処理部206は、RAM207に記憶されている画像データを適宜読み出し、読み出した画像データに対してオフセット処理、感度補正を含むゲイン・コントロール処理、ガンマ補正処理、デモザイク処理(デモザイキング処理、同時化処理とも言う)、RGB/YCrCb変換処理等のデジタル信号処理を行い、デジタル信号処理後の画像データを再びRAM207に記憶させる。尚、デモザイク処理とは、例えば、RGB3色のカラーフィルタからなる撮像素子の場合、RGBからなるモザイク画像から画素毎にRGB全ての色情報を算出する処理であり、モザイクデータ(点順次のRGBデータ)から同時化されたRGB3面の画像データを生成する。RGB/YCrCb変換処理は、同時化されたRGBデータを輝度データ(Y)及び色差データ(Cr、Cb)に変換する処理である。   The digital signal processing unit 206 performs various types of digital signal processing on the image data stored in the RAM 207. The digital signal processing unit 206 in this example appropriately reads image data stored in the RAM 207, and performs offset processing, gain control processing including sensitivity correction, gamma correction processing, demosaicing processing (demosaicing) on the read image data. Digital signal processing such as RGB / YCrCb conversion processing and the like, and image data after the digital signal processing is stored in the RAM 207 again. Note that the demosaic process is a process of calculating color information of all RGB for each pixel from a mosaic image composed of RGB, for example, in the case of an imaging device composed of RGB color filters, and mosaic data (dot sequential RGB data). ) To generate the RGB 3 plane image data. The RGB / YCrCb conversion process is a process of converting the synchronized RGB data into luminance data (Y) and color difference data (Cr, Cb).

圧縮伸張処理部208は、静止画又は動画の記録時に、一旦RAM207に格納された非圧縮の輝度データY及び色差データCb,Crに対して圧縮処理を施す。静止画の場合には、例えばJPEG(Joint Photographic coding Experts Group)形式で圧縮し、動画の場合には、例えばH.264形式で圧縮する。圧縮伸張処理部208により圧縮された画像データは、メディア制御部210を介してメモリカード212に記録される。また、圧縮伸張処理部208は、再生モード時にメディア制御部210を介してメモリカード212から得た圧縮された画像データに対して伸張処理を施し、非圧縮の画像データを生成する。   The compression / decompression processing unit 208 performs compression processing on the uncompressed luminance data Y and color difference data Cb, Cr once stored in the RAM 207 when recording a still image or a moving image. In the case of a still image, the image is compressed in, for example, JPEG (Joint Photographic coding Experts Group) format. Compress in H.264 format. The image data compressed by the compression / decompression processing unit 208 is recorded on the memory card 212 via the media control unit 210. In addition, the compression / decompression processing unit 208 performs decompression processing on the compressed image data obtained from the memory card 212 via the media control unit 210 in the playback mode, and generates uncompressed image data.

メディア制御部210は、圧縮伸張処理部208で圧縮された画像データを、メモリカード212に記録する制御を行う。また、メディア制御部210は、メモリカード212から、圧縮された画像データを読み出す制御を行う。   The media control unit 210 performs control to record the image data compressed by the compression / decompression processing unit 208 in the memory card 212. In addition, the media control unit 210 performs control for reading compressed image data from the memory card 212.

表示制御部214は、RAM207に格納されている非圧縮の画像データを、モニタ216に表示させる制御を行う。モニタ216は、例えば液晶表示デバイス、有機エレクトロルミネッセンスなどの表示デバイスによって構成されている。   The display control unit 214 performs control to display uncompressed image data stored in the RAM 207 on the monitor 216. The monitor 216 is configured by a display device such as a liquid crystal display device or organic electroluminescence.

モニタ216にライブビュー画像を表示させる場合には、デジタル信号処理部206で連続的に生成されたデジタルの画像信号が、RAM207に一時的に記憶される。表示制御部214は、このRAM207に一時記憶されたデジタルの画像信号を表示用の信号形式に変換して、モニタ216に順次出力する。これにより、モニタ216に撮像画像がリアルタイムに表示され、モニタ216を電子ビューファインダとして使用することができる。   When displaying a live view image on the monitor 216, digital image signals continuously generated by the digital signal processing unit 206 are temporarily stored in the RAM 207. The display control unit 214 converts the digital image signal temporarily stored in the RAM 207 into a display signal format and sequentially outputs it to the monitor 216. Thereby, a captured image is displayed on the monitor 216 in real time, and the monitor 216 can be used as an electronic viewfinder.

シャッターレリーズボタン22は、撮像開始の指示を入力するための操作手段であり、いわゆる「半押し」と「全押し」とからなる2段ストローク式のスイッチで構成されている。   The shutter release button 22 is an operation means for inputting an instruction to start imaging, and is configured by a two-stage stroke type switch composed of so-called “half press” and “full press”.

静止画撮像モードの場合、シャッターレリーズボタン22が半押しされることによってS1オンの信号、半押しから更に押し込む全押しがされることによってS2オンの信号が出力され、S1オン信号が出力されると、カメラ本体200は、自動焦点調節(AF処理)や自動露出制御(AE処理)などの撮像準備処理を実行し、S2オン信号が出力されると、静止画の撮像処理及び記録処理を実行する。尚、AF処理及びAE処理は、それぞれ操作部222によりオートモードが設定されている場合に自動的に行われ、マニュアルモードが設定されている場合には、AF処理及びAE処理が行われないことは言うまでもない。   In the still image capturing mode, an S1 ON signal is output when the shutter release button 22 is pressed halfway, an S2 ON signal is output when the shutter release button 22 is further pressed halfway down, and an S1 ON signal is output. Then, the camera body 200 executes imaging preparation processing such as automatic focus adjustment (AF processing) and automatic exposure control (AE processing). When the S2 ON signal is output, the camera body 200 executes still image imaging processing and recording processing. To do. The AF process and the AE process are automatically performed when the auto mode is set by the operation unit 222, and the AF process and the AE process are not performed when the manual mode is set. Needless to say.

また、動画撮像モードの場合、シャッターレリーズボタン22が全押しされることによってS2オンの信号が出力されると、カメラ本体200は、動画の記録を開始する動画記録モードになり、動画の画像処理及び記録処理を実行し、その後、シャッターレリーズボタン22が再び全押しされることによってS2オンの信号が出力されると、カメラ本体200は、スタンバイ状態になり、動画の記録処理を一時停止する。   In the moving image capturing mode, when the S2 ON signal is output when the shutter release button 22 is fully pressed, the camera body 200 enters a moving image recording mode in which recording of a moving image is started. When the shutter release button 22 is fully pressed again and an S2 ON signal is output, the camera body 200 enters a standby state and pauses the moving image recording process.

尚、シャッターレリーズボタン22は半押しと全押しとからなる2段ストローク式のスイッチの形態に限られず、1回の操作でS1オンの信号、S2オンの信号を出力しても良く、それぞれ個別のスイッチを設けてS1オンの信号、S2オンの信号を出力しても良い。   The shutter release button 22 is not limited to a two-stroke type switch that is half-pressed and fully-pressed, and an S1 ON signal and an S2 ON signal may be output by a single operation. May be provided to output an S1 on signal and an S2 on signal.

また、タッチ式パネル等により操作指示を行う形態では、これら操作手段としてタッチ式パネルの画面に表示される操作指示に対応する領域をタッチすることで操作指示を出力するようにしても良く、撮像準備処理や撮像処理を指示するものであれば操作手段の形態はこれらに限られない。   Further, in the form in which the operation instruction is performed using the touch panel or the like, the operation instruction may be output by touching an area corresponding to the operation instruction displayed on the screen of the touch panel as the operation unit. The form of the operation means is not limited to these as long as it instructs the preparation process and the imaging process.

撮像により取得された静止画又は動画は、圧縮伸張処理部208により圧縮され、圧縮された画像データは、撮像日時、GPS情報、撮像条件(F値、シャッタースピード、ISO感度等)の所要の付属情報が付加された画像ファイルとされた後、メディア制御部210を介してメモリカード212に格納される。   The still image or moving image acquired by the imaging is compressed by the compression / decompression processing unit 208, and the compressed image data includes the required attachment of the imaging date and time, GPS information, and imaging conditions (F value, shutter speed, ISO sensitivity, etc.). After the information is added to the image file, it is stored in the memory card 212 via the media control unit 210.

本体側CPU220は、カメラ本体200全体の動作及び交換レンズ100の光学部材の駆動等を統括制御するもので、シャッターレリーズボタン22を含む操作部222等からの入力に基づき、カメラ本体200の各部及び交換レンズ100を制御する。   The main body side CPU 220 controls the overall operation of the camera main body 200 and the driving of the optical members of the interchangeable lens 100, and based on inputs from the operation unit 222 including the shutter release button 22 and the like, The interchangeable lens 100 is controlled.

時計部224は、タイマとして、本体側CPU220からの指令に基づいて時間を計測する。また、時計部224は、カレンダとして、現在の年月日及び時刻を計測する。   The clock unit 224 measures time based on a command from the main body CPU 220 as a timer. The clock unit 224 measures the current date and time as a calendar.

フラッシュROM226は、読み取り及び書き込みが可能な不揮発性メモリであり、設定情報を記憶する。   The flash ROM 226 is a non-volatile memory that can be read and written, and stores setting information.

ROM228には、本体側CPU220が実行するカメラ制御プログラム、撮像素子201の欠陥情報、画像処理等に使用する各種のパラメータやテーブルが記憶されている。本体側CPU220は、ROM228に格納されたカメラ制御プログラムに従い、RAM207を作業領域としながらカメラ本体200の各部、及び交換レンズ100を制御する。   The ROM 228 stores a camera control program executed by the main body side CPU 220, defect information of the image sensor 201, various parameters and tables used for image processing, and the like. The main body side CPU 220 controls each part of the camera main body 200 and the interchangeable lens 100 while using the RAM 207 as a work area according to the camera control program stored in the ROM 228.

AF検出部230は、デジタルの画像信号に基づいて、AF制御に必要な数値を算出する。いわゆるコントラストAFの場合、例えば所定のAFエリア内におけるG信号の高周波成分の積算値(焦点評価値)を算出する。本体側CPU220は、AF制御時に焦点評価値が最大となる位置(即ち、コントラストが最大になる位置)にフォーカスレンズ106を移動させる。尚、AFは、コントラストAFには限定されず、例えば、撮像素子に設けられた位相差検出用画素の画素データに基づいてデフォーカス量を検出し、このデフォーカス量がゼロになるようにフォーカスレンズ106を移動させる位相差AFを行うものでもよい。   The AF detection unit 230 calculates a numerical value necessary for AF control based on the digital image signal. In the case of so-called contrast AF, for example, an integrated value (focus evaluation value) of high-frequency components of the G signal in a predetermined AF area is calculated. The main body side CPU 220 moves the focus lens 106 to a position where the focus evaluation value is maximized during AF control (that is, a position where the contrast is maximized). Note that AF is not limited to contrast AF. For example, a defocus amount is detected based on pixel data of phase difference detection pixels provided in the image sensor, and focus is performed so that the defocus amount becomes zero. A phase difference AF for moving the lens 106 may be performed.

明るさ検出部232は、被写体の明るさ(被写体輝度)を検出する部分であり、被写体輝度に対応するAE制御に必要な数値(露出値(EV値(exposure value))を算出する。本体側CPU220は、AE制御時に明るさ検出部232から得たEV値に基づいて所定のプログラム線図からF値、シャッタースピード及びISO感度を決定する。   The brightness detection unit 232 is a part that detects the brightness of the subject (subject brightness), and calculates a numerical value (exposure value (EV value)) necessary for AE control corresponding to the subject brightness. The CPU 220 determines the F value, the shutter speed, and the ISO sensitivity from a predetermined program diagram based on the EV value obtained from the brightness detection unit 232 during the AE control.

ホワイトバランス補正部234は、RGBデータ(Rデータ、Gデータ及びBデータ)の色データ毎のホワイトバランスゲイン(WB(White Balance)ゲイン)Gr,Gg,Gbを算出し、Rデータ、Gデータ及びBデータに、それぞれ算出したWBゲインGr,Gg,Gbを乗算することによりホワイトバランス補正を行う。ここで、WBゲインGr,Gg,Gbの算出方法としては、被写体の明るさ(EV値)及び周囲光の色温度等に基づいて被写体を照明している光源種を特定し、予め光源種毎に適切なWBゲインが記憶されている記憶部から特定した光源種に対応するWBゲインを読み出す方法が考えられるが、少なくともEV値を使用してWBゲインGr,Gg,Gbを求める他の公知の方法(特開2000−224608号公報、特開2003−224863号公報)が考えられる。尚、ホワイトバランス補正部234の詳細については後述する。   The white balance correction unit 234 calculates white balance gains (WB (White Balance) gains) Gr, Gg, Gb for each color data of RGB data (R data, G data, and B data). White balance correction is performed by multiplying the B data by the calculated WB gains Gr, Gg, and Gb, respectively. Here, as a method for calculating the WB gains Gr, Gg, and Gb, the light source type that illuminates the subject is specified based on the brightness (EV value) of the subject, the color temperature of the ambient light, and the like. A method of reading out a WB gain corresponding to a specified light source type from a storage unit in which an appropriate WB gain is stored can be considered, but other known methods for obtaining WB gains Gr, Gg, Gb using at least an EV value are conceivable. Methods (Japanese Patent Laid-Open Nos. 2000-224608 and 2003-224863) are conceivable. Details of the white balance correction unit 234 will be described later.

無線通信部236は、Wi-Fi(Wireless Fidelity)(登録商標)、Bluetooth(登録商標)等の規格の近距離無線通信を行う部分であり、周辺のデジタル機器(スマートフォン、等の携帯端末)との間で必要な情報の送受信を行う。   The wireless communication unit 236 is a part that performs short-range wireless communication of a standard such as Wi-Fi (Wireless Fidelity) (registered trademark), Bluetooth (registered trademark), etc., and with a peripheral digital device (a mobile terminal such as a smartphone). Necessary information is sent and received between the two.

GPS受信部238は、本体側CPU220の指示に従って、複数のGPS衛星から送信されるGPS信号を受信し、受信した複数のGPS信号に基づく測位演算処理を実行し、カメラ本体200の緯度、経度、及び高度からなるGPS情報を取得する。取得されたGPS情報は、撮像された画像の撮像位置を示す付属情報として画像ファイルのヘッダーに記録することができる。   The GPS receiving unit 238 receives GPS signals transmitted from a plurality of GPS satellites in accordance with instructions from the main body CPU 220, executes positioning calculation processing based on the received plurality of GPS signals, and performs the latitude, longitude, And GPS information consisting of altitude is acquired. The acquired GPS information can be recorded in the header of the image file as attached information indicating the imaging position of the captured image.

電源制御部240は、本体側CPU220の指令に従って、バッテリ242から供給される電源電圧をカメラ本体200の各部に与える。また、電源制御部240は、本体側CPU220の指令に従って、本体マウント260及びレンズマウント160を介して、バッテリ242から供給される電源電圧を交換レンズ100の各部に与える。   The power supply control unit 240 supplies the power supply voltage supplied from the battery 242 to each unit of the camera main body 200 in accordance with a command from the main body CPU 220. In addition, the power supply control unit 240 supplies the power supply voltage supplied from the battery 242 to each unit of the interchangeable lens 100 via the main body mount 260 and the lens mount 160 in accordance with a command from the main body side CPU 220.

レンズ電源スイッチ244は、本体側CPU220の指令に従って、本体マウント260及びレンズマウント160を介して交換レンズ100に与える電源電圧のオン及びオフの切り替えとレベルの切り替えを行う。   The lens power switch 244 switches on and off the power supply voltage applied to the interchangeable lens 100 via the main body mount 260 and the lens mount 160 and switches the level in accordance with a command from the main body side CPU 220.

本体側通信部250は、本体側CPU220の指令に従って、本体マウント260及びレンズマウント160を介して接続された交換レンズ100のレンズ側通信部150との間で、リクエスト信号、回答信号の送受信(双方向通信)を行う。尚、本体マウント260には、図1に示すように複数の端子260Aが設けられており、交換レンズ100がカメラ本体200に装着(レンズマウント160と本体マウント260とが接続)されると、本体マウント260に設けられた複数の端子260A(図1)と、レンズマウント160に設けられた複数の端子(図示せず)とが電気的に接続され、本体側通信部250とレンズ側通信部150との間で双方向通信が可能になる。   The main body side communication unit 250 transmits and receives request signals and answer signals to and from the lens side communication unit 150 of the interchangeable lens 100 connected via the main body mount 260 and the lens mount 160 in accordance with a command from the main body side CPU 220 (both Communication). The main body mount 260 is provided with a plurality of terminals 260A as shown in FIG. 1, and when the interchangeable lens 100 is attached to the camera main body 200 (the lens mount 160 and the main body mount 260 are connected), the main body A plurality of terminals 260A (FIG. 1) provided on the mount 260 and a plurality of terminals (not shown) provided on the lens mount 160 are electrically connected, and the main body side communication unit 250 and the lens side communication unit 150 are connected. Bi-directional communication is possible.

内蔵フラッシュ30(図1)は、例えば、TTL(Through The Lens)自動調光方式のフラッシュであり、フラッシュ発光部270と、フラッシュ制御部272とから構成されている。   The built-in flash 30 (FIG. 1) is, for example, a TTL (Through The Lens) automatic dimming flash, and includes a flash light emitting unit 270 and a flash control unit 272.

フラッシュ制御部272は、フラッシュ発光部270から発光するフラッシュ光の発光量(ガイドナンバー)を調整する機能を有する。即ち、フラッシュ制御部272は、本体側CPU220からのフラッシュ撮像指示に同期してフラッシュ発光部270を発光させ、交換レンズ100の撮像光学系102を介して入射する反射光(周囲光を含む)の測光を開始し、測光値が標準露出値に達すると、フラッシュ発光部270からのフラッシュ光の発光を停止させる。   The flash control unit 272 has a function of adjusting the light emission amount (guide number) of flash light emitted from the flash light emitting unit 270. That is, the flash control unit 272 causes the flash light emitting unit 270 to emit light in synchronization with the flash imaging instruction from the main body side CPU 220, and the reflected light (including ambient light) incident through the imaging optical system 102 of the interchangeable lens 100. Photometry is started, and when the photometric value reaches the standard exposure value, the flash light emission from the flash light emitting unit 270 is stopped.

[画像処理装置]
図4は、本発明に係る画像処理装置280の実施形態を示すブロック図である。
[Image processing device]
FIG. 4 is a block diagram showing an embodiment of the image processing apparatus 280 according to the present invention.

図4に示す画像処理装置280は、主として絞り値取得部282、絞り値推定部284、明るさ検出部232、及びホワイトバランス補正部234から構成されている。   The image processing apparatus 280 illustrated in FIG. 4 mainly includes an aperture value acquisition unit 282, an aperture value estimation unit 284, a brightness detection unit 232, and a white balance correction unit 234.

絞り値取得部282は、カメラ本体200に装着された交換レンズの撮像時に使用された絞りの絞り値(F値)を取得するもので、本例では交換レンズとの間の通信により交換レンズ100から各種のレンズ情報を取得する本体マウント260及び本体側通信部250(図3)が、絞り値取得部282として機能する。   The aperture value acquisition unit 282 acquires the aperture value (F value) of the aperture used when imaging the interchangeable lens attached to the camera body 200. In this example, the interchangeable lens 100 is communicated with the interchangeable lens. The main body mount 260 and the main body side communication unit 250 (FIG. 3) that acquire various lens information from the lens function as the aperture value acquisition unit 282.

絞り値推定部284は、絞り値取得部282によりカメラ本体200に装着された交換レンズから撮像時におけるF値を取得することができない場合に、F値を推定するものであり、カメラ本体200の本体側CPU220が、絞り値推定部284としての機能を担う。尚、絞り値推定部284の詳細については後述する。   The aperture value estimation unit 284 estimates the F value when the aperture value acquisition unit 282 cannot acquire the F value at the time of imaging from the interchangeable lens attached to the camera body 200. The main body CPU 220 functions as the aperture value estimation unit 284. Details of the aperture value estimation unit 284 will be described later.

絞り値推定部284により取得したF値、又は絞り値推定部284により推定したF値は、明るさ検出部232に加えられる。   The F value acquired by the aperture value estimation unit 284 or the F value estimated by the aperture value estimation unit 284 is added to the brightness detection unit 232.

明るさ検出部232の他の入力には、画像データ、シャッタースピード及びISO感度を示す情報が加えられており、明るさ検出部232は、これらの入力に基づいて被写体の明るさ(EV値)を算出する。尚、明るさ検出部232に入力される画像データは、リアルタイムに撮像されるライブビュー画像を示す画像データ、またはシャッターレリーズボタン22の半押し時に撮像される画像データであり、デジタル信号処理部206によりガンマ補正された後の画像データである。また、シャッタースピード、ISO感度を示す情報、及び絞り値取得部282から入力するF値は、それぞれ明るさ検出部232に入力される画像データの撮像時のものである。   Information indicating image data, shutter speed, and ISO sensitivity is added to other inputs of the brightness detection unit 232, and the brightness detection unit 232 determines the brightness (EV value) of the subject based on these inputs. Is calculated. Note that the image data input to the brightness detection unit 232 is image data indicating a live view image captured in real time or image data captured when the shutter release button 22 is half-pressed, and the digital signal processing unit 206. This is the image data after the gamma correction by. The shutter speed, the ISO sensitivity information, and the F value input from the aperture value acquisition unit 282 are those at the time of image data input to the brightness detection unit 232.

明るさ検出部232は、入力する画像データ(RGBデータ)のうちのGデータ、又はRGBデータから生成した輝度データの平均値(8ビット(0〜255)で表される平均値)を、Yavとすると、被写体の明るさ(被写体輝度)EVを、次式により算出する。 The brightness detection unit 232 calculates the average value (average value represented by 8 bits (0 to 255)) of luminance data generated from G data or RGB data in the input image data (RGB data) as Y If av , the subject brightness (subject brightness) EV is calculated by the following equation.

[数1]
EV=EVo+log2(Yav/118)
上記[数1]式において、EVoは、画像データ取得時の撮像EV値であり、撮像時のISO感度がISO100のとき、次式により求めることができる。
[Equation 1]
EV = EVo + log 2 (Y av / 118)
In the above [Equation 1], EVo is an imaging EV value at the time of image data acquisition, and can be obtained by the following equation when the ISO sensitivity at the time of imaging is ISO100.

[数2]
EVo=AV+TV
上記[数2]式において、AV(Aperture Value)は、F値に対応する値であり、TV(Time Value)は、シャッタースピードに対応する値である。明るさ検出部232は、入力するF値、シャッタースピード及びISO感度を示す情報により、[数2]式にしたがって撮像EV値(EVo)を求めることができる。
[Equation 2]
EVo = AV + TV
In the above [Expression 2], AV (Aperture Value) is a value corresponding to the F value, and TV (Time Value) is a value corresponding to the shutter speed. The brightness detection unit 232 can obtain an imaging EV value (EVo) according to the equation [2] based on information indicating the input F value, shutter speed, and ISO sensitivity.

また、[数1]式において、118は、適正露出時に18%反射率(被写界の平均反射率)の被写体の輝度データ(ガンマ補正後の輝度データ)(以下、「18%グレー」という)を、8ビットで表した値である。   In the equation 1, 118 is luminance data (luminance data after gamma correction) of a subject having 18% reflectance (average reflectance of the object field) at the time of proper exposure (hereinafter referred to as “18% gray”). ) In 8 bits.

明るさ検出部232は、上記[数1]式により算出した被写体輝度(EV値)をホワイトバランス補正部234に出力する。   The brightness detection unit 232 outputs the subject luminance (EV value) calculated by the above [Equation 1] to the white balance correction unit 234.

ホワイトバランス補正部234は、主として乗算器により構成されるゲイン補正部234A、WBゲイン算出部234B、及び光源推定部234Cから構成されている。   The white balance correction unit 234 includes a gain correction unit 234A, a WB gain calculation unit 234B, and a light source estimation unit 234C that are mainly configured by a multiplier.

ゲイン補正部234Aの一方の入力には、ホワイトバランス補正前の画像データ(RGBデータ)が加えられ、他方の入力には、WBゲイン算出部234BからRGBの色毎のWBゲインGr,Gg,Gbが加えられており、ゲイン補正部234Aは、入力するRGBデータ(Rデータ、Gデータ及びBデータ)に、色毎のWBゲインGr,Gg,Gbを乗算することによりホワイトバランス補正を行う。   Image data (RGB data) before white balance correction is added to one input of the gain correction unit 234A, and WB gain Gr, Gg, Gb for each RGB color from the WB gain calculation unit 234B to the other input. The gain correction unit 234A performs white balance correction by multiplying the input RGB data (R data, G data, and B data) by the WB gains Gr, Gg, and Gb for each color.

WBゲイン算出部234BによるWBゲインGr,Gg,Gbの算出は、光源推定部234Cにより推定された被写体を照明している光源種に基づいて、予め光源種毎に適切なWBゲインが記憶されている記憶部235から推定した光源種に対応するWBゲインを読み出すことにより行う。   The calculation of the WB gains Gr, Gg, and Gb by the WB gain calculation unit 234B is based on the light source type that illuminates the subject estimated by the light source estimation unit 234C, and an appropriate WB gain is stored in advance for each light source type. This is done by reading the WB gain corresponding to the estimated light source type from the storage unit 235.

次に、光源推定部234Cについて説明する。   Next, the light source estimation unit 234C will be described.

光源推定部234Cの一方の入力には、明るさ検出部232により検出された被写体輝度(EV値)が加えられ、他方の入力には、ホワイトバランス補正前の画像データ(RGBデータ)が加えられており、光源推定部234Cは、これらの入力に基づいて被写体を照明する光源の種類(光源種)を推定する。   The subject luminance (EV value) detected by the brightness detection unit 232 is added to one input of the light source estimation unit 234C, and image data (RGB data) before white balance correction is added to the other input. The light source estimation unit 234C estimates the type of light source (light source type) that illuminates the subject based on these inputs.

図5は、色温度を横軸、被写体輝度(EV値)を縦軸とする座標における光源種の分布範囲を示すグラフである。   FIG. 5 is a graph showing the distribution range of light source types at coordinates with the color temperature as the horizontal axis and the subject luminance (EV value) as the vertical axis.

光源推定部234Cは、入力するEV値に基づいて撮像された被写体が日中屋外の被写体か否か(即ち、被写体を照明する光源が日中屋外の光源か否か)を判別する判別部237を備えている。   The light source estimation unit 234C determines whether or not the subject imaged based on the input EV value is an outdoor subject in the daytime (that is, whether or not the light source that illuminates the subject is an outdoor light source in the daytime). It has.

図5に示すように日中屋外の光源(太陽光)は、それ以外の光源(人工光源)に比べてEV値が高く、EV値に基づいて日中屋外の光源か否かを判別することが可能である。判別部237は、入力するEV値が、所定の閾値Th(例えば、11EV又は12EV)以上の場合には、被写体を照明する光源が日中屋外の光源であると判別することができる。   As shown in FIG. 5, the daytime outdoor light source (sunlight) has a higher EV value than other light sources (artificial light sources), and it is determined whether the light source is daytime outdoor light source based on the EV value. Is possible. When the input EV value is equal to or greater than a predetermined threshold Th (for example, 11 EV or 12 EV), the determination unit 237 can determine that the light source that illuminates the subject is a light source outdoors during the daytime.

また、光源推定部234Cは、入力するRGBデータに基づいて被写体を照明する光源の色温度を検出する。色温度の検出方法としては、Rデータ、Gデータ及びBデータをそれぞれ積算平均した各積算平均値の比(R:G:B)、又はRデータとGデータとの積算平均値の比(R/G)及びBデータとGデータとの積算平均値の比(B/G)に基づいて検出する方法があるが、その他、特開2010-258703号公報に記載の方法と同様にして検出してもよい。   Further, the light source estimation unit 234C detects the color temperature of the light source that illuminates the subject based on the input RGB data. As a method for detecting the color temperature, a ratio (R: G: B) of average values obtained by integrating and averaging R data, G data, and B data, or a ratio (R: G: B) of the average values of R data and G data. / G) and a method of detecting based on the ratio (B / G) of the integrated average value of B data and G data. In addition, the detection is performed in the same manner as described in JP 2010-258703 A. May be.

光源推定部234Cは、図5に示したグラフに対応するテーブルを有し、明るさ検出部232から入力するEV値と、ホワイトバランス補正前の画像データに基づいて算出した色温度とに基づいて、EV値と色温度とより定まる座標が、図5に示した座標上のいずれの光源種の範囲に属するかに応じて光源種を推定する。   The light source estimation unit 234C has a table corresponding to the graph shown in FIG. 5, and is based on the EV value input from the brightness detection unit 232 and the color temperature calculated based on the image data before white balance correction. The light source type is estimated according to which of the light source types on the coordinates shown in FIG. 5 the coordinate determined by the EV value and the color temperature belongs.

光源推定部234Cは、被写体の色温度だけでなく、被写体のEV値を使用することで、光源種を精度よく推定することができる。例えば、図5に示すようにデーライト光源(晴れの太陽光)と、昼白色蛍光灯(人工光源)とは、被写体の色温度だけでは判別できないが、EV値を使用することで両者を判別することができる。   The light source estimation unit 234C can accurately estimate the light source type by using not only the color temperature of the subject but also the EV value of the subject. For example, as shown in FIG. 5, a daylight light source (sunny sunlight) and a daylight fluorescent lamp (artificial light source) cannot be determined only by the color temperature of the subject, but both are determined by using the EV value. can do.

このように被写体のEV値に基づいて日中屋外の被写体か否か等を判別することができ、その判別結果に応じてホワイトバランス補正の補正内容を変更する(判別結果に応じて精度よく光源種を推定し、推定した光源種に対応するWBゲインGr,Gg,Gbに変更する)ようにしたため、ホワイトバランス補正を精度よく行うことができる。   In this way, it is possible to determine whether or not the subject is an outdoor subject during the day based on the EV value of the subject, and the correction content of the white balance correction is changed according to the determination result (the light source is accurately determined according to the determination result). Since the seed is estimated and changed to the WB gain Gr, Gg, Gb corresponding to the estimated light source type), white balance correction can be performed with high accuracy.

[絞り値推定部]
次に、図4に示した絞り値推定部284について詳述する。
[Aperture value estimation unit]
Next, the aperture value estimation unit 284 shown in FIG. 4 will be described in detail.

絞り値推定部284は、前述したように絞り値取得部282によりカメラ本体200に装着された交換レンズから撮像時におけるF値を取得することができない場合に、F値を推定するもので、推定したF値を明るさ検出部232に出力する。これにより、明るさ検出部232は、絞り値取得部282からF値が入力されない場合でも被写体輝度(EV値)を検出することができる。   The aperture value estimation unit 284 estimates the F value when the aperture value acquisition unit 282 cannot acquire the F value at the time of imaging from the interchangeable lens mounted on the camera body 200 as described above. The obtained F value is output to the brightness detection unit 232. Thereby, the brightness detection unit 232 can detect the subject luminance (EV value) even when the F value is not input from the aperture value acquisition unit 282.

図6は、絞り値推定部284の実施形態を示すブロック図である。   FIG. 6 is a block diagram illustrating an embodiment of the aperture value estimation unit 284.

図6に示すように絞り値推定部284は、主としてフラッシュ光到達量算出部284A、感度取得部284B、感度係数算出部284C、撮像条件取得部284D、及び絞り値算出部284Eから構成されている。   As shown in FIG. 6, the aperture value estimation unit 284 mainly includes a flash light arrival amount calculation unit 284A, a sensitivity acquisition unit 284B, a sensitivity coefficient calculation unit 284C, an imaging condition acquisition unit 284D, and an aperture value calculation unit 284E. .

図3に示した本体側CPU220は、絞り値取得部282によりカメラ本体200に装着された交換レンズから撮像時におけるF値を取得することができない場合、内蔵フラッシュ30をカメラ本体200の上面からポップアップさせ(図1参照)、シャッターレリーズボタン22の1回のレリーズ操作に同期して内蔵フラッシュ30を発光させたフラッシュ発光撮像と、内蔵フラッシュ30を発光させないフラッシュ非発光撮像とを連続して行わせる。フラッシュ発光撮像及びフラッシュ非発光撮像により取得したフラッシュ発光画像データとフラッシュ非発光画像データとは、RAM207に一旦格納される。尚、RAM207に一旦格納されたフラッシュ発光画像データ及びフラッシュ非発光画像データは、それぞれデジタル信号処理部206によりガンマ補正が施されている。   The main body side CPU 220 shown in FIG. 3 pops up the built-in flash 30 from the upper surface of the camera main body 200 when the aperture value acquisition unit 282 cannot acquire the F value at the time of imaging from the interchangeable lens attached to the camera main body 200. (See FIG. 1), the flash emission imaging in which the built-in flash 30 is emitted in synchronization with one release operation of the shutter release button 22 and the flash non-emission imaging in which the built-in flash 30 is not emitted are continuously performed. . Flash emission image data and flash non-emission image data acquired by flash emission imaging and flash non-emission imaging are temporarily stored in the RAM 207. Note that the flash light emission image data and the flash non-light emission image data temporarily stored in the RAM 207 are each subjected to gamma correction by the digital signal processing unit 206.

図6に示すフラッシュ光到達量算出部284Aは、RAM207からフラッシュ発光画像データとフラッシュ非発光画像データとを読み出し、これらの画像データの差分からフラッシュ光の到達量を算出する。このフラッシュ光の到達量は、フラッシュ光のみを照明光としたときの露出量に対応する。   The flash light arrival amount calculation unit 284A shown in FIG. 6 reads the flash light emission image data and the flash non-light emission image data from the RAM 207, and calculates the flash light arrival amount from the difference between these image data. The amount of flash light reached corresponds to the exposure amount when only the flash light is used as illumination light.

感度取得部284Bは、フラッシュ光到達量算出部284Aにより算出されたフラッシュ光の到達量に基づいて、その到達量に対応する露出量を適正露出にするための感度(ISO感度)を算出する。   Based on the flash light arrival amount calculated by the flash light arrival amount calculation unit 284A, the sensitivity acquisition unit 284B calculates a sensitivity (ISO sensitivity) for making the exposure amount corresponding to the arrival amount appropriate exposure.

具体的には、フラッシュ光到達量算出部284Aは、フラッシュ発光画像データとフラッシュ非発光画像データとの差分の画像データ(フラッシュ光のみを照明光としたときの画像データ)から平均の輝度データを算出する。この平均の輝度データは、フラッシュ光の到達量に対応する。感度取得部284Bは、平均の輝度データを、18%グレーの輝度データ(8ビットで118)にするISO感度を求める。例えば、フラッシュ発光画像データ及びフラッシュ非発光画像データの撮像時のIOS感度がISO100で、差分の画像データから算出した平均の輝度データが59の場合、ISO感度をISO400に調整すると、18%グレーの輝度データ(118)になる。この場合に感度取得部284Bが求めるISO感度は、ISO400である。   Specifically, the flash light arrival amount calculation unit 284A obtains average luminance data from the image data of the difference between the flash emission image data and the flash non-emission image data (image data when only the flash light is used as illumination light). calculate. This average luminance data corresponds to the amount of flash light reached. The sensitivity acquisition unit 284B obtains ISO sensitivity for converting the average luminance data into 18% gray luminance data (118 in 8 bits). For example, when the IOS sensitivity at the time of imaging of the flash emission image data and the flash non-emission image data is ISO 100 and the average luminance data calculated from the difference image data is 59, adjusting the ISO sensitivity to ISO 400 results in 18% gray. It becomes luminance data (118). In this case, the ISO sensitivity required by the sensitivity acquisition unit 284B is ISO400.

感度係数算出部284Cは、感度取得部284Bが取得(求めた)ISO感度と、フラッシュ発光画像データ及びフラッシュ非発光画像データの撮像時のIOS感度とに基づいて感度係数Kを算出する。   The sensitivity coefficient calculation unit 284C calculates the sensitivity coefficient K based on the ISO sensitivity acquired (obtained) by the sensitivity acquisition unit 284B and the IOS sensitivity at the time of capturing the flash emission image data and the flash non-emission image data.

ここで、感度係数Kは、GN算出時のIOS感度を示す数値をIOSa、感度取得部284Bにより取得されたISO感度を示す数値をISObとすると、次式により算出することができる。   Here, the sensitivity coefficient K can be calculated by the following equation, where IOSa is a numerical value indicating the IOS sensitivity at the time of GN calculation, and ISOb is a numerical value indicating the ISO sensitivity acquired by the sensitivity acquisition unit 284B.

Figure 2016143951
Figure 2016143951

従って、撮像時のIOS感度がISO100(IOSa=100)のときに、感度取得部284Bが取得したISO感度がISO100(ISOb=100)の場合には、感度係数Kは、K=1になる。同様にして感度取得部284Bが取得したISO感度が、IOS200(ISOb=200)、ISO400(ISOb=400)、IOS800(ISOb=800)、IOS1600(ISOb=1600)、及びISO3200(ISOb=3200)の場合には、それぞれ感度係数Kは、K=1.4、K=2、K=2.8、K=4、及びK=5.6になる。   Therefore, when the IOS sensitivity at the time of imaging is ISO100 (IOSa = 100) and the ISO sensitivity acquired by the sensitivity acquisition unit 284B is ISO100 (ISOb = 100), the sensitivity coefficient K is K = 1. Similarly, the ISO sensitivities acquired by the sensitivity acquisition unit 284B are IOS200 (ISOb = 200), ISO400 (ISOb = 400), IOS800 (ISOb = 800), IOS1600 (ISOb = 1600), and ISO3200 (ISOb = 3200). In this case, the sensitivity coefficient K becomes K = 1.4, K = 2, K = 2.8, K = 4, and K = 5.6, respectively.

感度係数算出部284Cにより算出された感度係数Kを示す情報は、絞り値算出部284Eに加えられる。   Information indicating the sensitivity coefficient K calculated by the sensitivity coefficient calculation unit 284C is added to the aperture value calculation unit 284E.

撮像条件取得部284Dは、フラッシュ発光撮像に内蔵フラッシュ30から発光されたフラッシュ光の発光量(ガイドナンバーGN)を、内蔵フラッシュ30から取得する。また、撮像条件取得部284Dは、フラッシュ発光撮像及びフラッシュ非発光撮像時の被写体距離Dを取得する。この被写体距離Dの取得方法については後述する。   The imaging condition acquisition unit 284D acquires from the built-in flash 30 the light emission amount (guide number GN) of the flash light emitted from the built-in flash 30 for flash emission imaging. Further, the imaging condition acquisition unit 284D acquires the subject distance D at the time of flash light emission imaging and flash non-light emission imaging. A method for obtaining the subject distance D will be described later.

撮像条件取得部284Dにより取得されたガイドナンバーGN及び被写体距離Dを示す情報は、絞り値算出部284Eに加えられる。   Information indicating the guide number GN and subject distance D acquired by the imaging condition acquisition unit 284D is added to the aperture value calculation unit 284E.

絞り値算出部284Eは、感度係数算出部284Cから入力する感度係数Kを示す情報、撮像条件取得部284Dから入力するガイドナンバーGN及び被写体距離Dを示す情報に基づいて、次式によりF値を算出する。   The aperture value calculation unit 284E calculates the F value according to the following equation based on the information indicating the sensitivity coefficient K input from the sensitivity coefficient calculation unit 284C and the information indicating the guide number GN and the subject distance D input from the imaging condition acquisition unit 284D. calculate.

[数4]
F=GN×K÷D
具体的には、ガイドナンバーGN=16、感度係数K=2、被写体距離D=4mの場合、F=16×2÷4=8になる。
[Equation 4]
F = GN × K ÷ D
Specifically, when the guide number GN = 16, the sensitivity coefficient K = 2, and the subject distance D = 4 m, F = 16 × 2 ÷ 4 = 8.

[被写体距離の取得方法]
次に、撮像条件取得部284Dによる被写体距離Dの取得方法の実施形態について説明する。
[How to get the subject distance]
Next, an embodiment of a method for acquiring the subject distance D by the imaging condition acquisition unit 284D will be described.

<第1の実施形態>
交換レンズがカメラ本体200の通信規格に沿って製造されていない、例えばサードパーティ製の交換レンズの場合、その交換レンズからレンズ情報を受け取るのに制限があるが、フォーカスの情報を取得できる場合がある。例えば、機械式のフォーカス機構を備えた交換レンズの場合、フォーカスを合わせるためのフォーカスレンズのレンズ駆動を、カメラ本体側が持っているモータを使って行うものがある。交換レンズとカメラ本体とを機械的に接合するための機構はカップリングと呼ばれており、交換レンズのフォーカスリングを動かすと、カップリングが回転する。被写体に合焦したときのフォーカスリングの回転位置(フォーカスレンズのレンズ位置に相当する)を、カップリングを介してレンズ位置取得部で読み取ることで、フォーカスリングの回転位置(即ち、フォーカスレンズのレンズ位置)に対応する被写体距離を取得することができる。
<First Embodiment>
In the case where the interchangeable lens is not manufactured in accordance with the communication standard of the camera body 200, for example, a third-party interchangeable lens, there is a limitation in receiving lens information from the interchangeable lens, but there are cases where focus information can be acquired. is there. For example, in the case of an interchangeable lens having a mechanical focus mechanism, there is a lens that drives a focus lens for focusing by using a motor that the camera body has. A mechanism for mechanically joining the interchangeable lens and the camera body is called a coupling. When the focus ring of the interchangeable lens is moved, the coupling rotates. The rotational position of the focus ring (corresponding to the lens position of the focus lens) when the subject is focused is read by the lens position acquisition unit via the coupling, so that the rotational position of the focus ring (that is, the lens of the focus lens). The subject distance corresponding to (position) can be acquired.

但し、フォーカスリングの回転の起点(至近端)と終点(無限遠)は手動で入力する必要がある。例えば、交換レンズの装着時に手動でフォーカスリングを回転させ、交換レンズのフォーカスレンズを至近端及び無限遠に移動させ、フォーカスリングの回転の起点(至近端)と終点(無限遠)における各レンズ位置を取得する。   However, it is necessary to manually input the starting point (near end) and the end point (infinity) of the rotation of the focus ring. For example, when the interchangeable lens is attached, the focus ring is manually rotated, the focus lens of the interchangeable lens is moved to the close end and infinity, and the focus ring rotation start point (closest end) and end point (infinity) Get the lens position.

撮像条件取得部284Dは、上記のようにして取得したフォーカスレンズの至近端及び無限遠におけるレンズ位置と、被写体に合焦したときのフォーカスレンズのレンズ位置との関係から被写体距離を取得する。尚、至近端における最短撮像距離として、代表的な距離(例えば、0.3m)が設定されていてもよく、あるいは手動入力により最短撮像距離が設定されてもよい。   The imaging condition acquisition unit 284D acquires the subject distance from the relationship between the lens position at the close end and the infinity of the focus lens acquired as described above and the lens position of the focus lens when the subject is focused. Note that a representative distance (for example, 0.3 m) may be set as the shortest imaging distance at the closest end, or the shortest imaging distance may be set by manual input.

また、レンズマウントの互換性がないサードパーティ製の交換レンズ、オールドレンズを使用できるようにするためのマウントアダプタの中には、AF動作を可能にするマウントアダプタがある。この場合、AF動作に必要なレンズ位置を取得することができるため、合焦時のレンズ位置から被写体までのおおよその距離を取得することができる。また、AF動作が可能なマウントアダプタを使用する場合には、フォーカスレンズのレンズ位置を至近端から無限遠までサーチ動作させるAF動作中に、自動的に至近端及び無限遠のレンズ位置を取得することができる。   Among mount adapters for enabling use of third-party interchangeable lenses and old lenses having no lens mount compatibility, there is a mount adapter that enables AF operation. In this case, since the lens position necessary for the AF operation can be acquired, an approximate distance from the lens position at the time of focusing to the subject can be acquired. In addition, when using a mount adapter that can perform AF operation, the lens position at the near end and at infinity is automatically set during the AF operation for searching the lens position of the focus lens from the close end to infinity. Can be acquired.

<第2の実施形態>
交換レンズから全てのレンズ情報を取得することができなくても、交換レンズの焦点距離の情報を取得することができる場合がある。例えば、交換レンズの製品コード等が取得できると、その交換レンズの製品コードから焦点距離の情報を取得することが可能である。
<Second Embodiment>
Even if not all lens information can be acquired from the interchangeable lens, information on the focal length of the interchangeable lens may be acquired. For example, when the product code of the interchangeable lens can be acquired, the focal length information can be acquired from the product code of the interchangeable lens.

この場合、交換レンズの焦点距離情報と、大きさが既知の所定の被写体の画像の大きさとに基づいて所定の被写体までの距離(被写体距離)を推定する被写体距離推定部をカメラ本体200に設け、撮像条件取得部284Dは、被写体距離推定部が推定した被写体距離を被写体距離推定部から取得することができる。   In this case, the camera body 200 is provided with a subject distance estimation unit that estimates the distance to the predetermined subject (subject distance) based on the focal length information of the interchangeable lens and the size of the image of the predetermined subject whose size is known. The imaging condition acquisition unit 284D can acquire the subject distance estimated by the subject distance estimation unit from the subject distance estimation unit.

即ち、被写体に合焦している場合、その被写体の大きさと、画像(撮像面)上の被写体の大きさとは一対一に対応する。従って、被写体の大きさ及びレンズの焦点距離が既知の場合、被写体の大きさ、焦点距離及び撮像面上の被写体の大きさに基づいて被写体距離を算出することができる。尚、大きさが既知の被写体としては、人物の顔が好適であるが、これに限らず、撮像対象の被写体の大きさ又は被写体の一部が既知の大きさのものであれば、いかなるものでもよい。   That is, when the subject is in focus, the size of the subject and the size of the subject on the image (imaging surface) have a one-to-one correspondence. Therefore, when the size of the subject and the focal length of the lens are known, the subject distance can be calculated based on the size of the subject, the focal length, and the size of the subject on the imaging surface. As a subject whose size is known, a human face is suitable. However, the subject is not limited to this, and any subject may be used as long as the size of the subject to be imaged or a part of the subject is a known size. But you can.

<第3の実施形態>
スマートフォンやデジタルカメラには、近距離無線通信を行う通信機能(Wi-Fiやbluetoothなど)を有するものがある。
<Third Embodiment>
Some smartphones and digital cameras have a communication function (such as Wi-Fi or bluetooth) for performing short-range wireless communication.

被写体がスマートフォンなどの通信可能な携帯端末を所持している場合、カメラ本体200と被写体が所持いる携帯端末との無線通信時の電波の強度を検出することで携帯端末(携帯端末を所持している被写体)までの距離を推定することができる。   When the subject has a mobile terminal such as a smartphone that can communicate, the mobile terminal (possibly holding the mobile terminal) is detected by detecting the strength of radio waves during wireless communication between the camera body 200 and the mobile terminal that the subject has. The distance to the subject) can be estimated.

従って、撮像条件取得部284Dは、カメラ本体200の無線通信部236が携帯端末と無線通信しているときに当該携帯端末から受信する電波の強度に基づいて被写体距離を取得することができる。   Therefore, the imaging condition acquisition unit 284D can acquire the subject distance based on the strength of the radio wave received from the mobile terminal when the wireless communication unit 236 of the camera body 200 is wirelessly communicating with the mobile terminal.

この場合、予め基準となる電波強度を把握しておくことが必要である。例えば、カメラ本体200と携帯端末とを近接させた状態で予め電波強度を検出し、検出した電波強度を基準の電波強度とする方法の他、国や地域によって一般的に普及している電波強度(日本では10mW)を基準とすることが考えられる。   In this case, it is necessary to grasp the reference radio wave intensity in advance. For example, in addition to a method in which the radio wave intensity is detected in advance in a state where the camera body 200 and the mobile terminal are close to each other and the detected radio wave intensity is used as a reference radio wave intensity, the radio wave intensity that is generally spread by countries and regions It is conceivable that the standard is 10 mW in Japan.

<第4の実施形態>
スマートフォンやデジタルカメラには、近距離無線通信を行う通信機能の他に、GPS受信部を備え、緯度、経度、及び高度からなるGPS情報を取得できるものがある。
<Fourth Embodiment>
Some smartphones and digital cameras include a GPS receiving unit in addition to a communication function for performing short-range wireless communication, and can acquire GPS information including latitude, longitude, and altitude.

被写体が持っているスマートフォンなどが取得したGPS情報をカメラ本体200側で無線通信等により取得し、取得したGPS情報(撮像時の被写体の位置情報)と、カメラ本体200のGPS受信部238が取得したGPS情報(撮像時のカメラ本体200の位置情報)とに基づいて、これらの2つGPS情報の差分の緯度、経度、及び高度から被写体距離を算出することがきる。   The GPS information acquired by the smartphone or the like that the subject has is acquired by wireless communication or the like on the camera body 200 side, and the acquired GPS information (position information of the subject at the time of imaging) and the GPS reception unit 238 of the camera body 200 are acquired. Based on the obtained GPS information (position information of the camera body 200 at the time of imaging), the subject distance can be calculated from the latitude, longitude, and altitude of the difference between these two GPS information.

撮像条件取得部284Dは、GPS情報取得部(無線通信部236)を介して取得した被写体の位置を示すGPS情報と、カメラ本体200のGPS受信部238が取得した撮像位置を示すGPS情報とに基づいて被写体距離を取得することができる。   The imaging condition acquisition unit 284D includes GPS information indicating the position of the subject acquired via the GPS information acquisition unit (wireless communication unit 236) and GPS information indicating the imaging position acquired by the GPS reception unit 238 of the camera body 200. The subject distance can be acquired based on the result.

<第5の実施形態>
観光地や美術館などで特定のスポット(商品や絵画の前)に立つと、その人に向けて、広告や解説などの情報を送信するシステムがある。このシステムは、例えばスポットライトを発光ダイオードで作るとともに、発光ダイオードを高速に点滅動作させることによって情報を伝送し、客はスマートフォンや専用の端末で高速に点滅する光を受光することで情報を確認できるシステムである。
<Fifth Embodiment>
There is a system that sends information such as advertisements and explanations to a person who stands at a specific spot (in front of a product or painting) in a sightseeing spot or museum. In this system, for example, a spotlight is made of a light-emitting diode and information is transmitted by causing the light-emitting diode to blink at high speed, and the customer confirms the information by receiving light that blinks at high speed on a smartphone or dedicated terminal. It is a system that can.

特定のスポット(固定の被写体)を撮像する場合に、上記システムを利用し、システムの送信部(位置情報送信部)から特定のスポットの位置を示す位置情報(例えば、GPS情報)を無線通信により受信する。尚、光無線通信により位置情報を受信する場合には、カメラ本体200に光無線通信部を設ける必要があるが、上記システムが通常の無線通信により情報を送信する場合には、カメラ本体200の無線通信部236を使用して特定のスポットの位置を示す位置情報を取得することができる。   When imaging a specific spot (fixed subject), the system is used, and position information (for example, GPS information) indicating the position of the specific spot is transmitted by wireless communication from the transmission unit (position information transmission unit) of the system. Receive. When receiving position information by optical wireless communication, it is necessary to provide an optical wireless communication unit in the camera body 200. However, when the system transmits information by normal wireless communication, Position information indicating the position of a specific spot can be acquired using the wireless communication unit 236.

撮像条件取得部284Dは、特定のスポットの位置を示す位置情報と、カメラ本体200の位置情報(GPS受信部238が取得したGPS情報)とに基づいて特定のスポットまでの距離(被写体距離)を取得することができる。   The imaging condition acquisition unit 284D determines the distance (subject distance) to the specific spot based on the position information indicating the position of the specific spot and the position information of the camera body 200 (GPS information acquired by the GPS reception unit 238). Can be acquired.

[画像処理方法]
次に、本発明に係る画像処理方法について説明する。
[Image processing method]
Next, an image processing method according to the present invention will be described.

図7及び図8は、それぞれ本発明に係る画像処理方法の実施形態を示すフローチャートであり、特に撮像された画像に対してホワイトバランス補正を行うホワイトバランス補正方法に関して示している。   7 and 8 are flowcharts showing embodiments of the image processing method according to the present invention, respectively, and particularly show a white balance correction method for performing white balance correction on a captured image.

図7は、ホワイトバランス補正方法のメインルーチンを示すフローチャートである。図7において、カメラ本体200は、交換レンズからF値を取得することができるか否かを判別する(ステップS10)。カメラ本体200は、装着された交換レンズとの間で通信ができない場合、交換レンズからF値を取得することができないと判別する。   FIG. 7 is a flowchart showing a main routine of the white balance correction method. In FIG. 7, the camera body 200 determines whether or not the F value can be acquired from the interchangeable lens (step S10). If the camera body 200 cannot communicate with the attached interchangeable lens, the camera body 200 determines that the F value cannot be acquired from the interchangeable lens.

交換レンズからF値を取得することができると判別すると(「Yes」の場合)、カメラ本体200は、本体マウント260及び本体側通信部250を介して交換レンズのF値を取得する(ステップS12)。一方、交換レンズからF値を取得することができないと判別すると(「No」の場合)、カメラ本体200は、交換レンズのF値を算出(推定)する(ステップS14)。   If it is determined that the F value can be acquired from the interchangeable lens (in the case of “Yes”), the camera body 200 acquires the F value of the interchangeable lens via the body mount 260 and the body side communication unit 250 (step S12). ). On the other hand, if it is determined that the F value cannot be acquired from the interchangeable lens (in the case of “No”), the camera body 200 calculates (estimates) the F value of the interchangeable lens (step S14).

図8は、図7のステップS12の処理内容を示すサブルーチンを示すフローチャートであり、交換レンズのF値の算出は、以下の手順にしたがって行われる。   FIG. 8 is a flowchart showing a subroutine showing the processing content of step S12 in FIG. 7, and the F value of the interchangeable lens is calculated according to the following procedure.

図8において、撮像時の撮像条件として、被写体距離D、ISO感度、シャッタースピード、及びガイドナンバーGNを取得する(ステップS30)。   In FIG. 8, subject distance D, ISO sensitivity, shutter speed, and guide number GN are acquired as imaging conditions at the time of imaging (step S30).

続いて、内蔵フラッシュ30を発光させたフラッシュ発光撮像と、内蔵フラッシュ30を発光させないフラッシュ非発光撮像とを連続して行わせ、フラッシュ発光画像及びフラッシュ非発光画像を取得する(ステップS32、S34)。   Subsequently, the flash emission imaging that causes the built-in flash 30 to emit light and the flash non-emission imaging that does not cause the built-in flash 30 to emit light are continuously performed to obtain a flash emission image and a flash non-emission image (steps S32 and S34). .

フラッシュ光到達量算出部284Aは、ステップS32及びステップS34で取得したフラッシュ発光画像とフラッシュ非発光画像との差分からフラッシュ光の到達量を算出する(ステップS36)。   The flash light arrival amount calculation unit 284A calculates the flash light arrival amount from the difference between the flash emission image and the flash non-emission image acquired in steps S32 and S34 (step S36).

ステップS36で算出したフラッシュ光の到達量に基づいて、フラッシュ光の到達量に対応する輝度が、18%グレーの輝度になっているか否かを判別する(ステップS38)。感度取得部284Bは、18%グレーの輝度でない場合(「No」の場合)には、ISO感度を調整し、18%グレーの輝度にするISO感度を求める(ステップS40)。   Based on the flash light arrival amount calculated in step S36, it is determined whether or not the luminance corresponding to the flash light arrival amount is 18% gray (step S38). If the luminance is not 18% gray (in the case of “No”), the sensitivity acquisition unit 284B adjusts the ISO sensitivity to obtain the ISO sensitivity to obtain the luminance of 18% gray (step S40).

次に、感度係数算出部284Cは、ステップS30で取得した撮像時のISO感度と、ステップS40で調整したISO感度に基づいて、前述した[数3]式に基づいて感度係数Kを算出する(ステップS42)。   Next, the sensitivity coefficient calculation unit 284C calculates the sensitivity coefficient K based on the above-described Expression 3 based on the ISO sensitivity at the time of imaging acquired in step S30 and the ISO sensitivity adjusted in step S40 ( Step S42).

絞り値算出部284Eは、ステップS30で取得した内蔵フラッシュ30のガイドナンバーGN及び被写体距離Dと、ステップS42で算出した感度係数Kとに基づいて、[数4]式に基づいてF値を算出する(ステップS44)。   The aperture value calculation unit 284E calculates the F value based on the equation [4] based on the guide number GN and subject distance D of the built-in flash 30 acquired in step S30 and the sensitivity coefficient K calculated in step S42. (Step S44).

図7のメインルーチンに戻って、ステップS16は、ステップS12により取得したF値、又はステップS14により算出(推定)したF値、及び撮像時の撮像条件(シャッタースピード、ISO感度)及び撮像された画像データに基づいて被写体の明るさを示す露出値(EV値)を算出する。   Returning to the main routine of FIG. 7, in step S16, the F value acquired in step S12 or the F value calculated (estimated) in step S14, the imaging conditions (shutter speed, ISO sensitivity) at the time of imaging, and the imaging are performed. An exposure value (EV value) indicating the brightness of the subject is calculated based on the image data.

続いて、算出した露出値が、日中屋外か否かを判別する閾値Th(例えば、11EV又は12EV)以上か否かを判別する(ステップS18)。   Subsequently, it is determined whether or not the calculated exposure value is equal to or greater than a threshold Th (for example, 11 EV or 12 EV) for determining whether or not it is outdoors during the day (step S18).

撮像時の環境が日中屋外と判別されると(「Yes」の場合)、日中屋外用の光源種に対応するWBゲインを使用した、日中屋外用のAWB制御を行う(ステップS20)。   When it is determined that the environment during imaging is outdoor during the daytime (if “Yes”), daytime outdoor AWB control is performed using the WB gain corresponding to the daytime outdoor light source type (step S20). .

一方、撮像時の環境が日中屋外でない判別されると(「No」の場合)、日中屋外用のAWB制御以外のAWB制御(人工光源の光源種に対応するWBゲインを使用したAWB制御)を行う(ステップS22)。   On the other hand, if it is determined that the environment during imaging is not outdoor during the daytime (if “No”), AWB control other than the daytime outdoor AWB control (AWB control using the WB gain corresponding to the light source type of the artificial light source) (Step S22).

[その他]
本発明は、汎用のコンピュータにインストールされることにより該コンピュータを画像処理装置として機能させる画像処理プログラム、この画像処理プログラムが記録された記録媒体、及び画像処理プログラムがインストールされたコンピュータ(画像処理装置)を含む。
[Others]
The present invention relates to an image processing program that causes a computer to function as an image processing apparatus by being installed in a general-purpose computer, a recording medium in which the image processing program is recorded, and a computer in which the image processing program is installed (image processing apparatus) )including.

画像処理装置として機能するコンピュータの場合には、フラッシュ発光画像、フラッシュ非発光画像等を示す画像処理前の生データを、撮像装置、メモリカード又は通信回線を介して取得する。   In the case of a computer functioning as an image processing apparatus, raw data before image processing indicating a flash light emission image, a flash non-light emission image, or the like is acquired via an imaging device, a memory card, or a communication line.

この実施形態のカメラ本体200は、内蔵フラッシュ30を備えているが、本発明に係る撮像装置は、内蔵フラッシュ30を備えていないものでもよく、この場合には、アクセサリーシューに装着される外付けフラッシュを利用することができる。   Although the camera body 200 of this embodiment includes the built-in flash 30, the image pickup apparatus according to the present invention may not include the built-in flash 30, and in this case, an external attachment attached to the accessory shoe. A flash can be used.

また、F値を推定して被写体の明るさを検出する場合、フラッシュ発光画像とフラッシュ発光画像とが取得されているが、ホワイトバランス補正は、フラッシュ発光画像及びフラッシュ発光画像の両方の画像に対して行うようにしてもよいし、いずれか一方の画像に対して行うようにしてもよい。更に、F値を推定して被写体の明るさを検出した後、検出した被写体の明るさに基づく撮像EV値に基づいて再度撮像を行い、撮像した画像に対してホワイトバランス補正を行うようにしてもよい。   Further, when the F value is estimated to detect the brightness of the subject, the flash emission image and the flash emission image are acquired, but the white balance correction is performed for both the flash emission image and the flash emission image. Or may be performed on any one of the images. Furthermore, after the F value is estimated and the brightness of the subject is detected, imaging is performed again based on the imaging EV value based on the detected brightness of the subject, and white balance correction is performed on the captured image. Also good.

また、本発明は上述した実施形態に限定されず、本発明の精神を逸脱しない範囲で種々の変形が可能であることは言うまでもない。   Moreover, it goes without saying that the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention.

10…カメラシステム、22…シャッターレリーズボタン、100…交換レンズ、102…撮影光学系、104…ズームレンズ、106…フォーカスレンズ、108…絞り、120…レンズ側CPU、122、207…RAM、124、228…ROM、126、226…フラッシュROM、150…レンズ側通信部、160…レンズマウント、200…カメラ本体(撮像装置)、201…撮像素子、203…アナログ信号処理部、206…デジタル信号処理部、212…メモリカード、216…モニタ、220…本体側CPU、222…操作部、232…明るさ検出部、234…ホワイトバランス補正部、234A…ゲイン補正部、234B…WBゲイン算出部、234C…光源推定部、235…記憶部、236…無線通信部、237…判別部、238…GPS受信部、250…本体側通信部、260…本体マウント、270…フラッシュ発光部、272…フラッシュ制御部、282…絞り値取得部、284…絞り値推定部、284A…フラッシュ光到達量算出部、284B…感度取得部、284C…感度係数算出部、284D…撮像条件取得部、284E…絞り値算出部   DESCRIPTION OF SYMBOLS 10 ... Camera system, 22 ... Shutter release button, 100 ... Interchangeable lens, 102 ... Shooting optical system, 104 ... Zoom lens, 106 ... Focus lens, 108 ... Aperture, 120 ... Lens side CPU, 122, 207 ... RAM, 124, 228 ... ROM, 126, 226 ... Flash ROM, 150 ... Lens side communication unit, 160 ... Lens mount, 200 ... Camera body (imaging device), 201 ... Image sensor, 203 ... Analog signal processing unit, 206 ... Digital signal processing unit , 212 ... Memory card, 216 ... Monitor, 220 ... Main body side CPU, 222 ... Operation unit, 232 ... Brightness detection unit, 234 ... White balance correction unit, 234A ... Gain correction unit, 234B ... WB gain calculation unit, 234C ... Light source estimation unit, 235 ... storage unit, 236 ... wireless communication unit, 237 ... size , 238 ... GPS receiver, 250 ... main body side communication part, 260 ... main body mount, 270 ... flash light emission part, 272 ... flash control part, 282 ... aperture value acquisition part, 284 ... aperture value estimation part, 284A ... flash light Achieving amount calculation unit, 284B ... sensitivity acquisition unit, 284C ... sensitivity coefficient calculation unit, 284D ... imaging condition acquisition unit, 284E ... aperture value calculation unit

Claims (16)

交換レンズが装着されたレンズ交換可能な撮像装置により撮像された被写体の画像の撮像時の絞り値であって、前記交換レンズから前記絞り値を取得する絞り値取得部と、
前記絞り値取得部が前記交換レンズから撮像時の絞り値を取得不能な場合に絞り値を推定する絞り値推定部と、
前記撮像装置により撮像された画像、前記絞り値取得部により取得した絞り値又は前記絞り値推定部により推定した絞り値、及び撮像時のシャッタースピードに基づいて被写体の明るさを検出する明るさ検出部と、
前記明るさ検出部により検出された被写体の明るさに基づいて前記撮像された画像のホワイトバランスを補正するホワイトバランス補正部と、を備え、
前記絞り値推定部は、
前記撮像装置により撮像された画像であって、所定のガイドナンバーのフラッシュ光を発光して撮像されたフラッシュ発光画像と、フラッシュ光を発光せずに撮像されたフラッシュ非発光画像とをそれぞれ取得する画像取得部と、
前記フラッシュ発光画像及び前記フラッシュ非発光画像の撮像時のシャッタースピード、被写体距離及び前記ガイドナンバーをそれぞれ取得する撮像条件取得部と、
前記画像取得部により取得した前記フラッシュ発光画像と前記フラッシュ非発光画像との差分から前記フラッシュ光の到達量を算出するフラッシュ光到達量算出部と、を含み、
前記撮像条件取得部により取得した前記ガイドナンバー及び前記被写体距離と、前記フラッシュ光到達量算出部により算出された前記フラッシュ光の到達量とに基づいて前記画像の撮像時の絞り値を推定する画像処理装置。
An aperture value at the time of imaging an image of a subject imaged by an interchangeable lens-equipped imaging device equipped with an interchangeable lens, and an aperture value acquisition unit that acquires the aperture value from the interchangeable lens;
An aperture value estimation unit that estimates an aperture value when the aperture value acquisition unit cannot acquire an aperture value at the time of imaging from the interchangeable lens;
Brightness detection that detects the brightness of the subject based on the image captured by the imaging device, the aperture value acquired by the aperture value acquisition unit or the aperture value estimated by the aperture value estimation unit, and the shutter speed at the time of imaging And
A white balance correction unit that corrects the white balance of the captured image based on the brightness of the subject detected by the brightness detection unit,
The aperture value estimation unit
An image captured by the imaging device, each obtained by emitting a flash light of a predetermined guide number and captured by a flash light, and a non-flash image captured by emitting no flash light An image acquisition unit;
An imaging condition acquisition unit that acquires a shutter speed, a subject distance, and the guide number at the time of imaging the flash emission image and the flash non-emission image;
A flash light arrival amount calculation unit that calculates the amount of flash light reached from the difference between the flash emission image acquired by the image acquisition unit and the flash non-emission image,
An image for estimating an aperture value at the time of imaging of the image based on the guide number and the subject distance acquired by the imaging condition acquisition unit and the flash light arrival amount calculated by the flash light arrival amount calculation unit Processing equipment.
前記ホワイトバランス補正部は、前記明るさ検出部により検出された被写体の明るさに基づいて日中屋外の被写体か否かを判別する判別部を含み、前記判別部による判別結果に応じて前記画像のホワイトバランス補正の補正内容を変更する請求項1に記載の画像処理装置。   The white balance correction unit includes a determination unit that determines whether or not the subject is an outdoor subject during the day based on the brightness of the subject detected by the brightness detection unit, and the image according to the determination result by the determination unit The image processing apparatus according to claim 1, wherein the correction content of the white balance correction is changed. 前記絞り値推定部は、前記フラッシュ光の到達量が適正露出量になる感度を取得する感度取得部を含み、前記取得した感度に対応する感度係数をK、前記撮像条件取得部により取得した前記ガイドナンバー及び前記被写体距離をそれぞれGN及びDとすると、前記推定する絞り値Fを、次式、
F=GN×K÷D
により算出する請求項1又は2に記載の画像処理装置。
The aperture value estimation unit includes a sensitivity acquisition unit that acquires sensitivity at which the amount of flash light reached reaches an appropriate exposure amount, the sensitivity coefficient corresponding to the acquired sensitivity is K, and the imaging condition acquisition unit acquires the sensitivity coefficient Assuming that the guide number and the subject distance are GN and D, respectively, the estimated aperture value F is expressed by the following equation:
F = GN × K ÷ D
The image processing apparatus according to claim 1, wherein the image processing apparatus is calculated by:
交換レンズが着脱可能なレンズ装着部と、
前記レンズ装着部に装着された交換レンズを介して被写体の画像を撮像する撮像部と、
前記レンズ装着部に装着された交換レンズから撮像時の絞り値を取得する絞り値取得部と、
前記絞り値取得部が前記レンズ装着部に装着された交換レンズから撮像時の絞り値を取得不能な場合に撮像時の絞り値を推定する絞り値推定部と、
前記撮像部により撮像された画像、前記絞り値取得部により取得した絞り値又は前記絞り値推定部により推定した絞り値、及び撮像時のシャッタースピードに基づいて被写体の明るさを検出する明るさ検出部と、
前記明るさ検出部により検出された被写体の明るさに基づいて前記撮像部により撮像された画像のホワイトバランスを補正するホワイトバランス補正部と、を備え、
前記絞り値推定部は、
前記撮像部により撮像された画像であって、所定のガイドナンバーのフラッシュ光を発光して撮像されたフラッシュ発光画像と、フラッシュ光を発光せずに撮像されたフラッシュ非発光画像とをそれぞれ取得する画像取得部と、
前記フラッシュ発光画像及び前記フラッシュ非発光画像の撮像時のシャッタースピード、被写体距離及び前記ガイドナンバーをそれぞれ取得する撮像条件取得部と、
前記画像取得部により取得した前記フラッシュ発光画像と前記フラッシュ非発光画像との差分から前記フラッシュ光の到達量を算出するフラッシュ光到達量算出部と、を含み、
前記撮像条件取得部により取得した前記ガイドナンバー及び前記被写体距離と、前記フラッシュ光到達量算出部により算出された前記フラッシュ光の到達量とに基づいて前記画像の撮像時の絞り値を推定する撮像装置。
A lens mounting part to which the interchangeable lens can be attached and detached,
An imaging unit that captures an image of a subject through an interchangeable lens mounted on the lens mounting unit;
An aperture value acquisition unit for acquiring an aperture value at the time of imaging from the interchangeable lens mounted on the lens mounting unit;
An aperture value estimation unit that estimates an aperture value at the time of imaging when the aperture value acquisition unit cannot acquire an aperture value at the time of imaging from the interchangeable lens mounted on the lens mounting unit;
Brightness detection that detects the brightness of the subject based on the image captured by the imaging unit, the aperture value acquired by the aperture value acquisition unit or the aperture value estimated by the aperture value estimation unit, and the shutter speed at the time of imaging And
A white balance correction unit that corrects the white balance of the image captured by the imaging unit based on the brightness of the subject detected by the brightness detection unit,
The aperture value estimation unit
An image captured by the imaging unit, which is obtained by emitting flash light of a predetermined guide number and captured by flash light, and non-flash image captured by emitting flash light without emitting flash light, respectively. An image acquisition unit;
An imaging condition acquisition unit that acquires a shutter speed, a subject distance, and the guide number at the time of imaging the flash emission image and the flash non-emission image;
A flash light arrival amount calculation unit that calculates the amount of flash light reached from the difference between the flash emission image acquired by the image acquisition unit and the flash non-emission image,
Imaging that estimates an aperture value at the time of imaging of the image based on the guide number and the subject distance acquired by the imaging condition acquisition unit and the flash light arrival amount calculated by the flash light arrival amount calculation unit apparatus.
前記レンズ装着部に装着された交換レンズと前記レンズ装着部を介して通信が可能な通信部を備え、
前記絞り値取得部は、前記通信部が前記交換レンズと通信が可能な場合に前記通信部を介して前記交換レンズの絞り値を取得する請求項4に記載の撮像装置。
The interchangeable lens mounted on the lens mounting unit and a communication unit capable of communicating via the lens mounting unit,
The imaging apparatus according to claim 4, wherein the aperture value acquisition unit acquires the aperture value of the interchangeable lens via the communication unit when the communication unit can communicate with the interchangeable lens.
前記ホワイトバランス補正部は、前記明るさ検出部により検出された被写体の明るさに基づいて日中屋外の被写体か否かを判別する判別部を含み、前記判別部による判別結果に応じて前記画像のホワイトバランス補正の補正内容を変更する請求項4又は5に記載の撮像装置。   The white balance correction unit includes a determination unit that determines whether or not the subject is an outdoor subject during the day based on the brightness of the subject detected by the brightness detection unit, and the image according to the determination result by the determination unit The imaging apparatus according to claim 4, wherein the correction content of the white balance correction is changed. 前記絞り値推定部は、前記フラッシュ光の到達量が適正露出量になる感度を取得する感度取得部を含み、前記取得した感度に対応する感度係数をK、前記撮像条件取得部により取得した前記ガイドナンバー及び前記被写体距離をそれぞれGN及びDとすると、前記推定する絞り値Fを、次式、
F=GN×K÷D
により算出する請求項4から6のいずれか1項に記載の撮像装置。
The aperture value estimation unit includes a sensitivity acquisition unit that acquires sensitivity at which the amount of flash light reached reaches an appropriate exposure amount, the sensitivity coefficient corresponding to the acquired sensitivity is K, and the imaging condition acquisition unit acquires the sensitivity coefficient Assuming that the guide number and the subject distance are GN and D, respectively, the estimated aperture value F is expressed by the following equation:
F = GN × K ÷ D
The imaging device according to claim 4, which is calculated by:
被写体に合焦したときの前記交換レンズのフォーカスレンズのレンズ位置を取得するレンズ位置取得部を備え、
前記撮像条件取得部は、前記レンズ位置取得部により取得された前記フォーカスレンズのレンズ位置に基づいて前記被写体距離を取得する請求項4から7のいずれか1項に記載の撮像装置。
A lens position acquisition unit that acquires the lens position of the focus lens of the interchangeable lens when focused on a subject;
The imaging apparatus according to claim 4, wherein the imaging condition acquisition unit acquires the subject distance based on a lens position of the focus lens acquired by the lens position acquisition unit.
前記交換レンズの焦点距離情報と、大きさが既知の所定の被写体に合焦したときの前記撮像された画像内の前記所定の被写体の大きさとに基づいて前記所定の被写体までの距離を推定する被写体距離推定部を備え、
前記撮像条件取得部は、前記被写体距離推定部が推定した前記被写体距離を前記被写体距離推定部から取得する請求項4から7のいずれか1項に記載の撮像装置。
The distance to the predetermined subject is estimated based on the focal length information of the interchangeable lens and the size of the predetermined subject in the captured image when the predetermined subject having a known size is focused. With a subject distance estimation unit,
The imaging apparatus according to claim 4, wherein the imaging condition acquisition unit acquires the subject distance estimated by the subject distance estimation unit from the subject distance estimation unit.
被写体が所持している携帯端末と無線通信する無線通信部を備え、
前記撮像条件取得部は、前記無線通信部が前記携帯端末から受信する電波の強度に基づいて前記被写体距離を取得する請求項4から7のいずれか1項に記載の撮像装置。
A wireless communication unit that wirelessly communicates with the mobile terminal that the subject has,
The imaging apparatus according to claim 4, wherein the imaging condition acquisition unit acquires the subject distance based on an intensity of radio waves received from the mobile terminal by the wireless communication unit.
GPS情報を取得するGPS情報取得部を備え、
前記撮像条件取得部は、前記GPS情報取得部が取得した被写体の位置を示すGPS情報と撮像位置を示すGPS情報とに基づいて前記被写体距離を取得する請求項4から7のいずれか1項に記載の撮像装置。
A GPS information acquisition unit for acquiring GPS information;
8. The apparatus according to claim 4, wherein the imaging condition acquisition unit acquires the subject distance based on GPS information indicating the position of the subject acquired by the GPS information acquisition unit and GPS information indicating the imaging position. The imaging device described.
固定の被写体の位置を示す位置情報を送信する位置情報送信部から前記位置情報を受信する無線通信部を備え、
前記撮像条件取得部は、前記無線通信部が取得した固定の被写体の位置を示す位置情報と撮像位置を示す位置情報とに基づいて前記被写体距離を取得する請求項4から7のいずれか1項に記載の撮像装置。
A wireless communication unit that receives the position information from a position information transmission unit that transmits position information indicating the position of a fixed subject;
8. The apparatus according to claim 4, wherein the imaging condition acquisition unit acquires the subject distance based on position information indicating a position of a fixed subject acquired by the wireless communication unit and position information indicating an imaging position. The imaging device described in 1.
交換レンズが装着されたレンズ交換可能な撮像装置により撮像された被写体の画像の撮像時の絞り値であって、前記交換レンズから前記絞り値を取得するステップと、
前記絞り値を取得するステップにより前記交換レンズから撮像時の絞り値を取得不能な場合に絞り値を推定するステップと、
前記撮像装置により撮像された画像、前記取得した絞り値又は前記推定した絞り値、及び撮像時のシャッタースピードに基づいて被写体の明るさを検出するステップと、
前記検出された被写体の明るさに基づいて前記撮像された画像のホワイトバランスを補正するステップと、を含み、
前記絞り値を推定するステップは、
前記撮像装置により撮像された画像であって、所定のガイドナンバーのフラッシュ光を発光して撮像されたフラッシュ発光画像と、フラッシュ光を発光せずに撮像されたフラッシュ非発光画像とをそれぞれ取得するステップと、
前記フラッシュ発光画像及び前記フラッシュ非発光画像の撮像時のシャッタースピード、被写体距離及び前記ガイドナンバーをそれぞれ取得するステップと、
前記取得した前記フラッシュ発光画像と前記フラッシュ非発光画像との差分から前記フラッシュ光の到達量を算出するステップと、を有し、
前記取得した前記ガイドナンバー及び前記被写体距離と、前記算出された前記フラッシュ光の到達量とに基づいて前記画像の撮像時の絞り値を推定する画像処理方法。
An aperture value at the time of imaging an image of a subject imaged by an interchangeable lens-equipped imaging device equipped with an interchangeable lens, and obtaining the aperture value from the interchangeable lens; and
Estimating the aperture value when the aperture value at the time of imaging cannot be acquired from the interchangeable lens by the step of acquiring the aperture value;
Detecting the brightness of the subject based on the image captured by the imaging device, the acquired aperture value or the estimated aperture value, and the shutter speed at the time of imaging;
Correcting a white balance of the captured image based on the detected brightness of the subject,
The step of estimating the aperture value includes
An image captured by the imaging device, each obtained by emitting a flash light of a predetermined guide number and captured by a flash light, and a non-flash image captured by emitting no flash light Steps,
Obtaining a shutter speed, a subject distance and the guide number at the time of capturing the flash emission image and the flash non-emission image, respectively;
Calculating the amount of flash light reached from the difference between the acquired flash emission image and the flash non-emission image,
An image processing method for estimating an aperture value at the time of capturing the image based on the acquired guide number and the subject distance and the calculated amount of the flash light reached.
前記ホワイトバランスを補正するステップは、前記検出された被写体の明るさに基づいて日中屋外の被写体か否かを判別するステップを含み、前記判別した判別結果に応じて前記画像のホワイトバランス補正の補正内容を変更する請求項13に記載の画像処理方法。   The step of correcting the white balance includes a step of determining whether or not the subject is an outdoor subject during the day based on the brightness of the detected subject, and the white balance correction of the image is performed according to the determined determination result. The image processing method according to claim 13, wherein the correction content is changed. 前記絞り値を推定するステップは、前記フラッシュ光の到達量が適正露出量になる感度を取得するステップを含み、前記取得した感度に対応する感度係数をK、前記取得した前記ガイドナンバー及び前記被写体距離をそれぞれGN及びDとすると、前記推定する絞り値Fを、次式、
F=GN×K÷D
により算出する請求項13又は14に記載の画像処理方法。
The step of estimating the aperture value includes the step of acquiring a sensitivity at which the amount of flash light reached becomes an appropriate exposure amount, and the sensitivity coefficient corresponding to the acquired sensitivity is K, the acquired guide number and the subject. When the distances are GN and D, respectively, the estimated aperture value F is expressed by the following equation:
F = GN × K ÷ D
The image processing method according to claim 13 or 14 calculated by:
請求項13から15のいずれか1項に記載の画像処理方法をコンピュータに実行させる画像処理プログラム。   An image processing program for causing a computer to execute the image processing method according to any one of claims 13 to 15.
JP2015016669A 2015-01-30 2015-01-30 Image processing apparatus, imaging device, image processing method and image processing program Pending JP2016143951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015016669A JP2016143951A (en) 2015-01-30 2015-01-30 Image processing apparatus, imaging device, image processing method and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015016669A JP2016143951A (en) 2015-01-30 2015-01-30 Image processing apparatus, imaging device, image processing method and image processing program

Publications (1)

Publication Number Publication Date
JP2016143951A true JP2016143951A (en) 2016-08-08

Family

ID=56570885

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015016669A Pending JP2016143951A (en) 2015-01-30 2015-01-30 Image processing apparatus, imaging device, image processing method and image processing program

Country Status (1)

Country Link
JP (1) JP2016143951A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180073195A (en) * 2016-12-22 2018-07-02 에스케이플래닛 주식회사 Imaging apparatus, and control method thereof
KR20180106197A (en) * 2017-03-17 2018-10-01 에스케이플래닛 주식회사 Imaging apparatus and control method thereof, and subject appratus
US10791260B2 (en) 2017-09-28 2020-09-29 Fujifilm Corporation Imaging device, information acquisition method, and information acquisition program
US11201999B2 (en) 2017-09-28 2021-12-14 Fujifilm Corporation Imaging device, information acquisition method, and information acquisition program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180073195A (en) * 2016-12-22 2018-07-02 에스케이플래닛 주식회사 Imaging apparatus, and control method thereof
KR102629934B1 (en) * 2016-12-22 2024-01-26 에스케이플래닛 주식회사 Imaging apparatus, and control method thereof
KR20180106197A (en) * 2017-03-17 2018-10-01 에스케이플래닛 주식회사 Imaging apparatus and control method thereof, and subject appratus
KR102311322B1 (en) 2017-03-17 2021-10-13 에스케이플래닛 주식회사 Imaging apparatus and control method thereof, and subject appratus
US10791260B2 (en) 2017-09-28 2020-09-29 Fujifilm Corporation Imaging device, information acquisition method, and information acquisition program
US11201999B2 (en) 2017-09-28 2021-12-14 Fujifilm Corporation Imaging device, information acquisition method, and information acquisition program

Similar Documents

Publication Publication Date Title
US7711257B2 (en) Image quality in cameras using flash
JP2007135140A (en) Imaging apparatus
JP5253000B2 (en) Imaging device
US11201999B2 (en) Imaging device, information acquisition method, and information acquisition program
US10791260B2 (en) Imaging device, information acquisition method, and information acquisition program
JP2016143951A (en) Image processing apparatus, imaging device, image processing method and image processing program
JP2012204953A (en) Imaging system, illumination device, and camera
JP2024036370A (en) Image processing device, imaging device, image processing method, image processing program, and recording medium
JP2012010237A (en) Photographing device
JP2003125422A (en) Digital camera, colorimeter and image processing system
JP2013141105A (en) Image processing device, electronic camera, and image processing program
JP4659586B2 (en) Interchangeable lens camera, lens unit, and camera body of interchangeable lens camera
JP2011044788A (en) Imager and white balance correction method
JP6875603B2 (en) Imaging device, imaging method, and program
JPWO2019181578A1 (en) Imaging equipment, zoom imaging method between exposures, programs and recording media
JP2003087608A (en) Electronic camera
US20100066859A1 (en) Image Signal Processing Device, Image Signal Processing Method, Program, Image Imaging Device, and Imaging System
JP2006173860A (en) Electronic camera
JP4636393B2 (en) Imaging system, artificial light source and camera
JP2010107900A (en) Imaging apparatus, compound eye imaging apparatus, imaging method and program
JP2009122294A (en) Illuminator for photography
JP5790974B2 (en) Imaging condition acquisition apparatus, imaging condition acquisition method and program, and imaging apparatus
JP2005159888A (en) Imaging device
JP2014127770A (en) Imaging apparatus
JP2010016710A (en) Main camera, sub camera, and camera system including them