JP2012088954A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2012088954A
JP2012088954A JP2010235381A JP2010235381A JP2012088954A JP 2012088954 A JP2012088954 A JP 2012088954A JP 2010235381 A JP2010235381 A JP 2010235381A JP 2010235381 A JP2010235381 A JP 2010235381A JP 2012088954 A JP2012088954 A JP 2012088954A
Authority
JP
Japan
Prior art keywords
correction
correction curve
image processing
processing apparatus
parameter
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.)
Withdrawn
Application number
JP2010235381A
Other languages
Japanese (ja)
Inventor
Tei Hayashi
禎 林
Masaki Ishikawa
真己 石川
Shigeki Kanazawa
繁樹 金澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2010235381A priority Critical patent/JP2012088954A/en
Publication of JP2012088954A publication Critical patent/JP2012088954A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device that carries out dynamic correction with a small circuit scale, simultaneously if plural corrections are included, without the need of direct processing by a CPU.SOLUTION: An image processing device 10 that carries out correction of an input image using a correction curve comprises: a setting register part 20 that outputs an initial value of a parameter for determining a coefficient of the correction curve; a statistical analysis part 40 that statistically analyzes image data of the input image; a parameter generation part 30 that changes the initial value of the parameter based on statistical information obtained from the statistical analysis part; and a correction output part 50 that sets a coefficient of the correction curve based on the parameter changed by the parameter generation part, and corrects and outputs pixel values for respective pixels of the input image based on the correction curve. The correction curve is a function of the third order or more, and the parameter has less order than that of the correction curve.

Description

本発明は、画像処理装置等に関する。   The present invention relates to an image processing apparatus and the like.

通常、ディスプレイやプロジェクターなどの画像表示機器に含まれる画像処理装置は、所望の再現特性を得るために入力画像データの階調値を補正する。階調値の補正は、例えば明るさ補正、コントラスト補正、カラーバランス補正等である。これらの補正は入力画像データに応じてダイナミックに行われるところ、補正曲線は3次以上の式で表されるので、積和演算の負担軽減、演算時間短縮のためにルックアップテーブルが用いられることが多い。このとき、ルックアップテーブルはテーブルメモリーやROM等のリソースを必要とする。   Usually, an image processing apparatus included in an image display device such as a display or a projector corrects a gradation value of input image data in order to obtain desired reproduction characteristics. The correction of the gradation value is, for example, brightness correction, contrast correction, color balance correction, and the like. Since these corrections are dynamically performed according to the input image data, the correction curve is expressed by a third-order or higher expression, so that a look-up table is used to reduce the load of product-sum operation and the calculation time. There are many. At this time, the lookup table requires resources such as a table memory and a ROM.

これらのリソースを増やさずに複数種類の変換を行うために、引用文献1の発明は雛形のテーブル値をROMに格納し、CPUがテーブル値をテーブルメモリーに書き込む際に変換モジュールがテーブル値を適切な値に書き換える。   In order to perform multiple types of conversion without increasing these resources, the invention of cited document 1 stores the table value of the template in the ROM, and the conversion module appropriately sets the table value when the CPU writes the table value in the table memory. Rewrite to a correct value.

特開2007−293827号公報JP 2007-293828 A

しかし、CPUがROMにアクセスしてテーブル値を一度読み込む必要があることは、CPUに負荷をかけることになる。その結果、システム全体の処理速度が低下する恐れがある。また、画像の特徴に応じてテーブル値を変更するような場合には、CPUは時間のかかる画像の解析を行う必要があり、補正処理に遅延が生じる恐れがある。   However, the fact that the CPU needs to access the ROM and read the table value once places a load on the CPU. As a result, the processing speed of the entire system may be reduced. Further, when the table value is changed according to the feature of the image, the CPU needs to analyze the time-consuming image, which may cause a delay in the correction process.

本発明はこのような問題点に鑑みてなされたものである。本発明のいくつかの態様によれば、直接的なCPUによる処理を要することなく、ダイナミック補正を小さな回路規模で、複数の補正を含む場合には同時に、実行できる画像処理装置を提供する。   The present invention has been made in view of such problems. According to some aspects of the present invention, there is provided an image processing apparatus capable of executing dynamic correction with a small circuit scale and simultaneously including a plurality of corrections without requiring direct CPU processing.

(1)本発明は、補正曲線を用いて入力画像の補正を行う画像処理装置であって、前記補正曲線の係数を定めるパラメーターの初期値を出力する設定レジスター部と、前記入力画像の画像データを統計的に解析する統計解析部と、前記パラメーターの初期値を、前記統計解析部からの統計情報に基づいて変更するパラメーター生成部と、前記パラメーター生成部で変更されたパラメーターに基づいて前記補正曲線の係数を定め、前記入力画像の各画素の画素値を前記補正曲線に基づいて補正して出力する補正出力部と、を含み、前記補正曲線は3次以上の関数であって、前記パラメーターは前記補正曲線の次数よりも少ない。 (1) The present invention is an image processing apparatus that corrects an input image using a correction curve, a setting register unit that outputs an initial value of a parameter that determines a coefficient of the correction curve, and image data of the input image A statistical analysis unit that statistically analyzes the parameter, a parameter generation unit that changes an initial value of the parameter based on statistical information from the statistical analysis unit, and the correction based on the parameter changed by the parameter generation unit A correction output unit that determines a coefficient of a curve and corrects and outputs a pixel value of each pixel of the input image based on the correction curve, wherein the correction curve is a function of third order or higher, and the parameter Is less than the order of the correction curve.

本発明によれば、入力画像の補正に用いる補正曲線のテンプレートを用意し、その次数よりも少ないパラメーターにより補正曲線の係数を定めることで、ダイナミック補正を小さな回路規模で、複数の補正を含む場合には同時に、実行できる。このとき、直接的なCPUによる処理を要することなく、システム全体の処理速度が向上する。   According to the present invention, when a correction curve template used for correcting an input image is prepared and a coefficient of the correction curve is determined by a parameter smaller than the order, dynamic correction is performed with a small circuit scale and including a plurality of corrections. Can be run simultaneously. At this time, the processing speed of the entire system is improved without requiring direct CPU processing.

ここで、ダイナミック補正とは例えば明るさ補正、コントラスト補正、カラーバランス補正等である。ダイナミック補正は入力画像の統計的なデータに基づき前記の補正曲線の係数やテーブル値を動的に変更する補正を指す。これに対し、製造ばらつき等に起因する表示パネルの個体差の補正は、静的な(固定的な)係数やテーブル値を用いるのでスタティック補正と呼ぶ。   Here, the dynamic correction is, for example, brightness correction, contrast correction, color balance correction, and the like. Dynamic correction refers to correction that dynamically changes the coefficient and table value of the correction curve based on statistical data of an input image. On the other hand, correction of individual differences between display panels due to manufacturing variations and the like is called static correction because static (fixed) coefficients and table values are used.

(2)この画像処理装置において、前記パラメーターは、前記補正曲線の所定の値における接線の傾きであってもよい。 (2) In this image processing apparatus, the parameter may be a slope of a tangent line at a predetermined value of the correction curve.

本発明によれば、補正曲線の係数を定めるパラメーターを接線の傾きで求めることができるので、パラメーターの修正および決定が容易になる。   According to the present invention, the parameter that determines the coefficient of the correction curve can be obtained by the slope of the tangent, so that the parameter can be easily corrected and determined.

(3)この画像処理装置において、前記補正曲線は3次関数であってもよい。 (3) In this image processing apparatus, the correction curve may be a cubic function.

本発明によれば、補正曲線を表す関数の次数を3とすることで、2つのパラメーターで補正曲線を定義することができる。そのため、回路規模を小さくすることが可能である。   According to the present invention, by setting the order of the function representing the correction curve to 3, the correction curve can be defined with two parameters. Therefore, the circuit scale can be reduced.

(4)この画像処理装置において、前記パラメーターは、前記補正曲線の最小の入力値と最大の入力値における接線の傾きで与えられてもよい。 (4) In this image processing apparatus, the parameter may be given by a minimum input value of the correction curve and a slope of a tangent line at the maximum input value.

