JP2005130238A - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
JP2005130238A
JP2005130238A JP2003364223A JP2003364223A JP2005130238A JP 2005130238 A JP2005130238 A JP 2005130238A JP 2003364223 A JP2003364223 A JP 2003364223A JP 2003364223 A JP2003364223 A JP 2003364223A JP 2005130238 A JP2005130238 A JP 2005130238A
Authority
JP
Japan
Prior art keywords
data
image data
pixel data
image
pixel
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
JP2003364223A
Other languages
Japanese (ja)
Inventor
Tei Hayashi
禎 林
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003364223A priority Critical patent/JP2005130238A/en
Publication of JP2005130238A publication Critical patent/JP2005130238A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor which prevents pixel data in the same color as key color data from turning into noise. <P>SOLUTION: The image processor is provided with; a comparison part 2 which activates a coincidence signal in the case of coincidence between front image data and key color data; a bit inversion processing part 3 which subjects pixel data to bit inversion operation to output it, when the coincidence signal is activated; a frame memory 5, wherein front image data and a rear image data are stored; a smearing-away processing part 4 which writes key color data in a prescribed part of front image data; and a chroma key processing part 14, which outputs pixel data, as it is, in when there is no match between pixel data in front image data and key color data and outputs corresponding pixel data in rear image data, when there is matching. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、外部から供給される第1及び第2の画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを出力するための画像処理装置に関する。   The present invention relates to an image processing apparatus for synthesizing two images represented by first and second image data supplied from the outside and outputting synthesized image data representing the synthesized image.

従来より、第1の入力画像データと第2の入力画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを出力するための画像処理装置が用いられている。このような従来の画像処理装置について、図16を参照しながら説明する。図16は、従来の画像処理装置31の概要を示す図である。この画像処理装置31は、第1の入力画像データとしての前面画像データの中の所定の色(キーカラー)と同一色の画素データを、第2の入力画像データとしての背面画像データの中の対応する座標の画素データで置き換えることにより、合成画像データを生成して出力するための装置である。   Conventionally, an image processing apparatus is used for synthesizing two images represented by first input image data and second input image data, and outputting synthesized image data representing the synthesized image. . Such a conventional image processing apparatus will be described with reference to FIG. FIG. 16 is a diagram showing an outline of a conventional image processing apparatus 31. The image processing device 31 converts pixel data having the same color as a predetermined color (key color) in the front image data as the first input image data into the back image data as the second input image data. It is an apparatus for generating and outputting composite image data by replacing with pixel data of corresponding coordinates.

図16に示すように、画像処理装置31は、塗りつぶし処理部32と、フレームメモリ33と、第1、第2色変換処理部36、39と、クロマキー処理部42とを具備する。第1色変換処理部36は、第1ルックアップテーブル格納部37と、第1変換処理部38とを具備し、第2色変換処理部39は、第2ルックアップテーブル格納部40と、第2変換処理部41とを具備する。   As illustrated in FIG. 16, the image processing apparatus 31 includes a fill processing unit 32, a frame memory 33, first and second color conversion processing units 36 and 39, and a chroma key processing unit 42. The first color conversion processing unit 36 includes a first lookup table storage unit 37 and a first conversion processing unit 38, and the second color conversion processing unit 39 includes a second lookup table storage unit 40, 2 conversion processing unit 41.

フレームメモリ33は、前面画像データを格納するための前面画像データ格納領域34と、背面画像データを格納するための背面画像データ格納領域35とを有している。
前面画像データ格納領域34内には、外部から供給される前面画像データが格納される。図17は、前面画像データ格納領域34に格納された前面画像データによって表される画像の一例を示す図である。図17に示すように、風景等の自然画像において、キーカラーと同一色の画素が存在する場合がある。
The frame memory 33 has a front image data storage area 34 for storing front image data and a back image data storage area 35 for storing back image data.
In the front image data storage area 34, front image data supplied from the outside is stored. FIG. 17 is a diagram illustrating an example of an image represented by the front image data stored in the front image data storage area 34. As shown in FIG. 17, in a natural image such as a landscape, there may be a pixel having the same color as the key color.

再び図16を参照すると、塗りつぶし処理部32には、前面画像データの中の一部の画素データをキーカラーを表すデータ(キーカラーデータ)で置き換える(キーカラーで塗りつぶす)ことを指示する指示データが外部から供給される。塗りつぶし処理部32は、この指示データに応じて、前面画像データ格納領域34内の前面画像データの中の一部の画素データをキーカラーデータで置き換える。図18は、一部の画素データがキーカラーデータで置き換えられた後の前面画像データによって表される画像を示す図である。   Referring to FIG. 16 again, the fill processing unit 32 instructs to replace part of the pixel data in the front image data with data representing the key color (key color data) (filling with the key color). Is supplied from the outside. The fill processing unit 32 replaces some pixel data in the front image data in the front image data storage area 34 with the key color data in accordance with the instruction data. FIG. 18 is a diagram illustrating an image represented by front image data after partial pixel data is replaced with key color data.

再び図16を参照すると、背面画像データ格納領域35内には、外部から供給される背面画像データが格納される。図19は、背面画像データ格納領域35に格納された背面画像データによって表される画像の一例を示す図である。   Referring to FIG. 16 again, the back image data supplied from the outside is stored in the back image data storage area 35. FIG. 19 is a diagram illustrating an example of an image represented by the back image data stored in the back image data storage area 35.

再び図16を参照すると、第1、第2ルックアップテーブル格納部37、40は、前面画像データ及び背面画像データに色変換を施すためのテーブルである第1、第2ルックアップテーブルをそれぞれ格納する。なお、第1、第2ルックアップテーブルは、入力値(画素データ)と出力値(画素データ)を対応づけたテーブルである。また、第1、第2ルックアップテーブルは、前面画像データ及び背面画像データ内のキーカラーと同一色の画素データの色を変化させない(同じ色(キーカラー)に変換する)ように作成されている。   Referring to FIG. 16 again, the first and second look-up table storage units 37 and 40 store first and second look-up tables that are tables for performing color conversion on the front image data and the back image data, respectively. To do. The first and second lookup tables are tables in which input values (pixel data) are associated with output values (pixel data). The first and second look-up tables are created so as not to change the color of the pixel data having the same color as the key color in the front image data and the rear image data (convert to the same color (key color)). Yes.

第1変換処理部38は、第1ルックアップテーブルを用いて前面画像データの中の画素データに色変換処理を順次施し、クロマキー処理部42に順次供給する。同様に、第2変換処理部41は、第2ルックアップテーブルを用いて背面画像データの中の画素データに色変換処理を順次施し、クロマキー処理部42に順次供給する。   The first conversion processing unit 38 sequentially performs color conversion processing on the pixel data in the front image data using the first look-up table, and sequentially supplies it to the chroma key processing unit 42. Similarly, the second conversion processing unit 41 sequentially performs color conversion processing on the pixel data in the back image data using the second look-up table, and sequentially supplies it to the chroma key processing unit 42.

クロマキー処理部42は、色変換処理が施された後の前面画像データ内の画素データをキーカラーデータと順次比較し、前面画像データ内の画素データがキーカラーデータと一致しない場合にはそのまま出力し、前面画像データ内の画素データがキーカラーデータと一致する場合には、キーカラーデータと一致する前面画像データ内の画素データの前面画像データ内における座標に相当する背面画像データ内における座標に位置する画素データを出力する。図20は、クロマキー処理部42から出力された出力画像データによって表される画像を示す図である。   The chroma key processing unit 42 sequentially compares the pixel data in the front image data after the color conversion processing with the key color data, and outputs the data as it is when the pixel data in the front image data does not match the key color data. If the pixel data in the front image data matches the key color data, the coordinates in the back image data corresponding to the coordinates in the front image data of the pixel data in the front image data that matches the key color data are set. The pixel data located is output. FIG. 20 is a diagram illustrating an image represented by output image data output from the chroma key processing unit 42.

このように、画像処理装置31においては、前面画像データ内にキーカラーデータと同一色の画素データが存在する場合(図17参照)、これらの画素データが背面画像データ内の対応する位置の画素データに置き換えられてしまい(図20参照)、ノイズとなってしまっていた。   As described above, in the image processing device 31, when pixel data having the same color as the key color data is present in the front image data (see FIG. 17), these pixel data are pixels at corresponding positions in the rear image data. It was replaced with data (see FIG. 20), resulting in noise.

ところで、画像を記憶する2組のフレームメモリAおよびBと、フレームメモリA,フレームメモリBに記憶した画像を読み出すための表示アドレスを発生する表示アドレス発生手段と、フレームメモリA,フレームメモリBに記憶した画像を表示するディスプレイと、外部からクロマキーを行う色を指定するクロマキー色指定手段と、入力画像とクロマキー色指定手段で指定した色とが一致しているか否かを比較する色比較手段と、色比較手段の比較結果が一致した場合はフレームメモリAから読み出した画像をディスプレイに表示し、一致しない場合はフレームメモリBから読み出した画像をディスプレイに表示する表示画像切り替え手段からなるクロマキー表示装置に、色比較手段に入力する画像色の中で外部から指定した特定色をクロマキー色に変換する画像色変換手段を具備し、画像色変換手段を用いて指定した複数色のクロマキー表示ができることを特徴とするクロマキー表示装置が知られている(例えば、特許文献1参照)。   By the way, two sets of frame memories A and B for storing images, display address generating means for generating display addresses for reading out images stored in the frame memories A and B, and frame memories A and B, A display for displaying the stored image, a chroma key color designating unit for designating a color for performing chroma key from the outside, and a color comparison unit for comparing whether or not the input image and the color designated by the chroma key color designating unit match. A chroma key display device comprising display image switching means for displaying the image read from the frame memory A on the display when the comparison results of the color comparison means match, and displaying the image read from the frame memory B on the display when they do not match. In addition, a specific color designated from the outside among the image colors input to the color comparison means is clicked. Comprising the image color converting means for converting the McKee color is known chromakey display device characterized by capable of chromakey display a plurality of colors specified by using the image color converting unit (e.g., see Patent Document 1).

しかしながら、特許文献1に掲載されたクロマキー表示装置は、複数色でのクロマキー表示を可能とするものであるが、前面画像データ中にキーカラーと同一色の画素データが存在する場合に、ノイズの発生を防止するものではない。   However, the chroma key display device disclosed in Patent Document 1 enables display of a chroma key in a plurality of colors. However, when pixel data having the same color as the key color is present in the front image data, noise is displayed. It does not prevent the occurrence.

特開平5−336537号公報JP-A-5-336537

そこで、上記の点に鑑み、本発明は、前面画像データ内にキーカラーデータと同一色の画素データが存在する場合にノイズが発生してしまうことを防止することができる画像処理装置を提供することを目的とする。   In view of the above, the present invention provides an image processing apparatus capable of preventing noise from occurring when pixel data having the same color as key color data is present in front image data. For the purpose.

以上の課題を解決するため、本発明の第1の観点に係る画像処理装置は、外部から供給される第1及び第2の画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを出力するための装置であって、第1の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致する場合に制御信号を活性化する第1の手段と、制御信号が活性化されているときに、第1の画像データ内の画素データに所定の演算を施して出力し、制御信号が活性化されていないときに、第1の画像データ内の画素データに所定の演算を施さずに出力する第2の手段と、第1及び第2の領域を有するメモリであって、第2の手段が出力する複数の画素データによって構成される第3の画像データを第1の領域に格納し、第2の画像データを第2の領域に格納するメモリと、外部からの指示に応じて、メモリの第1の領域の所定の部分に所定の色を表すデータを書き込む第3の手段と、第3の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致しない場合に、第3の画像データ内の画素データを合成画像データを構成する画素データとして出力し、一致する場合に、所定の色を表すデータと一致する第3の画像データ内の画素データの第3の画像データ内における座標に相当する第2の画像データ内における座標に位置する画素データを合成画像データを構成する画素データとして出力する第4の手段とを具備する。   In order to solve the above problems, an image processing apparatus according to a first aspect of the present invention combines two images represented by first and second image data supplied from the outside, and combines them. An apparatus for outputting composite image data representing an image, wherein a plurality of pixel data in the first image data are sequentially compared with data representing a predetermined color, and a control signal is activated when they match. 1 and when the control signal is activated, the pixel data in the first image data is subjected to a predetermined calculation and output. When the control signal is not activated, the first image is output. A second means for outputting pixel data in the data without performing a predetermined calculation, and a memory having first and second areas, and is constituted by a plurality of pixel data output by the second means Storing the third image data in the first area; A memory for storing the second image data in the second area; a third means for writing data representing a predetermined color in a predetermined part of the first area of the memory in response to an instruction from the outside; A plurality of pixel data in the image data are sequentially compared with data representing a predetermined color, and if they do not match, the pixel data in the third image data is output as the pixel data constituting the composite image data and matches In this case, the pixel data located at the coordinates in the second image data corresponding to the coordinates in the third image data of the pixel data in the third image data that matches the data representing the predetermined color is combined image data. And a fourth means for outputting as pixel data constituting the.

ここで、第1の画像データを構成する画素データが、R(赤)成分、G(緑)成分、及び、B(青)成分を含んでおり、所定の演算が、R成分、G成分、及び、B成分の内の最も階調数の多い成分のLSB(Least Significant Bit)又はB成分のLSBを反転する演算であることとしても良い。   Here, the pixel data constituting the first image data includes an R (red) component, a G (green) component, and a B (blue) component, and the predetermined calculation is performed using the R component, the G component, And it is good also as a calculation which inverts LSB (Least Significant Bit) of the component with the largest number of gradations among B components, or LSB of B component.

また、第1の画像データを構成する画素データが、Y(輝度)成分、及び、U(輝度と赤の差)/V(輝度と青の差)成分を含んでおり、所定の演算が、U/V成分のLSBを反転する演算であることとしても良い。   Further, the pixel data constituting the first image data includes a Y (luminance) component and a U (difference between luminance and red) / V (difference between luminance and blue) components. It may be an operation that inverts the LSB of the U / V component.

さらに、第3の画像データに所定の第1の色変換処理を施すことにより第4の画像データを生成する第5の手段と、第2の画像データに所定の第2の色変換処理を施すことにより第5の画像データを生成する第6の手段とを更に具備し、第4の手段が、第4の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致しない場合に、第4の画像データ内の画素データを合成画像データを構成する画素データとして出力し、一致する場合に、所定の色を表すデータと一致する第4の画像データ内の画素データの第4の画像データ内における座標に相当する第5の画像データ内における座標に位置する画素データを合成画像データを構成する画素データとして出力することとしても良い。   Furthermore, a fifth means for generating fourth image data by applying a predetermined first color conversion process to the third image data, and a predetermined second color conversion process to the second image data And a sixth means for generating fifth image data, wherein the fourth means sequentially compares the plurality of pixel data in the fourth image data with data representing a predetermined color, and matches them. If not, the pixel data in the fourth image data is output as the pixel data constituting the composite image data. If they match, the pixel data in the fourth image data that matches the data representing the predetermined color is output. The pixel data located at the coordinates in the fifth image data corresponding to the coordinates in the fourth image data may be output as the pixel data constituting the composite image data.

また、本発明の第2の観点に係る画像処理装置は、外部から供給される第1及び第2の画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを出力するための装置であって、第1の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致する場合に第1の制御信号を活性化する第1の手段と、第1の制御信号が活性化されているときに、第1の画像データ内の画素データに所定の第1の演算を施して出力するとともに、第1の画像データ内の画素データに第1の演算を施したことを表すデータを演算実施情報データとして出力し、第1の制御信号が活性化されていないときに、第1の画像データ内の画素データに第1の演算を施さずに出力するとともに、第1の画像データ内の画素データに第1の演算を施していないことを表すデータを演算実施情報データとして出力する第2の手段と、第1〜第3の領域を有するメモリであって、第2の手段が出力する複数の画素データによって構成される第3の画像データを第1の領域に格納し、複数の演算実施情報データを第2の領域に格納し、第2の画像データを第3の領域に格納するメモリと、外部からの指示に応じて、メモリの第1の領域の所定の部分に所定の色を表すデータを書き込む第3の手段と、第3の画像データ内の複数の画素データ及び複数の演算実施情報データを順次読み出し、演算実施情報データが第1の演算を施していないことを表すときに、第3の画像データ内の画素データを第4の画像データを構成する画素データとして出力し、演算実施情報データが第1の演算を施したことを表すときに、第3の画像データ内の画素データに第2の演算を施して得られた画素データを第4の画像データを構成する画素データとして出力する第4の手段と、第3の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致する場合に第2の制御信号を活性化する第5の手段と、第2の制御信号が活性化されていないときに、第4の画像データ内の画素データを合成画像データを構成する画素データとして出力し、第2の制御信号が活性化されているときに、所定の色を表すデータと一致する第4の画像データ内の画素データの第4の画像データ内における座標に相当する第2の画像データ内における座標に位置する画素データを合成画像データを構成する画素データとして出力する第6の手段とを具備する。   In addition, the image processing apparatus according to the second aspect of the present invention combines two images represented by first and second image data supplied from the outside, and combines image data representing the combined image. A first means for sequentially comparing a plurality of pixel data in the first image data with data representing a predetermined color and activating the first control signal if they coincide with each other When the first control signal is activated, the pixel data in the first image data is subjected to a predetermined first calculation and is output, and the pixel data in the first image data is output to the pixel data in the first image data. Data indicating that the first calculation has been performed is output as calculation execution information data, and when the first control signal is not activated, the first calculation is not performed on the pixel data in the first image data. And the pixels in the first image data A second means for outputting data indicating that the first calculation is not performed on the data as calculation execution information data, and a memory having first to third areas, and the second means outputs Third image data composed of a plurality of pixel data is stored in the first area, a plurality of calculation execution information data is stored in the second area, and the second image data is stored in the third area. A memory, a third means for writing data representing a predetermined color in a predetermined portion of the first area of the memory in response to an instruction from the outside, a plurality of pixel data in the third image data, and a plurality of When the calculation execution information data is sequentially read and the calculation execution information data indicates that the first calculation is not performed, the pixel data in the third image data is output as the pixel data constituting the fourth image data. , Calculation execution information data When the first calculation is performed, the pixel data obtained by performing the second calculation on the pixel data in the third image data is output as the pixel data constituting the fourth image data. A fifth means for sequentially comparing a plurality of pixel data in the third image data with data representing a predetermined color and activating a second control signal if they match, a second control When the signal is not activated, the pixel data in the fourth image data is output as the pixel data constituting the composite image data, and when the second control signal is activated, the predetermined color is displayed. The pixel data located at the coordinates in the second image data corresponding to the coordinates in the fourth image data of the pixel data in the fourth image data that matches the data to be represented is output as the pixel data constituting the composite image data 6th hand to do A stage.

ここで、第1及び第2の演算が、画素データ内の所定のビットを反転する演算であることとしても良い。
また、第4の画像データに所定の第1の色変換処理を施すことにより第5の画像データを生成する第7の手段と、第2の画像データに所定の第2の色変換処理を施すことにより第6の画像データを生成する第8の手段とを更に具備し、第7の手段が、第2の制御信号が活性化されていないときに、第5の画像データ内の画素データを合成画像データを構成する画素データとして出力し、第2の制御信号が活性化されているときに、所定の色を表すデータと一致する第5の画像データ内の画素データの第5の画像データ内における座標に相当する第6の画像データ内における座標に位置する画素データを合成画像データを構成する画素データとして出力することとしても良い。
さらに、第2の制御信号を所定の時間だけ遅延させる第9の手段を更に具備することとしても良い。
Here, the first and second operations may be operations that invert predetermined bits in the pixel data.
In addition, a seventh means for generating fifth image data by applying a predetermined first color conversion process to the fourth image data, and a predetermined second color conversion process to the second image data And an eighth means for generating sixth image data, wherein the seventh means converts the pixel data in the fifth image data when the second control signal is not activated. The fifth image data of the pixel data in the fifth image data that is output as the pixel data constituting the composite image data and matches the data representing the predetermined color when the second control signal is activated The pixel data located at the coordinates in the sixth image data corresponding to the coordinates in the image may be output as the pixel data constituting the composite image data.
Further, ninth means for delaying the second control signal by a predetermined time may be further provided.

本発明によれば、前面画像データ内にキーカラーデータと同一色の画素データが存在する場合にノイズが発生してしまうことを防止することができる。   According to the present invention, it is possible to prevent noise from occurring when pixel data having the same color as the key color data exists in the front image data.

以下、図面を参照しながら、本発明の実施の形態について説明する。なお、同一の構成要素については、同一の参照番号で示している。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In addition, about the same component, it has shown with the same reference number.

図1は、本発明の第1の実施形態に係る画像処理装置の概要を示す図である。この画像処理装置1は、第1の入力画像データとしての前面画像データの中の所定の色(キーカラー)と同一色の画素データを、第2の入力画像データとしての背面画像データの中の対応する座標の画素データで置き換えることにより、合成画像データを生成して出力するための装置である。
なお、本実施形態においては、前面画像データ及び背面画像データ内の画素データ、並びに、キーカラーデータは、R(赤)成分5ビット、G(緑)成分6ビット、B(青)成分5ビットの計16ビット幅であるものとし、出力画像データ内の各画素データは、R(赤)成分8ビット、G(緑)成分8ビット、B(青)成分8ビットの計24ビット幅であるものとする。
FIG. 1 is a diagram showing an overview of an image processing apparatus according to the first embodiment of the present invention. The image processing apparatus 1 uses pixel data of the same color as a predetermined color (key color) in the front image data as the first input image data in the rear image data as the second input image data. It is an apparatus for generating and outputting composite image data by replacing with pixel data of corresponding coordinates.
In this embodiment, the pixel data in the front image data and the back image data, and the key color data are R (red) component 5 bits, G (green) component 6 bits, and B (blue) component 5 bits. Each pixel data in the output image data has a total width of 24 bits of 8 bits for R (red) component, 8 bits for G (green) component, and 8 bits for B (blue) component. Shall.

図1に示すように、この画像処理装置1は、比較部2と、ビット反転処理部3と、塗りつぶし処理部4と、フレームメモリ5と、第1、第2色変換処理部8、11と、クロマキー処理部14とを具備する。第1色変換処理部8は、第1ルックアップテーブル格納部9と、第1変換処理部10とを具備し、第2色変換処理部11は、第2ルックアップテーブル格納部12と、第2変換処理部13とを具備する。   As shown in FIG. 1, the image processing apparatus 1 includes a comparison unit 2, a bit inversion processing unit 3, a fill processing unit 4, a frame memory 5, and first and second color conversion processing units 8 and 11. And a chroma key processing unit 14. The first color conversion processing unit 8 includes a first lookup table storage unit 9 and a first conversion processing unit 10, and the second color conversion processing unit 11 includes a second lookup table storage unit 12, 2 conversion processing unit 13.

比較部2及びビット反転処理部3には、前面画像データを構成する画素データが外部から順次供給される。図2は、外部から供給される前面画像データによって表される画像の一例を示す図である。ここでは、図2に示すように、前面画像データによって表される画像において、キーカラーと同一色の画素が存在するものとする。
再び図1を参照すると、比較部2は、外部から順次供給される画素データとキーカラーを表すデータ(キーカラーデータ)とを比較し、画素データとキーカラーデータとが一致する場合には、一致信号を活性化してビット反転処理部3に供給する。
The comparison unit 2 and the bit inversion processing unit 3 are sequentially supplied with pixel data constituting the front image data from the outside. FIG. 2 is a diagram illustrating an example of an image represented by front image data supplied from the outside. Here, as shown in FIG. 2, it is assumed that pixels having the same color as the key color exist in the image represented by the front image data.
Referring to FIG. 1 again, the comparison unit 2 compares the pixel data sequentially supplied from the outside with the data representing the key color (key color data), and if the pixel data and the key color data match, The coincidence signal is activated and supplied to the bit inversion processing unit 3.

ビット反転処理部3は、一致信号が活性化されているとき、外部から供給されている画素データ内のG(緑)成分を表す6ビットの中のLSB(Least Significant Bit)を反転してフレームメモリ5内の前面画像データ格納領域6に格納する。一方、ビット反転処理部3は、一致信号が活性化されていないとき、外部から供給されている画素データをそのままフレームメモリ5内の前面画像データ格納領域6に格納する。図3は、キーカラーデータと一致する画素データ内のG(緑)成分を表す6ビットの中のLSBが反転された後の前面画像データによって表される画像を示す図である。なお、G(緑)成分を表す6ビットの中のLSBが反転された後の画素の色は、元の色(G(緑)成分を表す6ビットの中のLSBが反転される前の色)と異なることとなる。しかしながら、全16ビットの中のG(緑)成分を表す6ビットの中のLSBが反転されただけであり、色の変化は僅かである。   When the coincidence signal is activated, the bit inversion processing unit 3 inverts the LSB (Least Significant Bit) in the 6 bits representing the G (green) component in the pixel data supplied from the outside to generate a frame It is stored in the front image data storage area 6 in the memory 5. On the other hand, when the coincidence signal is not activated, the bit inversion processing unit 3 stores the pixel data supplied from the outside in the front image data storage area 6 in the frame memory 5 as it is. FIG. 3 is a diagram illustrating an image represented by front image data after LSB in 6 bits representing G (green) component in pixel data matching the key color data is inverted. The color of the pixel after the LSB in the 6 bits representing the G (green) component is inverted is the original color (the color before the LSB in the 6 bits representing the G (green) component is inverted). ) Will be different. However, the LSB in 6 bits representing the G (green) component in all 16 bits is only inverted and the color change is slight.

再び図1を参照すると、塗りつぶし処理部4には、前面画像データの中の一部の画素データをキーカラーデータで置き換える(キーカラーで塗りつぶす)ことを指示する指示データが外部から供給される。塗りつぶし処理部4は、この指示データに応じて、前面画像データ格納領域6内の前面画像データの中の一部の画素データをキーカラーデータで置き換える。図4は、一部の画素データがキーカラーデータで置き換えられた後の前面画像データによって表される画像を示す図である。   Referring to FIG. 1 again, the paint processing unit 4 is supplied with instruction data from the outside instructing to replace part of the pixel data in the front image data with the key color data (filling with the key color). The fill processing unit 4 replaces some pixel data in the front image data in the front image data storage area 6 with key color data in accordance with the instruction data. FIG. 4 is a diagram illustrating an image represented by front image data after partial pixel data is replaced with key color data.

再び図1を参照すると、フレームメモリ5は、前面画像データを格納するための前面画像データ格納領域6のほか、背面画像データを格納するための背面画像データ格納領域7をも有しており、この背面画像データ格納領域7には、背面画像データが外部から供給され、格納される。図5は、背面画像データ格納領域7に格納された背面画像データによって表される画像の一例を示す図である。   Referring to FIG. 1 again, the frame memory 5 has a back image data storage area 7 for storing the back image data in addition to the front image data storage area 6 for storing the front image data. In this rear image data storage area 7, rear image data is supplied from outside and stored. FIG. 5 is a diagram illustrating an example of an image represented by the back image data stored in the back image data storage area 7.

再び図1を参照すると、第1、第2ルックアップテーブル格納部9、12は、前面画像データ及び背面画像データの色をそれぞれ変換するためのテーブルである第1、第2ルックアップテーブルをそれぞれ格納する。なお、第1、第2ルックアップテーブルは、入力値(ここでは、16ビット幅のデータ)と出力値(ここでは、24ビット幅のデータ)とを対応づけたテーブルである。また、第1、第2ルックアップテーブルは、前面画像データ及び背面画像データ内のキーカラーと同一色の画素データの色を変化させないように作成されている。すなわち、第1、第2ルックアップテーブルにおいて、入力値がキーカラーデータ(16ビット幅)である場合、キーカラーデータを左ビットシフトしたデータ(24ビット幅)が出力値となるように作成されている。   Referring to FIG. 1 again, the first and second look-up table storage units 9 and 12 store the first and second look-up tables, which are tables for converting the colors of the front image data and the back image data, respectively. Store. The first and second look-up tables are tables in which input values (16-bit width data here) and output values (24-bit width data here) are associated with each other. The first and second look-up tables are created so as not to change the color of the pixel data having the same color as the key color in the front image data and the back image data. That is, in the first and second look-up tables, when the input value is key color data (16-bit width), the data obtained by shifting the key color data to the left bit (24-bit width) is created as the output value. ing.

第1変換処理部10は、第1ルックアップテーブルを用いて前面画像データの中の画素データに色変換処理を順次施し、クロマキー処理部14に順次供給する。図6は、色変換処理が施された後の前面画像データによって表される画像を示す図である。なお、G(緑)成分を表す6ビットの中のLSBが反転され、その後色変換処理を施された画素の色は、G(緑)成分を表す6ビットの中のLSBが反転されずそのまま色変換処理を施された場合における色と異なることとなる。しかしながら、全16ビットの中のG(緑)成分を表す6ビットの中のLSBが反転されたことによる色の変化は僅かであり、その後色変換処理を施されたことによる色の変化も、僅かである。
同様に、第2変換処理部13は、第2ルックアップテーブルを用いて背面画像データの中の画素データに色変換処理を順次施し、クロマキー処理部14に順次供給する。
The first conversion processing unit 10 sequentially performs color conversion processing on the pixel data in the front image data using the first look-up table, and sequentially supplies it to the chroma key processing unit 14. FIG. 6 is a diagram illustrating an image represented by the front image data after the color conversion process is performed. It should be noted that the LSB in the 6 bits representing the G (green) component is inverted, and the color of the pixel subjected to the color conversion processing thereafter is not inverted but the LSB in the 6 bits representing the G (green) component. This is different from the color when color conversion processing is performed. However, the color change due to the inversion of the LSB in 6 bits representing the G (green) component in all 16 bits is slight, and the color change due to the subsequent color conversion processing is also There are few.
Similarly, the second conversion processing unit 13 sequentially performs color conversion processing on the pixel data in the back image data using the second look-up table, and sequentially supplies it to the chroma key processing unit 14.

クロマキー処理部14は、色変換処理が施された後の前面画像データ内の画素データをキーカラーデータと順次比較し、画素データがキーカラーデータと一致しない場合にはそのまま外部に出力し、画素データがキーカラーデータと一致する場合には、キーカラーデータと一致する前面画像データ内の画素データの前面画像データ内における座標に相当する背面画像データ内における座標に位置する画素データを出力する。図7は、クロマキー処理部14から出力された出力画像データによって表される画像を示す図である。   The chroma key processing unit 14 sequentially compares the pixel data in the front image data after the color conversion processing with the key color data, and outputs the pixel data as it is when the pixel data does not match the key color data. If the data matches the key color data, the pixel data located at the coordinates in the back image data corresponding to the coordinates in the front image data of the pixel data in the front image data that matches the key color data is output. FIG. 7 is a diagram illustrating an image represented by the output image data output from the chroma key processing unit 14.

以上説明したように、画像処理装置1によれば、前面画像データの中にキーカラーと同一色の画素データが存在する場合に、そのような画素データが背面画像データの中の対応する位置の画素データと置き換えられることを防止し、ノイズの発生を抑止することができる。   As described above, according to the image processing apparatus 1, when pixel data of the same color as the key color is present in the front image data, such pixel data is at a corresponding position in the rear image data. It can be prevented from being replaced with pixel data, and noise can be suppressed.

なお、本実施形態においては、ビット反転処理部3が、キーカラーと同一色の画素データの中のG(緑)成分のLSBを反転することとしているが、R(赤)成分又はB(青)成分のLSBを反転することとしても良い。本実施形態においては、画素データ内のR(赤)成分が5ビット、G(緑)成分が6ビット、B(青)成分が5ビットであり、階調数が最も多いG(緑)成分のLSBを反転することで、画素の色の変化を少なく抑えることができる。
また、画素の輝度Yは、R(赤)、G(緑)、B(青)成分の値を用いて
Y=0.299R+0.587G+0.114B …(1)
で表すことができる。一般に、人間の目は、色の変化より輝度の変化に敏感であることが知られている。このことを考慮し、ビット反転処理部3が、輝度に対する影響が少ない((1)式参照)B(青)成分のLSBを反転することとしても良い。
In this embodiment, the bit inversion processing unit 3 inverts the LSB of the G (green) component in the pixel data of the same color as the key color, but the R (red) component or B (blue) ) The LSB of the component may be inverted. In the present embodiment, the R (red) component in the pixel data is 5 bits, the G (green) component is 6 bits, the B (blue) component is 5 bits, and the G (green) component having the largest number of gradations. By reversing the LSB, the change in pixel color can be suppressed to a minimum.
Further, the luminance Y of the pixel is calculated using the values of R (red), G (green), and B (blue) components. Y = 0.299R + 0.587G + 0.114B (1)
It can be expressed as In general, it is known that the human eye is more sensitive to changes in luminance than changes in color. In consideration of this, the bit inversion processing unit 3 may invert the LSB of the B (blue) component that has little influence on the luminance (see equation (1)).

また、本実施形態においては、前面画像データ及び背面画像データ内の画素データが、R(赤)成分5ビット、G(緑)成分6ビット、B(青)成分5ビットの計16ビット幅であることとしているが、R(赤)成分8ビット、G(緑)成分8ビット、B(青)成分8ビットの計24ビット幅であることとしても良い(24ビットフルカラー)。このとき、ビット反転処理部3が、輝度に対する影響が少ない((1)式参照)B(青)成分のLSBを反転することとしても良い。
同様に、前面画像データ及び背面画像データ内の画素データが、R(赤)成分nビット、G(緑)成分nビット、B(青)成分nビットの計3nビット幅である場合、ビット反転処理部3が、輝度に対する影響が少ない((1)式参照)B(青)成分のLSBを反転することとしても良い。
In this embodiment, the pixel data in the front image data and the back image data has a total 16-bit width of 5 bits for R (red) component, 6 bits for G (green) component, and 5 bits for B (blue) component. Although it is supposed to be, it may be a total of 24 bits wide (24-bit full color) of 8 bits for R (red) component, 8 bits for G (green) component and 8 bits for B (blue) component. At this time, the bit inversion processing unit 3 may invert the LSB of the B (blue) component that has little influence on the luminance (see equation (1)).
Similarly, when the pixel data in the front image data and the rear image data has a total 3n-bit width of R (red) component n bits, G (green) component n bits, and B (blue) component n bits, bit inversion is performed. The processing unit 3 may invert the LSB of the B (blue) component that has little influence on the luminance (see equation (1)).

また、本実施形態においては、前面画像データ及び背面画像データ内の画素データが、R(赤)成分5ビット、G(緑)成分6ビット、B(青)成分5ビットの計16ビット幅であることとしているが、Y(輝度)成分8ビット、U(輝度と赤の差)及びV(輝度と青の差)成分8ビットの計16ビット幅であることとしても良い。このとき、ビット反転処理部3が、U(輝度と赤の差)及びV(輝度と青の差)成分のLSBを反転することとしても良い。これは、人間の目が、色の変化より輝度の変化に敏感であることを考慮したものである。   In this embodiment, the pixel data in the front image data and the back image data has a total 16-bit width of 5 bits for R (red) component, 6 bits for G (green) component, and 5 bits for B (blue) component. Although it is supposed to be, it may be 16 bits wide in total, that is, Y (luminance) component 8 bits, U (difference between luminance and red) and V (difference between luminance and blue) components 8 bits. At this time, the bit inversion processing unit 3 may invert LSBs of U (difference between luminance and red) and V (difference between luminance and blue) components. This takes into account that the human eye is more sensitive to changes in brightness than changes in color.

次に、本発明の第2の実施形態について説明する。図8は、本発明の第2の実施形態に係る画像処理装置の概要を示す図である。この画像処理装置21は、第1の入力画像データとしての前面画像データの中のキーカラーと同一色の画素データを、第2の入力画像データとしての背面画像データの中の対応する位置の画素データで置き換えることにより、合成画像データを生成して出力するための装置である。
なお、本実施形態においては、前面画像データ及び背面画像データ内の画素データ、並びに、キーカラーデータは、R(赤)成分5ビット、G(緑)成分6ビット、B(青)成分5ビットの計16ビット幅であるものとし、出力画像データ内の各画素データは、R(赤)成分8ビット、G(緑)成分8ビット、B(青)成分8ビットの計24ビット幅であるものとする。
Next, a second embodiment of the present invention will be described. FIG. 8 is a diagram showing an overview of an image processing apparatus according to the second embodiment of the present invention. The image processing apparatus 21 uses pixel data of the same color as the key color in the front image data as the first input image data, and the pixel at the corresponding position in the back image data as the second input image data. It is an apparatus for generating and outputting composite image data by replacing with data.
In this embodiment, the pixel data in the front image data and the back image data, and the key color data are R (red) component 5 bits, G (green) component 6 bits, and B (blue) component 5 bits. Each pixel data in the output image data has a total width of 24 bits of 8 bits for R (red) component, 8 bits for G (green) component, and 8 bits for B (blue) component. Shall.

図8に示すように、この画像処理装置21は、比較部2、28と、ビット反転処理部22、27と、塗りつぶし処理部4と、フレームメモリ23と、第1、第2色変換処理部8、11と、遅延部29と、合成処理部30とを具備する。第1色変換処理部8は、第1ルックアップテーブル格納部9と、第1変換処理部10とを具備し、第2色変換処理部11は、第2ルックアップテーブル格納部12と、第2変換処理部13とを具備する。   As shown in FIG. 8, the image processing apparatus 21 includes comparison units 2 and 28, bit inversion processing units 22 and 27, a fill processing unit 4, a frame memory 23, and first and second color conversion processing units. 8, 11, a delay unit 29, and a synthesis processing unit 30. The first color conversion processing unit 8 includes a first lookup table storage unit 9 and a first conversion processing unit 10, and the second color conversion processing unit 11 includes a second lookup table storage unit 12, 2 conversion processing unit 13.

比較部2及びビット反転処理部22には、前面画像データを構成する画素データが外部から順次供給される。図9は、外部から供給される前面画像データによって表される画像の一例を示す図である。ここでは、図9に示すように、前面画像データによって表される画像において、キーカラーと同一色の画素が存在するものとする。
再び図8を参照すると、比較部2は、外部から順次供給される画素データとキーカラーを表すデータ(キーカラーデータ)とを比較し、画素データとキーカラーデータとが一致する場合には、一致信号を活性化してビット反転処理部22に供給する。
The comparison unit 2 and the bit inversion processing unit 22 are sequentially supplied with pixel data constituting the front image data from the outside. FIG. 9 is a diagram illustrating an example of an image represented by front image data supplied from the outside. Here, as shown in FIG. 9, it is assumed that pixels having the same color as the key color exist in the image represented by the front image data.
Referring to FIG. 8 again, the comparison unit 2 compares the pixel data sequentially supplied from the outside with the data representing the key color (key color data), and if the pixel data and the key color data match, The coincidence signal is activated and supplied to the bit inversion processing unit 22.

ビット反転処理部22は、一致信号が活性化されているとき、外部から供給されている画素データ内のG(緑)成分を表す6ビットの中のLSB(Least Significant Bit)を反転してフレームメモリ23内の前面画像データ格納領域24に格納するとともに、画素データ内のG(緑)成分を表す6ビットの中のLSBを反転したことを表す1ビット幅のデータ「1」をビット反転データとしてビット反転データ格納領域25に格納する。一方、ビット反転処理部22は、一致信号が活性化されていないとき、外部から供給されている画素データをそのままフレームメモリ23内の前面画像データ格納領域24に格納するとともに、画素データ内のG(緑)成分を表す6ビットの中のLSBを反転していないことを表す1ビット幅のデータ「0」をビット反転データとしてビット反転データ格納領域25に格納する。図10は、キーカラーデータと一致する画素データ内のG(緑)成分を表す6ビットの中のLSBが反転された後の前面画像データによって表される画像を示す図である。   When the coincidence signal is activated, the bit inversion processing unit 22 inverts the LSB (Least Significant Bit) in the 6 bits representing the G (green) component in the pixel data supplied from the outside to generate a frame Bit-inverted data is stored in the front image data storage area 24 in the memory 23 and 1-bit width data “1” indicating that the LSB in 6 bits representing the G (green) component in the pixel data is inverted. Is stored in the bit inversion data storage area 25. On the other hand, when the coincidence signal is not activated, the bit inversion processing unit 22 stores the pixel data supplied from the outside as it is in the front image data storage area 24 in the frame memory 23 and also stores the G data in the pixel data. Data “0” having a 1-bit width indicating that the LSB in the 6 bits representing the (green) component is not inverted is stored in the bit-inversion data storage area 25 as bit-inversion data. FIG. 10 is a diagram showing an image represented by the front image data after the LSB in 6 bits representing the G (green) component in the pixel data matching the key color data is inverted.

再び図8を参照すると、塗りつぶし処理部4には、前面画像データの中の一部の画素データをキーカラーデータで置き換える(キーカラーで塗りつぶす)ことを指示する指示データが外部から供給される。塗りつぶし処理部4は、この指示データに応じて、前面画像データ格納領域24内の前面画像データの中の一部の画素データをキーカラーデータで置き換える。図11は、一部の画素データがキーカラーデータで置き換えられた後の前面画像データによって表される画像を示す図である。   Referring to FIG. 8 again, the paint processing unit 4 is supplied with instruction data from the outside instructing to replace a part of the pixel data in the front image data with the key color data (filling with the key color). The fill processing unit 4 replaces some pixel data in the front image data in the front image data storage area 24 with the key color data in accordance with the instruction data. FIG. 11 is a diagram illustrating an image represented by front image data after partial pixel data is replaced with key color data.

再び図8を参照すると、フレームメモリ23は、前面画像データを格納するための前面画像データ格納領域24、前面画像データ中の画素データ内のG(緑)成分を表す6ビット中のLSBを反転したか否かを表すデータを格納するためのビット反転データ格納領域25のほか、背面画像データを格納するための背面画像データ格納領域26をも有しており、この背面画像データ格納領域26には、背面画像データが外部から供給され、格納される。図12は、背面画像データ格納領域26に格納された背面画像データによって表される画像の一例を示す図である。   Referring to FIG. 8 again, the frame memory 23 inverts the LSB in the 6-bit representing the G (green) component in the front image data storage area 24 for storing the front image data and the pixel data in the front image data. In addition to the bit-reversed data storage area 25 for storing data indicating whether or not it has been performed, it also has a back image data storage area 26 for storing back image data. The rear image data is supplied from the outside and stored. FIG. 12 is a diagram illustrating an example of an image represented by the back image data stored in the back image data storage area 26.

再び図8を参照すると、ビット反転処理部27は、ビット反転データ格納領域25に格納されているビット反転データ及び前面画像データ格納領域24に格納されている画素データを順次参照し、ビット反転データが「1」である場合には、画素データ内のG(緑)成分を表す6ビット中のLSBを反転して第1色変換処理部8に供給する。一方、ビット反転処理部27は、ビット反転データが「0」である場合には、画素データをそのまま第1色変換処理部8に供給する。図13は、ビット反転処理部27が第1色変換処理部8に順次供給する画素データで構成される画像データによって表される画像を示す図である。   Referring to FIG. 8 again, the bit inversion processing unit 27 sequentially refers to the bit inversion data stored in the bit inversion data storage area 25 and the pixel data stored in the front image data storage area 24, and the bit inversion data Is “1”, the LSB in 6 bits representing the G (green) component in the pixel data is inverted and supplied to the first color conversion processing unit 8. On the other hand, when the bit inversion data is “0”, the bit inversion processing unit 27 supplies the pixel data to the first color conversion processing unit 8 as it is. FIG. 13 is a diagram illustrating an image represented by image data including pixel data that the bit inversion processing unit 27 sequentially supplies to the first color conversion processing unit 8.

再び図8を参照すると、第1変換処理部10は、第1ルックアップテーブルを用いて前面画像データの中の画素データに色変換処理を順次施し、合成処理部30に順次供給する。図14は、色変換処理が施された後の前面画像データによって表される画像を示す図である。
再び図8を参照すると、同様に、第2変換処理部13は、第2ルックアップテーブルを用いて背面画像データの中の画素データに色変換処理を順次施し、合成処理部30に順次供給する。
Referring to FIG. 8 again, the first conversion processing unit 10 sequentially performs color conversion processing on the pixel data in the front image data using the first look-up table, and sequentially supplies it to the synthesis processing unit 30. FIG. 14 is a diagram illustrating an image represented by the front image data after the color conversion process is performed.
Referring again to FIG. 8, similarly, the second conversion processing unit 13 sequentially performs color conversion processing on the pixel data in the back image data using the second look-up table, and sequentially supplies it to the synthesis processing unit 30. .

比較部28は、前面画像データ格納領域24に格納されている前面画像データ(図11参照)内の画素データを順次読み出し、キーカラーデータと比較する。そして、画素データとキーカラーデータとが一致する場合には、一致信号を活性化して遅延部29に供給する。遅延部29は、一致信号を所定の時間(ここでは、第1、第2色変換処理部8、11の色変換処理に必要な時間)だけ遅延させて、合成処理部30に供給する。   The comparison unit 28 sequentially reads pixel data in the front image data (see FIG. 11) stored in the front image data storage area 24 and compares it with key color data. When the pixel data and the key color data match, the match signal is activated and supplied to the delay unit 29. The delay unit 29 delays the coincidence signal by a predetermined time (here, the time necessary for the color conversion processing of the first and second color conversion processing units 8 and 11) and supplies the delayed signal to the synthesis processing unit 30.

合成処理部30は、一致信号が活性化されていないとき、第1色変換処理部8から供給される画素データを外部に出力し、一致信号が活性化されているとき、第2色変換処理部11から供給される画素データを外部に出力する。図15は、合成処理部30から出力された出力画像データによって表される画像を示す図である。   The composition processing unit 30 outputs the pixel data supplied from the first color conversion processing unit 8 to the outside when the coincidence signal is not activated, and performs the second color conversion process when the coincidence signal is activated. The pixel data supplied from the unit 11 is output to the outside. FIG. 15 is a diagram illustrating an image represented by output image data output from the synthesis processing unit 30.

以上説明したように、画像処理装置21によれば、前面画像データの中にキーカラーと同一色の画素データが存在する場合に、そのような画素データが背面画像データの中の対応する位置の画素データと置き換えられることを防止し、ノイズの発生を抑止することができる。
また、先に説明した画像処理装置1においては、前面画像データの中にキーカラーと同一色の画素データが存在する場合に、そのような画素データのG(緑)成分のLSBが反転され、本来の色と異なってしまうこととなる。しかしながら、画像処理装置21によれば、ビット反転処理部22によって反転されたG(緑)成分のLSBが、ビット反転処理部27によって再度反転され元の値に戻るため、本来の色と異なってしまうことを防止することができる。
As described above, according to the image processing device 21, when pixel data having the same color as the key color is present in the front image data, such pixel data is at the corresponding position in the rear image data. It can be prevented from being replaced with pixel data, and noise can be suppressed.
Further, in the image processing apparatus 1 described above, when pixel data having the same color as the key color exists in the front image data, the LSB of the G (green) component of such pixel data is inverted, It will be different from the original color. However, according to the image processing device 21, the LSB of the G (green) component inverted by the bit inversion processing unit 22 is inverted again by the bit inversion processing unit 27 and returns to the original value. Can be prevented.

本発明は、第1の入力画像データと第2の入力画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを生成するための画像処理装置において利用可能である。さらに、本発明は、自然画の画像が第1、第2の入力画像データとして供給され、これらの入力画像データによって表される2つの画像を合成して、合成された画像を表示するビジュアルホン等において利用可能である。   The present invention can be used in an image processing apparatus for synthesizing two images represented by first input image data and second input image data and generating synthesized image data representing the synthesized image. is there. Furthermore, the present invention provides a visual phone that displays natural images as first and second input image data, combines two images represented by these input image data, and displays the combined image. Etc. are available.

本発明の第1の実施形態としての画像処理装置の概要を示す図。1 is a diagram showing an overview of an image processing apparatus as a first embodiment of the present invention. 画像処理装置1に供給される前面画像データによって表される画像の例。An example of an image represented by front image data supplied to the image processing apparatus 1. ビット反転処理部3が出力する画像データによって表される画像の例。An example of an image represented by image data output from the bit inversion processing unit 3. 塗りつぶし処理部4によって画素データが置き換えられた後の画像の例。An example of an image after pixel data is replaced by the paint processing unit 4. 画像処理装置1に供給される背面画像データによって表される画像の例。An example of an image represented by back image data supplied to the image processing apparatus 1. 第1色変換処理部8が出力する画像データによって表される画像の例。An example of an image represented by image data output from the first color conversion processing unit 8. クロマキー処理部14が出力する画像データによって表される画像の例。An example of an image represented by image data output from the chroma key processing unit 14. 本発明の第2の実施形態としての画像処理装置の概要を示す図。The figure which shows the outline | summary of the image processing apparatus as the 2nd Embodiment of this invention. 画像処理装置1に供給される前面画像データによって表される画像の例。An example of an image represented by front image data supplied to the image processing apparatus 1. ビット反転処理部22が出力する画像データによって表される画像の例。An example of an image represented by image data output from the bit inversion processing unit 22. 塗りつぶし処理部4によって画素データが置き換えられた後の画像の例。An example of an image after pixel data is replaced by the paint processing unit 4. 画像処理装置21に供給される背面画像データによって表される画像。An image represented by back image data supplied to the image processing device 21. 第1色変換処理部8が出力する画像データによって表される画像の例。An example of an image represented by image data output from the first color conversion processing unit 8. ビット反転処理部27が出力する画像データによって表される画像の例。An example of an image represented by image data output from the bit inversion processing unit 27. 合成処理部30が出力する画像データによって表される画像の例。An example of an image represented by image data output by the synthesis processing unit 30. 従来の画像処理装置の概要を示す図。The figure which shows the outline | summary of the conventional image processing apparatus. 画像処理装置31に供給される前面画像データによって表される画像。An image represented by front image data supplied to the image processing device 31. 塗りつぶし処理部32によって画素データが置き換えられた後の画像。An image after pixel data is replaced by the fill processing unit 32. 画像処理装置31に供給される背面画像データによって表される画像。An image represented by back image data supplied to the image processing device 31. クロマキー処理部42が出力する画像データによって表される画像の例。An example of an image represented by image data output from the chroma key processing unit.

符号の説明Explanation of symbols

1、21、31 画像処理装置、2、28 比較部、3、22、27 ビット反転処理部、4、32 塗りつぶし処理部、5、23、33 フレームメモリ、8、36 第1色変換処理部、9、37 第1ルックアップテーブル格納部、10、38 第1変換処理部、11、39 第2色変換処理部、12、40 第2ルックアップテーブル格納部、13、41 第2変換処理部、14、42 クロマキー処理部、29 遅延部、30 合成処理部   1, 21, 31 Image processing device, 2, 28 Comparison unit, 3, 22, 27 Bit inversion processing unit, 4, 32 Fill processing unit, 5, 23, 33 Frame memory, 8, 36 First color conversion processing unit, 9, 37 First lookup table storage unit, 10, 38 First conversion processing unit, 11, 39 Second color conversion processing unit, 12, 40 Second lookup table storage unit, 13, 41 Second conversion processing unit, 14, 42 Chroma key processing unit, 29 delay unit, 30 synthesis processing unit

Claims (8)

外部から供給される第1及び第2の画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを出力するための装置であって、
前記第1の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致する場合に制御信号を活性化する第1の手段と、
前記制御信号が活性化されているときに、前記第1の画像データ内の画素データに所定の演算を施して出力し、前記制御信号が活性化されていないときに、前記第1の画像データ内の画素データに前記所定の演算を施さずに出力する第2の手段と、
第1及び第2の領域を有するメモリであって、前記第2の手段が出力する複数の画素データによって構成される第3の画像データを前記第1の領域に格納し、前記第2の画像データを前記第2の領域に格納する前記メモリと、
外部からの指示に応じて、前記メモリの前記第1の領域の所定の部分に前記所定の色を表すデータを書き込む第3の手段と、
前記第3の画像データ内の複数の画素データを前記所定の色を表すデータと順次比較し、一致しない場合に、前記第3の画像データ内の画素データを前記合成画像データを構成する画素データとして出力し、一致する場合に、前記所定の色を表すデータと一致する前記第3の画像データ内の画素データの前記第3の画像データ内における座標に相当する前記第2の画像データ内における座標に位置する画素データを前記合成画像データを構成する画素データとして出力する第4の手段と、
を具備する画像処理装置。
An apparatus for synthesizing two images represented by first and second image data supplied from the outside and outputting synthesized image data representing the synthesized image,
A first means for sequentially comparing a plurality of pixel data in the first image data with data representing a predetermined color and activating a control signal if they match;
When the control signal is activated, the pixel data in the first image data is subjected to a predetermined calculation and output. When the control signal is not activated, the first image data Second means for outputting the pixel data without performing the predetermined calculation;
A memory having a first area and a second area, wherein third image data constituted by a plurality of pixel data output from the second means is stored in the first area, and the second image The memory for storing data in the second area;
Third means for writing data representing the predetermined color in a predetermined portion of the first area of the memory in response to an instruction from the outside;
A plurality of pixel data in the third image data are sequentially compared with data representing the predetermined color, and when they do not match, the pixel data in the third image data is converted into pixel data constituting the composite image data In the second image data corresponding to the coordinates in the third image data of the pixel data in the third image data that matches the data representing the predetermined color. A fourth means for outputting pixel data located at coordinates as pixel data constituting the composite image data;
An image processing apparatus comprising:
前記第1の画像データを構成する画素データが、R(赤)成分、G(緑)成分、及び、B(青)成分を含んでおり、前記所定の演算が、前記R成分、G成分、及び、B成分の内の最も階調数の多い成分のLSB(Least Significant Bit)又は前記B成分のLSBを反転する演算である、請求項1記載の画像処理装置。 Pixel data constituting the first image data includes an R (red) component, a G (green) component, and a B (blue) component, and the predetermined calculation includes the R component, the G component, The image processing apparatus according to claim 1, wherein the image processing apparatus is an operation that inverts an LSB (Least Significant Bit) of a component having the largest number of gradations of B components or an LSB of the B component. 前記第1の画像データを構成する画素データが、Y(輝度)成分、及び、U(輝度と赤の差)/V(輝度と青の差)成分を含んでおり、前記所定の演算が、前記U/V成分のLSBを反転する演算である、請求項1記載の画像処理装置。 The pixel data constituting the first image data includes a Y (luminance) component and a U (difference between luminance and red) / V (difference between luminance and blue) components, and the predetermined calculation is performed as follows: The image processing apparatus according to claim 1, wherein the image processing apparatus is an operation that inverts the LSB of the U / V component. 前記第3の画像データに所定の第1の色変換処理を施すことにより第4の画像データを生成する第5の手段と、前記第2の画像データに所定の第2の色変換処理を施すことにより第5の画像データを生成する第6の手段とを更に具備し、
前記第4の手段が、前記第4の画像データ内の複数の画素データを前記所定の色を表すデータと順次比較し、一致しない場合に、前記第4の画像データ内の画素データを前記合成画像データを構成する画素データとして出力し、一致する場合に、前記所定の色を表すデータと一致する前記第4の画像データ内の画素データの前記第4の画像データ内における座標に相当する前記第5の画像データ内における座標に位置する画素データを前記合成画像データを構成する画素データとして出力する、請求項1〜3のいずれか1項に記載の画像処理装置。
Fifth means for generating fourth image data by applying a predetermined first color conversion process to the third image data; and applying a predetermined second color conversion process to the second image data And a sixth means for generating fifth image data.
The fourth means sequentially compares a plurality of pixel data in the fourth image data with data representing the predetermined color, and if they do not match, the pixel data in the fourth image data is combined with the combined data. When the pixel data is output as pixel data constituting the image data and matches, the pixel data in the fourth image data that matches the data representing the predetermined color corresponds to the coordinates in the fourth image data. The image processing apparatus according to claim 1, wherein pixel data located at coordinates in the fifth image data is output as pixel data constituting the composite image data.
外部から供給される第1及び第2の画像データによって表される2つの画像を合成して、合成された画像を表す合成画像データを出力するための装置であって、
前記第1の画像データ内の複数の画素データを所定の色を表すデータと順次比較し、一致する場合に第1の制御信号を活性化する第1の手段と、
前記第1の制御信号が活性化されているときに、前記第1の画像データ内の画素データに所定の第1の演算を施して出力するとともに、前記第1の画像データ内の画素データに前記第1の演算を施したことを表すデータを演算実施情報データとして出力し、前記第1の制御信号が活性化されていないときに、前記第1の画像データ内の画素データに前記第1の演算を施さずに出力するとともに、前記第1の画像データ内の画素データに前記第1の演算を施していないことを表すデータを前記演算実施情報データとして出力する第2の手段と、
第1〜第3の領域を有するメモリであって、前記第2の手段が出力する複数の画素データによって構成される第3の画像データを前記第1の領域に格納し、前記複数の演算実施情報データを前記第2の領域に格納し、前記第2の画像データを前記第3の領域に格納する前記メモリと、
外部からの指示に応じて、前記メモリの前記第1の領域の所定の部分に前記所定の色を表すデータを書き込む第3の手段と、
前記第3の画像データ内の複数の画素データ及び前記複数の演算実施情報データを順次読み出し、前記演算実施情報データが前記第1の演算を施していないことを表すときに、前記第3の画像データ内の画素データを第4の画像データを構成する画素データとして出力し、前記演算実施情報データが前記第1の演算を施したことを表すときに、前記第3の画像データ内の画素データに第2の演算を施して得られた画素データを前記第4の画像データを構成する画素データとして出力する第4の手段と、
前記第3の画像データ内の複数の画素データを前記所定の色を表すデータと順次比較し、一致する場合に第2の制御信号を活性化する第5の手段と、
前記第2の制御信号が活性化されていないときに、前記第4の画像データ内の画素データを前記合成画像データを構成する画素データとして出力し、前記第2の制御信号が活性化されているときに、前記所定の色を表すデータと一致する前記第4の画像データ内の画素データの前記第4の画像データ内における座標に相当する前記第2の画像データ内における座標に位置する画素データを前記合成画像データを構成する画素データとして出力する第6の手段と、
を具備する画像処理装置。
An apparatus for synthesizing two images represented by first and second image data supplied from the outside and outputting synthesized image data representing the synthesized image,
A first means for sequentially comparing a plurality of pixel data in the first image data with data representing a predetermined color and activating a first control signal if they match,
When the first control signal is activated, the pixel data in the first image data is subjected to a predetermined first calculation and output, and the pixel data in the first image data is output. Data indicating that the first calculation has been performed is output as calculation execution information data, and when the first control signal is not activated, the pixel data in the first image data is included in the first data. Second means for outputting the data indicating that the first calculation is not performed on the pixel data in the first image data as the calculation execution information data.
A memory having first to third areas, wherein third image data constituted by a plurality of pixel data output from the second means is stored in the first area, and the plurality of operations are performed. The memory storing information data in the second area and storing the second image data in the third area;
Third means for writing data representing the predetermined color in a predetermined portion of the first area of the memory in response to an instruction from the outside;
When the plurality of pieces of pixel data and the plurality of calculation execution information data in the third image data are sequentially read and the calculation execution information data indicates that the first calculation is not performed, the third image is displayed. Pixel data in the third image data is output when pixel data in the data is output as pixel data constituting the fourth image data, and the calculation execution information data indicates that the first calculation has been performed. A fourth means for outputting the pixel data obtained by performing the second operation to the pixel data constituting the fourth image data;
Fifth means for sequentially comparing a plurality of pixel data in the third image data with data representing the predetermined color and activating a second control signal if they match,
When the second control signal is not activated, the pixel data in the fourth image data is output as pixel data constituting the composite image data, and the second control signal is activated. A pixel located at the coordinates in the second image data corresponding to the coordinates in the fourth image data of the pixel data in the fourth image data that matches the data representing the predetermined color Sixth means for outputting data as pixel data constituting the composite image data;
An image processing apparatus comprising:
前記第1及び第2の演算が、画素データ内の所定のビットを反転する演算である、請求項5記載の画像処理装置。 The image processing apparatus according to claim 5, wherein the first and second operations are operations that invert predetermined bits in pixel data. 前記第4の画像データに所定の第1の色変換処理を施すことにより第5の画像データを生成する第7の手段と、前記第2の画像データに所定の第2の色変換処理を施すことにより第6の画像データを生成する第8の手段とを更に具備し、
前記第7の手段が、前記第2の制御信号が活性化されていないときに、前記第5の画像データ内の画素データを前記合成画像データを構成する画素データとして出力し、前記第2の制御信号が活性化されているときに、前記所定の色を表すデータと一致する前記第5の画像データ内の画素データの前記第5の画像データ内における座標に相当する前記第6の画像データ内における座標に位置する画素データを前記合成画像データを構成する画素データとして出力する、請求項5又は6記載の画像処理装置。
A seventh means for generating fifth image data by applying a predetermined first color conversion process to the fourth image data; and a predetermined second color conversion process to the second image data. And an eighth means for generating sixth image data.
The seventh means outputs pixel data in the fifth image data as pixel data constituting the composite image data when the second control signal is not activated, The sixth image data corresponding to the coordinates in the fifth image data of the pixel data in the fifth image data that matches the data representing the predetermined color when the control signal is activated The image processing apparatus according to claim 5 or 6, wherein pixel data located at coordinates in the inside is output as pixel data constituting the composite image data.
前記第2の制御信号を所定の時間だけ遅延させる第9の手段を更に具備する、請求項5〜7のいずれか1項に記載の画像処理装置。 The image processing apparatus according to claim 5, further comprising ninth means for delaying the second control signal by a predetermined time.
JP2003364223A 2003-10-24 2003-10-24 Image processor Withdrawn JP2005130238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003364223A JP2005130238A (en) 2003-10-24 2003-10-24 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003364223A JP2005130238A (en) 2003-10-24 2003-10-24 Image processor

Publications (1)

Publication Number Publication Date
JP2005130238A true JP2005130238A (en) 2005-05-19

Family

ID=34643265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003364223A Withdrawn JP2005130238A (en) 2003-10-24 2003-10-24 Image processor

Country Status (1)

Country Link
JP (1) JP2005130238A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252171A1 (en) * 2010-04-12 2011-10-13 Dearth Glenn A Reducing simultaneous switching outputs using data bus inversion signaling

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252171A1 (en) * 2010-04-12 2011-10-13 Dearth Glenn A Reducing simultaneous switching outputs using data bus inversion signaling
US8260992B2 (en) * 2010-04-12 2012-09-04 Advanced Micro Devices, Inc. Reducing simultaneous switching outputs using data bus inversion signaling

Similar Documents

Publication Publication Date Title
US5966116A (en) Method and logic system for the rotation of raster-scan display images
JP2886460B2 (en) Data processing device and system
US4991122A (en) Weighted mapping of color value information onto a display screen
US6023302A (en) Blending of video images in a home communications terminal
US5196924A (en) Look-up table based gamma and inverse gamma correction for high-resolution frame buffers
TW476217B (en) Enhanced color correction
US7554557B2 (en) Device and method for image compression and decompression
US6304300B1 (en) Floating point gamma correction method and system
US8013875B2 (en) Color signal adjustment module in image display apparatus
JP2578170B2 (en) Image display device
JP2007248838A (en) Color correction circuit and image display apparatus provided with the same
JP2005249820A (en) Color correcting circuit and image display device with the same
US5940067A (en) Reduced memory indexed color graphics system for rendered images with shading and fog effects
JPH08147453A (en) Method and device for look-up table generation
US5590254A (en) Displaying multiple video streams using a bit map and a single frame buffer
US8564612B2 (en) Deep pixel pipeline
US20070109314A1 (en) Adaptive pixel-based blending method and system
JP2005130238A (en) Image processor
JP2002325171A (en) Image composition processing apparatus and image composition program
JP2005260405A (en) Image processor and image processing method
JPH05265443A (en) Constitution system for three-dimensional body image display device
JP2005266576A (en) Image processor and image processing method
JPS63202795A (en) Image display device
JP2008020574A (en) Liquid crystal dual screen display device
JPH05204351A (en) Color image display method

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: 20070109