JPH0778720B2 - Image synthesizer - Google Patents

Image synthesizer

Info

Publication number
JPH0778720B2
JPH0778720B2 JP62315836A JP31583687A JPH0778720B2 JP H0778720 B2 JPH0778720 B2 JP H0778720B2 JP 62315836 A JP62315836 A JP 62315836A JP 31583687 A JP31583687 A JP 31583687A JP H0778720 B2 JPH0778720 B2 JP H0778720B2
Authority
JP
Japan
Prior art keywords
image
image data
display
data
display memory
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
JP62315836A
Other languages
Japanese (ja)
Other versions
JPH01156816A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62315836A priority Critical patent/JPH0778720B2/en
Publication of JPH01156816A publication Critical patent/JPH01156816A/en
Priority to US07/856,827 priority patent/US5179642A/en
Publication of JPH0778720B2 publication Critical patent/JPH0778720B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ディジタル化された画像の合成に係り、特
に、任意形状の前景画像を別の背景画像に重ね合わせて
記録するのに好適な画像合成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to synthesizing digitized images, and is particularly suitable for recording an arbitrarily shaped foreground image by superimposing it on another background image. The present invention relates to an image synthesizer.

[従来の技術] 近年、ディジタル化された自然画像の取込み、編集、記
録等を行なうシステムが一部のワークステーション等に
見られる。この種の装置としては、例えば日経マグロー
ヒル社発行の日経ニューメディア・技術最前線レポート
「CD−ROM,CD−I開発現場報告」(1987.5)第36頁か
ら45頁において紹介されている。上記文献に紹介されて
いるシステムは、16ビットマイクロプロセッサをベース
に、深さ方向24ビット(R,G,B各8ビット)のフレーム
バッファ(表示メモリ)、自然画を取込むためのビデオ
カメラおよびA/D変換器、前記フレームバッファの内容
を確認するモニタ、座標や文字を入力するダブレットや
ターミナル、作業用メモリ、編集結果を記録する外部記
憶装置等より成る。取込んだ自然画に対してはノイズ除
去、色調・コントラストの変更、輪郭抽出、拡大・縮小
およびマスク合成等の編集・加工処理を施すことができ
る。このうち、マスク合成とは、背景画に別の画像の一
部を抜き取って重ね合わせることであり、これに関して
は、上記従来例ではフレームバッファと並列にマスク用
のメモリを持ち、上記マスク用の内容を参照しながら背
景画像とマスクで抜かれた画像との合成を行なう。この
マスク用メモリの参照は一般にソフトウェアで行なわれ
る。
[Prior Art] In recent years, some workstations and the like have systems for capturing, editing, and recording digitized natural images. This type of apparatus is introduced, for example, in Nikkei New Media and Technology Frontline Report "CD-ROM, CD-I Development Site Report" (1987.5), pages 36 to 45, published by Nikkei McGraw-Hill. The system introduced in the above document is based on a 16-bit microprocessor, and has a depth direction 24-bit (8 bits each for R, G, B) frame buffer (display memory) and a video camera for capturing natural images. And an A / D converter, a monitor for checking the contents of the frame buffer, a doublet or terminal for inputting coordinates and characters, a working memory, an external storage device for recording the edited result, and the like. The captured natural image can be subjected to editing / processing such as noise removal, color tone / contrast change, contour extraction, enlargement / reduction, and mask composition. Among them, the mask composition is to extract a part of another image and superimpose it on the background image. For this, in the conventional example, a memory for a mask is provided in parallel with the frame buffer, and The background image and the image extracted by the mask are combined while referring to the contents. This mask memory reference is generally performed by software.

また、マスクメモリの内容そのものによって、対応する
フレームバッファへデータを転送するか否かを回路的に
制御し、合成処理の高速化を図る方式が特開昭59−4556
7号に開示されている。
Further, there is a method of controlling the circuit whether or not to transfer data to the corresponding frame buffer by the contents of the mask memory itself to speed up the synthesizing process.
No. 7 is disclosed.

[発明が解決しようとする問題点] 上記従来技術は、フレームバッファと並列にマスク用メ
モリを設ける必要があり、回路規模が大きくなるという
問題があった。また、上記マスク用メモリをソフトウェ
アで参照すると合成に非常に時間がかかる。一方、高速
合成を回路的に実現しようとすると、マスク用メモリは
フレームバッファに比べ充分速いアクセスタイムを持つ
必要があり、回路規模の増大と相俟って高価となりがち
であった。さらに、クロマキーと呼ばれマスク合成を前
提として重ね合わせるべき画像を、予め背景を無地の固
定色にして取込んだ場合でも、別途マスク用パターンを
前記画像を元に作成し、マスク用メモリへ記録するとい
う手順が必要となり、合成に手間がかかるという問題も
あった。
[Problems to be Solved by the Invention] The above-mentioned conventional technique has a problem in that it is necessary to provide a mask memory in parallel with the frame buffer, resulting in an increase in circuit scale. Further, if the mask memory is referred to by software, it takes a very long time to synthesize the mask. On the other hand, in order to realize high-speed synthesis in a circuit manner, the mask memory needs to have a sufficiently fast access time as compared with a frame buffer, which tends to be expensive in combination with an increase in circuit scale. In addition, even if an image called chroma key that should be overlaid on the premise of mask composition is captured with a fixed background color, a separate mask pattern is created based on the image and recorded in the mask memory. There is also a problem in that it takes time and effort to synthesize because it requires a procedure to do so.

本発明の目的は、上記従来例の欠点をなくし、比較的小
回路規模・低コストで高速なマスク合成を使い勝手よく
実現する装置を提供することにある。
It is an object of the present invention to provide an apparatus which eliminates the above-mentioned drawbacks of the prior art and easily realizes high-speed mask composition with a relatively small circuit scale and low cost.

[問題点を解決するための手段] 上記目的を達成するために、本発明は、 第1画像データを記憶する第1表示メモリを有し、上記
第1画像データにより構成される第1画像に対して第2
画像を合成する画像合成装置において、 予め定めた画像データと上記第2画像の画像データとを
単位画像データ毎に比較し、該比較結果に基づいて当該
第2画像データを上記第1表示メモリへ書込むか否かを
制御する表示メモリ制御手段を設けたことを特徴とする
ものである。
[Means for Solving the Problems] In order to achieve the above-mentioned object, the present invention has a first display memory for storing first image data, and provides a first image composed of the first image data. Second to
In an image synthesizing apparatus for synthesizing images, predetermined image data and image data of the second image are compared for each unit image data, and the second image data is stored in the first display memory based on the comparison result. It is characterized in that display memory control means for controlling whether or not to write is provided.

上記単位画像データは、例えば、画素データである。The unit image data is, for example, pixel data.

上記表示メモリ制御手段は、例えば、上記予め定めた画
像データと上記第2画像データとを単位画像データ毎に
比較する第1比較手段と、該第1比較手段の結果に基づ
いて当該第2画像データの上記第2表示メモリへの書込
みを制御する書込制御手段とにより構成することができ
る。上記予め定めた画像データは特定の範囲を有するよ
うに設定することもでき、上記第1比較手段は上記第2
画像データが上記範囲に内包されるとき一致信号を出力
し、該一致信号に応答して上記書込制御手段は上記第2
表示メモリへの書込みを禁止する。
The display memory control means, for example, first comparing means for comparing the predetermined image data and the second image data for each unit image data, and the second image based on the result of the first comparing means. It can be configured by a writing control unit that controls writing of data to the second display memory. The predetermined image data may be set so as to have a specific range, and the first comparing means may set the second image data to the second range.
When the image data is included in the range, a coincidence signal is output, and in response to the coincidence signal, the writing control means causes the second control unit to output the coincidence signal.
Prohibits writing to the display memory.

上記第2画像データは主メモリに記憶してもよいが、第
2表示メモリを設け、該第2表示メモリに記憶してもよ
い。第2表示メモリを設ける場合には、さらに、上記第
1および第2表示メモリから画像データの表示のために
周期的に読出す表示読出手段と、上記第2表示メモリか
ら読出された画像データを予め定めた単位画像データ毎
に比較する第2比較手段と、該第2比較手段の比較結果
に基づいて上記第1および第2表示メモリから読出され
た第1および第2画像データの一方を選択的して表示に
供する選択手段とを備えてもよい。このとき、上記第2
比較手段は上記第1比較手段と共用することもできる。
The second image data may be stored in the main memory, or may be provided in the second display memory and stored in the second display memory. When the second display memory is provided, a display reading means for periodically reading image data from the first and second display memories for displaying the image data, and image data read from the second display memory are further provided. Second comparing means for comparing every predetermined unit image data, and one of the first and second image data read from the first and second display memories is selected based on the comparison result of the second comparing means. It may be provided with a selection means for displaying the image. At this time, the second
The comparison means can be shared with the first comparison means.

上記第1および第2比較手段の一方または両方は、上記
単位画像データをアドレス入力とし、上記比較結果をデ
ータとした書替え可能なメモリで構成してもよい。
One or both of the first and second comparing means may be composed of a rewritable memory in which the unit image data is used as an address input and the comparison result is used as data.

上記第2画像データは、例えば、上記第1画像に重ね合
わせるべき像を前景画として該前景画に含まれない色を
背景色とした画像データであり、上記予め定めた画像デ
ータは上記背景色の画像データである。
The second image data is, for example, image data in which an image to be superimposed on the first image is a foreground image and a color not included in the foreground image is a background color, and the predetermined image data is the background color. Image data.

[作用] 本発明は、上記第1メモリに記憶された画像データの構
成する第1画像に、第2画像データの構成する第2画像
を合成する、すなわち、第2画像の一部を選択的に第1
画像に重ね合わせるものである。そのために、第2画像
データは第1画像に重ね合わせるべき像以外の部分が予
め定めた背景色となるように第2画像データを作成し、
あるいは取込む。そこで、第1画像データを記憶してい
る第1表示メモリに第2画像データを重ねて書込む際、
第2画像データを単位画像データ毎、例えば画素毎に上
記背景色を表す画像データと比較し、一致していれば上
記第2画像データの書込みを禁止する。背景色データと
一致しなければ第2画像データを第1表示メモリに書込
む。
[Operation] According to the present invention, the first image formed by the image data stored in the first memory is combined with the second image formed by the second image data, that is, a part of the second image is selectively selected. First
It is to be superimposed on the image. Therefore, the second image data is created such that the portion other than the image to be superimposed on the first image has a predetermined background color,
Or take in. Therefore, when the second image data is overwritten and written in the first display memory which stores the first image data,
The second image data is compared with the image data representing the background color for each unit image data, for example, for each pixel, and if they match, the writing of the second image data is prohibited. If it does not match the background color data, the second image data is written in the first display memory.

このような構成により、前述した従来のマスク用メモリ
を用いることなく、第2画像の必要部分を選択的に第1
画像に合成することができる。また、前景画のみを第1
メモリに書込むのに、MPU(Micro Processing Unit)を
介さない、メモリからメモリへのDMA(ダイレクトメモ
リアクセス)も可能となり、高速転送が実現できる。
With such a configuration, the necessary portion of the second image is selectively changed to the first area without using the conventional mask memory.
Can be combined into an image. Also, only the foreground image is first
When writing to memory, DMA (Direct Memory Access) from memory to memory is possible without passing through MPU (Micro Processing Unit), and high-speed transfer can be realized.

[実施例] 〈第1実施例〉 以下、本発明の第1実施例を、第1図により説明する。
第1図において、10はMPU、20はMPUデータ、30はMPUア
ドレス、40はR/W信号、50は表示読出用のアドレスや水
平・垂直同期信号を原クロックを元に発生する表示アド
レス発生部、60は表示アドレス、70はMPUアドレスと表
示アドレスを合成するアドレス合成部、80は表示メモリ
アドレス、90は第2画像データを記憶する第2表示メモ
リ、110は第1画像データを記憶する第1表示メモリ、1
00,120は各々表示読出の出力であるシリアル表示デー
タ、130は両シリアル表示データ100と120を合成する表
示合成部、140はディジタル画像出力、150はD−A変換
器、160はアナログ出力画像信号、170は表示メモリR/W
制御部(表示メモリ制御手段)、180は表示メモリ110に
対するR/W制御信号、190は表示メモリ90に対するR/W制
御信号、200は表示アドレス60が表示メモリ90,110に与
えられている期間を示す表示サイクル信号、210はMPU10
を介さずに直接メモリ間の高速なデータのブロック転送
を制御するDMAC(Direct Memory Access Controlle
r)、220は主メモリ、230はRGBカメラ、240は入力画像
信号、250はA−D変換器、260はディジタル画像入力で
ある。
[Embodiment] <First Embodiment> A first embodiment of the present invention will be described below with reference to FIG.
In FIG. 1, 10 is an MPU, 20 is an MPU data, 30 is an MPU address, 40 is an R / W signal, 50 is a display read address and a display address generation for generating a horizontal / vertical synchronization signal based on an original clock. Section, 60 is a display address, 70 is an address composition section for combining an MPU address and a display address, 80 is a display memory address, 90 is a second display memory for storing second image data, and 110 is for storing first image data. 1st display memory, 1
00 and 120 are serial display data which are outputs of display readout respectively, 130 is a display combining unit which combines both serial display data 100 and 120, 140 is a digital image output, 150 is a DA converter, 160 is an analog output image signal, 170 is the display memory R / W
Control unit (display memory control means), 180 is an R / W control signal for the display memory 110, 190 is an R / W control signal for the display memory 90, and 200 is a period during which the display address 60 is given to the display memories 90 and 110. Display cycle signal, 210 is MPU10
Direct Memory Access Controlle (DMAC) that controls high-speed block transfer of data directly between memories without going through
r), 220 is a main memory, 230 is an RGB camera, 240 is an input image signal, 250 is an AD converter, and 260 is a digital image input.

次に、本実施例の動作を説明する。MPU10は汎用16ビッ
トマイクロプロセッサである。表示アドレス発生部50は
1画素期間信号を原クロックとして、それを分周するこ
とにより表示アドレス60、表示サイクル信号200および
図示せざる水平・垂直同期信号等を発生する。アドレス
合成部70では、表示サイクル信号200に基づいて、表示
アドレス60とMPUアドレス30を切換えて表示メモリアド
レス80として出力する。すなわち、表示アドレス60を与
える以外の期間はMPUアドレス30を表示メモリ90,110に
与えることができ、データの読み書きが行なえる。表示
メモリ90,110は1画素当りR,G,B各5ビットで計15ビッ
トを持ち、MPU10からアクセスできるランダムアクセス
ポートと、表示のためデータを出力するシリアルポート
を有する。シリアルポートからはシリアル表示データ10
0,120が連続的に出力されており、表示合成部130へ入力
される。表示合成部130では、MPU10より予め設定された
モードに基づいて上記シリアル表示データ120、または
シリアル表示データ100、またはシリアル表示データ120
上にシリアル表示データ100の前景画像のみを重ね合わ
せたデータのいずれかをディジタル画像出力140として
D−A変換器150に与える。D−A変換器150ではR,G,B
各々5ビットのディジタル画像出力140をR,G,Bのアナロ
グ出力画像信号160として出力し、カラーCRTディスプレ
イ等に与え、その結果スクリーン上に画像が再生され
る。
Next, the operation of this embodiment will be described. The MPU10 is a general-purpose 16-bit microprocessor. The display address generation unit 50 generates a display address 60, a display cycle signal 200, a horizontal / vertical synchronization signal (not shown), etc. by dividing the signal with the 1-pixel period signal as an original clock. The address synthesizing unit 70 switches between the display address 60 and the MPU address 30 based on the display cycle signal 200 and outputs it as the display memory address 80. That is, the MPU address 30 can be given to the display memories 90 and 110 during the period other than the time when the display address 60 is given, and data can be read and written. The display memories 90 and 110 have a total of 15 bits with 5 bits for each of R, G and B per pixel, and have a random access port accessible from the MPU 10 and a serial port for outputting data for display. Serial display data from the serial port 10
0 and 120 are continuously output and are input to the display synthesis unit 130. In the display synthesizing unit 130, the serial display data 120, the serial display data 100, or the serial display data 120 based on the mode preset by the MPU 10.
Any one of the data obtained by superimposing only the foreground image of the serial display data 100 on the above is given to the DA converter 150 as the digital image output 140. In the D-A converter 150, R, G, B
The 5-bit digital image output 140 is output as an R, G, B analog output image signal 160 and is supplied to a color CRT display or the like, and as a result, an image is reproduced on the screen.

一方、画像データの取込みはRGBカメラ230から入力した
入力画像信号240をA−D変換器250でディジタル画像入
力260に変換し、表示メモリ90に直接転送する。表示メ
モリ90に取込まれた画像は、表示メモリ110または主メ
モリ220または図示せざる外部記憶装置に加工または保
存のため転送できる。
On the other hand, the image data is captured by converting the input image signal 240 input from the RGB camera 230 into a digital image input 260 by the AD converter 250 and directly transferring it to the display memory 90. The image captured in the display memory 90 can be transferred to the display memory 110 or the main memory 220 or an external storage device (not shown) for processing or storage.

表示メモリR/W制御部170は、MPU10からのR/W信号40、MP
Uアドレス30、表示サイクル信号200およびMPU10により
設定される転送モード信号、さらに転送されるデータの
値を基にして表示メモリ90および110のデータの読み書
き制御信号180,190を発生する。転送モード信号が通常
モードを示していれば、MPU10またはDMAC210は通常通り
に表示メモリ90,110へのアクセスやデータ転送が行なえ
るが、合成転送モードの時には、転送元の表示のメモリ
90または主メモリ220から読出されたデータは、MPU10ま
たはDMAC210の内部レジスタに取込むのと並行して、前
記表示メモリR/W制御部170内のレジスタにも取込まれ
る。そして、前記データがMPU10の予め設定した範囲の
背景色データであるか否かを判別し、もしそうであれ
ば、転送先である表示メモリ110への読み書き制御信号1
80を禁止し、書込を行なわない。これを1画面全てにつ
いて行なうことによって、前景画の部分のみが表示メモ
リ110に転送され、そこに予め格納されていた画像と合
成される。
The display memory R / W control unit 170 uses the R / W signal 40, MP
Based on the U address 30, the display cycle signal 200, the transfer mode signal set by the MPU 10, and the value of the data to be transferred, read / write control signals 180 and 190 for the data in the display memories 90 and 110 are generated. If the transfer mode signal indicates the normal mode, the MPU10 or DMAC210 can access the display memories 90 and 110 and transfer data normally, but in the composite transfer mode, the display memory of the transfer source is displayed.
The data read from the memory 90 or the main memory 220 is also taken into the register in the display memory R / W control unit 170 at the same time as being taken into the internal register of the MPU 10 or the DMAC 210. Then, it is determined whether or not the data is background color data in a preset range of the MPU 10, and if so, a read / write control signal 1 to / from the display memory 110 which is the transfer destination.
80 is prohibited and writing is not performed. By performing this for all the one screens, only the foreground image portion is transferred to the display memory 110 and is combined with the image previously stored therein.

次に、第2図、第3図を用いて前記表示メモリR/W制御
部170の構成および動作をより詳細に説明する。第2図
は表示メモリR/W制御部170とその周辺部の構成図、ま
た、第3図はデータ比較器173の主要部をレジスタ172と
共に示した回路図である。第2図、第3図において、第
1図と同一の構成要素には同一符号を付している。
Next, the configuration and operation of the display memory R / W control unit 170 will be described in more detail with reference to FIGS. 2 and 3. FIG. 2 is a configuration diagram of the display memory R / W control unit 170 and its peripheral portion, and FIG. 3 is a circuit diagram showing the main portion of the data comparator 173 together with the register 172. 2 and 3, the same components as those in FIG. 1 are designated by the same reference numerals.

第2図において、171はアドレスデコーダ、172はデータ
転送元から読出された画素データを一時保持するレジス
タ、173は前記レジスタ172の出力が、MPU10により予め
設定された色データの範囲に含まれるかどうかを判別す
るデータ比較器(第1比較手段)、174はMPU10により設
定される転送モードレジスタ、175はレジスタ172に色デ
ータを取込む取込み信号、176はデータ比較器173の判別
結果を示すマスク信号、177は通常モードか転送合成モ
ードかを示す転送モード信号、181は表示メモリ110を選
択し有効化する有効信号、182は表示メモリ110への書込
許可信号、191は表示メモリ90の選択信号、192は同じく
書込許可信号である。また、第3図における500はレジ
スタ172に取込まれた青成分と比較すべきデータを保持
する参照レジスタ、510はMPU10から参照レジスタ500に
データを設定する時に発生する取込み信号、520は前記
二つのレジスタ間で比較すべきビットを示す有効ビット
レジスタ、530は有効ビットレジスタMPU10がデータを設
定する時に発生する取込み信号、540はEORゲート、550
はNANDゲート、560はANDゲート、570は青成分が指定範
囲内にあることを示す青有効信号、580は緑成分が指定
範囲内にあることを示す緑有効信号、590は赤成分が指
定範囲内にあることを示す赤有効信号、600はNANDゲー
トである。なお、第3図では省略しているが、比較器17
3は、緑有効信号および赤有効信号を発生する回路とし
て、それぞれ、参照レジスタ500、有効ビットレジスタ5
20、およびゲート540〜560を有する。
In FIG. 2, 171 is an address decoder, 172 is a register for temporarily holding pixel data read from the data transfer source, and 173 is the output of the register 172 included in the range of color data preset by the MPU 10. A data comparator (first comparing means) for discriminating whether or not, 174 is a transfer mode register set by the MPU 10, 175 is a capture signal for fetching color data into the register 172, and 176 is a mask showing the discrimination result of the data comparator 173. A signal, 177 is a transfer mode signal indicating the normal mode or the transfer combining mode, 181 is a valid signal for selecting and activating the display memory 110, 182 is a write enable signal to the display memory 110, and 191 is selection of the display memory 90. Similarly, the signal 192 is a write enable signal. Reference numeral 500 in FIG. 3 is a reference register for holding data to be compared with the blue component fetched in the register 172, 510 is a fetch signal generated when data is set from the MPU 10 to the reference register 500, and 520 is the above-mentioned two signals. Valid bit register indicating the bit to be compared between two registers, 530 is a capture signal generated when the valid bit register MPU10 sets data, 540 is an EOR gate, 550
Is a NAND gate, 560 is an AND gate, 570 is a blue effective signal that indicates that the blue component is within the specified range, 580 is a green effective signal that indicates that the green component is within the specified range, and 590 is the red component is within the specified range The red valid signal, 600, is a NAND gate. Although omitted in FIG. 3, the comparator 17
3 is a circuit for generating a green valid signal and a red valid signal, which are a reference register 500 and a valid bit register 5, respectively.
20 and gates 540-560.

次に、動作を説明する。まず、表示メモリ110に予め背
景として重ね合わされるべき画像を取込み格納してお
く。また、第3図における参照レジスタ500と有効ビッ
トレジスタ520には予め背景色としたい色データを設定
しておく。具体的には、例えばR,G,B全て“0"すなわち
黒を背景色とする場合、青用、緑用、赤用の各参照レジ
スタ500に、全ビット“0"をMPU10から書込む。そして、
青、緑、赤の各有効ビットレジスタ520には、全ビット
が比較対象であることを示す“1"を全てのビットに書込
む。これによって、青用、緑用、赤用全てのレジスタ17
2に“0"が取込まれた時に限り、青有効信号570、緑有効
信号580、赤有効信号590が“H"レベルとなり、NANDゲー
ト600の作用によって、マスク信号176を“L"レベルにす
る。ここで有効ビットレジスタ520を設けた理由は、あ
る幅を持って背景色を指定可能とするためである。その
動作については後述する。
Next, the operation will be described. First, an image to be superimposed as a background is captured and stored in the display memory 110 in advance. Further, the color data to be used as the background color is set in advance in the reference register 500 and the effective bit register 520 in FIG. Specifically, for example, when all of R, G, B are “0”, that is, black is the background color, all bits “0” are written from the MPU 10 into the reference registers 500 for blue, green, and red. And
In each of the valid bit registers 520 for blue, green and red, "1" indicating that all the bits are to be compared is written in all the bits. As a result, all registers 17 for blue, green, and red
The blue valid signal 570, the green valid signal 580, and the red valid signal 590 go to the “H” level only when “0” is taken into 2, and the mask signal 176 is brought to the “L” level by the operation of the NAND gate 600. To do. The reason for providing the effective bit register 520 is that the background color can be designated with a certain width. The operation will be described later.

上述したように、背景画像の格納と背景色の設定後、先
に参照レジスタ500に設定した色を背景色として、前景
画像を表示メモリ90に格納する。具体的には、先に設定
した背景色のスクリーンをバックに前景画像をRGBカメ
ラ230、A−D変換器250を経由して取込む方法と、ペイ
ントシステムとも呼ばれる絵画作成用プログラムおよび
図示せざる座標入力装置等を用いて、予め指定した背景
色上に希望する前景画を描画する方法とがある。
As described above, after storing the background image and setting the background color, the foreground image is stored in the display memory 90 with the color previously set in the reference register 500 as the background color. Specifically, a method for capturing a foreground image with the background color screen set in the background through the RGB camera 230 and the A / D converter 250, a painting program called a paint system, and a painting system are not shown. There is a method of drawing a desired foreground image on a background color designated in advance using a coordinate input device or the like.

次に、第1図における表示合成部130に含まれる透明色
レジスタ(後述)に前記参照レジスタ500に設定したの
と同じ色データを設定し、かつ表示メモリ110の画像上
に表示メモリ90の画像を重ね合わせて表示するオーバレ
イモードをMPU10より設定することにより、実際に前景
画像を表示メモリ110に転送し、2画像を合成する以前
にそれと全く同じ結果の画像を画面上で確認することが
できる。そして、もし前景画が背景色から抜け切れてい
なければ背景色の再設定や、画像の再取込みを行ない、
前景画像の位置が不適当であれば、表示メモリ90に与え
る表示アドレス60に適当なオフセット値を与えることに
より上下左右のスクロールを行ない最適な位置を決定す
る。
Next, the same color data as that set in the reference register 500 is set in a transparent color register (described later) included in the display combining unit 130 in FIG. 1, and the image in the display memory 90 is displayed on the image in the display memory 110. By setting the overlay mode in which the image is overlaid and displayed by the MPU 10, it is possible to actually transfer the foreground image to the display memory 110 and confirm the image of the exact same result on the screen before combining the two images. . And if the foreground picture is not missing from the background color, reset the background color and re-acquire the image,
If the position of the foreground image is improper, a proper offset value is given to the display address 60 given to the display memory 90 to scroll up, down, left and right to determine the optimum position.

次に、上記スクロールの結果得られたオフセット値を基
に、MPU10が表示メモリ110の転送先アドレスを算出し、
DMAC210に転送元である表示メモリ90のアドレスと前記
転送先アドレスを設定すると共に、第2図における転送
モードレジスタ転送合成モードに設定し、バス支配権を
DMAC210に渡す。DMAC210は、バスの支配権をMPU10から
受け渡されると、表示メモリ90のアドレスと読出信号を
まず発生し、転送元のデータを内部レジスタに取込む。
次に、転送先である表示メモリ110のアドレスと書込信
号を発生すると同時に先に書込んだデータを出力する。
この動作を転送元、転送先のアドレスを更新しながら、
予め設定したワード数だけ繰返し行なう。この時、転送
元の背景色データは転送先である表示メモリ110へは書
込まれず、それ以外の前景画像の部分のみが選択的に抜
き出されて書込まれるので二つの画像の合成が実現す
る。
Next, based on the offset value obtained as a result of the above scroll, MPU10 calculates the transfer destination address of the display memory 110,
The address of the display memory 90 as the transfer source and the transfer destination address are set in the DMAC 210, and the transfer mode register transfer synthesis mode shown in FIG.
Hand it over to DMAC210. When the bus mastership is transferred from the MPU 10, the DMAC 210 first generates an address and a read signal of the display memory 90, and fetches the transfer source data in the internal register.
Next, the address of the display memory 110 which is the transfer destination and the write signal are generated, and at the same time, the previously written data is output.
While updating the transfer source and transfer destination addresses,
Repeat for a preset number of words. At this time, the background color data of the transfer source is not written to the display memory 110 that is the transfer destination, and only the portion of the foreground image other than that is selectively extracted and written, so that the combination of the two images is realized. To do.

転送合成モードを動作により詳細に述べる。まず、DMAC
210より与えられたMPUアドレス30とR/W信号40を基にア
ドレスデコーダ171は転送元のデータが読出されたこと
を検出し、取込み信号175を発生する。レジスタ172はこ
の信号をクロックとして転送元のデータをDMAC210と並
行して取込む。データ比較器173では前述したようにレ
ジスタ172と予め参照レジスタ500に設定してある背景色
データとを比較し、指定値であればマスク信号176を有
効化する。アドレスデコーダ171では次にDMAC210が転送
先である表示メモリ110のアドレスを出力した時、前記
マスク信号176が有効化されていれば表示メモリ110の有
効信号181と書込許可信号182はマスク信号176によりゲ
ートされているので禁止される。もし、前記マスク信号
176が有効化されていなければ、通常通りMPUアドレス30
とR/W信号40をデコードして得られる有効化された有効
信号181と書込許可信号182とを表示メモリ110に与え、
データがMPUデータ20を介して書込まれる。表示サイク
ル信号200は周期的に与える表示アドレスが有効である
期間を示す信号で、この期間はDMAC210からのデータの
読み書きもできない。従って、その期間は表示メモリか
らDMAC210に対する図示せざるアクノレッジ信号を引伸
ばす。表示メモリ90に対する選択信号191と書込許可信
号192とはマスク信号176の状態に影響されることなく出
力される。
The transfer synthesis mode will be described in detail by operation. First, DMAC
Based on the MPU address 30 and R / W signal 40 given from 210, the address decoder 171 detects that the data of the transfer source has been read out, and generates the fetch signal 175. The register 172 takes in the transfer source data in parallel with the DMAC 210 using this signal as a clock. As described above, the data comparator 173 compares the register 172 with the background color data set in the reference register 500 in advance, and validates the mask signal 176 if the value is a designated value. In the address decoder 171, when the DMAC 210 outputs the address of the display memory 110 which is the transfer destination next time, if the mask signal 176 is valid, the valid signal 181 and the write enable signal 182 of the display memory 110 are the mask signal 176. It is banned because it is gated by. If the mask signal
MPU address 30 as usual, unless 176 is enabled
And a valid enable signal 181 and a write enable signal 182 obtained by decoding the R / W signal 40 are given to the display memory 110,
Data is written via MPU data 20. The display cycle signal 200 is a signal indicating a period during which the display address periodically given is valid, and data cannot be read or written from the DMAC 210 during this period. Therefore, during that period, an unillustrated acknowledge signal to the DMAC 210 is stretched from the display memory. The selection signal 191 and the write enable signal 192 for the display memory 90 are output without being affected by the state of the mask signal 176.

第1表に、アドレスデコーダ171の主要入力出力の真理
値表を示した。この表は、転送元を表示メモリ90とした
時のものである。
Table 1 shows a truth table of main inputs and outputs of the address decoder 171. In this table, the transfer source is the display memory 90.

このように、背景色がある一つの特定値であれば以上の
方法で二つの画像のマスク合成で実現できる。しかし、
例えば背景を均一な色のスクリーンにして前景画像をRG
Bカメラ230から取込んだ時でも、光の当て方やカメラの
ノイズ等によって背景色はある幅を持ってしまう。この
ようにある幅を持たせて背景色の設定を行なう方法を、
以下第3図を用いて説明する。
In this way, if the background color has one specific value, it can be realized by mask composition of two images by the above method. But,
For example, if the background is a uniform color screen and the foreground image is RG
Even when captured from the B camera 230, the background color has a certain width due to the way the light is applied and the noise of the camera. In this way, the method of setting the background color with a certain width,
This will be described below with reference to FIG.

