JP2016063254A - Imaging apparatus an imaging method - Google Patents

Imaging apparatus an imaging method Download PDF

Info

Publication number
JP2016063254A
JP2016063254A JP2014186873A JP2014186873A JP2016063254A JP 2016063254 A JP2016063254 A JP 2016063254A JP 2014186873 A JP2014186873 A JP 2014186873A JP 2014186873 A JP2014186873 A JP 2014186873A JP 2016063254 A JP2016063254 A JP 2016063254A
Authority
JP
Japan
Prior art keywords
image
unit
raw
raw image
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.)
Pending
Application number
JP2014186873A
Other languages
Japanese (ja)
Inventor
野澤 慎吾
Shingo Nozawa
慎吾 野澤
賢道 伊藤
Masamichi Ito
賢道 伊藤
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 JP2014186873A priority Critical patent/JP2016063254A/en
Priority to EP15839958.4A priority patent/EP3192250B1/en
Priority to PCT/JP2015/004172 priority patent/WO2016038808A1/en
Priority to RU2017112305A priority patent/RU2655662C1/en
Priority to US15/510,188 priority patent/US10360660B2/en
Priority to CN201580049252.6A priority patent/CN107079130B/en
Publication of JP2016063254A publication Critical patent/JP2016063254A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an apparatus for recording a RAW image capable of properly displaying at a time of photographing and displaying at a time of reproducing.SOLUTION: The imaging apparatus generates a RAW image by photographing a subject and generates a reduced RAW image by reducing the RAW image. The RAW image and the reduced RAW image are recorded in a recording medium. At a time of photographing, the reduced RAW image is developed for display, and, at a time of reproducing, the reduced RAW image recorded in the recording medium in accordance with an instruction of reproduction is obtained and developed. Each thereof is used for display.SELECTED DRAWING: Figure 1

Description

本発明は、撮像装置及び撮像方法に関し、特に、動画又は静止画のRAW画像を扱う技術に関する。   The present invention relates to an imaging apparatus and an imaging method, and more particularly to a technique for handling a RAW image of a moving image or a still image.

従来の撮像装置は、撮影動作時に、撮像センサーによって撮像された生の画像情報(RAW画像)をデベイヤー処理(デモザイク処理)し、輝度と色差から成る信号に変換して、各信号についてノイズ除去、光学的な歪補正、画像の適正化などの現像処理を行う。そして、撮像装置では、現像処理された輝度信号及び色差信号を圧縮符号化してから記録媒体に記録するのが一般的である。   A conventional imaging device performs debayer processing (demosaic processing) on raw image information (RAW image) captured by an imaging sensor during a shooting operation, converts the signal into a signal composed of luminance and color difference, and removes noise from each signal. Development processing such as optical distortion correction and image optimization is performed. In general, in an imaging apparatus, the developed luminance signal and color difference signal are compression-coded and then recorded on a recording 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 devices, imaging sensors have evolved, and the number of pixels per image has increased significantly. Also, the number of images that can be taken continuously per second tends to increase. For this reason, each processing amount for developing processing such as debayer processing for RAW images, noise removal, optical distortion correction, and the like is synergistically increased. Therefore, in order to perform real-time development processing in parallel with shooting, the imaging apparatus has Enormous circuits and power consumption are consumed. Nevertheless, in some cases, the imaging apparatus may not be able to exercise high imaging performance due to the occupation of the circuit due to the development process or 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 the above-mentioned Patent Document 1, the processing amount related to the development at the time of photographing may be reduced, but the recording is performed in a state where the image is not developed. Therefore, it is difficult to quickly reproduce and display the image. In addition, RAW images cannot be played back (developed) by other devices due to the uniqueness of data specific to RAW images and the uniqueness of each manufacturer, so the conventional RAW image recording method increases user convenience. There was a loss.

このように撮像装置が高い撮影パフォーマンスを行使し、なおかつ再生画像も高速に出画可能にするには、高コストの回路を搭載して高出力で駆動できるようにするか、RAW画像を記録して高速かつ簡便に再生できるようにしなければならない課題があった。とりわけコストの増大はユーザーメリットを低下させる要因となるので、撮像装置がRAW画像を取り扱いやすい状態で記録できるようにすることが重要となる。   In this way, in order for the imaging device to exercise high shooting performance and to reproduce images at high speed, it can be driven at high output by installing a high-cost circuit, or a RAW image can be recorded. In other words, there is a problem that must be able to be played back quickly and easily. In particular, an increase in cost causes a decrease in user merit, so it is important that the imaging apparatus can record a RAW image in an easy-to-handle state.

そこで、本発明の目的は、RAW画像を記録する装置において、撮影時の表示と、再生時の表示を好適に行える撮像装置及び撮像方法を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide an imaging apparatus and an imaging method that can suitably perform display during shooting and display during playback in an apparatus that records RAW images.

上記目的を達成するために、本発明の撮像装置は、被写体像を撮像してRAW画像を生成する撮像手段と、前記RAW画像を縮小して縮小RAW画像を生成する縮小手段と、撮影時に前記縮小RAW画像を取得して現像処理を行う第1の現像手段と、前記RAW画像及び前記縮小RAW画像をそれぞれ記録媒体に記録する記録手段と、前記記録媒体に記録された前記RAW画像の再生を指示する指示手段と、再生の指示に応じて、前記記録媒体に記録された前記縮小RAW画像を取得して現像処理を行う第2の現像手段と、前記第2の現像手段によって現像処理された再生画像を表示する表示処理手段とを備えることを特徴とする。   In order to achieve the above object, an imaging apparatus according to the present invention includes an imaging unit that captures a subject image to generate a RAW image, a reduction unit that reduces the RAW image to generate a reduced RAW image, and First developing means for acquiring a reduced RAW image and performing development processing, recording means for recording the RAW image and the reduced RAW image on a recording medium, and reproduction of the RAW image recorded on the recording medium An instruction means for instructing, a second developing means for obtaining the reduced RAW image recorded on the recording medium and performing a development process in response to a reproduction instruction, and the development process performed by the second developing means. And display processing means for displaying a reproduced image.

本発明によれば、RAW画像を記録する装置において縮小RAW画像も生成することで、撮影時の表示と、再生時の表示を好適に行えるようになる。   According to the present invention, a reduced RAW image is also generated in an apparatus for recording a RAW image, so that a display during photographing and a display during reproduction can be suitably performed.

本発明の第1の実施形態に係る画像処理装置の構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of an image processing apparatus according to a first embodiment of the present invention. 本実施形態に係る状態(モード)遷移図である。It is a state (mode) transition diagram concerning this embodiment. 本実施形態の撮影処理に係るフローチャートである。It is a flowchart concerning the photographing processing of the present embodiment. 本実施形態において記録される各ファイルの構成例を示す図である。It is a figure which shows the structural example of each file recorded in this embodiment. 本実施形態の現像処理に係るフローチャートである。It is a flowchart concerning the development processing of this embodiment. 本実施形態の再生処理に係るフローチャートである。It is a flowchart which concerns on the reproduction | regeneration processing of this embodiment. 本実施形態の表示処理の例を示す図である。It is a figure which shows the example of the display process of this embodiment. 編集装置(外部装置)の構成例を示すブロック図である。It is a block diagram which shows the structural example of an editing apparatus (external device). 本実施形態の編集処理及び編集実行に係るフローチャートである。It is a flowchart concerning the edit processing and edit execution of this embodiment. 本発明の第2の実施形態に係る画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus which concerns on the 2nd Embodiment of this invention. RAW画像の画素配列の説明図である。It is explanatory drawing of the pixel arrangement | sequence of a RAW image.

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

図1は、本発明の第1の実施形態に係る画像処理装置の構成例を示すブロック図である。図1では、本実施形態に係る画像処理装置として、撮像装置100を例に示す。撮像装置100は、被写体を撮像して得られた画像情報を記録媒体に記録するだけでなく、画像情報を記録媒体から再生し、現像処理して表示する機能や、画像情報を外部の装置やサーバ(クラウド)等と送受信して編集したりする機能を有する。従って、本実施形態に係る画像処理装置は、撮像装置と表現できるだけでなく、記録装置、再生装置、記録再生装置、通信装置、又は編集装置、或いは画像処理システム又は編集システム等とも表現することができる。   FIG. 1 is a block diagram illustrating a configuration example of an image processing apparatus according to the first embodiment of the present invention. In FIG. 1, an imaging apparatus 100 is shown as an example of the image processing apparatus according to the present embodiment. The imaging apparatus 100 not only records image information obtained by imaging a subject on a recording medium, but also reproduces the image information from the recording medium, develops and displays the information, and displays image information on an external device, It has a function of sending and receiving and editing with a server (cloud). Therefore, the image processing apparatus according to the present embodiment can be expressed not only as an imaging apparatus but also as a recording apparatus, a reproducing apparatus, a recording / reproducing apparatus, a communication apparatus, an editing apparatus, an image processing system, an editing system, or the like. it can.

図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 (not shown) 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 each unit 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.

本実施形態において、撮影又は撮影動作とは、被写体像を撮像し、撮像によって得られた画像を表示部123に表示する動作、又は、さらにその画像をファイルとして所定の記録媒体に記録するまでの動作を意味する。   In the present embodiment, the photographing or photographing operation is an operation of capturing a subject image and displaying an image obtained by the imaging on the display unit 123, or further recording the image as a file on a predetermined recording medium. Means movement.

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

撮像センサー部102は、画素毎に配置される赤、緑、青(RGB)のモザイクカラーフィルターを透過した光を電気信号に変換する。撮像センサーの解像度としては、例えば4K(800万画素以上)又は8K(3300万画素以上)に対応する。図11は、撮像センサー部102に配置されるカラーフィルターの一例を示す図であり、撮像装置100が扱う画像の画素配列を表している。図11に示すように、赤(R)、緑(G)、青(B)が画素毎にモザイク状に配置されていて、2×2の4画素につき赤1画素、青1画素、緑2画素を1セットにして規則的に並べられた構造となっている。撮像センサー部102によって変換された電気信号は、赤(R)、緑(G)、青(B)の各成分を含む。なお、緑(G)は、位置毎に異なる2種類の緑(G0、G1)の成分として扱うこともできる。このような画素の配置は、一般にベイヤ―配列と呼ばれる。   The image sensor unit 102 converts light transmitted through a red, green, and blue (RGB) mosaic color filter arranged for each pixel into an electrical signal. The resolution of the imaging sensor corresponds to, for example, 4K (8 million pixels or more) or 8K (33 million pixels or more). FIG. 11 is a diagram illustrating an example of a color filter arranged in the imaging sensor unit 102, and illustrates a pixel array of an image handled by the imaging apparatus 100. As shown in FIG. 11, red (R), green (G), and blue (B) are arranged in a mosaic pattern for each pixel, and for 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. The electrical signal converted by the imaging sensor unit 102 includes red (R), green (G), and blue (B) components. Green (G) can also be treated as a component of two types of green (G0, G1) that differ for each position. Such an arrangement of pixels is generally called a Bayer array.

撮像センサー部102によって変換された電気信号は、センサー信号処理部103によって画素の修復処理が施される。修復処理には、撮像センサー部102における欠落画素や信頼性の低い画素の値に対し、周辺画素値を用いて修復対象の画素を補間したり、所定のオフセット値を減算したりする処理が含まれる。なお、修復処理の一部又は全部が、この時点で行われずに、後段の現像時に行われるよう変更しても良い。   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. It should be noted that a part or all of the repair processing may be changed to be performed at the subsequent development stage without being performed at this point.

本実施形態では、センサー信号処理部103から出力される画像情報を、生(未現像)の画像を意味するRAW画像情報(以降、RAW画像)と称す。RAW画像は、効率的に記録するためにRAW圧縮部113に供給されて圧縮を施される。また、RAW画像は表示や再生を効率的に行う目的からRAW縮小部109によってそのサイズが縮小される。RAW縮小部109は、入力されたRAW画像を例えばHDサイズ(200画素相当)にリサイズする。以降、RAW縮小部109によって縮小されたRAW画像を縮小RAW画像と称す。   In the present embodiment, the image information output from the sensor signal processing unit 103 is referred to as RAW image information (hereinafter, RAW image) meaning a raw (undeveloped) image. The RAW image is supplied to the RAW compression unit 113 and compressed for efficient recording. The size of the RAW image is reduced by the RAW reduction unit 109 for the purpose of efficiently displaying and reproducing. The RAW reduction unit 109 resizes the input RAW image to, for example, an HD size (equivalent to 200 pixels). Hereinafter, the RAW image reduced by the RAW reduction unit 109 is referred to as a reduced RAW image.

縮小RAW画像は、現像部110内のライブビュー現像部111へ供給され、撮影時の表示(ライブビュー)に用いるために現像処理が施される。また、縮小RAW画像は、簡易再生或いは編集時のプロキシに用いるためにRAW圧縮部113にも供給される。縮小RAW画像は、RAW画像同様に、効率的に記録するためにRAW圧縮部113によって圧縮を施されてから記録される。さらに、縮小RAW画像は、評価値算出部105にも供給される。   The reduced RAW image is supplied to the live view developing unit 111 in the developing unit 110 and subjected to development processing for use in display (live view) at the time of shooting. The reduced RAW image is also supplied to the RAW compression unit 113 for use in proxy for simple reproduction or editing. Similar to the RAW image, the reduced RAW image is recorded after being compressed by the RAW compression unit 113 for efficient recording. Further, the reduced RAW image is also supplied to the evaluation value calculation unit 105.

ここで現像部110について詳細に説明する。現像部110は、撮影時にライブビュー用の現像を行うライブビュー現像部111(第1の現像部)と、非撮影時に高画質な現像を行う高画質現像部112(第2の現像部)とを有し、それらの出力を選択するスイッチ部121を含んで構成される。ライブビュー現像部111は、縮小RAW画像を撮影と並行してリアルタイムに現像する能力を備え、高画質現像部112は、縮小RAW画像よりも大きい縮小前のRAW画像を非リアルタイムに高精細に現像する能力を備える。本実施形態では、ライブビュー現像を簡易現像または表示用現像と表現し、高画質現像を要求に応じたタイミングで実行される本現像又は再生用現像と表現することもできる。   Here, the developing unit 110 will be described in detail. The development unit 110 includes a live view development unit 111 (first development unit) that performs development for live view during shooting, and a high-quality development unit 112 (second development unit) that performs high-quality development during non-shooting. And includes a switch unit 121 that selects the output thereof. The live view developing unit 111 has a capability of developing a reduced RAW image in real time in parallel with photographing, and the high image quality developing unit 112 develops a RAW image before reduction which is larger than the reduced RAW image with high definition in non-real time. With the ability to In the present embodiment, live view development can be expressed as simple development or display development, and high-quality development can be expressed as main development or reproduction development executed at a timing according to a request.

高画質現像部112は、RAW画像又は縮小RAW画像に対してデベイヤー処理(デモザイク処理)、即ち色補間処理を施し、輝度と色差(や原色)の信号に変換し、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化する所謂現像処理を行う。また、ライブビュー現像部111は、縮小RAW画像に対してデベイヤー処理(デモザイク処理)、即ち色補間処理を施し、輝度と色差(や原色)の信号に変換し、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化する所謂現像処理を行う。   The high image quality developing unit 112 performs debayer processing (demosaic processing), that is, color interpolation processing, on the RAW image or the reduced RAW image, converts the signal into luminance and color difference (or primary color) signals, and converts noise included in each signal. A so-called development process is performed to correct the image by removing and correcting the optical distortion. In addition, the live view development unit 111 performs debayer processing (demosaic processing) on the reduced RAW image, that is, color interpolation processing, converts the signal into luminance and color difference (or primary color) signals, and removes noise included in each signal. Then, so-called development processing for correcting optical distortion and optimizing the image is performed.

高画質現像部112は、ライブビュー現像部111よりも各々の処理を高精度に行うものである。高精度であるため、ライブビュー現像部111よりも高画質な現像済画像が得られるが、一方で処理負荷が大きくなってしまう。そこで、本実施形態の高画質現像部112は、再生時に現像処理を行ったり、撮影後のアイドル期間に現像処理を行ったりすることが可能な構成になっている。このように高画質現像を撮影時ではなく、撮影後又は再生時に行うようにすることで、回路規模や消費電力の増大(ピーク)を低く抑えることができる。他方、ライブビュー現像部111は、高画質現像部112よりも画質は低いものの、撮影中に高速に現像処理を行えるよう、高画質現像よりも現像に係る処理量が少なくなるように構成されている。ライブビュー現像部111の処理負荷は小さいので、動画や静止画のライブビュー撮影時に、撮影動作と並行してフレーム毎のリアルタイム現像が行える。   The high image quality developing unit 112 performs each process with higher accuracy than the live view developing unit 111. Since it is highly accurate, a developed image with higher image quality than that of the live view developing unit 111 can be obtained, but on the other hand, the processing load increases. Therefore, the high image quality developing unit 112 of the present embodiment is configured to be able to perform development processing during reproduction or to perform development processing during an idle period after shooting. As described above, by performing high-quality development not at the time of photographing but after photographing or at the time of reproduction, an increase (peak) in circuit scale and power consumption can be suppressed to a low level. On the other hand, the live view development unit 111 has a lower image quality than the high image quality development unit 112, but is configured so that the processing amount related to development is smaller 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 live view developing unit 111 is small, real-time development can be performed for each frame in parallel with the shooting operation during live view shooting of a moving image or a still image.

スイッチ部121は、操作部162によりユーザーから指示された操作内容や実行中の動作モードに応じた制御に従って、制御部161によって切り替えられる。また、スイッチ部121の切換に連動して、ライブビュー現像部111と高画質現像部112のうち、信号出力の対象となる一方だけが現像動作を行うようにし、他方に係る動作を停止する構成しても良い。なお、本実施形態では、現像部110の中にライブビュー現像部111と高画質現像部112が独立に存在する構成を示しているが、一つの現像部が動作モードを切り替えて、ライブビュー現像と高画質現像の処理を選択的に行っても良い。   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. Further, in conjunction with the switching of the switch unit 121, only one of the live view developing unit 111 and the high-quality developing unit 112 that is a signal output target performs a developing operation, and the operation related to the other is stopped. You may do it. In the present embodiment, a configuration in which the live view development unit 111 and the high quality development unit 112 exist independently in the development unit 110 is shown. However, one development unit switches the operation mode to perform live view development. And high-quality development processing may be selectively performed.

現像部110によって現像処理された画像情報は、表示処理部122によって所定の表示処理がなされた後、表示部123にて表示される。また、現像処理された画像情報は、映像出力端子124により、外部に接続された外部表示機器に出力することもできる。映像出力端子124は、例えばHDMI(登録商標)やSDIのような汎用インタフェースを含む。   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 processing unit 122. Further, the developed image information can be output to an external display device connected to the outside through the video output terminal 124. The video output terminal 124 includes a general-purpose interface such as HDMI (registered trademark) or SDI.

撮影時、現像部110によってライブビュー現像された画像情報は、評価値算出部105に供給される。評価値算出部105は、縮小RAW画像又は現像処理された画像情報からフォーカス状態や露出状態などの評価値を算出する。算出された評価値は、カメラ制御部104へ出力される。評価結果を示す表示用情報は表示処理部122に出力される。また、ライブビュー現像処理された画像情報は、認識部131にも供給される。認識部131は、画像情報中の顔や人物等の被写体情報を検出及び認識する機能を有する。例えば、画像情報によって表される画面内における顔を検出し、有る場合は顔の位置を示す情報をカメラ制御部104へ出力し、さらに顔などの特徴情報に基づいて特定の人物の認証などを行う。検出や認識結果を示す表示用情報は表示処理部122に出力される。   At the time of shooting, the image information developed by the live view by the developing unit 110 is supplied to the evaluation value calculating unit 105. The evaluation value calculation unit 105 calculates an evaluation value such as a focus state or an exposure state from the reduced RAW image or the developed image information. The calculated evaluation value is output to the camera control unit 104. Display information indicating the evaluation result is output to the display processing unit 122. Further, the image information subjected to the live view development processing is also supplied to the recognition unit 131. The recognition unit 131 has a function of detecting and recognizing subject information such as a face and a person in image information. For example, a face in the screen represented by the image information is detected, and if there is, information indicating the position of the face is output to the camera control unit 104, and authentication of a specific person is performed based on feature information such as the face. Do. Display information indicating the detection and recognition results is output to the display processing unit 122.

現像部110によって高画質現像された画像情報は、静止画圧縮部141又は動画圧縮部142に供給される。画像情報を静止画として圧縮する場合は、静止画圧縮部141を用いる。画像情報を動画として圧縮する場合は、動画圧縮部142を用いる。静止画圧縮部141及び動画圧縮部142は、それぞれ対象となる画像情報を高能率符号化(圧縮符号化)し、情報量が圧縮された画像情報を生成して、高画質現像済ファイル(静止画ファイル、又は、動画ファイル)に変換する。静止画圧縮はJPEGなどを、動画圧縮はMPEG−2、H.264、H.265などの標準符号化技術を用いることができる。   Image information developed with high image quality by the developing unit 110 is supplied to the still image compressing unit 141 or the moving image compressing 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 each perform high-efficiency encoding (compression encoding) on the target image information, generate image information whose information amount is compressed, and generate a high-quality developed file (still image). Image file or movie file). Still image compression is JPEG or the like, and moving image compression is MPEG-2 or H.264. H.264, H.C. Standard encoding techniques such as H.265 can be used.

RAW圧縮部113は、センサー信号処理部103からのRAW画像のデータと、RAW縮小部109からの縮小RAW画像のデータを、それぞれウエーブレット変換、量子化、エントロピー符号化(差分符号化等)などの技術を用いて高能率符号化する。RAW圧縮部113によって、高能率符号化により圧縮された状態のRAW画像のファイル(RAWファイル)と縮小RAW画像のファイル(縮小RAWファイル)とが生成される。RAWファイルと縮小RAWファイルは、まずバッファ部115(記憶媒体)に格納される。RAWファイルと縮小RAWファイルは、バッファ部115内に残しておいて再び読み出すことができるが、バッファ部115に格納された後、後述するように別の記録媒体に移動して記録する(バッファ部115から削除する)ようにしても良い。   The RAW compression unit 113 performs wavelet transform, quantization, entropy coding (difference coding, etc.) on the RAW image data from the sensor signal processing unit 103 and the reduced RAW image data from the RAW reduction unit 109, respectively. High-efficiency encoding using this technique. The RAW compression unit 113 generates a RAW image file (RAW file) and a reduced RAW image file (reduced RAW file) compressed by high-efficiency encoding. The RAW file and the reduced RAW file are first stored in the buffer unit 115 (storage medium). The RAW file and the reduced RAW file can remain in the buffer unit 115 and can be read again. However, after being stored in the buffer unit 115, the RAW file and the reduced RAW file are moved to another recording medium and recorded as described later (buffer unit). 115 may be deleted).

RAWファイルと縮小RAWファイル、並びに、上述の高画質現像済ファイル(静止画ファイルや動画ファイル)は、記録再生部151によって、記録媒体152に記録される。記録媒体152は、例えば内蔵式の大容量半導体メモリやハードディスク、或いは、着脱式のメモリカード等である。記録再生部151は、記録媒体152から各種ファイルをユーザーの操作に応じて読み出すこともできる。   The RAW file, the reduced RAW file, and the above-described high-quality developed file (still image file or moving image file) are recorded on the recording medium 152 by the recording / playback unit 151. The recording medium 152 is, for example, a built-in large-capacity semiconductor memory, a hard disk, or a removable memory card. The recording / playback unit 151 can also read various files from the recording medium 152 in accordance with a user operation.

また、記録再生部151は、通信部153を介してネットワーク接続される外部のストレージやサーバ、或いは、携帯情報端末やパーソナルコンピュータ(PC)等と、各種ファイルや関連情報を送受信することができる。通信部153は通信端子154を用いて、無線通信や有線通信によるインターネット経由や装置間の直接通信により外部装置にアクセス可能な構成を有する。これにより、記録再生部151は、RAWファイルと縮小RAWファイル、並びに、高画質現像済ファイル(静止画ファイルや動画ファイル)を、外部装置に記録させたり、記録させた情報を元に編集情報を生成させたりする指示を行うことができる。   The recording / playback unit 151 can transmit / receive various files and related information to / from an external storage or server connected to the network via the communication unit 153, or a personal digital assistant (PC). The communication unit 153 has a configuration in which an external device can be accessed using the communication terminal 154 via the Internet by wireless communication or wired communication or by direct communication between devices. As a result, the recording / playback unit 151 records the RAW file, the reduced RAW file, and the high-quality developed file (still image file or moving image file) on the external device or edit information based on the recorded information. It is possible to give an instruction to generate it.

撮像装置100の再生動作時、記録再生部151は、記録媒体152から、又は、通信部153を介して外部装置から、所望のファイルを取得して再生する。再生対象のファイルがRAWファイルや縮小RAWファイルであれば、記録再生部151は、取得されたRAWファイルをバッファ部115に格納する。再生対象のファイルが静止画ファイルであれば、記録再生部151は、取得された静止画ファイルを静止画伸張部143に供給する。再生対象のファイルが動画ファイルであれば、記録再生部151は、取得された動画ファイルを動画伸張部144に供給する。   During the playback operation of the imaging apparatus 100, the recording / playback unit 151 acquires and plays back a desired file from the recording medium 152 or from an external device via the communication unit 153. If the file to be played is a RAW file or a reduced 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伸張部114によって伸張されたRAW画像や縮小RAW画像は、高画質現像部112に供給されて、上述したように高画質現像処理を施される。   The RAW decompression unit 114 reads the RAW file or the reduced RAW file stored in the buffer unit 115, performs reverse conversion at the time of compression, and decompresses the compressed state. The RAW image and the reduced RAW image expanded by the RAW expansion unit 114 are supplied to the high image quality development unit 112 and subjected to the high image quality development processing as described above.

静止画伸張部143は、入力された静止画ファイルを復号して伸張し、静止画の再生画像として表示処理部122に供給する。動画伸張部144は、入力された動画ファイルを復号して伸張し、動画の再生画像として表示処理部122に供給する。   The still image decompressing unit 143 decodes and decompresses the input still image file, and supplies it to the display processing unit 122 as a playback image of the still image. The moving image decompression unit 144 decodes and decompresses the input moving image file, and supplies it to the display processing unit 122 as a reproduced image of the moving image.

次に、本実施形態の撮像装置100の動作モードに関して、図を用いて詳細に説明する。図2は、本実施形態に係る状態(モード)遷移図である。このようなモードの遷移は、操作部162からのユーザー操作指示や、制御部161の判断に応じて実行され、操作に応じて手動で遷移することもあれば、自動で遷移することもある。図2のように、撮像装置100は、アイドル状態(200)を経由して5つのモード、静止画撮影モード(201)、静止画再生モード(202)、動画撮影モード(203)、動画再生モード(204)、編集モード(205)に適宜切り替わって動作する。   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 (mode) transition diagram according to the present embodiment. Such a mode transition 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 according to the operation, or may be automatically changed. As shown in FIG. 2, the imaging apparatus 100 includes five 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. (204) The operation is switched to the edit mode (205) as appropriate.

次に、撮像装置100の静止画撮影モード及び動画撮影モードに係る動作について説明する。図3に、本実施形態の撮影処理に係るフローチャートを示す。図3のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, operations related to the still image shooting mode and the moving image shooting mode of the imaging apparatus 100 will be described. FIG. 3 shows a flowchart according to the photographing process 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が停止の要否を判定し、撮影処理を停止するときはアイドル状態へ遷移し、そうでなければS302へ進む。なお、撮影モードであっても、所定時間操作入力の受付が無い場合や、次の撮影までに合間がある様な場合は、アイドル状態へ遷移(そして所定条件で復帰)するように制御しても良い。   In FIG. 3, when the still image or moving image shooting process is started, the control unit 161 determines whether or not it is necessary to stop in S301. When the shooting process is stopped, the control unit 161 shifts to an idle state. Proceed to Even in the shooting mode, if there is no operation input for a predetermined time or if there is an interval before the next shooting, control is performed to transition to the idle state (and return under a predetermined condition). Also good.

S302において、カメラ制御部104が、好適な条件で撮影を行うよう、光学部101や撮像センサー部102の動作を制御する。例えば、ユーザーのズームやフォーカスの指示に従って、光学部101に含まれるレンズが移動されたり、撮影画素数の指示に従って撮像センサー部102の読み出し領域が設定されたりする。また、後述の評価値算出部105や認識部131から供給される評価値の情報や被写体情報に基づいて、特定被写体へのフォーカス調整や追尾などの制御が行われる。さらにS302において、撮像センサー部102によって変換された電気信号に対して、センサー信号処理部103が画素の修復のための信号処理を施す。すなわち、センサー信号処理部103が、欠落画素や、信頼性の低い画素の値に対し、周辺画素値を用いて補間したり、所定のオフセット値を減算したりする。本実施形態では、S302の処理を終えて、センサー信号処理部103から出力される画像情報を、生(未現像)の画像を意味するRAW画像と称している。   In step S <b> 302, the camera control unit 104 controls the operations of the optical unit 101 and the image sensor unit 102 so that shooting is performed under suitable conditions. For example, the lens included in the optical unit 101 is moved in accordance with the user's zoom or focus instruction, or the readout area of the image sensor unit 102 is set in accordance with the 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. In step S302, the sensor signal processing unit 103 performs signal processing for pixel repair on the electrical signal converted by the imaging sensor unit 102. In other words, the sensor signal processing unit 103 interpolates using missing pixel values or subtracts a predetermined offset value for the values of missing pixels or pixels with low reliability. In the present embodiment, the image information output from the sensor signal processing unit 103 after finishing the processing of S302 is referred to as a RAW image meaning a raw (undeveloped) image.

S303において、RAW縮小部109が、上述したRAW画像から、縮小RAW画像を生成する。S304において、ライブビュー現像部111が、縮小RAW画像を現像処理(ライブビュー現像)する。このとき、制御部161が現像部110内のスイッチ部121を切り替えて、ライブビュー現像部111により現像処理された画像情報の出力を選択する。   In S303, the RAW reduction unit 109 generates a reduced RAW image from the above-described RAW image. In step S304, the live view development unit 111 performs development processing (live view development) on the reduced RAW image. At this time, the control unit 161 switches the switch unit 121 in the developing unit 110 and selects output of image information developed by the live view developing unit 111.

ライブビュー現像部111は、縮小RAW画像に対してデベイヤー処理(デモザイク処理)、即ち色補間処理を施し、輝度と色差(や原色)から成る信号へ変換して各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの現像処理を行う。ここで、ライブビュー現像部111が行う現像処理(簡易現像)について説明する。ライブビュー現像部111は、ノイズ除去や光学的な歪補正を限定的な処理に留めたり或いは省いたりすることで、現像の高速処理や簡易処理を実現している。ライブビュー現像部111が、縮小RAW画像を扱ったり、現像処理の機能を一部制限したりすることで、撮像装置100は、例えば200万画素の毎秒60コマというパフォーマンスの撮影を、小さい回路規模で少ない消費電力で実現することができる。   The live view development unit 111 performs debayer processing (demosaic processing), that is, color interpolation processing, on the reduced RAW image, converts it into a signal composed of luminance and color difference (or primary color), and removes noise included in each signal. Development processing such as correcting optical distortion and optimizing the image is performed. Here, the development processing (simple development) performed by the live view development unit 111 will be described. The live view development unit 111 realizes high-speed development processing and simple processing by limiting or eliminating noise removal and optical distortion correction to a limited process. When the live view developing unit 111 handles a reduced RAW image or partially restricts the function of the development processing, the imaging apparatus 100 can perform shooting with a performance of, for example, 60 frames per second of 2 million pixels, with a small circuit scale. Can be realized with low power consumption.

ライブビュー現像部111で現像処理された画像情報は、評価値算出部105に供給される。S305において、評価値算出部105は、画像情報に含まれる輝度値やコントラスト値などからフォーカス状態や露出状態などの評価値を演算によって取得する。なお、評価値算出部105は、ライブビュー現像前の縮小RAW画像を取得して、縮小RAW画像からも何らかの評価値を算出するようにしても良い。   The image information developed by the live view developing unit 111 is supplied to the evaluation value calculating unit 105. In step S <b> 305, the evaluation value calculation unit 105 acquires evaluation values such as a focus state and an exposure state by calculation from luminance values and contrast values included in the image information. Note that the evaluation value calculation unit 105 may acquire a reduced RAW image before live view development and calculate some evaluation value from the reduced RAW image.

また、ライブビュー現像部111で現像処理された画像情報は、認識部131に供給される。S306において、認識部131は、画像情報から被写体(顔など)の検出を行い、被写体情報を認識する。例えば、画像情報内における顔の有無や、その位置、特定の人物の認証などを行って、その結果を情報として出力する。   The image information developed by the live view developing 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 live view developing unit 111 is supplied to the display processing unit 122. In step S307, the display processing unit 122 forms a display image from the acquired image information, and outputs the display image to the display unit 123 or an external display device for display. The display image by the display unit 123 is used for live view display (display of a photographed through image) for assisting the user in appropriately framing the subject. The display image may be displayed on another display device such as an external television from the display processing unit 122 via the video output terminal 124. Furthermore, the display processing unit 122 uses the evaluation value information and the subject information output from the evaluation value calculation unit 105 and the recognition unit 131 to mark, for example, a focused area on the displayed image, A frame can also be displayed at the position of the recognized face.

S308において、制御部161は、ユーザーからの撮影指示(動画の場合は記録指示)の受信を判定し、指示があった場合は、S310へ進む。S308で指示が無い場合は、S301へ戻って、撮影(記録)の準備動作とライブビュー表示を繰り返す。   In S308, the control unit 161 determines reception of a shooting instruction (recording instruction in the case of a moving image) from the user. If there is an instruction, the process proceeds to S310. If there is no instruction in S308, the process returns to S301, and the shooting (recording) preparation operation and live view display are repeated.

S310において、上述した撮影指示に応答して、RAW圧縮部113が、撮影対象となった画像(動画の場合は連続した複数フレーム)に対応する縮小RAW画像の高能率符号化(縮小RAW圧縮)を行い、縮小RAWファイルを生成する。さらに、S311において、上述した撮影指示に応答して、RAW圧縮部113が、撮影対象となった画像(動画の場合は連続した複数フレーム)に対応するRAW画像の高能率符号化(RAW圧縮)を行い、RAWファイルを生成する。RAW圧縮部113が行う高能率符号化は、ウエーブレット変換や、エントロピー符号化などの公知の技術により処理されるものとするが、非可逆符号化でも可逆符号化でも良い。本実施形態では、RAWの圧縮を施しても、原画のRAW画像の品質を大きく損なわない、高画質ファイルとして復元可能なRAWファイルを生成する。   In S310, in response to the above-described shooting instruction, the RAW compression unit 113 performs high-efficiency encoding (reduced RAW compression) of a reduced RAW image corresponding to an image to be captured (a plurality of continuous frames in the case of a moving image). To generate a reduced RAW file. Furthermore, in S311, in response to the above-described shooting instruction, the RAW compression unit 113 performs high-efficiency encoding (RAW compression) of a RAW image corresponding to an image to be shot (a plurality of continuous frames in the case of a moving image). To generate a RAW file. The high-efficiency encoding performed by the RAW compression unit 113 is processed by a known technique such as wavelet transform or entropy encoding, but may be lossy encoding or lossless encoding. In the present embodiment, even if RAW compression is performed, a RAW file that can be restored as a high-quality file that does not significantly impair the quality of the original RAW image is generated.

S312において、縮小RAWファイルがバッファ部115に記録される。また、S313において、RAWファイルがバッファ部115に記録される。いずれのファイルもバッファ部115に記録された後、記録再生部151によって後段の記録媒体に記録されるタイミングは、その時であっても、それ以降であっても良い。縮小RAWファイルとRAWファイルの少なくともバッファ部115への記録が完了すると、フローはS301に戻る。   In S <b> 312, the reduced RAW file is recorded in the buffer unit 115. In S313, the RAW file is recorded in the buffer unit 115. After any file is recorded in the buffer unit 115, the recording / reproducing unit 151 may record the recording on the subsequent recording medium at that time or after that. When the recording of the reduced RAW file and the RAW file to at least the buffer unit 115 is completed, the flow returns to S301.

このように、本実施形態に係る撮像装置100は、撮影時、静止画や動画の撮影指示(記録指示)に応答して、RAWファイルを生成する。撮影時のそれ以外の期間では、ライブビュー現像された画像の表示による撮影スタンバイとなる。RAWファイルは、センサー信号処理部103から供給される画像情報を大きく損なわない高画質ファイルであるが、このファイルの生成に現像処理を必要としない。そのため、撮影時に画像の画素数や連写のスピードを高めながらも、小規模な回路によって少ない消費電力でRAWファイルを記録することが可能である。   As described above, the imaging device 100 according to the present embodiment generates a RAW file in response to a still image or moving image shooting instruction (recording instruction) during shooting. In other periods during shooting, the camera is in shooting standby by displaying an image subjected to live view development. 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 during shooting.

次に、本実施形態に係る各種ファイルの構造について説明する。図4は、本実施形態において記録される各ファイルの構成例を示す図である。図4(a)は縮小RAWファイル、図4(b)はRAWファイル、図4(c)は、高画質現像済ファイルを示す。   Next, the structure of various files according to this embodiment will be described. FIG. 4 is a diagram illustrating a configuration example of each file recorded in the present embodiment. 4A shows a reduced RAW file, FIG. 4B shows a RAW file, and FIG. 4C shows a high-quality developed file.

図4(a)に示す縮小RAWファイル400は、記録再生部151によって、例えば記録媒体152の所定の記録エリアに記録される。縮小RAWファイル400は、ヘッダ部401、メタデータ部402、圧縮データ部403から成る。ヘッダ部401には、このファイルが縮小RAWファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部403には、高能率符号化された縮小RAW画像の圧縮データが含まれている。なお、動画の縮小RAWファイルの場合は、音声の圧縮データも含まれている。   The reduced RAW file 400 shown in FIG. 4A is recorded in, for example, a predetermined recording area of the recording medium 152 by the recording / playback unit 151. The reduced RAW 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 in a reduced RAW file format. The compressed data portion 403 includes compressed data of a reduced RAW image that has been encoded with high efficiency. In the case of a reduced RAW file of moving images, compressed audio data is also included.

メタデータ部402には、この縮小RAWファイルと同時に生成された、対応するRAWファイルのファイル名等の識別情報404が含まれる。また、対応するRAWファイルから高画質現像されて得られた高画質現像済ファイルがある場合は、その識別情報407が格納される。また、この縮小RAW画像が既に現像されている場合は、その現像ステータスの情報405が含まれる。また、撮影時に評価値算出部105や認識部131で検知された評価値や被写体情報、及び、光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ406が含まれる。また、図示していないが、同時に生成されたRAWファイルが記録されている記録媒体の識別コードや、記録されているフォルダのパス情報、当該画像のサムネイルなどを更に含んでも良い。   The metadata unit 402 includes identification information 404 such as a file name of the corresponding RAW file generated at the same time as the reduced RAW file. If there is a high-quality developed file obtained by developing a high-quality image from the corresponding RAW file, the identification information 407 is stored. If the reduced RAW image has already been developed, the development status information 405 is included. Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131 at the time of shooting, and information at the time of shooting from the optical unit 101 and the image sensor unit 102 (for example, lens type identification information, sensor type identification) Shooting metadata 406 including information etc.). Although not shown, it may further include an identification code of a recording medium on which a simultaneously generated RAW file is recorded, path information of a recorded folder, a thumbnail of the image, 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 recording 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 compressed data of a RAW image that has been encoded with high efficiency. In the case of a moving image RAW file, compressed audio data is also included.

メタデータ部412には、このRAWファイルと同時に生成された、対応する縮小RAWファイルのファイル名等の識別情報414が含まれる。また、このRAW画像から高画質現像されて得られた高画質現像済ファイルがある場合は、その識別情報417が格納される。また、その高画質現像における現像ステータスの情報415が含まれる。また、撮影時に評価値算出部105や認識部131で検知された評価値や被写体情報、及び、光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ416が含まれる。また、図示していないが、同時に生成された縮小RAWファイルが記録されている記録媒体の識別コードや、記録されているフォルダのパス情報、当該画像のサムネイルなどを更に含んでも良い。或いはまた、当該RAWファイルと同時に生成された縮小RAWファイルの実データそのものをメタデータ化して、メタデータ部412に格納しても良い。さらに、当該RAWファイルに対応する高画質現像済ファイルの実データそのものをメタデータ化して、メタデータ部412に格納しても良い。   The metadata part 412 includes identification information 414 such as the file name of the corresponding reduced RAW file generated simultaneously with the RAW file. If there is a high-quality developed file obtained by high-quality development from this RAW image, the identification information 417 is stored. In addition, development status information 415 in the high-quality development is included. Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131 at the time of shooting, and information at the time of shooting from the optical unit 101 and the image sensor unit 102 (for example, lens type identification information, sensor type identification) Shooting metadata 416 including information etc.). Although not shown, it may further include an identification code of a recording medium on which a simultaneously generated reduced RAW file is recorded, path information of a recorded folder, a thumbnail of the image, and the like. Alternatively, the actual data itself of the reduced RAW file generated simultaneously with the RAW file may be converted into metadata and stored in the metadata unit 412. Further, the actual data itself of the high-quality developed file corresponding to the RAW file may be converted into metadata and stored in the metadata unit 412.

図4(c)に示す高画質現像済ファイル420は、記録再生部151によって、例えば記録媒体152の所定の記録エリアに記録される。高画質現像済ファイル420は、ヘッダ部421、メタデータ部422、圧縮データ部423から成る。ヘッダ部421には、このファイルが高画質現像済ファイルの形式であることを示す識別コードなどが含まれている。圧縮データ部423には、高画質現像済ファイルの静止画部分や動画部分の圧縮データが含まれている。なお、動画の場合は、音声の圧縮データも含まれている。   The high-quality developed file 420 shown in FIG. 4C is recorded in, for example, a predetermined recording area of the recording medium 152 by the recording / playback unit 151. The high-quality developed file 420 includes a header part 421, a metadata part 422, and a compressed data part 423. The header portion 421 includes an identification code indicating that this file is in a high-quality developed file format. The compressed data portion 423 includes compressed data of a still image portion and a moving image portion of a high-quality developed file. In the case of moving images, compressed audio data is also included.

メタデータ部422には、当該高画質現像済ファイルに対応する縮小RAWファイルのファイル名等の識別情報424が含まれる。また、当該高画質現像済ファイルに対応するRAWファイルのファイル名等の識別情報427が含まれる。また、当該高画質現像済ファイルの高画質現像時の現像ステータスの情報425が含まれる。また、撮影時に評価値算出部105や認識部131で検知された評価値や被写体情報、及び、光学部101や撮像センサー部102からの撮影時の情報(例えば、レンズ種別識別情報、センサー種別識別情報など)を含む撮影メタデータ426が含まれる。また、図示していないが、対応するRAWファイルや縮小RAWファイルが記録されている記録媒体の識別コードや、記録されているフォルダのパス情報、当該画像のサムネイルなどを更に含んでも良い。   The metadata portion 422 includes identification information 424 such as a file name of a reduced RAW file corresponding to the high-quality developed file. Further, identification information 427 such as a file name of a RAW file corresponding to the high-quality developed file is included. Further, development status information 425 at the time of high-quality development of the high-quality developed file is included. Also, evaluation values and subject information detected by the evaluation value calculation unit 105 and the recognition unit 131 at the time of shooting, and information at the time of shooting from the optical unit 101 and the image sensor unit 102 (for example, lens type identification information, sensor type identification) Shooting metadata 426 including information). Although not shown, it may further include an identification code of a recording medium in which a corresponding RAW file or reduced RAW file is recorded, path information of a recorded folder, a thumbnail of the image, and the like.

上述した本実施形態に係る各種ファイルの構造は一例であり、DCFやEXIFなどの標準規格と共通性を有する構成であっても良い。なお、DCFとは、Design rule for Camera File systemの意味であり、EXIFとは、Exchangeable Image File formatの意味である。或いは、AVCHD、MXFなどの標準規格と共通性を有する構成であっても良い。なお、AVCHDとは、Advanced Video Codec High Definitionの意味であり、MXFとは、Material eXchange Formatの意味である。   The structure of the various files according to this embodiment described above is an example, and a configuration having commonality with standards such as DCF and EXIF may be used. Note that DCF means Design rule for Camera File system, and EXIF means Exchangeable Image File format. Alternatively, a configuration having commonality with standards such as AVCHD and MXF may be used. AVCHD means Advanced Video Codec High Definition, and MXF means Material eXchange Format.

次に、撮像装置100の高画質現像処理の一例について説明する。図5は、本実施形態の現像処理に係るフローチャートである。図5のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, an example of high image quality development processing of the imaging apparatus 100 will be described. FIG. 5 is a flowchart relating to the development 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において、アイドル状態のときに、制御部161が、ユーザーの設定により「追いかけ現像」を行うか否かを判定し(S501)、追いかけ現像を行わない場合はそのままフローは終了(リターン)となり、追いかけ現像を行う場合はS520に遷移する。   In FIG. 5, in the idle state, the control unit 161 determines whether or not to perform “follow-up development” according to the user setting (S501). If the follow-up development is not performed, the flow ends (returns) as it is. If the chase development is performed, the process proceeds to S520.

本実施形態に係る「追いかけ現像」とは、撮影動作を終えた後、バッファ部115又は記録媒体152等に記録されたRAWファイルを読出して、そのRAW画像に高画質現像を施し、高画質現像済画像ファイルを生成する処理を意味する。先行して記録されたRAWファイルを追いかけるように現像処理するので追いかけ現像と呼ぶ。本実施形態に係る追いかけ現像の対象となるRAWファイルは、静止画と動画の両方を対象として良いが、以下では静止画を例に説明する。   The “chase development” according to the present embodiment is a method of reading a RAW file recorded in the buffer unit 115 or the recording medium 152 after the photographing operation, performing high-quality development on the RAW image, and developing high-quality development. This means processing for generating a completed image file. Since development processing is performed so as to follow the previously recorded RAW file, it is called follow-up development. The RAW file that is the target of the chase development according to the present embodiment may be both a still image and a moving image. However, a still image will be described below as an example.

上述したように、記録されたRAWファイルは、センサー信号処理部103から供給される画像情報を大きく損なわない高品質を有するが、現像前のデータであるため、再生表示や印刷に即時対応できず、要求時にRAW現像のための時間を要してしまう。また、RAWはJPEGなどのように広く普及したファイルではないため、RAWファイルを扱える再生環境も限定されてしまう。そこで、本実施形態の追いかけ現像が有効な機能となる。本実施形態では、追いかけ現像が実行されると、既に記録されているRAWファイルを読出して、高画質現像部112によって高画質に現像処理を行い、生成される高画質現像済の静止画ファイルを記録媒体152等へ記録する。そして、このような追いかけ現像を、撮影と撮影の合間や、再生モードの待機中や、スリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態(アイドル中)において実行させる。追いかけ現像は手動で発動させても良いが、制御部161が自動的に所定状態のバックグラウンドで実行させるように設計すると良い。このように構成することにより、その後に画像の細部の確認表示や印刷など、高画質な画像の再生の要求が生じたとしても、その都度現像処理(再生出力)による遅れが発生せず、また、従来の静止画ファイルと同様の一般的な操作環境における使用が可能となる。   As described above, the recorded RAW file has a high quality that does not significantly impair the image information supplied from the sensor signal processing unit 103, but cannot be immediately applied to reproduction display or printing because it is data before development. , It takes time for RAW development when requested. In addition, since RAW is not a widely spread file such as JPEG, the playback environment that can handle RAW files is also limited. Therefore, the chasing development of this embodiment is an effective function. In the present embodiment, when the follow-up development is executed, a RAW file that has already been recorded is read out, and a high-quality development process is performed by the high-quality development unit 112, and a high-quality developed still image file that is generated is read out. Recording is performed on the recording medium 152 or the like. Then, such chasing development is executed in a state where the processing load of the apparatus is relatively low (idle) between shootings, during standby in a reproduction mode, or in waiting for a user operation such as a sleep state. The follow-up development may be manually activated, but it is preferable that the control unit 161 is designed to automatically execute in the background in a predetermined state. With this configuration, even if a request for reproducing a high-quality image such as confirmation display or printing of details of the image thereafter occurs, a delay due to development processing (reproduction output) does not occur each time. Thus, it can be used in a general operation environment similar to a conventional still image file.

図5のS520において、制御部161が、対象となるRAWファイルについて追いかけ現像が処理済みか未処理かを判定する。判定の方法は、例えば高画質現像済ファイルを作成済かどうか、RAWファイル410内の識別情報などから判断することが考えられる。或いはRAWファイル410の中の現像ステータスの情報415を参照し、同様に判定しても良い。或いは、一連のRAWファイルに対して、現像処理の実施状態を示すテーブルファイルを別に用意して判定しても良い。   In S520 of FIG. 5, the control unit 161 determines whether the follow-up development has been processed or not processed for the target RAW file. As a determination method, for example, it is conceivable to determine whether or not a high-quality developed file has been created, and identification information in the RAW file 410. Alternatively, the same determination may be made with reference to the development status information 415 in the RAW file 410. Alternatively, it may be determined by preparing a separate table file indicating the execution status of the development processing for a series of RAW files.

制御部161によって、対象となる全てのRAWファイルについて追いかけ現像が処理済みと判断されれば、そのままフローは終了(リターン)となり、撮像装置100はアイドル状態に復帰する。追いかけ現像が未処理のRAWファイルがあれば、S521に遷移する。S521において、追いかけ現像が未処理のRAWファイルが、バッファ部115にバッファリングされていればS523に進み、バッファリングされていなければ、S522として、対応するRAWファイルを記録媒体152等から読み出す。記録媒体152等から読み出されたRAWファイルは、バッファ部115によって一時保持される。   If the control unit 161 determines that the follow-up development has been processed for all target RAW files, the flow ends as it is (return), and the imaging apparatus 100 returns to the idle state. If there is a raw file that has not been subjected to the follow-up development, the process proceeds to S521. In S521, if the RAW file that has not been subjected to the follow-up development is buffered in the buffer unit 115, the process proceeds to S523, and if not buffered, the corresponding RAW file is read from the recording medium 152 or the like in S522. The RAW file read from the recording medium 152 or the like is temporarily held by the buffer unit 115.

バッファ部115は、撮影された順番が新しい画像から優先的に保持されるように、データが更新される。すなわち、過去に撮影された画像から順にバッファから取り除かれる。こうすることにより、直近に撮影された画像は常にバッファに保持されているので、S522をスキップし、高速に処理できる。さらに、直前に撮影された画像から時刻を遡って、追いかけ現像を実行するようにすれば、バッファに保持されている画像から優先的に処理が完了できるため、処理の効率化が図れる。   The buffer unit 115 updates the data so that the shooting order is preferentially held from the new image. That is, images taken in the past are sequentially removed from the buffer. By doing this, since the most recently captured image is always held in the buffer, S522 can be skipped and processing can be performed at high speed. Furthermore, if the follow-up development is executed by tracing back the time taken from the immediately preceding 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画像を復元する。S524において、高画質現像部112が、復元されたRAW画像に対して高画質現像処理を実施し、スイッチ部121を経由して表示処理部122や静止画圧縮部141に高画質現像済画像を出力する。このとき、撮像装置100が、後から現像された画像を表示できる状態であれば、表示部123によって表示画像を表示しても良い。   In S523, the RAW decompression unit 114 decompresses the buffered RAW file read from the buffer unit 115 or the recording medium 152, and restores the RAW image. In step S <b> 524, the high-quality development unit 112 performs high-quality development processing on the restored RAW image, and the high-quality developed image is displayed on the display processing unit 122 and the still image compression unit 141 via the switch unit 121. Output. At this time, if the imaging device 100 can display an image developed later, the display unit 123 may display the display image.

高画質現像部112は、RAW画像をデベイヤー処理(デモザイク処理)、即ち色補間処理を施し、輝度と色差(や原色)から成る信号へ変換して、各信号に含まれるノイズを除去、光学的な歪を補正し、画像を適正化するなどの現像処理を行う。高画質現像部112で生成される現像処理済みの画像のサイズ(画素数)は、撮像センサー部102から読出されたフルサイズのまま、或いはユーザー設定されたサイズとなるので、200万画素程度を扱うライブビュー現像の画像よりも格段に高品質となる。高画質現像部112はライブビュー現像部111よりも各々の処理が高精度であるため、より高画質な現像画像が得られるが、一方で、処理負荷が大きくなってしまう。本実施形態の高画質現像部112は、撮影と並行したリアルタイムの現像処理を避け、時間をかけて現像処理可能としたことで、回路規模や消費電力の増大を抑える構成となっている。   The high image quality developing unit 112 performs debayer processing (demosaic processing), that is, color interpolation processing on the RAW image, converts it into a signal composed of luminance and color difference (or primary color), removes noise contained in each signal, and optically Corrective distortion is corrected and the image is optimized. The size (number of pixels) of the developed image generated by the high image quality developing unit 112 is the full size read from the imaging sensor unit 102 or the size set by the user, so about 2 million pixels are set. The quality is much higher than that of live view development images. The high-quality image development unit 112 has higher accuracy in each process than the live view development unit 111, so that a developed image with higher image quality can be obtained. However, the processing load increases. 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又は動画圧縮部142に供給される。静止画の場合は、静止画圧縮部141が圧縮を担当する。S525において、静止画圧縮部141が、取得した高画質現像済画像に対して高能率符号化処理(静止画圧縮)を実施し、高画質現像済ファイル(静止画ファイル)を生成する。なお、静止画圧縮部141は、JPEGなどの公知の技術により圧縮処理を行う。S526において、記録再生部151が高画質現像済ファイルを記録媒体152等に記録する。   The image information developed by the high image quality developing unit 112 is supplied to the still image compressing unit 141 or the moving image compressing unit 142. In the case of a still image, the still image compression unit 141 takes charge of compression. In S525, the still image compression unit 141 performs high-efficiency encoding processing (still image compression) on the acquired high-quality developed image, and generates a high-quality developed file (still image file). Note that the still image compression unit 141 performs compression processing using a known technique such as JPEG. In S526, the recording / playback unit 151 records the high-quality developed file on the recording medium 152 or the like.

S527において、制御部161が、フローの途中でアイドル状態ではなくなったと判断したら、中断処理に移行し、そうでなければフローはS520に戻る。S520以降、追いかけ現像が未処理のRAW画像がある場合、その画像毎に同様の処理を繰り返して実行可能である。一方、S528において、追いかけ現像を中断するときには、制御部161が中断した時点の情報(中断対象RAWファイルや、現像完了又は未完了の識別情報など)を復帰用情報としてメモリや記録媒体152に格納しておく(中断処理)。そして、次回の追いかけ現像の際に、制御部161が上記復帰用情報を参照して、中断により途中となったRAWファイルから再開できるようにする。中断処理が終えたら、撮像装置100はアイドル状態に復帰する。   In S527, if the control unit 161 determines that the idle state is no longer in the middle of the flow, the process proceeds to an interruption process, and if not, the flow returns to S520. After S520, if there is a raw image that has not been subjected to the follow-up development, the same processing can be repeated for each image. On the other hand, in S528, when the follow-up development is interrupted, information at the time when the control unit 161 is interrupted (such as a RAW file to be interrupted and identification information indicating completion or incomplete development) is stored in the memory or the recording medium 152 as return information. (Suspend processing). Then, at the next follow-up development, the control unit 161 refers to the return information so that it can be resumed from the RAW file that has been interrupted. When the interruption process is completed, the imaging apparatus 100 returns to the idle state.

S526で記録される高画質現像済ファイルは、図4(c)に示すようなファイル構造である。メタデータ部422には、この高画質現像済ファイルの元となったRAWファイルのファイル名の情報などが書き込まれる。また、この高画質現像済ファイルが高画質現像部112によって高画質現像されたこととその現像内容を示す現像ステータスの情報425も記述される。また、元のRAWファイルのメタデータから抽出された、評価値算出部105や認識部131で検知された評価値や被写体情報、及び、光学部101や撮像センサー部102からの撮影時の情報を含む撮影メタデータ426がコピーされる。さらに、記録再生部151は、追いかけ現像の元となったRAWファイルとその縮小RAWファイルについても、それぞれのメタデータ部の各情報を、生成された高画質現像済ファイルに関する最新情報にて更新する。   The high-quality developed file recorded in S526 has a file structure as shown in FIG. In the metadata portion 422, information on the file name of the RAW file that is the source of the high-quality developed file is written. Also described is development status information 425 indicating that the high-quality developed file has been developed with high quality by the high-quality development unit 112 and the development content. 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 optical unit 101 and the image sensor unit 102 are displayed. The included shooting metadata 426 is copied. Furthermore, the recording / playback unit 151 also updates each piece of information in each metadata unit with the latest information on the generated high-quality developed file for the RAW file that is the source of the follow-up development and the reduced RAW file. .

記録再生部151は、高画質現像を経て、S526で記録される新たな高画質現像済ファイルには、元となったRAWファイルと類似又は関連付けられたファイル名を与えて記録すると識別が容易になる。例えば、ファイル名はほぼ同じでファイル名の一部(例えば拡張子や末尾の文字)のみを変更したファイルとして記録すると良い。   The recording / playback unit 151 can be easily identified by giving a file name similar or associated with the original RAW file to a new high-quality developed file recorded in S526 after high-quality development. Become. For example, the file names may be recorded as files that are substantially the same and only a part of the file name (for example, the extension or the last character) is changed.

このように、本実施形態の撮像装置100は、撮影と撮影の合間や、再生モードの待機中や、スリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態(アイドル中)のときに追いかけ現像を実行する。そして順次RAWファイルから高画質現像済ファイルを作成していく。こうすることにより、画像の細部の確認表示や印刷など、高画質な画像の再生の要求が与えられた場合であっても、その都度現像処理(再生出力)による遅れが発生せず、また、従来の静止画ファイルと同様の一般的な操作環境における使用が可能となる。   As described above, the imaging apparatus 100 according to the present embodiment is in a state where the processing load of the apparatus is relatively low (idle) between shootings, during standby in a playback mode, and in waiting for a user operation such as a sleep state. Sometimes chase development. Then, a high-quality developed file is sequentially created from the RAW file. In this way, even when a request for reproduction of a high-quality image such as confirmation display or printing of an image detail is given, a delay due to development processing (reproduction output) does not occur each time, It can be used in a general operation environment similar to a conventional still image file.

次に、撮像装置100の静止画再生モード及び動画再生モードに係る動作について説明する。図6に、本実施形態の再生処理に係るフローチャートを示す。図6のフローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, operations related to the still image reproduction mode and the moving image reproduction mode of the imaging apparatus 100 will be described. FIG. 6 shows a flowchart relating to the reproduction processing 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はアイドル状態に復帰する。再生処理を継続する場合は、フローはS602に遷移する。   In S601 of FIG. 6, the control unit 161 determines whether or not the reproduction process needs to be stopped. When stopping the reproduction process, the imaging apparatus 100 returns to the idle state. If the reproduction process is continued, the flow moves to S602.

S602において、制御部161は、再生処理の対象として縮小RAW画像ファイルを読みだして、縮小RAW画像を再生するか判断する。上述したように、RAWファイルは高解像度のため現像に時間を要し、高画質現像済ファイルは未生成の可能性があるので、制御部161は、再生時、RAW画像を他よりも優先的に再生するようにする。縮小RAW画像は画素数が200万程度あるので、ライブビュー現像のときと同様に高速処理ができ、再生時の急な要求に応じて即時に現像が可能であり、速やかな応答速度で再生画像の出画を実現できる。但し、縮小RAW画像は縮小処理を受けているために限定的な品質である。画像の大まかな確認としては有効であるが、画像の細部を確認したり、印刷したりする用途には十分ではない場合がある。そこで、撮像装置100では、以降記述するように用途に応じて更に他の画像の再生処理も実施される。   In step S602, the control unit 161 reads a reduced RAW image file as a reproduction process target, and determines whether to reproduce the reduced RAW image. As described above, since the RAW file has a high resolution, development takes time, and the high-quality developed file may not be generated. Therefore, the control unit 161 prioritizes the RAW image over the other during reproduction. To play. Since a reduced RAW image has about 2 million pixels, it can be processed at high speed in the same way as in live view development, can be developed immediately in response to a sudden request during reproduction, and can be reproduced at a rapid response speed. Can be realized. However, the reduced RAW image has a limited quality because it has undergone a reduction process. Although it is effective as a rough confirmation of an image, it may not be sufficient for the purpose of confirming details of an image or printing. Therefore, in the imaging apparatus 100, another image reproduction process is also performed depending on the application as described below.

縮小RAW画像を再生する場合、S620において、制御部161が、バッファ部115又は記録媒体152等から再生対象となる縮小RAWファイルを再生させる。そして、S621において、RAW伸張部114が再生された縮小RAWファイルから得られる圧縮された縮小RAW画像を伸張する。さらに、S622において、高画質現像部112が、伸張された縮小RAW画像を現像して再生画像を生成して、表示処理部122に供給する。なお、S622の縮小RAW画像の現像は、高画質現像部112が行うとしたが、ライブビュー現像部111が行っても良い。   When reproducing a reduced RAW image, in step S620, the control unit 161 causes the buffer unit 115, the recording medium 152, or the like to reproduce a reduced RAW file to be reproduced. In step S621, the RAW expansion unit 114 expands the compressed reduced RAW image obtained from the reproduced reduced RAW file. In step S <b> 622, the high image quality developing unit 112 develops the expanded reduced RAW image to generate a reproduced image, and supplies the reproduced image to the display processing unit 122. Note that the development of the reduced RAW image in S622 is performed by the high image quality development unit 112, but the live view development unit 111 may perform the development.

縮小RAW画像を再生しない場合、S603において、制御部161は、高画質現像済画像を再生するか判断する。高画質現像済画像を再生できるのは、上述の追いかけ現像が実施されているか、ユーザーの要求に応答して既にRAWファイルの再生による高画質現像が終えていることが条件となる。高画質現像済画像を再生する場合、S630において、制御部161が、記録媒体152等から再生対象となる高画質現像済ファイルを再生させる。そして、S631において、静止画伸張部143又は動画伸張部144が、再生された高画質現像済ファイルから得られる圧縮された高画質現像済画像を伸張して再生画像(静止画又は動画)を生成して、表示処理部122に供給する。   When the reduced RAW image is not reproduced, in step S603, the control unit 161 determines whether to reproduce the high-quality developed image. A high-quality developed image can be reproduced on the condition that the above-described chasing development has been performed or that high-quality development by reproduction of a RAW file has already been completed in response to a user request. When reproducing a high-quality developed image, in S630, the control unit 161 reproduces a high-quality developed file to be reproduced from the recording medium 152 or the like. In step S631, the still image expansion unit 143 or the moving image expansion unit 144 expands the compressed high-quality developed image obtained from the reproduced high-quality developed file to generate a reproduction image (still image or moving image). Then, the data is supplied to the display processing unit 122.

縮小RAW画像が再生されず、高画質現像済画像も再生されない場合、RAWファイルが再生される。ここで、本実施形態でRAWファイルが再生される使用環境の例を、図7を用いて説明する。図7は、本実施形態の表示処理の例を示す図である。図7(a)、(b)、(c)は、それぞれ別のタイミングでの画像表示の例である。   If the reduced RAW image is not reproduced and the high-quality developed image is not reproduced, the RAW file is reproduced. Here, an example of a usage environment in which a RAW file is played back in this embodiment will be described with reference to FIG. FIG. 7 is a diagram illustrating an example of display processing according to the present embodiment. FIGS. 7A, 7B, and 7C are examples of image display at different timings.

図7(a)の表示例700は、701に示す6つの画像を縮小して表示部123に縮小表示している例であり、この表示の状態を一覧表示とする。図7(b)の表示例710は、ある1つの画像711の全体を表示部123に表示している例であり、この表示の状態を通常表示とする。図7(c)の表示例720は、ある1つの画像の一部領域を拡大した画像721を表示部123に表示している例であり、この表示の状態を拡大表示とする。例えば、撮影した画像の詳細表示や部分抽出(トリミング)、或いはフォーカスの適否のチェックといった確認を行うような場合に、表示例720のように被写体像の一部を拡大表示する使われ方が想定される。   A display example 700 in FIG. 7A is an example in which the six images 701 are reduced and displayed on the display unit 123 in a reduced manner. The display state is a list display. 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 displayed on the display unit 123, and this display state is an enlarged display. For example, in the case where confirmation such as detailed display of a photographed image, partial extraction (trimming), or checking of appropriateness of focus is performed, a method of enlarging and displaying a part of a subject image as in display example 720 is assumed. Is done.

表示例700や710の状態のときは、縮小RAW画像から得られた再生画像の表示で解像度的に十分である。しかし、表示例720のように拡大表示する場合、縮小RAW画像の解像度では不足する(解像感の低下を招いてしまう)ので、高解像度を有するRAWファイルを再生して表示すると良い。例えば、このように再生画像の拡大表示を行うときに、フローはS604以降のRAWファイルの再生に遷移する。   In the case of the display examples 700 and 710, the display of the reproduced image obtained from the reduced RAW image is sufficient in terms of resolution. However, when the enlarged display is performed as in the display example 720, since the resolution of the reduced RAW image is insufficient (a reduction in resolution is caused), it is preferable to reproduce and display a RAW file having a high resolution. For example, when performing enlarged display of a playback image in this way, the flow transitions to playback of a RAW file after S604.

RAW画像を再生する場合、S604において、制御部161は、再生対象のRAWファイルがバッファ部115にバッファリングされているか判定する。RAWファイルがバッファリングされていればフローはS606に進み、バッファリングされていなければフローはS605に進む。S605において、制御部161が、記録媒体152等から再生対象となるRAWファイルを読み出させて、バッファ部115にバッファリングさせる。   When playing back a RAW image, in step S <b> 604, the control unit 161 determines whether the RAW file to be played is buffered in the buffer unit 115. If the RAW file is buffered, the flow proceeds to S606, and if not, the flow proceeds to S605. In step S <b> 605, the control unit 161 reads a RAW file to be played back from the recording medium 152 or the like and causes the buffer unit 115 to buffer the RAW file.

バッファ部115は、撮影モードで撮影された、新しい画像から優先的に保持されるように、データが更新される。すなわち、過去に撮影された画像から順にバッファから取り除かれる。こうすることにより、直前に撮影された画像は常にバッファに保持されているので、S605をスキップし、高速に表示に至れるようになる。   The buffer unit 115 updates the data so that the new image captured in the imaging 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が、バッファリングされているRAWファイルを取得して、当該RAWファイルから得られる圧縮されたRAW画像を伸張する。さらに、S607において、高画質現像部112が、伸張されたRAW画像を高画質現像して再生画像を生成して、表示処理部122に供給する。なお、撮像装置100は、S607の高画質現像によって、再生対象となったRAWファイルに対応する高画質現像ファイルも新たに作成可能である。   In step S606, the RAW decompression unit 114 obtains a buffered RAW file, and decompresses the compressed RAW image obtained from the RAW file. In step S <b> 607, the high image quality developing unit 112 generates a reproduced image by developing the expanded RAW image with high image quality, and supplies the reproduced image to the display processing unit 122. Note that the image capturing apparatus 100 can also newly create a high-quality development file corresponding to the RAW file to be reproduced by the high-quality development in S607.

S608において、表示処理部122が、再生対象に応じた何れかの再生画像を表示部123に出力して表示する。表示形態は、図7の各図に示すような形態となる。なお、表示処理部122が、映像出力端子124から表示画像を外部装置に出力することもできる。S608の表示が行われると、フローはS601に戻る。   In step S <b> 608, the display processing unit 122 outputs any reproduced image corresponding to the reproduction target to the display unit 123 and displays it. The display form is as shown in each figure of FIG. The display processing unit 122 can also output a display image from the video output terminal 124 to an external device. When the display of S608 is performed, the flow returns to S601.

なお、図6のS604以降のRAWファイルの再生は、まだ追いかけ現像が実行されていないタイミングで発生することが想定される。言い換えれば、高画質を要求される拡大表示の場合でも、高画質現像済ファイルが作成済であれば、RAWファイルを新たに現像しなくとも、高画質現像済画像を提供することができる。本実施形態では、撮影と撮影の合間や、再生モードの待機中や、スリープ状態などユーザー操作待ちの、比較的、装置の処理負荷が小さい状態(アイドル中)のときに追いかけ現像が実行される。また、ユーザー指示によるRAWファイルの再生時にも高画質現像済ファイルが作成可能である。そして順次RAWファイルから高画質現像済ファイルが作成される。そのようにして、前もって高画質現像が実施される程、拡大表示の要求時点での高画質現像は発生する頻度が減少するので、拡大表示に対してより速やかに高画質画像を出力できるようになり、操作性が一層高まっていくと期待される。   It is assumed that the reproduction of the RAW file after S604 in FIG. 6 occurs at a timing when the follow-up development is not yet executed. In other words, even in the case of enlarged display that requires high image quality, if a high-quality developed file has been created, a high-quality developed image can be provided without newly developing the RAW file. In this embodiment, follow-up development is executed when the processing load on the apparatus is relatively low (idle) between shootings, during standby in playback mode, or waiting for a user operation such as a sleep state. . In addition, a high-quality developed file can be created even when a RAW file is reproduced by a user instruction. Then, a high-quality developed file is created sequentially from the RAW file. In this way, the higher the high-quality development is performed in advance, the less frequently the high-quality development occurs at the point of time when the enlarged display is requested, so that a high-quality image can be output more quickly with respect to the enlarged display. Therefore, the operability is expected to increase further.

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

次に、撮像装置100の編集モードに係る動作について説明する。図8に編集処理を行う編集装置(外部装置)の構成例を示すブロック図を、図9に本実施形態の編集処理及び編集実行に係るフローチャートを示す。図9の各フローチャートは、制御部161によって、各処理ブロックを制御し実行される処理手順を図示したものであり、制御部161が有するメモリ(ROM)に格納されているプログラムをメモリ(RAM)に展開し、CPUが実行することにより実現される。   Next, an operation related to the editing mode of the imaging apparatus 100 will be described. FIG. 8 is a block diagram showing a configuration example of an editing device (external device) that performs editing processing, and FIG. 9 is a flowchart relating to editing processing and editing execution of the present embodiment. Each flowchart in FIG. 9 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 being expanded and executed by the CPU.

図8において、編集装置800は撮像装置100の外部装置であり、具体的には、外部のストレージやサーバ、或いは、携帯情報端末(タブレットやスマートフォン等)やパーソナルコンピュータ(PC)等である。編集装置800は、各種ファイルや関連情報を撮像装置100と送受信することができる。通信部802は通信端子801を用いて、無線通信や有線通信によるインターネット経由や装置間の直接通信により撮像装置100にアクセス可能な構成を有する。   In FIG. 8, an editing apparatus 800 is an external apparatus of the image capturing apparatus 100. Specifically, the editing apparatus 800 is an external storage or server, a portable information terminal (tablet, smartphone, etc.), a personal computer (PC), or the like. The editing device 800 can send and receive various files and related information to and from the imaging device 100. The communication unit 802 has a configuration in which the imaging device 100 can be accessed using the communication terminal 801 via the Internet by wireless communication or wired communication or by direct communication between devices.

編集処理時、或いは前もって、編集装置800は、通信部802を介してネットワーク接続された外部の撮像装置100から縮小RAWファイルを取得する。受信された縮小RAWファイルは、内部バス811を介して、記録媒体803に保存される。内部バス811は編集装置800内の各部と接続され、データバスやシステムバスとして利用される。   During the editing process or in advance, the editing apparatus 800 acquires a reduced RAW file from the external imaging apparatus 100 connected to the network via the communication unit 802. The received reduced RAW file is stored in the recording medium 803 via the internal bus 811. An internal bus 811 is connected to each unit in the editing apparatus 800 and is used as a data bus or a system bus.

編集処理は、縮小RAWファイルを伸張し、現像して得られる画像情報を用いて行われる。RAW伸張部804が、記録媒体803に保存された所望の縮小RAWファイルを読み出して、圧縮された状態の縮小RAW画像を伸張する。そして、RAW現像部805が、伸張された縮小RAW画像を現像処理する。縮小RAW画像から現像処理された画像は、表示部809によって表示される。   The editing process is performed using image information obtained by expanding and developing the reduced RAW file. The RAW expansion unit 804 reads a desired reduced RAW file stored in the recording medium 803 and expands the reduced RAW image in a compressed state. The RAW development unit 805 develops the expanded reduced RAW image. An image developed from the reduced RAW image is displayed on the display unit 809.

制御部808は、CPUと、当該CPUが実行するアプリケーションプログラムや制御プログラムを格納する不図示のメモリを含み、編集処理を制御する。編集処理は、制御部808によって実行される編集アプリケーションプログラムの制御下において、表示部809に表示された画像をユーザーによってモニタリングされて、編集指示を受けつけることによって実行される。ユーザーからの編集指示は、ユーザインタフェース部807から入力される。ユーザインタフェース部807は、例えばタッチパネルを用いた操作部、マウス、キーボード、専用又は汎用コンソール等と、編集用アプリケーションによる表示情報とを利用する。   The control unit 808 includes a CPU and a memory (not shown) that stores application programs and control programs executed by the CPU, and controls editing processing. The editing process is executed by the user monitoring the image displayed on the display unit 809 and receiving an editing instruction under the control of the editing application program executed by the control unit 808. An editing instruction from the user is input from the user interface unit 807. The user interface unit 807 uses, for example, an operation unit using a touch panel, a mouse, a keyboard, a dedicated or general-purpose console, and display information by an editing application.

ユーザインタフェース部807からの編集指示に従って、表示される縮小RAW画像に対して、トリミングや合成、動画の場合は、カットイン/カットアウトの指定などによる任意のシーン選択や、エフェクトの付加などが適用される。編集内容を受けて、編集情報生成部806が編集情報を生成する。編集情報は、縮小RAW画像から得られた画像に対して施された編集内容をデータ化したものであり、静止画又は動画の場合フレーム毎の編集適用の有無や編集内容が記述される。さらに当該編集情報に、編集処理が施された縮小RAW画像の実データを含んでも良い。このような編集情報は記録媒体803に記録されるとともに、撮像装置100からの要求に応じて撮像装置100に送信される。   In accordance with an editing instruction from the user interface unit 807, arbitrary scene selection or effect addition by applying cut-in / cut-out is applied to a reduced RAW image to be displayed in the case of trimming, synthesis, or moving image. Is done. In response to the editing content, the editing information generation unit 806 generates editing information. The editing information is data obtained by converting the editing content applied to the image obtained from the reduced RAW image, and in the case of a still image or a moving image, whether or not editing is applied for each frame and the editing content are described. Further, the editing information may include actual data of a reduced RAW image that has been subjected to editing processing. Such editing information is recorded on the recording medium 803 and transmitted to the imaging apparatus 100 in response to a request from the imaging apparatus 100.

次に、撮像装置100における編集処理、編集実行のフローについて、図9を用いて説明する。図9(a)は編集処理のフロー、(b)は編集実行のフローである。編集処理が開始されると、図9(a)のS901において、制御部161が編集処理の停止の要否を判断する。編集処理を停止する場合、撮像装置100はアイドル状態に復帰する。編集処理を継続する場合は、フローはS902に遷移する。   Next, the flow of editing processing and editing execution in the imaging apparatus 100 will be described with reference to FIG. FIG. 9A shows an editing process flow, and FIG. 9B shows an editing execution flow. When the editing process is started, the control unit 161 determines whether or not the editing process needs to be stopped in S901 of FIG. 9A. When the editing process is stopped, the imaging apparatus 100 returns to the idle state. When the editing process is continued, the flow moves to S902.

S902において、制御部161は、編集対象となるRAWファイルに対応する縮小RAWファイルを編集用データとして外部装置である編集装置800に送信する。そして、S903において、制御部161は、編集装置800に対して編集命令を発行する。編集命令は制御部808に送られ、編集装置800にとっての編集情報の生成指示となる。なお、本フローはS903の後、S901に戻る。   In step S902, the control unit 161 transmits a reduced RAW file corresponding to the RAW file to be edited to the editing apparatus 800, which is an external apparatus, as editing data. In step S <b> 903, the control unit 161 issues an editing command to the editing apparatus 800. The editing command is sent to the control unit 808 and serves as an editing information generation instruction for the editing device 800. In addition, this flow returns to S901 after S903.

上述の編集命令を受けて、編集装置800は、上述のとおり編集処理を行い、編集情報を生成する。編集装置800において編集情報の生成が終えていることを条件として、ユーザーの指示に応じて、制御部161は図9(b)の編集実行フローが開始可能となる。   In response to the editing command described above, the editing device 800 performs editing processing as described above to generate editing information. On the condition that the editing apparatus 800 has finished generating the editing information, the control unit 161 can start the editing execution flow of FIG.

編集の実行が開始されると、図9(b)のS911において、制御部161が編集実行の停止の要否を判断する。編集実行を停止する場合、撮像装置100はアイドル状態に復帰する。編集実行を継続する場合は、フローはS912に遷移する。   When execution of editing is started, the control unit 161 determines whether or not it is necessary to stop editing in S911 of FIG. 9B. When the execution of editing is stopped, the imaging apparatus 100 returns to the idle state. If the edit execution is to be continued, the flow moves to S912.

S912において、制御部161は、通信部153を用いて編集装置800から編集対象のRAWファイルに対応する編集情報を受信する。当該編集情報を参照して、S913として、制御部161は、受信した編集情報に記述された内容に従った編集又は再生を撮像装置100内のRAWファイル又は縮小RAWファイルに対して適用する。すなわち、編集装置800で行われた縮小RAW画像に対する編集内容が、撮像装置100内において、オリジナルのRAW画像又は縮小RAW画像に再現される。なお、本フローはS913の後、S911に戻る。このように編集実行されたRAW画像は、元のファイルを更新する形でファイル化して保存してもよいが、オリジナル画像と編集情報とをそれぞれ保存しておくことで、再生の都度オリジナルに対して編集情報を反映させて再生(編集)するようにしてもよい。   In step S <b> 912, the control unit 161 receives editing information corresponding to the RAW file to be edited from the editing apparatus 800 using the communication unit 153. With reference to the editing information, in step S913, the control unit 161 applies editing or reproduction according to the content described in the received editing information to the RAW file or the reduced RAW file in the imaging apparatus 100. That is, the editing content for the reduced RAW image performed by the editing apparatus 800 is reproduced in the imaging apparatus 100 as an original RAW image or a reduced RAW image. In addition, this flow returns to S911 after S913. The RAW image edited and executed in this way may be saved as a file by updating the original file. However, by saving the original image and the editing information, the original image is reproduced each time it is played back. Then, the editing information may be reflected and reproduced (edited).

このように縮小RAW画像を編集用データとして或いはRAW画像のプロキシとして利用して、外部装置を用いて編集を実施する構成としたことで編集の合理化や高性能化が図れるだけでなく、システム全体として編集処理にかかる負荷を軽減することもできる。   In this way, the reduced RAW image is used as editing data or as a proxy for the RAW image, and the configuration is such that editing is performed using an external device. This not only streamlines editing and improves performance, but also the entire system. As a result, the load on the editing process can be reduced.

(第2の実施形態)
図2は、本発明の第2の実施形態に係る画像処理装置の構成例を示すブロック図である。図2では、本実施形態に係る画像処理装置として、撮像装置1000を例に示す。撮像装置1000は、被写体を撮像して得られた画像情報を記録媒体に記録するだけでなく、画像情報を記録媒体から再生し、現像処理して表示する機能や、画像情報を外部の装置やサーバ(クラウド)等と送受信して編集したりする機能を有する。従って、本実施形態に係る画像処理装置は、撮像装置と表現できるだけでなく、記録装置、再生装置、記録再生装置、通信装置、又は編集装置、或いは画像処理システム又は編集システム等とも表現することができる。
(Second Embodiment)
FIG. 2 is a block diagram illustrating a configuration example of an image processing apparatus according to the second embodiment of the present invention. In FIG. 2, an imaging apparatus 1000 is shown as an example as an image processing apparatus according to the present embodiment. The imaging apparatus 1000 not only records image information obtained by imaging a subject on a recording medium, but also reproduces the image information from the recording medium, displays it by developing, and displays the image information on an external device or It has a function of sending and receiving and editing with a server (cloud). Therefore, the image processing apparatus according to the present embodiment can be expressed not only as an imaging apparatus but also as a recording apparatus, a reproducing apparatus, a recording / reproducing apparatus, a communication apparatus, an editing apparatus, an image processing system, an editing system, or the like. it can.

本実施形態に係る撮像装置1000において、上述した第1の実施形態に係る撮像装置100と同じ構成については、同じ符号を付して、その説明は省略する。   In the imaging apparatus 1000 according to the present embodiment, the same components as those of the imaging apparatus 100 according to the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.

図10において、撮像装置1000は、撮影部を成す撮像モジュール170と画像処理部を成す画像処理モジュール180を有し、撮像モジュール170と画像処理モジュール180とがバス107によって接続される。撮像モジュール170内での撮像によって得られたRAWデータ等は、バス107を通って画像処理モジュール180に供給される。撮像モジュール170は、撮像センサー部102、センサー信号処理部103、カメラ制御部104及び符号化部106を有する。画像処理モジュール180は、復号化部108、RAW縮小部109、現像部110、ライブビュー現像部111、高画質現像部112、スイッチ部121、RAW圧縮部113、RAW伸張部114及びバッファ部115を有する。さらに、画像処理モジュール180は、評価値算出部105、認識部131、表示処理部122、静止画圧縮部141、動画圧縮部142、静止画伸張部143、動画伸張部144、記録再生部151及び制御部161を有する。撮像装置1000は、その他、光学部101、表示部123、映像出力端子124、通信部153、通信端子154、及び、内蔵式或いは着脱式の記録媒体152を有する。   In FIG. 10, the imaging apparatus 1000 includes an imaging module 170 that forms an imaging unit and an image processing module 180 that forms an image processing unit, and the imaging module 170 and the image processing module 180 are connected by a bus 107. Raw data or the like obtained by imaging in the imaging module 170 is supplied to the image processing module 180 through the bus 107. The imaging module 170 includes an imaging sensor unit 102, a sensor signal processing unit 103, a camera control unit 104, and an encoding unit 106. The image processing module 180 includes a decoding unit 108, a RAW reduction unit 109, a development unit 110, a live view development unit 111, a high image quality development unit 112, a switch unit 121, a RAW compression unit 113, a RAW expansion unit 114, and a buffer unit 115. Have. Further, the image processing module 180 includes an evaluation value calculation unit 105, a recognition unit 131, a display processing unit 122, a still image compression unit 141, a moving image compression unit 142, a still image expansion unit 143, a moving image expansion unit 144, a recording / playback unit 151, and the like. A control unit 161 is included. In addition, the imaging apparatus 1000 includes an optical unit 101, a display unit 123, a video output terminal 124, a communication unit 153, a communication terminal 154, and a built-in or detachable recording medium 152.

本実施形態に係る撮像装置1000に関して、上述した第1の実施形態に係る撮像装置100と異なる構成について詳細に説明する。撮像モジュール170は内部に符号化部106を備える。これは、RAWデータが膨大なデータなため、バス107にて伝送する際に通信帯域を圧迫してしまうのを軽減するために、RAWデータを圧縮する目的によって存在する。符号化部106における符号化処理(圧縮処理)としては、例えば、DPCM(Differential Pulse Code Modulation)とゴロム(Golomb)符号化を用いる圧縮方法が適用できる。この方法は、DPCM処理された画素データについて、その画素データ同士の差分値をゴロム符号化して画素の情報量を削減する方法である。或いは、1次元DCT(Discrete Cosine Transform)を用いて画素データの不必要な高域成分を削除する圧縮方法でも良い。いずれも圧縮率は固定で動作させれば良いが、ユーザー指示や撮影モード等に応じて調整できるように設計しても良い。   Regarding the imaging apparatus 1000 according to the present embodiment, a configuration different from the imaging apparatus 100 according to the first embodiment described above will be described in detail. The imaging module 170 includes the encoding unit 106 inside. This is due to the purpose of compressing the RAW data in order to reduce the pressure on the communication band when it is transmitted through the bus 107 because the RAW data is enormous. As the encoding process (compression process) in the encoding unit 106, for example, a compression method using DPCM (Differential Pulse Code Modulation) and Golomb encoding can be applied. This method is a method for reducing the amount of pixel information by Golomb encoding the difference value between pixel data of DPCM-processed pixel data. Alternatively, a compression method that deletes unnecessary high frequency components of pixel data using a one-dimensional DCT (Discrete Cosine Transform) may be used. In any case, the compression rate may be fixed, but it may be designed so that it can be adjusted according to a user instruction, a shooting mode, or the like.

撮影時、撮像センサー部102によって被写体像から変換された画素データは、センサー信号処理部103によって画素の修復処理が施される。修復処理には、撮像センサー部102における欠落画素や信頼性の低い画素の値に対し、周辺画素値を用いて修復対象の画素を補間したり、所定のオフセット値を減算したりする処理が含まれる。なお、修復処理の一部又は全部が、この時点で行われずに、後段の現像時に行われるよう変更しても良い。   At the time of shooting, pixel data converted from the subject image 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. It should be noted that a part or all of the repair processing may be changed to be performed at the subsequent development stage without being performed at this point.

符号化部106が、センサー信号処理部103から供給された画素データを上述の方法によって符号化処理する。そして符号化処理によって圧縮された状態の画素データがバス107を介して画像処理モジュール180に伝送される。圧縮された画素データは、画像処理モジュール180内の入力部分に配置される復号化部108によって復号される。復号化部108は、前段の符号化部106の逆変換を行って圧縮された画素データを復号する。   The encoding unit 106 encodes the pixel data supplied from the sensor signal processing unit 103 by the method described above. Then, the pixel data compressed by the encoding process is transmitted to the image processing module 180 via the bus 107. The compressed pixel data is decoded by the decoding unit 108 arranged at the input part in the image processing module 180. The decoding unit 108 decodes the compressed pixel data by performing the inverse transform of the preceding encoding unit 106.

本実施形態では、符号化部106によって圧縮され、さらに復号化部108によって復号化された後の画素データを、生(未現像)の画像を意味するRAW画像と称す。一度圧縮を施されたRAW画像であっても、第1の実施形態と同様に高品位なRAW画像として扱うことができる。   In the present embodiment, the pixel data compressed by the encoding unit 106 and further decoded by the decoding unit 108 is referred to as a RAW image that means a raw (undeveloped) image. Even a RAW image that has been compressed once can be handled as a high-quality RAW image, as in the first embodiment.

その後RAW画像は、効率的に記録するために、RAW圧縮部113に供給されて再び圧縮を施される。また、RAW画像は表示や再生を効率的に行う目的からRAW縮小部109によってそのサイズが縮小される。RAW縮小部109は、入力されたRAW画像を例えばHDサイズ(200画素相当)にリサイズして縮小RAW画像を生成する。その後のRAW画像や縮小RAW画像の処理は、第1の実施形態と同様である。   Thereafter, the RAW image is supplied to the RAW compression unit 113 and compressed again in order to efficiently record. The size of the RAW image is reduced by the RAW reduction unit 109 for the purpose of efficiently displaying and reproducing. The RAW reduction unit 109 resizes the input RAW image to, for example, an HD size (equivalent to 200 pixels) to generate a reduced RAW image. Subsequent processing of RAW images and reduced RAW images is the same as in the first embodiment.

なお、画像処理モジュール180内で、圧縮されたRAW画像の伸張/復号化を行う点で共通する復号化部108とRAW伸張部114は、その一部又は全部の処理回路を共通の構成又は一体化された回路によって実現されても良い。   In the image processing module 180, the decoding unit 108 and the RAW expansion unit 114, which are common in terms of performing expansion / decoding of a compressed RAW image, have a common configuration or integration of some or all of the processing circuits. It may be realized by an integrated circuit.

本実施形態に係る撮像装置1000についての撮影処理、現像処理、再生処理、編集処理、編集実行の各処理手順、及び、作成される各種ファイルの構成は第1の実施形態と同様である。   Each processing procedure of imaging processing, development processing, reproduction processing, editing processing, and editing execution for the imaging apparatus 1000 according to the present embodiment and the configuration of various files to be created are the same as those in the first embodiment.

このように本実施形態によれば、第1の実施形態と同様の機能を実現できるとともに、撮像装置1000内部でのRAWデータの伝送効率を向上させることができる。   As described above, according to the present embodiment, the same function as that of the first embodiment can be realized, and the transmission efficiency of the RAW data in the imaging apparatus 1000 can be improved.

以上が第1及び第2の実施形態の説明であるが、本発明は、本発明の技術思想の範囲内において、上記実施形態に限定されるものではなく、対象となる回路形態により適時変更されて適応するべきものである。   The above is the description of the first and second embodiments. However, the present invention is not limited to the above embodiments within the scope of the technical idea of the present invention, and is changed as appropriate according to the target circuit form. Should be adapted.

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

100 撮像装置
101 光学部
102 撮像センサー部
103 センサー信号処理部
104 カメラ制御部
105 評価値算出部
109 RAW縮小部
110 現像部
111 ライブビュー現像部
112 高画質現像部
113 RAW圧縮部
114 RAW伸張部
115 バッファ部
121 スイッチ部
122 表示処理部
123 表示部
124 映像出力端子
131 認識部
141 静止画圧縮部
142 動画圧縮部
143 静止画伸張部
144 動画伸張部
151 記録再生部
152 記録媒体
153 通信部
154 通信端子
DESCRIPTION OF SYMBOLS 100 Imaging device 101 Optical part 102 Imaging sensor part 103 Sensor signal processing part 104 Camera control part 105 Evaluation value calculation part 109 RAW reduction part 110 Developing part 111 Live view developing part 112 High image quality developing part 113 RAW compression part 114 RAW expansion part 115 Buffer unit 121 Switch unit 122 Display processing unit 123 Display unit 124 Video output terminal 131 Recognition unit 141 Still image compression unit 142 Video compression unit 143 Still image expansion unit 144 Video expansion unit 151 Recording / playback unit 152 Recording medium 153 Communication unit 154 Communication terminal

Claims (7)

被写体像を撮像してRAW画像を生成する撮像手段と、
前記RAW画像を縮小して縮小RAW画像を生成する縮小手段と、
撮影時に前記縮小RAW画像を取得して現像処理を行う第1の現像手段と、
前記RAW画像及び前記縮小RAW画像をそれぞれ記録媒体に記録する記録手段と、
前記記録媒体に記録された前記RAW画像の再生を指示する指示手段と、
再生の指示に応じて、前記記録媒体に記録された前記縮小RAW画像を取得して現像処理を行う第2の現像手段と、
前記第2の現像手段によって現像処理された再生画像を表示する表示処理手段とを備えることを特徴とする撮像装置。
Imaging means for capturing a subject image and generating a RAW image;
Reduction means for reducing the RAW image to generate a reduced RAW image;
First developing means for acquiring the reduced RAW image at the time of shooting and performing development processing;
Recording means for recording the RAW image and the reduced RAW image on a recording medium,
Instruction means for instructing reproduction of the RAW image recorded on the recording medium;
A second developing means for acquiring the reduced RAW image recorded on the recording medium and performing a developing process in response to a reproduction instruction;
An image pickup apparatus comprising: display processing means for displaying a reproduced image developed by the second developing means.
前記第1の現像手段は、撮影された画像をリアルタイムに現像処理する表示用現像を行い、
前記第2の現像手段は、記録された画像を再生するために前記第1の現像手段よりも高画質な現像処理となる再生用現像を行うことを特徴とする請求項1に記載の撮像装置。
The first developing means performs display development for developing a photographed image in real time,
The imaging apparatus according to claim 1, wherein the second developing unit performs reproduction development, which is a development process with higher image quality than the first developing unit, in order to reproduce a recorded image. .
前記再生の指示に応じて、前記記録媒体に記録された前記RAW画像が現像済である場合は、当該RAW画像の現像済画像を再生させ、現像済でない場合は、前記縮小RAW画像を前記第2の現像手段によって現像して再生させる制御手段をさらに備えることを特徴とする請求項1又は2に記載の撮像装置。   If the RAW image recorded on the recording medium has been developed in accordance with the reproduction instruction, the developed image of the RAW image is reproduced, and if not, the reduced RAW image is converted to the first RAW image. The imaging apparatus according to claim 1, further comprising a control unit that develops and reproduces the image by the two developing units. 前記第2の現像手段は、所定の条件に応じて前記記録媒体に記録された前記RAW画像を取得して現像処理を行い、
前記記録手段は、前記第2の現像手段によって生成された前記RAW画像の現像済画像から高画質現像済の画像ファイルを生成して前記記録媒体に記録することを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。
The second developing means acquires the RAW image recorded on the recording medium according to a predetermined condition and performs development processing,
4. The recording unit according to claim 1, wherein the recording unit generates a high-quality developed image file from the developed image of the RAW image generated by the second developing unit, and records the generated image file on the recording medium. The imaging device according to any one of the above.
被写体像を撮像してRAW画像を生成する撮像工程と、
前記RAW画像を縮小して縮小RAW画像を生成する縮小工程と、
撮影時に前記縮小RAW画像を取得して現像処理を行う第1の現像工程と、
前記RAW画像及び前記縮小RAW画像をそれぞれ記録媒体に記録する記録工程と、
前記記録媒体に記録された前記RAW画像の再生を指示する指示工程と、
再生の指示に応じて、前記記録媒体に記録された前記縮小RAW画像を取得して現像処理を行う第2の現像工程と、
前記第2の現像工程によって現像処理された再生画像を表示する表示処理工程とを有することを特徴とする撮像方法。
An imaging step of capturing a subject image to generate a RAW image;
A reduction step of reducing the RAW image to generate a reduced RAW image;
A first development step of acquiring the reduced RAW image at the time of shooting and performing development processing;
A recording step of recording the RAW image and the reduced RAW image on a recording medium;
An instruction step for instructing reproduction of the RAW image recorded on the recording medium;
A second development step of acquiring the reduced RAW image recorded on the recording medium and performing development processing in response to a reproduction instruction;
A display processing step of displaying the reproduced image developed by the second development step.
コンピュータを、請求項1乃至4のいずれか1項に記載の撮像装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the imaging device of any one of Claims 1 thru | or 4. 請求項6に記載のプログラムを記録したコンピュータが読出し可能な記録媒体。   A computer-readable recording medium on which the program according to claim 6 is recorded.
JP2014186873A 2014-09-12 2014-09-12 Imaging apparatus an imaging method Pending JP2016063254A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2014186873A JP2016063254A (en) 2014-09-12 2014-09-12 Imaging apparatus an imaging method
EP15839958.4A EP3192250B1 (en) 2014-09-12 2015-08-20 Image processing apparatus and image processing method
PCT/JP2015/004172 WO2016038808A1 (en) 2014-09-12 2015-08-20 Image processing apparatus and image processing method
RU2017112305A RU2655662C1 (en) 2014-09-12 2015-08-20 Image processing apparatus and image processing method
US15/510,188 US10360660B2 (en) 2014-09-12 2015-08-20 Image processing apparatus and image processing method for handling raw images
CN201580049252.6A CN107079130B (en) 2014-09-12 2015-08-20 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014186873A JP2016063254A (en) 2014-09-12 2014-09-12 Imaging apparatus an imaging method

Publications (1)

Publication Number Publication Date
JP2016063254A true JP2016063254A (en) 2016-04-25

Family

ID=55796209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014186873A Pending JP2016063254A (en) 2014-09-12 2014-09-12 Imaging apparatus an imaging method

Country Status (1)

Country Link
JP (1) JP2016063254A (en)

Similar Documents

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