JP2014057250A - Image processing system, control method of the same, control program, and recording medium - Google Patents

Image processing system, control method of the same, control program, and recording medium Download PDF

Info

Publication number
JP2014057250A
JP2014057250A JP2012201610A JP2012201610A JP2014057250A JP 2014057250 A JP2014057250 A JP 2014057250A JP 2012201610 A JP2012201610 A JP 2012201610A JP 2012201610 A JP2012201610 A JP 2012201610A JP 2014057250 A JP2014057250 A JP 2014057250A
Authority
JP
Japan
Prior art keywords
image
image data
file
control unit
system control
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
JP2012201610A
Other languages
Japanese (ja)
Other versions
JP6057633B2 (en
Inventor
Yohei Fujitani
洋平 藤谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2012201610A priority Critical patent/JP6057633B2/en
Publication of JP2014057250A publication Critical patent/JP2014057250A/en
Application granted granted Critical
Publication of JP6057633B2 publication Critical patent/JP6057633B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To prevent occurrence of unnatural change in aspect ratio (that is an angle of view) in image reproduction.SOLUTION: A system controller 50 generates first image data in accordance with an image signal obtained as a result of imaging, and generates second image data which has a smaller size than the first image data and has the same aspect ratio as that of the first image data. Furthermore, the system controller generates third image data which has a smaller size than the first image data and has a previously selected aspect ratio. The system controller records the first image data, the second image data, and the third image data as an image file on a recording medium 200.

Description

本発明は、静止画像を記録再生するための画像処理装置、その制御方法、制御プログラム、並びに記録媒体に関する。   The present invention relates to an image processing apparatus for recording and reproducing still images, a control method thereof, a control program, and a recording medium.

近年、電子スチルカメラ(以下デジタルカメラという)において再生モードの際、記録済み画像データの読み出しおよび表示速度を向上させるため、データ量が多い本画像の画像データファイルおよびデータ量の少ないサムネイル画像の画像データファイルを生成するようにしている。   In recent years, in the playback mode of an electronic still camera (hereinafter referred to as a digital camera), an image data file of a main image with a large amount of data and a thumbnail image with a small amount of data are used to improve the reading and display speed of recorded image data. A data file is generated.

一方、デジタルカメラにおいて、その撮像素子のアスペクトと異なるアスペクトを選択して撮影を行うようにしてものがある。この種のデジタルカメラでは、再生表示の際には撮影の際に選択したアスペクトに応じた画像を表示する必要がある。   On the other hand, in some digital cameras, shooting is performed by selecting an aspect different from the aspect of the image sensor. In this type of digital camera, it is necessary to display an image according to the aspect selected at the time of shooting during playback display.

しかし、選択したアスペクト比には関わらず、撮影の際に撮像素子と同一のアスペクト比で画像データを記録しておき、再生の際にサムネイル画像データや本画像データを撮影の際に選択したアスペクト比に従ってトリミングして画像表示する場合には、再生の際の負荷が大きい。特に、画像を順番に切り替えながら表示させようとする場合には、デジタルカメラなどの画像処理装置では高い画像処理能力を備える必要がある。このため、デジタルカメラの画像処理能力に依存することなく、選択されたアスペクト比で本画像データなどを再生するためには、撮影の際のアスペクト比で本画像データおよびサムネイル画像を生成して記録することが好ましい。   However, regardless of the selected aspect ratio, the image data is recorded with the same aspect ratio as the image sensor at the time of shooting, and the thumbnail image data and the main image data are selected at the time of shooting. When the image is displayed by trimming according to the ratio, the load during reproduction is large. Particularly when an image is to be displayed while being sequentially switched, an image processing apparatus such as a digital camera needs to have a high image processing capability. Therefore, in order to reproduce the main image data with the selected aspect ratio without depending on the image processing capability of the digital camera, the main image data and the thumbnail image are generated and recorded with the aspect ratio at the time of shooting. It is preferable to do.

なお、高速に画像の再生を行うため、主画像の画像情報のうちの一部の画像情報を取り出して生成し副画像データとして、副画像データと主画像データを関連付けて、識別可能にメモリに記録するようにしたものがある(特許文献1参照)。   In addition, in order to perform high-speed image reproduction, a part of the image information of the main image is extracted and generated as sub-image data so that the sub-image data and the main image data are associated with each other in an identifiable memory. Some are recorded (see Patent Document 1).

特開平7−245723号公報JP-A-7-245723

ところで、上述のように、アスペクト比を選択して撮影を行ったとしても、デジタルカメラの仕様によって搭載された撮像素子のアスペクトで本画像データを記録しなければならない機種がある。このような機種では、サムネイル画像データについては撮影の際の選択されたアスペクト比でメモリに記録し、本画像データについては、選択されたアスペクト比に関わらず撮像素子のアスペクト比でメモリに記録する。このため、再生の際には、デジタルカメラは再生すべき画像データが撮影されたときに選択されていたアスペクト比を判定して、その判定結果に従って本画像データに枠表示するなどの処理を行う必要がある。   By the way, as described above, there is a model in which the actual image data must be recorded in the aspect of the image pickup device mounted according to the specifications of the digital camera even when the image is picked up by selecting the aspect ratio. In such a model, thumbnail image data is recorded in the memory with the aspect ratio selected at the time of shooting, and the main image data is recorded in the memory with the aspect ratio of the image sensor regardless of the selected aspect ratio. . Therefore, at the time of playback, the digital camera determines the aspect ratio that was selected when the image data to be played back was shot, and performs processing such as displaying a frame on the main image data according to the determination result. There is a need.

ここで、メモリにサムネイル画像データおよび本画像データを記録する際のファイル形式について説明する。   Here, a file format for recording thumbnail image data and main image data in the memory will be described.

図20は、画像データを記録する際のファイル形式を説明するための図である。そして、図20(a)はファイルフォーマットを示す図であり、図20(b)はアスペクト比(画角)の判定を行うことができるデジタルカメラにおける再生を示す図である。また、図20(c)はアスペクト比(画角)の判定を行うことができないデジタルカメラにおける再生を示す図である。   FIG. 20 is a diagram for explaining a file format for recording image data. FIG. 20A is a diagram showing a file format, and FIG. 20B is a diagram showing reproduction in a digital camera capable of determining an aspect ratio (view angle). FIG. 20C is a diagram showing playback in a digital camera that cannot determine the aspect ratio (view angle).

図20(a)に示すように、画像ファイルは、ヘッダ(Header)、サムネイル画像部(THM)、JPEG画像部(表示用JPG)、RAWヘッダ部(TWAIN)、およびRAWデータ部(RAW)を有している。いま、デジタルカメラにおいて、アスペクト比(つまり、画角)を選択して撮影を行うと図20(a)に示すファイルフォーマットで画像データがメモリに記録されるとする。   As shown in FIG. 20A, the image file includes a header (Header), a thumbnail image portion (THM), a JPEG image portion (display JPG), a RAW header portion (TWAIN), and a RAW data portion (RAW). Have. Now, in a digital camera, when shooting is performed with an aspect ratio (that is, an angle of view) selected, image data is recorded in the memory in the file format shown in FIG.

この際、Headerに選択アスペクト比情報(選択画角情報)が記録され、THMが選択画角で記録される。さらに、表示用JPGが選択画角で記録されて、RAWが選択画角に拘わらず全画面画角で記録される。   At this time, the selected aspect ratio information (selected angle of view information) is recorded in the header, and THM is recorded at the selected angle of view. Further, the display JPG is recorded at the selected angle of view, and the RAW is recorded at the full screen angle of view regardless of the selected angle of view.

図20(a)に示す画像ファイルにおけるRAWを再生する際には、例えば、サイズの大きいRAWを読み込む前に表示用JPGが簡易表示され、その後、RAWが再生される。   When the RAW in the image file shown in FIG. 20A is reproduced, for example, the display JPG is simply displayed before the large RAW is read, and then the RAW is reproduced.

図20(a)に示す画像ファイルを再生する際、アスペクト比の判定を行うことができるデジタルカメラでは、Headerに記録された選択画角情報に応じてRAWのサイズをトリミング表示するか又は枠表示することができる(図20(b)参照)。   In the digital camera capable of determining the aspect ratio when reproducing the image file shown in FIG. 20A, the RAW size is trimmed or framed according to the selected field angle information recorded in the header. (See FIG. 20B).

ところが、アスペクト比の判定を行うことができないデジタルカメラでは、選択画角で記録されたJPGデータを再生した後、全面画角でRAWを再生してしまうことになる(図20(c)参照)。   However, in a digital camera that cannot determine the aspect ratio, RAW is reproduced at the full field angle after reproducing the JPG data recorded at the selected field angle (see FIG. 20C). .

このため、図20(c)に示すように、RAWの再生の際、RAWの画像が簡易表示と繋がりがなくその画角が不自然に変化して表示されてしまう。そして、再生の際にRAW又はJPEGデータを画角情報に合わせてトリミング表示することはできない。   For this reason, as shown in FIG. 20C, during RAW reproduction, the RAW image is not connected to the simple display and the angle of view is unnaturally changed and displayed. Then, RAW or JPEG data cannot be trimmed and displayed in accordance with the angle of view information during reproduction.

つまり、デジタルカメラがアスペクト比の判定を行うことができないと、アスペクト比が異なるサムネイル画像データおよび本画像データを順に読み出して画面表示する際、不自然な画角変化が発生してしまうことになる。   In other words, if the digital camera cannot determine the aspect ratio, an unnatural change in the angle of view will occur when thumbnail image data and main image data having different aspect ratios are sequentially read and displayed on the screen. .

従って、本発明の目的は、サムネイル画像データと本画像データとを互いに異なるアスペクト比で記録しなければならない場合においても画像再生の際にアスペクト比(つまり、画角)の不自然な変化が生じることのない画像処理装置、その制御方法、および制御プログラム、並びに記録媒体を提供することにある。   Therefore, an object of the present invention is to cause an unnatural change in the aspect ratio (that is, the angle of view) during image reproduction even when the thumbnail image data and the main image data have to be recorded with different aspect ratios. An image processing apparatus, a control method thereof, a control program, and a recording medium are provided.

上記の目的を達成するため、本発明による画像処理装置は、撮影の結果得られた画像信号を画像処理して画像ファイルとしてメモリに記録する画像処理装置であって、前記画像信号に応じて第1の画像データを生成する第1の画像生成手段と、前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第2の画像データを生成する第2の画像生成手段と、前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ予め選択されたアスペクト比の第3の画像データを生成する第3の画像生成手段と、前記第1の画像データ、前記第2の画像データ、および前記第3の画像データを画像ファイルとして前記メモリに記録する記録手段と、を有することを特徴とする。   In order to achieve the above object, an image processing apparatus according to the present invention is an image processing apparatus that performs image processing on an image signal obtained as a result of shooting and records the image signal in a memory as an image file. A first image generating means for generating one image data, and a second image generator having a size smaller than that of the first image data in accordance with the image signal and having the same aspect ratio as the first image data. Second image generating means for generating image data; and third image data for generating third image data having a size smaller than that of the first image data and having a preselected aspect ratio in accordance with the image signal. An image generating unit; and a recording unit that records the first image data, the second image data, and the third image data as an image file in the memory. That.

本発明による制御方法は、撮影の結果得られた画像信号を画像処理して画像ファイルとしてメモリに記録する画像処理装置の制御方法であって、前記画像信号に応じて第1の画像データを生成する第1の画像生成ステップと、前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第2の画像データを生成する第2の画像生成ステップと、前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ予め選択されたアスペクト比の第3の画像データを生成する第3の画像生成ステップと、前記第1の画像データ、前記第2の画像データ、および前記第3の画像データを画像ファイルとして前記メモリに記録する記録ステップと、を有することを特徴とする。   A control method according to the present invention is a control method of an image processing apparatus that performs image processing on an image signal obtained as a result of shooting and records the image signal in a memory, and generates first image data in accordance with the image signal. A first image generation step that generates second image data that is smaller in size than the first image data and has the same aspect ratio as the first image data in accordance with the image signal. A second image generation step, a third image generation step of generating third image data having a size smaller than the first image data and having a preselected aspect ratio in accordance with the image signal, A recording step of recording the first image data, the second image data, and the third image data as an image file in the memory.

本発明による制御プログラムは、撮影の結果得られた画像信号を画像処理して画像ファイルとしてメモリに記録する画像処理装置で用いられる制御プログラムであって、前記画像処理装置が備えるコンピュータに、前記画像信号に応じて第1の画像データを生成する第1の画像生成ステップと、前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第2の画像データを生成する第2の画像生成ステップと、前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ予め選択されたアスペクト比の第3の画像データを生成する第3の画像生成ステップと、前記第1の画像データ、前記第2の画像データ、および前記第3の画像データを画像ファイルとして前記メモリに記録する記録ステップと、を実行させることを特徴とする。   A control program according to the present invention is a control program used in an image processing apparatus that performs image processing on an image signal obtained as a result of shooting and records the image signal in a memory as a file. A first image generation step for generating first image data in response to the signal; and an aspect ratio that is smaller than the first image data in accordance with the image signal and has the same aspect ratio as the first image data A second image generation step for generating second image data, and third image data having a size smaller than that of the first image data and a preselected aspect ratio in accordance with the image signal. A third image generation step to be generated, and the first image data, the second image data, and the third image data as image files. Characterized in that to execute a recording step of recording in the memory.

本発明による記録媒体は、上記の制御プログラムが記録されたコンピュータに読み取り可能な記録媒体である。   A recording medium according to the present invention is a computer-readable recording medium in which the control program is recorded.

本発明によれば、画像再生の際にアスペクト比(画角)の不自然な変化が生じることがない。   According to the present invention, an unnatural change in aspect ratio (view angle) does not occur during image reproduction.

本発明の実施の形態による画像処理装置を有する撮像装置の一例の外観を背面側から示す斜視図である。1 is a perspective view showing an appearance of an example of an imaging apparatus having an image processing apparatus according to an embodiment of the present invention from the back side. 図1に示すカメラの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the camera shown in FIG. 図2に示すカメラの電源がオンされた際の動作を説明するためのフローチャートである。3 is a flowchart for explaining an operation when a power source of the camera shown in FIG. 2 is turned on. 図3に示す撮影モード処理を説明するためのフローチャートである。FIG. 4 is a flowchart for explaining photographing mode processing shown in FIG. 3. FIG. 図4に示す撮影処理を説明するためのフローチャートである。FIG. 5 is a flowchart for explaining a photographing process shown in FIG. 4. FIG. 図4に示す記録処理を説明するためのフローチャートである。6 is a flowchart for explaining the recording process shown in FIG. 4. 図2に示すカメラ100において画像データを記録する際のファイル形式を簡単に説明するための図である。FIG. 3 is a diagram for simply explaining a file format when image data is recorded in the camera 100 shown in FIG. 2. 図6で説明した記録処理で記録媒体に記録される画像ファイルのデータ構造を具体的に説明するための図である。It is a figure for demonstrating concretely the data structure of the image file recorded on a recording medium by the recording process demonstrated in FIG. 図2に示すカメラにおける再生モードの動作を説明するためのフローチャートである。3 is a flowchart for explaining an operation in a playback mode in the camera shown in FIG. 2. 図9に示す再生モード入力待ち状態を説明するためのフローチャートである。FIG. 10 is a flowchart for illustrating a reproduction mode input waiting state shown in FIG. 9. FIG. 図9および図10に示すファイル解析処理を説明するためのフローチャートである。It is a flowchart for demonstrating the file analysis process shown in FIG. 9 and FIG. 図11に示す画像情報取得処理を説明するためのフローチャートである。It is a flowchart for demonstrating the image information acquisition process shown in FIG. 図9に示す再生対象リスト作成処理を説明するためのフローチャートである。10 is a flowchart for explaining a reproduction target list creation process shown in FIG. 9. 図9に示す検索管理ファイル作成処理を説明するためのフローチャートである。10 is a flowchart for explaining search management file creation processing shown in FIG. 9. 図14に示す信頼性確認処理を説明するためのフローチャートである。It is a flowchart for demonstrating the reliability confirmation process shown in FIG. 図14に示す検索管理ファイル生成処理を説明するためのフローチャートである。It is a flowchart for demonstrating the search management file production | generation process shown in FIG. 図16に示す属性情報取得処理を説明するためのフローチャートである。It is a flowchart for demonstrating the attribute information acquisition process shown in FIG. 図2に示すカメラにおける画像表示処理を説明するためのフローチャートである。3 is a flowchart for explaining image display processing in the camera shown in FIG. 2. 図2に示すカメラで用いられる検索管理ファイルを説明するための図であり、(a)はディレクトリの構成を示す図、(b)は検索管理ファイルの構成を示す図である。3A and 3B are diagrams for explaining a search management file used in the camera shown in FIG. 2, in which FIG. 3A is a diagram showing a configuration of a directory, and FIG. 従来の画像データを記録する際のファイル形式を説明するための図であり、(a)はファイルフォーマットを示す図、(b)はアスペクト比(画角)の判定を行うことができるデジタルカメラにおける再生を示す図、(c)はアスペクト比(画角)の判定を行うことができないデジタルカメラにおける再生を示す図である。It is a figure for demonstrating the file format at the time of recording the conventional image data, (a) is a figure which shows a file format, (b) is in the digital camera which can perform determination of an aspect ratio (view angle). The figure which shows reproduction | regeneration, (c) is a figure which shows the reproduction | regeneration in a digital camera which cannot perform determination of an aspect ratio (view angle).

以下、本発明の実施の形態による画像処理装置について図面を参照して説明する。   Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態による画像処理装置を有する撮像装置の一例の外観を背面側から示す斜視図である。   FIG. 1 is a perspective view showing an appearance of an example of an imaging apparatus having an image processing apparatus according to an embodiment of the present invention from the back side.

図示の撮像装置は、所謂デジタルカメラ(以下単にカメラと呼ぶ)であり、少なくとも静止画の撮影を行うことができる。図示のカメラ100はその背面側に表示部28が配置されており、この表示部28には画像および各種情報が表示される。カメラの上面には電源オンおよび電源オフを切り替える電源スイッチ72が配置されるとともに、シャッターボタン61が配置されている。   The illustrated imaging apparatus is a so-called digital camera (hereinafter simply referred to as a camera), and can capture at least a still image. The illustrated camera 100 is provided with a display unit 28 on the back side, and images and various information are displayed on the display unit 28. On the upper surface of the camera, a power switch 72 for switching between power on and power off is disposed, and a shutter button 61 is disposed.

表示部28の右側には、各種モードを切り替えるモード切替スイッチ60が配置されるとともに、ユーザからの各種操作を受け付ける操作部70が配されている。なお、シャッターボタン61は操作部70の1つである。   On the right side of the display unit 28, a mode changeover switch 60 for switching various modes and an operation unit 70 for receiving various operations from the user are arranged. The shutter button 61 is one of the operation units 70.

図示の例では、カメラにはカメラと外部機器(図示せず)とを接続するための接続ケーブル111が接続されている。接続ケーブル111はコネクタ112によってカメラに接続される。   In the illustrated example, a connection cable 111 for connecting the camera and an external device (not shown) is connected to the camera. The connection cable 111 is connected to the camera by a connector 112.

カメラには記録媒体スロット201が形成されており、この記録媒体スロット201にはメモリカード又はハードディスクなどの記録媒体200が収納される。記録媒体スロット201に記録媒体200を収納する際には、カメラに設けられた蓋部202を開いて、記録媒体スロット201に記録媒体200を収納する。   A recording medium slot 201 is formed in the camera, and a recording medium 200 such as a memory card or a hard disk is stored in the recording medium slot 201. When storing the recording medium 200 in the recording medium slot 201, the lid 202 provided in the camera is opened, and the recording medium 200 is stored in the recording medium slot 201.

図2は、図1に示すカメラ100の構成の一例を示すブロック図である。   FIG. 2 is a block diagram showing an example of the configuration of the camera 100 shown in FIG.

図2において、カメラ100は撮影レンズユニット(以下単に撮影レンズと呼ぶ)103を備えており、撮影レンズ103の後段には絞り機能を備えるシャッター101が配置されている。そして、シャッター101の後側には、光学像を電気信号に変換するCCD又はCMOS素子を有する撮像部22が配されている。そして、撮像部22の出力であるアナログ信号はA/D変換器23によってデジタル信号(画像信号)に変換される。   In FIG. 2, the camera 100 includes a photographic lens unit (hereinafter simply referred to as a photographic lens) 103, and a shutter 101 having an aperture function is disposed at the subsequent stage of the photographic lens 103. On the rear side of the shutter 101, an imaging unit 22 having a CCD or CMOS element that converts an optical image into an electrical signal is disposed. The analog signal that is the output of the imaging unit 22 is converted into a digital signal (image signal) by the A / D converter 23.

なお、撮影レンズ103の前面側にはバリア102が配置されており、このバリア102は撮影レンズ103、シャッター101、および撮像部22などを覆って、汚れおよび破損を防止するためのものである。   A barrier 102 is disposed on the front side of the photographic lens 103. The barrier 102 covers the photographic lens 103, the shutter 101, the imaging unit 22, and the like to prevent dirt and damage.

タイミング発生部12は撮像部22、A/D変換器23、およびD/A変換器13にクロック信号又は制御信号を供給する。このタイミング発生部12はメモリ制御部15およびシステム制御部50によって制御される。   The timing generator 12 supplies a clock signal or a control signal to the imaging unit 22, the A / D converter 23, and the D / A converter 13. The timing generator 12 is controlled by the memory controller 15 and the system controller 50.

画像処理部24はA/D変換器23の出力である画像データ、又はメモリ制御部15から画像データを受けて、所定の画素補間および縮小などのリサイズ処理と色変換処理とを行う。また、画像処理部24は撮像の結果得られた画像データを用いて所定の演算処理を行う。そして、システム制御部50は当該演算結果に基づいて露光制御および測距制御を行う。   The image processing unit 24 receives the image data that is the output of the A / D converter 23 or the image data from the memory control unit 15 and performs a resizing process such as predetermined pixel interpolation and reduction and a color conversion process. Further, the image processing unit 24 performs a predetermined calculation process using image data obtained as a result of imaging. The system control unit 50 performs exposure control and distance measurement control based on the calculation result.

これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、およびEF(フラッシュプリ発光)処理が行われる。   As a result, TTL (through the lens) AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-emission) processing are performed.

さらに、画像処理回路24は撮像の結果得られた画像データを用いて所定の演算処理を行って、当該演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理を行う。   Further, the image processing circuit 24 performs predetermined calculation processing using image data obtained as a result of imaging, and performs TTL AWB (auto white balance) processing based on the calculation result.

A/D変換器23からの出力である画像データは、画像処理部24およびメモリ制御部15を介して、或いは直接メモリ制御部15を介して、メモリ32に書き込まれる。メモリ32は、所定枚数の静止画像又は所定時間の動画像および音声を格納するための十分な記憶容量を備えている。   The image data output from the A / D converter 23 is written into the memory 32 via the image processing unit 24 and the memory control unit 15 or directly via the memory control unit 15. The memory 32 has a sufficient storage capacity for storing a predetermined number of still images or moving images and sound for a predetermined time.

圧縮・伸張部16は、適応離散コサイン変換(ADCT)などによって画像データを圧縮伸張する。圧縮・伸張部16は、シャッター101の動作をトリガとしてメモリ32に格納された画像データを読み込んで圧縮処理を行い、圧縮処理後の画像データをメモリ32に書き込む。   The compression / decompression unit 16 compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like. The compression / decompression unit 16 reads the image data stored in the memory 32 using the operation of the shutter 101 as a trigger, performs compression processing, and writes the image data after the compression processing in the memory 32.

また、圧縮・伸張部16は後述の記録部19からメモリ32に読み込まれた圧縮処理後の画像データを読み込んで伸張処理を行って、伸張処理後の画像データをメモリ32に書き込む。圧縮・伸張部16によってメモリ32に書き込まれた画像データは、システム制御部50においてファイル化されて、インターフェース(I/F)18を介して記録媒体200(つまり、記録部19)に記録される。   Further, the compression / decompression unit 16 reads the compressed image data read from the recording unit 19 (described later) into the memory 32, performs the decompression process, and writes the decompressed image data into the memory 32. The image data written in the memory 32 by the compression / decompression unit 16 is filed in the system control unit 50 and recorded on the recording medium 200 (that is, the recording unit 19) via the interface (I / F) 18. .

図示のメモリ32は画像表示用のメモリを兼ねており、メモリに書き込まれた表示用の画像データはD/A変換器13を介して表示部28に与えられて、画像として表示される。なお、表示部28は、例えば、LCDである。   The illustrated memory 32 also serves as an image display memory. Display image data written in the memory is provided to the display unit 28 via the D / A converter 13 and displayed as an image. The display unit 28 is, for example, an LCD.

システム制御部50はカメラ100全体の制御を司る。システムメモリ52にはシステム制御部50の動作用の定数、変数、およびプログラムなどが格納されている。図示の不揮発性メモリ56は電気的に消去・記録可能なメモリであって、例えば、EEPROMが用いられる。   The system control unit 50 controls the entire camera 100. The system memory 52 stores constants, variables, programs, and the like for operating the system control unit 50. The illustrated nonvolatile memory 56 is an electrically erasable / recordable memory, and for example, an EEPROM is used.

前述のモード切替スイッチ60は、例えば、システム制御部50の動作モードを静止画撮影モード、連続撮影(連写)モード、動画モード、および再生モードのいずれかに切り替えるためのスイッチである。   The above-described mode switch 60 is a switch for switching the operation mode of the system control unit 50 to one of a still image shooting mode, a continuous shooting (continuous shooting) mode, a moving image mode, and a playback mode, for example.

