JP2005109647A - Image processor and program - Google Patents

Image processor and program Download PDF

Info

Publication number
JP2005109647A
JP2005109647A JP2003337454A JP2003337454A JP2005109647A JP 2005109647 A JP2005109647 A JP 2005109647A JP 2003337454 A JP2003337454 A JP 2003337454A JP 2003337454 A JP2003337454 A JP 2003337454A JP 2005109647 A JP2005109647 A JP 2005109647A
Authority
JP
Japan
Prior art keywords
image
image data
moving object
moving
processing apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2003337454A
Other languages
Japanese (ja)
Inventor
Yoshitaka Ogawa
義隆 小川
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2003337454A priority Critical patent/JP2005109647A/en
Publication of JP2005109647A publication Critical patent/JP2005109647A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and a program capable of performing the processing for removing an unnecessary object depending on a photographing object or purpose and photographing. <P>SOLUTION: An image photographed at a camera section 21 is recorded as image data 23 at an image recording section 22. A moving object removing section 24 judges an object to be removed in image data 23 based on previously specified conditions, and an image reproducing section 25 displays a composite image subjected to removing processing on a display 26. Consequently, an image from which an unnecessary image is removed is reproduced. Flexible removing processing can be carried out by specifying the conditions appropriately. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、撮影した動画像に対する加工処理を行なう画像処理装置に関し、更に詳しくは動画像に写し込まれた不要な物体を除去する画像処理装置に関する。   The present invention relates to an image processing apparatus that performs a processing process on a captured moving image, and more particularly to an image processing apparatus that removes an unnecessary object that is captured in a moving image.

風景をビデオカメラなどで撮影する際、撮影したくないものが写りこんでしまう場合がある。例えば、風景や記念撮影などでは、路上を往来する自動車や観光客等不要な物体が写真に写り込むのは可能な限り避けたい。
このためには撮影タイミングを計ったり、撮影場所を変えたり、撮影する時間は撮影範囲に入らないように協力してもらう等の処置を実行しなければならない。更に被写体と近距離であればこれらの方法で対処できるが、風景撮影などのように被写体との距離が離れている場合、不要なものが写り込まないようにするのは困難を要する。
When shooting landscapes with a video camera, you may see things you don't want to shoot. For example, in scenery and commemorative photography, it is desirable to avoid unnecessary objects such as cars and tourists coming and going on the road from appearing in photographs.
For this purpose, it is necessary to take measures such as timing the shooting, changing the shooting location, and cooperating so that the shooting time does not fall within the shooting range. Further, if the subject is close to the subject, it can be dealt with by these methods. However, it is difficult to prevent unnecessary objects from appearing when the subject is far away, such as in landscape photography.

特許文献1は、この点に対処する為、レーザ光を発射して被写体との距離を測ることの出来る3次元画像検出装置により通常画像と距離検出した3次元画像を複数回撮影し、これらのデータから往来物などの移動物を除去した画像を生成する。
また移動物体の検出方法としては、特許文献2に、t時に撮影した画像と時系列で1つ前の(t−1)時に撮影した画像を比較して、移動物体を特定し、この移動物体を除去したものを背景画像として画像を生成している。
特開2001−119723号公報(図3、[0021]) 特開平11−15982号公報(図2、[0018]〜[0019])
In order to cope with this point, Patent Literature 1 captures a normal image and a three-dimensional image detected from a plurality of times by a three-dimensional image detection device capable of measuring a distance from a subject by emitting laser light. An image is generated by removing moving objects such as traffic objects from the data.
As a method for detecting a moving object, Patent Document 2 compares an image taken at time t with an image taken at the previous time (t-1) in time series, identifies the moving object, and moves the moving object. An image is generated using the image from which the image is removed as a background image.
JP 2001-119723 A (FIG. 3, [0021]) Japanese Patent Laid-Open No. 11-15882 (FIG. 2, [0018] to [0019])

しかし特許文献1に記載されている方法は、撮影機器に3次元検出装置を設ける必要があり、機器が大掛かり且つ効果になってしまう。また特許文献2に開示されている方法では、移動物体と背景を物体が動いているか否かによってのみ判定しているので、撮影対象物が動いているものを撮影した動画には、そのまま適用することはできない。また動いているか否かのみを判定基準としているので、本当に除去したい物体を判別するのが困難であり、また撮影状況によって柔軟に対処することが出来ない。   However, in the method described in Patent Document 1, it is necessary to provide a three-dimensional detection device in a photographing device, which makes the device large and effective. In the method disclosed in Patent Document 2, since the moving object and the background are determined only based on whether or not the object is moving, the method is applied as it is to a moving image obtained by shooting the moving object. It is not possible. Further, since only the determination criterion is whether or not the object is moving, it is difficult to determine the object that is really desired to be removed, and it is not possible to flexibly cope with the shooting situation.

本発明は、上記問題点を解決する画像処理装置及びプログラムを提供することを課題とする。   It is an object of the present invention to provide an image processing apparatus and a program that solve the above problems.

本発明による画像処理装置は、動画像に対して加工処理を行なう画像処理装置を前提とし、上記問題点を解決する為、判定手段、除去手段及び合成画像生成手段を備える。
判定手段は、前記動画像を構成する画像データと、当該画像データと時系列的に近い、前記動画像内の画像データとを比較して移動物体及びその位置を検出し、該検出した移動物体を除去すべきか否かを指定された条件に基づいて判定する。
An image processing apparatus according to the present invention is premised on an image processing apparatus that performs processing on a moving image, and includes a determination unit, a removal unit, and a composite image generation unit in order to solve the above problems.
The determination means detects the moving object and its position by comparing the image data constituting the moving image with the image data in the moving image that is close to the image data in time series, and the detected moving object Whether or not to be removed is determined based on a designated condition.

除去手段は、前記判定手段が除去すべきと判定した移動物体の存在する画像データから該移動物体に対応する領域部分を除去する。
合成画像生成手段は、前記除去手段が移動物体に対応する領域部分を除去した画像データと時系列的に近い画像データを用いて、前記除去手段が除去した領域部分に対して補間を行ない、前記移動物体の写っていない合成画像を生成する。
The removing unit removes a region portion corresponding to the moving object from the image data including the moving object determined to be removed by the determining unit.
The composite image generation means performs interpolation on the area portion removed by the removal means, using image data that is close in time series to the image data from which the removal means removes the area portion corresponding to the moving object, A composite image without a moving object is generated.

この構成により判定手段は、指定された条件に基づいて移動物体を除去するか否かを判定するので、撮影対象や撮影環境によってこの条件に適宜なものを設定することにより、目的の移動物体を除去することができる。
この指定された条件に、例えば前記移動物体の速度についての条件を含むようにすることにより、動きの無い若しくは少ない画像に写し込まれた通過物等の移動物体を除去することが出来る。
With this configuration, the determination unit determines whether or not to remove the moving object based on the specified condition. Therefore, by setting an appropriate one for this condition depending on the shooting target and the shooting environment, the target moving object is determined. Can be removed.
By including, for example, a condition regarding the speed of the moving object in the designated condition, it is possible to remove a moving object such as a passing object that is immovable or imprinted in an image.

またこの指定された条件に、例えば前記移動物体の大きさについての条件を含むようにすることにより、動きの速いものを撮影した画像から不要な移動物体を除去することが出来る。
またこの指定された条件は、移動物体の写っているフレーム数についての条件を含むようにすることにより、画像全体を被うようにして写り込んだものも除去することが出来る。
Further, by including, for example, a condition regarding the size of the moving object in the designated condition, an unnecessary moving object can be removed from an image obtained by photographing a fast moving object.
Further, the specified condition includes a condition regarding the number of frames in which the moving object is captured, so that it is possible to remove the captured image so as to cover the entire image.

そして画像処理装置が操作者の指示に基づいて前記指定された条件を決定する条件決定手段を更に備える構成とすることにより、条件決定手段を用いて操作者がこの指定された条件をその撮影環境や目的等に基づいて適宜に設定することが出来る。
また処理対象とする動画像の画像データを記憶する記憶手段と、前記カメラ部から入力される画像データを取得すると共に前記記憶手段に記憶する画像取得手段とを更に備え、前記判定手段は、前記取得手段が前記記憶手段に画像データを記憶すると共に前記記憶手段に記憶された画像データの前記移動物体及びその位置を検出する構成とすることも出来る。これにより、カメラ部からの画像データの記憶と移動物体の除去処理が並列して行なうことが出来る。
The image processing apparatus further includes a condition determining unit that determines the specified condition based on an instruction from the operator, so that the operator uses the condition determining unit to set the specified condition in the shooting environment. It can be appropriately set based on the purpose and the like.
The image processing apparatus further includes a storage unit that stores image data of a moving image to be processed, and an image acquisition unit that acquires the image data input from the camera unit and stores the image data in the storage unit. The acquisition unit may store the image data in the storage unit and detect the moving object and the position of the image data stored in the storage unit. Thereby, the storage of the image data from the camera unit and the removal process of the moving object can be performed in parallel.

