WO2007003086A1 - Method for gamma character equivalent model and parameter determination and gamma correction - Google Patents

Method for gamma character equivalent model and parameter determination and gamma correction Download PDF

Info

Publication number
WO2007003086A1
WO2007003086A1 PCT/CN2006/000710 CN2006000710W WO2007003086A1 WO 2007003086 A1 WO2007003086 A1 WO 2007003086A1 CN 2006000710 W CN2006000710 W CN 2006000710W WO 2007003086 A1 WO2007003086 A1 WO 2007003086A1
Authority
WO
WIPO (PCT)
Prior art keywords
model
equivalent model
link
gamma
correction
Prior art date
Application number
PCT/CN2006/000710
Other languages
French (fr)
Chinese (zh)
Inventor
Zhong Luo
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007003086A1 publication Critical patent/WO2007003086A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/20Circuitry for controlling amplitude response
    • H04N5/202Gamma control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/82Camera processing pipelines; Components thereof for controlling camera response irrespective of the scene brightness, e.g. gamma correction

Definitions

  • the invention relates to the field of multimedia information technology, in particular to a method for determining a gamma characteristic equivalent model and its parameters and a method for correcting gamma characteristics in a multimedia signal transmission and processing link.
  • NTN Next Generation Network
  • a terminal In a multimedia information system terminal (hereinafter referred to as a terminal), an optical signal of an external scene enters a camera or a camera, and then undergoes analog to digital conversion (A/D conversion) into a digital image signal, and then the following entry and B appear.
  • A/D conversion analog to digital conversion
  • Case A mainly involves local terminal systems, such as PCs, personal digital assistants (PDAs) or mobile phones with camera functions.
  • the information is mainly processed on the local terminal and does not involve the communication process. It is mainly the case where the video/still image captured by the local camera/camera or the graphics/animation generated by the computer (PC) is displayed on the local screen.
  • PC personal digital assistant
  • the digital image signal is sent directly to the display device for display, which in turn becomes an optical signal that is received and perceived by the human eye.
  • the display device for display which in turn becomes an optical signal that is received and perceived by the human eye.
  • image enhancement for improving the image effect.
  • Case B mainly relates to a multi-terminal-server communication system, communication between a plurality of terminals, or communication between a terminal and a server.
  • Such terminals are, for example, video conferencing, video telephony, high-end (2.5G/3G, 3G) mobile phones with multimedia information (MMS) or video communication functions, PDAs, and the like.
  • MMS multimedia information
  • the digital image signal is compressed by a compression encoder (Encoder), then transmitted to the other terminal through a network (wired, wireless, circuit-switched, packet-switched network, etc.), and compressed by a decoder (Decoder) at the other terminal ( Decompression) Decodes and restores the digital image signal, which is then displayed on the display device, and finally becomes an optical signal that is perceived by the human eye.
  • a compression encoder Encoder
  • Decoder decoder
  • Decompression Decodes and restores the digital image signal, which is then displayed on the display device, and finally becomes an optical signal that is perceived by the human eye.
  • FIG 1 is a schematic diagram of the model of the link Gamma.
  • the image brightness signal (Luminance) has gone through multiple steps.
  • the luminance signal refers to a generalized luminance signal
  • the optical signal, the electrical signal, and the digitized image luminance/gray signal all contain information of the luminance signal. Therefore, in a broad sense, the luminance signal passes through a plurality of links.
  • the Gamma characteristic refers to the brightness of one or more links.
  • the input-output relationship is not a linear relationship, but a nonlinear relationship.
  • the curve in Figure 2 gives an example of a typical Gamma characteristic.
  • the abscissa in Figure 2 is the normalized input luminance information
  • the ordinate is the normalized output luminance information.
  • Fig. 3 The influence of the link Gamma nonlinear distortion is shown in Fig. 3.
  • Fig. 3 the brightness of the upper row of gray squares is linearly increased from 0.1 to 1.0, and the brightness of the next row of gray squares is nonlinearly distorted by the link Gamma.
  • the law of power function Take the law of power function as an example.
  • L. Ut is the output luminance signal
  • L in is the input luminance signal
  • equation (1) is a power function. It should be noted that the input and output luminance signals here are normalized in their respective coordinate spaces, that is, 0 ⁇ L. ut ⁇ l, 0 ⁇ L in ⁇ l.
  • FIG. 4 is a schematic diagram of a gamma-characterized model of cascading.
  • the total gamma characteristic is equal to the composition of the Gamma characteristic function of each link, and satisfies the formula (2):
  • Camera/camera Gamma denoted as G Cam (-).
  • General cameras have Gamma characteristics.
  • the Gamma characteristics of the camera are theoretically determined by the Gamma characteristics of the display.
  • the terminal system is increasingly complicated, there are a number of different links between the camera and the display, and the Gamma characteristics of each link are unknown, so that even if the Gamma characteristics of the camera and the display are able to compensate each other, because of the existence of the intermediate link, This compensation is usually invalid.
  • displays such as CRT, liquid crystal, and plasma.
  • the Gamma characteristics are quite different, and the Gamma characteristics of ordinary cameras often deviate significantly from the ideal Gamma characteristics described above, so the camera/camera always has Gamma characteristics.
  • the file may come from the camera. Because it has been processed, compressed and encoded, it also carries the Gamma feature.
  • the indicator frame is stored as Gamma, denoted as G FBuf (.). Some monitors because of the display storage The color depth is not enough. For example, it can only support 4-bit, 8-bit or 16-bit color depth instead of the ideal 24-bit true color. It is equivalent to compressing the dynamic range of the input luminance signal during display, so the Gamma feature is also introduced. In addition, the Gamma feature is also introduced in the palette (Palette) color mapping technology or the Dither technology used in the non-true color mode.
  • G Disp (.)
  • a typical display has a strong gamma nonlinearity.
  • Case B several examples are given in Figure 6, such as local video/image represented by L1, self-loop video/image represented by L2, and far-end video/image represented by L3.
  • the multiple Gamma links involved in Case B are:
  • the encoder Gamma is denoted as G Enc (.), which is mainly due to the discrete cosine transform (DCT transform) in compression and the Gamma characteristic caused by quantization;
  • the decoder gamma denoted as G Dee (.), is mainly due to the gamma characteristic caused by inverse DCT and inverse quantization in decompression.
  • Gamma Correction must be performed on a link with Gamma characteristics.
  • the gamma characteristic is given, then another correction link can be used to cascade it, so that the total gamma characteristic after the cascading becomes a true linear relationship, thereby achieving Compensate for the non-linearity of the Gamma link.
  • the model of the correction link is the inverse model of the Gamma characteristic equivalent model. If the equivalent model can be expressed by a function relation, the function relation of the inverse model is its inverse function, namely G g (.) and G c (. ) Mutual inverse function. In general, the inverse function of a function does not necessarily have a solution. Even if there is a solution, it is generally difficult to obtain it by calculation.
  • Prior Art One It relies entirely on the camera/camera or the Gamma characteristic of the display LUT to correct the Gamma characteristics of the display.
  • G Cam (.) is L. L in 0 - 45
  • the above techniques have the following disadvantages: It is often difficult to obtain an ideal state and cannot be guaranteed.
  • the camera/camera the LUT's Gamma is exactly matched to the monitor Gamma.
  • the display type is more than 4, and the gamma characteristic of the ordinary camera is usually not ideal; if G CAM (.) and GL UT (.) exist at the same time, ⁇ ⁇ ⁇ makes! ⁇ ! ⁇ 45 , that is, the compensation is excessive, but deviates from the linearity; the mathematical model of the simulated gamma characteristic in the prior art 1 is also inaccurate, and the model and parameters of the link Gamma characteristic cannot be accurately determined.
  • Gamma correction is performed by inserting a Gamma characteristic correction link between certain links, for example, after the camera link or before displaying the frame storage link.
  • a more accurate model in the Gamma characteristic equivalent model of the display such as the model shown in equation (3): ,, (3)
  • the camera's Gamma characteristics are considered to exactly match the Gamma characteristics of the display, such as the model shown in equation (4):
  • the present invention proposes a method for determining a gamma equivalent model and its parameters to solve the problem of gamma equivalent model selection and inaccurate model parameters in the prior art, and thus It provides the basis for analyzing and correcting gamma characteristics in signal transmission and processing.
  • Another object of the present invention is to provide a method of correcting gamma characteristics to improve the accuracy of gamma characteristic correction.
  • a further object of the present invention is to make the method suitable for the correction of gamma characteristics of single-link and multi-link simultaneously to solve the problem that the existing correction method cannot be universal.
  • the present invention provides a method of determining a Gamma characteristic equivalent model and its parameters, the Gamma characteristic equivalent model being used for the Gamma characteristic in an equivalent link, the method comprising the steps of:
  • Input N sample values L in (i) of the input signal into the link, and detect N actual output signal values L p generated by the link.
  • Ut (i) where N is an integer greater than or equal to 1, and i is an integer greater than or equal to 0 and less than or equal to N-1;
  • step S6 Determine whether the target function value is equal to or smaller than the threshold, and if yes, adopt the equivalent model to be tested as a final equivalent model, and use a parameter corresponding to the smallest objective function value as the equivalent model
  • step S4 Determine whether the number of executions of the step S4 reaches the maximum number of iterations, and if so, select one of the other unrecognized alternative equivalent models as the equivalent model to be tested, and return to step S3; otherwise, perform step S7;
  • step S1 The N sample values in step S1 are evenly spaced or unevenly spaced.
  • step S5 after the adopting the equivalent model to be tested is the final equivalent model, the method further includes: adjusting the parameter and calculating the target function value by using a mathematical optimization method within a preset number of cycles, Get the parameters corresponding to the smallest objective function value.
  • the objective function is F (-(I.
  • the Gamma characteristic is a single-link Gamma characteristic or a multi-step cascaded integrated Gamma characteristic.
  • L out (qL in +(lg)Y , where the domain of the function is the interval [ll/q, l], and the range is the interval [0, 1];
  • the mathematical optimization method is a hill climbing method, a 0.618 method, a steepest descent method or a conjugate gradient method.
  • the sample values of the input signal in step S1 are located in the interval [0, 1].
  • the present invention also provides a gamma characteristic correction method for correcting gamma characteristics of N t links, wherein N t is an integer greater than or equal to 1, the method comprising the following steps:
  • A. determining a correction link insertion point, dividing the N t links into N a links before the insertion point of the correction link and N p links after the insertion point of the correction link, where N a and N p are An integer greater than or equal to 0, and N a +N p N t ;
  • Inverse model correction part configured to model the inverse model of Gamma characteristic of the cascaded C. and the N a segment of N p the Gamma characteristics of the link, using the correction model determines a correction signal segment last output signal of the part of the N a And inputting the correction signal into the Np links.
  • the link the N t Gamma characteristic multimedia information system links the N t Gamma characteristics; the signal is a luminance signal.
  • step A It is determined in step A that the correction link insertion point is located between the imaging device and the display frame memory, or between the imaging device and the encoder or between the decoder and the display frame memory.
  • the equivalent model takes the form of a data table, and the inverse model adopts an inverse table form corresponding to the data table.
  • the equivalent model takes the form of a function
  • the inverse model takes the form of an inverse function corresponding to the function of the equivalent model.
  • step B The steps of determining the equivalent model described in step B include:
  • N sample values L in (i) of the input signal into the link, and detect N actual output signal values L p generated by the link.
  • Ut (i) where N is an integer greater than or equal to 1, and i is an integer greater than or equal to 0 and less than or equal to N-1;
  • step B5. determining whether the value of the objective function is equal to or smaller than the threshold, and if so, Using the equivalent model to be tested as the final equivalent model, and taking the parameter corresponding to the minimum objective function value as the parameter of the equivalent model, the result is the flow; otherwise, step B6 is performed;
  • step B6 It is determined whether the number of executions of step B4 reaches the maximum number of iterations, and if so, one of the other alternative model models that have not been detected is selected as the equivalent model to be tested, and returns to step B3; otherwise, step B7 is performed;
  • the N sample values in step B1 are evenly spaced or unevenly spaced.
  • the method further includes: adjusting the parameter and calculating the target function value by using a mathematical optimization method within a preset number of cycles, Get the parameters corresponding to the smallest objective function value.
  • the step of determining the inverse model corresponding to the equivalent model in step B includes: bringing the parameters of the equivalent model into the corresponding inverse function to obtain a function of the inverse model.
  • step C a direct calculation method, a two-step calculation method or a table look-up method is used to construct a correction link model.
  • step C a look-up table method is used to construct a correction link model, and in the look-up table method: when the input value to be corrected is in the data table used in the look-up table method, the corresponding correction is directly obtained by looking up the table. Value; When the input value to be corrected is not in the data table, a linear interpolation method is used according to other values to be corrected in the data table to calculate a correction value corresponding to the input value to be corrected.
  • the mathematical optimization method is a hill climbing method, a 0.618 method, a steepest descent method or a conjugate gradient method.
  • the sample values of the input signal described in step B1 are located in the interval [0, 1].
  • the invention solves the problem that the selection problem of the gamma characteristic equivalent model which is ubiquitous in the multimedia information system and the parameter inaccurate detection thereof, and also solves the problem that the accuracy of the link gamma characteristic correction is poor, for the single link and the multi-link level
  • the integrated Gamma feature provides a universal correction method that improves the quality of signal transmission and greatly enhances the user experience of multimedia information systems. Since the present invention improves the accuracy of the gamma characteristic correction so that the multimedia information displayed at the receiving end is consistent with the multimedia information input by the transmitting end, the present invention is also advantageous for the widespread use of multimedia information services such as videophones, video conferencing, and the like.
  • BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a general model of the link Gamma characteristics;
  • Figure 2 is a graph of a typical Gamma characteristic
  • Figure 3 is a schematic diagram of luminance signal distortion caused by the link Gamma characteristic
  • Figure 4 is a schematic diagram of a general model of a multi-step cascade of Gamma characteristics
  • Figure 5 is a schematic diagram of a plurality of Gamma links in Case A;
  • Figure 6 is a schematic diagram of a plurality of Gamma links in case B;
  • Figure 7 is a schematic diagram of correcting the Gamma characteristics of a single Gamma link
  • Figure 8 is a schematic diagram of correcting Gamma characteristics of a plurality of Gamma links; 9(a) is a schematic diagram showing the gamma characteristic of the first type of link in the embodiment of the present invention, and FIG. 9(b) is a schematic diagram showing the gamma characteristic of the second type of link in the embodiment of the present invention;
  • Figure 10 is the area on the coordinate plane [0, l] x [0, l];
  • Figure 11 is a schematic diagram showing the insertion point of the correction link in the second embodiment of the present invention
  • Figure 12 is a schematic diagram of the front-back correction using two sub-links in the second embodiment of the present invention. Mode for carrying out the invention
  • gamma characteristic equivalent model is a linear combination of a power function and a constant function, or a combination of a linear function and a power function.
  • the parameters in the actual measurement function relationship are measured. A specific functional relationship can be obtained more accurately.
  • a typical example of the first type of Gamma feature is a CRT display.
  • the first and second equivalent models are inverse functions of each other, so they can compensate each other to obtain linear characteristics. That is: If the Gamma link has the first type of Gamma characteristics, then the correction link has the second type of Gamma characteristics; if the Gamma link has the second type of Gamma characteristics, then the correction link has the first type of Gamma characteristics.
  • the integrated Gamma characteristics from the mathematical one: no longer have a single-link first-class or second-class equivalent model.
  • the mathematical model of the multi-link integrated Gamma characteristic has the following characteristics:
  • the function image is limited to the region [0, 1] ⁇ [0, 1] of the coordinate plane as shown in Fig. 10 (where "X" represents the Cartesian Product of the two sets, or is called the direct product. ) Inside;
  • the function is monotonically increasing
  • the function curve may be convex (the curve is bent to the left, or outward from the origin of the coordinate) or the lower convex (the curve is bent to the lower right, or inward from the origin of the coordinate:);
  • the function curve intersects with the Lin axis or intersects the Lout axis;
  • the integrated Gamma characteristic equivalent model of multiple Gamma link cascades can have the following two types, and the functional relations are respectively formula (7) and formula (8):
  • the first-class equivalent model and the second-class equivalent model of multi-link integrated Gamma characteristics are respectively It is the same as the first-class equivalent model and the second-class equivalent model of the single-link Gamma characteristic.
  • the multi-link first-class integrated Gamma characteristic equivalent model is based on qualitative The analysis result and the empirical value of the actual measurement, the range of the index ⁇ becomes ⁇ >0, and in the multi-link second-class integrated Gamma characteristic equivalent model, the range of the index ⁇ becomes ⁇ >0.
  • the parameters are directly related to whether the functional relationship between the input and output signals in the final Gamma characteristic equivalent model is accurate.
  • the parameters p and oc need to be determined;
  • the parameters q and 0 need to be determined.
  • the method of determining the single link and Gamma characteristics equivalent model parameter comprises the following steps: Step 11, the input luminance signal L in, selects N sample points on the interval [0,1]: L in (0), L in (l), L in (2) to L in (i) to L in (N-2), L in (Nl), , where N is an integer greater than or equal to 1.
  • the N sampling points may be evenly spaced or may be non-uniform, preferably using N sampling points that are evenly spaced.
  • step 12 the N sample values of the luminance signal are respectively input into the link, and the corresponding N actual output luminance signal values are measured: L p . Ut (0), L p . Ut (l), L p . Ut (2)...! /. Ut (i)...! . Ut (N-2), L P out(Nl) compassion
  • Step 13 Select one type of equivalent model from the above two types of equivalent models as the equivalent model to be tested.
  • the first type equivalent model is selected as an example.
  • Step 14 For the first type of equivalent model, select a set of initial parameters, and construct a fitted objective function, set the threshold T of the objective function and the maximum number of iterations. '
  • the objective function and the actually detected output luminance signal are related to the difference between the theoretical output luminance signals determined by the Gamma characteristic equivalent model, and the smaller the difference is, the closer the effect of the model is to the actual situation.
  • equations (10) and (12) correspond to the second type of equivalent model.
  • the following formula (9) formula (10) is taken as an example.
  • step 15 the mathematical optimization method is used to find the most suitable parameter value.
  • some mathematical optimization techniques such as hill climbing method, 0.618 method (Hua Luogeng) The preferred method), the steepest descent method or the conjugate gradient method are used to find the minimum value.
  • This process is actually an iterative process. During this process, the parameters p and a are constantly adjusted, and the function value F is decreasing continuously. When the function value drops to less than After the threshold T is given, it is considered that the minimum point has been found.
  • the corresponding parameters p and ⁇ at this time are taken as the true parameters of the application environment model.
  • the objective function value F may be continuously decreasing, or may be rising or rising directly after falling. Regardless of the change of the objective function value F, it is preferable to select the parameter corresponding to the minimum value as a result, which will be to some extent. Further improve the accuracy of the parameters.
  • the determination of the model type and the determination of the parameters are performed simultaneously.
  • the types of the equivalent models are not limited to the above two types.
  • the most suitable one can be found in all relevant equivalent models.
  • the above method can also be used to determine the multi-link integrated Gamma characteristic equivalent model parameters, the specific steps are as follows:
  • Step 21 the input luminance signal L in, selects N sample points on the interval [0,1]: L in (0), L in (l), L in (2) ... L in (i). ..L in (N-2), L in (Nl), where N is an integer greater than or equal to 1.
  • the N sampling points may be evenly spaced or may be non-uniform, preferably using N sampling points that are evenly spaced.
  • step 22 the N sample values of the luminance signal are respectively input into the link, and the corresponding N actual output luminance signal values .
  • ' L p are measured.
  • Step 23 Select one type of equivalent model from the above two types of equivalent models as the equivalent model to be tested, and take the first type equivalent model as an example.
  • Step 24 For the first type of equivalent model, select a set of initial parameters, and construct a fitted objective function, set the threshold T of the objective function and the maximum number of iterations.
  • the objective function and the actually detected output luminance signal are related to the difference between the theoretical output luminance signals determined by the Gamma characteristic equivalent model, and the smaller the difference is, the closer the effect of the model is to the actual situation.
  • the objective function such as formula (9), formula (10), formula (11), or formula (12).
  • the following equation (9) and formula (10) are still used as examples.
  • step 25 the mathematical optimization method is used to find the most suitable parameter value.
  • the objective function F Tl (p, a) (L p out (/) - P L in (0 - (1 - , using some mathematical optimization techniques, such as hill climbing, 0.618, speed)
  • the descending method or the conjugate gradient method is used to obtain the minimum value.
  • This process is actually an iterative process. During this process, the parameters ⁇ and ⁇ are continuously adjusted, and the function value F is decreasing continuously. When the function value falls below a given threshold After that, I think I have already found At the smallest point.
  • Second Embodiment A method of correcting the Gamma characteristic of any link.
  • the functional relationship of the gamma characteristic equivalent model can be obtained, and the inverse function of the function is used to construct the correction model, which can be used for single or multiple links.
  • the gamma characteristics are corrected.
  • a second embodiment of the invention comprises the following steps:
  • the multimedia information system is usually cascaded by multiple Gamma links.
  • link 1 is the camera/camera
  • link N t (the last one) is the display.
  • a correction link (circuit implementation or software implementation) can be inserted between any two links. Even the correction link can be inserted at the front or the end, but the actual situation may not be the case, for example, in the display frame to store the Gamma link and The correction link cannot be inserted between the LUT Gamma links. Therefore, there may usually be P correction link insertion points. In this embodiment, as long as one of the P correction point insertion points is selected, and the correction step is inserted at the point, all the gamma corrections can be realized.
  • an example of the present invention is to add a correction link between the camera and the display frame.
  • the number of previous links is N a (link 1 to link N a ), and the number of subsequent links is N p (links N a +1 to N t ).
  • N a link 1 to link N a
  • N p links N a +1 to N t
  • 1 ⁇ or 1 ⁇ is equal to zero, it corresponds to inserting the correction link at the front or the end, which is equivalent to treating the system as a multi-link integrated gamma characteristic for correction; when N a or N When p is equal to 1, it is equivalent to separately correcting the camera/camera or display.
  • the cascaded integrated Gamma characteristic of the Na links of the link 1 to the link Na is G a (.)
  • the cascaded integrated Gamma characteristic of the N p links of the link N a +1 to the link N t is G p (.).
  • the model of the correction link can be obtained conveniently and accurately. It should be noted that the method of this embodiment is not limited to the first type and the second type equivalent model described in the first embodiment.
  • the sub-block decomposition method of the present invention is applied if the mathematical form of G a (.) and G p (.) and the inverse form of the inverse function (closed form) are obtained.
  • the present invention may also adopt other forms of models, such as a model in the form of a data table, which is applicable to G a (.), G p (.) itself has no functional form (for example, implemented by a look-up table method, The inverse function obviously has no parsing form.
  • a model in the form of a data table, which is applicable to G a (.), G p (.) itself has no functional form (for example, implemented by a look-up table method, The inverse function obviously has no parsing form.
  • the model itself to exist in the form of a data table then its inverse model is the inverse of the data table.
  • a table has two columns and multiple rows, the left column (input column) is the sampled value of the input signal, that is, the signal value to be corrected, and the right column (output column) is the corresponding output signal value, that is, the corrected signal.
  • the value, the number of rows depends on the number of sampling points, and the more the number of rows, the more accurate the correction result.
  • the inverse table is the new data table obtained by adjusting the left and right columns.
  • the left column of the original table is generally evenly spaced.
  • the interval between two adjacent entries is 0.01, but the right column is generally not evenly spaced, so after the swap, the left column of the inverse table is not evenly spaced.
  • Checking the table may be inconvenient. Therefore, it is necessary to adjust more entries by inserting more points.
  • the entries are made denser, and on the other hand, the left columns are evenly spaced, thereby improving the accuracy of the table.
  • Step 32 Determine, according to the method described in the first embodiment, a first equivalent model G a (.) of an equivalent pre-N a link Gamma characteristic and a first inverse model GM corresponding thereto, and determine an equivalent N p
  • the second equivalent model G p (.) of the Gamma characteristic and the second inverse model G pc (.) corresponding thereto obtain the syndrome section G ac (.) and the syndrome section G pc (.).
  • G a (.) belongs to the synthetic second-class equivalent model:
  • G p (.) belongs to the synthetic second-class equivalent model:
  • Step 33 cascading two syndrome sections to form a correction link, using the correction link to determine a correction signal of the last output signal of the N a links, and inputting the correction signal into the N p links, thereby implementing N t Gamma correction for each link.
  • the correction link G c (.) is obtained by sub-link G ac (.) and sub-link G pc (.) in the order of G ac (.) first and G pc (.).
  • the direct calculation method is to use the composite function G e (.) of G ae (.) and G pc (.) to calculate the correction signal of the last output signal of the N a links.
  • the two-step calculation method is to use G ae (.) to calculate the primary correction signal of the last output signal of the Na links, and then use G pe (.) to calculate the secondary correction signal of the primary correction signal, which will be used twice.
  • a correction signal is used as the correction signal.
  • the structure of the table generally includes two columns and multiple rows, wherein the signal value to be corrected is the left column, and the correction result is correspondingly listed in the right column, and the number of rows depends on the sampled value.
  • the method of looking up the table is to find in the left column of the table according to the signal value to be corrected, and if found, directly use the corresponding right column value as the result of the table lookup; if not, use the linear interpolation calculation to set the correction
  • the signal value is a, which is located between b, c (c>a>b) and two adjacent left list items, and the right list items corresponding to b and c are respectively e, then finally
  • the look-up table method is to calculate a correction value corresponding to a plurality of sample values in the value interval of the last output signal of the N a link according to the direct calculation method or the two-step calculation method, and The correspondence is stored in a data table, and then the correction value of any value to be corrected is determined by querying the data table.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention discloses a method for gamma correction,for correcting gamma character of Nt links. Said invention comprises the steps of: determining the insertion point for correction and dividing the Nt links into Na links which are located before the insertion point and Np links which are located after said point, wherein Na≥0, Np≥0 and Na +Np =Nt ; determining the gamma character equivalent model and the inverse gamma model of said Na links and the gamma character equivalent model and the inverse gamma model of said Np links; configuring the correction link model according to the inverse gamma character model of Na and the inverse gamma character model of Np, determining the correction signal output of the Na links by the correction link model and then inputting the correction signal into the Np links.The invention solves such problem as the inaccurate precise in link gamma character correction and is suitable for the general gamma character correction in single link and multiple links connection.

Description

确定伽玛特性等效模型及参数的方法和伽玛特性校正方法 技术领域  Method for determining gamma characteristic equivalent model and parameters and gamma characteristic correction method
本发明涉及多媒体信息技术领域, 特别涉及多媒体信号传输和处理 环节中确定伽玛特性等效模型及其参数的方法和伽玛特性的校正方法。 发明背景  The invention relates to the field of multimedia information technology, in particular to a method for determining a gamma characteristic equivalent model and its parameters and a method for correcting gamma characteristics in a multimedia signal transmission and processing link. Background of the invention
目前, 随着宽带网络的发展, 视频通信得到了日益广泛的应用, 视 频会议和可视电话业务正在成为下一代网络(NGN )中的基本业务之一。 在视频通信中, 由于各个环节的伽玛 ( Gamma )非线性特性造成的亮度 信号畸变( Distortion )是影响信号传输质量和最终用户体验的重要原因。  At present, with the development of broadband networks, video communication has become more and more widely used, and video conferencing and videophone services are becoming one of the basic services in Next Generation Network (NGN). In video communication, the distortion of the luminance signal due to the gamma nonlinearity of each link is an important factor affecting the signal transmission quality and the end user experience.
在一个多媒体信息系统终端 (以下简称终端) 中, 外界场景的光信 号进入到摄像机或摄像头 , 然后经过模拟到数字转换(A/D转换)成数 字图像信号, 然后会出现下述入、 B两种情况。  In a multimedia information system terminal (hereinafter referred to as a terminal), an optical signal of an external scene enters a camera or a camera, and then undergoes analog to digital conversion (A/D conversion) into a digital image signal, and then the following entry and B appear. Kind of situation.
情况 A主要涉及本地终端系统, 例如 PC、 个人数字助理(PDA ) 或者带有摄像功能的手机等 , 信息主要在本地终端上处理, 不涉及通信 过程。 主要是本地摄像机 /摄像头捕获的视频 /静止图像或者计算机(PC ) 生成的图形 /动画等在本地^示屏上显示的情况。  Case A mainly involves local terminal systems, such as PCs, personal digital assistants (PDAs) or mobile phones with camera functions. The information is mainly processed on the local terminal and does not involve the communication process. It is mainly the case where the video/still image captured by the local camera/camera or the graphics/animation generated by the computer (PC) is displayed on the local screen.
在情况 A下, 数字图像信号被直接送到显示设备上显示, 最终又变 成光信号被人眼接收并感知。 当然, 中间还可能经过一些处理, 例如为 了提升图像效果而做的图像增强等。  In case A, the digital image signal is sent directly to the display device for display, which in turn becomes an optical signal that is received and perceived by the human eye. Of course, there may be some processing in the middle, such as image enhancement for improving the image effect.
情况 B主要涉及多终端-服务器通信系统、 多个终端之间通信或者 终端和服务器之间通信等。 这类终端例如视频会议、 可视电话、 带有多 媒体信息(MMS )或者视频通信功能的高端(2.5G/3G、 3G )手机、 PDA 等。 在情况 B下, 数字图像信号经过压缩编码器(Encoder )压缩, 然后 通过网络(有线、 无线、 电路交换、 分组交换网络等)传送给对方终端, 在对方终端经过解码器(Decoder )去压缩 (Decompression )解码还原 为数字图像信号, 再在显示设备上显示出来, 最终又变成光信号被人眼 感知。 Case B mainly relates to a multi-terminal-server communication system, communication between a plurality of terminals, or communication between a terminal and a server. Such terminals are, for example, video conferencing, video telephony, high-end (2.5G/3G, 3G) mobile phones with multimedia information (MMS) or video communication functions, PDAs, and the like. In case B, the digital image signal is compressed by a compression encoder (Encoder), then transmitted to the other terminal through a network (wired, wireless, circuit-switched, packet-switched network, etc.), and compressed by a decoder (Decoder) at the other terminal ( Decompression) Decodes and restores the digital image signal, which is then displayed on the display device, and finally becomes an optical signal that is perceived by the human eye.
图 1为环节 Gamma特性的模型示意图, 不论是在情况 A还是在情 况 B的过程中, 图像亮度信号(Luminance )都经过了多个环节。 这里 的亮度信号是指广义的亮度信号, 光信号、 电信号以及数字化的图像亮 度 /灰度信号等都含有亮度信号的信息, 因此从广义来说, 亮度信号经过 了多个环节。按照定义, Gamma特性就是指一个或一个以上环节的亮度 信号输入 -输出关系不是线性关系, 而是一种非线性关系。 图 2中的曲 线给出了一个典型的 Gamma特性的示例, 图 2 中的横坐标为归一化 ( Normalized ) 的输入亮度信息, 纵坐标为归一化的输出亮度信息。  Figure 1 is a schematic diagram of the model of the link Gamma. Whether in case A or in case B, the image brightness signal (Luminance) has gone through multiple steps. Here, the luminance signal refers to a generalized luminance signal, and the optical signal, the electrical signal, and the digitized image luminance/gray signal all contain information of the luminance signal. Therefore, in a broad sense, the luminance signal passes through a plurality of links. By definition, the Gamma characteristic refers to the brightness of one or more links. The input-output relationship is not a linear relationship, but a nonlinear relationship. The curve in Figure 2 gives an example of a typical Gamma characteristic. The abscissa in Figure 2 is the normalized input luminance information, and the ordinate is the normalized output luminance information.
环节 Gamma非线性畸变的影响如图 3所示, 图 3中上面一行灰度 方块的亮度是从 0.1到 1.0线性递增的, 而下面一行灰度方块的亮度是 经过环节 Gamma非线性畸变的, 这里以按照幂函数规律递增为例。  The influence of the link Gamma nonlinear distortion is shown in Fig. 3. In Fig. 3, the brightness of the upper row of gray squares is linearly increased from 0.1 to 1.0, and the brightness of the next row of gray squares is nonlinearly distorted by the link Gamma. Take the law of power function as an example.
在实际中, Gamma 非线性是由不同原因引起的, 对于阴极射线管 ( CRT )显示设备, Gamma特性在理想状况下满足公式(1 ): In practice, Gamma nonlinearity is caused by different reasons. For cathode ray tube (CRT) display devices, the Gamma characteristic satisfies the formula (1) under ideal conditions:
Figure imgf000004_0001
Figure imgf000004_0001
其中, L。ut为输出亮度信号, Lin为输入亮度信号, 并且公式(1 )是 一个冪函数。 需要说明的是, 这里的输入和输出亮度信号都是在各自的 坐标空间中进行了归一化的, 即 0≤L。ut≤l, 0≤Lin≤l。 Among them, L. Ut is the output luminance signal, L in is the input luminance signal, and equation (1) is a power function. It should be noted that the input and output luminance signals here are normalized in their respective coordinate spaces, that is, 0 ≤ L. ut ≤l, 0≤L in ≤l.
而对于手机、 PDA等其它类型的显示器, 例如液晶显示器等, 它们 的 Gamma特性函数与公式( 1 )相比, 可能在形式上不同或者是参数不 同。 参照图 4, 图 4为多个环节级联(cascading )起来的 Gamma特性的 模型示意图, 总的 Gamma特性等于各个环节 Gamma特性函数的复合 (composition) , 满足公式 ( 2 ): For other types of displays such as mobile phones and PDAs, such as liquid crystal displays, their Gamma characteristic functions may be different in form or different from the formula (1). Referring to FIG. 4, FIG. 4 is a schematic diagram of a gamma-characterized model of cascading. The total gamma characteristic is equal to the composition of the Gamma characteristic function of each link, and satisfies the formula (2):
GCTQ
Figure imgf000005_0001
G CT Q
Figure imgf000005_0001
.
Lm ,Gcr(L = " ((?("-2) ( ...·.··„ ,腦 L m , G cr (L = " ( (?("- 2 ) ( ...·.··„ , brain
其中, "。 ,,表示函数的复合 ( composition )运算。 下标 CT表示级 联总 ( cascaded total ) Gamma的意思。  Among them, ".," represents the compound operation of the function. The subscript CT indicates the meaning of cascaded total Gamma.
对于情况 A, 涉及的多个 Gamma环节如图 5所示, 主要有: For case A, the multiple Gamma links involved are shown in Figure 5. The main ones are:
1、摄像机 /摄像头 Gamma,表示为 GCam( -)。一般的摄像机都有 Gamma 特性, 除了成像器件例如 CCD 自身的非线性, 摄像机也引入了人为的 非线性, 其目的是让摄像机的 Gamma特性刚好补偿显示器的 Gamma 特性, 使得总的输入-输出特性是线性的。 如果显示器理想的 Gamma 是 L。ui= Lin 2'2 , 那么摄像机理想的 Gamma是 L。u尸 Lin 451. Camera/camera Gamma, denoted as G Cam (-). General cameras have Gamma characteristics. In addition to the nonlinearity of imaging devices such as the CCD itself, the camera also introduces artificial nonlinearity. The purpose is to make the camera's Gamma characteristics just compensate for the Gamma characteristics of the display, so that the total input-output characteristics are Linear. If the display's ideal Gamma is L. Ui = L in 2 ' 2 , then the camera's ideal Gamma is L. u corpse L in 45 .
因此,摄像机的 Gamma特性理论上是由显示器的 Gamma特性决定 的。 但是因为终端系统日益复杂, 摄像机和显示器之间存在数目不定的 多个环节, 而且各环节的 Gamma特性也是未知的, 这样即使摄像机和 显示器的 Gamma特性正好能够相互补偿, 但因为中间环节的存在, 使 得这种补偿通常是无效的。 并且显示器类型众多, 例如 CRT、 液晶以及 等离子等显示器, 其 Gamma特性相差很多, 而普通摄像头的 Gamma 特性往往严重偏离上面所述理想的 Gamma特性, 因此摄像机 /摄像头总 是存在 Gamma特性。  Therefore, the Gamma characteristics of the camera are theoretically determined by the Gamma characteristics of the display. However, because the terminal system is increasingly complicated, there are a number of different links between the camera and the display, and the Gamma characteristics of each link are unknown, so that even if the Gamma characteristics of the camera and the display are able to compensate each other, because of the existence of the intermediate link, This compensation is usually invalid. And there are many types of displays, such as CRT, liquid crystal, and plasma. The Gamma characteristics are quite different, and the Gamma characteristics of ordinary cameras often deviate significantly from the ideal Gamma characteristics described above, so the camera/camera always has Gamma characteristics.
2、 存储文件 Gamma, 表示为 GFil(.)。 文件可能来自摄像机, 由于其 经过了处理、 压缩编码等多个 Gamma环节, 因此文件本身也携带了 Gamma特性。 2. Store the file Gamma as G Fil (.). The file may come from the camera. Because it has been processed, compressed and encoded, it also carries the Gamma feature.
3、 益示帧存 Gamma, 表示为 GFBuf(.)。 一些显示器因为显示存储的 色彩深度不够, 例如只能支持 4位、 8位或 16位色彩深度, 而不是理想 的 24位真彩色, 那么等于在显示过程中压缩了输入亮度信号的动态范 围, 因此也引入了 Gamma特性。 另外, 在非真彩色下模式下使用的调 色板(Palette ) 色彩映射技术或者抖动 (Dither )技术等, 也都会引入 Gamma特性。 3. The indicator frame is stored as Gamma, denoted as G FBuf (.). Some monitors because of the display storage The color depth is not enough. For example, it can only support 4-bit, 8-bit or 16-bit color depth instead of the ideal 24-bit true color. It is equivalent to compressing the dynamic range of the input luminance signal during display, so the Gamma feature is also introduced. In addition, the Gamma feature is also introduced in the palette (Palette) color mapping technology or the Dither technology used in the non-true color mode.
4、 显示查表 Gamma, 表示为(¾υτ(.)。 有些显示设备为了补偿显示 器的非线性,人为引入了 Gamma,该 Gamma表现为一个查表 (Look-Up Table, LUT), 从帧存中读出的亮度数据先经过 LUT转换, 再去驱动显 示器。 4, display check table Gamma, expressed as ( 3⁄4 υ τ (.). Some display devices in order to compensate for the non-linearity of the display, artificially introduced Gamma, the Gamma appears as a look-up table (LUT), from the frame The brightness data read out is first converted by the LUT and then driven to the display.
5、显示器 Gamma,表示为 GDisp(.)。一般的显示器带有很强的 Gamma 非线性特性。 5. Display Gamma, denoted as G Disp (.). A typical display has a strong gamma nonlinearity.
对于情况 B, 图 6中给出了几个例子, 例如 L1表示的本地视频 /图 像、 L2表示的自环视频 /图像、 L3表示的远端视频 /图像。 如图 6所示, 情况 B涉及的多个 Gamma环节主要有:  For Case B, several examples are given in Figure 6, such as local video/image represented by L1, self-loop video/image represented by L2, and far-end video/image represented by L3. As shown in Figure 6, the multiple Gamma links involved in Case B are:
1、 摄像机 /摄像头 Gamma, 表示为 GCam(.); 1. Camera/camera Gamma, denoted as G Cam (.);
2、 存储文件 Gamma (图中未示出), 表示为 GFil(.); 2. Store the file Gamma (not shown), denoted as G Fil (.);
3、 显示帧存 Gamma, 表示为 GFBuf(.); 3. Display the frame to store Gamma, denoted as G FBuf (.);
4、 显示查表 Gamma, 表示为 GLUT('); 4. Display the checklist Gamma, denoted as G L UT(');
5、 显示器 Gamma, 表示为 GDiSp(.); 5. Display Gamma, denoted as G D i Sp (.);
6、 编码器 Gamma, 表示为 GEnc(.), 这主要是由于压缩中的离散余 弦变换( DCT变换) 以及量化造成的 Gamma特性; · 6. The encoder Gamma is denoted as G Enc (.), which is mainly due to the discrete cosine transform (DCT transform) in compression and the Gamma characteristic caused by quantization;
7、 解码器 Gamma, 表示为 GDee(.), 这主要是由于解压缩中的 DCT 反变换、 反量化造成的 Gamma特性。 7. The decoder gamma, denoted as G Dee (.), is mainly due to the gamma characteristic caused by inverse DCT and inverse quantization in decompression.
对于情况 B, 更为严重的是, 本地视频 /图像、 远端视频 /图像和自环 视频 /图像(用于特殊目的如故障诊断等)经过的 Gamma环节是不同的。 另外, 不论情况 A或情况 B, 在实际环境中涉及到的 Gamma环节可能 更多, 情况更加复杂。 For Case B, it is more serious that the local video/image, far-end video/image and self-loop video/image (for special purposes such as troubleshooting) pass through the Gamma link. In addition, regardless of case A or case B, there may be more Gamma links involved in the actual environment, and the situation is more complicated.
在理想的情况下, 输入到摄像头的亮度信号与最终在显示屏上显示 输出亮度信号之间存在线性关系, 即: L。ut= Lin, 这样在显示屏上显示的 景物才和原来的完全一样, 用户的体验也最好。 In the ideal case, there is a linear relationship between the luminance signal input to the camera and the final output luminance signal on the display, ie: L. Ut = L in , so that the scene displayed on the display is exactly the same as the original, and the user experience is also the best.
要获得输入 -输出的线性关系, 必须对具有 Gamma特性的环节进 行 Gamma校正( Gamma Correction )。 如图 7所示, 对于一个环节的情 况来说, 其 Gamma特性给定, 那么可以用另外一个校正环节和它进行 级联, 使得级联后总的 Gamma特性成为真正的线性关系, 从而达到了 补偿 Gamma环节非线性的目的。其中,校正环节的模型为 Gamma特性 等效模型的逆模型, 如果等效模型可以用函数关系式表示, 则逆模型的 函数关系式为其反函数, 即 Gg(.)和 Gc(.)互为反函数。 一般情况下, 一个 函数的反函数不一定有解, 即使有解, 一般也很难用计算的方法获得。 To obtain a linear relationship between input and output, Gamma Correction must be performed on a link with Gamma characteristics. As shown in Fig. 7, for the case of a link, the gamma characteristic is given, then another correction link can be used to cascade it, so that the total gamma characteristic after the cascading becomes a true linear relationship, thereby achieving Compensate for the non-linearity of the Gamma link. The model of the correction link is the inverse model of the Gamma characteristic equivalent model. If the equivalent model can be expressed by a function relation, the function relation of the inverse model is its inverse function, namely G g (.) and G c (. ) Mutual inverse function. In general, the inverse function of a function does not necessarily have a solution. Even if there is a solution, it is generally difficult to obtain it by calculation.
实际应用中更多的情况如图 8所示, 校正环节需要插入到前后两个 Gamma环节之间, 此时 Gc(.)的情况更加复杂, Gc(.)与 Ga(.)或者 Gp(.)不 再是简单的反函数关系。 More cases in the actual application are shown in Figure 8. The correction link needs to be inserted between the two Gamma links. The situation of G c (.) is more complicated, G c (.) and G a (.) or G p (.) is no longer a simple inverse function relationship.
现有技术中校正环节的实现方法主要有以下两种。  There are two main methods for implementing the correction link in the prior art.
现有技术一:完全依赖摄像机 /摄像头或者显示 LUT的 Gamma特性 来校正显示器 Gamma特性。  Prior Art One: It relies entirely on the camera/camera or the Gamma characteristic of the display LUT to correct the Gamma characteristics of the display.
假设在理想状态下: GCam(.)为 L。 Lin 0-45, GLUT(.)为 L。ut= Lin M5, GDisp(.) 为 L。ut= Lin 2'2。 那么, GCara。GDisp(.)使得 L。ut=Lin。'45x2'2=Lin, 即输入亮度信 号与输出亮度信号形成标准的线性关系; 同样, G UT。(? Disp(.)使得Assume that under ideal conditions: G Cam (.) is L. L in 0 - 45 , G LUT (.) is L. Ut = L in M5 and G Disp (.) is L. Ut = L in 2 ' 2 . Then, G Cara . G Disp (.) makes L. Ut =L in . ' 45x2 ' 2 =L in , that is, the input luminance signal forms a standard linear relationship with the output luminance signal; likewise, G UT . (? Disp (.) makes
L。ut=Lin 45x2'2=Lin, 即输入亮度信号与输出亮度信号之间形成标准的线性 关系。 L. ut = L in 45x2 '2 = L in, i.e., between the input luminance signal and the output luminance signal forming a linear relationship criteria.
但是, 上述技术存在如下不足: 通常很难获得理想状态, 不能保证 摄像机 /摄像头、 LUT的 Gamma刚好和显示器 Gamma完全匹配。 并且 显示器类型 4艮多, 而普通的摄像头的 Gamma特性通常是非理想的; 如 果 GCAM(.)和 GLUT(.)同时存在, 则 ^ ^^ ^^使得!^^ !^45, 即补 偿过度, 反而偏离了线性; 现有技术一中模拟伽玛特性的数学模型也不 准确, 不能精确地确定环节 Gamma特性的模型和参数。 However, the above techniques have the following disadvantages: It is often difficult to obtain an ideal state and cannot be guaranteed. The camera/camera, the LUT's Gamma is exactly matched to the monitor Gamma. And the display type is more than 4, and the gamma characteristic of the ordinary camera is usually not ideal; if G CAM (.) and GL UT (.) exist at the same time, ^ ^^ ^^ makes! ^^ !^ 45 , that is, the compensation is excessive, but deviates from the linearity; the mathematical model of the simulated gamma characteristic in the prior art 1 is also inaccurate, and the model and parameters of the link Gamma characteristic cannot be accurately determined.
现有技术二: 在某些环节之间, 例如在摄像机环节之后或者在显示 帧存环节之前,插入一个 Gamma特性校正环节进行 Gamma校正。另夕卜, 还可能在显示器的 Gamma特性等效模型方面,采用了更加精确的模型, 例如公式 ( 3 )所示的模型: ,, ( 3 ) Prior Art 2: Gamma correction is performed by inserting a Gamma characteristic correction link between certain links, for example, after the camera link or before displaying the frame storage link. In addition, it is also possible to use a more accurate model in the Gamma characteristic equivalent model of the display, such as the model shown in equation (3): ,, (3)
81 < , < 1 81 < , < 1
Figure imgf000008_0001
Figure imgf000008_0001
相应地,摄像机的 Gamma特性被认为和显示器的 Gamma特性完全 匹配, 例如采用公式(4 )所示的模型:
Figure imgf000008_0002
Accordingly, the camera's Gamma characteristics are considered to exactly match the Gamma characteristics of the display, such as the model shown in equation (4):
Figure imgf000008_0002
但是, 在现有技术二中存在如下缺点: 校正模型单一, 而多个环节 的情况非常复杂, 不能精确获得多个环节的 Gamma特性, 必然导致不 能精确校正, 即校正结果仍然是非线性的。 因此, 仍然不能避免存在过 校正或者校正不足的问题; 并且该方法只能应用在一些特定情况, 无法 应用于任意多个 Gamma环节的校正, 即通用性较差。 发明内容  However, in the prior art 2, the following disadvantages exist: The calibration model is single, and the situation of multiple links is very complicated, and the Gamma characteristic of multiple links cannot be accurately obtained, which inevitably leads to inaccurate correction, that is, the calibration result is still nonlinear. Therefore, there is still no problem of overcorrection or undercorrection; and this method can only be applied to some specific cases and cannot be applied to the correction of any multiple Gamma links, that is, the versatility is poor. Summary of the invention
有鉴于此, 本发明提出一种确定伽玛等效模型及其参数的方法, 以 解决现有技术中伽玛等效模型选择和模型参数不准确的问题, 从而为准 确分析并校正信号传输和处理环节中的伽玛特性提供了基础。 In view of this, the present invention proposes a method for determining a gamma equivalent model and its parameters to solve the problem of gamma equivalent model selection and inaccurate model parameters in the prior art, and thus It provides the basis for analyzing and correcting gamma characteristics in signal transmission and processing.
本发明的另一个 ϋ的是, 提供一种伽玛特性的校正方法, 以提高伽 玛特性校正的精确度。 本发明进一步的目的是, 使得该方法同时适用于 单环节和多环节的伽玛特性的校正, 以解决现有校正方法无法通用的问 题。  Another object of the present invention is to provide a method of correcting gamma characteristics to improve the accuracy of gamma characteristic correction. A further object of the present invention is to make the method suitable for the correction of gamma characteristics of single-link and multi-link simultaneously to solve the problem that the existing correction method cannot be universal.
根据上述目的, 本发明提供了一种确定 Gamma特性等效模型及其 参数的方法,所述 Gamma特性等效模型用于等效环节中的 Gamma特性, 该方法包括以下步骤:  In accordance with the above objects, the present invention provides a method of determining a Gamma characteristic equivalent model and its parameters, the Gamma characteristic equivalent model being used for the Gamma characteristic in an equivalent link, the method comprising the steps of:
51. 将输入信号的 N个采样值 Lin(i)输入所述环节, 并检测所述环 节产生的 N个实际输出信号值 Lput(i), 其中, N为大于等于 1的整数, i为大于等于 0且小于等于 N-1的整数; 51. Input N sample values L in (i) of the input signal into the link, and detect N actual output signal values L p generated by the link. Ut (i), where N is an integer greater than or equal to 1, and i is an integer greater than or equal to 0 and less than or equal to N-1;
52. 在一组备选的等效模型中选择一个作为待测等效模型;  52. Select one of a set of alternative equivalent models as the equivalent model to be tested;
53. 对于所述待测等效模型, 选择一组初始参数及目标函数, 并设 定目标函数值的门限以及最大迭代次数;  53. For the equivalent model to be tested, selecting a set of initial parameters and an objective function, and setting a threshold of the objective function value and a maximum number of iterations;
54.根据所述待测等效模型计算所述 N个采样值对应的 N个理论输 出信号值 LMut(i), 并根据目标函数的计算表达式以及 Lput(i)和 LMut(i) 计算目标函数值; 54. Calculate N theoretical output signal values L M corresponding to the N sample values according to the equivalent model to be tested. Ut (i), and according to the calculation expression of the objective function and L p . Ut (i) and L M . Ut (i) calculate the objective function value;
55. 判断所述目标函数值是否等于或小于所述门限, 如果是, 则采 用所述待测等效模型为最终的等效模型, 并将最小的目标函数值对应的 参数作为该等效模型的参数, 结果本流程; 否则执行步骤 S6;  55. Determine whether the target function value is equal to or smaller than the threshold, and if yes, adopt the equivalent model to be tested as a final equivalent model, and use a parameter corresponding to the smallest objective function value as the equivalent model The parameters, the result of the process; otherwise, step S6;
56. 判断步驟 S4的执行次数是否到达所述最大迭代次数, 如果是, 则从其它尚未检测的备选等效模型中选择一个作为待测等效模型, 并返 回步骤 S3; 否则执行步骤 S7;  56. Determine whether the number of executions of the step S4 reaches the maximum number of iterations, and if so, select one of the other unrecognized alternative equivalent models as the equivalent model to be tested, and return to step S3; otherwise, perform step S7;
57. 利用数学优化方法调整所述参数, 返回步驟 S4。  57. Adjust the parameters using a mathematical optimization method and return to step S4.
步骤 S1中所述 N个采样值是间隔均匀的或间隔不均匀的。 所述步驟 S5 中, 在采用所述待测等效模型为最终的等效模型之后 进一步包括: 在预先设定的循环次数内, 利用数学优化方法调整所述参 数并计算所述目标函数值, 得到最小的目标函数值对应的参数。 所述目标函数为 F ( - ( I。The N sample values in step S1 are evenly spaced or unevenly spaced. In the step S5, after the adopting the equivalent model to be tested is the final equivalent model, the method further includes: adjusting the parameter and calculating the target function value by using a mathematical optimization method within a preset number of cycles, Get the parameters corresponding to the smallest objective function value. The objective function is F (-(I.
Figure imgf000010_0001
Figure imgf000010_0001
所述 Gamma 特性为单环节 Gamma 特性或多环节级联的综合 Gamma特性。  The Gamma characteristic is a single-link Gamma characteristic or a multi-step cascaded integrated Gamma characteristic.
所述一组备选的等效模型包括: 所述 Gamma特性等效模型的函数 关系式为 4„, = ^„" + (1- , 其中该函数的定义域为区间 [0,1], 值域为 区间 [(Ι-ρ),Ι], 该函数的反函数关系式为 。, =(丄4 + (1-丄)) ; 和 /或所 ρ Ρ  The set of alternative equivalent models includes: the functional relationship of the Gamma characteristic equivalent model is 4„, = ^„" + (1-, where the domain of the function is the interval [0, 1], The range is the interval [(Ι-ρ), Ι], and the inverse function of the function is ., =(丄4 + (1-丄)) ; and / or ρ Ρ
j_  J_
述 Gamma特性等效模型的函数关系式为 Lout = (qLin +(l-g)Y ,其中该函 数的定义域为区间 [l-l/q,l],值域为区间 [0,1];则该函数的反函数关系式 为 =丄^/+(1-丄) ; 其中, Lin为输入信号值、 L。ut为输出信号值、 p q q The functional relationship of the Gamma characteristic equivalent model is L out = (qL in +(lg)Y , where the domain of the function is the interval [ll/q, l], and the range is the interval [0, 1]; The inverse function of the function is =丄^/+(1-丄); where L in is the input signal value, L. ut is the output signal value, pqq
和 α以及 q和 β分别为参数;并且当 Na=l或 Np=l时, 0 < ρ≤1、 α≥1 , q>l、 β>1; 当 Na>l或 Νρ>1时, 0<ρ≤1、 α>0, q≥l、 β≥0。 And α and q and β are parameters respectively; and when N a = l or N p = 1, 0 < ρ ≤ 1, α ≥ 1, q > l, β >1; when N a > l or Ν ρ > At 1 o'clock, 0 < ρ ≤ 1, α > 0, q ≥ l, β ≥ 0.
所述数学优化方法为爬山法、 0.618法、 最速下降法或共轭梯度法。 步骤 S1中所述输入信号的 Ν个采样值位于区间 [0,1]中。  The mathematical optimization method is a hill climbing method, a 0.618 method, a steepest descent method or a conjugate gradient method. The sample values of the input signal in step S1 are located in the interval [0, 1].
本发明还提供了一种 Gamma特性校正方法, 用于校正 Nt个环节的 Gamma特性, 其中 Nt为大于等于 1的整数, 该方法包括以下步骤:The present invention also provides a gamma characteristic correction method for correcting gamma characteristics of N t links, wherein N t is an integer greater than or equal to 1, the method comprising the following steps:
A. 确定校正环节插入点, 将所述 Nt个环节划分为位于该校正环节 插入点之前的 Na个环节和位于该校正环节插入点之后的 Np个环节, 其 中 Na和 Np为大于等于 0的整数、 且 Na+Np=Nt; A. determining a correction link insertion point, dividing the N t links into N a links before the insertion point of the correction link and N p links after the insertion point of the correction link, where N a and N p are An integer greater than or equal to 0, and N a +N p =N t ;
B. 确定等效于所述>^个环节 Gamma特性的等效模型及与其对应 的逆模型, 并且确定等效于所述 Np个环节 Gamma特性的等效模型及与 其对应的逆模型; B. Determine an equivalent model equivalent to the >^ link Gamma characteristics and correspond to it An inverse model, and determining an equivalent model equivalent to the N p links Gamma characteristics and an inverse model corresponding thereto;
C. 级联所述 Na个环节 Gamma特性的逆模型和所述 Np个环节 Gamma特性的逆模型构造校正环节模型,利用该校正环节模型确定所述 Na个环节最后输出信号的校正信号, 并将该校正信号输入所述 Np个环 节。 Inverse model correction part configured to model the inverse model of Gamma characteristic of the cascaded C. and the N a segment of N p the Gamma characteristics of the link, using the correction model determines a correction signal segment last output signal of the part of the N a And inputting the correction signal into the Np links.
所述 Nt个环节的 Gamma特性为多媒体信息系统中的 Nt个环节的 Gamma特性; 所述信号为亮度信号。 The link the N t Gamma characteristic multimedia information system links the N t Gamma characteristics; the signal is a luminance signal.
在步骤 A中确定校正环节插入点位于摄像设备和显示帧存之间、或 摄像设备和编码器之间或解码器和显示帧存之间。  It is determined in step A that the correction link insertion point is located between the imaging device and the display frame memory, or between the imaging device and the encoder or between the decoder and the display frame memory.
所述等效模型采用数据表形式, 所述逆模型采用与该数据表对应的 逆表形式。  The equivalent model takes the form of a data table, and the inverse model adopts an inverse table form corresponding to the data table.
所述等效模型采用函数形式, 所述逆模型采用与等效模型的函数对 应的反函数形式。  The equivalent model takes the form of a function, and the inverse model takes the form of an inverse function corresponding to the function of the equivalent model.
步骤 B中所述确定等效模型的步骤包括:  The steps of determining the equivalent model described in step B include:
B1. 将输入信号的 N个采样值 Lin(i)输入所述环节, 并检测所述环 节产生的 N个实际输出信号值 Lput(i), 其中, N为大于等于 1的整数, i为大于等于 0且小于等于 N-1的整数; B1. Input N sample values L in (i) of the input signal into the link, and detect N actual output signal values L p generated by the link. Ut (i), where N is an integer greater than or equal to 1, and i is an integer greater than or equal to 0 and less than or equal to N-1;
B2. 在一组备选的等效模型中选择一个作为待测等效模型;  B2. Select one of a set of alternative equivalent models as the equivalent model to be tested;
B3. 对于所述待测等效模型, 选择一组初始参数及目标函数, 并设 定目标函数值的门限以及最大迭代次数;  B3. For the equivalent model to be tested, select a set of initial parameters and an objective function, and set a threshold of the objective function value and a maximum number of iterations;
B4. 根据所述待测等效模型计算所述 N个采样值对应的 N个理论 输出信号值 LMut(i),并根据目标函数的计算表达式以及 Lput(i)和 LMut(i) 计算目标函数值; B4. Calculate N theoretical output signal values L M corresponding to the N sample values according to the equivalent model to be tested. Ut (i), and according to the calculation expression of the objective function and L p . Ut (i) and L M . Ut (i) calculate the objective function value;
B5. 判断所述目标函数值是否等于或小于所述门限, 如果是, 则采 用所述待测等效模型为最终的等效模型, 并将最小的目标函数值对应的 参数作为该等效模型的参数, 结果本流程; 否则执行步驟 B6; B5. determining whether the value of the objective function is equal to or smaller than the threshold, and if so, Using the equivalent model to be tested as the final equivalent model, and taking the parameter corresponding to the minimum objective function value as the parameter of the equivalent model, the result is the flow; otherwise, step B6 is performed;
B6. 判断步骤 B4的执行次数是否到达所述最大迭代次数, 如果是, 则从其它尚未检测的备选等效模型中选择一个作为待测等效模型, 并返 回步骤 B3; 否则执行步骤 B7;  B6. It is determined whether the number of executions of step B4 reaches the maximum number of iterations, and if so, one of the other alternative model models that have not been detected is selected as the equivalent model to be tested, and returns to step B3; otherwise, step B7 is performed;
B7. 利用数学优化方法调整所述参数, 返回步骤 B4。  B7. Adjust the parameters using the mathematical optimization method and return to step B4.
步骤 B1中所述 N个采样值是间隔均匀的或间隔不均匀的。  The N sample values in step B1 are evenly spaced or unevenly spaced.
所述步骤 B5 中, 在采用所述待测等效模型为最终的等效模型之后 进一步包括: 在预先设定的循环次数内, 利用数学优化方法调整所述参 数并计算所述目标函数值, 得到最小的目标函数值对应的参数。  In the step B5, after the adopting the equivalent model to be tested is the final equivalent model, the method further includes: adjusting the parameter and calculating the target function value by using a mathematical optimization method within a preset number of cycles, Get the parameters corresponding to the smallest objective function value.
步骤 B中所述确定与等效模型对应的逆模型的步骤包括: 将等效模 型的参数带入对应的反函数中, 得到逆模型的函数。  The step of determining the inverse model corresponding to the equivalent model in step B includes: bringing the parameters of the equivalent model into the corresponding inverse function to obtain a function of the inverse model.
在步骤 C中采用直接计算法、 两步计算法或查表法来构造校正环节 模型。  In step C, a direct calculation method, a two-step calculation method or a table look-up method is used to construct a correction link model.
在步骤 C中采用查表法来构造校正环节模型,并且在所述查表法中: 当输入的待校正值在该查表法所用的数据表中时, 则直接通过查表获得 对应的校正值; 当输入的待校正值不在所述数据表中时, 则根据数据表 中其它的待校正值采取线性插值方法计算与输入的待校正值对应的校 正值。  In step C, a look-up table method is used to construct a correction link model, and in the look-up table method: when the input value to be corrected is in the data table used in the look-up table method, the corresponding correction is directly obtained by looking up the table. Value; When the input value to be corrected is not in the data table, a linear interpolation method is used according to other values to be corrected in the data table to calculate a correction value corresponding to the input value to be corrected.
N-1 N— 1  N-1 N-1
所述目标函数为 F =∑(Lp out( - ( )2 或^∑l ( - ( I。 所述一组备选的等效模型包括: 所述 Gamma特性等效模型的函数 关系式为 。„( = Ρ " +(Ι- , 其中该函数的定义域为区间 [ο,ι], 值域为 区间 [(Ι-ρ),Ι] , 该函数的反函数关系式为 4^ = (丄 丄) ^ ; 和 /或所 p p 述 Gamma特性等效模型的函数关系式为 L l = (qLin + (l - q) ,其中该函 数的定义域为区间 [l-l/q,l],值域为区间 [0,1]; 则该函数的反函数关系式 为 =丄 丄) ; 其中, 1^为输入信号值、 L。ut为输出信号值、 p q q The objective function is F = ∑(L p out ( - ( ) 2 or ^∑l ( - (I. The set of alternative equivalent models includes: the functional relationship of the Gamma characteristic equivalent model is „ ( = Ρ " +(Ι- , where the domain of the function is the interval [ο, ι], the range is the interval [(Ι-ρ), Ι], and the inverse function of the function is 4^ = (丄丄) ^ ; and / or pp The functional relationship of the Gamma characteristic equivalent model is L l = (qL in + (l - q) , where the domain of the function is the interval [ll/q, l], and the range is the interval [0, 1]; Then the inverse function of the function is =丄丄); where 1^ is the input signal value, L. ut is the output signal value, pqq
和 α以及 q和 β分别为参数;并且当 Na=l或 Np=l时, 0 < p≤l、 ≥1 , q>l、 β>1; 当 Na > l或 Νρ > 1时, 0 < ρ≤1、 α≥0, q≥l、 β>0„ And α and q and β are parameters respectively; and when N a = l or N p = 1, 0 < p ≤ l, ≥ 1, q > l, β >1; when N a > l or Ν ρ > 1 When 0 < ρ ≤ 1, α ≥ 0, q ≥ l, β > 0 „
所述数学优化方法为爬山法、 0.618法、 最速下降法或共轭梯度法。 步骤 B1中所述输入信号的 Ν个采样值位于区间 [0,1]中。  The mathematical optimization method is a hill climbing method, a 0.618 method, a steepest descent method or a conjugate gradient method. The sample values of the input signal described in step B1 are located in the interval [0, 1].
本发明解决了多媒体信息系统中普遍存在的 Gamma特性等效模型 的选择问题及其参数的检测不准确的问题, 还解决了环节 Gamma特性 校正精确度较差的问题, 对于单环节和多环节级联的综合 Gamma特性 给出一种通用的校正方法, 提高了信号传输的质量, 并且大大提高了多 媒体信息系统的用户体验。 由于本发明提高了伽玛特性校正的精确度, 使得接收端显示的多媒体信息与发送端输入的多媒体信息一致, 因此本 发明还有利于多媒体信息业务例如可视电话、 视频会议等的广泛使用。 附图简要说明 图 1为环节 Gamma特性的一般模型;  The invention solves the problem that the selection problem of the gamma characteristic equivalent model which is ubiquitous in the multimedia information system and the parameter inaccurate detection thereof, and also solves the problem that the accuracy of the link gamma characteristic correction is poor, for the single link and the multi-link level The integrated Gamma feature provides a universal correction method that improves the quality of signal transmission and greatly enhances the user experience of multimedia information systems. Since the present invention improves the accuracy of the gamma characteristic correction so that the multimedia information displayed at the receiving end is consistent with the multimedia information input by the transmitting end, the present invention is also advantageous for the widespread use of multimedia information services such as videophones, video conferencing, and the like. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a general model of the link Gamma characteristics;
图 2为一个典型的 Gamma特性的曲线图;  Figure 2 is a graph of a typical Gamma characteristic;
图 3为环节 Gamma特性引起的亮度信号畸变的示意图;  Figure 3 is a schematic diagram of luminance signal distortion caused by the link Gamma characteristic;
图 4为多环节级联的 Gamma特性的一般模型示意图;  Figure 4 is a schematic diagram of a general model of a multi-step cascade of Gamma characteristics;
图 5为情况 A下的多个 Gamma环节的示意图;  Figure 5 is a schematic diagram of a plurality of Gamma links in Case A;
图 6为情况 B下的多个 Gamma环节的示意图;  Figure 6 is a schematic diagram of a plurality of Gamma links in case B;
图 7为校正单个 Gamma环节的 Gamma特性的示意图;  Figure 7 is a schematic diagram of correcting the Gamma characteristics of a single Gamma link;
图 8为校正多个 Gamma环节的 Gamma特性的示意图; 图 9 (a) 为本发明实施例中第一类环节的 Gamma特性的示意图, 图 9 (b) 为本发明实施例中第二类环节的 Gamma特性的示意图; Figure 8 is a schematic diagram of correcting Gamma characteristics of a plurality of Gamma links; 9(a) is a schematic diagram showing the gamma characteristic of the first type of link in the embodiment of the present invention, and FIG. 9(b) is a schematic diagram showing the gamma characteristic of the second type of link in the embodiment of the present invention;
图 10为坐标平面上的区域 [0,l]x[0,l];  Figure 10 is the area on the coordinate plane [0, l] x [0, l];
图 11为本发明第二实施例中确定校正环节插入点的示意图; 图 12 为本发明第二实施例中分别利用两个子环节进行前后校正的 示意图。 实施本发明的方式  Figure 11 is a schematic diagram showing the insertion point of the correction link in the second embodiment of the present invention; Figure 12 is a schematic diagram of the front-back correction using two sub-links in the second embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点更加清楚, 以下举实施例对本 发明进一步详细说明。  In order to make the objects, technical solutions and advantages of the present invention more comprehensible, the present invention will be further described in detail below.
研究表明, 更精确的伽玛特性等效模型的函数关系是幂函数和常数 函数的线性组合, 或者是一个线性函数和幂函数的复合, 在不同的环境 中, 通过实际测量函数关系中的参数可以较为精确地得到具体的函数关 系。  Studies have shown that the more precise gamma characteristic equivalent model is a linear combination of a power function and a constant function, or a combination of a linear function and a power function. In different environments, the parameters in the actual measurement function relationship are measured. A specific functional relationship can be obtained more accurately.
第一实施例: 确定伽玛特性等效模型及其参数的方法  First Embodiment: Method for determining gamma characteristic equivalent model and its parameters
本实施例选择采用以下两类单环节等效模型作为 Gamma特性的通 用模型为例进行详细说明:  In this embodiment, the following two types of single-link equivalent models are selected as a general model of the Gamma characteristic as an example for detailed description:
第一类 Gamma特性等效模型:  The first type of Gamma characteristic equivalent model:
Lo =pLin a+(l-p) 0<p≤l,a>l (5) 其中, Lin为输入信号, L。ut为输出信号, α和 p为参数。 公式(5) 所示函数的定义域(自变量取值范围) 为区间 [0,1], 值域(函数值的取 值范围) 为区间 [(Ι-ρ),Ι], 曲线特性如图 9 (a)所示。 从公式(5)可以 看出,对于第一类 Gamma特性等效模型,如果 p=l且 α=1,则有 L。ut=Lin。 因此, 在实际测量中, 如果第一类等效模型的参数 p=l且 α=1时, 或者 ρ充分接近 1并且 α充分接近 1时, 可以认为环节的伽玛特性可以被忽 略, 不用进行校正。 第一类 Gamma特性的典型例子是 CRT显示器。 第二类 Gamma特性等效模型: L o =pL in a +(lp) 0<p≤l, a>l (5) where L in is the input signal, L. Ut is the output signal, and α and p are parameters. The domain of the function shown in equation (5) (the range of argument values) is the interval [0, 1], and the range of values (the range of values of the function values) is the interval [(Ι-ρ), Ι], and the curve characteristics are as follows. Figure 9 (a). It can be seen from equation (5) that for the first type of Gamma characteristic equivalent model, if p = l and α = 1, there is L. Ut =L in . Therefore, in the actual measurement, if the parameters of the first type of equivalent model are p=l and α=1, or ρ is sufficiently close to 1 and α is sufficiently close to 1, the gamma characteristic of the link can be considered to be neglected. Slightly, no correction is required. A typical example of the first type of Gamma feature is a CRT display. The second type of Gamma characteristic equivalent model:
i  i
Lmt -(qLin+{l-q)Y q≥l, ≥l (6) 其中, Lin为输入信号, L。ut为输出信号, β和 q为参数。 公式 (6) 所示函数的定义域为区间 [l-l/q,l],值域为区间 [0,1],曲线特性如图 9(b) 所示。 从公式(6)可以看出, 对于第二类等效模型, 如果 q=l且 β=1, 则有 L。ut=Lin。 同样, 在实际测量中, 如果 q=l且 β=1时, 或者 q充分 接近 1并且 β充分接近 1时, 可以认为环节的伽玛特性可以被忽略, 不 用进行校正。 第二类 Gamma特性的典型例子是摄像机。 L mt -(qL in +{lq)Y q≥l, ≥l (6) where L in is the input signal, L. Ut is the output signal, and β and q are parameters. The domain of the function shown by equation (6) is the interval [ll/q, l], the value range is the interval [0, 1], and the curve characteristics are shown in Figure 9(b). As can be seen from equation (6), for the second type of equivalent model, if q = l and β = 1, there is L. Ut =L in . Similarly, in the actual measurement, if q = 1 and β = 1, or q is sufficiently close to 1 and β is sufficiently close to 1, it can be considered that the gamma characteristic of the link can be ignored without correction. A typical example of the second type of gamma feature is a video camera.
此外, 如果 q=l/p且 α=β , 那么第一类和第二类等效模型互为反函 数, 因此可以相互补偿得到线性特性。 即: 如果 Gamma环节具有第一 类 Gamma特性,那么其校正环节具有第二类 Gamma特性;如果 Gamma 环节具有第二类 Gamma特性,那么其校正环节具有第一类 Gamma特性。  In addition, if q = l / p and α = β, then the first and second equivalent models are inverse functions of each other, so they can compensate each other to obtain linear characteristics. That is: If the Gamma link has the first type of Gamma characteristics, then the correction link has the second type of Gamma characteristics; if the Gamma link has the second type of Gamma characteristics, then the correction link has the first type of Gamma characteristics.
多个 Gamma环节进行级联后, 其综合的 Gamma特性, 从数学一^: 性来说, 不再具有单环节的第一类或者第二类等效模型。 但是在研究中 发现, 多环节综合 Gamma特性的数学模型具有如下特点:  After cascading multiple Gamma links, the integrated Gamma characteristics, from the mathematical one: no longer have a single-link first-class or second-class equivalent model. However, it is found in the research that the mathematical model of the multi-link integrated Gamma characteristic has the following characteristics:
1、 其函数图像局限于如图 10所示的坐标平面的区域 [0,1]χ[0,1] (这 里 "X" 表示两个集合的笛卡尔积(Cartesian Product), 或者叫做直积) 内;  1. The function image is limited to the region [0, 1] χ [0, 1] of the coordinate plane as shown in Fig. 10 (where "X" represents the Cartesian Product of the two sets, or is called the direct product. ) Inside;
2、 函数单调递增;  2. The function is monotonically increasing;
3、 函数曲线可能是上凸(曲线向左上弯曲, 或者说, 从坐标原点看 向外弯曲)或下凸(曲线向右下弯曲, 或者说,从坐标原点看向内弯曲:); 3. The function curve may be convex (the curve is bent to the left, or outward from the origin of the coordinate) or the lower convex (the curve is bent to the lower right, or inward from the origin of the coordinate:);
4、 函数曲线和 Lin轴相交或者和 Lout轴相交; 4. The function curve intersects with the Lin axis or intersects the Lout axis;
5、 函数曲线通过 (1,1)点。 因此, 特点 3、 4的情况进行组合就形成四种复合情况: 情况 1、 和!^轴相交, 上凸; 5. The function curve passes through the (1,1) point. Therefore, the combination of the characteristics of 3, 4 forms four composite cases: Case 1, and! ^Axis intersects, is convex;
情况 2、 和!^轴相交, 下凸;  Situation 2, and! ^Axis intersects, lower convex;
情况 3、 和!^。^轴相交, 上凸;  Situation 3, and! ^. ^Axis intersects, is convex;
情况 4、 和!^^轴相交, 下凸。  Situation 4, and! The ^^ axes intersect and are convex.
根据以上定性分析,多个 Gamma环节级联的综合 Gamma特性等效 模型可以有以下两类, 函数关系式分别为公式 (7)和公式 (8):  According to the above qualitative analysis, the integrated Gamma characteristic equivalent model of multiple Gamma link cascades can have the following two types, and the functional relations are respectively formula (7) and formula (8):
第一类 Gamma特性等效模型 (对应情况 3和 4 ):  The first type of Gamma characteristic equivalent model (corresponding to cases 3 and 4):
L0Ut =pLtn a+(\-p) 0<p≤\,a>0 (7) 第二类 Gamma特性等效模型 (对应情况 1和 2 ): L 0Ut =pL tn a +(\-p) 0<p≤\,a>0 (7) The second type of Gamma characteristic equivalent model (corresponding to cases 1 and 2):
L0Ut =(qLin + (l-q)y q≥i, >0 (8) 需要指出的是, 从函数形式上看, 多环节综合 Gamma特性的第一 类等效模型、 第二类等效模型分别和单环节 Gamma特性第一类等效模 型、 第二类等效模型是一样的。 但是, 与单环节 Gamma特性等效模型 相比, 多环节第一类综合 Gamma特性等效模型中, 根据定性分析结果 和实际测量的经验值, 指数 α取值范围变成 α>0, 而多环节第二类综合 Gamma特性等效模型中, 指数 β取值范围变成 β >0。 L 0Ut =( qL in + (lq)yq≥i, >0 (8) It should be pointed out that, from the perspective of function form, the first-class equivalent model and the second-class equivalent model of multi-link integrated Gamma characteristics are respectively It is the same as the first-class equivalent model and the second-class equivalent model of the single-link Gamma characteristic. However, compared with the single-link Gamma characteristic equivalent model, the multi-link first-class integrated Gamma characteristic equivalent model is based on qualitative The analysis result and the empirical value of the actual measurement, the range of the index α becomes α>0, and in the multi-link second-class integrated Gamma characteristic equivalent model, the range of the index β becomes β >0.
选定了 Gamma特性等效模型后, 需要在具体应用环境中确定其中 的参数, 参数直接关系最后的 Gamma特性等效模型中输入输出信号满 足的函数关系是否准确。 其中, 对于第一类 Gamma特性等效模型, 需 要确定参数 p和 oc;对于笫二类 Gamma特性等效模型, 需要确定参数 q 和0。  After selecting the Gamma characteristic equivalent model, it is necessary to determine the parameters in the specific application environment. The parameters are directly related to whether the functional relationship between the input and output signals in the final Gamma characteristic equivalent model is accurate. Among them, for the first type of Gamma characteristic equivalent model, the parameters p and oc need to be determined; for the second type of Gamma characteristic equivalent model, the parameters q and 0 need to be determined.
确定单环节 Gamma特性等效模型及其参数的方法包括以下步骤: 步骤 11, 对于输入亮度信号 Lin, 在 [0,1]区间上选择 N个采样点: Lin(0)、 Lin(l)、 Lin(2)〜Lin(i)〜Lin(N-2)、 Lin(N-l), , 其中 N为大于等于 1 的整数。 这 N个采样点可以是间隔均匀的, 也可以是间隔不均匀的, 优 选地采用间隔均匀的 N个采样点。 The method of determining the single link and Gamma characteristics equivalent model parameter comprises the following steps: Step 11, the input luminance signal L in, selects N sample points on the interval [0,1]: L in (0), L in (l), L in (2) to L in (i) to L in (N-2), L in (Nl), , where N is an integer greater than or equal to 1. The N sampling points may be evenly spaced or may be non-uniform, preferably using N sampling points that are evenly spaced.
步骤 12,将亮度信号的 N个采样值分别输入环节中, 并测量对应的 N个实际输出亮度信号值: Lput(0)、 Lput(l)、 Lput(2)…! /。ut(i)…! 。ut(N-2)、 LPout(N-l)„ In step 12, the N sample values of the luminance signal are respectively input into the link, and the corresponding N actual output luminance signal values are measured: L p . Ut (0), L p . Ut (l), L p . Ut (2)...! /. Ut (i)...! . Ut (N-2), L P out(Nl)„
步骤 13, 从上述两类等效模型中选择一类等效模型, 作为待测等效 模型, 这里以选择第一类等效模型为例。  Step 13. Select one type of equivalent model from the above two types of equivalent models as the equivalent model to be tested. Here, the first type equivalent model is selected as an example.
步骤 14, 对于第一类等效模型, 选择一组初始参数, 并构造拟合的 目标函数, 设定目标函数的门限 T以及最大迭代次数。 '  Step 14. For the first type of equivalent model, select a set of initial parameters, and construct a fitted objective function, set the threshold T of the objective function and the maximum number of iterations. '
目标函数和实际检测的输出亮度信号与通过 Gamma特性等效模型 确定的理论输出亮度信号之间的差值相关, 而且差值越小说明模型的等 效效果越接近实际情况。  The objective function and the actually detected output luminance signal are related to the difference between the theoretical output luminance signals determined by the Gamma characteristic equivalent model, and the smaller the difference is, the closer the effect of the model is to the actual situation.
目标函数的构造方法很多 ,较为常用的是下述公式 ( 9 )、公式 ( 10 )、 公式 ( 11 )或公式 ( 12): (9) (10)
Figure imgf000017_0001
FTl{p,a) = NfUml{i)-p in{i) ~{\-p)\ (11)
There are many construction methods for the objective function. The most common ones are the following formula (9), formula (10), formula (11) or formula (12): (9) (10)
Figure imgf000017_0001
F Tl {p,a) = N fU ml {i)-p in {i) ~{\-p)\ (11)
/'=0  /'=0
W-l 丄  W-l 丄
Ρτ ,β) =∑l Lput()- ( , ,() + ( ) I (1.2) Ρ τ , β) = ∑ l L p . Ut ()- ( , ,() + ( ) I (1.2)
N-l N-l
其中, 公式( 9 )和公式( 10 )相当于 =∑(Lp out( - t())2 , 而公式 ί+=0 Wherein, formula (9) and formula (10) are equivalent to =∑(L p out ( - t ()) 2 , and the formula ί+=0
(11)和公式(12)相当于 = 1^()-1^(/)|。 公式(9)和(11)对 应于第一类等效模型, 公式 ( 10)和 ( 12)对应于第二类等效模型。 下 面以公式(9)公式(10) 为例说明。 (11) and formula (12) correspond to = 1^()-1^(/)|. Formulas (9) and (11) In the first type of equivalent model, equations (10) and (12) correspond to the second type of equivalent model. The following formula (9) formula (10) is taken as an example.
步骤 15,利用数学优化法寻找最适合的参数值。首先对于如公式(9) 所示的目标函数 = §(Lp out(0- L/fl( a-(l-^))2 , 采用某种数学优化 技术, 例如爬山法、 0.618法(华罗庚优选法)、 最速下降法或共轭梯度 法等求取其最小值。 这个过程其实是一个迭代过程, 在这个过程中不断 调整参数 p和 a, 函数值 F在不断下降, 当函数值下降到小于给定门限 T后, 则认为已经找到了最小点。 将此时对应的参数 p和 α作为本次应 用环境模型的真正参数,应当注意的是,参数 ρ和 α的取值范围分别是: 0<ρ≤1、 α≥1。 如果对于 Fn(A« =∑(Lp oat(i) - PL, ) - (1 - p)f经过 M次迭代后 '还不 能使得函数下降到门限 T以下, 则认为模型选择不对, 应该选择第二类 丄 ^ , 等效模型, 于是对于 =∑( t i)-(q in(i)+(i-q)yy重复上述步骤 In step 15, the mathematical optimization method is used to find the most suitable parameter value. First, for the objective function = §(L p out (0-L /fl ( a -(l-^)) 2 ) as shown in equation (9), some mathematical optimization techniques are used, such as hill climbing method, 0.618 method (Hua Luogeng) The preferred method), the steepest descent method or the conjugate gradient method are used to find the minimum value. This process is actually an iterative process. During this process, the parameters p and a are constantly adjusted, and the function value F is decreasing continuously. When the function value drops to less than After the threshold T is given, it is considered that the minimum point has been found. The corresponding parameters p and α at this time are taken as the true parameters of the application environment model. It should be noted that the values of the parameters ρ and α are: 0 <ρ≤1, α≥1. If for F n ( A « =∑(L p oat (i) - P L, ) - (1 - p)f after M iterations, 'the function cannot be lowered to the threshold Below T, the model is considered incorrect, and the second type 丄^ , the equivalent model should be selected, so repeat the above steps for =∑( t i)-(q in (i) + (i- q )yy
14和步骤 15, 得到对应的模型参数 q和 β , 应当注意的是, 参数 ρ和 α的取值范围分别是: q≥l、 β≥1。 14 and step 15, the corresponding model parameters q and β are obtained. It should be noted that the values of the parameters ρ and α are: q≥l, β≥1.
为了进一步提高参数的精确性, 可以在目标函数值 F下降到门限 Τ 以下后, 仍然再迭代几次。 目标函数值 F可能是持续下降, 也可能是下 降后又上升或者直接上升, 不管目标函数值 F是何种变化情况, 较佳地 选择其中的最小值对应的参数作为结果, 这样会在一定程度上进一步提 高参数的精度。  In order to further improve the accuracy of the parameters, it is possible to iterate several times after the objective function value F falls below the threshold Τ. The objective function value F may be continuously decreasing, or may be rising or rising directly after falling. Regardless of the change of the objective function value F, it is preferable to select the parameter corresponding to the minimum value as a result, which will be to some extent. Further improve the accuracy of the parameters.
可以看到, 模型类型的确定和参数的确定是同时进行的, 在实际应 用中, 等效模型的类型不止上述两类, 通过上述方法可以在相关的所有 等效模型找到最合适的一个。 同样可以利用上述方法确定多环节综合 Gamma特性等效模型参数, 具体步骤如下: It can be seen that the determination of the model type and the determination of the parameters are performed simultaneously. In practical applications, the types of the equivalent models are not limited to the above two types. By the above method, the most suitable one can be found in all relevant equivalent models. The above method can also be used to determine the multi-link integrated Gamma characteristic equivalent model parameters, the specific steps are as follows:
步骤 21 , 对于输入亮度信号 Lin, 在 [0,1]区间上选择 N个采样点: Lin(0)、 Lin(l)、 Lin(2)...Lin(i)...Lin(N-2)、 Lin(N-l), 其中 N为大于等于 1 的整数。 这 N个采样点可以是间隔均匀的, 也可以是间隔不均匀的, 优 选地采用间隔均匀的 N个采样点。 Step 21, the input luminance signal L in, selects N sample points on the interval [0,1]: L in (0), L in (l), L in (2) ... L in (i). ..L in (N-2), L in (Nl), where N is an integer greater than or equal to 1. The N sampling points may be evenly spaced or may be non-uniform, preferably using N sampling points that are evenly spaced.
步骤 22,将亮度信号的 N个采样值分别输入环节中, 并测量对应的 N个实际输出亮度信号值.' Lput(0)、 Lput(l)、 Lput(2)...Lput(i)...Lput(N-2)、 LP 0Ut(N-l)。 In step 22, the N sample values of the luminance signal are respectively input into the link, and the corresponding N actual output luminance signal values . ' L p are measured. Ut (0), L p . Ut (l), L p . Ut (2)...L p . Ut (i)...L p . ut (N-2), L P 0Ut (Nl).
步骤 23 , 从上述两类等效模型中选择一类等效模型, 作为待测等效 模型, 这里以选择第一类等效模型为例。  Step 23: Select one type of equivalent model from the above two types of equivalent models as the equivalent model to be tested, and take the first type equivalent model as an example.
步骤 24, 对于第一类等效模型, 选择一组初始参数, 并构造拟合的 目标函数, 设定目标函数的门限 T以及最大迭代次数。  Step 24: For the first type of equivalent model, select a set of initial parameters, and construct a fitted objective function, set the threshold T of the objective function and the maximum number of iterations.
目标函数和实际检测的输出亮度信号与通过 Gamma特性等效模型 确定的理论输出亮度信号之间的差值相关, 而且差值越小说明模型的等 效效果越接近实际情况。 目标函数的构造方法很多, 例如公式(9 )、 公 式 (10 )、 公式 ( 11 )或公式 ( 12 ), 下面仍以公式 ( 9 )和公式 ( 10 ) 为例说明。  The objective function and the actually detected output luminance signal are related to the difference between the theoretical output luminance signals determined by the Gamma characteristic equivalent model, and the smaller the difference is, the closer the effect of the model is to the actual situation. There are many construction methods for the objective function, such as formula (9), formula (10), formula (11), or formula (12). The following equation (9) and formula (10) are still used as examples.
步驟 25, 利用数学优化法寻找最适合的参数值。 首先对于第一类模 型的目标函数 FTl (p, a) = (Lp out (/) - PLin (0 - (1 - ,采用某种数学优化技 术, 例如爬山法、 0.618法、 最速下降法或共轭梯度法等求取其最小值。 这个过程其实是一个迭代过程, 在这个过程中不断调整参数 ρ和 α , 函 数值 F在不断下降, 当函数值下降到小于给定门限 Τ后, 则认为已经找 到了最小点。 将此时对应的参数 p和 α作为本次应用环境模型的真正参 数, 应当注意的是, 和单环节测量不同之处在于, 多环节参数 ρ和 α的 取值范围分别是: 0 < ρ≤1、 0。 同样, 如果对于 Fn Q^) =∑(^,( ( -^( ° ~ { -P)f经过 M次迭代 后, 还不能使得函数下降到门限 T以下, 则认为模型选择不对, 应该选 择第二类等效模型, 于是对于 (^) =∑(Lp out( - ( L,( + d - ^)2重复 上述步骤 24和步骤 25, 得到对应的模型参数 q和 β , 应当注意的是, 和单环节测量不同之处在于,多环节参数 ρ和 α的取值范围分别是: q≥l、 β≥0。 In step 25, the mathematical optimization method is used to find the most suitable parameter value. First, for the first class model, the objective function F Tl (p, a) = (L p out (/) - P L in (0 - (1 - , using some mathematical optimization techniques, such as hill climbing, 0.618, speed) The descending method or the conjugate gradient method is used to obtain the minimum value. This process is actually an iterative process. During this process, the parameters ρ and α are continuously adjusted, and the function value F is decreasing continuously. When the function value falls below a given threshold After that, I think I have already found At the smallest point. Taking the corresponding parameters p and α at this time as the real parameters of the application environment model, it should be noted that the difference between the single-link measurement and the multi-link parameters ρ and α are: 0 < ρ≤ 1, 0. Similarly, if F n Q^) = ∑(^, ( ( -^( ° ~ { -P)f after M iterations, can not make the function fall below the threshold T, then the model is considered wrong, should choose The second type of equivalent model, then repeat the above steps 24 and 25 for (^) = ∑(L p out ( - ( L, ( + d - ^) 2 ), and obtain the corresponding model parameters q and β, which should be noted. Yes, the difference from the single-link measurement is that the multi-link parameters ρ and α have the following values: q≥l, β≥0.
与确定单环节参数的方法相同, 为了进一步提高参数的精确性, 可 以在目标函数值 F下降到门限 Τ以下后, 仍然再迭代几次, 选择其中的 最小值对应的参数作为结果, 这会在一定程度上进一步提高参数的精 度。  In the same way as determining the single-link parameter, in order to further improve the accuracy of the parameter, after the objective function value F falls below the threshold ,, it is iterated several times, and the parameter corresponding to the minimum value is selected as the result, which will be To some extent, the accuracy of the parameters is further improved.
与确定单环节参数的方法相同, 模型类型的确定和参数的确定是同 时进行的, 在实际应用中, 等效模型的类型不止上述两类, 通过上述方 法可以在相关的所有等效模型找到最合适的一个。 第二实施例: 任意环节 Gamma特性的校正方法。  As with the method of determining the single-link parameters, the determination of the model type and the determination of the parameters are performed simultaneously. In practical applications, the types of the equivalent models are not limited to the above two types. By the above methods, the most relevant models can be found in all relevant models. The right one. Second Embodiment: A method of correcting the Gamma characteristic of any link.
基于第一实施例的确定伽玛特性等效模型及其参数的方法, 可以得 到伽玛特性等效模型的函数关系, 利用该函数的反函数构造出校正模 型, 就可以对单环节或多环节伽玛特性进行校正, 下面以多媒体信息系 统中的具体应用为例进行详细说明。  Based on the method for determining the gamma characteristic equivalent model and its parameters according to the first embodiment, the functional relationship of the gamma characteristic equivalent model can be obtained, and the inverse function of the function is used to construct the correction model, which can be used for single or multiple links. The gamma characteristics are corrected. The following is a detailed description of the specific application in the multimedia information system.
假设该多媒体信息系统中存在 Nt( Nt为大于等于 1的整数)个 Gamma 环节。 本发明的第二实施例包括以下步骤: Assume that there is N t (N t is an integer greater than or equal to 1) Gamma in the multimedia information system. Link. A second embodiment of the invention comprises the following steps:
步骤 31 ,确定校正环节插入点,将所述 Nt个环节划分为位于该校正 环节插入点之前的 Na个环节和位于该校正环节插入点之后的 Np个环 节, 其中 Na> 0、 Np > 0、 且 Na+Np=NtStep 31: Determine a correction link insertion point, and divide the N t links into N a links located before the insertion point of the correction link and N p links located after the insertion point of the correction link, where N a > 0, N p > 0, and N a + N p = N t .
如图 11所示,通常多媒体信息系统是多个 Gamma环节級联起来的, 对于不同情况, 例如情况 A和情况 B, 参加级联的环节千变万化。 一般 来说, 环节 1是摄像机 /摄像头, 而环节 Nt (最后一个)是显示器。 理论 上在任何两个环节之间都可以插入一个校正环节 (电路实现或者软件实 现), 甚至可以在最前面或最后面插入校正环节, 但是实际情况可能并 非如此, 例如在显示帧存 Gamma环节和显示 LUT Gamma环节之间就 无法插入校正环节。 因此, 通常可能存在 P个校正环节插入点。 本实施 例只要从上述 P个校正环节插入点中选择一个, 在该点插入校正环节, 即可实现全部的 Gamma校正。 As shown in FIG. 11, the multimedia information system is usually cascaded by multiple Gamma links. For different situations, such as Case A and Case B, the participation in the cascade is ever-changing. In general, link 1 is the camera/camera, and link N t (the last one) is the display. In theory, a correction link (circuit implementation or software implementation) can be inserted between any two links. Even the correction link can be inserted at the front or the end, but the actual situation may not be the case, for example, in the display frame to store the Gamma link and The correction link cannot be inserted between the LUT Gamma links. Therefore, there may usually be P correction link insertion points. In this embodiment, as long as one of the P correction point insertion points is selected, and the correction step is inserted at the point, all the gamma corrections can be realized.
对于情况 A, 本发明的一个例子是在摄像机和显示帧存之间加入校 正环节。  For Case A, an example of the present invention is to add a correction link between the camera and the display frame.
对于情况 B, 本发明的例子是:  For case B, an example of the invention is:
1 )对于本端视频 /图像, 在摄像机和显示帧存之间加入校正环节; 1) For the local video/image, add a correction link between the camera and the display frame memory;
2 )对于远端视频 /图像, 在解码器和显示帧存之间加入校正环节;2) For the far-end video/image, a correction link is added between the decoder and the display frame store;
3 )对于自环视频 /图像, 在摄像机和编码器之间加入校正环节, 或 者在解码器和显示帧存之间加入校正环节。 3) For self-loop video/images, add a correction link between the camera and the encoder, or add a correction link between the decoder and the display frame.
从这个校正环节插入点开始, 前面的环节个数为 Na个(环节 1到环 节 Na ), 后面的环节个数为 Np个(环节 Na+1到 Nt )。 有下列两种特例: 当 1^或1^等于零时, 对应于在最前面或最后面插入校正环节, 这时相 当于将系统看作一个具有多环节综合 Gamma特性进行校正; 当 Na或 Np等于 1时, 相当于对摄像机 /摄像头或者显示器进行单独校正。 令环节 1到环节 Na的 Na个环节的级联综合 Gamma特性是 Ga(.), 环节 Na+1到环节 Nt的 Np个环节的级联综合 Gamma特性是 Gp(.)。采用 第一实施例的方法, 可以方便并且精确地获得校正环节的模型。 需要说 明的是, 本实施例的方法不限于第一实施例中所述的的第一类和第二类 等效模型。对于其它等效模型,如果能够从数学上求出 Ga(.)和 Gp(.)以及 其反函数的解析形式( closed form ), 那么都适用本发明的子环节分解方 法。 Starting from the insertion point of this correction link, the number of previous links is N a (link 1 to link N a ), and the number of subsequent links is N p (links N a +1 to N t ). There are two special cases: When 1^ or 1^ is equal to zero, it corresponds to inserting the correction link at the front or the end, which is equivalent to treating the system as a multi-link integrated gamma characteristic for correction; when N a or N When p is equal to 1, it is equivalent to separately correcting the camera/camera or display. The cascaded integrated Gamma characteristic of the Na links of the link 1 to the link Na is G a (.), and the cascaded integrated Gamma characteristic of the N p links of the link N a +1 to the link N t is G p (.). With the method of the first embodiment, the model of the correction link can be obtained conveniently and accurately. It should be noted that the method of this embodiment is not limited to the first type and the second type equivalent model described in the first embodiment. For other equivalent models, the sub-block decomposition method of the present invention is applied if the mathematical form of G a (.) and G p (.) and the inverse form of the inverse function (closed form) are obtained.
另外, 本发明还可以采用其它一些形式的模型, 例如采用数据表形 式的模型, 该模型适用于 Ga(.)、 Gp(.)本身没有函数形式(例如采用查表 方法实现的, 其反函数显然也就没有解析形式) 的情况。 对于模型本身 就是以数据表的形式存在的, 那么其逆模型就是该数据表的逆表。 举例 来说, 一个表存在两列多行, 左列 (输入列)是输入信号的采样值, 即 待校正的信号值, 右列 (输出列)是对应的输出信号值, 即校正后的信 号值, 行数取决于采样点数, 并且行数越多校正结果越精确, 逆表就是 把左右两列对调得到的新数据表。 另外, 有时候为了提高表的精度, 还 需要在调换原表的左右两列后做一些处理。 例如, 原表的左列一般是均 匀间隔的, 比如相邻两个表项之间间隔是 0.01, 但是右列一般不是均匀 间隔的, 因此调换后, 逆表的左列就不是均匀间隔的, 查表可能不方便。 所以需要通过调整表项, 插入更多的点, 一方面使得表项更密, 一方面 使得左列均匀间隔, 从而可以提高表的精度。 In addition, the present invention may also adopt other forms of models, such as a model in the form of a data table, which is applicable to G a (.), G p (.) itself has no functional form (for example, implemented by a look-up table method, The inverse function obviously has no parsing form. For the model itself to exist in the form of a data table, then its inverse model is the inverse of the data table. For example, a table has two columns and multiple rows, the left column (input column) is the sampled value of the input signal, that is, the signal value to be corrected, and the right column (output column) is the corresponding output signal value, that is, the corrected signal. The value, the number of rows depends on the number of sampling points, and the more the number of rows, the more accurate the correction result. The inverse table is the new data table obtained by adjusting the left and right columns. In addition, sometimes in order to improve the accuracy of the table, you need to do some processing after swapping the left and right columns of the original table. For example, the left column of the original table is generally evenly spaced. For example, the interval between two adjacent entries is 0.01, but the right column is generally not evenly spaced, so after the swap, the left column of the inverse table is not evenly spaced. Checking the table may be inconvenient. Therefore, it is necessary to adjust more entries by inserting more points. On the one hand, the entries are made denser, and on the other hand, the left columns are evenly spaced, thereby improving the accuracy of the table.
步骤 32,根据第一实施例描述的方法,确定等效前 Na个环节 Gamma 特性的第一等效模型 Ga(.)及与其对应的第一逆模型 GM, 并确定等效 后 Np个环节 Gamma特性的第二等效模型 Gp(.)及与其对应的第二逆模型 Gpc(.), 得到校正子环节 Gac(.)和校正子环节 Gpc(.)。 Step 32: Determine, according to the method described in the first embodiment, a first equivalent model G a (.) of an equivalent pre-N a link Gamma characteristic and a first inverse model GM corresponding thereto, and determine an equivalent N p The second equivalent model G p (.) of the Gamma characteristic and the second inverse model G pc (.) corresponding thereto obtain the syndrome section G ac (.) and the syndrome section G pc (.).
对于校正子环节 Gae(.), 如果 Ga(.)属于综合第一类等效模型: Loul = Pa +(1-Pa) 0<Pa≤ \,aa >0 (13) 那么 Gac(.)模型采用其反函数: For the calibrator link G ae (.), if G a (.) belongs to the integrated first-class equivalent model: L oul = Pa +(1-P a ) 0< Pa ≤ \,a a >0 (13) Then the G ac (.) model uses its inverse function:
1 1 1  1 1 1
Loui = (—Lin + (1—— ) Pa≥l,aa >0 (14)
Figure imgf000023_0001
L oui = (—L in + (1—— ) Pa ≥ l, a a >0 (14)
Figure imgf000023_0001
如果 Ga(.)属于综合第二类等效模型: If G a (.) belongs to the synthetic second-class equivalent model:
 丄
w=(^A + (i- )^ 。≥ι,Α>ο (15) 那么 Gac(.)模型采用其反函数: w=(^A + (i- )^ .≥ι,Α>ο (15) Then the G ac (.) model uses its inverse function:
+ --) 9α≥ βα >0 (16) 对于校正子环节 Gpc(.), 如果 Gp(.)属于综合第一类等效模型: + --) 9 α ≥ β α >0 (16) For the calibrator link G pc (.), if G p (.) belongs to the integrated first-class equivalent model:
4," = ppL +(l-pp) 0<Pp≤\,ap >0 (17) 那么 Gpc(.)模型采用其反函数:
Figure imgf000023_0002
4," = p p L +(lp p ) 0< Pp ≤\, a p >0 (17) Then the G pc (.) model uses its inverse function:
Figure imgf000023_0002
如果 Gp(.)属于综合第二类等效模型: If G p (.) belongs to the synthetic second-class equivalent model:
 丄
Lout = (qpLin + (1 - qp) ^ >1,>5ρ >0 (19) 那么 Gpc(.)模型采用其反函数: 。„,=丄 +(1 -丄) qp≥\, p >0 (20) qP qP L out = (q p L in + (1 - q p ) ^ >1, >5 ρ >0 (19) Then the G pc (.) model uses its inverse function: „,=丄+(1 -丄) q p ≥\, p >0 (20) q P q P
步骤 33, 级联两个校正子环节构成校正环节, 利用该校正环节确定 所述 Na个环节最后输出信号的校正信号 , 并将该校正信号输入所述 Np 个环节, 从而实现对 Nt个环节的 Gamma校正。 Step 33, cascading two syndrome sections to form a correction link, using the correction link to determine a correction signal of the last output signal of the N a links, and inputting the correction signal into the N p links, thereby implementing N t Gamma correction for each link.
如图 12所示,校正环节 Gc(.)由子环节 Gac(.)和子环节 Gpc(.)按照 Gac(.) 在前、 Gpc(.)在后的顺序級联得到。 As shown in Fig. 12, the correction link G c (.) is obtained by sub-link G ac (.) and sub-link G pc (.) in the order of G ac (.) first and G pc (.).
建立 Gae(.)和 Gpe(.)模型后, 由多种方法具体实现其两者的级联, 本 实施例给出如下几种方法作为示例, 但本发明并不局限于这几种方法。 1 )直接计算法: 根据函数复合的定义, 按照 Gac(.)和 Gpe(.)的参数计 算 Ge(.)的参数。 因为指数 α和 β不一定是整数或者是整数的倒数, 复合 之后的函数形式一般涉及非整数指数的广义牛顿二项式级数展开After the G ae (.) and G pe (.) models are established, the cascading of the two is implemented by various methods. This embodiment provides the following methods as examples, but the present invention is not limited to these types. method. 1) Direct calculation method: According to the definition of function compound, the parameters of G e (.) are calculated according to the parameters of G ac (.) and G pe (.). Since the indices α and β are not necessarily integers or reciprocals of integers, the functional form after compounding generally involves a generalized Newtonian binomial expansion of non-integer exponents.
( generalized Netwon's binomial series expansion ), 含有无限多项, 计算 复杂, 并且造成计算误差。 为了计算方便, 可以截取前若干项进行计算。 然后根据这个复合模型和输入的亮度信号实时计算输出后的校正信号。 (Generalized Netwon's binomial series expansion ), containing an infinite number of multiples, computationally complex, and causing computational errors. For the convenience of calculation, the first few items can be intercepted for calculation. The output corrected signal is then calculated in real time based on this composite model and the input luminance signal.
简言之, 直接计算法就是利用 Gae(.)和 Gpc(.)的复合函数 Ge(.)计算 Na个环节的最后输出信号的校正信号。 In short, the direct calculation method is to use the composite function G e (.) of G ae (.) and G pc (.) to calculate the correction signal of the last output signal of the N a links.
2 ) 两步计算法: 首先计算 Gac(.)的校正的结果, 即输入亮度信号首 先经过 Gac(.)进行一次校正,校正结果再作为 Gpc(.)的输入进行二次校正, Gpc(.)的输出的二次校正后的亮度信号作为最后的校正结果。 2) Two-step calculation method: Firstly, the result of the correction of G ac (.) is calculated, that is, the input luminance signal is first corrected by G ac (.), and the calibration result is secondarily corrected as the input of G pc (.). The secondary corrected luminance signal of the output of G pc (.) is used as the final correction result.
筒言之, 两步计算法就是先利用 Gae(.)计算 Na个环节的最后输出信 号的一次校正信号, 再利用 Gpe(.)计算这个一次校正信号的二次校正信 号, 将二次校正信号作为所述校正信号。 In other words, the two-step calculation method is to use G ae (.) to calculate the primary correction signal of the last output signal of the Na links, and then use G pe (.) to calculate the secondary correction signal of the primary correction signal, which will be used twice. A correction signal is used as the correction signal.
3 )查表法: 按照 1 )或者 2 ), 对于输入亮度信号取值区间上计算足 够多的点, 记录其校正结果作为一个查表。 然后在进行校正的时候, 对 于需要校正的输入信号值, 通过查表荻得校正结果。 表项数越多 , 即样 本采集越密集, 查表的效果越精确。  3) Look up the table method: According to 1) or 2), calculate enough points for the input brightness signal value interval, and record the correction result as a look-up table. Then, when the correction is made, the calibration result is obtained by looking up the table for the input signal value that needs to be corrected. The more the number of entries, the denser the sample collection, the more accurate the lookup effect.
对于数据量大的视频数据, 根据直接计算法和两步计算法进行实时 计算的计算量很大, 查表法是最实际的方法。 表的结构形式一般包括两 列和多行, 其中待校正信号值为左列, 校正结果对应列在右列, 行数取 决与采样值的多少。 查表的方法是, 根据待校正信号值, 在表的左列中 查找, 如果找到, 则直接把对应的右列值作为查表的结果; 如果没有找 到, 则利用线性插值计算, 设待校正信号值是 a, 其位于 b、 c ( c>a>b ) 两个相邻的左列表项之间, b、 c对应的右列表项分别是 e, 那么最终 查表结果为 f = e + ^d。 For video data with a large amount of data, the calculation of real-time calculation according to the direct calculation method and the two-step calculation method is large, and the table lookup method is the most practical method. The structure of the table generally includes two columns and multiple rows, wherein the signal value to be corrected is the left column, and the correction result is correspondingly listed in the right column, and the number of rows depends on the sampled value. The method of looking up the table is to find in the left column of the table according to the signal value to be corrected, and if found, directly use the corresponding right column value as the result of the table lookup; if not, use the linear interpolation calculation to set the correction The signal value is a, which is located between b, c (c>a>b) and two adjacent left list items, and the right list items corresponding to b and c are respectively e, then finally The result of the lookup table is f = e + ^d.
c-b c-b  C-b c-b
简言之, 查表法就是预先根据所述直接计算法或两步计算法, 计算 出所述 Na个环节的最后输出信号的取值区间中的多个采样值对应的校 正值, 并将对应关系保存在一个数据表中, 然后通过查询该数据表确定 任意待校正值的校正值。 In short, the look-up table method is to calculate a correction value corresponding to a plurality of sample values in the value interval of the last output signal of the N a link according to the direct calculation method or the two-step calculation method, and The correspondence is stored in a data table, and then the correction value of any value to be corrected is determined by querying the data table.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均 应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are included in the spirit and scope of the present invention, should be included in the present invention. Within the scope of protection.

Claims

权利要求书 Claim
1、 一种确定伽玛 Gamma 特性等效模型及其参数的方法, 所述 Gamma特性等效模型用于等效环节中的 Gamma特性, 其特征在于, 该 方法包括以下步骤:  A method for determining a gamma Gamma characteristic equivalent model and a parameter thereof, wherein the Gamma characteristic equivalent model is used for a Gamma characteristic in an equivalent link, characterized in that the method comprises the following steps:
51. 将输入信号的 N个采样值 Lin(i)输入所述环节, 并检测所述环 节产生的 N个实际输出信号值 Lput(i), 其中, N为大于等于 1的整数, i为大于等于 0且小于等于 N-1的整数; 51. Input N sample values L in (i) of the input signal into the link, and detect N actual output signal values L p generated by the link. Ut (i), where N is an integer greater than or equal to 1, and i is an integer greater than or equal to 0 and less than or equal to N-1;
52. 在一组备选的等效模型中选择一个作为待测等效模型;  52. Select one of a set of alternative equivalent models as the equivalent model to be tested;
53. 对于所述待测等效模型, 选择一组初始参数及目标函数, 并设 定目标函数值的门限以及最大迭代次数;  53. For the equivalent model to be tested, selecting a set of initial parameters and an objective function, and setting a threshold of the objective function value and a maximum number of iterations;
54.根据所述待测等效模型计算所述 N个采样值对应的 N个理论输 出信号值 LMut(i), 并根据目标函数的计算表达式以及 Lput(i)和 LMut(i) 计算目标函数值; 54. Calculate N theoretical output signal values L M corresponding to the N sample values according to the equivalent model to be tested. Ut (i), and according to the calculation expression of the objective function and L p . Ut (i) and L M . Ut (i) calculate the objective function value;
55. 判断所述目标函数值是否等于或小于所述门限, 如果是, 则采 用所述待测等效模型为最终的等效模型, 并将最小的目标函数值对应的 参数作为该等效模型的参数, 结果本流程; 否则执行步骤 S6;  55. Determine whether the target function value is equal to or smaller than the threshold, and if yes, adopt the equivalent model to be tested as a final equivalent model, and use a parameter corresponding to the smallest objective function value as the equivalent model The parameters, the result of the process; otherwise, step S6;
56. 判断步骤 S4的执行次数是否到达所述最大迭代次数, 如果是, 则从其它尚未检测的备选等效模型中选择一个作为待测等效模型, 并返 回步骤 S3; 否则执行步驟 S7;  56. Determine whether the number of executions of the step S4 reaches the maximum number of iterations, and if so, select one of the other unrecognized alternative equivalent models as the equivalent model to be tested, and return to step S3; otherwise, perform step S7;
57. 利用数学优化方法调整所述参数, 返回步骤 S4。  57. Adjust the parameters using a mathematical optimization method and return to step S4.
2、 根据权利要求 1所述的方法, 其特征在于, 步骤 S1中所述 N个 采样值是间隔均匀的或间隔不均匀的。  2. The method according to claim 1, wherein the N sample values in step S1 are evenly spaced or unevenly spaced.
3、 如权利要求 1所述的方法, 其特征在于, 所述步骤 S5中, 在采 用所述待测等效模型为最终的等效模型之后进一步包括: 在预先设定的 循环次数内, 利用数学优化方法调整所述参数并计算所述目标函数值, 得到最小的目标函数值对应的参数。 The method according to claim 1, wherein in the step S5, after the adopting the equivalent model to be tested is the final equivalent model, the method further comprises: presetting Within the number of cycles, the mathematical optimization method is used to adjust the parameters and calculate the objective function value to obtain a parameter corresponding to the minimum objective function value.
4、 如权利要求 1所述的方法, 其特征在于, 所述目标函数为  4. The method of claim 1, wherein the objective function is
^ =∑ ( ( - ())2 或^ H I Lp out ( - ( 1。 ^ =∑ ( ( - ()) 2 or ^ HIL p out ( - (1.
5、 如权利要求 1所述的方法, 其特征在于, 所述 Gamma特性为单 环节 Gamma特性或多环节级联的综合 Gamma特性。 The method according to claim 1, wherein the Gamma characteristic is a single-link Gamma characteristic or a multi-link cascade integrated Gamma characteristic.
6、 如权利要求 1所述的方法, 其特征在于, 所述一组备选的等效模 型包括:  6. The method of claim 1 wherein the set of alternative equivalent models comprises:
所述 Gamma特性等效模型的函数关系式为 Loul = pL! a+(l~p) ,其中 该函数的定义域为区间 [0,1],值域为区间 [(Ι-ρ),Ι],该函数的反函数关系 式为 Κ丄 + (1—丄) ; 和 /或 The functional relationship of the Gamma characteristic equivalent model is L oul = pL ! a +(l~p) , where the domain of the function is the interval [0, 1] and the value range is the interval [(Ι-ρ), Ι], the inverse function of the function is Κ丄+ (1—丄) ; and/or
P P 所述 Gamma特性等效模型的函数关系式为 Lout
Figure imgf000027_0001
,其 中该函数的定义域为区间 [l-l/q,l],值域为区间 [0,1]; 则该函数的反函数 关系式为 U丄 丄) ;
The functional relationship of the Gamma characteristic equivalent model of PP is L out
Figure imgf000027_0001
Where the domain of the function is the interval [ll/q, l], and the range of values is the interval [0, 1]; then the inverse function of the function is U丄丄);
q q  q q
其中, Lin为输入信号值、 L。ut为输出信号值、 p和 α以及 q和 β分 别为参数; 并且当 Na=l或 Np=l 时, 0<ρ≤1、 α 1, q≥l、 β≥1; 当 Na >l或Np>l时, 0<p≤l、 o^O, q≥l、 β≥0。 Where L in is the input signal value, L. ut is the output signal values, p and q and [alpha] and β are parameters; and when N a = l, or N p = l, 0 <ρ≤1 , α 1, q≥l, β≥1; if N a When >l or Np>l, 0<p≤l, o^O, q≥l, β≥0.
7、如权利要求 1或 3所述的方法, 其特征在于, 所述数学优化方法 为爬山法、 0.618法、 最速下降法或共轭梯度法。  The method according to claim 1 or 3, wherein the mathematical optimization method is a hill climbing method, a 0.618 method, a steepest descent method or a conjugate gradient method.
8、 如权利要求 1所述的方法, 其特征在于, 步骤 S1中所述输入信 号的 Ν个采样值位于区间 [0,1]中。  8. The method according to claim 1, wherein one of the sample values of the input signal in step S1 is located in the interval [0, 1].
9、一种 Gamma特性校正方法,用于校正 Nt个环节的 Gamma特性, 其中 Nt为大于等于 1的整数, 其特征在于, 该方法包括以下步骤:9. A Gamma characteristic correction method for correcting the gamma characteristic of N t links, Where N t is an integer greater than or equal to 1, and the method includes the following steps:
A. 确定校正环节插入点, 将所述 Nt个环节划分为位于该校正环节 插入点之前的 Na个环节和位于该校正环节插入点之后的 Np个环节, 其 中 >^和 Np为大于等于 0的整数、 且 Na+Np=Nt; A. determining a correction link insertion point, dividing the N t links into N a links located before the insertion point of the correction link and N p links located after the insertion point of the correction link, where >^ and N p are An integer greater than or equal to 0, and N a +N p =N t ;
B. 确定等效于所述]^个环节 Gamma特性的等效模型及与其对应 的逆模型, 并且确定等效于所述 Np个环节 Gamma特性的等效模型及与 其对应的逆模型; B. determining an equivalent model equivalent to the Gamma characteristic of the link and an inverse model corresponding thereto, and determining an equivalent model equivalent to the Gamma characteristic of the N p links and an inverse model corresponding thereto;
C. 级联所述 Na个环节 Gamma特性的逆模型和所述 Np个环节 Gamma特性的逆模型构造校正环节模型 ,利用该校正环节模型确定所述 Na个环节最后输出信号的校正信号, 并将该校正信号输入所述 Np个环 节。 Inverse model correction part configured to model the inverse model of Gamma characteristic of the cascaded C. and the N a segment of N p the Gamma characteristics of the link, using the correction model determines a correction signal segment last output signal of the part of the N a And inputting the correction signal into the Np links.
10、如权利要求 9所述的方法,其特征在于,所述 Nt个环节的 Gamma 特性为多媒体信息系统中的 Nt个环节的 Gamma特性; 所述信号为亮度 信号。 10. The method as claimed in claim 9, characterized in that the number N t of the Gamma characteristic aspects multimedia information system links the N t Gamma characteristics; the signal is a luminance signal.
11、 根据权利要求 10所述的方法, 其特征在于, 在步骤 A中确定 校正环节插入点位于摄像设备和显示帧存之间、 或摄像设备和编码器之 间或解码器和显示帧存之间。  11. The method according to claim 10, wherein in step A it is determined that the correction link insertion point is between the imaging device and the display frame store, or between the camera device and the encoder or between the decoder and the display frame store. .
12、 如权利要求 9所述的方法, 其特征在于, 所述等效模型采用数 据表形式 , 所述逆模型采用与该数据表对应的逆表形式。  12. The method according to claim 9, wherein the equivalent model is in the form of a data table, and the inverse model adopts an inverse table form corresponding to the data table.
13、 如权利要求 9所述的方法, 其特征在于, 所述等效模型采用函 数形式, 所述逆模型采用与等效模型的函数对应的反函数形式。  13. The method according to claim 9, wherein the equivalent model takes the form of a function, and the inverse model adopts an inverse function form corresponding to a function of the equivalent model.
14、 如权利要求 13所述的方法, 其特征在于, 步骤 B中所述确定 等效模型的步骤包括:  14. The method according to claim 13, wherein the step of determining an equivalent model in step B comprises:
B1. 将输入信号的 N个采样值 Lin(i)输入所述环节, 并检测所述环 节产生的 N个实际输出信号值 Lput(i), 其中, N为大于等于 1的整数, i为大于等于 0且小于等于 N-l的整数; B1. Input N sample values L in (i) of the input signal into the link, and detect N actual output signal values L p generated by the link. Ut (i), where N is an integer greater than or equal to 1, i is an integer greater than or equal to 0 and less than or equal to N1;
B2. 在一组备选的等效模型中选择一个作为待测等效模型;  B2. Select one of a set of alternative equivalent models as the equivalent model to be tested;
B3. 对于所述待测等效模型, 选择一组初始参数及目标函数, 并设 定目标函数值的门限以及最大迭代次数;  B3. For the equivalent model to be tested, select a set of initial parameters and an objective function, and set a threshold of the objective function value and a maximum number of iterations;
B4. 根据所述待测等效模型计算所述 N个采样值对应的 N个理论 输出信号值 LMut(i),并根据目标函数的计算表达式以及 Lput(i)和 LMut(i) 计算目标函数值; B4. Calculate N theoretical output signal values L M corresponding to the N sample values according to the equivalent model to be tested. Ut (i), and according to the calculation expression of the objective function and L p . Ut (i) and L M . Ut (i) calculate the objective function value;
B5. 判断所述目标函数值是否等于或小于所述门限, 如果是, 则采 用所述待测等效模型为最终的等效模型, 并将最小的目标函数值对应的 参数作为该等效模型的参数, 结果本流程; 否则执行步驟 B6;  B5. determining whether the target function value is equal to or smaller than the threshold, and if yes, adopting the equivalent model to be tested as a final equivalent model, and using a parameter corresponding to the smallest objective function value as the equivalent model The parameters, the result of this process; otherwise, step B6;
B6. 判断步骤 B4的执行次数是否到达所述最大迭代次数, 如果是, 则从其它尚未检测的备选等效模型中选择一个作为待测等效模型, 并返 回步骤 B3; 否则执行步骤 B7;  B6. It is determined whether the number of executions of step B4 reaches the maximum number of iterations, and if so, one of the other alternative model models that have not been detected is selected as the equivalent model to be tested, and returns to step B3; otherwise, step B7 is performed;
B7. 利用数学优化方法调整所迷参数, 返回步驟 B4。  B7. Adjust the parameters using the mathematical optimization method and return to step B4.
15、 根据权利要求 14所述的方法, 其特征在于, 步骤 B1中所述 N 个采样值是间隔均匀的或间隔不均匀的。  The method according to claim 14, wherein the N sample values in step B1 are evenly spaced or unevenly spaced.
16、 如权利要求 14所述的方法, 其特征在于, 所述步骤 B5中, 在 采用所述待测等效模型为最终的等效模型之后进一步包括: 在预先设定 的循环次数内, 利用数学优化方法调整所述参数并计算所述目标函数 值, 得到最小的目标函数值对应的参数。  The method according to claim 14, wherein in the step B5, after the using the equivalent model to be tested as the final equivalent model, the method further comprises: utilizing within a preset number of cycles The mathematical optimization method adjusts the parameter and calculates the objective function value to obtain a parameter corresponding to the minimum objective function value.
17、 如权利要求 14所述的方法, 其特征在于, 步骤 B中所述确定 与等效模型对应的逆模型的步骤包括:  The method according to claim 14, wherein the step of determining the inverse model corresponding to the equivalent model in step B comprises:
将等效模型的参数带入对应的反函数中, 得到逆模型的函数。  The parameters of the equivalent model are brought into the corresponding inverse function to obtain the function of the inverse model.
18、 如权利要求 14或 17所述的方法, 其特征在于, 在步骤 C中采 用直接计算法、 两步计算法或查表法来构造校正环节模型。 19、 如权利要求 14或 17所述的方法, 其特征在于, 在步骤 C中采 用查表法来构造校正环节模型, 并且在所述查表法中: 18. The method according to claim 14 or 17, wherein in step C, a direct calculation method, a two-step calculation method or a table look-up method is used to construct the correction link model. 19. The method according to claim 14 or 17, wherein in step C, a look-up table method is used to construct a correction link model, and in the look-up table method:
当输入的待校正值在该查表法所用的数据表中时, 则直接通过查表 获得对应的校正值;  When the input to be corrected value is in the data table used in the lookup table method, the corresponding correction value is directly obtained by looking up the table;
当输入的待校正值不在所述数据表中时, 则根据数据表中其它的待 校正值采取线性插值方法计算与输入的待校正值对应的校正值。  When the input value to be corrected is not in the data table, a linear interpolation method is used according to other values to be corrected in the data table to calculate a correction value corresponding to the input value to be corrected.
20、 如权利要求 14所述的方法, 其特征在于, 所述目标函数为  20. The method of claim 14, wherein the objective function is
N— 1 N-1  N-1 N-1
F =∑ ( () - (0)2 或 =∑ 1 Lp out (0 - (0 I。 F =∑ ( () - (0) 2 or =∑ 1 L p out (0 - (0 I.
21、如权利要求 14所述的方法, 其特征在于, 所述一组备选的等效 模型包括: 21. The method of claim 14 wherein said set of alternative equivalent models comprises:
所述 Gamma特性等效模型的函数关系式为 Lout = PLin a + (1 - ,其中 该函数的定义域为区间 [0,1],值域为区间 [(l-p),l],该函数的反函数关系 式为 K丄 ^+(1—丄^ ; 和/或 The functional relationship of the Gamma characteristic equivalent model is L out = P L in a + (1 - , where the domain of the function is the interval [0, 1], and the range is the interval [(lp), l], The inverse function of the function is K丄^+(1—丄^ ; and/or
P P 所述 Gamma特性等效模型的函数关系式为 Lout = (qLin + ,其 中该函数的定义域为区间 [l-l/q,l],值域为区间 [0,1]; 则该函数的反函数 关系式为 = +(1-丄) ; The functional relationship of the Gamma characteristic equivalent model of PP is L out = (qL in + , where the domain of the function is the interval [ll/q, l], and the range is the interval [0, 1]; then the function The inverse function relation is = +(1-丄);
q q  q q
其中, Lin为输入信号值、 L。ut为输出信号值、 p和 a以及 q和 β分 别为参数; 并且当 Na=l或 Np=l 时, 0<p≤l、 o^l, q≥l、 β>1; 当 Na >1或^>1时, 0<p≤l、 c^O, q≥l、 β≥0。 Where L in is the input signal value, L. Ut is the output signal value, p and a, and q and β are parameters respectively; and when N a = l or N p = l, 0 < p ≤ l, o ^ l, q ≥ l, β >1; When a >1 or ^>1, 0<p≤l, c^O, q≥l, β≥0.
22、 如权利要求 14或 16所述的方法, 其特征在于, 所述数学优化 方法为爬山法、 0.618法、 最速下降法或共轭梯度法。  The method according to claim 14 or 16, wherein the mathematical optimization method is a hill climbing method, a 0.618 method, a steepest descent method or a conjugate gradient method.
23、 如权利要求 14所述的方法, 其特征在于, 步骤 B1中所述输入 信号的 N个采样值位于区间 [0,1]中。 The method according to claim 14, wherein the input in step B1 is The N samples of the signal are located in the interval [0, 1].
PCT/CN2006/000710 2005-06-30 2006-04-18 Method for gamma character equivalent model and parameter determination and gamma correction WO2007003086A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200510080253.5 2005-06-30
CNB2005100802535A CN100527856C (en) 2005-06-30 2005-06-30 Gamma characteristic correcting method

Publications (1)

Publication Number Publication Date
WO2007003086A1 true WO2007003086A1 (en) 2007-01-11

Family

ID=37578951

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/000710 WO2007003086A1 (en) 2005-06-30 2006-04-18 Method for gamma character equivalent model and parameter determination and gamma correction

Country Status (2)

Country Link
CN (1) CN100527856C (en)
WO (1) WO2007003086A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047869B (en) * 2006-06-15 2011-04-27 华为技术有限公司 Method and device for correction gamma property of video communication
CN108628715B (en) * 2018-03-20 2022-01-28 海信视像科技股份有限公司 Display effect correction method and device of display equipment
CN110491336B (en) * 2019-08-27 2021-02-09 武汉精立电子技术有限公司 Gamma adjustment method and system for display module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05219412A (en) * 1991-07-22 1993-08-27 Internatl Business Mach Corp <Ibm> Image display device and operating method thereof
JPH07264406A (en) * 1994-03-18 1995-10-13 Oki Electric Ind Co Ltd Gamma correction method for image reader
US6441870B1 (en) * 1998-12-22 2002-08-27 Gateway, Inc. Automatic gamma correction for multiple video sources
CN1507188A (en) * 2002-12-10 2004-06-23 深圳市中兴通讯股份有限公司 Adaptive carrier inhibiting method for multiple-carrier linear power amplifier

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05219412A (en) * 1991-07-22 1993-08-27 Internatl Business Mach Corp <Ibm> Image display device and operating method thereof
JPH07264406A (en) * 1994-03-18 1995-10-13 Oki Electric Ind Co Ltd Gamma correction method for image reader
US6441870B1 (en) * 1998-12-22 2002-08-27 Gateway, Inc. Automatic gamma correction for multiple video sources
CN1507188A (en) * 2002-12-10 2004-06-23 深圳市中兴通讯股份有限公司 Adaptive carrier inhibiting method for multiple-carrier linear power amplifier

Also Published As

Publication number Publication date
CN100527856C (en) 2009-08-12
CN1889693A (en) 2007-01-03

Similar Documents

Publication Publication Date Title
US11074882B2 (en) Method and device for adjusting grayscale of display panel
US20160329027A1 (en) Image processing device with image compensation function and image processing method thereof
TWI413101B (en) Control method for improving the luminous uniformity and related luminosity calibrating controller and display device
CN109253862B (en) Chroma measurement method based on neural network
EP4036841A1 (en) Image processing method and apparatus
US20030039404A1 (en) Image processing
WO2020135224A1 (en) Color space mapping method and device, computer readable storage medium and apparatus
WO2007003086A1 (en) Method for gamma character equivalent model and parameter determination and gamma correction
CN101763802A (en) Image strengthening method and device for panel display
CN101034538A (en) Gamma distortion calibration device and method using digital signal processing
CN112468793B (en) Color adjusting method and device of OLED screen and computer readable storage medium
WO2016206247A1 (en) Method and drive circuit for correcting lcd display effect and liquid crystal display device
EP1906673A1 (en) Method, system and terminal for negotiating to correct the gamma characteristic
KR100456632B1 (en) Image-based lens distortion correction method and apparatus
WO2020235109A1 (en) Image display device, image display system, image display method, and computer program
CN101031091B (en) Method and apparatus for correcting video-flow gamma characteristics of video telecommunication terminal
CN100446464C (en) Method for correcting video stream gamma characteristic
CN100518333C (en) Emendation method and apparatus for gamma characteristic of video communication
KR100970621B1 (en) Image compensation apparatus
CN114827583A (en) System and method for objective video quality assessment in lightweight real-time video communication
US7447357B2 (en) Apparatus and method for adjusting inputted image on the basis of characteristics of display system
KR100939364B1 (en) The system and method for searching image
WO2007059671A1 (en) A video signal capturing apparatus
KR20080101255A (en) The system and method for searching moving picture
US8743234B1 (en) Video gamma correction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06722359

Country of ref document: EP

Kind code of ref document: A1