Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2647367B2 - Image composition method - Google Patents
[go: Go Back, main page]

JP2647367B2 - Image composition method - Google Patents

Image composition method

Info

Publication number
JP2647367B2
JP2647367B2 JP60266220A JP26622085A JP2647367B2 JP 2647367 B2 JP2647367 B2 JP 2647367B2 JP 60266220 A JP60266220 A JP 60266220A JP 26622085 A JP26622085 A JP 26622085A JP 2647367 B2 JP2647367 B2 JP 2647367B2
Authority
JP
Japan
Prior art keywords
image
screen
address
image data
rectangular
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 - Lifetime
Application number
JP60266220A
Other languages
Japanese (ja)
Other versions
JPS62126474A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP60266220A priority Critical patent/JP2647367B2/en
Publication of JPS62126474A publication Critical patent/JPS62126474A/en
Application granted granted Critical
Publication of JP2647367B2 publication Critical patent/JP2647367B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像合成方法に関する。The present invention relates to an image synthesizing method.

[従来の技術] 従来の画像合成は、第1の画像に第2の画像を合成す
る際、第1の画像上に第2の画像を合成するための矩形
の領域を設けて、そこに前記第2の画像をはめ込んでい
た。
[Prior Art] In the conventional image synthesis, when a second image is synthesized with a first image, a rectangular area for synthesizing a second image is provided on the first image, and the rectangular area is formed there. The second image was inset.

[発明が解決しようとする課題] しかしながら、従来の画像合成方法では画像から矩形
に限らない複雑な形の画像を合成画像として切り出し、
他の画像を合成する場合、前記複雑な画像を規定するた
めに、複雑な形の画像を含むフレーム画像のどこに該複
雑な画像があるかを示すフラグ情報をビッとマップとし
て持つ必要があった。そのため従来の方法では、合成の
ため用いる2フレームの画像に応じた2枚のフレームメ
モリと、フラグ情報を記憶するフレームメモリの計3つ
のフレームメモリが必要となり、大メモリ容量が必要に
なるという欠点があった。
[Problems to be Solved by the Invention] However, in the conventional image synthesizing method, an image of a complicated shape not limited to a rectangle is cut out from the image as a synthesized image,
When synthesizing another image, in order to define the complex image, it is necessary to have, as a bit map, flag information indicating where the complex image is located in a frame image including an image having a complicated shape. . Therefore, the conventional method requires a total of three frame memories, that is, two frame memories corresponding to two frames of images used for synthesis and a frame memory for storing flag information, which requires a large memory capacity. was there.

[課題を解決するための手段] かかる課題を解決するために、本発明の画像合成方法
は、第1の1画面の画像に、第2の1画面の画像内の非
矩形形状の画像データを合成する画像合成方法であっ
て、前記第1の1画面の画像を構成する画像データを第
1の記憶手段に記憶し、前記第1の1画面の画像とは異
なる前記第2の1画面の画像を構成する画像データを第
2の記憶手段に記憶し、前記第1の1画面分の画像に応
じた1画面分のアドレスを記憶することなく、前記第1
の1画面の画像に合成する前記第2の1画面の画像内の
非矩形形状の画像データの領域を規定すると共に、前記
第1の1画面の画像上の非矩形形状を規定する境界線の
アドレスを第3の記憶手段に記憶し、前記第1の1画面
の画像を構成する画像データをアドレス順にアクセスし
て、前記第3の記憶手段に記憶された前記境界線のアド
レスと比較した結果、前記第1の1画面の画像へ前記非
矩形形状の画像データが合成される領域とみなされない
領域では前記第1の1画面を構成する画像データを像形
成装置に出力し、前記第1の1画面の画像への前記非矩
形形状の画像データが合成される領域とみなされる領域
では前記第2の1画面の画像を構成する画像データから
前記非矩形形状の画像データを前記像形成装置に出力す
ることを特徴とする。
[Means for Solving the Problems] In order to solve such problems, the image synthesizing method according to the present invention provides a method for adding non-rectangular image data in a second one-screen image to a first one-screen image. An image synthesizing method for synthesizing, wherein image data constituting the image of the first screen is stored in a first storage unit, and the image data of the second screen different from the image of the first screen is stored. The image data constituting the image is stored in the second storage means, and the first image data is stored without storing the address for one screen corresponding to the image for the first one screen.
A non-rectangular image data area in the second one-screen image to be synthesized with the one-screen image, and a boundary line defining the non-rectangular shape on the first one-screen image. A result of storing an address in a third storage means, accessing image data constituting the image of the first one screen in the order of addresses, and comparing the address with the address of the boundary line stored in the third storage means Outputting image data constituting the first screen to an image forming apparatus in an area not considered as an area where the non-rectangular image data is combined with the image of the first screen; In the area considered as the area where the non-rectangular image data is combined with the one-screen image, the non-rectangular image data is transferred from the image data forming the second one-screen image to the image forming apparatus. Characterized by outputting .

[実施例] 以下、添付図面に従って実施例を詳しく説明する。Embodiment An embodiment will be described below in detail with reference to the accompanying drawings.

第1図に示す画像合成装置は、CRT1と、ビデオRAM
(V−RAM)2と、合成画像数だけのイメージメモリか
ら成るイメージメモリ群3と、ROM4と、CPU5と、制御用
RAM6とを備える。イメージメモリ群3は、順にイメージ
メモリ3−1から3−nまでのn個のイメージメモリを
含む。
The image synthesizing device shown in FIG.
(V-RAM) 2, an image memory group 3 composed of image memories for the number of combined images, a ROM 4, a CPU 5,
RAM6. The image memory group 3 includes n image memories 3-1 to 3-n in order.

かかる第1図の構成において、イメージメモリ群3が
イメージメモリ3−1、3−2の2つの場合を説明する
と、ROM4に内蔵されたプログラムによって、CPU5は先ず
イメージメモリ3−1のデータを、制御用RAM6に記憶さ
れた最初のアドレスと一致するまでV−RAM2に転送す
る。アドレスが一致した時点からは、イメージメモリ3
−2のデータを、制御用RAM6に記憶された2番目のアド
レスと一致するまでV−RAM2に転送する。2番目のアド
レスと一致した時点からは、再びイメージメモリ3−1
のデータを、制御用RAM6に記憶された3番目のアドレス
と一致するまでV−RAM2に転送する。以下順次前記動作
を終了アドレスに達するまで繰り返し、V−RAM6の内容
をCRT1に出力する。
In the configuration of FIG. 1, the case where the image memory group 3 includes two image memories 3-1 and 3-2 will be described. First, the program stored in the ROM 4 causes the CPU 5 to first store the data in the image memory 3-1. The data is transferred to the V-RAM 2 until the address matches the first address stored in the control RAM 6. When the addresses match, the image memory 3
-2 data is transferred to the V-RAM 2 until it matches the second address stored in the control RAM 6. From the point in time when the address matches the second address, the image memory 3-1 is returned again.
Is transferred to the V-RAM 2 until it matches the third address stored in the control RAM 6. Thereafter, the above operation is repeated until the end address is reached, and the contents of the V-RAM 6 are output to the CRT 1.

以下、本実施例を更に詳しく説明する。 Hereinafter, the present embodiment will be described in more detail.

第1図は画像合成装置の構成図であつて、イメージメ
モリ3−1には第2図(a)の画像データ、イメージメ
モリ3−2には第2図(b)の画像データが記憶されて
いる。制御用RAM6には第2図(c)の様に上記2つの画
像データを合成する時の境界線のアドレスが記憶されて
いる。尚、本実施例では一画面は256×256でアドレスは
HEX(0000〜FFFF)である。
FIG. 1 is a block diagram of an image synthesizing apparatus. The image data of FIG. 2A is stored in an image memory 3-1 and the image data of FIG. 2B is stored in an image memory 3-2. ing. As shown in FIG. 2 (c), the control RAM 6 stores the address of the boundary line when the two image data are combined. In this embodiment, one screen is 256 × 256 and the address is
HEX (0000 to FFFF).

第3図は、ROM4に内蔵された画像合成プログラムのフ
ローチヤート図である。先ず、ステツプS31で画像アド
レスが初期化されてHEX(0000)となる。次にステツプS
32でイメージメモリ3−1より第2図(a)の画像アド
レスHEX(0000)の画像データがV−RAM2に送られる。
画像アドレスはステツプS33でカウントアツプされて、H
EX(0001)となり、ステツプS34で転送終了がチエツク
され、ステツプS35で第2図(e)の制御用RAMの1番目
のアドレスHEX(1ABO)と比較される。両アドレスは等
しくないので、ステツプS32に戻り、画像アドレスHEX
(0001)のデータがV−RAM2に送られる。以下、画像ア
ドレスがHEX(1ABO)になるまでイメージメモリ3−1
の画像データがV−RAM2に送られる。画像アドレスがHE
X(1ABO)になると、ステツプS35で制御用RAM内のアド
レスと一致するのでステツプS36に進んで、イメージメ
モリ3−2の画像データ第2図(b)がV−RAM2に送ら
れる。画像アドレスはステツプS37でカウントアツプさ
れ、HEX(1AB1)となる。ステツプS38で転送終了がチエ
ツクされ、ステツプS39では前記アドレスHEX(1AB1)と
第2図(e)の制御用ROM6内の2番目のアドレスHEX(1
AB3)とが比較される。等しくないのでステツプS36に戻
り、以下、画像アドレスがHEX(1AB3)になるまで、ス
テツプS36−37−38−39が繰り返されて、イメージメモ
リ3−2の画像データがV−RAM2に送られる。画像アド
レスがHEX(1AB3)になると、ステツプS39からステツプ
S32に進み、画像アドレスが第2図(e)の3番目のア
ドレスHEX(1BAC)と一致するまで再びイメージメモリ
3−1の画像データがV−RAM2に送られる。
FIG. 3 is a flowchart of the image synthesizing program stored in the ROM 4. First, in step S31, the image address is initialized to HEX (0000). Then step S
At 32, the image data of the image address HEX (0000) in FIG. 2A is sent from the image memory 3-1 to the V-RAM2.
The image address is counted up in step S33, and H
It becomes EX (0001), the end of the transfer is checked in step S34, and in step S35, it is compared with the first address HEX (1ABO) of the control RAM in FIG. 2 (e). Since the two addresses are not equal, the process returns to step S32 and the image address HEX
The data of (0001) is sent to the V-RAM2. Hereinafter, the image memory 3-1 until the image address becomes HEX (1ABO).
Is sent to the V-RAM2. Image address is HE
When X (1ABO) is reached, the address matches the address in the control RAM in step S35, and the flow advances to step S36 to send the image data in the image memory 3-2 (FIG. 2B) to the V-RAM2. The image address is counted up in step S37 and becomes HEX (1AB1). In step S38, the end of the transfer is checked. In step S39, the address HEX (1AB1) and the second address HEX (1) in the control ROM 6 shown in FIG.
AB3) is compared. Since they are not equal, the process returns to step S36, and thereafter, steps S36-37-38-39 are repeated until the image address becomes HEX (1AB3), and the image data of the image memory 3-2 is sent to the V-RAM2. When the image address becomes HEX (1AB3), the steps from step S39
Proceeding to S32, the image data in the image memory 3-1 is sent to the V-RAM2 again until the image address matches the third address HEX (1BAC) in FIG. 2 (e).

以下終了アドレスになるまで画像データを送り、第2
図(c)の様にイメージメモリ3−1と3−2との合成
が達成される。
The image data is sent until the end address is reached, and the second
The combination of the image memories 3-1 and 3-2 is achieved as shown in FIG.

次に第4図の画像移動プログラムのフローチヤート図
に従つて、画像を移動して合成する例を示す。
Next, an example of moving and synthesizing images according to the flowchart of the image moving program shown in FIG. 4 will be described.

顧客より画像の移動量として例えばx方向にマイナス
HEX(60)、y方向にプラスHEX(10)が入力される。ま
ず、第4図にステツプS41で移動量が読み込まれ、ステ
ツプS42からステツプS43に行つてステツプS43−44で制
御用RAM6内のアドレスからHEX(60)が引かれ、制御用R
AM6の内容は第2図(e)から第2図(f)に変換され
る。次にステツプS45でx方向のマイナスHEX(60)が制
御用RAM6に記憶される。ステツプS47−48では、制御用R
AM6内のアドレスにy方向の移動量の符号を反転したマ
イナスHEX(10)にHEX(FF)をかけた数が加えられ、制
御用RAM6の内容は第2図(f)から第2図(g)に変わ
り、ステツプS49でy方向のプラスHEX(10)が制御用RA
M6内に記憶される。画像の合成は前記第3図画像合成の
フローチヤートに従つて行われるが、この際イメージメ
モリ3−2からV−RAM2への画像データの転送時に、イ
メージメモリ3−2からの読み出しアドレスは制御用RA
M6内に記憶された移動量によつてHEX(60)とHEX(10×
FF)が加えられてるので、第2図(d)のような合成画
像が得られる。
For example, minus in the x direction as the amount of image movement from the customer
HEX (60), plus HEX (10) is input in the y direction. First, in FIG. 4, the movement amount is read in step S41, the process proceeds from step S42 to step S43, and HEX (60) is subtracted from the address in the control RAM 6 in steps S43-44, and the control R
The contents of AM6 are converted from FIG. 2 (e) to FIG. 2 (f). Next, in step S45, minus HEX (60) in the x direction is stored in the control RAM 6. In step S47-48, the control R
A value obtained by multiplying HEX (FF) by minus HEX (10) obtained by inverting the sign of the movement amount in the y direction to the address in AM6 is added, and the contents of the control RAM 6 are changed from FIG. g), and in step S49, the positive HEX (10) in the y direction is
Stored in M6. The image synthesis is performed according to the flowchart of FIG. 3 image synthesis. At this time, when the image data is transferred from the image memory 3-2 to the V-RAM2, the read address from the image memory 3-2 is controlled. For RA
HEX (60) and HEX (10 ×
FF) is added, a composite image as shown in FIG. 2D is obtained.

尚、実施例ではイメージメモリが2つの場合を説明し
たが、イメージメモリの数を増やせばその数だけの画像
が合成できる。
In the embodiment, the case where the number of the image memories is two is described.

また、画像アドレスの取り方、移動量の算出のし方等
は本実施例に限らない。画像の移動時に移動量だけイメ
ージメモリをローテイトすると合成時の処理が簡単にな
る。
Further, how to obtain an image address, how to calculate the movement amount, and the like are not limited to the present embodiment. If the image memory is rotated by the moving amount when the image is moved, the processing at the time of composition is simplified.

[発明の効果] 以上本発明によれば、第1の画面分の画像に応じた1
画面分のアドレスを記憶することなく、第1の1画面の
画像に合成する第2の1画面の画像内の非矩形形状の画
像データの領域を規定すると共に、該第1の1画面の画
像上の非矩形形状を規定する境界線のアドレスを第3の
記憶手段に記憶し、該第1の1画面の画像を構成する画
像データをアドレス順にアクセスし、該第3の記憶手段
に記憶された前記境界線のアドレスと比較した結果、前
記第1の1画面の画像へ前記非矩形形状の画像データが
合成される領域とみなされない領域では前記第1の1画
面を構成する画像データを像形成装置に出力し、前記第
1の1画面の画像へ前記非矩形形状の画像データが合成
される領域とみなされる領域では前記第2の1画面の画
像を構成する画像データから該非矩形形状の画像データ
を前記像形成装置に出力するので、非矩形形状の画像合
成を実現したうえ、記憶するアドレス量を極力削減して
メモリ容量の削減が可能となる。
[Effects of the Invention] As described above, according to the present invention, one image corresponding to the image of the first screen is displayed.
A non-rectangular image data area in the second one-screen image to be combined with the first one-screen image without storing the address for the first screen, and the first one-screen image The address of the boundary line defining the above non-rectangular shape is stored in the third storage means, and the image data constituting the image of the first one screen is accessed in order of address, and is stored in the third storage means. As a result of comparison with the address of the boundary line, the image data forming the first screen is displayed in an area that is not regarded as an area where the non-rectangular image data is combined with the image of the first screen. In the area which is output to the forming apparatus and which is considered as an area where the non-rectangular image data is combined with the first one-screen image, the non-rectangular image data constituting the second one-screen image is Image data from the image forming apparatus Since output, after having realized the image synthesis of non-rectangular shape, it is possible to reduce the memory capacity by reducing an address amount to be stored as much as possible.

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

第1図は画像合成装置構成図、 第2図−(a)は画像1図、 第2図−(b)は画像2図、 第2図−(c),(d)は合成図、 第2図−(e),(f),(g)は制御用RAM内の境界
線アドレスを示す図、 第3図は画像合成プログラムのフローチヤート図、 第4図は画像移動プログラムのフローチヤート図であ
る。 図中、1……CRT、2……V−RAM、3……イメージメモ
リ群、4……ROM、5……CPU、6……制御用RAMであ
る。
FIG. 1 is a block diagram of an image synthesizing apparatus, FIG. 2 (a) is an image 1, FIG. 2 (b) is an image 2, FIG. 2 (c) and (d) are synthetic diagrams, 2-(e), (f), (g) are diagrams showing boundary line addresses in the control RAM, FIG. 3 is a flowchart of an image synthesizing program, and FIG. 4 is a flowchart of an image moving program. It is. In the figure, 1 ... CRT, 2 ... V-RAM, 3 ... Image memory group, 4 ... ROM, 5 ... CPU, 6 ... Control RAM.

フロントページの続き (56)参考文献 特開 昭60−154293(JP,A) 特開 昭59−146363(JP,A) 特開 昭58−189763(JP,A) 特開 昭58−217076(JP,A) 特開 昭59−170959(JP,A) 特開 昭60−245040(JP,A)Continuation of front page (56) References JP-A-60-154293 (JP, A) JP-A-59-146363 (JP, A) JP-A-58-189763 (JP, A) JP-A-58-217076 (JP) JP-A-59-170959 (JP, A) JP-A-60-245040 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第1の1画面の画像に、第2の1画面の画
像内の非矩形形状の画像データを合成する画像合成方法
であって、 前記第1の1画面の画像を構成する画像データを第1の
記憶手段に記憶し、 前記第1の1画面の画像とは異なる前記第2の1画面の
画像を構成する画像データを第2の記憶手段に記憶し、 前記第1の1画面分の画像に応じた1画面分のアドレス
を記憶することなく、前記第1の1画面の画像に合成す
る前記第2の1画面の画像内の非矩形形状の画像データ
の領域を規定すると共に、前記第1の1画面の画像上の
非矩形形状を規定する境界線のアドレスを第3の記憶手
段に記憶し、 前記第1の1画面の画像を構成する画像データをアドレ
ス順にアクセスして、前記第3の記憶手段に記憶された
前記境界線のアドレスと比較した結果、前記第1の1画
面の画像へ前記非矩形形状の画像データが合成される領
域とみなされない領域では前記第1の1画面を構成する
画像データを像形成装置に出力し、前記第1の1画面の
画像へ前記非矩形形状の画像データが合成される領域と
みなされる領域では前記第2の1画面の画像を構成する
画像データから前記非矩形形状の画像データを前記像形
成装置に出力することを特徴とする画像合成方法。
An image combining method for combining non-rectangular image data in a second one-screen image with a first one-screen image, wherein the first one-screen image is configured. Storing image data in a first storage means, storing image data constituting an image of the second one screen different from the image of the first one screen in a second storage means, Without storing the address of one screen corresponding to the image of one screen, the area of the non-rectangular image data in the image of the second screen to be combined with the image of the first screen is defined. In addition, an address of a boundary defining a non-rectangular shape on the image of the first screen is stored in a third storage means, and image data constituting the image of the first screen is accessed in address order. And comparing the address of the boundary line stored in the third storage means with the address of the boundary line. As a result of the comparison, in an area that is not regarded as an area where the non-rectangular image data is combined with the image of the first screen, image data forming the first screen is output to an image forming apparatus. In the area considered as the area where the non-rectangular image data is combined with the image of the first single screen, the image data of the non-rectangular shape is formed from the image data forming the image of the second single screen. An image synthesizing method characterized by outputting to an apparatus.
JP60266220A 1985-11-28 1985-11-28 Image composition method Expired - Lifetime JP2647367B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60266220A JP2647367B2 (en) 1985-11-28 1985-11-28 Image composition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60266220A JP2647367B2 (en) 1985-11-28 1985-11-28 Image composition method

Publications (2)

Publication Number Publication Date
JPS62126474A JPS62126474A (en) 1987-06-08
JP2647367B2 true JP2647367B2 (en) 1997-08-27

Family

ID=17427927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60266220A Expired - Lifetime JP2647367B2 (en) 1985-11-28 1985-11-28 Image composition method

Country Status (1)

Country Link
JP (1) JP2647367B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58189763A (en) * 1982-04-30 1983-11-05 Fuji Electric Co Ltd Mask generator
JPS59146365A (en) * 1983-02-09 1984-08-22 Fuji Electric Co Ltd Mask information storage system
JPS60154293A (en) * 1984-01-24 1985-08-13 ソニー株式会社 Display circuit
JPS61122690A (en) * 1984-11-19 1986-06-10 日本電気株式会社 Display controller

Also Published As

Publication number Publication date
JPS62126474A (en) 1987-06-08

Similar Documents

Publication Publication Date Title
US4709393A (en) Video processing systems
US4618858A (en) Information display system having a multiple cell raster scan display
JPS6191777A (en) Video image forming apparatus
GB2119594A (en) Video processing systems
US6188800B1 (en) Two-dimensional spatial transformation system for video processing
US4748442A (en) Visual displaying
JP2647367B2 (en) Image composition method
JP2926637B2 (en) Volume rendering apparatus and method suitable therefor
US5293483A (en) Combined image and control data image memory device
JPS59231591A (en) Image generator
US5220428A (en) Digital video effects apparatus for image transposition
JPS6335265B2 (en)
JP3272463B2 (en) Image forming apparatus and method of using the same
JP2787887B2 (en) Color image display
JPH0315196B2 (en)
JPH04219791A (en) Window display method for dynamic image
JPH0242489A (en) Picture display
JPS61267095A (en) Display method
JP2954587B2 (en) Display image management device
JPH0567185A (en) Picture display processing device
JPH01152579A (en) Map picture display device
JPH05314271A (en) Filling device
JPS592167A (en) Picture storage device
JPH04362794A (en) Picture processing method
JPH06175645A (en) Image data display device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term