JP2734099B2 - Blur image synthesis processing method - Google Patents

Blur image synthesis processing method

Info

Publication number
JP2734099B2
JP2734099B2 JP18100389A JP18100389A JP2734099B2 JP 2734099 B2 JP2734099 B2 JP 2734099B2 JP 18100389 A JP18100389 A JP 18100389A JP 18100389 A JP18100389 A JP 18100389A JP 2734099 B2 JP2734099 B2 JP 2734099B2
Authority
JP
Japan
Prior art keywords
image data
processing
mask
blurred
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.)
Expired - Fee Related
Application number
JP18100389A
Other languages
Japanese (ja)
Other versions
JPH0344776A (en
Inventor
智 小松
章吾 門川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Ltd filed Critical Fujitsu Ltd
Priority to JP18100389A priority Critical patent/JP2734099B2/en
Publication of JPH0344776A publication Critical patent/JPH0344776A/en
Application granted granted Critical
Publication of JP2734099B2 publication Critical patent/JP2734099B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 〔概 要〕 画像処理における、ぼかし画像の合成処理に関し、 ぼかした画像を違和感の無いように合成して、立体感
のある画像を得ることのできるぼかし画像合成処理方法
を目的とし、 第1から第7までの処理を有し、第1の処理は、前面
画像データと、背景画像データとをマスク画像データに
従って合成して、合成画像データを生成し、第2の処理
は、該合成画像データの全体に所定のぼかし処理を施
し、第3の処理は、該マスク画像データの全体に所定の
ぼかし処理を施し、第4の処理は、第2及び第3の処理
の両処理結果について、対応する画素間の画素情報の積
を生成し、第5の処理は、第3の処理の処理結果に所定
の反転処理を施し、第6の処理は、第5の処理の処理結
果と前記背景画像データとについて、対応する画素間の
画素情報の積を生成し、第7の処理は、第4及び第6の
処理の両処理結果について、対応する画素間の画素情報
の和によって、ぼかし合成画像データを生成するように
構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] A blurred image synthesizing method for synthesizing a blurred image in image processing so as to obtain an image with a three-dimensional effect by synthesizing the blurred image so as not to give a sense of discomfort. The first processing includes combining the front image data and the background image data in accordance with the mask image data to generate combined image data, In the processing, predetermined blurring processing is performed on the whole of the composite image data, in the third processing, predetermined blurring processing is performed on the entirety of the mask image data, and in the fourth processing, the second and third processing are performed. For both processing results, a product of pixel information between corresponding pixels is generated. In a fifth processing, a predetermined inversion processing is performed on the processing result of the third processing. In a sixth processing, a fifth processing is performed. Processing result and the background image data A seventh process generates a product of pixel information between corresponding pixels, and a seventh process generates blurred composite image data based on a sum of the pixel information between the corresponding pixels for both processing results of the fourth and sixth processes. The configuration is as follows.

〔産業上の利用分野〕[Industrial applications]

本発明は、画像処理における、ぼかし画像の合成処理
方法に関する。
The present invention relates to a blurred image combining method in image processing.

〔従来の技術と発明が解決しようとする課題〕[Problems to be solved by conventional technology and invention]

2次元の画像において、前面の画像と背景との間に距
離感をもたせる場合等に、前面画像あるいは背景をぼか
す手法がとられる。
In the case of giving a sense of distance between a front image and a background in a two-dimensional image, a method of blurring the front image or the background is used.

そのようなぼかし画像は、背景の前に前面画像になる
対象物を実際に置いて、カメラで撮影し、その際一方に
対する焦点をずらすことによって作成することができる
が、そのためには当然に、背景と対象物を一緒に撮影で
きるように準備しておくことが必要になるので、不便な
場合がある。従って、既存の画像データを使って、前面
画像と背景画像とを合成し、その場合に前面画像及び背
景画像にそれぞれ必要な任意のぼかしを加えることがで
きれば、極めて都合がよい。
Such a blurred image can be created by actually placing an object to be a foreground image in front of the background, photographing with a camera, and then shifting the focus on one side. Since it is necessary to prepare for shooting the background and the object together, it may be inconvenient. Therefore, it is extremely convenient if the front image and the background image can be combined using the existing image data, and in that case, any necessary blur can be added to the front image and the background image.

本発明は、ぼかした画像を違和感の無いように合成し
て、立体感のある画像を得ることのできるぼかし画像合
成処理方法を目的とする。
An object of the present invention is to provide a blurred image synthesizing method capable of synthesizing blurred images so as not to give a sense of incongruity and obtaining an image having a three-dimensional effect.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は、本発明の構成を示す処理の流れ図である。 FIG. 1 is a flowchart of a process showing the configuration of the present invention.

図はぼかし画像合成処理方法の構成を示し、本方法は
第1から第7までの処理を有し、第1の処理1は、前面
画像データ10と、背景画像データ11とをマスク画像デー
タ12に従って合成して、合成画像データ13を生成し、第
2の処理2は、合成画像データ13の全体に所定のぼかし
処理を施し、第3の処理3は、マスク画像データ12の全
体に所定のぼかし処理を施し、第4の処理4は、第2及
び第3の処理の両処理結果14及び15について、対応する
画素間の画素情報の積を生成し、第5の処理5は、第3
の処理の処理結果15に所定の反転処理を施し、第6の処
理6は、第5の処理の処理結果16と背景画像データ11と
について、対応する画素間の画素情報の積を生成し、第
7の処理7は、第4及び第6の処理の両処理結果17及び
18について、対応する画素間の画素情報の和によって、
ぼかし合成画像データ19を生成する 〔作 用〕 以上の通り、マスク画像をぼかして適用することによ
り、前面と背景の両画像の境界部分を滑らかに合成する
ので、合成画像によって極めて自然な距離感を出すこと
ができる。
The figure shows the configuration of a blurred image synthesizing processing method. This method has first to seventh processings. The first processing 1 is to convert front image data 10 and background image data 11 to mask image data 12. The second process 2 performs a predetermined blurring process on the entirety of the combined image data 13, and the third process 3 performs a predetermined blurring process on the entirety of the mask image data 12. A blurring process is performed, and a fourth process 4 generates a product of pixel information between corresponding pixels for both the processing results 14 and 15 of the second and third processes, and a fifth process 5 performs a third process 5
A predetermined inversion processing is performed on the processing result 15 of the processing of the above, and the sixth processing 6 generates a product of pixel information between corresponding pixels with respect to the processing result 16 of the fifth processing and the background image data 11, The seventh process 7 is a process result 17 of both the fourth and sixth processes and
For 18, by the sum of the pixel information between the corresponding pixels,
Generate blurred composite image data 19 [Operation] As described above, by applying a mask image by blurring, the boundary between the front image and the background image is smoothly synthesized. Can be issued.

〔実施例〕〔Example〕

第2図は画像処理システムの構成例であり、処理装置
20は入出力装置21からの画像合成指定により処理を開始
し、指定された前面画像データ22、背景画像データ23、
マスク画像データ24を入力して、第1図に示す処理を実
行し、合成画像データ25を出力する。こゝで、前面画像
データ22及び背景画像データ23は、画素ごとの濃度を示
す情報からなり、色彩画像の場合には、例えば公知のよ
うに各画素について赤、緑、青の3原色についての情報
があるので、各原色ごとに第1図の処理が行われる。
FIG. 2 shows an example of the configuration of an image processing system, and a processing device.
20 starts the process according to the image synthesis designation from the input / output device 21, and specifies the designated front image data 22, background image data 23,
The mask image data 24 is input, the processing shown in FIG. 1 is executed, and the composite image data 25 is output. Here, the front image data 22 and the background image data 23 include information indicating the density of each pixel. In the case of a color image, for example, as is well known, for each pixel, the three primary colors of red, green, and blue are used. Since there is information, the processing of FIG. 1 is performed for each primary color.

マスク画像データは各画素について、例えば0〜255
の値をとるマスク値を示す情報で、最初に入力するマス
ク画像データでは前面画像データから前面画像として取
り出す部分の画素のマスク値を255、除く部分のマスク
値を0にしておく。
The mask image data is, for example, 0 to 255 for each pixel.
In the mask image data to be input first, the mask value of a pixel to be extracted as a front image from the front image data is set to 255, and the mask value of a portion to be excluded is set to 0.

処理装置20は第1図に示すように、以上の画像データ
の各単色についての前面画像データ10、背景画像データ
11及びマスク画像データ12を以下に述べるように処理す
る。なおマスク画像データ12は各単色に共通に前記のよ
うに前面画像を切り出すマスク内容を有する。
As shown in FIG. 1, the processing device 20 includes front image data 10 and background image data for each single color of the above image data.
11 and the mask image data 12 are processed as described below. Note that the mask image data 12 has the contents of a mask for cutting out the front image as described above in common for each single color.

処理ステップ1は背景画像データ11と前面画像データ
10の画像をそのまゝ、マスク画像データ12に従って合成
する通常の合成処理であり、マスク画像データ12を参照
して、合成画像データ13の画素としてマスク値255に対
応する画素には前面画像データ10の画素、マスク値0に
対応する画素には背景画像データ11の画素を出力する。
Processing step 1 consists of background image data 11 and front image data
This is a normal combining process for combining the 10 images as they are in accordance with the mask image data 12, and referring to the mask image data 12, the pixels corresponding to the mask value 255 as the pixels of the combined image data 13 are the front image data. The pixels of the background image data 11 are output to the ten pixels and the pixels corresponding to the mask value 0.

処理ステップ2は、合成画像データ13を入力として、
画像全体にぼかしの処理を行う。ぼかし処理は公知のよ
うに(例えば総研出版株式会社発行「コンピュータ画像
処理入門」第43頁参照)、第3図に詳細を示す処理ステ
ップ30で、フーリエ変換によって画素の濃度値データを
空間領域から空間周波数領域のデータに変換し、処理ス
テップ31でこの周波数領域データを指定のぼかし率に応
じたガウス窓関数で処理して、低周波数から高周波数に
行くに従って大きく減衰させる周波数減数処理を行った
後、処理ステップ32でフーリエ逆変換によって画素の濃
度値に戻す。
In processing step 2, the composite image data 13 is input,
Perform blur processing on the entire image. The blurring process is known (for example, see “Introduction to Computer Image Processing”, page 43, issued by Soken Shuppan Co., Ltd.). In processing step 30 shown in detail in FIG. The data was converted into spatial frequency domain data, and in the processing step 31, this frequency domain data was processed with a Gaussian window function corresponding to the specified blurring rate, and a frequency reduction process was performed to attenuate greatly from a low frequency to a high frequency. Thereafter, in processing step 32, the density is returned to the pixel density value by the inverse Fourier transform.

このようにして、境界線部分のように濃度の変化の急
激な部分に多い高周波成分を減少させることにより、全
体が滑らかな感じにぼかされる。なお、ぼかし率は必要
な距離感等の程度に応じて定めた値が、例えば先に入力
された合成処理指定のパラメータとして指定されている
ものとする。
In this way, by reducing high-frequency components, which are often present in a portion where the density changes rapidly, such as a boundary portion, the entire image is blurred to a smooth feeling. It is assumed that a value determined according to a required degree of distance or the like is specified as the blurring ratio, for example, as a parameter of the previously input synthesis processing specification.

処理ステップ3では、マスク画像データ12について前
記と同様のぼかし処理を行って、ぼかしマスク画像デー
タ15を生成し、このぼかしマスク画像データ15と処理ス
テップ2の出力である全面ぼかし画像データ14につい
て、処理ステップ4では後者の画素の濃度値bと前者の
対応するマスク値mとの間で、積を求める演算b×m/25
5を行うことによって、ぼかしたマスクによって合成画
像から前面画像を再び切り出し、結果をぼかし前面画像
データ17とする。
In the processing step 3, the same blur processing as described above is performed on the mask image data 12 to generate the blur mask image data 15, and the blur mask image data 15 and the whole-surface blur image data 14 output from the processing step 2 are processed. In processing step 4, an operation b × m / 25 for obtaining a product between the density value b of the latter pixel and the corresponding mask value m of the former pixel
By performing step 5, the front image is cut out again from the composite image using the blurred mask, and the result is blurred as front image data 17.

次に背景を処理するために、処理ステップ5でぼかし
マスク画像データ15のマスク値を反転する。反転処理
は、マスク画像データ15の各画素に対するマスク値mか
ら255−mをマスク値として、ぼかし反転マスク画像デ
ータ16とする。
Next, in order to process the background, the mask value of the blur mask image data 15 is inverted in processing step 5. In the inversion processing, the mask value m to 255-m for each pixel of the mask image data 15 is set as a mask value, and the blurred inverted mask image data 16 is obtained.

このぼかし反転マスク画像データ16と背景画像データ
11について、処理ステップ6で前記処理ステップ4と同
様の積を求める演算を実行し、ぼかし背景画像データ18
を得る。従ってぼかし背景画像データ18はぼかしたマス
クによって背景を切り出した画像である。最後に処理ス
テップ7でぼかし前面画像データ17とぼかし背景画像デ
ータ18の対応する画素間で画素値の和を求めることによ
り、ぼかし合成画像データ19を得る。
This blur inversion mask image data 16 and background image data
With respect to 11, a calculation for obtaining a product similar to that of the processing step 4 is executed in the processing step 6, and the blurred background image data 18 is obtained.
Get. Therefore, the blurred background image data 18 is an image obtained by cutting out the background using a blurred mask. Finally, in processing step 7, the sum of the pixel values between the corresponding pixels of the blurred front image data 17 and the blurred background image data 18 is obtained to obtain blurred composite image data 19.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかなように本発明によれば、画像
処理における、ぼかし画像の合成処理において、ぼかし
た画像を違和感の無いように合成して、画像データの合
成処理のみによって立体感のある画像を得ることができ
るという著しい効果がある。
As is apparent from the above description, according to the present invention, in the blurring image synthesis processing in the image processing, the blurred images are synthesized so as not to have a sense of incongruity, and an image having a three-dimensional effect is obtained only by the image data synthesis processing. Can be obtained.

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

第1図は本発明の構成を示す処理の流れ図、 第2図は画像処理システムの構成例ブロック図、 第3図はぼかし処理の流れ図である。 図において、 1〜7、30〜32は処理ステップ、 10、22は前面画像データ、 11、23は背景画像データ、 12、24はマスク画像データ、 13は合成画像データ、 14は全面ぼかし画像データ、 15はぼかしマスク画像データ、 16はぼかし反転マスク画像データ、 17はぼかし前面画像データ、 18はぼかし背景画像データ、 19、25はぼかし合成画像データ、 20は処理装置、21は入出力装置 を示す。 FIG. 1 is a flowchart of a process showing the configuration of the present invention, FIG. 2 is a block diagram of a configuration example of an image processing system, and FIG. 3 is a flowchart of a blurring process. In the figure, 1 to 7, 30 to 32 are processing steps, 10 and 22 are front image data, 11 and 23 are background image data, 12 and 24 are mask image data, 13 is composite image data, and 14 is whole-surface blurred image data. , 15 is a blur mask image data, 16 is a blur inverted mask image data, 17 is a blur front image data, 18 is a blur background image data, 19, 25 is a blur composite image data, 20 is a processing device, and 21 is an input / output device. Show.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第1から第7までの処理を有し、 第1の処理(1)は、前面画像データ(10)と、背景画
像データ(11)とをマスク画像データ(12)に従って合
成して、合成画像データ(13)を生成し、 第2の処理(2)は、該合成画像データ(13)の全体に
所定のぼかし処理を施し、 第3の処理(3)は、該マスク画像データ(12)の全体
に所定のぼかし処理を施し、 第4の処理(4)は、第2及び第3の処理の両処理結果
(14)(15)について、対応する画素間の画素情報の積
を生成し、 第5の処理(5)は、第3の処理の処理結果(15)に所
定の反転処理を施し、 第6の処理(6)は、第5の処理の処理結果(16)と前
記背景画像データ(11)とについて、対応する画素間の
画素情報の積を生成し、 第7の処理(7)は、第4及び第6の処理の両処理結果
(17)(18)について、対応する画素間の画素情報の和
によって、ぼかし合成画像データ(19)を生成するよう
に構成されていることを特徴とするぼかし画像合成処理
方法。
An image processing apparatus includes first to seventh processing, wherein a first processing (1) combines front image data (10) and background image data (11) according to mask image data (12). The second process (2) performs a predetermined blurring process on the whole of the combined image data (13), and the third process (3) performs the masking process on the mask. A predetermined blurring process is performed on the entire image data (12), and a fourth process (4) is a process in which pixel information between corresponding pixels is obtained for both processing results (14) and (15) of the second and third processes. The fifth processing (5) performs a predetermined inversion processing on the processing result (15) of the third processing, and the sixth processing (6) performs the processing result ( 16) and the background image data (11), a product of pixel information between corresponding pixels is generated, and a seventh process (7) includes a fourth and a sixth process Both processing the results (17) (18), accommodated by the sum of pixel information between pixels, blurred image synthesis processing method, characterized by being configured to generate a blurred synthesized image data (19) of.
JP18100389A 1989-07-12 1989-07-12 Blur image synthesis processing method Expired - Fee Related JP2734099B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18100389A JP2734099B2 (en) 1989-07-12 1989-07-12 Blur image synthesis processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18100389A JP2734099B2 (en) 1989-07-12 1989-07-12 Blur image synthesis processing method

Publications (2)

Publication Number Publication Date
JPH0344776A JPH0344776A (en) 1991-02-26
JP2734099B2 true JP2734099B2 (en) 1998-03-30

Family

ID=16093037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18100389A Expired - Fee Related JP2734099B2 (en) 1989-07-12 1989-07-12 Blur image synthesis processing method

Country Status (1)

Country Link
JP (1) JP2734099B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4655404B2 (en) * 2001-04-27 2011-03-23 澁谷工業株式会社 Article inspection method
JP5642457B2 (en) * 2010-08-31 2014-12-17 オリンパス株式会社 Display control apparatus and display control method
JP5689693B2 (en) * 2011-01-13 2015-03-25 株式会社ディジタルメディアプロフェッショナル Drawing processor

Also Published As

Publication number Publication date
JPH0344776A (en) 1991-02-26

Similar Documents

Publication Publication Date Title
US6094511A (en) Image filtering method and apparatus with interpolation according to mapping function to produce final image
JP3198656B2 (en) Video signal synthesizing apparatus and method
US20070071353A1 (en) Denoising method, apparatus, and program
EP0540313B1 (en) Color adjustment for smoothing a boundary between color images
US7242412B2 (en) Method and apparatus for expanding a source pixel in a digital image
JPH04227585A (en) Method and apparatus for forming improved control-data line
JPH02503241A (en) Digital image noise suppression method using SVD block transform
JP3581835B2 (en) Color conversion method and apparatus in chroma key processing
JPH0916783A (en) Apparatus and method for outline image detection/thinning ofobject
JP2734099B2 (en) Blur image synthesis processing method
JP3492151B2 (en) Image sharpness processing method and apparatus, and storage medium storing program
US6392659B1 (en) Image connecting method, image connecting apparatus, and storage medium storing an image connecting program
JPH05258054A (en) Device for actualizing two-dimensional digital filter
JPS60171573A (en) Picture emphasis system in picture processing system
JP2003070010A (en) Two-plate image capture device
JP2916607B2 (en) Image magnifier
JP2002095007A (en) Chroma key device
JP2599040B2 (en) Image processing method
JP2002506600A (en) Image interpolation method
JP3964238B2 (en) Image processing method, apparatus, and program
JP2000332998A (en) Image processor
JP2000293680A (en) Signal processor
CN111586393A (en) Underwater three-dimensional image imaging system and method
JPH07325905A (en) Endless processing method for image and image processor
JP2000293682A (en) Picture processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees