JP2010161627A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2010161627A
JP2010161627A JP2009002468A JP2009002468A JP2010161627A JP 2010161627 A JP2010161627 A JP 2010161627A JP 2009002468 A JP2009002468 A JP 2009002468A JP 2009002468 A JP2009002468 A JP 2009002468A JP 2010161627 A JP2010161627 A JP 2010161627A
Authority
JP
Japan
Prior art keywords
image
image data
reference image
white balance
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009002468A
Other languages
Japanese (ja)
Other versions
JP5453812B2 (en
Inventor
Yasumasa Nakajima
泰正 中島
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP2009002468A priority Critical patent/JP5453812B2/en
Publication of JP2010161627A publication Critical patent/JP2010161627A/en
Application granted granted Critical
Publication of JP5453812B2 publication Critical patent/JP5453812B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To allow parameter correction when a parameter error is caused due to an image used for setting the parameter. <P>SOLUTION: An image processing apparatus reads original image data obtained by an imaging device and reference image data related to the original image data. The device executes image processing to the original image data by using a white-balance adjustment value based on the reference image data so as to generate and display image data for display. The device receives the designation of an arbitrary region on a reference image and extracts region image data corresponding to the region whose designation is received. The device calculates the white-balance adjustment value on the basis of the region image data. The device executes white-balance adjustment processing to the original image data on the basis of the white-balance adjustment value calculated by a calculation means so as to generate the image data for display. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理装置に関する。   The present invention relates to an image processing apparatus.

従来から、画像データに付加された付加情報に含まれるパラメータ等を用いて、画像データに対して画像処理を施すカメラが知られている(たとえば特許文献1)。   2. Description of the Related Art Conventionally, a camera that performs image processing on image data using a parameter or the like included in additional information added to the image data is known (for example, Patent Document 1).

特開2003−324745号公報JP 2003-324745 A

しかしながら、パラメータの設定に用いた画像が原因でパラメータに誤りがあった場合に、パラメータの修正ができないという問題がある。   However, there is a problem that the parameter cannot be corrected when there is an error in the parameter due to the image used for setting the parameter.

請求項1に記載の発明による画像処理装置は、撮像装置により取得された本画像データと、本画像データに関連付けされた、本画像データに対するホワイトバランス調整を施す際に使用する参考画像データとを読み込む読込手段と、本画像データと関連付けされた参考画像データに基づくホワイトバランス調整値を用いて、本画像データに対して画像処理を施し、表示用画像データを生成する表示用画像生成手段と、表示用画像データに対応する表示用画像を表示器に表示する表示制御手段と、参考画像データに対応する参考画像を表示器に表示する参考画像表示制御手段と、表示器に表示された参考画像上の任意の領域を指定するための指定操作を受け付ける領域指定受付手段と、参考画像データから、指定操作により指定された領域に対応する領域画像データを抽出する抽出手段と、抽出された領域画像データに基づいて、ホワイトバランス調整のためのホワイトバランス調整値を算出する算出手段とを備え、表示用画像生成手段は、算出手段により算出されたホワイトバランス調整値に基づいて、本画像データに対してホワイトバランス調整処理を施し、表示用画像データを生成することを特徴とする。   An image processing apparatus according to a first aspect of the present invention includes main image data acquired by an imaging device and reference image data associated with the main image data and used when white balance adjustment is performed on the main image data. Reading means for reading, display image generating means for performing image processing on the main image data using white balance adjustment values based on the reference image data associated with the main image data, and generating display image data; Display control means for displaying a display image corresponding to display image data on a display, reference image display control means for displaying a reference image corresponding to reference image data on a display, and a reference image displayed on the display An area designation accepting unit that accepts a designation operation for designating an arbitrary area above and an area designated by the designation operation from the reference image data. Extraction means for extracting area image data to be performed, and calculation means for calculating a white balance adjustment value for white balance adjustment based on the extracted area image data. The display image generation means includes: Based on the calculated white balance adjustment value, the main image data is subjected to white balance adjustment processing to generate display image data.

本発明によれば、領域を指定する操作に基づいて抽出された領域画像データを参考画像データから抽出し、領域画像データに基づいて算出されたホワイトバランス調整値に基づいて、本画像データに対してホワイトバランス調整処理を施すことができる。   According to the present invention, region image data extracted based on an operation for designating a region is extracted from reference image data, and the main image data is extracted based on a white balance adjustment value calculated based on the region image data. White balance adjustment processing.

本発明の実施の形態による電子カメラの要部構成を説明するブロック図The block diagram explaining the principal part structure of the electronic camera by embodiment of this invention 電子カメラによる動作を説明するフローチャートFlowchart explaining operation by electronic camera 付加画像ファイルの構造の一例を模式的に示す図The figure which shows an example of the structure of an additional image file typically 電子カメラによる動作を説明するフローチャートFlowchart explaining operation by electronic camera 対象画像ファイルの選択用画面の一例を示す図The figure which shows an example of the screen for selection of an object image file 電子カメラによる動作を説明するフローチャートFlowchart explaining operation by electronic camera 本発明の実施の形態による画像処理装置の要部構成を説明するブロック図FIG. 1 is a block diagram for explaining a main configuration of an image processing apparatus according to an embodiment of the present invention. 付加画像ファイルに基づいて表示される画像の一例を示す図The figure which shows an example of the image displayed based on an additional image file 画像処理装置による動作を説明するフローチャートFlowchart explaining operation by image processing apparatus 変形例における付加画像ファイルのデータ構造を模式的に示す図The figure which shows typically the data structure of the additional image file in a modification 変形例における関連付け情報の一例を示す図The figure which shows an example of the correlation information in a modification

図面を参照して、本発明によるカメラの実施の形態を説明する。図1は、電子カメラ100のブロック図である。電子カメラ100は、図1に示すように、入力スイッチ101、レンズ102、撮像素子103、システム制御部104、RAM105、内蔵メモリ106、LCD駆動回路107、LCD108、メモリカードスロット109および外部インタフェース111を有する。   An embodiment of a camera according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of the electronic camera 100. As shown in FIG. 1, the electronic camera 100 includes an input switch 101, a lens 102, an image sensor 103, a system control unit 104, a RAM 105, a built-in memory 106, an LCD drive circuit 107, an LCD 108, a memory card slot 109, and an external interface 111. Have.

入力スイッチ101は使用者によって操作される種々の操作部材に対応して設けられた種々のスイッチを含み、操作部材の操作に応じた操作信号をシステム制御部104へ出力する。操作部材は、たとえばレリーズボタンや、各種の設定等を選択操作する時に操作される十字キーや、十字キーにより選択された設定等を決定するための決定ボタン、撮影モードと再生モードとの間で電子カメラ100の動作を切替えるモード切替ボタン等を含む。   The input switch 101 includes various switches provided corresponding to various operation members operated by the user, and outputs an operation signal corresponding to the operation of the operation member to the system control unit 104. The operation member includes, for example, a release button, a cross key operated when selecting and operating various settings, a determination button for determining a setting selected with the cross key, and between the shooting mode and the playback mode. A mode switching button for switching the operation of the electronic camera 100 is included.

レンズ102は、複数の光学レンズ群から構成される。なお、図1ではレンズ102を1枚のレンズで代表して表している。撮像素子103は、例えばCCDやCMOS等により構成される。撮像素子103は、後述するシステム制御部104の制御に応じて駆動してレンズ102を通して入力される被写体像を撮像し、撮像して得た画像信号をシステム制御部104へ出力する。撮像素子103の撮像面には、それぞれR(赤)、G(緑)およびB(青)のカラーフィルタが画素位置に対応するように設けられている。撮像素子103がカラーフィルタを通して被写体像を撮像するため、撮像素子103から出力される画像信号はRGB表色系の色情報を有する。   The lens 102 includes a plurality of optical lens groups. In FIG. 1, the lens 102 is represented by a single lens. The image sensor 103 is configured by, for example, a CCD or a CMOS. The image sensor 103 is driven in accordance with the control of the system control unit 104 described later to capture a subject image input through the lens 102, and outputs an image signal obtained by the imaging to the system control unit 104. On the imaging surface of the imaging element 103, R (red), G (green), and B (blue) color filters are provided so as to correspond to the pixel positions, respectively. Since the image sensor 103 captures the subject image through the color filter, the image signal output from the image sensor 103 has RGB color system color information.

メモリカードスロット109は、メモリカード109aが着脱可能なインタフェースである。メモリカードスロット109は、システム制御部104の制御に基づいて、画像ファイルをメモリカード109aに書き込んだり、メモリカード109aに記録されている画像ファイルを読み出すインタフェース回路である。メモリカード109aはコンパクトフラッシュ(登録商標)やSDカードなどの半導体メモリカードである。   The memory card slot 109 is an interface to which the memory card 109a can be attached and detached. The memory card slot 109 is an interface circuit that writes an image file to the memory card 109a or reads an image file recorded on the memory card 109a based on the control of the system control unit 104. The memory card 109a is a semiconductor memory card such as a compact flash (registered trademark) or an SD card.

LCD駆動回路107は、システム制御部104の命令に基づいてLCD108を駆動する回路である。LCD108はアスペクト比が、たとえば縦3:横4の液晶表示パネルである。LCD108は、液晶ビューファインダとして用いられるとともに、メモリカード109aや後述する内蔵メモリ106に記録されている画像データに基づいてシステム制御部104で作成された表示画像データに対応する画像の表示を行う。また、LCD108は、画像ファイルに関連する各種情報(シャッタ速度、絞り値、ISO感度、ファイル名など)の表示を行う。また、LCD108は、入力スイッチ101の操作に基づき、電子カメラ100の各種設定メニュー画面の表示を行う。   The LCD drive circuit 107 is a circuit that drives the LCD 108 based on a command from the system control unit 104. The LCD 108 is a liquid crystal display panel having an aspect ratio of, for example, vertical 3: horizontal 4. The LCD 108 is used as a liquid crystal viewfinder and displays an image corresponding to display image data created by the system control unit 104 based on image data recorded in a memory card 109a or a built-in memory 106 described later. The LCD 108 displays various information related to the image file (shutter speed, aperture value, ISO sensitivity, file name, etc.). The LCD 108 displays various setting menu screens of the electronic camera 100 based on the operation of the input switch 101.

設定メニューの内容としては、撮影モードの設定、ホワイトバランスの設定、画質(ファイン、ノーマル等)の設定等がある。画質がファインに設定された場合、後述するように画像データに対して圧縮処理が施されていないRAWデータファイルが記録される。また、ホワイトバランスの設定として、マニュアルモード(MWB)、自動調整モード(AWB)、プリセットモード(PWB)等を含む。マニュアルモードにおいては、システム制御部104は、選択された光源条件(屋外、日陰、照明の種類)に応じた固定のゲインデータを使用して、画像データに対してホワイトバランス調整処理を施す。自動調整モードにおいては、システム制御部104は、たとえば図示しない測光素子等により得られる画像信号に基づいて光源の色温度を推定し、推定した色温度に応じたゲインデータを使用して、画像データに対してホワイトバランス調整処理を施す。   The contents of the setting menu include shooting mode setting, white balance setting, image quality (fine, normal, etc.) setting and the like. When the image quality is set to fine, a RAW data file that is not subjected to compression processing is recorded as will be described later. The white balance setting includes a manual mode (MWB), an automatic adjustment mode (AWB), a preset mode (PWB), and the like. In the manual mode, the system control unit 104 performs white balance adjustment processing on the image data using fixed gain data corresponding to the selected light source condition (outdoor, shade, illumination type). In the automatic adjustment mode, the system control unit 104 estimates the color temperature of the light source based on, for example, an image signal obtained by a photometric element (not shown), and uses the gain data corresponding to the estimated color temperature to obtain image data. A white balance adjustment process is performed on the image.

プリセットモードにおいては、システム制御部104は、本撮影によりRAWデータファイルが取得される前もしくは後に、参考画像ファイルを取得する。そして、システム制御部104は、本撮影により取得されたRAWデータファイルに参考画像ファイルに含まれる参考画像データを付加して付加画像ファイルを生成する。参考画像は、本撮影にて撮像画像を取得する光源環境とほぼ同一の光源環境下において、使用者がグレーや白等の無彩色のチャートや一様な壁面、青空等の均一面を撮影することにより取得される。後述する画像処理装置200は、この参考画像データに基づいて算出したホワイトバランス調整値(ゲイン)を使用して、RAWデータに対してホワイトバランス処理を施す。なお、プリセットモードにおける処理については詳細を後述する。   In the preset mode, the system control unit 104 acquires the reference image file before or after the RAW data file is acquired by the main shooting. Then, the system control unit 104 adds the reference image data included in the reference image file to the RAW data file acquired by the main photographing to generate an additional image file. For reference images, the user shoots an achromatic chart such as gray or white, a uniform wall surface, or a uniform surface such as a blue sky in almost the same light source environment that obtains the captured image in actual shooting. Is obtained by The image processing apparatus 200 described later performs white balance processing on the RAW data using a white balance adjustment value (gain) calculated based on the reference image data. Details of the processing in the preset mode will be described later.

RAM105は、画像処理、画像圧縮処理の途中や処理後のデータを一時的に格納するバッファメモリとして使用される揮発性記憶媒体である。内蔵メモリ106は、参考画像ファイルを記録する不揮発性記憶媒体である。なお、内蔵メモリ106の内部には、参考画像ファイルを格納するための参考画像用フォルダが設けられている。   The RAM 105 is a volatile storage medium used as a buffer memory that temporarily stores data during and after image processing and image compression processing. The built-in memory 106 is a non-volatile storage medium that records a reference image file. Note that a reference image folder for storing a reference image file is provided in the built-in memory 106.

外部インタフェース111は、システム制御部104の指令により、たとえばUSBインタフェースケーブル(不図示)等の所定のケーブルや無線伝送路を介して接続される他の画像処理装置200(たとえば、パーソナルコンピュータ)との間で、双方向通信によるデータの送受を行う。   The external interface 111 is connected to another image processing apparatus 200 (for example, a personal computer) connected via a predetermined cable such as a USB interface cable (not shown) or a wireless transmission path according to a command from the system control unit 104. Data is sent and received by two-way communication.

システム制御部104は、CPUやメモリその他の周辺回路によって構成され、電子カメラ100を構成する各部に対して制御信号を出力して、電子カメラ100の動作を制御する。また、システム制御部104は、画像取得部104a、画像処理部104b、ファイル生成部104c、参考画像取得部104d、参考画像付加部104e、画像再生部104fおよび画像送信部104gを機能的に備えている。   The system control unit 104 includes a CPU, a memory, and other peripheral circuits, and outputs a control signal to each unit configuring the electronic camera 100 to control the operation of the electronic camera 100. Further, the system control unit 104 functionally includes an image acquisition unit 104a, an image processing unit 104b, a file generation unit 104c, a reference image acquisition unit 104d, a reference image addition unit 104e, an image reproduction unit 104f, and an image transmission unit 104g. Yes.

画像取得部104aは、入力スイッチ101からの操作信号に基づいて、使用者によってレリーズボタンが全押しされたことを検出すると、撮像素子103を制御して被写体像を撮像した画像信号を出力させる。画像取得部104aは、取得した画像信号に対してA/D変換等を施してデジタル画像信号を生成する。そして、画像取得部104aは、生成したデジタル画像信号をRAM105に格納する。   When the image acquisition unit 104a detects that the release button is fully pressed by the user based on the operation signal from the input switch 101, the image acquisition unit 104a controls the image sensor 103 to output an image signal obtained by capturing the subject image. The image acquisition unit 104a performs A / D conversion or the like on the acquired image signal to generate a digital image signal. Then, the image acquisition unit 104 a stores the generated digital image signal in the RAM 105.

画像処理部104bは、画像取得部104aにより生成されたデジタル画像信号に対して、色補間処理、間引き処理などの公知の画像処理を施して原画像データを生成する。そして、画像処理部104bは、生成した原画像データに対して圧縮処理を行い、所定の画像形式、例えばJpeg形式に圧縮して画像データを生成する。画像データは、画像処理部104bによりRAM105に格納される。なお、上述した画質がファインに設定されている場合やプリセットモードが設定されている場合は、画像処理部104bは、本撮影により取得されたデジタル画像信号を用いて、圧縮処理の施されていないRAWデータ(本画像データ)を生成する。   The image processing unit 104b performs known image processing such as color interpolation processing and thinning processing on the digital image signal generated by the image acquisition unit 104a to generate original image data. Then, the image processing unit 104b performs a compression process on the generated original image data, and generates image data by compressing the original image data into a predetermined image format, for example, a Jpeg format. The image data is stored in the RAM 105 by the image processing unit 104b. Note that when the image quality described above is set to fine or the preset mode is set, the image processing unit 104b is not subjected to compression processing using the digital image signal acquired by the actual photographing. RAW data (main image data) is generated.

ファイル生成部104cは、画像データに種々の付加情報を付加して撮像画像ファイルを生成する。例えば、ファイル生成部104cは、RAM105に格納された画像データを用いて、付加情報を付加情報部に格納したExif形式の撮像画像ファイルを生成する。また、画質がファインに設定されている場合やプリセットモードが設定されている場合は、ファイル生成部104cは、RAWデータについても同様に、付加情報を付加してRAWデータファイルを生成する。ここで、付加情報部に付加される付加情報には、一般的には、画像撮影日時に関する情報や画像の撮影条件に関する情報、ホワイトバランス調整値(ゲイン)が含まれる。ファイル生成部104cは、上述のようにして生成した撮像画像ファイルまたはRAWデータファイルを、内蔵メモリ106またはメモリカードスロット109に挿入されているメモリカード109a内に記録する。   The file generation unit 104c generates a captured image file by adding various additional information to the image data. For example, the file generation unit 104 c uses the image data stored in the RAM 105 to generate an Exif format captured image file in which additional information is stored in the additional information unit. Further, when the image quality is set to fine or the preset mode is set, the file generation unit 104c similarly adds additional information to the RAW data to generate a RAW data file. Here, the additional information added to the additional information section generally includes information related to image shooting date and time, information related to image shooting conditions, and white balance adjustment value (gain). The file generation unit 104 c records the captured image file or RAW data file generated as described above in the internal memory 106 or the memory card 109 a inserted in the memory card slot 109.

参考画像取得部104dは、後述するように、プリセットモードにおける参考画像ファイルの取得処理を制御する。参考画像付加部104eは、後述するプリセットモードにおいて取得された参考画像データとRAWデータファイルとの関連付けを行い、付加画像ファイルを生成する。   The reference image acquisition unit 104d controls reference image file acquisition processing in the preset mode, as will be described later. The reference image adding unit 104e associates reference image data acquired in a preset mode, which will be described later, with a RAW data file, and generates an additional image file.

画像再生部104fは、LCD駆動回路107に対して各種画像データを出力して、LCD108に再生画像を表示させる。使用者によるモード切替ボタンの操作により再生モードが設定されると、画像再生部104fは、メモリカード109aに記録された画像データを読み出す。画像再生部104fは、読み出した画像データを原画像データに伸張し、必要に応じてLCD108の表示解像度にリサイズしてLCD駆動回路107に出力する。画像送信部104gは、使用者による送信ボタンの操作に応じて入力スイッチ101から送信を指示する信号(送信指示信号)を入力すると、メモリカード109a内の撮像画像ファイルや後述する付加画像ファイルを、外部インタフェース111を介して画像処理装置200へ送信する。   The image playback unit 104f outputs various image data to the LCD drive circuit 107 and causes the LCD 108 to display a playback image. When the playback mode is set by the user operating the mode switching button, the image playback unit 104f reads the image data recorded on the memory card 109a. The image reproducing unit 104f expands the read image data to original image data, resizes it to the display resolution of the LCD 108 as necessary, and outputs it to the LCD drive circuit 107. When the image transmission unit 104g inputs a signal (transmission instruction signal) instructing transmission from the input switch 101 in accordance with the operation of the transmission button by the user, the captured image file in the memory card 109a and an additional image file described later are stored. The image is transmitted to the image processing apparatus 200 via the external interface 111.

以下、プリセットモードが設定された場合の電子カメラ100の動作について説明する。プリセットモードは、参考画像ファイルを取得するための参考画像取得モードと、本撮影によりRAWデータファイルを取得するRAWデータ取得モードとを有する。以下、参考画像取得モードが設定された場合と、RAWデータ取得モードが選択された場合とに分けて説明する。   Hereinafter, the operation of the electronic camera 100 when the preset mode is set will be described. The preset mode has a reference image acquisition mode for acquiring a reference image file and a RAW data acquisition mode for acquiring a RAW data file by actual photographing. Hereinafter, the case where the reference image acquisition mode is set and the case where the RAW data acquisition mode is selected will be described separately.

(1)参考画像取得モード
参考画像取得モードにおいては、使用者がグレーや白等の無彩色のチャートや一様な壁面、青空等の均一面の被写体を撮影すると、参考画像取得部104dは参考画像データを取得して、参考画像ファイルを生成する。参考画像データは、ホワイトバランス調整値として用いられるゲインを算出するための画像データである。
(1) Reference image acquisition mode In the reference image acquisition mode, when the user shoots an achromatic chart such as gray or white, a uniform wall surface, a uniform surface such as a blue sky, the reference image acquisition unit 104d performs reference. Acquire image data and generate a reference image file. The reference image data is image data for calculating a gain used as a white balance adjustment value.

参考画像取得モードの設定時に、画像取得部104aは、入力スイッチ101からの操作信号に基づいてレリーズボタンの全押し操作を検出すると、上述のようにして、撮像素子103を制御してデジタル画像信号を取得する。デジタル画像信号がRAM105に格納されると、参考画像取得部104dは、デジタル画像信号に対して、色補間処理および間引き処理を施して原画像データを生成する。そして、参考画像取得部104dは、生成された原画像データに含まれる色情報(R信号、G信号、B信号)基づいて、公知の技術を用いてホワイトバランス調整値であるRゲイン(=G平均値/R平均値)およびBゲイン(=G平均値/B平均値)を算出する。参考画像取得部104dは、原画像データおよび算出されたホワイトバランス調整値を内蔵メモリ106に記録する。   When the reference image acquisition mode is set, when the image acquisition unit 104a detects a full press operation of the release button based on the operation signal from the input switch 101, the image acquisition unit 104a controls the image sensor 103 as described above to control the digital image signal. To get. When the digital image signal is stored in the RAM 105, the reference image acquisition unit 104d performs color interpolation processing and thinning processing on the digital image signal to generate original image data. Then, the reference image acquisition unit 104d uses a known technique based on the color information (R signal, G signal, B signal) included in the generated original image data to obtain an R gain (= G Average value / R average value) and B gain (= G average value / B average value) are calculated. The reference image acquisition unit 104d records the original image data and the calculated white balance adjustment value in the built-in memory 106.

参考画像取得部104dは、RAM105に格納されている原画像データに対して圧縮処理を施して参考画像データを生成する。そして、参考画像取得部104dは、参考画像データに、撮影日時等を記録した付加情報部を付加して参考画像ファイルを生成して内蔵メモリ106へ記録する。   The reference image acquisition unit 104d performs compression processing on the original image data stored in the RAM 105 to generate reference image data. Then, the reference image acquisition unit 104d generates a reference image file by adding an additional information unit that records the shooting date and time to the reference image data, and records the reference image file in the built-in memory 106.

図2のフローチャートを用いて、参考画像ファイルの取得処理について説明する。図2の処理を行うプログラムはシステム制御部104内の図示しないメモリに格納されており、使用者により参考画像取得モードが設定された状態で、レリーズボタンが操作され入力スイッチ101から操作信号がシステム制御部104に入力されると起動される。
ステップS101においては、システム制御部104は撮影処理を行う。すなわち、画像取得部104aは、撮像素子103を制御して被写体像を撮像したデジタル画像信号を取得してステップS102へ進む。
The reference image file acquisition process will be described with reference to the flowchart of FIG. The program for performing the processing of FIG. 2 is stored in a memory (not shown) in the system control unit 104. With the reference image acquisition mode set by the user, the release button is operated and an operation signal is sent from the input switch 101 to the system. When it is input to the control unit 104, it is activated.
In step S101, the system control unit 104 performs shooting processing. That is, the image acquisition unit 104a controls the image sensor 103 to acquire a digital image signal obtained by capturing a subject image, and the process proceeds to step S102.

ステップS102においては、参考画像取得部104dは、デジタル画像信号に対して公知の色補間処理を施し、ステップS103においては、参考画像取得部104dは、公知の間引き処理を施して原画像データを生成してステップS104へ進む。ステップS104においては、参考画像取得部104dは、原画像データに含まれる色情報を用いてホワイトバランス調整値、すなわちゲインを算出する。そして、参考画像取得部104dは、算出したゲインを内蔵メモリ106に記録してステップS105へ進む。   In step S102, the reference image acquisition unit 104d performs a known color interpolation process on the digital image signal, and in step S103, the reference image acquisition unit 104d performs a known thinning process to generate original image data. Then, the process proceeds to step S104. In step S104, the reference image acquisition unit 104d calculates a white balance adjustment value, that is, a gain, using color information included in the original image data. Then, the reference image acquisition unit 104d records the calculated gain in the built-in memory 106, and proceeds to step S105.

ステップS105においては、参考画像取得部104dは、生成された原画像データを圧縮して参考画像データを生成してステップS106へ進む。ステップS106においては、参考画像取得部104dは、付加情報部を参考画像データに付加して参考画像ファイルを生成する。参考画像取得部104dは、ステップS104で算出されたホワイトバランス調整値を付加情報部に記録する。そして、参考画像取得部104dは、生成した参考画像ファイルを内蔵メモリ106に記録して処理を終了する。   In step S105, the reference image acquisition unit 104d compresses the generated original image data to generate reference image data, and the process proceeds to step S106. In step S106, the reference image acquisition unit 104d adds the additional information unit to the reference image data to generate a reference image file. The reference image acquisition unit 104d records the white balance adjustment value calculated in step S104 in the additional information unit. Then, the reference image acquisition unit 104d records the generated reference image file in the built-in memory 106, and ends the process.

(2)RAWデータ取得モード
RAWデータ取得モードにおいては、本撮影によりRAWデータファイルが取得され、このRAWデータファイルと上述した参考画像取得モードで取得された参考画像データとが関連付けされて付加画像ファイルが生成される。すなわち、参考画像データと、参考画像データが取得されたときの光源環境とほぼ同一の光源環境下で本撮影により取得されたRAWデータファイルとが関連付けされて付加画像ファイルが生成される。以下、次の(2−1)、(2−2)の場合に分けて説明する。
(2−1)本撮影によりRAWデータファイルが取得されるごとに、予め内蔵メモリ106に記録されている参考画像データを関連付ける場合
(2−2)既に内蔵メモリ106またはメモリカード109aに記録されているRAWデータファイルに、後から取得された参考画像データを関連付ける場合
(2) RAW Data Acquisition Mode In the RAW data acquisition mode, a RAW data file is acquired by actual photographing, and this RAW data file is associated with the reference image data acquired in the above-described reference image acquisition mode, and an additional image file is obtained. Is generated. That is, the additional image file is generated by associating the reference image data with the RAW data file acquired by the actual photographing under the light source environment substantially the same as the light source environment when the reference image data is acquired. Hereinafter, description will be made separately for the following cases (2-1) and (2-2).
(2-1) When the reference image data recorded in advance in the built-in memory 106 is associated every time a RAW data file is acquired by the actual shooting (2-2) The image is already recorded in the built-in memory 106 or the memory card 109a. To associate reference image data acquired later with a RAW data file

使用者は、上記の(2−1)の場合にRAWデータ取得モードに含まれる第1モードを選択し、(2−2)の場合にRAWデータ取得モードに含まれる第2モードを選択することにより、RAWデータファイルに参考画像データを関連付けることができる。なお、第1モードおよび第2モードは、LCD108に表示されるメニュー画面から使用者により選択される。   The user selects the first mode included in the RAW data acquisition mode in the case of (2-1) above, and selects the second mode included in the RAW data acquisition mode in the case of (2-2). Thus, the reference image data can be associated with the RAW data file. The first mode and the second mode are selected by the user from a menu screen displayed on the LCD 108.

(2−1)RAWデータファイルが取得されるごとに、RAWデータファイルと参考画像データとを関連付ける場合(第1モード)
第1モードが選択されている場合に、画像取得部104aは、入力スイッチ101からの操作信号に基づいて、レリーズボタンの全押し操作を検出すると、上述のようにして、撮像素子103を制御して取得した画像信号を用いてRAWデータファイルを生成する。参考画像付加部104eは、内蔵メモリ106に記録されている参考画像ファイルを読み出す。そして、参考画像付加部104eは、画像取得部104aで取得したRAWデータファイルに、参考画像ファイルに含まれる参考画像データと、付加情報部とを付加して付加画像ファイルを生成する。図3に付加画像ファイルのデータ構造の一例を模式的に示す。図3に示すように、付加画像ファイルには、RAWデータファイルが主画像、参考画像データが副画像として含まれることになる。付加画像ファイルの付加情報部には、参考画像ファイルの付加情報部に記録されているホワイトバランス調整値と、付加画像ファイル内における参考画像データのアドレス情報等が含まれている。参考画像付加部104eは、生成した付加画像ファイルをメモリカード109aに記録する。
(2-1) When the RAW data file is associated with the reference image data every time the RAW data file is acquired (first mode)
When the first mode is selected, the image acquisition unit 104a controls the image sensor 103 as described above when detecting a full press operation of the release button based on an operation signal from the input switch 101. A RAW data file is generated using the image signal acquired in the above. The reference image adding unit 104e reads the reference image file recorded in the built-in memory 106. Then, the reference image adding unit 104e generates the additional image file by adding the reference image data included in the reference image file and the additional information unit to the RAW data file acquired by the image acquiring unit 104a. FIG. 3 schematically shows an example of the data structure of the additional image file. As shown in FIG. 3, the additional image file includes a RAW data file as a main image and reference image data as a sub image. The additional information portion of the additional image file includes a white balance adjustment value recorded in the additional information portion of the reference image file, address information of reference image data in the additional image file, and the like. The reference image adding unit 104e records the generated additional image file on the memory card 109a.

図4のフローチャートを用いて、付加画像ファイルの生成処理について説明する。図4の処理を行うプログラムはシステム制御部104内の図示しないメモリに格納されている。このプログラムは、使用者によりRAWデータ取得モードに含まれる上記第1モードが設定された状態で、レリーズボタンの操作に応じて入力スイッチ101からの操作信号がシステム制御部104に入力されると起動される。
ステップS201においては、システム制御部104は撮影処理を行う。すなわち、画像取得部104aは、撮像素子103を制御して被写体像を撮像した画像信号に基づいてRAWデータファイルを生成してステップS202へ進む。
The additional image file generation process will be described with reference to the flowchart of FIG. A program for performing the processing of FIG. 4 is stored in a memory (not shown) in the system control unit 104. This program is activated when an operation signal from the input switch 101 is input to the system control unit 104 in response to the operation of the release button in a state where the first mode included in the RAW data acquisition mode is set by the user. Is done.
In step S201, the system control unit 104 performs a photographing process. That is, the image acquisition unit 104a generates a RAW data file based on the image signal obtained by capturing the subject image by controlling the image sensor 103, and the process proceeds to step S202.

ステップS202においては、参考画像付加部104eは、内蔵メモリ106に記録されている参考画像ファイルを読み出す。そして、参考画像付加部104eは、ステップS201で生成されたRAWデータファイルに、参考画像データと、ホワイトバランス調整値および参考画像データのアドレス情報が記録された付加情報部とを付加して付加画像ファイルを生成してステップS203へ進む。ステップS203においては、参考画像付加部104eは、生成した付加画像ファイルをメモリカード109aに記録して処理を終了する。   In step S202, the reference image adding unit 104e reads the reference image file recorded in the built-in memory 106. Then, the reference image adding unit 104e adds the reference image data and the additional information unit in which the white balance adjustment value and the address information of the reference image data are recorded to the RAW data file generated in step S201. A file is generated and the process proceeds to step S203. In step S203, the reference image adding unit 104e records the generated additional image file on the memory card 109a and ends the process.

(2−2)予め記録されているRAWデータファイルに後から取得した参考画像データを関連付ける場合(第2モード)
使用者により第2モードが選択されているときに、レリーズボタンの全押し操作を検出すると、上述した参考画像取得モードの場合と同様にして、参考画像取得部104dは、参考画像ファイルを取得し、内蔵メモリ106に記録する。参考画像ファイルが記録されると、参考画像付加部104eは、参考画像データを付加する対象としてのRAWデータファイル(対象画像ファイル)を使用者に選択させるための処理を行う。参考画像付加部104eは、予めメモリカード109aに記録されているRAWデータファイルを読み出して、ファイル内に含まれるサムネイル画像データをLCD駆動回路107へ出力して、LCD108にサムネイル画像データに対応するサムネイル画像を表示させる。なお、メモリカード109aに予め記録されているRAWデータファイルのファイル名を、たとえば「DCS.0001.nef」〜「DSC.0006.nef」として説明する。
(2-2) When reference image data acquired later is associated with a pre-recorded RAW data file (second mode)
When the user presses the second button when the second mode is selected, the reference image acquisition unit 104d acquires the reference image file in the same manner as in the reference image acquisition mode described above. To the internal memory 106. When the reference image file is recorded, the reference image adding unit 104e performs processing for causing the user to select a RAW data file (target image file) as a target to which the reference image data is added. The reference image adding unit 104e reads out a RAW data file recorded in advance in the memory card 109a, outputs thumbnail image data included in the file to the LCD drive circuit 107, and outputs a thumbnail corresponding to the thumbnail image data to the LCD 108. Display an image. Note that the file names of RAW data files recorded in advance on the memory card 109a will be described as “DCS.0001.nef” to “DSC.0006.nef”, for example.

LCD108にサムネイル画像が表示されると、参考画像付加部104eは、使用者に付加画像ファイルを生成するための対象画像ファイル、すなわちRAWデータファイルの選択を促すメッセージをLCD駆動回路107を介してLCD108に表示させる。図5に、モニタ108の表示の一例を示す。図5(a)には、画面1として、サムネイル画像SP1〜SP6と、それぞれのサムネイル画像SP1〜SP6と、選択用カーソルCRと、上述したメッセージとが表示されている様子を表している。LCD108には、メッセージとして、たとえば「最初の対象画像を選択してください」等の文面が表示される。なお、サムネイル画像SP1〜SP6のそれぞれは、ファイル名が上述した「DSC.0001.nef」〜「DSC.0006.nef」のRAWデータファイルに対応するものである。   When the thumbnail image is displayed on the LCD 108, the reference image adding unit 104e sends a message prompting the user to select a target image file for generating an additional image file, that is, a RAW data file, via the LCD driving circuit 107. To display. FIG. 5 shows an example of display on the monitor 108. FIG. 5A shows a state where the thumbnail images SP1 to SP6, the respective thumbnail images SP1 to SP6, the selection cursor CR, and the message described above are displayed as the screen 1. The LCD 108 displays a message such as “Please select the first target image” as a message. Each of the thumbnail images SP1 to SP6 corresponds to the RAW data file having the file names “DSC.0001.nef” to “DSC.0006.nef” described above.

使用者は、図5(a)のように表示されたサムネイル画像SP1〜SP6の中から、付加画像ファイル生成の対象として所望する画像に対応するサムネイル画像を、十字キーを操作して選択用カーソルCRを移動させることにより選択する。そして、使用者の決定ボタン操作に応じて入力スイッチ101から決定操作信号を入力すると、参考画像付加部104eは、十キー操作により選択されたサムネイル画像のファイル名をRAM105に格納する。図5(a)においては、サムネイル画像SP2、すなわちファイル名「DSC.0002.nef」のRAWデータファイルが使用者により選択された場合を示している。すなわち、参考画像付加部104eは、選択されたサムネイル画像に対応するファイル名「DSC.0002.nef」をRAM105に格納する。   The user operates the cross key to select a thumbnail image corresponding to an image desired as an additional image file generation target from among the thumbnail images SP1 to SP6 displayed as shown in FIG. Select by moving the CR. When a determination operation signal is input from the input switch 101 in response to the user's determination button operation, the reference image adding unit 104e stores the file name of the thumbnail image selected by the ten-key operation in the RAM 105. FIG. 5A shows a case where the thumbnail image SP2, that is, the RAW data file with the file name “DSC.0002.nef” is selected by the user. That is, the reference image adding unit 104 e stores the file name “DSC.0002.nef” corresponding to the selected thumbnail image in the RAM 105.

次に、参考画像付加部104eは、図5(b)に示すような画面(画面2)をLCD駆動回路107を介してLCD108に表示させる。画面2においては、RAWデータファイルの選択を促すメッセージとして、たとえば「最後の対象画像を選択してください」等の文面が表示される。そして、上述したように使用者の十字キー操作により画像の選択、および決定ボタン操作が行われ、入力スイッチ101から決定操作信号を入力すると、参考画像付加部104eは、十キー操作により選択されたサムネイル画像のファイル名をRAM105に格納する。図5(b)においては、サムネイル画像SP6、すなわちファイル名「DSC.0006.nef」のRAWデータファイルが使用者により選択された場合を示している。そして、参考画像付加部104eは、RAM105に格納されたファイル名に基づいて、ファイル名「DSC.0002.nef」〜「DSC.0006.nef」までの5個のRAWデータファイルを、付加画像ファイルを生成する際に参考画像データを付加する対象のファイルとして決定する。   Next, the reference image adding unit 104e displays a screen (screen 2) as shown in FIG. 5B on the LCD 108 via the LCD driving circuit 107. On the screen 2, a message such as “Please select the last target image” is displayed as a message for prompting selection of the RAW data file. Then, as described above, when an image selection and determination button operation is performed by the user's cross key operation and a determination operation signal is input from the input switch 101, the reference image adding unit 104e is selected by the ten-key operation. The file name of the thumbnail image is stored in the RAM 105. FIG. 5B shows a case where the thumbnail image SP6, that is, the RAW data file with the file name “DSC.0006.nef” is selected by the user. The reference image adding unit 104e then adds five RAW data files having the file names “DSC.0002.nef” to “DSC.0006.nef” based on the file names stored in the RAM 105 to the additional image file. Is determined as a target file to which reference image data is added.

上述したようにして対象画像ファイルが決定されると、参考画像付加部104eは、メモリカード109aに記録されている、対象画像ファイルに対応するRAWデータファイルを読み出して、RAM105へ格納する。ここでは、参考画像付加部104eは、ファイル名「DSC.0002.nef」のRAWデータファイルを読み出したものとする。なお、参考画像付加部104eは、たとえばRAWデータファイルのファイル名に基づいて、「DSC.0002.nef」→「DSC.0003.nef」→・・・→「DSC.0006.nef」の順序でRAWデータファイルを選択して読み出す。   When the target image file is determined as described above, the reference image adding unit 104e reads out the RAW data file corresponding to the target image file recorded in the memory card 109a and stores it in the RAM 105. Here, it is assumed that the reference image adding unit 104e has read the raw data file having the file name “DSC.0002.nef”. The reference image adding unit 104e, for example, in the order of “DSC.0002.nef” → “DSC.0003.nef” →... → “DSC.0006.nef” based on the file name of the RAW data file. A RAW data file is selected and read.

参考画像付加部104eは、内蔵メモリ106から参考画像ファイルを読み出す。そして、参考画像付加部104eは、RAWデータファイルに参考画像データと、ホワイトバランス調整値および参考画像データのアドレス情報が記録された付加情報部とを付加して付加画像ファイルを生成する。参考画像付加部104eは、ファイル名「DSC.0002.nef」のRAWデータファイルに、参考画像ファイルの参考画像データを付加して、たとえばファイル名「DSC.0002.mig」の付加画像ファイルを生成する。この付加画像ファイルは、参考画像付加部104eにより、メモリカード109aに記録される。   The reference image adding unit 104e reads the reference image file from the built-in memory 106. Then, the reference image adding unit 104e adds the reference image data and the additional information unit in which the white balance adjustment value and the address information of the reference image data are recorded to the RAW data file to generate an additional image file. The reference image adding unit 104e adds the reference image data of the reference image file to the RAW data file with the file name “DSC.0002.nef”, for example, to generate an additional image file with the file name “DSC.0002.mig”. To do. The additional image file is recorded on the memory card 109a by the reference image adding unit 104e.

図6のフローチャートを用いて、付加画像ファイルの生成処理について説明する。図6の処理を行うプログラムはシステム制御部104内の図示しないメモリに格納されている。このプログラムは、使用者によりRAWデータ取得モードに含まれる第2モードが設定された状態で、レリーズボタンの操作に応じて入力スイッチ101からの操作信号がシステム制御部104に入力されると起動される。   The additional image file generation process will be described with reference to the flowchart of FIG. A program for performing the processing of FIG. 6 is stored in a memory (not shown) in the system control unit 104. This program is activated when an operation signal from the input switch 101 is input to the system control unit 104 in response to the operation of the release button in a state where the second mode included in the RAW data acquisition mode is set by the user. The

ステップS301において、システム制御部104は、使用者のレリーズボタンの全押し操作の有無を判定する。全押し操作に応じて入力スイッチ101から操作信号を入力した場合は、システム制御部104によりステップS301が肯定判定されてステップS302へ進む。入力スイッチ101から操作信号を入力しない場合は、システム制御部104によりステップS301が否定判定されて、当該判定処理を繰り返す。   In step S301, the system control unit 104 determines whether or not the user has fully pressed the release button. When an operation signal is input from the input switch 101 in response to the full press operation, the system control unit 104 makes an affirmative determination in step S301 and proceeds to step S302. When the operation signal is not input from the input switch 101, the system control unit 104 makes a negative determination in step S301, and repeats the determination process.

ステップS302(撮影処理)からステップS306(圧縮処理)までの各処理は、図2のステップS101(撮影処理)からステップS105(圧縮処理)までの各処理と同様である。ステップS307においては、参考画像取得部104dは、参考画像ファイルの取得が終了したか否かを判定する。この場合、参考画像取得部104dは、LCD駆動回路107を介してLCD108に、たとえば「参考画像として記録してもよいですか?Yes/No」等のメッセージを表示させる。使用者による「Yes」を選択する操作に応じて入力スイッチ101から操作信号を入力すると、参考画像取得部104dは、参考画像ファイルの取得が終了したと判定し、ステップS307を肯定判定してステップS308へ進む。使用者による「No」を選択する操作に対応して入力スイッチ101から操作信号を入力すると、参考画像取得部104dは、参考画像ファイルの取得が終了していないと判定し、ステップS307を否定判定してステップS301へ戻る。ステップS308においては、参考画像取得部104dは、生成した参考画像ファイルを内蔵メモリ106に記録してステップS309へ進む。   Each processing from step S302 (imaging processing) to step S306 (compression processing) is the same as each processing from step S101 (imaging processing) to step S105 (compression processing) in FIG. In step S307, the reference image acquisition unit 104d determines whether the acquisition of the reference image file has ended. In this case, the reference image acquisition unit 104d displays a message such as “Can it be recorded as a reference image? Yes / No” on the LCD 108 via the LCD driving circuit 107. When an operation signal is input from the input switch 101 in response to an operation for selecting “Yes” by the user, the reference image acquisition unit 104d determines that the acquisition of the reference image file has ended, and makes an affirmative determination in step S307. Proceed to S308. When an operation signal is input from the input switch 101 in response to an operation of selecting “No” by the user, the reference image acquisition unit 104d determines that acquisition of the reference image file has not ended, and makes a negative determination in step S307. Then, the process returns to step S301. In step S308, the reference image acquisition unit 104d records the generated reference image file in the built-in memory 106, and proceeds to step S309.

ステップS309においては、参考画像付加部104eは、RAWデータファイルを読み出してステップS310へ進む。ステップS310においては、参考画像付加部104eは、読み出したRAWデータファイルのサムネイル画像データをLCD駆動回路107へ出力して、LCD108にサムネイル画像データに対応するサムネイル画像を表示させる。さらに、参考画像付加部104eは、LCD駆動回路107を介してRAWデータファイルの選択を促すメッセージをLCD108に表示させる。その結果、図5(a)に示す画面1がLCD108に表示される。   In step S309, the reference image adding unit 104e reads the RAW data file and proceeds to step S310. In step S310, the reference image adding unit 104e outputs the thumbnail image data of the read RAW data file to the LCD drive circuit 107, and causes the LCD 108 to display a thumbnail image corresponding to the thumbnail image data. Further, the reference image adding unit 104e causes the LCD 108 to display a message for prompting selection of the RAW data file via the LCD driving circuit 107. As a result, the screen 1 shown in FIG.

ステップS311では、参考画像付加部104eは、使用者による決定ボタン操作の有無を判定する。決定ボタンの操作に応じて入力スイッチ101から操作信号を入力した場合は、参考画像付加部104eによりステップS311が肯定判定されてステップS312へ進む。このとき、参考画像付加部104eは、使用者により選択されたサムネイル画像のファイル名をRAM105に格納する。決定ボタンが操作されず入力スイッチ101から操作信号を入力しない場合は、参考画像付加部104eによりステップS311が否定判定されて、当該判定処理を繰り返す。   In step S311, the reference image adding unit 104e determines whether or not the determination button is operated by the user. When an operation signal is input from the input switch 101 according to the operation of the determination button, the reference image adding unit 104e makes a positive determination in step S311 and proceeds to step S312. At this time, the reference image adding unit 104e stores the file name of the thumbnail image selected by the user in the RAM 105. When the determination button is not operated and no operation signal is input from the input switch 101, the reference image adding unit 104e makes a negative determination in step S311 and repeats the determination process.

ステップS312では、参考画像付加部104eは、LCD駆動回路107に指令して、LCD108に図5(b)に示す画面2を表示させてステップS313へ進む。ステップS313においては、参考画像付加部104eは、ステップS311と同様にして、使用者による決定ボタン操作の有無を判定する。決定ボタンの操作に応じて入力スイッチ101から操作信号を入力した場合は、参考画像付加部104eによりステップS313が肯定判定されてステップS314へ進む。このとき、参考画像付加部104eは、使用者により選択されたサムネイル画像のファイル名をRAM105に格納する。決定ボタンが操作されず入力スイッチ101から操作信号を入力しない場合は、参考画像付加部104eによりステップS313が否定判定されて、当該判定処理を繰り返す。   In step S312, the reference image adding unit 104e instructs the LCD drive circuit 107 to display the screen 2 shown in FIG. 5B on the LCD 108, and proceeds to step S313. In step S313, the reference image adding unit 104e determines whether or not the determination button is operated by the user in the same manner as in step S311. When an operation signal is input from the input switch 101 in response to the operation of the determination button, the reference image adding unit 104e makes an affirmative determination in step S313 and proceeds to step S314. At this time, the reference image adding unit 104e stores the file name of the thumbnail image selected by the user in the RAM 105. When the determination button is not operated and no operation signal is input from the input switch 101, the reference image adding unit 104e makes a negative determination in step S313 and repeats the determination process.

ステップS314では、参考画像付加部104eは、ステップS311とステップS313でRAM105に格納したファイル名に基づいて、対象画像ファイルとして選択されたRAWデータファイルを決定する。そして、参考画像付加部104eは、決定されたRAWデータファイルをメモリカード109aから読み出して、ステップS315へ進む。ステップS315においては、参考画像付加部104eは、ステップS314で決定したRAWデータファイルの付加情報部に含まれるホワイトバランス調整値を参考画像ファイルに含まれるホワイトバランス調整値に置き換えて上書きする。そして、参考画像付加部104eは、RAWデータファイルに参考画像ファイルに含まれる参考画像データを付加して付加画像ファイルを生成し、メモリカード109aに記録してステップS316へ進む。   In step S314, the reference image adding unit 104e determines the RAW data file selected as the target image file based on the file name stored in the RAM 105 in steps S311 and S313. Then, the reference image adding unit 104e reads the determined RAW data file from the memory card 109a, and proceeds to step S315. In step S315, the reference image adding unit 104e replaces the white balance adjustment value included in the additional information portion of the RAW data file determined in step S314 with the white balance adjustment value included in the reference image file and overwrites it. Then, the reference image adding unit 104e adds the reference image data included in the reference image file to the RAW data file to generate an additional image file, records it in the memory card 109a, and proceeds to step S316.

ステップS316においては、参考画像付加部104eは、ステップS314で対象画像ファイルとして決定した全てのRAWデータファイルに対して処理が済んだか否かを判定する。全てのRAWデータファイルに対して処理が済んでいる場合は、参考画像付加部104eによりステップS316が肯定判定されて処理を終了する。全てのRAWデータファイルに対して処理が済んでいない場合は、参考画像付加部104eによりステップS316が否定判定されてステップS314へ戻る。   In step S316, the reference image adding unit 104e determines whether or not processing has been completed for all the RAW data files determined as target image files in step S314. If all RAW data files have been processed, step S316 is affirmed by the reference image adding unit 104e, and the process ends. If all the RAW data files have not been processed, the reference image adding unit 104e makes a negative determination in step S316 and returns to step S314.

上述のようにして電子カメラ100で生成された付加画像ファイルは、画像送信部104gにより画像処理装置200に送信される。そして、画像処理装置200は、付加画像ファイルに含まれるRAWデータに対して、同一の付加画像ファイルに含まれる参照画像データに基づくホワイトバランス調整値を用いてホワイトバランス調整処理を施す。さらに、本実施の形態の画像処理装置200は、使用者の操作に応じて、参考画像データのうちホワイトバランス調整値の算出に用いる領域を領域画像データとして設定し、この領域画像データを用いて新たなホワイトバランス調整値を算出する。   The additional image file generated by the electronic camera 100 as described above is transmitted to the image processing apparatus 200 by the image transmission unit 104g. Then, the image processing apparatus 200 performs white balance adjustment processing on the RAW data included in the additional image file using a white balance adjustment value based on the reference image data included in the same additional image file. Furthermore, the image processing apparatus 200 according to the present embodiment sets an area used for calculating the white balance adjustment value in the reference image data as area image data in accordance with a user operation, and uses the area image data. A new white balance adjustment value is calculated.

図7は画像処理装置200(たとえばパーソナルコンピュータ)の一例を示す概略制御ブロック図である。画像処理装置200は、電子カメラ100で撮像した被写体像の画像データの表示や編集、画像データの保存を行う。画像処理装置200は、制御回路201、HDD202、モニタ制御回路203、モニタ204、メモリ205、入力装置206、メモリカードインタフェース207、および外部インタフェース212を備える。外部インタフェース212は、所定のケーブルや無線伝送路を介して電子カメラ100等の外部装置とデータ通信を行う。   FIG. 7 is a schematic control block diagram showing an example of the image processing apparatus 200 (for example, a personal computer). The image processing apparatus 200 displays and edits image data of a subject image captured by the electronic camera 100 and stores the image data. The image processing apparatus 200 includes a control circuit 201, an HDD 202, a monitor control circuit 203, a monitor 204, a memory 205, an input device 206, a memory card interface 207, and an external interface 212. The external interface 212 performs data communication with an external device such as the electronic camera 100 via a predetermined cable or wireless transmission path.

入力装置206は、使用者によって操作され、たとえばキーボードやマウスなどで構成される。HDD202には、たとえば電子カメラ100で撮影した動画や静止画に対応する画像ファイルなどが記録されている。外部インタフェース212は、たとえば画像処理装置200に電子カメラ100などの外部機器を接続するUSBインタフェースである。画像処理装置200は、メモリカードインタフェース207や外部インタフェース212を介してメモリカード109aや外部機器から画像ファイルなどを読み込む。読み込まれた画像ファイルは、制御回路201によりHDD202に記録される。上述した電子カメラ100で生成された付加画像ファイルも、同様にHDD202に記録される。   The input device 206 is operated by a user, and is composed of, for example, a keyboard and a mouse. In the HDD 202, for example, an image file corresponding to a moving image or a still image taken by the electronic camera 100 is recorded. The external interface 212 is a USB interface that connects an external device such as the electronic camera 100 to the image processing apparatus 200, for example. The image processing apparatus 200 reads an image file or the like from the memory card 109a or an external device via the memory card interface 207 or the external interface 212. The read image file is recorded on the HDD 202 by the control circuit 201. The additional image file generated by the electronic camera 100 described above is also recorded in the HDD 202 in the same manner.

制御回路201は、画像処理装置200の制御を行うマイクロコンピュータであり、CPUやROMその他周辺回路により構成される。制御回路201は、再生部201a、参考画像再生部201b、領域抽出部201c、ホワイトバランス算出部201d、および記録部201eを機能的に備える。メモリ205は制御回路201のワーキングメモリであり、たとえばSDRAMにより構成される。モニタ204は、たとえば液晶モニタやCRTモニタである。モニタ204には、モニタ制御回路203に制御されて、表示用の画像データに対応する画像および各種設定を行うためのメニュー画面などが表示される。   The control circuit 201 is a microcomputer that controls the image processing apparatus 200, and includes a CPU, a ROM, and other peripheral circuits. The control circuit 201 functionally includes a reproduction unit 201a, a reference image reproduction unit 201b, an area extraction unit 201c, a white balance calculation unit 201d, and a recording unit 201e. A memory 205 is a working memory of the control circuit 201 and is constituted by, for example, an SDRAM. The monitor 204 is, for example, a liquid crystal monitor or a CRT monitor. The monitor 204 is controlled by the monitor control circuit 203 to display an image corresponding to display image data, a menu screen for performing various settings, and the like.

次に、画像処理装置200による付加画像ファイルに対応する画像の表示処理について説明する。画像処理装置200により画像を表示する場合、使用者により画像表示ソフトを起動して実行する。この画像表示ソフトは、画像処理装置200の制御回路201内の不図示メモリに記録されている。使用者による入力装置206の操作に応じて画像表示ソフトの起動が指示されると、制御回路201は画像表示ソフトを起動する。画像表示ソフトが起動されると、制御回路201の再生部201aは、HDD202に記録された付加画像ファイルをメモリ205に読み出す。   Next, an image display process corresponding to the additional image file by the image processing apparatus 200 will be described. When an image is displayed by the image processing apparatus 200, the user activates and executes image display software. This image display software is recorded in a memory (not shown) in the control circuit 201 of the image processing apparatus 200. When activation of the image display software is instructed according to the operation of the input device 206 by the user, the control circuit 201 activates the image display software. When the image display software is activated, the playback unit 201 a of the control circuit 201 reads the additional image file recorded in the HDD 202 into the memory 205.

再生部201aは、読み出した付加画像ファイルに含まれるRAWデータファイルのRAWデータに対して、公知の色補間処理を施す。再生部201aは、色補間処理を施したRAWデータの複製を生成し、付加画像ファイルに含まれていたRAWデータとは別に複製RAWデータとしてメモリ205に格納する。そして、再生部201aは、付加画像ファイルの付加情報部に記録されたホワイトバランス調整値、すなわちゲインを読み出す。再生部201aは、読み出したホワイトバランス調整値を用いて、色補間処理の施されたRAWデータに対してホワイトバランス調整処理を施して画像データを生成する。すなわち、再生部201aは、赤色光、青色光および緑色光に対応するRAWデータのうち、赤色光および青色光に対応するRAWデータのそれぞれに対して、ホワイトバランス調整用のRゲイン(=G平均値/R平均値)およびBゲイン(=G平均値/B平均値)をかけ合わせる。さらに、再生部201aは、ホワイトバランス調整の施された画像データに対して、たとえばコントラストの調整等の色補正処理を施して表示用画像データを生成し、モニタ制御回路203に出力してモニタ204に表示用画像データに対応する画像を表示させる。   The reproducing unit 201a performs a known color interpolation process on the RAW data of the RAW data file included in the read additional image file. The reproduction unit 201a generates a copy of the RAW data subjected to the color interpolation process, and stores it in the memory 205 as a copy RAW data separately from the RAW data included in the additional image file. Then, the playback unit 201a reads the white balance adjustment value, that is, the gain, recorded in the additional information portion of the additional image file. Using the read white balance adjustment value, the reproducing unit 201a performs white balance adjustment processing on the RAW data subjected to color interpolation processing to generate image data. That is, the reproducing unit 201a performs R gain (= G average) for white balance adjustment on each of the RAW data corresponding to red light and blue light among the RAW data corresponding to red light, blue light, and green light. Value / R average value) and B gain (= G average value / B average value). Further, the playback unit 201a performs color correction processing such as contrast adjustment on the image data subjected to white balance adjustment to generate display image data, which is output to the monitor control circuit 203 to be displayed on the monitor 204. Display an image corresponding to the display image data.

