JP5224951B2 - Image processing apparatus, method, and program - Google Patents
Image processing apparatus, method, and program Download PDFInfo
- Publication number
- JP5224951B2 JP5224951B2 JP2008182847A JP2008182847A JP5224951B2 JP 5224951 B2 JP5224951 B2 JP 5224951B2 JP 2008182847 A JP2008182847 A JP 2008182847A JP 2008182847 A JP2008182847 A JP 2008182847A JP 5224951 B2 JP5224951 B2 JP 5224951B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- image
- image data
- area
- jpeg
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、画像再生時のピント確認を容易に行うことのできる画像処理装置、方法及びプログラムに関する。 The present invention relates to an image processing apparatus, method, and program capable of easily performing focus confirmation during image reproduction.
近年、急速に普及したデジタルカメラは、撮影した画像を背面の液晶モニタに表示することで、撮影直後に画像を確認できることが大きな利点となっている。画像再生方法に関しては、利用者の利便性を向上させる様々な方法がこれまでに提案されている。 In recent years, a digital camera that has been rapidly spread has a great advantage that an image can be confirmed immediately after photographing by displaying the photographed image on a liquid crystal monitor on the back. As for the image reproduction method, various methods for improving user convenience have been proposed so far.
例えば特許文献1では、画像データを部分的に拡大して表示する拡大再生において、顔領域等の特定領域を瞬時に表示させることで、ピント確認を容易に行うことが可能なデジタルカメラが提案されている。
また特許文献2では、記録モードとして画像処理を行わずに記録するCCD−RAW形式が選択されている場合、再生処理に使用するJPEG画像(以下、表示用JPEG画像と呼ぶ)をCCD−RAW形式のデータと合わせて記録しておく手法が提案されている。この場合、CCD−RAWデータを信号処理して画像データを生成する必要がなくなるため、再生処理の高速化を図ることができる。
For example, Patent Document 1 proposes a digital camera that can easily perform focus confirmation by instantaneously displaying a specific area such as a face area in enlarged reproduction in which image data is partially enlarged and displayed. ing.
Further, in
上記の表示用JPEG画像は、処理時間、記録容量等の観点から、CCD−RAW形式よりも解像度(画素数)を落として記録することが求められるが、その場合、再生時にピントの確認が行いにくいという問題が生じる。 From the viewpoint of processing time, recording capacity, etc., the above display JPEG image is required to be recorded with a resolution (number of pixels) that is lower than that of the CCD-RAW format. The problem of difficulty arises.
本発明では、表示用JPEG画像の容量を抑えつつ、ピントの確認を容易に行えるようにすることを目的とする。 In the present invention, while suppressing the capacity of the display JPEG image, and an object thereof is to obtain easily line confirmation of focus.
本発明の画像処理装置は、撮像装置により得られたRAW形式の画像データを記憶するメモリと、前記RAW形式の画像データに対応する撮影を行った際の撮像装置の距離情報及び絞り値に応じて、トリミング領域を決定する決定手段と、前記メモリに記憶されたRAW形式の画像データから前記決定手段により決定されたトリミング領域に対応する表示用JPEG画像を生成する生成手段と、前記RAW形式の画像データと前記生成手段により生成された表示用JPEG画像の両方を1つのRAW形式の画像データファイルに記録する記録手段と、前記RAW形式の画像データファイルに記録された表示用JPEG画像を表示装置に表示させ、前記表示装置に表示される前記表示用JPEG画像の表示領域の変更指示に応じて、表示画像の制御を行う表示制御手段と、を有し、前記変更指示された表示領域が前記表示用JPEG画像のトリミング領域に含まれない場合、前記表示制御手段は、前記RAW形式の画像データを処理することにより、前記変更指示された表示領域に対応する画像を新たに生成し、生成された画像を前記表示装置に表示させ、前記決定手段は、前記距離情報及び絞り値に基づき被写界深度を演算し、前記被写界深度が浅いほど前記領域を小さくし、深いほど前記領域を大きくするように設定することを特徴とする。
また、本発明の画像処理方法は、撮像装置により得られたRAW形式の画像データに対応する撮影を行った際の撮像装置の距離情報及び絞り値に応じて、トリミング領域を決定する決定ステップと、前記RAW形式の画像データから前記決定ステップにおいて決定されたトリミング領域に対応する表示用JPEG画像を生成する生成ステップと、前記RAW形式の画像データと前記生成ステップにおいて生成された表示用JPEG画像の両方を1つのRAW形式の画像データファイルに記録する記録ステップと、前記RAW形式の画像データファイルに記録された表示用JPEG画像を表示装置に表示させ、前記表示装置に表示される前記表示用JPEG画像の表示領域の変更指示に応じて、表示画像の制御を行う表示制御ステップと、を有し、前記変更指示された表示領域が前記表示用JPEG画像のトリミング領域に含まれない場合、前記表示制御ステップは、前記RAW形式の画像データを処理することにより、前記変更指示された表示領域に対応する画像を新たに生成し、生成された画像を前記表示装置に表示させ、前記決定ステップは、前記距離情報及び絞り値に基づき被写界深度を演算し、前記被写界深度が浅いほど前記領域を小さくし、深いほど前記領域を大きくするように設定することを特徴とする。
また、本発明のプログラムは、撮像装置により得られたRAW形式の画像データに対応する撮影を行った際の撮像装置の距離情報及び絞り値に応じて、トリミング領域を決定する決定処理と、前記RAW形式の画像データから前記決定処理において決定されたトリミング領域に対応する表示用JPEG画像を生成する生成処理と、前記RAW形式の画像データと前記生成処理において生成された表示用JPEG画像の両方を1つのRAW形式の画像データファイルに記録する記録処理と、前記RAW形式の画像データファイルに記録された表示用JPEG画像を表示装置に表示させ、前記表示装置に表示される前記表示用JPEG画像の表示領域の変更指示に応じて、表示画像の制御を行う表示制御処理とをコンピュータに実行させ、前記変更指示された表示領域が前記表示用JPEG画像のトリミング領域に含まれない場合、前記表示制御処理は、前記RAW形式の画像データを処理することにより、前記変更指示された表示領域に対応する画像を新たに生成し、生成された画像を前記表示装置に表示させ、前記決定処理は、前記距離情報及び絞り値に基づき被写界深度を演算し、前記被写界深度が浅いほど前記領域を小さくし、深いほど前記領域を大きくするように設定することを特徴とする。
The image processing apparatus according to the present invention corresponds to a memory for storing RAW format image data obtained by the imaging apparatus, and distance information and an aperture value of the imaging apparatus when shooting corresponding to the RAW format image data is performed. Determining means for determining a trimming area; generating means for generating a display JPEG image corresponding to the trimming area determined by the determining means from image data in RAW format stored in the memory; Recording means for recording both the image data and the display JPEG image generated by the generating means in one RAW format image data file, and a display device for displaying the display JPEG image recorded in the RAW format image data file In response to an instruction to change the display area of the display JPEG image displayed on the display device. Display control means for performing control, and when the display area instructed to change is not included in the trimming area of the display JPEG image, the display control means processes the image data in the RAW format. To newly generate an image corresponding to the display area instructed to change, display the generated image on the display device, and the determining means calculates a depth of field based on the distance information and the aperture value. The region is set to be smaller as the depth of field is shallower and larger as the depth of field is deeper .
In addition, the image processing method of the present invention includes a determination step of determining a trimming region according to distance information and an aperture value of the imaging device when shooting corresponding to RAW format image data obtained by the imaging device is performed. A generation step for generating a display JPEG image corresponding to the trimming area determined in the determination step from the RAW format image data, and the RAW image data and the display JPEG image generated in the generation step. A recording step of recording both in a RAW format image data file; and a display JPEG image recorded in the RAW format image data file is displayed on a display device, and the display JPEG displayed on the display device A display control step for controlling the display image in response to an instruction to change the image display area. When the display area instructed to change is not included in the trimming area of the display JPEG image, the display control step corresponds to the display area instructed to change by processing the image data in the RAW format. A new image is generated, and the generated image is displayed on the display device, and the determining step calculates a depth of field based on the distance information and an aperture value, and the shallower the depth of field, the more It is characterized in that the region is set to be smaller and the region to be larger as the region is deeper .
In addition, the program of the present invention includes a determination process for determining a trimming area according to distance information and an aperture value of an imaging device when shooting corresponding to RAW format image data obtained by the imaging device is performed. A generation process for generating a display JPEG image corresponding to the trimming area determined in the determination process from RAW format image data, and both the RAW format image data and the display JPEG image generated in the generation process. A recording process for recording in one RAW format image data file, a display JPEG image recorded in the RAW format image data file is displayed on a display device, and the display JPEG image displayed on the display device is displayed. In response to the display area change instruction, the computer executes display control processing for controlling the display image, and When the designated display area is not included in the trimming area of the display JPEG image, the display control process processes the image data in the RAW format to obtain an image corresponding to the change designated display area. A newly generated image is displayed on the display device, and the determination process calculates a depth of field based on the distance information and an aperture value, and the area is reduced as the depth of field is shallower. In addition, the depth is set so as to increase as the depth increases .
本発明では、絞り値と測距情報等を基に計算できる被写界深度に応じて、部分画像データ(表示用JPEG画像)の保存領域を変更させることができる。具体的には、被写界深度が浅い場合にはピントが合う領域が小さいため保存領域を小さく、被写界深度が深い場合にはピントが合う領域が大きいため保存領域を大きくする。このようにすることで、撮影者にとって重要な領域のみを表示用JPEG画像として保存することができ、ピント確認を容易に可能にしながらも、ファイル容量を抑えることができる。そのため、再生処理に要する処理時間、メモリ容量を大幅に削減することが可能となる。また、表示用JPEG画像を本画像(主画像データ)とは異なるパラメータを用いて生成することで、本画像に影響を与えずにピント確認を容易に行うことも可能となる。 In the present invention, the storage area of the partial image data (display JPEG image) can be changed according to the depth of field that can be calculated based on the aperture value and the distance measurement information. Specifically, when the depth of field is shallow, the area to be focused is small and the storage area is small. When the depth of field is deep, the area to be focused is large and the storage area is enlarged. In this way, only the region important for the photographer can be saved as a display JPEG image, and the file capacity can be reduced while facilitating the confirmation of focus. Therefore, the processing time and memory capacity required for the reproduction process can be greatly reduced. Further, by generating a JPEG image for display using parameters different from those of the main image (main image data), it is possible to easily check the focus without affecting the main image.
以下、本発明の実施の形態について図面を参照しながら説明する。図1に本発明を実施するための最良の形態である撮像装置としてのデジタルカメラの構成を示す。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a configuration of a digital camera as an imaging apparatus which is the best mode for carrying out the present invention.
図1において、10はデジタルカメラ、100は撮影レンズ、101は絞り、103はシャッター、104は撮像素子である。撮影レンズ100に入射した光線は、絞り101及びシャッター103を通過し、撮像素子104によって光学像から電気信号に変換される。撮像素子104は、R(赤)、G(緑)、B(青)の原色透過フィルタがピクセル単位に市松模様に配列(ベイヤー配列)されたエリアセンサとして構成されている。
In FIG. 1, 10 is a digital camera, 100 is a photographing lens, 101 is an aperture, 103 is a shutter, and 104 is an image sensor. The light beam incident on the photographing lens 100 passes through the
105は撮像素子104のアナログ信号出力をディジタル信号に変換するA/D変換器である。107は撮像素子104、A/D変換器105にクロック信号や制御信号を供給するタイミング制御部であり、メモリ制御部108及び制御部106によって制御される。
109は画像処理部であり、A/D変換器105からのデータ或いはメモリ制御部108からのデータに対して、所定の信号処理、例えばホワイトバランス調整、画素補間処理、階調処理、色変換処理等を行う。また画像処理部109においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいて制御部106が露光制御部102、フォーカス制御部113に対して制御を行う。これにより、TTL方式のAF(オートフォーカス)処理、AE(自動露出)処理が行われる。
An
108はメモリ制御部であり、A/D変換器105、タイミング制御部107、画像処理部109、メモリ110、圧縮・伸長部111を制御する。A/D変換器105のデータは、画像処理部109及びメモリ制御部108を介して、或いは、直接メモリ制御部108を介して、メモリ110に書き込まれる。
A
110は撮影した静止画像やライブビュー表示をするための動画像を格納するためのメモリであり、所定枚数の静止画像や動画像を格納するのに十分な記憶量を備えている。メモリ110はまた、制御部106の作業領域としても使用することが可能である。111は適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮・伸長部であり、メモリ110に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ110に書き込む。
102は絞り101やシャッター103を制御する露光制御部である。113は撮影レンズ100のフォーカシングを制御するフォーカス制御部である。112は撮影レンズ100のズーミングを制御するズーム制御部である。露光制御部102、フォーカス制御部113は、TTL方式を用いて制御されており、撮像した画像データを画像処理部109が演算した演算結果に基づき、制御部106が露光制御部102、フォーカス制御部113を制御する。
An exposure control unit 102 controls the
106はデジタルカメラ10全体を制御する制御部である。114は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。
A
115はシャッタースイッチSW1であり、不図示のシャッターボタンの操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理等の動作開始を指示する。116はシャッタースイッチSW2であり、不図示のシャッターボタンの操作完了でONとなる。ONとなった場合は、まず撮像素子104から読み出した信号をA/D変換器105、メモリ制御部108を介してメモリ110に画像データを書き込む露光処理の指示を行い、続いて画像処理部109やメモリ制御部108での演算を用いた現像処理の指示を行う。更に、メモリ110から画像データを読み出し、圧縮・伸長部111で圧縮を行い、記録媒体117に画像データを書き込む記録処理の指示を行う。
Reference numeral 115 denotes a shutter switch SW1, which is turned ON during the operation of a shutter button (not shown) and instructs to start operations such as AF (autofocus) processing, AE (automatic exposure) processing, and AWB (auto white balance) processing. Reference numeral 116 denotes a shutter switch SW2, which is turned on when the operation of a shutter button (not shown) is completed. When turned ON, first, an instruction for an exposure process for writing the image data to the
118は表示制御部であり、記録媒体117に記録された画像データやライブビュー画像を表示部119に表示するための制御部である。119は液晶パネル等からなる表示部である。120は画像データから任意の領域をトリミングするトリミング部であり、121は画像データを任意の拡大率・縮小率でリサイズするリサイズ部である。
Reference numeral 118 denotes a display control unit, which is a control unit for displaying image data and live view images recorded on the recording medium 117 on the
117はメモリカードやハードディスク等の記録媒体(記録部)である。ここで図2に記録媒体117に記録する画像データのファイル構造の模式図を示す。図2(a)はCCD−RAW形式の画像データのファイル構造を示し、図2(b)はJPEG形式の画像データのファイル構造を示している。これらの画像データのファイル構造のフォーマットは、デジタルカメラで一般的に用いられている電子情報技術産業協会(JEITA)によって定められたExifファイルフォーマットの規格に準拠する。以下、それぞれのファイル構造の詳細を説明する。 Reference numeral 117 denotes a recording medium (recording unit) such as a memory card or a hard disk. Here, FIG. 2 shows a schematic diagram of a file structure of image data recorded on the recording medium 117. 2A shows the file structure of image data in the CCD-RAW format, and FIG. 2B shows the file structure of image data in the JPEG format. The format of the image data file structure conforms to the Exif file format standard defined by the Japan Electronics and Information Technology Industries Association (JEITA), which is generally used in digital cameras. Details of each file structure will be described below.
図2(a)に示すCCD−RAW形式の画像データ200は、ヘッダ領域201、サムネイル画像領域202、表示用JPEG画像領域203及びCCD−RAW画像領域204を有する。ヘッダ領域201には、シャッタースピード、絞り値、ISO感度等の撮影条件を示す情報や画像処理に関するパラメータ等が記録される。サムネイル画像領域202には、CCD−RAW形式の場合、後述の表示用JPEG画像A(203−1)をリサイズした画像データが記録される。なお、DCF(Digital Camera Format)ではサムネイル画像は、160×120画素と規定されている。表示用JPEG画像領域203には、再生時に使用する表示用JPEG画像が記録される。表示用JPEG画像領域203に含まれる表示用JPEG画像A(203−1)は、本画像(本発明でいう主画像データに対応)に対して水平・垂直方向にそれぞれ1/2にリサイズした画像データである。また203−2に示す表示用JPEG画像Pi(i=1〜n)は、本画像の特定領域をトリミングした表示用JPEG画像(本発明でいう、部分画像データに対応する)であり、本画像と同等の解像度を有するように処理されている。CCD−RAW画像領域204には、本画像、即ちに、CCD−RAW形式の画像データが記録される。
図2(b)に示すJPEG形式の画像データ210は、ヘッダ領域211、サムネイル画像領域212、表示用JPEG画像領域213及びJPEG画像領域214を有する。ヘッダ領域211、サムネイル画像領域212、表示用JPEG画像領域213は、CCD−RAW形式の画像データ200のものと同様であるため、説明は省略する。JPEG画像領域214には、本画像、即ち、JPEG形式の画像データが記録される。
The
2B includes a
次に図3を用いて本実施の形態において画像データを記録する際のフローを説明する。
ステップS101において制御部106は、シャッタースイッチSW1(115)のONを検出すると、ステップS102において撮像素子104の露光を開始し、撮像した画像データから画像処理部109が演算して求めた測光情報、測距情報を取得する。
Next, a flow for recording image data in the present embodiment will be described with reference to FIG.
In step S101, when the
次にステップS103において制御部106は、シャッタースイッチSW2(116)のONを検出すると本露光を行い、取得した画像データ(CCD−RAW形式の画像データ)をメモリ110に保存する。次にステップS104において制御部106は、記録画質がCCD−RAW形式であるかJPEG形式であるか判別する。CCD−RAW形式の場合はステップS105において、前述した表示用JPEG画像Aを生成する(図2を参照のこと)。JPEG形式の場合はステップS106において、CCD−RAW形式の画像データに所定の画像処理及び圧縮処理等をしてJPEG形式の本画像を生成する。
Next, in step S <b> 103, when the
次にステップS107において制御部106は、複数の表示用JPEG画像Piを生成するための変数iを初期化し、続いてステップS108において、表示用JPEG画像Piの領域、即ち、本画像からトリミングして保存する領域を決定する。
In step S107, the
ここで図4、図5を用いてトリミング領域の決定方法について説明する。ステップS102において、図5に示す撮影画面500内の合焦点501が画像処理部109により求められたとする。このとき、制御部106は、決定した撮影時の絞り値と、ズーム制御部112及びフォーカス制御部113により求められるデジタルカメラ10から被写体までの距離情報と、所定の許容錯乱円とを基に、被写界深度を演算する。ここで得られた被写界深度から図4に示すような関係を用いて、トリミング領域502の大きさを決定する。図4は、被写界深度に応じて、トリミング領域の大きさを変更する関数を示しており、予め保持されているものである。具体的に図4では、被写界深度が浅い場合には、ピントが合う領域が小さいためトリミング領域を小さくするようにし、被写界深度が深い場合にはピントが合う領域が大きいためトリミング領域を大きくするようにしている。このようにすることで、重要な領域のみを表示用JPEG画像として保存することができ、ピント確認を容易に可能にしながらも、ファイル容量を抑えることを実現する。なお、ステップS108の処理は、本発明でいう変更手段の一処理例に対応する。
Here, a method for determining a trimming region will be described with reference to FIGS. In step S102, it is assumed that the
図3に戻りステップS109において制御部106は、画像処理部109で表示用JPEG画像Piを生成するための画像処理パラメータを決定する。画像処理パラメータは、明るさ、ホワイトバランス、コントラスト、シャープネス等に関するものであり、i=0のときは、撮影時にデジタルカメラ10に設定されていた設定値を用いるものとする。続いてステップS110において制御部106は、ステップS109において決定された画像処理パラメータを用いて画像処理部109により画像処理を行い、表示用JPEG画像Piを生成する。なお、生成する表示用JPEG画像Piは本画像と同等の解像度を有するように適宜調整又は変更される。
Returning to FIG. 3, in step S <b> 109, the
次にステップS111において制御部106は、表示用JPEG画像(即ち、表示用JPEG画像Pi+1)を更に生成するかどうかの判定を行う。判定は、例えば現在ステップS109で生成された表示用JPEG画像Piを画像処理部109で解析した結果を用いてもよい。具体的には、表示用JPEG画像Piの輝度ヒストグラムを検出し、明るさ、コントラストに偏りがないかどうか判定をする。そして偏りがある場合には、本来の目的であるピント確認が行いにくい可能性があるため、偏りを補正する画像処理パラメータをステップS109で設定して、表示用JPEG画像を順次複数枚生成するようにする。ステップS111で表示用JPEG画像を複数生成すると判定した場合は、ステップS112において制御部106は、変数iをインクリメントしてステップS108に戻る。なお、上述のように本実施の形態では、表示用JPEG画像Piを生成する際に、本画像とは異なる画像処理パラメータを用いるようにしている(ステップS109)。これにより、本画像に影響を与えずにピント確認を容易に行うことが可能となる。
Next, in step S111, the
ステップS111で表示用JPEG画像の生成を終了すると判定した場合ステップS113において制御部106は、ステップS105又はS106で生成されたJPEG画像をリサイズ部121によって160×120画素に縮小してサムネイル画像を生成する。そして処理を終了する。なお、ステップS103、S105、S106、S110、S113で生成された各画像データは、図2に示した各データ領域に保存され、記録媒体117に記録される。
If it is determined in step S111 that the generation of the display JPEG image is to be terminated, in step S113, the
上述のようにして記録された画像データは、デジタルカメラ10の背面に設けられた各種釦を操作することで再生することができる。図6にデジタルカメラ10の背面図を示す。デジタルカメラ10は、表示部119に画像を再生表示する際のモードとして、画像を1度に1枚のみ表示する1枚再生モード、4枚の画像を1度に再生する4枚再生モード、9枚の画像を1度に再生する9枚再生モードの3つの再生モードを有する。
The image data recorded as described above can be reproduced by operating various buttons provided on the back of the digital camera 10. FIG. 6 shows a rear view of the digital camera 10. The digital camera 10 reproduces and displays an image on the
図6において、607は再生モード変更釦であり、押下するたびに再生モードを変更することができる。600a、600bは、それぞれ拡大釦、縮小釦であり、表示部119に表示されている画像の表示領域を拡大・縮小するための表示サイズ変更釦である。601a〜601dは表示領域移動釦であり、拡大再生において表示部119に表示されている領域を上下左右に移動するための釦である。602は回転させることで記録媒体117に記録されている画像データを順次、表示部119に表示するための画像送りダイアルである。603は記録媒体117に記録されている画像データを表示部119に表示するための再生釦である。604は表示用JPEG画像記録領域表示釦であり、表示部119に表示されている画像に関連付けられて記録されている表示用JPEG画像の領域を、表示用JPEG画像記録領域表示枠606として、画像データと併せて表示・非表示するための釦である。
In FIG. 6,
次に本実施の形態において記録媒体117に記録された画像データを再生する際のフローを図7に示す。 Next, FIG. 7 shows a flow when reproducing the image data recorded on the recording medium 117 in the present embodiment.
再生釦603が押下されると画像再生が開始され、ステップS200において制御部106は、1枚再生モードかどうかを判定する。1枚再生モードでない場合、即ち再生モードが4枚再生、9枚再生である場合には、ステップS201に進み、制御部106は、サムネイル画像領域に記録された画像データを圧縮・伸長部111で伸長し、表示部119に表示する。1枚再生モードである場合はステップS202に進み、制御部106は、画像データがCCD−RAW形式であるかどうかを判定する。CCD−RAW形式である場合にはステップS203に進み、リサイズした画像である表示用JPEG画像Aを表示部119全体に表示する。一方、画像データがJPEG形式である場合にはステップS204に進み、JPEG画像領域に記録されたJPEG画像を表示部119全体に表示する。
When the
次にステップS205において制御部106は、拡大釦600aが押下されたかどうかを判定し、拡大釦600aが押下された場合は、複数の表示用JPEG画像Piのうちの表示用JPEG画像P1を表示部119全体に表示する。更に拡大釦600aが押下され続けた場合にはステップS206において、表示領域を段階的に拡大させて表示する。
Next, in step S205, the
また、ステップS207において制御部106は、縮小釦600bが押下されたかどうかを判定し、縮小釦600bが押下された場合にはステップS208において、拡大釦600aとは逆に表示領域を段階的に縮小させて表示を行う。
In step S207, the
また、ステップS209において制御部106は、表示領域移動釦601が押下されたかどうかを判定する。表示領域移動釦601が押下された場合はステップS210において、表示部119に表示する画像領域の移動を行うが、このとき表示すべき領域が、表示用JPEG画像P1に含まれているかどうかの判定を行う。表示領域が表示用JPEG画像P1に含まれている場合は、該画像の画像データをそのまま使用して表示を行う。表示領域がP1に含まれていない場合はステップS211において、記録モードがCCD−RAW形式かどうかを判定する。CCD−RAW形式の場合はステップS212に進み、CCD−RAW画像から現像処理を行い、表示用の画像データを生成する。JPEG形式の場合にはステップS213に進む、JPEG画像領域のJPEG画像から表示用の画像データを生成する。なお、本処理では、表示用JPEG画像Piのうちの表示用JPEG画像P1を再生する処理を説明したが、画像パラメータの異なるその他の表示用JPEG画像を表示することもできる。この場合、UIや操作部を用いて表示用JPEG画像を選択するようにする。
In step S209, the
以上、本実施の形態においては、絞り値と測距情報と許容錯乱円とを基に計算できる被写界深度に応じて、表示用JPEG画像の保存領域を変更させるようにした。具体的には、被写界深度が浅い場合には、ピントが合う領域が小さいため保存領域を小さく、被写界深度が深い場合にはピントが合う領域が大きいため保存領域を大きくするようにした。このようにすることで、撮影者にとって重要な領域のみを表示用JPEG画像として保存することができ、ピント確認を容易に可能にしながらも、ファイル容量を抑えることができる。そのため、再生処理に要する処理時間、メモリ容量を大幅に削減することが可能となる。また、表示用JPEG画像を本画像とは異なる画像処理パラメータを用いて生成することで、本画像に影響を与えずにピント確認を容易に行うことも可能となる。 As described above, in the present embodiment, the storage area of the display JPEG image is changed according to the depth of field that can be calculated based on the aperture value, the distance measurement information, and the allowable circle of confusion. Specifically, when the depth of field is shallow, the area to be focused is small and the storage area is small. When the depth of field is deep, the area to be focused is large and the storage area is large. did. In this way, only the region important for the photographer can be saved as a display JPEG image, and the file capacity can be reduced while facilitating the confirmation of focus. Therefore, the processing time and memory capacity required for the reproduction process can be greatly reduced. Further, by generating a display JPEG image using image processing parameters different from those of the main image, it is possible to easily perform focus confirmation without affecting the main image.
また、本発明を実現するために、上述した実施形態の機能を実現するソフトウェアのプログラムコード(コンピュータプログラム)を記録した記憶媒体を用いても良い。この場合には記憶媒体をシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによって本発明の目的が達成される。 In order to realize the present invention, a storage medium in which a program code (computer program) of software that realizes the functions of the above-described embodiments may be used. In this case, the object of the present invention is achieved by supplying the storage medium to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus reads and executes the program code stored in the storage medium.
この場合、記憶媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することになり、プログラムコード自体及びそのプログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code itself and the storage medium storing the program code constitute the present invention.
プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。 As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
また、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(基本システム或いはオペレーティングシステム)等が実際の処理の一部又は全部を行う場合も含まれることは言うまでもない。 Needless to say, the OS (basic system or operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code.
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれてもよい。この場合には、書き込まれたプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行ってもよい。 Furthermore, the program code read from the storage medium may be written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. In this case, based on the instruction of the written program code, the CPU or the like provided in the function expansion board or function expansion unit may perform part or all of the actual processing.
10 デジタルカメラ
100 撮影レンズ
101 絞り
103 シャッター
104 撮像素子
106 制御部
109 画像処理部
118 表示制御部
119 表示部
120 トリミング部
121 リサイズ部
DESCRIPTION OF SYMBOLS 10 Digital camera 100
Claims (3)
前記RAW形式の画像データに対応する撮影を行った際の撮像装置の距離情報及び絞り値に応じて、トリミング領域を決定する決定手段と、
前記メモリに記憶されたRAW形式の画像データから前記決定手段により決定されたトリミング領域に対応する表示用JPEG画像を生成する生成手段と、
前記RAW形式の画像データと前記生成手段により生成された表示用JPEG画像の両方を1つのRAW形式の画像データファイルに記録する記録手段と、
前記RAW形式の画像データファイルに記録された表示用JPEG画像を表示装置に表示させ、前記表示装置に表示される前記表示用JPEG画像の表示領域の変更指示に応じて、表示画像の制御を行う表示制御手段と、を有し、
前記変更指示された表示領域が前記表示用JPEG画像のトリミング領域に含まれない場合、前記表示制御手段は、前記RAW形式の画像データを処理することにより、前記変更指示された表示領域に対応する画像を新たに生成し、生成された画像を前記表示装置に表示させ、
前記決定手段は、前記距離情報及び絞り値に基づき被写界深度を演算し、前記被写界深度が浅いほど前記領域を小さくし、深いほど前記領域を大きくするように設定することを特徴とする画像処理装置。 A memory for storing RAW-format image data obtained by the imaging device;
Determining means for determining a trimming region in accordance with distance information and an aperture value of the imaging device when performing shooting corresponding to the image data in the RAW format;
Generating means for generating a display JPEG image corresponding to the trimming area determined by the determining means from RAW format image data stored in the memory;
Recording means for recording both the RAW format image data and the display JPEG image generated by the generation means in one RAW format image data file;
The display JPEG image recorded in the RAW format image data file is displayed on the display device, and the display image is controlled in response to an instruction to change the display area of the display JPEG image displayed on the display device. Display control means,
When the display area instructed to be changed is not included in the trimming area of the display JPEG image, the display control means processes the image data in the RAW format, thereby corresponding to the display area instructed to be changed. An image is newly generated, and the generated image is displayed on the display device .
The determining means calculates a depth of field based on the distance information and an aperture value, and sets the area to be smaller as the depth of field is shallower and to be larger as the depth is deeper. An image processing apparatus.
前記RAW形式の画像データから前記決定ステップにおいて決定されたトリミング領域に対応する表示用JPEG画像を生成する生成ステップと、
前記RAW形式の画像データと前記生成ステップにおいて生成された表示用JPEG画像の両方を1つのRAW形式の画像データファイルに記録する記録ステップと、
前記RAW形式の画像データファイルに記録された表示用JPEG画像を表示装置に表示させ、前記表示装置に表示される前記表示用JPEG画像の表示領域の変更指示に応じて、表示画像の制御を行う表示制御ステップと、を有し、
前記変更指示された表示領域が前記表示用JPEG画像のトリミング領域に含まれない場合、前記表示制御ステップは、前記RAW形式の画像データを処理することにより、前記変更指示された表示領域に対応する画像を新たに生成し、生成された画像を前記表示装置に表示させ、
前記決定ステップは、前記距離情報及び絞り値に基づき被写界深度を演算し、前記被写界深度が浅いほど前記領域を小さくし、深いほど前記領域を大きくするように設定することを特徴とする画像処理方法。 A determination step of determining a trimming region according to distance information and an aperture value of the imaging device when shooting corresponding to RAW format image data obtained by the imaging device;
Generating a JPEG image for display corresponding to the trimming area determined in the determining step from the image data in the RAW format;
A recording step of recording both the RAW image data and the display JPEG image generated in the generation step in one RAW image data file;
The display JPEG image recorded in the RAW format image data file is displayed on the display device, and the display image is controlled in response to an instruction to change the display area of the display JPEG image displayed on the display device. A display control step,
When the display area instructed to be changed is not included in the trimming area of the display JPEG image, the display control step corresponds to the display area instructed to change by processing the image data in the RAW format. An image is newly generated, and the generated image is displayed on the display device .
The determining step calculates a depth of field based on the distance information and an aperture value, and sets the area to be smaller as the depth of field is shallower and to be larger as the depth of field is deeper. Image processing method.
前記RAW形式の画像データから前記決定処理において決定されたトリミング領域に対応する表示用JPEG画像を生成する生成処理と、
前記RAW形式の画像データと前記生成処理において生成された表示用JPEG画像の両方を1つのRAW形式の画像データファイルに記録する記録処理と、
前記RAW形式の画像データファイルに記録された表示用JPEG画像を表示装置に表示させ、前記表示装置に表示される前記表示用JPEG画像の表示領域の変更指示に応じて、表示画像の制御を行う表示制御処理とをコンピュータに実行させ、
前記変更指示された表示領域が前記表示用JPEG画像のトリミング領域に含まれない場合、前記表示制御処理は、前記RAW形式の画像データを処理することにより、前記変更指示された表示領域に対応する画像を新たに生成し、生成された画像を前記表示装置に表示させ、
前記決定処理は、前記距離情報及び絞り値に基づき被写界深度を演算し、前記被写界深度が浅いほど前記領域を小さくし、深いほど前記領域を大きくするように設定することを特徴とするプログラム。 A determination process for determining a trimming region according to distance information and an aperture value of the imaging device when shooting corresponding to RAW format image data obtained by the imaging device;
A generation process for generating a display JPEG image corresponding to the trimming area determined in the determination process from the image data in the RAW format;
A recording process for recording both the RAW-format image data and the display JPEG image generated in the generation process in one RAW-format image data file;
The display JPEG image recorded in the RAW format image data file is displayed on the display device, and the display image is controlled in response to an instruction to change the display area of the display JPEG image displayed on the display device. Let the computer execute display control processing,
When the display area instructed to be changed is not included in the trimming area of the display JPEG image, the display control process corresponds to the display area instructed to change by processing the image data in the RAW format. An image is newly generated, and the generated image is displayed on the display device .
The determination process calculates a depth of field based on the distance information and an aperture value, and sets the region to be smaller as the depth of field is shallower and larger as the depth is deeper. Program to do.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008182847A JP5224951B2 (en) | 2008-07-14 | 2008-07-14 | Image processing apparatus, method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008182847A JP5224951B2 (en) | 2008-07-14 | 2008-07-14 | Image processing apparatus, method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010021945A JP2010021945A (en) | 2010-01-28 |
JP5224951B2 true JP5224951B2 (en) | 2013-07-03 |
Family
ID=41706375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008182847A Expired - Fee Related JP5224951B2 (en) | 2008-07-14 | 2008-07-14 | Image processing apparatus, method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5224951B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9826170B2 (en) * | 2012-01-26 | 2017-11-21 | Sony Corporation | Image processing of captured three-dimensional images |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006173854A (en) * | 2004-12-14 | 2006-06-29 | Konica Minolta Photo Imaging Inc | Image display apparatus, image display program, and imaging apparatus |
JP2006217313A (en) * | 2005-02-04 | 2006-08-17 | Canon Inc | Image processing apparatus, its control method and storage medium |
JP2007028380A (en) * | 2005-07-20 | 2007-02-01 | Sony Corp | Imaging apparatus |
JP2007249000A (en) * | 2006-03-17 | 2007-09-27 | Casio Comput Co Ltd | Imaging apparatus, imaging method, and imaging program |
JP2007281646A (en) * | 2006-04-04 | 2007-10-25 | Nikon Corp | Electronic camera |
JP2008079199A (en) * | 2006-09-25 | 2008-04-03 | Seiko Epson Corp | Print using undeveloped image data |
-
2008
- 2008-07-14 JP JP2008182847A patent/JP5224951B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2010021945A (en) | 2010-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4574459B2 (en) | Image capturing apparatus, control method therefor, program, and storage medium | |
KR100812312B1 (en) | Image sensing apparatus | |
JP4395619B2 (en) | Imaging apparatus, imaging condition setting method, and program | |
JP4943721B2 (en) | Color noise removal method for image data and imaging apparatus using the method | |
JP4507392B2 (en) | Electronic camera | |
KR100942634B1 (en) | Image correction device, image correction method, and computer readable medium | |
JP5782813B2 (en) | Imaging apparatus and image display method | |
JP2008182485A (en) | Photographing device and photographing method | |
JP5578442B2 (en) | Imaging apparatus, image composition method, and program | |
JP5494744B2 (en) | Imaging apparatus, control method, and program | |
JP2009267831A (en) | Image recording device and method | |
JP4725854B2 (en) | Image display device and image display method | |
JP5310076B2 (en) | Image processing apparatus and image processing program | |
JP2007325152A (en) | Imaging device, and program thereof | |
JP2009033223A (en) | Imaging apparatus | |
JP4553134B2 (en) | Image generating apparatus and program thereof | |
JP2007142639A (en) | Imaging apparatus and program therefor | |
JP5224951B2 (en) | Image processing apparatus, method, and program | |
JP4888829B2 (en) | Movie processing device, movie shooting device, and movie shooting program | |
JP4981648B2 (en) | Image processing apparatus and control method thereof | |
JP2010074415A (en) | Imaging apparatus, image display method and image display program | |
JP5406619B2 (en) | MOVING IMAGE REPRODUCTION DEVICE, IMAGING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM | |
JP5157528B2 (en) | Imaging device | |
JP4769693B2 (en) | Imaging apparatus, method, and program | |
JP2005278003A (en) | Image processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110629 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120530 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120605 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120731 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121023 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121221 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130212 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130312 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5224951 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160322 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |