Non-linear signal processing

Abstract: A non-linear circuit having a transfer which is adjustable per amplitude segment of an input signal (Yi) comprises a segmenting circuit (11..15, 21..25) for obtaining a plurality of amplitude segment signals (Y1..Y5) from the input signal (Yi), a non-linear segment amplifier circuit (31..35) coupled to the segmenting circuit (11..15, 21..25) for separately multiplying segments (Y1..Y5) of the input signal (Yi) by respective segment gain factors (HM1..HM5) in dependence upon a common gain factor (HMa) derived from the segment gain factors (HM1..HM5) and on the basis of the amplitude segment signals (Y1..Y5) for supplying a signal (Y''s) which is adjustable per amplitude segment of the input signal (Yi). The non-linear circuit may further comprise an output circuit (37, 39) coupled to the non-linear segment amplifier circuit (31..35) for supplying an amplified output signal (Yhm), the amplification of which with respect to the input signal (Yi) being adjustable per amplitude segment of the input signal (Yi).

Description: The invention relates to non-linear signal processing having a transfer which is adjustably dependent on the amplitude of an input signal. In a digital circuit, such a non-linear signal processing can be realised in a very simple manner by means of a memory operating as a look-up table. However, in an analog circuit, a non-linear circuit having a transfer which is adjustably dependent on the amplitude of an input signal cannot be realised in an obvious manner. EP-A-0 382 100 discloses a gamma correction device which comprises a classifying circuit for dividing an input video signal into a plurality of level ranges according to a plurality of signal levels, a computing circuit for computing the region of the video signal within each of the level ranges obtained by the classifying circuit, and a gamma correction control circuit which is arranged to have the gamma correction characteristic thereof controlled, according to each region computed by the computing circuit, to gamma-correct the input video signal and to output the gamma-corrected video signal. This device shows the disadvantage that a period of time is required for computing the region according to the level range of the video signal. Therefore, the gamma-correction cannot be carried out in real time. DE-A-42 37 420 discloses an automatic image-tone control circuit and method for controlling image brightness. An input-output characteristic having an arbitrary line graph is obtained by plural gradient adjusting circuits in response to frequencies of appearance of the brightness of the luminance which are detected by a plural brightness frequency detection circuits. Each gradient adjusting circuit comprises an adjusting current generation circuit, and an adding circuit for adding an adjusting current from the corresponding adjusting current generation circuit to other adjusting currents from adjusting current generation circuits of lower ranking gradient adjusting circuit, which other adjusting currents are weighted by factors depending on the difference in rank between the present gradient adjusting circuit and the respective lower ranking gradient adjusting circuit. Each gradient adjusting circuit further comprises a gradient adjusting current generation circuit for multiplying all of the input signal by a factor which depends on an output signal of the corresponding adding circuit. This results in a rather complex circuit with a limited flexibility. It is, inter alia , an object of the invention to provide a simple and flexible analog non-linear signal processing having a transfer which is adjustably dependent on the amplitude of an input signal. To this end a first aspect of the invention provides a non-linear circuit having a transfer which is adjustable per amplitude segment of an input signal, as defined in claim 1. A second aspect of the invention provides a method as defined in claim 6. Advantageous embodiments are defined in the sub-claims. According to a principal aspect, the invention provides a non-linear circuit having a transfer which is adjustable per amplitude segment of an input signal comprises a segmenting circuit for obtaining a plurality of amplitude segment signals from the input signal, a non-linear segment amplifier circuit coupled to the segmenting circuit for separately multiplying segments of the input signal by respective segment gain factors in dependence upon a common gain factor derived from the segment gain factors on the basis of the amplitude segment signals for supplying a signal which is adjustable per amplitude segment of the input signal. The non-linear circuit may further comprise an output circuit coupled to the non-linear segment amplifier circuit for supplying an amplified output signal, the amplification of which with respect to the input signal being adjustable per amplitude segment of the input signal. Such a circuit may be used advantageously as a non-linear amplifier in an analog picture enhancement circuit which, based on a measured histogram, adjusts the amplification of the non-linear amplifier per histogram segment in dependence upon a measured histogram segment value. As in accordance with the present invention, each segment of the input signal is separately treated by the non-linear segment amplification means of claim 1 (or in the non-linearly multiplying step of claim 6), a non-linear signal processing is obtained which is simpler and more flexible than in the prior art. The use of the common gain factor, which can be (weighted) average of (weighted) sum of the segment gain factors, has appeared to be a very easy and simple means for ensuring that the overall transfer of the non-linear circuit has smooth transitions between the respective segments. These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. In the drawings: Fig. 1 shows a first embodiment of a non-linear amplifier according to the invention; Fig. 2 shows an embodiment of a gate circuit for use in the non-linear amplifier shown in Fig. 1; Fig. 3 shows a second embodiment of a non-linear amplifier according to the invention; and Fig. 4 shows some diagram to explain the operation of the non-linear amplifier of Fig. 3. In the embodiment of Fig. 1, an input signal Yi (for example, a luminance signal) is applied to five segment gate circuits 11-15. A different number of segments is alternatively possible; the number of 5 appeared to yield good results for analog picture enhancement using histogram conversion. The segments may be of equal size or have arbitrary lengths; in the latter case, however, certain modifications should be applied with respect to the following description. Gate boundary inputs of the segment gate circuits 11-15 receive voltages V0-V5 from terminals of a resistance ladder 21-25 to which a current I is applied and whose lowest voltage V0 is a black level reference voltage Ybref and the highest voltage V5 is equal to V0+I*(R21+R22+R23+R24+R25). The gate circuit 1x supplies a signal Yx which is equal to V(x-1) if Yi ≤ V(x-1), which is equal to Yi if V(x-1) ≤ Yi ≤ Vx, and which is equal to Vx if Yi 2≥ Vx, with x = 1..5. The signals Y1-Y5 are applied to first inputs 1 of differential amplifiers 31-35 which receive the voltages V0-V4 at second inputs 2. Third inputs 3 of the differential amplifiers (multipliers) 31-35 receive bias voltages HM1-HM5 which may originate from measured histogram segment values in a preferred application of the non-linear amplifier according to the invention. Fourth inputs 4 of the differential amplifiers 31-35 receive the mean value HMa of the bias voltages HM1-HM5; for segments of arbitrary lengths, each bias voltage is to be weighted by a factor which depends on the relative length of the segment in the determination of HMa. The products Y''1-Y''5 at the outputs of the differential amplifiers (multipliers) 31-35 are obtained in accordance with the formula Output = (Input_1 - Input_2) * (Input_3 - Input_4) * K. The signal Y"5 is thus obtained in accordance with Y"5 = (Y5-V4)*(HM5-HMa)*K. Here, K is a constant which is preferably equal to 0.6. The difference term Vx at the second inputs 2 of the differential amplifiers 31-35 ensures that the amplitudes Y(x+1) which are equal to the lower limit Vx of the relevant segment (which is the case when the amplitude Yi of the input signal is smaller than or equal to this lower limit Vx) do not lead to a contribution in the output signal of the differential amplifier 3x. Differential amplifiers (multipliers) 31-35 as described above are known as Gilbert cells and commercially available (for example, Motorola IC MC1495L). The output signals Y"1-Y"5 of the differential amplifiers 31-35 are added to a sum signal Y"s by interconnecting the outputs of the differential amplifiers. The sum signal Y"s is applied to a differential amplifier 37 for obtaining a term Y" in accordance with Y" = (Y"s-V0)*(V0-Y"ctrl) in which Y"ctrl is a bias voltage. The term Y" is added to the input signal Yi in an adder 39 for obtaining an output signal Yhm which is thus obtained from the input signal Yi by non-linear amplification by gain factors HM1...HM5 which are adjustable per amplitude segment V0-V1...V4-V5 of the input signal Yi. Due to the segmented multiplication by factors HMx-HMa (x = 1..5) it is achieved that the gain characteristic always passes through the points (0, 0) and (Vmax, Vmax) independent of the bias voltages HM1-HM5, with Vmax being the maximally allowed value of the input signal Yi. It is thereby also achieved that the non-linear amplification is obtained by means of an addition of a correction term Y" to the input signal Yi, so that the greater part Yi of the output signal Yhm is subjected to a minimal number of noise-introducing circuit elements. Fig. 2 shows an embodiment of a gate circuit 1x (x = 1..5) for use in the non-linear amplifier of Fig. 1. The lower limit voltage V(x-1) is applied to a base of a transistor T1 of an NPN differential amplifier pair T1, T2 whose collectors are connected to a positive power supply voltage +V and whose interconnected emitters are connected to a negative power supply voltage -V via resistor R1. The input voltage Yi is applied to the base of the transistor T2. The voltage Ym at the emitters of the transistors T1, T2 is the maximum value of the lower limit voltage V(x-1) and the input signal Yi. The emitters of the transistors T1, T2 are connected to the base of a transistor T3 of a PNP differential amplifier pair T3, T4 whose collectors are connected to the negative power supply voltage -V and whose interconnected emitters are connected to the positive power supply voltage +V via a resistor R2. The upper limit voltage Vx is applied to the base of the transistor T4. The output voltage Yx, which is equal to the minimum value of the upper limit voltage Vx and the voltage Ym, can be derived from the emitters of the transistors T3, T4. Fig. 3 shows a second embodiment of a non-linear amplifier according to the invention, which is particularly suitable for realisation in CMOS. To determine within which of the five amplitude segments (having an equal or arbitrary size) the input signal Yi is present, the input signal Yi is applied to first inputs of a number n (for example, five) comparators 51..5n. Second inputs of the comparators 51..5n are connected to a resistance ladder 21..2n via buffer amplifiers 41..4n. A current which is supplied by a current source I coupled to one end of the resistance ladder, flows through the resistance ladder 21..2n. The lowest reference voltage level Vbref (for example, a black level reference voltage) is applied to the other end of the resistance ladder 21..2n; the other terminals of the resistance ladder convey each time higher voltages V1..Vn. Outputs of the comparators 21...2n are connected to first inputs of logic NOR circuits 61..6n, second inputs of which are connected to ground and to the outputs of the comparators 61..6(n-1), respectively. Output signals S1..Sn of the NOR circuits 61..6n indicate within which amplitude segment the instantaneous signal Yi is present. The amplitude segment indication signals S1..Sn may be applied to a histogram measuring circuit 67 for obtaining bias voltages HM1..HMn, as well as their mean value HMa, for adjusting the gain characteristic of the non-linear amplifier. However, it is irrelevant for the operation of the non-linear amplifier whether the bias voltages HM1..HMn are obtained by means of a histogram measurement or in another way. The bias voltages HM1..HMn are applied to a summing circuit 69 for determining sum signals ΣM1..ΣMn in accordance with the formulas ΣM1 = 0, ΣM2 = HM1-HMa and ΣMi = (HM1-HMa) + .. + (HM i-1 -HMa) for i ≥ 3. To enable correct operation by CMOS switches, the mean histogram value HMa is added to each of the signals ΣMx so as to obtain positive values ΣMx' = ΣMx + HMa, with ΣM1' = HMa, ΣM2' = HM1, ΣM3' = HM1 + HM2 - HMa, etc. If the segments have arbitrary lengths, the formulas for ΣMi should be adapted in such a way that each difference HMx-HMa is weighted by the ratio between the length of the relevant segment and the shortest segment length. Let it be assumed that there are 5 segments whose lengths li are in a ratio of 1:2:4:2:1. The factors HM2-HMa and HM4-HMA should then be multiplied by 2/1, and the factor HM3-HMA should be multiplied by 4/1. Moreover, it holds for the mean histogram value HMa that the mean histogram value HMa is equal to Σ [li * HMi] / Σ li, or [(1*0)+(2*1)+(4*3)+ (2*1)+(1*0)]/10 = 1.6 if the histogram values HM1...HM5 are successively, for example 0, 1, 3, 1, 0, so that the lengths of the segments are taken into account also when the mean histogram value HMa is determined. The input signal Yi is further applied to a first input 1 of a differential amplifier 71 which may be of the same type as the differential amplifiers 31..3n shown in Fig. 1. One of the voltages V0..V(n-1) is applied to a second input 2 of the differential amplifier 71 via switches which are controlled by the amplitude segment indication signals S1..Sn. It holds that the voltage V(x-1) is applied to the second input of the differential amplifier 71 via the switch controlled by the amplitude segment indication signal Sx, with x = 1..n, if the instantaneous input signal Yi falls within the amplitude segment associated with the amplitude segment indication signal Sx. One of the bias voltages HM1..HMn is applied to a third input 3 of the differential amplifier 71 via switches which are controlled by the amplitude segment indication signals S1..Sn. It holds that the bias voltage HMx is applied to the third input 3 of the differential amplifier 71 via the switch controlled by the amplitude segment indication signal Sx, with x = 1..n, if the instantaneous input signal Yi falls within the amplitude segment associated with the amplitude segment indication signal Sx. The mean value HMa of the bias voltages HM1..HMn is applied to a fourth input 4 of the differential amplifier 71. The single differential amplifier 71 with the series of switches controlled by the amplitude segment indication signals S1..Sn at the inputs 2 and 3, is equivalent to the separate differential amplifiers 31-35 in Fig. 1. The differential amplifier 71 amplifies the difference signal Yi-Vx of a segment as a function of HMx-HMa, in which the control signal value HMx and the voltage Vx associated with the amplitude segment x within which the instantaneous input signal Yi is present, are applied to the differential amplifier 71 via the switches controlled by the amplitude segment indication signal Sx. Each time, the signal ΣM1'..ΣMn' associated with the current amplitude segment is applied to a first input 1 of a differential amplifier 73 via switches controlled by the signals S1..Sn. The signal HMa is also applied to the second input 2 of the differential amplifier 73. The reference voltage Vbref is applied to a third input 3 of the differential amplifier 73. A bias voltage obtained by means of a potentiometer R3 is applied to a fourth input 4 of the differential amplifier 73. The differential amplifier 73 multiplies ΣMx'-HMa = ΣMx by an adjustable factor which is dependent on Ybref and the resistor R3. An output signal YM2 of the differential amplifier 73 is added to an output signal YM1 of the differential amplifier 71 by means of an adder 75. The output signal Y'' of the adder 75 is applied to the adder 39 via a controllable amplifier 77, for addition to the input signal Yi in order to obtain the non-linearly processed output signal Yhm. Fig. 4 shows some diagrams to explain the non-linear amplifier of Fig. 3. Diagram A shows a possible histogram obtained from the video signal. Diagram D shows an input signal Yi by means of a thin line (which signal falls outside the measuring window of the histogram measurement). Diagram B shows the output signal YM1 of the amplifier 71 as a function of the difference between the input signal Yi and the lower limit Vx of the current histogram segment on the one hand and the difference between the current histogram value HMx and the mean histogram value HMa on the other hand: where the histogram value HMx is zero, the amplifier 71 has a negative transfer with slope 1; where the histogram value HMx is equal to the mean value HMa, the amplifier 71 has an output signal which is equal to zero; and where the histogram value HMx is twice the mean value HMa above this mean value HMa, the amplifier 71 has a positive transfer with slope 2. Diagram C shows, by means of a solid line, the desired correction signal Y'' which must be added to the input signal Yi so as to obtain the non-linearly amplified output signal Yhm, and a broken line shows the output signal YM2 of the amplifier 73 which must be added to the output signal YM1 of the amplifier 71 so as to obtain the desired correction signal Y''. This output signal YM2 of the amplifier 73 is equal to the sum of the previous histogram values considered with respect to the mean histogram value HMa. Diagram D shows the output signal Yhm = Yi + Y'' of the non-linear amplifier of Fig. 3 by means of a fat line. In other words, the embodiment shown in Fig. 3 of the non-linear amplifier having a gain which is adjustable per amplitude segment of an input signal Yi according to the invention, comprises a segmenting circuit 21..6n for obtaining a plurality of amplitude segment signals S1..Sn from the input signal Yi, a non-linear segment amplifier circuit 71..77 coupled to the segmenting circuit 21..6n for multiplying the input signal Yi by respective segment gain factors HM1. .HM5 on the basis of the amplitude segment signals S1..S5 for supplying a signal Y'' which is adjustable per amplitude segment of the input signal Yi, and an output circuit 39 coupled to the non-linear segment amplifier circuit 71..77 for supplying an amplified output signal Yhm which is adjustable per amplitude segment of the input signal Yi. In this respect it should be noted that in the embodiment of Fig. 3, the amplitude segment signals Sx are an indication of the amplitude segment within which the instantaneous input signal Yi is present, while in the embodiment of Fig. 1 the amplitude segment signals Yx are equal to that part of the input signal Yi which falls within the amplitude segment indicated by the number x. For both embodiments shown in Figs. 1, 3 it holds that, in principle, any non-linear transfer can be realised by means of the (possibly externally applied) segment gain factors HM1..HM5. Moreover, by choosing unequal segment lengths, a desired transfer characteristic of the non-linear amplifier may be obtained also for a very small number of segments. Because of the small number of multipliers, the non-linear amplifier shown in Fig. 3 is also suitable for a large number of histogram segments, as the switches additionally required in the circuit of Fig. 3 as compared with those in the circuit of Fig. 1 occupy only a small space on an integrated circuit. It is to be noted that the embodiments described hereinbefore elucidate instead of limit the invention and that those skilled in the art will be able to design many alternative embodiments without passing beyond the scope of the appendant claims. For example, it is possible to have the non-linearity of the non-linear amplifier depend on the statistical deviation (standard deviation) of the histogram values HM1..HM5 in that the correction term Y'' is multiplied by or added to a value dependent on the statistical deviation before this correction term is added to the input signal Yi. A too large non-linearity at a high statistical deviation can thereby be prevented, and an extra amplification of the correction term Y'' can be obtained at a low statistical deviation. A better adaptation to the sensitivity of the human eye may be obtained by excluding the histogram segment HM5 of the largest amplitude value from the computation of the statistical deviation. This correction term adaptation based on the standard deviation may alternatively be effected in a digital non-linear circuit.

Claims: A non-linear processing circuit having a transfer which is adjustable per amplitude segment of an input signal (Yi), the circuit comprising segmenting means (11..25; 21.. 6n) for obtaining a plurality of amplitude segments (Y1..Y5; S1..S5) each having a corresponding segment length from the input signal (Yi); means for supplying a plurality of segment gain factors (HM1..HM5) per amplitude segment of the input signal (Yi), and for supplying a common gain factor (HMa) being formed by a weighted average or a weighted sum of said plurality of segment gain factors (HM1..HM5) with weights depending on said corresponding segment lengths; and non-linear segment amplification means (31..35; 71..77) coupled to the segmenting means (11..25) for separately multiplying said amplitude segments (Y1..Y5; Yi-Vx) by respective reduced segment gain factors obtained by subtracting said common gain factor (HMa) from respective ones of said plurality of segment gain factors (HM1..HM5), to supply a non-linearly processed signal (Y"s) which is adjustable per amplitude segment of the input signal (Yi). A non-linear circuit as claimed in Claim 1, further comprising output means (37, 39) coupled to the non-linear segment amplification means (31...35; 71...77) for supplying an amplified output signal (Yhm), the amplification of which with respect to the input signal (Yi) being adjustable per amplitude segment of the input signal (Yi). A non-linear circuit as claimed in Claim 2, wherein the output means (37, 39) comprise an adder (39) having a first input coupled for receiving the input signal (Yi), a second input coupled to the non-linear segment amplification means (31...35; 71...77), and an output for supplying the output signal (Yhm). A non-linear circuit as claimed in Claim 1, wherein the adjustable non-linear signal (Y"s) is multiplied by or added to a value which is dependent on the standard deviation of the segment gain factors (HM1...HM5). A non-linear circuit as claimed in Claim 1, wherein the input signal (Yi) is divided into five amplitude segments. A method of non-linearly processing an input signal (Yi), the non-linearly processing having a transfer which is adjustable per amplitude segment of the input signal (Yi), the method comprising the following steps: obtaining (11..25; 21..6n) a plurality of amplitude segments (Y1..Y5 ; S1..S5) each having a corresponding segment length from the input signal (Yi); supplying segment gain factors (HM1..HM5), per amplitude segment of the input signal (Yi); supplying a common gain factor (HMa) being formed by a weighted average or a weighted sum of said segment gain factors (HM1..HM5) with weights depending on said corresponding segment lengths; and separately multiplying (31..35; 71..77) said amplitude segments (Y1..Y5; Yi-Vx) by respective reduced segment gain factors obtained by subtracting said common gain factor (HMa) from respective ones of said segment gain factors (HM1..HM5), to supply a non-linearly processed signal (Y"s) which is adjustable per amplitude segment of the input signal (Yi).

Inventors: JASPERS CORNELIS ANTONIE MARIA, JASPERS, CORNELIS ANTONIE MARIA
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 1994
Main classification: H04N5
IPC codes: H03G11, H04N5