JP2024015185A - Imaging device and its control method and program - Google Patents

Imaging device and its control method and program Download PDF

Info

Publication number
JP2024015185A
JP2024015185A JP2023204909A JP2023204909A JP2024015185A JP 2024015185 A JP2024015185 A JP 2024015185A JP 2023204909 A JP2023204909 A JP 2023204909A JP 2023204909 A JP2023204909 A JP 2023204909A JP 2024015185 A JP2024015185 A JP 2024015185A
Authority
JP
Japan
Prior art keywords
image
system control
control unit
hdr
sdr
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
JP2023204909A
Other languages
Japanese (ja)
Inventor
達也 西口
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 JP2023204909A priority Critical patent/JP2024015185A/en
Publication of JP2024015185A publication Critical patent/JP2024015185A/en
Pending legal-status Critical Current

Links

Images

Abstract

【課題】 撮像装置において、RAW画像データを記録する場合であっても、選択されたダイナミックレンジに対応する現像済み画像データをRAW画像ファイルに含めて記録する。【解決手段】撮像手段と、画像データに対して符号化処理を施す符号化手段と、RAW画像ファイルを記録する際に、RAW画像データに基づいて生成された第1のダイナミックレンジの画像データに第1の符号化形式の符号化処理を施した第1の符号化画像データを、RAW画像ファイルの表示用画像として記録するか、RAW画像データに基づいて生成された第2のダイナミックレンジの画像データに第2の符号化形式の符号化処理を施した第2の符号化画像データを、RAW画像ファイルの表示用画像として記録するかを制御する制御手段と、を有する。【選択図】 図1Even when recording RAW image data in an imaging apparatus, developed image data corresponding to a selected dynamic range is included in a RAW image file and recorded. [Solution] An imaging means, an encoding means that performs encoding processing on image data, and a first dynamic range image data generated based on the RAW image data when recording a RAW image file. The first encoded image data that has been encoded in the first encoding format is recorded as a display image of a RAW image file, or the second dynamic range image is generated based on the RAW image data. and a control means for controlling whether second encoded image data obtained by performing encoding processing in a second encoding format on the data is recorded as a display image of the RAW image file. [Selection diagram] Figure 1

Description

本発明は、撮像装置及びその制御方法及びプログラムに関するものである。 The present invention relates to an imaging device, its control method, and a program.

昨今のデジタルカメラに代表される撮像装置は、HDR画像を撮像し、そのHDR画像を記録媒体に記録可能になっている。ここで、HDRとはHigh Dynamic Range(ハイダイナミックレンジ)のことであり、SDR(スタンダードダイナミックレンジ)に比べてより広いダイナミックレンジを持つ画像を生成する技術である。また、RAW画像とは現像前の生の画像を指す。 2. Description of the Related Art Imaging devices such as recent digital cameras are capable of capturing HDR images and recording the HDR images on recording media. Here, HDR stands for High Dynamic Range, and is a technology that generates an image with a wider dynamic range than SDR (Standard Dynamic Range). Furthermore, a RAW image refers to a raw image before development.

HDRビデオのコンテンツを記録する場合には、当該コンテンツがHDRビデオであるか否かの識別情報と共に記録する(例えば特許文献1)。 When recording HDR video content, it is recorded together with identification information indicating whether the content is HDR video (for example, Patent Document 1).

特開2018-7194号公報JP 2018-7194 Publication

通常のRAW画像ファイルは、表示用画像として現像済みの画像をJPEG圧縮したデータを含めることが可能である。しかし、JPEG画像はHDR画質に対応していないためHDR画質で表示用画像を保存することはできない。そのため、HDR撮影したRAW画像をHDRディスプレイに表示してもHDR画質で確認するには、一度RAW画像を現像する必要がある。 A normal RAW image file can include data obtained by JPEG compressing a developed image as a display image. However, since JPEG images do not support HDR image quality, display images cannot be saved in HDR image quality. Therefore, even if a RAW image shot in HDR is displayed on an HDR display, it is necessary to develop the RAW image once in order to check the HDR image quality.

本発明はかかる問題に鑑みなされたものであり、例えばSDRとHDRのような複数のダイナミックレンジに対応している撮像装置においてRAW画像データを記録する場合であっても、選択されたダイナミックレンジに対応する現像済み画像データをRAW画像ファイルに含めて記録することで、RAW画像ファイルの再生時にも選択されたダイナミックレンジの画像を確認できる技術を提供しようとするものである。 The present invention has been made in view of this problem, and even when recording RAW image data in an imaging device that supports multiple dynamic ranges such as SDR and HDR, the present invention does not apply to the selected dynamic range. The present invention attempts to provide a technology that allows images in a selected dynamic range to be confirmed even when playing back the RAW image file by recording the corresponding developed image data in the RAW image file.

この課題を解決するため、例えば本発明の撮像装置は以下の構成を備える。すなわち、
撮像手段と、
画像データに対して符号化処理を施す符号化手段と、
RAW画像ファイルを記録する際に、RAW画像データに基づいて生成された第1のダイナミックレンジの画像データに第1の符号化形式の符号化処理を施した第1の符号化画像データを、RAW画像ファイルの表示用画像として記録するか、RAW画像データに基づいて生成された第2のダイナミックレンジの画像データに第2の符号化形式の符号化処理を施した第2の符号化画像データを、RAW画像ファイルの表示用画像として記録するかを制御する制御手段と、
を有する。
In order to solve this problem, for example, the imaging device of the present invention has the following configuration. That is,
an imaging means;
an encoding means that performs encoding processing on image data;
When recording a RAW image file, first encoded image data obtained by performing encoding processing in a first encoding format on image data of a first dynamic range generated based on RAW image data is recorded as a RAW image file. The second encoded image data is recorded as a display image of an image file, or the second encoded image data is obtained by performing encoding processing of the second encoding format on the second dynamic range image data generated based on the RAW image data. , a control means for controlling whether to record the RAW image file as a display image;
has.

本発明によれば、SDRとHDRのような複数種類のダイナミックレンジに対応している撮像装置において、RAW画像データを記録する場合であっても、選択されたダイナミックレンジに対応する現像済み画像データをRAW画像ファイルに含めて記録することで、例えばファイル一覧表示等の簡易表示の際に、選択されたダイナミックレンジの画像を確認できるようになる。 According to the present invention, even when recording RAW image data in an imaging device that supports multiple types of dynamic ranges such as SDR and HDR, developed image data corresponding to the selected dynamic range can be used. By including and recording the RAW image file in the RAW image file, it becomes possible to confirm the image in the selected dynamic range, for example, when displaying a file list or the like in a simple manner.

実施形態における撮像/表示装置の外観図。FIG. 1 is an external view of an imaging/display device in an embodiment. 実施形態における撮像/表示装置の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of an imaging/display device in an embodiment. 外部機器との接続構成図。Connection configuration diagram with external equipment. 実施形態におけるLV撮影モード処理のフローチャート。5 is a flowchart of LV photography mode processing in the embodiment. クイックレビューのフローチャート。Quick review flowchart. 実施形態におけるHDMI接続処理のシーケンス図。FIG. 3 is a sequence diagram of HDMI connection processing in the embodiment. 実施形態におけるHDMI接続処理のシーケンス図。FIG. 3 is a sequence diagram of HDMI connection processing in the embodiment. 実施形態におけるHDMI接続処理のシーケンス図。FIG. 3 is a sequence diagram of HDMI connection processing in the embodiment. 実施形態におけるHDR撮影メニュー処理のフローチャート。5 is a flowchart of HDR shooting menu processing in the embodiment. 実施形態におけるHDR撮影メニュー処理のフローチャート。5 is a flowchart of HDR shooting menu processing in the embodiment. 実施形態におけるHDR撮影処理のフローチャート。5 is a flowchart of HDR photographing processing in the embodiment. 実施形態におけるRAWファイルの構成図。FIG. 2 is a configuration diagram of a RAW file in an embodiment. RAWファイルにおける領域ImageDataの例を示す図。The figure which shows the example of area|region ImageData in a RAW file. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態における再生モード処理のフローチャート。5 is a flowchart of playback mode processing in the embodiment. 実施形態におけるHDMI再生処理のフローチャート。5 is a flowchart of HDMI playback processing in the embodiment. 実施形態におけるHDMI再生処理のフローチャート。5 is a flowchart of HDMI playback processing in the embodiment. 実施形態における再生メニュー処理のフローチャートと、データの流れを示す図。FIG. 7 is a flowchart of playback menu processing and a diagram showing the flow of data in the embodiment. 実施形態における現像処理のフローチャート。Flowchart of development processing in the embodiment. CxCy平面を示す図。A diagram showing a CxCy plane. 階調補正パラメータ生成処理のフローチャート。Flowchart of gradation correction parameter generation processing. 階調補正量を示す図。FIG. 7 is a diagram showing gradation correction amounts. SDR、HDRでの見えの例を示す図。A diagram showing an example of appearance in SDR and HDR.

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

図1(a)、(b)に本実施形態が適用する装置の一例としてのデジタルカメラ100の外観図を示す。図1(a)はデジタルカメラ100の前面斜視図であり、図1(b)はデジタルカメラ100の背面斜視図である。図1(a),(b)において、表示部28は画像や各種情報を表示する、カメラ背面に設けられた表示部である。ファインダー外表示部43は、カメラ上面に設けられた表示部であり、シャッター速度や絞りをはじめとするカメラの様々な設定値が表示される。シャッターボタン61は撮影指示を行うための操作部である。モード切替スイッチ60は各種モードを切り替えるための操作部である。端子カバー40は外部機器との接続ケーブルとデジタルカメラ100とを接続する接続ケーブル等のコネクタ(不図示)を保護するカバーである。メイン電子ダイヤル71は操作部70に含まれる回転操作部材であり、ユーザはこのメイン電子ダイヤル71を回すことで、シャッター速度や絞りなどの設定値の変更等が行える。電源スイッチ72はデジタルカメラ100の電源のON及びOFFを切り替える操作部材である。サブ電子ダイヤル73は、操作部70に含まれる回転操作部材であり、選択枠の移動や画像送りなどに利用される。十字キー74は操作部70に含まれ、上、下、左、右部分をそれぞれ押し込み可能な十字キー(4方向キー)である。十字キー74の押した部分に応じた操作が可能である。SETボタン75は操作部70に含まれ、押しボタンであり、主に選択項目の決定などに用いられる。LVボタン76は操作部70に含まれ、静止画撮影モードおいてライブビュー(以下、LV)のONとOFFを切り替えるボタンである。動画撮影モードにおいては、動画撮影(記録)の開始、停止の指示に用いられる。拡大ボタン77は操作部70に含まれ、撮影モードのライブビュー表示において拡大モードのON、OFF,及び拡大モード中の拡大率の変更を行うための操作ボタンである。再生モードにおいては再生画像を拡大し、拡大率を増加させるための拡大ボタンとして機能する。縮小ボタン78は操作部70に含まれ、拡大された再生画像の拡大率を低減させ、表示された画像を縮小させるためのボタンである。再生ボタン79は操作部70に含まれ、撮影モードと再生モードとを切り替える操作ボタンである。撮影モード中に再生ボタン79を押下することで再生モードに移行し、記録媒体200に記録された画像のうち最新の画像を表示部28、または、外部機器300に表示させることができる。クイックリターンミラー12は、システム制御部50から指示されて、不図示のアクチュエータによりアップダウンされる。通信端子10はデジタルカメラ100がレンズ側(着脱可能)と通信を行う為の通信端子である。接眼ファインダー16はフォーカシングスクリーン13を観察することで、レンズユニット150を通して得た被写体の光学像の焦点や構図の確認を行うための覗き込み型のファインダーである。蓋202は記録媒体200を格納したスロットの蓋である。グリップ部90は、ユーザがデジタルカメラ100を構えた際に右手で握りやすい形状とした保持部である。 FIGS. 1A and 1B show external views of a digital camera 100 as an example of a device to which this embodiment is applied. 1(a) is a front perspective view of the digital camera 100, and FIG. 1(b) is a rear perspective view of the digital camera 100. In FIGS. 1A and 1B, the display section 28 is a display section provided on the back of the camera that displays images and various information. The outside viewfinder display section 43 is a display section provided on the top surface of the camera, and displays various setting values of the camera, including shutter speed and aperture. The shutter button 61 is an operation unit for instructing photography. The mode changeover switch 60 is an operation unit for switching between various modes. The terminal cover 40 is a cover that protects a connector (not shown) such as a connection cable that connects a connection cable with an external device and the digital camera 100. The main electronic dial 71 is a rotary operation member included in the operation unit 70, and by rotating the main electronic dial 71, the user can change settings such as shutter speed and aperture. The power switch 72 is an operation member that turns the power of the digital camera 100 on and off. The sub-electronic dial 73 is a rotary operation member included in the operation section 70, and is used for moving the selection frame, forwarding images, and the like. The cross key 74 is included in the operation unit 70 and is a cross key (four-directional key) that can be pressed in the upper, lower, left, and right portions, respectively. Operations can be performed according to the pressed part of the cross key 74. The SET button 75 is included in the operation unit 70, is a push button, and is mainly used for determining selection items. The LV button 76 is included in the operation unit 70 and is a button for switching live view (hereinafter referred to as LV) between ON and OFF in the still image shooting mode. In the video shooting mode, it is used to instruct the start and stop of video shooting (recording). The magnification button 77 is included in the operation unit 70 and is an operation button for turning the magnification mode on and off in live view display in the shooting mode, and changing the magnification ratio in the magnification mode. In the playback mode, it functions as an enlargement button for enlarging the playback image and increasing the enlargement rate. The reduction button 78 is included in the operation unit 70 and is a button for reducing the enlargement rate of the enlarged reproduced image and reducing the displayed image. The playback button 79 is included in the operation unit 70 and is an operation button for switching between shooting mode and playback mode. By pressing the playback button 79 during the shooting mode, the mode shifts to the playback mode, and the latest image among the images recorded on the recording medium 200 can be displayed on the display unit 28 or the external device 300. The quick return mirror 12 is moved up and down by an actuator (not shown) in response to instructions from the system control unit 50. The communication terminal 10 is a communication terminal through which the digital camera 100 communicates with the lens side (which is detachable). The eyepiece finder 16 is a peering type finder for checking the focus and composition of the optical image of the object obtained through the lens unit 150 by observing the focusing screen 13. The lid 202 is a lid of a slot in which the recording medium 200 is stored. The grip section 90 is a holding section shaped so that it can be easily grasped with the right hand when the user holds the digital camera 100.

図2は、本実施形態によるデジタルカメラ100の構成例を示すブロック図である。 FIG. 2 is a block diagram showing a configuration example of the digital camera 100 according to this embodiment.

図2において、レンズユニット150は、交換可能な撮影レンズを搭載するレンズユニットである。 In FIG. 2, a lens unit 150 is a lens unit equipped with an exchangeable photographic lens.

レンズ103は通常、複数枚のレンズから構成されるが、ここでは簡略して一枚のレンズのみで示している。通信端子6はレンズユニット150がデジタルカメラ100側と通信を行う為の通信端子であり、通信端子10はデジタルカメラ100がレンズユニット150側と通信を行う為の通信端子である。レンズユニット150は、この通信端子6,10を介してシステム制御部50と通信し、内部のレンズシステム制御回路4によって絞り駆動回路2を介して絞り1の制御を行い、AF駆動回路3を介して、レンズ103の位置を変位させることで焦点を合わせる。 Although the lens 103 is normally composed of a plurality of lenses, only one lens is shown here for simplicity. The communication terminal 6 is a communication terminal for the lens unit 150 to communicate with the digital camera 100 side, and the communication terminal 10 is a communication terminal for the digital camera 100 to communicate with the lens unit 150 side. The lens unit 150 communicates with the system control section 50 via the communication terminals 6 and 10, controls the aperture 1 via the aperture drive circuit 2 by the internal lens system control circuit 4, and controls the aperture 1 via the AF drive circuit 3. The focus is adjusted by shifting the position of the lens 103.

AEセンサー17は、レンズユニット150を通した被写体の輝度を測光する。焦点検出部11は、システム制御部50にデフォーカス量情報を出力する。システム制御部50はそれに基づいてレンズユニット150を制御し、位相差AFを行う。 The AE sensor 17 measures the brightness of the subject through the lens unit 150. The focus detection section 11 outputs defocus amount information to the system control section 50. Based on this, the system control section 50 controls the lens unit 150 and performs phase difference AF.

クイックリターンミラー12(以下、ミラー12)は、露光、ライブビュー撮影、動画撮影の際にシステム制御部50から指示されて、不図示のアクチュエータによりアップダウンされる。ミラー12は、レンズ103から入射した光束をファインダ16側と撮像部22側とに切替えるためのミラーである。ミラー12は通常時はファインダ16へと光束を導くよう反射させるように配されているが、撮影が行われる場合やライブビュー表示の場合には、撮像部22へと光束を導くように上方に跳ね上がり光束中から待避する(ミラーアップ)。またミラー12はその中央部が光の一部を透過できるようにハーフミラーとなっており、光束の一部を、焦点検出を行うための焦点検出部11に入射するように透過させる。 The quick return mirror 12 (hereinafter referred to as mirror 12) is raised and lowered by an actuator (not shown) in response to instructions from the system control unit 50 during exposure, live view photography, and video photography. The mirror 12 is a mirror for switching the light flux incident from the lens 103 to the viewfinder 16 side and the imaging unit 22 side. The mirror 12 is normally arranged so as to reflect the light beam to the finder 16, but when shooting or displaying live view, the mirror 12 is arranged upward to guide the light beam to the imaging section 22. Take shelter from the bouncing beam of light (mirror up). Further, the mirror 12 is a half mirror so that a portion of the light can pass through the center thereof, and a portion of the light beam is transmitted so as to be incident on the focus detection section 11 for performing focus detection.

ユーザ(撮影者)は、ペンタプリズム14とファインダー16を介して、フォーカシングスクリーン13を観察することで、レンズユニット150を通して得た被写体の光学像の焦点や構図の確認が可能となる。 By observing the focusing screen 13 through the pentaprism 14 and the finder 16, the user (photographer) can confirm the focus and composition of the optical image of the subject obtained through the lens unit 150.

シャッター101は、システム制御部50の制御で撮像部22の露光時間を自由に制御できるフォーカルプレーンシャッターである。 The shutter 101 is a focal plane shutter that can freely control the exposure time of the imaging unit 22 under the control of the system control unit 50.

撮像部22は光学像を電気信号に変換するCCDやCMOS素子等で構成される撮像素子である。この撮像部22の撮像面には、R,G,Bの各色成分のフィルタが2次元的に周期的に配置されている。隣接する2×2個のフィルタについて着目したとき、その対角関係にある2つにはG成分のフィルタが配置され、残りの2つにG成分とB成分のフィルタが配置される。そして、この2×2個のフィルタが、撮像部22の撮像面に配列されている。かかる配列は一般にベイヤ配列と呼ばれる。それ故、撮像部22から出力される信号(アナログ信号)が表す画像も、ベイヤ配列の画素信号となる。A/D変換器23は、撮像部22から出力される1画素のアナログ信号を、例えば10ビットのデジタル信号に変換する。なお、この段階での画像データは、上記のように、1画素1成分で、1成分当たり10ビットのベイヤ配列の画像データであり、未現像の画像データである。それ故、この段階での画像データをRAW画像データという。なお、欠陥画素を補った後のベイヤ配列の画像データをRAW画像データとしても良い。なお、実施形態ではA/D変換器23がアナログ信号を10ビットのデジタルデータに変換するものとしているが、このビット数は8ビットを超えるビット数であれば良く、特に制限はない。ビット数が多いほど、高階調表現が可能となる。 The imaging unit 22 is an imaging device composed of a CCD, CMOS device, etc. that converts an optical image into an electrical signal. On the imaging surface of the imaging unit 22, filters for each color component of R, G, and B are two-dimensionally and periodically arranged. When focusing on the adjacent 2×2 filters, G component filters are placed in two diagonally adjacent filters, and G and B component filters are placed in the remaining two. These 2×2 filters are arranged on the imaging surface of the imaging section 22. Such an array is generally called a Bayer array. Therefore, the image represented by the signal (analog signal) output from the imaging unit 22 also becomes a Bayer array pixel signal. The A/D converter 23 converts a one-pixel analog signal output from the imaging section 22 into, for example, a 10-bit digital signal. Note that the image data at this stage is undeveloped image data, which is Bayer array image data with one component per pixel and 10 bits per component, as described above. Therefore, the image data at this stage is called RAW image data. Note that the Bayer array image data after defective pixels have been compensated for may be used as RAW image data. In the embodiment, it is assumed that the A/D converter 23 converts the analog signal into 10-bit digital data, but the number of bits is not particularly limited as long as it exceeds 8 bits. The larger the number of bits, the higher the gradation expression becomes possible.

画像処理部24は、A/D変換器23からのデータ、又は、メモリ制御部15からのデータに対し所定の画素補間、縮小といったリサイズ処理や色変換処理を行う。また、画像処理部24では、撮像した画像データを用いて所定の演算処理が行われ、得られた演算結果に基づいてシステム制御部50が露光制御、測距制御を行う。これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理が行われる。また、画像処理部24は、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。更に画像処理部24は、システム制御部50の制御下で、画像データの符号化/復号処理をも行う。この符号化には、JPEG,HEVCが含まれる。JPEGは1色成分当たり8ビットの画像データを符号化するためのものであり、HEVCは1色成分当たり8ビット超の画像データを符号化するためのものである。 The image processing section 24 performs resizing processing such as predetermined pixel interpolation and reduction, and color conversion processing on the data from the A/D converter 23 or the data from the memory control section 15. Further, the image processing section 24 performs predetermined calculation processing using the captured image data, and the system control section 50 performs exposure control and distance measurement control based on the obtained calculation results. As a result, TTL (through-the-lens) type AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-emission) processing are performed. The image processing unit 24 also performs predetermined arithmetic processing using the captured image data, and also performs TTL-based AWB (auto white balance) processing based on the obtained arithmetic results. Furthermore, the image processing section 24 also performs encoding/decoding processing of image data under the control of the system control section 50. This encoding includes JPEG and HEVC. JPEG is for encoding image data of 8 bits per color component, and HEVC is for encoding image data of more than 8 bits per color component.

A/D変換器23からの出力データは、画像処理部24及びメモリ制御部15を介して、或いは、メモリ制御部15を介してメモリ32に直接書き込まれる。メモリ32は、撮像部22によって得られA/D変換器23によりデジタルデータに変換された画像データや、表示部28、または、外部機器300に表示するための画像データを格納する。メモリ32は、所定枚数の静止画像や所定時間の動画像および音声を格納するのに十分な記憶容量を備えている。 Output data from the A/D converter 23 is directly written into the memory 32 via the image processing section 24 and the memory control section 15 or via the memory control section 15. The memory 32 stores image data obtained by the imaging section 22 and converted into digital data by the A/D converter 23, and image data to be displayed on the display section 28 or external device 300. The memory 32 has a storage capacity sufficient to store a predetermined number of still images, a predetermined period of moving images, and audio.

また、メモリ32は画像表示用のメモリ(ビデオメモリ)を兼ねている。D/A変換器19は、メモリ32に格納されている表示用画像データをアナログ信号に変換して表示部28に供給する。こうして、メモリ32に書き込まれた表示用画像データはD/A変換器19を介して表示部28により表示される。表示部28は、LCD等の表示器上に、D/A変換器19からのアナログ信号に応じた表示を行う。A/D変換器23によって一度A/D変換されメモリ32に蓄積されたデジタル信号をD/A変換器19においてアナログ変換し、表示部28に逐次転送して表示することで、電子ビューファインダとして機能し、スルー画像表示(ライブビュー表示)を行える。 Furthermore, the memory 32 also serves as an image display memory (video memory). The D/A converter 19 converts the display image data stored in the memory 32 into an analog signal and supplies it to the display unit 28 . In this way, the display image data written in the memory 32 is displayed on the display unit 28 via the D/A converter 19. The display unit 28 displays on a display such as an LCD according to the analog signal from the D/A converter 19. A digital signal that has been A/D converted by the A/D converter 23 and stored in the memory 32 is converted into an analog signal by the D/A converter 19, and is sequentially transferred to the display section 28 for display, so that it can be used as an electronic viewfinder. function, and allows through-image display (live view display).

ファインダー内液晶表示部41には、ファインダー内表示部駆動回路42を介して、現在オートフォーカスが行われている測距点を示す枠(AF枠)や、カメラの設定状態を表すアイコンなどが表示される。ファインダー外液晶表示部43には、ファインダー外表示部駆動回路44を介して、シャッター速度や絞りをはじめとするカメラの様々な設定値が表示される。 A frame (AF frame) indicating the distance measurement point where autofocus is currently being performed, an icon indicating the camera setting status, etc. are displayed on the finder LCD display section 41 via the finder display section drive circuit 42. be done. Various setting values of the camera, including the shutter speed and aperture, are displayed on the outside-finder liquid crystal display section 43 via the outside-finder display section drive circuit 44.

デジタル出力I/F90は、メモリ32に格納されている画像表示用のデータをデジタル信号のまま外部機器300に供給する。例えば、HDMI(登録商標)(High-Definition Multimedia Interface)規格に準拠した通信プロトコルに従って、動画データをストリーム形式で出力する。こうして、メモリ32に書き込まれた表示用の画像データは外部機器300に表示される。 The digital output I/F 90 supplies the image display data stored in the memory 32 as a digital signal to the external device 300. For example, video data is output in a stream format according to a communication protocol compliant with the HDMI (registered trademark) (High-Definition Multimedia Interface) standard. In this way, the display image data written in the memory 32 is displayed on the external device 300.

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

システム制御部50は、少なくとも1つのプロセッサーを有する制御部であり、デジタルカメラ100全体を制御する。前述した不揮発性メモリ56に記録されたプログラムを実行することで、後述する本実施形態の各処理を実現する。参照符号52はシステムメモリであり、RAMが用いられる。システムメモリ52には、システム制御部50の動作用の定数、変数、不揮発性メモリ56から読み出したプログラム等を展開する。また、システム制御部50はメモリ32、D/A変換器19、デジタル出力I/F90、表示部28等を制御することにより表示制御も行う。 The system control unit 50 is a control unit that includes at least one processor, and controls the entire digital camera 100. By executing the program recorded in the nonvolatile memory 56 described above, each process of this embodiment, which will be described later, is realized. Reference numeral 52 is a system memory, and RAM is used. In the system memory 52, constants and variables for the operation of the system control unit 50, programs read from the non-volatile memory 56, etc. are loaded. The system control unit 50 also performs display control by controlling the memory 32, the D/A converter 19, the digital output I/F 90, the display unit 28, and the like.

システムタイマー53は各種制御に用いる時間や、内蔵された時計の時間を計測する計時部である。 The system timer 53 is a timer that measures the time used for various controls and the time of a built-in clock.

モード切替スイッチ60、第1シャッタースイッチ62、第2シャッタースイッチ64、操作部70はシステム制御部50に各種の動作指示を入力するための操作手段としてとして機能する。 The mode changeover switch 60, the first shutter switch 62, the second shutter switch 64, and the operation section 70 function as operation means for inputting various operation instructions to the system control section 50.

モード切替スイッチ60は、システム制御部50の動作モードを静止画記録モード、動画撮影モード、再生モード等のいずれかに切り替える。静止画記録モードに含まれるモードとして、オート撮影モード、オートシーン判別モード、マニュアルモード、絞り優先モード(Avモード)、シャッター速度優先モード(Tvモード)がある。また、撮影シーン別の撮影設定となる各種シーンモード、プログラムAEモード、カスタムモード等がある。モード切替スイッチ60で、これらのモードのいずれかに直接切り替えられる。あるいは、モード切替スイッチ60で撮影モードの一覧画面に一旦切り換えた後に、表示された複数のモードのいずれかを選択し、他の操作部材を用いて切り替えるようにしてもよい。同様に、動画撮影モードにも複数のモードが含まれていてもよい。 The mode changeover switch 60 switches the operation mode of the system control unit 50 to one of a still image recording mode, a moving image shooting mode, a playback mode, and the like. Modes included in the still image recording mode include automatic shooting mode, automatic scene discrimination mode, manual mode, aperture priority mode (Av mode), and shutter speed priority mode (Tv mode). Additionally, there are various scene modes, program AE mode, custom mode, etc., which are shooting settings for each shooting scene. The mode changeover switch 60 allows direct switching to any of these modes. Alternatively, after once switching to the shooting mode list screen using the mode changeover switch 60, one of the displayed plurality of modes may be selected and switched using another operating member. Similarly, the video shooting mode may include a plurality of modes.

ユーザが操作するシャッターボタン61は、第1シャッタースイッチ62と第2シャッタースイッチ63を含む。第1シャッタースイッチ62は、ユーザがシャッターボタン61の操作途中、いわゆる半押し(撮影準備指示)でONとなり第1シャッタースイッチ信号SW1を発生する。システム制御部50は、第1シャッタースイッチ信号SW1を入力した場合、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作を開始する。第2シャッタースイッチ64は、シャッターボタン61の操作完了、いわゆる全押し(撮影指示)でONとなり、第2シャッタースイッチ信号SW2を発生する。システム制御部50は、第2シャッタースイッチ信号SW2により、撮像部22からの信号読み出しから記録媒体200に画像データを書き込むまでの一連の撮影処理の動作を開始する。 The shutter button 61 operated by the user includes a first shutter switch 62 and a second shutter switch 63. The first shutter switch 62 is turned on when the user presses the shutter button 61 halfway (instruction to prepare for photographing) while operating the shutter button 61, and generates the first shutter switch signal SW1. When the first shutter switch signal SW1 is input, the system control unit 50 performs operations such as AF (autofocus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, and EF (flash pre-flash) processing. Start. The second shutter switch 64 is turned ON when the operation of the shutter button 61 is completed, that is, when the shutter button 61 is fully pressed (photographing instruction), and generates a second shutter switch signal SW2. In response to the second shutter switch signal SW2, the system control unit 50 starts a series of photographic processing operations from reading out signals from the imaging unit 22 to writing image data to the recording medium 200.

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

なお、実施形態における表示部28はSDR画質の画像表記機能、すなわち、R,G,Bの各色成分が8ビット(256階調)で表示可能とする。また、外部機器300がデジタルカメラ100に接続された場合は、外部機器300が、表示部28に代わって撮像画像やライブ画像の出力対象デバイスとして設定されるものとする。また、ユーザが、操作部70を操作して、表示部28、外部機器300のいずれにするかを明示的に選択した場合には、その選択した方が出力対象デバイスとなるものとする。 Note that the display unit 28 in the embodiment has an image notation function of SDR image quality, that is, can display each color component of R, G, and B in 8 bits (256 gradations). Further, when the external device 300 is connected to the digital camera 100, the external device 300 is set as the device to output captured images and live images instead of the display unit 28. Further, when the user operates the operation unit 70 to explicitly select either the display unit 28 or the external device 300, the selected one becomes the output target device.

操作部70は、ユーザからの操作を受け付ける入力部としての各種操作部材である。操作部70には、少なくとも以下の操作部が含まれる。シャッターボタン61、メイン電子ダイヤル71、電源スイッチ72、サブ電子ダイヤル73、十字キー74、SETボタン75、LVボタン76、拡大ボタン77、縮小ボタン78、再生ボタン79である。十字キー74は、十字キー74における上、下、右、左の各部を押し込み可能な方向ボタンである。本実施形態では一体的な操作部として説明しているが、上ボタン、下ボタン、右ボタン、左ボタンがそれぞれ独立したボタンであってもよい。以下、上、または下部分を上下キー、左または右部分を左右キーと称する。また、操作部70には以下の操作部も含まれる。 The operation unit 70 is various operation members that serve as an input unit that accepts operations from the user. The operation section 70 includes at least the following operation sections. They are a shutter button 61, a main electronic dial 71, a power switch 72, a sub electronic dial 73, a cross key 74, a SET button 75, an LV button 76, an enlargement button 77, a reduction button 78, and a playback button 79. The cross key 74 is a direction button that can be pressed on each of the upper, lower, right, and left parts of the cross key 74. Although the present embodiment is described as an integrated operation unit, the upper button, lower button, right button, and left button may each be independent buttons. Hereinafter, the upper or lower portion will be referred to as the up/down key, and the left or right portion will be referred to as the left/right key. The operation unit 70 also includes the following operation units.

AF-ONボタン70bは、操作部70に含まれる押しボタンスイッチであり、押下することでAFの実行を指示することができる。AF-PNボタン70bの押下方向は、レンズ103から撮像部22に入射する被写体光の方向(光軸)と平行である。 The AF-ON button 70b is a push button switch included in the operation unit 70, and can be pressed to instruct execution of AF. The direction in which the AF-PN button 70b is pressed is parallel to the direction (optical axis) of subject light entering the imaging unit 22 from the lens 103.

クイック設定ボタン70c(以下、Qボタン70c)は、操作部70に含まれる押しボタンスイッチであり、押下することで、各動作モードにおいて設定可能な設定項目の一覧であるクイック設定メニューが表示される。例えばライブビュー撮影での撮影待機中に押下されると、電子先幕シャッター、モニターの明るさ、LV画面のWB、2点拡大、無音撮影などの設定項目の一覧がLVに重畳して1列に表示される。ユーザは表示されたクイック設定メニューの内、任意の選択肢を上下キーで選択してセットボタンを押下することで、選択した設定項目に関する設定変更や動作モードへの移行を行うことができる。 The quick setting button 70c (hereinafter referred to as Q button 70c) is a push button switch included in the operation unit 70, and when pressed, a quick setting menu, which is a list of setting items that can be set in each operation mode, is displayed. . For example, when pressed during live view shooting standby, a list of setting items such as electronic front-curtain shutter, monitor brightness, LV screen WB, 2-point magnification, and silent shooting are superimposed on the LV in a single column. will be displayed. By selecting any option from the displayed quick setting menu using the up and down keys and pressing the set button, the user can change the settings for the selected setting item or shift to the operation mode.

アクティブ枠切替ボタン70dは、操作部70に含まれる押しボタンスイッチであり、後述する2点拡大処理において押下することで、拡大している2箇所のうち、アクティブな拡大位置(枠)を切り替えることができる。また、動作モードによって異なる機能が割り当てられており、再生モードにおいて押下すると、表示している画像にプロテクト属性を付与することができる。 The active frame switching button 70d is a push button switch included in the operation unit 70, and when pressed in the two-point enlargement process described later, the active enlargement position (frame) can be switched between the two enlarged locations. I can do it. Further, different functions are assigned depending on the operation mode, and when pressed in playback mode, a protect attribute can be added to the displayed image.

メニューボタン70eは、操作部70に含まれる押しボタンスイッチであり、各種の設定が可能なメニュー画面が表示部28、または、外部機器300に表示される。 The menu button 70e is a push button switch included in the operation unit 70, and a menu screen on which various settings can be made is displayed on the display unit 28 or the external device 300.

ファンクションボタン70fは、操作部70に含まれる3つの押しボタンスイッチであり、それぞれ機能が割り当てられている。ファンクションボタン70fのそれぞれは、グリップ部90を保持する右手の指(中指または薬指または小指)によって操作可能な位置に配置されており、押下方向はレンズ103から撮像部22に入射する被写体光の方向(光軸)と平行である。 The function buttons 70f are three pushbutton switches included in the operation unit 70, and functions are assigned to each of them. Each of the function buttons 70f is arranged at a position where it can be operated by the finger (middle finger, ring finger, or little finger) of the right hand holding the grip section 90, and the direction in which it is pressed is the direction of the subject light that enters the imaging section 22 from the lens 103. (optical axis).

インフォボタン70gは、操作部70に含まれる押しボタンスイッチであり、各種情報表示の切り替えなどに使用される。 The info button 70g is a push button switch included in the operation unit 70, and is used to switch various information displays.

電源制御部80は、電池検出回路、DC-DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成され、電池の装着の有無、電池の種類、電池残量の検出を行う。また、電源制御部80は、その検出結果及びシステム制御部50の指示に基づいてDC-DCコンバータを制御し、必要な電圧を必要な期間、記録媒体200を含む各部へ供給する。 The power supply control unit 80 includes a battery detection circuit, a DC-DC converter, a switch circuit for switching the block to be energized, and the like, and detects whether or not a battery is attached, the type of battery, and the remaining battery level. Further, the power supply control section 80 controls the DC-DC converter based on the detection result and the instruction from the system control section 50, and supplies the necessary voltage to each section including the recording medium 200 for a necessary period.

電源部30は、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる。記録媒体I/F18は、メモリカードやハードディスク等の記録媒体200とのインターフェースである。記録媒体200は、撮影された画像を記録するためのメモリカード等の記録媒体であり、半導体メモリや磁気ディスク等から構成される。 The power supply unit 30 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 battery, an AC adapter, or the like. The recording medium I/F 18 is an interface with a recording medium 200 such as a memory card or a hard disk. The recording medium 200 is a recording medium such as a memory card for recording photographed images, and is composed of a semiconductor memory, a magnetic disk, or the like.

通信部54は、無線または有線ケーブルによって接続し、映像信号や音声信号の送受信を行う。通信部54は無線LAN(Local Area Network)やインターネットとも接続可能である。通信部54は撮像部22で撮像した画像(スルー画像を含む)や、記録媒体200に記録された画像を送信可能であり、また、外部機器から画像データやその他の各種情報を受信することができる。 The communication unit 54 is connected via a wireless or wired cable and transmits and receives video signals and audio signals. The communication unit 54 can also be connected to a wireless LAN (Local Area Network) and the Internet. The communication unit 54 can transmit images captured by the imaging unit 22 (including through images) and images recorded on the recording medium 200, and can also receive image data and other various information from external devices. can.

姿勢検知部55は重力方向に対するデジタルカメラ100の姿勢を検知する。姿勢検知部55で検知された姿勢に基づいて、撮像部22で撮影された画像が、デジタルカメラ100を横に構えて撮影された画像であるか、縦に構えて撮影された画像なのかを判別可能である。システム制御部50は、姿勢検知部55で検知された姿勢に応じた向き情報を撮像部22で撮像された画像の画像ファイルに付加したり、画像を回転して記録することが可能である。姿勢検知部55としては、加速度センサーやジャイロセンサーなどを用いることができる。 The attitude detection unit 55 detects the attitude of the digital camera 100 with respect to the direction of gravity. Based on the orientation detected by the orientation detection unit 55, it is determined whether the image taken by the imaging unit 22 is an image taken with the digital camera 100 held horizontally or an image taken with the digital camera 100 held vertically. Identifiable. The system control unit 50 can add orientation information corresponding to the orientation detected by the orientation detection unit 55 to the image file of the image captured by the imaging unit 22, or can rotate and record the image. As the posture detection section 55, an acceleration sensor, a gyro sensor, or the like can be used.

なお、操作部70の一つとして、表示部28に対する接触を検知可能なタッチパネル70aを有する。タッチパネル70aと表示部28とは一体的に構成することができる。例えば、タッチパネル70aを光の透過率が表示部28の表示を妨げないように構成し、表示部28の表示面の上層に取り付ける。そして、タッチパネル70aにおける入力座標と、表示部28上の表示座標とを対応付ける。これにより、恰もユーザが表示部28上に表示された画面を直接的に操作可能であるかのようなGUI(グラフィカルユーザインターフェース)を構成することができる。システム制御部50はタッチパネル70aへの以下の操作あるいは状態を検出できる。
・タッチパネル70aにタッチしていなかった指やペンが新たにタッチパネル70aにタッチしたこと。すなわち、タッチの開始(以下、タッチダウン(Touch-Down)と称する)。
・タッチパネル70aを指やペンでタッチしている状態であること(以下、タッチオン(Touch-On)と称する)。
・タッチパネル70aを指やペンでタッチしたまま移動していること(以下、タッチムーブ(Touch-Move)と称する)。
・タッチパネル70aへタッチしていた指やペンを離したこと。すなわち、タッチの終了(以下、タッチアップ(Touch-Up)と称する)。
・タッチパネル70aに何もタッチしていない状態(以下、タッチオフ(Touch-Off)と称する)。
Note that one of the operation units 70 includes a touch panel 70a that can detect contact with the display unit 28. The touch panel 70a and the display section 28 can be configured integrally. For example, the touch panel 70a is configured such that its light transmittance does not interfere with the display on the display section 28, and is attached to the upper layer of the display surface of the display section 28. Then, the input coordinates on the touch panel 70a and the display coordinates on the display unit 28 are associated with each other. Thereby, it is possible to configure a GUI (graphical user interface) as if the user could directly operate the screen displayed on the display unit 28. The system control unit 50 can detect the following operations or states on the touch panel 70a.
- A finger or a pen that has not touched the touch panel 70a newly touches the touch panel 70a. That is, the start of a touch (hereinafter referred to as Touch-Down).
- The touch panel 70a is in a state of being touched with a finger or a pen (hereinafter referred to as Touch-On).
- Moving while touching the touch panel 70a with a finger or pen (hereinafter referred to as a touch-move).
- The finger or pen that was touching the touch panel 70a is released. That is, the end of the touch (hereinafter referred to as Touch-Up).
- A state in which nothing is touched on the touch panel 70a (hereinafter referred to as Touch-Off).

タッチダウンが検出されると、同時にタッチオンであることも検出される。タッチダウンの後、タッチアップが検出されない限りは、通常はタッチオンが検出され続ける。タッチムーブが検出されるのもタッチオンが検出されている状態である。タッチオンが検出されていても、タッチ位置が移動していなければタッチムーブは検出されない。タッチしていた全ての指やペンがタッチアップしたことが検出された後は、タッチオフとなる。 When a touchdown is detected, a touch-on is also detected at the same time. After touchdown, touch-ons typically continue to be detected unless a touch-up is detected. A touch move is also detected in a state where a touch-on is detected. Even if a touch-on is detected, if the touch position does not move, a touch move will not be detected. After all touching fingers and pens are detected to have touched up, touch-off occurs.

これらの操作・状態や、タッチパネル70a上に指やペンがタッチしている位置座標は内部バスを通じてシステム制御部50に通知される。システム制御部50は、通知された情報に基づいてタッチパネル70a上にどのような操作(タッチ操作)が行なわれたかを判定する。タッチムーブについてはタッチパネル70a上で移動する指やペンの移動方向についても、位置座標の変化に基づいて、タッチパネル70a上の垂直成分・水平成分毎に判定できる。所定距離以上をタッチムーブしたことが検出された場合はスライド操作が行なわれたと判定するものとする。タッチパネル上に指をタッチしたままある程度の距離だけ素早く動かして、そのまま離すといった操作をフリックと呼ぶ。フリックは、言い換えればタッチパネル70a上を指ではじくように素早くなぞる操作である。所定距離以上を、所定速度以上でタッチムーブしたことが検出され、そのままタッチアップが検出されるとフリックが行なわれたと判定できる(スライド操作に続いてフリックがあったものと判定できる)。更に、複数箇所(例えば2点)を同時にタッチして、互いのタッチ位置を近づけるタッチ操作をピンチイン、互いのタッチ位置を遠ざけるタッチ操作をピンチアウトと称する。ピンチアウトとピンチインを総称してピンチ操作(あるいは単にピンチ)と称する。タッチパネル70aは、抵抗膜方式や静電容量方式、表面弾性波方式、赤外線方式、電磁誘導方式、画像認識方式、光センサ方式等、様々な方式のタッチパネルのうちいずれの方式のものを用いても良い。方式によって、タッチパネルに対する接触があったことでタッチがあったと検出する方式や、タッチパネルに対する指やペンの接近があったことでタッチがあったと検出する方式ものがあるが、いずれの方式でもよい。 These operations/states and the coordinates of the position where the finger or pen is touching on the touch panel 70a are notified to the system control unit 50 via the internal bus. The system control unit 50 determines what kind of operation (touch operation) has been performed on the touch panel 70a based on the notified information. Regarding touch moves, the direction of movement of a finger or pen on the touch panel 70a can also be determined for each vertical component and horizontal component on the touch panel 70a based on changes in position coordinates. If it is detected that a touch move has been made over a predetermined distance, it is determined that a slide operation has been performed. An operation in which you keep your finger on the touch panel, quickly move it a certain distance, and then release it is called a flick. In other words, a flick is an operation in which a finger is quickly traced on the touch panel 70a as if flicking. If a touch move over a predetermined distance and at a predetermined speed is detected, and a touch-up is detected as is, it can be determined that a flick has been performed (it can be determined that a flick has occurred following a slide operation). Further, a touch operation in which multiple points (for example, two points) are touched at the same time and the touch positions are brought closer to each other is called a pinch-in, and a touch operation in which the touch positions are moved away from each other is called a pinch-out. Pinch out and pinch in are collectively referred to as a pinch operation (or simply pinch). The touch panel 70a may be any one of various types of touch panels, such as a resistive film type, a capacitive type, a surface acoustic wave type, an infrared type, an electromagnetic induction type, an image recognition type, an optical sensor type, etc. good. Depending on the method, there are methods in which a touch is detected when there is contact with the touch panel, and methods where a touch is detected when a finger or pen approaches the touch panel, but either method may be used.

また、撮像装置本体に限らず、有線または無線通信を介して撮像装置(ネットワークカメラを含む)と通信し、撮像装置を遠隔で制御する制御装置にも本発明を適用可能である。撮像装置を遠隔で制御する装置としては、例えば、スマートフォンやタブレットPC、デスクトップPCなどの装置がある。制御装置側で行われた操作や制御装置側で行われた処理に基づいて、制御装置側から撮像装置に各種動作や設定を行わせるコマンドを通知することにより、撮像装置を遠隔から制御可能である。また、撮像装置で撮影したライブビュー画像を有線または無線通信を介して受信して制御装置側で表示できるようにしてもよい。 Furthermore, the present invention is applicable not only to the imaging device itself but also to a control device that communicates with the imaging device (including a network camera) via wired or wireless communication and remotely controls the imaging device. Examples of devices that remotely control the imaging device include devices such as smartphones, tablet PCs, and desktop PCs. The imaging device can be controlled remotely by notifying the imaging device of commands to perform various operations and settings from the control device, based on operations performed on the control device and processing performed on the control device. be. Furthermore, a live view image taken by the imaging device may be received via wired or wireless communication and displayed on the control device side.

なお、上記では、デジタルカメラに適用した場合を例にして説明したが、本発明はこれに限定されない。例えば、PDA、携帯電話端末や携帯型の画像ビューワ、ディスプレイを備えるプリンタ装置、デジタルフォトフレーム、音楽プレーヤー、ゲーム機、電子ブックリーダーなど、表示部を備えた装置であれば、本発明は適用可能である。 In addition, although the case where it applied to a digital camera was explained above as an example, the present invention is not limited to this. For example, the present invention is applicable to any device equipped with a display section, such as a PDA, a mobile phone terminal, a portable image viewer, a printer device equipped with a display, a digital photo frame, a music player, a game console, an electronic book reader, etc. It is.

図3はデジタルカメラ100と外部機器300との接続例を示す図である。デジタルカメラ100と外部機器300を接続ケーブル302で接続すると、デジタルカメラ100の表示部28が消灯し、外部機器300のディスプレイ301にデジタルカメラ100の表示が切り替わり表示される。 FIG. 3 is a diagram showing an example of the connection between the digital camera 100 and the external device 300. When the digital camera 100 and the external device 300 are connected with the connection cable 302, the display unit 28 of the digital camera 100 turns off, and the display of the digital camera 100 is switched and displayed on the display 301 of the external device 300.

図4Aは、デジタルカメラ100でのLV撮影モード処理を示すフローチャートである。この処理は、不揮発性メモリ56に記録されたプログラムをシステムメモリ52に展開してシステム制御部50が実行することで実現する。 FIG. 4A is a flowchart showing LV shooting mode processing in the digital camera 100. This processing is realized by loading a program recorded in the nonvolatile memory 56 into the system memory 52 and executing it by the system control unit 50.

まず、本実施形態におけるHDR撮影モード及びSDR撮影モードについて説明する。本実施形態のデジタルカメラ100は、ユーザからのメニュー操作などによってHDR撮影モードまたはSDR撮影モードを設定できる。これらのモードは、ユーザが最終的にHDR画質の画像データを得るかSDR画質の画像データを得るかの意図を設定するためのものであり、以下の処理はいずれのモードが設定されているかに応じて種々の制御が行われる。以下、HDR撮影モード及びSDR撮影モードで撮影を行うことを「HDR撮影」、「SDR撮影」と記載することがある。ただし、後述するようにRAW形式のみの記録を設定することも可能であるため、HDR撮影モードで撮影された場合に必ずHDR画像が記録されるとは限らない。 First, the HDR photography mode and SDR photography mode in this embodiment will be explained. The digital camera 100 of this embodiment can set the HDR shooting mode or the SDR shooting mode through a menu operation or the like by the user. These modes are for the user to set their intention to ultimately obtain HDR image quality image data or SDR image quality image data, and the following processing will depend on which mode is set. Various controls are performed accordingly. Hereinafter, performing photography in the HDR photography mode and the SDR photography mode may be referred to as "HDR photography" and "SDR photography". However, as will be described later, it is also possible to set recording only in RAW format, so an HDR image is not necessarily recorded when shooting in HDR shooting mode.

S401にて、システム制御部50は、ユーザによる操作部70に対する設定がHDR撮影モードとなっているか否かを判定する。システム制御部50は、HDR撮影モードに設定されていると判定した場合は処理をS402に、SDR撮影モードになっていると判定した場合は処理をS422に進める。 In S401, the system control unit 50 determines whether the user's setting on the operation unit 70 is the HDR shooting mode. If the system control unit 50 determines that the HDR shooting mode is set, the process proceeds to S402, and if it determines that the SDR shooting mode is set, the process proceeds to S422.

S402にて、システム制御部50は、デジタルカメラ100に外部機器300が接続されているか否かを判定する。システム制御部50は、外部機器300が接続されていると判定した場合はS403に、接続されていないと判定した場合は処理をS404に進める。 In S402, the system control unit 50 determines whether the external device 300 is connected to the digital camera 100. If the system control unit 50 determines that the external device 300 is connected, the process proceeds to S403, and if it determines that the external device 300 is not connected, the process proceeds to S404.

S403にて、システム制御部50は、デジタルカメラ100と外部機器300の接続処理を行う。そして、システム制御部50は処理をS404へ進める。この接続処理の詳細は図5を用いて後述する。なお、外部機器がHDR接続に対応していればHDR接続され、対応していなければSDR接続となる。 In S403, the system control unit 50 performs connection processing between the digital camera 100 and the external device 300. Then, the system control unit 50 advances the process to S404. Details of this connection process will be described later using FIG. 5. Note that if the external device supports HDR connection, HDR connection will be made, and if it does not support HDR connection, SDR connection will be made.

S404にて、システム制御部50は、撮像部22で撮像しA/D変換器23でデジタル信号に変換して得たライブのRAW画像データに対し、画像処理部24を用いてHDR画質の現像処理を行う。以下、HDR画質の現像処理で得た画像をHDR画像という。 In S404, the system control unit 50 uses the image processing unit 24 to perform HDR image quality development on the live RAW image data obtained by capturing the image with the imaging unit 22 and converting it into a digital signal with the A/D converter 23. Perform processing. Hereinafter, an image obtained by HDR image quality development processing will be referred to as an HDR image.

なお、実施形態における、HDR画像データとは、1画素が3成分(LuvやYCbCr等)で構成され、且つ、実施形態では各成分が10ビット(1024階調)で表されるデータである。HDR画像データには、HDR画像用のガンマカーブ(例えば、ITU-Rの勧告BT.2100のPQやHLG)が適用されている。 Note that HDR image data in the embodiment is data in which one pixel is composed of three components (Luv, YCbCr, etc.), and each component is represented by 10 bits (1024 gradations) in the embodiment. A gamma curve for HDR images (for example, PQ and HLG of ITU-R recommendation BT.2100) is applied to the HDR image data.

S405にて、システム制御部50は、LV画像を表示するデバイス(表示部28または外部機器300)がHDR対応かどうかを判定し、HDR対応してないと判定した場合は処理をS406に、HDR対応していると判定した場合は処理をS409へ進める。 In S405, the system control unit 50 determines whether the device (display unit 28 or external device 300) that displays the LV image is HDR compatible, and if it is determined that it is not HDR compatible, the process proceeds to S406. If it is determined that they are compatible, the process advances to S409.

S406にて、システム制御部50は、HDRアシスト表示設定を確認する。システム制御部50は、アシスト1が設定されていると判定した場合は処理をS407へ、アシスト2が設定されている場合は処理をS408へ進める。アシスト1は、HDR画像の高輝度領域を確認するための設定であり、HDR画像の高輝度範囲に多くの階調(コード値)を割り当てる処理が行われる。アシスト2は、HDR画像の中間輝度範囲を確認するための設定であり、HDR画像の中間輝度領域に多くの階調を割り当てる処理が行われる。 In S406, the system control unit 50 confirms the HDR assist display setting. If the system control unit 50 determines that assist 1 is set, the process proceeds to S407, and if assist 2 is set, the process proceeds to S408. Assist 1 is a setting for checking the high brightness area of the HDR image, and a process of assigning many gradations (code values) to the high brightness area of the HDR image is performed. Assist 2 is a setting for checking the intermediate brightness range of the HDR image, and a process of assigning many gradations to the intermediate brightness area of the HDR image is performed.

S407にて、システム制御部50は、S404の現像処理で得たHDR画像データに対して、アシスト1の設定に従ってHDR→SDR変換処理を行い、且つ、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行って得たSDR画質のLV画像データを表示し、処理をS410に進める。 In S407, the system control unit 50 performs HDR → SDR conversion processing on the HDR image data obtained in the development processing in S404 according to the settings of Assist 1, and also performs HDR → SDR conversion processing on the HDR image data obtained in the development processing in S404, and ) is displayed, and the process proceeds to S410.

S408にて、システム制御部50は、S404の現像処理で得たHDR画像データに対してアシスト2の設定に従いHDR→SDR変換処理を行い、且つ、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行って得たSDR画質のLV画像データを表示し、処理をS410に進める。 In S408, the system control unit 50 performs HDR → SDR conversion processing on the HDR image data obtained in the development process in S404 according to the settings of Assist 2, and also converts the HDR image data obtained in the development process in S404 to the output target device (display unit 28 or external device 300). The SDR image quality LV image data obtained by performing resizing processing to a size suitable for the image data is displayed, and the process proceeds to S410.

ここで、S407、S408におけるSDR画質の画像データ(SDR画像データ)とは、1成分当たり8ビットの画像データをいう。SDR画質の画像データには、SDR画像用のガンマカーブ(例えば、sRGB規格のガンマカーブ)が適用されている。なお、sRGB規格のガンマカーブは、一般的には暗部が直線で明部が2.4のべき乗のカーブであるが、簡易的には2.2のべき乗のカーブを用いても良い。 Here, the image data of SDR image quality (SDR image data) in S407 and S408 refers to image data of 8 bits per component. A gamma curve for SDR images (for example, a gamma curve of the sRGB standard) is applied to image data of SDR image quality. Note that the gamma curve of the sRGB standard is generally a curve with a straight line in dark areas and a power of 2.4 in bright areas, but a curve with a power of 2.2 may be used for simplicity.

S409にて、システム制御部50は、S404での現像処理で得たHDR画像データを、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理し、そのリサイズ後のHDR画質の画像(以降、HDL_LV画像)をライブ表示し、処理をS410に進める。 In S409, the system control unit 50 resizes the HDR image data obtained through the development process in S404 to a size suitable for the output target device (display unit 28 or external device 300), and adjusts the HDR image quality after the resize. The image (hereinafter referred to as HDL_LV image) is displayed live, and the process proceeds to S410.

S410にて、システム制御部50は、メニュー表示ボタン70eが押されたかを判定し、押されたと判定した場合は処理をS411に、押されていないと判定した場合は処理をS412に進める。S411にて、システム制御部50は、撮影メニュー処理を行い、処理をS412に進める。この撮影メニュー処理の詳細は図6を用いて後述する。 In S410, the system control unit 50 determines whether the menu display button 70e has been pressed. If it is determined that it has been pressed, the process proceeds to S411; if it is determined that it has not been pressed, the process proceeds to S412. In S411, the system control unit 50 performs shooting menu processing, and advances the process to S412. Details of this shooting menu processing will be described later using FIG. 6.

S412にて、システム制御部50は、インフォ表示ボタン70gが押されたかを判定し、押されたと判定した場合は処理をS413に、押されていないと判定した場合は処理をS414に進める。S413では、システム制御部50は、撮影情報の表示を切り替え、S414に進む。撮影情報には、ヒストグラムやハイライト警告表等がある。 In S412, the system control unit 50 determines whether the info display button 70g has been pressed. If it is determined that it has been pressed, the process proceeds to S413; if it is determined that it has not been pressed, the process proceeds to S414. In S413, the system control unit 50 switches the display of photographing information, and proceeds to S414. The shooting information includes a histogram, a highlight warning table, and the like.

S414にて、システム制御部50は、信号SW1を受信しているか否かに基づき、シャッターボタン61が半押し状態かどうかを判定し、半押しされていないと判定した場合は処理をS420に、半押し状態であると判定した場合は処理をS415に進める。 In S414, the system control unit 50 determines whether the shutter button 61 is pressed halfway based on whether or not the signal SW1 is received, and if it is determined that the shutter button 61 is not pressed halfway, the process proceeds to S420. If it is determined that the button is pressed halfway, the process advances to S415.

S415にて、システム制御部50は、図2で説明したAF/AE処理を行い、S416に進む。S416にて、システム制御部50は、信号SW2を受信しているか否かに基づき、シャッターボタン61が全押し状態かどうかを判定し、全押し状態でないと判定した場合は処理をS417に進み、全押し状態であると判定した場合は処理をS418に進める。S417にて、システム制御部50は、シャッターボタン61が半押し状態が保持されているかを判定し、半押し状態が保持されていれば処理をS415に戻し、半押し状態が保持されていないと判定した場合は処理をS420に進める。S418にて、システム制御部50は、HDR撮影処理を行い、記録媒体に予め設定した記録形式に応じた画像データファイルを記録する。図8Aは、記録されるファイルのデータ構造を示している。そして、システム制御部50は処理をS419に進める。なお、このHDR撮影処理の詳細は図7を用いて後述する。そして、S419にて、システム制御部50は、クイックレビュー表示処理を行い、処理をS420に進める。このクイックレビュー表示処理の詳細は図4Bを用いて後述する。 In S415, the system control unit 50 performs the AF/AE processing described in FIG. 2, and proceeds to S416. In S416, the system control unit 50 determines whether the shutter button 61 is fully pressed based on whether the signal SW2 is received, and if it is determined that the shutter button 61 is not fully pressed, the process proceeds to S417, If it is determined that the button is fully pressed, the process advances to S418. In S417, the system control unit 50 determines whether the shutter button 61 is held in a half-pressed state, returns the process to S415 if the half-pressed state is held, and returns the process to S415 if the half-pressed state is not held. If determined, the process advances to S420. In S418, the system control unit 50 performs HDR imaging processing and records an image data file in accordance with the preset recording format on the recording medium. FIG. 8A shows the data structure of the recorded file. Then, the system control unit 50 advances the process to S419. Note that details of this HDR photographing process will be described later using FIG. 7. Then, in S419, the system control unit 50 performs quick review display processing, and advances the process to S420. Details of this quick review display processing will be described later using FIG. 4B.

S420にて、システム制御部50は、LVボタン76が押されたかを判定し、押されていると判定した場合は処理をS421に、押されていないと判定した場合は処理をS422に進める。 In S420, the system control unit 50 determines whether the LV button 76 has been pressed, and if it is determined that it has been pressed, the process proceeds to S421, and if it is determined that it has not been pressed, the process proceeds to S422.

S421にて、システム制御部50は、S404でHDR画質に現像処理した画像データ(1画素3成分で、1成分当たり10ビットの画像データ)をHEVC(H.265)圧縮し、HDR動画ファイルとして記録し、S438に処理を進める。 In S421, the system control unit 50 compresses the image data developed to HDR image quality in S404 (image data of 1 pixel with 3 components and 10 bits per component) using HEVC (H.265), and converts it into an HDR video file. The information is recorded and the process proceeds to S438.

S422にて、システム制御部50は、外部機器300がデジタルカメラ100に接続されているか否かを判定する。システム制御部50は、外部機器300が接続されていると判定した場合は処理をS423に、接続されていないと判定した場合は処理をS424に進める。S423にて、システム制御部50は、デジタルカメラ100と外部機器300の接続処理を行い、処理をS424へ進める。この接続処理の詳細は図5を用いて後述する。なお、SDR撮影モードのため外部機器とはSDR接続されることになる。 In S422, the system control unit 50 determines whether the external device 300 is connected to the digital camera 100. If the system control unit 50 determines that the external device 300 is connected, the process proceeds to S423, and if it determines that the external device 300 is not connected, the process proceeds to S424. In S423, the system control unit 50 performs a connection process between the digital camera 100 and the external device 300, and advances the process to S424. Details of this connection process will be described later using FIG. 5. Note that since the camera is in SDR shooting mode, it will be connected to external devices via SDR.

S424にて、システム制御部50は、撮像部22で撮像し、A/D変換器23でデジタル信号に変換した画像を画像処理部24でSDR画質(1画素3成分で、1成分当たり8ビット(256階調))に現像し、処理をS425に進む。なお、以降、SDR画質の現像処理後の画像をSDR画像という。 In S424, the system control unit 50 converts the image captured by the imaging unit 22 and converted into a digital signal by the A/D converter 23 to an SDR image quality (1 pixel, 3 components, 8 bits per component) by the image processing unit 24. (256 gradations)), and the process proceeds to S425. Note that hereinafter, an image after development processing with SDR image quality will be referred to as an SDR image.

S425にて、システム制御部50は、S424の現像処理で得たSDR画像を、出力先のデバイスの解像度(表示部28または外部機器300)に適したサイズにリサイズ処理を行い、SDR画質のライブ画像(SDR_LV画像)を生成し、生成したSDR_LV画像を表示する。 In S425, the system control unit 50 resizes the SDR image obtained in the development process in S424 to a size suitable for the resolution of the output destination device (display unit 28 or external device 300), and converts the SDR image into a live image with SDR image quality. An image (SDR_LV image) is generated, and the generated SDR_LV image is displayed.

S426にて、システム制御部50は、メニュー表示ボタン70eが押されたかを判定し、押されたと判定した場合は処理をS427に、押されていないと判定した場合は処理をS428に進める。S427にて、システム制御部50は、撮影メニュー処理を行い、処理をS428に進める。このS427の撮影メニュー処理の詳細は図6を用いて後述する。 In S426, the system control unit 50 determines whether the menu display button 70e has been pressed. If it is determined that it has been pressed, the process proceeds to S427; if it is determined that it has not been pressed, the process proceeds to S428. In S427, the system control unit 50 performs shooting menu processing, and advances the process to S428. Details of the photographing menu process in S427 will be described later using FIG.

S428にて、システム制御部50は、インフォ表示ボタン70gが押されたかを判定し、押されたと判定した場合は処理をS429に、押されていないと判定した場合は処理をS430に進める。S429にて、システム制御部50は、撮影情報の表示を切り替え、S430に進む。撮影情報には、ヒストグラムやハイライト警告表等がある。 In S428, the system control unit 50 determines whether the info display button 70g has been pressed. If it is determined that it has been pressed, the process proceeds to S429; if it is determined that it has not been pressed, the process proceeds to S430. In S429, the system control unit 50 switches the display of photographing information, and proceeds to S430. The shooting information includes a histogram, a highlight warning table, and the like.

S430にて、システム制御部50は、シャッターボタン61が半押し状態かどうかを判定し、半押し状態にないと判定した場合は処理をS436に、半押し状態であると判定した場合は処理をS431に進める。 In S430, the system control unit 50 determines whether or not the shutter button 61 is pressed halfway, and if it is determined that the shutter button 61 is not pressed halfway, the process proceeds to S436, and if it is determined that it is pressed halfway, the process is continued. Proceed to S431.

S431にて、システム制御部50は、図2で説明したAF/AE処理を行い、S432に進める。S432にて、システム制御部50は、信号SW2を受信したか否かに基づき、シャッターボタン61が全押し状態かどうかを判定する。システム制御部50は、全押し状態でないと判定した場合は処理をS433に、全押し状態であると判定した場合は処理をS434に進める。S433にて、システム制御部50は、信号SW1を受信したか否かに基づき、シャッターボタン61が半押し状態が保持されているかを判定する。システム制御部50は、半押し状態が保持されていると判定した場合は処理をS431に戻し、半押し状態が保持されていないと判定した場合は処理をS436に進める。 In S431, the system control unit 50 performs the AF/AE processing described in FIG. 2, and proceeds to S432. In S432, the system control unit 50 determines whether the shutter button 61 is fully pressed based on whether the signal SW2 is received. If the system control unit 50 determines that the button is not fully pressed, the process proceeds to S433, and if it determines that the button is fully pressed, the process proceeds to S434. In S433, the system control unit 50 determines whether the shutter button 61 is held in a half-pressed state based on whether the signal SW1 is received. If the system control unit 50 determines that the half-pressed state is maintained, the process returns to S431, and if it determines that the half-pressed state is not maintained, the system control unit 50 advances the process to S436.

S434にて、システム制御部50は、SDR撮影処理を行いS435に進む。このSDR撮影処理では、システム制御部50は、SDR撮影で得たRAW画像データをSDR画質で現像処理し、SDR画質の画像をJPEG符号化してJPEG画像データを生成し、JPEG形式のJPEGファイルとして記録媒体に記録する。記録設定として、SDR画像のみをJPEGファイルとして記録する設定がされている場合は、JPEGファイルのみを記録する。記録設定として、JPEGファイルとRAW画像ファイルの記録が設定されている場合は、JPEGファイルを記録すると共に、SDR撮影で得たRAW画像データを符号化したデータと、JPEG画像データとを図8Aに示すRAW画像ファイル形式でRAW画像ファイルとして記録媒体に記録する。RAW画像ファイルにおいて、図8Aのデータ構造におけるImageData809は、図8B(a)に示す形式となる。すなわち、表示用の各サイズの画像は8ビットの精度で、JPEG符号化して得た符号化データを統合して1つのファイルに格納される。そして、S435にて、システム制御部50は、クイックレビュー表示処理を行い、S436に進む。このクイックレビュー表示処理の詳細は図4Bを用いて後述する。 In S434, the system control unit 50 performs SDR imaging processing and proceeds to S435. In this SDR shooting process, the system control unit 50 develops the RAW image data obtained by SDR shooting in SDR image quality, encodes the SDR image quality into JPEG to generate JPEG image data, and converts the RAW image data obtained by SDR shooting into a JPEG file in JPEG format. Record on a recording medium. If the recording setting is to record only the SDR image as a JPEG file, only the JPEG file is recorded. If recording of JPEG files and RAW image files is set as recording settings, the JPEG file is recorded and the encoded data of the RAW image data obtained by SDR shooting and the JPEG image data are shown in Figure 8A. It is recorded on a recording medium as a RAW image file in the RAW image file format shown below. In the RAW image file, ImageData 809 in the data structure of FIG. 8A has the format shown in FIG. 8B(a). That is, images of each size for display are stored in one file by integrating encoded data obtained by JPEG encoding with 8-bit precision. Then, in S435, the system control unit 50 performs quick review display processing, and proceeds to S436. Details of this quick review display process will be described later using FIG. 4B.

S436にて、システム制御部50は、LVボタン76が押されたかを判断し、押されたと判定した場合は処理をS437に、押されていないと判定した場合は処理をS438に進める。S437にて、システム制御部50は、S425でSDR画質の現像処理で得たSDR画像をH264圧縮し、SDR動画ファイルとして記録し、処理をS438に進める。 In S436, the system control unit 50 determines whether the LV button 76 has been pressed. If it is determined that it has been pressed, the process proceeds to S437; if it is determined that it has not been pressed, the process proceeds to S438. In S437, the system control unit 50 compresses the SDR image obtained by the SDR image quality development process in S425 in H264, records it as an SDR video file, and advances the process to S438.

S438にて、システム制御部50は、再生ボタン79が押されたかを判定する。システム制御部50は、再生ボタン79が押されたと判定した場合は処理をS439に、押されていないと判定した場合は処理をS440に進める。S439にて、システム制御部50は,再生モード処理行い、処理をS440に進む。この再生モード処理の詳細は図9、図10を用いて後述する。 In S438, the system control unit 50 determines whether the playback button 79 has been pressed. If the system control unit 50 determines that the playback button 79 has been pressed, the process proceeds to S439, and if it determines that it has not been pressed, the process proceeds to S440. In S439, the system control unit 50 performs playback mode processing, and proceeds to S440. Details of this reproduction mode processing will be described later using FIGS. 9 and 10.

S440にて、システム制御部50は、LVモードの終了指示があったか否かを判定し、LVモードの終了指示がないと判定した場合は処理をS401に戻し、終了指示があったと判定した場合は本処理を終了する。 In S440, the system control unit 50 determines whether or not there is an instruction to end the LV mode. If it is determined that there is no instruction to end the LV mode, the process returns to S401, and if it is determined that there is an instruction to end the LV mode, the process returns to S401. This process ends.

図4Bは、システム制御部50のクイックレビュー表示処理を示すフローチャートである。この処理は、不揮発性メモリ56に記録されたプログラムをシステムメモリ52に展開して、システム制御部50が実行することで実現するものである。 FIG. 4B is a flowchart showing quick review display processing by the system control unit 50. This process is realized by loading a program recorded in the nonvolatile memory 56 into the system memory 52 and executing it by the system control unit 50.

S451にて、システム制御部50は、クイックレビュー表示有りに設定されているかを判定し、クイックレビュー表示有りに設定されていると判定した場合は処理をS452に、クイックレビュー表示無しに設定されていると判定した場合は本処理を終了する。 In S451, the system control unit 50 determines whether the quick review display is set, and if it is determined that the quick review display is set, the process proceeds to S452, and the quick review display is set to not be displayed. If it is determined that there is, this process ends.

S452にて、システム制御部50は、HDR撮影モードでの撮影であるかを判定し、HDR撮影モードでの撮影であると判定した場合は処理をS453に、SDR撮影モードでの撮影であると判定した場合は処理をS460に進める。 In S452, the system control unit 50 determines whether the shooting is in the HDR shooting mode, and if it is determined that the shooting is in the HDR shooting mode, the process proceeds to S453, and if it is determined that the shooting is in the SDR shooting mode. If determined, the process advances to S460.

S453にて、システム制御部50は、クイックレビュー表示するデバイス(表示部28または外部機器300)がHDR対応かどうかを判定し、HDR対応でないと判定した場合は処理をS454に、HDR対応であると判定した場合は処理をS457へ進む。 In S453, the system control unit 50 determines whether the device (display unit 28 or external device 300) displaying the quick review is HDR compatible, and if it is determined that it is not HDR compatible, the process proceeds to S454. If it is determined that this is the case, the process advances to S457.

S454にて、システム制御部50は、RAW静止画撮影で撮影したかを判定し、RAW静止画撮影での撮影であると判定した場合は処理をS455に、HIEF静止画撮影の場合は処理をS456へ進める。 In S454, the system control unit 50 determines whether the shooting was performed using RAW still image shooting, and if it is determined that the shooting was performed using RAW still image shooting, the process proceeds to S455, and if it is HIEF still image shooting, the process proceeds to S455. Proceed to S456.

S455にて、システム制御部50は、HDR RAW画像内の表示用HDR画像828を、S406~S408と同等の処理でHDR→SDR変換を行い、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行い、SDR画質で表示し、処理をS463に進める。 In S455, the system control unit 50 converts the display HDR image 828 in the HDR RAW image from HDR to SDR using the same process as in S406 to S408, and outputs it to the output target device (display unit 28 or external device 300). The image is resized to a suitable size, displayed in SDR image quality, and the process proceeds to S463.

S456にて、システム制御部50は、HEIF画像内の表示用HDR画像をS406~S408と同等の処理でHDR→SDR変換を行い、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行い、SDR画質で表示し、処理をS463に進める。 In S456, the system control unit 50 converts the display HDR image in the HEIF image from HDR to SDR using the same processing as in S406 to S408, and converts the display HDR image in the HEIF image to a size suitable for the output target device (display unit 28 or external device 300). The image is resized and displayed in SDR image quality, and the process advances to S463.

S457にて、システム制御部50はRAW静止画撮影で撮影したかを判定し、RAW静止画撮影で撮影したと判定した場合は処理をS458に、HIEF静止画撮影での撮影であると判定した場合は処理をS459へ進める。S458にて、システム制御部50は、HDR RAW画像内の表示用HDR画像828を、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行い、HDR画質で表示し、処理をS463に進める。S459にて、システム制御部50は、HEIF画像内の表示用HDR画像を、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行いHDR画質で表示し、処理をS463に進める。 In S457, the system control unit 50 determines whether the image was shot using RAW still image shooting, and if it is determined that the image was shot using RAW still image shooting, the process proceeds to S458, and it is determined that the image was shot using HIEF still image shooting. If so, the process advances to S459. In S458, the system control unit 50 resizes the display HDR image 828 in the HDR RAW image to a size suitable for the output target device (display unit 28 or external device 300), displays it in HDR image quality, The process advances to S463. In S459, the system control unit 50 resizes the display HDR image in the HEIF image to a size suitable for the output target device (display unit 28 or external device 300), displays it in HDR image quality, and returns the process to S463. Proceed to.

S460では、外部機器300はRAW静止画撮影で撮影したかを判定し、RAW静止画撮影での撮影であると判定した場合は処理をS461に進み、HIEF静止画撮影での撮影であると判定した場合は処理をS462へ進める。S461にて、システム制御部50は、SDR RAW画像内の表示用SDR画像823を、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行いSDR画質で表示し、処理をS463に進める。S462にて、システム制御部50は、JPEG画像内の表示用SDR画像を、出力対象デバイス(表示部28または外部機器300)に適したサイズにリサイズ処理を行い、SDR画質で表示し、処理をS463に進める。 In S460, the external device 300 determines whether the shooting was performed using RAW still image shooting, and if it is determined that the shooting was performed using RAW still image shooting, the process proceeds to S461, and it is determined that the shooting was performed using HIEF still image shooting. If so, the process advances to S462. In S461, the system control unit 50 resizes the display SDR image 823 in the SDR RAW image to a size suitable for the output target device (display unit 28 or external device 300), displays it in SDR image quality, and processes it. Proceed to S463. In S462, the system control unit 50 resizes the display SDR image in the JPEG image to a size suitable for the output target device (display unit 28 or external device 300), displays it in SDR image quality, and then executes the processing. Proceed to S463.

S463にて、システム制御部50は、シャッターボタン61が押されたかを判定し、押されていないと判定した場合は処理をS464に、押されたと判定した場合は本処理を終了する。 In S463, the system control unit 50 determines whether the shutter button 61 has been pressed. If it is determined that the shutter button 61 has not been pressed, the process proceeds to S464. If it is determined that the shutter button 61 has been pressed, the process ends.

S464にて、システム制御部50は、クイックレビュー表示時間で設定された時間が経過したかを判定し、経過していないと判定した場合は処理をS463に戻し、経過していると判定した場合は本処理を終了する。 In S464, the system control unit 50 determines whether the time set in the quick review display time has elapsed, and if it is determined that the time has not elapsed, the process returns to S463, and if it is determined that the time has elapsed, ends this process.

図5Aは、デジタルカメラ100と外部機器300が接続された場合の、デジタルカメラ100と外部機器300の制御手順を示すシーケンス図である。ここでは、デジタルカメラ100と外部機器300がHDMI接続されるものとして説明する。 FIG. 5A is a sequence diagram showing a control procedure for the digital camera 100 and the external device 300 when the digital camera 100 and the external device 300 are connected. Here, the explanation will be given assuming that the digital camera 100 and the external device 300 are connected via HDMI.

S501にて、システム制御部50はデジタル出力I/F90を制御して+5V信号の送信開始を指示する。この結果、デジタル出力I/F90は+5V信号の送信を開始する。送信された+5V信号は接続ケーブル302の+5V信号線(不図示)を通じて、外部機器300に伝送される。外部機器300は、接続ケーブル302の+5V信号を受信し、S502へ進む。 In S501, the system control unit 50 controls the digital output I/F 90 and instructs to start transmitting the +5V signal. As a result, the digital output I/F 90 starts transmitting the +5V signal. The transmitted +5V signal is transmitted to the external device 300 through a +5V signal line (not shown) of the connection cable 302. The external device 300 receives the +5V signal from the connection cable 302, and proceeds to S502.

S502にて、外部機器300は、デジタルカメラ100が外部機器300の接続を確認したと判定し、処理をS503へ進む。 In S502, the external device 300 determines that the digital camera 100 has confirmed the connection of the external device 300, and advances the process to S503.

S503では、外部機器300は、接続ケーブル302のHPD信号線(不図示)からHPD信号の送信を開始する。デジタルカメラ100のデジタル出力I/F90は、送信されたHPD信号を、接続ケーブル302を介して受信する。デジタル出力I/F90は、HPD信号を受信すると、システム制御部50にHPD受信を通知する。 In S503, the external device 300 starts transmitting the HPD signal from the HPD signal line (not shown) of the connection cable 302. The digital output I/F 90 of the digital camera 100 receives the transmitted HPD signal via the connection cable 302. When the digital output I/F 90 receives the HPD signal, it notifies the system control unit 50 of HPD reception.

S504にて、システム制御部50は、HPDの通知によって外部機器300からの接続応答を検知し、処理をS505へ進める。 In S504, the system control unit 50 detects a connection response from the external device 300 based on the notification from the HPD, and advances the process to S505.

S505にて、システム制御部50は、デジタル出力I/F90を制御して、接続ケーブル302からEDID要求信号を送信する。送信されたEDID要求信号は接続ケーブル302のEDID信号線(不図示)を通じて、外部機器300に伝送される。外部機器300は、このEDID要求信号を受信し、処理をS506へ進める。 In S505, the system control unit 50 controls the digital output I/F 90 to transmit an EDID request signal from the connection cable 302. The transmitted EDID request signal is transmitted to the external device 300 through an EDID signal line (not shown) of the connection cable 302. The external device 300 receives this EDID request signal and advances the process to S506.

S506にて、外部機器300は、接続ケーブル302のEDID信号線(不図示)からEDIDを送信する。デジタルカメラ100のデジタル出力I/F90は、このEDIDを、接続ケーブル302を介して受信する。そして、デジタル出力I/F90は、EDIDを受信すると、システム制御部50にEDID受信を通知する。 In S506, the external device 300 transmits the EDID from the EDID signal line (not shown) of the connection cable 302. The digital output I/F 90 of the digital camera 100 receives this EDID via the connection cable 302. Then, upon receiving the EDID, the digital output I/F 90 notifies the system control unit 50 of the EDID reception.

S507にて、システム制御部50は、EDID受信の通知を受けることで、デジタル出力I/F90に対し、S506において受信したEDIDのメモリ32へのコピーを指示する。コピー完了後、システム制御部50は、メモリ32に展開されたEDIDを解析し、外部機器300が受付可能な映像信号の能力の判断処理を行い、処理をS508へ進める。 In S507, the system control unit 50 receives the notification of EDID reception and instructs the digital output I/F 90 to copy the EDID received in S506 to the memory 32. After the copy is completed, the system control unit 50 analyzes the EDID expanded in the memory 32, performs processing to determine the ability of the video signal that the external device 300 can accept, and advances the process to S508.

S508にて、システム制御部50は本体設定がHDR有効かつS507で判断した外部機器300が受付可能な映像信号の能力がHDR信号対応である場合、外部機器300にHDR信号を出力すると判断し、それ以外の場合はSDR信号を出力すると判断し、S509へ進める。 In S508, the system control unit 50 determines to output an HDR signal to the external device 300 if the main unit setting is HDR enabled and the capability of the video signal that can be received by the external device 300 determined in S507 is compatible with HDR signals, In other cases, it is determined that the SDR signal is to be output, and the process advances to S509.

S509にて、システム制御部50はデジタル出力I/F90に対し、S508で判断したHDRまたはSDR映像信号の送信開始を指示する。映像信号送信開始指示を受信したデジタル出力I/F90は接続ケーブル302を通して映像信号の送信を開始し、S510へ進める。 In S509, the system control unit 50 instructs the digital output I/F 90 to start transmitting the HDR or SDR video signal determined in S508. The digital output I/F 90 that has received the video signal transmission start instruction starts transmitting the video signal through the connection cable 302, and proceeds to S510.

S510にて、デジタルカメラ100は接続ケーブル302のTMDS信号線(不図示)へ映像信号を出力する。外部機器300は接続ケーブル302のTMDS信号線(不図示)を介して前記映像信号を受信し、S511へ進む。 In S510, the digital camera 100 outputs a video signal to the TMDS signal line (not shown) of the connection cable 302. The external device 300 receives the video signal via the TMDS signal line (not shown) of the connection cable 302, and proceeds to S511.

S511にて、外部機器300はS508において受信した映像信号を解析し、映像信号を表示できる設定にディスプレイ301の駆動を切り替え、処理をS512に進める。S512にて、外部機器300は、S508において受信した映像信号を外部機器300のディスプレイ301に表示する。 In S511, the external device 300 analyzes the video signal received in S508, switches the drive of the display 301 to a setting that can display the video signal, and advances the process to S512. In S512, the external device 300 displays the video signal received in S508 on the display 301 of the external device 300.

図5Bは、デジタルカメラ100と外部機器300の映像出力をSDR画像からHDR画像に切り替える処理を示すシーケンス図である。 FIG. 5B is a sequence diagram showing a process of switching the video output of the digital camera 100 and the external device 300 from an SDR image to an HDR image.

このシーケンスでは、デジタルカメラ100と外部機器300との接続は図5Aで説明したシーケンスで完了しているものとする。 In this sequence, it is assumed that the connection between the digital camera 100 and the external device 300 has been completed in the sequence explained in FIG. 5A.

S521にて、システム制御部50はデジタル出力I/F90に対しSDR映像信号の送信を指示し、S522へ進む。 In S521, the system control unit 50 instructs the digital output I/F 90 to transmit the SDR video signal, and the process proceeds to S522.

S522にて、デジタルカメラ100は接続ケーブル302のTMDS信号線(不図示)へSDR映像信号を出力する。外部機器300は、接続ケーブル302のTMDS信号線(不図示)を介してSDR映像信号を受信し、処理をS523へ進める。 In S522, the digital camera 100 outputs the SDR video signal to the TMDS signal line (not shown) of the connection cable 302. The external device 300 receives the SDR video signal via the TMDS signal line (not shown) of the connection cable 302, and advances the process to S523.

S523にて、外部機器300は、S522において受信したSDR映像を外部機器300のディスプレイ301に表示する。 In S523, the external device 300 displays the SDR video received in S522 on the display 301 of the external device 300.

デジタルカメラ100がSDR信号を出力している間は、S521からS523を繰り返すことで、外部機器300のディスプレイ301にSDR画像が表示されることになる。 While the digital camera 100 is outputting the SDR signal, the SDR image is displayed on the display 301 of the external device 300 by repeating S521 to S523.

デジタルカメラ100が外部機器300への映像出力をSDR画像からHDR画像に切り替える場合、S524以降の処理が実行される。 When the digital camera 100 switches video output to the external device 300 from an SDR image to an HDR image, the processes from S524 onwards are executed.

S524にて、システム制御部50はデジタル出力I/F90に対しSDR映像信号の停止を指示し、処理をS525へ進める。 In S524, the system control unit 50 instructs the digital output I/F 90 to stop the SDR video signal, and advances the process to S525.

S525にて、システム制御部50は、接続ケーブル302のTMDS信号線(不図示)へ映像信号を停止する。外部機器300は接続ケーブル302のTMDS信号線(不図示)を介してSDR映像信号の受信を停止し、処理をS526へ進める。 In S525, the system control unit 50 stops transmitting the video signal to the TMDS signal line (not shown) of the connection cable 302. The external device 300 stops receiving the SDR video signal via the TMDS signal line (not shown) of the connection cable 302, and advances the process to S526.

S526にて、外部機器300は、デジタルカメラ100からの映像の受信が停止したため、外部機器300のディスプレイ301への映像の表示を停止する。 In S526, the external device 300 stops displaying the video on the display 301 of the external device 300 because reception of the video from the digital camera 100 has stopped.

S527にて、システム制御部50は、デジタル出力I/F90に対しHDR映像信号の送信を指示し、処理をS528へ進める。 In S527, the system control unit 50 instructs the digital output I/F 90 to transmit the HDR video signal, and advances the process to S528.

S528にて、システム制御部50は、接続ケーブル302のTMDS信号線(不図示)へHDR映像信号を出力する。外部機器300は、接続ケーブル302のTMDS信号線(不図示)を介してHDR映像信号を受信し、処理をS529へ進める。 In S528, the system control unit 50 outputs the HDR video signal to the TMDS signal line (not shown) of the connection cable 302. The external device 300 receives the HDR video signal via the TMDS signal line (not shown) of the connection cable 302, and advances the process to S529.

S529にて、外部機器300はS528において受信した映像信号を解析し、HDR映像信号を表示できる設定にディスプレイ301の駆動を切り替えS530に進める。 In S529, the external device 300 analyzes the video signal received in S528, switches the drive of the display 301 to a setting that can display the HDR video signal, and proceeds to S530.

S530にて、外部機器300はS528において受信したHDR映像信号を外部機器300のディスプレイ301に表示する。 In S530, the external device 300 displays the HDR video signal received in S528 on the display 301 of the external device 300.

この時、S529からS530の処理時間は、外部機器300の性能によって異なり、映像が表示されるまで1秒から5秒程度の時間がかかる。 At this time, the processing time from S529 to S530 varies depending on the performance of the external device 300, and it takes about 1 to 5 seconds until the video is displayed.

図5Cは、デジタルカメラ100と外部機器300の映像出力をHDR画像からSDR画像に切り替える処理を示すシーケンス図である。 FIG. 5C is a sequence diagram showing a process of switching the video output of the digital camera 100 and the external device 300 from an HDR image to an SDR image.

このシーケンスでは、デジタルカメラ100と外部機器300との接続は図5Aで説明したシーケンスで完了しているものとする。 In this sequence, it is assumed that the connection between the digital camera 100 and the external device 300 has been completed in the sequence explained in FIG. 5A.

S541にて、システム制御部50は、デジタル出力I/F90に対しHDR映像信号の送信を指示し、処理をS542へ進める。S542にて、システム制御部50は、接続ケーブル302のTMDS信号線(不図示)へHDR映像信号を出力する。また、外部機器300は接続ケーブル302のTMDS信号線(不図示)を介してHDR映像信号を受信し、処理をS523へ進める。 In S541, the system control unit 50 instructs the digital output I/F 90 to transmit an HDR video signal, and advances the process to S542. In S542, the system control unit 50 outputs the HDR video signal to the TMDS signal line (not shown) of the connection cable 302. Further, the external device 300 receives the HDR video signal via the TMDS signal line (not shown) of the connection cable 302, and advances the process to S523.

S543にて、外部機器300は、S542にて受信したHDR映像を外部機器300のディスプレイ301に表示する。 In S543, the external device 300 displays the HDR video received in S542 on the display 301 of the external device 300.

デジタルカメラ100がHDR信号を出力している間は、S541からS543を繰り返すことで、外部機器300のディスプレイ301にHDR画像が表示されることになる。 While the digital camera 100 is outputting the HDR signal, an HDR image is displayed on the display 301 of the external device 300 by repeating S541 to S543.

デジタルカメラ100が外部機器300への映像出力をHDR画像からSDR画像に切り替える場合にはS544以降の処理が実行される。 When the digital camera 100 switches the video output to the external device 300 from an HDR image to an SDR image, processing from S544 onwards is executed.

S544にて、システム制御部50はデジタル出力I/F90に対しHDR映像信号の停止を指示し、処理をS545へ進める。S545にて、システム制御部50は、接続ケーブル302のTMDS信号線(不図示)へ映像信号を停止する。外部機器300は接続ケーブル302のTMDS信号線(不図示)を介してHDR映像信号の受信を停止し、処理をS546へ進める。 In S544, the system control unit 50 instructs the digital output I/F 90 to stop the HDR video signal, and advances the process to S545. In S545, the system control unit 50 stops transmitting the video signal to the TMDS signal line (not shown) of the connection cable 302. The external device 300 stops receiving the HDR video signal via the TMDS signal line (not shown) of the connection cable 302, and advances the process to S546.

S546にて、外部機器300は、デジタルカメラ100からの映像の受信が停止したため、外部機器300のディスプレイ301への映像の表示を停止する。 In S546, the external device 300 stops displaying the video on the display 301 of the external device 300 because reception of the video from the digital camera 100 has stopped.

S547にて、システム制御部50は、デジタル出力I/F90に対しSDR映像信号の送信を指示し、処理をS548へ進める。 In S547, the system control unit 50 instructs the digital output I/F 90 to transmit the SDR video signal, and advances the process to S548.

S548にて、システム制御部50は、接続ケーブル302のTMDS信号線(不図示)へSDR映像信号を出力する。外部機器300は、接続ケーブル302のTMDS信号線(不図示)を介してSDR映像信号を受信し、処理をS549へ進める。 In S548, the system control unit 50 outputs the SDR video signal to the TMDS signal line (not shown) of the connection cable 302. The external device 300 receives the SDR video signal via the TMDS signal line (not shown) of the connection cable 302, and advances the process to S549.

S549にて、外部機器300はS548にて受信した映像信号を解析し、SDR映像信号を表示できる設定にディスプレイ301の駆動を切り替え、処理をS530に進める。S550にて、外部機器300はS528において受信したSDR映像信号を外部機器300のディスプレイ301に表示する。 In S549, the external device 300 analyzes the video signal received in S548, switches the drive of the display 301 to a setting that can display the SDR video signal, and advances the process to S530. In S550, the external device 300 displays the SDR video signal received in S528 on the display 301 of the external device 300.

なお、S549からS550の処理時間は、外部機器300の性能によって異なり、映像が表示されるまで1秒から5秒程度の時間がかかる。 Note that the processing time from S549 to S550 varies depending on the performance of the external device 300, and it takes about 1 to 5 seconds until the video is displayed.

図6A、6Bは、図4AのS411,427の撮影メニュー処理の詳細を示すフローチャートである。この処理は、不揮発性メモリ56に記録されたプログラムをシステムメモリ52に展開してシステム制御部50が実行することで実現する。 6A and 6B are flowcharts showing details of the shooting menu processing in S411 and S427 of FIG. 4A. This processing is realized by loading a program recorded in the nonvolatile memory 56 into the system memory 52 and executing it by the system control unit 50.

S601にて、システム制御部50は、ユーザによりHDR撮影モードが有効に設定されているかに基づき、HDR撮影するか否かを判定する。システム制御部50は、HDR撮影しないと判定した場合は処理をS602に進み、通常のSDR撮影時のメニューを表示する。また、システム制御部50は、HDR撮影すると判定した場合は処理をS602に進め、HDR撮影時のメニューを表示する。このS603で、HDR撮影時に併用させない機能についてグレーアウトなりの無効状態にしてメニュー上に表示させる。 In S601, the system control unit 50 determines whether to perform HDR photography based on whether the HDR photography mode is enabled by the user. When the system control unit 50 determines that HDR photography is not to be performed, the process proceeds to S602, and a menu for normal SDR photography is displayed. Further, if the system control unit 50 determines that HDR shooting is to be performed, the process proceeds to S602, and a menu for HDR shooting is displayed. In step S603, functions that are not used in conjunction with HDR shooting are grayed out or disabled and displayed on the menu.

S604にて、システム制御部50は、ユーザにより、HDR撮影を行うか否かの設定項目が選択されたか否かを判定する。選択されたと判定した場合、システム制御部50は処理をS605に、そうでない場合は処理をS611に進める。S605にて、システム制御部50は、ユーザによりHDR撮影を行うか否かの設定が有効に切り替わったか否かを判定する。有効に切り替わったと判定された場合は、システム制御部50は処理をS606に進み、そうでない場合は処理をS607に進める。S606にて、システム制御部50は、HDR撮影を行うか否かの設定を有効に変更し、設定値をシステムメモリ52に記憶する。 In S604, the system control unit 50 determines whether the user has selected a setting item for whether or not to perform HDR photography. If it is determined that the item has been selected, the system control unit 50 advances the process to S605; otherwise, the process advances to S611. In S605, the system control unit 50 determines whether the user has enabled the setting of whether or not to perform HDR photography. If it is determined that the switching has been enabled, the system control unit 50 advances the process to S606; otherwise, the process advances to S607. In S606, the system control unit 50 changes the setting of whether or not to perform HDR photography to valid, and stores the setting value in the system memory 52.

HDR撮影を行うか否かの設定が有効の時のS607にて、システム制御部50は、ユーザによりHDRアシスト表示設定が変更に切り替わったか否かを判定する。変更に切り替わったと判定された場合は処理をS608に進め、そうでない場合は処理をS609に進める。尚、HDR撮影を行うか否かの設定が無効の時はHDRアシスト表示設定を変更できないことが望ましい。 In S607 when the setting for whether or not to perform HDR photography is valid, the system control unit 50 determines whether the HDR assist display setting has been changed by the user. If it is determined that the change has been made, the process advances to S608; otherwise, the process advances to S609. Note that it is desirable that the HDR assist display setting cannot be changed when the setting for whether or not to perform HDR photography is disabled.

S608にて、システム制御部50は、撮影時のHDRアシスト表示設定をするか否かに変更し、設定値をシステムメモリ52に記憶する。HDRアシスト表示設定「する」のバリエーションは2つ以上あっても構わない。 In S<b>608 , the system control unit 50 changes whether or not to set the HDR assist display during shooting, and stores the setting value in the system memory 52 . There may be two or more variations of the HDR assist display setting "Yes".

なお、このように、メニュー画面において、HDR撮影設定やHDRアシスト表示設定を変更した場合には、ライブビュー画面へ遷移したタイミングで表示設定の変更結果を表示に反映させてもよい。メニュー画面ではなくライブビュー画面において、操作部70の特定のボタンを使用する等して、それらの設定を変更した場合には、その変更したタイミング(そのボタンを押下したタイミング)で変更結果を表示に反映させてもよい。 Note that when the HDR shooting settings and HDR assist display settings are changed on the menu screen in this manner, the results of changing the display settings may be reflected in the display at the timing of transition to the live view screen. When those settings are changed by using a specific button on the operation unit 70 on the live view screen instead of the menu screen, the change results are displayed at the timing of the change (the timing when the button is pressed). It may be reflected in

S609にて、システム制御部50は、ユーザによりHDR設定メニュー表示処理の終了指示がされたか否かを判定する。終了指示がされたと判定した場合、システム制御部50は処理をS610に進める。 In S609, the system control unit 50 determines whether the user has given an instruction to end the HDR setting menu display process. If it is determined that a termination instruction has been given, the system control unit 50 advances the process to S610.

S610にて、システム制御部50は、ユーザにより、静止画記録画質の設定項目が選択されたか否かを判定する。システム制御部50は、その選択があったと判定した場合は処理をS611に進み、そうでない場合は処理をS651に進める。 In S610, the system control unit 50 determines whether the still image recording quality setting item has been selected by the user. If the system control unit 50 determines that the selection has been made, the process proceeds to S611; otherwise, the process proceeds to S651.

S611にて、システム制御部50は、ユーザによりHDR撮影の指示入力があった否かの設定を判定する。システム制御部50は、HDR撮影の指示入力があったと判定した場合は処理をS612に、その指示入力が無いと判定した場合は処理をS614に進める。 In S611, the system control unit 50 determines whether or not the user has input an instruction for HDR photography. If the system control unit 50 determines that an HDR photography instruction has been input, the process proceeds to S612, and if it determines that no such instruction has been input, the process proceeds to S614.

S612にて、システム制御部50はHDR撮影用の画面表示を行い、S613にて、HDR撮影用の記録画質のユーザ選択を受け付ける。HDR撮影用の設定記録画質としては、ファイルフォーマットとして、RAW、HDR静止画ファイルおよび、RAW+HDR静止画ファイルの2画像同時出力を用意する。また画像サイズについても、センサー読み出し時の画素数に近いLargeから、少し小さいMiddle、さらに小さいSmallなどがある。さらに、ファイルサイズ容量を下げるために圧縮するための圧縮率も高画質(低圧縮率)から標準(高圧縮率)、低画質(高圧縮率)などがある。 In S612, the system control unit 50 displays a screen for HDR shooting, and in S613 accepts a user's selection of the recording quality for HDR shooting. As the recording quality setting for HDR photography, two image simultaneous outputs of RAW, HDR still image file, and RAW+HDR still image file are prepared as file formats. Regarding the image size, there are various sizes such as Large, which is close to the number of pixels at the time of sensor readout, Middle, which is slightly smaller, and Small, which is even smaller. Furthermore, compression rates for reducing file size capacity range from high image quality (low compression rate) to standard (high compression rate), low image quality (high compression rate), and so on.

S614にて、システム制御部50は、SDR撮影用の画面表示を行い、S615にてSDR撮影用の記録画質のユーザ選択を受け付ける。SDR撮影用の設定記録画質としても、HDR撮影用と同様の選択肢を用意する。 In S614, the system control unit 50 displays a screen for SDR imaging, and in S615 accepts the user's selection of the recording quality for SDR imaging. The same options as for HDR photography are provided for the recording image quality settings for SDR photography.

S651にて、システム制御部50は、ユーザにより、動画記録画質の設定項目が選択されたか否かを判定する。システム制御部50は、動画記録画質の設定項目が選択されたと判定した場合は処理をS652に進み、そうでない場合は処理をS657に進める。 In S651, the system control unit 50 determines whether the user has selected a setting item for video recording quality. If the system control unit 50 determines that the video recording quality setting item has been selected, the process proceeds to S652; otherwise, the process proceeds to S657.

S652にて、システム制御部50は、ユーザによるHDR撮影を行うか否かの設定を判定する。設定が行うことを示している場合、システム制御部50は処理をS653に、そうでない場合は処理をS655に進める。 In S652, the system control unit 50 determines the user's setting as to whether or not to perform HDR photography. If the setting indicates that the setting is to be performed, the system control unit 50 advances the process to S653; otherwise, the process advances to S655.

S653にて、システム制御部50はHDR撮影用の画面表示を行い、S654にてHDR撮影用の記録画質のユーザ選択を受け付ける。HDR撮影用の設定記録画質としては、ファイルフォーマットとして、RAW動画、RAW動画+プロキシ動画、HDR動画ファイルおよび、RAW+プロキシ動画+HDR動画ファイルの3動画同時出力を用意する。また画像サイズについても、8K、4K、FullHD、HD、VGAなどがある。さらに、ファイルサイズを下げるための圧縮率も、ALL-Iなどの高画質(低圧縮率)からIPBなどの標準~低画質(高圧縮率)などがある。その他、フレームレートの選択、NTSC/PALなどの放送方式の選択もある。 In S653, the system control unit 50 displays a screen for HDR shooting, and in S654 accepts a user selection of the recording quality for HDR shooting. As the recording quality setting for HDR shooting, simultaneous output of three moving images is prepared as file format: RAW moving image, RAW moving image + proxy moving image, HDR moving image file, and RAW + proxy moving image + HDR moving image file. Also, regarding image sizes, there are 8K, 4K, FullHD, HD, VGA, etc. Furthermore, compression rates for reducing file size range from high image quality (low compression rate) such as ALL-I to standard to low image quality (high compression rate) such as IPB. In addition, there are frame rate selections and broadcasting format selections such as NTSC/PAL.

S655にて、システム制御部50は、S653と同様にSDR撮影用の画面表示を行い、S656にてSDR撮影用の記録画質のユーザ選択を受け付ける。SDR撮影用の設定記録画質としても、HDR撮影用と同様の選択肢を用意する。 In S655, the system control unit 50 displays a screen for SDR imaging as in S653, and in S656 accepts the user's selection of the recording quality for SDR imaging. The same options as for HDR photography are provided for the recording quality settings for SDR photography.

S657にて、システム制御部50は、ユーザにより、HDR出力の設定項目が選択されたか否かを判定する。システム制御部50は、ユーザにより、HDR出力の設定項目が選択されたと判定した場合は処理をS658に、そうでない場合は処理をS660に進める。S658にて、システム制御部50は、ユーザによりHDR出力設定が有効に切り替わったか否かを判定し、有効に切り替わったと判定した場合は処理をS659に、そうでない場合は処理をS660に進める。S659にて、システム制御部50は、HDR出力設定を有効に変更し、設定値をシステムメモリ52に記憶する。 In S657, the system control unit 50 determines whether the HDR output setting item has been selected by the user. If the system control unit 50 determines that the HDR output setting item has been selected by the user, the process proceeds to S658; otherwise, the process proceeds to S660. In S658, the system control unit 50 determines whether the HDR output setting has been enabled by the user. If it is determined that the HDR output setting has been enabled, the process proceeds to S659; otherwise, the process proceeds to S660. In S659, the system control unit 50 changes the HDR output setting to valid and stores the setting value in the system memory 52.

S660にて、システム制御部50は、ユーザにより、再生時のビューアシストの設定項目が選択されたか否かを判定する。システム制御部50は、再生時のビューアシストの設定項目が選択されたと判定した場合は処理をS661に、そうでない場合は処理をS663に進める。S661にて、システム制御部50は、ユーザにより再生時のビューアシストの設定が有効に切り替わったか否かを判定し、有効に切り替わったと判定した場合は処理をS662に、そうでない場合は処理をS663に進める。S662にて、システム制御部50は、再生時のビューアシスト設定を有効に変更し、設定値をシステムメモリ52に記憶する。 In S660, the system control unit 50 determines whether the user has selected a setting item for view assist during playback. If the system control unit 50 determines that the view assist setting item during playback has been selected, the process proceeds to S661; otherwise, the process proceeds to S663. In S661, the system control unit 50 determines whether the view assist setting during playback has been switched to enabled by the user, and if it is determined that the setting has been switched to enabled, the process proceeds to S662; otherwise, the process proceeds to S663. Proceed to. In S662, the system control unit 50 changes the view assist setting during playback to valid, and stores the setting value in the system memory 52.

S663にて、システム制御部50は、ユーザにより、転送時のSDR変換の設定項目が選択されたか否かを判定し、選択されたと判定した場合は処理をS664に、そうでない場合は処理をS665に進める。S664にて、システム制御部50は、ユーザにより転送時のSDR変換の設定が有効に切り替わったか否かを判定し、有効に切り替わったと判定された場合はS664にて、転送時のSDR変換設定を有効に変更し、処理をS665に進める。 In S663, the system control unit 50 determines whether the setting item for SDR conversion at the time of transfer has been selected by the user, and if it is determined that it has been selected, the process proceeds to S664; otherwise, the process proceeds to S665. Proceed to. In S664, the system control unit 50 determines whether the SDR conversion setting at the time of transfer has been switched to valid by the user, and if it is determined that the setting has been switched to valid, the system control unit 50 changes the SDR conversion setting at the time of transfer to S664. The setting is changed to valid, and the process advances to S665.

S665にて、システム制御部50は、ユーザにより、その他HDR撮影に関連する設定項目が選択されたか否かを判定し、選択されたと判定した場合は処理をS666に、そうでない場合は処理をS667に進める。S666にて、システム制御部50は、その他の処理を有効に変更し、処理をS667に進める。 In S665, the system control unit 50 determines whether the user has selected any other setting item related to HDR shooting, and if it is determined that it has been selected, the process proceeds to S666; otherwise, the process proceeds to S667. Proceed to. In S666, the system control unit 50 changes other processes to valid, and advances the process to S667.

S667にて、システム制御部50は、ユーザにより、メニューを抜ける指示があったか否かを判定し、抜けないと判定した場合に処理をS660に戻し、抜けると判定した場合は本処理を終了する。 In S667, the system control unit 50 determines whether the user has given an instruction to exit the menu. If it is determined that the menu cannot be exited, the process returns to S660, and if it is determined that the menu can be exited, the process ends.

図7は、システム制御部50のHDR撮影処理の詳細を示すフローチャートである。メモリ32に書き込まれたRAWデータを画像処理部24でHDR現像するフローである。 FIG. 7 is a flowchart showing details of the HDR imaging process by the system control unit 50. This is a flow in which RAW data written in the memory 32 is subjected to HDR development by the image processing unit 24.

デジタルカメラやデジタルビデオカメラ等の撮像装置は、撮影時の光源に応じて撮影画像の色調を補正するホワイトバランス機能を備えている。ホワイトバランス機能は、光源(晴天や曇天等の自然光源、蛍光灯や白熱灯等の人工光源)によって変わる色調の違いを補正し、光源に関わらず白さが同じに見えるようにする機能である。S701~S703において、ホワイトバランス処理に必要なホワイトバランス係数が算出されることになる。また、本実施形態では、空などの高輝度領域の階調をなるべく白飛びさせないよう、人物などの明るさが適正となる露出よりも低い露出で撮影するものとする。 Imaging devices such as digital cameras and digital video cameras are equipped with a white balance function that corrects the color tone of a photographed image depending on the light source at the time of photographing. The white balance function is a function that corrects differences in color tone that change depending on the light source (natural light sources such as sunny or cloudy skies, artificial light sources such as fluorescent lights and incandescent lights), and makes white appear the same regardless of the light source. . In S701 to S703, white balance coefficients necessary for white balance processing are calculated. Furthermore, in this embodiment, in order to prevent blown-out gradations in high-brightness areas such as the sky as much as possible, the image is photographed at a lower exposure than the exposure at which the brightness of a person or the like is appropriate.

まずS701にて、システム制御部50は、メモリ制御部15を介して、RAW画像データを取得する。 First, in S701, the system control unit 50 acquires RAW image data via the memory control unit 15.

S702にて、システム制御部50は、ホワイトバランス係数を算出するために取得したRAW画像データに対して白らしい画素を判定する、白サーチ枠内判定処理を行う。 In S702, the system control unit 50 performs a white search frame determination process to determine which pixels appear to be white in the RAW image data acquired to calculate the white balance coefficient.

S703にて、システム制御部50は、白サーチ枠内判定結果に基づいてホワイトバランス用係数を算出する。 In S703, the system control unit 50 calculates a white balance coefficient based on the white search frame determination result.

S702,703の処理の詳細について図12のフローチャートを用いて説明する。 Details of the processing in S702 and S703 will be explained using the flowchart of FIG. 12.

RAW画像データは、先に説明したように、1つの画素はR,G,Bのいずれか1つの成分の信号しか有さない。白サーチを行うため、システム制御部50は、色信号に変換する必要があるためデベイヤ処理S1201を行い、1画素につきR,G,Bの全チャンネルの信号を生成する。デベイヤの方法は幾つかあるが、例えばローパスフィルターによる線形補間で信号生成できる。RAW画像データは一般的にノイズによる影響があるため光学的黒(Optical Black)は、0ではなく値を持っている。よってシステム制御部50は、デベイヤ後の信号からOB分を減算する処理(S1202)を行う。そして、システム制御部50は、取得したRGB信号から色信号Cx、Cyを次式により算出する(S1203)。 In RAW image data, as described above, one pixel has only one component signal of R, G, or B. In order to perform a white search, the system control unit 50 performs debayer processing S1201 to generate signals of all R, G, and B channels for each pixel because it is necessary to convert them into color signals. There are several debayer methods, but for example, a signal can be generated by linear interpolation using a low-pass filter. Since RAW image data is generally affected by noise, optical black has a value rather than 0. Therefore, the system control unit 50 performs a process of subtracting the OB portion from the debayered signal (S1202). Then, the system control unit 50 calculates color signals Cx and Cy from the acquired RGB signals using the following equations (S1203).

Figure 2024015185000002
ここで、G1,G2は、ベイヤ配列の2×2画素における2つのG成分値である。また、Cxは色温度を表し、Cyは緑方向補正量を表している。また、Yiは輝度値である。
Figure 2024015185000002
Here, G 1 and G 2 are two G component values at 2×2 pixels in the Bayer array. Further, C x represents the color temperature, and C y represents the green direction correction amount. Moreover, Y i is a luminance value.

図13に、Cx-Cy平面を図示する。同図に示すように、撮像装置において予め白色を高色温度下(例えば日中など)から低色温度下(例えば日暮れ時など)まで撮影し、色評価値Cx、Cyを座標上にプロットすることで、白色を検出するための基準となる白軸1200を定めることができる。実際の光源において白色には若干のばらつきが存在するため、システム制御部50は、白軸1200の両側に或る程度の幅を持たせる(S1204)。この白軸に幅を持たせた枠を白サーチ枠1201と呼ぶ。 FIG. 13 illustrates the C x -C y plane. As shown in the figure, white is previously photographed using an imaging device from a high color temperature (for example, during the day) to a low color temperature (for example, at sunset), and the color evaluation values Cx and Cy are plotted on the coordinates. By doing so, it is possible to define a white axis 1200 that serves as a reference for detecting white. Since there is some variation in white color in an actual light source, the system control unit 50 provides a certain width on both sides of the white axis 1200 (S1204). This frame with a width on the white axis is called a white search frame 1201.

S1205にて、システム制御部50は、デベイヤ後の各画素についてCx-Cy座標系にプロットし、白サーチ枠内に入っているかどうかを判定する。S1206にて、システム制御部50は、白サーチ枠内に入った画素の中で、積分対象とする画素を輝度方向で制限する明暗除外処理を行う。これは暗すぎる色はノイズの影響を受けやすくなるのでホワイトバランス係数の算出精度が低下してしまうことを防ぐために行う。同様に明るすぎる色は各チャンネルのいずれかがセンサー飽和することでR/GもしくはB/G比のバランスが崩れ正しい色から離れていってしまいホワイトバランス係数の算出精度が低下してしまうことを防ぐために行う。このとき、SDRとHDRでは明暗除外処理の対象とする画素の輝度を異ならせる。つまり、SDRとHDRとで後述するホワイトバランス係数の算出に用いる画素を異ならせる。これはSDRに比べてHDRの方が高輝度域の再現性が高いことによる。本実施形態では、SDRでは明度側が例えば+1EVまでの明るさまで対象とするのに対して、HDRでは+2EVまでの明るさまで対象とすることでよりHDRに最適化されたホワイトバランス係数を算出することが可能となる。 In S1205, the system control unit 50 plots each pixel after debayering on the C x -C y coordinate system, and determines whether it is within the white search frame. In S1206, the system control unit 50 performs brightness exclusion processing to limit pixels to be integrated in the luminance direction among the pixels within the white search frame. This is done to prevent the accuracy of calculating the white balance coefficient from deteriorating, since colors that are too dark are susceptible to noise. Similarly, if a color is too bright, the sensor saturation of one of the channels will cause the R/G or B/G ratio to become unbalanced and the color will move away from the correct color, reducing the accuracy of calculating the white balance coefficient. Do it to prevent. At this time, the brightness of the pixel targeted for brightness exclusion processing is made different between SDR and HDR. In other words, pixels used for calculating a white balance coefficient, which will be described later, are different between SDR and HDR. This is because HDR has higher reproducibility in high brightness regions than SDR. In this embodiment, while SDR targets brightness up to +1EV, HDR targets brightness up to +2EV, making it possible to calculate a white balance coefficient more optimized for HDR. It becomes possible.

S1207にて、システム制御部50は、白サーチ枠内でかつ明暗除外処理のなされたCx、Cyからそれぞれの色評価値の積分値SumR、SumG、SumBを算出する。そして、S1208にて、システム制御部50は、算出した積分値から、次式によりホワイトバランス係数WBCoR、WBCoG、WBCoBを算出する。 In S1207, the system control unit 50 calculates integral values SumR, SumG, and SumB of the respective color evaluation values from C x and C y that are within the white search frame and have undergone the brightness exclusion process. Then, in S1208, the system control unit 50 calculates white balance coefficients WBCo R , WBCo G , and WBCo B from the calculated integral values using the following equations.

Figure 2024015185000003
上式における右辺の“1024”は、1色成分が10ビット精度となっているためである。
Figure 2024015185000003
"1024" on the right side of the above equation is because one color component has 10-bit precision.

尚、ホワイトバランス係数はユーザによって設定されている撮影モード(SDR撮影もしくはHDR撮影)用の値を算出してもよいし、SDR用、HDR用の両方を算出してもよい。 Note that the white balance coefficient may be calculated as a value for the shooting mode (SDR shooting or HDR shooting) set by the user, or may be calculated for both SDR and HDR.

図7の説明に戻る。S704~S706において、システム制御部50は、階調補正処理に必要な階調補正テーブルを算出する。階調補正の詳細を図14のフローチャートを用いて説明する。 Returning to the explanation of FIG. 7. In S704 to S706, the system control unit 50 calculates a tone correction table necessary for tone correction processing. The details of the gradation correction will be explained using the flowchart of FIG. 14.

S1221にて、システム制御部50は、図7のS701~S703の処理で生成したWB係数を用いてWB処理を行う。S1222にて、システム制御部50は、ヒストグラム検出を行う。具体的には、S1221で得られたホワイトバランスのゲイン値を画像データ全体に適用し、さらにガンマ補正処理を行った画素値について、輝度情報としてヒストグラムを作成する。ガンマ補正処理は公知のルックアップテーブルを用いる方法で良いが、現像で用いるものと同じガンマ特性を用いることが好ましい。ただし、処理時間やメモリ量の節約のために、折れ線で近似したガンマ特性など、簡略化したガンマ特性を用いてもよい。なお、画像の端の部分は、一般に重要でないことが多く、また撮像レンズによっては周辺光量の低下の影響を受ける部分であるため、周縁部の画素を除いてヒストグラムを作成してもよい。 In S1221, the system control unit 50 performs WB processing using the WB coefficients generated in the processing of S701 to S703 in FIG. In S1222, the system control unit 50 performs histogram detection. Specifically, the white balance gain value obtained in S1221 is applied to the entire image data, and a histogram is created as luminance information for the pixel values subjected to gamma correction processing. The gamma correction process may be performed using a known look-up table, but it is preferable to use the same gamma characteristics as those used in development. However, in order to save processing time and memory capacity, a simplified gamma characteristic, such as a gamma characteristic approximated by a polygonal line, may be used. Note that the edge portion of the image is generally not important in many cases, and is affected by a decrease in the amount of peripheral light depending on the imaging lens, so the histogram may be created excluding pixels in the peripheral portion.

S1223にて、システム制御部50は、顔検出前処理を行う。これは画像データに対して縮小処理、ガンマ処理等を施して、顔を容易に検出しやすいようにする処理である。S1224にて、システム制御部50は、前処理した画像データに対し、公知の方法を用いて顔検出処理を実行する。この顔検出処理により、顔と思われる領域(顔領域)の位置とサイズ、検出の信頼度とが得られる。 In S1223, the system control unit 50 performs face detection preprocessing. This is a process that performs reduction processing, gamma processing, etc. on image data to make it easier to detect faces. In S1224, the system control unit 50 performs face detection processing on the preprocessed image data using a known method. Through this face detection processing, the position and size of an area that is considered to be a face (face area), and the reliability of detection are obtained.

S1225にて、システム制御部50は、露出補正量(低下量)を補うための階調補正量(階調補正量(A))を第1の階調補正量として算出する。この際、画像の暗部については適正露出になるようにする一方、予め定めた輝度レベル以上の高輝度画素については補正されない(少なくとも、露出補正量を完全には補わない)、入出力特性の階調補正量を算出する。これにより、階調補正後の明部が白トビすることをさらに抑制することができる。この階調補正量は、露出補正量に応じた複数の補正テーブルとして予め用意しておくことができる。
S1226にて、システム制御部50は、S1224の顔検出処理により検出された顔領域のうち、信頼度があらかじめ設定した評価閾値より高い顔領域がある場合に、顔が検出されたと判定する。システム制御部50は、顔が検出されたと判定した場合は処理をS1227に、顔が検出されなかったと判定した場合は処理をS1231に進める。
In S1225, the system control unit 50 calculates a gradation correction amount (gradation correction amount (A)) to compensate for the exposure correction amount (decrease amount) as a first gradation correction amount. At this time, while ensuring appropriate exposure for dark areas of the image, high-brightness pixels that are higher than a predetermined brightness level are not corrected (at least, the exposure correction amount is not completely compensated for), and the input/output characteristics are not corrected. Calculate the key correction amount. Thereby, it is possible to further suppress overexposure in bright areas after gradation correction. This gradation correction amount can be prepared in advance as a plurality of correction tables corresponding to the exposure correction amount.
In S1226, the system control unit 50 determines that a face has been detected if there is a face area whose reliability is higher than a preset evaluation threshold among the face areas detected by the face detection process in S1224. If the system control unit 50 determines that a face has been detected, the process proceeds to S1227, and if it determines that a face has not been detected, the process proceeds to S1231.

S1227にて、システム制御部50は、検出された顔領域の一部の領域を、顔輝度取得領域として算出する。顔輝度取得領域は、顔の明るい部分の輝度を取得するための領域であり、その数や位置などに関して特に制限はない。S1228にて、システム制御部50は、顔輝度取得領域の各々について、含まれるR画素、G画素、B画素の種類ごとに平均値を求める。さらにシステム制御部50は、RGB画素の各平均値に対し、ヒストグラム検出と同様にしてホワイトバランスのゲイン値を適用し、ガンマ補正を行った後、以下の式により輝度値Yに変換する。
Y=0.299×R+0.587×G+0.114×B
なお、ヒストグラム検出および顔検出において適用するホワイトバランスのゲイン値は、同一画像データに対してWB処理で使用したゲイン値を用いることが好ましい。輝度ガンマも、理想的には現像と同じものを用いるのが好ましいが、処理時間やメモリ量の節約のために、折れ線で近似したガンマ特性など、簡略化したガンマ特性を用いてもよい。
In S1227, the system control unit 50 calculates a part of the detected face area as a face brightness acquisition area. The face brightness acquisition area is an area for acquiring the brightness of bright parts of the face, and there are no particular restrictions on the number or position thereof. In S1228, the system control unit 50 calculates an average value for each type of R pixel, G pixel, and B pixel included in each face brightness acquisition area. Further, the system control unit 50 applies a white balance gain value to each average value of the RGB pixels in the same manner as in histogram detection, performs gamma correction, and then converts it into a brightness value Y using the following formula.
Y=0.299×R+0.587×G+0.114×B
Note that the white balance gain value applied in histogram detection and face detection is preferably the gain value used in WB processing for the same image data. Ideally, it is preferable to use the same luminance gamma as that for development, but in order to save processing time and memory capacity, a simplified gamma characteristic, such as a gamma characteristic approximated by a polygonal line, may be used.

S1229にて、システム制御部50は、S1228で顔輝度取得領域の各々について求めた輝度値を、適正露出時を想定した値に変換する。これは、画像データが、適正露出よりも低い露出で撮像されていることから、適正露出で撮像した場合よりも顔の輝度が低く検出されることを補正する処理である。輝度値の変換は、露出制御が決定した露出補正量(低下量)を補償するように行ってもよいし、S1225で算出した階調補正量を用いて行ってもよい。 In S1229, the system control unit 50 converts the brightness values obtained for each of the face brightness acquisition regions in S1228 into values assuming proper exposure. This is a process for correcting the fact that since the image data is captured with an exposure lower than the proper exposure, the brightness of the face is detected to be lower than when the image is captured with the proper exposure. The conversion of the brightness value may be performed to compensate for the exposure correction amount (decrease amount) determined by exposure control, or may be performed using the gradation correction amount calculated in S1225.

S1230にて、システム制御部50は、検出された顔の輝度の代表値を算出する。代表値としては例えば検出されている顔領域の顔輝度取得領域の各々の輝度値の中から最大値を求めるなどが考えられる
S1231の処理は、S1226にてシステム制御部50が顔領域が検出されなかったと判定した場合の処理である。S1231にて、システム制御部50は、ヒストグラム特徴量を検出する。ヒストグラム特徴量は例えば、ヒストグラムで暗部側から累積度数が1%である画素が属するレベル(SD)、明部側から累積度数が1%である画素が属するレベル(HL)等であってよい。続くS1232にて、システム制御部50は、S1231で算出したヒストグラム特徴量を、適正露出での撮像を想定した値に変換する。これは、画像データが、適正露出よりも低い露出で撮像されていることから、適正露出で撮像した場合よりもヒストグラム特徴量が低く検出されることを補正する処理である。輝度値の変換は、露出制御が決定した露出補正量(低下量)を補償するように行ってもよいし、S1225で算出した階調補正量を用いて行ってもよい。
In S1230, the system control unit 50 calculates a representative value of the brightness of the detected face. The representative value may be, for example, finding the maximum value from among the brightness values of each face brightness acquisition area of the detected face area. This is the process to be performed when it is determined that there is no such thing. In S1231, the system control unit 50 detects a histogram feature amount. The histogram feature amount may be, for example, a level (SD) to which a pixel with a cumulative frequency of 1% from the dark side belongs in the histogram, a level (HL) to which a pixel with a cumulative frequency of 1% from the bright side belongs in the histogram, or the like. In subsequent S1232, the system control unit 50 converts the histogram feature amount calculated in S1231 to a value assuming imaging with proper exposure. This is a process for correcting the fact that the histogram feature amount is detected to be lower than when the image data is captured with an appropriate exposure because the image data is captured with an exposure lower than the proper exposure. The conversion of the brightness value may be performed to compensate for the exposure correction amount (decrease amount) determined by exposure control, or may be performed using the gradation correction amount calculated in S1225.

S1233にて、システム制御部50は、目標の補正量の算出を行う。システム制御部50は、顔の代表輝度値、もしくはヒストグラム特徴量に対する目標輝度レベルを求める。そして、システム制御部50は、これらの目標輝度レベルと、画像データ中の輝度の最小値と最大値とから、スプライン補間などにより、入力輝度レベルに対する出力輝度レベルを定めたルックアップテーブル(入出力特性)を、階調補正量(B)として作成する。階調補正量(B)は、第2の階調補正量である。 In S1233, the system control unit 50 calculates the target correction amount. The system control unit 50 determines the target brightness level for the representative brightness value of the face or the histogram feature amount. Then, the system control unit 50 uses these target brightness levels and the minimum and maximum brightness values in the image data to create a lookup table (input/output characteristics) is created as the gradation correction amount (B). The gradation correction amount (B) is the second gradation correction amount.

ここでHDRではSDRと目標の階調補正量を変えても良い。例えば、図16(a)はSDRでの見え、図16(b)はHDRでの見えの例を示している。被写体(人物)の輝度値はいずれも同じ値であるが、背景についてSDRでは高くても100cd/m2で突き当たるのに対して、HDRでは100cd/m2を超えた値となる。その結果、被写体の輝度値は同じであっても、HDRの方が暗く感じる場合がある。これは明度対比と言って、人間の視覚特性に起因する現象である。例えば図16(a)と図16(b)では被写体の輝度は同じであるが、被写体の輝度と背景の輝度の差は、図16(a)よりも図16(b)の方が大きい。このような場合、ユーザ図16(a)よりも図16(b)の方が被写体を暗く感じてしまう。つまり、HDRは空などの高輝度域をより明るく表現することが可能であるため、SDRに比べて被写体が暗く見えてしまう可能性が高い。そこで本実施形態では、SDRの場合は図15(a)に示すような階調特性を用いるのに対し、HDRの場合は図15(b)で示すような階調特性を用いて、より暗部を持ち上げる階調補正量を適用することで、見た目として好ましい結果にすることができる。なお、本実施形態の階調補正は露出の不足を補うための補正を例としたが、画作りのための明るさ補正においても同様の階調補正を行うことができる。 Here, in HDR, the target gradation correction amount may be different from that in SDR. For example, FIG. 16(a) shows an example of the appearance in SDR, and FIG. 16(b) shows an example of the appearance in HDR. Although the luminance value of the subject (person) is the same, in SDR the brightness value of the background is at most 100 cd/m 2 , whereas in HDR it reaches a value exceeding 100 cd/m 2 . As a result, even if the brightness value of the subject is the same, the HDR image may feel darker. This is called brightness contrast, and is a phenomenon caused by human visual characteristics. For example, although the brightness of the subject is the same in FIGS. 16(a) and 16(b), the difference between the brightness of the subject and the background is larger in FIG. 16(b) than in FIG. 16(a). In such a case, the user perceives the subject to be darker in FIG. 16(b) than in FIG. 16(a). In other words, since HDR can express high-brightness areas such as the sky brighter, there is a high possibility that the subject will appear darker than with SDR. Therefore, in this embodiment, in the case of SDR, the gradation characteristics shown in FIG. 15(a) are used, whereas in the case of HDR, the gradation characteristics shown in FIG. By applying a gradation correction amount that increases the gradation, it is possible to obtain a visually pleasing result. Note that although the gradation correction in this embodiment is an example of correction for compensating for insufficient exposure, similar gradation correction can also be performed in brightness correction for image creation.

顔の代表輝度値や画像データのヒストグラム特徴量に対する目標輝度レベルは、経験的に好ましいと考えられる固定値に設定することが可能であるが、代表輝度値やヒストグラム特徴量の値に応じて異なる目標輝度レベルを設定してもよい。この場合、目標輝度レベルを設定するパラメータ(代表輝度値やヒストグラム特徴量)毎に、入力レベルに対する目標輝度レベルの関係を定めたルックアップテーブルを用意しておけばよい。 The target brightness level for the representative brightness value of the face and the histogram feature of the image data can be set to a fixed value that is empirically considered preferable, but it varies depending on the representative brightness value and the value of the histogram feature. A target brightness level may also be set. In this case, a lookup table that defines the relationship between the target brightness level and the input level may be prepared for each parameter (representative brightness value or histogram feature amount) for setting the target brightness level.

このようにして定めた目標輝度レベルへの変換を実現するための補正特性を、スプライン補間などの方法によって求め、必要であれば階調補正量(B)を適用するルックアップテーブル(又は関係式)として保存する。 The correction characteristics for realizing the conversion to the target luminance level determined in this way are determined by a method such as spline interpolation, and if necessary, a look-up table (or relational expression) is used to apply the gradation correction amount (B). ).

S1234にて、システム制御部50は、S1225で算出した階調補正量(A)と、S1233で算出した階調補正量(B)を合成する。システム制御部50は、例えば各入力輝度レベルに対して、まず階調補正量(A)を適用した後に、補正後の輝度レベルに対して階調補正量(B)を適用した結果の輝度値を求め、各入力輝度レベルに対する出力輝度レベルのルックアップテーブルを作成する。 In S1234, the system control unit 50 combines the tone correction amount (A) calculated in S1225 and the tone correction amount (B) calculated in S1233. For example, the system control unit 50 first applies the gradation correction amount (A) to each input luminance level, and then applies the gradation correction amount (B) to the corrected luminance level, resulting in a luminance value. , and create a lookup table of output brightness levels for each input brightness level.

S1235にて、システム制御部50は、S1234で求めた合成補正量(合成階調補正量)の上限値を制限する処理(リミッター処理)を行う。階調補正量(A)と階調補正量(B)を合成することで、補正量が大きくなり、補正後の画像においてノイズ量が目立ちやすくなるため、全体の補正量に制限を設ける。リミッター処理は、各輝度値において許容する最大の補正量をテーブルとして用意しておき、S1234で作成したルックアップテーブルの値のうち、最大補正量を超える出力レベルを最大補正量に対応する出力レベルに置換することで実現できる。尚、階調補正量はユーザによって設定されている撮影モード(SDR撮影もしくはHDR撮影)用の値を算出してもよいし、SDR用、HDR用の両方を算出してもよい。 In S1235, the system control unit 50 performs processing (limiter processing) for limiting the upper limit value of the synthetic correction amount (synthetic gradation correction amount) obtained in S1234. By combining the gradation correction amount (A) and the gradation correction amount (B), the correction amount increases and the amount of noise becomes more noticeable in the corrected image, so a limit is placed on the overall correction amount. In the limiter processing, the maximum correction amount allowed for each luminance value is prepared as a table, and among the values in the lookup table created in S1234, the output level exceeding the maximum correction amount is set to the output level corresponding to the maximum correction amount. This can be achieved by replacing. Note that the gradation correction amount may be calculated as a value for the shooting mode (SDR shooting or HDR shooting) set by the user, or may be calculated for both SDR and HDR.

図7の説明に戻る。S707にて、システム制御部50は、算出したホワイトバランス係数、階調補正用パラメータおよび種々のHDR用のパラメータを用いて現像する。その他の現像パラメータとして、色マトリクス、カメラOETFカーブデータ、色調整パラメータ、ノイズリダクションパラメータ、シャープネスパラメータなどを用いてHDR現像画像を生成する。カメラOETF(ガンマカーブ)としては、例えばITU-Rの勧告BT.2100のPQ(Perceptual Quantization)のEOTF(Electro-Optical Transfer Function)の逆特性を想定しているが、カメラ側の味付けをOOTF(Opto-Optical Transfer Function)として組み合わせても良い。もしくは同じくITU-Rの勧告BT.2100のHLG(Hybrid Log-Gamma)のOETFを使用しても構わない。 Returning to the explanation of FIG. 7. In S707, the system control unit 50 performs development using the calculated white balance coefficient, gradation correction parameter, and various HDR parameters. As other development parameters, a color matrix, camera OETF curve data, color adjustment parameters, noise reduction parameters, sharpness parameters, etc. are used to generate an HDR developed image. As a camera OETF (gamma curve), for example, ITU-R recommendation BT. Although it is assumed that the reverse characteristics of EOTF (Electro-Optical Transfer Function) of PQ (Perceptual Quantization) of 2100 are used, it is also possible to combine the seasoning on the camera side as OOTF (Opto-Optical Transfer Function). Or the same ITU-R recommendation BT. OETF of HLG (Hybrid Log-Gamma) of 2100 may be used.

S708にて、システム制御部50は、S707で現像した画像からリサイズして2画面比較画像用などの簡易表示用としてMPF(Multi Pixel Format)用画像を生成し、HEVCで圧縮符号化する。 In S708, the system control unit 50 resizes the image developed in S707, generates an MPF (Multi Pixel Format) image for simple display such as a two-screen comparison image, and compresses and encodes it using HEVC.

S709にて、システム制御部50は、S708で生成したMPF画像をさらにリサイズしてインデックス表示などに用いるサムネイル画像を生成、圧縮する。 In S709, the system control unit 50 further resizes the MPF image generated in S708 to generate and compress a thumbnail image used for index display and the like.

S710にて、システム制御部50は、本画像としてS707で現像したHDR画像を圧縮する。圧縮する方法はいろいろ考えられるが例えば、10bitのYUV422のデータであればH.265 (ISO/IEC 23008-2 HEVC)で圧縮すればよい。 In S710, the system control unit 50 compresses the HDR image developed in S707 as the main image. There are various compression methods that can be considered, but for example, 10-bit YUV422 data can be compressed using H. 265 (ISO/IEC 23008-2 HEVC).

S711にて、システム制御部50は、ユーザによる記録画質設定を判定する。システム制御部50は、RAW画像のみが記録される設定であると判定した場合は処理をS712に、HDR画像のみが記録される設定であると判定した場合は処理をS713に、RAW画像及びHDR画像が記録される設定であると判定した場合は処理をS714に進める。 In S711, the system control unit 50 determines the recording quality setting made by the user. If the system control unit 50 determines that the settings are such that only RAW images are recorded, the process proceeds to S712, and if the system control unit 50 determines that the settings are such that only HDR images are recorded, the process proceeds to S713. If it is determined that the settings are such that an image is recorded, the process advances to S714.

S712にて、システム制御部50は、RAW画像を圧縮してヘッダを付加して図8Aのような構造のRAW画像ファイルとして、記録媒体I/F18を介して記録媒体200に記録する。圧縮方式としては幾つか考えられるが劣化のない可逆であるロスレス圧縮や、非可逆ではあるがファイルサイズが軽くなるロッシー圧縮などを用いればよい。またヘッダには、検出メタデータとしてS1205で求めたホワイトバランスの白サーチ枠内判定結果とS704で求めたヒストグラムおよびS705で求めた顔検出結果を記録する。ここで検出される白サーチ枠内判定結果は、S1206における明暗除外処理を行う前の判定結果である。したがって、HDR撮影でもSDR撮影でも同じ判定結果が記録されることになる。また、ユーザによりHDR撮影モードとなっていた場合は、図12で求めたホワイトバランス係数や図14で求めた階調補正量といったHDR用の現像パラメータ、S708でHDR現像した画像データからHEVC形式で符号化して生成した表示用のMPF用画像もメタデータとして図8B(b)のように併せて記録する。上述したように、これらのデータはHDR撮影かSDR撮影かで内容が異なる。なお、SDR撮影であれば、上述したSDR用の白サーチ枠内判定や階調特性を用いた場合の現像パラメータが記録される。なお、HDR撮影時であっても、SDR用にS702~S706の処理を行い、SDR用の現像パラメータも生成して両方を記録しても構わない。なおた、HDR、SDR両方の現像パラメータを生成するのは処理負荷が大きいため、連写時などには行わず、単写時など比較的処理負荷に余裕がある場合に行うようにしてもよい。 In S712, the system control unit 50 compresses the RAW image, adds a header, and records it on the recording medium 200 via the recording medium I/F 18 as a RAW image file having a structure as shown in FIG. 8A. There are several possible compression methods, such as lossless compression, which is reversible without deterioration, and lossy compression, which is irreversible but reduces the file size. In addition, the header records the white balance in-white search frame determination result obtained in S1205, the histogram obtained in S704, and the face detection result obtained in S705 as detection metadata. The white search frame inside determination result detected here is the determination result before performing the brightness/darkness exclusion process in S1206. Therefore, the same determination result will be recorded in both HDR photography and SDR photography. In addition, if the user has set the HDR shooting mode, HDR development parameters such as the white balance coefficient obtained in FIG. 12 and the gradation correction amount obtained in FIG. The encoded and generated MPF image for display is also recorded as metadata as shown in FIG. 8B(b). As described above, the content of these data differs depending on whether HDR photography or SDR photography is performed. Note that in the case of SDR photography, the development parameters when using the above-described white search frame determination and gradation characteristics for SDR are recorded. Note that even during HDR shooting, the processing in S702 to S706 may be performed for SDR, and development parameters for SDR may also be generated and both may be recorded. Note that generating development parameters for both HDR and SDR requires a large processing load, so it may not be performed during continuous shooting, but may be performed when the processing load is relatively leeway, such as during single shooting. .

また単写など処理負荷に余裕がある時はHDR用の表示用画像とは別に、SDR用の現像パラメータを用いてSDR画質の本画像、MPF用画像、サムネイル用画像を作成し、HDR用の表示用画像とSDR用の表示用画像を同じファイルに記録しても構わない(図8B(c))。 In addition, when there is sufficient processing load such as when shooting a single shot, separate from the HDR display image, create an SDR image quality main image, MPF image, and thumbnail image using SDR development parameters, and create the HDR image. The display image and the SDR display image may be recorded in the same file (FIG. 8B(c)).

また、サムネイルを表示する際は、画像が小さいのでどのような画像かが分かれば十分であるため、S709で作成するサムネイル用画像のみSDR現像画像で作成し保存しても構わない(図8B(d))。このような構成にすることで、HDRの圧縮方式であるH.265のデコードに対応していない表示装置やPCでもサムネイル画像のみ表示することも可能になる。 Furthermore, when displaying thumbnails, since the images are small, it is sufficient to know what kind of image they are, so it is possible to create and save only the thumbnail image created in S709 as an SDR developed image (Figure 8B ( d)). With this configuration, H. This makes it possible to display only thumbnail images even on display devices or PCs that do not support H.265 decoding.

S713にて、システム制御部50は、現像したHDR画像をHEVC形式で圧縮符号化して静的メタデータもしくは動的メタデータを付加し、HIEF(High Efficiency Image File Format)形式のHEIFファイルとして、記録媒体I/F18を介して記録媒体200に記録する。静的メタデータとしては、CEA-861.3に準拠したディスプレイの3原色および白色点のx,y座標、マスタリングディスプレイの最大輝度値、最小輝度値、コンテンツ最大輝度値(Maximum Content Light Level)、フレーム平均輝度レベル(Maximum Frame-average Light Level)などである。また、動的メタデータとしては、SMPTE ST 2094で定義されているカラーボリューム変換の動的トーンマッピングのメタデータなどである。尚、HDR特性をPQ信号で表すには10bit以上の深度であることが好ましいが従来のJPEGフォーマットだと8bitであるため新たに静止画HDR用のコンテナを採用する必要がある。ここでは、MPEG(Moving Picture Experts Group)によって開発され、 MPEG-H Part 12(ISO/IEC 23008-12)で定義された画像ファイルフォーマットであるHEIFのコンテナを使用する。HEIFは本画像だけでなく、サムネイルや複数の時間的に関連ある画像やEXIFやXMPといったメタデータも1つのファイルの中に格納することができるという特徴がある。よって、HEVCでエンコードされた10bitのイメージシーケンスも格納できるため使い回しが良い。 In S713, the system control unit 50 compresses and encodes the developed HDR image in HEVC format, adds static metadata or dynamic metadata, and records it as a HEIF file in HIEF (High Efficiency Image File Format) format. Recording is performed on the recording medium 200 via the medium I/F 18. Static metadata includes the x, y coordinates of the three primary colors and white point of the display in accordance with CEA-861.3, the maximum brightness value and minimum brightness value of the mastering display, the maximum content light level, For example, the frame average brightness level (Maximum Frame-average Light Level). Furthermore, the dynamic metadata includes dynamic tone mapping metadata for color volume conversion defined in SMPTE ST 2094, and the like. Note that in order to represent HDR characteristics in a PQ signal, it is preferable to have a depth of 10 bits or more, but since the conventional JPEG format is 8 bits, it is necessary to adopt a new container for still image HDR. Here, a HEIF container is used, which is an image file format developed by MPEG (Moving Picture Experts Group) and defined in MPEG-H Part 12 (ISO/IEC 23008-12). HEIF has the feature that not only the main image but also thumbnails, multiple temporally related images, and metadata such as EXIF and XMP can be stored in one file. Therefore, 10-bit image sequences encoded with HEVC can also be stored, making it easy to reuse.

S714及びS715では、S712及びS713の処理を順次行い、RAW画像とHDR画像の両方を記録する。 In S714 and S715, the processes of S712 and S713 are sequentially performed, and both the RAW image and the HDR image are recorded.

続いて前述した記録処理において記録媒体200に記録する静止画RAW画像データのファイル構造を図8Aに示す。以下で例示するファイルフォーマットはISO/IEC14496-12 で規定されているISOベースメディアファイルフォーマットである。そのため、本ファイルフォーマットは木構造を持ちボックスと呼ばれる各ノードを持っている。また、各ボックスは複数のボックスを子要素として持つことができる。 Next, FIG. 8A shows the file structure of still image RAW image data recorded on the recording medium 200 in the recording process described above. The file format exemplified below is the ISO base media file format defined by ISO/IEC14496-12. Therefore, this file format has a tree structure with each node called a box. Furthermore, each box can have multiple boxes as child elements.

画像データ801は先頭にファイルタイプの記述のためのボックスftyp802、全てのメタデータを含むボックスmoov803、トラックのメディアデータ本体のボックスmdat808、その他のボックス807を有する。前述のボックスmoov803は子要素として、MetaData805を格納するボックスuuid804とImageDataを参照する情報を格納するtrakボックス806を有する。MetaData805には、画像のメタデータが記載されており、例えば画像の作成日時、撮影時条件、HDRまたはSDRで撮影したかどうかの情報、前述した検出メタデータ、その他の撮影情報から構成される。前述のボックスmdat808は子要素として、撮影した静止画像データであるImageData809を持つ。 The image data 801 has at the beginning a box ftyp 802 for describing the file type, a box moov 803 containing all metadata, a box mdat 808 for the media data of the track, and an other box 807. The aforementioned box moov 803 has as child elements a box uuid 804 that stores MetaData 805 and a trak box 806 that stores information that refers to ImageData. MetaData 805 describes image metadata, and includes, for example, the date and time of image creation, shooting conditions, information on whether the image was shot with HDR or SDR, the aforementioned detection metadata, and other shooting information. The box mdat 808 described above has ImageData 809, which is captured still image data, as a child element.

なお、SDRで撮影したRAW画像と、HDRで撮影したRAW画像では、ImageData809に記録される画像データが異なる。 Note that the image data recorded in ImageData 809 is different between a RAW image shot with SDR and a RAW image shot with HDR.

図8B(a)はSDRで撮影したRAW画像に記録されるImageData809である。この場合のImageData809は、SDR画質現像しJPEG圧縮したTHM画像821、MPF画像822、本画像823とRAW画像824及び、RAW現像パラメータ825を持つ。各SDR画質の画像は、その1色成分が8ビット(256階調)の画像である。なお、図8B(a)のRAW現像パラメータ825は、少なくともSDR現像用の現像パラメータを含む。 FIG. 8B(a) is ImageData 809 recorded in a RAW image captured by SDR. ImageData 809 in this case includes a THM image 821 that has been developed with SDR image quality and compressed with JPEG, an MPF image 822, a main image 823, a RAW image 824, and RAW development parameters 825. Each SDR image quality is an image in which one color component is 8 bits (256 gradations). Note that the RAW development parameters 825 in FIG. 8B(a) include at least development parameters for SDR development.

図8B(b)はHDRで撮影時にHDR画像のみ表示用画像として持つRAW画像に記録されるImageData809である。この場合のImageData809は、HDR画質現像しHEVC圧縮したTHM画像826、MPF画像827、本画像828とRAW画像824及び、RAW現像パラメータ825を持つ。各HDR画質の画像は、1色成分が10ビット(1024階調)の画像である。図8B(b)、(c)、(d)のRAW現像パラメータ825は、少なくともHDR現像用の現像パラメータを含む。 FIG. 8B(b) shows ImageData 809 that is recorded in a RAW image that has only the HDR image as a display image during HDR shooting. ImageData 809 in this case includes a THM image 826 that has been developed with HDR image quality and compressed with HEVC, an MPF image 827, a main image 828, a RAW image 824, and RAW development parameters 825. Each HDR image quality is an image in which one color component has 10 bits (1024 gradations). The RAW development parameters 825 in FIGS. 8B(b), (c), and (d) include at least development parameters for HDR development.

図8B(c)はHDRで撮影時にHDR画像とSDR画像の両方を表示用画像として持つRAW画像に記録されるImageData809である。この場合のImageData809は、SDR画質現像しJPEG圧縮したTHM画像821、MPF画像822、本画像823とHDR画質現像しHEVC圧縮したTHM画像826、MPF画像827、本画像828とRAW画像824及び、RAW現像パラメータ825を持つ。 FIG. 8B(c) is ImageData 809 that is recorded in a RAW image that has both an HDR image and an SDR image as display images during HDR shooting. In this case, ImageData 809 includes a THM image 821 developed with SDR image quality and compressed with JPEG, an MPF image 822, a main image 823, a THM image 826 developed with HDR image quality and compressed with HEVC, an MPF image 827, a main image 828, a RAW image 824, and a RAW image 824. It has development parameters 825.

図8B(d)はHDRで撮影時にTHM画像のみSDR画像で、MPFと本画像はHDR画像の表示用画像として持つRAW画像に記録されるImageData809である。この場合のImageData809は、SDR画質現像しJPEG圧縮したTHM画像821とHDR画質現像しHEVC圧縮したMPF画像827、本画像828とRAW画像82)及び、RAW現像パラメータ825を持つ。 In FIG. 8B(d), only the THM image is an SDR image when photographed in HDR, and the MPF and main image are ImageData 809 recorded in a RAW image held as a display image of the HDR image. ImageData 809 in this case includes a THM image 821 developed with SDR image quality and compressed with JPEG, an MPF image 827 developed with HDR image quality and compressed with HEVC, an original image 828, a RAW image 82), and RAW development parameters 825.

本例で示したファイルフォーマットは実施形態の1つであり、必要に応じて他のボックスを有しても良い。また、表示用画像をmoov803内のボックスや、その他のボックス807に持つ構成としてもよい。 The file format shown in this example is one of the embodiments, and other boxes may be included as necessary. Alternatively, the display image may be stored in a box within the moov 803 or in another box 807.

上記のようなファイルフォーマットを有することにより、SDRとして撮影されたRAW画像ファイルにはSDR画像用の現像パラメータが記録され、HDRとして撮影されたRAW画像ファイルにはHDR画像用の現像パラメータが記録されることになる。このようにすることで、後からRAW画像を現像する場合も、撮影時の設定を反映した現像パラメータで現像を行うことが可能となる。例えばRAW現像を行う装置(デジタルカメラ100でもよいし、PCなどの他の装置でもよい)は、RAW画像のMetaData805を参照し、HDRとして撮影したか、SDRとして撮影したかを判定する。そしてHDRとして撮影したと判定した場合は、RAW画像をそのファイルに含まれるHDR画像用の現像パラメータを用いてHDR画像として現像する。また、SDRとして撮影したと判定した場合は、RAW画像をそのファイルに含まれるSDR画像用の現像パラメータを用いてSDR画像として現像する。このような処理を行うことを可能とするために、本実施形態におけるデジタルカメラ100は、SDRとして撮影されたRAW画像ファイルにはSDR画像用の現像パラメータを記録し、HDRとして撮影されたRAW画像ファイルにはHDR画像用の現像パラメータを記録している。なお、RAW現像を行う装置は、前述したHEIFのコンテナを使用して現像した静止画HDR画像を記録するようにすればよい。 By having the above file format, development parameters for SDR images are recorded in RAW image files captured as SDR, and development parameters for HDR images are recorded in RAW image files captured as HDR. That will happen. By doing this, even when developing a RAW image later, it is possible to perform the development using development parameters that reflect the settings at the time of photography. For example, a device that performs RAW development (which may be the digital camera 100 or another device such as a PC) refers to the MetaData 805 of the RAW image and determines whether the image was shot as HDR or SDR. If it is determined that the image was shot as HDR, the RAW image is developed as an HDR image using the development parameters for HDR images included in the file. Further, if it is determined that the image was shot as an SDR image, the RAW image is developed as an SDR image using the development parameters for the SDR image included in the file. In order to perform such processing, the digital camera 100 in this embodiment records development parameters for SDR images in RAW image files shot as SDR, and records development parameters for SDR images in RAW image files shot as HDR. Development parameters for HDR images are recorded in the file. Note that the device that performs RAW development may be configured to record still HDR images developed using the HEIF container described above.

さらに、検出メタデータとしてHDR撮影でもSDR撮影でも同じ判定結果を記録することとしたため、HDR撮影モードで撮影されたRAW画像ファイルであっても、記録された検出データを用いてSDR画像に現像することも可能となる。したがって、SDR画像にしか対応していない装置でも、HDR撮影モードで撮影されたRAW画像ファイルを適切に表示することが可能となる。 Furthermore, since we decided to record the same judgment result as detection metadata for HDR shooting and SDR shooting, even if it is a RAW image file shot in HDR shooting mode, it will be developed into an SDR image using the recorded detection data. It also becomes possible. Therefore, even a device that supports only SDR images can appropriately display a RAW image file shot in HDR shooting mode.

図9Aは、システム制御部50の、表示部28を使用した再生モード処理の詳細を示すフローチャートである。この処理は、不揮発性メモリ56に記録されたプログラムをシステムメモリ52に展開してシステム制御部50が実行することで実現する。 FIG. 9A is a flowchart showing details of playback mode processing performed by the system control unit 50 using the display unit 28. This processing is realized by loading a program recorded in the nonvolatile memory 56 into the system memory 52 and executing it by the system control unit 50.

S901にて、システム制御部50は、インデックス再生か、通常の再生かを判定する。S901にて、システム制御部50はインデックス再生と判定した場合は処理をS902に進める。このS902にて、システム制御部50は、再生する画像枚数を決定する。 In S901, the system control unit 50 determines whether index playback or normal playback is performed. In S901, if the system control unit 50 determines that index playback is to be performed, the process proceeds to S902. In S902, the system control unit 50 determines the number of images to be reproduced.

S903にて、システム制御部50は、再生する画像を決定する。そして、S904にて、システム制御部50は、再生する画像の描画処理を行う。 In S903, the system control unit 50 determines the image to be reproduced. Then, in S904, the system control unit 50 performs drawing processing for the image to be reproduced.

S905にて、システム制御部50は、表示する全ての画像の描画が完了したかを判定し、完了していないと判定した場合は、S903に戻し、描画処理を継続する。また、システム制御部50は、描画処理が完了したと判定した場合、処理をS906に進める。このS906にて、システム制御部50は、表示部28へ、S906の画像出力処理を行い表示処理を終了する。その後、システム制御部50は、操作受付処理を行う。 In S905, the system control unit 50 determines whether drawing of all images to be displayed has been completed. If it is determined that drawing has not been completed, the system control unit 50 returns to S903 and continues the drawing process. Further, when the system control unit 50 determines that the drawing process is completed, the system control unit 50 advances the process to S906. In S906, the system control unit 50 performs the image output process of S906 to the display unit 28, and ends the display process. After that, the system control unit 50 performs an operation reception process.

図9Bは、システム制御部50の、表示部28を使用した再生モード処理の描画処理の詳細を示すフローチャートである。 FIG. 9B is a flowchart showing details of the drawing process of the playback mode process using the display unit 28 by the system control unit 50.

S911にて、システム制御部50は、再生する画像の情報を取得する。S912にて、システム制御部50は、再生する画像を決定する。S913にて、システム制御部50は、再生する画像を記録媒体200から読み出す。S914にて、システム制御部50は、再生する画像の伸長処理を行う。S915にて、システム制御部50は、S914で伸長処理を施した画像データから画素ごとのデータを収集する。この画像データとは例えば輝度情報であり、ヒストグラム処理やハイライト警告処理などに用いる。 In S911, the system control unit 50 acquires information about the image to be reproduced. In S912, the system control unit 50 determines the image to be reproduced. In S913, the system control unit 50 reads the image to be reproduced from the recording medium 200. In S914, the system control unit 50 performs decompression processing on the image to be reproduced. In S915, the system control unit 50 collects data for each pixel from the image data subjected to the decompression process in S914. This image data is, for example, brightness information, and is used for histogram processing, highlight warning processing, and the like.

S916にて、システム制御部50は、再生する画像がHDR画像であるかSDR画像であるかを判定する。システム制御部50は、再生する画像がHDR画像であると判定した場合は処理をS917に、SDR画像であると判定した場合は処理をS920に進める。S917にて、システム制御部50は、再生時のHDRアシスト表示設定を確認し、アシスト1の設定の場合には処理をS918へ、アシスト設定2の場合には処理をS919へ進める。S918にて、システム制御部50は、S914で伸長した画像に対してアシスト1の設定に従ってHDR→SDR変換処理を行う。また、S919にて、システム制御部50は、S914で伸長した画像に対してアシスト2の設定に従ってHDR→SDR変換処理を行う。 In S916, the system control unit 50 determines whether the image to be reproduced is an HDR image or an SDR image. If the system control unit 50 determines that the image to be reproduced is an HDR image, the process proceeds to S917, and if it determines that the image to be reproduced is an SDR image, the process proceeds to S920. In S917, the system control unit 50 checks the HDR assist display setting during playback, and if the assist setting is 1, the process proceeds to S918, and if the assist setting is 2, the process proceeds to S919. In S918, the system control unit 50 performs HDR→SDR conversion processing on the image decompressed in S914 according to the assist 1 setting. Further, in S919, the system control unit 50 performs HDR→SDR conversion processing on the image decompressed in S914 according to the assist 2 settings.

S920にて、システム制御部50は、S914で伸長した画像または、S918、S910でSDR変換処理を行った画像に対し、表示部28に適したサイズに拡縮処理を行う。そして、S921にて、システム制御部50は、生成した画像の配置を決定し、描画処理を終了する。 In S920, the system control unit 50 performs scaling processing on the image expanded in S914 or the image subjected to SDR conversion processing in S918 and S910 to a size suitable for the display unit 28. Then, in S921, the system control unit 50 determines the arrangement of the generated image, and ends the drawing process.

図9C~9Hは、システム制御部50の読込画像選択処理の詳細を示すフローチャートである。 9C to 9H are flowcharts showing details of the read image selection process by the system control unit 50.

S926にて、システム制御部50は、取得した画像の情報を判定し、再生可能であるかを判定し、可能であると判定した場合は処理をS927に、再生不可と判定した場合は処理をS936に進める。 In S926, the system control unit 50 determines the information of the acquired image and determines whether it is reproducible. If it is determined that it is reproducible, the process proceeds to S927; if it is determined that replay is not possible, the process proceeds to S927. Proceed to S936.

S927にて、システム制御部50は、再生する画像が静止画像か否かを判定する。システム制御部50は、再生する画像が静止画像であると判定した場合には処理をS928に、そうでない場合は処理をS935に進める。 In S927, the system control unit 50 determines whether the image to be reproduced is a still image. If the system control unit 50 determines that the image to be reproduced is a still image, the process proceeds to S928; otherwise, the process proceeds to S935.

S928にて、システム制御部50は、再生する画像がRAW画像か否かを判定する。システム制御部50は、再生する画像がRAW画像であると判定した場合は処理をS929に、そうでない場合は処理をS930に進める。 In S928, the system control unit 50 determines whether the image to be reproduced is a RAW image. If the system control unit 50 determines that the image to be reproduced is a RAW image, the process proceeds to S929; otherwise, the process proceeds to S930.

S929にて、システム制御部50は、RAW画像がHDRで撮影されたRAW画像か、SDRで撮影されたRAW画像かを判定する。システム制御部50は、このときの判定を、図8で説明した、RAWファイル内にあるメタデータを用いて行う。システム制御部50は、HDRで撮影されたRAW画像であると判定した場合は処理をS931に、SDR画像であると判定した場合は処理をS932に進める。 In S929, the system control unit 50 determines whether the RAW image is a RAW image shot with HDR or a RAW image shot with SDR. The system control unit 50 makes this determination using the metadata in the RAW file, which was explained with reference to FIG. If the system control unit 50 determines that the image is a RAW image shot in HDR, the process proceeds to S931, and if it determines that the image is an SDR image, the process proceeds to S932.

S930にて、システム制御部50は、RAW画像でないと判定された静止画像がHDRで撮影された画像か、SDRで撮影された画像かを判定する。本実施形態ではHDRで撮影した画像はHEIFとして記録、SDRで撮影した画像はJPEGとして記録するため、HEIFかJPEGかでHDR画像かSDR画像かを判定しているが、HEIF内のメタデータを使用してHDR画像かSDR画像かを判定してもよい。 In S930, the system control unit 50 determines whether the still image determined not to be a RAW image is an image shot using HDR or an image shot using SDR. In this embodiment, images shot in HDR are recorded as HEIF, and images shot in SDR are recorded as JPEG, so whether it is an HDR image or an SDR image is determined by HEIF or JPEG. It may be used to determine whether the image is an HDR image or an SDR image.

S931にて、システム制御部50は、HDRで撮影されたRAW画像から再生に使用する画像データを選択する。S932にて、システム制御部50は、SDRで撮影されたRAW画像から再生に使用する画像データを選択する。S933にて、システム制御部50は、HDR現像した静止画像から再生に使用する画像データを選択する。S934にて、システム制御部50は、SDR現像した静止画像から再生に使用する画像データを選択する。S935にて、システム制御部50は、動画ファイルの中から表示すべき画像データを選択する。S936にて、システム制御部50は、再生画像の非表示処理を行う。この場合、再生できない画像ということをユーザに知らせるために再生不可の情報を表示する。 In S931, the system control unit 50 selects image data to be used for playback from RAW images shot in HDR. In S932, the system control unit 50 selects image data to be used for reproduction from the RAW images shot with SDR. In S933, the system control unit 50 selects image data to be used for reproduction from the HDR developed still image. In S934, the system control unit 50 selects image data to be used for reproduction from the SDR developed still image. In S935, the system control unit 50 selects image data to be displayed from among the video files. In S936, the system control unit 50 performs processing to hide the reproduced image. In this case, information indicating that the image cannot be reproduced is displayed to notify the user that the image cannot be reproduced.

図9Dは、システム制御部50が、HDRで撮影されたRAW画像から再生に使用する画像データを選択するフローである。 FIG. 9D is a flowchart in which the system control unit 50 selects image data to be used for reproduction from RAW images shot in HDR.

S941にて、システム制御部50は、インデックス再生か、通常の再生かを判定する。システム制御部50は、インデックス再生であると判定した場合は処理をS942に、通常再生であると判定した場合は処理をS943に進める。 In S941, the system control unit 50 determines whether index playback or normal playback is performed. If the system control unit 50 determines that index playback is being performed, the process proceeds to S942, and if it is determined that normal playback is being performed, the process proceeds to S943.

S942にて、システム制御部50は、インデックス再生の再生画像枚数によって、使用する画像データを判定する。本実施形態は36枚を閾値とするものとするが、その枚数は一例であって、ユーザにより適宜設定するようにしても良いし、表示部28のサイズに依存して決定しても良い。システム制御部50は、表示する画像が36枚以上であると判定した場合は処理をS945に進み、36枚より少ないと判定した場合はS944に処理を進める。 In S942, the system control unit 50 determines the image data to be used based on the number of images to be reproduced in index reproduction. In this embodiment, the threshold value is 36 images, but this number is just one example, and may be set as appropriate by the user, or may be determined depending on the size of the display unit 28. If the system control unit 50 determines that the number of images to be displayed is 36 or more, the process proceeds to S945, and if it determines that the number of images to be displayed is less than 36, the process proceeds to S944.

S943にて、システム制御部50は、「表示用 HDR 本画像(HEVC)」(828)を再生に使用する画像データとして決定する。S944にて、システム制御部50は、「表示用 HDR MPF画像(HEVC)」(827)を再生に使用する画像データとして決定する。S945にて、システム制御部50は、「表示用 HDR THM画像(HEVC)」(826)を再生に使用する画像データとして決定する。 In S943, the system control unit 50 determines "HDR main image for display (HEVC)" (828) as image data to be used for reproduction. In S944, the system control unit 50 determines "HDR MPF image for display (HEVC)" (827) as image data to be used for reproduction. In S945, the system control unit 50 determines "HDR THM image for display (HEVC)" (826) as image data to be used for reproduction.

図9Eは、HDRで撮影されたRAW画像がSDRの表示用画像を持つ場合にRAW画像から再生に使用する画像データの選択処理を示すフローである。 FIG. 9E is a flowchart showing a process of selecting image data to be used for reproduction from the RAW image when the RAW image shot in HDR has an SDR display image.

S951にて、システム制御部50が、インデックス再生か、通常の再生かを判定する。システム制御部50は、インデックス再生であると判定した場合は処理をS952に、通常再生と判定した場合は処理をS953に進める。 In S951, the system control unit 50 determines whether index playback or normal playback is performed. If the system control unit 50 determines that index playback is being performed, the process proceeds to S952, and if it is determined that normal playback is being performed, the process proceeds to S953.

S952にて、システム制御部50は、インデックス再生の再生画像枚数によって、使用する画像データを判定する。ここでは、36枚を判定の際の閾値とする。システム制御部50は、再生画像数が36枚以上であると判定した場合は処理をS955に、36枚未満であると判定した場合は処理をS954に進める。 In S952, the system control unit 50 determines the image data to be used based on the number of images to be reproduced in index reproduction. Here, 36 images is used as the threshold for determination. If the system control unit 50 determines that the number of reproduced images is 36 or more, the process proceeds to S955, and if it determines that the number is less than 36, the process proceeds to S954.

S953、S954、S955では、システム制御部50は、再生するRAW画像にSDR画像が含まれているかを確認する。このときの判定は図8で説明した、RAWファイル内にあるメタデータを用いる。 In S953, S954, and S955, the system control unit 50 checks whether the RAW image to be reproduced includes an SDR image. The determination at this time uses the metadata in the RAW file, which was explained with reference to FIG.

S956にて、システム制御部50は、「表示用 HDR 本画像(HEVC)」(828)を再生に使用する画像データとして決定する。S957にて、システム制御部50は、「表示用 SDR 本画像(JPEG)」(823)を再生に使用する画像データとして決定する。S958にて、システム制御部50は、「表示用 HDR MPF画像(HEVC)」(827)を再生に使用する画像データとして決定する。S959にて、システム制御部50は、「表示用 SDR MPF画像(JPEG)」(822)を再生に使用する画像データとして決定する。S960にて、システム制御部50は、「表示用 HDR THM画像(HEVC)」(826)を再生に使用する画像データとして決定する。S961にて、システム制御部50は、「表示用 SDR THM画像(JPEG)」(821)を再生に使用する画像データとして決定する。 In S956, the system control unit 50 determines "HDR main image for display (HEVC)" (828) as image data to be used for reproduction. In S957, the system control unit 50 determines "SDR main image for display (JPEG)" (823) as image data to be used for reproduction. In S958, the system control unit 50 determines the "HDR MPF image for display (HEVC)" (827) as the image data to be used for reproduction. In S959, the system control unit 50 determines "SDR MPF image for display (JPEG)" (822) as image data to be used for reproduction. In S960, the system control unit 50 determines "HDR THM image for display (HEVC)" (826) as image data to be used for reproduction. In S961, the system control unit 50 determines "SDR THM image for display (JPEG)" (821) as image data to be used for reproduction.

図9Fは、システム制御部50が、HDR現像静止画像から再生に使用する画像データを選択するフローである。 FIG. 9F is a flowchart in which the system control unit 50 selects image data to be used for reproduction from the HDR developed still image.

S971にて、システム制御部50は、インデックス再生か、通常の再生かを判定する。システム制御部50は、インデックス再生と判定した場合は処理をS972に、通常再生であると判定した場合は処理をS973に進める。 In S971, the system control unit 50 determines whether index playback or normal playback is performed. If the system control unit 50 determines that index playback is to be performed, the process proceeds to S972, and if it is determined that normal playback is to be performed, the process proceeds to S973.

S972にて、システム制御部50は、インデックス再生の再生画像枚数によって、使用する画像データを判定する。実施形態では、枚数の閾値として36枚とする。システム制御部50は、再生画像枚数が36枚以上であると判定した場合は処理をS975に、36枚未満であると判定した場合は処理をS974に進める。 In S972, the system control unit 50 determines the image data to be used based on the number of images to be reproduced in index reproduction. In the embodiment, the threshold value for the number of sheets is set to 36 sheets. If the system control unit 50 determines that the number of reproduced images is 36 or more, the process proceeds to S975, and if it determines that the number is less than 36, the process proceeds to S974.

S973にて、システム制御部50は、「HDR 本画像(HEVC)」(不図示)を再生に使用する画像データとして決定する。S974にて、システム制御部50は、「HDR MPF画像(HEVC)」(不図示)を再生に使用する画像データとして決定する。S975にて、システム制御部50は、「HDR THM画像(HEVC)」(不図示)を再生に使用する画像データとして決定する。 In S973, the system control unit 50 determines "HDR main image (HEVC)" (not shown) as image data to be used for reproduction. In S974, the system control unit 50 determines "HDR MPF image (HEVC)" (not shown) as image data to be used for reproduction. In S975, the system control unit 50 determines "HDR THM image (HEVC)" (not shown) as image data to be used for reproduction.

図9GはSDRで撮影されたRAW画像から再生に使用する画像データを選択するフローである。 FIG. 9G is a flowchart for selecting image data to be used for reproduction from RAW images shot with SDR.

S981にて、システム制御部50は、インデックス再生か、通常の再生かを判定する。システム制御部50は、インデックス再生と判定した場合は処理をS982に、通常再生と判定した場合は処理をS983に進める。 In S981, the system control unit 50 determines whether index playback or normal playback is performed. If the system control unit 50 determines that index playback is to be performed, the process proceeds to S982, and if it is determined that normal playback is to be performed, the process proceeds to S983.

S982にて、システム制御部50は、インデックス再生の再生画像枚数によって、使用する画像データを判定する。実施形態では、枚数の閾値として36枚とする。システム制御部50は、表示する画像が36枚以上と判定した場合は処理をS985に、36枚未満であると判定した場合は処理をS984に進める。 In S982, the system control unit 50 determines the image data to be used based on the number of images to be reproduced in index reproduction. In the embodiment, the threshold value for the number of sheets is set to 36 sheets. If the system control unit 50 determines that the number of images to be displayed is 36 or more, the process proceeds to S985, and if it determines that the number of images to be displayed is less than 36, the process proceeds to S984.

S983にて、システム制御部50は、「表示用 SDR 本画像(JPEG)」(823)を再生に使用する画像データとして決定する。S984にて、システム制御部50は、「表示用 SDR MPF画像(JPEG)」(822)を再生に使用する画像データとして決定する。S985にて、システム制御部50は、「表示用 SDR THM画像(JPEG)」(821)を再生に使用する画像データとして決定する。 In S983, the system control unit 50 determines "SDR main image for display (JPEG)" (823) as image data to be used for reproduction. In S984, the system control unit 50 determines "SDR MPF image for display (JPEG)" (822) as image data to be used for reproduction. In S985, the system control unit 50 determines "SDR THM image for display (JPEG)" (821) as image data to be used for reproduction.

図9Hは、SDR現像静止画像から再生に使用する画像データを選択するフローである。 FIG. 9H is a flowchart for selecting image data to be used for reproduction from the SDR developed still image.

S991にて、システム制御部50は、インデックス再生か、通常の再生かを判定する。システム制御部50は、インデックス再生と判定した場合は処理をS992に、通常再生と判定した場合は処理をS993に進める。 In S991, the system control unit 50 determines whether index playback or normal playback is performed. If the system control unit 50 determines that index playback is to be performed, the process proceeds to S992, and if it is determined that normal playback is to be performed, the process proceeds to S993.

S992にて、システム制御部50は、インデックス再生の再生画像枚数によって、使用する画像データを判定する。実施形態では、枚数の閾値として36枚とする。システム制御部50は、再生する画像が36枚以上と判定した場合は処理をS995に、36枚未満であると判定した場合は処理をS994に進める。 In S992, the system control unit 50 determines the image data to be used based on the number of images to be reproduced in index reproduction. In the embodiment, the threshold value for the number of sheets is set to 36 sheets. If the system control unit 50 determines that the number of images to be reproduced is 36 or more, the process proceeds to S995, and if it determines that the number of images to be reproduced is less than 36, the process proceeds to S994.

S993にて、システム制御部50は、「SDR 本画像(JPEG)」(不図示)を再生に使用する画像データとして決定する。S994にて、システム制御部50は、「SDR MPF画像(JPEG)」(不図示)を再生に使用する画像データとして決定する。S995にて、システム制御部50は、「SDR THM画像(JPEG)」(不図示)を再生に使用する画像データとして決定する。 In S993, the system control unit 50 determines "SDR main image (JPEG)" (not shown) as the image data to be used for reproduction. In S994, the system control unit 50 determines "SDR MPF image (JPEG)" (not shown) as image data to be used for reproduction. In S995, the system control unit 50 determines "SDR THM image (JPEG)" (not shown) as image data to be used for reproduction.

図10Aは、外部機器300を使用した再生モード処理の詳細を示すフローチャートである。この処理は、不揮発性メモリ56に記録されたプログラムをシステムメモリ52に展開してシステム制御部50が実行することで実現する。 FIG. 10A is a flowchart showing details of playback mode processing using external device 300. This processing is realized by loading a program recorded in the nonvolatile memory 56 into the system memory 52 and executing it by the system control unit 50.

S1001にて、システム制御部50は、外部機器300がデジタルカメラ100に接続されているか否かを判定する。システム制御部50は、外部機器300が接続されていると判定した場合は処理をS1002に、接続されていないと判定した場合は処理をS1005に進める。 In S1001, the system control unit 50 determines whether the external device 300 is connected to the digital camera 100. If the system control unit 50 determines that the external device 300 is connected, the process proceeds to S1002, and if it determines that the external device 300 is not connected, the process proceeds to S1005.

S1002にて、システム制御部50は、再生時HDR設定が有効かどうかを判定する。再生設定としては、「HDR再生する」、「HDR再生しない」、「撮影モード連動」が選択可能である。「HDR再生する」を設定している場合は、再生する画像がHDR画像かSDR画像かに関係なく、外部機器300がHDRに対応していれば、HDR出力するモードであり、「HDR再生しない」はSDR出力するモードとなる。「撮影モード連動」は再生時の出力を撮影モードに連動させるモードである。すなわち、「HDR撮影」が「する」に設定されているHDR撮影モードの場合は、再生時もHDR出力し、「HDR撮影」が「しない」に設定されているSDR撮影モードの場合は再生時もSDR出力するモードである。なお、デフォルトは「撮影モード連動」に設定されており、ユーザが撮影モードを変更しても再生設定は「撮影モード連動」のまま維持される。ユーザが再生設定を「撮影モード連動」から「HDR再生する」又は「HDR再生しない」へ変更した場合だけ、その連動が切れる。また、「HDR再生する」及び「HDR再生しない」の代わりに「HEIF(再生)」及び「JPEG(再生)」等のファイルフォーマットを選択肢としてもよい。なお、同様に、「HDR撮影する」及び「HDR撮影しない」の代わりに「HEIF(撮影)」及び「JPEG(撮影)」等のファイルフォーマットを選択肢としてもよい。 In S1002, the system control unit 50 determines whether the HDR setting during playback is valid. As playback settings, "HDR playback", "HDR not playback", and "shooting mode linkage" can be selected. If "HDR playback" is set, regardless of whether the image to be played back is an HDR image or an SDR image, if the external device 300 supports HDR, the mode is HDR output; ” is the mode for SDR output. "Shooting mode linked" is a mode in which the output during playback is linked to the shooting mode. In other words, in the case of HDR shooting mode where "HDR shooting" is set to "Yes", HDR output is also performed during playback, and in the case of SDR shooting mode where "HDR shooting" is set to "No", during playback. This is also a mode for SDR output. Note that the default setting is "linked to shooting mode", and even if the user changes the shooting mode, the playback setting remains "linked to shooting mode". Only when the user changes the playback setting from "shooting mode linkage" to "HDR playback" or "HDR playback", the linkage is broken. Further, file formats such as "HEIF (playback)" and "JPEG (playback)" may be selected instead of "HDR playback" and "HDR playback not". Note that similarly, file formats such as "HEIF (photography)" and "JPEG (photography)" may be selected instead of "HDR photographing" and "HDR photographing not".

S1002において、システム制御部50は、「HDR再生する」の場合は処理をS1003に、「HDR再生しない」の場合は処理をS1005に進める。また、システム制御部50は、「撮影モード連動」の場合であって、S606で設定した「HDR撮影」が「する」の場合は処理をS1003に進め、「しない」の場合はS1005に処理を進める。 In S1002, the system control unit 50 advances the process to S1003 in the case of "HDR reproduction", and advances the process to S1005 in the case of "Do not perform HDR reproduction". Further, in the case of "shooting mode linked", if "HDR shooting" set in S606 is "Yes", the system control unit 50 advances the process to S1003, and if "No", the system control unit 50 advances the process to S1005. Proceed.

S1003にて、システム制御部50は、外部機器300がHDRに対応したディスプレイかどうかを判定する。システム制御部50は、HDRに対応したディスプレイであると判定した場合は処理をS1004に、対応していないと判定した場合は処理をS1005に進める。 In S1003, the system control unit 50 determines whether the external device 300 is a display compatible with HDR. If the system control unit 50 determines that the display supports HDR, the process proceeds to S1004, and if it determines that the display does not support HDR, the process proceeds to S1005.

S1004にて、システム制御部50は、外部機器300にHDRの信号を出力する。S1005にて、システム制御部50は、外部機器300にSDRの信号を出力する。 In S1004, system control unit 50 outputs an HDR signal to external device 300. In S1005, system control unit 50 outputs an SDR signal to external device 300.

S1006~S1011は、図9AのS901~906と同じため、ここでの説明は省略する。 S1006 to S1011 are the same as S901 to S906 in FIG. 9A, so the explanation here will be omitted.

図10Bは、外部機器300にHDRの信号を出力した場合の描画処理(S1009)の詳細を示すフローチャートである。 FIG. 10B is a flowchart showing details of the drawing process (S1009) when an HDR signal is output to the external device 300.

S1021~S1025、S1028、S1029は図9Bで説明した、S911~S915、S920、S921と同じため、ここでの説明は省略する。 S1021 to S1025, S1028, and S1029 are the same as S911 to S915, S920, and S921 described with reference to FIG. 9B, so the description thereof will be omitted here.

S1026にて、システム制御部50は、再生する画像がHDR画像であるかSDR画像であるかを判定する。システム制御部50は、再生する画像がHDR画像であると判定した場合は処理をS1028に、SDR画像であると判定した場合は処理をS1027に進める。 In S1026, the system control unit 50 determines whether the image to be reproduced is an HDR image or an SDR image. When the system control unit 50 determines that the image to be reproduced is an HDR image, the process proceeds to S1028, and when it determines that the image to be reproduced is an SDR image, the process proceeds to S1027.

S1027にて、システム制御部50は、SDR→HDR変換処理を行う。この後のS1028,S1029は、図9BのS920、S921と同じである。なお、外部機器300にSDRの信号を出力した場合の描画処理(S1009)の詳細は、図9Bと同じであるため、説明を省略する。 In S1027, the system control unit 50 performs SDR→HDR conversion processing. S1028 and S1029 after this are the same as S920 and S921 in FIG. 9B. Note that the details of the drawing process (S1009) when the SDR signal is output to the external device 300 are the same as those in FIG. 9B, so the description will be omitted.

図11(a)は再生メニュー処理の詳細を示すフローチャートである。この処理は、不揮発性メモリ56に記録されたプログラムをシステムメモリ52に展開してシステム制御部50が実行することで実現する。 FIG. 11(a) is a flowchart showing details of the reproduction menu process. This processing is realized by loading a program recorded in the nonvolatile memory 56 into the system memory 52 and executing it by the system control unit 50.

S1101にて、システム制御部50は、ユーザによりRAW現像の設定項目(不図示)でRAW現像すると設定された否かを判定する。システム制御部50は、RAW現像しないと判定した場合は処理をS1103に、RAW現像すると判定した場合は処理をS1102に進める。 In S1101, the system control unit 50 determines whether the user has set RAW development in a RAW development setting item (not shown). If the system control unit 50 determines that RAW development is not to be performed, the process proceeds to S1103, and if it is determined that RAW development is to be performed, the process proceeds to S1102.

S1103にて、システム制御部50は、HDRファイルのSDR変換の設定項目(不図示)でHDR→SDR変換すると設定されているか否かを判定する。システム制御部50は、HDR→SDR変換しないと判定した場合は処理をS1105へ、HDR→SDR変換すると判定した場合は処理をS1104へ進める。 In S1103, the system control unit 50 determines whether HDR→SDR conversion is set in the SDR conversion setting item (not shown) of the HDR file. If the system control unit 50 determines not to perform HDR→SDR conversion, the process proceeds to S1105, and if it determines to perform HDR→SDR conversion, the process proceeds to S1104.

S1105にて、システム制御部50は、ファイル転送の設定項目(不図示)でファイル転送すると設定されたか否かを判定する。システム制御部50は、ファイル転送しないと判定した場合は処理をS1107へ、ファイル転送すると判定した場合は処理をS1106へ進める。 In S1105, the system control unit 50 determines whether file transfer is set in a file transfer setting item (not shown). If the system control unit 50 determines not to transfer the file, the process proceeds to S1107, and if it determines to transfer the file, the process proceeds to S1106.

S1107にて、システム制御部50は、メニューを抜けるか否かを判定する。システム制御部50は、メニューを抜けないと判定した場合は処理をS1101に戻し、メニューを抜けると判定した場合は、この再生メニュー処理を終了する。 In S1107, the system control unit 50 determines whether to exit the menu. If the system control unit 50 determines that the menu cannot be exited, the process returns to S1101, and if it determines that the menu can be exited, the system control unit 50 ends this reproduction menu processing.

S1106にて、システム制御部50は、ユーザ指定の画像ファイルに対して転送処理を行う。HDR画像ファイルを転送する際は、受信先がSDR表示しかできない場合はS1104で示すHDR→SDR変換をカメラ内で実施してからSDR画像ファイルとして転送してもよい。 In S1106, the system control unit 50 performs a transfer process on the image file specified by the user. When transferring an HDR image file, if the receiving destination can only display SDR, the HDR→SDR conversion shown in S1104 may be performed within the camera and then transferred as an SDR image file.

S1102にて、システム制御部50は、ユーザ指定のRAW画像ファイルに対してRAW現像を行う。このRAW現像処理の詳細を、図11(b)のブロック図を参照して以下に説明する。なお、図11(b)に示す各処理部は、画像処理部24に含まれるものとするが、システム制御部50が実行するプログラムで実現させても構わない。 In S1102, the system control unit 50 performs RAW development on the RAW image file specified by the user. The details of this RAW development process will be explained below with reference to the block diagram of FIG. 11(b). Note that each processing unit shown in FIG. 11(b) is assumed to be included in the image processing unit 24, but may be realized by a program executed by the system control unit 50.

記録媒体200に記録されている撮影されたRAW画像1101をシステム制御部50が読み出し画像処理部24でRAW現像処理を行わせる。RAW画像はベイヤ配列の画素の集合であるので、1つの画素は単一の色成分の強度データしか有さない。尚、RAW画像はSDR撮影されたときのRAW(SDR)とHDR撮影されたときのRAW(HDR)が存在する。また、現像時にRAW(SDR)をそのままSDR現像する場合と、HDR現像する場合も有り得る。反対にRAW(HDR)をHDR現像する場合と、SDR現像する場合もある。ホワイトバランス部1102では、白を白くする処理がなされる。RAW(HDR)をHDR現像の場合は、ファイルに記録されているHDR現像メタであるHDR用のホワイトバランス係数を用いてホワイトバランス処理を実施する。逆に、SDR現像する場合は、ファイルに格納されている検出メタである白サーチ枠内判定結果からSDR用のホワイトバランス係数を生成して、ホワイトバランス処理を実施する。もちろんRAWにHDR用、SDR用の両方のホワイトバランス係数が記録されている場合は適宜必要な方を用いればよい。 The system control unit 50 reads out the photographed RAW image 1101 recorded on the recording medium 200 and causes the image processing unit 24 to perform RAW development processing. Since a RAW image is a collection of pixels in a Bayer array, one pixel has only intensity data of a single color component. Note that RAW images include RAW (SDR) when SDR photography is performed and RAW (HDR) when HDR photography is performed. Further, during development, there may be cases in which RAW (SDR) is directly SDR developed or HDR developed. On the other hand, there are cases where RAW (HDR) is subjected to HDR development and SDR development. The white balance unit 1102 performs processing to make white white. In the case of HDR development of RAW (HDR), white balance processing is performed using a white balance coefficient for HDR which is an HDR development meta recorded in a file. Conversely, when performing SDR development, a white balance coefficient for SDR is generated from the white search frame determination result, which is a detection meta stored in a file, and white balance processing is performed. Of course, if both white balance coefficients for HDR and SDR are recorded in RAW, the necessary one may be used as appropriate.

色補間部1103は、ノイズリダクションや色モザイク画像を補間することによって、全ての画素において、1画素が3成分(例えばR、G、Bの色情報)を持つカラー画像を生成する。生成されたカラー画像は、マトリクス変換部1104およびガンマ変換部1105を経て基本的なカラー画像が生成される。その後、色輝度調整部1106が、画像の見栄えを改善するための処理をカラー画像に対し行う。例えば、夕景検出して彩度強調といった画像補正がシーンに応じて行われる。階調補正も同様に実施するが、RAW(HDR)をHDR現像する場合は、ファイルに格納されているHDR現像メタであるHDR用の階調補正量を用いて階調補正を実施する。逆にSDR現像する場合は、ファイルに記録されている検出メタである顔検出結果、ヒストグラムを用いてSDR用の階調補正量を算出し階調補正を実施する。もちろんRAWにHDR用、SDR用の両方の階調補正量が記録されている場合は適宜必要な方を用いればよい。 The color interpolation unit 1103 generates a color image in which each pixel has three components (for example, R, G, and B color information) for all pixels by performing noise reduction and interpolating the color mosaic image. The generated color image passes through a matrix conversion unit 1104 and a gamma conversion unit 1105 to generate a basic color image. Thereafter, the color brightness adjustment unit 1106 performs processing on the color image to improve the appearance of the image. For example, image correction such as evening scene detection and saturation enhancement is performed depending on the scene. Tone correction is performed in the same way, but when RAW (HDR) is subjected to HDR development, tone correction is performed using the HDR tone correction amount, which is the HDR development meta stored in the file. Conversely, in the case of SDR development, the gradation correction amount for SDR is calculated using the face detection result and histogram, which are detection meta recorded in the file, and gradation correction is performed. Of course, if both gradation correction amounts for HDR and SDR are recorded in RAW, the necessary one may be used as appropriate.

所望の色調整を行った画像に対して、圧縮部1107で高解像度画像をJPEGやHEVC等の方法で圧縮し、記録部1108にてフラッシュメモリ等の記録媒体に記録する現像画像が生成される。尚、先述したHEIFコンテナには複数の画像を格納できるので、HDR現像した画像の他にSDR現像した画像も含めて格納しても構わない。 A compression unit 1107 compresses the high-resolution image of the image that has been subjected to desired color adjustment using a method such as JPEG or HEVC, and a recording unit 1108 generates a developed image to be recorded on a recording medium such as a flash memory. . Note that since a plurality of images can be stored in the HEIF container described above, it is possible to store not only the HDR developed image but also the SDR developed image.

S1104にて、システム制御部50は、ユーザ指定のHDR画像ファイルに対してSDR変換を行う。HDR画像はOETFがPQ、色域がBT.2020などの色空間で生成された画像であるため、SDRのγ2.2、sRGBなどの色空間にトーンマッピングおよびガマットマッピング処理を行う必要がある。具体的な方法としては公知の技術を用いれば良いが、例えば適正露出をSDRと揃えるようなトーンマッピングを行うとSDRと比較して明るさを合わせた結果を得ることができる。 In S1104, the system control unit 50 performs SDR conversion on the HDR image file specified by the user. The HDR image has an OETF of PQ and a color gamut of BT. Since the image is generated in a color space such as 2020, it is necessary to perform tone mapping and gamut mapping processing in a color space such as SDR γ2.2 or sRGB. As a specific method, a known technique may be used, but for example, if tone mapping is performed to match the appropriate exposure with SDR, it is possible to obtain a result in which the brightness is matched compared to SDR.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、上記実施形態では、1色成分が8ビットを超える画像データの符号化にHEVC(High Efficiency Video Coding)を採用するものとしたが、1色成分当たり8ビットを超える画像を符号化することが可能であれば、特にその種類は問わない。また、上記実施形態ではデジタルカメラに適用するものとして説明したが、撮像機能を有するコンピュータ(スマートフォンやカメラ付きノートPC等)に適用しても構わず、上記実施形態に限定されるものではない。 Although preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes can be made within the scope of the invention. For example, in the above embodiment, HEVC (High Efficiency Video Coding) is adopted to encode image data in which one color component exceeds 8 bits, but it is not possible to encode an image in which one color component exceeds 8 bits. As long as it is possible, the type does not matter. Further, although the above embodiment has been described as being applied to a digital camera, the present invention may be applied to a computer having an imaging function (such as a smartphone or a notebook PC with a camera), and is not limited to the above embodiment.

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

100…デジタルカメラ、150…レンズユニット、300…外部機器、50…システム制御部、70…操作部、200…記録媒体 DESCRIPTION OF SYMBOLS 100... Digital camera, 150... Lens unit, 300... External device, 50... System control part, 70... Operation part, 200... Recording medium

Claims (1)

撮像手段と、
画像データに対して符号化処理を施す符号化手段と、
RAW画像ファイルを記録する際に、RAW画像データに基づいて生成された第1のダイナミックレンジの画像データに第1の符号化形式の符号化処理を施した第1の符号化画像データを、RAW画像ファイルの表示用画像として記録するか、RAW画像データに基づいて生成された第2のダイナミックレンジの画像データに第2の符号化形式の符号化処理を施した第2の符号化画像データを、RAW画像ファイルの表示用画像として記録するかを制御する制御手段と、
を有することを特徴とする撮像装置。
an imaging means;
an encoding means that performs encoding processing on image data;
When recording a RAW image file, first encoded image data obtained by performing encoding processing in a first encoding format on image data of a first dynamic range generated based on RAW image data is recorded as a RAW image file. The second encoded image data is recorded as a display image of an image file, or the second encoded image data is obtained by performing encoding processing of the second encoding format on the second dynamic range image data generated based on the RAW image data. , a control means for controlling whether to record the RAW image file as a display image;
An imaging device comprising:
JP2023204909A 2019-02-28 2023-12-04 Imaging device and its control method and program Pending JP2024015185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023204909A JP2024015185A (en) 2019-02-28 2023-12-04 Imaging device and its control method and program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2019036396A JP7185563B2 (en) 2019-02-28 2019-02-28 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
JP2022187581A JP7399247B2 (en) 2019-02-28 2022-11-24 Imaging device and its control method and program
JP2023204909A JP2024015185A (en) 2019-02-28 2023-12-04 Imaging device and its control method and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2022187581A Division JP7399247B2 (en) 2019-02-28 2022-11-24 Imaging device and its control method and program

Publications (1)

Publication Number Publication Date
JP2024015185A true JP2024015185A (en) 2024-02-01

Family

ID=72280759

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2019036396A Active JP7185563B2 (en) 2019-02-28 2019-02-28 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
JP2022187581A Active JP7399247B2 (en) 2019-02-28 2022-11-24 Imaging device and its control method and program
JP2023204909A Pending JP2024015185A (en) 2019-02-28 2023-12-04 Imaging device and its control method and program

Family Applications Before (2)

Application Number Title Priority Date Filing Date
JP2019036396A Active JP7185563B2 (en) 2019-02-28 2019-02-28 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
JP2022187581A Active JP7399247B2 (en) 2019-02-28 2022-11-24 Imaging device and its control method and program

Country Status (1)

Country Link
JP (3) JP7185563B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115699788A (en) * 2020-06-26 2023-02-03 富士胶片株式会社 Moving image control device, moving image recording device, moving image control method, moving image recording method, and moving image control program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4560422B2 (en) * 2005-02-16 2010-10-13 キヤノン株式会社 Imaging apparatus and control method thereof
JP6325841B2 (en) 2014-02-27 2018-05-16 オリンパス株式会社 Imaging apparatus, imaging method, and program
JP6335563B2 (en) * 2014-03-18 2018-05-30 キヤノン株式会社 Imaging apparatus and control method thereof
JP6233424B2 (en) 2016-01-05 2017-11-22 ソニー株式会社 Imaging system and imaging method
JP2018042198A (en) 2016-09-09 2018-03-15 オリンパス株式会社 Imaging apparatus and imaging method
JP2018107664A (en) 2016-12-27 2018-07-05 キヤノン株式会社 Image processing device, image processing method, imaging apparatus, and program
JP2018148353A (en) 2017-03-03 2018-09-20 オリンパス株式会社 Imaging apparatus and imaging method

Also Published As

Publication number Publication date
JP7185563B2 (en) 2022-12-07
JP2023010980A (en) 2023-01-20
JP2020141297A (en) 2020-09-03
JP7399247B2 (en) 2023-12-15

Similar Documents

Publication Publication Date Title
JP7263053B2 (en) IMAGING DEVICE, IMAGE PROCESSING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM
JP7313893B2 (en) IMAGING DEVICE, RECORDING CONTROL METHOD AND PROGRAM
JP7365133B2 (en) Communication device, its control method, and program
JP2021124638A (en) Display control device, display control method, program and storage medium
US10972674B2 (en) Electronic apparatus
JP2024015185A (en) Imaging device and its control method and program
JP7091068B2 (en) Electronics
US11165970B2 (en) Image processing apparatus, imaging apparatus, image processing method, and non-transitory computer readable medium
CN113491103B (en) Image pickup apparatus, control method thereof, and storage medium
JP2020141334A (en) Imaging device and control method thereof, and program
JP6968690B2 (en) Electronics
JP7191649B2 (en) Electronics

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231228

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231228