JPWO2004012449A1 - Digital camera - Google Patents

Digital camera Download PDF

Info

Publication number
JPWO2004012449A1
JPWO2004012449A1 JP2004524182A JP2004524182A JPWO2004012449A1 JP WO2004012449 A1 JPWO2004012449 A1 JP WO2004012449A1 JP 2004524182 A JP2004524182 A JP 2004524182A JP 2004524182 A JP2004524182 A JP 2004524182A JP WO2004012449 A1 JPWO2004012449 A1 JP WO2004012449A1
Authority
JP
Japan
Prior art keywords
data
background
subject
background data
subject 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
JP2004524182A
Other languages
Japanese (ja)
Inventor
白川 政信
政信 白川
辻 修司
修司 辻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of JPWO2004012449A1 publication Critical patent/JPWO2004012449A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

被写体データと背景データとを合成して得たデータではなく被写体データそのものをリムーバブルメモリに格納し、被写体データと背景データとを関連付けレコードによって関連付けるため、被写体データと合成される背景データを撮影後に設定することができる。さらに、リムーバブルメモリに格納された被写体データに関連付ける背景データがステップS280においてユーザによって選択されるまでは、被写体データと背景データとを合成表示することなしに、被写体データだけを表示する(ステップS260)ため、複数の背景データの1つをユーザに選択させるために必要な処理が少ない。Since the subject data itself is stored in the removable memory instead of the data obtained by combining the subject data and the background data, and the subject data and the background data are related by the association record, the background data to be combined with the subject data is set after shooting. can do. Furthermore, until the background data associated with the subject data stored in the removable memory is selected by the user in step S280, only the subject data is displayed without combining and displaying the subject data and the background data (step S260). Therefore, there are few processes required for making a user select one of several background data.

Description

本発明は、ディジタルカメラに関する。The present invention relates to a digital camera.

ディジタルカメラには、例えば合成画像の素材としてのデータを記録するという用途がある。合成画像は、写真付挨拶状、枠付き写真シールなどを印刷するために広く用いられている。
特開2001−45352号公報には、枠や背景を表すデータ(背景データ)と被写体を表すデータ(被写体データ)とを合成して得た合成画像データを外部メモリに記録するディジタルカメラが開示されている。
しかし、特開2001−45352号公報に開示されたディジタルカメラによると、外部メモリに記録する前に背景データと被写体データとを合成してしまうため、撮影後には背景データを変更したり新規に背景データを設定したりすることができない。
A digital camera has a use of recording data as a material of a composite image, for example. Composite images are widely used for printing greeting cards with photos, photo stickers with frames, and the like.
Japanese Patent Application Laid-Open No. 2001-45352 discloses a digital camera that records combined image data obtained by combining data representing frame and background (background data) and data representing a subject (subject data) in an external memory. ing.
However, according to the digital camera disclosed in Japanese Patent Application Laid-Open No. 2001-45352, the background data and subject data are combined before being recorded in the external memory. Data cannot be set.

第一の発明は、撮影後に短時間で背景データを設定することができ、撮影後に背景データを変更したり新規に背景データを設定したりすることができるディジタルカメラを提供することを目的とする。
この目的を達成するため、第一の発明に係るディジタルカメラは、イメージセンサの出力に基づいて被写体データを作成し不揮発性メモリに格納する撮影手段と、被写体データと合成するための複数の背景データをディスプレイに表示し、表示された複数の背景データの少なくとも1つをユーザに選択させる背景選択手段と、前記不揮発性メモリに格納された被写体データと前記選択された背景データとを前記ディスプレイに合成表示する合成表示手段と、前記不揮発性メモリに格納された被写体データと選択された背景データとを関連付ける情報を前記不揮発性メモリに格納する背景設定手段と、を備えることを特徴とする。第一の発明に係るディジタルカメラによると、不揮発性メモリに格納された被写体データに関連付ける背景データが選択されるまでは、被写体データと背景データとを合成表示することなしに、被写体データを表示するため、複数の背景データから少なくとも1つをユーザに選択させるために必要な処理が少ない。したがって第一の発明に係るディジタルカメラによると、撮影後に短時間で背景データを設定することができる。
第二の発明は、撮影後に合成後の画像を確認しながら背景データを設定することができ、撮影後に背景データを変更したり新規に背景データを設定したりすることができるディジタルカメラを提供することを目的とする。
上記目的を達成するため、第二の発明に係るディジタルカメラは、イメージセンサの出力に基づいて被写体データを作成し不揮発性メモリに格納する撮影手段と、前記不揮発性メモリに格納された被写体データの1つに対し複数の背景データを個別に合成してディスプレイに表示し、合成表示された複数の背景データの少なくとも1つをユーザに選択させる背景選択手段と、前記不揮発性メモリに格納された被写体データと前記選択された背景データとを関連付ける情報を前記不揮発性メモリに格納する背景設定手段と、を備えることを特徴とする。第二の発明に係るディジタルカメラによると、背景データと被写体データとを合成して得たデータを不揮発性メモリに格納するのではなく、背景データと被写体データとを関連付ける情報を不揮発性メモリに格納するため、撮影後に背景データを設定することができる。また、第二の発明に係るディジタルカメラによると、被写体データの1つに対し複数の背景データを個別に合成してディスプレイに表示し、合成表示された複数の背景データの少なくとも1つをユーザに選択させるため、ユーザは撮影後に合成後の画像を確認しながら背景データを設定することができる。
It is an object of the first invention to provide a digital camera that can set background data in a short time after shooting and can change background data or set new background data after shooting. .
In order to achieve this object, a digital camera according to a first aspect of the present invention includes a photographing unit that creates subject data based on the output of the image sensor and stores it in a nonvolatile memory, and a plurality of background data to be combined with the subject data. Is displayed on the display, and the background selection means for allowing the user to select at least one of the displayed plurality of background data, the subject data stored in the nonvolatile memory, and the selected background data are combined on the display. The image display apparatus includes: composite display means for displaying; and background setting means for storing in the nonvolatile memory information for associating subject data stored in the nonvolatile memory with selected background data. According to the digital camera of the first aspect, the subject data is displayed without combining and displaying the subject data and the background data until the background data associated with the subject data stored in the nonvolatile memory is selected. Therefore, there are few processes required for making a user select at least one from several background data. Therefore, according to the digital camera of the first aspect, the background data can be set in a short time after shooting.
The second invention provides a digital camera capable of setting background data while checking a composite image after shooting, and changing background data or setting new background data after shooting. For the purpose.
In order to achieve the above object, a digital camera according to a second aspect of the present invention includes a photographing unit that creates subject data based on an output of an image sensor and stores the subject data in a nonvolatile memory, and a subject data stored in the nonvolatile memory. A plurality of background data for each one are combined and displayed on a display, and background selection means for allowing the user to select at least one of the plurality of background data combined and displayed, and a subject stored in the nonvolatile memory And background setting means for storing information associating the data with the selected background data in the non-volatile memory. According to the digital camera of the second invention, the information obtained by combining the background data and the subject data is not stored in the nonvolatile memory, but the information relating the background data and the subject data is stored in the nonvolatile memory. Therefore, background data can be set after shooting. According to the digital camera of the second invention, a plurality of background data is individually combined with one of the subject data and displayed on the display, and at least one of the plurality of background data combined and displayed is displayed to the user. In order to make the selection, the user can set the background data while checking the combined image after shooting.

図1は、本発明の第一実施例において、撮影後に被写体データと背景データとの関連付けを設定する処理の流れを示すフローチャートである。
図2は、本発明の第一実施例によるディジタルカメラを示すブロック図である。
図3(A)は本発明の第一実施例によるディジタルカメラの背面図、図3(B)はその正面図である。
図4は、本発明の第一実施例において、リムーバブルメモリに記録された背景ファイルを示す模式図である。
図5は、本発明の第一実施例において、撮影前に被写体データと背景データとを関連付けてリムーバブルメモリに被写体データを格納する処理の流れを示すフローチャートである。
図6は、本発明の第一実施例によるディジタルカメラにおける被写体データと背景データとを関連付ける情報を説明するための模式図である。
図7は、本発明の第一実施例においてLCDに表示される合成画像データを示す模式図である。
図8は、本発明の第一実施例において被写体データと背景データを合成表示する処理を示す模式図である。
図9は、本発明の第二実施例において、撮影後に被写体データと背景データとの関連付けを設定する処理の流れを示すフローチャートである。
図10は、本発明の第二実施例においてLCDに表示される合成画像データを示す模式図である。
FIG. 1 is a flowchart showing a flow of processing for setting association between subject data and background data after shooting in the first embodiment of the present invention.
FIG. 2 is a block diagram showing a digital camera according to the first embodiment of the present invention.
FIG. 3A is a rear view of the digital camera according to the first embodiment of the present invention, and FIG. 3B is a front view thereof.
FIG. 4 is a schematic diagram showing a background file recorded in the removable memory in the first embodiment of the present invention.
FIG. 5 is a flowchart showing a flow of processing for storing subject data in a removable memory in association with subject data and background data before photographing in the first embodiment of the present invention.
FIG. 6 is a schematic diagram for explaining information associating subject data and background data in the digital camera according to the first embodiment of the present invention.
FIG. 7 is a schematic diagram showing composite image data displayed on the LCD in the first embodiment of the present invention.
FIG. 8 is a schematic diagram showing processing for combining and displaying subject data and background data in the first embodiment of the present invention.
FIG. 9 is a flowchart showing the flow of processing for setting the association between subject data and background data after shooting in the second embodiment of the present invention.
FIG. 10 is a schematic diagram showing composite image data displayed on the LCD in the second embodiment of the present invention.

