JP2826102B2 - Image superposition method - Google Patents

Image superposition method

Info

Publication number
JP2826102B2
JP2826102B2 JP61057796A JP5779686A JP2826102B2 JP 2826102 B2 JP2826102 B2 JP 2826102B2 JP 61057796 A JP61057796 A JP 61057796A JP 5779686 A JP5779686 A JP 5779686A JP 2826102 B2 JP2826102 B2 JP 2826102B2
Authority
JP
Japan
Prior art keywords
image
memory
read
mask
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP61057796A
Other languages
Japanese (ja)
Other versions
JPS62214778A (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.)
Consejo Superior de Investigaciones Cientificas CSIC
Original Assignee
Consejo Superior de Investigaciones Cientificas CSIC
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 Consejo Superior de Investigaciones Cientificas CSIC filed Critical Consejo Superior de Investigaciones Cientificas CSIC
Priority to JP61057796A priority Critical patent/JP2826102B2/en
Publication of JPS62214778A publication Critical patent/JPS62214778A/en
Application granted granted Critical
Publication of JP2826102B2 publication Critical patent/JP2826102B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Studio Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は複数の画像をパーソナルコンピュータで重ね
合せ一つの画像に変換する方法に関する。 <発明の概要> 本発明は、複数のカラー画像の重ね合せる方法とし
て、カラー画像2画面分のメモリと画像入力装置とを備
えたパーソナルコンピュータを用いて画像処理すること
により、比較的簡単且つ安価な装置で実現しようとする
ものである。 <従来の技術> 従来より、画像の重ね合わせは、テレビ局等ではすで
に行なわれている。これは、現在の画面に写っている人
物の背景に別の背景を重ね合わせた画像をリアルタイム
で表示するものである。 <発明が解決しようとする問題点> しかし、これを実現するには、たいへん高価な専用シ
ステムが必要であり、個人用としては、手の届く範囲で
はなかった。 <問題点を解決するための手段> ところが、最近になってパーソナルコンピュータ用の
画像入力装置が安価に製品化され、パーソナルコンピュ
ータによる画像処理等が簡単にできるようになってき
た。 そこで、本発明ではパーソナルコンピュータを用いて
画像の重ね合わせを行なうようにしている。 <作 用> これにより、安価な装置で画像の重ね合せを行なうこ
とができる。 <実施例> 第1図は、本発明の一実施例のブロック図である。こ
の図において、画像信号源1はVTR、ビデオカメラ、テ
レビジョン受像機等であり、ここからはコンポジット映
像信号が出力される。原色変換回路2は画像入力装置と
して機能し、ここではコンポジット映像信号をRGBの3
色に分離する。切換回路3は入力されたRGB信号を2系
統の出力端子に選択出力する。メイングラフィックRAM5
はパーソナルコンピュータに通常設けられており、RGB
の3色を色別に記憶するように構成され、記憶された画
像情報を必要に応じてカラーCRTよりなる表示装置8に
出力する。 サブグラフィックRAM4はメイングラフィックRAM5と同
等の構成を有するメモリである。6はCPUであり、7は
画像重ね合せ動作用のプログラムが記憶されたメモリで
あり、9はメイングラフィックRAM5に記憶された画像情
報をプリントアウトするカラープリンタである。 次に第2図は、プログラムによる処理手順の基本構成
を示す図である。 この図において、メイングラフィックRAMにはマスク
データとなる前画像が記憶され、サブグラフィックRAM
には背景データとなる後画像が記憶されている。それぞ
れのROMに記憶されているデータを256バイトを単位とし
てワーキング用メモリ(第1図には図示せず)に取り込
む。その際、メイングラフィックRAMからの前画像のデ
ータには、あらかじめ設定されたキー色の部分が抜け画
像となり、キー色以外の色の部分がマクス画像として残
るように処理した後に取り込みを行なう。 この後、マスク画像と後画像とを比較し、マスク画像
と後画像とが重なる位置はマスク画像の方を優先し、マ
クス画像が存在しない位置は後画像を優先し、その比較
出力をメイングラフィックRAMの元の位置へ記憶させ
る。 更に、より具体的なプログラムの処理手順を第3図乃
至第5図のフローチャートに従って説明する。第3図の
メインのフローチャート、第4図はサブルーチンAのフ
ローチャート、第5図はサブルーチンBのフローチャー
トを示している。 まず、第3図のメインプログラムから説明する。この
プログラムを始め、第1のステップで前画像の内で抜け
画像にするためのキー色を設定し、次に256バイトを単
位ブロックとしてグラフィックRAM全体のブロック数を
セットする。 第3のステップでは第5図に示したサブルーチンBを
呼び出す。このサブルーチンBはメイングラフィックRA
M中のカウンタ1に示されたブロック分のRGB3色の前画
像よりキー色の部分を抜け画像とするマスク画像を作成
するためのプログラムである。 サブルーチンBを終えるとメインプログラムの第4の
ステップに進み、ここでサブグラフィックRAM中のカウ
ンタ1に示されたブロック分の後画像の内の青色成分を
ワーキング用メモリに読み込む。 第5のステップでは第4図に示したサブルーチンAを
呼び出す。このサブルーチンAは、サブルーチンBで作
成したマスク画像と、メインプログラムの第4のステッ
プで読み込んだ後画像の青色成分とを比較した後、その
比較データをメイングラフィックRAM中の元のブロック
へ記憶させるためのプログラムである。 サブルーチンAを終えるとメインプログラムの第6及
び第7のステップに進み、ここで第4及び第5のステッ
プと同様の作業を赤色成分について行なう。第8及び第
9のステップでは緑色成分について、第4及び第5のス
テップと同様の作業を行なう。 第10のステップではカウンタ1を1減算し、第11のス
テップではカウンタ1が0であるか否かを判断し、0で
なければ第3のステップへ戻る。つまりグラフィックRA
M中の全てのブロックについて同様の処理を順次行なう
ようにしている。 そして、以上の処理により、重ね合わせが完了した画
像は前画像のキー色の部分を除いた画像と、前画像のキ
ー色の部分のみの後画像とが組み合わされた状態とな
る。 このようにして、得られた画像は第1図に示すよう
に、メイングラフィックRAM5より表示装置8に映し出す
か、又はCPU6を介してカラープリンタ9よりプリントア
ウトする。 <発明の効果> 以上のように、本発明ではパーソナルコンピュータを
用いて、複数のカラー画像を重ね合わせるようにしたこ
とにより、比較的簡単且つ安価な装置で実現することが
でき、しかも、マスク画像を優先させて重ね合わせるの
で、マスク画像を明確に所定の状態に重ね合わせること
ができる。
Description: TECHNICAL FIELD The present invention relates to a method of superimposing a plurality of images by a personal computer and converting it into one image. <Summary of the Invention> The present invention provides a relatively simple and inexpensive method of superimposing a plurality of color images by performing image processing using a personal computer having a memory for two screens of color images and an image input device. It is intended to be realized with a simple device. <Prior Art> Conventionally, superposition of images has already been performed in television stations and the like. This is to display an image in which another background is superimposed on the background of a person shown on the current screen in real time. <Problems to be Solved by the Invention> However, in order to realize this, a very expensive dedicated system was required, and it was not within the reach of individuals. <Means for Solving the Problems> However, recently, image input devices for personal computers have been commercialized at low cost, and image processing and the like using personal computers has become easy. Therefore, in the present invention, superposition of images is performed using a personal computer. <Operation> This makes it possible to superimpose images with an inexpensive device. <Embodiment> FIG. 1 is a block diagram of an embodiment of the present invention. In FIG. 1, an image signal source 1 is a VTR, a video camera, a television receiver, or the like, from which a composite video signal is output. The primary color conversion circuit 2 functions as an image input device, and here, converts a composite video signal into RGB 3 signals.
Separate into colors. The switching circuit 3 selectively outputs the input RGB signals to two output terminals. Main graphic RAM5
Is usually provided in personal computers, and RGB
Are stored for each of the three colors, and the stored image information is output to a display device 8 composed of a color CRT as necessary. The sub graphic RAM 4 is a memory having the same configuration as the main graphic RAM 5. Reference numeral 6 denotes a CPU, reference numeral 7 denotes a memory in which a program for an image superimposing operation is stored, and reference numeral 9 denotes a color printer which prints out image information stored in the main graphic RAM 5. Next, FIG. 2 is a diagram showing a basic configuration of a processing procedure by a program. In this figure, a main graphic RAM stores a previous image serving as mask data, and a sub-graphic RAM
Stores a post-image serving as background data. The data stored in each ROM is taken into a working memory (not shown in FIG. 1) in units of 256 bytes. At this time, in the data of the previous image from the main graphic RAM, the processing is performed so that the part of the key color set in advance becomes a missing image and the part of the color other than the key color remains as a max image, and then the data is taken in. Thereafter, the mask image and the subsequent image are compared, and the position where the mask image and the subsequent image overlap is given priority to the mask image, and the position where no mask image exists is given priority to the subsequent image. Store the original location in RAM. Further, a more specific program processing procedure will be described with reference to the flowcharts of FIGS. FIG. 3 shows a main flowchart, FIG. 4 shows a subroutine A flowchart, and FIG. 5 shows a subroutine B flowchart. First, the main program of FIG. 3 will be described. Starting with this program, in the first step, a key color for setting a missing image in the previous image is set, and then the number of blocks of the entire graphic RAM is set using 256 bytes as a unit block. In the third step, a subroutine B shown in FIG. 5 is called. This subroutine B is the main graphic RA
This is a program for creating a mask image in which the key color portion is omitted from the previous RGB three-color image corresponding to the block indicated by the counter 1 in M. When the subroutine B is completed, the process proceeds to the fourth step of the main program, where the blue component of the post-image of the block indicated by the counter 1 in the sub-graphic RAM is read into the working memory. In the fifth step, a subroutine A shown in FIG. 4 is called. The subroutine A compares the mask image created in the subroutine B with the blue component of the image read in the fourth step of the main program, and stores the comparison data in the original block in the main graphic RAM. It is a program for. When the subroutine A is completed, the process proceeds to the sixth and seventh steps of the main program, where the same operation as the fourth and fifth steps is performed for the red component. In the eighth and ninth steps, the same operation as the fourth and fifth steps is performed on the green component. In a tenth step, the counter 1 is decremented by one. In an eleventh step, it is determined whether or not the counter 1 is 0. If not, the process returns to the third step. In other words, graphic RA
Similar processing is sequentially performed for all blocks in M. By the above-described processing, the superimposed image is a state in which the image excluding the key color portion of the previous image and the rear image of only the key color portion of the previous image are combined. The image thus obtained is displayed on the display device 8 from the main graphic RAM 5 or printed out from the color printer 9 via the CPU 6, as shown in FIG. <Effects of the Invention> As described above, in the present invention, a plurality of color images are superimposed on each other by using a personal computer. Are superimposed on each other, so that the mask images can be clearly superimposed in a predetermined state.

【図面の簡単な説明】 第1図は本発明にかかわる画像処理装置の構成を示すブ
ロック図、 第2図は本発明の方法による処理手順の基本構成を示す
図、 第3図乃至第5図は本発明の方法にかかわる画像処理プ
ログラムのフローチャートであり、第3図はメインプロ
グラム、第4図はサブルーチンA、第5図はサブルーチ
ンBを示している。 1:画像信号源、2:原色変換回路、3:切換回路、4:サブグ
ラフィックRAM、5:メイングラフィックRAM、6:CPU、7:
プログラムメモリ、8:表示装置、9:カラープリンタ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to the present invention, FIG. 2 is a diagram showing a basic configuration of a processing procedure according to a method of the present invention, and FIGS. 3 is a flowchart of an image processing program according to the method of the present invention. FIG. 3 shows a main program, FIG. 4 shows a subroutine A, and FIG. 5 shows a subroutine B. 1: Image signal source, 2: Primary color conversion circuit, 3: Switching circuit, 4: Sub graphic RAM, 5: Main graphic RAM, 6: CPU, 7:
Program memory, 8: display device, 9: color printer.

フロントページの続き (56)参考文献 特開 昭58−143673(JP,A) 特開 昭60−216687(JP,A) 特開 昭60−190078(JP,A) 特開 昭58−143673(JP,A)Continuation of front page       (56) References JP-A-58-144363 (JP, A)                 JP-A-60-216687 (JP, A)                 JP-A-60-190078 (JP, A)                 JP-A-58-144363 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.カラー画像情報を記憶する画像メモリを2画面分備
え、且つ映像信号を前記メモリへの画像信号に変換する
画像入力装置を備えたパーソナルコンピュータを用い
て、前記画像入力装置を介して第1及び第2の画像メモ
リにそれぞれ異なる画像を記憶させ、前記第1の画像メ
モリに記憶された画像よりあらかじめ設定されたキー色
に基づいてマスク画像を作成し、前記マスク画像と前記
第2の画像メモリに記憶された画像とを比較し、前記マ
スク画像を優先させて前記マスク画像と前記第2の画像
メモリに記憶された画像とを重ね合わせた信号を得ると
ともに、この重ね合わせた画像信号を前記第1の画像メ
モリに記憶させる画像重ね合わせ方法において、 前記第1及び第2の画像メモリはそれぞれ赤緑青の3色
分の色別のメモリからなり、前記第1及び第2の画像メ
モリからのデータはそれぞれ第1及び第2のワーキング
用メモリに所定量づつ取り込まれ、この取り込みの際、
前記第1の画像メモリからの画像のデータには、あらか
じめ設定されたキー色の部分が抜け画像となり、前記キ
ー色以外の色の部分がマスク画像として残るように処理
した後に取り込み、 まず、前記第1及び第2のワーキング用メモリから第1
の色データを読み出し、読み出されたマスク画像と前記
第2のワーキング用メモリから読み出された画像とを比
較して、マスク画像と前記第2のワーキング用メモリか
ら読み出された画像が重なる位置はマスク画像の方を優
先し、前記マスク画像が存在しない位置は前記第2のワ
ーキング用メモリから読み出された画像を出力し、その
比較出力を前記第1の画像メモリの第1の色部の元の位
置へ記憶させ、 次に、前記第1及び第2のワーキング用メモリから第2
の色データを読み出し、読み出されたマスク画像と前記
第2のワーキング用メモリから読み出された画像とを比
較して、マスク画像と前記第2のワーキング用メモリか
ら読み出された画像が重なる位置はマスク画像の方を優
先し、前記マスク画像が存在しない位置は前記第2のワ
ーキング用メモリから読み出された画像を出力し、その
比較出力を前記第1の画像メモリの第2の色部の元の位
置へ記憶させ、 その次に、前記第1及び第2のワーキング用メモリから
第3の色データを読み出し、読み出されたマスク画像と
前記第2のワーキング用メモリから読み出された画像と
を比較して、マスク画像と前記第2のワーキング用メモ
リから読み出された画像が重なる位置はマスク画像の方
を優先し、前記マスク画像が存在しない位置は前記第2
のワーキング用メモリから読み出された画像を出力し、
その比較出力を前記第1の画像メモリの第3の色部の元
の位置へ記憶させることを特徴とする画像重ね合わせ方
法。
(57) [Claims] Using a personal computer including an image memory for storing color image information for two screens and an image input device for converting a video signal into an image signal to the memory, the first and the second images are transmitted through the image input device. 2 stores different images in the second image memory, creates a mask image based on a preset key color from the image stored in the first image memory, and stores the mask image in the mask image and the second image memory. The stored image is compared with the stored image to obtain a signal obtained by superimposing the mask image and the image stored in the second image memory by giving priority to the mask image. In the method for superimposing images in one image memory, each of the first and second image memories comprises a memory for three colors of red, green and blue, respectively. The data from the first and second image memories are respectively taken into the first and second working memories by a predetermined amount.
The data of the image from the first image memory is processed after processing so that a part of a key color set in advance becomes a missing image, and a part of a color other than the key color remains as a mask image. From the first and second working memories, the first
And compares the read mask image with the image read from the second working memory, and the mask image and the image read from the second working memory overlap with each other. The position gives priority to the mask image, and the position where the mask image does not exist outputs the image read out from the second working memory, and compares the comparison output with the first color of the first image memory. And the second working memory from the first and second working memories.
And compares the read mask image with the image read from the second working memory, and the mask image and the image read from the second working memory overlap with each other. The position gives priority to the mask image, and the position where the mask image does not exist outputs the image read from the second working memory, and compares the comparison output with the second color of the first image memory. Then, the third color data is read from the first and second working memories, and the read mask image and the third color data are read from the second working memory. When the mask image and the image read from the second working memory overlap each other, the position where the mask image overlaps takes precedence, and the position where the mask image does not exist is the second position.
Output the image read from the working memory of
An image superimposing method, wherein the comparison output is stored in an original position of a third color portion of the first image memory.
JP61057796A 1986-03-14 1986-03-14 Image superposition method Expired - Fee Related JP2826102B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61057796A JP2826102B2 (en) 1986-03-14 1986-03-14 Image superposition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61057796A JP2826102B2 (en) 1986-03-14 1986-03-14 Image superposition method

Publications (2)

Publication Number Publication Date
JPS62214778A JPS62214778A (en) 1987-09-21
JP2826102B2 true JP2826102B2 (en) 1998-11-18

Family

ID=13065855

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61057796A Expired - Fee Related JP2826102B2 (en) 1986-03-14 1986-03-14 Image superposition method

Country Status (1)

Country Link
JP (1) JP2826102B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01179077A (en) * 1987-12-29 1989-07-17 Konica Corp Synthesizing device for digital image
JPH02264588A (en) * 1989-04-04 1990-10-29 Yokogawa Electric Corp Video signal generator
JPH04215390A (en) * 1990-12-13 1992-08-06 Mitsubishi Electric Corp Video printer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58143673A (en) * 1982-02-19 1983-08-26 Shin Meiwa Ind Co Ltd Method and device for video synthesis
JPS60190078A (en) * 1984-03-12 1985-09-27 Fuji Photo Film Co Ltd Picture synthesizing device
JPS60216687A (en) * 1984-04-11 1985-10-30 Sony Corp Picture retrieval device employing picture synthesization

Also Published As

Publication number Publication date
JPS62214778A (en) 1987-09-21

Similar Documents

Publication Publication Date Title
JP2919174B2 (en) Method of generating output data for outputting an image on a raster output device
JPS59129853A (en) Color separating device
WO2005006772A1 (en) Image display device and image display method
JP2826102B2 (en) Image superposition method
US5943045A (en) Image file, generation method thereof, and image display apparatus
JPH0279172A (en) Picture inputting method
JP3536312B2 (en) Video processing device and computer system
JP2542365B2 (en) Color image processing device
JP3370732B2 (en) On-screen text color selection method
JPS61161891A (en) Color correcting method in video film processing device
JPH08328528A (en) Picture processing device
JP3719001B2 (en) Image data generation apparatus and image data generation method used in the apparatus
JPS62184526A (en) Color printer
JP2005017610A (en) Device and method for on-screen display
JP3922816B2 (en) Image transfer method and printer
JP3204123B2 (en) Overlay method
JPS60236773A (en) Output device
JPH0225191A (en) Color printer
JP3575889B2 (en) Color addition circuit in image processing
JPH0490348A (en) Printing plate forming apparatus for uniform halftone block
JPH10126732A (en) Direct printer adapter
JPH0561457A (en) Thinning out circuit in image data reproducing device
JPH11266419A (en) Postage stamp generator and postage stamp generating method
JPS63304785A (en) Method for monitoring color negative image
JPH06311430A (en) Display synthesizing device

Legal Events

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