前記合成画像生成手段が生成した合成画像を前記記憶手段に記憶し、該記憶した合成画像の元の画像データを前記記憶手段から削除する手段を更に備える構成とすることにより、録画データの記録領域や作業用の記憶領域を無駄に使用することがなくなる。
更に本発明の画像処理装置の第2の実施形態として、異なる距離に焦点を合わせた複数のカメラ部から入力される動画像を構成する画像データを取得し、各カメラ部からの画像データに対して前記判定手段、除去手段及び合成画像生成手段によって、合成画像を生成し、この合成画像を成画像生成手段により合成する構成とすることも出来る。
A recording area for recording data by further comprising means for storing the composite image generated by the composite image generation means in the storage means and deleting the original image data of the stored composite image from the storage means And the working storage area is not wasted.
Furthermore, as a second embodiment of the image processing apparatus of the present invention, image data constituting a moving image input from a plurality of camera units focused on different distances is acquired, and image data from each camera unit is obtained. The determination unit, the removal unit, and the composite image generation unit may generate a composite image, and the composite image generation unit may combine the composite image.

この構成の場合、風景画像等、各撮影対象物までの距離に大きく差がある場合であっても、不要な移動物体を除去した合成画像を生成することが出来る。
また、本発明はカメラ部から入力される動画像に対して加工処理を行なう装置内で実行されるプログラムもその範囲に含む。
In the case of this configuration, even if there is a large difference in the distance to each object to be photographed, such as a landscape image, a composite image from which unnecessary moving objects are removed can be generated.
The present invention also includes within its scope a program that is executed in an apparatus that performs a processing process on a moving image input from the camera unit.

本発明によれば、指定された条件に基づいて移動物体が除去されるので、この条件を適宜に設定することにより、撮影対象や目的、撮影に応じた除去処理行なうことが出来る。   According to the present invention, since the moving object is removed based on the designated condition, the removal process corresponding to the photographing object, the purpose, and the photographing can be performed by appropriately setting this condition.

以下に本発明の1実施形態を図面を参照しながら説明する。
図1は本実施形態における画像処理装置の構成例を示す図である。
同図は、画像を撮影するカメラ内に備えられる構成を示すもので、同図において画像処理装置は、CPU11、RAM12、表示装置13、入力装置14、記憶装置15、通信装置16及びカメラ及びその制御装置17を有する構成となっている。
An embodiment of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram illustrating a configuration example of an image processing apparatus according to the present embodiment.
FIG. 1 shows a configuration provided in a camera that captures an image. In FIG. 1, the image processing device includes a CPU 11, a RAM 12, a display device 13, an input device 14, a storage device 15, a communication device 16, a camera, and its camera. The control device 17 is included.

CPU11は、中央演算処理装置で、このCPU11がプログラム記憶領域151内の制御プログラムを実行することにより、本実施形態の各処理が実現される。RAM12は、CPU11によるワークエリアとなるメモリ領域で、CPU11による実行プログラムが置かれるプログラム実行領域121や実行プログラムを実行する際の作業領域122が設けられる。表示装置13は、画像を表示したりオペレータに種々の情報を示すためのディスプレイやビューファインダ等である。入力装置14は、オペレータが画像処理装置に操作指示を入力する為の操作ボタン等である。記憶装置15は、不揮発性のメモリで制御プログラムを記憶するプログラム記憶領域151や種々のデータを格納しているデータ記憶領域を備える。通信装置16は、撮影画像を装置外部へ出力する等、外部とのデータのやり取りを行なうものである。カメラ及びその制御装置17は、画像の撮影を行なう部分で、撮影画像はデータ記憶領域152は格納される。   The CPU 11 is a central processing unit, and when the CPU 11 executes a control program in the program storage area 151, each process of the present embodiment is realized. The RAM 12 is a memory area serving as a work area for the CPU 11, and is provided with a program execution area 121 where an execution program is executed by the CPU 11 and a work area 122 for executing the execution program. The display device 13 is a display, a viewfinder, or the like for displaying an image or showing various information to an operator. The input device 14 is an operation button or the like for an operator to input an operation instruction to the image processing apparatus. The storage device 15 includes a program storage area 151 that stores a control program in a nonvolatile memory and a data storage area that stores various data. The communication device 16 exchanges data with the outside, such as outputting a captured image to the outside of the device. The camera and its control device 17 are parts for taking images, and the data storage area 152 is stored for the taken images.

尚図1は、画像処理装置をカメラ装置の筐体内部に収める構成の場合であるが、本実施形態の画像処理装置は、このような構成に限らず、カメラ装置とは独立した装置として構成し、カメラ装置と信号ケーブルで接続して撮影画像をリアルタイムで処理したり、或いは後日カメラ装置から撮影画像のデータを受け取って処理する構成としても良い。このような構成の場合、表示装置13や入力装置14はビューファインダや操作ボタン等のカメラ装置と兼用のものではなく、ディスプレイやポインティングデバイス、キーボード等専用のものが備えられる。   FIG. 1 shows a case where the image processing apparatus is housed inside the housing of the camera apparatus. However, the image processing apparatus of the present embodiment is not limited to such a structure, and is configured as an apparatus independent of the camera apparatus. In addition, the captured image may be processed in real time by connecting to the camera device with a signal cable, or the captured image data may be received and processed from the camera device at a later date. In such a configuration, the display device 13 and the input device 14 are not used as camera devices such as a viewfinder and operation buttons, but are provided with dedicated devices such as a display, a pointing device, and a keyboard.

図2は、画像処理装置による処理の流れを示すブロック図である。尚同図中、画像記録処理部22、移動物体除去処理装置24、画像再生処理部25はCPU11がプログラム記憶領域151内の制御プログラムを実行することによって実現されるが、専用のハードウエアによって実現しても良い。   FIG. 2 is a block diagram showing a flow of processing by the image processing apparatus. In the figure, the image recording processing unit 22, the moving object removal processing device 24, and the image reproduction processing unit 25 are realized by the CPU 11 executing the control program in the program storage area 151, but realized by dedicated hardware. You may do it.

カメラ部21は、図1のカメラ及びその制御装置17に対応するもので、このカメラ部21によって撮影された撮影画像が、画像記録処理部22によって画像データ23(録画画像)として記録される。そして、この録画データ23に対して移動物体除去処理部24が予め指定された条件に基づいて除去すべき物体を判定して処理を加えた合成画像を、画像再生処理部25が表示処理装置26上に表示することにより、不要な移動物体が除去された画像が再生される。尚画像記録処理部22、移動物体除去処理装置24及び画像再生処理部25を並列動作させることにより、撮影すると同時に、その撮影画像から移動物体を除去した画像を再生することも出来る。   The camera unit 21 corresponds to the camera of FIG. 1 and its control device 17, and a captured image captured by the camera unit 21 is recorded as image data 23 (recorded image) by the image recording processing unit 22. Then, the image reproduction processing unit 25 displays a composite image in which the moving object removal processing unit 24 determines an object to be removed based on the conditions specified in advance for the recorded data 23 and performs processing. By displaying the image above, an image from which unnecessary moving objects are removed is reproduced. In addition, by operating the image recording processing unit 22, the moving object removal processing device 24, and the image reproduction processing unit 25 in parallel, it is possible to reproduce an image obtained by removing the moving object from the photographed image at the same time as photographing.

次に移動物体除去処理部24によって行なわれる、録画画像から移動物体を除去する除去処理について説明する。
図3は移動物体の除去処理の第1の実施形態の概要を説明する図である。
同図(a)に示すように風景画像31を撮影中に移動物体32が撮影画面上を横切った場合の処理を例にして示す。
Next, a removal process performed by the moving object removal processing unit 24 to remove a moving object from a recorded image will be described.
FIG. 3 is a diagram for explaining the outline of the first embodiment of the moving object removal processing.
As shown in FIG. 5A, an example of processing when the moving object 32 crosses the shooting screen while shooting the landscape image 31 is shown.

この場合において、同図(b)のように画像31−1から撮影を開始すると、カメラ部21は時系列で画像31−1→31−2→31−3・・・の順に撮影画像を録画画像33として記憶、保存する。
次にこの録画画像33から移動物体を除去した合成画像35を生成する。同図(c)に画像31-2に対する処理を例として示す。
In this case, when shooting is started from the image 31-1 as shown in FIG. 5B, the camera unit 21 records the shot images in the order of images 31-1, 31-2, 31-3,. Store and save as image 33.
Next, a composite image 35 is generated by removing the moving object from the recorded image 33. FIG. 3C shows an example of processing for the image 31-2.

録画開始時の画像である画像31−1は、それ以前の録画画像が存在しないのでそのままの合成画像35として保存される。次の画像31−2はそれ以前に録画された画像として画像31−1が有るので、この画像31−1と比較する。この結果、物体32の位置が座標(x0,y0)から(x1,y1)に変化していることが分かり、このことからこれが除去すべき不要な移動物体であると判断する。尚この不要な移動物体かどうかの判断は、位置の移動のみで行なっているのではなく、後述するようにその移動物体の大きさや移動速度等の条件を考慮して判断している。そしてこれらの条件を適宜に設定することにより、目的、撮影対象、撮影条件等に適した除去処理を行なうことが出来る。   The image 31-1 which is an image at the start of recording is stored as the synthesized image 35 as it is because there is no previous recorded image. Since the next image 31-2 has an image 31-1 as an image recorded before that, it is compared with this image 31-1. As a result, it can be seen that the position of the object 32 has changed from the coordinates (x0, y0) to (x1, y1). From this, it is determined that this is an unnecessary moving object to be removed. The determination of whether or not the object is an unnecessary moving object is not performed only by moving the position, but is determined in consideration of conditions such as the size and moving speed of the moving object, as will be described later. Then, by appropriately setting these conditions, it is possible to perform a removal process suitable for the purpose, shooting target, shooting conditions, and the like.

画像31−2での物体32の座標位置は(x1,y1)であるので、画像31−1のその座標位置(x1,y1)の部分から部分抽出画像34を部分抽出する。そして部分抽出画像34を画像31−2の移動物体32の座標位置(x1,y1)に上書き合成する。この画像からは移動物体32は除去されているので、これを合成画像35として保存する。以降同様の処理を画像31−3以降の画像に対しても行なうことによって、合成画像は移動物体32が除去された画像となる。尚移動物体除去処理が完了後に、移動物体除去処理を行なう前のオリジナルである録画画像33を除去することにより、録画データの記録領域や作業用の記憶領域を無駄に使用することがなくなる。また必要に応じて、オリジナルである録画画像33も実写画像としてそのまま保存しておくようにしても良い。   Since the coordinate position of the object 32 in the image 31-2 is (x1, y1), the partial extraction image 34 is partially extracted from the portion of the coordinate position (x1, y1) of the image 31-1. Then, the partially extracted image 34 is overwritten and combined with the coordinate position (x1, y1) of the moving object 32 in the image 31-2. Since the moving object 32 is removed from this image, it is stored as a composite image 35. Thereafter, the same processing is performed on the image after the image 31-3, so that the composite image becomes an image from which the moving object 32 is removed. After the moving object removal process is completed, the recorded image 33 that is the original before the moving object removal process is removed, so that the recording data recording area and the working storage area are not wasted. If necessary, the original recorded image 33 may be stored as it is as a live-action image.

また図3の例では、録画画像33に対して除去処理を行なった合成画像35を予め生成しておき、この合成画像35を再生することによって、移動物体が除去された画像を再生しているが、画像処理装置の処理能力が高い場合には、事前に合成画像を生成しておくのではなく、録画処理と録画画像33に対する直接除去処理を行ないながら同時に画像を再生するようにしても良い。   In the example of FIG. 3, a composite image 35 obtained by performing the removal process on the recorded image 33 is generated in advance, and the composite image 35 is reproduced to reproduce the image from which the moving object is removed. However, when the processing capability of the image processing apparatus is high, a synthesized image may not be generated in advance, but an image may be reproduced simultaneously while performing a recording process and a direct removal process on the recorded image 33. .

図4は移動物体の除去処理の第2の実施形態の概要を説明する図である。
第2の実施形態では、降雪雨時に撮影画像に写り込んだ雨や雪等を除去する。尚本実施形態に用いる画像処理装置は、実際には降雪雨の粒子を撮影できる高感度・高画質・高性能のカメラ部及び画像処理部を必要とする構成となるが、以下の説明では、説明簡略化のため個々の実装技術に関する説明は省略し、基本的な概念のみを説明する。
FIG. 4 is a diagram for explaining the outline of the second embodiment of the moving object removal process.
In the second embodiment, rain, snow, and the like reflected in the photographed image during snowfall are removed. The image processing apparatus used in the present embodiment is configured to require a high-sensitivity, high-image-quality, high-performance camera unit and image processing unit that can actually capture snow and rain particles, but in the following description, For the sake of simplification, description of each mounting technique is omitted, and only a basic concept is described.

以下の説明では、図4(a)に示すように降雪雨がある状態で風景画像を撮影した場合の処理を例にして示す。
風景を撮影する場合、撮影地点から近距離にあるものから遠距離のものまでが撮影対象となり、各撮影対象物までの距離に大きく差がある場合がある。同図(a)の撮影画面41−1には、撮影地点から近距離にある山42a及び降雪雨の粒子43a(同図中太線で示す)、中距離にある山42b及び降雪雨の粒子43b(同図中実線で示す)、遠距離にある山42c及び降雪雨の粒子43c(同図中点線で示す)がある。
In the following description, as shown in FIG. 4A, an example of processing when a landscape image is taken in a state where there is snow and rain is shown.
When shooting a landscape, a subject from a short distance to a long distance from the photographing point is a subject to be photographed, and there may be a large difference in distance to each subject to be photographed. The shooting screen 41-1 in FIG. 4A includes a mountain 42a and snow and rain particles 43a (shown by bold lines in the figure) at a short distance from the shooting point, a mountain 42b and snow and rain particles 43b at a medium distance. (Shown by a solid line in the figure), there is a mountain 42c at a long distance and snow and rain particles 43c (shown by a dotted line in the figure).

第2の実施形態では、異なる距離に焦点を合わせたカメラ部21を降雪雨が認識できる範囲の間隔で複数台設置し、各カメラ部21によって撮影された画像を合成する。本例では、近距離、中距離及び遠距離に焦点距離を合わせた3台のカメラ部21を設置したものとし、それぞれの焦点距離のカメラで撮影されている画像は、図4(b)の近距離画像41a−2、中距離画像41b−2、遠距離画像41c−2のようになる。   In the second embodiment, a plurality of camera units 21 focused at different distances are installed at intervals within a range where snow and rain can be recognized, and images taken by the camera units 21 are combined. In this example, it is assumed that three camera units 21 having a focal length adjusted to a short distance, a middle distance, and a long distance are installed, and images captured by the cameras having the respective focal distances are shown in FIG. The short distance image 41a-2, the middle distance image 41b-2, and the long distance image 41c-2 are obtained.

この画像41a−2、41b−2及び41c−2それぞれに対して、第1の実施形態で示した移動物体の除去処理を行ない画像上に写り込んでいる粒子43a、43b、43cを除去すると同図(c)に示す画像41a−3、41b−3及び41c−3が生成される。これらの画像41a−3、41b−3及び41c−3には、不要な降雪雨の粒子43a、43bが43cが除去され、山42aのみが写っている。   When the moving object removal processing shown in the first embodiment is performed on each of the images 41a-2, 41b-2, and 41c-2, the particles 43a, 43b, and 43c appearing on the image are removed. Images 41a-3, 41b-3, and 41c-3 shown in FIG. In these images 41a-3, 41b-3 and 41c-3, 43c of unnecessary snow and rain particles 43a and 43b are removed, and only the mountain 42a is shown.

この3つの画像41a−3、41b−3及び41c−3を合成して1つの画像41−4とすることにより、降雪雨が除去された画像が生成される。
この合成は、遠距離用カメラ、中距離用カメラ及び近距離用カメラで撮影された画像に対して移動物体除去処理を行なった画像41a−3、41b−3及び41c−3に対して、どのカメラに対応する画像がより鮮明であるか判定し、より鮮明であると判定されたカメラに対応する画像を優先して合成する。またどのカメラに対応する画像がより鮮明であるか判断が出来ない部分は、各カメラの画像を同じ割合で合成して再生用合成画像データを生成して記録する。
By combining these three images 41a-3, 41b-3, and 41c-3 into one image 41-4, an image from which snow and rain has been removed is generated.
This composition is applied to images 41a-3, 41b-3, and 41c-3 obtained by performing moving object removal processing on images taken by a long-distance camera, a middle-distance camera, and a short-distance camera. It is determined whether the image corresponding to the camera is clearer, and the image corresponding to the camera determined to be clearer is preferentially combined. In addition, in a portion where it cannot be determined which image corresponding to which camera is clearer, the images of the respective cameras are synthesized at the same ratio to generate and record the synthesized image data for reproduction.

本実施形態では、撮影画像内の移動物体を除去対象とするか否かの条件を事前に設定し、移動物体除去処理部24は、この設定値に基づいて移動物体除去処理行なう。
図5は、移動物体除去条件登録テーブルの構成例を示す図である。
移動物体除去条件登録テーブルは、記憶装置15のデータ記憶領域152内に構成されるテーブルで除去を行なう移動物体の条件が登録されており、この中から後述する除去条件登録処理で選択された条件に基づいて、移動物体除去処理部24は移動物体除去処理を行なう。
In the present embodiment, a condition as to whether or not a moving object in a captured image is to be removed is set in advance, and the moving object removal processing unit 24 performs a moving object removal process based on this set value.
FIG. 5 is a diagram illustrating a configuration example of the moving object removal condition registration table.
In the moving object removal condition registration table, conditions of moving objects to be removed are registered in a table configured in the data storage area 152 of the storage device 15, and conditions selected in the removal condition registration process described later from among these are registered. Based on the above, the moving object removal processing unit 24 performs a moving object removal process.

同図のテーブルでは、移動物体の除去条件として、画像全体距離に対する1秒間あたりの移動割合を示す速度条件、画面全体サイズにおける占有領域の割合を示すサイズ条件、写っているフレーム数(写っている時間)条件が記憶されている。例えば、条件番号1の除去条件として速度条件が10%以下、サイズ条件が0.5%以下、フレーム数条件は未定義(条件として用いない)となっている。   In the table shown in the figure, as a moving object removal condition, a speed condition indicating a movement rate per second with respect to the entire image distance, a size condition indicating a ratio of the occupied area in the entire screen size, and the number of captured frames (photographed) Time) conditions are stored. For example, as the removal condition of condition number 1, the speed condition is 10% or less, the size condition is 0.5% or less, and the frame number condition is undefined (not used as a condition).

この除去条件として、例えば速度条件を設定することにより、特に風景などの動きの無い(遅い)映像から動く物体を除去することが出来る。例えば人の多い観光地などで記念撮影を行った場合に、除去条件として移動物体の速度を適宜に設定することによりカメラの前を通過する人を写すことなく目的の人物や背景のみを写した合成画像を生成することが出来る。   As this removal condition, for example, by setting a speed condition, it is possible to remove a moving object from a motionless (slow) image such as a landscape. For example, when taking a commemorative photo at a tourist spot with a lot of people, by setting the speed of the moving object appropriately as a removal condition, only the target person and background are copied without copying the person passing in front of the camera A composite image can be generated.

或いはこの除去条件として、例えばサイズ条件を設定することにより、特に動きのある(速い)映像から不必要な物体を除去することができる。例えば、除去条件として、除去する物体のサイズを適宜に設定することにより、スポーツの撮影等撮影対象の動きが大きく、速度では削除対象を規定できない場合にも対処できる。   Alternatively, an unnecessary object can be removed from a moving (fast) image by setting, for example, a size condition as the removal condition. For example, by appropriately setting the size of the object to be removed as the removal condition, it is possible to cope with a case where the movement of the shooting target such as sports shooting is large and the deletion target cannot be defined by the speed.

またはこの除去条件として、例えば写っているフレーム数(写っている時間)条件を設定することにより、画像全体を被うようにしてカメラレンズの前にかばんや通行人の背中が写ってしまったような場合でも、これらを不必要な物体として除去することが出来る。
図6は、移動物体除去処理で除去するための条件を画像処理装置に設定する際の処理を示すフローチャートである。同図の処理はCPU11がRAM12をワークメモリとして、記憶装置15内の制御プログラムを実行することにより実現される。
Or, as this removal condition, for example, by setting the condition of the number of captured frames (captured time), the bag or passerby's back appears in front of the camera lens so as to cover the entire image. Even in this case, these can be removed as unnecessary objects.
FIG. 6 is a flowchart illustrating a process when the conditions for removal in the moving object removal process are set in the image processing apparatus. The processing in FIG. 7 is realized by the CPU 11 executing a control program in the storage device 15 using the RAM 12 as a work memory.

除去条件登録処理が開始されると、まずステップS1として表示装置13上にメニュー表示を行ない、操作者に新たな条件の登録を行なう「新規登録」、登録されている条件を削除する「登録削除」、除去条件登録処理を終了させる「終了」のいずれかを選択させる。   When the removal condition registration process is started, first, a menu is displayed on the display device 13 as step S1, "new registration" for registering a new condition to the operator, and "register deletion" for deleting the registered condition. And “Exit” for ending the removal condition registration process.

ステップS1で、「新規登録」が選択されると、ステップS2として移動物体を除去する条件を操作者に入力させる。この条件としては、例えば、除去対象とする移動物体の速度、サイズ、その物体が写っているコマ数(写っている時間)の下限値/上限値であり、表示装置13上にガイダンスを表示してこれらの値を操作者に入力させる。そしてステップS3としてステップS2で入力された除去条件を図5に示したような移動物体除去条件登録テーブルに新規登録し、処理をステップS1に戻す。   When “new registration” is selected in step S1, the operator is caused to input conditions for removing the moving object in step S2. This condition includes, for example, the speed / size of the moving object to be removed, and the lower limit / upper limit value of the number of frames in which the object is captured (the time during which the object is captured). Guidance is displayed on the display device 13. The operator inputs these values. In step S3, the removal condition input in step S2 is newly registered in the moving object removal condition registration table as shown in FIG. 5, and the process returns to step S1.

またステップS1で、「登録削除」が選択されると、ステップS4として、移動物体除去条件登録テーブルを参照して現在登録されている除去条件を表示装置13上に表示し、操作者に削除する条件番号を指定させる。そして、ステップS5としてステップS4で指定された条件番号の除去条件を移動物体除去条件登録テーブルから削除し、処理をステップS1に戻す。   When “register deletion” is selected in step S1, the removal condition currently registered with reference to the moving object removal condition registration table is displayed on the display device 13 and deleted to the operator in step S4. Specify a condition number. In step S5, the removal condition of the condition number specified in step S4 is deleted from the moving object removal condition registration table, and the process returns to step S1.

そしてステップS1で、「終了」が選択されると、除去条件登録処理を終了する。
次に本実施形態の画像処理装置による画像の録画処理、移動物体除去処理、再生処理時の動作例を示す。
図7は、録画処理、移動物体除去処理、再生処理が開始される前に、画像処理装置のデータ記憶領域152に設定記憶される録画/再生条件設定データを示す図である。
In step S1, when “end” is selected, the removal condition registration process is ended.
Next, an operation example during image recording processing, moving object removal processing, and reproduction processing by the image processing apparatus of the present embodiment will be described.
FIG. 7 is a diagram illustrating recording / playback condition setting data that is set and stored in the data storage area 152 of the image processing apparatus before the recording process, the moving object removal process, and the playback process are started.

録画/再生条件設定データは、録画処理、移動物体除去処理、再生処理における種々の動作設定を行なうデータで、これらの処理を開始する前に操作者によって事前に設定される。
同図では、録画/再生条件設定データには、リアルタイム再生指定、除去前データの保存、除去後データの保存及び除去条件が設定されている。
The recording / playback condition setting data is data for setting various operations in the recording process, the moving object removal process, and the playback process, and is set in advance by the operator before starting these processes.
In the figure, in the recording / playback condition setting data, real-time playback designation, pre-removal data storage, post-removal data storage and removal conditions are set.

リアルタイム再生指定は、録画処理と、再生処理を同時に行なうリアルタイム再生を行なうかどうかの指定であり、ONのときはリアルタイム再生指定を行ないOFFのときは行なわない。リアルタイム再生指定がONのときは、録画と再生のリアルタイム性を優先するので、移動物体除去処理が再生処理に間に合わない場合、移動物体除去処理を施していない画像データを用いて再生を行なう。よって再生のリアルタイム性は保てるが、移動物体の除去は、保証されない。またリアルタイム再生指定がOFFのときは、移動物体除去処理を優先させるので、移動物体除去処理が再生処理に間に合わない場合には、移動物体除去処理が完了するのを待ち、処理が施された画像による再生を行なう。よってこの場合には、再生のリアルタイム性は保証されないが、不要な移動物体が除去された再生画像が出力される。   The real-time playback designation is a designation of whether or not to perform the recording process and the real-time playback simultaneously with the playback process. The real-time playback designation is performed when ON, and is not performed when OFF. When the real-time playback designation is ON, priority is given to real-time recording and playback. Therefore, if the moving object removal process cannot keep up with the playback process, playback is performed using image data that has not been subjected to the moving object removal process. Therefore, real-time reproduction can be maintained, but removal of moving objects is not guaranteed. Also, when the real-time playback designation is OFF, priority is given to the moving object removal process. If the moving object removal process is not in time for the playback process, it waits for the moving object removal process to be completed, and the processed image is processed. Playback by. Therefore, in this case, the real-time reproduction is not guaranteed, but a reproduced image from which unnecessary moving objects are removed is output.

除去前データの保存及び除去後データの保存は、移動物体除去処理を行なった後、移動物体除去処理を行なう前の画像及び行なった後の画像を保存するかどうかの指定で、それぞれONのときは保存を行ない、OFFのときは保存を行なわない。これらがONとなっていると、処理と同時に不要となった画像データが削除されるので、録画データの記録領域や作業用の記憶領域を無駄に使用することがなくなる。   Pre-removal data storage and post-removal data storage are specified by specifying whether to save the image before the moving object removal process and the image after the moving object removal process after the moving object removal process is performed. Saves and does not save when OFF. When these are ON, image data that is no longer needed at the same time as the processing is deleted, so that the recording data recording area and the work storage area are not wasted.

除去条件は、移動物体除去処理で、除去を行なうか否かの判断に用いる条件の指定で、図5に示した条件番号と対応している。
後述する録画処理、移動物体除去処理及び再生処理では、この録画/再生条件設定データの設定値に基づいて処理が行なわれる。
The removal condition is a designation of a condition used for determining whether or not to perform removal in the moving object removal process, and corresponds to the condition number shown in FIG.
In recording processing, moving object removal processing, and playback processing, which will be described later, processing is performed based on the set values of the recording / playback condition setting data.

図8は録画処理における動作処理示すフローチャートである。同図の処理は、画像記録処理部22によって行なわれるもので、CPU11がRAM12をワークメモリとして、記憶装置15内の制御プログラムを実行することにより実現される。また以下の説明では、同図の処理、及び後述する移動物体除去処理と再生処理は、並列動作しているものとする。   FIG. 8 is a flowchart showing the operation process in the recording process. The processing in FIG. 6 is performed by the image recording processing unit 22 and is realized by the CPU 11 executing a control program in the storage device 15 using the RAM 12 as a work memory. Further, in the following description, it is assumed that the processing in the figure and the moving object removal processing and reproduction processing described later are operating in parallel.

録画処理が開始されると、ステップS11として録画カレントフレーム位置を1番目のフレームに初期化する。尚この録画カレントフレーム位置は、現在録画しているフレームを指すポインタである。
初期化処理が終了すると、以降録画処理が終了するまでステップS12〜S15の処理を繰り返して録画処理を行なう(ステップS12、N)。
When the recording process is started, the recording current frame position is initialized to the first frame in step S11. This recording current frame position is a pointer that points to the currently recorded frame.
When the initialization process is completed, the recording process is repeated by repeating the processes of steps S12 to S15 until the recording process is completed (step S12, N).

ステップS13では、カメラ部21から1フレーム分の画像データを読み込み、録画カレントフレーム位置に除去前画像データとしてデータ記憶領域152に記録する。つづいてステップS14として、ステップS13で記憶した画像データに対応させて録画開始からの経過時間(または現在時刻)を記録し、除去済みフラグをOFFに設定する。   In step S13, image data for one frame is read from the camera unit 21, and recorded in the data storage area 152 as pre-removal image data at the recording current frame position. Subsequently, as step S14, the elapsed time (or current time) from the start of recording is recorded corresponding to the image data stored in step S13, and the removed flag is set to OFF.

そして録画カレントフレーム位置を1つ更新し(ステップS15)、処理をステップS12に戻して次のフレームの画像データに対する処理へ移る。
以降録画処理が終了するまでステップS12〜S15の処理を繰り返し、操作者による録画終了の指示動作があったり、カメラ部21から画像データが入力されなくなると(ステップS12、Y)、処理を終了する。
Then, the current recording frame position is updated by one (step S15), and the process returns to step S12 to move to the process for the image data of the next frame.
Thereafter, the processes in steps S12 to S15 are repeated until the recording process is completed. When there is an instruction to end the recording by the operator or no image data is input from the camera unit 21 (step S12, Y), the process ends. .

図9は、移動物体除去処理における動作処理示すフローチャートである。同図の処理は、移動物体除去処理部24によって行なわれるもので、CPU11がRAM12をワークメモリとして、記憶装置15内の制御プログラムを実行することにより実現される。
本処理が開始されると、まず初期化処理として処理対象となるフレームをポイントする除去カレントフレーム位置を一番目の(処理を行なう画像の時系列で一番最初の)フレームセットにする(ステップS21)。以降除去処理終了となるまでステップS22〜S35の処理を行なう(ステップS22、N)。
FIG. 9 is a flowchart showing an operation process in the moving object removal process. The processing in FIG. 4 is performed by the moving object removal processing unit 24, and is realized by the CPU 11 executing a control program in the storage device 15 using the RAM 12 as a work memory.
When this processing is started, first, as an initialization process, the removal current frame position that points to the processing target frame is set to the first (first in time series of images to be processed) frame set (step S21). ). Thereafter, the processing of steps S22 to S35 is performed until the removal processing is completed (step S22, N).

ステップS23において、除去カレントフレーム位置がポイントしているフレームの前後の位置のフレームの画像データがデータ記憶領域152内にあるかどうか判断し、無ければ(ステップS23、N)ステップS24として待ち処理を行ない、録画処理によってその画像データが記録されるのを待つ。   In step S23, it is determined whether or not the image data of the frame at the position before and after the frame pointed to by the removal current frame position is in the data storage area 152. If not (step S23, N), a waiting process is performed as step S24. And wait for the image data to be recorded by the recording process.

ステップS23で前後位置に画像データがあれば(ステップS23、Y)、ステップS23として除去カレントフレーム位置の画像データは、移動物体が除去済みかどうかを判断する。この判断は、その画像データと関連付けて記憶されている除去済みフラグを参照する子によって行なわれる。そして除去済みと判断したならば(ステップS25、Y)、処理をステップS36に移して次のフレームに対する処理に移る。   If there is image data at the front and rear positions in step S23 (step S23, Y), it is determined in step S23 whether the moving object has been removed from the image data at the removal current frame position. This determination is made by a child that refers to the removed flag stored in association with the image data. If it is determined that it has been removed (step S25, Y), the process proceeds to step S36, and the process for the next frame is performed.

ステップS25で除去済みフラグから除去カレントフレーム位置の画像データは除去済みで無いと判断したならば(ステップS25、N)、ステップS26として除去カレントフレーム位置の画像データを時間的に前後の画像データと比較し、画像データが同じ方向に同じドット数だけずれている領域部分を全て抽出する。   If it is determined in step S25 that the image data at the removed current frame position has not been removed from the removed flag (step S25, N), the image data at the removed current frame position is replaced with temporally preceding and succeeding image data as step S26. By comparison, all the region portions where the image data is shifted by the same number of dots in the same direction are extracted.

そしてステップS27として、ステップS26で抽出した領域の中で未判定の領域があるかどうかを判定し、未判定の領域があれば(ステップS27、Y)、ステップS28として未判定の領域部分を1つ選択し、その領域部分の画像データ全体の面積に対するサイズの割合と画像データ全体の距離に対する移動速度割合を算出する。そして移動物除去条件登録テーブルを参照し、これらと録画再生条件設定データに設定されている条件番号の各条件とを比較する。   In step S27, it is determined whether or not there is an undetermined area among the areas extracted in step S26. If there is an undetermined area (step S27, Y), an undetermined area portion is set as 1 in step S28. The ratio of the size of the area portion to the entire area of the image data and the movement speed ratio to the distance of the entire image data are calculated. Then, referring to the moving object removal condition registration table, these are compared with each condition of the condition number set in the recording / playback condition setting data.

そして一致する条件あれば(ステップS29、Y)、ステップS30として画像データの選択されている領域部分を消去した後、また一致する条件がなければ(ステップS29、N)消去を行なわずに、処理をステップS27に戻す。
全ての領域に対して処理を行ない、未判定の領域が無くなれば(ステップS27、N)、次にステップS31として、ステップS30で消去を行なったものの内、未補間の領域部分があるかどうかを判断する。そして未補間の領域部分があれば(ステップS31、Y)、ステップS32として消去された領域部分を補間可能な他の画像データを、除去カレントフレーム位置に時間的に近いものから順に検索して探す。そして補間可能な画像データがあれば、補間可能な領域部分をコピーして除去カレントフレーム位置の画像データに合成し(ステップS33)、処理をステップS31に戻す。
If there is a matching condition (step S29, Y), the selected area portion of the image data is erased as step S30. If there is no matching condition (step S29, N), the process is performed without erasing. Is returned to step S27.
If all the areas are processed and there is no undetermined area (step S27, N), then, as step S31, it is determined whether or not there is an uninterpolated area portion among those erased in step S30. to decide. If there is an uninterpolated area portion (step S31, Y), search for other image data that can interpolate the erased area portion in step S32, starting from the one closest in time to the removal current frame position. . If there is interpolable image data, the interpolable area portion is copied and combined with the image data at the removed current frame position (step S33), and the process returns to step S31.

ステップS30で消去を行なった全ての領域に対する補間処理を行ない、ステップS31で未補間の領域部分が無いと判断されると(ステップS31、N)、ステップS34として録画/再生条件設定データの設定値を調べ、除去前の保存指定が無ければ(ステップS35、N)、ステップS36として除去カレントフレーム位置の除去前画像データを消去後、保存指定があれば消去を行なわずにそのまま処理をステップS36に移す。   Interpolation processing is performed for all areas erased in step S30. If it is determined in step S31 that there is no uninterpolated area (step S31, N), the setting value of the recording / playback condition setting data is set as step S34. If there is no save designation before removal (step S35, N), after deleting the pre-removal image data at the removal current frame position as step S36, if there is a save designation, the process proceeds to step S36 without being erased. Transfer.

ステップS36では除去カレントフレーム位置を1つ更新後処理をステップS22に戻して次のフレームに対する処理を行なう。そしてステップS22で全てのフレームに対して処理を行ない除去処理を終了すると判断すると(ステップS22、Y)、本処理を終了する。   In step S36, the post-update process for one removal current frame position is returned to step S22, and the process for the next frame is performed. If it is determined in step S22 that all the frames are processed and the removal process is finished (step S22, Y), this process is finished.

図10は、図4によって説明した第2の実施形態の移動物体の除去処理を行なった場合の移動物体除去処理における動作処理示すフローチャートである。
同図に示す処理例は、近距離撮影用、中距離撮影用及び遠距離撮影用の3つのカメラ部21を用いて撮影した場合を例として説明する。
FIG. 10 is a flowchart illustrating an operation process in the moving object removal process when the moving object removal process according to the second embodiment described with reference to FIG. 4 is performed.
The processing example shown in the figure will be described by taking as an example a case of shooting using three camera units 21 for short-distance shooting, medium-distance shooting, and long-distance shooting.

本処理が開始されると、ステップS41として近距離撮影用のカメラ部21による画像データに対して図9に示した移動物体除去処理を行ない、ステップS42として中距離撮影用のカメラ部21による画像データに対して図9に示した移動物体除去処理を行ない、ステップS43として遠距離撮影用のカメラ部21による画像データに対して図9に示した移動物体除去処理を行なう。このステップS41、S42、S43の処理は並列して行なっても良い。   When this process is started, the moving object removal process shown in FIG. 9 is performed on the image data obtained by the short-distance shooting camera unit 21 as step S41, and the image obtained by the middle-distance shooting camera unit 21 is obtained as step S42. The moving object removal process shown in FIG. 9 is performed on the data, and the moving object removal process shown in FIG. 9 is performed on the image data from the long-distance shooting camera unit 21 in step S43. The processes in steps S41, S42, and S43 may be performed in parallel.

そしてステップS44として、ステップS41、S42、S43で移動物体が除去された近距離、中距離、遠距離のカメラ部21による撮影画像の合成画像から、より鮮明に写された部分を抽出し新たな画像を合成を行なった後処理を終了する。
図11は、録画処理及び移動物体除去処理で記憶装置15に記憶される録画データ23の構成例である。
Then, as step S44, a portion that has been captured more clearly is extracted from the composite image of the images captured by the short-distance, medium-distance, and long-distance camera units 21 from which the moving object has been removed in steps S41, S42, and S43. After the images are combined, the processing is terminated.
FIG. 11 is a configuration example of the recording data 23 stored in the storage device 15 in the recording process and the moving object removal process.

同図において、除去前画像データが図3の録画画像33に対応し、除去後画像データが合成画像35に対応する。
同図において、除去前画像データはフレーム単位で時系列順にフレーム番号が付されて記憶されており、またそのフレームの全画像内での時間的位置が経過時間として記憶されている。
In the figure, the image data before removal corresponds to the recorded image 33 in FIG. 3, and the image data after removal corresponds to the composite image 35.
In the drawing, the pre-removal image data is stored with frame numbers assigned in time series in frame units, and the temporal position of all the frames in the image is stored as the elapsed time.

また除去前画像データには、移動物体除去処理によって加工処理が行なわれたかどうかを示す除去済みフラグが関連付けられて記憶されている。そしてこの除去済みフラグがONのときは、そのフレームの画像データに対して加工処理が行なわれており、加工後後の移動物体が除去された画像データが除去後画像データとして除去前画像データと関連付けて記憶されている。例えばフレーム番号58に関連付けられて、その画像が撮影された映像内での先頭からの経過時間"00:00:01:56"、除去前の画像データ57A、除去後の画像データ57B、除去済みフラグ(OFF)が記憶されている。   The pre-removal image data is associated with a removed flag that indicates whether or not the processing process has been performed by the moving object removal process. When the removed flag is ON, the image data of the frame is processed, and the image data from which the moving object after processing is removed is the image data before removal as post-removal image data. It is stored in association. For example, in relation to the frame number 58, the elapsed time “00: 00: 01: 56” from the beginning in the video in which the image was taken, the image data 57A before removal, the image data 57B after removal, and the removal completed A flag (OFF) is stored.

録画カレントフレーム位置、除去カレントフレーム位置及び後述する再生カレントフレーム位置は、この録画データ23のフレーム番号に基づいて画像データをポイントし、録画カレントフレーム位置が現在録画を行なっているフレームの位置、除去カレントフレーム位置は、移動物体除去処理で処理対象となっているフレームの位置、及び再生カレントフレーム位置は、再生処理において読み込むフレームの位置をポイントしている。   The recording current frame position, the removal current frame position, and the reproduction current frame position to be described later point to the image data based on the frame number of the recording data 23, and the recording current frame position is the position of the frame where the current recording is performed, the removal The current frame position points to the position of the frame to be processed in the moving object removal process, and the reproduction current frame position points to the position of the frame read in the reproduction process.

図12は、図4によって説明した第2の実施形態の移動物体の除去処理を行なった場合の、録画処理及び移動物体除去処理で記憶装置15に記憶される録画データ23の構成例である。
第2の実施形態では複数のカメラ部21によって撮影した画像を用いる為、録画データ23は各カメラ部21によって撮影された画像がフレーム番号によって関連付けられて記憶されている。図12の例では、同時刻の、遠距離撮影用カメラ部21による画像データ、中距離撮影用カメラ部21による画像データ及び近距離撮影用のカメラ部21による画像データがその移動物体除去処理による画像データおよび除去済みフラグ(不図示)と共に時系列にフレーム番号を付して記憶されている。
FIG. 12 is a configuration example of the recording data 23 stored in the storage device 15 in the recording process and the moving object removal process when the moving object removal process according to the second embodiment described with reference to FIG. 4 is performed.
In the second embodiment, since images taken by a plurality of camera units 21 are used, the recorded data 23 is stored with images taken by the respective camera units 21 associated with each other by frame numbers. In the example of FIG. 12, image data from the long-distance shooting camera unit 21, image data from the middle-distance shooting camera unit 21, and image data from the short-distance shooting camera unit 21 at the same time are obtained by the moving object removal process. Along with image data and a removed flag (not shown), a frame number is added in time series and stored.

第2の実施形態では、これら各カメラ部21による画像を更に合成して再生用の画像データを生成する。
図13は、再生処理時の画像処理装置における動作処理を示すフローチャートである。同図の処理は、画像再生処理部25によって行なわれるもので、CPU11がRAM12をワークメモリとして、記憶装置15内の制御プログラムを実行することにより実現される。
In the second embodiment, the images from these camera units 21 are further combined to generate image data for reproduction.
FIG. 13 is a flowchart showing an operation process in the image processing apparatus during the reproduction process. The processing in FIG. 4 is performed by the image reproduction processing unit 25, and is realized by the CPU 11 executing a control program in the storage device 15 using the RAM 12 as a work memory.

本処理が開始されると、まず初期化処理として再生処理の対象となるフレームをポイントする再生カレントフレーム位置を一番目の(処理を行なう画像の時系列で一番最初の)フレームセットにする(ステップS51)。以降再生処理が終了となるまでステップS52〜S62の再生処理を行なう(ステップS52、N)。   When this process is started, the playback current frame position that points to the frame that is the target of the playback process as the initialization process is set to the first (first in the time series of images to be processed) frame set ( Step S51). Thereafter, the reproduction process of steps S52 to S62 is performed until the reproduction process is completed (step S52, N).

そして再生処理としてステップS53では、再生カレントフレームの位置のフレームの画像データがあるかどうか判断する。そしてそのフレームの画像データに対する録画処理若しくは移動物体除去処理が完了しておらず、画像データが無ければ(ステップS53、N)、ステップS54として処理が完了するよう特定時間待ち処理を行なった後処理をステップS53に戻す。   In step S53 as a reproduction process, it is determined whether there is image data of a frame at the position of the reproduction current frame. If the recording process or moving object removal process for the image data of the frame is not completed and there is no image data (step S53, N), a post-process that performs a specific time waiting process to complete the process as step S54 Is returned to step S53.

ステップS53で、再生カレントフレームの位置のフレームの画像データがあれば(ステップS53、Y)、ステップS55として除去済みフラグを調べ、その画像データが移動物体除去処理によって移動物体が除去済みかどうかを判断する。そして、除去済みであれば(ステップS55、Y)、ステップS58として再生カレント位置の除去後の画像データを読み込む。また除去済みでなければ(ステップS55、N)、ステップS56として録画/再生条件設定データを調べ、リアル再生指定がONに設定されていれなければ(ステップS56、N)、移動物体除去処理による再生カレントフレームに対する処理が完了するようにステップS59として待ち処理を行なった後、ステップS55に処理を戻す。またステップS56でリアル再生指定がONに設定されていれば(ステップS56、Y)、ステップS56として再生カレントフレーム位置の除去処理を行なっていない画像データを読み込む。そして、ステップS60として、ステップS57若しくはS58で読み込んだ画像データを表示装置に表示して画像の再生を行なう。   If there is image data of the frame at the position of the reproduction current frame in step S53 (step S53, Y), the removal flag is checked in step S55, and whether or not the moving object has been removed by the moving object removal processing is checked in the image data. to decide. If it has been removed (step S55, Y), the image data after removal of the reproduction current position is read in step S58. If it has not been removed (step S55, N), the recording / playback condition setting data is checked as step S56. If the real playback designation is not set to ON (step S56, N), playback by moving object removal processing is performed. A wait process is performed in step S59 so that the process for the current frame is completed, and then the process returns to step S55. If the real reproduction designation is set to ON in step S56 (step S56, Y), image data that has not been subjected to the reproduction current frame position removal process is read in step S56. In step S60, the image data read in step S57 or S58 is displayed on the display device to reproduce the image.

次にステップS61として録画/再生条件設定データを調べ除去後データの保存指定があるかどうかを調べ、OFFとなっていたら(ステップS61、N)、保存を行なわないのでステップS62として再生カレントフレームの位置の除去後画像データを消去する。またステップS61で録画/再生条件設定データが保存指定を行なう設定となっていたら除去後画像データは保存されるので削除処理を行なわずに、処理をステップS63に移す。   Next, in step S61, the recording / playback condition setting data is checked to determine whether there is a data storage designation after removal, and if it is OFF (step S61, N), the storage current is not saved. Erase the image data after removing the position. If the recording / playback condition setting data is set to specify storage in step S61, the image data after removal is stored, so the process proceeds to step S63 without performing the deletion process.

ステップS63では再生カレントフレーム位置を1つ更新して処理をステップS52に移して、次のフレームに対する処理に移る。そして全てのフレームに対する処理完了したり、操作者から再生処理終了を指示する操作入力があると(ステップS52、Y)、本処理は終了する。   In step S63, the reproduction current frame position is updated by one, the process proceeds to step S52, and the process for the next frame is performed. When the processing for all the frames is completed or when there is an operation input for instructing the end of the reproduction processing from the operator (step S52, Y), this processing ends.

このように本実施形態の画像処理装置では、風景などの録画時に、人や自動車など録画したくない物体がカメラのフレーム内に入り込んでも、画像にその物体が写り込んで位階画像を得ることができる。
また指定された条件に基づいて移動物体を除去するので、例えば風景など動きの無い(遅い)映像から大きく遅い物体を除去したり、スポーツなどの動きのある映像から小さい物体を除去したり、撮影対象や目的に応じて余計な物体を除去した画像を容易に得ることが出来る。
As described above, in the image processing apparatus according to the present embodiment, when recording a landscape or the like, even if an object such as a person or a car that is not to be recorded enters the frame of the camera, the object is reflected in the image and a rank image can be obtained. it can.
Also, moving objects are removed based on specified conditions. For example, large and slow objects can be removed from motionless (slow) images such as landscapes, small objects can be removed from moving images such as sports, and photography. It is possible to easily obtain an image from which unnecessary objects are removed according to the object and purpose.

更に、本装置による画像を、展望台や展望階のスクリーンに映像として出力したり、展望鏡に出力したりすれば、降雪雨時でも視界を向上させられるので、降雪雨時の来客数の減りを抑え、ひいては収益の減少も抑えられる可能性がある。
尚上記例では、撮影画像をフレーム単位の画像データとして扱い、また記憶していたが、圧縮データとして扱ったり記憶する構成としても良い。またその際、映像を構成する各画像データは、変化があった部分だけを差分としてもつ差分データとして処理しても良い。
In addition, if the image from this device is output as an image on the observation deck or the screen of the observation floor, or output to the observation mirror, visibility can be improved even during snowfall, so the number of visitors during snowfall is reduced. And, in turn, may reduce revenue decline.
In the above example, the captured image is handled and stored as image data in units of frames. However, a configuration may be used in which the captured image is handled and stored as compressed data. At this time, each image data constituting the video may be processed as difference data having only a changed portion as a difference.

本実施形態における画像処理装置の構成例を示す図である。It is a figure which shows the structural example of the image processing apparatus in this embodiment. 画像処理装置による処理の流れを示す機能ブロック図である。It is a functional block diagram which shows the flow of a process by an image processing apparatus. 移動物体の除去処理の第1の実施形態の概要を説明する図である。It is a figure explaining the outline | summary of 1st Embodiment of the removal process of a moving object. 移動物体の除去処理の第2の実施形態の概要を説明する図である。It is a figure explaining the outline | summary of 2nd Embodiment of the removal process of a moving object. 移動物体除去条件登録テーブルの構成例を示す図である。It is a figure which shows the structural example of a moving object removal condition registration table. 移動物体除去処理で除去するための条件を画像処理装置に設定する際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of setting the conditions for removing by a moving object removal process to an image processing apparatus. 録画/再生条件設定データを示す図である。It is a figure which shows recording / playback condition setting data. 録画処理における動作処理示すフローチャートである。It is a flowchart which shows the operation | movement process in a video recording process. 移動物体除去処理における動作処理示すフローチャートである。It is a flowchart which shows the operation | movement process in a moving object removal process. 第2の実施形態における移動物体除去処理における動作処理示すフローチャートである。It is a flowchart which shows the operation | movement process in the moving object removal process in 2nd Embodiment. 録画データの構成例を示す図である。It is a figure which shows the structural example of video recording data. 第2の実施形態の移動物体の除去処理を行なった場合の録画データの構成例を示す図である。It is a figure which shows the structural example of the video recording data at the time of performing the removal process of the moving object of 2nd Embodiment. 再生処理時の画像処理装置における動作処理を示すフローチャートである。It is a flowchart which shows the operation | movement process in the image processing apparatus at the time of reproduction | regeneration processing.

符号の説明Explanation of symbols

11 CPU
12 RAM
13 表示装置
14 入力装置
15 記憶装置
16 通信装置
17 カメラ&制御部
121 プログラム実行領域
122 作業領域
151 プログラム記憶領域
152 データ記憶領域
21 カメラ部
22 画像記録処理部
23 画像データ
24 移動物体除去処理部
25 画像データ再生処理部
26 表示処理部

11 CPU
12 RAM
DESCRIPTION OF SYMBOLS 13 Display apparatus 14 Input apparatus 15 Storage apparatus 16 Communication apparatus 17 Camera & control part 121 Program execution area 122 Work area 151 Program storage area 152 Data storage area 21 Camera part 22 Image recording process part 23 Image data 24 Moving object removal process part 25 Image data reproduction processing unit 26 Display processing unit

Claims (14)

動画像に対して加工処理を行なう画像処理装置において
前記動画像を構成する画像データと、当該画像データと時系列的に近い、前記動画像内の画像データとを比較して移動物体及びその位置を検出し、該検出した移動物体を除去すべきか否かを指定された条件に基づいて判定する判定手段と、
前記判定手段が除去すべきと判定した移動物体の存在する画像データから該移動物体に対応する領域部分を除去する除去手段と、
前記除去手段が移動物体に対応する領域部分を除去した画像データと時系列的に近い画像データを用いて、前記除去手段が除去した領域部分に対して補間を行ない、前記移動物体の写っていない合成画像を生成する合成画像生成手段と
を備える画像処理装置。
In an image processing apparatus that performs processing on a moving image, the moving object and its position are compared by comparing the image data constituting the moving image with the image data in the moving image that is close in time series to the image data. Determining means for determining whether or not to remove the detected moving object based on a designated condition;
Removing means for removing a region portion corresponding to the moving object from the image data of the moving object determined to be removed by the determining means;
The removal means performs interpolation on the area portion removed by the removal means using image data that is close in time series to the image data from which the area corresponding to the moving object is removed, and the moving object is not captured. An image processing apparatus comprising: composite image generation means for generating a composite image.
処理対象とする動画像の画像データを記憶する記憶手段を更に備え、前記判定手段は、前記記憶手段に記憶されている画像データの前記移動物体及びその位置を検出することを特徴とする請求項1に記載の画像処理装置。   The storage means for storing image data of a moving image to be processed is further provided, and the determination means detects the moving object and the position of the image data stored in the storage means. The image processing apparatus according to 1. 処理対象とする動画像の画像データを記憶する記憶手段と、前記カメラ部から入力される画像データを取得すると共に前記記憶手段に記憶する画像取得手段とを更に備え、前記判定手段は、前記取得手段が前記記憶手段に画像データを記憶すると共に前記記憶手段に記憶された画像データの前記移動物体及びその位置を検出することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus further includes a storage unit that stores image data of a moving image to be processed, and an image acquisition unit that acquires the image data input from the camera unit and stores the image data in the storage unit. 2. The image processing apparatus according to claim 1, wherein means stores image data in the storage means and detects the moving object and the position of the image data stored in the storage means. 前記合成画像生成手段が生成した合成画像を前記記憶手段に記憶すると同時に、該記憶した合成画像の元の画像データを前記記憶手段から削除する手段を更に備えることを特徴とする請求項2又は3に記載の画像処理装置。   4. The apparatus according to claim 2, further comprising means for deleting the original image data of the stored composite image from the storage means simultaneously with storing the composite image generated by the composite image generation means in the storage means. An image processing apparatus according to 1. 前記画像取得手段による画像データの取得と並列して、前記合成画像生成手段が生成した合成画像に基づく動画像の再生を行なう再生手段を更に備えることを特徴とする請求項2乃至4のいずれか1項に記載の画像処理装置。   5. The reproduction apparatus according to claim 2, further comprising a reproduction unit configured to reproduce a moving image based on the composite image generated by the composite image generation unit in parallel with the acquisition of the image data by the image acquisition unit. The image processing apparatus according to item 1. 前記判定手段、除去手段及び合成画像生成手段は、前記画像取得手段及び前記再生手段と並列動作することを特徴とする請求項5に記載の画像処理装置。   The image processing apparatus according to claim 5, wherein the determination unit, the removal unit, and the composite image generation unit operate in parallel with the image acquisition unit and the reproduction unit. 操作者の指示に基づいて前記指定された条件を決定する条件決定手段を更に備えることを特徴とする請求項1乃至6のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a condition determining unit that determines the specified condition based on an instruction from an operator. 前記指定された条件は、前記移動物体の速度についての条件を含むことを特徴とする請求項1乃至7のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specified condition includes a condition regarding a speed of the moving object. 前記指定された条件は、前記移動物体の大きさについての条件を含むことを特徴とする請求項1乃至8のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specified condition includes a condition regarding a size of the moving object. 前記指定された条件は、前記移動物体の写っているフレーム数についての条件を含むことを特徴とする請求項1乃至9のいずれか1つに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specified condition includes a condition regarding the number of frames in which the moving object is captured. 異なる距離に焦点を合わせた複数のカメラ部から入力される動画像を構成する画像データを取得する画像取得手段と、
前記複数のカメラ部それぞれから取得した画像データに対して、時系列的に近い画像データを比較して移動物体及びその位置を検出し、該検出した移動物体を除去すべきか否かを指定された条件に基づいて判定する判定手段と、
前記判定手段が除去すべきと判定した移動物体の存在する画像データから該移動物体に対応する領域部分を除去する除去手段と、
該画像データと時系列的に近い画像データを用いて、前記除去手段が除去した領域部分に対して補間を行ない、前記移動物体の写っていない合成画像を生成する合成画像生成手段と、
前記合成画像生成手段から、前記複数のカメラ部それぞれに対応して得られた前記合成画像を合成する合成手段と
を備える画像処理装置。
Image acquisition means for acquiring image data constituting moving images input from a plurality of camera units focused on different distances;
The image data acquired from each of the plurality of camera units is compared with time-sequential image data to detect a moving object and its position, and whether or not the detected moving object should be removed is specified. Determining means for determining based on conditions;
Removing means for removing a region portion corresponding to the moving object from the image data of the moving object determined to be removed by the determining means;
Using the image data that is close in time series to the image data, interpolating the area removed by the removing means, and generating a composite image in which the moving object is not shown;
An image processing apparatus comprising: a synthesis unit configured to synthesize the synthesized image obtained from the synthesized image generation unit corresponding to each of the plurality of camera units.
前記合成手段は、前記複数のカメラ部それぞれに対応して得られた前記合成画像の中でより鮮明である合成画像を優先して合成することを特徴とする請求項11に記載の画像処理装置。   12. The image processing apparatus according to claim 11, wherein the synthesizing unit preferentially synthesizes a clearer synthesized image among the synthesized images obtained corresponding to each of the plurality of camera units. . 動画像に対して加工処理を行なう装置内で実行されるプログラムであって、
前記動画像を構成する画像データと、当該画像データと時系列的に近い、前記動画像内の画像データとを比較して移動物体及びその位置を検出し、該検出した移動物体を除去すべきか否かを指定された条件に基づいて判定する機能と、
除去すべきと判定した移動物体の存在する画像データから該移動物体に対応する領域部分を除去する機能と、
前記移動物体に対応する領域部分を除去した画像データと時系列的に近い画像データを用いて、前記除去手段が除去した領域部分に対して補間を行ない、前記移動物体の写っていない画像データを生成する機能と
を実現するプログラム。
A program that is executed in a device that performs processing on a moving image,
Whether the moving object and its position should be detected by comparing the image data constituting the moving image with the image data in the moving image that is close to the image data in time series, and whether the detected moving object should be removed A function of determining whether or not based on a specified condition;
A function of removing a region corresponding to a moving object from image data of the moving object determined to be removed;
Using image data that is time-sequentially similar to image data from which the region corresponding to the moving object is removed, interpolation is performed on the region that has been removed by the removing means, and image data that does not include the moving object is obtained. A program that realizes the functions to be generated.
動画像に対して加工処理を行なう装置内で実行されるプログラムであって、
異なる距離に焦点を合わせた複数のカメラ部から入力される動画像を構成する画像データを取得する機能と、
前記複数のカメラ部それぞれから取得した画像データに対して、時系列的に近い画像データを比較して移動物体及びその位置を検出し、該検出した移動物体を除去すべきか否かを指定された条件に基づいて判定する機能と、
前記除去すべきと判定した移動物体の存在する画像データから該移動物体に対応する領域部分を除去する機能と、
該画像データと時系列的に近い画像データを用いて、前記除去した領域部分に対して補間を行ない、前記移動物体の写っていない合成画像を生成する機能と、
前記複数のカメラ部それぞれに対応して得られた前記合成画像を合成する機能と
を実現するプログラム。


A program that is executed in a device that performs processing on a moving image,
A function of acquiring image data constituting moving images input from a plurality of camera units focused on different distances;
The image data acquired from each of the plurality of camera units is compared with time-sequential image data to detect a moving object and its position, and whether or not the detected moving object should be removed is specified. A function to determine based on conditions;
A function of removing a region portion corresponding to the moving object from the image data of the moving object determined to be removed;
A function of performing interpolation on the removed region portion using image data close in time series to the image data, and generating a composite image in which the moving object is not captured;
A program for realizing a function of combining the composite images obtained corresponding to each of the plurality of camera units.


JP2003337454A 2003-09-29 2003-09-29 Image processor and program Withdrawn JP2005109647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003337454A JP2005109647A (en) 2003-09-29 2003-09-29 Image processor and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003337454A JP2005109647A (en) 2003-09-29 2003-09-29 Image processor and program

Publications (1)

Publication Number Publication Date
JP2005109647A true JP2005109647A (en) 2005-04-21

Family

ID=34533271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003337454A Withdrawn JP2005109647A (en) 2003-09-29 2003-09-29 Image processor and program

Country Status (1)

Country Link
JP (1) JP2005109647A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271513A (en) * 2008-04-30 2009-11-19 Samsung Electronics Co Ltd Robot and method of building map therefor
CN103440626A (en) * 2013-08-16 2013-12-11 北京智谷睿拓技术服务有限公司 Lighting method and lighting system
KR102061867B1 (en) 2018-09-10 2020-01-02 한성욱 Apparatus for generating image and method thereof
JP7310831B2 (en) 2018-05-30 2023-07-19 ソニーグループ株式会社 Control device, control method, robot device, program and non-transitory machine-readable medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271513A (en) * 2008-04-30 2009-11-19 Samsung Electronics Co Ltd Robot and method of building map therefor
CN103440626A (en) * 2013-08-16 2013-12-11 北京智谷睿拓技术服务有限公司 Lighting method and lighting system
JP7310831B2 (en) 2018-05-30 2023-07-19 ソニーグループ株式会社 Control device, control method, robot device, program and non-transitory machine-readable medium
US11803189B2 (en) 2018-05-30 2023-10-31 Sony Corporation Control apparatus, control method, robot apparatus and program
KR102061867B1 (en) 2018-09-10 2020-01-02 한성욱 Apparatus for generating image and method thereof

Similar Documents

Publication Publication Date Title
JP4980779B2 (en) Imaging apparatus, method and program
CN101656836B (en) Camera and image composition method
JP2007074031A (en) Imaging device, and image processing apparatus and method therefor
JPH114398A (en) Digital wide camera
JP4965475B2 (en) Virtual moving display device
JP2011217065A (en) Imager, imaging method, and program
US8767096B2 (en) Image processing method and apparatus
JP4639965B2 (en) Imaging apparatus, image processing method, and program
JP2011049952A (en) Image generating apparatus and electronic camera
JP4905144B2 (en) Image composition apparatus, image composition program, and image composition method
JP4640032B2 (en) Image composition apparatus, image composition method, and program
JP2009272835A (en) Imaging apparatus and control method thereof, and program
JP6056551B2 (en) Image processing program and digital camera
JP2006098250A (en) Car navigation system
JP2003179798A (en) Digital camera
JP2009089220A (en) Imaging apparatus
JP2005109647A (en) Image processor and program
CN102209199B (en) Imaging apparatus
JP4001233B2 (en) Panorama shooting method and image processing apparatus and image pickup apparatus capable of using the method
JP5479149B2 (en) Image generation device
JP2004312218A (en) Digital camera and image reproducing apparatus
JPH06133221A (en) Image pickup device
JP2004088678A (en) Image processing method and apparatus
JP2013017141A (en) Image reproduction device
JP2005184095A (en) Imaging apparatus, moving picture photographing method, and photography control program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20061205