JP2015188130A - Image processing system, imaging apparatus, control method of image processing system, and program - Google Patents

Image processing system, imaging apparatus, control method of image processing system, and program Download PDF

Info

Publication number
JP2015188130A
JP2015188130A JP2014064344A JP2014064344A JP2015188130A JP 2015188130 A JP2015188130 A JP 2015188130A JP 2014064344 A JP2014064344 A JP 2014064344A JP 2014064344 A JP2014064344 A JP 2014064344A JP 2015188130 A JP2015188130 A JP 2015188130A
Authority
JP
Japan
Prior art keywords
image
raw
file
unit
development
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.)
Granted
Application number
JP2014064344A
Other languages
Japanese (ja)
Other versions
JP2015188130A5 (en
JP6294725B2 (en
Inventor
晃一 佐々木
Koichi Sasaki
晃一 佐々木
金子 唯史
Tadashi Kaneko
金子  唯史
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 JP2014064344A priority Critical patent/JP6294725B2/en
Publication of JP2015188130A publication Critical patent/JP2015188130A/en
Publication of JP2015188130A5 publication Critical patent/JP2015188130A5/ja
Application granted granted Critical
Publication of JP6294725B2 publication Critical patent/JP6294725B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a technique that makes it possible to quickly display a reproduction image while recording a RAW image.SOLUTION: The image processing system includes: first development means of developing a RAW image; compression means of compression coding the developed RAW image and generating a first image file; RAW compression means of compressing the RAW image and generating a RAW file; storage means of storing the first image file and the RAW file in a recording medium; second development means of performing developing with a processing load higher than that of the development processing performed by first development means against the RAW image; and reproduction means of a moving image. In a predetermined operation state of the image processing system, when the second development means performs development processing with a high processing load against a part of the RAW image and the reproduction means reproduces a moving image, in a part of a plurality of frames, a developed image is reproduced from the RAW image obtained by the second development means, and in the other part, a developed image obtained from the first image file is reproduced.

Description

本発明は、画像処理装置、撮像装置、画像処理装置の制御方法及びプログラムに関する。   The present invention relates to an image processing apparatus, an imaging apparatus, an image processing apparatus control method, and a program.

従来の撮像装置では、撮像センサーによって撮像された生の画像情報(RAW画像)をデベイヤー処理(デモザイク処理)し、輝度と色差から成る信号に変換して、各信号についてノイズ除去、光学的な歪補正、画像の適正化などの所謂現像処理を行っている。そして、現像処理された輝度信号及び色差信号を圧縮符号化して、記憶媒体に記録するのが一般的である。   In a conventional imaging apparatus, raw image information (RAW image) captured by an imaging sensor is debayered (demosaiced), converted into a signal composed of luminance and color difference, noise removal, and optical distortion for each signal. So-called development processing such as correction and image optimization is performed. In general, the developed luminance signal and color difference signal are compression encoded and recorded on a storage medium.

一方で、RAW画像を記録できる撮像装置も存在する。RAW画像は記録に必要なデータ量が膨大になるが、オリジナル画像に対する補正や劣化を最低限に抑えられ、撮影後に編集できる利点があるので、上級者によって好んで使われている。   On the other hand, there are imaging devices that can record RAW images. RAW images require a large amount of data for recording, but are preferred by advanced users because they have the advantage that correction and deterioration of the original image can be minimized and can be edited after shooting.

RAW画像を記録する撮像装置の構成は特許文献1に開示されている。特許文献1には、RAW画像と共に現像パラメータを記録しておき、再生時に当該現像パラメータを用いてRAW画像の現像及び再生を行う構成が記載されている。   The configuration of an imaging apparatus that records a RAW image is disclosed in Patent Document 1. Patent Document 1 describes a configuration in which development parameters are recorded together with a RAW image, and the RAW image is developed and reproduced using the development parameters during reproduction.

特開2011−244423号公報JP 2011-244423 A

近年の撮像装置は、撮像センサーが進化し、画像1枚あたりの画素数が大幅に増加してきている。また、1秒あたりに連写できる画像の枚数も増える傾向にある。そのため、RAW画像に対するデベイヤー処理や、ノイズ除去、光学歪補正など、現像処理を成すそれぞれの処理量が相乗的に増大し、撮影と並行したリアルタイムの現像処理を行うには、膨大な回路や消費電力を費やしている。時には、現像処理による回路の占有や消費電力上の制限などのために、高い撮影パフォーマンスを実行できないことも起こり得る。   In recent imaging apparatuses, the number of pixels per image has greatly increased due to the evolution of imaging sensors. Also, the number of images that can be taken continuously per second tends to increase. For this reason, each processing amount for development processing such as debayer processing, noise removal, and optical distortion correction for RAW images increases synergistically, and in order to perform real-time development processing in parallel with shooting, enormous circuits and consumption are required. Electricity is spent. In some cases, it may not be possible to execute high photographing performance due to the occupation of the circuit by development processing and the limitation on power consumption.

一方、前述の特許文献1のように、RAW画像を現像せずに記録する構成ならば、撮影時の現像に係る処理量は軽減されるかもしれないが、現像されていない状態で記録されるために、画像を速やかに再生表示することが困難である。さらに、RAW画像特有のデータの特殊性によって、他の機器ではRAW画像を再生(現像)できなかったりするので、従来のRAW画像の記録方式では、ユーザーの利便性を損なうことがあった。   On the other hand, if the configuration is such that the RAW image is recorded without being developed as in Patent Document 1 described above, the processing amount related to the development at the time of shooting may be reduced, but the RAW image is recorded in the undeveloped state. Therefore, it is difficult to quickly reproduce and display the image. Furthermore, the RAW image cannot be reproduced (developed) by other devices due to the uniqueness of the data specific to the RAW image, and the conventional RAW image recording method may impair the convenience of the user.

このように、従来の装置で高い撮影パフォーマンスを実行し、再生画像も高速に出画可能にするには、高コストの回路を搭載して高出力で駆動するか、RAW画像を記録して高速かつ簡便に再生しなければならない。   In this way, in order to perform high shooting performance with a conventional device and to enable playback images to be output at high speed, either high-cost circuits can be installed and driven at high output, or RAW images can be recorded and processed at high speed. And it must be played back easily.

そこで、本発明の目的は、RAW画像を記録しながらも、再生画像を速やかに表示させることを可能にする技術を提供することにある。   Accordingly, an object of the present invention is to provide a technique that enables a reproduced image to be displayed promptly while recording a RAW image.

上記課題を解決するための本発明は、画像処理装置であって、
RAW画像を現像処理する第1の現像手段と、
前記現像処理されたRAW画像を圧縮符号化して第1の画像ファイルを生成する圧縮手段と、
前記RAW画像を圧縮しRAWファイルを生成するRAW圧縮手段と、
前記第1の画像ファイルと前記RAWファイルとを記憶媒体に記録する記録手段と、
前記RAWファイルを伸張してRAW画像を生成する伸張手段と、
前記伸張により得られたRAW画像に対し、前記第1の現像手段が行う前記現像処理よりも処理負荷の高い現像処理を行う第2の現像手段と、
前記記憶媒体から前記第1の画像ファイル又は前記RAWファイルから得られる動画を再生する再生手段とを備え、
前記画像処理装置が所定の動作状態のときに、前記RAWファイルに含まれる複数のフレームの一部を前記伸張手段が伸張し、前記第2の現像手段が該伸張により得られたRAW画像について前記処理負荷の高い現像処理を実行し、
前記再生手段が、前記動画を再生するときに、前記動画に対応する前記複数のフレームの一部では、前記第2の現像手段によって得られたRAW画像からの現像画像を再生し、その他の部分では前記第1の画像ファイルから得られた現像画像を再生することを特徴とする。
The present invention for solving the above problems is an image processing apparatus,
First developing means for developing a RAW image;
Compression means for compression-encoding the developed RAW image to generate a first image file;
RAW compression means for compressing the RAW image and generating a RAW file;
Recording means for recording the first image file and the RAW file on a storage medium;
Decompression means for decompressing the RAW file to generate a RAW image;
A second developing unit that performs a developing process with a higher processing load on the RAW image obtained by the expansion than the developing process performed by the first developing unit;
Playback means for playing back the moving image obtained from the first image file or the RAW file from the storage medium,
When the image processing apparatus is in a predetermined operation state, the expansion unit expands a part of a plurality of frames included in the RAW file, and the second developing unit extracts the RAW image obtained by the expansion. Execute development processing with high processing load,
When the reproducing unit reproduces the moving image, a part of the plurality of frames corresponding to the moving image reproduces a developed image from the RAW image obtained by the second developing unit, and the other part. Then, the developed image obtained from the first image file is reproduced.

本発明によれば、RAW画像を記録しながらも、再生画像を速やかに表示させることが可能になる。   According to the present invention, it is possible to promptly display a reproduced image while recording a RAW image.

発明の実施形態に係る撮像装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the imaging device which concerns on embodiment of invention. 発明の実施形態の状態遷移図である。It is a state transition diagram of an embodiment of the invention. 発明の実施形態の静止画撮影モードの処理に係るフローチャートである。It is a flowchart which concerns on the process of the still image shooting mode of embodiment of invention. 発明の実施形態の静止画ファイルとRAWファイルの構成例である。It is an example of a structure of the still image file and RAW file of embodiment of invention. 発明の実施形態のアイドル状態の処理に係るフローチャートである。It is a flowchart which concerns on the process of an idle state of embodiment of invention. 発明の実施形態の静止画再生モードの処理に係るフローチャートである。It is a flowchart which concerns on the process of the still image reproduction mode of embodiment of invention. 発明の実施形態の静止画再生モードの表示処理の例を示す図である。It is a figure which shows the example of the display process of the still image reproduction mode of embodiment of invention. 発明の実施形態の動画撮影モードの処理に係るフローチャートである。It is a flowchart which concerns on the process of the video recording mode of embodiment of invention. 発明の実施形態の動画ファイルとRAWファイルの構成例である。It is a structural example of the moving image file and RAW file of embodiment of invention. 発明の実施形態の追いかけ現像モードの処理に係るフローチャートである。It is a flowchart which concerns on the process of the chase development mode of embodiment of invention. 発明の実施形態の動画再生モードの処理に係るフローチャートである。It is a flowchart which concerns on the process of the moving image reproduction mode of embodiment of invention. 画素配列の説明図である。It is explanatory drawing of a pixel arrangement | sequence. 発明の実施形態に係る先頭部分追いかけ現像を施した場合の各動画ファイルの概念図である。It is a conceptual diagram of each moving image file when the first portion chasing development is performed according to the embodiment of the invention. 発明の実施形態の追いかけ現像処理に係るフローチャートである。It is a flowchart which concerns on the chase development process of embodiment of invention. 発明の実施形態の追いかけ現像処理に係るフレーム選択方法を説明する図である。It is a figure explaining the frame selection method which concerns on the chase development process of embodiment of invention. 発明の実施形態の予測符号化における符号化モード及びフレームの参照先について説明するための図である。It is a figure for demonstrating the encoding mode in the predictive encoding of embodiment of invention, and the reference destination of a flame | frame. 発明の実施形態における動画再生モードの処理に係るフローチャートである。It is a flowchart which concerns on the process of the moving image reproduction mode in embodiment of invention. 発明の実施形態における動画ファイルの一覧表示の一例を示す図である。It is a figure which shows an example of the list display of the moving image file in embodiment of invention.

以下、図面を参照しながら、本発明の実施の形態を詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<実施形態1>
図1は、本発明の実施形態に係る撮像装置の構成例を示すブロック図である。図1に示した撮像装置100は、被写体を撮像して得られた画像情報を記憶媒体に記録するだけでなく、画像情報を記憶媒体から再生し、現像処理して表示する機能や、画像情報を外部の装置やサーバ(クラウド)等と送受信する機能を有する。従って、本発明の実施形態に係る撮像装置は、画像処理装置、記録装置、再生装置、記録再生装置、通信装置等と表現することができる。また図1の撮像装置100において、撮像素子、表示素子、入力デバイスや端子のような物理的デバイスを除き、各ブロックは専用ロジック回路やメモリを用いてハードウェア的に構成されてもよい。或いは、メモリに記憶されている処理プログラムをCPU等のコンピュータが実行することにより、ソフトウェア的に構成されてもよい。
<Embodiment 1>
FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus according to an embodiment of the present invention. The imaging apparatus 100 shown in FIG. 1 not only records image information obtained by imaging a subject on a storage medium, but also reproduces the image information from the storage medium, displays it after developing, and image information. Has a function to transmit / receive data to / from an external device or server (cloud). Therefore, the imaging apparatus according to the embodiment of the present invention can be expressed as an image processing apparatus, a recording apparatus, a reproducing apparatus, a recording / reproducing apparatus, a communication apparatus, and the like. In the imaging apparatus 100 of FIG. 1, each block may be configured by hardware using a dedicated logic circuit or a memory, except for physical devices such as an imaging element, a display element, an input device, and a terminal. Alternatively, the processing program stored in the memory may be configured by software by a computer such as a CPU executing the processing program.

図1において、制御部161は、CPUと、当該CPUが実行する制御プログラムを格納するメモリを含み、撮像装置100の全体の処理を制御する。操作部162は、ユーザーが撮像装置100に対して指示を与えるために用いるキーやボタン、タッチパネルなどの入力デバイスを含む。操作部162からの操作信号は、制御部161によって検出され、操作に応じた動作が実行されるよう制御部161によって制御される。表示部123は、撮像装置100において、撮影、或いは再生された画像や、メニュー画面、各種情報等を表示するための液晶ディスプレイ(LCD)等を含む。   In FIG. 1, the control unit 161 includes a CPU and a memory that stores a control program executed by the CPU, and controls the overall processing of the imaging apparatus 100. The operation unit 162 includes input devices such as keys, buttons, and a touch panel used by the user to give an instruction to the imaging apparatus 100. An operation signal from the operation unit 162 is detected by the control unit 161, and is controlled by the control unit 161 so that an operation corresponding to the operation is executed. The display unit 123 includes a liquid crystal display (LCD) or the like for displaying an image taken or reproduced in the imaging apparatus 100, a menu screen, various information, and the like.

操作部162によって撮影動作の開始が指示されると、撮像対象となる被写体の光学像が、撮像光学部101を介して入力され、撮像センサー部102上に結像する。撮影時、撮像光学部101及び撮像センサー部102の動作は、評価値算出部105により取得される絞り、フォーカス、手ぶれ等の評価値算出結果や、認識部131によって抽出される被写体情報に基づいて、カメラ制御部104によって制御される。   When an operation unit 162 is instructed to start a shooting operation, an optical image of a subject to be imaged is input via the imaging optical unit 101 and formed on the imaging sensor unit 102. At the time of shooting, the operations of the imaging optical unit 101 and the imaging sensor unit 102 are based on evaluation value calculation results such as aperture, focus, camera shake, and the like acquired by the evaluation value calculation unit 105 and subject information extracted by the recognition unit 131. Controlled by the camera control unit 104.

撮像センサー部102は、CCDやCMOSセンサー等の撮像素子を備え、画素毎に配置される赤、緑、青(RGB)のカラーフィルターを透過した光を電気信号に変換する。図12は、撮像センサー部102に配置されるカラーフィルターの一例であり、撮像装置100が扱う画像の画素配列を表している。図12に示すように、赤(R)、緑(G)、青(B)が画素毎にモザイク状に配置されていて、2×2の4画素につき赤1画素、青1画素、緑2画素を1セットにして規則的に並べられた構造となっている。このような画素の配置は、一般にベイヤ―配列と呼ばれる。   The image sensor unit 102 includes an image sensor such as a CCD or a CMOS sensor, and converts light transmitted through red, green, and blue (RGB) color filters arranged for each pixel into an electrical signal. FIG. 12 is an example of a color filter disposed in the imaging sensor unit 102 and represents a pixel arrangement of an image handled by the imaging apparatus 100. As shown in FIG. 12, red (R), green (G), and blue (B) are arranged in a mosaic pattern for each pixel, and for each 2 × 2 four pixels, one red pixel, one blue pixel, and two green pixels It has a structure in which pixels are regularly arranged in one set. Such an arrangement of pixels is generally called a Bayer array.

撮像センサー部102によって変換された電気信号は、センサー信号処理部103によって画素の修復処理が施される。修復処理には、撮像センサー部102における欠落画素や信頼性の低い画素の値に対し、周辺画素値を用いて修復対象の画素を補間したり、所定のオフセット値を減算したりする処理が含まれる。本実施形態では、センサー信号処理部103から出力される画像情報を、生(未現像)の画像を意味するRAW画像と称す。   The electrical signal converted by the imaging sensor unit 102 is subjected to pixel restoration processing by the sensor signal processing unit 103. The restoration process includes a process of interpolating a pixel to be restored using a peripheral pixel value or subtracting a predetermined offset value from a missing pixel value or a low-reliability pixel value in the image sensor unit 102. It is. In the present embodiment, the image information output from the sensor signal processing unit 103 is referred to as a RAW image that means a raw (undeveloped) image.

RAW画像は、現像部110で現像処理される。現像部110は、複数の異なる現像処理部を有し、第1の現像部としての簡易現像部111と、第2の現像部としての高画質現像部112とから成り、それらの出力を選択するスイッチ部121を含んで構成される。簡易現像部111、高画質現像部112は共に、RAW画像に対してデベイヤー処理(デモザイク処理)を施し、輝度と色差から成る信号に変換して、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの所謂現像処理を行う。   The RAW image is developed by the developing unit 110. The development unit 110 includes a plurality of different development processing units, and includes a simple development unit 111 as a first development unit and a high-quality development unit 112 as a second development unit, and selects an output thereof. A switch unit 121 is included. Both the simple development unit 111 and the high-quality development unit 112 perform debayer processing (demosaic processing) on the RAW image, convert the signal into a signal composed of luminance and color difference, remove noise contained in each signal, A so-called development process such as correcting distortion and optimizing an image is performed.

特に、高画質現像部112は、簡易現像部111よりも各々の処理を高精度に行うものである。高精度であるため、簡易現像部111よりも高画質な現像画像が得られるが、一方で、処理負荷が高くなってしまう。そこで、本実施形態の高画質現像部112は、撮影と並行したリアルタイムの現像に特化したものではなく、撮影後に時間をかけて分散処理を行うことが可能な構成になっている。このように高画質現像を撮影時ではなく、時間をかけて後から行うようにすることで、回路規模や消費電力の増大(ピーク)を低く抑えることができる。他方、簡易現像部111は、高画質現像部112よりも、画質は低いものの、撮影中に高速に現像処理を行えるよう、高画質現像よりも現像に係る処理量が少なくなるように構成されている。簡易現像部111の処理負荷は小さいので、撮影動作と並行したリアルタイムの現像の際には簡易現像部111を用いるようにする。スイッチ部121は、操作部162によりユーザーから指示された操作内容や実行中の動作モードに応じた制御に従って、制御部161によって切り替えられる。   In particular, the high image quality development unit 112 performs each process with higher accuracy than the simple development unit 111. Since it is highly accurate, a developed image with higher image quality than that of the simple developing unit 111 can be obtained, but on the other hand, the processing load becomes high. Therefore, the high image quality developing unit 112 of the present embodiment is not specialized for real-time development in parallel with shooting, and has a configuration capable of performing distributed processing over time after shooting. As described above, the high-quality image development is not performed at the time of shooting but is performed later over time, so that an increase (peak) in circuit scale and power consumption can be suppressed to a low level. On the other hand, the simple development unit 111 has a lower image quality than the high image quality development unit 112, but is configured to have a smaller processing amount than the high image quality development so that the development process can be performed at high speed during shooting. Yes. Since the processing load of the simple developing unit 111 is small, the simple developing unit 111 is used for real-time development in parallel with the photographing operation. The switch unit 121 is switched by the control unit 161 in accordance with control according to the operation content instructed by the user from the operation unit 162 and the operation mode being executed.

なお、本実施形態では、現像部110の中に簡易現像部111と高画質現像部112が独立に存在する構成を示しているが、一つの現像部が動作モードを切り替えて、簡易現像と高画質現像の処理を排他的に行う構成であっても本発明の範疇である。現像部110によって現像処理された画像情報は、表示制御部122によって所定の表示処理がなされた後、表示部123にて表示される。また、現像処理された画像情報は、映像出力端子124により、外部に接続された表示機器に出力してもよい。映像出力端子124は、例えばHDMIやSDIのような汎用インタフェースを含む。   In the present embodiment, the simple developing unit 111 and the high image quality developing unit 112 exist independently in the developing unit 110. However, one developing unit switches the operation mode so that the simple developing unit and the high developing unit 112 can Even a configuration in which image quality development processing is performed exclusively is within the scope of the present invention. The image information developed by the developing unit 110 is displayed on the display unit 123 after a predetermined display process is performed by the display control unit 122. Further, the developed image information may be output to an externally connected display device through the video output terminal 124. The video output terminal 124 includes a general-purpose interface such as HDMI or SDI.

現像部110によって現像処理された画像情報は、評価値算出部105にも供給される。評価値算出部105は、画像情報からフォーカス状態や露出状態などの評価値を算出する。   The image information developed by the developing unit 110 is also supplied to the evaluation value calculating unit 105. The evaluation value calculation unit 105 calculates evaluation values such as a focus state and an exposure state from the image information.

現像部110によって現像処理された画像情報は、認識部131にも供給される。認識部131は、画像情報中の被写体情報を検出及び認識する機能を有する。例えば、画像情報によって表される画面内における顔を検出し、有る場合は顔の位置を示す情報を出力し、さらに顔などの特徴情報に基づいて特定の人物の認証などを行う。   The image information developed by the developing unit 110 is also supplied to the recognition unit 131. The recognition unit 131 has a function of detecting and recognizing subject information in image information. For example, a face in the screen represented by the image information is detected. If there is a face, information indicating the position of the face is output, and a specific person is authenticated based on feature information such as the face.

現像部110によって現像処理された画像情報は、静止画圧縮部141及び動画圧縮部142にも供給される。画像情報を静止画として圧縮する場合は、静止画圧縮部141を用いる。画像情報を動画として圧縮する場合は、動画圧縮部142を用いる。静止画圧縮部141及び動画圧縮部142は、それぞれ対象となる画像情報を高能率符号化(圧縮符号化)し、情報量が圧縮された画像情報を生成して、画像ファイル(静止画ファイル、又は、動画ファイル)に変換する。静止画圧縮はJPEGなどを、動画圧縮にはMPEG−2、H.264、H.265等を用いることができる。   The image information developed by the developing unit 110 is also supplied to the still image compression unit 141 and the moving image compression unit 142. When compressing the image information as a still image, the still image compression unit 141 is used. When the image information is compressed as a moving image, the moving image compression unit 142 is used. The still image compressing unit 141 and the moving image compressing unit 142 respectively perform high-efficiency encoding (compression encoding) on the target image information, generate image information whose information amount is compressed, and generate an image file (still image file, Or a video file). Still image compression is JPEG, etc., and moving image compression is MPEG-2, H.264. H.264, H.C. 265 or the like can be used.

RAW圧縮部113は、センサー信号処理部103が出力したRAW画像を、ウエーブレット変換や、差分符号化等の技術を用いて高能率符号化し、圧縮された状態のRAWファイルに変換して、バッファ部(記憶媒体)115に格納する。RAWファイルは、バッファ部115内に残しておいて再び読み出すことができるが、バッファ部115に格納された後、別の記憶媒体に移動して記録する(バッファ部115から削除する)ようにしても良い。   The RAW compression unit 113 performs high-efficiency encoding on the RAW image output from the sensor signal processing unit 103 using a technique such as wavelet conversion or differential encoding, and converts the RAW image into a compressed RAW file. Section (storage medium) 115. The RAW file can remain in the buffer unit 115 and can be read again. However, after being stored in the buffer unit 115, it is moved to another storage medium and recorded (deleted from the buffer unit 115). Also good.

RAWファイルと、上述の静止画ファイル及び動画ファイルは、記録再生部151によって、記憶媒体152に記録される。記憶媒体152は、内蔵式の大容量メモリやハードディスク、又は、着脱式のメモリカード等である。記録再生部151は、記憶媒体152から静止画ファイル、動画ファイル、RAWファイルを読み出すこともできる。   The RAW file and the above-described still image file and moving image file are recorded on the storage medium 152 by the recording / playback unit 151. The storage medium 152 is a built-in large-capacity memory, a hard disk, or a removable memory card. The recording / playback unit 151 can also read a still image file, a moving image file, and a RAW file from the storage medium 152.

記録再生部151は、通信部153を介して、外部のストレージやサーバに、各種ファイルを書き込んだり、読み出したりすることができる。通信部153は通信端子154を用いて、無線通信や有線通信によりインターネットや外部機器にアクセス可能な構成を有する。   The recording / playback unit 151 can write and read various files to an external storage or server via the communication unit 153. The communication unit 153 has a configuration in which the communication terminal 154 can be used to access the Internet or an external device through wireless communication or wired communication.

再生動作が開始されると、記録再生部151は、記憶媒体152から、又は、通信部153を介して、所望のファイルを取得して再生する。再生対象のファイルがRAWファイルであれば、記録再生部151は、取得されたRAWファイルをバッファ部115に格納する。再生対象のファイルが静止画ファイルであれば、記録再生部151は、取得された静止画ファイルを静止画伸張部143に供給する。再生対象のファイルが動画ファイルであれば、記録再生部151は、取得された動画ファイルを動画伸張部144に供給する。   When the playback operation is started, the recording / playback unit 151 acquires and plays back a desired file from the storage medium 152 or via the communication unit 153. If the file to be played is a RAW file, the recording / playback unit 151 stores the acquired RAW file in the buffer unit 115. If the file to be played back is a still image file, the recording / playback unit 151 supplies the acquired still image file to the still image expansion unit 143. If the file to be played is a moving image file, the recording / playback unit 151 supplies the acquired moving image file to the moving image decompression unit 144.

RAW伸張部114は、バッファ部115に格納されているRAWファイルを読みだして、圧縮された状態のRAWファイルを復号してRAW画像を生成する。RAW伸張部114によるRAWファイルの伸張処理により得られたRAW画像は、現像部110内の簡易現像部111、高画質現像部112に供給される。   The RAW decompression unit 114 reads the RAW file stored in the buffer unit 115, decodes the compressed RAW file, and generates a RAW image. The RAW image obtained by the RAW file expansion process by the RAW expansion unit 114 is supplied to the simple development unit 111 and the high image quality development unit 112 in the development unit 110.

静止画伸張部143は、入力された静止画ファイルを復号して伸張し、静止画の再生画像として表示制御部122に供給する。動画伸張部144は、入力された動画ファイルを復号して伸張し、動画の再生画像(再生動画)として表示制御部122に供給する。   The still image expansion unit 143 decodes and expands the input still image file, and supplies the decoded still image file to the display control unit 122 as a reproduced image of the still image. The moving image extension unit 144 decodes and expands the input moving image file, and supplies it to the display control unit 122 as a moving image reproduction image (reproduced moving image).

次に、本実施形態の撮像装置100の動作モードに関して、図を用いて詳細に説明する。図2は、撮像装置100における、各動作モードの遷移を示す状態遷移図である。このような動作状態の遷移は、操作部162からのユーザー操作指示や、制御部161の判断に応じて実行され、操作に応じて手動で遷移することもあれば、自動で遷移することもある。図2のように、撮像装置100は、アイドル状態(200)を経由して4つのモード、静止画撮影モード(201)、静止画再生モード(202)、動画撮影モード(203)、動画再生モード(204)に適宜切り替わって動作する。   Next, operation modes of the imaging apparatus 100 of the present embodiment will be described in detail with reference to the drawings. FIG. 2 is a state transition diagram illustrating transition of each operation mode in the imaging apparatus 100. Such transition of the operation state is executed according to a user operation instruction from the operation unit 162 or a determination of the control unit 161, and may be manually changed or automatically changed according to the operation. . As illustrated in FIG. 2, the imaging apparatus 100 includes four modes via an idle state (200), a still image shooting mode (201), a still image playback mode (202), a moving image shooting mode (203), and a moving image playback mode. The operation is switched to (204) as appropriate.

次に、撮像装置100の静止画撮影モードにおける動作について説明する。図3に、本実施形態の静止画撮影モードの処理に係るフローチャートを示す。図3のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, the operation in the still image shooting mode of the imaging apparatus 100 will be described. FIG. 3 shows a flowchart relating to processing in the still image shooting mode of the present embodiment. The flowchart in FIG. 3 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) of the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

図3において静止画撮影モードの処理が開始されると、S301にて制御部161が撮像装置100の処理負荷状況が低いか否かを判定する。負荷状況に応じた頻度で、処理負荷が低い場合はS320でアイドル状態へ遷移し、それ以外の場合はS302へ進む。例えば、高速連写中は処理負荷が高いため、S320へは遷移せず、常にS302へ進む。通常の単発の撮影を行う場合においては、第1の撮影と第2の撮影の合間に、例えば半分の頻度でS320へ遷移する。   In FIG. 3, when the still image shooting mode process is started, the control unit 161 determines whether the processing load status of the imaging apparatus 100 is low in S <b> 301. If the processing load is low at a frequency according to the load status, the process shifts to the idle state in S320, and otherwise the process proceeds to S302. For example, during high-speed continuous shooting, the processing load is high, so the process does not transition to S320 but always proceeds to S302. In the case of normal single shooting, the process proceeds to S320 with a frequency of half, for example, between the first shooting and the second shooting.

S302において、カメラ制御部104が、好適な条件で撮影を行うように撮像光学部101や撮像センサー部102の動作を制御する。例えば、ユーザーのズームやフォーカスの指示に従って、撮像光学部101に含まれるレンズが移動されたり、撮影画素数の指示に従って撮像センサー部102の読み出し領域が設定されたりする。また、後述の評価値算出部105や認識部131から供給される評価値の情報や被写体情報に基づいて、特定被写体へのフォーカス調整や追尾などの制御が行われる。   In step S <b> 302, the camera control unit 104 controls the operations of the imaging optical unit 101 and the imaging sensor unit 102 so that shooting is performed under suitable conditions. For example, a lens included in the imaging optical unit 101 is moved in accordance with a user's zoom or focus instruction, or a reading area of the imaging sensor unit 102 is set in accordance with an instruction on the number of pixels to be captured. In addition, based on evaluation value information and subject information supplied from an evaluation value calculation unit 105 and a recognition unit 131, which will be described later, control such as focus adjustment and tracking for a specific subject is performed.

S303において、撮像センサー部102によって変換された電気信号に対して、センサー信号処理部103が画素の修復のための信号処理を施す。ここでは、欠落画素や、信頼性の低い画素の値に対し、周辺画素値を用いて補間したり、所定のオフセット値を減算したりする。本実施形態では、S303の処理を終えて、センサー信号処理部103から出力される画像情報を、生(未現像)の画像を意味するRAW画像と呼ぶ。   In step S <b> 303, the sensor signal processing unit 103 performs signal processing for pixel restoration on the electrical signal converted by the imaging sensor unit 102. Here, interpolation is performed using the peripheral pixel value or a predetermined offset value is subtracted from the value of the missing pixel or the pixel having low reliability. In the present embodiment, the image information output from the sensor signal processing unit 103 after finishing the processing of S303 is referred to as a RAW image meaning a raw (undeveloped) image.

S304において、簡易現像部111がRAW画像を現像処理する。このとき、制御部161が現像部110内のスイッチ部121を切り替えて、簡易現像部111で現像処理された画像情報の出力を選択する。簡易現像部111は、RAW画像に対してデベイヤー処理(デモザイク処理)し、輝度と色差から成る信号へ変換して、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの所謂現像処理を行う。ここで、簡易現像部111が行う現像処理(簡易現像)について説明する。簡易現像部111は、現像後の画像サイズを200万画素以下に制限したり、ノイズ除去や光学的な歪補正を限定的な処理に留めたり或いは省いたりすることで、現像の高速処理や簡易処理を実現している。簡易現像部111が、画像サイズを縮小した上で処理を行ったり、現像処理の機能を一部制限したりすることで、撮像装置100は、例えば200万画素の毎秒60コマというパフォーマンスの撮影を、小さい回路規模で少ない消費電力で実現することができる。   In S304, the simple developing unit 111 develops the RAW image. At this time, the control unit 161 switches the switch unit 121 in the developing unit 110 and selects the output of the image information developed by the simple developing unit 111. The simple developing unit 111 performs debayer processing (demosaic processing) on the RAW image, converts it into a signal composed of luminance and color difference, removes noise included in each signal, corrects optical distortion, and corrects the image. So-called development processing is performed. Here, the development processing (simple development) performed by the simple development unit 111 will be described. The simple development unit 111 limits the image size after development to 2 million pixels or less, or restricts or eliminates noise removal and optical distortion correction to a limited process, so that the development process can be performed at high speed. Processing is realized. The simple development unit 111 performs processing after reducing the image size, or restricts a part of the development processing function, so that the imaging apparatus 100 captures a performance of, for example, 60 frames per second of 2 million pixels. It can be realized with a small circuit scale and low power consumption.

簡易現像部111で現像処理された画像情報は、評価値算出部105に供給される。S305にて評価値算出部105は、画像情報に含まれる輝度値やコントラスト値などからフォーカス状態や露出状態などの評価値を算出する。なお、評価値算出部105は、現像処理前のRAW画像を取得して、RAW画像から同様に評価値を算出するようにしても良い。また、簡易現像部111で現像処理された画像情報は、認識部131に供給される。S306にて認識部131は、画像情報から被写体(顔など)の検出を行い、被写体情報を認識する。例えば、画像情報内における顔の有無や、その位置、特定の人物の認証などを行って、その結果を情報として出力する。   The image information developed by the simple development unit 111 is supplied to the evaluation value calculation unit 105. In S305, the evaluation value calculation unit 105 calculates an evaluation value such as a focus state or an exposure state from a luminance value or a contrast value included in the image information. Note that the evaluation value calculation unit 105 may acquire a raw image before development processing and similarly calculate an evaluation value from the raw image. Further, the image information developed by the simple development unit 111 is supplied to the recognition unit 131. In S306, the recognition unit 131 detects a subject (such as a face) from the image information, and recognizes the subject information. For example, the presence / absence of the face in the image information, the position thereof, authentication of a specific person, and the like are performed, and the result is output as information.

また、簡易現像部111で現像処理された画像情報は、表示制御部122にも供給される。S307にて表示制御部122は、取得した画像情報から表示画像を形成し、表示部123又は外部の表示装置に出力して、表示する。表示部123による表示画像は、静止画撮影モードにおいて、ユーザーが被写体を適切にフレーミングするためのライブビュー表示(撮影スルー画像表示)のために用いられる。なお、表示画像は、表示制御部122から映像出力端子124を経由して、外部のテレビジョンなどの他の表示装置にて表示されてもよい。さらに、表示制御部122は、評価値算出部105や認識部131から供給される、評価値情報や被写体情報を活用して、例えば、表示画像上のフォーカスの合焦領域にマーキング表示したり、認識された顔の位置に枠を表示したりすることもできる。   The image information developed by the simple developing unit 111 is also supplied to the display control unit 122. In S307, the display control unit 122 forms a display image from the acquired image information, and outputs and displays the display image on the display unit 123 or an external display device. The display image by the display unit 123 is used for live view display (shooting through image display) for the user to appropriately frame the subject in the still image shooting mode. The display image may be displayed on another display device such as an external television from the display control unit 122 via the video output terminal 124. Further, the display control unit 122 uses the evaluation value information and the subject information supplied from the evaluation value calculation unit 105 and the recognition unit 131, for example, to display a marking in a focused area on the display image, A frame can also be displayed at the position of the recognized face.

S308において、制御部161は、ユーザーからの撮影指示の入力を判定し、撮影の指示があった場合は、S310へ進む。S308で撮影指示が無い場合は、S301へ戻って、撮影の準備動作とライブビュー表示を繰り返す。S308における撮影指示に応答して、簡易現像部111で現像処理された画像情報が、静止画圧縮部141に供給される。S310において静止画圧縮部141は、取得した画像情報に対して高能率符号化処理(静止画圧縮)を施し、静止画ファイルを生成する。なお、静止画圧縮部141は、JPEGなどの公知の静止画圧縮技術を用いて圧縮処理を行う。   In S308, the control unit 161 determines an input of a shooting instruction from the user. If there is a shooting instruction, the process proceeds to S310. If there is no shooting instruction in S308, the process returns to S301 to repeat the shooting preparation operation and the live view display. In response to the shooting instruction in S <b> 308, the image information developed by the simple development unit 111 is supplied to the still image compression unit 141. In S310, the still image compression unit 141 performs high-efficiency encoding processing (still image compression) on the acquired image information to generate a still image file. Note that the still image compression unit 141 performs compression processing using a known still image compression technique such as JPEG.

S311において、記録再生部151が静止画ファイルを記憶媒体152に記録する。さらに、S308における撮影指示に応答して、S312ではRAW圧縮部113が、撮影された静止画に対応するセンサー信号処理部103から出力されたRAW画像を取得し、RAW画像を高能率符号化(RAW圧縮)してRAWファイルに変換する。RAWファイルはバッファ部115に格納される。RAW圧縮部113が行う高能率符号化は、ウエーブレット変換や、差分符号化などの公知の技術により処理されるものとするが、非可逆符号化でも可逆符号化でも良い。或いは、RAW圧縮部113のRAW圧縮を省略して、RAW画像が非圧縮の状態のままスルー出力されても良い。RAW圧縮の有無に関わらず、本実施形態では、センサー信号処理部103から供給される画像情報を大きく損なわない、高画質ファイルとして復元可能なRAWファイルを生成する。   In S <b> 311, the recording / playback unit 151 records the still image file on the storage medium 152. Further, in response to the shooting instruction in S308, in S312, the RAW compression unit 113 acquires the RAW image output from the sensor signal processing unit 103 corresponding to the shot still image, and performs high-efficiency coding ( RAW compression) to convert to a RAW file. The RAW file is stored in the buffer unit 115. The high-efficiency encoding performed by the RAW compression unit 113 is processed by a known technique such as wavelet transform or differential encoding, but may be lossy encoding or lossless encoding. Alternatively, the RAW compression of the RAW compression unit 113 may be omitted, and the RAW image may be output through without being compressed. Regardless of the presence or absence of RAW compression, the present embodiment generates a RAW file that can be restored as a high-quality file without significantly losing the image information supplied from the sensor signal processing unit 103.

S313において、記録再生部151がRAWファイルを記憶媒体152に記録した後、フローはS301に遷移する。なお、S311及びS313において、記録再生部151は、静止画ファイル及び/又はRAWファイルを、通信部153を介して、通信端子154から外部のストレージに送って、外部のストレージによって記録するようにしても良い。以上が、本実施形態の静止画撮影モードの処理に係るフローの説明である。   In step S313, after the recording / playback unit 151 records the RAW file in the storage medium 152, the flow proceeds to step S301. In S311 and S313, the recording / playback unit 151 sends the still image file and / or the RAW file to the external storage from the communication terminal 154 via the communication unit 153, and records the file in the external storage. Also good. This completes the description of the flow relating to the still image shooting mode processing of the present embodiment.

ここで、本実施形態に係る、静止画ファイルの構造と、RAWファイルの構造について説明する。図4は、静止画ファイル及びRAWファイルの構成例を示す図である。図4(a)に示す静止画ファイル400は、記録再生部151によって、例えば記憶媒体152の所定の記録エリアに記録されている。静止画ファイル400は、ヘッダ部401、メタデータ部402、圧縮データ部403から成る。ヘッダ部401には、このファイルが静止画ファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部403には、高能率符号化された静止画の圧縮データが含まれている。   Here, the structure of the still image file and the structure of the RAW file according to the present embodiment will be described. FIG. 4 is a diagram illustrating a configuration example of a still image file and a RAW file. The still image file 400 shown in FIG. 4A is recorded in, for example, a predetermined recording area of the storage medium 152 by the recording / playback unit 151. The still image file 400 includes a header part 401, a metadata part 402, and a compressed data part 403. The header portion 401 includes an identification code indicating that this file is a still image file format. The compressed data section 403 includes still image compressed data that has been encoded with high efficiency.

メタデータ部402には、この静止画ファイルと同時に生成されたRAWファイルのファイル名の情報404が含まれる。また、この静止画ファイルが簡易現像部111によって簡易現像されたのか、又は高画質現像部112で高画質現像されたのかを示すフラグを含む現像ステータスの情報405が含まれる。また、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、撮像光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ406が含まれる。また、図示していないが、同時に生成されたRAWファイルが記録されている記憶媒体の識別コードや、記録されているフォルダのパス情報などを更に含んでも良い。   The metadata unit 402 includes file name information 404 of a RAW file generated at the same time as the still image file. Further, development status information 405 including a flag indicating whether the still image file has been developed with the simple developing unit 111 or developed with the high quality developing unit 112 is included. Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131, and information at the time of shooting from the imaging optical unit 101 and the imaging sensor unit 102 (for example, lens type identification information, sensor type identification information) And the like. In addition, although not shown, it may further include an identification code of a storage medium in which a RAW file generated at the same time is recorded, path information of a recorded folder, and the like.

図4(b)に示すRAWファイル410は、記録再生部151によって、例えば記憶媒体152の所定の記録エリアに記録されている。RAWファイル410は、ヘッダ部411、メタデータ部412、圧縮データ部413から成る。ヘッダ部411には、このファイルがRAWファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部413には、高能率符号化された静止画のRAW圧縮データが含まれている(圧縮されていない静止画のRAW画像データであっても良い)。   The RAW file 410 shown in FIG. 4B is recorded in, for example, a predetermined recording area of the storage medium 152 by the recording / playback unit 151. The RAW file 410 includes a header part 411, a metadata part 412, and a compressed data part 413. The header portion 411 includes an identification code indicating that this file is in the RAW file format. The compressed data portion 413 includes RAW compressed data of still images that have been encoded with high efficiency (may be RAW image data of uncompressed still images).

メタデータ部412には、このRAWファイルと同時に生成された静止画ファイルのファイル名の情報414が含まれる。また、その静止画ファイルが簡易現像部111によって簡易現像されたことを示す現像ステータスの情報415が含まれる。また、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、撮像光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ416が含まれる。また、図示していないが、同時に生成された静止画ファイルが記録されている記憶媒体の識別コードや、記録されているフォルダのパス情報などを更に含んでも良い。或いはまた、同時に生成された静止画ファイルそのものをメタデータ化して、メタデータ部412に格納しても良い。上述した本実施形態に係る各種ファイルの構造は一例であり、DCFやEXIFなどの標準規格に準じた構成であっても良い。   The metadata section 412 includes file name information 414 of the still image file generated simultaneously with the RAW file. Further, development status information 415 indicating that the still image file has been simply developed by the simple development unit 111 is included. Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131, and information at the time of shooting from the imaging optical unit 101 and the imaging sensor unit 102 (for example, lens type identification information, sensor type identification information) And the like. In addition, although not shown, it may further include an identification code of a storage medium in which a still image file generated at the same time is recorded, path information of a recorded folder, and the like. Alternatively, the still image file itself generated at the same time may be converted into metadata and stored in the metadata unit 412. The structure of the various files according to the present embodiment described above is an example, and may be configured according to a standard such as DCF or EXIF.

本実施形態に係る撮像装置100は、上述のように、静止画撮影モードにおける撮影指示が行われるまでのライブビュー表示や、撮影指示に応答して生成される静止画ファイルのための現像処理を、簡易現像部111によって行う。簡易現像部111は、現像後の画像サイズを200万画素以下に制限したり、ノイズ除去や光学的な歪補正を限定的な処理に留めたり、或いは省いたりする。そうすることで、例えば200万画素の毎秒60コマというパフォーマンスの現像処理を、小さい回路規模で少ない消費電力で実現することができる。一方で、本実施形態に係る撮像装置100は、上述のように、静止画の撮影指示に応答して、RAWファイルを生成する。RAWファイルは、センサー信号処理部103から供給される画像情報を大きく損なわない高画質ファイルであるが、このファイルの生成に現像処理を必要としない。そのため、画像の画素数や連写のスピードを高めながらも、小規模な回路によって少ない消費電力でRAWファイルを記録することが可能である。   As described above, the imaging apparatus 100 according to the present embodiment performs live view display until a shooting instruction in the still image shooting mode is performed, and development processing for a still image file generated in response to the shooting instruction. This is performed by the simple developing unit 111. The simple development unit 111 restricts the image size after development to 2 million pixels or less, or restricts or eliminates noise removal and optical distortion correction. By doing so, for example, development processing with a performance of 2 million pixels and 60 frames per second can be realized with a small circuit scale and low power consumption. On the other hand, as described above, the imaging apparatus 100 according to the present embodiment generates a RAW file in response to a still image shooting instruction. The RAW file is a high-quality file that does not significantly impair the image information supplied from the sensor signal processing unit 103, but development processing is not required to generate this file. Therefore, it is possible to record a RAW file with low power consumption by a small circuit while increasing the number of pixels of an image and the speed of continuous shooting.

続いて、図3のS320におけるアイドル状態の処理について、図5のフローチャートを用いて説明する。図5に、本実施形態のアイドル状態の処理に係るフローチャートを示す。図5のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, the idle state process in S320 of FIG. 3 will be described with reference to the flowchart of FIG. FIG. 5 shows a flowchart relating to the idle state processing of the present embodiment. The flowchart of FIG. 5 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) of the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

図5においてアイドル状態の処理が開始されると、S501にて制御部161が、ユーザーによる手動操作に応じて追いかけ現像を行うか否かを判定し、追いかけ現像を行わない場合はS502に、追いかけ現像を行う場合はS520に遷移する。   In FIG. 5, when the idle state process is started, the control unit 161 determines in S501 whether or not to perform follow-up development according to a manual operation by the user. When developing, the process proceeds to S520.

S501で追いかけ現像を行わない場合、ユーザーからのモード設定に従って、制御部161が図2に示した201,202,203,204の何れかのモードに遷移するか判定する(S502、S503、S504、S505)。そして、制御部161が、選ばれたモードの処理フローへ遷移するよう制御する(S510、S511、S512、S513)。   When the follow-up development is not performed in S501, it is determined whether the control unit 161 shifts to any of the modes 201, 202, 203, and 204 shown in FIG. 2 according to the mode setting from the user (S502, S503, S504, S505). Then, the control unit 161 controls to transition to the processing flow of the selected mode (S510, S511, S512, S513).

本実施形態の「追いかけ現像」は、撮影動作終了後、バッファ部115又は記憶媒体152等に記録されたRAWファイルをソースとして、改めて高画質に現像処理を施し、高画質の表示画像や高画質の静止画ファイルを生成する処理を意味する。本実施形態に係る追いかけ現像の対象となるRAWファイルは、静止画と動画の両方を対象とするが、以下では静止画を例に説明する。   In the “follow-up development” of the present embodiment, after the photographing operation is completed, a development process is performed again with a high quality using a RAW file recorded in the buffer unit 115 or the storage medium 152 as a source, and a high-quality display image or a high-quality image is displayed. This means processing for generating a still image file. The RAW file that is the target of the chase development according to the present embodiment targets both a still image and a moving image. In the following, a still image will be described as an example.

上述したように、撮影時に生成される静止画ファイルは、簡易現像部111で現像されているため、画素数が200万画素以下であったり、現像処理を一部省いていたりするために、画質は限定的な品質である。撮影内容の大まかな確認としては有効であるが、画像の細部を確認したり、プリントアウトしたりする用途には十分ではない場合がある。一方、静止画と同時に生成するRAWファイルは、センサー信号処理部103から供給される画像情報を大きく損なわない高品質を有するが、現像処理前のデータであるため、表示やプリントアウトには即時対応ができず、RAW現像のための時間を要してしまう。また、RAWはJPEGなどのように広く普及したファイルではないため、RAWファイルを扱える再生環境も限定されてしまう。   As described above, since the still image file generated at the time of shooting is developed by the simple development unit 111, the number of pixels is 2 million pixels or less, or the development process is partially omitted. Is of limited quality. Although it is effective as a rough confirmation of the photographing content, it may not be sufficient for the purpose of confirming details of an image or printing out. On the other hand, the RAW file that is generated at the same time as the still image has high quality that does not significantly impair the image information supplied from the sensor signal processing unit 103, but since it is data before development processing, it can be immediately displayed and printed out. Cannot be performed, and it takes time for RAW development. In addition, since RAW is not a widely spread file such as JPEG, the playback environment that can handle RAW files is also limited.

そこで、本実施形態の追いかけ現像が有効な機能となる。本実施形態では、追いかけ現像が実行されると、既に記録されているRAWファイルから1フレーム毎にRAW画像を読みだして、高画質現像部112によって高画質に現像処理を行い、生成した静止画ファイルを記憶媒体152等へ記録する。そして、このような追いかけ現像を、撮影と撮影の合間や、再生モードやスリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態において実行させる。追いかけ現像は手動に限らず、制御部161が自動に実行させるように設計すると良い。   Therefore, the chasing development of this embodiment is an effective function. In this embodiment, when follow-up development is executed, a RAW image is read from a RAW file that has already been recorded frame by frame, and development processing is performed with high image quality by the high image quality development unit 112, and a generated still image is generated. The file is recorded on the storage medium 152 or the like. Then, such chasing development is executed in a state where the processing load of the apparatus is relatively small, waiting for a user operation such as between shootings or in a reproduction mode or a sleep state. The follow-up development is not limited to manual, but may be designed so that the controller 161 automatically executes it.

このように構成することにより、その後に、細部の確認表示やプリントアウトなど、高画質な再生の要求においても、その都度余計な現像処理が発生せず、また、従来の静止画ファイルと同様の一般的な環境における活用が可能となる。   By configuring in this way, subsequent development processing does not occur each time even when a high-quality playback request such as confirmation display of details or printout is required, and the same as with a conventional still image file. It can be used in a general environment.

図5の説明に戻り、記憶媒体152等には、1回の撮影指示に対して、静止画ファイルとRAWファイルが1つずつの組として記録されている。手動または自動によって追いかけ現像を行う場合、S520にて制御部161が、各画像の組について、追いかけ現像が処理済みか未処理かを判定する。判定の方法には、例えば静止画ファイル400の現像ステータス405に含まれる、静止画ファイルが簡易現像部111で処理されたもの否かを識別するためのフラグを参照する方法がある。或いはRAWファイル410の中の現像ステータス415を参照し、同様に判定しても良い。或いは、一連の撮影された静止画に対して、現像処理の状態を示すテーブルファイルを別に用意して判定しても良い。   Returning to the explanation of FIG. 5, a still image file and a RAW file are recorded as one set for each shooting instruction in the storage medium 152 or the like. When the follow-up development is performed manually or automatically, in step S520, the control unit 161 determines whether the follow-up development has been processed or not processed for each set of images. As a determination method, for example, there is a method of referring to a flag included in the development status 405 of the still image file 400 for identifying whether or not the still image file has been processed by the simple development unit 111. Alternatively, the same determination may be made with reference to the development status 415 in the RAW file 410. Alternatively, it may be determined by separately preparing a table file indicating the state of development processing for a series of still images taken.

制御部161によって、追いかけ現像が処理済みと判断されれば、S502に遷移する。追いかけ現像が未処理の静止画があれば、S521に遷移する。S521では制御部161が、追いかけ現像が未処理の静止画に対応するRAWファイルが、バッファ部115にバッファリングされているか否かを判定する。もし、バッファリングされていれば、S523に進み、バッファリングされていなければS522で対応するRAWファイルを記憶媒体152等から読み出す。   If the control unit 161 determines that the follow-up development has been processed, the process proceeds to S502. If there is a still image that has not been subjected to the follow-up development, the process proceeds to S521. In step S <b> 521, the control unit 161 determines whether the RAW file corresponding to the still image that has not been subjected to the follow-up development is buffered in the buffer unit 115. If buffered, the process proceeds to S523, and if not buffered, the corresponding RAW file is read from the storage medium 152 or the like in S522.

バッファ部115は、静止画撮影モードで撮影された、新しい画像から優先的に保持されるように、データが更新される。すなわち、過去に撮影された画像から順にバッファから取り除かれる。こうすることにより、直前に撮影された画像は常にバッファに保持されているので、S522をスキップし、高速に処理できる。さらに、直前に撮影された画像から時刻を遡って、追いかけ現像を実行するようにすれば、バッファに保持されている画像から優先的に処理が完了できるため、処理の効率化ができる。   The buffer unit 115 updates the data so that the new image captured in the still image capturing mode is preferentially retained. That is, images taken in the past are sequentially removed from the buffer. By doing so, since the image taken immediately before is always held in the buffer, S522 can be skipped and processed at high speed. Further, if the follow-up development is executed by tracing back the time taken from the immediately previous image, the processing can be completed preferentially from the image held in the buffer, so that the processing efficiency can be improved.

S523において、RAW伸張部114が、バッファ部115又は記憶媒体152から読み出したRAWファイルを伸張処理し、RAW画像を復元する。復元されたRAW画像は、S524にて高画質現像部112が高画質に現像し、スイッチ部121を経由して表示制御部122や静止画圧縮部141に出力される。高画質現像部112は、RAW画像をデベイヤー処理(デモザイク処理)し、輝度と色差から成る信号へ変換して、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの所謂現像処理を行う。高画質現像部112によって生成される現像処理済みの画像のサイズ(画素数)は、撮像センサー部102から読出された全体サイズのまま、或いはユーザーから設定されたサイズとなり、200万画素以下に制限された簡易現像の画像よりも格段に高品質となる。高画質現像部112は簡易現像部111よりも各々の処理が高精度であるため、より高画質な現像画像が得られるが、一方で、処理負荷が大きくなってしまう。本実施形態の高画質現像部112は、撮影と並行したリアルタイムの現像処理を避け、時間をかけて現像処理可能としたことで、回路規模や消費電力の増大を抑える構成となっている。   In S523, the RAW decompression unit 114 decompresses the RAW file read from the buffer unit 115 or the storage medium 152, and restores the RAW image. The restored RAW image is developed to a high image quality by the high image quality development unit 112 in S524, and is output to the display control unit 122 and the still image compression unit 141 via the switch unit 121. The high image quality developing unit 112 performs debayer processing (demosaic processing) on the RAW image, converts it into a signal composed of luminance and color difference, removes noise contained in each signal, corrects optical distortion, and optimizes the image. A so-called development process is performed. The size (number of pixels) of the developed image generated by the high image quality development unit 112 is the entire size read from the image sensor unit 102 or the size set by the user, and is limited to 2 million pixels or less. The quality is much higher than that of the simple developed image. Since the high-quality developing unit 112 is more accurate in each process than the simple developing unit 111, a higher-quality developed image can be obtained, but the processing load is increased. The high image quality development unit 112 of the present embodiment is configured to suppress an increase in circuit scale and power consumption by avoiding real-time development processing in parallel with shooting and enabling development processing over time.

高画質現像部112で現像処理された画像情報は、静止画圧縮部141に供給され、S525にて静止画圧縮部141が、取得した画像情報に対して高能率符号化処理(静止画圧縮)を施し、高画質の静止画ファイルを生成する。なお、静止画圧縮部141は、JPEGなどの公知の技術により圧縮処理を行う。   The image information developed by the high image quality development unit 112 is supplied to the still image compression unit 141. In S525, the still image compression unit 141 performs high-efficiency encoding processing (still image compression) on the acquired image information. To generate a high-quality still image file. Note that the still image compression unit 141 performs compression processing using a known technique such as JPEG.

S526において、記録再生部151が高画質の静止画ファイルを記憶媒体152等に記録したら、フローはS502に遷移する。なお、追いかけ現像の処理は、追いかけ現像が未処理の静止画がある場合、その画像毎に同様の処理を繰り返して実行可能である。   If the recording / reproducing unit 151 records a high-quality still image file in the storage medium 152 or the like in S526, the flow proceeds to S502. The follow-up development process can be executed repeatedly for each image when there is a still image that has not undergone the follow-up development.

S526で記録される静止画ファイルは、図4(a)に示す静止画ファイル400の構成で、ヘッダ部401、メタデータ部402、圧縮データ部403から成る。ヘッダ部401には、このファイルが静止画ファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部403には、高能率符号化された静止画の圧縮データが含まれている。   The still image file recorded in S526 has the configuration of the still image file 400 shown in FIG. 4A, and includes a header portion 401, a metadata portion 402, and a compressed data portion 403. The header portion 401 includes an identification code indicating that this file is a still image file format. The compressed data section 403 includes still image compressed data that has been encoded with high efficiency.

メタデータ部402には、この静止画ファイルの元となったRAWファイルのファイル名の情報404が含まれる。また、この静止画ファイルが簡易現像部111によって簡易現像されたのか、又は高画質現像部112で高画質現像されたのかを示すフラグを含む現像ステータスの情報405が含まれる。高画質現像部112によって高画質現像されたことを示す現像ステータスの情報405が含まれる。また、元のRAWファイルのメタデータから抽出された、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、撮像光学部101や撮像センサー部102からの撮影時の情報を含む撮影メタデータ406が含まれる。   The metadata unit 402 includes file name information 404 of the RAW file that is the source of the still image file. Further, development status information 405 including a flag indicating whether the still image file has been developed with the simple developing unit 111 or developed with the high quality developing unit 112 is included. Development status information 405 indicating that high-quality development has been performed by the high-quality development unit 112 is included. Also, the evaluation value and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131 extracted from the metadata of the original RAW file, and information at the time of shooting from the imaging optical unit 101 and the imaging sensor unit 102 The shooting metadata 406 including is included.

記録再生部151は、高画質現像を経て、S526で記録される新たな静止画ファイルには、元となったRAWファイルと同時に記録された簡易現像による静止画ファイルと同じファイル名を与えて、上書き記録する。すなわち簡易現像による静止画ファイルは削除される。そして、記録再生部151は、追いかけ現像の元となったRAWファイルは、メタデータ部412内の現像ステータス415を、高画質現像済(又は追いかけ現像済)を示す情報にて更新する。   The recording / playback unit 151 gives the same file name to the new still image file recorded in S526 after high-quality development as the still image file by simple development recorded at the same time as the original RAW file, Overwrite recording. That is, the still image file by simple development is deleted. Then, the recording / playback unit 151 updates the development status 415 in the metadata unit 412 with information indicating that the high-quality development has been performed (or the follow-up development has been completed) for the RAW file that is the source of the follow-up development.

このように、本実施形態の撮像装置100は、撮影と撮影の合間や、再生モードやスリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態のときに追いかけ現像を実行する。そして、撮影時の簡易現像による静止画ファイルを、RAWファイルを用いた高画質現像による静止画ファイルに置き換えて行く。撮影時の簡易現像による動画ファイルも、RAWファイルを用いた高画質現像による動画ファイルに置き換えて行く。こうすることにより、細部の確認表示やプリントアウトなど、高画質な再生の要求が与えられた場合であっても、その都度余計な現像処理が発生せず、また、従来の静止画ファイルと同様の一般的な環境における活用が可能となる。   As described above, the imaging apparatus 100 according to the present embodiment performs the follow-up development when the processing load of the apparatus is relatively low, waiting for a user operation such as between shootings or in a playback mode or a sleep state. Then, the still image file by the simple development at the time of shooting is replaced with the still image file by the high quality development using the RAW file. A moving image file by simple development at the time of shooting is also replaced with a moving image file by high quality development using a RAW file. By doing this, even when a request for high-quality playback such as confirmation display of details or printout is given, extra development processing does not occur each time, and as with conventional still image files Can be used in a general environment.

次に、撮像装置100の静止画再生モードにおける動作について説明する。図6に、本実施形態の静止画再生モードの処理に係るフローチャートを示す。図6のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, the operation in the still image playback mode of the imaging apparatus 100 will be described. FIG. 6 shows a flowchart relating to processing in the still image reproduction mode of the present embodiment. The flowchart of FIG. 6 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) included in the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

図6において静止画再生モードの処理が開始されると、S601にて制御部161が撮像装置100の処理負荷状況が低いか否かを判定する。負荷状況に応じた頻度で、処理負荷が低い場合にはS610でアイドル状態へ遷移し、それ以外の場合はS602へ進む。例えば、再生指示などのユーザー操作を待っている間は、処理負荷が低いため、S610へ遷移する。ユーザーからの操作に応じて静止画の再生が開始されている(再生中の状態を含む)場合はS602へ進む。S602において、制御部161が、再生される静止画について、ユーザーから拡大表示の指示を受けているかを判定する。拡大表示があればS603に進み、拡大表示がなければS620に進む。   In FIG. 6, when the still image playback mode process is started, the control unit 161 determines whether the processing load status of the imaging apparatus 100 is low in S <b> 601. If the processing load is low at a frequency according to the load status, the process shifts to the idle state in S610, and otherwise the process proceeds to S602. For example, while waiting for a user operation such as a reproduction instruction, the processing load is low, and thus the process proceeds to S610. If playback of a still image has been started in response to an operation from the user (including a state during playback), the process proceeds to S602. In step S602, the control unit 161 determines whether an enlarged display instruction has been received from the user for the still image to be played back. If there is an enlarged display, the process proceeds to S603, and if there is no enlarged display, the process proceeds to S620.

図7に、拡大表示を含む表示形態の種類を説明する。図7は、本実施形態の静止画再生モードの表示処理の例を示す図である。図7(a)の表示例700は、701で示す6つの画像を縮小して表示部123に縮小表示(一覧表示)している例である。図7(b)の表示例710は、ある1つの画像711の全体を表示部123に表示している例であり、この表示の状態を通常表示とする。図7(c)の表示例720は、ある1つの画像の一部領域を拡大した画像721を表示部123に拡大表示している例である。例えば、撮影直後にフォーカスの適否の確認を行うような場合に、表示例720のように被写体像の細部を拡大表示する使われ方が一般的である。   FIG. 7 illustrates types of display forms including enlarged display. FIG. 7 is a diagram illustrating an example of display processing in the still image reproduction mode of the present embodiment. A display example 700 in FIG. 7A is an example in which six images indicated by 701 are reduced and reduced (displayed as a list) on the display unit 123. A display example 710 in FIG. 7B is an example in which an entire image 711 is displayed on the display unit 123, and this display state is a normal display. A display example 720 in FIG. 7C is an example in which an image 721 obtained by enlarging a partial area of a certain image is enlarged and displayed on the display unit 123. For example, when confirming whether or not the focus is appropriate immediately after shooting, it is generally used to enlarge and display the details of the subject image as in the display example 720.

表示例720のように拡大表示する場合、図6のフローはS602からS603へ遷移する。表示例700のように縮小表示する場合は、S602からS620へ遷移する。表示例710のような場合は、表示部123の表示画素数が簡易現像による静止画ファイルの画素数、上述の例ならば200万画素以下であれば等倍もしくは縮小での表示であるため、S602からS620へ遷移する。   When the enlarged display is performed as in the display example 720, the flow in FIG. 6 transitions from S602 to S603. When the reduced display is performed as in the display example 700, the process proceeds from S602 to S620. In the case of the display example 710, since the number of display pixels of the display unit 123 is the number of pixels of the still image file by simple development, in the above example, if it is 2 million pixels or less, the display is the same size or reduced. Transition from S602 to S620.

S620において、記録再生部151が、記憶媒体152等から再生対象の静止画ファイルを読み出す。そして、S621において、静止画伸張部143が、静止画ファイルを復号して伸張し、S608において、表示制御部122が図7の各図に示すような形態で表示画像を表示部123へ出力する。   In S620, the recording / playback unit 151 reads a still image file to be played back from the storage medium 152 or the like. In step S621, the still image expansion unit 143 decodes and expands the still image file. In step S608, the display control unit 122 outputs the display image to the display unit 123 in the form illustrated in each drawing of FIG. .

表示される画像が、簡易現像による静止画ファイルの画素数、上述の例ならば200万画素以下で足りる場合は、静止画ファイルが簡易現像部111で現像処理されたものであっても、十分な画質で表示できる。静止画ファイルが高画質現像部112で現像処理されたものであるならば、勿論、表示に十分な画質であるということは言うまでも無い。   If the displayed image is sufficient in the number of pixels of the still image file by simple development, in the above example, 2 million pixels or less, it is sufficient even if the still image file is developed by the simple development unit 111 Can be displayed with high image quality. Needless to say, if the still image file is developed by the high image quality development unit 112, the image quality is sufficient for display.

一方、拡大表示の場合、表示される画像が、簡易現像による静止画ファイルの画素数、上述の例ならば200万画素以下では足りないことが起こり得る。すなわち、簡易現像による静止画ファイルを用いて表示したのでは、解像感の低下を招いてしまう。   On the other hand, in the case of enlarged display, the displayed image may be insufficient in the number of pixels of a still image file by simple development, in the above example, 2 million pixels or less. In other words, display using a still image file by simple development causes a reduction in resolution.

よって、拡大表示の場合は、S603において、制御部161が、再生対象となって表示されるべき画像の静止画ファイルが、高画質現像部112で現像されたものであるかどうかを判定する。判定の際、例えば静止画ファイル400のメタデータ部402に格納されている現像ステータス405に含まれる、この静止画ファイルが簡易現像部111で処理されたものなのか、高画質現像部112で処理されたものなのかを識別するためのフラグを参照する。この参照されたフラグから判定する方法がある。或いはRAWファイル410の中の現像ステータス415を参照し、同様に判定しても良い。或いは、一連の撮影された静止画に対して、現像処理の状態を示すテーブルファイルを別に用意して判定しても良い。   Therefore, in the case of enlarged display, in S603, the control unit 161 determines whether the still image file of the image to be displayed as a reproduction target is developed by the high image quality development unit 112. At the time of determination, for example, whether the still image file included in the development status 405 stored in the metadata unit 402 of the still image file 400 has been processed by the simple developing unit 111 or processed by the high-quality developing unit 112 Refers to a flag for identifying whether it has been done. There is a method of determining from the referenced flag. Alternatively, the same determination may be made with reference to the development status 415 in the RAW file 410. Alternatively, it may be determined by separately preparing a table file indicating the state of development processing for a series of still images taken.

S603で、高画質現像されたものと判定された場合、拡大されても十分な画質で表示可能な高画質の静止画ファイルであることを意味するので、S620に進む。S620では、記録再生部151が該当する高画質の静止画ファイルを記憶媒体152等から読み出して、再生表示する。このように、高画質現像部112で現像された静止画ファイルである場合は、このようにS620以降の処理で高画質に表示できる。S603で、高画質現像されたものと判定されなかった場合、簡易現像部111で現像処理された静止画ファイルであることを意味するので、S604に進み、高画質現像(上述した、追いかけ現像)を実行する。S604において、制御部161が再生対象となる静止画に対応するRAWファイルが、バッファ部115にバッファリングされているかどうかを判定する。バッファリングされていれば、S606に進み、バッファリングされていなければS605で記録再生部151が対応するRAWファイルを記憶媒体152等から読み出し、バッファ部115に格納する。なお、バッファ部115は、静止画撮影モードで撮影された新しい画像から優先的に保持されるように、データが更新される。すなわち、過去に撮影された画像から順にバッファから取り除かれる。こうすることにより、直前に撮影された画像は常にバッファに保持されているので、S605をスキップし、高速に表示に至れるようになる。   If it is determined in step S603 that the image has been developed with high image quality, it means that the image is a high-quality still image file that can be displayed with sufficient image quality even if it is enlarged, and the process advances to step S620. In S620, the recording / playback unit 151 reads the corresponding high-quality still image file from the storage medium 152 or the like, and plays back and displays it. As described above, in the case of a still image file developed by the high image quality developing unit 112, it can be displayed in high image quality by the processing from S620 onward. If it is not determined in step S603 that the image has been developed with high image quality, it means that the file is a still image file developed by the simple development unit 111. Therefore, the process proceeds to step S604, where high image quality development (following development described above) is performed. Execute. In step S <b> 604, the control unit 161 determines whether the RAW file corresponding to the still image to be reproduced is buffered in the buffer unit 115. If buffered, the process proceeds to S606. If not buffered, the recording / playback unit 151 reads the corresponding RAW file from the storage medium 152 or the like and stores it in the buffer unit 115 in S605. Note that the buffer unit 115 updates the data so that the new image captured in the still image capturing mode is preferentially retained. That is, images taken in the past are sequentially removed from the buffer. By doing so, since the image taken immediately before is always held in the buffer, S605 is skipped and the display can be performed at high speed.

S606において、RAW伸張部114が、バッファ部115又は記憶媒体152等から読み出したRAWファイルを復号して伸張し、RAW画像を復元する。復元されたRAW画像は、S607で高画質現像部112が高画質に現像処理し、スイッチ部121を経由して表示制御部122に出力される。S608において、表示制御部122が図7(c)に示すような拡大画像を表示部123へ出力する。高画質現像部112は、RAW画像をデベイヤー処理(デモザイク処理)し、輝度と色差から成る信号へ変換して、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの所謂現像処理を行う。高画質現像部112によって生成される現像処理済みの画像のサイズ(画素数)は、撮像センサー部102から読出された全体サイズのまま、或いはユーザーから設定されたサイズとなり、200万画素以下に制限された簡易現像の画像よりも格段に高品質となる。従って、高画質現像部112で現像された静止画ならば、拡大表示の要求に対して十分な画質で答えることができる。なお、S608の表示が停止されると、フローはS601に戻る。S601において、アイドル状態S610に遷移した場合は、上述した図5のフローチャートに従って処理される。   In S606, the RAW decompression unit 114 decodes and decompresses the RAW file read from the buffer unit 115 or the storage medium 152, and restores the RAW image. In step S <b> 607, the restored RAW image is developed with high image quality by the high image quality development unit 112, and is output to the display control unit 122 via the switch unit 121. In step S <b> 608, the display control unit 122 outputs an enlarged image as illustrated in FIG. 7C to the display unit 123. The high image quality developing unit 112 performs debayer processing (demosaic processing) on the RAW image, converts it into a signal composed of luminance and color difference, removes noise contained in each signal, corrects optical distortion, and optimizes the image. A so-called development process is performed. The size (number of pixels) of the developed image generated by the high image quality development unit 112 is the entire size read from the image sensor unit 102 or the size set by the user, and is limited to 2 million pixels or less. The quality is much higher than that of the simple developed image. Therefore, a still image developed by the high image quality developing unit 112 can answer the request for enlarged display with sufficient image quality. When the display in S608 is stopped, the flow returns to S601. In S601, when transitioning to the idle state S610, processing is performed according to the flowchart of FIG. 5 described above.

図6のS604以降の高画質現像は、上述したように、撮影直後等の、まだ追いかけ現像が実行されていないタイミングで発生することが想定される。本実施形態では、撮影と撮影の合間や、再生モードやスリープ状態などユーザー操作待ちの、比較的装置の処理負荷が小さい状態のときに静止画の追いかけ現像が徐々に終了する。その結果、簡易現像による静止画ファイルが自然と高画質現像による静止画ファイルに置き換わる。そうして置き換えが進むに従って、S604以降の高画質現像は発生するケースが減少し、拡大表示に対して速やかに高画質画像を出力できるようになり、操作性が一層高まっていく。   As described above, high-quality development after S604 in FIG. 6 is assumed to occur at a timing at which follow-up development has not yet been performed, such as immediately after shooting. In the present embodiment, the chasing development of a still image is gradually ended when the processing load of the apparatus is relatively low, waiting for a user operation such as a shooting mode or a playback mode or a sleep state. As a result, the still image file by simple development is naturally replaced with the still image file by high-quality development. As the replacement progresses, the number of cases where high-quality image development after S604 occurs decreases, and a high-quality image can be quickly output for enlarged display, further improving the operability.

また、バッファ部115にRAWファイルが保持されている場合には、S605をスキップできるため、素早く表示できるようになると上述した。そこで、バッファ部115になるべくRAWファイルが保持された状態になるよう、図7の表示例700や710の場合に、拡大表示に備え、画像701や画像711に対応するRAWファイルを予め記憶媒体から読み出してバッファ部115へ移動すると良い。拡大表示の指示よりも先行して、記録再生部151が記憶媒体152等から該当するRAWファイルを読みだしてバッファリングすることで、表示例720のような拡大表示の指示がなされたときに、より素早く表示することができる。   Further, as described above, when the RAW file is held in the buffer unit 115, S605 can be skipped, so that it can be displayed quickly. Therefore, in the case of the display examples 700 and 710 in FIG. 7, the RAW file corresponding to the image 701 and the image 711 is stored in advance from the storage medium in preparation for the enlarged display so that the RAW file is held as much as possible in the buffer unit 115. It may be read and moved to the buffer unit 115. Prior to the enlargement display instruction, when the recording / playback unit 151 reads out and buffers the corresponding RAW file from the storage medium 152 or the like, when the enlargement display instruction as in the display example 720 is given, It can be displayed more quickly.

次に、撮像装置100の動画撮影モードにおける動作について説明する。図8に、本実施形態の動画撮影モードの処理に係るフローチャートを示す。図8のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, an operation in the moving image shooting mode of the imaging apparatus 100 will be described. FIG. 8 shows a flowchart relating to the processing of the moving image shooting mode of the present embodiment. The flowchart of FIG. 8 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) of the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

図8において動画撮影モードの処理が開始されると、S801にて制御部161が撮像装置100の処理負荷状況が低いか否かを判定する。負荷状況に応じた頻度で、処理負荷が低い場合はS820にてアイドル状態へ遷移し、それ以外の場合はS802へ進む。例えば、水平解像度が4000画素相当(4K)のように画素数の多い動画や、毎秒120コマ(120P)のようにフレームレートの高い動画が設定されているときは処理負荷が高いため、S820へは遷移せず、常にS802へ進む。画素数が所定値より少なかったり、フレームレートが所定の速度より低かったりする動画の撮影を行う設定のときは、動画の第1のフレームと第2のフレームの処理の合間に、例えば半分の頻度でS820へ遷移する。   In FIG. 8, when the processing of the moving image shooting mode is started, the control unit 161 determines whether or not the processing load status of the imaging apparatus 100 is low in S801. If the processing load is low at a frequency according to the load status, the process shifts to the idle state in S820, and otherwise the process proceeds to S802. For example, when a moving image with a large number of pixels such as a horizontal resolution equivalent to 4000 pixels (4K) or a moving image with a high frame rate such as 120 frames per second (120P) is set, the processing load is high, and thus the process proceeds to S820. Does not transition and always proceeds to S802. When the setting is made to shoot a moving image in which the number of pixels is less than a predetermined value or the frame rate is lower than a predetermined speed, for example, half the frequency between the processing of the first frame and the second frame of the moving image. Then, the process proceeds to S820.

S802において、カメラ制御部104が、好適な条件で動画撮影を行うよう、撮像光学部101や撮像センサー部102の動作を制御する。例えば、ユーザーのズームやフォーカスの指示に従って、撮像光学部101に含まれるレンズが移動されたり、撮影画素数の指示に従って撮像センサー部102の読み出し領域が設定されたりする。また、後述の評価値算出部105や認識部131から供給される評価値の情報や被写体情報に基づいて、特定被写体へのフォーカス調整や追尾などの制御が行われる。   In step S <b> 802, the camera control unit 104 controls the operations of the imaging optical unit 101 and the imaging sensor unit 102 so that moving image shooting is performed under suitable conditions. For example, a lens included in the imaging optical unit 101 is moved in accordance with a user's zoom or focus instruction, or a reading area of the imaging sensor unit 102 is set in accordance with an instruction on the number of pixels to be captured. In addition, based on evaluation value information and subject information supplied from an evaluation value calculation unit 105 and a recognition unit 131, which will be described later, control such as focus adjustment and tracking for a specific subject is performed.

S803において、撮像センサー部102によって変換された電気信号に対して、センサー信号処理部103が画素の修復のための信号処理を施す。ここでは、欠落画素や、信頼性の低い画素の値に対し、周辺画素値を用いて補間したり、所定のオフセット値を減算したりする。本実施形態では、S803の処理を終えて、センサー信号処理部103から出力される画像情報を、生(未現像)の動画を意味するRAW画像と呼ぶ。S804において、簡易現像部111がRAW画像を現像処理する。このとき、制御部161が現像部110内のスイッチ部121を切り替えて、簡易現像部111で現像処理された画像情報の出力を選択する。   In step S <b> 803, the sensor signal processing unit 103 performs signal processing for pixel restoration on the electrical signal converted by the imaging sensor unit 102. Here, interpolation is performed using the peripheral pixel value or a predetermined offset value is subtracted from the value of the missing pixel or the pixel having low reliability. In the present embodiment, the image information output from the sensor signal processing unit 103 after finishing the processing of S803 is referred to as a RAW image meaning a raw (undeveloped) moving image. In step S804, the simple development unit 111 develops the RAW image. At this time, the control unit 161 switches the switch unit 121 in the developing unit 110 and selects the output of the image information developed by the simple developing unit 111.

簡易現像部111は、動画の各フレームを構成するRAW画像に対してデベイヤー処理(デモザイク処理)し、輝度と色差から成る信号へ変換して、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの所謂現像処理を行う。ここで、簡易現像部111が行う動画の現像処理(簡易現像)について説明する。簡易現像部111は、現像後の画像サイズを例えばHD映像の200万画素以下に制限したり、ノイズ除去や光学的な歪補正を限定的な処理に留めたり或いは省いたりすることで、現像の高速処理や簡易処理を実現している。簡易現像部111が、画像サイズを縮小した上で処理を行ったり、現像処理の機能を一部制限したりすることで、撮像装置100は、例えばHDサイズの動画の高速撮影を、小さい回路規模で少ない消費電力で実現することができる。   The simple development unit 111 performs debayer processing (demosaic processing) on a RAW image constituting each frame of a moving image, converts it to a signal composed of luminance and color difference, removes noise included in each signal, and optical distortion So-called development processing such as correcting the image and optimizing the image is performed. Here, a moving image developing process (simple development) performed by the simple developing unit 111 will be described. The simple development unit 111 limits the image size after development to, for example, 2 million pixels or less of HD video, or restricts noise removal and optical distortion correction to a limited process, or omits development processing. Realizes high-speed processing and simple processing. The simple developing unit 111 performs processing after reducing the image size, or restricts a part of the development processing function, so that the imaging apparatus 100 can perform high-speed shooting of, for example, HD size moving images with a small circuit scale. Can be realized with low power consumption.

簡易現像部111で現像処理された画像情報は、評価値算出部105に供給される。評価値算出部105は、S805で画像情報に含まれる輝度値やコントラスト値などからフォーカス状態や露出状態などの評価値を算出する。なお、評価値算出部105は、現像処理前のRAW画像を取得して、RAW画像から同様に評価値を算出するようにしても良い。   The image information developed by the simple development unit 111 is supplied to the evaluation value calculation unit 105. In step S805, the evaluation value calculation unit 105 calculates evaluation values such as a focus state and an exposure state from the luminance value and the contrast value included in the image information. Note that the evaluation value calculation unit 105 may acquire a raw image before development processing and similarly calculate an evaluation value from the raw image.

また、簡易現像部111で現像処理された画像情報は、認識部131に供給される。認識部131は、S806にて画像情報から被写体(顔など)の検出を行い、被写体情報を認識する。例えば、画像情報内における顔の有無や、その位置、特定の人物の認証などを行って、その結果を情報として出力する。   Further, the image information developed by the simple development unit 111 is supplied to the recognition unit 131. In S806, the recognition unit 131 detects a subject (such as a face) from the image information and recognizes the subject information. For example, the presence / absence of the face in the image information, the position thereof, authentication of a specific person, and the like are performed, and the result is output as information.

また、簡易現像部111で現像処理された画像情報は、表示制御部122に供給される。表示制御部122は、S807にて取得した画像情報から表示画像を形成し、表示部123又は外部の表示装置に出力して、表示する。表示部123による表示画像は、動画撮影モードにおいて、ユーザーが被写体を適切にフレーミングするための確認表示のために用いられる。具体的に、動画撮影特有の使用形態として、撮影された動画の記録開始前(スタンバイ中)だけでなく、動画の記録中(REC中)においても、被写体を適切にフレーミングするためのライブビュー表示のために用いられる。なお、表示画像は、表示制御部122から映像出力端子124を経由して、外部のテレビジョンなどの他の表示装置にて表示されてもよい。さらに、表示制御部122は、評価値算出部105や認識部131から供給される、評価値情報や被写体情報を活用して、例えば、表示画像上のフォーカスの合焦領域にマーキング表示したり、認識された顔の位置に枠を表示したりすることもできる。   Further, the image information developed by the simple development unit 111 is supplied to the display control unit 122. The display control unit 122 forms a display image from the image information acquired in S807, and outputs and displays the display image on the display unit 123 or an external display device. The display image by the display unit 123 is used for confirmation display for the user to appropriately frame the subject in the moving image shooting mode. Specifically, as a usage mode specific to moving image shooting, a live view display for appropriately framing a subject not only during recording of a recorded moving image (during standby) but also during recording of a moving image (during REC) Used for. The display image may be displayed on another display device such as an external television from the display control unit 122 via the video output terminal 124. Further, the display control unit 122 uses the evaluation value information and the subject information supplied from the evaluation value calculation unit 105 and the recognition unit 131, for example, to display a marking in a focused area on the display image, A frame can also be displayed at the position of the recognized face.

S808において、制御部161は、ユーザーからの記録の開始指示を受けて撮影された動画を記録中(REC中)であるか否かを判定し、REC中の場合は、S810へ進む。S808でREC中では無い場合(すなわちスタンバイ中)は、S801へ戻って、動画の記録開始前の撮影動作とライブビュー表示を繰り返す。   In step S808, the control unit 161 determines whether a moving image shot in response to a recording start instruction from the user is being recorded (during REC). If it is being recorded, the process proceeds to step S810. If REC is not in S808 (that is, during standby), the process returns to S801 to repeat the shooting operation and live view display before starting the recording of the moving image.

S808によって、撮影された動画のうち、記録開始から記録終了までの記録対象となる動画が、S810にてフレーム単位で動画圧縮部142によって圧縮される。なお、図面を用いての説明は省略するが、動画の撮影と同時に、不図示のマイクロフォンによって入力された音声情報が取得されている。動画圧縮部142は、動画に対応する音声情報に対しても圧縮処理を施すことになる。動画圧縮部142は、取得した簡易現像済の動画の画像情報及び音声情報に対して高能率符号化処理(動画圧縮)を施し、動画ファイルを生成する。なお、動画圧縮部142は、MPEG−2、H.264、H.265などの公知の動画圧縮技術を用いて圧縮処理を行う。S811において、記録再生部151が動画ファイルを記憶媒体152に記録する。   In S808, the moving image to be recorded from the start of recording to the end of recording among the captured moving images is compressed by the moving image compression unit 142 in units of frames in S810. Although not described with reference to the drawings, audio information input by a microphone (not shown) is acquired at the same time as shooting of a moving image. The moving image compression unit 142 also performs compression processing on audio information corresponding to the moving image. The moving image compression unit 142 performs high-efficiency encoding processing (moving image compression) on the acquired image information and audio information of the simply developed moving image to generate a moving image file. Note that the moving image compression unit 142 is MPEG-2, H.264, or the like. H.264, H.C. The compression processing is performed using a known moving image compression technique such as H.265. In step S811, the recording / playback unit 151 records the moving image file on the storage medium 152.

さらに、S808によって記録対象となった動画に対応する期間のRAW画像が、センサー信号処理部103からRAW圧縮部113に供給される。RAW圧縮部113は、S812にて記録対象となった動画と同じシーンを示すRAW画像を高能率符号化(RAW圧縮)してRAWファイルに変換する。RAWファイルはバッファ部115に格納される。RAW圧縮部113が行う高能率符号化は、ウエーブレット変換や、差分符号化などの公知の技術により処理されるものとするが、非可逆符号化でも可逆符号化でも良い。或いは、RAW圧縮部113のRAW圧縮を省略して、RAW画像が非圧縮の状態のままスルー出力されても良い。RAW圧縮の有無に関わらず、本実施形態では、センサー信号処理部103から供給される画像情報を大きく損なわない、高画質ファイルとして復元可能なRAWファイルを生成する。   Further, a RAW image of a period corresponding to the moving image to be recorded in S808 is supplied from the sensor signal processing unit 103 to the RAW compression unit 113. The RAW compression unit 113 performs high-efficiency encoding (RAW compression) on the RAW image indicating the same scene as the moving image to be recorded in S812, and converts the RAW image into a RAW file. The RAW file is stored in the buffer unit 115. The high-efficiency encoding performed by the RAW compression unit 113 is processed by a known technique such as wavelet transform or differential encoding, but may be lossy encoding or lossless encoding. Alternatively, the RAW compression of the RAW compression unit 113 may be omitted, and the RAW image may be output through without being compressed. Regardless of the presence or absence of RAW compression, the present embodiment generates a RAW file that can be restored as a high-quality file without significantly losing the image information supplied from the sensor signal processing unit 103.

S813において、記録再生部151がRAWファイルを記憶媒体152に記録した後、フローはS801に遷移する。なお、S811及びS813において、記録再生部151は、動画ファイル及び/又はRAWファイルを、通信部153を介して、通信端子154から外部のストレージに送って、外部のストレージによって記録するようにしても良い。   In step S813, after the recording / playback unit 151 records the RAW file in the storage medium 152, the flow proceeds to step S801. In S811 and S813, the recording / playback unit 151 may send the moving image file and / or the RAW file to the external storage from the communication terminal 154 via the communication unit 153, and record them in the external storage. good.

以上が、本実施形態の動画撮影モードの処理に係るフローの説明である。ここで、本実施形態に係る、動画ファイルの構造と、RAWファイルの構造について説明する。図9は、動画ファイル及びRAWファイルの構成例を示す図である。   The above is the description of the flow relating to the processing in the moving image shooting mode of the present embodiment. Here, the structure of the moving image file and the structure of the RAW file according to the present embodiment will be described. FIG. 9 is a diagram illustrating a configuration example of a moving image file and a RAW file.

図9(a)に示す動画ファイル900は、記録再生部151によって、例えば記憶媒体152の所定の記録エリアに記録されている。動画ファイル900は、ヘッダ部901、メタデータ部902、圧縮データ部903から成る。ヘッダ部901には、このファイルが動画ファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部903には、高能率符号化された動画と音声の圧縮データが含まれている。   The moving image file 900 shown in FIG. 9A is recorded in, for example, a predetermined recording area of the storage medium 152 by the recording / playback unit 151. The moving image file 900 includes a header portion 901, a metadata portion 902, and a compressed data portion 903. The header portion 901 includes an identification code indicating that this file is in the format of a moving image file. The compressed data portion 903 includes high-efficiency encoded moving image and audio compressed data.

メタデータ部902には、この動画ファイルと同時に生成されたRAWファイルのファイル名の情報904が含まれる。また、この動画ファイルが簡易現像部111によって簡易現像されたのか、又は高画質現像部112で高画質現像されたのかを示すフラグを含む現像ステータスの情報905が含まれる。現像ステータスの情報905には1シーンに含まれるフレーム総数と、高画質現像による現像が完了したフレーム数(または現像が完了したフレーム番号)が含まれてもよい。また、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、撮像光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ906が含まれる。また、図示していないが、同時に生成されたRAWファイルが記録されている記憶媒体の識別コードや、記録されているフォルダのパス情報などを更に含んでも良い。   The metadata part 902 includes file name information 904 of the RAW file generated simultaneously with the moving image file. In addition, development status information 905 including a flag indicating whether the moving image file has been simply developed by the simple developing unit 111 or developed by the high image quality developing unit 112 is included. The development status information 905 may include the total number of frames included in one scene and the number of frames for which development by high-quality development has been completed (or a frame number for which development has been completed). Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131, and information at the time of shooting from the imaging optical unit 101 and the imaging sensor unit 102 (for example, lens type identification information, sensor type identification information) Etc.). In addition, although not shown, it may further include an identification code of a storage medium in which a RAW file generated at the same time is recorded, path information of a recorded folder, and the like.

図9(b)に示すRAWファイル910は、記録再生部151によって、例えば記憶媒体152の所定の記録エリアに記録されている。RAWファイル910は、ヘッダ部911、メタデータ部912、圧縮データ部913から成る。ヘッダ部911には、このファイルがRAWファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部913には、高能率符号化された動画のRAW圧縮データが含まれている(圧縮されていない動画のRAW画像データであっても良い)。   The RAW file 910 shown in FIG. 9B is recorded in, for example, a predetermined recording area of the storage medium 152 by the recording / playback unit 151. The RAW file 910 includes a header part 911, a metadata part 912, and a compressed data part 913. The header portion 911 includes an identification code indicating that this file is in the RAW file format. The compressed data section 913 includes moving image RAW compressed data that has been encoded with high efficiency (may be uncompressed moving image RAW image data).

メタデータ部912には、このRAWファイルと同時に生成された動画ファイルのファイル名の情報914が含まれる。また、その動画ファイルが簡易現像部111によって簡易現像されたことを示す現像ステータスの情報915が含まれる。また、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、撮像光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ916が含まれる。また、図示していないが、同時に生成された動画ファイルが記録されている記憶媒体の識別コードや、記録されているフォルダのパス情報などを更に含んでも良い。或いはまた、同時に生成された動画ファイルそのもの全部又は一部(先頭フレームなど)を抽出してメタデータ化して、メタデータ部912に格納しても良い。上述した本実施形態に係る各種ファイルの構造は一例であり、DCF、AVCHD、MXFなどの標準規格に準じた構成であっても良い。   The metadata portion 912 includes file name information 914 of a moving image file generated simultaneously with the RAW file. Further, development status information 915 indicating that the moving image file has been simply developed by the simple developing unit 111 is included. Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131, and information at the time of shooting from the imaging optical unit 101 and the imaging sensor unit 102 (for example, lens type identification information, sensor type identification information) And the like. Further, although not shown in the figure, it may further include an identification code of a storage medium in which a simultaneously generated moving image file is recorded, path information of a recorded folder, and the like. Alternatively, all or part of the moving image file generated at the same time (such as the first frame) may be extracted and converted into metadata, and stored in the metadata unit 912. The structure of the various files according to the present embodiment described above is an example, and a configuration conforming to a standard such as DCF, AVCHD, or MXF may be used.

本実施形態に係る撮像装置100は、上述のように、動画撮影モードにおける撮影画像表示(ライブビュー表示)や、撮影時に生成される動画ファイルのための現像処理を、簡易現像部111によって行う。簡易現像部111は、現像後の画像サイズを200万画素以下に制限したり、ノイズ除去や光学的な歪補正を限定的な処理に留めたり、或いは省いたりすることで、例えばHDサイズの動画の現像処理を、小さい回路規模で少ない消費電力で実現することができる。一方で、本実施形態に係る撮像装置100は、上述のように、動画ファイルと共に、その動画の記録期間に対応するRAWファイルを生成する。RAWファイルは、センサー信号処理部103から供給される画像情報を大きく損なわない高画質ファイルであるが、このファイルの生成に現像処理を必要としない。そのため、4Kや8K(水平解像度が8000画素相当)のように画像の画素数を高めたり、毎秒120コマ(120P)のようにフレームレートを高めたりしても、小規模な回路によって少ない消費電力でRAWファイルを記録することが可能である。   As described above, the imaging apparatus 100 according to the present embodiment uses the simple developing unit 111 to perform a captured image display (live view display) in the moving image shooting mode and a developing process for a moving image file generated at the time of shooting. The simple development unit 111 limits the image size after development to 2 million pixels or less, or restricts noise removal and optical distortion correction to a limited process, or omits, for example, an HD size moving image. This development process can be realized with a small circuit scale and low power consumption. On the other hand, as described above, the imaging apparatus 100 according to the present embodiment generates a RAW file corresponding to the recording period of the moving image along with the moving image file. The RAW file is a high-quality file that does not significantly impair the image information supplied from the sensor signal processing unit 103, but development processing is not required to generate this file. Therefore, even if the number of image pixels is increased, such as 4K or 8K (horizontal resolution is equivalent to 8000 pixels), or the frame rate is increased, such as 120 frames per second (120P), less power is consumed by a small circuit. It is possible to record a RAW file.

図10に、本実施形態のアイドル状態からの動画中の所定部分の追いかけ現像処理に係るフローチャートを示す。   FIG. 10 shows a flowchart relating to the chase development processing of a predetermined portion in the moving image from the idle state according to the present embodiment.

本実施形態に係る先頭部分追いかけ現像処理は、前述した追いかけ現像機能を活用した一処理である。具体的には撮影と撮影の合間や、ユーザーの操作待ちの、比較的装置の処理負荷が小さい状態において、バッファ部115又は記憶媒体152等に記録されたRAWファイルをソースとして、改めて高画質な現像処理を施す。すなわち、所定の動作状態(バックグラウンドでも良い)の都度、RAWファイルから得られる高画質の表示画像や高画質の動画ファイルを生成する処理を意味する。また本実施形態では動画ファイルに対して説明するが、静止画連写等の連続する複数枚の関連する静止画ファイルにおいても適応させることは可能である。   The head part chasing development process according to the present embodiment is a process utilizing the chasing development function described above. Specifically, in the interval between shootings or in a state where the processing load of the apparatus is relatively low, waiting for user operation, the RAW file recorded in the buffer unit 115 or the storage medium 152 is used as a source to improve the image quality again. Apply development processing. That is, it means processing for generating a high-quality display image or a high-quality moving image file obtained from a RAW file every time a predetermined operation state (or background) is possible. In the present embodiment, a moving image file will be described. However, the present invention can also be applied to a plurality of continuous still image files such as still image continuous shooting.

追いかけ現像の有効性は前述のとおりである。一方で、動画ファイルのように1秒間に数十フレーム存在し、数分から数十分といった比較的長い時間記録されているデータに対して、すべてのシーン(フレーム)を追いかけ現像することは、アイドル中のバッテリーの消費といった課題も発生する。そこで、各動画ファイルの一部として、先頭部分のみを追いかけ現像しておくことで、バッテリー消費も抑制しつつ、高画質の動画ファイルの即時再生を行うことを可能にする。各動画ファイルの先頭部分に関して即時再生、表示できるので、各シーンの確認再生に有効である。また、所望の動画ファイルが再生開始された直後は先頭部分の高画質現像済みの映像を即時再生し、その再生期間のバックグラウンドで、先頭以降の続き部分を高画質現像する使用形態も実現できる。   The effectiveness of the follow-up development is as described above. On the other hand, it is not possible to track and develop all scenes (frames) for data recorded in a relatively long time such as several minutes to several tens of minutes, such as a video file. Issues such as battery consumption inside will also occur. Therefore, by chasing and developing only the head portion as part of each moving image file, it is possible to immediately reproduce a high-quality moving image file while suppressing battery consumption. Since the head part of each moving image file can be reproduced and displayed immediately, it is effective for confirming and reproducing each scene. In addition, immediately after the start of playback of a desired moving image file, it is possible to immediately play back the high-quality developed video at the beginning, and to realize high-quality development of the subsequent portions after the beginning in the background of the playback period. .

図10のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものである。制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行されることにより実現される。   The flowchart of FIG. 10 illustrates a processing procedure executed by the control unit 161 controlling each processing block. This is realized by developing a program stored in a memory (ROM) of the control unit 161 in the memory (RAM) and executing the CPU.

図10においてアイドル状態の処理が開始されると、制御部161が、S1001にてユーザー設定によって指示される、動画ファイルに対しての追いかけ現像を行うか否かを判定する。追いかけ現像を行わない場合はS1002に遷移し、追いかけ現像を行う場合はS1020に遷移する。   In FIG. 10, when the process in the idle state is started, the control unit 161 determines whether or not to perform the chase development for the moving image file instructed by the user setting in S1001. When the follow-up development is not performed, the process proceeds to S1002, and when the follow-up development is performed, the process proceeds to S1020.

S1001で追いかけ現像を行わない場合は、ユーザーからのモード設定に従って、制御部161が図2に示した201、202、203、204の何れかのモードに遷移するか判定する(S1002、S1003、S1004、S1005)。そして、制御部161が、選ばれたモードの処理フローへ遷移するよう制御する(S1010、S1011、S1012、S1013)。   When the follow-up development is not performed in S1001, it is determined whether the control unit 161 shifts to any of 201, 202, 203, and 204 shown in FIG. 2 according to the mode setting from the user (S1002, S1003, and S1004). , S1005). Then, the control unit 161 controls to transition to the processing flow of the selected mode (S1010, S1011, S1012, S1013).

記憶媒体152等には、1回の撮影指示(1シーンの記録開始指示)に対して、動画ファイルとRAWファイルが1つずつの組として記録されている。手動または自動によって追いかけ現像を行う場合、制御部161が、S1020において各画像の組について、追いかけ現像が処理済みか未処理かを判定する。判定の際、例えば動画ファイル900のメタデータ部902に格納されている現像ステータス905に含まれている情報の中の、動画ファイルが簡易現像部111で処理されたものか、高画質現像部112で処理されたものかを識別するためのフラグを参照する。この参照された、このフラグから判定する方法がある。或いはRAWファイル910の中の現像ステータス915を参照し、同様に判定しても良い。或いは、一連の撮影された動画に対して、現像処理の状態を示すテーブルファイルを別に用意して判定しても良い。   In the storage medium 152 or the like, a moving image file and a RAW file are recorded as one set for each shooting instruction (recording start instruction for one scene). When the follow-up development is performed manually or automatically, the control unit 161 determines whether the follow-up development has been processed or not processed for each set of images in S1020. At the time of determination, for example, the information included in the development status 905 stored in the metadata portion 902 of the moving image file 900 indicates whether the moving image file has been processed by the simple developing portion 111 or the high image quality developing portion 112. Refers to the flag for identifying whether it has been processed by. There is a method of determining from this referenced flag. Alternatively, the same determination may be made with reference to the development status 915 in the RAW file 910. Alternatively, it may be determined by separately preparing a table file indicating the state of development processing for a series of captured moving images.

また、S1020で追いかけ現像が処理済みか未処理かを判定する場合に、複数ある動画ファイル各先頭フレームからの所定時間に対して、追いかけ現像処理が済んでいるか否かを判定し、全動画ファイルが満遍なく高画質処理されるような判定方法にしても良い。また、処理済みか否かの判断として、いくつかのステップを設けてもよい。例えば動画の撮影時間全てに対して処理されているかを判断する構成にしてもよい。また、動画先頭部分から予め定められた時間(例えば、1分)毎に区切って、先頭から所定の時間分追いかけ現像処理がなされていれば、処理済みと判断する構成でもよい。更に、追いかけ現像処理が所定時間なされているか判断する場合においては、操作部162からの操作によって追いかけ現像処理済みか否かを判断する際の時間を動画ファイル単位に設定できる構成にしてもよい。   In S1020, when it is determined whether the follow-up development has been processed or not yet processed, it is determined whether the follow-up development processing has been completed for a predetermined time from the first frame of each of the plurality of movie files. May be determined so that the image quality is uniformly processed. Also, some steps may be provided as a determination of whether or not the processing has been completed. For example, it may be configured to determine whether or not the processing is performed for the entire shooting time of the moving image. Alternatively, it may be determined that the processing has been completed if a predetermined time (for example, 1 minute) is divided from the head portion of the moving image and the follow-up development processing is performed for a predetermined time from the head. Further, when it is determined whether the follow-up development process has been performed for a predetermined time, the time for determining whether the follow-up development process has been completed by an operation from the operation unit 162 may be set for each moving image file.

さらに、1回の記録開始指示に応じて撮影された1シーンの動画ファイルに含まれるフレーム総数と、高画質現像による現像が完了したフレーム数を参照して当該フレームが高画質現像されたフレームか否かを判定するようにしても良い。高画質現像による現像が完了したフレーム数に替えて、現像が完了したフレーム番号でも良い。これらの場合、動画ファイル900の現像ステータス905或いはRAWファイル910の現像ステータス915に、高画質現像による現像が完了したフレーム数(または現像が完了したフレーム番号)の情報を格納しておく。   Further, referring to the total number of frames included in the moving image file of one scene shot in response to one recording start instruction and the number of frames that have been developed by high-quality development, whether the frame is a high-quality developed frame or not. It may be determined whether or not. Instead of the number of frames for which development by high image quality development has been completed, a frame number for which development has been completed may be used. In these cases, the development status 905 of the moving image file 900 or the development status 915 of the RAW file 910 stores information on the number of frames that have been developed by high-quality development (or the number of frames that have been developed).

制御部161によって、追いかけ現像が処理済みと判断されれば、S1002に遷移する。追いかけ現像が未処理の動画があれば、S1021に遷移する。S1021では、制御部161が追いかけ現像が未処理の動画に対応するRAWファイルが、バッファ部115にバッファリングされているかを判断する。バッファリングされていればS1023に進み、バッファリングされていなければS1022にて記録再生部151が対応するRAWファイルを記憶媒体152等から読み出し、バッファ部115に格納する。バッファ部115は、動画撮影モードで撮影された新しい画像から優先的に保持されるように、データが更新されるので、上述の静止画撮影モードと同様の効果が得られる。   If the control unit 161 determines that the follow-up development has been processed, the process proceeds to S1002. If there is a moving image that has not been subjected to the follow-up development, the flow proceeds to S1021. In step S <b> 1021, the control unit 161 determines whether a RAW file corresponding to a moving image that has not been chased and developed has been buffered in the buffer unit 115. If it is buffered, the process proceeds to S1023. If it is not buffered, the recording / playback unit 151 reads the corresponding RAW file from the storage medium 152 or the like and stores it in the buffer unit 115 in S1022. Since the buffer unit 115 updates the data so that the new image captured in the moving image capturing mode is preferentially retained, the same effect as that in the still image capturing mode described above can be obtained.

S1023において、RAW伸張部114が、バッファ部115又は記憶媒体152から読み出したRAWファイルの時間的先頭から所定時間分(先頭部分)を伸張処理し、RAW画像を復元する。当該所定時間は固定的な値であってもよいし、可変(ユーザによる設定が可能)であってもよい。また、動画ファイル毎に異なっていてもよいし、同一であってもよい。復元された先頭部分のRAW画像は、S1024にて高画質現像部112が高画質に現像しスイッチ部121を経由して動画圧縮部142に出力される。本実施形態では、静止画モードでも得られる上述の効果に加えて、高画質現像部112での追いかけ現像処理を動画の先頭部分にのみ処理を適応することで、追いかけ現像で費やされる電力を低減できる。よって、電力消費の抑制とユーザーが撮影動画を高画質で視聴したい場合に、処理待ち時間なく軽快に視聴することが可能となる。ただし、当然のごとく操作部162からの指示により強制的に先頭部分のみならず、動画の撮影時間全てに対して、高画質現像を行うことが可能なのは言うまでもない。   In step S1023, the RAW decompression unit 114 decompresses a RAW image by decompressing a predetermined time (first part) from the temporal head of the RAW file read from the buffer unit 115 or the storage medium 152. The predetermined time may be a fixed value or variable (can be set by the user). Moreover, it may differ for every moving image file, and may be the same. The restored RAW image of the head portion is developed to a high image quality by the high image quality developing unit 112 in S1024, and is output to the moving image compression unit 142 via the switch unit 121. In the present embodiment, in addition to the above-described effects obtained even in the still image mode, the chasing development processing in the high image quality developing unit 112 is applied only to the head portion of the moving image, thereby reducing the power consumed in the chasing development. it can. Therefore, it is possible to lightly watch without processing wait time when the power consumption is suppressed and the user wants to view the captured moving image with high image quality. However, as a matter of course, it is needless to say that high-quality image development can be performed not only for the head portion but also for the entire shooting time of a moving image by an instruction from the operation unit 162.

高画質現像部112で現像処理された画像情報は、動画圧縮部142に供給され、動画圧縮部142は、S1025にて取得した画像情報に対して高能率符号化処理(動画圧縮)を施し、高画質の静止画ファイルを生成する。なお、動画圧縮部142は、MPEG−2、H.264、H.265などの公知の技術により圧縮処理を行う。S1026において、記録再生部151が高画質の動画ファイルを記憶媒体152等に記録したら、フローはS1002に遷移する。   The image information developed by the high image quality developing unit 112 is supplied to the moving image compression unit 142, and the moving image compression unit 142 performs high-efficiency encoding processing (moving image compression) on the image information acquired in S1025, Generate high-quality still image files. Note that the moving image compression unit 142 is MPEG-2, H.264, or the like. H.264, H.C. The compression processing is performed by a known technique such as H.265. If the recording / playback unit 151 records a high-quality moving image file in the storage medium 152 or the like in S1026, the flow proceeds to S1002.

S1026で記録される動画ファイルは、図9(a)に示す動画ファイル900の構成で、ヘッダ部901、メタデータ部902、圧縮データ部903から成る。ヘッダ部901には、このファイルが動画ファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部903には、高能率符号化された動画(先頭部分)の圧縮データが含まれている。メタデータ部902には、この動画ファイルの元となったRAWファイルのファイル名の情報904が含まれる。また、この動画ファイルが高画質現像部112によって高画質現像されたことを示す現像ステータスおよび、現像された範囲として現像されたフレームの先頭からの時間情報905が含まれる。また、元のRAWファイルのメタデータから抽出された、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、撮像光学部101や撮像センサー部102からの撮影時の情報を含む撮影メタデータ906が含まれる。   The moving image file recorded in S1026 has the structure of the moving image file 900 shown in FIG. 9A, and includes a header portion 901, a metadata portion 902, and a compressed data portion 903. The header portion 901 includes an identification code indicating that this file is in the format of a moving image file. The compressed data portion 903 includes compressed data of a moving image (first portion) that has been encoded with high efficiency. The metadata part 902 includes file name information 904 of the RAW file that is the source of the moving image file. Further, a development status indicating that this moving image file has been developed with high quality by the high quality development unit 112 and time information 905 from the beginning of the developed frame as the developed range are included. Also, the evaluation value and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131 extracted from the metadata of the original RAW file, and information at the time of shooting from the imaging optical unit 101 and the imaging sensor unit 102 The shooting metadata 906 including is included.

記録再生部151は、高画質現像を経て、S1026で記録される新たな動画ファイルには、元となったRAWファイルと同時に記録された簡易現像による動画ファイルと同じファイル名を与えて、上書き記録する。すなわち簡易現像による動画ファイルは削除される。そして、記録再生部151は、追いかけ現像の元となったRAWファイルは、メタデータ部912内の現像ステータス915を高画質現像済(又は追いかけ現像済)であることを示す情報として更新する。なお、先頭部分のみが高画質現像処理されている場合には、元となったRAWファイルと同時に記録された簡易現像動画ファイルは削除せずに、簡易現像動画ファイルは保持しつつ、高画質現像された動画ファイルを記憶媒体152等へ記録する。   The recording / playback unit 151 gives the same file name to the new moving image file recorded at the same time as the original RAW file to the new moving image file recorded in S1026 after high-quality development and overwrite recording. To do. That is, the moving image file by simple development is deleted. Then, the recording / playback unit 151 updates the development status 915 in the metadata unit 912 as information indicating that the high-quality development has been performed (or the follow-up development has been completed) for the RAW file that is the source of the follow-up development. If only the top part is subjected to high-quality development processing, the simple development video file recorded at the same time as the original RAW file is not deleted, and the simple development video file is retained and high-quality development is performed. The recorded moving image file is recorded on the storage medium 152 or the like.

高画質現像された動画ファイルを記憶媒体152等へ記録した場合には、高画質現像された動画ファイル900の構成におけるメタデータ部902に、関連する簡易現像動画ファイルのファイル名等が含まれる。また、簡易現像動画ファイルの圧縮データ部913は保持しつつ、メタデータ部912に高画質現像処理された動画ファイルのファイル名や高画質現像処理された部分などを含むようにメタデータ部912を更新する。   When a high-quality developed moving image file is recorded on the storage medium 152 or the like, the metadata portion 902 in the configuration of the high-quality developed moving image file 900 includes the file name of the related simple developed moving image file. Further, while holding the compressed data portion 913 of the simple developed moving image file, the metadata portion 912 is included so that the metadata portion 912 includes the file name of the moving image file subjected to the high quality development processing, the portion subjected to the high quality development processing, and the like. Update.

このように、本実施形態の撮像装置100は、撮影と撮影の合間や、再生モードやスリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態のときに追いかけ現像を実行する。そして、撮影時の簡易現像による動画ファイルを、RAWファイルを用いた高画質現像による動画ファイルに置き換えて行く。すなわち、所定の動作状態の都度、追いかけ現像を実行することによって、経過時間に応じて高画質現像済みの期間が増加し、最終的には動画ファイルの全部の期間が高画質現像済みとなる。こうすることにより、高画質現像前に高画質な再生の要求が与えられた場合であっても、その都度余計な現像処理待ちが発生せず、また、従来よりも高品質な画像の視聴環境の提供が可能となる。そして、最終的には全てが高画質となった画像を提供することもできる。   As described above, the imaging apparatus 100 according to the present embodiment performs the follow-up development when the processing load of the apparatus is relatively low, waiting for a user operation such as between shootings or in a playback mode or a sleep state. Then, the moving image file by the simple development at the time of shooting is replaced with the moving image file by the high image quality development using the RAW file. That is, by performing the follow-up development for each predetermined operation state, the period during which the high-quality image has been developed increases according to the elapsed time, and finally, the entire period of the moving image file becomes the high-quality image developed. In this way, even when a request for high-quality playback is given before high-quality development, there is no need to wait for development processing every time, and a higher-quality image viewing environment than before. Can be provided. Finally, it is also possible to provide an image in which all have high image quality.

次に、撮像装置100の動画再生モードにおける動作について説明する。   Next, an operation in the moving image reproduction mode of the imaging apparatus 100 will be described.

図11に、本実施形態の動画再生モードの処理に係るフローチャートを示す。図11のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   FIG. 11 shows a flowchart relating to processing in the moving image playback mode of the present embodiment. The flowchart of FIG. 11 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) included in the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

図11において動画再生モードの処理が開始されると、S1101において制御部161が撮像装置100の処理負荷状況が低いか否かを判定する。負荷状況に応じた頻度で、処理負荷が低い場合はS1110でアイドル状態へ遷移し、それ以外の場合はS1102へ進む。例えば、再生指示などのユーザー操作を待っている間は、処理負荷が低いため、S1110へ遷移する。ユーザーからの操作に応じて動画の再生が開始されている(再生中の状態を含む)場合はS1102へ進む。   In FIG. 11, when the processing of the moving image playback mode is started, the control unit 161 determines whether or not the processing load status of the imaging apparatus 100 is low in S1101. If the processing load is low at a frequency according to the load status, the process shifts to the idle state in S1110, and otherwise the process proceeds to S1102. For example, while waiting for a user operation such as a reproduction instruction, the processing load is low, and the process proceeds to S1110. If the playback of a moving image has been started in response to an operation from the user (including a state during playback), the process proceeds to S1102.

S1102において、制御部161が、記憶媒体152等に高画質現像処理がなされた動画ファイルが存在するか否かを判定する。S1102で高画質現像処理された動画ファイルが存在する場合は、S1103に進む。動画ファイルが存在しない場合はS1107に進む。S1103において、制御部161が、高画質現像処理された動画ファイルの終端部分再生が完了したか否かを判定する。高画質現像処理された動画ファイルの再生が完了したと判定された場合には、S1107へ進む。高画質現像処理された動画ファイルの再生が完了していないと判定された場合には、高画質現像処理された動画再生を行うためにS1104へ進む。   In step S1102, the control unit 161 determines whether there is a moving image file that has been subjected to high-quality development processing in the storage medium 152 or the like. If there is a moving image file that has undergone high-quality development processing in S1102, the process proceeds to S1103. If no moving image file exists, the process advances to step S1107. In step S1103, the control unit 161 determines whether or not the end partial playback of the moving image file that has been subjected to the high-quality image development processing has been completed. If it is determined that the reproduction of the moving image file subjected to the high-quality development processing is completed, the process proceeds to S1107. If it is determined that the reproduction of the moving image file subjected to the high image quality development processing has not been completed, the process proceeds to S1104 in order to reproduce the moving image file subjected to the high image quality development processing.

S1104において、記録再生部151が記憶媒体152等から再生対象の高画質現像処理された動画ファイルを読み出す。そして、S1105において、動画伸張部144が、読み出された動画ファイルを1フレームずつ復号して伸張し、S1106において、表示制御部122が再生された動画の表示画像を表示部123へ出力する。なお、S1005の表示は1フレーム毎に行われ、動画再生中は、次のフレームの表示を行うため、フローはS1001に戻る。   In step S <b> 1104, the recording / playback unit 151 reads a playback target moving image file that has been subjected to high-quality development processing from the storage medium 152 or the like. In step S1105, the moving image extension unit 144 decodes and expands the read moving image file frame by frame. In step S1106, the display control unit 122 outputs the display image of the reproduced moving image to the display unit 123. Note that the display in S1005 is performed for each frame, and the flow returns to S1001 to display the next frame during playback of the moving image.

S1102で高画質現像処理された動画ファイルが存在しないと判定された場合又はS1103で高画質現像処理された動画ファイルの再生が完了したと判定された場合はS1107に進む。S1107において、制御部161が、記憶媒体152等に簡易現像処理された動画ファイルが存在するか否かを判定する。簡易現像処理された動画ファイルが存在しないと判定されたということは、言い換えると、動画ファイル全編に対して高画質現像処理が完了し、簡易現像された動画ファイルによって全て上書きされたことを意味する。簡易現像処理された動画ファイルが存在すると判定された場合は、S1108へと進む。   If it is determined in S1102 that there is no moving image file that has undergone high-quality development processing, or if it is determined in S1103 that reproduction of the moving image file that has undergone high-quality development processing has been completed, the processing proceeds to S1107. In step S1107, the control unit 161 determines whether there is a moving image file that has been subjected to the simple development processing in the storage medium 152 or the like. In other words, when it is determined that there is no video file that has undergone simple development processing, it means that the high-quality development processing has been completed for the entire video file, and all of the video files have been overwritten by the simple development video file. . If it is determined that there is a moving image file that has undergone simple development processing, the process advances to step S1108.

S1108において、簡易現像処理された動画ファイルの終端部分再生が完了したか否かを判定する。簡易現像処理された動画ファイルの再生が完了していないと判定された場合には、S1109へ進む。S1109において、記録再生部151が記憶媒体152等から再生対象の簡易現像処理された動画ファイルを読み出す。そして、S1105において、動画伸張部144が、読み出された動画ファイルを1フレームずつ復号して伸張し、S1106において、表示制御部122が再生された動画の表示画像を表示部123へ出力する。   In step S1108, it is determined whether or not the end partial playback of the moving image file that has undergone the simple development process has been completed. If it is determined that the reproduction of the simple developed moving image file has not been completed, the process advances to S1109. In step S <b> 1109, the recording / playback unit 151 reads the playback target moving image file that has been subjected to the simple development process from the storage medium 152 or the like. In step S1105, the moving image extension unit 144 decodes and expands the read moving image file frame by frame. In step S1106, the display control unit 122 outputs the display image of the reproduced moving image to the display unit 123.

S1107で簡易現像処理された動画ファイルが存在しないと判定された場合ないし、S1108で簡易現像処理された動画ファイルの再生が完了したと判定された場合には、それぞれS1001のフローに戻る。S1001において、アイドル状態S1010に遷移した場合は、上述した図11のフローチャートに従って処理される。   If it is determined in S1107 that there is no moving image file that has undergone the simple development processing, or if it is determined in S1108 that the reproduction of the moving image file that has undergone the simple development processing has been completed, the flow returns to the flow of S1001. In S1001, when transitioning to the idle state S1010, processing is performed according to the flowchart of FIG. 11 described above.

図13は、先頭部分追いかけ現像を施した場合の各動画ファイルの概念図である。図のように、各動画ファイル(ストリーム)のそれぞれ先頭部分では高画質現像済のシーンが再生可能となる。なお、図13(a)は上述したように先頭部分として一定期間を高画質現像対象とした例であり、図13(b)は先頭部分の期間を、各動画ファイルごとに個別設定可能(可変)にした例を示す。いずれの場合も、各ストリームの先頭から所定期間は高画質現像済のシーン再生が可能となるが、残りの期間については簡易現像されたシーンを再生することとなる。   FIG. 13 is a conceptual diagram of each moving image file when the head portion chasing development is performed. As shown in the figure, a high-quality developed scene can be reproduced at the head of each moving image file (stream). Note that FIG. 13A is an example in which a certain period is set as a high-quality development target as the top part as described above, and FIG. 13B is a diagram in which the period of the top part can be individually set (variable) for each moving image file. ). In either case, it is possible to reproduce a scene that has been developed with high image quality for a predetermined period from the beginning of each stream, but for the remaining period, a scene that has been simply developed is reproduced.

以上の実施形態によれば、撮影時には簡易現像を行う一方、撮像装置のアイドル状態において、より処理負荷の高い高画質現像を行うことで高い撮影パフォーマンスを実行し、再生画像も高速に出画可能にすることが可能となる。   According to the embodiments described above, simple development is performed at the time of shooting, while high imaging performance is executed by performing high-quality development with a higher processing load in the idle state of the imaging apparatus, and a reproduced image can be output at high speed. It becomes possible to.

<実施形態2>
上記実施形態1では、動画像ファイルの追いかけ処理について、RAWファイルの時間的先頭から所定時間分(先頭部分)を順番に伸張処理し高画質現像部112にて高画質に現像を行った。これに対して本実施形態では、追いかけ処理において1シーンの連続するフレームに対して順番に行うのではなく、所定の間隔でフレーム間引きし、複数回に分けて高画質現像を行う場合を説明する。
<Embodiment 2>
In the first embodiment, for the chasing process of the moving image file, the high-quality developing unit 112 develops the high-quality developing unit 112 by sequentially extending a predetermined time (first part) from the temporal head of the RAW file. On the other hand, in the present embodiment, a case will be described in which the chasing process is not performed sequentially on consecutive frames of one scene, but the frames are thinned out at a predetermined interval, and high-quality image development is performed in a plurality of times. .

本実施形態におけるフローチャートは基本的には図10と同様であるが、S1023からS1026までの処理が異なる。S1023からS1026までの代わりに実施される本実施形態に対応する追いかけ現像処理について図14に処理の一例を示す。図14のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   The flowchart in this embodiment is basically the same as that in FIG. 10, but the processing from S1023 to S1026 is different. FIG. 14 shows an example of the follow-up development process corresponding to this embodiment, which is performed instead of S1023 to S1026. The flowchart of FIG. 14 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) included in the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

まず制御部161は、S1401において動画ファイル900の現像ステータスを参照し、追いかけ現像が既に実施されたか否かを判定する。本実施形態に対応する動画ファイル900の現像ステータスの情報905には、追いかけ現像が実行された回数に関する情報が含まれていてもよい。もし、まだ追いかけ現像が行われていなかった場合はS1402に移行し、1回目の追いかけ現像が既に行われていた場合にはS1406に移行する。   First, in step S1401, the control unit 161 refers to the development status of the moving image file 900, and determines whether follow-up development has already been performed. The development status information 905 of the moving image file 900 corresponding to the present embodiment may include information regarding the number of times the follow-up development has been executed. If the follow-up development has not been performed yet, the process proceeds to S1402. If the first follow-up development has already been performed, the process proceeds to S1406.

図15(a)はRAWファイルに存在する1シーン全ての画像フレームを表しており、フレームレートは例えば60フレーム/秒の画像フレームである。1回目の追いかけ現像では、S1402において図15の(b)に示すように1フレーム間隔となるよう偶数番目(2n番目、但しnは整数)のフレームを選択することを決定する。次に、選択されたフレームについてS1403においてRAW伸張部114が記憶媒体152から読み出したRAWファイルにおける選択フレームに対応する圧縮データを伸張処理し、RAW画像を復元する。復元されたRAW画像は、S1404にて高画質現像部112が高画質に現像する。次いで、S1405では動画圧縮部142が高能率符号化処理を行い、動画ファイルを生成し、S1406で記憶媒体に記録する。このフレーム間引かれた状態で生成された動画ファイルを以下「動画ファイルβ」と言う。1フレーム間隔で間引きする事で、動画ファイルβのフレームレートは30フレーム/秒となるが、全てのフレームを追いかけ現像する処理時間と比較して半分の時間で1シーンの追いかけ現像を完了させる事ができる。また、動画ファイルβは上述の動画ファイルと同様に図9の900のファイル構造となっており、動画ファイルβ単独での動画再生が可能である。   FIG. 15A shows all the image frames of one scene existing in the RAW file, and the frame rate is, for example, an image frame of 60 frames / second. In the first follow-up development, it is determined in S1402 that an even-numbered frame (2nth, where n is an integer) is selected so as to have an interval of one frame as shown in FIG. Next, in step S1403, the RAW decompression unit 114 decompresses the compressed data corresponding to the selected frame in the RAW file read from the storage medium 152 to restore the RAW image. In step S1404, the restored RAW image is developed with high image quality by the high image quality developing unit 112. Next, in step S1405, the moving image compression unit 142 performs high-efficiency encoding processing, generates a moving image file, and records it in the storage medium in step S1406. The moving image file generated with the frames thinned out is hereinafter referred to as “moving image file β”. By thinning out at intervals of one frame, the frame rate of the movie file β becomes 30 frames / second, but the chase development of one scene is completed in half the time compared to the processing time for chasing and developing all the frames. Can do. In addition, the moving image file β has the file structure 900 in FIG. 9 similarly to the moving image file described above, and the moving image file β can be reproduced by the moving image file β alone.

1回目の追いかけ現像がシーンの終端に達し完了すると、記憶媒体に記録されている他のRAWファイル(他のシーン)に対しての1回目の追いかけ現像へと処理が移行する。そして全てのRAWファイルに対して1回目の追いかけ現像が完了すると、最初のRAWファイルに対する2回目の追いかけ現像が実行される。   When the first follow-up development reaches the end of the scene and is completed, the processing shifts to the first follow-up development for another RAW file (another scene) recorded on the storage medium. When the first follow-up development is completed for all the RAW files, the second follow-up development for the first RAW file is executed.

S1401で1回目ではないと判定された場合の2回目の追いかけ現像では、図15の(c)に示すように1回目で未現像のフレーム、すなわち奇数番目(2n+1番目、但しnは整数)のフレームに対して高画質現像、高能率符号化処理がなされる。なお、1回目に奇数番目を選択し、2回目に偶数番目を選択してもよい。即ち、S1407において図15の(c)に示すように1フレーム間隔となるよう例えば偶数番目(2n+1番目)のフレームを選択することを決定する。次に、選択されたフレームについてS1408においてRAW伸張部114が記憶媒体152から読み出したRAWファイルにおける選択フレームに対応する圧縮データを伸張処理し、RAW画像を復元する。復元されたRAW画像は、S1409にて高画質現像部112が高画質に現像する。次いで、S1410では動画圧縮部142が高能率符号化処理を行い、動画ファイルを生成する。その際、動画ファイルβを記憶媒体から読み出し、1回目(動画ファイルβ)の符号化データと2回目の符号化データとをフレーム毎に多重して、60フレーム/秒の動画ファイルを生成する。そして、S1411において記録再生部151が60フレーム/秒の動画ファイルを記憶媒体152に記録する。2回目の追いかけ現像がシーンの終端に達し完了した時点で、動画ファイルβを記憶媒体152から削除するようにしてもよい。   In the second follow-up development when it is determined in S1401 that it is not the first time, as shown in FIG. 15C, the first undeveloped frame, that is, an odd number (2n + 1th, where n is an integer) High-quality image development and high-efficiency encoding processing are performed on the frame. Alternatively, the odd number may be selected at the first time and the even number may be selected at the second time. That is, in S1407, it is determined to select, for example, an even-numbered (2n + 1) th frame so as to be one frame interval as shown in FIG. Next, in step S1408, the RAW decompression unit 114 decompresses the compressed data corresponding to the selected frame in the RAW file read from the storage medium 152 to restore the RAW image. In step S1409, the restored RAW image is developed with high image quality by the high image quality developing unit 112. In step S1410, the moving image compression unit 142 performs a high-efficiency encoding process to generate a moving image file. At this time, the moving image file β is read from the storage medium, and the encoded data of the first time (moving image file β) and the encoded data of the second time are multiplexed for each frame to generate a moving image file of 60 frames / second. In step S1411, the recording / playback unit 151 records a moving image file of 60 frames / second in the storage medium 152. When the second follow-up development reaches the end of the scene and is completed, the moving image file β may be deleted from the storage medium 152.

なお、動画圧縮部142での高能率符号化処理においては1回目の追いかけ現像で生成される動画ファイルβと、2回目以降の追いかけ現像で生成される符号化データとをフレーム毎に多重可能な符号化とする必要がある。フレーム内符号化(イントラ符号化)を用いることで、フレーム毎に独立して符号化がされ、フレーム間相互の符号化データに依存が生じないため、上記の1回目と2回目の符号化データの多重を行う事が可能である。   In the high-efficiency encoding process in the moving image compression unit 142, the moving image file β generated by the first follow-up development and the encoded data generated by the second and subsequent follow-up development can be multiplexed for each frame. It needs to be encoded. By using intra-frame coding (intra coding), coding is performed independently for each frame, and there is no dependency on the coded data between the frames. Therefore, the first and second coded data described above are used. Can be multiplexed.

また、フレーム間予測符号化(インター符号化)を用いる場合は、予測符号化におけるフレームの参照先が既に処理済みのフレームとなるように符号化モード及び参照先フレームを選定する。こうすることで、上記の1回目と2回目の符号化データの多重を行う事が可能である。この場合の符号化モードの選定例を図16用いて説明する。   When inter-frame predictive coding (inter-coding) is used, the coding mode and the reference frame are selected so that the reference destination of the frame in the predictive coding is already processed. In this way, the first and second encoded data can be multiplexed. An example of selecting an encoding mode in this case will be described with reference to FIG.

図16の例では図16(a)に示す1シーンのフレームを処理対象とする。まず、図16(b)に示すように1回目の追いかけ現像での符号化ではフレーム0をフレーム内符号化ピクチャ(Iピクチャ)とし、それ以降のフレーム2、4、6・・・をフレーム間前方予測符号化ピクチャ(Pピクチャ)とする。そして図16(c)に示すように2回目の追いかけ現像での符号化ではフレーム1をフレーム内符号化ピクチャ(Iピクチャ)とし、それ以降のフレーム3、5、7・・・をフレーム間前方予測符号化ピクチャ(Pピクチャ)とする。予測方向は図中の矢印で示すように既に処理済みのフレームとなるため、1回目と2回目の符号化データの多重化が可能となる。   In the example of FIG. 16, the frame of one scene shown in FIG. First, as shown in FIG. 16B, in the first follow-up coding, frame 0 is an intra-frame coded picture (I picture), and subsequent frames 2, 4, 6,. Let it be a forward predictive coded picture (P picture). As shown in FIG. 16 (c), in the second follow-up coding, frame 1 is an intra-frame coded picture (I picture), and subsequent frames 3, 5, 7,. Let it be a predictive coded picture (P picture). Since the prediction direction is a frame that has already been processed as indicated by the arrows in the figure, the first and second encoded data can be multiplexed.

また、図16(d)に示すように1回目の追いかけ現像での符号化ではフレーム0をフレーム内符号化ピクチャ(Iピクチャ)とし、それ以降のフレーム2、4、6・・・をフレーム間前方予測符号化ピクチャ(Pピクチャ)とする。そして図16(e)に示すように2回目の追いかけ現像での符号化ではフレーム1、3、5をフレーム間双方向予測符号化ピクチャ(Bピクチャ)としている。予測方向は図中の矢印で示すように既に処理済みのフレームとなるため、1回目と2回目の符号化データの多重化が可能となる。   As shown in FIG. 16D, in the first follow-up coding, frame 0 is an intra-frame coded picture (I picture), and subsequent frames 2, 4, 6,. Let it be a forward predictive coded picture (P picture). As shown in FIG. 16E, in the second follow-up coding, frames 1, 3, and 5 are set as inter-frame bi-directional predictive coded pictures (B pictures). Since the prediction direction is a frame that has already been processed as indicated by the arrows in the figure, the first and second encoded data can be multiplexed.

このように動画の追いかけ現像においてはフレーム間引きして処理することで1回目の追いかけ現像に要する時間が短縮されるため、フレームレートは落ちるものの、撮影から高画質現像による動画ファイルの再生が可能となるまでの時間を短縮できる。   As described above, in the follow-up development of a moving image, the time required for the first follow-up development is shortened by processing by thinning out the frame, so that the movie file can be reproduced by shooting with high image quality, although the frame rate is lowered. The time to become can be shortened.

以上説明したように、本実施形態の撮像装置100は、撮影と撮影の合間や、再生モードやスリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態のときに追いかけ現像を実行する。そして、撮影時の簡易現像による動画ファイルを、RAWファイルを用いた高画質現像による動画ファイルに置き換えて行く。撮影時の簡易現像による動画ファイルも、RAWファイルを用いた高画質現像による動画ファイルに置き換えて行く。これにより、細部の確認表示や大画面モニターでの観賞など、高画質な再生の要求が与えられた場合であっても、その都度余計な現像処理が発生しなくなる。また、従来の動画ファイルと同様の一般的な環境における活用が可能となる。 <実施形態3>
次に、第3の実施形態として、撮像装置100の動画再生モードにおける動作について説明する。図17に、本実施形態の動画再生モードの処理に係るフローチャートを示す。図17のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。
As described above, the imaging apparatus 100 according to the present embodiment performs the follow-up development when the processing load of the apparatus is relatively low, waiting for a user operation such as a shooting mode or a playback mode or a sleep state. To do. Then, the moving image file by the simple development at the time of shooting is replaced with the moving image file by the high image quality development using the RAW file. A moving image file by simple development at the time of shooting is also replaced with a moving image file by high quality development using a RAW file. As a result, even when a request for high-quality reproduction is given, such as a detailed confirmation display or viewing on a large screen monitor, extra development processing does not occur each time. Further, it can be used in a general environment similar to a conventional moving image file. <Embodiment 3>
Next, as a third embodiment, an operation in the moving image reproduction mode of the imaging apparatus 100 will be described. FIG. 17 shows a flowchart relating to processing of the moving image playback mode of the present embodiment. The flowchart of FIG. 17 illustrates a processing procedure executed by controlling each processing block by the control unit 161. A program stored in a memory (ROM) included in the control unit 161 is stored in the memory (RAM). This is realized by expanding and executing by the CPU.

図17において動画再生モードの処理が開始されると、S1701にて制御部161が撮像装置100の処理負荷状況が低いか否かを判定する。負荷状況に応じた頻度で、処理負荷が低い場合はS1710にてアイドル状態へ遷移し、それ以外の場合はS1702へ進む。例えば、再生指示などのユーザー操作を待っている間は、処理負荷が低いため、S1710へ遷移する。ユーザーからの操作に応じて動画の再生が開始されている(再生中の状態を含む)場合はS1702へ進む。   In FIG. 17, when the processing of the moving image reproduction mode is started, the control unit 161 determines whether or not the processing load status of the imaging apparatus 100 is low in S1701. If the processing load is low at a frequency according to the load status, the process transits to the idle state in S1710, and otherwise the process proceeds to S1702. For example, while waiting for a user operation such as a reproduction instruction, the processing load is low, and the process proceeds to S1710. If the reproduction of the moving image has been started in accordance with the operation from the user (including the state during reproduction), the process proceeds to S1702.

S1702において、制御部161が、再生される動画について、ユーザーから再生の一時停止(ポーズ)の指示を受けているかを判定する。S1702で一時停止指示がなければ動画再生を継続するためにフローはS1703に進む。S1703からS1705までの処理は図11のS1104からS1106と同様であるので省略する。 S1702で一時停止指示を受けた場合、制御部161が、再生及び表示中の動画を一時停止状態にするともに、一時停止されたときの停止位置のフレームを静止画として表示させるために、S1720へフローを遷移させる。一時停止状態では、画像が静止して表示されるので、動いているときよりも細部の画質を視認しやすい状態になる。さらに、一時停止中には拡大表示の指示を受けやすいと考えられる。そこで、簡易現像されている動画ファイルよりも高画質な画像の表示を提供するため、S1720において再生中の動画ファイルに対応する動画のRAWファイルの、更に一時停止表示中のフレームに対応するRAW画像のフレームを記録再生部151が再生する。このとき再生対象となるRAWファイルが、バッファ部115にバッファリングされていればバッファ部115からRAWファイルを読み出し、バッファリングされていなければ記憶媒体152等からRAWファイルを読み出す。   In step S <b> 1702, the control unit 161 determines whether a playback pause (pause) instruction has been received from the user for the video to be played back. If there is no pause instruction in S1702, the flow proceeds to S1703 in order to continue the video playback. The processing from S1703 to S1705 is the same as S1104 to S1106 in FIG. When the pause instruction is received in S1702, the control unit 161 causes the moving image being played back and displayed to be paused, and displays the frame at the stop position when paused as a still image, to S1720. Transition the flow. In the paused state, the image is displayed in a static state, so that it becomes easier to see the detailed image quality than when moving. Further, it is considered that an enlarged display instruction is easily received during the pause. Therefore, in order to provide a display of a higher quality image than a moving image file that is simply developed, a RAW image of a moving image RAW file corresponding to the moving image file being played back in S1720 and further corresponding to a frame that is being paused displayed. The recording / reproducing unit 151 reproduces the frames. At this time, if the RAW file to be reproduced is buffered in the buffer unit 115, the RAW file is read from the buffer unit 115. If not, the RAW file is read from the storage medium 152 or the like.

S1721において、RAW伸張部114が、バッファ部115又は記憶媒体152等から読み出したRAWファイルを復号して伸張し、RAW画像を復元する。復元されたRAW画像は、S1722において高画質現像部112が高画質に現像処理する。撮像装置100は、このように動画のRAWファイルから高画質に現像された、一時停止表示中のフレームに対応する高画質静止画を、新たな静止画ファイルとしてキャプチャすることも可能である。S1723において、制御部161が、静止位置の表示画像を静止画としてキャプチャするユーザー指示を受けつけたか否かを判定する。S1723で静止画キャプチャ指示を受けつけないならば、動画のRAWファイルから高画質に現像された静止画像は表示制御部122に供給され、S1705において、表示制御部122が高画質に現像された静止画像の表示画像を表示部123へ出力する。この処理によって、動画ファイルによる一時停止表示中の画像は、RAW画像から高画質に現像された静止画像の表示画像によって置き換わる。   In S1721, the RAW decompression unit 114 decodes and decompresses the RAW file read from the buffer unit 115 or the storage medium 152, and restores the RAW image. In step S1722, the restored RAW image is developed with high image quality by the high image quality developing unit 112. The imaging apparatus 100 can also capture a high-quality still image that is developed from the moving image RAW file with high image quality and that corresponds to the frame that is being paused and displayed as a new still image file. In step S <b> 1723, the control unit 161 determines whether a user instruction for capturing the display image at the still position as a still image has been received. If the still image capture instruction is not accepted in S1723, the still image developed from the moving image RAW file with high image quality is supplied to the display control unit 122. In S1705, the display control unit 122 develops the still image developed to high image quality. Are output to the display unit 123. By this processing, the image being paused and displayed by the moving image file is replaced with the display image of the still image developed from the RAW image with high image quality.

S1723で静止画キャプチャの指示を受けつけたならば、S1722で高画質現像部112によって現像処理された画像情報が静止画圧縮部141に供給される。静止画圧縮部141は、S1724においてキャプチャによって取得した画像情報に対して高能率符号化処理(静止画圧縮)を施し、高画質の静止画ファイルを生成する。なお、静止画圧縮部141は、JPEGなどの公知の技術により圧縮処理を行う。   If an instruction to capture a still image is received in S1723, the image information developed by the high image quality development unit 112 is supplied to the still image compression unit 141 in S1722. The still image compression unit 141 performs high-efficiency encoding processing (still image compression) on the image information acquired by capture in S <b> 1724 to generate a high-quality still image file. Note that the still image compression unit 141 performs compression processing using a known technique such as JPEG.

S1725において、記録再生部151が高画質の静止画ファイルを記憶媒体152等に記録したら、フローはS1705に遷移する。動画のRAWファイルから高画質に現像された静止画像は表示制御部122に供給され、S1705において、表示制御部122が高画質に現像された静止画像の表示画像を表示部123へ出力する。この処理によって、動画ファイルによる一時停止表示中の画像は、RAW画像から高画質に現像された静止画像の表示画像によって置き換わる。   If the recording / playback unit 151 records a high-quality still image file in the storage medium 152 or the like in S1725, the flow moves to S1705. The still image developed from the moving image RAW file with high image quality is supplied to the display control unit 122, and the display control unit 122 outputs the display image of the still image developed with high image quality to the display unit 123 in S1705. By this processing, the image being paused and displayed by the moving image file is replaced with the display image of the still image developed from the RAW image with high image quality.

S1724で静止画圧縮部141によって生成される高画質の静止画ファイルは、図4(a)の静止画ファイル400の構成を成す。メタデータ部402には、RAWファイルのファイル名の情報404として、キャプチャの元となった動画のRAWファイルのファイル名が格納される。また、撮影メタデータ406として、静止画としてキャプチャされたフレームの時刻情報が格納され、動画のRAWファイルの対応するフレーム位置を指し示すことができる。また、動画のRAWファイルの対応するフレームを静止画として抽出して、対となる新たなRAWファイル410をこのとき作成しても良い。静止画のRAWファイルの生成に関しては、図3の静止画撮影モードのS310からS313で説明したような方法で、静止画ファイルとRAWファイルを構成する。   The high-quality still image file generated by the still image compression unit 141 in S1724 forms the configuration of the still image file 400 in FIG. The metadata section 402 stores the file name of the RAW file of the moving image that is the source of capture as the file name information 404 of the RAW file. Further, time information of a frame captured as a still image is stored as the shooting metadata 406, and the corresponding frame position of the moving image RAW file can be indicated. Alternatively, the corresponding frame of the moving image RAW file may be extracted as a still image, and a new RAW file 410 to be paired may be created at this time. Regarding the generation of the RAW file of the still image, the still image file and the RAW file are configured by the method described in S310 to S313 of the still image shooting mode in FIG.

なお、S1705の表示は1フレーム毎に行われ、動画再生中は、次のフレームの表示を行うため、フローはS1701に戻る。S1701において、アイドル状態S1710に遷移した場合は、上述した図14のフローチャートに従って処理される。   Note that the display in S1705 is performed for each frame, and the flow returns to S1701 to display the next frame during playback of the moving image. In S1701, when transitioning to the idle state S1710, processing is performed according to the flowchart of FIG. 14 described above.

このように、本実施形態の撮像装置100は、撮影時に記録された動画ファイルを用いて、遅延なく容易に動画を再生することができ、一時停止状態では、RAWファイルから高画質に現像した静止画を差し替えて表示できる。さらに、この高画質な静止画を容易に静止画ファイルとしてキャプチャすることができる。   As described above, the imaging apparatus 100 according to the present embodiment can easily reproduce a moving image without delay using a moving image file recorded at the time of shooting, and in a paused state, a still image developed from a RAW file with high image quality. The image can be replaced and displayed. Furthermore, this high-quality still image can be easily captured as a still image file.

また、図17のS1720以降の高画質現像は、撮影直後等の、まだ追いかけ現像が実行されていないタイミングで発生することが想定される。本実施形態では、撮影と撮影の合間や、再生モードやスリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態のときに動画の追いかけ現像が徐々に終了し、簡易現像による動画ファイルが自然と高画質現像による動画ファイルに置き換わる。そうして置き換えが進むに従って、S1720以降の高画質現像は発生するケースが減少し、常時速やかに高画質画像を出力できるようになり、操作性が一層高まっていく。 なお、動画再生モードにおいては、再生を開始するにあたり、記憶媒体152に記録されている動画ファイルを一覧表示するようにしてもよい。図18に示す1800は動画ファイルの一覧表示であり、表示部123に表示している例である。図中1801は6つの動画ファイルの各々1フレーム(例えば先頭フレームなど)を縮小した縮小画像である。1802は動画ファイルの各々の撮影された時間を表すタイムバーである。このタイムバーには併せて、上述した動画ファイルの現像ステータスを表現するようにしてもよい。   Further, it is assumed that the high-quality development after S1720 in FIG. 17 occurs at the timing when the follow-up development is not yet executed, such as immediately after shooting. In this embodiment, the chasing development of the video is gradually terminated when the processing load of the apparatus is relatively low, waiting for a user operation such as between shootings, playback mode, sleep mode, etc. The file is naturally replaced with a video file by high-quality development. As the replacement proceeds, the number of cases where high-quality image development after S1720 occurs decreases, and a high-quality image can be output promptly and the operability is further enhanced. In the moving image reproduction mode, a list of moving image files recorded on the storage medium 152 may be displayed when starting reproduction. Reference numeral 1800 shown in FIG. 18 is a list display of moving image files, which is an example displayed on the display unit 123. In the figure, reference numeral 1801 denotes a reduced image obtained by reducing one frame (for example, the first frame) of each of the six moving image files. Reference numeral 1802 denotes a time bar representing the time when each moving image file was shot. In addition to this time bar, the development status of the above-described moving image file may be expressed.

現像ステータスには、「簡易現像の状態」や、「先頭部分が高画質現像されている状態」、「フレーム間引き高画質現像がされている状態(前述の動画ファイルβの状態)」、「全てのフレームが高画質現像された状態」などがある。これらの現像ステータス情報をそれぞれ模様や色を変えて表示したり、現像処理の進捗状況に応じてタイムバーの長さを変えて表示したりしても良い。このような表示形態を採用することによって、高画質現像された動画ファイルはどれなのか、あるいは高画質現像の所用時間どれほどかをユーザーが把握しやすくなり、一層利便性が向上する。   The development status includes “simple development state”, “the top part is in high-quality development”, “frame thinning-out high-quality development (the state of the aforementioned video file β)”, “all” "The state of the high-quality developed frame". These development status information may be displayed with different patterns and colors, or may be displayed with the time bar length changed according to the progress of development processing. By adopting such a display form, it becomes easier for the user to know which moving image file has been developed with high image quality or how long it takes to perform high image quality development, thereby further improving convenience.

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

Claims (15)

画像処理装置であって、
RAW画像を現像処理する第1の現像手段と、
前記現像処理されたRAW画像を圧縮符号化して第1の画像ファイルを生成する圧縮手段と、
前記RAW画像を圧縮しRAWファイルを生成するRAW圧縮手段と、
前記第1の画像ファイルと前記RAWファイルとを記憶媒体に記録する記録手段と、
前記RAWファイルを伸張してRAW画像を生成する伸張手段と、
前記伸張により得られたRAW画像に対し、前記第1の現像手段が行う前記現像処理よりも処理負荷の高い現像処理を行う第2の現像手段と、
前記記憶媒体から前記第1の画像ファイル又は前記RAWファイルから得られる動画を再生する再生手段と
を備え、
前記画像処理装置が所定の動作状態のときに、前記RAWファイルに含まれる複数のフレームの一部を前記伸張手段が伸張し、前記第2の現像手段が該伸張により得られたRAW画像について前記処理負荷の高い現像処理を実行し、
前記再生手段が、前記動画を再生するときに、前記動画に対応する前記複数のフレームの一部では、前記第2の現像手段によって得られたRAW画像からの現像画像を再生し、その他の部分では前記第1の画像ファイルから得られた現像画像を再生することを特徴とする画像処理装置。
An image processing apparatus,
First developing means for developing a RAW image;
Compression means for compression-encoding the developed RAW image to generate a first image file;
RAW compression means for compressing the RAW image and generating a RAW file;
Recording means for recording the first image file and the RAW file on a storage medium;
Decompression means for decompressing the RAW file to generate a RAW image;
A second developing unit that performs a developing process with a higher processing load on the RAW image obtained by the expansion than the developing process performed by the first developing unit;
Playback means for playing back the moving image obtained from the first image file or the RAW file from the storage medium,
When the image processing apparatus is in a predetermined operation state, the expansion unit expands a part of a plurality of frames included in the RAW file, and the second developing unit extracts the RAW image obtained by the expansion. Execute development processing with high processing load,
When the reproducing unit reproduces the moving image, a part of the plurality of frames corresponding to the moving image reproduces a developed image from the RAW image obtained by the second developing unit, and the other part. An image processing apparatus for reproducing a developed image obtained from the first image file.
前記第2の現像処理手段は、前記第1の画像ファイルの生成に使用されたRAW画像のうち、所定部分のRAW画像について前記処理負荷の高い現像処理を実行することを特徴とする請求項1に記載の画像処理装置。   2. The second development processing unit executes the development processing with a high processing load on a RAW image of a predetermined portion of the RAW images used for generating the first image file. An image processing apparatus according to 1. 前記所定部分のRAW画像は、前記第1の画像ファイルの生成に使用されたRAW画像のうち先頭から所定期間に含まれるRAW画像であることを特徴とする請求項2に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the RAW image of the predetermined portion is a RAW image included in a predetermined period from the top of the RAW images used for generating the first image file. 前記所定期間は経過時間に応じて増加し、最終的には前記第1の画像ファイルの全部の期間となることを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the predetermined period increases in accordance with an elapsed time, and finally becomes the entire period of the first image file. 前記第1の画像ファイルを復号して再生動画を生成する復号手段と、
前記再生動画を表示部に表示させる表示制御手段と、
を更に備えることを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。
Decoding means for decoding the first image file to generate a reproduced moving image;
Display control means for displaying the reproduced moving image on a display unit;
The image processing apparatus according to claim 1, further comprising:
前記所定のRAW画像は、前記第1の画像ファイルの生成に使用されたRAW画像のうち2n番目(nは整数)のRAW画像であり、
前記圧縮手段は、前記第2の現像処理手段が現像処理した前記2n番目のRAW画像についてイントラ符号化、又は、インター符号化による符号化処理に基づく圧縮符号化を実行して第3の画像ファイルを生成し、
前記記録手段は、前記第3の画像ファイルを前記記憶媒体に更に記録し、
前記インター符号化では処理済みのイントラ符号化されたピクチャ及び前方予測にインター符号化されたピクチャを参照することを特徴とする請求項2に記載の画像処理装置。
The predetermined RAW image is a 2n-th (n is an integer) RAW image among the RAW images used to generate the first image file.
The compression unit executes a compression encoding based on an encoding process based on an intra encoding or an inter encoding for the 2n-th RAW image developed by the second development processing unit, and performs a third image file. Produces
The recording means further records the third image file on the storage medium,
The image processing apparatus according to claim 2, wherein the inter coding refers to a processed intra-coded picture and a picture inter-coded for forward prediction.
前記2n番目のRAW画像について前記第3の画像ファイルが生成された後に、
前記第2の現像処理手段は、前記第1の画像ファイルの生成に使用されたRAW画像のうち2n+1番目(nは整数)のRAW画像について前記処理負荷の高い現像処理を更に実行し、
前記圧縮手段は、前記第2の現像処理手段が現像処理した前記2n+1番目のRAW画像についてイントラ符号化、又は、インター符号化による符号化処理に基づく圧縮処理を実行し、前記第3の画像ファイルと多重して第4の画像ファイルを生成し、
前記記録手段は、前記第4の画像ファイルを前記第3の画像ファイルに上書きして前記記憶媒体に更に記録し、
前記2n+1番目のRAW画像についての前記インター符号化では、該2n+1番目のRAW画像に基づく処理済みのイントラ符号化されたピクチャ及び前方予測にインター符号化されたピクチャを参照することを特徴とする請求項6に記載の画像処理装置。
After the third image file is generated for the 2n-th RAW image,
The second development processing means further executes the development processing with a high processing load on the 2n + 1th RAW image (n is an integer) among the RAW images used to generate the first image file,
The compression means executes a compression process based on an encoding process based on intra coding or inter coding on the 2n + 1-th RAW image developed by the second development processing means, and performs the third image file. To generate a fourth image file,
The recording means overwrites the third image file with the fourth image file and further records the file on the storage medium;
The inter coding for the 2n + 1 th RAW image refers to a processed intra coded picture based on the 2n + 1 th RAW image and a picture inter coded for forward prediction. Item 7. The image processing apparatus according to Item 6.
前記2n番目のRAW画像について前記第2の画像ファイルが生成された後に、
前記第2の現像処理手段は、前記第1の画像ファイルの生成に使用されたRAW画像のうち2n+1番目(nは整数)のRAW画像について前記処理負荷の高い現像処理を更に実行し、
前記圧縮手段は、前記第2の現像処理手段が現像処理した前記2n+1番目のRAW画像についてインター符号化による符号化処理に基づく圧縮処理を実行し、前記第3の画像ファイルと多重して第4の画像ファイルを生成し、
前記記録手段は、前記第4の画像ファイルを前記第3の画像ファイルに上書きして前記記憶媒体に更に記録し、
前記2n+1番目のRAW画像についての前記インター符号化では、前記第3の画像ファイルに含まれるイントラ符号化されたピクチャ及び前方予測にインター符号化されたピクチャを参照する双方向予測による符号化ピクチャを生成することを特徴とする請求項6に記載の画像処理装置。
After the second image file is generated for the 2n-th RAW image,
The second development processing means further executes the development processing with a high processing load on the 2n + 1th RAW image (n is an integer) among the RAW images used to generate the first image file,
The compression means performs a compression process based on an encoding process by inter-coding on the 2n + 1-th RAW image developed by the second development processing means, and multiplexes with the third image file to obtain a fourth Generate an image file of
The recording means overwrites the third image file with the fourth image file and further records the file on the storage medium;
In the inter coding for the 2n + 1th RAW image, an encoded picture by bi-directional prediction that refers to an intra-coded picture and a picture that has been inter-coded for forward prediction included in the third image file. The image processing apparatus according to claim 6, wherein the image processing apparatus is generated.
前記第1の画像ファイルは動画ファイルであって、
前記第1の画像ファイルを復号して再生動画を生成する復号手段と、
前記再生動画を表示部に表示させる表示制御手段と、
前記画像処理装置のユーザーからの操作指示を受け付ける操作手段と
を更に備え、
前記表示部に前記再生動画が表示されている場合に、前記操作手段が一時停止の操作指示を受け付けた場合に表示を一時停止し、前記第2の現像手段は、一時停止に応じて前記表示部に表示されている画像に対応するRAW画像について前記処理負荷の高い現像処理を実行し、
前記表示制御手段は、一時停止された前記再生動画に替えて、前記第2の現像手段により現像処理されたRAW画像を前記表示部に表示させることを特徴とする請求項1に記載の画像処理装置。
The first image file is a moving image file,
Decoding means for decoding the first image file to generate a reproduced moving image;
Display control means for displaying the reproduced moving image on a display unit;
Operation means for receiving an operation instruction from a user of the image processing apparatus,
When the playback moving image is displayed on the display unit, the display is paused when the operation unit receives a pause operation instruction, and the second developing unit displays the display according to the pause. Executing the development processing with a high processing load on the RAW image corresponding to the image displayed in the section,
2. The image processing according to claim 1, wherein the display control unit causes the display unit to display a RAW image developed by the second developing unit in place of the paused reproduction moving image. 3. apparatus.
前記操作手段が、前記一時停止された前記再生動画に替えて表示されたRAW画像のキャプチャ指示を受け付けた場合に、前記圧縮手段が該RAW画像を圧縮符号化して静止画ファイルを生成し、
前記記録手段は、前記静止画ファイルを前記記憶媒体に記録することを特徴とする請求項9に記載の画像処理装置。
When the operation means receives an instruction to capture a RAW image displayed in place of the paused playback video, the compression means compresses and encodes the RAW image to generate a still image file,
The image processing apparatus according to claim 9, wherein the recording unit records the still image file on the storage medium.
表示部に前記記憶媒体に記録された画像ファイルを一覧表示させる表示制御手段を更に備え、
前記一覧表示における各画像ファイルの表示には、前記第1の現像手段及び第2の現像手段による現像処理に関連するステータス情報が含まれることを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。
A display control means for displaying a list of image files recorded in the storage medium on the display unit;
11. The display of each image file in the list display includes status information related to development processing by the first developing unit and the second developing unit. An image processing apparatus according to 1.
前記RAW圧縮手段により生成されたRAWファイルを保持するバッファを更に備え、
前記伸張手段は、伸張すべきRAWファイルが前記バッファに保持されている場合は該バッファに保持されたRAWファイルを伸張し、前記伸張すべきRAWファイルが前記バッファに保持されていない場合に前記記憶媒体から読み出されたRAWファイルを伸張することを特徴とする請求項1乃至11のいずれか1項に記載の画像処理装置。
A buffer for holding a RAW file generated by the RAW compression means;
The decompressing means decompresses the RAW file held in the buffer when the RAW file to be decompressed is held in the buffer, and stores the memory when the RAW file to be decompressed is not held in the buffer. The image processing apparatus according to claim 1, wherein the RAW file read from the medium is decompressed.
被写体像を撮像してRAW画像を生成する撮像手段と、
請求項1乃至12のいずれか1項に記載の画像処理装置と
を備える撮像装置。
Imaging means for capturing a subject image and generating a RAW image;
An imaging apparatus comprising the image processing apparatus according to claim 1.
RAW画像を現像処理する第1の現像手段と、
前記現像処理されたRAW画像を圧縮符号化して第1の画像ファイルを生成する圧縮手段と、
前記RAW画像を圧縮しRAWファイルを生成するRAW圧縮手段と、
前記第1の画像ファイルと前記RAWファイルとを記憶媒体に記録する記録手段と、
前記RAWファイルを伸張してRAW画像を生成する伸張手段と、
前記伸張により得られたRAW画像に対し、前記第1の現像手段が行う前記現像処理よりも処理負荷の高い現像処理を行う第2の現像手段と、
前記記憶媒体から前記第1の画像ファイル又は前記RAWファイルから得られる動画を再生する再生手段とを備える画像処理装置の制御方法であって、
前記画像処理装置が所定の動作状態のときに、
前記RAWファイルに含まれる複数のフレームの一部を前記伸張手段が伸張する工程と、
前記第2の現像手段が該伸張により得られたRAW画像について前記処理負荷の高い現像処理を実行する工程と、
前記再生手段が、前記動画を再生するときに、
前記動画に対応する前記複数のフレームの一部では、前記第2の現像手段によって得られたRAW画像からの現像画像を再生し、その他の部分では前記第1の画像ファイルから得られた現像画像を再生する工程と
を含むことを特徴とする画像処理装置の制御方法。
First developing means for developing a RAW image;
Compression means for compression-encoding the developed RAW image to generate a first image file;
RAW compression means for compressing the RAW image and generating a RAW file;
Recording means for recording the first image file and the RAW file on a storage medium;
Decompression means for decompressing the RAW file to generate a RAW image;
A second developing unit that performs a developing process with a higher processing load on the RAW image obtained by the expansion than the developing process performed by the first developing unit;
A control method of an image processing apparatus comprising: a playback unit that plays back a moving image obtained from the first image file or the RAW file from the storage medium,
When the image processing apparatus is in a predetermined operation state,
The decompression means decompressing a part of a plurality of frames included in the RAW file;
A step in which the second developing unit executes the development processing with a high processing load on a RAW image obtained by the expansion;
When the playback means plays back the video,
In a part of the plurality of frames corresponding to the moving image, a developed image from the RAW image obtained by the second developing unit is reproduced, and in the other part, a developed image obtained from the first image file is reproduced. A method for controlling the image processing apparatus.
コンピュータを請求項1乃至12のいずれか1項に記載の画像処理装置の各手段として機能させるためのプログラム。   A program for causing a computer to function as each unit of the image processing apparatus according to any one of claims 1 to 12.
JP2014064344A 2014-03-26 2014-03-26 Image processing apparatus, imaging apparatus, image processing apparatus control method, and program Expired - Fee Related JP6294725B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014064344A JP6294725B2 (en) 2014-03-26 2014-03-26 Image processing apparatus, imaging apparatus, image processing apparatus control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014064344A JP6294725B2 (en) 2014-03-26 2014-03-26 Image processing apparatus, imaging apparatus, image processing apparatus control method, and program

Publications (3)

Publication Number Publication Date
JP2015188130A true JP2015188130A (en) 2015-10-29
JP2015188130A5 JP2015188130A5 (en) 2017-05-18
JP6294725B2 JP6294725B2 (en) 2018-03-14

Family

ID=54430176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014064344A Expired - Fee Related JP6294725B2 (en) 2014-03-26 2014-03-26 Image processing apparatus, imaging apparatus, image processing apparatus control method, and program

Country Status (1)

Country Link
JP (1) JP6294725B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526423A (en) * 2019-02-05 2020-08-11 佳能株式会社 Information processing apparatus, information processing method, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008301286A (en) * 2007-05-31 2008-12-11 Canon Inc Imaging apparatus and control method thereof
JP2009147549A (en) * 2007-12-12 2009-07-02 Samsung Techwin Co Ltd Moving image recording apparatus, moving image reproducing apparatus and program
JP2013219589A (en) * 2012-04-10 2013-10-24 Canon Inc Image processing device, image processing method and program
JP2014017641A (en) * 2012-07-09 2014-01-30 Nikon Corp Electronic camera and image processing apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008301286A (en) * 2007-05-31 2008-12-11 Canon Inc Imaging apparatus and control method thereof
JP2009147549A (en) * 2007-12-12 2009-07-02 Samsung Techwin Co Ltd Moving image recording apparatus, moving image reproducing apparatus and program
JP2013219589A (en) * 2012-04-10 2013-10-24 Canon Inc Image processing device, image processing method and program
JP2014017641A (en) * 2012-07-09 2014-01-30 Nikon Corp Electronic camera and image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526423A (en) * 2019-02-05 2020-08-11 佳能株式会社 Information processing apparatus, information processing method, and storage medium
CN111526423B (en) * 2019-02-05 2022-12-23 佳能株式会社 Information processing apparatus, information processing method, and storage medium

Also Published As

Publication number Publication date
JP6294725B2 (en) 2018-03-14

Similar Documents

Publication Publication Date Title
JP6373056B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGE PROCESSING METHOD
JP6472253B2 (en) Image processing apparatus and control method thereof
EP3490250B1 (en) Image processing apparatus and image processing method
EP2974265B1 (en) Imaging apparatus and imaging apparatus control method
CN107079131B (en) Image processing apparatus and image processing method
JP5883052B2 (en) Image processing apparatus and control method thereof
JP6245819B2 (en) Image processing apparatus and image processing method
RU2655662C1 (en) Image processing apparatus and image processing method
JP2016005103A (en) Imaging apparatus and control method therefor
JP6294725B2 (en) Image processing apparatus, imaging apparatus, image processing apparatus control method, and program
JP6245818B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP6192319B2 (en) Image processing apparatus and image processing method
JP6452362B2 (en) Imaging apparatus and imaging method
JP6327939B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP6282136B2 (en) Imaging apparatus and control method thereof
JP2015119403A (en) Image recording apparatus, image recording method, program, and imaging apparatus
JP2014179851A (en) Imaging apparatus and control method of the same
JP2016063252A (en) Image processing device and image processing method
JP6376813B2 (en) Image processing apparatus, image processing method and program, and imaging apparatus
JP2016063254A (en) Imaging apparatus an imaging method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170327

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170327

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180111

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180119

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180216

R151 Written notification of patent or utility model registration

Ref document number: 6294725

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees