JP2019205063A - Imaging apparatus and control method and program thereof - Google Patents

Imaging apparatus and control method and program thereof Download PDF

Info

Publication number
JP2019205063A
JP2019205063A JP2018099017A JP2018099017A JP2019205063A JP 2019205063 A JP2019205063 A JP 2019205063A JP 2018099017 A JP2018099017 A JP 2018099017A JP 2018099017 A JP2018099017 A JP 2018099017A JP 2019205063 A JP2019205063 A JP 2019205063A
Authority
JP
Japan
Prior art keywords
image signal
brightness
reference value
gradation
exposure reference
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
JP2018099017A
Other languages
Japanese (ja)
Inventor
隼 渡邊
Jun Watanabe
隼 渡邊
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2018099017A priority Critical patent/JP2019205063A/en
Publication of JP2019205063A publication Critical patent/JP2019205063A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a technique capable of reducing impact on the lightness of the other image signal even if the lightness of one image signal is changed, when handling multiple image signals having different gradation characteristics.SOLUTION: An imaging apparatus has setting means for setting a first exposure reference value in a first image signal, and a second exposure reference value in a second image signal having gradation characteristics different from those of the first image signal, brightness control means for controlling the brightness of the first image signal on the basis of the first exposure reference value thus set, control means for controlling gray scale conversion characteristics, and gray scale conversion means for converting an image signal, subjected to brightness change by the brightness control means, into a second image signal by using gradation conversion characteristics. The control means finds gradation conversion characteristics for restraining brightness change of the second image signal according to the discrepancy of the first and second exposure reference values.SELECTED DRAWING: Figure 2

Description

本発明は、撮像装置およびその制御方法ならびにプログラムに関する。   The present invention relates to an imaging apparatus, a control method thereof, and a program.

近年、ディスプレイの表示可能な輝度レンジの拡大に伴い、Rec.ITU−R BT.2100などのHDR(ハイダイナミックレンジ)規格に対応するディスプレイやカメラなどの機器が増加している。他方、従来のSDR(スタンダードダイナミックレンジ)規格のみに対応する機器も多数存在するため、映像制作者はHDR規格に対応した映像とSDR規格に対応した映像の両方を作成せざるを得ない場合がある。このような映像制作の負担を軽減するため、HDR信号を入力し、SDR信号に変換して出力する機能を備えた映像変換機器が提案されている(特許文献1)。特許文献1では、入力したHDR信号のコード値をHDRのEOTFを用いて輝度値に変換し、変換した輝度値を予め関係付けられた別の輝度値に更に変換した後にSDRのEOTFを用いてSDRのコード値に変換する技術を提案している。なお、EOTF(Electro-Optical Transfer Functions)は、電気光伝達関数ともいわれる。   In recent years, with the expansion of the displayable luminance range, Rec. ITU-R BT. Devices such as displays and cameras corresponding to HDR (High Dynamic Range) standards such as 2100 are increasing. On the other hand, since there are many devices that only support the conventional SDR (standard dynamic range) standard, the video producer may be forced to create both the video corresponding to the HDR standard and the video corresponding to the SDR standard. is there. In order to reduce such a burden of video production, a video conversion device having a function of inputting an HDR signal, converting it into an SDR signal, and outputting it has been proposed (Patent Document 1). In Patent Document 1, a code value of an input HDR signal is converted into a luminance value using an HDR EOTF, and the converted luminance value is further converted into another luminance value related in advance, and then an SDR EOTF is used. A technique for converting to an SDR code value is proposed. Note that EOTF (Electro-Optical Transfer Functions) is also referred to as an electro-optical transfer function.

特許第5948618号公報Japanese Patent No. 5948618

しかしながら、特許文献1で提案された技術では、輝度値同士の変換が予め関係付けられているためにHDRの明るさを変更するとSDRの明るさも連動して変化してしまう。HDRはダイナミックレンジが拡大しているため、撮影者の表現の意図に応じた撮影時の明るさの変更を許容する余地が大きい。一方、SDRは相対的に明るさの変更を許容する余地が小さいため、SDRの明るさがHDRと連動する場合にはSDR側では意図しない白飛びなどが発生する恐れがある。   However, in the technique proposed in Patent Document 1, since the conversion between luminance values is related in advance, when the HDR brightness is changed, the SDR brightness also changes in conjunction. Since HDR has an expanded dynamic range, there is a large room for allowing a change in brightness during shooting according to the intention of the photographer to express. On the other hand, since the SDR has relatively little room for allowing the brightness to change, when the SDR brightness is linked to the HDR, an unintended whiteout may occur on the SDR side.

本発明は、上記課題に鑑みてなされ、その目的は、異なる階調特性を有する複数の画像信号を扱う場合に、一方の画像信号の明るさを変更しても他方の画像信号の明るさに与える影響を低減することが可能な技術を実現することである。   The present invention has been made in view of the above problems, and its object is to handle the brightness of one image signal even when the brightness of one image signal is changed when handling a plurality of image signals having different gradation characteristics. It is to realize a technology capable of reducing the influence exerted.

この課題を解決するため、例えば本発明の画像処理装置は以下の構成を備える。すなわち、第一の画像信号における第一の露出基準値と、前記第一の画像信号と階調特性の異なる第二の画像信号における第二の露出基準値とを設定する設定手段と、設定された前記第一の露出基準値に基づいて第一の画像信号の明るさを制御する明るさ制御手段と、階調変換特性を制御する制御手段と、前記明るさ制御手段の制御によって明るさの変更された画像信号を、前記階調変換特性を用いて前記第二の画像信号に変換する階調変換手段と、を有し、前記制御手段は、前記第一の露出基準値と前記第二の露出基準値の相違に応じて前記第二の画像信号の明るさの変化を抑制する前記階調変換特性を求める、ことを特徴とする。   In order to solve this problem, for example, an image processing apparatus of the present invention has the following configuration. That is, setting means for setting a first exposure reference value in the first image signal and a second exposure reference value in the second image signal having gradation characteristics different from those of the first image signal are set. Further, brightness control means for controlling the brightness of the first image signal based on the first exposure reference value, control means for controlling gradation conversion characteristics, and brightness control by the control of the brightness control means. Gradation conversion means for converting the changed image signal into the second image signal using the gradation conversion characteristics, and the control means includes the first exposure reference value and the second exposure signal. The gradation conversion characteristic that suppresses the change in the brightness of the second image signal according to the difference in the exposure reference value is obtained.

本発明によれば、異なる階調特性を有する複数の画像信号を扱う場合に、一方の画像信号の明るさを変更しても他方の画像信号の明るさに与える影響を低減することが可能になる。   According to the present invention, when a plurality of image signals having different gradation characteristics are handled, even if the brightness of one image signal is changed, the influence on the brightness of the other image signal can be reduced. Become.

実施形態1における撮像装置の一例としてのデジタルカメラの機能構成例を示すブロック図1 is a block diagram illustrating a functional configuration example of a digital camera as an example of an imaging apparatus according to Embodiment 1. FIG. 実施形態1における画像処理部、画像変換部、システム制御部及び操作部の機能構成例を示すブロック図FIG. 2 is a block diagram illustrating an example functional configuration of an image processing unit, an image conversion unit, a system control unit, and an operation unit in the first embodiment. 実施形態1における3次元ルックアップテーブルの一例を示す表Table showing an example of a three-dimensional lookup table in the first embodiment 実施形態1における変換特性算出処理に係る一連の動作を示すフローチャート7 is a flowchart showing a series of operations related to conversion characteristic calculation processing in the first embodiment. 実施形態1における第一階調変換部に設定する階調変換特性を説明する図FIG. 6 is a diagram for explaining gradation conversion characteristics set in the first gradation conversion unit in the first embodiment. 実施形態2における画像処理部、システム制御部及び操作部の機能構成例を示すブロック図FIG. 9 is a block diagram illustrating an example of functional configurations of an image processing unit, a system control unit, and an operation unit in the second embodiment. 実施形態2における変換特性算出処理に係る一連の動作を示すフローチャート7 is a flowchart showing a series of operations related to conversion characteristic calculation processing in the second embodiment.

<実施形態1>
以下、本発明の例示的な実施形態について、図面を参照して詳細に説明する。なお、以下では撮像装置の一例として、画像信号の階調を変換可能なデジタルカメラを用いる例を説明する。しかし、本実施形態は、デジタルカメラに限らず、画像信号の階調を変換可能な他の機器にも適用可能である。これらの機器には、例えばスマートフォンを含む携帯電話機、ゲーム機、タブレット端末、時計型や眼鏡型の情報端末、医療機器、監視システムや車載用システムの機器などが含まれてよい。
<Embodiment 1>
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings. In the following, an example in which a digital camera capable of converting the gradation of an image signal is used as an example of an imaging apparatus will be described. However, this embodiment can be applied not only to a digital camera but also to other devices that can convert the gradation of an image signal. These devices may include, for example, a mobile phone including a smartphone, a game machine, a tablet terminal, a clock-type or glasses-type information terminal, a medical device, a monitoring system, an in-vehicle system device, and the like.

(デジタルカメラの構成)
図1は、本実施形態の撮像装置の一例としてデジタルカメラの機能構成例を示すブロック図である。なお、図1に示す機能ブロックの1つ以上は、ASICやプログラマブルロジックアレイ(PLA)などのハードウェアによって実現されてもよいし、CPUやMPU等のプログラマブルプロセッサがソフトウェアを実行することによって実現されてもよい。また、ソフトウェアとハードウェアの組み合わせによって実現されてもよい。従って、以下の説明において、異なる機能ブロックが動作主体として記載されている場合であっても、同じハードウェアが主体として実現されうる。
(Configuration of digital camera)
FIG. 1 is a block diagram illustrating a functional configuration example of a digital camera as an example of the imaging apparatus of the present embodiment. One or more of the functional blocks shown in FIG. 1 may be realized by hardware such as an ASIC or a programmable logic array (PLA), or may be realized by a programmable processor such as a CPU or MPU executing software. May be. Further, it may be realized by a combination of software and hardware. Therefore, in the following description, even when different functional blocks are described as the operation subject, the same hardware can be realized as the subject.

撮影レンズ102は、ズームレンズ、フォーカスレンズを含むレンズ群であり、被写体像を結像させる。絞り103は光量調整に使用する絞りである。ND104は減光用に使用するNDフィルタである。撮像部105は光学像を電気信号に変換するCCDやCMOS素子等で構成される撮像素子である。また、撮像部105には電子シャッターによる蓄積の制御や、アナログゲイン、読み出し速度の変更などの機能も備える。A/D変換器106は、アナログ信号をデジタル信号に変換する。A/D変換器106は、撮像部105から出力されるアナログ画像信号をデジタル画像信号に変換するために用いられる。バリア101は、デジタルカメラ100の、撮影レンズ102を含む撮像系を覆うことにより、撮影レンズ102、絞り103、ND104、撮像部105を含む撮像系の汚れや破損を防止する。   The photographing lens 102 is a lens group including a zoom lens and a focus lens, and forms a subject image. An aperture 103 is an aperture used for light amount adjustment. An ND 104 is an ND filter used for dimming. The imaging unit 105 is an imaging device configured by a CCD, a CMOS device, or the like that converts an optical image into an electrical signal. The imaging unit 105 also has functions such as accumulation control using an electronic shutter, change of analog gain, and readout speed. The A / D converter 106 converts an analog signal into a digital signal. The A / D converter 106 is used to convert an analog image signal output from the imaging unit 105 into a digital image signal. The barrier 101 covers the imaging system including the imaging lens 102 of the digital camera 100, thereby preventing the imaging system including the imaging lens 102, the aperture 103, the ND 104, and the imaging unit 105 from being dirty or damaged.

画像処理部115は、A/D変換器106からのデータ、又は、メモリ制御部116からのデータに対して色変換処理、ガンマ補正、デジタルゲインの付加等の様々な画像処理を行う。また、撮像した画像データを用いて所定の演算処理が行われ、演算結果をシステム制御部114に送信する。送信された演算結果に基づいてシステム制御部114が露出制御、測距制御をホワイトバランス制御等行う。これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理等が行われる。画像処理部115についての詳細は後述する。   The image processing unit 115 performs various image processing such as color conversion processing, gamma correction, and digital gain addition on the data from the A / D converter 106 or the data from the memory control unit 116. In addition, predetermined calculation processing is performed using the captured image data, and the calculation result is transmitted to the system control unit 114. Based on the transmitted calculation result, the system control unit 114 performs exposure control, ranging control, white balance control, and the like. As a result, TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, and the like are performed. Details of the image processing unit 115 will be described later.

A/D変換器106からの出力データは、画像処理部115及びメモリ制御部116を介して、或いは、メモリ制御部116を介してメモリ119に直接書き込まれる。メモリ119は、撮像部105によって撮像されA/D変換器106によりデジタル信号に変換された画像信号や、表示部118に表示するための画像信号を格納する。メモリ119は、所定時間の動画像および音声を格納するのに十分な記憶容量を備えている。   Output data from the A / D converter 106 is directly written into the memory 119 via the image processing unit 115 and the memory control unit 116 or via the memory control unit 116. The memory 119 stores an image signal captured by the imaging unit 105 and converted into a digital signal by the A / D converter 106 and an image signal to be displayed on the display unit 118. The memory 119 has a storage capacity sufficient to store a moving image and sound for a predetermined time.

また、メモリ119は画像表示用のメモリ(ビデオメモリ)を兼ねている。D/A変換器117は、メモリ119に格納されている画像表示用のデータをアナログ信号に変換して表示部118に供給する。こうして、メモリ119に書き込まれた表示用の画像データはD/A変換器117を介して表示部118により表示される。表示部118は、例えばLCD等の表示器上を含み、当該表示器上に、D/A変換器117からのアナログ信号に応じた表示を行う。A/D変換器106によって一度A/D変換されメモリ119に蓄積されたデジタル信号をD/A変換器117においてアナログ変換し、表示部118に逐次転送して表示することで、電子ビューファインダとして機能し、スルー画像表示を行うことができる。   The memory 119 also serves as an image display memory (video memory). The D / A converter 117 converts the image display data stored in the memory 119 into an analog signal and supplies the analog signal to the display unit 118. Thus, the display image data written in the memory 119 is displayed on the display unit 118 via the D / A converter 117. The display unit 118 includes a display such as an LCD, for example, and performs display according to the analog signal from the D / A converter 117 on the display. A digital signal once A / D converted by the A / D converter 106 and stored in the memory 119 is converted into an analog signal by the D / A converter 117, and sequentially transferred to the display unit 118 for display as an electronic viewfinder. It can function and display a through image.

不揮発性メモリ113は、電気的に消去・記録可能なメモリであり、例えばEEPROMが用いられる。不揮発性メモリ113には、システム制御部114の動作用の定数、プログラム等が記憶される。ここでいう、プログラムとは、本発明の実施形態にて後述する各種フローチャートを実行するためのプログラムのことである。   The nonvolatile memory 113 is an electrically erasable / recordable memory, and for example, an EEPROM is used. The nonvolatile memory 113 stores constants, programs, and the like for operating the system control unit 114. Here, the program is a program for executing various flowcharts described later in the embodiment of the present invention.

システム制御部114は、例えばCPU又はMPUを含み、不揮発性メモリ113に記録されたプログラムをシステムメモリ121に展開、実行することにより、デジタルカメラ100全体を制御とともに、後述する変換処理の動作を制御する。なお、システム制御部114は、画像処理部115の機能を兼ね備えてもよい。   The system control unit 114 includes, for example, a CPU or MPU, and develops and executes a program recorded in the non-volatile memory 113 in the system memory 121, thereby controlling the entire digital camera 100 and controlling the operation of conversion processing described later. To do. Note that the system control unit 114 may also have the function of the image processing unit 115.

システムメモリ121は、例えばRAMを含み、システム制御部114の動作用の定数、変数、不揮発性メモリ113から読み出したプログラム等を展開する。また、システム制御部114はメモリ119、D/A変換器117、表示部118等を制御することにより表示制御も行う。   The system memory 121 includes, for example, a RAM, and develops constants and variables for operation of the system control unit 114, a program read from the nonvolatile memory 113, and the like. The system control unit 114 also performs display control by controlling the memory 119, the D / A converter 117, the display unit 118, and the like.

システムタイマー120は、各種制御に用いる時間や、内蔵された時計の時間を計測する計時部である。モード切替スイッチ109、録画スイッチ108、操作部107はシステム制御部114に各種の動作指示を入力するための操作手段である。   The system timer 120 is a time measuring unit that measures the time used for various controls and the time of a built-in clock. A mode switch 109, a recording switch 108, and an operation unit 107 are operation means for inputting various operation instructions to the system control unit 114.

モード切替スイッチ109は、システム制御部114の動作モードを、動画記録モード、静止画記録モード、再生モード等のいずれかに切り替える。動画記録モードや静止画記録モードに含まれるモードとして、オート撮影モード、オートシーン判別モード、マニュアルモード、撮影シーン別の撮影設定となる各種シーンモード、プログラムAEモード、カスタムモード等がある。モード切替スイッチ109で、動画撮影モードに含まれるこれらのモードのいずれかに直接切り替えられる。あるいは、モード切替スイッチ109で動画撮影モードに一旦切り換えた後に、動画撮影モードに含まれるこれらのモードのいずれかに、他の操作部材を用いて切り替えるようにしてもよい。録画スイッチ108は撮影待機状態と撮影状態を切り替える。システム制御部114は、録画スイッチ108により、撮像部105からの信号読み出しから記録媒体123への動画データの書き込みまでの一連の動作を開始する。電源スイッチ110はデジタルカメラ100の電源の入/切を切り替えるためのスイッチである。   The mode switch 109 switches the operation mode of the system control unit 114 to any one of a moving image recording mode, a still image recording mode, a reproduction mode, and the like. As modes included in the moving image recording mode and the still image recording mode, there are an auto shooting mode, an auto scene discrimination mode, a manual mode, various scene modes for shooting settings for each shooting scene, a program AE mode, a custom mode, and the like. The mode changeover switch 109 can be directly switched to one of these modes included in the moving image shooting mode. Alternatively, after the mode changeover switch 109 temporarily switches to the moving image shooting mode, it may be switched to any of these modes included in the moving image shooting mode using another operation member. The recording switch 108 switches between a shooting standby state and a shooting state. The system control unit 114 starts a series of operations from reading a signal from the imaging unit 105 to writing moving image data to the recording medium 123 by the recording switch 108. The power switch 110 is a switch for switching on / off the power of the digital camera 100.

操作部107の各操作部材は、表示部118に表示される種々の機能アイコンを選択操作することなどにより、場面ごとに適宜機能が割り当てられ、各種機能ボタンとして作用する。機能ボタンとしては、例えば終了ボタン、戻るボタン、画像送りボタン、ジャンプボタン、絞込みボタン、属性変更ボタン等がある。例えば、メニューボタンが押されると各種の設定可能なメニュー画面が表示部118に表示される。ユーザは、表示部118に表示されたメニュー画面と、上下左右4方向の十字キーやSETボタンを用いて直感的に各種設定を行うことができる。また、操作部107は、後述するように露出基準値を設定する設定手段として動作する。   Each operation member of the operation unit 107 is appropriately assigned a function for each scene by selecting and operating various function icons displayed on the display unit 118, and functions as various function buttons. Examples of the function buttons include an end button, a return button, an image advance button, a jump button, a narrowing button, and an attribute change button. For example, when a menu button is pressed, various setting menu screens are displayed on the display unit 118. The user can make various settings intuitively using the menu screen displayed on the display unit 118, the four-way key in the four directions of up / down / left / right, and the SET button. The operation unit 107 operates as a setting unit that sets an exposure reference value as will be described later.

電源制御部111は、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成され、電池の装着の有無、電池の種類、電池残量の検出を行う。また、電源制御部111は、その検出結果及びシステム制御部114の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体123を含む各部へ供給する。電源部112は、例えば、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Liイオン電池等の二次電池、ACアダプター等からなる。I/F122は、メモリカードやハードディスク等の記録媒体123、または外部出力機器とのインターフェースである。図1に示す例では、記録媒体123と接続した状態を示している。記録媒体123は、撮影された画像や映像を記録するための記録媒体であり、例えば半導体メモリや磁気ディスク等から構成される。   The power control unit 111 includes a battery detection circuit, a DC-DC converter, a switch circuit that switches a block to be energized, and the like, and detects whether or not a battery is installed, the type of battery, and the remaining battery level. The power supply control unit 111 controls the DC-DC converter based on the detection result and an instruction from the system control unit 114, and supplies a necessary voltage to each unit including the recording medium 123 for a necessary period. The power supply unit 112 includes, for example, a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li ion battery, an AC adapter, or the like. The I / F 122 is an interface with a recording medium 123 such as a memory card or a hard disk, or an external output device. In the example illustrated in FIG. 1, a state in which the recording medium 123 is connected is illustrated. The recording medium 123 is a recording medium for recording a captured image or video, and is composed of, for example, a semiconductor memory or a magnetic disk.

次に、図2を参照して、本実施形態における画像処理部115、画像変換部124、システム制御部114及び操作部107の機能構成例について説明する。   Next, a functional configuration example of the image processing unit 115, the image conversion unit 124, the system control unit 114, and the operation unit 107 in the present embodiment will be described with reference to FIG.

画像処理部115と画像変換部124に含まれる各ブロックは、システム制御部114を通じて、撮像装置内部のあらゆるデータ取得が可能である。   Each block included in the image processing unit 115 and the image conversion unit 124 can acquire all data in the imaging apparatus through the system control unit 114.

操作部107に含まれる露出基準値設定部206は、画像処理部115から出力される信号の露出基準値を設定する。一方、操作部107に含まれる露出基準値設定部209は、画像変換部124から出力される信号の露出基準値を設定する。露出基準値は、被写体の明るさ(被写体の反射率)と表示装置から出力される輝度(表示輝度)の対応を表す。   An exposure reference value setting unit 206 included in the operation unit 107 sets an exposure reference value of a signal output from the image processing unit 115. On the other hand, an exposure reference value setting unit 209 included in the operation unit 107 sets an exposure reference value of a signal output from the image conversion unit 124. The exposure reference value represents the correspondence between the brightness of the subject (reflectance of the subject) and the luminance (display luminance) output from the display device.

システム制御部114に含まれる明るさ制御部207は、露出基準値設定部206で設定された露出基準値に基づき、画像処理部115から出力される信号の明るさを制御する。システム制御部114は、画像処理部115から出力される信号の明るさを制御するために、撮像部105、絞り103、ND104、ゲイン調整部201、階調変換部203などを制御する。変換特性算出部208は、露出基準値設定部206と露出基準値設定部209とで設定された露出基準値を用いて、階調変換部204に設定する階調変換特性を算出する。   A brightness control unit 207 included in the system control unit 114 controls the brightness of a signal output from the image processing unit 115 based on the exposure reference value set by the exposure reference value setting unit 206. The system control unit 114 controls the imaging unit 105, the diaphragm 103, the ND 104, the gain adjustment unit 201, the gradation conversion unit 203, and the like in order to control the brightness of the signal output from the image processing unit 115. The conversion characteristic calculation unit 208 uses the exposure reference values set by the exposure reference value setting unit 206 and the exposure reference value setting unit 209 to calculate the gradation conversion characteristics set in the gradation conversion unit 204.

ゲイン調整部201は、A/D変換器106から出力された信号に対して、RGB信号それぞれ個別にゲインをかけることによってゲイン調整とホワイトバランス補正を行う。マトリクス演算部202は、ゲイン調整部201から出力されたRGB信号に対してマトリクスをかけることにより、色調を補正する。これにより、撮像部105などの分光感度などの違いを補正し、デジタルカメラ100として適した色再現を実現する。   The gain adjustment unit 201 performs gain adjustment and white balance correction by individually applying a gain to each of the RGB signals with respect to the signal output from the A / D converter 106. The matrix calculation unit 202 corrects the color tone by applying a matrix to the RGB signal output from the gain adjustment unit 201. Thereby, the difference in spectral sensitivity and the like of the imaging unit 105 is corrected, and color reproduction suitable for the digital camera 100 is realized.

画像処理部115に含まれる階調変換部203は、マトリクス演算部202から出力されたRGB信号に対して共通の階調変換特性を適用して階調変換を行う。階調変換部203からの出力は画像変換部124やI/F122を通じて記録媒体123に出力される。   A gradation conversion unit 203 included in the image processing unit 115 performs gradation conversion by applying common gradation conversion characteristics to the RGB signals output from the matrix calculation unit 202. The output from the gradation conversion unit 203 is output to the recording medium 123 through the image conversion unit 124 and the I / F 122.

画像変換部124に含まれる階調変換部204は、システム制御部114から設定された階調変換特性を、画像処理部115から入力されたRGB信号のそれぞれに適用し、異なる階調特性を持つ信号を生成する。当該信号の生成は、一次元のルックアップテーブルを参照して階調特性変換が行われることが多いが、演算による階調特性変換の場合もある。   The gradation conversion unit 204 included in the image conversion unit 124 applies the gradation conversion characteristics set by the system control unit 114 to each of the RGB signals input from the image processing unit 115 and has different gradation characteristics. Generate a signal. In the generation of the signal, gradation characteristic conversion is often performed with reference to a one-dimensional lookup table, but there is also a case of gradation characteristic conversion by calculation.

3DLUT処理部205は、例えば図3に示すような3次元ルックアップテーブルを参照して色変換を行って、変換後の画像信号を出力する。入力されたRGB値と同じRGB値が変換元のテーブルにある場合は変換先のRGB値にそのまま変換する。入力されたRGB値が変換元のテーブルに存在しない場合は入力されたRGB値を含むような近傍の複数点を変換元のテーブルから抽出し、補間により変換先のRGB値を求めて変換する。   The 3DLUT processing unit 205 performs color conversion with reference to, for example, a three-dimensional lookup table as shown in FIG. 3, and outputs the converted image signal. When the same RGB value as the input RGB value exists in the conversion source table, it is converted as it is into the conversion destination RGB value. If the input RGB value does not exist in the conversion source table, a plurality of neighboring points including the input RGB value are extracted from the conversion source table, and the conversion destination RGB value is obtained by interpolation and converted.

(変換特性算出処理)
続いて、図4を参照して、画像変換部124における階調変換処理を決定するための変換特性算出処理について説明する。なお、本処理は、システム制御部114が、不揮発性メモリ113に記録されたプログラムをシステムメモリ121に展開、実行してデジタルカメラ100の各部を制御することにより実現される。また、特に断らない場合、本処理の各ステップはシステム制御部114が実行するものとする。本処理は、例えば、システム制御部114が操作部107を介してユーザからの操作指示を受け付けた場合に開始される。
(Conversion characteristics calculation process)
Next, the conversion characteristic calculation process for determining the gradation conversion process in the image conversion unit 124 will be described with reference to FIG. Note that this processing is realized by the system control unit 114 controlling each unit of the digital camera 100 by developing and executing a program recorded in the nonvolatile memory 113 in the system memory 121. Further, unless otherwise specified, each step of this process is executed by the system control unit 114. This process is started, for example, when the system control unit 114 receives an operation instruction from the user via the operation unit 107.

本実施形態ではHDR信号(第一の画像信号ともいう)からSDR信号(第二の画像信号ともいう)への変換処理の特性を算出する場合を例に説明する。しかし、SDR信号からHDR信号への変換、HDR信号同士の変換、SDR信号同士の変換なども含んでよい。また、HDR信号とSDR信号に限らず、対数の階調特性を持ったLog信号なども含んでよい。なお、本実施形態においては3DLUT処理部205には予め階調変換を除く色補正処理のみを行う3DLUTが固定で設定されているものとするが、本実施形態の処理と連動して3DLUTの設定を変更する形態も含んでよい。   In the present embodiment, an example of calculating characteristics of conversion processing from an HDR signal (also referred to as a first image signal) to an SDR signal (also referred to as a second image signal) will be described. However, conversion from an SDR signal to an HDR signal, conversion between HDR signals, conversion between SDR signals, and the like may also be included. Further, not only the HDR signal and the SDR signal, but also a Log signal having logarithmic gradation characteristics may be included. In this embodiment, it is assumed that a 3DLUT for performing only color correction processing excluding tone conversion is fixedly set in the 3DLUT processing unit 205 in advance. However, the 3DLUT setting is linked to the processing of this embodiment. The form which changes may also be included.

S41では、露出基準値設定部206は、システム制御部114に、画像処理部115で生成するHDR信号の露出基準値(第一の露出基準値ともいう)を設定する。本実施形態では、例えば、反射率18%の被写体を適正露出で撮影した場合に、この被写体の明るさを表示装置から何nitの明るさで表示させるかを設定させる。但し、必ずしも反射率18%を基準とする必要はなく任意の数値を基準としてよい。また、ユーザによる露出基準値設定部206を介した設定に限らず、システム制御部114が予め定められた値等を自動で設定してもよい。   In S <b> 41, the exposure reference value setting unit 206 sets an exposure reference value (also referred to as a first exposure reference value) of the HDR signal generated by the image processing unit 115 in the system control unit 114. In the present embodiment, for example, when a subject with a reflectance of 18% is photographed with appropriate exposure, the brightness of the subject is set by how many nits the brightness is displayed from the display device. However, it is not always necessary to use the reflectance of 18% as a reference, and any numerical value may be used as a reference. Further, not only the setting by the user via the exposure reference value setting unit 206, but the system control unit 114 may automatically set a predetermined value or the like.

S42では、露出基準値設定部209は、システム制御部114に、画像変換部124から出力されるSDR信号の露出基準値(第二の露出基準値ともいう)を設定する。これはS41と同様、本実施形態では、例えば、反射率18%の被写体を適正露出で撮影したときに、この被写体の明るさを表示装置から何nitの明るさで表示させるかを設定させる。但し、必ずしも反射率18%を基準とする必要はなく任意の数値を基準としてよい。また、ユーザによる露出基準値設定部209を介した設定に限らず、システム制御部114が予め定めた値等を自動で設定してもよい。なお、本実施形態においてはSDR信号用の露出基準値では、反射率18%の被写体が18nitの明るさで表示されるように設定されているものとする。   In S <b> 42, the exposure reference value setting unit 209 sets an exposure reference value (also referred to as a second exposure reference value) of the SDR signal output from the image conversion unit 124 in the system control unit 114. As in S41, in the present embodiment, for example, when a subject with a reflectance of 18% is photographed with appropriate exposure, the brightness of the subject is displayed by the number of nits displayed from the display device. However, it is not always necessary to use the reflectance of 18% as a reference, and any numerical value may be used as a reference. Further, the setting is not limited to the user setting via the exposure reference value setting unit 209, and the system control unit 114 may automatically set a predetermined value or the like. In the present embodiment, the exposure reference value for the SDR signal is set so that a subject with a reflectance of 18% is displayed with a brightness of 18 nits.

S43では、システム制御部114(明るさ制御部207)は、S41において設定されたHDR信号の露出基準値に基づき画像処理部115で生成する信号の明るさを制御する。ここでは、本実施形態においては反射率18%の被写体が18nitの明るさで表示される状態から反射率18%の被写体が36nitの明るさで表示される状態に変更する場合について考える。明るさを制御する方法としては、例えば、(i)階調変換部203に設定する階調変換特性を変更する方法と、(ii)階調変換部203に設定する階調変換特性は変更せずに階調変換部203に対する入力値を変更する方法がある。   In S43, the system control unit 114 (brightness control unit 207) controls the brightness of the signal generated by the image processing unit 115 based on the exposure reference value of the HDR signal set in S41. Here, in the present embodiment, a case will be considered in which a state in which an object with a reflectance of 18% is displayed at a brightness of 18 nits is changed to a state in which an object with a reflectance of 18% is displayed at a brightness of 36 nits. As a method for controlling the brightness, for example, (i) a method of changing a gradation conversion characteristic set in the gradation conversion unit 203 and (ii) a gradation conversion characteristic set in the gradation conversion unit 203 are changed. There is a method of changing the input value to the gradation conversion unit 203 without any change.

まず、図5(a)を参照して、(i)階調変換部203に設定する階調変換特性を変更する方法について説明する。図5(a)は、階調変換部203に設定する階調変換特性を表す。図5(a)では、入力値501は、反射率18%の被写体に対応する入力値を表す。また、出力値504は、18nitの明るさに対応する出力値を表し、出力値505は、36nitの明るさに対応する出力値を表す。また、入力最大値506は、入力値の最大値を表す。   First, with reference to FIG. 5A, (i) a method of changing the gradation conversion characteristics set in the gradation conversion unit 203 will be described. FIG. 5A shows the gradation conversion characteristics set in the gradation conversion unit 203. In FIG. 5A, an input value 501 represents an input value corresponding to a subject having a reflectance of 18%. The output value 504 represents an output value corresponding to a brightness of 18 nits, and the output value 505 represents an output value corresponding to a brightness of 36 nits. The input maximum value 506 represents the maximum value of the input value.

第一階調変換特性502は、反射率18%の被写体を18nitの明るさとして表示する階調変換特性である。すなわち、HDR信号において、反射率18%の被写体を18nitの明るさとして表示する場合、階調変換部203には第一階調変換特性502が設定されていることになる。なお、入力最大値506を超えても階調変換特性としては定義できるため、入力最大値506を超えた場合の出力値を点線で表している。   The first gradation conversion characteristic 502 is a gradation conversion characteristic for displaying an object having a reflectance of 18% with a brightness of 18 nits. That is, in the HDR signal, when a subject with a reflectance of 18% is displayed with a brightness of 18 nit, the first gradation conversion characteristic 502 is set in the gradation conversion unit 203. Since the gradation conversion characteristics can be defined even when the input maximum value 506 is exceeded, the output value when the input maximum value 506 is exceeded is indicated by a dotted line.

また、第二階調変換特性503は、反射率18%の被写体を36nitの明るさとして表示する階調変換特性である。従って、HDR信号において、階調変換部203に対して第二階調変換特性503を設定すれば反射率18%の被写体が36nitの明るさとして表示されることになる。   The second gradation conversion characteristic 503 is a gradation conversion characteristic for displaying an object having a reflectance of 18% with a brightness of 36 nits. Therefore, in the HDR signal, if the second gradation conversion characteristic 503 is set for the gradation converting unit 203, an object with a reflectance of 18% is displayed with a brightness of 36 nits.

このため、システム制御部114は、S41で設定された露出基準値に応じて、予めシステムメモリ121に保持される変換特性(第一階調変換特性502や第二階調変換特性503等)を選択し、階調変換部203に設定する階調変換特性を変更する。或いは、システム制御部114は、基準の階調変換特性をもとに設定に対応する階調変換特性を算出してもよい。   For this reason, the system control unit 114 changes the conversion characteristics (first gradation conversion characteristic 502, second gradation conversion characteristic 503, etc.) stored in the system memory 121 in advance according to the exposure reference value set in S41. The gradation conversion characteristic to be selected and set in the gradation conversion unit 203 is changed. Alternatively, the system control unit 114 may calculate a gradation conversion characteristic corresponding to the setting based on the reference gradation conversion characteristic.

次に、(ii)階調変換部203への入力値を変更して画像処理部115で生成する信号の明るさを制御する場合について説明する。図5(b)は、図5(a)と同様に階調変換部203に設定する階調変換特性を表している。階調変換部203に設定する階調変換特性を変更する場合と同様、反射率18%の被写体が18nitの明るさで表示されるように設定されている場合、入力値501は反射率18%の被写体に対応する入力値である。   Next, (ii) a case where the brightness of a signal generated by the image processing unit 115 is controlled by changing an input value to the gradation conversion unit 203 will be described. FIG. 5B shows the gradation conversion characteristics set in the gradation conversion unit 203 as in FIG. As in the case of changing the gradation conversion characteristics set in the gradation conversion unit 203, when an object with a reflectance of 18% is set to be displayed with a brightness of 18 nit, the input value 501 has a reflectance of 18%. Is an input value corresponding to the subject.

階調変換部203に対する入力値を変更して反射率18%の被写体に対応する表示輝度を36nitにする場合、絞り103、ND104、撮像部105、ゲイン調整部201のうち少なくとも1つを制御する。これにより、反射率18%に対応する入力値を入力値507に移動させる。すなわち、階調変換部203への入力値を変更することは、デジタルカメラ100の適正露出を変更することに相当する。入力値507は、第一階調変換特性502によって36nitの明るさに対応する出力値である出力値505に対応付けられる。このため、反射率18%の被写体がこの条件で撮影される場合、36nitの明るさで表示されるようになる。   When changing the input value to the gradation converting unit 203 to set the display brightness corresponding to the subject with 18% reflectance to 36 nits, at least one of the aperture 103, the ND 104, the imaging unit 105, and the gain adjusting unit 201 is controlled. . As a result, the input value corresponding to the reflectance of 18% is moved to the input value 507. That is, changing the input value to the gradation conversion unit 203 corresponds to changing the appropriate exposure of the digital camera 100. The input value 507 is associated with an output value 505 that is an output value corresponding to a brightness of 36 nits by the first gradation conversion characteristic 502. For this reason, when an object with a reflectance of 18% is photographed under this condition, it is displayed with a brightness of 36 nits.

このように、システム制御部114は、上述の(i)又は(ii)の方法のいずれかによって、S41において設定されたHDR信号の露出基準値に基づき画像処理部115で生成する信号の明るさを制御する。   As described above, the brightness of the signal generated by the image processing unit 115 based on the exposure reference value of the HDR signal set in S41 by either the method (i) or (ii) described above. To control.

S44では、システム制御部114(変換特性算出部208)は、S41で設定した露出基準値とS42で設定した露出基準値との差から階調変換部203に設定する階調変換特性に含まれる利得を算出する。例えば、S41において反射率18%の被写体を36nitで表示するように露出基準値を設定し、S42において反射率18%の被写体を18nitで表示するように設定していたとする。
このとき、求める利得kは、
k=18nit/36nit=0.5 式(1)
となる。
In S44, the system control unit 114 (conversion characteristic calculation unit 208) is included in the gradation conversion characteristics set in the gradation conversion unit 203 from the difference between the exposure reference value set in S41 and the exposure reference value set in S42. Calculate the gain. For example, it is assumed that the exposure reference value is set so that a subject with a reflectance of 18% is displayed at 36 nits in S41, and the subject with a reflectance of 18% is set to be displayed at 18 nits in S42.
At this time, the desired gain k is
k = 18 nit / 36 nit = 0.5 Formula (1)
It becomes.

S45では、システム制御部114(変換特性算出部208)は、S43において階調変換部203に設定した階調変換特性と、S44により算出した利得と、SDR信号の階調変換特性とを用いて、階調変換部204に設定する階調変換特性を算出する。ここで、S43により制御した階調変換特性に対応する出力IRE(白を0、黒を100とする輝度の信号レベル)と反射率の関係を表すEOTF(電気光伝達関数)をEOTFHDRとする。また、SDR信号に対応した出力IREと反射率の関係を表すEOTFをEOTFSDRとする。このとき、S44で求めた利得kを用いて、HDRの出力IREであるxとSDRの出力IREであるf(x)の関係は次式で表される。   In S45, the system control unit 114 (conversion characteristic calculation unit 208) uses the gradation conversion characteristic set in the gradation conversion unit 203 in S43, the gain calculated in S44, and the gradation conversion characteristic of the SDR signal. The gradation conversion characteristics set in the gradation conversion unit 204 are calculated. Here, an EOTF (electro-optical transfer function) representing the relationship between the output IRE (the luminance signal level with white being 0 and black being 100) and the reflectance corresponding to the gradation conversion characteristics controlled in S43 is defined as EOTFHDR. Further, EOTF representing the relationship between the output IRE corresponding to the SDR signal and the reflectance is defined as EOTFFSDR. At this time, the relationship between the HDR output IRE x and the SDR output IRE f (x) is expressed by the following equation using the gain k obtained in S44.

Figure 2019205063
Figure 2019205063

式(2)では、例えば、HDR信号の露出基準値が増加された場合、S43で求めたHDR信号の明るさに、信号間の露出基準値の相違に応じた利得k(この場合0<k<1となる)が乗算される。すなわち、式(2)では、SDR信号の明るさの変化は利得kによって抑制される(HDR信号の変化の影響は利得kによって相殺される)。従って、SDR信号の明るさは、HDR信号の明るさによらずSDR信号の露出基準値に従う略一定に保たれる。また、S43において、露出基準値の反映を上述の(i)階調変換特性の変更、及び(ii)入力値の変更のどちらで行っていても出力IREとしては同様であるため、式(3)に基づく階調変換特性はどちらの場合も変わらない。   In Expression (2), for example, when the exposure reference value of the HDR signal is increased, the gain k according to the difference in the exposure reference value between the signals is obtained by the brightness of the HDR signal obtained in S43 (in this case, 0 <k <1) is multiplied. That is, in Expression (2), the change in the brightness of the SDR signal is suppressed by the gain k (the effect of the change in the HDR signal is canceled by the gain k). Therefore, the brightness of the SDR signal is kept substantially constant according to the exposure reference value of the SDR signal regardless of the brightness of the HDR signal. In S43, whether the reflection of the exposure reference value is performed by either (i) changing the gradation conversion characteristic or (ii) changing the input value is the same as the output IRE, the expression (3) ) Based gradation conversion characteristics are the same in both cases.

S46では、システム制御部114は、S45において求めた階調変換特性を階調変換部204に設定する。このときS45で求めた階調変換特性は、出力IRE同士の変換特性であるため出力値同士の変換特性にする必要がある。出力値と出力IREの関係は予め定められているため、例えばテーブル等に基づき変換を実行すればよい。これにより、HDR信号の露出基準値の違いを階調変換部204において相殺することができるため、SDR信号の明るさは略一定(すなわち、SDR信号の明るさはSDRに設定した適正露出で撮影された場合と同等)に保たれる。システム制御部114は、その後、本処理を終了する。   In S <b> 46, the system control unit 114 sets the gradation conversion characteristics obtained in S <b> 45 in the gradation conversion unit 204. At this time, since the gradation conversion characteristic obtained in S45 is the conversion characteristic between the output IREs, it is necessary to set the conversion characteristic between the output values. Since the relationship between the output value and the output IRE is predetermined, the conversion may be executed based on, for example, a table. Thereby, since the difference in the exposure reference value of the HDR signal can be canceled out by the gradation converting unit 204, the brightness of the SDR signal is substantially constant (that is, the brightness of the SDR signal is shot with appropriate exposure set to SDR). Is equivalent to the Thereafter, the system control unit 114 ends this process.

以上説明したように、本実施形態によれば、HDR信号の露出基準値がユーザの操作等により変更された場合であっても、HDR信号を変換して生成されるSDR信号の明るさの変動を低減し、明るさを維持することができる。そのため、HDR信号の明るさを表現の意図により撮影者が変更した場合に、SDR信号の明るさが連動して変化しSDR信号の輝度情報が破綻することを防止することができる。換言すれば、階調変換特性の異なる複数の画像信号を扱う場合に、変換元の画像信号の明るさを変更しても変換先の画像信号の明るさに与える影響を低減することが可能になる。また、SDR信号に対する露出基準値を変更すればSDR信号の明るさをHDR信号とは独立して変更することができる。すなわち、ユーザはHDR信号とSDR信号の関係を意識せずに撮影を行うことができる。   As described above, according to the present embodiment, even when the exposure reference value of the HDR signal is changed by a user operation or the like, the brightness fluctuation of the SDR signal generated by converting the HDR signal is changed. Can be reduced and the brightness can be maintained. Therefore, when the photographer changes the brightness of the HDR signal for the purpose of expression, it is possible to prevent the brightness information of the SDR signal from collapsing due to the brightness of the SDR signal changing in conjunction with the brightness. In other words, when dealing with a plurality of image signals having different gradation conversion characteristics, it is possible to reduce the influence on the brightness of the conversion destination image signal even if the brightness of the conversion source image signal is changed. Become. Also, if the exposure reference value for the SDR signal is changed, the brightness of the SDR signal can be changed independently of the HDR signal. That is, the user can take a picture without being aware of the relationship between the HDR signal and the SDR signal.

<実施形態2>
次に、実施形態2について説明する。実施形態1では、HDR信号をもとにSDR信号を生成する場合に、変換特性算出処理により、HDR信号の露出基準値によらずSDR信号の明るさをSDR信号の露出基準値に基づく明るさに保つようにした。実施形態2では、HDR信号とSDR信号とをそれぞれA/D変換器106からの出力をもとに生成する。この場合に、HDR信号の露出基準値によらずSDR信号の明るさをSDR信号の露出基準値に基づく明るさに保つようにする。なお、本実施形態のデジタルカメラ100は、システム制御部114、画像処理部115の一部構成が異なるが、その他の構成は実施形態1と同一である。このため、同一の構成については同一の符号を付して重複する説明は省略し、相違点について重点的に説明する。本実施形態では、画像処理部115においてHDR信号とSDR信号の両方を生成するため、画像変換部124では変換処理は行わないものとする。
<Embodiment 2>
Next, Embodiment 2 will be described. In the first embodiment, when the SDR signal is generated based on the HDR signal, the brightness of the SDR signal is determined based on the exposure reference value of the SDR signal by the conversion characteristic calculation process regardless of the exposure reference value of the HDR signal. To keep on. In the second embodiment, the HDR signal and the SDR signal are generated based on the output from the A / D converter 106, respectively. In this case, the brightness of the SDR signal is kept at the brightness based on the exposure reference value of the SDR signal regardless of the exposure reference value of the HDR signal. The digital camera 100 of the present embodiment is the same as that of the first embodiment except that the system control unit 114 and the image processing unit 115 are partially different in configuration. For this reason, the same reference numerals are assigned to the same components, and redundant description is omitted, and differences will be described mainly. In the present embodiment, since both the HDR signal and the SDR signal are generated in the image processing unit 115, the image conversion unit 124 does not perform the conversion process.

まず、図6を参照して、本実施形態に係るシステム制御部114、及び画像処理部115の機能構成例について説明する。画像処理部115の各ブロックはシステム制御部114を通じて、撮像装置内部のあらゆるデータ取得が可能である。   First, a functional configuration example of the system control unit 114 and the image processing unit 115 according to the present embodiment will be described with reference to FIG. Each block of the image processing unit 115 can acquire all data in the imaging apparatus through the system control unit 114.

システム制御部114の明るさ制御部608は、露出基準値設定部206で設定された露出基準値に基づき、階調変換部203から出力される画像信号の明るさを制御する。明るさを制御するために、撮像部105、絞り103、ND104、ゲイン調整部201、階調変換部203のうち少なくとも1つを制御する。明るさ制御部609は、露出基準値設定部206、露出基準値設定部209で設定された露出基準値に基づき、階調変換部612から出力されるSDR信号の明るさを制御する。この明るさを制御するために、ゲイン調整部610、階調変換部612のうち少なくとも1つを制御する。   A brightness control unit 608 of the system control unit 114 controls the brightness of the image signal output from the gradation conversion unit 203 based on the exposure reference value set by the exposure reference value setting unit 206. In order to control the brightness, at least one of the imaging unit 105, the diaphragm 103, the ND 104, the gain adjustment unit 201, and the gradation conversion unit 203 is controlled. The brightness control unit 609 controls the brightness of the SDR signal output from the gradation conversion unit 612 based on the exposure reference value set by the exposure reference value setting unit 206 and the exposure reference value setting unit 209. In order to control this brightness, at least one of the gain adjustment unit 610 and the gradation conversion unit 612 is controlled.

ゲイン調整部610、マトリクス演算部611、階調変換部612は、ゲイン調整部201、マトリクス演算部202、階調変換部203と同一の構成を有する。本実施形態ではゲイン調整部201、マトリクス演算部202、階調変換部203の系でHDR信号を生成する。一方、ゲイン調整部610、マトリクス演算部611、階調変換部612の系でSDR信号を生成する。   The gain adjustment unit 610, matrix calculation unit 611, and gradation conversion unit 612 have the same configuration as the gain adjustment unit 201, matrix calculation unit 202, and gradation conversion unit 203. In the present embodiment, an HDR signal is generated by the system of the gain adjustment unit 201, the matrix calculation unit 202, and the gradation conversion unit 203. On the other hand, an SDR signal is generated by the system of the gain adjustment unit 610, the matrix calculation unit 611, and the gradation conversion unit 612.

(変換特性算出処理)
続いて、図7を参照して、階調変換部612における階調変換処理(明るさの制御)のための変換特性算出処理について説明する。本実施形態では階調変換部203からHDR信号を出力し、階調変換部612からSDR信号を出力する場合を例に説明する。しかし、HDR信号とSDR信号が逆であってもよいし、両方ともHDR信号もしくはSDR信号であってもよい。また、HDR信号とSDR信号に限らず、対数の階調特性を持ったLog信号なども含んでよい。なお、本処理は、システム制御部114が、不揮発性メモリ113に記録されたプログラムをシステムメモリ121に展開、実行してデジタルカメラ100の各部を制御することにより実現される。また、特に断らない場合、本処理の各ステップはシステム制御部114が実行するものとする。本処理は、例えば、システム制御部114が操作部107を介してユーザからの操作指示を受け付けた場合に開始される。
(Conversion characteristics calculation process)
Next, with reference to FIG. 7, a conversion characteristic calculation process for the gradation conversion process (brightness control) in the gradation conversion unit 612 will be described. In the present embodiment, a case where an HDR signal is output from the gradation conversion unit 203 and an SDR signal is output from the gradation conversion unit 612 will be described as an example. However, the HDR signal and the SDR signal may be reversed, or both may be an HDR signal or an SDR signal. Further, not only the HDR signal and the SDR signal, but also a Log signal having logarithmic gradation characteristics may be included. Note that this processing is realized by the system control unit 114 controlling each unit of the digital camera 100 by developing and executing a program recorded in the nonvolatile memory 113 in the system memory 121. Further, unless otherwise specified, each step of this process is executed by the system control unit 114. This process is started, for example, when the system control unit 114 receives an operation instruction from the user via the operation unit 107.

S41〜S42において、露出基準値設定部206及び露出基準値設定部209は、それぞれ実施形態1と同様に、HDR及びSDRのための露出基準値を設定する。   In S41 to S42, the exposure reference value setting unit 206 and the exposure reference value setting unit 209 set exposure reference values for HDR and SDR, respectively, as in the first embodiment.

S71では、システム制御部114(明るさ制御部608)は、S41において設定されたHDR信号のための露出基準値に基づき、HDR信号の明るさを制御する。明るさ制御の方法には、(i)ゲイン調整部201、階調変換部203を制御して明るさを変更する方法と、(ii)撮像部105、絞り103、ND104を制御してA/D変換器106から出力される信号の明るさを変更する方法がある。システム制御部114は、S43で説明した処理と同様に、これらのいずれかの方法を実行する。   In S71, the system control unit 114 (brightness control unit 608) controls the brightness of the HDR signal based on the exposure reference value for the HDR signal set in S41. The brightness control method includes (i) a method of changing the brightness by controlling the gain adjustment unit 201 and the gradation conversion unit 203, and (ii) an A / A by controlling the imaging unit 105, the aperture 103, and the ND 104. There is a method of changing the brightness of the signal output from the D converter 106. The system control unit 114 executes any one of these methods in the same manner as the processing described in S43.

S44では、システム制御部114は、実施形態1と同様に、S41で設定した露出基準値とS42で設定した露出基準値との差から階調変換部612に設定する階調変換特性に含まれる利得を算出する。   In S44, as in the first embodiment, the system control unit 114 is included in the gradation conversion characteristics set in the gradation conversion unit 612 from the difference between the exposure reference value set in S41 and the exposure reference value set in S42. Calculate the gain.

S72では、システム制御部114は、S41とS42により設定された露出基準値に基づき、SDR信号の明るさを制御する。この制御は、S71でどのようにHDR信号の明るさを制御したかによって制御方法が異なる。   In S72, the system control unit 114 controls the brightness of the SDR signal based on the exposure reference value set in S41 and S42. The control method differs depending on how the brightness of the HDR signal is controlled in S71.

まず、S71において撮像部105、絞り103、ND104を制御してHDR信号の明るさを制御した場合について説明する。撮像部105、絞り103、ND104を用いてHDR信号の明るさを制御した場合、A/D変換器106から出力される信号の明るさが変化することになるため、ゲイン調整部610に入力される信号の明るさが変化することとなる。これを露出基準値設定部209で設定した露出基準値に基づいた明るさにするためには、S44で求めた利得を用いればよい。システム制御部114は、この利得をゲイン調整部610に設定してもよいし、SDR信号の階調特性とこの利得とに基づく階調変換特性を階調変換部612に設定してもよい。   First, the case where the brightness of the HDR signal is controlled by controlling the imaging unit 105, the diaphragm 103, and the ND 104 in S71 will be described. When the brightness of the HDR signal is controlled using the imaging unit 105, the diaphragm 103, and the ND 104, the brightness of the signal output from the A / D converter 106 changes, so that the signal is input to the gain adjustment unit 610. The brightness of the signal will change. In order to obtain a brightness based on the exposure reference value set by the exposure reference value setting unit 209, the gain obtained in S44 may be used. The system control unit 114 may set the gain in the gain adjustment unit 610 or may set the gradation conversion characteristic based on the gradation characteristic of the SDR signal and the gain in the gradation conversion unit 612.

次に、ゲイン調整部201、階調変換部203を制御してHDR信号の明るさを制御した場合、ゲイン調整部610に入力される信号は露出基準値設定部206により設定されたHDR信号の露出基準値に依存しないことになる。そのため、S71でHDR信号の明るさを制御した場合と同様に、露出基準値設定部209により設定されたSDR信号の露出基準値のみを参照してゲイン調整部610もしくは階調変換部612を制御すればよい。システム制御部114は、その後、本処理を終了する。   Next, when the brightness of the HDR signal is controlled by controlling the gain adjustment unit 201 and the gradation conversion unit 203, the signal input to the gain adjustment unit 610 is the HDR signal set by the exposure reference value setting unit 206. It does not depend on the exposure reference value. Therefore, similarly to the case where the brightness of the HDR signal is controlled in S71, the gain adjustment unit 610 or the gradation conversion unit 612 is controlled with reference to only the exposure reference value of the SDR signal set by the exposure reference value setting unit 209. do it. Thereafter, the system control unit 114 ends this process.

以上、本実施形態によれば、HDR信号とSDR信号をそれぞれの系で生成する構成においても、HDR信号の露出目標値によらずSDR信号の露出目標値に基づいてSDR信号の明るさを略一定に保つことができる。このため、実施形態1と同様、HDR信号の明るさを表現の意図により撮影者が変更した場合に、SDR信号の明るさが連動して変化しSDR信号の輝度情報が破綻することを防止することができる。換言すれば、異なる階調特性を有する複数の画像信号を扱う場合、一方の画像信号の明るさを変更しても他方の画像信号の明るさに与える影響を低減することが可能になる。また、SDR信号の露出基準値を変更すればSDR信号の明るさをHDR信号とは独立して変更することができるため、撮影者はHDR信号とSDR信号の関係を意識せずに撮影を行うことができる。   As described above, according to the present embodiment, even in the configuration in which the HDR signal and the SDR signal are generated in each system, the brightness of the SDR signal is substantially reduced based on the exposure target value of the SDR signal regardless of the exposure target value of the HDR signal. Can be kept constant. For this reason, as in the first embodiment, when the photographer changes the brightness of the HDR signal for the purpose of expression, the brightness information of the SDR signal is prevented from collapsing due to the change of the brightness of the SDR signal. be able to. In other words, when a plurality of image signals having different gradation characteristics are handled, even if the brightness of one image signal is changed, the influence on the brightness of the other image signal can be reduced. Further, since the brightness of the SDR signal can be changed independently of the HDR signal by changing the exposure reference value of the SDR signal, the photographer takes a picture without being aware of the relationship between the HDR signal and the SDR signal. be able to.

(その他の実施形態)
実施形態1では、HDR信号の露出基準値の反映(すなわちHDR信号の明るさ制御)を、階調変換部203に設定する階調変換特性を変更するか、階調変換部203への入力値を変更するかのいずれかで行う例を説明した。しかし、必ずしもどちらか一方である必要はなく、表示輝度として正しくなれば両者を組み合わせて行ってもよい。
(Other embodiments)
In the first embodiment, the reflection of the exposure reference value of the HDR signal (that is, the brightness control of the HDR signal) is changed by changing the gradation conversion characteristic set in the gradation conversion unit 203 or the input value to the gradation conversion unit 203 An example in which any of the above is performed has been described. However, it is not always necessary to use either one, and both may be combined as long as the display luminance is correct.

また、実施形態1では、HDR信号を変換してSDR信号を生成する場合に、HDR信号の露出基準値を変更してもSDR信号の明るさを維持することができる制御について説明した。この制御は、HDR信号をSDR信号よりも重視して撮影する場合に有効である。一方で、SDR信号をHDR信号よりも重視して撮影したい場合も存在する。そのような場合には、SDR信号を変換してHDR信号を生成するように信号処理の順序を入れ替える必要がある。具体的に、HDR信号の露出基準値とSDR信号の露出基準値とを保ったまま処理順序を入れ替えることにより、HDR信号とSDR信号の明るさを維持することができる。また、そしてS44〜S46の処理を行うことで、HDR信号とSDR信号の露出基準値は互いに影響を与えずに独立して制御することが可能となる。   In the first embodiment, when the HDR signal is converted to generate the SDR signal, the control that can maintain the brightness of the SDR signal even if the exposure reference value of the HDR signal is changed has been described. This control is effective when shooting with an HDR signal more important than an SDR signal. On the other hand, there is a case where it is desired to take an image taking the SDR signal more important than the HDR signal. In such a case, it is necessary to change the order of signal processing so that the SDR signal is converted to generate the HDR signal. Specifically, the brightness of the HDR signal and the SDR signal can be maintained by changing the processing order while maintaining the exposure reference value of the HDR signal and the exposure reference value of the SDR signal. Further, by performing the processes of S44 to S46, the exposure reference values of the HDR signal and the SDR signal can be controlled independently without affecting each other.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

107…操作部、114…システム制御部、115…画像処理部、124…画像変換部、203…階調変換部、204…階調変換部、207…明るさ制御部、208…変換特性算出部 DESCRIPTION OF SYMBOLS 107 ... Operation part, 114 ... System control part, 115 ... Image processing part, 124 ... Image conversion part, 203 ... Gradation conversion part, 204 ... Gradation conversion part, 207 ... Brightness control part, 208 ... Conversion characteristic calculation part

Claims (13)

第一の画像信号における第一の露出基準値と、前記第一の画像信号と階調特性の異なる第二の画像信号における第二の露出基準値とを設定する設定手段と、
設定された前記第一の露出基準値に基づいて第一の画像信号の明るさを制御する明るさ制御手段と、
階調変換特性を制御する制御手段と、
前記明るさ制御手段の制御によって明るさの変更された画像信号を、前記階調変換特性を用いて前記第二の画像信号に変換する階調変換手段と、を有し、
前記制御手段は、前記第一の露出基準値と前記第二の露出基準値の相違に応じて前記第二の画像信号の明るさの変化を抑制する前記階調変換特性を求める、ことを特徴とする撮像装置。
Setting means for setting a first exposure reference value in the first image signal and a second exposure reference value in the second image signal having a gradation characteristic different from that of the first image signal;
Brightness control means for controlling the brightness of the first image signal based on the set first exposure reference value;
Control means for controlling gradation conversion characteristics;
Gradation conversion means for converting an image signal whose brightness has been changed by the control of the brightness control means into the second image signal using the gradation conversion characteristics;
The control means obtains the gradation conversion characteristic that suppresses a change in brightness of the second image signal according to a difference between the first exposure reference value and the second exposure reference value. An imaging device.
前記階調変換手段は、前記明るさ制御手段の制御によって明るさの変更された前記第一の画像信号を、前記階調変換特性を用いて前記第二の画像信号に変換する、ことを特徴とする請求項1に記載の撮像装置。   The gradation converting unit converts the first image signal whose brightness is changed by the control of the brightness control unit into the second image signal using the gradation conversion characteristic. The imaging apparatus according to claim 1. 前記第一の画像信号は第一の階調特性を、前記第二の画像信号は第二の階調特性をそれぞれ有し、
前記制御手段は、前記相違に応じた利得を前記第一の露出基準値と前記第二の露出基準値から算出し、前記第一の階調特性と前記第二の階調特性と前記利得とに基づいて前記階調変換特性を求める、ことを特徴とする請求項2に記載の撮像装置。
The first image signal has a first gradation characteristic, and the second image signal has a second gradation characteristic,
The control means calculates a gain according to the difference from the first exposure reference value and the second exposure reference value, and calculates the first gradation characteristic, the second gradation characteristic, and the gain. The imaging apparatus according to claim 2, wherein the gradation conversion characteristic is obtained based on the image quality.
前記階調変換手段は、前記明るさ制御手段の制御によって明るさが変更されて撮像された画像信号を、前記階調変換特性を用いて前記第二の画像信号に変換する、ことを特徴とする請求項1に記載の撮像装置。   The gradation converting means converts an image signal picked up with brightness changed under the control of the brightness control means into the second image signal using the gradation conversion characteristic. The imaging device according to claim 1. 前記第一の画像信号は第一の階調特性を、前記第二の画像信号は第二の階調特性をそれぞれ有し、
前記制御手段は、前記相違に応じた利得を前記第一の露出基準値と前記第二の露出基準値から算出し、前記第二の階調特性と前記利得とに基づいて前記階調変換特性を求める、ことを特徴とする請求項4に記載の撮像装置。
The first image signal has a first gradation characteristic, and the second image signal has a second gradation characteristic,
The control means calculates a gain according to the difference from the first exposure reference value and the second exposure reference value, and based on the second gradation characteristic and the gain, the gradation conversion characteristic The imaging device according to claim 4, wherein the imaging device is obtained.
前記制御手段は、前記第二の階調特性に対応する電気光伝達関数の出力に前記利得をかけた値を用いて前記階調変換特性を求める、ことを特徴とする請求項3又は5に記載の撮像装置。   The said control means calculates | requires the said gradation conversion characteristic using the value which multiplied the said gain to the output of the electro-optical transfer function corresponding to a said 2nd gradation characteristic, The Claim 3 or 5 characterized by the above-mentioned. The imaging device described. 前記明るさ制御手段は、前記第一の露出基準値に基づいて前記第一の階調特性を変更することにより、前記第一の画像信号の明るさを制御する、ことを特徴とする請求項3又は5に記載の撮像装置。   The brightness control means controls the brightness of the first image signal by changing the first gradation characteristic based on the first exposure reference value. The imaging apparatus according to 3 or 5. 前記第一の露出基準値に基づいて前記撮像装置の適正露出を変更する露出制御手段を更に有する、ことを特徴とする請求項1から6のいずれか1項に記載の撮像装置。   The imaging apparatus according to claim 1, further comprising an exposure control unit that changes an appropriate exposure of the imaging apparatus based on the first exposure reference value. 前記設定手段によって設定されるそれぞれの露出基準値は、被写体の明るさと表示装置から出力される輝度の対応を表す、ことを特徴とする請求項1から8のいずれか1項に記載の撮像装置。   9. The imaging apparatus according to claim 1, wherein each exposure reference value set by the setting unit represents correspondence between brightness of a subject and luminance output from a display device. 10. . 前記第一の画像信号はHDR信号であり、前記第二の画像信号はSDR信号である、ことを特徴とする請求項1から9のいずれか1項に記載の撮像装置。   10. The imaging apparatus according to claim 1, wherein the first image signal is an HDR signal, and the second image signal is an SDR signal. 11. 前記第一の画像信号と前記第二の画像信号のいずれかが対数の階調特性を有するLog信号である、ことを特徴とする請求項1から9のいずれか1項に記載の撮像装置。   10. The imaging apparatus according to claim 1, wherein one of the first image signal and the second image signal is a Log signal having logarithmic gradation characteristics. 11. 設定手段が、第一の画像信号における第一の露出基準値と、前記第一の画像信号と階調特性の異なる第二の画像信号における第二の露出基準値とを設定する設定工程と、
明るさ制御手段が、設定された前記第一の露出基準値に基づいて第一の画像信号の明るさを制御する明るさ制御工程と、
制御手段が、階調変換特性を制御する制御工程と、
階調変換手段が、前記明るさ制御工程の制御によって明るさの変更された画像信号を、前記階調変換特性を用いて前記第二の画像信号に変換する階調変換工程と、を有し、
前記制御工程では、前記第一の露出基準値と前記第二の露出基準値の相違に応じて前記第二の画像信号の明るさの変化を抑制する前記階調変換特性を求める、ことを特徴とする撮像装置の制御方法。
A setting step in which the setting means sets a first exposure reference value in the first image signal and a second exposure reference value in the second image signal having gradation characteristics different from the first image signal;
A brightness control step, wherein the brightness control means controls the brightness of the first image signal based on the set first exposure reference value;
A control step in which the control means controls the gradation conversion characteristics;
A gradation conversion unit that converts an image signal whose brightness has been changed by the control of the brightness control process into the second image signal using the gradation conversion characteristic; ,
In the control step, the gradation conversion characteristic that suppresses a change in brightness of the second image signal according to a difference between the first exposure reference value and the second exposure reference value is obtained. A method for controlling the imaging apparatus.
コンピュータを、請求項1から11のいずれか1項に記載の撮像装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the imaging device of any one of Claim 1 to 11.
JP2018099017A 2018-05-23 2018-05-23 Imaging apparatus and control method and program thereof Pending JP2019205063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018099017A JP2019205063A (en) 2018-05-23 2018-05-23 Imaging apparatus and control method and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018099017A JP2019205063A (en) 2018-05-23 2018-05-23 Imaging apparatus and control method and program thereof

Publications (1)

Publication Number Publication Date
JP2019205063A true JP2019205063A (en) 2019-11-28

Family

ID=68727439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018099017A Pending JP2019205063A (en) 2018-05-23 2018-05-23 Imaging apparatus and control method and program thereof

Country Status (1)

Country Link
JP (1) JP2019205063A (en)

Similar Documents

Publication Publication Date Title
JP5820120B2 (en) Imaging apparatus and control method thereof
JP6752667B2 (en) Image processing equipment and image processing methods and programs
JP6883971B2 (en) Image processing equipment and image processing methods, programs, and storage media
JP2012090041A (en) Image processing device, method, and program
US11551637B2 (en) Electronic device and control method thereof
JP2022066385A (en) Image processing apparatus and image processing method, and program
US11122234B2 (en) Image output apparatus, control method thereof and computer-readable storage medium
JP7257768B2 (en) Image processing device, its control method, and program
JP6765919B2 (en) Image processing device, its control method, program
JP2019205063A (en) Imaging apparatus and control method and program thereof
JP6795961B2 (en) Image processing device, control method of image processing device, and program
JP6670110B2 (en) Image processing apparatus, imaging apparatus, control method, and program
JP2008124793A (en) Imaging apparatus, and imaging method
JP7214484B2 (en) VIDEO SIGNAL PROCESSING DEVICE, VIDEO SIGNAL PROCESSING METHOD, AND PROGRAM
JP2014044267A (en) Imaging device and control method of the same
JP2019016833A (en) Imaging apparatus, control method of the same, program, and storage medium
JP2018061153A (en) Imaging apparatus, imaging apparatus control method and program
JP2017126914A (en) Image processing system
JP2017126959A (en) Imaging device, control method for the same and program therefor
JP2019139647A (en) Image processing device, imaging device, image processing method and program
JP6624895B2 (en) Image processing apparatus, imaging apparatus, control method, and program
JP2021007218A (en) Imaging apparatus, control method thereof, and program
JP2021034799A (en) Imaging apparatus and control method of the same
JP2019153971A (en) Image processing apparatus and control method thereof, program, storage medium
JP2014075729A (en) Image processing system and image processing method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113