本発明によれば、3次補正曲線の係数を定める2つのパラメーターは、最小の入力値と最大の入力値における接線の傾きとして容易に求められる。ここで、入力値とは正規化した入力画像の各画素の画素値を指す。このとき、補正曲線がf(x)であるとすると、入力値はxである。xmin≦x≦xmaxであれば、最小の入力値はxminであり、最大の入力値はxmaxである。そして、2つのパラメーターはそれぞれ、f′(xmin)とf′(xmax)になる。 According to the present invention, the two parameters that determine the coefficient of the cubic correction curve can be easily obtained as the tangent slope at the minimum input value and the maximum input value. Here, the input value refers to the pixel value of each pixel of the normalized input image. At this time, if the correction curve is f (x), the input value is x. If x min ≦ x ≦ x max , the minimum input value is x min and the maximum input value is x max . The two parameters are f ′ (x min ) and f ′ (x max ), respectively.

(5)この画像処理装置において、前記補正出力部は、前記入力画像の補正に用いるルックアップテーブルを有し、前記ルックアップテーブルの各テーブル値を前記補正曲線に基づいて更新し、更新された前記ルックアップテーブルを用いて前記入力画像の各画素の画素値を補正してもよい。 (5) In this image processing apparatus, the correction output unit includes a lookup table used for correcting the input image, and updates each table value of the lookup table based on the correction curve. The pixel value of each pixel of the input image may be corrected using the lookup table.

本発明によれば、積和演算器で入力画像の各画素の画素値を直接補正する事に代えて、ルックアップテーブルのテーブル値を補正することで更に演算の負荷、時間を軽減することができる。   According to the present invention, instead of directly correcting the pixel value of each pixel of the input image by the product-sum calculator, the calculation load and time can be further reduced by correcting the table value of the lookup table. it can.

(6)この画像処理装置において、前記入力画像は動画の1フレーム分の画像であって、前記補正出力部は、垂直ブランキング期間に前記ルックアップテーブルの各テーブル値を前記補正曲線に基づいて更新してもよい。 (6) In this image processing apparatus, the input image is an image of one frame of a moving image, and the correction output unit calculates each table value of the lookup table based on the correction curve during a vertical blanking period. It may be updated.

本発明によれば、入力画像が動画である場合には、ルックアップテーブルのテーブル値の補正を垂直ブランキング期間に行うことで、続く画像データの各画素値の補正処理をリアルタイムに行うことができるので処理の効率が向上する。   According to the present invention, when the input image is a moving image, correction of the table values of the lookup table is performed in the vertical blanking period, whereby correction processing of each pixel value of the subsequent image data can be performed in real time. This improves the processing efficiency.

(7)この画像処理装置において、前記補正出力部は、1つの積和演算器を含み、前記積和演算器を用いて前記入力画像の各画素の画素値を前記補正曲線に基づいて補正してもよい。 (7) In this image processing apparatus, the correction output unit includes one product-sum calculator, and corrects the pixel value of each pixel of the input image based on the correction curve using the product-sum calculator. May be.

本発明によれば、積和演算器で入力画像の各画素の画素値を直接補正するのでテーブルメモリーやROM等のリソースを必要としない。そのため、回路規模を小さくできる。   According to the present invention, since the pixel value of each pixel of the input image is directly corrected by the product-sum calculator, resources such as a table memory and a ROM are not required. Therefore, the circuit scale can be reduced.

(8)この画像処理装置において、前記設定レジスター部は、前記補正の種類に応じて出力される複数のパラメーターの初期値を含んでもよい。 (8) In this image processing apparatus, the setting register unit may include initial values of a plurality of parameters output according to the type of correction.

本発明によれば、CPU等の制御信号だけで、簡単に複数のダイナミック補正を切り替えることが可能になる。   According to the present invention, a plurality of dynamic corrections can be easily switched only by a control signal from a CPU or the like.

第1実施形態の画像処理装置のブロック図。1 is a block diagram of an image processing apparatus according to a first embodiment. 図2(A)〜図2(B)はダイナミック補正の補正曲線の例を示す図。FIG. 2A to FIG. 2B are diagrams illustrating examples of correction curves for dynamic correction. 図3(A)〜図3(B)は合成したダイナミック補正の補正曲線の例を示す図。FIGS. 3A to 3B are diagrams showing examples of synthesized correction curves for dynamic correction. 図4(A)は補正の種類と初期値の例を示すテーブル。図4(B)〜図4(C)は入出力データの例を示す図。FIG. 4A is a table showing examples of correction types and initial values. 4B to 4C are diagrams showing examples of input / output data. 図5(A)〜図5(C)はパラメーターを決定する方法の例を示す図。FIGS. 5A to 5C are diagrams illustrating an example of a method for determining a parameter. 図6(A)は第1実施形態の補正出力部の構成を示す図。図6(B)はその波形図を示す図。FIG. 6A is a diagram illustrating a configuration of a correction output unit according to the first embodiment. FIG. 6B shows a waveform diagram thereof. 図7は第2実施形態の補正出力部の構成を示す図。FIG. 7 is a diagram illustrating a configuration of a correction output unit according to the second embodiment. 図8は第2実施形態の処理例のフローチャート。FIG. 8 is a flowchart of a processing example of the second embodiment.

以下、本発明の実施形態について図面を参照して説明する。
1.第1実施形態
本発明の第1実施形態について図1〜図6を参照して説明する。
1.1.第1実施形態の画像処理装置の構成
図1は本実施形態の画像処理装置10のブロック図である。画像処理装置10は、設定レジスター部20、パラメーター生成部30、統計解析部40、補正出力部50を含む。
Embodiments of the present invention will be described below with reference to the drawings.
1. First Embodiment A first embodiment of the present invention will be described with reference to FIGS.
1.1. Configuration of Image Processing Apparatus According to First Embodiment FIG. 1 is a block diagram of an image processing apparatus 10 according to this embodiment. The image processing apparatus 10 includes a setting register unit 20, a parameter generation unit 30, a statistical analysis unit 40, and a correction output unit 50.

設定レジスター部20は、例えばCPUから制御信号202を受け取り、その内容に応じたパラメーター初期値204を出力する。例えば、制御信号202が補正の種類として明るさ補正を指定する場合には、明るさ補正の補正曲線の係数を決定するためのパラメーター初期値204を出力する。初期値を与えることで最初のフレームの入力画像も補正が施されるようにする。なお、2番目のフレームの入力画像からは、直前のフレームの画像データの統計情報206に基づいて初期値が修正され得るので、より適したダイナミック補正が行われる。   The setting register unit 20 receives a control signal 202 from, for example, a CPU, and outputs a parameter initial value 204 corresponding to the content. For example, when the control signal 202 specifies brightness correction as the type of correction, the parameter initial value 204 for determining the coefficient of the correction curve for brightness correction is output. By giving an initial value, the input image of the first frame is also corrected. Since the initial value can be corrected from the input information of the second frame based on the statistical information 206 of the image data of the immediately preceding frame, more suitable dynamic correction is performed.

統計解析部40は、入力画像の画素の画素値200を受け取り、1フレーム分の画像データ(画素値)から画像を特徴付ける統計的な解析データ(統計情報)206を出力する。統計解析部40は、入力画像の画素の画素値200を一時的に保持するラインバッファーやフレームバッファーを含んでいてもよい。統計情報206は、例えば1フレーム分の画像データから得られる輝度分布、コントラスト、彩度、カラーバランス等の情報であってもよい。   The statistical analysis unit 40 receives the pixel value 200 of the pixel of the input image, and outputs statistical analysis data (statistical information) 206 that characterizes the image from image data (pixel value) for one frame. The statistical analysis unit 40 may include a line buffer or a frame buffer that temporarily holds the pixel value 200 of the pixel of the input image. The statistical information 206 may be information such as luminance distribution, contrast, saturation, and color balance obtained from image data for one frame, for example.

パラメーター生成部30は、設定レジスター部20からパラメーター初期値204を受け取り、統計情報206に基づいてパラメーター初期値204を修正してパラメーター208を出力する。   The parameter generation unit 30 receives the parameter initial value 204 from the setting register unit 20, modifies the parameter initial value 204 based on the statistical information 206, and outputs the parameter 208.

そして、補正出力部50は、パラメーター208を受け取って補正曲線の係数を決定して、入力画像の画素の画素値200を補正して、各画素の補正後の画素値である出力画素値210を出力する。ここで、入力画像のデータは走査方式で入力され、補正の対象となる注目画素は例えばシステムクロックに同期して順次変化する。そして、所定時間の経過後には1フレームの全ての画素について所定の処理が行われ、最終的に1フレームの画像について補正が行われる。   Then, the correction output unit 50 receives the parameter 208, determines the coefficient of the correction curve, corrects the pixel value 200 of the pixel of the input image, and outputs the output pixel value 210 that is the corrected pixel value of each pixel. Output. Here, input image data is input by a scanning method, and a target pixel to be corrected sequentially changes in synchronization with, for example, a system clock. After a predetermined time elapses, predetermined processing is performed for all pixels in one frame, and finally, correction is performed for an image in one frame.

本実施形態の画像処理装置10では、例えばCPU(図外)は制御信号202によって補正の種類を指定するだけでよい。本実施形態では、特許文献1のテーブル値に対応する補正曲線を変更する場合にCPUが直接関与することはない。よって、本実施形態の画像処理装置10は、CPUに負荷をかけてシステム全体の処理速度を低下させるようなことがない。   In the image processing apparatus 10 of this embodiment, for example, the CPU (not shown) only needs to specify the type of correction by the control signal 202. In the present embodiment, the CPU is not directly involved in changing the correction curve corresponding to the table value of Patent Document 1. Therefore, the image processing apparatus 10 of this embodiment does not reduce the processing speed of the entire system by applying a load on the CPU.

1.2.パラメーターと補正曲線の関係について
1.2.1.パラメーターの数について
本発明は、制御点に対応するパラメーターの数を、ダイナミック補正を行うための補正曲線の次数より少なくすることで、演算処理の負荷を減らして小さな回路規模で補正を行う。例えば、3次の補正曲線が2つのパラメーターで定まれば、パラメーターを変更する際の演算や、その後の補正曲線に基づいた積和演算での負荷が軽くなる。
1.2. Relationship between parameters and correction curve 1.2.1. Regarding the number of parameters In the present invention, the number of parameters corresponding to control points is made smaller than the order of the correction curve for performing dynamic correction, thereby reducing the processing load and performing correction with a small circuit scale. For example, if a third-order correction curve is determined by two parameters, the load in the calculation when changing the parameters and the product-sum calculation based on the subsequent correction curve is reduced.

ここで、本実施形態では3次の補正曲線のテンプレートを数1のように定める。   Here, in the present embodiment, a template of a third-order correction curve is defined as shown in Equation 1.

Figure 2012088954
Figure 2012088954

このとき、3次の補正曲線f(x)は2つのパラメーターAおよびBにより定まる。式(1)のf(x)はf(0)=0、f(1)=1を満たす。そして、A=B=1の場合にはf(x)=xを満たす。補正曲線f(x)の1階微分は数2で与えられる。   At this time, the cubic correction curve f (x) is determined by the two parameters A and B. F (x) in Expression (1) satisfies f (0) = 0 and f (1) = 1. When A = B = 1, f (x) = x is satisfied. The first derivative of the correction curve f (x) is given by Equation 2.

Figure 2012088954
Figure 2012088954

ここで、式(2)で所定の値について計算をするとAとBが求められる。   Here, when a predetermined value is calculated by the equation (2), A and B are obtained.

Figure 2012088954
Figure 2012088954

つまり、パラメーターAとBはそれぞれ、f(x)のx=0、1における接線の傾きで与えられる。ここで、補正曲線f(x)のxは正規化した入力画像の画素の画素値に対応する。例えば、画素値が10ビットの輝度Yである場合には、0≦Y≦1023である。この場合には、輝度Yを最大値1023で割った値が補正曲線f(x)のxである。つまり、0≦x≦1となる。式(1)のパラメーターA、Bは、それぞれ最小の入力値、最大の入力値におけるf(x)の接線の傾きで与えられる。   That is, the parameters A and B are given by the tangential slopes of f (x) at x = 0 and 1, respectively. Here, x of the correction curve f (x) corresponds to the pixel value of the normalized pixel of the input image. For example, when the pixel value is 10-bit luminance Y, 0 ≦ Y ≦ 1023. In this case, the value obtained by dividing the luminance Y by the maximum value 1023 is x of the correction curve f (x). That is, 0 ≦ x ≦ 1. Parameters A and B in equation (1) are given by the slope of the tangent line of f (x) at the minimum input value and the maximum input value, respectively.

式(1)で表されるf(x)は3次の補正曲線であるが2つのパラメーターA、Bで定められる。そして、パラメーターA、Bは最小の入力値、最大の入力値におけるf(x)の接線の傾きで与えられる。そのため、本実施形態の画像処理装置10は、演算処理の負荷を減らして小さな回路規模で補正を行うことが可能になる。   F (x) represented by the equation (1) is a cubic correction curve, but is determined by two parameters A and B. Parameters A and B are given by the minimum input value and the slope of the tangent line of f (x) at the maximum input value. Therefore, the image processing apparatus 10 according to the present embodiment can perform correction with a small circuit scale by reducing the load of arithmetic processing.

より高次の補正曲線を定める場合は3次の式(1)にもとづいて拡張できる。例えば、数4のg(x)は5次の補正曲線の例である。f(x)とf(x)は式(1)に基づいて得られる。 When a higher-order correction curve is defined, it can be expanded based on the cubic equation (1). For example, g (x) in Equation 4 is an example of a fifth-order correction curve. f 1 (x) and f 2 (x) are obtained based on Equation (1).

Figure 2012088954
Figure 2012088954

ここで、式(5)のg(x)においてもg(0)=0、g(1)=1を満たす。また、A=B=A=B=1の場合にg(x)=xとなり、g(x)は式(1)のf(x)と同じ性質を有する。また、補正曲線g(x)の1階微分は数5で与えられる。 Here, g (0) = 0 and g (1) = 1 are satisfied also in g (x) of the formula (5). Further, when A 1 = B 1 = A 2 = B 2 = 1, g (x) = x, and g (x) has the same property as f (x) in the formula (1). The first derivative of the correction curve g (x) is given by Equation 5.

Figure 2012088954
Figure 2012088954

式(3)、(4)より求まるA~Bより、式(8)で所定の値について計算をすると数6の関係が得られる。逆に、数6と、例えばg(1/2)、g’(1/2)の値を新たな制御パラメーターとしてA~Bを定めることもできる。 From A 1 to B 2 obtained from Expressions (3) and (4), when a predetermined value is calculated in Expression (8), the relationship of Equation 6 is obtained. On the other hand, A 1 to B 2 can also be determined using Equation 6 and, for example, the values of g (1/2) and g ′ (1/2) as new control parameters.

Figure 2012088954
Figure 2012088954

なお、さらに高次の曲線を定める場合は一般に以下の式を用いることも出来る。   In addition, when a higher order curve is defined, the following formula can also be generally used.

Figure 2012088954
Figure 2012088954

1.2.2.ダイナミック補正における補正曲線の次数について
図2(A)、図2(B)はそれぞれ、前記の補正曲線による明るさ補正、コントラスト補正の補正曲線の例である。なお、これらの入力および出力は10ビットの画素値(ここでは輝度)であるとする。
1.2.2. Order of Correction Curve in Dynamic Correction FIGS. 2A and 2B are examples of correction curves for brightness correction and contrast correction using the correction curve, respectively. These inputs and outputs are 10-bit pixel values (in this case, luminance).

図2(A)の明るさ補正の補正曲線220A、220B、220Cはそれぞれパラメーター(A、B)を(A、B)、(A、B)、(A、B)と変更した場合に対応する。パラメーターAの増大につれて(C)、パラメーターBは減少する(C)。この変化は3次の補正曲線で実現可能である。 The correction curves 220A, 220B, and 220C for brightness correction in FIG. 2A are parameters (A, B), (A 0 , B 0 ), (A 1 , B 1 ), (A 2 , B 2 ), respectively. Corresponds to changes. As parameter A increases (C 0 ), parameter B decreases (C 1 ). This change can be realized by a cubic correction curve.

図2(B)のコントラスト補正の補正曲線220D、220E、220Fはそれぞれパラメーター(A、B)を(A、B)、(A、B)、(A、B)と変更した場合に対応する。パラメーターAの減少につれて(C)、パラメーターBも減少する(C)。この変化は3次の補正曲線で実現可能である。 The correction curves 220D, 220E, and 220F for contrast correction in FIG. 2B change the parameters (A, B) to (A 3 , B 3 ), (A 4 , B 4 ), (A 5 , B 5 ), respectively. Corresponds to the case. As parameter A decreases (C 2 ), parameter B also decreases (C 3 ). This change can be realized by a cubic correction curve.

ここで、前記の補正曲線によって複数のダイナミック補正を行う場合について検討する。3次の補正曲線を用いる明るさ補正と、3次の補正曲線を用いるコントラスト補正とを行う場合、連続して(シーケンシャルに)行うことが考えられる。しかし、補正に伴う演算処理の負荷が大きくなり、最終的に得られる特性を把握しにくい。   Here, a case where a plurality of dynamic corrections are performed using the correction curve will be considered. When performing brightness correction using a third-order correction curve and contrast correction using a third-order correction curve, it can be considered that the correction is performed continuously (sequentially). However, the processing load associated with the correction increases, making it difficult to grasp the finally obtained characteristics.

しかし、シーケンシャルに補正を行わずとも、明るさ補正もコントラスト補正も3次の補正曲線で表すことが可能であり、このときパラメーターA、Bのみで補正曲線が決定される。したがって、両補正を合成した補正曲線も3次の補正曲線でパラメーターA、Bを適当に調整することで近似が可能である。   However, brightness correction and contrast correction can be expressed by a cubic correction curve without performing sequential correction, and at this time, the correction curve is determined only by parameters A and B. Therefore, a correction curve obtained by combining both corrections can be approximated by appropriately adjusting the parameters A and B with a cubic correction curve.

図3(A)は、明るさ補正とコントラスト補正を合成した補正曲線222の例である。なお、図2(A)、図2(B)と入力、出力は同じであり、説明は省略する。補正曲線222は、明るさ補正とコントラスト補正の一方(例えば明るさ補正)の補正曲線に対して、他方の変化率を乗じて得られる。具体的手法については後述するが、補正曲線222もパラメーターA、Bによって定まる。 FIG. 3A shows an example of a correction curve 222 obtained by combining brightness correction and contrast correction. Note that the input and output are the same as those in FIGS. 2A and 2B, and a description thereof will be omitted. The correction curve 222 is obtained by multiplying one of the correction curves of brightness correction and contrast correction (for example, brightness correction) by the other change rate. Although a specific method will be described later, the correction curve 222 is also determined by the parameters A m and B m .

他のダイナミック補正を考慮した場合でも(例えばカラーバランス補正)、3次の補正曲線を考慮すれば十分であり、この例のように、2つ以上の複数のダイナミック補正を合成した補正がパラメーターA、Bの調整だけで実現可能である。本実施形態のダイナミック補正の合成は、回路規模を最小にするために3次の補正曲線を用いている。そして、シーケンシャルに個々の補正を行う場合と比べて、合成後に最終的に得られる特性を把握しやすいとの利点がある。   Even when other dynamic corrections are taken into account (for example, color balance correction), it is sufficient to consider a cubic correction curve. As shown in this example, a correction obtained by combining two or more dynamic corrections is parameter A. , B can be realized only by adjusting B. The dynamic correction composition of this embodiment uses a third-order correction curve in order to minimize the circuit scale. And compared with the case where each correction is performed sequentially, there is an advantage that it is easy to grasp the characteristic finally obtained after the synthesis.

ここで、図2(A)、図2(B)、図3(A)の入力、出力の画素値は輝度であるとして説明してきた。しかし、輝度Yは数8のようにrgbから求められるため、輝度を補正することはrgb各色に対して補正をすることに等しい。   Here, the input and output pixel values in FIGS. 2A, 2B, and 3A have been described as luminance. However, since the luminance Y is obtained from rgb as shown in Equation 8, correcting the luminance is equivalent to correcting each color of rgb.

Figure 2012088954
Figure 2012088954

例えば図3(A)の輝度Yに関する補正曲線は図3(B)のようにrgb各色の画素値の補正曲線222R、222G、222Bと対応する。よって、rgb各色の補正曲線を持ち、それぞれの補正曲線を定めるパラメーター(A、B)、(A、B)、(A、B)を求めることにより様々なダイナミック補正に対応することが可能である。このとき、式(1)は数9のようにrgb各色に展開される。 For example, the correction curve for the luminance Y in FIG. 3A corresponds to the correction curves 222R, 222G, and 222B for the pixel values of each color of rgb as shown in FIG. 3B. Therefore, it has a correction curve for each color of rgb, and supports various dynamic corrections by obtaining parameters (A r , B r ), (A g , B g ), (A b , B b ) that define each correction curve. Is possible. At this time, Expression (1) is developed for each color of rgb as shown in Equation 9.

Figure 2012088954
Figure 2012088954

本実施形態では、補正曲線はrgb各色について独立して存在するものとするが、以下において説明が重複する場合には1つの色についてのみ説明する。   In the present embodiment, it is assumed that the correction curve exists independently for each color of rgb. However, in the following description, only one color will be described when the description overlaps.

1.3.設定レジスター部
以下、本実施形態の画像処理装置10の各構成部分について具体例を示して説明する。設定レジスター部20は、例えば図4(A)のテーブルに従ってパラメーター初期値204を出力してもよい。この例では、設定レジスター部20はCPU(図外)から3ビットの制御信号202を受け取り、各ビットを補正処理と関連づけている。例えば、ビット2が“1”であれば明るさ補正が行われることを意味し、“0”であれば明るさ補正が行われないことを意味する。図4(A)のように、各補正に対応してパラメーター初期値204が用意されている。パラメーター初期値204は、パラメーターA、BがRGB各色にあるため、原則として1つの補正で6つの初期値を持つことになる。
1.3. Setting Register Unit Each component of the image processing apparatus 10 according to this embodiment will be described below with a specific example. For example, the setting register unit 20 may output the parameter initial value 204 in accordance with the table of FIG. In this example, the setting register unit 20 receives a 3-bit control signal 202 from a CPU (not shown) and associates each bit with a correction process. For example, if bit 2 is “1”, it means that brightness correction is performed, and if it is “0”, it means that brightness correction is not performed. As shown in FIG. 4A, a parameter initial value 204 is prepared for each correction. The parameter initial value 204 has six initial values by one correction in principle because the parameters A and B are in RGB colors.

図4(B)は、設定レジスター部20の入出力の1つの具体例を示している。制御信号202が110b、すなわちビット2とビット1が“1”である場合には、明るさ補正とコントラスト補正が選択され、それぞれの補正に対応してパラメーター初期値204が出力される。   FIG. 4B shows one specific example of input / output of the setting register unit 20. When the control signal 202 is 110b, that is, when the bit 2 and the bit 1 are “1”, the brightness correction and the contrast correction are selected, and the parameter initial value 204 is output corresponding to each correction.

なお、図4(A)のカラーバランス補正とは環境光に対する画像の色補正であってもよい。例えば、赤みがかった白熱電球の下で画像の赤を強調するような補正である。このカラーバランス補正では、制御信号202の他に環境光の情報(ホワイトポイント情報)が設定レジスター部20に入力されてもよい(図外)。例えば、D65光源に対する色順応予測として、rgb各色の変換テーブルは数10のようになる。   Note that the color balance correction in FIG. 4A may be color correction of an image with respect to ambient light. For example, a correction that emphasizes red in an image under a reddish incandescent bulb. In this color balance correction, ambient light information (white point information) other than the control signal 202 may be input to the setting register unit 20 (not shown). For example, as a chromatic adaptation prediction for the D65 light source, the conversion table for each color of rgb is as shown in Equation 10.

Figure 2012088954
Figure 2012088954

ここで、r、g、bはホワイトポイント(白色点)のxy色度座標の座標をx、yとして数11で表される。 Here, r 0 , g 0 , and b 0 are expressed by Equation 11 with x w and y w being the coordinates of the xy chromaticity coordinates of the white point (white point).

Figure 2012088954
Figure 2012088954

環境光に対するカラーバランス補正では、補正によって平均輝度が低下しないこと、グレースケールでの比率が変化しないことが必要である。まず、式(16)の変換テーブルを反映させるため補正曲線f(x)を数12のように変形する。   In color balance correction with respect to ambient light, it is necessary that the average luminance does not decrease due to the correction, and that the ratio in gray scale does not change. First, the correction curve f (x) is transformed as shown in Equation 12 in order to reflect the conversion table of Expression (16).

Figure 2012088954
Figure 2012088954

なお、式(18)のDは補正曲線f(x)の曲線制御パラメーターである。式(18)のf(x)を用いると、カラーバランス補正は数13のように表すことができる。   Note that D in the equation (18) is a curve control parameter of the correction curve f (x). Using f (x) in Expression (18), the color balance correction can be expressed as in Expression 13.

Figure 2012088954
Figure 2012088954

式(20)〜式(22)では、平均輝度を低下させないために補正曲線f(x)にGを用いた係数を乗じている。また、グレースケールでの比率を変化させないために、RGBで共通のf(x)を用いている。このとき、図4(A)のパラメーター初期値204についてもRGBで共通である。すなわち、(G,D)=(Ar0,Br0)=(Ag0,Bg0)=(Ab0,Bb0)となる。 In equation (20) to (22), the correction curve f (x) in order not to decrease the average brightness is multiplied by a coefficient using a G 0. In order not to change the gray scale ratio, f (x) common to RGB is used. At this time, the initial parameter values 204 in FIG. 4A are also common to RGB. That is, (G 0 , D) = (A r0 , B r0 ) = (A g0 , B g0 ) = (A b0 , B b0 ).

1.4.統計解析部
統計解析部40は、入力画像の画素の画素値200をバッファーに一時的に保持し、保持した画素値について演算処理を行い入力画像の統計情報206を生成する。図4(B)の例では明るさ補正とコントラスト補正が選択されているので、少なくともこれらについての統計情報206がパラメーター生成部30に出力される。
1.4. Statistical Analysis Unit The statistical analysis unit 40 temporarily holds a pixel value 200 of a pixel of the input image in a buffer, performs arithmetic processing on the held pixel value, and generates statistical information 206 of the input image. In the example of FIG. 4B, since brightness correction and contrast correction are selected, at least statistical information 206 regarding these is output to the parameter generation unit 30.

図4(B)の例において、統計解析部40は、例えば明るさ補正に関して、1フレームの入力画像の輝度についてヒストグラムを作成し、最大値および最小値の情報を統計情報206として出力してもよい。また、統計解析部40は、例えばコントラスト補正に関して、1フレームの入力画像の輝度についてヒストグラムを作成し、中間レベルの値に偏っているかなどの分布に関する情報を統計情報206として出力してもよい。   In the example of FIG. 4B, the statistical analysis unit 40 creates a histogram for the luminance of the input image of one frame, for example, regarding brightness correction, and outputs information on the maximum value and the minimum value as the statistical information 206. Good. In addition, for example, regarding the contrast correction, the statistical analysis unit 40 may create a histogram for the luminance of the input image of one frame, and output information on the distribution such as whether it is biased to an intermediate level value as the statistical information 206.

ここで、入力画像の画素の画素値200は、rgb形式でもyuv形式であってもよいが本実施形態ではrgb形式であるとする。rgb形式の場合には888フォーマット(各色8ビット)でも、565フォーマット(Gは6ビット、他は5ビット)でもよいが、本実施形態では、画素値200として各色10ビットで入力されるものとする。なお、別の例として、画素値200はrgb888フォーマットであり、統計解析部40(および補正出力部50)で2ビットの左シフトが行われて10ビットのデータとして扱われてもよい。   Here, the pixel value 200 of the pixel of the input image may be in the rgb format or the yuv format, but is assumed to be in the rgb format in the present embodiment. In the case of the rgb format, the format may be 888 format (8 bits for each color) or 565 format (G is 6 bits, and others are 5 bits). In this embodiment, the pixel value 200 is input with 10 bits for each color. To do. As another example, the pixel value 200 may be in the rgb888 format, and may be treated as 10-bit data by performing a 2-bit left shift in the statistical analysis unit 40 (and the correction output unit 50).

なお、統計解析部40は、1フレームの画像について統計解析を行って統計情報206を出力する。そのため、統計情報206は、次フレーム以降の画像に用いる補正曲線の係数を定めるパラメーターに反映される。しかし、動画像では時間領域での相関が高いために、適切な補正が行われることになる。   The statistical analysis unit 40 performs statistical analysis on the image of one frame and outputs statistical information 206. Therefore, the statistical information 206 is reflected in a parameter that determines the coefficient of the correction curve used for the image after the next frame. However, since the correlation in the time domain is high in the moving image, appropriate correction is performed.

1.5.パラメーター生成部
パラメーター生成部30は、設定レジスター部20からパラメーター初期値204を受け取り、統計情報206に基づいてパラメーター初期値204を修正したパラメーター208を出力する。なお、統計情報206がない最初のフレームについてはパラメーター初期値204をパラメーター208として出力してもよい。
1.5. Parameter Generation Unit The parameter generation unit 30 receives the parameter initial value 204 from the setting register unit 20 and outputs a parameter 208 obtained by correcting the parameter initial value 204 based on the statistical information 206. Note that the parameter initial value 204 may be output as the parameter 208 for the first frame without the statistical information 206.

図4(C)は、図4(B)の例におけるパラメーター生成部30の入出力を示す図である。このとき、パラメーター生成部30は、明るさ補正、コントラスト補正についての統計情報206に基づいて、パラメーター初期値204について修正および合成をおこなって、3次補正曲線を定めるパラメーター(A、B)、(A、B)、(A、B)を出力する。R成分を例にとり説明をする。パラメーター生成部30は、明るさ補正のパラメーター初期値(Ar2、Br2)を統計情報206に基づいて(ArB、BrB)に修正する。例えば、統計情報206で得られた入力画像の最大値が出力可能な最大値1023よりも極端に小さい場合などには初期値Br2から傾きの大きいBrBに修正する。そして、パラメーター生成部30は、コントラスト補正のパラメーター初期値(Ar1、Br1)を統計情報206に基づいて(ArC、BrC)に修正する。そして、コントラスト補正の補正曲線に明るさ補正の変化率を乗じて、コントラスト補正と明るさ補正を合成した補正曲線のパラメーター(A、B)を求め、パラメーター208として出力する。なお、G成分、B成分についても同様である。 FIG. 4C is a diagram illustrating input / output of the parameter generation unit 30 in the example of FIG. At this time, the parameter generation unit 30 corrects and synthesizes the parameter initial value 204 based on the statistical information 206 on brightness correction and contrast correction, and determines the cubic correction curve (A r , B r ). , (A g , B g ), (A b , B b ) are output. An explanation will be given taking the R component as an example. The parameter generation unit 30 corrects the parameter initial value (A r2 , B r2 ) for brightness correction to (A rB , B rB ) based on the statistical information 206. For example, when the maximum value of the input image obtained by the statistical information 206 is extremely smaller than the maximum value 1023 that can be output, the initial value B r2 is corrected to B rB having a large inclination. Then, the parameter generation unit 30 corrects the initial parameter values (A r1 , B r1 ) for contrast correction to (A rC , B rC ) based on the statistical information 206. Then, a correction curve parameter (A r , B r ) obtained by combining contrast correction and brightness correction is obtained by multiplying the contrast correction correction curve by the change rate of brightness correction, and is output as parameter 208. The same applies to the G component and the B component.

図5(A)〜図5(C)は、パラメーター208を決定する方法の例を示す図である。ここでもR成分を例にとり説明するが、G、B成分についても同様である。図5(A)は、統計情報206に基づいて修正された明るさ補正の補正曲線f(x)を示す。入力と出力は正規化していない10ビットの数値である。補正曲線f(x)を定めるパラメーターArBとBrBは、それぞれ入力の最小値と最大値におけるf(x)の傾きに等しい。ここで、補正曲線f(x)の変化率は、f(x)/xであり、この変化率をコントラスト補正の補正曲線に乗じることで、コントラスト補正と明るさ補正を合成することができる。 FIG. 5A to FIG. 5C are diagrams illustrating an example of a method for determining the parameter 208. Here, the R component will be described as an example, but the same applies to the G and B components. FIG. 5A shows a correction curve f B (x) for brightness correction corrected based on the statistical information 206. Input and output are 10-bit numerical values that are not normalized. Parameters A rB and B rB that define the correction curve f B (x) are equal to the slope of f B (x) at the minimum and maximum values, respectively. Here, the rate of change of the correction curve f B (x) is f B (x) / x. By multiplying the rate of change by the correction curve for contrast correction, contrast correction and brightness correction can be combined. it can.

図5(B)は、統計情報206に基づいて修正されたコントラスト補正の補正曲線f(x)を示す。入力と出力は正規化していない10ビットの数値である。補正曲線f(x)を定めるパラメーターArCとBrCは、それぞれ入力の最小値と最大値におけるf(x)の傾きに等しい。ここで、補正曲線f(x)と点線で示される直線(出力=入力)との交点を求める。この交点における入力の値xをxとする。この例では、x=512であり、f(x)=xが成り立つ。 FIG. 5B shows a correction curve f C (x) for contrast correction corrected based on the statistical information 206. Input and output are 10-bit numerical values that are not normalized. Parameters A rC and B rC defining the correction curve f C (x) are equal to the slope of f C (x) at the minimum and maximum values, respectively. Here, the intersection of the correction curve f C (x) and the straight line (output = input) indicated by the dotted line is obtained. Let x s be the input value x at this intersection. In this example, x s = 512, and f C (x s ) = x s holds.

図5(C)は、補正曲線f(x)に補正曲線f(x)の変化率を乗じて求められた、コントラスト補正と明るさ補正を合成した補正曲線f(x)を表す。最初、補正曲線f(x)は補正曲線f(x)と同じ曲線でありf(x)=xが成り立っている。次に、f(x)=f(x)となるようにパラメーターA、Bを調整する。その結果、得られる補正曲線f(x)は補正曲線f(x)に補正曲線f(x)の変化率を乗じた曲線であり、パラメーター生成部30は、このときのパラメーターA、Bをパラメーター208として出力する。 FIG. 5C shows a correction curve f (x) obtained by multiplying the correction curve f C (x) by the rate of change of the correction curve f B (x) and combining contrast correction and brightness correction. First, the correction curve f (x) is the same curve as the correction curve f C (x), and f (x s ) = x s is established. Next, the parameters A r and B r are adjusted so that f (x s ) = f B (x s ). As a result, the obtained correction curve f (x) is a curve obtained by multiplying the correction curve f C (x) by the rate of change of the correction curve f B (x), and the parameter generation unit 30 uses the parameter A r , and it outputs the B r as a parameter 208.

1.6.補正出力部
補正出力部50は、パラメーター208を受け取って補正曲線を決定する。先の例ではコントラスト補正と明るさ補正を合成した補正曲線が定められる。そして、補正曲線で表される積和演算を行い、入力画像の画素の画素値200を補正して出力画素値210を出力する。
1.6. Correction Output Unit The correction output unit 50 receives the parameter 208 and determines a correction curve. In the previous example, a correction curve obtained by combining contrast correction and brightness correction is determined. Then, the product-sum operation represented by the correction curve is performed, the pixel value 200 of the pixel of the input image is corrected, and the output pixel value 210 is output.

この例では補正曲線は3次式であるため、3つの積和演算器で演算が可能である。このとき、1つの積和演算器から出力された結果は直ちに他の積和演算器に入力されるため、補正曲線に従う積和演算を高速に行うことが可能になる。しかし、本実施形態では回路規模を小さくするために、1つの積和演算器で補正曲線に従う積和演算を行う。   In this example, since the correction curve is a cubic equation, it can be calculated by three product-sum calculators. At this time, the result output from one product-sum operation unit is immediately input to the other product-sum operation unit, so that product-sum operation according to the correction curve can be performed at high speed. However, in this embodiment, in order to reduce the circuit scale, the product-sum operation according to the correction curve is performed by one product-sum operation unit.

図6(A)は本実施形態の補正出力部50の構成例を表す。補正出力部50は、1つの積和演算器32、パラメーター(A、B)から補正曲線の係数を求める係数演算部38、マルチプレクサー37、34の選択信号238、239を生成するのに用いられるカウンター39、レジスター35、36等を含む。ここで、パラメーター(A、B)はrgbの各色のパラメーター(A、B)、(A、B)、(A、B)を含むものとする。この例ではrgbの各色が同時に補正されるとして説明するが、別の例では色毎に補正出力部50が用意されていてもよいし、時分割で色毎に処理が行われてもよい。 FIG. 6A shows a configuration example of the correction output unit 50 of the present embodiment. The correction output unit 50 is used to generate one product-sum calculator 32, a coefficient calculation unit 38 for obtaining a coefficient of the correction curve from the parameters (A, B), and selection signals 238, 239 of the multiplexers 37, 34. It includes a counter 39, registers 35, 36 and the like. Here, the parameters (A, B) include parameters (A r , B r ), (A g , B g ), and (A b , B b ) for each color of rgb. In this example, it is described that each color of rgb is corrected at the same time. However, in another example, a correction output unit 50 may be prepared for each color, or processing may be performed for each color by time division.

本実施形態では画像データは走査方式で入力され、入力画像の画素の画素値200はシステムクロックに同期して順次変化する。補正出力部50には、1つの積和演算器32で補正曲線に従う積和演算を行うために、システムクロックの3倍のクロック(以下、積和演算クロック)が供給されているものとする。なお、N次式の補正曲線に従う場合にはN倍のクロックが供給される必要がある。   In this embodiment, image data is input by a scanning method, and the pixel value 200 of the pixel of the input image changes sequentially in synchronization with the system clock. It is assumed that a clock that is three times the system clock (hereinafter referred to as a product-sum operation clock) is supplied to the correction output unit 50 so that one product-sum operation unit 32 performs product-sum operation according to the correction curve. It should be noted that N times the clock needs to be supplied when following an Nth order correction curve.

ここで、補正曲線を表す式(1)を補正出力部50での処理に従い変形すると数14のようになる。   Here, when the equation (1) representing the correction curve is transformed according to the processing in the correction output unit 50, the following equation 14 is obtained.

Figure 2012088954
Figure 2012088954

ここで、式(23)のxは正規化された画素値200に対応し、積和演算器32はKx+L(=N)、Nx+Mを中間値として求めてから式(23)全体を計算する。なお、K、L、Mは式(24)〜式(26)の通りである。また、図6(B)の演算値230の値に含まれるN(i=0、1、…)は数15で表される。 Here, x in the equation (23) corresponds to the normalized pixel value 200, and the product-sum calculator 32 calculates Kx + L (= N) and Nx + M as intermediate values, and then calculates the entire equation (23). K, L, and M are as in Expression (24) to Expression (26). Further, N i (i = 0, 1,...) Included in the value of the calculated value 230 in FIG.

Figure 2012088954
Figure 2012088954

図6(B)は図6(A)の補正出力部50の波形図の例である。画素値200がxの場合、補正された画素値f(x)は積和演算クロックで3サイクル後に出力画素値210として出力される(t3)。係数演算部38は、第1の係数232として式(24)のKを出力し(t0〜t3)、第2の係数236としてL、Mを出力する(t0〜t1、t1〜t2)。なお、加算が行われない場合には第2の係数236はゼロになる(t2〜t3)。 FIG. 6B is an example of a waveform diagram of the correction output unit 50 of FIG. If the pixel value 200 is x 0, corrected pixel values f (x 0) is output as the output pixel value 210 after three cycles multiply-accumulate clock (t3). The coefficient calculation unit 38 outputs K in Expression (24) as the first coefficient 232 (t0 to t3), and outputs L and M as the second coefficient 236 (t0 to t1, t1 to t2). If the addition is not performed, the second coefficient 236 becomes zero (t2 to t3).

カウンター39は積和演算クロックの3サイクルをカウントする(t0〜t3)。積和演算器32の被乗数234は、カウント値237が0のときは第1の係数232であり、その他の場合にはレジスター36に保持された積和演算器32の出力である。つまり、選択信号238はカウント値237が0の場合にのみ第1の係数232を選択する。例えば、被乗数234は、t1〜t2において積和演算器32から出力された中間値Kx+L(=N)を与える。 The counter 39 counts three cycles of the product-sum operation clock (t0 to t3). The multiplicand 234 of the product-sum calculator 32 is the first coefficient 232 when the count value 237 is 0, and is the output of the product-sum calculator 32 held in the register 36 in other cases. That is, the selection signal 238 selects the first coefficient 232 only when the count value 237 is zero. For example, the multiplicand 234 gives the intermediate value Kx 0 + L (= N 0 ) output from the product-sum calculator 32 from t1 to t2.

積和演算器32は、画素値200がxの場合、中間値を出力(t0〜t2)した後に補正された画素値f(x)を出力する(t2〜t3)。選択信号239はカウント値237が2の場合にのみ、演算値230をレジスター35の入力として選択する。その他の場合にはレジスター35はそれまでの値を保持する。これにより、出力画素値210は積和演算クロックで3サイクルの間、補正された画素値を保持する(t3)。 MAC unit 32, the pixel value 200 is the case of x 0, and outputs the output of the intermediate value (t0 to t2) was later corrected pixel value f (x 0) (t2~t3) . The selection signal 239 selects the operation value 230 as the input of the register 35 only when the count value 237 is 2. In other cases, the register 35 holds the previous value. As a result, the output pixel value 210 holds the corrected pixel value for 3 cycles by the product-sum operation clock (t3).

このように、本実施形態の画像処理装置10は、直接的なCPUによる処理を要することなく、複数のダイナミック補正を同時に小さな回路規模で実行することができる。   As described above, the image processing apparatus 10 according to the present embodiment can execute a plurality of dynamic corrections simultaneously with a small circuit scale without requiring direct CPU processing.

2.第2実施形態
本発明の第2実施形態について図7〜図8を参照して説明する。なお、図7〜図8では、図1〜図6と同じ要素には同じ番号を付しており説明を省略する。
2.1.第2実施形態の補正出力部
図7は、第2実施形態の補正出力部50Aの構成を示す図である。第1実施形態と異なり、補正出力部50Aは2つのルックアップテーブル(LUT−A80、LUT−B82)を含む。ルックアップテーブルは例えばテーブルメモリーにテーブル値を保持し、入力されたデータ(ここでは画素値)をテーブル値に従って変換して出力する。積和演算を行わなくても変換後の値を瞬時に得られるために演算時間短縮等の目的で用いられる。本実施形態では、例えば表示パネルの個体差の補正を目的とするスタティック補正用のルックアップテーブルが存在する場合に、ダイナミック補正も同時に実行することができる。なお、設定レジスター部20、パラメーター生成部30、統計解析部40は第1実施形態と同じである。
2. Second Embodiment A second embodiment of the present invention will be described with reference to FIGS. 7 to 8, the same elements as those in FIGS. 1 to 6 are denoted by the same reference numerals, and the description thereof is omitted.
2.1. Correction Output Unit of Second Embodiment FIG. 7 is a diagram illustrating a configuration of a correction output unit 50A of the second embodiment. Unlike the first embodiment, the correction output unit 50A includes two lookup tables (LUT-A80, LUT-B82). The look-up table holds table values in, for example, a table memory, converts input data (here pixel values) according to the table values, and outputs the converted data. Since the converted value can be obtained instantaneously without performing the product-sum operation, it is used for the purpose of shortening the operation time. In the present embodiment, for example, when there is a static correction look-up table for the purpose of correcting individual differences of display panels, dynamic correction can be performed simultaneously. The setting register unit 20, the parameter generation unit 30, and the statistical analysis unit 40 are the same as those in the first embodiment.

図7のLUT−A80は保存用のルックアップテーブルであり、スタティック補正用のテーブルを保持する。一方、LUT−B82はそのテーブル値を書き換えるために用意されており、パラメーター生成部30で生成されるパラメーターによって決定する補正曲線に従うダイナミック補正が反映される。つまり、補正出力部50Aは、LUT−B82のテーブル値を補正前テーブル値242として読み込み、ダイナミック補正を行って、補正後テーブル値240としてLUT−B82に書き込む処理を行う。入力画像の画素の画素値200はLUT−B82のテーブル値によって変換されて出力画素値210として出力される。なお、テーブル値の更新処理は垂直ブランキング期間に行われるので、入力画像の変換処理と衝突することはない。図7の例では、垂直ブランキング期間に対応する選択信号241を用いたマルチプレクサー54で両処理の衝突を防止している。   The LUT-A 80 in FIG. 7 is a storage lookup table, and holds a table for static correction. On the other hand, the LUT-B 82 is prepared for rewriting the table value, and the dynamic correction according to the correction curve determined by the parameter generated by the parameter generation unit 30 is reflected. That is, the correction output unit 50A reads the table value of the LUT-B 82 as the pre-correction table value 242, performs dynamic correction, and writes the post-correction table value 240 into the LUT-B 82. The pixel value 200 of the pixel of the input image is converted by the table value of LUT-B82 and output as the output pixel value 210. Since the table value update process is performed during the vertical blanking period, there is no conflict with the input image conversion process. In the example of FIG. 7, the multiplexer 54 using the selection signal 241 corresponding to the vertical blanking period prevents a collision between both processes.

LUT−B82のテーブル値は図7の点線が示すようにLUT−A80のテーブル値をロードできる。補正出力部50Aは、LUT−B82がスタティック補正用のテーブルをLUT−A80からロードした後に、LUT−B82のテーブル値にダイナミック補正を反映させる。このとき、スタティック補正を行うテーブル値に更にダイナミック補正が施されているので、画素値200にはスタティック補正とダイナミック補正が同時に行われることになる。   The table value of LUT-A 82 can be loaded with the table value of LUT-A 80 as indicated by the dotted line in FIG. After the LUT-B 82 loads the static correction table from the LUT-A 80, the correction output unit 50A reflects the dynamic correction in the table value of the LUT-B 82. At this time, since the dynamic correction is further applied to the table value for performing the static correction, the static correction and the dynamic correction are simultaneously performed on the pixel value 200.

なお、初期のテーブル値を与える目的で、又はテーブル値の修正のためにCPUが直接LUT−A80、LUT−B82にアクセスしてもよい。しかし、本実施形態では画像処理装置10は初期のテーブル値を保持するROM(図外)を含み、画像処理装置10の起動時等にROMからLUT−A80、LUT−B82に初期のテーブル値がロードされるものとする。   Note that the CPU may directly access the LUT-A 80 and the LUT-B 82 for the purpose of giving an initial table value or for correcting the table value. However, in this embodiment, the image processing apparatus 10 includes a ROM (not shown) that stores initial table values, and the initial table values are stored in the LUT-A 80 and LUT-B 82 from the ROM when the image processing apparatus 10 is started up. Shall be loaded.

また、ダイナミック補正におけるパラメーターA、Bの決定の仕方は図5(A)〜図5(C)での手順と同じである。例えば、図5(A)の補正曲線f(x)がダイナミック補正の1つではなく、スタティック補正のテーブル値を反映した曲線であると考えて、図5(B)〜図5(C)と同じ手法によりパラメーターA、Bを求めればよい。 The method for determining the parameters A and B in the dynamic correction is the same as the procedure in FIGS. 5 (A) to 5 (C). For example, assuming that the correction curve f B (x) in FIG. 5A is not one of the dynamic corrections but a curve reflecting the table value of static correction, FIGS. 5B to 5C. The parameters A and B may be obtained by the same method as in FIG.

2.2.第2実施形態の処理のフローチャート
図8は、第2実施形態の画像処理装置の処理例を示すフローチャートである。まず、ROMに格納されているスタティック補正のテーブル値をLUT−A80とLUT−B82の両方にロードする(S2)。LUT−B82のテーブル値によって、画素値200が変換されて出力画素値210として出力され、画像が表示され始める(S4)。そして、CPUは制御信号202によりダイナミック補正の種類を指定する(S6)。そして、統計解析部40による1フレームの画像の統計解析が行われる(S8)。パラメーター生成部30は、統計情報206に基づいてダイナミック補正のパラメーターA、Bを更新する(S10)。動画像の垂直ブランキング期間にLUT−A80のテーブル値がLUT−B82にロードされる(S12)。補正出力部50はLUT−B82のテーブル値をダイナミック補正の補正曲線に従って更新してLUT−B82に書き戻す(S14)。そして、次のフレームの画像からは更新されたテーブル値による変換が行われることになる。動画の表示の終了する場合(S18Y)には処理を終了し、そうでなければS4に戻って一連の処理が繰り返される。なお、テーブル値のロード(S12)だけでなく、テーブル値の更新(S14)も垂直ブランキング期間に行う必要がある。統計情報206を取得したフレームの直後のフレームから更新したテーブル値で補正を行うことを可能にするためである。
2.2. Process Flowchart of Second Embodiment FIG. 8 is a flowchart illustrating a process example of the image processing apparatus of the second embodiment. First, the static correction table values stored in the ROM are loaded into both the LUT-A 80 and the LUT-B 82 (S2). The pixel value 200 is converted by the table value of the LUT-B 82 and output as the output pixel value 210, and the image starts to be displayed (S4). Then, the CPU designates the type of dynamic correction by the control signal 202 (S6). Then, statistical analysis of the image of one frame is performed by the statistical analysis unit 40 (S8). The parameter generation unit 30 updates the dynamic correction parameters A and B based on the statistical information 206 (S10). During the vertical blanking period of the moving image, the table value of LUT-A80 is loaded into LUT-B82 (S12). The correction output unit 50 updates the table value of the LUT-B 82 according to the dynamic correction correction curve and writes it back to the LUT-B 82 (S14). Then, conversion with the updated table value is performed from the image of the next frame. When the display of the moving image ends (S18Y), the process ends. Otherwise, the process returns to S4 and the series of processes is repeated. In addition to loading the table value (S12), it is necessary to update the table value (S14) during the vertical blanking period. This is because correction can be performed with the table value updated from the frame immediately after the frame from which the statistical information 206 is acquired.

これらの例示に限らず、本発明は、実施の形態で説明した構成と実質的に同一の構成(例えば、機能、方法および結果が同一の構成、あるいは目的および効果が同一の構成)を含む。また、本発明は、実施の形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施の形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施の形態で説明した構成に公知技術を付加した構成を含む。   The present invention is not limited to these exemplifications, and includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same functions, methods, and results, or configurations that have the same objects and effects). In addition, the invention includes a configuration in which a non-essential part of the configuration described in the embodiment is replaced. In addition, the present invention includes a configuration that exhibits the same operational effects as the configuration described in the embodiment or a configuration that can achieve the same object. Further, the invention includes a configuration in which a known technique is added to the configuration described in the embodiment.

10…画像処理装置、20…設定レジスター部、30…パラメーター生成部、32…積和演算器、34、54…マルチプレクサー、35…レジスター、36…レジスター、37…マルチプレクサー、38…係数演算部、39…カウンター、40…統計解析部、50…補正出力部、50A…補正出力部、80…ルックアップテーブル(LUT−A)、82…ルックアップテーブル(LUT−B)、200…画素値、202…制御信号、204…パラメーター初期値、206…統計情報、208…パラメーター、210…出力画素値、220A、220B、220C、220D、220E、220F、222、222R、222G、222B…補正曲線、230…演算値、232…第1の係数、234…被乗数、236…第2の係数、237…カウント値、238、239、241…選択信号、240…補正後テーブル値、242…補正前テーブル値 DESCRIPTION OF SYMBOLS 10 ... Image processing apparatus, 20 ... Setting register part, 30 ... Parameter production | generation part, 32 ... Product-sum operation unit, 34, 54 ... Multiplexer, 35 ... Register, 36 ... Register, 37 ... Multiplexer, 38 ... Coefficient calculation part 39 ... Counter, 40 ... Statistical analysis unit, 50 ... Correction output unit, 50A ... Correction output unit, 80 ... Look-up table (LUT-A), 82 ... Look-up table (LUT-B), 200 ... Pixel value, 202 ... control signal, 204 ... parameter initial value, 206 ... statistical information, 208 ... parameter, 210 ... output pixel value, 220A, 220B, 220C, 220D, 220E, 220F, 222, 222R, 222G, 222B ... correction curve, 230 ... calculated value, 232 ... first coefficient, 234 ... multiplicand, 236 ... second coefficient, 237 ... Cement value, 238,239,241 ... selection signal, 240 ... corrected table value, 242 ... the pre-correction table value

Claims (8)

補正曲線を用いて入力画像の補正を行う画像処理装置であって、
前記補正曲線の係数を定めるパラメーターの初期値を出力する設定レジスター部と、
前記入力画像の画像データを統計的に解析する統計解析部と、
前記パラメーターの初期値を、前記統計解析部からの統計情報に基づいて変更するパラメーター生成部と、
前記パラメーター生成部で変更されたパラメーターに基づいて前記補正曲線の係数を定め、前記入力画像の各画素の画素値を前記補正曲線に基づいて補正して出力する補正出力部と、を含み、
前記補正曲線は3次以上の関数であって、前記パラメーターは前記補正曲線の次数よりも少ない画像処理装置。
An image processing apparatus that corrects an input image using a correction curve,
A setting register unit for outputting an initial value of a parameter for determining a coefficient of the correction curve;
A statistical analysis unit that statistically analyzes the image data of the input image;
A parameter generation unit that changes an initial value of the parameter based on statistical information from the statistical analysis unit;
A correction output unit that determines a coefficient of the correction curve based on the parameter changed by the parameter generation unit, corrects and outputs a pixel value of each pixel of the input image based on the correction curve, and
The image processing apparatus, wherein the correction curve is a function of third order or higher and the parameter is less than the order of the correction curve.
請求項1に記載の画像処理装置において、
前記パラメーターは、前記補正曲線の所定の値における接線の傾きである画像処理装置。
The image processing apparatus according to claim 1.
The image processing apparatus, wherein the parameter is an inclination of a tangent line at a predetermined value of the correction curve.
請求項1乃至2のいずれかに記載の画像処理装置において、
前記補正曲線は3次関数である画像処理装置。
The image processing apparatus according to claim 1,
The image processing apparatus, wherein the correction curve is a cubic function.
請求項3に記載の画像処理装置において、
前記パラメーターは、前記補正曲線の最小の入力値と最大の入力値における接線の傾きで与えられる画像処理装置。
The image processing apparatus according to claim 3.
The image processing apparatus, wherein the parameter is given by the minimum input value and the slope of the tangent line at the maximum input value of the correction curve.
請求項1乃至4のいずれかに記載の画像処理装置において、
前記補正出力部は、
前記入力画像の補正に用いるルックアップテーブルを有し、
前記ルックアップテーブルの各テーブル値を前記補正曲線に基づいて更新し、更新された前記ルックアップテーブルを用いて前記入力画像の各画素の画素値を補正する画像処理装置。
The image processing apparatus according to claim 1,
The correction output unit
A lookup table used for correcting the input image;
An image processing apparatus that updates each table value of the lookup table based on the correction curve, and corrects the pixel value of each pixel of the input image using the updated lookup table.
請求項5に記載の画像処理装置において、
前記入力画像は動画の1フレーム分の画像であって、
前記補正出力部は、
垂直ブランキング期間に前記ルックアップテーブルの各テーブル値を前記補正曲線に基づいて更新する画像処理装置。
The image processing apparatus according to claim 5.
The input image is an image for one frame of a moving image,
The correction output unit
An image processing apparatus for updating each table value of the lookup table based on the correction curve during a vertical blanking period.
請求項1乃至6のいずれかに記載の画像処理装置において、
前記補正出力部は、
1つの積和演算器を含み、
前記積和演算器を用いて前記入力画像の各画素の画素値を前記補正曲線に基づいて補正する画像処理装置。
The image processing apparatus according to any one of claims 1 to 6,
The correction output unit
Including one product-sum calculator,
An image processing apparatus that corrects a pixel value of each pixel of the input image based on the correction curve using the product-sum calculator.
請求項1乃至7のいずれかに記載の画像処理装置において、
前記設定レジスター部は、
前記補正の種類に応じて出力される複数のパラメーターの初期値を含む画像処理装置。
The image processing apparatus according to claim 1,
The setting register section is
An image processing apparatus including initial values of a plurality of parameters output according to the type of correction.
JP2010235381A 2010-10-20 2010-10-20 Image processing device Withdrawn JP2012088954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010235381A JP2012088954A (en) 2010-10-20 2010-10-20 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010235381A JP2012088954A (en) 2010-10-20 2010-10-20 Image processing device

Publications (1)

Publication Number Publication Date
JP2012088954A true JP2012088954A (en) 2012-05-10

Family

ID=46260505

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010235381A Withdrawn JP2012088954A (en) 2010-10-20 2010-10-20 Image processing device

Country Status (1)

Country Link
JP (1) JP2012088954A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017129726A (en) * 2016-01-20 2017-07-27 セイコーエプソン株式会社 Projector and control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017129726A (en) * 2016-01-20 2017-07-27 セイコーエプソン株式会社 Projector and control method
CN106990656A (en) * 2016-01-20 2017-07-28 精工爱普生株式会社 Projector and control method
CN106990656B (en) * 2016-01-20 2021-02-26 精工爱普生株式会社 Projector and control method

Similar Documents

Publication Publication Date Title
JP5963933B2 (en) Signal conversion apparatus and method, program, and recording medium
KR101138852B1 (en) Smart clipper for mobile displays
JP5966658B2 (en) Display device, image processing device, and display method
JP7068905B2 (en) Gradation correction data creation device, gradation correction device, electronic device and gradation correction data creation method
JP5875423B2 (en) Image processing apparatus and image processing method
JP5079017B2 (en) Display device
JP4379399B2 (en) Gamma curve generation method and apparatus
JP2008107507A (en) Video data converter and video display apparatus
US8013875B2 (en) Color signal adjustment module in image display apparatus
JP2006145577A (en) Color conversion matrix generating apparatus, color conversion matrix generating program, and image display device
JP2009253646A (en) Image processing apparatus, image processing method
JP6425264B2 (en) Color conversion data generation device, color conversion data generation method, and display device
US7755640B2 (en) Gamma image correction method and device
JP2012088954A (en) Image processing device
JP2017211601A (en) Chromatic adjustment circuit, display driver, and display device
JP2005260405A (en) Image processor and image processing method
JP6698462B2 (en) Color correction device, display device, and color correction method
US20110050739A1 (en) Image processor and image processing method
JP6602414B2 (en) Apparatus, method, and program
JP2004343560A (en) Image processing method, image processor, and liquid crystal display device using them
JP2003299118A (en) Image quality correction circuit for display
JP2017125875A (en) Image display device and control method thereof
JP7324151B2 (en) Display device
JP2005266576A (en) Image processor and image processing method
JP2012090233A (en) Image processing device, electronic device, and image processing method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140107