JP4261991B2 - IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM - Google Patents

IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM Download PDF

Info

Publication number
JP4261991B2
JP4261991B2 JP2003163413A JP2003163413A JP4261991B2 JP 4261991 B2 JP4261991 B2 JP 4261991B2 JP 2003163413 A JP2003163413 A JP 2003163413A JP 2003163413 A JP2003163413 A JP 2003163413A JP 4261991 B2 JP4261991 B2 JP 4261991B2
Authority
JP
Japan
Prior art keywords
image data
image
file
writing
storage means
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
Application number
JP2003163413A
Other languages
Japanese (ja)
Other versions
JP2004007731A (en
Inventor
恵弘 倉片
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 JP2003163413A priority Critical patent/JP4261991B2/en
Publication of JP2004007731A publication Critical patent/JP2004007731A/en
Application granted granted Critical
Publication of JP4261991B2 publication Critical patent/JP4261991B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は撮像装置、撮像装置における画像データの記憶方法及び記憶媒体に関し、特に、撮像装置における画像データのファイルシステムヘの記憶手順、及びファイルシステムの保護に関するものである。
【0002】
【従来の技術】
デジタル信号化された画像信号をデジタル信号処理して、所望の形式の画像データに変換した後、画像データを第1の記憶手段に一時的に格納しておき、その後に上記画像データを最終的に格納する着脱可能な第2の記憶手段(以下記憶媒体と称する)に格納するようにした撮像装置が知られている。
【0003】
上述のように構成された撮像装置において、上記着脱可能な記憶媒体は、第1の領域と第2の領域とに区画され、上記第1の領域を画像データファイルの管理を行う管理領域としてもちいられる。また、上記第2の領域は画像データファイルの画像データ本体を格納するデータ領域(クラスタ領域)として用いられ、上記ファイル管理領域と上記データ領域とでファイルシステムを構成している。
【0004】
撮影を行うことにより得られた画像データは一時的に主メモリに記憶される。上記主メモリに一時的に格納された画像データは画像ファイル形式として、撮影動作とは非同期に記憶媒体に格納される。
【0005】
【発明が解決しようとする課題】
撮像装置における画像データのサイズは、撮像素子の画素数増加に伴い増大する傾向にある。また、撮像装置の速写性能の向上や、撮影間隔の短縮化により、主メモリに大量の画像データを一時的に記憶しておき、記憶媒体へ順次書き込みを行っている。
【0006】
一般的に、記憶媒体への書き込み速度は、速写性能の向上や、撮影間隔の短縮化により撮影動作に間に合わない状況にある。また、書き込み速度の遅い記憶媒体を利用した場合も、撮影実施後、数秒間、主メモリに残った未書き込みの画像データを記憶媒体への書き込みが行われている。
【0007】
撮像装置の使用者としては、撮影が完了した時点で、画像データがファイルに書き込まれているものとして、記憶媒体を撮像装置から取り外したり、電源を抜いたりする可能性が多分にある。
【0008】
しかし、従来の画像ファイルの書き込みでは、画像ファイルの管理情報の書き込みは、撮影完了後、主メモリに格納されている画像データのファイル書き込み完了時まで行われるので、撮像装置使用者が画像ファイルの管理情報の書き込み中に誤って記憶媒体を取り外したり、電池を抜いたりすることにより、記憶媒体上のファイルシステムを破壊する可能性が大きかった。
【0009】
上述のようにして、ファイルシステムが破壊された場合には、以前撮影した画像データのアクセスも不可能になってしまう問題があった。撮影完了後に、所定のタイミングとなる前に、記憶媒体を抜き取ると、ファイルシステムを破壊する可能性があった。
【0010】
また、電源の残容量が少ないために、全ての画像データを記憶媒体に書き込むことができずに、画像ファイルの管理情報の書き込み中に電源が落ちてしまい、ファイルシステムを破壊する可能性も大きかった。
【0011】
従来は、このような可能性に対して、取扱説明書で、撮像装置の使用者に注意を呼びかけたり、主モリ上の未書き込み画像データをバックアップしたりする等の方法が考えられてきた。
【0012】
しかし、撮像装置の使用者は、誤って記憶媒体を取り外したり、電源を抜いたりすることもあった。また、画像データを主メモリ上にバックアップするためには、大きな電力を消費するので、小型の撮像装置には不向きであった。
【0013】
本発明は上述の問題点にかんがみ、いかなる状態において撮影が実行されてもファイルシステムを最低限保護することができるようにして、ファイルシステムの安全性を高めることを目的とする。
【0014】
【課題を解決するための手段】
本発明の撮像装置は、撮像素子から得られた画像データを一時的に格納する第1の記憶手段と、上記第1の記憶手段に格納されている上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置において、上記第1の記憶手段、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報登録する登録手段と、上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とに区画され、上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録手段による登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み手段と、上記管理情報書き込み手段による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み手段とを有することを特徴とする。
また、本発明の撮像装置の他の特徴とするところは、撮像素子から得られるアナログ信号の画像信号をデジタル化するとともに所望の形式に変換して画像データを生成する画像データ生成手段と、上記画像データ生成手段によって生成された画像データを一時的に格納する第1の記憶手段と、上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置において、上記第1の記憶手段、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報登録する登録手段と、上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とで構成されたファイルシステムを有し、上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録手段による登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み手段と、上記管理情報書き込み手段による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み手段とを有することを特徴とする。
また、本発明の撮像装置のその他の特徴とするところは、上記画像データの書き込み情報とは、上記第1の記憶手段から上記第2の記憶手段へ実際に上記画像データの書き込み動作が行われたか否かを判断可能な情報を含むことを特徴とする。
また、本発明の撮像装置のその他の特徴とするところは、上記画像ファイルの管理を行うファイル管理領域は、上記画像データのファイル管理情報として上記画像ファイルのエントリ情報、及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報のみを含むことを特徴とする。
また、本発明の撮像装置のその他の特徴とするところは、上記画像ファイルの管理を行うファイル管理領域は、上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を含み、上記画像ファイルの画像データ本体を格納するデータ領域は、上記画像データのファイルのエントリ情報と上記画像ファイルのデータ本体を含み、上記画像データのファイル管理情報として、上記画像ファイルのエントリ情報及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を優先して書き込むことを特徴とする。
また、本発明の撮像装置のその他の特徴とするところは、連続的な撮影が行われたことにより、上記第1の記憶手段に複数の画像データが存在する時には、上記第2の記憶手段に対して未書き込みな画像データ本体部分が存在しても、次の撮影が行われて画像ファイルの作成が行われた時には、新たに作成された画像データのファイル管理情報の書き込みを優先させて行い、上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込むことを特徴とする。
また、本発明の撮像装置のその他の特徴とするところは、上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込む際に連続的に書きこむことを特徴とする。
【0015】
本発明の撮像装置における画像データの記憶方法は、撮像素子から得られた画像データを一時的に格納する第1の記憶手段と、上記第1の記憶手段に格納されている上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置における画像データの記憶方法において、上記第1の記憶手段には、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報が登録され、上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とに区画され、上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み処理と、上記管理情報書き込み処理による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み処理とを有することを特徴とする。
また、本発明の撮像装置における画像データの記憶方法の他の特徴とするところは、撮像素子から得られるアナログ信号の画像信号をデジタル化するとともに所望の形式に変換して画像データを生成する画像データ生成手段と、上記画像データ生成手段によって生成された画像データを一時的に格納する第1の記憶手段と、上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置における画像データの記憶方法において、上記第1の記憶手段には、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報が登録され、上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とで構成されたファイルシステムを有し、上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み処理と、上記管理情報書き込み処理による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み処理とを有することを特徴とする。
また、本発明の撮像装置における画像データの記憶方法のその他の特徴とするところは、上記画像データの書き込み情報とは、上記第1の記憶手段から上記第2の記憶手段へ実際に上記画像データの書き込み処理が行われたか否かを判断可能な情報を含むことを特徴とする。
また、本発明の撮像装置における画像データの記憶方法のその他の特徴とするところは、上記画像ファイルの管理を行うファイル管理領域は、上記画像データのファイル管理情報として上記画像ファイルのエントリ情報、及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報のみを含むことを特徴とする。
また、本発明の撮像装置における画像データの記憶方法のその他の特徴とするところは、上記画像ファイルの管理を行うファイル管理領域は、上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を含み、上記画像ファイルの画像データ本体を格納するデータ領域は、上記画像データのファイルのエントリ情報と上記画像ファイルのデータ本体を含み、上記画像データのファイル管理情報として、上記画像ファイルのエントリ情報及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を優先して書き込むことを特徴とする。
また、本発明の撮像装置における画像データの記憶方法のその他の特徴とするところは、連続的な撮影が行われたことにより、上記第1の記憶手段に複数の画像データが存在する時には、上記第2の記憶手段に対して未書き込みな画像データ本体部分が存在しても、次の撮影が行われて画像ファイルの作成が行われた時には、新たに作成された画像データのファイル管理情報の書き込みを優先させて行い、上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込むことを特徴とする。
また、本発明の撮像装置における画像データの記憶方法のその他の特徴とするところは、上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込む際に連続的に書きこむことを特徴とする。
【0016】
本発明の記憶媒体は、上記に記載の撮像装置における画像データの記憶方法を実行するプログラムを格納したことを特徴としている。
【0017】
【発明の実施の形態】
以下、添付図面を参照しながら本発明の撮像装置、撮像装置における画像データの記憶方法及び記憶媒体の実施の形態を説明する。
図1は、一般的な撮像装置の構成を示すブロック図であり、図2は、本実施の形態で取り扱うファイルシステムの記憶媒体105の内部構成、及びファイルの管理方法を示したものである(MS−DOSのファイルシステム)。図3は、撮影動作を制御するタスクのフローチャートである。図4は、本実施の形態におけるファイルの書き込み手順を示すフローチャートである。図5は、本実施の形態におけるファイル書き込みのタイミングを示したものである。
【0018】
図1に示すように、本実施の形態の撮像装置100は、撮像素子101から得られるアナログ信号をデジタル信号化するA/D変換手段102と、デジタル信号化された画像信号をデジタル信号処理して、所望の形式の画像データに変換する信号処理手段103と、信号処理手段により、生成された画像データを一時的に格納する第1の記憶手段104(以下、主メモリと称する)と、画像データを最終的に格納する着脱可能な第2の記憶手段105(以下、記憶媒体と称する)、各部の動作を制御するCPU106とによりが構成されている。
【0019】
上述のように構成された撮像装置100において、上記着脱可能な記憶媒体100は、図2に示すように、画像データファイル111の管理を行う管理領域210(以下、管理領域と称する)と、画像データファイルの画像データ本体を格納するデータ領域220(以下、クラスタ領域と称する)とで構成されたファイルシステムを有している。
【0020】
そして、撮影を行うことにより、撮像素子101から得られたアナログ信号データは、A/D変換器102により、デジタル化され、デジタル信号処理を行った後、所望の形式の画像データ110として、主メモリ104に一時的に記憶される。主メモリ104に一時的に格納された画像データ110は、記憶媒体105に撮影動作とは非同期に、画像ファイル形式111として格納される。
【0021】
この時、画像データファイル111の記憶媒体105への書き込み動作は、図7のフローチャートに示す通りの手順で行われる。すなわち、撮影動作を行うとファイル書き込みタスク600が開始され、最初に画像データが登録される(ステップS601)。
【0022】
次に、画像データの登録有無が判定され(ステップS602)、登録が無い場合にはステップ601に戻り、有る場合には管理領域210からFAT情報を主メモリに読み出し(ステップS603)、空き領域(空きクラスタ領域)を検索する。
【0023】
続いて、画像データファイルのディレクトリエントリを格納するクラスタのデータを主メモリ上に読み出し(ステップS604)、追加する画像データファイルのディレクトリエントリを書き込み、このクラスタデータを元のクラスタヘ書き戻し(ステップS605)、FATの更新及びFATの書き込みを行う(ステップS606)。(記憶媒体上に、ファイルが作成された状態)(図8において、▲1▼の操作)。
【0024】
次に、画像データのデータ本体部分を記憶媒体上に書き込むため(図8において▲7▼の操作)、主メモリに読み出したFAT情報から空きクラスタ領域を検索し、該当する記憶媒体上の空きクラスタ領域に画像データ本体部分を順次書き込み(ステップS607)つつ、主メモリ上のFAT情報(FATのリンク情報)を更新する(ステップS608)。
【0025】
次に、データ終了か否かを判断し(ステップS609)、画像データのデータ本体部分を全て記憶媒体上に書き込み終わると、主メモリー上に保持している、画像ファイルのディレクトリエントリのFATエントリ(最初のクラスタヘのリンク情報)を設定し、画像ファイルのサイズを設定して(ステップS610)、このディレクトリエントリを含むクラスタデータを元のクラスタヘ書き戻す(ステップS611)。
【0026】
(記憶媒体上に、ファイルが作成され、FATのリンクが確立し、画像ファイルサイズも確定した状態)最後に、主メモリ上にある、更新されたFAT情報を記憶媒体の所定の管理領域へ書き戻す(ステップS612)ことによって、一連のファイル書き込み動作は完了する(図8における、▲2▼の操作)。
【0027】
撮像装置100において、連続して撮影を行うと、主メモリに複数の画像データが蓄積し(700)、順次記憶媒体に画像ファイルとして書き込む時に、タイミング710に示すように、上記画像ファイルの作成、データ書き込み、ファイルクローズのサイクルが繰り返される。
【0028】
撮像装置における画像データのサイズは、撮像素子101の画素数増加に伴い増大する傾向にあり、また、撮像装置の速写性能の向上や、撮影間隔の短縮化により、主メモリに大量の画像データを一時的に記憶しておき(700)、記憶媒体へ順次書き込みを行っている(710)。
【0029】
一般的に、記憶媒体への書き込み速度は、速写性能の向上や、撮影間隔の短縮化により撮影動作に間に合わない状況にあり、また、書き込み速度の遅い記憶媒体を利用した場合も、撮影実施後、数秒間、主メモリに残った未書き込みの画像データを記憶媒体への書き込みが行われている。
【0030】
撮像装置の使用者としては、撮影が完了した時点で、画像データがファイルに書き込まれているものとして、記憶媒体を撮像装置から取り外したり、電源を抜いたりする可能性が多分にある。
【0031】
画像データファイルを順次記憶媒体へ書き込むため、画像ファイルの管理情報の書き込みは、撮影完了後に、主メモリに格納されている画像データのファイル書き込み完了時まで行われる(図8の710の▲2▼、▲4▼、▲6▼)。
【0032】
したがって、撮像装置使用者が画像ファイルの管理情報の書き込み中に誤って記憶媒体を取り外したり、電池を抜いたりすることにより、記憶媒体上のファイルシステムを破壊する可能性が大きかった。上記のように、ファイルシステムが破壊された場合には、以前撮影した画像データのアクセスも不可能になってしまう。
【0033】
すなわち、撮影完了後、図8の710における▲6▼のタイミング(最後の画像データ3のファイルのクローズ)までに、記憶媒体105を抜き取ると、ファイルシステムを破壊する可能性があることになる。
【0034】
また、電源の残容量が少ないために、全ての画像データを記憶媒体に書き込むことができずに、画像ファイルの管理情報の書き込み中に電源が落ちてしまい、ファイルシステムを破壊する可能性も大きかった。
【0035】
従来は、このような可能性に対して、取扱説明書で、撮像装置の使用者に注意を呼びかけたり、主メモリ上の未書き込み画像データをバックアップしたりする等の方法が考えられてきた。
【0036】
しかし、撮像装置の使用者は、誤って記憶媒体を取り外したり、電源を抜いたりすることもあった。また、画像データを主メモリ上にバックアップするためには、大きな電力を消費するので、小型の撮像装置には不向きであった。
【0037】
次に、図3のフローチャートを参照しながら、撮像装置100の撮影タスクについて説明する。
撮影動作を行うと、撮影タスク300が開始され、撮像装置100はCPU(中央演算処理装置)106により制御され、撮影開始のスイッチを検出する(ステップS301)。次に、上記検出したスイッチが有効か否かを判定し(ステップS302)、有効の場合には撮影動作(ステップS303)を行う。
【0038】
撮影動作が開始されると、撮像素子101からアナログ信号が得られ、この信号をA/D変換器102によりデジタル信号に変換する(ステップS304)。次に、デジタル信号に変換された信号データは、デジタル信号処理手段103により処理され(ステップS305)、所望の画像形式のデータ110が主メモリ104に生成される(ステップS306)。
【0039】
撮影タスク300は、画像データ110が主メモリ104に準備できると、ファイル書き込みタスク400に対して、画像データの登録(ファイル書き込み要求)を発行する(ステップS307)。撮影タスク300は、次の撮影開始スイッチの待ち状態となる。上記撮影タスク300は、ファイル書き込みタスク400とは、非同期に動作している。
【0040】
次に、図4のフローチャートを参照しながらファイル書き込みタスク400について説明する。
ファイル書き込みタスク400は、画像データの登録(ファイル書き込み要求)を待っており(ステップS401、ステップS402)、撮影タスク300が画像データの登録(ステップS307)を行うことにより、ファイルの作成動作(図6の510の▲1▼)を開始する。
【0041】
ファイルの作成動作では、記憶媒体105のFAT領域211からFAT読み出しを行い(ステップS403)、新たに作成する画像ファイルのディレクトリエントリを格納するクラスタデータを読み出す(ステップS404)。読み出したクラスタデータに、新たに作成する画像ファイルのディレクトリエントリを作成し、クラスタ領域211に書き戻す(ステップS405)。
【0042】
この時、FATが更新された場合には、主メモリ上のFAT更新を行い、更新されたFATを記憶媒体105のFAT領域211に書き込む(ステップS406)。ファイルの作成動作に続いて、画像データの書き込み動作が実行される。
【0043】
本実施の形態における画像データの書き込み動作では、実際に記憶媒体105へのクラスタ書き込みは行わずに、データ書き込み情報を主メモリ104へ登録し(ステップS407)、主メモリ上のFATの更新(ステップS408)を行い、画像データが終了するまで繰り返し行われる(ステップS409)。
【0044】
この操作は、主メモリ上(104)で行われるため、記憶媒体105への書き込みは一切行わないため、瞬時に終了する。画像データの書き込み動作が完了した時点で、主メモリ(104)上のFATは、画像データ書き込み完了時の最終的なFATデータと同等になっている。
【0045】
データ書き込みが完了すると、ファイルクローズ動作(図6の510の▲2▼)を開始する。主メモリ(104)上のディレクトリエントリに対して、先頭のクラスタ情報及び、画像ファイルサイズを更新して(ステップS410)、主メモリ(104)上の更新されたディレクトリエントリを含むクラスタデータをクラスタ領域211に書き戻す(ステップS411)。続いて、最終的に更新された主メモリ(104)上のFATデータを記憶媒体105のFAT領域211に書き込む(ステップS412)。
【0046】
この状態で、画像ファイルとして、ファイルシステム上は完成した形となるが、画像データ本体は記憶媒体105に書き込まれていない。しかし、ファイルシステムとして、矛盾が無いため、記憶媒体105を抜いた場合でも、ファイルシステムが破壊されることはない。
【0047】
以上で画像ファイルの管理領域の記憶媒体への書き込みが完了したので、続いて画像データ本体部分の記憶媒体への書き込みを開始する。但し、画像データ110が主メモリ104上に複数存在する場合(図6の500)は、画像ファイル(画像2、画像3)の管理領域の記憶媒体105への書き込みを優先させるため、上記シーケンス(ステップS403〜ステップS412)を繰り返し行う。(図6の510の▲3▼、▲4▼、▲5▼、▲6▼)主メモリ104の画像データ110(図6の500の画像1、画像2、画像3)のファイル管理領域の書き込みが完了すると、画像データ本体の書き込みを開始する。
【0048】
ファイル書き込みタスク400において、画像データ登録が無いので、図5のフローチャートに示すように、データ書き込み情報の取得が実行される(ステップS421)。画像データ本体が、記憶媒体105へ未書き込みである場合、データ書き込み情報が存在するか否かを判断し(ステップS422)、情報が存在する場合には、実際のデータ書き込み(クラスタデータ書き込み)を実行し(ステップS423)、主メモリ上のデータ書き込み情報を解放(無効)にする(ステップS424)。
【0049】
画像データの書き込みは、データ書き込み情報が全て無効になるまで、繰り返し実行される。(図6の510の▲7▼、▲8▼、▲9▼)画像データを書き込んでいる状態(図6における510の▲7▼、▲8▼、▲9▼)では、撮像装置の使用者が、誤って記憶媒体を抜き取ってしまったり、電源を抜いてしまったりした場合、画像データ本体は未書き込みなデータが存在するため、画像データ本体は正しくないが、ファイルの管理情報は、正しい値であるため、ファイルシステムとしては破壊されることはない。
【0050】
本実施の形態において、主メモリ104に複数の画像データ110(画像1、画像2、画像3)が存在する時に、ファイルシステムを破壊する可能性があるタイミングは、510の▲1▼〜▲6▼の状態であり、従来例に比較して、短時間となっている。
【0051】
上記タイミングに加え、画像データ本体の書き込み途中で、撮影が行われた時のタイミングをタイミング2(図6の520)に示す。タイミング2(図6の520)では、主メモリ104に画像1、画像2が既に存在しており、ファイル書き込みタスク400は、画像1の管理データの書き込み(図6の520の▲1▼、▲2▼)、画像2の管理データの書き込み(図6の520の▲3▼、▲4▼)、画像1の画像データ本体の書き込み(図6の520の▲7▼)が既に完了している。
【0052】
画像2の画像データ本体を書き込んでいる途中の(図6の520の▲8▼)状態で、撮影タスク300において、撮影動作が行われると、主メモリ104に新たに画像3が生成され(ステップS306)、ファイル書き込みタスクヘ画像3のデータ登録が行われる(ステップS307)。
【0053】
ファイル書き込みタスク400は、画像2の画像データ書き込み実行中(ステップS423)であるが、現在のクラスタデータ書き込みが完了すると、データ書き込みを解放して(ステップS424)、画像データの登録取得を行う(ステップS401)。
【0054】
この時、上記により、画像3に対する画像データ登録が既に行われているので、画像データ登録はある状態となる(ステップS402)。したがって、画像3に対するファイルの作成処理▲5▼が実行され、FATの読み出し(ステップS403)から、画像3に対するファイルのクローズ処理▲6▼まで(FAT更新書き込み(ステップS412))が実行される。
【0055】
画像3に対するファイルの管理領域の書き込み(図6の520の▲5▼、▲6▼)が完了すると、画像データ登録取得が行われ(ステップS401)、新たな画像データが存在しないので(ステップS402)、中断していた画像2のデータ書き込み処理(図6の520の▲8▼)を継続する(ステップS421)。
【0056】
画像データ書き込み情報は、画像2の残り部分と、画像3の本体部分があり、データ書き込み情報取得(ステップS421)からデータ書き込みの実行(ステップS423)、データ書き込み情報解放(ステップS424)を繰り返す。
【0057】
上記の場合、画像2のデータ書き込み中に新たに撮影を行い、画像3が主メモリ104上に生成されると、画像2のデータ書き込み(図6の520の▲8▼)を中断して、画像3のファイル管理情報書き込み(図6の520の▲5▼、▲6▼)を優先して行うため、画像3のファイル管理情報の書き込みが完了した時点(図6の520の▲6▼)で、ファイルシステムとしては正しいので、この状態で撮像装置の使用者が誤って、記憶媒体105を取り外してしまったり、電源を抜いてしまっても、ファイルシステムを破壊することはない。
【0058】
[第2の実施の形態]
本実施の形態では、上述した第1の実施の形態における主メモリ(104)の一部をバックアップ可能な第3の記憶手段として割り当てることにより、主メモリ104に画像データ110が存在し、対応する画像ファイルの管理情報を記憶媒体に書き込んでいる途中で、記憶媒体を取り外してしまった時や、電源を抜いてしまった時にも画像ファイルの管理情報を上記バックアップ領域に持つことにより、保証するものである。
【0059】
図9は、本実施の形態における主メモリ104の構造を示したものである。図8において、主メモリ104は、バックアップ可能なメモリ800と、揮発性の画像データ領域810を含む構成である。バックアップ可能メモリ800は、更に内部をFAT読み込み領域801と、ディレクトリ管理領域802と記憶媒体への書き込み管理情報803に分割されている。
【0060】
撮影を実行した後、主メモリ104の画像データ領域810に画像データ110が生成され、ファイル書き込みタスク400に画像データ登録が行われると、画像ファイルの作成処理が開始される。
【0061】
画像ファイルの作成処理では、記憶媒体105からFAT読み込み領域801へFAT読み出しを行う(ステップS403)。この状態で、記憶媒体への書き込み管理情報803は、未書き込み状態となる。
【0062】
続いて、ディレクトリエントリを記憶媒体105からディレクトリ管理領域へ読み出しを行う(ステップS405)。新たに作成したファイルのディレクトリエントリを記憶媒体105へ書き込む際に、記憶媒体への書き込み管理情報803は、書き込み中状態となり、FAT読み込み領域801とディレクトリ管理領域802がバックアップされた状態となる。
【0063】
FAT更新書き込み(ステップS406)が実行され、記憶媒体105へ書き込みが完了した時点で、記憶媒体への書き込み管理情報803は、バックアップ無効状態となる。また、画像ファイルのクローズ処理時に、ディレクトリエントリの記憶媒体I05への書き込み(ステップS411)が開始される時点で、記憶媒体への書き込み管理情報803は、書き込み中状態となり、FAT読み込み領域801とディレクトリ管理領域802がバックアップされた状態となる。
【0064】
FAT更新書き込み(ステップS412)が実行され、記憶媒体105へ書き込みが完了した時点で、記憶媒体への書き込み管理情報803は、バックアップ無効状態となる。
【0065】
記憶媒体105へのディレクトリエントリ書き込み状態(ステップS405/ステップS411)や、FAT更新書き込み(ステップS406/ステップS412)の状態で、撮像装置の使用者が誤って、記憶媒体105を取り外してしまった場合や、電源を抜いてしまった場合などに、再度起動した時に、記憶媒体105が交換されていないことを認識し、記憶媒体への書き込み管理情報803に基づいて、記憶媒体105へFAT読み込み領域801からの書き込み、ディレクトリ管理領域802からの書き込みを行うことにより、ファイルシステムの破壊を防止することが可能となる。
【0066】
このような構成では、バックアップ可能なメモリ800は、画像データ領域810に比べて小さい容量ですむため、バックアップのために消費する電力も少なくてすむ利点が得られる。
【0067】
(本発明の他の実施の形態)
本発明は複数の機器(例えば、ホストコンピュータ、インタフェース機器、リーダ、プリンタ等)から構成されるシステムに適用しても1つの機器からなる装置に適用しても良い。
【0068】
また、上述した実施の形態の機能を実現するように各種のデバイスを動作させるように、上記各種デバイスと接続された装置あるいはシステム内のコンピュータに対し、上記実施の形態の機能を実現するためのソフトウェアのプログラムコードを供給し、そのシステムあるいは装置のコンピュータ(CPUあるいはMPU)に格納されたプログラムに従って上記各種デバイスを動作させることによって実施したものも、本発明の範疇に含まれる。
【0069】
また、この場合、上記ソフトウェアのプログラムコード自体が上述した実施の形態の機能を実現することになり、そのプログラムコード自体、およびそのプログラムコードをコンピュータに供給するための手段、例えばかかるプログラムコードを格納した記憶媒体は本発明を構成する。かかるプログラムコードを記憶する記憶媒体としては、例えばフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。
【0070】
また、コンピュータが供給されたプログラムコードを実行することにより、上述の実施の形態で説明した機能が実現されるだけでなく、そのプログラムコードがコンピュータにおいて稼働しているOS(オペレーティングシステム)あるいは他のアプリケーションソフト等の共同して上述の実施の形態で示した機能が実現される場合にもかかるプログラムコードは本発明の実施の形態に含まれることは言うまでもない。
【0071】
さらに、供給されたプログラムコードがコンピュータの機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに格納された後、そのプログラムコードの指示に基づいてその機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって上述した実施の形態の機能が実現される場合にも本発明に含まれる。
【0072】
【発明の効果】
本発明は上述したように、本発明によれば、第2の記憶手段へ画像データの書き込みを行わずに、第1の記憶手段での登録された画像データの書き込み情報のみに基づいて、第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込むようにして、撮影された画像に対するファイルの管理情報を優先して記憶媒体に書き込むようにしたので、いかなる状態において撮影を実行しても、ファイルシステムの管理情報の更新が撮影直後に行われるので、使用者による記憶媒体の取り外しや、電源を抜いてしまう不測の事態が発生しても、撮影後のなるべく短時間の間に最低限ファイルシステムを保護することができる。これにより、既に撮影済みの画像データがアクセス不可能になることを極力避けることができ、ファイルシステムの安全性を高めることができる。
また、第2の記憶手段へ画像データの書き込みを行わずに、第1の記憶手段での登録された画像データの書き込み情報のみに基づいて、第2の記憶手段へ画像データを格納する場合の管理情報を更新するので、最終的なFATデータ(管理情報)と同等のデータを、本画像データの書き込み前に記録することが出来る。つまり、本画像データを書き込むための記憶容量を正確に決定することができ、本画像データを書き込むための記憶容量を予想して多めに確保しておく無駄を無くすことができる。
【0073】
また、本発明の他の特徴によれば、上記第1の記憶手段に複数の画像データが存在する時には、上記第2の記憶手段に対して未書き込みな画像データ本体部分が存在しても、新たに作成された画像データのファイル管理情報の書き込みを優先させ、ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込むようにしたので、ファイルシステムの安全性を高めることができるとともに、画像データ本体部分の書き込み速度を向上させることができる。
【0074】
また、本発明の他の特徴によれば、画像データのファイル管理情報を第2の記憶手段に書き込みを行っている途中で停電状態となった時に、上記画像データのファイル管理情報を保持しておくことが可能となり、次回電源を投入した時に、上記第2の記憶手段が交換されていない場合には、上記第3の記憶手段に格納された上記画像データのファイル管理情報を、上記第2の記憶手段の所定位置に書き込むことが可能となり、電源が抜かれてしまうことによりファイルシステムが破壊されることを防止することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態を示し、撮像装置の腰部構成を示すブロック図である。
【図2】実施の形態で使用している記憶媒体の内部データ構造の一例を示す図である。
【図3】一般的な撮像装置における撮影処理を行うタスクのフローチャートである。
【図4】本発明の実施の形態における記憶媒体へのファイル書き込みの流れを示フローチャートである。
【図5】本発明の実施の形態における複数画像の記憶媒体へのファイル書き込みのタイミング及び処理手順を示すフローチャートである。
【図6】本実施の形態における複数画像の記憶媒体へのファイル書き込みのタイミング及び処理手順を示した説明図である。
【図7】記憶媒体へのファイル書き込みの流れを示したフローチャートである。
【図8】一般的な複数画像の記憶媒体へのファイル書き込みのタイミング及び処理手順を示した説明図である。
【図9】本発明の第2の実施の形態における主メモリの構成を示した図である。
【符号の説明】
100 撮像装置
101 撮像素子
102 A/D変換器
103 デジタル信号処理手段
104 主メモリ
105 着脱可能な記憶媒体
106 CPU(中央演算処理装置)
110 画像データ
111 画像データファイル
200 記憶媒体
210 管理領域
211 FAT(File Allocation Table)領域
212 ルートディレクトリ
220 クラスタ領域
221 クラスタ領域
510 連続した書き込みのタイミング
520 画像データ書き込み中に撮影を行ったときのタイミング
800 バックアップ可能メモリ
801 FAT読み込み領域
802 ディレクトリ管理領域
803 記憶媒体への書き込み管理情報
810 画像データ領域
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image pickup apparatus, a method for storing image data in the image pickup apparatus, and a storage medium, and more particularly to a procedure for storing image data in a file system in the image pickup apparatus and protection of the file system.
[0002]
[Prior art]
After the digitalized image signal is digitally processed and converted into image data of a desired format, the image data is temporarily stored in the first storage means, and then the image data is finally processed. 2. Description of the Related Art An image pickup apparatus is known that is stored in a removable second storage means (hereinafter referred to as a storage medium) that is stored in the storage device.
[0003]
In the imaging apparatus configured as described above, the removable storage medium is divided into a first area and a second area, and the first area may be used as a management area for managing image data files. It is done. The second area is used as a data area (cluster area) for storing the image data body of the image data file, and the file management area and the data area constitute a file system.
[0004]
Image data obtained by shooting is temporarily stored in the main memory. The image data temporarily stored in the main memory is stored in a storage medium as an image file format asynchronously with the photographing operation.
[0005]
[Problems to be solved by the invention]
The size of the image data in the imaging device tends to increase as the number of pixels of the imaging device increases. In addition, a large amount of image data is temporarily stored in the main memory and is sequentially written to the storage medium by improving the speed shooting performance of the imaging apparatus and shortening the shooting interval.
[0006]
In general, the writing speed to the storage medium is not in time for the shooting operation due to the improvement of the rapid shooting performance and the shortening of the shooting interval. Even when a storage medium with a low writing speed is used, unwritten image data remaining in the main memory is written to the storage medium for a few seconds after shooting.
[0007]
As a user of the imaging apparatus, there is a possibility of removing the storage medium from the imaging apparatus or disconnecting the power supply, assuming that the image data has been written to the file when shooting is completed.
[0008]
However, in the conventional image file writing, the image file management information is written after the completion of shooting until the file writing of the image data stored in the main memory is completed. There is a high possibility that the file system on the storage medium is destroyed by accidentally removing the storage medium or removing the battery while writing the management information.
[0009]
As described above, when the file system is destroyed, there is a problem that it becomes impossible to access previously captured image data. If the storage medium is removed after the completion of shooting and before the predetermined timing, the file system may be destroyed.
[0010]
In addition, since the remaining capacity of the power supply is small, all the image data cannot be written to the storage medium, and the power is turned off while the management information of the image file is being written. It was.
[0011]
Conventionally, methods for calling attention to the user of the image pickup apparatus or backing up unwritten image data on the main memory have been considered for such a possibility in the instruction manual.
[0012]
However, the user of the imaging apparatus sometimes accidentally removes the storage medium or unplugs the power. In addition, in order to back up the image data on the main memory, a large amount of power is consumed, so that it is not suitable for a small imaging device.
[0013]
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and it is an object of the present invention to improve the safety of a file system by making it possible to protect the file system as much as possible even if shooting is performed in any state.
[0014]
[Means for Solving the Problems]
An image pickup apparatus according to the present invention includes a first storage unit that temporarily stores image data obtained from an image sensor, and a second removable unit that stores the image data stored in the first storage unit. In the imaging apparatus having recording means for recording as an image file in the storage means, the first storage means In Write information for writing the image data in the second storage means The Registration Registration means to The detachable second storage means is divided into a file management area for managing the image file and a data area for storing the image data body of the image file, and the image is stored in the second storage means. Without writing data, the first storage means Registered by the above registration means Information for writing the above image data For information only A management information writing unit for updating the management information when storing image data in the second storage unit and writing the updated management information in the file management area of the second storage unit, In response to completion of writing by the management information writing means, the image data stored in the first storage means is changed to the first storage means based on the writing information of the image data registered in the first storage means. And an image writing means for writing to the data area of the second storage means.
Another feature of the imaging apparatus according to the present invention is that the image signal of the analog signal obtained from the imaging element is digitized and converted into a desired format to generate image data, and In an imaging apparatus having first storage means for temporarily storing image data generated by an image data generation means, and recording means for recording the image data as an image file in a detachable second storage means , The first storage means In Write information for writing the image data in the second storage means The Registration Registration means to The detachable second storage means has a file system comprising a file management area for managing the image file and a data area for storing the image data body of the image file. Without writing the image data to the storage means, the first storage means Registered by the above registration means Information for writing the above image data For information only A management information writing unit for updating the management information when storing image data in the second storage unit and writing the updated management information in the file management area of the second storage unit, In response to completion of writing by the management information writing means, the image data stored in the first storage means is changed to the first storage means based on the writing information of the image data registered in the first storage means. And an image writing means for writing to the data area of the second storage means.
Another feature of the imaging apparatus of the present invention is that the image data writing information is What is news Information capable of determining whether or not the image data writing operation has actually been performed from the first storage means to the second storage means. including It is characterized by that.
Another feature of the imaging apparatus of the present invention is that the file management area for managing the image file includes entry information for the image file as file management information for the image data, and a data body for the image file. Only the link information to the data area for storing is included.
Another feature of the imaging apparatus according to the present invention is that the file management area for managing the image file includes link information to a data area for storing the data body of the image file. The data area for storing the image data body includes the entry information of the image data file and the data body of the image file, and the file information of the image data includes the entry information of the image file and the data body of the image file. The link information to the data area for storing is preferentially written.
Another feature of the imaging apparatus according to the present invention is that when a plurality of image data exists in the first storage unit due to continuous shooting, the second storage unit stores the image data. On the other hand, even if there is an unwritten image data body part, when the next shooting is performed and an image file is created, writing of file management information of the newly created image data is prioritized. In addition, after the writing of the file management information is completed, the remaining unwritten image data main body is written.
Another feature of the imaging apparatus according to the present invention is that after the writing of the file management information is completed, the remaining unwritten image data body portion is continuously written. To do.
[0015]
The image data storage method in the image pickup apparatus of the present invention includes a first storage unit that temporarily stores image data obtained from an image sensor, and the image data stored in the first storage unit. In the image data storage method in the imaging apparatus having recording means for recording as an image file in the detachable second storage means, the image data is written into the second storage means in the first storage means. The write information for performing the recording is registered, and the removable second storage means is divided into a file management area for managing the image file and a data area for storing the image data body of the image file, Without writing the image data to the second storage means, the first storage means Registered above Information for writing the above image data For information only A management information writing process for updating the management information for storing image data in the second storage means and writing the updated management information in the file management area of the second storage means, When the writing by the management information writing process is completed, the image data stored in the first storage unit is changed to the first storage unit based on the writing information of the image data registered in the first storage unit. And an image writing process for writing to the data area of the second storage means.
Another feature of the image data storage method in the image pickup apparatus of the present invention is that the image signal of the analog signal obtained from the image pickup device is digitized and converted into a desired format to generate image data. Data generation means, first storage means for temporarily storing the image data generated by the image data generation means, and recording means for recording the image data as an image file in a detachable second storage means In the image data storage method in the image pickup apparatus, the write information for writing the image data is registered in the second storage unit in the first storage unit, and the detachable second The storage means includes a file management area for managing the image file and a data area for storing the image data body of the image file. It has a file system that is, the to the second storage means without performing the writing of the image data, in the first storage means Registered above Information for writing the above image data For information only A management information writing process for updating the management information for storing image data in the second storage means and writing the updated management information in the file management area of the second storage means, When the writing by the management information writing process is completed, the image data stored in the first storage unit is changed to the first storage unit based on the writing information of the image data registered in the first storage unit. And an image writing process for writing to the data area of the second storage means.
Another feature of the image data storing method in the imaging apparatus of the present invention is that the image data writing information is described above. News and Is information that can be used to determine whether or not the image data has actually been written from the first storage means to the second storage means. including It is characterized by that.
Another feature of the image data storage method in the imaging apparatus of the present invention is that the file management area for managing the image file includes entry information of the image file as file management information of the image data, and Only the link information to the data area for storing the data body of the image file is included.
Another feature of the image data storage method in the image pickup apparatus of the present invention is that the file management area for managing the image file includes link information to a data area for storing the data body of the image file. A data area for storing the image data body of the image file includes entry information of the image data file and the data body of the image file, and the file data management information of the image data includes the entry information of the image file and The link information to the data area storing the data body of the image file is preferentially written.
Another feature of the image data storage method in the image pickup apparatus of the present invention is that when a plurality of image data exist in the first storage means due to continuous shooting, Even if there is an unwritten image data body portion in the second storage means, when the next shooting is performed and an image file is created, the file management information of the newly created image data Writing is prioritized, and after the writing of the file management information is completed, the remaining unwritten image data main body is written.
Another feature of the image data storage method in the image pickup apparatus of the present invention is that after the writing of the file management information is completed, the remaining unwritten image data main body portion is continuously written. It is characterized by writing.
[0016]
A storage medium of the present invention stores a program for executing the image data storage method in the imaging apparatus described above.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of an imaging device, a method for storing image data in the imaging device, and a storage medium will be described below with reference to the accompanying drawings.
FIG. 1 is a block diagram showing a configuration of a general imaging apparatus, and FIG. 2 shows an internal configuration of a storage medium 105 of a file system handled in the present embodiment and a file management method ( MS-DOS file system). FIG. 3 is a flowchart of a task for controlling the photographing operation. FIG. 4 is a flowchart showing a file writing procedure in the present embodiment. FIG. 5 shows the file write timing in the present embodiment.
[0018]
As shown in FIG. 1, the imaging apparatus 100 according to the present embodiment includes an A / D conversion unit 102 that converts an analog signal obtained from the imaging element 101 into a digital signal, and digital signal processing of the digital signal. A signal processing unit 103 for converting the image data into a desired format, a first storage unit 104 (hereinafter referred to as a main memory) for temporarily storing the image data generated by the signal processing unit, and an image A detachable second storage means 105 (hereinafter referred to as a storage medium) for finally storing data and a CPU 106 for controlling the operation of each unit are configured.
[0019]
In the imaging apparatus 100 configured as described above, the removable storage medium 100 includes a management area 210 (hereinafter referred to as a management area) for managing the image data file 111 and an image as shown in FIG. It has a file system composed of a data area 220 (hereinafter referred to as a cluster area) for storing image data bodies of data files.
[0020]
Then, the analog signal data obtained from the image pickup device 101 by photographing is digitized by the A / D converter 102 and subjected to digital signal processing. It is temporarily stored in the memory 104. The image data 110 temporarily stored in the main memory 104 is stored in the storage medium 105 as an image file format 111 asynchronously with the shooting operation.
[0021]
At this time, the writing operation of the image data file 111 to the storage medium 105 is performed according to the procedure shown in the flowchart of FIG. That is, when a shooting operation is performed, a file writing task 600 is started, and image data is first registered (step S601).
[0022]
Next, it is determined whether or not image data is registered (step S602). If there is no registration, the process returns to step 601, and if there is, the FAT information is read from the management area 210 to the main memory (step S603), and an empty area ( Search for (free cluster area).
[0023]
Subsequently, the cluster data for storing the directory entry of the image data file is read onto the main memory (step S604), the directory entry of the image data file to be added is written, and this cluster data is written back to the original cluster (step S605). The FAT is updated and the FAT is written (step S606). (A state where a file is created on the storage medium) (Operation (1) in FIG. 8).
[0024]
Next, in order to write the data body portion of the image data on the storage medium (operation 7 in FIG. 8), an empty cluster area is searched from the FAT information read to the main memory, and an empty cluster on the corresponding storage medium is searched. The FAT information (FAT link information) on the main memory is updated (step S608) while sequentially writing the image data main body portion in the area (step S607).
[0025]
Next, it is determined whether or not the data is finished (step S609). When all the data body portions of the image data are written on the storage medium, the FAT entry (the directory entry of the image file held in the main memory ( (Link information to the first cluster) is set, the size of the image file is set (step S610), and the cluster data including this directory entry is written back to the original cluster (step S611).
[0026]
(The file has been created on the storage medium, the FAT link has been established, and the image file size has also been determined.) Finally, the updated FAT information on the main memory is written to a predetermined management area of the storage medium. By returning (step S612), the series of file writing operations is completed (operation (2) in FIG. 8).
[0027]
When the imaging device 100 continuously shoots, a plurality of image data is accumulated in the main memory (700), and when the image file is sequentially written to the storage medium as shown in timing 710, the creation of the image file, The data write and file close cycle is repeated.
[0028]
The size of image data in the imaging device tends to increase as the number of pixels of the imaging device 101 increases, and a large amount of image data can be stored in the main memory by improving the speed shooting performance of the imaging device and shortening the shooting interval. Temporarily stored (700) and sequentially written to the storage medium (710).
[0029]
In general, the writing speed to the storage medium is in a situation where it is not in time for the shooting operation due to the improvement in the speed shooting performance and the shortening of the shooting interval. For several seconds, unwritten image data remaining in the main memory is written to the storage medium.
[0030]
As a user of the imaging apparatus, there is a possibility of removing the storage medium from the imaging apparatus or disconnecting the power supply, assuming that the image data has been written to the file when shooting is completed.
[0031]
Since the image data file is sequentially written to the storage medium, the management information of the image file is written until the completion of the file writing of the image data stored in the main memory after the photographing is completed ((2) at 710 in FIG. 8). , (4), (6)).
[0032]
Therefore, there is a high possibility that the user of the imaging apparatus will destroy the file system on the storage medium by accidentally removing the storage medium or removing the battery while writing the management information of the image file. As described above, when the file system is destroyed, it becomes impossible to access previously captured image data.
[0033]
That is, if the storage medium 105 is removed after the completion of shooting and before the timing (6) in 710 of FIG. 8 (the closing of the last image data 3 file), the file system may be destroyed.
[0034]
In addition, since the remaining capacity of the power supply is small, all the image data cannot be written to the storage medium, and the power is turned off while the management information of the image file is being written. It was.
[0035]
Conventionally, methods for calling attention to the user of the imaging apparatus or backing up unwritten image data in the main memory with an instruction manual have been considered for such a possibility.
[0036]
However, the user of the imaging apparatus sometimes accidentally removes the storage medium or unplugs the power. In addition, in order to back up the image data on the main memory, a large amount of power is consumed, so that it is not suitable for a small imaging device.
[0037]
Next, a shooting task of the imaging apparatus 100 will be described with reference to the flowchart of FIG.
When a shooting operation is performed, a shooting task 300 is started, and the imaging apparatus 100 is controlled by a CPU (central processing unit) 106 to detect a shooting start switch (step S301). Next, it is determined whether or not the detected switch is valid (step S302). If it is valid, a photographing operation (step S303) is performed.
[0038]
When the photographing operation is started, an analog signal is obtained from the image sensor 101, and this signal is converted into a digital signal by the A / D converter 102 (step S304). Next, the signal data converted into the digital signal is processed by the digital signal processing means 103 (step S305), and data 110 in a desired image format is generated in the main memory 104 (step S306).
[0039]
When the image data 110 can be prepared in the main memory 104, the shooting task 300 issues image data registration (file write request) to the file write task 400 (step S307). The shooting task 300 enters a waiting state for the next shooting start switch. The shooting task 300 operates asynchronously with the file writing task 400.
[0040]
Next, the file write task 400 will be described with reference to the flowchart of FIG.
The file writing task 400 waits for image data registration (file writing request) (steps S401 and S402), and the shooting task 300 performs image data registration (step S307), thereby creating a file creation operation (FIG. 6 of 510 (1)) is started.
[0041]
In the file creation operation, FAT reading is performed from the FAT area 211 of the storage medium 105 (step S403), and cluster data storing a directory entry of a newly created image file is read (step S404). A directory entry of a newly created image file is created in the read cluster data and written back to the cluster area 211 (step S405).
[0042]
At this time, if the FAT is updated, the FAT on the main memory is updated, and the updated FAT is written in the FAT area 211 of the storage medium 105 (step S406). Following the file creation operation, an image data write operation is executed.
[0043]
In the image data writing operation according to the present embodiment, data writing information is registered in the main memory 104 without actually performing cluster writing to the storage medium 105 (step S407), and the FAT on the main memory is updated (step S407). Step S408) is repeated until the image data is completed (Step S409).
[0044]
Since this operation is performed on the main memory (104), writing to the storage medium 105 is not performed at all. When the image data writing operation is completed, the FAT on the main memory (104) is equal to the final FAT data when the image data writing is completed.
[0045]
When the data writing is completed, the file closing operation (510 (2) in FIG. 6) is started. For the directory entry on the main memory (104), the top cluster information and the image file size are updated (step S410), and the cluster data including the updated directory entry on the main memory (104) is stored in the cluster area. Write back to 211 (step S411). Subsequently, the finally updated FAT data on the main memory (104) is written in the FAT area 211 of the storage medium 105 (step S412).
[0046]
In this state, the image file is completed on the file system, but the image data main body is not written in the storage medium 105. However, since there is no contradiction as the file system, even when the storage medium 105 is removed, the file system is not destroyed.
[0047]
Since the writing of the image file management area to the storage medium is completed as described above, the writing of the image data body portion to the storage medium is subsequently started. However, when there are a plurality of image data 110 on the main memory 104 (500 in FIG. 6), in order to prioritize the writing of the image file (image 2, image 3) to the storage medium 105 in the management area, the above sequence ( Steps S403 to S412) are repeated. ((3), (4), (5), (6) in 510 of FIG. 6) Writing of the file management area of the image data 110 (image 1, image 2, image 3 of 500 in FIG. 6) of the main memory 104 When is completed, writing of the image data body is started.
[0048]
Since there is no image data registration in the file writing task 400, acquisition of data writing information is executed as shown in the flowchart of FIG. 5 (step S421). If the image data body is not yet written to the storage medium 105, it is determined whether or not data writing information exists (step S422). If the information exists, actual data writing (cluster data writing) is performed. This is executed (step S423), and the data write information on the main memory is released (invalid) (step S424).
[0049]
The image data writing is repeatedly executed until all the data writing information becomes invalid. ((7), (8), (9) in 510 of FIG. 6) In a state where image data is being written ((7), (8), (9) in FIG. 6), the user of the imaging device However, if the storage medium is accidentally removed or the power supply is disconnected, the image data itself is not correct because there is unwritten data in the image data, but the file management information has the correct value. Therefore, it is not destroyed as a file system.
[0050]
In the present embodiment, when there are a plurality of image data 110 (image 1, image 2, image 3) in the main memory 104, the timing at which the file system may be destroyed is 510 from (1) to (6). The state of ▼ is shorter than that of the conventional example.
[0051]
In addition to the above timing, timing 2 (520 in FIG. 6) shows the timing when shooting is performed during the writing of the image data main body. At timing 2 (520 in FIG. 6), image 1 and image 2 already exist in the main memory 104, and the file write task 400 writes the management data of image 1 ((1) and ▲ in 520 in FIG. 6). 2), writing of management data of image 2 ((3), (4) of 520 in FIG. 6), writing of image data main body of image 1 ((7) of 520 in FIG. 6) has already been completed. .
[0052]
When a shooting operation is performed in the shooting task 300 while the image data main body of the image 2 is being written (520 in FIG. 6), a new image 3 is generated in the main memory 104 (step In step S306, data registration of the image 3 is performed in the file writing task (step S307).
[0053]
The file writing task 400 is executing the image data writing of the image 2 (step S423), but when the current cluster data writing is completed, the data writing is released (step S424) and the registration of the image data is performed (step S424). Step S401).
[0054]
At this time, since the image data registration for the image 3 has already been performed as described above, the image data registration is in a certain state (step S402). Accordingly, the file creation process {circle around (5)} for the image 3 is executed, and the process from the FAT reading (step S403) to the file closing process {circle around (6)} for the image 3 (FAT update writing (step S412)) is executed.
[0055]
When the writing of the file management area to the image 3 ((5), (6) of 520 in FIG. 6) is completed, image data registration acquisition is performed (step S401), and no new image data exists (step S402). ), The interrupted data writing process of image 2 ((8) of 520 in FIG. 6) is continued (step S421).
[0056]
The image data write information includes the remaining part of image 2 and the main part of image 3, and repeats data write information acquisition (step S421), data write execution (step S423), and data write information release (step S424).
[0057]
In the above case, when a new image is taken during the data writing of the image 2 and the image 3 is generated on the main memory 104, the data writing of the image 2 ((8) of 520 in FIG. 6) is interrupted, Since the file management information writing of image 3 ((5) and (6) in 520 in FIG. 6) is prioritized, the writing of file management information in image 3 is completed ((6) in 520 in FIG. 6). Since the file system is correct, even if the user of the imaging apparatus accidentally removes the storage medium 105 or disconnects the power in this state, the file system is not destroyed.
[0058]
[Second Embodiment]
In the present embodiment, by assigning a part of the main memory (104) in the first embodiment described above as the third storage means that can be backed up, the image data 110 exists in the main memory 104 and corresponds to the third storage means. Guarantee by having the management information of the image file in the backup area even when the storage medium is removed or the power is disconnected while writing the management information of the image file to the storage medium It is.
[0059]
FIG. 9 shows the structure of the main memory 104 in the present embodiment. In FIG. 8, the main memory 104 includes a backupable memory 800 and a volatile image data area 810. The backupable memory 800 is further divided into a FAT reading area 801, a directory management area 802, and write management information 803 for storage media.
[0060]
After shooting, when image data 110 is generated in the image data area 810 of the main memory 104 and image data is registered in the file writing task 400, image file creation processing is started.
[0061]
In the image file creation process, FAT reading is performed from the storage medium 105 to the FAT reading area 801 (step S403). In this state, the write management information 803 to the storage medium is in an unwritten state.
[0062]
Subsequently, the directory entry is read from the storage medium 105 to the directory management area (step S405). When writing a directory entry of a newly created file to the storage medium 105, the write management information 803 to the storage medium is in a writing state, and the FAT reading area 801 and the directory management area 802 are backed up.
[0063]
When FAT update writing (step S406) is executed and writing to the storage medium 105 is completed, the write management information 803 to the storage medium is in a backup invalid state. At the time when the writing of the directory entry to the storage medium I05 is started (step S411) during the image file closing process, the write management information 803 to the storage medium is in a writing state, and the FAT reading area 801 and the directory are written. The management area 802 is backed up.
[0064]
When the FAT update writing (step S412) is executed and the writing to the storage medium 105 is completed, the storage medium writing management information 803 is in a backup invalid state.
[0065]
When the user of the imaging apparatus accidentally removes the storage medium 105 in the state of writing a directory entry to the storage medium 105 (step S405 / step S411) or FAT update writing (step S406 / step S412) If the power source is unplugged or the like, when the computer is restarted, it is recognized that the storage medium 105 has not been replaced, and the FAT read area 801 is stored in the storage medium 105 based on the write management information 803 for the storage medium. By performing writing from and writing from the directory management area 802, it becomes possible to prevent the file system from being destroyed.
[0066]
In such a configuration, the memory 800 that can be backed up requires a smaller capacity than the image data area 810, and thus there is an advantage that less power is consumed for backup.
[0067]
(Another embodiment of the present invention)
The present invention may be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.) or an apparatus composed of one device.
[0068]
In addition, for operating various devices so as to realize the functions of the above-described embodiments, for realizing the functions of the above-described embodiments for an apparatus or a computer in the system connected to the various devices. Implementations by supplying software program codes and operating the various devices in accordance with programs stored in a computer (CPU or MPU) of the system or apparatus are also included in the scope of the present invention.
[0069]
In this case, the program code of the software itself realizes the functions of the above-described embodiments, and the program code itself and means for supplying the program code to the computer, for example, the program code are stored. This storage medium constitutes the present invention. As a storage medium for storing the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0070]
Further, by executing the program code supplied by the computer, not only the functions described in the above-described embodiments are realized, but also the OS (operating system) or other operating system in which the program code is running on the computer. It goes without saying that the program code is also included in the embodiment of the present invention even when the functions described in the above-described embodiment are realized in cooperation with application software or the like.
[0071]
Further, after the supplied program code is stored in the memory provided in the function expansion board of the computer or the function expansion unit connected to the computer, the CPU provided in the function expansion board or function expansion unit based on the instruction of the program code The present invention also includes a case where the functions of the above-described embodiment are realized by performing part or all of the actual processing.
[0072]
【The invention's effect】
As described above, according to the present invention, the image data is not written to the second storage unit, and the first storage unit stores the image data. Registered Image data writing information Informative And updating the management information when storing image data in the second storage means, and writing the updated management information in the file management area of the second storage means. Since the file management information for the recorded image is preferentially written to the storage medium, the file system management information is updated immediately after shooting regardless of the state of shooting. Even in the unlikely event that the medium is removed or the power is unplugged, the file system can be protected at least as short as possible after shooting. Thereby, it is possible to avoid as much as possible that the image data that has already been captured cannot be accessed, and the safety of the file system can be improved.
Further, without writing image data to the second storage means, the first storage means Registered Image data writing information Informative Since the management information when the image data is stored in the second storage means is updated based on the data, the data equivalent to the final FAT data (management information) is recorded before the main image data is written. I can do it. That is, it is possible to accurately determine the storage capacity for writing the main image data, and it is possible to eliminate the waste of securing a large storage capacity for writing the main image data.
[0073]
According to another feature of the present invention, when there are a plurality of image data in the first storage means, even if there is an unwritten image data body portion in the second storage means, Prioritizing the writing of file management information for newly created image data, and writing the remaining unwritten image data itself after the file management information has been written, thus ensuring the safety of the file system. It is possible to improve the writing speed of the image data main body portion.
[0074]
According to another feature of the present invention, the file management information of the image data is retained when a power failure occurs while the file management information of the image data is being written to the second storage means. If the second storage means is not replaced when the power is turned on next time, the file management information of the image data stored in the third storage means is stored in the second storage means. It is possible to write to a predetermined position of the storage means, and it is possible to prevent the file system from being destroyed due to the power being removed.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a waist configuration of an imaging apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram showing an example of an internal data structure of a storage medium used in the embodiment.
FIG. 3 is a flowchart of a task for performing shooting processing in a general imaging apparatus.
FIG. 4 is a flowchart showing a flow of writing a file to the storage medium in the embodiment of the present invention.
FIG. 5 is a flowchart showing file writing timing and processing procedures in a storage medium for a plurality of images according to the embodiment of the present invention.
FIG. 6 is an explanatory diagram showing file writing timing and processing procedures in a storage medium for a plurality of images in the present embodiment.
FIG. 7 is a flowchart showing a flow of writing a file to a storage medium.
FIG. 8 is an explanatory diagram showing the timing of writing a file to a general multiple-image storage medium and the processing procedure.
FIG. 9 is a diagram showing a configuration of a main memory according to a second embodiment of the present invention.
[Explanation of symbols]
100 Imaging device
101 Image sensor
102 A / D converter
103 Digital signal processing means
104 Main memory
105 Removable storage medium
106 CPU (Central Processing Unit)
110 Image data
111 Image data file
200 storage media
210 Management area
211 FAT (File Allocation Table) area
212 Root directory
220 Cluster area
221 Cluster area
510 Continuous write timing
520 Timing when shooting while writing image data
800 Backupable memory
801 FAT reading area
802 Directory management area
803 Write management information to storage medium
810 Image data area

Claims (15)

撮像素子から得られた画像データを一時的に格納する第1の記憶手段と、上記第1の記憶手段に格納されている上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置において、
上記第1の記憶手段、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報登録する登録手段と
上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とに区画され、
上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録手段による登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み手段と、
上記管理情報書き込み手段による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み手段とを有することを特徴とする撮像装置。
First storage means for temporarily storing image data obtained from the image sensor and the image data stored in the first storage means are recorded as image files in a removable second storage means. In an imaging apparatus having recording means for
Registration means for registering write information for writing the image data in the second storage means in the first storage means;
The removable second storage means is partitioned into a file management area for managing the image file and a data area for storing the image data body of the image file,
Without writing the image data into the second storage means, the first based only on the writing information of the image data registered by said registration means in the memory means, said second storage means Management information writing means for updating the management information in the case of storing the image data to write the updated management information in the file management area of the second storage means,
In response to completion of writing by the management information writing means, the image data stored in the first storage means is changed to the first storage means based on the writing information of the image data registered in the first storage means. And an image writing means for writing in a data area of the storage means.
撮像素子から得られるアナログ信号の画像信号をデジタル化するとともに所望の形式に変換して画像データを生成する画像データ生成手段と、上記画像データ生成手段によって生成された画像データを一時的に格納する第1の記憶手段と、上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置において、
上記第1の記憶手段、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報登録する登録手段と
上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とで構成されたファイルシステムを有し、
上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録手段による登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み手段と、
上記管理情報書き込み手段による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み手段とを有することを特徴とする撮像装置。
Image data generating means for generating image data by digitizing an analog image signal obtained from the image sensor and converting it into a desired format, and temporarily storing the image data generated by the image data generating means In an imaging apparatus comprising: a first storage unit; and a recording unit that records the image data as an image file in a detachable second storage unit.
Registration means for registering write information for writing the image data in the second storage means in the first storage means;
The detachable second storage means has a file system composed of a file management area for managing the image file and a data area for storing the image data body of the image file,
Without writing the image data into the second storage means, the first based only on the writing information of the image data registered by said registration means in the memory means, said second storage means Management information writing means for updating the management information in the case of storing the image data to write the updated management information in the file management area of the second storage means,
In response to completion of writing by the management information writing means, the image data stored in the first storage means is changed to the first storage means based on the writing information of the image data registered in the first storage means. And an image writing means for writing in a data area of the storage means.
上記画像データの書き込み情報とは、上記第1の記憶手段から上記第2の記憶手段へ実際に上記画像データの書き込み動作が行われたか否かを判断可能な情報を含むことを特徴とする請求項1または2に記載の撮像装置。 The write information of the image data, characterized by comprising the first whether a possible determination information write operation actually the image data into the second storage means is performed from the storage means The imaging device according to claim 1 or 2. 上記画像ファイルの管理を行うファイル管理領域は、上記画像データのファイル管理情報として上記画像ファイルのエントリ情報、及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報のみを含むことを特徴とする請求項1〜3の何れか1項に記載の撮像装置。  The file management area for managing the image file includes only entry information of the image file as file management information of the image data and link information to a data area storing the data body of the image file. The imaging device according to any one of claims 1 to 3. 上記画像ファイルの管理を行うファイル管理領域は、上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を含み、上記画像ファイルの画像データ本体を格納するデータ領域は、上記画像データのファイルのエントリ情報と上記画像ファイルのデータ本体を含み、上記画像データのファイル管理情報として、上記画像ファイルのエントリ情報及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を優先して書き込むことを特徴とする請求項1〜3の何れか1項に記載の撮像装置。  The file management area for managing the image file includes link information to a data area for storing the data body of the image file, and the data area for storing the image data body of the image file is a file area of the image data file. It includes entry information and the data body of the image file. As file management information of the image data, the entry information of the image file and link information to the data area storing the data body of the image file are preferentially written. The imaging apparatus according to any one of claims 1 to 3, wherein the imaging apparatus is characterized in that 連続的な撮影が行われたことにより、上記第1の記憶手段に複数の画像データが存在する時には、上記第2の記憶手段に対して未書き込みな画像データ本体部分が存在しても、次の撮影が行われて画像ファイルの作成が行われた時には、新たに作成された画像データのファイル管理情報の書き込みを優先させて行い、上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込むことを特徴とする請求項1〜5の何れか1項に記載の撮像装置。  When a plurality of image data exist in the first storage means due to continuous shooting, even if there is an unwritten image data main body portion in the second storage means, When image capture is performed and image file creation is performed, writing of file management information for newly created image data is prioritized, and after the writing of the file management information is completed, the remaining files are not written. 6. The imaging apparatus according to claim 1, wherein a main part of the image data to be written is written. 上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込む際に連続的に書きこむことを特徴とする請求項6に記載の撮像装置。  7. The imaging apparatus according to claim 6, wherein after the writing of the file management information is completed, the remaining unwritten image data body portion is continuously written when writing. 撮像素子から得られた画像データを一時的に格納する第1の記憶手段と、上記第1の記憶手段に格納されている上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置における画像データの記憶方法において、
上記第1の記憶手段には、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報が登録され、
上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とに区画され、
上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み処理と、
上記管理情報書き込み処理による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み処理とを有することを特徴とする撮像装置における画像データの記憶方法。
First storage means for temporarily storing image data obtained from the image sensor and the image data stored in the first storage means are recorded as image files in a removable second storage means. In an image data storage method in an imaging apparatus having a recording means for
Write information for writing the image data in the second storage means is registered in the first storage means,
The removable second storage means is partitioned into a file management area for managing the image file and a data area for storing the image data body of the image file,
The to the second storage means without performing the writing of the image data, based only on the registered write information of the image data in the first storage means, the image data into the second storage means Management information write processing for updating the management information when storing the management information and writing the updated management information to the file management area of the second storage means;
When the writing by the management information writing process is completed, the image data stored in the first storage unit is changed to the first storage unit based on the writing information of the image data registered in the first storage unit. And a method of storing image data in an imaging apparatus, comprising: an image writing process for writing to a data area of a second storage unit.
撮像素子から得られるアナログ信号の画像信号をデジタル化するとともに所望の形式に変換して画像データを生成する画像データ生成手段と、上記画像データ生成手段によって生成された画像データを一時的に格納する第1の記憶手段と、上記画像データを、着脱可能な第2の記憶手段に画像ファイルとして記録する記録手段とを有する撮像装置における画像データの記憶方法において、
上記第1の記憶手段には、上記第2の記憶手段に上記画像データの書き込みを行うための書き込み情報が登録され、
上記着脱可能な第2の記憶手段は、上記画像ファイルの管理を行うファイル管理領域と、上記画像ファイルの画像データ本体を格納するデータ領域とで構成されたファイルシステムを有し、
上記第2の記憶手段へ上記画像データの書き込みを行わずに、上記第1の記憶手段での上記登録された上記画像データの書き込み情報のみに基づいて、上記第2の記憶手段へ画像データを格納する場合の管理情報を更新して、上記更新された上記管理情報を上記第2の記憶手段のファイル管理領域に書き込む管理情報書き込み処理と、
上記管理情報書き込み処理による書き込みが終了したことに応じて、上記第1の記憶手段に登録された画像データの書き込み情報に基づいて、上記第1の記憶手段に格納されている画像データを上記第2の記憶手段のデータ領域へ書き込む画像書込み処理とを有することを特徴とする撮像装置における画像データの記憶方法。
Image data generating means for generating image data by digitizing an analog image signal obtained from the image sensor and converting it into a desired format, and temporarily storing the image data generated by the image data generating means In a method for storing image data in an imaging apparatus, comprising: first storage means; and recording means for recording the image data as an image file in a removable second storage means.
Write information for writing the image data in the second storage means is registered in the first storage means,
The detachable second storage means has a file system composed of a file management area for managing the image file and a data area for storing the image data body of the image file,
The to the second storage means without performing the writing of the image data, based only on the registered write information of the image data in the first storage means, the image data into the second storage means Management information write processing for updating the management information when storing the management information and writing the updated management information to the file management area of the second storage means;
When the writing by the management information writing process is completed, the image data stored in the first storage unit is changed to the first storage unit based on the writing information of the image data registered in the first storage unit. And a method of storing image data in an imaging apparatus, comprising: an image writing process for writing to a data area of a second storage unit.
上記画像データの書き込み情報とは、上記第1の記憶手段から上記第2の記憶手段へ実際に上記画像データの書き込み処理が行われたか否かを判断可能な情報を含むことを特徴とする請求項8または9に記載の撮像装置における画像データの記憶方法。 The write information of the image data, characterized by comprising the first whether a possible determination information writing process of actually the image data into the second storage means is performed from the storage means A method for storing image data in the imaging apparatus according to claim 8 or 9. 上記画像ファイルの管理を行うファイル管理領域は、上記画像データのファイル管理情報として上記画像ファイルのエントリ情報、及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報のみを含むことを特徴とする請求項8〜10の何れか1項に記載の撮像装置における画像データの記憶方法。  The file management area for managing the image file includes only entry information of the image file as file management information of the image data and link information to a data area storing the data body of the image file. The method for storing image data in the imaging apparatus according to claim 8. 上記画像ファイルの管理を行うファイル管理領域は、上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を含み、上記画像ファイルの画像データ本体を格納するデータ領域は、上記画像データのファイルのエントリ情報と上記画像ファイルのデータ本体を含み、上記画像データのファイル管理情報として、上記画像ファイルのエントリ情報及び上記画像ファイルのデータ本体を格納するデータ領域へのリンク情報を優先して書き込むことを特徴とする請求項8〜10の何れか1項に記載の撮像装置における画像データの記憶方法。  The file management area for managing the image file includes link information to a data area for storing the data body of the image file, and the data area for storing the image data body of the image file is a file area of the image data file. It includes entry information and the data body of the image file. As file management information of the image data, the entry information of the image file and link information to the data area storing the data body of the image file are preferentially written. The method for storing image data in the imaging apparatus according to claim 8, wherein the image data is stored in the imaging apparatus. 連続的な撮影が行われたことにより、上記第1の記憶手段に複数の画像データが存在する時には、上記第2の記憶手段に対して未書き込みな画像データ本体部分が存在しても、次の撮影が行われて画像ファイルの作成が行われた時には、新たに作成された画像データのファイル管理情報の書き込みを優先させて行い、上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込むことを特徴とする請求項8〜11の何れか1項に記載の撮像装置における画像データの記憶方法。  When a plurality of image data exist in the first storage means due to continuous shooting, even if there is an unwritten image data main body portion in the second storage means, When image capture is performed and image file creation is performed, writing of file management information for newly created image data is prioritized, and after the writing of the file management information is completed, the remaining files are not written. The image data storing method in the imaging apparatus according to claim 8, wherein a writable image data body portion is written. 上記ファイル管理情報の書き込みが完了してから、残りの未書き込みな画像データ本体部分を書き込む際に連続的に書きこむことを特徴とする請求項13に記載の撮像装置における画像データの記憶方法。  14. The image data storage method according to claim 13, wherein after the writing of the file management information is completed, the remaining unwritten image data body portion is continuously written when writing. 上記請求項8〜14の何れか1項に記載の撮像装置における画像データの記憶方法をコンピュータに実行させるプログラムを格納したことを特徴とするコンピュータ読み取り可能な記憶媒体。  15. A computer-readable storage medium storing a program for causing a computer to execute the image data storage method in the imaging apparatus according to claim 8.
JP2003163413A 2003-06-09 2003-06-09 IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM Expired - Fee Related JP4261991B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003163413A JP4261991B2 (en) 2003-06-09 2003-06-09 IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003163413A JP4261991B2 (en) 2003-06-09 2003-06-09 IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000053007A Division JP3542539B2 (en) 2000-02-29 2000-02-29 Imaging device, method of storing image data in imaging device, and storage medium

Publications (2)

Publication Number Publication Date
JP2004007731A JP2004007731A (en) 2004-01-08
JP4261991B2 true JP4261991B2 (en) 2009-05-13

Family

ID=30438262

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003163413A Expired - Fee Related JP4261991B2 (en) 2003-06-09 2003-06-09 IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM

Country Status (1)

Country Link
JP (1) JP4261991B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011114426A (en) * 2009-11-25 2011-06-09 Sanyo Electric Co Ltd Content processing apparatus

Also Published As

Publication number Publication date
JP2004007731A (en) 2004-01-08

Similar Documents

Publication Publication Date Title
US6177956B1 (en) System and method for correlating processing data and image data within a digital camera device
JP3619210B2 (en) Image data file management system, file management method and medium, and imaging apparatus
US7921083B2 (en) File management device and electronic equipment
US20040111582A1 (en) File-update apparatus
US5585845A (en) Electronic still camera having data storage device and method for recording image data within said data storage device
US7620994B2 (en) Data recording system and data access method
JPH0837638A (en) Digital still camera
KR101342914B1 (en) Electron apparatus having file restore function and method thereof
JP4225378B2 (en) Replication apparatus, replication method, replication program, block identification information acquisition program, and recording medium
US7639286B2 (en) Image input apparatus for storing image data into a removable recording medium
JP3542539B2 (en) Imaging device, method of storing image data in imaging device, and storage medium
WO2004017206A1 (en) Recording device, recording method, recording medium, and program
JP4261991B2 (en) IMAGING DEVICE, METHOD FOR STORING IMAGE DATA IN IMAGING DEVICE, AND STORAGE MEDIUM
JP3996962B2 (en) Digital camera
CN101489079B (en) Imaging apparatus, picture managing method, and program
JP2002229829A (en) File management information generation method and device
JPH1050084A (en) Memory controller and memory access method
JP2008226234A (en) Content processor
JP3957775B2 (en) Digital camera and recording method thereof
JP3552247B2 (en) Electronic still camera
JP3260235B2 (en) How to replace external recording media
JPH0879686A (en) Method for recording information of electronic still camera and device therefor
JP4383974B2 (en) Imaging apparatus and image data management method
KR100377217B1 (en) Accounting File Recovery Method Of Exchange File System
JP2004318455A (en) Image information management system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060213

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060314

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060515

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060601

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20060728

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081222

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

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130220

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140220

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees