JP2001111804A - Image converter and image conversion method - Google Patents

Image converter and image conversion method

Info

Publication number
JP2001111804A
JP2001111804A JP28239599A JP28239599A JP2001111804A JP 2001111804 A JP2001111804 A JP 2001111804A JP 28239599 A JP28239599 A JP 28239599A JP 28239599 A JP28239599 A JP 28239599A JP 2001111804 A JP2001111804 A JP 2001111804A
Authority
JP
Japan
Prior art keywords
image
interest
pixels
generating
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28239599A
Other languages
Japanese (ja)
Inventor
Takeshi Dousaka
毅 道坂
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.)
Nippon Columbia Co Ltd
Original Assignee
Nippon Columbia 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 Nippon Columbia Co Ltd filed Critical Nippon Columbia Co Ltd
Priority to JP28239599A priority Critical patent/JP2001111804A/en
Publication of JP2001111804A publication Critical patent/JP2001111804A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve a problem of a conventional image converter that has required much time and labor to generate a mask image and a background image by analogizing an image behind an object of interest based on the object of interest of one original image. SOLUTION: The image converter that generates a converted image resulting from changing a view point and a noticed point of a two-dimensional original image is provided with an area setting means that sets an area surrounding area of the object of interest in the original image, a mask image generating means that generates the mask image by setting a white level to pixels in the area surrounding the object of interest of the original image and setting a black level to pixels at the outside of the area surrounding the object of interest, a background image generating means that multiplies a predetermined coefficient (k) less than the unity with values of pixels of the original image within the area surrounding the object of interest to obtain pixels behind the object of interest and uses the pixels at the outside of the area surrounding the object of interest for the pixels of the original image and a converted image generating means that uses the mask image and the background image to generate the converted image resulting from changing the view point and the point of interest of the original image.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、2次元の元画像を
元に任意の視点から見た画像に変換する画像変換装置及
び画像変換方法及び画像変換プログラムが記録された記
録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image conversion device, an image conversion method, and a recording medium on which an image conversion program is recorded for converting a two-dimensional original image into an image viewed from any viewpoint.

【0002】[0002]

【従来の技術】従来、コンピュータグラフィックスの分
野において、2次元平面上に遠近感を有する図形を描く
方法として透視画法が用いられている。透視画法は、そ
の画像の中心位置となる消失点を設定し、この消失点に
基づいて図形を描くことにより、遠近感を表現しつつ3
次元形状を2次元平面上に描く画法である。
2. Description of the Related Art Conventionally, in the field of computer graphics, a perspective drawing method has been used as a method for drawing a figure having a perspective on a two-dimensional plane. In the perspective drawing method, a vanishing point which is the center position of the image is set, and a figure is drawn based on the vanishing point, thereby expressing the perspective while maintaining the perspective.
This is a drawing method for drawing a two-dimensional shape on a two-dimensional plane.

【0003】透視画法により描かれた透視図の画像合成
方法としては、複数の面から構成される3次元形状の画
像データを計算機内に備え、それぞれの面に透視図の画
像を貼るテクスチャマッピング法があった。テクスチャ
マツピング法は、いくつかの3次元コンピュータグラフ
ィックスソフトウエアにより実現されており、デザイン
編コンピュータグラフィックス標準テキストブック(1
996年)等に開示されている。
[0003] As a method of synthesizing a perspective view image drawn by a perspective drawing method, a computer is provided with image data of a three-dimensional shape composed of a plurality of surfaces and affixes a perspective view image to each surface. There was a law. The texture mapping method is realized by some three-dimensional computer graphics software.
996).

【0004】前述したテクスチャマッピング法による透
視図の画像変換方法において、面に貼るテクスチャ画像
は、正面から画像を撮影又は描画する必要があった。し
かし、一般には斜めからの視点で画像を撮影又は描画す
る場合が多い。また、計算機内のメモリの制限から、テ
クスチャ画像の解像度は低く、再合成される透視図の画
像の解像度を上げることは困難であった。
In the above-described method for converting a perspective view image by the texture mapping method, it is necessary to photograph or draw a texture image to be attached to a surface from the front. However, in general, an image is often photographed or drawn from an oblique viewpoint. Further, due to the limitation of the memory in the computer, the resolution of the texture image is low, and it is difficult to increase the resolution of the image of the perspective view to be recombined.

【0005】そこで、正面からの画像を必要とせず、元
画像の解像度を維持したまま、計算機上で2次元画像を
別の視点(アングル)から見た画像に変換する画像変換
方法が特開平10−49704号公報に開示されてい
る。
Therefore, an image conversion method for converting a two-dimensional image into an image viewed from another viewpoint (angle) on a computer without maintaining the resolution of the original image without requiring a frontal image is disclosed in Japanese Patent Laid-Open Publication No. Hei 10 (1998) -107. No. 49704.

【0006】特開平10−49704号公報に開示され
ている画像変換方法は、元画像の消失点及び奥行きの行
き止まり領域を設定し、設定した消失点及び奥行きの行
き止まり領域に基づいて、画像を複数の要素からなる構
造体として表し、当該構造体の各要素に基づいて元画像
の3次元形状を推定し、元画像のアングルと異なるアン
グルを設定し、設定されたアングルに基づいて画像を変
換し、元画像と異なるアングルの変換画像を生成する。
The image conversion method disclosed in Japanese Patent Application Laid-Open No. H10-49704 sets a vanishing point and a dead end region of a depth of an original image, and based on the set vanishing point and a dead end region of a depth, a plurality of images are formed. Of the original image based on each element of the structure, set an angle different from the angle of the original image, and convert the image based on the set angle. To generate a converted image having an angle different from that of the original image.

【0007】前述した画像変換方法は、元画像上の注目
物体に対応する領域内を白くし、それ以外を黒くしたマ
スク画像と、元画像上の注目物体を周囲の模様などで塗
りつぶした背景画像とを予め生成しておくことにより、
元画像内の注目物体を3次元空間内に配置することがで
きる。
According to the above-described image conversion method, a mask image in which an area corresponding to an object of interest in an original image is whitened and the other area is blackened, and a background image in which an object of interest in the original image is filled with a surrounding pattern or the like. By generating in advance,
The target object in the original image can be arranged in the three-dimensional space.

【0008】マスク画像は、元画像から注目物体の画像
を抜き出すために使用される。例えば、マスク画像の黒
い部分に対応する元画像上の画素は無視し、白い部分に
対応する元画像の画素を抜き出す。マスク画像によって
抜き出された画像は、3次元空間内に配置された板状の
注目物体上に貼り付けられる。
The mask image is used to extract an image of the object of interest from the original image. For example, pixels on the original image corresponding to black portions of the mask image are ignored, and pixels of the original image corresponding to white portions are extracted. The image extracted by the mask image is pasted on a plate-shaped target object arranged in a three-dimensional space.

【0009】背景画像は、3次元空間内を展望する視点
(アングル)を変化させたときに、注目物体の後ろから
現れる画像である。注目物体の後ろから現れる画像は、
元画像上に情報がないため、ユーザが物体の背後の画像
を推定し、予め元画像を加工し背景画像を作成しておか
なければならない。
The background image is an image that appears from behind the object of interest when the viewpoint (angle) for viewing the three-dimensional space is changed. The image that appears from behind the object of interest is
Since there is no information on the original image, the user has to estimate the image behind the object and process the original image to create a background image in advance.

【0010】[0010]

【発明が解決しようとする課題】1枚の元画像から注目
物体を選択し、その注目物体に基づいてマスク画像と背
景画像とを作成する作業は、手間と時間がかかる。ま
た、一枚の画像から注目物体の背後の画像を推定し、背
景画像を作成する作業も手間と時間がかかる。
The task of selecting a target object from one original image and creating a mask image and a background image based on the target object takes time and effort. In addition, the task of estimating an image behind the object of interest from one image and creating a background image also requires time and effort.

【0011】本発明は、容易に画像変換を行うことがで
き、自動的にマスク画像と違和感のない背景画像を生成
することができる画像変換装置及び画像変換方法を提供
することを目的としている。
An object of the present invention is to provide an image conversion apparatus and an image conversion method capable of easily performing image conversion and automatically generating a background image having no uncomfortable feeling with a mask image.

【0012】[0012]

【課題を解決するための手段】本願の請求項1記載の発
明は、2次元の元画像を元に視点を変化させた変換画像
を生成する画像変換装置において、元画像における注目
物体を囲む領域を設定する領域設定手段と、元画像にお
ける注目物体を囲む領域内の画素を白くし、注目物体を
囲む領域外の画素を黒くしてマスク画像を生成するマス
ク画像生成手段と、注目物体を囲む領域内の元画像の画
素の輝度を示す値に予め定められた1未満の係数kを乗
算し、注目物体を囲む領域外の画素を元画像の画素とし
た背景画像を生成する背景画像生成手段と、マスク画像
と背景画像とを用いて視点を変化させた変換画像を生成
する変換画像生成手段とを備えたことを特徴としてい
る。
According to a first aspect of the present invention, there is provided an image conversion apparatus for generating a converted image in which a viewpoint is changed based on a two-dimensional original image. A mask image generating means for generating a mask image by whitening pixels in a region surrounding the object of interest in the original image and blackening pixels outside the region surrounding the object of interest, and surrounding the object of interest. Background image generating means for multiplying a value indicating the luminance of a pixel of the original image in the region by a coefficient k less than a predetermined value to generate a background image in which pixels outside the region surrounding the object of interest are pixels of the original image And a converted image generating means for generating a converted image whose viewpoint has been changed using the mask image and the background image.

【0013】本願の請求項2記載の発明は、2次元の元
画像を元に視点を変化させた変換画像を生成する画像変
換方法において、元画像における注目物体を囲む領域を
設定する領域設定ステップと、元画像における注目物体
を囲む領域内の画素を白くし、注目物体を囲む領域外の
画素を黒くしてマスク画像を生成するマスク画像生成ス
テップと、注目物体を囲む領域内の元画像の画素の輝度
を示す値に予め定められた1未満の係数kを乗算し、注
目物体を囲む領域外の画素を元画像の画素とした背景画
像を生成する背景画像生成ステップと、マスク画像と背
景画像とを用いて視点及び注目点を変化させた変換画像
を生成する変換画像生成ステップとを備えたことを特徴
としている。
According to a second aspect of the present invention, in an image conversion method for generating a converted image in which the viewpoint is changed based on a two-dimensional original image, an area setting step of setting an area surrounding an object of interest in the original image And a mask image generating step of generating a mask image by whitening pixels in a region surrounding the object of interest in the original image and blackening pixels outside the region surrounding the object of interest, and A background image generating step of multiplying a value indicating the luminance of the pixel by a predetermined coefficient k less than 1 to generate a background image in which pixels outside an area surrounding the object of interest are pixels of the original image; A conversion image generating step of generating a conversion image in which the viewpoint and the point of interest are changed using the image.

【0014】本願の請求項3記載の発明は、2次元の元
画像を元に視点を変化させた変換画像を生成する画像変
換プログラムが記録された記録媒体において、元画像に
おける注目物体を囲む領域を設定する領域設定ステップ
と、元画像における注目物体を囲む領域内の画素を白く
し、注目物体を囲む領域外の画素を黒くしてマスク画像
を生成するマスク画像生成ステップと、注目物体を囲む
領域内の元画像の画素の輝度を示す値に予め定められた
1未満の係数kを乗算し、注目物体を囲む領域外の画素
を元画像の画素とした背景画像を生成する背景画像生成
ステップと、マスク画像と前記背景画像とを用いて視点
及び注目点を変化させた変換画像を生成する変換画像生
成ステップとを備えた画像変換プログラムが記録された
ことを特徴としている。
According to a third aspect of the present invention, there is provided a recording medium in which an image conversion program for generating a converted image whose viewpoint is changed based on a two-dimensional original image is recorded. An area setting step of setting a pixel in a region surrounding the object of interest in the original image, and a mask image generating step of generating a mask image by blacking pixels outside the region surrounding the object of interest. A background image generating step of multiplying a value indicating the luminance of a pixel of the original image in the region by a coefficient k less than 1 to generate a background image in which pixels outside the region surrounding the object of interest are pixels of the original image And an image conversion program that includes a conversion image generation step of generating a conversion image in which a viewpoint and a point of interest are changed using the mask image and the background image. That.

【0015】[0015]

【発明の実施の形態】図1は、本発明の画像変換装置の
一実施例の概略構成を示す模式図である。図1におい
て、画像変換装置は、中央処理装置101と記憶装置1
02とを備えている。画像変換装置には、画像読込装置
103、画像表示装置104、入力指示装置105が接
続されている。
FIG. 1 is a schematic diagram showing a schematic configuration of an embodiment of an image conversion apparatus according to the present invention. In FIG. 1, an image conversion apparatus includes a central processing unit 101 and a storage device 1.
02. An image reading device 103, an image display device 104, and an input instruction device 105 are connected to the image conversion device.

【0016】中央処理装置101は、記憶装置102に
接続されており、記憶装置102に記憶されている処理
手順にしたがって、記憶装置102に記憶されたデータ
の処理が行われる。
The central processing unit 101 is connected to the storage device 102, and processes data stored in the storage device 102 according to the processing procedure stored in the storage device 102.

【0017】記憶装置102は、磁気ディスクドライブ
や光ディスクドライブなどであり、画像読込処理手順、
領域設定処理手順、マスク画像生成処理手順、背景画像
生成処理手順、変換画像生成処理手順を記憶している。
また、記憶装置102は、画像読込装置103により読
み込まれた画像データや領域情報なども記憶する。
The storage device 102 is a magnetic disk drive, an optical disk drive, or the like.
An area setting processing procedure, a mask image generation processing procedure, a background image generation processing procedure, and a converted image generation processing procedure are stored.
The storage device 102 also stores image data and area information read by the image reading device 103.

【0018】画像読込装置103は、光ディスクドライ
ブやスキャナなどであり、画像データが記録された記録
媒体を再生して画像データを読み込んだり、スキャナ等
を用いて2次元画像から画像データを読みとる。
The image reading device 103 is an optical disk drive, a scanner, or the like, and reproduces a recording medium on which image data is recorded to read image data, or reads image data from a two-dimensional image using a scanner or the like.

【0019】画像表示装置103は、例えばモニターな
どであり、読み込まれた画像情報を表示したり、各処理
工程や処理結果を表示する。
The image display device 103 is, for example, a monitor or the like, and displays read image information and displays each processing step and processing result.

【0020】入力指示装置105は、例えば、少なくと
も一つのボタンを備えたマウスやキーボードなどであ
り、入力指示装置105を操作することにより、画像表
示装置104上に表示される矢印が移動し、現在の位置
情報、ボタンの状態等を中央処理装置101に通知す
る。
The input instruction device 105 is, for example, a mouse or a keyboard having at least one button. By operating the input instruction device 105, an arrow displayed on the image display device 104 is moved. The central processing unit 101 is notified of the position information, the state of the buttons, and the like.

【0021】画像変換方法における処理動作について説
明する。図2は、本実施例の画像変換装置の画像変換処
理手順を示すフローチャートである。図2において、中
央処理装置101は、画像読込処理手順にしたがい元画
像を読み込み、画像表示装置104に読み込んだ元画像
を表示させる(ステップ201)。
The processing operation in the image conversion method will be described. FIG. 2 is a flowchart illustrating an image conversion processing procedure of the image conversion apparatus according to the present embodiment. In FIG. 2, the central processing unit 101 reads an original image according to an image reading processing procedure, and causes the image display device 104 to display the read original image (step 201).

【0022】中央処理装置101は、ユーザが入力指示
装置105を操作することによって、領域設定処理手順
にしたがい、注目物体の領域を設定する(ステップ20
2)。
The central processing unit 101 sets the region of the object of interest according to the region setting procedure by the user operating the input instruction device 105 (step 20).
2).

【0023】中央処理装置101は、マスク画像生成処
理手順にしたがい、注目物体を元画像から抜き出すため
に必要なマスク画像を生成する(ステップ203)。
The central processing unit 101 generates a mask image necessary for extracting the target object from the original image according to the mask image generation processing procedure (step 203).

【0024】中央処理装置101は、背景画像生成処理
手順にしたがい、注目物体の背後の画像となる背景画像
を生成する(ステップ204)。
The central processing unit 101 generates a background image to be an image behind the object of interest according to the background image generation processing procedure (step 204).

【0025】中央処理装置101は、生成されたマスク
画像及び背景画像を用いて、視点及び注目点を変化させ
た変換画像を生成する(ステップ205)。
The central processing unit 101 uses the generated mask image and background image to generate a converted image in which the viewpoint and the point of interest have been changed (step 205).

【0026】本実施例の画像変換装置における各処理手
順について説明する。図3は、本実施例の画像変換装置
の画像読込処理手順を示すフローチャートである。図3
において、画像読込装置103から画像データが読み込
まれると(ステップ301)、中央処理装置101は、
画像データを記憶装置102に記憶させ(ステップ30
2)、読み込んだ画像データを画像表示装置104に表
示させる(ステップ303)。
Each processing procedure in the image conversion apparatus of this embodiment will be described. FIG. 3 is a flowchart illustrating an image reading processing procedure of the image conversion apparatus according to the present embodiment. FIG.
When the image data is read from the image reading device 103 (step 301), the central processing unit 101
The image data is stored in the storage device 102 (step 30).
2) Display the read image data on the image display device 104 (step 303).

【0027】図4は、本実施例の画像変換装置の領域設
定処理手順を示すフローチャートである。図5は、本実
施例の画像変換装置の領域設定処理手順を説明するため
の模式図である。図4において、ユーザが入力指示装置
105を操作し、図5に示すような画像表示装置104
に表示された元画像のうち、立体的に表示させたい注目
物体501の左上に矢印502を移動させ、その位置で
ボタンを押すことによって、図5(a)に示す領域の開
始点を設定する(ステップ401)。
FIG. 4 is a flowchart showing an area setting processing procedure of the image conversion apparatus of this embodiment. FIG. 5 is a schematic diagram for explaining an area setting processing procedure of the image conversion apparatus according to the present embodiment. In FIG. 4, the user operates the input instruction device 105 to display the image display device 104 as shown in FIG.
5A, the arrow 502 is moved to the upper left of the target object 501 to be stereoscopically displayed, and the button is pressed at that position to set the start point of the area shown in FIG. (Step 401).

【0028】ボタンを押したまま矢印502を移動させ
ると(以下、「ドラッグする」という。)、図5(b)
に示すように前記開始点から現在の位置までを終端とす
る矩形領域が設定され、画像表示装置に表示される(ス
テップ402)。
When the arrow 502 is moved while holding down the button (hereinafter referred to as "drag"), FIG.
As shown in (1), a rectangular area ending from the start point to the current position is set and displayed on the image display device (step 402).

【0029】ユーザは、入力指示装置105を操作し
て、図5(c)に示すように、矩形領域が注目物体50
1を完全に囲むようにする(ステップ403)。
The user operates the input instruction device 105 to change the rectangular area to the target object 50 as shown in FIG.
1 is completely surrounded (step 403).

【0030】そして、注目物体501を矩形領域で囲ん
だ後、矢印502を移動し、図5(d)に示すように、
頂点を結ぶ線上を選択してボタンを押して頂点の数を増
やし、図5(e)に示すように、領域が注目物体501
の形状と同様の形状となるように設定する(ステップ4
04)。領域の設定は、各頂点を結ぶ曲線を用いて注目
物体501を囲み設定するようにしてもよい。この領域
に関する情報、例えば頂点の位置情報等は、記憶装置1
02に記憶される。
Then, after surrounding the object of interest 501 with a rectangular area, the arrow 502 is moved, as shown in FIG.
The number of vertices is increased by selecting the line connecting the vertices and pressing the button, and as shown in FIG.
(Step 4)
04). The region may be set by surrounding the target object 501 using a curve connecting the vertices. Information on this area, such as vertex position information, is stored in the storage device 1.
02 is stored.

【0031】ユーザにより設定された領域は、画像表示
装置104に元画像に重ねて表示される(ステップ40
5)。
The area set by the user is displayed on the image display device 104 so as to overlap the original image (step 40).
5).

【0032】図6は、本実施例の画像変換装置のマスク
画像生成処理手順を示すフローチャートである。図7
は、本実施例の画像変換装置のマスク画像を説明するた
めの模式図である。図6において、中央処理装置101
は、図7(a)に示す画像について、記憶装置102に
記憶された領域情報を参照して注目物体701を囲む領
域内の画素を白くする(ステップ601)。
FIG. 6 is a flowchart showing a mask image generation processing procedure of the image conversion apparatus of the present embodiment. FIG.
FIG. 3 is a schematic diagram for explaining a mask image of the image conversion device of the present embodiment. In FIG. 6, the central processing unit 101
In the image shown in FIG. 7A, the pixels in the region surrounding the object of interest 701 are turned white with reference to the region information stored in the storage device 102 (step 601).

【0033】ここで、注目物体701を囲む領域内の画
素の白さ、又は、画素の色情報、又は、画素の輝度情報
は、ユーザが設定できるようにしてもよい。
Here, the whiteness of the pixel in the area surrounding the object of interest 701, the color information of the pixel, or the luminance information of the pixel may be set by the user.

【0034】中央処理装置101は、注目物体701を
囲む領域外の画素を黒くすることによって、図7(b)
に示すようなマスク画像を生成し、記憶装置102に記
憶する(ステップ602)。
The central processing unit 101 makes the pixels outside the region surrounding the object of interest 701 black, thereby obtaining the pixels shown in FIG.
Is generated and stored in the storage device 102 (step 602).

【0035】図8は、本実施例の画像変換装置における
背景画像生成処理手順を示すフローチャートである。図
8において、中央処理装置101は、記憶装置102に
記憶された領域情報を参照して、注目物体701を囲む
領域内の画素を予め設定された1未満の係数kを、注目
物体701を囲む領域内に対応する元画像上の画素の
値、すなわち注目物体701の画素の値に乗算し、注目
物体の背後の画素の画素値とする(ステップ801)。
FIG. 8 is a flowchart showing a background image generation processing procedure in the image conversion apparatus of this embodiment. In FIG. 8, the central processing unit 101 refers to the region information stored in the storage device 102, assigns a pixel in an area surrounding the object of interest 701 to a coefficient k less than 1 which is set in advance, and surrounds the object of interest 701 The value of the pixel on the original image corresponding to the area, that is, the value of the pixel of the object of interest 701 is multiplied to obtain the pixel value of the pixel behind the object of interest (step 801).

【0036】ここで、画素は、R、G、Bにより表さ
れ、R、G、Bの割合によりその画素の色が決まる。ま
た、R、G、Bの値を合計した値が、その画素の輝度と
なる。つまり、画素に対し係数k=1を乗算した場合
は、元の画素と同じ画素値となり、例えば係数k=0.
8の場合、R、G、Bの各画素の値に0.8を乗算する
ため、輝度が低い画素となる。
Here, a pixel is represented by R, G, and B, and the color of the pixel is determined by the ratio of R, G, and B. The sum of the R, G, and B values is the luminance of the pixel. That is, when the pixel is multiplied by the coefficient k = 1, the pixel value becomes the same as that of the original pixel. For example, the coefficient k = 0.
In the case of 8, since the value of each pixel of R, G, and B is multiplied by 0.8, the pixel has low luminance.

【0037】したがって、注目物体701を囲む領域内
に1未満の係数kを乗算した場合、当該領域は、輝度が
低く暗い画素となり、図7(c)に示すように、注目物
体の影のような画像となる。
Therefore, when the area surrounding the object of interest 701 is multiplied by a coefficient k of less than 1, the area becomes a dark pixel with low luminance, and as shown in FIG. Image.

【0038】元画像の輝度が高い画像(明るい画像)の
場合、係数kの値を低くした方が注目物体の影らしく見
え、元画像の輝度が低い画像(暗い画像)の場合、係数
kの値を低くしなくても注目物体の影らしく見える。係
数kの値は、ユーザが1未満の範囲で任意に設定でき
る。また、注目物体を囲む領域内の画素の色情報又は輝
度情報に基づいて明暗をつけることにより、背景画像を
生成するようにしてもよい。
In the case of an image with a high luminance of the original image (bright image), a lower value of the coefficient k looks like a shadow of the object of interest, and in the case of an image with a low luminance of the original image (dark image), Even if the value is not lowered, the object looks like a shadow. The value of the coefficient k can be arbitrarily set by the user within a range of less than 1. Alternatively, a background image may be generated by giving light and dark based on color information or luminance information of pixels in a region surrounding the object of interest.

【0039】注目物体701を囲む領域外の画素を元画
像と同じ値にすることによって背景画像を生成し、記憶
装置に記憶させる(ステップ802)。
A background image is generated by setting pixels outside the area surrounding the object of interest 701 to the same value as the original image, and stored in the storage device (step 802).

【0040】次に、変換画像生成処理手順により、作成
された図7(b)に示すマスク画像と図7(c)に示す
背景画像とを用いて、2次元の元画像のアングルを変え
た画像に変換することによって、図7(d)に示すよう
な変換画像が得られる。
Next, the angle of the two-dimensional original image is changed by using the mask image shown in FIG. 7B and the background image shown in FIG. By converting to an image, a converted image as shown in FIG. 7D is obtained.

【0041】図7(c)において、アングルを徐々に変
化させると、注目物体の背後の画像が現れてくるが、注
目物体の背後の画像が注目物体の影のように見え、違和
感のない自然な画像を簡単に得ることができる。
In FIG. 7 (c), when the angle is gradually changed, an image behind the object of interest appears. However, the image behind the object of interest looks like a shadow of the object of interest, and a natural image without discomfort. Images can be easily obtained.

【0042】マスク画像生成処理手順及び背景画像生成
処理手順において、平滑フィルタを用いて、マスク画像
及び背景画像の境界が目立たないように処理してもよ
い。
In the mask image generation processing procedure and the background image generation processing procedure, processing may be performed using a smoothing filter so that the boundary between the mask image and the background image is inconspicuous.

【0043】[0043]

【発明の効果】本発明によれば、一枚の元画像から、簡
単にマスク画像と背景画像を生成し、違和感の内自然な
背景画像を生成することができる。
According to the present invention, it is possible to easily generate a mask image and a background image from a single original image, and to generate a natural background image that is uncomfortable.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の画像変換装置の一実施例の概略構成を
示す模式図である。
FIG. 1 is a schematic diagram illustrating a schematic configuration of an embodiment of an image conversion apparatus according to the present invention.

【図2】本実施例の画像変換装置の画像変換処理手順を
示すフローチャートである。
FIG. 2 is a flowchart illustrating an image conversion processing procedure of the image conversion apparatus according to the embodiment.

【図3】本実施例の画像変換装置の画像読込処理手順を
示すフローチャートである。
FIG. 3 is a flowchart illustrating an image reading process performed by the image conversion apparatus according to the embodiment.

【図4】本実施例の画像変換装置の領域設定処理手順を
示すフローチャートである。
FIG. 4 is a flowchart illustrating an area setting processing procedure of the image conversion apparatus according to the embodiment.

【図5】本実施例の画像変換装置の領域設定処理手順を
説明するための模式図である。
FIG. 5 is a schematic diagram for explaining an area setting processing procedure of the image conversion apparatus according to the embodiment.

【図6】本実施例の画像変換装置のマスク画像生成処理
手順を示すフローチャートである。
FIG. 6 is a flowchart illustrating a mask image generation processing procedure of the image conversion apparatus according to the present embodiment.

【図7】本実施例の画像変換装置のマスク画像を説明す
るための模式図である。
FIG. 7 is a schematic diagram for explaining a mask image of the image conversion apparatus according to the present embodiment.

【図8】本実施例の画像変換装置における背景画像生成
処理手順を示すフローチャートである。
FIG. 8 is a flowchart illustrating a background image generation processing procedure in the image conversion apparatus according to the present embodiment.

【符号の説明】[Explanation of symbols]

101・・・中央処理装置、102・・・記憶装置、1
03・・・画像読込装置、104・・・画像表示装置、
105・・・ポインティング装置、501・・・注目物
体、502・・・矢印、701・・・注目物体。
101: central processing unit, 102: storage device, 1
03: image reading device, 104: image display device,
105: pointing device, 501: target object, 502: arrow, 701: target object.

フロントページの続き Fターム(参考) 5B050 AA09 BA06 BA09 BA12 BA15 CA07 EA03 EA13 EA15 EA19 EA23 EA30 FA02 FA16 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CD11 CE05 CE11 5C023 AA16 BA11 CA03 CA08 DA04 5C076 AA02 AA11 AA23 BA06 CA02 CA12 5L096 AA02 AA06 BA08 CA24 DA01 GA10 MA03 Continued on front page F-term (reference) 5B050 AA09 BA06 BA09 BA12 BA15 CA07 EA03 EA13 EA15 EA19 EA23 EA30 FA02 FA16 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CD11 CE05 CE11 5C023 AA16 BA11 CA03 A08 A02 A06 A04 A04 5L096 AA02 AA06 BA08 CA24 DA01 GA10 MA03

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】2次元の元画像を元に任意の視点から見た
変換画像を生成する画像変換装置において、前記元画像
における注目物体を囲む領域を設定する領域設定手段
と、前記元画像における前記注目物体を囲む領域内の画
素を白くし前記注目物体を囲む領域外の画素を黒くして
マスク画像を生成するマスク画像生成手段と、前記注目
物体を囲む領域内の元画像の個々の画素の輝度を示す値
に予め定められた1未満の係数kを乗算し、前記注目物
体を囲む領域外の画素を前記元画像の画素とした背景画
像を生成する背景画像生成手段と、前記マスク画像と前
記背景画像とを用いて視点を変化させた変換画像を生成
する変換画像生成手段とを備えたことを特徴とする画像
変換装置。
1. An image conversion apparatus for generating a converted image viewed from an arbitrary viewpoint based on a two-dimensional original image, wherein: an area setting means for setting an area surrounding an object of interest in the original image; Mask image generating means for generating a mask image by whitening pixels in the region surrounding the object of interest and blacking pixels outside the region surrounding the object of interest, and individual pixels of an original image in the region surrounding the object of interest Background image generating means for multiplying a value indicating the luminance of the target image by a predetermined coefficient k less than 1 to generate a background image in which pixels outside an area surrounding the object of interest are pixels of the original image; and the mask image An image conversion apparatus comprising: a conversion image generation unit configured to generate a conversion image whose viewpoint has been changed using the background image and the background image.
【請求項2】2次元の元画像を元に任意の視点から見た
変換画像を生成する画像変換方法において、前記元画像
における注目物体を囲む領域を設定する領域設定ステッ
プと、前記元画像における注目物体を囲む領域内の画素
を白くし前記注目物体を囲む領域外の画素を黒くしてマ
スク画像を生成するマスク画像生成ステップと、前記注
目物体を囲む領域内の元画像の個々の画素の輝度を示す
値に予め定められた1未満の係数kを乗算し、前記注目
物体を囲む領域外の画素を元画像の画素とした背景画像
を生成する背景画像生成ステップと、前記マスク画像と
前記背景画像とを用いて視点を変化させた変換画像を生
成する変換画像生成ステップとを備えたことを特徴とす
る画像変換方法。
2. An image conversion method for generating a converted image viewed from an arbitrary viewpoint based on a two-dimensional original image, wherein: an area setting step of setting an area surrounding an object of interest in the original image; A mask image generating step of generating a mask image by whitening pixels in an area surrounding the object of interest and blacking pixels outside the area surrounding the object of interest, and generating individual pixels of an original image in the area surrounding the object of interest. A background image generating step of multiplying a value indicating luminance by a coefficient k less than a predetermined value of 1 to generate a background image in which pixels outside an area surrounding the object of interest are pixels of an original image; and A conversion image generation step of generating a conversion image whose viewpoint has been changed using a background image.
【請求項3】2次元の元画像を元に任意の視点から見た
変換画像を生成する画像変換プログラムが記録された記
録媒体において、前記元画像における注目物体を囲む領
域を設定する領域設定ステップと、前記元画像における
注目物体を囲む領域内の画素を白くし、前記注目物体を
囲む領域外の画素を黒くしてマスク画像を生成するマス
ク画像生成ステップと、前記注目物体を囲む領域内の元
画像の個々の画素の輝度を示す値に予め定められた1未
満の係数kを乗算し、前記注目物体を囲む領域外の画素
を元画像の画素とした背景画像を生成する背景画像生成
ステップと、前記マスク画像と前記背景画像とを用いて
視点を変化させた変換画像を生成する変換画像生成ステ
ップとを備えた画像変換プログラムが記録されたことを
特徴とする記録媒体。
3. An area setting step for setting an area surrounding an object of interest in the original image on a recording medium in which an image conversion program for generating a converted image viewed from an arbitrary viewpoint based on a two-dimensional original image is recorded. A mask image generating step of generating a mask image by whitening pixels in a region surrounding the object of interest in the original image and blackening pixels outside the region surrounding the object of interest, and A background image generating step of multiplying a value indicating the luminance of each pixel of the original image by a predetermined coefficient k less than 1 to generate a background image in which pixels outside the region surrounding the object of interest are pixels of the original image And a conversion image generation step of generating a conversion image in which a viewpoint is changed using the mask image and the background image. .
JP28239599A 1999-10-04 1999-10-04 Image converter and image conversion method Pending JP2001111804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28239599A JP2001111804A (en) 1999-10-04 1999-10-04 Image converter and image conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28239599A JP2001111804A (en) 1999-10-04 1999-10-04 Image converter and image conversion method

Publications (1)

Publication Number Publication Date
JP2001111804A true JP2001111804A (en) 2001-04-20

Family

ID=17651859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28239599A Pending JP2001111804A (en) 1999-10-04 1999-10-04 Image converter and image conversion method

Country Status (1)

Country Link
JP (1) JP2001111804A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2006009257A1 (en) * 2004-07-23 2008-05-01 松下電器産業株式会社 Image processing apparatus and image processing method
JP2016114794A (en) * 2014-12-15 2016-06-23 フリュー株式会社 Image creation device, image creation method, and printing medium
CN109492548A (en) * 2018-10-24 2019-03-19 广东佳鸿达科技股份有限公司 The preparation method of region mask picture based on video analysis

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2006009257A1 (en) * 2004-07-23 2008-05-01 松下電器産業株式会社 Image processing apparatus and image processing method
JP4642757B2 (en) * 2004-07-23 2011-03-02 パナソニック株式会社 Image processing apparatus and image processing method
JP2016114794A (en) * 2014-12-15 2016-06-23 フリュー株式会社 Image creation device, image creation method, and printing medium
CN109492548A (en) * 2018-10-24 2019-03-19 广东佳鸿达科技股份有限公司 The preparation method of region mask picture based on video analysis
CN109492548B (en) * 2018-10-24 2021-10-01 广东佳鸿达科技股份有限公司 Method for obtaining region mask picture based on video analysis

Similar Documents

Publication Publication Date Title
JP6124543B2 (en) Image processing apparatus, image processing method, image processing system, and program
US7535497B2 (en) Generation of static image data from multiple image data
US20020030834A1 (en) Image modification apparatus and method
EP2334051B1 (en) Method and apparatus for generating new images by using image data that vary along time axis
JP2010510573A (en) System and method for synthesizing a three-dimensional image
JP4661824B2 (en) Image processing apparatus, method, and program
JP2005526302A (en) Method and apparatus for changing the focus of a scene
JP2013152454A (en) Image processing apparatus, image processing system, image processing method, and image processing program
CN109218630B (en) Multimedia information processing method and device, terminal and storage medium
KR20140107469A (en) Image processing device, image processing system, image processing method, and image processing program
JP5832211B2 (en) Image processing apparatus, image processing method, and program
JP4155419B2 (en) Camera apparatus and imaging method
JP2001111804A (en) Image converter and image conversion method
JP6035931B2 (en) Information processing apparatus, information processing method, and information processing program
JP2011155483A (en) Display control device, image processor, display control program, and image processing program
JP5807569B2 (en) Image processing apparatus, image processing method, and image processing program
JP2004248213A (en) Image processing apparatus, imaging apparatus, and program
JP4006105B2 (en) Image processing apparatus and method
JPH11175765A (en) Method and device for generating three-dimensional model and storage medium
JPH1188910A (en) Three-dimension model generating device, three-dimension model generating method, medium recording three-dimension model generating program three-dimension model reproduction device, three-dimension model reproduction method and medium recording three-dimension model reproduction program
JP2011175309A (en) Image processing apparatus and program
JP6338730B2 (en) Apparatus, method, and program for generating display data
JP3002971B2 (en) 3D model creation device
JPH1173498A (en) Color correcting method for electronic image, electronic camera having same color correcting device inside, and recording medium color correcting program is recorded
US11762532B2 (en) Image processing device, control method therefor, imaging device, and recording medium