JPH08111815A - Image compositing device - Google Patents

Image compositing device

Info

Publication number
JPH08111815A
JPH08111815A JP6270662A JP27066294A JPH08111815A JP H08111815 A JPH08111815 A JP H08111815A JP 6270662 A JP6270662 A JP 6270662A JP 27066294 A JP27066294 A JP 27066294A JP H08111815 A JPH08111815 A JP H08111815A
Authority
JP
Japan
Prior art keywords
image
extracted
boundary line
synthesizing
background
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
JP6270662A
Other languages
Japanese (ja)
Inventor
Takamaro Nakayama
隆麿 中山
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP6270662A priority Critical patent/JPH08111815A/en
Publication of JPH08111815A publication Critical patent/JPH08111815A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To reduce a sense of incongruity at the boundary between a background image and an extracted image by replacing luminance of picture elements of the boundary with luminance obtained through arithmetic mean operation where weighting of the luminance from the background image toward the extracted image is being increased in the case of compositing the background image and the extracted image. CONSTITUTION: An image extract means 12 reads an original image received from an image reader or the like from an original image memory 10 and extract an extract image such as a portrait image. An image degeneration means 30 and an image expansion means 34 form images in which a contour of the extracted image is degenerated/ expanded by a prescribed number of picture elements and give the formed images to a border line generating means 38. The border line generating means 38 generates a border line having a width of, e.g. 8 picture elements based on a difference between degenerated and expanded images. An image compositing means 40 composites the background image read from a background image memory 16, the extracted image and the border line and outputs the cocnposited image to an image display means 22 such as a CRT. The luminance of the picture elements forming the boundary line and closer to the extracted image and the background image receives higher weighting.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プレゼンテーション・
システムや画像合成製作システム等において用いられる
画像合成装置に関するものであり、さらに詳しくは、原
画像から抽出した抽出画像(例えば、自然の中に人物が
いる原画像の中から人物の画像だけを取り出した画像)
を背景画像(例えば、街中の風景の画像)に重ね合わせ
て新しい画像を製作する画像合成装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to an image synthesizing device used in a system or an image synthesizing / manufacturing system, and more specifically, an extracted image extracted from an original image (for example, extracting only a person image from an original image in which a person is in nature). Image)
The present invention relates to an image synthesizing device for producing a new image by superimposing the image on a background image (for example, an image of a landscape in a city).

【0002】[0002]

【従来の技術】一般に、抽出画像を背景画像にそのまま
重ね合わせて合成すると、抽出画像と背景画像の境界部
分の不連続性が目立ち違和感が生じる。このような違和
感を緩和するための手段を講じた画像合成装置が、従来
からいくつか考案されている。例えば、図5に示すよう
な装置が知られている。
2. Description of the Related Art Generally, when an extracted image is superimposed on a background image as it is and combined, the discontinuity at the boundary portion between the extracted image and the background image is noticeable. Conventionally, some image synthesizing apparatuses have been devised which are provided with means for alleviating such discomfort. For example, a device as shown in FIG. 5 is known.

【0003】この図5に示す従来装置では、原画像メモ
リ10から読み出された原画像の中から、画像抽出手段
12によって抽出画像を抽出し、画像合成手段14が、
この抽出画像を背景画像メモリ16から読み出された背
景画像に重ね合わせて合成するとともに、この合成時
に、図2の(a)、(b)に示すように、抽出画像の境
界線(輪郭線)18の画素とその1画素外側の領域20
の隣接画素(背景画像の抽出画像に接する画素)につい
て、単純平均値演算で求めた値で、その輝度を置換し
て、画像表示手段22で表示した合成画像の境界部分の
不連続性が目立たないようにしたものである。
In the conventional apparatus shown in FIG. 5, the image extracting means 12 extracts an extracted image from the original images read from the original image memory 10, and the image synthesizing means 14
This extracted image is superimposed on the background image read out from the background image memory 16 and synthesized, and at the time of this synthesis, as shown in FIGS. ) 18 pixels and an area 20 outside the 1 pixel
With respect to the adjacent pixels (pixels in contact with the extracted image of the background image), the brightness is replaced by the value obtained by the simple average value calculation, and the discontinuity of the boundary portion of the composite image displayed by the image display unit 22 is noticeable. It was designed so that it would not exist.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来の図5に示した画像合成装置では、抽出画像と背
景画像の境界部分の平均化する領域があまり広くない
(例えば境界線18と外側の領域20の幅が2画素程
度)とともに、合成時における境界線18と外側の領域
20の画素についての置換輝度を単純平均で求めていた
ので、抽出画像を背景画像に重ね合わせた合成画像の境
界部分に違和感が残る場合が多いという問題点があっ
た。
However, in the above-described conventional image synthesizing apparatus shown in FIG. 5, the averaging area of the boundary portion between the extracted image and the background image is not so wide (for example, the boundary line 18 and the outside). The width of the region 20 is about 2 pixels), and the replacement brightness of the boundary line 18 and the pixels of the outer region 20 at the time of composition is obtained by a simple average. Therefore, the boundary of the composite image in which the extracted image is superimposed on the background image is calculated. There was a problem in that there was often a sense of discomfort in the part.

【0005】本発明は上述の問題点に鑑みなされたもの
で、構成規模をそれ程複雑にすることなく、境界部分に
違和感の少ない合成画像を表示することができる画像合
成装置を提供することを目的とするものである。
The present invention has been made in view of the above problems, and an object of the present invention is to provide an image synthesizing apparatus capable of displaying a synthetic image with less discomfort at the boundary portion without making the configuration scale so complicated. It is what

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明
は、原画像から抽出した抽出画像を画像合成手段で背景
画像と合成し、この合成画像を画像表示手段で表示する
ようにした画像合成装置において、前記抽出画像を膨張
させる画像膨張手段と、前記抽出画像と前記膨張画像か
ら境界線を作成して前記画像合成手段に出力する境界線
作成手段とを具備してなり、前記画像合成手段は、前記
抽出画像と前記背景画像の合成時に、前記境界線部分の
画素について、前記抽出画像と前記背景画像のそれぞれ
に近いほど近い側の重み付けを大きくした平均値演算で
求めた値で、その輝度を置換してなることを特徴とする
ものである。
The invention according to claim 1 is an image in which an extracted image extracted from an original image is combined with a background image by image combining means, and the combined image is displayed by image display means. The synthesizing apparatus comprises image expanding means for expanding the extracted image, and boundary line creating means for creating a boundary line from the extracted image and the expanded image and outputting the boundary line to the image combining means. The means, when synthesizing the extracted image and the background image, with respect to the pixels of the boundary portion, a value obtained by an average value calculation in which weighting on the side closer to the extracted image and the background image is increased, It is characterized in that the brightness is replaced.

【0007】請求項2に記載の発明は、原画像から抽出
した抽出画像を画像合成手段で背景画像と合成し、この
合成画像を画像表示手段で表示するようにした画像合成
装置において、前記抽出画像を縮退させる画像縮退手段
と、この縮退画像を縮退前の画像より大きな面積の画像
に膨張させる画像膨張手段と、前記縮退画像と前記膨張
画像から境界線を作成して前記画像合成手段に出力する
境界線作成手段とを具備してなり、前記画像合成手段
は、前記抽出画像と前記背景画像の合成時に、前記境界
線部分の画素について、前記抽出画像と前記背景画像の
それぞれに近いほど近い側の重み付けを大きくした平均
値演算で求めた値で、その輝度を置換してなることを特
徴とするものである。
According to a second aspect of the invention, in the image synthesizing apparatus, the extracted image extracted from the original image is synthesized with the background image by the image synthesizing means, and the synthesized image is displayed by the image displaying means. Image reducing means for reducing the image, image expanding means for expanding the reduced image into an image having a larger area than the image before the reduction, and creating a boundary line from the reduced image and the expanded image and outputting to the image synthesizing means. The image synthesizing means is configured such that, when synthesizing the extracted image and the background image, the pixels of the boundary portion are closer to the extracted image and the background image, respectively. It is characterized in that the luminance is replaced with a value obtained by an average value calculation with an increased weighting.

【0008】請求項3に記載の発明は、原画像から抽出
した抽出画像を画像合成手段で背景画像と合成し、この
合成画像を画像表示手段で表示するようにした画像合成
装置において、前記抽出画像を膨張させる画像膨張手段
と、この膨張画像を膨張前の画像より小さな面積の画像
に縮退させる画像縮退手段と、前記膨張画像と前記縮退
画像から境界線を作成して前記画像合成手段に出力する
境界線作成手段とを具備してなり、前記画像合成手段
は、前記抽出画像と前記背景画像の合成時に、前記境界
線部分の画素について、前記抽出画像と前記背景画像の
それぞれに近いほど近い側の重み付けを大きくした平均
値演算で求めた値で、その輝度を置換してなることを特
徴とするものである。
According to a third aspect of the present invention, in the image synthesizing apparatus, the extracted image extracted from the original image is synthesized with the background image by the image synthesizing means, and the synthesized image is displayed by the image displaying means. An image expanding means for expanding an image, an image shrinking means for shrinking the expanded image into an image having a smaller area than the image before expansion, a boundary line created from the expanded image and the degraded image, and output to the image combining means. The image synthesizing means is configured such that, when synthesizing the extracted image and the background image, the pixels of the boundary portion are closer to the extracted image and the background image, respectively. It is characterized in that the luminance is replaced with a value obtained by an average value calculation with an increased weighting.

【0009】請求項4に記載の発明は、原画像から抽出
した抽出画像を画像合成手段で背景画像と合成し、この
合成画像を画像表示手段で表示するようにした画像合成
装置において、前記抽出画像を縮退させる画像縮退手段
と、前記抽出画像を膨張させる画像膨張手段と、前記縮
退画像と前記膨張画像から境界線を作成して前記画像合
成手段に出力する境界線作成手段とを具備してなり、前
記画像合成手段は、前記抽出画像と前記背景画像の合成
時に、前記境界線部分の画素について、前記抽出画像と
前記背景画像のそれぞれに近いほど近い側の重み付けを
大きくした平均値演算で求めた値で、その輝度を置換し
てなることを特徴とするものである。
According to a fourth aspect of the invention, in the image synthesizing apparatus, the extracted image extracted from the original image is synthesized with the background image by the image synthesizing means, and the synthesized image is displayed by the image displaying means. An image shrinking unit for shrinking an image, an image expanding unit for expanding the extracted image, and a boundary line creating unit for creating a boundary line from the reduced image and the expanded image and outputting the boundary line to the image combining unit. The image synthesizing means obtains an average value calculation in which, when synthesizing the extracted image and the background image, the pixels of the boundary line portion are weighted closer to the extracted image and the background image, respectively. It is characterized in that the brightness is replaced with a different value.

【0010】請求項5に記載の発明は、請求項1、2、
3または4において、境界線作成手段は、被膨張画像を
1画素分膨張させる操作を複数回行うとともに、各膨張
画素に膨張回数に対応した識別用のラベルを付けて境界
線を作成してなり、画像合成手段の重み付け平均値演算
は、前記境界線のラベルに対応した重み付けをして平均
値を演算してなるものである。
The invention according to claim 5 is the invention as defined in claims 1, 2 and
In 3 or 4, the boundary line creating means performs the operation of expanding the inflated image by one pixel a plurality of times, and creates a boundary line by attaching an identification label corresponding to the number of times of expansion to each expanded pixel. The weighted average value calculation of the image synthesizing means is performed by weighting corresponding to the label of the boundary line and calculating the average value.

【0011】[0011]

【作用】請求項1の発明による画像合成装置は、画像膨
張手段が抽出画像を膨張させ、境界線作成手段が抽出画
像と膨張画像から境界線を作成する(例えば、膨張画像
から抽出画像を差し引くことによって境界線を作成す
る)。画像合成手段は、抽出画像と背景画像の合成時
に、境界線部分の画素について、抽出画像と背景画像の
それぞれに近いほど近い側の重み付けを大きくした平均
値演算で求めた輝度(濃度)で、その輝度を置換する。
この画像合成手段で合成された合成画像は、画像表示手
段によって表示される。
In the image synthesizing apparatus according to the first aspect of the present invention, the image expanding means expands the extracted image, and the boundary line creating means creates a boundary line from the extracted image and the expanded image (for example, subtracts the extracted image from the expanded image). Create a border by doing that). The image synthesizing means, when synthesizing the extracted image and the background image, with respect to the pixels of the boundary line, the brightness (density) obtained by an average value calculation in which the closer the extracted image and the background image are to each other, the closer the weight is, Replace brightness.
The combined image combined by this image combining means is displayed by the image display means.

【0012】請求項2の発明による画像合成装置は、画
像縮退手段が抽出画像を縮退させ、画像膨張手段が抽出
画像を膨張させ、境界線作成手段が縮退画像と膨張画像
から境界線を作成する(例えば、膨張画像から縮退画像
を差し引くことによって境界線を作成する)。画像合成
手段は、抽出画像と背景画像の合成時に、境界線部分の
画素について、抽出画像と背景画像のそれぞれに近いほ
ど近い側の重み付けを大きくした平均値演算で求めた輝
度で、その輝度を置換する。この画像合成手段で合成さ
れた合成画像は、画像表示手段によって表示される。
In the image synthesizing device according to the second aspect of the present invention, the image shrinking unit shrinks the extracted image, the image expanding unit expands the extracted image, and the boundary line creating unit creates a boundary line from the shrunken image and the expanded image. (For example, the boundary line is created by subtracting the degenerated image from the dilated image). When combining the extracted image and the background image, the image synthesizing unit replaces the luminance with the luminance calculated by an average value calculation in which the closer to the extracted image and the background image the pixels on the boundary are To do. The combined image combined by this image combining means is displayed by the image display means.

【0013】請求項3の発明による画像合成装置では、
前記抽出画像を膨張させる画像膨張手段と、この膨張画
像を膨張前の画像より小さな面積の画像に縮退させる画
像縮退手段と、前記膨張画像と前記縮退画像から境界線
を作成して前記画像合成手段に出力する境界線作成手段
とを具備してなり、前記画像合成手段は、前記抽出画像
と前記背景画像の合成時に、前記境界線部分の画素につ
いて、前記抽出画像と前記背景画像のそれぞれに近いほ
ど近い側の重み付けを大きくした平均値演算で求めた値
で、その輝度を置換する。この画像合成手段で合成され
た合成画像は、画像表示手段によって表示される。
In the image synthesizing apparatus according to the third aspect of the invention,
An image expanding means for expanding the extracted image, an image shrinking means for shrinking the expanded image into an image having an area smaller than that of the image before expansion, and a boundary line created from the expanded image and the degraded image to synthesize the image. Boundary line creating means for outputting to, the image synthesizing means, when synthesizing the extracted image and the background image, the pixels of the boundary line portion are close to the extracted image and the background image, respectively. The brightness is replaced with a value obtained by an average value calculation in which the weight on the closer side is increased. The combined image combined by this image combining means is displayed by the image display means.

【0014】請求項4に記載の発明は、前記抽出画像を
縮退させる画像縮退手段と、前記抽出画像を膨張させる
画像膨張手段と、前記縮退画像と前記膨張画像から境界
線を作成して前記画像合成手段に出力する境界線作成手
段とを具備してなり、前記画像合成手段は、前記抽出画
像と前記背景画像の合成時に、前記境界線部分の画素に
ついて、前記抽出画像と前記背景画像のそれぞれに近い
ほど近い側の重み付けを大きくした平均値演算で求めた
値で、その輝度を置換してなることを特徴とする画像合
成装置。
According to a fourth aspect of the present invention, an image shrinking unit that shrinks the extracted image, an image expanding unit that expands the extracted image, and a boundary line created from the reduced image and the expanded image to create the image. Boundary line creating means for outputting to the synthesizing means, wherein the image synthesizing means, when synthesizing the extracted image and the background image, with respect to the pixels of the boundary line portion, the extracted image and the background image respectively. The image synthesizing apparatus is characterized in that the luminance is replaced by a value obtained by an average value calculation in which the closer to the point is, the greater the weighting is.

【0015】請求項5に記載の発明は、請求項1、2、
3または4記載の発明において、境界線作成手段は、被
膨張画像(抽出画像または縮退画像)を1画素分膨張さ
せる操作を複数回行うとともに、各膨張画素に膨張回数
に対応した識別用のラベルを付けて境界線を作成してな
り、画像合成手段の重み付け平均値演算は、境界線のラ
ベルに対応した重み付けをして平均値を演算してなるも
のである。
The invention described in claim 5 is the same as claim 1, 2 or
In the invention described in 3 or 4, the boundary line creating unit performs an operation of expanding the image to be expanded (the extracted image or the contracted image) by one pixel a plurality of times, and an identification label corresponding to the number of times of expansion for each expanded pixel. Boundary lines are created by adding the weights, and the weighted average value calculation of the image synthesizing means is performed by weighting corresponding to the label of the boundary line and calculating the average value.

【0016】[0016]

【実施例】以下、本発明による画像合成装置の一実施例
を図1および図2を用いて説明する。図1において図5
と同一部分は同一符号とする。図1において、10は画
像入力部(例えば、イメージリーダ)などから取り込ん
だ原画像(例えば、自然の中に人物がいる原画像)を記
憶している原画像メモリ、12は前記原画像メモリ10
から読み出された原画像から抽出画像(例えば、原画像
の中の人物画像)を取り出すための画像抽出手段、16
は背景画像(例えば、街中の風景の画像)を記憶してい
る背景画像メモリ、22は画像表示手段(例えば、CR
Tディスプレイ)である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image synthesizing apparatus according to the present invention will be described below with reference to FIGS. In FIG.
The same parts as are designated by the same reference numerals. In FIG. 1, 10 is an original image memory that stores an original image (for example, an original image in which a person is in nature) captured from an image input unit (for example, an image reader), and 12 is the original image memory 10
Image extraction means for extracting an extracted image (for example, a person image in the original image) from the original image read from
Is a background image memory that stores a background image (for example, an image of a landscape in the city), and 22 is an image display means (for example, CR).
T display).

【0017】30は画像縮退手段で、この画像縮退手段
30は、前記画像抽出手段12で抽出した抽出画像の外
郭部分の画素を1画素分収縮する操作を複数回(例えば
3回)行うことによって、縮退画像を出力するように構
成されている。例えば、図2の(a)から(b)に示す
ように、抽出画像の背景画像に接する線幅の狭い(例え
ば線幅が1画素の)境界線18から、抽出画像側に向か
って複数画素(例えば3画素)幅の縮退部分32を収縮
するように構成されている。ここで、収縮とは、例え
ば、2値画像の場合には、0の画素の近傍を0に変換す
る操作をいう。
Reference numeral 30 denotes an image degeneracy means, and the image degeneracy means 30 performs a plurality of operations (for example, three times) to shrink the pixels of the outer portion of the extracted image extracted by the image extraction means 12 by one pixel. , Is configured to output a degenerated image. For example, as illustrated in (a) and (b) of FIG. 2, a plurality of pixels are drawn from the boundary line 18 having a narrow line width (for example, a line width of 1 pixel) in contact with the background image of the extracted image toward the extracted image side. The degenerate portion 32 having a width (for example, 3 pixels) is contracted. Here, the contraction means an operation of converting the vicinity of a pixel of 0 into 0 in the case of a binary image, for example.

【0018】34は画像膨張手段で、この画像膨張手段
34は、前記画像縮退手段30で縮退させた縮退画像の
外郭部分の画素を1画素分拡大する操作を、前記画像縮
退手段30の縮退回数より多い複数回(例えば8回)行
うことによって、膨張画像を出力するように構成されて
いる。例えば、図2の(b)から(c)に示すように、
縮退画像の外郭部から背景画像側に向かって複数画素
(例えば8画素)幅の膨張部分36を拡大するように構
成されている。ここで、拡大とは、例えば、2値画像の
場合には、1の画素の近傍を1に変換する操作をいう。
Reference numeral 34 denotes an image expanding means, which performs an operation of expanding the pixel of the outer portion of the reduced image degenerated by the image degenerating means 30 by one pixel, by the number of times of degeneration of the image degenerating means 30. The dilated image is output by performing a plurality of times (e.g., eight times). For example, as shown in (b) to (c) of FIG.
The expanded portion 36 having a width of a plurality of pixels (for example, 8 pixels) is enlarged from the outer portion of the degenerated image toward the background image side. Here, enlargement refers to an operation of converting the neighborhood of one pixel into one in the case of a binary image, for example.

【0019】38は境界線作成手段で、この境界線作成
手段38は、前記画像膨張手段34で膨張させた膨張画
像から、前記画像縮退手段30で縮退させた縮退画像を
差し引くことによって、前記膨張部分36で形成された
新たな境界線36を作成するように構成されている。こ
のとき、境界線作成手段38は、1画素分膨張させる操
作を行う度に、新境界線36を構成する各膨張画素に膨
張回数に対応した識別用のラベルを付ける。例えば、第
1回目の膨張で拡大した膨張画素については「7」のラ
ベルを付け、、第2回目の膨張で拡大した膨張画素につ
いては「6」のラベルを付け、…、第8回目の膨張で拡
大した膨張画素については「0」のラベルを付ける。
Reference numeral 38 denotes a boundary line creating means, which subtracts the degenerated image degenerated by the image degenerating means 30 from the dilated image expanded by the image expanding means 34 to perform the expansion. It is configured to create a new boundary line 36 formed by the portion 36. At this time, the boundary line creating means 38 attaches an identification label corresponding to the number of times of expansion to each expanded pixel forming the new boundary line 36 every time an operation of expanding by one pixel is performed. For example, the expanded pixel expanded by the first expansion is labeled with “7”, the expanded pixel expanded by the second expansion is labeled with “6”, ..., The eighth expansion. A label of "0" is attached to the expanded pixel enlarged in step.

【0020】40は画像合成手段で、この画像合成手段
40は、前記画像抽出手段12で抽出した抽出画像と前
記背景画像メモリ16から読み出された背景画像を合成
するとともに、この合成時に、前記新境界線36を構成
する画素について、そのラベルが大きいほど抽出画像側
の重み係数が大きい(背景画像側の重み係数は小さい)
重み付けをした平均値演算を行い、求めた値でその輝度
(濃度)を置換するように構成されている。前記画像合
成手段40の出力側には画像表示手段22が結合されて
いる。
Reference numeral 40 denotes an image synthesizing means, which synthesizes the extracted image extracted by the image extracting means 12 and the background image read from the background image memory 16 and, at the time of this synthesizing, Regarding the pixels forming the new boundary line 36, the larger the label, the larger the weighting factor on the extracted image side (the smaller the weighting factor on the background image side).
The weighted average value is calculated, and the brightness (density) is replaced with the calculated value. The image display means 22 is coupled to the output side of the image synthesizing means 40.

【0021】つぎに、図1の実施例の作用を図2を併用
して説明する。 (イ)まず、従来例と同様にして、原画像メモリ10か
ら読み出された原画像の中から、画像抽出手段12によ
って抽出画像が抽出される。
Next, the operation of the embodiment of FIG. 1 will be described with reference to FIG. (A) First, the extracted image is extracted by the image extracting means 12 from the original image read from the original image memory 10 in the same manner as the conventional example.

【0022】(ロ)ついで、この抽出画像を画像縮退手
段30によって縮退する。具体的には、抽出画像の外郭
部分の画素を1画素分収縮する操作を複数回(例えば3
回)行うことによって、図2の(a)から(b)に示す
ように、抽出画像の境界線18から抽出画像側に向かっ
て複数画素(例えば3画素)幅の縮退部分32を収縮す
る。2値画像の場合には、0の画素の近傍を0に変換す
る。
(B) Next, the extracted image is reduced by the image reducing means 30. Specifically, the operation of contracting the pixels of the outer portion of the extracted image by one pixel is performed a plurality of times (for example, 3 times).
2), the degenerated portion 32 having a width of a plurality of pixels (for example, 3 pixels) is contracted from the boundary line 18 of the extracted image toward the extracted image, as shown in (a) and (b) of FIG. In the case of a binary image, the neighborhood of 0 pixels is converted to 0.

【0023】(ハ)ついで、前記(ロ)で縮退させた縮
退画像を画像膨張手段34によって膨張させる。具体的
には、縮退画像の外郭部分の画素を1画素分拡大する操
作を、縮退回数より多い複数回(例えば8回)行うこと
によって、図2の(b)から(c)に示すように、縮退
画像の外郭部から背景画像側に向かって複数画素(例え
ば8画素)幅の膨張部分36を拡大する。2値画像の場
合には、1の画素の近傍を1に変換する。
(C) Next, the degenerated image degenerated in (b) is expanded by the image expanding means 34. Specifically, as shown in (b) to (c) of FIG. 2, by performing the operation of enlarging the pixels of the outer portion of the degenerated image by one pixel a plurality of times (for example, 8 times), which is larger than the number of degenerations. The expanded portion 36 having a width of a plurality of pixels (for example, 8 pixels) is enlarged from the outer portion of the reduced image toward the background image side. In the case of a binary image, the neighborhood of 1 pixel is converted to 1.

【0024】(ニ)ついで、前記(ロ)で縮退させた縮
退画像と前記(ハ)で膨張させた膨張画像とに基づいて
新境界線36を作成する。具体的には、膨張画像から縮
退画像を差し引くことによって、その膨張部分36で形
成された新境界線36を作成する。このとき、1画素分
膨張させる操作を行う度に、新境界線36を構成する各
膨張画素に膨張回数に対応した識別用のラベルを付け
る。例えば、第1回目は「7」、第2回目は「6」、
…、第8回目は「0」のラベルを付ける。
(D) Next, a new boundary line 36 is created based on the degenerated image degenerated in (b) and the dilated image dilated in (c). Specifically, a new boundary line 36 formed by the expanded portion 36 is created by subtracting the degenerated image from the expanded image. At this time, each time the operation of expanding by one pixel is performed, an identification label corresponding to the number of times of expansion is attached to each expanded pixel forming the new boundary line 36. For example, the first time is "7", the second time is "6",
..., labeled "0" for the 8th time.

【0025】(ニ)ついで、画像合成手段40は、画像
抽出手段12で抽出した抽出画像と、背景画像メモリ1
6から読み出された背景画像とを合成するとともに、こ
の合成時に、新境界線36を構成する画素について、そ
のラベルが大きいほど抽出画像側の重み係数の大きい重
み付けをした平均値演算を行い、求めた値でその輝度を
置換して合成画像を画像表示手段22に出力する。この
ため、画像表示手段22は境界部分に違和感のない合成
画像を表示する。
(D) Next, the image synthesizing means 40 and the extracted image extracted by the image extracting means 12 and the background image memory 1
6 is combined with the background image read from 6, and at the time of this combination, the larger the label of the pixel forming the new boundary line 36, the larger the weighting factor on the extracted image side is weighted, and the average value calculation is performed. The brightness is replaced with the obtained value and the composite image is output to the image display means 22. Therefore, the image display unit 22 displays a composite image with no discomfort at the boundary.

【0026】前記実施例では、境界線作成手段は、膨張
画像から縮退画像を差し引くことによって新境界線を作
成するようにしたが、本発明はこれに限るものでなく、
画像縮退手段で縮退した縮退画像と画像膨張手段で膨張
させた膨張画像とに基づいて新境界線を作成するもので
あればよい。
In the above embodiment, the boundary line creating means creates the new boundary line by subtracting the degenerated image from the dilated image, but the present invention is not limited to this.
What is necessary is just to create a new boundary line based on the degenerated image degenerated by the image degenerating means and the dilated image dilated by the image dilating means.

【0027】前記実施例では、画像縮退手段で抽出画像
を縮退した後に、この縮退画像を画像膨張手段で膨張さ
せるようにしたが、本発明はこれに限るものでない。例
えば、図3に示すように、画像抽出手段12で抽出した
抽出画像を画像膨張手段34aで膨張させた後に、この
膨張画像を画像縮退手段30aで縮退するようにしても
よい。または、図4に示すように、画像抽出手段12で
抽出した抽出画像を画像縮退手段30bで縮退するとと
もに画像膨張手段34bで膨張させるようにしてもよ
い。
In the above-mentioned embodiment, after the extracted image is degenerated by the image degenerating means, the degenerated image is expanded by the image expanding means, but the present invention is not limited to this. For example, as shown in FIG. 3, the extracted image extracted by the image extracting unit 12 may be expanded by the image expanding unit 34a, and then the expanded image may be contracted by the image contracting unit 30a. Alternatively, as shown in FIG. 4, the extracted image extracted by the image extracting unit 12 may be degenerated by the image degenerating unit 30b and expanded by the image expanding unit 34b.

【0028】前記実施例では、境界線作成手段は画像縮
退手段で縮退した縮退画像と画像膨張手段で膨張させた
膨張画像とに基づいて新境界線を作成するようにした
が、本発明はこれに限るものでなく、画像縮退手段を省
略して、境界線作成手段は、画像抽出手段で抽出した抽
出画像と、この抽出画像を画像膨張手段で膨張させた膨
張画像とに基づいて、新境界線を作成するようにしても
よい。例えば、膨張画像から抽出画像を差し引くことに
よって新境界線を作成するようにしてもよい。
In the above embodiment, the boundary line creating means creates a new boundary line based on the degenerated image degenerated by the image degenerating means and the dilated image dilated by the image dilating means. The borderline creating means omits the image shrinking means, and the borderline creating means creates a new boundary based on the extracted image extracted by the image extracting means and the expanded image obtained by expanding the extracted image by the image expanding means. A line may be created. For example, the new boundary line may be created by subtracting the extracted image from the expanded image.

【0029】[0029]

【発明の効果】請求項1の発明は、画像膨張手段で抽出
画像を膨張させ、境界線作成手段で抽出画像と膨張画像
から境界線を作成し、画像合成手段によって、抽出画像
と背景画像の合成時に、境界線部分の画素について、抽
出画像と背景画像のそれぞれに近いほど近い側の重み付
けを大きくした平均値演算で求めた値で、その輝度を置
換するようにしたので、境界線の線幅を従来例(例えば
2画素)より広くするとともに、この境界線部分の画素
の輝度を両側の画像(抽出画像と背景画像)の輝度を考
慮したより適切な値にすることができる。このため、従
来例とほぼ同程度の構成規模で、境界線に違和感の少な
い合成画像を表示することができる。
According to the invention of claim 1, the image expanding means expands the extracted image, the boundary creating means creates a boundary line from the extracted image and the expanded image, and the image combining means creates the extracted image and the background image. At the time of composition, for the pixels of the boundary line, the brightness was replaced by the value calculated by the average value calculation that increased the weight of the closer side to the extracted image and the background image, so the line width of the boundary line Can be made wider than that of the conventional example (for example, 2 pixels), and the brightness of the pixels of the boundary line portion can be set to a more appropriate value in consideration of the brightness of the images on both sides (the extracted image and the background image). For this reason, it is possible to display a composite image with less discomfort on the boundary line with a configuration scale approximately the same as the conventional example.

【0030】請求項2の発明は、画像縮退手段で抽出画
像を縮退させ、画像膨張手段で抽出画像を膨張させ、境
界線作成手段で縮退画像と膨張画像から境界線を作成
し、画像合成手段によって、抽出画像と背景画像の合成
時に、境界線部分の画素について、抽出画像と背景画像
のそれぞれに近いほど近い側の重み付けを大きくした平
均値演算で求めた値で、その輝度を置換するようにした
ので、境界線の線幅を従来例(例えば2画素)より広く
するとともに、この境界線部分の画素の輝度を両側の画
像(抽出画像と背景画像)の輝度を考慮したより適切な
値にすることができる。このため、従来例とほぼ同程度
の構成規模で、境界線に違和感の少ない合成画像を表示
することができる。
According to a second aspect of the present invention, the image shrinking unit shrinks the extracted image, the image expanding unit expands the extracted image, the boundary creating unit creates a boundary line from the shrunken image and the expanded image, and the image combining unit. Therefore, when the extracted image and the background image are combined, the brightness of the pixels in the boundary line is replaced with the value obtained by the average value calculation with the larger weighting on the side closer to the extracted image and the background image. Therefore, the line width of the boundary line is made wider than that of the conventional example (for example, 2 pixels), and the brightness of the pixel of the boundary line is set to a more appropriate value in consideration of the brightness of the images on both sides (extracted image and background image). can do. For this reason, it is possible to display a composite image with less discomfort on the boundary line with a configuration scale approximately the same as the conventional example.

【0031】請求項3の発明は、画像膨張手段で抽出画
像を膨張させ、この膨張画像を画像縮退手段で膨張前の
画像より小さな面積の画像に縮退させ、境界線作成手段
で膨張画像と縮退画像から境界線を作成し、画像合成手
段によって、抽出画像と背景画像の合成時に、境界線部
分の画素について、抽出画像と背景画像のそれぞれに近
いほど近い側の重み付けを大きくした平均値演算で求め
た値で、その輝度を置換するようにしたので、境界線の
線幅を従来例(例えば2画素)より広くするとともに、
この境界線部分の画素の輝度を両側の画像(抽出画像と
背景画像)の輝度を考慮したより適切な値にすることが
できる。このため、従来例とほぼ同程度の構成規模で、
境界線に違和感の少ない合成画像を表示することができ
る。
According to the third aspect of the present invention, the image expanding means expands the extracted image, the image shrinking means shrinks the expanded image into an image having a smaller area than the image before expansion, and the boundary creating means shrinks the expanded image and the expanded image. A boundary line is created from the image, and when the extracted image and the background image are combined by the image combining means, the pixels of the boundary line are calculated by an average value calculation in which the closer the extracted image and the background image are to each other, the closer is the weighting. Since the brightness is replaced with a different value, the line width of the boundary line is made wider than in the conventional example (for example, 2 pixels), and
It is possible to make the brightness of the pixels in the boundary line portion more appropriate values in consideration of the brightness of the images on both sides (the extracted image and the background image). Therefore, the configuration scale is almost the same as the conventional example,
It is possible to display a composite image with less discomfort on the boundary line.

【0032】請求項4の発明は、画像縮退手段で抽出画
像を縮退させ、画像膨張手段で抽出画像を膨張させ、境
界線作成手段で縮退画像と膨張画像から境界線を作成
し、画像合成手段によって、抽出画像と背景画像の合成
時に、境界線部分の画素について、抽出画像と背景画像
のそれぞれに近いほど近い側の重み付けを大きくした平
均値演算で求めた値で、その輝度を置換するようにした
ので、境界線の線幅を従来例(例えば2画素)より広く
するとともに、この境界線部分の画素の輝度を両側の画
像(抽出画像と背景画像)の輝度を考慮したより適切な
値にすることができる。このため、従来例とほぼ同程度
の構成規模で、境界線に違和感の少ない合成画像を表示
することができる。
According to a fourth aspect of the present invention, the image shrinking unit shrinks the extracted image, the image expanding unit expands the extracted image, the boundary creating unit creates a boundary line from the shrunken image and the expanded image, and the image combining unit. Therefore, when the extracted image and the background image are combined, the brightness of the pixels in the boundary line is replaced with the value obtained by the average value calculation with the larger weighting on the side closer to the extracted image and the background image. Therefore, the line width of the boundary line is made wider than that of the conventional example (for example, 2 pixels), and the brightness of the pixel of the boundary line is set to a more appropriate value in consideration of the brightness of the images on both sides (extracted image and background image). can do. For this reason, it is possible to display a composite image with less discomfort on the boundary line with a configuration scale approximately the same as the conventional example.

【0033】請求項5の発明は、請求項1、2、3また
は4記載の発明において、境界線作成手段が、被膨張画
像(抽出画像または縮退画像)を1画素分膨張させる操
作を複数回行うとともに、各膨張画素に膨張回数に対応
した識別用のラベルを付けて境界線を作成し、画像合成
手段の重み付け平均値演算が、境界線のラベルに対応し
た重み付けをして平均値を演算するようにしたので、請
求項1、2、3または4記載の発明の効果を有するとと
もに、境界線部分の画素の輝度を求める演算を簡単にす
ることができる。
According to a fifth aspect of the invention, in the invention of the first, second, third or fourth aspect, the boundary line creating means expands the image to be expanded (extracted image or reduced image) by one pixel a plurality of times. At the same time, each expansion pixel is labeled with an identification label corresponding to the expansion count to create a boundary line, and the weighted average value calculation of the image synthesizing means calculates the average value by weighting corresponding to the boundary line label. Since this is done, the effect of the invention described in claim 1, 2, 3 or 4 can be obtained, and the calculation for obtaining the luminance of the pixel in the boundary portion can be simplified.

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

【図1】本発明による画像合成装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of an image synthesizing apparatus according to the present invention.

【図2】図1の作用を説明するもので、(a)は合成画
像の抽出画像と背景画像の境界部分に狭幅(例えば1画
素幅)の境界線18が存在する状態の説明図、(b)は
(a)の抽出画像の外郭部(外周部)を複数画素分(例
えば3画素分)縮退した状態の説明図、(c)は重み付
け平均値演算をするための対象画素の領域となる新境界
線36を説明するもので、(b)の縮退画像の外郭部
(外周部)を複数画素分(例えば8画素分)膨張させた
膨張部分(すなわち新境界線)36の説明図である。
2A and 2B are diagrams for explaining the operation of FIG. 1, in which FIG. 2A is an explanatory diagram of a state in which a boundary line 18 having a narrow width (for example, one pixel width) exists at a boundary portion between the extracted image of the composite image and the background image (B) is an explanatory view of a state in which the outer peripheral portion (outer peripheral portion) of the extracted image of (a) is degenerated by a plurality of pixels (for example, three pixels), and (c) is a region of a target pixel for performing a weighted average value calculation. An explanatory view of an expanded portion (that is, a new boundary line) 36 obtained by expanding the outer peripheral portion (outer peripheral portion) of the reduced image of (b) by a plurality of pixels (e.g., 8 pixels). Is.

【図3】第2の実施例のよう部を示すブロック図であ
る。
FIG. 3 is a block diagram showing a portion as in a second embodiment.

【図4】第3の実施例の要部を示すブロック図である。FIG. 4 is a block diagram showing a main part of a third embodiment.

【図5】従来の画像合成装置のブロック図である。FIG. 5 is a block diagram of a conventional image synthesizing apparatus.

【図6】図5の作用を説明するもので、(a)は合成画
像の抽出画像と背景画像の境界部分に狭幅(例えば1画
素幅)の境界線18が存在する状態の説明図、(b)は
単純平均値をとるための対象画素を説明するもので、抽
出画像の境界線18とその外側の背景画像側の領域(1
画素幅)20の説明図である。
6A and 6B are diagrams for explaining the operation of FIG. 5, in which FIG. 6A is an explanatory view of a state where a narrow boundary line 18 (for example, one pixel width) exists at the boundary between the extracted image of the composite image and the background image; (B) illustrates a target pixel for obtaining a simple average value, and includes the boundary line 18 of the extracted image and the region (1
It is an explanatory view of (pixel width) 20.

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

10…原画像メモリ、 12…画像抽出手段、14、4
0…画像合成手段、 16…背景画像メモリ、18…境
界線、 20…外側の領域、22…画像表示手段 3
0、30a、30b…画像縮退手段、32…縮退部分、
34、34a、34b…画像膨張手段、36…新境界
線(膨張部分でもある)、 38…境界線作成手段。
10 ... Original image memory, 12 ... Image extracting means, 14, 4
0 ... Image synthesizing means, 16 ... Background image memory, 18 ... Boundary line, 20 ... Outside area, 22 ... Image display means 3
0, 30a, 30b ... Image degenerating means, 32 ... Degenerate portion,
34, 34a, 34b ... Image expanding means, 36 ... New boundary line (also expanded part), 38 ... Boundary line creating means.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】原画像から抽出した抽出画像を画像合成手
段で背景画像と合成し、この合成画像を画像表示手段で
表示するようにした画像合成装置において、前記抽出画
像を膨張させる画像膨張手段と、前記抽出画像と前記膨
張画像から境界線を作成して前記画像合成手段に出力す
る境界線作成手段とを具備してなり、前記画像合成手段
は、前記抽出画像と前記背景画像の合成時に、前記境界
線部分の画素について、前記抽出画像と前記背景画像の
それぞれに近いほど近い側の重み付けを大きくした平均
値演算で求めた値で、その輝度を置換してなることを特
徴とする画像合成装置。
1. An image synthesizing device for synthesizing an extracted image extracted from an original image with a background image by image synthesizing means, and displaying the synthesized image on image display means. And a boundary line creating unit that creates a boundary line from the extracted image and the expanded image and outputs the boundary line to the image combining unit, and the image combining unit is configured to combine the extracted image and the background image. The image composition, in which the brightness of the pixels in the boundary portion is replaced by a value obtained by an average value calculation in which the closer the extracted image and the background image are to each other, the closer they are apparatus.
【請求項2】原画像から抽出した抽出画像を画像合成手
段で背景画像と合成し、この合成画像を画像表示手段で
表示するようにした画像合成装置において、前記抽出画
像を縮退させる画像縮退手段と、この縮退画像を縮退前
の画像より大きな面積の画像に膨張させる画像膨張手段
と、前記縮退画像と前記膨張画像から境界線を作成して
前記画像合成手段に出力する境界線作成手段とを具備し
てなり、前記画像合成手段は、前記抽出画像と前記背景
画像の合成時に、前記境界線部分の画素について、前記
抽出画像と前記背景画像のそれぞれに近いほど近い側の
重み付けを大きくした平均値演算で求めた値で、その輝
度を置換してなることを特徴とする画像合成装置。
2. An image synthesizing device for synthesizing an extracted image extracted from an original image with a background image by image synthesizing means, and displaying the synthesized image on image display means. And an image expanding unit that expands the reduced image into an image having a larger area than the image before the shrinking, and a boundary line creating unit that creates a boundary line from the reduced image and the expanded image and outputs the boundary line to the image combining unit. The image synthesizing means comprises, when synthesizing the extracted image and the background image, with respect to pixels of the boundary line portion, an average value in which the closer the extracted image and the background image are to each other, the greater the weighting is on the closer side. An image synthesizing device characterized in that the brightness is replaced by a value obtained by calculation.
【請求項3】原画像から抽出した抽出画像を画像合成手
段で背景画像と合成し、この合成画像を画像表示手段で
表示するようにした画像合成装置において、前記抽出画
像を膨張させる画像膨張手段と、この膨張画像を膨張前
の画像より小さな面積の画像に縮退させる画像縮退手段
と、前記膨張画像と前記縮退画像から境界線を作成して
前記画像合成手段に出力する境界線作成手段とを具備し
てなり、前記画像合成手段は、前記抽出画像と前記背景
画像の合成時に、前記境界線部分の画素について、前記
抽出画像と前記背景画像のそれぞれに近いほど近い側の
重み付けを大きくした平均値演算で求めた値で、その輝
度を置換してなることを特徴とする画像合成装置。
3. An image synthesizing device for synthesizing an extracted image extracted from an original image with a background image by image synthesizing means, and displaying the synthesized image on image display means. An image shrinking unit that shrinks the expanded image into an image having a smaller area than the image before expansion, and a boundary line creating unit that creates a boundary line from the expanded image and the shrinked image and outputs the boundary line to the image combining unit. The image synthesizing means comprises, when synthesizing the extracted image and the background image, with respect to pixels of the boundary line portion, an average value in which the closer the extracted image and the background image are to each other, the greater the weighting is on the closer side. An image synthesizing device characterized in that the brightness is replaced by a value obtained by calculation.
【請求項4】原画像から抽出した抽出画像を画像合成手
段で背景画像と合成し、この合成画像を画像表示手段で
表示するようにした画像合成装置において、前記抽出画
像を縮退させる画像縮退手段と、前記抽出画像を膨張さ
せる画像膨張手段と、前記縮退画像と前記膨張画像から
境界線を作成して前記画像合成手段に出力する境界線作
成手段とを具備してなり、前記画像合成手段は、前記抽
出画像と前記背景画像の合成時に、前記境界線部分の画
素について、前記抽出画像と前記背景画像のそれぞれに
近いほど近い側の重み付けを大きくした平均値演算で求
めた値で、その輝度を置換してなることを特徴とする画
像合成装置。
4. An image synthesizing device for synthesizing an extracted image extracted from an original image with a background image by image synthesizing means, and displaying the synthesized image on image display means. And an image expanding unit for expanding the extracted image, and a boundary line creating unit for creating a boundary line from the reduced image and the expanded image and outputting the boundary line to the image combining unit. At the time of synthesizing the extracted image and the background image, with respect to the pixels of the boundary line portion, the brightness is determined by a value obtained by an average value calculation in which the closer to the extracted image and the background image, the closer the weight is An image synthesizing device characterized by being replaced.
【請求項5】境界線作成手段は、被膨張画像を1画素分
膨張させる操作を複数回行うとともに、各膨張画素に膨
張回数に対応した識別用のラベルを付けて境界線を作成
してなり、画像合成手段の重み付け平均値演算は、前記
境界線のラベルに対応した重み付けをして平均値を演算
してなる請求項1、2、3または4記載の画像合成装
置。
5. The boundary line creating means performs an operation of expanding the image to be expanded by one pixel a plurality of times, and creates a boundary line by attaching an identification label corresponding to the number of times of expansion to each expanded pixel. The image synthesizing apparatus according to claim 1, 2, 3 or 4, wherein the weighted average value calculation of the image synthesizing means calculates the average value by weighting corresponding to the label of the boundary line.
JP6270662A 1994-10-07 1994-10-07 Image compositing device Pending JPH08111815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6270662A JPH08111815A (en) 1994-10-07 1994-10-07 Image compositing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6270662A JPH08111815A (en) 1994-10-07 1994-10-07 Image compositing device

Publications (1)

Publication Number Publication Date
JPH08111815A true JPH08111815A (en) 1996-04-30

Family

ID=17489212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6270662A Pending JPH08111815A (en) 1994-10-07 1994-10-07 Image compositing device

Country Status (1)

Country Link
JP (1) JPH08111815A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8456577B2 (en) 2007-06-29 2013-06-04 Gvbb Holdings S.A.R.L. Method and apparatus for chroma key production

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8456577B2 (en) 2007-06-29 2013-06-04 Gvbb Holdings S.A.R.L. Method and apparatus for chroma key production

Similar Documents

Publication Publication Date Title
CN102893305B (en) Image processing equipment and image acquisition equipment
JPH09321972A (en) Image synthesis device and method
KR101819984B1 (en) Image synthesis method in real time
JP2005531943A (en) Method for reducing color bleed artifacts in digital images
JPH08111815A (en) Image compositing device
JP3117525B2 (en) Soft key generator
JP6403720B2 (en) Image processing apparatus, image processing method, and computer program
JPS62206556A (en) Artificial coloring method for picture image
JP2006072401A (en) Image compounding device and method
JPH11296666A (en) Image connection method, image connector and medium for storing image connection processing program
JPH10108003A (en) Image compositing device and image compositing method
KR101927865B1 (en) Method for providing video augmented reality service, set-top box and computer program
JPH0393370A (en) Picture processing unit
JP7458281B2 (en) Color correction device and its program
JP4466117B2 (en) Image synthesizer
JP2005020512A (en) Video signal processing apparatus
JP2713677B2 (en) Color image color change processing method and color image synthesis processing method
JP3642952B2 (en) Image composition method and apparatus, and information processing system
JPH05120417A (en) Color adjusting and picture synthesizing method and device for color picture
JP2005244536A (en) Image composition for generating composite image by overlapping image
JPS6219973A (en) Data compression method
JP2003158748A (en) Method and device for processing image
JP2021005753A (en) Image processing system and method, and image display device
JPH07134769A (en) Anti-aliasing processing method for image synthesis
JPS63144665A (en) Method for displaying character of the like in television video