[go: up one dir, main page]

JP2008244940A - Digital camera and control method thereof - Google Patents

Digital camera and control method thereof Download PDF

Info

Publication number
JP2008244940A
JP2008244940A JP2007083446A JP2007083446A JP2008244940A JP 2008244940 A JP2008244940 A JP 2008244940A JP 2007083446 A JP2007083446 A JP 2007083446A JP 2007083446 A JP2007083446 A JP 2007083446A JP 2008244940 A JP2008244940 A JP 2008244940A
Authority
JP
Japan
Prior art keywords
data size
image
raw image
compressed raw
average data
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.)
Pending
Application number
JP2007083446A
Other languages
Japanese (ja)
Inventor
Toshihiro Tanizawa
俊宏 谷澤
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2007083446A priority Critical patent/JP2008244940A/en
Publication of JP2008244940A publication Critical patent/JP2008244940A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

【課題】可逆圧縮されたRAW画像の撮影可能枚数の管理を正確に行なう。
【解決手段】空き容量検出部50により、メモリカード10の空き容量を検出する。ファイル検出部51により、メモリカード10に記録されている圧縮RAWファイルのファイル数、及び総ファイルサイズを検出する。平均ファイルサイズ算出部52により、ファイル検出部51で検出されたファイル数及び総ファイルサイズから、圧縮RAWファイルの平均ファイルサイズを算出する。記録可能枚数算出部53により、空き容量と平均ファイルサイズから、メモリカード10に記録可能な圧縮RAWファイルの枚数を算出する。表示制御部54により、LCDパネル26に撮影可能枚数を表示する。
【選択図】図4
An object of the present invention is to accurately manage the number of shootable RAW images that are reversibly compressed.
A free space detecting unit detects a free space of a memory card. The file detection unit 51 detects the number of compressed RAW files recorded on the memory card 10 and the total file size. The average file size calculator 52 calculates the average file size of the compressed RAW file from the number of files detected by the file detector 51 and the total file size. The number of recordable sheets calculation unit 53 calculates the number of compressed RAW files that can be recorded on the memory card 10 from the free space and the average file size. The display control unit 54 displays the number of shootable images on the LCD panel 26.
[Selection] Figure 4

Description

本発明は、撮影により生成されたCCD−RAWデータからなるRAW画像を可逆圧縮して、記録媒体に記録するデジタルカメラ及びその制御方法に関する。   The present invention relates to a digital camera for reversibly compressing a RAW image composed of CCD-RAW data generated by photographing and recording it on a recording medium, and a control method therefor.

CCDやCMOS等の撮像素子を用いて被写体を撮像するデジタルカメラでは、撮像素子により生成されたアナログの撮像信号をデジタルの画像データ(以下、RAWデータと呼ぶ)に変換し、更にこのRAWデータをJPEG等の画像ファイルに変換してメモリカード等の記録媒体に記録する。例えば、JPEGファイルは、固定長圧縮(圧縮ファイルのデータ量が略一定になるように圧縮するもの)等の非可逆圧縮が施されるため、記録媒体に記録可能な枚数の管理が正確かつ容易に行なえるという利点がある。   In a digital camera that captures an image of an object using an image sensor such as a CCD or CMOS, an analog image signal generated by the image sensor is converted into digital image data (hereinafter referred to as RAW data). It is converted into an image file such as JPEG and recorded on a recording medium such as a memory card. For example, JPEG files are subjected to irreversible compression such as fixed-length compression (compressed so that the data amount of the compressed file is substantially constant), so that the number of records that can be recorded on a recording medium can be managed accurately and easily. There is an advantage that can be done.

上記固定長圧縮は、データ量を略一定に抑えるため、圧縮処理の段階で量子化スケールの拡大や、ビットストリームの打ち切り等が行なわれる。これらの処理では、視覚的に目立たない範囲で画像情報の削除が行なわれる。しかし、特に高画質が要求される用途(製版用の画像加工、画像の拡大表示等)では、この画像情報の削除が問題となる。   In the fixed length compression, in order to keep the amount of data substantially constant, the quantization scale is expanded or the bit stream is cut off at the stage of compression processing. In these processes, image information is deleted within a visually inconspicuous range. However, in applications that require high image quality (image processing for plate making, enlarged display of images, etc.), deletion of this image information becomes a problem.

そこで、一部のデジタルスチルカメラには、非圧縮のRAWデータを可逆圧縮して圧縮RAWデータを生成し、メモリカード等の記録媒体に記録するものがある(例えば、特許文献1及び2参照)。可逆圧縮としては、例えばDPCM(Differential Pulse Code Modulation)等がよく知られている。
特開2002−218387号公報 特開2002−354405号公報
Therefore, some digital still cameras include a reversible compression of uncompressed RAW data to generate compressed RAW data and record it on a recording medium such as a memory card (see, for example, Patent Documents 1 and 2). . For example, DPCM (Differential Pulse Code Modulation) is well known as the lossless compression.
JP 2002-218387A JP 2002-354405 A

可逆圧縮は、画像によってデータサイズが変化する可変長圧縮である。そのため、記録媒体の記録可能枚数の管理が困難になるという問題点があった。特に、撮影可能枚数「1」の状態で、可逆圧縮後のデータサイズが残容量を上回った場合、圧縮RAWデータを記録媒体に保存できないといった問題を生じる。   Lossless compression is variable length compression in which the data size varies with the image. Therefore, there has been a problem that it becomes difficult to manage the recordable number of recording media. In particular, when the number of shootable images is “1” and the data size after the lossless compression exceeds the remaining capacity, there is a problem that the compressed RAW data cannot be stored in the recording medium.

また、ユーザーが圧縮RAWデータでの記録を選択するというケースは、ユーザーにとって最重要の撮影であることを意味する。したがって、このようなケースでは、撮影結果を保存できないというアクシデントを極力回避しなければならない。   In addition, the case where the user selects recording with compressed RAW data means that photographing is most important for the user. Therefore, in such a case, an accident that the photographing result cannot be stored must be avoided as much as possible.

本発明は、上記問題を解決するために、可逆圧縮されたRAW画像の撮影可能枚数の管理が正確に行なえるようにしたデジタルカメラ及びその制御方法を提供する。   In order to solve the above-described problems, the present invention provides a digital camera and a control method thereof that can accurately manage the number of shootable RAW images that have been reversibly compressed.

上記課題を解決するために本発明のデジタルカメラは、静止画を撮影してCCD−RAWデータからなるRAW画像を生成する撮像手段と、RAW画像を可逆圧縮して圧縮RAW画像を生成する可逆圧縮処理手段と、圧縮RAW画像を記録媒体に記録する記録処理手段と、記録媒体の空き容量を検出する空き容量検出手段と、記録媒体に記録されている圧縮RAW画像の平均データサイズを特定する平均データサイズ特定手段と、空き容量と平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数を算出する記録可能枚数算出手段と、記録可能枚数算出手段の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させる表示制御手段から構成したものである。   In order to solve the above problems, a digital camera of the present invention includes an imaging unit that captures a still image and generates a RAW image composed of CCD-RAW data, and a reversible compression that generates a compressed RAW image by reversibly compressing the RAW image. Processing means, recording processing means for recording a compressed RAW image on a recording medium, free capacity detecting means for detecting the free capacity of the recording medium, and an average for specifying an average data size of the compressed RAW image recorded on the recording medium Based on the calculation results of the data size specifying means, the recordable number calculating means for calculating the number of compressed RAW images that can be recorded on the recording medium based on the free space and the average data size, and the recordable number calculating means, This is composed of display control means for displaying on the display means the number of images that can be photographed or that photography is not possible.

平均データサイズ特定手段は、記録媒体に記録されている圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、画像数及び総データサイズから、圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部から構成したものである。   The average data size specifying means calculates the average data size of the compressed RAW image from the number of images and the total data size, and a data detector for detecting the number of compressed RAW images and the total data size recorded on the recording medium. This is composed of an average data size calculation unit.

また、別の平均データサイズ特定手段は、記録媒体に記録されている圧縮RAW画像の付帯情報から撮影日時を抽出し、予め設定されている検出期間に該当する撮影日時を有する圧縮RAW画像を選択する撮影日時抽出部と、選択された圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、画像数及び総データサイズから、圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部から構成したものである。   Another average data size specifying means extracts the shooting date and time from the supplementary information of the compressed RAW image recorded on the recording medium, and selects a compressed RAW image having a shooting date and time corresponding to a preset detection period. An imaging date and time extraction unit, a data detection unit for detecting the number and total data size of the selected compressed RAW images, and an average data size calculation for calculating the average data size of the compressed RAW images from the number of images and the total data size It consists of parts.

また、撮影日時抽出部は、記録媒体に検出期間に該当する撮影日時の圧縮RAW画像が記録されていないときに、検出期間を徐々に拡大して該当する圧縮RAW画像を選択するようにしたものである。   In addition, when the compressed RAW image of the shooting date / time corresponding to the detection period is not recorded on the recording medium, the shooting date / time extraction unit gradually expands the detection period and selects the corresponding compressed RAW image. It is.

更に別の平均データサイズ特定手段は、記録媒体に記録されている圧縮RAW画像の付帯情報から撮影日時を抽出し、予め設定されている複数の検出期間ごとに該当する撮影日時を有する圧縮RAW画像を選択する撮影期間抽出部と、各検出期間内の圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、各検出期間の画像数及び総データサイズから、各検出期間ごとに圧縮RAW画像の期間別平均データサイズを算出する期間別平均データサイズ算出部と、各期間別平均データサイズに対し、現在日時との時間差に応じて重み付けを行なう重み付け部と、各期間別平均データサイズの平均を算出して、記録媒体に記録されている圧縮RAW画像全体の平均データサイズとする平均データサイズ算出部から構成したものである。   Still another average data size specifying means extracts the shooting date and time from the supplementary information of the compressed RAW image recorded on the recording medium, and the compressed RAW image has the shooting date and time corresponding to a plurality of preset detection periods. An imaging period extraction unit that selects a data, a data detection unit that detects the number of compressed RAW images and the total data size in each detection period, and a compression for each detection period from the number of images and the total data size in each detection period An average data size calculation unit by period for calculating an average data size by period of the RAW image, a weighting unit for weighting the average data size by period according to a time difference from the current date and time, and an average data size by period The average data size is calculated from the average data size of the entire compressed RAW image recorded on the recording medium. .

また、重み付け部は、現在日時から過去に遡るにしたがって重みを軽くするようにしたものである。   Further, the weighting unit reduces the weight as going back from the current date and time to the past.

更に別の平均データサイズ特定手段は、記録媒体に記録されている圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、画像数及び総データサイズから、圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部と、圧縮RAW画像に付帯されている縮小画像から、縮小画像の生成時にRAW画像のサイズを縮小して非可逆圧縮する際に用いられた量子化テーブルを抽出する量子化テーブル抽出部と、量子化テーブルの高周波成分の平均値を算出し、平均値に基づいて平均データサイズの補正に用いる補正係数を特定する補正係数特定部と、補正係数を用いて平均データサイズを補正する補正部から構成したものである。   Still another average data size specifying means includes a data detection unit for detecting the number of compressed RAW images and the total data size recorded on the recording medium, and an average data size of the compressed RAW image from the number of images and the total data size. An average data size calculation unit for calculating the RAW image and a quantization table used for irreversible compression by reducing the size of the RAW image when generating the reduced image from the reduced image attached to the compressed RAW image A quantization table extraction unit, a correction coefficient specifying unit that calculates an average value of high frequency components of the quantization table, specifies a correction coefficient used for correcting the average data size based on the average value, and average data using the correction coefficient It comprises a correction unit for correcting the size.

また別の平均データサイズ特定手段は、撮像手段を連続的に動作させて表示手段に被写体の画像をリアルタイムに表示するスルー画表示時に、撮像手段からシャッタスピード、絞り値、ISO感度等の現撮影情報を取得する現撮影情報取得部と、記録媒体に記録されている圧縮RAW画像の付帯情報から、シャッタスピード、絞り値、ISO感度等の撮影情報を抽出し、現撮影情報と比較して類似する撮影情報を有する圧縮RAW画像を選択する撮影情報抽出部と、選択された圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、画像数及び総データサイズから、圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部から構成したものである。   Further, another average data size specifying means is configured to display current images such as shutter speed, aperture value, ISO sensitivity, etc. from the imaging means during live view display in which the imaging means is continuously operated to display the subject image on the display means in real time. Shooting information such as shutter speed, aperture value, ISO sensitivity, etc. is extracted from the incidental information of the compressed RAW image recorded on the recording medium and the current shooting information acquisition unit for acquiring information, and similar to the current shooting information A shooting information extraction unit that selects a compressed RAW image having shooting information to perform, a data detection unit that detects the number of images and the total data size of the selected compressed RAW image, and a compressed RAW image based on the number of images and the total data size. This is composed of an average data size calculator for calculating the average data size.

更にまた別の平均データサイズ特定手段は、静止画撮影と、撮像手段を連続的に動作させて表示手段に被写体の画像をリアルタイムに表示するスルー画表示との画像サイズ等のサイズ比が予め記録されたサイズ比記録部と、可逆圧縮処理手段に所定のタイミングで前記スルー画表示時のRAW画像を可逆圧縮させ、その際に得られた圧縮RAW画像のデータサイズと前記サイズ比から、前記スルー画表示と同じ被写体を静止画撮影した時に得られる圧縮RAW画像の予想データサイズを算出する予想データサイズ算出部とを備え、記録可能枚数算出手段は、空き容量と平均データサイズ、空き容量と予想データサイズに基づいて記録媒体に記録可能な圧縮RAW画像の枚数を算出し、表示制御手段は、平均データサイズと予想データサイズとに基づく記録可能枚数のうちいずれか少ないほうの記録可能枚数に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させるようにしたものである。   Still another average data size specifying means pre-records a size ratio such as an image size between still image shooting and a live view display in which an image of a subject is displayed in real time by continuously operating the imaging means. The RAW image at the time of displaying the through image is reversibly compressed at a predetermined timing by the size ratio recording unit and the reversible compression processing means, and the data size of the compressed RAW image obtained at that time and the size ratio are used to calculate the through An expected data size calculation unit that calculates an expected data size of a compressed RAW image obtained when a subject image that is the same as that of the image display is captured, and the recordable number calculation means includes a free space, an average data size, a free space, and an expected The number of compressed RAW images that can be recorded on the recording medium is calculated based on the data size, and the display control means calculates the average data size, the expected data size, Based on the number of recordable lesser one of recordable number based, it is obtained so as to be displayed on the display means that it can not photographable number or shooting.

また、スルー画のRAW画像を解析して人物の顔を表す顔情報を抽出する顔情報抽出手段を設け、予想データサイズ算出部は、顔情報が変化したときに可逆圧縮処理手段にスルー画のRAW画像を可逆圧縮させるようにしたものである。   Further, a face information extracting unit that analyzes a RAW image of the through image and extracts face information representing a person's face is provided, and the predicted data size calculation unit sends the through image to the lossless compression processing unit when the face information changes. A RAW image is reversibly compressed.

また、更に別の平均データサイズ特定手段は、スルー画表示時に撮像手段で生成されるRAW画像と、撮影情報抽出部によって選択された圧縮RAW画像を解析して人物の顔を表す顔情報を抽出する顔情報抽出部と、スルー画表示の顔情報と圧縮RAW画像の顔情報とを比較して、スルー画表示の顔情報に顔の数や位置、占有エリア等のいずれかまたは全てが同じ、あるいは近似する圧縮RAW画像を選択する顔情報比較部を備え、データ検出部は、顔情報比較部によって選択された圧縮RAW画像の画像数及び総データサイズを検出し、平均データサイズ算出部は画像数及び総データサイズから圧縮RAW画像の平均データサイズを算出するようにしたものである。   Still another average data size specifying means extracts face information representing a person's face by analyzing the RAW image generated by the image pickup means during live view display and the compressed RAW image selected by the shooting information extraction unit. Comparing the face information of the through image display and the face information of the compressed RAW image, and the face information of the through image display is the same as any or all of the number, position, occupied area, etc. of the face, Alternatively, a face information comparison unit that selects a compressed RAW image to be approximated is provided, the data detection unit detects the number of images and the total data size of the compressed RAW images selected by the face information comparison unit, and the average data size calculation unit The average data size of the compressed RAW image is calculated from the number and the total data size.

また、記録可能枚数を記録し、記録可能枚数が新たに算出されるごとに更新される記録可能枚数記録手段を設けたものである。   Further, a recordable number recording means is provided which records the recordable number of sheets and is updated each time the recordable number of sheets is newly calculated.

更に、記録可能枚数の算出は、記録媒体に新たな圧縮RAW画像が記録されたとき、あるいは記録媒体から記録済みの圧縮RAW画像が削除されたときに行なわれるようにしたものである。   Further, the recordable number of sheets is calculated when a new compressed RAW image is recorded on the recording medium or when a recorded compressed RAW image is deleted from the recording medium.

また、平均データサイズ特定手段は、記録媒体に圧縮RAW画像が記録されていないときに、記録媒体に記録されているRAW画像のデータサイズを平均データサイズとして設定するようにしたものである。   The average data size specifying means sets the data size of the RAW image recorded on the recording medium as the average data size when the compressed RAW image is not recorded on the recording medium.

また、本発明の別のデジタルカメラは、静止画撮影時と、被写体の画像をリアルタイムに表示するスルー画表示時にCCD−RAWデータからなるRAW画像を生成する撮像手段と、RAW画像を可逆圧縮して、圧縮RAW画像を生成する可逆圧縮処理手段と、静止画撮影時の圧縮RAW画像を記録媒体に記録する記録処理手段と、静止画撮影とスルー画表示との画像サイズ等のサイズ比が予め記録されたサイズ比記録手段と、可逆圧縮処理手段に所定のタイミングでスルー画表示時のRAW画像を可逆圧縮させ、その際に得られた圧縮RAW画像のデータサイズとサイズ比から、前記スルー画表示と同じ被写体を静止画撮影した時に得られる圧縮RAW画像の予想データサイズを算出する予想データサイズ算出手段と、記録媒体の空き容量を検出する空き容量検出手段と、予想データサイズと空き容量とに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数を算出する記録可能枚数算出手段と、記録可能枚数算出手段の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させる表示制御手段を備えるものである。   Another digital camera according to the present invention includes an imaging unit that generates a RAW image composed of CCD-RAW data at the time of still image shooting and a through image display for displaying a subject image in real time, and reversibly compresses the RAW image. The size ratio of the image size, etc., between the reversible compression processing means for generating a compressed RAW image, the recording processing means for recording the compressed RAW image at the time of still image shooting on a recording medium, The recorded size ratio recording means and the reversible compression processing means reversibly compress the RAW image at the time of displaying the through image at a predetermined timing, and the data size and size ratio of the compressed RAW image obtained at that time are used to calculate the through image. Expected data size calculating means for calculating an expected data size of a compressed RAW image obtained when a still image of the same subject as that displayed is captured, and a free space on the recording medium Based on the calculation results of the free space detection means to detect, the recordable number calculation means for calculating the number of compressed RAW images that can be recorded on the recording medium, and the recordable number calculation means based on the expected data size and free space And a display control means for displaying on the display means that the number of images that can be taken or that the image cannot be taken.

更に、スルー画表示時のRAW画像を解析して人物の顔を表す顔情報を抽出する顔情報抽出手段を設け、可逆圧縮処理手段は、顔情報が変化したときにスルー画表示のRAW画像を可逆圧縮するようにしたものである。   Furthermore, face information extraction means for analyzing the RAW image at the time of displaying the through image and extracting face information representing a person's face is provided, and the lossless compression processing means converts the RAW image of the through image display when the face information changes. Reversible compression is performed.

また、本発明の別のデジタルカメラは、静止画を撮影してCCD−RAWデータからなるRAW画像を生成する撮像手段と、RAW画像を可逆圧縮して、圧縮RAW画像を生成する可逆圧縮処理手段と、圧縮RAW画像を記録媒体に記録する記録処理手段と、記録媒体の空き容量を検出する空き容量検出手段と、圧縮RAW画像の平均データサイズを記録する平均データサイズ記録手段と、空き容量と平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像枚数を算出する記録可能枚数算出手段と、記録可能枚数算出手段の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させる表示制御手段を備え、静止画撮影が行なわれたときに、その静止画撮影により生成された圧縮RAW画像のデータサイズが、新たな平均データサイズとして平均データサイズ記録手段に記録されるようにしたものである。   Another digital camera according to the present invention includes an imaging unit that captures a still image and generates a RAW image composed of CCD-RAW data, and a reversible compression processing unit that generates a compressed RAW image by reversibly compressing the RAW image. Recording processing means for recording the compressed RAW image on the recording medium, free capacity detecting means for detecting the free capacity of the recording medium, average data size recording means for recording the average data size of the compressed RAW image, and free capacity Based on the average data size, a recordable sheet number calculating unit that calculates the number of compressed RAW images that can be recorded on the recording medium, and the number of images that can be shot or the fact that shooting is not possible based on the calculation result of the recordable sheet number calculating unit. Display control means for displaying on the display means, and when a still image is captured, a data source of the compressed RAW image generated by the still image capture 'S is what you as documented in average data size recording means as a new average data size.

また、別のデジタルカメラは、静止画を撮影してCCD−RAWデータからなるRAW画像を生成する撮像手段と、RAW画像を可逆圧縮して、圧縮RAW画像を生成する可逆圧縮処理手段と、圧縮RAW画像を記録媒体に記録する記録処理手段と、記録媒体の空き容量を検出する空き容量検出手段と、圧縮RAW画像の平均データサイズである第1平均データサイズと、RAW画像の平均データサイズである第2平均データサイズを記録する平均データサイズ記録手段と、空き容量と第1平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数である第1記録可能枚数を算出し、第1記録可能枚数が「1」以上であるときに、空き容量と第2平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数である第2記録可能枚数を算出する記録可能枚数算出手段と、第1記録可能枚数が「1」未満のときに、表示手段に撮影できない旨を表示させ、第1記録可能枚数及び第2記録可能枚数がともに「1」以上であるときに撮影可能枚数を表示手段に表示させ、第1記録可能枚数が「1」以上で、第2記録可能枚数が「1」未満であるときには撮影できない可能性があることを表示手段に警告表示させる表示制御手段とを備え、静止画撮影が行なわれたときに、その静止画撮影により生成された圧縮RAW画像とRAW画像のデータサイズが、新たな第1平均データサイズ及び第2平均データサイズとして平均データサイズ記録手段に記録されるようにしたものである。   In addition, another digital camera includes an imaging unit that captures a still image and generates a RAW image composed of CCD-RAW data, a lossless compression processing unit that generates a compressed RAW image by reversibly compressing the RAW image, and a compression Recording processing means for recording a RAW image on a recording medium, free capacity detecting means for detecting the free capacity of the recording medium, a first average data size that is an average data size of the compressed RAW image, and an average data size of the RAW image Based on the average data size recording means for recording a certain second average data size, the free space and the first average data size, the first recordable number of sheets, which is the number of compressed RAW images that can be recorded on the recording medium, is calculated. When the first recordable number is “1” or more, the number of compressed RAW images that can be recorded on the recording medium based on the free space and the second average data size And a recordable sheet number calculating means for calculating the second recordable sheet number, and when the first recordable sheet number is less than “1”, the display means displays that the image cannot be taken, and the first recordable sheet number and the second recordable sheet number are displayed. When the number of possible images is both “1” or more, the number of shootable images is displayed on the display means, and when the first recordable number is “1” or more and the second recordable number is less than “1”, it is not possible to shoot. Display control means for displaying a warning on the display means, and when the still image shooting is performed, the data size of the compressed RAW image and the raw image generated by the still image shooting is newly set. The average data size and the second average data size are recorded in the average data size recording means.

また、本発明のデジタルカメラの制御方法は、静止画撮影を行なってCCD−RAWデータからなるRAW画像を生成し、RAW画像を可逆圧縮した圧縮RAW画像を記録媒体に記録するデジタルカメラの制御方法において、記録媒体の空き容量を検出するステップと、記録媒体に記録されている圧縮RAW画像の平均データサイズを特定するステップと、空き容量と平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数を算出するステップと、記録可能枚数に基づいて、撮影可能な枚数、または撮影できない旨を表示するステップを備えるものである。   Also, the digital camera control method of the present invention is a digital camera control method for capturing a still image, generating a RAW image composed of CCD-RAW data, and recording a compressed RAW image obtained by reversibly compressing the RAW image on a recording medium. , The step of detecting the free space of the recording medium, the step of specifying the average data size of the compressed RAW image recorded on the recording medium, and the free space and the average data size can be recorded on the recording medium The method includes a step of calculating the number of compressed RAW images, and a step of displaying the number of images that can be photographed or the fact that photographing is not possible based on the number of recordable images.

また、別の制御方法は、被写体の画像をリアルタイムに表示するスルー画表示とを行なって、CCD−RAWデータからなるRAW画像を生成し、RAW画像を可逆圧縮した圧縮静止画RAW画像を記録媒体に記録するデジタルカメラの制御方法において、記録媒体の空き容量を検出するステップと、スルー画表示時のRAW画像を可逆圧縮してデータサイズを検出するステップと、データサイズと、静止画撮影とスルー画表示との画像サイズ等のサイズ比から、スルー画表示と同じ被写体を静止画撮影した時に得られる圧縮RAW画像の予想データサイズを算出するステップと、空き容量と予想データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数を算出するステップと、記録可能枚数の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示するステップを備えるものである。   Further, another control method performs a through image display for displaying an image of a subject in real time, generates a RAW image composed of CCD-RAW data, and records a compressed still image RAW image obtained by reversibly compressing the RAW image as a recording medium. In a method for controlling a digital camera for recording, a step of detecting a free space of a recording medium, a step of detecting a data size by reversibly compressing a RAW image at the time of displaying a through image, a data size, a still image shooting and a through Based on the ratio of the image size to the image display and the like, the step of calculating the expected data size of the compressed RAW image obtained when the same subject as the through image display is taken, and the free space and the expected data size, Shooting is possible based on the step of calculating the number of compressed RAW images that can be recorded on the recording medium and the result of calculating the number of recordable images. Those comprising the step of displaying to the effect that can not be number or shooting.

更に別の制御方法は、静止画撮影を行なってCCD−RAWデータからなるRAW画像を生成し、RAW画像を可逆圧縮した圧縮RAW画像を記録媒体に記録するデジタルカメラの制御方法において、記録媒体の空き容量を検出するステップと、空き容量と、予め設定されている圧縮RAW画像の平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数を算出するステップと、記録可能枚数に基づいて、撮影可能な枚数、または撮影できない旨を表示するステップと、静止画撮影が行なわれたときに、その静止画撮影により生成された圧縮RAW画像のデータサイズを新たな平均データサイズとして設定するステップを備えるものである。   Still another control method is a digital camera control method in which a still image is taken to generate a RAW image composed of CCD-RAW data, and a compressed RAW image obtained by reversibly compressing the RAW image is recorded on the recording medium. A step of detecting a free space, a step of calculating the number of compressed RAW images that can be recorded on a recording medium based on the free space and a preset average data size of the compressed RAW images, Based on the number of shots that can be taken or the fact that shooting is not possible, and when still image shooting is performed, the data size of the compressed RAW image generated by the still image shooting is set as the new average data size The step to perform is provided.

更に別の制御方法は、静止画撮影を行なってCCD−RAWデータからなるRAW画像を生成し、RAW画像を可逆圧縮した圧縮RAW画像を記録媒体に記録するデジタルカメラの制御方法において、記録媒体の空き容量を検出するステップと、空き容量と、予め設定されている圧縮RAW画像の平均データサイズである第1平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数である第1記録可能枚数を算出するステップと、第1記録可能枚数が「1」未満のときに、撮影できない旨を表示するステップと、第1記録可能枚数が「1」以上であるときに、空き容量と、予め設定されているRAW画像の平均データサイズである第2平均データサイズとに基づいて、記録媒体に記録可能な圧縮RAW画像の枚数である第2記録可能枚数を算出するステップと、第1記録可能枚数及び第2記録可能枚数がともに「1」以上であるときに撮影可能枚数を表示するステップと、第1記録可能枚数数が「1」以上で、2記録可能枚数が「1」未満であるときに撮影できない可能性があることを警告表示するステップと、静止画撮影が行なわれたときに、その静止画撮影により生成された圧縮RAW画像とRAW画像のファイルサイズを新たな第1平均データサイズ及び第2平均データサイズとして設定するステップを備えるものである。   Still another control method is a digital camera control method in which a still image is taken to generate a RAW image composed of CCD-RAW data, and a compressed RAW image obtained by reversibly compressing the RAW image is recorded on the recording medium. The number of compressed RAW images that can be recorded on the recording medium based on the step of detecting the free space, the free space, and a first average data size that is a preset average data size of the compressed RAW images. A step of calculating one recordable number of sheets, a step of displaying that shooting is impossible when the first recordable number of sheets is less than “1”, and a free space when the first recordable number of sheets is “1” or more. And the number of compressed RAW images that can be recorded on the recording medium based on a preset second average data size that is the average data size of the RAW images. (2) a step of calculating the recordable number of sheets, a step of displaying the number of recordable images when both the first recordable number of sheets and the second recordable number of sheets are “1” or more, and the first recordable number of sheets is “1”. As described above, the step of displaying a warning that there is a possibility that the image cannot be shot when the number of recordable 2 sheets is less than “1”, and the compressed RAW generated by the still image shooting when the still image shooting is performed. A step of setting the file sizes of the image and the RAW image as new first average data size and second average data size is provided.

本発明のデジタルカメラ及びその制御方法によれば、可逆圧縮後のデータサイズが一定ではない圧縮RAW画像の撮影可能枚数を精度良く求めることができる。また、現在日時に近い撮影日時の圧縮RAW画像、あるいは撮影日時に応じて重み漬けされたRAW画像に基づいて平均ファイルサイズを求めているので、現在の撮影状況に近い平均ファイルサイズが得て、より正確な撮影可能枚数表示を行なうことができる。   According to the digital camera and the control method of the present invention, the number of shootable compressed RAW images whose data size after lossless compression is not constant can be obtained with high accuracy. Further, since the average file size is obtained based on the compressed RAW image of the shooting date and time close to the current date or the RAW image weighted according to the shooting date and time, the average file size close to the current shooting status is obtained, A more accurate number of images that can be shot can be displayed.

また、付帯されているサムネイル画像の量子化テーブルから、画像の細かい部分の圧縮状況についても考慮して平均ファイルサイズを求めることができるので、より正確な撮影可能枚数表示を行なうことができる。   Further, since the average file size can be obtained from the accompanying thumbnail image quantization table in consideration of the compression state of the fine portion of the image, a more accurate number of shootable images can be displayed.

また、撮影情報により圧縮RAW画像を検索することにより、スルー画表示中の画像と類似した圧縮RAW画像をもとにして平均ファイルサイズを求めることができるので、より正確な撮影可能枚数表示を行なうことができる。更に、撮影情報だけでなく、顔情報も近似している圧縮RAW画像から平均ファイルサイズを求めることができるので、より正確な撮影可能枚数表示を行なうことができる。   In addition, by searching the compressed RAW image based on the shooting information, the average file size can be obtained based on the compressed RAW image similar to the image being displayed as a through image, so that more accurate number of shots can be displayed. be able to. Furthermore, since the average file size can be obtained from the compressed RAW image that approximates not only the shooting information but also the face information, a more accurate number of shots can be displayed.

また、スルー画表示中の画像から静止画撮影時のデータサイズを予想するようにしたので、常に撮影状況に合せた撮影可能枚数表示を行なうことができる。また、メモリカード内にファイルが記録されていない状況でも撮影可能枚数表示を行なうことができる。更に、スルー画表示の顔情報が変化したときに、撮影可能枚数を算出するようにしたので、より正確な撮影可能枚数表示を行なうことができる。   Further, since the data size at the time of still image shooting is predicted from the image being displayed as a through image, it is possible to always display the number of shots that can be taken according to the shooting situation. Further, the number of shootable images can be displayed even when no file is recorded in the memory card. Furthermore, since the number of shootable images is calculated when the face information of the through image display changes, more accurate shootable number display can be performed.

また、撮影済みの圧縮RAW画像から算出される撮影可能枚数と、スルー画表示から算出される撮影可能枚数を同時に求め、少ない方の値に基づいて撮影可能枚数表示を行なうようにしたので、より確実な撮影可能枚数表示を行なうことができる。   In addition, since the number of images that can be captured calculated from the compressed RAW image that has been captured and the number of images that can be captured calculated from the through image display are obtained simultaneously, the number of images that can be captured is displayed based on the smaller value. A reliable display of the number of images that can be taken can be performed.

更に、最後に行なわれた静止画撮影時のファイルサイズから撮影可能枚数を求めるようにしたので、非常にシンプルで高精度な撮影可能枚数表示を行なうことができる。   Further, since the number of shootable images is obtained from the file size at the time of the last still image shooting, it is possible to display the number of shootable images with a very simple and high accuracy.

図1に示す本発明のデジタルカメラ2は、データバス3、4を介して各部に接続されたCPU5を備えている。CPU5には、電源スイッチ、動作モードを切り替えるモードスイッチ、各種設定を変更する設定スイッチ、撮影時に操作されるシャッタスイッチ等を有する操作パネル6が接続されており、各スイッチから入力された操作信号と、EEPROM7に記憶された制御プログラムとにしたがって各部を制御する。   The digital camera 2 of the present invention shown in FIG. 1 includes a CPU 5 connected to each part via data buses 3 and 4. The CPU 5 is connected to an operation panel 6 having a power switch, a mode switch for switching operation modes, a setting switch for changing various settings, a shutter switch operated at the time of shooting, and the like. Each unit is controlled according to the control program stored in the EEPROM 7.

デジタルカメラ2は、設定スイッチによる設定の切り替えにより、撮影時に生成される画像の記録形式を選択する機能を備えている。選択可能な記録形式としては、例えば、撮像素子から出力された撮像信号をデジタル化したRAW画像形式、このRAW画像を可逆圧縮した圧縮RAW画像形式、RAW画像をYC変換して非可逆圧縮したJPEG形式等である。図2に示すように、デジタルカメラ2にセットされたメモリカード10には、各形式の画像から生成されたRAWファイル11、圧縮RAWファイル12、JPEGファイル13が混在して記録される。
The digital camera 2 has a function of selecting a recording format of an image generated at the time of shooting by switching settings with a setting switch. Selectable recording formats include, for example, a RAW image format obtained by digitizing an imaging signal output from an image sensor, a compressed RAW image format obtained by reversibly compressing the RAW image, and a JPEG image obtained by irreversibly compressing the RAW image by YC conversion. Format. As shown in FIG. 2, a RAW file 11, a compressed RAW file 12, and a JPEG file 13 generated from images of various formats are recorded in a mixed manner on the memory card 10 set in the digital camera 2.

撮像素子であるCCD16は、CCDドライバ17により駆動制御され、撮影レンズ18及び絞り19を介して入射する被写体像を撮像して、アナログの撮像信号を出力する。CCD16から出力される撮像信号は、アナログ信号処理回路20によってゲイン調整等の前処理が施された後、アナログデジタルコンバータ(ADC)21により、CCD−RAWデータからなるデジタルのRAW画像に変換される。RAW画像は、メモリ制御回路22により、データバス4を介してSDRAM23に記録される。   The CCD 16 serving as an image pickup device is driven and controlled by a CCD driver 17 to pick up an image of a subject incident through a photographing lens 18 and a diaphragm 19 and output an analog image pickup signal. The imaging signal output from the CCD 16 is subjected to preprocessing such as gain adjustment by the analog signal processing circuit 20, and then converted to a digital RAW image composed of CCD-RAW data by the analog-digital converter (ADC) 21. . The RAW image is recorded in the SDRAM 23 via the data bus 4 by the memory control circuit 22.

本発明の撮像手段は、撮影レンズ18、絞り19、CCD16、CCDドライバ17、アナログ信号処理回路20、ADC21等から構成される。撮影レンズ18は、詳しくは図示しないが、フォーカスレンズ及びズームレンズからなり、CPU5に制御されるレンズ駆動部24によって駆動される。また絞り19は、例えば複数の絞り羽根を有する絞り機構であり、CPU5によって制御される絞り駆動部25によって駆動される。   The imaging means of the present invention comprises a photographic lens 18, an aperture 19, a CCD 16, a CCD driver 17, an analog signal processing circuit 20, an ADC 21, and the like. Although not shown in detail, the photographing lens 18 includes a focus lens and a zoom lens, and is driven by a lens driving unit 24 controlled by the CPU 5. The diaphragm 19 is a diaphragm mechanism having a plurality of diaphragm blades, for example, and is driven by a diaphragm driving unit 25 controlled by the CPU 5.

表示手段であるLCDパネル26で被写体画像をリアルタイムに表示するスルー画表示時には、CCD16が所定のフレームレートで連続して撮像動作され、スルー画表示用に画素数が減少するように撮像信号が間引いて読み出される。この間引いた撮像信号に基づくRAW画像は、SDRAM23に記録される。デジタル信号処理回路27は、SDRAM23からスルー画表示用のRAW画像を読み出し、シェーディング補正等のスルー画表示用の各種信号処理を行ない、YC変換処理を施した後、その画像データを再びSDRAM23に記録する。LCDドライバ28は、SDRAM23からYC形式の画像データを読み出し、その画像をLCDパネル26に表示させる。   When displaying a through image in which the subject image is displayed in real time on the LCD panel 26 as a display means, the CCD 16 is continuously imaged at a predetermined frame rate, and the imaging signal is thinned out so that the number of pixels is reduced for the through image display. Read out. A RAW image based on the thinned imaging signal is recorded in the SDRAM 23. The digital signal processing circuit 27 reads out a RAW image for live view display from the SDRAM 23, performs various signal processing for live view display such as shading correction, performs YC conversion processing, and then records the image data in the SDRAM 23 again. To do. The LCD driver 28 reads YC format image data from the SDRAM 23 and causes the LCD panel 26 to display the image.

レリーズスイッチの操作により静止画撮影が行なわれると、CCD16から全ての画素の撮像信号が読み出され、静止画撮影のRAW画像が生成されてSDRAM23に記録される。非可逆圧縮伸長回路31は、SDRAM23からRAW画像を読み出し、縮小及び可逆圧縮を施してJPEG形式のサムネイル画像を生成し、SDRAM23に記録する。   When still image shooting is performed by operating the release switch, image pickup signals of all pixels are read from the CCD 16, and a RAW image for still image shooting is generated and recorded in the SDRAM 23. The irreversible compression / decompression circuit 31 reads out a RAW image from the SDRAM 23, performs reduction and lossless compression, generates a thumbnail image in JPEG format, and records it in the SDRAM 23.

記録形式として圧縮RAW形式が選択されている場合、可逆圧縮伸長回路34は、SDRAM23から静止画撮影のRAW画像を読み出し、可逆圧縮を施して圧縮RAW画像を生成し、再びSDRAM23記録する。CPU5は、画像記録時にファイル生成部として機能し、図3に示すように、SDRAM23から圧縮RAW画像37とサムネイル画像38を読み出し、これらの画像から各種撮影情報を含むヘッダ情報39を生成し、このヘッダ情報39を圧縮RAW画像37に付帯させて圧縮RAWファイル12を生成し、外部メディア制御回路42によりメモリカード10に記録させる。   When the compressed RAW format is selected as the recording format, the reversible compression / decompression circuit 34 reads out a RAW image of still image shooting from the SDRAM 23, performs a reversible compression to generate a compressed RAW image, and records the SDRAM 23 again. The CPU 5 functions as a file generation unit at the time of image recording, reads the compressed RAW image 37 and the thumbnail image 38 from the SDRAM 23 as shown in FIG. 3, generates header information 39 including various shooting information from these images, The header information 39 is attached to the compressed RAW image 37 to generate the compressed RAW file 12 and recorded on the memory card 10 by the external media control circuit 42.

また、記録形式としてRAW画像形式が選択されている場合には、CPU5は、前記圧縮RAW画像の代わりにRAW画像が収納されたRAWファイル11を生成する。また、JPEG形式が選択されている場合には、非可逆圧縮伸長回路31によって生成されたJPEG画像からJPEGファイル13を生成してメモリカード10に記録させる。   When the RAW image format is selected as the recording format, the CPU 5 generates a RAW file 11 containing a RAW image instead of the compressed RAW image. When the JPEG format is selected, the JPEG file 13 is generated from the JPEG image generated by the lossy compression / decompression circuit 31 and recorded in the memory card 10.

顔検出回路45は、スルー画表示時、及び静止画撮影時に生成されるRAW画像を解析して、被写体である人物の顔の数や位置、占有エリア等の顔情報を検出する。この顔情報は、CPU5に入力され、人物の顔を主要被写体としてピント合せや露出制御等に用いられる。   The face detection circuit 45 analyzes RAW images generated when displaying a through image and shooting a still image, and detects face information such as the number and position of the person's face as an object, an occupied area, and the like. This face information is input to the CPU 5 and used for focusing, exposure control, and the like with a human face as the main subject.

図4は、本発明の第1実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、LCDパネル26に圧縮RAWファイル12の撮影可能枚数を表示する際に、EEPROM7に記憶されている動作プログラムにしたがって、空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54として機能する。   FIG. 4 is a functional block diagram showing functions of the CPU 5 in the first embodiment of the present invention. When the CPU 5 displays the number of shootable images of the compressed RAW file 12 on the LCD panel 26, the free space detection unit 50, the file detection unit 51, the average file size calculation unit 52, according to the operation program stored in the EEPROM 7, It functions as a recordable number calculation unit 53 and a display control unit 54.

空き容量検出部50は、外部メディア制御回路42を介してメモリカード10の空き容量を検出する。検出された空き容量は、記録可能枚数算出部53に入力される。データ検出部であるファイル検出部51は、メモリカード10に記録されている圧縮RAWファイル12のファイル数と総ファイルサイズとを検出する。このファイル数及びファイルサイズは、平均ファイルサイズ算出部52に入力される。   The free space detection unit 50 detects the free space of the memory card 10 via the external media control circuit 42. The detected free space is input to the recordable sheet number calculation unit 53. The file detection unit 51 serving as a data detection unit detects the number of compressed RAW files 12 recorded on the memory card 10 and the total file size. The number of files and the file size are input to the average file size calculation unit 52.

平均データサイズ算出部である平均ファイルサイズ算出部52は、ファイル検出部51で検出されたファイル数及び総ファイルサイズに基づいて、圧縮RAWファイル12の平均ファイルサイズを算出する。この平均ファイルサイズは、記録可能枚数算出部53に入力される。   An average file size calculation unit 52 that is an average data size calculation unit calculates the average file size of the compressed RAW file 12 based on the number of files detected by the file detection unit 51 and the total file size. This average file size is input to the recordable sheet number calculation unit 53.

記録可能枚数算出部53は、メモリカード10の空き容量と圧縮RAWファイル12の平均ファイルサイズから、メモリカード10に記録可能な圧縮RAWファイル12の枚数を算出する。この記録可能枚数は、表示制御部54に入力され、記録可能枚数記録手段であるEEPROM7に記録される。   The recordable number calculation unit 53 calculates the number of compressed RAW files 12 that can be recorded on the memory card 10 from the free space of the memory card 10 and the average file size of the compressed RAW files 12. This recordable number is input to the display control unit 54 and recorded in the EEPROM 7 which is a recordable number recording means.

表示制御部54は、入力された記録可能枚数に基づいて、LCDパネル26に撮影可能枚数を表示させる。例えば、記録可能枚数が「1」以上のときには、LCDパネル26に撮影可能枚数を表示させる。また、記録可能枚数が「1」未満のときには、LCDパネル26に撮影できない旨を表示させる。   The display control unit 54 causes the LCD panel 26 to display the shootable number based on the input recordable number. For example, when the recordable number is “1” or more, the number of shootable images is displayed on the LCD panel 26. When the recordable number is less than “1”, the LCD panel 26 displays that the image cannot be taken.

次に、上記実施形態の作用について説明する。図5に示すようにデジタルカメラ2の電源がオンされると、CPU5の表示制御部54は、EEPROM7から記録可能枚数を読み出し、記録可能枚数が1以上のときにLCDパネル26に撮影可能枚数を表示し、記録可能枚数が1未満のときには撮影できない旨を表示する。   Next, the operation of the above embodiment will be described. As shown in FIG. 5, when the power of the digital camera 2 is turned on, the display control unit 54 of the CPU 5 reads the recordable number from the EEPROM 7, and when the recordable number is 1 or more, the LCD panel 26 indicates the number of recordable images. When the number of recordable sheets is less than 1, a message indicating that shooting is not possible is displayed.

デジタルカメラ2により静止画撮影が行なわれ、またはメモリカード10からファイルが削除されると、撮影可能枚数表示が更新される。図6に示すように、空き容量検出部50は、メモリカード10の空き容量を検出し、ファイル検出部51は、メモリカード10内の圧縮RAWファイル12のファイル数及び総ファイルサイズを検出する。   When a still image is shot by the digital camera 2 or a file is deleted from the memory card 10, the number of shots that can be shot is updated. As shown in FIG. 6, the free space detection unit 50 detects the free space of the memory card 10, and the file detection unit 51 detects the number of files and the total file size of the compressed RAW file 12 in the memory card 10.

平均ファイルサイズ算出部52は、ファイル検出部51で検出されたファイル数及び総ファイルサイズから、圧縮RAWファイル12の平均ファイルサイズを算出する。記録可能枚数算出部53は、空き容量と平均ファイルサイズからメモリカード10に記録可能な圧縮RAWファイル12の枚数を算出し、表示制御部54は、算出された記録可能枚数に基づいて撮影可能枚数の表示を行なう。また、EEPROM7の記録可能枚数が更新され、次の電源オン時の撮影枚数表示に利用される。   The average file size calculation unit 52 calculates the average file size of the compressed RAW file 12 from the number of files detected by the file detection unit 51 and the total file size. The recordable number calculation unit 53 calculates the number of compressed RAW files 12 that can be recorded on the memory card 10 from the free space and the average file size, and the display control unit 54 calculates the number of recordable images based on the calculated recordable number. Is displayed. Further, the recordable number of pieces of data in the EEPROM 7 is updated and used for displaying the number of shots when the power is turned on next time.

また、記録形式を圧縮RAW形式に切り替えた直後は、メモリカード10内に圧縮RAWファイル12が記録されていないことがある。このようなときには、非圧縮のRAWファイル11のファイルサイズを平均ファイルサイズとして用いるとよい。RAWファイル11のファイルサイズは略一定で、かつ圧縮RAWファイル12よりも30%程度大きいので、RAWファイル11のファイルサイズに基づいて撮影可能枚数を求めておけば、撮影後に圧縮RAWファイル12が記録できないというトラブルが発生することはない。   In addition, the compressed RAW file 12 may not be recorded in the memory card 10 immediately after the recording format is switched to the compressed RAW format. In such a case, the file size of the uncompressed RAW file 11 may be used as the average file size. Since the file size of the RAW file 11 is substantially constant and about 30% larger than the compressed RAW file 12, if the number of storable images is obtained based on the file size of the RAW file 11, the compressed RAW file 12 is recorded after shooting. Troubles that can not be done will not occur.

このように、圧縮RAWファイル12の平均ファイルサイズに基づいて撮影可能枚数を算出するので、可逆圧縮後のファイルサイズが一定ではない圧縮RAWファイル12の撮影可能枚数を精度良く求めることができる。   Thus, since the number of shootable images is calculated based on the average file size of the compressed RAW file 12, the number of shootable images of the compressed RAW file 12 whose file size after lossless compression is not constant can be obtained with high accuracy.

なお、上記実施形態では、メモリカード10に記録されている全ての圧縮RAWファイル12に基づいて平均ファイルサイズを求めている。しかし、デジタルカメラ2の実使用では、撮影日時が違えば撮影内容が大きく異なることも多いため、全ての圧縮RAWファイル12から平均ファイルサイズを求めると、現在の撮影状況から得られる圧縮RAWファイルのファイルサイズとの差異が大きくなることが考えられる。そこで、メモリカード10の中から、現在日時に近い圧縮RAWファイル12だけを選択して平均ファイルサイズを求めてもよい。以下、本発明の別の実施形態について説明するが、第1実施形態と同じ構成については、同符号を用いて詳しい説明は省略する。   In the above embodiment, the average file size is obtained based on all the compressed RAW files 12 recorded on the memory card 10. However, in actual use of the digital camera 2, if the shooting date and time are different, the shooting contents often differ greatly. Therefore, when the average file size is obtained from all the compressed RAW files 12, the compressed RAW file obtained from the current shooting situation is obtained. It can be considered that the difference from the file size becomes large. Therefore, the average file size may be obtained by selecting only the compressed RAW file 12 close to the current date and time from the memory card 10. Hereinafter, although another embodiment of the present invention will be described, the same components as those in the first embodiment will be denoted by the same reference numerals and detailed description thereof will be omitted.

図7は、本発明の第2実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、上記第1実施形態と同様に空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54として機能し、更に、撮影日時抽出部60として機能する。   FIG. 7 is a functional block diagram showing functions of the CPU 5 in the second embodiment of the present invention. The CPU 5 functions as a free space detection unit 50, a file detection unit 51, an average file size calculation unit 52, a recordable number calculation unit 53, and a display control unit 54 as in the first embodiment. 60 functions.

図8に示すように、撮影日時抽出部60には、例えば、現在日時から過去に遡る数時間、または数日分の期間が検出期間として設定されている。この検出期間は、デジタルカメラ2の製造時に設定しておいてもよいし、ユーザーが適宜設定を変更できるようにしてもよい。   As shown in FIG. 8, in the photographing date extraction unit 60, for example, a period of several hours or several days going back to the past from the current date and time is set as the detection period. This detection period may be set when the digital camera 2 is manufactured, or the user may change the setting as appropriate.

図9に示すように、撮影日時抽出部60は、メモリカード10に記録されている圧縮RAWファイル12のヘッダ情報39から撮影日時を抽出し、撮影日時が検出期間に該当する圧縮RAWファイル12を選択する。なお、撮影日時が検出期間に該当する圧縮RAWファイルが存在しない場合には、検出期間を徐々に過去に拡大して、該当する圧縮RAWファイル12を再選択するとよい。   As shown in FIG. 9, the shooting date / time extraction unit 60 extracts shooting date / time from the header information 39 of the compressed RAW file 12 recorded in the memory card 10, and the compressed RAW file 12 whose shooting date / time corresponds to the detection period is extracted. select. When there is no compressed RAW file whose shooting date / time corresponds to the detection period, the detection period may be gradually expanded in the past, and the corresponding compressed RAW file 12 may be selected again.

ファイル検出部51は、撮影日時抽出部60で選択された圧縮RAWファイル12のファイル数及び総ファイルサイズを検出し、平均ファイルサイズ算出部52は、この選択されたファイル数及び総ファイルサイズから圧縮RAWファイル12の平均ファイルサイズを算出する。その後、第1実施形態と同様に、記録可能枚数算出部53で記録可能枚数を算出し、表示制御部54がLCDパネル26に撮影可能枚数を表示させる。   The file detection unit 51 detects the number of files and the total file size of the compressed RAW file 12 selected by the shooting date extraction unit 60, and the average file size calculation unit 52 compresses from the selected number of files and the total file size. The average file size of the RAW file 12 is calculated. Thereafter, as in the first embodiment, the recordable sheet number calculation unit 53 calculates the recordable sheet number, and the display control unit 54 causes the LCD panel 26 to display the recordable sheet number.

撮影中にメモリカード10の記録容量に空きがなくなるのは、連続して撮影を行なっているときであるが、このような連続撮影時には似たような画像を撮影している場合が多いので、現在の撮影状況に近い平均ファイルサイズが得られる確率が高まり、より正確な撮影可能枚数表示を行なうことができる。   It is during continuous shooting that the recording capacity of the memory card 10 runs out during shooting, but it is often the case that similar images are shot during such continuous shooting. The probability of obtaining an average file size close to the current shooting situation is increased, and a more accurate number of shots can be displayed.

なお、上記実施形態では、1つの検出期間内の圧縮RAWファイル12から平均ファイルサイズを求めているが、この検出期間内のファイル数が少ない場合には、求められる平均ファイルサイズの精度が低下することがある。この場合には、メモリカード10に記録されている全ての圧縮RAWファイル12を撮影日時ごとに分類し、現在日時からの時間差に応じて重み付けを行なって平均ファイルサイズを求めてもよい。   In the above embodiment, the average file size is obtained from the compressed RAW file 12 within one detection period. However, when the number of files within this detection period is small, the accuracy of the obtained average file size is reduced. Sometimes. In this case, all the compressed RAW files 12 recorded in the memory card 10 may be classified by shooting date and time, and weighted according to the time difference from the current date and time to obtain the average file size.

図10は、本発明の第3実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、上記第1及び第2実施形態と同様に、空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54として機能し、撮影期間抽出部65、重み付け部66としても機能する。   FIG. 10 is a functional block diagram showing functions of the CPU 5 in the third embodiment of the present invention. As in the first and second embodiments, the CPU 5 functions as a free space detection unit 50, a file detection unit 51, an average file size calculation unit 52, a recordable number calculation unit 53, and a display control unit 54, and a shooting period. Also functions as an extraction unit 65 and a weighting unit 66.

図11に示すように、撮影期間抽出部65には、例えば、現在日時から過去に遡る第1〜第3検出期間が設定されている。これらの検出期間は、デジタルカメラ2の製造時に設定しておいてもよいし、ユーザーが適宜設定を変更できるようにしてもよい。   As illustrated in FIG. 11, for example, first to third detection periods that go back to the past from the current date and time are set in the shooting period extraction unit 65. These detection periods may be set when the digital camera 2 is manufactured, or the user may be able to change the settings as appropriate.

図12に示すように、撮影期間抽出部65は、メモリカード10に記録されている圧縮RAWファイル12のヘッダ情報から撮影日時を抽出し、撮影日時が各検出期間に該当する圧縮RAWファイルを選択する。ファイル検出部51は、撮影期間抽出部65で選択された圧縮RAWファイル12から、各検出期間ごとにファイル数及び総ファイルサイズを検出する。   As shown in FIG. 12, the shooting period extraction unit 65 extracts the shooting date and time from the header information of the compressed RAW file 12 recorded in the memory card 10, and selects a compressed RAW file whose shooting date and time corresponds to each detection period. To do. The file detection unit 51 detects the number of files and the total file size for each detection period from the compressed RAW file 12 selected by the shooting period extraction unit 65.

平均ファイルサイズ算出部52は、検出されたファイル数及び総ファイルサイズから、圧縮RAWファイル12の各期間別平均ファイルサイズを算出する。重み付け部66は、各期間別平均ファイルサイズに重み付けを行なう。この重み付けは、例えば、現在日時との時間差が大きいほど重みが低くなるように設定されており、第1検出期間の重みが最も重く、第3検出期間の重みが最も低くなる。その後、各期間別平均ファイルサイズから、圧縮RAWファイル12全体の平均ファイルサイズを算出し、記録可能枚数算出部53で、記録可能枚数を算出して、表示制御部54がLCDパネル26に撮影可能枚数を表示させる。   The average file size calculation unit 52 calculates the average file size for each period of the compressed RAW file 12 from the number of detected files and the total file size. The weighting unit 66 weights the average file size for each period. This weighting is set, for example, such that the larger the time difference from the current date and time is, the lower the weight is. The weight of the first detection period is the heaviest and the weight of the third detection period is the lowest. Thereafter, the average file size of the entire compressed RAW file 12 is calculated from the average file size for each period, and the recordable number calculation unit 53 calculates the recordable number of sheets, and the display control unit 54 can shoot on the LCD panel 26. Display the number of sheets.

これによれば、特定の検出期間内のファイル数が少なくても、より正確な撮影可能枚数表示を行なうことができる。   According to this, even if the number of files in a specific detection period is small, it is possible to display a more accurate number of shootable images.

上記第3実施形態では、撮影日時に応じて重み付けを変えることで圧縮RAWファイル12の平均ファイルサイズを補正したが、ヘッダ情報39に付帯されているサムネイル画像38を用いて平均ファイルサイズを補正してもよい。   In the third embodiment, the average file size of the compressed RAW file 12 is corrected by changing the weighting according to the shooting date and time. However, the average file size is corrected using the thumbnail image 38 attached to the header information 39. May be.

図13は、本発明の第4実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、上記各実施形態と同様に、空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54として機能し、量子化テーブル抽出部70、補正係数特定部71、補正部72としても機能する。   FIG. 13 is a functional block diagram showing functions of the CPU 5 in the fourth embodiment of the present invention. The CPU 5 functions as a free space detection unit 50, a file detection unit 51, an average file size calculation unit 52, a recordable number calculation unit 53, and a display control unit 54, as in the above embodiments, and a quantization table extraction unit 70. Also, it functions as the correction coefficient specifying unit 71 and the correction unit 72.

図14に示すように、サムネイル画像38は、ヘッダ情報75とJPEG画像76から構成されており、ヘッダ情報75には、JPEG画像76の生成時の非可逆圧縮に用いられた量子化テーブル77とハフマンテーブル78とが含まれている。図15に示すように、量子化テーブル抽出部70は、メモリカード10に記録されている各圧縮RAWファイル12から量子化テーブル77を抽出する。   As shown in FIG. 14, the thumbnail image 38 includes header information 75 and a JPEG image 76, and the header information 75 includes a quantization table 77 used for lossy compression when the JPEG image 76 is generated. A Huffman table 78 is included. As illustrated in FIG. 15, the quantization table extraction unit 70 extracts a quantization table 77 from each compressed RAW file 12 recorded in the memory card 10.

補正係数特定部71は、抽出された各量子化テーブルの水平/垂直の高周波成分の1つまたは複数から平均値を算出し、この算出された平均値に基づいて平均ファイルサイズの補正係数を特定する。例えば、平均値が0〜63のときには「1.0」、平均値が64〜127のときには「1.1」、平均値が128以上のときには「1.2」を補正係数として選択する。   The correction coefficient specifying unit 71 calculates an average value from one or more horizontal / vertical high-frequency components of each extracted quantization table, and specifies a correction coefficient for the average file size based on the calculated average value. To do. For example, “1.0” is selected as the correction coefficient when the average value is 0 to 63, “1.1” when the average value is 64 to 127, and “1.2” when the average value is 128 or more.

ファイル検出部51は、メモリカード10に記録されている圧縮RAWファイル12のファイル数及び総ファイルサイズを検出する。平均ファイルサイズ算出部52は、検出されたファイル数及び総ファイルサイズから、圧縮RAWファイル12の平均ファイルサイズを算出する。補正部72は、平均ファイルサイズに、補正係数特定部71で特定された補正係数を乗算して平均ファイルサイズを補正する。記録可能枚数算出部53は、メモリカード10の空き容量と補正された平均ファイルサイズから記録可能枚数を算出し、表示制御部54がLCDパネル26に撮影可能枚数を表示させる。   The file detection unit 51 detects the number of files and the total file size of the compressed RAW file 12 recorded on the memory card 10. The average file size calculation unit 52 calculates the average file size of the compressed RAW file 12 from the number of detected files and the total file size. The correcting unit 72 corrects the average file size by multiplying the average file size by the correction coefficient specified by the correction coefficient specifying unit 71. The recordable number calculating unit 53 calculates the recordable number from the free space of the memory card 10 and the corrected average file size, and the display control unit 54 causes the LCD panel 26 to display the number of recordable images.

これによれば、量子化テーブルによって画像の細かい部分の圧縮状況についても考慮して平均ファイルサイズを求めることができるので、より正確な撮影可能枚数表示を行なうことができる。   According to this, since the average file size can be obtained in consideration of the compression state of the fine part of the image by the quantization table, it is possible to display the number of shootable images more accurately.

また、上記各実施形態では、メモリカード10に記録されている撮影済みの圧縮RAWファイルだけをもとにして平均ファイルサイズを求めたが、実施中のスルー画表示に基づいて平均ファイルサイズを求めてもよい。   Further, in each of the above embodiments, the average file size is obtained based only on the photographed compressed RAW file recorded on the memory card 10, but the average file size is obtained based on the live view display being performed. May be.

図16は、本発明の第5実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、上記各実施形態と同様に、空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54として機能し、現撮影情報取得部80、撮影情報抽出部81としても機能する。   FIG. 16 is a functional block diagram showing functions of the CPU 5 in the fifth embodiment of the present invention. The CPU 5 functions as a free space detection unit 50, a file detection unit 51, an average file size calculation unit 52, a recordable number calculation unit 53, and a display control unit 54 as in the above embodiments, and a current shooting information acquisition unit 80. Also, it functions as the shooting information extraction unit 81.

現撮影情報取得部80は、スルー画表示中に、CCD16、撮影レンズ18、絞り19を駆動するCCDドライバ17、レンズ駆動部24、絞り駆動部25からシャッタスピード、絞り値、ISO感度、焦点距離等の現撮影情報を取得して撮影情報抽出部81に入力する。   The current shooting information acquisition unit 80 displays the shutter speed, aperture value, ISO sensitivity, focal length from the CCD driver 17, the lens driving unit 24, and the aperture driving unit 25 that drive the CCD 16, the imaging lens 18, and the aperture 19 during live view display. The current shooting information such as is acquired and input to the shooting information extraction unit 81.

図17に示すように、圧縮RAWファイル12のヘッダ情報39には、カメラタイプ、撮影サイズ、撮影日時、シャッタスピード、絞り値、画質モード、フォーカス、ISO感度、シャープネス、ストロボ、ホワイトバランス、露光プログラム、焦点距離、ストロボ補正値、マクロモード等の各種撮影情報が記録されている。図18に示すように、撮影情報抽出部81は、メモリカード10に記録されている圧縮RAWファイル12の撮影情報を抽出し、現撮影情報取得部80から入力されたスルー画表示中の現撮影情報と比較して、類似する撮影情報を有する圧縮RAWファイル12を選択する。   As shown in FIG. 17, the header information 39 of the compressed RAW file 12 includes camera type, shooting size, shooting date and time, shutter speed, aperture value, image quality mode, focus, ISO sensitivity, sharpness, strobe, white balance, and exposure program. Various shooting information such as a focal length, a strobe correction value, and a macro mode are recorded. As shown in FIG. 18, the shooting information extraction unit 81 extracts shooting information of the compressed RAW file 12 recorded in the memory card 10 and displays the current shooting during live view display input from the current shooting information acquisition unit 80. Compared to the information, the compressed RAW file 12 having similar shooting information is selected.

ファイル検出部51は、撮影情報抽出部81によって選択された圧縮RAWファイル12のファイル数及び総ファイルサイズを検出する。平均ファイルサイズ算出部52は、検出されたファイル数及び総ファイルサイズから、選択された圧縮RAWファイル12の平均ファイルサイズを算出する。記録可能枚数算出部53は、メモリカード10の空き容量と補正された平均ファイルサイズから記録可能枚数を算出し、表示制御部54がLCDパネル26に撮影可能枚数を表示させる。   The file detection unit 51 detects the number of files and the total file size of the compressed RAW file 12 selected by the shooting information extraction unit 81. The average file size calculation unit 52 calculates the average file size of the selected compressed RAW file 12 from the number of detected files and the total file size. The recordable number calculating unit 53 calculates the recordable number from the free space of the memory card 10 and the corrected average file size, and the display control unit 54 causes the LCD panel 26 to display the number of recordable images.

これによれば、スルー画表示している画像と類似した圧縮RAWファイルをもとにして平均ファイルサイズを求めることができるので、より正確な撮影可能枚数表示を行なうことができる。また、ヘッダ情報の検索はCPU5の負荷が小さいため、デジタルカメラ2の動作速度を低下させることなく実施可能である。   According to this, since the average file size can be obtained based on a compressed RAW file similar to an image displayed as a through image, more accurate number of shootable images can be displayed. In addition, the retrieval of the header information can be performed without reducing the operation speed of the digital camera 2 because the load on the CPU 5 is small.

また、上記実施形態では、スルー画表示の現撮影情報と類似する撮影情報を有する圧縮RAWファイル12から平均ファイルサイズを求めたが、同じような撮影情報であっても被写体が人物である場合、その人物の顔の数や位置、画像全体に占める占有エリアの違いによって圧縮RAWファイルのファイルサイズが異なってしまう。そこで、撮影情報だけでなく、スルー画表示と圧縮RAWファイルの顔情報についても比較を行ない、平均ファイルサイズを求めてもよい。   In the above embodiment, the average file size is obtained from the compressed RAW file 12 having shooting information similar to the current shooting information of the through image display. However, when the subject is a person even with similar shooting information, The file size of the compressed RAW file differs depending on the number and position of the person's face and the occupied area in the entire image. Therefore, the average file size may be obtained by comparing not only the shooting information but also the through image display and the face information of the compressed RAW file.

図19は、本発明の第6実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、上記第5実施形態と同様に、空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54、現撮影情報取得部80、撮影情報抽出部81として機能し、顔検出回路45によって検出された顔情報を比較して圧縮RAWファイル12を選択する顔情報比較部85としても機能する。   FIG. 19 is a functional block diagram showing functions of the CPU 5 in the sixth embodiment of the present invention. Similar to the fifth embodiment, the CPU 5 uses the free space detection unit 50, the file detection unit 51, the average file size calculation unit 52, the recordable number calculation unit 53, the display control unit 54, the current shooting information acquisition unit 80, the shooting. It functions as an information extraction unit 81 and also functions as a face information comparison unit 85 that compares the face information detected by the face detection circuit 45 and selects the compressed RAW file 12.

図20に示すように、顔情報抽出部である顔検出回路45は、スルー画表示時の現撮影情報取得後にSDRAM23からスルー画表示時のRAW画像を読み出し、被写体中の人物の顔の数や位置、占有面積等からなる顔情報を取得する。また、顔検出回路45は、スルー画表示の現撮影情報と圧縮RAWファイルの撮影情報との比較後に、撮影情報抽出部81によって選択された圧縮RAWファイル12の顔情報を取得する。これらの顔情報は、顔情報比較部85に入力される。   As shown in FIG. 20, the face detection circuit 45, which is a face information extraction unit, reads the RAW image at the time of live view display from the SDRAM 23 after acquiring the current shooting information at the time of live view display, and determines the number of faces of the person in the subject. Face information including position, occupied area, etc. is acquired. Further, the face detection circuit 45 acquires the face information of the compressed RAW file 12 selected by the shooting information extraction unit 81 after comparing the current shooting information of the through image display and the shooting information of the compressed RAW file. The face information is input to the face information comparison unit 85.

顔情報比較部85は、スルー画表示の顔情報と、撮影情報抽出部81によって選択された圧縮RAWファイル12の顔情報とを比較し、近似する圧縮RAWファイルを選択する。ファイル検出部51は、顔情報比較部85によって選択された圧縮RAWファイル12のファイル数及び総ファイルサイズを検出する。平均ファイルサイズ算出部52は、検出されたファイル数及び総ファイルサイズから、選択された圧縮RAWファイル12の平均ファイルサイズを算出する。記録可能枚数算出部53は、メモリカード10の空き容量と補正された平均ファイルサイズから記録可能枚数を算出し、表示制御部54がLCDパネル26に撮影可能枚数を表示させる。   The face information comparison unit 85 compares the face information of the through image display with the face information of the compressed RAW file 12 selected by the shooting information extraction unit 81, and selects an approximate compressed RAW file. The file detection unit 51 detects the number of files and the total file size of the compressed RAW file 12 selected by the face information comparison unit 85. The average file size calculation unit 52 calculates the average file size of the selected compressed RAW file 12 from the number of detected files and the total file size. The recordable number calculating unit 53 calculates the recordable number from the free space of the memory card 10 and the corrected average file size, and the display control unit 54 causes the LCD panel 26 to display the number of recordable images.

これによれば、撮影情報だけでなく、顔情報も近似している圧縮RAWファイルから平均ファイルサイズを求めることができるので、より正確な撮影可能枚数表示を行なうことができる。   According to this, since the average file size can be obtained from the compressed RAW file that approximates not only the shooting information but also the face information, a more accurate number of shots can be displayed.

また、上記各実施形態では、メモリカード10に記録されている撮影済みの圧縮RAWファイルをもとにして平均ファイルサイズを求めたが、実施中のスルー画表示に基づいて静止画撮影時の圧縮RAWファイルのファイルサイズを求めてもよい。   Further, in each of the above embodiments, the average file size is obtained based on the compressed RAW file already recorded in the memory card 10, but the compression at the time of still image shooting is based on the live view display being performed. The file size of the RAW file may be obtained.

図21は、本発明の第7実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、上記各実施形態と同様に空き容量検出部50、記録可能枚数算出部53、表示制御部54として機能し、更に、予想ファイルサイズ算出部90として機能する。EEPROM7は、本発明のサイズ比記録手段として機能し、静止画撮影とスルー画表示時の画像サイズ等のサイズ比が予め記録されている。   FIG. 21 is a functional block diagram showing functions of the CPU 5 in the seventh embodiment of the present invention. The CPU 5 functions as the free space detection unit 50, the recordable number calculation unit 53, and the display control unit 54 as in the above embodiments, and further functions as the expected file size calculation unit 90. The EEPROM 7 functions as a size ratio recording means of the present invention, and a size ratio such as an image size at the time of still image shooting and through image display is recorded in advance.

図22に示すようにデジタルカメラ2の電源がオンされてスルー画表示が開始されると、空き容量検出部50は、メモリカード10の空き容量を検出する。予想ファイルサイズ算出部90は、可逆圧縮伸長回路34を制御して一定間隔ごとにSDRAM23からスルー画表示時のRAW画像を読み出させ、これを可逆圧縮させてそのファイルサイズを取得する。   As shown in FIG. 22, when the digital camera 2 is turned on and through image display is started, the free space detection unit 50 detects the free space of the memory card 10. The expected file size calculation unit 90 controls the reversible compression / decompression circuit 34 to read a RAW image at the time of displaying a through image from the SDRAM 23 at regular intervals, and reversibly compress it to obtain the file size.

予想ファイルサイズ算出部90は、スルー画表示の圧縮RAW画像のファイルサイズと、EEPROM7から読み出したサイズ比から、スルー画表示と同じ被写体を静止画撮影したときに得られる圧縮RAWファイルの予想ファイルサイズを算出し、これを記録可能枚数算出部53に入力する。記録可能枚数算出部53は、メモリカード10の空き容量と予想ファイルサイズから記録可能枚数を算出し、表示制御部54がLCDパネル26に撮影可能枚数を表示させる。   The predicted file size calculation unit 90 calculates the predicted file size of the compressed RAW file obtained when the same subject as the through image display is captured from the file size of the compressed RAW image of the through image display and the size ratio read from the EEPROM 7. Is input to the recordable sheet number calculation unit 53. The recordable number calculating unit 53 calculates the recordable number from the free space of the memory card 10 and the expected file size, and the display control unit 54 displays the number of recordable images on the LCD panel 26.

これによれば、常に撮影状況に合せた撮影可能枚数表示を行なうことができる。また、メモリカード10内にファイルが記録されていない状況でも撮影可能枚数表示を行なうことができる。   According to this, it is possible to always display the number of shots that can be taken according to the shooting situation. Further, the number of shootable images can be displayed even when no file is recorded in the memory card 10.

また、上記実施形態では、一定期間ごとにスルー画表示のRAW画像を可逆圧縮したが、被写体に変化がない場合には撮影可能枚数にも変化がなく、CPUパワーが無駄に消費されるだけとなる。そのため、図23に示す本発明の第8実施形態のように、スルー画表示の顔情報を顔検出回路45で検出し、この顔情報の顔数や占有エリアが変化したときに、スルー画表示のRAW画像を可逆圧縮して撮影可能枚数を求めてもよい。   Further, in the above embodiment, the RAW image of the through image display is reversibly compressed at regular intervals. However, when the subject does not change, the number of storable images does not change, and the CPU power is only wasted. Become. Therefore, as in the eighth embodiment of the present invention shown in FIG. 23, when the face information of the through image display is detected by the face detection circuit 45 and the number of faces or the occupied area of the face information changes, the through image display The number of shootable images may be obtained by reversibly compressing the RAW image.

また、スルー画表示では、画像サイズを縮小するために高周波成分が排除されるので、その分だけ記録可能枚数の算出精度が低下する。そのため、例えば、上記第1〜第6実施形態による平均ファイルサイズの算出と、第7及び第8実施形態による予想ファイルサイズの算出とを同時に行ない、いずれかサイズの大きい方のファイルサイズに基づいて撮影可能枚数を求めてもよい。   In the through image display, since the high frequency component is eliminated in order to reduce the image size, the calculation accuracy of the recordable number is lowered accordingly. Therefore, for example, the calculation of the average file size according to the first to sixth embodiments and the calculation of the expected file size according to the seventh and eighth embodiments are performed at the same time, based on the larger file size. The number of images that can be shot may be obtained.

図24は、本発明の第9実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、例えば、第5及び第8実施形態と同様に、空き容量検出部50、ファイル検出部51、平均ファイルサイズ算出部52、記録可能枚数算出部53、表示制御部54、現撮影情報取得部80、撮影情報抽出部81、予想ファイルサイズ算出部90として機能する。   FIG. 24 is a functional block diagram showing functions of the CPU 5 in the ninth embodiment of the present invention. For example, as in the fifth and eighth embodiments, the CPU 5 uses the free space detection unit 50, the file detection unit 51, the average file size calculation unit 52, the recordable number calculation unit 53, the display control unit 54, and the current shooting information acquisition. Unit 80, imaging information extraction unit 81, and expected file size calculation unit 90.

図25に示すように、メモリカード10に記録されている圧縮RAWファイルからの記録可能枚数算出と、スルー画表示からの記録可能枚数算出を記録可能枚数算出部53で並行して同時に行ない、表示制御部54で両方の記録可能枚数を比較して、記録可能枚数の少ないほうに基づいて撮影可能枚数の表示を行なう。なお、本実施形態では、第5実施形態と第8実施形態とを並行して同時に行なうようにしたが、第1〜第6実施形態と、第7、第8実施形態とを適宜組み合わせて行なってもよい。これによれば、スルー画表示の高周波成分の排除による影響が小さくなるので、より高精度な撮影枚数表示を行なうことができる。   As shown in FIG. 25, the recordable sheet number calculation from the compressed RAW file recorded in the memory card 10 and the recordable sheet number calculation from the through image display are simultaneously performed by the recordable sheet number calculation unit 53 in parallel. The control unit 54 compares both recordable sheet numbers, and displays the number of recordable sheets based on the smaller recordable sheet number. In the present embodiment, the fifth embodiment and the eighth embodiment are performed simultaneously in parallel. However, the first to sixth embodiments and the seventh and eighth embodiments are appropriately combined. May be. According to this, since the influence due to the elimination of the high-frequency component in the through image display is reduced, it is possible to display the number of shots with higher accuracy.

また、上記各実施形態では、圧縮RAWファイル12の平均ファイルサイズを算出しているが、最後に行なわれた静止画撮影時の圧縮RAWファイルのファイルサイズを平均ファイルサイズとして用いてもよい。   In each of the above embodiments, the average file size of the compressed RAW file 12 is calculated. However, the file size of the compressed RAW file at the time of the last still image shooting may be used as the average file size.

図26は、本発明の第10実施形態におけるCPU5の機能を示す機能ブロック図である。CPU5は、空き容量検出部50、記録可能枚数算出部53、表示制御部54として機能し、EEPROM7は、本発明の平均データサイズ記録手段として機能する。   FIG. 26 is a functional block diagram showing functions of the CPU 5 in the tenth embodiment of the present invention. The CPU 5 functions as a free space detection unit 50, a recordable sheet number calculation unit 53, and a display control unit 54, and the EEPROM 7 functions as an average data size recording unit of the present invention.

図27に示すように、EEPROM7には、最後に行なわれた静止画撮影の圧縮RAWファイル12のファイルサイズが平均ファイルサイズとして記録されている。記録可能枚数算出部53は、空き容量検出部50から入力された空き容量と、EEPROM7から読み出した平均ファイルサイズとに基づいて記録可能枚数を算出し、表示制御部54は算出結果に基づいて撮影可能枚数をLCDパネル26に表示させる。   As shown in FIG. 27, the EEPROM 7 records the file size of the compressed RAW file 12 of the last still image shooting as an average file size. The recordable number calculation unit 53 calculates the recordable number based on the free space input from the free space detection unit 50 and the average file size read from the EEPROM 7, and the display control unit 54 captures images based on the calculation result. The possible number is displayed on the LCD panel 26.

メモリカード10内のファイルが削除されたときには、再度記録可能枚数の算出及び撮影可能枚数表示が行なわれる。また、静止画撮影が行なわれたときには、その静止画撮影により生成された圧縮RAWファイルのファイルサイズを平均ファイルサイズとして、EEPROM7の記録内容を更新し、再度記録可能枚数の算出及び撮影可能枚数の表示が行なわれる。   When the file in the memory card 10 is deleted, the number of recordable images and the number of shootable images are displayed again. When still image shooting is performed, the recording contents of the EEPROM 7 are updated with the file size of the compressed RAW file generated by the still image shooting as an average file size, and the number of recordable images is calculated again. Display is performed.

これによれば、メモリカード10に対する検索処理が空き容量だけとなるので、撮影可能枚数の表示にかかる時間が短縮できる。   According to this, since the search process for the memory card 10 is limited to the free space, the time required for displaying the number of shootable images can be shortened.

また、上記第10実施形態では、圧縮RAWファイル12の平均ファイルサイズだけから撮影可能枚数を求めたが、圧縮RAWファイル12よりもファイルサイズの大きなRAWファイル11の平均ファイルサイズから撮影可能枚数を求めてもよい。   In the tenth embodiment, the number of shootable images is obtained only from the average file size of the compressed RAW file 12, but the number of shootable images is obtained from the average file size of the RAW file 11 having a larger file size than the compressed RAW file 12. May be.

図26に示すように、本発明の第11実施形態では、EEPROM7に圧縮RAWファイル12の平均ファイルサイズである第1平均ファイルサイズと、RAWファイル11の平均ファイルサイズである第2平均ファイルサイズとが記録されている。これらの第1平均ファイルサイズ及び第2平均ファイルサイズは、最後に行なわれた静止画撮影の圧縮RAWファイル12とRAWファイルのファイルサイズである。   As shown in FIG. 26, in the eleventh embodiment of the present invention, the first average file size that is the average file size of the compressed RAW file 12 and the second average file size that is the average file size of the RAW file 11 are stored in the EEPROM 7. Is recorded. These first average file size and second average file size are the file sizes of the compressed RAW file 12 and the RAW file of the still image shooting performed last.

図28に示すように、記録可能枚数算出部53は、EEPROM7から第1平均ファイルサイズを読み出し、空き容量検出部50で検出された空き容量から圧縮RAWファイルの記録可能枚数である第1記録可能枚数を算出する。この第1記録可能枚数が「1」未満のときには、表示制御部54によりLCDパネル26に撮影できない旨を表示させる。   As shown in FIG. 28, the recordable number calculation unit 53 reads the first average file size from the EEPROM 7, and the first recordable number which is the recordable number of compressed RAW files from the free space detected by the free space detection unit 50. Calculate the number of sheets. When the first recordable number is less than “1”, the display control unit 54 displays on the LCD panel 26 that shooting is not possible.

また、第1記録可能枚数が「1」以上のときには、空き容量と第2平均ファイルサイズから、圧縮RAWファイル12の記録可能枚数である第2記録可能枚数を算出する。そして、第1記録可能枚数と第2記録可能枚数がともに「1」以上であるときには、LCDパネル26に撮影枚数を表示させる。また、第1記録可能枚数が「1」以上で、第2記録可能枚数が「1」未満のときには、LCDパネル26に撮影できない可能性があることを表示させる。   When the first recordable number is “1” or more, the second recordable number, which is the recordable number of the compressed RAW file 12, is calculated from the free space and the second average file size. When both the first recordable number and the second recordable number are “1” or more, the number of shots is displayed on the LCD panel 26. Further, when the first recordable number is “1” or more and the second recordable number is less than “1”, the LCD panel 26 is displayed that there is a possibility that the image cannot be taken.

メモリカード10内のファイルが削除されたときには、再度記録可能枚数の算出及び撮影可能枚数表示が行なわれる。また、静止画撮影が行なわれたときには、その静止画撮影により生成された圧縮RAWファイル及びRAWファイルのファイルサイズを第1平均ファイルサイズ及び第2平均ファイルサイズとして、EEPROM7の記録内容を更新し、再度記録可能枚数の算出及び撮影可能枚数の表示が行なわれる。   When the file in the memory card 10 is deleted, the number of recordable images and the number of shootable images are displayed again. In addition, when still image shooting is performed, the recorded contents of the EEPROM 7 are updated with the file size of the compressed RAW file and RAW file generated by the still image shooting as the first average file size and the second average file size, The calculation of the recordable number of sheets and the display of the number of recordable sheets are performed again.

これによれば、確実に撮影可能なときだけ撮影可能枚数を表示し、撮影できない可能性が少しでもあるときには警告を行なうことができるので、より確実な撮影可能枚数表示を行なうことができる。   According to this, the number of shootable images can be displayed only when the image can be reliably taken, and a warning can be given when there is even a possibility that the image cannot be taken.

以上、各実施形態を個別に実施する場合について説明したが、適宜組み合わせて実施してもよい。また、デジタルカメラを例に説明したが、デジタルカメラを内蔵した携帯電話機等にも適用可能である。   The case where each embodiment is implemented individually has been described above, but may be implemented in combination as appropriate. Further, although a digital camera has been described as an example, the present invention can also be applied to a mobile phone or the like with a built-in digital camera.

本発明のデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera of this invention. メモリカードに記録されるファイルを示す説明図である。It is explanatory drawing which shows the file recorded on a memory card. 圧縮RAWファイルの構成を示す説明図である。It is explanatory drawing which shows the structure of a compression RAW file. 第1実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 1st Embodiment. 平均ファイルサイズから撮影可能枚数を求める手順を示すフローチャートである。It is a flowchart which shows the procedure which calculates | requires imaging | photography possible number from average file size. 第1実施形態の平均ファイルサイズの算出方法を示すフローチャートである。It is a flowchart which shows the calculation method of the average file size of 1st Embodiment. 第2実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 2nd Embodiment. 第2実施形態の検出期間を表す説明図である。It is explanatory drawing showing the detection period of 2nd Embodiment. 第2実施形態の平均ファイルサイズの算出方法を示すフローチャートである。It is a flowchart which shows the calculation method of the average file size of 2nd Embodiment. 第3実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 3rd Embodiment. 第3実施形態の検出期間を表す説明図である。It is explanatory drawing showing the detection period of 3rd Embodiment. 第3実施形態の平均ファイルサイズの算出方法を示すフローチャートである。It is a flowchart which shows the calculation method of the average file size of 3rd Embodiment. 第4実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 4th Embodiment. サムネイル画像の構成を示す説明図である。It is explanatory drawing which shows the structure of a thumbnail image. 第4実施形態の平均ファイルサイズの算出方法を示すフローチャートである。It is a flowchart which shows the calculation method of the average file size of 4th Embodiment. 第5実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 5th Embodiment. ヘッダ情報の構成を示す説明図である。It is explanatory drawing which shows the structure of header information. 第5実施形態の平均ファイルサイズの算出方法を示すフローチャートである。It is a flowchart which shows the calculation method of the average file size of 5th Embodiment. 第6実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 6th Embodiment. 第6実施形態の平均ファイルサイズの算出方法を示すフローチャートである。It is a flowchart which shows the calculation method of the average file size of 6th Embodiment. 第7実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 7th Embodiment. スルー画表示から撮影可能枚数を求める手順を示す第7実施形態のフローチャートである。It is a flowchart of 7th Embodiment which shows the procedure which calculates | requires the imaging | photography possible number from a through image display. 顔情報の変化時にスルー画表示から撮影可能枚数を求める手順を示す第8実施形態のフローチャートである。It is a flowchart of 8th Embodiment which shows the procedure which calculates | requires the imaging | photography possible number from a through image display at the time of the change of face information. 第9実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 9th Embodiment. 平均ファイルサイズとスルー画から撮影可能枚数を求める手順を示す第9実施形態のフローチャートである。It is a flowchart of 9th Embodiment which shows the procedure which calculates | requires shootable number from an average file size and a through image. 第10実施形態のCPUの機能を表す機能ブロック図である。It is a functional block diagram showing the function of CPU of 10th Embodiment. 最後の静止画撮影のファイルサイズを平均ファイルサイズとして撮影可能枚数を求める手順を示す第10実施形態のフローチャートである。It is a flowchart of 10th Embodiment which shows the procedure which calculates | requires the imaging | photography possible number by making the file size of the last still image imaging | photography into an average file size. 圧縮RAWファイル及びRAWファイルの平均ファイルサイズから撮影可能枚数を求める手順を示す第11実施形態のフローチャートである。It is a flowchart of 11th Embodiment which shows the procedure which calculates | requires imaging | photography possible number from the average file size of a compression RAW file and a RAW file.

符号の説明Explanation of symbols

2 デジタルカメラ
5 CPU
7 EEPROM
10 メモリカード
11 RAWファイル
12 圧縮RAWファイル
13 JPEGファイル
16 CCD
23 SDRAM
26 LCDパネル
31 非可逆圧縮伸長回路
34 可逆圧縮伸長回路
37 圧縮RAW画像
38 サムネイル画像
39 ヘッダ情報
45 顔検出回路
50 空き容量検出部
51 ファイル検出部
52 平均ファイルサイズ算出部
53 記録可能枚数算出部
54 表示制御部
60 撮影日時抽出部
65 撮影期間抽出部
70 量子化テーブル抽出部
71 補正係数特定部
72 補正部
77 量子化テーブル
80 現撮影情報取得部
81 撮影情報抽出部
85 顔情報比較部
90 予想ファイルサイズ算出部
2 Digital camera 5 CPU
7 EEPROM
10 memory card 11 RAW file 12 compressed RAW file 13 JPEG file 16 CCD
23 SDRAM
26 LCD panel 31 Lossy compression / decompression circuit 34 Lossless compression / decompression circuit 37 Compressed RAW image 38 Thumbnail image 39 Header information 45 Face detection circuit 50 Free capacity detection unit 51 File detection unit 52 Average file size calculation unit 53 Recordable number calculation unit 54 Display control unit 60 Shooting date and time extraction unit 65 Shooting period extraction unit 70 Quantization table extraction unit 71 Correction coefficient specifying unit 72 Correction unit 77 Quantization table 80 Current shooting information acquisition unit 81 Shooting information extraction unit 85 Face information comparison unit 90 Expected file Size calculator

Claims (22)

静止画を撮影してCCD−RAWデータからなるRAW画像を生成する撮像手段と、
前記RAW画像を可逆圧縮して圧縮RAW画像を生成する可逆圧縮処理手段と、
前記圧縮RAW画像を記録媒体に記録する記録処理手段と、
前記記録媒体の空き容量を検出する空き容量検出手段と、
前記記録媒体に記録されている前記圧縮RAW画像の平均データサイズを特定する平均データサイズ特定手段と、
前記空き容量と前記平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数を算出する記録可能枚数算出手段と、
前記記録可能枚数算出手段の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させる表示制御手段を備えることを特徴とするデジタルカメラ。
Imaging means for capturing a still image and generating a RAW image composed of CCD-RAW data;
Reversible compression processing means for reversibly compressing the RAW image to generate a compressed RAW image;
Recording processing means for recording the compressed RAW image on a recording medium;
Free space detecting means for detecting the free space of the recording medium;
Average data size specifying means for specifying an average data size of the compressed RAW image recorded on the recording medium;
Recordable number calculating means for calculating the number of compressed RAW images that can be recorded on the recording medium based on the free space and the average data size;
A digital camera comprising display control means for causing a display means to display the number of images that can be photographed or the fact that photography is not possible based on the calculation result of the recordable number of sheets calculation means.
前記平均データサイズ特定手段は、前記記録媒体に記録されている前記圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、
前記画像数及び総データサイズから、前記圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部を備えることを特徴とする請求項1記載のデジタルカメラ。
The average data size specifying means includes a data detection unit for detecting the number of compressed RAW images recorded on the recording medium and a total data size;
The digital camera according to claim 1, further comprising an average data size calculation unit that calculates an average data size of the compressed RAW image from the number of images and the total data size.
前記平均データサイズ特定手段は、前記記録媒体に記録されている前記圧縮RAW画像の付帯情報から撮影日時を抽出し、予め設定されている検出期間に該当する撮影日時を有する前記圧縮RAW画像を選択する撮影日時抽出部と、
選択された前記圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、
前記画像数及び総データサイズから、前記圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部を備えることを特徴とする請求項1記載のデジタルカメラ。
The average data size specifying unit extracts a shooting date and time from auxiliary information of the compressed RAW image recorded on the recording medium, and selects the compressed RAW image having a shooting date and time corresponding to a preset detection period. A shooting date and time extraction unit to
A data detection unit for detecting the number of selected compressed RAW images and the total data size;
The digital camera according to claim 1, further comprising an average data size calculation unit that calculates an average data size of the compressed RAW image from the number of images and the total data size.
前記撮影日時抽出部は、前記記録媒体に前記検出期間に該当する撮影日時の前記圧縮RAW画像が記録されていないときに、前記検出期間を徐々に拡大して該当する前記圧縮RAW画像を選択することを特徴とする請求項3記載のデジタルカメラ。   The shooting date and time extracting unit selects the corresponding compressed RAW image by gradually expanding the detection period when the compressed RAW image of the shooting date and time corresponding to the detection period is not recorded on the recording medium. The digital camera according to claim 3. 前記平均データサイズ特定手段は、前記記録媒体に記録されている前記圧縮RAW画像の付帯情報から撮影日時を抽出し、予め設定されている複数の検出期間ごとに該当する撮影日時を有する前記圧縮RAW画像を選択する撮影期間抽出部と、
前記各検出期間内の前記圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、
前記各検出期間の画像数及び総データサイズから、前記各検出期間ごとに前記圧縮RAW画像の期間別平均データサイズを算出する期間別平均データサイズ算出部と、
前記各期間別平均データサイズに対し、現在日時との時間差に応じて重み付けを行なう重み付け部と、
前記各期間別平均データサイズの平均を算出して、前記記録媒体に記録されている前記圧縮RAW画像全体の平均データサイズとする平均データサイズ算出部を備えることを特徴とする請求項1記載のデジタルカメラ。
The average data size specifying means extracts the shooting date and time from the supplementary information of the compressed RAW image recorded on the recording medium, and has the shooting date and time corresponding to a plurality of preset detection periods. A shooting period extraction unit for selecting an image;
A data detection unit for detecting the number of compressed RAW images and the total data size within each detection period;
An average data size calculation unit by period for calculating an average data size by period of the compressed RAW image for each detection period from the number of images and the total data size of each detection period;
A weighting unit that weights the average data size for each period according to a time difference from the current date and time;
The average data size calculation unit according to claim 1, further comprising: an average data size calculating unit that calculates an average of the average data size for each period and sets the average data size of the entire compressed RAW image recorded on the recording medium. Digital camera.
前記重み付け部は、現在日時から過去に遡るにしたがって重みを軽くすることを特徴とする請求項5記載のデジタルカメラ。   The digital camera according to claim 5, wherein the weighting unit reduces the weight as going back from the current date and time to the past. 前記平均データサイズ特定手段は、前記記録媒体に記録されている前記圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、
前記画像数及び総データサイズから、前記圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部と、
前記圧縮RAW画像に付帯されている縮小画像から、前記縮小画像の生成時に、前記RAW画像のサイズを縮小して非可逆圧縮する際に用いられた量子化テーブルを抽出する量子化テーブル抽出部と、
前記量子化テーブルの高周波成分の平均値を算出し、前記平均値に基づいて前記平均データサイズの補正に用いる補正係数を特定する補正係数特定部と、
前記補正係数を用いて前記平均データサイズを補正する補正部を備えることを特徴とする請求項1記載のデジタルカメラ。
The average data size specifying means includes a data detection unit for detecting the number of compressed RAW images recorded on the recording medium and a total data size;
An average data size calculator that calculates an average data size of the compressed RAW image from the number of images and the total data size;
A quantization table extraction unit that extracts a quantization table used for irreversible compression by reducing the size of the RAW image from the reduced image attached to the compressed RAW image when generating the reduced image; ,
A correction coefficient specifying unit that calculates an average value of high-frequency components of the quantization table and specifies a correction coefficient used for correcting the average data size based on the average value;
The digital camera according to claim 1, further comprising a correction unit that corrects the average data size using the correction coefficient.
前記平均データサイズ特定手段は、前記撮像手段を連続的に動作させて前記表示手段に被写体の画像をリアルタイムに表示するスルー画表示時に、前記撮像手段からシャッタスピード、絞り値、ISO感度等の現撮影情報を取得する現撮影情報取得部と、
前記記録媒体に記録されている前記圧縮RAW画像の付帯情報から、シャッタスピード、絞り値、ISO感度等の撮影情報を抽出し、前記現撮影情報と比較して類似する撮影情報を有する前記圧縮RAW画像を選択する撮影情報抽出部と、
選択された前記圧縮RAW画像の画像数及び総データサイズを検出するデータ検出部と、
前記画像数及び総データサイズから、前記圧縮RAW画像の平均データサイズを算出する平均データサイズ算出部を備えることを特徴とする請求項1記載のデジタルカメラ。
The average data size specifying unit is configured to display current images such as a shutter speed, an aperture value, and ISO sensitivity from the imaging unit during live view display in which the imaging unit is continuously operated to display an image of a subject in real time on the display unit. A current shooting information acquisition unit for acquiring shooting information;
Shooting information such as shutter speed, aperture value, ISO sensitivity, etc. is extracted from incidental information of the compressed RAW image recorded on the recording medium, and the compressed RAW having shooting information similar to the current shooting information. A shooting information extraction unit for selecting an image;
A data detection unit for detecting the number of selected compressed RAW images and the total data size;
The digital camera according to claim 1, further comprising an average data size calculation unit that calculates an average data size of the compressed RAW image from the number of images and the total data size.
前記平均データサイズ特定手段は、前記静止画撮影と、前記撮像手段を連続的に動作させて前記表示手段に被写体の画像をリアルタイムに表示するスルー画表示との画像サイズ等のサイズ比が予め記録されたサイズ比記録部と、
前記可逆圧縮処理手段に所定のタイミングで前記スルー画表示時のRAW画像を可逆圧縮させ、その際に得られた圧縮RAW画像のデータサイズと前記サイズ比から、前記スルー画表示と同じ被写体を静止画撮影した時に得られる圧縮RAW画像の予想データサイズを算出する予想データサイズ算出部とを備え、
前記記録可能枚数算出手段は、前記空き容量と前記平均データサイズ、及び前記空き容量と前記予想データサイズに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数を算出し、
前記表示制御手段は、前記平均データサイズと予想データサイズとに基づく記録可能枚数のうちいずれか少ないほうの記録可能枚数に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させることを特徴とする請求項2〜8いずれか記載のデジタルカメラ。
The average data size specifying unit records in advance a size ratio such as an image size between the still image shooting and a through image display in which the imaging unit is continuously operated to display a subject image in real time on the display unit. A recorded size ratio recording unit,
The lossless compression processing means reversibly compresses the RAW image at the time of the live view display at a predetermined timing, and the same subject as the live view display is stationary based on the data size and the size ratio of the compressed RAW image obtained at that time. An expected data size calculation unit that calculates an expected data size of a compressed RAW image obtained when an image is captured,
The recordable number calculating means calculates the number of compressed RAW images that can be recorded on the recording medium based on the free capacity and the average data size, and the free capacity and the expected data size.
The display control means causes the display means to display the number of images that can be shot or the fact that shooting is not possible based on the smaller number of recordable sheets based on the average data size and the expected data size. The digital camera according to claim 2, wherein:
前記スルー画のRAW画像を解析して人物の顔を表す顔情報を抽出する顔情報抽出手段を設け、
前記予想データサイズ算出部は、前記顔情報が変化したときに、前記可逆圧縮処理手段にスルー画のRAW画像を可逆圧縮させることを特徴とする請求項9記載のデジタルカメラ。
A face information extracting unit for analyzing the through image of the through image and extracting face information representing a person's face;
The digital camera according to claim 9, wherein the predicted data size calculation unit causes the lossless compression processing unit to losslessly compress the live image of the through image when the face information changes.
前記平均データサイズ特定手段は、前記スルー画表示時に前記撮像手段で生成されるRAW画像と、前記撮影情報抽出部によって選択された前記圧縮RAW画像を解析して人物の顔を表す顔情報を抽出する顔情報抽出部と、
前記スルー画表示の顔情報と前記圧縮RAW画像の顔情報とを比較して、前記スルー画表示の顔情報に顔の数や位置、占有エリア等のいずれかまたは全てが同じ、あるいは近似する前記圧縮RAW画像を選択する顔情報比較部を備え、
前記データ検出部は、前記顔情報比較部によって選択された前記圧縮RAW画像の画像数及び総データサイズを検出し、
前記平均データサイズ算出部は、前記画像数及び総データサイズから前記圧縮RAW画像の平均データサイズを算出することを特徴とする請求項8記載のデジタルカメラ。
The average data size specifying unit extracts face information representing a person's face by analyzing the RAW image generated by the imaging unit during the through image display and the compressed RAW image selected by the shooting information extraction unit. A face information extraction unit to
The face information of the through image display is compared with the face information of the compressed RAW image, and the face information of the through image display has the same or approximate any or all of the number, position, occupied area, etc. of the face. A face information comparison unit for selecting a compressed RAW image;
The data detection unit detects the number of compressed RAW images and the total data size selected by the face information comparison unit;
The digital camera according to claim 8, wherein the average data size calculation unit calculates an average data size of the compressed RAW image from the number of images and the total data size.
前記記録可能枚数を記録し、前記記録可能枚数が新たに算出されるごとに更新される記録可能枚数記録手段を備えることを特徴とする請求項1〜11いずれか記載のデジタルカメラ。   12. The digital camera according to claim 1, further comprising a recordable number recording unit that records the recordable number of sheets and is updated each time the recordable number of sheets is newly calculated. 前記記録可能枚数の算出は、前記記録媒体に新たな前記圧縮RAW画像が記録されたとき、あるいは前記記録媒体から記録済みの前記圧縮RAW画像が削除されたときに行なわれることを特徴とする請求項12記載のデジタルカメラ。   The number of recordable sheets is calculated when a new compressed RAW image is recorded on the recording medium or when the recorded compressed RAW image is deleted from the recording medium. Item 13. A digital camera according to Item 12. 前記平均データサイズ特定手段は、前記記録媒体に前記圧縮RAW画像が記録されていないときに、前記記録媒体に記録されている前記RAW画像のデータサイズを前記平均データサイズとして設定することを特徴とする請求項1〜13いずれか記載のデジタルカメラ。   The average data size specifying means sets the data size of the RAW image recorded on the recording medium as the average data size when the compressed RAW image is not recorded on the recording medium. The digital camera according to claim 1. 静止画撮影時と、被写体の画像をリアルタイムに表示するスルー画表示時にCCD−RAWデータからなるRAW画像を生成する撮像手段と、
前記RAW画像を可逆圧縮して、圧縮RAW画像を生成する可逆圧縮処理手段と、
前記静止画撮影時の圧縮RAW画像を記録媒体に記録する記録処理手段と、
前記静止画撮影と前記スルー画表示との画像サイズ等のサイズ比が予め記録されたサイズ比記録手段と、
前記可逆圧縮処理手段に所定のタイミングで前記スルー画表示時のRAW画像を可逆圧縮させ、その際に得られた圧縮RAW画像のデータサイズと前記サイズ比から、前記スルー画表示と同じ被写体を静止画撮影した時に得られる圧縮RAW画像の予想データサイズを算出する予想データサイズ算出手段と、
前記記録媒体の空き容量を検出する空き容量検出手段と、
前記予想データサイズと前記空き容量とに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数を算出する記録可能枚数算出手段と、
前記記録可能枚数算出手段の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させる表示制御手段を備えることを特徴とするデジタルカメラ。
An imaging means for generating a RAW image composed of CCD-RAW data at the time of still image shooting and at the time of a through image display for displaying a subject image in real time;
Reversible compression processing means for reversibly compressing the RAW image to generate a compressed RAW image;
Recording processing means for recording a compressed RAW image at the time of still image shooting on a recording medium;
A size ratio recording means in which a size ratio such as an image size between the still image shooting and the through image display is recorded in advance;
The lossless compression processing means reversibly compresses the RAW image at the time of the live view display at a predetermined timing, and the same subject as the live view display is stationary based on the data size and the size ratio of the compressed RAW image obtained at that time. An expected data size calculating means for calculating an expected data size of a compressed RAW image obtained when an image is shot;
Free space detecting means for detecting the free space of the recording medium;
Recordable number calculating means for calculating the number of compressed RAW images that can be recorded on the recording medium based on the expected data size and the free space;
A digital camera comprising display control means for causing a display means to display the number of images that can be photographed or the fact that photography is not possible based on the calculation result of the recordable number of sheets calculation means.
前記スルー画表示時のRAW画像を解析して人物の顔を表す顔情報を抽出する顔情報抽出手段を設け、
前記可逆圧縮処理手段は、前記顔情報が変化したときに前記スルー画表示の前記RAW画像を可逆圧縮することを特徴とする請求項15記載のデジタルカメラ。
Face information extracting means for extracting face information representing a person's face by analyzing a RAW image at the time of the through image display;
16. The digital camera according to claim 15, wherein the reversible compression processing means reversibly compresses the RAW image displayed in the through image when the face information changes.
静止画を撮影してCCD−RAWデータからなるRAW画像を生成する撮像手段と、
前記RAW画像を可逆圧縮して、圧縮RAW画像を生成する可逆圧縮処理手段と、
前記圧縮RAW画像を記録媒体に記録する記録処理手段と、
前記記録媒体の空き容量を検出する空き容量検出手段と、
前記圧縮RAW画像の平均データサイズを記録する平均データサイズ記録手段と、
前記空き容量と前記平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像枚数を算出する記録可能枚数算出手段と、
前記記録可能枚数算出手段の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示手段に表示させる表示制御手段を備え、
前記静止画撮影が行なわれたときに、その静止画撮影により生成された前記圧縮RAW画像のデータサイズが、新たな平均データサイズとして前記平均データサイズ記録手段に記録されることを特徴とするデジタルカメラ。
Imaging means for capturing a still image and generating a RAW image composed of CCD-RAW data;
Reversible compression processing means for reversibly compressing the RAW image to generate a compressed RAW image;
Recording processing means for recording the compressed RAW image on a recording medium;
Free space detecting means for detecting the free space of the recording medium;
Average data size recording means for recording an average data size of the compressed RAW image;
A recordable number calculating means for calculating the number of compressed RAW images that can be recorded on the recording medium based on the free space and the average data size;
Based on the calculation result of the recordable number calculating means, the display control means for displaying on the display means the number of images that can be shot or the fact that shooting is not possible,
When the still image shooting is performed, the data size of the compressed RAW image generated by the still image shooting is recorded in the average data size recording unit as a new average data size. camera.
静止画を撮影してCCD−RAWデータからなるRAW画像を生成する撮像手段と、
前記RAW画像を可逆圧縮して、圧縮RAW画像を生成する可逆圧縮処理手段と、
前記圧縮RAW画像を記録媒体に記録する記録処理手段と、
前記記録媒体の空き容量を検出する空き容量検出手段と、
前記圧縮RAW画像の平均データサイズである第1平均データサイズと、前記RAW画像の平均データサイズである第2平均データサイズを記録する平均データサイズ記録手段と、
前記空き容量と前記第1平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数である第1記録可能枚数を算出し、前記第1記録可能枚数が「1」以上であるときに、前記空き容量と前記第2平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数である第2記録可能枚数を算出する記録可能枚数算出手段と、
前記第1記録可能枚数が「1」未満のときに、表示手段に撮影できない旨を表示させ、前記第1記録可能枚数及び第2記録可能枚数がともに「1」以上であるときに撮影可能枚数を前記表示手段に表示させ、前記第1記録可能枚数が「1」以上で、前記第2記録可能枚数が「1」未満であるときには撮影できない可能性があることを前記表示手段に警告表示させる表示制御手段を備え、
前記静止画撮影が行なわれたときに、その静止画撮影により生成された前記圧縮RAW画像と前記RAW画像のデータサイズが、新たな第1平均データサイズ及び第2平均データサイズとして前記平均データサイズ記録手段に記録されることを特徴とするデジタルカメラ。
Imaging means for capturing a still image and generating a RAW image composed of CCD-RAW data;
Reversible compression processing means for reversibly compressing the RAW image to generate a compressed RAW image;
Recording processing means for recording the compressed RAW image on a recording medium;
Free space detecting means for detecting the free space of the recording medium;
Average data size recording means for recording a first average data size that is an average data size of the compressed RAW image and a second average data size that is an average data size of the RAW image;
Based on the free space and the first average data size, a first recordable number that is the number of compressed RAW images that can be recorded on the recording medium is calculated, and the first recordable number is “1” or more. A recordable sheet number calculating means for calculating a second recordable sheet number, which is the number of compressed RAW images that can be recorded on the recording medium, on the basis of the free space and the second average data size;
When the first recordable number is less than “1”, the display means displays that the image cannot be shot, and when both the first recordable number and the second recordable number are “1” or more, the number of recordable images Is displayed on the display means, and when the first recordable number is “1” or more and the second recordable number is less than “1”, a warning is displayed on the display means that there is a possibility that photographing cannot be performed. Comprising display control means,
When the still image shooting is performed, the data size of the compressed RAW image and the RAW image generated by the still image shooting is the average data size as the new first average data size and second average data size. A digital camera recorded on a recording means.
静止画撮影を行なってCCD−RAWデータからなるRAW画像を生成し、前記RAW画像を可逆圧縮した圧縮RAW画像を記録媒体に記録するデジタルカメラの制御方法において、
前記記録媒体の空き容量を検出するステップと、
前記記録媒体に記録されている前記圧縮RAW画像の平均データサイズを特定するステップと、
前記空き容量と前記平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数を算出するステップと、
前記記録可能枚数に基づいて、撮影可能な枚数、または撮影できない旨を表示するステップを備えることを特徴とするデジタルカメラの制御方法。
In a control method of a digital camera that performs still image shooting, generates a RAW image composed of CCD-RAW data, and records a compressed RAW image obtained by reversibly compressing the RAW image on a recording medium.
Detecting the free space of the recording medium;
Specifying an average data size of the compressed RAW image recorded on the recording medium;
Calculating the number of compressed RAW images that can be recorded on the recording medium based on the free space and the average data size;
A method for controlling a digital camera, comprising the step of displaying the number of images that can be shot or the fact that shooting is not possible based on the recordable number.
静止画撮影時と、被写体の画像をリアルタイムに表示するスルー画表示とを行なって、CCD−RAWデータからなるRAW画像を生成し、前記RAW画像を可逆圧縮した圧縮静止画RAW画像を記録媒体に記録するデジタルカメラの制御方法において、
前記記録媒体の空き容量を検出するステップと、
前記スルー画表示時のRAW画像を可逆圧縮してデータサイズを検出するステップと、
前記データサイズと、前記静止画撮影と前記スルー画表示との画像サイズ等のサイズ比から、前記スルー画表示と同じ被写体を静止画撮影した時に得られる圧縮RAW画像の予想データサイズを算出するステップと、
前記空き容量と前記予想データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数を算出するステップと、
前記記録可能枚数の算出結果に基づいて、撮影可能な枚数、または撮影できない旨を表示するステップを備えることを特徴とするデジタルカメラの制御方法。
A RAW image composed of CCD-RAW data is generated during still image shooting and a through image display for displaying a subject image in real time, and a compressed still image RAW image obtained by reversibly compressing the RAW image is used as a recording medium. In the control method of the digital camera to record,
Detecting the free space of the recording medium;
Reversibly compressing the RAW image at the time of displaying the live view to detect the data size;
A step of calculating an expected data size of a compressed RAW image obtained when a still image of the same subject as that of the through image display is captured from the data size and a size ratio such as an image size between the still image capturing and the through image display. When,
Calculating the number of compressed RAW images that can be recorded on the recording medium based on the free space and the expected data size;
A digital camera control method comprising a step of displaying the number of images that can be photographed or the fact that photographing is impossible based on the calculation result of the recordable number of sheets.
静止画撮影を行なってCCD−RAWデータからなるRAW画像を生成し、前記RAW画像を可逆圧縮した圧縮RAW画像を記録媒体に記録するデジタルカメラの制御方法において、
前記記録媒体の空き容量を検出するステップと、
前記空き容量と、予め設定されている前記圧縮RAW画像の平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数を算出するステップと、
前記記録可能枚数に基づいて、撮影可能な枚数、または撮影できない旨を表示するステップと、
前記静止画撮影が行なわれたときに、その静止画撮影により生成された前記圧縮RAW画像のデータサイズを新たな平均データサイズとして設定するステップを備えることを特徴とするデジタルカメラの制御方法。
In a control method of a digital camera that performs still image shooting, generates a RAW image composed of CCD-RAW data, and records a compressed RAW image obtained by reversibly compressing the RAW image on a recording medium.
Detecting the free space of the recording medium;
Calculating the number of compressed RAW images that can be recorded on the recording medium based on the free space and a preset average data size of the compressed RAW images;
Based on the recordable number of sheets, displaying the number of images that can be photographed or the fact that photography is not possible,
A method for controlling a digital camera, comprising: setting a data size of the compressed RAW image generated by the still image shooting as a new average data size when the still image shooting is performed.
静止画撮影を行なってCCD−RAWデータからなるRAW画像を生成し、前記RAW画像を可逆圧縮した圧縮RAW画像を記録媒体に記録するデジタルカメラの制御方法において、
前記記録媒体の空き容量を検出するステップと、
前記空き容量と、予め設定されている前記圧縮RAW画像の平均データサイズである第1平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数である第1記録可能枚数を算出するステップと、
前記第1記録可能枚数が「1」未満のときに、撮影できない旨を表示するステップと、
前記第1記録可能枚数が「1」以上であるときに、前記空き容量と、予め設定されている前記RAW画像の平均データサイズである前記第2平均データサイズとに基づいて、前記記録媒体に記録可能な前記圧縮RAW画像の枚数である第2記録可能枚数を算出するステップと、
前記第1記録可能枚数及び第2記録可能枚数がともに「1」以上であるときに撮影可能枚数を表示するステップと、
前記第1記録可能枚数数が「1」以上で、前記第2記録可能枚数が「1」未満であるときに撮影できない可能性があることを警告表示するステップと、
前記静止画撮影が行なわれたときに、その静止画撮影により生成された前記圧縮RAW画像と前記RAW画像のファイルサイズを新たな第1平均データサイズ及び第2平均データサイズとして設定するステップとを備えることを特徴とするデジタルカメラの制御方法。
In a control method of a digital camera that performs still image shooting, generates a RAW image composed of CCD-RAW data, and records a compressed RAW image obtained by reversibly compressing the RAW image on a recording medium.
Detecting the free space of the recording medium;
A first recordable number of sheets that is the number of compressed RAW images that can be recorded on the recording medium based on the free space and a first average data size that is a predetermined average data size of the compressed RAW images. Calculating steps,
Displaying that the image cannot be taken when the first recordable number is less than “1”;
When the first recordable number of sheets is “1” or more, based on the free space and the second average data size that is a preset average data size of the RAW image, Calculating a second recordable number, which is the number of compressed RAW images that can be recorded;
Displaying the number of shootable images when both the first recordable number and the second recordable number are “1” or more;
Displaying a warning that there is a possibility that shooting may not be possible when the first recordable number is “1” or more and the second recordable number is less than “1”;
A step of setting the compressed RAW image generated by the still image shooting and the file size of the RAW image as new first average data size and second average data size when the still image shooting is performed; A digital camera control method comprising:
JP2007083446A 2007-03-28 2007-03-28 Digital camera and control method thereof Pending JP2008244940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007083446A JP2008244940A (en) 2007-03-28 2007-03-28 Digital camera and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007083446A JP2008244940A (en) 2007-03-28 2007-03-28 Digital camera and control method thereof

Publications (1)

Publication Number Publication Date
JP2008244940A true JP2008244940A (en) 2008-10-09

Family

ID=39915712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007083446A Pending JP2008244940A (en) 2007-03-28 2007-03-28 Digital camera and control method thereof

Country Status (1)

Country Link
JP (1) JP2008244940A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183351A (en) * 2009-02-05 2010-08-19 Nikon Corp Image data holding apparatus, and image processing program
EP2713604A4 (en) * 2012-06-08 2014-11-12 Huawei Device Co Ltd Method for determining number of photos capable of being taken, and photographing device
CN113302651A (en) * 2019-01-15 2021-08-24 伟摩有限责任公司 Detecting sensor occlusion using compressed image data
JP2021129197A (en) * 2020-02-13 2021-09-02 キヤノン株式会社 Electronic devices, control methods for electronic devices, programs and recording media

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183351A (en) * 2009-02-05 2010-08-19 Nikon Corp Image data holding apparatus, and image processing program
EP2713604A4 (en) * 2012-06-08 2014-11-12 Huawei Device Co Ltd Method for determining number of photos capable of being taken, and photographing device
US9191564B2 (en) 2012-06-08 2015-11-17 Huawei Device Co., Ltd. Method for determining the number of available shots and image-shooting apparatus
CN113302651A (en) * 2019-01-15 2021-08-24 伟摩有限责任公司 Detecting sensor occlusion using compressed image data
CN113302651B (en) * 2019-01-15 2024-05-24 伟摩有限责任公司 Detecting sensor occlusion using compressed image data
JP2021129197A (en) * 2020-02-13 2021-09-02 キヤノン株式会社 Electronic devices, control methods for electronic devices, programs and recording media
JP7520524B2 (en) 2020-02-13 2024-07-23 キヤノン株式会社 Electronic device, electronic device control method, program, and recording medium

Similar Documents

Publication Publication Date Title
KR101624648B1 (en) Digital image signal processing method, medium for recording the method, digital image signal pocessing apparatus
JP4571617B2 (en) Imaging apparatus and imaging method
US7630567B2 (en) Adaptive image coding with pressure-selected regions
US8264564B2 (en) Image pick-up apparatus, method of producing file of obtained image, and recording medium
US20110261230A1 (en) Image-capturing device
US20060028576A1 (en) Imaging apparatus
US8416310B2 (en) Imaging device and imaging processing apparatus capable of recording and generating movie image data
JP5126207B2 (en) Imaging device
US8237802B2 (en) Method and apparatus for determining shaken image by using auto focusing
JP5655668B2 (en) Imaging apparatus, image processing method, and program
KR101721226B1 (en) digital image signal processing apparatus and method for controlling the same
JP2008244940A (en) Digital camera and control method thereof
US20050146619A1 (en) Electronic camera
US7746389B2 (en) Image capture apparatus including generation of backup data
JP2007027971A (en) Image capturing apparatus, control method therefor, program, and recording medium
JP2007003939A (en) Imaging device
JP2010081100A (en) Imaging device, imaging method, and imaging program
JP2008109305A (en) Image processing apparatus and image processing apparatus control method
JP2008131572A (en) Surveillance camera device and imaging method of surveillance camera
CN101151896A (en) Display device and display method
JP5170217B2 (en) Camera, camera control program, and photographing method
JP4888829B2 (en) Movie processing device, movie shooting device, and movie shooting program
JP3913046B2 (en) Imaging device
JP2018110300A (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP5600935B2 (en) Image recording apparatus, image recording method, and image recording program