本実施の形態の画像処理装置200においては、上記のようにして表示された画像に対応するRAWデータファイルと関連付けられた参考画像データに対応する参考画像を表示することができる。さらに、画像処理装置200は、表示された参考画像に基づいて、ホワイトバランス調整値の算出に用いる領域を、使用者の所望する位置に設定できる。参考画像に影等がかかっていたり、複数光源によるミックス光が照射されている場合、適正なホワイトバランス調整値が算出されていないことがある。このような場合、使用者は、参考画像のうち影等がかかっていない領域やミックス光の影響を受けていない領域を、ホワイトバランス調整値を算出するための領域(ホワイトバランス設定領域)として設定できる。そして、画像処理装置200は、ホワイトバランス設定領域に対応する参考画像データを領域画像データとして設定し、領域画像データを用いて新たにホワイトバランス調整値を算出することができる。以下、詳細に説明する。   In the image processing apparatus 200 according to the present embodiment, it is possible to display a reference image corresponding to reference image data associated with a RAW data file corresponding to an image displayed as described above. Furthermore, the image processing apparatus 200 can set an area used for calculating the white balance adjustment value at a position desired by the user based on the displayed reference image. If the reference image is shaded, or is mixed with multiple light sources, an appropriate white balance adjustment value may not be calculated. In such a case, the user sets an area in the reference image that is not shaded or unaffected by the mixed light as an area for calculating a white balance adjustment value (white balance setting area). it can. Then, the image processing apparatus 200 can set reference image data corresponding to the white balance setting region as region image data, and can newly calculate a white balance adjustment value using the region image data. Details will be described below.

参考画像再生部201bは、使用者の入力装置206の操作に応じて参考画像の表示を指示する信号(参考画像表示指示信号)を入力すると、モニタ204に表示中の画像に対応する付加画像ファイルの参考画像データに基づいて、表示用参考画像データを生成する。そして、参考画像再生部201bは、生成した表示用参考画像データをモニタ制御回路203に出力し、図8(a)に示すように、モニタ204に表示用参考画像データに対応する参考画像を表示させる。なお、参考画像の表示指示は、たとえばモニタ204に表示された画像に重畳して表示されたコマンドボタンを、入力装置206のマウス等を用いて使用者がクリック等の操作をすることで行われる。   When a reference image display instruction signal (reference image display instruction signal) is input in response to a user's operation of the input device 206, the reference image reproduction unit 201b adds an additional image file corresponding to the image being displayed on the monitor 204. Display reference image data is generated based on the reference image data. Then, the reference image reproduction unit 201b outputs the generated display reference image data to the monitor control circuit 203, and displays a reference image corresponding to the display reference image data on the monitor 204, as shown in FIG. Let The instruction to display the reference image is performed, for example, when a user performs an operation such as clicking a command button displayed superimposed on the image displayed on the monitor 204 using the mouse of the input device 206 or the like. .

図8(a)に示すように表示された参考画像においては、領域R1に影がかかっているものとして説明する。このような場合に、使用者は、領域R1を避けるようにして、領域R2のうちの任意領域、たとえば矩形R3で示す領域(以後、ホワイトバランス設定領域)を選択し、確定したものとする。なお、矩形R3の選択は、使用者が入力装置206のマウスをクリックアンドドラッグ操作することにより行うものとする。そして、使用者が矩形R3の領域を選択してからマウスをクリック操作すると矩形R3の領域がホワイトバランス設定領域として確定される。   In the reference image displayed as shown in FIG. 8A, it is assumed that the region R1 is shaded. In such a case, it is assumed that the user selects and confirms an arbitrary region in the region R2, for example, a region indicated by a rectangle R3 (hereinafter, white balance setting region) so as to avoid the region R1. The selection of the rectangle R3 is performed by the user clicking and dragging the mouse of the input device 206. When the user selects the area of the rectangle R3 and clicks the mouse, the area of the rectangle R3 is determined as the white balance setting area.

入力装置206からホワイトバランス設定領域が確定されたことを示す信号(領域確定信号)を入力すると、領域抽出部201cは、ホワイトバランス設定領域の位置を特定する。すなわち、領域抽出部201cは、モニタ204における矩形R3の左上端の座標(X1,Y1)および矩形R3の右下端の座標(X2,Y2)のそれぞれを、参照画像データ上の座標(x1,y1)および(x2,y2)に換算して、位置情報としてメモリ205に格納する。すなわち、位置情報は参考画像上においてホワイトバランス設定領域が占有する領域を示す。そして、参考画像再生部201bは、モニタ制御回路203を介して、モニタ204における参照画像の表示を終了させる。   When a signal indicating that the white balance setting region has been determined (region determination signal) is input from the input device 206, the region extraction unit 201c specifies the position of the white balance setting region. That is, the area extraction unit 201c uses the coordinates (X1, Y1) of the upper left corner of the rectangle R3 and the coordinates (X2, Y2) of the lower right corner of the rectangle R3 on the monitor 204 as coordinates (x1, y1) on the reference image data. ) And (x2, y2) and stored in the memory 205 as position information. That is, the position information indicates an area occupied by the white balance setting area on the reference image. Then, the reference image reproduction unit 201b ends the display of the reference image on the monitor 204 via the monitor control circuit 203.

ホワイトバランス算出部201dは、参照画像データのうち、上記の座標(x1,y1)および(x2,y2)により規定される領域に含まれるデータ(領域画像データ)を用いて、ホワイトバランス調整値、すなわちゲインを算出する。ホワイトバランス算出部201dは、新たに算出したホワイトバランス調整値をメモリ205に格納する。そして、再生部201aは、新たに算出したホワイトバランス調整値を用いて、複製RAWデータに対して、ホワイトバランス調整処理を施して画像データを生成する。そして、再生部201aは、画像データに基づいて表示用画像データを生成し、モニタ制御回路203に出力してモニタ204に表示用画像データに対応する画像を表示させる。このとき、再生部201aは、モニタ204に、図8(b)に示すようにホワイトバランス確定指示のためのコマンドボタンC1、C2を画像に重畳して表示させる。   The white balance calculation unit 201d uses the data (region image data) included in the region defined by the coordinates (x1, y1) and (x2, y2) in the reference image data, That is, the gain is calculated. The white balance calculation unit 201 d stores the newly calculated white balance adjustment value in the memory 205. Then, the reproducing unit 201a performs white balance adjustment processing on the duplicate RAW data using the newly calculated white balance adjustment value to generate image data. Then, the reproducing unit 201a generates display image data based on the image data, outputs the display image data to the monitor control circuit 203, and causes the monitor 204 to display an image corresponding to the display image data. At this time, the reproducing unit 201a causes the monitor 204 to display the command buttons C1 and C2 for instructing white balance as superimposed on the image as shown in FIG. 8B.

使用者が、マウス等を用いて、図8(b)のコマンドボタンC1、すなわち「YES」をクリックすると、入力装置206は制御回路201へ確定信号を出力する。確定信号を入力すると、記録部201eは、付加画像ファイルの付加情報部に記録されているホワイトバランス調整値を、ホワイトバランス算出部201dにより新たに算出されたホワイトバランス調整値に更新して記録する。さらに、記録部201eは、ホワイトバランス設定領域の座標(x1,y1)、(x2,y2)を位置情報として付加画像ファイルの付加情報部に記録する。なお、付加画像ファイルの付加情報部に既に位置情報が記録されている場合は、記録部201eは、新たなホワイトバランス設定領域に対応する位置情報に更新して記録する。   When the user uses the mouse or the like to click the command button C 1 in FIG. 8B, that is, “YES”, the input device 206 outputs a confirmation signal to the control circuit 201. When the confirmation signal is input, the recording unit 201e updates and records the white balance adjustment value recorded in the additional information unit of the additional image file with the white balance adjustment value newly calculated by the white balance calculation unit 201d. . Further, the recording unit 201e records the coordinates (x1, y1) and (x2, y2) of the white balance setting area as position information in the additional information portion of the additional image file. If position information has already been recorded in the additional information part of the additional image file, the recording unit 201e updates and records the position information corresponding to the new white balance setting area.

使用者が、マウス等を用いて、図8(b)のコマンドボタンC2、すなわち「NO」をクリックすると、入力装置206は制御回路201へ非確定信号を出力する。非確定信号を入力すると、参考画像再生部201bは、表示用参考画像データを生成してモニタ制御回路203に出力し、モニタ204に表示用参考画像データに対応する参考画像を表示させる。このとき、参考画像再生部201bは、メモリ205に格納した参考画像データ上の座標(x1,y1)および(x2,y2)を座標(X1,Y1)および座標(X2,Y2)にそれぞれ換算する。そして、参考画像再生部201bは、座標(X1,Y1)および座標(X2,Y2)をモニタ制御回路203に出力する。その結果、図8(a)に示す矩形R3が、参考画像上において位置情報に対応する領域、すなわちホワイトバランス設定領域を表す指標として、モニタ204に表示された参考画像に重畳して表示される。   When the user clicks the command button C 2 in FIG. 8B, that is, “NO” using a mouse or the like, the input device 206 outputs a non-deterministic signal to the control circuit 201. When the non-deterministic signal is input, the reference image reproduction unit 201b generates display reference image data, outputs the reference image data to the monitor control circuit 203, and causes the monitor 204 to display a reference image corresponding to the display reference image data. At this time, the reference image reproduction unit 201b converts the coordinates (x1, y1) and (x2, y2) on the reference image data stored in the memory 205 into coordinates (X1, Y1) and coordinates (X2, Y2), respectively. . Then, the reference image reproduction unit 201b outputs the coordinates (X1, Y1) and the coordinates (X2, Y2) to the monitor control circuit 203. As a result, the rectangle R3 shown in FIG. 8A is displayed as an area corresponding to the position information on the reference image, that is, an index representing the white balance setting area, superimposed on the reference image displayed on the monitor 204. .

図9のフローチャートを用いて、画像の表示処理について説明する。図9の処理を行うプログラムは制御回路201内の図示しないメモリに格納されている。このプログラムは、使用者による入力装置206の操作に応じて画像表示ソフトの起動が指示されると起動され、制御回路201により実行される。   The image display process will be described with reference to the flowchart of FIG. A program for performing the processing of FIG. 9 is stored in a memory (not shown) in the control circuit 201. This program is activated when the activation of the image display software is instructed according to the operation of the input device 206 by the user, and is executed by the control circuit 201.

ステップS401においては、再生部201aは、HDD201に記録された付加画像ファイルをメモリ205に読み出してステップS402へ進む。ステップS402においては、再生部201aは、RAWデータファイルのRAWデータに対して色補間処理を施してステップS403へ進む。このとき、再生部201aは、複製RAWデータを生成してメモリ205に格納する。ステップS403においては、再生部201aは、付加画像ファイルの付加情報部に記録されたホワイトバランス調整値を読み出す。そして、再生部201aは、このホワイトバランス調整値を用いて、色補間処理の施されたRAWデータに対してホワイトバランス調整処理を施して画像データを生成し、ステップS404へ進む。   In step S401, the reproducing unit 201a reads the additional image file recorded in the HDD 201 into the memory 205, and proceeds to step S402. In step S402, the reproducing unit 201a performs color interpolation processing on the RAW data of the RAW data file, and the process proceeds to step S403. At this time, the playback unit 201 a generates duplicate RAW data and stores it in the memory 205. In step S403, the reproducing unit 201a reads the white balance adjustment value recorded in the additional information portion of the additional image file. Then, the playback unit 201a generates image data by performing white balance adjustment processing on the RAW data subjected to color interpolation processing using the white balance adjustment value, and proceeds to step S404.

ステップS404においては、再生部201aは、画像データに対してたとえばコントラスト調整等の色補正処理を施して、ステップS405へ進む。ステップS405においては、再生部201aは、色補正処理の施された表示用画像データを生成してモニタ制御回路203へ出力し、モニタ204に表示用画像データに対応する画像を表示させてステップS406へ進む。ステップS406においては、参考画像再生部201bは、使用者による参考画像表示指示の有無を判定する。参考画像表示の指示があった場合、すなわち入力装置206から参考画像表示指示信号を入力した場合は、参考画像再生部201bによりステップS406が肯定判定されてステップS407へ進む。参考画像表示指示信号を入力しない場合は、参考画像再生部201bによりステップS406が否定判定されて、参考画像表示指示信号を入力するまで待機する。   In step S404, the reproducing unit 201a performs color correction processing such as contrast adjustment on the image data, and then proceeds to step S405. In step S405, the reproduction unit 201a generates display image data on which color correction processing has been performed, outputs the display image data to the monitor control circuit 203, and causes the monitor 204 to display an image corresponding to the display image data, thereby performing step S406. Proceed to In step S406, the reference image reproduction unit 201b determines whether there is a reference image display instruction from the user. When a reference image display instruction is given, that is, when a reference image display instruction signal is input from the input device 206, step S406 is affirmed by the reference image reproduction unit 201b, and the process proceeds to step S407. When the reference image display instruction signal is not input, the reference image reproduction unit 201b makes a negative determination in step S406 and waits until the reference image display instruction signal is input.

ステップS407においては、参考画像再生部201bは、モニタ204に表示中の画像に対応する付加画像ファイルの参考画像データに基づいて、表示用参考画像データを生成する。そして、参考画像再生部201bは、生成した表示用参考画像データをモニタ制御回路203に出力し、モニタ204に表示用参考画像データに対応する参考画像を表示させてステップS408へ進む。このとき、付加画像ファイルの付加情報部に位置情報が記録されている場合は、参考画像再生部201bは、位置情報をモニタ制御回路203へ出力し、ホワイトバランス設定領域に対応する指標を参考画像に重畳して表示させる。   In step S407, the reference image reproduction unit 201b generates display reference image data based on the reference image data of the additional image file corresponding to the image being displayed on the monitor 204. Then, the reference image reproduction unit 201b outputs the generated reference image data for display to the monitor control circuit 203, displays the reference image corresponding to the reference image data for display on the monitor 204, and proceeds to step S408. At this time, if the position information is recorded in the additional information part of the additional image file, the reference image reproduction unit 201b outputs the position information to the monitor control circuit 203, and sets the index corresponding to the white balance setting area as the reference image. Superimposed on the display.

ステップS408においては、領域抽出部201cは、ホワイトバランス設定領域の確定操作が行われたか否かを判定する。使用者によりホワイトバランス設定領域が選択され確定操作が行われた場合、すなわち入力装置206から領域確定信号を入力した場合は、領域抽出部201cによりステップS408が肯定判定されてステップS409へ進む。このとき、領域抽出部201cは、設定されたホワイトバランス設定領域の位置を特定し、位置情報をメモリ205に格納する。入力装置206から領域確定信号を入力しない場合は、領域抽出部201cによりステップS408が否定判定されて、領域確定信号を入力するまで待機する。   In step S408, the region extraction unit 201c determines whether or not a white balance setting region determination operation has been performed. When the user selects a white balance setting region and performs a confirmation operation, that is, when a region confirmation signal is input from the input device 206, the region extraction unit 201c makes a positive determination in step S408 and proceeds to step S409. At this time, the area extraction unit 201 c specifies the position of the set white balance setting area, and stores the position information in the memory 205. When the region determination signal is not input from the input device 206, the region extraction unit 201c makes a negative determination in step S408 and waits until the region determination signal is input.

ステップS409においては、参考画像再生部201bは、モニタ制御回路203を介して、モニタ204における参考画像の表示を終了させてステップS410へ進む。ステップS410においては、ホワイトバランス算出部201dは、領域画像データを用いて、新たにホワイトバランス調整値を算出する。そして、ホワイトバランス算出部201dは、新たに算出されたホワイトバランス調整値をメモリ205に格納してステップS411へ進む。   In step S409, the reference image reproduction unit 201b ends the display of the reference image on the monitor 204 via the monitor control circuit 203, and proceeds to step S410. In step S410, the white balance calculation unit 201d newly calculates a white balance adjustment value using the region image data. Then, the white balance calculation unit 201d stores the newly calculated white balance adjustment value in the memory 205, and proceeds to step S411.

ステップS411においては、再生部201aは、ステップS410においてホワイトバランス算出部201dにより算出されたホワイトバランス調整値を用いて、複製RAWデータに対してホワイトバランス調整処理を施してステップS412へ進む。ステップS412(色補正処理)およびステップS413(画像表示)の各処理は、ステップS404(色補正処理)およびステップS405(画像表示)の各処理と同様である。   In step S411, the reproducing unit 201a performs white balance adjustment processing on the duplicate RAW data using the white balance adjustment value calculated by the white balance calculating unit 201d in step S410, and the process proceeds to step S412. Each process of step S412 (color correction process) and step S413 (image display) is the same as each process of step S404 (color correction process) and step S405 (image display).

ステップS414においては、記録部201eは、ホワイトバランス確定操作の有無を判定する。ホワイトバランス確定操作があった場合、すなわち入力装置206から確定信号を入力した場合、記録部201eによりステップS414が肯定判定されてステップS415へ進む。入力装置206から非確定信号を入力した場合は、記録部201eによりステップS414が否定判定されてステップS407へ戻る。ステップS415においては、記録部201eは、ステップS410でホワイトバランス算出部201dにより算出されたホワイトバランス調整値を付加画像ファイルの付加情報部に更新して記録する。さらに、記録部201eは、ホワイトバランス設定領域を示す位置情報、すなわち座標値を付加画像ファイルの付加情報部に記録して、処理を終了する。   In step S414, the recording unit 201e determines the presence / absence of a white balance determination operation. When the white balance confirmation operation is performed, that is, when a confirmation signal is input from the input device 206, the recording unit 201e makes a positive determination in step S414 and proceeds to step S415. If a non-deterministic signal is input from the input device 206, the recording unit 201e makes a negative determination in step S414 and returns to step S407. In step S415, the recording unit 201e updates and records the white balance adjustment value calculated by the white balance calculation unit 201d in step S410 in the additional information unit of the additional image file. Further, the recording unit 201e records the position information indicating the white balance setting area, that is, the coordinate value in the additional information portion of the additional image file, and ends the process.

以上で説明した実施の形態によれば、以下の作用効果が得られる。
(1)画像処理装置200の外部インタフェース212は、電子カメラ100により取得されたRAWデータファイルに参考画像データが付加された付加画像ファイルを読み込みむようにした。再生部201aは、付加画像ファイルの付加情報部に記録された参考画像データに基づくホワイトバランス調整値を用いて、RAWデータに対して画像処理を施し、表示用画像データを生成するようにした。さらに、画像処理装置200の参考画像再生部201bは、参考画像データに対応する参考画像をモニタ204に表示する。入力装置206は、モニタ208に表示された参考画像上の任意の領域をホワイトバランス設定領域として指定するための指定操作を受け付ける。そして、領域抽出部201cは、参考画像データから、ホワイトバランス設定領域に対応する領域画像データを抽出し、ホワイトバランス算出部201dは、領域画像データに基づいて、ホワイトバランス調整のためのホワイトバランス調整値を算出するようにした。そして、再生部201aは、ホワイトバランス算出部201dにより算出された新たなホワイトバランス調整値に基づいて、RAWデータに対してホワイトバランス調整処理を施し、表示用画像データを生成するようにした。参考画像に影等がかかっていたり、複数光源によるミックス光が照射されている場合、適正なホワイトバランス調整値が算出されていないことがある。このような場合、付加画像ファイルには参考画像データが含まれているので、使用者は、参考画像に基づいて、適正なホワイトバランス調整値が算出されていない原因を認識できるので利便性が高まる。さらに、使用者は、参考画像のうち影等がかかっていない領域やミックス光の影響を受けていない領域をホワイトバランス設定領域として設定することができる。その結果、適正なホワイトバランス調整値が得られていない場合には、新たに適正なホワイトバランス調整値を算出し、ホワイトバランス調整処理を施すことができるので、画質を向上させることができる。
According to the embodiment described above, the following operational effects can be obtained.
(1) The external interface 212 of the image processing apparatus 200 reads the additional image file in which the reference image data is added to the RAW data file acquired by the electronic camera 100. The playback unit 201a uses the white balance adjustment value based on the reference image data recorded in the additional information portion of the additional image file to perform image processing on the RAW data to generate display image data. Further, the reference image reproduction unit 201b of the image processing apparatus 200 displays a reference image corresponding to the reference image data on the monitor 204. The input device 206 accepts a designation operation for designating an arbitrary area on the reference image displayed on the monitor 208 as a white balance setting area. Then, the region extraction unit 201c extracts region image data corresponding to the white balance setting region from the reference image data, and the white balance calculation unit 201d performs white balance adjustment for white balance adjustment based on the region image data. The value was calculated. The reproduction unit 201a performs white balance adjustment processing on the RAW data based on the new white balance adjustment value calculated by the white balance calculation unit 201d, and generates display image data. If the reference image is shaded or mixed light from a plurality of light sources is applied, an appropriate white balance adjustment value may not be calculated. In such a case, since the additional image file includes the reference image data, the user can recognize the cause that the appropriate white balance adjustment value is not calculated based on the reference image, so that the convenience is improved. . Further, the user can set a region of the reference image that is not shaded or an area that is not affected by the mixed light as the white balance setting region. As a result, when an appropriate white balance adjustment value is not obtained, a new appropriate white balance adjustment value can be calculated and a white balance adjustment process can be performed, so that the image quality can be improved.

(2)記録部201eは、ホワイトバランス算出部201dにより算出されたホワイトバランス調整値を保存するようにした。したがって、次回以降に画像を表示する際に、修正済のホワイトバランス調整値を用いてホワイトバランス調整処理が施されるので、高画質の画像を得ることができる。 (2) The recording unit 201e stores the white balance adjustment value calculated by the white balance calculation unit 201d. Therefore, when the image is displayed next time or later, the white balance adjustment process is performed using the corrected white balance adjustment value, so that a high-quality image can be obtained.

(3)記録部201eは、参考画像上において指定操作により指定されたホワイトバランス設定領域が占有する位置を示す位置情報を保存するようにした。そして、参考画像再生部201bは、位置情報に基づいて、ホワイトバランス設定領域を示す指標を参考画像に重畳してモニタ204に表示するようにした。したがって、使用者は、現在のホワイトバランス調整値の算出に用いられているホワイトバランス設定領域を画面上で確認できるので、ホワイトバランス設定領域を変更する際の利便性が向上する。 (3) The recording unit 201e stores position information indicating the position occupied by the white balance setting area designated by the designation operation on the reference image. Then, the reference image reproduction unit 201b superimposes an index indicating the white balance setting area on the reference image based on the position information and displays the index on the monitor 204. Therefore, the user can confirm the white balance setting area used for calculating the current white balance adjustment value on the screen, so that the convenience when changing the white balance setting area is improved.

以上で説明した実施の形態を以下のように変形できる。
(1)ホワイトバランス設定領域の位置情報を付加画像ファイルの付加情報部に記録するものに代えて、領域画像データを記録してもよい。この場合、記録部201eは、領域抽出部201cにより参考画像データから抽出された領域画像データを、RAWデータファイルと参考画像データとが含まれる付加画像ファイルに付加すればよい。このときの付加画像ファイルのデータ構造の一例を図10に模式的に示す。図10に示すように、付加画像ファイルには、RAWデータファイルが主画像、参考画像データが第1副画像、領域画像データが第2副画像として含まれることになる。
The embodiment described above can be modified as follows.
(1) Instead of recording the position information of the white balance setting area in the additional information part of the additional image file, area image data may be recorded. In this case, the recording unit 201e may add the region image data extracted from the reference image data by the region extraction unit 201c to the additional image file including the RAW data file and the reference image data. An example of the data structure of the additional image file at this time is schematically shown in FIG. As shown in FIG. 10, the additional image file includes a RAW data file as a main image, reference image data as a first sub image, and area image data as a second sub image.

(2)色補間および圧縮処理が施された参考画像データを用いて付加画像ファイルを生成するものに代えて、色補間処理が施された非圧縮の参考画像データを用いてもよい。さらに、色補間処理の施されていないRAWデータを参考画像データとして用いてもよい。 (2) Instead of generating an additional image file using reference image data subjected to color interpolation and compression processing, uncompressed reference image data subjected to color interpolation processing may be used. Furthermore, RAW data that has not been subjected to color interpolation processing may be used as reference image data.

(3)記録部201eは、予め付加画像ファイルの付加情報部に記録されていたホワイトバランス調整値を更新し上書き保存するごとに、それ以前に記録されていたホワイトバランス調整値の更新履歴を記録してもよい。この場合、記録部201eは、更新履歴と新たに算出したホワイトバランス調整値を付加画像ファイルの付加情報部に記録する。 (3) The recording unit 201e records the update history of the white balance adjustment value recorded before each time the white balance adjustment value previously recorded in the additional information portion of the additional image file is updated and overwritten. May be. In this case, the recording unit 201e records the update history and the newly calculated white balance adjustment value in the additional information unit of the additional image file.

(4)参考画像付加部104eは、付加画像ファイルを生成するものに代えて、関連付けされたRAWデータファイルおよび参考画像ファイルの少なくとも一方に、関連付けがされていることを示す情報(関連付け情報)を付加するようにしてもよい。この場合、参考画像付加部104eは、RAWデータファイルの付加情報部に、関連付けされている参考画像ファイルのパス、ファイル名等を関連付け情報として書き込めばよい。なお、参考画像付加部104eは、参考画像ファイルの付加情報部に、関連付けされているRAWデータファイルのパス、ファイル名等を関連付け情報として書き込んでもよいし、RAWデータファイルと参考画像ファイルの両者の付加情報部に関連付け情報を書き込んでもよい。 (4) The reference image adding unit 104e, instead of generating the additional image file, displays information (association information) indicating that at least one of the associated RAW data file and reference image file is associated. You may make it add. In this case, the reference image adding unit 104e may write the path, file name, and the like of the associated reference image file as association information in the additional information portion of the RAW data file. The reference image adding unit 104e may write the associated RAW data file path, file name, and the like as association information in the additional information portion of the reference image file, or both the RAW data file and the reference image file. The association information may be written in the additional information section.

(5)参考画像付加部104eは、付加画像ファイルを生成するものに代えて、RAWデータファイルと参考画像ファイルのそれぞれに対して、関連付けがされていることを示すファイル名を付与してもよい。この場合、参考画像付加部104eは、たとえばファイル名「DSC.0004.nef」のRAWデータファイルと「DSC.0002s.jpg」の参考画像ファイルとを関連付ける際に、それぞれのファイル名に共通する名称として、たとえば「・・・_r1」等を付与すればよい。すなわち、参考画像付加部104eは、RAWデータファイルのファイル名を「DSC.0004_r1.nef」とし、参考画像ファイルのファイル名を「DSC.0002s_r1.jpg」とすればよい。 (5) The reference image adding unit 104e may give a file name indicating that the RAW data file and the reference image file are associated with each other, instead of generating the additional image file. . In this case, when the reference image adding unit 104e associates, for example, the RAW data file with the file name “DSC.0004.nef” with the reference image file with “DSC.0002s.jpg”, the name common to each file name For example, “... _R1” or the like may be given. That is, the reference image adding unit 104e may set the file name of the RAW data file to “DSC.0004_r1.nef” and the file name of the reference image file to “DSC.0002s_r1.jpg”.

(6)参考画像付加部104eは、付加画像ファイルを生成するものに代えて、RAWデータファイルと参考画像ファイルが関連付けされていることを示す関連付け情報を作成し、この関連付け情報をメモリカード109aに記録してもよい。この場合、参考画像付加部104eは、関連付け情報として、たとえば図11に示すように、関連付けされたRAWデータファイルと参考画像ファイルとを対応付けたデータベース等を作成すればよい。 (6) Instead of generating the additional image file, the reference image adding unit 104e creates association information indicating that the RAW data file and the reference image file are associated, and stores the association information in the memory card 109a. It may be recorded. In this case, the reference image adding unit 104e may create a database or the like associating the associated RAW data file with the reference image file as the association information, for example, as shown in FIG.

(7)画像処理装置200に代えて、電子カメラ100で参考画像の表示、ホワイトバランス設定領域に対応する領域画像データの抽出、および領域画像データを用いたホワイトバランス調整値の算出を行うようにしてもよい。この場合、システム制御部104に、参考画像再生部、領域抽出部、ホワイトバランス算出部を機能的に備えるようにする。そして、この参考画像再生部、領域抽出部、ホワイトバランス算出部が、上述した画像処理装置200の参考画像再生部201b、領域抽出部201c、ホワイトバランス算出部201dと同様にして図9のフローチャートに示す処理を実行すればよい。 (7) Instead of the image processing apparatus 200, the electronic camera 100 displays a reference image, extracts area image data corresponding to the white balance setting area, and calculates a white balance adjustment value using the area image data. May be. In this case, the system control unit 104 is functionally provided with a reference image reproduction unit, a region extraction unit, and a white balance calculation unit. Then, the reference image reproduction unit, the region extraction unit, and the white balance calculation unit are added to the flowchart of FIG. 9 in the same manner as the reference image reproduction unit 201b, the region extraction unit 201c, and the white balance calculation unit 201d of the image processing apparatus 200 described above. What is necessary is just to perform the process shown.

また、本発明の特徴を損なわない限り、本発明は上記実施の形態に限定されるものではなく、本発明の技術的思想の範囲内で考えられるその他の形態についても、本発明の範囲内に含まれる。説明に用いた実施の形態および変形例は、それぞれを適宜組合わせて構成しても構わない。   In addition, the present invention is not limited to the above-described embodiment as long as the characteristics of the present invention are not impaired, and other forms conceivable within the scope of the technical idea of the present invention are also within the scope of the present invention. included. The embodiments and modifications used in the description may be configured by appropriately combining them.

100 電子カメラ、 200 画像処理装置、 201 制御回路
201a 再生部、 201b 参考画像再生部、 201c 領域抽出部、
201d ホワイトバランス算出部、 201e 記録部、 203 モニタ制御回路、
204 モニタ、 206 入力装置、 212 外部インタフェース

DESCRIPTION OF SYMBOLS 100 Electronic camera, 200 Image processing apparatus, 201 Control circuit 201a Reproduction | regeneration part, 201b Reference image reproduction | regeneration part, 201c Area | region extraction part,
201d white balance calculation unit, 201e recording unit, 203 monitor control circuit,
204 monitor, 206 input device, 212 external interface

Claims (5)

撮像装置により取得された本画像データと、前記本画像データに関連付けされた、前記本画像データに対するホワイトバランス調整を施す際に使用する参考画像データとを読み込む読込手段と、
前記本画像データと関連付けされた前記参考画像データに基づくホワイトバランス調整値を用いて、前記本画像データに対して画像処理を施し、表示用画像データを生成する表示用画像生成手段と、
前記表示用画像データに対応する表示用画像を表示器に表示する表示制御手段と、
前記参考画像データに対応する参考画像を前記表示器に表示する参考画像表示制御手段と、
前記表示器に表示された前記参考画像上の任意の領域を指定するための指定操作を受け付ける領域指定受付手段と、
前記参考画像データから、前記指定操作により指定された前記領域に対応する領域画像データを抽出する抽出手段と、
前記抽出された前記領域画像データに基づいて、ホワイトバランス調整のためのホワイトバランス調整値を算出する算出手段とを備え、
前記表示用画像生成手段は、前記算出手段により算出された前記ホワイトバランス調整値に基づいて、前記本画像データに対してホワイトバランス調整処理を施し、前記表示用画像データを生成することを特徴とする画像処理装置。
Reading means for reading main image data acquired by an imaging device and reference image data associated with the main image data and used when white balance adjustment is performed on the main image data;
Display image generating means for performing image processing on the main image data using a white balance adjustment value based on the reference image data associated with the main image data, and generating display image data;
Display control means for displaying a display image corresponding to the display image data on a display;
Reference image display control means for displaying a reference image corresponding to the reference image data on the display;
Area designation accepting means for accepting a designation operation for designating an arbitrary area on the reference image displayed on the display;
Extraction means for extracting region image data corresponding to the region designated by the designation operation from the reference image data;
Calculating means for calculating a white balance adjustment value for white balance adjustment based on the extracted region image data;
The display image generation means performs white balance adjustment processing on the main image data based on the white balance adjustment value calculated by the calculation means, and generates the display image data. An image processing apparatus.
請求項1に記載の画像処理装置において、
前記算出手段により算出された前記ホワイトバランス調整値を保存する保存手段をさらに備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
An image processing apparatus, further comprising: a storage unit that stores the white balance adjustment value calculated by the calculation unit.
請求項1に記載の画像処理装置において、
前記参考画像上において前記指定操作により指定された前記領域が占有する位置を示す位置情報を保存する保存手段をさらに備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
An image processing apparatus, further comprising: a storage unit that stores position information indicating a position occupied by the area designated by the designation operation on the reference image.
請求項1に記載の画像処理装置において、
前記領域画像データを保存する保存手段をさらに備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
An image processing apparatus, further comprising storage means for storing the region image data.
請求項3に記載の画像処理装置において、
前記参考画像表示制御手段は、前記位置情報に基づいて、前記指定操作により指定された前記領域を示す指標を前記参考画像に重畳して表示することを特徴とする画像処理装置。
The image processing apparatus according to claim 3.
The image processing apparatus according to claim 1, wherein the reference image display control means superimposes and displays an index indicating the region designated by the designation operation on the reference image based on the position information.
JP2009002468A 2009-01-08 2009-01-08 Image processing device Active JP5453812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009002468A JP5453812B2 (en) 2009-01-08 2009-01-08 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009002468A JP5453812B2 (en) 2009-01-08 2009-01-08 Image processing device

Publications (2)

Publication Number Publication Date
JP2010161627A true JP2010161627A (en) 2010-07-22
JP5453812B2 JP5453812B2 (en) 2014-03-26

Family

ID=42578452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009002468A Active JP5453812B2 (en) 2009-01-08 2009-01-08 Image processing device

Country Status (1)

Country Link
JP (1) JP5453812B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014160993A (en) * 2013-02-20 2014-09-04 Nikon Corp Imaging apparatus and program
CN106331661A (en) * 2015-06-25 2017-01-11 西安中兴新软件有限责任公司 White balance processing method and device
JP2017208867A (en) * 2017-08-31 2017-11-24 株式会社ニコン Imaging apparatus and program
EP3442218A1 (en) * 2017-08-09 2019-02-13 Canon Kabushiki Kaisha Imaging apparatus and control method for outputting images with different input/output characteristics in different regions and region information, client apparatus and control method for receiving images with different input/output characteristics in different regions and region information and displaying the regions in a distinguishable manner
CN113228614A (en) * 2018-12-25 2021-08-06 索尼集团公司 Imaging apparatus, control method, and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06197372A (en) * 1992-12-24 1994-07-15 Canon Inc Video reproduction device
JP2000156869A (en) * 1998-11-19 2000-06-06 Nikon Corp Digital camera
JP2001275122A (en) * 2000-03-27 2001-10-05 Minolta Co Ltd Digital camera
JP2005064630A (en) * 2003-08-20 2005-03-10 Nikon Corp Image pickup apparatus
JP2008067298A (en) * 2006-09-11 2008-03-21 Casio Comput Co Ltd Photography apparatus and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06197372A (en) * 1992-12-24 1994-07-15 Canon Inc Video reproduction device
JP2000156869A (en) * 1998-11-19 2000-06-06 Nikon Corp Digital camera
JP2001275122A (en) * 2000-03-27 2001-10-05 Minolta Co Ltd Digital camera
JP2005064630A (en) * 2003-08-20 2005-03-10 Nikon Corp Image pickup apparatus
JP2008067298A (en) * 2006-09-11 2008-03-21 Casio Comput Co Ltd Photography apparatus and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014160993A (en) * 2013-02-20 2014-09-04 Nikon Corp Imaging apparatus and program
CN106331661A (en) * 2015-06-25 2017-01-11 西安中兴新软件有限责任公司 White balance processing method and device
EP3442218A1 (en) * 2017-08-09 2019-02-13 Canon Kabushiki Kaisha Imaging apparatus and control method for outputting images with different input/output characteristics in different regions and region information, client apparatus and control method for receiving images with different input/output characteristics in different regions and region information and displaying the regions in a distinguishable manner
JP2017208867A (en) * 2017-08-31 2017-11-24 株式会社ニコン Imaging apparatus and program
CN113228614A (en) * 2018-12-25 2021-08-06 索尼集团公司 Imaging apparatus, control method, and program
CN113228614B (en) * 2018-12-25 2023-06-20 索尼集团公司 Imaging apparatus, control method, and program

Also Published As

Publication number Publication date
JP5453812B2 (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US20030071904A1 (en) Image capturing apparatus, image reproducing apparatus and program product
JP2006115139A (en) Image correction apparatus and method of controlling it
JP2003289498A (en) Digital camera and image data processing system
JP5076717B2 (en) Electronic camera
JP2003274335A (en) Information recording device
KR100797113B1 (en) Image pickup apparatus and control method of the apparatus
JP2010130437A (en) Imaging device and program
JP2008109630A (en) Image display controlling device, imaging apparatus, image display method, and program thereof
JP5453812B2 (en) Image processing device
JP5282530B2 (en) Digital camera
JP2009044240A (en) Electronic camera
JP2004215157A (en) Imaging apparatus and program
JP4352554B2 (en) Electronic camera
US20050212943A1 (en) Digital camera
JP2011077654A (en) Imaging apparatus, control method thereof and program
JP4888711B2 (en) Scene selection screen generation device, scene selection screen addition system, scene selection screen generation method, scene selection screen addition method, and program
JP5125299B2 (en) Electronic camera
US20050162520A1 (en) Digital camera and method of controlling the same
JP5195317B2 (en) Camera device, photographing method, and photographing control program
JP5147600B2 (en) Image editing system
JP2005278003A (en) Image processing apparatus
JPWO2004008750A1 (en) Digital camera
JP2011024097A (en) Imaging apparatus, photographing processing method, and program
JP2010220229A (en) Image capturing apparatus and method of controlling the same
JP4992597B2 (en) Imaging apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111229

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120619

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130312

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130513

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131223

R150 Certificate of patent or registration of utility model

Ref document number: 5453812

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250