[go: up one dir, main page]

JP2021078051A - Image processing device and image control method, program, and storage medium - Google Patents

Image processing device and image control method, program, and storage medium Download PDF

Info

Publication number
JP2021078051A
JP2021078051A JP2019204881A JP2019204881A JP2021078051A JP 2021078051 A JP2021078051 A JP 2021078051A JP 2019204881 A JP2019204881 A JP 2019204881A JP 2019204881 A JP2019204881 A JP 2019204881A JP 2021078051 A JP2021078051 A JP 2021078051A
Authority
JP
Japan
Prior art keywords
reference value
image
exposure reference
gamma characteristic
shooting
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
JP2019204881A
Other languages
Japanese (ja)
Inventor
隆志 赤羽
Takashi Akaha
隆志 赤羽
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 JP2019204881A priority Critical patent/JP2021078051A/en
Publication of JP2021078051A publication Critical patent/JP2021078051A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

To make it possible to generate an image having appropriate lightness and gradation on a high brightness side when developing the image captured according to an exposure reference value of a gamma characteristic set at the time of photographing.SOLUTION: An image processing device includes: input means for inputting an image; setting means for acquiring an exposure reference value corresponding to a first gamma characteristic set at the time of photographing; selection means for acquiring an exposure reference value of a second gamma characteristic selected from a plurality of preset gamma characteristics; difference means for obtaining difference between the exposure reference value of the first gamma characteristic and the exposure reference value of the second gamma characteristic; and control means for changing the second gamma characteristic based on the difference so that lightness of the image is maintained.SELECTED DRAWING: Figure 2

Description

本発明は、RAW画像の現像処理技術に関する。 The present invention relates to a RAW image development processing technique.

近年、ハードウェアの性能が向上し、カメラで記録されたRAW動画をワークステーションやパーソナルコンピュータ(PC)などで現像するRAW動画ワークフローが活用されてきている。RAW動画ワークフローの活用により、カラーグレーディング時に画質劣化なく色、ホワイトバランス(WB)、コントラストを調整することができる。RAW動画ワークフローを活用するためには、素材性の高いRAW動画を撮影することが重要である。例えば、明暗差の大きいシーンでは、画像信号が飽和してしまったRAW動画をカラーグレーディングにより回復することは難しいため、明部を優先したアンダー露出でRAW動画を撮影する必要がある。 In recent years, the performance of hardware has improved, and a RAW video workflow for developing a RAW video recorded by a camera on a workstation, a personal computer (PC), or the like has been utilized. By utilizing the RAW video workflow, it is possible to adjust the color, white balance (WB), and contrast without degrading the image quality during color grading. In order to utilize the RAW video workflow, it is important to shoot RAW video with high materiality. For example, in a scene with a large difference in brightness, it is difficult to recover a RAW moving image in which the image signal is saturated by color grading, so it is necessary to shoot the RAW moving image with underexposure giving priority to the bright part.

この場合に課題となるのが撮影時のモニタリング画像の見えである。明部を優先したRAW動画に適正露出のRAW動画を前提としたガンマカーブを適用すると、露出アンダーの画像が現像されてしまう。これをカメラの背面モニタやHDMIなどで出力した外部モニタでモニタリングすると、被写体の判別が困難となり、撮影の利便性が損なわれてしまうため、RAW動画撮影時のモニタリング画像には、広いダイナミックレンジのガンマ特性が適している(非特許文献1)。 In this case, the problem is the appearance of the monitoring image at the time of shooting. If a gamma curve that presupposes a RAW movie with proper exposure is applied to a RAW movie that gives priority to bright areas, an underexposed image will be developed. If this is monitored on the rear monitor of the camera or an external monitor output by HDMI, etc., it will be difficult to identify the subject and the convenience of shooting will be impaired. Gamma characteristics are suitable (Non-Patent Document 1).

カラーグレーディング処理に用いられるNLEアプリケーションなども、ポストプロダクションを前提とした動画ワークフローで広く使われているLogワークフローを前提としている。そのため、RAW動画ワークフローのカラーグレーディング処理では、RAW動画がNLEアプリケーションに入力されると、まずLogカーブで現像された画像が表示され、ユーザはLogワークフローと同じ手順でカラーグレーディング処理を行っていくことになる。 NLE applications used for color grading processing are also premised on Log workflow, which is widely used in video workflows premised on post production. Therefore, in the color grading process of the RAW video workflow, when the RAW video is input to the NLE application, the image developed by the Log curve is first displayed, and the user performs the color grading process in the same procedure as the Log workflow. become.

White Paper:Canon−Log Cine Optoelectronic Transfer FunctionWhite Paper: Canon-Log Cine Optoelectronic Transfer Function Function

上記Logワークフローを前提としたカラーグレーディング処理は、Logワークフローの機材、知識および経験があることを前提としているため、例えば静止画を得意とするシネマトグラファーにとっては難しくなる。これに対し、RAW動画ワークフローのカラーグレーディング処理にRAW静止画の現像ワークフローを用いた新たなワークフローを構築することが考えられる。 The color grading process based on the Log workflow is premised on having the equipment, knowledge, and experience of the Log workflow, which makes it difficult for a cinematographer who is good at still images, for example. On the other hand, it is conceivable to construct a new workflow using the RAW still image development workflow for the color grading process of the RAW moving image workflow.

しかしながら、RAW静止画の現像ワークフローには、完成画像に近い階調特性のガンマカーブだけが備えられ、Logカーブのように後工程でのカラーグレーディング処理を前提としたものが存在しない。したがって、明部を優先した露出設定で撮影されたRAW動画を新たなワークフローに適用すると、完成画像とはかけ離れたアンダーな(暗い)画像が表示されてしまう。 However, the RAW still image development workflow is provided with only a gamma curve having a gradation characteristic close to that of the completed image, and there is no log curve that is premised on color grading processing in a subsequent process. Therefore, when a RAW movie shot with an exposure setting that prioritizes bright areas is applied to a new workflow, an under (dark) image far from the completed image is displayed.

本発明は、上記課題に鑑みてなされ、その目的は、撮影時に設定されたガンマ特性の露出基準値に合わせて撮影された画像を現像する場合に、適切な明るさと高輝度側の階調が保持された画像を生成できる技術を実現することである。 The present invention has been made in view of the above problems, and an object of the present invention is to obtain appropriate brightness and gradation on the high luminance side when developing an image taken according to an exposure reference value of gamma characteristics set at the time of shooting. It is to realize a technique capable of generating a retained image.

上記課題を解決し、目的を達成するために、本発明の画像処理装置は、画像を入力する入力手段と、撮影時に設定された第1のガンマ特性に応じた露出基準値を取得する設定手段と、予め決められた複数のガンマ特性から選択された第2のガンマ特性の露出基準値を取得する選択手段と、前記第1のガンマ特性の露出基準値と前記第2のガンマ特性の露出基準値の差分を求める差分手段と、前記画像の明るさが保持されるように、前記差分に基づいて前記第2のガンマ特性を変更する制御手段と、を有する。 In order to solve the above problems and achieve the object, the image processing apparatus of the present invention has an input means for inputting an image and a setting means for acquiring an exposure reference value according to a first gamma characteristic set at the time of shooting. A selection means for acquiring an exposure reference value of a second gamma characteristic selected from a plurality of predetermined gamma characteristics, an exposure reference value of the first gamma characteristic, and an exposure reference of the second gamma characteristic. It has a difference means for obtaining a difference between values, and a control means for changing the second gamma characteristic based on the difference so that the brightness of the image is maintained.

本発明によれば、撮影時に設定されたガンマ特性の露出基準値に合わせて撮影された画像を現像する場合に、適切な明るさと高輝度側の階調が保持された画像を生成できるようになる。 According to the present invention, when developing an image taken according to the exposure reference value of the gamma characteristic set at the time of shooting, it is possible to generate an image in which appropriate brightness and gradation on the high luminance side are maintained. Become.

実施形態1の撮像装置の構成を示すブロック図。The block diagram which shows the structure of the image pickup apparatus of Embodiment 1. 実施形態1の画像処理部の構成を示すブロック図。The block diagram which shows the structure of the image processing part of Embodiment 1. 実施形態1のガンマ生成部の構成を示すブロック図。The block diagram which shows the structure of the gamma generation part of Embodiment 1. 実施形態1の撮影時ガンマテーブルと現像時ガンマテーブルを例示する図。The figure which illustrates the gamma table at the time of photography and the gamma table at the time of development of Embodiment 1. 実施形態1、2のガンマ生成処理に用いるガンマ特性を例示する図。The figure which illustrates the gamma characteristic used for the gamma generation processing of Embodiments 1 and 2. 実施形態1のガンマ生成処理を示すフローチャート。The flowchart which shows the gamma generation processing of Embodiment 1.

以下、添付図面を参照して実施形態を詳しく説明する。なお、以下の実施形態は特許請求の範囲に係る発明を限定するものではない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the invention according to the claims. Although a plurality of features are described in the embodiment, not all of the plurality of features are essential to the invention, and the plurality of features may be arbitrarily combined. Further, in the attached drawings, the same or similar configurations are designated by the same reference numbers, and duplicate explanations are omitted.

[実施形態1]以下に、実施形態1について説明する。 [Embodiment 1] The first embodiment will be described below.

以下では、本実施形態の画像処理装置をパーソナルコンピュータ(PC)やワークステーション(WS)などの情報処理装置に適用し、デジタルカメラなどの撮像装置により撮像された画像データを処理する例を説明する。なお、本実施形態の画像処理装置は、これらに限らず、デジタルカメラなどの撮像装置、携帯電話やその一種であるスマートフォンなどの通信機器、タブレット端末やPDAなどの携帯型情報機器、スキャナなどの画像読取装置、プリンタなどの画像形成装置、その他の装置にも適用可能である。 Hereinafter, an example in which the image processing device of the present embodiment is applied to an information processing device such as a personal computer (PC) or a workstation (WS) to process image data captured by an imaging device such as a digital camera will be described. .. The image processing device of the present embodiment is not limited to these, and includes imaging devices such as digital cameras, communication devices such as mobile phones and smartphones which are one of them, portable information devices such as tablet terminals and PDAs, and scanners. It can also be applied to image readers, image forming devices such as printers, and other devices.

<撮像装置の構成>
まず、図1を参照して、本実施形態の撮像装置100の構成および機能について説明する。
<Configuration of imaging device>
First, the configuration and function of the image pickup apparatus 100 of the present embodiment will be described with reference to FIG.

光学系1は、ズームレンズやフォーカスレンズを含むレンズ群、絞り機能を備えるシャッターを含み、被写体像を撮像部2の撮像面上に結像する。 The optical system 1 includes a lens group including a zoom lens and a focus lens, and a shutter having an aperture function, and forms a subject image on an imaging surface of an imaging unit 2.

撮像部2は、被写体像を電気信号に変換するCCDやCMOSなどから構成される撮像素子を有する。撮像素子は、例えば、一般的な原色カラーフィルタを備える単板カラー撮像素子とする。原色カラーフィルタは、各々650nm、550nm、450nm近傍に透過主波長帯を持つ3種類の色フィルタからなり、各々R(赤)、G(緑)、B(青)の各バンドに対応する色プレーンを撮影する。単板カラー撮像素子は、色フィルタを画素ごとにモザイク状に空間的に配列し、各画素が単一の色プレーンにおける強度を得るので、撮像素子からは色モザイク画像が出力されることになる。 The image pickup unit 2 has an image pickup device composed of a CCD, CMOS, or the like that converts a subject image into an electric signal. The image sensor is, for example, a single-plate color image sensor provided with a general primary color filter. The primary color filters consist of three types of color filters having transmission main wavelength bands near 650 nm, 550 nm, and 450 nm, respectively, and color planes corresponding to the R (red), G (green), and B (blue) bands, respectively. To shoot. In the single-plate color image sensor, color filters are spatially arranged in a mosaic pattern for each pixel, and each pixel obtains the intensity in a single color plane. Therefore, a color mosaic image is output from the image sensor. ..

A/D変換部3は、撮像部2から出力されるアナログ画像信号をデジタル信号に変換し、ノイズ低減処理などを行って、デジタル信号からなる画像データを現像処理部4および出力部7に出力する。本実施形態では、14bitの画像データが画素ごとに生成される。 The A / D conversion unit 3 converts the analog image signal output from the imaging unit 2 into a digital signal, performs noise reduction processing, and outputs the image data composed of the digital signal to the development processing unit 4 and the output unit 7. To do. In this embodiment, 14-bit image data is generated for each pixel.

現像処理部4は、A/D変換部3から出力される画像データに対して、画素補間処理、輝度信号処理、および色信号処理などの現像処理を行う。本実施形態の現像処理により、R、G、Bの色空間から8bitの輝度(Y)データ、色差(U、V)データの色空間に変換され、YUVデータとして現像処理部4から出力されるものとする。本実施形態では、撮影画像をRAW画像で記録する場合を説明するが、記録形式がRAW画像であっても、撮像装置100の設定として「撮影時γ」を設定可能であるものとする。この撮影時γは、例えば撮影現場で撮影画像を確認するための表示用画像(撮影時モニタリング画像)を生成する際のパラメータとなる。現像処理部4は、撮影時モニタリング画像に適したパラメータでRAW画像を現像し、例えば表示部12に現像された画像を表示する。なお、本実施形態において、撮影時γとして設定可能なガンマ特性(γカーブ)の1つとして、ダイナミックレンジ(Dレンジ)が800%の所定のLog特性(以下、Logγ)が使用される。他の撮影時γとして、スタンダードγ、高輝度階調優先γも使用できる。これらの撮影時γは、例えばユーザ操作により選択される。特に断らない限り、本実施形態では撮影時γとしてLogγが設定されたものとして説明する。 The development processing unit 4 performs development processing such as pixel interpolation processing, luminance signal processing, and color signal processing on the image data output from the A / D conversion unit 3. By the development process of this embodiment, the color space of R, G, and B is converted into the color space of 8-bit luminance (Y) data and color difference (U, V) data, and is output from the development processing unit 4 as YUV data. It shall be. In the present embodiment, the case where the captured image is recorded as a RAW image will be described, but even if the recording format is a RAW image, it is possible to set “at the time of photographing γ” as the setting of the image pickup apparatus 100. This shooting γ is, for example, a parameter when generating a display image (shooting monitoring image) for confirming the shot image at the shooting site. The development processing unit 4 develops the RAW image with parameters suitable for the monitoring image at the time of shooting, and displays the developed image on the display unit 12, for example. In the present embodiment, as one of the gamma characteristics (γ curve) that can be set as γ at the time of photographing, a predetermined Log characteristic (hereinafter, Logγ) having a dynamic range (D range) of 800% is used. As other shooting γ, standard γ and high-luminance gradation priority γ can also be used. These shooting γs are selected by, for example, a user operation. Unless otherwise specified, in this embodiment, it is assumed that Logγ is set as γ at the time of photographing.

信号処理部6は、現像処理が行われた画像データに対して、リサイズ処理などを行い、出力部7に出力する。 The signal processing unit 6 performs resizing processing or the like on the developed image data and outputs the image data to the output unit 7.

メタデータ処理部5は、RAW画像に関するメタデータの処理を行う。メタデータは、撮影時γを一意に示す撮影時γIDなど、RAW画像撮影時の設定を示す情報である。メタデータ処理部5は、制御部10と連携してメタデータを生成し、出力部7に出力する。本実施形態では、Dレンジ800%のLogγを示す「5」という値が撮影時γIDとしてメタデータに記述される。撮影時γIDについては後述する。 The metadata processing unit 5 processes metadata related to RAW images. The metadata is information indicating a setting at the time of shooting a RAW image, such as a shooting γID that uniquely indicates the shooting γ. The metadata processing unit 5 generates metadata in cooperation with the control unit 10 and outputs the metadata to the output unit 7. In the present embodiment, a value of "5" indicating Logγ with a D range of 800% is described in the metadata as a γID at the time of photographing. The γID at the time of shooting will be described later.

出力部7は、HDMI(登録商標:High-Definition Multimedia Interface)などの通信インタフェースへの出力、半導体メモリカードなどの記録媒体への記録、表示部12への出力などの少なくともいずれかの処理を行う。本実施形態では、出力部7は、A/D変換部3から出力される画像データにメタデータ処理部5で生成されるメタデータを付加してRAW画像ファイルとして記録媒体に出力する。また、信号処理部6から出力される撮影時モニタリング画像を表示部12に出力する。 The output unit 7 performs at least one of output to a communication interface such as HDMI (registered trademark: High-Definition Multimedia Interface), recording to a recording medium such as a semiconductor memory card, and output to the display unit 12. .. In the present embodiment, the output unit 7 adds the metadata generated by the metadata processing unit 5 to the image data output from the A / D conversion unit 3 and outputs the RAW image file to the recording medium. Further, the shooting monitoring image output from the signal processing unit 6 is output to the display unit 12.

操作部9は、ユーザからの各種操作を受け付ける各種スイッチ、ボタン、タッチパネルなどの少なくともいずれかを含む。タッチパネルは表示部12に一体的に形成されている。操作部9は、ユーザ操作を受け付けると、操作信号を後述する制御部10に出力し、制御部10は操作信号に基づき各種の演算処理を行ったり、各部を制御したりする。 The operation unit 9 includes at least one of various switches, buttons, a touch panel, and the like that accept various operations from the user. The touch panel is integrally formed with the display unit 12. When the operation unit 9 receives a user operation, the operation unit 9 outputs an operation signal to a control unit 10 described later, and the control unit 10 performs various arithmetic processes based on the operation signal and controls each unit.

制御部10は、撮像装置100の全体を統括して制御するCPUやMPUを備え、後述するメモリ11に格納されたプログラムを実行することで、後述するフローチャートの処理を実現する。メモリ11には、制御部10の動作用の定数、変数、記録媒体などから読み出したプログラムが記憶される。また、メモリ11には、撮像装置100が処理を行う際に読み出される画像データ、絞り値、シャッタースピード、ISO感度、ホワイトバランスゲイン値、BT.709などの色域の設定などの撮影時情報のデータが記憶される。 The control unit 10 includes a CPU and an MPU that control the entire image pickup apparatus 100, and executes a program stored in the memory 11 described later to realize the processing of the flowchart described later. The memory 11 stores programs read from constants, variables, recording media, and the like for the operation of the control unit 10. Further, the memory 11 contains image data, an aperture value, a shutter speed, an ISO sensitivity, a white balance gain value, and a BT. Data of shooting information such as color gamut settings such as 709 is stored.

撮像装置100の各構成要素は、バス8により各種データおよび信号の授受が可能に接続される。 Each component of the image pickup apparatus 100 is connected by a bus 8 so that various data and signals can be exchanged.

<画像処理装置の構成>
次に、図2を参照して、本実施形態の画像処理装置200の構成および機能について説明する。画像処理装置200はRAW画像の現像を行う装置であり、現像、編集用のアプリケーションをインストールしたPC、ワークステーション、タブレットデバイスなどを用いることができる。
<Configuration of image processing device>
Next, the configuration and function of the image processing device 200 of the present embodiment will be described with reference to FIG. The image processing device 200 is a device that develops RAW images, and a PC, workstation, tablet device, or the like in which applications for developing and editing are installed can be used.

入力部20は、撮像装置100の出力部27からHDMI(登録商標)ケーブルなどを通じて出力されるRAW画像データの入力、記録媒体に記憶されているRAW画像ファイルの入力などの処理を行う。入力部20はRAW画像データをパース部21に出力する。本実施形態では半導体メモリカードからRAW画像ファイルが入力される。 The input unit 20 performs processing such as input of RAW image data output from the output unit 27 of the image pickup apparatus 100 through an HDMI (registered trademark) cable or the like, input of a RAW image file stored in a recording medium, and the like. The input unit 20 outputs RAW image data to the perspective unit 21. In this embodiment, a RAW image file is input from the semiconductor memory card.

パース部21は、入力部20から取得したRAW画像ファイルのデータ構造を解析し、RAW画像データとメタデータに記述された情報を取得する。パース部21は、RAW画像データを現像処理部24に出力する。パース部21は、メタデータに記述された情報のうち、撮影時γIDをγ生成部25に出力し、他の情報はメモリ31に記憶する。 The parse unit 21 analyzes the data structure of the RAW image file acquired from the input unit 20 and acquires the information described in the RAW image data and the metadata. The perspective unit 21 outputs RAW image data to the development processing unit 24. Of the information described in the metadata, the perspective unit 21 outputs the γID at the time of shooting to the γ generation unit 25, and stores other information in the memory 31.

γ生成部25は、RAW画像ファイルのメタデータに記述された情報や後述するメモリ31に予め記憶されている情報を用いて、RAW画像データを現像するためのγ特性を生成するγ生成処理を行い、生成された変更後γ特性を現像処理部24に出力する。この処理の詳細は後述する。 The γ generation unit 25 performs a γ generation process for generating γ characteristics for developing RAW image data by using the information described in the metadata of the RAW image file and the information stored in advance in the memory 31 described later. Then, the generated modified γ characteristic is output to the developing processing unit 24. The details of this process will be described later.

現像処理部24は、RAW画像データに対して、画素補間処理、輝度信号処理、および色信号処理などの現像処理を行う。本実施形態の現像処理により、R、G、Bの色空間から8bitの輝度(Y)データ、色差(U、V)データの色空間に変換され、YUVデータとして現像処理部24から出力されるものとする。 The development processing unit 24 performs development processing such as pixel interpolation processing, luminance signal processing, and color signal processing on the RAW image data. By the development processing of this embodiment, the color space of R, G, and B is converted into the color space of 8-bit luminance (Y) data and color difference (U, V) data, and is output from the development processing unit 24 as YUV data. It shall be.

信号処理部26は、現像処理が行われた画像データに対して、リサイズ処理などを行い、出力部27へ出力する。出力部27は、HDMI(登録商標)などの通信インタフェースへの出力、半導体メモリカードなどの記録媒体への記録、画像処理装置200の表示装置(図示せず)への出力などの少なくともいずれかの処理を行う。 The signal processing unit 26 performs resizing processing or the like on the developed image data and outputs the image data to the output unit 27. The output unit 27 is at least one of output to a communication interface such as HDMI (registered trademark), recording to a recording medium such as a semiconductor memory card, and output to a display device (not shown) of the image processing device 200. Perform processing.

操作部29は、ユーザからの各種操作を受け付ける各種スイッチ、ボタン、タッチパネルなどの少なくともいずれかを含む。タッチパネルは表示装置(図示せず)に一体的に形成されている。操作部29は、ユーザ操作を受け付けると、操作信号を後述する制御部30に出力し、制御部10は操作信号に基づき各種の演算処理を行ったり、各部を制御したりする。 The operation unit 29 includes at least one of various switches, buttons, a touch panel, and the like that accept various operations from the user. The touch panel is integrally formed with a display device (not shown). When the operation unit 29 receives the user operation, the operation unit 29 outputs an operation signal to the control unit 30, which will be described later, and the control unit 10 performs various arithmetic processes based on the operation signal and controls each unit.

制御部30は、画像処理装置200の全体を統括して制御するCPUやMPUを備え、後述するメモリ31に格納されたプログラムを実行することで、後述するフローチャートの処理を実現する。メモリ31には、制御部30の動作用の定数、変数、記録媒体などから読み出したプログラムが記憶される。また、メモリ31には、画像処理装置200が処理を行う際に読み出される画像データ、絞り値、シャッタースピード、ISO感度、ホワイトバランスゲイン値、BT.709などの色域の設定などの撮影時情報のデータが記憶される。 The control unit 30 includes a CPU and an MPU that control the entire image processing device 200, and executes a program stored in the memory 31 described later to realize the processing of the flowchart described later. The memory 31 stores programs read from constants, variables, recording media, and the like for the operation of the control unit 30. Further, in the memory 31, the image data, the aperture value, the shutter speed, the ISO sensitivity, the white balance gain value, and the BT. Data of shooting information such as color gamut settings such as 709 is stored.

画像処理装置200の各構成要素は、バス28により各種データおよび信号の授受が可能に接続される。 Each component of the image processing device 200 is connected by a bus 28 so that various data and signals can be exchanged.

<γ生成処理>
次に、図3を参照して、画像処理装置200の構成および機能、並びにγ生成処理について説明する。
<Γ generation process>
Next, with reference to FIG. 3, the configuration and function of the image processing apparatus 200 and the γ generation processing will be described.

本実施形態の画像処理装置200は、RAW静止画の現像ワークフローを用いてRAW画像を現像する機能を有する。したがって、メモリ31には完成画像に近い階調特性のγ特性だけが保持され、Logγのように後工程でのカラーグレーディング処理を前提とした露出基準値の低いγ特性は保持されていないものとする。 The image processing device 200 of the present embodiment has a function of developing a RAW image by using a RAW still image development workflow. Therefore, it is assumed that only the γ characteristic of the gradation characteristic close to the completed image is retained in the memory 31, and the γ characteristic having a low exposure reference value premised on the color grading process in the subsequent process is not retained unlike Logγ. To do.

図5(a)は撮影時γ特性と露出基準値の関係を例示している。501は、Dレンジ800%のLogγの入出力特性である。入力値502は、14bitデジタル画像信号(0−16383)における信号値300である。ここで本実施形態のLogγ501には、信号値300(14bit)という露出基準値が定義されている。これは、反射率18%の被写体が信号値300となるよう撮影時の露出が制御されるという意味である。したがって、撮影時γとしてLogγ501が設定されている状態で撮影が行われた場合、反射率18%の被写体が信号値300となるような露出で撮影が行われる。またLogγ501では、入力値502に対応する出力値503は8bitデジタル画像信号において信号値88となる。これが撮影時モニタリング画像として表示部12に出力される。 FIG. 5A illustrates the relationship between the γ characteristic at the time of photographing and the exposure reference value. 501 is an input / output characteristic of Logγ having a D range of 800%. The input value 502 is a signal value 300 in the 14-bit digital image signal (0-16383). Here, in Logγ501 of the present embodiment, an exposure reference value of a signal value of 300 (14 bits) is defined. This means that the exposure at the time of shooting is controlled so that the subject having a reflectance of 18% has a signal value of 300. Therefore, when shooting is performed with Logγ501 set as γ at the time of shooting, shooting is performed with an exposure such that a subject having a reflectance of 18% has a signal value of 300. Further, in Logγ501, the output value 503 corresponding to the input value 502 becomes a signal value 88 in the 8-bit digital image signal. This is output to the display unit 12 as a monitoring image at the time of shooting.

図3の説明に戻る。γ生成部25は、露出を撮影時γの露出基準値に合わせて撮影されたRAW画像を、それより露出基準値が高い階調特性のγ特性で現像する場合、適切な明るさと高輝度側の階調が保持された画像を生成するために現像時γ特性を変更する機能を有する。 Returning to the description of FIG. When the γ generation unit 25 develops a RAW image taken by adjusting the exposure to the exposure reference value of γ at the time of shooting with the γ characteristic of the gradation characteristic having a higher exposure reference value, the γ generation unit 25 has an appropriate brightness and a high brightness side. It has a function of changing the γ characteristic at the time of development in order to generate an image in which the gradation of is maintained.

露出基準値設定部301は、パース部21から取得した撮影時γIDとメモリ11から読み出した撮影時γテーブル305を用いて、撮影時γ露出基準値を設定する。図4(a)は撮影時γテーブル305を例示している。撮影時γテーブル305は、撮影時γ特性を特定するための撮影時設定、撮影時γ特性を一意に特定できるγID、γ名称、γ特性が定義する露出基準値が対応付けられて登録されている。本実施形態では、撮影時γを特定する撮影時設定として、Logγを使用するモードが設定されたか否かを示すフラグ、高輝度側・階調優先モードが設定されたか否かを示すフラグ、撮影時のISO感度が対応付けられて登録されている。 The exposure reference value setting unit 301 sets the shooting γ exposure reference value by using the shooting γ ID acquired from the perspective unit 21 and the shooting γ table 305 read from the memory 11. FIG. 4A illustrates the γ table 305 at the time of photographing. The shooting γ table 305 is registered in association with the shooting setting for specifying the shooting γ characteristic, the γID that can uniquely specify the shooting γ characteristic, the γ name, and the exposure reference value defined by the γ characteristic. There is. In the present embodiment, as a shooting setting for specifying the shooting γ, a flag indicating whether or not a mode using Logγ is set, a flag indicating whether or not the high-brightness side / gradation priority mode is set, and shooting The ISO sensitivity of the time is associated and registered.

露出基準値設定部301は、撮影時γテーブル305を探索し、パース部21から取得した撮影時γIDに該当する露出基準値を撮影時γ露出基準値に設定し、γ選択部302および差分部303に出力する。なお、露出基準値設定部301は、撮影時γIDを用いず、撮影時γ特性を特定するための撮影時設定を用いて撮影時γ特性を特定し、対応する露出基準値を撮影時γ露出基準値として設定するようにしてもよい。 The exposure reference value setting unit 301 searches the shooting γ table 305, sets the exposure reference value corresponding to the shooting γID acquired from the perspective unit 21 to the shooting γ exposure reference value, and sets the γ selection unit 302 and the difference unit. Output to 303. The exposure reference value setting unit 301 does not use the shooting γID, but uses the shooting setting for specifying the shooting γ characteristic to specify the shooting γ characteristic, and sets the corresponding exposure reference value to the shooting γ exposure. It may be set as a reference value.

γ選択部302は、露出基準値設定部301から出力された撮影時γ露出基準値とメモリ11から読み出した現像時γテーブル306を用いて、現像時γIDを選択・設定する。ここでどの現像時γを選択するかの基準については図6を用いて後述する。図4(b)は現像時γテーブル306を例示している。現像時γテーブル306は、現像時γ特性を一意に特定できるγID、γ名称、γ特性が定義する露出基準値が対応付けられて登録されている。本実施形態では、例えば、画像処理装置200にスタンダードγと高輝度側階調優先γの2種類の現像時γ特性が用意され、現像時γテーブルにも2種類のγ特性に関する情報が登録されている。 The γ selection unit 302 selects and sets the development γ ID using the shooting γ exposure reference value output from the exposure reference value setting unit 301 and the development γ table 306 read from the memory 11. Here, the criteria for selecting which developing γ is selected will be described later with reference to FIG. FIG. 4B illustrates the γ table 306 during development. In the developing γ table 306, the γID, the γ name, and the exposure reference value defined by the γ characteristic, which can uniquely identify the developing γ characteristic, are registered in association with each other. In the present embodiment, for example, the image processing apparatus 200 is provided with two types of γ characteristics during development, standard γ and high-luminance side gradation priority γ, and information on the two types of γ characteristics is also registered in the γ table during development. ing.

図5(b)は現像時γ特性と露出基準値の関係を例示している。スタンダードγ504の特性はγ2.2の特性に近く、SDR(Standard Dynamic Range)モニタやプリント出力で鑑賞することを目的とした画像に適している。入力値505は、例えば14bitデジタル画像信号における信号値1200である。信号値1200は図4に示す通りスタンダードγ特性504が定義する露出基準値であるため、撮影時には反射率18%の被写体がこの値となるよう露出が制御されることになる。この場合、反射率18%入力値505に対応する出力値508は8bitデジタル画像信号において信号値123となる。また、高輝度側階調優先γ506は、スタンダードγの半分の大きさのデジタル信号が入力されると露出基準値以下の入力がスタンダードγと同じ出力となり、露出基準値より大きな信号はスタンダードγより強いニー特性が掛けられて明部の階調が伸びる特性を持つ。入力値507は、例えば14bitデジタル画像信号における信号値600である。この値が高輝度側階調優先γの露出基準値であるため、反射率反射率18%の被写体がこの値となる。反射率18%入力値507に対応する出力値508はスタンダードγと同じ値である。ここでγ選択部302は、選択した現像時γ露出基準値を差分部303に出力する。 FIG. 5B illustrates the relationship between the γ characteristic during development and the exposure reference value. The characteristics of the standard γ504 are close to those of γ2.2, and are suitable for images intended for viewing on an SDR (Standard Dynamic Range) monitor or print output. The input value 505 is, for example, a signal value 1200 in a 14-bit digital image signal. Since the signal value 1200 is an exposure reference value defined by the standard γ characteristic 504 as shown in FIG. 4, the exposure is controlled so that a subject having a reflectance of 18% has this value at the time of shooting. In this case, the output value 508 corresponding to the reflectance 18% input value 505 becomes the signal value 123 in the 8-bit digital image signal. Further, in the high-luminance side gradation priority γ506, when a digital signal having a size half the size of the standard γ is input, the input below the exposure reference value becomes the same output as the standard γ, and the signal larger than the exposure reference value is more than the standard γ. It has a characteristic that the gradation of the bright part is extended by applying a strong knee characteristic. The input value 507 is, for example, a signal value 600 in a 14-bit digital image signal. Since this value is the exposure reference value of the high-luminance side gradation priority γ, this value is used for a subject having a reflectance of 18%. The output value 508 corresponding to the reflectance 18% input value 507 is the same value as the standard γ. Here, the γ selection unit 302 outputs the selected development γ exposure reference value to the difference unit 303.

差分部303は、露出基準値設定部301から出力された撮影時γ露出基準値と、γ選択部302から出力された現像時γ露出基準値との差分値を求め、明るさ制御部304に出力する。 The difference unit 303 obtains the difference value between the shooting γ exposure reference value output from the exposure reference value setting unit 301 and the developing γ exposure reference value output from the γ selection unit 302, and causes the brightness control unit 304 to obtain the difference value. Output.

明るさ制御部304は、差分部303から出力された露出基準値の差分値、γ選択部302により設定された現像時γID、メモリ11から読み出した現像時γテーブル306、並びにメモリ11から読み出したγ特性テーブル307を用いて、入力画像の明るさを制御する。本実施形態では、明るさ制御部304は、例えばγ選択部302で設定された現像時γ特性を変更する。明るさ制御部304は、変更後γ特性を現像処理部24に出力する。 The brightness control unit 304 reads from the difference value of the exposure reference value output from the difference unit 303, the developing γ ID set by the γ selection unit 302, the developing γ table 306 read from the memory 11, and the memory 11. The brightness of the input image is controlled by using the γ characteristic table 307. In the present embodiment, the brightness control unit 304 changes the developing γ characteristics set by, for example, the γ selection unit 302. The brightness control unit 304 outputs the changed γ characteristic to the development processing unit 24.

<γ生成処理>
次に、図6を参照して、本実施形態のγ生成部25によるγ生成処理について説明する。
<Γ generation process>
Next, the γ generation process by the γ generation unit 25 of the present embodiment will be described with reference to FIG.

なお、図6の処理は、画像処理装置200の制御部30がプログラムを実行し、γ生成部25を制御することにより実現される。 The process of FIG. 6 is realized by the control unit 30 of the image processing device 200 executing the program and controlling the γ generation unit 25.

S601では、露出基準値設定部301が、パース部21から出力された撮影時γIDを取得する。本実施形態の撮影時γIDは撮像装置100において設定された5であるものとする。 In S601, the exposure reference value setting unit 301 acquires the shooting γID output from the perspective unit 21. It is assumed that the γID at the time of photographing of this embodiment is 5 set in the image pickup apparatus 100.

S602では、露出基準値設定部301が、メモリ11から読み出した撮影時γテーブル305を参照し、撮影時γIDに対応する撮影時γ露出基準値を求める。本実施形態では撮影時γIDが「5」であり、図4(a)から撮影時γIDが「5」に対応する撮影時γ露出基準値は300となる。露出基準値設定部301は、撮影時γ露出基準値をγ選択部302および差分部303に出力する。 In S602, the exposure reference value setting unit 301 refers to the shooting γ table 305 read from the memory 11 and obtains the shooting γ exposure reference value corresponding to the shooting γ ID. In the present embodiment, the shooting γID is “5”, and from FIG. 4A, the shooting γ exposure reference value corresponding to the shooting γID “5” is 300. The exposure reference value setting unit 301 outputs the γ exposure reference value at the time of shooting to the γ selection unit 302 and the difference unit 303.

S603では、γ選択部302が、メモリ11から読み出した現像時γテーブル306の露出基準値を参照し、撮影時γ露出基準値以上かつ撮影時γ露出基準値に最も近い現像時γ露出基準値を探索する。本実施形態では、撮影時γ露出基準値が300であり、図4(b)の現像時γテーブルに記載されている露出基準値はスタンダードγの1200と高輝度側階調優先γの600である。いずれも撮影時γ露出基準値以上という条件を満たすが、後述するS606において撮影時γ露出基準値と現像時γ露出基準値の差分に応じてγ特性が変更される。このため、現像時γ露出基準値が撮影時γ露出基準値に近いほど、メモリ11から読み出すγ特性の変更量を抑えることができる。本実施形態では、ホワイトポイントとミッドポイントを併せて変更することによって現像時γ特性を変更するため、現像時γ特性の変更量が大きいほど、出力信号が8bitの上限である信号値255に早く突き当たるγ特性となってしまう。したがって、本実施形態では、撮影時γ露出基準値により近い高輝度側階調優先γの600が選択され、現像時γ露出基準値に設定される。 In S603, the γ selection unit 302 refers to the exposure reference value of the developing γ table 306 read from the memory 11, and is equal to or higher than the shooting γ exposure reference value and closest to the shooting γ exposure reference value. To explore. In the present embodiment, the γ exposure reference value at the time of shooting is 300, and the exposure reference value described in the γ table at the time of development in FIG. 4B is 1200 of the standard γ and 600 of the gradation priority γ on the high luminance side. is there. All of them satisfy the condition of being equal to or higher than the γ exposure reference value at the time of shooting, but in S606 described later, the γ characteristic is changed according to the difference between the γ exposure reference value at the time of shooting and the γ exposure reference value at the time of development. Therefore, the closer the γ-exposure reference value during development is to the γ-exposure reference value during shooting, the more the amount of change in the γ characteristic read from the memory 11 can be suppressed. In the present embodiment, since the γ characteristics during development are changed by changing the white point and the midpoint together, the larger the amount of change in the γ characteristics during development, the faster the output signal reaches the signal value 255, which is the upper limit of 8 bits. It becomes the γ characteristic that hits. Therefore, in the present embodiment, 600 of the high-luminance side gradation priority γ, which is closer to the γ exposure reference value at the time of shooting, is selected and set as the γ exposure reference value at the time of development.

S604では、γ選択部302が、現像時γテーブル306の露出基準値を参照し、現像時γ露出基準値に対応するγIDを選択する。本実施形態では、現像時γ露出基準値が600であり、それに対応する現像時γIDとして「2」が選択される。γ選択部302は、現像時γIDを明るさ制御部304に出力し、現像時γ露出基準値を差分部303に出力する。 In S604, the γ selection unit 302 refers to the exposure reference value of the γ table 306 during development and selects the γID corresponding to the γ exposure reference value during development. In the present embodiment, the development γ exposure reference value is 600, and “2” is selected as the corresponding development γ ID. The γ selection unit 302 outputs the γID during development to the brightness control unit 304, and outputs the γ exposure reference value during development to the difference unit 303.

S605では、差分部303が、露出基準値設定部301から出力された撮影時γ露出基準値とγ選択部302から出力された現像時γ露出基準値の差分値を求める。本実施形態における露出基準値の差分値は300となる。差分部303は露出基準値の差分値を明るさ制御部304に出力し、S606に進む。 In S605, the difference unit 303 obtains the difference value between the shooting γ exposure reference value output from the exposure reference value setting unit 301 and the developing γ exposure reference value output from the γ selection unit 302. The difference value of the exposure reference value in this embodiment is 300. The difference unit 303 outputs the difference value of the exposure reference value to the brightness control unit 304, and proceeds to S606.

S606では、明るさ制御部304が、差分部303から出力された撮影時γ露出基準値と現像時γ露出基準値との差分値に応じて、γ選択部302が選択した現像時γ特性を変更する。 In S606, the brightness control unit 304 determines the developing γ characteristic selected by the γ selection unit 302 according to the difference value between the shooting γ exposure reference value and the developing γ exposure reference value output from the difference unit 303. change.

図5(c)は、本実施形態における現像時γ特性と変更後γ特性の関係を例示している。明るさ制御部304は、メモリ11からγ特性テーブル307を読み出し、γ選択部302が設定した現像時γIDにしたがって、現像時γ特性として高輝度側階調優先γ506を設定する。しかし、高輝度側階調優先γ506の特性は、撮影時γ露出基準値502に対応する出力値509が信号値73となるため、適正露出よりもアンダーな画像が出力されてしまう。そこで、明るさ制御部304は、撮影時γ露出基準値と現像時γ露出基準値の差分だけ、現像時γ特性のホワイトポイントとミッドポイントを変更する。 FIG. 5C illustrates the relationship between the developed γ characteristic and the changed γ characteristic in the present embodiment. The brightness control unit 304 reads the γ characteristic table 307 from the memory 11 and sets the high-luminance side gradation priority γ506 as the development γ characteristic according to the development γID set by the γ selection unit 302. However, as for the characteristic of the high-luminance side gradation priority γ506, since the output value 509 corresponding to the γ exposure reference value 502 at the time of shooting becomes the signal value 73, an image underexposed than the proper exposure is output. Therefore, the brightness control unit 304 changes the white point and the midpoint of the γ characteristic during development by the difference between the γ exposure reference value during shooting and the γ exposure reference value during development.

変更後γ510の特性は、撮影時γ露出基準値502に対応する出力値508が信号値123となり、適正露出の画像を出力することができる。明るさ制御部304は、変更後γ特性を現像処理部24に出力する。ここで、現像時γのホワイトポイントとミッドポイントを変更することは、デジタルゲインを掛けることと等価である。本実施形態では、例えば、入力画像に1段分のデジタルゲインをかけた上で現像時γ特性を適用すれば適切な明るさが得られる。したがって、明るさ制御部304は、変更後γ特性の代わりに、デジタルゲイン量と現像時γ特性を現像処理部24に出力してもよい。 As for the characteristics of the changed γ510, the output value 508 corresponding to the γ exposure reference value 502 at the time of shooting becomes the signal value 123, and an image with proper exposure can be output. The brightness control unit 304 outputs the changed γ characteristic to the development processing unit 24. Here, changing the white point and midpoint of γ during development is equivalent to multiplying by digital gain. In the present embodiment, for example, an appropriate brightness can be obtained by applying the digital gain for one step to the input image and then applying the γ characteristic at the time of development. Therefore, the brightness control unit 304 may output the digital gain amount and the developing γ characteristic to the developing processing unit 24 instead of the changed γ characteristic.

なお、S603において、γ選択部302は、露出基準値の低いγ特性を固定的に選択することはできない。例えば、明部と暗部の差が少なくダイナミックレンジが狭いシーンでは、暗部S/Nを重視するために撮影時γ露出基準値の高いRAW画像が撮影される場合がある。 In S603, the γ selection unit 302 cannot fixedly select the γ characteristic having a low exposure reference value. For example, in a scene where the difference between the bright part and the dark part is small and the dynamic range is narrow, a RAW image having a high γ exposure reference value at the time of shooting may be taken in order to emphasize the dark part S / N.

本実施形態では、例えば、撮像装置100のISO感度を400から100に下げると、現像時のゲインアップ量を2段分減らすことができ、撮影時γ露出基準値は300から1200に上がる。この場合、撮影時γは露出基準値が1200のスタンダードγまたはDレンジ200%のLogγが用いられ、撮像装置100はこれらのγ特性を示す撮影時γIDをRAW画像ファイルに記録する。このRAW画像ファイルを受け取った画像処理装置200では、上述したS601とS602によって撮影時γ露出基準値が1200となる。γ選択部302は撮影時γ露出基準値以上という条件にしたがって、メモリ11から読み出した現像時γテーブル306からスタンダードγの露出基準値1200を選択し、現像時γ露出基準値に設定する。 In the present embodiment, for example, if the ISO sensitivity of the image pickup apparatus 100 is lowered from 400 to 100, the gain increase amount during development can be reduced by two steps, and the γ exposure reference value at the time of photographing is raised from 300 to 1200. In this case, a standard γ having an exposure reference value of 1200 or a Log γ having a D range of 200% is used as the shooting γ, and the imaging device 100 records a shooting γ ID showing these γ characteristics in a RAW image file. In the image processing apparatus 200 that has received this RAW image file, the γ exposure reference value at the time of shooting is set to 1200 by the above-mentioned S601 and S602. The γ selection unit 302 selects the standard γ exposure reference value 1200 from the developing γ table 306 read from the memory 11 and sets it as the developing γ exposure reference value according to the condition that it is equal to or higher than the shooting γ exposure reference value.

実施形態1によれば、露出を撮影時γ露出基準値に合わせて撮影されたRAW画像を現像する処理において、撮影時γ特性より露出基準値が高い階調特性のγ特性で現像する場合、まず撮影時γ特性と現像時γ特性の露出基準値の差分を求める。そして、差分が最小となる現像時γ特性を選択すると共に、差分に応じて現像時γ特性のホワイトポイントとミッドポイントを変更する。これにより、適切な明るさと高輝度側の階調が保持された画像を生成することができる。 According to the first embodiment, in the process of developing a RAW image taken by adjusting the exposure to the γ exposure reference value at the time of shooting, when developing with the γ characteristic of the gradation characteristic whose exposure reference value is higher than the γ characteristic at the time of shooting, First, the difference between the exposure reference value of the γ characteristic at the time of shooting and the γ characteristic at the time of development is obtained. Then, the developing γ characteristic that minimizes the difference is selected, and the white point and the midpoint of the developing γ characteristic are changed according to the difference. As a result, it is possible to generate an image in which appropriate brightness and gradation on the high luminance side are maintained.

[実施形態2]
実施形態1では、明るさ制御部304が現像時γ特性のホワイトポイントとミッドポイントを変更する例を説明した。これに対して、実施形態2では、明るさ制御部304が現像時γ特性のホワイトポイントを維持したままミッドポイントのみを変更する例を説明する。なお、実施形態2を実現する画像処理回路の構成は、実施形態1と同様である。
[Embodiment 2]
In the first embodiment, an example in which the brightness control unit 304 changes the white point and the mid point of the γ characteristic at the time of development has been described. On the other hand, in the second embodiment, an example will be described in which the brightness control unit 304 changes only the midpoint while maintaining the white point of the γ characteristic during development. The configuration of the image processing circuit that realizes the second embodiment is the same as that of the first embodiment.

図6は、本実施形態のγ生成部25のγ生成処理を示すフローチャートである。本実施形態では、明るさ制御部304が現像時γ特性のホワイトポイントを維持したままミッドポイントのみを変更するため、現像時γ特性の変更量が大きいほど得られる色再現性が設計時とずれてしまい、色曲がりやトーンジャンプなどが発生する可能性が高くなる。したがって、S603において、γ選択部302は撮影時γ露出基準値により近い高輝度側階調優先γの600を選択し、現像時γ特性露出基準値に設定する。 FIG. 6 is a flowchart showing the γ generation process of the γ generation unit 25 of the present embodiment. In the present embodiment, since the brightness control unit 304 changes only the midpoint while maintaining the white point of the γ characteristic during development, the larger the amount of change in the γ characteristic during development, the more the color reproducibility obtained deviates from the design time. Therefore, there is a high possibility that color bending and tone jumping will occur. Therefore, in S603, the γ selection unit 302 selects 600 of the high-luminance side gradation priority γ that is closer to the γ exposure reference value at the time of shooting, and sets it as the γ characteristic exposure reference value at the time of development.

S601、S602、S604、S605における処理は実施形態1と同様である。 The processing in S601, S602, S604, and S605 is the same as that in the first embodiment.

S606では、明るさ制御部304が、差分部303から出力された撮影時γ露出基準値と現像時γ露出基準値との差分値に応じて、γ選択部302が選択した現像時γ特性を変更する。図5(d)は、本実施形態における現像γ特性と変更後γ特性の関係を例示している。 In S606, the brightness control unit 304 determines the developing γ characteristic selected by the γ selection unit 302 according to the difference value between the shooting γ exposure reference value and the developing γ exposure reference value output from the difference unit 303. change. FIG. 5D illustrates the relationship between the developed γ characteristic and the changed γ characteristic in the present embodiment.

明るさ制御部304は、メモリ11からγ特性テーブル307を読み出し、γ選択部302が設定した現像γIDにしたがって、現像時γ特性として高輝度側階調優先γ506を設定する。しかしながら、高輝度側階調優先γ506の特性は、撮影時γ露出基準値502に対応する出力値509が信号値73となるため、適正露出よりもアンダーな画像が出力されてしまう。そこで、明るさ制御部304は、現像時γ特性のホワイトポイントを維持したまま、撮影時γ露出基準値と現像時γ露出基準値の差分だけミッドポイントを変更する。変更後γ511の特性は、撮影時γ露出基準値502に対応する出力値509が信号値123となり、適正露出の画像を出力することができる。明るさ制御部304は、変更後γ特性を現像処理部24に出力する。 The brightness control unit 304 reads the γ characteristic table 307 from the memory 11 and sets the high-luminance side gradation priority γ506 as the development γ characteristic according to the development γID set by the γ selection unit 302. However, as for the characteristic of the high-luminance side gradation priority γ506, since the output value 509 corresponding to the γ exposure reference value 502 at the time of shooting becomes the signal value 73, an image underexposed than the proper exposure is output. Therefore, the brightness control unit 304 changes the midpoint by the difference between the γ exposure reference value during shooting and the γ exposure reference value during development while maintaining the white point of the γ characteristic during development. As for the characteristics of the changed γ511, the output value 509 corresponding to the γ exposure reference value 502 at the time of shooting becomes the signal value 123, and an image with proper exposure can be output. The brightness control unit 304 outputs the changed γ characteristic to the development processing unit 24.

実施形態2によれば、露出を撮影時γ露出基準値に合わせて撮影されたRAW画像を現像する処理において、撮影時γ露出基準値が高い階調特性のγ特性で現像する場合、まず撮影時γ特性と現像時γ特性の露出基準値の差分を求める。そして、差分が最小となる現像時γ特性を選択すると共に、差分に応じて現像時γ特性のホワイトポイントを維持したままミッドポイントのみを変更する。これにより、適切な明るさを保持し、色曲がりのリスクを最小限に抑えながら、実施形態1よりもさらに高輝度側の階調が保持された画像を生成することができる。 According to the second embodiment, in the process of developing a RAW image taken by adjusting the exposure to the γ-exposure reference value at the time of shooting, when developing with the γ characteristic of gradation characteristics having a high γ-exposure reference value at the time of shooting, first shooting Obtain the difference between the exposure reference value of the time γ characteristic and the time γ characteristic during development. Then, the development γ characteristic that minimizes the difference is selected, and only the midpoint is changed according to the difference while maintaining the white point of the development γ characteristic. As a result, it is possible to generate an image in which the gradation on the higher luminance side than that of the first embodiment is maintained while maintaining an appropriate brightness and minimizing the risk of color bending.

上述した各実施形態では、γ生成部25の各ブロックのハード構成についても説明したが、各ブロックの動作はいずれもソフトウェアでも実現可能な処理であるので、γ生成部25の各動作の一部あるいは全部がソフトウェア処理で実装されていてもよい。また、図2の画像処理装置200におけるその他のブロックについても、同様にその一部あるいは全部がソフトウェア処理で実装されていてもよい。 In each of the above-described embodiments, the hardware configuration of each block of the γ generation unit 25 has also been described, but since the operation of each block is a process that can be realized by software, a part of each operation of the γ generation unit 25. Alternatively, all may be implemented by software processing. Further, with respect to the other blocks in the image processing apparatus 200 of FIG. 2, a part or all of them may be similarly implemented by software processing.

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

発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the above embodiments, and various modifications and modifications can be made without departing from the spirit and scope of the invention. Therefore, a claim is attached to make the scope of the invention public.

100…撮像装置、200…画像処理装置、4、24…現像処理部、10、30…制御部、25…γ生成部、301…露出基準値設定部、302…γ選択部、303…差分部、304…明るさ制御部 100 ... Imaging device, 200 ... Image processing device, 4, 24 ... Development processing unit, 10, 30 ... Control unit, 25 ... γ generation unit, 301 ... Exposure reference value setting unit, 302 ... γ selection unit, 303 ... Difference unit , 304 ... Brightness control unit

Claims (9)

画像を入力する入力手段と、
撮影時に設定された第1のガンマ特性に応じた露出基準値を取得する設定手段と、
予め決められた複数のガンマ特性から選択された第2のガンマ特性の露出基準値を取得する選択手段と、
前記第1のガンマ特性の露出基準値と前記第2のガンマ特性の露出基準値の差分を求める差分手段と、
前記画像の明るさが保持されるように、前記差分に基づいて前記第2のガンマ特性を変更する制御手段と、を有することを特徴とする画像処理装置。
Input means for inputting images and
A setting means for acquiring an exposure reference value according to the first gamma characteristic set at the time of shooting, and
A selection means for acquiring an exposure reference value of a second gamma characteristic selected from a plurality of predetermined gamma characteristics, and
A difference means for obtaining the difference between the exposure reference value of the first gamma characteristic and the exposure reference value of the second gamma characteristic, and
An image processing apparatus comprising: a control means for changing the second gamma characteristic based on the difference so that the brightness of the image is maintained.
前記選択手段は、前記複数のガンマ特性のうち、前記第1のガンマ特性に応じた露出基準値に最も近い露出基準値を持つ前記第2のガンマ特性を選択することを特徴とする請求項1に記載の画像処理装置。 Claim 1 is characterized in that the selection means selects the second gamma characteristic having an exposure reference value closest to the exposure reference value corresponding to the first gamma characteristic among the plurality of gamma characteristics. The image processing apparatus according to. 前記制御手段は、前記差分に基づいて前記第2のガンマ特性のホワイトポイントとミッドポイントを変更することを特徴とする請求項1または2に記載の画像処理装置。 The image processing apparatus according to claim 1 or 2, wherein the control means changes the white point and the mid point of the second gamma characteristic based on the difference. 前記制御手段は、前記差分に基づいて前記入力した画像に適用するガンマ特性に対してゲインアップすることを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。 The image processing apparatus according to any one of claims 1 to 3, wherein the control means gains up with respect to a gamma characteristic applied to the input image based on the difference. 前記制御手段は、前記差分に基づいて前記第2のガンマ特性のホワイトポイントを維持したまま前記第2のガンマ特性のミッドポイントを変更することを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。 Any one of claims 1 to 4, wherein the control means changes the midpoint of the second gamma characteristic while maintaining the white point of the second gamma characteristic based on the difference. The image processing apparatus according to. 前記第2のガンマ特性は、前記第1のガンマ特性より露出基準値が高い階調特性を持ち、
前記入力される画像は、撮像装置において前記第1のガンマ特性に応じた露出基準値で撮影されたRAW画像であることを特徴とする請求項1から5のいずれか1項に記載の画像処理装置。
The second gamma characteristic has a gradation characteristic having a higher exposure reference value than the first gamma characteristic.
The image processing according to any one of claims 1 to 5, wherein the input image is a RAW image taken by an imaging device with an exposure reference value corresponding to the first gamma characteristic. apparatus.
画像を入力するステップと、
撮影時に設定された第1のガンマ特性に応じた露出基準値を取得するステップと、
予め決められた複数のガンマ特性から選択された第2のガンマ特性の露出基準値を取得するステップと、
前記第1のガンマ特性の露出基準値と前記第2のガンマ特性の露出基準値の差分を求めるステップと、
前記画像の明るさが保持されるように、前記差分に基づいて前記第2のガンマ特性を変更するステップと、を有することを特徴とする画像処理装置が実行する画像処理方法。
Steps to enter the image and
The step of acquiring the exposure reference value according to the first gamma characteristic set at the time of shooting, and
A step of acquiring an exposure reference value of a second gamma characteristic selected from a plurality of predetermined gamma characteristics, and
The step of obtaining the difference between the exposure reference value of the first gamma characteristic and the exposure reference value of the second gamma characteristic, and
An image processing method performed by an image processing apparatus, which comprises a step of changing the second gamma characteristic based on the difference so that the brightness of the image is maintained.
コンピュータを、請求項1から6のいずれか1項に記載された画像処理装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each means of the image processing apparatus according to any one of claims 1 to 6. コンピュータを、請求項1から6のいずれか1項に記載された画像処理装置の各手段として機能させるためのプログラムを格納したコンピュータが読み取り可能な記憶媒体。 A computer-readable storage medium containing a program for causing the computer to function as each means of the image processing apparatus according to any one of claims 1 to 6.
JP2019204881A 2019-11-12 2019-11-12 Image processing device and image control method, program, and storage medium Pending JP2021078051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019204881A JP2021078051A (en) 2019-11-12 2019-11-12 Image processing device and image control method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019204881A JP2021078051A (en) 2019-11-12 2019-11-12 Image processing device and image control method, program, and storage medium

Publications (1)

Publication Number Publication Date
JP2021078051A true JP2021078051A (en) 2021-05-20

Family

ID=75898549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019204881A Pending JP2021078051A (en) 2019-11-12 2019-11-12 Image processing device and image control method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP2021078051A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023154575A (en) * 2022-04-07 2023-10-20 キヤノン株式会社 Imaging apparatus and control method for the same, and image processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023154575A (en) * 2022-04-07 2023-10-20 キヤノン株式会社 Imaging apparatus and control method for the same, and image processing device
JP7678776B2 (en) 2022-04-07 2025-05-16 キヤノン株式会社 Imaging device, control method thereof, and image processing device

Similar Documents

Publication Publication Date Title
KR101595254B1 (en) Method for controlling white balance of an image medium of recording the method and apparatus applying the method
JP3530907B2 (en) Digital camera
JP6317577B2 (en) Video signal processing apparatus and control method thereof
KR102158844B1 (en) Apparatus and method for processing image, and computer-readable recording medium
JP2005269373A (en) Video signal processing system, and electronic video apparatus
JP2017085481A (en) Video processing device, video processing method, and video processing program
JP2006005477A (en) Imaging device, imaging method, and program
CN111866399B (en) Image processing apparatus, control method thereof, and computer readable medium
JP7397640B2 (en) Image processing device and image processing method
JP6049425B2 (en) Imaging apparatus, image processing apparatus, and control method
US20240340523A1 (en) Imaging apparatus
JP2021078051A (en) Image processing device and image control method, program, and storage medium
JP2004129065A (en) Digital camera
JP2004222076A (en) Image processing program and method
US8854256B2 (en) Image capture apparatus and method of controlling the same
JP2015126416A (en) Image processing apparatus, control method, and program
JP7646395B2 (en) Image capture device, image capture device control method, and program
JP6074948B2 (en) Digital camera
JP7370762B2 (en) Imaging device and its control method
JP5295289B2 (en) Imaging apparatus and control method thereof
JP5627252B2 (en) Imaging apparatus and control method thereof
JP4934983B2 (en) Camera device, photographing method and photographing program
JP2024122091A (en) Information processing device and control method thereof
JP2024162981A (en) Imaging device
CN120034743A (en) Image processing device, camera device, image processing method, storage medium and computer program product

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