JP4898344B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP4898344B2 JP4898344B2 JP2006218782A JP2006218782A JP4898344B2 JP 4898344 B2 JP4898344 B2 JP 4898344B2 JP 2006218782 A JP2006218782 A JP 2006218782A JP 2006218782 A JP2006218782 A JP 2006218782A JP 4898344 B2 JP4898344 B2 JP 4898344B2
- Authority
- JP
- Japan
- Prior art keywords
- image file
- date
- recording
- image
- time
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、画像処理装置及び画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method.
従来、デジタルカメラで撮影した画像データを画像ファイルとして記録する際のタイムスタンプに関する技術が開示されている。例えば、特許文献1においては、画像ファイルを記録する際のタイムスタンプにファイルの作成日時ではなく撮影日時を記録する技術が示されている。この技術では、画像ファイルをパーソナルコンピュータに送信した際に、パーソナルコンピュータで作成する画像ファイルのタイムスタンプに撮影日時を記録することが可能となっている。 2. Description of the Related Art Conventionally, a technique relating to a time stamp when recording image data captured by a digital camera as an image file has been disclosed. For example, Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for recording a shooting date and time instead of a file creation date and time in a time stamp when an image file is recorded. With this technique, when an image file is transmitted to a personal computer, the shooting date and time can be recorded in the time stamp of the image file created by the personal computer.
また、特許文献2においては、自機において作成したファイルは撮影日時で分類し、外部から取得したファイルは取得日時で分類する技術が示されている。 Japanese Patent Application Laid-Open No. 2004-228688 discloses a technique for classifying files created by the own device according to shooting date and time, and files obtained from the outside based on date and time of acquisition.
しかしながら、上述した特許文献1の技術ではタイムスタンプ領域を一つしか保持できず、上述した特許文献2で示された複数の日付データでの分類を実現することができない問題があった。また、上述した特許文献2で示される日付データは画像ファイルの画像データ内に情報を格納する必要があり、そのデータを参照するためには、画像ファイルを読み込み、内部データを解析する必要がある。そのため、画像分類を高速に行うことが困難である問題があった。
However, the technique of
本発明はこのような問題点に鑑みなされたもので、複数の日付データでの分類を実現させると共に、画像分類を高速に行うこと可能にすることを目的とする。 The present invention has been made in view of such problems, and an object of the present invention is to realize classification with a plurality of date data and to perform image classification at high speed.
そこで、本発明の画像処理装置は、属性情報として撮影日時情報を含む画像ファイルを読み込む画像ファイル読み込み手段と、前記画像ファイル読み込み手段が読み込んだ画像ファイルに格納された画像データを用いて、新たな画像ファイルを作成する画像ファイル作成手段と、を有し、前記画像ファイル作成手段は、作成した前記新たな画像ファイルに対応するディレクトリエントリ中の作成日時情報の記録領域に、前記画像ファイル読み込み手段が読み込んだ前記画像ファイルの前記撮影日時情報をコピーして記録する撮影日時記録手段と、作成した前記新たな画像ファイルに対応するディレクトリエントリ中の更新日時情報の記録領域に、画像処理装置から取得した現在日時を記録する作成日時記録手段と、を有することを特徴とする。 Therefore, the image processing apparatus according to the present invention uses the image file reading means for reading an image file including shooting date / time information as attribute information, and new image data using the image data stored in the image file read by the image file reading means. It has an image file generation means for generating an image file, and the image file creation unit, the recording area of the creation date and time information in the directory entry corresponding to the new image file created and the image file read unit a shooting date recording means for recording copy the photographing date and time information of the image file read in the recording area of the update date information in the directory entry corresponding to the new image file created, acquired from the image processing apparatus And a creation date and time recording means for recording the current date and time.
係る構成とすることにより、画像ファイルの作成時にディレクトリエントリの作成日時として撮影日時情報を、更新日時としてファイルの作成日時情報を、書き込むことができる。したがって、例えば、ファイル転送後の画像ファイルに対し、撮影日時と、ファイルの転送日時とによる分類/検索を高速に行うことができる。また、例えば、編集後の画像ファイルであっても、撮影日時がディレクトリエントリに記録されるため、撮影日時による高速な仕分けが可能となる。 With such a configuration, shooting date / time information can be written as a directory entry creation date / time and file creation date / time information can be written as an update date / time when an image file is created. Therefore, for example, for an image file after file transfer, classification / search based on shooting date and time and file transfer date and time can be performed at high speed. Further, for example, even in an edited image file, the shooting date and time are recorded in the directory entry, so that high-speed sorting by the shooting date and time is possible.
なお、画像処理装置とは、例えば、後述するデジタルカメラ等に対応する。また、作成とは、例えば、編集等を含むものとする。 The image processing apparatus corresponds to, for example, a digital camera described later. The creation includes, for example, editing.
また、本発明は、画像処理方法、プログラム及び記録媒体としてもよい。 The present invention may be an image processing method, a program, and a recording medium.
本発明によれば、複数の日付データでの分類を実現させると共に、画像分類を高速に行うこと可能にすることができる。 According to the present invention, it is possible to realize classification with a plurality of date data and to perform image classification at high speed.
以下、本発明の実施形態について図面に基づいて説明する。なお、以下に説明する実施形態においては、静止画像と動画との撮影が可能なデジタルカメラを用いて説明を行う。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the embodiment described below, a description will be given using a digital camera capable of capturing still images and moving images.
図1は、デジタルカメラの構成の一例を示した図である。図1において、100は、デジタルカメラである。21は、撮影レンズからなる光学系である。22は、光学像を電気信号に変換するCCDやCMOS素子等で構成される撮像部である。23は、アナログ信号をデジタル信号に変換するA/D変換器である。A/D変換器23は、撮像部22から出力されるアナログ信号をデジタル信号に変換する場合に用いられる。また、A/D変換器23は、音声制御部11から出力されるアナログ信号をデジタル信号に変換する場合にも用いられる。
FIG. 1 is a diagram illustrating an example of the configuration of a digital camera. In FIG. 1,
12は、撮像部22、音声制御部11、A/D変換器23、D/A変換器13にクロック信号や制御信号を供給するタイミング発生部であり、メモリ制御部15及びシステム制御部17により制御される。24は、画像処理部であり、A/D変換器23からのデータ、又はメモリ制御部15からのデータに対し、所定の画素補間、縮小といったリサイズ処理や色変換処理を行う。また、画像処理部24では、撮像した画像データを用いて所定の演算処理を行う。画像処理部24の演算処理によって得られた演算結果に基づいてシステム制御部17が露光制御、測距制御を行う。これにより、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理が行われる。更に、画像処理部24では撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。
A
A/D変換器23からの出力データは、画像処理部24及びメモリ制御部15を介して、又は直接メモリ制御部15を介して、メモリ32に書き込まれる。メモリ32は、マイク10において録音された音声データ、撮影した静止画像や動画像及び画像ファイルを構成する場合の、ファイルヘッダを格納するためのメモリである。このメモリ32は、所定枚数の静止画像や所定時間の動画像及び音声を格納するのに十分な記憶容量を備えている。
Output data from the A /
16は、適応離散コサイン変換(ADCT)等により画像データを圧縮伸張する圧縮/伸張部であり、操作部25における操作をトリガにしてメモリ32に格納された撮影画像を読み込んで圧縮処理を行い、処理を終えたデータをメモリ32に書き込む。また、圧縮/伸張部16は、記録部19等からメモリ32に読み込まれた圧縮画像を読み込んで伸張処理を行い、処理を終えたデータをメモリ32に書き込む。圧縮/伸張部16によりメモリ32に書き込まれた画像データは、システム制御部17のファイル部においてファイル化され、インターフェース(I/F)18を介して記録媒体200に記録される。
また、メモリ32は、画像表示用のメモリを兼ねている。13は、D/A変換器である。14は、LCD等からなる画像表示部である。メモリ32に書き込まれた表示用の画像データは、D/A変換器13を介して画像表示部14により表示される。
The
10は、マイクである。マイク10から出力された音声信号は、アンプ等で構成される音声制御部11を介してA/D変換部23においてデジタル信号に変換された後、メモリ制御部15によってメモリ32に格納される。一方、記録媒体200に記録されている音声データは、メモリ32に読み込まれた後、D/A変換部13を介し音声制御部11において制御された信号が、スピーカー39において発音される。
17は、デジタルカメラ100全体を制御するシステム制御部である。31は、システム制御部17の動作用の定数、変数、プログラム等を記憶するシステムメモリである。
不揮発性メモリ20は、電気的に消去・記録可能なメモリであり、例えばEEPROM等が用いられる。
The
第1シャッタースイッチSW1(62)、第2シャッタースイッチSW2(64)、操作部25は、システム制御部17に各種の動作指示を入力するための操作手段である。
The first shutter switch SW1 (62), the second shutter switch SW2 (64), and the
27は、モード切替スイッチであり、システム制御部17の動作モードを静止画撮影モード、連続撮影(連写)モード、動画モード、再生モード等の何れかに切り替えることができる。
第1シャッタースイッチSW1(62)は、デジタルカメラ100に設けられたシャッターボタンの操作途中(半押し)でONとなる。そして、第1シャッタースイッチSW1(62)は、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作開始を指示する。 The first shutter switch SW1 (62) is turned ON during the operation of the shutter button provided in the digital camera 100 (halfway). The first shutter switch SW1 (62) instructs the start of operations such as AF (auto focus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, and EF (flash pre-emission) processing.
第2シャッタースイッチSW2(64)は、シャッターボタンの操作完了(全押し)でONとなり、撮像部22からの信号読み出しから記録媒体200に画像データを書き込むまでの一連の撮像処理の動作開始を指示する。
The second shutter switch SW2 (64) is turned on when the operation of the shutter button is completed (fully pressed), and instructs to start a series of imaging processing operations from reading a signal from the
操作部25は、各種ボタンやタッチパネル等からなる。より具体的に例示すると、操作部25は、消去ボタンや、メニューボタン、SETボタン、十字に配置された4方向キー等から構成される。メニューボタンが押されると各種設定が可能なメニュー画面が画像表示部14に表示される。利用者は、画像表示部14に表示されたメニュー画面と、4方向キーやSETボタンを用いて直感的に各種設定を行うことができる。
The
電源ボタン39は、電源オン、電源オフを切り替える。30は、電源制御部で、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成され、電池の装着の有無、電池の種類、電池残量の検出を行う。また、電源制御部30は、検出結果及びシステム制御回路17の指示に基づいて、DC−DCコンバータを制御し、必要な電圧を必要な期間、記録部19を含む各部へ供給する。
The
28は、アルカリ電池やリチウム電池等の一次電池やNiCd電池、NiMH電池、Li電池等の二次電池、ACアダプター等からなる電源部である。33及び34はコネクタであり、電源部28と電源制御部30とを接続する。
A
40は、RTC(Real Time Clock)であり、電源制御部30とは別に内部に電源部を保持し、電源部28が落ちた状態であっても、時計動作状態を続けている。システム制御部17は、起動時にRTC40より取得した日時を用いてタイマー制御する。
18は、メモリカードやハードディスク等の記録媒体200とのインターフェースである。35は、記録媒体200とインターフェース18との接続のためのコネクタである。38は、コネクタ35に記録媒体200が装着されているか否かを検知する記録媒体着脱検知部である。
200は、メモリカードやハードディスク等の記録媒体である。記録媒体200は、半導体メモリや磁気ディスク等から構成される記録部19、デジタルカメラ100とのインターフェース37及び記録媒体200とデジタルカメラ100とを接続するためのコネクタ36を備えている。
通信部29は、RS232CやUSB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信、等の各種通信処理を行う。コネクタ(無線通信の場合はアンテナ)63は、通信部29を介してデジタルカメラ100を他の機器と接続する。
The
(動作の説明)
以下、デジタルカメラ100の動作を説明する。なお、図2、3、6、7、9、11に示すフローチャートは全てシステム制御部17がメモリ32に格納された、以下に示す実施形態に係るプログラムをRAM等に読み出し、演算処理や制御を行うことにより実現される。
(Description of operation)
Hereinafter, the operation of the
<実施形態1>
図2は、本実施形態のデジタルカメラ100の全体的な動作を説明するためのフローチャートである。
<
FIG. 2 is a flowchart for explaining the overall operation of the
電源ボタン39が操作され電源がオンに切り替わると、S201において、システム制御部17は、フラグや制御変数等を初期化する。続いてS202において、システム制御部17は、RTC40より日時を取得し、システムタイマーに対する設定を行う。
When the
次に、S203において、システム制御部17は、モード切替ボタン27の設定位置を判断し、撮影モードに設定されていると判断すると、S204へ進む。このS204における撮影モード処理の詳細は、後述する図6を用いて説明する。
Next, in S203, the
S203において、モード切替ボタン27がその他のモードに設定されていると判断すると、システム制御部17は、S205へ進む。S205において、システム制御部17は、選択されたモードに応じた処理を実行し、処理を終えたならばS206に進む。ここで、その他のモードとは例えば再生モードがあり、再生モードでは撮影モードで記録された画像ファイルの再生表示等が行われる。
If it is determined in S203 that the
S206において、システム制御部17は、電源ボタン39の設定位置を判断し、電源ボタン39が電源オンに設定されていると判断すると、S203に戻る。S206において、システム制御部17は、電源ボタン39が電源オフに設定されていると判断すると、S207へ進んで所定の終了処理を行う。
In S206, the
ここで、終了処理には、以下のような処理が含まれる。画像表示部14の表示を終了状態に変更し、フラグや制御変数等を含むパラメータや設定値、設定モードを不揮発性メモリ20に記録する。電源供給が不要な部分への電源を遮断する。終了処理が完了すると、システム制御部17は、S208に進み、図2に示す処理を終了する。
Here, the termination processing includes the following processing. The display on the
図3は、実施形態1におけるS204での撮影モード処理について説明するためのフローチャートである。 FIG. 3 is a flowchart for explaining the shooting mode processing in S204 in the first embodiment.
上述したように第2シャッタースイッチSW2(64)は、シャッターボタンの操作完了(全押し)でONとなり、一連の撮像処理の動作開始を指示する。撮影が開始する(S300)と、システム制御部17は、S202において起動時に設定されたタイマーより、現在値を取得し(S303)、システムメモリ31に保持する。
As described above, the second shutter switch SW2 (64) is turned on when the operation of the shutter button is completed (fully pressed), and instructs the start of a series of imaging processing operations. When shooting starts (S300), the
続いて、システム制御部17は、第1シャッタースイッチSW1(62)の操作時に行ったAE処理より求められたシャッター速度をシステムメモリ31より取得し、シャッターを開け(S301)、露光を開始する(S302)。
Subsequently, the
続いて、システム制御部17は、前記取得したシャッター速度に基づいて、露光を終了するか否かを判断する(S303)。露光を終了すると判断すると、システム制御部17は、シャッターを閉じ(S306)、撮像部22に蓄積された信号をA/D変換し、メモリ32に書き込む(S307)。システム制御部17は、メモリ32に書き込まれた画像信号を、メモリ制御部15と、画像処理部24とを用いて適切に画像処理し(S308)、圧縮/伸張部16において圧縮し(S309)、本画像データを生成する。
Subsequently, the
このとき本画像データデータは、後述する図4に示すように、各種マーカーコード及び圧縮データから構成される。 At this time, the main image data data is composed of various marker codes and compressed data as shown in FIG.
続いて、システム制御部17は、メモリ32に蓄積された画像データ等を用いて、サムネイル用画像処理(S310)及びサムネイル用圧縮(S311)を行い、メモリ32に格納する。そして、システム制御部17は、主に撮影日時情報から構成される画像ファイルヘッダをメモリ32に生成する(S312)。
Subsequently, the
続いて、システム制御部17は、S309で生成した本体画像の圧縮データサイズと、S311で生成したサムネイル画像データのデータサイズと、S312で生成したヘッダサイズの和を算出後、システムメモリ31に記憶する(S315)。
Subsequently, the
そして、システム制御部17は、後述する撮影画像の記録処理(S313)を行った後、図3に示す処理を終了する(S314)。ここで、記録処理(S313)は、上述した撮影処理に対して同期に行われても、非同期に行われてもよい。
Then, the
図4は、上述した画像データの構成の一例を示した図である。
撮影処理において生成された画像データ701は、先頭に画像開始を示すマーカーSOI702を有し、その後にアプリケーションマーカーAPP1703を有する。
アプリケーションマーカーAPP1703は、APP1のサイズ704、APP1の識別コード705、画像の作成日時を示すDateTime706、画像データが生成された日時を示すDateTimeOriginal707を含む。また、アプリケーションマーカーAPP1703は、その他の撮影情報708及び上述したサムネイル画像710を含む。
FIG. 4 is a diagram showing an example of the configuration of the image data described above.
The
The application marker APP1703 includes an
上述したS312において、ヘッダを生成する場合、システム制御部17は、上述したDateTime707及びDateTimeOriginal708には、S303においてシステムメモリ31に記憶した撮影日時情報を格納する。
When generating the header in S <b> 312 described above, the
本画像は、量子化テーブルDQT712、ハフマンテーブルDHT713、フレーム開始マーカーSOF714、スキャン開始マーカー715及び圧縮データ716から構成され、画像データの最後を示すマーカーEOI717で終端される。
The main image is composed of a
図5は、記録処理の結果、記録媒体200に記録されるディレクトリ構成の一例を示した図である。ルートディレクトリにDCIMディレクトリ501が記録され、DCIMディレクトリ501には8文字から生成されるサブディレクトリが生成される。サブディレクトリが保持する名前は先頭3文字が100から始まる数字で構成され、生成する毎に1ずつインクリメントされたサブディレクトリ名が付与される(図5の502、503参照)。
FIG. 5 is a diagram showing an example of a directory structure recorded on the
サブディレクトリ502配下にはデジタルカメラ100が作成する、各種ファイルが作成される。ここで生成されるファイル名は8文字のファイル名と、ファイルの種類を示す3文字の拡張子とから構成さる。ファイル名のうち後ろ4文字は0001から始まる数字で構成され、撮影毎に1ずつインクリメントされたファイル名が付与される。静止画の場合は拡張子にJPGが付与される。
Various files created by the
図6は、上述した撮影処理において生成された画像データの記録処理を示したフローチャートである。記録処理を開始すると(S401)、システム制御部17は、上述したファイル名生成ルールに則りファイル名を生成し(S402)、S303においてシステムメモリ31に記憶した撮影日時情報を取得する(S403)。
FIG. 6 is a flowchart showing a recording process of the image data generated in the above-described photographing process. When the recording process is started (S401), the
その後、システム制御部17は、書き込むデータサイズを取得する(S409)。そして、システム制御部17は、生成したファイルを格納するディレクトリが記録媒体200に存在しない場合(S404においてNo)、格納するディレクトリ、例えば100CANONを作成する(S405)。既にディレクトリが存在する場合、又はS405でディレクトリを作成した場合、システム制御部17は、S402において生成したファイル名及びS403で取得した日時情報を用いてディレクトリエントリを作成する(S406)。
Thereafter, the
このとき、後述する図8に示すディレクトリエントリ601中の作成日時603及び更新日時604には、S403で取得した撮影日時情報と同じ値を記録する(図8の607参照)。システム制御部17は、S315においてシステムメモリ31に記憶した画像データサイズからファイルサイズ606を記録し、記録媒体200中の空きデータ領域を示す開始クラスタ番号を記録する。ディレクトリエントリの生成が完了後、システム制御部17は、生成したディレクトリエントリ及び撮影処理において生成された画像データを記録媒体200に対し書き込む(S407)。そして、システム制御部17は、図6に示す記録処理を終了する(S408)。
At this time, the same value as the shooting date / time information acquired in S403 is recorded in the creation date /
撮影モードにおいて記録された画像ファイルを用いて、新規にファイルを作成する処理について説明する。 A process for creating a new file using an image file recorded in the shooting mode will be described.
モード切替ボタン27を用いて再生モードに切り替えられると、システム制御部17は、上述した記録媒体200に記録された画像ファイルを画像表示部14へ再生する、再生処理を行う。図7は、再生処理を示すフローチャートである。
When the mode is switched to the playback mode using the
再生を開始すると(S901)、システム制御部17は、記録媒体200に記録されたディレクトリエントリを参照し、再生すべきファイル名を求める(S902)。そして、システム制御部17は、求めたファイル名のファイルをメモリ32に読み出し(S903)、圧縮/伸張部16を用いて伸張処理を行い(S904)、伸張後の画像データを再度、メモリ32に格納する。
When reproduction is started (S901), the
続いて、システム制御部17は、メモリ32に格納した伸張後の画像データを、画像処理部24を用いて表示用のサイズにリサイズし(S905)、VRAMデータとしてメモリ32に格納する(S906)。続いて、システム制御部17は、メモリ32に格納したVRAMデータをメモリ制御部15及びD/A変換器13を用いて画像表示部14に出力する。
Subsequently, the
上述した再生状態においてデジタルカメラ100の操作者は、操作部25に配置された方向選択キーを用いて記録媒体200に記録された画像ファイルを指定し、デジタルカメラ100に順次再生処理を施させ、画像表示部14を用いて閲覧することができる。
In the above-described playback state, the operator of the
ここで画像表示部14に表示された画像ファイルに対し、画像サイズ変換を行って新規に画像ファイルを記録することができる。この処理を図8及び図9を用いて説明する。図8は、記録媒体200に記録されたディレクトリエントリの一例を示す図である。図9は、デジタルカメラ100の静止画編集処理を示すフローチャートである。
Here, an image file can be newly recorded by performing image size conversion on the image file displayed on the
編集処理を開始すると(S801)、システム制御部17は、画像表示部14に表示されている画像データのファイル名(図8の608参照)を取得する(S802)。続いて、システム制御部17は、取得したファイル名から記録媒体200に記録された画像データをメモリ32に読みこみ(S803)、圧縮/伸張部16を用いてメモリ32に伸張後の画像データを格納する(S804)。
When the editing process is started (S801), the
システム制御部17は、伸張後の画像データを画像処理部24において所定の画像サイズに拡大/縮小処理を行う(S805)。そして、システム制御部17は、サイズ変更した画像を圧縮/伸張部16において圧縮し(S806)、メモリ32に格納する。
The
ここで、システム制御部17は、撮影日時取得処理S807を行う。撮影日時取得処理については図12を用いて説明する。図12は、撮影日時取得処理の一例を示すフローチャートである。撮影日時取得処理S121において、まずS803において読み込んだ元画像ファイルのディレクトリエントリ中の作成日時603を取得し(S807)、取得した日時が0でない場合(S122)、作成日時を撮影日時として認識する(S123)。取得した作成日時が0の場合、該ファイルを読み込み(S124)DateTimeOriginalを取得する(S125)。ここで、ファイル内にDateTimeOriginalが存在する場合(S126)、取得した値を撮影日時として認識する(S127)。ファイル内に記述されていない場合、ディレクトリエントリ中の更新日時を取得し(S128)、更新日時が0でない場合(S129)、更新日時を撮影日時と認識する(S130)。更新日時が0の場合、システムタイマーより現在日時を取得し(S131)、現在日時を撮影日時と認識する(S132)。また、システム制御部17は、システムタイマーより現在日時を取得する(S813)。続いて、システム制御部17は、メモリ32に読み込まれている元画像ファイルのヘッダ部をコピーし、画像サイズに関する領域及び作成日時に関する項目DateTime706の領域を前記取得した現在日時に変更する(S808)。
Here, the
S808までの処理において、新規に作成する画像データの生成が完了するため、システム制御部17は、新規に作成するファイル名をIMG_0003.JPGと作成し(S809)、ディレクトリエントリをそのファイル名で作成する(図8の609参照)。このとき、システム制御部17は、ファイルの作成日時にはS807で取得した元画像の撮影日時を設定し、ファイルの更新日時にはS813で取得した日時を設定する。また、システム制御部17は、生成するファイルサイズ及び画像データを記録する記録媒体200の開始クラス番号を順次生成する(S810)。そして、システム制御部17は、ディレクトリエントリを生成した後に、画像データ及びディレクトリエントリを記録媒体200に書き込み(S811)、図9に示す編集処理を完了する(S812)。
In the processing up to S808, since the generation of the newly created image data is completed, the
<実施形態2>
図1に示したデジタルカメラ100は、実施形態1で示した静止画記録の他に動画記録を行うこともできる。デジタルカメラ100は、モード切替ボタン27において動画記録モードが選択されることで、静止画記録モードから動画記録モードへと切り替わる。
<
The
動画記録モードにおいて第2シャッタースイッチSW2(64)を介した動作指示を検出すると、システム制御部17は、撮像部22において撮像された画像データを所定のフレームレートでメモリ32に順次格納する。同時に、システム制御部17は、マイク10から記録された音声を、音声制御部11、A/D変換部23を介してメモリ32に格納する。本実施形態ではPCM形式のデジタルデータを想定している。この時の格納フォーマットの一例を図10に示す。図10は、動画ファイルの構成の一例を示す図である。
When detecting an operation instruction via the second shutter switch SW2 (64) in the moving image recording mode, the
システム制御部17は、データの先頭部に、映像のフレームレートや音声のサンプリングレート等のデータからなる固定長のヘッダ領域(11−1)を配置し、その直後に1秒間の音声データを格納する固定長の音声データ領域を配置する(11−2)。システム制御部17は、その直後から、前記所定のフレームレートにおいて記録されたフレームデータを順次メモリ上に格納し(11−3、11−4、11−5、11−6)、1秒単位で順次データを生成する。
The
1秒間のデータが蓄積されると、システム制御部17は、動画像及び音声の記録処理と、メモリ32に蓄積された動画データの記録媒体200に対する記録処理と、を並列に開始する。記録処理のフローは図6で示した静止画の記録処理と同じである。
When data for one second is accumulated, the
つまり、システム制御部17は、新規に生成するファイル名MVI_0005.AVI(図8の613参照)を生成し(S402)、システムタイマーより記録開始時の日時を取得する(S403)。そして、システム制御部17は、書き込みサイズを取得し(S409)、初回の書き込み(つまり、ヘッダ領域11−1を含むデータの書き込み)時は、生成するファイルを格納するディレクトリの有無を判断する(S404)。
That is, the
ファイルを格納するディレクトリが無いと判断すると(S404においてN)、システム制御部17は、ディレクトリを生成する(S405)。ファイルを格納するディレクトリが存在すると判断すると(S404においてY)、システム制御部17は、ステップS406に進む。
If it is determined that there is no directory for storing the file (N in S404), the
システム制御部17は、ディレクトリにエントリを作成し(S406)、記録媒体200に対し書き込みを行う(S407)。動画記録処理は第2シャッタースイッチSW2(64)を介した動作指示の再検出、又は記録媒体200の空き容量が無くなる、又はメモリ32の空きがなくなるまで継続される。
The
このような条件において動画記録処理が停止すると、システム制御部17は、メモリ32に残った動画データを書き込んだ後、各音声データ/映像データへのオフセットやサイズを格納したインデックス情報(11−18)を記録する。そして、システム制御部17は、トータルのデータサイズをディレクトリエントリに記載し、その情報を記録媒体200に記録することで、動画ファイルの記録を完了する。
When the moving image recording process is stopped under such conditions, the
また、システム制御部17は、完了時に、動画ファイルの管理情報を別ファイルMV_0005.THM(図8の614参照)に生成することができる。このファイルは上述した図4と同一構造を有しており、圧縮データは、動画データの先頭フレーム(11−3)の縮小データとして記録される。また、システム制御部17は、ヘッダのDateTime706及びDateTimeOriginal707には動画記録開始時点の日時を記載する。この管理ファイル(図8の614参照)の記録処理も図6を用いて上述した通りであり、ディレクトリエントリに格納される作成日時及び更新日時は動画記録を開始した日時となる。
In addition, the
上述したような処理によって生成された動画データは、デジタルカメラ100において例えば所定フレーム以下の切り取り編集が可能である。以下、図11を用いて、MVI_0005.AVI(図8の613参照)の後方切り取り編集した動画データの新規ファイル保存に関する説明を行う。図11は、動画編集処理の一例を示すフローチャートである。
The moving image data generated by the processing as described above can be cut and edited, for example, by a predetermined frame or less in the
編集開始(S100)後、システム制御部17は、操作部25の方向選択ボタンによって選択された切り取り開始位置の情報に基づいて、図10に示した動画ファイルの切り取り開始位置を確定する(S101)。次に、システム制御部17は、元の動画ファイル名MVI_0005.AVIを取得し(S102)、そのディレクトリエントリ(図8の613参照)を取得する(S103)。
After the start of editing (S100), the
続いて、システム制御部17は、前述した撮影日時取得処理において撮影日時をシステムメモリ31に保持する(S807)。また、システム制御部17は、編集開始時点の時刻として現在の日時をシステムタイマーより取得する(S111)。
Subsequently, the
続いて、システム制御部17は、記録媒体200より動画データをメモリ32に読み込み(S105)、読み込んだデータを新規ファイルに記録する(S106)。この際の記録処理は、図6に示した処理と同じである。
Subsequently, the
つまり、システム制御部17は、新規に生成するファイル名MVI_0005.AVI(図8の615参照)を生成し(S402)、システムタイマーより記録開始時の日時を取得する(S403)。そして、システム制御部17は、書き込みサイズ(書き込むデータサイズ)を取得し(S409)、初回の書き込み(つまり、ヘッダ領域11−1を含むデータの書き込み)時は、生成するファイルを格納するディレクトリの有無を判断する(S404)。
That is, the
ファイルを格納するディレクトリが無いと判断すると(S404においてN)、システム制御部17は、ディレクトリを生成する(S405)。ファイルを格納するディレクトリが存在すると判断すると(S404においてY)、システム制御部17は、ステップS406に進む。
If it is determined that there is no directory for storing the file (N in S404), the
システム制御部17は、ディレクトリにエントリを作成し(S406)、記録媒体200に対し書き込みを行う(S407)。
The
続いて、システム制御部17は、S105において読み込んだデータ内にS101においてシステムメモリ31に格納された編集開始位置が含まれているか否かの判定を行う(S107)。編集開始位置が含まれていない場合、システム制御部17は、編集開始位置が含まれるまで、データの読み込み(S105)及び記録(S106)の処理を継続する。
Subsequently, the
編集開始位置を含むデータをS105において読み込んだ場合、システム制御部17は、編集開始位置の直前までの動画データを記録媒体200に対して記録し(S106)、記録した動画データ等に応じたインデックスデータを記録する。
When the data including the editing start position is read in S105, the
動画データの記録が完了すると、システム制御部17は、ディレクトリエントリの情報(図8の615参照)に対し、S103において取得し、システムメモリ31に記憶した、元動画データの撮影日時情報を用いて、作成日時603を編集する(S810)。続いて、システム制御部17は、画像データ及びディレクトリエントリを記録媒体200に対し書き込み(S811)、動画編集処理を完了する(S812)。
When the recording of the moving image data is completed, the
また、システム制御部17は、完了時に、動画ファイルの管理情報を別ファイルMV_0005.THM(616)に生成することができる。このファイルは上述した図4と同一構造を有しており、圧縮データは、動画データの先頭フレーム(11−3)の縮小データとして記録される。また、システム制御部17は、ヘッダのDateTime706には編集開始時点での日時としてS111において取得した日時に基づくデータを設定し、DateTimeOriginal707には動画記録開始時点の日時を記載する。この管理ファイルの記録処理も図6を用いて上述した通りであり、ディレクトリエントリに格納される作成日時は、動画記録を開始した日時となり、更新日時は、編集日時となる(616)。
In addition, the
S104において元画像の撮影日時を取得する際に、明らかに撮影日時が正しく設定されていないと判断した場合、システム制御部17は、元画像のディレクトリエントリ中の更新日時604を取得してもよい。そして、システム制御部17は、取得した更新日時604を元画像の撮影日時の代用として用いてもよい。例えば、システム制御部17は、ディレクトリエントリの作成日時に全て0が設定されている等の場合、明らかに撮影日時が正しく設定されていないと判断する。
When acquiring the shooting date / time of the original image in S104, if it is determined that the shooting date / time is clearly not set correctly, the
同様に、システム制御部17は、明らかに撮影日時が正しく設定されていないと判断した場合、元画像のファイルヘッダに記載されたDateTimeOriginal707を取得し、元画像の撮影日時の代用として用いてもよい。
Similarly, when the
<その他の実施形態>
また、本発明の目的は、以下のようにすることによって達成されることはいうまでもない。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記録媒体(又は記憶媒体)を、システム或いは装置に供給する。そして、そのシステム或いは装置のコンピュータ(又はCPUやMPU)が記録媒体に格納されたプログラムコードを読み出し実行する。この場合、記録媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することになり、そのプログラムコードを記録した記録媒体は本発明を構成することになる。
<Other embodiments>
Needless to say, the object of the present invention can be achieved as follows. That is, a recording medium (or storage medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded is supplied to the system or apparatus. Then, the computer (or CPU or MPU) of the system or apparatus reads out and executes the program code stored in the recording medium. In this case, the program code itself read from the recording medium realizes the functions of the above-described embodiment, and the recording medium on which the program code is recorded constitutes the present invention.
また、コンピュータが読み出したプログラムコードを実行することにより、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)等が実際の処理の一部又は全部を行う。その処理によって上述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Also, by executing the program code read by the computer, an operating system (OS) or the like operating on the computer performs part or all of the actual processing based on the instruction of the program code. Needless to say, the process includes the case where the functions of the above-described embodiments are realized.
更に、記録媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれたとする。その後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行い、その処理によって上述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Furthermore, it is assumed that the program code read from the recording medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer. After that, based on the instruction of the program code, the CPU of the function expansion card or function expansion unit performs part or all of the actual processing, and the function of the above-described embodiment is realized by the processing. Needless to say.
本発明を前記記録媒体に適用する場合、その記録媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。 When the present invention is applied to the recording medium, the recording medium stores program codes corresponding to the flowcharts described above.
以上、上述した各実施形態によれば、複数の日付データでの分類を実現させると共に、画像分類を高速に行うこと可能にすることができる。また、作成日時に撮影日時が記録されていない画像ファイルに対しては、画像データ内に格納された撮影日時情報やファイルの更新日時情報を代用することで、同様の効果を得ることができる。 As described above, according to each of the embodiments described above, it is possible to realize classification with a plurality of date data and to perform image classification at high speed. The same effect can be obtained by substituting the shooting date / time information stored in the image data or the file update date / time information for an image file in which the shooting date / time is not recorded as the creation date / time.
以上、本発明の好ましい実施形態について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。 The preferred embodiments of the present invention have been described in detail above, but the present invention is not limited to such specific embodiments, and various modifications can be made within the scope of the gist of the present invention described in the claims.・ Change is possible.
14 画像表示部
17 システム制御部
22 撮像部
100 デジタルカメラ
200 記録媒体
14
Claims (6)
前記画像ファイル読み込み手段が読み込んだ画像ファイルに格納された画像データを用いて、新たな画像ファイルを作成する画像ファイル作成手段と、
を有し、
前記画像ファイル作成手段は、
作成した前記新たな画像ファイルに対応するディレクトリエントリ中の作成日時情報の記録領域に、前記画像ファイル読み込み手段が読み込んだ前記画像ファイルの前記撮影日時情報をコピーして記録する撮影日時記録手段と、
作成した前記新たな画像ファイルに対応するディレクトリエントリ中の更新日時情報の記録領域に、画像処理装置から取得した現在日時を記録する作成日時記録手段と、
を有することを特徴とする画像処理装置。 Image file reading means for reading an image file including shooting date and time information as attribute information;
Image file creating means for creating a new image file using image data stored in the image file read by the image file reading means;
Have
The image file creating means
In the recording area of the creation date and time information in the directory entry corresponding to the new image file that you created, and the shooting date and time recording means for recording by copying the shooting date and time information of the image file read by the image file read means ,
Creation date and time recording means for recording the current date and time acquired from the image processing device in a recording area of update date and time information in the directory entry corresponding to the created new image file;
An image processing apparatus comprising:
属性情報として撮影日時情報を含む画像ファイルを読み込む画像ファイル読み込み工程
と、
前記画像ファイル読み込み工程において読み込んだ画像ファイルに格納された画像データを用いて、新たな画像ファイルを作成する画像ファイル作成工程と、
を有し、
前記画像ファイル作成工程は、
作成した前記新たな画像ファイルに対応するディレクトリエントリ中の作成日時情報の記録領域に、前記画像ファイル読み込み工程で読み込んだ前記画像ファイルの前記撮影日時情報をコピーして記録する撮影日時記録工程と、
作成した前記新たな画像ファイルに対応するディレクトリエントリ中の更新日時情報の記録領域に、前記画像処理装置から取得した現在日時を記録する作成日時記録工程と、
を有することを特徴とする画像処理方法。 An image processing method executed by an image processing apparatus,
An image file reading step for reading an image file including shooting date and time information as attribute information;
An image file creation step for creating a new image file using the image data stored in the image file read in the image file reading step;
Have
The image file creation step includes:
The recording area of the creation date and time information in the directory entry corresponding to the new image file created, and shooting date recording process of recording and copying the photographing date and time information of the image file read by the image file read process ,
A creation date and time recording step of recording the current date and time acquired from the image processing device in a recording area of update date and time information in a directory entry corresponding to the created new image file;
An image processing method comprising:
属性情報として撮影日時情報を含む画像ファイルを読み込む画像ファイル読み込み工程と、
前記画像ファイル読み込み工程において読み込んだ画像ファイルに格納された画像データを用いて、新たな画像ファイルを作成する画像ファイル作成工程と、
を実行させるプログラムであって、
前記画像ファイル作成工程は、
作成した前記新たな画像ファイルに対応するディレクトリエントリ中の作成日時情報の記録領域に、前記画像ファイル読み込み工程で読み込んだ前記画像ファイルの前記撮影日時情報をコピーして記録する撮影日時記録工程と、
作成した前記新たな画像ファイルに対応するディレクトリエントリ中の更新日時情報の記録領域に、前記コンピュータから取得した現在日時を記録する作成日時記録工程と、
を有することを特徴とするプログラム。 On the computer,
An image file reading step for reading an image file including shooting date and time information as attribute information;
An image file creation step for creating a new image file using the image data stored in the image file read in the image file reading step;
A program for executing
The image file creation step includes:
The recording area of the creation date and time information in the directory entry corresponding to the new image file created, and shooting date recording process of recording and copying the photographing date and time information of the image file read by the image file read process ,
A creation date and time recording step of recording the current date and time acquired from the computer in a recording area of update date and time information in a directory entry corresponding to the created new image file;
The program characterized by having.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006218782A JP4898344B2 (en) | 2006-08-10 | 2006-08-10 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006218782A JP4898344B2 (en) | 2006-08-10 | 2006-08-10 | Image processing apparatus and image processing method |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011250627A Division JP5312560B2 (en) | 2011-11-16 | 2011-11-16 | Digital camera and image processing method |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2008046675A JP2008046675A (en) | 2008-02-28 |
JP2008046675A5 JP2008046675A5 (en) | 2009-09-17 |
JP4898344B2 true JP4898344B2 (en) | 2012-03-14 |
Family
ID=39180392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006218782A Expired - Fee Related JP4898344B2 (en) | 2006-08-10 | 2006-08-10 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4898344B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5400398B2 (en) | 2009-01-14 | 2014-01-29 | キヤノン株式会社 | Image reproducing apparatus, control method therefor, program, and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4350479B2 (en) * | 2003-09-29 | 2009-10-21 | キヤノン株式会社 | Image management device |
JP2005324507A (en) * | 2004-05-17 | 2005-11-24 | Noritsu Koki Co Ltd | Image recording apparatus and image recording method |
JP4677320B2 (en) * | 2004-12-20 | 2011-04-27 | キヤノン株式会社 | Image processing system and method for controlling image processing system |
-
2006
- 2006-08-10 JP JP2006218782A patent/JP4898344B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008046675A (en) | 2008-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100932152B1 (en) | Data processing device and control method | |
JP4603985B2 (en) | Imaging apparatus, imaging method, and control program | |
JP5490180B2 (en) | Imaging apparatus, control method therefor, and image processing apparatus | |
JP2009199586A (en) | Information processing apparatus and control method thereof | |
JP5208057B2 (en) | Image processing apparatus and control method thereof | |
JP2009141484A (en) | Image processor, information processor, control method for them, and program | |
JP2008053969A (en) | Information display device and method thereof | |
JP2011077654A (en) | Imaging apparatus, control method thereof and program | |
JP5317547B2 (en) | Image processing apparatus and image processing apparatus control method | |
JP4761555B2 (en) | Data recording apparatus and control method thereof | |
JP5312560B2 (en) | Digital camera and image processing method | |
JP4898344B2 (en) | Image processing apparatus and image processing method | |
JP5836578B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
JP5400398B2 (en) | Image reproducing apparatus, control method therefor, program, and storage medium | |
JP5460001B2 (en) | Image search apparatus, image search apparatus control method, program, and recording medium | |
JP2007036587A (en) | Imaging apparatus and its control method | |
JP4942164B2 (en) | Moving image format file generation method, moving image format file generation apparatus, and storage medium | |
JP2006287588A (en) | Image processing apparatus and method, data file structure, computer program, and storage medium | |
CN111147734B (en) | Image pickup apparatus, control method thereof, and non-transitory computer-readable storage medium | |
JP4810353B2 (en) | Moving picture playback apparatus, moving picture playback editing apparatus, moving picture playback method, moving picture playback editing method, and program | |
JP2007166024A (en) | Imaging apparatus and control method thereof | |
JP5430154B2 (en) | Image reproduction apparatus, control method thereof, and program | |
JP5377051B2 (en) | Image processing apparatus, control method therefor, and program | |
JP2008053970A (en) | Data recording device, and control method thereof | |
JP2006301792A (en) | Recording and reproducing device, recording and reproducing method, program and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090730 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090730 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110607 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110726 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110816 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111116 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20111124 |
|
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: 20111220 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111226 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4898344 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150106 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |