JP2007124150A - Apparatus and method for image processing, and for processing image data file, computer program, and recording medium - Google Patents
Apparatus and method for image processing, and for processing image data file, computer program, and recording medium Download PDFInfo
- Publication number
- JP2007124150A JP2007124150A JP2005311806A JP2005311806A JP2007124150A JP 2007124150 A JP2007124150 A JP 2007124150A JP 2005311806 A JP2005311806 A JP 2005311806A JP 2005311806 A JP2005311806 A JP 2005311806A JP 2007124150 A JP2007124150 A JP 2007124150A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- file
- raw
- data file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000012545 processing Methods 0.000 title claims abstract description 89
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000004590 computer program Methods 0.000 title claims description 4
- 238000003384 imaging method Methods 0.000 claims abstract description 15
- 238000006243 chemical reaction Methods 0.000 claims abstract description 11
- 238000003860 storage Methods 0.000 claims description 14
- 238000003672 processing method Methods 0.000 claims description 8
- 230000006835 compression Effects 0.000 abstract description 22
- 238000007906 compression Methods 0.000 abstract description 22
- 238000004891 communication Methods 0.000 description 54
- 230000008569 process Effects 0.000 description 45
- 239000003550 marker Substances 0.000 description 16
- 230000006870 function Effects 0.000 description 12
- 238000011161 development Methods 0.000 description 11
- 238000004364 calculation method Methods 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 9
- 239000012536 storage buffer Substances 0.000 description 9
- 238000002360 preparation method Methods 0.000 description 8
- 238000012790 confirmation Methods 0.000 description 4
- 238000013523 data management Methods 0.000 description 4
- 230000006837 decompression Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008520 organization Effects 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 125000002066 L-histidyl group Chemical group [H]N1C([H])=NC(C([H])([H])[C@](C(=O)[*])([H])N([H])[H])=C1[H] 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Abstract
Description
本発明は、画像処理装置、画像処理方法、画像データファイル処理装置、画像データファイル処理方法、コンピュータプログラム及び記憶媒体に関する。 The present invention relates to an image processing device, an image processing method, an image data file processing device, an image data file processing method, a computer program, and a storage medium.
近年、撮影データを複数の圧縮方式によってファイルを生成するデジタルカメラが実用化されている。これらのデジタルカメラでは、一般の多くのアプリケーションで扱うことが可能なJPEG画像を生成できることは言うまでもない。それ以外にも、撮像素子からの出力を劣化させずに出力した、いわゆるRAWタイプの画像(以下、「RAW画像」という)を生成できるものも少なくない。すなわち、デジタルカメラ側では未加工のRAW画像を記録しておき、パーソナルコンピュータ等の外部装置によって画像の再現(現像)処理を行うことにより、高品質のプリントやユーザの目的に合致したより高度な画像編集を実現するものである。なお、このRAW画像を可逆圧縮方式で圧縮し、生成データ量を抑えている場合もある。 In recent years, digital cameras that generate files of photographed data using a plurality of compression methods have been put into practical use. It goes without saying that these digital cameras can generate JPEG images that can be handled by many general applications. In addition, there are many that can generate a so-called RAW type image (hereinafter referred to as “RAW image”) that is output without degrading the output from the image sensor. That is, by recording raw RAW images on the digital camera side and performing image reproduction (development) processing by an external device such as a personal computer, it is possible to achieve higher-quality prints and higher-level images that meet the user's purpose. Realizes image editing. Note that this RAW image may be compressed by a lossless compression method to reduce the amount of generated data.
ここで、JPEGとは、国連の機関である国際標準化機構(ISO)と国際電信電話諮問機関(CCITT:現在はITU−T)が共同でまとめた非可逆変換方式を主とした圧縮規格である。その拡張子は「○○.jpg」と表記され、その呼び名は検討グループ"Joint Photograph Expert Group"の名前に由来する。 Here, JPEG is a compression standard mainly composed of irreversible conversion methods compiled by the International Organization for Standardization (ISO), which is a United Nations organization, and the International Telegraph and Telephone Consulting Organization (CCITT: now ITU-T). . Its extension is written as “XX.jpg”, and its name comes from the name of the study group “Joint Photograph Expert Group”.
図6は、一般的なデジタルカメラにて出力可能なDCF画像データのデータ構造の概略を示す図である。DCF画像データは、JPEG画像データの先頭を示すマーカ(SOIマーカ)とJPEG画像データの最後を示すマーカ(EOIマーカ)との間にDCFヘッダ部601と呼ばれるメタデータ、サムネイル画像部602、JPEG画像部603を含む。このうち、DCFヘッダ部601には、DCF(Design rule for Camera File system)として規格化された情報だけでなく、メーカ独自の情報を埋め込むことができる。なお、このような画像データの拡張子は「○○.jpg」と表記される。
FIG. 6 is a diagram showing an outline of the data structure of DCF image data that can be output by a general digital camera. The DCF image data includes metadata called a
次に、図7は、RAW画像データの構造の概略を示す図である。図7において、RAW画像データは、RAWヘッダ部701、サムネイル画像部702、再生用JPEG画像部703及びRAW画像部704から構成される。拡張子は「○○.RAW」などと表記される。RAW画像部704に格納されるRAWの画像データそのものはデータサイズが大きく、通常は画像確認等には適さないため、サムネイル画像部702や再生用JPEG画像部703を設けて、参照用の画像を添付することが多い。なお、また、RAW画像の解像度や階調及び圧縮方式等は各メーカ又はデバイスによって異なる。
Next, FIG. 7 is a diagram showing an outline of the structure of RAW image data. In FIG. 7, the RAW image data includes a RAW
また、デジタルカメラでは、上記のDCF画像データ又はRAW画像データ、或いはその両方を出力するようにユーザが設定することによって、所望の画像データを生成することが可能となっている。ここで、一回の撮影によって両方を出力可能な場合は、図6のDCF画像データとRAW画像データの両方を出力する方法が考えられる。また別の方法としては、RAW画像データ内にJPEG画像を埋め込む方法がある。この場合、図8のように、RAW画像データが、RAWヘッダ部801、サムネイル画像部802、再生用JPEG画像の代わりにユーザの指定した解像度のJPEG画像部803及びRAW画像部804で構成されることとなる(特許文献1参照。)。
The digital camera can generate desired image data by setting the user to output the DCF image data and / or the RAW image data. Here, when both can be output by one imaging, a method of outputting both the DCF image data and the RAW image data in FIG. 6 can be considered. As another method, there is a method of embedding a JPEG image in RAW image data. In this case, as shown in FIG. 8, the RAW image data is composed of a RAW
しかしながら、図7や図8に示すようなRAW画像データの場合、拡張子のみならず、図6に示したDCF画像データやJPEG画像データなどの汎用のデータ構造とは異なり、汎用アプリケーションでは通常再生や編集ができないという問題がある。 However, in the case of RAW image data as shown in FIG. 7 and FIG. 8, not only the extension but also general-purpose data structures such as DCF image data and JPEG image data shown in FIG. There is a problem that cannot be edited.
また、一回の撮影において一回の撮影で二つの画像データ(DCF画像データと図7や図8のRAW画像データとの両方)を出力する場合は、デジタルカメラ内で管理しなければならない画像データの数が増えてしまう。即ち、一回の撮影で一つの画像データ(DCF画像データ又は図7や図8のRAW画像データ)のみ出力する場合に比べ、二倍の画像データの管理が必要となる。 Also, when two image data (both DCF image data and RAW image data in FIGS. 7 and 8) are output in one shooting, the image that must be managed in the digital camera. The number of data increases. That is, twice as much image data management is required as compared with the case where only one image data (DCF image data or RAW image data in FIGS. 7 and 8) is output in one shooting.
管理する画像データ数の増加は、デジタルカメラシステムの構築に際し、使用するメモリ量の増加や、動作速度の低下といった問題につながってしまう。特に、これらDCF画像データ及びRAW画像データを通信を伴って出力する場合には、通信回数が一回の撮影において二倍になるため、余分なオーバーヘッド時間を生んでしまう。 An increase in the number of image data to be managed leads to problems such as an increase in the amount of memory used and a decrease in operation speed when a digital camera system is constructed. In particular, when the DCF image data and the RAW image data are output with communication, the number of communication times is doubled in one shooting, resulting in extra overhead time.
ここで図9を参照して、一回の撮影において二つの画像データを出力する場合の通信時間と、一つの画像データを出力する場合の通信時間とを比較して説明する。図9において、901は一回の撮影において二つの画像データを出力する場合を、902は一回の撮影において一つの画像データを出力する場合を、それぞれ示している。
Here, with reference to FIG. 9, a description will be given by comparing the communication time when two image data are output in one shooting and the communication time when one image data is output. In FIG. 9,
901の場合、撮影が行われて画像データが生成されると、t0のタイミングで該画像データを送信するための通信が開始される。通信先としては、例えばパーソナルコンピュータなどの外部装置が考えられる。この通信を行うためには、通信先との通信準備が必要となるため、実際の画像データの送信時間とは別に、通信開始オーバヘッド時間(903)が発生する。通信準備が完了し、t1のタイミングで、実際にDCF画像データを送信することとなるが、送信に要するt1からt2までの時間を、ここではDCF画像データ通信時間(905)とする。 In the case of 901, when shooting is performed and image data is generated, communication for transmitting the image data is started at the timing t0. As a communication destination, for example, an external device such as a personal computer can be considered. In order to perform this communication, it is necessary to prepare for communication with the communication destination, so that a communication start overhead time (903) is generated in addition to the actual image data transmission time. The preparation for communication is completed, and the DCF image data is actually transmitted at the timing t1, and the time from t1 to t2 required for transmission is defined as a DCF image data communication time (905) here.
901では、DCF画像データを先に送信するものとしたが、画像データの送信順序は、必ずしもDCF画像データが先である必要はなく、RAW画像データを先に送信してもかまわない。 In step S901, the DCF image data is transmitted first. However, the DCF image data does not necessarily have to be transmitted first, and the RAW image data may be transmitted first.
次に、DCF画像データの送信が完了したt2のタイミングで、通信先との通信終了準備が必要となるため、DCF画像データ通信時間(905)とは別に通信終了オーバヘッド時間(904)が発生する。そして、通信終了準備が完了するt3のタイミングでDCF画像データ通信が終了する。 Next, preparation for the end of communication with the communication destination is required at the timing t2 when the transmission of the DCF image data is completed, and therefore a communication end overhead time (904) occurs in addition to the DCF image data communication time (905). . Then, the DCF image data communication is completed at a timing t3 when preparation for communication completion is completed.
DCF画像データ通信が終了すると、RAW画像データを送信するための通信を開始するべく、タイミングt3において通信先との通信準備が開始される。これにより、実際のRAW画像データの送信時間とは別に、通信開始オーバヘッド時間(903)が再度発生することとなる。通信準備が完了し、t4のタイミングで、実際にRAW画像データを送信することとなるが、送信に要するt4からt5までの時間を、ここではRAW画像データ通信時間(906)とする。 When the DCF image data communication ends, preparation for communication with the communication destination is started at timing t3 in order to start communication for transmitting RAW image data. Thereby, apart from the actual transmission time of the RAW image data, the communication start overhead time (903) occurs again. RAW image data is actually transmitted at the timing of t4 when communication preparation is completed. Here, the time from t4 to t5 required for transmission is defined as a RAW image data communication time (906).
次に、RAW画像データの送信が完了したt5のタイミングで、通信先との通信終了準備が必要となるため、RAW画像データ通信時間(906)とは別に、通信終了オーバヘッド時間(904)が発生する。そして、通信終了準備が完了するt6のタイミングでRAW画像データ通信が終了する。 Next, at the timing t5 when the transmission of the RAW image data is completed, it is necessary to prepare for the end of communication with the communication destination. Therefore, a communication end overhead time (904) occurs in addition to the RAW image data communication time (906). To do. Then, the RAW image data communication is completed at the timing t6 when the preparation for completion of communication is completed.
901の場合、以上の一連の処理が終了した時点で、一回の撮影において二つの画像データを出力する場合の通信が完了する。 In the case of 901, when the above series of processing ends, communication in the case of outputting two image data in one shooting is completed.
これに対し、902の場合、撮影が行われて画像データが生成されると、t′0のタイミングで該画像データを送信するための通信が開始される。通信先としては、901の場合と同様に、例えばパーソナルコンピュータなどの外部装置が考えられる。この通信を行うためには、通信先との通信準備が必要となるため、実際の画像データを送信時間とは別に、通信開始オーバヘッド時間(903)が発生する。通信準備が完了し、t′1のタイミングで実際にDCF画像データ+RAW画像データを送信することとなるが、送信に要するt1’からt2’までの時間を、ここではDCF画像データ+RAW画像データ通信時間(907)と定義する。 On the other hand, in the case of 902, when shooting is performed and image data is generated, communication for transmitting the image data is started at timing t′0. As the communication destination, an external device such as a personal computer is conceivable as in the case of 901. In order to perform this communication, it is necessary to prepare for communication with the communication destination, so that a communication start overhead time (903) is generated separately from the actual image data transmission time. The communication preparation is completed and the DCF image data + RAW image data is actually transmitted at the timing of t′1, but the time from t1 ′ to t2 ′ required for transmission is the DCF image data + RAW image data communication here. It is defined as time (907).
次に、DCF画像データ+RAW画像データの送信が完了したt′2のタイミングで、通信先との通信終了準備が必要となるため、DCF画像データ+RAW画像データ通信時間(907)とは別に、通信終了オーバヘッド時間(904)が発生する。そして、通信終了準備が完了するt′3のタイミングで、DCF画像データ+RAW画像データ通信が終了する。 Next, since it is necessary to prepare for the end of communication with the communication destination at the timing t′2 when transmission of the DCF image data + RAW image data is completed, communication is performed separately from the DCF image data + RAW image data communication time (907). An end overhead time (904) occurs. Then, the DCF image data + RAW image data communication ends at the timing t′3 when the preparation for completion of communication is completed.
901と902の通信時間の比較をすると、通信回数の増加が余分なオーバヘッド時間(908)を生み出し、通信速度の低下原因になることがわかる。つまり、管理する画像データの数が増えることはデジタルカメラシステムを構築することにおいて、動作速度の低下といった問題につながるといえる。
Comparing the
一方、図8に示すようなRAW画像データ内にJPEG画像を埋め込む場合、デジタルカメラが管理する画像データの数は増えないので、上述のような速度への影響は発生しない。しかし、前述のように送信されるRAW画像データは汎用のデータ構造を採らないため、汎用のアプリケーションで再生や編集ができないことには変わりない。よって、折角JPEG画像を埋め込んでもそれを再生できない状況が発生するという問題は同様である。 On the other hand, when a JPEG image is embedded in RAW image data as shown in FIG. 8, the number of image data managed by the digital camera does not increase, and thus the above-described influence on the speed does not occur. However, since the RAW image data transmitted as described above does not adopt a general-purpose data structure, it cannot be reproduced or edited by a general-purpose application. Therefore, the problem that a situation occurs in which a corner JPEG image cannot be reproduced even if it is embedded is the same.
さらに、デジタルカメラに比べて画像管理するためのメモリ量が多く、処理速度も速い外部装置、特にパーソナルコンピュータ内で、撮影後の画像データをDCF画像データとRAW画像データに分割して管理を行いたいという場合を考える。この場合、RAW画像データからJPEG画像、サムネイル画像を切り出し、RAWヘッダ部の情報をもとに撮影情報を含んだヘッダを新規作成した上で、切り出したJPEG画像、サムネイル画像に付加してDCF画像データを作成することになる。これは非常に煩雑な処理であり、DCF画像データ、RAW画像データの分割処理が容易に行えないという問題につながってしまう。
そこで本発明は、複数の圧縮方式のデータ出力時の画像データ管理方法の簡便化による動作速度向上と、外部装置においても再生可能な汎用性を両立させることを目的とする。さらに、DCF画像データ、RAW画像データのような複数の圧縮方式の画像データの分割を容易に行うことができる画像データを提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to achieve both improvement in operation speed by simplifying an image data management method at the time of outputting data of a plurality of compression methods and versatility that can be reproduced by an external device. It is another object of the present invention to provide image data that can easily divide a plurality of compression-type image data such as DCF image data and RAW image data.
上記目的を一部又は全体として解決する本発明は、撮影対象を撮影して得られる第1の画像データを取得する画像取得手段と、前記第1の画像データを第2及び第3の画像データに変換する変換手段と、前記第1乃至第3の画像データを含む第1の画像データファイルを生成するファイル生成手段とを備える画像処理装置であって、前記第1の画像データファイルは、前記第1乃至第3の画像データそれぞれについて、少なくとも各画像データの開始位置を特定するための第1の位置情報と、前記第1の画像データファイル内で次に位置する前記第1乃至第3の画像データのうちのいずれかの画像データの開始位置を特定するための第2の位置情報と、を備えるヘッダ部を備えることを特徴とする。 The present invention that solves the above-mentioned object as a whole or as a whole includes an image acquisition means for acquiring first image data obtained by imaging a subject to be imaged, and second and third image data as the first image data. An image processing apparatus comprising: a conversion unit that converts the first image data file; and a file generation unit that generates a first image data file including the first to third image data. For each of the first to third image data, at least first position information for specifying the start position of each image data, and the first to third positions next in the first image data file. A header portion including second position information for specifying a start position of any one of the image data.
また、上記目的を一部又は全体として達成する本発明は、画像データファイル処理装置であって、上記の第1の画像データファイルを、第2の位置情報に従い複数の第2の画像データファイルに分割する分割手段を備えることを特徴とする。 According to another aspect of the present invention, which achieves the above object in part or as a whole, the image data file processing apparatus converts the first image data file into a plurality of second image data files according to the second position information. Dividing means for dividing is provided.
本発明によれば、複数の圧縮方式のデータ出力時の画像データ管理方法の簡便化による動作速度向上と、外部装置においても再生可能な汎用性を両立させることができる。さらに、DCF画像データ、RAW画像データのような複数の圧縮方式の画像データの分割を容易に行うことができる画像データを提供することができる。 According to the present invention, it is possible to achieve both an improvement in operation speed by simplifying an image data management method when outputting data of a plurality of compression methods and versatility that can be reproduced even in an external device. Furthermore, it is possible to provide image data that can easily divide image data of a plurality of compression methods such as DCF image data and RAW image data.
以下、図面を参照し、本発明に好適な実施形態を説明する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.
[第1の実施形態]
図1において、100は本実施形態における画像処理装置である。画像処理装置100は、デジタルカメラ、デジタルビデオカメラ、カメラ付き携帯端末(カメラ付き携帯電話を含む)のいずれであってもよい。以下では、画像処理装置100がデジタルカメラである場合について説明する。
[First Embodiment]
In FIG. 1,
画像処理装置100内において、10は撮像レンズ、11は絞り、12はシャッター、14は光学像を電気信号に変換する撮像素子、16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。18は撮像素子14、A/D変換器16、表示制御部26にそれぞれクロック信号や制御信号を供給するタイミング発生部であり、メモリ制御部22及びシステム制御部50により制御される。
In the
20は画像処理部であり、A/D変換器16からの画像データ或いはメモリ制御部22からの画像データに対して、画像データに付加されている処理データに基づき、所定の画素補間処理や色変換処理を行う。
また、画像処理部20は、A/D変換器16から出力される画像データを用いて所定の演算処理を行う。システム制御部50は、この演算結果に基づきシャッター制御部34、絞り制御部40及び測距制御部42に対して、TTL(スルー・ザ・レンズ)方式のオートフォーカス(AF)処理、自動露出(AE)処理、ストロボプリ発光(EF)処理を行う。
Further, the
さらに、画像処理部20は、A/D変換器16から出力される画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のオートホワイトバランス(AWB)処理も行っている。
Further, the
22はメモリ制御部であり、A/D変換器16、タイミング発生部18、画像処理部20、画像表示メモリ24、表示制御部26、メモリ30、圧縮伸長部32を制御する。A/D変換器16から出力される画像データは、画像処理部20、メモリ制御部22を介して、或いはメモリ制御部22のみを介して、画像表示メモリ24或いはメモリ30に書き込まれる。
A
24は画像表示メモリ、26は表示制御部、28はTFT LCD(Liquid Crystal Display)等を有する画像表示部である。画像表示メモリ24に書き込まれた表示用の画像データは画像表示部26を介して画像表示部28に表示される。
画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダ機能を実現することが可能である。なお、画像表示部28は、システム制御部50の指示により表示のON又はOFFが可能である。画像表示部28の表示をOFFにした場合、画像処理装置100の電力消費を大幅に低減することができる。また、画像表示部28は、合焦、手振れ、シャッタースピード、絞り値、露出補正等に関する情報をシステム制御部50からの指示に従って表示する。
If the image data captured using the
30は撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに充分な記憶容量を備えている。これにより、複数枚の静止画像を連続して撮影する連写やパノラマ撮影の場合にも、高速かつ大量の画像をメモリ30に書き込むことができる。また、メモリ30はシステム制御部50の作業領域としても使用することが可能である。更に、後述する記録媒体から画像データをメモリ30に読み出し、画像処理部20やメモリ制御部22を介して画像表示メモリ24に画像データを書き込む処理をし、表示制御部26により画像表示部28に表示する場合にも使用される。
ここで、メモリ30の構成の概略は図12に示すようになる。図12において、メモリ30は、撮影した静止画像や動画像を一時的に格納し、特にサムネイル画像やJPEG画像をキャッシュするための画像記憶バッファ領域1201、及び、システム制御部50の作業領域としてのワークエリア1202で構成される。
Here, the outline of the configuration of the
32は圧縮伸長部であり、メモリ30から読み出した画像データを所定の画像圧縮方法(例えば、適応離散コサイン変換(ADCT)等)に従って、例えばJPEGデータに画像圧縮し、画像圧縮された画像データをメモリ30に書き込む機能を有する。また、メモリ30から読み出した画像データを伸長し、伸長した画像データをメモリ30に書き込む機能も併せて有する。
A compression /
34はシャッター12を制御するシャッター制御部、40は絞り11を制御する絞り制御部である。
42は撮像レンズ10のフォーカシングを制御する測距制御部、46はストロボ、48はストロボ46の発光を制御するストロボ制御部である。
50は画像処理装置100全体を制御するシステム制御部である。52はシステム制御部50の動作用の定数、変数、プログラム等を記憶するROMなどのメモリである。メモリ52には、撮像処理を行うプログラム、画像処理を行うプログラム、作成した画像ファイルデータを記録媒体に記録するプログラム、画像ファイルデータを記録媒体から読み出すプログラムが記録される。また、後述する図3乃至5のフローで示した各種プログラムや、上記プログラムのマルチタスク構成を実現し実行するOSなどの各種プログラムなども記録されている。
A
各プログラムにはメッセージキューが作成され、メッセージキューにメッセージがFIFO的に積まれ、各プログラム間でメッセージのやり取りを行うことで各プログラムが連携して制御され、上記各機能の制御が行われている。 A message queue is created in each program, and messages are stacked in the message queue in a FIFO manner. Each program is controlled in cooperation by exchanging messages between the programs, and the above functions are controlled. Yes.
60、62、64、66、67,68,69は、システム制御部50の各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。
ここで、これらの操作手段の具体的な説明を行う。60は、各機能モードを切り替え設定するためのモードダイアルスイッチである。この昨日モードには、電源ON/OFF、再生モード、自動撮影モード、プログラム撮影モード、シャッター速度優先撮影モード、絞り優先撮影モード、マニュアル撮影モード、ポートレート撮影モード、風景撮影モードが含まれる。また、接写撮影モード、スポーツ撮影モード、夜景撮影モード、再生モード、マルチ画面再生・消去モード、編集モード、ファイル読み取り専用属性変更モード、PC接続モード等も含まれる。
Here, a specific description of these operating means will be given.
62はレリーズスイッチSW1で、不図示のレリーズボタンの操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(ストロボプリ発光)処理等の動作開始を指示する。
64はレリーズスイッチSW2で、不図示のレリーズボタンの操作完了でONとなり、一連の処理の動作開始を指示する。該処理には、撮像素子14から読み出した信号をA/D変換器16、メモリ制御部22を介してメモリ30に画像データを書き込む露光処理が含まれる。また、画像処理部20やメモリ制御部22での演算を用いた現像処理、及び、メモリ30から画像データを読み出し、圧縮伸長部32で画像圧縮を行い、記録媒体101に画像データを書き込む記録処理も含まれる。
66は、メニュー操作スイッチであり、不図示のメニューキー、セットキー、十字キー等の組み合わせで構成され、カメラの撮影条件や現像条件などの各種設定の変更や画像ファイルの表示操作を、画像表示部28を見ながら行うことができる。なお、このメニュー操作スイッチ66により、撮影者は撮影に先だって、RAW画像データの出力を行うか否かの設定を予め行うことができる。
67は、編集操作スイッチであり、不図示の編集キー、セットキー、十字キーなどの組み合わせで構成され、画像データファイルの編集を画像表示部28を見ながらおこなうことができる。
68は、消去操作スイッチであり、不図示の消去キー、十字キーなどの組み合わせで構成され、画像データファイルの消去を画像表示部28を見ながら行うことができる。
69は、読み取り専用属性変更操作スイッチであり、不図示のセットキー、十字キーなどの組み合わせで構成され、画像データファイルの読み取り専用属性を画像表示部28を見ながら行うことができる。
80は電源制御部で、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成される。そして、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御部50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部へ供給する。
A power control unit 80 includes a battery detection circuit, a DC-DC converter, a switch circuit that switches a block to be energized, and the like. Then, the presence / absence of a battery, the type of battery, the remaining battery level are detected, the DC-DC converter is controlled based on the detection result and the instruction of the
90はメモリカードやハードディスク等の記録媒体との入出力インタフェース、92はメモリカードやハードディスク等の記録媒体と接続を行うコネクタである。
なお、本実施の形態では記録媒体を取り付けるインタフェース及びコネクタを1系統持つものとして説明している。勿論、記録媒体を取り付けるインタフェース及びコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインタフェース及びコネクタを組み合わせて備える構成としてもよい。 In the present embodiment, it is assumed that there is one interface and connector for attaching a recording medium. Of course, the interface and the connector for attaching the recording medium may have a single or a plurality of systems and any number of systems. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard.
インタフェース及びコネクタとしては、PCMCIAカードやコンパクトフラッシュ(登録商標)カード等の規格に準拠したものを用いて構成することが可能である。
インタフェース90及びコネクタ92をPCMCIAカードやCFカード等の規格に準拠したもので構成した場合、各種通信カードを接続して、他のコンピュータやプリンタ等の周辺機器との間で画像データや付属の管理情報を相互に転送可能となる。各種通信カードには、例えば、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等が含まれる。
The interface and connector can be configured using a PCMCIA card, a compact flash (registered trademark) card, or the like that conforms to a standard.
When the
101はメモリカードやハードディスク等の記録媒体である。記録媒体101は、半導体メモリや磁気ディスク等から構成される記録部202と、画像処理装置100とのインタフェース104と、画像処理装置100と接続を行うコネクタ106とを備えている。
次に、本発明の実施形態に対応する画像データの構造について図2を参照して説明する。図2は、本実施形態に対応する画像処理装置100により生成される画像データのファイル構造の一例を示す図である。より詳細には、画像処理装置100においてRAW画像データを含むDCF画像データファイルを生成する設定がなされた場合に、撮像処理により生成されたメモリ30内の画像データを記録媒体101に記録する際のデータ構造の一例を示す。
Next, the structure of image data corresponding to the embodiment of the present invention will be described with reference to FIG. FIG. 2 is a diagram illustrating an example of a file structure of image data generated by the
本実施形態では、画像データファイル200はデジタルカメラにおいて汎用的に使用されているDCF画像データファイルの形式とする。よって、画像データファイル200は、大きくDCF画像データ部210、RAW画像データ部220、RAWサムネイル画像データ部230及びJPEGデータ最後を示すマーカ(EOIマーカ)240の各領域からなる。
In the present embodiment, the image data file 200 has a DCF image data file format that is generally used in digital cameras. Accordingly, the image data file 200 is mainly composed of areas of a DCF
以下、DCF画像データ部210の構成について説明する。このDCF画像データ部210は、本実施形態におけるデジタルカメラにおいて、画像確認等のために表示を行う際に使用可能な画像データが格納される領域である。また、一般の多くのアプリケーションで扱うことが可能なJPEG画像が内包されているため、汎用アプリケーションでも表示が可能な画像データとして利用することができる。
Hereinafter, the configuration of the DCF
このDCF画像データ部210は、DCFヘッダ部211、サムネイル画像部212、JPEG画像部213で構成されている。DCFヘッダ部211は、DCFヘッダ情報を格納する領域であって、予め所定のデータサイズが与えられている。DCFヘッダ情報には、JPEG画像部213に格納される画像データに関連する撮影情報やパラメータなどのメタデータA(214)が含まれる。また、サムネイル画像までのオフセット値B(215)、JPEG画像までのオフセット値C(216)及び次の画像データまでのオフセット値D(217)も含まれる。
The DCF
なお、オフセット値D(217)は、図2の場合、後述するRAW画像データ部(220)の開始位置(218)を示す。即ち、このオフセット値B、C及びDにより各画像データや次の画像データの開始位置、即ち各データやヘッダ部の区切りが特定されることになる。 In the case of FIG. 2, the offset value D (217) indicates a start position (218) of a RAW image data portion (220) described later. That is, the offset values B, C, and D specify the start position of each image data or the next image data, that is, the delimiter between each data or header part.
サムネイル画像部212は、画像表示部28に複数枚(インデックス)表示を行う際などに利用するために、JPEG画像部213に格納されているJPEG画像などを間引いてリサイズしたサムネイル画像が格納される領域である。JPEG画像部213は、RAW画像を画像処理部20で処理した後、圧縮して得られたJPEG画像が格納される領域である。
The
次に、RAW画像データ部220の構成について説明する。このRAW画像データ部220は、本実施形態におけるデジタルカメラで画像確認等のために表示を行う際には使用されない画像データが格納される領域である。RAW画像データ部220は、むしろ、パーソナルコンピュータ等の外部装置によって画像の再現(現像)処理を行うことにより、高品質のプリントやユーザの目的に合致したより高度な画像編集を実現する際に利用される。
Next, the configuration of the RAW
RAW画像データ部220は、RAWヘッダ部221、サムネイル画像部222及びRAW画像部223で構成されている。RAWヘッダ部221は、RAWヘッダ情報が格納される領域であって、予め所定のデータサイズが与えられている。RAWヘッダ情報には、RAW画像部223に格納される画像データに関連する撮影情報やパラメータなどのメタデータA′(224)が含まれる。また、サムネイル画像までのオフセット値B′(225)、RAW画像までのオフセット値C′(226)および次の画像データまでのオフセット値D′(227)が含まれる。
The RAW
なお、次の画像データまでのオフセット値D′(227)は、図2の場合、後述するRAWサムネイル画像データ部230の開始位置(228)を示す。即ち、このオフセット値B′、C′およびD′により各画像データや次の画像データの開始位置、即ち各データやヘッダ部の区切りが特定されることになる。
In the case of FIG. 2, the offset value D ′ (227) until the next image data indicates the start position (228) of the RAW thumbnail
サムネイル画像部222は、外部装置の画像表示部に複数枚(インデックス)表示を行う際などに利用するために、JPEG画像部213に格納されているJPEG画像などを間引いてリサイズしたサムネイル画像が格納される領域である。なお、サムネイル画像部222には、サムネイル画像部212に格納されるサムネイル画像と同一画像が格納される。
The
RAW画像部223は、撮像素子14から読み出された現像、圧縮前の容量の大きい画像データであるRAW画像が格納される領域である。
The
次にRAWサムネイル画像データ部230について説明する。本実施形態におけるデジタルカメラで画像確認等のために表示を行う際には使用されない画像データが格納される領域である。RAWサムネイル画像データ部230は、外部装置においてRAW画像データ部220につき画像の再現(現像)処理を行う前に、再現(現像)処理後のイメージを効率的に表示するために、RAW画像を間引いてリサイズした画像データである。また、データ量が少なく、再現(現像)処理を早く終えることができるので、再現(現像)プレビュー画像表示を行うために利用される。
Next, the RAW thumbnail
RAWサムネイル画像データ部230は、RAWサムネイルヘッダ部231、サムネイル画像部232、及び、RAWサムネイル画像部233で構成される。RAWサムネイルヘッダ部231は、RAWサムネイルヘッダ情報を格納する領域であって、予め所定のデータサイズが与えられている。RAWサムネイルヘッダ情報には、RAWサムネイル画像部233に格納される画像データに関連する撮影情報やパラメータなどのメタデータA″(234)が含まれる。また、サムネイル画像までのオフセット値B″(235)、RAWサムネイル画像までのオフセット値C″(236)および次の画像データまでのオフセット値D″(237)が含まれる。
The RAW thumbnail
なお、次の画像データまでのオフセット値D″(237)は、図2では次の画像がないので、画像がないことを示すオフセット値、例えば"0"といった値になる。このオフセット値B″、C″およびD″により各画像データや次の画像データの開始位置、即ち各データやヘッダ部の区切りが特定されることになる。 The offset value D ″ (237) up to the next image data is an offset value indicating that there is no image, for example, “0”, for example, since there is no next image in FIG. 2. This offset value B ″. , C ″ and D ″ specify the start position of each image data or the next image data, that is, the delimiter of each data or header part.
サムネイル画像部232は、外部装置の画像表示部に複数枚(インデックス)表示を行う際などに利用するために、JPEG画像部213に格納されているJPEG画像などを間引いてリサイズしたサムネイル画像が格納される領域である。なお、サムネイル画像部232には、サムネイル画像部212や222に格納されるサムネイル画像と同一画像が格納される。また、RAWサムネイル画像部233は、圧縮前の容量の大きい画像データであるRAW画像を間引いてリサイズしたRAWサムネイル画像が格納される領域である。
The
なお、RAWサムネイル画像データ部230の後には、JPEGデータの最後を示すマーカ(EOIマーカ)240があるため、DCF規格としての正当性が保たれることになる。
In addition, since there is a marker (EOI marker) 240 indicating the end of the JPEG data after the RAW thumbnail
このような画像データファイル構造にすることで、一回の撮影においてDCF画像データ及びRAW画像データを個別に出力する必要がなくなるので、デジタルカメラ内で管理すべき画像データ数を削減できる。管理すべき画像データ数が削減されることで、デジタルカメラにおいて、使用するメモリ量を削減し、動作速度を向上させることも可能となる。また、図2に示す本実施形態に対応する画像データファイル200のデータ構造は、DCF規格としての正当性を保持した汎用のデータ構造なので、一般的なアプリケーションでの再生や編集も可能である。 By adopting such an image data file structure, there is no need to individually output DCF image data and RAW image data in one shooting, so that the number of image data to be managed in the digital camera can be reduced. By reducing the number of image data to be managed, it is possible to reduce the amount of memory used in the digital camera and improve the operation speed. In addition, the data structure of the image data file 200 corresponding to the present embodiment shown in FIG. 2 is a general-purpose data structure that retains the validity as the DCF standard, and therefore can be reproduced and edited by a general application.
次に、図3を参照して、本実施形態における画像データファイルの記録動作について説明する。図3は、撮影から記録媒体101への画像データファイル記録までの一連のシーケンスの一例を説明するフローチャートである。この処理は、メモリ52に格納された図3に示すフローチャートに対応するプログラムを、主としてシステム制御部50が実行することにより実現される。なお、図3の一部の処理を記載する後述の図4及び図5の処理も同様である。ここでは、撮影の前に予め撮影者が、自分の好みの画像処理を行うのに必要なRAW画像データの出力をメニュー操作スイッチ66の操作にて設定してある場合と、設定していない場合の双方の処理について説明する。
Next, an image data file recording operation according to the present embodiment will be described with reference to FIG. FIG. 3 is a flowchart for explaining an example of a series of sequences from shooting to image data file recording on the
まず、ステップS301では、先に図1の説明で述べたように、不図示のレリーズスイッチを構成するSW1(62)、SW2(64)の操作に応答し、AF処理、AE処理、露光処理までの一連の撮影処理が行われる。次に、ステップS302では、RAW画像データを出力する設定がなされているか否かの判定が行われる。RAW画像データを出力する設定がなされていると判定された場合(ステップS302において「YES」)は、ステップS303に分岐して処理が行われる。一方、RAW画像データを出力しない設定がなされていると判定された場合(ステップS302において「NO」)は、ステップS304に分岐して処理が行われる。 First, in step S301, as described above with reference to FIG. 1, in response to the operation of SW1 (62) and SW2 (64) constituting a release switch (not shown), AF processing, AE processing, and exposure processing are performed. A series of shooting processes are performed. Next, in step S302, it is determined whether or not the setting for outputting RAW image data has been made. If it is determined that the setting for outputting RAW image data has been made ("YES" in step S302), the process branches to step S303 and processing is performed. On the other hand, when it is determined that the setting for not outputting the RAW image data is made (“NO” in step S302), the process branches to step S304 and the process is performed.
まず、ステップS303では、RAW画像データを含むDCF画像データファイルである画像データファイル200の生成処理が行われ、生成された画像データファイル200はメモリ30に一時保存される。ステップS303におけるRAW画像データを含むDCF画像データファイル生成処理の詳細については、図4を参照して後述する。
First, in step S <b> 303, an image data file 200 that is a DCF image data file including RAW image data is generated, and the generated image data file 200 is temporarily stored in the
また、ステップS304では、RAW画像データを含まないDCF画像データファイルである画像データファイル200の生成処理が行われ、生成された画像データファイル200はメモリ30に一時保存される。ステップS304におけるRAW画像データを含まないDCF画像データファイル生成処理の詳細については、図5を参照して後述する。
In step S <b> 304, generation processing of the image data file 200 that is a DCF image data file that does not include RAW image data is performed, and the generated image data file 200 is temporarily stored in the
ステップS305では、ステップS303又はステップS304において生成され、メモリ30に一時保存された画像データファイル200を、記録媒体101へ書き込む処理を行う。
In step S305, the image data file 200 generated in step S303 or step S304 and temporarily stored in the
次に、図3のステップS303に対応するDCF画像データファイル生成処理について、図4を参照して説明する。図4は、本実施形態に対応するRAW画像データを含むDCF画像データファイルである画像データファイル200を生成する生成処理の一例に対応するフローチャートである。 Next, the DCF image data file generation process corresponding to step S303 in FIG. 3 will be described with reference to FIG. FIG. 4 is a flowchart corresponding to an example of generation processing for generating an image data file 200 that is a DCF image data file including RAW image data corresponding to the present embodiment.
まず、ステップS401において、システム制御部50は、メモリ制御部22を介してメモリ30のワークエリア1202にDCFヘッダ部211、RAWヘッダ部221、及び、RAWサムネイルヘッダ部231を確保する。
First, in step S <b> 401, the
次に、ステップS402において、システム制御部50は、メモリ30の画像記憶バッファ領域1201に撮影したRAW画像を書き込む撮影処理を実行する。この処理は、A/D変換器16、画像処理部20、メモリ制御部22を介して、或いはA/D変換器16から直接メモリ制御部22を介して行われる。
Next, in step S <b> 402, the
システム制御部50は更に、メモリ制御部22と、必要に応じて画像処理部20とを用いて、メモリ30の画像記憶バッファ領域1201内のRAW画像を読み出す。そして、メモリ30の画像記憶バッファ領域1201内のRAW画像を間引いてリサイズしたRAWサムネイル画像の生成処理を行い、メモリ30の画像記憶バッファ領域1201の空き領域に転送する。また、現像処理を行うために必要なWB(ホワイトバランス)積分演算処理、OB(オプティカルブラック)積分演算処理を行い、演算結果をシステム制御部50の内部メモリ或いはメモリ52に記憶する。
The
ステップS403においてシステム制御部50は、メモリ制御部22と、必要に応じて画像処理部20とを用いて、メモリ30の画像記憶バッファ領域1201内のRAW画像を読み出す。そして、システム制御部50の内部メモリ或いはメモリ52に記憶した演算結果を用いて、AWB(オートホワイトバランス)処理、ガンマ変換処理、色変換処理、を含む各種現像処理を行う。
In step S <b> 403, the
ステップS403ではさらに、ダーク取り込み処理において取り込んだダーク画像データを用いて減算処理を行うことにより、撮像素子14の暗電流ノイズ等を打ち消すダーク補正演算処理も併せて行う。
In step S403, dark correction calculation processing for canceling dark current noise and the like of the
システム制御部50は更に、ステップS404において、メモリ30の画像記憶バッファ領域1201内のRAW画像を処理した結果を読み出し、設定されたモードに応じた画像圧縮処理を圧縮・伸長部32により行う。続くステップS405において、メモリ30の画像記憶バッファ領域1201の空き領域に、撮影して一連の処理を終えたJPEG画像とサムネイル画像とを転送する。
In step S404, the
以上により、メモリ30内には、DCFヘッダ、サムネイル画像、JPEG画像、RAWヘッダ、RAW画像、RAWサムネイルヘッダ、RAWサムネイル画像が格納されることとなる。そこで、ステップS406においてシステム制御部50は、これらのデータから、画像記憶バッファ領域1201内に画像データファイル200を作成する。このとき、画像データファイル200のRAWサムネイル画像部233の後には、JPEGデータの最後を示すマーカ(EOIマーカ)240が格納される。
As described above, the DCF header, thumbnail image, JPEG image, RAW header, RAW image, RAW thumbnail header, and RAW thumbnail image are stored in the
さらに、DCFヘッダ部211には、撮影情報、パラメータなどのメタデータA(214)にシャッタースピードや露出時間などの撮影情報などからメタデータが作成、設定される。また、データサイズに基づいてサムネイル画像までのオフセット値B(215)、JPEG画像までのオフセット値C(216)、及び次の画像データ(この場合は、RAW画像データ部220までの)オフセット値D(217)も設定される。
Further, in the
以上のようにして、DCFヘッダ部211のヘッダ情報が生成される。これにより、DCFヘッダ部211内にはRAW画像データの存在の有無及び場所を示す情報(オフセット値D(217))が格納されることとなる。例えば、もしオフセット値D(217)が"0"であれば、RAW画像データは画像データファイル200には格納されていないこととなる。しかし、この場合にはオフセット値D(217)に所定のオフセット値が与えられるので、RAW画像データが画像データファイル200内に格納されており、かつ、その格納場所をオフセット値D(217)を利用して特定できる。
As described above, header information of the
なお、RAW画像データが画像データファイル200内に含まれていないことを示す場合、オフセット値に"0"を設定するだけでなく、そのような状態を示すための所定値を設定しても良い。また、DCFヘッダ部211内からオフセット217自体を消去することで、RAW画像データが画像データファイル200内に含まれていないことを示すこともできる。
When indicating that RAW image data is not included in the
DCFヘッダ部と同様に、RAWヘッダ部221には、撮影情報、パラメータなどのメタデータA′(224)にシャッタースピードや露出時間などの撮影情報などからメタデータが設定される。また、サムネイル画像までのオフセット値B′(225)、JPEG画像までのオフセット値C′(226)、及び次の画像データ(ここでは、RAWサムネイル画像データ部230までの)オフセット値D′(227)がそれぞれ設定される。以上のように、RAWヘッダ部221のヘッダ情報が生成される。
Similar to the DCF header portion, metadata is set in the
これによりRAWヘッダ部221内にはRAWサムネイル画像データの存在の有無及び場所を示す情報(オフセット値D’(227))が格納されることとなる。例えば、もしオフセット値D′(227)が"0"であれば、RAWサムネイル画像データは画像データファイル200には格納されていないこととなる。しかし、この場合にはオフセット値D′に所定のオフセット値が与えられるので、RAWサムネイル画像データが、画像データファイル200内に格納されており、かつ、その格納場所をオフセット値D′を利用して特定できる。なお、RAWサムネイル画像データは画像データファイル200には格納されていないことを示す際の、オフセットD’(227)のバリエーションは、オフセットD(217)と同様である。
As a result, information (offset value D ′ (227)) indicating the presence / absence and location of RAW thumbnail image data is stored in the
DCFヘッダ部、RAWヘッダ部と同様に、RAWサムネイルヘッダ部231には、撮影情報、パラメータなどのメタデータA″(234)にシャッタースピードや露出時間などの撮影情報などからメタデータが作成、設定される。また、各データサイズに基づいてサムネイル画像までのオフセットB″(235)、JPEG画像までのオフセットC″(236)、及び次の画像データまでのオフセットD″(237)が設定される。なお、オフセット値D″(237)には、”0”或いは、次の画像データが存在しないことを示す所定値等が設定される。以上のように、RAWサムネイルヘッダ部231のヘッダ情報が生成される。
Similar to the DCF header part and the RAW header part, the RAW
次に、図3のステップS304に対応するDCFファイル生成処理について、図5を参照して説明する。図5は、本実施形態に対応するRAW画像データを含まないDCF画像データファイルである画像データファイル200を生成する生成処理の一例を示すフローチャートである。 Next, the DCF file generation process corresponding to step S304 in FIG. 3 will be described with reference to FIG. FIG. 5 is a flowchart illustrating an example of a generation process for generating an image data file 200 that is a DCF image data file not including RAW image data corresponding to the present embodiment.
まず、ステップS501では、画像処理及び圧縮方式の設定に伴い、撮影処理によって得られた出力データからサムネイル画像とJPEG画像が生成され、メモリ30に一時保存される。
First, in step S <b> 501, a thumbnail image and a JPEG image are generated from the output data obtained by the shooting process according to the settings of the image processing and the compression method, and are temporarily stored in the
ここでの処理は、図4におけるステップS401からS405と同様であるが、RAWヘッダ部221、RAWサムネイルヘッダ部231の作成を省くことで、無駄なワークエリア1202を使用しないで済むことは明らかである。また、RAW画像データを間引いてリサイズすることにより、RAWサムネイル画像データを生成する処理を省略することで、無駄にワークエリアを使用しないで済むことは明らかである。
The processing here is the same as steps S401 to S405 in FIG. 4, but it is clear that
ステップS502では、DCFヘッダ部211の、撮影情報、パラメータなどのメタデータA(214)にシャッタースピードや露出時間などの撮影情報などからメタデータが作成、設定される。さらに各データサイズに基づいてサムネイル画像までのオフセット値B(215)、JPEG画像までのオフセット値C(216)、及び次の画像データオフセット値D(217)を設定する。
In step S502, metadata is created and set from the shooting information such as shutter speed and exposure time in the metadata A (214) such as shooting information and parameters in the
なお、ここではRAW画像データ及びRAWサムネイル画像データは画像データファイル200に含まれない。従って、RAWヘッダ情報及びRAWサムネイルヘッダ情報は生成されず、また、オフセット値D(217)は"0"或いは、RAW画像データが画像データファイル200内に含まれていないことを示す所定値に設定される。また、RAW画像データが画像データファイル200に含まれない場合には、オフセット217自体を生成しないように制御しても良い。
Here, the RAW image data and the RAW thumbnail image data are not included in the
次に、ステップS503では、生成されたDCFヘッダ部211、サムネイル画像部212及びJPEG画像部213の各領域から、RAW画像データを含まない画像データファイル200が生成される。
Next, in step S503, an image data file 200 that does not include RAW image data is generated from the generated
以上の本実施形態では、画像データファイル200を記録媒体101に記録する場合について説明したが、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属する管理情報を転送し合う場合も同様である。
In the above embodiment, the case where the image data file 200 is recorded on the
特に転送し合う場合には、このような画像データファイル構造にすることで、一回の撮影においてDCF画像データ及びRAW画像データを個別に出力する必要がなくなるので、転送する画像データ数を削減ができる。これにより、図9の901に示すような転送に伴うオーバヘッド時間908を削減することができる。その一方で、図3乃至図5の処理で生成される画像データファイル200のデータ構造は、DCF規格としての正当性を保持した汎用のデータ構造なので、一般的なアプリケーションでの再生や編集も可能である。
Particularly in the case of transferring each other, by using such an image data file structure, it is not necessary to individually output DCF image data and RAW image data in one shooting, so that the number of image data to be transferred can be reduced. it can. As a result,
次に本実施形態に対応する画像データファイル200を分割する際の処理について説明する。 Next, processing when the image data file 200 corresponding to the present embodiment is divided will be described.
前述したように、撮影後に外部機器においてDCF画像データとRAW画像データとで別々に管理を行おうとする場合には、画像データファイル200の分割を行わなければならない。なお、このような画像データファイル処理装置としての外部装置には、デジタルカメラシステム比べて画像管理するためのメモリ量が多く処理速度も速い外部機器、特にパーソナルコンピュータが該当する。 As described above, when separately managing DCF image data and RAW image data in an external device after shooting, the image data file 200 must be divided. An external device as such an image data file processing device corresponds to an external device, particularly a personal computer, which has a larger memory capacity for image management and a higher processing speed than a digital camera system.
以下、図10を参照して、パーソナルコンピュータ等の外部装置において、本実施形態に対応する画像データファイル200を分割する際の処理の一例を説明する。このような処理は、外部機器の内部記憶装置に格納された図10のフローチャートに対応するプログラムが、RAMに読み出され、演算装置としてのCPUにより実行されることで、外部装置において実現されるものである。 Hereinafter, an example of processing when the image data file 200 corresponding to the present embodiment is divided in an external apparatus such as a personal computer will be described with reference to FIG. Such processing is realized in the external device by reading a program corresponding to the flowchart of FIG. 10 stored in the internal storage device of the external device into the RAM and executing it by the CPU as the arithmetic device. Is.
なお、外部装置のハードウェア構成は、例えば図13に示すようになる。図13において、CPU1301は、RAM(ランダムアクセスメモリ)1302やROM(リードオンリメモリ)1305に格納されたプログラムやデータ等を用いて外部装置1200の制御を行う。RAM1302で、内部記憶装置1307内に格納された、以下に説明する図10及び図11のフローチャートに対応する処理プログラムを読み込むエリアを備えると共に、CPU1301が各種の処理を実行する際に用いるワークエリアも備える。
The hardware configuration of the external device is as shown in FIG. 13, for example. In FIG. 13, the
入力部1303は、外部装置1300のユーザーから入力を受付けるためのユーザーインタフェースであり、キーボードやマウスなどで構成される。404は通信インタフェース(I/F)1304は、インターネット103等に接続するためのインタフェースである。ROM1305は、外部装置1300全体の制御を行うプログラム(例えばブートプログラム等)等を格納する。表示部1306は、RAW画像データやDCF画像データを表示するためのディスプレイであり、CRTや液晶画面により構成される。
The
内部記憶装置1307は、主としてハードディスクで構成され、本実施形態に対応する図10や図11に示す処理を行うためのプログラムや各種アプリケーションデータを格納する。ここに格納されているデータは必要に応じてRAM1302に読み出される。バス1310は上述の各部を繋ぐバスである。
The
図10の説明に戻ると、まずステップS1001では、DCFヘッダ部211に次の画像データまでのオフセット値D(217)が存在するか否かが判断される。もし、存在しない場合には(ステップS1001において「NO」)、画像データファイル200にはRAW画像データがなく分割ができないので、本分割処理を終了する。一方、オフセット値D(217)が存在する場合には(ステップS1001において「YES」)、ステップS1002に移行して、オフセット値D(217)が有効な値か否かが判定される。ここで、“有効な値”とは、前述したような"0"或いは、RAW画像データが画像データファイル200内に含まれていないことを示す所定値、以外の値をいう。
Returning to the description of FIG. 10, first, in step S1001, it is determined whether or not the offset value D (217) up to the next image data exists in the
もし、オフセット値D(217)が有効な値でない場合は(ステップS1002において「NO」)、画像データファイル200にはRAW画像データがないと判断できるので、そのまま本分割処理が終了する。一方、オフセット値D(217)が有効な値である場合には、ステップS1003に移行し、画像データファイル200がオフセット値D(217)に基づいて、図2の矢印218が示す位置にて分割される。このとき、オフセット位置217の基準位置(オフセット値が0の位置)が属する画像データが、DCF画像データとなる。
If the offset value D (217) is not a valid value (“NO” in step S1002), it can be determined that there is no RAW image data in the
次にステップS1004に移行し、ステップS1003における分割により得られたDCF画像データにJPEGデータの最後を示すマーカ(EOIマーカ)が付加される。その後、本処理を終了する。なお、分割により生成されたもう一方の画像データ(RAW画像データには、EOIマーカ240が付与されたままなので、分割によっても適正なデータ構造を維持している。
In step S1004, a marker (EOI marker) indicating the end of the JPEG data is added to the DCF image data obtained by the division in step S1003. Thereafter, this process is terminated. It should be noted that the other image data generated by the division (the RAW image data still has the
このようにして、本実施形態に対応する画像データファイル構造の画像データファイル200は、外部装置1300において容易にDCF画像データとRAW画像データとに分割することができる。更に、分割されたDCF画像データ及びRAW画像データは、撮影情報つまりヘッダ部(211及び221)とサムネイル画像部(212及び222)をそれぞれ含んでいるので、DCF規格としての正当性が保たれることになる。 In this way, the image data file 200 having the image data file structure corresponding to the present embodiment can be easily divided into DCF image data and RAW image data by the external device 1300. Further, since the divided DCF image data and RAW image data include shooting information, that is, header portions (211 and 221) and thumbnail image portions (212 and 222), respectively, the validity as the DCF standard is maintained. It will be.
次に、図10における分割処理により分割されたRAW画像データファイルを、更にRAW画像データとRAWサムネイル画像データとに、分割する場合の処理を図11を参照して説明する。 Next, a process for further dividing the RAW image data file divided by the dividing process in FIG. 10 into RAW image data and RAW thumbnail image data will be described with reference to FIG.
まず、ステップS1101において、RAWヘッダ部221に次の画像データまでのオフセット値D′(227)が存在するか否かが判定される。もし、存在しない場合には(ステップS1101において「NO」)、RAW画像データファイルにはRAWサムネイル画像データが含まれておらず、分割ができないので、本処理が終了される。
First, in step S1101, it is determined whether or not an offset value D ′ (227) up to the next image data exists in the
一方、オフセット値D′(227)が存在する場合は、ステップS1102に移行して、オフセット値D′(227)が有効な値か否かが判定される。ここで、“有効な値”とは図10の場合と同様に、"0"又はRAWサムネイル画像データがRAW画像データファイル内に含まれていないことを示す所定値、以外の値をいう。もし、オフセット値D′(227)が有効な値でない場合には(ステップS1102において「NO」)、RAW画像データファイルにはRAWサムネイル画像データが含まれないと判断できるので、そのまま処理が終了する。一方、オフセット値D′(227)が有効な値である場合には(ステップS1102において「YES」)、ステップS1103に移行する。ステップS1103では、オフセット値D′(227)の位置に基づいて、図2の矢印228が示す位置にてRAW画像データファイルが分割される。このとき、オフセット位置227の基準位置(オフセット値が0の位置)が属する画像データが、RAW画像データとなる。
On the other hand, if the offset value D ′ (227) exists, the process proceeds to step S1102, and it is determined whether the offset value D ′ (227) is a valid value. Here, as in the case of FIG. 10, the “effective value” means a value other than “0” or a predetermined value indicating that RAW thumbnail image data is not included in the RAW image data file. If the offset value D ′ (227) is not a valid value (“NO” in step S1102), it can be determined that RAW thumbnail image data is not included in the RAW image data file, and thus the process ends. . On the other hand, if the offset value D ′ (227) is a valid value (“YES” in step S1102), the process proceeds to step S1103. In step S1103, the RAW image data file is divided at the position indicated by the
次にステップS1104に移行し、ステップS1103における分割により得られたRAW画像データにJPEGデータの最後を示すマーカ(EOIマーカ)が付加される。その後、本処理を終了する。なお、分割により生成されたもう一方の画像データ(RAWサムネイル画像データには、EOIマーカ240が付与されたままなので、分割によっても適正なデータ構造を維持している。
In step S1104, a marker (EOI marker) indicating the end of the JPEG data is added to the RAW image data obtained by the division in step S1103. Thereafter, this process is terminated. It should be noted that the other image data generated by the division (the RAW thumbnail image data is still provided with the
このようにして、本実施形態に対応する画像データファイル構造の画像データファイル200は、外部装置1300において容易に画像データファイルをDCF画像データ、RAW画像データ及びRAWサムネイル画像データに分割することができる。さらに分割されたDCF画像データ、RAW画像データ及びRAWサムネイル画像データは、いずれも撮影情報つまりヘッダ部(211、221及び231)とサムネイル画像部(212、222及び232)を含んでいる。よって、DCF規格としての正当性が保たれることになる。 In this manner, the image data file 200 having the image data file structure corresponding to the present embodiment can be easily divided into DCF image data, RAW image data, and RAW thumbnail image data by the external apparatus 1300. . Further, the divided DCF image data, RAW image data, and RAW thumbnail image data all include shooting information, that is, header portions (211, 221 and 231) and thumbnail image portions (212, 222 and 232). Therefore, the validity as the DCF standard is maintained.
以上のように、本実施形態に対応する発明は、撮影データを複数の圧縮方式によって生成可能な画像処理装置に関するものである。そして、本発明では、JPEGデータに他の圧縮方式の画像を内包させることにより、複数の圧縮方式でのデータ出力時の画像データ管理数の削減と、パーソナルコンピュータ等の外部装置でも再生可能な汎用性を両立させることが可能となる。その一方で、複数の圧縮方式での画像データを容易に分割することも可能となる。 As described above, the invention corresponding to the present embodiment relates to an image processing apparatus capable of generating photographing data by a plurality of compression methods. In the present invention, by including images of other compression methods in JPEG data, the number of image data management at the time of data output by a plurality of compression methods can be reduced, and general-purpose data that can be reproduced by an external device such as a personal computer. It becomes possible to make the sex compatible. On the other hand, it is also possible to easily divide image data by a plurality of compression methods.
更に、本発明によれば、メーカ及びデバイスで異なるRAW画像データの記録においても、パーソナルコンピュータ等の外部装置で再生可能なJPEG画像データとしての正当性を保ったままRAW画像データを付帯して記録できる。また、記録後に、そのJPEG画像データとRAW画像データの分割も容易に行うことができる。 Furthermore, according to the present invention, even when recording RAW image data that differs between manufacturers and devices, the RAW image data is attached and recorded while maintaining the validity as JPEG image data that can be reproduced by an external device such as a personal computer. it can. Further, the JPEG image data and RAW image data can be easily divided after recording.
さらに、JPEG画像データとRAW画像データの両方を出力する場合、一度の撮影により、複数回の画像データ出力がないため、全体の管理データ数が減少することによって、撮影可能枚数の増加、記録・転送時間の減少といった効果がある。 Furthermore, when both JPEG image data and RAW image data are output, since there is no image data output multiple times by one shooting, the total number of management data decreases, thereby increasing the number of shots that can be shot, This has the effect of reducing the transfer time.
[その他の実施形態]
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
[Other Embodiments]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer), and a device (for example, a copying machine and a facsimile device) including a single device. You may apply to.
また、本発明の目的は、前述した機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムに供給し、そのシステムがプログラムコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現し、そのプログラムコードを記憶した記憶媒体は本発明を構成する。また、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した機能が実現される場合も含まれる。 The object of the present invention can also be achieved by supplying a storage medium storing software program codes for realizing the above-described functions to the system, and the system reading and executing the program codes. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. In addition, an operating system (OS) running on a computer performs part or all of actual processing based on an instruction of the program code, and the above-described functions are realized by the processing.
さらに、以下の形態で実現しても構わない。すなわち、記憶媒体から読み出されたプログラムコードを、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込む。そして、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行って、前述した機能が実現される場合も含まれる。 Furthermore, you may implement | achieve with the following forms. That is, the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer. Then, based on the instruction of the program code, the case where the above-described functions are realized by the CPU included in the function expansion card or the function expansion unit performing part or all of the actual processing is also included.
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。 When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the flowcharts described above.
Claims (14)
前記第1の画像データを第2及び第3の画像データに変換する変換手段と、
前記第1乃至第3の画像データを含む第1の画像データファイルを生成するファイル生成手段と
を備え、
前記第1の画像データファイルは、前記第1乃至第3の画像データそれぞれについて、少なくとも各画像データの開始位置を特定するための第1の位置情報と、前記第1の画像データファイル内で次に位置する前記第1乃至第3の画像データのうちのいずれかの画像データの開始位置を特定するための第2の位置情報と、を備えるヘッダ部を備えることを特徴とする画像処理装置。 Image acquisition means for acquiring first image data obtained by imaging the imaging target;
Conversion means for converting the first image data into second and third image data;
File generating means for generating a first image data file including the first to third image data,
The first image data file includes, for each of the first to third image data, at least first position information for specifying a start position of each image data, and next in the first image data file. And a second position information for specifying a start position of any one of the first to third image data located in the image processing apparatus.
前記第1の画像データファイルは更に、前記第1乃至第3の画像データそれぞれについて、同一の相対位置に前記第4の画像データを備え、かつ、前記第1乃至第3の画像データのそれぞれに対応する前記ヘッダ部に、前記第4の画像データの開始位置を特定するための第3の位置情報をそれぞれ備えることを特徴とする請求項1に記載の画像処理装置。 The converting means further converts any of the first to third image data into fourth image data,
The first image data file further includes the fourth image data at the same relative position with respect to each of the first to third image data, and each of the first to third image data. The image processing apparatus according to claim 1, wherein the corresponding header portion includes third position information for specifying a start position of the fourth image data.
前記第1の画像データを第2及び第3の画像データに変換部において変換する変換工程と、
前記第1乃至第3の画像データを含む第1の画像データファイルをファイル生成部において生成するファイル生成工程と
を備え、
前記第1の画像データファイルは、前記第1乃至第3の画像データそれぞれについて、少なくとも各画像データの開始位置を特定するための第1の位置情報と、前記第1の画像データファイル内で次に位置する前記第1乃至第3の画像データのうちのいずれかの画像データの開始位置を特定するための第2の位置情報と、を備えるヘッダ部を備えることを特徴とする画像処理方法。 An image acquisition step of acquiring, in the image acquisition unit, first image data obtained by imaging the imaging target;
A conversion step of converting the first image data into second and third image data in a conversion unit;
A file generation step of generating a first image data file including the first to third image data in a file generation unit;
The first image data file includes, for each of the first to third image data, at least first position information for specifying a start position of each image data, and next in the first image data file. And a second position information for specifying a start position of any one of the first to third image data positioned in the image processing method.
前記第1の画像データファイルは更に、前記第1乃至第3の画像データそれぞれについて、同一の相対位置に前記第4の画像データを備え、かつ、前記第1乃至第3の画像データのそれぞれに対応する前記ヘッダ部に、前記第4の画像データの開始位置を特定するための第3の位置情報をそれぞれ備えることを特徴とする請求項7に記載の画像処理方法。 In the conversion step, any one of the first to third image data is converted into fourth image data by the conversion unit,
The first image data file further includes the fourth image data at the same relative position with respect to each of the first to third image data, and each of the first to third image data. The image processing method according to claim 7, further comprising third position information for specifying a start position of the fourth image data in the corresponding header part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005311806A JP2007124150A (en) | 2005-10-26 | 2005-10-26 | Apparatus and method for image processing, and for processing image data file, computer program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005311806A JP2007124150A (en) | 2005-10-26 | 2005-10-26 | Apparatus and method for image processing, and for processing image data file, computer program, and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007124150A true JP2007124150A (en) | 2007-05-17 |
Family
ID=38147523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005311806A Withdrawn JP2007124150A (en) | 2005-10-26 | 2005-10-26 | Apparatus and method for image processing, and for processing image data file, computer program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007124150A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009147549A (en) * | 2007-12-12 | 2009-07-02 | Samsung Techwin Co Ltd | Moving image recording apparatus, moving image reproducing apparatus and program |
JP2010093458A (en) * | 2008-10-06 | 2010-04-22 | Canon Inc | Image capturing device, and recording method and program in image capturing device |
JP2012095351A (en) * | 2012-01-12 | 2012-05-17 | Olympus Corp | Imaging system |
-
2005
- 2005-10-26 JP JP2005311806A patent/JP2007124150A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009147549A (en) * | 2007-12-12 | 2009-07-02 | Samsung Techwin Co Ltd | Moving image recording apparatus, moving image reproducing apparatus and program |
JP2010093458A (en) * | 2008-10-06 | 2010-04-22 | Canon Inc | Image capturing device, and recording method and program in image capturing device |
JP2012095351A (en) * | 2012-01-12 | 2012-05-17 | Olympus Corp | Imaging system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5351593B2 (en) | File management apparatus and control method thereof | |
US8164653B2 (en) | Image-processing device for recording image data with consecutive-photographing and a controlling method thereof | |
US7868895B2 (en) | Image processing apparatus, image processing method, computer program, and storage medium | |
JP5366584B2 (en) | Imaging apparatus, image processing method, and program | |
JP2006262451A (en) | Image recording apparatus and method | |
JP2008205961A (en) | Image processor, control method thereof, and program | |
US8773541B2 (en) | Image processing apparatus and method | |
JP2006229474A (en) | Imaging apparatus and control method thereof | |
JP2010021921A (en) | Electronic camera and image processing program | |
JP2011077654A (en) | Imaging apparatus, control method thereof and program | |
JP5317547B2 (en) | Image processing apparatus and image processing apparatus control method | |
KR100756155B1 (en) | Image processing apparatus, control method thereof and storage medium | |
JP2007124150A (en) | Apparatus and method for image processing, and for processing image data file, computer program, and recording medium | |
JP4757206B2 (en) | Image processing apparatus, image processing apparatus control method, and computer program | |
JP2006287588A (en) | Image processing apparatus and method, data file structure, computer program, and storage medium | |
JP2006340150A (en) | Image list updating method in digital camera system | |
JP5794657B2 (en) | Imaging control apparatus and imaging control method | |
JP4574426B2 (en) | Data processing apparatus and data processing method | |
JP6501534B2 (en) | Image recording apparatus, image recording method and program | |
JP2007166024A (en) | Imaging apparatus and control method thereof | |
JP2006101459A (en) | Image transfer device and program | |
JP2008077402A (en) | Image processor, its control method, computer program and storage medium | |
JP2007049632A (en) | Digital camera | |
JP2007267000A (en) | Imaging apparatus, and control method of imaging apparatus | |
JP2000115606A (en) | Installation method for expansion program for image pickup device and the image pickup device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20090106 |