例えば、青地をバックに前景画像を取込んだ場合、青の
レベルはある一定以上、赤と緑とは一定以下の時マスク
信号176が有効化されればよい。ここで、例えば青のレ
ベルが32レベル中の24レベル以上を検出する場合につい
て述べる。まず、青用の参照レジスタ500に2進数で上
位2ビットが1の値を書込み、有効ビットレジスタ520
に2進数(11000)を書込む。すると、下位3ビットは
任意の値でよく、2進数で(11000)から(11111)のレ
ベルすなわち10進数で24レベル以上に青成分の値が達し
ている時、青有効信号570が有効化される。この動作を
以下により詳細に説明する。レジスタ172と参照レジス
タ500の対応するビット同士をEORゲート540で比較する
と、一致した場合のみその出力が“L"になる。その出力
はNANDゲート550の一方の入力端子に与えられ、もう一
方の端子には有効ビットレジスタ520の対応するビット
の出力を与える。有効ビットレジスタ520の対応するビ
ットの出力が“L"の場合は、前記EORゲート540の出力に
かかわりなくNANDゲート550の出力は常に“H"となり、
当該ビットの比較結果は無視される。逆に有効ビットレ
ジスタ520の出力が“H"のビットについては、EORゲート
540の出力を反転した値がNANDゲート560に入力され、そ
れらの値が全て“H"レベルの時、すなわちレジスタ172
と参照レジスタ500の有効ビット同士が全て一致した時
に限り青有効信号が“H"レベルとなる。同様に緑有効信
号580と、赤有効信号590も、例えば3レベル以下の時
“H"レベルとなるように設定するには、緑用および赤用
の参照レジスタ500に各々上位3ビットに0の値を書込
み、有効ビットレジスタ520に2進数(11100)を書込
む。すると、下位2ビットの値に関係なく2進数(0000
0)から(00011)までのレベル、すなわち10進数で各成
分が3以下のレベルの時、緑有効信号580と赤有効信号5
90が有効化され、青有効信号570も有効化されていれ
ば、NANDゲート600の作用でマスク信号176は有効とな
る。
For example, when the foreground image is captured with the blue background as the background, the mask signal 176 may be activated when the level of blue is above a certain level and the levels of red and green are below a certain level. Here, for example, a case will be described in which the level of blue is detected as 24 levels or more out of 32 levels. First, write a binary value of 1 in the upper 2 bits to the reference register 500 for blue, and set the valid bit register 520
Write the binary number (11000) to. Then, the lower 3 bits may be any value, and the blue effective signal 570 is activated when the value of the blue component reaches the level of (11000) to (11111) in binary, that is, 24 levels or more in decimal. It This operation will be described in more detail below. When the corresponding bits of the register 172 and the reference register 500 are compared by the EOR gate 540, the output becomes “L” only when they match. Its output is provided to one input terminal of NAND gate 550 and the other terminal is provided with the output of the corresponding bit of valid bit register 520. When the output of the corresponding bit of the valid bit register 520 is “L”, the output of the NAND gate 550 is always “H” regardless of the output of the EOR gate 540,
The comparison result of that bit is ignored. Conversely, for the bit whose output of the valid bit register 520 is “H”, the EOR gate
The inverted value of the output of 540 is input to NAND gate 560, and when all of these values are at “H” level, that is, register 172
Only when all the valid bits of the reference register 500 match with each other, the blue valid signal becomes the “H” level. Similarly, in order to set the green valid signal 580 and the red valid signal 590 to be at “H” level when the level is 3 or less, for example, in the reference registers 500 for green and red, 0 is set in the upper 3 bits. Write a value and write the binary number (11100) to the valid bit register 520. Then, the binary number (0000
0) to (00011), that is, when the decimal component of each component is 3 or less, the green effective signal 580 and the red effective signal 5
If 90 is valid and the blue valid signal 570 is also valid, the mask signal 176 is valid by the action of the NAND gate 600.

次に、表示合成部130の構成と動作について、第4図を
用いてより詳細に述べる。第4図において、600は比較
器(第2比較手段)、610は一致信号、620は切換制御回
路、630は表示モードレジスタ、640は表示モード信号、
650は取込み信号、660は切換信号、670は切換回路、680
は透明色レジスタ、690は取込み信号、700は有効ビット
レジスタ、710は取込み信号である。次に動作について
説明する。まず、透明色レジスタ680にはMPU10より透明
色としたい色データを設定する。同じく有効ビットレジ
スタ700にも前記透明色レジスタ680の有効とするビット
は1、そうでないビットは0を記録する。比較器600で
はジリアル表示データ100と前記透明色レジスタ680の内
容を1画素単位で比較し、一致した時には一致信号610
を有効化する。ここでの比較は有効ピットレジスタ700
の値に基づいて、ある幅を持たせることも可能である。
その動作は、先に述べたデータ比較器173のそれと全く
同じである。
Next, the configuration and operation of the display combining unit 130 will be described in more detail with reference to FIG. In FIG. 4, 600 is a comparator (second comparing means), 610 is a coincidence signal, 620 is a switching control circuit, 630 is a display mode register, 640 is a display mode signal,
650 is an acquisition signal, 660 is a switching signal, 670 is a switching circuit, 680
Is a transparent color register, 690 is a capture signal, 700 is a valid bit register, and 710 is a capture signal. Next, the operation will be described. First, in the transparent color register 680, the color data desired to be a transparent color is set by the MPU 10. Similarly, 1 is recorded in the effective bit register 700 for valid bits of the transparent color register 680, and 0 is recorded for other bits. The comparator 600 compares the real display data 100 with the contents of the transparent color register 680 pixel by pixel.
To enable. The comparison here is valid pit register 700
It is possible to have a certain width based on the value of.
The operation is exactly the same as that of the data comparator 173 described above.

切換制御回路620は前記一致信号610と予めMPU10より表
示モードレジスタ630に設定されている表示モード信号6
40を基に切換信号660を発生する。表示モード信号640は
2ビットで構成され、それが(00)の時には切換信号66
0は常に0となり、シリアル表示データ120が切換回路67
0で選択され、ディジタル画像出力140としてD−A変換
器150に送られる。表示モード信号640が(01)の時には
常に切換信号660を1とし、シリアル表示データ100を選
択する。表示モード信号640が(10)または(11)の時
は前記一致信号610がそのまま切換回路670に入力され
る。この表示モードでは、それぞれ、透明色レジスタ68
0および有効ビットレジスタ700に前記参照レジスタ500
および有効ビットレジスタ520の設定値と同じ値を設定
することにより、ディジタル画像出力140は、シリアル
表示データ120を背景、シリアル表示データ100を前景と
する重ね合わされた画像を形成する信号となる。これが
前述したオーバレイモードである。第4図における透明
色レジスタ680と有効ビットレジスタ700は、第3図に示
した参照レジスタ500および有効ビットレジスタ520と全
く同じ構成、機能を有し、従って両者の共通化も可能で
ある。
The switching control circuit 620 uses the match signal 610 and the display mode signal 6 set in the display mode register 630 from the MPU 10 in advance.
A switching signal 660 is generated based on 40. The display mode signal 640 consists of 2 bits, and when it is (00), the switching signal 66
0 is always 0, and the serial display data 120 is the switching circuit 67.
It is selected at 0 and is sent to the DA converter 150 as the digital image output 140. When the display mode signal 640 is (01), the switching signal 660 is always 1 and the serial display data 100 is selected. When the display mode signal 640 is (10) or (11), the coincidence signal 610 is directly input to the switching circuit 670. In this display mode, the transparent color register 68 is
0 and valid bit register 700 to the reference register 500
And by setting the same value as the setting value of the valid bit register 520, the digital image output 140 becomes a signal forming a superimposed image with the serial display data 120 as the background and the serial display data 100 as the foreground. This is the overlay mode described above. The transparent color register 680 and the effective bit register 700 in FIG. 4 have exactly the same configuration and function as the reference register 500 and the effective bit register 520 shown in FIG. 3, and therefore both can be shared.

本実施例によれば、マスク用メモリを設けることなく、
DMACを用いて高速にマスク合成が行なえるという効果が
ある。また、実際にデータを転送する前に画面上で最終
画像を確認・修正してから合成できるので失敗が少なく
使い勝手性がよい。もし、最終画像の事前確認が不要で
あれば、転送元のメモリは表示メモリに限定されず主メ
モリでもよいので、表示メモリを1系列省略し、回路規
模を減らすことも可能である。
According to this embodiment, without providing a mask memory,
There is an effect that mask composition can be performed at high speed by using the DMAC. Moreover, since the final image can be confirmed and corrected on the screen before the data is actually transferred, the composition can be performed, and therefore the number of failures is small and the usability is good. If prior confirmation of the final image is unnecessary, the memory of the transfer source is not limited to the display memory and may be the main memory. Therefore, it is possible to omit one series of the display memory and reduce the circuit scale.

また、2系列の表示メモリを持った場合でも、透明色レ
ジスタ680と参照レジスタ500と、および有効ビットレジ
スタ700と520とを共通化することにより、回路規模を削
減できると共に、設定すべきレジスタの数の減少に伴っ
て使い勝手が向上する。
Further, even when the display memory has two series, the transparent color register 680, the reference register 500, and the effective bit registers 700 and 520 are commonly used, so that the circuit scale can be reduced and the registers to be set can be set. Usability improves as the number decreases.

〈第2実施例〉 次に本発明による第2の実施例を第5図を用いて説明す
る。本実施例の基本的な構成は、第1図に示した、第1
の実施例とほぼ同じであるが、表示メモリR/W制御部170
の構成と動作が異なる。第5図における構成要素のう
ち、第1図、第2図の構成要素と同じものについては、
同一符号を付した。
<Second Embodiment> Next, a second embodiment of the present invention will be described with reference to FIG. The basic configuration of this embodiment is the same as the first configuration shown in FIG.
The display memory R / W control unit 170 is similar to the embodiment of FIG.
The configuration and operation of are different. Among the constituent elements in FIG. 5, those which are the same as the constituent elements in FIG. 1 and FIG.
The same reference numerals are given.

第5図において、新たな構成要素は、700が表示メモリ9
0の並列表示データ、710が表示メモリ110の並列表示デ
ータ、720が前記並列表示データ700とMPUデータ20との
接続を制御するバッファ、730はこのバッファ720の制御
信号、740は並列表示データ710とMPUデータ20間のバッ
ファ、750はこのバッファ740の制御信号、760は転送デ
ータ、770は転送データ760を表示メモリ110へ入力する
ためのバッファ、780はバッファ770の制御信号である。
In FIG. 5, 700 is a display memory 9 as a new component.
Parallel display data of 0, 710 is parallel display data of the display memory 110, 720 is a buffer for controlling the connection between the parallel display data 700 and the MPU data 20, 730 is a control signal of this buffer 720, 740 is parallel display data 710. 750 is a control signal for the buffer 740, 760 is transfer data, 770 is a buffer for inputting the transfer data 760 to the display memory 110, and 780 is a control signal for the buffer 770.

次に本実施例の動作を、第1の実施例と異なる点を中心
に説明する。本実施例において表示メモリ90と110は1
画素当りR,G,B各8ビット計24ビットを持つ。一方、MPU
データ20のバス幅は16ビットのままであるため1回のMP
U10またはDMAC210からのアクセスで1画素分の全データ
を読み書きすることができない。転送モードレジスタ17
4によって指定される通常モードでは1画素分のデータ
に2アドレスを割当てて、2回のアクセスで1画素分の
データの読み書きを行なう。ここで、並列表示データ70
0,710は24ビット幅のデータとし、バッファ720によっ
て、偶数アドレスをアクセスした時には上位16ビット、
奇数アドレスをアクセスした時には残り8ビットをMPU
データ20に接続する。このために、1画素分のデータは
連続した2アドレスに格納し、制御信号730,750によ
り、MPUアドレス30の最下位ビットが1か0かで前記バ
ッファ720,740を制御する。
Next, the operation of this embodiment will be described focusing on the points different from the first embodiment. In this embodiment, the display memories 90 and 110 are
Each pixel has 8 bits for each of R, G, and B with a total of 24 bits. Meanwhile, MPU
Since the bus width of data 20 remains 16 bits, one MP
It is not possible to read / write all data for one pixel by accessing from U10 or DMAC210. Transfer mode register 17
In the normal mode designated by 4, two addresses are assigned to the data for one pixel, and the data for one pixel is read and written by two accesses. Where the parallel display data 70
0,710 is 24-bit width data, and when the buffer 720 accesses an even address, the upper 16 bits,
When accessing an odd address, the remaining 8 bits are MPU
Connect to data 20. Therefore, data for one pixel is stored in two consecutive addresses, and the control signals 730 and 750 control the buffers 720 and 740 depending on whether the least significant bit of the MPU address 30 is 1 or 0.

一方、前記転送モードレジスタ174で合成転送モードを
設定した時、転送元である表示メモリ90をDMAC210また
はMPU10から読むと、当該画素の全データ24ビットが並
列表示データ700として出力される。この時、取込み信
号175が有効化され、レジスタ172に24ビット全てが取込
まれる。この24ビットのデータはデータ比較器173で背
景色か否かを判別し、マスク信号176を発生する。一
方、転送データ760としてバッファ770へも入力される。
もし、前記転送データ770が背景色データでなければ、
マスク信号176が無効のままとなり、アドレスデコーダ1
71は転送先である表示メモリ110のアドレスが選択され
ると制御信号750を介し、バッファ740を用いて並列表示
データ710とMPUデータ20を切離す。これと同時に制御信
号780を介してバッファ770により前記転送データ760を
表示メモリ110へ並列表示データ710として入力する。こ
の時、有効信号181と書込許可信号182も、連続する2ア
ドレス分が同時に有効化されるので、24ビット並列で書
込まれる。前記転送データ770が背景色データの場合
は、第1の実施例と同様に、マスク信号176が有効化さ
れ、有効信号181と書込許可信号182とが禁止されるの
で、表示メモリ110への書込み、すなわち転送は行なわ
れない。以下同様にして、2アドレス単位で転送元、転
送先アドレスを更新することによりマスク合成が完了す
る。
On the other hand, when the composite transfer mode is set in the transfer mode register 174 and the display memory 90 which is the transfer source is read from the DMAC 210 or MPU 10, all 24 bits of the data of the pixel are output as the parallel display data 700. At this time, the fetch signal 175 is enabled and the register 172 fetches all 24 bits. This 24-bit data is discriminated by the data comparator 173 as to whether it is the background color or not, and the mask signal 176 is generated. On the other hand, the transfer data 760 is also input to the buffer 770.
If the transfer data 770 is not background color data,
Mask signal 176 remains invalid and address decoder 1
When the address of the display memory 110, which is the transfer destination, is selected, 71 separates the parallel display data 710 and the MPU data 20 by using the buffer 740 via the control signal 750. At the same time, the transfer data 760 is input as parallel display data 710 to the display memory 110 by the buffer 770 via the control signal 780. At this time, the valid signal 181 and the write enable signal 182 are also written in parallel in 24 bits because two consecutive addresses are validated at the same time. When the transfer data 770 is background color data, the mask signal 176 is validated and the valid signal 181 and the write enable signal 182 are prohibited as in the first embodiment. No writing or transfer is performed. Similarly, the mask composition is completed by updating the transfer source and transfer destination addresses in units of two addresses.

本実施例によれば、1画素分のデータがMPUデータのバ
ス幅を上回る場合でも、画素単位での転送の要否を判別
・制御できる上、転送速度はMPUデータのバス幅以下の
場合と同じで高速である。
According to the present embodiment, even if the data for one pixel exceeds the bus width of MPU data, it is possible to determine and control the necessity of transfer in pixel units, and the transfer speed is less than or equal to the bus width of MPU data. Same and fast.

〈第3実施例〉 次に本発明による第3の実施例を第6図を用いて説明す
る。本実施例の全体構成は第1図と同じである。表示メ
モリR/W制御部170内のデータ比較器173の構成が第1の
実施例と異なる。第6図は本実施例による前記データ比
較器173の構成を示したものである。
<Third Embodiment> Next, a third embodiment of the present invention will be described with reference to FIG. The overall structure of this embodiment is the same as that shown in FIG. The configuration of the data comparator 173 in the display memory R / W control unit 170 is different from that of the first embodiment. FIG. 6 shows the configuration of the data comparator 173 according to this embodiment.

第6図において、800は青転送データ、810は緑転送デー
タ、820は赤転送データ、830,840,850はアドレス切換回
路、860,870,880はデータ幅1ビットアドレス長8ビッ
ト以上の書替え可能型メモリ、890,900,910は前記メモ
リ860,870,880へMPU10がデータを書込む時発生する書込
信号である。
In FIG. 6, 800 is blue transfer data, 810 is green transfer data, 820 is red transfer data, 830,840 and 850 are address switching circuits, 860,870 and 880 are rewritable memories with a data width of 1 bit and an address length of 8 bits or more, and 890,900 and 910 are the memories. This is a write signal generated when the MPU 10 writes data to the 860, 870, 880.

次に、本実施例の動作を第6図を用いて説明する。レジ
スタ172には、転送元である表示メモリ90から読出され
た1画素分24ビットの並列表示データ700が取込まれ
る。このデータは、R,G,B各成分ごとに8ビットの転送
データ800,810,820として各々切換回路830,840,850に入
力される。切換回路830,840,850では通常は前記転送デ
ータ800,810,820をそのままメモリ860,870,880のアドレ
ス端子を各々入力する。メモリ860,870,880は前記アド
レス端子に入力された各色の転送データ800,810,820が
指定領域に入っている時は1、そうでなければ0を各色
の有効信号570,590として出力する。NANDゲート600で
は、前記3入力信号が全て1の時、マスク信号176を有
効化する。前記メモリ860,870,880は少なくとも1ビッ
ト幅で256アドレスを持つ書替え可能型メモリで、MPU10
から直接1ビットデータを書込むことができる。MPU10
がデータ書込みのため前記3メモリのアドレスを発生す
ると、書込信号890,900,910が有効化され、前記書込信
号が切換制御信号として入力されている切換回路830,84
0,850はMPUアドレス30をメモリ860,870,880に入力す
る。前記書込信号890,900,910は前記メモリ860,870,880
の各書込許可端子にも与えられており、前記各書込信号
が有効化された時のMPUデータ20が当該アドレスに書込
まれる。前記メモリ860,870,880へのデータ設定方法は
以下のとおりである。例えば青が256レベル中の200レベ
ル以上、緑と赤が同50以下のレベルの時にそれを背景色
としたい時は、青用のメモリ860のアドレス0から199ま
では全てデータとして0を、アドレス200から255にはデ
ータとして1を書込み、緑用と赤用メモリ870,880のア
ドレス0から49には0、50から255には1データとして
予め書込めばよい。実際のデータ設定は、座標入力装置
により座標指定した背景色領域の平均的な画素のデータ
を読取り、その値を中心として各色成分ごと別途指定し
た幅を持たせて、対応するアドレス範囲に1を書込み、
それ以外の領域は予め0クリアしておくことにより、使
い勝手よく設定や変更ができる。
Next, the operation of this embodiment will be described with reference to FIG. The register 172 stores the 24-bit parallel display data 700 for one pixel read from the display memory 90 which is the transfer source. This data is input to the switching circuits 830, 840, 850 as 8-bit transfer data 800, 810, 820 for each R, G, B component. In the switching circuits 830, 840, 850, the transfer data 800, 810, 820 are normally input to the address terminals of the memories 860, 870, 880 as they are. The memories 860, 870, 880 output 1 as the valid signals 570, 590 for each color when the transfer data 800, 810, 820 for each color input to the address terminals are in the designated area, and 0 otherwise. In the NAND gate 600, when the three input signals are all 1, the mask signal 176 is validated. The memories 860, 870 and 880 are rewritable memories having at least 1 bit width and 256 addresses, and are MPU10.
1-bit data can be written directly from. MPU10
Generates addresses for the three memories for writing data, the write signals 890, 900, 910 are validated, and the write signals are input as switching control signals. Switching circuits 830, 84
0,850 inputs MPU address 30 into memories 860,870,880. The write signals 890,900,910 are stored in the memories 860,870,880.
Is also given to each write enable terminal of, and the MPU data 20 when each write signal is validated is written to the address. The data setting method for the memories 860, 870 and 880 is as follows. For example, if you want to use it as the background color when the level of blue is 200 levels or more out of 256 levels and the levels of green and red are 50 or less, 0 is the address 0 to 199 of the memory 860 for blue. It is sufficient to write 1 as data in 200 to 255, 0 in addresses 0 to 49 of the green and red memories 870 and 880, and 1 to 50 to 255 in advance. For the actual data setting, the average pixel data of the background color area whose coordinates are specified by the coordinate input device is read, and each color component has a separately specified width centered on that value, and 1 is set in the corresponding address range. writing,
By clearing 0 in other areas in advance, settings and changes can be made easily.

本実施例によれば、背景色の範囲を1レベル単位で各色
成分ごとに指定することが可能となる。また、回路的に
もメモリを使用することにより簡略化できる。
According to the present embodiment, it is possible to specify the background color range for each color component in units of one level. Also, the circuit can be simplified by using a memory.

以上の説明は、データ比較器173について述べてきた
が、表示合成部130にも同様の回路を適用し、比較回路6
00、透明色レジスタ680、有効ビットレジスタ700をメモ
リで置き換えることができるのは自明である。また、そ
の際、表示合成部130の前記メモリのアドレスをデータ
比較器173のそれと同一にすれば、アドレスデコーダを
共用できる上、設定手順が簡略化できることも理解に難
くない。
Although the above description has been made with respect to the data comparator 173, a similar circuit is applied to the display synthesizing unit 130, and the comparison circuit 6 is used.
It is self-evident that the 00, the transparent color register 680 and the valid bit register 700 can be replaced by a memory. At that time, if the address of the memory of the display synthesizing unit 130 is the same as that of the data comparator 173, it is possible to share the address decoder and simplify the setting procedure.

さらに、以上三つの実施例では、転送先メモリは全て固
定であったが、表示メモリR/W制御部170等への回路の追
加で表示メモリ90を転送先にすることや、双方向にする
こともできることは当業者の容易に理解できるところで
ある。
Further, in the above three embodiments, all the transfer destination memories are fixed, but by adding a circuit to the display memory R / W control unit 170 etc., the display memory 90 can be set as the transfer destination, or bidirectional. It can be easily understood by those skilled in the art.

[発明の効果] 本発明によれば、回路的に前景画像か否かを判別し、か
つDMACを用いた高速ブロック転送により画像のマスク合
成を行なえるので、ソフトウェアを用いた演算による合
成を行なう場合等に比べ数倍から数10倍高速化できる。
また、高速なマスク用メモリを必要としないので回路規
模の削減、低コスト化、およびマスク用メモリへのデー
タ設定手順の省略による使い勝手性向上等の効果があ
る。
EFFECTS OF THE INVENTION According to the present invention, it is possible to determine whether or not the image is a foreground image in a circuit and perform image mask composition by high-speed block transfer using DMAC. It can be several to several tens of times faster than in some cases.
Further, since a high-speed mask memory is not required, the circuit scale is reduced, the cost is reduced, and the usability is improved by omitting the data setting procedure for the mask memory.

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

第1図は本発明の一実施例の構成図、第2図は第1図の
一部のより詳細な構成図、第3図は第2図の一部のより
詳細な構成図、第4図は第1図の一部のより詳細な構成
図、第5図は本発明の第2の実施例の構成図、第6図は
本発明の第3の実施例の構成図である。 90……表示メモリ 110……表示メモリ 130……表示合成部 170……表示メモリR/W制御部 171……アドレスデコーダ 172……レジスタ 173……データ比較器 210……DMAC
1 is a configuration diagram of an embodiment of the present invention, FIG. 2 is a more detailed configuration diagram of a part of FIG. 1, FIG. 3 is a more detailed configuration diagram of a part of FIG. 2, and FIG. FIG. 5 is a more detailed block diagram of a part of FIG. 1, FIG. 5 is a block diagram of a second embodiment of the present invention, and FIG. 6 is a block diagram of a third embodiment of the present invention. 90 …… Display memory 110 …… Display memory 130 …… Display composition section 170 …… Display memory R / W control section 171 …… Address decoder 172 …… Register 173 …… Data comparator 210 …… DMAC

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】第1画像と第2画像を合成する画像合成装
置であって、 前記第1画像を表す第1の画像データを記憶する第1表
示メモリと、 前記第2画像を表す第2の画像データを記憶する第2表
示メモリと、 合成画像の生成の指示と、合成画像の表示の指示とを選
択的に受付ける受付け手段と、 前記受付け手段が合成画像の生成の指示を受けた場合
に、所定の画像データの単位毎に、前記第2表示メモリ
から読みだした第2画像データと、予め設定された値と
を比較する第1の比較手段と、 前記受付け手段が合成画像の生成の指示を受付けた場合
に、前記第1の比較手段の比較結果に応じて、前記所定
の画像データの単位毎に、前記第2表示メモリから読み
だした第2画像データを前記第1の表示メモリに書き込
むか否かを制御する書き込み制御手段と、 前記受付け手段が合成画像の表示の指示を受付けた場合
に、所定の画像データの単位毎に、前記第1表示メモリ
に記憶されている第1の画像データと、前記第2表示メ
モリに記憶されている第2画像データとを、所定の周期
で順次読みだす手段と、 前記受付け手段が合成画像の表示の指示を受付けた場合
に、所定の画像データの単位毎に、前記第2表示メモリ
から読みだした第2画像データと、前記設定された値と
を比較する第2の比較手段と、 前記受付け手段が合成画像の表示の指示を受付けた場合
に、前記第1の比較手段の比較結果に応じて、前記所定
の画像データの単位毎に、前記読みだした前記第1の画
像データと第2画像データとのうちの、一方を選択して
表示に供する選択手段と、 前記設定された値を変更する手段とを有することを特徴
とする画像合成装置。
1. An image synthesizing apparatus for synthesizing a first image and a second image, comprising: a first display memory storing first image data representing the first image; and a second display memory representing the second image. A second display memory for storing the image data of, a receiving unit that selectively receives an instruction to generate a composite image and an instruction to display a composite image, and the receiving unit receives an instruction to generate a composite image In addition, a first comparing unit that compares the second image data read from the second display memory with a preset value for each unit of predetermined image data, and the receiving unit generates a composite image. Is received, the second image data read from the second display memory is displayed in the first display for each unit of the predetermined image data according to the comparison result of the first comparing unit. Write to control whether to write to memory Only the first image data stored in the first display memory and the second image data stored in the first display memory in units of predetermined image data when the receiving unit receives the instruction to display the composite image. A unit for sequentially reading the second image data stored in the display memory at a predetermined cycle; and, when the receiving unit receives an instruction to display the composite image, the unit for each predetermined image data unit Second comparing means for comparing the second image data read from the second display memory with the set value; and the first means when the receiving means receives an instruction to display a composite image. Selecting means for selecting one of the read first image data and second image data for display for each unit of the predetermined image data according to the comparison result of the comparing means; , Change the set value Image synthesizing apparatus characterized by having means.
【請求項2】特許請求の範囲第1項記載の画像合成装置
であって、 前記設定された値は、画像データの値の範囲を示し、 前記第1比較手段は、前記第2表示メモリから読みだし
た第2画像データが、前記設定された値が示す画像デー
タの値の範囲内にある場合に第1の一致信号を出力し、 前記書き込み制御手段は、前記第1の一致信号が出力さ
れた場合に、第2画像データの前記第1の表示メモリへ
の書き込みを禁止し、 前記第1比較手段は、前記第2表示メモリから読みだし
た第2画像データが、前記設定された値が示す画像デー
タの値の範囲内にある場合に第1の一致信号を出力し、 前記選択手段は、前記第2の一致信号が出力された場合
に前記第1画像データを選択し、前記第2の一致信号が
出力されない場合には前記第2画像データを選択するこ
とを特徴とする画像合成装置。
2. The image synthesizing apparatus according to claim 1, wherein the set value indicates a value range of image data, and the first comparing unit is configured to output the second display memory from the second display memory. When the read second image data is within the range of the value of the image data indicated by the set value, the first match signal is output, and the write control unit outputs the first match signal. In the case where the second image data is written, the writing of the second image data to the first display memory is prohibited, and the first comparing means sets the second image data read from the second display memory to the set value. Output the first match signal when the value is within the range of the value of the image data, and the selecting unit selects the first image data when the second match signal is output, If the second match signal is not output, the second image data is output. Image synthesizing apparatus and selects the data.
【請求項3】特許請求の範囲第1項記載の画像合成装置
であって、 前記第1の比較手段は、前記受付け手段が合成画像の表
示の指示を受付けた場合に前記第2の比較手段として用
いられることを特徴とする画像合成装置。
3. The image synthesizing apparatus according to claim 1, wherein the first comparing means is the second comparing means when the receiving means receives an instruction to display a composite image. An image synthesizing device characterized by being used as.
【請求項4】特許請求の範囲第1項記載の画像合成装置
であって、 前記第1の比較手段および第2の比較手段は、前記第2
画像データをアドレスとして入力し、比較結果をデータ
として出力する書き換え可能なメモリであることを特徴
とする画像合成装置。
4. The image synthesizing apparatus according to claim 1, wherein the first comparing means and the second comparing means include the second comparing means.
An image synthesizing device, which is a rewritable memory that inputs image data as an address and outputs a comparison result as data.
JP62315836A 1987-12-14 1987-12-14 Image synthesizer Expired - Lifetime JPH0778720B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62315836A JPH0778720B2 (en) 1987-12-14 1987-12-14 Image synthesizer
US07/856,827 US5179642A (en) 1987-12-14 1992-03-25 Image synthesizing apparatus for superposing a second image on a first image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62315836A JPH0778720B2 (en) 1987-12-14 1987-12-14 Image synthesizer

Publications (2)

Publication Number Publication Date
JPH01156816A JPH01156816A (en) 1989-06-20
JPH0778720B2 true JPH0778720B2 (en) 1995-08-23

Family

ID=18070157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62315836A Expired - Lifetime JPH0778720B2 (en) 1987-12-14 1987-12-14 Image synthesizer

Country Status (1)

Country Link
JP (1) JPH0778720B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004094498A (en) * 2002-08-30 2004-03-25 Rohm Co Ltd Image display system, and display
JP4161944B2 (en) 2004-07-01 2008-10-08 セイコーエプソン株式会社 Display controller and electronic device
JP2006243940A (en) * 2005-03-01 2006-09-14 Oki Electric Ind Co Ltd Camera data transfer device
JP4982354B2 (en) 2007-12-28 2012-07-25 パナソニック株式会社 Information processing device
JP2008262214A (en) * 2008-06-02 2008-10-30 Seiko Epson Corp Display controller and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2569020B1 (en) * 1984-08-10 1986-12-05 Radiotechnique Compelec METHOD FOR CREATING AND MODIFYING A SYNTHETIC IMAGE
JPS6160346U (en) * 1984-09-21 1986-04-23

Also Published As

Publication number Publication date
JPH01156816A (en) 1989-06-20

Similar Documents

Publication Publication Date Title
US5179642A (en) Image synthesizing apparatus for superposing a second image on a first image
US5590252A (en) Video processor system and audio processor system
US20010005233A1 (en) Video data processing device and video data display device
JPH0778720B2 (en) Image synthesizer
CN100489959C (en) Real-time acquisition device for full-screen picture and its method
JPS58217076A (en) Picture storage device
JP3434093B2 (en) Video capture device
JP2582743B2 (en) Image processing device
JPS60181875A (en) Density histogram display circuit
JPH06295171A (en) Image processor
JP2002320086A (en) Device/method for picture processing, recording medium and program
JP3431925B2 (en) Image display control apparatus and method
JPH0659105B2 (en) Color correction method in video plate making apparatus
JPS63228267A (en) Check system for color information memory
JPH06105226A (en) Picture synthesis device
JPS5870276A (en) Writing and reading of video memory
JPS6339059B2 (en)
JPH0695272B2 (en) Image display device
JPH11191866A (en) Defective pixel interpolation device, image pickup device and storage medium readable by computer
JPH0567185A (en) Picture display processing device
JPH06311491A (en) Picture converter
JPS617769A (en) Image memory write control system
JPH02281879A (en) Digital image editing device
JPS58166387A (en) Image memory reading system
JPH05119766A (en) Image processor