JP2000057317A - Image synthesizing method and computer readable storage medium recording image synthesizing program - Google Patents

Image synthesizing method and computer readable storage medium recording image synthesizing program

Info

Publication number
JP2000057317A
JP2000057317A JP10223297A JP22329798A JP2000057317A JP 2000057317 A JP2000057317 A JP 2000057317A JP 10223297 A JP10223297 A JP 10223297A JP 22329798 A JP22329798 A JP 22329798A JP 2000057317 A JP2000057317 A JP 2000057317A
Authority
JP
Japan
Prior art keywords
image
mask
synthesizing
images
uplink
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
JP10223297A
Other languages
Japanese (ja)
Inventor
Yoko Yamaga
洋子 山賀
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP10223297A priority Critical patent/JP2000057317A/en
Publication of JP2000057317A publication Critical patent/JP2000057317A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce an arithmetic processing burden, to prevent an arithmetic processing delay and to quickly synthesize images when plural material images are put on an original image for synthesizing them. SOLUTION: An image synthesizer 10 is provided with layout data 1 which are used for synthesizing images, an external storage 2 serving as a means which inputs the images (a, b, c ...) of file names described in the data 1, an image information interpretation part 5 where the contents of the data 1 are analyzed, a static image processing part 3 where the images (a, b, c ...) are processed and synthesized according to the parameter obtained as the result analyzed by the part 5 and an output means 4 such as a monitor or a printer which outputs the image data. In particular, the part 3 is provided with an image synthesizing part 31 (arithmetic means) which includes an object part (e.g. a human dace) about the plural materiel images when plural images are put on an original image (e.g. a background image) for synthesizing them, segments a range winder than the object part and completely transmits the parts other than the segmenting range of the material images.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータ処理
によって、プリミティブに分かれたイラスト画像や写真
画像をレイアウトして合成するデジタル画像の合成方法
及び合成プログラムを記録したコンピュータ読み取り可
能な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital image synthesizing method for laying out and synthesizing illustration images and photographic images divided into primitives by computer processing, and a computer-readable recording medium storing a synthesizing program.

【0002】[0002]

【従来の技術】従来より、背景等の原画像の前面にイラ
スト画像や写真画像等の素材画像を重ね合わせて合成す
る場合、素材画像の目的部分を残して不要部分を削除す
るときにはマスク処理を行うのが一般的である。かかる
マスク処理とは、素材画像の目的部分を残す場合、これ
以外の不要部分を透明にして下方の背景等の画像が透け
て見えるようにする処理をいう。
2. Description of the Related Art Conventionally, when a material image such as an illustration image or a photographic image is superimposed on an original image such as a background and synthesized, mask processing is performed when an unnecessary portion is deleted while leaving a target portion of the material image. It is common to do. Such a mask process is a process of, when a target portion of a material image is left, making other unnecessary portions transparent so that an image such as a lower background can be seen through.

【0003】具体的には、この処理で用いられるマスク
は、例えば次式に示すように、下方の画像を構成する画
素の値に上方の画像を構成する画素の値を加算すること
によって合成処理を行う際、上方の画像を構成する画素
の値にマスクの値MCを掛け、下方の画像を構成する画
素の値に(1−MC)を掛けることによって、上方の素
材画像の値を変化させるものである。
Specifically, the mask used in this processing is composed by adding the values of the pixels forming the upper image to the values of the pixels forming the lower image, for example, as shown in the following equation. Is performed, the value of the pixel forming the upper image is multiplied by the value MC of the mask, and the value of the pixel forming the lower image is multiplied by (1−MC) to change the value of the upper material image. Things.

【0004】次式は、かかるマスク処理を含む画像合成
処理を行うための計算式である。
The following formula is a calculation formula for performing an image synthesizing process including such a mask process.

【0005】BC=SC×MC+BC×(1−MC) BC:下方の画像を構成する画素の値 SC:合成する上方の画像を構成する画素の値 MC:マスクの値。完全透過が0.0、不透過が1.0、マスク
画像がない場合は常に1 すなわち、下方の画像の画素値BCに上方の画像の画素値
SCを加算する際に、画素値SCに所定のマスク値MCを積算
し、画素値BCに(1−MC)を積算することによっ
て、上方及び下方の画像の透過度を変化させる。例えば
不要部分を完全に透明としたい場合には、マスク値MCを
0とする。
BC = SC × MC + BC × (1−MC) BC: The value of the pixel forming the lower image SC: The value of the pixel forming the upper image to be synthesized MC: The value of the mask Full transparency is 0.0, opacity is 1.0, always 1 if there is no mask image.
When SC is added, the pixel value SC is multiplied by a predetermined mask value MC, and the pixel value BC is multiplied by (1−MC) to change the transmittance of the upper and lower images. For example, when it is desired to make the unnecessary portion completely transparent, the mask value MC is set to 0.

【0006】そして、従来における合成処理において、
下方の画像と上方の画像との境界線を滑らかにしたい場
合には、上記の合成処理の際に、重ね合わせられる画像
の境界線を滑らかにするいわゆるアンチエイリアス処理
等の円滑化処理を行う。
[0006] In the conventional synthesis processing,
When it is desired to smooth the boundary between the lower image and the upper image, a smoothing process such as a so-called anti-aliasing process for smoothing the boundary of the superimposed images is performed at the time of the synthesizing process.

【0007】この円滑化処理とは、重ね合わせられる2
つの画像の境界線において、各々の画素の中間値を算出
することによって画素の色を混ぜ合わせる演算処理を行
うものである。具体的には、目的部分と不要部分との境
界線付近の画素のマスク値を0.0〜1.0の範囲の中間値と
することによりグレースケールで表現し、重ね合わせら
れる画像の境界線付近の画素値を混ぜ合わせて、境界線
をスムーズに表現するものである。
[0007] This smoothing processing means that the two
At the boundary between two images, an arithmetic process of mixing the colors of the pixels by calculating an intermediate value of each pixel is performed. Specifically, the mask value of the pixel near the boundary between the target part and the unnecessary part is expressed in grayscale by setting the mask value to an intermediate value in the range of 0.0 to 1.0, and the pixel value near the boundary of the superimposed image is Are mixed to smoothly express the boundary line.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、原画像
に複数の素材画像を繰り返し重ねて合成するときは、円
滑化処理を行った箇所にさらに他の素材画像を重ねて合
成することがあり、円滑化処理を行った箇所についてさ
らに円滑化処理を行わなければならない場合がある。
However, when a plurality of material images are repeatedly superimposed on the original image and synthesized, another material image may be further superimposed and synthesized on the place where the smoothing process has been performed. In some cases, it is necessary to further perform a smoothing process on the portion where the conversion process is performed.

【0009】かかる場合には、円滑化処理を行った箇所
の素材画像と背景画像の色の中間値と、これに重ねられ
る他の素材画像との中間値をさらに演算することとな
り、それによるメモリ負担が多大であり、演算処理が遅
延するという問題が生じた。
In such a case, the intermediate value between the color of the material image and the background image at the place where the smoothing process has been performed and the intermediate value of the other material image to be superimposed on the intermediate value are further calculated. There is a problem that the burden is great and the arithmetic processing is delayed.

【0010】そこで、本発明は、上記事情に鑑みて成さ
れたものであり、その目的は、原画像に複数の素材画像
を重ねて合成する際の演算処理の負担を軽減し、演算処
理の遅延を防止し、迅速な画像合成処理を行うことので
きる画像合成方法及び画像合成プログラムを記録したコ
ンピュータ読み取り可能な記録媒体を提供することにあ
る。
Accordingly, the present invention has been made in view of the above circumstances, and an object of the present invention is to reduce the load of arithmetic processing when a plurality of material images are superimposed on an original image and synthesized. It is an object of the present invention to provide an image synthesizing method and a computer-readable recording medium storing an image synthesizing program, which can prevent delay and perform image synthesizing processing quickly.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
に、本願請求項1に係る発明は、原画像に複数の素材画
像を重ねて合成する画像合成方法において、画素の値が
0又は1で表現された2値マスク画像を用いることによ
って、前記複数の素材画像のうち任意の素材画像につい
て、これの目的部分を含み且つ該目的部分よりも広い範
囲を区分してこの区分範囲以外の範囲を完全に透過化し
たうえで、該任意の素材画像と前記原画像とを合成し、
前記区分範囲と前記原画像との境界部分を覆うように且
つ前記目的部分には重複しないようにして、他の素材画
像を合成することを特徴とするものである。
According to a first aspect of the present invention, there is provided an image synthesizing method for overlaying a plurality of material images on an original image and synthesizing a plurality of material images. By using the binary mask image expressed in the above, an arbitrary material image of the plurality of material images is divided into a range including the target portion thereof and a range wider than the target portion, and a range other than the divided range. After completely transparentizing, the arbitrary material image and the original image are combined,
Another material image is synthesized so as to cover a boundary portion between the division range and the original image and not to overlap the target portion.

【0012】本願請求項2に係る発明は、請求項1記載
の画像合成方法において、該画像合成方法によって合成
された画像を原画像として、該画像合成方法を繰り返し
行うことを特徴とするものである。
According to a second aspect of the present invention, in the image synthesizing method according to the first aspect, the image synthesized by the image synthesizing method is repeatedly used as an original image. is there.

【0013】ここで、「原画像」とは、例えば背景等の
ように、素材画像が重ねられたときに最下層に配置さ
れ、画面等に表示されたときに最も奥に表示される画像
をいい、重ねられた素材画像によってその一部又は全部
が隠されるものをいう。
[0013] Here, the "original image" refers to an image, such as a background, which is arranged at the lowest layer when material images are superimposed and which is displayed at the back when displayed on a screen or the like. That is, a part or the whole of which is hidden by the overlapped material image.

【0014】「目的部分」とは、素材画像のうち、透過
化されることなく原画像に重ねられ、原画像に優先させ
て表示しようとする部分をいう。
The "target portion" is a portion of the material image which is superimposed on the original image without being made transparent, and is to be displayed with priority over the original image.

【0015】「完全に透過化」とは、画像の一部又は全
部を完全に透明とすることによって下方の画像がそのま
ま透けて見えるようにすることをいい、具体的には、例
えば次式による演算処理において、UMC=0とすることに
よって、UMC×MCの値を0とし、1−UMC×MCの値を1と
して演算処理前後のBCの値を算出することをいう。
"Completely transparent" means that a part or the whole of an image is made completely transparent so that the lower image can be seen through as it is. Specifically, for example, the following equation is used. In the arithmetic processing, the value of UMC × MC is set to 0 by setting UMC = 0, and the value of BC before and after the arithmetic processing is calculated by setting the value of 1−UMC × MC to 1.

【0016】BC=SC×UMC×MC+BC×(1−UMC×MC) BC:下方の画像を構成する画素の値 SC:合成する上方の画像を構成する画素の値 MC:マスクの値。0.0〜1.0(完全透過が0.0、不透過が
1.0)、マスク画像がない場合は常に1 UMC:2値マスクの値。完全透過が0.0、不透過が1.0の
2値、このマスク画像がない場合は常に1 このような本願請求項1又は2に記載の発明によれば、
画素の値が0又は1で表現された2値マスクを用いて素
材画像の透過化処理を行うため、画素の値が中間値とな
ることがなく、合成処理における演算量を低減すること
ができ、演算処理に要するメモリ量を軽減し、演算処理
の遅延を防止することができる。
BC = SC.times.UMC.times.MC + BC.times. (1-UMC.times.MC) BC: The value of the pixel forming the lower image SC: The value of the pixel forming the upper image to be synthesized MC: The value of the mask. 0.0-1.0 (0.0 for complete transmission, opaque for
1.0) If there is no mask image, always 1 UMC: Value of binary mask. According to the invention as set forth in claim 1 or 2 of the present application, perfect transmission is 0.0, opacity is a binary value of 1.0, and when there is no mask image, it is always 1.
Since the material image is made transparent using a binary mask in which the pixel value is represented by 0 or 1, the pixel value does not become an intermediate value, and the amount of calculation in the combining process can be reduced. In addition, the amount of memory required for the arithmetic processing can be reduced, and the delay of the arithmetic processing can be prevented.

【0017】また、この2値マスクは、目的部分を含み
且つ目的部分よりも広い範囲を区分してこの区分範囲以
外の範囲を完全に透過化するため、原画像に任意の素材
画像を合成した直後にあっては、目的部分の周囲に余剰
部分がジャギーとして生じることとなる。ところが、さ
らに他の素材画像を合成するときは、他の素材画像を区
分範囲と原画像との境界部分を覆うように合成するた
め、最終的にはジャギーを隠せることとなり、合成画像
の仕上がりを損なうことがない。
The binary mask includes a target portion and divides a range wider than the target portion to completely transmit a range other than the divided range. Therefore, an arbitrary material image is synthesized with the original image. Immediately after, a surplus portion will be generated as a jaggy around the target portion. However, when combining other material images, the other material images are combined so as to cover the boundary between the division range and the original image. There is no loss.

【0018】本願請求項3記載の発明は、請求項1又は
2記載の画像合成方法であって、前記他の素材画像の合
成を行った後に、前記目的部分の縁部について円滑化処
理を行うものである。
According to a third aspect of the present invention, there is provided the image synthesizing method according to the first or second aspect, wherein the smoothing process is performed on the edge of the target portion after the other material image is synthesized. Things.

【0019】ここで、「円滑化処理」とは、重ね合わせ
た二つの画像の境界線を滑らかにすることをいい、具体
的には例えば、いわゆるアンチエイリアス処理に代表さ
れるような、重ね合わせられる2つの画像の境界線にお
いて、各々の画素の中間値を算出することによって画素
の色を混ぜ合わせる演算処理を行うことをいう。
Here, "smoothing processing" refers to smoothing a boundary between two superimposed images, and more specifically, for example, superimposition as represented by so-called anti-aliasing processing. This refers to performing an arithmetic process for mixing pixel colors by calculating an intermediate value of each pixel at a boundary between two images.

【0020】このような本願請求項3記載の発明によれ
ば、該当する部分の一連の合成処理を終了した後に、複
雑な演算となる傾向のある円滑化処理を行うため、演算
の複雑化を低減することができる。
According to the third aspect of the present invention, after a series of synthesizing processes of a corresponding portion is completed, a smoothing process which tends to be a complicated operation is performed. Can be reduced.

【0021】本願請求項4記載の発明は、請求項1乃至
3記載の画像合成方法であって、前記複数の素材画像の
合成処理を行うにあたり、各素材画像の合成処理を行う
毎に、合成結果を逐次表示するものである。
According to a fourth aspect of the present invention, there is provided the image synthesizing method according to any one of the first to third aspects, wherein the synthesizing process of the plurality of material images is performed every time the synthesizing process of each material image is performed. The results are displayed sequentially.

【0022】このような本願請求項4記載の発明によれ
ば、合成結果を他の合成処理から独立させて逐次表示さ
せるため、一連の演算処理結果を記憶保持しておく手段
の負担を軽減させることができ、演算処理の迅速化を図
ることができる。なお、シーケンシャルな表示は通信を
利用するWWWの画像表示などにも利用できる。
According to the fourth aspect of the present invention, since the synthesized result is sequentially displayed independently of other synthesizing processes, the load on the means for storing and holding a series of arithmetic processing results is reduced. This can speed up the arithmetic processing. The sequential display can also be used for WWW image display using communication.

【0023】本願請求項5記載の発明は、原画像に複数
の素材画像を重ねて合成する画像合成プログラムを記録
したコンピュータ読み取り可能な記録媒体において、画
素の値が0又は1で表現された2値マスクを供給するこ
とによって、前記複数の素材画像のうち任意の素材画像
についてこれの目的部分を含み且つ該目的部分よりも広
い範囲を区分し、該任意の素材画像の該区分範囲以外の
範囲を完全に透過化するステップを含むことを特徴とす
るものである。
According to a fifth aspect of the present invention, there is provided a computer-readable recording medium having recorded thereon an image synthesizing program for synthesizing a plurality of material images by superimposing the plurality of material images on an original image. By supplying a value mask, an arbitrary material image of the plurality of material images includes a target part thereof and is divided into a wider range than the target part, and a range other than the division range of the arbitrary material image is divided. Is completely permeated.

【0024】このような本願請求項5記載の発明によれ
ば、画像合成処理の複雑化を防止するための2値マスク
を提供するステップを含むことにより画像処理の迅速化
を図ることができるという有用なプログラムの保存、運
搬、実行等がより簡便に行うことができ、複数枚の画像
合成処理をより容易に且つ迅速なものとすることができ
る。
According to the fifth aspect of the present invention, it is possible to speed up image processing by including a step of providing a binary mask for preventing the image synthesis processing from becoming complicated. Useful programs can be stored, transported, executed, and the like more easily, and the process of synthesizing a plurality of images can be made easier and faster.

【0025】[0025]

【発明の実施の形態】以下に、本発明の実施形態につい
て詳細に説明する。図1は、本実施形態に係る画像合成
装置10を示すものである。
Embodiments of the present invention will be described below in detail. FIG. 1 shows an image synthesizing apparatus 10 according to the present embodiment.

【0026】同図において画像合成装置10は、画像合
成のためのレイアウトデータ1と、これに記述してある
ファイル名の画像a,b,c…を入力する手段である外部
記憶装置2と、レイアウトデータ1の内容を解析する画
像情報解釈部5と、これにより解析された結果得られた
パラメータに従って画像a,b,c…を加工・合成する静
止画像処理部3と、画像データを出力する、例えばモニ
タ、プリンタ等の出力手段4とを有するものである。
In FIG. 1, an image synthesizing apparatus 10 includes a layout data 1 for synthesizing an image, an external storage device 2 for inputting images a, b, c... An image information interpreting unit 5 for analyzing the contents of the layout data 1, a still image processing unit 3 for processing and synthesizing images a, b, c... According to parameters obtained as a result of the analysis, and outputting image data. And output means 4 such as a monitor and a printer.

【0027】外部記憶装置2は、レイアウトデータ1や
画像を保存しておくものであり、例えばハードディス
ク、CD−ROM等の記録媒体が用いられる。なお、こ
こに保存される画像には、原画像である背景画像、この
背景画像に対して合成される素材画像の他、素材画像の
透過処理に用いられる従来のマスク画像、及び後述する
アップリンクマスク画像が含まれる。
The external storage device 2 stores the layout data 1 and images, and uses a recording medium such as a hard disk and a CD-ROM. The images stored here include a background image which is an original image, a material image to be synthesized with the background image, a conventional mask image used for a transparency process of the material image, and an uplink described later. A mask image is included.

【0028】静止画像処理部3は、外部記憶装置2から
読み出された画像を一旦保存しておくための画像保存用
メモリ30と、前記レイアウトデータ1からの情報に基
づいて画像の拡大、縮小、回転、透過等の加工を行う画
像加工部32と、画像合成処理を行う画像合成部31
と、背景画像、合成後の画像を記憶しておく合成後画像
用メモリ33とから構成される。
The still image processing unit 3 includes an image storage memory 30 for temporarily storing the image read from the external storage device 2, and enlargement and reduction of the image based on the information from the layout data 1. Processing unit 32 that performs processing such as rotation, rotation, and transmission, and image synthesis unit 31 that performs image synthesis processing
And a combined image memory 33 for storing the background image and the combined image.

【0029】画像合成部31は、通常の画像の合成処理
を行うとともに、2値マスクであるアップリンクマスク
画像を用いた合成処理をも行うものである。
The image synthesizing section 31 performs a normal image synthesizing process and also performs a synthesizing process using an uplink mask image which is a binary mask.

【0030】ここで、通常の画像合成処理とは、具体的
には、背景画像を構成する画素の値と、素材画像を構成
する画像の値とを演算するものであり、必要に応じて従
来より用いられているマスク画像による画像処理を行う
ことである。
Here, the ordinary image synthesizing process specifically calculates a value of a pixel forming a background image and a value of an image forming a material image. This is to perform image processing using a mask image that is more used.

【0031】この従来より用いられているマスク画像と
は、素材画像をマスクするためのもので、マスク画像の
各画素は素材画像の各画素に1対1に対応し、その素材画
像の画素が表示されるかどうかを表現する。また、素材
画像をマスクした時に、マスクの境界線部分にアンチエ
イリアス(円滑化)処理を行い、境界線をスムーズに表
示させる様に、グレースケールの画像になっている。つ
まり、0.0の時全く素材画素の画素は表示されず、1.0の
時完全に表示され、その中間値の場合は背景と素材の色
が混ぜ合わせられる。なお、ここではマスク画像の各画
素の値を浮動小数点数で例示したが、整数値でもかまわ
ず、例えば、0の時非表示、255の時表示、その中間の値
の時混ぜ合わせる等の様にしてもよい。
The conventionally used mask image is for masking the material image, and each pixel of the mask image has a one-to-one correspondence with each pixel of the material image. Express whether it is displayed. Further, when the material image is masked, an anti-aliasing (smoothing) process is performed on a boundary portion of the mask, and the image is a gray scale image so that the boundary line is displayed smoothly. In other words, when the value is 0.0, the material pixel is not displayed at all, and when the value is 1.0, it is completely displayed. In the case of an intermediate value, the background and the material color are mixed. Here, the value of each pixel of the mask image is exemplified by a floating point number, but may be an integer value, such as non-display at 0, display at 255, and mixing at an intermediate value. It may be.

【0032】一方、アップリンクマスク画像を用いた合
成処理とは、素材画像の目的部分を含み目的部分よりも
広い範囲を区分し、素材画像の区分範囲以外の部分を完
全に透過化したうえで、合成処理を行うものであり、こ
のアップリンクマスク画像は、0又は1の2値で表現さ
れた画像である。図2は、アップリンクマスクを用いた
画像合成処理の手順を示すものである。
On the other hand, the synthesizing process using the uplink mask image means that a range including the target portion of the material image and wider than the target portion is divided, and a portion other than the divided range of the material image is made completely transparent. This uplink mask image is an image represented by binary values of 0 or 1. FIG. 2 shows a procedure of an image combining process using an uplink mask.

【0033】同図(a)において、アップリンクマスク
画像22は、素材画像21の目的部分21aを残して素
材画像21の一部又は全部を完全に透明とするためのマ
スク画像であって、このアップリンクマスク画像22を
構成する画素は、例えば0又は1のように2値的に表現
されたものである。また、本実施形態に係るアップリン
クマスクは、後のアンチエイリアス(円滑化)処理を簡
単にするために、この素材画像の目的部分よりも最低1
(pixel)以上、多めにこの素材画像が残る(表示される)
ようにマスクする。
In FIG. 3A, an uplink mask image 22 is a mask image for making a part or all of the material image 21 completely transparent except for a target portion 21a of the material image 21. Pixels constituting the uplink mask image 22 are represented by binary values, for example, 0 or 1. In addition, the uplink mask according to the present embodiment is at least one more than the target portion of the material image in order to simplify the subsequent anti-aliasing (smoothing) process.
(pixel) more than this material image remains (displayed)
Mask as shown.

【0034】具体的には、同図(a)に示すように、例
えば人物を撮影したビットマップ形式で表示された素材
画像21について人物の顔の部分を目的部分21aとし
て区分して背景画像24に重ねて合成する場合に、素材
画像21の目的部分21aを含みこの目的部分21aよ
りも広い範囲を区分範囲22aで区画するように構成さ
れたアップリンクマスク画像22を素材画像21に重ね
合わせる。
More specifically, as shown in FIG. 3A, for example, in a material image 21 displayed in a bitmap format in which a person is photographed, a face portion of the person is divided as a target portion 21a, and a background image 24 is formed. In the case of superimposing on the material image 21, the uplink mask image 22 including the target portion 21a of the material image 21 and configured to divide a wider range than the target portion 21a by the division range 22a is superimposed on the material image 21.

【0035】そして、アップリンクマスク画像22が重
ねられた画像23のうち黒く塗りつぶした範囲及びアッ
プリンクマスク画像22の外側にはみ出した部分の画素
の値は0値となり、この範囲については、画素の値が合
成処理演算において背景画像24の画素に加算されても
背景画像24を構成する画素の値が変化せず、概念上透
明化されたこととなり、同図(b)に示すように、合成
後の画像25においては、下方に配置された背景画像2
4がそのまま表示される。
In the image 23 on which the uplink mask image 22 is superimposed, the value of the pixel in the black-out area and the portion of the pixel protruding outside the uplink mask image 22 becomes 0 value. Even if the values are added to the pixels of the background image 24 in the synthesis processing operation, the values of the pixels that make up the background image 24 do not change, which means that the image is conceptually transparent, and as shown in FIG. In the later image 25, the background image 2 arranged below
4 is displayed as it is.

【0036】図3は、かかるアップリンクマスク画像を
用いた画像合成の演算処理のフローチャートを示すもの
である。
FIG. 3 is a flow chart showing a calculation process of image synthesis using such an uplink mask image.

【0037】同図において演算処理が開始され、先ず、
画像合成部31は、予め合成後画像用メモリ33に読み
込んでおいた原画像である背景画像を、合成後画像用メ
モリ33から読み込むとともに(S201)、画像加工
部32で加工された素材画像、マスク画像、アップリン
クマスク画像を画像保存用メモリ30から読み込む(S
202)。
In the figure, the arithmetic processing is started.
The image synthesizing unit 31 reads from the post-synthesis image memory 33 a background image which is an original image previously read into the post-synthesis image memory 33 (S201). The mask image and the uplink mask image are read from the image storage memory 30 (S
202).

【0038】その後、所定の計算式に基づいて合成処理
演算を行う(S203)。かかる演算は以下のように行
われる。
Thereafter, a combining process operation is performed based on a predetermined formula (S203). This calculation is performed as follows.

【0039】(1)素材画像については、通常の合成処理
と同様に素材画像の画素色の値SCに区分範囲22aに
あってはアップリンクマスク画像の値UMC=1を掛け
合わせ、区分範囲22a以外の範囲にあってはアップリ
ンクマスク画像の値UMC=0を掛け合わせ、これらの
値にマスク画像の画素値MCを掛け合わせる。これによ
り、目的部分21aについては素材画像の値がそのまま
保持され概念的に不透過となり、区分範囲22a内の目
的部分21a以外の部分は、素材画像と背景画像の中間
値(画素値MCで与えられる値)で表示される。区分範
囲22a以外の範囲については素材画像の値が0となり
概念的に完全透過となる(S203中の式前半)。
(1) As for the material image, the pixel value SC of the material image is multiplied by the value UMC = 1 of the uplink mask image in the division range 22a to obtain the division range 22a as in the ordinary synthesis processing. In other ranges, the value UMC of the uplink mask image is multiplied by 0, and these values are multiplied by the pixel value MC of the mask image. As a result, the value of the material image is retained as it is for the target portion 21a and is conceptually opaque, and portions other than the target portion 21a in the division range 22a are given intermediate values between the material image and the background image (given by the pixel value MC). Value). In the range other than the segmented range 22a, the value of the material image is 0, and it is conceptually completely transparent (the first half of the expression in S203).

【0040】(2)一方、背景画像については、アップリ
ンクマスク画像の値UMCにマスク画像の値MCを掛け
たものを1から引き、これを背景画像の値BCに掛け合
わせる。このとき、区分範囲22aにあってはUMC=
1を掛け合わせ、これ以外の範囲にあってはUMC=0
の値を掛け合わせる。これにより、目的部分21aにつ
いては背景画像の値が0となり、区分範囲22a内の目
的部分21a以外の部分は、素材画像と背景画像の中間
値(画素値MCで与えられる値)で表示される。区分範
囲22a以外の範囲については背景画像の値がそのまま
保持されることとなる(S203中の式後半)。
(2) On the other hand, for the background image, the value obtained by multiplying the value UMC of the uplink mask image by the value MC of the mask image is subtracted from 1, and this is multiplied by the value BC of the background image. At this time, the UMC =
Multiply by 1 and UMC = 0 in other ranges
Multiply by the value of As a result, the value of the background image becomes 0 for the target portion 21a, and the portion other than the target portion 21a in the division range 22a is displayed as an intermediate value (a value given by the pixel value MC) between the material image and the background image. . For the range other than the section range 22a, the value of the background image is held as it is (the latter half of the expression in S203).

【0041】(3)そして、(1)及び(2)で得られた値を加
算する。区分範囲22a内の目的部分21a以外の部分
は、素材画像と背景画像の中間値(画素値MCで与えら
れる値)で表示される。目的部分21aにあっては背景
画像の値が0となっており素材画像の値がそのまま保持
されることとなり、区分範囲22a以外の範囲にあって
は素材画像の値が0となっており背景画像の値がそのま
ま保持される。
(3) Then, the values obtained in (1) and (2) are added. Portions other than the target portion 21a in the division range 22a are displayed as intermediate values (values given by the pixel values MC) between the material image and the background image. In the target portion 21a, the value of the background image is 0, and the value of the material image is held as it is. In the range other than the division range 22a, the value of the material image is 0, and The value of the image is kept as it is.

【0042】その後、合成した画像は合成後の背景画像
として合成後画像用メモリ33や外部出力4等に出力さ
れ(S204)、演算処理が終了する。
Thereafter, the combined image is output as a combined background image to the combined image memory 33, the external output 4, or the like (S204), and the arithmetic processing ends.

【0043】このような画像の合成処理装置及び合成処
理方法によれば、目的部分21aの画素の値を保持した
まま、その他の部分の画素の値を簡略化して合成処理に
おける演算量を低減することができ、演算処理に要する
メモリ量を軽減し、演算処理の遅延を防止することがで
きる。
According to such an image synthesizing apparatus and image synthesizing method, the values of the pixels of the other portion are simplified while the values of the pixels of the target portion 21a are held, thereby reducing the amount of calculation in the synthesizing process. Thus, the amount of memory required for arithmetic processing can be reduced, and delays in arithmetic processing can be prevented.

【0044】次いで、上述したアップリンクマスク画像
を用いた画像合成処理について詳細に説明する。本実施
形態では、合成する画像について拡大、回転等の加工を
行うとともに、アップリンクマスク画像を用いた画像合
成処理を複数回行う。
Next, an image synthesizing process using the above-described uplink mask image will be described in detail. In the present embodiment, processing such as enlargement and rotation is performed on an image to be combined, and image combining processing using an uplink mask image is performed a plurality of times.

【0045】本実施形態では、画像合成のためのレイア
ウトデータ1と、それに記述してあるファイル名の画像
データa,b,c,d…を入力しレイアウトデータに記
されたパラメータに従って画像を加工・合成する。
In the present embodiment, layout data 1 for image synthesis and image data a, b, c, d... Of the file name described therein are input, and the image is processed in accordance with the parameters described in the layout data. -Combine.

【0046】ここで、レイアウトデータ1は、表1に示
すように、画像加工パラメータ部分と、画像ファイル名
部分とから構成されるものである。
Here, as shown in Table 1, the layout data 1 is composed of an image processing parameter part and an image file name part.

【0047】[0047]

【表1】 画像加工パラメータ部分の内容としては、画像加工時の
拡大・縮小率、回転角度、透過率、画像加工(合成)の基
準座標、画像合成時の背景画像の基準座標の情報が記述
されている。なお、本実施形態において、かかる基準座
標は各画像の左上の画素を(0,0)とした場合の画素の座
標を表している。
[Table 1] As the contents of the image processing parameter portion, information of an enlargement / reduction rate at the time of image processing, a rotation angle, a transmittance, reference coordinates of image processing (synthesis), and reference coordinates of a background image at the time of image synthesis are described. In the present embodiment, such reference coordinates represent the coordinates of a pixel when the upper left pixel of each image is (0, 0).

【0048】一方、画像ファイル名部分の内容として
は、素材画像ファイル名、そのマスク画像ファイル名、
アップリンクマスク画像ファイル名が記述されている。
なお、これらのマスク画像、アップリンクマスク画像
は、画像によって一方若しくは双方ともない場合があ
る。
On the other hand, the contents of the image file name portion include a material image file name, its mask image file name,
An uplink mask image file name is described.
One or both of the mask image and the uplink mask image may be omitted depending on the image.

【0049】また、かかるレイアウトデータ1は、表2
に示すように、1つの画像加工パラメータ部分と、1つ
の画像ファイル名部分が対になって構成されている。
The layout data 1 is shown in Table 2
As shown in (1), one image processing parameter portion and one image file name portion are paired.

【0050】[0050]

【表2】 この一対の固まりが一つのプリミティブを形成する。こ
れがレイアウトデータ1中には、1セット以上あり、同
表に示すように、画像加工パラメータ部分が先で、交互
に並んでいる。
[Table 2] This pair of masses forms one primitive. This is one or more sets in the layout data 1, and as shown in the table, the image processing parameter portions are arranged alternately first.

【0051】そして、素材画像やマスク画像は、これら
の各画像に対応したプリミティブの画像加工パラメータ
に従って加工・合成される一方、アップリンクマスク画
像はその一つ後のプリミティブの画像加工パラメータに
従って加工・合成される。
The material image and the mask image are processed and synthesized according to the primitive image processing parameters corresponding to each of these images, while the uplink mask image is processed and synthesized according to the image processing parameters of the succeeding primitive. Synthesized.

【0052】特に、本実施形態では、合成処理装置10
による処理は、かかるレイアウトデータ1に記述された
データが並んでいる順に、且つプリミティブ毎に独立し
て処理が行われる。そのため、各処理に必要な情報はそ
の処理が属するプリミティブと、その次のプリミティブ
の画像加工パラメータまでとなり、その他のプリミティ
ブの内容には依存しないので、処理した段階毎の画像表
示が可能である。
In particular, in this embodiment, the synthesis processing apparatus 10
Are performed in the order in which the data described in the layout data 1 are arranged, and independently for each primitive. Therefore, the information necessary for each process includes the primitive to which the process belongs and the image processing parameters of the next primitive, and does not depend on the contents of other primitives. Therefore, it is possible to display an image at each stage of processing.

【0053】そして、このようなレイアウトデータ1に
基づいた画像合成装置10における合成処理は所定のプ
ログラム言語で表現されたアルゴリズムとして実現する
ことができる。図4は、画像合成装置10全体の処理の
流れを示すものである。
The synthesizing process in the image synthesizing device 10 based on the layout data 1 can be realized as an algorithm expressed in a predetermined program language. FIG. 4 shows a flow of processing of the entire image synthesizing apparatus 10.

【0054】同図において、先ず、処理の開始(S80
1)後、背景画像を合成後画像用メモリ33に格納する
とともに(S802)、レイアウトデータ1の先頭の画
像加工パラメータデータを画像情報解釈部5に1つ読み
込む(S803)。
In the figure, first, the processing starts (S80).
1) After that, the background image is stored in the post-synthesis image memory 33 (S802), and one of the leading image processing parameter data of the layout data 1 is read into the image information interpreting unit 5 (S803).

【0055】次に、ファイル名データを1つ画像情報解
釈部5に読み込む(S804)。ここでレイアウトデー
タ1が終了か否かを判断して(S805)、終了ならFI
LE =EOF(S807)、終了でないならFILE = 0を代入
する(S806)。
Next, one file name data is read into the image information interpreting section 5 (S804). Here, it is determined whether or not the layout data 1 is completed (S805).
LE = EOF (S807), and if it is not the end, FILE = 0 is substituted (S806).

【0056】読み込んだファイル名データに書かれた画
像ファイルを外部記憶装置2から画像保存用メモリ30
に読み込む(S808)。この時読み込まれる画像の種
類には素材画像、マスク画像、アップリンクマスク画像
がある。マスク画像、アップリンクマスク画像は一方も
しくは両方存在しない場合もあるが、素材画像は必ずあ
る。
The image file written in the read file name data is transferred from the external storage device 2 to the image storage memory 30.
(S808). The types of images read at this time include a material image, a mask image, and an uplink mask image. One or both of the mask image and the uplink mask image may not exist, but there is always a material image.

【0057】そして、画像保存用メモリ30から画像加
工部32に素材画像を入力し、読み込んだ画像加工パラ
メータに従って加工し、加工後の画像は画像保存用メモ
リ33に書き出す(S809)。
Then, the material image is input from the image storage memory 30 to the image processing unit 32, processed according to the read image processing parameters, and the processed image is written to the image storage memory 33 (S809).

【0058】次に、マスク画像があるかどうか判断し
(S810)、あれば同じくマスク画像を画像加工部3
2に入力し、加工して、画像保存用メモリに書き出す
(S811)。なお、このときマスク画像がなければ何
もしない。その後、FILE = EOFかどうか判断する(S8
12)。
Next, it is determined whether or not there is a mask image (S810).
2 is processed, and written to the image storage memory (S811). At this time, if there is no mask image, nothing is performed. Thereafter, it is determined whether or not FILE = EOF (S8).
12).

【0059】このステップS812においてFILE = EOF
と判断された場合、画像合成部31で合成後画像保存用
メモリ33にある背景画像を呼び出し、画像加工部32
から書き込まれた画像と合成する(S815)。次い
で、画像保存用メモリ30を解放するとともに(S81
6)、合成された画像を合成後画像保存メモリ33や外
部出力4(モニタ等)に出力後(S817)、終了する
(S821)。なお、最後のプリミティブの素材画像は
その上に重なる素材画像がないので、アップリンクマス
クは存在しない。
In step S812, FILE = EOF
When it is determined that the background image is stored in the post-synthesis image storage memory 33 by the image synthesis unit 31, the image processing unit 32
(S815). Next, the image storage memory 30 is released (S81).
6) After outputting the combined image to the combined image storage memory 33 and the external output 4 (monitor or the like) (S817), the process ends (S821). Note that the material image of the last primitive has no material image overlapping therewith, and therefore no uplink mask exists.

【0060】一方、ステップS812においてFILE≠ E
OFと判断された場合は、次のプリミティブの画像加工パ
ラメータデータを画像情報解釈部5に1つ読み込む(S
813)。画像保存用メモリ30にすでに読み込んでい
る前のプリミティブのアップリンクマスク画像があるか
どうか判断し(S814)、あれば画像加工部32に入
力し、直前に読み込んだ画像加工パラメータ、すなわち
このアップリンクマスク画像のプリミティブの次のプリ
ミティブの画像加工パラメータに従って加工し、加工後
の画像は画像保存用メモリ30に書き出す(S81
8)。アップリンクマスク画像がなければ何もしない。
On the other hand, in step S812, FILE @ E
If it is determined to be OF, one image processing parameter data of the next primitive is read into the image information interpretation unit 5 (S
813). It is determined whether there is an uplink mask image of the primitive before being read into the image storage memory 30 (S814). The mask image is processed according to the image processing parameters of the primitive following the primitive, and the processed image is written to the image storage memory 30 (S81).
8). If there is no uplink mask image, do nothing.

【0061】次に、画像合成部31に合成後画像保存用
メモリ33にある背景画像を呼び出し、画像加工部32
から書き込まれた加工後の画像と合成し、合成された画
像を合成後画像保存用メモリ33に出力し(S81
9)、画像保存用メモリ30を解放する(S820)。
なお、このとき画像合成部31に呼び出される背景画像
には、それ以前のプリミティブの画像の合成処理をして
いた場合、合成された画像が含まれる。
Next, the background image stored in the post-synthesis image storage memory 33 is called by the image synthesizing unit 31 and the image processing unit 32 is called.
Is combined with the processed image written from step (S81), and the combined image is output to the combined image storage memory 33 (S81).
9), the image storage memory 30 is released (S820).
At this time, the background image called by the image combining unit 31 includes the combined image if the previous primitive image is combined.

【0062】以上の処理を一つのサイクルとして、レイ
アウトデータ1のプリミティブをデータ終了まで順次処
理していく。
With the above processing as one cycle, the primitives of the layout data 1 are sequentially processed until the end of the data.

【0063】そして、このようなステップを有するプロ
グラムは、例えばフロッピーディスクやCD−ROM等
のコンピュータ読み取り可能な記録媒体に記録すること
ができる。このような記録媒体によれば、画像合成処理
の迅速化を図ることができるという有用なプログラムの
保存、運搬、実行等がより簡便に行うことができ、画像
合成処理をより容易に且つ迅速なものとすることができ
る。
A program having such steps can be recorded on a computer-readable recording medium such as a floppy disk or a CD-ROM. According to such a recording medium, storage, transportation, execution, and the like of a useful program that can speed up the image synthesizing process can be performed more easily, and the image synthesizing process can be performed more easily and quickly. Things.

【0064】ここで、本実施形態において静止画像処理
部3で行われる加工合成時の処理範囲等について詳細に
説明する。
Here, the processing range and the like at the time of processing and synthesis performed by the still image processing unit 3 in this embodiment will be described in detail.

【0065】先ず、画像合成処理における処理範囲につ
いて説明する。図5は、画像合成処理について示すもの
である。画像の合成は、背景画像401を合成後画像用
メモリ33から画像合成部31に読み込み、これと加工
後の画像群の基準座標が重なるように配置して行われる
ことになる。
First, the processing range in the image synthesizing process will be described. FIG. 5 shows an image synthesizing process. The image synthesis is performed by reading the background image 401 from the post-synthesis image memory 33 into the image synthesis unit 31 and arranging the background image 401 and the reference coordinates of the processed image group so as to overlap.

【0066】そして、素材画像やマスク画像等の合成す
る画像402、404はその画像の属するプリミティブ
の画像加工の基準座標P2を使用し、背景画像401は
そのプリミティブの画像合成時の背景画像の基準座標P
1を使用し、アップリンクマスク画像403はその一つ
後のプリミティブの画像加工の基準座標P2を使用す
る。
The images 402 and 404 to be synthesized such as the material image and the mask image use the reference coordinates P2 for image processing of the primitive to which the image belongs, and the background image 401 is the reference of the background image when the image of the primitive is synthesized. Coordinates P
1, the uplink mask image 403 uses the reference coordinates P2 for image processing of the next primitive.

【0067】このそれぞれの基準座標P1、P2が重な
るように重ねる画像合成時の合成処理をする範囲は、ま
ず、背景画像401に対して、合成する画像402〜4
04をそれぞれの基準座標P1、P2が一致するように
重ねた場合は、どの画像も図5(a)に示すように、合
成した画像405における背景画像401の領域に重な
った部分405aのみを処理し、重ならない部分405
bはクリッピングする。また、背景画像401の何も画
像が重なっていない部分は背景画像の色のままとする。
従って合成後の画像は背景画像の大きさになる。
The range in which the compositing process is performed at the time of compositing an image in which the respective reference coordinates P1 and P2 are superimposed on each other is as follows.
When the reference image P04 is overlapped so that the respective reference coordinates P1 and P2 coincide, as shown in FIG. 5A, only the portion 405a of the combined image 405 that overlaps the area of the background image 401 is processed. Part 405 that does not overlap
b is clipping. Also, a portion of the background image 401 where no images overlap is left as the color of the background image.
Therefore, the image after the combination has the size of the background image.

【0068】背景画像401と素材画像402を基準座
標P1、P2が一致するように重ねた場合、図5(b)
に示すように素材画像401に重なった部分を全て処理
し、重なってない部分は背景画像の色のままとする。
When the background image 401 and the material image 402 are overlapped so that the reference coordinates P1 and P2 coincide, FIG.
As shown in (2), all the portions overlapping the material image 401 are processed, and the non-overlapping portions remain the color of the background image.

【0069】これに更にマスク画像404を基準座標P
4が基準座標P1、P2が一致するように重ねた場合、
素材画像402とマスク画像404は画像サイズも基準
座標も同じで、重ねた時1対1に対応し完全に一致するの
で、素材画像402のみの場合と同じで、素材画像40
2が重なった部分の画素を全て処理する。合成した画像
405の素材画像402が重なっていない部分は背景画
像401の色のままとする。
Further, the mask image 404 is added to the reference coordinates P
4 overlaps so that the reference coordinates P1 and P2 coincide,
Since the material image 402 and the mask image 404 have the same image size and the same reference coordinates, and correspond one-to-one when they are superimposed and completely match, the same as in the case of only the material image 402, the material image 40
All pixels in the portion where 2 overlaps are processed. The portion of the synthesized image 405 where the material image 402 does not overlap remains the color of the background image 401.

【0070】背景画像401に素材画像402とマスク
画像404(マスク画像がない場合は素材画像のみ)とア
ップリンクマスク画像403を基準座標P1〜P4が一
致するように重ねた場合は、図6に示すように素材画像
402とアップリンクマスク画像403が重なった部分
のみを処理し、素材画像402だけの部分はクリッピン
グし、その領域は背景画像401の色のままとする。ア
ップリンクマスク画像403だけの部分も、背景画像4
01の色のままとする。これにマスク画像404があっ
た場合もマスク画像404の重なる領域は素材画像40
2と全く同じなので同様の領域を処理する。
FIG. 6 shows a case where the material image 402, the mask image 404 (only the material image if there is no mask image) and the uplink mask image 403 are superimposed on the background image 401 so that the reference coordinates P1 to P4 coincide. As shown, only the portion where the material image 402 and the uplink mask image 403 overlap is processed, the portion of the material image 402 alone is clipped, and the area remains the color of the background image 401. The part of only the uplink mask image 403 is also the background image 4
01 is left as it is. Even when there is a mask image 404, the area where the mask image 404 overlaps is the material image 40
Since it is exactly the same as 2, the same area is processed.

【0071】次いで、画像の基準座標について説明す
る。図7に示すように、画像の加工、合成は基準座標を
中心に行われる。なお、同図において素材画像、マスク
画像、アップリンクマスク画像402〜404は便宜上
同じサイズとして示してあるが、適宜サイズを変更する
ことができる。但し、この場合も素材画像402とマス
ク画像404は同じサイズとなる必要がある。
Next, the reference coordinates of the image will be described. As shown in FIG. 7, the processing and the synthesis of the image are performed around the reference coordinates. Although the same size is used for the material image, the mask image, and the uplink mask images 402 to 404 in the drawing for convenience, the sizes can be appropriately changed. However, also in this case, the material image 402 and the mask image 404 need to have the same size.

【0072】合成する画像402〜404の拡大・縮小
は、図7(b)に示す様に、基準座標P2を中心に指定
された拡大・縮小率に従って縦横に拡大・縮小する。合
成する画像402〜404の回転は、基準座標P2を中
心に、図7(c)に示す様に、指定された回転角度だけ
回転する。画像の合成は、図7(d)及び(e)に示す
様に、合成する画像402〜404の基準座標P2(加
工済)と背景画像401の基準座標P1が重なるように
配置して合成することになる。画像の合成の際に背景画
像401からはみ出した部分601は、前述のようにク
リッピングする。
As shown in FIG. 7B, the images 402 to 404 to be synthesized are vertically and horizontally enlarged / reduced in accordance with a designated enlargement / reduction ratio around the reference coordinates P2. As shown in FIG. 7C, the images 402 to 404 to be combined are rotated by a designated rotation angle around the reference coordinates P2 as shown in FIG. As shown in FIGS. 7D and 7E, the images are combined so that the reference coordinates P2 (processed) of the images 402 to 404 to be combined and the reference coordinates P1 of the background image 401 overlap. Will be. The portion 601 protruding from the background image 401 at the time of combining images is clipped as described above.

【0073】このような画像加工部32における画像の
加工は、図8に示すようなステップを有する処理手順に
より行われる。なお、本実施形態において画像加工部3
2では一回に一枚の画像を処理する。
The image processing in the image processing section 32 is performed according to a processing procedure having steps as shown in FIG. In the present embodiment, the image processing unit 3
In step 2, one image is processed at a time.

【0074】先ず、画像保存用メモリ30から画像が1
枚入力される(S702)。入力された画像は画像加工
パラメータに沿って、画像加工の基準座標を中心にその
拡大・縮小率で、拡大・縮小される(S703)。次に、
基準座標を中心にその回転角度分、回転する(S70
4)。
First, one image is stored in the image storage memory 30.
Sheets are input (S702). The input image is enlarged / reduced at the enlargement / reduction rate around the reference coordinates of the image processing in accordance with the image processing parameters (S703). next,
Rotate by the rotation angle about the reference coordinates (S70)
4).

【0075】その後、画像の種類を判断する(S70
5)。入力された画像が素材画像の場合はその透過率に
合せ透過処理をする(S706)。このとき、加工後の
画像の基準座標は、加工前の基準座標の画素が加工によ
って移動した先の位置で、加工後の画像の左上の画素を
原点(0,0)とした時の座標になる。
Thereafter, the type of the image is determined (S70).
5). If the input image is a material image, a transmission process is performed according to the transmittance (S706). At this time, the reference coordinates of the image after processing are the coordinates where the pixel at the upper left of the image after processing is the origin (0, 0) at the position where the pixel of the reference coordinates before processing has moved by the processing. Become.

【0076】そして、加工後の画像は合成後画像用メモ
リ33に書き出される(S707)。このとき、画像を
書き出す際には、合成後画像用メモリ33にそれぞれの
画像サイズの領域が用意され、そこに加工後の画像を書
き出す。尚、画像加工方法は、アップリンクマスク画
像、マスク画像及び素材画像の3種類のどの画像であっ
ても同じである。
Then, the processed image is written out to the combined image memory 33 (S707). At this time, when writing an image, areas of respective image sizes are prepared in the combined image memory 33, and the processed image is written there. Note that the image processing method is the same for any of the three types of images, the uplink mask image, the mask image, and the material image.

【0077】以上説明した画像合成・加工処理により画
像を合成する手順について、以下により具体的に説明す
る。ここでは、素材画像、マスク画像、アップリンクマ
スク画像として図9乃至図11に示すものを適宜選択し
て用いる。
The procedure for synthesizing an image by the above-described image synthesizing / processing process will be more specifically described below. Here, those shown in FIGS. 9 to 11 are appropriately selected and used as the material image, the mask image, and the uplink mask image.

【0078】すなわち、原画像として背景画像.bmp50
1、素材画像として人物像画像.bmp502、たぬき.bmp
91、うさぎ.bmp92、星型枠.bmp81、ハート型枠.b
mp82若しくは丸型枠.bmp83を用い、これらのマスク
画像(中間値を持つマスク)としてたぬきマスク.bmp9
3、うさぎマスク.bmp94、星型マスク.bmp84、ハー
ト型マスク.bmp85、丸型マスク.bmp86を用い、さら
にアップリンクマスク画像(2値のマスク)としてたぬ
き用アップリンクマスク.bmp95、うさぎ用アップリン
クマスク.bmp96、星形アップリンクマスク.bmp87、
ハート型アップリンクマスク.bmp88、丸型アップリン
クマスク.bmp89を用いる。
That is, as the original image, the background image.bmp50
1. Material image.bmp502 and raccoon.bmp as material images
91, rabbit.bmp92, star frame.bmp81, heart frame.b
mp82 or round frame.bmp83, and as these mask images (masks having intermediate values),
3. Rabbit mask.bmp94, star-shaped mask.bmp84, heart-shaped mask.bmp85, round-shaped mask.bmp86, and as an uplink mask image (binary mask). Link mask.bmp96, star-shaped uplink mask.bmp87,
A heart-shaped uplink mask.bmp88 and a round-shaped uplink mask.bmp89 are used.

【0079】なお、これらの画像は、後述するレイアウ
トデータの内容に基づいて、同種類の素材画像、マスク
画像、アップリンクマスク画像を一組として使用され
る。例えば、たぬきの画像について処理する場合は、た
ぬき.bmp91、たぬきマスク.bmp93及びたぬき用アッ
プリンクマスク.bmp95を一組とし、また、例えば、ハ
ート型枠の画像について処理する場合は、ハート型枠.b
mp81、ハート型マスク.bmp84及びハート型アップリ
ンクマスク.bmp88を一組とする。
These images use the same type of material image, mask image, and uplink mask image as a set based on the contents of the layout data described later. For example, when processing on an image of a raccoon, a set of a raccoon.bmp91, a raccoon mask.bmp93, and an uplink mask for a raccoon.bmp95. .b
The mp81, the heart-shaped mask.bmp84, and the heart-shaped uplink mask.bmp88 form a set.

【0080】また、たぬき.bmp91、うさぎ.bmp92
は、動物の着ぐるみの画像となるものであり、たぬきマ
スク.bmp93、うさぎマスク.bmp94は、動物の着ぐる
みの顔部分に人物の顔(目的範囲)を、円滑化処理(ア
ンチエイリアス処理)を施したうえで、表示するための
ものである。そしてこれらの着ぐるみの画像とマスク画
像とは、画像サイズが同じで1対1に対応している。
Also, raccoon.bmp91, rabbit.bmp92
Is an image of an animal costume, and the raccoon mask.bmp93 and the rabbit mask.bmp94 are subjected to a smoothing process (anti-aliasing process) on the face of the person (the target range) on the face of the animal costume. And for display. The image of the costume and the mask image have the same image size and correspond one-to-one.

【0081】たぬき用アップリンクマスク.bmp95及び
うさぎ用アップリンクマスク.bmp96は、人物画像をマ
スクするためのもので、これらは、たぬき.bmp91、う
さぎ.bmp92と1対1で対応しており、それぞれは同じ画
像サイズでなければならない。本実施形態では、これら
の中から使用する動物の着ぐるみと対になるアップリン
クマスクを1つ使用する。
The raccoon uplink mask.bmp95 and the bunny uplink mask.bmp96 are for masking a person image, and correspond to the raccoon.bmp91 and the rabbit.bmp92 on a one-to-one basis. Each must be the same image size. In the present embodiment, one uplink mask that is paired with the animal costume to be used is used.

【0082】星型枠.bmp81、ハート型枠.bmp82、丸
型枠.bmp83は、背景画像に着ぐるみ用の画像を合成し
た後にこれにフレーム(枠)をかけるためのものであ
り、これにより、星型等の枠の中でたぬき等の着ぐるみ
を来た人物を表示することができる。なお、これら星型
枠.bmp81等は、これにマスクをかけるための星型マス
ク.bmp84、ハート型マスク.bmp85、丸型マスク.bmp
86と画像サイズが同じで1対1に対応している。また、
本実施形態では、これらの中から素材とマスクの組を1
組使用する。
The star-shaped frame.bmp81, heart-shaped frame.bmp82, and round-shaped frame.bmp83 are used for adding a frame (frame) to a background image after synthesizing an image for a costume. A person who has arrived in a costume such as a raccoon in a frame such as a star can be displayed. In addition, these star-shaped frames.bmp81 etc. are a star-shaped mask for applying a mask to them.bmp84, a heart-shaped mask.bmp85, a round-shaped mask.bmp
86 and the image size are the same and correspond one-to-one. Also,
In the present embodiment, one of the material and the mask
Use pairs.

【0083】星形アップリンクマスク.bmp87、ハート
型アップリンクマスク.bmp88、丸型アップリンクマス
ク.bmp89は、枠となる素材画像(星型枠.bmp81、ハ
ート型枠.bmp82、丸型枠.bmp83)と1対1で対応して
おり、それぞれは同じ画像サイズになっている。本実施
形態では、これらの中から素材とマスクの組を1組と、
使用する枠と対になるアップリンクマスクを1つ使用す
る。
The star-shaped uplink mask.bmp87, heart-shaped uplink mask.bmp88, and round-shaped uplink mask.bmp89 are frame material images (star-shaped frame.bmp81, heart-shaped frame.bmp82, round-shaped frame. bmp83) in one-to-one correspondence, and each has the same image size. In the present embodiment, one set of a material and a mask is selected from these,
Use one uplink mask that is paired with the frame to be used.

【0084】そして、本実施形態では、人物画像中の人
物の顔の部分を目的範囲として、動物の着ぐるみの画像
(うさぎ.bmp92等)を合成し、それに枠の画像(ハー
ト型枠.bmp等)を付けて背景画像に合成する処理を行
う。
In the present embodiment, an image of a costume of an animal (rabbit.bmp92, etc.) is synthesized with the part of the person's face in the person image as a target range, and a frame image (heart-shaped frame.bmp, etc.) ) Is added to the background image.

【0085】なお、これらの動物の着ぐるみの画像と枠
の画像は複数用意されていて、組み合わせることができ
る。このように複数の画像を組み合わせることで、枠と
着ぐるみのすべてのパターンの画像を用意するよりも画
像の数を少なく出来る。
A plurality of these animal costume images and frame images are prepared and can be combined. By combining a plurality of images in this manner, the number of images can be reduced as compared with the case of preparing images of all the patterns of the frame and the costume.

【0086】また、それぞれの画像について前述した画
像加工処理を行うことによって、個別に画像の大きさを
変えたり、回転させることが可能であり、配置も画像毎
に自由に設定できる。このため、組み合わせる画像によ
って最適な画像の大きさや向きにして、最適な場所に配
置することができる。なお、背景画像も、複数用意する
ことができ、外部記憶装置2に格納され適宜合成後画像
用メモリ33に読み込まれる。
Further, by performing the above-described image processing on each image, the size of the image can be changed or rotated individually, and the arrangement can be freely set for each image. For this reason, the optimal size and orientation of the image can be set according to the image to be combined, and the image can be arranged at the optimal location. A plurality of background images can also be prepared, and are stored in the external storage device 2 and read into the combined image memory 33 as appropriate.

【0087】そして、本実施形態における画像の加工及
び合成処理は、表3に示すような、レイアウトデータを
基に行われる。
The image processing and synthesizing processing in this embodiment is performed based on layout data as shown in Table 3.

【0088】[0088]

【表3】 詳しくは、先ず、背景画像.bmp501を外部記憶装置2
から合成後画像用メモリ33に読込み、レイアウトデー
タ1の画像加工パラメータを画像情報解釈部5に入力
し、画像ファイル名を同じく入力する。画像ファイル
名の人物像.bmp502とうさぎ用アップリンクマス
ク.bmp96を画像保存用メモリ30に格納する。
[Table 3] Specifically, first, the background image.bmp 501 is stored in the external storage device 2
Is read into the post-combination image memory 33, the image processing parameters of the layout data 1 are input to the image information interpreting section 5, and the image file name is also input. The image file name person image.bmp 502 and the rabbit uplink mask.bmp 96 are stored in the image storage memory 30.

【0089】次いで、人物像.bmp502を画像加工パラ
メータに従って加工し、画像保存用メモリ30に書き
込む。マスク画像はないのでその加工過程は行わない。
このときレイアウトデータが記述されたファイルは終了
していないので、次の画像加工パラメータを画像解釈
部5に読み込む。
Next, the person image.bmp 502 is processed in accordance with the image processing parameters and written into the image storage memory 30. Since there is no mask image, the processing is not performed.
At this time, since the file in which the layout data is described has not been completed, the next image processing parameter is read into the image interpretation unit 5.

【0090】そして、プリミティブの未処理画像が、
画像保存用メモリ30に残ってないかを判断する。本実
施形態では、うさぎ用アップリンクマスク.bmp96があ
るので、これを画像加工パラメータに従って加工し、
画像保存用メモリ30に書き込む。プリミティブの画
像を加工し終わったら、次に画像合成部31で画像を合
成する。
Then, the unprocessed image of the primitive is
It is determined whether or not it is left in the image storage memory 30. In the present embodiment, since there is a rabbit uplink mask.bmp96, this is processed according to image processing parameters,
The data is written to the image storage memory 30. After finishing the processing of the primitive image, the image combining unit 31 combines the images.

【0091】その後、合成後画像用メモリ33から 背
景画像.bmp501を画像合成部31に読み込む。次に画
像保存用メモリ30から加工後の画像(人物像.bmp50
2、うさぎ用アップリンクマスク.bmp96)を読み込
む。
Thereafter, the background image.bmp 501 is read into the image synthesizing section 31 from the post-synthesis image memory 33. Next, the processed image (person image.bmp50) is stored in the image storage memory 30.
2. Read the rabbit uplink mask.bmp96).

【0092】このとき、図12に示すように、加工後の
人物像.bmp502、うさぎ用アップリンクマスク.bmp9
6の基準座標P11、P12と、背景画像.bmp501の
基準座標P10が重なるように合成する。
At this time, as shown in FIG. 12, the processed human image.bmp502 and the rabbit uplink mask.bmp9
6 and the reference coordinates P10 of the background image.bmp501 are superimposed.

【0093】なお、合成処理後の画像504において、
人物像.bmp502が背景画像.bmp501と重なっていな
い部分504bについてはクリッピングを行う。また、
背景画像501上でうさぎ用アップリンクマスク.bmp9
6の領域と重なっていない部分もクリッピングする。こ
のため、このクリッピングをする部分は背景画像501
の色のままにする。さらに、背景画像501の領域にう
さぎ用アップリンクマスク.bmp96のみが重なっている
部分は、背景画像501の色のままにする。合成処理を
するのは背景画像501上で人物像.bmp502とうさぎ
用アップリンクマスク.bmp96とが重なった部分とな
る。
[0093] In the image 504 after the synthesizing process,
Clipping is performed on a portion 504b where the person image.bmp502 does not overlap with the background image.bmp501. Also,
Rabbit uplink mask on background image 501.bmp9
The portion that does not overlap with the region 6 is also clipped. Therefore, the portion to be clipped is the background image 501
Leave the color. Further, the portion where only the rabbit uplink mask.bmp 96 overlaps with the area of the background image 501 remains the color of the background image 501. The synthesis process is performed on the background image 501 where the human image.bmp 502 and the rabbit uplink mask.bmp 96 overlap.

【0094】そして、前記図3中のS203に示す式に
従い、各画素にあてはまる値を計算する。この場合、マ
スク画像がないので常にMC = 1として計算する。アップ
リンクマスクは二値のマスクなのでマスクされた部分の
境界は滑らかにはならなくて、ジャギーが出たような状
態になるが、この上に更に中間値を持つマスクが来て最
終的には境界線は滑らかになることになるので、ここで
はジャギーが出たような状態にあってもよい。
Then, a value applicable to each pixel is calculated according to the equation shown in S203 in FIG. In this case, since there is no mask image, the calculation is always performed with MC = 1. Since the uplink mask is a binary mask, the boundary of the masked part does not become smooth and jaggies appear, but a mask with an intermediate value comes on this and finally, Since the boundary line becomes smooth, it may be in a state where jaggies appear here.

【0095】また、ここでマスクされずに残っている部
分は、後で前面にプリミティブの画像を合成した時
に、うさぎマスク.bmp94のマスクの境界部分と重なる
部分まで多めに残している。これにより、後に他の画像
が重ねられたとき、その多めに残った部分で、全くアン
チエイリアスのかかっていない元の色と前面に来る画像
の間にアンチエイリアスがかかることになり、2枚の画
像間のアンチエイリアス処理だけですみ、複数の画像が
重なっているにも拘わらず、簡単な処理で境界部分を自
然な輪郭線とすることができる。
Further, the portion left unmasked here is large enough to overlap with the mask boundary portion of rabbit mask.bmp 94 when a primitive image is later synthesized on the front surface. This means that when another image is superimposed later, anti-aliasing is applied between the original color, which is not anti-aliased at all, and the image that comes to the foreground in the remaining portion of the image. Only the anti-aliasing process, the boundary portion can be made a natural contour line by a simple process, even though a plurality of images are overlapped.

【0096】なお、ここでマスクされずに残っている部
分は、うさぎマスク.bmp94よりは小さくなるようにし
ている。そして、合成後の画像は合成後画像用メモリ3
3と、外部出力(モニタ等)4に出力する。
The portion left unmasked here is made smaller than the rabbit mask.bmp94. The combined image is stored in the combined image memory 3.
3 and an external output (such as a monitor) 4.

【0097】その後、次のプリミティブの処理に移る。
レイアウトデータの画像ファイル名を画像解釈部5に
読み込む。レイアウトデータが終了か否かを判断し、終
了でない場合は、処理を継続する。そして、画像ファイ
ル名の内容に従って、うさぎ.bmp92、うさぎマス
ク.bmp94、ハート型アップリンクマスク.bmp85を画
像保存用メモリ30に格納する。うさぎ.bmp92を画像
加工パラメータに従って加工し、画像保存用メモリ3
0に書き込む。
Thereafter, the process moves to the next primitive.
The image file name of the layout data is read into the image interpretation unit 5. It is determined whether the layout data is completed, and if not, the process is continued. Then, a rabbit.bmp92, a rabbit mask.bmp94, and a heart-shaped uplink mask.bmp85 are stored in the image storage memory 30 in accordance with the contents of the image file name. Rabbit.bmp92 is processed according to the image processing parameters, and the image storage memory 3
Write to 0.

【0098】次に、うさぎマスク.bmp94を同じく画像
加工パラメータに従って加工し、画像保存用メモリ3
0に書き込む。ファイルデータは終了していないため、
次の画像加工パラメータを画像解釈部5に読み込み、
プリミティブの未処理画像が、画像保存用メモリ30
に残ってないかを判断する。本実施形態では、ハート型
アップリンクマスク.bmp88があるので、これを画像加
工パラメータに従って加工し、画像保存用メモリ30
に書き込む。
Next, the rabbit mask.bmp 94 is similarly processed in accordance with the image processing parameters, and the image storage memory 3
Write to 0. Since the file data is not finished,
The following image processing parameters are read into the image interpretation unit 5,
The primitive unprocessed image is stored in the image storage memory 30.
To determine if any are left. In the present embodiment, since there is a heart-shaped uplink mask.bmp88, this is processed according to the image processing parameters, and the image storage memory 30 is used.
Write to.

【0099】そして、プリミティブの画像を全て加工
し終わったら、次に画像を合成する。先ず、合成後画像
用メモリ33から、すでにプリミティブの画像が合成
されている背景画像.bmp504を画像合成部31に読み
込む。
When all the primitive images have been processed, the images are synthesized. First, the background image .bmp 504 in which the primitive image is already synthesized is read into the image synthesizing unit 31 from the post-synthesis image memory 33.

【0100】次に、画像保存用メモリ30から加工後の
画像うさぎ.bmp92、うさぎマスク.bmp94、ハート型
アップリンクマスク.bmp88を読み込む。このとき、図
13に示すようにうさぎ.bmp92と、うさぎマスク.bmp
94と、ハート型アップリンクマスク.bmp88の基準座
標P14〜P16と、合成した背景画像.bmp504の基
準座標P13が重なるように合成する。
Next, the processed image rabbit.bmp92, rabbit mask.bmp94, and heart-shaped uplink mask.bmp88 are read from the image storage memory 30. At this time, as shown in FIG. 13, rabbit.bmp92 and rabbit mask.bmp
94, the reference coordinates P14 to P16 of the heart-shaped uplink mask.bmp88, and the reference coordinates P13 of the combined background image.bmp504 are overlapped.

【0101】なお、このとき合成処理後の画像508に
おいて、ハート型アップリンクマスク.bmp88が背景画
像504の領域と重なっていない部分508bはクリッ
ピングする。また、必要であれば、うさぎ.bmp92とう
さぎマスク.bmp94が、ハート型アップリンクマスク.b
mp88の領域からはみ出した部分はクリッピングする
が、本実施形態においては出してないのでクリッピング
処理はない。
At this time, in the image 508 after the synthesizing process, a portion 508b where the heart-shaped uplink mask.bmp88 does not overlap the area of the background image 504 is clipped. If necessary, the rabbit.bmp92 and the rabbit mask.bmp94 are replaced with a heart-shaped uplink mask.b
Although the portion outside the area of mp88 is clipped, the clipping process is not performed in this embodiment, so that there is no clipping process.

【0102】ハート型アップリンクマスク.bmp88とう
さぎ.bmp92が重なってない部分は背景の色のままにす
る。結局、合成処理を行うのは背景画像504上でうさ
ぎ.bmp92と、ハート型アップリンクマスク.bmp88が
重なっている部分となる。
The portion where the heart-shaped uplink mask.bmp88 and the rabbit.bmp92 do not overlap remains the background color. As a result, the portion where the combining process is performed is a portion where the rabbit.bmp92 and the heart-shaped uplink mask.bmp88 overlap on the background image 504.

【0103】そして、前記図3中の式に従い、各画素に
あてはまる値を計算する。うさぎマスク.bmp94は中間
値をもつマスクなので、うさぎ.bmp92をマスクする
と、目的範囲502aすなわち人物の顔の部分の周囲と
うさぎの顔の周囲の境界部分にアンチエイリアスがかか
る。
Then, a value applicable to each pixel is calculated according to the equation in FIG. Since the rabbit mask.bmp 94 is a mask having an intermediate value, when the rabbit.bmp 92 is masked, anti-aliasing is applied to the target range 502a, that is, the periphery of the human face and the boundary around the rabbit face.

【0104】目的範囲502aの周囲はここで表示が残
る部分よりも大きく残るように1つ前の合成処理で処理
されているので、この時のアンチエイリアスは、目的範
囲502aの周囲に残っている部分とうさぎ.bmp92と
の間にかかる。さらにうさぎ.bmp92は、ハート型アッ
プリンクマスク.bmp88によってマスクされる。アップ
リンクマスクは二値なのでマスクされた部分の境界は滑
らかにはならなくて、ジャギーが出たような状態になる
が、この上に更に中間値を持つマスクが来て最終的には
境界線は滑らかになることになるので、ここではジャギ
ーが出たような状態にあってもよい。
Since the periphery of the target range 502a has been processed by the immediately preceding synthesis processing so as to remain larger than the portion where the display remains, the anti-aliasing at this time is performed in the portion remaining around the target range 502a. It hangs between rabbit.bmp92. The rabbit.bmp92 is further masked by a heart-shaped uplink mask.bmp88. Since the uplink mask is binary, the boundary of the masked part does not become smooth and jagged, but a mask with an intermediate value comes on this and finally the boundary line Will be smooth, so here it may be in a state where jaggies appear.

【0105】また、ここでマスクされずに残っている部
分は、後で前面にプリミティブの画像を合成した時
に、ハート型マスク.bmp85のマスクの内側の境界部分
より大きく、重なる部分まで多めに残している。但し、
ハート型マスク.bmp85のマスクの外側よりは小さくな
るようにしている。合成後の画像は合成後画像用メモリ
33や、外部出力(モニタ等)4に出力する。
The portion left unmasked here is larger than the inner boundary portion of the heart-shaped mask.bmp85 when a primitive image is later synthesized on the front surface, and a large portion is left up to the overlapping portion. ing. However,
The heart-shaped mask.bmp85 is made smaller than the outside of the mask. The combined image is output to the combined image memory 33 or an external output (monitor or the like) 4.

【0106】次いで、次のプリミティブの処理に移る。
先ず、レイアウトデータの画像ファイル名を画像解釈
部5に読み込む。そして、レイアウトデータが終了した
か否かの判断をし(本実施形態では、ここで(FILE=EO
F)を代入して、「ファイル終了」と判断される。)、
画像ファイル名の内容に従って、ハート型枠.bmp82
とハート型マスク.bmp85を画像合成部31に読み込
み、画像加工パラメータに従ってそれぞれを順に加工
し、加工後の画像は画像保存用メモリ30に書き込む。
Next, the processing moves to the next primitive.
First, the image file name of the layout data is read into the image interpretation unit 5. Then, it is determined whether or not the layout data is completed (in this embodiment, (FILE = EO here).
F) is substituted, and it is determined that "end of file". ),
According to the content of the image file name, heart-shaped frame.bmp82
And the heart-shaped mask.bmp85 are read into the image synthesizing unit 31, and each is processed in accordance with the image processing parameters, and the processed image is written into the image storage memory 30.

【0107】本実施形態では、レイアウトデータが終了
(FILE = EOF)するため、次のレイアウトデータの読み
込みはしない。合成後画像用メモリ33から、すでにプ
リミティブ、プリミティブの画像が合成済みの背景
画像508を画像合成部31に読み込む。次に、画像保
存用メモリ30から加工後の画像ハート型枠.bmp82、
ハート型マスク.bmp85を読み込む。そして図12に示
す様に、ハート型枠.bmp82と ハート型マスク.bmp8
5を前のプリミティブまでの画像が合成されている背景
画像508の前面にそれぞれの基準座標が重なるように
合成する。
In this embodiment, since the layout data ends (FILE = EOF), the next layout data is not read. The image combining unit 31 reads the primitive and the background image 508 in which the primitive images have already been combined from the combined image memory 33. Next, the processed image heart-shaped frame.bmp82 from the image storage memory 30.
Read the heart-shaped mask.bmp85. Then, as shown in FIG. 12, the heart-shaped frame.bmp82 and the heart-shaped mask.bmp8
5 is synthesized so that the respective reference coordinates overlap the front surface of the background image 508 on which the images up to the previous primitive are synthesized.

【0108】このとき、ハート型枠.bmp82とハート型
マスク.bmp85が背景画像508の領域と重ならない部
分511bはクリッピングし、重なった部分を処理す
る。
At this time, a portion 511b where the heart-shaped frame.bmp82 and the heart-shaped mask.bmp85 do not overlap with the area of the background image 508 is clipped, and the overlapped portion is processed.

【0109】そして、前記図3中の式に従い、各画素に
あてはまる値を計算する。この場合、アップリンクマス
ク画像がないので常にUMC = 1として計算する。合成し
た際、ハート型マスク.bmp85は中間値をもつマスクな
ので、ハート型枠の外側と背景画像の間にアンチエイリ
アスがかかり境界部分が滑らかになる。
Then, a value applicable to each pixel is calculated according to the equation in FIG. In this case, since there is no uplink mask image, the calculation is always performed with UMC = 1. When synthesized, the heart-shaped mask.bmp85 is a mask having an intermediate value, so that anti-aliasing is performed between the outside of the heart-shaped frame and the background image, and the boundary portion is smoothed.

【0110】また、以前に合成されている ハート型ア
ップリンクマスク.bmp88によってハート形にマスクさ
れたうさぎ.bmp92の部分508aは、ハート型枠の外
側となる境界より小さく、ハート型枠の内側となる境界
より大きくなる様にマスクしてあるので、ハート型マス
ク.bmp85を重ねた時、枠の内側とうさぎ.bmp92の背
景色の部分との間にアンチエイリアスがかかることにな
り、境界線は滑らかになる。結果は図14に示す画像5
11となる。合成後の画像は外部に出力し、終了する。
The portion 508a of the rabbit.bmp 92 masked in a heart shape by the heart-shaped uplink mask.bmp 88 previously synthesized is smaller than the boundary outside the heart frame, and Since it is masked so that it becomes larger than the border, the heart-shaped mask.When bmp85 is overlaid, anti-aliasing will be applied between the inside of the frame and the background color of the rabbit.bmp92, the borderline will be smooth become. The result is image 5 shown in FIG.
It becomes 11. The combined image is output to the outside and the process ends.

【0111】なお、前面に表示される画像が背面の画像
の必要部分よりも十分に大きかったり、前面に来る画像
のデザインが矩形の場合は、背面にくる画像を単純にク
リッピングすればよいが、人物の顔、動物の着ぐるみや
ハート型の枠のように前面に複雑な形がくる場合、画像
のクリッピングだけではうまく行かない。このような場
合にアップリンクマスクは有効になる。
If the image displayed on the front is sufficiently larger than the required portion of the image on the back or the design of the image on the front is rectangular, the image on the back may be simply clipped. If a complex shape comes to the fore such as a human face, animal costume, or a heart-shaped frame, clipping the image alone will not work. In such a case, the uplink mask becomes effective.

【0112】[0112]

【発明の効果】以上説明したように、本発明の素材符号
化伝送方法及びその装置によれば、原画像に複数の素材
画像を重ねて合成する際の演算処理の負担を軽減し、演
算処理の遅延を防止し、迅速な画像合成処理を行うこと
ができる。
As described above, according to the material encoding transmission method and apparatus of the present invention, the load of arithmetic processing when superimposing a plurality of material images on an original image and combining them is reduced. Can be prevented, and quick image synthesis processing can be performed.

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

【図1】本発明の実施形態に係る画像合成装置を模式的
に示す図である。
FIG. 1 is a diagram schematically showing an image synthesizing apparatus according to an embodiment of the present invention.

【図2】本実施形態におけるアップリンクマスク画像を
用いた画像合成処理の手順を示す図である。
FIG. 2 is a diagram illustrating a procedure of an image combining process using an uplink mask image according to the present embodiment.

【図3】本実施形態におけるアップリンクマスク画像を
用いた画像合成処理のフローチャートを示すものであ
る。
FIG. 3 is a flowchart illustrating an image combining process using an uplink mask image according to the embodiment.

【図4】本実施形態における画像合成処理プログラムの
フローチャートを示すものである。
FIG. 4 shows a flowchart of an image synthesis processing program according to the embodiment.

【図5】本実施形態における画像の加工処理の手順を示
すものである。
FIG. 5 illustrates a procedure of an image processing process according to the embodiment.

【図6】本実施形態においてアップリンクマスク画像が
存在する場合の画像の加工処理の手順を示すものであ
る。
FIG. 6 illustrates a procedure of image processing when an uplink mask image exists in the present embodiment.

【図7】本実施形態における画像処理の基準座標の説明
図である。
FIG. 7 is an explanatory diagram of reference coordinates for image processing in the present embodiment.

【図8】本実施形態における画像の加工・合成処理の手
順のフローチャートを示すものである。
FIG. 8 is a flowchart illustrating a procedure of an image processing / combining process according to the embodiment.

【図9】本実施形態で用いられる画像群(背景画像、人
物画像)を示すものである。
FIG. 9 illustrates an image group (background image, person image) used in the present embodiment.

【図10】本実施形態で用いられる画像群(素材画像、
マスク画像、アップリンクマスク画像)を示すものであ
る。
FIG. 10 illustrates a group of images (material images,
(A mask image, an uplink mask image).

【図11】本実施形態で用いられる画像群(素材画像、
マスク画像、アップリンクマスク画像)を示すものであ
る。
FIG. 11 illustrates a group of images (material images,
(A mask image, an uplink mask image).

【図12】本実施形態における画像合成処理の作業手順
を示すものである。
FIG. 12 illustrates a work procedure of an image combining process according to the present embodiment.

【図13】本実施形態における画像合成処理の作業手順
を示すものである。
FIG. 13 illustrates an operation procedure of an image combining process according to the present embodiment.

【図14】本実施形態における画像合成処理の作業手順
を示すものである。
FIG. 14 illustrates a work procedure of an image synthesis process according to the present embodiment.

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

1 レイアウトデータ 2 外部記憶装置 3 静止画像処理部 4 出力手段(モニタ、プリンタ等) 5 画像情報解釈部 10 画像合成装置 21 素材画像 21a 目的部分 22 アップリンクマスク画像(2値マスク) 22a 区分範囲 24 背景画像(原画像) 25 合成後の画像 30 画像保存用メモリ 31 画像合成部(演算手段) 32 画像加工部 33 合成後画像用メモリ Reference Signs List 1 layout data 2 external storage device 3 still image processing unit 4 output means (monitor, printer, etc.) 5 image information interpreting unit 10 image synthesizing device 21 material image 21a target part 22 uplink mask image (binary mask) 22a classification range 24 Background image (original image) 25 Image after synthesis 30 Image storage memory 31 Image synthesis unit (arithmetic means) 32 Image processing unit 33 Memory for image after synthesis

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA01 CA01 CA02 CA08 CA12 CA16 CB01 CB02 CB08 CB12 CB16 CC01 CD02 CD03 CD05 CE05 CE08 CH09 CH12 5C076 AA02 AA12 AA21 AA22 AA24 AA32 BA06 5C082 BA12 CA22 CA32 CA42 CA56 DA87 MM02  ──────────────────────────────────────────────────の Continued on the front page F-term (reference)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 原画像に複数の素材画像を重ねて合成す
る画像合成方法において、 画素の値が0又は1で表現された2値マスク画像を用い
ることによって、前記複数の素材画像のうち任意の素材
画像について、これの目的部分を含み且つ該目的部分よ
りも広い範囲を区分してこの区分範囲以外の範囲を完全
に透過化したうえで、該任意の素材画像と前記原画像と
を合成し、 前記区分範囲と前記原画像との境界部分を覆うように且
つ前記目的部分には重複しないようにして、他の素材画
像を合成することを特徴とする画像合成方法。
1. An image synthesizing method for overlaying a plurality of material images on an original image and synthesizing the plurality of material images, the method comprising: Of the material image of the above, including the target portion thereof and dividing the range wider than the target portion to completely make the range other than the divided range transparent, and then combining the arbitrary material image with the original image An image combining method comprising combining another material image so as to cover a boundary portion between the division range and the original image and not to overlap the target portion.
【請求項2】 請求項1記載の画像合成方法において、
該画像合成方法によって合成された画像を原画像とし
て、該画像合成方法を繰り返し行うことを特徴とする画
像合成方法。
2. The image synthesizing method according to claim 1, wherein
An image synthesizing method, wherein an image synthesized by the image synthesizing method is used as an original image, and the image synthesizing method is repeatedly performed.
【請求項3】 請求項1又は2記載の画像合成方法にお
いて、前記他の素材画像の合成を行った後に、前記目的
部分の縁部について円滑化処理を行うことを特徴とする
画像合成方法。
3. The image synthesizing method according to claim 1, wherein, after synthesizing the other material images, smoothing processing is performed on an edge of the target portion.
【請求項4】 請求項1、2又は3記載の画像合成方法
であって、前記複数の素材画像の合成処理を行うにあた
り、各素材画像の合成処理を行う毎に、合成結果を逐次
表示することを特徴とした画像合成方法。
4. The image synthesizing method according to claim 1, wherein, when synthesizing the plurality of material images, the synthesizing result is sequentially displayed every time the synthesizing process of each material image is performed. An image synthesizing method characterized in that:
【請求項5】 原画像に複数の素材画像を重ねて合成す
る画像合成プログラムを記録したコンピュータ読み取り
可能な記録媒体において、 画素の値が0又は1で表現された2値マスクを供給する
ことにより、前記複数の素材画像のうち任意の素材画像
についてこれの目的部分を含み且つ該目的部分よりも広
い範囲を区分し、該任意の素材画像の該区分範囲以外の
範囲を完全に透過化するステップを含むことを特徴とす
る画像合成プログラムを記録したコンピュータ読み取り
可能な記録媒体。
5. A computer-readable recording medium having recorded thereon an image synthesizing program for superimposing a plurality of material images on an original image and synthesizing the same, by supplying a binary mask in which pixel values are represented by 0 or 1. Partitioning a range including an intended portion of an arbitrary material image of the plurality of material images and wider than the intended portion, and completely transparentizing a range other than the divided range of the arbitrary material image. A computer-readable recording medium on which an image synthesizing program is recorded.
JP10223297A 1998-08-06 1998-08-06 Image synthesizing method and computer readable storage medium recording image synthesizing program Pending JP2000057317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10223297A JP2000057317A (en) 1998-08-06 1998-08-06 Image synthesizing method and computer readable storage medium recording image synthesizing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10223297A JP2000057317A (en) 1998-08-06 1998-08-06 Image synthesizing method and computer readable storage medium recording image synthesizing program

Publications (1)

Publication Number Publication Date
JP2000057317A true JP2000057317A (en) 2000-02-25

Family

ID=16795945

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10223297A Pending JP2000057317A (en) 1998-08-06 1998-08-06 Image synthesizing method and computer readable storage medium recording image synthesizing program

Country Status (1)

Country Link
JP (1) JP2000057317A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015624A (en) * 2001-07-04 2003-01-17 Fujitsu Ltd On-screen display device
JP2006260387A (en) * 2005-03-18 2006-09-28 Brother Ind Ltd Printing data editing device, and printing data editing program
JPWO2005103877A1 (en) * 2004-04-22 2008-03-13 富士通株式会社 Image processing apparatus and graphics memory apparatus
JP2015188164A (en) * 2014-03-27 2015-10-29 株式会社ジオ技術研究所 Image processing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003015624A (en) * 2001-07-04 2003-01-17 Fujitsu Ltd On-screen display device
JPWO2005103877A1 (en) * 2004-04-22 2008-03-13 富士通株式会社 Image processing apparatus and graphics memory apparatus
JP4522404B2 (en) * 2004-04-22 2010-08-11 富士通セミコンダクター株式会社 Image processing device
US8619092B2 (en) 2004-04-22 2013-12-31 Fujitsu Semiconductor Limited Image processing apparatus and graphics memory unit
JP2006260387A (en) * 2005-03-18 2006-09-28 Brother Ind Ltd Printing data editing device, and printing data editing program
JP2015188164A (en) * 2014-03-27 2015-10-29 株式会社ジオ技術研究所 Image processing device

Similar Documents

Publication Publication Date Title
JP4366317B2 (en) Background color removal method for Porter-Duff composition method
JP4404650B2 (en) Makeup simulation device, makeup simulation method, makeup simulation program
JP4240395B2 (en) Image composition apparatus, electronic device, image composition method, control program, and readable recording medium
CA2236388A1 (en) Method and apparatus for creating facial images
CN115330986B (en) Method and system for processing graphics in block rendering mode
JP2008084329A (en) Concatenated rendering method for digital image
JP4419876B2 (en) Image processing device
JP2000057317A (en) Image synthesizing method and computer readable storage medium recording image synthesizing program
EP0817122A2 (en) Filter and raster operations
JP4143613B2 (en) Drawing method and drawing apparatus
JPH0812692B2 (en) Image processing device
WO2021245875A1 (en) Image compositing device and image compositing method
JP2734099B2 (en) Blur image synthesis processing method
JP2002152494A (en) Method and device for compositing digital image
JP2000076432A (en) Image data interpolation device and method therefor, and medium having recorded image data interpolation program thereon
JPS63253473A (en) Producer for plate making instruction form
JP2836617B2 (en) Rendering processor
JP2005077750A (en) Display device and character display control method
JP2006139342A (en) Image processor and image processing method
JPH09198494A (en) Picture processing method and device therefor
JP2735666B2 (en) Image data writing processor
JP4230051B2 (en) Image generation method
JPH07140951A (en) Method of displaying print image
JPH02127786A (en) Two-dimensional expressing method for three-dimensional object
JPH02148273A (en) Method for two-dimensionally expressing three-dimensional object

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060404

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060605

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060801

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070403