シャッターボタン61が操作途中(半押し)であると、第1のシャッタースイッチがオンとなって、第1のシャッタースイッチ信号SW1がシステム制御部50に与えられる。これによって、システム制御部50はAF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、およびEF(フラッシュプリ発光)処理などの動作開始を指示する。   If the shutter button 61 is being operated (half-pressed), the first shutter switch is turned on, and the first shutter switch signal SW1 is given to the system control unit 50. As a result, the system control unit 50 instructs the start of operations such as AF (autofocus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, and EF (flash pre-flash) processing.

シャッターボタン61が操作完了(全押し)すると、第2のシャッタースイッチがオンとなって、第2のシャッタースイッチ信号SW2がシステム制御部50に与えられる。これによって、システム制御部50は撮像部22の信号読み出しから記録媒体200に画像データを書き込むまでの一連の撮像処理の動作開始を指示する。   When the operation of the shutter button 61 is completed (fully pressed), the second shutter switch is turned on and the second shutter switch signal SW2 is given to the system control unit 50. Thereby, the system control unit 50 instructs the start of a series of imaging processing operations from reading the signal of the imaging unit 22 to writing the image data on the recording medium 200.

前述の操作部70は各種ボタンおよびタッチパネルなどを有している。各種ボタンとして、例えば、消去ボタン、メニューボタン、SETボタン、十字に配置された4方向キー、およびコネクタ112に接続されたプリンタ(図示せず)に対して印刷予約を行うための印刷予約ボタンがある。   The aforementioned operation unit 70 has various buttons and a touch panel. Examples of various buttons include a delete button, a menu button, a SET button, a four-way key arranged in a cross shape, and a print reservation button for making a print reservation for a printer (not shown) connected to the connector 112. is there.

メニューボタンが操作されると、システム制御部50は各種設定を行うためのメニュー画面を表示部28に表示する。ユーザは表示部28に表示されたメニュー画面を見て、4方向キーおよびSETボタンを用いて直感的に各種設定を行うことができる。   When the menu button is operated, the system control unit 50 displays a menu screen for performing various settings on the display unit 28. The user can intuitively make various settings using the four-way key and the SET button by looking at the menu screen displayed on the display unit 28.

電源制御部39は電池検出回路、DC−DCコンバータ、および通電するブロックを切り替えるスイッチ回路などを備えている。そして、電源制御部39は電池の装着の有無、電池の種類、および電池残量の検出を行う。また、電源制御部39は上記の検出結果およびシステム制御回路50の指示に基づいてDC−DCコンバータを制御して、所定の電圧を必要な期間の間記録媒体200を含む各部に供給する。   The power control unit 39 includes a battery detection circuit, a DC-DC converter, and a switch circuit that switches blocks to be energized. Then, the power control unit 39 detects the presence / absence of a battery, the type of battery, and the remaining battery level. The power control unit 39 controls the DC-DC converter based on the detection result and the instruction from the system control circuit 50, and supplies a predetermined voltage to each unit including the recording medium 200 for a necessary period.

電源部30はアルカリ電池又はリチウム電池などの一次電池、又はNiCd電池、NiMH電池、又はLi電池などの二次電池を備えるとともに、ACアダプターなどを有している。そして、電源部30はコネクタ33および34によって電源制御部39に接続される。   The power supply unit 30 includes a primary battery such as an alkaline battery or a lithium battery, or a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, and an AC adapter. The power supply unit 30 is connected to the power supply control unit 39 by connectors 33 and 34.

RTC(Real Time Clock)部40は、電源制御部39とは別にその内部に電源部(図示せず)を有し、電源部30が落ちた状態であっても時計動作(計時動作)を行う。システム制御部50はカメラ起動の際(電源スイッチオン)、RTC40から取得した日時を用いてタイマー制御を行う。   An RTC (Real Time Clock) unit 40 has a power source unit (not shown) in addition to the power source control unit 39, and performs a clock operation (clocking operation) even when the power source unit 30 is turned off. . The system control unit 50 performs timer control using the date and time acquired from the RTC 40 when the camera is activated (power switch on).

インターフェース(I/F)18は記録媒体200とのインターフェースであり、コネクタ35によって記録媒体200に備えられたコネクタ36に接続される。記録媒体200はI/F37および前述の記録部19を有しており、記録部19として半導体メモリ又は磁気ディスクが用いられる。   An interface (I / F) 18 is an interface with the recording medium 200, and is connected to a connector 36 provided in the recording medium 200 by a connector 35. The recording medium 200 has an I / F 37 and the recording unit 19 described above, and a semiconductor memory or a magnetic disk is used as the recording unit 19.

なお、記録媒体着脱検知部98は、コネクタ35に記録媒体200が装着されているか否かを検知して、その結果をシステム制御部50に通知する。   The recording medium attachment / detachment detection unit 98 detects whether or not the recording medium 200 is attached to the connector 35 and notifies the system control unit 50 of the result.

通信部110は、RS232C、USB、IEEE1394、P1284、SCSI、モデム、LAN、又は無線通信などに係る各種通信処理を行う。コネクタ(無線通信の場合はアンテナ)112は、通信部110をカメラ100をプリンタなどの外部機器と接続する。コネクタ112にプリンタが接続された場合、例えば、記録媒体200に記録された画像ファイルがプリンタに転送されて、PCなどを用いることなく直接プリンタによって画像の印刷を行うことができる。   The communication unit 110 performs various communication processes related to RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, or wireless communication. A connector (antenna in the case of wireless communication) 112 connects the communication unit 110 to the camera 100 and an external device such as a printer. When a printer is connected to the connector 112, for example, an image file recorded on the recording medium 200 is transferred to the printer, and an image can be printed directly by the printer without using a PC or the like.

図3は、図2に示すカメラの電源がオンされた際の動作を説明するためのフローチャートである。なお、以下の説明においては、システム制御部50がメモリ32に格納されたプログラムをシステムメモリ52に読み出して当該プログラムに応じて処理を行うものとする。   FIG. 3 is a flowchart for explaining the operation when the power supply of the camera shown in FIG. 2 is turned on. In the following description, it is assumed that the system control unit 50 reads a program stored in the memory 32 to the system memory 52 and performs processing according to the program.

電源スイッチ72が操作されて電源がオンに切り替わると、システム制御部50はフラグおよび制御変数などを初期化する(ステップS301)。続いて、システム制御部50はモード切替ボタン60の設定が撮影モードであるか否かを判定する(ステップS302)。モード切替ボタン60の設定が撮影モードでないと(ステップS302において、NO)、システム制御部50はモード切替ボタン60の設定が再生モードであるか否かを判定する(ステップS303)。   When the power switch 72 is operated to turn on the power, the system control unit 50 initializes flags and control variables (step S301). Subsequently, the system control unit 50 determines whether or not the setting of the mode switching button 60 is the shooting mode (step S302). If the setting of the mode switching button 60 is not the shooting mode (NO in step S302), the system control unit 50 determines whether or not the setting of the mode switching button 60 is the playback mode (step S303).

モード切替ボタン60の設定が撮影モードであると(ステップS302において、YES)、システム制御部50は、後述の撮影モードに係る処理(撮影モード処理)を行う(ステップS304)。一方、モード切替ボタン60の設定が再生モードであると(ステップS303において、YES)、システム制御部50は、後述の再生モードに係る処理(再生モード処理)を行う(ステップS305)。   If the setting of the mode switching button 60 is the shooting mode (YES in step S302), the system control unit 50 performs processing (shooting mode processing) related to the shooting mode described later (step S304). On the other hand, when the setting of the mode switching button 60 is the playback mode (YES in step S303), the system control unit 50 performs processing related to the playback mode (playback mode processing) described later (step S305).

モード切替ボタン60の設定が再生モードでないと(ステップS303において、NO)、システム制御部50は、モード切替ボタン60で設定された処理(その他のモード処理)を行う(ステップS306)。なお、その他のモード処理には記録媒体200に格納された画像ファイルの送受信を行う通信モードが含まれる。   If the setting of the mode switching button 60 is not the playback mode (NO in step S303), the system control unit 50 performs the process (other mode processes) set by the mode switching button 60 (step S306). Note that the other mode processing includes a communication mode in which image files stored in the recording medium 200 are transmitted and received.

ステップS304、S305、又はS306の処理を行った後、システム制御部50は電源スイッチ72がオフされたか否かを判定する(ステップS307)。電源スイッチ72がオンであると(ステップS307において、NO)、システム制御部50はステップS302の処理に戻る。   After performing the process of step S304, S305, or S306, the system control unit 50 determines whether or not the power switch 72 is turned off (step S307). If power switch 72 is on (NO in step S307), system control unit 50 returns to the process in step S302.

一方、電源スイッチ72がオフされると(ステップS307において、YES)、システム制御部50は所定の終了処理を行って(ステップS308)、処理を終了する。   On the other hand, when power switch 72 is turned off (YES in step S307), system control unit 50 performs a predetermined end process (step S308) and ends the process.

なお、終了処理には、例えば、表示部28の表示を終了状態に変更して、レンズバリア102を閉じて撮像部を保護する処理、そして、フラグおよび制御変数などを含むパラメータおよび設定値と設定モードとを不揮発性メモリ56に記録する処理および電源供給が不要な部分に対する電源を遮断する処理がある。   In the end process, for example, the display on the display unit 28 is changed to the end state, the lens barrier 102 is closed to protect the image pickup unit, and parameters, setting values, and settings including flags and control variables are set. There are a process for recording the mode in the nonvolatile memory 56 and a process for shutting off the power to a portion where power supply is unnecessary.

さらには、後述するモニタ表示用画像の記録画素数、および撮影画像の記録サイズ設定を不揮発性メモリ56に記録する処理も終了処理に含まれる。なお、モニタ表示用画像の記録画素数は固定値でもよく、ステップS306におけるその他のモード処理における変更に伴って更新するようにしてもよい。そして、記録サイズ設定はその他のモード処理で変更があれば当該変更に伴って更新される。   Furthermore, processing for recording the number of recorded pixels of the monitor display image and the recording size setting of the captured image, which will be described later, is also included in the end processing. Note that the number of recorded pixels of the monitor display image may be a fixed value, or may be updated with a change in other mode processing in step S306. Then, if there is a change in the other mode processing, the recording size setting is updated with the change.

図4は、図3に示す撮影モード処理を説明するためのフローチャートである。   FIG. 4 is a flowchart for explaining the photographing mode process shown in FIG.

撮影モード処理を開始すると、システム制御部50は、まず表示部28に画像を表示する所謂スルー表示を行う(ステップS401)。続いて、システム制御部50は電源制御部39によって検知された電源30の残容量を受けるとともに、記録媒体200の有無および記録媒体200のの残容量を受ける。そして、システム制御部50は撮影モード処理に問題があるか否かを判定する(ステップS402)。つまり、システム制御部50はバッテリーOKでかつ記録媒体OKであるか否かを判定することになる。   When the shooting mode process is started, the system control unit 50 first performs a so-called through display in which an image is displayed on the display unit 28 (step S401). Subsequently, the system control unit 50 receives the remaining capacity of the power supply 30 detected by the power supply control unit 39, and also receives the presence / absence of the recording medium 200 and the remaining capacity of the recording medium 200. Then, the system control unit 50 determines whether there is a problem in the shooting mode process (step S402). That is, the system control unit 50 determines whether the battery is OK and the recording medium is OK.

バッテリーおよび記録媒体の少なくとも一方がOKでないと(ステップS402において、NG)、システム制御部50はメモリ制御部15を介して表示部28に所定の警告表示を行う(ステップS403)。なお、図示はしないが、システム制御部50は音声によって警告を行うようにしてもよい。その後、システム制御部50はステップS401の処理に戻る。   If at least one of the battery and the recording medium is not OK (NG in step S402), the system control unit 50 displays a predetermined warning on the display unit 28 via the memory control unit 15 (step S403). Although not shown, the system control unit 50 may issue a warning by voice. Thereafter, the system control unit 50 returns to the process of step S401.

バッテリーおよび記録媒体がともにOKであると(ステップS402において、OK)、システム制御部50は第1のシャッタースイッチ(SW1)がオンであるか否かを判定する(ステップS404)。第1のシャッタースイッチ(SW1)がオフであると(ステップS404において、OFF)、システム制御部50は待機する。   If both the battery and the recording medium are OK (OK in step S402), system control unit 50 determines whether or not the first shutter switch (SW1) is on (step S404). If the first shutter switch (SW1) is off (OFF in step S404), system control unit 50 stands by.

一方、第1のシャッタースイッチ(SW1)がオンであると(ステップS404において、ON)、システム制御部50は測距処理を行って、撮影レンズ103の焦点を被写体に合わせる。続いて、システム制御部50は測光処理を行って、絞り値およびシャッター時間(シャッタースピード)を決定する(ステップS405)。なお、図示はしないが、測光処理において必要であれば、システム制御部50はフラッシュの設定を行う。   On the other hand, when the first shutter switch (SW1) is on (ON in step S404), the system control unit 50 performs a distance measurement process to focus the photographing lens 103 on the subject. Subsequently, the system control unit 50 performs a photometric process to determine an aperture value and a shutter time (shutter speed) (step S405). Although not shown, the system control unit 50 performs flash setting if necessary in the photometric process.

続いて、システム制御部50は第2のシャッタースイッチ(SW2)がオンされたか否かを判定する(ステップS406)。第2のシャッタースイッチ(SW2)がオフであると(ステップS406において、OFF)、システム制御部50は第1のシャッタースイッチ(SW1)がオンであるか否かを判定する(ステップS407)。   Subsequently, the system control unit 50 determines whether or not the second shutter switch (SW2) is turned on (step S406). When the second shutter switch (SW2) is off (OFF in step S406), system control unit 50 determines whether or not the first shutter switch (SW1) is on (step S407).

第1のシャッタースイッチ(SW1)がオフとされると(ステップS407において、OFF)、システム制御部50はステップS404の処理に戻る。一方、第1のシャッタースイッチ(SW1)がオンの状態であると(ステップS407において、ON)、システム制御部50はステップS406の処理に戻る。   When the first shutter switch (SW1) is turned off (OFF in step S407), the system control unit 50 returns to the process of step S404. On the other hand, when the first shutter switch (SW1) is in the ON state (ON in step S407), the system control unit 50 returns to the process in step S406.

第2のシャッタースイッチ(SW2)がオンとなると(ステップS406において、ON)、システム制御部50は表示部28の表示を固定色表示状態に設定する(ステップS408)。そして、システム制御部50は、後述する撮影処理を行う(ステップS409)。   When the second shutter switch (SW2) is turned on (ON in step S406), the system control unit 50 sets the display on the display unit 28 to a fixed color display state (step S408). Then, the system control unit 50 performs a shooting process described later (step S409).

この撮影処理においては、例えば、撮像部22、A/D変換器23、画像処理回路24、メモリ制御回路15を介して、或いはA/D変換器23から直接メモリ制御回路15を介してメモリ32に撮影の結果得られた画像データを書き込む露光処理が行われる。さらに、撮影処理では、メモリ制御回路15、そして必要に応じて画像処理回路24によって、メモリ32から読み出された画像データに対して各種処理を施す現像処理が行われる。   In this photographing process, for example, the memory 32 via the imaging unit 22, A / D converter 23, image processing circuit 24, memory control circuit 15, or directly from the A / D converter 23 via the memory control circuit 15. An exposure process for writing image data obtained as a result of shooting is performed. Further, in the photographing process, a development process for performing various processes on the image data read from the memory 32 is performed by the memory control circuit 15 and, if necessary, the image processing circuit 24.

次に、システム制御部50は、表示部28に撮影の結果得られた画像データに応じた画像をクイックレビュー表示する(ステップS410)。そして、クイックレビュー表示の後、システム制御部50は撮影処理で得られた画像データを画像ファイルとして記録媒体200に書き込む記録処理を行う(ステップS411)。この記録処理S411については後述する。   Next, the system control unit 50 performs quick review display of an image corresponding to the image data obtained as a result of shooting on the display unit 28 (step S410). After the quick review display, the system control unit 50 performs a recording process of writing the image data obtained by the shooting process as an image file on the recording medium 200 (step S411). The recording process S411 will be described later.

記録処理を行った後、システム制御部50は第2のシャッタースイッチ(SW2)がオフとなるまで表示部28にクイックレビューを継続して表示する(ステップS412)。これによって、ユーザは撮影画像の確認を入念に行うことができる(レックレビュー機能)。   After performing the recording process, the system control unit 50 continuously displays the quick review on the display unit 28 until the second shutter switch (SW2) is turned off (step S412). As a result, the user can carefully check the captured image (rec review function).

続いて、システム制御部50は第2のシャッタースイッチ(SW2)がオンであるか否かを判定する(ステップS413)。第2のシャッタースイッチ(SW2)がオンであれば(ステップS413において、ON)、システム制御部50はステップS412の処理に戻ってレックビューを継続する。   Subsequently, the system control unit 50 determines whether or not the second shutter switch (SW2) is on (step S413). If the second shutter switch (SW2) is on (ON in step S413), the system control unit 50 returns to the process of step S412 and continues the rec view.

一方、第2のシャッタースイッチ(SW2)がオフとなると(ステップS413において、OFF)、システム制御部50は所定のミニマムレビュー時間が経過したか否かを判定する(ステップS414)。ミニマムレビュー時間が経過しないと(ステップS414において、NO)、システム制御部50は待機する。   On the other hand, when the second shutter switch (SW2) is turned off (OFF in step S413), the system control unit 50 determines whether or not a predetermined minimum review time has elapsed (step S414). If the minimum review time has not elapsed (NO in step S414), system control unit 50 waits.

ミニマムレビュー時間が経過すると(ステップS414において、YES)、システム制御部50は表示部28の表示をスルー表示状態に設定する(ステップS415)。ここでは、表示部28にクイックレビュー表示を行ってユーザに撮影画像を確認させた後、システム制御部50は次の撮影のために画像を逐次表示するスルー表示状態とする。   When the minimum review time has elapsed (YES in step S414), system control unit 50 sets the display on display unit 28 to the through display state (step S415). Here, after the quick review display is performed on the display unit 28 and the user confirms the photographed image, the system control unit 50 enters a through display state in which images are sequentially displayed for the next photographing.

その後、システム制御部50は第1のシャッタースイッチ(SW1)がオンであるか否かを判定する(ステップS416)。第1のシャッタースイッチ(SW1)がオンであれば(ステップS416において、ON)、システム制御部50はステップS406の処理に移行する。一方、第1のシャッタースイッチ(SW1)がオフとされると(ステップS416において、OFF)、システム制御部50は一連の撮影動作を終了してステップS404の処理に移行する。   Thereafter, the system control unit 50 determines whether or not the first shutter switch (SW1) is on (step S416). If the first shutter switch (SW1) is on (ON in step S416), system control unit 50 proceeds to the process in step S406. On the other hand, when the first shutter switch (SW1) is turned off (OFF in step S416), the system control unit 50 ends a series of photographing operations and proceeds to the processing in step S404.

図5は、図4に示す撮影処理を説明するためのフローチャートである。   FIG. 5 is a flowchart for explaining the photographing process shown in FIG.

撮影処理を開始すると、システム制御部50は撮影日時をシステムタイマー(図示せず)から取得して、システムメモリ52に記憶する(ステップS501)。次に、システム制御部50はシステムメモリ52又はメモリ32に記憶された測光データを参照してシャッター101を絞り値に応じて開放する(ステップS502)。そして、システム制御部50は撮像部22を露光する(ステップS503)。   When the shooting process is started, the system control unit 50 acquires the shooting date and time from a system timer (not shown) and stores it in the system memory 52 (step S501). Next, the system control unit 50 refers to the photometric data stored in the system memory 52 or the memory 32 and opens the shutter 101 according to the aperture value (step S502). Then, the system control unit 50 exposes the imaging unit 22 (step S503).

システム制御部50は測光データに基づいて撮像部22の露光が終了したか否かを判定する(ステップS504)。撮像部22の露光が終了しないと(ステップS504において、NO)、システム制御部50は待機する。   The system control unit 50 determines whether or not the exposure of the imaging unit 22 has been completed based on the photometric data (step S504). If the exposure of the imaging unit 22 is not completed (NO in step S504), the system control unit 50 stands by.

撮像部22の露光が終了すると(ステップS504において、YES)、システム制御部50はシャッター101を閉じる(ステップS505)。そして、システム制御部50はタイミング発生部12を制御して撮像部22から電気信号を読み出す。これによって、電気信号はA/D変換器23、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器23から直接メモリ制御回路22を介して、メモリ32に画像データとして書き込まれる(ステップS506)。この際、システム制御部50はシステムメモリ52に当該画像データのサイズを記憶する。   When the exposure of the imaging unit 22 ends (YES in step S504), the system control unit 50 closes the shutter 101 (step S505). Then, the system control unit 50 reads the electrical signal from the imaging unit 22 by controlling the timing generation unit 12. Thus, the electrical signal is written as image data in the memory 32 via the A / D converter 23, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter 23 via the memory control circuit 22. (Step S506). At this time, the system control unit 50 stores the size of the image data in the system memory 52.

続いて、システム制御部50は、メモリ制御回路15、そして必要に応じて画像処理回路24によって、メモリ30に書き込まれた画像データを読み出して、圧縮伸張部16による圧縮処理などの画像処理を行う(ステップS507)。そして、システム制御部50は圧縮処理後の画像データをメモリ32に書き込む。   Subsequently, the system control unit 50 reads out the image data written in the memory 30 by the memory control circuit 15 and, if necessary, the image processing circuit 24 and performs image processing such as compression processing by the compression / decompression unit 16. (Step S507). Then, the system control unit 50 writes the compressed image data in the memory 32.

次に、システム制御部50は、メモリ32から画像データを読み出してメモリ制御回路15を介して表示用の画像データとして表示部28に転送する(ステップS508)。そして、一連の処理を終えると、システム制御部50は撮影処理ルーチンを終了して、ステップS410(図4)の処理に進む。   Next, the system control unit 50 reads the image data from the memory 32 and transfers it to the display unit 28 as image data for display via the memory control circuit 15 (step S508). When the series of processing is completed, the system control unit 50 ends the photographing processing routine and proceeds to processing in step S410 (FIG. 4).

図6は、図4に示す記録処理を説明するためのフローチャートである。   FIG. 6 is a flowchart for explaining the recording process shown in FIG.

図5で説明した撮影処理で得られた画像データの記録処理を開始すると、システム制御部50はファイル名生成ルールに従ってファイル名を生成する(ステップS601)。そして、システム制御部50は図5のステップS501においてシステムメモリ52に記憶した日時情報を取得する(ステップS602)。   When the recording process of the image data obtained by the photographing process described with reference to FIG. 5 is started, the system control unit 50 generates a file name according to the file name generation rule (step S601). Then, the system control unit 50 acquires the date / time information stored in the system memory 52 in step S501 of FIG. 5 (step S602).

続いて、システム制御部50はシステムメモリ52から画像データのサイズを取得する(ステップS603)。その後、システム制御部50は画像ファイルを格納するディレクトリが記録媒体200に存在するか否かを判定する(ステップS604)。   Subsequently, the system control unit 50 acquires the size of the image data from the system memory 52 (step S603). Thereafter, the system control unit 50 determines whether or not a directory for storing the image file exists in the recording medium 200 (step S604).

ディレクトリが記録媒体200に存在しないと(ステップS604において、NO)、システム制御部50は画像ファイルを格納するディレクトリを作成する(ステップS605)。続いて、システム制御部50はステップS601で生成したファイル名およびステップS602で取得した日時情報を用いてディレクトリエントリを作成する。   If the directory does not exist in the recording medium 200 (NO in step S604), the system control unit 50 creates a directory for storing the image file (step S605). Subsequently, the system control unit 50 creates a directory entry using the file name generated in step S601 and the date / time information acquired in step S602.

続いて、システム制御部50は、撮影処理においてメモリ32に格納した画像データについて撮影日時などの撮影時条件から構成されるファイルヘッダを作成する(ステップS606)。なお、ディレクトリが記録媒体200に存在すれば(ステップS604において、YES)、システム制御部50はステップS606の処理に進む。   Subsequently, the system control unit 50 creates a file header including image capturing conditions such as the image capturing date and time for the image data stored in the memory 32 in the image capturing process (step S606). If the directory exists on recording medium 200 (YES in step S604), system control unit 50 proceeds to the process of step S606.

ファイルヘッダを作成した後、システム制御部50は当該画像データが関連する画像データの一部に係る撮影であるか否かを判定する(ステップS607)。つまり、システム制御部50は関連画像撮影であるか否かを判定する。ステップS607の判定は、例えば、操作部70におけるスティッチ撮影、ブラケット撮影、又は連写撮影モードなどが設定又はモード切替スイッチ60の設定によって行われる。   After creating the file header, the system control unit 50 determines whether or not the image data is shooting related to a part of the related image data (step S607). That is, the system control unit 50 determines whether or not it is related image shooting. The determination in step S607 is performed, for example, by setting stitch shooting, bracket shooting, or continuous shooting mode in the operation unit 70, or by setting the mode switch 60.

関連画像撮影であると判定すると(ステップS607において、YES)、システム制御部50はファイルヘッダに一連の画像撮影が関連することを示す関連画像情報を記録する(ステップS608)。そして、システム制御部50は画像データをファイル名によって記録媒体200に記録し(ステップS609)、ステップS412(図4)の処理に進む。   If it is determined that the image capturing is related (YES in step S607), the system control unit 50 records related image information indicating that a series of image capturing is related to the file header (step S608). Then, the system control unit 50 records the image data on the recording medium 200 with the file name (step S609), and proceeds to the process of step S412 (FIG. 4).

なお、関連画像撮影でないと判定すると(ステップS607において、NO)、システム制御部50はステップS609の処理に進む。   If it is determined that it is not related image shooting (NO in step S607), the system control unit 50 proceeds to the process of step S609.

続いて、前述の記録処理において記録媒体200に記録される画像ファイル(ここでは、静止画像データファイル)について説明する。   Next, an image file (here, a still image data file) recorded on the recording medium 200 in the above-described recording process will be described.

まず、図2に示すカメラ100における画像データを記録する際のファイル形式の概念について説明する。   First, the concept of a file format when recording image data in the camera 100 shown in FIG. 2 will be described.

図7は、図2に示すカメラ100において画像データを記録する際のファイル形式を簡単に説明するための図である。   FIG. 7 is a diagram for simply explaining a file format when image data is recorded in the camera 100 shown in FIG.

図7に示すように、画像ファイル(以下画像ファイルのことを単にファイルとも呼ぶ)は、ヘッダ(Header)、サムネイル画像部(サムネイル画像データ)、JPEG画像部(表示用画像データ)、RAWヘッダ部(TWAIN)、およびRAWデータ部(RAW画像データ:第1の画像データ)を有している。そして、サムネイル画像部は第1のサムネイル画像部(THM1:第4の画像データ)を有し、第1のサムネイル画像部(THM1)の後に第2のサムネイル画像部(THM2:第5の画像データ)が記録されている。   As shown in FIG. 7, an image file (hereinafter referred to simply as “file”) includes a header, a thumbnail image portion (thumbnail image data), a JPEG image portion (display image data), and a RAW header portion. (TWAIN) and a RAW data portion (RAW image data: first image data). The thumbnail image portion has a first thumbnail image portion (THM1: fourth image data), and a second thumbnail image portion (THM2: fifth image data) after the first thumbnail image portion (THM1). ) Is recorded.

また、JPEG画像部は第1のJPEG画像部(JPG1:第2の画像データ)を有し、第1のJPEG画像部(JPG1)の後に第2のJPEG画像部(JPG2:第3の画像データ)が記録されている。   The JPEG image portion has a first JPEG image portion (JPG1: second image data), and a second JPEG image portion (JPG2: third image data) after the first JPEG image portion (JPG1). ) Is recorded.

いま、カメラ100において、アスペクト比(つまり、画角)を選択して撮影を行って、図7に示すファイルフォーマットで画像ファイルが記録媒体200に記録されるとする。   Now, assume that the camera 100 selects an aspect ratio (that is, an angle of view) and performs shooting, and an image file is recorded on the recording medium 200 in the file format shown in FIG.

この際、Headerに選択アスペクト比情報(選択画角情報)が記録され、THM1が全面画角で記録される。そして、THM2が選択画角(黒枠付き:枠領域)で記録される。さらに、JPG1が全面画角で記録され、JPG2が選択画角で記録される。また、RAWが選択画角に拘わらず全面画角で記録される。   At this time, the selected aspect ratio information (selected field angle information) is recorded in the header, and THM1 is recorded at the entire field angle. Then, THM2 is recorded at the selected angle of view (with black frame: frame region). Further, JPG1 is recorded at the entire field angle, and JPG2 is recorded at the selected field angle. In addition, RAW is recorded at the full field angle regardless of the selected field angle.

図7に示す画像ファイルにおけるRAWを再生する際には、例えば、サイズの大きいRAWを読み込む前にJPG1又はJPG2が簡易表示され、その後、RAWが再生される。   When the RAW in the image file shown in FIG. 7 is reproduced, for example, JPG1 or JPG2 is simply displayed before reading a large RAW, and then the RAW is reproduced.

図7に示す画像ファイルを再生する際、アスペクト比の判定を行うことができるカメラでは、Headerに記録された選択画角情報に応じてRAWのサイズをトリミング表示するか又は枠表示することができる。一方、アスペクト比の判定を行うことができないカメラでは、全面画角で記録されたJPG1を再生した後、全面画角でRAWを再生する。   When the image file shown in FIG. 7 is played back, the camera capable of determining the aspect ratio can perform trimming display or frame display of the RAW size according to the selected field angle information recorded in the header. . On the other hand, in a camera that cannot determine the aspect ratio, the RAW is reproduced at the full field angle after reproducing the JPG 1 recorded at the full field angle.

このため、サムネイル画像とRAWとを互いに異なるアスペクト比で記録しなければならない場合においても画像再生の際にアスペクトの不自然な変化が生じることがなく、RAWの再生の際、RAWの画像が簡易表示と繋がりがなくその画角が不自然に変化して表示されてしまうことがない。   For this reason, even when the thumbnail image and the RAW have to be recorded with different aspect ratios, an unnatural change in the aspect does not occur during the image reproduction, and the RAW image is simplified during the RAW reproduction. There is no connection with the display, and the angle of view does not change unnaturally.

図8は、図6で説明した記録処理で記録媒体に記録される画像ファイルのデータ構造を具体的に説明するための図である。そして、図8(a)はJPEGファイルを示す図であり、図8(b)は第1のサムネイル画像を示す図である。また、図8(c)は第2のサムネイル画像を示す図である。   FIG. 8 is a diagram for specifically explaining the data structure of an image file recorded on a recording medium by the recording process described with reference to FIG. FIG. 8A shows a JPEG file, and FIG. 8B shows a first thumbnail image. FIG. 8C shows a second thumbnail image.

図8(a)において、画像ファイル701は、その先頭に画像の開始を示すマーカー(SOI)702を有し、当該SOI702の後にアプリケーションマーカー(APP1)703および本画像データ731を有している。APP1(703)には、APP1のサイズ(APP1 Length)704、APP1の識別コード(APP1 Identifier Code)705、画像の作成日時を示すDate Time706、および画像データが生成された日時を示すDate Time Original707が格納される。さらに、ClassIn formation708には、後述ようにしてシステムメモリ52に記憶された分類情報が格納される。   In FIG. 8A, an image file 701 has a marker (SOI) 702 indicating the start of an image at the head, and an application marker (APP1) 703 and main image data 731 after the SOI 702. The APP1 (703) includes an APP1 size (APP1 Length) 704, an APP1 identification code (APP1 Identifier Code) 705, a Date Time 706 indicating the date and time when the image was created, and a Date Time Original 707 indicating the date and time when the image data was generated. Stored. Further, the Class Information 708 stores classification information stored in the system memory 52 as described later.

さらに、APP1(703)には、本画像データの記録画素数を示すPixel Dimension709、撮影の際に設定した記録サイズ設定を示すImage Size710、本画像データのサイズを示すCompressed data Size711、および撮影の際のアスペクト情報712が格納される。また、APP1(703)には、その他の撮影情報713、画像開始を示すマーカー(SOI)714、アプリケーションマーカーAPP2(715)、第1のサムネイル画像(1st Thumbnail Data)720、画像データの最後を示すマーカー(EOI)721、画像開始を示すマーカー(SOI)722、アプリケーションマーカーAPP1(722)、第2のサムネイル画像(2nd Thumbnail Data)727、および画像データの最後を示すマーカー(EOI)728が格納される。 Further, APP1 (703) includes a Pixel Dimension 709 indicating the number of recording pixels of the main image data, an Image Size 710 indicating the recording size setting set at the time of shooting, a Compressed data Size 711 indicating the size of the main image data, and the time of shooting. The aspect information 712 is stored. The APP1 (703) includes other shooting information 713, an image start marker (SOI) 714, an application marker APP2 (715), a first thumbnail image (1 st Thumbnail Data) 720, and the last of the image data. A marker (EOI) 721 to be displayed, a marker (SOI) 722 to indicate the start of an image, an application marker APP1 (722), a second thumbnail image (2 nd Thumbnail Data) 727, and a marker (EOI) 728 to indicate the end of the image data Stored.

なお、第1のサムネイル画像720はDCF規格に従ったアスペクト比および画像サイズで記録される(図8(b)参照)。   The first thumbnail image 720 is recorded with an aspect ratio and an image size according to the DCF standard (see FIG. 8B).

図6で説明したステップS608で説明した関連画像情報を生成する際、Date Time706およびDate Time Original707には、図5のステップS501でシステムメモリ52に記憶した撮影日時情報が格納される。   When the related image information described in step S608 described in FIG. 6 is generated, the shooting date / time information stored in the system memory 52 in step S501 in FIG. 5 is stored in the Date Time 706 and the Date Time Original 707.

APP2(715)には、APP2のサイズ(APP2 Length)716、APP2の識別コード(APP2 Identifier Code)717、および第2のサムネイル画像に係るAPP1(723)の先頭オフセット(2nd Thumbnail Offset)718、およびその他の撮影情報719が格納される。   APP2 (715) includes an APP2 size (APP2 Length) 716, an APP2 identification code (APP2 Identifier Code) 717, and a first offset (2nd Thumbnail Offset) 718 of APP1 (723) related to the second thumbnail image, and Other shooting information 719 is stored.

アプリケーションマーカーAPP1(723)には、APP1のサイズ724、APP1の識別コード725、および第2のサムネイル画像727に係る記録画素数を示すPixel Dimension726が格納される。   In the application marker APP1 (723), an APP1 size 724, an APP1 identification code 725, and a Pixel Dimension 726 indicating the number of recording pixels related to the second thumbnail image 727 are stored.

なお、第2のサムネイル画像はDCF規格に従ったアスペクト比および画像サイズで記録しなければならないものの、記録の際、任意のアスペクト比で切り出したサムネイル画像と切り出し外のマスクとを記録すれば、任意のアスペクト比の画像として記録することができる(図8(c)参照)。任意のアスペクト比が第1のサムネイル画像と同一のアスペクト比の場合、第2のサムネイル画像を記録しなくてもよい。その際には、第2のサムネイル画像に関連するAPP2(715〜719)およびAPP1(723〜726)も記録しなくてもよい。   The second thumbnail image must be recorded with an aspect ratio and an image size according to the DCF standard. However, when recording, a thumbnail image cut out with an arbitrary aspect ratio and a non-cutout mask are recorded. It can be recorded as an image having an arbitrary aspect ratio (see FIG. 8C). When the arbitrary aspect ratio is the same as that of the first thumbnail image, the second thumbnail image may not be recorded. In that case, APP2 (715-719) and APP1 (723-726) related to the second thumbnail image may not be recorded.

また、APP1(701)に続いて記録される本画像データは、量子化テーブル(DQT)729、ハフマンテーブル(DHT)730、フレーム開始マーカー(SOF)731、スキャン開始マーカー(SOS)732、および圧縮データ(Compressed Data)733を有している。そして、画像ファイルの最後を示すマーカー(EOI)734で終端される。   The main image data recorded following APP1 (701) includes a quantization table (DQT) 729, a Huffman table (DHT) 730, a frame start marker (SOF) 731, a scan start marker (SOS) 732, and a compression. Data (Compressed Data) 733 is included. Then, it is terminated with a marker (EOI) 734 indicating the end of the image file.

なお、圧縮データ733は撮影の際のアスペクト情報712ではなく、撮像部22に応じて決定されるアスペクトサイズで記録されている。   The compressed data 733 is recorded not with aspect information 712 at the time of shooting but with an aspect size determined according to the imaging unit 22.

上述した画像ファイルのデータ構造はExif規格として定義された構造であり、APP1(703)コードおよび識別コード705を参照することによって、Exif構造であると認識することができる。   The data structure of the image file described above is a structure defined as the Exif standard, and can be recognized as an Exif structure by referring to the APP1 (703) code and the identification code 705.

図9は、図2に示すカメラ100における再生モードの動作を説明するためのフローチャートである。   FIG. 9 is a flowchart for explaining the operation of the playback mode in the camera 100 shown in FIG.

再生モードを開始すると、システム制御部50は記憶媒体200から初期画像情報を取得する(ステップS801)。ここで、初期画像とは最新の画像又は前回の再生において表示した画像のことをいい、初期画像情報とは、初期画像のデータと、ファイル名や日時情報などの初期画像に関連した情報のことをいう。   When the reproduction mode is started, the system control unit 50 acquires initial image information from the storage medium 200 (step S801). Here, the initial image refers to the latest image or the image displayed in the previous playback, and the initial image information refers to information related to the initial image such as data of the initial image and file name and date / time information. Say.

なお、初期画像情報の取得を、画像の総枚数計算および検索管理ファイル作成よりも先に行うことによって、後述するように、再生モードに入るとすばやく画像表示ができるというメリットがある。初期画像情報取得処理について後述する。   Note that the initial image information is acquired prior to the calculation of the total number of images and the creation of the search management file, so that there is an advantage that the image can be quickly displayed when the playback mode is entered, as will be described later. The initial image information acquisition process will be described later.

続いて、システム制御部50は初期画像情報の取得が正しく行われたか否かをチェックする。ここでは、例えば、システム制御部50は記録媒体200に画像が存在するか否かをチェックする(ステップS802)。なお、記録媒体200の不良によって画像が取得できない場合には、システム制御部50は画像なしと判定する。また、システム制御部50は初期画像情報が取得できれば、少なくとも1枚の画像が記録媒体200に存在すると判定する。   Subsequently, the system control unit 50 checks whether or not the initial image information has been correctly acquired. Here, for example, the system control unit 50 checks whether an image exists on the recording medium 200 (step S802). If an image cannot be acquired due to a defect in the recording medium 200, the system control unit 50 determines that there is no image. If the initial image information can be acquired, the system control unit 50 determines that at least one image exists on the recording medium 200.

記録媒体200に画像が存在すると(ステップS802において、YES)、システム制御部50は初期画像情報、つまり、最新の画像情報に基づいて記憶媒体200から最新画像ファイルを読み込む(ステップS803)。   If an image exists in the recording medium 200 (YES in step S802), the system control unit 50 reads the latest image file from the storage medium 200 based on the initial image information, that is, the latest image information (step S803).

続いて、システム制御部50は最新画像ファイルに係る撮影情報および属性情報などのファイル解析処理を行う(ステップS804)。そして、システム制御部50はファイル解析結果に応じて、最新の画像を表示部28に表示するとともに、撮影情報および属性情報なども設定に応じて表示部28に表示する(ステップS805)。なお、ファイル解析の結果によって、最新画像ファイルの一部が壊れているなど不正なファイルである判定すると、システム制御部50は表示部28にエラー表示を行う。   Subsequently, the system control unit 50 performs file analysis processing such as shooting information and attribute information related to the latest image file (step S804). Then, the system control unit 50 displays the latest image on the display unit 28 according to the file analysis result, and also displays shooting information, attribute information, and the like on the display unit 28 according to the settings (step S805). If the system control unit 50 determines that the file is an illegal file such as a part of the latest image file is broken based on the result of the file analysis, the system control unit 50 displays an error on the display unit 28.

次に、システム制御部50は記憶媒体200に収められている再生対象のリストの作成を開始する(ステップS806)。ここで、再生対象リストとは、例えば、DCF規格に従った再生機器においてはDCFルートディレクトリのディレクトリエントリを解析して当該再生機器において再生可能な画像を予め取得して管理するリストのことをいう。   Next, the system control unit 50 starts creating a reproduction target list stored in the storage medium 200 (step S806). Here, the reproduction target list is a list in which, for example, in a reproduction device conforming to the DCF standard, a directory entry of the DCF root directory is analyzed to acquire and manage images reproducible in the reproduction device in advance. .

ステップS806に係る処理は非同期で行われ、その完了を待たずに次の処理に進むことができる。これによって、多数の画像ファイルが記憶媒体200に格納されて、再生対象リストの検索に時間が掛かる場合であってもユーザは素早く画像の閲覧を行うことができる。   The process according to step S806 is performed asynchronously, and can proceed to the next process without waiting for the completion. Thus, even when a large number of image files are stored in the storage medium 200 and it takes time to search the reproduction target list, the user can quickly browse the images.

続いて、システム制御部50は検索管理ファイル(以下検索リストともいう)の作成を開始する(ステップS807)。ここで、検索管理ファイルとは、画像ファイルに付加された属性情報を予め取得して管理するための管理ファイルである。予め検索管理ファイルを生成することによって、属性毎の再生又は消去などの処理を素早く行うことが可能となる。検索管理ファイル作成処理についてもその完了を待たことなく、システム制御部50は再生モード入力待ち状態となる(ステップS808)。   Subsequently, the system control unit 50 starts creating a search management file (hereinafter also referred to as a search list) (step S807). Here, the search management file is a management file for acquiring and managing attribute information added to the image file in advance. By generating the search management file in advance, it is possible to quickly perform processing such as reproduction or deletion for each attribute. The system control unit 50 waits for the reproduction mode input without waiting for the search management file creation process to be completed (step S808).

記録媒体200に画像が存在しないと(ステップS802において、NO)、システム制御部50は、例えば、「画像がありません」などのメッセージ表示によって画像なし表示を行って(ステップS809)、ステップS808の再生モード入力待ち状態となる。   If there is no image on the recording medium 200 (NO in step S802), the system control unit 50 performs a no-image display by displaying a message such as “no image” (step S809), and the reproduction in step S808. Wait for mode input.

図10は、図9に示す再生モード入力待ち状態を説明するためのフローチャートである。   FIG. 10 is a flowchart for explaining the reproduction mode input waiting state shown in FIG.

再生モード入力待ち状態となると、システム制御部50は入力イベントがあるか否かをチェックする(ステップS901)。ここでいう入力イベントとは、例えば、ユーザによるボタン又は電池蓋に対する操作、電源の低下などを知らせるイベント、起動の際に開始された検索リスト処理の完了通知をいう。   When in the reproduction mode input waiting state, the system control unit 50 checks whether or not there is an input event (step S901). The input event referred to here is, for example, an event for informing a user operation on a button or a battery cover, a decrease in power, or the like, or a notification of completion of search list processing started at the time of activation.

入力イベントがないと(ステップS901において、NO)、システム制御部50は待機する。一方、入力イベントがあると(ステップS901において、YES)、システム制御部50は当該入力イベントが画像送りボタンの操作であるか否かを判定する(ステップS902)。   If there is no input event (NO in step S901), the system control unit 50 stands by. On the other hand, when there is an input event (YES in step S901), the system control unit 50 determines whether or not the input event is an operation of the image advance button (step S902).

入力イベントが画像送りボタンの操作であると(ステップS902において、YES)、システム制御部50は記録媒体200から次の表示画像(つまり、画像ファイル)を読み込む(ステップS903)。なお、画像送りボタンは前送りおよび後送りの対の方向を有しており、その送り方向によって次表示画像は変わることになる。   If the input event is an image feed button operation (YES in step S902), the system control unit 50 reads the next display image (that is, an image file) from the recording medium 200 (step S903). The image advance button has a pair of forward and backward feed directions, and the next display image changes depending on the feed direction.

続いて、システム制御部50は、読み込んだ画像ファイルの撮影情報および属性情報などのファイル解析処理を行う(ステップS904)。そして、システム制御部50はファイル解析の結果に応じて表示部28に画像を表示する(ステップS905)。この際、システム制御部50は撮影情報および属性情報などをその設定に応じて表示部28に表示する。   Subsequently, the system control unit 50 performs file analysis processing such as shooting information and attribute information of the read image file (step S904). Then, the system control unit 50 displays an image on the display unit 28 according to the result of file analysis (step S905). At this time, the system control unit 50 displays photographing information, attribute information, and the like on the display unit 28 according to the settings.

なお、ファイル解析の結果によって、最新画像ファイルの一部が壊れているなど不正なファイルである判定すると、システム制御部50は表示部28にエラー表示を行う。その後、システム制御部50はステップS901の処理に戻る。   If the system control unit 50 determines that the file is an illegal file such as a part of the latest image file is broken based on the result of the file analysis, the system control unit 50 displays an error on the display unit 28. Thereafter, the system control unit 50 returns to the process of step S901.

入力イベントが画像送りボタンの操作でないと(ステップS902において、NO)、システム制御部50は入力イベントが終了ボタンの操作であるか否かを判定する(ステップS906)。入力イベントが終了ボタンの操作であると(ステップS906において、YES)、システム制御部50は検索リスト作成処理を終了する(ステップS907)。ここでは、検索リストの作成途中ならば、その処理を中断し、既に検索リストの作成が完了していれば、それ以後システム制御部50は何も行わない。   If the input event is not an image feed button operation (NO in step S902), the system control unit 50 determines whether the input event is an end button operation (step S906). If the input event is an operation of an end button (YES in step S906), system control unit 50 ends the search list creation process (step S907). Here, if the search list is being created, the processing is interrupted, and if the search list has already been created, the system control unit 50 does nothing thereafter.

その後、システム制御部50は総画像枚数の計算終了処理を行う(ステップS908)。この処理についても、総枚数計算が途中であれば計算を中断し、既に総枚数計算が完了していれば、それ以後システム制御部50は何も行わない。そして、システム制御部50は再生モード入力状態を終了して、図3に示すステップS307の処理に進む。   Thereafter, the system control unit 50 performs a calculation end process for the total number of images (step S908). Also in this process, if the total number calculation is in progress, the calculation is interrupted, and if the total number calculation has already been completed, the system control unit 50 does nothing after that. Then, the system control unit 50 ends the reproduction mode input state, and proceeds to the process of step S307 shown in FIG.

入力イベントが終了ボタンの操作ではないと(ステップS906において、NO)、システム制御部50は図9に示すステップS806で行った総画像枚数計算が完了しているか否かチェックする(ステップS910)。総画像枚数の計算が完了していないと(ステップS910において、NO)、システム制御部50はステップS901の処理に戻る。この際には、システム制御部50は総画像枚数計算が完了していない旨のメッセージ又はアイコンを表示部28に表示するようにしてもよい。   If the input event is not an end button operation (NO in step S906), the system control unit 50 checks whether or not the calculation of the total number of images performed in step S806 shown in FIG. 9 has been completed (step S910). If the calculation of the total number of images has not been completed (NO in step S910), the system control unit 50 returns to the process of step S901. At this time, the system control unit 50 may display a message or icon on the display unit 28 indicating that the calculation of the total number of images has not been completed.

一方、総画像枚数の計算が完了すると(ステップS910において、YES)、システム制御部50は図9に示すステップS807で行った検索リストの作成が完了しているか否かをチェックする(ステップS911)。検索リストの作成が完了していないと(ステップS911において、NO)、システム制御部50はステップS901の処理に戻る。この際には、システム制御部50は検索リストの作成が完了していない旨のメッセージ又はアイコンを表示部28に表示するようにしてもよい。   On the other hand, when the calculation of the total number of images is completed (YES in step S910), the system control unit 50 checks whether the creation of the search list performed in step S807 shown in FIG. 9 is completed (step S911). . If the creation of the search list is not completed (NO in step S911), the system control unit 50 returns to the process of step S901. At this time, the system control unit 50 may display a message or icon on the display unit 28 indicating that the creation of the search list is not completed.

検索リストの作成が完了すると(ステップS911において、YES)、システム制御部50は入力イベントが消去ボタンの操作であるか否かを判定する(ステップS912)。入力イベントが消去ボタンの操作であると(ステップS912において、YES)、システム制御部50は後述するようにして消去を行う(ステップS913)。そして、システム制御部50は消去処理後の総画像枚数をチェックして、総画像枚数がゼロであるか否かを判定する(ステップS914)。   When the creation of the search list is completed (YES in step S911), the system control unit 50 determines whether or not the input event is an operation of the delete button (step S912). If the input event is an operation of a delete button (YES in step S912), system control unit 50 deletes as described later (step S913). Then, the system control unit 50 checks the total number of images after the erasing process, and determines whether or not the total number of images is zero (step S914).

総画像枚数がゼロであると(ステップS914において、YES)、システム制御部50は表示部28に画像なしの旨を表示して(ステップS915)、ステップS901の処理に戻る。ここでは、「画像がありません」などのメッセージが表示部28に表示される。   If the total number of images is zero (YES in step S914), system control unit 50 displays that there is no image on display unit 28 (step S915), and returns to the process of step S901. Here, a message such as “no image” is displayed on the display unit 28.

総画像枚数がゼロでないと(ステップS914において、NO)、システム制御部50は記録媒体200から次の画像ファイルを読み込む(ステップS916)。ここで、次の画像ファイルとは、消去された画像ファイルの次のファイル番号の画像ファイルをいう。最新の画像ファイルが消去された場合には、消去された画像ファイルの1つ前の画像ファイルが消去後の画像ファイル、つまり、最新の画像ファイルとなる。   If the total number of images is not zero (NO in step S914), the system control unit 50 reads the next image file from the recording medium 200 (step S916). Here, the next image file means an image file having a file number next to the erased image file. When the latest image file is erased, the image file immediately before the erased image file becomes the erased image file, that is, the latest image file.

続いて、システム制御部50は読み込んだ画像ファイルについて撮影情報および属性情報などのファイル解析処理を行う(ステップS917)。そして、システム制御部50はファイル解析の結果に応じて表示部28に画像を表示する(ステップS918)。この際、システム制御部50は撮影情報および属性情報などをその設定に応じて表示部28に表示する。   Subsequently, the system control unit 50 performs file analysis processing such as shooting information and attribute information on the read image file (step S917). Then, the system control unit 50 displays an image on the display unit 28 according to the result of the file analysis (step S918). At this time, the system control unit 50 displays photographing information, attribute information, and the like on the display unit 28 according to the settings.

なお、ファイル解析の結果によって、画像ファイルの一部が壊れているなど不正なファイルである判定すると、システム制御部50は表示部28にエラー表示を行う。その後、システム制御部50はステップS901の処理に戻る。   If the system control unit 50 determines that the image file is an illegal file such as a part of the image file is broken based on the result of the file analysis, the system control unit 50 displays an error on the display unit 28. Thereafter, the system control unit 50 returns to the process of step S901.

入力イベントが消去ボタンの操作でないと(ステップS912において、NO)、システム制御部50は入力イベントがメニューボタンの操作であるか否かを判定をする(ステップS919)。入力イベントがメニューボタンの操作であると(ステップS919において、YES)。システム制御部50は、後述する印刷メニュー処理を行って(ステップS920)、ステップS901の処理に戻る。   If the input event is not an operation of the delete button (NO in step S912), the system control unit 50 determines whether or not the input event is an operation of the menu button (step S919). If the input event is an operation of a menu button (YES in step S919). The system control unit 50 performs a print menu process described later (step S920), and returns to the process of step S901.

入力イベントがメニューボタンの操作でないと(ステップS919において、NO)、システム制御部50は入力イベントに応じたその他の処理を行って(ステップS921)、ステップS901の処理に戻る。なお、その他の処理とは、例えば、マルチ再生への切り替え又はメニューボタンによるメニュー表示などである。   If the input event is not an operation of the menu button (NO in step S919), the system control unit 50 performs other processing according to the input event (step S921), and returns to the processing of step S901. The other processing includes, for example, switching to multi-playback or displaying a menu with a menu button.

図11は、図9のステップS804と図10のステップ904およびS917に示すファイル解析処理を説明するためのフローチャートである。   FIG. 11 is a flowchart for explaining the file analysis processing shown in step S804 of FIG. 9 and steps 904 and S917 of FIG.

ファイル解析処理を開始すると、システム制御部50は解析対象の画像ファイルに、撮影情報と分類情報などの属性情報とが記載されたファイルヘッダがあるか否か判定する(ステップS1001)。ファイルヘッダがあると判定すると(ステップS1001において、YES)、システム制御部50は当該ファイルヘッダから撮影情報を取得する(ステップS1002)。続いて、システム制御部50は当該ファイルヘッダから分類情報などを取得する(ステップS1003)。   When the file analysis process is started, the system control unit 50 determines whether or not the image file to be analyzed includes a file header in which attribute information such as shooting information and classification information is described (step S1001). If it is determined that there is a file header (YES in step S1001), the system control unit 50 acquires shooting information from the file header (step S1002). Subsequently, the system control unit 50 acquires classification information and the like from the file header (step S1003).

ここで、撮影情報とは、撮影日時に関する情報および撮影の際の撮影モードなどの情報である。一方、分類情報とは、画像検索に用いるための識別情報のことをいい、例えば、タグ情報である。   Here, the shooting information is information regarding shooting date and time, shooting mode at the time of shooting, and the like. On the other hand, the classification information refers to identification information for use in image search, for example, tag information.

続いて、システム制御部50は後述する画像情報取得処理を行う(ステップS1004)。なお、ファイルヘッダがないと判定すると(ステップS1001において、NO)、システム制御部50はステップS1004の処理に進む。   Subsequently, the system control unit 50 performs an image information acquisition process described later (step S1004). If it is determined that there is no file header (NO in step S1001), the system control unit 50 proceeds to the process of step S1004.

次に、システム制御部50は、前述の撮影情報、分類情報、および画像情報が検索管理ファイルの内容と同一であるか否かを判定する(ステップS1005)。撮影情報、分類情報、および画像情報が検索管理ファイルの内容と同一であると(ステップS1005において、YES)、システム制御部50はファイル解析処理を完了する。   Next, the system control unit 50 determines whether the above-described shooting information, classification information, and image information are the same as the contents of the search management file (step S1005). If the shooting information, the classification information, and the image information are the same as the contents of the search management file (YES in step S1005), system control unit 50 completes the file analysis process.

一方、撮影情報、分類情報、および画像情報の少なくとも1つが検索管理ファイルの内容と相違すると(ステップS1005において、NO)、システム制御部50は検索管理ファイルの該当ファイル情報を更新する(ステップS1006)。そして、システム制御部50は検索管理ファイルを記録媒体200に書込んで(ステップS1007)、ファイル解析処理を完了する。   On the other hand, when at least one of the shooting information, the classification information, and the image information is different from the content of the search management file (NO in step S1005), the system control unit 50 updates the corresponding file information of the search management file (step S1006). . Then, the system control unit 50 writes the search management file in the recording medium 200 (step S1007), and completes the file analysis process.

このように、画像の再生の際に画像ファイルを読み出してファイルヘッダを解析する時、同時に検索管理ファイルを参照して画像ファイル単位で照合を行うことによって別に処理時間を要することなく検索管理ファイルの照合および訂正を行うことができる。   As described above, when an image file is read and the file header is analyzed at the time of image reproduction, the search management file can be referred to at the same time by referring to the search management file and collating in units of image files without requiring additional processing time. Verification and correction can be performed.

また、検索管理ファイル自体の改竄、管理対象ファイルの変更などを検知できなかった場合においても、検索管理ファイルの内容を正しく再構築することが可能となる。   Further, even when alteration of the search management file itself or change of the management target file cannot be detected, the contents of the search management file can be correctly reconstructed.

図12は、図11のステップS1004における画像情報取得処理を説明するためのフローチャートである。   FIG. 12 is a flowchart for explaining the image information acquisition processing in step S1004 of FIG.

画像情報取得処理を開始すると、システム制御部50は画像ファイルのファイルフォーマットに関する情報およびアスペクト情報を抽出する(ステップS1101)。次に、システム制御部50はファイルフォーマットを参照して本体画像データの開始位置および画像圧縮方法などの本体画像データに係る情報を取得する(ステップS1102)。   When the image information acquisition process is started, the system control unit 50 extracts information relating to the file format of the image file and aspect information (step S1101). Next, the system control unit 50 refers to the file format and acquires information related to the main body image data such as the start position of the main body image data and the image compression method (step S1102).

続いて、システム制御部50は画像ファイルからサムネイル情報を読み出して(ステップS1103)、第1のサムネイル画像とは別に第2のサムネイル画像が存在するか否かを判定する(ステップS1104)。例えば、図8に示すファイルフォーマットの場合には、システム制御部50はアプリケーションマーカーAPP2(714)をみて、APP2に記載された第2のサムネイル画像に係るAPP1の先頭位置を読み出すことができたか否かによって第2のサムネイル画像の有無を判定する。   Subsequently, the system control unit 50 reads out thumbnail information from the image file (step S1103), and determines whether or not a second thumbnail image exists separately from the first thumbnail image (step S1104). For example, in the case of the file format shown in FIG. 8, the system control unit 50 looks at the application marker APP2 (714) and whether or not the head position of APP1 related to the second thumbnail image described in APP2 has been read out. Whether or not the second thumbnail image exists is determined.

なお、第2のサムネイル画像のアスペクト比がアスペクト情報712と同一の場合にのみ第2のサムネイル画像が存在すると判定するようにしてもよい。   Note that it may be determined that the second thumbnail image exists only when the aspect ratio of the second thumbnail image is the same as the aspect information 712.

第2のサムネイル画像が存在すると判定すると(ステップS1104において、YES)、システム制御部50は第2のサムネイル画像に関する情報をAPP1(722)から読み出して、第2のサムネイル画像の開始位置を取得する(ステップS1105)。そして、システム制御部50は画像情報取得処理を終了する。   If it is determined that the second thumbnail image exists (YES in step S1104), the system control unit 50 reads information on the second thumbnail image from APP1 (722) and acquires the start position of the second thumbnail image. (Step S1105). Then, the system control unit 50 ends the image information acquisition process.

一方、第2のサムネイルが存在しないと判定すると(ステップS1106において、NO)、システム制御部50は同様にして第1のサムネイル画像の開始位置を取得する(ステップS1106)。そして、システム制御部50は画像情報取得処理を終了する。   On the other hand, if it is determined that the second thumbnail does not exist (NO in step S1106), the system control unit 50 similarly acquires the start position of the first thumbnail image (step S1106). Then, the system control unit 50 ends the image information acquisition process.

図13は、図9のステップS806に示す再生対象リスト作成処理を説明するためのフローチャートである。   FIG. 13 is a flowchart for explaining the reproduction target list creation process shown in step S806 of FIG.

再生対象リスト作成処理を開始すると、システム制御部50は最新画像確定フラグをゼロに初期化する(ステップS1201)。続いて、システム制御部50は総ファイル数確定フラグをゼロに初期化した(ステップS1202)後、検索許可フラグをゼロに初期化する(ステップS1203)。   When the reproduction target list creation process is started, the system control unit 50 initializes the latest image determination flag to zero (step S1201). Subsequently, the system control unit 50 initializes the total file number determination flag to zero (step S1202), and then initializes the search permission flag to zero (step S1203).

次に、システム制御部50は再生対象ディレクトリリストを作成する(ステップS1204)。この処理では、例えば、DCF規格に従った再生機器においてはDCFルートディレクトリのディレクトリエントリを解析してDCFディレクトリを検索し、再生対象ディレクトリリストに追加する。   Next, the system control unit 50 creates a reproduction target directory list (step S1204). In this process, for example, in a playback device in accordance with the DCF standard, the directory entry of the DCF root directory is analyzed to search for the DCF directory and added to the playback target directory list.

続いて、システム制御部50は再生対象ディレクトリの存否を判定する(ステップS1205)。再生対象ディレクトリがないと(ステップS1205において、NO)、つまり、カメラ100が取り扱い可能なディレクトリおよび取り扱い可能なファイルが無い場合、システム制御部50は総ファイル数を0に設定した後、総ファイル数確定フラグを1に設定する(ステップS1214)。そして、システム制御部50は再生対象リスト作成処理を終了する。   Subsequently, the system control unit 50 determines whether or not the reproduction target directory exists (step S1205). If there is no reproduction target directory (NO in step S1205), that is, if there are no directories and files that can be handled by the camera 100, the system control unit 50 sets the total number of files to 0 and then sets the total number of files. The confirmation flag is set to 1 (step S1214). Then, the system control unit 50 ends the reproduction target list creation process.

一方、再生対象ディレクトリがあると判定すると(ステップS1205において、YES)、システム制御部50は画像検索対象ディレクトリを初期化する(ステップS1206)。この初期化においては、例えば、DCF規格の再生機器では最大番号のDCFディレクトリが画像検索対象ディレクトリに設定される。   On the other hand, if it is determined that there is a reproduction target directory (YES in step S1205), the system control unit 50 initializes the image search target directory (step S1206). In this initialization, for example, the DCF directory with the maximum number is set as the image search target directory in a DCF standard playback device.

次に、システム制御部50は画像検索対象に設定されたディレクトリにおける画像総数を、当該ディレクトリのディレクトリエントリを解析することによって算出する(ステップS1207)。そして、システム制御部50は当該ディレクトリの画像総数を記録媒体200の画像総数に加算する。   Next, the system control unit 50 calculates the total number of images in the directory set as the image search target by analyzing the directory entry of the directory (step S1207). Then, the system control unit 50 adds the total number of images in the directory to the total number of images on the recording medium 200.

さらに、システム制御部50は、DCFルートディレクトリのディレクトリエントリに記載されたファイル情報を取得する(ステップS1208)。具体的には、システム制御部50は最小ファイル番号、最大ファイル番号、ファイル番号総和、タイムスタンプ総和、ファイルサイズ総和、および総ファイル数などを取得する。そして、システム制御部50はファイル情報をディレクトリエントリ情報としてシステムメモリ52に記憶する。   Further, the system control unit 50 acquires file information described in the directory entry of the DCF root directory (step S1208). Specifically, the system control unit 50 acquires the minimum file number, the maximum file number, the file number total, the time stamp total, the file size total, the total number of files, and the like. The system control unit 50 stores the file information in the system memory 52 as directory entry information.

続いて、システム制御部50は再生対象画像ファイル(つまり、カメラ100が取り扱い可能なファイル)が存在するか否かを判定する(ステップS1209)。再生対象画像ファイルが存在すると判定すると(ステップS1209において、YES)、システム制御部50は最新画像ファイルを決定して、最新画像確定フラグを1に設定する(ステップS1210)。   Subsequently, the system control unit 50 determines whether or not a reproduction target image file (that is, a file that can be handled by the camera 100) exists (step S1209). If it is determined that the reproduction target image file exists (YES in step S1209), the system control unit 50 determines the latest image file and sets the latest image determination flag to 1 (step S1210).

次に、システム制御部50は終了ボタンなどの操作によって総数計算終了の指示があったか否かを判定する(ステップS1211)。総数計算終了の指示があると(ステップS1211において、YES)、システム制御部50はステップS1214の処理に進む。   Next, the system control unit 50 determines whether or not there has been an instruction to end the total number calculation by operating the end button or the like (step S1211). If there is an instruction to end the total number calculation (YES in step S1211), system control unit 50 proceeds to the process of step S1214.

なお、再生対象画像ファイルが存在しないと判定すると(ステップS1209において、NO)、システム制御部50はステップS1211の処理に進む。   If it is determined that the reproduction target image file does not exist (NO in step S1209), the system control unit 50 proceeds to the process of step S1211.

総数計算終了の指示がなければ(ステップS1211において、NO)、システム制御部50は未検索のディレクトリが存在するか否かを判定する(ステップS1213)。未検索のディレクトリが存在すると判定すると(ステップS1213において、YES)、システム制御部50は画像検索対象ディレクトリを未処理のディレクトリ(画像検索対象ディレクトリ再設定)に設定して(ステップS1212)、ステップS1207の処理に戻る。   If there is no instruction to end the total number calculation (NO in step S1211), the system control unit 50 determines whether or not an unsearched directory exists (step S1213). If it is determined that an unsearched directory exists (YES in step S1213), the system control unit 50 sets the image search target directory to an unprocessed directory (image search target directory resetting) (step S1212), and step S1207. Return to the process.

一方、未検索のディレクトリが存在しないと判定すると(ステップS1213において、NO)、システム制御部50はステップS1214の処理に進む。   On the other hand, if it is determined that an unsearched directory does not exist (NO in step S1213), the system control unit 50 proceeds to the process of step S1214.

このようにして、ステップS1207〜S1210の処理がステップS1204で作成した再生対象ディレクトリリストにある全てのディレクトリについて行われる。全てのディレクトリについてステップS1207〜S1210の処理が終了すると、システム制御部50はステップ1214の処理に進む。ステップS1214において、システム制御部50は、最新画像確定を通知するとともに画像総数を算出して、総ファイル数確定フラグを設定し処理を終了する。   In this way, the processes in steps S1207 to S1210 are performed for all directories in the reproduction target directory list created in step S1204. When the processes of steps S1207 to S1210 are completed for all the directories, the system control unit 50 proceeds to the process of step 1214. In step S1214, the system control unit 50 notifies the latest image determination, calculates the total number of images, sets the total file number determination flag, and ends the process.

なお、再生対象ディレクトリが存在しても、ディレクトリに再生対象画像がない場合には、画像総数0として総ファイル数確定フラグを立てて処理を終了するものとする。   If there is no reproduction target image in the directory even if the reproduction target directory exists, the total number of files confirmation flag is set as 0 for the total number of images, and the process ends.

図14は、図9のステップS807に示す検索管理ファイル作成処理を説明するためのフローチャートである。   FIG. 14 is a flowchart for explaining the search management file creation process shown in step S807 of FIG.

検索管理ファイル作成処理を開始すると、システム制御部50は検索管理ファイルの作成指示があったか否かを判定する(ステップS1301)。作成指示がないと(ステップS1301において、NO)、システム制御部50は待機する。   When the search management file creation process is started, the system control unit 50 determines whether or not there is a search management file creation instruction (step S1301). If there is no creation instruction (NO in step S1301), system control unit 50 stands by.

一方、作成指示があると(ステップS1301において、YES)、システム制御部50は信頼性未確認ディレクトリの有無を確認する(ステップ1303)。全ての再生対象ディレクトリについて信頼性を確認済みであれば(ステップS1303において、NO)、システム制御部50は検索許可フラグ=1をシステムメモリ52に設定して(ステップS1316)、検索管理ファイル作成処理を終了する。   On the other hand, when there is a creation instruction (YES in step S1301), the system control unit 50 confirms the presence / absence of an unreliable directory (step 1303). If the reliability has been confirmed for all the reproduction target directories (NO in step S1303), the system control unit 50 sets the search permission flag = 1 in the system memory 52 (step S1316), and search management file creation processing Exit.

一方、信頼性未確認のディレクトリがあると判定すると(ステップS1303において、YES)、システム制御部50は当該ディレクトリを信頼性確認をすべき対象ディレクトリに設定する(ステップS1304)。そして、システム制御部50は当該対象ディレクトリに対応する検索管理ファイルが記録媒体200に存在するか否かを判定する(ステップS1305)。   On the other hand, if it is determined that there is a directory whose reliability has not been confirmed (YES in step S1303), the system control unit 50 sets the directory as a target directory whose reliability should be confirmed (step S1304). Then, the system control unit 50 determines whether or not a search management file corresponding to the target directory exists in the recording medium 200 (step S1305).

検索管理ファイルが存在すると(ステップS1305において、YES)、システム制御部50は当該検索管理ファイルをシステムメモリ52に読み込む(ステップS1306)。そして、システム制御部50はこの検索管理ファイルに対して後述する信頼性の確認を行う(ステップS1307)。   If the search management file exists (YES in step S1305), the system control unit 50 reads the search management file into the system memory 52 (step S1306). Then, the system control unit 50 checks the reliability of the search management file described later (step S1307).

続いて、システム制御部50は全データに信頼性があるか否かを確認する(ステップS1308)。その確認の結果、全データに信頼性ありと判定すると(ステップS1308において、YES)、システム制御部50は対象ディレクトリ信頼性確認済みを記憶する記憶処理を行う(ステップS1315)。そして、システム制御部50は検索管理ファイルの作成中断の指示があったか否かを確認する(ステップS1302)。   Subsequently, the system control unit 50 checks whether or not all data is reliable (step S1308). As a result of the confirmation, if it is determined that all data is reliable (YES in step S1308), the system control unit 50 performs a storage process for storing the target directory reliability confirmed (step S1315). Then, the system control unit 50 confirms whether or not there is an instruction to interrupt the creation of the search management file (step S1302).

作成中断の指示があると(ステップS1302において、YES)、システム制御部50はステップS1301の処理に進む。一方、作成中断の指示がなければ(ステップS1302において、NO)、システム制御部50はステップS1303の処理に進む。そして、システム制御部50は一連の処理を信頼性未確認のディレクトリがなくなるまで行う。   If there is an instruction to interrupt creation (YES in step S1302), system control unit 50 proceeds to the process of step S1301. On the other hand, if there is no instruction to interrupt creation (NO in step S1302), system control unit 50 proceeds to the process of step S1303. Then, the system control unit 50 performs a series of processes until there is no directory whose reliability has not been confirmed.

全データには信頼性かないと判定すると(ステップS1308において、NO)、システム制御部50は一部のデータに信頼性があるか否かを判定する(ステップS1309)。そして、認処理の結果、一部のデータにも信頼性がないと判定すると(ステップS1309において、NO)、システム制御部50はディレクトリ内の全データを再検査対象に設定する(ステップS1311)。   If it is determined that all data is not reliable (NO in step S1308), the system control unit 50 determines whether some data is reliable (step S1309). If it is determined as a result of the recognition process that some data is not reliable (NO in step S1309), the system control unit 50 sets all data in the directory as reinspection targets (step S1311).

一方、確認処理の結果、一部のデータにのみ信頼性が確認されると(ステップS1309において、YES)、システム制御部50は、信頼性の確認されていない一部データを再検査対象として設定する(ステップS1310)。そして、システム制御部50は再検査対象に設定した画像ファイルについて検索管理ファイルの生成を行う(ステップS1313)。   On the other hand, as a result of the confirmation process, when reliability is confirmed only for a part of data (YES in step S1309), the system control unit 50 sets a part of data whose reliability is not confirmed as a re-inspection target. (Step S1310). Then, the system control unit 50 generates a search management file for the image file set as the reexamination target (step S1313).

なお、ステップS1311の処理を行った後、システム制御部50はステップS1313の処理に進み、全データについて、つまり、検査対象とした全画像ファイルについて検索管理ファイルの生成を行う。   In addition, after performing the process of step S1311, the system control unit 50 proceeds to the process of step S1313, and generates a search management file for all data, that is, for all image files to be inspected.

その後、システム制御部50は、生成した検索管理ファイルを記録媒体200に書き込んで(ステップS1314)、ステップS1315の処理に進む。ここでは、例えば、検索管理ファイルを格納するディレクトリ(XXXMSC)を生成して、当該ディレクトリの中に生成した検索管理ファイル(M100.CTG、M101.CTG)を格納する。   Thereafter, the system control unit 50 writes the generated search management file in the recording medium 200 (step S1314), and proceeds to the process of step S1315. Here, for example, a directory (XXXMSC) for storing the search management file is generated, and the generated search management files (M100.CTG, M101.CTG) are stored in the directory.

なお、本実施形態では、ディレクトリ毎に検索管理ファイルが生成されて、記録媒体200に格納する。例えば、M100.CTG(2001)はディレクトリ100XXX(2002)の検索管理ファイルであり、M101.CTG(2003)はディレクトリ101XXX(2004)の検索管理ファイルである。   In the present embodiment, a search management file is generated for each directory and stored in the recording medium 200. For example, M100. CTG (2001) is a search management file of the directory 100XXX (2002). CTG (2003) is a search management file of the directory 101XXX (2004).

なお、ステップS1305において、検索管理ファイルが存在しないと判定すると(ステップS1305において、NO)、システム制御部50はステップS1311の処理に進む。   If it is determined in step S1305 that the search management file does not exist (NO in step S1305), the system control unit 50 proceeds to the process of step S1311.

このようにして、全ての再生対象ディレクトリに対して処理が終了したならば、ステップS1303からステップS1316に処理が進み、システム制御部50は検索許可フラグを1に設定して検索管理ファイル作成処理を終了することになる。   When the processing is completed for all the reproduction target directories in this way, the processing proceeds from step S1303 to step S1316, and the system control unit 50 sets the search permission flag to 1 and performs search management file creation processing. Will end.

図15は、図14のステップS1307に示す信頼性確認処理を説明するためのフローチャートである。   FIG. 15 is a flowchart for explaining the reliability confirmation processing shown in step S1307 of FIG.

また、図19は、図2に示すカメラ100で用いられる検索管理ファイルを説明するための図である。そして、図19(a)はディレクトリの構成を示す図であり、図19(b)は検索管理ファイルの構成を示す図である。   FIG. 19 is a diagram for explaining a search management file used in the camera 100 shown in FIG. FIG. 19A is a diagram showing the configuration of the directory, and FIG. 19B is a diagram showing the configuration of the search management file.

信頼性確認処理を開始すると、システム制御部50は、記録媒体200からシステムメモリ52に読み込んだ検索管理ファイルの整合性の確認を行う(ステップS1401)。この整合性の確認は検索管理ファイル信頼性情報に基づいて行われる。検索管理ファイル信頼性情報は、検索管理ファイルバージョン、検索管理ファイルサイズ、および検索管理ファイルチェックサムのような検索管理ファイル内の検索情報ではなく、検索管理ファイル自体の整合情報であって、検索管理ファイル自体の改ざんを確認する際などに用いられる。   When the reliability check process is started, the system control unit 50 checks the consistency of the search management file read from the recording medium 200 into the system memory 52 (step S1401). This consistency check is performed based on the search management file reliability information. Search management file reliability information is not search information within the search management file, such as search management file version, search management file size, and search management file checksum, but is the consistency information of the search management file itself. It is used when checking the alteration of the file itself.

なお、検索管理ファイル信頼性情報としては、例えば、タイムスタンプおよびハッシュ値などを用いることができる。   As the search management file reliability information, for example, a time stamp and a hash value can be used.

検索管理ファイルの整合性が確認できないと(ステップS1401において、NO)、システム制御部50はデータ信頼性なしと判定して(ステップS1411)、信頼性確認処理を終了する。これによって、検索管理ファイルが改ざんされたことによって正常な検索ができないという事態を防止することが可能となる。   If the consistency of the search management file cannot be confirmed (NO in step S1401), the system control unit 50 determines that there is no data reliability (step S1411), and ends the reliability confirmation process. As a result, it is possible to prevent a situation in which a normal search cannot be performed due to falsification of the search management file.

検索管理ファイルの整合性が確認できると(ステップS1401において、YES)、システム制御部50は前述の再生対象リスト作成処理においてシステムメモリ52に記憶されたディレクトリエントリ情報を取得する(ステップS1402)。そして、システム制御部50は、前述の検索管理ファイル作成処理において記録媒体200から読み出した検索管理ファイルに記載のディレクトリエントリ情報とステップS1402で取得したディレクトリエントリ情報とを比較する(ステップS1403)。   If the consistency of the search management file can be confirmed (YES in step S1401), the system control unit 50 acquires the directory entry information stored in the system memory 52 in the reproduction target list creation process described above (step S1402). Then, the system control unit 50 compares the directory entry information described in the search management file read from the recording medium 200 in the search management file creation process described above with the directory entry information acquired in step S1402 (step S1403).

ここでは、例えば、最小ファイル番号、最大ファイル番号、ファイル番号総和、タイムスタンプ総和、ファイルサイズ総和、および総ファイル数などの対象ディレクトリの構成を示す情報を用いて比較が行われる。なお、本実施形態ではDCF規格に従ってファイル番号をエントリ情報としているが、もちろんファイル名又はファイル名の文字コードの総和、記録媒体上のディレクトリエントリのハッシュ値などをディレクトリエントリ情報としてもよい。   Here, for example, the comparison is performed using information indicating the configuration of the target directory such as the minimum file number, the maximum file number, the file number total, the time stamp total, the file size total, and the total number of files. In the present embodiment, the file number is used as the entry information in accordance with the DCF standard, but of course, the file name or the sum of the character codes of the file name, the hash value of the directory entry on the recording medium, etc. may be used as the directory entry information.

システム制御部50は比較結果に応じて両者の情報が同一であるか否かを判定する(ステップS1404)。両者の情報が同一である場合(ステップS1404において、YES)、システム制御部50は全データ信頼性有りと判定して(ステップS1412)、信頼性確認処理を終了する。これによって、対象ディレクトリ内のファイル自体の変更およびファイル構成の変更によって正常な検索ができないという事態を防止することが可能となる。   The system control unit 50 determines whether or not both pieces of information are the same according to the comparison result (step S1404). If both pieces of information are the same (YES in step S1404), the system control unit 50 determines that all data reliability exists (step S1412), and ends the reliability confirmation process. As a result, it is possible to prevent a situation in which normal search cannot be performed due to a change in the file itself in the target directory and a change in the file structure.

両者の情報が同一でないと(ステップS1404において、NO)、システム制御部50は検索管理ファイルにのみ存在するファイルがあるか否かを判定する(ステップS1405)。検索管理ファイルにのみ存在するファイルがあると(ステップS1405において、YES)、システム制御部50は検索管理ファイルとディレクトリエントリ情報との両方に存在する共通ファイルがあるか否かを判定する(ステップS1406)。   If the two pieces of information are not the same (NO in step S1404), the system control unit 50 determines whether there is a file that exists only in the search management file (step S1405). If there is a file that exists only in the search management file (YES in step S1405), system control unit 50 determines whether there is a common file that exists in both the search management file and the directory entry information (step S1406). ).

共通ファイルがあると判定すると(ステップS1406において、YES)、システム制御部50は共通ファイルのディレクトリエントリ情報を記録媒体200から取得する(ステップS1407)。そして、システム制御部50は共通ファイルについて、検索管理ファイルに記載のディレクトリエントリ情報と比較する(ステップS1408)。   If it is determined that there is a common file (YES in step S1406), the system control unit 50 acquires directory entry information of the common file from the recording medium 200 (step S1407). Then, the system control unit 50 compares the common file with the directory entry information described in the search management file (step S1408).

ステップS1408におけるエントリ情報を用いた比較では、タイムスタンプ、ファイルサイズ、ファイル名、プロテクト属性、隠し属性、およびアーカイブ属性などが用いられる。   In the comparison using the entry information in step S1408, a time stamp, a file size, a file name, a protect attribute, a hidden attribute, an archive attribute, and the like are used.

続いて、システム制御部50は比較結果に応じて共通ファイルにおいてディレクトリエントリ情報が同一であるか否かを判定する(ステップS1409)。共通ファイルにおいてディレクトリエントリ情報が同一であると(ステップS1409において、YES)、システム制御部50は一部データ信頼性有りと判定して(ステップS1410)、信頼性確認処理を終了する。   Subsequently, the system control unit 50 determines whether the directory entry information is the same in the common file according to the comparison result (step S1409). If the directory entry information is the same in the common file (YES in step S1409), system control unit 50 determines that there is partial data reliability (step S1410), and ends the reliability confirmation process.

なお、検索管理ファイルにのみ存在するファイルがないと(ステップS1405において、NO)、システム制御部50はステップS1411の処理に進む。同様に、共通ファイルがないと判定すると(ステップS1406において、NO)、システム制御部50はステップS1411の処理に進む。また、共通ファイルにおいてディレクトリエントリ情報が同一でないと(ステップS1409において、NO)、システム制御部50はステップS1411の処理に進む。   If there is no file that exists only in the search management file (NO in step S1405), the system control unit 50 proceeds to the process of step S1411. Similarly, if it is determined that there is no common file (NO in step S1406), system control unit 50 proceeds to the process of step S1411. If the directory entry information is not the same in the common file (NO in step S1409), system control unit 50 proceeds to the process in step S1411.

例えば、パソコンなどで記録媒体200に画像ファイルが追加され、カメラ100において検索管理ファイルにそれが反映される前に電源遮断などがなされると、一部の画像ファイルのみの情報が検索管理ファイルに記載されていない事態が生じる。本実施形態によれば、このような場合でも、既に信頼性があると確認されているデータを有効に使用することが可能となる。   For example, if an image file is added to the recording medium 200 by a personal computer or the like and the power is cut off before the camera 100 reflects the image file in the search management file, information on only a part of the image file is stored in the search management file. An undocumented situation occurs. According to the present embodiment, even in such a case, data that has already been confirmed to be reliable can be used effectively.

以上の検索管理処理によれば、記録媒体200内の管理対象ファイルの構成の変更、管理対象ファイル自体の変更を検知して検索管理ファイルを自動的に再構築することが可能となる。   According to the search management processing described above, it is possible to automatically rebuild the search management file by detecting a change in the configuration of the management target file in the recording medium 200 and a change in the management target file itself.

また、記録媒体内の管理対象ファイル構成の変更、管理対象ファイルの変更の検知をディレクトリエントリ上に記載のデータで行うので、ファイルの内容を参照しないので高速に処理を実行することができる。さらに、検索管理ファイルの再構築は、記録媒体内の管理対象ファイル構成の変更、管理対象ファイルの変更の検知のあったディレクトリに対してのみ行われるので、変更の無いディレクトリに対しては検索管理ファイルを再構築する必要がない。   Further, since the management target file configuration in the recording medium is changed and the change of the management target file is detected with the data described on the directory entry, the processing can be executed at high speed without referring to the contents of the file. In addition, the search management file is reconstructed only for the directory in which the management target file configuration in the recording medium is changed or the change in the management target file is detected. There is no need to rebuild the file.

加えて、共通ファイルについて変更がなければ、共通ファイルの検索管理ファイルの情報はそのまま利用される。このため、他の装置でディレクトリにファイルが追加された場合又はカメラ100でディレクトリにファイルを追加して検索管理ファイルを更新前にカメラ100の電源を断とした場合などにおいても、構築済みの検索管理ファイルを有効に使用することができる。   In addition, if there is no change in the common file, the information of the search management file of the common file is used as it is. Therefore, even when a file is added to the directory by another device or when the camera 100 is turned off before the search management file is updated by adding the file to the directory by the camera 100, a search that has already been constructed is performed. The management file can be used effectively.

検索管理ファイルの再構築は、共通ファイルに変化がなければ、記録媒体内の管理対象ファイル構成の変更、管理対象ファイルの変更の検知のあったディレクトリのうち重複しない管理対象ファイルに対してのみ行われる。このため、既に構築済みのファイル情報については再構築する必要がなく、追加が検出されたファイルのみについて再検査を行うことができる。   If there is no change in the common file, the search management file is reconstructed only for the non-overlapping managed file in the directory where the management file configuration change or the management file change is detected in the recording medium. Is called. For this reason, it is not necessary to reconstruct already constructed file information, and it is possible to perform re-examination only on files for which addition has been detected.

信頼性の確認ついては、検索管理ファイルに検索管理ファイル自体のファイル属性を記載して、ファイル属性を照合することによって行うので、検索管理ファイル自体の改竄を検知することが可能となって、誤った管理を行うことを防止することができる。そして、検索管理ファイル自体の改竄確認の際には、検索管理ファイル自体およびのそのディレクトリエントリ上の情報を用いるので、検索管理ファイル単位で高速に確認を行うことができる。   The reliability check is performed by describing the file attributes of the search management file itself in the search management file and collating the file attributes. Therefore, it is possible to detect falsification of the search management file itself, which is incorrect. Management can be prevented. When the falsification confirmation of the search management file itself is used, the information on the search management file itself and its directory entry is used, so that confirmation can be performed at a high speed for each search management file.

図16は、図14のステップS1313に示す検索管理ファイル生成処理を説明するためのフローチャートである。   FIG. 16 is a flowchart for explaining the search management file generation process shown in step S1313 of FIG.

検索管理ファイルの生成処理を開始すると、システム制御部50は解析ファイルの設定を行う(ステップS1501)。ここでは、前述の検索管理ファイル作成処理(図14)で設定されたディレクトリ内の全ファイル又は信頼性が確認ができなかった一部のファイルのうちの未解析のファイルが解析ファイルとして設定される。   When the search management file generation process is started, the system control unit 50 sets an analysis file (step S1501). Here, all the files in the directory set in the above-described search management file creation process (FIG. 14) or unanalyzed files among some files whose reliability could not be confirmed are set as analysis files. .

次に、システム制御部50は後述する属性情報取得処理を行って解析ファイルの属性情報を取得する(ステップS1502)。そして、システム制御部50は属性情報に応じて検索管理ファイルに記載する情報を生成して検索管理ファイルに登録する(ステップS1503)。当該検索管理ファイルに登録する情報は、例えば、ファイル情報であり、このファイル情報には分類情報、撮影情報、および被写体情報などが含まれる。そして、このファイル情報はファイルを特定する情報と関連付けて登録される。   Next, the system control unit 50 performs attribute information acquisition processing described later to acquire attribute information of the analysis file (step S1502). Then, the system control unit 50 generates information to be described in the search management file according to the attribute information and registers it in the search management file (step S1503). The information registered in the search management file is, for example, file information. This file information includes classification information, shooting information, subject information, and the like. The file information is registered in association with information for specifying the file.

なお、ファイルを特定する情報として、例えば、ファイル名およびファイル番号などを登録するようにしてもよく、リストの並び順によってファイルと関連付けるようにしてもよい。   For example, a file name and a file number may be registered as information for specifying a file, or may be associated with a file according to the order of the list.

属性情報取得処理においてファイルヘッダがないと判定しても、システム制御部50は、ステップS1503においてその旨の情報を検索管理ファイルに登録する。   Even if it is determined that there is no file header in the attribute information acquisition process, the system control unit 50 registers information to that effect in the search management file in step S1503.

このようにして、解析ファイルの属性情報に応じた情報が検索管理ファイルに登録される。   In this way, information corresponding to the attribute information of the analysis file is registered in the search management file.

続いて、システム制御部50は、未解析のファイルの有無を確認する(ステップS1504)。未解析のファイルがあると(ステップS1504において、YES)、システム制御部50はステップS1501の処理に戻る。一方、未解析のファイルがなければ(ステップS1504において、NO)、システム制御部50は検索管理ファイル生成処理を終了する。   Subsequently, the system control unit 50 checks whether there is an unanalyzed file (step S1504). If there is an unanalyzed file (YES in step S1504), system control unit 50 returns to the process in step S1501. On the other hand, if there is no unanalyzed file (NO in step S1504), the system control unit 50 ends the search management file generation process.

以上のように、撮影などによってキャッシュ上に存在する属性情報について改めて記録媒体内のファイルを読み出して解析することを行う必要がないので、高速に検索管理ファイルの構築を行うことができる。   As described above, since it is not necessary to read and analyze the file in the recording medium again for attribute information existing on the cache by photographing or the like, the search management file can be constructed at high speed.

ところで、前述のように、記録媒体200の画像ファイルを検索して総枚数が確定すると、分類情報設定および画像消去が可能となる。そして、その間、記録媒体200内の検索管理ファイルの信頼性確認処理が並行して行われている。   By the way, as described above, when the image file of the recording medium 200 is searched and the total number is determined, the classification information setting and the image erasing can be performed. In the meantime, the reliability check processing of the search management file in the recording medium 200 is performed in parallel.

まず、信頼性の確認が行われる前に、画像ファイルが消去された場合について説明する。   First, a case where the image file is deleted before the reliability is confirmed will be described.

画像ファイルの消去に伴って当該画像ファイルが属するディレクトリのディレクトリエントリが更新される。従って、検索管理ファイルに記載の信頼性確認情報と上記のディレクトリエントリとの間に不整合が生じる。この結果、信頼性確認処理において、処理はステップS1404からステップS1405へ進むことになる。   As the image file is deleted, the directory entry of the directory to which the image file belongs is updated. Therefore, inconsistency occurs between the reliability confirmation information described in the search management file and the directory entry. As a result, in the reliability confirmation process, the process proceeds from step S1404 to step S1405.

消去された画像ファイルはディレクトリエントリに存在しないので、当該画像ファイルは検索管理ファイルにのみ存在することになる。このため、検索管理ファイルのデータは信頼性なしと判定されて、全データが再検査対象に設定されて検索管理ファイルの生成が行われることになる。   Since the deleted image file does not exist in the directory entry, the image file exists only in the search management file. For this reason, it is determined that the data of the search management file is not reliable, and all the data is set as a reexamination target, and the search management file is generated.

次に、信頼性確認が行われる前の画像ファイルについてその分類情報が変更された場合について説明する。   Next, a case where the classification information of the image file before the reliability check is changed will be described.

画像ファイルの分類情報の変更に伴って当該画像ファイルが属するディレクトリのディレクトリエントリ(タイムスタンプなど)が更新される。従って、検索管理ファイルに記載の信頼性確認情報と上記のディレクトリエントリとの間に不整合が生じる。その結果、信頼性確認処理において、処理はステップS1404からステップS1405へ進む。   Along with the change of the image file classification information, the directory entry (time stamp or the like) of the directory to which the image file belongs is updated. Therefore, inconsistency occurs between the reliability confirmation information described in the search management file and the directory entry. As a result, in the reliability confirmation process, the process proceeds from step S1404 to step S1405.

分類情報の変更においては画像ファイルは消去されていないので、検索管理ファイルにのみ存在する画像ファイルは発生しない。しかしながら、分類情報が変更されているので、当該画像ファイルに関してはディレクトリエントリと検索管理ファイルに共通に存在する画像ファイルとの間で不整合が生じる。   Since the image file is not erased when the classification information is changed, an image file that exists only in the search management file does not occur. However, since the classification information has been changed, there is a mismatch between the directory entry and the image file that exists in common in the search management file with respect to the image file.

このため、処理はステップS1409からステップS1411に進んで、検索管理ファイルのデータは信頼性なしと判定される。その結果、全データが再検査対象に設定されて検索管理ファイルの生成が行われることになる。   Therefore, the process proceeds from step S1409 to step S1411, and it is determined that the data of the search management file is not reliable. As a result, all data is set as a reexamination target, and a search management file is generated.

以上のようにして、信頼性確認の前に削除又は分類情報の変更が行われた画像ファイルについては、カメラ100において管理される画像ファイルの対象から外されることになる。   As described above, an image file whose deletion or classification information has been changed before the reliability check is excluded from the target of the image file managed by the camera 100.

図17は、図16のステップS1502に示す属性情報取得処理を説明するためのフローチャートである。   FIG. 17 is a flowchart for explaining the attribute information acquisition processing shown in step S1502 of FIG.

属性情報取得処理を開始すると、システム制御部50は解析ファイルの属性情報がシステムメモリ52のキャッシュエリアにキャッシュ情報として存在するか否かを判定する(ステップS1600)。このキャッシュ情報は、例えば、画像の撮影の際にシステムメモリ52のキャッシュエリアに保持される。   When the attribute information acquisition process is started, the system control unit 50 determines whether or not the attribute information of the analysis file exists as cache information in the cache area of the system memory 52 (step S1600). This cache information is held in the cache area of the system memory 52, for example, when an image is taken.

キャッシュ情報があると判定すると(ステップS1600において、YES)、システム制御部50はキャッシュ情報に応じて検索管理ファイルに記載する情報を取得する(ステップS1605)。そして、システム制御部50は属性情報取得処理を終了する。   If it is determined that there is cache information (YES in step S1600), the system control unit 50 acquires information described in the search management file according to the cache information (step S1605). Then, the system control unit 50 ends the attribute information acquisition process.

一方、キャッシュに属性情報がないと判定すると(ステップS1600において、NO)、システム制御部50は対象ファイルを記録媒体200から読み込む(ステップS1601)。そして、システム制御部50は当該対象ファイルに属性情報の記載されたファイルヘッダがあるか否かを判定する(ステップS1602)。   On the other hand, if it is determined that there is no attribute information in the cache (NO in step S1600), the system control unit 50 reads the target file from the recording medium 200 (step S1601). Then, the system control unit 50 determines whether or not the target file has a file header in which attribute information is described (step S1602).

ファイルヘッダがあると判定すると(ステップS1602において、YES)、システム制御部50はまず属性情報のうち撮影情報を取得し(ステップS1603)、続いて、システム制御部50は分類情報などを取得する(ステップS1604)。そして、システム制御部50は属性情報取得処理を終了する。   If it is determined that there is a file header (YES in step S1602), the system control unit 50 first acquires shooting information from the attribute information (step S1603), and then the system control unit 50 acquires classification information and the like (step S1603). Step S1604). Then, the system control unit 50 ends the attribute information acquisition process.

ファイルヘッダがないと判定すると(ステップS1602において、NO)、システム制御部50は属性情報取得処理を終了する。   If it is determined that there is no file header (NO in step S1602), the system control unit 50 ends the attribute information acquisition process.

図18は、図2に示すカメラ100における画像表示処理を説明するためのフローチャートである。   FIG. 18 is a flowchart for explaining image display processing in the camera 100 shown in FIG.

画像表示にあたっては、システム制御部50はまずユーザからサムネイル画像の表示要求が行われているか否かを判定する(ステップS1701)。例えば、本画像の読み出しに時間が掛かる場合には、本画像よりもサイズの小さいサムネイル画像を事前に読み出しておけば、画像表示を速やかに行うことができる。なお、ユーザによる設定又は画像表示モードに応じてサムネイル表示が行われることになる。   In displaying an image, the system control unit 50 first determines whether or not a request for displaying a thumbnail image has been made by the user (step S1701). For example, if it takes time to read the main image, the image can be displayed quickly if a thumbnail image smaller in size than the main image is read in advance. Note that thumbnail display is performed according to the setting by the user or the image display mode.

サムネイル画像の表示要求があると(ステップS1701において、YES)、システム制御部50はサムネイル画像の読み出しを行って当該サムネイル画像を表示部28に表示して、画像表示処理を終了する。   If there is a request for displaying a thumbnail image (YES in step S1701), the system control unit 50 reads the thumbnail image, displays the thumbnail image on the display unit 28, and ends the image display process.

この際、図12のステップS1105において第2のサムネイルの開始位置を読み出している場合には、システム制御部50は第2のサムネイル画像の表示を行う。一方、ステップS1106において第1のサムネイル画像を読み出している場合には、システム制御部50は第1のサムネイル画像の表示を行う。   At this time, if the start position of the second thumbnail is read in step S1105 of FIG. 12, the system control unit 50 displays the second thumbnail image. On the other hand, when the first thumbnail image is read in step S1106, the system control unit 50 displays the first thumbnail image.

サムネイル画像の表示要求がないと(ステップS1701において、NO)、システム制御部50はアスペクト画像表示を行うか否かを判定する(ステップS1703)。なお、アスペクト画像表示を行う際には、例えば、その旨の指示がユーザから与えられる。   If there is no thumbnail image display request (NO in step S1701), the system control unit 50 determines whether or not to display an aspect image (step S1703). In addition, when performing aspect image display, for example, an instruction to that effect is given from the user.

アスペクト画像表示を行うと判定すると(ステップS1703において、YES)、システム制御部50は本画像を読み出して所定のアスペクト比で本画像を表示部28に表示する(ステップS1704)。そして、システム制御部50は画像表示処理を終了する。   If it is determined that the aspect image display is to be performed (YES in step S1703), the system control unit 50 reads the main image and displays the main image on the display unit 28 with a predetermined aspect ratio (step S1704). Then, the system control unit 50 ends the image display process.

なお、所定のアスペクト比は、例えば、画像ファイル内のアスペクト情報を用いてもよいし、サムネイル画像のアスペクト比を用いるようにしてもよい。また、アスペクト画像表示の際には、例えば、アスペクト比に合わせて画像の切り出を行って、所謂マスク表示が行われる。   As the predetermined aspect ratio, for example, the aspect information in the image file may be used, or the aspect ratio of the thumbnail image may be used. In the aspect image display, for example, a so-called mask display is performed by cutting out an image in accordance with the aspect ratio.

アスペクト画像表示を行わないと判定すると(ステップS1703において、NO)、システム制御部50は本画像を読み出して本画像が記録されたアスペクト比でそのまま表示部28に表示する。そして、システム制御部50は画像表示処理を終了する。   If it is determined that the aspect image display is not performed (NO in step S1703), the system control unit 50 reads the main image and displays it as it is on the display unit 28 in the aspect ratio in which the main image is recorded. Then, the system control unit 50 ends the image display process.

このようにして、サイズの大きな本画像を表示する際、撮影時におけるアスペクト比でアスペクト画像表示を行うことによって、事前に表示するサムネイル画像のアスペクト比と同一にすることが可能となって、ユーザに画像表示の際にアスペクト比の変化による違和感を抱かせないようにすることができる。   In this way, when displaying a large main image, by displaying the aspect image with the aspect ratio at the time of shooting, it becomes possible to make the aspect ratio of the thumbnail image displayed in advance the same as that of the user. In addition, it is possible to prevent a sense of incongruity due to a change in aspect ratio when displaying an image.

以上のように、本発明の実施の形態では、画像再生の際にアスペクト比(つまり、画角)の不自然な変化が生じることがなく、ユーザに違和感を与えることがない。   As described above, in the embodiment of the present invention, an unnatural change in the aspect ratio (that is, the angle of view) does not occur during image reproduction, and the user does not feel uncomfortable.

上述の説明から明らかなように、図2に示す例においては、システム制御部50、画像処理部24、およびメモリ制御部15が第1の画像生成手段、第2の画像生成手段、第3の画像生成手段、第4の画像生成手段、第5の画像生成手段、記録手段、解析手段、および画像読み出し手段として機能する。また、図2に示す例では、少なくとも画像処理部24、メモリ制御部15、システム制御部50、システムメモリ52、不揮発性メモリ56、および操作部70が画像処理装置を構成する。   As is clear from the above description, in the example shown in FIG. 2, the system control unit 50, the image processing unit 24, and the memory control unit 15 include the first image generation unit, the second image generation unit, and the third It functions as an image generation means, a fourth image generation means, a fifth image generation means, a recording means, an analysis means, and an image reading means. In the example illustrated in FIG. 2, at least the image processing unit 24, the memory control unit 15, the system control unit 50, the system memory 52, the nonvolatile memory 56, and the operation unit 70 constitute an image processing apparatus.

以上、本発明について実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。   As mentioned above, although this invention was demonstrated based on embodiment, this invention is not limited to these embodiment, Various forms of the range which does not deviate from the summary of this invention are also contained in this invention. .

例えば、上記の実施の形態の機能を制御方法として、この制御方法を画像処理装置に実行させるようにすればよい。また、上述の実施の形態の機能を有するプログラムを制御プログラムとして、当該制御プログラムを画像処理装置が備えるコンピュータに実行させるようにしてもよい。なお、制御プログラムは、例えば、コンピュータに読み取り可能な記録媒体に記録される。   For example, the function of the above embodiment may be used as a control method, and this control method may be executed by the image processing apparatus. In addition, a program having the functions of the above-described embodiments may be used as a control program, and the control program may be executed by a computer included in the image processing apparatus. The control program is recorded on a computer-readable recording medium, for example.

上記の制御方法および制御プログラムの各々は、少なくとも第1の画像生成ステップ、第2の画像生成ステップ、第3の画像生成ステップ、および記録ステップを有している。   Each of the control method and the control program has at least a first image generation step, a second image generation step, a third image generation step, and a recording step.

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

15 メモリ制御部
16 圧縮/伸張部
22 撮像部
24 画像処理部
28 表示部
50 システム制御部
52 システムメモリ
56 不揮発性メモリ
70 操作部
200 記録媒体
DESCRIPTION OF SYMBOLS 15 Memory control part 16 Compression / decompression part 22 Imaging part 24 Image processing part 28 Display part 50 System control part 52 System memory 56 Non-volatile memory 70 Operation part 200 Recording medium

Claims (11)

撮影の結果得られた画像信号を画像処理して画像ファイルとしてメモリに記録する画像処理装置であって、
前記画像信号に応じて第1の画像データを生成する第1の画像生成手段と、
前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第2の画像データを生成する第2の画像生成手段と、
前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ予め選択されたアスペクト比の第3の画像データを生成する第3の画像生成手段と、
前記第1の画像データ、前記第2の画像データ、および前記第3の画像データを画像ファイルとして前記メモリに記録する記録手段と、
を有することを特徴とする画像処理装置。
An image processing apparatus that performs image processing on an image signal obtained as a result of shooting and records it in a memory as an image file,
First image generation means for generating first image data in response to the image signal;
Second image generating means for generating second image data having a size smaller than that of the first image data and having the same aspect ratio as the first image data in accordance with the image signal;
Third image generation means for generating third image data having a size smaller than that of the first image data and having a preselected aspect ratio in accordance with the image signal;
Recording means for recording the first image data, the second image data, and the third image data as image files in the memory;
An image processing apparatus comprising:
前記画像信号に応じて前記第2の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第4の画像データを生成する第4の画像生成手段と、
前記第2の画像データよりもそのサイズが小さくかつ前記予め選択されたアスペクト比の第5の画像データを生成する第5の画像生成手段とを有し、
前記記録手段は、前記第1の画像データ、前記第2の画像データ、前記第3の画像データ、前記第4の画像データ、および前記第5の画像データを前記画像ファイルとして前記メモリに記録することを特徴とする請求項1に記載の画像処理装置。
Fourth image generation means for generating fourth image data having a size smaller than that of the second image data and having the same aspect ratio as the first image data in accordance with the image signal;
Fifth image generation means for generating fifth image data having a smaller size than the second image data and having the preselected aspect ratio;
The recording means records the first image data, the second image data, the third image data, the fourth image data, and the fifth image data as the image file in the memory. The image processing apparatus according to claim 1.
前記第5の画像生成手段は、前記予め選択されたアスペクト比の前記第5の画像データを生成して、当該第5の画像データが示す画像に枠領域を付加して前記第1の画像データと同一のアスペクト比とすることを特徴とする請求項2に記載の画像処理装置。   The fifth image generation unit generates the fifth image data having the preselected aspect ratio, adds a frame region to the image indicated by the fifth image data, and generates the first image data. The image processing apparatus according to claim 2, wherein the same aspect ratio is set. 前記予め選択されたアスペクト比が前記第1の画像データのアスペクト比と同一であると、前記第3の画像生成手段は前記第3の画像データの生成を実行しないことを特徴とする請求項1に記載の画像処理装置。   The third image generation unit does not generate the third image data when the preselected aspect ratio is the same as the aspect ratio of the first image data. An image processing apparatus according to 1. 前記記録手段は前記画像ファイルを前記メモリに記録する際、少なくとも当該画像ファイルにおける前記予め選択されたアスペクト比を属性情報として付加することを特徴とする請求項1〜4のいずれか1項に記載の画像処理装置。   5. The recording apparatus according to claim 1, wherein when the image file is recorded in the memory, at least the preselected aspect ratio of the image file is added as attribute information. 6. Image processing apparatus. 前記メモリに記録された前記画像ファイルを読み出して表示部に表示する際、前記画像ファイルに付加された属性情報を解析する解析手段と、
前記解析手段による解析結果において前記画像ファイルに前記予め選択されたアスペクト比が存在しないと前記メモリから前記第2の画像データを読み出し、前記予め選択されたアスペクト比が存在すると前記メモリから前記第3の画像データを読み出した後、前記メモリから前記第1の画像データを読み出す画像読み出し手段とを有することを特徴とする請求項5に記載の画像処理装置。
Analyzing means for analyzing attribute information added to the image file when the image file recorded in the memory is read and displayed on a display unit;
If the preselected aspect ratio does not exist in the image file in the analysis result by the analyzing means, the second image data is read from the memory, and if the preselected aspect ratio exists, the third image is read from the memory. The image processing apparatus according to claim 5, further comprising: an image reading unit that reads the first image data from the memory after reading the image data.
前記第1の画像データはRAW画像データであり、前記第2の画像データおよび前記第3の画像データの各々は表示用画像データであり、さらに、前記第4の画像データおよび前記第5の画像データの各々はサムネイル画像データであることを特徴とする請求項2に記載の画像処理装置。   The first image data is RAW image data, each of the second image data and the third image data is display image data, and further, the fourth image data and the fifth image data The image processing apparatus according to claim 2, wherein each of the data is thumbnail image data. 前記画像ファイルには少なくとも前記予め選択されたアスペクト比を示すヘッダ部が備えられ、前記ヘッダ部に続いて前記第4の画像データ、前記第5の画像データ、前記第2の画像データ、前記第3の画像データ、および前記第1の画像データの順に記録されていることを特徴とする請求項7に記載の画像処理装置。   The image file includes at least a header portion indicating the preselected aspect ratio, and the header portion is followed by the fourth image data, the fifth image data, the second image data, and the second image data. The image processing apparatus according to claim 7, wherein the third image data and the first image data are recorded in this order. 撮影の結果得られた画像信号を画像処理して画像ファイルとしてメモリに記録する画像処理装置の制御方法であって、
前記画像信号に応じて第1の画像データを生成する第1の画像生成ステップと、
前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第2の画像データを生成する第2の画像生成ステップと、
前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ予め選択されたアスペクト比の第3の画像データを生成する第3の画像生成ステップと、
前記第1の画像データ、前記第2の画像データ、および前記第3の画像データを画像ファイルとして前記メモリに記録する記録ステップと、
を有することを特徴とする制御方法。
An image processing apparatus control method for performing image processing on an image signal obtained as a result of shooting and recording the image signal in a memory as an image file,
A first image generation step of generating first image data in response to the image signal;
A second image generation step of generating second image data having a smaller size than the first image data and having the same aspect ratio as the first image data in accordance with the image signal;
A third image generation step of generating third image data having a smaller size than the first image data and having a preselected aspect ratio in accordance with the image signal;
A recording step of recording the first image data, the second image data, and the third image data as image files in the memory;
A control method characterized by comprising:
撮影の結果得られた画像信号を画像処理して画像ファイルとしてメモリに記録する画像処理装置で用いられる制御プログラムであって、
前記画像処理装置が備えるコンピュータに、
前記画像信号に応じて第1の画像データを生成する第1の画像生成ステップと、
前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ前記第1の画像データと同一のアスペクト比である第2の画像データを生成する第2の画像生成ステップと、
前記画像信号に応じて前記第1の画像データよりもそのサイズが小さくかつ予め選択されたアスペクト比の第3の画像データを生成する第3の画像生成ステップと、
前記第1の画像データ、前記第2の画像データ、および前記第3の画像データを画像ファイルとして前記メモリに記録する記録ステップと、
を実行させることを特徴とする制御プログラム。
A control program used in an image processing apparatus for performing image processing on an image signal obtained as a result of shooting and recording the image signal in a memory as an image file,
A computer included in the image processing apparatus,
A first image generation step of generating first image data in response to the image signal;
A second image generation step of generating second image data having a smaller size than the first image data and having the same aspect ratio as the first image data in accordance with the image signal;
A third image generation step of generating third image data having a smaller size than the first image data and having a preselected aspect ratio in accordance with the image signal;
A recording step of recording the first image data, the second image data, and the third image data as image files in the memory;
A control program characterized by causing
請求項10に記載の制御プログラムが記録されたコンピュータに読み取り可能な記録媒体。   A computer-readable recording medium on which the control program according to claim 10 is recorded.
JP2012201610A 2012-09-13 2012-09-13 Image processing apparatus, control method thereof, control program, and recording medium Active JP6057633B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012201610A JP6057633B2 (en) 2012-09-13 2012-09-13 Image processing apparatus, control method thereof, control program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012201610A JP6057633B2 (en) 2012-09-13 2012-09-13 Image processing apparatus, control method thereof, control program, and recording medium

Publications (2)

Publication Number Publication Date
JP2014057250A true JP2014057250A (en) 2014-03-27
JP6057633B2 JP6057633B2 (en) 2017-01-11

Family

ID=50614190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012201610A Active JP6057633B2 (en) 2012-09-13 2012-09-13 Image processing apparatus, control method thereof, control program, and recording medium

Country Status (1)

Country Link
JP (1) JP6057633B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017228905A (en) * 2016-06-21 2017-12-28 キヤノン株式会社 Display control device and its control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011139269A (en) * 2009-12-28 2011-07-14 Canon Inc Imaging apparatus
JP2012023472A (en) * 2010-07-13 2012-02-02 Canon Inc Display control device, method, program and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011139269A (en) * 2009-12-28 2011-07-14 Canon Inc Imaging apparatus
JP2012023472A (en) * 2010-07-13 2012-02-02 Canon Inc Display control device, method, program and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017228905A (en) * 2016-06-21 2017-12-28 キヤノン株式会社 Display control device and its control method

Also Published As

Publication number Publication date
JP6057633B2 (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US9002059B2 (en) Image processing apparatus capable of selecting a representative image for a group of images, image processing method, and program
US9609203B2 (en) Image pickup apparatus and image pickup method
US8208040B2 (en) Display control apparatus, display control method, and recording medium
KR100932152B1 (en) Data processing device and control method
JP5388611B2 (en) Imaging apparatus, control method therefor, and program
US20080069540A1 (en) Image reproducing apparatus, image reproducing method, and computer-readable storage medium
JP5490180B2 (en) Imaging apparatus, control method therefor, and image processing apparatus
CN101924876B (en) Imaging apparatus and control method thereof, and image processing apparatus and control method thereof
JP4810376B2 (en) Image reproducing apparatus and control method thereof
JP5058834B2 (en) Imaging device
JP6057633B2 (en) Image processing apparatus, control method thereof, control program, and recording medium
JP2008205846A (en) Image processor, image processing method, and computer program
EP1821223A2 (en) Image reproducing apparatus and control method therefor
US20080068483A1 (en) Image reproducing apparatus and image reproducing method
JP2011041230A (en) Information processing system, information processor, and information generating device
JP5737977B2 (en) Image reproducing apparatus, image reproducing method and program
JP5164353B2 (en) Image reproducing apparatus and control method thereof
JP4307483B2 (en) Imaging apparatus, image display apparatus, control method thereof, and computer program
JP5019566B2 (en) Imaging apparatus, control method therefor, computer program, and storage medium
JP4991580B2 (en) Imaging apparatus and control method thereof
JP2018011180A (en) Imaging apparatus and control method thereof
JP4898344B2 (en) Image processing apparatus and image processing method
JP2013201679A (en) Image reproduction apparatus, image reproduction method of the same, program, and recording medium
JP5377051B2 (en) Image processing apparatus, control method therefor, and program
JP2012119905A (en) Recording/reproducing device, recording/reproducing method therefor, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150911

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160708

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160905

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: 20161108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161206

R151 Written notification of patent or utility model registration

Ref document number: 6057633

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151