JP2021007218A - Imaging apparatus, control method thereof, and program - Google Patents

Imaging apparatus, control method thereof, and program Download PDF

Info

Publication number
JP2021007218A
JP2021007218A JP2020110784A JP2020110784A JP2021007218A JP 2021007218 A JP2021007218 A JP 2021007218A JP 2020110784 A JP2020110784 A JP 2020110784A JP 2020110784 A JP2020110784 A JP 2020110784A JP 2021007218 A JP2021007218 A JP 2021007218A
Authority
JP
Japan
Prior art keywords
signal
color signal
color
range
input
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
JP2020110784A
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
Publication of JP2021007218A publication Critical patent/JP2021007218A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Exposure Control For Cameras (AREA)
  • Color Television Image Signal Generators (AREA)
  • Studio Devices (AREA)

Abstract

To obtain a desired image in consideration of any input transfer characteristics.SOLUTION: An imaging apparatus includes: an output means configured to image a subject and output a first color signal; a first signal processing means configured to process the first color signal to generate a second color signal; an input means configured to input conversion characteristics for converting the second color signal into a third color signal; a second signal processing means configured to convert the second color signal into the third color signal to be output on the basis of the conversion characteristics; a specifying means configured to specify a required signal range of the first color signal required to generate the third color signal using the conversion characteristics input by the input means; and a signal increasing means configured to increase the first color signal within a range in which a signal of the required signal range does not exceed an upper limit value of a predetermined signal range when the required signal range specified by the specifying means is smaller than the predetermined signal range of the first color signal.SELECTED DRAWING: Figure 8

Description

本発明は、任意の変換特性を入力して画像を変換する技術に関する。 The present invention relates to a technique for converting an image by inputting arbitrary conversion characteristics.

映像制作において、カラーグレーディングと呼ばれる工程がある。これは、ビデオカメラで撮影された映像の階調や色味を製作者の意図するものに修正する工程であり、主にPC上で動作するカラーグレーディングソフトウェアにより行われる。このとき、カラーグレーディングの自由度をできるだけ担保するために、露出をアンダーにして撮影するLogなどの形式で記録することが多い。そして、階調、色味の調整や不要な部分を白飛びさせるなどして、視聴に適した映像に仕上げることになる。 In video production, there is a process called color grading. This is a process of correcting the gradation and color of the image taken by the video camera to those intended by the creator, and is mainly performed by color grading software operating on the PC. At this time, in order to secure the degree of freedom of color grading as much as possible, it is often recorded in a format such as Log for shooting with underexposure. Then, the gradation and color tone are adjusted, and unnecessary parts are overexposed to create an image suitable for viewing.

カラーグレーディングによる映像の変換処理は3DLUT(3次元ルックアップテーブル)などの形式で書き出すことが可能になっている。これにより、別の映像に対して同様のカラーグレーディング処理を施すことや、カラーグレーディング時とは異なるソフトウェアで同様の処理を施すことが可能になっている。その他、3DLUTを読み込み可能な変換ボックスなどのハードウェアを用いることによって、ビデオカメラからの出力映像に対してリアルタイムに変換処理を適用し、モニタなどで確認することが可能である。また、近年ではビデオカメラ自体で3DLUTを読み込むことが可能となっており、変換処理を適用した映像を直接記録することも可能となっている。したがってユーザ自らが用意した任意の変換処理を行うための3DLUTをビデオカメラに読み込ませることが可能となる、いわゆるユーザLUT機能が実現できる。 The video conversion process by color grading can be written out in a format such as 3DLUT (3D lookup table). This makes it possible to perform the same color grading process on another image, or to perform the same process with software different from that at the time of color grading. In addition, by using hardware such as a conversion box that can read 3DLUT, it is possible to apply conversion processing to the output video from the video camera in real time and check it on a monitor or the like. Further, in recent years, it has become possible to read the 3DLUT by the video camera itself, and it is also possible to directly record the video to which the conversion process is applied. Therefore, it is possible to realize a so-called user LUT function that enables the video camera to read a 3D LUT prepared by the user for performing an arbitrary conversion process.

ここで前述したように、3DLUTはLogなどの露出アンダーで撮影された映像を入力とするように作成されていることが多い。そのため、入力となる階調をすべて保持するのではなく、一部を白飛びさせるように変換する特性を持つこともある。そこで特許文献1では、階調補正により白飛びを抑制して画質を向上させる方法について言及されている。 As described above, the 3D LUT is often created so as to input an image shot underexposed such as Log. Therefore, instead of retaining all the input gradations, it may have a characteristic of converting a part so as to cause overexposure. Therefore, Patent Document 1 describes a method of suppressing overexposure by gradation correction to improve image quality.

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

しかしながら、3DLUTなどの変換特性はユーザの所望の画像を得るために作成されたものであるので、最終的な信号レベルを変化させてしまうような処理は好ましいとは言えない。一方で、任意の変換特性が入力されることを考慮した場合、撮影条件を変更することが好ましい場合も考えられる。 However, since the conversion characteristics such as 3DLUT are created in order to obtain the image desired by the user, it cannot be said that the processing that changes the final signal level is preferable. On the other hand, considering that arbitrary conversion characteristics are input, it may be preferable to change the shooting conditions.

本発明に係る撮像装置は、被写体を撮像し第1の色信号を出力する出力手段と、前記第1の色信号に処理を施し第2の色信号を生成する第1の信号処理手段と、前記第2の色信号を第3の色信号に変換する変換特性を入力する入力手段と、前記変換特性に基づき第2の色信号を第3の色信号に変換し出力する第2の信号処理手段と、前記入力手段により入力された変換特性を用いて前記第3の色信号を生成するのに必要な前記第1の色信号の所要信号範囲を特定する特定手段と、前記特定手段により特定された前記所要信号範囲が第1の色信号の所定の信号範囲よりも小さい場合、前記所要信号範囲の信号が前記所定の信号範囲の上限値を超えない範囲で第1の色信号を増加させる信号増加手段と、前記信号増加手段による前記第1の色信号の増加に伴う前記第3の色信号の信号レベルの変化を補償するよう、前記第1の信号処理手段と前記第2の信号処理手段のうちの少なくとも1つを制御して信号レベルを補償する補償手段とを有することを特徴とする。 The imaging apparatus according to the present invention includes an output means that captures a subject and outputs a first color signal, and a first signal processing means that processes the first color signal to generate a second color signal. An input means for inputting a conversion characteristic for converting the second color signal into a third color signal, and a second signal processing for converting the second color signal into a third color signal and outputting the second color signal based on the conversion characteristic. The means, the specific means for specifying the required signal range of the first color signal required to generate the third color signal using the conversion characteristics input by the input means, and the specific means for specifying. When the required signal range is smaller than the predetermined signal range of the first color signal, the first color signal is increased within a range in which the signal in the required signal range does not exceed the upper limit value of the predetermined signal range. The first signal processing means and the second signal processing so as to compensate for the change in the signal level of the third color signal due to the increase of the first color signal by the signal increasing means and the signal increasing means. It is characterized by having a compensating means for controlling at least one of the means to compensate for the signal level.

本発明によれば、入力された任意の変換特性を考慮して、所望の画像を得ることが可能となる。 According to the present invention, it is possible to obtain a desired image in consideration of any input conversion characteristics.

ビデオカメラ100の内部構成を示すブロック図Block diagram showing the internal configuration of the video camera 100 第1の実施形態における画像処理部115の内部構成と関係部位を示すブロック図A block diagram showing the internal configuration and related parts of the image processing unit 115 in the first embodiment. 3DLUTデータを示す図The figure which shows the 3DLUT data 第1の実施形態の処理を説明するフローチャートA flowchart illustrating the processing of the first embodiment 最大入力値でソートした3DLUTデータを示す図Diagram showing 3DLUT data sorted by maximum input value 3DLUTデータ解析の詳細処理を説明するフローチャートFlowchart explaining detailed processing of 3DLUT data analysis 最大入力値でソートした3DLUTデータの上位部分を示す図The figure which shows the upper part of 3DLUT data sorted by the maximum input value. 信号レベルを維持するための階調特性を示す図The figure which shows the gradation characteristic for maintaining a signal level 第2の実施形態における撮像部105の内部を示すブロック図Block diagram showing the inside of the imaging unit 105 in the second embodiment 第3の実施形態における画像処理部115の内部構成を示すブロック図Block diagram showing the internal configuration of the image processing unit 115 in the third embodiment

以下、図面を参照して本発明の好適な実施形態を説明する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

<第1の実施形態>
以下、撮像装置の一例としてビデオカメラへの適用例を説明するが、本発明は撮像機能を有する種々の装置に適用されうる。
<First Embodiment>
Hereinafter, an example of application to a video camera will be described as an example of an imaging device, but the present invention can be applied to various devices having an imaging function.

図1は、ビデオカメラ100の内部構成を示すブロック図である。図1において、撮影レンズ102はズームレンズ、フォーカスレンズを含むレンズ群であり、被写体像を結像させる。絞り103は光量調整に使用する絞りである。ND104は減光用に使用するNDフィルタである。撮像部105は光学像を電気信号に変換するCCDやCMOS素子等で構成される撮像素子である。また、撮像部105には電子シャッターによる蓄積の制御や、アナログゲイン、読み出し速度の変更などの機能も備える。A/D変換器106は、アナログ信号をデジタル信号に変換する。A/D変換器106は、撮像部105から出力されるアナログ信号をデジタル信号に変換するために用いられる。バリア101は、ビデオカメラ100の、撮影レンズ102を含む撮像系を覆うことにより、撮影レンズ102、絞り103、ND104、撮像部105を含む撮像系の汚れや破損を防止する。 FIG. 1 is a block diagram showing an internal configuration of the video camera 100. In FIG. 1, the photographing lens 102 is a lens group including a zoom lens and a focus lens, and forms a subject image. The diaphragm 103 is a diaphragm used for adjusting the amount of light. The ND 104 is an ND filter used for dimming. The image pickup unit 105 is an image pickup device composed of a CCD, a CMOS element, or the like that converts an optical image into an electric signal. Further, the imaging unit 105 also has functions such as storage control by an electronic shutter, analog gain, and change of reading 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 signal output from the imaging unit 105 into a digital signal. The barrier 101 covers the imaging system of the video camera 100 including the photographing lens 102 to prevent the imaging system including the photographing lens 102, the aperture 103, the ND 104, and the imaging unit 105 from being soiled or damaged.

画像処理部115は、A/D変換器106からのデータ、又は、メモリ制御部116からのデータに対して色変換処理、ガンマ補正、デジタルゲインの付加等の処理を行う。また、撮像した画像データを用いて所定の演算処理が行われ、演算結果をシステム制御部114に送信する。送信された演算結果に基づいてシステム制御部114が露出制御、測距制御をホワイトバランス制御等行う。これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理等が行われる。画像処理部115についての詳細は後述する。 The image processing unit 115 performs color conversion processing, gamma correction, addition of digital gain, and the like on the data from the A / D converter 106 or the data from the memory control unit 116. In addition, a predetermined calculation process 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, distance measurement control, white balance control, and the like. As a result, TTL (through the lens) type AF (auto focus) processing, AE (auto 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は、所定時間の動画像および音声を格納するのに十分な記憶容量を備えている。 The output data from the A / D converter 106 is written directly to 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 image data captured by the imaging unit 105 and converted into digital data by the A / D converter 106, and image data to be displayed on the display unit 118. The memory 119 has a storage capacity sufficient to store moving images and sounds 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に逐次転送して表示することで、電子ビューファインダとして機能し、スルー画像表示を行うことができる。 Further, the memory 119 also serves as a memory (video memory) for displaying an image. The D / A converter 117 converts the image display data stored in the memory 119 into an analog signal and supplies it to the display unit 118. In this way, the image data for display written in the memory 119 is displayed by the display unit 118 via the D / A converter 117. The display unit 118 displays on a display such as an LCD according to the analog signal from the D / A converter 117. The digital signal once A / D converted by the A / D converter 106 and stored in the memory 119 is analog-converted by the D / A converter 117 and sequentially transferred to the display unit 118 for display as an electronic viewfinder. It functions and can display through images.

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

システム制御部114は、ビデオカメラ100全体を制御する。前述した不揮発性メモリ113に記録されたプログラムを実行することで、後述する本発明の第1の実施形態の各処理を実現する。システムメモリ121はRAMが用いられ、システム制御部114の動作用の定数、変数、不揮発性メモリ113から読み出したプログラム等を展開する。また、システム制御部114はメモリ119、D/A変換器117、表示部118等を制御することにより表示制御も行う。 The system control unit 114 controls the entire video camera 100. By executing the program recorded in the non-volatile memory 113 described above, each process of the first embodiment of the present invention described later is realized. RAM is used as the system memory 121, and constants and variables for operation of the system control unit 114, a program read from the non-volatile memory 113, and the like are developed. The system control unit 114 also controls the display 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 the built-in clock. The mode changeover switch 109, the recording switch 108, and the 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への動画データの書き込みまでの一連の動作を開始する。 The mode changeover 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 playback mode, and the like. Modes included in the moving image recording mode and the still image recording mode include 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 directly switches to any of these modes included in the moving image shooting mode. Alternatively, after switching to the moving image shooting mode once with the mode changeover switch 109, the mode may be switched to any of these modes included in the moving image shooting mode by using another operating 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.

電源スイッチ110はビデオカメラ100の電源を入/切するためのスイッチである。 The power switch 110 is a switch for turning on / off the power of the video camera 100.

操作部107の各操作部材は、表示部118に表示される種々の機能アイコンを選択操作することなどにより、場面ごとに適宜機能が割り当てられ、各種機能ボタンとして作用する。機能ボタンとしては、例えば終了ボタン、戻るボタン、画像送りボタン、ジャンプボタン、絞込みボタン、属性変更ボタン等がある。例えば、メニューボタンが押されると各種の設定可能なメニュー画面が表示部118に表示される。利用者は、表示部118に表示されたメニュー画面と、上下左右4方向の十字キーやSETボタンを用いて直感的に各種設定を行うことができる。 Each operation member of the operation unit 107 is assigned a function as appropriate for each scene by selecting and operating various function icons displayed on the display unit 118, and acts as various function buttons. Examples of the function buttons include an end button, a back button, an image feed button, a jump button, a narrowing down button, an attribute change button, and the like. For example, when the menu button is pressed, various configurable menu screens are displayed on the display unit 118. The user can intuitively make various settings by using the menu screen displayed on the display unit 118 and the cross keys and SET buttons in four directions of up, down, left, and right.

電源制御部111は、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成され、電池の装着の有無、電池の種類、電池残量の検出を行う。また、電源制御部111は、その検出結果及びシステム制御部114の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体123を含む各部へ供給する。電源部112は、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Liイオン電池等の二次電池、ACアダプター等からなる。I/F122は、メモリカードやハードディスク等の記録媒体123、または外部出力機器とのインターフェースである。図では記録媒体123との接続時の状態を示している。記録媒体123は、撮影された画像を記録するためのメモリカード等の記録媒体であり、半導体メモリや磁気ディスク等から構成される。 The power supply control unit 111 includes a battery detection circuit, a DC-DC converter, a switch circuit for switching 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. Further, the power supply control unit 111 controls the DC-DC converter based on the detection result and the instruction of 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 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. The figure shows the state at the time of connection with the recording medium 123. The recording medium 123 is a recording medium such as a memory card for recording a captured image, and is composed of a semiconductor memory, a magnetic disk, or the like.

画像変換部124は、画像処理部115から入力された信号に対して階調変換、色変換などを行う。 The image conversion unit 124 performs gradation conversion, color conversion, and the like on the signal input from the image processing unit 115.

次に、本発明の実施形態である画像処理部115の内部構成について説明する。図2は画像処理部115の内部構成と関係部位を示すブロック図である。画像処理部115は、システム制御部114を通じて、撮像装置内部のあらゆるデータ取得が可能であり、システム制御部114の制御により、各部の機能を実現する。なお、画像処理部115の機能は1つのハードウェアを用いて行ってもよいし、複数のハードウェアが協働して行ってもよい。また、システム制御部114が画像処理プログラムを実行することで、画像処理部115として機能してもよい。また、画像処理部115の機能の一部またはすべてを回路で実現してもよい。 Next, the internal configuration of the image processing unit 115 according to the embodiment of the present invention will be described. FIG. 2 is a block diagram showing the internal configuration of the image processing unit 115 and related parts. The image processing unit 115 can acquire all the data inside the image pickup apparatus through the system control unit 114, and realizes the functions of each unit under the control of the system control unit 114. The function of the image processing unit 115 may be performed by using one hardware, or may be performed by a plurality of hardware in cooperation with each other. Further, the system control unit 114 may function as the image processing unit 115 by executing the image processing program. Further, a part or all of the functions of the image processing unit 115 may be realized by a circuit.

ゲイン補正部20はA/D変換器106から出力されたRGB信号に同じ倍率を掛けて増幅する。WB補正部21はゲイン補正部20から出力された信号のうち、R信号とB信号に対して利得を掛けることによってホワイトバランスを補正する。マトリクス演算部22はWB補正部21から出力された信号に対してマトリクスを掛けることにより、色調を補正する。階調変換部23はマトリクス演算部22から出力された信号に対して階調変換を行う。階調変換部23からの出力は画像変換部124や記録媒体123に対して出力される。 The gain correction unit 20 amplifies the RGB signal output from the A / D converter 106 by multiplying it by the same magnification. The WB correction unit 21 corrects the white balance by multiplying the R signal and the B signal of the signals output from the gain correction unit 20 by a gain. The matrix calculation unit 22 corrects the color tone by multiplying the signal output from the WB correction unit 21 by a matrix. The gradation conversion unit 23 performs gradation conversion on the signal output from the matrix calculation unit 22. The output from the gradation conversion unit 23 is output to the image conversion unit 124 and the recording medium 123.

3DLUT処理部24は図3のような3DLUTデータを参照し色変換を行う。図3では入力値のRGB値とそれに対応する出力値のRGB値を並べて記載しているが、入力値のRGB値は均等間隔で区切られていることが多いため、実際のデータとしては出力値のみが羅列されていることが一般的である。入力されたRGB値と同じRGB値が変換元のテーブルにある場合は変換先のRGB値にそのまま変換する。入力されたRGB値が変換元のテーブルに存在しない場合は入力されたRGB値の周囲の点から補間をする。一般的にはRGB値を含む四面体を抽出し、四面体補間と呼ばれる方法を用いて補間を行うことが多いが、その他の補間方法が用いられることもある。また、本実施形態では、初期状態ではRGB値の変化が起きないようなスルー相当の(LUT適用後にR,G,Bの値が変わらない)データが設定されているものとする。 The 3DLUT processing unit 24 performs color conversion with reference to the 3DLUT data as shown in FIG. In FIG. 3, the RGB values of the input values and the RGB values of the corresponding output values are shown side by side, but since the RGB values of the input values are often separated at equal intervals, the actual data is the output values. It is common that only are listed. If the same RGB value as the input RGB value is in the conversion source table, it is converted to the conversion destination RGB value as it is. If the input RGB value does not exist in the conversion source table, interpolation is performed from the points around the input RGB value. Generally, a tetrahedron containing RGB values is extracted and interpolation is performed using a method called tetrahedron interpolation, but other interpolation methods may also be used. Further, in the present embodiment, it is assumed that the data corresponding to the through (the values of R, G, and B do not change after the LUT is applied) is set so that the RGB values do not change in the initial state.

続いて、図4のフローチャートを用いてユーザがビデオカメラ100に任意の3DLUTを入力する場合の処理について説明する。本実施形態においては説明のため、A/D変換器106から3DLUT処理部24までのすべてで信号の値域は0〜1に正規化して扱うこととする。また、WB補正部21の入力を(R、G、B)、マトリクス演算部22の入力を(R,G,B)、階調変換部23の入力を(R,G,B)、3DLUT処理部24の入力を(R,G,B)と置く。このとき、本実施形態ではWB補正部21、マトリクス演算部22、階調変換部23のそれぞれで式1〜式3による演算が行われるとする。 Subsequently, the process when the user inputs an arbitrary 3D LUT to the video camera 100 will be described using the flowchart of FIG. In the present embodiment, for the sake of explanation, the range of the signal is normalized to 0 to 1 in all of the A / D converter 106 to the 3DLUT processing unit 24. Further, the input of the WB correction unit 21 is (R 0 , G 0 , B 0 ), the input of the matrix calculation unit 22 is (R 1 , G 1 , B 1 ), and the input of the gradation conversion unit 23 is (R 2 ,, G 2, B 2), placing the inputs of the 3DLUT processor 24 and (R 3, G 3, B 3). At this time, in the present embodiment, it is assumed that the WB correction unit 21, the matrix calculation unit 22, and the gradation conversion unit 23 each perform calculations according to Equations 1 to 3.

Figure 2021007218
Figure 2021007218

Figure 2021007218
Figure 2021007218

Figure 2021007218
Figure 2021007218

まずステップS41において、システム制御部114は、ユーザの指定した3DLUTデータを読み込み、システムメモリ121に展開する。ユーザの用意した3DLUTデータは、例えばユーザがPCなどを用いて記録媒体123にファイルとして3DLUTデータを予め記録し、記録媒体123をデジタルカメラ100に装着する。そしてユーザのメニュー操作などに応じて、システム制御部114は記録媒体123に記録された3DLUTデータを読み込む。 First, in step S41, the system control unit 114 reads the 3DLUT data specified by the user and expands it into the system memory 121. As for the 3DLUT data prepared by the user, for example, the user records the 3DLUT data as a file on the recording medium 123 using a PC or the like in advance, and attaches the recording medium 123 to the digital camera 100. Then, the system control unit 114 reads the 3DLUT data recorded on the recording medium 123 in response to the user's menu operation or the like.

ステップS42において、システム制御部114はステップS41で読み込んだ3DLUTデータを解析し、3DLUT処理部24からの出力信号を生成するのに必要なWB補正部21の入力信号の信号範囲を求める。以下、この方法を図5に示すフローチャートを参照しながら説明する。 In step S42, the system control unit 114 analyzes the 3DLUT data read in step S41 to obtain the signal range of the input signal of the WB correction unit 21 required to generate the output signal from the 3DLUT processing unit 24. Hereinafter, this method will be described with reference to the flowchart shown in FIG.

ステップS51において、システム制御部114は、図3に示した3DLUTデータの入力値を、WB補正部21の入力値に換算する。以下、換算の方法を説明する。 In step S51, the system control unit 114 converts the input value of the 3DLUT data shown in FIG. 3 into the input value of the WB correction unit 21. The conversion method will be described below.

式1〜式3から、WB補正部21の入力値(R,G,B)と3DLUT処理部24の入力値(R,G、B)の関係は式4により表すことができる。 From Equations 1 to 3 , the relationship between the input values (R 0 , G 0 , B 0 ) of the WB correction unit 21 and the input values (R 3 , G 3 , B 3 ) of the 3D LUT processing unit 24 is expressed by Equation 4. Can be done.

Figure 2021007218
Figure 2021007218

すなわち、3DLUT処理部24の入力値(R,G,B)をWB補正部21の入力値(R,G,B)に換算するには式5に示す計算を行えばよい。 That is, in order to convert the input value (R 3 , G 3 , B 3 ) of the 3DLUT processing unit 24 into the input value (R 0 , G 0 , B 0 ) of the WB correction unit 21, the calculation shown in Equation 5 can be performed. Good.

Figure 2021007218
Figure 2021007218

この計算により入力値をWB補正部21の入力値に換算したものを図6に示す。つまり、WB補正部21の入力値(R,G,B)と3DLUT処理部24の入力値(R,G、B)の関係を表したのが図6となる。 FIG. 6 shows the input value converted into the input value of the WB correction unit 21 by this calculation. That is, FIG. 6 shows the relationship between the input values (R 0 , G 0 , B 0 ) of the WB correction unit 21 and the input values (R 3 , G 3 , B 3 ) of the 3D LUT processing unit 24.

ステップS52において、システム制御部114は、入力値の最大値をもとにステップS51で生成した3DLUTデータをソートする。入力値の最大値とは、各行の入力値(R,G,B)のうち最大の値であるmax(R,G,B)を、行ごとに算出したものである。max(R,G,B)の小さい順にソートした3DLUTデータを図7に示す。以下、図7の説明において「入力値」はmax(R,G,B)をいうものとする。 In step S52, the system control unit 114 sorts the 3DLUT data generated in step S51 based on the maximum value of the input value. The maximum value of the input value is a calculation of max (R, G, B), which is the maximum value among the input values (R, G, B) of each row, for each row. FIG. 7 shows 3DLUT data sorted in ascending order of max (R, G, B). Hereinafter, in the description of FIG. 7, the “input value” refers to max (R, G, B).

ステップS53において、システム制御部114は、最大入力値に対応する基準出力値を抽出する。最大入力値とは、すべての行のうち最も大きな入力値である。図7の例では、最終行701のみが最も大きな入力値である「1」を有する。したがって本ステップでは、システム制御部114は、この入力値に対応する出力値である(R,G,B)=(1,1,1)を、基準出力値として抽出する。なお、本実施形態では最大入力値を持つ行は1つだけであったが、WB補正部21〜階調変換部23の処理内容によっては最大入力値を持つ行が複数存在することがある。その場合はそれらの入力値に対応する出力値をすべて抽出し、同一の値のものは1つにまとめる。例えば、最大入力値を持つ行が3つあり、それらに対応する出力値が(R,G,B)=(1,1,1)、(1,1,1)、(0.9,1,1)であった場合、(R,G,B)=(1,1,1)、(0.9,1,1)の2つが基準出力値として抽出される。 In step S53, the system control unit 114 extracts a reference output value corresponding to the maximum input value. The maximum input value is the largest input value of all rows. In the example of FIG. 7, only the last line 701 has the largest input value "1". Therefore, in this step, the system control unit 114 extracts the output value (R, G, B) = (1,1,1) corresponding to this input value as the reference output value. In this embodiment, only one line has the maximum input value, but there may be a plurality of lines having the maximum input value depending on the processing contents of the WB correction unit 21 to the gradation conversion unit 23. In that case, all the output values corresponding to those input values are extracted, and those with the same value are combined into one. For example, there are three rows with maximum input values, and the corresponding output values are (R, G, B) = (1,1,1), (1,1,1), (0.9,1). , 1), (R, G, B) = (1,1,1), (0.9,1,1) are extracted as reference output values.

ステップS54において、システム制御部114は、ステップS53で抽出した基準出力値の数が1つかどうかを判定する。1つの場合にはステップS55に進み、複数ある場合には処理を終了する。 In step S54, the system control unit 114 determines whether or not the number of reference output values extracted in step S53 is one. If there is one, the process proceeds to step S55, and if there are a plurality, the process ends.

ステップS55において、システム制御部114は、基準出力値と異なる出力値を持つ行のうち、最大の入力値を探索する。図7の例では、行702が基準出力値「1」とは異なる出力値「0.969567」を有し、基準出力値「1」とは異なる出力値を有する行の中で最大の入力値「0.670114」を持つ。この入力値を得て、システム制御部114は図5、つまりステップS42の3DLUTデータ解析処理を終了する。 In step S55, the system control unit 114 searches for the maximum input value among the rows having an output value different from the reference output value. In the example of FIG. 7, line 702 has an output value "0.969567" different from the reference output value "1", and is the largest input value among the lines having an output value different from the reference output value "1". It has "0.670114". Upon obtaining this input value, the system control unit 114 ends FIG. 5, that is, the 3DLUT data analysis process in step S42.

説明を図4に戻す。ステップS43において、システム制御部114は、WB補正部21の入力信号の信号範囲を縮小可能であるかどうかを判定する。ステップS42により、WB補正部21の最大入力値に対応する出力値と異なる出力値を持つ最大入力値が分かっている。本実施形態では、入力値「0.670114」が該当の入力値である。この入力値の次に大きな入力値である「0.672886」以上の入力値を持っていれば、3DLUT処理部24の出力値は必ず(1,1,1)になることが分かる。したがって、WB補正部21の入力信号をより少ない信号範囲で表現(信号範囲を縮小)することが可能であると判定できる。以下、一方、ステップS42の結果の最大入力値が1である場合やステップS42の結果の最大入力値の次に大きな入力値が1である場合、システム制御部114は信号範囲を縮小することはできないと判定する。また、ステップS53において基準出力値が複数あると判定され図5の解析処理が終了した場合も、システム制御部114は信号範囲を縮小することはできないと判定する。システム制御部114は、信号範囲の縮小が可能と判定した場合は処理をステップS44に進め、信号範囲の縮小ができないと判定した場合は処理を終了する。 The explanation is returned to FIG. In step S43, the system control unit 114 determines whether or not the signal range of the input signal of the WB correction unit 21 can be reduced. In step S42, the maximum input value having an output value different from the output value corresponding to the maximum input value of the WB correction unit 21 is known. In the present embodiment, the input value "0.670114" is the corresponding input value. It can be seen that the output value of the 3DLUT processing unit 24 is always (1,1,1) if it has an input value of "0.672886" or more, which is the next largest input value after this input value. Therefore, it can be determined that the input signal of the WB correction unit 21 can be expressed (reduced in the signal range) in a smaller signal range. Hereinafter, on the other hand, when the maximum input value of the result of step S42 is 1, or when the input value next to the maximum input value of the result of step S42 is 1, the system control unit 114 may reduce the signal range. Judge that it cannot be done. Further, even when it is determined in step S53 that there are a plurality of reference output values and the analysis process of FIG. 5 is completed, the system control unit 114 determines that the signal range cannot be reduced. When the system control unit 114 determines that the signal range can be reduced, the process proceeds to step S44, and when it is determined that the signal range cannot be reduced, the system control unit 114 ends the process.

ステップS44において、システム制御部114は信号範囲の縮小量を計算する。ステップS43で述べたように、WB補正部21の入力値が0.672886以上あれば3DLUT処理部24から(R,G,B)=(1,1,1)として出力される。言い換えると、WB補正部21の入力値が0.672886〜1の範囲であるときは区別する必要がなく、入力値を表現するための所要信号範囲は0〜1よりも小さくなる。したがって、本実施形態の例であれば、WB補正部21の入力信号の信号範囲を0.670114倍に縮小することが出来る。 In step S44, the system control unit 114 calculates the amount of reduction in the signal range. As described in step S43, if the input value of the WB correction unit 21 is 0.672886 or more, it is output from the 3DLUT processing unit 24 as (R, G, B) = (1,1,1). In other words, when the input value of the WB correction unit 21 is in the range of 0.672886 to 1, it is not necessary to distinguish between them, and the required signal range for expressing the input value is smaller than 0 to 1. Therefore, in the example of this embodiment, the signal range of the input signal of the WB correction unit 21 can be reduced to 0.670114 times.

ステップS45において、システム制御部114は、ステップS44で決定した信号範囲の縮小量をもとにWB補正部21の入力値を拡大するよう露光量を大きくする。まず、WB補正部21の入力値の信号の0.670114よりも大きい値は必要ないため、システム制御部114は撮像部105の露光量を変更する。本実施形態では撮像部105の出力と露光量との関係が線形であるとし、露光量を1/0.670114=約1.49倍にする。露光量は絞り103、ND104、または撮像部105の電子シャッターのいずれか1つ以上を用いて変更する。 In step S45, the system control unit 114 increases the exposure amount so as to increase the input value of the WB correction unit 21 based on the reduction amount of the signal range determined in step S44. First, since a value larger than 0.6701114 of the input value signal of the WB correction unit 21 is not required, the system control unit 114 changes the exposure amount of the imaging unit 105. In the present embodiment, it is assumed that the relationship between the output of the imaging unit 105 and the exposure amount is linear, and the exposure amount is set to 1 / 0.670114 = about 1.49 times. The exposure amount is changed by using any one or more of the aperture 103, the ND 104, or the electronic shutter of the imaging unit 105.

絞り103、ND104、撮像部105の電子シャッターの駆動分解能の都合上、露光量を正確に変更できないことも考えられる。その場合、システム制御部114は所望の露光量を超えないように露光量を変更する。例えば、露光量が1.45倍、1.55倍のいずれかでしか変更できない場合、システム制御部114は露光量を1.45倍とし、ステップS44で決定した信号範囲の縮小量を1/1.45倍と修正する。 Due to the drive resolution of the electronic shutters of the aperture 103, ND 104, and image pickup unit 105, it is possible that the exposure amount cannot be changed accurately. In that case, the system control unit 114 changes the exposure amount so as not to exceed the desired exposure amount. For example, when the exposure amount can be changed only by 1.45 times or 1.55 times, the system control unit 114 sets the exposure amount to 1.45 times and reduces the signal range determined in step S44 by 1 /. Correct it to 1.45 times.

上記の処理を行うことで、露光量が大きくなり、撮像画像のS/N比が向上する。一方で、ステップS45の露光量変更によって3DLUT処理部24からの出力値が変化してしまう。 By performing the above processing, the exposure amount is increased and the S / N ratio of the captured image is improved. On the other hand, the output value from the 3DLUT processing unit 24 changes due to the change in the exposure amount in step S45.

上記を考慮して、ステップS46においてシステム制御部114は、露光量変更による出力値の変化を補償するよう、画像処理部115の処理を変更する。上記の例のように、撮像部105の露光量がn倍になり、WB補正部21の入力値もn(=1.49)倍になったとする。このとき、3DLUT処理部24の出力値の変化を補償する方法は主に次の3通りがある。 In consideration of the above, in step S46, the system control unit 114 changes the processing of the image processing unit 115 so as to compensate for the change in the output value due to the change in the exposure amount. As in the above example, it is assumed that the exposure amount of the imaging unit 105 is increased by n times and the input value of the WB correction unit 21 is also increased by n (= 1.49) times. At this time, there are mainly the following three methods for compensating for the change in the output value of the 3D LUT processing unit 24.

1)ゲイン補正部20の特性を変更する
システム制御部114は、ゲイン補正部20で増幅率を1/n倍とすることでWB補正部21の入力値以降を元と同じになるように補償することができる。ただし、ゲイン補正部20に設定されている元の増幅率が小さい場合、増幅率が1未満になり、階調性が犠牲になってしまうことがある。
1) The system control unit 114 that changes the characteristics of the gain correction unit 20 compensates the gain correction unit 20 so that the input value and subsequent values of the WB correction unit 21 are the same as the original by multiplying the amplification factor by 1 / n. can do. However, if the original amplification factor set in the gain correction unit 20 is small, the amplification factor becomes less than 1, and the gradation may be sacrificed.

2)階調変換部23の特性を変更する
システム制御部114は、階調変換部23の階調変換特性を修正することで階調変換部23の出力値以降を元と同じになるように補償することができる。階調変換部23の新たな出力値をf‘(R),f’(G),f‘(B)とすると、元の出力値f(R),f(G),f(B)を用いて、式6のように表せる。
2) Changing the characteristics of the gradation conversion unit 23 The system control unit 114 corrects the gradation conversion characteristics of the gradation conversion unit 23 so that the output value and subsequent values of the gradation conversion unit 23 are the same as the original. Can be compensated. Assuming that the new output values of the gradation conversion unit 23 are f'(R), f'(G), and f'(B), the original output values f (R), f (G), and f (B) are set. It can be expressed as in Equation 6.

Figure 2021007218
Figure 2021007218

入力R,G,Bに対する元の出力値f(R)、f(G)、f(B)と新たな出力値f‘(R)、f’(G)、f‘(B)の関係は図8のようになる。階調変換特性81は元の変換特性を表しており、階調変換特性82は露光量変更による信号レベルの変化を補償する変換特性を表している。 What is the relationship between the original output values f (R), f (G), f (B) for the inputs R, G, B and the new output values f'(R), f'(G), f'(B)? It becomes as shown in FIG. The gradation conversion characteristic 81 represents the original conversion characteristic, and the gradation conversion characteristic 82 represents the conversion characteristic that compensates for the change in the signal level due to the change in the exposure amount.

3)3DLUT処理部24の特性を変更する
システム制御部114は、ステップS41にて読み込ませた3DLUTデータ自体を変更して、3DLUT処理部24の出力値が元の出力値とほぼ一致するように補償することができる。元の3DLUTデータの入力値(R,G,B)に対する出力値をL(R,G,B)、変更後の3DLUTデータの出力値をL‘(R,G,B)と置くと、L‘(R,G,B)はL、gを用いて式7のように表せる。
3) Changing the characteristics of the 3DLUT processing unit 24 The system control unit 114 changes the 3DLUT data itself read in step S41 so that the output value of the 3DLUT processing unit 24 almost matches the original output value. Can be compensated. If the output value for the original 3DLUT data input value (R, G, B) is set to L (R, G, B) and the changed output value of the 3DLUT data is set to L'(R, G, B), then L '(R, G, B) can be expressed as in Equation 7 using L and g.

Figure 2021007218
Figure 2021007218

ここで、L(R,G,B)は離散的な入力値に対する出力値のみを持っているので、式7の計算を行うためには四面体補間などの補間計算を行う必要がある。3)の方法は階調変換部23の出力値が1)、2)の方法の場合よりも大きくなるため、階調変換部23の出力値のビット幅が限られている場合などに階調的に有利である。 Here, since L (R, G, B) has only output values for discrete input values, it is necessary to perform interpolation calculation such as tetrahedral interpolation in order to perform the calculation of Equation 7. Since the output value of the gradation conversion unit 23 is larger than that of the methods 1) and 2) in the method 3), the gradation is obtained when the bit width of the output value of the gradation conversion unit 23 is limited. It is advantageous.

1)、2)の方法を採用した場合、システム制御部114は、ステップS41で読み込んだ3DLUTデータをそのまま3DLUT処理部24に設定する。3)の方法を採用した場合、システム制御部114は、式7により算出した3DLUTデータを3DLUT処理部24に設定する。以上、代表的と思われる3通りの方法を示したが、3DLUT処理部24からの出力値の信号レベルが維持できるのであればその他のどのような方法を使用してもよい。さらに、2)の方法を用いる場合、システム制御部114は、信号範囲の縮小量に応じて予め計算しておいた変換特性や3DLUTデータを不揮発性メモリ113などから読み出して設定してもよい。また、出力値の信号レベルを必ずしも完全に維持する必要はなく、例えば信号レベルが所定の閾値以内に近づくまで、上述した信号レベルの補償処理を行うようにしてもよい。つまりシステム制御部114は、露光量を増加させることでS/N比を向上させ、一方で露光量の増加に伴う信号レベルの変化を、信号レベルの補償処理により露光量を増加させる前の信号レベルに近付けるよう種々の処理を行うようにすることができる。 When the methods 1) and 2) are adopted, the system control unit 114 sets the 3DLUT data read in step S41 as it is in the 3DLUT processing unit 24. When the method of 3) is adopted, the system control unit 114 sets the 3DLUT data calculated by the equation 7 in the 3DLUT processing unit 24. The three methods considered to be typical have been shown above, but any other method may be used as long as the signal level of the output value from the 3D LUT processing unit 24 can be maintained. Further, when the method 2) is used, the system control unit 114 may read the conversion characteristics and the 3DLUT data calculated in advance according to the reduction amount of the signal range from the non-volatile memory 113 or the like and set them. Further, it is not always necessary to completely maintain the signal level of the output value, and for example, the above-mentioned signal level compensation processing may be performed until the signal level approaches a predetermined threshold value. That is, the system control unit 114 improves the S / N ratio by increasing the exposure amount, while the signal level change due to the increase in the exposure amount is the signal before the exposure amount is increased by the signal level compensation processing. Various processes can be performed to approach the level.

以上、本実施形態ではユーザの入力した任意の3DLUTデータを解析し、撮像部105への露光量をできるだけ大きくしながら最終的に出力される信号の信号レベルは維持する方法について説明した。本実施形態によれば、ユーザの入力した任意の3DLUTデータに応じて、最終的な出力信号のS/N比を向上させる効果を有する。 In the present embodiment, a method of analyzing arbitrary 3DLUT data input by the user and maintaining the signal level of the finally output signal while increasing the exposure amount to the imaging unit 105 as much as possible has been described. According to this embodiment, it has an effect of improving the S / N ratio of the final output signal according to arbitrary 3DLUT data input by the user.

<第2の実施形態>
第1の実施形態では、画像処理部115がゲイン補正部20、WB補正部21、マトリクス演算部22、階調変換部23、3DLUT処理部24で構成されている例について説明した。これに対し本実施形態では、図9に示すように3DLUT処理部24の前に3DLUT処理部25を含む構成について述べる。3DLUT処理部24は第1の実施形態と同様に初期状態はスルー相当の設定であるが、3DLUT処理部25は画像処理の一部として予め何らかの(R,G,Bの値を変換する)3DLUTデータが設定されているものとする。例えば、マトリクス演算部22のみでは所望の色再現が達成できないなどの理由で、補助的に3DLUT処理部25を使用している場合が考えられる。なお、WB補正部21、マトリクス演算部22、階調変換部23には第1の実施形態と同様の設定値が適用されているものとする。
<Second embodiment>
In the first embodiment, an example in which the image processing unit 115 is composed of the gain correction unit 20, the WB correction unit 21, the matrix calculation unit 22, the gradation conversion unit 23, and the 3DLUT processing unit 24 has been described. On the other hand, in the present embodiment, as shown in FIG. 9, the configuration including the 3DLUT processing unit 25 before the 3DLUT processing unit 24 will be described. The initial state of the 3DLUT processing unit 24 is set to be equivalent to through as in the first embodiment, but the 3DLUT processing unit 25 has some kind of 3DLUT (converts R, G, B values) in advance as a part of image processing. It is assumed that the data has been set. For example, it is conceivable that the 3DLUT processing unit 25 is used as an auxiliary because the desired color reproduction cannot be achieved only by the matrix calculation unit 22. It is assumed that the same setting values as in the first embodiment are applied to the WB correction unit 21, the matrix calculation unit 22, and the gradation conversion unit 23.

本実施形態について、第1の実施形態と同様に図3に示すフローチャートを用いて説明する。 The present embodiment will be described with reference to the flowchart shown in FIG. 3 as in the first embodiment.

ステップS41において、システム制御部114は、第1の実施形態と同様に3DLUTデータを読み込む。 In step S41, the system control unit 114 reads the 3DLUT data as in the first embodiment.

ステップS42において、システム制御部114は、ステップS41で読み込ませた3DLUTデータを解析し、第1の実施形態と同様にWB補正部21の入力値として必要な信号範囲を求める。ただし、3DLUTデータによっては正しく逆変換を求められないことがある。例えば、異なる入力値が同じ出力値に変換されるような3DLUTデータの場合、その出力値に対応する入力値を正しく求めることは不可能である。したがって、第1の実施形態と同様には3DLUT処理部24の入力値をWB補正部21の入力値に換算することはできない。そこでシステム制御部114は、3DLUT処理部25に設定されている3DLUTデータとユーザが読み込ませた3DLUTデータとを合成し、合成3DLUTデータを生成する。これは、3DLUT処理部25の入力値(R,G,B)を3DLUT処理部25を通して変換したあと、さらに3DLUT処理部24を通して変換した値を求めることに相当する。この合成3DLUTデータを読み込み、3DLUT処理部25がないものとみなせば、第1の実施形態のステップS42同様にWB補正部21の入力値として必要な信号範囲を求めることが可能である。ただし、合成3DLUTデータで変換したRGB値と実際に3DLUT処理部25、3DLUT処理部24を通して変換したRGB値は厳密には異なる。精度を求める場合は合成時に3DLUT処理部25の入力値として用いるRGB値をより細かな刻みで用意することで実際の変換結果に近づけることができる。 In step S42, the system control unit 114 analyzes the 3DLUT data read in step S41 and obtains a signal range required as an input value of the WB correction unit 21 as in the first embodiment. However, depending on the 3DLUT data, the inverse conversion may not be obtained correctly. For example, in the case of 3DLUT data in which different input values are converted into the same output value, it is impossible to correctly obtain the input value corresponding to the output value. Therefore, as in the first embodiment, the input value of the 3DLUT processing unit 24 cannot be converted into the input value of the WB correction unit 21. Therefore, the system control unit 114 synthesizes the 3DLUT data set in the 3DLUT processing unit 25 and the 3DLUT data read by the user, and generates the synthesized 3DLUT data. This corresponds to converting the input values (R, G, B) of the 3DLUT processing unit 25 through the 3DLUT processing unit 25, and then obtaining the converted value through the 3DLUT processing unit 24. If the combined 3DLUT data is read and it is considered that there is no 3DLUT processing unit 25, it is possible to obtain a signal range required as an input value of the WB correction unit 21 as in step S42 of the first embodiment. However, the RGB value converted by the synthetic 3DLUT data and the RGB value actually converted through the 3DLUT processing unit 25 and the 3DLUT processing unit 24 are strictly different. When obtaining accuracy, it is possible to approach the actual conversion result by preparing RGB values used as input values of the 3DLUT processing unit 25 at the time of synthesis in finer increments.

ステップS43、ステップS44は第1の実施形態と同様である。 Step S43 and step S44 are the same as those in the first embodiment.

ステップS45では信号範囲の縮小処理を実行する。まず、第1の実施形態で示したステップS45の1)、2)の方法を用いる場合は第1の実施形態の場合と同様である。また、3)の方法を用いる場合は、3DLUT処理部25の3DLUTデータに対して3)の方法を適用することで、3DLUT処理部24の入力値の時点で信号レベルを補償することもできる。このとき、不揮発性メモリ113に信号範囲の縮小量に応じた3DLUTデータを予め用意しておき、それを3DLUT処理部25に設定してもよい。 In step S45, the signal range reduction process is executed. First, when the methods 1) and 2) of steps S45 shown in the first embodiment are used, they are the same as in the case of the first embodiment. Further, when the method of 3) is used, the signal level can be compensated at the time of the input value of the 3DLUT processing unit 24 by applying the method of 3) to the 3DLUT data of the 3DLUT processing unit 25. At this time, 3DLUT data corresponding to the amount of reduction of the signal range may be prepared in advance in the non-volatile memory 113 and set in the 3DLUT processing unit 25.

以上、本実施形態では3DLUT処理部が前段、後段の2つあり、後段の3DLUT処理部に対して3DLUTデータを読み込ませる場合の処理について説明した。本実施形態によれば上記のような回路構成であっても、第1の実施形態と同様にユーザの入力した任意の3DLUTデータに応じてA/D変換器106から出力される信号の信号範囲を縮小し、最終的な出力信号のS/N比を向上させる効果を有する。 As described above, in the present embodiment, there are two 3DLUT processing units, a front stage and a rear stage, and a process for causing the 3DLUT processing unit in the rear stage to read 3DLUT data has been described. According to the present embodiment, even if the circuit configuration is as described above, the signal range of the signal output from the A / D converter 106 according to any 3DLUT data input by the user is the same as in the first embodiment. Has the effect of reducing the S / N ratio of the final output signal.

<第3の実施形態>
第1、2の実施形態では、絞り103、ND104、または撮像部105の電子シャッターのいずれか1つ以上を用いて露光量を変更することにより、撮像部105からの出力信号を増加させ、最終的な出力信号のS/N比を向上させた。本実施形態では、実施例1、2とは異なる方法で最終的な出力信号のS/N比を向上させる場合について説明する。
<Third embodiment>
In the first and second embodiments, the output signal from the imaging unit 105 is increased by changing the exposure amount using any one or more of the aperture 103, the ND 104, or the electronic shutter of the imaging unit 105, and finally. The S / N ratio of a typical output signal has been improved. In this embodiment, a case where the S / N ratio of the final output signal is improved by a method different from that of Examples 1 and 2 will be described.

本実施形態では、図10のように撮像部105が受光部1051とゲイン補正部1052で構成されるとする。受光部1051は入射光を電気信号に変換し、ゲイン補正部1052は受光部1051から出力された電気信号を増幅して出力する。 In the present embodiment, as shown in FIG. 10, the imaging unit 105 is composed of a light receiving unit 1051 and a gain correction unit 1052. The light receiving unit 1051 converts the incident light into an electric signal, and the gain correction unit 1052 amplifies and outputs the electric signal output from the light receiving unit 1051.

本実施形態について、第1の実施形態と同様に図3に示すフローチャートを用いて説明する。 The present embodiment will be described with reference to the flowchart shown in FIG. 3 as in the first embodiment.

ステップS41からステップS44までは第1の実施形態と同様のため説明を省略する。 Since steps S41 to S44 are the same as those in the first embodiment, the description thereof will be omitted.

ステップS45において、第1の実施形態では撮像部105に対する露光量を増加させたが、本実施形態では代わりに撮像部105に含まれるゲイン補正部1052を用いて露光量は変更せずに撮像部105からの出力信号を増加させる。そして、ステップS46においては、第1、2の実施形態と同様に信号レベル補償処理を行う。結果として、撮像部105以降の信号増幅量はステップS45、S46を行う前と同等となる。しかし、本実施形態では信号増幅処理の一部をゲイン補正部1052で行っているため、その後に発生するノイズの増幅量を小さくすることが出来る。例えば、受光部1051において発生するノイズに対しての増幅量はステップS45、S46を行う前後で変わらないが、A/D変換器106において信号に加わるノイズに関しては、ステップS45、S46を行った後の方が増幅量は小さくなる。すなわち、総合的なノイズ量は減少することになり、S/N比を向上させることが出来る。また、絞り103や撮像部105の電子シャッターを変更しないため、被写界深度や動画の滑らかさや残像感などを維持できるというメリットもある。ただし、実施形態1と比べるとS/N比向上の効果は小さい。 In step S45, the exposure amount to the imaging unit 105 was increased in the first embodiment, but in the present embodiment, the gain correction unit 1052 included in the imaging unit 105 is used instead, and the exposure amount is not changed. Increase the output signal from 105. Then, in step S46, the signal level compensation process is performed in the same manner as in the first and second embodiments. As a result, the amount of signal amplification after the imaging unit 105 is the same as before the steps S45 and S46. However, in the present embodiment, since a part of the signal amplification processing is performed by the gain correction unit 1052, the amount of noise amplified thereafter can be reduced. For example, the amount of amplification for noise generated in the light receiving unit 1051 does not change before and after performing steps S45 and S46, but for noise added to the signal in the A / D converter 106, after performing steps S45 and S46. The amplification amount is smaller in. That is, the total amount of noise is reduced, and the S / N ratio can be improved. Further, since the electronic shutter of the aperture 103 and the imaging unit 105 is not changed, there is an advantage that the depth of field, the smoothness of the moving image, the afterimage feeling, and the like can be maintained. However, the effect of improving the S / N ratio is smaller than that of the first embodiment.

本実施形態によれば、撮像部105のゲイン補正部1052を用いて信号を増幅するため、A/D変換器106などで発生するノイズの増幅を避けることができ、最終的な出力信号のS/N比を向上させる効果を有する。 According to the present embodiment, since the signal is amplified by using the gain correction unit 1052 of the imaging unit 105, it is possible to avoid the amplification of noise generated by the A / D converter 106 or the like, and the final output signal S. It has the effect of improving the / N ratio.

<その他の実施形態>
第1乃至3の実施形態では、画像処理部115から出力される信号のS/N比向上を目的に、ユーザの入力した3DLUTデータを解析し撮像部105の露光量を大きくする方法について説明した。しかし、3DLUTデータの内容自体がユーザの思惑に反して白飛びを起こすようなデータになってしまっている場合や、S/N比の改善を自動でされたくない場合もあると考えられる。例えば、ノイズ感が映像表現として重要な場合などである。そこで、ステップS44で決定した信号範囲の縮小量の逆数を「露光量拡大可能量」として表示部118を通じてユーザに通知し、ステップS45の信号範囲を縮小し露光量を拡大する処理を実行するかどうかをユーザに選択させてもよい。この通知により、ユーザが3DLUTデータ作成時の意図しない誤りを認識することが可能になるほか、映像のノイズ感を変えたくないときに信号範囲の縮小処理を行わないようにすることが出来る。
<Other Embodiments>
In the first to third embodiments, a method of analyzing the 3DLUT data input by the user and increasing the exposure amount of the imaging unit 105 has been described for the purpose of improving the S / N ratio of the signal output from the image processing unit 115. .. However, it is considered that there are cases where the content of the 3DLUT data itself is data that causes overexposure contrary to the user's expectation, or there are cases where the improvement of the S / N ratio is not automatically performed. For example, when a sense of noise is important for video expression. Therefore, whether to notify the user through the display unit 118 of the reciprocal of the reduction amount of the signal range determined in step S44 as the "exposure amount expansion possible amount", and execute the process of reducing the signal range and expanding the exposure amount in step S45. You may let the user choose whether or not. This notification enables the user to recognize an unintended error when creating 3DLUT data, and also prevents the signal range from being reduced when the user does not want to change the noise feeling of the image.

また実施形態1、3では、3DLUT処理部24に設定されている3DLUTデータの初期値はスルー相当である前提であった。しかし、もともとの画像処理の中で既に3DLUT処理部24を使用している場合もある。例えば、第2の実施形態と同じように補助的に3DLUTを使用したいが、回路規模や消費電力を抑える目的で3DLUT処理部が3DLUT処理部24の1つしかない場合などである。このような場合は予め設定されている3DLUTデータとユーザの読み込ませた3DLUTデータを合成した新たな3DLUTデータを3DLUT処理部24に設定することになる。その後は、第2の実施形態と同様に処理を行うことができる。 Further, in the first and third embodiments, it was assumed that the initial value of the 3DLUT data set in the 3DLUT processing unit 24 is equivalent to through. However, there are cases where the 3DLUT processing unit 24 is already used in the original image processing. For example, there is a case where it is desired to use the 3DLUT as an auxiliary as in the second embodiment, but there is only one 3DLUT processing unit 24 for the purpose of suppressing the circuit scale and power consumption. In such a case, new 3DLUT data obtained by synthesizing the preset 3DLUT data and the 3DLUT data read by the user is set in the 3DLUT processing unit 24. After that, the process can be performed in the same manner as in the second embodiment.

さらに、第1、2、3の実施形態ではWB補正部21の入力値として必要な信号範囲を求めるためにWB補正部21の設定値も加味して計算を行っていた。しかし、WB補正部21では通常R,B信号のみを増幅することからG信号の信号範囲が最も広く必要である場合が多い。図7を見てもG信号の信号範囲が多く必要な場合が多いことが分かる。したがって、WB補正部21の計算は加味せず、G信号のみでWB補正部21の入力値として必要な信号範囲を計算してもよい。 Further, in the first, second, and third embodiments, the calculation is performed in consideration of the set value of the WB correction unit 21 in order to obtain the signal range required as the input value of the WB correction unit 21. However, since the WB correction unit 21 normally amplifies only the R and B signals, it is often necessary to have the widest signal range of the G signal. It can be seen from FIG. 7 that a large signal range of the G signal is often required. Therefore, the calculation of the WB correction unit 21 may not be taken into consideration, and the signal range required as the input value of the WB correction unit 21 may be calculated using only the G signal.

第1、2、3の実施形態ではホワイトバランスが変わるたびに信号範囲の縮小量を計算しなおす必要があったが、ホワイトバランスに影響されないG信号のみを用いて信号範囲の縮小量を計算することができるため再計算の必要がない。また、G信号の信号範囲が最も多く必要であることが多いため、多くの場合はこの計算で十分であるといえる。 In the first, second, and third embodiments, it was necessary to recalculate the reduction amount of the signal range each time the white balance changed, but the reduction amount of the signal range is calculated using only the G signal that is not affected by the white balance. There is no need to recalculate because it can be done. Further, since the signal range of the G signal is often required to be the largest, it can be said that this calculation is sufficient in many cases.

第1、第3の実施形態ではS/N比を向上させる処理として露光量を増加させる方法と撮像部105のゲイン補正部1052を用いる方法をそれぞれ説明したが、どちらの方法がよいかはユーザの用途などにより異なると考えられる。また、自動で変更されることが不都合な場合や被写体によっては入力される3DLUTデータによらずゲイン補正部1052の増幅率を固定にしたい場合もあると考えられる。そのため、これらをユーザが選択可能とし、その選択結果に従ってどのように動作するかを決定するという形態をとってもよい。また、自動でS/N比向上処理が動作した際にその旨をユーザに通知する形態も考えられる。 In the first and third embodiments, a method of increasing the exposure amount and a method of using the gain correction unit 1052 of the imaging unit 105 have been described as processes for improving the S / N ratio, but the user can decide which method is better. It is considered that it differs depending on the application of. Further, it is considered that there are cases where it is inconvenient to change automatically, or there are cases where it is desired to fix the amplification factor of the gain correction unit 1052 regardless of the input 3DLUT data depending on the subject. Therefore, it is possible to take the form of making these selectable by the user and determining how to operate according to the selection result. Further, when the S / N ratio improvement process is automatically operated, a form of notifying the user to that effect is also conceivable.

その他、3DLUTデータではなく1DLUT(1次元ルックアップテーブル)データやCDL(Color Decision List)などの特性を読み込むことができる場合でも同様の考え方により第1乃至3の実施形態にある処理を実行してよい。 In addition, even when it is possible to read characteristics such as 1DLUT (one-dimensional lookup table) data and CDL (Color Decision List) instead of 3DLUT data, the processing in the first to third embodiments is executed based on the same idea. Good.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。 Although the present invention has been described in detail based on the preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various embodiments within the scope of the gist of the present invention are also included in the present invention. included. Some of the above-described embodiments may be combined as appropriate.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiment is supplied to the system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads the program. This is the process to be executed.

Claims (12)

被写体を撮像し第1の色信号を出力する出力手段と、
前記第1の色信号に処理を施し第2の色信号を生成する第1の信号処理手段と、
前記第2の色信号を第3の色信号に変換する変換特性を入力する入力手段と、
前記変換特性に基づき第2の色信号を第3の色信号に変換し出力する第2の信号処理手段と、
前記入力手段により入力された変換特性を用いて前記第3の色信号を生成するのに必要な前記第1の色信号の所要信号範囲を特定する特定手段と、
前記特定手段により特定された前記所要信号範囲が第1の色信号の所定の信号範囲よりも小さい場合、前記所要信号範囲の信号が前記所定の信号範囲の上限値を超えない範囲で第1の色信号を増加させる信号増加手段と、
前記信号増加手段による前記第1の色信号の増加に伴う前記第3の色信号の信号レベルの変化を補償するよう、前記第1の信号処理手段と前記第2の信号処理手段のうちの少なくとも1つを制御して信号レベルを補償する補償手段とを有することを特徴とする撮像装置。
An output means that captures the subject and outputs the first color signal,
A first signal processing means that processes the first color signal to generate a second color signal, and
An input means for inputting a conversion characteristic for converting the second color signal into a third color signal, and
A second signal processing means that converts and outputs a second color signal into a third color signal based on the conversion characteristics, and
A specific means for specifying a required signal range of the first color signal required to generate the third color signal using the conversion characteristics input by the input means, and a specific means.
When the required signal range specified by the specific means is smaller than the predetermined signal range of the first color signal, the first signal in the required signal range does not exceed the upper limit value of the predetermined signal range. Signal increasing means to increase the color signal,
At least one of the first signal processing means and the second signal processing means so as to compensate for the change in the signal level of the third color signal due to the increase of the first color signal by the signal increasing means. An image pickup apparatus comprising: a compensating means for controlling one to compensate for a signal level.
前記所要信号範囲の信号が前記所定の信号範囲の上限値を超えない範囲で前記撮像における露光量を増加させる露光量制御手段を備え、
前記信号増加手段は前記露光量制御手段によって前記第1の色信号を増加させることを特徴とする請求項1に記載の撮像装置。
An exposure amount control means for increasing the exposure amount in the imaging within a range in which the signal in the required signal range does not exceed the upper limit value of the predetermined signal range is provided.
The imaging device according to claim 1, wherein the signal increasing means increases the first color signal by the exposure amount controlling means.
前記出力手段は前記第1の色信号を増幅する信号増幅手段を備え、
前記信号増加手段は前記信号増幅手段によって前記第1の色信号を増加させることを特徴とする請求項1に記載の撮像装置。
The output means includes a signal amplification means for amplifying the first color signal.
The imaging device according to claim 1, wherein the signal increasing means increases the first color signal by the signal amplifying means.
前記補償手段による信号レベルの補償は、前記第1の色信号を増加させた後の第3の色信号の信号レベルが、前記第1の色信号を増加させる前の第3の色信号の信号レベルに近付けるよう、前記第1の信号処理手段と前記第2の信号処理手段のうちの少なくともいずれか1つを制御することを特徴とする請求項1乃至3に記載の撮像装置。 In the compensation of the signal level by the compensating means, the signal level of the third color signal after increasing the first color signal is the signal of the third color signal before increasing the first color signal. The imaging apparatus according to claim 1 to 3, wherein at least one of the first signal processing means and the second signal processing means is controlled so as to approach the level. 前記補償手段による信号レベルの補償は、少なくとも前記第1の信号処理手段を制御することにより行い、
前記第1の信号処理手段はゲイン、階調変換、ルックアップテーブル、マトリクス演算の少なくとも1つ以上を用いて信号処理を行うことを特徴とする請求項4に記載の撮像装置。
Compensation of the signal level by the compensating means is performed by controlling at least the first signal processing means.
The imaging device according to claim 4, wherein the first signal processing means performs signal processing using at least one or more of gain, gradation conversion, look-up table, and matrix calculation.
前記補償手段は、前記第2の信号処理手段に入力された変換特性を変更するよう制御することで、前記信号レベルの補償を行うことを特徴とする請求項4に記載の撮像装置。 The imaging device according to claim 4, wherein the compensation means compensates for the signal level by controlling the conversion characteristics input to the second signal processing means to be changed. 前記特定手段により特定された前記所要信号範囲が第1の色信号の所定の信号範囲よりも小さい場合、前記露光量を増加させることが可能であることを通知する通知手段をさらに有する請求項1乃至6のいずれか1項に記載の撮像装置。 Claim 1 further includes a notification means for notifying that the exposure amount can be increased when the required signal range specified by the specific means is smaller than a predetermined signal range of the first color signal. 6. The imaging apparatus according to any one of 6. 前記通知手段はさらに、前記露光量を増加させるかをユーザに選択させるための通知を行い、
前記露光量を増加させる選択を受け付けた場合、前記露出制御手段による露光量の増加および前記補償手段による前記信号レベルの補償を行うことを特徴とする請求項7に記載の撮像装置。
The notification means further notifies the user to select whether to increase the exposure amount.
The imaging apparatus according to claim 7, wherein when the selection to increase the exposure amount is accepted, the exposure amount is increased by the exposure control means and the signal level is compensated by the compensation means.
前記補償手段により前記信号レベルの補償が行われた場合、前記信号レベルの補償が行われたことを通知する通知手段をさらに有する請求項1乃至8のいずれか1項に記載の撮像装置。 The imaging apparatus according to any one of claims 1 to 8, further comprising a notification means for notifying that the signal level compensation has been performed by the compensation means. 前記変換特性は、ユーザの操作に基づき任意に生成されるルックアップテーブルであることを特徴とする請求項1乃至9のいずれか1項に記載の撮像装置。 The imaging device according to any one of claims 1 to 9, wherein the conversion characteristic is a lookup table arbitrarily generated based on a user operation. 撮像装置の制御方法であって、
被写体を撮像し第1の色信号を出力する出力工程と、
前記第1の色信号に処理を施し第2の色信号を生成する第1の信号処理工程と、
前記第2の色信号を第3の色信号に変換する変換特性を入力する入力工程と、
前記変換特性に基づき第2の色信号を第3の色信号に変換し出力する第2の信号処理工程と、
前記入力工程で入力された変換特性を用いて前記第3の色信号を生成するのに必要な前記第1の色信号の所要信号範囲を特定する特定工程と、
前記特定工程で特定された前記所要信号範囲が第1の色信号の所定の信号範囲よりも小さい場合、前記所要信号範囲の信号が前記所定の信号範囲の上限値を超えない範囲で前記第1の色信号を増加させる信号増加工程と、を有し、
前記信号増加工程での前記第1の色信号の増加に伴う前記第3の色信号の信号レベルの変化を補償するよう、前記第1の信号処理工程と前記第2の信号処理工程のうちの少なくとも1つで信号レベルを補償することを有することを特徴とする撮像装置の制御方法。
It is a control method of the image pickup device.
An output process that captures the subject and outputs the first color signal,
A first signal processing step of processing the first color signal to generate a second color signal, and
An input step of inputting a conversion characteristic for converting the second color signal into a third color signal, and
A second signal processing step of converting a second color signal into a third color signal and outputting it based on the conversion characteristics, and
A specific step of specifying a required signal range of the first color signal required to generate the third color signal using the conversion characteristics input in the input step, and a specific step of specifying the required signal range of the first color signal.
When the required signal range specified in the specific step is smaller than the predetermined signal range of the first color signal, the first is within a range in which the signal in the required signal range does not exceed the upper limit value of the predetermined signal range. Has a signal increasing step, which increases the color signal of
Of the first signal processing step and the second signal processing step, the change in the signal level of the third color signal due to the increase of the first color signal in the signal increasing step is compensated for. A method for controlling an imaging device, which comprises compensating for a signal level with at least one.
コンピュータを、請求項1乃至10のいずれか1項の撮像装置として機能させる、コンピュータが実行することが可能なプログラム。 A program that can be executed by a computer, which causes the computer to function as the imaging device according to any one of claims 1 to 10.
JP2020110784A 2019-06-27 2020-06-26 Imaging apparatus, control method thereof, and program Pending JP2021007218A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019120044 2019-06-27
JP2019120044 2019-06-27

Publications (1)

Publication Number Publication Date
JP2021007218A true JP2021007218A (en) 2021-01-21

Family

ID=74165468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020110784A Pending JP2021007218A (en) 2019-06-27 2020-06-26 Imaging apparatus, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP2021007218A (en)

Similar Documents

Publication Publication Date Title
JP4466261B2 (en) Imaging apparatus, brightness correction method, and program
JP4548355B2 (en) Movie playback apparatus and program thereof
JP2004128809A (en) Method and apparatus for image processing, and imaging device
JP6624889B2 (en) Video processing apparatus, video processing method, and video processing program
JP5873380B2 (en) Image processing apparatus and control method thereof
JP2018005069A (en) Display controller
JP2017212532A (en) Image processing apparatus
JP2008148180A (en) Imaging apparatus, image processing device and method, and computer program
JP2008131530A (en) Image pickup device, image processing apparatus and method, and computer program
JP6049425B2 (en) Imaging apparatus, image processing apparatus, and control method
JP2020136823A (en) Image processing device, imaging device, image processing method, control method for imaging device, and program
JP6883971B2 (en) Image processing equipment and image processing methods, programs, and storage media
JP6008716B2 (en) Imaging apparatus, image processing apparatus, image processing system, and control method
JP2003189211A (en) Picture output system and picture processor
US9413974B2 (en) Information processing apparatus, image sensing apparatus, control method, and recording medium for conversion processing
JP7240540B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
JP2004129065A (en) Digital camera
JP6765919B2 (en) Image processing device, its control method, program
JP2021007218A (en) Imaging apparatus, control method thereof, and program
JP2011244053A (en) Image processing apparatus, imaging apparatus, and image processing program
JP2017126920A (en) Imaging apparatus
JP2020048139A (en) Image processing system
US20240298094A1 (en) Image processing apparatus, method and storage medium
JP5975705B2 (en) Imaging apparatus and control method thereof, image processing apparatus, and method for image processing
JP2019016833A (en) Imaging apparatus, control method of the same, program, and storage medium