Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0722398B2 - Gamma conversion circuit - Google Patents
[go: Go Back, main page]

JPH0722398B2 - Gamma conversion circuit - Google Patents

Gamma conversion circuit

Info

Publication number
JPH0722398B2
JPH0722398B2 JP59184684A JP18468484A JPH0722398B2 JP H0722398 B2 JPH0722398 B2 JP H0722398B2 JP 59184684 A JP59184684 A JP 59184684A JP 18468484 A JP18468484 A JP 18468484A JP H0722398 B2 JPH0722398 B2 JP H0722398B2
Authority
JP
Japan
Prior art keywords
data
line
input
address
gamma conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59184684A
Other languages
Japanese (ja)
Other versions
JPS6163181A (en
Inventor
克人 出井
良信 三田
正 吉田
尚登 河村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP59184684A priority Critical patent/JPH0722398B2/en
Publication of JPS6163181A publication Critical patent/JPS6163181A/en
Priority to US07/183,300 priority patent/US4805013A/en
Publication of JPH0722398B2 publication Critical patent/JPH0722398B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Picture Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、入力される複数種類の画像データの特性を
変換するためのガンマ変換データをそれぞれ作成し、該
作成された各ガンマ変換データを所望の特性に変更可能
なガンマ変換回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention creates gamma conversion data for converting the characteristics of a plurality of types of input image data, and creates each of the created gamma conversion data. The present invention relates to a gamma conversion circuit that can be changed to desired characteristics.

〔従来技術とその問題点〕[Prior art and its problems]

従来、この種の回路で画像データ等のガンマ変換を行う
場合は、ランダムアクセスメモリ(RAM)もしくはリー
ドオンリメモリ(ROM)を使用し、それらのアドレス入
力に上記画像データを入力し、RAMまたはROMに書き込ま
れているガンマ変換テーブルに応じてRAMまたはROMのデ
ータ出力からガンマ変換された所望の画像データを得る
ように構成されている。また、RAMを使用してガンマ変
換を行う場合は、RAMのアドレスを入力データラインとC
PUのアドレスラインとが切り換えられるように構成し、
かつ、RAMのデータラインを出力データ線とCPUのデータ
線とに切り換えられるように構成することにより、RAM
に所望のガンマ変換テーブル書き込んだり、RAMを画像
データの変換テーブルとして使用できるように構成され
ている。
Conventionally, when gamma conversion of image data etc. is performed by this type of circuit, random access memory (RAM) or read only memory (ROM) is used, and the image data is input to those address inputs, and RAM or ROM is used. According to the gamma conversion table written in, the RAM or ROM data output is configured to obtain gamma-converted desired image data. Also, when using RAM to perform gamma conversion, specify the RAM address as the input data line and C
Configured so that it can be switched with the PU address line,
In addition, by configuring the RAM data line so that it can be switched between the output data line and the CPU data line,
A desired gamma conversion table can be written in and the RAM can be used as a conversion table of image data.

ところが、ガンマ曲線を作成するにはディジタイザ等の
入力装置を複雑に組み合せることにより任意のガンマ曲
線を作成するため、コスト高になる。また、RAMに書き
込む所望のガンマ変換テーブルをあらかじめ用意してお
き、その中から選択するものがあるが、画像データ入力
の度に選択する必要があり、非常に不便であった。
However, in order to create a gamma curve, an arbitrary gamma curve is created by complicatedly combining input devices such as a digitizer, which results in high cost. Further, although a desired gamma conversion table to be written in the RAM is prepared in advance and there is one that can be selected, it is very inconvenient because it needs to be selected each time image data is input.

〔発明の目的〕[Object of the Invention]

この発明は、上記の点に鑑みなされたもので、入力され
る複数種類の画像データの特性を変換するためのガンマ
変換データをメモリに書き込んでそれぞれ作成し、該メ
モリに作成された各ガンマ変換データを入力される各パ
ラメータに基づいて所望の特性に変更することにより、
入力される複数種類の各画像データに種々の画像変換を
行えるガンマ変換回路を提供することを目的とする。以
下、この発明を図面について説明する。
The present invention has been made in view of the above points, and writes gamma conversion data for converting the characteristics of a plurality of types of image data to be input into a memory to create the gamma conversion data, and to generate each gamma conversion data in the memory. By changing the data to the desired characteristics based on each input parameter,
An object of the present invention is to provide a gamma conversion circuit that can perform various image conversions on a plurality of types of input image data. Hereinafter, the present invention will be described with reference to the drawings.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示すガンマ変換装置の構
成ブロック図で、1は10ビットのアドレス線と8ビット
のデータ線を有するRAM(群RAM)、2はガンマ変換デー
タの作成手段となるCPUで、接続されるアドレス線また
はデータ線を制御する。3は前記RAM1に初期値を与える
パラメータまたはデータを送出する不揮発性メモリ(RO
M)、4,5は作成されたガンマ変換データを置き換えるた
めのパラメータをRAM1に送出する入力装置である。6は
識別信号に応じて画像データを選別するとともにCPU2が
送出するアドレス値をRAM1のアドレス入力に送出する第
1データセレクタ、7は制御線を切り換えるデータセレ
クタ、8は前記CPU2より送出されるガンマ変換データと
RAM1からの出力データとを切り換える第2データセレク
タである。9は前記RAM1のアドレス入力に接続される10
ビットのアドレス線またはデータ線、10は前記第1デー
タセレクタ6とRAM1を接続する8ビットのアドレス線ま
たはデータ線で、アドレス線9の下位8ビット使用す
る。11は前記データセレクタ7が選択した2ビットのア
ドレス線または制御線であり、アドレス線9の上位2ビ
ットを使用する。12は前記RAM1のデータ入力端子に接続
される8ビットのデータ線、13は8ビットの出力データ
線(データ線)である。14〜17はカラー画像を形成する
4組の入力データ線で、例えばイエロ(Y)信号,マゼ
ンダ(M)信号,シアン(C)信号,ブラック(K)信
号が各入力データ線14〜17に対応している。18は10ビッ
トで構成されるアドレスバス(アドレス線)で、この内
下位8ビットはアドレスバス(アドレス線)19に、上位
2ビットはアドレスバス(アドレス線)20にそれぞれ使
用される。21はデータ制御線(制御線)で、第1データ
セレクタ6に作用して入力データ線14〜17のうち1つを
選択させるとともに、データセレクタ7に作用しアドレ
ス線11を接続する。22は前記CPU2のデータバスで、第2
データセレクタ8に接続される。なお、ROM3の内容はRA
M1に初期状態を作るデータでもいいし、後述するCPU2の
機能により、入力データ線14〜17より入力されるカラー
画像データをガンマ変換するためのガンマ曲線を決定す
る8つ(2つが1組で各入力データ線14〜17に対応す
る)のパラメータでもよい。
FIG. 1 is a block diagram of a gamma conversion device showing an embodiment of the present invention, in which 1 is a RAM (group RAM) having 10-bit address lines and 8-bit data lines, and 2 is a means for creating gamma-converted data. The connected CPU controls the connected address or data lines. 3 is a non-volatile memory (RO which sends out parameters or data for giving initial values to the RAM 1)
M), 4 and 5 are input devices for sending parameters for replacing the created gamma conversion data to RAM1. 6 is a first data selector for selecting the image data according to the identification signal and sending the address value sent by the CPU 2 to the address input of the RAM 1, 7 is a data selector for switching the control line, 8 is a gamma sent from the CPU 2. With converted data
It is a second data selector that switches between output data from RAM1. 9 is connected to the address input of the RAM1 10
A bit address line or data line, 10 is an 8-bit address line or data line connecting the first data selector 6 and the RAM 1, and the lower 8 bits of the address line 9 are used. Reference numeral 11 is a 2-bit address line or control line selected by the data selector 7, and uses the upper 2 bits of the address line 9. Reference numeral 12 is an 8-bit data line connected to the data input terminal of the RAM 1, and 13 is an 8-bit output data line (data line). 14 to 17 are four sets of input data lines forming a color image. For example, a yellow (Y) signal, a magenta (M) signal, a cyan (C) signal, and a black (K) signal are input to each input data line 14 to 17. It corresponds. Reference numeral 18 is an address bus (address line) composed of 10 bits, of which the lower 8 bits are used for the address bus (address line) 19 and the upper 2 bits are used for the address bus (address line) 20. Reference numeral 21 is a data control line (control line) which acts on the first data selector 6 to select one of the input data lines 14 to 17, and acts on the data selector 7 to connect the address line 11. 22 is the data bus of the CPU2, and the second
It is connected to the data selector 8. The contents of ROM3 are RA
It may be data that creates the initial state in M1, or by the function of CPU2, which will be described later, determines the gamma curve for gamma conversion of the color image data input from the input data lines 14-17. Parameters corresponding to the respective input data lines 14 to 17).

次に動作について説明する。Next, the operation will be described.

まず、電源が投入されるとCPU2はプログラムに応じて図
示されない周辺機器を通常用いられる手段によって初期
化する。次にCPU2はROM3から入力データ線14に入力され
る画像データをガンマ変換するためのパラメータの組ay
とbyを取り出す。CPU2は第1データセレクタ6を制御し
てアドレスバス19とアドレス線1およびデータセレクタ
7を制御してアドレスバス20とアドレス線11を接続し
て、CPU2のアドレスバス18をRAM1のアドレス入力に接続
する。さらにCPU2は第2データセレクタ8を制御してデ
ータバス22をデータ線12を介してRAM1のデータ入力に接
続する。次にCPU2は10ビットからなるアドレスバス18の
上位2ビットで構成するアドレスバス20およびアドレス
線11を“0"にし、アドレス線19、すなわちアドレス線10
のアドレスを“0〜255"まで順次変化させながら、上記
パラメータの組ayとbyにより後述する方法でCPU2で計算
されるガンマ曲線に相当するガンマ変換データをデータ
バス22、すなわちデータ線12を介して、通常用いられる
方法でRAM1の下位256バイトに書き込む。続いて、CPU2
はROM3から入力データ線15に入力される画像データをガ
ンマ変換するためのパラメータの組amとbmを取り出し、
アドレス線20およびアドレス線11を“1"にし、前述同様
にRAM1の続く256バイトにガンマ変換データを書き込
む。続いて、CPU2はROM3から入力データ線16に入力され
る画像データをガンマ変換するためのパラメータの組ac
とbcを取り出し、アドレス線20およびアドレス線11を
“2"にし、前述同様にRAM1の続く256バイトにガンマ変
換データを書き込む。続いて、CPU2はROM3から入力デー
タ線17に入力される画像データをガンマ変換するための
パラメータの組akとbkを取り出し、アドレス線20および
アドレス線11を“3"にし、前述同様にRAM1の続く256バ
イトにガンマ変換データを書き込む。次にCPU2はデータ
セレクタ7を切り換えて制御線21を制御線11に接続する
とともに第2データセレクタ8を切り換えてデータ線12
を出力データ線13に接続する。これにより、RAM1はCPU2
から切り離され、入力データ線14〜17から入力される画
像データ信号Y,M,C,Kと制御線21より入力される識別信
号とによって決定されるRAM1のガンマ変換データを出力
データ線13に出力する。このように、上記識別信号は第
1データセレクタ6に作用して入力データ線14〜17のう
ち1つを選択し、RAM1の上位アドレスとなって、書き込
まれた1つのガンマ変換テーブル(ガンマ変換データの
集合体)中の1つを選択する。従って、例えば制御線21
に入力される識別信号が“1"の場合は、入力データ線15
より画像データ信号Mがデータ線10に接続され、画像デ
ータ信号M“0〜255"は実質的にデータ線9上で“256
〜511"とになり、RAM1の2番目に作成されたガンマ変換
テーブルによってデータ変換されて出力データ線13に送
出される。
First, when the power is turned on, the CPU 2 initializes a peripheral device (not shown) according to a program by a normally used means. Next, the CPU 2 sets a set of parameters for gamma conversion of the image data input from the ROM 3 to the input data line 14 ay
And take out by. The CPU 2 controls the first data selector 6 to control the address bus 19 and the address line 1 and the data selector 7 to connect the address bus 20 and the address line 11, and connects the address bus 18 of the CPU 2 to the address input of the RAM 1. To do. Further, the CPU 2 controls the second data selector 8 to connect the data bus 22 to the data input of the RAM 1 via the data line 12. Next, the CPU 2 sets the address bus 20 and the address line 11 composed of the upper 2 bits of the 10-bit address bus 18 to "0" and sets the address line 19, that is, the address line 10.
While sequentially changing the address of "0 to 255", the gamma conversion data corresponding to the gamma curve calculated by the CPU2 by the method described later by the set of parameters ay and by is transmitted via the data bus 22, that is, the data line 12. Then, write to the lower 256 bytes of RAM1 by a commonly used method. Then, CPU2
Takes out a set of parameters am and bm for gamma converting the image data input from the ROM 3 to the input data line 15,
The address line 20 and the address line 11 are set to "1", and the gamma conversion data is written in the following 256 bytes of RAM1 as described above. Subsequently, the CPU 2 sets a parameter set ac for gamma conversion of the image data input from the ROM 3 to the input data line 16.
And bc are taken out, the address line 20 and the address line 11 are set to "2", and the gamma conversion data is written in the subsequent 256 bytes of the RAM1 as described above. Subsequently, the CPU 2 takes out a set of parameters ak and bk for gamma-converting the image data input from the ROM 3 to the input data line 17, sets the address line 20 and the address line 11 to “3”, and stores them in the RAM 1 as described above. Write the gamma conversion data in the following 256 bytes. Next, the CPU 2 switches the data selector 7 to connect the control line 21 to the control line 11 and switches the second data selector 8 to switch the data line 12
Is connected to the output data line 13. As a result, RAM1 becomes CPU2
Gamma conversion data of RAM1 determined by the image data signals Y, M, C, K input from the input data lines 14 to 17 and the identification signal input from the control line 21 to the output data line 13 Output. As described above, the identification signal acts on the first data selector 6 to select one of the input data lines 14 to 17 and becomes the upper address of the RAM 1 so that one written gamma conversion table (gamma conversion table) is selected. Select one of the data collections). Therefore, for example, the control line 21
If the identification signal input to is “1”, input data line 15
The image data signal M is connected to the data line 10, and the image data signal M “0 to 255” is substantially “256” on the data line 9.
.About.511 ", the data is converted by the gamma conversion table created second in the RAM 1 and sent to the output data line 13.

ところが、入力データ線14〜17のすべての信号に対しそ
のガンマ変換が常に好ましい結果をもたらすとはかぎら
ない。例えば画像データ信号Cに対応するRAM1内の512
〜767番地に格納されている第3のガンマ変換テーブル
を書き換えたい場合は、入力装置4,5よりその曲線を作
るためのパラメータの組ac′,bc′を入力すると、CPU2
は第1データセレクタ6,データセレクタ7,第2データセ
レクタ8を制御して、前述同様アドレスバス19とデータ
線10およびアドレスバス20と制御線11、さらにはデータ
バス22とデータ線12をそれぞれ接続する。そして、アド
レスバス20を“2"にしてアドレスバス19を0〜255まで
順次変化させ、実質的にデータ線9の下位8ビットにア
ドレスデータ512〜767をRAM1のアドレス入力端に入力
し、入力装置4,5より入力されたパラメータac′,bc′か
らCPU2が計算したガンマ曲線を形成するガンマ変換デー
タ512〜767をRAM1のデータ入力端に順次書き込む。この
書き込みが終了すると、データセレクタ7,第2データセ
レクタ8はそれぞれ制御線21,11をデータ線12および出
力データ線13を接続する。なお、通常必要とされるRAM1
のチップイネーブル端,リード/ライト端,制御線およ
びROM3のチップイネーブル端,アドレス,リード線さら
には入力装置4,5のアドレス線,割込線等は公知の技術
により接続されており、特に図示していない。
However, the gamma conversion does not always give desirable results for all signals on the input data lines 14-17. For example, 512 in RAM1 corresponding to image data signal C
If you want to rewrite the third gamma conversion table stored at addresses ~ 767, input a set of parameters ac ', bc' for making that curve from the input devices 4 and 5, and the CPU2
Controls the first data selector 6, the data selector 7, and the second data selector 8 to control the address bus 19 and the data line 10, the address bus 20 and the control line 11, and the data bus 22 and the data line 12, respectively. Connecting. Then, the address bus 20 is set to "2" and the address bus 19 is sequentially changed from 0 to 255, and the address data 512 to 767 are substantially input to the lower 8 bits of the data line 9 to the address input terminal of the RAM1 and input. Gamma conversion data 512 to 767 forming a gamma curve calculated by the CPU 2 from the parameters ac 'and bc' input from the devices 4 and 5 are sequentially written into the data input terminal of the RAM 1. When this writing is completed, the data selector 7 and the second data selector 8 connect the control lines 21 and 11 to the data line 12 and the output data line 13, respectively. RAM1 which is usually required
The chip enable end, the read / write end, the control line and the chip enable end of the ROM3, the address and the read line, and the address lines and interrupt lines of the input devices 4 and 5 are connected by a known technique. Not shown.

次にガンマ変換テーブルの書換え作業について説明す
る。
Next, the rewriting operation of the gamma conversion table will be described.

入力装置4,5より任意のパラメータai(第2図に示す),
bi(第3図に示す)が入力されると、まず、下記の直線
の方程式が決定され、 Y=ai(X−bi) ……(1) 次いで、CPU2が上記第(1)式で決定されたYを用いて
下記の第(2)式よりガンマ変換データをd=0〜255
まで計算する。なお、[ ]はガウス記号である。
Arbitrary parameters ai (shown in FIG. 2) from the input devices 4 and 5,
When bi (shown in FIG. 3) is input, the following linear equation is first determined, and Y = ai (X−bi) (1) Then, the CPU 2 determines it by the above equation (1). Using the calculated Y, the gamma conversion data is d = 0 to 255 from the following formula (2).
Calculate up to. In addition, [] is a Gaussian symbol.

ただし、Yi=a(Xi−b) for b≦Xi≦(255/a)+b Yi=0 for Xi<b Yi=255 for Xi>(255/a)+b Yi=−ab for Xi<0 かつ b<0 とする。 However, Yi = a (Xi−b) for b ≦ Xi ≦ (255 / a) + b Yi = 0 for Xi <b Yi = 255 for Xi> (255 / a) + b Yi = −ab for Xi <0 and b <0.

第4図はa=2,b=63のパラメータに対してガンマ変換
データ0〜255を第(1)式,第(2)式に基づいて計
算した例を示している。ただし、第2式においてn=9
とした。
FIG. 4 shows an example in which the gamma conversion data 0 to 255 are calculated based on the equations (1) and (2) for the parameters of a = 2 and b = 63. However, in the second equation, n = 9
And

第5図〜第6図は同じく上記手順に従って計算されたガ
ンマ曲線であり、実線はYiを示し、破線はTable(d)
を示し、かつ、横軸はテーブル番号(d)0〜255を表
し、縦軸はガンマ変換値をそれぞれ表わしている。
Similarly, FIGS. 5 to 6 are gamma curves calculated according to the above procedure, the solid line indicates Yi, and the broken line is Table (d).
, And the horizontal axis represents the table numbers (d) 0 to 255, and the vertical axis represents the gamma conversion value.

次にテストモードとしてRAM1に作成されているガンマ変
換テーブルの内容(Table(d))を出力する方法につ
いて説明する。
Next, a method of outputting the contents (Table (d)) of the gamma conversion table created in the RAM1 as the test mode will be described.

CPU2は第1データセレクタ6とデータセレクタ7を制御
してアドレスバス18を実質的にRAM1のアドレス線9に接
続する。続いて、CPU2は第2データセレクタ8を制御し
てRAM1のデータ線12を出力データ線13に接続する。その
後、普通の手段によりCPU2はアドレスバス18に0〜1023
のアドレスデータをすべて出力する。その時、出力デー
タ線13にはRAM1の内容がすべて送出される。
The CPU 2 controls the first data selector 6 and the data selector 7 to connect the address bus 18 to the address line 9 of the RAM 1 substantially. Subsequently, the CPU 2 controls the second data selector 8 to connect the data line 12 of the RAM 1 to the output data line 13. After that, the CPU2 uses 0 to 1023 on the address bus 18 by the usual means.
Output all address data of. At that time, the entire contents of RAM1 are sent to the output data line 13.

次に第7図のフローチャートを参照しながらガンマ変換
テーブルの作成および出力準備動作について説明する。
なお、S1〜S16は各ステップを表す。
Next, the gamma conversion table creation and output preparation operation will be described with reference to the flowchart of FIG.
Note that S1 to S16 represent each step.

まず、CPU2が第1データセレクタ6を制御してアドレス
線19とデータ線10とを接続するとともに(S1)、同じく
データセレクタ7を制御してアドレスバス20とアドレス
線11とを接続し(S2)、同じく第2データセレクタ8を
制御してデータバス22とデータ線12とを接続する(S
3)。続いて、CPU2がアドレスバス20に“0"を送出する
(S4)。次いで、アドレスバス20に“4"が送出されてい
るかどうかを判断し(S5)、NOの場合はROM3よりパラメ
ータの組ayとbyを取り込み(S6)、CPU2がアドレスバス
19に“0"を送出する(S7)。続いて、アドレスバス19の
アドレス値が“256"であるかどうかを判断し(S8)、NO
にの場合は、上述の通りCPU2がガンマ変換データ0〜25
5を計算し(S9)、ガンマ変換データ0〜255をデータバ
ス22に送出し(S10)、このガンマ変換データ0〜255を
データ線12よりRAM1のデータ入力端子に書き込み(S1
1)、次いで、アドレスバス19のアドレス値を“1"イン
クリメントしステップS8へ戻る(S12)。一方、ステッ
プS8の判断でYESの場合は、アドレスバス20のアドレス
値を“1"インクリメントしステップS5へ戻る(S13)。
一方、ステップS5の判断でYESの場合は作成されたガン
マ変換データの出力準備動作に移り、まず、第1データ
セレクタ6の制御を制御線21に移し(S14)、CPU2がデ
ータセレクタ7を切り換えて制御線21とアドレス線11と
を接続するとともに(S15)、第2データセレクタ8を
切り換えてデータ線12と出力データ線13を接続し(S1
6)、出力準備を終了する。
First, the CPU 2 controls the first data selector 6 to connect the address line 19 and the data line 10 (S1), and also controls the data selector 7 to connect the address bus 20 and the address line 11 (S2). ), Similarly controlling the second data selector 8 to connect the data bus 22 and the data line 12 (S
3). Then, the CPU 2 sends "0" to the address bus 20 (S4). Next, it is judged whether or not "4" is sent to the address bus 20 (S5), and if NO, the parameter set ay and by are fetched from the ROM 3 (S6), and the CPU 2 sends the address bus.
"0" is sent to 19 (S7). Then, it is determined whether the address value of the address bus 19 is "256" (S8), and NO
In case of, the CPU2 causes the gamma conversion data 0 to 25 as described above.
5 is calculated (S9), gamma conversion data 0 to 255 is sent to the data bus 22 (S10), and this gamma conversion data 0 to 255 is written from the data line 12 to the data input terminal of RAM1 (S1
1) Then, the address value of the address bus 19 is incremented by "1" and the process returns to step S8 (S12). On the other hand, if YES in the determination in step S8, the address value of the address bus 20 is incremented by "1" and the process returns to step S5 (S13).
On the other hand, if YES in the determination in step S5, the output preparation operation of the created gamma conversion data is started. First, the control of the first data selector 6 is transferred to the control line 21 (S14), and the CPU 2 switches the data selector 7. Control line 21 and address line 11 are connected (S15), and second data selector 8 is switched to connect data line 12 and output data line 13 (S1).
6), output preparation is completed.

次に第8図を参照しながらガンマ変換テーブルの書き換
え動作について説明する。なお、S21〜S31は各ステップ
を表す。
Next, the operation of rewriting the gamma conversion table will be described with reference to FIG. Note that S21 to S31 represent each step.

まず、CPU2が第1データセレクタ6を制御してアドレス
線19とデータ線10とを接続するとともに(S21)、同じ
くデータセレクタ7を制御してアドレスバス20とアドレ
ス線11とを接続し(S22)、同じく第2データセレクタ
8を制御してデータバス22とデータ線12とを接続する
(S23)。続いて、CPU2が新たなガンマ曲線を形成する
ためのこの発明の第2パラメータに相当するパラメータ
ac′およびbc′を入力装置4,5より取り込む(S24)、次
いで、制御線21より入力されるこの発明の第1のパラメ
ータに相当する識別信号、例えば“2"に応じてアドレス
バス20をセットし(S25)、アドレスバス19に“0"を送
出する(S26)。続いて、アドレスバス19のアドレス値
が“256"であるかどうかを判断し(S27)、NOならばス
テップS24で取り込んだパラメータac′およびbc′に応
じてCPU2がガンマ変換データ“256"を計算し(S28)、C
PU2が第2データセレクタ8を制御してデータバス22と
データ線12を接続し(S29)、ステップS28で計算したガ
ンマ変換データをRAM1内の512〜767番地に新たに書き込
む(S30)。次いで、アドレスバス19のアドレス値を
“1"インクリメントしステップS27へ戻る(S31)。一
方、ステップS27でYESの場合は書き込み動作を終了す
る。
First, the CPU 2 controls the first data selector 6 to connect the address line 19 and the data line 10 (S21), and also controls the data selector 7 to connect the address bus 20 and the address line 11 (S22). ), Similarly controlling the second data selector 8 to connect the data bus 22 and the data line 12 (S23). Then, the parameter corresponding to the second parameter of the present invention for the CPU 2 to form a new gamma curve
Ac 'and bc' are fetched from the input devices 4 and 5 (S24), and then the address bus 20 is set in accordance with the identification signal corresponding to the first parameter of the present invention input from the control line 21, for example, "2". Set (S25) and send "0" to the address bus 19 (S26). Then, it is determined whether the address value of the address bus 19 is "256" (S27), and if NO, the CPU 2 sends the gamma conversion data "256" according to the parameters ac 'and bc' fetched in step S24. Calculate (S28), C
PU2 controls the second data selector 8 to connect the data bus 22 and the data line 12 (S29), and newly writes the gamma conversion data calculated in step S28 to the addresses 512 to 767 in RAM1 (S30). Then, the address value of the address bus 19 is incremented by "1" and the process returns to step S27 (S31). On the other hand, if YES in step S27, the write operation ends.

次に第9図のフローチャートを参照しながら疑似信号発
生動作について説明する。なお、S41〜S47は各ステップ
を表す。
Next, the pseudo signal generating operation will be described with reference to the flowchart of FIG. Note that S41 to S47 represent each step.

まず、CPU2が第1データセレクタ6を制御してアドレス
バス19とデータ線10とを接続し(S41)、また、同じく
データセレクタ7を制御してアドレスバス20と制御線11
とを接続し(S42)、さらに、同じく第2データセレク
タ8を制御してデータ線12と出力データ線13とを接続す
る(S43)。次いで、CPU2がアドレスバス18に“0"を送
出し疑似信号送出準備を整え(S44)、続いて、アドレ
スバス18のアドレス値が“1024"であるかどうかを判断
し(S45)、NOならばRAM1に格納されているガンマ変換
データ“0〜1024"を順次データ線12を介して出力デー
タ線13に出力する(S46)。次いで、アドレスバス18の
アドレス値を“1"インクリメントしてステップS45へ戻
る(S47)。このステップS45〜47の繰り返しにより、入
力データ線14〜17にあたかもカラー画像データが送出さ
れたかのように疑似信号(ガンマ変換データ)がRAM1よ
り出力される。一方、ステップS45の判断で、YESの場合
は疑似信号発生動作を終了する。
First, the CPU 2 controls the first data selector 6 to connect the address bus 19 and the data line 10 (S41), and also controls the data selector 7 to control the address bus 20 and the control line 11.
Are connected (S42), and the second data selector 8 is also controlled to connect the data line 12 and the output data line 13 (S43). Next, the CPU 2 sends "0" to the address bus 18 to prepare for sending a pseudo signal (S44), and then determines whether the address value of the address bus 18 is "1024" (S45). For example, the gamma conversion data "0 to 1024" stored in the RAM 1 are sequentially output to the output data line 13 via the data line 12 (S46). Then, the address value of the address bus 18 is incremented by "1" and the process returns to step S45 (S47). By repeating these steps S45 to S47, the pseudo signal (gamma conversion data) is output from the RAM1 as if the color image data were sent to the input data lines 14 to 17. On the other hand, if YES in the determination in step S45, the pseudo signal generating operation ends.

〔発明の効果〕〔The invention's effect〕

以上説明したように、この発明によれば、作成手段が複
数の変換データのうち第1パラメータによって選択され
たガンマ変換データを変換データ作成のための第2パラ
メータに基づき作成しメモリに書き込むので、入力され
る各画像データの種別に基づいてメモリ上に作成した任
意の種類の画像データに対応するガンマ変換データを、
入力装置から所望の第1,第2パラメータを入力するだけ
で、所望の特性の変換データに書き換えることができ、
入力される複数種類の各画像データに種々の画像変換を
行えるという効果を奏する。
As described above, according to the present invention, the creating means creates the gamma conversion data selected by the first parameter from the plurality of conversion data based on the second parameter for creating the conversion data, and writes it in the memory. Gamma conversion data corresponding to any type of image data created on the memory based on the type of each input image data,
By inputting the desired first and second parameters from the input device, the converted data with the desired characteristics can be rewritten,
It is possible to perform various image conversions on each of a plurality of types of input image data.

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

第1図はこの発明の一実施例を示すガンマ変換回路の構
成ブロック図、第2図,第3図はガンマ変換データ書換
え用の入力パラメータを示す図、第4図はガンマ変換デ
ータの計算値例を示す図、第5図,第6図はガンマ変換
データ特性を示す波形図、第7図はガンマ変換テーブル
の作成および出力準備動作を説明するフローチャート、
第8図はガンマ変換テーブルの書き換え動作を説明する
フローチャート、第9図は疑似信号発生動作を説明する
フローチャートである。 図中、1はRAM、2はCPU、3はROM、4,5は入力装置、6
は第1データセレクタ、7はデータセレクタ、8は第2
データセレクタ、9,10,11はアドレス線、12はデータ
線、13は出力データ線、14〜17は入力データ線、18,19,
20はアドレスバス、21は制御線、22はデータバスであ
る。
FIG. 1 is a block diagram of a gamma conversion circuit showing an embodiment of the present invention, FIGS. 2 and 3 are diagrams showing input parameters for rewriting gamma conversion data, and FIG. 4 is a calculated value of gamma conversion data. FIG. 5 shows an example, FIG. 5 and FIG. 6 are waveform diagrams showing gamma conversion data characteristics, and FIG. 7 is a flow chart for explaining a gamma conversion table creation and output preparation operation.
FIG. 8 is a flow chart for explaining the rewriting operation of the gamma conversion table, and FIG. 9 is a flow chart for explaining the pseudo signal generating operation. In the figure, 1 is RAM, 2 is CPU, 3 is ROM, 4 and 5 are input devices, 6
Is a first data selector, 7 is a data selector, and 8 is a second
Data selectors, 9, 10, 11 are address lines, 12 are data lines, 13 are output data lines, 14-17 are input data lines, 18, 19,
20 is an address bus, 21 is a control line, and 22 is a data bus.

フロントページの続き (72)発明者 河村 尚登 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (56)参考文献 特開 昭58−186291(JP,A)Front page continuation (72) Inventor Naoto Kawamura 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (56) Reference JP-A-58-186291 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数種類の画像データを画像データの種類
を表す識別データとともに入力するデータ入力手段と、 このデータ入力手段により入力した画像データの特性を
変換するためのガンマ変換データを作成する作成手段
と、 この作成手段により作成された複数種類の画像データに
対応した複数のガンマ変換データが格納可能であり、前
記入力した識別データに応じて複数のガンマ変換データ
の1つを選択し選択されたガンマ変換データを用い前記
入力した画像データを変換し、変換されたデータを出力
するメモリと、 前記複数のガンマ変換データのうちどの変換データを変
更するかを示す第1パラメータ及びガンマ変換データ作
成のための第2パラメータを入力するパラメータ入力手
段とを有し、 前記作成手段は、前記複数の変換データのうち前記第1
パラメータによって選択されたガンマ変換データを変換
データ作成のための第2パラメータに基づき作成し前記
メモリに書き込むことを特徴とするガンマ変換回路。
1. A data input means for inputting a plurality of types of image data together with identification data indicating the type of image data, and a gamma conversion data for converting characteristics of the image data input by the data input means. Means and a plurality of gamma conversion data corresponding to a plurality of types of image data created by the creating means can be stored, and one of the plurality of gamma conversion data is selected and selected according to the input identification data. Memory for converting the input image data using the gamma-converted data and outputting the converted data, and a first parameter indicating which conversion data of the plurality of gamma-converted data is to be changed and gamma-converted data creation And a parameter input means for inputting a second parameter for The first of which
A gamma conversion circuit, characterized in that gamma conversion data selected by a parameter is created based on a second parameter for creating conversion data and written in the memory.
JP59184684A 1984-09-05 1984-09-05 Gamma conversion circuit Expired - Lifetime JPH0722398B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP59184684A JPH0722398B2 (en) 1984-09-05 1984-09-05 Gamma conversion circuit
US07/183,300 US4805013A (en) 1984-09-05 1988-04-11 Image data conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59184684A JPH0722398B2 (en) 1984-09-05 1984-09-05 Gamma conversion circuit

Publications (2)

Publication Number Publication Date
JPS6163181A JPS6163181A (en) 1986-04-01
JPH0722398B2 true JPH0722398B2 (en) 1995-03-08

Family

ID=16157561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59184684A Expired - Lifetime JPH0722398B2 (en) 1984-09-05 1984-09-05 Gamma conversion circuit

Country Status (1)

Country Link
JP (1) JPH0722398B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0287779A (en) * 1988-09-26 1990-03-28 Ricoh Co Ltd Image processing device
JPH02309888A (en) * 1989-05-25 1990-12-25 Canon Inc Video signal correction device
JPH06335019A (en) * 1993-05-20 1994-12-02 Fujitsu General Ltd Video signal correction circuit
JP4656617B2 (en) * 2000-01-28 2011-03-23 株式会社バンダイナムコゲームス GAME SYSTEM, PROGRAM, AND INFORMATION STORAGE MEDIUM
US7116334B2 (en) 2000-01-28 2006-10-03 Namco Bandai Games Inc. Game system and image creating method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58186291A (en) * 1982-04-23 1983-10-31 Sony Corp Gradation converting method of color video signal

Also Published As

Publication number Publication date
JPS6163181A (en) 1986-04-01

Similar Documents

Publication Publication Date Title
US5408342A (en) Color image processing apparatus, method, and printer driver
KR0135846B1 (en) Look-up-table unit
US5229763A (en) Remote controller with learning function
US5729664A (en) Image processing apparatus and method for converting an input color image signal from one color space to another
JPH0722398B2 (en) Gamma conversion circuit
US5424734A (en) Variable logic operation apparatus
JP2702408B2 (en) Image conversion system
JPS6163182A (en) Gamma conversion circuit
JPS6163183A (en) Gamma conversion circuit
JPH0149973B2 (en)
JPH09247471A (en) Color conversion table generator
EP0151184B1 (en) Apparatus for emphasizing and displaying nc command program portion stored at specific address
JPH05211659A (en) Gamma correction circuit and method
JPH01321542A (en) data conversion circuit
JPH0636001A (en) Device and method for color selection
JP2844971B2 (en) Digital code processing system
JP2572431B2 (en) Color display device
JP2650988B2 (en) Image display device
JPH0273779A (en) Color correction circuit
JPH0535243A (en) Image processor
JPH01120965A (en) Color adjustment method
JPH10173945A (en) Data conversion device and data conversion method
JPH0916513A (en) Data transfer method
JPH10198338A (en) Image processing device
JPH06118386A (en) Liquid crystal display controller

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term