JP2005346279A - Image compositing device - Google Patents

Image compositing device Download PDF

Info

Publication number
JP2005346279A
JP2005346279A JP2004163513A JP2004163513A JP2005346279A JP 2005346279 A JP2005346279 A JP 2005346279A JP 2004163513 A JP2004163513 A JP 2004163513A JP 2004163513 A JP2004163513 A JP 2004163513A JP 2005346279 A JP2005346279 A JP 2005346279A
Authority
JP
Japan
Prior art keywords
data
image
background
specific
buffer
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.)
Withdrawn
Application number
JP2004163513A
Other languages
Japanese (ja)
Inventor
Tomohiro Sekiya
知尋 関谷
Kiichiro Iga
希一郎 伊賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2004163513A priority Critical patent/JP2005346279A/en
Publication of JP2005346279A publication Critical patent/JP2005346279A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image compositing device for compositing only the necessary part of image data with one image data while reducing the size. <P>SOLUTION: A comparison curcuit 54 compares specific data stored in a buffer 52 with target values Tg-R, Tg-G and Tg-B for judging a specific color, and controls the passage/non-passage of background data in a gate circuit 51 installed on a route on which background data are written in the buffer 52 based an enable signal EN corresponding to the comparison result. The specific color background data of the specific data stored in the buffer 52 are overwritten, and a composite image data are generated. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像合成装置に係り、詳しくは1枚の画像データに他の画像データの必要な部分のみを合成する画像合成装置に関するものである。
近年、複数の画像データを合成するクロマキー技術が多用されるようになってきている。そして、このクロマキー技術による画像合成の高速化が望まれることから、クロマキー技術を提供するためのIC(画像合成装置)の高速化と、そのICのサイズ縮小が要求されている。
The present invention relates to an image synthesizing apparatus, and more particularly to an image synthesizing apparatus that synthesizes only necessary portions of other image data with one piece of image data.
In recent years, chroma key technology for synthesizing a plurality of image data has been widely used. Further, since it is desired to increase the speed of image composition by the chroma key technology, it is required to increase the speed of an IC (image composition device) for providing the chroma key technology and to reduce the size of the IC.

従来、画像を合成する方法として、画像クロマキーがある。この画像クロマキーは、一般に、風景等を撮影した背景画像の画像データ(以下、背景データ)と、特定の色(key color )を背景にして撮影された画像データ(以下、特定データ)と、を合成するものである(例えば、特許文献1参照)。   Conventionally, there is an image chroma key as a method of combining images. This image chroma key generally includes image data of a background image (hereinafter referred to as background data) obtained by photographing a landscape and the like, and image data (hereinafter referred to as specific data) taken with a specific color (key color) as a background. These are synthesized (for example, see Patent Document 1).

ところで、上記の特許文献1のように、画像データを1画素毎に読み込む方法では、メモリに対するアクセスが多くなって画像データの読込みに時間がかかり、1画面分の画像データの処理時間が長くなる。そこで、画像データを一時的に記憶するバッファを画像データのそれぞれに対応して備えた画像合成装置が提案されている(例えば、特許文献2参照)。   By the way, in the method of reading image data for each pixel as in the above-mentioned Patent Document 1, it takes time to read the image data because the access to the memory increases, and the processing time of the image data for one screen becomes long. . In view of this, there has been proposed an image composition device provided with a buffer for temporarily storing image data corresponding to each image data (see, for example, Patent Document 2).

図11は、画像データ毎にバッファを設けた画像合成装置の一部ブロック回路図である。この画像合成装置は、画像メモリ11に記憶された特定データ11aと背景データ11bとを合成するものであり、その特定データ11aを一時的に記憶する第1バッファ12と、背景データ11bを一時的に記憶する第2バッファ13と、とを備えている。更に、この装置は、特定の色の背景色データを記憶するレジスタ14を備え、このレジスタ14に記憶された背景色データと第1バッファ12から読み出した特定データとを比較回路15にて比較する。そして、その比較結果に基づいて選択回路16を制御し、第1バッファ12のデータが背景色データの場合には第2バッファ13から出力されるデータ(背景データ)を選択回路16から出力させ、第1バッファ12のデータが背景色データではない場合には第1バッファ12から出力されるデータ(特定データ)を選択回路16から出力させる。この構成により、画像合成装置は、特定データが背景色データと一致する、即ち特定色の場合に背景データを出力することで、特定データ11aに含まれ特定色以外の画素を背景データ11bに合成した合成データを出力する。   FIG. 11 is a partial block circuit diagram of an image composition apparatus provided with a buffer for each image data. This image composition device synthesizes the specific data 11a and the background data 11b stored in the image memory 11, and temporarily stores the first buffer 12 for temporarily storing the specific data 11a and the background data 11b. And a second buffer 13 to be stored. The apparatus further includes a register 14 for storing background color data of a specific color, and the comparison circuit 15 compares the background color data stored in the register 14 with the specific data read from the first buffer 12. . Then, the selection circuit 16 is controlled based on the comparison result. When the data in the first buffer 12 is background color data, the data (background data) output from the second buffer 13 is output from the selection circuit 16. When the data in the first buffer 12 is not background color data, the data (specific data) output from the first buffer 12 is output from the selection circuit 16. With this configuration, the image composition device synthesizes the pixels other than the specific color included in the specific data 11a with the background data 11b by outputting the background data when the specific data matches the background color data, that is, the specific color. The synthesized data is output.

上記の処理手順は、図10のように表される。即ち、画像合成装置は、先ず、画像メモリ11から所定数(例えば16画素)の特定データ11aを取り出して(ステップ21)第1バッファ12に格納し(ステップ22)、次に、画像メモリ11から所定数(例えば16画素)の背景データ11bを取り出して(ステップ23)第2バッファ13に格納する(ステップ24)。次に、画素毎にターゲット値と特定データの値とを比較し(ステップ25)、両値が一致する場合には背景データを選択し(ステップ26)、両値が一致しない場合には特定データを選択し(ステップ27)、それらの選択した背景データ又は特定データを図示しない表示装置に出力する(ステップ28)。   The above processing procedure is expressed as shown in FIG. That is, the image composition apparatus first extracts a predetermined number (for example, 16 pixels) of specific data 11a from the image memory 11 (step 21) and stores it in the first buffer 12 (step 22). A predetermined number (for example, 16 pixels) of background data 11b is extracted (step 23) and stored in the second buffer 13 (step 24). Next, the target value is compared with the value of the specific data for each pixel (step 25). If the two values match, the background data is selected (step 26). If the two values do not match, the specific data is selected. Are selected (step 27), and the selected background data or specific data is output to a display device (not shown) (step 28).

そして、画像合成装置は、ステップ25からステップ28の処理を第1及び第2バッファ12,13に記憶したデータの数だけ繰り返して第1及び第2バッファ12,13の画像データを合成する。更に、画像合成装置は、ステップ21からステップ28の処理を特定データ11a及び背景データ11bの全てのデータについて繰り返し実行し、特定データ11aと背景データ11bとを合成する。
特開平10−307697号公報 特開2003−280626号公報
Then, the image synthesizing apparatus repeats the processing from step 25 to step 28 by the number of data stored in the first and second buffers 12 and 13, and synthesizes the image data in the first and second buffers 12 and 13. Further, the image composition device repeatedly executes the processing from step 21 to step 28 for all data of the specific data 11a and the background data 11b to synthesize the specific data 11a and the background data 11b.
JP-A-10-307697 JP 2003-280626 A

ところで、近年の半導体装置は、歩留りの向上やコスト低減のためにサイズの縮小が求められ、上記の画像合成装置(IC)においても同様である。しかしながら、上記の画像合成装置は、2つのバッファ12,13が必要であることから全体のサイズの縮小が難しいという問題がある。   By the way, recent semiconductor devices are required to be reduced in size in order to improve yield and cost, and the same applies to the above-described image composition device (IC). However, the above image composition apparatus has the problem that it is difficult to reduce the overall size because two buffers 12 and 13 are required.

本発明は上記問題点を解決するためになされたものであって、その目的は、サイズの縮小が可能な画像合成装置を提供することにある。   The present invention has been made to solve the above problems, and an object of the present invention is to provide an image composition device capable of reducing the size.

上記目的を達成するため、請求項1,2又は3に記載の発明によれば、バッファに記憶した特定データと特定の色を判断するためのターゲット値とを比較回路にて比較し、その比較結果に応じてバッファに背景データを書き込む経路上に設けられたゲート回路における背景データの通過・非通過が制御される。従って、バッファに記憶された特定データの特定の色背景データが上書きされて合成画像データが生成される。1つのバッファにて特定データと背景データとが合成されるため、装置サイズの縮小が可能となる。   In order to achieve the above object, according to the invention described in claim 1, 2 or 3, the specific data stored in the buffer and the target value for determining the specific color are compared by the comparison circuit, and the comparison is made. The passage / non-passage of the background data in the gate circuit provided on the path for writing the background data to the buffer is controlled according to the result. Therefore, the specific color background data of the specific data stored in the buffer is overwritten to generate composite image data. Since the specific data and the background data are combined in one buffer, the apparatus size can be reduced.

請求項4に記載の発明によれば、ゲート回路は、特定データ及び背景データを画像メモリからバッファに書き込む経路上に設けられ、制御部により、特定データの読み出し時には該特定データがゲート回路を通過し、背景データの読み出し時には比較回路の比較結果に応じてバッファに書き込む画素の通過・非通過が制御される。従って、バッファに記憶された特定データの画素毎に対応して背景データの通過・非通過が制御され、特定の色の画素に対して背景データが容易に上書きされる。   According to the fourth aspect of the present invention, the gate circuit is provided on a path for writing the specific data and the background data from the image memory to the buffer, and the specific data passes through the gate circuit when the specific data is read by the control unit. At the time of reading the background data, passage / non-passage of pixels to be written to the buffer is controlled according to the comparison result of the comparison circuit. Accordingly, the passage / non-passage of the background data is controlled corresponding to each pixel of the specific data stored in the buffer, and the background data is easily overwritten on the pixel of the specific color.

請求項5に記載の発明によれば、レジスタにターゲット値と所定の範囲を示す許容値とがそれぞれ記憶され、比較回路にて、特定データの値がターゲット値を含む許容値の範囲内か否かが判断される。従って、特定の色を確実に判断し、特定データと背景データを合成することができる。   According to the fifth aspect of the present invention, the register stores a target value and an allowable value indicating a predetermined range, and the comparison circuit determines whether the value of the specific data is within the allowable value range including the target value. Is judged. Therefore, it is possible to reliably determine a specific color and combine the specific data and the background data.

以上記述したように、本発明によれば、特定データと背景データを1つのバッファに記憶するため、画像合成装置のサイズの縮小を可能にすることができる。   As described above, according to the present invention, since the specific data and the background data are stored in one buffer, the size of the image composition device can be reduced.

以下、本発明を具体化した一実施の形態を図1〜図6に従って説明する。
図1は、画像合成装置30の概略ブロック図である。
この装置30は、画像記憶部としての画像メモリ31と、制御部32と、画像合成部33を備えている。
Hereinafter, an embodiment embodying the present invention will be described with reference to FIGS.
FIG. 1 is a schematic block diagram of the image composition device 30.
The device 30 includes an image memory 31 as an image storage unit, a control unit 32, and an image composition unit 33.

画像メモリ31には複数(図1では2つ)の画像データ31a,31bが格納されている。第1の画像データ31a(図では画1と記す)は、特定の色(key color )を背景にして撮影した被写体(例えば図6に示すように人)の画像(被合成画像)P1のデータであり、このデータを以下、特定データ31aという。第2の画像データ31b(図1では画2と記す)は、例えば図6に示すように風景を撮影した背景画像P2のデータであり、このデータを以下、背景データ31bという。   The image memory 31 stores a plurality (two in FIG. 1) of image data 31a and 31b. The first image data 31a (denoted as image 1 in the figure) is data of an image (synthesized image) P1 of a subject (for example, a person as shown in FIG. 6) photographed with a specific color (key color) in the background. This data is hereinafter referred to as specific data 31a. The second image data 31b (denoted as image 2 in FIG. 1) is data of a background image P2 obtained by photographing a landscape as shown in FIG. 6, for example, and this data is hereinafter referred to as background data 31b.

特定データ31a及び背景データ31bは複数の画素から構成され、各画素は3つの色(RGB)の点により構成され、それらの色の強弱によってカラーの画像が表現されている。従って、特定データ31a及び背景データ31bは、画像P1,P2を構成する複数の画素の画素データを含み、各画素データは3つの色の色データを含む。各色データは所定数のビット(例えば8ビット)にて構成されている。   The specific data 31a and the background data 31b are composed of a plurality of pixels, and each pixel is composed of three color (RGB) points, and a color image is expressed by the strength of these colors. Therefore, the specific data 31a and the background data 31b include pixel data of a plurality of pixels constituting the images P1 and P2, and each pixel data includes color data of three colors. Each color data is composed of a predetermined number of bits (for example, 8 bits).

画像合成装置30は、図6に示す被合成画像P1と背景画像P2とを合成して合成画像P3を生成する、即ち、背景データ31bと特定データ31aとを合成して合成画像データを生成する。詳しくは、画像合成装置30は、特定データ31aを構成する各画素について、その画素の色が特定の色(背景色)と一致する場合には背景データ31bを構成し当該画素と同じ位置の画素を合成データとし、それらが一致しない場合にはその画素(特定データ31aの画素)を合成データとする。   The image synthesizing device 30 synthesizes the synthesized image P1 and the background image P2 shown in FIG. 6 to generate a synthesized image P3, that is, synthesizes the background data 31b and the specific data 31a to generate synthesized image data. . Specifically, for each pixel constituting the specific data 31a, the image composition device 30 constitutes the background data 31b when the color of the pixel matches a specific color (background color), and the pixel at the same position as the pixel. Is the combined data, and if they do not match, the pixel (the pixel of the specific data 31a) is set as the combined data.

画像合成部33は特定データ31aと背景データ31bとを合成して合成データを生成するものであり、制御部32は、画像メモリ31に対する画像データの読み出し、画像合成部33における画像データの合成を制御する。   The image composition unit 33 synthesizes the specific data 31a and the background data 31b to generate composite data, and the control unit 32 reads the image data from the image memory 31 and combines the image data in the image composition unit 33. Control.

図1に示すように、制御部32は、アドレスレジスタ41、制御回路(信号生成回路)42、カウンタ43,44を備えている。
アドレスレジスタ41は、各画像データの読み出し開始アドレスを記憶している。例えば、アドレスレジスタ41は、画像メモリ31に記憶された特定データ31aの読み出しを開始する開始アドレスST1と、画像メモリ31に記憶された背景データ31bの読み出しを開始する開始アドレスST2とを記憶している。
As shown in FIG. 1, the control unit 32 includes an address register 41, a control circuit (signal generation circuit) 42, and counters 43 and 44.
The address register 41 stores a read start address of each image data. For example, the address register 41 stores a start address ST1 for starting reading of the specific data 31a stored in the image memory 31 and a start address ST2 for starting reading of the background data 31b stored in the image memory 31. Yes.

アドレスレジスタ41は、画像メモリ31から次に読み出すデータの先頭アドレスを記憶している。また、アドレスレジスタ41は、画像メモリ31から次に読み出す背景データ31bのアドレスを記憶している。   The address register 41 stores a head address of data to be read next from the image memory 31. The address register 41 stores an address of background data 31b to be read next from the image memory 31.

第1カウンタ43は、例えばアップカウンタであり、画像メモリ31に記憶された特定データ31aを順次読み出すために用いられる。第1カウンタ43は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。また、第1カウンタ43は、そのカウント値が画像メモリ31から1回に読み出される特定データ31aのデータ量(例えば16画素)に対応するカウントアップ値と一致するとカウントアップ信号を制御回路42に出力する。   The first counter 43 is, for example, an up counter, and is used for sequentially reading the specific data 31 a stored in the image memory 31. The first counter 43 starts counting up in response to a command signal from the control circuit 42 and outputs the count value to the control circuit 42. Further, the first counter 43 outputs a count-up signal to the control circuit 42 when the count value matches the count-up value corresponding to the data amount (for example, 16 pixels) of the specific data 31a read out from the image memory 31 at a time. To do.

第2カウンタ44は、例えばアップカウンタであり、画像メモリ31に記憶された背景データ31bを順次読み出すために用いられる。第2カウンタ44は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。また、第2カウンタ44は、そのカウント値が画像メモリ31から1回に読み出される背景データ31bのデータ量(例えば16画素)に対応するカウントアップ値と一致するとカウントアップ信号を制御回路42に出力する。   The second counter 44 is, for example, an up counter, and is used to sequentially read the background data 31b stored in the image memory 31. The second counter 44 starts counting up in response to the command signal from the control circuit 42 and outputs the count value to the control circuit 42. The second counter 44 outputs a count-up signal to the control circuit 42 when the count value matches the count-up value corresponding to the data amount (for example, 16 pixels) of the background data 31b read out from the image memory 31 at a time. To do.

第1カウンタ43は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。制御回路42は、カウント値をアドレスレジスタ41の開始アドレスST1又は先頭アドレスAD1に加算し、その加算結果をその時々の読み出しアドレスADD1として画像メモリ31に出力する。画像メモリ31は、その読み出しアドレスADD1に応答し、該アドレスADD1の画像データを出力する。   The first counter 43 starts counting up in response to a command signal from the control circuit 42 and outputs the count value to the control circuit 42. The control circuit 42 adds the count value to the start address ST1 or the head address AD1 of the address register 41, and outputs the addition result to the image memory 31 as the read address ADD1 at that time. In response to the read address ADD1, the image memory 31 outputs the image data of the address ADD1.

第2カウンタ44は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。制御回路42は、カウント値をアドレスレジスタ41の開始アドレスST1又は先頭アドレスAD1に加算し、その加算結果をその時々の読み出しアドレスADD1として画像メモリ31に出力する。画像メモリ31は、その読み出しアドレスADD2に応答し、該アドレスADD2の画像データを出力する。   The second counter 44 starts counting up in response to the command signal from the control circuit 42 and outputs the count value to the control circuit 42. The control circuit 42 adds the count value to the start address ST1 or the head address AD1 of the address register 41, and outputs the addition result to the image memory 31 as the read address ADD1 at that time. In response to the read address ADD2, the image memory 31 outputs the image data of the address ADD2.

制御回路42は、第1カウンタ43からのカウントアップ信号に基づいて比較指令信号CCOMPを出力する。また、制御回路42は、第2カウンタ44のカウントアップ信号に基づいて出力指令信号COUTを出力する。   The control circuit 42 outputs a comparison command signal CCOMP based on the count up signal from the first counter 43. Further, the control circuit 42 outputs an output command signal COUT based on the count up signal of the second counter 44.

画像合成部33は、ゲート回路51、バッファ52、ターゲットレジスタ53、比較回路54を備えている。
バッファ52は、所定数の画素の画像データを記憶可能なメモリである。このバッファ52の容量は、従来例に示す第1及び第2バッファ12,13の容量と実質的に同じ値であり、本実施形態では、16個の画素の画像データを記憶可能な容量を持つ。
The image composition unit 33 includes a gate circuit 51, a buffer 52, a target register 53, and a comparison circuit 54.
The buffer 52 is a memory capable of storing image data of a predetermined number of pixels. The capacity of the buffer 52 is substantially the same as the capacity of the first and second buffers 12 and 13 shown in the conventional example. In this embodiment, the capacity of the image data of 16 pixels can be stored. .

ゲート回路51は、画像メモリ31とバッファ52との間に接続され、後述するイネーブル信号ENに応答して画像メモリ31からバッファ52への画像データの転送を画素毎に許可又は禁止する。   The gate circuit 51 is connected between the image memory 31 and the buffer 52, and permits or prohibits transfer of image data from the image memory 31 to the buffer 52 for each pixel in response to an enable signal EN described later.

ゲート回路51は、バッファ52の記憶容量に対応する数のサブ回路から構成されている。
図3は、ゲート回路51の構成例を示すブロック図であり、1画素分のサブ回路を示す。尚、このサブ回路をゲート回路51aとして説明する。
The gate circuit 51 includes a number of sub-circuits corresponding to the storage capacity of the buffer 52.
FIG. 3 is a block diagram showing a configuration example of the gate circuit 51, and shows a sub-circuit for one pixel. This sub-circuit will be described as a gate circuit 51a.

ゲート回路51aは、レジスタ61とアンド回路62とを備えている。レジスタ61は1ビットの記憶容量を持ち、イネーブル信号ENを記憶する。本実施形態では、イネーブル信号ENはバッファ52に記憶される画素の数と等しいビット数からなる信号であり、ゲート回路51aは、自身に対応するビット位置の情報を記憶する。尚、このビット位置の情報を単にイネーブル信号ENとして説明する。   The gate circuit 51 a includes a register 61 and an AND circuit 62. The register 61 has a storage capacity of 1 bit and stores an enable signal EN. In the present embodiment, the enable signal EN is a signal having a number of bits equal to the number of pixels stored in the buffer 52, and the gate circuit 51a stores information on the bit position corresponding to itself. This bit position information will be described simply as an enable signal EN.

例えば、レジスタ61は、イネーブル信号ENが「1」(Hレベル)の場合には値「1」を記憶し、イネーブル信号ENが「0」(Lレベル)の場合には値「0」を記憶する。そして、レジスタ61は、その記憶した値に対応するレベルを持つ信号を出力する。即ち、レジスタ61は、値「1」を記憶している場合にはHレベルの信号を、値「0」を記憶している場合にはLレベルの信号を出力する。   For example, the register 61 stores a value “1” when the enable signal EN is “1” (H level), and stores a value “0” when the enable signal EN is “0” (L level). To do. Then, the register 61 outputs a signal having a level corresponding to the stored value. That is, the register 61 outputs an H level signal when the value “1” is stored, and outputs an L level signal when the value “0” is stored.

アンド回路62には、画像メモリ31から読み出された1画素分の画像データ(特定データ31a又は背景データ31b)と、ゲート回路51aの出力信号が入力される。アンド回路62は、レジスタ61の出力信号がHレベルの場合には入力信号と実質的に同じレベルを有する信号を出力する、即ち入力される画像データと実質的に同じ画像データを出力し、レジスタ61の出力信号がLレベルの場合には画像データを出力しない。   The AND circuit 62 receives image data (specific data 31a or background data 31b) for one pixel read from the image memory 31 and an output signal of the gate circuit 51a. The AND circuit 62 outputs a signal having substantially the same level as the input signal when the output signal of the register 61 is at the H level, that is, outputs image data substantially the same as the input image data. When the output signal 61 is at L level, no image data is output.

図1に示すように、レジスタ61には、制御回路42からセット信号SETが供給される。レジスタ61は、そのセット信号SETに応答して「1」を記憶する。即ち、ゲート回路51aは、レジスタ61がセット信号SETにより「1」を記憶することによって入力される画像データと実質的に同じ画像データを出力する。   As shown in FIG. 1, the register 61 is supplied with a set signal SET from the control circuit 42. The register 61 stores “1” in response to the set signal SET. That is, the gate circuit 51a outputs image data that is substantially the same as the image data that is input when the register 61 stores "1" by the set signal SET.

即ち、イネーブル信号EN又はセット信号SETにより「1」を記憶したレジスタ61を含むゲート回路51aは、画像メモリ31からの信号を通過し、イネーブル信号ENにより「0」を記憶したレジスタ61を含むゲート回路51aは、画像メモリ31からの信号を通過しない。   That is, the gate circuit 51a including the register 61 storing “1” by the enable signal EN or the set signal SET passes the signal from the image memory 31 and includes the register 61 storing “0” by the enable signal EN. The circuit 51a does not pass the signal from the image memory 31.

制御回路42は、特定データ31aを画像メモリ31から読み出す時にセット信号SETをレジスタ61に供給する。従って、ゲート回路51aは、画像メモリ31から読み出された所定数の特定データ31aは、ゲート回路51aを通過し、バッファ52に記憶される。   The control circuit 42 supplies a set signal SET to the register 61 when reading the specific data 31 a from the image memory 31. Therefore, the gate circuit 51 a stores a predetermined number of specific data 31 a read from the image memory 31 through the gate circuit 51 a and is stored in the buffer 52.

図1に示すように、ターゲットレジスタ53には、特定データ31aの背景色を示すターゲット値Tg-R,Tg-G,Tg-Bが記憶されている。ターゲット値は、特定データのターゲット値のビット数は、画像メモリ31に記憶された画像データを構成する画素のビット数と同じ数に設定されている。   As shown in FIG. 1, the target register 53 stores target values Tg-R, Tg-G, and Tg-B indicating the background color of the specific data 31a. As for the target value, the number of bits of the target value of the specific data is set to the same number as the number of bits of the pixels constituting the image data stored in the image memory 31.

図2に示すように、画像データ(例えば特定データ31a)は、複数の画素データ71から構成され、各画素データ71は赤色(R)と緑色(G)と青色(B)の3つの色データ72から構成されている。尚、赤色の色データをRデータ、緑色の色データをGデータ、青色の色データをBデータとして説明する。即ち、1つの画素の画像データはRデータとGデータとBデータとから構成されている。各色の色データはそれぞれ所定数のビット(例えば8ビット)にて構成されている。ターゲットレジスタ53は、その各色に対応して設けられ、各色のターゲット値は特定データ31aの背景色に応じて設定されている。例えば、背景色が青色の場合、赤色の他ターゲット値Tg-Rは「0」、緑色のターゲット値Tg-Gは「0」、青色のターゲット値Tg-Bは「255」に設定される。   As shown in FIG. 2, the image data (for example, specific data 31a) is composed of a plurality of pixel data 71, and each pixel data 71 includes three color data of red (R), green (G), and blue (B). 72. In the following description, red color data is R data, green color data is G data, and blue color data is B data. That is, the image data of one pixel is composed of R data, G data, and B data. Each color data is composed of a predetermined number of bits (for example, 8 bits). The target register 53 is provided corresponding to each color, and the target value of each color is set according to the background color of the specific data 31a. For example, when the background color is blue, the red target value Tg-R is set to “0”, the green target value Tg-G is set to “0”, and the blue target value Tg-B is set to “255”.

また、図1に示すように、ターゲットレジスタ53には、許容値th-R,th-G,th-Bが記憶されている。この許容値は、後述する比較回路54における比較判定において、一致判定に幅を持たせるためのものである。例えば、特定データの背景色が青色の場合、各色のターゲット値Tg-R,Tg-G,Tg-Bは(R:0,G:0,B:255)である。しかし、用意された背景の色(特定の色)が上記ターゲット値Tg-R,Tg-G,Tg-Bと完全に一致することは極めて少ない。これは、用意された背景の色が完全な青色と異なる場合や、光線の具合によって色データ72の値が完全な青色と異なるからである。従って、各色のターゲット値に幅を持たせ、該幅内に入る画像データを背景と判断することで、背景色の若干異なる画像データであっても合成を可能にしている。例えば、各色の許容値が(r:10,g:10,b:10)の場合、比較回路54は、Rデータが0〜10、Gデータが0〜10、Bデータが245〜255の画像データについてターゲット値と一致していると判断する。   As shown in FIG. 1, the target register 53 stores allowable values th-R, th-G, and th-B. This allowable value is used to give a wide range to the coincidence determination in the comparison determination in the comparison circuit 54 described later. For example, when the background color of the specific data is blue, the target values Tg-R, Tg-G, and Tg-B of each color are (R: 0, G: 0, B: 255). However, it is extremely rare that the prepared background color (specific color) completely matches the target values Tg-R, Tg-G, and Tg-B. This is because the prepared background color is different from perfect blue, or because the value of the color data 72 is different from perfect blue depending on the condition of light rays. Therefore, the target value of each color is given a width, and image data that falls within the width is determined as the background, so that even image data with slightly different background colors can be combined. For example, when the permissible value of each color is (r: 10, g: 10, b: 10), the comparison circuit 54 has an image in which R data is 0 to 10, G data is 0 to 10, and B data is 245 to 255. Judge that the data matches the target value.

図1に示すように、比較回路54は、制御回路42からの比較指令信号CCOMPに応答し、バッファ52に格納された各画素の画像データを構成する各色データと、レジスタ53から読み出したターゲット値Tg-R,Tg-G,Tg-Bとを比較し、色データがターゲット値Tg-R,Tg-G,Tg-Bとを比較し、その比較結果に応じたビット配列を有するイネーブル信号ENを生成する。本実施形態では、比較回路54は、色データとターゲット値とが一致する(詳しくは、色データの値がターゲット値を中心とする許容値の範囲に色データの値が含まれる)場合に当該色データの位置に対応するビットを「1」にセットし、一致しない場合にはそれを「0」にセットする。例えば、比較回路54は、1個目の画素の画像データとターゲット値とが一致する場合、イネーブル信号ENの第1ビットを「1」にセットする。   As shown in FIG. 1, the comparison circuit 54 responds to the comparison command signal CCOMP from the control circuit 42, each color data constituting the image data of each pixel stored in the buffer 52, and the target value read from the register 53. Enable signal EN that compares Tg-R, Tg-G, and Tg-B, compares the color data with target values Tg-R, Tg-G, and Tg-B, and has a bit arrangement corresponding to the comparison result Is generated. In the present embodiment, the comparison circuit 54 determines that the color data and the target value match (specifically, the color data value is included in the allowable value range centered on the target value). The bit corresponding to the position of the color data is set to “1”, and if they do not match, it is set to “0”. For example, when the image data of the first pixel matches the target value, the comparison circuit 54 sets the first bit of the enable signal EN to “1”.

ターゲット値は特定データ31aの背景色に対応している。従って、比較回路54は、比較する画像データの色が背景色の場合にその画素に対応するビットを「1」にセットする。即ち、比較回路54は、バッファ52に格納された複数の画素の画像データが背景色の場合に、イネーブル信号ENの対応するビットを「1」にセットする。   The target value corresponds to the background color of the specific data 31a. Therefore, when the color of the image data to be compared is the background color, the comparison circuit 54 sets the bit corresponding to the pixel to “1”. That is, the comparison circuit 54 sets the corresponding bit of the enable signal EN to “1” when the image data of the plurality of pixels stored in the buffer 52 is the background color.

この比較回路54にて生成されたイネーブル信号ENはゲート回路51に入力され、該ゲート回路51は、イネーブル信号ENの各ビットの状態をレジスタ61(図3参照)に記憶する。そして、ゲート回路51は、「1」がセットされたレジスタ61を含むゲート回路51aに入力される画像データをバッファ52に出力する。イネーブル信号ENを構成する複数のビットのうち、「1」がセットされたビットに対応するバッファ52には背景色の画像データが格納されている。従って、背景色の画像データが記憶された領域は、イネーブル信号ENによって次に画像メモリ31から読み出された画像データが書き込まれる。即ち、背景色の画像データは、次に入力される画像データによって上書きされる。   The enable signal EN generated by the comparison circuit 54 is input to the gate circuit 51, and the gate circuit 51 stores the state of each bit of the enable signal EN in the register 61 (see FIG. 3). Then, the gate circuit 51 outputs the image data input to the gate circuit 51 a including the register 61 in which “1” is set to the buffer 52. Background color image data is stored in the buffer 52 corresponding to the bit in which “1” is set among the plurality of bits constituting the enable signal EN. Therefore, the image data read out from the image memory 31 next by the enable signal EN is written in the area where the background color image data is stored. That is, the background color image data is overwritten by the next input image data.

一方、ゲート回路51は、「0」がセットされたレジスタ61を含むゲート回路51aに入力される画像データを出力しない。イネーブル信号ENを構成する複数のビットのうち、「0」がセットされたビットに対応するバッファ52には背景色以外の色の画像データ、即ち被写体の画像データが格納されている。従って、被写体の画像データが記憶された領域は、イネーブル信号ENによって次に画像メモリ31から読み出された画像データが書き込まれない。   On the other hand, the gate circuit 51 does not output the image data input to the gate circuit 51a including the register 61 in which “0” is set. Among the plurality of bits constituting the enable signal EN, the buffer 52 corresponding to the bit set to “0” stores image data of a color other than the background color, that is, image data of the subject. Therefore, the image data read from the image memory 31 next by the enable signal EN is not written in the area in which the image data of the subject is stored.

即ち、画像合成部33は、バッファ52に格納された複数の画素の画像データが背景色の画像データか否かを判断し、背景色の画像データの場合に次の画像データをその背景色の画像データに上書きするようにした。従って、バッファ52にて特定データ31aと背景データ31bとを合成して合成画像データを生成するようにした。このため、バッファ52は、画像メモリ31から読み出す1回分の画像データを格納すればよく、その分、画像合成装置30、又はこれを含む半導体集積回路装置の面積を小さくすることができる。   That is, the image composition unit 33 determines whether or not the image data of the plurality of pixels stored in the buffer 52 is background color image data, and if the image data is background color, the next image data is the background color image data. The image data was overwritten. Accordingly, the specific data 31a and the background data 31b are combined in the buffer 52 to generate combined image data. Therefore, the buffer 52 only needs to store one-time image data read from the image memory 31, and the area of the image synthesis device 30 or the semiconductor integrated circuit device including the image synthesis device 30 can be reduced accordingly.

図4は上記のように構成された画像合成装置30において実行される画像合成処理のフローチャートであり、図5はデータの流れを示す概略図である。
先ず、画像合成装置30は、画像メモリ31から所定数(例えば16画素)の特定データ31a(画1)を取り出して(ステップ81)バッファ52に格納する(ステップ82)。次に、画像合成装置30は、バッファ52に格納した特定データ31aとターゲット値とを比較し(ステップ83)、それらが一致する場合には当該ビットの書き込みを許可(イネーブル信号ENの該当するビットに「1」をセット)する(ステップ84)。一方、画像合成装置30は、特定データ31aとターゲット値とが一致しない場合には当該ビットの書き込みを禁止(イネーブル信号ENの該当するビットに「0」をセット)する(ステップ85)。
FIG. 4 is a flowchart of an image composition process executed in the image composition apparatus 30 configured as described above, and FIG. 5 is a schematic diagram showing a data flow.
First, the image composition device 30 takes out a predetermined number (for example, 16 pixels) of specific data 31a (image 1) from the image memory 31 (step 81) and stores it in the buffer 52 (step 82). Next, the image composition device 30 compares the specific data 31a stored in the buffer 52 with the target value (step 83), and if they match, the writing of the bit is permitted (corresponding bit of the enable signal EN) Is set to "1") (step 84). On the other hand, when the specific data 31a and the target value do not match, the image composition device 30 prohibits writing of the bit (sets the corresponding bit of the enable signal EN to “0”) (step 85).

そして、画像合成装置30は、バッファ52内の全ての画素についてターゲット値との比較を終了したか否かを判断し(ステップ86)、終了していない場合にはステップ82へ移行し、終了している場合には次のステップ87へ移行する。即ち、画像合成装置30は、ステップ82〜85の処理を繰り返し実行し、バッファ52内の全ての画素についてターゲット値と一致しているか否かを判断する。尚、実際には、比較回路54は複数のデータを比較する動作を並列的に実行するように構成されており、1回の比較動作により所定数(16画素)の特定データ(Rデータ,Gデータ,Bデータ)とターゲット値Tg-R,Tg-G,Tg-Bとが一致しているか否かを判断する。尚、この判断において、上記したように、画像合成装置30は、画像データの値がターゲット値Tg-R,Tg-G,Tg-Bに許容値th-R,th-G,th-Bを考慮した値と一致するか否かを判断する。   Then, the image composition device 30 determines whether or not the comparison with the target value has been completed for all the pixels in the buffer 52 (step 86), and if not completed, proceeds to step 82 and ends. If yes, the process proceeds to the next step 87. That is, the image composition device 30 repeatedly executes the processing of steps 82 to 85 to determine whether or not all the pixels in the buffer 52 match the target value. Actually, the comparison circuit 54 is configured to execute an operation of comparing a plurality of data in parallel, and a predetermined number (16 pixels) of specific data (R data, G) is performed by one comparison operation. (Data, B data) and the target values Tg-R, Tg-G, Tg-B are determined to match. In this determination, as described above, the image synthesizing device 30 sets the values of the image data to the target values Tg-R, Tg-G, Tg-B with the allowable values th-R, th-G, th-B. It is judged whether or not it matches the considered value.

次に、画像合成装置30は、画像メモリ31から所定数(例えば16画素)の背景データ31b(画2)を取り出し(ステップ87)、イネーブル信号ENによって許可されたビットに対応する背景データ31bをバッファ52に書き込む(ステップ88)。そして、画像合成装置30は、バッファ52内の画像データを例えば図示しない表示装置に出力する(ステップ89)。この時、バッファ52には、特定データ31aと背景データ31bとが部分的に格納されている。従って、表示装置には、特定データ31aと背景データ31bとを合成した合成画像データが出力される。   Next, the image composition device 30 takes out a predetermined number (for example, 16 pixels) of background data 31b (image 2) from the image memory 31 (step 87), and obtains background data 31b corresponding to the bits permitted by the enable signal EN. Write to the buffer 52 (step 88). Then, the image composition device 30 outputs the image data in the buffer 52 to, for example, a display device (not shown) (step 89). At this time, the specific data 31a and the background data 31b are partially stored in the buffer 52. Therefore, composite image data obtained by combining the specific data 31a and the background data 31b is output to the display device.

次に、画像合成装置30は、画像メモリ31内の全ての特定データ31aについて処理を終了したか否かを判断し(ステップ90)、終了していない場合にはステップ81へ移行し、終了している場合には一連の処理を終了する。即ち、画像合成装置30は、ステップ81〜90の処理を繰り返し実行し、特定データ31aと背景データ31bとを合成する。   Next, the image synthesizer 30 determines whether or not the processing has been completed for all the specific data 31a in the image memory 31 (step 90), and if not, proceeds to step 81 and ends. If so, the series of processing ends. That is, the image composition device 30 repeatedly executes the processing of steps 81 to 90 to synthesize the specific data 31a and the background data 31b.

以上記述したように、本実施の形態によれば、以下の効果を奏する。
(1)比較回路54は、バッファ52に記憶された特定データと特定の色を判断するためのターゲット値Tg-R,Tg-G,Tg-Bとを比較し、その比較結果に応じたイネーブル信号ENに基づきバッファ52に背景データを書き込む経路上に設けられたゲート回路51における背景データの通過・非通過を制御するようにした。従って、バッファ52に記憶された特定データの特定の色背景データが上書きされて合成画像データが生成される。そして、1つのバッファ52にて特定データと背景データとが合成されるため、装置サイズの縮小を図ることができる。
As described above, according to the present embodiment, the following effects can be obtained.
(1) The comparison circuit 54 compares the specific data stored in the buffer 52 with the target values Tg-R, Tg-G, and Tg-B for determining a specific color, and enables according to the comparison result. Based on the signal EN, the passage / non-passage of the background data in the gate circuit 51 provided on the path for writing the background data to the buffer 52 is controlled. Therefore, the specific color background data of the specific data stored in the buffer 52 is overwritten to generate composite image data. Since the specific data and the background data are combined in one buffer 52, the apparatus size can be reduced.

(2)ゲート回路51は、特定データ及び背景データを画像メモリ31からバッファ52に書き込む経路上に設けられ、制御回路42は、特定データの読み出し時には該特定データがゲート回路51を通過し、背景データの読み出し時には比較回路54の比較結果に応じてバッファ52に書き込む画素の通過・非通過を制御するようにした。従って、バッファ52に記憶された特定データの画素毎に対応して背景データの通過・非通過が制御されるため、特定の色の画素に対して背景データを容易に上書きして合成画像データを生成することができる。   (2) The gate circuit 51 is provided on a path for writing specific data and background data from the image memory 31 to the buffer 52, and the control circuit 42 passes the specific data through the gate circuit 51 when reading the specific data. At the time of data reading, the passage / non-passing of pixels to be written to the buffer 52 is controlled according to the comparison result of the comparison circuit 54. Accordingly, since the passage / non-passage of the background data is controlled corresponding to each pixel of the specific data stored in the buffer 52, the background data is easily overwritten on the pixel of the specific color, and the composite image data is saved. Can be generated.

(3)ターゲットレジスタ53にターゲット値Tg-R,Tg-G,Tg-Bと所定の範囲を示す許容値とが記憶され、比較回路54は、特定データの値がターゲット値Tg-R,Tg-G,Tg-Bを含む許容値th-R,th-G,th-Bの範囲内か否かを判断し、該特定データがターゲット値と一致するか否かを判断するようにした。従って、誤差を許容して特定の色を確実に判断し、特定データと背景データを合成することができる。   (3) The target value Tg-R, Tg-G, Tg-B and an allowable value indicating a predetermined range are stored in the target register 53, and the comparison circuit 54 determines that the value of the specific data is the target value Tg-R, Tg. It is determined whether or not the value is within the range of allowable values th-R, th-G, and th-B including -G and Tg-B, and whether or not the specific data matches the target value. Therefore, it is possible to reliably determine a specific color while allowing an error, and to combine the specific data and the background data.

尚、上記実施の形態は、以下の態様で実施してもよい。
・上記実施形態において、制御部32の構成・動作を適宜変更しても良い。例えば、制御回路42は、所定数の画素の画像データの読み出しを終了した際に、次に読み出す画像データのアドレスをアドレスレジスタ41に格納するようにしてもよい。また、第1及び第2カウンタ43,44を特定データ31aと背景データ31bをそれぞれ読み出すために用いたが、第1カウンタ43を特定データ31a及び背景データ31bを読み出すアドレスを生成するために使用し、第2カウンタ44を読み出し回数をカウントするカウンタとして用いても良い。
In addition, you may implement the said embodiment in the following aspects.
In the above embodiment, the configuration / operation of the control unit 32 may be changed as appropriate. For example, the control circuit 42 may store the address of the image data to be read next in the address register 41 when reading of the image data of a predetermined number of pixels is completed. The first and second counters 43 and 44 are used to read the specific data 31a and the background data 31b, respectively. However, the first counter 43 is used to generate an address for reading the specific data 31a and the background data 31b. The second counter 44 may be used as a counter for counting the number of readings.

・上記実施形態において、図5に破線で示すように、特定データ31aと背景データ31bを合成した合成画像データ、つまりバッファ52から出力されるデータを画像メモリ31に格納する構成としてもよい。   In the above embodiment, as indicated by a broken line in FIG. 5, composite image data obtained by combining the specific data 31a and the background data 31b, that is, data output from the buffer 52 may be stored in the image memory 31.

・上記実施形態では、特定データ31a及び背景データ31bは、1つの画素データ71を構成する色データ72(赤色(R)と緑色(G)と青色(B)の3つの色データ)が連続的に画像メモリ31に格納されていたが、図7に示すように、色データ毎に格納されていてもよい。この場合、制御部32は、各ブロックから所定数(例えば16個)の色データをそれぞれ読み出すよう画像メモリ31に出力するアドレス信号を生成する。   In the above embodiment, the specific data 31a and the background data 31b are continuous color data 72 (three color data of red (R), green (G), and blue (B)) constituting one pixel data 71. However, it may be stored for each color data as shown in FIG. In this case, the control unit 32 generates an address signal to be output to the image memory 31 so as to read a predetermined number (for example, 16) of color data from each block.

・上記実施形態では、ゲート回路51aに含まれるレジスタ61の情報をセット(「1」)して特定データ31aがゲート回路51aを通過するようにしたが、それを他の構成により実施しても良い。   In the above embodiment, the information of the register 61 included in the gate circuit 51a is set (“1”) so that the specific data 31a passes through the gate circuit 51a. good.

例えば、図8(a)に示すゲート回路91を備える構成とする。このゲート回路91は、イネーブル信号ENを記憶するレジスタ92と、そのレジスタ92の出力信号と選択信号SELが入力されるオア回路93と、そのオア回路93の出力信号と画像メモリ31から読み出された画像データが入力されるアンド回路94とを備える。制御部32は、特定データ31aがゲート回路91を通過し、背景データ31bの通過・非通過がレジスタ92の状態によって制御されるように選択信号SELを生成する。例えば、特定データ31aを読み出す場合にHレベルの選択信号SELを出力し、背景データ31bを読み出す場合にLレベルの選択信号SELを出力する。このように構成すれば、レジスタ92の情報をセットする必要がなく、特定データ31aを通過させ、背景データ31bをレジスタ92(イネーブル信号EN)により通過・非通過させるよう制御することを容易に行なうことができる。   For example, the gate circuit 91 shown in FIG. The gate circuit 91 is read from the register 92 for storing the enable signal EN, the OR circuit 93 to which the output signal of the register 92 and the selection signal SEL are input, the output signal of the OR circuit 93 and the image memory 31. And an AND circuit 94 to which the image data is input. The control unit 32 generates the selection signal SEL so that the specific data 31 a passes through the gate circuit 91 and the passage / non-passage of the background data 31 b is controlled by the state of the register 92. For example, the H level selection signal SEL is output when the specific data 31a is read, and the L level selection signal SEL is output when the background data 31b is read. With this configuration, it is not necessary to set the information in the register 92, and it is easy to control the specific data 31a to pass and the background data 31b to pass / non-pass through the register 92 (enable signal EN). be able to.

また、図8(b)に示すように、スイッチ95を備え、そのスイッチ95を上記と同様の選択信号SELにより画像メモリ31から読み出された特定データ31aがゲート回路51を介することなくバッファ52に入力され、背景データ31bがゲート回路51を介してバッファ52に入力されるように接続する。この構成によれば、レジスタ92の情報をセットする必要がなく、特定データ31aをバッファ52に格納し、背景データ31bをレジスタ92(イネーブル信号EN)によりバッファ52に格納するよう制御することを容易に行なうことができる。   Also, as shown in FIG. 8B, a switch 95 is provided, and the specific data 31 a read from the image memory 31 by the selection signal SEL similar to the above is provided in the buffer 52 without going through the gate circuit 51. So that the background data 31b is input to the buffer 52 via the gate circuit 51. According to this configuration, it is not necessary to set the information in the register 92, and it is easy to control the specific data 31a to be stored in the buffer 52 and the background data 31b to be stored in the buffer 52 by the register 92 (enable signal EN). Can be done.

・上記実施形態では、ターゲット値Tg-R,Tg-G,Tg-Bと許容値th-R,th-G,th-Bとをターゲットレジスタ53に記憶したが、ターゲット値と許容値をそれぞれ異なるレジスタに記憶してもよい。   In the above embodiment, the target values Tg-R, Tg-G, Tg-B and the allowable values th-R, th-G, th-B are stored in the target register 53. It may be stored in a different register.

・上記実施形態では、画像合成装置30は画像メモリ31を備える構成としたが、画像合成装置と画像メモリとを別々の半導体装置として構成しても良い。即ち、制御部32と画像合成部33とを含む画像合成装置が形成された1つの半導体装置と、画像メモリ31が形成された半導体装置とを接続する。このように構成しても、上記各実施形態と同様の効果を得ることができる。   In the above embodiment, the image composition device 30 includes the image memory 31, but the image composition device and the image memory may be configured as separate semiconductor devices. That is, one semiconductor device in which an image composition device including the control unit 32 and the image composition unit 33 is formed is connected to a semiconductor device in which the image memory 31 is formed. Even if comprised in this way, the effect similar to said each embodiment can be acquired.

・上記実施形態において、図4に示す画像合成処理を適宜変更してもよい。例えば、図9に示すステップ101〜111を含む画像合成処理に変更しても良い。
この画像合成処理において、ステップ101〜106は図4に示すステップ81〜86と実質的に同じ処理である。
In the above embodiment, the image composition processing shown in FIG. 4 may be changed as appropriate. For example, you may change to the image composition process containing steps 101-111 shown in FIG.
In this image composition processing, steps 101 to 106 are substantially the same as steps 81 to 86 shown in FIG.

画像合成装置30は、ステップ106においてバッファ52内の全ての画素についてターゲット値との比較を終了したことを確認した後、ステップ107において、該当する複数の画素について全ての書き込みが不許可か否かを判断する。そして、画像合成装置30は、全ての画素の書き込みが不許可の場合にはステップ110へ移行する。即ち、画像合成装置30は、全ての画素の書き込みが不許可の場合にステップ108,109を実行しない。ステップ108〜111は図4に示すステップ87〜90と実質的に同じ処理であり、これらステップ108,109は、背景データを画像メモリ31から読み出し、該背景データをバッファ52に格納する処理である。全ての画素の書き込みが不許可の場合、ゲート回路51は背景データを通過させない。つまり、背景データの読み出しが無駄となる。このため、画像合成装置30は、全ての画素の書き込みが不許可(全ての画素がゲート回路51を非通過)の場合にステップ108,109をスキップしてステップ110を実行する、即ち背景データの読み出しを行なわないでバッファ52内の画像データをそのまま出力する。この構成により、全ての画素の書き込みが不許可の場合に背景データの読み出しを行なわないことで、その読み出しに要する時間分、全体的な処理時間を短縮することができる。   After confirming that all the pixels in the buffer 52 have been compared with the target value in step 106, the image composition apparatus 30 determines in step 107 whether or not all writing is prohibited for the corresponding pixels. Judging. Then, the image synthesizing device 30 proceeds to Step 110 when writing of all pixels is not permitted. That is, the image composition device 30 does not execute Steps 108 and 109 when writing of all pixels is not permitted. Steps 108 to 111 are substantially the same as steps 87 to 90 shown in FIG. 4. These steps 108 and 109 are processes for reading background data from the image memory 31 and storing the background data in the buffer 52. . If writing of all pixels is not permitted, the gate circuit 51 does not pass the background data. That is, reading of background data is useless. For this reason, the image synthesizing apparatus 30 skips steps 108 and 109 and executes step 110 when writing of all pixels is not permitted (all pixels do not pass through the gate circuit 51). Without reading, the image data in the buffer 52 is output as it is. With this configuration, when the writing of all pixels is not permitted, the background data is not read, so that the overall processing time can be shortened by the time required for the reading.

上記各実施の形態から把握できる技術的思想を以下に記載する。
(付記1)
特定の色を背景とする特定データに対して、その特定の色の背景に背景データを重ねて合成画像データを生成する画像合成装置において、
前記特定データを記憶するバッファと、
前記特定の色を判断するためのターゲット値と前記特定データとを比較する比較回路と、
前記特定データが記憶された前記バッファに前記背景データを書き込む経路上に設けられ、前記比較回路の比較結果に応じて前記背景データの通過・非通過を制御するゲート回路と、
を備えたことを特徴とする画像合成装置。
(付記2)
特定の色を背景とする特定データに対して、その特定の色の背景に背景データを重ねて合成画像データを生成する画像合成部と、前記画像合成部を制御する制御部とを備え、
前記画像合成部は、
前記特定データを記憶するバッファと、
前記特定の色を判断するためのターゲット値と前記特定データとを比較する比較回路と、
前記特定データが記憶された前記バッファに前記背景データを書き込む経路上に設けられ、前記比較回路の比較結果に応じて前記背景データの通過・非通過を制御するゲート回路と、
を備えたことを特徴とする画像合成装置。
(付記3)
特定の色を背景とする特定データに対して、その特定の色の背景に背景データを重ねて合成画像データを生成する画像合成部と、
前記特定データ及び前記背景データを記憶する画像メモリと、
前記画像メモリから前記特定データ及び前記背景データの読み出しを制御する制御部とを備え、
前記画像合成部は、
前記画像メモリから読み出された特定データを記憶するバッファと、
前記特定の色を判断するためのターゲット値と前記特定データとを比較する比較回路と、
前記画像メモリから読み出された前記背景データを特定データが記憶された前記バッファに書き込む経路上に設けられ、前記比較回路の比較結果に応じて前記背景データの通過・非通過を制御するゲート回路と、
を備えたことを特徴とする画像合成装置。
(付記4)
前記ゲート回路は、前記特定データ及び前記背景データを前記画像メモリから前記バッファに書き込む経路上に設けられ、
前記制御部は、前記特定データの読み出し時には該特定データが前記ゲート回路を通過し、前記背景データの読み出し時には前記比較回路の比較結果に応じて前記バッファに書き込む画素の通過・非通過を制御する、
ことを特徴とする付記3に記載の画像合成装置。
(付記5)
前記ターゲット値を記憶するレジスタと、
所定の範囲を示す許容値を記憶するレジスタとを備え、
前記比較回路は、前記特定データの値が前記ターゲット値を含む前記許容値の範囲内か否かを判断することを特徴とする付記1〜付記4のうちの何れか一つに記載の画像合成装置。
(付記6)
前記制御部は、前記比較回路の比較結果に基づいて、前記特定データに重ね書きする背景データの全てが前記ゲート回路を非通過の場合に該背景データの読み出しを行なわずに前記バッファに記憶された特定データを合成画像データとして出力するようにしたことを特徴とする付記付記1〜付記5のうちの何れか一つに記載の画像合成装置。
The technical ideas that can be grasped from the above embodiments are described below.
(Appendix 1)
In an image composition device that generates composite image data by superimposing background data on a background of a specific color for specific data having a specific color as a background,
A buffer for storing the specific data;
A comparison circuit for comparing the target value for determining the specific color with the specific data;
A gate circuit that is provided on a path for writing the background data to the buffer in which the specific data is stored, and that controls passage / non-passage of the background data according to a comparison result of the comparison circuit;
An image composition device comprising:
(Appendix 2)
An image composition unit that generates composite image data by superimposing background data on the background of the specific color for specific data having a specific color background, and a control unit that controls the image composition unit,
The image composition unit
A buffer for storing the specific data;
A comparison circuit for comparing the target value for determining the specific color with the specific data;
A gate circuit that is provided on a path for writing the background data to the buffer in which the specific data is stored, and that controls passage / non-passage of the background data according to a comparison result of the comparison circuit;
An image composition device comprising:
(Appendix 3)
An image composition unit that generates composite image data by superimposing background data on the background of the specific color with respect to specific data having a specific color as a background;
An image memory for storing the specific data and the background data;
A control unit for controlling reading of the specific data and the background data from the image memory,
The image composition unit
A buffer for storing specific data read from the image memory;
A comparison circuit for comparing the target value for determining the specific color with the specific data;
A gate circuit that is provided on a path for writing the background data read from the image memory to the buffer in which specific data is stored, and controls passage / non-passage of the background data according to a comparison result of the comparison circuit When,
An image composition device comprising:
(Appendix 4)
The gate circuit is provided on a path for writing the specific data and the background data from the image memory to the buffer,
The control unit controls passing / non-passing of pixels to be written to the buffer according to a comparison result of the comparison circuit according to a comparison result of the comparison circuit when reading the background data, while the specific data passes through the gate circuit when reading the specific data. ,
The image synthesizing device according to Supplementary Note 3, wherein
(Appendix 5)
A register for storing the target value;
A register for storing an allowable value indicating a predetermined range;
5. The image composition according to claim 1, wherein the comparison circuit determines whether the value of the specific data is within a range of the allowable value including the target value. apparatus.
(Appendix 6)
Based on the comparison result of the comparison circuit, the control unit stores all the background data to be overwritten on the specific data in the buffer without reading the background data when not passing through the gate circuit. The image synthesizing apparatus according to any one of supplementary notes 1 to 5, wherein the specific data is output as composite image data.

画像合成装置の概略ブロック図である。It is a schematic block diagram of an image composition apparatus. 画像データの並びを示す説明図である。It is explanatory drawing which shows the arrangement | sequence of image data. ゲート回路の一部回路図である。It is a partial circuit diagram of a gate circuit. 画像合成処理のフローチャートである。It is a flowchart of an image composition process. データの流れを示す概略図である。It is the schematic which shows the flow of data. 画像合成の説明図である。It is explanatory drawing of image composition. 別の画像データの並びを示す説明図である。It is explanatory drawing which shows the arrangement | sequence of another image data. (a)(b)は別の画像合成装置の一部ブロック図である。(A) and (b) are some block diagrams of another image composition apparatus. 別の画像合成処理のフローチャートである。It is a flowchart of another image composition process. 従来の画像合成処理のフローチャートである。It is a flowchart of the conventional image composition process. 従来のデータの流れを示す概略図である。It is the schematic which shows the flow of the conventional data.

符号の説明Explanation of symbols

30 画像合成装置
31 画像メモリ
31a 特定データ
31b 背景データ
32 制御部
33 画像合成部
51,51a ゲート回路
52 バッファ
53 レジスタ
54 比較回路
Tg-R,Tg-G,Tg-B ターゲット値
th-R,th-G,th-B 許容値
DESCRIPTION OF SYMBOLS 30 Image composition apparatus 31 Image memory 31a Specific data 31b Background data 32 Control part 33 Image composition part 51,51a Gate circuit 52 Buffer 53 Register 54 Comparison circuit
Tg-R, Tg-G, Tg-B Target value
th-R, th-G, th-B tolerance

Claims (5)

特定の色を背景とする特定データに対して、その特定の色の背景に背景データを重ねて合成画像データを生成する画像合成装置において、
前記特定データを記憶するバッファと、
前記特定の色を判断するためのターゲット値と前記特定データとを比較する比較回路と、
前記特定データが記憶された前記バッファに前記背景データを書き込む経路上に設けられ、前記比較回路の比較結果に応じて前記背景データの通過・非通過を制御するゲート回路と、
を備えたことを特徴とする画像合成装置。
In an image composition device that generates composite image data by superimposing background data on a background of a specific color for specific data having a specific color as a background,
A buffer for storing the specific data;
A comparison circuit for comparing the target value for determining the specific color with the specific data;
A gate circuit that is provided on a path for writing the background data to the buffer in which the specific data is stored, and that controls passage / non-passage of the background data according to a comparison result of the comparison circuit;
An image composition device comprising:
特定の色を背景とする特定データに対して、その特定の色の背景に背景データを重ねて合成画像データを生成する画像合成部と、前記画像合成部を制御する制御部とを備え、
前記画像合成部は、
前記特定データを記憶するバッファと、
前記特定の色を判断するためのターゲット値と前記特定データとを比較する比較回路と、
前記特定データが記憶された前記バッファに前記背景データを書き込む経路上に設けられ、前記比較回路の比較結果に応じて前記背景データの通過・非通過を制御するゲート回路と、
を備えたことを特徴とする画像合成装置。
An image composition unit that generates composite image data by superimposing background data on the background of the specific color for specific data having a specific color background, and a control unit that controls the image composition unit,
The image composition unit
A buffer for storing the specific data;
A comparison circuit for comparing the target value for determining the specific color with the specific data;
A gate circuit that is provided on a path for writing the background data to the buffer in which the specific data is stored, and that controls passage / non-passage of the background data according to a comparison result of the comparison circuit;
An image composition device comprising:
特定の色を背景とする特定データに対して、その特定の色の背景に背景データを重ねて合成画像データを生成する画像合成部と、
前記特定データ及び前記背景データを記憶する画像メモリと、
前記画像メモリから前記特定データ及び前記背景データの読み出しを制御する制御部とを備え、
前記画像合成部は、
前記画像メモリから読み出された特定データを記憶するバッファと、
前記特定の色を判断するためのターゲット値と前記特定データとを比較する比較回路と、
前記画像メモリから読み出された前記背景データを特定データが記憶された前記バッファに書き込む経路上に設けられ、前記比較回路の比較結果に応じて前記背景データの通過・非通過を制御するゲート回路と、
を備えたことを特徴とする画像合成装置。
An image composition unit that generates composite image data by superimposing background data on the background of the specific color with respect to specific data having a specific color as a background;
An image memory for storing the specific data and the background data;
A control unit for controlling reading of the specific data and the background data from the image memory,
The image composition unit
A buffer for storing specific data read from the image memory;
A comparison circuit for comparing the target value for determining the specific color with the specific data;
A gate circuit that is provided on a path for writing the background data read from the image memory to the buffer in which specific data is stored, and controls passage / non-passage of the background data according to a comparison result of the comparison circuit When,
An image composition device comprising:
前記ゲート回路は、前記特定データ及び前記背景データを前記画像メモリから前記バッファに書き込む経路上に設けられ、
前記制御部は、前記特定データの読み出し時には該特定データが前記ゲート回路を通過し、前記背景データの読み出し時には前記比較回路の比較結果に応じて前記バッファに書き込む画素の通過・非通過を制御する、
ことを特徴とする請求項3に記載の画像合成装置。
The gate circuit is provided on a path for writing the specific data and the background data from the image memory to the buffer,
The control unit controls passing / non-passing of pixels to be written to the buffer according to a comparison result of the comparison circuit according to a comparison result of the comparison circuit when reading the background data, while the specific data passes through the gate circuit when reading the specific data. ,
The image synthesizing device according to claim 3.
前記ターゲット値を記憶するレジスタと、
所定の範囲を示す許容値を記憶するレジスタとを備え、
前記比較回路は、前記特定データの値が前記ターゲット値を含む前記許容値の範囲内か否かを判断することを特徴とする請求項1〜請求項4のうちの何れか一項に記載の画像合成装置。
A register for storing the target value;
A register for storing an allowable value indicating a predetermined range;
5. The comparison circuit according to claim 1, wherein the comparison circuit determines whether the value of the specific data is within a range of the allowable value including the target value. 6. Image composition device.
JP2004163513A 2004-06-01 2004-06-01 Image compositing device Withdrawn JP2005346279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004163513A JP2005346279A (en) 2004-06-01 2004-06-01 Image compositing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004163513A JP2005346279A (en) 2004-06-01 2004-06-01 Image compositing device

Publications (1)

Publication Number Publication Date
JP2005346279A true JP2005346279A (en) 2005-12-15

Family

ID=35498611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004163513A Withdrawn JP2005346279A (en) 2004-06-01 2004-06-01 Image compositing device

Country Status (1)

Country Link
JP (1) JP2005346279A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009098376A (en) * 2007-10-16 2009-05-07 Toyota Motor Corp Image generating device
JP2009124614A (en) * 2007-11-17 2009-06-04 Ricoh Co Ltd Image processing apparatus and image forming apparatus with the same, and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009098376A (en) * 2007-10-16 2009-05-07 Toyota Motor Corp Image generating device
JP2009124614A (en) * 2007-11-17 2009-06-04 Ricoh Co Ltd Image processing apparatus and image forming apparatus with the same, and image processing method

Similar Documents

Publication Publication Date Title
TWI700633B (en) Image signal processor and devices including the same
US20080165290A1 (en) Digtal photo frame with background color editing function
JPS6145369A (en) Digital image frame processor
JP5679763B2 (en) Semiconductor integrated circuit and all-around video system
US20090295981A1 (en) Image sensing apparatus and correction method
JP2007170834A (en) Navigation apparatus and image display method for the navigation apparatus
JP2005346279A (en) Image compositing device
KR20170049191A (en) Image processing apparatus and Image processing method
JP2004234280A (en) Memory device
JP6041630B2 (en) Image processing device
US8176290B2 (en) Memory controller
US7515311B2 (en) Image synthesis apparatus and image synthesis method
JP2002140226A (en) Bit stream processor
JP2006211402A (en) Camera apparatus and image processing method
JP2008258929A (en) Caption display area determining device and caption display program
JP2009163285A (en) Output port, microcomputer and data output method
JP2005099620A (en) Projector, write and read method of its display parameter, and program
JP2018005389A (en) Image deformation circuit, image processing apparatus, and image deformation method
JPWO2014045500A1 (en) LSI and LSI manufacturing method
JP2006155637A (en) Apparatus for processing signal
WO2023122692A1 (en) Real-time multi-source video pipeline
JPS62113193A (en) Memory circuit
JP5890044B2 (en) vehicle
JP2006235152A (en) Image superimposing device
JP4576963B2 (en) Address calculation for DMA transfer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070807