JP3314488B2 - Color image information data processing method - Google Patents
Color image information data processing methodInfo
- Publication number
- JP3314488B2 JP3314488B2 JP27353393A JP27353393A JP3314488B2 JP 3314488 B2 JP3314488 B2 JP 3314488B2 JP 27353393 A JP27353393 A JP 27353393A JP 27353393 A JP27353393 A JP 27353393A JP 3314488 B2 JP3314488 B2 JP 3314488B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- pixel
- image information
- color
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Color Image Communication Systems (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Color Television Systems (AREA)
- Processing Of Color Television Signals (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、カラー画像情報データ
処理方法に関するものであり、さらに詳しくは、データ
圧縮してメモリに格納したカラー画像情報データを、再
度メモリから読み出して他の表色系のカラー画像情報デ
ータに変換する際に適用される画像情報データ処理方法
に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for processing color image information data. The present invention relates to an image information data processing method applied when converting into color image information data.
【0002】[0002]
【従来の技術】カラー画像情報データをメモリに格納す
るに際して、記憶容量を節約するために、データを圧縮
して格納することが一般的に行なわれる。2. Description of the Related Art When storing color image information data in a memory, it is common practice to compress and store the data in order to save storage capacity.
【0003】例えば、赤色の色合いを表わすRデータ、
緑色の色合いを表わすGデータ、青色の色合いを表わす
Bデータの組み合わせにより色を表現するRGB表色系
のカラー画像情報データを、輝度を表わすデータと色差
を表わすデータの組み合わせにより色を表現するカラー
画像情報データに変換し、かつ、画素1個分の間隔をお
いて、色差を表わすデータを省略した状態にデータを圧
縮することが行なわれる。For example, R data representing a shade of red,
The color image information data of the RGB color system representing a color by a combination of G data representing a green tint and the B data representing a blue tint, and a color representing a color by a combination of data representing luminance and data representing a color difference. The data is converted into image information data and compressed at intervals of one pixel so that the data representing the color difference is omitted.
【0004】輝度を表わすデータと色差を表わすデータ
の組み合わせにより、色を表現するカラー画像情報デー
タの一例として、CCIR601フォーマットがある
が、CCIR601フォーマットにおいて、輝度データ
はYデータ、色差データはCrデータ及びCbデータで
ある。The CCIR 601 format is an example of color image information data that expresses a color by combining data representing luminance and data representing color difference. In the CCIR 601 format, luminance data is Y data, color difference data is Cr data and This is Cb data.
【0005】以降の説明において、簡単のために、メモ
リ内の画素データのデータ形式をCCIR601フォー
マットに代表させて、説明を進める。In the following description, for the sake of simplicity, the description will be made with the data format of the pixel data in the memory represented by the CCIR601 format.
【0006】すなわち、メモリ内においては、Yデー
タ、Crデータ、Cbデータを有する画素と、Yデータ
は有するが、Crデータ及びCbデータは省略された画
素が交互に存在する、と考えるとわかりやすい。That is, in the memory, it is easy to understand that pixels having Y data, Cr data and Cb data and pixels having Y data but not having Cr data and Cb data alternately exist.
【0007】このようにすると、記憶容量は2/3に圧
縮される。このデータ圧縮方法は一般に、4:2:2デ
ータ圧縮といわれている。In this way, the storage capacity is reduced to 2/3. This data compression method is generally called 4: 2: 2 data compression.
【0008】ところが、上記の4:2:2データ圧縮を
経てメモリに格納されたCCIR601フォーマットの
カラー画像情報データを、再度メモリから読み出して、
RGB表色系のカラー画像情報データに変換するときに
は、Yデータ、Crデータ、Cbデータを有する画素に
ついては、元の数値のRデータ、Gデータ、Bデータ、
すなわち元の色に復元されるが、Yデータは有するが、
Crデータ及びCbデータが省略された画素について
は、当該画素のYデータと、当該画素に相隣り合う前と
後に位置する各々の画素のCrデータの平均値及びCb
データの平均値を用いて、変換して得られるRデータ、
Gデータ、Bデータを、便宜的に、当該画素のRデー
タ、Gデータ、Bデータとしているので、元の数値のR
データ、Gデータ、Bデータ、すなわち元の色には復元
されない。However, the color image information data of the CCIR 601 format stored in the memory after the 4: 2: 2 data compression is read out from the memory again, and
When converting to color image information data of the RGB color system, pixels having Y data, Cr data, and Cb data have original numerical values of R data, G data, B data,
That is, it is restored to the original color, but has Y data,
For a pixel from which Cr data and Cb data have been omitted, the average value and Cb of the Y data of the pixel and the Cr data of each pixel located before and after the pixel adjacent to the pixel.
R data obtained by conversion using the average value of the data,
Since the G data and B data are R data, G data, and B data of the pixel for convenience, the original numerical value R
The data, G data, and B data, that is, the original colors are not restored.
【0009】すなわち、Yデータは有するが、Crデー
タ及びCbデータが省略された画素については、当該画
素に相隣り合う前と後に位置する各々の画素の色の中間
色に変換されてしまう。That is, a pixel having Y data but omitting Cr data and Cb data is converted into an intermediate color of the color of each pixel located before and after the pixel adjacent to the pixel.
【0010】(表1)に、データ圧縮しない場合の、順
次隣り合う5個の画素に対応する、元のカラー画像情報
データ、メモリ内のカラー画像情報データ、メモリから
再度読み出したカラー画像情報データの各々の数値を示
す。Table 1 shows the original color image information data, the color image information data in the memory, and the color image information data read out again from the memory, corresponding to five adjacent pixels in sequence without data compression. Shows the respective numerical values.
【0011】また、(表2)に、4:2:2データ圧縮
した場合の、順次隣り合う5個の画素に対応する、元の
カラー画像情報データ、メモリ内のカラー画像情報デー
タ、メモリから再度読み出したカラー画像情報データの
各々の数値を示す。Further, Table 2 shows that the original color image information data, the color image information data in the memory, and the color image information in the memory corresponding to five adjacent pixels in the case of 4: 2: 2 data compression. Each numerical value of the color image information data read out again is shown.
【0012】[0012]
【表1】 [Table 1]
【0013】[0013]
【表2】 [Table 2]
【0014】一方、パーソナルコンピュータ等のカラー
の画面において、背景画とスプライト画を重ね合わせ、
合成して、合成画を作成する画像処理が行なわれる。こ
こにいうところのスプライト画とは、主要な図柄が形成
されている画面であり、そのバックグラウンドは、通常
均一な色で形成されている。On the other hand, on a color screen of a personal computer or the like, a background image and a sprite image are superimposed,
Image processing for combining and creating a composite image is performed. Here, the sprite image is a screen on which main symbols are formed, and the background thereof is usually formed with a uniform color.
【0015】背景画とスプライト画を重ね合わせ、合成
する際には、いわゆる透明処理が施される。透明処理と
は、スプライト画の中の図柄のみを切り抜いて背景画の
上に貼り付けることを、画面上で行なう処理である。た
だし、透明処理が施されるためには、スプライト画のバ
ックグラウンドは完全な黒色であること、すなわち,R
GB表色系で表現すると、Rデータ、Gデータ、Bデー
タの数値のいずれもが0であることが条件である。When a background image and a sprite image are superimposed and synthesized, a so-called transparent process is performed. Transparency processing is processing on the screen to cut out only the design in the sprite image and paste it on the background image. However, in order to perform the transparency processing, the background of the sprite image must be completely black, that is, R
When expressed in the GB color system, the condition is that all of the numerical values of the R data, G data, and B data are 0.
【0016】ところが、スプライト画の図柄とバックグ
ラウンドとの境界において、バックグラウンドの元の色
が完全な黒色であっても、4:2:2データ圧縮を経て
メモリに格納した後に、再度メモリから読み出した場合
に、前記した理由により、その画素に相隣り合う前と後
に位置する画素の色の中間色に変換されてしまい、元の
完全な黒色に復元されない部分が発生する。However, at the boundary between the design of the sprite image and the background, even if the original color of the background is completely black, it is stored in the memory through 4: 2: 2 data compression, and then is returned from the memory again. In the case of reading, for the reason described above, the pixel is converted into an intermediate color between the colors of the pixels located before and after adjacent to the pixel, and a portion that is not restored to the original perfect black occurs.
【0017】そして、完全な黒色に復元されないバック
グラウンドの部分においては、背景画と重ね合わせ、合
成しても、透明処理が行なわれない、という問題点が発
生する。実際には、透明処理が行なわれない部分におい
ては、合成した画面において、黒い斑点が浮き出てしま
い、画面の美観を損ねてしまう。Then, in a background portion that is not restored to a complete black color, there is a problem that even if the background portion is superimposed and synthesized, the transparent processing is not performed. Actually, in a portion where the transparent processing is not performed, black spots appear on the synthesized screen, which impairs the appearance of the screen.
【0018】[0018]
【発明が解決しようとする課題】本発明は、以上のよう
な問題点に着目してなされたもので、カラーの画面にお
いて、背景画とスプライト画を重ね合わせ、合成して、
合成画を作成する画像処理を行なう際に、スプライト画
のバックグラウンドと図柄との境界においても、透明処
理が支障なく施されるための方法を提供することを課題
とする。SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and superimposes and combines a background image and a sprite image on a color screen.
It is an object of the present invention to provide a method for performing transparent processing without any trouble even at a boundary between a background of a sprite image and a design when performing image processing for creating a composite image.
【0019】[0019]
【課題を解決するための手段】本発明は、上記課題を解
決するために、メモリ内において、画素データのデータ
形式は輝度データ及び色差データから成る形式であり、
輝度データ及び色差データを有する画素と、輝度データ
は有するが、色差データは省略された画素が、交互に存
在する状態で格納されているカラー画像情報データを、
メモリから読み出し、RGB表色系で表現されたカラー
画像情報データに変換する際に、メモリ内における画素
データの輝度データの数値が0である画素については、
色差データの有無にかかわらず、Rデータ、Gデータ、
Bデータのいずれもが0であるように変換し、メモリ内
における画素データの輝度データの数値が0でなく、色
差データを有しない画素については、当該画素の輝度デ
ータと、当該画素に相隣り合う前と後に位置する各々の
画素の色差データの平均値とを用いて、変換して得られ
るRデータ、Gデータ、Bデータを、当該画素のRデー
タ、Gデータ、Bデータとすることを特徴とするカラー
画像情報データ処理方法である。According to the present invention, in order to solve the above-mentioned problems, a data format of pixel data in a memory is a format comprising luminance data and color difference data.
Pixels having luminance data and color difference data, and color image information data stored in a state in which pixels having luminance data but omitting color difference data are alternately present,
When reading from the memory and converting it into color image information data expressed in the RGB color system, for a pixel in which the numerical value of the luminance data of the pixel data in the memory is 0,
Regardless of the presence or absence of color difference data, R data, G data,
The pixel data is converted so that all of the B data are 0. For a pixel having no luminance data of the pixel data in the memory that is not 0 and has no color difference data, the luminance data of the pixel and the pixel adjacent to the pixel are not included. Using the average value of the color difference data of each pixel positioned before and after the matching, the R data, G data, and B data obtained by conversion are defined as the R data, G data, and B data of the pixel. This is a characteristic color image information data processing method.
【0020】[0020]
【作用】本発明の画像情報データ処理方法により、背景
画とスプライト画の重ね合わせ、合成を行なう際に、ス
プライト画のバックグラウンドと図柄との境界におい
て、透明処理が支障なく施される理由を、(表3)を用
いて、以下に詳細に説明する。According to the image information data processing method of the present invention, when superimposing and combining a background image and a sprite image, the reason why the transparent processing is performed without hindrance at the boundary between the background of the sprite image and the design is considered. , (Table 3) will be described in detail below.
【0021】ただし、以降の説明において、簡単のため
に、メモリ内の画素データのデータ形式をCCIR60
1フォーマットに代表させて、説明を進める。However, in the following description, for the sake of simplicity, the data format of the pixel data in the memory is assumed to be CCIR60.
The description will be made on behalf of one format.
【0022】[0022]
【表3】 [Table 3]
【0023】いま、バックグラウンドが完全な黒色であ
るスプライト画の画像情報データにおいて、画素n から
画素n+4 まで、順次隣り合う位置関係にあり、画素n と
画素 n+1 は、バックグラウンドと図柄の境界におけるバ
ックグラウンドの上にあり、画素n+2 から画素n+4 まで
は、バックグラウンドと図柄の境界における図柄の上に
あるものとする。すなわち、画素n と画素n+1 は、RG
B表色系で、Rデータ、Gデータ、Bデータのいずれも
が0である。Now, the background is completely black.
Pixel information in the image information data of the sprite imagenFrom
Pixeln + 4Up to the pixelnWhen
Pixel n + 1Is the border between the background and the symbol
Pixel on the backgroundn + 2From pixeln + 4Until
Is on the design at the border between the background and the design
There is. That is, the pixelnAnd pixelsn + 1Is RG
In the B color system, all of R data, G data and B data
Is 0.
【0024】このカラー画像情報データを4:2:2デ
ータ圧縮して、メモリ内に格納すると、画素n+1 と画素
n+3 に対応する画素データのCrデータ及びCbデータ
は省略される。また、画素n と画素n+1 に対応する画素
データのYデータは、ともに0である。なぜならば、完
全な黒色とは輝度が0であるということであるから、輝
度を表わすYデータは0になる。When this color image information data is compressed in 4: 2: 2 data and stored in the memory, pixel n + 1 and pixel
The Cr data and Cb data of the pixel data corresponding to n + 3 are omitted. The Y data of the pixel data corresponding to the pixel n and the pixel n + 1 are both 0. This is because the complete black means that the luminance is 0, and the Y data representing the luminance is 0.
【0025】さらに、メモリに格納されたカラー画像情
報データを、再度メモリから読み出すと、画素n と画素
n+1 については、Yデータが0であるから、RGB表色
系に変換する場合、本発明の方法により、Rデータ、G
データ、Bデータのいずれもが0になる。When the color image information data stored in the memory is read out from the memory again, the pixel n and the pixel
For n + 1 , since the Y data is 0, when converting into the RGB color system, the R data, G
Both data and B data become 0.
【0026】画素n+2 と画素n+4 については、Crデー
タ及びCbデータが省略されておらず、Yデータ、Cr
データ、Cbデータを全て有するから、RGB表色系に
変換する場合、常法の変換方法により、元のRデータ、
Gデータ、Bデータに復元される。For pixel n + 2 and pixel n + 4 , Cr data and Cb data are not omitted, and Y data,
Since all data and Cb data are included, when converting to the RGB color system, the original R data,
G data and B data are restored.
【0027】画素n+3 については、Crデータ及びCb
データが省略されているので、RGB表色系に変換する
場合、本発明の方法により、画素n+3 に対応するYデー
タと、画素n+2 と画素n+4 の各々に対応するCrデータ
の平均値及びCbデータの平均値とを用いて、常法の変
換方法で変換して得られるRデータ、Gデータ、Bデー
タを、画素n+3 のRデータ、Gデータ、Bデータとす
る。For pixel n + 3 , the Cr data and Cb
Since the data is omitted, when converting to the RGB color system, the Y data corresponding to the pixel n + 3 and the Cr data corresponding to each of the pixel n + 2 and the pixel n + 4 are obtained by the method of the present invention. R data, G data, and B data obtained by conversion using a normal conversion method using the average value of Cb data and the average value of Cb data are used as R data, G data, and B data of pixel n + 3. .
【0028】この結果、スプライト画のバックグラウン
ドの上にある画素n と画素n+1 については、メモリから
読み出した後も、元の完全な黒色に復元される。したが
って、背景画とスプライト画を重ね合わせ、合成して、
合成画を作成する際に、スプライト画のバックグラウン
ドと図柄との境界において、透明処理が支障なく施され
る。As a result, the pixels n and n + 1 on the background of the sprite image are restored to the original completely black even after being read from the memory. Therefore, the background image and the sprite image are superimposed and synthesized,
When creating the composite image, the transparent processing is performed without any trouble at the boundary between the background of the sprite image and the design.
【0029】なお、スプライト画の図柄の上にある画素
n+3 については、画素n+2 と画素 n+4 の各々の色の中間
色になってしまい、元の色には復元されないが、透明処
理が行なわれずに、合成した画面に黒い斑点が浮き出て
しまうことと比較すれば、人間の目で見た場合には、ほ
とんど違和感はないものである。The pixels on the sprite image
n + 3About the pixeln + 2And pixels n + 4Middle of each color of
It will not be restored to the original color,
Black spots appear on the composited screen
Compared to what happens, when viewed by the human eye,
There is almost no discomfort.
【0030】[0030]
【実施例】図1は、本発明に係るカラー画像情報データ
処理方法を実現するための回路の一例を示す回路図であ
る。FIG. 1 is a circuit diagram showing an example of a circuit for realizing a color image information data processing method according to the present invention.
【0031】図1において、1は、CCIR601フォ
ーマットで表現されたカラー画像情報データを、RGB
表色系で表現されたカラー画像情報データに変換する機
能を有するICチップ(以下、単にICチップと称す
る)であり、ICチップ1は4から30までの27個の
端子を有する。In FIG. 1, reference numeral 1 denotes color image information data expressed in the CCIR 601 format as RGB data.
The IC chip 1 has a function of converting color image information data expressed in a color system (hereinafter simply referred to as an IC chip). The IC chip 1 has 27 terminals from 4 to 30.
【0032】4〜8は、Yデータに対応する信号を入力
する5個の入力端子である。すなわち、Yデータは5ビ
ットの2進数で表現され、各々のビットに対応する2値
信号が入力端子4〜8に入力される。Reference numerals 4 to 8 denote five input terminals for inputting signals corresponding to the Y data. That is, the Y data is represented by a 5-bit binary number, and binary signals corresponding to each bit are input to the input terminals 4 to 8.
【0033】9〜13は、CrデータあるいはCbデー
タに対応する信号を入力する5個の入力端子である。す
なわち、Crデータ、Cbデータは、いずれも5ビット
の2進数で表現され、Crデータの各々のビットに対応
する2値信号とCbデータの各々のビットに対応する2
値信号が、交互に入力端子9〜13に入力される。Reference numerals 9 to 13 denote five input terminals for inputting signals corresponding to Cr data or Cb data. That is, the Cr data and the Cb data are each represented by a 5-bit binary number, and a binary signal corresponding to each bit of the Cr data and a binary signal corresponding to each bit of the Cb data.
The value signal is input to the input terminals 9 to 13 alternately.
【0034】16〜20は、Rデータに対応する信号を
出力する5個の出力端子である。すなわち、Rデータは
5ビットの2進数で表現され、各々のビットに対応する
2値信号が出力端子16〜20から出力される。Reference numerals 16 to 20 denote five output terminals for outputting signals corresponding to the R data. That is, the R data is represented by a 5-bit binary number, and binary signals corresponding to each bit are output from the output terminals 16 to 20.
【0035】21〜25は、Gデータに対応する信号を
出力する5個の出力端子である。すなわち、Gデータは
5ビットの2進数で表現され、各々のビットに対応する
2値信号が出力端子21〜25から出力される。Reference numerals 21 to 25 denote five output terminals for outputting signals corresponding to the G data. That is, the G data is represented by a 5-bit binary number, and binary signals corresponding to each bit are output from the output terminals 21 to 25.
【0036】26〜30は、Bデータに対応する信号を
出力する5個の出力端子である。すなわち、Bデータは
5ビットの2進数で表現され、各々のビットに対応する
2値信号が出力端子26〜30から出力される。Reference numerals 26 to 30 denote five output terminals for outputting signals corresponding to the B data. That is, the B data is represented by a 5-bit binary number, and binary signals corresponding to each bit are output from the output terminals 26 to 30.
【0037】15は、出力端子16〜30を出力状態に
するか、フローティング状態(浮き状態)にするかを決
定する信号を入力する端子であり、Output En
able端子(以下、OE端子と略称する)と通称され
ている。すなわち、OE端子15に高電圧の信号(以
下、H信号と略称する)が入力されると、出力端子16
〜30は出力状態になり、OE端子15に低電圧の信号
(以下、L信号と略称する)が入力されると、出力端子
16〜30はフローティング状態になる。Reference numeral 15 denotes a terminal for inputting a signal for determining whether the output terminals 16 to 30 are in an output state or a floating state (floating state).
It is commonly referred to as an “able” terminal (hereinafter abbreviated as an OE terminal). That is, when a high-voltage signal (hereinafter, abbreviated as an H signal) is input to the OE terminal 15, the output terminal 16
30 are in an output state, and when a low-voltage signal (hereinafter abbreviated as L signal) is input to the OE terminal 15, the output terminals 16 to 30 are in a floating state.
【0038】14は、クロックパルスを入力するクロッ
ク端子である。クロック端子14にクロックパルスが入
力されると、入力端子4〜13よりICチップ1の内部
に信号が取り込まれるが、クロック端子14にクロック
パルスが入力されない場合には、入力端子4〜13より
ICチップ1の内部に信号が取り込まれない。Reference numeral 14 denotes a clock terminal for inputting a clock pulse. When a clock pulse is input to the clock terminal 14, a signal is taken into the IC chip 1 from the input terminals 4 to 13. However, when a clock pulse is not input to the clock terminal 14, the IC is input from the input terminals 4 to 13. No signal is taken into chip 1.
【0039】なお、本実施例において、ICチップ1
は、入力端子4〜13より信号が入力された後に、クロ
ック端子14からクロックパルスが8回入力されると、
出力端子16〜30から信号が出力されるものである。In this embodiment, the IC chip 1
When a clock pulse is inputted eight times from the clock terminal 14 after a signal is inputted from the input terminals 4 to 13,
Signals are output from the output terminals 16 to 30.
【0040】2は、5本の信号が入力されるOR論理ゲ
ートである。Reference numeral 2 denotes an OR logic gate to which five signals are input.
【0041】3は、シフトレジスタであり、レジスタに
セットされている情報を、シフトパルス入力に入ったパ
ルス数と同じ数だけ、左に、データを保ちながら移動さ
せる機能を有する。本実施例においては、8段のシフト
レジスタであり、データが入力された後にシフトパルス
が8回入力されると、データが出力される。Reference numeral 3 denotes a shift register, which has a function of moving the information set in the register to the left by the same number as the number of pulses input to the shift pulse input while maintaining data. In this embodiment, the shift register has eight stages. When a shift pulse is input eight times after data is input, data is output.
【0042】また、本実施例の回路の外部より、信号線
31〜40を通じて、ICチップ1の入力端子4〜13
に信号が入力される。なお、信号線31〜35は、途中
で分岐して、OR論理ゲート2にも入力する。The input terminals 4 to 13 of the IC chip 1 are supplied from outside the circuit of this embodiment through signal lines 31 to 40.
The signal is input to. Note that the signal lines 31 to 35 branch on the way and also input to the OR logic gate 2.
【0043】OR論理ゲート2の出力は、シフトレジス
タ3に入力し、シフトレジスタ3の出力は、ICチップ
1のOE端子15に入力する。The output of the OR logic gate 2 is input to the shift register 3, and the output of the shift register 3 is input to the OE terminal 15 of the IC chip 1.
【0044】また、本実施例の回路の外部より、信号線
41を通じて、ICチップ1のクロック端子14に信号
が入力され、信号線41は、途中で分岐して、シフトレ
ジスタ3のシフトパルス入力にも入力する。A signal is input to the clock terminal 14 of the IC chip 1 from the outside of the circuit of the present embodiment through the signal line 41, and the signal line 41 branches on the way to input the shift pulse of the shift register 3. Also enter
【0045】また、ICチップ1の出力端子16〜30
から出力された信号は、信号線42〜56を通じて、本
実施例の回路の外部に出力される。なお、信号線42〜
56は、途中で分岐して、各々、プルダウン抵抗57〜
71を経て接地している。The output terminals 16 to 30 of the IC chip 1
Are output to the outside of the circuit of this embodiment through signal lines 42 to 56. Note that the signal lines 42 to
Reference numeral 56 denotes a branch on the way, and each of the pull-down resistors 57 to
It is grounded via 71.
【0046】いま、本実施例の回路の外部より、信号線
31〜35に、CCIR601フォーマットのYデータ
が、5ビットの2進数として入力され、信号線36〜4
0に、CCIR601フォーマットのCrデータとCb
データが、5ビットの2進数として、交互に入力され、
信号線41にクロックパルスが入力されるものとする。Now, from the outside of the circuit of this embodiment, Y data in the CCIR 601 format is input to the signal lines 31 to 35 as a 5-bit binary number.
0, CCIR601 format Cr data and Cb
Data is input alternately as a 5-bit binary number,
It is assumed that a clock pulse is input to the signal line 41.
【0047】Yデータが0である場合には、信号線31
〜35に入力される5ビットの信号は、いずれもL信号
である。したがって、OR論理ゲート2の出力はL信号
となり、シフトレジスタ3にL信号が入力され、それと
同時に、ICチップ1の入力端子4〜8の各々にL信号
が入力される。When the Y data is 0, the signal line 31
Each of the 5-bit signals input to .about.35 is an L signal. Therefore, the output of the OR logic gate 2 becomes an L signal, and the L signal is input to the shift register 3, and at the same time, the L signal is input to each of the input terminals 4 to 8 of the IC chip 1.
【0048】その後、クロックパルスが8回入力される
と、シフトレジスタ3からL信号が出力され、ICチッ
プ1のOE端子15にL信号が入力されると同時に、I
Cチップ1の内部でRGB表色系に変換された結果のR
データ、Gデータ、Bデータに対応する信号が、ICチ
ップ1の出力端子16〜30から出力されようとする。After that, when the clock pulse is inputted eight times, the L signal is outputted from the shift register 3 and the L signal is inputted to the OE terminal 15 of the IC chip 1 at the same time as the I signal.
R of the result converted into the RGB color system inside the C chip 1
Signals corresponding to data, G data, and B data are about to be output from output terminals 16 to 30 of IC chip 1.
【0049】ところが、OE端子15にはL信号が入力
されるので、ICチップ1の出力端子16〜30はフロ
ーティング状態になり、変換された結果のRデータ、G
データ、Bデータに対応する信号は出力されず、信号線
42〜56を通じて本実施例の回路の外部に出力される
信号は、各々、プルダウン抵抗57〜71により、いず
れもL信号となる。However, since the L signal is input to the OE terminal 15, the output terminals 16 to 30 of the IC chip 1 are in a floating state, and the converted R data, G data
The signals corresponding to the data and the B data are not output, and the signals output to the outside of the circuit of this embodiment through the signal lines 42 to 56 are all L signals by the pull-down resistors 57 to 71, respectively.
【0050】したがって、結局、本実施例の回路の外部
に出力されるRデータ、Gデータ、Bデータの数値は、
いずれも0となる。Therefore, the numerical values of the R data, G data, and B data output to the outside of the circuit of this embodiment are
Both become 0.
【0051】Yデータが0でない場合には、信号線31
〜35に入力される5ビットの信号のうち、少なくとも
1ビットの信号はH信号である。したがって、OR論理
ゲート2の出力はH信号となり、シフトレジスタ3にH
信号が入力され、それと同時に、ICチップ1の入力端
子4〜8の各々に信号が入力される。When the Y data is not 0, the signal line 31
At least one bit signal among the 5-bit signals input to .about.35 is an H signal. Therefore, the output of the OR logic gate 2 becomes the H signal, and the shift register 3 outputs the H signal.
A signal is input, and at the same time, a signal is input to each of the input terminals 4 to 8 of the IC chip 1.
【0052】その後、クロックパルスが8回入力される
と、シフトレジスタ3からH信号が出力され、ICチッ
プ1のOE端子15にH信号が入力されると同時に、I
Cチップ1の内部でRGB表色系に変換された結果のR
データ、Gデータ、Bデータに対応する信号が、ICチ
ップ1の出力端子16〜30から出力されようとする。After that, when the clock pulse is inputted eight times, the H signal is outputted from the shift register 3 and the H signal is inputted to the OE terminal 15 of the IC chip 1 at the same time as the I signal.
R of the result converted into the RGB color system inside the C chip 1
Signals corresponding to data, G data, and B data are about to be output from output terminals 16 to 30 of IC chip 1.
【0053】ところが、OE端子15にはH信号が入力
されるので、ICチップ1の出力端子16〜30は出力
状態になり、変換された結果のRデータ、Gデータ、B
データに対応する信号は、そのままの状態で、出力端子
16〜30から出力される。そして、変換された結果の
Rデータ、Gデータ、Bデータに対応する信号は、その
ままの状態で、信号線42〜56を通じて、本実施例の
回路の外部に出力される。However, since the H signal is input to the OE terminal 15, the output terminals 16 to 30 of the IC chip 1 are in the output state, and the converted R data, G data, and B data are output.
The signal corresponding to the data is output from the output terminals 16 to 30 as it is. Then, the signals corresponding to the converted R data, G data, and B data are output to the outside of the circuit of the present embodiment through the signal lines 42 to 56 as they are.
【0054】実際には、信号線36〜40に入力される
CrデータとCbデータが、省略されていない場合に
は、ICチップ1の内部において、CCIR601フォ
ーマットに変換される前の、元のRGB表色系のRデー
タ、Gデータ、Bデータに変換され、信号線36〜40
に入力されるCrデータとCbデータが、省略されてい
る場合には、ICチップ1の内部において、このデータ
が入力される直前に入力されたデータ、すなわち一個前
の相隣り合う画素についてのデータと、このデータが入
力された直後に入力されるデータ、すなわち一個後の相
隣り合う画素についてのデータとの中間色のデータに変
換される。Actually, if the Cr data and Cb data input to the signal lines 36 to 40 are not omitted, the original RGB data before being converted into the CCIR601 format is stored inside the IC chip 1. The data is converted into color data R data, G data, and B data.
When the Cr data and Cb data input to the IC chip 1 are omitted, the data input immediately before the input of the data, that is, the data of the immediately preceding pixel in the IC chip 1 Is converted into data that is input immediately after this data is input, that is, data of an intermediate color between the data of the next adjacent pixel.
【0055】[0055]
【発明の効果】本発明のカラー画像情報データ処理方法
によれば、データ圧縮を経てメモリに格納されたカラー
画像情報データを、再度メモリから読み出した後に、カ
ラーの画面において、背景画とスプライト画を重ね合わ
せ、合成して、合成画を作成する画像処理を行なう際
に、スプライト画のバックグラウンドと図柄との境界に
おいても、透明処理が支障なく施されるために、合成し
た画面が充分に美観を保つことができる、という効果を
有する。According to the color image information data processing method of the present invention, the color image information data stored in the memory after the data compression is read out from the memory again, and then the background image and the sprite image are displayed on the color screen. When performing image processing to create a composite image by superimposing and synthesizing, the transparent processing is performed without hindrance even at the boundary between the background of the sprite image and the design, so that the synthesized screen is sufficiently This has the effect that the aesthetic appearance can be maintained.
【0056】また、本発明のカラー画像情報データ処理
方法は、簡単な論理ゲートを組み合わせた回路により、
簡便に実現することができるので、回路の設計工程に手
間と費用をかけることがなく、回路の製造・組み立てに
要する費用も少なくて済む、という効果をも有するもの
である。Further, the color image information data processing method of the present invention uses a circuit combining simple logic gates.
Since it can be realized simply, there is also an effect that the circuit design process does not require much labor and cost, and the cost required for manufacturing and assembling the circuit can be reduced.
【0057】[0057]
【図1】本発明におけるカラー画像情報データ処理方法
を実現する一実施例の回路を説明する回路図である。FIG. 1 is a circuit diagram illustrating a circuit according to an embodiment for realizing a color image information data processing method according to the present invention.
1 ICチップ 2 OR論理ゲート 3 シフトレジスタ 4〜13 入力端子 14 クロック端子 15 OE端子 16〜30 出力端子 31〜56 信号線 57〜71 プルダウン抵抗 DESCRIPTION OF SYMBOLS 1 IC chip 2 OR logic gate 3 Shift register 4-13 Input terminal 14 Clock terminal 15 OE terminal 16-30 Output terminal 31-56 Signal line 57-71 Pulldown resistance
フロントページの続き (56)参考文献 特開 昭62−16696(JP,A) 特開 平2−29093(JP,A) 特開 平4−6982(JP,A) 特開 平4−90287(JP,A) 特開 平4−358490(JP,A) 特開 平5−37956(JP,A) 特開 平5−199546(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 9/74 G06T 1/00 H04N 11/02 Continuation of the front page (56) References JP-A-62-16696 (JP, A) JP-A-2-29093 (JP, A) JP-A-4-6982 (JP, A) JP-A-4-90287 (JP) JP-A-4-358490 (JP, A) JP-A-5-37956 (JP, A) JP-A-5-199546 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB Name) H04N 9/74 G06T 1/00 H04N 11/02
Claims (1)
式は輝度データ及び色差データから成る形式であり、輝
度データ及び色差データを有する画素と、輝度データは
有するが、色差データは省略された画素が、交互に存在
する状態で格納されているカラー画像情報データを、メ
モリから読み出し、RGB表色系で表現されたカラー画
像情報データに変換する際に、メモリ内における画素デ
ータの輝度データの数値が0である画素については、色
差データの有無にかかわらず、Rデータ、Gデータ、B
データのいずれもが0であるように変換し、メモリ内に
おける画素データの輝度データの数値が0でなく、色差
データを有しない画素については、当該画素の輝度デー
タと、当該画素に相隣り合う前と後に位置する各々の画
素の色差データの平均値とを用いて、変換して得られる
Rデータ、Gデータ、Bデータを、当該画素のRデー
タ、Gデータ、Bデータとすることを特徴とするカラー
画像情報データ処理方法。In a memory, a data format of pixel data is a format including luminance data and chrominance data, and a pixel having luminance data and chrominance data and a pixel having luminance data but omitting chrominance data are included. When the color image information data stored alternately is read from the memory and converted into the color image information data expressed in the RGB color system, the numerical value of the luminance data of the pixel data in the memory is changed. Regarding the pixel which is 0, R data, G data, B data
The data is converted so that all of the data is 0. For a pixel having no luminance data of pixel data in the memory that is not 0 and has no color difference data, the pixel is adjacent to the luminance data of the pixel. R data, G data, and B data obtained by conversion using the average value of the color difference data of each pixel positioned before and after are used as R data, G data, and B data of the pixel. Color image information data processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27353393A JP3314488B2 (en) | 1993-11-01 | 1993-11-01 | Color image information data processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27353393A JP3314488B2 (en) | 1993-11-01 | 1993-11-01 | Color image information data processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07131816A JPH07131816A (en) | 1995-05-19 |
| JP3314488B2 true JP3314488B2 (en) | 2002-08-12 |
Family
ID=17529175
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP27353393A Expired - Fee Related JP3314488B2 (en) | 1993-11-01 | 1993-11-01 | Color image information data processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3314488B2 (en) |
-
1993
- 1993-11-01 JP JP27353393A patent/JP3314488B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07131816A (en) | 1995-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6828982B2 (en) | Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables | |
| KR900003762A (en) | High Speed Saturation Inverter | |
| WO1998043440A1 (en) | Image processing device and still image pickup device, and method for processing image | |
| JPS6145279A (en) | Smoothing circuit | |
| US5748771A (en) | Look-up table forming method and device | |
| JP3314488B2 (en) | Color image information data processing method | |
| US6741263B1 (en) | Video sampling structure conversion in BMME | |
| US20070222790A1 (en) | System and method for display compositing | |
| JP2732772B2 (en) | Digital signal processing circuit | |
| JPH11146275A (en) | Image processing display | |
| US6181350B1 (en) | Apparatus for, and method of, interpolating between graphics and video pixels in an expanded image | |
| JP3450472B2 (en) | Color image processing method | |
| US7903124B2 (en) | Individual channel filtering of palettized image formats | |
| US20030043162A1 (en) | Memory apparatus of digital video signal | |
| JP2005017610A (en) | On-screen display device and on-screen display method | |
| JP2826102B2 (en) | Image superposition method | |
| JPH06335022A (en) | Still image storage | |
| JP2003263135A (en) | Data transmission circuit and image information display device | |
| JP2670200B2 (en) | Thinning circuit in image data reproducing device | |
| KR20020067003A (en) | System for processing graphic patterns | |
| JP3017093B2 (en) | Pallet circuit | |
| JP2950134B2 (en) | Color image information data and color image information data processing method | |
| JPH0282765A (en) | Double screen display control circuit and video equipment provided with same | |
| JP3017003B2 (en) | Image processing device | |
| JP3719001B2 (en) | Image data generation apparatus and image data generation method used in the apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080607 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090607 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100607 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100607 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110607 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |