JPS58186291A - Gradation converting method of color video signal - Google Patents

Gradation converting method of color video signal

Info

Publication number
JPS58186291A
JPS58186291A JP57068429A JP6842982A JPS58186291A JP S58186291 A JPS58186291 A JP S58186291A JP 57068429 A JP57068429 A JP 57068429A JP 6842982 A JP6842982 A JP 6842982A JP S58186291 A JPS58186291 A JP S58186291A
Authority
JP
Japan
Prior art keywords
value
data
gamma
gradation
contrast
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.)
Granted
Application number
JP57068429A
Other languages
Japanese (ja)
Other versions
JPH0342554B2 (en
Inventor
Fumio Nagumo
名雲 文男
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP57068429A priority Critical patent/JPS58186291A/en
Publication of JPS58186291A publication Critical patent/JPS58186291A/en
Publication of JPH0342554B2 publication Critical patent/JPH0342554B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/86Camera processing pipelines; Components thereof for processing colour signals for controlling the colour saturation of colour signals, e.g. automatic chroma control circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PURPOSE:To make the contrast of a reproduced picture suitable automatically even under the image pickup conditions easily causing excess or deficiency of contrast, such as rear light, home illumination, and field, by controlling gamma of converting function of X<gamma> or an equivalent value so that the frequency of generation of data in a prescribed amplitude of a color video signal is a prescribed value. CONSTITUTION:A data conversion circuit 3 includes a data conversion table 4 of a conversion function (X<gamma>) for contrast correction and a data conversion table 5 of conversion function (Y<gamma>0) (generally, gamma0=0.45) for the substantial gamma correction of nonlinearity of a color picture tube, and an output signal V is obtained. In case of two-gradation equally, the most significant bit of the prescribed sample of an output signal being 0 (1st gradation) is counted at a counter 6 and the count value h0 is applied to a detection control circuit 7. To the circuit 7, the 1st gradation value of the amplitude distribution to be an object and its corresponding value d0 are applied from a terminal 8 for the comparison of h0 and d0. The value Y of the data conversion table 4 is changed gradually so that the both are coincident. Through the negative feedback control system like this, the convergence of h0=d0 is attained.

Description

【発明の詳細な説明】 この発明は、カラービデオ信号のコントラストの改善な
どに適用されるカラービデオ信号の階調変換方法に関す
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a tone conversion method for a color video signal, which is applied to improving the contrast of a color video signal.

この発明は、入力ビデオ信号の振幅分布を用いてコント
ラストを自動的に良好とするものである。
This invention automatically improves contrast using the amplitude distribution of an input video signal.

一般的なコントラストの補正について第1図を参照して
説明する。
General contrast correction will be explained with reference to FIG.

第1図Aは、被写体の明るさL=(a、+m、邸ωt)
を示し、この被写体がビデオカメラで撮影されることに
よって第1図Bに示す撮像出力(x =2十四郭ωt)
が発生する。これは、ビデオカメラが第1図Cに示す特
性の平均値方式の自動絞シ装置を有しているからである
。この撮像出力は、コントラスト不足のものであるため
、第1図りに示す階調変換関数(y =f(x) )に
よって、交流成分がレベル調整され、第1図Eに示すよ
うな変換後のビデオ信号が得られる。
Figure 1 A shows the brightness of the subject L = (a, +m, house ωt)
When this subject is photographed with a video camera, the imaging output shown in FIG. 1B (x = 24 squares ωt) is obtained.
occurs. This is because the video camera has an average value type automatic diaphragm device having the characteristics shown in FIG. 1C. Since this imaging output lacks contrast, the AC component is level-adjusted using the gradation conversion function (y = f(x)) shown in Figure 1, resulting in the converted output as shown in Figure 1E. A video signal is obtained.

このように、撮影場所にもや、フレアーがあって黒が浮
いている場合(コントラスト不足)を自動的に補正する
ことができる。また、家庭の照明下で影の部分が多い(
黒が沈む)場合又は逆光で被写体が影にガる(コントラ
スト過剰)の場合又は、第1図Fに示す階調変換関数が
用いられる。
In this way, it is possible to automatically correct when there is haze or flare in the shooting location and the blacks appear floating (lack of contrast). Also, there are many shadow areas under home lighting (
When the subject is backlit (excessive contrast), the gradation conversion function shown in FIG. 1F is used.

第二図は撮像信号の振幅の度数分布(以下、単に振幅分
布という)から階調変換を説軒する本ので、同図におい
て、φ1(x) (1=o、  1.2 )は撮像信号
の振幅分布を示す。第コ図Aに示す平坦な振幅分布φ。
Figure 2 is a book that explains tone conversion from the frequency distribution of the amplitude of the imaging signal (hereinafter simply referred to as amplitude distribution), so in the figure, φ1(x) (1=o, 1.2) is the imaging signal shows the amplitude distribution of The flat amplitude distribution φ shown in Figure A.

(X)を仮に適正照明時のものとすると、第λ図Bに示
す振幅分布φI(x)がコントラスト不足の場合のもの
で、第二図Cに示す振幅分布φ2(x)がコントラスト
過剰の場合のものである。
If (X) is assumed to be under proper illumination, the amplitude distribution φI(x) shown in Figure λB is the one when the contrast is insufficient, and the amplitude distribution φ2(x) shown in Figure 2C is the one when the contrast is excessive. It is a matter of the case.

階調補正の目標値(適正照明下の振幅分布^(X)に求
め、第Ω図F及び同図GK示すように、 *ll補正後
の振幅分布をf (z)、 h (IC)とするとき、
(?−央=φ0)となる第2図り及び同図Eに示す変換
関数7x(x)及び、/”z(x)が求める最適なもの
である。
The target value of gradation correction (amplitude distribution under proper illumination ^ (X) is determined, and as shown in Figure Ω F and GK of the same figure, the amplitude distribution after correction is f (z), h (IC). and when,
The conversion functions 7x(x) and /''z(x) shown in the second diagram and E in the same figure, where (?-center=φ0), are the optimum ones to be found.

上述のように、撮像出力の振幅分布をコシトラストが適
正なときの目標とする振幅分布に変換しようとする場合
の変換を簡単に行なうために、撮像信号の振幅分布を平
坦分布に一度変−換し、この平坦分布を目標とする振幅
分布に変換することが考えられる。この平坦分布への変
換について説明する。
As mentioned above, in order to easily convert the amplitude distribution of the imaging output to the target amplitude distribution when the cosilast is appropriate, the amplitude distribution of the imaging signal is once changed to a flat distribution. Alternatively, it is conceivable to convert this flat distribution into a target amplitude distribution. This conversion to a flat distribution will be explained.

撮像信号の振幅軸を(0≦工≦/)とし、変換後の振幅
軸yも同一範囲内におさめるものとする。
It is assumed that the amplitude axis of the imaging signal is (0≦t≦/), and the amplitude axis y after conversion is also within the same range.

また、撮像信号の振幅分布をφ(X)、変換後のものを
ψ(y)、目標値をψd(y)とする。ψ(y)−ψd
(y)となるために必要な変換関数をy=f(x)とす
るとφ(1)dx=ψd(y)ay         
 ・・曲(1)但し く1)式から、一般的に階調変換関数f(x)を求める
ことは困難であるが、ψd(y) −/の場合には容易
である。つまシ Y=f(X)−fφ(x)+dx         −
−(3)これをヒストグラムイコライゼーションと呼ぶ
ことにする。第3図A及び同図Bに夫々示す振幅分布φ
(X)は、同図C及び同図りに夫々示す階調変換関数に
よって平坦分布に変換されるととKなる。
Further, the amplitude distribution of the imaging signal is assumed to be φ(X), the one after conversion is assumed to be ψ(y), and the target value is assumed to be ψd(y). ψ(y)−ψd
If the conversion function necessary to obtain (y) is y = f (x), then φ (1) dx = ψ d (y) ay
...Song (1) However, it is generally difficult to obtain the gradation conversion function f(x) from equation 1), but it is easy in the case of ψd(y) -/. Tsumashi Y=f(X)−fφ(x)+dx−
-(3) This will be called histogram equalization. Amplitude distribution φ shown in FIGS. 3A and 3B, respectively
(X) becomes K when converted into a flat distribution by the gradation conversion functions shown in C and the same figure, respectively.

次に、第グ図Aに示す平坦分布の振幅分布φ(χ)を第
弘図BK示す振幅分布ψd(y)K変換することを考え
る。ここで、ψd(y)は1次式で表わされるように、
角形で近似されたものである。
Next, let us consider converting the amplitude distribution φ(χ) of the flat distribution shown in Figure A to the amplitude distribution ψd(y)K shown in Figure BK. Here, ψd(y) is expressed as a linear equation,
It is approximated by a square.

ψd(y) = at   yi≦y≦yi+1 (1
;Q、 1. ”−” m )ただし−       
       ・凹曲(4)T!jdx (y i+1
  y工)−/          ・凹曲(5)l寓
O また1φ(x )dx = d + Ndy     
     川−(6)したがって、dy = di−’
 ・φ(1)−d(1)   −・・−・−(7)この
とき階調変換関数f(X)#′i、第グ図Cに示され、
次式で示すものとなる。
ψd(y) = at yi≦y≦yi+1 (1
;Q, 1. "-" m) However-
・Concave (4) T! jdx (y i+1
y engineering) −/ ・Concave curve (5) 1 φ (x) dx = d + Ndy
River − (6) Therefore, dy = di−′
・φ(1)−d(1) −・・−・−(7) In this case, the gradation conversion function f(X)#′i is shown in Fig. C,
It is expressed by the following formula.

f(x) = di−J”φ(x)dx + yl  
yi≦y≦y++、・・・・・・・・・(8) テレビカメラの場合には、複雑な階調補正は必要でなく
、上述りように目標の振幅分布ψd (y)を粗い等間
隔の角形に近似しても実用上充分である。
f(x) = di-J”φ(x)dx + yl
yi≦y≦y++, (8) In the case of a television camera, complicated gradation correction is not necessary, and as described above, the target amplitude distribution ψd (y) is roughened, etc. Approximating the interval to a rectangular shape is sufficient for practical purposes.

更に、撮像信号の振幅分布φ(1)も同様に角形に近似
しても良い。
Furthermore, the amplitude distribution φ(1) of the imaging signal may be similarly approximated to a rectangular shape.

このようにして撮像宥号の振幅分布及び目標の振幅分布
を角形に近似し、前述のヒストグラムイコライゼーショ
ンを用いることによシ、実用的な階調変換関数の導出法
を求めることができる。
In this way, by approximating the amplitude distribution of the imaging signal and the target amplitude distribution to a rectangular shape and using the above-described histogram equalization, a practical method for deriving a tone conversion function can be obtained.

(ψd=/)の場合の変換関数の導出について説明する
。まず、撮像信号の振幅分布φ(X)を次のように近似
する。但1.、htは等間隔ヒストグラムの度数である
Derivation of the conversion function in the case of (ψd=/) will be explained. First, the amplitude distribution φ(X) of the imaging signal is approximated as follows. However, 1. , ht is the frequency of the equally spaced histogram.

φ(X)±bi   xIWx≦xt++     −
−−(9)等区間の角形近似とすれば 但し1mはヒストグラムの階級数であJy、hiは、(
14)式を満足する。
φ(X)±bi xIWx≦xt++ −
--(9) If it is a rectangular approximation with equal intervals, 1m is the number of classes in the histogram, and Jy and hi are (
14) Satisfies the formula.

次に、ψd(y)に多少の白山度(ψd (y)キ/)
を与えるだめの工夫について説明する。このとき、BX
)?、直接求めるのは5面倒であるから、次の3個のス
テップに分解する。
Next, ψd(y) has some degree of Hakusan (ψd(y)ki/)
I will explain the tricks to prevent this from happening. At this time, BX
)? , it is too troublesome to obtain it directly, so we break it down into the following three steps.

(1)前述のように、撮像出力φ(X)を第5図Aに示
すように角形近似し、これを平坦分布とするだめの第S
図Bに示す変換関数/E (X )を(13)式によっ
て求める。
(1) As mentioned above, the imaging output φ(X) is approximated as a rectangle as shown in FIG. 5A, and the S
The conversion function /E (X) shown in Figure B is determined by equation (13).

(2)  φ(u)=/ の振幅分布を第S図Cに示す
ような角形近似された目標の振幅分布ψd (y)にf
換するだめの第S図りに示す変換関数f9(u)を予め
求めておく。
(2) The amplitude distribution of φ(u)=/ is transformed into the target amplitude distribution ψd (y) by rectangular approximation as shown in Figure S.
A conversion function f9(u) shown in the S-th diagram to be converted is determined in advance.

(3)撮像出力φ(X)をψd(y)に変換するための
変換関数J(1)は y = 、/’(x) = fD(u) = fD(/
、(x) ) ・−−(15)第S図B及び第S図りに
示す関数の積であるJ’(X)は、第5図Eに示すもの
となる。
(3) The conversion function J(1) for converting the imaging output φ(X) to ψd(y) is y = , /'(x) = fD(u) = fD(/
, (x) ) (15) J'(X), which is the product of the functions shown in Figures B and S, is as shown in Figure 5E.

なお、fD(x)は、(7)式にφ(x)=/を代入す
るか、(1)式にもどってφ(x)=/を代入すること
で求められる。俵者の場合、yからXへの変換式なら容
島に求められ U=旦ψd(y)dy      ・・・・・・・・・
・・・(16)となる。(16)式は、ψd(y)が与
えられた関数であることから予め計算して、データチー
ゾル化しておくことができる。
Note that fD(x) can be obtained by substituting φ(x)=/ into equation (7), or by returning to equation (1) and substituting φ(x)=/. In the case of Tawaraya, the conversion formula from y to
...(16). Since Equation (16) is a function given ψd(y), it can be calculated in advance and converted into a data chisol.

上述の階調変換方法は、色再現ノ殊に係る考慮がなされ
ていない問題点がおる。この発明は1色再現上の次の必
要条件を満たす階調変換方法の実現を目的とするもので
ある。 ′ 第1の必要条件は、階調変換によって原色、補色軸の色
相は変化しないことである。
The above-described gradation conversion method has a problem in that no particular consideration is given to color reproduction. The object of the present invention is to realize a gradation conversion method that satisfies the following requirements for one-color reproduction. ' The first requirement is that the hues of the primary and complementary color axes do not change due to gradation conversion.

第コの必要条件は、同一色相、同一飽和度で輝度だけが
異なる被写体間(色付きのグレースケールのようなもの
)では、階調変換後も同一色相。
The first requirement is that subjects with the same hue and saturation that differ only in brightness (such as colored grayscale) have the same hue even after gradation conversion.

同一飽和度となることである。The saturation level is the same.

第1の必要条件に対しては、撮像出力のR(赤)。For the first requirement, R (red) of the imaging output.

O(緑)、B(f)の各色信号に同一の階調補正を施こ
す。
The same gradation correction is applied to each color signal of O (green) and B (f).

第コの必要条件は、階調変換関数f(X)としてJ・<
X>−エγ      ・・・・・・・・・(17)を
用いることで満足される。この点について説明すると、
任意の色の3原色成分を夫々下記に示すように赤の成分
に対する比率で表わす。
The first necessary condition is that J・<
This is satisfied by using (17). To explain this point,
The three primary color components of any color are each expressed as a ratio to the red component as shown below.

との各色信号がf(x) −Xγの階調変換関数で変換
されると となる。また、上述と輝度だけが異なる色を1川様に階
調変換すると となる。この(19) すび(21)式から明かなよう
に、kに関係なく、3原色信号の比率は同一であり、つ
まり、同一色相であシ、また、飽和1IL(ロ)(但し
、 CIは色信号レベルの絶対値)も同一となる。
Each color signal is converted by a gradation conversion function of f(x)-Xγ. Also, a color that differs only in brightness from the above will be converted into a single-color gradation. As is clear from this equation (19) and (21), the ratio of the three primary color signals is the same regardless of k, that is, the same hue, and saturation 1IL (b) (however, CI (absolute value of color signal level) is also the same.

折れ線近似の変換関数を色再現上の必要条件である(1
7拭で近似することを考える。(17拭で折れ線を近似
するには、折れ線の継ぎ目は7点に制限される。言い換
えれば、撮像信号の振幅分布φ(1)を角形近似する場
合、−階級となる。第6図Aは、1階級に分けて振幅分
布φ(x)を角型近似したものを示し、これに対して、
同図Bに示すように不勢間隔の一階級の角形近似がなさ
れる。そして、第6図Cにおいて破−線で示す(lγ)
の変換関数が折れ線近似される。この第6図Cは、変換
関数の一例であって、γの値を変えることによって第6
図りに示すような変換関数を得ることもできる。また、
コ階級に分けたときの階級端XIは、任意である。
The conversion function of the polygonal line approximation is a necessary condition for color reproduction (1
Consider approximation with 7 wipes. (In order to approximate a polygonal line with 17 wipes, the seams of the polygonal line are limited to 7 points. In other words, when the amplitude distribution φ(1) of the imaging signal is approximated as a rectangle, it becomes - class. , shows a square approximation of the amplitude distribution φ(x) divided into one class, and on the other hand,
As shown in FIG. 3B, one class of rectangular approximations are made to the unbalanced intervals. And (lγ) is shown by a broken line in FIG. 6C.
The transformation function of is approximated by a polygonal line. This FIG. 6C is an example of the conversion function, and by changing the value of γ, the 6th
It is also possible to obtain a conversion function as shown in the figure. Also,
The class end XI when divided into classes is arbitrary.

第7図は、この発明による階調変換を行なうときの基本
的な構成の一例を示す一一第7図において、1が入力端
子、2が出力端子、3がデータ変換回路を示す。このデ
ータ変換回路3は、コントラスト補正のための上述の変
換関数(Xγ)のデータ変換テーブル4とカラー受像管
の非直線性を補正する本来のがンマ補正のための変換関
数(yrG) (一般にro = 0. IIL5 )
のデータ変換デーゾル5とを含んでおり、出力信号Vが
得られる。
FIG. 7 shows an example of the basic configuration for performing gradation conversion according to the present invention. In FIG. 7, 1 is an input terminal, 2 is an output terminal, and 3 is a data conversion circuit. This data conversion circuit 3 includes a data conversion table 4 of the above-mentioned conversion function (Xγ) for contrast correction and a conversion function (yrG) (generally ro = 0.IIL5)
, and an output signal V is obtained.

一階級に分ける場合、等間隔に分けるとすると、出力信
号の所定数のサンゾルのうちで最上位ビットがθのサン
プル(第1階級値)がカウンタ6によって計数され、こ
の計数値hoが検出制御回路Iに供給される。この検出
制御回路7には、目標となる振幅分布の第1階級値と対
応する所定値dOが端子8から供給され、 hoとdo
との比較が行なわれる。この両者が一致するように、デ
ータ変換テーブル4のγの値が徐々に変えられる。この
ような負帰還制御系により、(ho=do)に収束させ
ることができる。
When dividing into one class, if it is divided at equal intervals, the counter 6 counts the samples (first class value) whose most significant bit is θ out of a predetermined number of samples of the output signal, and this count value ho is used for detection control. Supplied to circuit I. A predetermined value dO corresponding to the first class value of the target amplitude distribution is supplied to the detection control circuit 7 from a terminal 8, and ho and do
A comparison is made with The value of γ in the data conversion table 4 is gradually changed so that these two values match. With such a negative feedback control system, it is possible to converge to (ho=do).

なお、オープンルーゾの構成とし、入力撮像信号からh
Oの値を検出するようにしても良い。また、デ タ変換
テーブル4及び5は、別個のものでなく、両者を合成し
たデータ変換テーブルを用いるようにしても良い。
Note that the configuration is open Luso, and h
The value of O may also be detected. Further, the data conversion tables 4 and 5 may not be separate tables, but a combined data conversion table may be used.

第5図は、この発明による階調変換が適用されたカラー
撮像装置の一実施例の構成を示す。
FIG. 5 shows the configuration of an embodiment of a color imaging device to which tone conversion according to the present invention is applied.

第5図において、9.10.11は撮像素子としてのC
CDを示し、とのCCD9.10.11に対してアイリ
ス12を介された撮像光が入射し、色分解フィルタ(図
示−せず)によって赤、縁、青の色信号が発生する。こ
のアイリス12は、アイリスドライブ装置13によって
可変される構成とされ、所鎮オートアイリス動作が行な
われる。
In Figure 5, 9.10.11 is C as an image sensor.
Imaging light is incident on the CCD 9.10.11 through the iris 12, and red, edge, and blue color signals are generated by a color separation filter (not shown). The iris 12 is configured to be variable by an iris drive device 13, and automatic iris operation is performed at any given time.

C0D9.10. 11から発生する色信号がノリ7ン
ノl 4,15.16を介してA10コンバータ17.
18.19に供給され、ディジタル化され、アPレスセ
レクタ20,21.22に供給される。
C0D9.10. The color signal generated from the A10 converter 17.11 passes through the A10 converter 17.16.
18.19, is digitized, and is supplied to address selectors 20, 21.22.

アドレスバス31からのアドレスもアPレスセレクタ2
0,21.22に供給されており、選択されたアドレス
がRAM23,24.25に供給される。また、26.
27.28がデータセレクタを示し、書込み動作の場合
には、データバス30からのデータ変換デープルをRA
M23,24.25に供給し、続出し動作の場合には、
RAM 23.24゜25からのデータを出力として取
郵出すようにされている。
Address from address bus 31 is also address selector 2
0, 21.22, and the selected address is supplied to RAM 23, 24.25. Also, 26.
27 and 28 indicate a data selector, and in the case of a write operation, data conversion data from the data bus 30 is sent to RA.
Supplied to M23, 24.25, in case of continuous operation,
Data from RAM 23.24°25 is sent out as output.

このRAM23,24.25は共通のメモリーコントロ
ール回路29によってその書込動作及び読出動作が制御
される。アげレスセレクタ20,21゜22及びデータ
セレクタ26.27.28も、コントロール回路29に
よって制御、される。
The writing and reading operations of the RAMs 23, 24, and 25 are controlled by a common memory control circuit 29. The gearless selectors 20 , 21 , 22 and the data selectors 26 , 27 , 28 are also controlled by the control circuit 29 .

データバス30及びアドレスバス31に関連してCPU
 32. l(OM 33 、 RAM 34からなる
マイクロコンピュータが設けられている。ROM 33
には、コントラスト補正のプログラムと共に、複数個の
データ変換テーブルを発生するだめのデータが記憶され
ている。
CPU in connection with data bus 30 and address bus 31
32. l (A microcomputer consisting of OM 33 and RAM 34 is provided. ROM 33
The data for generating a plurality of data conversion tables is stored together with a contrast correction program.

この一実施例では、  (f(x) −x’ )の変換
関数を用いて階X変換を行なうと共に、rの値が異なる
複数種類の変換関数を必要とする。この変換関数の全て
をメモリー記憶しておくと、メモリーの秤量が多くなる
ので、これを少なくするため、次のような演算処理を用
いている。まず、 f(X)とg(x)との間でn通り
の変換関数を発生させるものとし。
In this embodiment, a conversion function of (f(x) - x') is used to perform the order X conversion, and a plurality of types of conversion functions with different values of r are required. If all of these conversion functions are stored in memory, the amount of memory will increase, so in order to reduce this amount, the following arithmetic processing is used. First, let us generate n types of conversion functions between f(X) and g(x).

■+cn、a 33には1.7’(X)と(J’(x)
 −g(x) )とを格納しておく。そして、f(1)
及びg(x)の中間の関数y、は yエ − yよ−s  +     4   gb) 
 −f(χ)  ト      ・・・・・・・・・(
22)の差分方程式を用い、lを/づつ増減することで
目標の変換関数を得ることができる。この(22)式の
演算は、cpu 32によってなされる。
■+cn, a 33 has 1.7'(X) and (J'(x)
-g(x)). and f(1)
and the intermediate function y of g(x) is ye − yyo−s + 4 gb)
−f(χ) ・・・・・・・・・(
The target conversion function can be obtained by increasing/decreasing l by using the difference equation (22). This calculation of equation (22) is performed by the CPU 32.

そして、データセレクタ26,27.2817)夫夫か
ら現れる色データの最上位ビットMSBの所定サンプル
数におけるOの数がカウンタ35,36゜3Tによって
計数される。この計数値hor、b。g。
Then, the number of O's in a predetermined number of samples of the most significant bit MSB of the color data appearing from the data selectors 26, 27 and 2817) is counted by the counters 35 and 36°3T. This count value hor, b. g.

hobが4回路38を介してデータバス3oに供給され
る。この計数値を用いてCPU 32が演算及び判断を
行なう。また、データ取出回路39が設けられており、
各色のデータがデータバス3oに供給され、CPU32
において5例えば各色のデータの平均値が演出され、こ
れが所定値となるようにアイリス12が制御される。こ
のオートアイリスコントロールのためのコントロールデ
ータが4回路40を介して4コ/バータ41に供給され
、アナログ信号とされてアイリスドライブ回路13に供
給される。
hob is supplied to the data bus 3o via four circuits 38. The CPU 32 performs calculations and judgments using this count value. Further, a data retrieval circuit 39 is provided,
Data for each color is supplied to the data bus 3o, and the CPU 32
In step 5, for example, the average value of data for each color is produced, and the iris 12 is controlled so that this becomes a predetermined value. Control data for this auto-iris control is supplied to a 4-co/verter 41 via a 4-circuit 40, and is supplied to the iris drive circuit 13 as an analog signal.

上述のこの発明の一実施例の動作を第9図のフローを参
照して説明する。
The operation of the embodiment of the present invention described above will be explained with reference to the flowchart of FIG.

まず、アイリスコントロールが適正かどうかがチェック
され、これが適正な場合に、コントラスト補正がなされ
る。コントラスト補正を行なうときには、各色のデータ
の所定サンプル数のうちで、θのMSBの個数がカウン
タ35,36,37によって計数され、その計数値ho
r、hog、bob、がデータバス30を介してcpu
 32に供給されゐ。
First, it is checked whether the iris control is appropriate, and if it is appropriate, contrast correction is performed. When performing contrast correction, the number of MSBs of θ is counted by the counters 35, 36, and 37 among the predetermined number of samples of data of each color, and the counted value ho
r, hog, bob, connect to the CPU via the data bus 30.
It is supplied to 32.

cpu 32により、目標値doと計数値の各々との差
の絶対値1hor  dol、 +110gdol、 
1hobdol が計算され、これが最小となるhoq
(haうはha、 hgg又はhob)が選択される。
The CPU 32 calculates the absolute value of the difference between the target value do and each of the counted values by 1hor dol, +110gdol,
1hobdol is calculated and this is the minimum hoq
(ha, ha, hgg or hob) is selected.

最小値でなく3個の値の平均値を求めるようにしても良
い。
The average value of three values may be determined instead of the minimum value.

この(h(1a−do )の極性によって、 (22X
の1の増減を決め、CPU32によってコントラスト補
正データのテーブルを発生し、このデータテーブルを)
(AM23,24.25に書込む。次に、これらのRA
Mを絖出し状態として、、出力データを堆り出す。この
データテーブルの変更には、成る程度の時間がかかるだ
めに、垂直ブランキング期間のようなデータ欠如期間を
用いたり、RAM 23.24゜25の夫々が二個のメ
モリーパンクを肩する構成とし、一方のメモリーパンク
が書込状m(データテーブル変更状態)のときに、他方
のメモリーパンクが続出状M(コントラスト補正状態)
となるように制御される。
Depending on the polarity of this (h(1a-do)), (22X
The CPU 32 generates a contrast correction data table (this data table).
(Write to AM23, 24.25. Next, these RA
With M in the starting state, the output data is output. Since it takes some time to change this data table, it is possible to use a data missing period such as a vertical blanking period, or to configure each RAM 23.24°25 to shoulder two memory punctures. , when one memory puncture is in the writing state M (data table change state), the other memory puncture is in the writing state M (contrast correction state)
It is controlled so that

コントラスト補正を行なうと、撮像信号のレベルの平均
値が変化する場合もあるので、アイリスが適正かどうか
がチェックされる。このアイリスが適正な場合にh  
1hoa−dol≦ξが成立するかどうかが調べられる
。このεは、許容範囲の誤差を意味する。この関係が成
立するまで、徐々に変換関数が変化させられる。
When contrast correction is performed, the average level of the imaging signal may change, so it is checked whether the iris is appropriate. h if this iris is appropriate
It is checked whether 1hoa-dol≦ξ holds true. This ε means an error within a permissible range. The conversion function is gradually changed until this relationship is established.

上述の一実施例の説明から理解されるように、この発明
に依れば、逆光、家庭の照明下、野外というように、コ
ントラストの過不足の生じやすい撮影条件下でも、再生
画像のコントラストを自動的に適正値とすることができ
る。また、この発明に依れば、階調補正を行なっても、
色相や飽和度が元のものと異なることを防止できる。更
に、マイクロコンピュータとデータテーブルとを用いる
ことによって比較的簡単にこの発明による階調補正装置
を実現することができる。
As can be understood from the description of the above-mentioned embodiment, according to the present invention, the contrast of the reproduced image can be improved even under shooting conditions where excess or deficiency of contrast is likely to occur, such as backlighting, under home lighting, or outdoors. It can be automatically set to an appropriate value. Further, according to the present invention, even if gradation correction is performed,
This can prevent the hue and saturation from differing from the original. Furthermore, by using a microcomputer and a data table, the tone correction device according to the present invention can be realized relatively easily.

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

第1図及び第2図は階調変換の説明に用いる路線図、第
3図、第9図及び第S図は階調変換方法の一例の説明に
用いる路線図、第6図はこの発明による階14変換方法
の説明に用いる路線図、第7図はこの発明による階調変
換装置の基本的構成を示すブロック図、第3図及び第9
図はこの汽明が適用された階調変換装置の一例の構成を
示すブロック図及びその動作説明に用いるフローチャー
トである。 1・・・・・・・・・入力端子、2・・・・・・・・・
出力端子、3・・・・・・・・・データ変換回路、9,
10.11・・・・・・・・・ CCD 。 23.24.25・・・・・・・・・ RAM、30・
・・・・・・・・データバス、31・・・・・・・・・
アドレスバス、32・・・・・・・・tCPU。 代理人 杉 浦 正 知 第3図 φ(X)       φ(X) 第4図 AV’a(’j) ”   C □□ φ(X) y3  −−−−−− ■ +             y、 =11 Y+  l  ’  11 第5図 第6図 第1図
Figures 1 and 2 are route maps used to explain gradation conversion, Figures 3, 9 and S are route maps used to explain an example of the gradation conversion method, and Figure 6 is a route map according to the present invention. The route map used to explain the floor 14 conversion method, FIG. 7 is a block diagram showing the basic configuration of the gradation conversion device according to the present invention, and FIGS.
The figure is a block diagram showing the configuration of an example of a gradation conversion device to which this steam light is applied, and a flowchart used to explain its operation. 1・・・・・・・・・Input terminal, 2・・・・・・・・・
Output terminal, 3... Data conversion circuit, 9,
10.11... CCD. 23.24.25... RAM, 30.
・・・・・・・・・Data bus, 31・・・・・・・・・
Address bus, 32...tCPU. Agent Tadashi Sugiura Tomo Figure 3 φ (X) φ (X) Figure 4 AV'a ('j) ” C □□ φ (X) y3 −−−−−− ■ + y, =11 Y+ l '11 Figure 5 Figure 6 Figure 1

Claims (1)

【特許請求の範囲】[Claims] 変換関数としてxr又はその近似した折れ111%性を
用いてカラービデオ信号を階調変換すると共に、カラー
ビデオ信号の一定振幅内のデータの発生度数を検出し、
この発生度数が所定値となるように、上記変換関数のr
又はこれに相当する値を制御することを%黴とするカラ
ービデオ信号の階−変換方法。
gradation converting the color video signal using xr or its approximate folding 111% property as a conversion function, and detecting the frequency of occurrence of data within a certain amplitude of the color video signal;
r of the conversion function so that this frequency of occurrence becomes a predetermined value.
A method for converting a color video signal by controlling a value corresponding to the above.
JP57068429A 1982-04-23 1982-04-23 Gradation converting method of color video signal Granted JPS58186291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57068429A JPS58186291A (en) 1982-04-23 1982-04-23 Gradation converting method of color video signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57068429A JPS58186291A (en) 1982-04-23 1982-04-23 Gradation converting method of color video signal

Publications (2)

Publication Number Publication Date
JPS58186291A true JPS58186291A (en) 1983-10-31
JPH0342554B2 JPH0342554B2 (en) 1991-06-27

Family

ID=13373437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57068429A Granted JPS58186291A (en) 1982-04-23 1982-04-23 Gradation converting method of color video signal

Country Status (1)

Country Link
JP (1) JPS58186291A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6163182A (en) * 1984-09-05 1986-04-01 Canon Inc Gamma converting circuit
JPS6163181A (en) * 1984-09-05 1986-04-01 Canon Inc Gamma converting circuit
JPS61214863A (en) * 1985-03-21 1986-09-24 Canon Inc Gradation compensating method
JPS6297474A (en) * 1985-10-23 1987-05-06 Toshiba Corp Image processor
JPS6390965A (en) * 1986-10-06 1988-04-21 Nippon Telegr & Teleph Corp <Ntt> Crt display circuit
US4866513A (en) * 1985-07-04 1989-09-12 Fuji Photo Film Co., Ltd. Color contrast correction system for video images obtained from color film
JPH0698172A (en) * 1992-12-11 1994-04-08 Nikon Corp Picture reader
KR100475285B1 (en) * 1997-12-24 2005-06-07 삼성테크윈 주식회사 Digital Still Camera Corrects Contrast According to Light Source

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6163182A (en) * 1984-09-05 1986-04-01 Canon Inc Gamma converting circuit
JPS6163181A (en) * 1984-09-05 1986-04-01 Canon Inc Gamma converting circuit
JPS61214863A (en) * 1985-03-21 1986-09-24 Canon Inc Gradation compensating method
US4866513A (en) * 1985-07-04 1989-09-12 Fuji Photo Film Co., Ltd. Color contrast correction system for video images obtained from color film
JPS6297474A (en) * 1985-10-23 1987-05-06 Toshiba Corp Image processor
JPS6390965A (en) * 1986-10-06 1988-04-21 Nippon Telegr & Teleph Corp <Ntt> Crt display circuit
JPH0698172A (en) * 1992-12-11 1994-04-08 Nikon Corp Picture reader
KR100475285B1 (en) * 1997-12-24 2005-06-07 삼성테크윈 주식회사 Digital Still Camera Corrects Contrast According to Light Source

Also Published As

Publication number Publication date
JPH0342554B2 (en) 1991-06-27

Similar Documents

Publication Publication Date Title
JP2005102134A (en) Image processing apparatus and method, recording medium, and program
CN101558656A (en) Brightness information display and method
KR100375256B1 (en) High luminance color suppression circuit and its method
US5818522A (en) Image pickup apparatus for obtaining a better color image over a wider luminance range
JPS58186291A (en) Gradation converting method of color video signal
JPH09200554A (en) Image processor
JPH04304093A (en) Digital automatic white balancing circuit
JPH11205812A (en) White balance control method and system thereof
JPH1079885A (en) Method and processor for image processing
KR20010076835A (en) Auto white balancing device and method of digital camera
JPS62132490A (en) White balance correcting circuit
JP2006279389A (en) Solid-state imaging apparatus and signal processing method thereof
JP2002135802A (en) Signal processor, image pickup device, signal processing method and storage medium
JP3384916B2 (en) Imaging device
JPS60192485A (en) Image pickup device
JP3543129B2 (en) White balance control device
JP2517170B2 (en) Fluorescent light detection device
JPH0522653A (en) Exposure control method for image pickup device
JPS63108865A (en) Color image processor and its manufacture
JPH10142058A (en) Color discriminating device
JPH03128591A (en) Color video camera
JPH03261294A (en) Real time hue extraction circuit
Shen et al. Illuminant estimation using a particle swarm optimized fuzzy neural network
JPH08279902A (en) Image pickup device
JPH089410A (en) Image pickup device