以下、実施例に基づいて本発明の実施の形態を説明する。
(第一実施例)
図2は、本発明の第一実施例によるディジタルカメラ1の構成を示すブロック図である。図3(A)、図3(B)は、それぞれディジタルカメラ1の外観を示す正面図、背面図である。
レンズ駆動部72は、CPU68から入力される信号に応じた倍率で被写体像がイメージセンサ44の受光部に結像されるように、ズームレンズ40を駆動する。絞り駆動部74は、イメージセンサ44への入射光量がCPU68から入力される信号に応じた入射光量になるように光学絞り42を駆動する。
イメージセンサ44は、C(Cyan)、M(Magenta)、Y(Yellow)及びG(Green)の4色の補色フィルタで構成されたカラーフィルタアレイをオンチップで形成したエリアイメージセンサであり、受光した光を光電変換して得られる電荷を一定時間蓄積し、光電変換素子毎の受光量に応じた電気信号を出力する。なお、カラーフィルタアレイは、CMYの3色の補色フィルタで構成してもよいし、R(Red)、G(Green)、B(Blue)の原色フィルタで構成してもよい。
CDS回路46は、アナログ電気信号に含まれる雑音の低減処理を行う。AGC回路48は、ゲインの調整によりアナログ電気信号のレベルの調整を行う。A/D変換器50は、上記各処理の施されたアナログ電気信号を所定階調のディジタル信号に量子化する。走査制御部76は、イメージセンサ44にシフトパルス、垂直転送パルス、水平転送パルス等を出力し、CDS回路46、AGC回路48及びA/D変換器50にこれらをイメージセンサ44と同期して作動させるための駆動パルスを出力する。
ディジタル画像処理部52は、例えばDSP(Digital Signal Processor)で構成され、A/D変換器50から出力された画像信号に基づいて、画像生成処理、ホワイトバランス補正、Y補正、色空間変換等を行い、各画素について例えばR、G、Bの階調値や、Y、Cb及びCrの階調値などを表す被写体データを作成し、RAM66に格納する。尚、ここでいう画像生成処理とは、主に、各光電変換素子の出力に対応するCMYGいずれかの階調値を表すディジタルデータを用いた補間処理により画素毎にCMYGの4つの階調値を持つ画像データを生成する処理である。
圧縮・伸張処理部54は、撮影モードにおいては、ディジタル画像処理部52から出力された被写体データを圧縮して例えばJPEG形式に準拠した圧縮画像データを作成し、再生モードにおいては、リーダライタ56を用いてリムーバブルメモリ57から読み出した圧縮画像データを伸張してRAM66に格納する。リーダライタ56にはフラッシュメモリ等の不揮発性メモリで構成されるリムーバブルメモリ57を脱着自在であって、リーダライタ56はリムーバブルメモリ57にデータを書き込み、また、リムーバブルメモリ57に格納されたデータを読み取る。
操作部64は、電源のON/OFFを行うための電源ボタン14、撮影モード、再生モード、ダイレクトプリントモードなどのモードを切り替えるためのダイヤルスイッチ16、シャッタ指示を入力するためのシャッタボタン28、撮影モードにおいて背景を設定するための背景設定キー18、ズームレンズの倍率を設定するためのズームボタン10、12、次選択キー20、前選択キー22、決定キー24等の各種のボタンとボタンの押下及びダイヤルスイッチ16の回転角度を検出する回路を備えている。
表示制御部58は、ディジタル画像処理部52から出力される画像データをディスプレイの表示領域に応じて固定倍率で間引く処理、色空間変換処理、合成処理等を行い、これらの処理を施して作成した表示データに基づいてディスプレイとしてのLCD(Liquid Crystal Display)26を駆動する。フレームバッファ62には合成される画像データを個別に格納する背景領域と前景領域とがある。表示制御部58は、前景領域に格納された画像データの透明画素よりも背景領域に格納された画像データの画素を優先して表示し、背景領域に格納された画像データの画素よりも前景領域に格納された画像データの不透明画素を優先して表示することにより、前景領域及び背景領域にそれぞれ格納された画像データをLCD26に合成表示するための合成処理回路を備えている。
CPU68は、ROM70に記憶されているコンピュータプログラムを実行することにより、ディジタルカメラ1の全体を制御する。ROM70は、CPU68が各種の制御を実行するためのコンピュータプログラムなどを格納するためのメモリである。RAM66は、各種のプログラムやデータを一時的に記憶するためのメモリである。
以上、ディジタルカメラ1の構成を説明した。次に背景データについて説明する。図4はリムーバブルメモリ57に記録された背景ファイルを示す模式図である。
背景ファイルは写真入り挨拶状、写真入りシールなどの印刷物を作成するためのものであって、パーソナルコンピュータなどから転送してROM70又はリムーバブルメモリ57に予め格納しておく。以後、背景ファイルはリムーバブルメモリ57の所定のフォルダ(背景フォルダ)に格納されているものとして説明する。背景ファイルに格納されている背景データは、線画、塗りつぶし、文字などで構成される画像80、82を表す。ハッチングが付された領域は被写体データがはめ込み合成される領域(透明領域)である。透明領域の画素の階調値には、例えばR=00H、G=00H、B=00Hなどの予め決められた透明を表す値が設定されている。尚、透明領域は、RGBの各チャンネルから独立した所謂αチャンネルによって規定してもよい。背景データには、被写体データが一部に割り付けられる大背景データと、被写体データが全体に割り付けられる小背景データとがある。より具体的には、合成処理時に被写体データ全体の画像と背景データ全体の画像とを重ねたとき、背景データ全体の画像が被写体データ全体の画像より大きくなるものが大背景データであり、背景データ全体の画像が被写体データ全体の画像と等しいか小さくなるものが小背景データである。
小背景データが表す画像には例えば画像80のようなものがあり、大背景データが表す画像には例えば画像82のようなものがある。画像80を表す小背景データは例えば640×480画素の被写体データに対して合成処理時に640×480画素になる。画像82を表す大背景データの画素数は例えば640×480画素の被写体データに対して合成処理時に640×960画素になる。なお、合成処理時における大背景データ及び小背景データの画素数は例示した画素数に限定されず、大背景データは640×480画素の被写体データに対して例えば1600×1200画素であってもよい。また、リムーバブルメモリ57に格納されている状態においては、背景データの画像サイズは、被写体データの画像サイズに対応していなくともよい。合成処理時に間引き又は補間により被写体データの画像サイズに応じた画素数に変換できるからである。
背景ファイルは、背景データのほか、背景データの画素数、被写体データの原点座標を対応させる座標(合成原点の座標)、割付データの基準画素数、印刷サイズ、背景データの印刷の向き(縦、横)等を示すデータから編成されている。印刷前の合成処理時には、割付データの基準画素数と割り付けようとする被写体データの画素数とを比較し、割り付けようとする被写体データの画素数に応じた大きさに背景データを間引き又は補間し、それに応じて合成原点の座標を変換する。
例えば、背景データの画素数が(1280×640)、合成原点の座標が(20,20)、割付データの基準画素数が(640×480)であって、被写体データの画素数が(1280×960)である場合、被写体データの画素数が水平方向、垂直方向ともに基準画素数の2倍であるため、印刷前の合成処理は次のように行われる。背景データを補間してその画素数を(2560×1280)とし、合成原点の座標を(40,40)に変換し、変換後の背景データの(40,40)〜(1320,1000)の範囲に被写体データが重なるように背景データと被写体データとを合成する。印刷時には、予め背景ファイルに格納された印刷サイズ、背景データの印刷の向き等に基づいて、さらに補間処理又は間引き処理又は回転処理が行われ、設定された印刷サイズ及び印刷の向きの合成画像がプリンタによって印刷される。
尚、背景ファイルにおいて、被写体データを割り付ける印刷用紙上の領域の位置と大きさを、例えば印刷用紙に対応した領域上の左上座標と右下座標などのパラメータで表してもよい。また、被写体データを割り付ける領域の大きさに応じて被写体データを間引き又は補間し、その後、背景ファイルで規定された領域に間引き又は補間した被写体データを割り付けてもよい。
また、パーソナルコンピュータ又はスタンドアロンプリンタで被写体データと背景データとを合成した後に印刷することとし、ディジタルカメラ1とプリンタとを直結して印刷することを想定しないのであれば、印刷用合成画像データの作成に用いる真の背景データはパーソナルコンピュータ又はスタンドアロンプリンタに格納しておき、真の背景データよりも低解像度で階調が粗いものを用いてディジタルカメラ1における表示処理を実行してもよい。このようにすれば、ディジタルカメラ1のメモリ空間が背景データで圧迫されることがなく、また、背景データを高速に処理することができる。
以上、背景データについて説明した。次にディジタルカメラ1の作動を説明する。図5は撮影前に被写体データと背景データとを関連付けてリムーバブルメモリ57に被写体データを格納する処理の流れを示すフローチャートである。図5に示すシーケンスはダイヤルスイッチ16の回転角度によって決まる撮影モードにおいて、オペレータが背景設定キー18を押下することによって開始される。
ステップS100では、リムーバブルメモリ57に格納された背景ファイルのいずれか1つが選択される。ステップS105では、選択された背景ファイルに格納された背景データがLCD26に表示される。ステップS110で次選択キー20が押下されるとステップS100に戻って次の背景ファイルが選択されて上述の処理が繰り返される。
ステップS120で決定キー24が押されると、ステップS130では、背景データの透明領域内に被写体像を動画表示する。具体的には、ステップS100〜S120で選択された背景データと、ディジタル画像処理部52で作成した被写体データとをフレームバッファ62に格納し、表示制御部58がフレームバッファ62に格納された被写体データ及び背景データを合成してLCD26に駆動信号を出力することにより、図3(A)に示すように合成画像が表示される。被写体データが所定時間毎に更新されることで被写体データは動画表示される。これによりステップS120で決定キー24が押されることによって選択された背景データに調和するように被写体データを作成すること、すなわち適切な構図とタイミングでシャッタ指示を入力することが可能になる。
ステップS140ではシャッタ指示が入力されたか否か、すなわちシャッタボタン28が押下されたか否かを検出し、シャッタボタン28の押下が検出されなければステップS130に戻って上述の処理を繰り返す。ステップS140でシャッタボタン28の押下が検出された場合、ステップS150に進む。
ステップS150では、走査制御部76に所定の制御信号を入力し、イメージセンサ44に所定時間蓄積した電荷を走査し、ディジタル画像処理部52で被写体データを作成させ、その被写体データを圧縮・伸張処理部54で圧縮して圧縮画像データを作成し、それをJPEGなどの所定のファイル形式でリーダライタ56によって図6に示すリムーバブルメモリ57の被写体フォルダに格納する。
ステップS160では、ステップS150で記録された被写体データとステップS110の決定キー24の押下により選択された背景ファイルとを関連付ける情報をリムーバブルメモリ57に格納する。具体的には、ステップS150で記録された被写体データのファイル名を「被写体ファイル名」とし、ステップS110の決定キー24の押下により選択された背景ファイルのファイル名を「背景ファイル名」とし、「設定時」を撮影前とした関連付けレコードを作成し、図6に示す設定テーブルTに追加する。
ここで被写体データと背景ファイルとを関連付ける情報を管理する設定テーブルTについて説明する。設定テーブルTは、リムーバブルメモリ57の設定フォルダに記録される。設定テーブルTは、被写体ファイルと背景ファイルとを一対一で関連付ける関連付けレコードから編成されている。各関連付けレコードは、IDと、被写体ファイル名と、背景ファイル名と、設定時とから構成されている。「被写体ファイル名」は、被写体データが格納されている被写体ファイルをディジタルカメラ1、パーソナルコンピュータなどのファイルシステムで一意に識別するためのデータである。「背景ファイル名」は、ディジタルカメラ1、パーソナルコンピュータなどのファイルシステムで背景ファイルを一意に識別するためのデータである。「設定時」は、当該関連付けレコードが撮影前に作成されたものであるか、撮影後に作成又は編集されたものであるかを示すデータである。すなわち、「設定時」が撮影前である関連付けレコードは、ステップS160で作成された関連付けレコードであって、その後に編集されていない関連付けレコードである。「設定時」が撮影後である関連付けレコードは、後述する背景設定モードで追加又は上書きされた関連付けレコードである。「設定時」が撮影前であるか否かを判別することによって、当該関連付けレコードで関連付けられている背景ファイルと被写体ファイルとの組み合わせが、シャッタ指示の入力時にオペレータが意図した被写体と背景とを調和させる組み合わせか否かを特定できるようになる。尚、背景データが設定されていない状態でシャッタ指示が入力されたときに、「背景ファイル名」に「背景なし」を設定した関連付けレコードを作成し、シャッタ指示毎に関連付けレコードを設定テーブルに毎回追加してもよい。
設定テーブルTには、任意の組み合わせで被写体ファイルと背景ファイルとを関連付ける関連付けレコードをメモリ容量の上限内であれば無制限に追加できる。また、1つの被写体ファイルに対して互いに異なる背景ファイルをそれぞれ関連付ける関連付けレコード(図6の例ではIDが3と4の関連付けレコード)を作成することができる。したがって、設定テーブルTを用いることで1つの被写体ファイルに複数の背景ファイルを関連付ける情報をリムーバブルメモリ57に格納することができる。
尚、被写体データと背景データとは、テーブルに限らず、ディレクトリによって関連付けてもよいし、被写体ファイルや背景ファイルに相手方のファイル名を格納することによって関連付けてもよい。また、背景ファイルのパスを記述した関連づけファイルを被写体ファイル毎に記録し、関連づけファイルのファイル名と被写体ファイルのファイル名とに関連を持たせる(例えばファイル名の一部を一致させる。)ことにより、被写体データと背景データとを関連づけてもよい。
次に撮影後に被写体データと背景データとの関連付けを設定する処理を説明する。図1は、この処理の流れを示すフローチャートである。図1に示すシーケンスは再生モードに対応するダイヤルスイッチ16の回転角度が操作部64で検出されることによって開始される。
ステップS200では、設定テーブルTに格納された関連付けレコードのいずれか1つを選択する。ステップS210では、選択された関連付けレコードに格納された被写体ファイル名の被写体データをLCD26に表示する。このとき、選択された関連付けレコードにおいて被写体ファイルに背景ファイルが関連付けられていれば、そのことを示す文字やアイコンを図7(A)に示すように被写体に合成して表示する。具体的には例えば次のように処理する。はじめに被写体データがリーダライタ56によりリムーバブルメモリ57から読み取られ、圧縮・伸張処理部54で伸張されてRAM66に格納される。尚、被写体データは予め圧縮して記録されているものとして説明したが、非圧縮の状態で記録されていてもよい。次に表示制御部58がLCD26の表示領域の画素数に応じて被写体データを間引きしてフレームバッファ62に格納する。表示領域の画素数が320×240画素、被写体データが640×480画素だとすれば、縦横の画素数が2分の1になるように間引きしてフレームバッファ62に格納する。ここで行う間引き処理は、背景データと合成される被写体データであるか合成されない被写体データであるかに関わらず、すべての被写体データに対して行う処理であるため、専用設計されたハードウェアを用いて高速処理することが望ましい。尚、撮影直後の間引き処理により表示領域と等しい画素数のサムネイル画像データを本画像データとともにリムーバブルメモリ57に記録する場合、ここで行う間引き処理は不要である。次に表示制御部58がフレームバッファ62に格納された被写体データに基づいてLCD26を駆動すると、被写体データが表す画像がLCD26に表示される。
ステップS220では、次選択キー20が押されたか否かを検出し、押された場合はステップS200に戻って次の関連付けレコードを選択し、上述の処理を繰り返す。ステップS220で次選択キー20が押されていない場合、ステップS230に進み、モードの切替指示が入力されたか否か、すなわちダイヤルスイッチ16の回転角度が変更されたか否かを検出し、モードの切替指示が入力された場合には再生モードを終了し、別のモードに切り換える。ステップS230でモードの切換指示が入力されていない場合、ステップS240に進み、背景設定キー18が押されたか否かを検出し、押された場合にはステップS250に進み、背景設定モードに移行する。尚、ステップS250〜ステップS320までの一連の処理を実行するモードを背景設定モードというものとする。ステップS240で背景設定キー18が押されていない場合、ステップS220に戻って上述の処理を繰り返す。
ステップS250では、リムーバブルメモリに格納されたいずれか1つの背景ファイルが選択される。ステップS240の直後に実行される1回目の処理では、ステップS200で選択された関連付けレコードで関連付けられた背景ファイルが選択される。ステップS260では、選択された背景ファイルに格納された背景データを例えば図7(B)に示すようにLCD26に表示する。具体的には例えば次のように処理する。はじめに背景データがリーダライタ56によりリムーバブルメモリ57から読み取られ、圧縮・伸張処理部54で伸張されてRAM66に格納される。尚、背景データは予め圧縮して記録されているものとして説明したが、非圧縮の状態で記録されていてもよい。次にLCD26の表示領域の画素数に応じて背景データを縮小し、必要に応じて回転させる処理を行う。表示領域の画素数が320×240画素、背景データが640×960画素の縦向きだとすれば、縦横の画素数が3分の1になるように間引き、90°回転させ、320×213画素の背景データを作成する。この処理はハードウェアを簡素化するため、また任意の画素数の背景データに対応するため、CPU68で実行するプログラムによって行うことが望ましい。表示用に編集された背景データはフレームバッファ62に格納され、それに基づいて表示制御部58がLCD26を駆動することにより表示される。
ステップS270では、次選択キー20が押されたか否かを検出し、押された場合、ステップS250に戻って次の背景データを選択し、上述の処理を繰り返し、例えば図7(C)に示すように次の背景データをLCD26に表示する。押されていない場合、ステップS280に進み、決定キー24が押されたか否か、すなわちユーザによって背景データが選択されたか否かを検出する。次選択キー20又は決定キー24が押されるまでステップS270及びステップS280を繰り返し、決定キー24が押されることによりユーザによって背景データが選択されるとステップS290に進む。
ステップS290では、現在選択されている関連付けレコードで関連付けられた被写体データとステップS280でユーザによって選択された背景データとを合成して例えば図7(D)に示す合成画像をLCD26に表示する。具体的には例えば次のように処理する。はじめにリーダライタ56によりリムーバブルメモリ57から背景データが読み取られて圧縮・伸張処理部54で伸張され、図8に示すようにRAM66に背景データ80が格納される。次に、表示領域より画素数が多い背景データ80の全体を一画面に表示するため、背景データ80の画素数に応じた縮小処理と必要に応じた回転処理を行う。例えば、表示領域が320×240画素、背景データ80が640×960画素の縦向きだとすれば、縦横の画素数が3分の1になるように背景データ80を間引き、90°回転させ、320×213画素の印刷プレビュー用背景データ89を作成し、フレームバッファ62の前景領域に格納する。
次に、RAM66に格納された被写体データを、背景ファイルに格納されている情報(背景データの画素数、合成原点の座標、割付データの基準画素数など)と表示領域の画素数に応じて間引きし、座標変換により回転及び平行移動させて印刷プレビュー用被写体データ88を作成する。背景データ80の一部に被写体データ84を割り付ける場合、ステップS210で行った間引き処理よりも、ステップS290で行う間引き処理の方が、倍率が小さくなる。また例えば、図8に示すように印刷プレビュー用背景データ89に縦向きの被写体データを合成する場合、横向きにRAM66に格納された被写体データ84を時計回りに90°回転させる。また例えば、背景データに対して行った間引き処理及び回転処理による座標変換に応じて被写体データ85の座標を変換する。図8に示す例では、RAM66に格納された640×480画素の横向きの被写体データ84から160×213画素の縦向きの印刷プレビュー用被写体データ88が作成され、印刷プレビュー用被写体データ85はフレームバッファ62の前景領域のうち画面右側に相当する領域に格納され、画面左側に相当する領域は透明を示す値が格納されている。次に表示制御部58がフレームバッファ62に格納された印刷プレビュー用被写体データ88及び印刷プレビュー用背景データ89を合成してLCD26に駆動信号を出力することにより、例えば図7(D)に示すように印刷プレビュー用合成画像の全体がLCD26の一画面に表示される。
ステップS300では、現在選択されている関連付けレコードで関連付けられている被写体データと、ステップS250で選択された背景ファイルとを関連付ける情報を設定テーブルTに記録するにあたって、現在選択されている関連付けレコードを上書きするのか、新規の関連付けレコードを追加するのかをオペレータに選択させる。具体的には例えば、「上書きしますか?」の文字列とともに「はい」及び「いいえ」のボタンをLCD26に表示し、「はい」及び「いいえ」のボタンのいずれか一方を次選択キー20、前選択キー22及び決定キー24で選択させる。
ステップS300で上書きが選択された場合、ステップS310に進み、現在選択されている関連付けレコードの背景ファイル名をステップS250で選択された背景データのファイル名に変更し、その関連付けレコードの「設定時」を「撮影後」に変更する。
ステップS300で上書きが選択されない場合、ステップS320に進み、現在選択されている関連付けレコードの被写体ファイル名を「被写体ファイル名」とし、ステップS250で選択された背景データのファイル名を「背景ファイル名」とし、「設定時」を「撮影後」とした新規関連付けレコードを作成し、設定テーブルTに追加する。このとき追加される関連付けレコードは、請求項に記載された第二関連付けデータに相当する。ステップS310又はステップS320の処理が終了すると、ステップS220に戻って上述の処理を繰り返す。
以上、撮影後に被写体データと背景データとの関連付けを設定する処理を説明した。第一実施例では、請求項に記載の撮影手段は、CDS回路46、AGC回路48、A/D変換器50、ディジタル画像処理部52、RAM66、圧縮・伸張処理部54、リーダライタ56などで構成され、その機能はステップS150の処理によって実現されている。請求項に記載の背景選択手段は、フレームバッファ62、表示制御部58、背景設定キー18、次選択キー20、前選択キー22、決定キー24などで構成され、その機能は、ステップS250〜ステップS280の処理によって実現されている。請求項に記載の合成表示手段は、フレームバッファ62、表示制御部58などで構成され、その機能は、ステップS290の処理によって実現されている。請求項に記載の背景設定手段は、CPU68、RAM66、リーダライタ56などで構成され、その機能は、ステップS310及びステップS320の処理によって実現されている。
以上説明した第一実施例では、被写体データと背景データとを合成して得たデータではなく被写体データそのものをリムーバブルメモリ57に格納し、被写体データと背景データとを設定テーブルTに格納する関連付けレコードによって関連付けるため、被写体データと合成される背景データを撮影後に設定することができる。さらに、第一実施例では、リムーバブルメモリ57に格納された被写体データに関連付ける背景データがステップS280においてユーザによって選択されるまでは、被写体データと背景データとを合成表示することなしに、被写体データだけを表示する。被写体データと背景データとを合成表示するために必要な処理量は被写体データだけを表示するために必要な処理量より多い。特に合成表示のために被写体データの縮小、回転、平行移動などの処理が必要になる場合、被写体データと背景データとを合成表示するために必要な処理量は、被写体データだけを表示するために必要な処理量より格段に多くなる。第一実施例では、上述したとおり、リムーバブルメモリ57に格納された被写体データに関連付ける背景データがステップS280においてユーザによって選択されるまでは、被写体データと背景データとを合成表示することなしに、被写体データだけを表示するため、複数の背景データの1つをユーザに選択させるために必要な処理が少ない。したがって、第一実施例によると、ユーザは撮影後に短時間で背景データを設定することができる。
(第二実施例)
図9は、本発明の第二実施例において、撮影後に被写体データと背景データとの関連付けを設定する処理の流れを示すフローチャートである。第一実施例の処理と同一の処理については同一の符号を用いて説明を省略する。
ステップS265では、現在選択されている関連付けレコードで関連付けられた被写体データとステップS250で選択された背景データとを合成して例えば図10(A)に示す合成画像をLCD26に表示する。具体的には例えば第一実施例のステップS290と同様の処理を実施する。
ステップS270では、次選択キー20が押されたか否かを検出し、押された場合、ステップS250に戻って次の背景データを選択し、上述の処理を繰り返し、例えば図7(B)に示すように次の背景データと既に選択されている被写体データ84とをLCD26に合成表示する。押されていない場合、ステップS280に進み、決定キー24が押されたか否か、すなわちユーザによって背景データが選択されたか否かを検出する。次選択キー20又は決定キー24が押されるまでステップS270及びステップS280を繰り返し、決定キー24が押されることによりユーザによって背景データが選択されるとステップS300に進む。
以上説明した本発明の第二実施例では、被写体データと背景データとを合成して得たデータではなく被写体データそのものをリムーバブルメモリ57に格納し、被写体データと背景データとを設定テーブルTに格納する関連付けレコードによって関連付けるため、被写体データと合成される背景データを撮影後に設定することができる。さらに、本発明の第二実施例では、被写体データの1つに対し、次選択キー20の押下に応じて複数の背景データを入れ替えながら、被写体データと背景データとを合成してディスプレイに表示し、合成表示された複数の背景データの少なくとも1つをユーザに選択させるため、ユーザは撮影後に合成後の画像を確認しながら背景データを設定することができる。
Embodiments of the present invention will be described below based on examples.
(First Example)
FIG. 2 is a block diagram showing the configuration of the digital camera 1 according to the first embodiment of the present invention. FIGS. 3A and 3B are a front view and a rear view, respectively, showing the external appearance of the digital camera 1.
The lens driving unit 72 drives the zoom lens 40 so that the subject image is formed on the light receiving unit of the image sensor 44 at a magnification according to the signal input from the CPU 68. The diaphragm drive unit 74 drives the optical diaphragm 42 so that the amount of incident light on the image sensor 44 becomes the amount of incident light corresponding to the signal input from the CPU 68.
The image sensor 44 is an area image sensor in which a color filter array composed of four complementary color filters of C (Cyan), M (Magenta), Y (Yellow), and G (Green) is formed on-chip. The electric charge obtained by photoelectrically converting the obtained light is accumulated for a certain period of time, and an electric signal corresponding to the amount of received light for each photoelectric conversion element is output. The color filter array may be composed of CMY three-color complementary color filters, or may be composed of R (Red), G (Green), and B (Blue) primary color filters.
The CDS circuit 46 performs processing for reducing noise included in the analog electric signal. The AGC circuit 48 adjusts the level of the analog electric signal by adjusting the gain. The A / D converter 50 quantizes the analog electric signal subjected to the above processes into a digital signal having a predetermined gradation. The scanning control unit 76 outputs a shift pulse, a vertical transfer pulse, a horizontal transfer pulse, etc. to the image sensor 44 and operates them in synchronization with the image sensor 44 to the CDS circuit 46, the AGC circuit 48 and the A / D converter 50. The drive pulse for making it output is output.
The digital image processing unit 52 is configured by, for example, a DSP (Digital Signal Processor), and performs image generation processing, white balance correction, Y correction, color space conversion, and the like based on the image signal output from the A / D converter 50. For example, subject data representing, for example, R, G, and B tone values, Y, Cb, and Cr tone values for each pixel are created and stored in the RAM 66. Note that the image generation processing here is mainly four CMYG gradation values for each pixel by interpolation processing using digital data representing any one of CMYG gradation values corresponding to the output of each photoelectric conversion element. Is a process for generating image data having
In the shooting mode, the compression / decompression processing unit 54 compresses the subject data output from the digital image processing unit 52 to create compressed image data compliant with, for example, the JPEG format, and in the playback mode, the reader / writer 56 is operated. The compressed image data read from the removable memory 57 is decompressed and stored in the RAM 66. A removable memory 57 composed of a non-volatile memory such as a flash memory is detachable from the reader / writer 56. The reader / writer 56 writes data to the removable memory 57 and reads data stored in the removable memory 57. .
The operation unit 64 includes a power button 14 for turning on / off the power, a dial switch 16 for switching modes such as a photographing mode, a reproduction mode, and a direct print mode, a shutter button 28 for inputting a shutter instruction, and photographing. Various buttons and button presses such as the background setting key 18 for setting the background in the mode, the zoom buttons 10 and 12 for setting the zoom lens magnification, the next selection key 20, the previous selection key 22, and the decision key 24 And a circuit for detecting the rotation angle of the dial switch 16.
The display control unit 58 performs processing that thins out the image data output from the digital image processing unit 52 at a fixed magnification according to the display area of the display, color space conversion processing, synthesis processing, and the like, and performs these processing to create the data. An LCD (Liquid Crystal Display) 26 as a display is driven based on the display data. The frame buffer 62 has a background area and a foreground area for individually storing image data to be combined. The display control unit 58 preferentially displays the pixel of the image data stored in the background area over the transparent pixel of the image data stored in the foreground area, and displays the pixel of the image data stored in the background area. Is provided with a composition processing circuit for composing and displaying the image data stored in the foreground area and the background area on the LCD 26 by preferentially displaying the opaque pixels of the image data stored in the image data.
The CPU 68 controls the entire digital camera 1 by executing a computer program stored in the ROM 70. The ROM 70 is a memory for storing a computer program for the CPU 68 to execute various controls. The RAM 66 is a memory for temporarily storing various programs and data.
The configuration of the digital camera 1 has been described above. Next, background data will be described. FIG. 4 is a schematic diagram showing a background file recorded in the removable memory 57.
The background file is for creating a printed matter such as a greeting card with a photo or a sticker with a photo, and is transferred from a personal computer or the like and stored in the ROM 70 or the removable memory 57 in advance. Hereinafter, it is assumed that the background file is stored in a predetermined folder (background folder) in the removable memory 57. The background data stored in the background file represents images 80 and 82 composed of line drawings, fills, characters, and the like. The hatched area is an area (transparent area) where subject data is inserted and combined. As the gradation value of the pixel in the transparent region, for example, a value representing a predetermined transparency such as R = 00H, G = 00H, B = 00H is set. The transparent area may be defined by a so-called α channel that is independent from each of the RGB channels. Background data includes large background data in which subject data is assigned to a part and small background data in which subject data is assigned to the whole. More specifically, when the image of the entire subject data and the image of the entire background data are overlapped during the synthesis process, the background data is the large background data in which the image of the entire background data becomes larger than the image of the entire subject data. Small background data is an image in which the entire image is equal to or smaller than the image of the entire subject data.
The image represented by the small background data is, for example, an image 80, and the image represented by the large background data is, for example, an image 82. The small background data representing the image 80 becomes, for example, 640 × 480 pixels at the time of composition processing on subject data of 640 × 480 pixels. The number of pixels of the large background data representing the image 82 is, for example, 640 × 960 pixels at the time of composition processing on subject data of 640 × 480 pixels. Note that the number of pixels of the large background data and the small background data at the time of the composition processing is not limited to the exemplified number of pixels, and the large background data may be, for example, 1600 × 1200 pixels with respect to the subject data of 640 × 480 pixels. . Further, in the state stored in the removable memory 57, the image size of the background data does not have to correspond to the image size of the subject data. This is because the number of pixels corresponding to the image size of the subject data can be converted by thinning or interpolation during the synthesis process.
In addition to background data, the background file includes the number of pixels in the background data, the coordinates that correspond to the origin coordinates of the subject data (composite origin coordinates), the reference pixel count of the allocation data, the print size, and the orientation of the background data (vertical, It is organized from data indicating horizontal). During the composition process before printing, the reference pixel count of the allocation data is compared with the pixel count of the subject data to be allocated, and the background data is thinned out or interpolated to a size corresponding to the number of pixels of the subject data to be allocated. Then, the coordinates of the composite origin are converted accordingly.
For example, the number of pixels of background data is (1280 × 640), the coordinates of the composition origin are (20, 20), the reference data number of allocation data is (640 × 480), and the number of pixels of subject data is (1280 × 640). 960), since the number of pixels of the subject data is twice the reference number of pixels in both the horizontal and vertical directions, the composition process before printing is performed as follows. The background data is interpolated, the number of pixels is (2560 × 1280), the coordinates of the synthesis origin are converted to (40, 40), and the range of the converted background data is (40, 40) to (1320, 1000) The background data and the subject data are synthesized so that the subject data overlaps with each other. At the time of printing, interpolation processing, thinning-out processing, or rotation processing is further performed based on the print size stored in the background file in advance, the printing direction of the background data, and the like, and a composite image of the set printing size and printing direction is obtained. Printed by the printer.
In the background file, the position and size of the area on the printing paper to which the subject data is assigned may be represented by parameters such as upper left coordinates and lower right coordinates on the area corresponding to the printing paper. Further, the subject data may be thinned or interpolated according to the size of the area to which the subject data is assigned, and then the subject data that has been thinned or interpolated is assigned to the area defined by the background file.
If the subject data and the background data are combined by a personal computer or a stand-alone printer and then printed, and if it is not assumed that the digital camera 1 and the printer are directly connected, then printing composite image data is created. The true background data used in the digital camera 1 may be stored in a personal computer or a stand-alone printer, and display processing in the digital camera 1 may be executed using data having a lower resolution and coarser gradation than the true background data. In this way, the memory space of the digital camera 1 is not compressed by the background data, and the background data can be processed at high speed.
The background data has been described above. Next, the operation of the digital camera 1 will be described. FIG. 5 is a flowchart showing a flow of processing for storing subject data in the removable memory 57 in association with subject data and background data before photographing. The sequence shown in FIG. 5 is started when the operator presses the background setting key 18 in the photographing mode determined by the rotation angle of the dial switch 16.
In step S100, one of the background files stored in the removable memory 57 is selected. In step S105, the background data stored in the selected background file is displayed on the LCD 26. When the next selection key 20 is pressed in step S110, the process returns to step S100, the next background file is selected, and the above-described processing is repeated.
When the enter key 24 is pressed in step S120, the subject image is displayed as a moving image in the transparent area of the background data in step S130. Specifically, the background data selected in steps S100 to S120 and the subject data created by the digital image processing unit 52 are stored in the frame buffer 62, and the subject control data stored in the frame buffer 62 by the display control unit 58 is stored. Then, by combining the background data and outputting a drive signal to the LCD 26, a composite image is displayed as shown in FIG. The subject data is displayed as a moving image by updating the subject data every predetermined time. This makes it possible to create subject data so as to match the background data selected by pressing the enter key 24 in step S120, that is, to input a shutter instruction with an appropriate composition and timing.
In step S140, it is detected whether or not a shutter instruction has been input, that is, whether or not the shutter button 28 has been pressed. If pressing of the shutter button 28 has not been detected, the process returns to step S130 and the above-described processing is repeated. If pressing of the shutter button 28 is detected in step S140, the process proceeds to step S150.
In step S150, a predetermined control signal is input to the scanning control unit 76, the charges accumulated in the image sensor 44 for a predetermined time are scanned, subject data is created by the digital image processing unit 52, and the subject data is compressed / expanded. The compressed image data is generated by compression by the unit 54 and stored in a subject folder of the removable memory 57 shown in FIG. 6 by the reader / writer 56 in a predetermined file format such as JPEG.
In step S160, information relating the subject data recorded in step S150 and the background file selected by pressing the enter key 24 in step S110 is stored in the removable memory 57. Specifically, the file name of the subject data recorded in step S150 is “subject file name”, the file name of the background file selected by pressing the enter key 24 in step S110 is “background file name”, and “ An association record in which “when setting” is set before photographing is created and added to the setting table T shown in FIG.
Here, a setting table T for managing information for associating subject data with a background file will be described. The setting table T is recorded in the setting folder of the removable memory 57. The setting table T is organized from association records that associate a subject file and a background file on a one-to-one basis. Each association record includes an ID, a subject file name, a background file name, and a setting time. “Subject file name” is data for uniquely identifying a subject file in which subject data is stored by a file system such as the digital camera 1 or a personal computer. The “background file name” is data for uniquely identifying a background file in a file system such as the digital camera 1 or a personal computer. “At the time of setting” is data indicating whether the association record is created before shooting, or created or edited after shooting. That is, the association record whose “when set” is before photographing is the association record created in step S160 and is not edited after that. The association record whose “when set” is after shooting is an association record added or overwritten in the background setting mode described later. By determining whether or not “at the time of setting” is before shooting, the combination of the background file and the subject file associated in the association record determines the subject and background intended by the operator when the shutter instruction is input. It becomes possible to specify whether or not the combination is harmonized. When a shutter instruction is input when no background data is set, an association record in which “no background” is set in “background file name” is created, and an association record is created in the setting table for each shutter instruction. May be added.
In the setting table T, association records for associating subject files and background files in arbitrary combinations can be added without limitation as long as they are within the upper limit of the memory capacity. In addition, it is possible to create an association record (an association record with IDs 3 and 4 in the example of FIG. 6) that associates different background files with one subject file. Therefore, by using the setting table T, information relating a plurality of background files to one subject file can be stored in the removable memory 57.
The subject data and the background data are not limited to the table, but may be associated by a directory, or may be associated by storing the other party's file name in the subject file or the background file. Also, an association file describing the path of the background file is recorded for each subject file, and the association between the file name of the association file and the file name of the subject file is made (for example, a part of the file name is matched). The subject data and the background data may be associated with each other.
Next, processing for setting the association between subject data and background data after shooting will be described. FIG. 1 is a flowchart showing the flow of this process. The sequence shown in FIG. 1 is started when the operation unit 64 detects the rotation angle of the dial switch 16 corresponding to the reproduction mode.
In step S200, one of the association records stored in the setting table T is selected. In step S210, the subject data of the subject file name stored in the selected association record is displayed on the LCD 26. At this time, if a background file is associated with the subject file in the selected association record, characters and icons indicating that are combined with the subject as shown in FIG. 7A and displayed. Specifically, for example, the following processing is performed. First, subject data is read from the removable memory 57 by the reader / writer 56, decompressed by the compression / decompression processing unit 54, and stored in the RAM 66. Although the subject data has been described as being previously compressed and recorded, it may be recorded in an uncompressed state. Next, the display control unit 58 thins out subject data according to the number of pixels in the display area of the LCD 26 and stores it in the frame buffer 62. If the number of pixels in the display area is 320 × 240 pixels and the subject data is 640 × 480 pixels, the pixels are thinned out and stored in the frame buffer 62 so that the number of vertical and horizontal pixels is halved. The thinning process performed here is a process that is performed on all subject data regardless of whether the subject data is combined with the background data or not. Therefore, dedicated hardware is used. High-speed processing is desirable. Note that when the thumbnail image data having the same number of pixels as the display area is recorded in the removable memory 57 together with the main image data by the thinning process immediately after shooting, the thinning process performed here is unnecessary. Next, when the display controller 58 drives the LCD 26 based on the subject data stored in the frame buffer 62, an image represented by the subject data is displayed on the LCD 26.
In step S220, it is detected whether or not the next selection key 20 has been pressed. If it has been pressed, the process returns to step S200 to select the next association record, and the above-described processing is repeated. If the next selection key 20 is not pressed in step S220, the process proceeds to step S230, and it is detected whether or not a mode switching instruction is input, that is, whether or not the rotation angle of the dial switch 16 has been changed. When an instruction is input, the playback mode is terminated and the mode is switched to another mode. If the mode switching instruction is not input in step S230, the process proceeds to step S240, where it is detected whether or not the background setting key 18 has been pressed, and if it has been pressed, the process proceeds to step S250 and the background setting mode is entered. . A mode in which a series of processing from step S250 to step S320 is executed is referred to as a background setting mode. If the background setting key 18 is not pressed in step S240, the process returns to step S220 and the above processing is repeated.
In step S250, one of the background files stored in the removable memory is selected. In the first process executed immediately after step S240, the background file associated with the association record selected in step S200 is selected. In step S260, the background data stored in the selected background file is displayed on the LCD 26 as shown in FIG. 7B, for example. Specifically, for example, the following processing is performed. First, the background data is read from the removable memory 57 by the reader / writer 56, decompressed by the compression / decompression processing unit 54, and stored in the RAM 66. Although the background data has been described as being compressed and recorded in advance, it may be recorded in an uncompressed state. Next, a process of reducing the background data according to the number of pixels in the display area of the LCD 26 and rotating it as necessary is performed. If the display area has 320 × 240 pixels and the background data has a vertical orientation of 640 × 960 pixels, the display area is thinned out so that the number of vertical and horizontal pixels becomes 1/3, rotated 90 °, and 320 × 213 pixels. Create background data for. This process is preferably performed by a program executed by the CPU 68 in order to simplify the hardware and to deal with background data of an arbitrary number of pixels. The background data edited for display is stored in the frame buffer 62, and is displayed by the display control unit 58 driving the LCD 26 based on the background data.
In step S270, it is detected whether or not the next selection key 20 has been pressed. If it has been pressed, the process returns to step S250 to select the next background data, and the above processing is repeated, for example, as shown in FIG. The next background data is displayed on the LCD 26 as described above. If not, the process proceeds to step S280, where it is detected whether or not the enter key 24 has been pressed, that is, whether or not background data has been selected by the user. Steps S270 and S280 are repeated until the next selection key 20 or the determination key 24 is pressed, and when the user selects background data by pressing the determination key 24, the process proceeds to step S290.
In step S290, the subject data associated with the currently selected association record and the background data selected by the user in step S280 are combined and, for example, a combined image shown in FIG. Specifically, for example, the following processing is performed. First, the background data is read from the removable memory 57 by the reader / writer 56 and decompressed by the compression / decompression processor 54, and the background data 80 is stored in the RAM 66 as shown in FIG. Next, in order to display the entire background data 80 having more pixels than the display area on one screen, reduction processing according to the number of pixels of the background data 80 and rotation processing as necessary are performed. For example, if the display area is 320 × 240 pixels and the background data 80 is in the vertical direction of 640 × 960 pixels, the background data 80 is thinned out so that the number of vertical and horizontal pixels is 1/3, rotated 90 °, 320 × 213 pixel print preview background data 89 is created and stored in the foreground area of the frame buffer 62.
Next, the subject data stored in the RAM 66 is thinned out according to the information stored in the background file (the number of pixels of the background data, the coordinates of the synthesis origin, the reference pixel number of the allocation data, etc.) and the number of pixels of the display area. Then, the print preview subject data 88 is created by rotating and translating by coordinate conversion. When the subject data 84 is allocated to a part of the background data 80, the thinning process performed in step S290 has a smaller magnification than the thinning process performed in step S210. Further, for example, as shown in FIG. 8, when the vertical subject data is combined with the print preview background data 89, the subject data 84 stored in the RAM 66 is rotated 90 ° clockwise. Further, for example, the coordinates of the subject data 85 are converted according to the coordinate conversion by the thinning process and the rotation process performed on the background data. In the example shown in FIG. 8, 160 × 213 pixel vertical print preview subject data 88 is created from 640 × 480 pixel horizontal subject data 84 stored in the RAM 66, and the print preview subject data 85 is stored in the frame buffer. Of the 62 foreground areas, the area corresponding to the right side of the screen is stored, and the area corresponding to the left side of the screen stores a value indicating transparency. Next, the display control unit 58 combines the print preview subject data 88 and the print preview background data 89 stored in the frame buffer 62 and outputs a drive signal to the LCD 26, for example, as shown in FIG. The entire print preview composite image is displayed on one screen of the LCD 26.
In step S300, when the information relating the subject data associated with the currently selected association record and the background file selected in step S250 is recorded in the setting table T, the currently selected association record is overwritten. Or choose to add a new association record. Specifically, for example, “Yes” and “No” buttons are displayed on the LCD 26 together with a character string “Do you want to overwrite?”, And one of the “Yes” and “No” buttons is displayed as the next selection key 20. The selection is made with the previous selection key 22 and the decision key 24.
If overwrite is selected in step S300, the process proceeds to step S310, the background file name of the currently selected association record is changed to the file name of the background data selected in step S250, and “when set” of the association record. Change to “After shooting”.
If overwrite is not selected in step S300, the process proceeds to step S320, where the subject file name of the currently selected association record is “subject file name”, and the file name of the background data selected in step S250 is “background file name”. Then, a new association record with “at the time of setting” as “after shooting” is created and added to the setting table T. The association record added at this time corresponds to the second association data described in the claims. When the process of step S310 or step S320 ends, the process returns to step S220 and the above-described process is repeated.
The process for setting the association between subject data and background data after shooting has been described above. In the first embodiment, the photographing means described in the claims includes a CDS circuit 46, an AGC circuit 48, an A / D converter 50, a digital image processing unit 52, a RAM 66, a compression / expansion processing unit 54, a reader / writer 56, and the like. The function is realized by the process of step S150. The background selection means described in the claims includes a frame buffer 62, a display control unit 58, a background setting key 18, a next selection key 20, a previous selection key 22, a decision key 24, and the like. This is realized by the processing of S280. The composite display means described in the claims includes a frame buffer 62, a display control unit 58, and the like, and the function thereof is realized by the processing in step S290. The background setting means described in the claims is composed of the CPU 68, the RAM 66, the reader / writer 56, and the like, and the functions thereof are realized by the processing of step S310 and step S320.
In the first embodiment described above, not the data obtained by synthesizing the subject data and the background data, but the subject data itself is stored in the removable memory 57, and the subject record and the background data are stored in the setting table T. Therefore, the background data to be combined with the subject data can be set after shooting. Furthermore, in the first embodiment, only subject data is displayed without combining and displaying subject data and background data until the user selects background data associated with subject data stored in the removable memory 57 in step S280. Is displayed. The amount of processing required to combine and display subject data and background data is greater than the amount of processing required to display only subject data. In particular, when processing such as reduction, rotation, and parallel movement of subject data is required for composite display, the amount of processing required to composite and display subject data and background data is to display only subject data. Much more than necessary. In the first embodiment, as described above, the subject data and the background data are not combined and displayed until the background data associated with the subject data stored in the removable memory 57 is selected by the user in step S280. Since only the data is displayed, less processing is required to allow the user to select one of the plurality of background data. Therefore, according to the first embodiment, the user can set background data in a short time after shooting.
(Second embodiment)
FIG. 9 is a flowchart showing the flow of processing for setting the association between subject data and background data after shooting in the second embodiment of the present invention. About the process same as the process of 1st Example, description is abbreviate | omitted using the same code | symbol.
In step S265, the subject data associated with the currently selected association record is combined with the background data selected in step S250, and a composite image shown in FIG. Specifically, for example, the same processing as step S290 of the first embodiment is performed.
In step S270, it is detected whether or not the next selection key 20 has been pressed. If it has been pressed, the process returns to step S250 to select the next background data, and the above processing is repeated, for example, as shown in FIG. As described above, the next background data and the already selected subject data 84 are combined and displayed on the LCD 26. If not, the process proceeds to step S280, where it is detected whether or not the enter key 24 has been pressed, that is, whether or not background data has been selected by the user. Steps S270 and S280 are repeated until the next selection key 20 or the determination key 24 is pressed, and when the user selects background data by pressing the determination key 24, the process proceeds to step S300.
In the second embodiment of the present invention described above, the subject data itself is stored in the removable memory 57, not the data obtained by combining the subject data and the background data, and the subject data and the background data are stored in the setting table T. The background data to be combined with the subject data can be set after photographing because the association is performed by the association record. Further, in the second embodiment of the present invention, the subject data and the background data are combined and displayed on the display while replacing a plurality of background data in response to pressing of the next selection key 20 for one of the subject data. Since at least one of the plurality of synthesized background data is selected by the user, the user can set the background data while confirming the synthesized image after shooting.

【0002】
カメラを提供することを目的とする。
この目的を達成するため、第一の発明に係るディジタルカメラは、イメージセンサの出力に基づいて被写体データを作成し不揮発性メモリに格納する撮影手段と、被写体データと合成するための複数の背景データをディスプレイに表示し、表示された複数の背景データの少なくとも1つをユーザに選択させる背景選択手段と、前記不揮発性メモリに格納された被写体データを前記選択された背景データに応じて縮小し、前記縮小した被写体データと前記選択された背景データとを前記ディスプレイに合成表示する合成表示手段と、前記不揮発性メモリに格納された被写体データと選択された背景データとを関連付ける情報を前記不揮発性メモリに格納する背景設定手段と、を備えることを特徴とする。第一の発明に係るディジタルカメラによると、不揮発性メモリに格納された被写体データに関連付ける背景データが選択されるまでは、被写体データと背景データとを合成表示することなしに、被写体データを表示するため、複数の背景データから少なくとも1つをユーザに選択させるために必要な処理が少ない。したがって第一の発明に係るディジタルカメラによると、撮影後に短時間で背景データを設定することができる。
第二の発明は、撮影後に合成後の画像を確認しながら背景データを設定することができ、撮影後に背景データを変更したり新規に背景データを設定したりすることができるディジタルカメラを提供することを目的とする。
上記目的を達成するため、第二の発明に係るディジタルカメラは、イメージセンサの出力に基づいて被写体データを作成し不揮発性メモリに格納する撮影手段と、前記不揮発性メモリに格納された被写体データの1つを複数の背景データに個別に合成してディスプレイに表示し、合成表示された複数の背景データの少なくとも1つをユーザに選択させる背景選択手段であって、合成表示するとき、前記不揮発性メモリに格納された被写体データの1つを背景データに応じて縮小する背景選択手段と、前記不揮発性メモリに格納された被写体データと前記選択された背景データとを関連付ける情報を前記不揮発性メモリに格納する背景設定手段と、を備えることを特徴とする。第二の発明に係るディジタルカメラによると、背景データと被写体データとを合成して得たデータを不揮発
[0002]
The purpose is to provide a camera.
In order to achieve this object, a digital camera according to a first aspect of the present invention includes a photographing unit that creates subject data based on the output of the image sensor and stores it in a nonvolatile memory, and a plurality of background data to be combined with the subject data. On the display, background selection means for allowing the user to select at least one of the displayed plurality of background data, subject data stored in the non-volatile memory is reduced according to the selected background data, Composite display means for combining and displaying the reduced subject data and the selected background data on the display, and information associating the subject data stored in the nonvolatile memory and the selected background data with the nonvolatile memory And background setting means for storing the image data. According to the digital camera of the first aspect, the subject data is displayed without combining and displaying the subject data and the background data until the background data associated with the subject data stored in the nonvolatile memory is selected. Therefore, there are few processes required for making a user select at least one from several background data. Therefore, according to the digital camera of the first aspect, the background data can be set in a short time after shooting.
The second invention provides a digital camera capable of setting background data while checking a composite image after shooting, and changing background data or setting new background data after shooting. For the purpose.
In order to achieve the above object, a digital camera according to a second aspect of the present invention includes a photographing unit that creates subject data based on an output of an image sensor and stores the subject data in a nonvolatile memory, and a subject data stored in the nonvolatile memory. A background selection means for individually synthesizing one of the plurality of background data and displaying it on a display, and for allowing a user to select at least one of the plurality of background data synthesized and displayed. Background selection means for reducing one of the subject data stored in the memory according to background data, and information for associating the subject data stored in the nonvolatile memory with the selected background data are stored in the nonvolatile memory. And background setting means for storing. According to the digital camera of the second invention, the data obtained by combining the background data and the subject data is non-volatile.

Claims (2)

イメージセンサの出力に基づいて被写体データを作成し不揮発性メモリに格納する撮影手段と、
被写体データと合成するための複数の背景データを撮影後にディスプレイに表示し、表示された複数の背景データの少なくとも1つをユーザに選択させる背景選択手段と、
前記不揮発性メモリに格納された被写体データと前記選択された背景データとを前記ディスプレイに合成表示する合成表示手段と、
前記不揮発性メモリに格納された被写体データと前記選択された背景データとを関連付ける情報を前記不揮発性メモリに格納する背景設定手段と、
を備えることを特徴とするディジタルカメラ。
Photographing means for creating subject data based on the output of the image sensor and storing it in a nonvolatile memory;
Background selection means for displaying a plurality of background data to be combined with subject data on a display after photographing, and for allowing the user to select at least one of the displayed plurality of background data;
Composite display means for compositely displaying the subject data stored in the nonvolatile memory and the selected background data on the display;
Background setting means for storing, in the nonvolatile memory, information that associates the subject data stored in the nonvolatile memory with the selected background data;
A digital camera comprising:
イメージセンサの出力に基づいて被写体データを作成し不揮発性メモリに格納する撮影手段と、
前記不揮発性メモリに格納された被写体データの1つに対し複数の背景データを個別に合成してディスプレイに表示し、合成表示された複数の背景データの少なくとも1つをユーザに選択させる背景選択手段と、
前記不揮発性メモリに格納された被写体データと前記選択された背景データとを関連付ける情報を前記不揮発性メモリに格納する背景設定手段と、
を備えることを特徴とするディジタルカメラ。
Photographing means for creating subject data based on the output of the image sensor and storing it in a nonvolatile memory;
Background selection means for individually synthesizing a plurality of background data with one of the subject data stored in the nonvolatile memory and displaying it on the display, and for allowing the user to select at least one of the plurality of synthesized background data When,
Background setting means for storing, in the nonvolatile memory, information that associates the subject data stored in the nonvolatile memory with the selected background data;
A digital camera comprising:
JP2004524182A 2002-07-29 2003-07-29 Digital camera Pending JPWO2004012449A1 (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2002219321 2002-07-29
JP2002219371 2002-07-29
JP2002219371 2002-07-29
JP2002219321 2002-07-29
PCT/JP2003/009621 WO2004012449A1 (en) 2002-07-29 2003-07-29 Digital camera

Publications (1)

Publication Number Publication Date
JPWO2004012449A1 true JPWO2004012449A1 (en) 2005-11-24

Family

ID=31190312

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004524182A Pending JPWO2004012449A1 (en) 2002-07-29 2003-07-29 Digital camera

Country Status (2)

Country Link
JP (1) JPWO2004012449A1 (en)
WO (1) WO2004012449A1 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11196362A (en) * 1997-01-10 1999-07-21 Casio Comput Co Ltd Image pickup device and picked image processing method
JP3799745B2 (en) * 1997-06-16 2006-07-19 カシオ計算機株式会社 Image processing device
JPH11168689A (en) * 1997-12-02 1999-06-22 Fuji Photo Film Co Ltd Image-pickup device
JPH11298764A (en) * 1998-04-14 1999-10-29 Fuji Photo Film Co Ltd Digital still camera with composite image display function
JP2001127986A (en) * 1999-10-29 2001-05-11 Canon Inc Image processing apparatus, image processing method and storage medium
JP2001177764A (en) * 1999-12-17 2001-06-29 Canon Inc Image processing unit, image processing method and storage medium
JP2001285420A (en) * 2000-03-24 2001-10-12 Telefon Ab L M Ericsson Mobile radio communication equipment, communication system, and printer
JP2002044416A (en) * 2000-07-27 2002-02-08 Noritsu Koki Co Ltd Image-compositing print output device

Also Published As

Publication number Publication date
WO2004012449A1 (en) 2004-02-05

Similar Documents

Publication Publication Date Title
JP4678188B2 (en) Image processing device
US8120791B2 (en) Image synthesizing apparatus
US8098298B2 (en) Digital camera recording a composite image
JPH11146312A (en) Information processing unit, control method of the information processing unit and recording medium
JP2001285703A (en) Electronic camera
US20050212945A1 (en) Digital camera
US20050179790A1 (en) Digital camera
JP4910288B2 (en) Digital camera
JP3821130B2 (en) Digital camera
US20050110877A1 (en) Digital camera
JP2002330322A (en) Electronic camera
JPWO2004012449A1 (en) Digital camera
JP4186595B2 (en) Digital camera and printing control method using digital camera
JP2002330387A (en) Electronic camera
JPH10341361A (en) Digital camera with panoramic image-photographing function
JP3786270B2 (en) Digital camera
JP4591562B2 (en) Printer and printing control method
JP4292811B2 (en) Digital camera

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060728

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060728

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060831

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20061222

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20061226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070410

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090616

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090804

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091117