JP2005346279A - Image compositing device - Google Patents
Image compositing device Download PDFInfo
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Studio Circuits (AREA)
Abstract
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
図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
上記の処理手順は、図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
そして、画像合成装置は、ステップ25からステップ28の処理を第1及び第2バッファ12,13に記憶したデータの数だけ繰り返して第1及び第2バッファ12,13の画像データを合成する。更に、画像合成装置は、ステップ21からステップ28の処理を特定データ11a及び背景データ11bの全てのデータについて繰り返し実行し、特定データ11aと背景データ11bとを合成する。
ところで、近年の半導体装置は、歩留りの向上やコスト低減のためにサイズの縮小が求められ、上記の画像合成装置(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
本発明は上記問題点を解決するためになされたものであって、その目的は、サイズの縮小が可能な画像合成装置を提供することにある。 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
請求項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
The
画像メモリ31には複数(図1では2つ)の画像データ31a,31bが格納されている。第1の画像データ31a(図では画1と記す)は、特定の色(key color )を背景にして撮影した被写体(例えば図6に示すように人)の画像(被合成画像)P1のデータであり、このデータを以下、特定データ31aという。第2の画像データ31b(図1では画2と記す)は、例えば図6に示すように風景を撮影した背景画像P2のデータであり、このデータを以下、背景データ31bという。
The
特定データ31a及び背景データ31bは複数の画素から構成され、各画素は3つの色(RGB)の点により構成され、それらの色の強弱によってカラーの画像が表現されている。従って、特定データ31a及び背景データ31bは、画像P1,P2を構成する複数の画素の画素データを含み、各画素データは3つの色の色データを含む。各色データは所定数のビット(例えば8ビット)にて構成されている。
The
画像合成装置30は、図6に示す被合成画像P1と背景画像P2とを合成して合成画像P3を生成する、即ち、背景データ31bと特定データ31aとを合成して合成画像データを生成する。詳しくは、画像合成装置30は、特定データ31aを構成する各画素について、その画素の色が特定の色(背景色)と一致する場合には背景データ31bを構成し当該画素と同じ位置の画素を合成データとし、それらが一致しない場合にはその画素(特定データ31aの画素)を合成データとする。
The image synthesizing
画像合成部33は特定データ31aと背景データ31bとを合成して合成データを生成するものであり、制御部32は、画像メモリ31に対する画像データの読み出し、画像合成部33における画像データの合成を制御する。
The
図1に示すように、制御部32は、アドレスレジスタ41、制御回路(信号生成回路)42、カウンタ43,44を備えている。
アドレスレジスタ41は、各画像データの読み出し開始アドレスを記憶している。例えば、アドレスレジスタ41は、画像メモリ31に記憶された特定データ31aの読み出しを開始する開始アドレスST1と、画像メモリ31に記憶された背景データ31bの読み出しを開始する開始アドレスST2とを記憶している。
As shown in FIG. 1, the
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
アドレスレジスタ41は、画像メモリ31から次に読み出すデータの先頭アドレスを記憶している。また、アドレスレジスタ41は、画像メモリ31から次に読み出す背景データ31bのアドレスを記憶している。
The address register 41 stores a head address of data to be read next from the
第1カウンタ43は、例えばアップカウンタであり、画像メモリ31に記憶された特定データ31aを順次読み出すために用いられる。第1カウンタ43は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。また、第1カウンタ43は、そのカウント値が画像メモリ31から1回に読み出される特定データ31aのデータ量(例えば16画素)に対応するカウントアップ値と一致するとカウントアップ信号を制御回路42に出力する。
The
第2カウンタ44は、例えばアップカウンタであり、画像メモリ31に記憶された背景データ31bを順次読み出すために用いられる。第2カウンタ44は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。また、第2カウンタ44は、そのカウント値が画像メモリ31から1回に読み出される背景データ31bのデータ量(例えば16画素)に対応するカウントアップ値と一致するとカウントアップ信号を制御回路42に出力する。
The
第1カウンタ43は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。制御回路42は、カウント値をアドレスレジスタ41の開始アドレスST1又は先頭アドレスAD1に加算し、その加算結果をその時々の読み出しアドレスADD1として画像メモリ31に出力する。画像メモリ31は、その読み出しアドレスADD1に応答し、該アドレスADD1の画像データを出力する。
The
第2カウンタ44は、制御回路42からの指令信号に応答してカウントアップを開始し、そのカウント値を制御回路42に出力する。制御回路42は、カウント値をアドレスレジスタ41の開始アドレスST1又は先頭アドレスAD1に加算し、その加算結果をその時々の読み出しアドレスADD1として画像メモリ31に出力する。画像メモリ31は、その読み出しアドレスADD2に応答し、該アドレスADD2の画像データを出力する。
The
制御回路42は、第1カウンタ43からのカウントアップ信号に基づいて比較指令信号CCOMPを出力する。また、制御回路42は、第2カウンタ44のカウントアップ信号に基づいて出力指令信号COUTを出力する。
The
画像合成部33は、ゲート回路51、バッファ52、ターゲットレジスタ53、比較回路54を備えている。
バッファ52は、所定数の画素の画像データを記憶可能なメモリである。このバッファ52の容量は、従来例に示す第1及び第2バッファ12,13の容量と実質的に同じ値であり、本実施形態では、16個の画素の画像データを記憶可能な容量を持つ。
The
The
ゲート回路51は、画像メモリ31とバッファ52との間に接続され、後述するイネーブル信号ENに応答して画像メモリ31からバッファ52への画像データの転送を画素毎に許可又は禁止する。
The
ゲート回路51は、バッファ52の記憶容量に対応する数のサブ回路から構成されている。
図3は、ゲート回路51の構成例を示すブロック図であり、1画素分のサブ回路を示す。尚、このサブ回路をゲート回路51aとして説明する。
The
FIG. 3 is a block diagram showing a configuration example of the
ゲート回路51aは、レジスタ61とアンド回路62とを備えている。レジスタ61は1ビットの記憶容量を持ち、イネーブル信号ENを記憶する。本実施形態では、イネーブル信号ENはバッファ52に記憶される画素の数と等しいビット数からなる信号であり、ゲート回路51aは、自身に対応するビット位置の情報を記憶する。尚、このビット位置の情報を単にイネーブル信号ENとして説明する。
The
例えば、レジスタ61は、イネーブル信号ENが「1」(Hレベル)の場合には値「1」を記憶し、イネーブル信号ENが「0」(Lレベル)の場合には値「0」を記憶する。そして、レジスタ61は、その記憶した値に対応するレベルを持つ信号を出力する。即ち、レジスタ61は、値「1」を記憶している場合にはHレベルの信号を、値「0」を記憶している場合にはLレベルの信号を出力する。
For example, the
アンド回路62には、画像メモリ31から読み出された1画素分の画像データ(特定データ31a又は背景データ31b)と、ゲート回路51aの出力信号が入力される。アンド回路62は、レジスタ61の出力信号がHレベルの場合には入力信号と実質的に同じレベルを有する信号を出力する、即ち入力される画像データと実質的に同じ画像データを出力し、レジスタ61の出力信号がLレベルの場合には画像データを出力しない。
The AND
図1に示すように、レジスタ61には、制御回路42からセット信号SETが供給される。レジスタ61は、そのセット信号SETに応答して「1」を記憶する。即ち、ゲート回路51aは、レジスタ61がセット信号SETにより「1」を記憶することによって入力される画像データと実質的に同じ画像データを出力する。
As shown in FIG. 1, the
即ち、イネーブル信号EN又はセット信号SETにより「1」を記憶したレジスタ61を含むゲート回路51aは、画像メモリ31からの信号を通過し、イネーブル信号ENにより「0」を記憶したレジスタ61を含むゲート回路51aは、画像メモリ31からの信号を通過しない。
That is, the
制御回路42は、特定データ31aを画像メモリ31から読み出す時にセット信号SETをレジスタ61に供給する。従って、ゲート回路51aは、画像メモリ31から読み出された所定数の特定データ31aは、ゲート回路51aを通過し、バッファ52に記憶される。
The
図1に示すように、ターゲットレジスタ53には、特定データ31aの背景色を示すターゲット値Tg-R,Tg-G,Tg-Bが記憶されている。ターゲット値は、特定データのターゲット値のビット数は、画像メモリ31に記憶された画像データを構成する画素のビット数と同じ数に設定されている。
As shown in FIG. 1, the
図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,
また、図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
図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
ターゲット値は特定データ31aの背景色に対応している。従って、比較回路54は、比較する画像データの色が背景色の場合にその画素に対応するビットを「1」にセットする。即ち、比較回路54は、バッファ52に格納された複数の画素の画像データが背景色の場合に、イネーブル信号ENの対応するビットを「1」にセットする。
The target value corresponds to the background color of the
この比較回路54にて生成されたイネーブル信号ENはゲート回路51に入力され、該ゲート回路51は、イネーブル信号ENの各ビットの状態をレジスタ61(図3参照)に記憶する。そして、ゲート回路51は、「1」がセットされたレジスタ61を含むゲート回路51aに入力される画像データをバッファ52に出力する。イネーブル信号ENを構成する複数のビットのうち、「1」がセットされたビットに対応するバッファ52には背景色の画像データが格納されている。従って、背景色の画像データが記憶された領域は、イネーブル信号ENによって次に画像メモリ31から読み出された画像データが書き込まれる。即ち、背景色の画像データは、次に入力される画像データによって上書きされる。
The enable signal EN generated by the
一方、ゲート回路51は、「0」がセットされたレジスタ61を含むゲート回路51aに入力される画像データを出力しない。イネーブル信号ENを構成する複数のビットのうち、「0」がセットされたビットに対応するバッファ52には背景色以外の色の画像データ、即ち被写体の画像データが格納されている。従って、被写体の画像データが記憶された領域は、イネーブル信号ENによって次に画像メモリ31から読み出された画像データが書き込まれない。
On the other hand, the
即ち、画像合成部33は、バッファ52に格納された複数の画素の画像データが背景色の画像データか否かを判断し、背景色の画像データの場合に次の画像データをその背景色の画像データに上書きするようにした。従って、バッファ52にて特定データ31aと背景データ31bとを合成して合成画像データを生成するようにした。このため、バッファ52は、画像メモリ31から読み出す1回分の画像データを格納すればよく、その分、画像合成装置30、又はこれを含む半導体集積回路装置の面積を小さくすることができる。
That is, the
図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
First, the
そして、画像合成装置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
次に、画像合成装置30は、画像メモリ31から所定数(例えば16画素)の背景データ31b(画2)を取り出し(ステップ87)、イネーブル信号ENによって許可されたビットに対応する背景データ31bをバッファ52に書き込む(ステップ88)。そして、画像合成装置30は、バッファ52内の画像データを例えば図示しない表示装置に出力する(ステップ89)。この時、バッファ52には、特定データ31aと背景データ31bとが部分的に格納されている。従って、表示装置には、特定データ31aと背景データ31bとを合成した合成画像データが出力される。
Next, the
次に、画像合成装置30は、画像メモリ31内の全ての特定データ31aについて処理を終了したか否かを判断し(ステップ90)、終了していない場合にはステップ81へ移行し、終了している場合には一連の処理を終了する。即ち、画像合成装置30は、ステップ81〜90の処理を繰り返し実行し、特定データ31aと背景データ31bとを合成する。
Next, the
以上記述したように、本実施の形態によれば、以下の効果を奏する。
(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
(2)ゲート回路51は、特定データ及び背景データを画像メモリ31からバッファ52に書き込む経路上に設けられ、制御回路42は、特定データの読み出し時には該特定データがゲート回路51を通過し、背景データの読み出し時には比較回路54の比較結果に応じてバッファ52に書き込む画素の通過・非通過を制御するようにした。従って、バッファ52に記憶された特定データの画素毎に対応して背景データの通過・非通過が制御されるため、特定の色の画素に対して背景データを容易に上書きして合成画像データを生成することができる。
(2) The
(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
尚、上記実施の形態は、以下の態様で実施してもよい。
・上記実施形態において、制御部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
・上記実施形態において、図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
・上記実施形態では、特定データ31a及び背景データ31bは、1つの画素データ71を構成する色データ72(赤色(R)と緑色(G)と青色(B)の3つの色データ)が連続的に画像メモリ31に格納されていたが、図7に示すように、色データ毎に格納されていてもよい。この場合、制御部32は、各ブロックから所定数(例えば16個)の色データをそれぞれ読み出すよう画像メモリ31に出力するアドレス信号を生成する。
In the above embodiment, the
・上記実施形態では、ゲート回路51aに含まれるレジスタ61の情報をセット(「1」)して特定データ31aがゲート回路51aを通過するようにしたが、それを他の構成により実施しても良い。
In the above embodiment, the information of the
例えば、図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
また、図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
・上記実施形態では、ターゲット値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
・上記実施形態では、画像合成装置30は画像メモリ31を備える構成としたが、画像合成装置と画像メモリとを別々の半導体装置として構成しても良い。即ち、制御部32と画像合成部33とを含む画像合成装置が形成された1つの半導体装置と、画像メモリ31が形成された半導体装置とを接続する。このように構成しても、上記各実施形態と同様の効果を得ることができる。
In the above embodiment, the
・上記実施形態において、図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
上記各実施の形態から把握できる技術的思想を以下に記載する。
(付記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
(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
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
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.
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)
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 |
-
2004
- 2004-06-01 JP JP2004163513A patent/JP2005346279A/en not_active Withdrawn
Cited By (2)
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 |