JP2005328277A - Signal processor and method, recording medium, and program - Google Patents
Signal processor and method, recording medium, and program Download PDFInfo
- Publication number
- JP2005328277A JP2005328277A JP2004143790A JP2004143790A JP2005328277A JP 2005328277 A JP2005328277 A JP 2005328277A JP 2004143790 A JP2004143790 A JP 2004143790A JP 2004143790 A JP2004143790 A JP 2004143790A JP 2005328277 A JP2005328277 A JP 2005328277A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- correction
- correction coefficient
- space
- calculation
- 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.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
Description
本発明は、信号処理装置および方法、記録媒体、並びにプログラムに関し、特に、入力される画像信号を容易に色補正できるようにした信号処理装置および方法、記録媒体、並びにプログラムに関する。 The present invention relates to a signal processing apparatus and method, a recording medium, and a program, and more particularly to a signal processing apparatus and method, a recording medium, and a program that can easily perform color correction on an input image signal.
従来、ビデオカメラにおいては、CCD(Charge Coupled Device),CMOS(Complementary Metal-Oxide Semiconductor)などの撮像素子により撮像された画像のコントラスト(明暗の差)および鮮鋭度(境界の明確さ)を向上させる方法として、階調変換によるコントラスト強調方法や画像中の高域成分のコントラストを強調する高域成分強調方法が考えられている。 Conventionally, in a video camera, the contrast (brightness difference) and sharpness (brightness of the boundary) of an image captured by an image sensor such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal-Oxide Semiconductor) are improved. As a method, a contrast enhancement method by gradation conversion and a high frequency component enhancement method for enhancing the contrast of a high frequency component in an image are considered.
コントラスト強調方法としては、画像の各画素に対して、その画素レベルを所定の入出力関係を持つ関数(以下、これをレベル変換関数と称する)で変換するトーンカーブ調整や、画素レベルの頻度分布に応じてレベル変換関数を適応的に変化させるヒストグラムイコライゼーションと呼ばれる方法が提案されている。 As a contrast enhancement method, tone curve adjustment for converting each pixel level of an image with a function having a predetermined input / output relationship (hereinafter referred to as a level conversion function), or frequency distribution of pixel levels A method called histogram equalization has been proposed in which the level conversion function is adaptively changed according to the above.
高域成分強調方法としては、画像からエッジを抽出し、抽出したエッジを強調するいわゆる輪郭強調を行うアンシャープマスクと呼ばれる方法が提案されている。 As a high frequency component enhancement method, a method called an unsharp mask that performs edge enhancement that extracts edges from an image and emphasizes the extracted edges has been proposed.
しかしながら、コントラスト強調方法においては、画像の全ダイナミックレンジ(最大レベルと最小レベルの差)のうち一部の輝度域しかコントラストを向上させることができない問題があることに加えて、トーンカーブ調整の場合には画像の最明部と最暗部において、またヒストグラムイコライゼーションの場合には頻度分布の少ない輝度域付近において、逆にコントラストが低下するという問題があった。さらに高域成分強調方法においては、画像の高域成分のコントラストのみが強調され、これにより画像のエッジ付近が不自然に強調され、画質が劣化してしまうという問題点があった。 However, in contrast enhancement methods, in addition to the problem that the contrast can be improved only in a part of the luminance range in the entire dynamic range (difference between the maximum level and the minimum level) of the image, in addition, in the case of tone curve adjustment However, there is a problem that the contrast is lowered in the brightest and darkest parts of the image, and in the case of histogram equalization, in the vicinity of the luminance region where the frequency distribution is small. Further, in the high frequency component enhancement method, only the contrast of the high frequency component of the image is enhanced, thereby causing a problem that the vicinity of the edge of the image is unnaturally enhanced and the image quality is deteriorated.
そこで、従来、図1に示すように構成される画像信号処理装置により、入力画像データのうち画素値の変化が急峻なエッジを保存した状態で、そのエッジ以外の部分を増幅することにより、エッジ以外の部分を強調する方法が存在する(例えば、特許文献1)。 Therefore, conventionally, an image signal processing device configured as shown in FIG. 1 is used to amplify a portion other than the edge by amplifying a portion other than the edge while preserving an edge having a sharp change in pixel value. There is a method for emphasizing other parts (for example, Patent Document 1).
図1に示された画像信号処理装置において、入力された画像信号(画素値)は、εフィルタ1、および減算部2に入力される。εフィルタ1は、所定の閾値ε1よりも大きいエッジ、例えば、図2Aに示されるような急峻なエッジを挟んで僅かに変動する画像信号が入力された場合、図2Bに示されるようなエッジのみが抽出された画像信号に変換して、減算部2および加算部4に出力する。
In the image signal processing apparatus shown in FIG. 1, the input image signal (pixel value) is input to the
εフィルタ1の具体的な処理について、図3および図4を参照して説明する。εフィルタ1は、入力画像の各画素を順次、注目画素Cに決定し、図3に示すように、注目画素Cを中心として水平方向に連続する複数の近傍画素(いまの場合、4画素L2,L1,R1,R2)からなるタップを設定し、次式(1)のように、注目画素Cおよび複数の近傍画素の画素値を、タップ係数(例えば、{1,2,3,2,1})を用いて加重平均して、注目画素Cに対応する変換結果C’として出力する。
C’=(1・L2+2・L1+3・C+2・R1+1・R2)/9
・・・(1)
Specific processing of the
C ′ = (1 · L2 + 2 · L1 + 3 · C + 2 · R1 + 1 · R2) / 9
... (1)
ただし、図4に示すように、注目画素Cの画素値との差分が、所定の閾値ε1よりも大きい近傍画素(図4の場合、近傍画素R2)については、画素値を注目画素Cのものと置換して計算するようにする。すなわち、図4の場合、次式(2)が計算される。
C’=(1・L2+2・L1+3・C+2・R1+1・C)/9
・・・(2)
However, as shown in FIG. 4, for a neighboring pixel (a neighboring pixel R2 in the case of FIG. 4) whose difference from the pixel value of the target pixel C is larger than a predetermined threshold ε 1 , the pixel value of the target pixel C is changed. Replace it with something to calculate. That is, in the case of FIG. 4, the following equation (2) is calculated.
C ′ = (1 · L2 + 2 · L1 + 3 · C + 2 · R1 + 1 · C) / 9
... (2)
尚、εフィルタ1により平滑化された画像信号は、特に、画像信号の構造成分とも称される。
The image signal smoothed by the
図1に戻る。減算部2は、前段から入力される画像信号(εフィルタ1に対する入力と同一のもの)から、εフィルタ1から入力される画像信号を減算することにより、画像信号の構造成分以外の僅かに変動している画像信号を抽出して増幅部3に出力する。増幅部3は、減算部2の出力を増幅して加算部4に出力する。尚、構造成分以外の僅かに変動している画像信号の成分は、特に、画像信号の振幅成分とも称される。加算部4は、増幅部3から出力される構造成分以外の部分が増幅されている画像信号と、εフィルタ1から入力される画像信号の構造成分を加算する。この加算結果が、急峻なエッジが保持された状態で、そのエッジ以外の部分が増幅されている画像信号となっている。
Returning to FIG. The subtracting unit 2 subtracts the image signal input from the
しかしながら、以上の手法では、yuv信号(y信号:輝度信号、u信号:(R-Y)色差信号)、v信号:(B-Y)色差信号(ここで、R,Bは、それぞれ光の3原色信号のRed,Blueの信号である))からなる画像信号の場合、容易に調整可能な信号はy信号についてのみであり、uv信号の調整、すなわち、いわゆる色補正は、容易に行うことができず、複雑な処理を伴ってしまうと言う課題があった。 However, in the above method, the yuv signal (y signal: luminance signal, u signal: (RY) color difference signal), v signal: (BY) color difference signal (where R and B are the three primary color signals of light, respectively) In the case of an image signal consisting of Red and Blue signals)), the signal that can be easily adjusted is only for the y signal, and the adjustment of the uv signal, that is, so-called color correction cannot be easily performed. There was a problem that complicated processing was involved.
本発明はこのような状況に鑑みてなされたものであり、特に、入力される画像信号を容易に色補正できるようにするものである。 The present invention has been made in view of such circumstances, and in particular, makes it possible to easily perform color correction on an input image signal.
本発明の第1の信号処理装置は、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離を計算する距離計算手段と、距離計算手段により計算された距離に基づいて、uv信号の補正係数を計算するuv信号補正係数計算手段と、少なくともuv信号補正係数計算手段により計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算手段と、uv補正量計算手段により計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正手段とを備えることを特徴とする。 The first signal processing apparatus of the present invention includes a distance calculation unit that calculates a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space, and a distance calculation unit. Based on the calculated distance, the uv signal correction coefficient calculating means for calculating the correction coefficient of the uv signal, and at least using the uv signal correction coefficient calculated by the uv signal correction coefficient calculating means, the correction amount of the uv signal is calculated. Uv signal correction amount calculation means for calculating, and correction means for correcting the uv signal of the image signal based on the uv correction amount calculated by the uv correction amount calculation means.
前記画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離として計算される値には、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分の二乗の和の平方根、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分絶対値の和、または、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分、若しくはv成分のうちのいずれか大きい方を含むようにさせることができる。 The value calculated as the distance between the position in the uv signal of the image signal in the uv space and the position corresponding to the predetermined color in the uv space includes the position in the uv space in the uv signal of the image signal and the uv space. The square root of the sum of the squares of the differences of the u and v components from the position corresponding to the predetermined color in the image, the position in the uv space in the uv signal of the image signal, and the position corresponding to the predetermined color in the uv space The sum of the absolute difference of each of the u and v components, or the u component of the position in the uv space and the position corresponding to a predetermined color in the uv space or v component of the uv signal of the image signal The larger of them can be included.
前記画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分の二乗の和の平方根、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分絶対値の和、または、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分、若しくはv成分のうちのいずれか大きい方のいずれかを画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離として設定する距離設定手段をさらに設けるようにさせることができ、距離計算手段には、距離設定手段により設定された距離を、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離として計算させるようにすることができる。 The square root of the sum of the squares of the difference between the u component and the v component of the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space, the uv space in the uv signal of the image signal The sum of the absolute differences of the u and v components between the position in the uv space and the position corresponding to the predetermined color in the uv space, or the position in the uv space in the uv signal of the image signal and the predetermined in the uv space The position corresponding to the color of the u component or the v component, whichever is larger, the position in the uv space in the uv signal of the image signal, and the position corresponding to the predetermined color in the uv space A distance setting means for setting the distance of the image signal may be further provided, and the distance calculation means includes the distance set by the distance setting means as the position in the uv space of the uv signal of the image signal and the distance in the uv space. The distance from the position corresponding to the predetermined color It can be made to be calculated.
本発明の第1の信号処理方法は、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離を計算する距離計算ステップと、距離計算ステップの処理で計算された距離に基づいて、uv信号の補正係数を計算するuv信号補正係数計算ステップと、少なくともuv信号補正係数計算ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算ステップと、uv補正量計算ステップの処理で計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正ステップとを含むことを特徴とする。 A first signal processing method of the present invention includes a distance calculation step of calculating a distance between a position in the uv space in the uv signal of the image signal and a position corresponding to a predetermined color in the uv space, Based on the distance calculated in the process, the uv signal correction coefficient calculation step for calculating the correction coefficient of the uv signal and at least the uv signal correction coefficient calculated in the processing of the uv signal correction coefficient calculation step And a correction step of correcting the uv signal of the image signal based on the uv correction amount calculated in the process of the uv correction amount calculation step. .
本発明の第1の記録媒体のプログラムは、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離の計算を制御する距離計算制御ステップと、距離計算制御ステップの処理で計算された距離に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、少なくともuv信号補正係数計算制御ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、uv補正量計算制御ステップの処理で計算されたuv補正量に基づいて、画像信号のuv信号の補正を制御する補正制御ステップとを含むことを特徴とする。 The first recording medium program of the present invention includes a distance calculation control step for controlling calculation of a distance between a position in the uv space in the uv signal of the image signal and a position corresponding to a predetermined color in the uv space; The uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal based on the distance calculated by the distance calculation control step process, and the uv signal calculated by at least the process of the uv signal correction coefficient calculation control step Uv signal correction amount calculation control step for controlling the calculation of the correction amount of the uv signal using the correction coefficient, and the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step. And a correction control step for controlling the correction.
本発明の第1のプログラムは、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離の計算を制御する距離計算制御ステップと、距離計算制御ステップの処理で計算された距離に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、少なくともuv信号補正係数計算制御ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、uv補正量計算制御ステップの処理で計算されたuv補正量に基づいて、画像信号のuv信号の補正を制御する補正制御ステップとを含む処理を実行させることを特徴とする。 A first program of the present invention includes a distance calculation control step for controlling calculation of a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space, and distance calculation control Uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal based on the distance calculated in the processing of the step, and at least the correction coefficient of the uv signal calculated by the processing of the uv signal correction coefficient calculation control step The uv signal correction amount calculation control step for controlling the calculation of the uv signal correction amount, and the uv correction amount of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step. A process including a correction control step for controlling is executed.
本発明の第2の信号処理装置は、画像信号のy信号に基づいて、uv信号の補正係数を計算するuv信号補正係数計算手段と、少なくともuv信号補正係数計算手段により計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算手段と、uv補正量計算手段により計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正手段とを備えることを特徴とする。 The second signal processing apparatus of the present invention includes a uv signal correction coefficient calculation unit that calculates a correction coefficient of the uv signal based on the y signal of the image signal, and at least the uv signal calculated by the uv signal correction coefficient calculation unit. Uv signal correction amount calculation means for calculating the correction amount of the uv signal using the correction coefficient, and correction means for correcting the uv signal of the image signal based on the uv correction amount calculated by the uv correction amount calculation means. It is characterized by providing.
前記uv信号補正係数計算手段には、画像信号のy信号を引数とした関数により、uv信号の補正係数を計算させるようにすることができる。 The uv signal correction coefficient calculation means can calculate the correction coefficient of the uv signal by a function using the y signal of the image signal as an argument.
前記複数の関数のうち、いずれかを設定する関数設定手段をさらに設けるようにさせることができ、uv信号補正係数計算手段には、関数設定手段により設定された関数により、uv信号の補正係数を計算させるようにすることができる。 A function setting means for setting any one of the plurality of functions may be further provided, and the uv signal correction coefficient calculation means may calculate a correction coefficient for the uv signal according to the function set by the function setting means. It can be calculated.
前記画像信号のy信号を非線形平滑化する非線形平滑化手段をさらに設けるようにさせることができ、uv信号補正係数計算手段には、非線形平滑化手段により非線形平滑化された画像信号のy信号に基づいて、uv信号の補正係数を計算させるようにすることができる。 Nonlinear smoothing means for nonlinearly smoothing the y signal of the image signal can be further provided, and the uv signal correction coefficient calculating means converts the y signal of the image signal nonlinearly smoothed by the nonlinear smoothing means. Based on this, the correction coefficient of the uv signal can be calculated.
本発明の第2の信号処理方法は、画像信号のy信号に基づいて、uv信号の補正係数を計算するuv信号補正係数計算ステップと、少なくともuv信号補正係数計算ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算ステップと、uv補正量計算ステップの処理で計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正ステップとを含むことを特徴とする。 According to the second signal processing method of the present invention, the uv signal correction coefficient calculation step for calculating the correction coefficient of the uv signal based on the y signal of the image signal, and the uv calculated by at least the processing of the uv signal correction coefficient calculation step. Using the signal correction coefficient, the uv signal correction amount calculation step for calculating the correction amount of the uv signal and the uv correction amount calculated in the processing of the uv correction amount calculation step correct the uv signal of the image signal. And a correction step.
本発明の第2の記録媒体のプログラムは、画像信号のy信号に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、少なくともuv信号補正係数計算制御ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、uv補正量計算制御ステップの処理で計算されたuv補正量に基づいた、画像信号のuv信号の補正を制御する補正制御ステップとを含むことを特徴とする。 The program of the second recording medium of the present invention includes a uv signal correction coefficient calculation control step for controlling calculation of a uv signal correction coefficient based on the y signal of the image signal, and a process of at least the uv signal correction coefficient calculation control step. Based on the uv correction amount calculated in the processing of the uv signal correction amount calculation control step and the uv correction amount calculation control step for controlling the calculation of the correction amount of the uv signal using the correction factor of the uv signal calculated in And a correction control step for controlling correction of the uv signal of the image signal.
本発明の第2のプログラムは、画像信号のy信号に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、少なくともuv信号補正係数計算制御ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、uv補正量計算制御ステップの処理で計算されたuv補正量に基づいた、画像信号のuv信号の補正を制御する補正制御ステップとを含む処理を実行させることを特徴とする。 The second program of the present invention is calculated by the processing of the uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal based on the y signal of the image signal, and at least the processing of the uv signal correction coefficient calculation control step. Uv signal correction amount calculation control step for controlling the calculation of the correction amount of the uv signal using the correction coefficient of the uv signal, and the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step. And a correction control step for controlling correction of the uv signal.
本発明の第3の信号処理装置は、画像信号に基づいて、画像信号のuv信号の補正係数を計算するuv信号補正係数計算手段と、uv信号補正係数計算手段により計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する画像信号のuv信号の補正量を計算するuv信号補正量計算手段と、uv補正量計算手段により計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号を補正する補正手段とを備えることを特徴とする。 According to a third signal processing apparatus of the present invention, a uv signal correction coefficient calculating unit that calculates a correction coefficient of a uv signal of an image signal based on the image signal, and a correction of the uv signal calculated by the uv signal correction coefficient calculating unit Based on the coefficient, the uv signal correction amount calculation means for calculating the correction amount of the uv signal of the image signal to be corrected in the predetermined correction direction in the uv space, and only the correction amount of the uv signal calculated by the uv correction amount calculation means And correction means for correcting the uv signal of the image signal in a predetermined correction direction in the uv space.
前記所定のuv空間の補正方向には、uv空間内の原点の位置からみて、画像信号のuv信号におけるuv空間内の位置への方向、uv空間内の原点の位置からみて、uv空間内の所定の色に対応する位置への方向、または、画像信号のuv信号におけるuv空間内の位置からみて、uv空間内の目標とする色に対応する位置への方向のいずれかを含ませるようにすることができる。 In the correction direction of the predetermined uv space, the direction to the position in the uv space in the uv signal of the image signal as seen from the position of the origin in the uv space, the position in the uv space as seen from the position of the origin in the uv space. To include either the direction to the position corresponding to the predetermined color or the direction to the position corresponding to the target color in the uv space as seen from the position in the uv space of the uv signal of the image signal can do.
前記uv空間内の原点の位置からみて、画像信号のuv信号におけるuv空間内の位置への方向、uv空間内の原点の位置からみて、uv空間内の所定の色に対応する位置への方向、または、画像信号のuv信号におけるuv空間内の位置からみて、uv空間内の目標とする色に対応する位置への方向のいずれかの方向を、画像信号のuv信号を補正するuv空間内の所定の補正方向として設定する補正方向設定手段をさらに設けるようにさせることができる。 The direction to the position in the uv space in the uv signal of the image signal as viewed from the position of the origin in the uv space, the direction to the position corresponding to a predetermined color in the uv space from the position of the origin in the uv space Or, in the uv space that corrects the uv signal of the image signal, either the direction to the position corresponding to the target color in the uv space as seen from the position in the uv space of the uv signal of the image signal Correction direction setting means for setting as a predetermined correction direction can be further provided.
本発明の第3の信号処理方法は、画像信号に基づいて、画像信号のuv信号の補正係数を計算するuv信号補正係数計算ステップと、uv信号補正係数計算ステップの処理で計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する、画像信号のuv信号の補正量を計算するuv信号補正量計算ステップと、uv補正量計算ステップの処理で計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号を補正する補正ステップとを備えることを特徴とする。 According to a third signal processing method of the present invention, a uv signal correction coefficient calculation step for calculating a correction coefficient of the uv signal of the image signal based on the image signal, and a uv signal calculated by the processing of the uv signal correction coefficient calculation step Uv signal correction amount calculation step for calculating the correction amount of the uv signal of the image signal, which is corrected in a predetermined correction direction in the uv space based on the correction coefficient of uv, and uv calculated by the processing of the uv correction amount calculation step And a correction step of correcting the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the signal.
本発明の第3の記録媒体のプログラムは、画像信号に基づいて、画像信号のuv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、uv信号補正係数計算制御ステップの処理で計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する、画像信号のuv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、uv補正量計算制御ステップの処理で計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号の補正を制御する補正制御ステップとを含むことを特徴とする。 The third recording medium program of the present invention includes a uv signal correction coefficient calculation control step for controlling calculation of a uv signal correction coefficient of an image signal based on the image signal, and a process of a uv signal correction coefficient calculation control step. A uv signal correction amount calculation control step for controlling calculation of the correction amount of the uv signal of the image signal, which is corrected in a predetermined correction direction in the uv space based on the calculated correction coefficient of the uv signal, and a uv correction amount calculation And a correction control step for controlling the correction of the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated in the control step process.
本発明の第3のプログラムは、画像信号に基づいて、画像信号のuv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、uv信号補正係数計算制御ステップの処理で計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する、画像信号のuv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、uv補正量計算制御ステップの処理で計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号の補正を制御する補正制御ステップとを含む処理を実行させることを特徴とする。 The third program of the present invention is calculated based on the image signal in the process of the uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal of the image signal and the process of the uv signal correction coefficient calculation control step. a uv signal correction amount calculation control step for controlling calculation of a correction amount of the uv signal of the image signal, which is corrected in a predetermined correction direction in the uv space based on the correction coefficient of the uv signal, and a uv correction amount calculation control step A correction control step for controlling correction of the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated in the process is executed.
本発明の第4の信号処理装置は、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離を計算する距離計算手段と、距離計算手段により計算された距離に基づいて、uv信号の第1の補正係数を計算する第1のuv信号補正係数計算手段と、画像信号のy信号に基づいて、uv信号の第2の補正係数を計算する第2のuv信号補正係数計算手段と、少なくとも第1のuv信号補正係数計算手段により計算されたuv信号の第1の補正係数と、第2のuv信号補正係数計算手段により計算されたuv信号の第2の補正係数とを用いて、uv空間内の所定の補正方向に補正する画像信号のuv信号の補正量を計算するuv信号補正量計算手段と、uv補正量計算手段により計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号を補正する補正手段とを備えることを特徴とする。 The fourth signal processing apparatus of the present invention includes a distance calculation unit that calculates a distance between a position in the uv space in the uv signal of the image signal and a position corresponding to a predetermined color in the uv space, and a distance calculation unit. Based on the calculated distance, a first uv signal correction coefficient calculating means for calculating a first correction coefficient of the uv signal, and a second correction coefficient of the uv signal based on the y signal of the image signal. A second uv signal correction coefficient calculating means; at least a first correction coefficient of the uv signal calculated by the first uv signal correction coefficient calculating means; and a uv signal calculated by the second uv signal correction coefficient calculating means. The uv signal correction amount calculating means for calculating the correction amount of the uv signal of the image signal to be corrected in the predetermined correction direction in the uv space, and the uv correction amount calculating means. The uv signal of the image signal in the predetermined correction direction in the uv space by the correction amount of the uv signal And correction means for correcting the signal.
本発明の第1の信号処理装置および方法、並びにプログラムにおいては、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離が計算され、計算された距離に基づいて、uv信号の補正係数が計算され、少なくとも計算されたuv信号の補正係数を用いて、uv信号の補正量が計算され、計算されたuv補正量に基づいて、画像信号のuv信号が補正される。 In the first signal processing apparatus and method and program of the present invention, the distance between the position in the uv space of the uv signal of the image signal and the position corresponding to a predetermined color in the uv space is calculated and calculated. The correction factor of the uv signal is calculated based on the calculated distance, the correction amount of the uv signal is calculated using at least the calculated correction factor of the uv signal, and the image signal is calculated based on the calculated uv correction amount. The uv signal is corrected.
本発明の第2の信号処理装置および方法、並びにプログラムにおいては、画像信号のy信号に基づいて、uv信号の補正係数が計算され、少なくとも計算されたuv信号の補正係数を用いて、uv信号の補正量が計算され、計算されたuv補正量に基づいて、画像信号のuv信号が補正される。 In the second signal processing apparatus and method and the program of the present invention, a correction coefficient of the uv signal is calculated based on the y signal of the image signal, and at least the uv signal is calculated using the calculated correction coefficient of the uv signal. The correction amount is calculated, and the uv signal of the image signal is corrected based on the calculated uv correction amount.
本発明の第3の信号処理装置および方法、並びにプログラムにおいては、画像信号に基づいて、画像信号のuv信号の補正係数が計算され、計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する画像信号のuv信号の補正量が計算され、計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号が補正される。 In the third signal processing apparatus and method and program of the present invention, the correction coefficient of the uv signal of the image signal is calculated based on the image signal, and the uv space is calculated based on the calculated correction coefficient of the uv signal. The correction amount of the uv signal of the image signal to be corrected in the predetermined correction direction is calculated, and the uv signal of the image signal is corrected in the predetermined correction direction in the uv space by the calculated correction amount of the uv signal.
本発明の第4の信号処理装置においては、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離が計算され、計算された距離に基づいて、uv信号の第1の補正係数が計算され、画像信号のy信号に基づいて、uv信号の第2の補正係数が計算され、少なくとも計算されたuv信号の第1の補正係数と、計算されたuv信号の第2の補正係数とを用いて、uv空間内の所定の補正方向に補正する画像信号のuv信号の補正量が計算され、計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号が補正される。 In the fourth signal processing device of the present invention, the distance between the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space is calculated, and based on the calculated distance. A first correction factor of the uv signal is calculated, a second correction factor of the uv signal is calculated based on the y signal of the image signal, and at least calculated with the first correction factor of the calculated uv signal The correction amount of the uv signal of the image signal to be corrected in the predetermined correction direction in the uv space is calculated using the second correction coefficient of the uv signal, and the calculated correction amount of the uv signal is calculated in the uv space. The uv signal of the image signal is corrected in the predetermined correction direction.
本発明の信号処理装置は、独立した装置であっても良いし、信号処理を行うブロックであっても良い。 The signal processing apparatus of the present invention may be an independent apparatus or a block that performs signal processing.
本発明によれば、入力される画像信号を容易に色補正することが可能となる。 According to the present invention, it is possible to easily perform color correction on an input image signal.
以下に本発明の実施の形態を説明するが、本明細書に記載の発明と、発明の実施の形態との対応関係を例示すると、次のようになる。この記載は、本明細書に記載されている発明をサポートする実施の形態が本明細書に記載されていることを確認するためのものである。従って、発明の実施の形態中には記載されているが、発明に対応するものとして、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その発明に対応するものではないことを意味するものではない。逆に、実施の形態が発明に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その発明以外の発明には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. The correspondence relationship between the invention described in this specification and the embodiments of the invention is exemplified as follows. This description is intended to confirm that the embodiments supporting the invention described in this specification are described in this specification. Therefore, although there is an embodiment which is described in the embodiment of the invention but is not described here as corresponding to the invention, it means that the embodiment is not It does not mean that it does not correspond to the invention. Conversely, even if an embodiment is described herein as corresponding to an invention, that means that the embodiment does not correspond to an invention other than the invention. Absent.
さらに、この記載は、本明細書に記載されている発明の全てを意味するものではない。換言すれば、この記載は、本明細書に記載されている発明であって、この出願では請求されていない発明の存在、すなわち、将来、分割出願されたり、補正により出現、追加される発明の存在を否定するものではない。 Further, this description does not mean all the inventions described in this specification. In other words, this description is for the invention described in the present specification, which is not claimed in this application, that is, for the invention that will be applied for in the future or that will appear and be added by amendment. It does not deny existence.
即ち、本発明の第1の信号処理装置は、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離を計算する距離計算手段(例えば、図5の距離計算部21a)と、距離計算手段により計算された距離に基づいて、uv信号の補正係数を計算するuv信号補正係数計算手段(例えば、図5の補正係数計算部21b)と、少なくともuv信号補正係数計算手段により計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算手段(例えば、図5のu方向補正量計算部23,v方向補正量計算部24)と、uv補正量計算手段により計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正手段(例えば、図5の加算器25,26)とを備えることを特徴とする。
That is, the first signal processing apparatus of the present invention is a distance calculation means (for example, a diagram) for calculating the distance between the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space. 5
前記画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分の二乗の和の平方根、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分絶対値の和、または、画像信号のuv信号におけるuv空間内の位置とuv空間内の所定の色に対応する位置とのu成分、若しくはv成分のうちのいずれか大きい方のいずれかを画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離として設定する距離設定手段(例えば、図5のuvゲイン補正係数計算方法設定部28)をさらに設けるようにさせることができ、距離計算手段には、距離設定手段により設定された距離を、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離として計算させるようにすることができる。
The square root of the sum of the squares of the difference between the u component and the v component of the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space, the uv space in the uv signal of the image signal The sum of the absolute differences of the u and v components between the position in the uv space and the position corresponding to the predetermined color in the uv space, or the position in the uv space in the uv signal of the image signal and the predetermined in the uv space The position corresponding to the color of the u component or the v component, whichever is larger, the position in the uv space in the uv signal of the image signal, and the position corresponding to the predetermined color in the uv space The distance setting means (for example, the uv gain correction coefficient calculation
本発明の第1の信号処理方法は、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離を計算する距離計算ステップ(例えば、図18のフローチャートのステップS83,S85,S86の処理)と、距離計算ステップの処理で計算された距離に基づいて、uv信号の補正係数を計算するuv信号補正係数計算ステップ(例えば、図18のフローチャートのステップS88,S90,S92,S93の処理)と、少なくともuv信号補正係数計算ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算ステップ(例えば、図27のフローチャートのステップS133,S135,S136の処理)と、uv補正量計算ステップの処理で計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正ステップ(例えば、図12のフローチャートのステップS35の処理)とを含むことを特徴とする。 In the first signal processing method of the present invention, a distance calculation step for calculating a distance between a position in the uv space in the uv signal of the image signal and a position corresponding to a predetermined color in the uv space (for example, FIG. 18). Steps S83, S85, and S86 of the flowchart) and a uv signal correction coefficient calculation step for calculating a correction coefficient of the uv signal based on the distance calculated in the distance calculation step (for example, the step of the flowchart of FIG. 18). Uv signal correction amount calculating step (for example, calculating the correction amount of the uv signal using the correction coefficient of the uv signal calculated at least in the processing of the uv signal correction coefficient calculating step) (for example, the processing of S88, S90, S92, S93) 27, the processing in steps S133, S135, and S136 in the flowchart of FIG. 27 and the uv correction amount calculated in the uv correction amount calculation step processing. And a correction step for correcting the uv signal of the signal (for example, the process of step S35 in the flowchart of FIG. 12).
本発明の第2の信号処理装置は、画像信号のy信号に基づいて、uv信号の補正係数を計算するuv信号補正係数計算手段(例えば、図5の輝度ゲイン補正係数計算部22)と、少なくともuv信号補正係数計算手段により計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算手段(例えば、図5のu方向補正量計算部23,v方向補正量計算部24)と、uv補正量計算手段により計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正手段(例えば、図5の加算器25,26)とを備えることを特徴とする。
The second signal processing apparatus of the present invention includes a uv signal correction coefficient calculation unit (for example, a luminance gain correction
前記複数の関数のうち、いずれかを設定する関数設定手段(例えば、図5のuvゲイン補正係数計算方法設定部28)をさらに設けるようにさせることができ、uv信号補正係数計算手段には、関数設定手段により設定された、画像信号のy信号を引数とした関数により、uv信号の補正係数を計算させるようにすることができる。
Function setting means for setting any one of the plurality of functions (for example, the uv gain correction coefficient calculation
前記画像信号のy信号を非線形平滑化する非線形平滑化手段(例えば、図5の加算器25,26)をさらに設けるようにさせることができ、uv信号補正係数計算手段には、非線形平滑化手段により非線形平滑化された画像信号のy信号に基づいて、uv信号の補正係数を計算させるようにすることができる。
Nonlinear smoothing means (for example, the
本発明の第2の信号処理方法は、画像信号のy信号に基づいて、uv信号の補正係数を計算するuv信号補正係数計算ステップ(例えば、図23のフローチャートのステップS112,S114,S115の処理)と、少なくともuv信号補正係数計算ステップの処理で計算されたuv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算ステップ(例えば、図27のフローチャートのステップS133,S135,S136の処理)と、uv補正量計算ステップの処理で計算されたuv補正量に基づいて、画像信号のuv信号を補正する補正ステップ(例えば、図12のフローチャートのステップS35の処理)とを含むことを特徴とする。 The second signal processing method of the present invention is a uv signal correction coefficient calculation step for calculating a correction coefficient of the uv signal based on the y signal of the image signal (for example, the processing of steps S112, S114, and S115 in the flowchart of FIG. 23). ) And at least the uv signal correction coefficient calculated in the process of the uv signal correction coefficient calculation step, the uv signal correction amount calculation step (for example, step S133 in the flowchart of FIG. 27) calculates the correction amount of the uv signal. S135 and S136), and a correction step for correcting the uv signal of the image signal based on the uv correction amount calculated in the uv correction amount calculation step (for example, the process in step S35 in the flowchart of FIG. 12), It is characterized by including.
本発明の第3の信号処理装置は、画像信号に基づいて、画像信号のuv信号の補正係数を計算するuv信号補正係数計算手段(例えば、図5の補正係数計算部21b、または、輝度ゲイン補正係数計算部22)と、uv信号補正係数計算手段により計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する画像信号のuv信号の補正量を計算するuv信号補正量計算手段(例えば、図5のu方向補正量計算部23,v方向補正量計算部24)と、uv補正量計算手段により計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号を補正する補正手段(例えば、図5の加算器25,26)とを備えることを特徴とする。
The third signal processing apparatus of the present invention is a uv signal correction coefficient calculation unit (for example, the correction
前記uv空間内の原点の位置からみて、画像信号のuv信号におけるuv空間内の位置への方向、uv空間内の原点の位置からみて、uv空間内の所定の色に対応する位置への方向、または、画像信号のuv信号におけるuv空間内の位置からみて、uv空間内の目標とする色に対応する位置への方向のいずれかの方向を、画像信号のuv信号を補正するuv空間内の所定の補正方向として設定する補正方向設定手段(例えば、図5の方向補正量計算方法設定部30)をさらに設けるようにさせることができる。
The direction to the position in the uv space in the uv signal of the image signal as viewed from the position of the origin in the uv space, the direction to the position corresponding to a predetermined color in the uv space from the position of the origin in the uv space Or, in the uv space that corrects the uv signal of the image signal, either the direction to the position corresponding to the target color in the uv space as seen from the position in the uv space of the uv signal of the image signal Correction direction setting means (for example, a direction correction amount calculation
本発明の第3の信号処理方法は、画像信号に基づいて、画像信号のuv信号の補正係数を計算するuv信号補正係数計算ステップ(例えば、図18のフローチャートのステップS88,S90,S92,S93の処理)と、uv信号補正係数計算ステップの処理で計算されたuv信号の補正係数に基づいて、uv空間内の所定の補正方向に補正する画像信号のuv信号の補正量を計算するuv信号補正量計算ステップ(例えば、図27のフローチャートのステップS133,S135,S136の処理)と、uv補正量計算ステップの処理で計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号を補正する補正ステップ(例えば、図12のフローチャートのステップS35の処理)とを備えることを特徴とする。 In the third signal processing method of the present invention, a uv signal correction coefficient calculation step (for example, steps S88, S90, S92, and S93 in the flowchart of FIG. 18) for calculating a correction coefficient of the uv signal of the image signal based on the image signal. And a uv signal for calculating a correction amount of the uv signal of the image signal to be corrected in a predetermined correction direction in the uv space based on the correction coefficient of the uv signal calculated in the process of the uv signal correction coefficient calculation step. In the predetermined correction direction in the uv space, only the correction amount of the uv signal calculated by the correction amount calculation step (for example, the processing of steps S133, S135, and S136 in the flowchart of FIG. 27) and the uv correction amount calculation step. And a correction step of correcting the uv signal of the image signal (for example, the process of step S35 in the flowchart of FIG. 12).
本発明の第4の信号処理装置は、画像信号のuv信号におけるuv空間内の位置と、uv空間内の所定の色に対応する位置との距離を計算する距離計算手段(例えば、図5の距離計算部21a)と、距離計算手段により計算された距離に基づいて、uv信号の第1の補正係数を計算する第1のuv信号補正係数計算手段(例えば、図5の補正係数計算部21b)と、画像信号のy信号に基づいて、uv信号の第2の補正係数を計算する第2のuv信号補正係数計算手段(例えば、図5の輝度ゲイン補正係数計算部22)と、少なくとも第1のuv信号補正係数計算手段により計算されたuv信号の第1の補正係数と、第2のuv信号補正係数計算手段により計算されたuv信号の第2の補正係数とを用いて、uv空間内の所定の補正方向に補正する、画像信号のuv信号の補正量を計算するuv信号補正量計算手段(例えば、図5のu方向補正量計算部23,v方向補正量計算部24)と、uv補正量計算手段により計算されたuv信号の補正量だけ、uv空間内の所定の補正方向に画像信号のuv信号を補正する補正手段(例えば、図5の加算器25,26)とを備えることを特徴とする。
The fourth signal processing apparatus of the present invention is a distance calculation means for calculating the distance between the position in the uv space of the uv signal of the image signal and the position corresponding to a predetermined color in the uv space (for example, FIG. 5). Based on the
尚、記録媒体、および、プログラムの発明に関する対応関係は、信号処理方法と同様であるので、その説明は省略する。 Since the correspondence relationship regarding the invention of the recording medium and the program is the same as that of the signal processing method, the description thereof is omitted.
図5は、本発明を適用した色補正処理装置11の一実施の形態の構成を示す図である。
FIG. 5 is a diagram showing a configuration of an embodiment of the color
色補正処理装置11は、yuv信号からなる画像信号をRGB信号(Red Green Blue)に変換して表示する際のGreenをより鮮明に表示するように色補正して出力する。尚、以降の説明においては、このGreenをより鮮明に色補正する処理を、特に、グリーンエンハンス処理と称する。
The color
uvゲイン補正係数計算部21は、uvゲイン補正係数計算方法設定部28により設定された計算方法に基づいて、入力された画像信号のうちのu信号uinとv信号vinに基づいて、uvゲイン補正係数を計算し、計算結果を輝度ゲイン補正係数計算部22に出力する。より詳細には、uvゲイン補正係数計算部21の距離計算部21aは、入力されたu信号uinとv信号vinのuv空間内の位置(uin,vin)を求め、uv空間内においてRGB信号のGreenに対応する位置(ucent,vcent)との距離r1を求めて、その情報を補正係数計算部21bに供給する。補正係数計算部21bは、距離計算部21aより供給された距離の情報に応じてグリーンエンハンス処理に必要なuvゲイン補正係数Guvを求めて輝度ゲイン補正係数計算部22に供給する。
Based on the calculation method set by the uv gain correction coefficient calculation
輝度ゲイン補正係数計算部22は、輝度ゲイン補正係数計算方法設定部29により設定された計算方法に基づいて、非線形平滑化処理部27により非線形平滑化処理された、yuv信号のうちのy信号(輝度信号)yinに対応するグリーンエンハンス処理に必要な係数を求めて、uvゲイン補正係数計算部21より供給されたuvゲイン補正係数Guvに乗じて、輝度ゲイン補正係数Gyとしてu方向補正量計算部23およびv方向補正量計算部24に供給する。
The luminance gain correction
u方向補正量計算部23は、方向補正量計算方法設定部30により設定された計算方法に基づいて、輝度ゲイン補正係数計算部22より供給される輝度ゲイン補正係数Gyとu信号より、グリーンエンハンス処理に必要なuv空間内のu方向への補正量ucを計算して加算器26に出力する。
Based on the calculation method set by the direction correction amount calculation
v方向補正量計算部24は、方向補正量計算方法設定部30により設定された計算方法に基づいて、輝度ゲイン補正係数計算部22より供給される輝度ゲイン補正係数Gyとv信号より、グリーンエンハンス処理に必要なuv空間内のv方向への補正量vcを計算して加算器25に出力する。
v direction correction
加算器25,26は、それぞれv方向補正量計算部24およびu方向補正量計算部23より供給されるv方向補正量vcとu方向補正量ucとに、入力されたv信号vinとu信号uinとをそれぞれ加算することで補正し、補正されたv信号voutおよびu信号uoutを図示せぬ後段の装置に出力する。
The
非線形平滑化処理部27は、入力される輝度信号であるy信号に非線形平滑化処理を施し、輝度ゲイン補正係数計算部22に供給すると共に、図示せぬ後段の装置に出力する。尚、非線形平滑化処理部27については、図6を参照して詳細を後述する。
The non-linear
uvゲイン補正係数計算方法設定部28は、図示せぬ入力装置などがユーザに操作されて入力される、uvゲイン補正係数計算部21においてuvゲイン補正係数の計算に必要な計算方法および初期値などを記憶する。より具体的には、uvゲイン補正係数計算方法設定部28は、補正量域となるuv空間内におけるRGB信号のGreenに対応する領域(以下、Green領域とも称する)の中心位置(ucent,vcent)、Green領域の半径r0、uvゲイン補正係数を求めるのに使用される基準定数G0、距離計算モードmode-r、および、uvゲイン補正係数計算モードmode-gの設定処理を実行し、設定されたこれらの値を記憶し、必要に応じて、uvゲイン補正係数計算部21に供給する。
The uv gain correction coefficient calculation
距離計算モードmode-rとは、入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreen領域の中心位置(ucent,vcent)との距離r1を求める際の計算方法を設定するモードである。より具体的には、距離計算モードmode-rは、mode-r=1乃至3のいずれかを設定することが可能となっており、設定された値が記憶される。尚、mode-r=mode1乃至3の各モードにおける入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreen領域の中心位置(ucent,vcent)との距離の計算方法については、詳細を後述する。
Distance calculation mode mode-r, when finding the u signal u in a v signal v in input, the center position of the Green region of RGB signals in the uv space (u cent, v cent) the distance r 1 between the This mode sets the calculation method. More specifically, the distance calculation mode mode-r can set any of mode-r = 1 to 3, and the set value is stored. The distance between the input u signal u in and v signal v in in each mode of mode-r =
uvゲイン補正係数計算モードmode-gとは、入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreenに対応する領域の中心位置(ucent,vcent)との距離r1より輝度ゲイン補正係数Gyの計算方法を設定するモードである。より具体的には、uvゲイン補正係数計算モードmode-gは、mode-g=mode1乃至3のいずれかを設定することが可能となっており、設定された値が記憶される。尚、mode-g=1乃至3の各モードにおける入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreen領域の中心位置(ucent,vcent)との距離r1より輝度ゲイン補正係数Guvを計算する方法については、詳細を後述する。
The uv gain correction coefficient calculation mode mode-g is the relationship between the input u signal u in and v signal v in and the center position (u cent , v cent ) of the region corresponding to Green of the RGB signal in the uv space. than the distance r 1 is a mode for setting a method of calculating the brightness gain correction coefficient G y. More specifically, the uv gain correction coefficient calculation mode mode-g can be set to any of mode-g =
輝度ゲイン補正係数計算方法設定部29は、入力されたy信号yinに基づいて、輝度ゲイン補正係数Gyの計算方法を設定する輝度ゲイン補正係数計算モードmode-yを設定する処理を実行すると共に、設定された輝度ゲイン補正係数計算モードmode-y記憶し、必要に応じて、輝度ゲイン補正係数計算部22に供給する。より具体的には、輝度ゲイン補正係数計算モードmode-yは、mode-y=1乃至3のいずれかを設定することが可能となっており、設定された値が記憶される。尚、mode-y=mode1乃至3の各モードにおける入力されたy信号yinより輝度ゲイン補正係数Gyを計算する方法については、詳細を後述する。
The luminance gain correction coefficient calculation
方向補正量計算方法設定部30は、輝度ゲイン補正係数Gyに基づいて、u方向補正量計算部23、v方向補正量計算部24のそれぞれで求められる、グリーンエンハンス処理に必要なuv空間内のv方向への補正量vcおよびu方向への補正量ucの計算方法を設定する方向補正量計算モードmode-d、並びに、uv信号の目標値からなる目標位置(u2,v2)を設定する処理を実行し、設定された値を記憶する。より具体的には、方向補正量計算モードmode-dは、mode-d=mode1乃至3のいずれかを設定することが可能となっており、設定された値が記憶される。尚、mode-d=1乃至3の各モードにおけるグリーンエンハンス処理に必要なuv空間内のv方向への補正量vcおよびu方向への補正量ucの計算方法については、詳細を後述する。
The direction correction amount calculation
uv信号の目標値からなる目標位置(u2,v2)は、uv補正量を計算する際、入力されたu信号uinとv信号vinのuv空間の位置である(uin,vin)からみたuv空間内における補正方向を示すための情報である。尚、目標位置(u2,v2)を用いた、uv空間内のv方向への補正量vcおよびu方向への補正量ucの計算方法については、詳細を後述する。 The target position (u 2 , v 2 ) consisting of the target value of the uv signal is the position in the uv space of the input u signal u in and v signal v in when calculating the uv correction amount (u in , v in ) is information for indicating a correction direction in the uv space. The method of calculating the correction amount v c in the v direction and the correction amount u c in the u direction in the uv space using the target position (u 2 , v 2 ) will be described in detail later.
次に、図6を参照して、非線形平滑化処理部27の詳細な構成について説明する。
Next, a detailed configuration of the nonlinear
この非線形平滑化処理部27の非線形フィルタ51は、入力されるy信号yinを構成する画素の変動のうち、そのサイズが閾値ε1よりも大きい急峻なエッジを保持すると共に、エッジ以外の部分を平滑化し、平滑化した画像信号yFを混合部52に出力する。
The non-linear filter 51 of the non-linear
混合比検出部53は、入力される画像信号yinを構成する画素の変動の中の微小な変化に基づいて、混合比を計算し、混合部52に供給する。
The mixing
混合部52は、平滑化処理された画像信号yFと平滑化されていない入力された画像信号yinを、混合比検出部53より供給される混合比に基づいて、混合し、非線形平滑化された画像信号youtとして出力する。
The mixing
非線形フィルタ51のLPF(Low Pass Filter)61は、制御信号発生部62より供給される制御信号に基づいて、注目画素と、その水平方向の左右に隣接する2画素である水平処理方向成分画素との画素値を用いて、注目画素を平滑化して、平滑化された画像信号yFを混合部52に出力する。制御信号発生部62は、注目画素と、水平処理方向成分画素との画素値の差分絶対値を算出し、その算出結果に基づいてLPF61を制御する制御信号を発生し、LPF61に供給する。尚、非線形フィルタ51としては、例えば、上述した従来のεフィルタ1を用いるようにしてもよい。
An LPF (Low Pass Filter) 61 of the non-linear filter 51 is based on a control signal supplied from the
次に、図7のフローチャートを参照して、uvゲイン補正係数計算方法設定処理について説明する。 Next, the uv gain correction coefficient calculation method setting process will be described with reference to the flowchart of FIG.
ステップS1において、uvゲイン補正係数計算方法設定部28は、図示せぬ入力部が操作されて、uvゲイン補正係数計算方法の設定が指示されたか否かを判定し、uvゲイン補正係数計算方法の設定が指示されるまで、その処理を繰り返す。例えば、uvゲイン補正係数計算方法の設定が指示された場合、その処理は、ステップS2に進む。
In step S1, the uv gain correction coefficient calculation
ステップS2において、uvゲイン補正係数計算方法設定部28は、補正領域の中心位置(ucent,vcent)、半径r0、基準定数G0、距離計算モードmode-r、および、uvゲイン補正量計算モードmode-gの設定画面を表示する。
In step S2, the uv gain correction coefficient calculation
ステップS3において、uvゲイン補正係数計算方法設定部28は、図示せぬ入力部が操作されて、設定がなされたか否かを判定し、設定がなされるまでその処理を繰り返す。そして、設定がなされたと判定された場合、その処理は、ステップS4に進む。
In step S3, the uv gain correction coefficient calculation
ステップS4において、uvゲイン補正係数計算方法設定部28は、図示せぬ入力部が操作されて、設定された補正領域の中心位置(ucent,vcent)、半径r0、基準定数G0、距離計算モードmode-r、および、uvゲイン補正係数計算モードmode-gを記憶し、その処理は、ステップS1に戻り、それ以降の処理が繰り返される。
In step S4, the uv gain correction coefficient calculation
以上の処理により、uvゲイン補正係数計算方法が設定される。 With the above processing, the uv gain correction coefficient calculation method is set.
ここで、中心位置(ucent,vcent)、および、半径r0について説明する。 Here, the center position (u cent , v cent ) and the radius r 0 will be described.
RGB信号のGreenに対応する領域のuv信号は、uv空間におけるu信号、および、v信号がいずれも負となる領域である。グリーンエンハンス処理は、uv空間内でRGB信号のGreenに対応する領域のuv信号を、例えば、図8で示されるように、色補正する処理である。より具体的には、グリーンエンハンス処理は、入力されたuv信号(uin,vin)を、図中の矢印方向に移動させ、uv信号を(uout,vout)に補正する処理である。すなわち、uv空間においては、uv空間の原点を中心とした場合、原点に対してuv信号を示す座標の成す角により色が決定される。さらに、原点は、白色であるので、原点からの距離に応じて色が鮮明となる(はっきりとした色となる)。つまり、グリーンエンハンス処理は、図8で示されるように、入力されたuv信号のuv空間内の位置を原点との成す角を所定範囲内に維持しつつ、原点から離れるように補正する処理であると言える。 The uv signal in the region corresponding to Green of the RGB signal is a region where both the u signal and the v signal in the uv space are negative. The green enhancement process is a process of correcting the color of the uv signal in the region corresponding to Green of the RGB signal in the uv space, for example, as shown in FIG. More specifically, the green enhancement process is a process of correcting the uv signal to (u out , v out ) by moving the input uv signal (u in , v in ) in the direction of the arrow in the figure. . That is, in the uv space, when the origin is the uv space, the color is determined by the angle formed by the coordinates indicating the uv signal with respect to the origin. Furthermore, since the origin is white, the color becomes clear (a clear color) according to the distance from the origin. That is, as shown in FIG. 8, the green enhancement process is a process of correcting the position of the input uv signal in the uv space so as to be away from the origin while maintaining the angle formed with the origin within a predetermined range. It can be said that there is.
しかしながら、ここでは、グリーンエンハンス処理を目的としているので、入力信号がRGB信号のGreenであるuv信号に対して、グリーンエンハンス処理を行うことが前提となる。すなわち、入力信号がRGB信号のGreenに相当するuv空間内の領域を設定する必要がある。そこで、本発明のグリーンエンハンス処理においては、図9で示されるように、中心位置(ucent,vcent)から所定の距離r0の領域(図中の円で示される領域)が、入力信号に対するRGB信号のGreenに相当するuv空間内の領域として定義されている。つまり、この領域内のuv信号である場合にのみ、グリーンエンハンス処理が施される。 However, since green enhancement processing is intended here, it is assumed that the green enhancement processing is performed on the uv signal whose input signal is Green of the RGB signal. That is, it is necessary to set an area in the uv space corresponding to the input signal Green of the RGB signal. Therefore, in the green enhancement processing of the present invention, as shown in FIG. 9, an area (area indicated by a circle in the figure) having a predetermined distance r 0 from the center position (u cent , v cent ) is an input signal. Is defined as a region in the uv space corresponding to Green of the RGB signal for. That is, the green enhancement process is performed only when the uv signal is in this region.
また、基準定数G0は、uvゲイン補正係数Guvの計算に用いられる定数である。距離計算モードmode-r、および、uvゲイン補正係数計算モードmode-gについては、それぞれmode1乃至3のいずれかを設定することができる。尚、各設定モードに対応する計算方法については詳細を後述する。
The reference constant G 0 is a constant used for calculating the uv gain correction coefficient G uv . Any one of
次に、図10のフローチャートを参照して、輝度ゲイン補正係数計算方法設定処理について説明する。 Next, the luminance gain correction coefficient calculation method setting process will be described with reference to the flowchart of FIG.
ステップS11において、輝度ゲイン補正係数計算方法設定部29は、図示せぬ入力部が操作されて、輝度ゲイン補正係数計算方法の設定が指示されたか否かを判定し、輝度ゲイン補正係数計算方法の設定が指示されるまで、その処理を繰り返す。例えば、輝度ゲイン補正係数計算方法の設定が指示された場合、その処理は、ステップS12に進む。
In step S11, the luminance gain correction coefficient calculation
ステップS12において、輝度ゲイン補正係数計算方法設定部29は、輝度ゲイン補正量計算モードmode-yの設定画面を表示する。
In step S12, the luminance gain correction coefficient calculation
ステップS13において、輝度ゲイン補正係数計算方法設定部29は、図示せぬ入力部が操作されて、設定がなされたか否かを判定し、設定がなされるまでその処理を繰り返す。そして、設定がなされたと判定された場合、その処理は、ステップS14に進む。
In step S13, the luminance gain correction coefficient calculation
ステップS14において、輝度ゲイン補正係数計算方法設定部29は、図示せぬ入力部が操作されて、設定された輝度ゲイン補正量計算モードmode-yを記憶し、その処理は、ステップS11に戻り、それ以降の処理が繰り返される。
In step S14, the luminance gain correction coefficient calculation
以上の処理により、輝度ゲイン補正係数計算方法が設定される。尚、輝度ゲイン補正量計算モードmode-yについては、mode1乃至3のいずれかを設定することができる。また、各設定モードに対応する計算方法については詳細を後述する。
With the above processing, the luminance gain correction coefficient calculation method is set. Note that any one of
次に、図11のフローチャートを参照して、方向補正量計算方法設定処理について説明する。 Next, the direction correction amount calculation method setting process will be described with reference to the flowchart of FIG.
ステップS21において、方向補正量計算方法設定部30は、図示せぬ入力部が操作されて、方向補正量計算方法の設定が指示されたか否かを判定し、方向補正量計算方法の設定が指示されるまで、その処理を繰り返す。例えば、方向補正量計算方法の設定が指示された場合、その処理は、ステップS22に進む。
In step S21, the direction correction amount calculation
ステップS22において、方向補正量計算方法設定部30は、方向補正量計算モードmode-d、並びに、必要に応じて補正目標位置を示す座標(u2,v2)の設定画面を表示する。
In step S22, the direction correction amount calculation
ステップS23において、方向補正量計算方法設定部30は、図示せぬ入力部が操作されて、設定がなされたか否かを判定し、設定がなされるまでその処理を繰り返す。そして、設定がなされたと判定された場合、その処理は、ステップS24に進む。
In step S23, the direction correction amount calculation
ステップS24において、方向補正量計算方法設定部30は、図示せぬ入力部が操作されて、設定された方向補正量計算モードmode-d、並びに、必要に応じて補正目標位置を示す座標(u2,v2)を記憶し、その処理は、ステップS21に戻り、それ以降の処理が繰り返される。
In step S24, the direction correction amount calculation
以上の処理により、方向補正量計算方法が設定される。尚、方向補正量計算モードmode-dについては、mode1乃至3のいずれかを設定することができる。また、補正目標位置を示す座標(u2,v2)は、方向補正量計算モードmode-dにより、入力信号であるuv信号をグリーンエンハンス処理する際、補正目標位置に向かって移動させることにより補正量を計算する場合に使用される。各設定モードに対応する計算方法については詳細を後述する。
With the above processing, the direction correction amount calculation method is set. Note that any one of
次に、図12のフローチャートを参照して、色補正処理について説明する。 Next, color correction processing will be described with reference to the flowchart of FIG.
ステップS31において、非線形平滑化処理部27は、入力される輝度信号であるy信号yinに対して非線形平滑化処理を実行する。
In step S31, the non-linear
ここで、図13のフローチャートを参照して、非線形平滑化処理部27による非線形平滑化処理について説明する。
Here, with reference to the flowchart of FIG. 13, the nonlinear smoothing process by the nonlinear
ステップS41において、非線形フィルタ51の制御信号発生部62は、注目画素の輝度信号と、水平処理方向成分画素との輝度信号(輝度値)の差分絶対値を計算する。すなわち、例えば、図3の場合、制御信号発生部62は、注目画素Cと、水平方向に隣接する各近傍画素である水平処理方向成分画素L2,L1,R1,R2との輝度値の差分絶対値|C−L2|,|C−L1|,|C−R1|,|C−R2|を計算する。
In step S41, the
ステップS42において、ローパスフィルタ61は、制御信号発生部62により計算された各差分絶対値と所定の閾値ε2と比較して、この比較結果に対応して、入力される輝度信号yinに非線形フィルタリング処理を施す。より具体的には、ローパスフィルタ61は、例えば、式(1)のように、注目画素Cおよび水平処理方向成分画素の輝度値を、タップ係数を用いて加重平均して、注目画素Cに対応する変換結果C’を平滑化された画像信号yFとして混合部52に出力する。ただし、注目画素Cの画素値との差分絶対値が、所定の閾値ε2よりも大きい水平処理方向成分画素については、輝度値を注目画素Cの画素値と置換して加重平均するようにする(例えば、式(2)で示されるように演算する)。
In step S42, the low-
ステップS43において、微小エッジ判定処理を実行し、微小なエッジが存在するか否かを判定する。 In step S43, a minute edge determination process is executed to determine whether a minute edge exists.
ここで、図14のフローチャートを参照して、微小エッジ判定処理について説明する。 Here, the minute edge determination processing will be described with reference to the flowchart of FIG.
ステップS61において、混合比検出部53は、注目画素と、各水平処理方向成分画素との輝度値の差分絶対値を算出し、各差分絶対値が全て、閾値ε3(≪ε2)よりも小さいか否かを判定する。そして、混合比検出部53は、その判定結果に基づいて、微小なエッジが存在するか否かを判定する。
In step S61, the mixture
すなわち、例えば、図3で示したように、混合比検出部53は、注目画素Cと、水平方向に隣接する各水平処理方向成分画素L2,L1,R1,R2との輝度値の差分絶対値を算出し、各差分絶対値が全て、閾値ε3よりも小さいか否かを判定する。そして、混合比検出部53は、各差分絶対値が全て閾値ε3よりも小さいと判定した場合、近傍画素と注目画素との間の変化が小さいので、ステップS64に進み、注目画素の近傍には、微小なエッジが存在しないものと判定する。
That is, for example, as illustrated in FIG. 3, the mixture
一方、ステップS61において、算出された差分絶対値のうち、1つでも閾値ε3以上のものがあると判定された場合、ステップS62に進み、混合比検出部53は、注目画素の左右の一方側の水平処理方向成分画素と注目画素との輝度値の差分絶対値が全て閾値ε3よりも小さく、かつ、注目画素の左右の他方側の水平処理方向成分画素と注目画素との差分絶対値が全て閾値ε3以上であって、かつ、注目画素の左右の他方側の水平処理方向成分画素と注目画素との各輝度値の差分の正負が一致しているか否かを判定する。
On the other hand, in step S61, among the calculated absolute difference value, if it is determined that even one has a threshold epsilon 3 or more of, the process proceeds to step S62, the
すなわち、注目画素Cの左右の一方側の水平処理方向成分画素が、例えば、図3の画素L2,L1であり、注目画素Cの左右の他方側の水平処理方向成分画素が、図3の画素R2,R1である場合、混合比検出部53は、注目画素Cの左右の一方側の水平処理方向成分画素と注目画素Cとの差分絶対値が全て閾値ε3よりも小さく、かつ、注目画素Cの左右の他方側の水平処理方向成分画素R1,R2と注目画素Cとの差分絶対値が全て閾値ε3以上であって、かつ、注目画素Cの左右の他方側の水平処理方向成分画素R1,R2と注目画素Cとの各輝度値の差分の正負が一致しているか否かを判定する。
That is, the horizontal processing direction component pixels on the left and right sides of the target pixel C are, for example, the pixels L2 and L1 in FIG. 3, and the horizontal processing direction component pixels on the left and right sides of the target pixel C are the pixels in FIG. In the case of R2 and R1, the mixture
例えば、上記の条件が満たされていると判定された場合、ステップS63において、混合比検出部53は、注目画素の近傍に、微小なエッジが存在すると判定する。
For example, when it is determined that the above condition is satisfied, in step S63, the mixture
一方、ステップS62において、上記条件を満たしていないと判定された場合、ステップS64において、混合比検出部53は、注目画素の近傍には、微小なエッジが存在しないと判定する。
On the other hand, when it is determined in step S62 that the above condition is not satisfied, in step S64, the mixture
例えば、注目画素Cと水平処理方向成分画素L2,L1,R1,R2の関係が図15に示すような場合、注目画素Cと左側の水平処理方向成分画素L2,L1の差分絶対値|L2−C|,|L1−C|が閾値ε3よりも小さく、かつ、注目画素Cと右側の水平処理方向成分画素R1,R2の差分絶対値|R1−C|,|R2−C|が閾値ε3以上であり、かつ、注目画素Cと右側の水平処理方向成分画素R1,R2の差分(R1−C),(R2−C)の符号が一致する(いまの場合、ともに正)ので、注目画素Cの近傍に微小なエッジが存在すると判定される。 For example, if the relationship between the target pixel C and the horizontal processing direction component pixels L2, L1, R1, and R2 is as shown in FIG. 15, the difference absolute value | L2− between the target pixel C and the left horizontal processing direction component pixels L2 and L1. C |, | L1-C | is smaller than the threshold epsilon 3, and the difference absolute value of the horizontal processing of the target pixel C and the right direction component pixels R1, R2 | R1-C | , | R2-C | is threshold epsilon At least 3 and the signs of the differences (R1-C) and (R2-C) of the target pixel C and the right horizontal processing direction component pixels R1, R2 match (both are positive in this case). It is determined that a minute edge exists in the vicinity of the pixel C.
また、例えば、注目画素Cと水平処理方向成分画素L2,L1,R1,R2の関係が図16に示すような場合、注目画素Cと左側の水平処理方向成分画素L2,L1の差分絶対値|L2−C|,|L1−C|が閾値ε3よりも小さく、かつ、注目画素Cと右側の水平処理方向成分画素R1,R2の差分絶対値|R1−C|,|R2−C|が閾値ε3以上ではあるが、注目画素Cと右側の水平処理方向成分画素R1,R2の差分(R1−C),(R2−C)の符号が一致しない(いまの場合、それぞれ正、負)ので、注目画素Cの近傍に微小なエッジが存在しないと判定される。 Further, for example, when the relationship between the target pixel C and the horizontal processing direction component pixels L2, L1, R1, and R2 is as shown in FIG. 16, the absolute difference between the target pixel C and the left horizontal processing direction component pixels L2 and L1 | L2-C |, | L1- C | is smaller than the threshold epsilon 3, and the difference absolute value of the horizontal processing of the target pixel C and the right direction component pixels R1, R2 | R1-C | , | R2-C | is Although not less than the threshold ε 3 , the signs of the differences (R1−C) and (R2−C) between the target pixel C and the right horizontal processing direction component pixels R1 and R2 do not match (in this case, positive and negative respectively). Therefore, it is determined that there is no minute edge in the vicinity of the target pixel C.
さらに、例えば、注目画素Cと水平処理方向成分画素L2,L1,R1,R2の関係が図17に示すような場合、注目画素Cの左右いずれの側も、注目画素Cと水平処理方向成分画素の輝度値の差分絶対値が全て閾値ε3よりも小さいわけではないので、注目画素Cの近傍に微小なエッジが存在しないと判定される。 Further, for example, when the relationship between the target pixel C and the horizontal processing direction component pixels L2, L1, R1, and R2 is as shown in FIG. Are not all smaller than the threshold value ε 3 , it is determined that no minute edge exists in the vicinity of the target pixel C.
このようにして、注目画素の近傍に微小なエッジが存在するか否かが判定された後、処理は図13のステップS44に戻る。 In this way, after determining whether or not a minute edge exists in the vicinity of the target pixel, the process returns to step S44 in FIG.
ステップS43の処理が終了すると、ステップS44において、混合比検出部53は、ステップS43における微小エッジ判定処理による判定結果が、「注目画素Cの近傍に微小なエッジが存在する」であるか否かを判定する。例えば、微小エッジ判定処理による判定結果が、「注目画素Cの近傍に微小なエッジが存在する」である場合、ステップS45において、混合比検出部53は、水平方向に非線形フィルタリング処理された輝度信号yFと入力された輝度信号yinの混合比であるMixレートMr-Hを最大MixレートMr-H maxとして混合部52に出力する。尚、最大MixレートMr-H maxは、MixレートMr-Hの最大値、すなわち、輝度値の最大値と最小値(1画素で表現可能な輝度値のダイナミックレンジの最小値と最大値)の差分絶対値である。
When the process of step S43 ends, in step S44, the mixture
ステップS46において、混合部52は、混合比検出部53より供給されるMixレートMr-Hに基づいて、入力される輝度信号yinと非線形フィルタ51により非線形平滑化処理された輝度信号yFとを合成し、非線形平滑化された輝度信号youtとして出力する。より詳細には、混合部52は、以下の式(3)を演算して、入力される輝度信号yinと非線形フィルタにより非線形平滑化された輝度信号yFとを合成する。
In step S <b> 46, the mixing
yout=yin×Mr-H/Mr-H max+yF×(1−Mr-H/Mr-H max)
・・・(3)
ここで、Mr-Hは、Mixレートであり、Mr-H maxは、MixレートMr-Hの最大値、すなわち、輝度値の最大値と最小値の差分絶対値(1画素で表現可能な輝度値のダイナミックレンジの最小値と最大値の差分絶対値)である。
y out = y in × Mr −H / Mr −H max + y F × (1−Mr −H / Mr −H max )
... (3)
Here, Mr -H is the Mix rate, and Mr -H max is the maximum value of the Mix rate Mr -H , that is, the absolute value of the difference between the maximum value and the minimum value of the luminance value (luminance that can be expressed by one pixel) The absolute value of the difference between the minimum value and the maximum value of the dynamic range of the value).
式(3)で示されるように、MixレートMr-Hが大きければ、非線形フィルタ51により処理された輝度信号yFの重みが小さくなり、入力された処理されていない画像信号yinの重みが大きくなる。逆に、MixレートMr-Hが小さければ、すなわち、水平方向に隣接する画素間の輝度値の差分絶対値が小さいほど、非線形フィルタにより処理された輝度信号yFの重みが大きくなり、入力された処理されていない輝度信号yinの重みが小さくなる。 As shown in the equation (3), if the mix rate Mr −H is large, the weight of the luminance signal y F processed by the non-linear filter 51 becomes small, and the weight of the input unprocessed image signal y in becomes small. growing. Conversely, the smaller the Mix rate Mr -H, i.e., as the difference absolute value of the luminance values between pixels adjacent in the horizontal direction is small, the weight of the luminance signal y F processed by a nonlinear filter is increased, the input The weight of the unprocessed luminance signal y in is reduced.
従って、微小エッジが検出された場合、MixレートMr-Hは最大MixレートMr-H maxとなるので、実質的に入力された輝度信号yinが、そのまま出力されることになる。 Accordingly, when a minute edge is detected, the mix rate Mr −H becomes the maximum mix rate Mr −H max , so that the substantially inputted luminance signal y in is output as it is.
一方、ステップS44において、「微小エッジが存在しない」と判定された場合、ステップS47において、混合比検出部53は、注目画素と、各水平処理方向成分画素との輝度値の差分絶対値をそれぞれ計算し、計算した各差分絶対値のうちの最大値を混合比である、MixレートMr-Hとして求め、混合部52に出力し、その処理は、ステップS46に進む。
On the other hand, when it is determined in step S44 that “a minute edge does not exist”, in step S47, the mixture
すなわち、図3の場合、混合比検出部53は、注目画素Cと、各水平処理方向成分画素L2,L1,R1,R2との輝度値の差分絶対値|C−L2|,|C−L1|,|C−R1|,|C−R2|を計算し、計算した各差分絶対値のうちの最大値を混合比であるMixレートMr-Hとして求め、混合部52に出力する。
That is, in the case of FIG. 3, the mixture
すなわち、微小エッジが存在しない場合、注目画素と各水平処理方向成分画素との輝度値の差分絶対値の最大値に応じて、非線形フィルタリング処理された輝度信号yFと、入力された輝度信号yinとが混合されて、非線形平滑化処理された輝度信号youtが生成され、微小エッジが存在した場合、入力された輝度信号yinがそのまま出力される。 That is, when there is no minute edge, the luminance signal y F subjected to nonlinear filtering and the input luminance signal y according to the maximum absolute value of the difference in luminance value between the target pixel and each horizontal processing direction component pixel in is mixed to generate a luminance signal y out that has been subjected to nonlinear smoothing processing. If there is a minute edge, the input luminance signal y in is output as it is.
結果として、非線形平滑化処理部32においては、閾値ε3を基準として微小エッジが検出されることになるので、微小エッジが存在する部分については、非線形平滑化処理が施されないようにすると共に、エッジが存在しない部分についても、その差分絶対値の大きさに応じて非線形平滑化処理が施された輝度信号yFと、入力された輝度信号yinとを混合するようにしたので、特に、微小なエッジで構成された単純なパターン画像等で著しく画質の劣化が生じてしまうという事態を抑止することが可能になる。 As a result, in the non-linear smoother 32, since minute edge is to be detected the threshold epsilon 3 as a reference, portions fine edge exists, as well as such is not performed the non-linear smoother, Even for the part where the edge does not exist, since the luminance signal y F subjected to the nonlinear smoothing process according to the magnitude of the difference absolute value and the input luminance signal y in are mixed, in particular, It is possible to suppress a situation in which image quality is significantly deteriorated with a simple pattern image or the like composed of minute edges.
ここで、図12のフローチャートの説明に戻る。 Now, the description returns to the flowchart of FIG.
ステップS32において、uvゲイン補正係数計算部21は、uvゲイン補正係数計算処理を実行し、uvゲイン補正係数Guvを計算し、輝度ゲイン補正係数計算部22に供給する。
In step S <b> 32, the uv gain correction coefficient calculation unit 21 executes a uv gain correction coefficient calculation process, calculates the uv gain correction coefficient G uv , and supplies it to the luminance gain correction
ここで、図18のフローチャートを参照して、uvゲイン補正係数計算処理について説明する。 Here, the uv gain correction coefficient calculation processing will be described with reference to the flowchart of FIG.
ステップS81において、距離計算部21aは、入力されたuv信号の情報(uin,vin)を取得する。
In step S81, the
ステップS82において、距離計算部21aは、uvゲイン補正係数計算方法設定部28に問い合わせて、距離計算モードmode-rがmode1であるか否かを判定する。例えば、距離計算モードmode-rがmode1であると判定された場合、その処理は、ステップS83に進む。
In step S82, the
ステップS83において、距離計算部21aは、uvゲイン補正係数計算方法設定部28に問い合わせて、中心位置(ucent,vcent)と計算方法として以下の式(4)の情報を読み出す。さらに、距離計算部21aは、読み出した式(4)を演算し、演算結果を、入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreenに対応する領域の中心位置(ucent,vcent)との距離r1として補正係数計算部21bに供給する。
In step S83, the
r1=((uin−ucent)2+(vin−vcent)2)1/2
・・・(4)
r 1 = ((u in −u cent ) 2 + (v in −v cent ) 2 ) 1/2
... (4)
ステップS82において、例えば、距離計算モードmode-rがmode1ではないと判定された場合、ステップS84に進み、距離計算部21aは、uvゲイン補正係数計算方法設定部28に問い合わせて、距離計算モードmode-rがmode2であるか否かを判定する。ステップS84において、例えば、距離計算モードmode-rがmode2であると判定された場合、その処理は、ステップS85に進む。
In step S82, for example, when it is determined that the distance calculation mode mode-r is not mode1, the process proceeds to step S84, and the
ステップS85において、距離計算部21aは、uvゲイン補正係数計算方法設定部28に問い合わせて、中心位置(ucent,vcent)と計算方法として以下の式(5)の情報を読み出す。さらに、距離計算部21aは、読み出した式(5)を演算し、演算結果を、入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreenに対応する領域の中心位置(ucent,vcent)との距離r1として補正係数計算部21bに供給する。
In step S85, the
r1=|uin−ucent|+|vin−vcent|
・・・(5)
r 1 = | u in −u cent | + | v in −v cent |
... (5)
ステップS84において、例えば、距離計算モードmode-rがmode2ではないと判定された場合、すなわち、距離計算モードmode-rがmode1でもmode2でもない場合、mode3であることになるので、ステップS86に進み、距離計算部21aは、uvゲイン補正係数計算方法設定部28に問い合わせて、中心位置(ucent,vcent)と計算方法として以下の式(6)の情報を読み出す。さらに、距離計算部21aは、読み出した式(6)を演算し、演算結果を、入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreenに対応する領域の中心位置(ucent,vcent)との距離r1として補正係数計算部21bに供給する。
In step S84, for example, when it is determined that the distance calculation mode mode-r is not mode2, that is, when the distance calculation mode mode-r is not mode1 or mode2, the mode is mode3, and the process proceeds to step S86. The
r1=max{(uin−ucent),(vin−vcent)}
・・・(6)
r 1 = max {(u in −u cent ), (v in −v cent )}
... (6)
ここで、max(A,B)は、A,Bの最大値を選択することを示している。 Here, max (A, B) indicates that the maximum value of A and B is selected.
すなわち、距離計算モードmode-rがmode1乃至3のいずれであるかに対応して、図19で示されるように、入力されたu信号uinとv信号vinと、uv空間内におけるRGB信号のGreenに対応する領域の中心位置(ucent,vcent)との距離r1の計算方法が式(4)乃至(6)のいずれかに切替えられて求められる。結果として、距離の計算方法に自由度を持たせることが可能になる。
That is, corresponding to whether the distance calculation mode mode-r is
ステップS87において、補正係数計算部21bは、uvゲイン補正係数計算方法設定部28に問い合わせて、Green領域の半径r0を読み出し、ステップS83,S85、または、S86の処理により求められた半径r1と比較し、半径r1が半径r0よりも小さいか否かを判定する。ステップS87において、例えば、半径r1が半径r0よりも小さくないと判定された場合、ステップS88に進み、補正係数計算部21bは、uvゲイン補正係数Guvを0に設定し、輝度ゲイン補正係数計算部22に出力する。すなわち、半径r1が半径r0よりも小さくないということは、入力されたuv信号は、uv空間内のGreen領域以外であることになり、グリーンエンハンス処理の対象となる信号ではないことになるので、実質的に補正量をゼロとするために、uvゲイン補正係数Guvが0に設定される。
In step S87, the correction
ステップS87において、例えば、半径r1が半径r0よりも小さいと判定された場合、すなわち、グリーンエンハンス処理の対象となるuv信号であると判定された場合、その処理は、ステップS89に進む。 In step S87, for example, when it is determined that the radius r 1 is smaller than the radius r 0 , that is, when it is determined that the uv signal is the target of the green enhancement process, the process proceeds to step S89.
ステップS89において、補正係数計算部21bは、uvゲイン補正係数計算モードmode-gがmode1であるか否かを判定する。例えば、uvゲイン補正係数計算モードmode-gがmode1であると判定された場合、その処理は、ステップS90に進む。
In step S89, the correction
ステップS90において、補正係数計算部21bは、uvゲイン補正係数計算方法設定部28に問い合わせて、基準定数G0、および、uvゲイン補正係数計算モードmode-gがmode1のときの補正係数計算方法として以下の式(7)を読み出す。そして、補正係数計算部21bは、距離r1に応じて、読み出した式(7)を演算し、uvゲイン補正係数Guvとして輝度ゲイン補正係数計算部22に供給する。
In step S90, the correction
Guv=G0
・・・(7)
G uv = G 0
... (7)
すなわち、uvゲイン補正係数計算モードmode-gがmode1のとき、補正係数計算部21bは、図20で示されるように、距離r1によらず、uvゲイン補正係数Guvを基準定数G0として一定となるように求める。
That is, when the uv gain correction coefficient calculation mode mode-g is mode1, the correction
ステップS89において、例えば、uvゲイン補正係数計算モードmode-gがmode1ではないと判定された場合、ステップS91に進み、補正係数計算部21bは、uvゲイン補正係数計算モードmode-gがmode2であるか否かを判定する。例えば、uvゲイン補正係数計算モードmode-gがmode2であると判定された場合、その処理は、ステップS92に進む。
In step S89, for example, when it is determined that the uv gain correction coefficient calculation mode mode-g is not mode1, the process proceeds to step S91, and the correction
ステップS92において、補正係数計算部21bは、uvゲイン補正係数計算方法設定部28に問い合わせて、基準定数G0、および、uvゲイン補正係数計算モードmode-gがmode2のときの補正係数計算方法として以下の式(8)を読み出す。そして、補正係数計算部21bは、距離r1に応じて、読み出した式(8)を演算し、uvゲイン補正係数Guvとして輝度ゲイン補正係数計算部22に供給する。
In step S92, the correction
Guv=G0×(1−r1/r0)
・・・(8)
G uv = G 0 × (1-r 1 / r 0 )
... (8)
すなわち、uvゲイン補正係数計算モードmode-gがmode2のとき、補正係数計算部21bは、図21で示されるように、距離r1に比例して減少するuvゲイン補正係数Guvを求める。
That is, when the uv gain correction coefficient calculation mode mode-g is mode2, the correction
ステップS91において、例えば、uvゲイン補正係数計算モードmode-gがmode2ではないと判定された場合、すなわち、uvゲイン補正係数計算モードmode-gがmode1でもmode2でもない場合、mode3であることになるので、ステップS93に進み、補正係数計算21bは、uvゲイン補正係数計算方法設定部28に問い合わせて、uvゲイン補正係数計算方法設定部28に問い合わせて、基準定数G0、および、uvゲイン補正係数計算モードmode-gがmode3のときの補正係数計算方法として、以下の式(9)を読み出す。そして、補正係数計算部21bは、距離r1に応じて、読み出した式(9)を演算し、uvゲイン補正係数Guvとして輝度ゲイン補正係数計算部22に供給する。
In step S91, for example, when it is determined that the uv gain correction coefficient calculation mode mode-g is not mode2, that is, when the uv gain correction coefficient calculation mode mode-g is neither mode1 nor mode2, it is mode3. Therefore, the process proceeds to step S93, and the
Guv=G0×(1−(r1/r0)2)
・・・(9)
G uv = G 0 × (1- (r 1 / r 0 ) 2 )
... (9)
すなわち、uvゲイン補正係数計算モードmode-gがmode3のとき、補正係数計算部21bは、図22で示されるように、(r1/r0)2に比例して減少するuvゲイン補正係数Guvを求める。
That is, when the uv gain correction coefficient calculation mode mode-g is mode 3, the correction
以上の処理により、uvゲイン補正係数計算モードmode-gが切替えられることで、様々な種類の演算方法でuvゲイン補正係数Guvを求めることが可能となる。尚、以上においては、距離計算モードmode-r、および、uvゲイン補正係数計算モードmode-gを、それぞれmode1乃至3が設定できる場合について説明してきたが、それ以上の数のmode数を設定するようにしても良い。
By switching the uv gain correction coefficient calculation mode mode-g through the above processing, the uv gain correction coefficient G uv can be obtained by various kinds of calculation methods. In the above description, the distance calculation mode “mode-r” and the uv gain correction coefficient calculation mode “mode-g” have been described as being able to set
ここで、図12のフローチャートに戻る。 Here, it returns to the flowchart of FIG.
ステップS32において、uvゲイン補正係数計算処理が実行され、uvゲイン補正係数が計算されると、その処理は、ステップS33に進み、輝度ゲイン補正係数計算部22が、輝度ゲイン補正係数計算処理を実行し、輝度ゲイン補正係数Gyを計算して、u方向補正量計算部23、および、v方向補正量計算部24に出力する。
In step S32, the uv gain correction coefficient calculation process is executed. When the uv gain correction coefficient is calculated, the process proceeds to step S33, and the luminance gain correction
ここで、図23のフローチャートを参照して、輝度ゲイン補正係数計算処理について説明する。 Here, the luminance gain correction coefficient calculation processing will be described with reference to the flowchart of FIG.
ステップS111において、輝度ゲイン補正係数計算部22は、輝度ゲイン補正係数計算方法設定部29に問い合わせて、輝度ゲイン補正係数計算モードmode-yがmode1であるか否かを判定する。例えば、輝度ゲイン補正係数計算モードmode-yがmode1であると判定された場合、その処理は、ステップS112に進む。
In step S111, the luminance gain correction
ステップS112において、輝度ゲイン補正係数計算部22は、輝度ゲイン補正係数計算方法設定部29に問い合わせて、輝度ゲイン補正係数計算モードmode-yがmode1のときの輝度ゲイン補正係数計算方法として以下の式(10)を読み出す。そして、輝度ゲイン補正係数計算部22は、非線形平滑化処理部27より供給された輝度信号yと、uvゲイン補正係数計算部21より供給されたuvゲイン補正係数Guvとに基づいて、読み出した式(10)を演算し、輝度ゲイン補正係数Gyとしてu方向補正量計算部23、および、v方向補正量計算部24に出力する。
In step S112, the luminance gain correction
Gy=Guv×f0(y)
f0(y)=y/ymax
・・・(10)
G y = G uv × f 0 (y)
f 0 (y) = y / y max
(10)
ここで、ymaxは、輝度値の最大値である。すなわち、輝度ゲイン補正係数計算モードmode-yがmode1のとき、輝度ゲイン補正係数計算部22は、図24で示されるように、輝度ゲイン補正係数Gyが輝度値yに対して比例するように計算する。
Here, y max is the maximum luminance value. That is, when the luminance gain correction coefficient calculation mode mode-y is
ステップS111において、輝度ゲイン補正係数計算モードmode-yがmode1ではないと判定された場合、ステップS113に進み、輝度ゲイン補正係数計算部22は、輝度ゲイン補正係数計算モードmode-yがmode2であるか否かを判定する。例えば、輝度ゲイン補正係数計算モードmode-yがmode2であると判定された場合、その処理は、ステップS114に進む。
If it is determined in step S111 that the luminance gain correction coefficient calculation mode mode-y is not mode1, the process proceeds to step S113, and the luminance gain correction
ステップS114において、輝度ゲイン補正係数計算部22は、輝度ゲイン補正係数計算方法設定部29に問い合わせて、輝度ゲイン補正係数計算モードmode-yがmode2のときの輝度ゲイン補正係数計算方法として以下の式(11)を読み出す。そして、輝度ゲイン補正係数計算部22は、非線形平滑化処理部27より供給された輝度信号yと、uvゲイン補正係数計算部21より供給されたuvゲイン補正係数Guvとに基づいて、読み出した式(11)を演算し、輝度ゲイン補正係数Gyとしてu方向補正量計算部23、および、v方向補正量計算部24に出力する。
In step S114, the luminance gain correction
Gy=Guv×f1(y)
f1(y)=(y/ymax)2
・・・(11)
G y = G uv × f 1 (y)
f 1 (y) = (y / y max ) 2
(11)
すなわち、輝度ゲイン補正係数計算モードmode-yがmode2のとき、輝度ゲイン補正係数計算部22は、図25で示されるように、輝度ゲイン補正係数Gyが輝度値yの2乗に対して比例するように計算する。
That is, when the brightness gain correction coefficient calculation mode mode-y is mode2, brightness gain correction
ステップS113において、例えば、輝度ゲイン補正係数計算モードmode-yがmode2ではないと判定された場合、すなわち、輝度ゲイン補正係数計算モードmode-yがmode1でもmode2でもない場合、mode3であることになるので、ステップS115に進み、輝度ゲイン補正係数計算部22は、輝度ゲイン補正係数計算方法設定部29に問い合わせて、輝度ゲイン補正係数計算モードmode-yがmode3のときの輝度ゲイン補正係数計算方法として以下の式(12)を読み出す。そして、輝度ゲイン補正係数計算部22は、非線形平滑化処理部27より供給された輝度信号yと、uvゲイン補正係数計算部21より供給されたuvゲイン補正係数Guvとに基づいて、読み出した式(12)を演算し、輝度ゲイン補正係数Gyとしてu方向補正量計算部23、および、v方向補正量計算部24に出力する。
In step S113, for example, when it is determined that the luminance gain correction coefficient calculation mode mode-y is not mode2, that is, when the luminance gain correction coefficient calculation mode mode-y is neither mode1 nor mode2, it is mode3. Therefore, the process proceeds to step S115, and the luminance gain correction
Gy=Guv×f2(y)
f2(y)=(y/ymax)1/2
・・・(12)
G y = G uv × f 2 (y)
f 2 (y) = (y / y max ) 1/2
(12)
すなわち、輝度ゲイン補正係数計算モードmode-yがmode3のとき、輝度ゲイン補正係数計算部22は、図26で示されるように、輝度ゲイン補正係数Gyが輝度値yの1/2乗に対して比例するように計算する。
That is, when the luminance gain correction coefficient calculation mode mode-y is mode 3, the luminance gain correction
また、以上の式(10)乃至式(12)で示されているように、輝度ゲイン補正係数には、uvゲイン補正係数Guvが含まれており、輝度ゲイン補正係数Gyは、厳密には、輝度ゲイン補正とuvゲイン補正の両者を含んだ係数であると言える。従って、uvゲイン補正係数のみを使用する場合、fn(y)を1とすることで実現できる。また、輝度ゲイン補正係数をuvゲイン補正係数の要素を含まないものとしたい場合、uvゲイン補正係数Guvを1とすることで実現することが可能となる。 Further, as shown in the above equations (10) to (12), the luminance gain correction coefficient includes the uv gain correction coefficient G uv , and the luminance gain correction coefficient G y is strictly Can be said to be a coefficient including both luminance gain correction and uv gain correction. Therefore, when only the uv gain correction coefficient is used, it can be realized by setting f n (y) to 1. Further, when it is desired that the luminance gain correction coefficient does not include an element of the uv gain correction coefficient, it can be realized by setting the uv gain correction coefficient G uv to 1.
以上の処理により、輝度ゲイン補正係数計算モードmode-yを切替えることで、様々な種類の演算方法で輝度ゲイン補正係数Gyを求めることが可能となる。尚、以上においては、輝度ゲイン補正係数計算モードmode-yは、mode1乃至3が設定できる場合について説明してきたが、それ以上の数のmode数を設定するようにしても良い。ただし、関数fn(y)は、輝度値yの変化に対して単調増加する関数である必要がある。
By the above processing, by switching the brightness gain correction coefficient calculation mode mode-y, it is possible to obtain the luminance gain correction coefficient G y in various types of calculation method. In the above description, the luminance gain correction coefficient calculation mode mode-y has been described for the case where
ここで、図12のフローチャートの説明に戻る。 Now, the description returns to the flowchart of FIG.
ステップS33において、輝度ゲイン補正係数計算処理が実行され、輝度ゲイン補正係数Gyが計算されると、ステップS34に進み、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ方向補正量計算処理を実行する。
In step S33, when the luminance gain correction coefficient calculation process is executed and the luminance gain correction coefficient Gy is calculated, the process proceeds to step S34, where the u-direction correction
ここで、図27のフローチャートを参照して、方向補正量計算処理について説明する。 Here, the direction correction amount calculation processing will be described with reference to the flowchart of FIG.
ステップS131において、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ入力されたuv信号の情報(uin,vin)を取得する。
In step S131, the u-direction correction
ステップS132において、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ方向補正量計算方法設定部30に問い合わせて、方向補正量計算モードmode-dがmode1であるか否かを判定する。例えば、方向補正量計算モードmode-dがmode1であると判定された場合、その処理は、ステップS133に進む。
In step S132, the u-direction correction
ステップS133において、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ方向補正量計算方法設定部30に問い合わせて、方向補正量計算モードmode-dがmode1であるときの方向補正量計算方法として、以下の式(13)を読み出し、輝度ゲイン補正係数Gyと入力されたu信号uinとv信号vinとに基づいて、式(13)を演算し(u方向補正量計算部23が式(13)の上段の式を演算し、v方向補正量計算部24が式(13)の下段の式を演算する)、演算結果であるu信号の補正量uc、および、v信号の補正量vcをそれぞれ加算器26,25に供給する。
In step S133, the u-direction correction
uc=Gy×uin
vc=Gy×vin
・・・(13)
u c = G y × u in
v c = G y × v in
... (13)
ステップS132において、例えば、方向補正量計算モードmode-rがmode1ではないと判定された場合、ステップS134に進み、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ方向補正量計算方法設定部30に問い合わせて、方向補正量計算モードmode-dがmode2であるか否かを判定する。ステップS134において、例えば、方向補正量計算モードmode-dがmode2であると判定された場合、その処理は、ステップS135に進む。
In step S132, for example, when it is determined that the direction correction amount calculation mode mode-r is not mode1, the process proceeds to step S134, where the u direction correction
ステップS135において、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ方向補正量計算方法設定部30に問い合わせて、方向補正量計算モードmode-dがmode2であるときの方向補正量計算方法として、以下の式(14)を読み出し、輝度ゲイン補正係数GyとGreenに対応する領域の中心位置のu信号ucentとv信号vcentとに基づいて、式(14)を演算し(u方向補正量計算部23が式(14)の上段の式を演算し、v方向補正量計算部24が式(14)の下段の式を演算する)、演算結果であるu信号の補正量uc、および、v信号の補正量vcをそれぞれ加算器26,25に供給する。
In step S135, the u-direction correction
uc=Gy×ucent
vc=Gy×vcent
・・・(14)
u c = G y × u cent
v c = G y × v cent
(14)
ステップS134において、例えば、方向補正量計算モードmode-dがmode2ではないと判定された場合、すなわち、方向補正量計算モードmode-dがmode1でもmode2でもない場合、mode3であることになるので、ステップS136に進み、u方向補正量計算部23、および、v方向補正量計算部24は、それぞれ方向補正量計算方法設定部30に問い合わせて、方向補正量計算モードmode-dがmode3であるときの方向補正量計算方法として、式(15)を読み出し、輝度ゲイン補正係数Gyと入力されたu信号uinとv信号vinとに基づいて、式(15)を演算し(u方向補正量計算部23が式(15)の上段の式を演算し、v方向補正量計算部24が式(15)の下段の式を演算する)、演算結果であるu信号の補正量uc、および、v信号の補正量vcをそれぞれ加算器26,25に供給する。
In step S134, for example, when it is determined that the direction correction amount calculation mode mode-d is not mode2, that is, when the direction correction amount calculation mode mode-d is neither mode1 nor mode2, it is mode3. In step S136, the u-direction correction
uc=Gy×(u2−uin)
vc=Gy×(v2−vin)
・・・(15)
u c = G y × (u 2 −u in )
v c = G y × (v 2 −v in )
(15)
ここで、図12のフローチャートの説明に戻る。 Now, the description returns to the flowchart of FIG.
ステップS35において、加算器26,25は、それぞれu方向補正量計算部23、および、v方向補正量計算部24より供給されてくるu信号補正量uc、および、v信号補正量vcを、入力されるu信号、および、v信号に加算し、それぞれu信号、および、v信号を補正したu信号uout、および、v信号voutを出力する。
In step S35, the
例えば、方向補正量計算モードmode-dがmode1であるとすれば、式(13)の計算結果から以下の式(16)で示されるように補正されたu信号uout、および、v信号voutが出力される。 For example, if the direction correction amount calculation mode mode-d is mode1, the u signal u out and the v signal v corrected from the calculation result of the equation (13) as indicated by the following equation (16): out is output.
uout=uin+uc=uin+Gy×uin
vout=vin+vc=vin+Gy×vin
・・・(16)
u out = u in + u c = u in + G y × u in
v out = v in + v c = v in + G y × v in
... (16)
結果として、方向補正量計算モードmode-dがmode1であるとき、図28で示されるように、入力されたuv信号である(uin,vin)および(u’in,v’in)は、それぞれ(uout,vout)および(u’ out,v’ out)に補正されて出力される。すなわち、入力されたuv信号である(uin,vin)および(u’in,v’in)と、uv空間の原点とを結ぶ直線上の方向で、かつ、入力されたuv信号からみて、入力されたuv信号と原点の距離のGy倍のuv空間内の位置に補正される。従って、入力されたuv信号とuv空間内での関係を維持しつつ、色補正をさせるようにすることができる。 As a result, when the direction correction amount calculation mode mode-d is mode1, as shown in FIG. 28, the input uv signals (u in , v in ) and (u ′ in , v ′ in ) are , Corrected to (u out , v out ) and (u ′ out , v ′ out ), respectively, and output. That is, in the direction on a straight line connecting the input uv signals (u in , v in ) and (u ' in , v' in ) with the origin of the uv space, and from the input uv signal , It is corrected to a position in the uv space that is G y times the distance between the input uv signal and the origin. Therefore, color correction can be performed while maintaining the relationship between the input uv signal and the uv space.
また、例えば、方向補正量計算モードmode-dがmode2であるとき、式(14)の計算結果から以下の式(17)で示されるような補正されたu信号uout、および、v信号voutが出力される。 For example, when the direction correction amount calculation mode mode-d is mode2, the corrected u signal u out and the v signal v as shown in the following expression (17) are calculated from the calculation result of the expression (14). out is output.
uout=uin+uc=uin+Gy×ucent
vout=vin+vc=vin+Gy×vcent
・・・(17)
u out = u in + u c = u in + G y × u cent
v out = v in + v c = v in + G y × v cent
... (17)
結果として、方向補正量計算モードmode-dがmode2であるとき、図29で示されるように、入力されたuv信号である(uin,vin)および(u’in,v’in)は、それぞれ(uout,vout)および(u’ out,v’ out)に補正されて出力される。すなわち、入力されたuv信号である(uin,vin)および(u’in,v’in)からみて、uv空間の原点とGreen領域の中心位置(ucent,vcent)を結ぶ方向で、かつ、入力されたuv信号からみて、入力されたuv信号と原点の距離のGy倍のuv空間内の位置に補正される。従って、uv空間の原点とGreen領域の中心位置との関係を維持するように、入力されたuv信号を補正することが可能となる。 As a result, when the direction correction amount calculation mode mode-d is mode 2, as shown in FIG. 29, the input uv signals (u in , v in ) and (u ′ in , v ′ in ) are , Corrected to (u out , v out ) and (u ′ out , v ′ out ), respectively, and output. That is, from the viewpoint of (u in , v in ) and (u ' in , v' in ) that are input uv signals, in the direction connecting the origin of uv space and the center position (u cent , v cent ) of the Green region and, viewed from the input uv signal is corrected to the position of the G y times the uv space distance of the input uv signals and the origin. Therefore, it is possible to correct the input uv signal so as to maintain the relationship between the origin of the uv space and the center position of the Green region.
さらに、例えば、方向補正量計算モードmode-dがmode3であるとき、式(15)の計算結果から以下の式(18)で示されるような補正されたu信号uout、および、v信号voutが出力される。 Further, for example, when the direction correction amount calculation mode mode-d is mode 3, the corrected u signal u out and the v signal v as shown in the following expression (18) are calculated from the calculation result of the expression (15). out is output.
uout=uin+uc=uin+Gy×(u2−uin)
vout=vin+vc=vin+Gy×(v2−vin)
・・・(18)
u out = u in + u c = u in + G y × (u 2 −u in )
v out = v in + v c = v in + G y × (v 2 −v in )
... (18)
結果として、方向補正量計算モードmode-dがmode3であるとき、図30で示されるように、入力されたuv信号である(uin,vin)および(u’in,v’in)は、それぞれ(uout,vout)および(u’ out,v’ out)に補正されて出力される。すなわち、入力されたuv信号である(uin,vin)および(u’in,v’in)からみて、uv空間の目標位置(u2,v2)を結ぶ方向で、かつ、入力されたuv信号からみて、入力されたuv信号と原点の距離のGy倍のuv空間内の位置に補正される。従って、目標とする色に近づけるように色補正することが可能となる。 As a result, when the direction correction amount calculation mode mode-d is mode 3, as shown in FIG. 30, the input uv signals (u in , v in ) and (u ′ in , v ′ in ) are , Corrected to (u out , v out ) and (u ′ out , v ′ out ), respectively, and output. That is, in view of the input uv signals (u in , v in ) and (u ' in , v' in ), the direction is connected to the target position (u 2 , v 2 ) in the uv space, and viewed from the uv signal is corrected to the position of the G y times the uv space distance of the input uv signals and the origin. Therefore, it is possible to perform color correction so as to approach the target color.
尚、以上の色補正処理装置11においては、グリーンエンハンス処理をする例について説明してきたが、同様の手法によりGreenを鮮明にするための色補正のみならず、その他の色についても色補正をさせるようにすることができる。但し、RGB信号をyuv信号で表現する場合、Greenでは、輝度値yの重みが大きいため、輝度値yを考慮した色補正については、グリーンエンハンス処理において、最も大きな効果が得られるものと考えられる。
In the color
また、以上においては、Greenの領域、すなわち、色補正の対象となるuv信号を設定する領域は、中心位置と、その中心位置からの所定の距離の範囲内の円状の範囲であるものと設定した場合について説明してきたが、その形状は、円以外の形状であってもよく、例えば、多角形などであってもよい。 In the above, the Green region, that is, the region for setting the uv signal to be subjected to color correction is a circular position within the range of the center position and a predetermined distance from the center position. Although the case of setting has been described, the shape may be a shape other than a circle, for example, a polygon.
以上のように、距離計算モード、uvゲイン補正係数計算モード、輝度ゲイン補正係数計算モード、および、方向補正量計算モードを、様々に切替えて設定することで、uv空間内の様々な方向に対して容易に色補正をすることが可能となる。 As described above, the distance calculation mode, the uv gain correction coefficient calculation mode, the luminance gain correction coefficient calculation mode, and the direction correction amount calculation mode can be changed and set for various directions in the uv space. Color correction can be performed easily.
上述した一連の処理は、ハードウェアにより実行させることもできるが、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行させることが可能な、例えば汎用のパーソナルコンピュータなどに記録媒体からインストールされる。 The series of processes described above can be executed by hardware, but can also be executed by software. When a series of processes is executed by software, a program constituting the software may execute various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a recording medium in a general-purpose personal computer or the like.
図31は、図5の色補正処理装置11の電気的な内部構成をソフトウェアにより実現する場合のパーソナルコンピュータの一実施の形態の構成を示している。パーソナルコンピュータのCPU101は、パーソナルコンピュータの全体の動作を制御する。また、CPU101は、バス104および入出力インタフェース105を介してユーザからキーボードやマウスなどからなる入力部106から指令が入力されると、それに対応してROM(Read Only Memory) 102に格納されているプログラムを実行する。あるいはまた、CPU101は、ドライブ110に接続された磁気ディスク121、光ディスク122、光磁気ディスク123、または半導体メモリ124から読み出され、記憶部108にインストールされたプログラムを、RAM(Random Access Memory) 103にロードして実行する。これにより、上述した図5の色補正処理装置11の機能が、ソフトウェアにより実現されている。さらに、CPU101は、通信部109を制御して、外部と通信し、データの授受を実行する。
FIG. 31 shows a configuration of an embodiment of a personal computer when the electrical internal configuration of the color
プログラムが記録されている記録媒体は、図31に示すように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク121(フレキシブルディスクを含む)、光ディスク122(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク123(MD(Mini-Disc)を含む)、もしくは半導体メモリ124などよりなるパッケージメディアにより構成されるだけでなく、コンピュータに予め組み込まれた状態でユーザに提供される、プログラムが記録されているROM102や、記憶部108に含まれるハードディスクなどで構成される。
As shown in FIG. 31, the recording medium on which the program is recorded is distributed to provide the program to the user separately from the computer, and a magnetic disk 121 (including a flexible disk) on which the program is recorded, By a package medium composed of an optical disk 122 (including compact disc-read only memory (CD-ROM), DVD (digital versatile disk)), a magneto-optical disk 123 (including MD (mini-disc)), or a
尚、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理は、もちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理を含むものである。 In this specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in time series in the order described, but of course, it is not necessarily performed in time series. Or the process performed separately is included.
11 色補正処理装置, 21 uvゲイン補正係数計算部, 21a 距離計算部, 21b 補正係数計算部, 22 輝度ゲイン補正係数計算部, 23 u方向補正量計算部, 24 v方向補正量計算部, 25,26 加算器, 27 非線形平滑化処理部, 28 uvゲイン補正係数計算方法設定部, 29 輝度ゲイン補正係数計算方法設定部, 30 方向補正量計算方法設定部 11 color correction processing device, 21 uv gain correction coefficient calculation unit, 21a distance calculation unit, 21b correction coefficient calculation unit, 22 luminance gain correction coefficient calculation unit, 23 u direction correction amount calculation unit, 24 v direction correction amount calculation unit, 25 , 26 adder, 27 nonlinear smoothing processing unit, 28 uv gain correction coefficient calculation method setting unit, 29 luminance gain correction coefficient calculation method setting unit, 30 direction correction amount calculation method setting unit
Claims (20)
前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離を計算する距離計算手段と、
前記距離計算手段により計算された前記距離に基づいて、uv信号の補正係数を計算するuv信号補正係数計算手段と、
少なくともuv信号補正係数計算手段により計算された前記uv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算手段と、
前記uv補正量計算手段により計算されたuv補正量に基づいて、前記画像信号のuv信号を補正する補正手段と
を備えることを特徴とする信号処理装置。 In a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
A distance calculating means for calculating a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space;
Uv signal correction coefficient calculation means for calculating a correction coefficient of the uv signal based on the distance calculated by the distance calculation means;
Uv signal correction amount calculating means for calculating a correction amount of the uv signal using at least the correction coefficient of the uv signal calculated by the uv signal correction coefficient calculating means;
A signal processing apparatus comprising: correction means for correcting the uv signal of the image signal based on the uv correction amount calculated by the uv correction amount calculation means.
前記画像信号のuv信号におけるuv空間内の位置と前記uv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分の2乗の和の平方根、
前記画像信号のuv信号におけるuv空間内の位置と前記uv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分絶対値の和、
または、前記画像信号のuv信号におけるuv空間内の位置と前記uv空間内の所定の色に対応する位置とのu成分、若しくはv成分のうちのいずれか大きい方を含む
ことを特徴とする請求項1に記載の信号処理装置。 The value calculated as the distance between the position in the uv space of the uv signal of the image signal and the position corresponding to the predetermined color in the uv space is:
The square root of the sum of the squares of the differences between the u component and the v component of the position of the image signal in the uv space and the position corresponding to the predetermined color in the uv space,
The sum of absolute differences of the u component and the v component of the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space,
Alternatively, the larger one of the u component and the v component of the position in the uv space and the position corresponding to the predetermined color in the uv space in the uv signal of the image signal is included. Item 2. The signal processing device according to Item 1.
前記画像信号のuv信号におけるuv空間内の位置と前記uv空間内の所定の色に対応する位置とのu成分およびv成分のそれぞれの差分絶対値の和、
または、前記画像信号のuv信号におけるuv空間内の位置と前記uv空間内の所定の色に対応する位置とのu成分、若しくはv成分のうちのいずれか大きい方
のいずれかを前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離として設定する距離設定手段をさらに備え、
前記距離計算手段は、前記距離設定手段により設定された距離を、前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離として計算する
ことを特徴とする請求項2に記載の信号処理装置。 The square root of the sum of the squares of the differences between the u component and the v component of the position of the image signal in the uv space and the position corresponding to the predetermined color in the uv space,
The sum of absolute differences of the u component and the v component of the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space,
Alternatively, the larger of the u component or the v component of the position in the uv space in the uv signal of the image signal and the position corresponding to the predetermined color in the uv space, whichever is larger of the image signal a distance setting means for setting as a distance between a position in the uv space in the uv signal and a position corresponding to a predetermined color in the uv space;
The distance calculation means calculates the distance set by the distance setting means as a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space. The signal processing apparatus according to claim 2.
前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離を計算する距離計算ステップと、
前記距離計算ステップの処理で計算された前記距離に基づいて、uv信号の補正係数を計算するuv信号補正係数計算ステップと、
少なくともuv信号補正係数計算ステップの処理で計算された前記uv信号の補正係数にを用いて、uv信号の補正量を計算するuv信号補正量計算ステップと、
前記uv補正量計算ステップの処理で計算されたuv補正量に基づいて、前記画像信号のuv信号を補正する補正ステップと
を含むことを特徴とする信号処理方法。 In a signal processing method of a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
A distance calculating step of calculating a distance between a position in the uv space in the uv signal of the image signal and a position corresponding to a predetermined color in the uv space;
A uv signal correction coefficient calculation step for calculating a correction coefficient of the uv signal based on the distance calculated in the processing of the distance calculation step;
A uv signal correction amount calculation step of calculating a correction amount of the uv signal using at least the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation step;
And a correction step of correcting the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation step.
前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離の計算を制御する距離計算制御ステップと、
前記距離計算制御ステップの処理で計算された前記距離に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、
少なくともuv信号補正係数計算制御ステップの処理で計算された前記uv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、
前記uv補正量計算制御ステップの処理で計算されたuv補正量に基づいて、前記画像信号のuv信号の補正を制御する補正制御ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。 In a recording medium on which a program for controlling a signal processing device for correcting a predetermined color of an image signal composed of a yuv signal is recorded,
A distance calculation control step for controlling calculation of a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space;
A uv signal correction coefficient calculation control step for controlling calculation of a correction coefficient of the uv signal based on the distance calculated in the processing of the distance calculation control step;
Uv signal correction amount calculation control step for controlling calculation of the correction amount of the uv signal using at least the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation control step;
And a correction control step for controlling correction of the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step. Recording media.
前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離の計算を制御する距離計算制御ステップと、
前記距離計算制御ステップの処理で計算された前記距離に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、
少なくともuv信号補正係数計算制御ステップの処理で計算された前記uv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、
前記uv補正量計算制御ステップの処理で計算されたuv補正量に基づいて、前記画像信号のuv信号の補正を制御する補正制御ステップと
を含む処理を実行させることを特徴とするプログラム。 A computer that controls a signal processing device that corrects a predetermined color of an image signal composed of a yuv signal,
A distance calculation control step for controlling calculation of a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space;
A uv signal correction coefficient calculation control step for controlling calculation of a correction coefficient of the uv signal based on the distance calculated in the processing of the distance calculation control step;
Uv signal correction amount calculation control step for controlling calculation of the correction amount of the uv signal using at least the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation control step;
And a correction control step for controlling correction of the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step.
前記画像信号のy信号に基づいて、uv信号の補正係数を計算するuv信号補正係数計算手段と、
少なくとも前記uv信号補正係数計算手段により計算された前記uv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算手段と、
前記uv補正量計算手段により計算されたuv補正量に基づいて、前記画像信号のuv信号を補正する補正手段と
を備えることを特徴とする信号処理装置。 In a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
Uv signal correction coefficient calculation means for calculating a correction coefficient of the uv signal based on the y signal of the image signal;
Uv signal correction amount calculating means for calculating a correction amount of the uv signal using at least the correction coefficient of the uv signal calculated by the uv signal correction coefficient calculating means;
A signal processing apparatus comprising: correction means for correcting the uv signal of the image signal based on the uv correction amount calculated by the uv correction amount calculation means.
ことを特徴とする請求項7に記載の信号処理装置。 The signal processing apparatus according to claim 7, wherein the uv signal correction coefficient calculation unit calculates a correction coefficient of the uv signal by using a function having the y signal of the image signal as an argument.
前記uv信号補正係数計算手段は、前記関数設定手段により設定された引数とした関数により、uv信号の補正係数を計算する
ことを特徴とする請求項8に記載の信号処理装置。 A function setting means for setting any one of the plurality of functions;
The signal processing apparatus according to claim 8, wherein the uv signal correction coefficient calculation unit calculates a correction coefficient of the uv signal by using a function having an argument set by the function setting unit.
前記uv信号補正係数計算手段は、前記非線形平滑化手段により非線形平滑化された前記画像信号のy信号に基づいて、uv信号の補正係数を計算する
ことを特徴とする請求項7に記載の信号処理装置。 Further comprising non-linear smoothing means for non-linear smoothing the y signal of the image signal,
The signal according to claim 7, wherein the uv signal correction coefficient calculation unit calculates a correction coefficient of the uv signal based on a y signal of the image signal that has been nonlinearly smoothed by the nonlinear smoothing unit. Processing equipment.
前記画像信号のy信号に基づいて、uv信号の補正係数を計算するuv信号補正係数計算ステップと、
少なくとも前記uv信号補正係数計算ステップの処理で計算された前記uv信号の補正係数を用いて、uv信号の補正量を計算するuv信号補正量計算ステップと、
前記uv補正量計算ステップの処理で計算されたuv補正量に基づいて、前記画像信号のuv信号を補正する補正ステップと
を含むことを特徴とする信号処理方法。 In a signal processing method of a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
Uv signal correction coefficient calculation step for calculating a correction coefficient of the uv signal based on the y signal of the image signal;
A uv signal correction amount calculation step of calculating a correction amount of the uv signal using at least the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation step;
And a correction step of correcting the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation step.
前記画像信号のy信号に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、
少なくとも前記uv信号補正係数計算制御ステップの処理で計算された前記uv信号の補正係数を用いて、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、
前記uv補正量計算制御ステップの処理で計算されたuv補正量に基づいた、前記画像信号のuv信号の補正を制御する補正制御ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。 In a recording medium on which a program for controlling a signal processing device for correcting a predetermined color of an image signal composed of a yuv signal is recorded,
Uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal based on the y signal of the image signal;
Uv signal correction amount calculation control step for controlling calculation of the correction amount of the uv signal using at least the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation control step;
And a correction control step for controlling correction of the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step. Recording media.
前記画像信号のy信号に基づいて、uv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、
少なくとも前記uv信号補正係数計算制御ステップの処理で計算された前記uv信号の補正係数を用いた、uv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、
前記uv補正量計算制御ステップの処理で計算されたuv補正量に基づいた、前記画像信号のuv信号の補正を制御する補正制御ステップと
を含む処理を実行させることを特徴とするプログラム。 A computer that controls a signal processing device that corrects a predetermined color of an image signal composed of a yuv signal,
Uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal based on the y signal of the image signal;
Uv signal correction amount calculation control step for controlling calculation of the correction amount of the uv signal using at least the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation control step;
And a correction control step for controlling correction of the uv signal of the image signal based on the uv correction amount calculated in the processing of the uv correction amount calculation control step.
前記画像信号に基づいて、前記画像信号のuv信号の補正係数を計算するuv信号補正係数計算手段と、
前記uv信号補正係数計算手段により計算された前記uv信号の補正係数に基づいて、前記uv空間内の所定の補正方向に補正する前記画像信号のuv信号の補正量を計算するuv信号補正量計算手段と、
前記uv補正量計算手段により計算されたuv信号の補正量だけ、前記uv空間内の所定の補正方向に前記画像信号のuv信号を補正する補正手段と
を備えることを特徴とする信号処理装置。 In a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
Uv signal correction coefficient calculation means for calculating a correction coefficient of the uv signal of the image signal based on the image signal;
Uv signal correction amount calculation for calculating a correction amount of the uv signal of the image signal to be corrected in a predetermined correction direction in the uv space based on the correction coefficient of the uv signal calculated by the uv signal correction coefficient calculation means. Means,
A signal processing apparatus comprising: correction means for correcting the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated by the uv correction amount calculation means.
前記uv空間内の原点の位置からみて、前記画像信号のuv信号におけるuv空間内の位置への方向、
前記uv空間内の原点の位置からみて、前記uv空間内の所定の色に対応する位置への方向、
または、前記画像信号のuv信号におけるuv空間内の位置からみて、前記uv空間内の目標とする色に対応する位置への方向のいずれかの方向を含む
ことを特徴とする請求項14に記載の信号処理装置。 The predetermined correction direction in the uv space is
From the position of the origin in the uv space, the direction to the position in the uv space in the uv signal of the image signal,
A direction to a position corresponding to a predetermined color in the uv space as seen from the position of the origin in the uv space;
Alternatively, when viewed from a position in the uv space in the uv signal of the image signal, the direction includes any direction to a position corresponding to a target color in the uv space. Signal processing equipment.
前記uv空間内の原点の位置からみて、前記uv空間内の所定の色に対応する位置への方向、
または、前記画像信号のuv信号におけるuv空間内の位置からみて、前記uv空間内の目標とする色に対応する位置への方向
のいずれかの方向を、前記画像信号のuv信号を補正するuv空間内の所定の補正方向として設定する補正方向設定手段をさらに備える
ことを特徴とする請求項15に記載の信号処理装置。 From the position of the origin in the uv space, the direction to the position in the uv space in the uv signal of the image signal,
A direction to a position corresponding to a predetermined color in the uv space as seen from the position of the origin in the uv space;
Alternatively, as viewed from the position in the uv space of the uv signal of the image signal, the direction to the position corresponding to the target color in the uv space The signal processing apparatus according to claim 15, further comprising correction direction setting means for setting as a predetermined correction direction in the space.
前記画像信号に基づいて、前記画像信号のuv信号の補正係数を計算するuv信号補正係数計算ステップと、
前記uv信号補正係数計算ステップの処理で計算された前記uv信号の補正係数に基づいて、前記uv空間内の所定の補正方向に補正する前記画像信号のuv信号の補正量を計算するuv信号補正量計算ステップと、
前記uv補正量計算ステップの処理で計算されたuv信号の補正量だけ、前記uv空間内の所定の補正方向に前記画像信号のuv信号を補正する補正ステップと
を備えることを特徴とする信号処理方法。 In a signal processing method of a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
Uv signal correction coefficient calculation step of calculating a correction coefficient of the uv signal of the image signal based on the image signal;
Uv signal correction for calculating a correction amount of the uv signal of the image signal to be corrected in a predetermined correction direction in the uv space based on the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation step. A quantity calculation step;
And a correction step of correcting the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated in the processing of the uv correction amount calculation step. Method.
前記画像信号に基づいて、前記画像信号のuv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、
前記uv信号補正係数計算制御ステップの処理で計算された前記uv信号の補正係数に基づいて、前記uv空間内の所定の補正方向に補正する前記画像信号のuv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、
前記uv補正量計算制御ステップの処理で計算されたuv信号の補正量だけ、前記uv空間内の所定の補正方向に前記画像信号のuv信号の補正を制御する補正制御ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。 In a recording medium on which a program for controlling a signal processing device for correcting a predetermined color of an image signal composed of a yuv signal is recorded,
Uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal of the image signal based on the image signal;
Based on the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation control step, the calculation of the correction amount of the uv signal of the image signal to be corrected in a predetermined correction direction in the uv space is controlled. uv signal correction amount calculation control step;
A correction control step for controlling correction of the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated by the processing of the uv correction amount calculation control step. A recording medium on which a computer-readable program is recorded.
前記画像信号に基づいて、前記画像信号のuv信号の補正係数の計算を制御するuv信号補正係数計算制御ステップと、
前記uv信号補正係数計算制御ステップの処理で計算された前記uv信号の補正係数に基づいて、前記uv空間内の所定の補正方向に補正する前記画像信号のuv信号の補正量の計算を制御するuv信号補正量計算制御ステップと、
前記uv補正量計算制御ステップの処理で計算されたuv信号の補正量だけ、前記uv空間内の所定の補正方向に前記画像信号のuv信号の補正を制御する補正制御ステップと
を含む処理を実行させることを特徴とするプログラム。 A computer that controls a signal processing device that corrects a predetermined color of an image signal composed of a yuv signal,
Uv signal correction coefficient calculation control step for controlling the calculation of the correction coefficient of the uv signal of the image signal based on the image signal;
Based on the correction coefficient of the uv signal calculated in the processing of the uv signal correction coefficient calculation control step, the calculation of the correction amount of the uv signal of the image signal to be corrected in a predetermined correction direction in the uv space is controlled. uv signal correction amount calculation control step;
A correction control step for controlling correction of the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated in the processing of the uv correction amount calculation control step. A program characterized by letting
前記画像信号のuv信号におけるuv空間内の位置と、前記uv空間内の所定の色に対応する位置との距離を計算する距離計算手段と、
前記距離計算手段により計算された前記距離に基づいて、uv信号の第1の補正係数を計算する第1のuv信号補正係数計算手段と、
前記画像信号のy信号に基づいて、uv信号の第2の補正係数を計算する第2のuv信号補正係数計算手段と、
少なくとも前記第1のuv信号補正係数計算手段により計算された前記uv信号の第1の補正係数と、前記第2のuv信号補正係数計算手段により計算された前記uv信号の第2の補正係数とを用いて、前記uv空間内の所定の補正方向に補正する、前記画像信号のuv信号の補正量を計算するuv信号補正量計算手段と、
前記uv補正量計算手段により計算されたuv信号の補正量だけ、前記uv空間内の所定の補正方向に前記画像信号のuv信号を補正する補正手段と
を備えることを特徴とする信号処理装置。 In a signal processing device for correcting a predetermined color of an image signal composed of yuv signals,
A distance calculating means for calculating a distance between a position in the uv space of the uv signal of the image signal and a position corresponding to a predetermined color in the uv space;
First uv signal correction coefficient calculation means for calculating a first correction coefficient of the uv signal based on the distance calculated by the distance calculation means;
Second uv signal correction coefficient calculation means for calculating a second correction coefficient of the uv signal based on the y signal of the image signal;
At least a first correction coefficient of the uv signal calculated by the first uv signal correction coefficient calculating means, and a second correction coefficient of the uv signal calculated by the second uv signal correction coefficient calculating means. Uv signal correction amount calculating means for calculating a correction amount of the uv signal of the image signal, which is corrected in a predetermined correction direction in the uv space,
A signal processing apparatus comprising: correction means for correcting the uv signal of the image signal in a predetermined correction direction in the uv space by the correction amount of the uv signal calculated by the uv correction amount calculation means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004143790A JP2005328277A (en) | 2004-05-13 | 2004-05-13 | Signal processor and method, recording medium, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004143790A JP2005328277A (en) | 2004-05-13 | 2004-05-13 | Signal processor and method, recording medium, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005328277A true JP2005328277A (en) | 2005-11-24 |
Family
ID=35474276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004143790A Pending JP2005328277A (en) | 2004-05-13 | 2004-05-13 | Signal processor and method, recording medium, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005328277A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007202580A (en) * | 2006-01-30 | 2007-08-16 | Olympia:Kk | Electronic equipment of game machine |
KR100871816B1 (en) | 2006-02-23 | 2008-12-03 | 엔이씨 일렉트로닉스 가부시키가이샤 | Apparatus, method, and computer readable medium for color correction |
WO2009072208A1 (en) * | 2007-12-06 | 2009-06-11 | Fujitsu Limited | Image processing device, image processing program, and image processing method |
WO2009081485A1 (en) * | 2007-12-25 | 2009-07-02 | Fujitsu Limited | Image processing apparatus, image processing method and image processing program |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04293363A (en) * | 1991-03-22 | 1992-10-16 | Canon Inc | Method and device for picture processing |
JPH06319149A (en) * | 1993-03-12 | 1994-11-15 | Olympus Optical Co Ltd | Image processing device |
JPH0723409A (en) * | 1993-07-05 | 1995-01-24 | Hitachi Ltd | Digital color signal processing circuit |
WO1998042142A1 (en) * | 1997-03-14 | 1998-09-24 | Sony Corporation | Color correction device, color correction method, picture processing device, and picture processing method |
JP2001103504A (en) * | 1999-09-30 | 2001-04-13 | Fujitsu General Ltd | Color correction and gamma correction circuit |
JP2001128189A (en) * | 1999-10-26 | 2001-05-11 | Victor Co Of Japan Ltd | Color correcting circuit |
JP2002016818A (en) * | 2000-04-28 | 2002-01-18 | Fuji Photo Film Co Ltd | Color correction method and device, and recording medium |
JP2003125226A (en) * | 2001-10-18 | 2003-04-25 | Seiko Epson Corp | Color conversion method, color conversion device, and color conversion processing program |
JP2003348614A (en) * | 2002-03-18 | 2003-12-05 | Victor Co Of Japan Ltd | Video correction apparatus and method, video correction program, and recording medium for recording the same |
WO2004032524A1 (en) * | 2002-09-12 | 2004-04-15 | Matsushita Electric Industrial Co., Ltd. | Image processing device |
-
2004
- 2004-05-13 JP JP2004143790A patent/JP2005328277A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04293363A (en) * | 1991-03-22 | 1992-10-16 | Canon Inc | Method and device for picture processing |
JPH06319149A (en) * | 1993-03-12 | 1994-11-15 | Olympus Optical Co Ltd | Image processing device |
JPH0723409A (en) * | 1993-07-05 | 1995-01-24 | Hitachi Ltd | Digital color signal processing circuit |
WO1998042142A1 (en) * | 1997-03-14 | 1998-09-24 | Sony Corporation | Color correction device, color correction method, picture processing device, and picture processing method |
JP2001103504A (en) * | 1999-09-30 | 2001-04-13 | Fujitsu General Ltd | Color correction and gamma correction circuit |
JP2001128189A (en) * | 1999-10-26 | 2001-05-11 | Victor Co Of Japan Ltd | Color correcting circuit |
JP2002016818A (en) * | 2000-04-28 | 2002-01-18 | Fuji Photo Film Co Ltd | Color correction method and device, and recording medium |
JP2003125226A (en) * | 2001-10-18 | 2003-04-25 | Seiko Epson Corp | Color conversion method, color conversion device, and color conversion processing program |
JP2003348614A (en) * | 2002-03-18 | 2003-12-05 | Victor Co Of Japan Ltd | Video correction apparatus and method, video correction program, and recording medium for recording the same |
WO2004032524A1 (en) * | 2002-09-12 | 2004-04-15 | Matsushita Electric Industrial Co., Ltd. | Image processing device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007202580A (en) * | 2006-01-30 | 2007-08-16 | Olympia:Kk | Electronic equipment of game machine |
KR100871816B1 (en) | 2006-02-23 | 2008-12-03 | 엔이씨 일렉트로닉스 가부시키가이샤 | Apparatus, method, and computer readable medium for color correction |
WO2009072208A1 (en) * | 2007-12-06 | 2009-06-11 | Fujitsu Limited | Image processing device, image processing program, and image processing method |
JP4962573B2 (en) * | 2007-12-06 | 2012-06-27 | 富士通株式会社 | Image processing device |
US8478063B2 (en) | 2007-12-06 | 2013-07-02 | Fujitsu Limited | Image processing apparatus and image processing method |
WO2009081485A1 (en) * | 2007-12-25 | 2009-07-02 | Fujitsu Limited | Image processing apparatus, image processing method and image processing program |
JP4952796B2 (en) * | 2007-12-25 | 2012-06-13 | 富士通株式会社 | Image processing device |
US8311356B2 (en) | 2007-12-25 | 2012-11-13 | Fujitsu Limited | Image processing apparatus and image processing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4894595B2 (en) | Image processing apparatus and method, and program | |
US9710890B2 (en) | Joint enhancement of lightness, color and contrast of images and video | |
KR101318556B1 (en) | Apparatus and method for processing signal, and recording medium | |
JP4577621B2 (en) | Image correction processing system and image correction processing method | |
US8675102B2 (en) | Real time denoising of video | |
JP4320572B2 (en) | Signal processing apparatus and method, recording medium, and program | |
KR100975221B1 (en) | Sharpness Compensator and Method | |
CN101661615A (en) | Image processing apparatus for performing gradation correction on subject image | |
JP2008205691A (en) | Image processing apparatus and method, recording medium, and program | |
CN101151883A (en) | Display image processing method, image processing method and device, integrated circuit including image processing device | |
JP2009510587A (en) | Image detail enhancement | |
KR20160069453A (en) | Image proccessing apparatus and image proccessing method | |
JP5486273B2 (en) | Image processing apparatus and image processing method | |
JP2005328277A (en) | Signal processor and method, recording medium, and program | |
JP5295854B2 (en) | Image processing apparatus and image processing program | |
US7558435B2 (en) | Signal processing apparatus, method of processing a signal, recording medium, and program | |
US7773824B2 (en) | Signal processing device and method, recording medium, and program | |
JP4315055B2 (en) | Signal processing apparatus and method, recording medium, and program | |
JP2008048031A (en) | Image processor and image processing method | |
JP2005333176A (en) | Signal processing apparatus and method, recording medium, and program | |
JP2008042392A (en) | Image processor and method | |
JP2008182638A (en) | Image processing apparatus and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070508 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100212 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100218 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100412 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100601 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100726 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100817 |