JP2006128885A - Image correction device - Google Patents

Image correction device Download PDF

Info

Publication number
JP2006128885A
JP2006128885A JP2004312227A JP2004312227A JP2006128885A JP 2006128885 A JP2006128885 A JP 2006128885A JP 2004312227 A JP2004312227 A JP 2004312227A JP 2004312227 A JP2004312227 A JP 2004312227A JP 2006128885 A JP2006128885 A JP 2006128885A
Authority
JP
Japan
Prior art keywords
correction
color difference
gain
output
angle
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
JP2004312227A
Other languages
Japanese (ja)
Other versions
JP4424154B2 (en
Inventor
Yuji Kuronuma
祐二 黒沼
Masahiro Kitaura
正博 北浦
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2004312227A priority Critical patent/JP4424154B2/en
Publication of JP2006128885A publication Critical patent/JP2006128885A/en
Application granted granted Critical
Publication of JP4424154B2 publication Critical patent/JP4424154B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To process image without spoiling it by reducing an influence of correction of each correction area upon other correction areas when setting a plurality of correction areas one over another. <P>SOLUTION: In an image correction device, vector length representative of a magnitude of a vector which first and second color difference signal components on a color difference plane of each input pixel should form is calculated, a luminance signal component and the vector length of the input pixel are used to detect the degree of density of color signal components of the input pixel, and the density output and a first correction gain are multiplied, and a preliminarily set external parameter is subtracted from the product to obtain a first correction value, and the first correction value is subtracted from one to obtain a second correction value, and the first correction gain is adjusted by the first correction value, and a second correction gain is adjusted by the second correction value. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、映像補正装置に関する。   The present invention relates to an image correction apparatus.

映像信号を表示するディスプレイには種々のものがあり、それぞれのディスプレイ間では3原色の色度点がばらついている。また、同じ種類のディスプレイであっても、個々のディスプレイで色度点がばらついている。さらに、撮像装置により生成された映像信号においても、撮像装置の3原色のばらつきや撮像条件の違いにより、色調(色相または彩度)や階調(輝度)のずれが発生する。そこで、色相,彩度,輝度の補正が必要となる場合がある。   There are various types of displays for displaying video signals, and the chromaticity points of the three primary colors vary between the displays. Further, even for the same type of display, chromaticity points vary among individual displays. Further, even in the video signal generated by the imaging device, a shift in color tone (hue or saturation) or gradation (luminance) occurs due to variations in the three primary colors of the imaging device and differences in imaging conditions. Therefore, correction of hue, saturation, and luminance may be necessary.

ところで、ベースバンド映像信号としては、赤(R)、緑(G)、青(B)の3原色信号と、輝度信号(Y)及び2つの色差信号(R−Y,B−YまたはPb,Pr)とのいずれかが用いられる。ディスプレイに表示する信号は、R,G,Bの3原色信号があるが、色相や彩度を補正する場合には、3原色信号よりも色差信号の方が処理が容易であるので、色相や彩度の補正処理を施す信号としては一般的に色差信号が用いられる。なお、3原色信号と、輝度信号及び色差信号とは、線形マトリクス演算によって相互に容易に変換することができる。   By the way, the baseband video signal includes three primary color signals of red (R), green (G), and blue (B), a luminance signal (Y), and two color difference signals (RY, BY, or Pb, Or Pr) is used. There are three primary color signals R, G, and B to be displayed on the display. However, when the hue and saturation are corrected, the color difference signal is easier to process than the three primary color signals. Generally, a color difference signal is used as a signal for performing saturation correction processing. Note that the three primary color signals, the luminance signal, and the color difference signal can be easily converted from each other by linear matrix calculation.

従来の色相と彩度の補正処理の一例として、以下の(1)式、(2)式に示す演算処理がある。(1),(2)式において、R−Y,B−Yは補正前の色差信号、r−y,b−yは補正後の色差信号、A1,A2は係数である。周知のように、2つの色差信号は、直交する2つの軸よりなる平面(色差平面)で表される。(1),(2)式中のT1,T2は色差平面における補正角度である。   As an example of conventional hue and saturation correction processing, there are arithmetic processing shown in the following equations (1) and (2). In equations (1) and (2), RY and BY are color difference signals before correction, ry and by are color difference signals after correction, and A1 and A2 are coefficients. As is well known, the two color difference signals are represented by a plane (color difference plane) composed of two orthogonal axes. T1 and T2 in the expressions (1) and (2) are correction angles on the color difference plane.

(b-y)=A1×cos(T1)×(B-Y)+A1×sin(T2)×(R-Y) …(1)
(r-y)=-A2×sin(T1)×(B-Y)+A2×cos(T2)×(R-Y) …(2)
(1),(2)式において、係数A1,A2が異なる場合には、色差信号r−y,b−yの振幅(彩度)を個別に設定することができる。角度T1,T2が異なる場合には、色差信号R−Y,B−Yの回転角度が異なるので、色相を不均一に補正することができる。係数A1,A2及び角度T1,T2がそれぞれ同一であれば彩度及び色相を一様に補正することができる。いずれにしても、(1),(2)式による補正処理では、2つの色差信号を軸とする色差平面上の全域が変化することになる。
(by) = A1 × cos (T1) × (BY) + A1 × sin (T2) × (RY) (1)
(ry) =-A2 × sin (T1) × (BY) + A2 × cos (T2) × (RY) (2)
In the equations (1) and (2), when the coefficients A1 and A2 are different, the amplitude (saturation) of the color difference signals ry and by can be set individually. When the angles T1 and T2 are different, since the rotation angles of the color difference signals RY and BY are different, the hue can be corrected unevenly. If the coefficients A1 and A2 and the angles T1 and T2 are the same, saturation and hue can be corrected uniformly. In any case, in the correction processing according to the equations (1) and (2), the entire area on the color difference plane with the two color difference signals as axes changes.

他の従来例である、特定の範囲の色相や彩度を補正する色補正回路として、特開平10−145805号公報(特許文献1)、特開2001−128189号公報(特許文献2)に開示されたものが知られている。   As other color correction circuits for correcting hues and saturations in a specific range, which are other conventional examples, disclosed in JP-A-10-145805 (Patent Document 1) and JP-A-2001-128189 (Patent Document 2). Is known.

(1),(2)式による従来の補正処理においては、色相全体が補正されてしまうため、特定の色相領域である色差平面上の特定の角度領域のみ色相や彩度を補正することができない問題点があったが、上記の特許文献2には、この問題点を回避する補正処理が開示されている。この色補正処理によれば、特定の角度領域のみを補正領域として設定し、その補正領域内の画素の色相や彩度を補正することができる。しかしながら、この色補正処理においては、2つの等色相線で囲まれた角度領域内のすべての画素の色相をその2つの等色相線の中心の等色相線に対して直交する方向に補正し、すべての画素の彩度を中心の等色相線に対して平行な方向に補正してしまっていた。このため、補正領域としての角度領域が大きくなると、中心の等色相線近傍では色相や彩度が正しく補正されるものの、中心の等色相線から離れた領域では色相や彩度を十分には補正することができず、広い角度領域を補正領域とするにはなお改良が必要であった。   In the conventional correction processing using the equations (1) and (2), the entire hue is corrected, and therefore the hue and saturation cannot be corrected only in a specific angle area on the color difference plane, which is a specific hue area. Although there was a problem, the above-described Patent Document 2 discloses a correction process for avoiding this problem. According to this color correction process, only a specific angle region can be set as a correction region, and the hue and saturation of the pixels in the correction region can be corrected. However, in this color correction process, the hues of all the pixels in the angle region surrounded by the two equal hue lines are corrected in a direction perpendicular to the equal hue line at the center of the two equal hue lines, The saturation of all the pixels is corrected in a direction parallel to the central equi-hue line. For this reason, when the angle area as the correction area becomes large, the hue and saturation are corrected correctly in the vicinity of the central equi-hue line, but the hue and saturation are sufficiently corrected in the area away from the central equi-hue line. However, improvement is still necessary to make a wide angle region a correction region.

また特許文献2の従来例では、色相や彩度を補正することができるものの、色相や彩度の補正に併せて輝度信号(階調)を補正することができない技術的課題もあった。さらに、輝度信号を補正すると彩度が見掛け上変化するので、輝度信号の補正に併せて彩度も補正すべきであるが、輝度信号の補正に伴って変化する彩度を補正することができない技術的課題もあった。   In the conventional example of Patent Document 2, although the hue and saturation can be corrected, there is a technical problem that the luminance signal (gradation) cannot be corrected together with the correction of the hue and saturation. Furthermore, when the luminance signal is corrected, the saturation is apparently changed. Therefore, the saturation should be corrected together with the correction of the luminance signal. However, the saturation changing with the correction of the luminance signal cannot be corrected. There were also technical challenges.

このような技術的課題に鑑みて、本願出願人の出願に係る特願2003−319482号の明細書には、補正領域を広い角度領域とした場合でも、色相や彩度を正しく補正することができる映像補正装置が提案されている。それによれば、補正利得調整手段によって、赤色領域や黄色領域における肌色に近い部分の補正利得を弱め、赤色領域や黄色領域におけるそれぞれの色の補正が肌色に及ぼす影響を軽減することができる。   In view of such a technical problem, the specification of Japanese Patent Application No. 2003-319482, which is filed by the applicant of the present application, correctly corrects hue and saturation even when the correction area is a wide angle area. A video correction device that can be used has been proposed. According to this, the correction gain adjusting means can weaken the correction gain of the portion close to the skin color in the red region and the yellow region, and can reduce the influence of the correction of each color in the red region and the yellow region on the skin color.

しかしながら、この提案されている映像補正装置では、特に肌色と黄色、または肌色と赤色の補正領域が重なる場合に、肌色の補正を行うか否かの判定は、肌色の補正領域に入力映像信号が入っているかいないかの2値と色の濃淡が所定の固定値より大きいか小さいかの2値で行っているため、肌色領域を補正する補正利得と赤色または黄色領域を補正する補正利得の差が大きい時、補正領域の差が大きく出てしまい、これにより実際の映像信号で画面を見ると色の段差が出てしまい、全体的にノイズのように見えることがあるという技術的課題が残されていた。また入力信号が低輝度、低彩度の場合において、中高輝度、中高彩度の補正に比べて補正範囲や効果が大きくなってしまい、入力信号の補正領域の違いにより、補正結果に差が出て画面上では色の段差が出てしまい、全体的にノイズのように見えることがあるという技術的課題も残されていた。
特開平10−145805号公報 特開2001−128189号公報
However, in this proposed video correction device, in particular, when the skin color and yellow or the skin color and red correction regions overlap, whether or not to perform the skin color correction is determined by whether the input video signal is in the skin color correction region. The difference between the correction gain for correcting the skin color area and the correction gain for correcting the red or yellow area is made by using the binary value of whether or not the image is present and the binary value of whether the color density is larger or smaller than a predetermined fixed value. When the image is large, the difference between the correction areas is large, which causes a color difference when the screen is viewed with an actual video signal, and the technical problem that the image may look like noise as a whole remains. It had been. In addition, when the input signal has low brightness and low saturation, the correction range and effects are larger than those for medium and high brightness and medium and high saturation, and the correction results differ depending on the correction area of the input signal. In other words, there is still a technical problem that color steps appear on the screen, which may appear like noise as a whole.
JP-A-10-145805 JP 2001-128189 A

本発明は上述のような技術的課題に鑑みてなされたものであり、複数の補正領域を重ねて設定した場合でも、それぞれの補正領域における補正が他の補正領域に及ぼす影響を軽減し、映像に破綻のないよう処理することができる映像補正装置を提供することを目的とする。   The present invention has been made in view of the technical problems as described above, and even when a plurality of correction areas are set in an overlapping manner, the effect of the correction in each correction area on the other correction areas is reduced. It is an object of the present invention to provide an image correction apparatus that can perform processing without causing a failure.

請求項1の発明は、映像信号の画素の色信号成分である第1及び第2の色差信号の一方を第1の軸とし、前記第1及び第2の色差信号の他方を第1の軸と直交する第2の軸としたとき、前記第1及び第2の軸がなす色差平面上における少なくとも第1及び第2の角度領域を第1及び第2の補正領域として設定し、前記第1及び第2の補正領域内それぞれの映像信号を補正する映像補正装置において、入力画素それぞれの前記色差平面上における第1の色差信号成分と第2の色差信号成分とがなす角度を算出する角度算出手段と、前記角度算出手段によって算出した入力画素それぞれの角度をパラメータとした補正関数を用い、前記補正領域外では前記映像信号の画素の色相と彩度と輝度の内の少なくとも1つを補正するための補正利得を0とし、前記補正領域内では所定の補正利得を生成する補正利得算出式に基づいて、前記補正領域内の画素の色相と彩度と輝度の内の少なくとも1つを補正するための補正利得を算出する前記第1及び第2の補正領域毎に設けられた第1及び第2の補正利得算出手段と、前記入力画素それぞれの前記色差平面上における前記第1の色差信号成分と前記第2の色差信号成分とがなすベクトルの大きさを表すベクトル長を算出するベクトル長算出手段と、前記入力画素それぞれの輝度信号成分と前記ベクトル長とを用いて、前記入力画素それぞれの色信号成分の濃淡の程度を検出する濃淡検出手段と、前記濃淡検出手段の出力と前記第1の補正利得算出手段の出力する第1の補正利得とを乗算する第1の乗算手段と、前記第1の乗算手段の出力する積値から予め設定されている外部パラメータを減算して第1の補正値を得る第1の減算手段と、1から前記第1の減算手段の出力する第1の補正値を引くことで第2の補正領域に対する第2の補正値を得る第2の減算手段と、前記第1の減算手段の出力する第1の補正値によって第1の補正領域の補正利得を調整する第1の補正利得調整手段と、前記第2の減算手段の出力する第2の補正値によって第2の補正領域の補正利得を調整する第2の補正利得調整手段とを備えたものである。   According to the first aspect of the present invention, one of the first and second color difference signals, which are color signal components of the pixels of the video signal, is used as the first axis, and the other of the first and second color difference signals is used as the first axis. At least first and second angle regions on the color difference plane formed by the first and second axes are set as the first and second correction regions, and the first axis And an angle calculation for calculating an angle formed by the first color difference signal component and the second color difference signal component on the color difference plane of each input pixel in the video correction device for correcting the respective video signals in the second correction region. And a correction function using the angle of each input pixel calculated by the angle calculation unit as a parameter, and at least one of hue, saturation and luminance of the pixel of the video signal is corrected outside the correction region. The correction gain for A correction gain for correcting at least one of hue, saturation, and luminance of a pixel in the correction area is calculated based on a correction gain calculation formula that generates a predetermined correction gain in the correction area. First and second correction gain calculation means provided for each of the first and second correction regions, the first color difference signal component and the second color difference signal on the color difference plane of each of the input pixels. A vector length calculating means for calculating a vector length representing the magnitude of a vector formed by the component, a luminance signal component of each of the input pixels and the vector length, and a degree of shading of the color signal component of each of the input pixels Gray level detection means for detecting the output, first multiplication means for multiplying the output of the gray level detection means by the first correction gain output from the first correction gain calculation means, and the output of the first multiplication means Product Subtracting a preset external parameter from the first subtraction means to obtain a first correction value, and subtracting the first correction value output from the first subtraction means from 1, the second correction Second subtracting means for obtaining a second correction value for the area, and first correction gain adjusting means for adjusting the correction gain of the first correction area by the first correction value output from the first subtracting means; And a second correction gain adjusting means for adjusting the correction gain of the second correction area according to the second correction value output from the second subtracting means.

請求項2の発明は、請求項1の映像補正装置において、前記ベクトル長算出手段の出力に対して予め設定されている外部パラメータによって低彩度における補正範囲の閾値を設定するセレクタと、前記セレクタの出力に前記第1の補正利得を乗算する第2の乗算手段と、前記セレクタの出力に第2の補正利得を乗算する第3の乗算手段と、前記第1の減算手段の出力する第1の補正値と前記第2の乗算手段の出力する積値とを乗算して新たな第1の補正値を得、前記第1の補正利得調整手段に与える第4の乗算手段と、前記第2の減算手段の出力する第2の補正値と前記第3の乗算手段の出力する積値とを乗算して新たな第2の補正値を得、前記第2の補正利得調整手段に与える第5の乗算手段とを備えたことを特徴とするものである。   According to a second aspect of the present invention, there is provided the video correction device according to the first aspect, wherein a selector for setting a correction range threshold value in low saturation by an external parameter preset for the output of the vector length calculation means; and the selector Second multiplication means for multiplying the output of the first correction gain by the first correction gain, third multiplication means for multiplying the output of the selector by the second correction gain, and first output of the first subtraction means. And a product value output from the second multiplication means to obtain a new first correction value, which is supplied to the first correction gain adjustment means, and a second multiplication means. The second correction value output from the subtracting means is multiplied by the product value output from the third multiplying means to obtain a new second correction value, which is supplied to the second correction gain adjusting means. The multiplication means is provided.

本発明の映像補正装置によれば、複数の補正領域を重ねて設定した場合でも、それぞれの補正領域における補正が他の補正領域に及ぼす影響を軽減することができる。また本発明によれば、低輝度、低彩度における補正が画面全体に及ぼす影響を少なくすることができる。   According to the video correction apparatus of the present invention, even when a plurality of correction areas are set in an overlapping manner, the influence of correction in each correction area on other correction areas can be reduced. Further, according to the present invention, it is possible to reduce the influence of correction at low luminance and low saturation on the entire screen.

以下、本発明の実施の形態を図に基づいて詳説する。図1に示す映像補正装置において、入力端子1,2にはそれぞれ色差信号R−Y,B−Yが入力され,この色差信号R−Y,B−Yは角度算出部4に入力される。入力端子3には輝度信号Yが入力され、この輝度信号Yは輝度・色差ガンマ処理部19に入力される。色差信号R−Y,B−Y及び輝度信号Yは、補正の対象となっている映像信号の画素毎に順次入力される。なお、補正の対象となっている映像信号が3原色信号の場合には、線形マトリクス演算によって予め3原色信号を色差信号R−Y,B−Y及び輝度信号Yに変換して、角度算出部4や輝度・色差ガンマ処理部19に入力する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the video correction apparatus shown in FIG. 1, color difference signals RY and BY are input to the input terminals 1 and 2, respectively, and the color difference signals RY and BY are input to the angle calculation unit 4. A luminance signal Y is input to the input terminal 3, and this luminance signal Y is input to the luminance / color difference gamma processing unit 19. The color difference signals RY and BY and the luminance signal Y are sequentially input for each pixel of the video signal to be corrected. When the video signal to be corrected is a three-primary color signal, the angle calculation unit converts the three primary color signals into color difference signals RY, BY and luminance signal Y in advance by linear matrix calculation. 4 and the luminance / color difference gamma processing unit 19.

図3に示すように、色差信号R−Y,B−Yにおける色差信号の一方(例えばB−Y)を横軸、色差信号の他方(例えばR−Y)を横軸に直交する縦軸としたとき、色差信号R−Y,B−Yは色差平面にて表される。この色差平面のR−Y軸とB−Y軸との交点を中心とする回転方向は色相を表し、半径方向は彩度を表す。映像信号の各画素の色信号成分は色差信号R−Y,B−Yで表され、各画素は色差平面上のいずれかに位置する。また、赤、黄、緑等の色は色差平面上のいずれかに位置し、それぞれの色はB−Y軸からの角度θで表すことができる。   As shown in FIG. 3, one of the color difference signals in the color difference signals RY and BY (for example, BY) is the horizontal axis, and the other color difference signal (for example, RY) is orthogonal to the horizontal axis. In this case, the color difference signals RY and BY are represented by a color difference plane. The rotation direction around the intersection of the RY axis and the BY axis of this color difference plane represents the hue, and the radial direction represents the saturation. The color signal component of each pixel of the video signal is represented by color difference signals RY and BY, and each pixel is located on one of the color difference planes. Further, colors such as red, yellow, and green are located on any color difference plane, and each color can be represented by an angle θ from the BY axis.

角度算出部4は、一例として図2に示すような処理によって、入力画素それぞれの図3の色差平面上でなす角度を算出する。図2では、角度算出部4での角度算出処理をフローチャートにて図示しているが、角度算出部4での角度算出処理はソフトウェア、ハードウェアのいずれで実現してもよい。図2において、ステップS401にて、入力画素それぞれの色差信号R−Y,B−Y成分の符号より色差平面上の第何象限に位置しているかを検出する。ステップS402にて、色差信号R−Y,B−Y成分それぞれの絶対値の大きい方をA、小さい方をBとして算出する。   The angle calculation unit 4 calculates the angle formed on the color difference plane of FIG. 3 for each input pixel by a process as shown in FIG. 2 as an example. In FIG. 2, the angle calculation process in the angle calculation unit 4 is illustrated in a flowchart, but the angle calculation process in the angle calculation unit 4 may be realized by either software or hardware. In FIG. 2, in step S401, it is detected in which quadrant on the color difference plane it is based on the sign of the color difference signals RY and BY components of the input pixels. In step S402, the larger one of the absolute values of the color difference signals RY and BY components is calculated as A, and the smaller one is calculated as B.

そして、ステップS403にて、B/Aより角度T1を検出する。この角度T1は、ステップS402の処理より明らかなように、0〜45°となる。角度T1は、折れ線近似やROMテーブルによって算出することができる。ステップS404にて、Aが|R−Y|であるか、即ち、|R−Y|>|B−Y|であるか判定する。|R−Y|>|B−Y|でなければ、角度T1はそのまま角度Tとなる。|R−Y|>|B−Y|であれば、ステップS405にて、T=90−T1を算出する。これによって、tan−1((R−Y)/(B−Y))が求められる。ステップS403において検出する角度T1を0〜45°としているのは、tan−1((R−Y)/(B−Y))のカーブは45°を超えると急激に勾配が大きくなり、角度の算出に不適であるからである。 In step S403, the angle T1 is detected from B / A. This angle T1 is 0 to 45 °, as is apparent from the processing in step S402. The angle T1 can be calculated by broken line approximation or a ROM table. In step S404, it is determined whether A is | R−Y |, that is, whether | R−Y |> | B || If | R−Y |> | B−Y | is not satisfied, the angle T1 becomes the angle T as it is. If | R−Y |> | B−Y |, T = 90−T1 is calculated in step S405. Accordingly, tan −1 ((R−Y) / (B−Y)) is obtained. The angle T1 detected in step S403 is set to 0 to 45 ° because the tan −1 ((R−Y) / (BY)) curve suddenly increases when the curve exceeds 45 °. This is because it is unsuitable for calculation.

さらに、ステップS406にて、ステップS401にて検出した象限のデータを用いて第2象限か否か判定し、第2象限であれば、ステップS407にて、T=180−T1を算出する。第2象限でなければ、ステップS408にて、第3象限か否か判定し、第3象限であれば、ステップS402にて、T=180+T1を算出する。第3象限でなければ、ステップS410にて、第4象限か否か判定し、第4象限であれば、ステップS411にて、T=360−T1を算出する。そして最終的に、ステップS412にて、入力画素それぞれの図3の色差平面上でなす角度Tを出力する。   Further, in step S406, it is determined whether or not the quadrant is the second quadrant using the quadrant data detected in step S401. If the quadrant is the second quadrant, T = 180−T1 is calculated in step S407. If it is not the second quadrant, it is determined in step S408 whether or not it is the third quadrant. If it is the third quadrant, T = 180 + T1 is calculated in step S402. If it is not the third quadrant, it is determined in step S410 whether or not it is the fourth quadrant. If it is the fourth quadrant, T = 360−T1 is calculated in step S411. Finally, in step S412, the angle T formed on the color difference plane of FIG. 3 for each input pixel is output.

以上の処理により、入力された色差信号R−Y,B−Yの色差平面上での角度を0〜360°の範囲で求めることができる。ステップS404〜S411は、ステップS403にて検出した角度T1を角度Tに補正する処理である。また、ステップS404〜S411では、角度T1を第1〜第4象限に応じて補正していることが分かる。このとき、第1象限では、|R−Y|>|B−Y|であるか否かによっても、角度T1から角度Tへの補正処理が異なっている。   Through the above processing, the angle of the input color difference signals RY and BY on the color difference plane can be obtained in the range of 0 to 360 °. Steps S404 to S411 are processes for correcting the angle T1 detected in step S403 to the angle T. In steps S404 to S411, it can be seen that the angle T1 is corrected according to the first to fourth quadrants. At this time, in the first quadrant, the correction processing from the angle T1 to the angle T differs depending on whether or not | R−Y |> | B−Y |.

以上説明した角度算出部4での角度算出処理は、色差信号R−Y,B−Yがなす角度を0〜45°の範囲で角度T1として算出し、この角度T1をそれぞれの象限に応じて補正して、色差信号R−Y,B−Yがなす角度を0〜360°の範囲のTとして算出している。   In the angle calculation process by the angle calculation unit 4 described above, the angle formed by the color difference signals RY and BY is calculated as an angle T1 in the range of 0 to 45 °, and the angle T1 is calculated according to each quadrant. After correction, the angle formed by the color difference signals RY and BY is calculated as T in the range of 0 to 360 °.

入力された映像信号がノイズを多く含む場合には、角度算出に用いる色差信号R−Y,B−Y、即ち、角度算出部4に入力される色差信号R−Y,B−Yに対してローパスフィルタをかけ、ノイズを低減させることが好ましい。このようにすると、色差信号R−Y,B−Yの角度を正しく算出することができる。   When the input video signal includes a lot of noise, the color difference signals RY and BY used for angle calculation, that is, the color difference signals RY and BY input to the angle calculation unit 4 are used. It is preferable to apply a low-pass filter to reduce noise. In this way, the angles of the color difference signals RY and BY can be correctly calculated.

図1に戻り、角度算出部4より出力された角度Tは、補正利得算出部51,52,…,5nに入力される。ここでは、補正利得算出部をn個設けているが、補正利得算出部は1または任意の複数個である。この補正利得算出部は、色相や彩度を補正する領域の数に応じて設けるものである。よって、色差平面上の1つの角度領域である特定の色のみ補正する場合には、補正利得算出部は1つでよいということになる。補正利得算出部51〜5nは全て同一の構成である。   1, the angle T output from the angle calculation unit 4 is input to the correction gain calculation units 51, 52,..., 5n. Here, n correction gain calculation units are provided, but one or any plurality of correction gain calculation units are provided. This correction gain calculation unit is provided in accordance with the number of regions for correcting hue and saturation. Therefore, in the case of correcting only a specific color that is one angle region on the color difference plane, only one correction gain calculation unit is required. All of the correction gain calculation units 51 to 5n have the same configuration.

ここで、補正利得算出部51〜5nの機能について説明する。図3において、L0,L1,L2は、B−Y軸とR−Y軸との交点より伸びる等色相線であり、等色相線L0,Ll,L2の角度はそれぞれθ,θ,θである。等色相線L0は補正の中心線であり、等色相線L1,L2で囲まれた角度θ〜θの範囲が色相や彩度または輝度を補正する補正領域である。θ〜θは任意に設定することができる。但し、θ<θ<θである。 Here, functions of the correction gain calculation units 51 to 5n will be described. In FIG. 3, L0, L1, and L2 are equal hue lines extending from the intersection of the BY axis and the RY axis, and the angles of the equal hue lines L0, L1, and L2 are θ 0 , θ 1 , θ, respectively. 2 . The equi-hue line L0 is a correction center line, and a range of angles θ 1 to θ 2 surrounded by the equi-hue lines L1 and L2 is a correction region for correcting the hue, saturation, or luminance. θ 0 to θ 2 can be arbitrarily set. However, it is (theta) 1 <(theta) 0 <(theta) 2 .

等色相線L0,L1がなす角度(θ−θ)と等色相線L0,L2がなす角度(θ−θ)は同一でなくてもよいが、同一であることが好ましい,等色相線L0,Llがなす角度と等色相線L0,L2がなす角度を同一にする場合には、角度θからの補正角度Rを設定して、θ−Rをθ、θ+Rをθとすればよい。なお、色差平面上で複数の補正領域を設ける場台には、等色相線L0〜L2と同様な等色相線を複数の角度位置で設定すればよい。 The angle formed by the uniform hue lines L0 and L1 (θ 0 −θ 1 ) and the angle formed by the uniform hue lines L0 and L2 (θ 2 −θ 0 ) may not be the same, but are preferably the same, etc. when the angle of hue lines L0, angle and equal hue line L0 Ll forms, L2 forms the same, set the correct angle R from the angle theta 0, the θ 0 -R θ 1, θ 0 + R May be θ 2 . It should be noted that the same hue lines similar to the uniform hue lines L0 to L2 may be set at a plurality of angular positions on the stage where a plurality of correction regions are provided on the color difference plane.

補正利得算出部51〜5nには、それぞれの補正領域を決める角度θ,θ,θ、あるいは角度θとRが入力される。図1では、補正利得算出部51〜5nそれぞれに供給する各部をθ,θ,θと、その角度θ,θ,θをθ01,θ11,θ21〜θ0n,θ1n,θ2nと区別している。そして角度θ01〜θ0nを総称して角度θ、角度θ11〜θ1nを総称して角度θ、角度θ21〜θ2nを総称して角度θとする。なお、補正領域は重ねて設定することも可能である。 Angles θ 0 , θ 1 , θ 2 , or angles θ 0 and R that determine the respective correction regions are input to the correction gain calculators 51 to 5 n. In FIG. 1, the units supplied to the correction gain calculation units 51 to 5n are θ 0 , θ 1 , θ 2 and their angles θ 0 , θ 1 , θ 2 are θ 01 , θ 11 , θ 210n , They are distinguished from θ 1n and θ 2n . The angles θ 01 to θ 0n are collectively referred to as an angle θ 0 , the angles θ 11 to θ 1n are collectively referred to as an angle θ 1 , and the angles θ 21 to θ 2n are collectively referred to as an angle θ 2 . The correction area can be set in an overlapping manner.

補正利得算出部51〜5nの機能について、図4を用いてさらに説明する。図3の等色相線L1よりも角度の大きい部分を示す関数をFL1とし、これをC言語にて表すと、
FL1=T-θ1
if(FL1<0) FL1=0; …(3)
となる。この(3)式は、図4(A)に示す特性となる。
The function of the correction gain calculation units 51 to 5n will be further described with reference to FIG. The function indicating a large part of the angle than isochromatic line L1 in FIG. 3 and F L1, which is represented by C language,
F L1 = T-θ 1 ;
if (F L1 <0) F L1 = 0;… (3)
It becomes. This equation (3) has the characteristics shown in FIG.

同様に、図3の等色相線L2よりも角度の小さい部分を示す関数をFL2とし、これをC言語にて表すと、
FL22-T;
if(FL2<0) FL2=0; …(4)
となる。この(4)式は、図4(B)に示す特性となる。
Similarly, a function indicating a portion having a smaller angle than the constant hue line L2 in FIG. 3 is denoted as FL2, and this is expressed in C language.
F L2 = θ 2 -T;
if (F L2 <0) F L2 = 0;… (4)
It becomes. This equation (4) has the characteristics shown in FIG.

補正利得算出部51〜5nは、次の(5)式に基づいて、映像(色相、彩度、輝度)を補正するための第1の補正関数M12を生成する。   The correction gain calculators 51 to 5n generate a first correction function M12 for correcting the video (hue, saturation, luminance) based on the following equation (5).

M12=Min(FL1,FL2); …(5)
第1の補正関数M12は、(3)式で示されるFL1と(4)式で示されるFL2との小さい方を選択するものであり、図4(C)に示すように角度θに頂点を有する三角形状の特性となる。第1の補正関数M12の特性としては、三角形状に限定されることはなく、上限値を設けて台形状にしたり、余弦関数状にしてもよい。なお、第1の補正関数M12は、補正範囲外である角度θ,θの外側を0とすることが必要である。
M 12 = Min (F L1 , F L2 ); (5)
The first correction function M12 is (3) is intended to select the smaller of the F L2 indicated by the F L1 (4) expression of formula, the angle theta 0 as shown in FIG. 4 (C) It has a triangular characteristic with a vertex at. The characteristic of the first correction function M12 is not limited to a triangular shape, and may be trapezoidal by providing an upper limit value or may be a cosine function. The first correction function M12 needs to set the outside of the angles θ 1 and θ 2 outside the correction range to 0.

また、同様に、図3の等色相線L0よりも角度の大きい部分と小さい部分とを示す関数をFL0とし、これをC言語にて表すと、
FL00-T; …(6)
となる。この(6)式は、図4(D)に示す特性となる。
Similarly, a function indicating a portion having a larger angle and a portion having a smaller angle than the constant hue line L0 in FIG. 3 is represented by FL0, and this is expressed in C language.
F L0 = θ 0 -T; (6)
It becomes. This equation (6) has the characteristics shown in FIG.

補正利得算出部51〜5nは、次の(7)式に基づいて、映像(色相、彩度、輝度)を補正するための第2の補正関数M012を生成する。   The correction gain calculation units 51 to 5n generate a second correction function M012 for correcting the video (hue, saturation, luminance) based on the following equation (7).

M012=Min(FL0,FL1);
M012=Max(M012,-FL2); …(7)
第2の補正関数M012は、(6)式で示されるFL0と(3)式で示されるFL1との小さい方を選択し、さらに、これで得たM012と−FL2との大きい方を選択するものである。このようにして得た第2の補正関数M012は、図4(E)に示すように、角度θと角度θとの中央部に正の頂点を有する上に凸の三角形状と、角度θと角度θとの中央部に負の頂点を有する下に凸の三角形状とを合わせた特性となる。第2の補正関数M012も、補正範囲外である角度θ,θの外側を0とすることが必要である。
M012 = Min (F L0 , F L1 );
M012 = Max (M012, -F L2 ); (7)
The second correction function M012 is (6) to select the smaller of the F L1 indicated by F L0 and (3) represented by the formula further, larger the M012 and -F L2 obtained in this Is to select. As shown in FIG. 4E, the second correction function M012 obtained in this way has an upwardly convex triangular shape having a positive vertex at the center of the angle θ 1 and the angle θ 0 , and the angle The characteristic is a combination of a downwardly convex triangular shape having a negative apex at the center of θ 0 and angle θ 2 . The second correction function M012 also needs to set the outside of the angles θ 1 and θ 2 outside the correction range to 0.

ところで、θ=θ−R,θ=θ+Rとしたとき、角度算出部4で算出された角度Tは0〜360°の値であり、角度θや角度θが0°または360°を跨ぐ場合には、角度の値に不連続が生じる。そこで、補正利得算出部51〜5nは、上記の(3),(4),(6)式で用いる角度TをC言語にて表す次の(8)式によって予め補正しておく。なお、(8)式中の>=は≧を意味している。 By the way, when θ 1 = θ 0 −R and θ 2 = θ 0 + R, the angle T calculated by the angle calculator 4 is a value of 0 to 360 °, and the angles θ 1 and θ 2 are 0 °. Or when it crosses 360 degrees, a discontinuity arises in the value of an angle. Therefore, the correction gain calculation units 51 to 5n correct the angle T used in the above expressions (3), (4), and (6) in advance by the following expression (8) expressed in C language. In the formula (8),> = means ≧.

if(T-θ1>=360) T=T-360;
if(θ2-T>=360) T=T+360; …(8)
この(8)式により、角度θや角度θが0°または360°を跨ぐ場合であっても、角度θ〜θの範囲内に角度Tが含まれるとき、角度Tを連続的な値に補正して、角度θ〜θの範囲内で角度Tの値の不連続が生じないようにすることができる。よって、図4(C),(E)に示す第1、第2の補正関数M12,M012を正しく生成することができる。
if (T-θ 1 > = 360) T = T-360;
if (θ 2 −T> = 360) T = T + 360;… (8)
According to the equation (8), even when the angle θ 1 and the angle θ 2 cross over 0 ° or 360 °, when the angle T is included in the range of the angles θ 1 to θ 2 , the angle T is continuously set. is corrected to a value, it is possible to make discrete value of the angle T in the range of the angle theta 1 through? 2 does not occur. Therefore, the first and second correction functions M12 and M012 shown in FIGS. 4C and 4E can be correctly generated.

以上のようにして、本実施の形態では、角度θを中心とする補正領域として、θ=θ−R,θ=θ+Rとしたとき、補正角度Rを180°近傍まで、即ち、θ±180°の補正領域を設定することができる。 As described above, in the present embodiment, when θ 1 = θ 0 −R and θ 2 = θ 0 + R are set as the correction regions centered on the angle θ 0 , the correction angle R is increased to about 180 °. That is, a correction area of θ 0 ± 180 ° can be set.

補正利得算出部51〜5nには、角度θ,θ,θの他、係数p1,p2,s1,y1,clが入力される。係数p1,p2は、後述する色相補正利得を可変するための係数であり、係数s1は、後述する彩度補正利得を可変するための係数である。係数ylは、後述する輝度ガンマ補正利得を可変するための係数であり、係数c1は、後述する彩度ガンマ補正利得を可変するための係数である。補正利得算出部51〜5nに入力する係数p1,p2,s1,y1,c1は、補正利得算出部51〜5nに対して全て同一である必要はない。係数p1,p2,s1,y1,c1を補正利得算出部51〜5nに対して個々に設定すると、複数の補正領域での映像の補正の程度を異ならせることができる。 In addition to the angles θ 0 , θ 1 , and θ 2 , coefficients p 1, p 2, s 1, y 1, and cl are input to the correction gain calculators 51 to 5 n. The coefficients p1 and p2 are coefficients for changing the hue correction gain described later, and the coefficient s1 is a coefficient for changing the saturation correction gain described later. The coefficient yl is a coefficient for changing the luminance gamma correction gain described later, and the coefficient c1 is a coefficient for changing the saturation gamma correction gain described later. The coefficients p1, p2, s1, y1, and c1 input to the correction gain calculation units 51 to 5n do not have to be the same as those of the correction gain calculation units 51 to 5n. When the coefficients p1, p2, s1, y1, and c1 are individually set for the correction gain calculation units 51 to 5n, the degree of image correction in the plurality of correction regions can be varied.

本実施の形態では、色相や彩度の補正だけでなく、輝度信号も補正する。さらに、輝度信号を補正すると、彩度が見掛け上変化するので、輝度信号の補正に併せて彩度も補正する。後述するように、本実施の形態では、輝度信号の補正は、輝度信号にガンマカーブの特性を持たせるものである。また、輝度信号の補正に併せた彩度補正も、色差信号に輝度補正と同じガンマカーブの特性を持たせるものである。従って、本実施の形態では、輝度信号の補正をYガンマ、輝度信号の補正に併せた彩度補正をCガンマと称することとする。   In the present embodiment, not only the hue and saturation are corrected, but also the luminance signal is corrected. Further, when the luminance signal is corrected, the saturation is apparently changed. Therefore, the saturation is corrected together with the correction of the luminance signal. As will be described later, in the present embodiment, the correction of the luminance signal is to give the luminance signal a gamma curve characteristic. In addition, the saturation correction combined with the correction of the luminance signal also gives the color difference signal the same gamma curve characteristic as the luminance correction. Therefore, in the present embodiment, the correction of the luminance signal is referred to as Y gamma, and the saturation correction combined with the correction of the luminance signal is referred to as C gamma.

補正利得算出部51〜5nは、上記のように生成した第1、第2の補正関数M12,M012と、入力された各係数p1,p2,s1,y1,c1とを用いて、次の(9)〜(12)式に示す補正利得算出式P(T),S(T),Gy(T),Gc(T)に基づいて、補正利得P,S,Gy,Gcを生成する。Pは色相の利得を補正するために用いる色相補正利得、Sは彩度の利得を補正するために用いる彩度補正利得、GyはYガンマの利得を補正するために用いるYガンマ補正利得、GcはCガンマの利得を補正するために用いるCガンマ補正利得である。   The correction gain calculators 51 to 5n use the first and second correction functions M12 and M012 generated as described above and the input coefficients p1, p2, s1, y1, and c1, respectively, Correction gains P, S, Gy, and Gc are generated based on correction gain calculation expressions P (T), S (T), Gy (T), and Gc (T) shown in Equations 9) to (12). P is a hue correction gain used to correct the hue gain, S is a saturation correction gain used to correct the saturation gain, Gy is a Y gamma correction gain used to correct the Y gamma gain, Gc Is a C gamma correction gain used to correct the C gamma gain.

P(T)=pl×M012+p2×M12; …(9)
S(T)=sl×M12; …(10)
Gy(T)=y1×M12; …(11)
Gc(T)=cl×M12; …(12)
図4にて説明したように、第1、第2の補正関数M12,M012は、角度算出部4にて算出された角度Tをパラメータとする関数であるので、(9)〜(12)式に示す補正利得算出式は、角度Tをパラメータとする関数となる。図4(C)に示す第1の補正関数M12は、補正領域の中心角度θである等色相線L0に近付くほど補正量が大きくなる特性を有し、補正領域内の画素を一方向に補正する特性を有するものである。
P (T) = pl × M012 + p2 × M12; (9)
S (T) = sl × M12; (10)
Gy (T) = y1 × M12; (11)
Gc (T) = cl × M12; (12)
As described with reference to FIG. 4, since the first and second correction functions M12 and M012 are functions having the angle T calculated by the angle calculation unit 4 as a parameter, the equations (9) to (12) are used. The correction gain calculation formula shown below is a function with the angle T as a parameter. Figure 4 first correction function M12 shown in (C) has a central angle theta 0 and is equal hue line closer to L0 correction amount increases characteristic of the correction region, the pixels in the correction area in one direction It has the characteristic to correct.

一方、図4(E)に示す第2の補正関数M012は、等色相線L0上では補正量が0となり、等色相線L0と等色相線L1,L2とのそれぞれの中央で補正量が最大となる特性を有する。また、等色相線L0と等色相線L1とで挟まれた角度領域と、等色相線L0と等色相線L2とで挟まれた角度領域では、補正方向が逆の特性を有するものである。係数p1,p2,s1,y1,c1は、第1、第2の補正関数M12,M012の振幅を可変して、補正利得算出式P(T),S(T)、Gy(T),Gc(T)によって生成される補正利得P,S,Gy,Gcの程度を適宜に設定するためのものであることが分かる。   On the other hand, in the second correction function M012 shown in FIG. 4E, the correction amount is 0 on the equal hue line L0, and the correction amount is maximum at the center of each of the equal hue line L0 and the equal hue lines L1 and L2. It has the characteristic which becomes. In addition, in the angle region sandwiched between the equal hue line L0 and the equal hue line L1, and in the angle region sandwiched between the equal hue line L0 and the equal hue line L2, the correction directions have reverse characteristics. The coefficients p1, p2, s1, y1, c1 vary the amplitudes of the first and second correction functions M12, M012, and the correction gain calculation formulas P (T), S (T), Gy (T), Gc It can be seen that the correction gains P, S, Gy, and Gc generated by (T) are set appropriately.

さらに、(9)式の色相補正利得算出式P(T)による補正利得の算出について説明する。(9)式の第1項であるpl×M012は、図5(A)に示すように、補正領域内の色相を等色相線L0に向かって(またはその逆方向に)シフトするものである。これは、第2の補正関数M012の特性より明らかである。このとき、後述する理由により、等色相線L0と等色相線L1とで挟まれた角度領域内と等色相線L0と等色相線L2とで挟まれた角度領域内のそれぞれの画素の色度点は、実質的に、互いに逆方向に回転移動される。   Furthermore, the calculation of the correction gain by the hue correction gain calculation formula P (T) of the equation (9) will be described. As shown in FIG. 5A, pl × M012 which is the first term of the equation (9) shifts the hue in the correction area toward the equi-hue line L0 (or in the opposite direction). . This is apparent from the characteristics of the second correction function M012. At this time, for the reason described later, the chromaticity of each pixel in the angle region sandwiched between the equi-hue line L0 and the equi-hue line L1 and in the angle region sandwiched between the equi-hue line L0 and the equi-hue line L2. The points are substantially rotated in opposite directions.

また、(9)式の第2項であるp2×M12は、図5(B)に示すように、補正領域内の色相を一方向にシフトするものである。第1の補正関数M12の特性より明らかなように、等色相線L0に近付くほどシフト量が多くなる。このとき,後述する理由により、等色相線L0と等色相線L1とで挟まれた角度領域内と等色相線L0と等色相線L2とで挟まれた角度領域内のそれぞれの画素の色度点は、実質的に、互いに同一方向に回転移動される。   Further, p2 × M12, which is the second term of the equation (9), shifts the hue in the correction region in one direction as shown in FIG. 5B. As is clear from the characteristic of the first correction function M12, the shift amount increases as it approaches the constant hue line L0. At this time, for the reason described later, the chromaticity of each pixel in the angle region sandwiched between the equal hue line L0 and the equal hue line L1 and in the angle region sandwiched between the equal hue line L0 and the equal hue line L2. The points are rotated in substantially the same direction as each other.

この(9)式による色相の補正は、角度θ〜θで囲まれた補正領域内のみで行われ、補正領域外では補正の影響が全く及ばない。 The hue correction according to the equation (9) is performed only within the correction region surrounded by the angles θ 1 to θ 2 , and the influence of the correction does not reach at all outside the correction region.

本実施の形態では、第1、第2の補正関数M12,M012を生成して、(9)式の補正利得算出式P(T)によって色相補正利得Pを生成するよう構成している。図5(B)の機能を色差平画上で隣接して2つ設け、色相を互いに逆方向にシフトさせることによって、図5(A)の機能と等価となる。従って、第2の補正関数M012を生成することなく、第1の補正関数M12のみで(9)式と等価の補正利得算出式を得ることができる。このように構成する場合には、第2の補正関数M012の生成は不要となる。   In this embodiment, the first and second correction functions M12 and M012 are generated, and the hue correction gain P is generated by the correction gain calculation formula P (T) of the formula (9). By providing two functions in FIG. 5B adjacent to each other on the color difference flat image and shifting the hues in opposite directions, the function becomes equivalent to the function in FIG. Therefore, a correction gain calculation expression equivalent to the expression (9) can be obtained by using only the first correction function M12 without generating the second correction function M012. In the case of such a configuration, the generation of the second correction function M012 becomes unnecessary.

上記の(10)〜(12)式に示すように、彩度、Yガンマ、Cガンマの補正利得を算出するための補正利得算出式S(T),Gy(T),Gc(T)では、第1の補正関数M12を用いている。この(10)〜(12)式による彩度、Yガンマ、Cガンマの補正も、角度θ〜θで囲まれた補正領域内のみで行われ、補正領域外では補正の影響が全く及ばない。 As shown in the above equations (10) to (12), in the correction gain calculation formulas S (T), Gy (T), and Gc (T) for calculating the correction gains of saturation, Y gamma, and C gamma, The first correction function M12 is used. Correction of the saturation, Y gamma, and C gamma according to the equations (10) to (12) is also performed only in the correction area surrounded by the angles θ 1 to θ 2 , and the influence of the correction is completely exerted outside the correction area. Absent.

図1において、補正利得算出部51〜5nの出力であり、上記の(9)〜(12)式に示す補正利得算出式P(T)〜Gc(T)によって生成された色相、彩度、Yガンマ、Cガンマの補正利得をそれぞれPi,Si,Gyi,Gci(i=1〜n)とする。なお、図1では、Pi,Si,Gyi,Gciを単にP,S,Gy,Gcと記載している。補正利得算出部51〜5nより出力された補正利得Si,Pi,Gyi,Gciは、それぞれ、累和器6〜9によって累和(総和)される。累和器6〜9の出力をそれぞれΣSi,ΣPi,ΣGyi,ΣGciとする。   In FIG. 1, the output of the correction gain calculation units 51 to 5n and the hue, saturation, and the like generated by the correction gain calculation formulas P (T) to Gc (T) shown in the above formulas (9) to (12). The correction gains for Y gamma and C gamma are Pi, Si, Gyi, and Gci (i = 1 to n), respectively. In FIG. 1, Pi, Si, Gyi, and Gci are simply described as P, S, Gy, and Gc. The correction gains Si, Pi, Gyi, and Gci output from the correction gain calculators 51 to 5n are accumulated (summed) by accumulators 6 to 9, respectively. Assume that the outputs of the accumulators 6 to 9 are ΣSi, ΣPi, ΣGyi, and ΣGci, respectively.

入力された画素の色度点がいずれかの補正領域に含まれていれば、後段の演算処理によって、色差信号R−Y,B−Y及び輝度信号Yに対して補正利得Si,Pi,Gyi,Gciを用いた補正が施される。本実施の形態では、補正利得算出部が複数個あっても、即ち、色差平面上で複数の補正領域を設定した場合であっても、それぞれの補正利得Si,Pi,Gyi,Gciを累和しているので、後段の色差信号R−Y,B−Y及び輝度信号Yに対する補正演算処理の回路構成が簡略化される。入力された画素の色度点が複数の補正領域に含まれていれば、補正利得は和となり、入力された画素の色度点がいずれの補正領域にも含まれていなければ、補正利得は0となる。   If the chromaticity point of the input pixel is included in any one of the correction areas, the correction gains Si, Pi, Gyi with respect to the color difference signals RY, BY and the luminance signal Y are calculated by a subsequent calculation process. , Gci is used for correction. In the present embodiment, even when there are a plurality of correction gain calculation units, that is, when a plurality of correction regions are set on the color difference plane, the respective correction gains Si, Pi, Gyi, Gci are accumulated. Therefore, the circuit configuration of the correction calculation processing for the subsequent color difference signals RY and BY and the luminance signal Y is simplified. If the chromaticity point of the input pixel is included in a plurality of correction areas, the correction gain is the sum, and if the chromaticity point of the input pixel is not included in any correction area, the correction gain is 0.

乗算器10と加算器13とインバータ14には、入力端子1に入力された色差信号R−Yが入力され、乗算器11,15と加算器18には、入力端子2に入力された色差信号B−Yが入力される。インバータ14の出力は、乗算器16に入力される。累和器6より出力された補正利得ΣSiは、乗算器10,15に入力される。乗算器10は色差信号R−Yに補正利得ΣSiを乗算して出力し、乗算器15は色差信号B−Yに補正利得ΣSiを乗算して出力する。累和器7より出力された補正利得ΣPiは、乗算器11,16に入力される。乗算器11は色差信号B−Yに補正利得ΣPiを乗算して出力し、乗算器16は色差信号R−Yをインバータ14によって反転したものに補正利得ΣPiを乗算して出力する。   The multiplier 10, adder 13, and inverter 14 receive the color difference signal RY input to the input terminal 1, and the multipliers 11, 15 and adder 18 input the color difference signal input to the input terminal 2. BY is input. The output of the inverter 14 is input to the multiplier 16. The correction gain ΣSi output from the accumulator 6 is input to the multipliers 10 and 15. The multiplier 10 multiplies the color difference signal RY by the correction gain ΣSi and outputs the result, and the multiplier 15 multiplies the color difference signal BY by the correction gain ΣSi and outputs the result. The correction gain ΣPi output from the accumulator 7 is input to the multipliers 11 and 16. The multiplier 11 multiplies the color difference signal BY by the correction gain ΣPi and outputs the result. The multiplier 16 multiplies the color difference signal RY inverted by the inverter 14 by the correction gain ΣPi and outputs the result.

加算器12は乗算器10,11の出力を加算し、加算器13は色差信号R−Yと加算器12の出力とを加算する。加算器13の出力は補正後の色差信号R−Yである。加算器17は乗算器15,16の出力を加算し、加算器18は色差信号B−Yと加算器17の出力とを加算する。加算器18の出力は補正後の色差信号B−Yである。   The adder 12 adds the outputs of the multipliers 10 and 11, and the adder 13 adds the color difference signal RY and the output of the adder 12. The output of the adder 13 is a color difference signal RY after correction. The adder 17 adds the outputs of the multipliers 15 and 16, and the adder 18 adds the color difference signal BY and the output of the adder 17. The output of the adder 18 is a corrected color difference signal BY.

以上の乗算器10,11及び加算器12,13は、次の(13)式を演算処理し、乗算器15,16とインバータ14と加算器17,18は、次の(14)式を演算処理していることが分かる。(13)式により補正した色差信号R−Yが得られ、(14)式により補正した色差信号B−Yが得られる。   The multipliers 10 and 11 and the adders 12 and 13 calculate the following equation (13), and the multipliers 15 and 16, the inverter 14, and the adders 17 and 18 calculate the following equation (14). You can see that it is processing. The color difference signal RY corrected by the equation (13) is obtained, and the color difference signal BY corrected by the equation (14) is obtained.

ΣPi×(B-Y)+ΣSi×(R-Y)+(R-Y) …(13)
-ΣPi×(R-Y)+ΣSi×(B-Y)+(B-Y) …(14)
入力された画素の色度点は、図3で説明したように、(B−Y),(R−Y)で表される。その色度点を図3の色差平面の原点からのベクトルと考えると、そのベクトルに直交するベクトルは、−(R−Y),(B−Y)となる。従って、(14)式と(13)式の第1項の−ΣPi×(R−Y),ΣPi×(B−Y)は、補正の対象となっている画素の色度点のベクトルに直交する方向への色相補正成分を表していることが分かる。また、(14)式と(13)式の第2項のΣSi×(B−Y),ΣSi×(R−Y)は、補正の対象となっている画素の色度点のベクトルと同一方向への補正、即ち、彩度補正成分を表していることが分かる。
ΣPi × (BY) + ΣSi × (RY) + (RY) (13)
-ΣPi × (RY) + ΣSi × (BY) + (BY) (14)
As described with reference to FIG. 3, the chromaticity points of the input pixels are represented by (BY) and (RY). Considering the chromaticity point as a vector from the origin of the color difference plane in FIG. 3, vectors orthogonal to the vector are-(RY) and (BY). Accordingly, −ΣPi × (R−Y) and ΣPi × (B−Y) in the first term of the equations (14) and (13) are orthogonal to the vector of chromaticity points of the pixel to be corrected. It can be seen that this represents a hue correction component in the direction of the image. In addition, ΣSi × (BY) and ΣSi × (RY) in the second term of the equations (14) and (13) are in the same direction as the chromaticity point vector of the pixel to be corrected. It can be seen that this represents a correction to, that is, a saturation correction component.

従って、本実施の形態では、色相補正においては、補正領域内の画素それぞれの色度点を、R−Y軸とB−Y軸との交点と補正領域内の画素それぞれとを結ぶそれぞれの等色相線と直交方向に移動させることとなる。よって、色相は、補正領域内全体で実質的に回転移動する。また、彩度補正においては、補正領域内の画素それぞれの色度点を、R−Y軸とB−Y軸との交点と補正領域内の画素それぞれとを結ぶそれぞれの等色相線と平行方向(等色相線上で彩度を大きくする方向または小さくする方向のいずれか)に移動させることとなる。よって、本実施の形態では、補正領域としての角度領域を大きく設定した場合であっても、色相や彩度を意図した通りに正しく補正することが可能となる。   Therefore, in the present embodiment, in hue correction, the chromaticity point of each pixel in the correction area is connected to the intersection of the RY axis and the BY axis and each pixel in the correction area. It is moved in the direction orthogonal to the hue line. Therefore, the hue substantially rotates and moves within the entire correction area. In the saturation correction, the chromaticity point of each pixel in the correction area is parallel to each equal hue line connecting the intersection of the RY axis and the BY axis and each pixel in the correction area. (Either in the direction of increasing or decreasing the saturation on the equi-hue line). Therefore, in the present embodiment, even when the angle region as the correction region is set large, it is possible to correct the hue and saturation correctly as intended.

以上のようにして,乗算器10,11及び加算器12,13の第1の回路ブロックと、乗算器15,16とインバータ14と加算器17,18の第2の回路ブロックとで、色差信号R−Y,B一Yと補正利得ΣPi,ΣSiとを演算することにより、色相及び彩度補正を施した色差信号R−Y,B−Yを生成している。これらの第1の回路ブロックと第2の回路ブロックは、色相及び彩度を補正する補正手段として動作している。加算器13,18より出力された色相及び彩度補正が施された色差信号R−Y,B−Yは、輝度・色差ガンマ補正部19に入力される。   As described above, the first circuit block of the multipliers 10 and 11 and the adders 12 and 13, the multiplier 15 and 16, the inverter 14, and the second circuit block of the adders 17 and 18, the color difference signal. By calculating RY, B 1 Y and correction gains ΣPi, ΣSi, color difference signals RY, BY with hue and saturation corrections are generated. These first circuit block and second circuit block operate as correction means for correcting hue and saturation. The color difference signals RY and BY subjected to the hue and saturation corrections output from the adders 13 and 18 are input to the luminance / color difference gamma correction unit 19.

ところで、上述した(13),(14)式による色差信号R−Y,B−Yの補正は、R−Y軸とB−Y軸との交点と補正領域内の画素それぞれとを結ぶそれぞれの等色相線と直交方向に移動させるものである。補正量(移動量)が小さい場合には、補正領域内の画素は実質的に回転方向に移動するとみなすことができる。しかしながら、補正量が大きい場含には、補正領域内の画素は回転方向に移動するとみなすことはできない。画素が等色相線と直交方向に大きく移動すると、彩度も変化することになる。   By the way, the correction of the color difference signals RY and BY by the above-described equations (13) and (14) is performed by connecting the intersection of the RY axis and the BY axis and each pixel in the correction area. It is moved in the direction orthogonal to the equi-hue line. When the correction amount (movement amount) is small, it can be considered that the pixels in the correction region substantially move in the rotation direction. However, if the correction amount is large, the pixels in the correction area cannot be regarded as moving in the rotation direction. When the pixel moves greatly in the direction orthogonal to the equi-hue line, the saturation also changes.

このような理由から、補正量を大きくする場合には、補正領域内の画素それぞれの色度点を、色差平面上の回転方向に移動させることが好ましい。画素の色度点を色差平面上の回転方向に移動させるための式は次の(15),(16)式で表すことができる。(15〉式により補正した色差信号R−Yが得られ、(16)式により補正した色差信号B−Yが得られる。   For this reason, when increasing the correction amount, it is preferable to move the chromaticity point of each pixel in the correction area in the rotation direction on the color difference plane. Expressions for moving the chromaticity points of the pixels in the rotation direction on the color difference plane can be expressed by the following expressions (15) and (16). The color difference signal RY corrected by the equation (15) is obtained, and the color difference signal BY corrected by the equation (16) is obtained.

(1+ΣSi)×sin(ΣPi)×(B-Y)+(1十ΣSi)×cos(ΣPi)×(R-Y) …(15)
(1+ΣSi)×cos(ΣPi)×(B-Y)-(1十ΣSi)×sin(ΣPi)×(R-Y) …(16)
この(15),(16)式をそのまま用いてもよいが、(15),(16)式における正弦関数と余弦関数を次の(17),(18)式のように近似してもよい。(17),(18)式によれば、ΣPiがπ/2ラジアンまでの範囲で極めて良好に近似し、実用上十分といえる。
(1 + ΣSi) × sin (ΣPi) × (BY) + (1 + ΣΣSi) × cos (ΣPi) × (RY) (15)
(1 + ΣSi) × cos (ΣPi) × (BY) − (1 + ΣΣSi) × sin (ΣPi) × (RY) (16)
Although the equations (15) and (16) may be used as they are, the sine function and cosine function in the equations (15) and (16) may be approximated as the following equations (17) and (18). . According to the equations (17) and (18), ΣPi approximates very well in the range up to π / 2 radians, and can be said to be practically sufficient.

sin(ΣPi)=ΣPi-(ΣPi)3/6.6 …(17)
cos(ΣPi)=1-(ΣPi)2/2.2 …(18)
補正領域内の画素の色度点を色差平面上の回転方向に移動させる場合には、垂算器10,11及び加算器12,13の第1の回路ブロックと、乗算器15,16とインバータ14と加算器17,18の第2の回路ブロックの部分を、(15),(16)式を実現するための回路構成に置き換えればよい。勿論、(15),(16)式をソフトウェアで実現してもよい。
sin (ΣPi) = ΣPi− (ΣPi) 3 /6.6 (17)
cos (ΣPi) = 1- (ΣPi) 2 /2.2 (18)
When moving the chromaticity points of the pixels in the correction area in the rotation direction on the color difference plane, the first circuit block of the adders 10 and 11 and the adders 12 and 13, the multipliers 15 and 16, and the inverter 14 and the second circuit block portion of the adders 17 and 18 may be replaced with a circuit configuration for realizing the equations (15) and (16). Of course, the equations (15) and (16) may be realized by software.

図1において、輝度・色差ガンマ補正部19には、上記のように入力端子3に入力された輝度信号Yと、累和器8,9より出力された補正利得ΣGyi,ΣGciが入力される。輝度・色差ガンマ補正部19には、図6に示すように、次の(19)式で示す補正関数を備えている。   In FIG. 1, the luminance / color difference gamma correction unit 19 receives the luminance signal Y input to the input terminal 3 and the correction gains ΣGyi and ΣGci output from the accumulators 8 and 9 as described above. As shown in FIG. 6, the luminance / color difference gamma correction unit 19 includes a correction function represented by the following equation (19).

G(X)=X1/1.5-X …(19)
輝度・色差ガンマ補正部19は、輝度信号Y及び色差信号R−Y,B−Yに対してガンマ補正を施すものであり、(19)式におけるX(図6の横軸)は、輝度信号Yや色差信号R−Y,B−Yの値となる。映像信号にガンマ補正を施す場合、表示デバイス(ディスプレイ)に応じて最適な特性が異なる。(19)式は一例であり、輝度・色差ガンマ補正部19での補正特性は、(19)式に限定されるものではない。
G (X) = X 1 / 1.5 -X (19)
The luminance / color difference gamma correction unit 19 performs gamma correction on the luminance signal Y and the color difference signals RY and BY, and X in the equation (19) (the horizontal axis in FIG. 6) represents the luminance signal. Y and the values of the color difference signals RY and BY. When gamma correction is performed on a video signal, optimum characteristics differ depending on the display device (display). The equation (19) is an example, and the correction characteristics in the luminance / color difference gamma correction unit 19 are not limited to the equation (19).

輝度・色差ガンマ補正部19は、補正利得ΣGyiと補正関数G(X)とを乗算し、この乗算結果を輝度信号Yに加算する。即ち、次の(20)式の演算処理を行う。   The luminance / color difference gamma correction unit 19 multiplies the correction gain ΣGyi by the correction function G (X), and adds the multiplication result to the luminance signal Y. That is, the arithmetic processing of the following equation (20) is performed.

Y+G(X)×ΣGyi …(20)
ここで、補正利得ΣGyiは、図6に示す補正関数G(X)の振幅を可変する係数であることが分かる。
Y + G (X) × ΣGyi (20)
Here, it can be seen that the correction gain ΣGyi is a coefficient that varies the amplitude of the correction function G (X) shown in FIG.

このような輝度信号Yのガンマ補正によって輝度が変化すると、彩度も変化して、彩度を補正する必要が生じる。そこで、輝度・色差ガンマ補正部19は、入力される色差信号R−Y,B−Yもガンマ補正する。輝度・色差ガンマ補正部19は、色差信号R−Y,B−Yそれぞれに補正利得ΣGciと補正関数G(X)と1/Xを乗算し、この乗算結果を色差信号R−Y,B−Yそれぞれに加算する。即ち、次の(21),(22)式の演算処理を行う。   When the luminance is changed by such gamma correction of the luminance signal Y, the saturation is also changed, and the saturation needs to be corrected. Therefore, the luminance / color difference gamma correction unit 19 also performs gamma correction on the input color difference signals RY and BY. The luminance / color difference gamma correction unit 19 multiplies the color difference signals RY and BY by the correction gain ΣGci, the correction function G (X) and 1 / X, and the multiplication result is used as the color difference signals RY and B−. Add to each Y. In other words, the following arithmetic processings (21) and (22) are performed.

(R-Y)+(R-Y)×G(X)×ΣGci/X …(21)
(B-Y)+(B-Y)×G(X)×ΣGci/X …(22)
この(21),(22)式で(R−Y)×G(X)×ΣGci,(B−Y)×G(X)×ΣGciをXで割っているのは、彩度の増減比率を輝度の増減比率に合わせるためである。Xが例えば0.1以下のような小さな値のときには、動作が不安定となったり、低輝度でのS/Nが悪くなるおそれがある。そこで、動作の安定性や低輝度でのS/Nを良くするため、Xの最小値を0.1に制限することが好ましい。このようにして、輝度信号のガンマ処理に応じて彩度の補正(Cガンマ)を行うことができる。
(RY) + (RY) × G (X) × ΣGci / X (21)
(BY) + (BY) × G (X) × ΣGci / X (22)
Dividing (R−Y) × G (X) × ΣGci, (B−Y) × G (X) × ΣGci by X in the equations (21) and (22) indicates the increase / decrease ratio of saturation. This is to match the luminance increase / decrease ratio. When X is a small value such as 0.1 or less, the operation may become unstable or the S / N at low luminance may be deteriorated. Therefore, it is preferable to limit the minimum value of X to 0.1 in order to improve the stability of operation and the S / N at low luminance. In this way, saturation correction (C gamma) can be performed in accordance with the gamma processing of the luminance signal.

輝度・色差ガンマ補正部19より出力されたYガンマが施された輝度信号Yは、出力端子22より出力され、Cガンマが施された色差信号R−Y,B−Yはそれぞれ出力端子20,21より出力される。輝度信号Yと色差信号R−Y,B−Yを3原色信号に戻す必要がある場合には、線形マトリクス演算によって3原色信号に変換すればよい。   The luminance signal Y subjected to Y gamma output from the luminance / color difference gamma correction unit 19 is output from the output terminal 22, and the color difference signals RY and BY subjected to C gamma are output to the output terminal 20, respectively. 21 is output. When it is necessary to return the luminance signal Y and the color difference signals RY and BY to the three primary color signals, they may be converted into the three primary color signals by linear matrix calculation.

以上の構成により、入力端子1〜3に入力された色差信号R−Y,B−Yと輝度信号Yは、予め設定した補正領域内のみ、色相や彩度を補正することができ、さらにこの補正に加えて、Yガンマ、Cガンマを施すことができる。本実施の形態では、色相、彩度、Yガンマ、Cガンマの全てを補正する場合について説明したが、これらの内の任意の1つの要素のみ補正したり、任意の組み合わせで補正してもよい。但し、YガンマとCガンマは組とすることが好ましい。   With the above configuration, the color difference signals RY and BY and the luminance signal Y input to the input terminals 1 to 3 can correct the hue and saturation only within a preset correction region. In addition to correction, Y gamma and C gamma can be applied. In this embodiment, the case of correcting all of hue, saturation, Y gamma, and C gamma has been described. However, only one of these elements may be corrected, or any combination may be corrected. . However, it is preferable that Y gamma and C gamma be a pair.

以上説明した本実施の形態では、乗算器10,11及び加算器12,13の第1の回路ブロックと、乗算器15,16とインバータ14と加算器17,18の第2の回路ブロックとによる色相や彩度の補正は、輝度信号Yの値には無関係である。輝度信号Yの値に応じて色相や彩度の補正量を異ならせてもよい。輝度信号Yの値に応じて色相や彩度の補正量を異ならせるには、補正利得算出部51〜5nに入力する係数p1,p2,s1を輝度信号Yの値に応じて変化させればよい。   In the present embodiment described above, the first circuit block of the multipliers 10 and 11 and the adders 12 and 13, and the second circuit block of the multipliers 15 and 16, the inverter 14, and the adders 17 and 18 are used. The correction of hue and saturation is irrelevant to the value of the luminance signal Y. Depending on the value of the luminance signal Y, the hue and saturation correction amounts may be varied. In order to vary the correction amount of hue and saturation according to the value of the luminance signal Y, the coefficients p1, p2, and s1 input to the correction gain calculation units 51 to 5n are changed according to the value of the luminance signal Y. Good.

輝度信号Yの値に応じて係数slを変化させて、彩度の補正量を異ならせる場合の特性の一例を図7に示す。横軸は輝度信号Yであり、縦軸は係数s1である。この特性は、低い輝度で彩度を下げ、高輝度で彩度を上げるようにしたものである。係数s1を変化させるための手段としては、一例として、図8に示すようなテーブルを用いることができる。図8において、テーブル31には、種々の値を有する係数s1が記憶されている。テーブル31には輝度信号Yの値がアドレスとして入力され、テープル31は入力された輝度信号Yの値に応じて係数s1を出力する。輝度信号Yの値に応じて係数p1,p2を変化させる場合も同様である。   FIG. 7 shows an example of characteristics when the coefficient sl is changed in accordance with the value of the luminance signal Y to vary the saturation correction amount. The horizontal axis is the luminance signal Y, and the vertical axis is the coefficient s1. This characteristic is such that the saturation is lowered at low luminance and the saturation is increased at high luminance. As a means for changing the coefficient s1, for example, a table as shown in FIG. 8 can be used. In FIG. 8, the table 31 stores a coefficient s1 having various values. A value of the luminance signal Y is input to the table 31 as an address, and the table 31 outputs a coefficient s1 according to the input value of the luminance signal Y. The same applies when the coefficients p1 and p2 are changed according to the value of the luminance signal Y.

このように輝度信号Yの値に応じて色相や彩度を変化させると、補正領域内の映像は、図9に示すように3次元的に補正されることになる。図9において、輝度信号Yの値を示すY軸は、R−Y軸、B−Y軸よりなる色差平面に直交する。図9中のY0,Y1,Y2はそれぞれ等輝度平面を示している。図9に示す丸数字1は、輝度信号Yの値には無関係に、白丸で示す画素の色相及び彩度を黒丸で示す位置へと補正した場合を概念的に示している。図9に示す丸数字2は、輝度信号Yの値に応じて、白丸で示す画素の色相及び彩度を黒丸で示す位置へと補正した場合を概念的に示している。   As described above, when the hue and saturation are changed according to the value of the luminance signal Y, the image in the correction area is three-dimensionally corrected as shown in FIG. In FIG. 9, the Y axis indicating the value of the luminance signal Y is orthogonal to the color difference plane composed of the RY axis and the BY axis. In FIG. 9, Y0, Y1, and Y2 indicate equiluminance planes. A circled number 1 shown in FIG. 9 conceptually shows a case where the hue and saturation of a pixel indicated by a white circle are corrected to a position indicated by a black circle regardless of the value of the luminance signal Y. A circled number 2 shown in FIG. 9 conceptually shows a case where the hue and saturation of a pixel indicated by a white circle are corrected to a position indicated by a black circle according to the value of the luminance signal Y.

さらに、図9に示す丸数字3は、丸数字1の補正に加えて、Yガンマ、Cガンマを施した場合を概念的に示している。図9に示す丸4数字は、丸数字2の補正に加えて、Yガンマ、Cガンマを施した場合を概念的に示している。   Further, the circled number 3 shown in FIG. 9 conceptually shows the case where Y gamma and C gamma are applied in addition to the correction of the circled number 1. The four circle numbers shown in FIG. 9 conceptually show the case where Y gamma and C gamma are applied in addition to the correction of the circle number 2.

ところで、図1においては、本実施の形態の構成をハードウェアの如く記載しているが、ソフトウェア(コンビュータプログラム)にて実現してもよいことは勿論である。本発明は、本発明の構成を集積回路としたり、本発明のステップを含むプログラムやこのプログラムを記録した記録媒体としてもよい。記録媒体は、CD−R0M等の光ディスク及びこれ以外のディスクを含む任意の媒体でよい。これは、次の第2の実施の形態に対して同様である。   In FIG. 1, the configuration of the present embodiment is described as hardware, but it is needless to say that the configuration may be realized by software (contributor program). In the present invention, the configuration of the present invention may be an integrated circuit, a program including the steps of the present invention, or a recording medium on which this program is recorded. The recording medium may be any medium including an optical disk such as CD-R0M and other disks. This is the same as in the second embodiment.

以上の説明より明らかなように、映像補正方法やコンビュータに映像補正を実行させるための映像補正プログラムは、以下のステップを含む。まず、第1のステップとして、入力画素それぞれの色差平面上における色差信号R−Y,B−Y成分がなす角度を算出する角度算出ステップを含む。   As is clear from the above description, a video correction program for causing a video correction method or a computer to execute video correction includes the following steps. First, as a first step, an angle calculation step of calculating an angle formed by the color difference signals RY and BY components on the color difference plane of each input pixel is included.

第2のステップとして、角度算出ステップによって算出された入力画素それぞれの角度をパラメータとして、補正領域外では映像信号の画素の色調、彩度、Yガンマ、Cガンマを補正するための補正利得を0とし、補正領域内で所定の補正利得を生成する補正利得算出式に基づいて、補正領域内の画素の色相,彩度,Yガンマ,Gガンマを補正するための補正利得を算出する補正利得算出ステップを含む。   As a second step, with the angle of each input pixel calculated in the angle calculation step as a parameter, a correction gain for correcting the tone, saturation, Y gamma, and C gamma of the pixels of the video signal outside the correction region is 0. Correction gain calculation for calculating a correction gain for correcting the hue, saturation, Y gamma, and G gamma of a pixel in the correction area based on a correction gain calculation formula for generating a predetermined correction gain in the correction area Includes steps.

色差平面上に補正領域を複数設定した場合には、第3のステップとして、複数の補正領域それぞれの補正利得を累和する累和ステップを含む。補正領域が1つのみであれば、この累和ステップは必要ない。第4のステップとして、色差信号R−Y,B−Yと色相、彩度の補正利得とを演算することによって、補正領域内の画素の色相、彩度を補正する補正ステップを含む。   When a plurality of correction areas are set on the color difference plane, the third step includes an accumulation step of accumulating the correction gains of the plurality of correction areas. If there is only one correction area, this accumulation step is not necessary. The fourth step includes a correction step of correcting the hue and saturation of the pixels in the correction region by calculating the color difference signals RY and BY and the hue and saturation correction gains.

さらに、第5のステップとして、Yガンマの補正利得を所定の補正関数に乗算したものを輝度信号Yに加算して輝度信号Yを補正(Yガンマ補正〉すると共に、色差信号R−Y,B−YそれぞれにCガンマでの補正利得とその補正関数とを乗算したものを色差信号R−Y,B−Yそれぞれに加算して、色差信号R−Y,B−Yを補正(Cガンマ補正)するステップを含む。   Further, as a fifth step, the luminance signal Y is corrected by adding the Y gamma correction gain multiplied by a predetermined correction function to the luminance signal Y (Y gamma correction), and the color difference signals RY, B -Y multiplied by the correction gain in C gamma and its correction function is added to each of the color difference signals RY and BY to correct the color difference signals RY and BY (C gamma correction). Step).

なお、第1〜第3のステップは、この順で行われることが必要である。第4のステップと第5のステップは同じタイミングで行われてもよく、時間的にどちらが前後であってもよい。   The first to third steps need to be performed in this order. The fourth step and the fifth step may be performed at the same timing, and either may be before or after in time.

ところで、本発明は,色度点のばらつきや撮像装置に起因した映像のばらつきを補正するためだけでなく、特定の色を意図的に補正する目的で用いることもできる。例えば、芝生や木の緑色を黄色や茶色に変色させて、映像の季節感を変化させることができる。このように、本発明は、映像の特定の色の色相や彩度や輝度(階調)を任意に可変できるので、種々の日的に用いることが可能となる。また、本実施の形態では、色差信号をR−Y,B−Yとして説明したが、色差信号はR−Y,B−Yに限定されるものではなく、色差信号Cb,Crであってもよい。   By the way, the present invention can be used not only for correcting variations in chromaticity points and image variations caused by an imaging apparatus, but also for the purpose of intentionally correcting a specific color. For example, the green color of lawn or tree can be changed to yellow or brown to change the seasonal feeling of the image. As described above, the present invention can arbitrarily change the hue, saturation, and luminance (gradation) of a specific color of an image, and thus can be used for various days. In the present embodiment, the color difference signals are described as RY and BY, but the color difference signals are not limited to RY and BY, and may be color difference signals Cb and Cr. Good.

上述したように、図1の補正利得算出部51〜5nにて設定する補正領域は部分的に重なっていてもよい。補正領域を重ねた場合には、上述した色相、彩度、Yガンマ、Cガンマの補正は1つの補正領域における補正がその1つの補正領域に部分的に重なった他の補正領域に影響を及ぼすこととなる。本発明を実際の製品に搭載した場合、補正領域を重ねて設定した方が好ましい場合もある。   As described above, the correction areas set by the correction gain calculation units 51 to 5n in FIG. 1 may partially overlap. When correction areas are overlapped, the above-described correction of hue, saturation, Y gamma, and C gamma affects other correction areas in which correction in one correction area partially overlaps the one correction area. It will be. When the present invention is mounted on an actual product, it may be preferable to set correction regions in an overlapping manner.

図10は、複数の補正領域を重ねて設定した場合にそれぞれの補正領域における補正が他の補正領域に及ぼす影響を軽減するための好適な実施の形態を示している。図10に示す回路構成は、図1の回路構成に加えるように構成する。前述のように、図1における累和器6〜9は,補正利得算出部51〜5nより出力された補正利得P,S,Gy,Gcをそれぞれ累和する。図10に示す回路構成を図1の回路構成に加えた場合には、累和器6〜9には図10に示す回路によって置換または調整された補正利得P,S,Gy、Gcが入力される。累和器6〜9より後段の処理は前述の通りである。   FIG. 10 shows a preferred embodiment for reducing the influence of correction in each correction area on other correction areas when a plurality of correction areas are set in an overlapping manner. The circuit configuration shown in FIG. 10 is configured to be added to the circuit configuration of FIG. As described above, the accumulators 6 to 9 in FIG. 1 accumulate the correction gains P, S, Gy, and Gc output from the correction gain calculation units 51 to 5n, respectively. When the circuit configuration shown in FIG. 10 is added to the circuit configuration shown in FIG. 1, the correction gains P, S, Gy, and Gc replaced or adjusted by the circuit shown in FIG. The The processing subsequent to the accumulators 6 to 9 is as described above.

図11は複数の補正領域を重ねて設定した場合の一例を色差平面にて示している。補正領域として肌色と赤色と黄色を考える。ここでは肌色とは一般的な日本人の肌色を指しており、図11の色差平面の125°近辺にある、赤色は110°近辺、黄色は160°近辺にある。図11に示すように、実線で囲んだ領域を肌色領域Aとして設定し、一点鎖線で囲んだ領域を赤色領域Bとして設定し、二点鎖線で囲んだ領域を黄色領域Cとして設定したとする。肌色領域Aと赤色領域Bとが一部で重なっており、肌色領域Aと黄色領域Cとが一部で重なっている。これらの3つの領域は、補正利得算出部51〜5nの内の3つを用いて設定する。   FIG. 11 shows an example of a color difference plane when a plurality of correction areas are set in an overlapping manner. Consider skin color, red, and yellow as correction areas. The skin color here refers to a general Japanese skin color, which is around 125 ° on the color difference plane of FIG. 11, red is around 110 °, and yellow is around 160 °. As shown in FIG. 11, it is assumed that a region surrounded by a solid line is set as a skin color region A, a region surrounded by a one-dot chain line is set as a red region B, and a region surrounded by a two-dot chain line is set as a yellow region C. . The skin color area A and the red area B partially overlap, and the skin color area A and the yellow area C partially overlap. These three areas are set using three of the correction gain calculation units 51 to 5n.

図10に示す映像補正装置は、色差信号R−Y,B−Yを入力して、色差信号R−Y,B−Yがなすベクトル長VCを算出するベクトル長算出部60、入力画素それぞれの輝度信号Yは外部パラメータと乗算して7段階にレベルを変える乗算器61、ベクトル長算出部60より出力されたベクトル長VCと先に述べたレベルを変化させた輝度信号Yを用いて色信号成分の濃淡の程度を検出する濃淡検出部62、この濃淡検出部62の出力にリミットを掛けるリミッタ63、このリミッタ63の出力と補正関数M12とを乗算する乗算器64、この乗算器64の出力値のレンジを調整するためのリミッタ65、外部パラメータとして与えられるPARA1をリミッタ65の出力から減算する減算器66、この減算器66の出力に対してリミットをかけ、領域Aの補正値(1)を得るリミッタ67、また減算器66の出力からこのリミッタ67の出力する補正値(1)を減算することで領域B,Cのそれぞれの補正値(2)を得る減算器68を備えている。   The video correction apparatus shown in FIG. 10 receives the color difference signals RY and BY and calculates a vector length VC formed by the color difference signals RY and BY, and each of the input pixels. The luminance signal Y is a color signal using the multiplier 61 that multiplies the external parameter to change the level in seven stages, the vector length VC output from the vector length calculation unit 60, and the luminance signal Y whose level is changed as described above. A density detector 62 for detecting the degree of density of the component, a limiter 63 for limiting the output of the density detector 62, a multiplier 64 for multiplying the output of the limiter 63 and the correction function M12, and an output of the multiplier 64 A limiter 65 for adjusting the value range, a subtracter 66 for subtracting PARA1 given as an external parameter from the output of the limiter 65, and a limit for the output of the subtractor 66. The limiter 67 for obtaining the correction value (1) of the area A, and the correction value (2) of the areas B and C by subtracting the correction value (1) output from the limiter 67 from the output of the subtractor 66. Is provided.

本実施の形態の映像補正装置はさらに、ベクトル長算出部60の出力VCにリミットを掛けるリミッタ71、このリミッタ71の出力に対して外部パラメータPARA2によって低彩度における補正範囲の閾値を設定するセレクタ72、このセレクタ72の出力に領域Aの補正範囲M12_sを乗算する乗算器73、この乗算器73の出力にリミットを掛け、領域Aの低彩度における補正値(3)を出力するリミッタ75を備え、また同じように、セレクタ72の出力を領域B,Cのそれぞれの補正範囲M12_x,M12_yと乗算する乗算器74、この乗算器74の出力にリミットを掛け、領域B,Cの低彩度におけるそれぞれの補正値(4)を得るリミッタ76を備えている。   The video correction apparatus according to the present embodiment further includes a limiter 71 that limits the output VC of the vector length calculation unit 60, and a selector that sets a correction range threshold value at low saturation with respect to the output of the limiter 71 using the external parameter PARA2. 72, a multiplier 73 that multiplies the output of the selector 72 by the correction range M12_s of the area A, and a limiter 75 that limits the output of the multiplier 73 and outputs a correction value (3) in the low saturation of the area A. Similarly, a multiplier 74 that multiplies the output of the selector 72 by the respective correction ranges M12_x and M12_y of the regions B and C, and limits the output of the multiplier 74 to reduce the low saturation of the regions B and C. Is provided with a limiter 76 for obtaining each correction value (4).

本実施の形態の映像補正装置はさらに、リミッタ67の出力する領域Aの補正値(1)とリミッタ75の出力する低彩度における補正値(3)とを乗算して領域Aの全体の補正値(5)を得る乗算器77、この乗算器77の出力にリミットを掛けて領域Aにおける補正利得P,S,Gy,Gcの調整値を得るリミッタ78を備え、また、減算器68の出力する領域B,Cの補正値(2)とリミッタ76の出力する低彩度における補正値(4)を乗算して領域B,Cの全体の補正値(6)を得る乗算器79、この乗算器79の出力にリミットを掛けて領域B,Cにおける補正利得P,S,Gy,Gcの調整値を得るリミッタ80を備えている。   The video correction apparatus according to the present embodiment further multiplies the correction value (1) for the region A output from the limiter 67 by the correction value (3) for the low saturation output from the limiter 75 to correct the entire region A. A multiplier 77 for obtaining a value (5), a limiter 78 for obtaining an adjustment value of the correction gains P, S, Gy, Gc in the region A by limiting the output of the multiplier 77, and an output of the subtractor 68 A multiplier 79 for multiplying the correction value (2) of the regions B and C to be multiplied by the correction value (4) for low saturation output from the limiter 76 to obtain the entire correction value (6) of the regions B and C, and this multiplication A limiter 80 is provided that limits the output of the device 79 to obtain adjustment values of the correction gains P, S, Gy, and Gc in the regions B and C.

本実施の形態の映像補正装置はさらに加えて、リミッタ80の出力する領域B,Cにおける補正利得P,S,Gy,Gcの調整値を赤色領域、黄色領域の信号に乗算する乗算器81とその出力に対する1/limitの除算を行う除算器82、またリミッタ78の出力する領域Aにおける補正利得P,S,Gy,Gcの調整値を肌色領域の信号に乗算する乗算器83とその出力に対する1/limitの除算を行う除算器84を備えている。   The video correction apparatus according to the present embodiment further includes a multiplier 81 that multiplies the adjustment values of the correction gains P, S, Gy, and Gc in the regions B and C output from the limiter 80 by the signals in the red region and the yellow region. A divider 82 that performs 1 / limit division on the output, a multiplier 83 that multiplies the adjustment values of the correction gains P, S, Gy, and Gc in the region A output from the limiter 78 by the skin color region signal, and the output A divider 84 that performs 1 / limit division is provided.

次に、上記構成の映像補正装置による映像補正処理について説明する。ベクトル長算出部60には色差信号R−Y,B−Yが入力される。ベクトル長算出部60は、入力画素それぞれの色差平面上における色差信号R−Y,B−Yがなすベクトルの大きさを表すベクトル長VCを算出する。入力画素それぞれの輝度信号Yは乗算器61において図示の外部パラメータPARA3により7段階にレベルを変えることができ、これによりユーザーが望む輝度レベルの範囲で補正をすることができる。ベクトル長算出部60より出力されたベクトル長VCと先に述べたレベルを変化させた輝度信号Yは濃淡検出部62に入力される。濃淡検出部62は、Y/VCを算出することにより色信号成分の濃淡の程度を検出する。ここでは色が薄い(淡い)ほど濃淡検出部62の出力が大きくなるように設定されている。濃淡検出部62の出力はリミッタ63に入れられる。リミッタ63の出力と前述の(3)〜(5)式の補正関数M12_sより得られる値を乗算器64に入力する。乗算器64の出力はリミッタ65に入力され、値のレンジを調整する。   Next, video correction processing by the video correction apparatus having the above configuration will be described. The color difference signals RY and BY are input to the vector length calculation unit 60. The vector length calculation unit 60 calculates a vector length VC representing the magnitude of a vector formed by the color difference signals RY and BY on the color difference plane of each input pixel. The level of the luminance signal Y of each input pixel can be changed in seven stages by the external parameter PARA3 shown in the multiplier 61, so that the correction can be made within the range of the luminance level desired by the user. The vector length VC output from the vector length calculation unit 60 and the luminance signal Y in which the level described above is changed are input to the light / dark detection unit 62. The light / dark detection unit 62 detects the light / dark degree of the color signal component by calculating Y / VC. Here, the lightness (lighter) color is set so that the output of the light / dark detection unit 62 increases. The output of the light / dark detection unit 62 is input to the limiter 63. A value obtained from the output of the limiter 63 and the correction function M12_s of the above-described equations (3) to (5) is input to the multiplier 64. The output of the multiplier 64 is input to the limiter 65 to adjust the value range.

特定領域Aとその領域に接する2つの領域B,Cとの境の中心である値PARA1を外部パラメータとして与え、この外部パラメータの値とリミッタ65の出力とを減算器66に入力し、リミッタ67を通して領域Aの補正値(1)を得る。リミッタ67のリミット値からこの補正値(1)を減算器68で減算することで領域B,Cのそれぞれの補正値(2)を得る。   A value PARA1 which is the center of the boundary between the specific area A and the two areas B and C in contact with the specific area A is given as an external parameter, and the value of this external parameter and the output of the limiter 65 are input to the subtractor 66. Through the process, the correction value (1) of the area A is obtained. By subtracting the correction value (1) from the limit value of the limiter 67 by the subtractor 68, the correction values (2) of the regions B and C are obtained.

図12に領域Aを肌色、Bを赤色、Cを黄色とした概念図を示す。横軸に色の濃淡を表すY/VC、縦軸に領域の交わり具合を現す数値、リミッタ67のリミット値を任意に指定する。外部パラメータPARA1からの各領域の幅を広くすればするほど交わり加減がなだらかになり、領域の違いによる色補正段差が出にくくなる。しかし、広く取りすぎると色補正効果が薄れてしまうという弊害もあるので、設定を要する。   FIG. 12 is a conceptual diagram in which the region A is skin color, B is red, and C is yellow. The horizontal axis represents Y / VC representing color shading, the vertical axis represents a numerical value indicating the degree of intersection of the areas, and the limit value of the limiter 67 is arbitrarily designated. As the width of each area from the external parameter PARA1 is increased, the crossing becomes smoother and the color correction step due to the difference in area becomes difficult to occur. However, if it is too wide, there is an adverse effect that the color correction effect is weakened.

一方で、ベクトル長算出部60の出力VCをリミッタ71に入力し、その出力をセレクタ72で外部パラメータPARA2によって低彩度における補正範囲の閾値を設定する。セレクタ72の出力に領域Aの補正範囲M12_sを乗算器73で乗算し、その出力をリミッタ75に入力することで、領域Aの低彩度における補正値(3)を得る。また同じように、セレクタの出力を領域B,Cのそれぞれの補正範囲M12_r,M12_yと乗算器74で乗算し、その出力をリミッタ76に入力することで領域B,Cの低彩度におけるそれぞれの補正値(4)を得る。   On the other hand, the output VC of the vector length calculation unit 60 is input to the limiter 71, and the output is set by the selector 72 using the external parameter PARA 2 to set the threshold value for the correction range in low saturation. By multiplying the output of the selector 72 by the correction range M12_s of the area A by the multiplier 73 and inputting the output to the limiter 75, the correction value (3) in the low saturation of the area A is obtained. Similarly, the output of the selector is multiplied by the respective correction ranges M12_r and M12_y of the regions B and C by the multiplier 74, and the output is input to the limiter 76, so that each of the regions B and C in the low saturation is obtained. A correction value (4) is obtained.

次に、得られた領域Aの補正値(1)と低彩度における補正値(3)を乗算器77で乗算することで、領域Aの全体の補正値(5)を得る。この値をリミッタ78でリミットした値は領域Aにおける補正利得P,S,Gy,Gcを調整するための調整値となる。また、得られた領域B,Cの補正値(2)と低彩度における補正値(4)を乗算器79で乗算することで、領域B,Cの全体の補正値(6)を得る。この値をリミッタ80でリミットした値は領域B,Cにおける補正利得P,S,Gy,Gcを調整するための調整値となる。   Next, the correction value (1) for the area A and the correction value (3) for low saturation are multiplied by the multiplier 77 to obtain the entire correction value (5) for the area A. A value obtained by limiting this value with the limiter 78 is an adjustment value for adjusting the correction gains P, S, Gy, and Gc in the region A. Also, the obtained correction value (2) for the regions B and C and the correction value (4) for low saturation are multiplied by the multiplier 79 to obtain the entire correction value (6) for the regions B and C. A value obtained by limiting this value with the limiter 80 is an adjustment value for adjusting the correction gains P, S, Gy, and Gc in the regions B and C.

図13に低彩度階調補正の概念図を示す。横軸を色差ベクトルVCとし、縦軸に領域の交わり具合を表す数値、リミッタ75または76の値を任意に指定する。外部パラメータPARA2からベクトルVC方向に各領域に広く値を設定すれば、交わり加減がなだらかとなり、入力信号が低輝度、低彩度の場合において、補正効果の差による色の段差はなくなりノイズ感をなくすことができる。低輝度、低彩度においてはどの色領域に対しても補正効果の差が目立ってしまうので、どの色領域にも同様の補正装置を備えることが望ましい。   FIG. 13 shows a conceptual diagram of low saturation gradation correction. The horizontal axis is the color difference vector VC, and the vertical axis arbitrarily designates a numerical value representing the degree of intersection of the regions and the limiter 75 or 76 value. If a large value is set in each area in the vector VC direction from the external parameter PARA2, the crossing is moderated, and when the input signal has low luminance and low saturation, there is no color step due to the difference in correction effect, and the noise is felt. Can be eliminated. Since the difference in the correction effect is conspicuous for any color region at low luminance and low saturation, it is desirable to provide a similar correction device for any color region.

本映像補正装置による補正利得調整によって、赤色領域や黄色領域における肌色に近い部分の補正利得P,S,Gy,Gcが弱められる。従って、赤色領域や黄色領域におけるそれぞれの色の補正が肌色に及ぼす影響を軽減することができる。ある特定の領域とその領域に接する2つの領域について述べたが、特に有効なのは図11に示すように肌色の領域Aとそれに接する2つの領域、赤と黄色の領域B,Cの場合である。なお、これらの領域は任意に設定可能である。   By the correction gain adjustment by the video correction apparatus, the correction gains P, S, Gy, and Gc in the red region and the yellow region that are close to the skin color are weakened. Therefore, it is possible to reduce the influence of correction of each color in the red region and the yellow region on the skin color. Although a specific area and two areas in contact with the area have been described, it is particularly effective in the case of a skin-colored area A and two areas in contact therewith, red and yellow areas B and C, as shown in FIG. These areas can be set arbitrarily.

本発明の1つの実施の形態のブロック図。1 is a block diagram of one embodiment of the present invention. 図1中の角度算出部4での具体的処理を示すフローチャート。The flowchart which shows the specific process in the angle calculation part 4 in FIG. 色差平面を示す図。The figure which shows a color difference plane. 図1中の補正利得算出部51〜5nで用いる補正関数の説明図。Explanatory drawing of the correction function used with the correction gain calculation parts 51-5n in FIG. 図4に示す補正関数の作用の説明図。Explanatory drawing of an effect | action of the correction function shown in FIG. 図1中の輝度・色差ガンマ処理部19で用いる補正関数の説明図。Explanatory drawing of the correction function used in the brightness | luminance and color difference gamma process part 19 in FIG. 輝度信号に応じて彩度補正利得の係数を可変する場合の変換特性例を示す図。The figure which shows the example of a conversion characteristic in the case of varying the coefficient of a saturation correction gain according to a luminance signal. 輝度信号に応じて彩度補正利得の係数を可変するための手段の一例を示すブロック図。The block diagram which shows an example of the means for changing the coefficient of a saturation correction gain according to a luminance signal. 輝度信号に応じて色相・彩度補正利得の係数を可変する場合の作用の説明図。Explanatory drawing of an effect | action in the case of changing the coefficient of a hue and a saturation correction gain according to a luminance signal. 本発明の第2の実施の形態のブロック図。The block diagram of the 2nd Embodiment of this invention. 複数の補正領域を重ねて設定した場合の色差平面の一例を示す図。The figure which shows an example of the color difference plane at the time of setting a some correction | amendment area | region on overlapping. 複数の補正領域を重ねて設定する場合の各領域の補正関数の関係を示す説明図。Explanatory drawing which shows the relationship of the correction function of each area | region in the case of setting a some correction | amendment area | region overlappingly. 低彩度階調補正の概念図。The conceptual diagram of low saturation gradation correction.

符号の説明Explanation of symbols

60 ベクトル長算出部
61,64,73,74,77,79 乗算器
62 濃淡検出部
63,65,67,71,75,76,78,80 リミッタ
70 低彩度階調補正部
81,83 乗算器(補正利得調整手段)
82,84 除算器(補正利得調整手段)
60 Vector length calculation unit 61, 64, 73, 74, 77, 79 Multiplier 62 Shading detection unit 63, 65, 67, 71, 75, 76, 78, 80 Limiter 70 Low saturation gradation correction unit 81, 83 Multiplication (Correction gain adjustment means)
82,84 Divider (correction gain adjustment means)

Claims (2)

映像信号の画素の色信号成分である第1及び第2の色差信号の一方を第1の軸とし、前記第1及び第2の色差信号の他方を第1の軸と直交する第2の軸としたとき、前記第1及び第2の軸がなす色差平面上における少なくとも第1及び第2の角度領域を第1及び第2の補正領域として設定し、前記第1及び第2の補正領域内それぞれの映像信号を補正する映像補正装置において、
入力画素それぞれの前記色差平面上における第1の色差信号成分と第2の色差信号成分とがなす角度を算出する角度算出手段と、
前記角度算出手段によって算出した入力画素それぞれの角度をパラメータとした補正関数を用い、前記補正領域外では前記映像信号の画素の色相と彩度と輝度の内の少なくとも1つを補正するための補正利得を0とし、前記補正領域内では所定の補正利得を生成する補正利得算出式に基づいて、前記補正領域内の画素の色相と彩度と輝度の内の少なくとも1つを補正するための補正利得を算出する前記第1及び第2の補正領域毎に設けられた第1及び第2の補正利得算出手段と、
前記入力画素それぞれの前記色差平面上における前記第1の色差信号成分と前記第2の色差信号成分とがなすベクトルの大きさを表すベクトル長を算出するベクトル長算出手段と、
前記入力画素それぞれの輝度信号成分と前記ベクトル長とを用いて、前記入力画素それぞれの色信号成分の濃淡の程度を検出する濃淡検出手段と、
前記濃淡検出手段の出力と前記第1の補正利得算出手段の出力する第1の補正利得とを乗算する第1の乗算手段と、
前記第1の乗算手段の出力する積値から予め設定されている外部パラメータを減算して第1の補正値を得る第1の減算手段と、
1から前記第1の減算手段の出力する第1の補正値を引くことで第2の補正領域に対する第2の補正値を得る第2の減算手段と、
前記第1の減算手段の出力する第1の補正値によって第1の補正領域の補正利得を調整する第1の補正利得調整手段と、
前記第2の減算手段の出力する第2の補正値によって第2の補正領域の補正利得を調整する第2の補正利得調整手段とを備えたことを特徴とする映像補正装置。
One of the first and second color difference signals, which are the color signal components of the pixels of the video signal, is a first axis, and the other of the first and second color difference signals is a second axis orthogonal to the first axis. In this case, at least the first and second angle regions on the color difference plane formed by the first and second axes are set as the first and second correction regions, and are within the first and second correction regions. In a video correction device that corrects each video signal,
Angle calculating means for calculating an angle formed by the first color difference signal component and the second color difference signal component on the color difference plane of each input pixel;
Correction for correcting at least one of hue, saturation and luminance of the pixel of the video signal outside the correction region using a correction function using the angle of each input pixel calculated by the angle calculation means as a parameter Correction for correcting at least one of hue, saturation, and luminance of a pixel in the correction area based on a correction gain calculation formula that sets the gain to 0 and generates a predetermined correction gain in the correction area First and second correction gain calculation means provided for each of the first and second correction regions for calculating the gain;
Vector length calculating means for calculating a vector length representing a magnitude of a vector formed by the first color difference signal component and the second color difference signal component on the color difference plane of each of the input pixels;
A light / dark detection means for detecting a light / dark degree of the color signal component of each input pixel using the luminance signal component of each of the input pixels and the vector length;
First multiplication means for multiplying the output of the light and shade detection means by the first correction gain output from the first correction gain calculation means;
First subtraction means for subtracting a preset external parameter from the product value output from the first multiplication means to obtain a first correction value;
Second subtracting means for obtaining a second correction value for the second correction area by subtracting the first correction value output from the first subtracting means from 1;
First correction gain adjusting means for adjusting the correction gain of the first correction area according to the first correction value output from the first subtracting means;
An image correction apparatus comprising: a second correction gain adjusting unit that adjusts the correction gain of the second correction region by the second correction value output from the second subtracting unit.
前記ベクトル長算出手段の出力に対して予め設定されている外部パラメータによって低彩度における補正範囲の閾値を設定するセレクタと、
前記セレクタの出力に前記第1の補正利得を乗算する第2の乗算手段と、
前記セレクタの出力に第2の補正利得を乗算する第3の乗算手段と、
前記第1の減算手段の出力する第1の補正値と前記第2の乗算手段の出力する積値とを乗算して新たな第1の補正値を得、前記第1の補正利得調整手段に与える第4の乗算手段と、
前記第2の減算手段の出力する第2の補正値と前記第3の乗算手段の出力する積値とを乗算して新たな第2の補正値を得、前記第2の補正利得調整手段に与える第5の乗算手段とを備えたことを特徴とする請求項1に記載の映像補正装置。

A selector that sets a threshold value of a correction range in low saturation by an external parameter set in advance with respect to the output of the vector length calculation means;
Second multiplying means for multiplying the output of the selector by the first correction gain;
Third multiplication means for multiplying the output of the selector by a second correction gain;
The first correction value output from the first subtracting means is multiplied by the product value output from the second multiplying means to obtain a new first correction value, and the first correction gain adjusting means A fourth multiplying means for giving,
The second correction value output from the second subtracting means is multiplied by the product value output from the third multiplying means to obtain a new second correction value, and the second correction gain adjusting means The image correcting apparatus according to claim 1, further comprising a fifth multiplying unit that gives the image.

JP2004312227A 2004-10-27 2004-10-27 Video correction device Expired - Fee Related JP4424154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004312227A JP4424154B2 (en) 2004-10-27 2004-10-27 Video correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004312227A JP4424154B2 (en) 2004-10-27 2004-10-27 Video correction device

Publications (2)

Publication Number Publication Date
JP2006128885A true JP2006128885A (en) 2006-05-18
JP4424154B2 JP4424154B2 (en) 2010-03-03

Family

ID=36723120

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004312227A Expired - Fee Related JP4424154B2 (en) 2004-10-27 2004-10-27 Video correction device

Country Status (1)

Country Link
JP (1) JP4424154B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012010227A (en) * 2010-06-28 2012-01-12 Jvc Kenwood Corp Image processing apparatus, and image processing method
JP2013211662A (en) * 2012-03-30 2013-10-10 Eizo Corp Gradation correction apparatus or method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012010227A (en) * 2010-06-28 2012-01-12 Jvc Kenwood Corp Image processing apparatus, and image processing method
JP2013211662A (en) * 2012-03-30 2013-10-10 Eizo Corp Gradation correction apparatus or method thereof

Also Published As

Publication number Publication date
JP4424154B2 (en) 2010-03-03

Similar Documents

Publication Publication Date Title
JP3620529B2 (en) Video correction apparatus and method, video correction program, and recording medium recording the same
US9710890B2 (en) Joint enhancement of lightness, color and contrast of images and video
JP4030560B2 (en) Image processing apparatus and image display apparatus
JP4398713B2 (en) Color signal correcting apparatus and method, and video signal processing system and method using the same
JP2001218078A (en) Device and method for correcting saturation
JP2005303989A (en) Color signal conversion device, display unit, color signal conversion program, recording media capable of reading computer recording the color signal conversion program, color signal conversin method, color display unit and color display method
JP2010500839A (en) Image gamut mapping
JP2008505523A (en) Camera color noise reduction method and circuit
JP5558240B2 (en) Image processing device
JP2006270417A (en) Video signal processing method and video signal processing apparatus
CN113691793A (en) Image white balance processing method
JP4257036B2 (en) Histogram equalization method
JP3173140B2 (en) Color adjustment device
JP4424154B2 (en) Video correction device
US7602400B2 (en) Color adjusting method and color adjusting apparatus
JP2012015894A (en) Color correction apparatus and method
JP4189810B2 (en) Video correction device
US20060279811A1 (en) Method for adjusting colors of image
JP2001128189A (en) Color correcting circuit
JP2000207547A (en) Image detail preserving method at the time of tone scale control for digital color image
JP2005318137A (en) Color correction circuit
JP5268996B2 (en) Color display device and color display method
JP2009239608A (en) Image processing apparatus and digital camera
JP2005051745A (en) Color temperature correcting circuit
JP5041538B2 (en) System and method for adjusting color image quality

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090814

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090901

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091026

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091117

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091130

R151 Written notification of patent or utility model registration

Ref document number: 4424154

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131218

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees