JP3427831B2 - Image processing program and image processing apparatus - Google Patents
Image processing program and image processing apparatusInfo
- Publication number
- JP3427831B2 JP3427831B2 JP2001089727A JP2001089727A JP3427831B2 JP 3427831 B2 JP3427831 B2 JP 3427831B2 JP 2001089727 A JP2001089727 A JP 2001089727A JP 2001089727 A JP2001089727 A JP 2001089727A JP 3427831 B2 JP3427831 B2 JP 3427831B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- file
- recorded
- recording
- 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
- 238000012545 processing Methods 0.000 title claims description 59
- 238000000605 extraction Methods 0.000 claims description 62
- 239000000284 extract Substances 0.000 claims description 2
- 238000000034 method Methods 0.000 description 37
- 239000004973 liquid crystal related substance Substances 0.000 description 18
- 238000007726 management method Methods 0.000 description 13
- 238000012217 deletion Methods 0.000 description 10
- 230000037430 deletion Effects 0.000 description 10
- 238000003780 insertion Methods 0.000 description 8
- 230000037431 insertion Effects 0.000 description 8
- 230000000875 corresponding effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000010354 integration Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 241000699666 Mus <mouse, genus> Species 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Landscapes
- Cameras In General (AREA)
- Processing Or Creating Images (AREA)
- Television Signal Processing For Recording (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、背景のみの画像を
参照して被写体と背景を含む画像から被写体を表す部分
を抽出する画像処理に関し、特に、背景のみの画像と被
写体と背景を含む画像の管理に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image processing for extracting a portion representing a subject from an image including the subject and the background with reference to an image including only the background, and more particularly to an image including only the background and an image including the subject and the background. Regarding the management of.
【0002】[0002]
【従来の技術】背景のみの画像を表す画像データと被写
体と背景を含む画像を表す画像データの差を検出して、
後者から前者との差の部分を抽出することにより、被写
体のみの画像を得ることが、特開平10−105689
号や特開平10−23452号に提案されている。近
年、デジタルカメラ等の撮像装置の高解像度化が進み、
1つの画像を表す画像データの量が膨大になりつつある
ことから、処理するデータの量を低減するために、被写
体のみを表す画像データを抽出する必要性が高まるもの
と予想される。2. Description of the Related Art A difference between image data representing an image containing only a background and image data representing an image containing a subject and a background is detected,
It is possible to obtain an image of only the subject by extracting the difference between the latter and the former.
And Japanese Patent Laid-Open No. 10-23452. In recent years, the resolution of imaging devices such as digital cameras has increased,
Since the amount of image data representing one image is becoming enormous, it is expected that the need to extract image data representing only the subject will increase in order to reduce the amount of data to be processed.
【0003】画像データを抽出する処理は、画像の撮影
と画像データの生成に連続して行うこともできるが、あ
る程度の時間を要するため、背景のみの画像を表す画像
データと、被写体と背景とを含む画像を表す画像データ
をファイルとして一旦記録媒体に記録しておき、撮影と
は独立して行う方が効率がよい。その場合、抽出処理の
能率が高まる形態で画像データを記録するのが望まし
い。The process of extracting the image data can be carried out continuously for photographing the image and generating the image data, but since it takes a certain amount of time, the image data representing only the background image, the subject and the background are extracted. It is more efficient to temporarily record the image data representing the image including the image as a file in the recording medium and to perform the recording independently of the photographing. In that case, it is desirable to record the image data in a form that enhances the efficiency of the extraction process.
【0004】[0004]
【発明が解決しようとする課題】ところが、抽出前の画
像データの管理方法については、これまで提案されてい
ない。例えば、上記の特開平10−105689号は、
被写体の動きをリアルタイムで追跡する装置での抽出処
理に関するものであり、抽出前の画像データを記録する
ことについては述べていない。また、特開平10−23
452号は、抽出処理の内容について詳述しているもの
の、抽出前の画像データの管理については言及していな
い。However, no management method of image data before extraction has been proposed so far. For example, Japanese Patent Laid-Open No. 10-105689 mentioned above
The present invention relates to an extraction process in a device that tracks the movement of a subject in real time, and does not describe recording image data before extraction. In addition, JP-A-10-23
No. 452 describes in detail the content of the extraction process, but does not mention management of image data before extraction.
【0005】本発明は、このような現状に鑑みてなされ
たもので、画像データの抽出処理を能率よく行うことが
できる形態で抽出前の画像データをファイルに記録する
プログラムおよび装置を提供することを目的とする。The present invention has been made in view of the above circumstances, and provides a program and a device for recording image data before extraction in a file in a form that enables efficient extraction of image data. With the goal.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、本発明では、共通する部分を含む2つの画像を表す
第1の画像データと第2の画像データの差を検出して、
第2の画像データから第1の画像データとの差の部分を
抽出する画像抽出処理のために、第1の画像データと第
2の画像データをファイルに記録する画像記録プログラ
ムは、第2の画像データが複数あるときに、複数の第2
の画像データを1つのファイルに記録するものとする。In order to achieve the above object, the present invention detects a difference between first image data and second image data representing two images including a common portion,
An image recording program for recording the first image data and the second image data in a file for the image extraction processing for extracting the difference between the second image data and the first image data is the second When there are multiple image data, multiple second data
The image data of is to be recorded in one file.
【0007】この画像記録プログラムは、画像抽出処理
に先立つ準備段階で、第1の画像データと第2の画像デ
ータをファイルに記録するものである。背景のみの画像
を表す画像データを第1の画像データとし、被写体と背
景を含む画像を表す画像データを第2の画像データとす
ることで、後に行う画像抽出処理により、被写体のみの
画像を表す画像データが得られる。第1の画像データに
対応する第2の画像データが複数あれば、位置、形態等
が異なる被写体を表す複数の画像データが得られる。こ
こで、複数の第2の画像データを1つのファイルに記録
することで、第1の画像データと第2のデータの対応関
係の理解が容易になり、画像抽出処理も能率よく行うこ
とができる。This image recording program is for recording the first image data and the second image data in a file in the preparatory stage prior to the image extraction processing. By using the image data representing the image of only the background as the first image data and the image data representing the image including the subject and the background as the second image data, the image of only the subject is represented by the image extraction processing performed later. Image data is obtained. If there are a plurality of pieces of second image data corresponding to the first image data, a plurality of pieces of image data representing objects having different positions, forms, etc. can be obtained. Here, by recording a plurality of second image data in one file, it becomes easy to understand the correspondence relationship between the first image data and the second data, and the image extraction processing can be performed efficiently. .
【0008】第2の画像データを記録するファイルに第
1の画像データを記録してもよい。第2の画像データが
第1の画像データに対応するものであることが明確にな
る。また、ファイルの管理もきわめて容易である。The first image data may be recorded in a file for recording the second image data. It becomes clear that the second image data corresponds to the first image data. Also, file management is extremely easy.
【0009】また、第2の画像データを記録するファイ
ルに第2の画像データの数を記録するとよい。画像抽出
処理が容易になる。Further, it is preferable to record the number of the second image data in the file for recording the second image data. Image extraction processing becomes easy.
【0010】本発明ではまた、共通する部分を含む2つ
の画像を表す第1の画像データと第2の画像データの差
を検出して、第2の画像データから第1の画像データと
の差の部分を抽出する画像抽出処理のために、第1の画
像データと第2の画像データをファイルに記録する画像
記録プログラムは、第1の画像データと第2の画像デー
タを別個のファイルに記録するとともに、第1の画像デ
ータを記録したファイルと第2の画像データを記録した
ファイルの関連を示す情報をファイルに記録するものと
する。According to the present invention, the difference between the first image data and the second image data representing two images including a common portion is detected, and the difference between the second image data and the first image data is detected. The image recording program for recording the first image data and the second image data in a file for the image extraction processing for extracting the portion of At the same time, information indicating the relationship between the file in which the first image data is recorded and the file in which the second image data is recorded is recorded in the file.
【0011】関連を示す情報により、別個のファイルに
記録された第1の画像データと第2の画像データが対応
するものであることが理解できて、画像抽出処理を能率
よく行うことが可能になる。From the information indicating the relation, it can be understood that the first image data and the second image data recorded in separate files correspond to each other, and the image extraction processing can be efficiently performed. Become.
【0012】この情報は第1の画像データを記録するフ
ァイルに記録するとよい。第1の画像データを記録した
ファイルを見るだけで、対応する第2の画像データを記
録したファイルが理解できて、画像抽出処理の能率が一
層向上する。This information may be recorded in a file for recording the first image data. By simply looking at the file in which the first image data is recorded, the corresponding file in which the second image data is recorded can be understood, and the efficiency of the image extraction processing is further improved.
【0013】ここで、第1の画像データを記録したファ
イルを削除する指示を与えられたときに、関連を示す情
報を読み取って、削除するファイルが他のファイルに関
連していることを表明し、実行の指示を与えられた上
で、第1の画像データを記録したファイルを削除するよ
うにするとよい。このようにすると、第1の画像データ
を誤って失い画像抽出処理ができなくなる危険性が低下
する。Here, when an instruction to delete the file in which the first image data is recorded is given, the information indicating the relationship is read to indicate that the file to be deleted is related to another file. It is preferable that the file in which the first image data is recorded is deleted after the execution instruction is given. This reduces the risk that the first image data is erroneously lost and the image extraction process cannot be performed.
【0014】本発明ではまた、共通する部分を含む2つ
の画像を表す第1の画像データと第2の画像データの差
を検出して、第2の画像データから第1の画像データと
の差の部分を抽出する画像抽出処理のために、第1の画
像データと第2の画像データをファイルに記録する画像
記録プログラムは、第1の画像データと第2の画像デー
タを別個のファイルに記録するとともに、画像抽出処理
に用いる画像データが記録されていることを示す情報を
第1の画像データを記録するファイルに記録し、第1の
画像データを記録したファイルを削除する指示を与えら
れたときに、その情報を読み取って、削除するファイル
に画像抽出処理に用いる画像データが記録されているこ
とを表明し、実行の指示を与えられた上で、第1の画像
データを記録したファイルを削除するものとする。According to the present invention, the difference between the first image data and the second image data representing two images including a common portion is detected, and the difference between the second image data and the first image data is detected. The image recording program for recording the first image data and the second image data in a file for the image extraction processing for extracting the portion of At the same time, information indicating that the image data used for the image extraction processing is recorded is recorded in the file recording the first image data, and an instruction to delete the file recording the first image data is given. At that time, the information is read, the file to be deleted is stated that the image data used for the image extraction processing is recorded, and the first image data is recorded after the execution instruction is given. It is assumed that you want to delete a file.
【0015】このようにしても、第1の画像データを誤
って失い画像抽出処理ができなくなる危険性を低下させ
ることができる。Even in this case, the risk that the first image data is erroneously lost and the image extraction processing cannot be performed can be reduced.
【0016】本発明ではまた、背景を表す第1の画像デ
ータと、前記背景と共通する背景に加えて被写体を表す
第2の画像データの差を検出して、第2の画像データか
ら第1の画像データとの差の部分を被写体を表す部分と
して抽出する画像抽出プログラムは、第1の画像データ
と第2の画像データをファイルから読み取り、第2の画
像データから抽出した被写体を表す部分を第2の画像デ
ータが記録されていたファイルに記録するものとする。[0016] In the present invention, by detecting the first image data representing the background, the difference between <br/> second image data representing the subject in addition to the background in common with the background, the second image The part of the difference between the data and the first image data is the part representing the subject.
The image extracting program that extracts the first image data and the second image data from the file reads the portion representing the subject extracted from the second image data into the file in which the second image data is recorded. It shall be recorded.
【0017】このプログラムは画像抽出処理を実行し
て、被写体を表す画像データを生成するものである。第
2の画像データから抽出した被写体を表す画像データを
第2の画像データが記録されていたファイルに記録する
ことで、抽出処理の前後の被写体と背景とを表す画像デ
ータと被写体のみを表す画像データの対応関係が理解し
易くなり、画像データの管理が容易になる。[0017] This program executes the image extraction processing
Then, the image data representing the subject is generated . By recording the image data representing the subject extracted from the second image data in the file in which the second image data was recorded, the image data representing the subject and the background before and after the extraction process are recorded.
It becomes easy to understand the correspondence between the image data representing only the data and the subject, and the management of the image data becomes easy.
【0018】本発明ではさらに、共通する部分を含む2
つの画像を表す第1の画像データと第2の画像データの
差を検出して、第2の画像データから第1の画像データ
との差の部分を抽出する画像抽出処理のために、第1の
画像データと第2の画像データをファイルに記録する画
像記録装置は、上記のいずれかの画像記録プログラムを
記憶した記憶媒体を備え、画像記録プログラムによって
第1の画像データと第2の画像データをファイルに記録
するものとする。The present invention further includes 2 including a common part.
A first image data representing two images, a difference between the first image data and the second image data is detected, and an image extracting process for extracting a difference portion between the first image data and the second image data is performed. An image recording apparatus for recording the image data and the second image data in a file includes a storage medium in which any one of the above image recording programs is stored, and the image recording program causes the first image data and the second image data to be recorded. Shall be recorded in a file.
【0019】画像記録プログラムの特徴が生かされて、
画像抽出処理を能率よく行うことが可能になり、ファイ
ルの管理も容易になる。Utilizing the features of the image recording program,
Image extraction processing can be performed efficiently, and file management becomes easy.
【0020】ここで、画像を撮影して撮影した画像を表
す画像データを生成する撮像部を備え、撮像部が生成し
た画像データを、第1の画像データと第2の画像データ
のいずれかとして、ファイルに記録するようにすること
もできる。この構成では、画像記録装置は撮像装置その
ものとなり、撮影した画像を表す画像データを、直ち
に、画像抽出処理に好適で管理の容易なファイルとして
記録することができる。Here, an image pickup section is provided for picking up an image and generating image data representing the picked-up image, and the image data generated by the image pickup section is used as either the first image data or the second image data. , It is also possible to record in a file. With this configuration, the image recording device is the imaging device itself, and the image data representing the captured image can be immediately recorded as a file suitable for image extraction processing and easily managed.
【0021】[0021]
【発明の実施の形態】以下、本発明の実施形態について
図面を参照しながら説明する。第1の実施形態であるデ
ジタルカメラ1の外観を図1の斜視図および図2の背面
図に模式的に示す。デジタルカメラ1は、前面に撮影レ
ンズ11およびファインダの前窓12a、上面にレリー
ズボタン13、液晶パネル14および操作キー15a、
15b、背面に大型の液晶パネル16、操作キー17
a、17b、17c、17d、電子ブザー18およびフ
ァインダの後窓12b、側面に記録媒体挿入口19、内
部に撮像素子20を備えている。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. The appearance of the digital camera 1 according to the first embodiment is schematically shown in the perspective view of FIG. 1 and the rear view of FIG. The digital camera 1 includes a taking lens 11 and a finder front window 12a on the front surface, a release button 13, a liquid crystal panel 14 and operation keys 15a on the upper surface.
15b, large liquid crystal panel 16 on the back, operation keys 17
a, 17b, 17c, 17d, an electronic buzzer 18, a rear window 12b of the finder, a recording medium insertion port 19 on the side surface, and an image sensor 20 inside.
【0022】デジタルカメラ1は、撮影対象からの光を
撮影レンズ11によって撮像素子20上に結像させ、撮
像素子20を露光することにより画像を撮影する。撮像
素子撮20は2次元に配列された多数の画素を有し、画
素ごとに光電変換を行って蓄積した電荷を表す信号を出
力する。各画素の出力信号は撮影対象の各点からの受光
量を表す信号となり、デジタル化後、種々の処理を施さ
れて、撮影した画像を表す画像データとされる。The digital camera 1 captures an image by exposing the image pickup device 20 to light by forming an image of light from a subject on the image pickup device 20 by the taking lens 11. The image sensor 20 has a large number of pixels arranged two-dimensionally, and photoelectrically converts each pixel to output a signal representing the accumulated charge. The output signal of each pixel becomes a signal indicating the amount of light received from each point of the image capturing target, and after digitization, various processes are performed to obtain image data representing the captured image.
【0023】生成された画像データは挿入口19に挿入
された記録媒体30に記録され、画像データが表す画像
は液晶パネル16に表示される。記録媒体30に記録さ
れている画像データを読み出して、その画像を液晶パネ
ル16に再生表示することもできる。画像の撮影と画像
の再生表示は、操作キー15aの操作によって切り替え
られる。なお、操作キー15bは、撮像素子20の露光
制御の指示のために用いられ、液晶パネル14は、デジ
タルカメラ1の設定状況、操作案内、警告メッセージ等
を表示する。The generated image data is recorded on the recording medium 30 inserted in the insertion slot 19, and the image represented by the image data is displayed on the liquid crystal panel 16. It is also possible to read the image data recorded in the recording medium 30 and reproduce and display the image on the liquid crystal panel 16. Image shooting and image playback display can be switched by operating the operation key 15a. The operation key 15b is used for instructing the exposure control of the image sensor 20, and the liquid crystal panel 14 displays the setting status of the digital camera 1, operation guidance, a warning message, and the like.
【0024】デジタルカメラ1は、画像の撮影と画像デ
ータの記録に関して、単に撮影と記録を行う通常モード
と、画像データから他の画像データとの差の部分を抽出
する画像抽出処理の準備のための撮影と記録を行う画像
切り出しモードとを有している。通常モードと画像切り
出しモードは操作キー17aの操作によって切り替えら
れる。デジタルカメラ1は画像抽出処理そのものを行う
ことも可能であり、操作キー17b〜17dは画像抽出
処理において利用される。The digital camera 1 prepares an image extracting process for extracting a difference between the normal mode in which the image is captured and the image data is recorded and the image data is recorded and the image data is recorded. Has an image cutout mode for shooting and recording. The normal mode and the image cutout mode are switched by operating the operation key 17a. The digital camera 1 can also perform the image extraction process itself, and the operation keys 17b to 17d are used in the image extraction process.
【0025】デジタルカメラ1の回路構成の概略を図3
に模式的に示す。デジタルカメラ1は、アナログ処理部
21、A/Dコンバータ22、画像処理部23、RAM
24、画像統合部25、画像抽出部26、CPU27、
ROM28を備えている。FIG. 3 shows a schematic circuit configuration of the digital camera 1.
Is schematically shown in. The digital camera 1 includes an analog processing unit 21, an A / D converter 22, an image processing unit 23, and a RAM.
24, the image integration unit 25, the image extraction unit 26, the CPU 27,
The ROM 28 is provided.
【0026】アナログ処理部21は、撮像素子20が出
力するアナログ信号に、相関二重サンプリングおよび自
動ゲイン制御の処理を施す。A/Dコンバータ22は、
アナログ処理部21からのアナログ信号を10ビットの
デジタル信号に変換する。画像処理部23は、A/Dコ
ンバータ22からのデジタル信号に、ホワイトバランス
調整、γ補正、色補間等の処理を施して、撮影された画
像を表す画像データを生成する。The analog processing section 21 subjects the analog signal output from the image sensor 20 to correlated double sampling and automatic gain control. The A / D converter 22 is
The analog signal from the analog processing unit 21 is converted into a 10-bit digital signal. The image processing unit 23 subjects the digital signal from the A / D converter 22 to processes such as white balance adjustment, γ correction, and color interpolation to generate image data representing a captured image.
【0027】RAM24は、画像切り出しモードで生成
された画像データを一時的に記憶する。画像統合部25
は、RAM24に記憶されている複数の画像をまとめ
て、記録媒体30に記録し、画像抽出部26は、記録媒
体30に記録された画像データを読み出して画像抽出処
理を行う。The RAM 24 temporarily stores the image data generated in the image cutout mode. Image integration unit 25
The plurality of images stored in the RAM 24 are collectively recorded on the recording medium 30, and the image extraction unit 26 reads the image data recorded on the recording medium 30 and performs the image extraction processing.
【0028】CPU27は、デジタルカメラ1全体の動
作を制御する。CPU27は、操作キー15a、15
b、17a〜17dを含む操作部29に接続されてお
り、操作部29を介して使用者より与えられる指示を制
御に反映する。CPU27は、液晶パネル14、16お
よび電子ブザー18にも接続されている。ROM28
は、CPU27が制御および画像処理に用いるプログラ
ムを記憶している。The CPU 27 controls the overall operation of the digital camera 1. The CPU 27 operates the operation keys 15a, 15
b, 17a to 17d, and is connected to the operation unit 29, and reflects the instruction given by the user via the operation unit 29 in the control. The CPU 27 is also connected to the liquid crystal panels 14 and 16 and the electronic buzzer 18. ROM 28
Stores a program used by the CPU 27 for control and image processing.
【0029】画像抽出処理に用いられる画像の例を図4
に示す。図4において、(a)は背景のみの画像であ
り、(b)〜(d)は、(a)と同一の背景と被写体を
含む画像である。(b)、(c)、(d)では、被写体
がそれぞれ相違している。An example of an image used in the image extraction processing is shown in FIG.
Shown in. In FIG. 4, (a) is an image with only the background, and (b) to (d) are images including the same background and subject as in (a). In (b), (c), and (d), the subjects are different.
【0030】なお、共通の部分を含む画像(画像デー
タ)の数がnのとき、画像抽出処理によって得られる画
像(画像データ)の最大数はn・(n−1)であり、画
像の数が4のこの例では、抽出される画像の最大数は1
2となる。しかし、被写体の画像を得るという点で意味
のある画像抽出処理は限られ、この例では、(b)、
(c)、(d)の画像を表す画像データから(a)の画
像を表す画像データとの差の部分を抽出して得られる3
つの画像データのみが、使用者の求める画像を表すこと
になる。When the number of images (image data) including the common portion is n, the maximum number of images (image data) obtained by the image extraction processing is n · (n−1), and the number of images is In this example, where 4 is 4, the maximum number of images extracted is 1.
It becomes 2. However, the image extraction processing that is meaningful in obtaining an image of the subject is limited, and in this example, (b),
3 obtained by extracting the difference between the image data representing the image of (a) and the image data representing the image of (a) from the image data representing the images of (c) and (d).
Only one piece of image data represents the image desired by the user.
【0031】画像切り出しモードにおける記録媒体30
への画像データの第1の記録方法について説明する。第
1の記録方法では、画像抽出処理に用いる画像すなわち
共通の部分を含む画像を表す画像データを全て1つのフ
ァイルに記録する。また、そのファイルに、画像データ
の数およびファイル内での各画像データのアドレスを示
す情報も記録する。Recording medium 30 in image cutout mode
A first recording method of image data on the recording medium will be described. In the first recording method, all the image data representing the image used for the image extraction process, that is, the image including the common portion is recorded in one file. In addition, information indicating the number of image data and the address of each image data in the file is also recorded in the file.
【0032】図4の画像を表す画像データをこの方法で
記録したファイルの形式を図5に模式的に示す。ファイ
ルには画像データそのものを記録する領域と情報を記録
する領域が別に定められており、情報を記録する領域の
先頭には、画像切り出しモードで記録した画像データで
あるか否かが記される(情報1)。この場合、画像切り
出しモードで記録した画像データであるので、値を1と
している。なお、通常モードで記録した画像データにつ
いては値を0とする。次いで、画像データの数が記され
る(情報2)。画像データの数は4である。FIG. 5 schematically shows a file format in which image data representing the image of FIG. 4 is recorded by this method. An area for recording the image data itself and an area for recording the information are separately defined in the file, and at the beginning of the area for recording the information, whether or not the image data is recorded in the image cutout mode is described. (Information 1). In this case, the value is 1 because the image data is recorded in the image cutout mode. The value is set to 0 for the image data recorded in the normal mode. Next, the number of image data is written (information 2). The number of image data is four.
【0033】画像データの数に続いて、各画像データの
先頭アドレスが記される(情報3〜6)。このとき、他
の画像データから一部を抽出するための比較に用いる画
像データ、すなわち背景の画像を表す画像データのアド
レスを最初に記し(情報3)、これに続いて、一部が抽
出される画像データ、すなわち背景と被写体を含む画像
を表す画像データのアドレスを順に記す(情報4〜
6)。Following the number of image data, the head address of each image data is written (information 3 to 6). At this time, the address of the image data used for comparison for extracting a part from the other image data, that is, the address of the image data representing the background image is described first (information 3), and then a part is extracted. The address of the image data representing the image including the background and the subject is sequentially described (information 4 to
6).
【0034】このような形式でファイルを作成すると、
画像データの対応関係が理解し易く、画像抽出処理を能
率よく行うことができる。また、複写、削除等のファイ
ルの管理もきわめて容易である。When a file is created in such a format,
The correspondence relationship of image data is easy to understand, and the image extraction process can be performed efficiently. Also, management of files such as copying and deleting is extremely easy.
【0035】画像切り出しモードにおける記録媒体30
への画像データの第2の記録方法について説明する。第
2の記録方法では、画像抽出処理に用いる画像データを
別個のファイルに記録する。ただし、他の画像データか
ら一部を抽出するための比較に用いる画像データ、すな
わち背景のみの画像データを記録するファイルには、他
の画像データのファイル名を全て記録しておき、また、
一部が抽出される画像データ、すなわち背景と被写体を
含む画像データには、背景の画像データのファイル名を
記録しておく。Recording medium 30 in image cutout mode
The second recording method of the image data to and from will be described. In the second recording method, the image data used for the image extraction processing is recorded in a separate file. However, in the image data used for comparison for extracting a part from other image data, that is, in the file recording the image data of only the background, all the file names of the other image data are recorded, and
The file name of the background image data is recorded in the image data of which a part is extracted, that is, the image data including the background and the subject.
【0036】図4の画像を表す画像データをこの方法で
記録したファイルのうち、情報を記録する領域の形式を
図6に模式的に示す。図6において、(a)は背景の画
像の画像データを記録したファイルであり、(b)〜
(d)は背景と被写体を含む画像の画像データを記録し
たファイルである。いずれのファイルにも、情報を記録
する領域の先頭には、そのファイルのファイル名が記さ
れる(情報1)。FIG. 6 schematically shows the format of the information recording area in the file in which the image data representing the image of FIG. 4 is recorded by this method. In FIG. 6, (a) is a file in which the image data of the background image is recorded, and (b)-
(D) is a file in which image data of an image including a background and a subject is recorded. In each file, the file name of the file is written at the beginning of the area for recording information (information 1).
【0037】ファイル名に続いて、画像切り出しモード
で記録した画像データであるか否かが記され(情報
2)、さらに、被写体を含む画像データであるか否かが
記される(情報3)。(a)では、背景のみの画像デー
タであるので、この値は0とされており、(b)〜
(d)では、被写体を含む画像データであるので、この
値は1とされている。Following the file name, it is described whether or not the image data is recorded in the image cutout mode (information 2), and further, whether or not the image data includes a subject (information 3). . In (a), since the image data is only the background, this value is set to 0, and (b)-
In (d), since the image data includes a subject, this value is set to 1.
【0038】次に記される情報は、背景のみの画像デー
タのファイルと、被写体を含む画像データのファイルと
で異なる。背景のみの画像データのファイルには、被写
体を含む画像データの数(情報4)が記され、これに続
いて、被写体を含む画像データのファイル名が順に記さ
れる(情報5〜7)。被写体を含む画像データのファイ
ルには、背景のみの画像データのファイル名が記される
(情報4)。The information described below differs between the image data file containing only the background and the image data file containing the subject. The number of image data including the subject (information 4) is written in the file of the image data including only the background, and subsequently, the file name of the image data including the subject is written in order (information 5 to 7). The file name of the image data including only the background is written in the image data file including the subject (information 4).
【0039】このような形式でファイルを作成すると、
ファイルの対応関係したがって画像データの対応関係が
理解し易く、画像抽出処理を能率よく行うことができ
る。また、ファイルの管理も容易である。When a file is created in such a format,
It is easy to understand the correspondence relationship between files and thus the correspondence relationship between image data, and the image extraction processing can be performed efficiently. Also, file management is easy.
【0040】デジタルカメラ1における画像の撮影から
画像データの記録までの処理の流れを、図7のフローチ
ャートを参照して説明する。まず、レリーズボタン13
が操作されたか否か、すなわち撮影の指示が与えられた
か否かを判定し、操作されていなければ操作されるのを
待つ(ステップ#105)。レリーズボタンが操作され
たときは、設定されているモードを操作キー17aの状
態から読み込み(#110)、通常モードであるか画像
切り出しモードであるかを判定する(#115)。The flow of processing from photographing an image to recording image data in the digital camera 1 will be described with reference to the flowchart of FIG. First, release button 13
Is operated, that is, whether or not a shooting instruction is given, and if not, the operation waits until it is operated (step # 105). When the release button is operated, the set mode is read from the state of the operation key 17a (# 110), and it is determined whether the mode is the normal mode or the image cutout mode (# 115).
【0041】通常モードに設定されているときは、撮影
すなわち撮像素子20の露光を行い(#120)、画像
データを生成する(#125)。そして、生成した画像
データを記録媒体30に記録して(#130)、ステッ
プ#105に戻る。When the normal mode is set, photographing, that is, exposure of the image pickup device 20 is performed (# 120), and image data is generated (# 125). Then, the generated image data is recorded on the recording medium 30 (# 130), and the process returns to step # 105.
【0042】画像切り出しモードに設定されているとき
は、撮影を行い(#135)、画像データを生成して
(#140)、生成した画像データをRAM24に記憶
する(#145)。次いで、レリーズボタンの操作によ
り撮影の指示が与えられるのを待って(#150)、撮
影を行い(#155)、画像データを生成して(#16
0)、生成した画像データをRAM24に記憶する(#
165)。When the image cutout mode is set, photographing is performed (# 135), image data is generated (# 140), and the generated image data is stored in the RAM 24 (# 145). Next, the user waits for an instruction for shooting to be given by operating the release button (# 150), shooting is performed (# 155), and image data is generated (# 16).
0), the generated image data is stored in the RAM 24 (#
165).
【0043】その後、操作キー17aの状態から、画像
切り出しモードが維持されているか否かを判定する(#
170)。画像切り出しモードが維持されているとき
は、ステップ#150に戻ってステップ#170までの
処理を反復する。モードが変更されているときは、背景
の画像を選択する指示の有無を判定し(#175)、指
示があれば、背景を表す画像データを選択する(#18
0)。画像切り出し処理を行う場合、使用者は通常、背
景を表す画像を最初に撮影するため、特に指示がなけれ
ば、ステップ#145で記憶した画像データが背景を表
すものとして、また、ステップ#165で記憶した画像
データが背景と被写体を表すものとして扱う。ただし、
使用者が異なる順序で撮影することもあるので、その場
合に、背景を表す画像データを指定できるようにするた
めである。Then, it is judged from the state of the operation key 17a whether or not the image cutout mode is maintained (#
170). When the image cutout mode is maintained, the process returns to step # 150 and the processes up to step # 170 are repeated. When the mode is changed, it is determined whether or not there is an instruction to select a background image (# 175), and if there is an instruction, image data representing the background is selected (# 18).
0). When performing the image cutout process, the user usually shoots the image representing the background first, so unless otherwise specified, the image data stored in step # 145 represents the background, and in step # 165. The stored image data is treated as representing the background and the subject. However,
This is because the user may take pictures in different orders, and in that case, the image data representing the background can be designated.
【0044】背景を表す画像データの選択の指示は、操
作キー17cの操作により行う。CPU27は、ステッ
プ#170の判定をした時から所定時間(例えば2秒)
内に操作キー17cが操作されたか否かを判定し、操作
されたときは選択指示があったと判断する。したがっ
て、使用者は、操作キー17aを操作すると同時に操作
キー17cも操作して、その状態を暫時保つことで、選
択指示を与えることができる。背景を表す画像データの
選択は操作キー17bの操作により行う。背景を表す画
像データとして扱われる画像データは、操作キー17b
を操作するごとに順に変わり、操作キー17cを再度操
作することにより、確定する。The instruction to select the image data representing the background is made by operating the operation key 17c. The CPU 27 has a predetermined time (for example, 2 seconds) from the time when the determination in step # 170 is made.
It is determined whether or not the operation key 17c is operated, and when it is operated, it is determined that a selection instruction has been given. Therefore, the user can give a selection instruction by operating the operation key 17a and operating the operation key 17c at the same time to maintain the state for a while. The image data representing the background is selected by operating the operation key 17b. The image data handled as the image data representing the background is the operation key 17b.
It changes in order each time is operated, and is confirmed by operating the operation key 17c again.
【0045】背景を表す画像を選択した後、および、ス
テップ#175の判定で選択指示がなかったときは、R
AM24に記憶している画像データを記録媒体30にフ
ァイルとして記録する(#185)。この記録は第1の
方法または第2の方法で行う。第1の方法で画像データ
を記録するときは、全ての画像データを画像統合部25
によってまとめておく。いずれの方法によって記録する
ときでも、CPU27は前述の情報を作成して、画像デ
ータと共にファイルに記録する。After selecting the image representing the background, and when there is no selection instruction in the determination of step # 175, R
The image data stored in the AM 24 is recorded as a file in the recording medium 30 (# 185). This recording is performed by the first method or the second method. When the image data is recorded by the first method, all the image data is recorded by the image integration unit 25.
I will put together by. Whichever method is used for recording, the CPU 27 creates the aforementioned information and records it in a file together with the image data.
【0046】使用者は操作キー17aを操作することに
よりモードを切り替えることができるが、上記の処理に
おいては、画像切り出しモードで撮影を行った後は、も
う1度撮影を行うまで通常モードに切り替えることがで
きない。したがって、画像抽出処理に最低限必要な2つ
の画像データが確保される。The user can switch the mode by operating the operation key 17a. In the above process, after shooting in the image cutout mode, the mode is switched to the normal mode until another shooting is performed. I can't. Therefore, the minimum two image data required for the image extraction processing are secured.
【0047】なお、ここでは、画像切り出しモードで生
成した画像データを一旦RAM24に記憶しておき、最
後に記録媒体30に記録するようにしているが、画像デ
ータを生成するごとに直接記録媒体30に記録するよう
にしてもよい。この場合の処理の流れを図8に示す。図
7との相違は、RAM24に記憶するステップ#14
5、#165に代えて、記録媒体30に記録するステッ
プ#145a、#165aを設けるとともに、画像デー
タと情報を記録するステップ#185に代えて、情報の
みを記録するステップ#185aを設けた点である。Here, although the image data generated in the image cutout mode is temporarily stored in the RAM 24 and finally recorded in the recording medium 30, the recording medium 30 is directly recorded every time the image data is generated. It may be recorded in. The flow of processing in this case is shown in FIG. The difference from FIG. 7 is that step # 14 of storing in RAM 24.
5, steps # 145a and # 165a for recording on the recording medium 30 are provided in place of # 165, and step # 185a for recording only information is provided instead of step # 185 for recording image data and information. Is.
【0048】記録媒体30に作成したファイルを削除す
る指示が与えられたとき、CPU27は、画像切り出し
モードでの画像データであることを示す情報(図4の情
報1、図5の情報2)を読み取って、画像抽出処理に必
要な画像データであることを液晶パネルに14に表示
し、削除実行の指示を与えられた上で削除する。これに
より、誤って必要なファイルを削除する危険性を大きく
低下させることができる。When an instruction to delete the file created in the recording medium 30 is given, the CPU 27 sends information (information 1 in FIG. 4, information 2 in FIG. 5) indicating that the image data is in the image cutout mode. The liquid crystal panel 14 reads and displays on the liquid crystal panel 14 that the image data is necessary for the image extraction processing, and deletes the image data when the deletion execution instruction is given. This can greatly reduce the risk of accidentally deleting a necessary file.
【0049】第2の記録方法ではファイルを個別に作成
するから、背景を示す画像データのファイル(図6の
(a))を削除すると、被写体を含む画像データのファ
イル(図6の(b)〜(d))は、画像抽出処理に用い
ることができなくなって、残しておいても無駄になる。
一方、被写体を含む画像を表す画像データが複数ある場
合、それらのうちの1つを削除しても、画像抽出処理は
可能であり、他のどのファイルも無駄にはならない。そ
こで、第2の記録方法で作成したファイルについては、
背景を表す画像データのファイルの削除が指示されたと
きのみに、画像抽出処理に必要な画像データである旨を
表示するようにしてもよい。Since the files are individually created in the second recording method, if the image data file showing the background ((a) in FIG. 6) is deleted, the image data file containing the subject ((b) in FIG. 6) is deleted. The items (d) to (d) cannot be used in the image extraction process, and are left wasted.
On the other hand, when there are a plurality of image data representing an image including a subject, even if one of them is deleted, the image extraction processing is possible and no other files are wasted. Therefore, regarding the file created by the second recording method,
The fact that the image data is necessary for the image extraction process may be displayed only when the deletion of the file of the image data representing the background is instructed.
【0050】この削除処理の流れを図9のフローチャー
トに示す。まず、ファイル削除の要求に応じて、ファイ
ル名のリストを液晶パネル14に表示し(ステップ#2
05)、削除するファイルが選択されるのを待つ(#2
10)。削除の要求は操作キー17dの操作によりなさ
れ、選択は操作キー17bの操作によりなされる。The flow of this deletion processing is shown in the flowchart of FIG. First, in response to a file deletion request, a list of file names is displayed on the liquid crystal panel 14 (step # 2
05), wait for the file to be deleted to be selected (# 2
10). The deletion request is made by operating the operation key 17d, and the selection is made by operating the operation key 17b.
【0051】ファイルが選択されたときは、そのファイ
ルから情報を読み取って、画像切り出しモードで記録さ
れた背景のみの画像データであるか否かを判定する(#
215)。背景のみの画像データあれば、情報に記され
ている他のファイルすなわち被写体を含む画像を表す画
像データのファイルが、記録媒体30上に存在するか否
かを判定する(#220)。他のファイルが存在すれ
ば、背景を表す画像データのファイルを削除しようとし
ている旨を液晶パネル14に表示して警告する(#22
5)。また、「取消」と「実行」の選択肢を液晶パネル
に14表示する(#230)。なお、警告は電子ブザー
18からの音声出力によっても行う。When a file is selected, information is read from the file and it is determined whether or not the image data is only background data recorded in the image cutout mode (#
215). If there is image data only for the background, it is determined whether or not another file described in the information, that is, a file of image data representing an image including the subject exists on the recording medium 30 (# 220). If another file exists, the fact that the image data file representing the background is about to be deleted is displayed on the liquid crystal panel 14 to warn (# 22).
5). Also, 14 options of "cancel" and "execute" are displayed on the liquid crystal panel (# 230). The warning is also given by the voice output from the electronic buzzer 18.
【0052】そして、取消の指示または削除実行の指示
を待つ(#235、#240)。取消と実行の選択は操
作キー17bの操作により、また、選択の確定は操作キ
ー17cの操作によりなされる。取消が指示されたとき
はステップ#210に戻り、実行が選択されたときはフ
ァイルを記録媒体30から削除して(#245)、ステ
ップ#210に戻る。Then, it waits for a cancellation instruction or a deletion execution instruction (# 235, # 240). Selection of cancellation and execution is made by operating the operation key 17b, and confirmation of selection is made by operating the operation key 17c. When cancellation is instructed, the process returns to step # 210, and when execution is selected, the file is deleted from the recording medium 30 (# 245) and the process returns to step # 210.
【0053】ステップ#215の判定で背景のみの画像
データでないとき、および、ステップ#220の判定で
他のファイルが存在しないときには、ステップ#230
に進み、実行の指示を与えられた上で(#240)、選
択されたファイルを記録媒体30から削除する(#24
5)。When it is determined in step # 215 that the image data does not include only the background, and when it is determined in step # 220 that no other file exists, step # 230 is performed.
Then, after the execution instruction is given (# 240), the selected file is deleted from the recording medium 30 (# 24).
5).
【0054】デジタルカメラ1が行う画像抽出処理につ
いて、図10のフローチャートを参照して説明する。ま
ず、記録媒体30に記録されているファイルの中から、
画像切り出しモードで作成したファイルを全て見いだ
し、それらのファイル名のリストを液晶パネル14に表
示する(ステップ#305)。その際、第1の記録方法
でファイルが作成されているときは、ファイル名と共
に、各ファイルに記録されている被写体を含む画像を表
す画像データのデータ番号を表示する。例えば、ファイ
ルに記録されている画像データの総数が4であれば、1
から3までのデータ番号を表示する。また、第2の記録
方法でファイルが作成されているときは、一連の撮影で
作成したファイル名を1グループとしてまとめて表示
し、背景を表す画像データのファイル名にその旨を示す
標識を付す。Image extraction processing performed by the digital camera 1 will be described with reference to the flowchart of FIG. First, from the files recorded on the recording medium 30,
All the files created in the image cutout mode are found, and a list of these file names is displayed on the liquid crystal panel 14 (step # 305). At that time, when a file is created by the first recording method, the data number of the image data representing the image including the subject recorded in each file is displayed together with the file name. For example, if the total number of image data recorded in the file is 4, 1
Display the data numbers from 1 to 3. Further, when files are created by the second recording method, the file names created by a series of shootings are collectively displayed as one group, and the file name of the image data representing the background is marked with a mark to that effect. .
【0055】次いで、データ番号またはファイル名が選
択されるのを待つ(#310)。選択は操作キー17b
によりなされ、操作キー17cの操作により確定する。
なお、ここでは、被写体を含む画像を表す画像データの
データ番号またはファイル名のみが選択可能である。背
景を表す画像データは、ファイルに記録されている情報
に示されているからである。Then, the process waits until the data number or file name is selected (# 310). Select with operation key 17b
And is confirmed by operating the operation key 17c.
Here, only the data number or file name of the image data representing the image including the subject can be selected. This is because the image data representing the background is shown in the information recorded in the file.
【0056】データ番号またはファイル名が選択される
と、その画像データを記録媒体30のファイルから読み
出して、画像データが表す画像を液晶パネル16に表示
する(#315)。また、「実行」、「再選択」、「削
除」の選択肢を液晶パネル14に表示して、いずれかが
指定されるのを待つ(#320、#325、#33
0)。これらの選択肢の選択は、操作キー17bの操作
によりなされ、操作キー17cの操作により確定する。When the data number or file name is selected, the image data is read from the file on the recording medium 30 and the image represented by the image data is displayed on the liquid crystal panel 16 (# 315). Also, the choices of “execute”, “reselect”, and “delete” are displayed on the liquid crystal panel 14 and wait until any one is designated (# 320, # 325, # 33).
0). The selection of these options is made by operating the operation key 17b and confirmed by operating the operation key 17c.
【0057】ステップ#320〜#330の判定で実行
が指定されたときは、表示している画像の画像データに
対応する背景を表す画像データを記録媒体30のファイ
ルから読み出し、画像抽出部26により、前者と後者の
差を検出して、前者から差の部分を抽出する(#33
5)。これで、被写体のみを表す画像データが得られ
る。そして、抽出した画像データが表す被写体のみの画
像を液晶パネル16に表示し(#340)、「保存」、
「廃棄」の選択肢を液晶パネルに表示して、いずれが指
定されたかを判定する(#345)。選択は操作キー1
7bの操作によりなされ、操作キー17cの操作により
確定する。廃棄が指定されたときは、ステップ#310
に戻る。When the execution is designated by the judgment in steps # 320 to # 330, the image data representing the background corresponding to the image data of the image being displayed is read from the file of the recording medium 30 and the image extracting section 26 is used. , The difference between the former and the latter is detected, and the difference portion is extracted from the former (# 33).
5). In this way, image data representing only the subject is obtained. Then, an image of only the subject represented by the extracted image data is displayed on the liquid crystal panel 16 (# 340), and "save",
The option of “discard” is displayed on the liquid crystal panel to determine which has been designated (# 345). Select with operation key 1
It is done by operating 7b, and is confirmed by operating the operation key 17c. When discarding is designated, step # 310
Return to.
【0058】保存が指定されたときは、抽出した画像デ
ータを記録媒体30に記録する(#350)。この際、
抽出した画像データは、独立なファイルに記録してもよ
いし、抽出前の画像データを記録しているファイルに付
加して記録してもよい。抽出前の画像データを記録して
いるファイルに抽出した画像データを記録すると、抽出
前後の画像データの対応関係が明確になり、ファイルの
管理も容易になる。なお、その場合、ファイルに記録し
ている情報に、抽出した画像データに関する情報を加え
ておく。画像データの記録後、ステップ#310に戻
る。When the save is designated, the extracted image data is recorded on the recording medium 30 (# 350). On this occasion,
The extracted image data may be recorded in an independent file, or the image data before extraction may be added and recorded in the recorded file. When the extracted image data is recorded in the file in which the image data before extraction is recorded, the correspondence between the image data before and after extraction becomes clear, and the file management becomes easy. In that case, information about the extracted image data is added to the information recorded in the file. After recording the image data, the process returns to step # 310.
【0059】ステップ#320〜#330の判定で再選
択が指定されたときは、ステップ#310に戻る。削除
が指定されたときは、背景と被写体を含む画像を表す画
像データを削除しようとしている旨を液晶パネル14に
表示して、警告する(#355)。警告は電子ブザー1
8からの音声出力によっても行う。次いで、削除取消ま
たは削除実行の指示が与えられるのを待ち(#360、
#365)、取消が指示されたときはステップ#310
に戻る。When the reselection is designated in the determinations in steps # 320 to # 330, the process returns to step # 310. When the deletion is designated, the fact that the image data representing the image including the background and the subject is about to be deleted is displayed on the liquid crystal panel 14 to warn (# 355). Warning is electronic buzzer 1
It is also performed by voice output from 8. Then, wait for an instruction to cancel or delete the deletion (# 360,
# 365), if cancellation is instructed, step # 310
Return to.
【0060】実行が指示されたときは、ステップ#31
0で選択された画像データを記録しているファイルを記
録媒体30から削除して(#370)、ステップ#31
0に戻る。なお、データ番号が選択されていたとき、す
なわち、第1の記録方法でファイルが作成されていたと
きは、ファイル全体を削除するのではなく、ファイル内
の画像データを削除する。ファイルまたは画像データの
削除に際しては、削除するファイルまたは画像データに
関する情報も削除しておく。When execution is instructed, step # 31
The file recording the image data selected by 0 is deleted from the recording medium 30 (# 370), and step # 31
Return to 0. When the data number is selected, that is, when the file is created by the first recording method, the image data in the file is deleted instead of deleting the entire file. When deleting a file or image data, information about the file or image data to be deleted is also deleted.
【0061】図7〜図10に示した処理は、ROM28
が記憶しているプログラムによって行われる。撮影の機
能をもたない画像処理装置においても、図9および図1
0の処理は可能である。また、既にデジタルカメラ等で
生成された複数の画像データが共通の部分を含む画像を
表すものであるとき、それらの画像データを図5または
図6に示した形式のファイルに変換する処理を撮影の機
能をもたない画像処理装置で行うことも可能である。The processing shown in FIGS. 7 to 10 is performed by the ROM 28.
Is performed by a program stored in. 9 and 1 even in an image processing apparatus that does not have a photographing function.
Processing of 0 is possible. In addition, when a plurality of image data generated by a digital camera or the like represent an image including a common portion, a process of converting the image data into a file of the format shown in FIG. 5 or 6 is photographed. It is also possible to use an image processing apparatus that does not have the function of.
【0062】第2の実施形態のパーソナルコンピュータ
3は、これらの処理を行うものである。パーソナルコン
ピュータ3の外観を図11に模式的に示す。パーソナル
コンピュータ3は、演算処理を行うCPUや情報を記憶
するROMおよびRAMを内蔵した本体31、画像を表
示する表示部32、ならびに使用者によって操作される
キーボード33およびマウス34より成る。本体31に
は記録媒体を装着するための2つの挿入口35、36が
設けられている。挿入口35には、画像処理プログラム
を記録した記録媒体M1が挿入され、挿入口36には、
画像データを記録した記録媒体M2が挿入される。The personal computer 3 of the second embodiment performs these processes. The external appearance of the personal computer 3 is schematically shown in FIG. The personal computer 3 includes a main body 31 having a CPU for performing arithmetic processing, a ROM and a RAM for storing information, a display unit 32 for displaying an image, a keyboard 33 and a mouse 34 operated by a user. The main body 31 is provided with two insertion openings 35 and 36 for mounting a recording medium. The recording medium M1 recording the image processing program is inserted into the insertion port 35, and the insertion port 36 is inserted into the insertion port 36.
The recording medium M2 on which the image data is recorded is inserted.
【0063】記録媒体M1の画像処理プログラムには、
任意の画像データのファイルを、第1の実施形態のデジ
タルカメラ1が第1の記録方法で作成する形式および第
2の記録方法で作成する形式のファイルに変換する処理
を行うプログラムが含まれている。また、図9の削除処
理を行うプログラム、および図10の画像抽出処理を行
うプログラムも含まれている。CPUは、記録媒体M1
のこれらのプログラムによって画像データを処理する。The image processing program of the recording medium M1 includes
A program is included that performs a process of converting a file of arbitrary image data into a file of a format created by the digital camera 1 of the first embodiment by the first recording method and a file of a format created by the second recording method. There is. Further, a program for performing the deletion process of FIG. 9 and a program for performing the image extraction process of FIG. 10 are also included. The CPU is the recording medium M1
Image data is processed by these programs.
【0064】記録媒体M2に記録されている画像データ
は、記録媒体M1のプログラムの処理の対象となる。記
録媒体M2としては、デジタルカメラ1が画像データを
記録した記録媒体30を用いることができるし、他の撮
像装置が画像データを記録した記録媒体を用いることも
できる。The image data recorded on the recording medium M2 is the target of the processing of the program on the recording medium M1. As the recording medium M2, the recording medium 30 in which the digital camera 1 has recorded the image data can be used, or the recording medium in which the other imaging device has recorded the image data can be used.
【0065】表示部32は、デジタルカメラ1の液晶パ
ネル14および16に相当し、キーボード33およびマ
ウス34は操作キー17a〜17dに相当する。これら
を備えるパーソナルコンピュータ3は、撮影を行うこと
ができない点を除き、画像データの処理に関してデジタ
ルカメラ1と同等の機能を有するものとなっている。The display unit 32 corresponds to the liquid crystal panels 14 and 16 of the digital camera 1, and the keyboard 33 and the mouse 34 correspond to the operation keys 17a to 17d. The personal computer 3 including these has the same function as that of the digital camera 1 with respect to the processing of image data, except that the personal computer 3 cannot take a picture.
【0066】[0066]
【発明の効果】第2の画像データが複数あるときに、複
数の第2の画像データを1つのファイルに記録する本発
明の画像記録プログラムによると、第1の画像データと
の対応関係が混乱し易くなる複数の第2の画像データ
を、第1の画像データとの対応関係が理解し易い形態で
記録することができる。したがって、画像抽出処理を能
率よく行うことが可能になり、ファイルの管理も容易に
なる。According to the image recording program of the present invention for recording a plurality of second image data in one file when there are a plurality of second image data, the correspondence relationship with the first image data is confused. It is possible to record a plurality of second image data that is easy to perform in a form in which the correspondence relationship with the first image data is easy to understand. Therefore, the image extraction process can be performed efficiently, and the file management becomes easy.
【0067】ここで、第2の画像データを記録するファ
イルに第1の画像データを記録するようにすると、画像
抽出処理の能率やファイル管理の容易さが一層向上す
る。また、第2の画像データを記録するファイルに第2
の画像データの数を記録するようにしても、画像処理の
能率が向上する。Here, if the first image data is recorded in the file in which the second image data is recorded, the efficiency of image extraction processing and the ease of file management are further improved. In addition, the second file is recorded in the file for recording the second image data.
Even if the number of image data items is recorded, the efficiency of image processing is improved.
【0068】第1の画像データと第2の画像データを別
個のファイルに記録し、第1の画像データを記録したフ
ァイルと第2の画像データを記録したファイルの関連を
示す情報をファイルに記録する本発明の画像記録プログ
ラムによると、第1の画像データと第2の画像データ
を、それらの対応関係が理解し易い形態で記録すること
ができる。したがって、画像抽出処理を能率よく行うこ
とが可能になる。The first image data and the second image data are recorded in separate files, and the information indicating the relationship between the file recording the first image data and the file recording the second image data is recorded in the file. According to the image recording program of the present invention, it is possible to record the first image data and the second image data in a form in which their correspondence is easy to understand. Therefore, the image extraction processing can be efficiently performed.
【0069】ここで、関連を示す情報を第1の画像デー
タを記録するファイルに記録するようにすると、第1の
画像データを記録したファイルを見るだけで、対応する
第2の画像データを記録したファイルが明らかになり、
画像抽出処理の能率が一層向上する。また、第1の画像
データを記録したファイルを削除する指示を与えられた
ときに、削除するファイルが他のファイルに関連してい
ることを表明して、実行の確認指示を求めるようにする
ことで、画像抽出処理ができなくなる危険性を大きく低
減することができる。Here, if the information indicating the relation is recorded in the file in which the first image data is recorded, the corresponding second image data is recorded only by looking at the file in which the first image data is recorded. File is revealed,
The efficiency of image extraction processing is further improved. Also, when an instruction to delete the file in which the first image data is recorded is given, it is expressed that the file to be deleted is related to another file, and an execution confirmation instruction is requested. Thus, the risk that the image extraction process cannot be performed can be greatly reduced.
【0070】第1の画像データと第2の画像データを別
個のファイルに記録し、画像抽出処理に用いる画像デー
タが記録されていることを示す情報を第1の画像データ
を記録するファイルに記録し、第1の画像データを記録
したファイルを削除する指示を与えられたときに、削除
するファイルに画像抽出処理に用いる画像データが記録
されていることを表明して、実行の確認指示を求めるよ
うにした本発明の画像記録プログラムによると、画像抽
出処理が不可能になるという結果に直結する誤削除の危
険性の低い形態で、第1の画像データを記録することが
できる。The first image data and the second image data are recorded in separate files, and the information indicating that the image data used for the image extraction processing is recorded is recorded in the file for recording the first image data. Then, when the instruction to delete the file in which the first image data is recorded is given, it is expressed that the image data used for the image extraction processing is recorded in the file to be deleted, and the execution confirmation instruction is requested. According to the image recording program of the present invention as described above, the first image data can be recorded in a form in which there is a low risk of erroneous deletion, which directly leads to the result that the image extraction process becomes impossible.
【0071】背景を表す第1の画像データと背景と被写
体とを表す第2の画像データをファイルから読み取り、
第2の画像データから抽出した被写体を表す部分を第2
の画像データが記録されていたファイルに記録する本発
明の画像抽出プログラムによると、被写体のみを表す画
像データを、被写体と背景を表す画像データとの対応関
係が理解し易い形態で記録することができ、画像データ
の管理が容易になる。First image data representing the background, the background and the subject
Read the second image data representing the body from the file,
The portion representing the subject extracted from the second image data is the second
According to the image extraction program of the present invention for recording in the file in which the image data of the above is recorded, it is easy to understand the correspondence between the image data representing only the subject and the image data representing the background. The image data can be recorded, and the management of the image data becomes easy.
【0072】上記のいずれかの画像記録プログラムを記
憶した記憶媒体を備えて、第1の画像データと第2の画
像データをファイルに記録するようにした本発明の画像
記録装置では、画像記録プログラムの特徴が生かされ
て、画像抽出処理を能率よく行うことが可能になり、フ
ァイルの管理も容易になる。In the image recording apparatus of the present invention, which is equipped with a storage medium storing any one of the above image recording programs and records the first image data and the second image data in a file, By making the most of the features described above, it becomes possible to efficiently perform image extraction processing, and file management becomes easy.
【0073】特に、撮像部を備えて撮像装置とした構成
では、撮影した画像を表す画像データを、直ちに、画像
抽出処理に好適で管理の容易なファイルとして記録する
ことができる。In particular, in the configuration of the image pickup apparatus including the image pickup section, the image data representing the photographed image can be immediately recorded as a file suitable for the image extraction processing and easily managed.
【図1】 第1の実施形態のデジタルカメラの外観を模
式的に示す斜視図。FIG. 1 is a perspective view schematically showing the outer appearance of a digital camera according to a first embodiment.
【図2】 上記デジタルカメラの外観を模式的に示す背
面図。FIG. 2 is a rear view schematically showing the outer appearance of the digital camera.
【図3】 上記デジタルカメラの回路構成の概略を模式
的に示すブロック図。FIG. 3 is a block diagram schematically showing a schematic circuit configuration of the digital camera.
【図4】 画像抽出処理に用いられる画像の例を示す
図。FIG. 4 is a diagram showing an example of an image used for image extraction processing.
【図5】 上記デジタルカメラが画像データを記録する
ファイルの形式を模式的に示す図。FIG. 5 is a diagram schematically showing a file format in which the digital camera records image data.
【図6】 上記デジタルカメラが画像データを記録する
ファイルの他の形式を模式的に示す図。FIG. 6 is a diagram schematically showing another format of a file in which the digital camera records image data.
【図7】 上記デジタルカメラにおける画像の撮影から
画像データの記録までの処理の流れの概略を示すフロー
チャート。FIG. 7 is a flowchart showing an outline of a processing flow from image capturing to image data recording in the digital camera.
【図8】 図7の処理の一部を変更したフローチャー
ト。FIG. 8 is a flowchart in which a part of the processing in FIG. 7 is changed.
【図9】 上記デジタルカメラにおける画像データのフ
ァイルの削除処理の流れの概略を示すフローチャート。FIG. 9 is a flowchart showing an outline of a flow of a process of deleting an image data file in the digital camera.
【図10】 上記デジタルカメラにおける画像抽出処理
の流れの概略を示すフローチャート。FIG. 10 is a flowchart showing an outline of the flow of image extraction processing in the digital camera.
【図11】 第2の実施形態のパーソナルコンピュータ
の外観を模式的に示す正面図。FIG. 11 is a front view schematically showing the outer appearance of the personal computer according to the second embodiment.
1 デジタルカメラ 11 撮影レンズ 12a、12b ファインダ窓 13 レリーズボタン 14 液晶パネル 15a、15b 操作キー 16 液晶パネル 17a〜17d 操作キー 18 電子ブザー 19 記録媒体挿入口 20 撮像素子 21 アナログ処理部 22 A/Dコンバータ 23 画像処理部 24 RAM 25 画像統合部 26 画像抽出部 27 CPU 28 ROM 29 操作部 30 記録媒体 3 パーソナルコンピュータ 31 本体 32 表示部 33 キーボード 34 マウス 35、36 記録媒体挿入口 M1、M2 記録媒体 1 digital camera 11 Shooting lens 12a, 12b finder window 13 Release button 14 LCD panel 15a, 15b operation keys 16 LCD panel 17a to 17d operation keys 18 electronic buzzer 19 Recording medium insertion slot 20 Image sensor 21 Analog processing unit 22 A / D converter 23 Image Processor 24 RAM 25 Image Integration Department 26 Image extractor 27 CPU 28 ROM 29 Operation part 30 recording media 3 personal computer 31 body 32 display 33 keyboard 34 mice 35, 36 Recording medium insertion slot M1, M2 recording medium
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平11−109849(JP,A) 特開 平10−21370(JP,A) 特開 平8−139911(JP,A) 特開 平11−175701(JP,A) 特開 平2−127886(JP,A) 特開 平7−225192(JP,A) 特開 平8−154172(JP,A) 特開 平8−315119(JP,A) 特開 平8−235341(JP,A) 特開 平2−301873(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G03B 15/00 G03B 19/02 H04N 5/765 ─────────────────────────────────────────────────── ─── Continuation of front page (56) Reference JP-A-11-109849 (JP, A) JP-A-10-21370 (JP, A) JP-A-8-139911 (JP, A) JP-A-11- 175701 (JP, A) JP-A 2-127886 (JP, A) JP-A 7-225192 (JP, A) JP-A 8-154172 (JP, A) JP-A 8-315119 (JP, A) JP-A-8-235341 (JP, A) JP-A-2-301873 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06T 1/00 G03B 15/00 G03B 19/02 H04N 5/765
Claims (10)
1の画像データと第2の画像データの差を検出して、第
2の画像データから第1の画像データとの差の部分を抽
出する画像抽出処理のために、第1の画像データと第2
の画像データをファイルに記録する画像記録プログラム
において、 第2の画像データが複数あるときに、複数の第2の画像
データを1つのファイルに記録することを特徴とする画
像記録プログラム。1. A difference between first image data and second image data representing two images including a common portion is detected, and a difference portion between the second image data and the first image data is detected. The first image data and the second image data
In the image recording program for recording the image data of 1. in a file, when there are a plurality of second image data, the plurality of second image data are recorded in one file.
第1の画像データを記録することを特徴とする請求項1
に記載の画像記録プログラム。2. The first image data is recorded in a file for recording the second image data.
The image recording program described in 1.
第2の画像データの数を記録することを特徴とする請求
項1に記載の画像記録プログラム。3. The image recording program according to claim 1, wherein the number of second image data is recorded in a file for recording the second image data.
1の画像データと第2の画像データの差を検出して、第
2の画像データから第1の画像データとの差の部分を抽
出する画像抽出処理のために、第1の画像データと第2
の画像データをファイルに記録する画像記録プログラム
において、 第1の画像データと第2の画像データを別個のファイル
に記録するとともに、第1の画像データを記録したファ
イルと第2の画像データを記録したファイルの関連を示
す情報をファイルに記録することを特徴とする画像記録
プログラム。4. A difference between the first image data and the second image data representing two images including a common portion is detected, and a difference portion between the second image data and the first image data is detected. The first image data and the second image data
An image recording program for recording the image data of the first image data in a file, the first image data and the second image data in separate files, and the file in which the first image data is recorded and the second image data. An image recording program for recording information indicating the relationship between the created files in the file.
ファイルに記録することを特徴とする請求項4に記載の
画像記録プログラム。5. The image recording program according to claim 4, wherein the information is recorded in a file for recording first image data.
削除する指示を与えられたときに、前記情報を読み取っ
て、削除するファイルが他のファイルに関連しているこ
とを表明し、実行の指示を与えられた上で、第1の画像
データを記録したファイルを削除することを特徴とする
請求項5に記載の画像記録プログラム。6. When instructed to delete the file in which the first image data is recorded, the information is read to express that the file to be deleted is related to another file and execute the execution. The image recording program according to claim 5, wherein the file in which the first image data is recorded is deleted upon receiving an instruction.
1の画像データと第2の画像データの差を検出して、第
2の画像データから第1の画像データとの差の部分を抽
出する画像抽出処理のために、第1の画像データと第2
の画像データをファイルに記録する画像記録プログラム
において、 第1の画像データと第2の画像データを別個のファイル
に記録するとともに、画像抽出処理に用いる画像データ
が記録されていることを示す情報を第1の画像データを
記録するファイルに記録し、 第1の画像データを記録したファイルを削除する指示を
与えられたときに、前記情報を読み取って、削除するフ
ァイルに画像抽出処理に用いる画像データが記録されて
いることを表明し、実行の指示を与えられた上で、第1
の画像データを記録したファイルを削除することを特徴
とする画像記録プログラム。7. A difference between first image data and second image data representing two images including a common portion is detected, and a difference portion between the second image data and the first image data is detected. The first image data and the second image data
In the image recording program for recording the image data of the above in a file, the first image data and the second image data are recorded in separate files, and information indicating that the image data used for the image extraction processing is recorded is provided. The image data used for the image extraction processing is recorded in a file for recording the first image data, and when the instruction to delete the file recording the first image data is given, the information is read and the file to be deleted is used for the image extraction processing. Is recorded and given instructions for execution, the first
An image recording program that deletes a file in which the image data of is recorded.
景と共通する背景に加えて被写体を表す第2の画像デー
タの差を検出して、第2の画像データから第1の画像デ
ータとの差の部分を被写体を表す部分として抽出する画
像抽出プログラムにおいて、 第1の画像データと第2の画像データをファイルから読
み取り、第2の画像データから抽出した被写体を表す部
分を第2の画像データが記録されていたファイルに記録
することを特徴とする画像抽出プログラム。8. First image data representing a background and the spine
An image extraction program that detects a difference between second image data representing a subject in addition to a background common to the scenery and extracts a portion of the difference between the second image data and the first image data as a portion representing the subject. In, the first image data and the second image data are read from the file, and the portion representing the subject extracted from the second image data is recorded in the file in which the second image data was recorded. An image extraction program characterized by the above.
1の画像データと第2の画像データの差を検出して、第
2の画像データから第1の画像データとの差の部分を抽
出する画像抽出処理のために、第1の画像データと第2
の画像データをファイルに記録する画像記録装置におい
て、 請求項1ないし請求項7のいずれか1項に記載の画像記
録プログラムを記憶した記憶媒体を備え、画像記録プロ
グラムによって第1の画像データと第2の画像データを
ファイルに記録することを特徴とする画像記録装置。9. A difference between the first image data and the second image data representing two images including a common portion is detected, and a difference portion between the second image data and the first image data is detected. The first image data and the second image data
An image recording apparatus for recording the image data of claim 1 in a file, comprising a storage medium storing the image recording program according to any one of claims 1 to 7, wherein the first image data and the first image data are recorded by the image recording program. An image recording device characterized by recording the image data of No. 2 in a file.
像データを生成する撮像部を備え、 撮像部が生成した画像データを、第1の画像データと第
2の画像データのいずれかとして、ファイルに記録する
ことを特徴とする請求項9に記載の画像記録装置。10. An image pickup unit for picking up an image and generating image data representing the picked-up image, wherein the image data generated by the image pickup unit is set as either the first image data or the second image data. The image recording device according to claim 9, wherein the image is recorded in a file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001089727A JP3427831B2 (en) | 2001-03-27 | 2001-03-27 | Image processing program and image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001089727A JP3427831B2 (en) | 2001-03-27 | 2001-03-27 | Image processing program and image processing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002288627A JP2002288627A (en) | 2002-10-04 |
| JP3427831B2 true JP3427831B2 (en) | 2003-07-22 |
Family
ID=18944615
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001089727A Expired - Fee Related JP3427831B2 (en) | 2001-03-27 | 2001-03-27 | Image processing program and image processing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3427831B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4504216B2 (en) * | 2005-02-08 | 2010-07-14 | 株式会社エクシング | Image processing apparatus and image processing program |
-
2001
- 2001-03-27 JP JP2001089727A patent/JP3427831B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002288627A (en) | 2002-10-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5056061B2 (en) | Imaging device | |
| US7453506B2 (en) | Digital camera having a specified portion preview section | |
| JP4538386B2 (en) | Target image recording apparatus, imaging apparatus, and control method thereof | |
| JP2002101329A (en) | Digital camera, image reproducing apparatus and method | |
| JP2010130437A (en) | Imaging device and program | |
| JP2010226702A (en) | Imaging device | |
| JP2003299028A (en) | Image display device and image managing program | |
| JP3925059B2 (en) | Electronic camera and fixed point photographing method | |
| JP2000350087A (en) | Digital still camera and control method therefor | |
| JP4352554B2 (en) | Electronic camera | |
| JP3955540B2 (en) | Image processing device | |
| JP2009070374A (en) | Electronics | |
| JP4534750B2 (en) | Image processing apparatus and image processing program | |
| JP5369776B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP3427831B2 (en) | Image processing program and image processing apparatus | |
| JP2008042474A (en) | Digital camera | |
| JP2004312218A (en) | Digital camera and image playback device | |
| JP2006128793A (en) | Imaging apparatus and control method thereof | |
| JPH11224324A (en) | Image signal processing method and device | |
| JP2005328224A (en) | Digital camera | |
| JP2010239532A (en) | Imaging apparatus and imaging method | |
| JP2007325152A (en) | Imaging apparatus and program thereof | |
| JP2012070162A (en) | Imaging apparatus, image processing method and program | |
| JP2003244507A (en) | Digital camera | |
| JP2008182499A (en) | Image processing apparatus and image processing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |